|
Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 System : Windows NT SERVER-PC 10.0 build 26200 (Windows 11) AMD64 User : ServerPC ( 0) PHP Version : 8.2.12 Disable Function : NONE Directory : C:/Program Files/NVIDIA Corporation/NVIDIA app/osc/ |
Upload File : |
(self.webpackChunkigo=self.webpackChunkigo||[]).push([[792,76],{14709:(Bt,z,s)=>{"use strict";s.d(z,{oO:()=>B,LV:()=>H,aT:()=>R,XR:()=>re});var n=s(94485),l=s(85735),d=s(43848),v=s(35146),S=s(91384),y=s(65706),f=s(83915),O=s(75707),P=s(14714),_=function(ve){return function i(ie){return!!ie&&"object"==typeof ie}(ve)&&!function r(ie){var ve=Object.prototype.toString.call(ie);return"[object RegExp]"===ve||"[object Date]"===ve||function m(ie){return ie.$$typeof===c}(ie)}(ve)},c="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function D(ie,ve){return!1!==ve.clone&&ve.isMergeableObject(ie)?V(function M(ie){return Array.isArray(ie)?[]:{}}(ie),ie,ve):ie}function I(ie,ve,ue){return ie.concat(ve).map(function(se){return D(se,ue)})}function V(ie,ve,ue){(ue=ue||{}).arrayMerge=ue.arrayMerge||I,ue.isMergeableObject=ue.isMergeableObject||_;var se=Array.isArray(ve);return se===Array.isArray(ie)?se?ue.arrayMerge(ie,ve,ue):function U(ie,ve,ue){var se={};return ue.isMergeableObject(ie)&&Object.keys(ie).forEach(function(Z){se[Z]=D(ie[Z],ue)}),Object.keys(ve).forEach(function(Z){se[Z]=ue.isMergeableObject(ve[Z])&&ie[Z]?V(ie[Z],ve[Z],ue):D(ve[Z],ue)}),se}(ie,ve,ue):D(ve,ue)}V.all=function(ve,ue){if(!Array.isArray(ve))throw new Error("first argument should be an array");return ve.reduce(function(se,Z){return V(se,Z,ue)},{})};const N=V;var L=s(99469),E=s(26875),g=s(58527);let R=(()=>{class ie{static{this.\u0275fac=function(se){return new(se||ie)}}static{this.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac})}}return ie})(),B=(()=>{class ie{constructor(ue,se,Z,Se){this.httpBackend=ue,this.params=Z,this.injector=Se,this.configFetchedSubject=new l.m(1),this.getConfigFromHttp=()=>this.http.get(this.params.filePath).pipe((0,S.M)(Ce=>(this.logger.info("Successfully read application config file",Ce.build),Ce),Ce=>{this.logger.error(`Configuration file ${this.params.filePath} could not be read. Error: ${Ce}`)})),this.getConfig=()=>{const Ce=document.getElementsByTagName("gfn-app-config")[0],Be=Ce?.getAttribute("data-value");Ce?.remove();const Xe=this.parseEncodedConfig(Be);return Xe?(0,d.of)(Xe):this.getConfigFromHttp()},this.logger=se.getLogger("app.config"),this.http=new n.Qq(this.httpBackend),this.cefStaticSystemInfo$=(0,d.of)(null),L.zk.isBrowserLikePlatform()?(this.systemInfoService=this.injector.get(L.zW),this.browserStaticSystemInfo$=this.systemInfoService?this.systemInfoService.getSystemInfo([L.Lu.OSName,L.Lu.DeviceType,L.Lu.ProductVersion,L.Lu.BrowserName,L.Lu.SystemName,L.Lu.VendorName]).pipe((0,y.s)(1),(0,f.T)(Ce=>({OSName:Ce.OSName,DeviceType:Ce.DeviceType,BrowserName:Ce.BrowserName,ProductVersion:Ce.ProductVersion,SystemName:Ce.SystemName}))):(0,d.of)(null)):this.browserStaticSystemInfo$=(0,d.of)(null),L.zk.isCefPlatform()&&(this.systemInfoService=this.injector.get(L.zW),this.systemInfoService&&(this.cefStaticSystemInfo$=this.systemInfoService.getDeviceOSType().pipe((0,f.T)(Ce=>({Platform:Ce})))))}get configFetched$(){return this.configFetchedSubject.asObservable()}mergeRemoteOverridesFromGXT(ue){try{return Object.keys(this.rcParamNameToConfigKeyPathMapping)?.forEach(se=>{const Z=this.rcParamNameToConfigKeyPathMapping[se],Se=this.remoteOverridesFromGXT?.params?.find(Ce=>Ce.name===se);if(Se){let Ce=Se.value;if((0,E.isObject)(Ce)){const Be=(0,E.get)(ue,Z,{});Ce.useRCConfigWithoutMerge||(Ce=N(Be,Ce))}(0,E.set)(ue,Z,Ce)}}),ue}catch(se){return this.logger.info("error in mergeRemoteOverridesFromGXT",se),ue}}get(){const ue=this.overrides||{},se=this.piplLocalizationConfigOverrides||{};let Z={};"dev"===this.config?.build?.type&&(Z=this.variant||{});const Se=N(this.config,Z);let Ce=Se;return this.remoteOverridesFromGXT&&(Ce=this.mergeRemoteOverridesFromGXT(Se)),N(N(Ce,se),ue)}setOverrides(ue){this.overrides=ue}setPiplLocalizationConfigOverrides(ue){this.piplLocalizationConfigOverrides=ue}setRemoteOverridesFromGXT(ue,se){this.rcParamNameToConfigKeyPathMapping=se,this.remoteOverridesFromGXT=ue}parseEncodedConfig(ue){if(ue&&""!==ue.trim())try{return JSON.parse(atob(ue))}catch{return null}return null}load(){return this.params.config?(this.logger.info("Initializing config with provided data"),this.config=this.params.config,(0,d.of)(this.config)):this.params.filePath?(this.logger.info(`Attempting to read application config file ${this.params.filePath}`),(0,v.yU)(this.getConfig(),this.browserStaticSystemInfo$,this.cefStaticSystemInfo$).pipe((0,S.M)(ue=>{this.config=ue[0]},ue=>{this.logger.error(`Some problem while executing getConfig function. Error: ${ue}`)}),(0,S.M)(([ue,se,Z])=>{const Se=Ce=>{Ce&&(this.config=N(this.config,Ce))};if(this.config&&se){const Ce=se.DeviceType,Be=se.OSName,Xe=se.ProductVersion,He=se.BrowserName;this.logger.info(`DeviceType: ${Ce}, DeviceOSType: ${Be}, ProductVersion: ${Xe}, SystemName: ${se.SystemName}`),Se(this.get().browserConfig);const Q=Ce===L.Y0.Phone||Ce===L.Y0.Tablet,A=Ce===L.Y0.TV,me=Ce===L.Y0.Console&&Be!==L.t_.SteamOS,ne=Ce===L.Y0.HMD,G=Be===L.t_.Android,W=He===L.dZ.FIREFOX,$=Be===L.t_.MacOS&&He===L.dZ.SAFARI;switch(Be){case L.t_.IOS:Se(this.get().iOSConfig);break;case L.t_.IPadOS:Se(this.get().iPadOSConfig);break;case L.t_.Android:L.zk.isBrowserPlatform()?Ce===L.Y0.Phone?Se(this.get().androidPhoneConfig):Ce===L.Y0.Tablet&&Se(this.get().androidTabletConfig):Se(this.get().androidConfig);break;case L.t_.Shield:Se(this.get().androidConfig),Se(this.get().shieldConfig);break;case L.t_.Tizen:Se(this.get().tizenConfig);break;case L.t_.WebOS:Se(this.get().webOSConfig);break;case L.t_.SteamOS:Se(this.get().steamOSConfig)}Q?Se(this.get().mobileConfig):A?L.zk.isBrowserPlatform()&&G?Se(this.get().androidTvConfig):Se(this.get().tvConfig):me?Se(this.get().consoleConfig):ne&&(L.zk.isBrowserPlatform()&&G?Se(this.get().androidHmdConfig):Se(this.get().hmdConfig)),$&&Se(this.get().macSafariConfig),W&&Se(this.get().firefoxConfig),Xe&&(this.config=N(this.config,{product:{version:Xe}}))}else this.config&&Z&&Z.Platform===L.t_.SteamOS&&Se(this.get().steamOSConfig)}),(0,O.ZZ)(ue=>this.loadVariant(ue[0])),(0,f.T)(()=>{const ue=this.get();return this.logger.info("appConfig loaded"),this.configFetchedSubject.next(ue),ue}))):(this.logger.error("No valid data source specified in the AppConfigParameters"),(0,d.of)(void 0))}loadVariant(ue){const se=ue?.build?.variant,Z=ue?.build?.type;if(!se||"dev"!==Z)return(0,d.of)(ue);const Se=this.params.filePath.replace(/\.[^/\\.]+$/,".")+se+"."+this.params.filePath.split(".").pop();return this.http.get(Se).pipe((0,S.M)(Ce=>{this.logger.info(`Successfully read ${se} variant config`),this.variant=Ce}),(0,P.W)(()=>(0,d.of)(ue)))}static{this.\u0275fac=function(se){return new(se||ie)(g.KVO(n.JV),g.KVO(L.J6),g.KVO(R),g.KVO(g.zZn))}}static{this.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"})}}return ie})();const H={provide:g.hnV,useFactory:function X(ie){return()=>ie.load().toPromise()},multi:!0,deps:[B]};function J(ie){return ie.get()}function re(ie){return{provide:ie,useFactory:J,deps:[B]}}},44968:(Bt,z,s)=>{"use strict";s.d(z,{lM:()=>a,pu:()=>_});var n=s(36877),l=s(43848),d=s(35146),v=s(17053),S=s(14714),y=s(26875),f=s(20924),O=f.Or.Common.Applicationinfo.ApplicationLifetimeEventType,P=f.Or.Common.Applicationinfo.ShutdownReason,_=function(c){return c.ApplicationRequestedExit="APPLICATION_REQUESTED_EXIT",c.IpcRequestedExit="IPC_REQUESTED_EXIT",c}(_||{}),i=s(58527),r=s(99469);class a{static{this.RegisteredApplicationLifetimeHandle=class{static{this.nextHandleId=0}constructor(m){this.parent=m,this.handleId=a.RegisteredApplicationLifetimeHandle.nextHandleId++}getId(){return this.handleId}remove(){this.parent.removeWork(this.handleId)}}}get isAppShuttingDown(){return this.isShuttingDown}constructor(m,M){this.bridgeService=M,this.isShuttingDown=!1,this.systemShutdownReasons=[P.UserClosedWindow,P.UserQuitWithShortcut,P.UserLoggedOut,P.Relaunch],this.unInterruptableShutdownReasons=[P.UserLoggedOut,_.IpcRequestedExit,P.SelfUpdate,P.Relaunch,P.BrowserExit,P.ForceShutdown],this.logger=m.getLogger("libraries/application-lifetime.service"),this.logger.info("applicationLifetimeService created"),this.onShutdownRequestedFunctions=new Map,this.onShutdownFunctions=new Map,M.executeCommand(f.Ts.Common.Applicationinfo.RegisterAppLifetimeEventsCallback).subscribe(D=>{this.handleBridgeEvent(D)}),(0,n.R)(window,"unload").subscribe(D=>{})}shutdownApplication(m){this.systemShutdownReasons.some(M=>M===m)?this.logger.error("Cannot supply a system reason for shutting down from the application layer"):this.performShutdown(m)}addWorkOnShutdownRequested(m){return this.addWork(this.onShutdownRequestedFunctions,m)}addWorkOnShutdown(m){return this.addWork(this.onShutdownFunctions,m)}removeWork(m){if(this.onShutdownFunctions.has(m))this.onShutdownFunctions.delete(m);else{if(!this.onShutdownRequestedFunctions.has(m)){const M=`Id (${m}) not contained in any registered work map, cannot remove`;throw this.logger.error(M),new Error(M)}this.onShutdownRequestedFunctions.delete(m)}}enumHasValue(m,M){return Object.values(m).includes(M)}handleBridgeEvent(m){(0,y.isNil)(m)||(0,y.isNil)(m.type)?this.logger.error("Nil event or event.type raised from bridge: ",m):this.enumHasValue(O,m.type)?this.enumHasValue(_,m.reason)||this.enumHasValue(P,m.reason)?this.performShutdown(m.reason):this.logger.info("Shutdown reason",m.reason,"not recognized, not handling"):this.logger.info("Event type",m.type,"not recognized, not handling")}isShutdownReasonInterruptable(m){return-1===this.unInterruptableShutdownReasons.indexOf(m)}addWork(m,M){const D=new a.RegisteredApplicationLifetimeHandle(this),I=D.getId();if(this.onShutdownFunctions.has(I)||this.onShutdownRequestedFunctions.has(I))throw new Error("Dupliate work id found");return m.set(I,M),D}closeWindowIfNeeded(m){this.isShuttingDown=!1,m!==P.BrowserExit&&this.bridgeService.executeCommand(f.Ts.Common.Windowcontrol.Close).subscribe(()=>{})}combineAndExecuteFunctions(m){const M=[];return m.forEach(D=>{let I;try{I=D().pipe((0,S.W)(U=>(this.logger.error("Failed to execute scheduled func: ",U),(0,l.of)(void 0))))}catch(U){this.logger.error(`Caught error ${U} from registered handler, not blocking shutdown`),I=(0,l.of)(void 0)}M.push(I)}),(0,d.yU)(...M)}performShutdown(m){if(this.isShuttingDown)return void this.logger.info("performShutdown already called, ignoring");if(this.isShuttingDown=!0,0===this.onShutdownRequestedFunctions.size&&0===this.onShutdownFunctions.size)return this.logger.info("no pre-shutdown work, closing immediately"),void this.closeWindowIfNeeded(m);const M=this.isShutdownReasonInterruptable(m);this.logger.info("starting pre-shutdown promises. shutdown ",M?"is":"isn't"," interruptable"),new v.c(I=>{M&&this.onShutdownRequestedFunctions.size>0?this.combineAndExecuteFunctions(this.onShutdownRequestedFunctions).subscribe({next:V=>{I.next(V.some(T=>!0===T)),I.complete()},error:V=>{this.logger.error("OnShutdown work, error: ",V),I.next(!1),I.complete()}}):(I.next(!1),I.complete())}).subscribe({next:I=>{I?(this.logger.info("shutdown was interrupted during onShutdownRequested"),this.isShuttingDown=!1):0===this.onShutdownFunctions.size?(this.logger.info("no OnShutdown work, closing"),this.closeWindowIfNeeded(m)):this.combineAndExecuteFunctions(this.onShutdownFunctions).subscribe({next:function(V){this.logger.info("OnShutdown work completed, closing"),this.closeWindowIfNeeded(m)}.bind(this),error:function(V){this.logger.error("OnShutdown work, error: ",V),this.closeWindowIfNeeded(m)}.bind(this)})}})}static{this.\u0275fac=function(M){return new(M||a)(i.KVO(r.J6),i.KVO(r.NZ))}}static{this.\u0275prov=i.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}},88903:(Bt,z,s)=>{"use strict";s.d(z,{Hm:()=>f});var n=s(99469),v=(s(56785),s(81834),s(26513)),S=s(53461),y=s(58527);let f=(()=>{class N{constructor(E){this.loggingService=E,this.notificationQueue=[],this.isNotificationAvailableSubject=new v.t(!1),this.firstNotificationChangeSubject$=new v.t(!1),this.logger=this.loggingService.getLogger("BannerNotificationService")}isNotificationAvailable(){return this.isNotificationAvailableSubject.asObservable().pipe((0,S.F)())}onFirstNotificationChange(){return this.firstNotificationChangeSubject$.asObservable()}isNotificationInQueueEmpty(){return 0===this.notificationQueue.length}getFirstNotificationInQueue(){return this.notificationQueue[0]}hasNotificationInQueue(E){return this.notificationQueue.some(g=>g.notificationType===E)}getNotificationInQueue(E){return this.notificationQueue.find(g=>g.notificationType===E)}addNotificationToQueue(E){if(!this.hasNotificationInQueue(E.notificationType)){if(this.isNotificationInQueueEmpty())this.notificationQueue.push(E),this.firstNotificationChangeSubject$.next(!0);else{const g=this.getFirstNotificationInQueue();this.notificationQueue.push(E),this.notificationQueue.sort((B,X)=>B.notificationType-X.notificationType);const R=this.getFirstNotificationInQueue();g.notificationType!==R.notificationType&&this.firstNotificationChangeSubject$.next(!0)}this.logger.info("New banner notification added with type ",E.notificationType),this.isNotificationAvailableSubject.next(!0)}}removeNotificationFromQueue(E){const g=this.notificationQueue.findIndex(R=>R.notificationType===E);-1!==g&&(this.notificationQueue.splice(g,1),this.logger.info("Banner notification removed with type ",E),0===this.notificationQueue.length?this.isNotificationAvailableSubject.next(!1):this.firstNotificationChangeSubject$.next(!0))}static{this.\u0275fac=function(g){return new(g||N)(y.KVO(n.J6))}}static{this.\u0275prov=y.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}}return N})()},43187:(Bt,z,s)=>{"use strict";s.d(z,{T:()=>xm});const xm={Common:{Applicationcontrol:{DeleteCookies:{legacyCommand:"QUERY_DELETE_COOKIES",system:"CrimsonNative",module:"ApplicationControl",method:"DeleteCookies",persistent:!1},SetTaskbarProgress:{legacyCommand:"QUERY_WIN_TASKBAR_PROGRESS",system:"CrimsonNative",module:"ApplicationControl",method:"SetTaskbarProgress",persistent:!1},LoadStringTable:{legacyCommand:"QUERY_LOAD_STRING_TABLE",system:"CrimsonNative",module:"ApplicationControl",method:"LoadStringTable",persistent:!1},ReadConfig:{legacyCommand:"QUERY_READ_CONFIG",system:"CrimsonNative",module:"ApplicationControl",method:"ReadConfig",persistent:!1},WriteConfig:{legacyCommand:"QUERY_WRITE_CONFIG",system:"CrimsonNative",module:"ApplicationControl",method:"WriteConfig",persistent:!1},ReadGenericConfig:{legacyCommand:"QUERY_READ_GENERIC_CONFIG",system:"CrimsonNative",module:"ApplicationControl",method:"ReadGenericConfig",persistent:!1},WriteGenericConfig:{legacyCommand:"QUERY_WRITE_GENERIC_CONFIG",system:"CrimsonNative",module:"ApplicationControl",method:"WriteGenericConfig",persistent:!1},RemoveFromGenericConfig:{legacyCommand:"QUERY_REMOVE_FROM_GENERIC_CONFIG",system:"CrimsonNative",module:"ApplicationControl",method:"RemoveFromGenericConfig",persistent:!1},AllowSetForegroundWindow:{legacyCommand:"QUERY_WIN_ALLOW_SET_FOREGROUND",system:"CrimsonNative",module:"ApplicationControl",method:"AllowSetForegroundWindow",persistent:!1},CopyToClipboard:{legacyCommand:"QUERY_WIN_COPY_TO_CLIPBOARD",system:"CrimsonNative",module:"ApplicationControl",method:"CopyToClipboard",persistent:!1},Restart:{legacyCommand:"QUERY_RESTART_APP",system:"CrimsonNative",module:"ApplicationControl",method:"Restart",persistent:!1},IsCefGpuModeSupported:{legacyCommand:"QUERY_IS_CEF_GPU_MODE_SUPPORTED",system:"CrimsonNative",module:"ApplicationControl",method:"IsCefGpuModeSupported",persistent:!1},RequestLastInstallerStatus:{legacyCommand:"QUERY_LAST_INSTALLER_STATUS",system:"CrimsonNative",module:"ApplicationControl",method:"RequestLastInstallerStatus",persistent:!1},ModulesActiveNotification:{legacyCommand:"QUERY_IPC_MODULES_ACTIVE_NOTIFICATION",system:"CrimsonNative",module:"ApplicationControl",method:"ModulesActiveNotification",persistent:!0},SetCEFWindowTheme:{legacyCommand:"QUERY_SET_SYSTEM_THEME_TO_BROWSER_WINDOW",system:"CrimsonNative",module:"ApplicationControl",method:"SetCEFWindowTheme",persistent:!1}},Applicationinfo:{IsApplicationRunning:{legacyCommand:"QUERY_IS_APPLICATION_RUNNING",system:"CrimsonNative",module:"ApplicationInfo",method:"IsApplicationRunning",persistent:!1},IsApplicationInstalled:{legacyCommand:"QUERY_IS_APPLICATION_INSTALLED",system:"CrimsonNative",module:"ApplicationInfo",method:"IsApplicationInstalled",persistent:!1},GetIsUIRefreshed:{legacyCommand:"QUERY_IS_UI_REFRESHED",system:"CrimsonNative",module:"ApplicationInfo",method:"GetIsUIRefreshed",persistent:!1},RegisterAppLifetimeEventsCallback:{legacyCommand:"QUERY_REGISTER_APPLICATION_LIFETIME_EVENTS_CALLBACK",system:"CrimsonNative",module:"ApplicationInfo",method:"RegisterAppLifetimeEventsCallback",persistent:!0},ListenToLoadEvents:{legacyCommand:"QUERY_LISTEN_TO_LOAD_EVENTS",system:"CrimsonNative",module:"ApplicationInfo",method:"ListenToLoadEvents",persistent:!0},OpenFileDialog:{legacyCommand:"QUERY_WIN_DIR_INFO",system:"CrimsonNative",module:"ApplicationInfo",method:"OpenFileDialog",persistent:!1},OpenDirectoryBrowser:{legacyCommand:"QUERY_BROWSE_DIRECTORY",system:"CrimsonNative",module:"ApplicationInfo",method:"OpenDirectoryBrowser",persistent:!1},OpenSystemSetting:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ApplicationInfo",method:"OpenSystemSetting",persistent:!1},GetApplicationTimeInfo:{legacyCommand:"QUERY_TIME_INFO",system:"CrimsonNative",module:"ApplicationInfo",method:"GetApplicationTimeInfo",persistent:!1}},Backgroundagent:{IPC_COLLECT_LOGS:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"BackgroundAgent",method:"IPC_COLLECT_LOGS",persistent:!1},IPC_UPLOAD_EXCEPTION_INFO:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"BackgroundAgent",method:"IPC_UPLOAD_EXCEPTION_INFO",persistent:!1},OnPushMessage:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"BackgroundAgent",method:"OnPushMessage",persistent:!0},PopAllMessages:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"BackgroundAgent",method:"PopAllMessages",persistent:!1},IPC_CLIENT_HEARTBEAT:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"BackgroundAgent",method:"IPC_CLIENT_HEARTBEAT",persistent:!1},IPC_GFN_REMOTE_CONFIG_UPDATED_EVENT:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"BackgroundAgent",method:"IPC_GFN_REMOTE_CONFIG_UPDATED_EVENT",persistent:!1},IPC_CHECK_FOR_UPDATE:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"BackgroundAgent",method:"IPC_CHECK_FOR_UPDATE",persistent:!1},IPC_GET_SELF_UPDATE_STATUS:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"BackgroundAgent",method:"IPC_GET_SELF_UPDATE_STATUS",persistent:!1}},Backgroundprocess:{RestartProcesses:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"BackgroundProcess",method:"RestartProcesses",persistent:!1}},Bot:{ProcessIntent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Chatbot",method:"ProcessIntent",persistent:!1}},Clientnotification:{ShowClientNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ClientNotification",method:"ShowClientNotifications",persistent:!1},ClearNotificationsQueue:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ClientNotification",method:"ClearNotificationsQueue",persistent:!1},DeleteNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ClientNotification",method:"DeleteNotification",persistent:!1}},Companiontool:{Load:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"CompanionTool",method:"Load",persistent:!1},Save:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"CompanionTool",method:"Save",persistent:!1},Reset:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"CompanionTool",method:"Reset",persistent:!1},Run_Log_Collector:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"CompanionTool",method:"Run_Log_Collector",persistent:!1},Update_Internal_Override_Tool:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"CompanionTool",method:"Update_Internal_Override_Tool",persistent:!1},Get_Latest_Url:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"CompanionTool",method:"Get_Latest_Url",persistent:!1}},Connectionstate:{KeyboardAndMouseConnected:{legacyCommand:"QUERY_KEYBOARD_MOUSE_CONNECTED",system:"CrimsonNative",module:"ConnectionState",method:"KeyboardAndMouseConnected",persistent:!1}},Consent:{setCurrent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Consent",method:"setCurrent",persistent:!1},setAccepted:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Consent",method:"setAccepted",persistent:!1},getAccepted:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Consent",method:"getAccepted",persistent:!1}},Desktopnotification:{ShowDesktopNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DesktopNotification",method:"ShowDesktopNotification",persistent:!1},ClearDesktopNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DesktopNotification",method:"ClearDesktopNotification",persistent:!1},IsValidDesktopNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DesktopNotification",method:"IsValidDesktopNotification",persistent:!1},DesktopNotificationsAllowed:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DesktopNotification",method:"DesktopNotificationsAllowed",persistent:!1},DesktopNotificationActivated:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DesktopNotification",method:"DesktopNotificationActivated",persistent:!0},DesktopNotificationDismissed:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DesktopNotification",method:"DesktopNotificationDismissed",persistent:!0}},Diagnostics:{SendExceptionInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Diagnostics",method:"SendExceptionInfo",persistent:!1},SendUserFeedbackInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Diagnostics",method:"SendUserFeedbackInfo",persistent:!1}},Discord:{UpdatePresence:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Discord",method:"UpdatePresence",persistent:!1},ClearPresence:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Discord",method:"ClearPresence",persistent:!1}},Downloader:{GetFirstBootTimeAfterInstall:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"GetFirstBootTimeAfterInstall",persistent:!1},GetMaxDaysBetweenReleases:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"GetMaxDaysBetweenReleases",persistent:!1},CheckForUpdate:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"CheckForUpdate",persistent:!1},GetLatestUpdateCheckTime:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"GetLatestUpdateCheckTime",persistent:!1},GetTaskDownloadStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"GetTaskDownloadStatus",persistent:!1},GetDownloadStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"GetDownloadStatus",persistent:!1},StartDownload:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"StartDownload",persistent:!1},StartDownloadAndPostProcess:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"StartDownloadAndPostProcess",persistent:!1},ScheduleDownloadAndPostProcess:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"ScheduleDownloadAndPostProcess",persistent:!1},PauseDownload:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"PauseDownload",persistent:!1},ResumeDownload:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"ResumeDownload",persistent:!1},ResumeDownloadAndPostProcess:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"ResumeDownloadAndPostProcess",persistent:!1},StopDownload:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"StopDownload",persistent:!1},GetPostProcessingStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"GetPostProcessingStatus",persistent:!1},StartPostProcessing:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"StartPostProcessing",persistent:!1},TriggerAutoUpdate:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"TriggerAutoUpdate",persistent:!1},RegisterCheckForUpdateProgress:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"RegisterCheckForUpdateProgress",persistent:!0},RegisterDownloadProgress:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"RegisterDownloadProgress",persistent:!0},RegisterPostProcessingProgress:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"RegisterPostProcessingProgress",persistent:!0},RegisterAutoUpdateProgress:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"RegisterAutoUpdateProgress",persistent:!0},CreateProfileFromSourceProfile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"CreateProfileFromSourceProfile",persistent:!1},GetUpdateChannel:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"GetUpdateChannel",persistent:!1},SetUpdateChannel:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"SetUpdateChannel",persistent:!1}},Gallery:{GalleryNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GalleryNotifications",persistent:!0},MontageNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"MontageNotification",persistent:!0},PathChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"PathChangeNotification",persistent:!0},TempFolderChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"TempFolderChangeNotification",persistent:!0},GalleryCapStateChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GalleryCapStateChangeNotification",persistent:!0},GalleryUpdatedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GalleryUpdatedNotification",persistent:!0},GetFolderListing:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetFolderListing",persistent:!1},GetAppStats:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetAppStats",persistent:!1},GetAppUGC:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetAppUGC",persistent:!1},RemoveGalleryItem:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"RemoveGalleryItem",persistent:!1},EnumerateDrives:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"EnumerateDrives",persistent:!1},GetFileMetadata:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetFileMetadata",persistent:!1},GetEventData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetEventData",persistent:!1},GetThumbnail:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetThumbnail",persistent:!1},GetFolderCRC:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetFolderCRC",persistent:!1},GetImageFileDimensions:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetImageFileDimensions",persistent:!1},CopyFile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"CopyFile",persistent:!1},MoveFile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"MoveFile",persistent:!1},IsDirectoryWriteable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"IsDirectoryWriteable",persistent:!1},GetSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetSettings",persistent:!1},SetSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"SetSettings",persistent:!1},GetDriveInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetDriveInfo",persistent:!1},CancelPathUpdate:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"CancelPathUpdate",persistent:!1},GetRecentUGC:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetRecentUGC",persistent:!1},CheckDiskSpace:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"CheckDiskSpace",persistent:!1},EnqueuePendingHighlight:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"EnqueuePendingHighlight",persistent:!1},OpenHighlightsGroupSummary:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"OpenHighlightsGroupSummary",persistent:!1},GetHighlightsCount:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetHighlightsCount",persistent:!1},DeleteGroupHighlights:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"DeleteGroupHighlights",persistent:!1},WriteEncryptedBitmap:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"WriteEncryptedBitmap",persistent:!1},TranscodeMediaFile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"TranscodeMediaFile",persistent:!1},CreateMontage:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"CreateMontage",persistent:!1},CreateMontageFromRecipe:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"CreateMontageFromRecipe",persistent:!1},CancelMontage:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"CancelMontage",persistent:!1},UpdateMontageProgress:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"UpdateMontageProgress",persistent:!1},Trim:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"Trim",persistent:!1},AddMeme:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"AddMeme",persistent:!1},EngraveMP4:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"EngraveMP4",persistent:!1},DeletePreview:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"DeletePreview",persistent:!1},PreviewPathInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"PreviewPathInfo",persistent:!1},GetMontageCloudConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetMontageCloudConfig",persistent:!1},MigrateHighlightsTracker:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"MigrateHighlightsTracker",persistent:!1}},Gameshare:{CreateSession:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"CreateSession",persistent:!1},DeleteSession:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"DeleteSession",persistent:!1},ModifySession:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"ModifySession",persistent:!1},ConfigureControllerMapping:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"ConfigureControllerMapping",persistent:!1},GetFullScreenProcessId:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"GetFullScreenProcessId",persistent:!1},CreateSessionNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"CreateSessionNotification",persistent:!0},SessionStatusUpdateNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"SessionStatusUpdateNotification",persistent:!0},AudioDeviceChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"AudioDeviceChangeNotification",persistent:!0}},Gamestream:{GetServerStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"GetServerStatus",persistent:!1},SetServerStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"SetServerStatus",persistent:!1},GetPairedDevices:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"GetPairedDevices",persistent:!1},RemovePairedDevices:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"RemovePairedDevices",persistent:!1},RegisterPairedDeviceNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"RegisterPairedDeviceNotification",persistent:!0},RegisterShieldDeviceNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"RegisterShieldDeviceNotification",persistent:!0},RespondToUpdateNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"RespondToUpdateNotification",persistent:!1},GetAppsList:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"GetAppsList",persistent:!1},AddAppCollectorItem:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"AddAppCollectorItem",persistent:!1},RemoveAppCollectorItem:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"RemoveAppCollectorItem",persistent:!1},EditAppCollectorItem:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"EditAppCollectorItem",persistent:!1}},Httprequest:{HttpRequest:{legacyCommand:"QUERY_HTTP_REQUEST",system:"CrimsonNative",module:"HttpRequest",method:"HttpRequest",persistent:!1},CancelHttpRequest:{legacyCommand:"CANCEL_HTTP_REQUEST",system:"CrimsonNative",module:"HttpRequest",method:"CancelHttpRequest",persistent:!1}},Httpserver:{StartHttpServer:{legacyCommand:"QUERY_HTTPSERVER_START",system:"CrimsonNative",module:"Httpserver",method:"StartHttpServer",persistent:!0},StopHttpServer:{legacyCommand:"QUERY_HTTPSERVER_STOP",system:"CrimsonNative",module:"Httpserver",method:"StopHttpServer",persistent:!1},SendRedirectResponse:{legacyCommand:"QUERY_HTTPSERVER_REDIRECTRESPONSE",system:"CrimsonNative",module:"Httpserver",method:"SendRedirectResponse",persistent:!1}},Ipc:{Pop:{legacyCommand:"QUERY_IPC_POP_MESSAGE",system:"CrimsonNative",module:"Ipc",method:"Pop",persistent:!1},Push:{legacyCommand:"QUERY_IPC_PUSH_MESSAGE",system:"CrimsonNative",module:"Ipc",method:"Push",persistent:!1},LoginStatus:{legacyCommand:"QUERY_GFN_LOGIN_STATUS",system:"CrimsonNative",module:"Ipc",method:"LoginStatus",persistent:!1}},Jarvis:{MonitorLoginStatus:{legacyCommand:"JARVIS_MONITOR_LOGIN_STATUS",system:"CrimsonNative",module:"Jarvis",method:"MonitorLoginStatus",persistent:!0},Login:{legacyCommand:"JARVIS_LOGIN",system:"CrimsonNative",module:"Jarvis",method:"Login",persistent:!1},Logout:{legacyCommand:"JARVIS_LOGOUT",system:"CrimsonNative",module:"Jarvis",method:"Logout",persistent:!1},QueryToken:{legacyCommand:"QUERY_TOKEN",system:"CrimsonNative",module:"Jarvis",method:"QueryToken",persistent:!1}},Loginid:{AddAppInfoToPersistence:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LoginId",method:"AddAppInfoToPersistence",persistent:!1},DeleteAppInfoFromPersistence:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LoginId",method:"DeleteAppInfoFromPersistence",persistent:!1},GetAllAppInfoFromPersistence:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LoginId",method:"GetAllAppInfoFromPersistence",persistent:!1}},Nativeauth:{syncSessionData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NativeAuth",method:"syncSessionData",persistent:!1},initiateLogIn:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NativeAuth",method:"initiateLogIn",persistent:!1},initiateLogOut:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NativeAuth",method:"initiateLogOut",persistent:!1},initiateLogInALS:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NativeAuth",method:"initiateLogInALS",persistent:!1}},Nvaccount:{GetEULAAccepted:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"GetEULAAccepted",persistent:!1},SetEULAAccepted:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"SetEULAAccepted",persistent:!1},OnLogin:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"OnLogin",persistent:!1},OnLogout:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"OnLogout",persistent:!1},GetUserAccount:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"GetUserAccount",persistent:!1},GetIdToken:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"GetIdToken",persistent:!1},RefreshConsent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"RefreshConsent",persistent:!1},GetUserId:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"GetUserId",persistent:!1},UserIdChangedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"UserIdChangedNotification",persistent:!0},UserConsentChangedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"UserConsentChangedNotification",persistent:!0},GetPrivacySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"GetPrivacySettings",persistent:!1},SetPrivacySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"SetPrivacySettings",persistent:!1},GetPrivacySettingsConsentInformation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"GetPrivacySettingsConsentInformation",persistent:!1},PrivacySettingsConsentInformationChangedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"PrivacySettingsConsentInformationChangedNotification",persistent:!0},PrivacySettingsChangedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"PrivacySettingsChangedNotification",persistent:!0},GetUserAccountAndDeviceConsent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"GetUserAccountAndDeviceConsent",persistent:!1}},Nvcamera:{NvCameraResponseNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"NvCameraResponseNotification",persistent:!0},NvCameraFilterResponseNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"NvCameraFilterResponseNotification",persistent:!0},NvCameraUIControlNotificationData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"NvCameraUIControlNotificationData",persistent:!0},NgxAIUpResNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"NgxAIUpResNotifications",persistent:!0},SetAnselEnable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetAnselEnable",persistent:!1},GetFeatureSet:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetFeatureSet",persistent:!1},GetProcessInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetProcessInfo",persistent:!1},GetNvCameraConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetNvCameraConfig",persistent:!1},GetVersion:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetVersion",persistent:!1},AnselUIReady:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"AnselUIReady",persistent:!1},GetAnselCaptureTypes:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetAnselCaptureTypes",persistent:!1},GetAnselEnabledStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetAnselEnabledStatus",persistent:!1},SetLanguage:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetLanguage",persistent:!1},SetNvCameraConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetNvCameraConfig",persistent:!1},CaptureScreenshot:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"CaptureScreenshot",persistent:!1},GetCaptureResolutions:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetCaptureResolutions",persistent:!1},SetFilter:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetFilter",persistent:!1},GetCurrentFilterInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetCurrentFilterInfo",persistent:!1},ResetFilter:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"ResetFilter",persistent:!1},InsertFilter:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"InsertFilter",persistent:!1},RemoveFilter:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"RemoveFilter",persistent:!1},MoveFilter:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"MoveFilter",persistent:!1},GetFilterStackInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetFilterStackInfo",persistent:!1},ResetFilterStack:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"ResetFilterStack",persistent:!1},SetFilterAttribute:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetFilterAttribute",persistent:!1},SetFilterAndAttributes:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetFilterAndAttributes",persistent:!1},CancelCapture:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"CancelCapture",persistent:!1},SetCameraControlFovRoll:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetCameraControlFovRoll",persistent:!1},GetCameraControlFov:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetCameraControlFov",persistent:!1},GetCameraRangeFovRoll:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetCameraRangeFovRoll",persistent:!1},SetCameraGridOfThirds:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetCameraGridOfThirds",persistent:!1},SetAnselRedirection:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetAnselRedirection",persistent:!1},SendEnableRedirectionToSP:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SendEnableRedirectionToSP",persistent:!0},MouseEventToNvcamera:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"MouseEventToNvcamera",persistent:!1},KeyboardEventToNvcamera:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"KeyboardEventToNvcamera",persistent:!1},GetFreestyleWhitelisted:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetFreestyleWhitelisted",persistent:!1},GetNvCameraOnBusStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetNvCameraOnBusStatus",persistent:!1},StartNgxAIUpRes:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"StartNgxAIUpRes",persistent:!1},CancelNgxAIUpRes:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"CancelNgxAIUpRes",persistent:!1},AnselShotSavedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"AnselShotSavedNotification",persistent:!0},SetCMSInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetCMSInfo",persistent:!1}},Nvdriverdiagnostics:{AddNocatFrameEvent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvDriverDiagnostics",method:"AddNocatFrameEvent",persistent:!1}},Nvkvstorage:{Write:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvKVStorage",method:"Write",persistent:!1},Read:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvKVStorage",method:"Read",persistent:!1},Delete:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvKVStorage",method:"Delete",persistent:!1},Notification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvKVStorage",method:"Notification",persistent:!0}},Nvlocalizedconfig:{LocalizationDataChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvLocalizedConfig",method:"LocalizationDataChangeNotification",persistent:!0},GetLocalizationData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvLocalizedConfig",method:"GetLocalizationData",persistent:!1}},Overrides:{getConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Overrides",method:"getConfig",persistent:!1},launch:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Overrides",method:"launch",persistent:!1},apply:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Overrides",method:"apply",persistent:!1},reset:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Overrides",method:"reset",persistent:!1},download:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Overrides",method:"download",persistent:!1}},Remotelog:{StartStreamingLog:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"RemoteLog",method:"StartStreamingLog",persistent:!1},SessionIdUpdated:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"RemoteLog",method:"SessionIdUpdated",persistent:!1},StopStreamingLog:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"RemoteLog",method:"StopStreamingLog",persistent:!1}},Sharedstorage:{Read:{legacyCommand:"QUERY_READ_SHARED_STORAGE",system:"CrimsonNative",module:"SharedStorage",method:"Read",persistent:!1},Write:{legacyCommand:"QUERY_WRITE_SHARED_STORAGE",system:"CrimsonNative",module:"SharedStorage",method:"Write",persistent:!1},Remove:{legacyCommand:"QUERY_REMOVE_FROM_SHARED_STORAGE",system:"CrimsonNative",module:"SharedStorage",method:"Remove",persistent:!1},Cache:{legacyCommand:"QUERY_CACHE_SHARED_STORAGE",system:"CrimsonNative",module:"SharedStorage",method:"Cache",persistent:!1},PostCacheUpdate:{legacyCommand:"QUERY_POST_CACHE_UPDATE_SHARED_STORAGE",system:"CrimsonNative",module:"SharedStorage",method:"PostCacheUpdate",persistent:!1}},Subscriptioninfo:{InitializeSubscriptionProductSku:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"SubscriptionInfo",method:"InitializeSubscriptionProductSku",persistent:!1}},Survey:{Launch:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Survey",method:"Launch",persistent:!1}},Systeminfo:{GetSystemInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"SystemInfo",method:"GetSystemInfo",persistent:!1},GetClientHeadersInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"SystemInfo",method:"GetClientHeadersInfo",persistent:!1},GetDeviceId:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"SystemInfo",method:"GetDeviceId",persistent:!1},GetBrowserInfo:{legacyCommand:"QUERY_BROWSER_INFO",system:"CrimsonNative",module:"SystemInfo",method:"GetBrowserInfo",persistent:!1},GetStreamingSupportInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"SystemInfo",method:"GetStreamingSupportInfo",persistent:!1},GetNetworkTypeChangedInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"SystemInfo",method:"GetNetworkTypeChangedInfo",persistent:!1},DNSLookup:{legacyCommand:"QUERY_DNS",system:"CrimsonNative",module:"SystemInfo",method:"DNSLookup",persistent:!1}},Telemetry:{SendGridServerAnalyticsEvent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Telemetry",method:"SendGridServerAnalyticsEvent",persistent:!1}},Update:{ReadTicket:{legacyCommand:"QUERY_READ_UPDATE_TICKET",system:"CrimsonNative",module:"Update",method:"ReadTicket",persistent:!1}},Windowcontrol:{Maximize:{legacyCommand:"QUERY_WIN_MAXIMIZE",system:"CrimsonNative",module:"WindowControl",method:"Maximize",persistent:!1},Minimize:{legacyCommand:"QUERY_WIN_MINIMIZE",system:"CrimsonNative",module:"WindowControl",method:"Minimize",persistent:!1},Restore:{legacyCommand:"QUERY_WIN_RESTORE",system:"CrimsonNative",module:"WindowControl",method:"Restore",persistent:!1},RestoreFromFullScreen:{legacyCommand:"QUERY_WIN_RESTORE_FROM_FULLSCREEN",system:"CrimsonNative",module:"WindowControl",method:"RestoreFromFullScreen",persistent:!1},Resize:{legacyCommand:"QUERY_WIN_RECT",system:"CrimsonNative",module:"WindowControl",method:"Resize",persistent:!1},Close:{legacyCommand:"QUERY_WIN_CLOSE",system:"CrimsonNative",module:"WindowControl",method:"Close",persistent:!1},Focus:{legacyCommand:"QUERY_WIN_FOCUS",system:"CrimsonNative",module:"WindowControl",method:"Focus",persistent:!1},RequestUserAttention:{legacyCommand:"QUERY_REQUEST_USER_ATTENTION",system:"CrimsonNative",module:"WindowControl",method:"RequestUserAttention",persistent:!1},EnableCloseButton:{legacyCommand:"QUERY_WIN_ALLOW_CLOSE",system:"CrimsonNative",module:"WindowControl",method:"EnableCloseButton",persistent:!1},SynthesizeClickEvent:{legacyCommand:"QUERY_SYNTHESIZE_CLICK_EVENT",system:"CrimsonNative",module:"WindowControl",method:"SynthesizeClickEvent",persistent:!1}},Windowevents:{RegisterWindowEventsCallback:{legacyCommand:"QUERY_REGISTER_WINDOW_EVENTS_CALLBACK",system:"CrimsonNative",module:"WindowEvents",method:"RegisterWindowEventsCallback",persistent:!0}}},Gfe:{Driverinstall:{InstallAsync:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"InstallAsync",persistent:!1},SetState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"SetState",persistent:!1},GetState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"GetState",persistent:!1},RegisterProgressNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"RegisterProgressNotification",persistent:!0},RegisterFormNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"RegisterFormNotification",persistent:!0}},Driverupdaterecommendation:{GetDriverUpdateRecommendation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetDriverUpdateRecommendation",persistent:!1},GetUserDriverTypePreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetUserDriverTypePreference",persistent:!1},SetUserDriverTypePreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetUserDriverTypePreference",persistent:!1},GetAutomaticDriverDownloadEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetAutomaticDriverDownloadEnabled",persistent:!1},SetAutomaticDriverDownloadEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetAutomaticDriverDownloadEnabled",persistent:!1},StartDriverUpdateCheck:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"StartDriverUpdateCheck",persistent:!1},RegisterDriverUpdateCheckProgressNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"RegisterDriverUpdateCheckProgressNotifications",persistent:!0},GetGRDEditorPreviewMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetGRDEditorPreviewMode",persistent:!1},GetDriverUpdateNotificationEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetDriverUpdateNotificationEnabled",persistent:!1},SetDriverUpdateNotificationEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetDriverUpdateNotificationEnabled",persistent:!1}},Gfnsdk:{Initialize:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GfnSdk",method:"Initialize",persistent:!1},StartStreaming:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GfnSdk",method:"StartStreaming",persistent:!1}},Localgames:{GetApplications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetApplications",persistent:!1},RegisterApplicationChangedNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationChangedNotifications",persistent:!0},RegisterApplicationRemovedNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationRemovedNotifications",persistent:!0},StartApplicationScan:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"StartApplicationScan",persistent:!1},RegisterApplicationScanProgressNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationScanProgressNotifications",persistent:!0},GetLastApplicationScanTime:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetLastApplicationScanTime",persistent:!1},LaunchApplication:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"LaunchApplication",persistent:!1},GetLauncherPID:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetLauncherPID",persistent:!1},GetApplicationSearchPaths:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetApplicationSearchPaths",persistent:!1},AddApplicationSearchPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"AddApplicationSearchPath",persistent:!1},RemoveApplicationSearchPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RemoveApplicationSearchPath",persistent:!1},GetVOPSStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetVOPSStatus",persistent:!1},GetVOPSSettingsInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetVOPSSettingsInfo",persistent:!1},RegisterVOPSReadyNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterVOPSReadyNotifications",persistent:!0},GetBatteryBoostState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetBatteryBoostState",persistent:!1},SetBatteryBoostState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetBatteryBoostState",persistent:!1},GetBatteryBoostSupportState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetBatteryBoostSupportState",persistent:!1},GetWhisperModeState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetWhisperModeState",persistent:!1},SetWhisperModeState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetWhisperModeState",persistent:!1},RegisterWhisperModeStateNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterWhisperModeStateNotifications",persistent:!0},GetWhisperModeSupportState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetWhisperModeSupportState",persistent:!1},RegisterWhisperModeSupportStateNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterWhisperModeSupportStateNotifications",persistent:!0},GetSettingsTranslations:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetSettingsTranslations",persistent:!1},GetSettingsSpace:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetSettingsSpace",persistent:!1},SetTargetSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetTargetSettings",persistent:!1},GetApplicationState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetApplicationState",persistent:!1},RegisterApplicationStateChangedNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationStateChangedNotifications",persistent:!0}}},Gfn:{Gfnsdkhost:{UpdateStreamerStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GfnSdkHost",method:"UpdateStreamerStatus",persistent:!1},OnMessageToSDKClient:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GfnSdkHost",method:"OnMessageToSDKClient",persistent:!1},OnMessageFromSDKClient:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GfnSdkHost",method:"OnMessageFromSDKClient",persistent:!0},SendCustomMessage:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GfnSdkHost",method:"SendCustomMessage",persistent:!1},OnCustomMessageNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GfnSdkHost",method:"OnCustomMessageNotification",persistent:!0}},Networktest:{Start:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NetworkTest",method:"Start",persistent:!1},AuthTokenRequest:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NetworkTest",method:"AuthTokenRequest",persistent:!0},NetworkTestFinishedCallback:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NetworkTest",method:"NetworkTestFinishedCallback",persistent:!0},UpdateAuthToken:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NetworkTest",method:"UpdateAuthToken",persistent:!1},ConfigureNetworkTestSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NetworkTest",method:"ConfigureNetworkTestSettings",persistent:!1},RegisterCallback:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NetworkTest",method:"RegisterCallback",persistent:!1}},Serverrouting:{PerformRouting:{legacyCommand:"QUERY_GFN_LATENCY_BASED_ROUTING",system:"CrimsonNative",module:"ServerRouting",method:"PerformRouting",persistent:!1}},Streamer:{Launch:{legacyCommand:"QUERY_STREAMER_LAUNCH",system:"CrimsonNative",module:"Streamer",method:"Launch",persistent:!1},AddDesktopShortcut:{legacyCommand:"QUERY_STREAMER_INSTALL",system:"CrimsonNative",module:"Streamer",method:"AddDesktopShortcut",persistent:!1}},Streaming:{Start:{legacyCommand:"QUERY_GFN_START",system:"CrimsonNative",module:"Streaming",method:"Start",persistent:!1},Prepare:{legacyCommand:"QUERY_GFN_PREPARE",system:"CrimsonNative",module:"Streaming",method:"Prepare",persistent:!1},SetAuthInfo:{legacyCommand:"QUERY_GFN_SET_AUTH_INFO",system:"CrimsonNative",module:"Streaming",method:"SetAuthInfo",persistent:!1},SetAuthToken:{legacyCommand:"QUERY_GFN_SET_AUTH_TOKEN",system:"CrimsonNative",module:"Streaming",method:"SetAuthToken",persistent:!1},SetPrefetchedSettings:{legacyCommand:"QUERY_GFN_SET_PREFETCHED_SETTINGS",system:"CrimsonNative",module:"Streaming",method:"SetPrefetchedSettings",persistent:!1},Stop:{legacyCommand:"QUERY_GFN_STOP",system:"CrimsonNative",module:"Streaming",method:"Stop",persistent:!1},Cleanup:{legacyCommand:"QUERY_GFN_CLEANUP",system:"CrimsonNative",module:"Streaming",method:"Cleanup",persistent:!1},GetActiveSessions:{legacyCommand:"QUERY_GFN_GET_ACTIVE_SESSIONS",system:"CrimsonNative",module:"Streaming",method:"GetActiveSessions",persistent:!1},GetSessionInfo:{legacyCommand:"QUERY_GFN_GET_SESSION_INFO",system:"CrimsonNative",module:"Streaming",method:"GetSessionInfo",persistent:!1},VsyncToggle:{legacyCommand:"QUERY_GFN_IS_VSYNC_TOGGLE_SUPPORTED",system:"CrimsonNative",module:"Streaming",method:"VsyncToggle",persistent:!1},Cancel:{legacyCommand:"QUERY_GFN_CANCEL",system:"CrimsonNative",module:"Streaming",method:"Cancel",persistent:!1},Resume:{legacyCommand:"QUERY_GFN_RESUME",system:"CrimsonNative",module:"Streaming",method:"Resume",persistent:!1},PauseStreaming:{legacyCommand:"QUERY_GFN_PAUSE_STREAMING",system:"CrimsonNative",module:"Streaming",method:"PauseStreaming",persistent:!1},UpdateRemoteConfig:{legacyCommand:"QUERY_GFN_UPDATE_REMOTE_CONFIG",system:"CrimsonNative",module:"Streaming",method:"UpdateRemoteConfig",persistent:!1},RegisterCallback:{legacyCommand:"QUERY_GFN_REGISTER_CALLBACK",system:"CrimsonNative",module:"Streaming",method:"RegisterCallback",persistent:!0},OpenOsr:{legacyCommand:"QUERY_WIN_OPEN_OSR",system:"CrimsonNative",module:"Streaming",method:"OpenOsr",persistent:!1},CloseOsr:{legacyCommand:"QUERY_WIN_CLOSE_OSR",system:"CrimsonNative",module:"Streaming",method:"CloseOsr",persistent:!1},OsrRegisterCustomKeyPress:{legacyCommand:"QUERY_OSR_REGISTER_KEYPRESS",system:"CrimsonNative",module:"Streaming",method:"OsrRegisterCustomKeyPress",persistent:!1},OsrUnregisterCustomKeyPress:{legacyCommand:"QUERY_OSR_UNREGISTER_KEYPRESS",system:"CrimsonNative",module:"Streaming",method:"OsrUnregisterCustomKeyPress",persistent:!1},OsrCheckKeyPressCombination:{legacyCommand:"QUERY_OSR_CHECK_KEYPRESS_COMBINATION",system:"CrimsonNative",module:"Streaming",method:"OsrCheckKeyPressCombination",persistent:!1},OsrRegisterKeyPressCallback:{legacyCommand:"QUERY_OSR_REGISTER_KEYPRESS_CALLBACK",system:"CrimsonNative",module:"Streaming",method:"OsrRegisterKeyPressCallback",persistent:!0},OsrSetOverlayResolution:{legacyCommand:"QUERY_OSR_SET_OVERLAY_RESOLUTION",system:"CrimsonNative",module:"Streaming",method:"OsrSetOverlayResolution",persistent:!1},GetStreamVolume:{legacyCommand:"QUERY_GFN_GET_STREAM_VOLUME",system:"CrimsonNative",module:"Streaming",method:"GetStreamVolume",persistent:!1},GetStreamStats:{legacyCommand:"QUERY_GFN_GET_STREAM_STATS",system:"CrimsonNative",module:"Streaming",method:"GetStreamStats",persistent:!1},SetStreamVolume:{legacyCommand:"QUERY_GFN_SET_STREAM_VOLUME",system:"CrimsonNative",module:"Streaming",method:"SetStreamVolume",persistent:!1},SetMagnificationFilter:{legacyCommand:"QUERY_GFN_SET_MAG_FILTER",system:"CrimsonNative",module:"Streaming",method:"SetMagnificationFilter",persistent:!1},GetMagnificationFilterSupport:{legacyCommand:"QUERY_GFN_GET_MAG_FILTER_SUPPORT",system:"CrimsonNative",module:"Streaming",method:"GetMagnificationFilterSupport",persistent:!1},GetMagnificationFilterSupportList:{legacyCommand:"QUERY_GFN_GET_MAG_FILTER_SUPPORT_LIST",system:"CrimsonNative",module:"Streaming",method:"GetMagnificationFilterSupportList",persistent:!1},SetMagnificationFilterSharpness:{legacyCommand:"QUERY_GFN_SET_MAG_FILTER_SHARPNESS",system:"CrimsonNative",module:"Streaming",method:"SetMagnificationFilterSharpness",persistent:!1},ToggleUserInput:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Streaming",method:"ToggleUserInput",persistent:!1},ToggleJoystickMouse:{legacyCommand:"QUERY_GFN_TOGGLE_JOYSTICK_MOUSE",system:"CrimsonNative",module:"Streaming",method:"ToggleJoystickMouse",persistent:!1},SetVirtualKeyboardState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Streaming",method:"SetVirtualKeyboardState",persistent:!1},SetVideoTransforms:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Streaming",method:"SetVideoTransforms",persistent:!1},ToggleStats:{legacyCommand:"QUERY_GFN_TOGGLE_INTERNAL_STATS",system:"CrimsonNative",module:"Streaming",method:"ToggleStats",persistent:!1},RegisterGamepadChangedCallback:{legacyCommand:"QUERY_GFN_REGISTER_GAMEPAD_CHANGE_CALLBACK",system:"CrimsonNative",module:"Streaming",method:"RegisterGamepadChangedCallback",persistent:!0},GetConnectedGamepads:{legacyCommand:"QUERY_GFN_GET_CONNECTED_GAMEPADS",system:"CrimsonNative",module:"Streaming",method:"GetConnectedGamepads",persistent:!1},RegisterGamepadEventCallback:{legacyCommand:"QUERY_GFN_REGISTER_GAMEPAD_EVENT_CALLBACK",system:"CrimsonNative",module:"Streaming",method:"RegisterGamepadEventCallback",persistent:!0},RegisterMicCallback:{legacyCommand:"QUERY_GFN_REGISTER_MIC_CALLBACK",system:"CrimsonNative",module:"Streaming",method:"RegisterMicCallback",persistent:!0},ShouldDefaultEnableMic:{legacyCommand:"QUERY_SHOULD_DEFAULT_ENABLE_MIC",system:"CrimsonNative",module:"Streaming",method:"ShouldDefaultEnableMic",persistent:!1},GetMicState:{legacyCommand:"QUERY_GFN_GET_MIC_STATE",system:"CrimsonNative",module:"Streaming",method:"GetMicState",persistent:!1},SetMicState:{legacyCommand:"QUERY_GFN_SET_MIC_STATE",system:"CrimsonNative",module:"Streaming",method:"SetMicState",persistent:!1},GetKeyboardLayout:{legacyCommand:"QUERY_GFN_GET_KEYBOARD_LAYOUT",system:"CrimsonNative",module:"Streaming",method:"GetKeyboardLayout",persistent:!1},SetKeyboardLayout:{legacyCommand:"QUERY_GFN_SET_KEYBOARD_LAYOUT",system:"CrimsonNative",module:"Streaming",method:"SetKeyboardLayout",persistent:!1},ConfigureStreamingSettings:{legacyCommand:"QUERY_GFN_UPDATE_STREAMING_SETTINGS",system:"CrimsonNative",module:"Streaming",method:"ConfigureStreamingSettings",persistent:!1},SendUnicode:{legacyCommand:"QUERY_GFN_SEND_UNICODE",system:"CrimsonNative",module:"Streaming",method:"SendUnicode",persistent:!1},OnKBLayoutChange:{legacyCommand:"QUERY_GFN_REGISTER_ON_KEYBOARD_LAYOUT_CHANGED",system:"CrimsonNative",module:"Streaming",method:"OnKBLayoutChange",persistent:!0},GetUnifiedAPIVersion:{legacyCommand:"QUERY_GFN_GET_UNIFIED_API_VERSION",system:"CrimsonNative",module:"Streaming",method:"GetUnifiedAPIVersion",persistent:!1},OnIMEWindowClosed:{legacyCommand:"QUERY_GFN_REGISTER_ON_IME_WINDOW_CLOSED",system:"CrimsonNative",module:"Streaming",method:"OnIMEWindowClosed",persistent:!0},OnIMEWindowOpened:{legacyCommand:"QUERY_GFN_REGISTER_ON_IME_WINDOW_OPENED",system:"CrimsonNative",module:"Streaming",method:"OnIMEWindowOpened",persistent:!0},GetDisplayMode:{legacyCommand:"QUERY_GFN_GET_DISPLAY_MODE",system:"CrimsonNative",module:"Streaming",method:"GetDisplayMode",persistent:!1},GetVSyncAutoDisableThresholdStreamingFPS:{legacyCommand:"QUERY_GFN_GET_VSYNC_AUTO_DISABLE_THRESHOLD_FPS",system:"CrimsonNative",module:"Streaming",method:"GetVSyncAutoDisableThresholdStreamingFPS",persistent:!1},GetVSyncAutoDisableThresholdDisplayHz:{legacyCommand:"QUERY_GFN_GET_VSYNC_AUTO_DISABLE_THRESHOLD_DISPLAY_HZ",system:"CrimsonNative",module:"Streaming",method:"GetVSyncAutoDisableThresholdDisplayHz",persistent:!1},SetVsyncEnabled:{legacyCommand:"QUERY_GFN_SET_VSYNC_ENABLED",system:"CrimsonNative",module:"Streaming",method:"SetVsyncEnabled",persistent:!1},SetAdaptiveFramePacingEnabled:{legacyCommand:"QUERY_GFN_SET_ADAPTIVE_FRAME_PACING_ENABLED",system:"CrimsonNative",module:"Streaming",method:"SetAdaptiveFramePacingEnabled",persistent:!1},SetDrcDfcState:{legacyCommand:"QUERY_GFN_SET_DRC_DFC_STATE",system:"CrimsonNative",module:"Streaming",method:"SetDrcDfcState",persistent:!1},SetStreamingMaxBitrate:{legacyCommand:"QUERY_GFN_SET_STREAMING_MAX_BITRATE",system:"CrimsonNative",module:"Streaming",method:"SetStreamingMaxBitrate",persistent:!1},UpdateEventInfoGuids:{legacyCommand:"QUERY_GFN_UPDATE_EVENT_INFO_GUIDS",system:"CrimsonNative",module:"Streaming",method:"UpdateEventInfoGuids",persistent:!1},RegisterGridServerAnalyticsCallback:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Streaming",method:"RegisterGridServerAnalyticsCallback",persistent:!0},GetAutoResolution:{legacyCommand:"QUERY_GFN_GET_AUTO_RESOLUTION",system:"CrimsonNative",module:"Streaming",method:"GetAutoResolution",persistent:!1},StartStreaming:{legacyCommand:"QUERY_GFN_START_STREAMING",system:"CrimsonNative",module:"Streaming",method:"StartStreaming",persistent:!1},UpdateEventDataElements:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Streaming",method:"UpdateEventDataElements",persistent:!1},SendClipboardUpdate:{legacyCommand:"QUERY_GFN_SEND_CLIPBOARD_UPDATE",system:"CrimsonNative",module:"Streaming",method:"SendClipboardUpdate",persistent:!1},AuthorizeAVDevices:{legacyCommand:"QUERY_GFN_AUTH_AV_DEVICES",system:"CrimsonNative",module:"Streaming",method:"AuthorizeAVDevices",persistent:!1},PlatformGetMaxBitRateForArray:{legacyCommand:"QUERY_GFN_PLATFORM_GET_MAXBITRATE_ARRAY",system:"CrimsonNative",module:"Streaming",method:"PlatformGetMaxBitRateForArray",persistent:!1},SendKeyEvent:{legacyCommand:"QUERY_GFN_SEND_KEY_EVENT_TO_STREAMER",system:"CrimsonNative",module:"Streaming",method:"SendKeyEvent",persistent:!1},ToggleISSOStats:{legacyCommand:"QUERY_TOGGLE_ISSO_STATS",system:"CrimsonNative",module:"Streaming",method:"ToggleISSOStats",persistent:!0},IsPlatformSupportsHDRStreaming:{legacyCommand:"QUERY_GFN_IS_PLATFORM_SUPPORTS_HDR_STREAMING",system:"CrimsonNative",module:"Streaming",method:"IsPlatformSupportsHDRStreaming",persistent:!1},RegisterHDRStreamingStatusNotification:{legacyCommand:"QUERY_GFN_REGISTER_HDR_STATUS",system:"CrimsonNative",module:"Streaming",method:"RegisterHDRStreamingStatusNotification",persistent:!0},StreamingCodecNotification:{legacyCommand:"QUERY_STREAMING_CODEC_NOTIFICATION",system:"CrimsonNative",module:"Streaming",method:"StreamingCodecNotification",persistent:!0},StreamingL4SStateNotification:{legacyCommand:"QUERY_STREAMING_L4S_STATE_NOTIFICATION",system:"CrimsonNative",module:"Streaming",method:"StreamingL4SStateNotification",persistent:!0},RecordingTranscodeSupport:{legacyCommand:"QUERY_RECORDING_TRANSCODE_SUPPORT",system:"CrimsonNative",module:"Streaming",method:"RecordingTranscodeSupport",persistent:!0},IsPlatformSupportFps:{legacyCommand:"QUERY_GFN_IS_PLATFORM_SUPPORT_FPS",system:"CrimsonNative",module:"Streaming",method:"IsPlatformSupportFps",persistent:!1},CalculateDataUsage:{legacyCommand:"QUERY_GFN_CALCULATE_DATA_USAGE",system:"CrimsonNative",module:"Streaming",method:"CalculateDataUsage",persistent:!1},UpdateAdState:{legacyCommand:"QUERY_GFN_UPDATE_AD_STATE",system:"CrimsonNative",module:"Streaming",method:"UpdateAdState",persistent:!1},GetPlatformCloudGsyncCapabilities:{legacyCommand:"QUERY_GFN_GET_PLATFORM_CLOUD_GSYNC_CAPABILITIES",system:"CrimsonNative",module:"Streaming",method:"GetPlatformCloudGsyncCapabilities",persistent:!1},GetDeviceCapabilities:{legacyCommand:"QUERY_GFN_GET_SERIALIZED_DEVICE_CAPABILITIES",system:"CrimsonNative",module:"Streaming",method:"GetDeviceCapabilities",persistent:!1},SetStreamingL4sState:{legacyCommand:"QUERY_GFN_SET_STREAMING_L4S_STATE",system:"CrimsonNative",module:"Streaming",method:"SetStreamingL4sState",persistent:!1},PrefetchDeviceCapabilities:{legacyCommand:"QUERY_GFN_PREFETCH_DEVICE_CAPABILITIES",system:"CrimsonNative",module:"Streaming",method:"PrefetchDeviceCapabilities",persistent:!1},SetClientSupportsVirtualGamepad:{legacyCommand:"QUERY_SET_CLIENT_SUPPORTS_VIRTUAL_GAMEPAD",system:"CrimsonNative",module:"Streaming",method:"SetClientSupportsVirtualGamepad",persistent:!0},GetGamepadBitmap:{legacyCommand:"QUERY_GET_GAMEPAD_BITMAP",system:"CrimsonNative",module:"Streaming",method:"GetGamepadBitmap",persistent:!0},SetSupportedHidTypes:{legacyCommand:"QUERY_SET_SUPPORTED_HID_TYPES",system:"CrimsonNative",module:"Streaming",method:"SetSupportedHidTypes",persistent:!0},SetMicRecordingEnabled:{legacyCommand:"QUERY_SET_MIC_RECORDING_ENABLED",system:"CrimsonNative",module:"Streaming",method:"SetMicRecordingEnabled",persistent:!1},UpdateVirtualGamepadInput:{legacyCommand:"QUERY_UPDATE_VIRTUAL_GAMEPAD_INPUT",system:"CrimsonNative",module:"Streaming",method:"UpdateVirtualGamepadInput",persistent:!1}}},Nvapp:{Appdiscovery:{AppActionNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"AppDiscovery",method:"AppActionNotification",persistent:!0},InstallApp:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"AppDiscovery",method:"InstallApp",persistent:!1},UninstallApp:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"AppDiscovery",method:"UninstallApp",persistent:!1},GetAppStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"AppDiscovery",method:"GetAppStatus",persistent:!1},GetAppsStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"AppDiscovery",method:"GetAppsStatus",persistent:!1},LaunchApp:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"AppDiscovery",method:"LaunchApp",persistent:!1}},Driverinstall:{InstallAsync:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"InstallAsync",persistent:!1},SetState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"SetState",persistent:!1},GetState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"GetState",persistent:!1},RegisterProgressNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"RegisterProgressNotification",persistent:!0},RegisterFormNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"RegisterFormNotification",persistent:!0}},Driverupdaterecommendation:{GetDriverUpdateRecommendation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetDriverUpdateRecommendation",persistent:!1},GetUserDriverTypePreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetUserDriverTypePreference",persistent:!1},SetUserDriverTypePreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetUserDriverTypePreference",persistent:!1},GetUpdateStrategyPreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetUpdateStrategyPreference",persistent:!1},SetUpdateStrategyPreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetUpdateStrategyPreference",persistent:!1},GetAutomaticDriverDownloadEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetAutomaticDriverDownloadEnabled",persistent:!1},SetAutomaticDriverDownloadEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetAutomaticDriverDownloadEnabled",persistent:!1},StartDriverUpdateCheck:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"StartDriverUpdateCheck",persistent:!1},RegisterDriverUpdateCheckProgressNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"RegisterDriverUpdateCheckProgressNotifications",persistent:!0},GetGRDEditorPreviewMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetGRDEditorPreviewMode",persistent:!1},GetDriverUpdateNotificationEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetDriverUpdateNotificationEnabled",persistent:!1},SetDriverUpdateNotificationEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetDriverUpdateNotificationEnabled",persistent:!1},GetGPUInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetGPUInfo",persistent:!1},GetGenericInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetGenericInfo",persistent:!1},GetRewardsNotificationPreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetRewardsNotificationPreference",persistent:!1},SetRewardsNotificationPreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetRewardsNotificationPreference",persistent:!1},GetLanguagePreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetLanguagePreference",persistent:!1},SetLanguagePreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetLanguagePreference",persistent:!1}},Localgames:{GetApplications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetApplications",persistent:!1},RegisterApplicationChangedNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationChangedNotifications",persistent:!0},RegisterApplicationRemovedNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationRemovedNotifications",persistent:!0},StartApplicationScan:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"StartApplicationScan",persistent:!1},RegisterApplicationScanProgressNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationScanProgressNotifications",persistent:!0},GetLastApplicationScanTime:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetLastApplicationScanTime",persistent:!1},LaunchApplication:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"LaunchApplication",persistent:!1},GetLauncherPID:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetLauncherPID",persistent:!1},GetApplicationSearchPaths:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetApplicationSearchPaths",persistent:!1},AddApplicationSearchPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"AddApplicationSearchPath",persistent:!1},RemoveApplicationSearchPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RemoveApplicationSearchPath",persistent:!1},GetBatteryBoostState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetBatteryBoostState",persistent:!1},SetBatteryBoostState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetBatteryBoostState",persistent:!1},GetBatteryBoostSupportState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetBatteryBoostSupportState",persistent:!1},GetWhisperModeState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetWhisperModeState",persistent:!1},SetWhisperModeState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetWhisperModeState",persistent:!1},GetWhisperModeInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetWhisperModeInfo",persistent:!1},RegisterWhisperModeStateNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterWhisperModeStateNotifications",persistent:!0},GetWhisperModeSupportState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetWhisperModeSupportState",persistent:!1},RegisterWhisperModeSupportStateNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterWhisperModeSupportStateNotifications",persistent:!0},GetSettingsTranslations:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetSettingsTranslations",persistent:!1},GetSettingsSpace:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetSettingsSpace",persistent:!1},SetTargetSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetTargetSettings",persistent:!1},GetApplicationState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetApplicationState",persistent:!1},RegisterApplicationStateChangedNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationStateChangedNotifications",persistent:!0},GetSignedGPUID:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetSignedGPUID",persistent:!1},LaunchMSSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"LaunchMSSettings",persistent:!1},SetOOTBStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetOOTBStatus",persistent:!1},FindAndGetAppMetadata:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"FindAndGetAppMetadata",persistent:!1},AddManualApplication:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"AddManualApplication",persistent:!1},DeleteManualApplication:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"DeleteManualApplication",persistent:!1},GetAutoOptimizeEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetAutoOptimizeEnabled",persistent:!1},SetAutoOptimizeEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetAutoOptimizeEnabled",persistent:!1},TriggerNGXUpdater:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"TriggerNGXUpdater",persistent:!1}},Nvcpldisplayplugin:{GetDirect3DfeatureLevel:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDirect3DfeatureLevel",persistent:!1},GetGPUInformation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetGPUInformation",persistent:!1},GetSuperResolutionInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetSuperResolutionInfo",persistent:!1},GetSuperResolutionCurrentStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetSuperResolutionCurrentStatus",persistent:!1},SetSuperResolutionValue:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetSuperResolutionValue",persistent:!1},GetSuperResolutionGpuUtilization:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetSuperResolutionGpuUtilization",persistent:!1},SetSuperResolutionGpuUtilization:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetSuperResolutionGpuUtilization",persistent:!1},GetSuperResolutionIndicatorStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetSuperResolutionIndicatorStatus",persistent:!1},GetRTXVideoFlags:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetRTXVideoFlags",persistent:!1},SetRTXVSRFlags:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetRTXVSRFlags",persistent:!1},SetRTXHDRFlags:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetRTXHDRFlags",persistent:!1},SetSuperResolutionIndicatorStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetSuperResolutionIndicatorStatus",persistent:!1},GetHDRIndicatorStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetHDRIndicatorStatus",persistent:!1},SetHDRIndicatorStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetHDRIndicatorStatus",persistent:!1},GetDisableVSROnGameLaunchStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDisableVSROnGameLaunchStatus",persistent:!1},SetDisableVSROnGameLaunchStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetDisableVSROnGameLaunchStatus",persistent:!1},GetDisableHDROnGameLaunchStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDisableHDROnGameLaunchStatus",persistent:!1},SetDisableHDROnGameLaunchStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetDisableHDROnGameLaunchStatus",persistent:!1},RestoreDefaultVideoSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"RestoreDefaultVideoSettings",persistent:!1},GetHDRInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetHDRInfo",persistent:!1},GetHDRCurrentStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetHDRCurrentStatus",persistent:!1},SetHDRValue:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetHDRValue",persistent:!1},SetHDRInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetHDRInfo",persistent:!1},RegisterDisplayChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"RegisterDisplayChangeNotification",persistent:!0},GetGpuCount:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetGpuCount",persistent:!1},LaunchApplication:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"LaunchApplication",persistent:!1},IsControlPanelClientInstalled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"IsControlPanelClientInstalled",persistent:!1},GetDisplaysState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDisplaysState",persistent:!1},SetDisplaysState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetDisplaysState",persistent:!1},GetDisplayResolutionList:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDisplayResolutionList",persistent:!1},GetGpuAndDisplayInformation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetGpuAndDisplayInformation",persistent:!1},GetGpuAndDisplaysPhysicalInformation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetGpuAndDisplaysPhysicalInformation",persistent:!1},RestoreDisplaySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"RestoreDisplaySettings",persistent:!1},SetResolution:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetResolution",persistent:!1},SetRotation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetRotation",persistent:!1},RevertState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"RevertState",persistent:!1},CancelState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"CancelState",persistent:!1},CommitState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"CommitState",persistent:!1},IdentifyDisplays:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"IdentifyDisplays",persistent:!1},GetSystemCapabilities:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetSystemCapabilities",persistent:!1},GetGlobalGsyncState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetGlobalGsyncState",persistent:!1},SetGlobalGsyncState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetGlobalGsyncState",persistent:!1},GetGsyncIndicator:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetGsyncIndicator",persistent:!1},SetGsyncIndicator:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetGsyncIndicator",persistent:!1},RestoreGlobalGsyncState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"RestoreGlobalGsyncState",persistent:!1},GetDisplayGsyncState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDisplayGsyncState",persistent:!1},SetDisplayGsyncState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetDisplayGsyncState",persistent:!1},GetIsColorSettingsOsControlled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetIsColorSettingsOsControlled",persistent:!1},SetIsColorSettingsOsControlled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetIsColorSettingsOsControlled",persistent:!1},GetColorEnhancementInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetColorEnhancementInfo",persistent:!1},SetDynamicRange:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetDynamicRange",persistent:!1},SetOutputColorFormat:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetOutputColorFormat",persistent:!1},SetDesktopColorDepth:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetDesktopColorDepth",persistent:!1},SetOutputColorDepth:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetOutputColorDepth",persistent:!1},GetDesktopColorCombinationInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDesktopColorCombinationInfo",persistent:!1},GetDigitalVibranceInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDigitalVibranceInfo",persistent:!1},SetDigitalVibrance:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetDigitalVibrance",persistent:!1},GetHueInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetHueInfo",persistent:!1},SetHue:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetHue",persistent:!1},SetColorCombinationInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetColorCombinationInfo",persistent:!1},SetColorAccuracyMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetColorAccuracyMode",persistent:!1},RestoreColorAccuracyMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"RestoreColorAccuracyMode",persistent:!1},GetColorAccuracyMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetColorAccuracyMode",persistent:!1},GetScalingSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetScalingSettings",persistent:!1},SetScalingSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetScalingSettings",persistent:!1},SetScalingOverride:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetScalingOverride",persistent:!1},FetchCustomTiming:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"FetchCustomTiming",persistent:!1},PerformActionOnCustomResolutionLocalCache:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"PerformActionOnCustomResolutionLocalCache",persistent:!1},GetContentTypeInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetContentTypeInfo",persistent:!1},SetContentType:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetContentType",persistent:!1},GetIsUpscalingFactorsEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetIsUpscalingFactorsEnabled",persistent:!1},GetDisplayLuid:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDisplayLuid",persistent:!1},RestoreDisplayScaling:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"RestoreDisplayScaling",persistent:!1},RestoreDisplayColorSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"RestoreDisplayColorSettings",persistent:!1},GetIsInfoFrameEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetIsInfoFrameEnabled",persistent:!1},GetScalingPreviewInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetScalingPreviewInfo",persistent:!1},GetSurroundOrMosaicConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetSurroundOrMosaicConfig",persistent:!1},SetSurroundOrMosaicConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetSurroundOrMosaicConfig",persistent:!1},GetDDSState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDDSState",persistent:!1},SetDDSState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetDDSState",persistent:!1},DDSBlockingAppPresent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"DDSBlockingAppPresent",persistent:!1},ACPowerConnected:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"ACPowerConnected",persistent:!1},SetUIState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetUIState",persistent:!1},GetUIState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetUIState",persistent:!1},DisableAllMosaicGroups:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"DisableAllMosaicGroups",persistent:!1},GetDDSBlockingApps:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDDSBlockingApps",persistent:!1},GetMosaicDisplaySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetMosaicDisplaySettings",persistent:!1},ExtendAllDisplays:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"ExtendAllDisplays",persistent:!1},GetSpanIdentifiers:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetSpanIdentifiers",persistent:!1}},Nvcplplugin:{GetProfileSettingsInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileSettingsInfo",persistent:!1},GetProfileInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileInfo",persistent:!1},GetProfileSettingValue:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileSettingValue",persistent:!1},GetProfileSettingDefaultValue:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileSettingDefaultValue",persistent:!1},GetProfileNameFromExe:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileNameFromExe",persistent:!1},SetProfileSettingValue:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"SetProfileSettingValue",persistent:!1},ApplyProfileSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"ApplyProfileSettings",persistent:!1},GetProfileJsonStringSettingPossibleValues:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileJsonStringSettingPossibleValues",persistent:!1},GetProfileStringSettingPossibleValues:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileStringSettingPossibleValues",persistent:!1},GetProfileScalarSettingPossibleValues:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileScalarSettingPossibleValues",persistent:!1},RestoreDefaultForProfile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"RestoreDefaultForProfile",persistent:!1},RestoreDefaultForAllProfiles:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"RestoreDefaultForAllProfiles",persistent:!1},GetProgramProfileNames:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProgramProfileNames",persistent:!1},GetProfilesAndApplicationsInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfilesAndApplicationsInfo",persistent:!1},GetGlobalProfileNames:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetGlobalProfileNames",persistent:!1},CreateNewProfile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"CreateNewProfile",persistent:!1},DeleteProfile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"DeleteProfile",persistent:!1},GetDynamicBoost:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetDynamicBoost",persistent:!1}},Nvigoutil:{ToggleIGO:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"ToggleIGO",persistent:!1},GetShadowPlaySupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"GetShadowPlaySupported",persistent:!1},GetShadowPlayStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"GetShadowPlayStatus",persistent:!1},GetFilterPhotoModeState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"GetFilterPhotoModeState",persistent:!1},SetFilterPhotoMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"SetFilterPhotoMode",persistent:!1},SetGAssistInstall:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"SetGAssistInstall",persistent:!1},OpenIGO:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"OpenIGO",persistent:!1},GetHotkeyShortcut:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"GetHotkeyShortcut",persistent:!1}},Nvoc:{GetFeatureSupportState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetFeatureSupportState",persistent:!1},GetManualOCLimits:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetManualOCLimits",persistent:!1},GetLastOcScanResults:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetLastOcScanResults",persistent:!1},GetLastIncompleteOcScannerResults:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetLastIncompleteOcScannerResults",persistent:!1},GetFanSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetFanSettings",persistent:!1},OcScanStatusUpdatesNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"OcScanStatusUpdatesNotifications",persistent:!0},GetOCConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetOCConfig",persistent:!1},GetGpuInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetGpuInfo",persistent:!1},GetOCAdminConsent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetOCAdminConsent",persistent:!1},SetOCAdminConsent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"SetOCAdminConsent",persistent:!1},powerStatusNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"powerStatusNotification",persistent:!0},GetVFPoints:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetVFPoints",persistent:!1},EnableCurrentVFPointNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"EnableCurrentVFPointNotification",persistent:!1},CurrentVFPointNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"CurrentVFPointNotification",persistent:!0},GetPerfProfiles:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetPerfProfiles",persistent:!1}},Overclockingnvc:{SetManualOCLimits:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"SetManualOCLimits",persistent:!1},StartOcManualScan:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"StartOcManualScan",persistent:!1},StopOcManualScan:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"StopOcManualScan",persistent:!1},EnableBackgroundOcScan:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"EnableBackgroundOcScan",persistent:!1},EnableAutotuneOc:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"EnableAutotuneOc",persistent:!1},RestoreOcDefault:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"RestoreOcDefault",persistent:!1},SetFanSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"SetFanSettings",persistent:!1},SetPerfProfile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"SetPerfProfile",persistent:!1}},Rise:{RiseSupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"RiseSupported",persistent:!1},RiseRequestCompletion:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"RiseRequestCompletion",persistent:!1},RiseRegister:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"RiseRegister",persistent:!1},RiseGameNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"RiseGameNotification",persistent:!1},RiseUpdatesNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"RiseUpdatesNotifications",persistent:!0},SaveCSV:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"SaveCSV",persistent:!1},VqVoiceQuerySupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"VqVoiceQuerySupported",persistent:!1},VqResisterVoiceQuery:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"VqResisterVoiceQuery",persistent:!1},VqVoiceQueryResultNotfication:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"VqVoiceQueryResultNotfication",persistent:!0},VqMicDeviceChangedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"VqMicDeviceChangedNotification",persistent:!0},VqSetVoiceQuery:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"VqSetVoiceQuery",persistent:!1},VqSetVoicePlayback:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"VqSetVoicePlayback",persistent:!1},VqEnumMicDevices:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"VqEnumMicDevices",persistent:!1},VqEnumLanguages:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"VqEnumLanguages",persistent:!1},VqEnumVoiceCharacters:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"VqEnumVoiceCharacters",persistent:!1},GameAssistSupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"GameAssistSupported",persistent:!1},GameAssistCreateSession:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"GameAssistCreateSession",persistent:!1},GameAssistQueryResponseNotfication:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"GameAssistQueryResponseNotfication",persistent:!0},GameAssistSubmitQuery:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"GameAssistSubmitQuery",persistent:!1}}},Qxp:{Driverrollback:{Rollback:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverRollback",method:"Rollback",persistent:!1},RollbackInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverRollback",method:"RollbackInfo",persistent:!1}}},Share:{Forager:{CopyConfigTemplate:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"CopyConfigTemplate",persistent:!1},ExtractFrames:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"ExtractFrames",persistent:!1},GetAppInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"GetAppInfo",persistent:!1},LaunchWithNativeApp:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"LaunchWithNativeApp",persistent:!1},ReadWorkspace:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"ReadWorkspace",persistent:!1},ReadFile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"ReadFile",persistent:!1},SaveWorkspace:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"SaveWorkspace",persistent:!1},TrimVideo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"TrimVideo",persistent:!1},WriteFile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"WriteFile",persistent:!1}},Gear:{GetPreviewOutputInformation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GEAR",method:"GetPreviewOutputInformation",persistent:!1},Start:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GEAR",method:"Start",persistent:!1},StartPreview:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GEAR",method:"StartPreview",persistent:!1},GetStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GEAR",method:"GetStatus",persistent:!1},Stop:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GEAR",method:"Stop",persistent:!1}},Graphicssetting:{GetAIDVCSupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetAIDVCSupport",persistent:!1},GetAIDVCState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetAIDVCState",persistent:!1},SetAIDVCState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"SetAIDVCState",persistent:!1},GetRealtimeAIDVCState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetRealtimeAIDVCState",persistent:!1},ToggleNIS2:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"ToggleNIS2",persistent:!1},GetNIS2State:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetNIS2State",persistent:!1},SetNIS2Sharpen:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"SetNIS2Sharpen",persistent:!1},GetAIHDRSupport_V2:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetAIHDRSupport_V2",persistent:!1},GetAIHDRDisplayInfoForProcess:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetAIHDRDisplayInfoForProcess",persistent:!1},GetAIHDRRealTimeState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetAIHDRRealTimeState",persistent:!1},GetAIHDRState_V2:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetAIHDRState_V2",persistent:!1},SetAIHDRState_V2:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"SetAIHDRState_V2",persistent:!1},GetGPUInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetGPUInfo",persistent:!1},GetGenericInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetGenericInfo",persistent:!1},GetUserPreferredLanguage:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetUserPreferredLanguage",persistent:!1},RegisterUserPreferredLanguageChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"RegisterUserPreferredLanguageChangeNotification",persistent:!1},UserPreferredLanguageChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"UserPreferredLanguageChangeNotification",persistent:!0},DlssOnGameLaunched:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"DlssOnGameLaunched",persistent:!1},GetNGXOverrideSRState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetNGXOverrideSRState",persistent:!1},GetNGXOverrideRRState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetNGXOverrideRRState",persistent:!1},GetNGXOverrideFGState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetNGXOverrideFGState",persistent:!1},SetNGXOverrideFGState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"SetNGXOverrideFGState",persistent:!1},GetFGXState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetFGXState",persistent:!1},GetFGXDynamicState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetFGXDynamicState",persistent:!1},GetProfileSettingsForNvApp:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetProfileSettingsForNvApp",persistent:!1}},Nvperfmon:{EnablePerfStatsNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"EnablePerfStatsNotification",persistent:!1},RegisterPerfStatsNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"RegisterPerfStatsNotifications",persistent:!0},SetProcessId:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"SetProcessId",persistent:!1},SetMetricSampleSize:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"SetMetricSampleSize",persistent:!1},ResetAverageMetrics:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"ResetAverageMetrics",persistent:!1},GetDefaultLoggingPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"GetDefaultLoggingPath",persistent:!1},LoggingToggle:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"LoggingToggle",persistent:!1},AlignLatencyMonitoringRectangle:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"AlignLatencyMonitoringRectangle",persistent:!1},GetRLAMonitorSupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"GetRLAMonitorSupport",persistent:!1},ShowFlashIndicator:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"ShowFlashIndicator",persistent:!1},SetFlashIndicatorSize:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"SetFlashIndicatorSize",persistent:!1},GetGpuInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"GetGpuInfo",persistent:!1},powerStatusNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"powerStatusNotification",persistent:!0},CheckRLASupportedDriver:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"CheckRLASupportedDriver",persistent:!1},GetNGXOverrideState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"GetNGXOverrideState",persistent:!1}},Osc:{OpenWindow:{legacyCommand:"QUERY_WIN_OPEN_OSC",system:"CrimsonNative",module:"osc",method:"OpenWindow",persistent:!1},CloseWindow:{legacyCommand:"QUERY_WIN_CLOSE_OSC",system:"CrimsonNative",module:"osc",method:"CloseWindow",persistent:!1},IsDisplayInDesktopMode:{legacyCommand:"QUERY_OSC_DISPLAY_IS_DESKTOP_MODE",system:"CrimsonNative",module:"osc",method:"IsDisplayInDesktopMode",persistent:!1},FullscreenState:{legacyCommand:"QUERY_FULLSCREEN_STATE",system:"CrimsonNative",module:"osc",method:"FullscreenState",persistent:!1},SetPainting:{legacyCommand:"QUERY_OSC_SET_PAINTING",system:"CrimsonNative",module:"osc",method:"SetPainting",persistent:!1},SetCursorInfo:{legacyCommand:"QUERY_OSC_SET_CURSOR_INFO",system:"CrimsonNative",module:"osc",method:"SetCursorInfo",persistent:!1},DropUrl:{legacyCommand:"QUERY_OSC_DROP_URL",system:"CrimsonNative",module:"osc",method:"DropUrl",persistent:!1},GenerateKeyboardMessage:{legacyCommand:"QUERY_WIN_KB_MESSAGE",system:"CrimsonNative",module:"osc",method:"GenerateKeyboardMessage",persistent:!1},RegisterCloseCommand:{legacyCommand:"QUERY_OSC_REGISTER_CLOSE_EVENT",system:"CrimsonNative",module:"osc",method:"RegisterCloseCommand",persistent:!0},SetDisplayRects:{legacyCommand:"QUERY_OSC_SET_DISPLAY_RECTS",system:"CrimsonNative",module:"osc",method:"SetDisplayRects",persistent:!1},RegisterResizeEvent:{legacyCommand:"QUERY_OSC_REGISTER_RESIZE_EVENT",system:"CrimsonNative",module:"osc",method:"RegisterResizeEvent",persistent:!0}},Sdk:{},Shareserver:{SetCaptureSupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetCaptureSupported",persistent:!1},RegisterHotkeyNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"RegisterHotkeyNotifications",persistent:!0},RegisterGeneralNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"RegisterGeneralNotifications",persistent:!0},SetTelemtryInfoToShadowPlay:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetTelemtryInfoToShadowPlay",persistent:!1},RegisterCaptureStateChangeNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"RegisterCaptureStateChangeNotifications",persistent:!0},RegisterWindowStateChangeNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"RegisterWindowStateChangeNotifications",persistent:!0},RegisterBroadcastSessionNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"RegisterBroadcastSessionNotifications",persistent:!0},CaptureSavedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"CaptureSavedNotification",persistent:!0},HighlightSavedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"HighlightSavedNotification",persistent:!0},HighlightCaptureFailureNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"HighlightCaptureFailureNotification",persistent:!0},RegisterSDKNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"RegisterSDKNotifications",persistent:!0},RegisterAppNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"RegisterAppNotifications",persistent:!0},GetInitData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetInitData",persistent:!1},GetMainView:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetMainView",persistent:!1},OpenOsc:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"OpenOsc",persistent:!1},Launch:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"Launch",persistent:!1},SetOverlayReady:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetOverlayReady",persistent:!1},GetShadowPlaySupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetShadowPlaySupported",persistent:!1},GetShadowPlayStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetShadowPlayStatus",persistent:!1},Get4KSupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"Get4KSupport",persistent:!1},GetSupportedBitrates:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetSupportedBitrates",persistent:!1},GetSupportedBitratesFramerates:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetSupportedBitratesFramerates",persistent:!1},GetSupportedResolutions:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetSupportedResolutions",persistent:!1},GetSupportedResolutionsCodecs:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetSupportedResolutionsCodecs",persistent:!1},GetSupportedFramerates:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetSupportedFramerates",persistent:!1},GetQualityDefaultData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetQualityDefaultData",persistent:!1},GetCaptureState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCaptureState",persistent:!1},GetCaptureProcessInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCaptureProcessInfo",persistent:!1},GetCaptureControlPIDMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCaptureControlPIDMode",persistent:!1},GetScreenshotSupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetScreenshotSupport",persistent:!1},CaptureScreenshot:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"CaptureScreenshot",persistent:!1},CaptureCustomScreenshot:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"CaptureCustomScreenshot",persistent:!1},CustomScreenshotNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"CustomScreenshotNotifications",persistent:!0},GetFreestylePreviewBasePath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetFreestylePreviewBasePath",persistent:!1},StartDiskCapture:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"StartDiskCapture",persistent:!1},StopAndSaveDiskCapture:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"StopAndSaveDiskCapture",persistent:!1},StartBufferedCapture:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"StartBufferedCapture",persistent:!1},StopBufferedCapture:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"StopBufferedCapture",persistent:!1},SaveBufferedCaptureClip:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SaveBufferedCaptureClip",persistent:!1},EDGEEvent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"EDGEEvent",persistent:!1},GetInstantReplayEnableStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetInstantReplayEnableStatus",persistent:!1},GetInstantReplayRunningStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetInstantReplayRunningStatus",persistent:!1},GetInstantReplaySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetInstantReplaySettings",persistent:!1},SetInstantReplaySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetInstantReplaySettings",persistent:!1},EnableInstantReplay:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"EnableInstantReplay",persistent:!1},SaveInstantReplay:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SaveInstantReplay",persistent:!1},GetLastInstantReplayLength:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetLastInstantReplayLength",persistent:!1},GetInstantReplayCustomizeData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetInstantReplayCustomizeData",persistent:!1},GetRecordEnableStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetRecordEnableStatus",persistent:!1},GetRecordRunningStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetRecordRunningStatus",persistent:!1},EnableRecord:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"EnableRecord",persistent:!1},GetRecordSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetRecordSettings",persistent:!1},SetRecordSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetRecordSettings",persistent:!1},GetRecordCustomizeData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetRecordCustomizeData",persistent:!1},EnableBroadcast:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"EnableBroadcast",persistent:!1},PauseBroadcast:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"PauseBroadcast",persistent:!1},GetBroadcastEnableStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastEnableStatus",persistent:!1},GetBroadcastRunningStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastRunningStatus",persistent:!1},GetBroadcastSupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastSupported",persistent:!1},GetBroadcastSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastSettings",persistent:!1},SetBroadcastSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetBroadcastSettings",persistent:!1},SetBroadcastSession:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetBroadcastSession",persistent:!1},GetBroadcastPreferredProviderSetting:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastPreferredProviderSetting",persistent:!1},SetBroadcastPreferredProviderSetting:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetBroadcastPreferredProviderSetting",persistent:!1},GetBroadcastLastProvider:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastLastProvider",persistent:!1},SetBroadcastLastProvider:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetBroadcastLastProvider",persistent:!1},GetBroadcastTitle:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastTitle",persistent:!1},GetBroadcast2K:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcast2K",persistent:!1},GetBroadcastFacebookLiveSupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastFacebookLiveSupport",persistent:!1},GetBroadcastIngestServer:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastIngestServer",persistent:!1},SetBroadcastIngestServer:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetBroadcastIngestServer",persistent:!1},SetBroadcastViewerCountImage:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetBroadcastViewerCountImage",persistent:!1},SetBroadcastViewerMax:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetBroadcastViewerMax",persistent:!1},GetRecordBroadcastConcurrencySupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetRecordBroadcastConcurrencySupport",persistent:!1},GetRecordGamestreamConcurrencySupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetRecordGamestreamConcurrencySupport",persistent:!1},GetDesktopCaptureEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetDesktopCaptureEnabled",persistent:!1},SetDesktopCaptureEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetDesktopCaptureEnabled",persistent:!1},GetDesktopCaptureSupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetDesktopCaptureSupported",persistent:!1},GetDesktopCaptureSupportReason:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetDesktopCaptureSupportReason",persistent:!1},GetHevcSupportedState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetHevcSupportedState",persistent:!1},GetAudioMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetAudioMode",persistent:!1},SetAudioMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetAudioMode",persistent:!1},GetAudioSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetAudioSettings",persistent:!1},SetAudioSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetAudioSettings",persistent:!1},GetMicCount:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetMicCount",persistent:!1},GetMicMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetMicMode",persistent:!1},SetMicMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetMicMode",persistent:!1},GetMicSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetMicSettings",persistent:!1},SetMicSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetMicSettings",persistent:!1},MicPTTMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"MicPTTMode",persistent:!1},EnableWebcam:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"EnableWebcam",persistent:!1},ToggleWebcam:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"ToggleWebcam",persistent:!1},GetWebcamEnable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetWebcamEnable",persistent:!1},GetWebcamShown:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetWebcamShown",persistent:!1},GetWebcamPresent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetWebcamPresent",persistent:!1},GetWebcamPreviewState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetWebcamPreviewState",persistent:!1},EnableWebcamPreview:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"EnableWebcamPreview",persistent:!1},GetHighlightsActive:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetHighlightsActive",persistent:!1},GetHighlightsEnable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetHighlightsEnable",persistent:!1},SetHighlightsEnable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetHighlightsEnable",persistent:!1},GetSDKInstanceActive:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetSDKInstanceActive",persistent:!1},GetSDKPermissions:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetSDKPermissions",persistent:!1},SetSDKPermissions:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetSDKPermissions",persistent:!1},NotifyAppOverlayState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"NotifyAppOverlayState",persistent:!1},GetHighlightsConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetHighlightsConfig",persistent:!1},SetHighlightsConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetHighlightsConfig",persistent:!1},GetApplicationConfigs:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetApplicationConfigs",persistent:!1},GetHotkeyShortcut:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetHotkeyShortcut",persistent:!1},SetHotkeyShortcut:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetHotkeyShortcut",persistent:!1},ResetHotkeysToDefault:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"ResetHotkeysToDefault",persistent:!1},GetHotkeyMonitoring:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetHotkeyMonitoring",persistent:!1},Init:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"Init",persistent:!1},SetHotkeyMonitoring:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetHotkeyMonitoring",persistent:!1},SetHotkeyDynamicEnable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetHotkeyDynamicEnable",persistent:!1},GetIndicatorSupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetIndicatorSupported",persistent:!1},GetIndicatorOverlaySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetIndicatorOverlaySettings",persistent:!1},SetIndicatorOverlaySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetIndicatorOverlaySettings",persistent:!1},GetCustomOverlayDefaultPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCustomOverlayDefaultPath",persistent:!1},GetCustomOverlaySupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCustomOverlaySupport",persistent:!1},GetCustomOverlayPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCustomOverlayPath",persistent:!1},SetCustomOverlayPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetCustomOverlayPath",persistent:!1},GetCustomOverlayEnable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCustomOverlayEnable",persistent:!1},SetCustomOverlayEnable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetCustomOverlayEnable",persistent:!1},GetCustomOverlayDisplay:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCustomOverlayDisplay",persistent:!1},SelectCustomOverlay:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SelectCustomOverlay",persistent:!1},EnableCustomOverlay:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"EnableCustomOverlay",persistent:!1},GetNvCameraToggleState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetNvCameraToggleState",persistent:!1},SetNvCameraToggleState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetNvCameraToggleState",persistent:!1},ToggleAutoHighlight:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"ToggleAutoHighlight",persistent:!1},DisableRecordSpecialCase:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"DisableRecordSpecialCase",persistent:!1},GetIf4KRecordingFallbackAvailable:{legacyCommand:"QUERY_IS_4K_RECORDING_FALLBACK_AVAILABLE",system:"CrimsonNative",module:"ShareServer",method:"GetIf4KRecordingFallbackAvailable",persistent:!1},GetExportedGFESettingsData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetExportedGFESettingsData",persistent:!1},SyncShadowPlaySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SyncShadowPlaySettings",persistent:!1},HandleHighlightsGfeConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"HandleHighlightsGfeConfig",persistent:!1},GAssistToggle:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GAssistToggle",persistent:!1}}}}},20924:(Bt,z,s)=>{"use strict";var n;s.d(z,{Od:()=>n,Ts:()=>l.T,Or:()=>Q}),function(A){function me(G,W,$,le){return{legacyCommand:G,system:void 0,module:W,method:$,persistent:le}}A.BridgeCommand=me,A.GenericCommand=function ne(G,W,$,le){return me(G,W,$,le)}}(n||(n={}));var d,v,S,y,f,l=s(43187);!function(A){let me;var ne;(ne=me=A.Format||(A.Format={})).text="text",ne.base64="base64"}(d||(d={})),function(A){let me;var G;let ne;(G=me=A.MediaType||(A.MediaType={})).auto_detect="auto_detect",G.nvfbc="nvfbc",G.video="video",G.image="image",G.kpi_test="kpi_test",G.manual="manual",G.filmstrip="filmstrip",function(G){G.readToTarget="readToTarget",G.sleepToTarget="sleepToTarget",G.readOnlyTarget="readOnlyTarget"}(ne=A.FrameMode||(A.FrameMode={}))}(v||(v={})),function(A){let me;var Le;let ne,G,W,$,le,Pe,Fe,At;(Le=me=A.DriverTypeEnum||(A.DriverTypeEnum={}))[Le.GameReadyDriver=0]="GameReadyDriver",Le[Le.CreatorReadyDriver=1]="CreatorReadyDriver",function(Le){Le[Le.Unknown=0]="Unknown",Le[Le.GpuUnsupported=1]="GpuUnsupported",Le[Le.DriverUnsupported=2]="DriverUnsupported",Le[Le.HardwareSchedulingUnavailable=3]="HardwareSchedulingUnavailable",Le[Le.GraphicsApiUnsupported=4]="GraphicsApiUnsupported",Le[Le.DenyListed=5]="DenyListed",Le[Le.x86Unsupported=6]="x86Unsupported",Le[Le.SRModelDenyListed=7]="SRModelDenyListed",Le[Le.RRModelDenyListed=8]="RRModelDenyListed",Le[Le.FGMultiFrameCountUnsupported=9]="FGMultiFrameCountUnsupported"}(ne=A.ConstraintType||(A.ConstraintType={})),function(Le){Le[Le.MINIMUM_DRIVER_VERSION_NOT_MET=20]="MINIMUM_DRIVER_VERSION_NOT_MET"}(G=A.AidvcUnSupportedErrors||(A.AidvcUnSupportedErrors={})),function(Le){Le[Le.GAME_HDR_ENABLED=0]="GAME_HDR_ENABLED"}(W=A.AidvcRealTimeErrors||(A.AidvcRealTimeErrors={})),function(Le){Le[Le.GPU_INCOMPATIBLE=0]="GPU_INCOMPATIBLE",Le[Le.CLIENT_VIRTUALIZATION_ENABLED=1]="CLIENT_VIRTUALIZATION_ENABLED",Le[Le.OS_INCOMPATIBLE=2]="OS_INCOMPATIBLE",Le[Le.MULTI_MON_DETECTED=3]="MULTI_MON_DETECTED",Le[Le.HDR_DISABLED=4]="HDR_DISABLED",Le[Le.SOC_FEATURE_ENABLED=5]="SOC_FEATURE_ENABLED",Le[Le.SLI_ENABLED=6]="SLI_ENABLED",Le[Le.SURROUND_ENABLED=7]="SURROUND_ENABLED",Le[Le.MSHYBRID_ENABLED=8]="MSHYBRID_ENABLED",Le[Le.MSHYBRID_ENABLED_DDS_IGPU=9]="MSHYBRID_ENABLED_DDS_IGPU",Le[Le.DISPLAY_INCOMPATIBLE=10]="DISPLAY_INCOMPATIBLE",Le[Le.NO_DISPLAY_CONNECTED=11]="NO_DISPLAY_CONNECTED",Le[Le.USE_ALTERNATE_DISPLAY=12]="USE_ALTERNATE_DISPLAY",Le[Le.MINIMUM_DRIVER_VERSION_NOT_MET=20]="MINIMUM_DRIVER_VERSION_NOT_MET",Le[Le.GAME_DENYLISTED=21]="GAME_DENYLISTED"}($=A.AihdrUnSupportedErrors||(A.AihdrUnSupportedErrors={})),function(Le){Le[Le.DRS_REGKEY_NOT_SET=0]="DRS_REGKEY_NOT_SET",Le[Le.UNSUPPORTED_PRESENTATION_MODE=1]="UNSUPPORTED_PRESENTATION_MODE",Le[Le.GAME_HDR_ENABLED=2]="GAME_HDR_ENABLED",Le[Le.OS_HDR_DISABLED=3]="OS_HDR_DISABLED",Le[Le.SOC_FEATURES_ENABLED=4]="SOC_FEATURES_ENABLED",Le[Le.MISTMATCHED_DISPLAY=5]="MISTMATCHED_DISPLAY",Le[Le.API_NOT_SUPPORTED=6]="API_NOT_SUPPORTED"}(le=A.AihdrRealTimeErrors||(A.AihdrRealTimeErrors={})),function(Le){Le[Le.Default=3]="Default",Le[Le.Performance=0]="Performance",Le[Le.Balanced=1]="Balanced",Le[Le.Quality=2]="Quality",Le[Le.UltraPerformance=5]="UltraPerformance",Le[Le.Dlaa=4]="Dlaa",Le[Le.Custom=6]="Custom"}(Pe=A.DlssPerformanceModeOverrideEnum||(A.DlssPerformanceModeOverrideEnum={})),function(Le){Le[Le.Default=0]="Default",Le[Le.PresetA=1]="PresetA",Le[Le.PresetB=2]="PresetB",Le[Le.PresetC=3]="PresetC",Le[Le.PresetD=4]="PresetD",Le[Le.PresetE=5]="PresetE",Le[Le.PresetF=6]="PresetF",Le[Le.PresetJ=10]="PresetJ",Le[Le.Latest=16777215]="Latest"}(Fe=A.DlssModelOverrideEnum||(A.DlssModelOverrideEnum={})),function(Le){Le[Le.DLSSSR=65542]="DLSSSR",Le[Le.DLSSRR=65543]="DLSSRR",Le[Le.DLSSFG=65544]="DLSSFG",Le[Le.DLSSSM=65545]="DLSSSM"}(At=A.DlssFeatures||(A.DlssFeatures={}))}(S||(S={})),function(A){let me;var ne;(ne=me=A.PowerStatus||(A.PowerStatus={}))[ne.AC=0]="AC",ne[ne.DC=1]="DC",ne[ne.UPS_LIKE=2]="UPS_LIKE",ne[ne.Unknown=3]="Unknown"}(y||(y={})),function(A){let me;var Je;let ne,G,W,$,le,Pe,Fe,At,Le,Et,$e,Ze,Qe,Ve,nt,Ot,at,It,We,xe,lt,ft,ht,Xt,Ht;(Je=me=A.SdkPermissions||(A.SdkPermissions={})).granted="granted",Je.mustAsk="mustAsk",Je.denied="denied",function(Je){Je.H264_HEVC="H264/HEVC",Je.AV1="AV1",Je.H265="H265"}(ne=A.Codec||(A.Codec={})),function(Je){Je.custom="custom",Je.customA="customA",Je.customB="customB",Je.customC="customC"}(G=A.CustomOverlayTypeEnum||(A.CustomOverlayTypeEnum={})),function(Je){Je.small="small",Je.medium="medium",Je.large="large"}(W=A.OverlaySizeEnum||(A.OverlaySizeEnum={})),function(Je){Je.leftTop="leftTop",Je.leftCenter="leftCenter",Je.leftBottom="leftBottom",Je.rightTop="rightTop",Je.rightCenter="rightCenter",Je.rightBottom="rightBottom",Je.centerTop="centerTop",Je.centerCenter="centerCenter",Je.centerBottom="centerBottom",Je.floatingRandom="floatingRandom",Je.floatingBorder="floatingBorder",Je.none="none"}($=A.OverlayPositionEnum||(A.OverlayPositionEnum={})),function(Je){Je.record="record",Je.gamecast="gamecast",Je.fps="fps",Je.viewer="viewer",Je.rig="rig",Je.webcam="webcam",Je.comments="comments"}(le=A.IndicatorEnum||(A.IndicatorEnum={})),function(Je){Je.In_game="In-game",Je.Resolution_4320p_8K="4320p 8K",Je.Resolution_2160p_4K="2160p 4K",Je.Resolution_1440p_HD="1440p HD",Je.Resolution_1080p_HD="1080p HD",Je.Resolution_720p_HD="720p HD",Je.Resolution_480p="480p",Je.Resolution_360p="360p",Je.Resolution_240p="240p",Je.Exact="Exact"}(Pe=A.Resolution||(A.Resolution={})),function(Je){Je.on="on",Je.off="off",Je.alwayson="alwayson",Je.ptt="ptt"}(Fe=A.MicModeEnum||(A.MicModeEnum={})),function(Je){Je.manual="manual",Je.dvr="dvr",Je.gameCast="gameCast",Je.highlight="highlight",Je.gearRecord="gearRecord",Je.gearHighlight="gearHighlight",Je.lastMode="lastMode",Je.screenshot="screenshot"}(At=A.CaptureModeEnum||(A.CaptureModeEnum={})),function(Je){Je.highlights="highlights",Je.highlightsRecordVideo="highlightsRecordVideo",Je.highlightsRecordScreenshot="highlightsRecordScreenshot"}(Le=A.SdkScopeType||(A.SdkScopeType={})),function(Je){Je.plugged_in="plugged_in",Je.plugged_out="plugged_out",Je.enabled="enabled",Je.disabled="disabled"}(Et=A.DeviceStateTypeEnum||(A.DeviceStateTypeEnum={})),function(Je){Je.mic="mic",Je.webcam="webcam"}($e=A.DeviceTypeEnum||(A.DeviceTypeEnum={})),function(Je){Je.unknown="unknown",Je.started="started",Je.stopped="stopped",Je.paused="paused",Je.resumed="resumed"}(Ze=A.CloudSessionStateType||(A.CloudSessionStateType={})),function(Je){Je.OpenIGO="OpenIGO",Je.OpenFreestyle="OpenFreestyle",Je.OpenAnsel="OpenAnsel",Je.PTT="PTT",Je.FPS="FPS",Je.Screenshot="Screenshot",Je.DVRSave="DVRSave",Je.RecordToggle="RecordToggle",Je.BroadcastToggle="BroadcastToggle",Je.BroadcastPauseToggle="BroadcastPauseToggle",Je.CameraToggle="CameraToggle",Je.OverlayToggle="OverlayToggle",Je.CustomOverlayA="CustomOverlayA",Je.CustomOverlayB="CustomOverlayB",Je.CustomOverlayC="CustomOverlayC",Je.CommentsToggle="CommentsToggle",Je.MicToggle="MicToggle",Je.DVRToggle="DVRToggle",Je.FreestyleToggle="FreestyleToggle",Je.FreestylePresentCycle="FreestylePresentCycle",Je.FreeStyleToggleStyle1="FreeStyleToggleStyle1",Je.FreeStyleToggleStyle2="FreeStyleToggleStyle2",Je.FreeStyleToggleStyle3="FreeStyleToggleStyle3",Je.NativeKeyboardInputDialog="NativeKeyboardInputDialog",Je.ConnectGfnBroadcastToggle="ConnectGfnBroadcastToggle",Je.StatisticsToggle="StatisticsToggle",Je.QuitGame="QuitGame",Je.PMOCOverlay="PMOCOverlay",Je.PMOCOverlayVisibility="PMOCOverlayVisibility",Je.PMOCOverlayCycle="PMOCOverlayCycle",Je.PMOCResetAverageMetrics="PMOCResetAverageMetrics",Je.PMOCLoggingToggle="PMOCLoggingToggle",Je.InStreamPaste="InStreamPaste",Je.ChatUIToggle="ChatUIToggle",Je.ChatPTT="ChatPTT"}(Qe=A.HotkeyEnum||(A.HotkeyEnum={})),function(Je){Je[Je.SPFeatureState_Unknown=0]="SPFeatureState_Unknown",Je[Je.SPFeatureState_Start=1]="SPFeatureState_Start",Je[Je.SPFeatureState_Stop=2]="SPFeatureState_Stop"}(Ve=A.GAssistFeatureState||(A.GAssistFeatureState={})),function(Je){Je.screenshot="screenshot",Je.video="video"}(nt=A.Type||(A.Type={})),function(Je){Je.UltraGood="UltraGood",Je.VeryGood="VeryGood",Je.Good="Good",Je.Average="Average",Je.Custom="Custom",Je.GamecastYTLUltraGood="GamecastYTLUltraGood",Je.GamecastYTLVeryGood="GamecastYTLVeryGood",Je.GamecastYTLGood="GamecastYTLGood",Je.GamecastYTLAverage="GamecastYTLAverage",Je.GamecastUltraGood="GamecastUltraGood",Je.GamecastVeryGood="GamecastVeryGood",Je.GamecastGood="GamecastGood",Je.GamecastAverage="GamecastAverage",Je.GamecastFBLVeryGood="GamecastFBLVeryGood",Je.GamecastFBLGood="GamecastFBLGood",Je.GamecastFBLAverage="GamecastFBLAverage"}(Ot=A.Quality||(A.Quality={})),function(Je){Je.instantReplay="instantReplay",Je.manualRecord="manualRecord",Je.highlights="highlights",Je.gear="gear"}(at=A.SessionIds||(A.SessionIds={})),function(Je){Je.Always_Ask="Always Ask",Je.Twitch="Twitch",Je.YouTube_Live="YouTube Live",Je.Facebook_Live="Facebook Live",Je.Do_Not_Broadcast="Do Not Broadcast"}(It=A.Provider||(A.Provider={})),function(Je){Je[Je.GXP_Success_Ok=0]="GXP_Success_Ok",Je[Je.GXP_Success_NoError=1]="GXP_Success_NoError",Je[Je.GXP_Error_NotImplemented=-2147467263]="GXP_Error_NotImplemented",Je[Je.GXP_Error_NoInterface=-2147467262]="GXP_Error_NoInterface",Je[Je.GXP_Error_InvalidPointer=-2147467261]="GXP_Error_InvalidPointer",Je[Je.GXP_Error_Abort=-2147467260]="GXP_Error_Abort",Je[Je.GXP_Error_Fail=-2147467259]="GXP_Error_Fail",Je[Je.GXP_Error_Unexpected=-2147468113]="GXP_Error_Unexpected",Je[Je.GXP_Error_FileNotFound=-2147024894]="GXP_Error_FileNotFound",Je[Je.GXP_Error_PathNotFound=-2147024893]="GXP_Error_PathNotFound",Je[Je.GXP_Error_InvalidHandle=-2147024890]="GXP_Error_InvalidHandle",Je[Je.GXP_Error_InvalidData=-2147024883]="GXP_Error_InvalidData",Je[Je.GXP_Error_OutOfMemory=-2147024882]="GXP_Error_OutOfMemory",Je[Je.GXP_Error_InvalidArg=-2147024809]="GXP_Error_InvalidArg",Je[Je.GXP_Error_TimeOut=-2147023436]="GXP_Error_TimeOut",Je[Je.GXP_Error_FileTooLarge=-2147024673]="GXP_Error_FileTooLarge",Je[Je.GXP_Error_MaxStartAttempts=-2146959359]="GXP_Error_MaxStartAttempts",Je[Je.ShadowPlay_OSC_ERR_GENERIC=-1]="ShadowPlay_OSC_ERR_GENERIC",Je[Je.ShadowPlay_OSC_ERR_INVALID_VER=-2]="ShadowPlay_OSC_ERR_INVALID_VER",Je[Je.ShadowPlay_OSC_ERR_CLIENT_UNINITIALIZED=-3]="ShadowPlay_OSC_ERR_CLIENT_UNINITIALIZED",Je[Je.ShadowPlay_OSC_ERR_SERVER_NOT_CONNECTED=-4]="ShadowPlay_OSC_ERR_SERVER_NOT_CONNECTED",Je[Je.ShadowPlay_OSC_ERR_SERVER_TIME_OUT=-5]="ShadowPlay_OSC_ERR_SERVER_TIME_OUT",Je[Je.ShadowPlay_OSC_ERR_SERVER_CANNOT_CONNECT=-6]="ShadowPlay_OSC_ERR_SERVER_CANNOT_CONNECT",Je[Je.ShadowPlay_OSC_ERR_STREAM_NOT_FOUND=-7]="ShadowPlay_OSC_ERR_STREAM_NOT_FOUND",Je[Je.ShadowPlay_OSC_ERR_INVALID_FORMAT=-8]="ShadowPlay_OSC_ERR_INVALID_FORMAT",Je[Je.ShadowPlay_OSC_ERR_INVALID_PARAMETERS=-9]="ShadowPlay_OSC_ERR_INVALID_PARAMETERS",Je[Je.ShadowPlay_OSC_ERR_DX=-10]="ShadowPlay_OSC_ERR_DX",Je[Je.ShadowPlay_OSC_ERR_MMF=-11]="ShadowPlay_OSC_ERR_MMF",Je[Je.ShadowPlay_OSC_ERR_INSUFFICIENT_BUFFER=-12]="ShadowPlay_OSC_ERR_INSUFFICIENT_BUFFER",Je[Je.ShadowPlay_OSC_ERR_NO_IMPLEMENTATION=-13]="ShadowPlay_OSC_ERR_NO_IMPLEMENTATION",Je[Je.ShadowPlay_OSC_ERR_STREAM_LOCKED=-14]="ShadowPlay_OSC_ERR_STREAM_LOCKED",Je[Je.ShadowPlay_OSC_ERR_ALREADY_REGISTERED=-15]="ShadowPlay_OSC_ERR_ALREADY_REGISTERED",Je[Je.ShadowPlay_OSC_ERR_ALREADY_CREATED=-16]="ShadowPlay_OSC_ERR_ALREADY_CREATED",Je[Je.ShadowPlay_OSC_ERR_PROTOBUF=-17]="ShadowPlay_OSC_ERR_PROTOBUF",Je[Je.ShadowPlay_OSC_ERR_NOTAVAILABLE=-18]="ShadowPlay_OSC_ERR_NOTAVAILABLE",Je[Je.ShadowPlay_OSC_ERR_OUT_OF_MEMORY=-19]="ShadowPlay_OSC_ERR_OUT_OF_MEMORY",Je[Je.ShadowPlay_OSC_ERR_ABANDONED=-20]="ShadowPlay_OSC_ERR_ABANDONED",Je[Je.ShadowPlay_OSC_ERR_INVALID_CALL=-21]="ShadowPlay_OSC_ERR_INVALID_CALL",Je[Je.ShadowPlay_OSC_ERR_NO_VALID_GAME_RUNNING=-22]="ShadowPlay_OSC_ERR_NO_VALID_GAME_RUNNING",Je[Je.ShadowPlay_E_SERVER_NOT_RUNNING=-2147220959]="ShadowPlay_E_SERVER_NOT_RUNNING",Je[Je.ShadowPlay_E_UNKNOWN_PROP_NAME=-2147220958]="ShadowPlay_E_UNKNOWN_PROP_NAME",Je[Je.ShadowPlay_E_INVALID_PROP_FORMAT=-2147220957]="ShadowPlay_E_INVALID_PROP_FORMAT",Je[Je.ShadowPlay_E_INVALID_PROP_VALUE=-2147220956]="ShadowPlay_E_INVALID_PROP_VALUE",Je[Je.ShadowPlay_E_UNKNOWN_CMD_NAME=-2147220955]="ShadowPlay_E_UNKNOWN_CMD_NAME",Je[Je.ShadowPlay_E_INVALID_CMD_FORMAT=-2147220954]="ShadowPlay_E_INVALID_CMD_FORMAT",Je[Je.ShadowPlay_E_INVALID_CMD_VERSION=-2147220953]="ShadowPlay_E_INVALID_CMD_VERSION",Je[Je.ShadowPlay_E_NOT_READY=-2147220952]="ShadowPlay_E_NOT_READY",Je[Je.ShadowPlay_E_SERVER_IN_EXCLUSIVE_MODE=-2147220951]="ShadowPlay_E_SERVER_IN_EXCLUSIVE_MODE",Je[Je.ShadowPlay_E_SERVER_IN_GAMECAST_MODE=-2147220950]="ShadowPlay_E_SERVER_IN_GAMECAST_MODE",Je[Je.ShadowPlay_E_CANNOT_CLAIM_H264_LICENSE=-2147220949]="ShadowPlay_E_CANNOT_CLAIM_H264_LICENSE",Je[Je.ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_OS=-2147220948]="ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_OS",Je[Je.ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_RAM=-2147220947]="ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_RAM",Je[Je.ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_GPU=-2147220946]="ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_GPU",Je[Je.ShadowPlay_E_FAIL_ENABLE_SHADOWPLAY=-2147220945]="ShadowPlay_E_FAIL_ENABLE_SHADOWPLAY",Je[Je.ShadowPlayE_FAIL_ENABLE_NVFBC=-2147220944]="ShadowPlayE_FAIL_ENABLE_NVFBC",Je[Je.ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_DRIVER=-2147220943]="ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_DRIVER",Je[Je.ShadowPlay_E_FAIL_ENABLE_NVFBC_TIMEOUT=-2147220942]="ShadowPlay_E_FAIL_ENABLE_NVFBC_TIMEOUT",Je[Je.ShadowPlay_E_FAIL_ENABLE_OSC=-2147220941]="ShadowPlay_E_FAIL_ENABLE_OSC",Je[Je.ShadowPlay_E_FAIL_ENABLE_HELPER=-2147220940]="ShadowPlay_E_FAIL_ENABLE_HELPER",Je[Je.ShadowPlay_E_FAIL_NO_GALLERY_SPACE=-2147220926]="ShadowPlay_E_FAIL_NO_GALLERY_SPACE",Je[Je.ShadowPlay_E_FAIL_NO_DISC_SPACE=-2147220938]="ShadowPlay_E_FAIL_NO_DISC_SPACE",Je[Je.ShadowPlay_E_FAIL_CAPTURE_DISABLED=-2147220937]="ShadowPlay_E_FAIL_CAPTURE_DISABLED",Je[Je.ShadowPlay_E_BOUNDS=-2147483637]="ShadowPlay_E_BOUNDS",Je[Je.ShadowPlay_E_NOT_VALID_STATE=-2147019873]="ShadowPlay_E_NOT_VALID_STATE",Je[Je.ShadowPlay_E_UNEXPECTED=-2147418113]="ShadowPlay_E_UNEXPECTED",Je[Je.GXP_Error_HotkeyInUse=-2146897916]="GXP_Error_HotkeyInUse"}(We=A.InternalErrorCodeEnum||(A.InternalErrorCodeEnum={})),function(Je){Je.available="available",Je.started="started",Je.auto_pause="auto_pause",Je.user_pause="user_pause",Je.user_pause_auto_pause="user_pause_auto_pause",Je.last="last",Je.error="error",Je.saved="saved",Je.restarted_notifier="restarted_notifier",Je.resumed_notifier="resumed_notifier",Je.notifier_none="notifier_none",Je.invalid="invalid",Je.enabled="enabled",Je.disabled="disabled"}(xe=A.RecordingState||(A.RecordingState={})),function(Je){Je.capture="capture",Je.in_focus="in-focus",Je.last_proc="last-proc"}(lt=A.AppType||(A.AppType={})),function(Je){Je[Je._30=30]="_30",Je[Je._60=60]="_60"}(ft=A.Framerate||(A.Framerate={})),function(Je){Je.off="off",Je.game="game",Je.mic="mic",Je.both="both"}(ht=A.Mode||(A.Mode={})),function(Je){Je.main="main",Je.permission="permission",Je.highlightsSummary="highlightsSummary"}(Xt=A.State||(A.State={})),function(Je){Je.none="none",Je.single="single",Je.multiple="multiple"}(Ht=A.SupportType||(A.SupportType={}))}(f||(f={}));var P,O=function(A){return A.Forager=d,A.Gear=v,A.Graphicssetting=S,A.Nvperfmon=y,A.Shareserver=f,A}(O||{});!function(A){let me;var ne;(ne=me=A.RollbackOptionsEnum||(A.RollbackOptionsEnum={}))[ne.Unknown=0]="Unknown",ne[ne.NoUI=1]="NoUI",ne[ne.RollbackUI=2]="RollbackUI"}(P||(P={}));var i,r,a,c,m,M,D,I,U,V,_=function(A){return A.Driverrollback=P,A}(_||{});!function(A){let me;var $;let ne,G,W;($=me=A.ActionStatusEnum||(A.ActionStatusEnum={}))[$.ActionStarted=0]="ActionStarted",$[$.ActionRunning=1]="ActionRunning",$[$.ActionSuccess=2]="ActionSuccess",$[$.ActionFailure=3]="ActionFailure",$[$.ActionUnknown=4]="ActionUnknown",function($){$[$.Success=0]="Success",$[$.Failure=1]="Failure",$[$.Unknown=2]="Unknown"}(ne=A.ExeLaunchStatusEnum||(A.ExeLaunchStatusEnum={})),function($){$[$.NotInstalled=0]="NotInstalled",$[$.Installed=1]="Installed",$[$.Installing=2]="Installing",$[$.Uninstalling=3]="Uninstalling",$[$.PartiallyInstalled=4]="PartiallyInstalled"}(G=A.Status||(A.Status={})),function($){$[$.Install=0]="Install",$[$.Uninstall=1]="Uninstall"}(W=A.Action||(A.Action={}))}(i||(i={})),function(A){let me;var $;let ne,G,W;($=me=A.ErrorCodeEnum||(A.ErrorCodeEnum={}))[$.NoError=0]="NoError",$[$.UserCancelled=-522190847]="UserCancelled",$[$.GeneralError=-505409537]="GeneralError",$[$.InvalidObject=-505413631]="InvalidObject",$[$.InsufficientArguments=-505413630]="InsufficientArguments",$[$.InvalidParameters=-505413629]="InvalidParameters",$[$.PropertyMissing=-505413628]="PropertyMissing",$[$.InvalidFormat=-505413627]="InvalidFormat",$[$.EmptyValue=-505413626]="EmptyValue",$[$.FileNotFound=-505413622]="FileNotFound",$[$.PathNotFound=-505413621]="PathNotFound",$[$.ProcessingPreviousCall=505413620]="ProcessingPreviousCall",$[$.InstallerAlreadyRunning=-505413619]="InstallerAlreadyRunning",$[$.MessagingChannel=-505413618]="MessagingChannel",$[$.ExtractedNotFound=-505413610]="ExtractedNotFound",$[$.InstallerExeNotFound=-505413608]="InstallerExeNotFound",$[$.GfeExperienceKeyNotFound=-505413607]="GfeExperienceKeyNotFound",$[$.GfeExperiencePathEmpty=-505413606]="GfeExperiencePathEmpty",$[$.SignatureInvalid=-505413605]="SignatureInvalid",$[$.UacCancelled=-505413600]="UacCancelled",$[$.MsgArrivedEventCreate=-505413599]="MsgArrivedEventCreate",$[$.MsgArrivedEventSignal=-505413598]="MsgArrivedEventSignal",$[$.ResumePathNotFound=-505413597]="ResumePathNotFound",$[$.ResumePathEmpty=-505413596]="ResumePathEmpty",$[$.ResumePathInvalid=-505413595]="ResumePathInvalid",$[$.MsgChannelInit=-505413584]="MsgChannelInit",$[$.MsgShowFormSet=-505413583]="MsgShowFormSet",$[$.MsgProgressUpdateSet=-505413582]="MsgProgressUpdateSet",$[$.MsgListen=-505413581]="MsgListen",function($){$[$.NotSet=0]="NotSet",$[$.ShowForm=1]="ShowForm",$[$.ProgressUpdate=2]="ProgressUpdate"}(ne=A.MethodEnum||(A.MethodEnum={})),function($){$[$.NotSet=0]="NotSet",$[$.InstallInitial=1]="InstallInitial",$[$.InstallChecking=2]="InstallChecking",$[$.InstallCheckWarnings=3]="InstallCheckWarnings",$[$.InstallCheckFailed=4]="InstallCheckFailed",$[$.InstallCheckWait=5]="InstallCheckWait",$[$.Eula=6]="Eula",$[$.InstallSelect=7]="InstallSelect",$[$.InstallSelectCustom=8]="InstallSelectCustom",$[$.InstallSelectInstallPath=9]="InstallSelectInstallPath",$[$.PreInstallCheck=10]="PreInstallCheck",$[$.PreInstallCheckRetry=11]="PreInstallCheckRetry",$[$.PreInstallCheckWait=12]="PreInstallCheckWait",$[$.PreRebootInstall=13]="PreRebootInstall",$[$.PackageDownloadProgress=14]="PackageDownloadProgress",$[$.ProcessDownloadedPackage=15]="ProcessDownloadedPackage",$[$.PackageDownloadFailed=16]="PackageDownloadFailed",$[$.InstallProgress=17]="InstallProgress",$[$.InstallRemoveProgress=18]="InstallRemoveProgress",$[$.InstallFinished=19]="InstallFinished",$[$.InstallFinishedNoSummary=20]="InstallFinishedNoSummary",$[$.InstallFinishedLaunch=21]="InstallFinishedLaunch",$[$.InstallFinishedNoSummaryLaunch=22]="InstallFinishedNoSummaryLaunch",$[$.InstallFinishedOptions=23]="InstallFinishedOptions",$[$.InstallFinishedNoSummaryOptions=24]="InstallFinishedNoSummaryOptions",$[$.InstallReboot=25]="InstallReboot",$[$.InstallRebootOptions=26]="InstallRebootOptions",$[$.InstallRebootNoSummary=27]="InstallRebootNoSummary",$[$.InstallRebootNoSummaryOptions=28]="InstallRebootNoSummaryOptions",$[$.InstallRemoveReboot=29]="InstallRemoveReboot",$[$.InstallFailed=30]="InstallFailed",$[$.WaitingOnUac=31]="WaitingOnUac"}(G=A.FormEnum||(A.FormEnum={})),function($){$[$.Next=0]="Next",$[$.Close=1]="Close"}(W=A.NextActionEnum||(A.NextActionEnum={}))}(r||(r={})),function(A){let me;var W;let ne,G;(W=me=A.DriverTypeEnum||(A.DriverTypeEnum={}))[W.GameReadyDriver=0]="GameReadyDriver",W[W.CreatorReadyDriver=1]="CreatorReadyDriver",function(W){W[W.WsRecommendedDriver=2]="WsRecommendedDriver",W[W.WsLeadingEdgeDriver=3]="WsLeadingEdgeDriver",W[W.WsConservativeDriver=4]="WsConservativeDriver"}(ne=A.UpdateStrategyEnum||(A.UpdateStrategyEnum={})),function(W){W.started="started",W.finished="finished",W.failed="failed",W.cancelled="cancelled"}(G=A.DriverUpdateCheckProgress||(A.DriverUpdateCheckProgress={}))}(a||(a={})),function(A){let me;var Fe;let ne,G,W,$,le,Pe;(Fe=me=A.ApplicationScanType||(A.ApplicationScanType={})).fast="fast",Fe.traditional="traditional",function(Fe){Fe.STRING="STRING",Fe.INT="INT",Fe.FLOAT="FLOAT",Fe.ENUM="ENUM",Fe.BOOL="BOOL",Fe.DRIVER_ENUM="DRIVER_ENUM"}(ne=A.Type||(A.Type={})),function(Fe){Fe.AC="AC",Fe.DC="DC"}(G=A.ApplicationPowerMode||(A.ApplicationPowerMode={})),function(Fe){Fe.DISABLED="DISABLED",Fe.UNOPTIMIZED="UNOPTIMIZED",Fe.CUSTOMIZED="CUSTOMIZED",Fe.OPTIMIZED="OPTIMIZED"}(W=A.OptimizationState||(A.OptimizationState={})),function(Fe){Fe.started="started",Fe.finished="finished",Fe.failed="failed",Fe.progress="progress"}($=A.Status||(A.Status={})),function(Fe){Fe[Fe.Invalid=-1]="Invalid",Fe[Fe.Notifications=0]="Notifications",Fe[Fe.Display=1]="Display"}(le=A.PageId||(A.PageId={})),function(Fe){Fe[Fe.STARTED=1]="STARTED",Fe[Fe.FINISHED=2]="FINISHED"}(Pe=A.OotbStatus||(A.OotbStatus={}))}(c||(c={})),function(A){let me;var be;let ne,G,W,$,le,Pe,Fe,At,Le,Et,$e,Ze,Qe,Ve,nt,Ot,at,It,We,xe,lt,ft,ht,Xt,Ht,Je,tt,rt,et,St,Gt,yt,Wt,ke;(be=me=A.RamType||(A.RamType={}))[be.UNKNOWN=0]="UNKNOWN",be[be.SDRAM=1]="SDRAM",be[be.DDR1=2]="DDR1",be[be.DDR2=3]="DDR2",be[be.GDDR2=4]="GDDR2",be[be.GDDR3=5]="GDDR3",be[be.GDDR4=6]="GDDR4",be[be.DDR3=7]="DDR3",be[be.GDDR5=8]="GDDR5",be[be.GDDR5X=9]="GDDR5X",be[be.HBM1=10]="HBM1",be[be.HBM2=11]="HBM2",be[be.SDDR4=12]="SDDR4",be[be.GDDR6=14]="GDDR6",be[be.GDDR6X=15]="GDDR6X",be[be.GDDR7=16]="GDDR7",function(be){be[be.UNKNOWN=0]="UNKNOWN",be[be.AGP=1]="AGP",be[be.PCI=2]="PCI",be[be.FPCI=3]="FPCI",be[be.PCI_EXPRESS=4]="PCI_EXPRESS",be[be.PCI_EXPRESS_GEN2=5]="PCI_EXPRESS_GEN2",be[be.PCI_EXPRESS_GEN3=6]="PCI_EXPRESS_GEN3",be[be.PCI_EXPRESS_GEN4=7]="PCI_EXPRESS_GEN4",be[be.PCI_EXPRESS_GEN5=8]="PCI_EXPRESS_GEN5",be[be.PCI_EXPRESS_GEN6=9]="PCI_EXPRESS_GEN6",be[be.AXI=10]="AXI"}(ne=A.BusType||(A.BusType={})),function(be){be[be.No=0]="No",be[be.On=1]="On",be[be.Yes=2]="Yes"}(G=A.MaxQType||(A.MaxQType={})),function(be){be[be.Response_Ok=0]="Response_Ok",be[be.Response_MultiHead=1]="Response_MultiHead",be[be.Response_MultiHeadInactive=2]="Response_MultiHeadInactive",be[be.Response_IGpuUnavailable=3]="Response_IGpuUnavailable",be[be.Response_IGpuInternalHeadUnavailable=4]="Response_IGpuInternalHeadUnavailable",be[be.Response_IGpuInternalHeadRecovered=5]="Response_IGpuInternalHeadRecovered",be[be.Response_ConnectedDisplay=6]="Response_ConnectedDisplay"}(W=A.KmdResponse||(A.KmdResponse={})),function(be){be[be.PSR_Unknown=0]="PSR_Unknown",be[be.Sideband=1]="Sideband",be[be.PSR_Supported=2]="PSR_Supported",be[be.PSR_Failed=3]="PSR_Failed"}($=A.SrType||(A.SrType={})),function(be){be[be.State_Invalid=0]="State_Invalid",be[be.State_IGPU=1]="State_IGPU",be[be.State_DGPU=2]="State_DGPU"}(le=A.MuxState||(A.MuxState={})),function(be){be[be.MOSAIC_NONE=0]="MOSAIC_NONE",be[be.SLIMOSAIC=1]="SLIMOSAIC",be[be.SURROUND=2]="SURROUND",be[be.BASE_MOSAIC=3]="BASE_MOSAIC",be[be.NEXTGENSURROUND=4]="NEXTGENSURROUND"}(Pe=A.MosaicType||(A.MosaicType={})),function(be){be[be.Rotation0=0]="Rotation0",be[be.Rotation90=1]="Rotation90",be[be.Rotation180=2]="Rotation180",be[be.Rotation270=3]="Rotation270"}(Fe=A.RotationType||(A.RotationType={})),function(be){be[be.SuperResValue_Off=0]="SuperResValue_Off",be[be.SuperResValue_1=1]="SuperResValue_1",be[be.SuperResValue_2=2]="SuperResValue_2",be[be.SuperResValue_3=3]="SuperResValue_3",be[be.SuperResValue_4=4]="SuperResValue_4",be[be.SuperResValue_Auto=5]="SuperResValue_Auto"}(At=A.SuperResolutionValue||(A.SuperResolutionValue={})),function(be){be[be.SuperResStatus_Off=0]="SuperResStatus_Off",be[be.SuperResStatus_1=1]="SuperResStatus_1",be[be.SuperResStatus_2=2]="SuperResStatus_2",be[be.SuperResStatus_3=3]="SuperResStatus_3",be[be.SuperResStatus_4=4]="SuperResStatus_4"}(Le=A.SuperResolutionStatus||(A.SuperResolutionStatus={})),function(be){be[be.SuperResGpuUtil_Low=0]="SuperResGpuUtil_Low",be[be.SuperResGpuUtil_Medium=1]="SuperResGpuUtil_Medium",be[be.SuperResGpuUtil_High=2]="SuperResGpuUtil_High"}(Et=A.SuperResolutionGpuUtilization||(A.SuperResolutionGpuUtilization={})),function(be){be[be.SuperResIndicator_Off=0]="SuperResIndicator_Off",be[be.SuperResIndicator_On=1]="SuperResIndicator_On"}($e=A.SuperResolutionIndicator||(A.SuperResolutionIndicator={})),function(be){be[be.DisableVSROnGameLaunch_Off=0]="DisableVSROnGameLaunch_Off",be[be.DisableVSROnGameLaunch_On=1]="DisableVSROnGameLaunch_On"}(Ze=A.DisableVsrOnGameLaunch||(A.DisableVsrOnGameLaunch={})),function(be){be[be.HDRIndicator_Off=0]="HDRIndicator_Off",be[be.HDRIndicator_On=1]="HDRIndicator_On"}(Qe=A.HdrIndicator||(A.HdrIndicator={})),function(be){be[be.DisableHDROnGameLaunch_Off=0]="DisableHDROnGameLaunch_Off",be[be.DisableHDROnGameLaunch_On=1]="DisableHDROnGameLaunch_On"}(Ve=A.DisableHdrOnGameLaunch||(A.DisableHdrOnGameLaunch={})),function(be){be[be.SUCCESS=0]="SUCCESS",be[be.NO_HDR_DISPLAY_CONNECTED=1]="NO_HDR_DISPLAY_CONNECTED",be[be.ENABLE_HDR_FROM_WINDOWS=2]="ENABLE_HDR_FROM_WINDOWS",be[be.SURROUND_ENABLED=3]="SURROUND_ENABLED"}(nt=A.HdrErrorCodeInfo||(A.HdrErrorCodeInfo={})),function(be){be[be.RGB=0]="RGB",be[be.YCBCR422=1]="YCBCR422",be[be.YCBCR444=2]="YCBCR444",be[be.YCBCR420=3]="YCBCR420",be[be.UNKNOWN=4]="UNKNOWN"}(Ot=A.OutPutColorFormat||(A.OutPutColorFormat={})),function(be){be[be.GsyncUltimate=0]="GsyncUltimate",be[be.GSyncCapable=1]="GSyncCapable",be[be.GSyncCompatible=2]="GSyncCompatible",be[be.VRR=3]="VRR",be[be.NotSupported=4]="NotSupported"}(at=A.GSyncCapabilities||(A.GSyncCapabilities={})),function(be){be[be.Off=0]="Off",be[be.FullscreenOnly=1]="FullscreenOnly",be[be.FullscreenAndWindowed=2]="FullscreenAndWindowed",be[be.NotAvailable=3]="NotAvailable"}(It=A.GlobalGsyncState||(A.GlobalGsyncState={})),function(be){be[be.None=0]="None",be[be.NonHD=1]="NonHD",be[be.SD576i=2]="SD576i",be[be.SD480i=3]="SD480i",be[be.ED480p=4]="ED480p",be[be.ED576p=5]="ED576p",be[be.HD720p=6]="HD720p",be[be.HD1080i=7]="HD1080i",be[be.HD1080p=8]="HD1080p",be[be.HD720p50=9]="HD720p50",be[be.HD1080p24=10]="HD1080p24",be[be.HD1080i50=11]="HD1080i50",be[be.HD1080p50=12]="HD1080p50",be[be.UHD4Kp30=13]="UHD4Kp30",be[be.UHD4Kp25=14]="UHD4Kp25",be[be.UHD4Kp24=15]="UHD4Kp24",be[be.UHD4Kp24Smpte=16]="UHD4Kp24Smpte",be[be.UHD4Kp303840=17]="UHD4Kp303840",be[be.UHD4Kp253840=18]="UHD4Kp253840",be[be.UHD4Kp243840=19]="UHD4Kp243840",be[be.UHD4Kp503840=20]="UHD4Kp503840",be[be.UHD4Kp603840=21]="UHD4Kp603840",be[be.UHD4Kp304096=22]="UHD4Kp304096",be[be.UHD4Kp254096=23]="UHD4Kp254096",be[be.UHD4Kp244096=24]="UHD4Kp244096",be[be.UHD4Kp504096=25]="UHD4Kp504096",be[be.UHD4Kp604096=26]="UHD4Kp604096",be[be.UHD8Kp247680=27]="UHD8Kp247680",be[be.UHD8Kp257680=28]="UHD8Kp257680",be[be.UHD8Kp307680=29]="UHD8Kp307680",be[be.UHD8Kp487680=30]="UHD8Kp487680",be[be.UHD8Kp507680=31]="UHD8Kp507680",be[be.UHD8Kp607680=32]="UHD8Kp607680",be[be.UHD8Kp1007680=33]="UHD8Kp1007680",be[be.UHD8Kp1207680=34]="UHD8Kp1207680",be[be.Invalid=35]="Invalid"}(We=A.TvFormat||(A.TvFormat={})),function(be){be[be.CT_VGA=0]="CT_VGA",be[be.CT_DVI=1]="CT_DVI",be[be.CT_COMPOSITE=2]="CT_COMPOSITE",be[be.CT_SVIDEO=3]="CT_SVIDEO",be[be.CT_COMPONENT=4]="CT_COMPONENT",be[be.CT_HDMI=5]="CT_HDMI",be[be.CT_DISPLAYPORT=6]="CT_DISPLAYPORT",be[be.CT_USBC=7]="CT_USBC",be[be.CT_LVDS=8]="CT_LVDS",be[be.CT_AUTO=9]="CT_AUTO",be[be.CT_UNKNOWN=10]="CT_UNKNOWN"}(xe=A.ConnectorType||(A.ConnectorType={})),function(be){be[be.bit_8=0]="bit_8",be[be.bit_10=1]="bit_10",be[be.bit_16=2]="bit_16",be[be.bit_16_HDR=3]="bit_16_HDR",be[be.bit_16_WCG=4]="bit_16_WCG",be[be.bit_Default=-1]="bit_Default"}(lt=A.DesktopColorDepth||(A.DesktopColorDepth={})),function(be){be[be.None=0]="None",be[be.Crt=1]="Crt",be[be.Internal=2]="Internal",be[be.Tv=3]="Tv",be[be.Dvi=4]="Dvi"}(ft=A.DeviceType||(A.DeviceType={})),function(be){be[be.None=0]="None",be[be.CloneDisplay=1]="CloneDisplay",be[be.SurroundDisplay=2]="SurroundDisplay",be[be.MosaicDisplay=3]="MosaicDisplay"}(ht=A.LogicalDisplayType||(A.LogicalDisplayType={})),function(be){be[be.Invalid=-1]="Invalid",be[be.VESA=0]="VESA",be[be.CEA=1]="CEA",be[be.AUTO=2]="AUTO"}(Xt=A.DynamicRange||(A.DynamicRange={})),function(be){be[be.Invalid=-1]="Invalid",be[be.BPC_6=0]="BPC_6",be[be.BPC_8=1]="BPC_8",be[be.BPC_10=2]="BPC_10",be[be.BPC_12=3]="BPC_12",be[be.BPC_16=4]="BPC_16"}(Ht=A.OutputColorDepth||(A.OutputColorDepth={})),function(be){be[be.Invalid=0]="Invalid",be[be.Auto=1]="Auto",be[be.Reference=2]="Reference",be[be.Accurate=3]="Accurate",be[be.Enhanced=4]="Enhanced"}(Je=A.ColorAccuracyMode||(A.ColorAccuracyMode={})),function(be){be[be.Auto=0]="Auto",be[be.GTF=1]="GTF",be[be.DMT=2]="DMT",be[be.CVT=3]="CVT",be[be.CVTRB=4]="CVTRB",be[be.Manual=5]="Manual",be[be.OverrideEIA861=6]="OverrideEIA861"}(tt=A.TimingFormula||(A.TimingFormula={})),function(be){be[be.Monitor=0]="Monitor",be[be.Adapter=1]="Adapter",be[be.Centered=2]="Centered",be[be.FixedAspect=3]="FixedAspect"}(rt=A.ScalingType||(A.ScalingType={})),function(be){be[be.None=0]="None",be[be.FullScreen=1]="FullScreen",be[be.FixedAspect=2]="FixedAspect",be[be.NoScale=3]="NoScale",be[be.IntegerScaling=4]="IntegerScaling"}(et=A.ScalingMethod||(A.ScalingMethod={})),function(be){be[be.None=0]="None",be[be.Gpu=1]="Gpu",be[be.Display=2]="Display"}(St=A.ScalingMode||(A.ScalingMode={})),function(be){be[be.ClearCache=0]="ClearCache",be[be.RefreshCache=1]="RefreshCache",be[be.AddResolution=2]="AddResolution",be[be.FlushToStorage=3]="FlushToStorage"}(Gt=A.CustomResolutionLocalCacheActions||(A.CustomResolutionLocalCacheActions={})),function(be){be[be.Auto=0]="Auto",be[be.Video=1]="Video",be[be.Desktop=2]="Desktop",be[be.Photo=3]="Photo",be[be.Movie=4]="Movie",be[be.Game=5]="Game"}(yt=A.ContentType||(A.ContentType={})),function(be){be[be.DDSTrayIcon=0]="DDSTrayIcon",be[be.DDSDesktopNotification=1]="DDSDesktopNotification"}(Wt=A.UiElemType||(A.UiElemType={})),function(be){be[be.DISABLE=0]="DISABLE",be[be.ENABLE=1]="ENABLE"}(ke=A.UiElemState||(A.UiElemState={}))}(m||(m={})),function(A){let me;var bt;let ne,G,W,$,le,Pe,Fe,At,Le,Et,$e,Ze,Qe,Ve,nt,Ot,at,It,We,xe,lt,ft,ht,Xt,Ht,Je,tt,rt,et,St,Gt,yt,Wt,ke,be,Ae,qe,Lt,Zt,fn,hn,On,fi,Ji,Fi;(bt=me=A.ProfileSettingType||(A.ProfileSettingType={}))[bt.type_invalid=-1]="type_invalid",bt[bt.type_integer=0]="type_integer",bt[bt.type_string=1]="type_string",bt[bt.type_boolean=2]="type_boolean",bt[bt.type_json_string=3]="type_json_string",function(bt){bt[bt.UNKNOWN=0]="UNKNOWN",bt[bt.SUPPORTED=1]="SUPPORTED",bt[bt.UNSUPPORTED=2]="UNSUPPORTED"}(ne=A.HwSupportType||(A.HwSupportType={})),function(bt){bt[bt.Unknown=0]="Unknown",bt[bt.GpuUnsupported=1]="GpuUnsupported",bt[bt.DriverUnsupported=2]="DriverUnsupported",bt[bt.HardwareSchedulingUnavailable=3]="HardwareSchedulingUnavailable",bt[bt.GraphicsApiUnsupported=4]="GraphicsApiUnsupported",bt[bt.DenyListed=5]="DenyListed",bt[bt.x86Unsupported=6]="x86Unsupported",bt[bt.SRModelDenyListed=7]="SRModelDenyListed",bt[bt.RRModelDenyListed=8]="RRModelDenyListed",bt[bt.FGMultiFrameCountUnsupported=9]="FGMultiFrameCountUnsupported"}(G=A.ConstraintType||(A.ConstraintType={})),function(bt){bt[bt.ScanDetectSupported=0]="ScanDetectSupported",bt[bt.NGXDetectSupported=1]="NGXDetectSupported",bt[bt.ScanDetectUnknown=2]="ScanDetectUnknown",bt[bt.NGXDetectUnknown=3]="NGXDetectUnknown"}(W=A.DlssSupportState||(A.DlssSupportState={})),function(bt){bt[bt.Unknown=-1]="Unknown",bt[bt.OpenGL=1]="OpenGL",bt[bt.DX9=2]="DX9",bt[bt.DX10=3]="DX10",bt[bt.DX10_1=8]="DX10_1",bt[bt.DX11=10]="DX11",bt[bt.OpenCL=64]="OpenCL",bt[bt.DX12=128]="DX12",bt[bt.Vulkan=256]="Vulkan"}($=A.GraphicsApi||(A.GraphicsApi={})),function(bt){bt[bt.NVCPLAPI_VALUE_TRILINEAR_OPT_ON=0]="NVCPLAPI_VALUE_TRILINEAR_OPT_ON",bt[bt.NVCPLAPI_VALUE_TRILINEAR_OPT_OFF=1]="NVCPLAPI_VALUE_TRILINEAR_OPT_OFF"}(le=A.TextureFilteringTrilinearValue||(A.TextureFilteringTrilinearValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_VERTICAL_SYNC_APPCONTROLLED=0]="NVCPLAPI_VALUE_VERTICAL_SYNC_APPCONTROLLED",bt[bt.NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEOFF=1]="NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEOFF",bt[bt.NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEON=2]="NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEON",bt[bt.NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEON_INTERVAL2=3]="NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEON_INTERVAL2",bt[bt.NVCPLAPI_VALUE_VERTICAL_SYNC_AUTO=4]="NVCPLAPI_VALUE_VERTICAL_SYNC_AUTO",bt[bt.NVCPLAPI_VALUE_VERTICAL_SYNC_AUTO_INTERVAL2=5]="NVCPLAPI_VALUE_VERTICAL_SYNC_AUTO_INTERVAL2",bt[bt.NVCPLAPI_VALUE_VERTICAL_SYNC_SMOOTH=6]="NVCPLAPI_VALUE_VERTICAL_SYNC_SMOOTH",bt[bt.NVCPLAPI_VALUE_VERTICAL_SYNC_VRR_ENABLE=8]="NVCPLAPI_VALUE_VERTICAL_SYNC_VRR_ENABLE",bt[bt.NVCPLAPI_VALUE_VERTICAL_SYNC_VRR_NONE=9]="NVCPLAPI_VALUE_VERTICAL_SYNC_VRR_NONE",bt[bt.NVCPLAPI_VALUE_VERTICAL_SYNC_VIRTUAL=10]="NVCPLAPI_VALUE_VERTICAL_SYNC_VIRTUAL"}(Pe=A.VerticalSyncValue||(A.VerticalSyncValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_AUTO=0]="NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_AUTO",bt[bt.NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_ON=1]="NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_ON",bt[bt.NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_OFF=2]="NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_OFF"}(Fe=A.ThreadedOptimizationValue||(A.ThreadedOptimizationValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_OGL_OVERLAYSUPPORT_OFF=0]="NVCPLAPI_VALUE_OGL_OVERLAYSUPPORT_OFF",bt[bt.NVCPLAPI_VALUE_OGL_OVERLAYSUPPORT_ON=1]="NVCPLAPI_VALUE_OGL_OVERLAYSUPPORT_ON"}(At=A.EnableOverlayValue||(A.EnableOverlayValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_NONE=0]="NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_NONE",bt[bt.NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_CI=1]="NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_CI",bt[bt.NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_RGBA=2]="NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_RGBA",bt[bt.NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_CI_AND_RGBA=3]="NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_CI_AND_RGBA"}(Le=A.ExportedpixeltypesValue||(A.ExportedpixeltypesValue={})),function(bt){bt[bt.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_DISABLED=0]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_DISABLED",bt[bt.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_128=1]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_128",bt[bt.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_256=2]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_256",bt[bt.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_512=3]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_512",bt[bt.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_1GB=4]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_1GB",bt[bt.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_5GB=5]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_5GB",bt[bt.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_10GB=6]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_10GB",bt[bt.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_100GB=7]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_100GB",bt[bt.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_Unlimited=8]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_Unlimited",bt[bt.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_DEFAULT=9]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_DEFAULT"}(Et=A.ShaderCacheValue||(A.ShaderCacheValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_NONE=0]="NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_NONE",bt[bt.NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_ONE=1]="NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_ONE",bt[bt.NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_TWO=2]="NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_TWO",bt[bt.NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_THREE=3]="NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_THREE",bt[bt.NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_FOUR=4]="NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_FOUR"}($e=A.VirtualRealityPreRenderedFramesValue||(A.VirtualRealityPreRenderedFramesValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_PREFERRED_REFRATE_APP_CONTROL=0]="NVCPLAPI_VALUE_PREFERRED_REFRATE_APP_CONTROL",bt[bt.NVCPLAPI_VALUE_PREFERRED_REFRATE_OVERRIDE=1]="NVCPLAPI_VALUE_PREFERRED_REFRATE_OVERRIDE"}(Ze=A.PreferredRefreshRateValue||(A.PreferredRefreshRateValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_ADAPTIVE=0]="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_ADAPTIVE",bt[bt.NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_MAX=1]="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_MAX",bt[bt.NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_DRIVER_CONTROLLED=2]="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_DRIVER_CONTROLLED",bt[bt.NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_PREFER_CONSISTENT_PERFORMANCE=3]="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_PREFER_CONSISTENT_PERFORMANCE",bt[bt.NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_OPTIMAL_POWER=5]="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_OPTIMAL_POWER"}(Qe=A.PowerManagementModeValue||(A.PowerManagementModeValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_OGL_VULKAN_PRESENT_METHOD_PREFER_DISABLED=0]="NVCPLAPI_VALUE_OGL_VULKAN_PRESENT_METHOD_PREFER_DISABLED",bt[bt.NVCPLAPI_VALUE_OGL_VULKAN_PRESENT_METHOD_PREFER_ENABLED=1]="NVCPLAPI_VALUE_OGL_VULKAN_PRESENT_METHOD_PREFER_ENABLED",bt[bt.NVCPLAPI_VALUE_OGL_VULKAN_PRESENT_METHOD_AUTO=2]="NVCPLAPI_VALUE_OGL_VULKAN_PRESENT_METHOD_AUTO"}(Ve=A.OpenGlVulkanPresentMethodValue||(A.OpenGlVulkanPresentMethodValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_OGL_GDI_COMPATIBILITY_PREFER_DISABLED=0]="NVCPLAPI_VALUE_OGL_GDI_COMPATIBILITY_PREFER_DISABLED",bt[bt.NVCPLAPI_VALUE_OGL_GDI_COMPATIBILITY_PREFER_ENABLED=1]="NVCPLAPI_VALUE_OGL_GDI_COMPATIBILITY_PREFER_ENABLED",bt[bt.NVCPLAPI_VALUE_OGL_GDI_COMPATIBILITY_AUTO=2]="NVCPLAPI_VALUE_OGL_GDI_COMPATIBILITY_AUTO"}(nt=A.OpenGlGdiCompatibilityValue||(A.OpenGlGdiCompatibilityValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_ANISOTROPIC_APP_CONTROLLED=1048576]="NVCPLAPI_VALUE_ANISOTROPIC_APP_CONTROLLED",bt[bt.NVCPLAPI_VALUE_ANISOTROPIC_OFF=1]="NVCPLAPI_VALUE_ANISOTROPIC_OFF",bt[bt.NVCPLAPI_VALUE_ANISOTROPIC_2X=2]="NVCPLAPI_VALUE_ANISOTROPIC_2X",bt[bt.NVCPLAPI_VALUE_ANISOTROPIC_4X=4]="NVCPLAPI_VALUE_ANISOTROPIC_4X",bt[bt.NVCPLAPI_VALUE_ANISOTROPIC_8X=8]="NVCPLAPI_VALUE_ANISOTROPIC_8X",bt[bt.NVCPLAPI_VALUE_ANISOTROPIC_16X=16]="NVCPLAPI_VALUE_ANISOTROPIC_16X"}(Ot=A.AnisotropicFilteringValue||(A.AnisotropicFilteringValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_TEXTURE_FILTERING_LOD_NO_ALLOW=0]="NVCPLAPI_VALUE_TEXTURE_FILTERING_LOD_NO_ALLOW",bt[bt.NVCPLAPI_VALUE_TEXTURE_FILTERING_LOD_NO_CLAMP=1]="NVCPLAPI_VALUE_TEXTURE_FILTERING_LOD_NO_CLAMP"}(at=A.TextureFilteringNegativeMethodValue||(A.TextureFilteringNegativeMethodValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_D3D_PERFORMANCE_HIQUAL=0]="NVCPLAPI_VALUE_D3D_PERFORMANCE_HIQUAL",bt[bt.NVCPLAPI_VALUE_D3D_PERFORMANCE_QUAL=1]="NVCPLAPI_VALUE_D3D_PERFORMANCE_QUAL",bt[bt.NVCPLAPI_VALUE_D3D_PERFORMANCE_PERF=2]="NVCPLAPI_VALUE_D3D_PERFORMANCE_PERF",bt[bt.NVCPLAPI_VALUE_D3D_PERFORMANCE_HIPERF=3]="NVCPLAPI_VALUE_D3D_PERFORMANCE_HIPERF"}(It=A.TextureFilteringQualityValue||(A.TextureFilteringQualityValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_IMAGE_SHARPENING_TOGGLE_DISABLED=0]="NVCPLAPI_VALUE_IMAGE_SHARPENING_TOGGLE_DISABLED",bt[bt.NVCPLAPI_VALUE_IMAGE_SHARPENING_TOGGLE_ENABLED=1]="NVCPLAPI_VALUE_IMAGE_SHARPENING_TOGGLE_ENABLED"}(We=A.ImageSharpeningToggleValue||(A.ImageSharpeningToggleValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_SHARPENING_ALLOW_DISABLED=0]="NVCPLAPI_VALUE_SHARPENING_ALLOW_DISABLED",bt[bt.NVCPLAPI_VALUE_SHARPENING_ALLOW_ENABLED=1]="NVCPLAPI_VALUE_SHARPENING_ALLOW_ENABLED"}(xe=A.ImageSharpeningAllowValue||(A.ImageSharpeningAllowValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_WHISPER_MODE_FPS_OFF=0]="NVCPLAPI_VALUE_WHISPER_MODE_FPS_OFF",bt[bt.NVCPLAPI_VALUE_WHISPER_MODE_FPS_ON=1]="NVCPLAPI_VALUE_WHISPER_MODE_FPS_ON"}(lt=A.WhisperModeProgramValue||(A.WhisperModeProgramValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_LOW=0]="NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_LOW",bt[bt.NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_MEDIUM=1]="NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_MEDIUM",bt[bt.NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_HIGH=2]="NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_HIGH",bt[bt.NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_ULTRA=3]="NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_ULTRA",bt[bt.NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_OFF=4]="NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_OFF"}(ft=A.SilkSmoothnessValue||(A.SilkSmoothnessValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_LATENCY_MODE_BEST_PERFORMANCE=0]="NVCPLAPI_VALUE_LATENCY_MODE_BEST_PERFORMANCE",bt[bt.NVCPLAPI_VALUE_LATENCY_MODE_LOW_LATENCY=1]="NVCPLAPI_VALUE_LATENCY_MODE_LOW_LATENCY",bt[bt.NVCPLAPI_VALUE_LATENCY_MODE_LOWEST_LATENCY=2]="NVCPLAPI_VALUE_LATENCY_MODE_LOWEST_LATENCY"}(ht=A.LowLatencyModeValue||(A.LowLatencyModeValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_VR_AUTOVRS_OFF=0]="NVCPLAPI_VALUE_VR_AUTOVRS_OFF",bt[bt.NVCPLAPI_VALUE_VR_AUTOVRS_FORCED=1]="NVCPLAPI_VALUE_VR_AUTOVRS_FORCED",bt[bt.NVCPLAPI_VALUE_VR_AUTOVRS_ADAPTIVE=2]="NVCPLAPI_VALUE_VR_AUTOVRS_ADAPTIVE"}(Xt=A.VirtualRealityVrssValue||(A.VirtualRealityVrssValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_AUTOFL_DB_OFF=0]="NVCPLAPI_VALUE_AUTOFL_DB_OFF",bt[bt.NVCPLAPI_VALUE_AUTOFL_DB_ON=1]="NVCPLAPI_VALUE_AUTOFL_DB_ON"}(Ht=A.MaxqDynamicBoostValue||(A.MaxqDynamicBoostValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_AUTO_DISPLAYMUX_INDICATOR_OFF=0]="NVCPLAPI_VALUE_AUTO_DISPLAYMUX_INDICATOR_OFF",bt[bt.NVCPLAPI_VALUE_AUTO_DISPLAYMUX_INDICATOR_ON=1]="NVCPLAPI_VALUE_AUTO_DISPLAYMUX_INDICATOR_ON"}(Je=A.AutoDisplaySwitchingValue||(A.AutoDisplaySwitchingValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_WHISPER_MODE_ALLOW_DISABLED=0]="NVCPLAPI_VALUE_WHISPER_MODE_ALLOW_DISABLED",bt[bt.NVCPLAPI_VALUE_WHISPER_MODE_ALLOW_ENABLED=1]="NVCPLAPI_VALUE_WHISPER_MODE_ALLOW_ENABLED"}(tt=A.WhisperModeGlobalValue||(A.WhisperModeGlobalValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_MT_GSYNC_ON=0]="NVCPLAPI_VALUE_MT_GSYNC_ON",bt[bt.NVCPLAPI_VALUE_MT_GSYNC_FORCE_OFF=1]="NVCPLAPI_VALUE_MT_GSYNC_FORCE_OFF",bt[bt.NVCPLAPI_VALUE_MT_VRR_OFF=2]="NVCPLAPI_VALUE_MT_VRR_OFF",bt[bt.NVCPLAPI_VALUE_MT_ULMB_ON=3]="NVCPLAPI_VALUE_MT_ULMB_ON",bt[bt.NVCPLAPI_VALUE_MT_FIXED_REFRESH=4]="NVCPLAPI_VALUE_MT_FIXED_REFRESH"}(rt=A.MonitorTechnologyValue||(A.MonitorTechnologyValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_POWER_MANAGEMENT_PANEL_OFF=0]="NVCPLAPI_VALUE_POWER_MANAGEMENT_PANEL_OFF",bt[bt.NVCPLAPI_VALUE_POWER_MANAGEMENT_PANEL_SELF_REFRESH_MODE=1]="NVCPLAPI_VALUE_POWER_MANAGEMENT_PANEL_SELF_REFRESH_MODE"}(et=A.PowerManagementPanelValue||(A.PowerManagementPanelValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_ENABLE_STEREO_OFF=0]="NVCPLAPI_VALUE_ENABLE_STEREO_OFF",bt[bt.NVCPLAPI_VALUE_ENABLE_STEREO_ON=1]="NVCPLAPI_VALUE_ENABLE_STEREO_ON"}(St=A.StereoEnableValue||(A.StereoEnableValue={})),function(bt){bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DIN=1]="NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DIN",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DIN_NV_IR=2]="NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DIN_NV_IR",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DP_INBAND=3]="NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DP_INBAND",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_GENERIC=4]="NVAPPAPI_VALUE_STEREO_DISPLAY_GENERIC",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_GENERIC_NV_IR=5]="NVAPPAPI_VALUE_STEREO_DISPLAY_GENERIC_NV_IR",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_DDC_GLASSES=6]="NVAPPAPI_VALUE_STEREO_DISPLAY_DDC_GLASSES",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_NV_CLONE=7]="NVAPPAPI_VALUE_STEREO_DISPLAY_NV_CLONE",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_NV_CLONE_DLP=8]="NVAPPAPI_VALUE_STEREO_DISPLAY_NV_CLONE_DLP",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_BLUELINE=9]="NVAPPAPI_VALUE_STEREO_DISPLAY_BLUELINE",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_VERTICAL_INTERLACE=10]="NVAPPAPI_VALUE_STEREO_DISPLAY_VERTICAL_INTERLACE",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_COLOR_INTERLEAVE=11]="NVAPPAPI_VALUE_STEREO_DISPLAY_COLOR_INTERLEAVE",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_HORIZONTAL_INTERLACE=12]="NVAPPAPI_VALUE_STEREO_DISPLAY_HORIZONTAL_INTERLACE",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_SUBFIELD=13]="NVAPPAPI_VALUE_STEREO_DISPLAY_SUBFIELD",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_SIDEFIELD=14]="NVAPPAPI_VALUE_STEREO_DISPLAY_SIDEFIELD",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_SEEFRONT=15]="NVAPPAPI_VALUE_STEREO_DISPLAY_SEEFRONT",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP=16]="NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_NV_IR=17]="NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_NV_IR",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_INV=18]="NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_INV",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_INV_NV_IR=19]="NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_INV_NV_IR",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_TRIDELITY_SL_SV=20]="NVAPPAPI_VALUE_STEREO_DISPLAY_TRIDELITY_SL_SV",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_TRIDELITY_MV=21]="NVAPPAPI_VALUE_STEREO_DISPLAY_TRIDELITY_MV",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_PLANAR_MIRROR=22]="NVAPPAPI_VALUE_STEREO_DISPLAY_PLANAR_MIRROR"}(Gt=A.StereoDisplayModeValue||(A.StereoDisplayModeValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_ENABLE_OGL_STEREO_SWAP_EYES_OFF=0]="NVCPLAPI_VALUE_ENABLE_OGL_STEREO_SWAP_EYES_OFF",bt[bt.NVCPLAPI_VALUE_ENABLE_OGL_STEREO_SWAP_EYES_ON=1]="NVCPLAPI_VALUE_ENABLE_OGL_STEREO_SWAP_EYES_ON"}(yt=A.StereoSwapEyeValue||(A.StereoSwapEyeValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_STEREO_SWAP_APPLICATION_CONTROL=0]="NVCPLAPI_VALUE_STEREO_SWAP_APPLICATION_CONTROL",bt[bt.NVCPLAPI_VALUE_STEREO_SWAP_PER_EYE=1]="NVCPLAPI_VALUE_STEREO_SWAP_PER_EYE",bt[bt.NVCPLAPI_VALUE_STEREO_SWAP_PER_EYE_PAIR=2]="NVCPLAPI_VALUE_STEREO_SWAP_PER_EYE_PAIR"}(Wt=A.StereoSwapModeValue||(A.StereoSwapModeValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_AA_APPCONTROL_MODE_OFF=0]="NVCPLAPI_VALUE_AA_APPCONTROL_MODE_OFF",bt[bt.NVCPLAPI_VALUE_AA_APPCONTROL_MODE_ON=1]="NVCPLAPI_VALUE_AA_APPCONTROL_MODE_ON",bt[bt.NVCPLAPI_VALUE_AA_APPCONTROL_MODE_ENHANCE=2]="NVCPLAPI_VALUE_AA_APPCONTROL_MODE_ENHANCE",bt[bt.NVCPLAPI_VALUE_AA_APPCONTROL_MODE_FORCE_OFF=3]="NVCPLAPI_VALUE_AA_APPCONTROL_MODE_FORCE_OFF"}(ke=A.AntialiasingModeValue||(A.AntialiasingModeValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_SLI_MGPU_AUTORENDER=0]="NVCPLAPI_VALUE_SLI_MGPU_AUTORENDER",bt[bt.NVCPLAPI_VALUE_SLI_MGPU_FORCE_SINGLE=4]="NVCPLAPI_VALUE_SLI_MGPU_FORCE_SINGLE",bt[bt.NVCPLAPI_VALUE_SLI_MGPU_FORCE_2_AFR=3]="NVCPLAPI_VALUE_SLI_MGPU_FORCE_2_AFR",bt[bt.NVCPLAPI_VALUE_SLI_MGPU_FORCE_2_AFR2=61443]="NVCPLAPI_VALUE_SLI_MGPU_FORCE_2_AFR2"}(be=A.SliMultiGpuRenderingModeValue||(A.SliMultiGpuRenderingModeValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_OGL_DEEP_COLOR_3D_DISABLE=0]="NVCPLAPI_VALUE_OGL_DEEP_COLOR_3D_DISABLE",bt[bt.NVCPLAPI_VALUE_OGL_DEEP_COLOR_3D_ENABLE=1]="NVCPLAPI_VALUE_OGL_DEEP_COLOR_3D_ENABLE"}(Ae=A.DeepColorFor3DApplicationsValue||(A.DeepColorFor3DApplicationsValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_NONE=0]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_NONE",bt[bt.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_APP_CONTROLLED=1048576]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_APP_CONTROLLED",bt[bt.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_2X_DIAGONAL=14]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_2X_DIAGONAL",bt[bt.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_4X=16]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_4X",bt[bt.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_8SX=24]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_8SX",bt[bt.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_8X=25]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_8X",bt[bt.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_16X=26]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_16X",bt[bt.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_32X=41]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_32X",bt[bt.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_64X=42]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_64X",bt[bt.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_128X=43]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_128X"}(qe=A.AntialiasingSettingValue||(A.AntialiasingSettingValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_OFF=0]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_OFF",bt[bt.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_MULTI_SAMPLING=3]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_MULTI_SAMPLING",bt[bt.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_SUPER_SAMPLING=5]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_SUPER_SAMPLING",bt[bt.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_1X=1]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_1X",bt[bt.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_2X=2]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_2X",bt[bt.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_4X=4]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_4X",bt[bt.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_8X=8]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_8X"}(Lt=A.AntialiasingTransparencyValue||(A.AntialiasingTransparencyValue={})),function(bt){bt[bt.V1=1]="V1",bt[bt.V2=2]="V2"}(Zt=A.BatteryBoostVersionEnum||(A.BatteryBoostVersionEnum={})),function(bt){bt[bt.V1=1]="V1",bt[bt.V2=2]="V2"}(fn=A.WhisperModeVersionEnum||(A.WhisperModeVersionEnum={})),function(bt){bt[bt.QUIETER=1]="QUIETER",bt[bt.QUIET=2]="QUIET",bt[bt.BALANCED=3]="BALANCED"}(hn=A.FanVolume||(A.FanVolume={})),function(bt){bt[bt.Default=3]="Default",bt[bt.Performance=0]="Performance",bt[bt.Balanced=1]="Balanced",bt[bt.Quality=2]="Quality",bt[bt.UltraPerformance=5]="UltraPerformance",bt[bt.Dlaa=4]="Dlaa",bt[bt.Custom=6]="Custom"}(On=A.PerformanceModeOverrideEnum||(A.PerformanceModeOverrideEnum={})),function(bt){bt[bt.Default=0]="Default",bt[bt.PresetA=1]="PresetA",bt[bt.PresetB=2]="PresetB",bt[bt.PresetC=3]="PresetC",bt[bt.PresetD=4]="PresetD",bt[bt.PresetE=5]="PresetE",bt[bt.PresetF=6]="PresetF",bt[bt.PresetJ=10]="PresetJ",bt[bt.PresetK=11]="PresetK",bt[bt.PresetL=12]="PresetL",bt[bt.PresetM=13]="PresetM",bt[bt.PresetN=14]="PresetN",bt[bt.PresetO=15]="PresetO",bt[bt.Latest=16777215]="Latest"}(fi=A.ModelOverrideEnum||(A.ModelOverrideEnum={})),function(bt){bt[bt.REMOVE=0]="REMOVE",bt[bt.OFF=1]="OFF",bt[bt.VALUE_3X=2]="VALUE_3X",bt[bt.VALUE_4X=3]="VALUE_4X"}(Ji=A.MultiFrameEnum||(A.MultiFrameEnum={})),function(bt){bt[bt.Default=0]="Default",bt[bt.Latest=1]="Latest",bt[bt.Custom=2]="Custom"}(Fi=A.DlssModelPresetProfileTypeEnum||(A.DlssModelPresetProfileTypeEnum={}))}(M||(M={})),function(A){let me;var G;let ne;(G=me=A.HotkeyEnum||(A.HotkeyEnum={})).OpenIGO="OpenIGO",G.OpenPerformanceOverlay="OpenPerformanceOverlay",G.OpenChatUI="OpenChatUI",function(G){G.unknown="unknown",G.enabled="enabled",G.disabled="disabled"}(ne=A.ShadowPlayStatus||(A.ShadowPlayStatus={}))}(D||(D={})),function(A){let me;var $;let ne,G,W;($=me=A.Type||(A.Type={}))[$.Unknown=0]="Unknown",$[$.GpuClock=1]="GpuClock",$[$.MemoryClock=2]="MemoryClock",$[$.Voltage=3]="Voltage",$[$.Power=4]="Power",$[$.Temperature=5]="Temperature",$[$.Fan=6]="Fan",function($){$[$.None=0]="None",$[$.ManualOc=1]="ManualOc",$[$.AutomaticOc=2]="AutomaticOc"}(ne=A.PersitenceType||(A.PersitenceType={})),function($){$[$.Default=0]="Default",$[$.Custom=1]="Custom",$[$.Silent=2]="Silent",$[$.MaxPerf=3]="MaxPerf"}(G=A.ProfileType||(A.ProfileType={})),function($){$[$.AC=0]="AC",$[$.DC=1]="DC",$[$.UPS_LIKE=2]="UPS_LIKE",$[$.Unknown=3]="Unknown"}(W=A.PowerStatus||(A.PowerStatus={}))}(I||(I={})),function(A){let me;var G;let ne;(G=me=A.Type||(A.Type={}))[G.Unknown=0]="Unknown",G[G.GpuClock=1]="GpuClock",G[G.MemoryClock=2]="MemoryClock",G[G.Voltage=3]="Voltage",G[G.Power=4]="Power",G[G.Temperature=5]="Temperature",G[G.Fan=6]="Fan",function(G){G[G.Default=0]="Default",G[G.Custom=1]="Custom",G[G.Silent=2]="Silent",G[G.MaxPerf=3]="MaxPerf"}(ne=A.Profile||(A.Profile={}))}(U||(U={})),function(A){let me;var le;let ne,G,W,$;(le=me=A.ContentType||(A.ContentType={}))[le.NV_RISE_CONTENT_TYPE_INVALID=0]="NV_RISE_CONTENT_TYPE_INVALID",le[le.NV_RISE_CONTENT_TYPE_TEXT=1]="NV_RISE_CONTENT_TYPE_TEXT",le[le.NV_RISE_CONTENT_TYPE_GRAPH=2]="NV_RISE_CONTENT_TYPE_GRAPH",le[le.NV_RISE_CONTENT_TYPE_CUSTOM_BEHAVIOR=3]="NV_RISE_CONTENT_TYPE_CUSTOM_BEHAVIOR",le[le.NV_RISE_CONTENT_TYPE_CUSTOM_BEHAVIOR_RESULT=4]="NV_RISE_CONTENT_TYPE_CUSTOM_BEHAVIOR_RESULT",le[le.NV_RISE_CONTENT_TYPE_INSTALLING=5]="NV_RISE_CONTENT_TYPE_INSTALLING",le[le.NV_RISE_CONTENT_TYPE_PROGRESS_UPDATE=6]="NV_RISE_CONTENT_TYPE_PROGRESS_UPDATE",le[le.NV_RISE_CONTENT_TYPE_READY=7]="NV_RISE_CONTENT_TYPE_READY",le[le.NV_RISE_CONTENT_TYPE_DOWNLOAD_REQUEST=8]="NV_RISE_CONTENT_TYPE_DOWNLOAD_REQUEST",function(le){le[le.NV_RISE_CONTENT_TYPE_INVALID=0]="NV_RISE_CONTENT_TYPE_INVALID",le[le.NV_RISE_CONTENT_TYPE_TEXT=1]="NV_RISE_CONTENT_TYPE_TEXT",le[le.NV_RISE_CONTENT_TYPE_GRAPH=2]="NV_RISE_CONTENT_TYPE_GRAPH",le[le.NV_RISE_CONTENT_TYPE_CUSTOM_BEHAVIOR=3]="NV_RISE_CONTENT_TYPE_CUSTOM_BEHAVIOR",le[le.NV_RISE_CONTENT_TYPE_CUSTOM_BEHAVIOR_RESULT=4]="NV_RISE_CONTENT_TYPE_CUSTOM_BEHAVIOR_RESULT",le[le.NV_RISE_CONTENT_TYPE_INSTALLING=5]="NV_RISE_CONTENT_TYPE_INSTALLING",le[le.NV_RISE_CONTENT_TYPE_PROGRESS_UPDATE=6]="NV_RISE_CONTENT_TYPE_PROGRESS_UPDATE",le[le.NV_RISE_CONTENT_TYPE_READY=7]="NV_RISE_CONTENT_TYPE_READY",le[le.NV_RISE_CONTENT_TYPE_DOWNLOAD_REQUEST=8]="NV_RISE_CONTENT_TYPE_DOWNLOAD_REQUEST"}(ne=A.ContentType1||(A.ContentType1={})),function(le){le[le.NvVqApi_VoiceQueryResponse_ASRText=0]="NvVqApi_VoiceQueryResponse_ASRText"}(G=A.ResponseType||(A.ResponseType={})),function(le){le[le.NvVqApi_VoiceQueryMode_Start=0]="NvVqApi_VoiceQueryMode_Start",le[le.NvVqApi_VoiceQueryMode_Stop=1]="NvVqApi_VoiceQueryMode_Stop",le[le.NvVqApi_VoiceQueryMode_StartAutoStop=2]="NvVqApi_VoiceQueryMode_StartAutoStop",le[le.NvVqApi_VoiceQueryMode_StartWakeWord=3]="NvVqApi_VoiceQueryMode_StartWakeWord",le[le.NvVqApi_VoiceQueryMode_StopWakeWord=4]="NvVqApi_VoiceQueryMode_StopWakeWord"}(W=A.VqMode||(A.VqMode={})),function(le){le[le.NvGameAssistApi_QueryResponse_ResponseChunk=0]="NvGameAssistApi_QueryResponse_ResponseChunk",le[le.NvGameAssistApi_QueryResponse_CitationChunk=1]="NvGameAssistApi_QueryResponse_CitationChunk",le[le.NvGameAssistApi_QueryResponse_Sentinel=2]="NvGameAssistApi_QueryResponse_Sentinel",le[le.NvGameAssistApi_QueryResponse_GameAssistReady=3]="NvGameAssistApi_QueryResponse_GameAssistReady",le[le.NvGameAssistApi_QueryResponse_Fail=4]="NvGameAssistApi_QueryResponse_Fail",le[le.NvGameAssistApi_QueryResponse_UnsupportedQuery=5]="NvGameAssistApi_QueryResponse_UnsupportedQuery",le[le.NvGameAssistApi_QueryResponse_AlertNotification=6]="NvGameAssistApi_QueryResponse_AlertNotification",le[le.NvGameAssistApi_QueryResponse_ClearOngoingStream=7]="NvGameAssistApi_QueryResponse_ClearOngoingStream",le[le.NvGameAssistApi_QueryResponse_SpecialMessage=8]="NvGameAssistApi_QueryResponse_SpecialMessage"}($=A.ResponseType1||(A.ResponseType1={}))}(V||(V={}));var N,L,T=function(A){return A.Appdiscovery=i,A.Driverinstall=r,A.Driverupdaterecommendation=a,A.Localgames=c,A.Nvcpldisplayplugin=m,A.Nvcplplugin=M,A.Nvigoutil=D,A.Nvoc=I,A.Overclockingnvc=U,A.Rise=V,A}(T||{});!function(A){let me;var ne;(ne=me=A.StreamerStatus||(A.StreamerStatus={})).Init="Init",ne.NetworkTest="NetworkTest",ne.Loading="Loading",ne.Streaming="Streaming",ne.Done="Done",ne.Error="Error",ne.GotInputFocus="GotInputFocus",ne.LostInputFocus="LostInputFocus",ne.UpdateCheck="UpdateCheck",ne.PreStreaming="PreStreaming",ne.Authentication="Authentication",ne.Authorization="Authorization",ne.PlatformSelection="PlatformSelection",ne.AccountLinking="AccountLinking",ne.PostSessionConnection="PostSessionConnection",ne.PostStreaming="PostStreaming",ne.ResumableError="ResumableError",ne.TerminalError="TerminalError",ne.PermissionsBarrier="PermissionsBarrier"}(N||(N={})),function(A){let me;var Pe;let ne,G,W,$,le;(Pe=me=A.HdrStreamingMode||(A.HdrStreamingMode={})).OFF="OFF",Pe.HDR="HDR",Pe.HDR10_PLUS_GAMING="HDR10_PLUS_GAMING",function(Pe){Pe.Launch="Launch",Pe.Resume="Resume"}(ne=A.SessionType||(A.SessionType={})),function(Pe){Pe.H264="H264",Pe.H265="H265",Pe.AV1="AV1",Pe.None="None"}(G=A.Codec||(A.Codec={})),function(Pe){Pe[Pe.UNKNOWN=0]="UNKNOWN",Pe[Pe.INACTIVE=1]="INACTIVE",Pe[Pe.ACTIVE=2]="ACTIVE"}(W=A.L4SState||(A.L4SState={})),function(Pe){Pe[Pe.UNKNOWN=0]="UNKNOWN",Pe[Pe.START=1]="START",Pe[Pe.PAUSE=2]="PAUSE",Pe[Pe.RESUME=3]="RESUME",Pe[Pe.FINISH=4]="FINISH",Pe[Pe.CANCEL=5]="CANCEL",Pe[Pe.MAX=6]="MAX"}($=A.AdAction||(A.AdAction={})),function(Pe){Pe.Low="Low",Pe.Medium="Medium",Pe.High="High",Pe.Off="Off"}(le=A.Sharpness||(A.Sharpness={}))}(L||(L={}));var g,R,B,E=function(A){return A.Gfnsdkhost=N,A.Streaming=L,A}(E||{});!function(A){let me;var $;let ne,G,W;($=me=A.ErrorCodeEnum||(A.ErrorCodeEnum={}))[$.NoError=0]="NoError",$[$.GeneralError=-505409537]="GeneralError",$[$.InvalidObject=-505413631]="InvalidObject",$[$.InsufficientArguments=-505413630]="InsufficientArguments",$[$.InvalidParameters=-505413629]="InvalidParameters",$[$.PropertyMissing=-505413628]="PropertyMissing",$[$.InvalidFormat=-505413627]="InvalidFormat",$[$.EmptyValue=-505413626]="EmptyValue",$[$.FileNotFound=-505413622]="FileNotFound",$[$.PathNotFound=-505413621]="PathNotFound",$[$.ProcessingPreviousCall=505413620]="ProcessingPreviousCall",$[$.InstallerAlreadyRunning=-505413619]="InstallerAlreadyRunning",$[$.MessagingChannel=-505413618]="MessagingChannel",$[$.ExtractedNotFound=-505413610]="ExtractedNotFound",$[$.InstallerExeNotFound=-505413608]="InstallerExeNotFound",$[$.GfeExperienceKeyNotFound=-505413607]="GfeExperienceKeyNotFound",$[$.GfeExperiencePathEmpty=-505413606]="GfeExperiencePathEmpty",$[$.SignatureInvalid=-505413605]="SignatureInvalid",$[$.UacCancelled=-505413600]="UacCancelled",$[$.MsgArrivedEventCreate=-505413599]="MsgArrivedEventCreate",$[$.MsgArrivedEventSignal=-505413598]="MsgArrivedEventSignal",$[$.ResumePathNotFound=-505413597]="ResumePathNotFound",$[$.ResumePathEmpty=-505413596]="ResumePathEmpty",$[$.ResumePathInvalid=-505413595]="ResumePathInvalid",$[$.MsgChannelInit=-505413584]="MsgChannelInit",$[$.MsgShowFormSet=-505413583]="MsgShowFormSet",$[$.MsgProgressUpdateSet=-505413582]="MsgProgressUpdateSet",$[$.MsgListen=-505413581]="MsgListen",function($){$[$.NotSet=0]="NotSet",$[$.ShowForm=1]="ShowForm",$[$.ProgressUpdate=2]="ProgressUpdate"}(ne=A.MethodEnum||(A.MethodEnum={})),function($){$[$.NotSet=0]="NotSet",$[$.InstallInitial=1]="InstallInitial",$[$.InstallChecking=2]="InstallChecking",$[$.InstallCheckWarnings=3]="InstallCheckWarnings",$[$.InstallCheckFailed=4]="InstallCheckFailed",$[$.InstallCheckWait=5]="InstallCheckWait",$[$.Eula=6]="Eula",$[$.InstallSelect=7]="InstallSelect",$[$.InstallSelectCustom=8]="InstallSelectCustom",$[$.InstallSelectInstallPath=9]="InstallSelectInstallPath",$[$.PreInstallCheck=10]="PreInstallCheck",$[$.PreInstallCheckRetry=11]="PreInstallCheckRetry",$[$.PreInstallCheckWait=12]="PreInstallCheckWait",$[$.PreRebootInstall=13]="PreRebootInstall",$[$.PackageDownloadProgress=14]="PackageDownloadProgress",$[$.ProcessDownloadedPackage=15]="ProcessDownloadedPackage",$[$.PackageDownloadFailed=16]="PackageDownloadFailed",$[$.InstallProgress=17]="InstallProgress",$[$.InstallRemoveProgress=18]="InstallRemoveProgress",$[$.InstallFinished=19]="InstallFinished",$[$.InstallFinishedNoSummary=20]="InstallFinishedNoSummary",$[$.InstallFinishedLaunch=21]="InstallFinishedLaunch",$[$.InstallFinishedNoSummaryLaunch=22]="InstallFinishedNoSummaryLaunch",$[$.InstallFinishedOptions=23]="InstallFinishedOptions",$[$.InstallFinishedNoSummaryOptions=24]="InstallFinishedNoSummaryOptions",$[$.InstallReboot=25]="InstallReboot",$[$.InstallRebootOptions=26]="InstallRebootOptions",$[$.InstallRebootNoSummary=27]="InstallRebootNoSummary",$[$.InstallRebootNoSummaryOptions=28]="InstallRebootNoSummaryOptions",$[$.InstallRemoveReboot=29]="InstallRemoveReboot",$[$.InstallFailed=30]="InstallFailed",$[$.WaitingOnUac=31]="WaitingOnUac"}(G=A.FormEnum||(A.FormEnum={})),function($){$[$.Next=0]="Next",$[$.Close=1]="Close"}(W=A.NextActionEnum||(A.NextActionEnum={}))}(g||(g={})),function(A){let me;var G;let ne;(G=me=A.DriverTypeEnum||(A.DriverTypeEnum={}))[G.GameReadyDriver=0]="GameReadyDriver",G[G.CreatorReadyDriver=1]="CreatorReadyDriver",function(G){G.started="started",G.finished="finished",G.failed="failed",G.cancelled="cancelled"}(ne=A.DriverUpdateCheckProgress||(A.DriverUpdateCheckProgress={}))}(R||(R={})),function(A){let me;var Pe;let ne,G,W,$,le;(Pe=me=A.ApplicationScanType||(A.ApplicationScanType={})).fast="fast",Pe.traditional="traditional",function(Pe){Pe.Unknown="Unknown",Pe.NotAvailable="NotAvailable",Pe.NotReady="NotReady",Pe.Ready="Ready"}(ne=A.VopsStatus||(A.VopsStatus={})),function(Pe){Pe.STRING="STRING",Pe.INT="INT",Pe.FLOAT="FLOAT",Pe.ENUM="ENUM",Pe.BOOL="BOOL",Pe.DRIVER_ENUM="DRIVER_ENUM"}(G=A.Type||(A.Type={})),function(Pe){Pe.AC="AC",Pe.DC="DC"}(W=A.ApplicationPowerMode||(A.ApplicationPowerMode={})),function(Pe){Pe.DISABLED="DISABLED",Pe.UNOPTIMIZED="UNOPTIMIZED",Pe.CUSTOMIZED="CUSTOMIZED",Pe.OPTIMIZED="OPTIMIZED"}($=A.OptimizationState||(A.OptimizationState={})),function(Pe){Pe.started="started",Pe.finished="finished",Pe.failed="failed",Pe.progress="progress"}(le=A.Status||(A.Status={}))}(B||(B={}));var H,J,re,ie,ve,ue,se,Z,Se,Ce,Be,Xe,He,X=function(A){return A.Driverinstall=g,A.Driverupdaterecommendation=R,A.Localgames=B,A}(X||{});!function(A){let me;var W;let ne,G;(W=me=A.State||(A.State={})).percentage="percentage",W.indeterminate="indeterminate",W.pause="pause",W.complete="complete",function(W){W.active="active",W.inactive="inactive",W.failed="failed"}(ne=A.State1||(A.State1={})),function(W){W.light="light",W.dark="dark"}(G=A.SystemTheme||(A.SystemTheme={}))}(H||(H={})),function(A){let me;var le;let ne,G,W,$;(le=me=A.ApplicationLifetimeEventType||(A.ApplicationLifetimeEventType={})).ApplicationExit="APPLICATION_EXIT",le.SystemLogout="SYSTEM_LOGOUT",le.SystemSuspend="SYSTEM_SUSPEND",function(le){le.UserClosedWindow="USER_CLOSED_WINDOW",le.UserQuitWithShortcut="USER_QUIT_WITH_SHORTCUT",le.UserLoggedOut="USER_LOGGED_OUT",le.SelfUpdate="SELF_UPDATE",le.Relaunch="RELAUNCH",le.BrowserExit="BROWSER_EXIT",le.ForceShutdown="FORCE_SHUTDOWN"}(ne=A.ShutdownReason||(A.ShutdownReason={})),function(le){le.Bluetooth="BLUETOOTH"}(G=A.SystemSetting||(A.SystemSetting={})),function(le){le.Launch="launch"}(W=A.ApplicationTimeType||(A.ApplicationTimeType={})),function(le){le.LaunchSiteTime="LAUNCH_SITE_TIME",le.LaunchCefSiteTime="LAUNCH_CEF_SITE_TIME"}($=A.ApplicationStartTimeType||(A.ApplicationStartTimeType={}))}(J||(J={})),function(A){let me;var G;let ne;(G=me=A.ConversationIntent||(A.ConversationIntent={})).Support="Support",G.Recommendation="Recommendation",function(G){G.Installer="Installer",G.Game="Game",G.Share="Share",G.GameStream="GameStream"}(ne=A.Component||(A.Component={}))}(re||(re={})),function(A){let me;var ne;(ne=me=A.InternalErrorCodeEnum||(A.InternalErrorCodeEnum={}))[ne.Success=0]="Success",ne[ne.Error=1]="Error",ne[ne.Error_PermissionNotGiven=2]="Error_PermissionNotGiven",ne[ne.Error_NotFullScreen=3]="Error_NotFullScreen"}(ie||(ie={})),function(A){let me;var ne;(ne=me=A.DiscordAsset||(A.DiscordAsset={}))[ne.Large=0]="Large"}(ve||(ve={})),function(A){let me;var $e;let ne,G,W,$,le,Pe,Fe,At,Le,Et;($e=me=A.UpdateFrameworkResult||(A.UpdateFrameworkResult={}))[$e.NotImplemented=-1]="NotImplemented",$e[$e.Success=0]="Success",$e[$e.Error=1]="Error",$e[$e.UpdateFrameworkUninitialised=2]="UpdateFrameworkUninitialised",$e[$e.UpdateCheckMgrUninitialised=3]="UpdateCheckMgrUninitialised",$e[$e.NoUpdateCheckCandidate=4]="NoUpdateCheckCandidate",$e[$e.InvalidComponentType=5]="InvalidComponentType",$e[$e.UpdateCheckInfoException=6]="UpdateCheckInfoException",$e[$e.UpdateCheckComponentInapplicable=7]="UpdateCheckComponentInapplicable",$e[$e.InvalidArgument=8]="InvalidArgument",$e[$e.InvalidOperation=9]="InvalidOperation",$e[$e.FileDoesNotExist=10]="FileDoesNotExist",$e[$e.NotFound=11]="NotFound",$e[$e.BadJson=12]="BadJson",$e[$e.KeyDoesNotExist=13]="KeyDoesNotExist",$e[$e.InternalException=14]="InternalException",$e[$e.ProfileCatalogUninitialised=15]="ProfileCatalogUninitialised",$e[$e.AlreadyDownloaded=16]="AlreadyDownloaded",$e[$e.CannotDeleteFile=17]="CannotDeleteFile",$e[$e.DownloaderBusyTryLater=18]="DownloaderBusyTryLater",$e[$e.CurlInitFailed=19]="CurlInitFailed",$e[$e.PostProcessingPolicyDontRun=20]="PostProcessingPolicyDontRun",$e[$e.DownloadPolicyDontRun=21]="DownloadPolicyDontRun",$e[$e.UpdateCheckPeriodNotElapsed=22]="UpdateCheckPeriodNotElapsed",$e[$e.PluginLoadError=23]="PluginLoadError",$e[$e.PluginFnAddrError=24]="PluginFnAddrError",$e[$e.PluginError=25]="PluginError",function($e){$e[$e.Official=0]="Official",$e[$e.Beta=1]="Beta",$e[$e.Unknown=-1]="Unknown"}(ne=A.UpdateChannel||(A.UpdateChannel={})),function($e){$e[$e.Full=0]="Full",$e[$e.Diff=1]="Diff",$e[$e.Unknown=-1]="Unknown"}(G=A.UpdateType||(A.UpdateType={})),function($e){$e[$e.Auto=0]="Auto",$e[$e.Manual=1]="Manual",$e[$e.Unknown=-1]="Unknown"}(W=A.InvokeType||(A.InvokeType={})),function($e){$e[$e.Undefined=-1]="Undefined",$e[$e.DownloadTriggered=0]="DownloadTriggered",$e[$e.Downloading=1]="Downloading",$e[$e.VerifyingChecksum=2]="VerifyingChecksum",$e[$e.VerifyingSignature=3]="VerifyingSignature",$e[$e.Paused=4]="Paused",$e[$e.Cancelled=5]="Cancelled",$e[$e.NetworkErrorRetrying=6]="NetworkErrorRetrying",$e[$e.NetworkErrorRetryPaused=7]="NetworkErrorRetryPaused",$e[$e.Finished=8]="Finished",$e[$e.ChecksumVerificationFailed=9]="ChecksumVerificationFailed",$e[$e.SignatureVerificationFailed=10]="SignatureVerificationFailed",$e[$e.DiskWriteFail=11]="DiskWriteFail",$e[$e.Error=12]="Error",$e[$e.NotAllowedNow=13]="NotAllowedNow",$e[$e.Prohibited=14]="Prohibited"}($=A.DownloadStatus||(A.DownloadStatus={})),function($e){$e[$e.Undefined=-1]="Undefined",$e[$e.Ready=0]="Ready",$e[$e.Executing=1]="Executing",$e[$e.Completed=2]="Completed",$e[$e.CouldNotRun=3]="CouldNotRun",$e[$e.FailedRetryPending=4]="FailedRetryPending",$e[$e.Failed=5]="Failed"}(le=A.ActionStatus||(A.ActionStatus={})),function($e){$e[$e.Undefined=-1]="Undefined",$e[$e.ExecutingActions=0]="ExecutingActions",$e[$e.Completed=1]="Completed",$e[$e.Failed=2]="Failed"}(Pe=A.PostProcessingStatus||(A.PostProcessingStatus={})),function($e){$e[$e.Started=0]="Started",$e[$e.Retrying=1]="Retrying",$e[$e.RetryStopped=2]="RetryStopped",$e[$e.Finished=3]="Finished",$e[$e.Failed=4]="Failed"}(Fe=A.ProgressStatus||(A.ProgressStatus={})),function($e){$e[$e.Unknown=-1]="Unknown",$e[$e.UpdateInProgress=0]="UpdateInProgress",$e[$e.UpdateUnavailable=1]="UpdateUnavailable",$e[$e.UpdateSuccessful=2]="UpdateSuccessful",$e[$e.UpdateFailed=3]="UpdateFailed"}(At=A.UpdateState||(A.UpdateState={})),function($e){$e[$e.Uninitialised=-1]="Uninitialised",$e[$e.CheckingForUpdate=0]="CheckingForUpdate",$e[$e.UpdateCheckEnd=1]="UpdateCheckEnd",$e[$e.Downloading=2]="Downloading",$e[$e.DownloadEnd=3]="DownloadEnd",$e[$e.PostProcessing=4]="PostProcessing",$e[$e.PostProcessingEnd=5]="PostProcessingEnd"}(Le=A.UpdateExecutionPhase||(A.UpdateExecutionPhase={})),function($e){$e[$e.Success=0]="Success",$e[$e.Failure=1]="Failure",$e[$e.FailureNoSourceProfile=2]="FailureNoSourceProfile"}(Et=A.CreateProfileStatusEnum||(A.CreateProfileStatusEnum={}))}(ue||(ue={})),function(A){let me;var Ze;let ne,G,W,$,le,Pe,Fe,At,Le,Et,$e;(Ze=me=A.FileType||(A.FileType={})).video="video",Ze.image="image",Ze.other="other",function(Ze){Ze.Highlight="Highlight",Ze.AnimatedGif="AnimatedGif",Ze.Normal="Normal",Ze.SuperResolution="SuperResolution",Ze.SuperResolution_Oversized="SuperResolution_Oversized",Ze.SubType_360Mono="360Mono",Ze.Stereo="Stereo",Ze.SubType_360Stereo="360Stereo",Ze.Exr="Exr",Ze.Normal_Ansel="Normal_Ansel",Ze.Montage="Montage",Ze.InstantReplay="InstantReplay",Ze.Manual="Manual",Ze.Unknown="Unknown"}(ne=A.SubType||(A.SubType={})),function(Ze){Ze.Single="Single",Ze.Separate="Separate",Ze.Unknown="Unknown"}(G=A.AudioType||(A.AudioType={})),function(Ze){Ze.low="low",Ze.medium="medium",Ze.high="high"}(W=A.Quality||(A.Quality={})),function(Ze){Ze.GFE_Share="GFE_Share",Ze.GFE_Ansel="GFE_Ansel",Ze.GFE_SDK="GFE_SDK",Ze.StandAlone_Ansel="StandAlone_Ansel",Ze.Undefined="Undefined"}($=A.Source||(A.Source={})),function(Ze){Ze.screenshot="screenshot",Ze.video="video"}(le=A.Type||(A.Type={})),function(Ze){Ze.video="video",Ze.image="image",Ze.audio="audio"}(Pe=A.InputFileType||(A.InputFileType={})),function(Ze){Ze.none="none",Ze.titleBasic="titleBasic"}(Fe=A.SeqType||(A.SeqType={})),function(Ze){Ze.none="none",Ze.brandSliderInOnly="brandSliderInOnly",Ze.brandSlideInOut="brandSlideInOut"}(At=A.BrandType||(A.BrandType={})),function(Ze){Ze.atStart="atStart",Ze.atEnd="atEnd"}(Le=A.Position||(A.Position={})),function(Ze){Ze.TrackerUpdateNotActive="TrackerUpdateNotActive",Ze.TrackerUpdateInProgress="TrackerUpdateInProgress",Ze.TrackerUpdateComplete="TrackerUpdateComplete",Ze.CancelUpdateComplete="CancelUpdateComplete",Ze.CancelUpdate="CancelUpdate"}(Et=A.GalleryPathUpdateStatus||(A.GalleryPathUpdateStatus={})),function(Ze){Ze.none="none",Ze.hidden="hidden",Ze.empty="empty",Ze.hiddenOrEmpty="hiddenOrEmpty",Ze.hiddenAndEmpty="hiddenAndEmpty"}($e=A.ExcludeDirectoryType||(A.ExcludeDirectoryType={}))}(se||(se={})),function(A){let me;var W;let ne,G;(W=me=A.RequestCache||(A.RequestCache={})).default="default",W.force_cache="force-cache",W.no_cache="no-cache",W.no_store="no-store",W.only_if_cached="only-if-cached",W.reload="reload",function(W){W.GET="GET",W.HEAD="HEAD",W.POST="POST",W.PUT="PUT",W.DELETE="DELETE"}(ne=A.HttpRequestType||(A.HttpRequestType={})),function(W){W.follow="follow",W.error="error",W.manual="manual"}(G=A.RequestRedirect||(A.RequestRedirect={}))}(Z||(Z={})),function(A){let me;var ne;(ne=me=A.IpcTargets||(A.IpcTargets={})).GfnMall="mallclient",ne.GfnStreamer="streamer",ne.GfnUpdater="selfupdater"}(Se||(Se={})),function(A){let me;var ne;(ne=me=A.PrivacySettings||(A.PrivacySettings={})).None="None",ne.RequiredOnly="RequiredOnly",ne.RequiredFunctional="RequiredFunctional",ne.RequiredFunctionalTechnical="RequiredFunctionalTechnical"}(Ce||(Ce={})),function(A){let me;var Le;let ne,G,W,$,le,Pe,Fe,At;(Le=me=A.CaptureTypes||(A.CaptureTypes={})).regular="regular",Le.stereoRegular="stereoRegular",Le.highRes="highRes",Le.sphericalPanorama="sphericalPanorama",Le.stereoSphericalPanorama="stereoSphericalPanorama",function(Le){Le.ok="ok",Le.failed="failed",Le.started="started",Le.failedToStart="failedToStart",Le.noSpace="noSpace",Le.permissionDenied="permissionDenied",Le.invalidRequest="invalidRequest",Le.failedToProcess="failedToProcess",Le.processDeclined="processDeclined",Le.alreadyEnabled="alreadyEnabled",Le.alreadyDisabled="alreadyDisabled",Le.outOfRange="outOfRange",Le.alreadySet="alreadySet",Le.incompatibleVersion="incompatibleVersion",Le.disabled="disabled",Le.okAnsel="okAnsel",Le.okModsOnly="okModsOnly",Le.failedToFinishCapture="failedToFinishCapture",Le.failedToSaveShotFailedCreateDiretory="failedToSaveShotFailedCreateDiretory",Le.failedToSaveShotNoSpaceLeft="failedToSaveShotNoSpaceLeft",Le.processingCompleted="processingCompleted",Le.shotSaved="shotSaved",Le.processingFile="processingFile",Le.failedToSaveShot="failedToSaveShot"}(ne=A.AnselStatusEnum||(A.AnselStatusEnum={})),function(Le){Le.sdk="sdk",Le.mods="mods",Le.styleTransfer="styleTransfer",Le.allowOffline="allowOffline"}(G=A.FeaturesSupported||(A.FeaturesSupported={})),function(Le){Le.windowedSDK="windowedSDK",Le.fullscreenSDK="fullscreenSDK",Le.windowedNoSDK="windowedNoSDK",Le.fullscreenNoSDK="fullscreenNoSDK"}(W=A.Mode||(A.Mode={})),function(Le){Le.mouse="mouse",Le.keyboard="keyboard",Le.gamepad="gamepad"}($=A.Hid||(A.Hid={})),function(Le){Le.notAvailable="notAvailable",Le.available="available",Le.notEnabled="notEnabled",Le.enabled="enabled"}(le=A.AnselState||(A.AnselState={})),function(Le){Le.roll="roll",Le.fov="fov"}(Pe=A.Response||(A.Response={})),function(Le){Le.float="float",Le.int="int",Le.uint="uint",Le.bool="bool"}(Fe=A.DataType||(A.DataType={})),function(Le){Le.success="success"}(At=A.NgxAiUpResStatus||(A.NgxAiUpResStatus={}))}(Be||(Be={})),function(A){let me;var ne;(ne=me=A.OperationType||(A.OperationType={})).Read="Read",ne.Write="Write",ne.Remove="Remove",ne.Cache="Cache"}(Xe||(Xe={})),function(A){let me;var G;let ne;(G=me=A.ApiStatusEnum||(A.ApiStatusEnum={})).Success="Success",G.Failure="Failure",function(G){G.Desktop="Desktop",G.Mobile="Mobile",G.Game="Game"}(ne=A.UiModeEnum||(A.UiModeEnum={}))}(He||(He={}));var Me=function(A){return A.Applicationcontrol=H,A.Applicationinfo=J,A.Bot=re,A.Clientnotification=ie,A.Discord=ve,A.Downloader=ue,A.Gallery=se,A.Httprequest=Z,A.Ipc=Se,A.Nvaccount=Ce,A.Nvcamera=Be,A.Sharedstorage=Xe,A.Systeminfo=He,A}(Me||{}),Q=function(A){return A.Common=Me,A.Gfe=X,A.Gfn=E,A.Nvapp=T,A.Qxp=_,A.Share=O,A}(Q||{})},54292:(Bt,z,s)=>{"use strict";s.d(z,{vT:()=>U,oy:()=>r});var n=s(99469),l=s(36877),d=s(26513),v=s(19392),S=s(16229),y=s(43848),f=s(34593),O=s(83915),P=s(53461),_=s(75707),i=s(91384),r=function(V){return V.IGO="igo",V.Streaming="streaming",V.ClientIME="ime",V.PrivacyPolicy="privacy",V.QuitGath="quitGame",V.OscNotification="OscNotification",V}(r||{}),c=function(V){return V.Local="localhost",V.Stage="stage.nvidia.com",V.Partner="partner.nvidia.com",V}(c||{});const m=new RegExp("/mall/index[.]html$|/mall/$|/index[.]html$|/$");var D=s(58527),I=s(74150);let U=(()=>{class V{get fullScreenEventSubject(){return this.fullScreenEvent}get fullScreenEventObs$(){return this.fullScreenEvent.asObservable()}get documentVisiblityChange(){return(0,l.R)(document,"visibilitychange")}resetExitPath(){this.fullScreenSource=void 0}setExitPath(N){this.fullScreenSource=N}get resumeFullScreenIGO(){return this.fullScreenSource===r.IGO}get applicationWindowState$(){return this.isPWAModeOnLGTV?this.webOSWindowStateSubject.asObservable():this.documentVisiblityChange.pipe((0,f.Z)(0),(0,O.T)(N=>"visible"===document.visibilityState?"foreground":"background"),(0,P.F)())}constructor(N,L,E){this.titleService=L,this.ngZone=E,this.keyCodes={c:"KeyC",i:"KeyI",j:"KeyJ",u:"KeyU",f12:"F12"},this.isPWAModeOnLGTV=n.zk.isPWAModeOnLGTV(),this.isPWAModeOnSamsungTV=n.zk.isPWAModeOnSamsungTV(),this.fullScreenEvent=new d.t(!1),this.webOSWindowStateSubject=new d.t("foreground"),this.webOSWindowStateListener=g=>{this.webOSWindowStateSubject.value!==g.detail.state&&this.webOSWindowStateSubject.next(g.detail.state)},this.logger=N.getLogger("gfn/browser-support"),this.appIcon=document.querySelector("#appIcon"),this.appIconHref=this.appIcon?.href,this.hostBranch=window.location.pathname.replace(m,"")}initialize(N,L){N&&this.ngZone.runOutsideAngular(()=>{document.addEventListener("wheel",this.dummyWheelListener,{passive:!0})}),L||this.disableDevTools(),this.isPWAModeOnLGTV&&this.ngZone.runOutsideAngular(()=>{window.addEventListener("windowStateChanged",this.webOSWindowStateListener)})}dummyWheelListener(N){return N}disableDevTools(){this.ngZone.runOutsideAngular(()=>{document.addEventListener("contextmenu",N=>N.preventDefault()),window.addEventListener("keydown",N=>{(N.code===this.keyCodes.i&&N.ctrlKey&&N.shiftKey||N.code===this.keyCodes.j&&N.ctrlKey&&N.shiftKey||N.code===this.keyCodes.u&&N.ctrlKey||N.code===this.keyCodes.f12||N.code===this.keyCodes.c&&N.shiftKey&&N.metaKey||N.code===this.keyCodes.i&&N.altKey&&N.metaKey||N.code===this.keyCodes.j&&N.altKey&&N.metaKey||N.code===this.keyCodes.u&&N.altKey&&N.metaKey)&&N.preventDefault()})})}getGamepads(){if(!navigator.getGamepads)return[];const N=navigator.getGamepads();return N instanceof Array?N:Array.from(N).filter(E=>!!E)}goToPreviousPage(){window.history.back()}supportsRequestFullscreen(N){return document.fullscreenEnabled&&N.requestFullscreen||document.webkitFullscreenEnabled&&N.webkitRequestFullscreen}isFullscreen(){const N=screen.width===window.innerWidth&&screen.height===window.innerHeight;return document.fullscreenElement||document.webkitFullscreenElement||!(this.isPWAModeOnLGTV||this.isPWAModeOnSamsungTV)&&N}requestFullscreen(N){if(this.supportsRequestFullscreen(N))if(N.requestFullscreen){const L=N.requestFullscreen();L?L.catch(E=>{this.logger.error(`Error attempting to enable fullscreen mode: ${E.message} (${E.name})`)}):this.logger.info("Fullscreen request API did not return a promise")}else N.webkitRequestFullscreen?N.webkitRequestFullscreen():this.logger.error("No available method to enter fullscreen");else this.logger.error("Fullscreen not supported")}exitFullscreen(){document.fullscreenElement&&document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():this.logger.error("No available method to exit fullscreen")}isStagingOrDevDomain(){return this.isStagingDomain()||this.isLocalDomain()}isStagingDomain(){return window.location.hostname.endsWith(c.Stage)}isPartnerDomain(){return window.location.hostname.endsWith(c.Partner)}isLocalDomain(){return window.location.hostname.endsWith(c.Local)}getHostBranchName(){return this.hostBranch}setTitle(N){N&&this.titleService.setTitle(N)}blinkAppIcon(N){this.appIcon&&this.appIconHref&&(N%2==1?this.appIcon.href="./assets/img/transparent.png":this.resetAppIcon())}resetAppIcon(){this.appIconHref&&(this.appIcon.href=this.appIconHref)}cleanup(){document.removeEventListener("wheel",this.dummyWheelListener),this.resetAppIcon(),this.isPWAModeOnLGTV&&window.removeEventListener("windowStateChanged",this.webOSWindowStateListener)}getPermission$(N){return(0,v.H)(navigator.permissions.query({name:N})).pipe((0,_.ZZ)(L=>(0,S.h)((0,y.of)(L.state),(0,l.R)(L,"change").pipe((0,O.T)(E=>E.target.state)))),(0,i.M)(L=>this.logger.info(`BrowserPermission: ${N} value: ${L}`)))}static{this.\u0275fac=function(L){return new(L||V)(D.KVO(n.J6),D.KVO(I.hE),D.KVO(D.SKi))}}static{this.\u0275prov=D.jDH({token:V,factory:V.\u0275fac,providedIn:"root"})}}return V})()},62351:(Bt,z,s)=>{"use strict";s.d(z,{E:()=>d});var n=s(58527);let d=(()=>{class v{static{this.\u0275fac=function(f){return new(f||v)}}static{this.\u0275prov=n.jDH({token:v,factory:v.\u0275fac})}}return v})()},54943:(Bt,z,s)=>{"use strict";s.d(z,{l:()=>f});var n=s(43848),l=s(59859),d=s(58527),v=s(62351);function S(O){return[O.system,O.module,O.method,O.legacyCommand].join(".")}let f=(()=>{class O{constructor(_){this.bridgeConfig=_,this.responses={},this.persistentResponses={},this.errors={},this.configMocks={},this.callData={};for(const i of Object.values(_.mocks))this.configMocks[S(i.command)]=i.return}createResponse(_,i){const r=S(_);delete this.errors[r],this.responses[r]=i}createResponseSequence(_,i){const r=S(_);delete this.errors[r],this.responses[r]=i}createPersistentResponse(_,i){if(!_.persistent)throw new Error("Can only create a persistent response for persistent commands");{const r=S(_);delete this.errors[r],this.persistentResponses[r]=i}}createErrorResponse(_,i){const r=S(_);delete this.responses[r],this.errors[r]=i}executeCommand(_,i){const r=S(_);this.cacheCallData(r,i);let a=(0,n.of)(void 0);return r in this.errors?a=(0,l.$)(this.errors[r]):r in this.responses?a=Array.isArray(this.responses[r])?(0,n.of)(this.responses[r].shift()):(0,n.of)(this.responses[r]):r in this.configMocks?a=(0,n.of)(this.configMocks[r]):r in this.persistentResponses&&(a=this.persistentResponses[r]),a}hasOverrideMock(_){const i=S(_);return i in this.responses||i in this.persistentResponses}hasErrorMock(_){return S(_)in this.errors}hasConfigMock(_){return S(_)in this.configMocks}hasMock(_){const i=this.hasOverrideMock(_)||this.hasConfigMock(_)||this.hasErrorMock(_);return this.bridgeConfig.isUnitTestConfig&&!i&&console.error("No mock provided for: "+S(_)),i}cacheCallData(_,i){this.bridgeConfig.cacheMockedCallData&&(_ in this.callData||(this.callData[_]={count:0,params:[]}),this.callData[_].count++,this.callData[_].params.push(i))}resetCallData(){this.callData={}}getCallData(_){const i=S(_);return i in this.callData?this.callData[i]:{count:0,params:[]}}static{this.\u0275fac=function(i){return new(i||O)(d.KVO(v.E))}}static{this.\u0275prov=d.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})()},31650:(Bt,z,s)=>{"use strict";s.d(z,{N:()=>v});var n=s(58527),l=s(3678),d=s(54943);let v=(()=>{class S{constructor(f,O){this.logger=f,this.bridgeMockService=O}makeFullBridgeCommand(f,O,P){return{command:f.legacyCommand,system:f.system,module:f.module,method:f.method,payload:O,...P?O:null}}unpackReturnPayload(f){try{const O=JSON.parse(f);return"object"==typeof O&&"reference_uniqueid"in O&&"method"in O&&"payload"in O?O.payload:O}catch{return f}}handleSuccess(f,O,P){switch(P){case"true":f.next(!0);break;case"false":f.next(!1);break;default:f.next(this.unpackReturnPayload(P))}O||f.complete()}handleFailure(f,O,P,_,i,r=!0){const c={code:P,message:_,isCancelled:204===P,request:r?O:{...O,payload:null}};this.logger.info(`Bridge Query returned error code ${P}: ${_}. Command: ${JSON.stringify(i?O:O.command)}`),f.error(c)}executeCommand(f,O,P=!0,_=!0){return this.bridgeMockService.hasMock(f)?this.bridgeMockService.executeCommand(f,O):this.executeCommandInternal(f,O,P,_)}static{this.\u0275fac=function(O){return new(O||S)(n.KVO(l.Vy),n.KVO(d.l))}}static{this.\u0275prov=n.jDH({token:S,factory:S.\u0275fac})}}return S})()},10607:(Bt,z,s)=>{"use strict";s.d(z,{Ou:()=>V,Ec:()=>ie.E,NZ:()=>n.N,a5:()=>re,Un:()=>U});var n=s(31650),l=s(58527),d=s(43848),v=s(17053),S=s(8619),y=s(65706),f=s(3678),O=s(21172),P=s(54943);let _=(()=>{class ve extends n.N{static{this.EXTENSION_MESSAGE="QUERY_IPC_EXTENSION_MESSAGE"}constructor(se,Z,Se,Ce){super(se.getLogger("crimson/cef"),Ce),this.pluginsNotificationService=Z,this.ngZone=Se,this.pluginsNotificationService.init(this.executeCommand.bind(this))}static isCefPlatform(){return"cefQuery"in window}executeCommandInternal(se,Z,Se,Ce){const Be=this.makeFullBridgeCommand(se,Z,se.legacyCommand!==ve.EXTENSION_MESSAGE),Xe=JSON.stringify(Be),He=window.cefQuery,Me=this.pluginsNotificationService.isMandatoryPlugin(se.module)?this.pluginsNotificationService.isPluginLoaded$(se.module):(0,d.of)(!0);return new v.c(Q=>{if(He)Me.pipe((0,S.p)(A=>A),(0,y.s)(1)).subscribe(A=>{He({request:Xe,persistent:se.persistent,onSuccess:me=>{l.SKi.isInAngularZone()?this.handleSuccess(Q,se.persistent,me):this.ngZone.run(()=>{this.handleSuccess(Q,se.persistent,me)})},onFailure:(me,ne)=>{l.SKi.isInAngularZone()?this.handleFailure(Q,Be,me,ne,Se,Ce):this.ngZone.run(()=>{this.handleFailure(Q,Be,me,ne,Se,Ce)})}})});else{const A=Xe;this.logger.error(A),this.handleFailure(Q,Be,500,A,Se,Ce)}})}static{this.\u0275fac=function(Z){return new(Z||ve)(l.KVO(f.J6),l.KVO(O.P),l.KVO(l.SKi),l.KVO(P.l))}}static{this.\u0275prov=l.jDH({token:ve,factory:ve.\u0275fac})}}return ve})();var i=s(14714),r=s(75707);let a=(()=>{class ve{constructor(se){this._plugins=se}get plugins(){return this._plugins}getPlugin(se){return this._plugins.find(Z=>Z instanceof se)}static{this.\u0275fac=function(Z){return new(Z||ve)(l.KVO(Array))}}static{this.\u0275prov=l.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"})}}return ve})(),c=(()=>{class ve extends n.N{static{this.EXTENSION_MESSAGE="QUERY_IPC_EXTENSION_MESSAGE"}constructor(se,Z,Se,Ce){super(se,Ce),this.primaryManager=Z,this.fallbackManager=Se,this.handlerMap=new Map,this.buildHandlerMap()}buildHandlerMap(){this.fallbackManager?.plugins?.forEach(se=>{const Z=se.handlers;this.handlerMap.set(Z.module,Z.commands)});for(const se of this.primaryManager.plugins){const Z=se.handlers;this.handlerMap.set(Z.module,Z.commands)}}getHandlerForMethod(se,Z){const Se=this.handlerMap.get(se);return Se?Se[Z]:null}executeCommandUsingPlugin(se,Z,Se,Ce){const Be=this.makeFullBridgeCommand(se,Z,se.legacyCommand!==ve.EXTENSION_MESSAGE),Xe=this.getHandlerForMethod(Be.module,Be.method);return Xe?new v.c(He=>{Xe(Be).pipe((0,i.W)(Me=>(this.logger.info("failed to execute",se.legacyCommand,Me),new v.c(Q=>{this.handleFailure(Q,Be,Me.code,Me.error,Se,Ce)}))),(0,r.ZZ)(Me=>new v.c(Q=>{this.handleSuccess(Q,Be.persistent,Me.data)}))).subscribe(Me=>He.next(Me),Me=>He.error(Me),()=>He.complete())}):(this.logger.info("plugin does not have handler for",Be.module,Be.method),(0,d.of)(null))}static{this.\u0275fac=function(Z){return new(Z||ve)(l.KVO(f.Vy),l.KVO(a),l.KVO(a),l.KVO(P.l))}}static{this.\u0275prov=l.jDH({token:ve,factory:ve.\u0275fac})}}return ve})();var m=s(81834),M=s(59859),D=s(83915);class I{createSuccessResponse(ue){return{success:!0,code:200,data:ue}}createErrorResponse(ue,se){return{success:!1,code:ue,error:se}}makeError(ue,se){return(0,M.$)(this.createErrorResponse(ue,se))}makeResult(ue){return(0,d.of)(this.createSuccessResponse(ue))}makePersistentResult(ue){return ue.pipe((0,D.T)(se=>this.createSuccessResponse(se)))}}class U extends I{static{this._browserInstanceId=(0,m.bz)(!0)}static get browserInstanceId(){return this._browserInstanceId}}const V=new l.nKC("BrowserPlugins");let T=(()=>{class ve extends a{constructor(se){super(se||[])}static{this.\u0275fac=function(Z){return new(Z||ve)(l.KVO(V,8))}}static{this.\u0275prov=l.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"})}}return ve})(),N=(()=>{class ve extends c{constructor(se,Z,Se){super(se.getLogger("crimson/browser"),Z,void 0,Se)}executeCommandInternal(se,Z,Se,Ce){const Be=this.makeFullBridgeCommand(se,Z,se.legacyCommand!==c.EXTENSION_MESSAGE);return this.handlerMap.has(Be.module)?this.executeCommandUsingPlugin(se,Z,Se,Ce):(this.logger.info("Command not found",JSON.stringify(Se?Be:Be.command)),(0,d.of)(null))}static{this.\u0275fac=function(Z){return new(Z||ve)(l.KVO(f.J6),l.KVO(T),l.KVO(P.l))}}static{this.\u0275prov=l.jDH({token:ve,factory:ve.\u0275fac})}}return ve})(),L=(()=>{class ve extends n.N{constructor(se,Z,Se){super(se.getLogger("crimson/yggdrasil"),Se),this.ngZone=Z}executeCommandInternal(se,Z){return new v.c(Se=>{Se.next(null),Se.complete()})}static{this.\u0275fac=function(Z){return new(Z||ve)(l.KVO(f.J6),l.KVO(l.SKi),l.KVO(P.l))}}static{this.\u0275prov=l.jDH({token:ve,factory:ve.\u0275fac})}}return ve})();var E=s(26502);const g=new l.nKC("AndroidPlugins");let R=(()=>{class ve extends a{constructor(se){super(se||[])}static{this.\u0275fac=function(Z){return new(Z||ve)(l.KVO(g,8))}}static{this.\u0275prov=l.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"})}}return ve})();class B extends I{static{this._androidInstanceId=(0,m.bz)(!0)}static get androidInstanceId(){return this._androidInstanceId}}class X{static{this.IdGenerator=class{static{this.count=0}static next(){return++this.count}}}static{this.handlerMap={}}constructor(ue,se){this.ngZone=se,Android.dispatch=this.dispatch.bind(this),Android.unregisterHandler=this.unregisterHandler.bind(this)}dispatch(ue){if(!X.handlerMap[ue.handlerId])throw new Error(`Cannot find handler Id=${ue.handlerId}.`);const se=X.handlerMap[ue.handlerId];this.parseResponse(se.observer,ue.args),se.persistent||delete X.handlerMap[ue.handlerId]}parseResponse(ue,se){const Z=JSON.parse(se),Ce=Z.errorCode,Be=Z.errorMessage;if(Z.successful){const He={response:Z.response};l.SKi.isInAngularZone()?ue.next(He):this.ngZone.run(()=>{ue.next(He)})}else{const He={errorCode:Ce,errorMessage:Be};l.SKi.isInAngularZone()?ue.error(He):this.ngZone.run(()=>{ue.error(He)})}}unregisterHandler(ue){if(!X.handlerMap[ue.handlerId])throw new Error(`Cannot find handler Id=${ue.handlerId}.`);X.handlerMap[ue.handlerId].observer.complete(),delete X.handlerMap[ue.handlerId]}doesCommandExist(ue,se){return Android.hasCommand&&Android.hasCommand(ue,se)}executeCommandNative(ue,se,Z){const Ce={request:JSON.stringify(ue),persistent:se,handlerId:X.IdGenerator.next()},Be=JSON.stringify(Ce),Xe=new v.c(He=>{X.handlerMap[Ce.handlerId]={observer:He,persistent:se}});return Android.executeCommand(Be),Xe}static{this.\u0275fac=function(se){return new(se||X)(l.KVO(f.J6),l.KVO(l.SKi))}}static{this.\u0275prov=l.jDH({token:X,factory:X.\u0275fac,providedIn:"root"})}}let H=(()=>{class ve extends c{static{this.REQUIRES_NATIVE_IMPL=["Streaming"]}static requiresNativeImplementation(se){return ve.REQUIRES_NATIVE_IMPL.includes(se)}constructor(se,Z,Se,Ce,Be){super(se.getLogger("crimson/android"),Z,Se,Be),this.androidHelperService=Ce}executeCommandInternal(se,Z,Se,Ce){const Be=this.makeFullBridgeCommand(se,Z,se.legacyCommand!==ve.EXTENSION_MESSAGE),Xe=JSON.stringify(Be);return E.zk.isAndroidPlatform()?this.androidHelperService.doesCommandExist(se.module,se.method)?new v.c(Me=>{this.androidHelperService.executeCommandNative(Be,se.persistent,Se).subscribe(A=>{this.handleSuccess(Me,se.persistent,A.response)},A=>{this.handleFailure(Me,Be,A.errorCode,A.errorMessage,Se,Ce)},()=>{this.logger.info("callback complete")})}):!ve.requiresNativeImplementation(Be.module)&&this.handlerMap.has(Be.module)?this.executeCommandUsingPlugin(se,Z,Se,Ce):(this.logger.info("Command not found",JSON.stringify(Se?Be:Be.command)),(0,d.of)(null)):new v.c(He=>{const Me=Xe;this.logger.error(Me),this.handleFailure(He,Be,500,Me,Se,Ce)})}static{this.\u0275fac=function(Z){return new(Z||ve)(l.KVO(f.J6),l.KVO(R),l.KVO(T),l.KVO(X),l.KVO(P.l))}}static{this.\u0275prov=l.jDH({token:ve,factory:ve.\u0275fac})}}return ve})();const re={provide:n.N,useFactory:function J(ve,ue,se,Z,Se){if(E.zk.isCefPlatform())return new _(ve,Se,ue,se);if(E.zk.isAndroidPlatform()){const Ce=Z.get(T),Be=Z.get(R),Xe=Z.get(X);return new H(ve,Be,Ce,Xe,se)}if(E.zk.isBrowserPlatform()){const Ce=Z.get(T);return new N(ve,Ce,se)}return new L(ve,ue,se)},deps:[f.J6,l.SKi,P.l,l.zZn,O.P]};var ie=s(62351)},84580:(Bt,z,s)=>{"use strict";s.d(z,{r:()=>d});var n=s(85735),l=s(58527);let d=(()=>{class v{constructor(){this.leanModeTransitionSub=new n.m(1)}get leanModeTransitionState(){return this.leanModeTransitionSub.asObservable()}enableLeanMode(){this.leanModeTransitionSub.next(!0)}disableLeanMode(){this.leanModeTransitionSub.next(!1)}static{this.\u0275fac=function(f){return new(f||v)}}static{this.\u0275prov=l.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})()},88058:(Bt,z,s)=>{"use strict";s.d(z,{_:()=>R});var n=s(61142),l=s(10607),d=s(3678),v=s(60045),S=s(54943),y=s(22743),_=(s(61090),s(81799),s(33328),s(58527));s(28139);let R=(()=>{class B{static configure(H){return{ngModule:B,providers:[n.vh,{provide:d.Rx,useValue:H.logger},{provide:l.Ec,useValue:H.bridge},{provide:v.r,useValue:H.window},{provide:y.v,useValue:H.locale},S.l,l.a5]}}static{this.\u0275fac=function(J){return new(J||B)}}static{this.\u0275mod=_.$C({type:B})}static{this.\u0275inj=_.G2t({})}}return B})()},22743:(Bt,z,s)=>{"use strict";s.d(z,{v:()=>l});var n=s(58527);let l=(()=>{class d{static{this.\u0275fac=function(y){return new(y||d)}}static{this.\u0275prov=n.jDH({token:d,factory:d.\u0275fac})}}return d})()},57643:(Bt,z,s)=>{"use strict";s.d(z,{q:()=>n});var n=function(l){return l[l.None=-1]="None",l[l.Error=1]="Error",l[l.Warning=2]="Warning",l[l.Info=3]="Info",l[l.Trace=4]="Trace",l[l.Verbose=5]="Verbose",l[l.Event=6]="Event",l}(n||{})},3678:(Bt,z,s)=>{"use strict";s.d(z,{J6:()=>O,Rx:()=>y,Vy:()=>f});var n=s(81834),l=s(57643),d=s(58527),v=s(61142),S=s(72477);let y=(()=>{class P{static{this.\u0275fac=function(r){return new(r||P)}}static{this.\u0275prov=d.jDH({token:P,factory:P.\u0275fac})}}return P})();class f{constructor(_,i,r,a,c,m){this.name=_,this.loggingLevel=i,this.datePipe=r,this.remoteLoggingService=a,this.remoteLoggingEnabled=c,this.consoleLoggingEnabled=m,this.remoteLogging=c,this.consoleLogging=m}error(..._){this.logEntry(l.q.Error,_,console.error.bind(console))}warn(..._){this.logEntry(l.q.Warning,_,console.warn.bind(console))}info(..._){this.logEntry(l.q.Info,_,console.log.bind(console))}verbose(..._){this.logEntry(l.q.Verbose,_,console.log.bind(console))}event(..._){this.logEntry(l.q.Event,_,console.log.bind(console))}trace(..._){this.logEntry(l.q.Trace,_,console.log.bind(console))}updateLogger(_,i){this.remoteLogging=_,this.consoleLogging=i}logEntry(_,i,r){if(this.loggingLevel<_)return;let a="";a=_===l.q.Trace?(0,n.pQ)(this.name,l.q[_].toUpperCase(),this.datePipe,i):(0,n.tO)(this.name,l.q[_].toUpperCase(),this.datePipe,i),this.consoleLogging&&r(a),this.remoteLogging&&this.remoteLoggingService.collectLogString(a)}}let O=(()=>{class P{constructor(i,r,a){this.config=i,this.datePipe=r,this.remoteLoggingService=a,this.loggingLevelOverrides={},this.loggers={},this.remoteLoggingEnabled=!1,this.consoleLoggingEnabled=!0,this.loggingLevelOverrides=s(81248)}updateLoggers(){Object.values(this.loggers).forEach(i=>{i.updateLogger(this.remoteLoggingEnabled,this.consoleLoggingEnabled)})}getLoggingLevel(i){return l.q[this.loggingLevelOverrides[i]]||this.config.defaultLoggingLevel}initialize(i,r){i&&this.remoteLoggingService.initialize(),(this.remoteLoggingEnabled!==i||this.consoleLoggingEnabled!==r)&&(this.remoteLoggingEnabled=i,this.consoleLoggingEnabled=r,this.consoleLoggingEnabled||console.clear(),this.updateLoggers())}getLogger(i){const r=this.getLoggingLevel(i);return this.config.appNamePrefix&&(i=this.config.appNamePrefix+"/"+i),this.loggers[i]||(this.loggers[i]=new f(i,r,this.datePipe,this.remoteLoggingService,this.remoteLoggingEnabled,this.consoleLoggingEnabled)),this.loggers[i]}static{this.\u0275fac=function(r){return new(r||P)(d.KVO(y),d.KVO(v.vh),d.KVO(S.V))}}static{this.\u0275prov=d.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})()},30308:(Bt,z,s)=>{"use strict";s.d(z,{C:()=>d});var n=s(58527),l=s(81834);let d=(()=>{class v{constructor(y){this.networkStatusCheckService=y}get onlineStatusChanged(){return this.networkStatusCheckService.onlineStatusChanged()}get isOnline(){return this.networkStatusCheckService.isOnline()}static{this.\u0275fac=function(f){return new(f||v)(n.KVO(l.A5))}}static{this.\u0275prov=n.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})()},61090:(Bt,z,s)=>{"use strict";s.d(z,{c:()=>v});var n=s(81834),l=s(58527),d=s(96542);let v=(()=>{class S{constructor(f){this.translate=f}translateText(f,O){return this.translate.instant(f,O)}transform(f){try{const O=Math.round(f);if(!f||!O||f<0)return this.translateText("main.byte",{value:0});const P=1;if(1===f||1===O)return this.translateText("main.byte",{value:f});if(isNaN(parseFloat(f.toString(10)))||!isFinite(f))return"-";const _=["main.bytes","main.kb","main.mb","main.gb","main.tb"];let i=Math.floor(Math.log(f)/Math.log(1024));return i>=_.length&&(i=_.length-1),this.translateText(_[i],{value:(f/Math.pow(1024,Math.floor(i))).toFixed(P)})}catch(O){throw(0,n.RL)(S,O.message)}}static{this.\u0275fac=function(O){return new(O||S)(l.rXU(d.c$,16))}}static{this.\u0275pipe=l.EJ8({name:"convertBytesToKBMBGB",type:S,pure:!0,standalone:!0})}}return S})()},81799:(Bt,z,s)=>{"use strict";s.d(z,{M2:()=>O,k1:()=>v,z3:()=>y});var n=s(81834),l=s(58527),d=s(96542);let v=(()=>{class P{constructor(i){this.translate=i}translateText(i,r){return this.translate.instant(i,r)}transform(i,r){if(!i)return"";try{const a=parseInt(i,10),c=Math.floor(a/3600),m=Math.floor((a-3600*c)/60),M=a-3600*c-60*m;let D="";if(c){const I=this.translateText(1===c?"main.hr":r&&c>=2?"main.aboutHrs":"main.hrs",{value:c});D=r&&c>=2?I:I+" "}return!m||r&&c>=2||(D=D+this.translateText(1===m?"main.min":"main.mins",{value:m})+" "),!M||r&&c||(D+=this.translateText(1===M?"main.sec":"main.secs",{value:M})),D}catch(a){throw(0,n.RL)(P,a.message)}}static{this.\u0275fac=function(r){return new(r||P)(l.rXU(d.c$,16))}}static{this.\u0275pipe=l.EJ8({name:"convertSecondsToTime",type:P,pure:!0,standalone:!0})}}return P})(),y=(()=>{class P{transform(i,r=""){return function S(P,_=""){const i=parseFloat(P);let r=parseInt(P,10),a=Math.floor(r/3600);r%=3600;let c=Math.floor(r/60);r%=60,a<10&&(a=`0${a}`),c<10&&(c=`0${c}`),r<10&&(r=`0${r}`);let m="";return _.includes("fractional")&&(m=Math.round(i%1*1e3),m<10?m=`00${m}`:m<100&&(m=`0${m}`),m=`.${m}`),`${a}:${c}:${r}${m}`}(i,r)}static{this.\u0275fac=function(r){return new(r||P)}}static{this.\u0275pipe=l.EJ8({name:"time",type:P,pure:!0,standalone:!0})}}return P})(),O=(()=>{class P{transform(i){return function f(P){const _=P.toString().split(":");let i=0,r=0,a=0;return _.length>2?(i=parseFloat(_[0]),r=parseFloat(_[1]),a=parseFloat(_[2])):_.length>1?(r=parseFloat(_[0]),a=parseFloat(_[1])):a=parseFloat(_[0]),3600*i+60*r+a}(i)}static{this.\u0275fac=function(r){return new(r||P)}}static{this.\u0275pipe=l.EJ8({name:"seconds",type:P,pure:!0,standalone:!0})}}return P})()},33328:(Bt,z,s)=>{"use strict";s.d(z,{O:()=>v});var n=s(81834),l=s(58527),d=s(74150);let v=(()=>{class S{constructor(f){this.sanitizer=f}transform(f,O){try{return"url"===O?this.sanitizer.bypassSecurityTrustResourceUrl(f):this.sanitizer.bypassSecurityTrustHtml(f)}catch(P){throw(0,n.RL)(S,P.message)}}static{this.\u0275fac=function(O){return new(O||S)(l.rXU(d.up,16))}}static{this.\u0275pipe=l.EJ8({name:"trustAsHtml",type:S,pure:!0,standalone:!0})}}return S})()},26502:(Bt,z,s)=>{"use strict";s.d(z,{zk:()=>v});var n=s(81834);s(56123);class v{constructor(){}static isBrowserPlatform(){return!("cefQuery"in window)&&!v.isAndroidPlatform()}static isCefPlatform(){return"cefQuery"in window}static isAndroidPlatform(){return typeof window.Android<"u"&&"function"==typeof window.Android.isAndroid&&window.Android.isAndroid()}static isBrowserLikePlatform(){return v.isBrowserPlatform()||v.isAndroidPlatform()}static isNativeLikePlatform(){return v.isCefPlatform()||v.isAndroidPlatform()}static isPWAModeOnLGTV(){return/(NetCast|Web0S|Linux\/SmartTV).+PWA/.test(navigator.userAgent)}static isPWAModeOnSamsungTV(){return(0,n.mI)()&&!navigator.userAgent.includes("SamsungBrowser")}static isArmPlatform(){return window.navigator.userAgent.toLowerCase().includes(" arm")}static isTouchPlatform(){return!!window.Touch&&navigator.maxTouchPoints>0}}},70115:(Bt,z,s)=>{"use strict";s.d(z,{Y0:()=>l,dZ:()=>v,rK:()=>S,t_:()=>d});var l=function(y){return y.Desktop="Desktop",y.Laptop="Laptop",y.TV="TV",y.Phone="Phone",y.Tablet="Tablet",y.Server="Server",y.Console="Console",y.HMD="HMD",y.Undefined="undefined",y}(l||{}),d=function(y){return y.Windows="Windows",y.MacOS="MacOS",y.Shield="Shield",y.Android="Android",y.IOS="iOS",y.IPadOS="iPadOS",y.ChromeOS="ChromeOS",y.Linux="Linux",y.Tizen="Tizen",y.WebOS="WebOS",y.TvOS="tvOS",y.XBox="Xbox",y.SteamOS="SteamOS",y.VisionOS="visionOS",y.Undefined="undefined",y}(d||{}),v=function(y){return y.CHROME="Chrome",y.SAFARI="Safari",y.YANDEX="Yandex",y.EDGE="Edge",y.EDGE_LEGACY="Edge_legacy",y.FIREFOX="Firefox",y.SAMSUNG="Samsung",y.CHROMIUM="Chromium",y.OPERA="Opera",y.BRAVE="Brave",y.SILK="Silk",y.Undefined="undefined",y}(v||{});const S="undefined"},62502:(Bt,z,s)=>{"use strict";s.d(z,{Fj:()=>P,gL:()=>y,gr:()=>v,rK:()=>f,u4:()=>O,wx:()=>S});var n=s(70115),l=s(53931);const v={clientId:"{CLIENTID}",clientVer:"{CLIENTVER}",feedbackId:"{FEEDBACKID}",feedbackName:"{FEEDBACKNAME}",feedbackProtocol:"4.4",feedbackSchemaVer:"{FEEDBACKSCHEMAVER}",feedbackSysVer:"",deviceId:l.Qe,userId:l.Qe,externalUserId:l.Qe,idpId:l.Qe,sessionId:l.Qe,sentTs:"",clientTs:"",deviceOS:n.t_.Undefined,deviceOSVersion:l.Qe,deviceMake:l.Qe,deviceModel:l.Qe,deviceType:n.Y0.Undefined,clientType:l.sK.Undefined,clientVariant:l.zg.Undefined,browserType:l.Qe,integrationId:l.Qe,productName:l.Qe,productVersion:l.Qe},S={functional:l.Rg.None,technical:l.Rg.None,behavioral:l.Rg.None},y={bufferSize:5120,chunkCreationTimeout:3e5,chunksQueueSize:20,chunkResendRetryLimit:2},f="undefined";var O=function(_){return _[_.FeedbackRequestAccepted=200]="FeedbackRequestAccepted",_[_.FeedbackSizeOverLimits=413]="FeedbackSizeOverLimits",_[_.InvalidFeedback=460]="InvalidFeedback",_[_.FeedbackIdInUse=461]="FeedbackIdInUse",_[_.FeedbackIdExpired=462]="FeedbackIdExpired",_[_.AttachmentsRejected=466]="AttachmentsRejected",_[_.UnknownClientId=467]="UnknownClientId",_[_.ServerError=500]="ServerError",_}(O||{}),P=function(_){return _[_.AllFramesReceived=200]="AllFramesReceived",_[_.PartialFramesReceived=206]="PartialFramesReceived",_[_.InvalidFeedbackId=462]="InvalidFeedbackId",_[_.NonSequentialChunk=463]="NonSequentialChunk",_[_.FrameChecksumOrSizeMismatch=464]="FrameChecksumOrSizeMismatch",_[_.ServerError=500]="ServerError",_}(P||{})},53931:(Bt,z,s)=>{"use strict";s.d(z,{Qe:()=>n,Rg:()=>v,sK:()=>l,zg:()=>d});const n="undefined";var l=function(S){return S.Native="Native",S.Browser="Browser",S.GFNSDK="GFNSDK",S.Undefined="undefined",S}(l||{}),d=function(S){return S.iBeta="iBeta",S.Release="Release",S.Undefined="undefined",S}(d||{}),v=function(S){return S.Full="Full",S.None="None",S.Temp="Temp",S}(v||{})},77061:(Bt,z,s)=>{"use strict";s.d(z,{V:()=>r});var n=s(80583),l=s(26875),v=s(81834),S=s(33089),y=s(62502),f=s(58527),O=s(61142),P=s(30308),_=s(84580);const i="RemoteLogsSaveKey";let r=(()=>{class a{constructor(m,M,D,I){this.datePipe=m,this.networkStatusService=M,this.injector=D,this.browserLeanModeService=I,this.logsBuffer="",this.chunksQueue=[],this.maxBufferSizeInBytes=y.gL.bufferSize,this.chunkCreationTimeout=y.gL.chunkCreationTimeout,this.logsChunkUpdated$=new n.B7,this.chunksQueueSize=y.gL.chunksQueueSize,this.chunkResendRetryLimit=y.gL.chunkResendRetryLimit,this.logBufferingAllowed=!0,this.leanModeLogger=!1,this.isGfcHeadRequestSent=!1,this.timerSub$=new n.B7,this.isTimerTriggered=!1,this.refreshFeedbackSessionSubject=new n.B7,this.timeBasedLogClearanceCounter=0,this.feedbackSessionClosed=!1,this.newLine="\n",this.chunkSendInProgress=!1}initialize(){this.chunkResendRetryMap=new Map,this.addLogger("LogQueueService",["initialize"]),this.networkStatusService.onlineStatusChanged.subscribe(this.onNetworkStatusChanged.bind(this)),this.browserLeanModeService.leanModeTransitionState.subscribe(m=>{this.leanModeLogger=m,m&&this.stopTimeBasedLogCollection()})}addLogger(m,M){const D=(0,v.tO)(m,"INFO",this.datePipe,M);this.appendLogEntry(D)}setHeadRequestStatus(m){this.isGfcHeadRequestSent=m}checkFeasibilityAndSendChunk(m,M=!1,D){!this.isUserConsentAvailable||!this.isGfcHeadRequestSent||M||this.chunkSendInProgress||(0,l.isEmpty)(m)?this.isUserConsentAvailable&&M&&this.logsChunkUpdated$.next({logString:this.sendChunkToServer(m),isLastChunk:M,params:D}):this.logsChunkUpdated$.next({logString:this.sendChunkToServer(m),isLastChunk:!1})}startTimeBasedLogDispatch(){if(this.addLogger("LogQueueService",["Interval of 10 mins elapsed: current buffer length: ",this.logsBuffer.length]),this.addLogger("LogQueueService",["Chunk send in progress: ",this.chunkSendInProgress]),!1===this.chunkSendInProgress){this.refreshFeedbackSessionSubject.next(++this.timeBasedLogClearanceCounter),this.addLogger("LogQueueService",["Clearing chunk on timeout... "]);const m=this.extractAndSaveChunk();this.checkFeasibilityAndSendChunk(m)}}stopTimeBasedLogCollection(m=""){this.isTimerTriggered=!1,this.timerSub$.next({startTimer:!1,timeout:0}),this.addLogger("LogQueueService",["Stopping log collection timer. "+m])}isBufferSizeWithinLimits(m,M){return!(m.concat(M,this.newLine).length>this.maxBufferSizeInBytes)}sendChunkToServer(m){return this.chunkSendInProgress=!0,m||""}addChunksToQueue(m){this.chunksQueue.length===this.chunksQueueSize&&this.chunksQueue.splice(0,this.chunksQueue.length),this.chunksQueue.push(m),this.chunkResendRetryMap.set(this.chunksQueue[this.chunksQueue.length-1],0)}extractAndSaveChunk(){const m=this.logsBuffer.slice(0);return this.addChunksToQueue(m),this.logsBuffer="",this.popChunkFromQueue()}pushLogToBuffer(m){this.logsBuffer=this.logsBuffer.concat(m,this.newLine)}startTimer(){this.leanModeLogger||(this.timerSub$.next({startTimer:!0,timeout:this.chunkCreationTimeout}),this.isTimerTriggered=!0)}popChunkFromQueue(){const m=this.chunkResendRetryMap.get(this.chunksQueue[0]);return this.isUserConsentAvailable&&this.isGfcHeadRequestSent&&m<=this.chunkResendRetryLimit?(this.chunkResendRetryMap.set(this.chunksQueue[0],m+1),this.chunksQueue.slice(0,1).toString()):(this.isUserConsentAvailable&&this.isGfcHeadRequestSent&&m>this.chunkResendRetryLimit&&this.removeChunkFromSavedQueue(),"")}saveLogsToSessionStorage(){this.addChunksToQueue(this.logsBuffer);const m=JSON.stringify(this.chunksQueue);sessionStorage.setItem(i,m)}readConsoleLogsFromSessionStorage(){const m=JSON.parse(sessionStorage.getItem(i));sessionStorage.removeItem(i),this.appendPreviousLogs(m)}appendPreviousLogs(m){this.chunkResendRetryMap&&this.chunkResendRetryMap.clear(),m=m.concat(this.chunksQueue),this.chunksQueue=m.length>this.chunksQueueSize?m.slice(-this.chunksQueueSize):m;for(let M=0;M<this.chunksQueue.length;M++)this.chunkResendRetryMap.set(this.chunksQueue[M],0)}removeChunkFromSavedQueue(){this.chunkResendRetryMap.delete(this.chunksQueue[0]),this.chunksQueue.splice(0,1)}onNetworkStatusChanged(m){m?this.addLogger("LogQueueService",["LogCollector lib is online right now"]):(this.addLogger("LogQueueService",["LogCollector lib is offline right now"]),this.stopTimeBasedLogCollection())}updateFeedbackSessionStatus(m){this.feedbackSessionClosed=m}getRefreshFeedbackSubjectObservable(){return this.refreshFeedbackSessionSubject.asObservable()}onLogsChunkUpdated(){return this.logsChunkUpdated$.asObservable()}clearQueueAndBuffer(m){const M=this.chunkSendInProgress;this.chunkSendInProgress=!0,this.gfcService=(0,l.isUndefined)(this.gfcService)?this.injector.get(S.NO):this.gfcService;let D="";this.chunksQueue.forEach(I=>{D=D.concat(I,this.newLine)}),D=D.concat(this.logsBuffer,this.newLine),this.logBufferingAllowed&&this.isUserConsentAvailable&&(m?(D=D.concat("sendBeacon api is going to be called."),this.gfcService.sendLastFeedbackChunkEvent(D,this.eventData)):(D=D.concat("eob request will be sent for the last chunk."),this.checkFeasibilityAndSendChunk(D,!0,{isBrowserClosing:m,prevChunkInProgress:M}))),this.logsBuffer="",this.chunksQueue=[],this.chunkSendInProgress=!1,this.eventData=null}appendLogEntry(m){if(this.logBufferingAllowed)if(this.isBufferSizeWithinLimits(this.logsBuffer,m))this.pushLogToBuffer(m);else if(this.feedbackSessionClosed)this.feedbackSessionClosed=!1,this.timeBasedLogClearanceCounter=0,this.refreshFeedbackSessionSubject.next(this.timeBasedLogClearanceCounter),this.pushLogToBuffer(m);else{this.timeBasedLogClearanceCounter=0,this.isTimerTriggered&&this.stopTimeBasedLogCollection("due to buffer limit.");const M=this.extractAndSaveChunk();this.pushLogToBuffer(m),this.checkFeasibilityAndSendChunk(M)}}onSendChunkSuccess(){this.chunkSendInProgress=!1,this.removeChunkFromSavedQueue(),0!==this.chunksQueue.length?this.checkFeasibilityAndSendChunk(this.popChunkFromQueue()):this.startTimer()}onSendChunkFailure(m){switch(this.chunkSendInProgress=!1,m.status){case y.Fj.NonSequentialChunk:case y.Fj.FrameChecksumOrSizeMismatch:case y.Fj.ServerError:this.checkFeasibilityAndSendChunk(this.popChunkFromQueue());break;default:console.log("Error encountered in sending chunks: ",m),m.status!==y.Fj.InvalidFeedbackId&&this.checkFeasibilityAndSendChunk(this.popChunkFromQueue())}}stopChunkCollection(m=!1){this.logBufferingAllowed=m,this.stopTimeBasedLogCollection("Going to stop chunk collection. logBufferingAllowed: "+this.logBufferingAllowed+"."),this.clearQueueAndBuffer(!1)}setBufferConfig(m){this.chunkCreationTimeout=m.msBetweenChunkCreation,this.maxBufferSizeInBytes=m.maxBufferSizeInBytes,this.chunksQueueSize=m.chunksQueueSize,this.chunkResendRetryLimit=m.chunkResendRetryLimit}updateUserConsent(m){this.isUserConsentAvailable=m}updateEventData(m){this.eventData={...m}}timerSubscriptionChanged(){return this.timerSub$.asObservable()}updateTimer(m){"Timeout"===m?this.startTimeBasedLogDispatch():"Cleared"===m&&this.addLogger("LogQueueService",["Log collection timer has been stopped"])}ngOnDestroy(){this.logsBuffer=""}static{this.\u0275fac=function(M){return new(M||a)(f.KVO(O.vh),f.KVO(P.C),f.KVO(f.zZn),f.KVO(_.r))}}static{this.\u0275prov=f.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})()},72477:(Bt,z,s)=>{"use strict";s.d(z,{V:()=>I});var n=s(26875),d=s(85735),v=s(43848),S=s(83915),y=s(75707),f=s(14714),O=s(43615),P=s(33089),_=s(81834),i=s(62502),r=s(53931),a=s(58527),c=s(77061),m=s(30308);let I=(()=>{class U{constructor(T,N,L){this.injector=T,this.logQueueService=N,this.networkStatusService=L,this.defaultConsent=i.wx,this.currentUserConsent=i.wx,this.isUserConsentAvailable=!1,this.currentUserId=i.rK,this.externalUserId=i.rK,this.idpId=i.rK,this.commonFeedbackData=i.gr,this.isGfcHeadRequestSent=!1,this.isOnline=!1,this.chunkFailureCount=0,this.attachmentUploadedPermitted=!0,this.streamSubSessionIds=[],this.feedbackIdSubject=new d.m(1)}initialize(){this.logQueueService.initialize(),this.logQueueService.addLogger("RemoteLoggingService",["initialize"]),this.networkStatusService.onlineStatusChanged.subscribe(this.onNetworkStatusChanged.bind(this)),this.handleBrowserTabClosure(),this.getLatestLogsChunk(),this.trackIdleFeedbackSessions()}set defaultConsentLevel(T){this.defaultConsent=T}saveLogsToSessionStorage(){this.logQueueService.saveLogsToSessionStorage()}restoreSavedLogs(){return this.logQueueService.readConsoleLogsFromSessionStorage()}stopFeedbackUpload(){if(this.isChunkUploadPermitted()){this.logQueueService.addLogger("RemoteLoggingService",["Close current feedback session."]),this.logQueueService.stopChunkCollection(!0),this.logQueueService.setHeadRequestStatus(this.isGfcHeadRequestSent=!1),this.logQueueService.updateFeedbackSessionStatus(!0),this.streamSubSessionIds.splice(0,this.streamSubSessionIds.length);const T={parameters:{streamSessionId:i.rK,streamSubSessionIds:this.streamSubSessionIds.filter(N=>""!==N||null!==N)}};this.eventData=this.eventData??{},this.eventData.parameters={...this.eventData?.parameters,...T.parameters},this.commonFeedbackData={...this.commonFeedbackData,...this.eventData},this.logQueueService.updateEventData(this.eventData)}}trackIdleFeedbackSessions(){this.logQueueService.getRefreshFeedbackSubjectObservable().pipe((0,S.T)(T=>{3===T?(this.logQueueService.addLogger("RemoteLoggingService",["Stopping feedback upload since max idle timeout duration is reached"]),this.stopFeedbackUpload()):0===T&&(this.logQueueService.addLogger("RemoteLoggingService",["Initiating a new feedback session.."]),this.sendNewGfcHeadRequest())})).subscribe()}onNetworkStatusChanged(T){this.isOnline=T}addGdprConsentFields(){this.commonFeedbackData=(0,n.extend)({gdprFuncOptIn:this.currentUserConsent.functional??this.defaultConsent.functional,gdprTechOptIn:this.currentUserConsent.technical,gdprBehOptIn:this.currentUserConsent.behavioral,deviceGdprFuncOptIn:this.defaultConsent.functional,deviceGdprTechOptIn:this.defaultConsent.technical,deviceGdprBehOptIn:this.defaultConsent.behavioral},this.commonFeedbackData)}isChunkUploadPermitted(){return!!this.attachmentUploadedPermitted&&this.chunkFailureCount<=2}getLatestLogsChunk(){this.logChunkReceivedSubscription=this.logQueueService.onLogsChunkUpdated().pipe((0,y.ZZ)(T=>(this.logQueueService.addLogger("RemoteLoggingService",["New batch! Attempting to send a batch of size: ",T.logString.length]),this.isChunkUploadPermitted()?this.isOnline&&this.isUserConsentAvailable?this.sendLogsChunk(T.logString,T.isLastChunk,T.params):(this.logQueueService.chunkSendInProgress=!1,this.logQueueService.addLogger("RemoteLoggingService",["Unable to send batch of logs due to lack of user consent and/or user is offline. isUserConsentAvailable: ",this.isUserConsentAvailable,", isOnline: ",this.isOnline]),(0,v.of)(!1)):(this.logQueueService.addLogger("RemoteLoggingService",["Stopping log collection as max failure count is reached."]),this.logQueueService.stopChunkCollection(),(0,v.of)(!1))))).subscribe(T=>{T||this.logQueueService.addLogger("RemoteLoggingService",["Chunk send failure."])})}terminateChunkReceivedSubscription(){this.logChunkReceivedSubscription&&(this.logChunkReceivedSubscription.unsubscribe(),this.logChunkReceivedSubscription=null)}sendNewGfcHeadRequest(){this.terminateChunkReceivedSubscription(),this.logQueueService.setHeadRequestStatus(this.isGfcHeadRequestSent=!1),this.commonFeedbackData.feedbackId=(0,_.bz)(),this.feedbackIdSubject.next(this.commonFeedbackData.feedbackId),this.commonFeedbackData.clientTs=(new Date).toISOString(),this.logQueueService.addLogger("RemoteLoggingService",["New GFC feedback session created: ",this.commonFeedbackData.feedbackId]),console.log("New GFC feedback session created: ",this.commonFeedbackData.feedbackId),this.sendGfcHeadRequest(this.commonFeedbackData)}handleHeadRequestErrors(T){switch(T.status){case i.u4.FeedbackIdInUse:case i.u4.FeedbackIdExpired:this.logQueueService.setHeadRequestStatus(this.isGfcHeadRequestSent=!1),this.sendNewGfcHeadRequest();break;case i.u4.AttachmentsRejected:this.attachmentUploadedPermitted=!1,this.logQueueService.stopChunkCollection()}}sendGfcHeadRequest(T){this.gfcService=(0,n.isUndefined)(this.gfcService)?this.injector.get(P.NO):this.gfcService,this.isOnline&&this.isUserConsentAvailable&&(T.sentTs=(new Date).toISOString(),this.gfcService.sendFeedbackEvent(T).subscribe(N=>{this.logQueueService.setHeadRequestStatus(this.isGfcHeadRequestSent=!0),(0,n.isNil)(this.logChunkReceivedSubscription)&&this.getLatestLogsChunk()},N=>{this.logQueueService.addLogger("RemoteLoggingService",["Send HEAD request error: ",N]),this.handleHeadRequestErrors(N)}))}handleExternalUrlLoad(){this.logQueueService.clearQueueAndBuffer(!0)}handleBrowserTabClosure(){window.addEventListener("pagehide",T=>{this.logQueueService.addLogger("RemoteLoggingService",["Window pagehide triggered."]),this.isGfcHeadRequestSent&&this.logQueueService.clearQueueAndBuffer(!0)})}handleSpecialAttachmentErrors(T){if(this.isChunkUploadPermitted()&&T.status===i.Fj.InvalidFeedbackId)this.sendNewGfcHeadRequest();else if(this.isChunkUploadPermitted()&&T.status===i.Fj.NonSequentialChunk){const N=T?.rawResponse?.headers?.get("x-data-offset");this.gfcService.updateOffsetOnSuccessfulAttachmentRequest(N)}else this.isChunkUploadPermitted()||(this.logQueueService.addLogger("RemoteLoggingService",["Attachment error, stopping log collection as max failure count is reached."]),this.logQueueService.stopChunkCollection())}sendLogsChunk(T,N,L){return this.gfcService.sendFeedbackChunkEvent(T,this.eventData,N,L).pipe((0,y.ZZ)(E=>(this.gfcService.updateOffsetOnSuccessfulAttachmentRequest(),this.logQueueService.onSendChunkSuccess(),(0,v.of)(!0))),(0,f.W)(E=>(this.logQueueService.addLogger("RemoteLoggingService",["Failure in sending a chunk: ",E]),E?.status?(this.chunkFailureCount++,this.handleSpecialAttachmentErrors(E),this.logQueueService.onSendChunkFailure(E)):this.logQueueService.addLogger("RemoteLoggingService",["Non GFC error occurred: ",E,E?.message]),(0,v.of)(!1))),(0,O.j)(()=>{N&&L?.isBrowserClosing&&this.terminateChunkReceivedSubscription()}))}prepareGfcFeedbackEventParams(T){this.eventData={parameters:T},this.logQueueService.updateEventData(this.eventData)}prepareFeedbackCommonEventData(T){this.commonFeedbackData=(0,n.merge)(this.commonFeedbackData,T),this.feedbackIdSubject.next(this.commonFeedbackData.feedbackId),this.commonFeedbackData.userId===i.rK&&this.logQueueService.updateUserConsent(this.isUserConsentAvailable=!1)}setUserConsent(T){this.currentUserConsent=T.userConsent,(0,n.isEmpty)(T.externalUserId)?(this.externalUserId=T.userId,this.currentUserId=P.Qe,this.idpId=P.Qe):(this.currentUserId=T.userId,this.externalUserId=T.externalUserId,this.idpId=T.idpId),this.currentUserConsent.technical===r.Rg.Full?(this.logQueueService.updateUserConsent(this.isUserConsentAvailable=!0),this.addGdprConsentFields(),this.commonFeedbackData.userId=this.currentUserId,this.commonFeedbackData.externalUserId=this.externalUserId,this.commonFeedbackData.idpId=this.idpId,this.commonFeedbackData.clientTs=(new Date).toISOString(),this.commonFeedbackData=(0,n.extend)(this.commonFeedbackData,this.eventData)):this.logQueueService.updateUserConsent(this.isUserConsentAvailable=!1),this.isGfcHeadRequestSent||this.sendGfcHeadRequest(this.commonFeedbackData)}collectLogString(T){this.logQueueService.appendLogEntry(T)}setBufferConfiguration(T){this.logQueueService.setBufferConfig(T)}updateEventDataParamIds(T){T.streamSessionId?(this.streamSubSessionIds.includes(T.streamSubSessionId)||this.streamSubSessionIds.push(T.streamSubSessionId),0!==this.streamSubSessionIds.filter(N=>""===N).length&&this.streamSubSessionIds.splice(0,1),this.eventData=(0,n.merge)(this.eventData,{parameters:{streamSessionId:T.streamSessionId,streamSubSessionIds:this.streamSubSessionIds}})):T.surveySessionId&&(this.eventData=(0,n.merge)(this.eventData,{parameters:{surveySessionId:T.surveySessionId}})),this.logQueueService.updateEventData(this.eventData)}get feedbackId$(){return this.feedbackIdSubject.asObservable()}ngOnDestroy(){this.terminateChunkReceivedSubscription()}static{this.\u0275fac=function(N){return new(N||U)(a.KVO(a.zZn),a.KVO(c.V),a.KVO(m.C))}}static{this.\u0275prov=a.jDH({token:U,factory:U.\u0275fac,providedIn:"root"})}}return U})()},60045:(Bt,z,s)=>{"use strict";s.d(z,{S:()=>l,r:()=>d});var n=s(58527),l=function(v){return v.Gfe="gfeclient",v.Gfn="gfnclient",v.Igo="shareclient",v.Forager="foragerclient",v.Nvcpl="controlPanelclient",v.Oogg="ooggclient",v.Vdkplaytest="vdkplaytest",v.Nvapp="nvapp",v.Gdn="gdnclient",v}(l||{});let d=(()=>{class v{static{this.\u0275fac=function(f){return new(f||v)}}static{this.\u0275prov=n.jDH({token:v,factory:v.\u0275fac})}}return v})()},99469:(Bt,z,s)=>{"use strict";s.d(z,{lo:()=>a,gB:()=>E0,m1:()=>Sd,Sg:()=>Qe.S,cq:()=>la,Hf:()=>fa,aP:()=>cs,Ou:()=>n.Ou,NZ:()=>n.NZ,rQ:()=>to.r,Un:()=>n.Un,dZ:()=>Ce.dZ,sK:()=>si.sK,zg:()=>si.zg,Qv:()=>pa,Y0:()=>Ce.Y0,T6:()=>ts,Rg:()=>si.Rg,_N:()=>bo._,fg:()=>xn,Ui:()=>T0,Xz:()=>x0,O$:()=>Vl,I_:()=>O0,Nq:()=>Op,sc:()=>_o,tO:()=>Jn,at:()=>bi,t_:()=>Ce.t_,Jm:()=>ar,jS:()=>ho,FK:()=>$a,MY:()=>R,SQ:()=>ea,Ho:()=>ka,Pl:()=>Mn,$f:()=>Qo,rB:()=>Xr,wt:()=>Et,iH:()=>me,$b:()=>Le,V9:()=>zo.V,Vy:()=>L.Vy,q_:()=>Js.q,J6:()=>L.J6,IU:()=>Yo,hi:()=>qn,dU:()=>go,D4:()=>no,CF:()=>$e.C,Sd:()=>P,aI:()=>Se,uP:()=>Yn,zk:()=>v.zk,Vn:()=>Pe.V,fV:()=>Gn,cK:()=>S,Ts:()=>ra,SV:()=>Go,pZ:()=>fs,Lu:()=>_,zW:()=>Me,zH:()=>Ds,yr:()=>sl,O_:()=>ji.O,Qe:()=>si.Qe,s7:()=>Ve,BU:()=>W,BY:()=>G});var n=s(10607),l=s(96542),d=s(85735),v=s(26502);class S{static{this.retrySubject=new d.m(5)}static{this.retryAttempts=5}static{this.intervalBetweenRetries=50}static sendTelemetry(ce){S.retrySubject.subscribe({next:oe=>{ce.info(oe.isSuccess?"success event ":"failure event ",Date.now(),oe)}})}static retry(ce,oe,Re=S.retryAttempts,Dt=S.intervalBetweenRetries){let ni;return new Promise(($i,Dr)=>{ce().then(function(Ao){return v.zk.isBrowserPlatform()&&(ni={isSuccess:!0,attemptCount:S.retryAttempts+1-Re,error:null,fileName:oe},S.retrySubject.next(ni)),$i(Ao)}).catch(Ao=>{if(v.zk.isBrowserPlatform()){if(ni={isSuccess:!1,attemptCount:S.retryAttempts+1-Re,error:Ao,fileName:oe},S.retrySubject.next(ni),1===Re)return void Dr(Ao);setTimeout(()=>{S.retry(ce,oe,Re-1,S.intervalBetweenRetries*(S.retryAttempts+1-Re)).then($i,Dr)},Dt)}else Dr(Ao)})})}}var y=s(43848),f=s(59859),O=s(26875);const P={Ethernet:"Ethernet",WiFi2_4:"WiFi 2.4",WiFi5_0:"WiFi 5.0",WiFi6_0:"WiFi 6.0",WiFiUnknown:"WiFi Unknown",Mobile:"Mobile",Mobile_2G:"Mobile 2G",Mobile_3G:"Mobile 3G",Mobile_4G:"Mobile 4G",Mobile_5G:"Mobile 5G",Wimax:"Wimax",Bluetooth:"Bluetooth",Other:"Other",Unknown:"Unknown"};var _=function(ye){return ye.DeviceId="DeviceId",ye.ProductVersion="ProductVersion",ye.ProductName="ProductName",ye.Region="Region",ye.CPUName="CPUName",ye.Disk="Disk",ye.PhysicalDisk="PhysicalDisk",ye.Display="Display",ye.GPU="GPU",ye.HID="HID",ye.Network="Network",ye.OSName="OSName",ye.OSVersion="OSVersion",ye.BrowserName="BrowserName",ye.BrowserVersion="BrowserVersion",ye.OSBuildNumber="OSBuildNumber",ye.PhysicalMemoryCapacity="PhysicalMemoryCapacity",ye.Platform="Platform",ye.ProcessorArchitecture="ProcessorArchitecture",ye.SystemName="SystemName",ye.UserDefaultUILanguage="UserDefaultUILanguage",ye.VendorName="VendorName",ye.SubApiName="SubApiName",ye.ErrorMessage="ErrorMessage",ye.ApiStatus="ApiStatus",ye.ApiName="ApiName",ye.PluginName="PluginName",ye.DxVersion="DxVersion",ye.DeviceType="DeviceType",ye.ConfidenceInBrowser="ConfidenceInBrowser",ye.IsBrowserForged="IsBrowserForged",ye.Location="Location",ye.Make="Make",ye.Model="Model",ye.CurrentUiMode="CurrentUiMode",ye.DisplayDataInfo="DisplayDataInfo",ye.UserSpecifiedDeviceName="UserSpecifiedDeviceName",ye}(_||{});const i=[_.CPUName,_.OSName,_.OSVersion,_.BrowserName,_.BrowserVersion,_.OSBuildNumber,_.PhysicalMemoryCapacity,_.Platform,_.ProcessorArchitecture,_.SystemName,_.VendorName,_.DeviceType,_.ConfidenceInBrowser,_.IsBrowserForged,_.DeviceId,_.ProductVersion,_.ProductName,_.Make,_.Model,_.UserDefaultUILanguage,_.DxVersion,_.UserSpecifiedDeviceName],r=i.filter(ye=>ye!==_.DxVersion),a=Object.values(_);var c=s(83915),m=s(72147),M=s(14714),D=s(75707),I=s(91384),U=s(86447),V=s(65726),T=s(10174),N=s(53461),L=s(3678);class E{constructor(ce,oe,Re,Dt="assets/i18n/",ni=".json"){this.http=ce,this.prefix=Dt,this.suffix=ni,this.config={},this.logger=oe.getLogger("FallbackTranslationLoader"),this.config.localeFileHashes=Re}getTranslation(ce){let oe;return oe=this.config.localeFileHashes&&this.config.localeFileHashes[ce]?`${this.prefix}${ce}.${this.config.localeFileHashes[ce]}${this.suffix}`:`${this.prefix}${ce}${this.suffix}`,this.http.get(oe)}}var g=s(94485);const R="en_GB",H=["ar"],J=new Map([["ar",["ar_SA","ar_EG"]],["bg",["bg_BG"]],["ca",["ca_ES"]],["cs",["cs_CZ"]],["da",["da_DK"]],["de",["de_DE","de_AT","de_CH"]],["el",["el_GR"]],["en",["en_GB"]],["en_MX",["en_US"]],["en_US",["en_GB"]],["es",["es_MX","es_US","es_ES"]],["es_ES",["es_MX","es_US"]],["fa",["fa_IR"]],["fi",["fi_FI"]],["fr",["fr_FR"]],["hr",["hr_HR"]],["hu",["hu_HU"]],["in",["in_ID"]],["id",["id_ID"]],["it",["it_IT"]],["iw",["iw_IL"]],["he",["he_IL"]],["ja",["ja_JP"]],["ka",["ka_GE"]],["ko",["ko_KR"]],["lt",["lt_LT"]],["lv",["lv_LV"]],["ms",["ms_MY"]],["nb",["nb_NO"]],["no",["nb_NO"]],["nl",["nl_NL"]],["pl",["pl_PL"]],["pt",["pt_BR","pt_PT"]],["pt_PT",["pt_BR"]],["ro",["ro_RO"]],["ru",["ru_RU"]],["sk",["sk_SK"]],["sl",["sl_SI"]],["sr",["sr_RS"]],["sv",["sv_SE"]],["th",["th_TH"]],["tl",["tl_PH"]],["tr",["tr_TR"]],["uk",["uk_UA"]],["vi",["vi_VN"]],["zh",["zh_CN"]],["zh_HK",["zh_TW","zh_CN"]],["zh_MO",["zh_TW","zh_CN"]],["zh_MY",["zh_CN"]],["zh_SG",["zh_CN"]],["zh_TW",["zh_HK","zh_CN"]],["zh_CHT",["zh_TW"]],["zh_CHS",["zh_CN"]],["zh-Latn_CN",["zh_CN"]]]);var re=s(25172),ie=s(58527),ve=s(31315),ue=s(65706),se=s(20924),Z=s(81834),Se=function(ye){return ye.Windows="Windows",ye.Mac="Mac",ye.Linux="Linux",ye}(Se||{}),Ce=s(70115),Be=s(31650);let Me=(()=>{class ye{static{this.BrowserNameNative="Chrome"}constructor(oe,Re,Dt){this.bridgeService=Re,this.previousSystemInfo={},this.systemInfoGuid=(0,Z.bz)(),this.systemInfoGuidSubject=new d.m(1),this.streams=new Map,this.logger=oe.getLogger("crimson/SystemInfoService"),this.clientHeaderInfoStream=Dt.createStream(()=>this.fetchClientHeadersInfo(),!0,!0,!0,3e4),Object.values(_).forEach(ni=>{i.includes(ni)?this.streams.set(ni,Dt.createStream(()=>this.fetchSpecificSystemInfo(ni))):this.streams.set(ni,Dt.createStream(()=>this.fetchSpecificSystemInfo(ni),!0,!0,!0,3e4))}),this.getSystemInfo(r).subscribe()}checkStreamingSupport(){return this.bridgeService.executeCommand(se.Ts.Common.Systeminfo.GetStreamingSupportInfo).pipe((0,c.T)(oe=>oe.IsStreamingSupported))}fetchDeviceId(){return this.bridgeService.executeCommand(se.Ts.Common.Systeminfo.GetDeviceId).pipe((0,c.T)(oe=>({DeviceId:oe.DeviceID})))}getSystemInfoGuid(){return this.systemInfoGuidSubject.asObservable()}updateSystemInfoGuid(oe){(0,O.isEqual)(oe,this.previousSystemInfo)||(this.systemInfoGuid=(0,Z.bz)(),this.previousSystemInfo=oe),this.systemInfoGuidSubject.next(this.systemInfoGuid)}fetchClientHeadersInfo(){return v.zk.isAndroidPlatform()?this.bridgeService.executeCommand(se.Ts.Common.Systeminfo.GetSystemInfo):this.bridgeService.executeCommand(se.Ts.Common.Systeminfo.GetClientHeadersInfo)}fetchSystemInfo(oe){const Re=new Set(oe),Dt=[];if(Re.delete(_.DeviceId)){const ni=this.fetchDeviceId();Dt.push(ni)}if(v.zk.isCefPlatform()&&(Re.delete(_.BrowserName)||Re.delete(_.BrowserVersion))){const ni=this.fetchBrowserInfo();Dt.push(ni)}if(Re.size){const ni=this.bridgeService.executeCommand(se.Ts.Common.Systeminfo.GetSystemInfo,{keys:[...Re]}).pipe((0,c.T)($i=>(delete $i._return_code,delete $i._return_status,delete $i._return_internal,$i)));Dt.push(ni)}return(0,ve.zV)([...Dt]).pipe((0,c.T)(ni=>{let $i={};return ni.forEach(Dr=>{$i={...$i,...Dr}}),$i}),(0,I.M)(ni=>{const $i={...this.previousSystemInfo,...ni};this.updateSystemInfoGuid($i)}))}fetchBrowserInfo(){return this.bridgeService.executeCommand(se.Ts.Common.Systeminfo.GetBrowserInfo).pipe((0,c.T)(oe=>({BrowserName:oe?.BrowserNameNative||Ce.rK,BrowserVersion:oe?.BrowserVersionNative||Ce.rK})))}fetchSpecificSystemInfo(oe){return this.fetchSystemInfo([oe])}getSystemInfo(oe,Re=!1){if(Re)return this.fetchSystemInfo(oe);const Dt=[],ni={};return oe.forEach($i=>{const Dr=this.streams.get($i)?.getData();Dr&&Dr[$i]?ni[$i]=Dr[$i]:Dt.push($i)}),0===Dt.length?(0,y.of)(ni):this.fetchSystemInfo(Dt).pipe((0,c.T)($i=>({...ni,...$i})),(0,I.M)($i=>{Object.keys($i).forEach(Dr=>{this.streams.has(Dr)?this.streams.get(Dr).setData($i,!0):this.logger.error("No systemInfo stream for key ",Dr)})}))}getClientHeadersInfo(oe=!1){return oe?this.clientHeaderInfoStream.refresh().pipe((0,ue.s)(1)):this.clientHeaderInfoStream.get$().pipe((0,ue.s)(1))}getDeviceOSType(){return this.getSystemInfo([_.OSName,_.Platform]).pipe((0,c.T)(oe=>v.zk.isBrowserLikePlatform()?oe.OSName:oe.Platform===Se.Mac?Ce.t_.MacOS:oe.Platform===Se.Windows?Ce.t_.Windows:oe.Platform===Se.Linux?oe.OSName===Ce.t_.SteamOS?Ce.t_.SteamOS:Ce.t_.Linux:Ce.t_.Undefined))}onNetworkChanged(){const oe=this.getSystemInfo([_.Network]);return v.zk.isBrowserPlatform()?(0,ve.zV)([oe,this.bridgeService.executeCommand(se.Ts.Common.Systeminfo.GetNetworkTypeChangedInfo)]).pipe((0,c.T)(([Dt,ni])=>({...Dt.Network,NetworkType:ni.networkType}))).pipe((0,N.F)(Z.ab)):oe.pipe((0,c.T)(Re=>Re.Network))}static{this.\u0275fac=function(Re){return new(Re||ye)(ie.KVO(L.J6),ie.KVO(Be.N),ie.KVO(Z.mZ))}}static{this.\u0275prov=ie.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}}return ye})();var Q=s(22743),A=s(21172);let me=(()=>{class ye{get collator(){return!this._collator&&window.Intl?.Collator&&(this._collator=new Intl.Collator(this.getShortLocale(),{sensitivity:"base",numeric:!0})),this._collator}get displayNames(){return!this._displayNames&&window.Intl?.DisplayNames&&(this._displayNames=new Intl.DisplayNames([this.getLocale().replace("_","-")],{type:"language",languageDisplay:"standard",fallback:"none"})),this._displayNames}constructor(oe,Re,Dt,ni,$i,Dr){this.translate=Re,this.systemInfoService=Dt,this.config=$i,this.pluginsNotificationService=Dr,this.rtlLocaleSupported=!1,this.rtlLayoutEnabled=!1,this.layoutDirectionUpdated$=new d.m(1),this.retrySubject=new d.m(5),this.isSuccessEventSent=!1,this.isDirectionalityInitialized=!1,this._collator=null,this._displayNames=null,this.logger=oe.getLogger("LocaleService"),this.localeChangedSubscription=ni.createStream(this.updateLocale.bind(this)),this.translate.setDefaultLang("en_US")}updateLocale(){const oe=this.systemInfoService.getSystemInfo([_.UserDefaultUILanguage]).pipe((0,c.T)(Re=>{let Dt=Re.UserDefaultUILanguage;return((0,O.isEmpty)(Dt)||this.isRTLLocale(Dt)&&!this.isRTLLocaleSupported)&&(this.logger.error(`Missing default UI language. Falling back to ${R} for default language.`),Dt=R),Dt}));return this.pluginsNotificationService.isPluginLoaded$(re.YQ).pipe((0,m.n)(Re=>Re?oe:(0,y.of)(R)),(0,M.W)(()=>(this.logger.error(`Failed to get system info. Falling back to ${this.defaultLocale} for default language.`),(0,y.of)(R))),(0,D.ZZ)(Re=>{let Dt=Re;return(0,O.isNil)(this.config.supportedLang.find(ni=>ni===Dt))&&(Dt=this.getMappedLocale(Dt)),this.defaultLocale=Dt,this.updateCurrentLocale()}),(0,I.M)(Re=>{this.logger.info("Locale set to "+Re),this._collator=null,this._displayNames=null}))}getLocaleDownloadRetryTelemetryData(){return this.retrySubject}retryOnFailure(oe,Re){let Dt=1;return oe.pipe((0,U.l)(ni=>ni.pipe((0,m.n)($i=>v.zk.isBrowserPlatform()?(this.isSuccessEventSent=!1,this.retrySubject.next({isSuccess:!1,attemptCount:Dt,error:null,fileName:Re+".json"}),Dt>=S.retryAttempts?(this.isSuccessEventSent=!0,this.logger.info("Locale JSON dowload retries expired."),(0,f.$)($i)):(this.logger.info("Locale JSON dowload failed, trying again ",Dt),Dt+=1,(0,y.of)($i))):(this.logger.error("Not a Browser Client, so retry skipped",$i),(0,f.$)($i))),(0,V.c)(Dt*S.intervalBetweenRetries))),(0,I.M)(()=>{!this.isSuccessEventSent&&v.zk.isBrowserPlatform()&&(this.retrySubject.next({isSuccess:!0,attemptCount:Dt,error:null,fileName:Re+".json"}),this.isSuccessEventSent=!0)}))}updateCurrentLocale(){const oe=(0,O.isNil)(this.currentLocale)?this.defaultLocale:this.currentLocale;return this.retryOnFailure(this.translate.use(oe),oe).pipe((0,T.u)(oe),(0,M.W)(Re=>(this.logger.error("Locale Json download failed with error ",Re),this.useMappedLocale(oe))))}getMappedLocale(oe){let Re;return!(0,O.isEmpty)(oe)&&oe.startsWith("zh_Hant")&&(Re="zh_TW"),!(0,O.isEmpty)(oe)&&J.get(oe)&&(Re=J.get(oe)?.find(ni=>this.config.supportedLang.includes(ni))),!Re&&oe!==R&&!(0,O.isEmpty)(oe)&&oe.length>=2&&(Re=J.get(oe.substr(0,2))?.find(ni=>this.config.supportedLang.includes(ni))),Re=Re||R,this.logger.info(`Mapped locale for ${oe} is: ${Re}`),Re}useMappedLocale(oe){const Re=this.getMappedLocale(oe);return this.isSuccessEventSent=!1,this.retryOnFailure(this.translate.use(Re),Re).pipe((0,T.u)(Re),(0,M.W)(()=>Re!==R?(this.logger.error(`Could not find translations for ${oe}, falling back to ${R}`),this.useMappedLocale(R)):(0,f.$)(`Could not load fallback locale ${R}. Translations cannot be loaded.`)))}updateUIDirectionality(){this.isRTLLayoutEnabled=this.isRTLLocale(this.getLocale());const oe=document?.getElementsByTagName("html")[0];oe.dir=this.isRTLLayoutEnabled?"rtl":"ltr";const Re=document?.getElementsByTagName("body")[0];Re.dir=this.isRTLLayoutEnabled?"rtl":"ltr",Re.classList.add(this.isRTLLayoutEnabled?"isRtl":"isLtr"),this.isDirectionalityInitialized=!0}isDirectionalityChanged(){return!this.isRTLLayoutEnabled===this.isRTLLocale(this.getLocale())}useDefaultLocale(){return this.currentLocale=void 0,this.localeChangedSubscription.refresh()}setLocale(oe){return(0,O.isNil)(this.config.supportedLang.find(Re=>Re===oe))&&(oe=this.getMappedLocale(oe)),oe===this.currentLocale?(0,y.of)(this.currentLocale):(this.currentLocale=oe,this.localeChangedSubscription.refresh())}getLocale(){return this.currentLocale?this.currentLocale:this.defaultLocale}getShortLocale(){return this.getLocale()?this.getLocale().substr(0,2):"en"}get localeChanged(){return this.localeChangedSubscription.get$().pipe((0,N.F)(),(0,I.M)(()=>{(!this.isDirectionalityInitialized||this.isDirectionalityChanged())&&this.updateUIDirectionality()}))}get isRTLLocaleSupported(){return this.rtlLocaleSupported}set isRTLLocaleSupported(oe){this.rtlLocaleSupported=oe}get isRTLLayoutEnabled(){return this.rtlLayoutEnabled}set isRTLLayoutEnabled(oe){this.rtlLayoutEnabled=oe,this.layoutDirectionUpdated$.next(!0)}isRTLLocale(oe){return H.includes(oe.substr(0,2))}static{this.\u0275fac=function(Re){return new(Re||ye)(ie.KVO(L.J6),ie.KVO(l.c$),ie.KVO(Me),ie.KVO(Z.mZ),ie.KVO(Q.v),ie.KVO(A.P))}}static{this.\u0275prov=ie.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}}return ye})();function G(ye){return l.h.forRoot({loader:{provide:l.Wr,useFactory:(ce,oe)=>function ne(ye,ce,oe){return new E(ye,ce,oe)}(ce,oe,ye),deps:[g.Qq,L.J6]}})}function W(){return l.h.forChild()}s(70521);var Pe=s(72477),Le=function(ye){return ye.INFO="INFO",ye.WARN="WARN",ye.DEBUG="DEBUG",ye.ERROR="ERROR",ye}(Le||{});let Et=(()=>{class ye{constructor(oe){this.loggingService=oe}logBasedOnLevel(oe){switch(oe.logLevel){case Le.INFO:case Le.DEBUG:this.logger.info(oe.logStr,oe.timeStamp);break;case Le.ERROR:this.logger.error(oe.logStr,oe.timeStamp);break;case Le.WARN:this.logger.warn(oe.logStr,oe.timeStamp)}}sendLog(oe){this.logger=this.loggingService.getLogger(oe.logModule?oe.logModule+"/"+oe.logTag:oe.logTag),this.logBasedOnLevel(oe)}static{this.\u0275fac=function(Re){return new(Re||ye)(ie.KVO(L.J6))}}static{this.\u0275prov=ie.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}}return ye})();var $e=s(30308),Ze=s(36877),Qe=s(60045);let Ve=(()=>{class ye{constructor(oe,Re){this.logger=oe.getLogger("crimson/windowService"),this.windowRef=window||{},this.windowRef.name=Re.name}get window(){return this.windowRef}getFocusEvent(){return(0,Ze.R)(window,"focus")}getPageShowEvent(){return(0,Ze.R)(window,"pageshow")}getBeforeUnloadEvent(){return(0,Ze.R)(window,"beforeunload")}getKeydownEvent(){return(0,Ze.R)(window,"keydown")}getKeyupEvent(){return(0,Ze.R)(window,"keyup")}static{this.\u0275fac=function(Re){return new(Re||ye)(ie.KVO(L.J6),ie.KVO(Qe.r))}}static{this.\u0275prov=ie.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}}return ye})(),nt=(()=>{class ye{get globalStores(){return this.globalStoreDefMap}get userStores(){return this.userStoreDefMap}get appDbName(){return this.dbName}constructor(oe){this.dbName=oe.name,this.globalStoreDefMap=new Map,this.userStoreDefMap=new Map}defineStore(oe,Re){const Dt=oe.storeName;if(Re.has(Dt))throw new Error(`Error: store name already exists: ${Dt}`);let ni;return oe.name=this.dbName,oe.hasOwnProperty("storeDefault")&&(ni=oe.storeDefault,delete oe.storeDefault),Re.set(Dt,{config:oe,upgrades:new Map,storeDefault:ni}),this}defineUpgrade(oe,Re,Dt,ni){const $i=ni.get(oe);return $i.upgrades.set(Re,Dt),$i.upgradeTargetVersion=Re,this}defineGlobalStore(oe){return this.defineStore.call(this,oe,this.globalStoreDefMap)}defineUserStore(oe){return this.defineStore.call(this,oe,this.userStoreDefMap)}upgradeGlobalStore(oe,Re,Dt){return this.defineUpgrade.call(this,oe,Re,Dt,this.globalStoreDefMap)}upgradeUserStore(oe,Re,Dt){return this.defineUpgrade.call(this,oe,Re,Dt,this.userStoreDefMap)}static{this.\u0275fac=function(Re){return new(Re||ye)(ie.KVO(Qe.r))}}static{this.\u0275prov=ie.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}}return ye})();var Ot=s(80583),at=s(63997),It=s(19392),We=s(70650);function xe(ye,ce){this.v=ye,this.k=ce}function lt(ye){return new xe(ye,0)}function ft(ye){var ce,oe;function Re(ni,$i){try{var Dr=ye[ni]($i),Ao=Dr.value,ms=Ao instanceof xe;Promise.resolve(ms?Ao.v:Ao).then(function(us){if(ms){var hl="return"===ni?"return":"next";if(!Ao.k||us.done)return Re(hl,us);us=ye[hl](us).value}Dt(Dr.done?"return":"normal",us)},function(us){Re("throw",us)})}catch(us){Dt("throw",us)}}function Dt(ni,$i){switch(ni){case"return":ce.resolve({value:$i,done:!0});break;case"throw":ce.reject($i);break;default:ce.resolve({value:$i,done:!1})}(ce=ce.next)?Re(ce.key,ce.arg):oe=null}this._invoke=function(ni,$i){return new Promise(function(Dr,Ao){var ms={key:ni,arg:$i,resolve:Dr,reject:Ao,next:null};oe?oe=oe.next=ms:(ce=oe=ms,Re(ni,$i))})},"function"!=typeof ye.return&&(this.return=void 0)}ft.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},ft.prototype.next=function(ye){return this._invoke("next",ye)},ft.prototype.throw=function(ye){return this._invoke("throw",ye)},ft.prototype.return=function(ye){return this._invoke("return",ye)};const Xt=(ye,ce)=>ce.some(oe=>ye instanceof oe);let Ht,Je;const et=new WeakMap,St=new WeakMap,Gt=new WeakMap;let ke={get(ye,ce,oe){if(ye instanceof IDBTransaction){if("done"===ce)return et.get(ye);if("store"===ce)return oe.objectStoreNames[1]?void 0:oe.objectStore(oe.objectStoreNames[0])}return Lt(ye[ce])},set:(ye,ce,oe)=>(ye[ce]=oe,!0),has:(ye,ce)=>ye instanceof IDBTransaction&&("done"===ce||"store"===ce)||ce in ye};function be(ye){ke=ye(ke)}function qe(ye){return"function"==typeof ye?function Ae(ye){return function rt(){return Je||(Je=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(ye)?function(...ce){return ye.apply(Zt(this),ce),Lt(this.request)}:function(...ce){return Lt(ye.apply(Zt(this),ce))}}(ye):(ye instanceof IDBTransaction&&function Wt(ye){if(et.has(ye))return;const ce=new Promise((oe,Re)=>{const Dt=()=>{ye.removeEventListener("complete",ni),ye.removeEventListener("error",$i),ye.removeEventListener("abort",$i)},ni=()=>{oe(),Dt()},$i=()=>{Re(ye.error||new DOMException("AbortError","AbortError")),Dt()};ye.addEventListener("complete",ni),ye.addEventListener("error",$i),ye.addEventListener("abort",$i)});et.set(ye,ce)}(ye),Xt(ye,function tt(){return Ht||(Ht=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(ye,ke):ye)}function Lt(ye){if(ye instanceof IDBRequest)return function yt(ye){const ce=new Promise((oe,Re)=>{const Dt=()=>{ye.removeEventListener("success",ni),ye.removeEventListener("error",$i)},ni=()=>{oe(Lt(ye.result)),Dt()},$i=()=>{Re(ye.error),Dt()};ye.addEventListener("success",ni),ye.addEventListener("error",$i)});return Gt.set(ce,ye),ce}(ye);if(St.has(ye))return St.get(ye);const ce=qe(ye);return ce!==ye&&(St.set(ye,ce),Gt.set(ce,ye)),ce}const Zt=ye=>Gt.get(ye),On=["get","getKey","getAll","getAllKeys","count"],fi=["put","add","delete","clear"],Ji=new Map;function Fi(ye,ce){if(!(ye instanceof IDBDatabase)||ce in ye||"string"!=typeof ce)return;if(Ji.get(ce))return Ji.get(ce);const oe=ce.replace(/FromIndex$/,""),Re=ce!==oe,Dt=fi.includes(oe);if(!(oe in(Re?IDBIndex:IDBObjectStore).prototype)||!Dt&&!On.includes(oe))return;const ni=function(){var $i=(0,We.A)(function*(Dr,...Ao){const ms=this.transaction(Dr,Dt?"readwrite":"readonly");let us=ms.store;return Re&&(us=us.index(Ao.shift())),(yield Promise.all([us[oe](...Ao),Dt&&ms.done]))[0]});return function(Ao){return $i.apply(this,arguments)}}();return Ji.set(ce,ni),ni}be(ye=>({...ye,get:(ce,oe,Re)=>Fi(ce,oe)||ye.get(ce,oe,Re),has:(ce,oe)=>!!Fi(ce,oe)||ye.has(ce,oe)}));const bt=["continue","continuePrimaryKey","advance"],bn={},Pt=new WeakMap,jt=new WeakMap,gn={get(ye,ce){if(!bt.includes(ce))return ye[ce];let oe=bn[ce];return oe||(oe=bn[ce]=function(...Re){Pt.set(this,jt.get(this)[ce](...Re))}),oe}};function ui(){return Ii.apply(this,arguments)}function Ii(){return Ii=function ht(ye){return function(){return new ft(ye.apply(this,arguments))}}(function*(...ye){let ce=this;if(ce instanceof IDBCursor||(ce=yield lt(ce.openCursor(...ye))),!ce)return;const oe=new Proxy(ce,gn);for(jt.set(oe,ce),Gt.set(oe,Zt(ce));ce;)yield oe,ce=yield lt(Pt.get(oe)||ce.continue()),Pt.delete(oe)}),Ii.apply(this,arguments)}function pr(ye,ce){return ce===Symbol.asyncIterator&&Xt(ye,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===ce&&Xt(ye,[IDBIndex,IDBObjectStore])}be(ye=>({...ye,get:(ce,oe,Re)=>pr(ce,oe)?ui:ye.get(ce,oe,Re),has:(ce,oe)=>pr(ce,oe)||ye.has(ce,oe)}));var zr=s(79539),Cn=s(43615);class pn{constructor(ce,oe,Re){this.completesExternally=ce,this.callbacks=oe,this.staticWorkerFn=Re,this.requestQueue$=new Ot.B7,this.startRequestQueue()}startRequestQueue(){this.requestQueue$.pipe((0,zr.H)(ce=>ce.workerFn.pipe((0,D.ZZ)(oe=>{if(ce.response$.observers.length){if(this.completesExternally)return this.onRequestComplete$=new d.m(1),ce.response$.next(oe),ce.response$.complete(),this.callbacks.next&&this.callbacks.next(oe),this.onRequestComplete$;ce.response$.next(oe),ce.response$.complete(),this.callbacks.next&&this.callbacks.next(oe)}return(0,y.of)(!0)}),(0,M.W)(oe=>(ce.response$.error(oe),ce.response$.complete(),this.callbacks.error&&this.callbacks.error(oe),(0,y.of)(oe))),(0,Cn.j)(()=>{this.callbacks.complete&&this.callbacks.complete()})))).subscribe()}queue(...ce){let oe;return oe=(0,at.v)(this.staticWorkerFn?()=>this.staticWorkerFn(...ce):ce.length>1?()=>ce[0](ce.slice(1)):()=>ce[0]()),(0,at.v)(()=>{const Re={workerFn:oe,response$:new Ot.B7};return this.requestQueue$.next(Re),Re.response$.asObservable()})}notifyRequestCompletion(){this.completesExternally&&(this.onRequestComplete$.next(!0),this.onRequestComplete$.complete())}}var cn=s(93181),An=s(25577),Jn=function(ye){return ye.Loading="Loading",ye.Dirty="Dirty",ye.Saved="Saved",ye.NotFound="NotFound",ye}(Jn||{}),hi=function(ye){return ye.UpgradeStart="UpgradeStart",ye.UpgradeEnd="UpgradeEnd",ye}(hi||{}),xi=function(ye){return ye.Upgrade="Upgrade",ye}(xi||{});const xn="https://nvfile/";var Yn=function(ye){return ye.Measure="measure",ye.Resource="resource",ye.Element="element",ye}(Yn||{}),Gn=function(ye){return ye.Image="img",ye}(Gn||{});class Ci{constructor(ce,oe,Re){if(this.config=ce,this.onDbItemChange=oe,this.requestQueue=Re,this.versionKey="_version",this.connected=!1,this.name=this.config.storeName,this.dbName=this.config.dbName,this.userId=this.config.userId,this.config.storeDefinition){const Dt=this.config.storeDefinition;this.upgrade$=this.upgradeStore(this.config.storeName,Dt.storeDefault,Dt.upgrades,Dt.upgradeTargetVersion||0)}else this.upgrade$=(0,y.of)(this);this.upgrade$.subscribe(()=>{this.connected=!0})}logError(...ce){console.error("DbDataStore",this.name,JSON.stringify(ce))}logInfo(...ce){console.info("DbDataStore",this.name,JSON.stringify(ce))}upgradeStore(ce,oe,Re,Dt){let ni;return this.getItem(this.versionKey).pipe((0,D.ZZ)($i=>(performance.mark(hi.UpgradeStart),ni=$i||0,0===ni&&oe?(ni=oe.version,this.processDirectUpgrade(ce,oe,ni)):this.processSequentialUpgrades(ce,ni,Re,Dt))),(0,c.T)(()=>{performance.mark(hi.UpgradeEnd);const $i=this.getDbUpgradeDuration();return this.logInfo(`Time spent in async db upgrade: ${$i}, store: ${ce}, new version: ${ni}`),this}))}getDbUpgradeDuration(){try{return performance.measure(xi.Upgrade,hi.UpgradeStart,hi.UpgradeEnd),performance.getEntriesByType(Yn.Measure).find(ce=>ce.name===xi.Upgrade).duration}catch(ce){return this.logError("Error while calling measure on performance",ce),-1}}processDirectUpgrade(ce,oe,Re){const Dt=[];for(const ni of Object.keys(oe.db))Dt.push(this.setItem(ni,oe.db[ni]));return(0,cn.p)(Dt).pipe((0,D.ZZ)(()=>(this.logInfo(`Store ${ce} successfully set to default version: ${Re}`),this.setItem(this.versionKey,oe.version))),(0,ue.s)(1),(0,c.T)(()=>this),(0,M.W)(ni=>(this.logError(`Store ${ce} failed to upgrade version from 0 to ${Re} due to error: ${ni}`),(0,f.$)(ni))))}processSequentialUpgrades(ce,oe,Re,Dt){if(oe>Dt)return(0,f.$)(`Store ${ce} db downgrade not supported. Version: ${oe}, Target: ${Dt}`);if(oe===Dt)return this.logInfo(`Upgrade not required for Store: ${ce}, Version: ${oe}`),(0,y.of)(this);let ni;return(0,It.H)(Re.keys()).pipe((0,zr.H)($i=>{if(ni=+$i,ni>oe){this.logInfo(`Store: ${ce}, attempting upgrade from version: ${oe} to ${ni}`);const Dr=Re.get(ni);return(0,It.H)(Dr(this)).pipe((0,D.ZZ)(()=>(this.logInfo(`Store ${ce} successfully upgraded to version: ${ni}`),this.setItem(this.versionKey,oe=ni))))}return(0,y.of)(this)}),(0,An.H)(),(0,c.T)(()=>this),(0,M.W)($i=>(this.logError(`Store ${ce} failed to upgrade db from version: ${oe} to ${ni} due to error ${$i}`),(0,f.$)($i))))}getItem(ce){return ce?this.requestQueue.queue(this.name).pipe((0,D.ZZ)(oe=>{const Dt=oe.transaction(this.name,"readonly").objectStore(this.name);return(0,It.H)(Dt.get(ce))}),(0,M.W)(oe=>(this.logError("error fetching item",oe),(0,f.$)(oe))),(0,Cn.j)(()=>{this.requestQueue.notifyRequestCompletion()})):(0,f.$)("invalid key")}getItemByCursor(ce){return this.logInfo("get item using cursor for key ",ce),ce?this.requestQueue.queue(this.name).pipe((0,D.ZZ)(oe=>{this.logInfo("request queue item ",this.name);const Dt=oe.transaction(this.name,"readonly").objectStore(this.name);return new Promise((ni,$i)=>{Dt.openCursor(ce).then(function(Ao){return Ao?Promise.resolve(Ao.value):Promise.resolve()}).then(Dr=>{ni(Dr)}).catch(()=>{$i("Error reading key from store")})})}),(0,M.W)(oe=>(this.logError("error fetching item",oe),(0,f.$)(oe))),(0,Cn.j)(()=>{this.requestQueue.notifyRequestCompletion()})):(0,f.$)("invalid key")}setItem(ce,oe){return this.config.storeDefinition?(oe instanceof Object&&(oe.ts=Date.now()),this.setItemInDb(ce,oe).pipe((0,c.T)(Re=>(this.onDbItemChange.next({storeName:this.name,userId:this.userId,key:ce}),oe)))):this.setItemInDb(ce,oe)}setItemInDb(ce,oe){return this.requestQueue.queue(this.name).pipe((0,D.ZZ)(Re=>{const Dt=Re.transaction(this.name,"readwrite"),$i=Dt.objectStore(this.name).put(oe,ce);return this.finishReadWriteTxObservable($i,Dt.done)}),(0,M.W)(Re=>(this.logError("error setting item",Re),(0,f.$)(Re))),(0,Cn.j)(()=>{this.requestQueue.notifyRequestCompletion()}))}removeItem(ce){return this.requestQueue.queue(this.name).pipe((0,D.ZZ)(oe=>{const Re=oe.transaction(this.name,"readwrite"),ni=Re.objectStore(this.name).delete(ce);return this.finishReadWriteTxObservable(ni,Re.done)}),(0,M.W)(oe=>(this.logError("error removing item",oe),(0,f.$)(oe))),(0,Cn.j)(()=>{this.requestQueue.notifyRequestCompletion()}))}getAllItems(){return this.requestQueue.queue(this.name).pipe((0,D.ZZ)(ce=>{const Re=ce.transaction(this.name,"readonly").objectStore(this.name);return(0,cn.p)([(0,It.H)(Re.getAllKeys()),(0,It.H)(Re.getAll())])}),(0,c.T)(([ce,oe])=>{const Re={};for(let Dt=0;Dt<ce.length;Dt++)(0,O.set)(Re,ce[Dt].split("/"),oe[Dt]);return Re}),(0,M.W)(ce=>(this.logError("error fetching item",ce),(0,f.$)(ce))),(0,Cn.j)(()=>{this.requestQueue.notifyRequestCompletion()}))}getAllItemsByCursor(){return this.requestQueue.queue(this.name).pipe((0,D.ZZ)(ce=>{const Re=ce.transaction(this.name,"readonly").objectStore(this.name),Dt={};return new Promise((ni,$i)=>{Re.openCursor().then(function Dr(Ao){return Ao?((0,O.set)(Dt,Ao.key.split("/"),Ao.value),Ao.continue().then(Dr)):Promise.resolve()}).then(()=>{ni(Dt)}).catch(()=>{$i("Error reading all keys from store")})})}),(0,M.W)(ce=>(this.logError("error fetching item",ce),(0,f.$)(ce))),(0,Cn.j)(()=>{this.requestQueue.notifyRequestCompletion()}))}clear(){return this.requestQueue.queue(this.name).pipe((0,D.ZZ)(ce=>{const oe=ce.transaction(this.name,"readwrite"),Dt=oe.objectStore(this.name).clear();return this.finishReadWriteTxObservable(Dt,oe.done)}),(0,M.W)(ce=>(this.logError("error clearing store",ce),(0,f.$)(ce))),(0,Cn.j)(()=>{this.requestQueue.notifyRequestCompletion()}))}length(){return this.keys().pipe((0,c.T)(ce=>ce.length))}keys(){return this.requestQueue.queue(this.name).pipe((0,D.ZZ)(ce=>ce.transaction(this.name,"readonly").objectStore(this.name).getAllKeys()),(0,M.W)(ce=>(this.logError("error fetching keys",ce),(0,f.$)(ce))),(0,Cn.j)(()=>{this.requestQueue.notifyRequestCompletion()}))}finishReadWriteTxObservable(ce,oe){return(0,cn.p)([(0,It.H)(this.preventTransactionCloseOnError(ce)),(0,It.H)(oe)])}preventTransactionCloseOnError(ce){const oe=Zt(ce);return oe.addEventListener("error",Re=>{this.logError("Request failed, error=",oe.error),Re.preventDefault(),Re.stopPropagation()}),ce}}class ln{get onDbItemChange(){return this.dbItemChange$}constructor(ce,oe,Re){this.dbName=ce,this.globalStoreDefMap=oe,this.userStoreDefMap=Re,this.dbObjectStoresInitialized=new d.m(1),this.dataStores=new Map,this.dbItemChange$=new Ot.B7,this.globalStoreDefMap||(this.globalStoreDefMap=new Map),this.userStoreDefMap||(this.userStoreDefMap=new Map),this.requestQueue=new pn(!0,{next:void 0,error:this.closeDbConnection.bind(this),complete:this.closeDbConnection.bind(this)},this.refreshDbInstance.bind(this))}logError(...ce){console.error("DbHandler",this.dbName,JSON.stringify(ce))}logInfo(...ce){console.info("DbHandler",this.dbName,JSON.stringify(ce))}refreshDbInstance(ce){return(0,at.v)(()=>this.dbObjectStores&&!this.dbObjectStores.contains(ce)?(0,y.of)(!0):(0,y.of)(!1)).pipe((0,D.ZZ)(oe=>oe?(this.logInfo("retrieving db version from disk"),this.openDbInstance(ce).pipe((0,D.ZZ)(Re=>{this.dbInstance=Re,this.dbObjectStores=this.dbInstance.objectStoreNames,this.dbObjectStoresInitialized.next(!0);const Dt=this.dbInstance.version;return this.logInfo("current db version",Dt),this.closeDbConnection(),this.openDbInstance(ce,Dt+1)}))):this.openDbInstance(ce).pipe((0,D.ZZ)(Re=>{if(this.dbInstance=Re,this.dbObjectStores=this.dbInstance.objectStoreNames,this.dbObjectStoresInitialized.next(!0),!this.dbObjectStores.contains(ce)){const Dt=this.dbInstance.version;return this.logInfo(`store ${ce} not found in current db version ${Dt}, upgrading`),this.closeDbConnection(),this.openDbInstance(ce,Dt+1)}return(0,y.of)(this.dbInstance)}))),(0,M.W)(oe=>(this.logError("error",oe),(0,f.$)(oe))))}openDbInstance(ce,oe){return(0,It.H)(function fn(ye,ce,{blocked:oe,upgrade:Re,blocking:Dt,terminated:ni}={}){const $i=indexedDB.open(ye,ce),Dr=Lt($i);return Re&&$i.addEventListener("upgradeneeded",Ao=>{Re(Lt($i.result),Ao.oldVersion,Ao.newVersion,Lt($i.transaction),Ao)}),oe&&$i.addEventListener("blocked",Ao=>oe(Ao.oldVersion,Ao.newVersion,Ao)),Dr.then(Ao=>{ni&&Ao.addEventListener("close",()=>ni()),Dt&&Ao.addEventListener("versionchange",ms=>Dt(ms.oldVersion,ms.newVersion,ms))}).catch(()=>{}),Dr}(this.dbName,oe,{upgrade:Re=>{this.logInfo("upgrading db for",ce),this.dbInstance=Re,this.dbObjectStores=this.dbInstance.objectStoreNames,this.dbObjectStoresInitialized.next(!0),this.dbObjectStores.contains(ce)||this.dbInstance.createObjectStore(ce)}}))}closeDbConnection(){this.dbInstance?(this.dbInstance.close(),this.dbInstance=null):this.logError("attempted to close db connection when local instance unavailable")}getDataStore(ce){if(!this.dataStores.has(ce.storeDbName)){this.logInfo(`Create datastore instance: ${ce.storeDbName}`);const oe=Object.assign({},ce,{dbName:this.dbName});this.dataStores.set(ce.storeDbName,new Ci(oe,this.dbItemChange$,this.requestQueue))}return this.dataStores.get(ce.storeDbName)}getGlobalStore(ce){return this.getDataStore({storeName:ce,storeDbName:ce,storeDefinition:this.globalStoreDefMap.get(ce)})}getUserStore(ce,oe){return this.getDataStore({storeName:oe,storeDbName:`${ce}_${oe}`,userId:ce,storeDefinition:this.userStoreDefMap.get(oe)})}getStore(ce){return this.getDataStore({storeName:ce,storeDbName:ce})}checkIfStoreExists(ce){return this.dbObjectStoresInitialized.asObservable().pipe((0,c.T)(()=>this.dbObjectStores.contains(ce)))}getAllStoreNames(){return Array.from(this.dataStores.keys())}}let bi=(()=>{class ye{constructor(oe,Re){this.logger=Re.getLogger("crimson/DBService"),this.globalStoreDefMap=oe.globalStores,this.userStoreDefMap=oe.userStores,this.dbName=oe.appDbName,this.dbhandlerInstance=new ln(this.dbName,this.globalStoreDefMap,this.userStoreDefMap)}get dbHandler(){return this.dbhandlerInstance}getGlobalStore(oe){return this.dbhandlerInstance.getGlobalStore(oe)}getUserStore(oe,Re){return this.dbhandlerInstance.getUserStore(oe,Re)}getStore(oe){return this.dbhandlerInstance.getStore(oe)}checkKeysOfExisitngDbStore(oe){return this.dbhandlerInstance.checkIfStoreExists(oe).pipe((0,ue.s)(1),(0,D.ZZ)(Re=>Re?this.getGlobalStore(oe).length():(0,y.of)(0)))}deleteOldKeys(oe){return this.checkKeysOfExisitngDbStore(oe).pipe((0,D.ZZ)(Re=>Re?this.getGlobalStore(oe).clear():(0,y.of)(null)),(0,c.T)(Re=>Re?(this.logger.info("Keys in db store deleted"),!0):(this.logger.info("No keys in the dB store, skip deletion"),!1)))}static{this.\u0275fac=function(Re){return new(Re||ye)(ie.KVO(nt),ie.KVO(L.J6))}}static{this.\u0275prov=ie.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}}return ye})();var Zi=s(99443);class Mr{constructor(ce,oe,Re,Dt){this.dbHandler=ce,this.storeName=oe,this.key=Re,this.userId=Dt,this.status_=Jn.Loading,this.syncObservers=new Set,this.wait$=new Zi.h}get status(){return this.status_}updateStatus(ce){const oe=this.status_;this.status_=ce,this.isFirstSyncComplete(oe)&&(this.wait$.next(this.status),this.wait$.complete())}isFirstSyncComplete(ce){return!this.wait$.closed&&ce===Jn.Loading&&this.status_!==Jn.Loading}persist_(){this.updateStatus(Jn.Dirty);const ce=this.getStore(this.userId,this.storeName),oe=(({status:Re,status_:Dt,persist_:ni,sync_:$i,observe_:Dr,unobserve_:Ao,wait_:ms,dbHandler:us,updateStatus:hl,isFirstSyncComplete:jl,getStore:Gc,syncObservers:qc,wait$:Ya,...Ll})=>Ll)(this);return ce.setItem(this.key,oe).pipe((0,I.M)(()=>this.updateStatus(Jn.Saved)),(0,M.W)(()=>(this.logError(`Error persisting the key ${this.key} to db`),(0,y.of)(oe))))}getStore(ce,oe){return ce?this.dbHandler.getUserStore(ce,oe):this.dbHandler.getGlobalStore(oe)}sync_(){return this.getStore(this.userId,this.storeName).getItem(this.key).pipe((0,c.T)(oe=>{if(!((oe=oe||{})instanceof Object))throw new Error("Tried to cache plain old data. Only Object types supported");for(const Re of Object.keys(oe))this[Re]=oe[Re];return this.updateStatus(Jn.Saved),this.syncObservers.forEach(Re=>{Re()}),oe}))}wait_(){return this.wait$.closed&&(this.wait$=new Zi.h,this.status_!==Jn.Loading&&(this.wait$.next(this.status),this.wait$.complete())),this.wait$.asObservable()}observe_(ce){this.syncObservers.add(ce),this.status_!==Jn.Loading&&ce()}unobserve_(ce){this.syncObservers.delete(ce)}logError(...ce){console.error("DbHandler",this.storeName,JSON.stringify(ce))}}let $r=(()=>{class ye{get globalCacheDefinitions(){return this.globalLoadMap}get userCacheDefinitions(){return this.userLoadMap}get globalCache(){return this.globalCacheMap}get userCache(){return this.userCacheMap}constructor(oe){this.dbService=oe,this.globalLoadMap=new Map,this.userLoadMap=new Map,this.globalCacheMap=new Map,this.userCacheMap=new Map}loadGlobalKey(oe,Re){this.globalLoadMap.has(oe)||this.globalLoadMap.set(oe,new Set),this.globalLoadMap.get(oe).add(Re),this.globalCacheMap.has(oe)||this.globalCacheMap.set(oe,new Map),this.globalCacheMap.get(oe).set(Re,new Mr(this.dbService.dbHandler,oe,Re))}loadUserKey(oe,Re){this.userLoadMap.has(oe)||this.userLoadMap.set(oe,new Set),this.userLoadMap.get(oe).add(Re)}static{this.\u0275fac=function(Re){return new(Re||ye)(ie.KVO(bi))}}static{this.\u0275prov=ie.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}}return ye})(),_o=(()=>{class ye{constructor(oe,Re,Dt){this.loggingService=oe,this.dbService=Dt,this.logger=this.loggingService.getLogger("crimson/dbCacheService"),this.globalCacheDefinitions=Re.globalCacheDefinitions,this.userCacheDefinitions=Re.userCacheDefinitions,this.globalCache=Re.globalCache,this.userCacheMap=Re.userCache,this.dbService.dbHandler.onDbItemChange.subscribe(ni=>{let $i;ni.userId?this.userCacheMap.has(ni.userId)&&this.userCacheMap.get(ni.userId).has(ni.storeName)&&($i=this.userCacheMap.get(ni.userId).get(ni.storeName).get(ni.key)):this.globalCache.has(ni.storeName)&&($i=this.globalCache.get(ni.storeName).get(ni.key)),$i&&$i.sync_().subscribe()})}syncGlobal(oe){const Re=this.globalCacheDefinitions.get(oe),Dt=[];return Re.forEach(ni=>{const $i=this.globalCache.get(oe);Dt.push($i.get(ni).sync_())}),(0,cn.p)(Dt).pipe((0,I.M)(()=>{this.logger.info(`Cached DB store ${oe} into memory`)}))}syncUser(oe,Re){const Dt=this.userCacheDefinitions.get(oe);this.userCacheMap.has(Re)||this.initUserCache(Re);const ni=[];return Dt.forEach($i=>{const Dr=this.userCacheMap.get(Re).get(oe);ni.push(Dr.get($i).sync_())}),(0,cn.p)(ni).pipe((0,I.M)(()=>{this.logger.info(`Cached user DB store ${oe} into memory for user ${Re}`)}))}initUserCache(oe){this.userCacheMap.set(oe,new Map),this.userCacheDefinitions.forEach((Re,Dt)=>{Re.forEach(ni=>{this.userCacheMap.get(oe).has(Dt)||this.userCacheMap.get(oe).set(Dt,new Map),this.userCacheMap.get(oe).get(Dt).set(ni,new Mr(this.dbService.dbHandler,Dt,ni,oe))})})}getCachedGlobalItem(oe,Re){if(this.globalCache.has(oe))return this.globalCache.get(oe).get(Re)}getOrCreateCachedGlobalItem(oe,Re){return(!this.globalCache.has(oe)||!this.globalCache.get(oe).has(Re))&&(this.globalCacheDefinitions.has(oe)||this.globalCacheDefinitions.set(oe,new Set),this.globalCacheDefinitions.get(oe).add(Re),this.globalCache.has(oe)||this.globalCache.set(oe,new Map),this.globalCache.get(oe).set(Re,new Mr(this.dbService.dbHandler,oe,Re))),this.globalCache.get(oe).get(Re)}getCachedUserItem(oe,Re,Dt){return this.userCacheMap.has(oe)||this.initUserCache(oe),this.userCacheMap.get(oe).get(Re).get(Dt)}static{this.\u0275fac=function(Re){return new(Re||ye)(ie.KVO(L.J6),ie.KVO($r),ie.KVO(bi))}}static{this.\u0275prov=ie.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}}return ye})();var bo=s(88058);s(61090),s(81799);var Qi,ji=s(33328);!function(ye){let ce;var oe;(oe=ce=ye.HandlerEventType||(ye.HandlerEventType={})).SimpleWindowEvent="SIMPLE_WINDOW_EVENT",oe.StructuredWindowEvent="STRUCTURED_WINDOW_EVENT",oe.IpcEvent="IPC_EVENT"}(Qi||(Qi={}));var ar=function(ye){return ye.Types=Qi,ye}(ar||{}),jr=s(27731);class ho{constructor(ce,oe){this.bridgeService=ce,this.keyToMessageType=new Map,this.eventHandlerLogger=oe,this.eventStreams=new Z.V$(Re=>{if(!this.keyToMessageType.has(Re))return this.eventHandlerLogger.error("No message type for key",Re),jr.t;const Dt=this.keyToMessageType.get(Re);return this.handlerMap[Dt].internalSubjects.set(Re,new Ot.B7),this.handlerMap[Dt].internalSubjects.get(Re).asObservable()},!1,!1)}registerNewHandler(ce,oe,Re,Dt,ni){this.handlerMap||(this.handlerMap={}),this.handlerMap[ce]={pred:oe,keyFunc:Re,valFunc:Dt,transformedFunc:ni,internalSubjects:new Map}}get$(ce,oe=this.defaultHandlerType){return this.keyToMessageType.has(ce)||this.keyToMessageType.set(ce,oe),this.eventStreams.get$(ce)}processMessage(ce){for(const oe of Object.keys(this.handlerMap))if(this.handlerMap[oe].pred(ce)){const Dt=this.handlerMap[oe].transformedFunc(ce),ni=this.handlerMap[oe].keyFunc(Dt),$i=this.handlerMap[oe].valFunc(Dt);this.handlerMap[oe].internalSubjects.has(ni)?this.handlerMap[oe].internalSubjects.get(ni).next($i):this.eventHandlerLogger.info("No subscribers for event with key ",ni)}}}var no=function(ye){return ye.ApplicationHide="APPLICATION_HIDE",ye.ApplicationShow="APPLICATION_SHOW",ye.WindowMinimize="MINIMIZE",ye.WindowMaximize="MAXIMIZE",ye.WindowRestore="RESTORE",ye.IpcNewMessage="IPC_NEW_MESSAGE",ye.SelfUpdate="SELF_UPDATE",ye.RouteChange="URL_ROUTE_CHANGE",ye.StoredCommandLine="STORED_COMMAND_LINE",ye.ProcessEvent="PROCESS_EVENT",ye.UpdateInitiated="UPDATE_INITIATED",ye.SharedStorageUpdate="SHARED_STORAGE_UPDATE",ye.ForegroundEvent="FOREGROUND_EVENT",ye.DisplayModeChange="DISPLAYMODECHANGE",ye}(no||{});class yo{constructor(ce){const{type:oe,...Re}=ce;this.type=oe,this.params=Re}}class Zr extends yo{constructor(ce){super(ce),this.newRoute=ce["new-route"],this.currentRoute=ce["current-route"]}}class Yr{static create(ce){return ce.type===no.RouteChange?new Zr(ce):new yo(ce)}}let go=(()=>{class ye extends ho{constructor(oe,Re){const Dt=Re.getLogger("nativeEventService");super(oe,Dt),this.logger=Dt,this.defaultHandlerType=ar.Types.HandlerEventType.SimpleWindowEvent,this.registerNewHandler(ar.Types.HandlerEventType.StructuredWindowEvent,ni=>ni.startsWith("json:"),ni=>JSON.parse(ni).type,ni=>ni,ni=>ni.substring(5)),this.registerNewHandler(ar.Types.HandlerEventType.SimpleWindowEvent,ni=>!ni.startsWith("json:"),ni=>ni,ni=>ni,ni=>ni),this.bridgeService.executeCommand(se.Ts.Common.Windowevents.RegisterWindowEventsCallback,{}).subscribe(ni=>{this.processMessage(ni)})}getNativeEvent$(oe){return this.get$(oe,ar.Types.HandlerEventType.StructuredWindowEvent).pipe((0,c.T)(Re=>Yr.create(JSON.parse(Re))))}static{this.\u0275fac=function(Re){return new(Re||ye)(ie.KVO(n.NZ),ie.KVO(L.J6))}}static{this.\u0275prov=ie.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}}return ye})();var zo=s(77061),si=s(53931),to=s(84580);s(76706),s(2833);const dr="(orientation: portrait)",Fr="(orientation: landscape)",br=`(max-width: 430px) and (max-height: 932px) and ${dr}`,Vn=`(max-width: 932px) and (max-height: 430px) and ${Fr}`,qn={IPhone:`${br}, ${Vn}`,IPhoneLandscape:`${Vn}`,IPhonePortrait:`${br}`,IPhoneSELandscape:`(max-width: 568px) and (max-height: 320px) and ${Fr}`,IPhone8Portrait:`(max-width: 375px) and (max-height: 667px) and ${dr}`,IPad:`(max-width: 1024px) and (max-height: 1366px) and ${dr},\n (max-width: 1366px) and (max-height: 1024px) and ${Fr}`},Qo=[16,160,161,17,162,163,18,164,165,91,92,65335],Xr={0:"None",8:"Backsp",9:"Tab",16:"Shift",17:"Ctrl",18:"Alt",12:"Clear",13:"Enter",19:"Pause",20:"Caps",27:"Esc",32:"Space",33:"PgUp",34:"PgDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",41:"Select",42:"Print",43:"Exec",44:"PrtScn",45:"Insert",46:"Delete",47:"Help",91:"Win",92:"Win",93:"Apps",95:"Sleep",96:"Num0",97:"Num1",98:"Num2",99:"Num3",100:"Num4",101:"Num5",102:"Num6",103:"Num7",104:"Num8",105:"Num9",106:"Num*",107:"Num+",108:"Separ",109:"Num-",110:"Num.",111:"Num/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",124:"F13",125:"F14",126:"F15",127:"F16",128:"F17",129:"F18",130:"F19",131:"F20",132:"F21",133:"F22",134:"F23",135:"F24",144:"NumLck",145:"ScrLck",160:"Shift",161:"Shift",162:"Ctrl",163:"Ctrl",164:"Alt",165:"Alt",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",65335:"Cmd"},Go={Backspace:8,Tab:9,Shift:16,Control:17,Alt:18,Clear:12,Enter:13,Pause:19,CapsLock:20,Escape:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Select:41,Print:42,Execute:43,PrintScreen:44,Insert:45,Delete:46,Help:47,Win:91,ContextMenu:93,Standby:95,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,F20:131,F21:132,F22:133,F23:134,F24:135,NumLock:144,ScrollLock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222,Cmd:65335};var Ss=s(3496),kr=s(17669);class pa{constructor(ce,oe,Re){this.osType=oe,this.keyDownOnly=Re,this.currentKeyCombo=[],this.downSet=!1,this.logger=ce.getLogger("crimson/KeypressHelper"),this.shortcutData$=new Ot.B7,this.comboKeydown$=new Ot.B7,Re&&this.comboKeydown$.pipe((0,m.n)(()=>(0,Ss.O)(200))).subscribe(()=>{this.logger.verbose("combokeyhelper CurrentKeyCombo: ",this.currentKeyCombo),this.shortcutData$.next(this.currentKeyCombo),this.resetCurrentKeyCombo()})}get shortcutData(){return this.shortcutData$.asObservable()}get loadedKeyCombo(){return this.currentKeyCombo}get isDownSet(){return this.downSet}get isKeyDownOnly(){return this.keyDownOnly}setDown(){this.downSet=!0}setNonEnglishKeyboardLayout(ce){this.nonEnglishKeyboardLayout=ce}resetDownStatus(){this.downSet=!1}resetCurrentKeyCombo(){this.currentKeyCombo=[]}logEvent(ce,oe){this.keyDownOnly||this.logger.info((oe?"Keyup":"Keydown")+" : "+ce.key)}getCodeFromKbNonPrintableKey(ce){for(const[oe,Re]of kr.QC.entries())if(oe.includes(ce))return Re;return ce.charCodeAt(0)}loadKey(ce){if("Enter"===ce.key||"Unidentified"===ce.key||void 0===ce.key)return!1;let oe=ce.key;"Meta"===oe&&(oe=this.osType===Ce.t_.MacOS?"Cmd":"Win")," "===oe&&(oe="Space");let Re=0;return ce.code.startsWith("Digit")&&1===ce.key.length?Re=ce.code.charCodeAt(5):Go[oe]?Re=Go[oe]:1===oe.length?(this.nonEnglishKeyboardLayout&&(oe=this.getKeyFromCode(ce.code.toLowerCase(),oe)),oe=oe.toUpperCase(),(1!==oe.length||" "===oe)&&(this.logger.info("toUpperCase broken: ",oe," resetting to key event: ",ce.key),oe=ce.key),Re=ce.shiftKey?this.getCodeFromKbNonPrintableKey(oe):oe.charCodeAt(0)):this.logger.info("code is unknown: ",ce.key),-1===this.currentKeyCombo.indexOf(Re)&&(this.currentKeyCombo.push(Re),!0)}isResetKey(ce){return("Backspace"===ce.key||"Delete"===ce.key||" "===ce.key)&&(this.currentKeyCombo.length=0,!0)}isMetaKey(ce){return"Alt"===ce.key||"Shift"===ce.key||"Control"===ce.key||"Meta"===ce.key}isEscapeKey(ce){return"Escape"===ce.key&&(this.currentKeyCombo.length=0,!0)}shouldIgnore(ce){return"Unidentified"===ce.key||"Tab"===ce.key||"ArrowDown"===ce.key||"ArrowUp"===ce.key||"ArrowLeft"===ce.key||"ArrowRight"===ce.key||this.osType===Ce.t_.Windows&&"Meta"===ce.key}isModifierKey(ce){return("Shift"===ce.key||"Meta"===ce.key||"Control"===ce.key||"Alt"===ce.key)&&(this.logger.verbose("isModifierKey"),!0)}handleModifierKeys(ce){if(ce.metaKey){let oe;this.logger.verbose("processKeyDownEvent this.metaKey: "+ce.metaKey),oe=this.osType===Ce.t_.MacOS?"Cmd":"Win",this.currentKeyCombo.push(Go[oe])}ce.shiftKey&&(this.logger.verbose("processKeyDownEvent this.shiftKey: "+ce.shiftKey),this.currentKeyCombo.push(Go.Shift)),ce.ctrlKey&&(this.logger.verbose("processKeyDownEvent this.ctrlKey: "+ce.ctrlKey),this.currentKeyCombo.push(Go.Control)),ce.altKey&&(this.logger.verbose("processKeyDownEvent this.altKey: "+ce.altKey),this.currentKeyCombo.push(Go.Alt))}getKeyFromCode(ce,oe){this.logger.verbose("getKeyFromCode code"+ce);try{const Re=ce.split("key");return this.logger.verbose("getKeyFromCode key"+Re[1]),Re[1]?Re[1]:oe}catch(Re){return this.logger.error("some error occured while fetching key from code",Re),oe}}processKeyDownEvent(ce){this.logEvent(ce,!1),(this.isKeyDownOnly||!this.isResetKey(ce))&&(this.isEscapeKey(ce)||this.shouldIgnore(ce)||this.loadKey(ce)&&this.comboKeydown$.next(ce))}processKeyDownEventForHotkeyInvocation(ce){this.logEvent(ce,!1),(this.isKeyDownOnly||!this.isResetKey(ce))&&(this.isEscapeKey(ce)||this.shouldIgnore(ce)||this.isModifierKey(ce)||(this.handleModifierKeys(ce),this.loadKey(ce)&&this.comboKeydown$.next(ce)))}}let ka=(()=>{class ye{constructor(oe){this.logger=oe.getLogger("crimson/hotkeyHelper")}processKey(oe){if(oe in Xr)return Xr[oe];const Re=String.fromCharCode(oe);return""===Re&&this.logger.error("ERROR: unsupported character: ",oe),Re}shortcutToString(oe){return oe&&0!==oe.length?oe.map(Re=>this.processKey(Re)).join("+"):Xr[0]}static{this.\u0275fac=function(Re){return new(Re||ye)(ie.KVO(L.J6))}}static{this.\u0275prov=ie.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}}return ye})();var Xs=s(5798);const ys={statusCode:Xs.jm.UnknownError};class ma{constructor(ce,oe,Re){this.params=ce,this.networkStatusService=oe,this.bridgeService=Re,this.getFailureCode=Dt=>this.checkRequestCancelled(Dt).pipe((0,D.ZZ)(ni=>ni.statusCode!==Xs.jm.UnknownError?(0,y.of)(ni):this.checkNetworkStatus()),(0,D.ZZ)(ni=>ni.statusCode!==Xs.jm.UnknownError?(0,y.of)(ni):this.checkDNSLookup(Dt.requestUrl)),(0,M.W)(ni=>(0,y.of)(ys))),this.dnsLookupValidity=this.params?.dnsCacheValidity??Xs.fu,this.dnsLookupMap=new Map,this.requestCancelledMap=new Map}checkNetworkStatus(){return(0,y.of)(this.networkStatusService.isOnline?ys:{statusCode:Xs.jm.NetworkStatusOffline})}getCachedDNSEntry(ce){const oe=this.dnsLookupMap.get(ce);if(oe&&Date.now()-oe.lastUpdatedTs<=this.dnsLookupValidity)return oe}checkDNSLookup(ce){const oe=new URL(ce).hostname,Re=this.getCachedDNSEntry(oe);return Re?(0,y.of)(Re.lookupSuccessful?ys:{statusCode:Xs.jm.DNSLookupFailed,isUserOnline:!0,cachedDNSEntry:Re}):this.bridgeService.executeCommand(se.Ts.Common.Systeminfo.DNSLookup,{name:oe}).pipe((0,c.T)(Dt=>{if(!Dt)return ys;const ni={lookupSuccessful:!0,lastUpdatedTs:Date.now(),destinationIp:Dt?.hostname||""};return this.dnsLookupMap.set(oe,ni),{statusCode:Xs.jm.UnknownError,cachedDNSEntry:ni}}),(0,M.W)(Dt=>{const ni={lookupSuccessful:!1,lastUpdatedTs:Date.now(),destinationIp:""};return this.dnsLookupMap.set(oe,ni),(0,y.of)({statusCode:Xs.jm.DNSLookupFailed,isUserOnline:!0,cachedDNSEntry:ni})}))}checkRequestCancelled(ce){const oe={statusCode:Xs.jm.RequestCancelled};return ce.uniqueRequestId&&this.requestCancelledMap.has(ce.uniqueRequestId)?(0,y.of)(oe):ce.isCancelled?(ce.uniqueRequestId&&this.requestCancelledMap.set(ce.uniqueRequestId,!0),(0,y.of)(oe)):(0,y.of)(ys)}}let fs=(()=>{class ye{constructor(oe,Re){this.networkStatusService=oe,this.bridgeService=Re}createAnalyzer(oe){return new ma(oe,this.networkStatusService,this.bridgeService)}static{this.\u0275fac=function(Re){return new(Re||ye)(ie.KVO($e.C),ie.KVO(n.NZ))}}static{this.\u0275prov=ie.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}}return ye})();var Oa=s(12532),Ms=s(16229),Ua=s(8619),Zs=s(55833),qo=s(34593);function js(ye){return ye instanceof HTMLInputElement||ye instanceof HTMLTextAreaElement}function Ia(ye,ce){return ye.visible===ce.visible&&ye.height===ce.height}let Ds=(()=>{class ye{get visualViewport(){return this.window.visualViewport}get document(){return this.window.document}get keyboardState$(){return this._keyboardState$.pipe((0,Ua.p)(oe=>void 0!==oe.height))}get keyboardVisible$(){return this._keyboardState$.pipe((0,c.T)(oe=>oe.visible))}constructor(oe,Re,Dt,ni){this.systemInfoService=Dt,this.ngZone=ni,this.hiddenTextId="hiddentext",this.logger=oe.getLogger("SystemVirtualKeyboardService"),this.window=Re.window,this._keyboardState$=this.createKeyboardState().pipe((0,N.F)(Ia),(0,Zs.t)({bufferSize:1,refCount:!0}))}createKeyboardState(){return this.systemInfoService.getDeviceOSType().pipe((0,ue.s)(1),(0,m.n)(oe=>{switch(oe){case Ce.t_.WebOS:return this.createWebOSKeyboardState();case Ce.t_.Tizen:return this.createTizenKeyboardState();case Ce.t_.Windows:case Ce.t_.Android:return this.createWindowsOrAndroidKeyboardState();case Ce.t_.IOS:case Ce.t_.IPadOS:return this.createIOSKeyboardState();default:return this.logger.warn("Attempting to monitor virtual keyboard state on unsupported platform"),Oa.w}}))}createWebOSKeyboardState(){return v.zk.isPWAModeOnLGTV()?this.ngZone.runOutsideAngular(()=>(0,Ze.R)(this.document,"keyboardStateChange").pipe((0,c.T)(oe=>({visible:oe.detail.visibility})),(0,qo.Z)({visible:!1}))):(this.logger.warn("Virtual keyboard detection is only possible in PWA mode"),jr.t)}createTizenKeyboardState(){return this.ngZone.runOutsideAngular(()=>{const oe=(0,Ms.h)((0,Ze.R)(this.window,"focusin").pipe((0,c.T)(Dt=>js(Dt.target))),(0,Ze.R)(this.window,"focusout").pipe((0,T.u)(!1))),Re=(0,Ze.R)(this.window,"keydown").pipe((0,Ua.p)(Dt=>(Dt.keyCode===Z.O4.Done||"Cancel"===Dt.key)&&js(Dt.target)),(0,I.M)(Dt=>Dt.target.blur()),(0,m.n)(Dt=>jr.t));return(0,Ms.h)(oe,Re).pipe((0,c.T)(Dt=>({visible:Dt})),(0,qo.Z)({visible:js(this.document.activeElement)}))})}createWindowsOrAndroidKeyboardState(){return this.visualViewport?this.ngZone.runOutsideAngular(()=>(0,Ze.R)(this.visualViewport,"resize").pipe((0,c.T)(()=>Math.floor(this.window.innerHeight-this.visualViewport.height)),(0,N.F)()).pipe((0,c.T)(Re=>{const ni=js(this.document.activeElement)?Re:0;return{visible:ni>0,height:ni}}),(0,I.M)(Re=>{Re?.height<=0&&this.document.activeElement?.id===this.hiddenTextId&&this.document.activeElement.blur()}),(0,qo.Z)({visible:!1,height:0}))):(this.logger.warn("visualViewport is required for virtual keyboard detection"),jr.t)}createIOSKeyboardState(){return this.visualViewport?this.ngZone.runOutsideAngular(()=>(0,Ms.h)((0,Ze.R)(this.visualViewport,"resize"),(0,Ze.R)(this.window,"orientationchange")).pipe((0,Ua.p)(()=>this.visualViewport.height!==this.window.innerWidth),(0,c.T)(()=>this.window.innerHeight-this.visualViewport.height),(0,N.F)()).pipe((0,c.T)(Re=>{const ni=js(this.document.activeElement)?Re:0;return{visible:ni>0,height:ni}}),(0,qo.Z)({visible:!1,height:0}))):(this.logger.warn("visualViewport is required for virtual keyboard detection"),jr.t)}static{this.\u0275fac=function(Re){return new(Re||ye)(ie.KVO(L.J6),ie.KVO(Ve),ie.KVO(Me),ie.KVO(ie.SKi))}}static{this.\u0275prov=ie.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}}return ye})();var Js=s(57643),fa=function(ye){return ye.Registered="Registered",ye.NotRegistered="NotRegistered",ye.Played="Played",ye.ClientError="ClientError",ye}(fa||{});let cs=(()=>{class ye{constructor(oe){this.loggingService=oe,this.audioContextMap=new Map,this.audioSubject=new d.m(1),this.logger=this.loggingService.getLogger("AudioPlayService")}getAudioTelemetryData(){return this.audioSubject.asObservable()}playAudio(oe,Re){const Dt=this.audioContextMap.get(oe);Dt?(this.logger.info(`Playing audio ${oe}`),Dt.play()?.then(ni=>{this.logger.info(`Played audio ${oe}`),this.audioSubject.next({eventScenario:Re,eventStatus:fa.Played})}).catch(ni=>{this.logger.error(`Error while playing Audio ${oe} - ${ni}`),this.audioSubject.next({eventScenario:Re,eventStatus:fa.ClientError,errorDetails:ni??""})})):(this.logger.error(`audio type ${oe} is not registered.`),this.audioSubject.next({eventScenario:Re,eventStatus:fa.NotRegistered}))}registerAudio(oe,Re,Dt){Re?this.audioContextMap.has(oe)?this.logger.error(`audio type ${oe} is already registered.`):(this.logger.info(`Registering audio ${oe}.`),this.audioContextMap.set(oe,new Audio(Re)),this.audioSubject.next({eventScenario:Dt,eventStatus:fa.Registered})):this.logger.error(`Invalid src param for audio ${oe}`)}removeAudio(oe){this.audioContextMap.has(oe)&&(this.logger.info(`Removing audio of type: ${oe}`),this.audioContextMap.delete(oe))}static{this.\u0275fac=function(Re){return new(Re||ye)(ie.KVO(L.J6))}}static{this.\u0275prov=ie.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}}return ye})();var $s=s(40198),Vo=function(ye){return ye.READ="read",ye.WRITE="write",ye.DELETE="delete",ye.SUCCESS="success",ye.ERROR="error",ye}(Vo||{}),ds=function(ye){return ye.LoginHint="login_hint",ye.IdpId="idp_id",ye}(ds||{}),la=function(ye){return ye.NVAPP="nvapp",ye.GFN="gfn",ye.GFN_WEB="gfn-web",ye}(la||{});class ra{constructor(ce,oe,Re){this.ssoSharedPageUrl=oe,this.maxWaitTimeIframe=Re,this.clearUserDetailsFromSharedPage=this.iframeInteraction({type:Vo.DELETE}),this.getUserDetailsFromSharedPage=this.iframeInteraction({type:Vo.READ}),this.logger=ce.getLogger("silentLogin");const Dt=new URL(oe);this.sharedUrlPageDomain=Dt.origin}openIframe(ce){const oe=document.createElement("iframe");return oe.setAttribute("src",ce),oe.style.border="0px",oe.style.width="0px",oe.style.height="0px",oe.style.display="none",document.body.appendChild(oe),(0,Ze.R)(oe,"load").pipe((0,T.u)(oe))}closeIframe(ce){ce?ce.remove():this.logger.error("Empty Iframe ELement")}sendIframeMessage(ce,oe){if(!ce)return this.logger.error("Iframe element is not present ",ce),(0,f.$)("Iframe element is not present");switch(this.logger.info("Sending message to iframe ",oe.type),oe.type){case Vo.WRITE:case Vo.READ:case Vo.DELETE:break;default:return(0,f.$)("Invallid message type")}return ce.contentWindow.postMessage(oe,this.sharedUrlPageDomain),(0,Ze.R)(window,"message").pipe((0,$s.w)(this.maxWaitTimeIframe),(0,ue.s)(1),(0,c.T)(Re=>Re?.data?.type===Vo.SUCCESS?Re.data?.payload:(0,f.$)(Re?.data?.type)),(0,M.W)(Re=>(this.logger.info("Error occurred while listening to window message:",Re),(0,f.$)(Re))))}iframeInteraction(ce){let oe;return this.openIframe(this.ssoSharedPageUrl).pipe((0,D.ZZ)(Re=>(oe=Re,this.logger.info("Iframe loaded ",ce.type),this.sendIframeMessage(Re,ce))),(0,D.ZZ)(Re=>(this.logger.info("received reply from iframe, ",ce.type),this.closeIframe(oe),(0,y.of)(Re))),(0,M.W)(Re=>(this.closeIframe(oe),(0,f.$)(Re))))}saveUserDetailsToSharedPage(ce){return ce?(ce.type=Vo.WRITE,this.iframeInteraction(ce)):(0,f.$)("Message Body empty")}}var $o=s(14354),rs=s(6478);let oa=(()=>{class ye{constructor(oe,Re){this.bridgeService=oe,this.loggingService=Re,this.logger=this.loggingService.getLogger("libraries/ConfigStoreService")}writeAppInfoToPersistence(oe){return this.bridgeService.executeCommand(se.Ts.Common.Loginid.AddAppInfoToPersistence,{appInfo:oe},!1,!1).pipe((0,I.M)(Dt=>this.logger.info("AppInfo Write Success")),(0,M.W)(Dt=>(this.logger.error(Dt),(0,f.$)(Dt))))}readAppInfoFromPersistence(){return this.bridgeService.executeCommand(se.Ts.Common.Loginid.GetAllAppInfoFromPersistence,{},!1,!1).pipe((0,c.T)(oe=>oe?.AppsInfo),(0,I.M)(oe=>this.logger.info("AppInfo Read Success")),(0,M.W)(oe=>(this.logger.error(oe),(0,f.$)(oe))))}writeConfigFile(oe,Re){this.logger.info(`Writing in config file for ${oe} ${JSON.stringify(Re)}`);const Dt=Object.keys(Re).map($i=>({key:$i,value:Re[$i]}));return this.bridgeService.executeCommand(se.Ts.Common.Applicationcontrol.WriteGenericConfig,{configname:oe,path:Dt}).pipe((0,I.M)($i=>this.logger.info("Write Success")),(0,M.W)($i=>(this.logger.error($i),(0,f.$)($i))))}readConfigFile(oe,Re){return this.logger.info(`Reading config file for ${oe} ${JSON.stringify(Re)}`),this.bridgeService.executeCommand(se.Ts.Common.Applicationcontrol.ReadGenericConfig,{configname:oe,path:Re}).pipe((0,I.M)(ni=>this.logger.info("Read Success")),(0,M.W)(ni=>(this.logger.error(ni),(0,f.$)(ni))))}removeFromConfig(oe,Re){return this.logger.info(`Removing config ${JSON.stringify(Re)} from file for ${oe}`),this.bridgeService.executeCommand(se.Ts.Common.Applicationcontrol.RemoveFromGenericConfig,{configname:oe,path:Re}).pipe((0,I.M)(ni=>this.logger.info("Config removed")),(0,M.W)(ni=>(this.logger.error(ni),(0,f.$)(ni))))}static{this.\u0275fac=function(Re){return new(Re||ye)(ie.KVO(n.NZ),ie.KVO(L.J6))}}static{this.\u0275prov=ie.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}}return ye})(),Yo=(()=>{class ye{constructor(oe,Re,Dt,ni){this.configStore=oe,this.loggingService=Re,this.router=Dt,this.distributedTracingUtilService=ni,this.cachedSsoLoginInfo=null,this.browserSsoLoginHint=null,this.currentloginSilentLoginInfoUpdateStatus=!1,this.logger=this.loggingService.getLogger("silentlogin/loginhint-service")}isEmptySilentLoginInfo(oe){return!(oe&&oe.idp_id&&oe.login_hint&&oe.applicationName&&""!==oe.idp_id.trim()&&""!==oe.login_hint.trim()&&""!==oe.applicationName.trim())}returnNullIfEmpty(oe){return oe.pipe((0,c.T)(Re=>this.isEmptySilentLoginInfo(Re)?null:Re))}updateSsoLoginInfoEntry(oe,Re,Dt,ni){const $i={idp_id:Re,login_hint:Dt,applicationName:ni};return oe&&!this.isEmptySilentLoginInfo($i)?(this.currentloginSilentLoginInfoUpdateStatus=!0,this.updateSsoLoginInfoEntryInternal($i)):this.cleanUpSsoLoginInfo(ni)}updateSsoLoginInfoEntryInternal(oe){const Re=this._startSpanAndSetDefaults(rs.pB.UpdateLoginHint);return this.getSsoLoginInfo().pipe((0,D.ZZ)(Dt=>Dt&&Dt.applicationName===oe?.applicationName&&Dt.idp_id===oe?.idp_id&&Dt.login_hint===oe?.login_hint?(this.logger.info("No changes detected in SSO login info."),(0,y.of)(!1)):this.setSsoLoginInfo(oe)),(0,M.W)(Dt=>(this.logger.error("Error updating SsoLoginInfoEntry",Dt),this._traceError(Re,Dt,rs.Af.UpdateSsoLoginInfoEntryError),(0,y.of)(!1))),(0,Cn.j)(()=>{this.distributedTracingUtilService.closeSpan(Re)}))}mapAppInfoToSsoLoginInfoEntry(oe){return{idp_id:oe?.idpId,login_hint:oe?.loginHint,applicationName:oe?.applicationName}}getSsoLoginInfo(){const oe=this._startSpanAndSetDefaults(rs.pB.LoginHintGetSsoInfo),Re=this.extractAndClearLoginHintQueryParams();return Re&&!this.isEmptySilentLoginInfo(Re)?(this.browserSsoLoginHint=Re,this.distributedTracingUtilService.closeSpan(oe),(0,y.of)(this.browserSsoLoginHint)):this.cachedSsoLoginInfo&&!this.isEmptySilentLoginInfo(this.cachedSsoLoginInfo)?(this.distributedTracingUtilService.closeSpan(oe),(0,y.of)(this.cachedSsoLoginInfo)):this.configStore.readAppInfoFromPersistence().pipe((0,c.T)((Dt=[])=>{const ni=Dt.find($i=>{const Dr=this.mapAppInfoToSsoLoginInfoEntry($i);return!this.isEmptySilentLoginInfo(Dr)});return ni?this.mapAppInfoToSsoLoginInfoEntry(ni):null}),this.returnNullIfEmpty.bind(this),(0,I.M)(Dt=>this.cachedSsoLoginInfo=Dt),(0,M.W)(Dt=>(this.logger.error("Error occurred while reading the loginids file -",Dt),this._traceError(oe,Dt,rs.Af.GetSsoLoginInfoError),(0,y.of)(null))),(0,Cn.j)(()=>{this.distributedTracingUtilService.closeSpan(oe)}))}extractAndClearLoginHintQueryParams(){const oe=new URL(window.location.href),Re=oe.searchParams;let Dt=null;if(Re.has(ds.LoginHint)&&Re.has(ds.IdpId)){const ni=Re.get(ds.LoginHint),$i=Re.get(ds.IdpId);ni&&""!==ni.trim()&&$i&&""!==$i.trim()?Dt={login_hint:decodeURIComponent(ni),idp_id:decodeURIComponent($i),applicationName:la.GFN_WEB}:this.logger.error("Invalid login hint or idpId from query param. Both values must be provided and not empty."),this.router.events.pipe((0,Ua.p)(Dr=>Dr instanceof $o.wF),(0,ue.s)(1)).subscribe(Dr=>{this.logger.info(`Cleaning up login hint from: ${Dr.url}`),Re.delete(ds.LoginHint),Re.delete(ds.IdpId),window.history.replaceState({},"",oe)})}return Dt}setSsoLoginInfo(oe){return this.configStore.writeAppInfoToPersistence({applicationName:oe.applicationName,idpId:oe?.idp_id,loginHint:oe?.login_hint}).pipe((0,I.M)(Re=>{Re&&(this.cachedSsoLoginInfo=oe)}),(0,M.W)(Re=>(this.logger.error("Error occurred in writeConfigFile:",Re),(0,y.of)(!1))))}cleanUpSsoLoginInfo(oe){if(!this.isEmptySilentLoginInfo(this.cachedSsoLoginInfo)){const Re=this.cachedSsoLoginInfo?.applicationName;if(this.cachedSsoLoginInfo=null,oe===Re&&this.currentloginSilentLoginInfoUpdateStatus)return this.currentloginSilentLoginInfoUpdateStatus=!1,this.setSsoLoginInfo({applicationName:oe,idp_id:"",login_hint:""})}return this.browserSsoLoginHint=null,(0,y.of)(!0)}_traceError(oe,Re,Dt){this.distributedTracingUtilService.setSpanAttribute(oe,rs.NS.Error,!0),this.distributedTracingUtilService.setSpanAttribute(oe,rs.NS.ErrorType,Dt),this.distributedTracingUtilService.setSpanAttribute(oe,rs.NS.ErrorDetails,Re?.message||Re?.toString()||`Unknown error in ${Dt}`)}_startSpanAndSetDefaults(oe){const Re=this.distributedTracingUtilService.startSpan(oe);return this.distributedTracingUtilService.setSpanAttribute(Re,rs.NS.Error,!1),Re}static{this.\u0275fac=function(Re){return new(Re||ye)(ie.KVO(oa),ie.KVO(L.J6),ie.KVO($o.Ix),ie.KVO(rs.Z1))}}static{this.\u0275prov=ie.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}}return ye})();var Bs=s(62931),Va=s(65770),qs=function(ye){return ye.Laptop="Laptop",ye.Notebook="Notebook",ye.SubNotebook="Sub Notebook",ye.Portable="Portable",ye.Convertible="Convertible",ye.Detachable="Detachable",ye}(qs||{});const ks=[qs.Laptop,qs.Convertible,qs.Detachable,qs.Notebook,qs.Portable,qs.SubNotebook];let ea=(()=>{class ye{constructor(oe,Re,Dt,ni){this.loggingService=oe,this.bridgeService=Re,this.windowService=Dt,this.eventStreamFactory=ni,this.logger=this.loggingService.getLogger("HardwareInformationService"),this.gpuInfoStream=this.eventStreamFactory.createStream(()=>this.fetchGPUInfo()),this.genericInfoStream=this.eventStreamFactory.createStream(()=>this.fetchGenericInfo()),this.setupHardwareInfoRefreshOnAppWindowFocus()}getGenericInfo(oe){return oe?this.genericInfoStream.refresh():this.genericInfoStream.get$()}getGpuInfo(oe){return oe?this.gpuInfoStream.refresh():this.gpuInfoStream.get$()}getSLIInformation(oe=!0){return this.getGpuInfo(oe).pipe((0,c.T)(Re=>Re.SLI))}getOptimusStatus(oe=!0){return this.getGpuInfo(oe).pipe((0,c.T)(Re=>Re.IsOptimus))}getIsLaptopSystem(){return this.getGenericInfo(!1).pipe((0,c.T)(oe=>ks.includes(oe?.MoboType)),(0,M.W)(oe=>(0,y.of)(!1)))}fetchHardwareInfo(){return(0,ve.zV)([this.fetchGenericInfo(),this.fetchGPUInfo()]).pipe((0,ue.s)(1),(0,I.M)(([oe,Re])=>{const Dt=this.genericInfoStream.getData(),ni=this.gpuInfoStream.getData();(0,O.isEqual)(Dt,oe)||this.genericInfoStream.setData(oe,!0),(0,O.isEqual)(ni,Re)||this.gpuInfoStream.setData(Re,!0)}))}getQuadroSystemFlag(){return this.getGpuInfo(!1).pipe((0,c.T)(oe=>1==+oe?.GPU?.filter(ni=>ni.IsPrimary)?.[0]?.IsQuadro))}getBlackwellGpuInSystemSync(){const oe=this.gpuInfoStream.getData();return oe?.GPU&&0!==oe.GPU.length&&oe.GPU.find(Dt=>this.isBlackwellArchitecture(Dt.GPUArchitecture))||null}isBlackwellArchitecture(oe){return!!oe&&parseInt(oe,10)>=416}setupHardwareInfoRefreshOnAppWindowFocus(oe){this.onFocusInfoRefreshSub?.unsubscribe(),this.onFocusInfoRefreshSub=this.windowService.getFocusEvent().pipe((0,Bs.B)(oe??500),(0,m.n)(Re=>(this.logger.info("hardware info refreshed on focus"),this.fetchHardwareInfo())),(0,M.W)(Re=>(this.logger.error("failed to reload sys info",Re),(0,y.of)(!0)))).subscribe()}fetchGenericInfo(){return this.genericInfoObs$||(this.genericInfoObs$=this.bridgeService.executeCommand(se.Ts.Nvapp.Driverupdaterecommendation.GetGenericInfo).pipe((0,Va.u)(),(0,I.M)(oe=>{this.logger.info("Generic info fetched success:",oe)}),(0,M.W)(oe=>(this.logger.error("there is problem fetching generic info",oe),(0,f.$)(oe))),(0,Cn.j)(()=>{this.genericInfoObs$=null}))),this.genericInfoObs$}fetchGPUInfo(){return this.gpuInfoObs$||(this.gpuInfoObs$=this.bridgeService.executeCommand(se.Ts.Nvapp.Driverupdaterecommendation.GetGPUInfo).pipe((0,Va.u)(),(0,I.M)(oe=>{this.logger.info("Gpu info fetched success:",oe)}),(0,M.W)(oe=>(this.logger.error("there is problem fetching gpu info",oe),(0,f.$)(oe))),(0,Cn.j)(()=>{this.gpuInfoObs$=null}))),this.gpuInfoObs$}static{this.\u0275fac=function(Re){return new(Re||ye)(ie.KVO(L.J6),ie.KVO(n.NZ),ie.KVO(Ve),ie.KVO(Z.mZ))}}static{this.\u0275prov=ie.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}}return ye})();var ts=function(ye){return ye.NvApp="NVAPP_UI",ye.OSC="NVAPP_OSC_UI",ye.GFN="GFN_UI",ye}(ts||{});let $a=(()=>{class ye{constructor(oe,Re){this.bridgeService=Re,this.logger=oe.getLogger("crimson/ExceptionInfoService")}sendExceptionInfo(oe,Re,Dt,ni,$i,Dr){const us={exceptionInfo:{name:Dt??"",message:ni??"",code:Dr??0,stackTrace:$i??"",clientInfo:{componentName:oe,componentVersion:Re}}};return this.logger.info("Calling Diagnostics Plugin SendExceptionInfo API With Params:",us),this.bridgeService.executeCommand(se.Ts.Common.Diagnostics.SendExceptionInfo,us)}SendUserFeedbackInfo(oe,Re,Dt){const ni={surveyId:oe??"",uiPage:Re??"",uiLanguage:Dt??""};return this.logger.info("Calling Diagnostics Plugin SendUserFeedbackInfo API With Params:",ni),this.bridgeService.executeCommand(se.Ts.Common.Diagnostics.SendUserFeedbackInfo,ni)}static{this.\u0275fac=function(Re){return new(Re||ye)(ie.KVO(L.J6),ie.KVO(Be.N))}}static{this.\u0275prov=ie.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}}return ye})();var va=function(ye){return ye.png="png",ye.png8="png8",ye.png24="png24",ye.png32="png32",ye.png48="png48",ye.png64="png64",ye.jpe="jpe",ye.jpeg="jpeg",ye.jpg="jpg",ye.ico="ico",ye.icon="icon",ye.webp="webp",ye}(va||{});let Mn=(()=>{class ye{constructor(oe){this.defaultImageProperties={f:va.webp},this.logger=oe.getLogger("ImageFormatService")}formatImageServiceUrl(oe,Re={}){const Dt={...this.defaultImageProperties,...Re},ni=Object.keys(Dt);for(const $i of ni){const Dr=Dt[$i]||(0,O.isBoolean)(Dt[$i])?""+Dt[$i]:void 0;Dr&&Dr.length>0&&!(0,O.isNil)(oe)&&(oe+=";"+$i+"="+Dt[$i])}return oe}static{this.\u0275fac=function(Re){return new(Re||ye)(ie.KVO(L.J6))}}static{this.\u0275prov=ie.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}}return ye})();const Tn={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},tn=(ye,ce,oe)=>{let Re;const Dt=Tn[ye];return Re="string"==typeof Dt?Dt:1===ce?Dt.one:Dt.other.replace("{{count}}",ce.toString()),oe?.addSuffix?oe.comparison&&oe.comparison>0?"in "+Re:Re+" ago":Re};function In(ye){return(ce={})=>{const oe=ce.width?String(ce.width):ye.defaultWidth;return ye.formats[oe]||ye.formats[ye.defaultWidth]}}const Xn={date:In({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:In({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ae={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},st=(ye,ce,oe,Re)=>ae[ye];function Ct(ye){return(ce,oe)=>{let Dt;if("formatting"===(oe?.context?String(oe.context):"standalone")&&ye.formattingValues){const $i=ye.defaultFormattingWidth||ye.defaultWidth,Dr=oe?.width?String(oe.width):$i;Dt=ye.formattingValues[Dr]||ye.formattingValues[$i]}else{const $i=ye.defaultWidth,Dr=oe?.width?String(oe.width):ye.defaultWidth;Dt=ye.values[Dr]||ye.values[$i]}return Dt[ye.argumentCallback?ye.argumentCallback(ce):ce]}}const Po={ordinalNumber:(ye,ce)=>{const oe=Number(ye),Re=oe%100;if(Re>20||Re<10)switch(Re%10){case 1:return oe+"st";case 2:return oe+"nd";case 3:return oe+"rd"}return oe+"th"},era:Ct({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Ct({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Ki(ye){return(ce,oe={})=>{const Re=oe.width,ni=ce.match(Re&&ye.matchPatterns[Re]||ye.matchPatterns[ye.defaultMatchWidth]);if(!ni)return null;const $i=ni[0],Dr=Re&&ye.parsePatterns[Re]||ye.parsePatterns[ye.defaultParseWidth],Ao=Array.isArray(Dr)?function ca(ye,ce){for(let oe=0;oe<ye.length;oe++)if(ce(ye[oe]))return oe}(Dr,hl=>hl.test($i)):function el(ye,ce){for(const oe in ye)if(Object.prototype.hasOwnProperty.call(ye,oe)&&ce(ye[oe]))return oe}(Dr,hl=>hl.test($i));let ms;return ms=ye.valueCallback?ye.valueCallback(Ao):Ao,ms=oe.valueCallback?oe.valueCallback(ms):ms,{value:ms,rest:ce.slice($i.length)}}}function Zo(ye){return(ce,oe={})=>{const Re=ce.match(ye.matchPattern);if(!Re)return null;const Dt=Re[0],ni=ce.match(ye.parsePattern);if(!ni)return null;let $i=ye.valueCallback?ye.valueCallback(ni[0]):ni[0];return $i=oe.valueCallback?oe.valueCallback($i):$i,{value:$i,rest:ce.slice(Dt.length)}}}const Ea={ordinalNumber:Zo({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},Ks={code:"en-US",formatDistance:tn,formatLong:Xn,formatRelative:st,localize:Po,match:Ea,options:{weekStartsOn:0,firstWeekContainsDate:1}};let zi={};function mr(){return zi}Math.pow(10,8);const zn=6048e5,Si=6e4,Ri=36e5,Er=43200;function Lr(ye){const ce=Object.prototype.toString.call(ye);return ye instanceof Date||"object"==typeof ye&&"[object Date]"===ce?new ye.constructor(+ye):"number"==typeof ye||"[object Number]"===ce||"string"==typeof ye||"[object String]"===ce?new Date(ye):new Date(NaN)}function Io(ye){const ce=Lr(ye);return ce.setHours(0,0,0,0),ce}function _a(ye){const ce=Lr(ye),oe=new Date(Date.UTC(ce.getFullYear(),ce.getMonth(),ce.getDate(),ce.getHours(),ce.getMinutes(),ce.getSeconds(),ce.getMilliseconds()));return oe.setUTCFullYear(ce.getFullYear()),+ye-+oe}function qt(ye,ce){return ye instanceof Date?new ye.constructor(ce):new Date(ce)}function vs(ye,ce){const oe=mr(),Re=ce?.weekStartsOn??ce?.locale?.options?.weekStartsOn??oe.weekStartsOn??oe.locale?.options?.weekStartsOn??0,Dt=Lr(ye),ni=Dt.getDay(),$i=(ni<Re?7:0)+ni-Re;return Dt.setDate(Dt.getDate()-$i),Dt.setHours(0,0,0,0),Dt}function Ts(ye){return vs(ye,{weekStartsOn:1})}function Gs(ye){const ce=Lr(ye),oe=ce.getFullYear(),Re=qt(ye,0);Re.setFullYear(oe+1,0,4),Re.setHours(0,0,0,0);const Dt=Ts(Re),ni=qt(ye,0);ni.setFullYear(oe,0,4),ni.setHours(0,0,0,0);const $i=Ts(ni);return ce.getTime()>=Dt.getTime()?oe+1:ce.getTime()>=$i.getTime()?oe:oe-1}function Gr(ye){const ce=Lr(ye),oe=+Ts(ce)-+function hs(ye){const ce=Gs(ye),oe=qt(ye,0);return oe.setFullYear(ce,0,4),oe.setHours(0,0,0,0),Ts(oe)}(ce);return Math.round(oe/zn)+1}function Vs(ye,ce){const oe=Lr(ye),Re=oe.getFullYear(),Dt=mr(),ni=ce?.firstWeekContainsDate??ce?.locale?.options?.firstWeekContainsDate??Dt.firstWeekContainsDate??Dt.locale?.options?.firstWeekContainsDate??1,$i=qt(ye,0);$i.setFullYear(Re+1,0,ni),$i.setHours(0,0,0,0);const Dr=vs($i,ce),Ao=qt(ye,0);Ao.setFullYear(Re,0,ni),Ao.setHours(0,0,0,0);const ms=vs(Ao,ce);return oe.getTime()>=Dr.getTime()?Re+1:oe.getTime()>=ms.getTime()?Re:Re-1}function il(ye,ce){const oe=Lr(ye),Re=+vs(oe,ce)-+function sa(ye,ce){const oe=mr(),Re=ce?.firstWeekContainsDate??ce?.locale?.options?.firstWeekContainsDate??oe.firstWeekContainsDate??oe.locale?.options?.firstWeekContainsDate??1,Dt=Vs(ye,ce),ni=qt(ye,0);return ni.setFullYear(Dt,0,Re),ni.setHours(0,0,0,0),vs(ni,ce)}(oe,ce);return Math.round(Re/zn)+1}function Oo(ye,ce){return(ye<0?"-":"")+Math.abs(ye).toString().padStart(ce,"0")}const za={y(ye,ce){const oe=ye.getFullYear(),Re=oe>0?oe:1-oe;return Oo("yy"===ce?Re%100:Re,ce.length)},M(ye,ce){const oe=ye.getMonth();return"M"===ce?String(oe+1):Oo(oe+1,2)},d:(ye,ce)=>Oo(ye.getDate(),ce.length),a(ye,ce){const oe=ye.getHours()/12>=1?"pm":"am";switch(ce){case"a":case"aa":return oe.toUpperCase();case"aaa":return oe;case"aaaaa":return oe[0];default:return"am"===oe?"a.m.":"p.m."}},h:(ye,ce)=>Oo(ye.getHours()%12||12,ce.length),H:(ye,ce)=>Oo(ye.getHours(),ce.length),m:(ye,ce)=>Oo(ye.getMinutes(),ce.length),s:(ye,ce)=>Oo(ye.getSeconds(),ce.length),S(ye,ce){const oe=ce.length,Re=ye.getMilliseconds();return Oo(Math.trunc(Re*Math.pow(10,oe-3)),ce.length)}},Xa={G:function(ye,ce,oe){const Re=ye.getFullYear()>0?1:0;switch(ce){case"G":case"GG":case"GGG":return oe.era(Re,{width:"abbreviated"});case"GGGGG":return oe.era(Re,{width:"narrow"});default:return oe.era(Re,{width:"wide"})}},y:function(ye,ce,oe){if("yo"===ce){const Re=ye.getFullYear();return oe.ordinalNumber(Re>0?Re:1-Re,{unit:"year"})}return za.y(ye,ce)},Y:function(ye,ce,oe,Re){const Dt=Vs(ye,Re),ni=Dt>0?Dt:1-Dt;return"YY"===ce?Oo(ni%100,2):"Yo"===ce?oe.ordinalNumber(ni,{unit:"year"}):Oo(ni,ce.length)},R:function(ye,ce){return Oo(Gs(ye),ce.length)},u:function(ye,ce){return Oo(ye.getFullYear(),ce.length)},Q:function(ye,ce,oe){const Re=Math.ceil((ye.getMonth()+1)/3);switch(ce){case"Q":return String(Re);case"QQ":return Oo(Re,2);case"Qo":return oe.ordinalNumber(Re,{unit:"quarter"});case"QQQ":return oe.quarter(Re,{width:"abbreviated",context:"formatting"});case"QQQQQ":return oe.quarter(Re,{width:"narrow",context:"formatting"});default:return oe.quarter(Re,{width:"wide",context:"formatting"})}},q:function(ye,ce,oe){const Re=Math.ceil((ye.getMonth()+1)/3);switch(ce){case"q":return String(Re);case"qq":return Oo(Re,2);case"qo":return oe.ordinalNumber(Re,{unit:"quarter"});case"qqq":return oe.quarter(Re,{width:"abbreviated",context:"standalone"});case"qqqqq":return oe.quarter(Re,{width:"narrow",context:"standalone"});default:return oe.quarter(Re,{width:"wide",context:"standalone"})}},M:function(ye,ce,oe){const Re=ye.getMonth();switch(ce){case"M":case"MM":return za.M(ye,ce);case"Mo":return oe.ordinalNumber(Re+1,{unit:"month"});case"MMM":return oe.month(Re,{width:"abbreviated",context:"formatting"});case"MMMMM":return oe.month(Re,{width:"narrow",context:"formatting"});default:return oe.month(Re,{width:"wide",context:"formatting"})}},L:function(ye,ce,oe){const Re=ye.getMonth();switch(ce){case"L":return String(Re+1);case"LL":return Oo(Re+1,2);case"Lo":return oe.ordinalNumber(Re+1,{unit:"month"});case"LLL":return oe.month(Re,{width:"abbreviated",context:"standalone"});case"LLLLL":return oe.month(Re,{width:"narrow",context:"standalone"});default:return oe.month(Re,{width:"wide",context:"standalone"})}},w:function(ye,ce,oe,Re){const Dt=il(ye,Re);return"wo"===ce?oe.ordinalNumber(Dt,{unit:"week"}):Oo(Dt,ce.length)},I:function(ye,ce,oe){const Re=Gr(ye);return"Io"===ce?oe.ordinalNumber(Re,{unit:"week"}):Oo(Re,ce.length)},d:function(ye,ce,oe){return"do"===ce?oe.ordinalNumber(ye.getDate(),{unit:"date"}):za.d(ye,ce)},D:function(ye,ce,oe){const Re=function Pr(ye){const ce=Lr(ye);return function Mt(ye,ce){const oe=Io(ye),Re=Io(ce),Dt=+oe-_a(oe),ni=+Re-_a(Re);return Math.round((Dt-ni)/864e5)}(ce,function yi(ye){const ce=Lr(ye),oe=qt(ye,0);return oe.setFullYear(ce.getFullYear(),0,1),oe.setHours(0,0,0,0),oe}(ce))+1}(ye);return"Do"===ce?oe.ordinalNumber(Re,{unit:"dayOfYear"}):Oo(Re,ce.length)},E:function(ye,ce,oe){const Re=ye.getDay();switch(ce){case"E":case"EE":case"EEE":return oe.day(Re,{width:"abbreviated",context:"formatting"});case"EEEEE":return oe.day(Re,{width:"narrow",context:"formatting"});case"EEEEEE":return oe.day(Re,{width:"short",context:"formatting"});default:return oe.day(Re,{width:"wide",context:"formatting"})}},e:function(ye,ce,oe,Re){const Dt=ye.getDay(),ni=(Dt-Re.weekStartsOn+8)%7||7;switch(ce){case"e":return String(ni);case"ee":return Oo(ni,2);case"eo":return oe.ordinalNumber(ni,{unit:"day"});case"eee":return oe.day(Dt,{width:"abbreviated",context:"formatting"});case"eeeee":return oe.day(Dt,{width:"narrow",context:"formatting"});case"eeeeee":return oe.day(Dt,{width:"short",context:"formatting"});default:return oe.day(Dt,{width:"wide",context:"formatting"})}},c:function(ye,ce,oe,Re){const Dt=ye.getDay(),ni=(Dt-Re.weekStartsOn+8)%7||7;switch(ce){case"c":return String(ni);case"cc":return Oo(ni,ce.length);case"co":return oe.ordinalNumber(ni,{unit:"day"});case"ccc":return oe.day(Dt,{width:"abbreviated",context:"standalone"});case"ccccc":return oe.day(Dt,{width:"narrow",context:"standalone"});case"cccccc":return oe.day(Dt,{width:"short",context:"standalone"});default:return oe.day(Dt,{width:"wide",context:"standalone"})}},i:function(ye,ce,oe){const Re=ye.getDay(),Dt=0===Re?7:Re;switch(ce){case"i":return String(Dt);case"ii":return Oo(Dt,ce.length);case"io":return oe.ordinalNumber(Dt,{unit:"day"});case"iii":return oe.day(Re,{width:"abbreviated",context:"formatting"});case"iiiii":return oe.day(Re,{width:"narrow",context:"formatting"});case"iiiiii":return oe.day(Re,{width:"short",context:"formatting"});default:return oe.day(Re,{width:"wide",context:"formatting"})}},a:function(ye,ce,oe){const Dt=ye.getHours()/12>=1?"pm":"am";switch(ce){case"a":case"aa":return oe.dayPeriod(Dt,{width:"abbreviated",context:"formatting"});case"aaa":return oe.dayPeriod(Dt,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return oe.dayPeriod(Dt,{width:"narrow",context:"formatting"});default:return oe.dayPeriod(Dt,{width:"wide",context:"formatting"})}},b:function(ye,ce,oe){const Re=ye.getHours();let Dt;switch(Dt=12===Re?"noon":0===Re?"midnight":Re/12>=1?"pm":"am",ce){case"b":case"bb":return oe.dayPeriod(Dt,{width:"abbreviated",context:"formatting"});case"bbb":return oe.dayPeriod(Dt,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return oe.dayPeriod(Dt,{width:"narrow",context:"formatting"});default:return oe.dayPeriod(Dt,{width:"wide",context:"formatting"})}},B:function(ye,ce,oe){const Re=ye.getHours();let Dt;switch(Dt=Re>=17?"evening":Re>=12?"afternoon":Re>=4?"morning":"night",ce){case"B":case"BB":case"BBB":return oe.dayPeriod(Dt,{width:"abbreviated",context:"formatting"});case"BBBBB":return oe.dayPeriod(Dt,{width:"narrow",context:"formatting"});default:return oe.dayPeriod(Dt,{width:"wide",context:"formatting"})}},h:function(ye,ce,oe){if("ho"===ce){let Re=ye.getHours()%12;return 0===Re&&(Re=12),oe.ordinalNumber(Re,{unit:"hour"})}return za.h(ye,ce)},H:function(ye,ce,oe){return"Ho"===ce?oe.ordinalNumber(ye.getHours(),{unit:"hour"}):za.H(ye,ce)},K:function(ye,ce,oe){const Re=ye.getHours()%12;return"Ko"===ce?oe.ordinalNumber(Re,{unit:"hour"}):Oo(Re,ce.length)},k:function(ye,ce,oe){let Re=ye.getHours();return 0===Re&&(Re=24),"ko"===ce?oe.ordinalNumber(Re,{unit:"hour"}):Oo(Re,ce.length)},m:function(ye,ce,oe){return"mo"===ce?oe.ordinalNumber(ye.getMinutes(),{unit:"minute"}):za.m(ye,ce)},s:function(ye,ce,oe){return"so"===ce?oe.ordinalNumber(ye.getSeconds(),{unit:"second"}):za.s(ye,ce)},S:function(ye,ce){return za.S(ye,ce)},X:function(ye,ce,oe){const Re=ye.getTimezoneOffset();if(0===Re)return"Z";switch(ce){case"X":return Pl(Re);case"XXXX":case"XX":return Hs(Re);default:return Hs(Re,":")}},x:function(ye,ce,oe){const Re=ye.getTimezoneOffset();switch(ce){case"x":return Pl(Re);case"xxxx":case"xx":return Hs(Re);default:return Hs(Re,":")}},O:function(ye,ce,oe){const Re=ye.getTimezoneOffset();switch(ce){case"O":case"OO":case"OOO":return"GMT"+vl(Re,":");default:return"GMT"+Hs(Re,":")}},z:function(ye,ce,oe){const Re=ye.getTimezoneOffset();switch(ce){case"z":case"zz":case"zzz":return"GMT"+vl(Re,":");default:return"GMT"+Hs(Re,":")}},t:function(ye,ce,oe){return Oo(Math.trunc(ye.getTime()/1e3),ce.length)},T:function(ye,ce,oe){return Oo(ye.getTime(),ce.length)}};function vl(ye,ce=""){const oe=ye>0?"-":"+",Re=Math.abs(ye),Dt=Math.trunc(Re/60),ni=Re%60;return 0===ni?oe+String(Dt):oe+String(Dt)+ce+Oo(ni,2)}function Pl(ye,ce){return ye%60==0?(ye>0?"-":"+")+Oo(Math.abs(ye)/60,2):Hs(ye,ce)}function Hs(ye,ce=""){const oe=ye>0?"-":"+",Re=Math.abs(ye);return oe+Oo(Math.trunc(Re/60),2)+ce+Oo(Re%60,2)}const wl=(ye,ce)=>{switch(ye){case"P":return ce.date({width:"short"});case"PP":return ce.date({width:"medium"});case"PPP":return ce.date({width:"long"});default:return ce.date({width:"full"})}},rl=(ye,ce)=>{switch(ye){case"p":return ce.time({width:"short"});case"pp":return ce.time({width:"medium"});case"ppp":return ce.time({width:"long"});default:return ce.time({width:"full"})}},gl={p:rl,P:(ye,ce)=>{const oe=ye.match(/(P+)(p+)?/)||[],Re=oe[1],Dt=oe[2];if(!Dt)return wl(ye,ce);let ni;switch(Re){case"P":ni=ce.dateTime({width:"short"});break;case"PP":ni=ce.dateTime({width:"medium"});break;case"PPP":ni=ce.dateTime({width:"long"});break;default:ni=ce.dateTime({width:"full"})}return ni.replace("{{date}}",wl(Re,ce)).replace("{{time}}",rl(Dt,ce))}},_l=/^D+$/,ii=/^Y+$/,Sl=["D","DD","YY","YYYY"];function oi(ye){return _l.test(ye)}function Oi(ye){return ii.test(ye)}function ki(ye,ce,oe){const Re=function Or(ye,ce,oe){const Re="Y"===ye[0]?"years":"days of the month";return`Use \`${ye.toLowerCase()}\` instead of \`${ye}\` (in \`${ce}\`) for formatting ${Re} to the input \`${oe}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(ye,ce,oe);if(console.warn(Re),Sl.includes(ye))throw new RangeError(Re)}function Ho(ye){if(!function is(ye){return ye instanceof Date||"object"==typeof ye&&"[object Date]"===Object.prototype.toString.call(ye)}(ye)&&"number"!=typeof ye)return!1;const ce=Lr(ye);return!isNaN(Number(ce))}const xa=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ws=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ws=/^'([^]*?)'?$/,Nl=/''/g,Ka=/[a-zA-Z]/;function Cl(ye){const ce=ye.match(ws);return ce?ce[1].replace(Nl,"'"):ye}class Kt{subPriority=0;validate(ce,oe){return!0}}class mt extends Kt{constructor(ce,oe,Re,Dt,ni){super(),this.value=ce,this.validateValue=oe,this.setValue=Re,this.priority=Dt,ni&&(this.subPriority=ni)}validate(ce,oe){return this.validateValue(ce,this.value,oe)}set(ce,oe,Re){return this.setValue(ce,oe,this.value,Re)}}class Yt extends Kt{priority=10;subPriority=-1;set(ce,oe){return oe.timestampIsSet?ce:qt(ce,function Al(ye,ce){const oe=ce instanceof Date?qt(ce,0):new ce(0);return oe.setFullYear(ye.getFullYear(),ye.getMonth(),ye.getDate()),oe.setHours(ye.getHours(),ye.getMinutes(),ye.getSeconds(),ye.getMilliseconds()),oe}(ce,Date))}}class _n{run(ce,oe,Re,Dt){const ni=this.parse(ce,oe,Re,Dt);return ni?{setter:new mt(ni.value,this.validate,this.set,this.priority,this.subPriority),rest:ni.rest}:null}validate(ce,oe,Re){return!0}}const q_month=/^(1[0-2]|0?\d)/,q_date=/^(3[0-1]|[0-2]?\d)/,q_dayOfYear=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,q_week=/^(5[0-3]|[0-4]?\d)/,q_hour23h=/^(2[0-3]|[0-1]?\d)/,q_hour24h=/^(2[0-4]|[0-1]?\d)/,q_hour11h=/^(1[0-1]|0?\d)/,q_hour12h=/^(1[0-2]|0?\d)/,q_minute=/^[0-5]?\d/,q_second=/^[0-5]?\d/,q_singleDigit=/^\d/,q_twoDigits=/^\d{1,2}/,q_threeDigits=/^\d{1,3}/,q_fourDigits=/^\d{1,4}/,q_anyDigitsSigned=/^-?\d+/,q_singleDigitSigned=/^-?\d/,q_twoDigitsSigned=/^-?\d{1,2}/,q_threeDigitsSigned=/^-?\d{1,3}/,q_fourDigitsSigned=/^-?\d{1,4}/,j_basicOptionalMinutes=/^([+-])(\d{2})(\d{2})?|Z/,j_basic=/^([+-])(\d{2})(\d{2})|Z/,j_basicOptionalSeconds=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,j_extended=/^([+-])(\d{2}):(\d{2})|Z/,j_extendedOptionalSeconds=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function te(ye,ce){return ye&&{value:ce(ye.value),rest:ye.rest}}function fe(ye,ce){const oe=ce.match(ye);return oe?{value:parseInt(oe[0],10),rest:ce.slice(oe[0].length)}:null}function Ne(ye,ce){const oe=ce.match(ye);if(!oe)return null;if("Z"===oe[0])return{value:0,rest:ce.slice(1)};const Re="+"===oe[1]?1:-1,Dt=oe[2]?parseInt(oe[2],10):0,ni=oe[3]?parseInt(oe[3],10):0,$i=oe[5]?parseInt(oe[5],10):0;return{value:Re*(Dt*Ri+ni*Si+1e3*$i),rest:ce.slice(oe[0].length)}}function Ye(ye){return fe(q_anyDigitsSigned,ye)}function gt(ye,ce){switch(ye){case 1:return fe(q_singleDigit,ce);case 2:return fe(q_twoDigits,ce);case 3:return fe(q_threeDigits,ce);case 4:return fe(q_fourDigits,ce);default:return fe(new RegExp("^\\d{1,"+ye+"}"),ce)}}function Nt(ye,ce){switch(ye){case 1:return fe(q_singleDigitSigned,ce);case 2:return fe(q_twoDigitsSigned,ce);case 3:return fe(q_threeDigitsSigned,ce);case 4:return fe(q_fourDigitsSigned,ce);default:return fe(new RegExp("^-?\\d{1,"+ye+"}"),ce)}}function on(ye){switch(ye){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function ct(ye,ce){const oe=ce>0,Re=oe?ce:1-ce;let Dt;if(Re<=50)Dt=ye||100;else{const ni=Re+50;Dt=ye+100*Math.trunc(ni/100)-(ye>=ni%100?100:0)}return oe?Dt:1-Dt}function De(ye){return ye%400==0||ye%4==0&&ye%100!=0}const co=[31,28,31,30,31,30,31,31,30,31,30,31],Bo=[31,29,31,30,31,30,31,31,30,31,30,31];function Fs(ye,ce){const oe=Lr(ye);return isNaN(ce)?qt(ye,NaN):(ce&&oe.setDate(oe.getDate()+ce),oe)}function io(ye,ce,oe){const Re=mr(),Dt=oe?.weekStartsOn??oe?.locale?.options?.weekStartsOn??Re.weekStartsOn??Re.locale?.options?.weekStartsOn??0,ni=Lr(ye),$i=ni.getDay(),ms=7-Dt;return Fs(ni,ce<0||ce>6?ce-($i+ms)%7:((ce%7+7)%7+ms)%7-($i+ms)%7)}const mi={G:new class de extends _n{priority=140;parse(ce,oe,Re){switch(oe){case"G":case"GG":case"GGG":return Re.era(ce,{width:"abbreviated"})||Re.era(ce,{width:"narrow"});case"GGGGG":return Re.era(ce,{width:"narrow"});default:return Re.era(ce,{width:"wide"})||Re.era(ce,{width:"abbreviated"})||Re.era(ce,{width:"narrow"})}}set(ce,oe,Re){return oe.era=Re,ce.setFullYear(Re,0,1),ce.setHours(0,0,0,0),ce}incompatibleTokens=["R","u","t","T"]},y:new class pe extends _n{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(ce,oe,Re){const Dt=ni=>({year:ni,isTwoDigitYear:"yy"===oe});switch(oe){case"y":return te(gt(4,ce),Dt);case"yo":return te(Re.ordinalNumber(ce,{unit:"year"}),Dt);default:return te(gt(oe.length,ce),Dt)}}validate(ce,oe){return oe.isTwoDigitYear||oe.year>0}set(ce,oe,Re){const Dt=ce.getFullYear();if(Re.isTwoDigitYear){const $i=ct(Re.year,Dt);return ce.setFullYear($i,0,1),ce.setHours(0,0,0,0),ce}return ce.setFullYear("era"in oe&&1!==oe.era?1-Re.year:Re.year,0,1),ce.setHours(0,0,0,0),ce}},Y:new class Ge extends _n{priority=130;parse(ce,oe,Re){const Dt=ni=>({year:ni,isTwoDigitYear:"YY"===oe});switch(oe){case"Y":return te(gt(4,ce),Dt);case"Yo":return te(Re.ordinalNumber(ce,{unit:"year"}),Dt);default:return te(gt(oe.length,ce),Dt)}}validate(ce,oe){return oe.isTwoDigitYear||oe.year>0}set(ce,oe,Re,Dt){const ni=Vs(ce,Dt);if(Re.isTwoDigitYear){const Dr=ct(Re.year,ni);return ce.setFullYear(Dr,0,Dt.firstWeekContainsDate),ce.setHours(0,0,0,0),vs(ce,Dt)}return ce.setFullYear("era"in oe&&1!==oe.era?1-Re.year:Re.year,0,Dt.firstWeekContainsDate),ce.setHours(0,0,0,0),vs(ce,Dt)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class xt extends _n{priority=130;parse(ce,oe){return Nt("R"===oe?4:oe.length,ce)}set(ce,oe,Re){const Dt=qt(ce,0);return Dt.setFullYear(Re,0,4),Dt.setHours(0,0,0,0),Ts(Dt)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class sn extends _n{priority=130;parse(ce,oe){return Nt("u"===oe?4:oe.length,ce)}set(ce,oe,Re){return ce.setFullYear(Re,0,1),ce.setHours(0,0,0,0),ce}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class En extends _n{priority=120;parse(ce,oe,Re){switch(oe){case"Q":case"QQ":return gt(oe.length,ce);case"Qo":return Re.ordinalNumber(ce,{unit:"quarter"});case"QQQ":return Re.quarter(ce,{width:"abbreviated",context:"formatting"})||Re.quarter(ce,{width:"narrow",context:"formatting"});case"QQQQQ":return Re.quarter(ce,{width:"narrow",context:"formatting"});default:return Re.quarter(ce,{width:"wide",context:"formatting"})||Re.quarter(ce,{width:"abbreviated",context:"formatting"})||Re.quarter(ce,{width:"narrow",context:"formatting"})}}validate(ce,oe){return oe>=1&&oe<=4}set(ce,oe,Re){return ce.setMonth(3*(Re-1),1),ce.setHours(0,0,0,0),ce}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class Un extends _n{priority=120;parse(ce,oe,Re){switch(oe){case"q":case"qq":return gt(oe.length,ce);case"qo":return Re.ordinalNumber(ce,{unit:"quarter"});case"qqq":return Re.quarter(ce,{width:"abbreviated",context:"standalone"})||Re.quarter(ce,{width:"narrow",context:"standalone"});case"qqqqq":return Re.quarter(ce,{width:"narrow",context:"standalone"});default:return Re.quarter(ce,{width:"wide",context:"standalone"})||Re.quarter(ce,{width:"abbreviated",context:"standalone"})||Re.quarter(ce,{width:"narrow",context:"standalone"})}}validate(ce,oe){return oe>=1&&oe<=4}set(ce,oe,Re){return ce.setMonth(3*(Re-1),1),ce.setHours(0,0,0,0),ce}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class ri extends _n{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(ce,oe,Re){const Dt=ni=>ni-1;switch(oe){case"M":return te(fe(q_month,ce),Dt);case"MM":return te(gt(2,ce),Dt);case"Mo":return te(Re.ordinalNumber(ce,{unit:"month"}),Dt);case"MMM":return Re.month(ce,{width:"abbreviated",context:"formatting"})||Re.month(ce,{width:"narrow",context:"formatting"});case"MMMMM":return Re.month(ce,{width:"narrow",context:"formatting"});default:return Re.month(ce,{width:"wide",context:"formatting"})||Re.month(ce,{width:"abbreviated",context:"formatting"})||Re.month(ce,{width:"narrow",context:"formatting"})}}validate(ce,oe){return oe>=0&&oe<=11}set(ce,oe,Re){return ce.setMonth(Re,1),ce.setHours(0,0,0,0),ce}},L:new class Mi extends _n{priority=110;parse(ce,oe,Re){const Dt=ni=>ni-1;switch(oe){case"L":return te(fe(q_month,ce),Dt);case"LL":return te(gt(2,ce),Dt);case"Lo":return te(Re.ordinalNumber(ce,{unit:"month"}),Dt);case"LLL":return Re.month(ce,{width:"abbreviated",context:"standalone"})||Re.month(ce,{width:"narrow",context:"standalone"});case"LLLLL":return Re.month(ce,{width:"narrow",context:"standalone"});default:return Re.month(ce,{width:"wide",context:"standalone"})||Re.month(ce,{width:"abbreviated",context:"standalone"})||Re.month(ce,{width:"narrow",context:"standalone"})}}validate(ce,oe){return oe>=0&&oe<=11}set(ce,oe,Re){return ce.setMonth(Re,1),ce.setHours(0,0,0,0),ce}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class fr extends _n{priority=100;parse(ce,oe,Re){switch(oe){case"w":return fe(q_week,ce);case"wo":return Re.ordinalNumber(ce,{unit:"week"});default:return gt(oe.length,ce)}}validate(ce,oe){return oe>=1&&oe<=53}set(ce,oe,Re,Dt){return vs(function Xi(ye,ce,oe){const Re=Lr(ye),Dt=il(Re,oe)-ce;return Re.setDate(Re.getDate()-7*Dt),Re}(ce,Re,Dt),Dt)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class Rr extends _n{priority=100;parse(ce,oe,Re){switch(oe){case"I":return fe(q_week,ce);case"Io":return Re.ordinalNumber(ce,{unit:"week"});default:return gt(oe.length,ce)}}validate(ce,oe){return oe>=1&&oe<=53}set(ce,oe,Re){return Ts(function xr(ye,ce){const oe=Lr(ye),Re=Gr(oe)-ce;return oe.setDate(oe.getDate()-7*Re),oe}(ce,Re))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class os extends _n{priority=90;subPriority=1;parse(ce,oe,Re){switch(oe){case"d":return fe(q_date,ce);case"do":return Re.ordinalNumber(ce,{unit:"date"});default:return gt(oe.length,ce)}}validate(ce,oe){const Dt=De(ce.getFullYear()),ni=ce.getMonth();return Dt?oe>=1&&oe<=Bo[ni]:oe>=1&&oe<=co[ni]}set(ce,oe,Re){return ce.setDate(Re),ce.setHours(0,0,0,0),ce}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class Es extends _n{priority=90;subpriority=1;parse(ce,oe,Re){switch(oe){case"D":case"DD":return fe(q_dayOfYear,ce);case"Do":return Re.ordinalNumber(ce,{unit:"date"});default:return gt(oe.length,ce)}}validate(ce,oe){return De(ce.getFullYear())?oe>=1&&oe<=366:oe>=1&&oe<=365}set(ce,oe,Re){return ce.setMonth(0,Re),ce.setHours(0,0,0,0),ce}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class Na extends _n{priority=90;parse(ce,oe,Re){switch(oe){case"E":case"EE":case"EEE":return Re.day(ce,{width:"abbreviated",context:"formatting"})||Re.day(ce,{width:"short",context:"formatting"})||Re.day(ce,{width:"narrow",context:"formatting"});case"EEEEE":return Re.day(ce,{width:"narrow",context:"formatting"});case"EEEEEE":return Re.day(ce,{width:"short",context:"formatting"})||Re.day(ce,{width:"narrow",context:"formatting"});default:return Re.day(ce,{width:"wide",context:"formatting"})||Re.day(ce,{width:"abbreviated",context:"formatting"})||Re.day(ce,{width:"short",context:"formatting"})||Re.day(ce,{width:"narrow",context:"formatting"})}}validate(ce,oe){return oe>=0&&oe<=6}set(ce,oe,Re,Dt){return(ce=io(ce,Re,Dt)).setHours(0,0,0,0),ce}incompatibleTokens=["D","i","e","c","t","T"]},e:new class Is extends _n{priority=90;parse(ce,oe,Re,Dt){const ni=$i=>{const Dr=7*Math.floor(($i-1)/7);return($i+Dt.weekStartsOn+6)%7+Dr};switch(oe){case"e":case"ee":return te(gt(oe.length,ce),ni);case"eo":return te(Re.ordinalNumber(ce,{unit:"day"}),ni);case"eee":return Re.day(ce,{width:"abbreviated",context:"formatting"})||Re.day(ce,{width:"short",context:"formatting"})||Re.day(ce,{width:"narrow",context:"formatting"});case"eeeee":return Re.day(ce,{width:"narrow",context:"formatting"});case"eeeeee":return Re.day(ce,{width:"short",context:"formatting"})||Re.day(ce,{width:"narrow",context:"formatting"});default:return Re.day(ce,{width:"wide",context:"formatting"})||Re.day(ce,{width:"abbreviated",context:"formatting"})||Re.day(ce,{width:"short",context:"formatting"})||Re.day(ce,{width:"narrow",context:"formatting"})}}validate(ce,oe){return oe>=0&&oe<=6}set(ce,oe,Re,Dt){return(ce=io(ce,Re,Dt)).setHours(0,0,0,0),ce}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class yl extends _n{priority=90;parse(ce,oe,Re,Dt){const ni=$i=>{const Dr=7*Math.floor(($i-1)/7);return($i+Dt.weekStartsOn+6)%7+Dr};switch(oe){case"c":case"cc":return te(gt(oe.length,ce),ni);case"co":return te(Re.ordinalNumber(ce,{unit:"day"}),ni);case"ccc":return Re.day(ce,{width:"abbreviated",context:"standalone"})||Re.day(ce,{width:"short",context:"standalone"})||Re.day(ce,{width:"narrow",context:"standalone"});case"ccccc":return Re.day(ce,{width:"narrow",context:"standalone"});case"cccccc":return Re.day(ce,{width:"short",context:"standalone"})||Re.day(ce,{width:"narrow",context:"standalone"});default:return Re.day(ce,{width:"wide",context:"standalone"})||Re.day(ce,{width:"abbreviated",context:"standalone"})||Re.day(ce,{width:"short",context:"standalone"})||Re.day(ce,{width:"narrow",context:"standalone"})}}validate(ce,oe){return oe>=0&&oe<=6}set(ce,oe,Re,Dt){return(ce=io(ce,Re,Dt)).setHours(0,0,0,0),ce}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class ee extends _n{priority=90;parse(ce,oe,Re){const Dt=ni=>0===ni?7:ni;switch(oe){case"i":case"ii":return gt(oe.length,ce);case"io":return Re.ordinalNumber(ce,{unit:"day"});case"iii":return te(Re.day(ce,{width:"abbreviated",context:"formatting"})||Re.day(ce,{width:"short",context:"formatting"})||Re.day(ce,{width:"narrow",context:"formatting"}),Dt);case"iiiii":return te(Re.day(ce,{width:"narrow",context:"formatting"}),Dt);case"iiiiii":return te(Re.day(ce,{width:"short",context:"formatting"})||Re.day(ce,{width:"narrow",context:"formatting"}),Dt);default:return te(Re.day(ce,{width:"wide",context:"formatting"})||Re.day(ce,{width:"abbreviated",context:"formatting"})||Re.day(ce,{width:"short",context:"formatting"})||Re.day(ce,{width:"narrow",context:"formatting"}),Dt)}}validate(ce,oe){return oe>=1&&oe<=7}set(ce,oe,Re){return(ce=function b(ye,ce){const oe=Lr(ye),Re=function x(ye){let oe=Lr(ye).getDay();return 0===oe&&(oe=7),oe}(oe);return Fs(oe,ce-Re)}(ce,Re)).setHours(0,0,0,0),ce}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class he extends _n{priority=80;parse(ce,oe,Re){switch(oe){case"a":case"aa":case"aaa":return Re.dayPeriod(ce,{width:"abbreviated",context:"formatting"})||Re.dayPeriod(ce,{width:"narrow",context:"formatting"});case"aaaaa":return Re.dayPeriod(ce,{width:"narrow",context:"formatting"});default:return Re.dayPeriod(ce,{width:"wide",context:"formatting"})||Re.dayPeriod(ce,{width:"abbreviated",context:"formatting"})||Re.dayPeriod(ce,{width:"narrow",context:"formatting"})}}set(ce,oe,Re){return ce.setHours(on(Re),0,0,0),ce}incompatibleTokens=["b","B","H","k","t","T"]},b:new class we extends _n{priority=80;parse(ce,oe,Re){switch(oe){case"b":case"bb":case"bbb":return Re.dayPeriod(ce,{width:"abbreviated",context:"formatting"})||Re.dayPeriod(ce,{width:"narrow",context:"formatting"});case"bbbbb":return Re.dayPeriod(ce,{width:"narrow",context:"formatting"});default:return Re.dayPeriod(ce,{width:"wide",context:"formatting"})||Re.dayPeriod(ce,{width:"abbreviated",context:"formatting"})||Re.dayPeriod(ce,{width:"narrow",context:"formatting"})}}set(ce,oe,Re){return ce.setHours(on(Re),0,0,0),ce}incompatibleTokens=["a","B","H","k","t","T"]},B:new class ze extends _n{priority=80;parse(ce,oe,Re){switch(oe){case"B":case"BB":case"BBB":return Re.dayPeriod(ce,{width:"abbreviated",context:"formatting"})||Re.dayPeriod(ce,{width:"narrow",context:"formatting"});case"BBBBB":return Re.dayPeriod(ce,{width:"narrow",context:"formatting"});default:return Re.dayPeriod(ce,{width:"wide",context:"formatting"})||Re.dayPeriod(ce,{width:"abbreviated",context:"formatting"})||Re.dayPeriod(ce,{width:"narrow",context:"formatting"})}}set(ce,oe,Re){return ce.setHours(on(Re),0,0,0),ce}incompatibleTokens=["a","b","t","T"]},h:new class pt extends _n{priority=70;parse(ce,oe,Re){switch(oe){case"h":return fe(q_hour12h,ce);case"ho":return Re.ordinalNumber(ce,{unit:"hour"});default:return gt(oe.length,ce)}}validate(ce,oe){return oe>=1&&oe<=12}set(ce,oe,Re){const Dt=ce.getHours()>=12;return ce.setHours(Dt&&Re<12?Re+12:Dt||12!==Re?Re:0,0,0,0),ce}incompatibleTokens=["H","K","k","t","T"]},H:new class wt extends _n{priority=70;parse(ce,oe,Re){switch(oe){case"H":return fe(q_hour23h,ce);case"Ho":return Re.ordinalNumber(ce,{unit:"hour"});default:return gt(oe.length,ce)}}validate(ce,oe){return oe>=0&&oe<=23}set(ce,oe,Re){return ce.setHours(Re,0,0,0),ce}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class $t extends _n{priority=70;parse(ce,oe,Re){switch(oe){case"K":return fe(q_hour11h,ce);case"Ko":return Re.ordinalNumber(ce,{unit:"hour"});default:return gt(oe.length,ce)}}validate(ce,oe){return oe>=0&&oe<=11}set(ce,oe,Re){return ce.getHours()>=12&&Re<12?ce.setHours(Re+12,0,0,0):ce.setHours(Re,0,0,0),ce}incompatibleTokens=["h","H","k","t","T"]},k:new class an extends _n{priority=70;parse(ce,oe,Re){switch(oe){case"k":return fe(q_hour24h,ce);case"ko":return Re.ordinalNumber(ce,{unit:"hour"});default:return gt(oe.length,ce)}}validate(ce,oe){return oe>=1&&oe<=24}set(ce,oe,Re){return ce.setHours(Re<=24?Re%24:Re,0,0,0),ce}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class zt extends _n{priority=60;parse(ce,oe,Re){switch(oe){case"m":return fe(q_minute,ce);case"mo":return Re.ordinalNumber(ce,{unit:"minute"});default:return gt(oe.length,ce)}}validate(ce,oe){return oe>=0&&oe<=59}set(ce,oe,Re){return ce.setMinutes(Re,0,0),ce}incompatibleTokens=["t","T"]},s:new class mn extends _n{priority=50;parse(ce,oe,Re){switch(oe){case"s":return fe(q_second,ce);case"so":return Re.ordinalNumber(ce,{unit:"second"});default:return gt(oe.length,ce)}}validate(ce,oe){return oe>=0&&oe<=59}set(ce,oe,Re){return ce.setSeconds(Re,0),ce}incompatibleTokens=["t","T"]},S:new class kn extends _n{priority=30;parse(ce,oe){return te(gt(oe.length,ce),Dt=>Math.trunc(Dt*Math.pow(10,3-oe.length)))}set(ce,oe,Re){return ce.setMilliseconds(Re),ce}incompatibleTokens=["t","T"]},X:new class yn extends _n{priority=10;parse(ce,oe){switch(oe){case"X":return Ne(j_basicOptionalMinutes,ce);case"XX":return Ne(j_basic,ce);case"XXXX":return Ne(j_basicOptionalSeconds,ce);case"XXXXX":return Ne(j_extendedOptionalSeconds,ce);default:return Ne(j_extended,ce)}}set(ce,oe,Re){return oe.timestampIsSet?ce:qt(ce,ce.getTime()-_a(ce)-Re)}incompatibleTokens=["t","T","x"]},x:new class Qn extends _n{priority=10;parse(ce,oe){switch(oe){case"x":return Ne(j_basicOptionalMinutes,ce);case"xx":return Ne(j_basic,ce);case"xxxx":return Ne(j_basicOptionalSeconds,ce);case"xxxxx":return Ne(j_extendedOptionalSeconds,ce);default:return Ne(j_extended,ce)}}set(ce,oe,Re){return oe.timestampIsSet?ce:qt(ce,ce.getTime()-_a(ce)-Re)}incompatibleTokens=["t","T","X"]},t:new class li extends _n{priority=40;parse(ce){return Ye(ce)}set(ce,oe,Re){return[qt(ce,1e3*Re),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class wi extends _n{priority=20;parse(ce){return Ye(ce)}set(ce,oe,Re){return[qt(ce,Re),{timestampIsSet:!0}]}incompatibleTokens="*"}},Bi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qi=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,sr=/^'([^]*?)'?$/,Ar=/''/g,Vr=/\S/,Br=/[a-zA-Z]/;function Do(ye){return ye.match(sr)[1].replace(Ar,"'")}function _s(ye,ce){const oe=Lr(ye),Re=Lr(ce),Dt=oe.getTime()-Re.getTime();return Dt<0?-1:Dt>0?1:Dt}function ia(ye){const ce=Lr(ye);return ce.setHours(23,59,59,999),ce}function xs(ye,ce){const oe=Lr(ye),Re=Lr(ce),Dt=_s(oe,Re),ni=Math.abs(function ls(ye,ce){const oe=Lr(ye),Re=Lr(ce);return 12*(oe.getFullYear()-Re.getFullYear())+(oe.getMonth()-Re.getMonth())}(oe,Re));let $i;if(ni<1)$i=0;else{1===oe.getMonth()&&oe.getDate()>27&&oe.setDate(30),oe.setMonth(oe.getMonth()-Dt*ni);let Dr=_s(oe,Re)===-Dt;(function Wl(ye){const ce=Lr(ye);return+ia(ce)==+function nl(ye){const ce=Lr(ye),oe=ce.getMonth();return ce.setFullYear(ce.getFullYear(),oe+1,0),ce.setHours(23,59,59,999),ce}(ce)})(Lr(ye))&&1===ni&&1===_s(ye,Re)&&(Dr=!1),$i=Dt*(ni-Number(Dr))}return 0===$i?0:$i}function ll(ye){return ce=>{const Re=(ye?Math[ye]:Math.trunc)(ce);return 0===Re?0:Re}}function dl(ye,ce){return+Lr(ye)-+Lr(ce)}function Ol(ye,ce,oe){const Re=dl(ye,ce)/1e3;return ll(oe?.roundingMethod)(Re)}function Zl(ye,ce){return function El(ye,ce,oe){const Re=mr(),Dt=oe?.locale??Re.locale??Ks,$i=_s(ye,ce);if(isNaN($i))throw new RangeError("Invalid time value");const Dr=Object.assign({},oe,{addSuffix:oe?.addSuffix,comparison:$i});let Ao,ms;$i>0?(Ao=Lr(ce),ms=Lr(ye)):(Ao=Lr(ye),ms=Lr(ce));const us=Ol(ms,Ao),hl=(_a(ms)-_a(Ao))/1e3,jl=Math.round((us-hl)/60);let Gc;if(jl<2)return oe?.includeSeconds?us<5?Dt.formatDistance("lessThanXSeconds",5,Dr):us<10?Dt.formatDistance("lessThanXSeconds",10,Dr):us<20?Dt.formatDistance("lessThanXSeconds",20,Dr):us<40?Dt.formatDistance("halfAMinute",0,Dr):Dt.formatDistance(us<60?"lessThanXMinutes":"xMinutes",1,Dr):0===jl?Dt.formatDistance("lessThanXMinutes",1,Dr):Dt.formatDistance("xMinutes",jl,Dr);if(jl<45)return Dt.formatDistance("xMinutes",jl,Dr);if(jl<90)return Dt.formatDistance("aboutXHours",1,Dr);if(jl<1440){const qc=Math.round(jl/60);return Dt.formatDistance("aboutXHours",qc,Dr)}if(jl<2520)return Dt.formatDistance("xDays",1,Dr);if(jl<Er){const qc=Math.round(jl/1440);return Dt.formatDistance("xDays",qc,Dr)}if(jl<2*Er)return Gc=Math.round(jl/Er),Dt.formatDistance("aboutXMonths",Gc,Dr);if(Gc=xs(ms,Ao),Gc<12){const qc=Math.round(jl/Er);return Dt.formatDistance("xMonths",qc,Dr)}{const qc=Gc%12,Ya=Math.trunc(Gc/12);return qc<3?Dt.formatDistance("aboutXYears",Ya,Dr):qc<9?Dt.formatDistance("overXYears",Ya,Dr):Dt.formatDistance("almostXYears",Ya+1,Dr)}}(ye,function ir(ye){return qt(ye,Date.now())}(ye),ce)}const Jl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},xl=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ic=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,vt=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Qt(ye){return ye?parseInt(ye):1}function Vi(ye){return ye&&parseFloat(ye.replace(",","."))||0}const qr=[31,null,31,30,31,30,31,31,30,31,30,31];function so(ye){return ye%400==0||ye%4==0&&ye%100!=0}function Tl(ye,ce){return qt(ye,+Lr(ye)+ce)}function Gd(ye,ce){return Tl(ye,ce*Ri)}function dc(ye,ce){return Tl(ye,ce*Si)}function wc(ye,ce){return Tl(ye,1e3*ce)}function Co(ye,ce){return Fs(ye,7*ce)}function Yc(ye,ce){const oe=Lr(ye);if(isNaN(ce))return qt(ye,NaN);if(!ce)return oe;const Re=oe.getDate(),Dt=qt(ye,oe.getTime());return Dt.setMonth(oe.getMonth()+ce+1,0),Re>=Dt.getDate()?Dt:(oe.setFullYear(Dt.getFullYear(),Dt.getMonth(),Re),oe)}function pu(ye,ce){return Yc(ye,12*ce)}function Bl(ye,ce,oe){return+vs(ye,oe)==+vs(ce,oe)}function ql(ye,ce){const oe=Lr(ye),Re=Lr(ce);return oe.getFullYear()===Re.getFullYear()&&oe.getMonth()===Re.getMonth()}function Td(ye,ce){const oe=Lr(ye),Re=Lr(ce);return oe.getFullYear()===Re.getFullYear()}function Ac(ye,ce){const oe=Lr(ye),Re=Lr(ce);return oe.getTime()>Re.getTime()}function Kd(ye,ce){return+Lr(ye)<+Lr(ce)}var sl=function(ye){return ye.HOURS="hours",ye.MINUTES="minutes",ye.SECONDS="seconds",ye.MILLISECONDS="milliseconds",ye.DAYS="days",ye.WEEKS="weeks",ye.MONTHS="months",ye.YEARS="years",ye}(sl||{}),Vl=function(ye){return ye.DAY="day",ye.WEEK="week",ye.MONTH="month",ye.YEAR="year",ye}(Vl||{});const Wc=3600,gd={lessThanXSeconds:{one:"\u043f\u043e-\u043c\u0430\u043b\u043a\u043e \u043e\u0442 \u0441\u0435\u043a\u0443\u043d\u0434\u0430",other:"\u043f\u043e-\u043c\u0430\u043b\u043a\u043e \u043e\u0442 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438"},xSeconds:{one:"1 \u0441\u0435\u043a\u0443\u043d\u0434\u0430",other:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438"},halfAMinute:"\u043f\u043e\u043b\u043e\u0432\u0438\u043d \u043c\u0438\u043d\u0443\u0442\u0430",lessThanXMinutes:{one:"\u043f\u043e-\u043c\u0430\u043b\u043a\u043e \u043e\u0442 \u043c\u0438\u043d\u0443\u0442\u0430",other:"\u043f\u043e-\u043c\u0430\u043b\u043a\u043e \u043e\u0442 {{count}} \u043c\u0438\u043d\u0443\u0442\u0438"},xMinutes:{one:"1 \u043c\u0438\u043d\u0443\u0442\u0430",other:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0438"},aboutXHours:{one:"\u043e\u043a\u043e\u043b\u043e \u0447\u0430\u0441",other:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0447\u0430\u0441\u0430"},xHours:{one:"1 \u0447\u0430\u0441",other:"{{count}} \u0447\u0430\u0441\u0430"},xDays:{one:"1 \u0434\u0435\u043d",other:"{{count}} \u0434\u043d\u0438"},aboutXWeeks:{one:"\u043e\u043a\u043e\u043b\u043e \u0441\u0435\u0434\u043c\u0438\u0446\u0430",other:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0441\u0435\u0434\u043c\u0438\u0446\u0438"},xWeeks:{one:"1 \u0441\u0435\u0434\u043c\u0438\u0446\u0430",other:"{{count}} \u0441\u0435\u0434\u043c\u0438\u0446\u0438"},aboutXMonths:{one:"\u043e\u043a\u043e\u043b\u043e \u043c\u0435\u0441\u0435\u0446",other:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043c\u0435\u0441\u0435\u0446\u0430"},xMonths:{one:"1 \u043c\u0435\u0441\u0435\u0446",other:"{{count}} \u043c\u0435\u0441\u0435\u0446\u0430"},aboutXYears:{one:"\u043e\u043a\u043e\u043b\u043e \u0433\u043e\u0434\u0438\u043d\u0430",other:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0433\u043e\u0434\u0438\u043d\u0438"},xYears:{one:"1 \u0433\u043e\u0434\u0438\u043d\u0430",other:"{{count}} \u0433\u043e\u0434\u0438\u043d\u0438"},overXYears:{one:"\u043d\u0430\u0434 \u0433\u043e\u0434\u0438\u043d\u0430",other:"\u043d\u0430\u0434 {{count}} \u0433\u043e\u0434\u0438\u043d\u0438"},almostXYears:{one:"\u043f\u043e\u0447\u0442\u0438 \u0433\u043e\u0434\u0438\u043d\u0430",other:"\u043f\u043e\u0447\u0442\u0438 {{count}} \u0433\u043e\u0434\u0438\u043d\u0438"}},md={date:In({formats:{full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:In({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:In({formats:{any:"{{date}} {{time}}"},defaultWidth:"any"})},Xd=["\u043d\u0435\u0434\u0435\u043b\u044f","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u044f\u0434\u0430","\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a","\u043f\u0435\u0442\u044a\u043a","\u0441\u044a\u0431\u043e\u0442\u0430"];function bu(ye){const ce=Xd[ye];return 2===ye?"'\u0432\u044a\u0432 "+ce+" \u0432' p":"'\u0432 "+ce+" \u0432' p"}const ph={lastWeek:(ye,ce,oe)=>{const Re=Lr(ye),Dt=Re.getDay();return Bl(Re,ce,oe)?bu(Dt):function Cu(ye){const ce=Xd[ye];switch(ye){case 0:case 3:case 6:return"'\u043c\u0438\u043d\u0430\u043b\u0430\u0442\u0430 "+ce+" \u0432' p";case 1:case 2:case 4:case 5:return"'\u043c\u0438\u043d\u0430\u043b\u0438\u044f "+ce+" \u0432' p"}}(Dt)},yesterday:"'\u0432\u0447\u0435\u0440\u0430 \u0432' p",today:"'\u0434\u043d\u0435\u0441 \u0432' p",tomorrow:"'\u0443\u0442\u0440\u0435 \u0432' p",nextWeek:(ye,ce,oe)=>{const Re=Lr(ye),Dt=Re.getDay();return Bl(Re,ce,oe)?bu(Dt):function hc(ye){const ce=Xd[ye];switch(ye){case 0:case 3:case 6:return"'\u0441\u043b\u0435\u0434\u0432\u0430\u0449\u0430\u0442\u0430 "+ce+" \u0432' p";case 1:case 2:case 4:case 5:return"'\u0441\u043b\u0435\u0434\u0432\u0430\u0449\u0438\u044f "+ce+" \u0432' p"}}(Dt)},other:"P"};function Sc(ye,ce,oe,Re,Dt){const ni=function Rd(ye){return"quarter"===ye}(ce)?Dt:function gc(ye){return"year"===ye||"week"===ye||"minute"===ye||"second"===ye}(ce)?Re:oe;return ye+"-"+ni}const rg={code:"bg",formatDistance:(ye,ce,oe)=>{let Re;const Dt=gd[ye];return Re="string"==typeof Dt?Dt:1===ce?Dt.one:Dt.other.replace("{{count}}",String(ce)),oe?.addSuffix?oe.comparison&&oe.comparison>0?"\u0441\u043b\u0435\u0434 "+Re:"\u043f\u0440\u0435\u0434\u0438 "+Re:Re},formatLong:md,formatRelative:(ye,ce,oe,Re)=>{const Dt=ph[ye];return"function"==typeof Dt?Dt(ce,oe,Re):Dt},localize:{ordinalNumber:(ye,ce)=>{const oe=Number(ye),Re=ce?.unit;if(0===oe)return Sc(0,Re,"\u0435\u0432","\u0435\u0432\u0430","\u0435\u0432\u043e");if(oe%1e3==0)return Sc(oe,Re,"\u0435\u043d","\u043d\u0430","\u043d\u043e");if(oe%100==0)return Sc(oe,Re,"\u0442\u0435\u043d","\u0442\u043d\u0430","\u0442\u043d\u043e");const Dt=oe%100;if(Dt>20||Dt<10)switch(Dt%10){case 1:return Sc(oe,Re,"\u0432\u0438","\u0432\u0430","\u0432\u043e");case 2:return Sc(oe,Re,"\u0440\u0438","\u0440\u0430","\u0440\u043e");case 7:case 8:return Sc(oe,Re,"\u043c\u0438","\u043c\u0430","\u043c\u043e")}return Sc(oe,Re,"\u0442\u0438","\u0442\u0430","\u0442\u043e")},era:Ct({values:{narrow:["\u043f\u0440.\u043d.\u0435.","\u043d.\u0435."],abbreviated:["\u043f\u0440\u0435\u0434\u0438 \u043d. \u0435.","\u043d. \u0435."],wide:["\u043f\u0440\u0435\u0434\u0438 \u043d\u043e\u0432\u0430\u0442\u0430 \u0435\u0440\u0430","\u043d\u043e\u0432\u0430\u0442\u0430 \u0435\u0440\u0430"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["1-\u0432\u043e \u0442\u0440\u0438\u043c\u0435\u0441.","2-\u0440\u043e \u0442\u0440\u0438\u043c\u0435\u0441.","3-\u0442\u043e \u0442\u0440\u0438\u043c\u0435\u0441.","4-\u0442\u043e \u0442\u0440\u0438\u043c\u0435\u0441."],wide:["1-\u0432\u043e \u0442\u0440\u0438\u043c\u0435\u0441\u0435\u0447\u0438\u0435","2-\u0440\u043e \u0442\u0440\u0438\u043c\u0435\u0441\u0435\u0447\u0438\u0435","3-\u0442\u043e \u0442\u0440\u0438\u043c\u0435\u0441\u0435\u0447\u0438\u0435","4-\u0442\u043e \u0442\u0440\u0438\u043c\u0435\u0441\u0435\u0447\u0438\u0435"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{abbreviated:["\u044f\u043d\u0443","\u0444\u0435\u0432","\u043c\u0430\u0440","\u0430\u043f\u0440","\u043c\u0430\u0439","\u044e\u043d\u0438","\u044e\u043b\u0438","\u0430\u0432\u0433","\u0441\u0435\u043f","\u043e\u043a\u0442","\u043d\u043e\u0435","\u0434\u0435\u043a"],wide:["\u044f\u043d\u0443\u0430\u0440\u0438","\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440\u0438\u043b","\u043c\u0430\u0439","\u044e\u043d\u0438","\u044e\u043b\u0438","\u0430\u0432\u0433\u0443\u0441\u0442","\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438","\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438","\u043d\u043e\u0435\u043c\u0432\u0440\u0438","\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438"]},defaultWidth:"wide"}),day:Ct({values:{narrow:["\u041d","\u041f","\u0412","\u0421","\u0427","\u041f","\u0421"],short:["\u043d\u0434","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"],abbreviated:["\u043d\u0435\u0434","\u043f\u043e\u043d","\u0432\u0442\u043e","\u0441\u0440\u044f","\u0447\u0435\u0442","\u043f\u0435\u0442","\u0441\u044a\u0431"],wide:["\u043d\u0435\u0434\u0435\u043b\u044f","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u044f\u0434\u0430","\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a","\u043f\u0435\u0442\u044a\u043a","\u0441\u044a\u0431\u043e\u0442\u0430"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{wide:{am:"\u043f\u0440\u0435\u0434\u0438 \u043e\u0431\u044f\u0434",pm:"\u0441\u043b\u0435\u0434 \u043e\u0431\u044f\u0434",midnight:"\u0432 \u043f\u043e\u043b\u0443\u043d\u043e\u0449",noon:"\u043d\u0430 \u043e\u0431\u044f\u0434",morning:"\u0441\u0443\u0442\u0440\u0438\u043d\u0442\u0430",afternoon:"\u0441\u043b\u0435\u0434\u043e\u0431\u0435\u0434",evening:"\u0432\u0435\u0447\u0435\u0440\u0442\u0430",night:"\u043f\u0440\u0435\u0437 \u043d\u043e\u0449\u0442\u0430"}},defaultWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)(-?[\u0432\u0440\u043c\u0442][\u0430\u0438]|-?\u0442?(\u0435\u043d|\u043d\u0430)|-?(\u0435\u0432|\u0435\u0432\u0430))?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^((\u043f\u0440)?\u043d\.?\s?\u0435\.?)/i,abbreviated:/^((\u043f\u0440)?\u043d\.?\s?\u0435\.?)/i,wide:/^(\u043f\u0440\u0435\u0434\u0438 \u043d\u043e\u0432\u0430\u0442\u0430 \u0435\u0440\u0430|\u043d\u043e\u0432\u0430\u0442\u0430 \u0435\u0440\u0430|\u043d\u043e\u0432\u0430 \u0435\u0440\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u043f/i,/^\u043d/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[\u0432\u0440\u0442]?o?)? \u0442\u0440\u0438\u043c\u0435\u0441.?/i,wide:/^[1234](-?[\u0432\u0440\u0442]?\u043e?)? \u0442\u0440\u0438\u043c\u0435\u0441\u0435\u0447\u0438\u0435/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{abbreviated:/^(\u044f\u043d\u0443|\u0444\u0435\u0432|\u043c\u0430\u0440|\u0430\u043f\u0440|\u043c\u0430\u0439|\u044e\u043d\u0438|\u044e\u043b\u0438|\u0430\u0432\u0433|\u0441\u0435\u043f|\u043e\u043a\u0442|\u043d\u043e\u0435|\u0434\u0435\u043a)/i,wide:/^(\u044f\u043d\u0443\u0430\u0440\u0438|\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438|\u043c\u0430\u0440\u0442|\u0430\u043f\u0440\u0438\u043b|\u043c\u0430\u0439|\u044e\u043d\u0438|\u044e\u043b\u0438|\u0430\u0432\u0433\u0443\u0441\u0442|\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438|\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438|\u043d\u043e\u0435\u043c\u0432\u0440\u0438|\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u044f/i,/^\u0444/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f/i,/^\u043c\u0430\u0439/i,/^\u044e\u043d/i,/^\u044e\u043b/i,/^\u0430\u0432/i,/^\u0441\u0435/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e/i,/^\u0434\u0435/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[\u043d\u043f\u0432\u0441\u0447]/i,short:/^(\u043d\u0434|\u043f\u043d|\u0432\u0442|\u0441\u0440|\u0447\u0442|\u043f\u0442|\u0441\u0431)/i,abbreviated:/^(\u043d\u0435\u0434|\u043f\u043e\u043d|\u0432\u0442\u043e|\u0441\u0440\u044f|\u0447\u0435\u0442|\u043f\u0435\u0442|\u0441\u044a\u0431)/i,wide:/^(\u043d\u0435\u0434\u0435\u043b\u044f|\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a|\u0432\u0442\u043e\u0440\u043d\u0438\u043a|\u0441\u0440\u044f\u0434\u0430|\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a|\u043f\u0435\u0442\u044a\u043a|\u0441\u044a\u0431\u043e\u0442\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u043d/i,/^\u043f/i,/^\u0432/i,/^\u0441/i,/^\u0447/i,/^\u043f/i,/^\u0441/i],any:[/^\u043d[\u0435\u0434]/i,/^\u043f[\u043e\u043d]/i,/^\u0432\u0442/i,/^\u0441\u0440/i,/^\u0447[\u0435\u0442]/i,/^\u043f[\u0435\u0442]/i,/^\u0441[\u044a\u0431]/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{any:/^(\u043f\u0440\u0435\u0434\u0438 \u043e|\u0441\u043b\u0435\u0434 \u043e|\u0432 \u043f\u043e|\u043d\u0430 \u043e|\u043f\u0440\u0435\u0437|\u0432\u0435\u0447|\u0441\u0443\u0442|\u0441\u043b\u0435\u0434\u043e)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u043f\u0440\u0435\u0434\u0438 \u043e/i,pm:/^\u0441\u043b\u0435\u0434 \u043e/i,midnight:/^\u0432 \u043f\u043e\u043b/i,noon:/^\u043d\u0430 \u043e\u0431/i,morning:/^\u0441\u0443\u0442/i,afternoon:/^\u0441\u043b\u0435\u0434\u043e/i,evening:/^\u0432\u0435\u0447/i,night:/^\u043f\u0440\u0435\u0437 \u043d/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Ln={lessThanXSeconds:{one:{regular:"m\xe9n\u011b ne\u017e 1 sekunda",past:"p\u0159ed m\xe9n\u011b ne\u017e 1 sekundou",future:"za m\xe9n\u011b ne\u017e 1 sekundu"},few:{regular:"m\xe9n\u011b ne\u017e {{count}} sekundy",past:"p\u0159ed m\xe9n\u011b ne\u017e {{count}} sekundami",future:"za m\xe9n\u011b ne\u017e {{count}} sekundy"},many:{regular:"m\xe9n\u011b ne\u017e {{count}} sekund",past:"p\u0159ed m\xe9n\u011b ne\u017e {{count}} sekundami",future:"za m\xe9n\u011b ne\u017e {{count}} sekund"}},xSeconds:{one:{regular:"1 sekunda",past:"p\u0159ed 1 sekundou",future:"za 1 sekundu"},few:{regular:"{{count}} sekundy",past:"p\u0159ed {{count}} sekundami",future:"za {{count}} sekundy"},many:{regular:"{{count}} sekund",past:"p\u0159ed {{count}} sekundami",future:"za {{count}} sekund"}},halfAMinute:{type:"other",other:{regular:"p\u016fl minuty",past:"p\u0159ed p\u016fl minutou",future:"za p\u016fl minuty"}},lessThanXMinutes:{one:{regular:"m\xe9n\u011b ne\u017e 1 minuta",past:"p\u0159ed m\xe9n\u011b ne\u017e 1 minutou",future:"za m\xe9n\u011b ne\u017e 1 minutu"},few:{regular:"m\xe9n\u011b ne\u017e {{count}} minuty",past:"p\u0159ed m\xe9n\u011b ne\u017e {{count}} minutami",future:"za m\xe9n\u011b ne\u017e {{count}} minuty"},many:{regular:"m\xe9n\u011b ne\u017e {{count}} minut",past:"p\u0159ed m\xe9n\u011b ne\u017e {{count}} minutami",future:"za m\xe9n\u011b ne\u017e {{count}} minut"}},xMinutes:{one:{regular:"1 minuta",past:"p\u0159ed 1 minutou",future:"za 1 minutu"},few:{regular:"{{count}} minuty",past:"p\u0159ed {{count}} minutami",future:"za {{count}} minuty"},many:{regular:"{{count}} minut",past:"p\u0159ed {{count}} minutami",future:"za {{count}} minut"}},aboutXHours:{one:{regular:"p\u0159ibli\u017en\u011b 1 hodina",past:"p\u0159ibli\u017en\u011b p\u0159ed 1 hodinou",future:"p\u0159ibli\u017en\u011b za 1 hodinu"},few:{regular:"p\u0159ibli\u017en\u011b {{count}} hodiny",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} hodinami",future:"p\u0159ibli\u017en\u011b za {{count}} hodiny"},many:{regular:"p\u0159ibli\u017en\u011b {{count}} hodin",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} hodinami",future:"p\u0159ibli\u017en\u011b za {{count}} hodin"}},xHours:{one:{regular:"1 hodina",past:"p\u0159ed 1 hodinou",future:"za 1 hodinu"},few:{regular:"{{count}} hodiny",past:"p\u0159ed {{count}} hodinami",future:"za {{count}} hodiny"},many:{regular:"{{count}} hodin",past:"p\u0159ed {{count}} hodinami",future:"za {{count}} hodin"}},xDays:{one:{regular:"1 den",past:"p\u0159ed 1 dnem",future:"za 1 den"},few:{regular:"{{count}} dny",past:"p\u0159ed {{count}} dny",future:"za {{count}} dny"},many:{regular:"{{count}} dn\xed",past:"p\u0159ed {{count}} dny",future:"za {{count}} dn\xed"}},aboutXWeeks:{one:{regular:"p\u0159ibli\u017en\u011b 1 t\xfdden",past:"p\u0159ibli\u017en\u011b p\u0159ed 1 t\xfddnem",future:"p\u0159ibli\u017en\u011b za 1 t\xfdden"},few:{regular:"p\u0159ibli\u017en\u011b {{count}} t\xfddny",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} t\xfddny",future:"p\u0159ibli\u017en\u011b za {{count}} t\xfddny"},many:{regular:"p\u0159ibli\u017en\u011b {{count}} t\xfddn\u016f",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} t\xfddny",future:"p\u0159ibli\u017en\u011b za {{count}} t\xfddn\u016f"}},xWeeks:{one:{regular:"1 t\xfdden",past:"p\u0159ed 1 t\xfddnem",future:"za 1 t\xfdden"},few:{regular:"{{count}} t\xfddny",past:"p\u0159ed {{count}} t\xfddny",future:"za {{count}} t\xfddny"},many:{regular:"{{count}} t\xfddn\u016f",past:"p\u0159ed {{count}} t\xfddny",future:"za {{count}} t\xfddn\u016f"}},aboutXMonths:{one:{regular:"p\u0159ibli\u017en\u011b 1 m\u011bs\xedc",past:"p\u0159ibli\u017en\u011b p\u0159ed 1 m\u011bs\xedcem",future:"p\u0159ibli\u017en\u011b za 1 m\u011bs\xedc"},few:{regular:"p\u0159ibli\u017en\u011b {{count}} m\u011bs\xedce",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} m\u011bs\xedci",future:"p\u0159ibli\u017en\u011b za {{count}} m\u011bs\xedce"},many:{regular:"p\u0159ibli\u017en\u011b {{count}} m\u011bs\xedc\u016f",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} m\u011bs\xedci",future:"p\u0159ibli\u017en\u011b za {{count}} m\u011bs\xedc\u016f"}},xMonths:{one:{regular:"1 m\u011bs\xedc",past:"p\u0159ed 1 m\u011bs\xedcem",future:"za 1 m\u011bs\xedc"},few:{regular:"{{count}} m\u011bs\xedce",past:"p\u0159ed {{count}} m\u011bs\xedci",future:"za {{count}} m\u011bs\xedce"},many:{regular:"{{count}} m\u011bs\xedc\u016f",past:"p\u0159ed {{count}} m\u011bs\xedci",future:"za {{count}} m\u011bs\xedc\u016f"}},aboutXYears:{one:{regular:"p\u0159ibli\u017en\u011b 1 rok",past:"p\u0159ibli\u017en\u011b p\u0159ed 1 rokem",future:"p\u0159ibli\u017en\u011b za 1 rok"},few:{regular:"p\u0159ibli\u017en\u011b {{count}} roky",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} roky",future:"p\u0159ibli\u017en\u011b za {{count}} roky"},many:{regular:"p\u0159ibli\u017en\u011b {{count}} rok\u016f",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} roky",future:"p\u0159ibli\u017en\u011b za {{count}} rok\u016f"}},xYears:{one:{regular:"1 rok",past:"p\u0159ed 1 rokem",future:"za 1 rok"},few:{regular:"{{count}} roky",past:"p\u0159ed {{count}} roky",future:"za {{count}} roky"},many:{regular:"{{count}} rok\u016f",past:"p\u0159ed {{count}} roky",future:"za {{count}} rok\u016f"}},overXYears:{one:{regular:"v\xedce ne\u017e 1 rok",past:"p\u0159ed v\xedce ne\u017e 1 rokem",future:"za v\xedce ne\u017e 1 rok"},few:{regular:"v\xedce ne\u017e {{count}} roky",past:"p\u0159ed v\xedce ne\u017e {{count}} roky",future:"za v\xedce ne\u017e {{count}} roky"},many:{regular:"v\xedce ne\u017e {{count}} rok\u016f",past:"p\u0159ed v\xedce ne\u017e {{count}} roky",future:"za v\xedce ne\u017e {{count}} rok\u016f"}},almostXYears:{one:{regular:"skoro 1 rok",past:"skoro p\u0159ed 1 rokem",future:"skoro za 1 rok"},few:{regular:"skoro {{count}} roky",past:"skoro p\u0159ed {{count}} roky",future:"skoro za {{count}} roky"},many:{regular:"skoro {{count}} rok\u016f",past:"skoro p\u0159ed {{count}} roky",future:"skoro za {{count}} rok\u016f"}}},Nn={date:In({formats:{full:"EEEE, d. MMMM yyyy",long:"d. MMMM yyyy",medium:"d. M. yyyy",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:In({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} 'v' {{time}}",long:"{{date}} 'v' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},_i=["ned\u011bli","pond\u011bl\xed","\xfater\xfd","st\u0159edu","\u010dtvrtek","p\xe1tek","sobotu"],Wi={lastWeek:"'posledn\xed' eeee 've' p",yesterday:"'v\u010dera v' p",today:"'dnes v' p",tomorrow:"'z\xedtra v' p",nextWeek:ye=>{const ce=ye.getDay();return"'v "+_i[ce]+" o' p"},other:"P"},bh={code:"cs",formatDistance:(ye,ce,oe)=>{let Re;const Dt=Ln[ye];Re="other"===Dt.type?Dt.other:1===ce?Dt.one:ce>1&&ce<5?Dt.few:Dt.many;const ni=!0===oe?.addSuffix,$i=oe?.comparison;let Dr;return Dr=ni&&-1===$i?Re.past:ni&&1===$i?Re.future:Re.regular,Dr.replace("{{count}}",String(ce))},formatLong:Nn,formatRelative:(ye,ce)=>{const oe=Wi[ye];return"function"==typeof oe?oe(ce):oe},localize:{ordinalNumber:(ye,ce)=>Number(ye)+".",era:Ct({values:{narrow:["p\u0159. n. l.","n. l."],abbreviated:["p\u0159. n. l.","n. l."],wide:["p\u0159ed na\u0161\xedm letopo\u010dtem","na\u0161eho letopo\u010dtu"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["1. \u010dtvrtlet\xed","2. \u010dtvrtlet\xed","3. \u010dtvrtlet\xed","4. \u010dtvrtlet\xed"],wide:["1. \u010dtvrtlet\xed","2. \u010dtvrtlet\xed","3. \u010dtvrtlet\xed","4. \u010dtvrtlet\xed"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["L","\xda","B","D","K","\u010c","\u010c","S","Z","\u0158","L","P"],abbreviated:["led","\xfano","b\u0159e","dub","kv\u011b","\u010dvn","\u010dvc","srp","z\xe1\u0159","\u0159\xedj","lis","pro"],wide:["leden","\xfanor","b\u0159ezen","duben","kv\u011bten","\u010derven","\u010dervenec","srpen","z\xe1\u0159\xed","\u0159\xedjen","listopad","prosinec"]},defaultWidth:"wide",formattingValues:{narrow:["L","\xda","B","D","K","\u010c","\u010c","S","Z","\u0158","L","P"],abbreviated:["led","\xfano","b\u0159e","dub","kv\u011b","\u010dvn","\u010dvc","srp","z\xe1\u0159","\u0159\xedj","lis","pro"],wide:["ledna","\xfanora","b\u0159ezna","dubna","kv\u011btna","\u010dervna","\u010dervence","srpna","z\xe1\u0159\xed","\u0159\xedjna","listopadu","prosince"]},defaultFormattingWidth:"wide"}),day:Ct({values:{narrow:["ne","po","\xfat","st","\u010dt","p\xe1","so"],short:["ne","po","\xfat","st","\u010dt","p\xe1","so"],abbreviated:["ned","pon","\xfate","st\u0159","\u010dtv","p\xe1t","sob"],wide:["ned\u011ble","pond\u011bl\xed","\xfater\xfd","st\u0159eda","\u010dtvrtek","p\xe1tek","sobota"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"dop.",pm:"odp.",midnight:"p\u016flnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"ve\u010der",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"p\u016flnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"ve\u010der",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"p\u016flnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"ve\u010der",night:"noc"}},defaultWidth:"wide",formattingValues:{narrow:{am:"dop.",pm:"odp.",midnight:"p\u016flnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"ve\u010der",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"p\u016flnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"ve\u010der",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"p\u016flnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"ve\u010der",night:"noc"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^(p[\u0159r](\.|ed) Kr\.|p[\u0159r](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(p[\u0159r](\.|ed) Kr\.|p[\u0159r](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(p[\u0159r](\.|ed) Kristem|p[\u0159r](\.|ed) na[\u0161s][\xedi]m letopo[\u010dc]tem|po Kristu|na[\u0161s]eho letopo[\u010dc]tu)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^p[\u0159r]/i,/^(po|n)/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\. [\u010dc]tvrtlet[\xedi]/i,wide:/^[1234]\. [\u010dc]tvrtlet[\xedi]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[l\xfaubdk\u010dcsz\u0159rlp]/i,abbreviated:/^(led|[\xfau]no|b[\u0159r]e|dub|kv[\u011be]|[\u010dc]vn|[\u010dc]vc|srp|z[\xe1a][\u0159r]|[\u0159r][\xedi]j|lis|pro)/i,wide:/^(leden|ledna|[\xfau]nora?|b[\u0159r]ezen|b[\u0159r]ezna|duben|dubna|kv[\u011be]ten|kv[\u011be]tna|[\u010dc]erven(ec|ce)?|[\u010dc]ervna|srpen|srpna|z[\xe1a][\u0159r][\xedi]|[\u0159r][\xedi]jen|[\u0159r][\xedi]jna|listopad(a|u)?|prosinec|prosince)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^l/i,/^[\xfau]/i,/^b/i,/^d/i,/^k/i,/^[\u010dc]/i,/^[\u010dc]/i,/^s/i,/^z/i,/^[\u0159r]/i,/^l/i,/^p/i],any:[/^led/i,/^[\xfau]n/i,/^b[\u0159r]e/i,/^dub/i,/^kv[\u011be]/i,/^[\u010dc]vn|[\u010dc]erven(?!\w)|[\u010dc]ervna/i,/^[\u010dc]vc|[\u010dc]erven(ec|ce)/i,/^srp/i,/^z[\xe1a][\u0159r]/i,/^[\u0159r][\xedi]j/i,/^lis/i,/^pro/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[npu\xfas\u010dps]/i,short:/^(ne|po|[\xfau]t|st|[\u010dc]t|p[\xe1a]|so)/i,abbreviated:/^(ned|pon|[\xfau]te|st[r\u0159]|[\u010dc]tv|p[\xe1a]t|sob)/i,wide:/^(ned[\u011be]le|pond[\u011be]l[\xedi]|[\xfau]ter[\xfdy]|st[\u0159r]eda|[\u010dc]tvrtek|p[\xe1a]tek|sobota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^[\xfau]/i,/^s/i,/^[\u010dc]/i,/^p/i,/^s/i],any:[/^ne/i,/^po/i,/^[\xfau]t/i,/^st/i,/^[\u010dc]t/i,/^p[\xe1a]/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{any:/^dopoledne|dop\.?|odpoledne|odp\.?|p[\u016fu]lnoc|poledne|r[\xe1a]no|odpoledne|ve[\u010dc]er|(v )?noci?/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^dop/i,pm:/^odp/i,midnight:/^p[\u016fu]lnoc/i,noon:/^poledne/i,morning:/r[\xe1a]no/i,afternoon:/odpoledne/i,evening:/ve[\u010dc]er/i,night:/noc/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Sh={lessThanXSeconds:{one:"mindre end \xe9t sekund",other:"mindre end {{count}} sekunder"},xSeconds:{one:"1 sekund",other:"{{count}} sekunder"},halfAMinute:"\xe9t halvt minut",lessThanXMinutes:{one:"mindre end \xe9t minut",other:"mindre end {{count}} minutter"},xMinutes:{one:"1 minut",other:"{{count}} minutter"},aboutXHours:{one:"cirka 1 time",other:"cirka {{count}} timer"},xHours:{one:"1 time",other:"{{count}} timer"},xDays:{one:"1 dag",other:"{{count}} dage"},aboutXWeeks:{one:"cirka 1 uge",other:"cirka {{count}} uger"},xWeeks:{one:"1 uge",other:"{{count}} uger"},aboutXMonths:{one:"cirka 1 m\xe5ned",other:"cirka {{count}} m\xe5neder"},xMonths:{one:"1 m\xe5ned",other:"{{count}} m\xe5neder"},aboutXYears:{one:"cirka 1 \xe5r",other:"cirka {{count}} \xe5r"},xYears:{one:"1 \xe5r",other:"{{count}} \xe5r"},overXYears:{one:"over 1 \xe5r",other:"over {{count}} \xe5r"},almostXYears:{one:"n\xe6sten 1 \xe5r",other:"n\xe6sten {{count}} \xe5r"}},Ip={date:In({formats:{full:"EEEE 'den' d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:In({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} 'kl'. {{time}}",long:"{{date}} 'kl'. {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},qv={lastWeek:"'sidste' eeee 'kl.' p",yesterday:"'i g\xe5r kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"'p\xe5' eeee 'kl.' p",other:"P"},ug={code:"da",formatDistance:(ye,ce,oe)=>{let Re;const Dt=Sh[ye];return Re="string"==typeof Dt?Dt:1===ce?Dt.one:Dt.other.replace("{{count}}",String(ce)),oe?.addSuffix?oe.comparison&&oe.comparison>0?"om "+Re:Re+" siden":Re},formatLong:Ip,formatRelative:(ye,ce,oe,Re)=>qv[ye],localize:{ordinalNumber:(ye,ce)=>Number(ye)+".",era:Ct({values:{narrow:["fvt","vt"],abbreviated:["f.v.t.","v.t."],wide:["f\xf8r vesterlandsk tidsregning","vesterlandsk tidsregning"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["1. kvt.","2. kvt.","3. kvt.","4. kvt."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},defaultWidth:"wide"}),day:Ct({values:{narrow:["S","M","T","O","T","F","L"],short:["s\xf8","ma","ti","on","to","fr","l\xf8"],abbreviated:["s\xf8n.","man.","tir.","ons.","tor.","fre.","l\xf8r."],wide:["s\xf8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\xf8rdag"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^(fKr|fvt|eKr|vt)/i,abbreviated:/^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i,wide:/^(f.Kr.|f\xf8r vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^(v|e)/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]. kvt\./i,wide:/^[1234]\.? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[smtofl]/i,short:/^(s\xf8n.|man.|tir.|ons.|tor.|fre.|l\xf8r.)/i,abbreviated:/^(s\xf8n|man|tir|ons|tor|fre|l\xf8r)/i,wide:/^(s\xf8ndag|mandag|tirsdag|onsdag|torsdag|fredag|l\xf8rdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^o/i,/^t/i,/^f/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{narrow:/^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i,any:/^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/midnat/i,noon:/middag/i,morning:/morgen/i,afternoon:/eftermiddag/i,evening:/aften/i,night:/nat/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Jd={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"eine halbe Minute",withPreposition:"einer halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},Eu={date:In({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:In({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},pg={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},Wu={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},zu={narrow:Wu.narrow,abbreviated:["Jan.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Wu.wide},Bp={code:"de",formatDistance:(ye,ce,oe)=>{let Re;const Dt=oe?.addSuffix?Jd[ye].withPreposition:Jd[ye].standalone;return Re="string"==typeof Dt?Dt:1===ce?Dt.one:Dt.other.replace("{{count}}",String(ce)),oe?.addSuffix?oe.comparison&&oe.comparison>0?"in "+Re:"vor "+Re:Re},formatLong:Eu,formatRelative:(ye,ce,oe,Re)=>pg[ye],localize:{ordinalNumber:ye=>Number(ye)+".",era:Ct({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:Wu,formattingValues:zu,defaultWidth:"wide"}),day:Ct({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye)}),era:Ki({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[a\xe4]n|feb|m\xe4r[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|m\xe4rz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[a\xe4]/i,/^f/i,/^m\xe4r/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},xh={lessThanXSeconds:{one:"\u03bb\u03b9\u03b3\u03cc\u03c4\u03b5\u03c1\u03bf \u03b1\u03c0\u03cc \u03ad\u03bd\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03bf",other:"\u03bb\u03b9\u03b3\u03cc\u03c4\u03b5\u03c1\u03bf \u03b1\u03c0\u03cc {{count}} \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1"},xSeconds:{one:"1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03bf",other:"{{count}} \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1"},halfAMinute:"\u03bc\u03b9\u03c3\u03cc \u03bb\u03b5\u03c0\u03c4\u03cc",lessThanXMinutes:{one:"\u03bb\u03b9\u03b3\u03cc\u03c4\u03b5\u03c1\u03bf \u03b1\u03c0\u03cc \u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",other:"\u03bb\u03b9\u03b3\u03cc\u03c4\u03b5\u03c1\u03bf \u03b1\u03c0\u03cc {{count}} \u03bb\u03b5\u03c0\u03c4\u03ac"},xMinutes:{one:"1 \u03bb\u03b5\u03c0\u03c4\u03cc",other:"{{count}} \u03bb\u03b5\u03c0\u03c4\u03ac"},aboutXHours:{one:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 1 \u03ce\u03c1\u03b1",other:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 {{count}} \u03ce\u03c1\u03b5\u03c2"},xHours:{one:"1 \u03ce\u03c1\u03b1",other:"{{count}} \u03ce\u03c1\u03b5\u03c2"},xDays:{one:"1 \u03b7\u03bc\u03ad\u03c1\u03b1",other:"{{count}} \u03b7\u03bc\u03ad\u03c1\u03b5\u03c2"},aboutXWeeks:{one:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 1 \u03b5\u03b2\u03b4\u03bf\u03bc\u03ac\u03b4\u03b1",other:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 {{count}} \u03b5\u03b2\u03b4\u03bf\u03bc\u03ac\u03b4\u03b5\u03c2"},xWeeks:{one:"1 \u03b5\u03b2\u03b4\u03bf\u03bc\u03ac\u03b4\u03b1",other:"{{count}} \u03b5\u03b2\u03b4\u03bf\u03bc\u03ac\u03b4\u03b5\u03c2"},aboutXMonths:{one:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 1 \u03bc\u03ae\u03bd\u03b1\u03c2",other:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 {{count}} \u03bc\u03ae\u03bd\u03b5\u03c2"},xMonths:{one:"1 \u03bc\u03ae\u03bd\u03b1\u03c2",other:"{{count}} \u03bc\u03ae\u03bd\u03b5\u03c2"},aboutXYears:{one:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 1 \u03c7\u03c1\u03cc\u03bd\u03bf",other:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 {{count}} \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},xYears:{one:"1 \u03c7\u03c1\u03cc\u03bd\u03bf",other:"{{count}} \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},overXYears:{one:"\u03c0\u03ac\u03bd\u03c9 \u03b1\u03c0\u03cc 1 \u03c7\u03c1\u03cc\u03bd\u03bf",other:"\u03c0\u03ac\u03bd\u03c9 \u03b1\u03c0\u03cc {{count}} \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},almostXYears:{one:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 1 \u03c7\u03c1\u03cc\u03bd\u03bf",other:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 {{count}} \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"}},Ju={date:In({formats:{full:"EEEE, d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"d/M/yy"},defaultWidth:"full"}),time:In({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} - {{time}}",long:"{{date}} - {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},qd={lastWeek:ye=>6===ye.getDay()?"'\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf' eeee '\u03c3\u03c4\u03b9\u03c2' p":"'\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7' eeee '\u03c3\u03c4\u03b9\u03c2' p",yesterday:"'\u03c7\u03b8\u03b5\u03c2 \u03c3\u03c4\u03b9\u03c2' p",today:"'\u03c3\u03ae\u03bc\u03b5\u03c1\u03b1 \u03c3\u03c4\u03b9\u03c2' p",tomorrow:"'\u03b1\u03cd\u03c1\u03b9\u03bf \u03c3\u03c4\u03b9\u03c2' p",nextWeek:"eeee '\u03c3\u03c4\u03b9\u03c2' p",other:"P"},yc={code:"el",formatDistance:(ye,ce,oe)=>{let Re;const Dt=xh[ye];return Re="string"==typeof Dt?Dt:1===ce?Dt.one:Dt.other.replace("{{count}}",String(ce)),oe?.addSuffix?oe.comparison&&oe.comparison>0?"\u03c3\u03b5 "+Re:Re+" \u03c0\u03c1\u03b9\u03bd":Re},formatLong:Ju,formatRelative:(ye,ce)=>{const oe=qd[ye];return"function"==typeof oe?oe(ce):oe},localize:{ordinalNumber:(ye,ce)=>{const oe=Number(ye),Re=ce?.unit;let Dt;return Dt="year"===Re||"month"===Re?"\u03bf\u03c2":"week"===Re||"dayOfYear"===Re||"day"===Re||"hour"===Re||"date"===Re?"\u03b7":"\u03bf",oe+Dt},era:Ct({values:{narrow:["\u03c0\u03a7","\u03bc\u03a7"],abbreviated:["\u03c0.\u03a7.","\u03bc.\u03a7."],wide:["\u03c0\u03c1\u03bf \u03a7\u03c1\u03b9\u03c3\u03c4\u03bf\u03cd","\u03bc\u03b5\u03c4\u03ac \u03a7\u03c1\u03b9\u03c3\u03c4\u03cc\u03bd"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["\u03a41","\u03a42","\u03a43","\u03a44"],wide:["1\u03bf \u03c4\u03c1\u03af\u03bc\u03b7\u03bd\u03bf","2\u03bf \u03c4\u03c1\u03af\u03bc\u03b7\u03bd\u03bf","3\u03bf \u03c4\u03c1\u03af\u03bc\u03b7\u03bd\u03bf","4\u03bf \u03c4\u03c1\u03af\u03bc\u03b7\u03bd\u03bf"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["\u0399","\u03a6","\u039c","\u0391","\u039c","\u0399","\u0399","\u0391","\u03a3","\u039f","\u039d","\u0394"],abbreviated:["\u0399\u03b1\u03bd","\u03a6\u03b5\u03b2","\u039c\u03ac\u03c1","\u0391\u03c0\u03c1","\u039c\u03ac\u03b9","\u0399\u03bf\u03cd\u03bd","\u0399\u03bf\u03cd\u03bb","\u0391\u03cd\u03b3","\u03a3\u03b5\u03c0","\u039f\u03ba\u03c4","\u039d\u03bf\u03ad","\u0394\u03b5\u03ba"],wide:["\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2","\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2","\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2","\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2","\u039c\u03ac\u03b9\u03bf\u03c2","\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2","\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2","\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2","\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2","\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2","\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2","\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2"]},defaultWidth:"wide",formattingValues:{narrow:["\u0399","\u03a6","\u039c","\u0391","\u039c","\u0399","\u0399","\u0391","\u03a3","\u039f","\u039d","\u0394"],abbreviated:["\u0399\u03b1\u03bd","\u03a6\u03b5\u03b2","\u039c\u03b1\u03c1","\u0391\u03c0\u03c1","\u039c\u03b1\u0390","\u0399\u03bf\u03c5\u03bd","\u0399\u03bf\u03c5\u03bb","\u0391\u03c5\u03b3","\u03a3\u03b5\u03c0","\u039f\u03ba\u03c4","\u039d\u03bf\u03b5","\u0394\u03b5\u03ba"],wide:["\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5","\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5","\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5","\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5","\u039c\u03b1\u0390\u03bf\u03c5","\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5","\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5","\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5","\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5","\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5","\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5","\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5"]},defaultFormattingWidth:"wide"}),day:Ct({values:{narrow:["\u039a","\u0394","T","\u03a4","\u03a0","\u03a0","\u03a3"],short:["\u039a\u03c5","\u0394\u03b5","\u03a4\u03c1","\u03a4\u03b5","\u03a0\u03ad","\u03a0\u03b1","\u03a3\u03ac"],abbreviated:["\u039a\u03c5\u03c1","\u0394\u03b5\u03c5","\u03a4\u03c1\u03af","\u03a4\u03b5\u03c4","\u03a0\u03ad\u03bc","\u03a0\u03b1\u03c1","\u03a3\u03ac\u03b2"],wide:["\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae","\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1","\u03a4\u03c1\u03af\u03c4\u03b7","\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7","\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7","\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae","\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"\u03c0\u03bc",pm:"\u03bc\u03bc",midnight:"\u03bc\u03b5\u03c3\u03ac\u03bd\u03c5\u03c7\u03c4\u03b1",noon:"\u03bc\u03b5\u03c3\u03b7\u03bc\u03ad\u03c1\u03b9",morning:"\u03c0\u03c1\u03c9\u03af",afternoon:"\u03b1\u03c0\u03cc\u03b3\u03b5\u03c5\u03bc\u03b1",evening:"\u03b2\u03c1\u03ac\u03b4\u03c5",night:"\u03bd\u03cd\u03c7\u03c4\u03b1"},abbreviated:{am:"\u03c0.\u03bc.",pm:"\u03bc.\u03bc.",midnight:"\u03bc\u03b5\u03c3\u03ac\u03bd\u03c5\u03c7\u03c4\u03b1",noon:"\u03bc\u03b5\u03c3\u03b7\u03bc\u03ad\u03c1\u03b9",morning:"\u03c0\u03c1\u03c9\u03af",afternoon:"\u03b1\u03c0\u03cc\u03b3\u03b5\u03c5\u03bc\u03b1",evening:"\u03b2\u03c1\u03ac\u03b4\u03c5",night:"\u03bd\u03cd\u03c7\u03c4\u03b1"},wide:{am:"\u03c0.\u03bc.",pm:"\u03bc.\u03bc.",midnight:"\u03bc\u03b5\u03c3\u03ac\u03bd\u03c5\u03c7\u03c4\u03b1",noon:"\u03bc\u03b5\u03c3\u03b7\u03bc\u03ad\u03c1\u03b9",morning:"\u03c0\u03c1\u03c9\u03af",afternoon:"\u03b1\u03c0\u03cc\u03b3\u03b5\u03c5\u03bc\u03b1",evening:"\u03b2\u03c1\u03ac\u03b4\u03c5",night:"\u03bd\u03cd\u03c7\u03c4\u03b1"}},defaultWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)(\u03bf\u03c2|\u03b7|\u03bf)?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^(\u03c0\u03a7|\u03bc\u03a7)/i,abbreviated:/^(\u03c0\.?\s?\u03c7\.?|\u03c0\.?\s?\u03ba\.?\s?\u03c7\.?|\u03bc\.?\s?\u03c7\.?|\u03ba\.?\s?\u03c7\.?)/i,wide:/^(\u03c0\u03c1\u03bf \u03a7\u03c1\u03b9\u03c3\u03c4\u03bf(\u03cd|\u03c5)|\u03c0\u03c1\u03b9\u03bd \u03b1\u03c0(\u03cc|\u03bf) \u03c4\u03b7\u03bd \u039a\u03bf\u03b9\u03bd(\u03ae|\u03b7) \u03a7\u03c1\u03bf\u03bd\u03bf\u03bb\u03bf\u03b3(\u03af|\u03b9)\u03b1|\u03bc\u03b5\u03c4(\u03ac|\u03b1) \u03a7\u03c1\u03b9\u03c3\u03c4(\u03cc|\u03bf)\u03bd|\u039a\u03bf\u03b9\u03bd(\u03ae|\u03b7) \u03a7\u03c1\u03bf\u03bd\u03bf\u03bb\u03bf\u03b3(\u03af|\u03b9)\u03b1)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u03c0/i,/^(\u03bc|\u03ba)/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^\u03c4[1234]/i,wide:/^[1234]\u03bf? \u03c4\u03c1(\u03af|\u03b9)\u03bc\u03b7\u03bd\u03bf/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[\u03b9\u03c6\u03bc\u03b1\u03bc\u03b9\u03b9\u03b1\u03c3\u03bf\u03bd\u03b4]/i,abbreviated:/^(\u03b9\u03b1\u03bd|\u03c6\u03b5\u03b2|\u03bc[\u03ac\u03b1]\u03c1|\u03b1\u03c0\u03c1|\u03bc[\u03ac\u03b1][\u03b9\u0390]|\u03b9\u03bf[\u03cd\u03c5]\u03bd|\u03b9\u03bf[\u03cd\u03c5]\u03bb|\u03b1[\u03cd\u03c5]\u03b3|\u03c3\u03b5\u03c0|\u03bf\u03ba\u03c4|\u03bd\u03bf[\u03ad\u03b5]|\u03b4\u03b5\u03ba)/i,wide:/^(\u03bc[\u03ac\u03b1][\u03b9\u0390]|\u03b1[\u03cd\u03c5]\u03b3\u03bf[\u03c5\u03cd]\u03c3\u03c4)(\u03bf\u03c2|\u03bf\u03c5)|(\u03b9\u03b1\u03bd\u03bf\u03c5[\u03ac\u03b1]\u03c1|\u03c6\u03b5\u03b2\u03c1\u03bf\u03c5[\u03ac\u03b1]\u03c1|\u03bc[\u03ac\u03b1]\u03c1\u03c4|\u03b1\u03c0\u03c1[\u03af\u03b9]\u03bb|\u03b9\u03bf[\u03cd\u03c5]\u03bd|\u03b9\u03bf[\u03cd\u03c5]\u03bb|\u03c3\u03b5\u03c0\u03c4[\u03ad\u03b5]\u03bc\u03b2\u03c1|\u03bf\u03ba\u03c4[\u03ce\u03c9]\u03b2\u03c1|\u03bd\u03bf[\u03ad\u03b5]\u03bc\u03b2\u03c1|\u03b4\u03b5\u03ba[\u03ad\u03b5]\u03bc\u03b2\u03c1)(\u03b9\u03bf\u03c2|\u03af\u03bf\u03c5)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u03b9/i,/^\u03c6/i,/^\u03bc/i,/^\u03b1/i,/^\u03bc/i,/^\u03b9/i,/^\u03b9/i,/^\u03b1/i,/^\u03c3/i,/^\u03bf/i,/^\u03bd/i,/^\u03b4/i],any:[/^\u03b9\u03b1/i,/^\u03c6/i,/^\u03bc[\u03ac\u03b1]\u03c1/i,/^\u03b1\u03c0/i,/^\u03bc[\u03ac\u03b1][\u03b9\u0390]/i,/^\u03b9\u03bf[\u03cd\u03c5]\u03bd/i,/^\u03b9\u03bf[\u03cd\u03c5]\u03bb/i,/^\u03b1[\u03cd\u03c5]/i,/^\u03c3/i,/^\u03bf/i,/^\u03bd/i,/^\u03b4/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[\u03ba\u03b4\u03c4\u03c0\u03c3]/i,short:/^(\u03ba\u03c5|\u03b4\u03b5|\u03c4\u03c1|\u03c4\u03b5|\u03c0[\u03b5\u03ad]|\u03c0[\u03b1\u03ac]|\u03c3[\u03b1\u03ac])/i,abbreviated:/^(\u03ba\u03c5\u03c1|\u03b4\u03b5\u03c5|\u03c4\u03c1\u03b9|\u03c4\u03b5\u03c4|\u03c0\u03b5\u03bc|\u03c0\u03b1\u03c1|\u03c3\u03b1\u03b2)/i,wide:/^(\u03ba\u03c5\u03c1\u03b9\u03b1\u03ba(\u03ae|\u03b7)|\u03b4\u03b5\u03c5\u03c4(\u03ad|\u03b5)\u03c1\u03b1|\u03c4\u03c1(\u03af|\u03b9)\u03c4\u03b7|\u03c4\u03b5\u03c4(\u03ac|\u03b1)\u03c1\u03c4\u03b7|\u03c0(\u03ad|\u03b5)\u03bc\u03c0\u03c4\u03b7|\u03c0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5(\u03ae|\u03b7)|\u03c3(\u03ac|\u03b1)\u03b2\u03b2\u03b1\u03c4\u03bf)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u03ba/i,/^\u03b4/i,/^\u03c4/i,/^\u03c4/i,/^\u03c0/i,/^\u03c0/i,/^\u03c3/i],any:[/^\u03ba/i,/^\u03b4/i,/^\u03c4\u03c1/i,/^\u03c4\u03b5/i,/^\u03c0[\u03b5\u03ad]/i,/^\u03c0[\u03b1\u03ac]/i,/^\u03c3/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{narrow:/^(\u03c0\u03bc|\u03bc\u03bc|\u03bc\u03b5\u03c3(\u03ac|\u03b1)\u03bd\u03c5\u03c7\u03c4\u03b1|\u03bc\u03b5\u03c3\u03b7\u03bc(\u03ad|\u03b5)\u03c1\u03b9|\u03c0\u03c1\u03c9(\u03af|\u03b9)|\u03b1\u03c0(\u03cc|\u03bf)\u03b3\u03b5\u03c5\u03bc\u03b1|\u03b2\u03c1(\u03ac|\u03b1)\u03b4\u03c5|\u03bd(\u03cd|\u03c5)\u03c7\u03c4\u03b1)/i,any:/^([\u03c0\u03bc]\.?\s?\u03bc\.?|\u03bc\u03b5\u03c3(\u03ac|\u03b1)\u03bd\u03c5\u03c7\u03c4\u03b1|\u03bc\u03b5\u03c3\u03b7\u03bc(\u03ad|\u03b5)\u03c1\u03b9|\u03c0\u03c1\u03c9(\u03af|\u03b9)|\u03b1\u03c0(\u03cc|\u03bf)\u03b3\u03b5\u03c5\u03bc\u03b1|\u03b2\u03c1(\u03ac|\u03b1)\u03b4\u03c5|\u03bd(\u03cd|\u03c5)\u03c7\u03c4\u03b1)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u03c0\u03bc|\u03c0\.\s?\u03bc\./i,pm:/^\u03bc\u03bc|\u03bc\.\s?\u03bc\./i,midnight:/^\u03bc\u03b5\u03c3\u03ac\u03bd/i,noon:/^\u03bc\u03b5\u03c3\u03b7\u03bc(\u03ad|\u03b5)/i,morning:/\u03c0\u03c1\u03c9(\u03af|\u03b9)/i,afternoon:/\u03b1\u03c0(\u03cc|\u03bf)\u03b3\u03b5\u03c5\u03bc\u03b1/i,evening:/\u03b2\u03c1(\u03ac|\u03b1)\u03b4\u03c5/i,night:/\u03bd(\u03cd|\u03c5)\u03c7\u03c4\u03b1/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},wf={code:"en-GB",formatDistance:tn,formatLong:{date:In({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:In({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:st,localize:Po,match:Ea,options:{weekStartsOn:1,firstWeekContainsDate:4}},_d={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 d\xeda",other:"{{count}} d\xedas"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 a\xf1o",other:"alrededor de {{count}} a\xf1os"},xYears:{one:"1 a\xf1o",other:"{{count}} a\xf1os"},overXYears:{one:"m\xe1s de 1 a\xf1o",other:"m\xe1s de {{count}} a\xf1os"},almostXYears:{one:"casi 1 a\xf1o",other:"casi {{count}} a\xf1os"}},Mg={date:In({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:In({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Hl={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'ma\xf1ana a la' p",nextWeek:"eeee 'a la' p",other:"P"},$l={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'ma\xf1ana a las' p",nextWeek:"eeee 'a las' p",other:"P"},Ma={code:"es",formatDistance:(ye,ce,oe)=>{let Re;const Dt=_d[ye];return Re="string"==typeof Dt?Dt:1===ce?Dt.one:Dt.other.replace("{{count}}",ce.toString()),oe?.addSuffix?oe.comparison&&oe.comparison>0?"en "+Re:"hace "+Re:Re},formatLong:Mg,formatRelative:(ye,ce,oe,Re)=>1!==ce.getHours()?$l[ye]:Hl[ye],localize:{ordinalNumber:(ye,ce)=>Number(ye)+"\xba",era:Ct({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","despu\xe9s de cristo"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:ye=>Number(ye)-1}),month:Ct({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:Ct({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","s\xe1"],abbreviated:["dom","lun","mar","mi\xe9","jue","vie","s\xe1b"],wide:["domingo","lunes","martes","mi\xe9rcoles","jueves","viernes","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)(\xba)?/i,parsePattern:/\d+/i,valueCallback:function(ye){return parseInt(ye,10)}}),era:Ki({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[u\xfa]n|despu[e\xe9]s de cristo|era com[u\xfa]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[u\xfa]n)/i,/^(despu[e\xe9]s de cristo|era com[u\xfa]n)/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](\xba)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[\xe1a])/i,abbreviated:/^(dom|lun|mar|mi[\xe9e]|jue|vie|s[\xe1a]b)/i,wide:/^(domingo|lunes|martes|mi[\xe9e]rcoles|jueves|viernes|s[\xe1a]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (ma\xf1ana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (ma\xf1ana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/ma\xf1ana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}};function kc(ye){return ye.replace(/sekuntia?/,"sekunnin")}function Ig(ye){return ye.replace(/minuuttia?/,"minuutin")}function Zp(ye){return ye.replace(/tuntia?/,"tunnin")}function Ag(ye){return ye.replace(/(viikko|viikkoa)/,"viikon")}function Jp(ye){return ye.replace(/(kuukausi|kuukautta)/,"kuukauden")}function wu(ye){return ye.replace(/(vuosi|vuotta)/,"vuoden")}const eh={lessThanXSeconds:{one:"alle sekunti",other:"alle {{count}} sekuntia",futureTense:kc},xSeconds:{one:"sekunti",other:"{{count}} sekuntia",futureTense:kc},halfAMinute:{one:"puoli minuuttia",other:"puoli minuuttia",futureTense:ye=>"puolen minuutin"},lessThanXMinutes:{one:"alle minuutti",other:"alle {{count}} minuuttia",futureTense:Ig},xMinutes:{one:"minuutti",other:"{{count}} minuuttia",futureTense:Ig},aboutXHours:{one:"noin tunti",other:"noin {{count}} tuntia",futureTense:Zp},xHours:{one:"tunti",other:"{{count}} tuntia",futureTense:Zp},xDays:{one:"p\xe4iv\xe4",other:"{{count}} p\xe4iv\xe4\xe4",futureTense:function ul(ye){return ye.replace(/p\xe4iv\xe4\xe4?/,"p\xe4iv\xe4n")}},aboutXWeeks:{one:"noin viikko",other:"noin {{count}} viikkoa",futureTense:Ag},xWeeks:{one:"viikko",other:"{{count}} viikkoa",futureTense:Ag},aboutXMonths:{one:"noin kuukausi",other:"noin {{count}} kuukautta",futureTense:Jp},xMonths:{one:"kuukausi",other:"{{count}} kuukautta",futureTense:Jp},aboutXYears:{one:"noin vuosi",other:"noin {{count}} vuotta",futureTense:wu},xYears:{one:"vuosi",other:"{{count}} vuotta",futureTense:wu},overXYears:{one:"yli vuosi",other:"yli {{count}} vuotta",futureTense:wu},almostXYears:{one:"l\xe4hes vuosi",other:"l\xe4hes {{count}} vuotta",futureTense:wu}},Ff={date:In({formats:{full:"eeee d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"d.M.y"},defaultWidth:"full"}),time:In({formats:{full:"HH.mm.ss zzzz",long:"HH.mm.ss z",medium:"HH.mm.ss",short:"HH.mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} 'klo' {{time}}",long:"{{date}} 'klo' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Uf={lastWeek:"'viime' eeee 'klo' p",yesterday:"'eilen klo' p",today:"'t\xe4n\xe4\xe4n klo' p",tomorrow:"'huomenna klo' p",nextWeek:"'ensi' eeee 'klo' p",other:"P"},Rg={narrow:["T","H","M","H","T","K","H","E","S","L","M","J"],abbreviated:["tammi","helmi","maalis","huhti","touko","kes\xe4","hein\xe4","elo","syys","loka","marras","joulu"],wide:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kes\xe4kuu","hein\xe4kuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},Dg={narrow:Rg.narrow,abbreviated:Rg.abbreviated,wide:["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kes\xe4kuuta","hein\xe4kuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"]},Lg={narrow:["S","M","T","K","T","P","L"],short:["su","ma","ti","ke","to","pe","la"],abbreviated:["sunn.","maan.","tiis.","kesk.","torst.","perj.","la"],wide:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},em={narrow:Lg.narrow,short:Lg.short,abbreviated:Lg.abbreviated,wide:["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"]},Fc={code:"fi",formatDistance:(ye,ce,oe)=>{const Re=eh[ye],Dt=1===ce?Re.one:Re.other.replace("{{count}}",String(ce));return oe?.addSuffix?oe.comparison&&oe.comparison>0?Re.futureTense(Dt)+" kuluttua":Dt+" sitten":Dt},formatLong:Ff,formatRelative:(ye,ce,oe,Re)=>Uf[ye],localize:{ordinalNumber:(ye,ce)=>Number(ye)+".",era:Ct({values:{narrow:["eaa.","jaa."],abbreviated:["eaa.","jaa."],wide:["ennen ajanlaskun alkua","j\xe4lkeen ajanlaskun alun"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartaali","2. kvartaali","3. kvartaali","4. kvartaali"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:Rg,defaultWidth:"wide",formattingValues:Dg,defaultFormattingWidth:"wide"}),day:Ct({values:Lg,defaultWidth:"wide",formattingValues:em,defaultFormattingWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"ap",pm:"ip",midnight:"keskiy\xf6",noon:"keskip\xe4iv\xe4",morning:"ap",afternoon:"ip",evening:"illalla",night:"y\xf6ll\xe4"},abbreviated:{am:"ap",pm:"ip",midnight:"keskiy\xf6",noon:"keskip\xe4iv\xe4",morning:"ap",afternoon:"ip",evening:"illalla",night:"y\xf6ll\xe4"},wide:{am:"ap",pm:"ip",midnight:"keskiy\xf6ll\xe4",noon:"keskip\xe4iv\xe4ll\xe4",morning:"aamup\xe4iv\xe4ll\xe4",afternoon:"iltap\xe4iv\xe4ll\xe4",evening:"illalla",night:"y\xf6ll\xe4"}},defaultWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)(\.)/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|j\xe4lkeen ajanlaskun alun)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^e/i,/^j/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kes\xe4|hein\xe4|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kes\xe4kuu|hein\xe4kuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{narrow:/^(ap|ip|keskiy\xf6|keskip\xe4iv\xe4|aamup\xe4iv\xe4ll\xe4|iltap\xe4iv\xe4ll\xe4|illalla|y\xf6ll\xe4)/i,any:/^(ap|ip|keskiy\xf6ll\xe4|keskip\xe4iv\xe4ll\xe4|aamup\xe4iv\xe4ll\xe4|iltap\xe4iv\xe4ll\xe4|illalla|y\xf6ll\xe4)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiy\xf6/i,noon:/^keskip\xe4iv\xe4/i,morning:/aamup\xe4iv\xe4ll\xe4/i,afternoon:/iltap\xe4iv\xe4ll\xe4/i,evening:/illalla/i,night:/y\xf6ll\xe4/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Bg={lessThanXSeconds:{one:"moins d\u2019une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d\u2019une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d\u2019un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu\u2019un an",other:"presque {{count}} ans"}},rm={date:In({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:In({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} '\xe0' {{time}}",long:"{{date}} '\xe0' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ou={lastWeek:"eeee 'dernier \xe0' p",yesterday:"'hier \xe0' p",today:"'aujourd\u2019hui \xe0' p",tomorrow:"'demain \xe0' p'",nextWeek:"eeee 'prochain \xe0' p",other:"P"},om=["MMM","MMMM"],Wg={code:"fr",formatDistance:(ye,ce,oe)=>{let Re;const Dt=Bg[ye];return Re="string"==typeof Dt?Dt:1===ce?Dt.one:Dt.other.replace("{{count}}",String(ce)),oe?.addSuffix?oe.comparison&&oe.comparison>0?"dans "+Re:"il y a "+Re:Re},formatLong:rm,formatRelative:(ye,ce,oe,Re)=>ou[ye],localize:{preprocessor:(ye,ce)=>1!==ye.getDate()&&ce.some(Re=>Re.isToken&&om.includes(Re.value))?ce.map(Re=>Re.isToken&&"do"===Re.value?{isToken:!0,value:"d"}:Re):ce,ordinalNumber:(ye,ce)=>{const oe=Number(ye),Re=ce?.unit;if(0===oe)return"0";let ni;return ni=1===oe?Re&&["year","week","hour","minute","second"].includes(Re)?"\xe8re":"er":"\xe8me",oe+ni},era:Ct({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2\xe8me trim.","3\xe8me trim.","4\xe8me trim."],wide:["1er trimestre","2\xe8me trimestre","3\xe8me trimestre","4\xe8me trimestre"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],wide:["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]},defaultWidth:"wide"}),day:Ct({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"apr\xe8s-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l\u2019apr\xe8s-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)(i\xe8me|\xe8re|\xe8me|er|e)?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye)}),era:Ki({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant J\xe9sus-Christ|apr\xe8s J\xe9sus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|\xe8me|e)? trim\.?/i,wide:/^[1234](er|\xe8me|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|f\xe9vr|mars|avr|mai|juin|juill|juil|ao\xfbt|sept|oct|nov|d\xe9c)\.?/i,wide:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'apr\xe8s[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},au={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 tjedan",withPrepositionAgo:"oko 1 tjedan",withPrepositionIn:"oko 1 tjedan"},dual:"oko {{count}} tjedna",other:"oko {{count}} tjedana"},xWeeks:{one:{standalone:"1 tjedan",withPrepositionAgo:"1 tjedan",withPrepositionIn:"1 tjedan"},dual:"{{count}} tjedna",other:"{{count}} tjedana"},aboutXMonths:{one:{standalone:"oko 1 mjesec",withPrepositionAgo:"oko 1 mjesec",withPrepositionIn:"oko 1 mjesec"},dual:"oko {{count}} mjeseca",other:"oko {{count}} mjeseci"},xMonths:{one:{standalone:"1 mjesec",withPrepositionAgo:"1 mjesec",withPrepositionIn:"1 mjesec"},dual:"{{count}} mjeseca",other:"{{count}} mjeseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},Bh={date:In({formats:{full:"EEEE, d. MMMM y.",long:"d. MMMM y.",medium:"d. MMM y.",short:"dd. MM. y."},defaultWidth:"full"}),time:In({formats:{full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},tv={lastWeek:ye=>{switch(ye.getDay()){case 0:return"'pro\u0161lu nedjelju u' p";case 3:return"'pro\u0161lu srijedu u' p";case 6:return"'pro\u0161lu subotu u' p";default:return"'pro\u0161li' EEEE 'u' p"}},yesterday:"'ju\u010der u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:ye=>{switch(ye.getDay()){case 0:return"'idu\u0107u nedjelju u' p";case 3:return"'idu\u0107u srijedu u' p";case 6:return"'idu\u0107u subotu u' p";default:return"'pro\u0161li' EEEE 'u' p"}},other:"P"},Ru={code:"hr",formatDistance:(ye,ce,oe)=>{let Re;const Dt=au[ye];return Re="string"==typeof Dt?Dt:1===ce?oe?.addSuffix?oe.comparison&&oe.comparison>0?Dt.one.withPrepositionIn:Dt.one.withPrepositionAgo:Dt.one.standalone:ce%10>1&&ce%10<5&&"1"!==String(ce).substr(-2,1)?Dt.dual.replace("{{count}}",String(ce)):Dt.other.replace("{{count}}",String(ce)),oe?.addSuffix?oe.comparison&&oe.comparison>0?"za "+Re:"prije "+Re:Re},formatLong:Bh,formatRelative:(ye,ce,oe,Re)=>{const Dt=tv[ye];return"function"==typeof Dt?Dt(ce):Dt},localize:{ordinalNumber:(ye,ce)=>Number(ye)+".",era:Ct({values:{narrow:["pr.n.e.","AD"],abbreviated:["pr. Kr.","po. Kr."],wide:["Prije Krista","Poslije Krista"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["sij","velj","o\u017eu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],wide:["sije\u010danj","velja\u010da","o\u017eujak","travanj","svibanj","lipanj","srpanj","kolovoz","rujan","listopad","studeni","prosinac"]},defaultWidth:"wide",formattingValues:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["sij","velj","o\u017eu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],wide:["sije\u010dnja","velja\u010de","o\u017eujka","travnja","svibnja","lipnja","srpnja","kolovoza","rujna","listopada","studenog","prosinca"]},defaultFormattingWidth:"wide"}),day:Ct({values:{narrow:["N","P","U","S","\u010c","P","S"],short:["ned","pon","uto","sri","\u010det","pet","sub"],abbreviated:["ned","pon","uto","sri","\u010det","pet","sub"],wide:["nedjelja","ponedjeljak","utorak","srijeda","\u010detvrtak","petak","subota"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"nave\u010der",night:"no\u0107u"},abbreviated:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"nave\u010der",night:"no\u0107u"},wide:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutro",afternoon:"poslije podne",evening:"nave\u010der",night:"no\u0107u"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"nave\u010der",night:"no\u0107u"},abbreviated:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"nave\u010der",night:"no\u0107u"},wide:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutro",afternoon:"poslije podne",evening:"nave\u010der",night:"no\u0107u"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Kr\.|po\.\s?Kr\.)/i,wide:/^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|nova)/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(sij|velj|(o\u017eu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i,wide:/^((sije\u010danj|sije\u010dnja|sijecanj|sijecnja)|(velja\u010da|velja\u010de|veljaca|veljace)|(o\u017eujak|o\u017eujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i,/8/i,/9/i,/10/i,/11/i,/12/i],abbreviated:[/^sij/i,/^velj/i,/^(o\u017eu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i],wide:[/^sij/i,/^velj/i,/^(o\u017eu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i]},defaultParseWidth:"wide"}),day:Ki({matchPatterns:{narrow:/^[npus\u010dc]/i,short:/^(ned|pon|uto|sri|(\u010det|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sri|(\u010det|cet)|pet|sub)/i,wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(\u010detvrtak|cetvrtak)|petak|subota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{any:/^(am|pm|ponoc|pono\u0107|(po)?podne|navecer|nave\u010der|no\u0107u|poslije podne|ujutro)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(poslije\s|po)+podne/i,evening:/(navece|nave\u010de)/i,night:/(nocu|no\u0107u)/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Cm={about:"k\xf6r\xfclbel\xfcl",over:"t\xf6bb mint",almost:"majdnem",lessthan:"kevesebb mint"},ov={xseconds:" m\xe1sodperc",halfaminute:"f\xe9l perc",xminutes:" perc",xhours:" \xf3ra",xdays:" nap",xweeks:" h\xe9t",xmonths:" h\xf3nap",xyears:" \xe9v"},zh={xseconds:{"-1":" m\xe1sodperccel ezel\u0151tt",1:" m\xe1sodperc m\xfalva",0:" m\xe1sodperce"},halfaminute:{"-1":"f\xe9l perccel ezel\u0151tt",1:"f\xe9l perc m\xfalva",0:"f\xe9l perce"},xminutes:{"-1":" perccel ezel\u0151tt",1:" perc m\xfalva",0:" perce"},xhours:{"-1":" \xf3r\xe1val ezel\u0151tt",1:" \xf3ra m\xfalva",0:" \xf3r\xe1ja"},xdays:{"-1":" nappal ezel\u0151tt",1:" nap m\xfalva",0:" napja"},xweeks:{"-1":" h\xe9ttel ezel\u0151tt",1:" h\xe9t m\xfalva",0:" hete"},xmonths:{"-1":" h\xf3nappal ezel\u0151tt",1:" h\xf3nap m\xfalva",0:" h\xf3napja"},xyears:{"-1":" \xe9vvel ezel\u0151tt",1:" \xe9v m\xfalva",0:" \xe9ve"}},Kg={date:In({formats:{full:"y. MMMM d., EEEE",long:"y. MMMM d.",medium:"y. MMM d.",short:"y. MM. dd."},defaultWidth:"full"}),time:In({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Yg=["vas\xe1rnap","h\xe9tf\u0151n","kedden","szerd\xe1n","cs\xfct\xf6rt\xf6k\xf6n","p\xe9nteken","szombaton"];function $h(ye){return ce=>{const oe=Yg[ce.getDay()];return`${ye?"":"'m\xfalt' "}'${oe}' p'-kor'`}}const Sm={lastWeek:$h(!1),yesterday:"'tegnap' p'-kor'",today:"'ma' p'-kor'",tomorrow:"'holnap' p'-kor'",nextWeek:$h(!0),other:"P"},Yi={code:"hu",formatDistance:(ye,ce,oe)=>{const Re=ye.match(/about|over|almost|lessthan/i),Dt=Re?ye.replace(Re[0],""):ye,ni=!0===oe?.addSuffix,$i=Dt.toLowerCase(),Ao=ni?zh[$i][oe?.comparison||0]:ov[$i];let ms="halfaminute"===$i?Ao:ce+Ao;if(Re){const us=Re[0].toLowerCase();ms=Cm[us]+" "+ms}return ms},formatLong:Kg,formatRelative:(ye,ce)=>{const oe=Sm[ye];return"function"==typeof oe?oe(ce):oe},localize:{ordinalNumber:(ye,ce)=>Number(ye)+".",era:Ct({values:{narrow:["ie.","isz."],abbreviated:["i. e.","i. sz."],wide:["Krisztus el\u0151tt","id\u0151sz\xe1m\xedt\xe1sunk szerint"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. n.\xe9v","2. n.\xe9v","3. n.\xe9v","4. n.\xe9v"],wide:["1. negyed\xe9v","2. negyed\xe9v","3. negyed\xe9v","4. negyed\xe9v"]},defaultWidth:"wide",argumentCallback:ye=>ye-1,formattingValues:{narrow:["I.","II.","III.","IV."],abbreviated:["I. n.\xe9v","II. n.\xe9v","III. n.\xe9v","IV. n.\xe9v"],wide:["I. negyed\xe9v","II. negyed\xe9v","III. negyed\xe9v","IV. negyed\xe9v"]},defaultFormattingWidth:"wide"}),month:Ct({values:{narrow:["J","F","M","\xc1","M","J","J","A","Sz","O","N","D"],abbreviated:["jan.","febr.","m\xe1rc.","\xe1pr.","m\xe1j.","j\xfan.","j\xfal.","aug.","szept.","okt.","nov.","dec."],wide:["janu\xe1r","febru\xe1r","m\xe1rcius","\xe1prilis","m\xe1jus","j\xfanius","j\xfalius","augusztus","szeptember","okt\xf3ber","november","december"]},defaultWidth:"wide"}),day:Ct({values:{narrow:["V","H","K","Sz","Cs","P","Sz"],short:["V","H","K","Sze","Cs","P","Szo"],abbreviated:["V","H","K","Sze","Cs","P","Szo"],wide:["vas\xe1rnap","h\xe9tf\u0151","kedd","szerda","cs\xfct\xf6rt\xf6k","p\xe9ntek","szombat"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"de.",pm:"du.",midnight:"\xe9jf\xe9l",noon:"d\xe9l",morning:"reggel",afternoon:"du.",evening:"este",night:"\xe9jjel"},abbreviated:{am:"de.",pm:"du.",midnight:"\xe9jf\xe9l",noon:"d\xe9l",morning:"reggel",afternoon:"du.",evening:"este",night:"\xe9jjel"},wide:{am:"de.",pm:"du.",midnight:"\xe9jf\xe9l",noon:"d\xe9l",morning:"reggel",afternoon:"d\xe9lut\xe1n",evening:"este",night:"\xe9jjel"}},defaultWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^(ie\.|isz\.)/i,abbreviated:/^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i,wide:/^(Krisztus el\u0151tt|id\u0151sz\xe1m\xedt\xe1sunk el\u0151tt|id\u0151sz\xe1m\xedt\xe1sunk szerint|i\. sz\.)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/ie/i,/isz/i],abbreviated:[/^(i\.?\s?e\.?|b\s?ce)/i,/^(i\.?\s?sz\.?|c\s?e)/i],any:[/el\u0151tt/i,/(szerint|i. sz.)/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]\.?/i,abbreviated:/^[1234]?\.?\s?n\.\xe9v/i,wide:/^([1234]|I|II|III|IV)?\.?\s?negyed\xe9v/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1|I$/i,/2|II$/i,/3|III/i,/4|IV/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[jfma\xe1sond]|sz/i,abbreviated:/^(jan\.?|febr\.?|m\xe1rc\.?|\xe1pr\.?|m\xe1j\.?|j\xfan\.?|j\xfal\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i,wide:/^(janu\xe1r|febru\xe1r|m\xe1rcius|\xe1prilis|m\xe1jus|j\xfanius|j\xfalius|augusztus|szeptember|okt\xf3ber|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a|\xe1/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s|sz/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^m\xe1r/i,/^\xe1p/i,/^m\xe1j/i,/^j\xfan/i,/^j\xfal/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^([vhkpc]|sz|cs|sz)/i,short:/^([vhkp]|sze|cs|szo)/i,abbreviated:/^([vhkp]|sze|cs|szo)/i,wide:/^(vas\xe1rnap|h\xe9tf\u0151|kedd|szerda|cs\xfct\xf6rt\xf6k|p\xe9ntek|szombat)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^v/i,/^h/i,/^k/i,/^sz/i,/^c/i,/^p/i,/^sz/i],any:[/^v/i,/^h/i,/^k/i,/^sze/i,/^c/i,/^p/i,/^szo/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{any:/^((de|du)\.?|\xe9jf\xe9l|d\xe9lut\xe1n|d\xe9l|reggel|este|\xe9jjel)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^de\.?/i,pm:/^du\.?/i,midnight:/^\xe9jf/i,noon:/^d\xe9/i,morning:/reg/i,afternoon:/^d\xe9lu\.?/i,evening:/es/i,night:/\xe9jj/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Qr={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"pi\xf9 di un anno",other:"pi\xf9 di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},Ys={date:In({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:In({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Da=["domenica","luned\xec","marted\xec","mercoled\xec","gioved\xec","venerd\xec","sabato"];function Fa(ye){return"'"+Da[ye]+" alle' p"}const Uc={lastWeek:(ye,ce,oe)=>{const Re=ye.getDay();return Bl(ye,ce,oe)?Fa(Re):function bs(ye){return 0===ye?"'domenica scorsa alle' p":"'"+Da[ye]+" scorso alle' p"}(Re)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:(ye,ce,oe)=>{const Re=ye.getDay();return Bl(ye,ce,oe)?Fa(Re):function Za(ye){return 0===ye?"'domenica prossima alle' p":"'"+Da[ye]+" prossimo alle' p"}(Re)},other:"P"},S_={code:"it",formatDistance:(ye,ce,oe)=>{let Re;const Dt=Qr[ye];return Re="string"==typeof Dt?Dt:1===ce?Dt.one:Dt.other.replace("{{count}}",ce.toString()),oe?.addSuffix?oe.comparison&&oe.comparison>0?"tra "+Re:Re+" fa":Re},formatLong:Ys,formatRelative:(ye,ce,oe,Re)=>{const Dt=Uc[ye];return"function"==typeof Dt?Dt(ce,oe,Re):Dt},localize:{ordinalNumber:(ye,ce)=>{const oe=Number(ye);return String(oe)},era:Ct({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:Ct({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","luned\xec","marted\xec","mercoled\xec","gioved\xec","venerd\xec","sabato"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)(\xba)?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](\xba)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|\xec]|marted[i|\xec]|mercoled[i|\xec]|gioved[i|\xec]|venerd[i|\xec]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},UC={lessThanXSeconds:{one:"1\u79d2\u672a\u6e80",other:"{{count}}\u79d2\u672a\u6e80",oneWithSuffix:"\u7d041\u79d2",otherWithSuffix:"\u7d04{{count}}\u79d2"},xSeconds:{one:"1\u79d2",other:"{{count}}\u79d2"},halfAMinute:"30\u79d2",lessThanXMinutes:{one:"1\u5206\u672a\u6e80",other:"{{count}}\u5206\u672a\u6e80",oneWithSuffix:"\u7d041\u5206",otherWithSuffix:"\u7d04{{count}}\u5206"},xMinutes:{one:"1\u5206",other:"{{count}}\u5206"},aboutXHours:{one:"\u7d041\u6642\u9593",other:"\u7d04{{count}}\u6642\u9593"},xHours:{one:"1\u6642\u9593",other:"{{count}}\u6642\u9593"},xDays:{one:"1\u65e5",other:"{{count}}\u65e5"},aboutXWeeks:{one:"\u7d041\u9031\u9593",other:"\u7d04{{count}}\u9031\u9593"},xWeeks:{one:"1\u9031\u9593",other:"{{count}}\u9031\u9593"},aboutXMonths:{one:"\u7d041\u304b\u6708",other:"\u7d04{{count}}\u304b\u6708"},xMonths:{one:"1\u304b\u6708",other:"{{count}}\u304b\u6708"},aboutXYears:{one:"\u7d041\u5e74",other:"\u7d04{{count}}\u5e74"},xYears:{one:"1\u5e74",other:"{{count}}\u5e74"},overXYears:{one:"1\u5e74\u4ee5\u4e0a",other:"{{count}}\u5e74\u4ee5\u4e0a"},almostXYears:{one:"1\u5e74\u8fd1\u304f",other:"{{count}}\u5e74\u8fd1\u304f"}},VC={date:In({formats:{full:"y\u5e74M\u6708d\u65e5EEEE",long:"y\u5e74M\u6708d\u65e5",medium:"y/MM/dd",short:"y/MM/dd"},defaultWidth:"full"}),time:In({formats:{full:"H\u6642mm\u5206ss\u79d2 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},W0={lastWeek:"\u5148\u9031\u306eeeee\u306ep",yesterday:"\u6628\u65e5\u306ep",today:"\u4eca\u65e5\u306ep",tomorrow:"\u660e\u65e5\u306ep",nextWeek:"\u7fcc\u9031\u306eeeee\u306ep",other:"P"},J0={code:"ja",formatDistance:(ye,ce,oe)=>{let Re;oe=oe||{};const Dt=UC[ye];return Re="string"==typeof Dt?Dt:1===ce?oe.addSuffix&&Dt.oneWithSuffix?Dt.oneWithSuffix:Dt.one:oe.addSuffix&&Dt.otherWithSuffix?Dt.otherWithSuffix.replace("{{count}}",String(ce)):Dt.other.replace("{{count}}",String(ce)),oe.addSuffix?oe.comparison&&oe.comparison>0?Re+"\u5f8c":Re+"\u524d":Re},formatLong:VC,formatRelative:(ye,ce,oe,Re)=>W0[ye],localize:{ordinalNumber:(ye,ce)=>{const oe=Number(ye);switch(String(ce?.unit)){case"year":return`${oe}\u5e74`;case"quarter":return`\u7b2c${oe}\u56db\u534a\u671f`;case"month":return`${oe}\u6708`;case"week":return`\u7b2c${oe}\u9031`;case"date":return`${oe}\u65e5`;case"hour":return`${oe}\u6642`;case"minute":return`${oe}\u5206`;case"second":return`${oe}\u79d2`;default:return`${oe}`}},era:Ct({values:{narrow:["BC","AC"],abbreviated:["\u7d00\u5143\u524d","\u897f\u66a6"],wide:["\u7d00\u5143\u524d","\u897f\u66a6"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["\u7b2c1\u56db\u534a\u671f","\u7b2c2\u56db\u534a\u671f","\u7b2c3\u56db\u534a\u671f","\u7b2c4\u56db\u534a\u671f"]},defaultWidth:"wide",argumentCallback:ye=>Number(ye)-1}),month:Ct({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"]},defaultWidth:"wide"}),day:Ct({values:{narrow:["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],short:["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],abbreviated:["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],wide:["\u65e5\u66dc\u65e5","\u6708\u66dc\u65e5","\u706b\u66dc\u65e5","\u6c34\u66dc\u65e5","\u6728\u66dc\u65e5","\u91d1\u66dc\u65e5","\u571f\u66dc\u65e5"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"\u5348\u524d",pm:"\u5348\u5f8c",midnight:"\u6df1\u591c",noon:"\u6b63\u5348",morning:"\u671d",afternoon:"\u5348\u5f8c",evening:"\u591c",night:"\u6df1\u591c"},abbreviated:{am:"\u5348\u524d",pm:"\u5348\u5f8c",midnight:"\u6df1\u591c",noon:"\u6b63\u5348",morning:"\u671d",afternoon:"\u5348\u5f8c",evening:"\u591c",night:"\u6df1\u591c"},wide:{am:"\u5348\u524d",pm:"\u5348\u5f8c",midnight:"\u6df1\u591c",noon:"\u6b63\u5348",morning:"\u671d",afternoon:"\u5348\u5f8c",evening:"\u591c",night:"\u6df1\u591c"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u5348\u524d",pm:"\u5348\u5f8c",midnight:"\u6df1\u591c",noon:"\u6b63\u5348",morning:"\u671d",afternoon:"\u5348\u5f8c",evening:"\u591c",night:"\u6df1\u591c"},abbreviated:{am:"\u5348\u524d",pm:"\u5348\u5f8c",midnight:"\u6df1\u591c",noon:"\u6b63\u5348",morning:"\u671d",afternoon:"\u5348\u5f8c",evening:"\u591c",night:"\u6df1\u591c"},wide:{am:"\u5348\u524d",pm:"\u5348\u5f8c",midnight:"\u6df1\u591c",noon:"\u6b63\u5348",morning:"\u671d",afternoon:"\u5348\u5f8c",evening:"\u591c",night:"\u6df1\u591c"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^\u7b2c?\d+(\u5e74|\u56db\u534a\u671f|\u6708|\u9031|\u65e5|\u6642|\u5206|\u79d2)?/i,parsePattern:/\d+/i,valueCallback:function(ye){return parseInt(ye,10)}}),era:Ki({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(\u7d00\u5143[\u524d\u5f8c]|\u897f\u66a6)/i,wide:/^(\u7d00\u5143[\u524d\u5f8c]|\u897f\u66a6)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(\u7d00\u5143\u524d)/i,/^(\u897f\u66a6|\u7d00\u5143\u5f8c)/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^\u7b2c[1234\u4e00\u4e8c\u4e09\u56db\uff11\uff12\uff13\uff14]\u56db\u534a\u671f/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|\u4e00|\uff11)/i,/(2|\u4e8c|\uff12)/i,/(3|\u4e09|\uff13)/i,/(4|\u56db|\uff14)/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])\u6708/i,wide:/^([123456789]|1[012])\u6708/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[\u65e5\u6708\u706b\u6c34\u6728\u91d1\u571f]/,short:/^[\u65e5\u6708\u706b\u6c34\u6728\u91d1\u571f]/,abbreviated:/^[\u65e5\u6708\u706b\u6c34\u6728\u91d1\u571f]/,wide:/^[\u65e5\u6708\u706b\u6c34\u6728\u91d1\u571f]\u66dc\u65e5/},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u65e5/,/^\u6708/,/^\u706b/,/^\u6c34/,/^\u6728/,/^\u91d1/,/^\u571f/]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{any:/^(AM|PM|\u5348\u524d|\u5348\u5f8c|\u6b63\u5348|\u6df1\u591c|\u771f\u591c\u4e2d|\u591c|\u671d)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(A|\u5348\u524d)/i,pm:/^(P|\u5348\u5f8c)/i,midnight:/^\u6df1\u591c|\u771f\u591c\u4e2d/i,noon:/^\u6b63\u5348/i,morning:/^\u671d/i,afternoon:/^\u5348\u5f8c/i,evening:/^\u591c/i,night:/^\u6df1\u591c/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},q0={lessThanXSeconds:{one:"1\ucd08 \ubbf8\ub9cc",other:"{{count}}\ucd08 \ubbf8\ub9cc"},xSeconds:{one:"1\ucd08",other:"{{count}}\ucd08"},halfAMinute:"30\ucd08",lessThanXMinutes:{one:"1\ubd84 \ubbf8\ub9cc",other:"{{count}}\ubd84 \ubbf8\ub9cc"},xMinutes:{one:"1\ubd84",other:"{{count}}\ubd84"},aboutXHours:{one:"\uc57d 1\uc2dc\uac04",other:"\uc57d {{count}}\uc2dc\uac04"},xHours:{one:"1\uc2dc\uac04",other:"{{count}}\uc2dc\uac04"},xDays:{one:"1\uc77c",other:"{{count}}\uc77c"},aboutXWeeks:{one:"\uc57d 1\uc8fc",other:"\uc57d {{count}}\uc8fc"},xWeeks:{one:"1\uc8fc",other:"{{count}}\uc8fc"},aboutXMonths:{one:"\uc57d 1\uac1c\uc6d4",other:"\uc57d {{count}}\uac1c\uc6d4"},xMonths:{one:"1\uac1c\uc6d4",other:"{{count}}\uac1c\uc6d4"},aboutXYears:{one:"\uc57d 1\ub144",other:"\uc57d {{count}}\ub144"},xYears:{one:"1\ub144",other:"{{count}}\ub144"},overXYears:{one:"1\ub144 \uc774\uc0c1",other:"{{count}}\ub144 \uc774\uc0c1"},almostXYears:{one:"\uac70\uc758 1\ub144",other:"\uac70\uc758 {{count}}\ub144"}},x_={date:In({formats:{full:"y\ub144 M\uc6d4 d\uc77c EEEE",long:"y\ub144 M\uc6d4 d\uc77c",medium:"y.MM.dd",short:"y.MM.dd"},defaultWidth:"full"}),time:In({formats:{full:"a H\uc2dc mm\ubd84 ss\ucd08 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Cv={lastWeek:"'\uc9c0\ub09c' eeee p",yesterday:"'\uc5b4\uc81c' p",today:"'\uc624\ub298' p",tomorrow:"'\ub0b4\uc77c' p",nextWeek:"'\ub2e4\uc74c' eeee p",other:"P"},gy={code:"ko",formatDistance:(ye,ce,oe)=>{let Re;const Dt=q0[ye];return Re="string"==typeof Dt?Dt:1===ce?Dt.one:Dt.other.replace("{{count}}",ce.toString()),oe?.addSuffix?oe.comparison&&oe.comparison>0?Re+" \ud6c4":Re+" \uc804":Re},formatLong:x_,formatRelative:(ye,ce,oe,Re)=>Cv[ye],localize:{ordinalNumber:(ye,ce)=>{const oe=Number(ye);switch(String(ce?.unit)){case"minute":case"second":return String(oe);case"date":return oe+"\uc77c";default:return oe+"\ubc88\uc9f8"}},era:Ct({values:{narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["\uae30\uc6d0\uc804","\uc11c\uae30"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1\ubd84\uae30","2\ubd84\uae30","3\ubd84\uae30","4\ubd84\uae30"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1\uc6d4","2\uc6d4","3\uc6d4","4\uc6d4","5\uc6d4","6\uc6d4","7\uc6d4","8\uc6d4","9\uc6d4","10\uc6d4","11\uc6d4","12\uc6d4"],wide:["1\uc6d4","2\uc6d4","3\uc6d4","4\uc6d4","5\uc6d4","6\uc6d4","7\uc6d4","8\uc6d4","9\uc6d4","10\uc6d4","11\uc6d4","12\uc6d4"]},defaultWidth:"wide"}),day:Ct({values:{narrow:["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"],short:["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"],abbreviated:["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"],wide:["\uc77c\uc694\uc77c","\uc6d4\uc694\uc77c","\ud654\uc694\uc77c","\uc218\uc694\uc77c","\ubaa9\uc694\uc77c","\uae08\uc694\uc77c","\ud1a0\uc694\uc77c"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"\uc624\uc804",pm:"\uc624\ud6c4",midnight:"\uc790\uc815",noon:"\uc815\uc624",morning:"\uc544\uce68",afternoon:"\uc624\ud6c4",evening:"\uc800\ub141",night:"\ubc24"},abbreviated:{am:"\uc624\uc804",pm:"\uc624\ud6c4",midnight:"\uc790\uc815",noon:"\uc815\uc624",morning:"\uc544\uce68",afternoon:"\uc624\ud6c4",evening:"\uc800\ub141",night:"\ubc24"},wide:{am:"\uc624\uc804",pm:"\uc624\ud6c4",midnight:"\uc790\uc815",noon:"\uc815\uc624",morning:"\uc544\uce68",afternoon:"\uc624\ud6c4",evening:"\uc800\ub141",night:"\ubc24"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\uc624\uc804",pm:"\uc624\ud6c4",midnight:"\uc790\uc815",noon:"\uc815\uc624",morning:"\uc544\uce68",afternoon:"\uc624\ud6c4",evening:"\uc800\ub141",night:"\ubc24"},abbreviated:{am:"\uc624\uc804",pm:"\uc624\ud6c4",midnight:"\uc790\uc815",noon:"\uc815\uc624",morning:"\uc544\uce68",afternoon:"\uc624\ud6c4",evening:"\uc800\ub141",night:"\ubc24"},wide:{am:"\uc624\uc804",pm:"\uc624\ud6c4",midnight:"\uc790\uc815",noon:"\uc815\uc624",morning:"\uc544\uce68",afternoon:"\uc624\ud6c4",evening:"\uc800\ub141",night:"\ubc24"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)(\uc77c|\ubc88\uc9f8)?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(\uae30\uc6d0\uc804|\uc11c\uae30)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(bc|\uae30\uc6d0\uc804)/i,/^(ad|\uc11c\uae30)/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\uc0ac?\ubd84\uae30/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])\uc6d4/i,wide:/^(1[012]|[123456789])\uc6d4/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\uc6d4?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0]/,short:/^[\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0]/,abbreviated:/^[\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0]/,wide:/^[\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0]\uc694\uc77c/},defaultMatchWidth:"wide",parsePatterns:{any:[/^\uc77c/,/^\uc6d4/,/^\ud654/,/^\uc218/,/^\ubaa9/,/^\uae08/,/^\ud1a0/]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{any:/^(am|pm|\uc624\uc804|\uc624\ud6c4|\uc790\uc815|\uc815\uc624|\uc544\uce68|\uc800\ub141|\ubc24)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(am|\uc624\uc804)/i,pm:/^(pm|\uc624\ud6c4)/i,midnight:/^\uc790\uc815/i,noon:/^\uc815\uc624/i,morning:/^\uc544\uce68/i,afternoon:/^\uc624\ud6c4/i,evening:/^\uc800\ub141/i,night:/^\ubc24/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},py={lessThanXSeconds:{one:"mindre enn ett sekund",other:"mindre enn {{count}} sekunder"},xSeconds:{one:"ett sekund",other:"{{count}} sekunder"},halfAMinute:"et halvt minutt",lessThanXMinutes:{one:"mindre enn ett minutt",other:"mindre enn {{count}} minutter"},xMinutes:{one:"ett minutt",other:"{{count}} minutter"},aboutXHours:{one:"omtrent en time",other:"omtrent {{count}} timer"},xHours:{one:"en time",other:"{{count}} timer"},xDays:{one:"en dag",other:"{{count}} dager"},aboutXWeeks:{one:"omtrent en uke",other:"omtrent {{count}} uker"},xWeeks:{one:"en uke",other:"{{count}} uker"},aboutXMonths:{one:"omtrent en m\xe5ned",other:"omtrent {{count}} m\xe5neder"},xMonths:{one:"en m\xe5ned",other:"{{count}} m\xe5neder"},aboutXYears:{one:"omtrent ett \xe5r",other:"omtrent {{count}} \xe5r"},xYears:{one:"ett \xe5r",other:"{{count}} \xe5r"},overXYears:{one:"over ett \xe5r",other:"over {{count}} \xe5r"},almostXYears:{one:"nesten ett \xe5r",other:"nesten {{count}} \xe5r"}},vy={date:In({formats:{full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:In({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},_y={lastWeek:"'forrige' eeee 'kl.' p",yesterday:"'i g\xe5r kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},Ey={code:"nb",formatDistance:(ye,ce,oe)=>{let Re;const Dt=py[ye];return Re="string"==typeof Dt?Dt:1===ce?Dt.one:Dt.other.replace("{{count}}",String(ce)),oe?.addSuffix?oe.comparison&&oe.comparison>0?"om "+Re:Re+" siden":Re},formatLong:vy,formatRelative:(ye,ce,oe,Re)=>_y[ye],localize:{ordinalNumber:(ye,ce)=>Number(ye)+".",era:Ct({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["f\xf8r Kristus","etter Kristus"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},defaultWidth:"wide"}),day:Ct({values:{narrow:["S","M","T","O","T","F","L"],short:["s\xf8","ma","ti","on","to","fr","l\xf8"],abbreviated:["s\xf8n","man","tir","ons","tor","fre","l\xf8r"],wide:["s\xf8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\xf8rdag"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"p\xe5 morg.",afternoon:"p\xe5 etterm.",evening:"p\xe5 kvelden",night:"p\xe5 natten"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"p\xe5 morg.",afternoon:"p\xe5 etterm.",evening:"p\xe5 kvelden",night:"p\xe5 natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"p\xe5 morgenen",afternoon:"p\xe5 ettermiddagen",evening:"p\xe5 kvelden",night:"p\xe5 natten"}},defaultWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(f\xf8r Kristus|f\xf8r v\xe5r tid|etter Kristus|v\xe5r tid)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^e/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[smtofl]/i,short:/^(s\xf8|ma|ti|on|to|fr|l\xf8)/i,abbreviated:/^(s\xf8n|man|tir|ons|tor|fre|l\xf8r)/i,wide:/^(s\xf8ndag|mandag|tirsdag|onsdag|torsdag|fredag|l\xf8rdag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{narrow:/^(midnatt|middag|(p\xe5) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(p\xe5) (morgenen|ettermiddagen|kvelden|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgen/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},xy={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},sb={date:In({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},defaultWidth:"full"}),time:In({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},wy={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},Ov={code:"nl",formatDistance:(ye,ce,oe)=>{let Re;const Dt=xy[ye];return Re="string"==typeof Dt?Dt:1===ce?Dt.one:Dt.other.replace("{{count}}",String(ce)),oe?.addSuffix?oe.comparison&&oe.comparison>0?"over "+Re:Re+" geleden":Re},formatLong:sb,formatRelative:(ye,ce,oe,Re)=>wy[ye],localize:{ordinalNumber:(ye,ce)=>Number(ye)+"e",era:Ct({values:{narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},defaultWidth:"wide"}),day:Ct({values:{narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},defaultWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)e?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},hb={lessThanXSeconds:{one:{regular:"mniej ni\u017c sekunda",past:"mniej ni\u017c sekund\u0119",future:"mniej ni\u017c sekund\u0119"},twoFour:"mniej ni\u017c {{count}} sekundy",other:"mniej ni\u017c {{count}} sekund"},xSeconds:{one:{regular:"sekunda",past:"sekund\u0119",future:"sekund\u0119"},twoFour:"{{count}} sekundy",other:"{{count}} sekund"},halfAMinute:{one:"p\xf3\u0142 minuty",twoFour:"p\xf3\u0142 minuty",other:"p\xf3\u0142 minuty"},lessThanXMinutes:{one:{regular:"mniej ni\u017c minuta",past:"mniej ni\u017c minut\u0119",future:"mniej ni\u017c minut\u0119"},twoFour:"mniej ni\u017c {{count}} minuty",other:"mniej ni\u017c {{count}} minut"},xMinutes:{one:{regular:"minuta",past:"minut\u0119",future:"minut\u0119"},twoFour:"{{count}} minuty",other:"{{count}} minut"},aboutXHours:{one:{regular:"oko\u0142o godziny",past:"oko\u0142o godziny",future:"oko\u0142o godzin\u0119"},twoFour:"oko\u0142o {{count}} godziny",other:"oko\u0142o {{count}} godzin"},xHours:{one:{regular:"godzina",past:"godzin\u0119",future:"godzin\u0119"},twoFour:"{{count}} godziny",other:"{{count}} godzin"},xDays:{one:{regular:"dzie\u0144",past:"dzie\u0144",future:"1 dzie\u0144"},twoFour:"{{count}} dni",other:"{{count}} dni"},aboutXWeeks:{one:"oko\u0142o tygodnia",twoFour:"oko\u0142o {{count}} tygodni",other:"oko\u0142o {{count}} tygodni"},xWeeks:{one:"tydzie\u0144",twoFour:"{{count}} tygodnie",other:"{{count}} tygodni"},aboutXMonths:{one:"oko\u0142o miesi\u0105c",twoFour:"oko\u0142o {{count}} miesi\u0105ce",other:"oko\u0142o {{count}} miesi\u0119cy"},xMonths:{one:"miesi\u0105c",twoFour:"{{count}} miesi\u0105ce",other:"{{count}} miesi\u0119cy"},aboutXYears:{one:"oko\u0142o rok",twoFour:"oko\u0142o {{count}} lata",other:"oko\u0142o {{count}} lat"},xYears:{one:"rok",twoFour:"{{count}} lata",other:"{{count}} lat"},overXYears:{one:"ponad rok",twoFour:"ponad {{count}} lata",other:"ponad {{count}} lat"},almostXYears:{one:"prawie rok",twoFour:"prawie {{count}} lata",other:"prawie {{count}} lat"}};function tp(ye,ce,oe){const Re=function ky(ye,ce){if(1===ce)return ye.one;const oe=ce%100;if(oe<=20&&oe>10)return ye.other;const Re=oe%10;return Re>=2&&Re<=4?ye.twoFour:ye.other}(ye,ce);return("string"==typeof Re?Re:Re[oe]).replace("{{count}}",String(ce))}const Gy={date:In({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:In({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Vy={masculine:"ostatni",feminine:"ostatnia"},Hy={masculine:"ten",feminine:"ta"},jy={masculine:"nast\u0119pny",feminine:"nast\u0119pna"},Wy={0:"feminine",1:"masculine",2:"masculine",3:"feminine",4:"masculine",5:"masculine",6:"feminine"};function Gm(ye,ce,oe,Re){let Dt;if(Bl(ce,oe,Re))Dt=Hy;else if("lastWeek"===ye)Dt=Vy;else{if("nextWeek"!==ye)throw new Error(`Cannot determine adjectives for token ${ye}`);Dt=jy}const ni=ce.getDay();return`'${Dt[Wy[ni]]}' eeee 'o' p`}const zy={lastWeek:Gm,yesterday:"'wczoraj o' p",today:"'dzisiaj o' p",tomorrow:"'jutro o' p",nextWeek:Gm,other:"P"},V_={code:"pl",formatDistance:(ye,ce,oe)=>{const Re=hb[ye];return oe?.addSuffix?oe.comparison&&oe.comparison>0?"za "+tp(Re,ce,"future"):tp(Re,ce,"past")+" temu":tp(Re,ce,"regular")},formatLong:Gy,formatRelative:(ye,ce,oe,Re)=>{const Dt=zy[ye];return"function"==typeof Dt?Dt(ye,ce,oe,Re):Dt},localize:{ordinalNumber:(ye,ce)=>String(ye),era:Ct({values:{narrow:["p.n.e.","n.e."],abbreviated:["p.n.e.","n.e."],wide:["przed nasz\u0105 er\u0105","naszej ery"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["I kw.","II kw.","III kw.","IV kw."],wide:["I kwarta\u0142","II kwarta\u0142","III kwarta\u0142","IV kwarta\u0142"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["S","L","M","K","M","C","L","S","W","P","L","G"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","pa\u017a","lis","gru"],wide:["stycze\u0144","luty","marzec","kwiecie\u0144","maj","czerwiec","lipiec","sierpie\u0144","wrzesie\u0144","pa\u017adziernik","listopad","grudzie\u0144"]},defaultWidth:"wide",formattingValues:{narrow:["s","l","m","k","m","c","l","s","w","p","l","g"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","pa\u017a","lis","gru"],wide:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","wrze\u015bnia","pa\u017adziernika","listopada","grudnia"]},defaultFormattingWidth:"wide"}),day:Ct({values:{narrow:["N","P","W","\u015a","C","P","S"],short:["nie","pon","wto","\u015bro","czw","pi\u0105","sob"],abbreviated:["niedz.","pon.","wt.","\u015br.","czw.","pt.","sob."],wide:["niedziela","poniedzia\u0142ek","wtorek","\u015broda","czwartek","pi\u0105tek","sobota"]},defaultWidth:"wide",formattingValues:{narrow:["n","p","w","\u015b","c","p","s"],short:["nie","pon","wto","\u015bro","czw","pi\u0105","sob"],abbreviated:["niedz.","pon.","wt.","\u015br.","czw.","pt.","sob."],wide:["niedziela","poniedzia\u0142ek","wtorek","\u015broda","czwartek","pi\u0105tek","sobota"]},defaultFormattingWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"a",pm:"p",midnight:"p\xf3\u0142n.",noon:"po\u0142",morning:"rano",afternoon:"popo\u0142.",evening:"wiecz.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"p\xf3\u0142noc",noon:"po\u0142udnie",morning:"rano",afternoon:"popo\u0142udnie",evening:"wiecz\xf3r",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"p\xf3\u0142noc",noon:"po\u0142udnie",morning:"rano",afternoon:"popo\u0142udnie",evening:"wiecz\xf3r",night:"noc"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"o p\xf3\u0142n.",noon:"w po\u0142.",morning:"rano",afternoon:"po po\u0142.",evening:"wiecz.",night:"w nocy"},abbreviated:{am:"AM",pm:"PM",midnight:"o p\xf3\u0142nocy",noon:"w po\u0142udnie",morning:"rano",afternoon:"po po\u0142udniu",evening:"wieczorem",night:"w nocy"},wide:{am:"AM",pm:"PM",midnight:"o p\xf3\u0142nocy",noon:"w po\u0142udnie",morning:"rano",afternoon:"po po\u0142udniu",evening:"wieczorem",night:"w nocy"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(\u0105|a)\s*er(\u0105|a)|naszej\s*ery)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^p/i,/^n/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(\u0142|l)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(\u017a|z)|lis|gru)/i,wide:/^(stycznia|stycze(\u0144|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(\u0144|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(\u0144|n)|wrze(\u015b|s)nia|wrzesie(\u0144|n)|pa(\u017a|z)dziernika|pa(\u017a|z)dziernik|listopada|listopad|grudnia|grudzie(\u0144|n))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[npw\u015bcs]/i,short:/^(nie|pon|wto|(\u015b|s)ro|czw|pi(\u0105|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(\u015b|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(\u0142|l)ek|wtorek|(\u015b|s)roda|czwartek|pi(\u0105|a)tek|sobota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^w/i,/^\u015b/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(\u015b|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(\u015b|s)r/i,/^c/i,/^pi/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{narrow:/^(^a$|^p$|p\xf3(\u0142|l)n\.?|o\s*p\xf3(\u0142|l)n\.?|po(\u0142|l)\.?|w\s*po(\u0142|l)\.?|po\s*po(\u0142|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|p\xf3(\u0142|l)noc|o\s*p\xf3(\u0142|l)nocy|po(\u0142|l)udnie|w\s*po(\u0142|l)udnie|popo(\u0142|l)udnie|po\s*po(\u0142|l)udniu|rano|wiecz\xf3r|wieczorem|noc|w\s*nocy)/i},defaultMatchWidth:"any",parsePatterns:{narrow:{am:/^a$/i,pm:/^p$/i,midnight:/p\xf3(\u0142|l)n/i,noon:/po(\u0142|l)/i,morning:/rano/i,afternoon:/po\s*po(\u0142|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/p\xf3(\u0142|l)n/i,noon:/po(\u0142|l)/i,morning:/rano/i,afternoon:/po\s*po(\u0142|l)/i,evening:/wiecz/i,night:/noc/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},bb={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 m\xeas",other:"cerca de {{count}} meses"},xMonths:{one:"1 m\xeas",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},H_={date:In({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:In({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} '\xe0s' {{time}}",long:"{{date}} '\xe0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Mb={lastWeek:ye=>{const ce=ye.getDay();return"'"+(0===ce||6===ce?"\xfaltimo":"\xfaltima")+"' eeee '\xe0s' p"},yesterday:"'ontem \xe0s' p",today:"'hoje \xe0s' p",tomorrow:"'amanh\xe3 \xe0s' p",nextWeek:"eeee '\xe0s' p",other:"P"},YE={code:"pt-BR",formatDistance:(ye,ce,oe)=>{let Re;const Dt=bb[ye];return Re="string"==typeof Dt?Dt:1===ce?Dt.one:Dt.other.replace("{{count}}",String(ce)),oe?.addSuffix?oe.comparison&&oe.comparison>0?"em "+Re:"h\xe1 "+Re:Re},formatLong:H_,formatRelative:(ye,ce,oe,Re)=>{const Dt=Mb[ye];return"function"==typeof Dt?Dt(ce):Dt},localize:{ordinalNumber:(ye,ce)=>{const oe=Number(ye);return"week"===ce?.unit?oe+"\xaa":oe+"\xba"},era:Ct({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:Ct({values:{narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","ter\xe7a","quarta","quinta","sexta","s\xe1bado"],wide:["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)[\xba\xaao]?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](\xba)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|mar\xe7o|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^(dom|[23456]\xaa?|s[a\xe1]b)/i,short:/^(dom|[23456]\xaa?|s[a\xe1]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[a\xe1]b)/i,wide:/^(domingo|(segunda|ter[c\xe7]a|quarta|quinta|sexta)([- ]feira)?|s[a\xe1]bado)/i},defaultMatchWidth:"wide",parsePatterns:{short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[a\xe1]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[a\xe1]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[a\xe1]b/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{narrow:/^(a|p|mn|md|(da) (manh\xe3|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manh\xe3|tarde|noite))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manh\xe3/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},XE={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 m\xeas",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 m\xeas",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},e1={date:In({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},defaultWidth:"full"}),time:In({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} '\xe0s' {{time}}",long:"{{date}} '\xe0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},t1={lastWeek:ye=>{const ce=ye.getDay();return"'"+(0===ce||6===ce?"\xfaltimo":"\xfaltima")+"' eeee '\xe0s' p"},yesterday:"'ontem \xe0s' p",today:"'hoje \xe0s' p",tomorrow:"'amanh\xe3 \xe0s' p",nextWeek:"eeee '\xe0s' p",other:"P"},vM={code:"pt",formatDistance:(ye,ce,oe)=>{let Re;const Dt=XE[ye];return Re="string"==typeof Dt?Dt:1===ce?Dt.one:Dt.other.replace("{{count}}",String(ce)),oe?.addSuffix?oe.comparison&&oe.comparison>0?"daqui a "+Re:"h\xe1 "+Re:Re},formatLong:e1,formatRelative:(ye,ce,oe,Re)=>{const Dt=t1[ye];return"function"==typeof Dt?Dt(ce):Dt},localize:{ordinalNumber:(ye,ce)=>Number(ye)+"\xba",era:Ct({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:Ct({values:{narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","s\xe1b"],abbreviated:["dom","seg","ter","qua","qui","sex","s\xe1b"],wide:["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"noite",night:"madrugada"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)(\xba|\xaa)?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](\xba|\xaa)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|mar\xe7o|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[\xe1a]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[\xe1a]b)/i,wide:/^(domingo|segunda-?\s?feira|ter\xe7a-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[\xe1a]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[\xe1a]/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[\xe3a]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[\xe3a]|tarde|noite|madrugada))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[\xe3a]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},_M={lessThanXSeconds:{one:"mai pu\u021bin de o secund\u0103",other:"mai pu\u021bin de {{count}} secunde"},xSeconds:{one:"1 secund\u0103",other:"{{count}} secunde"},halfAMinute:"jum\u0103tate de minut",lessThanXMinutes:{one:"mai pu\u021bin de un minut",other:"mai pu\u021bin de {{count}} minute"},xMinutes:{one:"1 minut",other:"{{count}} minute"},aboutXHours:{one:"circa 1 or\u0103",other:"circa {{count}} ore"},xHours:{one:"1 or\u0103",other:"{{count}} ore"},xDays:{one:"1 zi",other:"{{count}} zile"},aboutXWeeks:{one:"circa o s\u0103pt\u0103m\xe2n\u0103",other:"circa {{count}} s\u0103pt\u0103m\xe2ni"},xWeeks:{one:"1 s\u0103pt\u0103m\xe2n\u0103",other:"{{count}} s\u0103pt\u0103m\xe2ni"},aboutXMonths:{one:"circa 1 lun\u0103",other:"circa {{count}} luni"},xMonths:{one:"1 lun\u0103",other:"{{count}} luni"},aboutXYears:{one:"circa 1 an",other:"circa {{count}} ani"},xYears:{one:"1 an",other:"{{count}} ani"},overXYears:{one:"peste 1 an",other:"peste {{count}} ani"},almostXYears:{one:"aproape 1 an",other:"aproape {{count}} ani"}},MM={date:In({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:In({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} 'la' {{time}}",long:"{{date}} 'la' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},PM={lastWeek:"eeee 'trecut\u0103 la' p",yesterday:"'ieri la' p",today:"'ast\u0103zi la' p",tomorrow:"'m\xe2ine la' p",nextWeek:"eeee 'viitoare la' p",other:"P"},u1={code:"ro",formatDistance:(ye,ce,oe)=>{let Re;const Dt=_M[ye];return Re="string"==typeof Dt?Dt:1===ce?Dt.one:Dt.other.replace("{{count}}",String(ce)),oe?.addSuffix?oe.comparison&&oe.comparison>0?"\xeen "+Re:Re+" \xeen urm\u0103":Re},formatLong:MM,formatRelative:(ye,ce,oe,Re)=>PM[ye],localize:{ordinalNumber:(ye,ce)=>String(ye),era:Ct({values:{narrow:["\xce","D"],abbreviated:["\xce.d.C.","D.C."],wide:["\xcenainte de Cristos","Dup\u0103 Cristos"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["primul trimestru","al doilea trimestru","al treilea trimestru","al patrulea trimestru"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["I","F","M","A","M","I","I","A","S","O","N","D"],abbreviated:["ian","feb","mar","apr","mai","iun","iul","aug","sep","oct","noi","dec"],wide:["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"]},defaultWidth:"wide"}),day:Ct({values:{narrow:["d","l","m","m","j","v","s"],short:["du","lu","ma","mi","jo","vi","s\xe2"],abbreviated:["dum","lun","mar","mie","joi","vin","s\xe2m"],wide:["duminic\u0103","luni","mar\u021bi","miercuri","joi","vineri","s\xe2mb\u0103t\u0103"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"ami",morning:"dim",afternoon:"da",evening:"s",night:"n"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nop\u021bii",noon:"amiaz\u0103",morning:"diminea\u021b\u0103",afternoon:"dup\u0103-amiaz\u0103",evening:"sear\u0103",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nop\u021bii",noon:"amiaz\u0103",morning:"diminea\u021b\u0103",afternoon:"dup\u0103-amiaz\u0103",evening:"sear\u0103",night:"noapte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"amiaz\u0103",morning:"diminea\u021b\u0103",afternoon:"dup\u0103-amiaz\u0103",evening:"sear\u0103",night:"noapte"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nop\u021bii",noon:"amiaz\u0103",morning:"diminea\u021b\u0103",afternoon:"dup\u0103-amiaz\u0103",evening:"sear\u0103",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nop\u021bii",noon:"amiaz\u0103",morning:"diminea\u021b\u0103",afternoon:"dup\u0103-amiaz\u0103",evening:"sear\u0103",night:"noapte"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^(\xce|D)/i,abbreviated:/^(\xce\.?\s?d\.?\s?C\.?|\xce\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i,wide:/^(\xcenainte de Cristos|\xcenaintea erei noastre|Dup\u0103 Cristos|Era noastr\u0103)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\xceC/i,/^DC/i],wide:[/^(\xcenainte de Cristos|\xcenaintea erei noastre)/i,/^(Dup\u0103 Cristos|Era noastr\u0103)/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^trimestrul [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[ifmaasond]/i,abbreviated:/^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i,wide:/^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^i/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ia/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^iun/i,/^iul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(d|l|ma|mi|j|v|s)/i,abbreviated:/^(dum|lun|mar|mie|jo|vi|s\xe2)/i,wide:/^(duminica|luni|mar\u0163i|miercuri|joi|vineri|s\xe2mb\u0103t\u0103)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^mi/i,/^j/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{narrow:/^(a|p|mn|a|(diminea\u0163a|dup\u0103-amiaza|seara|noaptea))/i,any:/^([ap]\.?\s?m\.?|miezul nop\u021bii|amiaza|(diminea\u0163a|dup\u0103-amiaza|seara|noaptea))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/amiaza/i,morning:/diminea\u0163a/i,afternoon:/dup\u0103-amiaza/i,evening:/seara/i,night:/noaptea/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}};function Hm(ye,ce){if(void 0!==ye.one&&1===ce)return ye.one;const oe=ce%10,Re=ce%100;return 1===oe&&11!==Re?ye.singularNominative.replace("{{count}}",String(ce)):oe>=2&&oe<=4&&(Re<10||Re>20)?ye.singularGenitive.replace("{{count}}",String(ce)):ye.pluralGenitive.replace("{{count}}",String(ce))}function $c(ye){return(ce,oe)=>oe?.addSuffix?oe.comparison&&oe.comparison>0?ye.future?Hm(ye.future,ce):"\u0447\u0435\u0440\u0435\u0437 "+Hm(ye.regular,ce):ye.past?Hm(ye.past,ce):Hm(ye.regular,ce)+" \u043d\u0430\u0437\u0430\u0434":Hm(ye.regular,ce)}const Q_={lessThanXSeconds:$c({regular:{one:"\u043c\u0435\u043d\u044c\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u044b",singularNominative:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",singularGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434",pluralGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},future:{one:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularNominative:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"}}),xSeconds:$c({regular:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0430",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},past:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043d\u0430\u0437\u0430\u0434",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043d\u0430\u0437\u0430\u0434",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434 \u043d\u0430\u0437\u0430\u0434"},future:{singularNominative:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"}}),halfAMinute:(ye,ce)=>ce?.addSuffix?ce.comparison&&ce.comparison>0?"\u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u043b\u043c\u0438\u043d\u0443\u0442\u044b":"\u043f\u043e\u043b\u043c\u0438\u043d\u0443\u0442\u044b \u043d\u0430\u0437\u0430\u0434":"\u043f\u043e\u043b\u043c\u0438\u043d\u0443\u0442\u044b",lessThanXMinutes:$c({regular:{one:"\u043c\u0435\u043d\u044c\u0448\u0435 \u043c\u0438\u043d\u0443\u0442\u044b",singularNominative:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442\u044b",singularGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442",pluralGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442"},future:{one:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u043c\u0438\u043d\u0443\u0442\u0443",singularNominative:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442\u0443",singularGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442\u044b",pluralGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442"}}),xMinutes:$c({regular:{singularNominative:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0430",singularGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442\u044b",pluralGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442"},past:{singularNominative:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0443 \u043d\u0430\u0437\u0430\u0434",singularGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442\u044b \u043d\u0430\u0437\u0430\u0434",pluralGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442 \u043d\u0430\u0437\u0430\u0434"},future:{singularNominative:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442\u0443",singularGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442\u044b",pluralGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442"}}),aboutXHours:$c({regular:{singularNominative:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0447\u0430\u0441\u0430",singularGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0447\u0430\u0441\u043e\u0432",pluralGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0447\u0430\u0441\u043e\u0432"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441\u0430",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441\u043e\u0432"}}),xHours:$c({regular:{singularNominative:"{{count}} \u0447\u0430\u0441",singularGenitive:"{{count}} \u0447\u0430\u0441\u0430",pluralGenitive:"{{count}} \u0447\u0430\u0441\u043e\u0432"}}),xDays:$c({regular:{singularNominative:"{{count}} \u0434\u0435\u043d\u044c",singularGenitive:"{{count}} \u0434\u043d\u044f",pluralGenitive:"{{count}} \u0434\u043d\u0435\u0439"}}),aboutXWeeks:$c({regular:{singularNominative:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043d\u0435\u0434\u0435\u043b\u0438",singularGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043d\u0435\u0434\u0435\u043b\u044c",pluralGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043d\u0435\u0434\u0435\u043b\u044c"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043d\u0435\u0434\u0435\u043b\u044e",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043d\u0435\u0434\u0435\u043b\u0438",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043d\u0435\u0434\u0435\u043b\u044c"}}),xWeeks:$c({regular:{singularNominative:"{{count}} \u043d\u0435\u0434\u0435\u043b\u044f",singularGenitive:"{{count}} \u043d\u0435\u0434\u0435\u043b\u0438",pluralGenitive:"{{count}} \u043d\u0435\u0434\u0435\u043b\u044c"}}),aboutXMonths:$c({regular:{singularNominative:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043c\u0435\u0441\u044f\u0446\u0430",singularGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432",pluralGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446\u0430",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432"}}),xMonths:$c({regular:{singularNominative:"{{count}} \u043c\u0435\u0441\u044f\u0446",singularGenitive:"{{count}} \u043c\u0435\u0441\u044f\u0446\u0430",pluralGenitive:"{{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432"}}),aboutXYears:$c({regular:{singularNominative:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0433\u043e\u0434\u0430",singularGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043b\u0435\u0442",pluralGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043b\u0435\u0442"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043b\u0435\u0442"}}),xYears:$c({regular:{singularNominative:"{{count}} \u0433\u043e\u0434",singularGenitive:"{{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"{{count}} \u043b\u0435\u0442"}}),overXYears:$c({regular:{singularNominative:"\u0431\u043e\u043b\u044c\u0448\u0435 {{count}} \u0433\u043e\u0434\u0430",singularGenitive:"\u0431\u043e\u043b\u044c\u0448\u0435 {{count}} \u043b\u0435\u0442",pluralGenitive:"\u0431\u043e\u043b\u044c\u0448\u0435 {{count}} \u043b\u0435\u0442"},future:{singularNominative:"\u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434",singularGenitive:"\u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"\u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u043b\u0435\u0442"}}),almostXYears:$c({regular:{singularNominative:"\u043f\u043e\u0447\u0442\u0438 {{count}} \u0433\u043e\u0434",singularGenitive:"\u043f\u043e\u0447\u0442\u0438 {{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"\u043f\u043e\u0447\u0442\u0438 {{count}} \u043b\u0435\u0442"},future:{singularNominative:"\u043f\u043e\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434",singularGenitive:"\u043f\u043e\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"\u043f\u043e\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u043b\u0435\u0442"}})},Qh={date:In({formats:{full:"EEEE, d MMMM y '\u0433.'",long:"d MMMM y '\u0433.'",medium:"d MMM y '\u0433.'",short:"dd.MM.y"},defaultWidth:"full"}),time:In({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:In({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},rp=["\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u0435\u0434\u0443","\u0447\u0435\u0442\u0432\u0435\u0440\u0433","\u043f\u044f\u0442\u043d\u0438\u0446\u0443","\u0441\u0443\u0431\u0431\u043e\u0442\u0443"];function op(ye){const ce=rp[ye];return 2===ye?"'\u0432\u043e "+ce+" \u0432' p":"'\u0432 "+ce+" \u0432' p"}const sp={lastWeek:(ye,ce,oe)=>{const Re=ye.getDay();return Bl(ye,ce,oe)?op(Re):function bd(ye){const ce=rp[ye];switch(ye){case 0:return"'\u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u0435 "+ce+" \u0432' p";case 1:case 2:case 4:return"'\u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 "+ce+" \u0432' p";case 3:case 5:case 6:return"'\u0432 \u043f\u0440\u043e\u0448\u043b\u0443\u044e "+ce+" \u0432' p"}}(Re)},yesterday:"'\u0432\u0447\u0435\u0440\u0430 \u0432' p",today:"'\u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0432' p",tomorrow:"'\u0437\u0430\u0432\u0442\u0440\u0430 \u0432' p",nextWeek:(ye,ce,oe)=>{const Re=ye.getDay();return Bl(ye,ce,oe)?op(Re):function RM(ye){const ce=rp[ye];switch(ye){case 0:return"'\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 "+ce+" \u0432' p";case 1:case 2:case 4:return"'\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 "+ce+" \u0432' p";case 3:case 5:case 6:return"'\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e "+ce+" \u0432' p"}}(Re)},other:"P"},FM={code:"ru",formatDistance:(ye,ce,oe)=>Q_[ye](ce,oe),formatLong:Qh,formatRelative:(ye,ce,oe,Re)=>{const Dt=sp[ye];return"function"==typeof Dt?Dt(ce,oe,Re):Dt},localize:{ordinalNumber:(ye,ce)=>{const oe=Number(ye),Re=ce?.unit;let Dt;return Dt="date"===Re?"-\u0435":"week"===Re||"minute"===Re||"second"===Re?"-\u044f":"-\u0439",oe+Dt},era:Ct({values:{narrow:["\u0434\u043e \u043d.\u044d.","\u043d.\u044d."],abbreviated:["\u0434\u043e \u043d. \u044d.","\u043d. \u044d."],wide:["\u0434\u043e \u043d\u0430\u0448\u0435\u0439 \u044d\u0440\u044b","\u043d\u0430\u0448\u0435\u0439 \u044d\u0440\u044b"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["1-\u0439 \u043a\u0432.","2-\u0439 \u043a\u0432.","3-\u0439 \u043a\u0432.","4-\u0439 \u043a\u0432."],wide:["1-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","2-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","3-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","4-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["\u042f","\u0424","\u041c","\u0410","\u041c","\u0418","\u0418","\u0410","\u0421","\u041e","\u041d","\u0414"],abbreviated:["\u044f\u043d\u0432.","\u0444\u0435\u0432.","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440.","\u043c\u0430\u0439","\u0438\u044e\u043d\u044c","\u0438\u044e\u043b\u044c","\u0430\u0432\u0433.","\u0441\u0435\u043d\u0442.","\u043e\u043a\u0442.","\u043d\u043e\u044f\u0431.","\u0434\u0435\u043a."],wide:["\u044f\u043d\u0432\u0430\u0440\u044c","\u0444\u0435\u0432\u0440\u0430\u043b\u044c","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440\u0435\u043b\u044c","\u043c\u0430\u0439","\u0438\u044e\u043d\u044c","\u0438\u044e\u043b\u044c","\u0430\u0432\u0433\u0443\u0441\u0442","\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c","\u043e\u043a\u0442\u044f\u0431\u0440\u044c","\u043d\u043e\u044f\u0431\u0440\u044c","\u0434\u0435\u043a\u0430\u0431\u0440\u044c"]},defaultWidth:"wide",formattingValues:{narrow:["\u042f","\u0424","\u041c","\u0410","\u041c","\u0418","\u0418","\u0410","\u0421","\u041e","\u041d","\u0414"],abbreviated:["\u044f\u043d\u0432.","\u0444\u0435\u0432.","\u043c\u0430\u0440.","\u0430\u043f\u0440.","\u043c\u0430\u044f","\u0438\u044e\u043d.","\u0438\u044e\u043b.","\u0430\u0432\u0433.","\u0441\u0435\u043d\u0442.","\u043e\u043a\u0442.","\u043d\u043e\u044f\u0431.","\u0434\u0435\u043a."],wide:["\u044f\u043d\u0432\u0430\u0440\u044f","\u0444\u0435\u0432\u0440\u0430\u043b\u044f","\u043c\u0430\u0440\u0442\u0430","\u0430\u043f\u0440\u0435\u043b\u044f","\u043c\u0430\u044f","\u0438\u044e\u043d\u044f","\u0438\u044e\u043b\u044f","\u0430\u0432\u0433\u0443\u0441\u0442\u0430","\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f","\u043e\u043a\u0442\u044f\u0431\u0440\u044f","\u043d\u043e\u044f\u0431\u0440\u044f","\u0434\u0435\u043a\u0430\u0431\u0440\u044f"]},defaultFormattingWidth:"wide"}),day:Ct({values:{narrow:["\u0412","\u041f","\u0412","\u0421","\u0427","\u041f","\u0421"],short:["\u0432\u0441","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"],abbreviated:["\u0432\u0441\u043a","\u043f\u043d\u0434","\u0432\u0442\u0440","\u0441\u0440\u0434","\u0447\u0442\u0432","\u043f\u0442\u043d","\u0441\u0443\u0431"],wide:["\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440\u0433","\u043f\u044f\u0442\u043d\u0438\u0446\u0430","\u0441\u0443\u0431\u0431\u043e\u0442\u0430"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d.",noon:"\u043f\u043e\u043b\u0434.",morning:"\u0443\u0442\u0440\u043e",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u044c"},abbreviated:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d.",noon:"\u043f\u043e\u043b\u0434.",morning:"\u0443\u0442\u0440\u043e",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u044c"},wide:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d\u043e\u0447\u044c",noon:"\u043f\u043e\u043b\u0434\u0435\u043d\u044c",morning:"\u0443\u0442\u0440\u043e",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447\u0435\u0440",night:"\u043d\u043e\u0447\u044c"}},defaultWidth:"any",formattingValues:{narrow:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d.",noon:"\u043f\u043e\u043b\u0434.",morning:"\u0443\u0442\u0440\u0430",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u0438"},abbreviated:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d.",noon:"\u043f\u043e\u043b\u0434.",morning:"\u0443\u0442\u0440\u0430",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u0438"},wide:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d\u043e\u0447\u044c",noon:"\u043f\u043e\u043b\u0434\u0435\u043d\u044c",morning:"\u0443\u0442\u0440\u0430",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447\u0435\u0440\u0430",night:"\u043d\u043e\u0447\u0438"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)(-?(\u0435|\u044f|\u0439|\u043e\u0435|\u044c\u0435|\u0430\u044f|\u044c\u044f|\u044b\u0439|\u043e\u0439|\u0438\u0439|\u044b\u0439))?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^((\u0434\u043e )?\u043d\.?\s?\u044d\.?)/i,abbreviated:/^((\u0434\u043e )?\u043d\.?\s?\u044d\.?)/i,wide:/^(\u0434\u043e \u043d\u0430\u0448\u0435\u0439 \u044d\u0440\u044b|\u043d\u0430\u0448\u0435\u0439 \u044d\u0440\u044b|\u043d\u0430\u0448\u0430 \u044d\u0440\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0434/i,/^\u043d/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[\u044b\u043e\u0438]?\u0439?)? \u043a\u0432.?/i,wide:/^[1234](-?[\u044b\u043e\u0438]?\u0439?)? \u043a\u0432\u0430\u0440\u0442\u0430\u043b/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[\u044f\u0444\u043c\u0430\u0438\u0441\u043e\u043d\u0434]/i,abbreviated:/^(\u044f\u043d\u0432|\u0444\u0435\u0432|\u043c\u0430\u0440\u0442?|\u0430\u043f\u0440|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]?|\u0438\u044e\u043b[\u044c\u044f]?|\u0430\u0432\u0433|\u0441\u0435\u043d\u0442?|\u043e\u043a\u0442|\u043d\u043e\u044f\u0431?|\u0434\u0435\u043a)\.?/i,wide:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043b[\u044c\u044f]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u044f/i,/^\u0444/i,/^\u043c/i,/^\u0430/i,/^\u043c/i,/^\u0438/i,/^\u0438/i,/^\u0430/i,/^\u0441/i,/^\u043e/i,/^\u043d/i,/^\u044f/i],any:[/^\u044f/i,/^\u0444/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432/i,/^\u0441/i,/^\u043e/i,/^\u043d/i,/^\u0434/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[\u0432\u043f\u0441\u0447]/i,short:/^(\u0432\u0441|\u0432\u043e|\u043f\u043d|\u043f\u043e|\u0432\u0442|\u0441\u0440|\u0447\u0442|\u0447\u0435|\u043f\u0442|\u043f\u044f|\u0441\u0431|\u0441\u0443)\.?/i,abbreviated:/^(\u0432\u0441\u043a|\u0432\u043e\u0441|\u043f\u043d\u0434|\u043f\u043e\u043d|\u0432\u0442\u0440|\u0432\u0442\u043e|\u0441\u0440\u0434|\u0441\u0440\u0435|\u0447\u0442\u0432|\u0447\u0435\u0442|\u043f\u0442\u043d|\u043f\u044f\u0442|\u0441\u0443\u0431).?/i,wide:/^(\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c[\u0435\u044f]|\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a\u0430?|\u0432\u0442\u043e\u0440\u043d\u0438\u043a\u0430?|\u0441\u0440\u0435\u0434[\u0430\u044b]|\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430?|\u043f\u044f\u0442\u043d\u0438\u0446[\u0430\u044b]|\u0441\u0443\u0431\u0431\u043e\u0442[\u0430\u044b])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0432/i,/^\u043f/i,/^\u0432/i,/^\u0441/i,/^\u0447/i,/^\u043f/i,/^\u0441/i],any:[/^\u0432[\u043e\u0441]/i,/^\u043f[\u043e\u043d]/i,/^\u0432/i,/^\u0441\u0440/i,/^\u0447/i,/^\u043f[\u044f\u0442]/i,/^\u0441[\u0443\u0431]/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{narrow:/^([\u0434\u043f]\u043f|\u043f\u043e\u043b\u043d\.?|\u043f\u043e\u043b\u0434\.?|\u0443\u0442\u0440[\u043e\u0430]|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\.?|\u043d\u043e\u0447[\u044c\u0438])/i,abbreviated:/^([\u0434\u043f]\u043f|\u043f\u043e\u043b\u043d\.?|\u043f\u043e\u043b\u0434\.?|\u0443\u0442\u0440[\u043e\u0430]|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\.?|\u043d\u043e\u0447[\u044c\u0438])/i,wide:/^([\u0434\u043f]\u043f|\u043f\u043e\u043b\u043d\u043e\u0447\u044c|\u043f\u043e\u043b\u0434\u0435\u043d\u044c|\u0443\u0442\u0440[\u043e\u0430]|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430?|\u043d\u043e\u0447[\u044c\u0438])/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^\u0434\u043f/i,pm:/^\u043f\u043f/i,midnight:/^\u043f\u043e\u043b\u043d/i,noon:/^\u043f\u043e\u043b\u0434/i,morning:/^\u0443/i,afternoon:/^\u0434[\u0435\u043d]/i,evening:/^\u0432/i,night:/^\u043d/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}};function Dv(ye,ce,oe){return function J_(ye,ce){return 1===ce&&ye.one?ye.one:ce>=2&&ce<=4&&ye.twoFour?ye.twoFour:ye.other}(ye,ce)[oe].replace("{{count}}",String(ce))}function q_(ye){let ce="";return"almost"===ye&&(ce="takmer"),"about"===ye&&(ce="pribli\u017ene"),ce.length>0?ce+" ":""}function Qb(ye){let ce="";return"lessThan"===ye&&(ce="menej ne\u017e"),"over"===ye&&(ce="viac ne\u017e"),ce.length>0?ce+" ":""}const Lv={xSeconds:{one:{present:"sekunda",past:"sekundou",future:"sekundu"},twoFour:{present:"{{count}} sekundy",past:"{{count}} sekundami",future:"{{count}} sekundy"},other:{present:"{{count}} sek\xfand",past:"{{count}} sekundami",future:"{{count}} sek\xfand"}},halfAMinute:{other:{present:"pol min\xfaty",past:"pol min\xfatou",future:"pol min\xfaty"}},xMinutes:{one:{present:"min\xfata",past:"min\xfatou",future:"min\xfatu"},twoFour:{present:"{{count}} min\xfaty",past:"{{count}} min\xfatami",future:"{{count}} min\xfaty"},other:{present:"{{count}} min\xfat",past:"{{count}} min\xfatami",future:"{{count}} min\xfat"}},xHours:{one:{present:"hodina",past:"hodinou",future:"hodinu"},twoFour:{present:"{{count}} hodiny",past:"{{count}} hodinami",future:"{{count}} hodiny"},other:{present:"{{count}} hod\xedn",past:"{{count}} hodinami",future:"{{count}} hod\xedn"}},xDays:{one:{present:"de\u0148",past:"d\u0148om",future:"de\u0148"},twoFour:{present:"{{count}} dni",past:"{{count}} d\u0148ami",future:"{{count}} dni"},other:{present:"{{count}} dn\xed",past:"{{count}} d\u0148ami",future:"{{count}} dn\xed"}},xWeeks:{one:{present:"t\xfd\u017ede\u0148",past:"t\xfd\u017ed\u0148om",future:"t\xfd\u017ede\u0148"},twoFour:{present:"{{count}} t\xfd\u017edne",past:"{{count}} t\xfd\u017ed\u0148ami",future:"{{count}} t\xfd\u017edne"},other:{present:"{{count}} t\xfd\u017ed\u0148ov",past:"{{count}} t\xfd\u017ed\u0148ami",future:"{{count}} t\xfd\u017ed\u0148ov"}},xMonths:{one:{present:"mesiac",past:"mesiacom",future:"mesiac"},twoFour:{present:"{{count}} mesiace",past:"{{count}} mesiacmi",future:"{{count}} mesiace"},other:{present:"{{count}} mesiacov",past:"{{count}} mesiacmi",future:"{{count}} mesiacov"}},xYears:{one:{present:"rok",past:"rokom",future:"rok"},twoFour:{present:"{{count}} roky",past:"{{count}} rokmi",future:"{{count}} roky"},other:{present:"{{count}} rokov",past:"{{count}} rokmi",future:"{{count}} rokov"}}},Jb={date:In({formats:{full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. M. y",short:"d. M. y"},defaultWidth:"full"}),time:In({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}}, {{time}}",long:"{{date}}, {{time}}",medium:"{{date}}, {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},lh=["nede\u013eu","pondelok","utorok","stredu","\u0161tvrtok","piatok","sobotu"];function Nv(ye){return 4===ye?"'vo' eeee 'o' p":"'v "+lh[ye]+" o' p"}const eS={lastWeek:(ye,ce,oe)=>{const Re=ye.getDay();return Bl(ye,ce,oe)?Nv(Re):function nC(ye){const ce=lh[ye];switch(ye){case 0:case 3:case 6:return"'minul\xfa "+ce+" o' p";default:return"'minul\xfd' eeee 'o' p"}}(Re)},yesterday:"'v\u010dera o' p",today:"'dnes o' p",tomorrow:"'zajtra o' p",nextWeek:(ye,ce,oe)=>{const Re=ye.getDay();return Bl(ye,ce,oe)?Nv(Re):function qb(ye){const ce=lh[ye];switch(ye){case 0:case 4:case 6:return"'bud\xfacu "+ce+" o' p";default:return"'bud\xfaci' eeee 'o' p"}}(Re)},other:"P"},tP={code:"sk",formatDistance:(ye,ce,oe)=>{const Re=function Xb(ye){return["lessThan","about","over","almost"].filter(function(oe){return!!ye.match(new RegExp("^"+oe))})[0]}(ye)||"",Dt=function UM(ye){return ye.charAt(0).toLowerCase()+ye.slice(1)}(ye.substring(Re.length)),ni=Lv[Dt];return oe?.addSuffix?oe.comparison&&oe.comparison>0?q_(Re)+"o "+Qb(Re)+Dv(ni,ce,"future"):q_(Re)+"pred "+Qb(Re)+Dv(ni,ce,"past"):q_(Re)+Qb(Re)+Dv(ni,ce,"present")},formatLong:Jb,formatRelative:(ye,ce,oe,Re)=>{const Dt=eS[ye];return"function"==typeof Dt?Dt(ce,oe,Re):Dt},localize:{ordinalNumber:(ye,ce)=>Number(ye)+".",era:Ct({values:{narrow:["pred Kr.","po Kr."],abbreviated:["pred Kr.","po Kr."],wide:["pred Kristom","po Kristovi"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. \u0161tvr\u0165rok","2. \u0161tvr\u0165rok","3. \u0161tvr\u0165rok","4. \u0161tvr\u0165rok"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","m\xe1j","j\xfan","j\xfal","aug","sep","okt","nov","dec"],wide:["janu\xe1r","febru\xe1r","marec","apr\xedl","m\xe1j","j\xfan","j\xfal","august","september","okt\xf3ber","november","december"]},defaultWidth:"wide",formattingValues:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","m\xe1j","j\xfan","j\xfal","aug","sep","okt","nov","dec"],wide:["janu\xe1ra","febru\xe1ra","marca","apr\xedla","m\xe1ja","j\xfana","j\xfala","augusta","septembra","okt\xf3bra","novembra","decembra"]},defaultFormattingWidth:"wide"}),day:Ct({values:{narrow:["n","p","u","s","\u0161","p","s"],short:["ne","po","ut","st","\u0161t","pi","so"],abbreviated:["ne","po","ut","st","\u0161t","pi","so"],wide:["nede\u013ea","pondelok","utorok","streda","\u0161tvrtok","piatok","sobota"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"r\xe1no",afternoon:"pop.",evening:"ve\u010d.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"r\xe1no",afternoon:"popol.",evening:"ve\u010der",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"polnoc",noon:"poludnie",morning:"r\xe1no",afternoon:"popoludnie",evening:"ve\u010der",night:"noc"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"o poln.",noon:"nap.",morning:"r\xe1no",afternoon:"pop.",evening:"ve\u010d.",night:"v n."},abbreviated:{am:"AM",pm:"PM",midnight:"o poln.",noon:"napol.",morning:"r\xe1no",afternoon:"popol.",evening:"ve\u010der",night:"v noci"},wide:{am:"AM",pm:"PM",midnight:"o polnoci",noon:"napoludnie",morning:"r\xe1no",afternoon:"popoludn\xed",evening:"ve\u010der",night:"v noci"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(pred Kristom|pred na[\u0161s][\xedi]m letopo[\u010dc]tom|po Kristovi|n[\xe1a][\u0161s]ho letopo[\u010dc]tu)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|n)/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\. [\u0161s]tvr[\u0165t]rok/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|m[\xe1a]j|j[\xfau]n|j[\xfau]l|aug|sep|okt|nov|dec)/i,wide:/^(janu[\xe1a]ra?|febru[\xe1a]ra?|(marec|marca)|apr[\xedi]la?|m[\xe1a]ja?|j[\xfau]na?|j[\xfau]la?|augusta?|(september|septembra)|(okt[\xf3o]ber|okt[\xf3o]bra)|(november|novembra)|(december|decembra))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^m[\xe1a]j/i,/^j[\xfau]n/i,/^j[\xfau]l/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[npus\u0161p]/i,short:/^(ne|po|ut|st|\u0161t|pi|so)/i,abbreviated:/^(ne|po|ut|st|\u0161t|pi|so)/i,wide:/^(nede[\u013el]a|pondelok|utorok|streda|[\u0161s]tvrtok|piatok|sobota])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^u/i,/^s/i,/^\u0161/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^u/i,/^st/i,/^(\u0161t|stv)/i,/^pi/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[\xe1a]no|pop\.?|ve[\u010dc]\.?|(v n\.?|noc))/i,abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[\xe1a]no|pop\.?|ve[\u010dc]er|(v )?noci?)/i,any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[\xe1a]no|popoludn(ie|\xed|i)|ve[\u010dc]er|(v )?noci?)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/poln/i,noon:/^(nap|(na)?pol(\.|u))/i,morning:/^r[\xe1a]no/i,afternoon:/^pop/i,evening:/^ve[\u010dc]/i,night:/^(noc|v n\.)/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},iP={lessThanXSeconds:{present:{one:"manj kot {{count}} sekunda",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"},past:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundama",few:"manj kot {{count}} sekundami",other:"manj kot {{count}} sekundami"},future:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"}},xSeconds:{present:{one:"{{count}} sekunda",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"},past:{one:"{{count}} sekundo",two:"{{count}} sekundama",few:"{{count}} sekundami",other:"{{count}} sekundami"},future:{one:"{{count}} sekundo",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"}},halfAMinute:"pol minute",lessThanXMinutes:{present:{one:"manj kot {{count}} minuta",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"},past:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minutama",few:"manj kot {{count}} minutami",other:"manj kot {{count}} minutami"},future:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"}},xMinutes:{present:{one:"{{count}} minuta",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"},past:{one:"{{count}} minuto",two:"{{count}} minutama",few:"{{count}} minutami",other:"{{count}} minutami"},future:{one:"{{count}} minuto",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"}},aboutXHours:{present:{one:"pribli\u017eno {{count}} ura",two:"pribli\u017eno {{count}} uri",few:"pribli\u017eno {{count}} ure",other:"pribli\u017eno {{count}} ur"},past:{one:"pribli\u017eno {{count}} uro",two:"pribli\u017eno {{count}} urama",few:"pribli\u017eno {{count}} urami",other:"pribli\u017eno {{count}} urami"},future:{one:"pribli\u017eno {{count}} uro",two:"pribli\u017eno {{count}} uri",few:"pribli\u017eno {{count}} ure",other:"pribli\u017eno {{count}} ur"}},xHours:{present:{one:"{{count}} ura",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"},past:{one:"{{count}} uro",two:"{{count}} urama",few:"{{count}} urami",other:"{{count}} urami"},future:{one:"{{count}} uro",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"}},xDays:{present:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"},past:{one:"{{count}} dnem",two:"{{count}} dnevoma",few:"{{count}} dnevi",other:"{{count}} dnevi"},future:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"}},aboutXWeeks:{one:"pribli\u017eno {{count}} teden",two:"pribli\u017eno {{count}} tedna",few:"pribli\u017eno {{count}} tedne",other:"pribli\u017eno {{count}} tednov"},xWeeks:{one:"{{count}} teden",two:"{{count}} tedna",few:"{{count}} tedne",other:"{{count}} tednov"},aboutXMonths:{present:{one:"pribli\u017eno {{count}} mesec",two:"pribli\u017eno {{count}} meseca",few:"pribli\u017eno {{count}} mesece",other:"pribli\u017eno {{count}} mesecev"},past:{one:"pribli\u017eno {{count}} mesecem",two:"pribli\u017eno {{count}} mesecema",few:"pribli\u017eno {{count}} meseci",other:"pribli\u017eno {{count}} meseci"},future:{one:"pribli\u017eno {{count}} mesec",two:"pribli\u017eno {{count}} meseca",few:"pribli\u017eno {{count}} mesece",other:"pribli\u017eno {{count}} mesecev"}},xMonths:{present:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} meseci",other:"{{count}} mesecev"},past:{one:"{{count}} mesecem",two:"{{count}} mesecema",few:"{{count}} meseci",other:"{{count}} meseci"},future:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} mesece",other:"{{count}} mesecev"}},aboutXYears:{present:{one:"pribli\u017eno {{count}} leto",two:"pribli\u017eno {{count}} leti",few:"pribli\u017eno {{count}} leta",other:"pribli\u017eno {{count}} let"},past:{one:"pribli\u017eno {{count}} letom",two:"pribli\u017eno {{count}} letoma",few:"pribli\u017eno {{count}} leti",other:"pribli\u017eno {{count}} leti"},future:{one:"pribli\u017eno {{count}} leto",two:"pribli\u017eno {{count}} leti",few:"pribli\u017eno {{count}} leta",other:"pribli\u017eno {{count}} let"}},xYears:{present:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"},past:{one:"{{count}} letom",two:"{{count}} letoma",few:"{{count}} leti",other:"{{count}} leti"},future:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"}},overXYears:{present:{one:"ve\u010d kot {{count}} leto",two:"ve\u010d kot {{count}} leti",few:"ve\u010d kot {{count}} leta",other:"ve\u010d kot {{count}} let"},past:{one:"ve\u010d kot {{count}} letom",two:"ve\u010d kot {{count}} letoma",few:"ve\u010d kot {{count}} leti",other:"ve\u010d kot {{count}} leti"},future:{one:"ve\u010d kot {{count}} leto",two:"ve\u010d kot {{count}} leti",few:"ve\u010d kot {{count}} leta",other:"ve\u010d kot {{count}} let"}},almostXYears:{present:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"},past:{one:"skoraj {{count}} letom",two:"skoraj {{count}} letoma",few:"skoraj {{count}} leti",other:"skoraj {{count}} leti"},future:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"}}},oS={date:In({formats:{full:"EEEE, dd. MMMM y",long:"dd. MMMM y",medium:"d. MMM y",short:"d. MM. yy"},defaultWidth:"full"}),time:In({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},ch={lastWeek:ye=>{switch(ye.getDay()){case 0:return"'prej\u0161njo nedeljo ob' p";case 3:return"'prej\u0161njo sredo ob' p";case 6:return"'prej\u0161njo soboto ob' p";default:return"'prej\u0161nji' EEEE 'ob' p"}},yesterday:"'v\u010deraj ob' p",today:"'danes ob' p",tomorrow:"'jutri ob' p",nextWeek:ye=>{switch(ye.getDay()){case 0:return"'naslednjo nedeljo ob' p";case 3:return"'naslednjo sredo ob' p";case 6:return"'naslednjo soboto ob' p";default:return"'naslednji' EEEE 'ob' p"}},other:"P"},hS={code:"sl",formatDistance:(ye,ce,oe)=>{let Re="",Dt="present";oe?.addSuffix&&(oe.comparison&&oe.comparison>0?(Dt="future",Re="\u010dez "):(Dt="past",Re="pred "));const ni=iP[ye];if("string"==typeof ni)Re+=ni;else{const $i=function rP(ye){switch(ye%100){case 1:return"one";case 2:return"two";case 3:case 4:return"few";default:return"other"}}(ce);!function nP(ye){return void 0!==ye.one}(ni)?Re+=ni[Dt][$i].replace("{{count}}",String(ce)):Re+=ni[$i].replace("{{count}}",String(ce))}return Re},formatLong:oS,formatRelative:(ye,ce,oe,Re)=>{const Dt=ch[ye];return"function"==typeof Dt?Dt(ce):Dt},localize:{ordinalNumber:(ye,ce)=>Number(ye)+".",era:Ct({values:{narrow:["pr. n. \u0161t.","po n. \u0161t."],abbreviated:["pr. n. \u0161t.","po n. \u0161t."],wide:["pred na\u0161im \u0161tetjem","po na\u0161em \u0161tetju"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["1. \u010det.","2. \u010det.","3. \u010det.","4. \u010det."],wide:["1. \u010detrtletje","2. \u010detrtletje","3. \u010detrtletje","4. \u010detrtletje"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","avg.","sep.","okt.","nov.","dec."],wide:["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"]},defaultWidth:"wide"}),day:Ct({values:{narrow:["n","p","t","s","\u010d","p","s"],short:["ned.","pon.","tor.","sre.","\u010det.","pet.","sob."],abbreviated:["ned.","pon.","tor.","sre.","\u010det.","pet.","sob."],wide:["nedelja","ponedeljek","torek","sreda","\u010detrtek","petek","sobota"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"j",afternoon:"p",evening:"v",night:"n"},abbreviated:{am:"dop.",pm:"pop.",midnight:"poln.",noon:"pold.",morning:"jut.",afternoon:"pop.",evening:"ve\u010d.",night:"no\u010d"},wide:{am:"dop.",pm:"pop.",midnight:"polno\u010d",noon:"poldne",morning:"jutro",afternoon:"popoldne",evening:"ve\u010der",night:"no\u010d"}},defaultWidth:"wide",formattingValues:{narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"zj",afternoon:"p",evening:"zv",night:"po"},abbreviated:{am:"dop.",pm:"pop.",midnight:"opoln.",noon:"opold.",morning:"zjut.",afternoon:"pop.",evening:"zve\u010d.",night:"pono\u010di"},wide:{am:"dop.",pm:"pop.",midnight:"opolno\u010di",noon:"opoldne",morning:"zjutraj",afternoon:"popoldan",evening:"zve\u010der",night:"pono\u010di"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{abbreviated:/^(pr\. n\. \u0161t\.|po n\. \u0161t\.)/i,wide:/^(pred Kristusom|pred na[s\u0161]im [s\u0161]tetjem|po Kristusu|po na[s\u0161]em [s\u0161]tetju|na[s\u0161]ega [s\u0161]tetja)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|na[s\u0161]em)/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?[\u010dc]et\.?/i,wide:/^[1234]\. [\u010dc]etrtletje/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,wide:/^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],abbreviated:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i],wide:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"wide"}),day:Ki({matchPatterns:{narrow:/^[npts\u010dc]/i,short:/^(ned\.|pon\.|tor\.|sre\.|[c\u010d]et\.|pet\.|sob\.)/i,abbreviated:/^(ned\.|pon\.|tor\.|sre\.|[c\u010d]et\.|pet\.|sob\.)/i,wide:/^(nedelja|ponedeljek|torek|sreda|[c\u010d]etrtek|petek|sobota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^t/i,/^s/i,/^[c\u010d]/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^t/i,/^sr/i,/^[c\u010d]/i,/^pe/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{narrow:/^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,any:/^(dop\.|pop\.|o?poln(\.|o[c\u010d]i?)|o?pold(\.|ne)|z?ve[c\u010d](\.|er)|(po)?no[c\u010d]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i},defaultMatchWidth:"any",parsePatterns:{narrow:{am:/^d/i,pm:/^p/i,midnight:/^24/i,noon:/^12/i,morning:/^(z?j)/i,afternoon:/^p/i,evening:/^(z?v)/i,night:/^(n|po)/i},any:{am:/^dop\./i,pm:/^pop\./i,midnight:/^o?poln/i,noon:/^o?pold/i,morning:/j/i,afternoon:/^pop\./i,evening:/^z?ve/i,night:/(po)?no/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},gS={lessThanXSeconds:{one:"mindre \xe4n en sekund",other:"mindre \xe4n {{count}} sekunder"},xSeconds:{one:"en sekund",other:"{{count}} sekunder"},halfAMinute:"en halv minut",lessThanXMinutes:{one:"mindre \xe4n en minut",other:"mindre \xe4n {{count}} minuter"},xMinutes:{one:"en minut",other:"{{count}} minuter"},aboutXHours:{one:"ungef\xe4r en timme",other:"ungef\xe4r {{count}} timmar"},xHours:{one:"en timme",other:"{{count}} timmar"},xDays:{one:"en dag",other:"{{count}} dagar"},aboutXWeeks:{one:"ungef\xe4r en vecka",other:"ungef\xe4r {{count}} veckor"},xWeeks:{one:"en vecka",other:"{{count}} veckor"},aboutXMonths:{one:"ungef\xe4r en m\xe5nad",other:"ungef\xe4r {{count}} m\xe5nader"},xMonths:{one:"en m\xe5nad",other:"{{count}} m\xe5nader"},aboutXYears:{one:"ungef\xe4r ett \xe5r",other:"ungef\xe4r {{count}} \xe5r"},xYears:{one:"ett \xe5r",other:"{{count}} \xe5r"},overXYears:{one:"\xf6ver ett \xe5r",other:"\xf6ver {{count}} \xe5r"},almostXYears:{one:"n\xe4stan ett \xe5r",other:"n\xe4stan {{count}} \xe5r"}},pS=["noll","en","tv\xe5","tre","fyra","fem","sex","sju","\xe5tta","nio","tio","elva","tolv"],kv={date:In({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"y-MM-dd"},defaultWidth:"full"}),time:In({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},dh={lastWeek:"'i' EEEE's kl.' p",yesterday:"'ig\xe5r kl.' p",today:"'idag kl.' p",tomorrow:"'imorgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},SP={code:"sv",formatDistance:(ye,ce,oe)=>{let Re;const Dt=gS[ye];return Re="string"==typeof Dt?Dt:1===ce?Dt.one:Dt.other.replace("{{count}}",ce<13?pS[ce]:String(ce)),oe?.addSuffix?oe.comparison&&oe.comparison>0?"om "+Re:Re+" sedan":Re},formatLong:kv,formatRelative:(ye,ce,oe,Re)=>dh[ye],localize:{ordinalNumber:(ye,ce)=>{const oe=Number(ye),Re=oe%100;if(Re>20||Re<10)switch(Re%10){case 1:case 2:return oe+":a"}return oe+":e"},era:Ct({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["f\xf6re Kristus","efter Kristus"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},defaultWidth:"wide"}),day:Ct({values:{narrow:["S","M","T","O","T","F","L"],short:["s\xf6","m\xe5","ti","on","to","fr","l\xf6"],abbreviated:["s\xf6n","m\xe5n","tis","ons","tors","fre","l\xf6r"],wide:["s\xf6ndag","m\xe5ndag","tisdag","onsdag","torsdag","fredag","l\xf6rdag"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"morg.",afternoon:"efterm.",evening:"kv\xe4ll",night:"natt"},abbreviated:{am:"f.m.",pm:"e.m.",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"efterm.",evening:"kv\xe4ll",night:"natt"},wide:{am:"f\xf6rmiddag",pm:"eftermiddag",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"eftermiddag",evening:"kv\xe4ll",night:"natt"}},defaultWidth:"wide",formattingValues:{narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"p\xe5 morg.",afternoon:"p\xe5 efterm.",evening:"p\xe5 kv\xe4llen",night:"p\xe5 natten"},abbreviated:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"p\xe5 morg.",afternoon:"p\xe5 efterm.",evening:"p\xe5 kv\xe4llen",night:"p\xe5 natten"},wide:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"p\xe5 morgonen",afternoon:"p\xe5 eftermiddagen",evening:"p\xe5 kv\xe4llen",night:"p\xe5 natten"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)(:a|:e)?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(f\xf6re Kristus|f\xf6re v\xe5r tid|efter Kristus|v\xe5r tid)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^[ev]/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[smtofl]/i,short:/^(s\xf6|m\xe5|ti|on|to|fr|l\xf6)/i,abbreviated:/^(s\xf6n|m\xe5n|tis|ons|tors|fre|l\xf6r)/i,wide:/^(s\xf6ndag|m\xe5ndag|tisdag|onsdag|torsdag|fredag|l\xf6rdag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(p\xe5) (morgonen|eftermiddagen|kv\xe4llen|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kv\xe4ll/i,night:/natt/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},PS={lessThanXSeconds:{one:"\u0e19\u0e49\u0e2d\u0e22\u0e01\u0e27\u0e48\u0e32 1 \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",other:"\u0e19\u0e49\u0e2d\u0e22\u0e01\u0e27\u0e48\u0e32 {{count}} \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35"},xSeconds:{one:"1 \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",other:"{{count}} \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35"},halfAMinute:"\u0e04\u0e23\u0e36\u0e48\u0e07\u0e19\u0e32\u0e17\u0e35",lessThanXMinutes:{one:"\u0e19\u0e49\u0e2d\u0e22\u0e01\u0e27\u0e48\u0e32 1 \u0e19\u0e32\u0e17\u0e35",other:"\u0e19\u0e49\u0e2d\u0e22\u0e01\u0e27\u0e48\u0e32 {{count}} \u0e19\u0e32\u0e17\u0e35"},xMinutes:{one:"1 \u0e19\u0e32\u0e17\u0e35",other:"{{count}} \u0e19\u0e32\u0e17\u0e35"},aboutXHours:{one:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",other:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 {{count}} \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07"},xHours:{one:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",other:"{{count}} \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07"},xDays:{one:"1 \u0e27\u0e31\u0e19",other:"{{count}} \u0e27\u0e31\u0e19"},aboutXWeeks:{one:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",other:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 {{count}} \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c"},xWeeks:{one:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",other:"{{count}} \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c"},aboutXMonths:{one:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 1 \u0e40\u0e14\u0e37\u0e2d\u0e19",other:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 {{count}} \u0e40\u0e14\u0e37\u0e2d\u0e19"},xMonths:{one:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",other:"{{count}} \u0e40\u0e14\u0e37\u0e2d\u0e19"},aboutXYears:{one:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 1 \u0e1b\u0e35",other:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 {{count}} \u0e1b\u0e35"},xYears:{one:"1 \u0e1b\u0e35",other:"{{count}} \u0e1b\u0e35"},overXYears:{one:"\u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32 1 \u0e1b\u0e35",other:"\u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32 {{count}} \u0e1b\u0e35"},almostXYears:{one:"\u0e40\u0e01\u0e37\u0e2d\u0e1a 1 \u0e1b\u0e35",other:"\u0e40\u0e01\u0e37\u0e2d\u0e1a {{count}} \u0e1b\u0e35"}},dC={date:In({formats:{full:"\u0e27\u0e31\u0e19EEEE\u0e17\u0e35\u0e48 do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:In({formats:{full:"H:mm:ss \u0e19. zzzz",long:"H:mm:ss \u0e19. z",medium:"H:mm:ss \u0e19.",short:"H:mm \u0e19."},defaultWidth:"medium"}),dateTime:In({formats:{full:"{{date}} '\u0e40\u0e27\u0e25\u0e32' {{time}}",long:"{{date}} '\u0e40\u0e27\u0e25\u0e32' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},uC={lastWeek:"eeee'\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27\u0e40\u0e27\u0e25\u0e32' p",yesterday:"'\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49\u0e40\u0e27\u0e25\u0e32' p",today:"'\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49\u0e40\u0e27\u0e25\u0e32' p",tomorrow:"'\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49\u0e40\u0e27\u0e25\u0e32' p",nextWeek:"eeee '\u0e40\u0e27\u0e25\u0e32' p",other:"P"},RP={code:"th",formatDistance:(ye,ce,oe)=>{let Re;const Dt=PS[ye];return Re="string"==typeof Dt?Dt:1===ce?Dt.one:Dt.other.replace("{{count}}",String(ce)),oe?.addSuffix?oe.comparison&&oe.comparison>0?"halfAMinute"===ye?"\u0e43\u0e19"+Re:"\u0e43\u0e19 "+Re:Re+"\u0e17\u0e35\u0e48\u0e1c\u0e48\u0e32\u0e19\u0e21\u0e32":Re},formatLong:dC,formatRelative:(ye,ce,oe,Re)=>uC[ye],localize:{ordinalNumber:(ye,ce)=>String(ye),era:Ct({values:{narrow:["B","\u0e04\u0e28"],abbreviated:["BC","\u0e04.\u0e28."],wide:["\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e01\u0e32\u0e25","\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e28\u0e31\u0e01\u0e23\u0e32\u0e0a"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a\u0e41\u0e23\u0e01","\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a\u0e17\u0e35\u0e48\u0e2a\u0e2d\u0e07","\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a\u0e17\u0e35\u0e48\u0e2a\u0e32\u0e21","\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a\u0e17\u0e35\u0e48\u0e2a\u0e35\u0e48"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["\u0e21.\u0e04.","\u0e01.\u0e1e.","\u0e21\u0e35.\u0e04.","\u0e40\u0e21.\u0e22.","\u0e1e.\u0e04.","\u0e21\u0e34.\u0e22.","\u0e01.\u0e04.","\u0e2a.\u0e04.","\u0e01.\u0e22.","\u0e15.\u0e04.","\u0e1e.\u0e22.","\u0e18.\u0e04."],abbreviated:["\u0e21.\u0e04.","\u0e01.\u0e1e.","\u0e21\u0e35.\u0e04.","\u0e40\u0e21.\u0e22.","\u0e1e.\u0e04.","\u0e21\u0e34.\u0e22.","\u0e01.\u0e04.","\u0e2a.\u0e04.","\u0e01.\u0e22.","\u0e15.\u0e04.","\u0e1e.\u0e22.","\u0e18.\u0e04."],wide:["\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21","\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c","\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21","\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19","\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21","\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19","\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21","\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21","\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19","\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21","\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19","\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21"]},defaultWidth:"wide"}),day:Ct({values:{narrow:["\u0e2d\u0e32.","\u0e08.","\u0e2d.","\u0e1e.","\u0e1e\u0e24.","\u0e28.","\u0e2a."],short:["\u0e2d\u0e32.","\u0e08.","\u0e2d.","\u0e1e.","\u0e1e\u0e24.","\u0e28.","\u0e2a."],abbreviated:["\u0e2d\u0e32.","\u0e08.","\u0e2d.","\u0e1e.","\u0e1e\u0e24.","\u0e28.","\u0e2a."],wide:["\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c","\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c","\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23","\u0e1e\u0e38\u0e18","\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35","\u0e28\u0e38\u0e01\u0e23\u0e4c","\u0e40\u0e2a\u0e32\u0e23\u0e4c"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",pm:"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",midnight:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19",noon:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",morning:"\u0e40\u0e0a\u0e49\u0e32",afternoon:"\u0e1a\u0e48\u0e32\u0e22",evening:"\u0e40\u0e22\u0e47\u0e19",night:"\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19"},abbreviated:{am:"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",pm:"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",midnight:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19",noon:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",morning:"\u0e40\u0e0a\u0e49\u0e32",afternoon:"\u0e1a\u0e48\u0e32\u0e22",evening:"\u0e40\u0e22\u0e47\u0e19",night:"\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19"},wide:{am:"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",pm:"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",midnight:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19",noon:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",morning:"\u0e40\u0e0a\u0e49\u0e32",afternoon:"\u0e1a\u0e48\u0e32\u0e22",evening:"\u0e40\u0e22\u0e47\u0e19",night:"\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",pm:"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",midnight:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19",noon:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",morning:"\u0e15\u0e2d\u0e19\u0e40\u0e0a\u0e49\u0e32",afternoon:"\u0e15\u0e2d\u0e19\u0e01\u0e25\u0e32\u0e07\u0e27\u0e31\u0e19",evening:"\u0e15\u0e2d\u0e19\u0e40\u0e22\u0e47\u0e19",night:"\u0e15\u0e2d\u0e19\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19"},abbreviated:{am:"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",pm:"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",midnight:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19",noon:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",morning:"\u0e15\u0e2d\u0e19\u0e40\u0e0a\u0e49\u0e32",afternoon:"\u0e15\u0e2d\u0e19\u0e01\u0e25\u0e32\u0e07\u0e27\u0e31\u0e19",evening:"\u0e15\u0e2d\u0e19\u0e40\u0e22\u0e47\u0e19",night:"\u0e15\u0e2d\u0e19\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19"},wide:{am:"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",pm:"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",midnight:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19",noon:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",morning:"\u0e15\u0e2d\u0e19\u0e40\u0e0a\u0e49\u0e32",afternoon:"\u0e15\u0e2d\u0e19\u0e01\u0e25\u0e32\u0e07\u0e27\u0e31\u0e19",evening:"\u0e15\u0e2d\u0e19\u0e40\u0e22\u0e47\u0e19",night:"\u0e15\u0e2d\u0e19\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^\d+/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^([bB]|[aA]|\u0e04\u0e28)/i,abbreviated:/^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|\u0e04\.?\u0e28\.?)/i,wide:/^(\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e01\u0e32\u0e25|\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e28\u0e31\u0e01\u0e23\u0e32\u0e0a|\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e01\u0e32\u0e25)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^[bB]/i,/^(^[aA]|\u0e04\.?\u0e28\.?|\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e01\u0e32\u0e25|\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e28\u0e31\u0e01\u0e23\u0e32\u0e0a|)/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a(\u0e17\u0e35\u0e48)? ?[1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|\u0e41\u0e23\u0e01|\u0e2b\u0e19\u0e36\u0e48\u0e07)/i,/(2|\u0e2a\u0e2d\u0e07)/i,/(3|\u0e2a\u0e32\u0e21)/i,/(4|\u0e2a\u0e35\u0e48)/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^(\u0e21\.?\u0e04\.?|\u0e01\.?\u0e1e\.?|\u0e21\u0e35\.?\u0e04\.?|\u0e40\u0e21\.?\u0e22\.?|\u0e1e\.?\u0e04\.?|\u0e21\u0e34\.?\u0e22\.?|\u0e01\.?\u0e04\.?|\u0e2a\.?\u0e04\.?|\u0e01\.?\u0e22\.?|\u0e15\.?\u0e04\.?|\u0e1e\.?\u0e22\.?|\u0e18\.?\u0e04\.?)/i,abbreviated:/^(\u0e21\.?\u0e04\.?|\u0e01\.?\u0e1e\.?|\u0e21\u0e35\.?\u0e04\.?|\u0e40\u0e21\.?\u0e22\.?|\u0e1e\.?\u0e04\.?|\u0e21\u0e34\.?\u0e22\.?|\u0e01\.?\u0e04\.?|\u0e2a\.?\u0e04\.?|\u0e01\.?\u0e22\.?|\u0e15\.?\u0e04\.?|\u0e1e\.?\u0e22\.?|\u0e18\.?\u0e04\.?')/i,wide:/^(\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21|\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c|\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21|\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19|\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21|\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19|\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21|\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21|\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19|\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21|\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19|\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21)/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/^\u0e21\u0e01/i,/^\u0e01\u0e38\u0e21/i,/^\u0e21\u0e35/i,/^\u0e40\u0e21/i,/^\u0e1e\u0e24\u0e29/i,/^\u0e21\u0e34/i,/^\u0e01\u0e23\u0e01/i,/^\u0e2a/i,/^\u0e01\u0e31\u0e19/i,/^\u0e15/i,/^\u0e1e\u0e24\u0e28/i,/^\u0e18/i],any:[/^\u0e21\.?\u0e04\.?/i,/^\u0e01\.?\u0e1e\.?/i,/^\u0e21\u0e35\.?\u0e04\.?/i,/^\u0e40\u0e21\.?\u0e22\.?/i,/^\u0e1e\.?\u0e04\.?/i,/^\u0e21\u0e34\.?\u0e22\.?/i,/^\u0e01\.?\u0e04\.?/i,/^\u0e2a\.?\u0e04\.?/i,/^\u0e01\.?\u0e22\.?/i,/^\u0e15\.?\u0e04\.?/i,/^\u0e1e\.?\u0e22\.?/i,/^\u0e18\.?\u0e04\.?/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^(\u0e2d\u0e32\.?|\u0e08\.?|\u0e2d\.?|\u0e1e\u0e24\.?|\u0e1e\.?|\u0e28\.?|\u0e2a\.?)/i,short:/^(\u0e2d\u0e32\.?|\u0e08\.?|\u0e2d\.?|\u0e1e\u0e24\.?|\u0e1e\.?|\u0e28\.?|\u0e2a\.?)/i,abbreviated:/^(\u0e2d\u0e32\.?|\u0e08\.?|\u0e2d\.?|\u0e1e\u0e24\.?|\u0e1e\.?|\u0e28\.?|\u0e2a\.?)/i,wide:/^(\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c|\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c|\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23|\u0e1e\u0e38\u0e18|\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35|\u0e28\u0e38\u0e01\u0e23\u0e4c|\u0e40\u0e2a\u0e32\u0e23\u0e4c)/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/^\u0e2d\u0e32/i,/^\u0e08\u0e31/i,/^\u0e2d\u0e31/i,/^\u0e1e\u0e38\u0e18/i,/^\u0e1e\u0e24/i,/^\u0e28/i,/^\u0e40\u0e2a/i],any:[/^\u0e2d\u0e32/i,/^\u0e08/i,/^\u0e2d/i,/^\u0e1e(?!\u0e24)/i,/^\u0e1e\u0e24/i,/^\u0e28/i,/^\u0e2a/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{any:/^(\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19|\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|(\u0e15\u0e2d\u0e19.*?)?.*(\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e40\u0e0a\u0e49\u0e32|\u0e1a\u0e48\u0e32\u0e22|\u0e40\u0e22\u0e47\u0e19|\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/i,pm:/^\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/i,midnight:/^\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19/i,noon:/^\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/i,morning:/\u0e40\u0e0a\u0e49\u0e32/i,afternoon:/\u0e1a\u0e48\u0e32\u0e22/i,evening:/\u0e40\u0e22\u0e47\u0e19/i,night:/\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},AS={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yar\u0131m dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yakla\u015f\u0131k 1 saat",other:"yakla\u015f\u0131k {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 g\xfcn",other:"{{count}} g\xfcn"},aboutXWeeks:{one:"yakla\u015f\u0131k 1 hafta",other:"yakla\u015f\u0131k {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yakla\u015f\u0131k 1 ay",other:"yakla\u015f\u0131k {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yakla\u015f\u0131k 1 y\u0131l",other:"yakla\u015f\u0131k {{count}} y\u0131l"},xYears:{one:"1 y\u0131l",other:"{{count}} y\u0131l"},overXYears:{one:"1 y\u0131ldan fazla",other:"{{count}} y\u0131ldan fazla"},almostXYears:{one:"neredeyse 1 y\u0131l",other:"neredeyse {{count}} y\u0131l"}},UP={date:In({formats:{full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:In({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},BP={lastWeek:"'ge\xe7en hafta' eeee 'saat' p",yesterday:"'d\xfcn saat' p",today:"'bug\xfcn saat' p",tomorrow:"'yar\u0131n saat' p",nextWeek:"eeee 'saat' p",other:"P"},JP={code:"tr",formatDistance:(ye,ce,oe)=>{let Re;const Dt=AS[ye];return Re="string"==typeof Dt?Dt:1===ce?Dt.one:Dt.other.replace("{{count}}",ce.toString()),oe?.addSuffix?oe.comparison&&oe.comparison>0?Re+" sonra":Re+" \xf6nce":Re},formatLong:UP,formatRelative:(ye,ce,oe,Re)=>BP[ye],localize:{ordinalNumber:(ye,ce)=>Number(ye)+".",era:Ct({values:{narrow:["M\xd6","MS"],abbreviated:["M\xd6","MS"],wide:["Milattan \xd6nce","Milattan Sonra"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["1\xc7","2\xc7","3\xc7","4\xc7"],wide:["\u0130lk \xe7eyrek","\u0130kinci \xc7eyrek","\xdc\xe7\xfcnc\xfc \xe7eyrek","Son \xe7eyrek"]},defaultWidth:"wide",argumentCallback:ye=>Number(ye)-1}),month:Ct({values:{narrow:["O","\u015e","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","\u015eub","Mar","Nis","May","Haz","Tem","A\u011fu","Eyl","Eki","Kas","Ara"],wide:["Ocak","\u015eubat","Mart","Nisan","May\u0131s","Haziran","Temmuz","A\u011fustos","Eyl\xfcl","Ekim","Kas\u0131m","Aral\u0131k"]},defaultWidth:"wide"}),day:Ct({values:{narrow:["P","P","S","\xc7","P","C","C"],short:["Pz","Pt","Sa","\xc7a","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","\xc7ar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Sal\u0131","\xc7ar\u015famba","Per\u015fembe","Cuma","Cumartesi"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"\xf6\xf6",pm:"\xf6s",midnight:"gy",noon:"\xf6",morning:"sa",afternoon:"\xf6s",evening:"ak",night:"ge"},abbreviated:{am:"\xd6\xd6",pm:"\xd6S",midnight:"gece yar\u0131s\u0131",noon:"\xf6\u011fle",morning:"sabah",afternoon:"\xf6\u011fleden sonra",evening:"ak\u015fam",night:"gece"},wide:{am:"\xd6.\xd6.",pm:"\xd6.S.",midnight:"gece yar\u0131s\u0131",noon:"\xf6\u011fle",morning:"sabah",afternoon:"\xf6\u011fleden sonra",evening:"ak\u015fam",night:"gece"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\xf6\xf6",pm:"\xf6s",midnight:"gy",noon:"\xf6",morning:"sa",afternoon:"\xf6s",evening:"ak",night:"ge"},abbreviated:{am:"\xd6\xd6",pm:"\xd6S",midnight:"gece yar\u0131s\u0131",noon:"\xf6\u011flen",morning:"sabahleyin",afternoon:"\xf6\u011fleden sonra",evening:"ak\u015famleyin",night:"geceleyin"},wide:{am:"\xf6.\xf6.",pm:"\xf6.s.",midnight:"gece yar\u0131s\u0131",noon:"\xf6\u011flen",morning:"sabahleyin",afternoon:"\xf6\u011fleden sonra",evening:"ak\u015famleyin",night:"geceleyin"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(ye){return parseInt(ye,10)}}),era:Ki({matchPatterns:{narrow:/^(m\xf6|ms)/i,abbreviated:/^(m\xf6|ms)/i,wide:/^(milattan \xf6nce|milattan sonra)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(^m\xf6|^milattan \xf6nce)/i,/(^ms|^milattan sonra)/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\xe7/i,wide:/^((i|\u0130)lk|(i|\u0130)kinci|\xfc\xe7\xfcnc\xfc|son) \xe7eyrek/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1\xe7/i,/2\xe7/i,/3\xe7/i,/4\xe7/i],wide:[/^(i|\u0130)lk \xe7eyrek/i,/(i|\u0130)kinci \xe7eyrek/i,/\xfc\xe7\xfcnc\xfc \xe7eyrek/i,/son \xe7eyrek/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[o\u015fmnhtaek]/i,abbreviated:/^(oca|\u015fub|mar|nis|may|haz|tem|a\u011fu|eyl|eki|kas|ara)/i,wide:/^(ocak|\u015fubat|mart|nisan|may\u0131s|haziran|temmuz|a\u011fustos|eyl\xfcl|ekim|kas\u0131m|aral\u0131k)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^o/i,/^\u015f/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^\u015f/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^a\u011f/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[ps\xe7c]/i,short:/^(pz|pt|sa|\xe7a|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|\xe7ar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|sal\u0131|\xe7ar\u015famba|per\u015fembe|cuma(?!rtesi)|cumartesi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^p/i,/^p/i,/^s/i,/^\xe7/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^\xe7a/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^sal\u0131/i,/^\xe7ar\u015famba/i,/^per\u015fembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{narrow:/^(\xf6\xf6|\xf6s|gy|\xf6|sa|\xf6s|ak|ge)/i,any:/^(\xf6\.?\s?[\xf6s]\.?|\xf6\u011fleden sonra|gece yar\u0131s\u0131|\xf6\u011fle|(sabah|\xf6\u011f|ak\u015fam|gece)(leyin))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\xf6\.?\xf6\.?/i,pm:/^\xf6\.?s\.?/i,midnight:/^(gy|gece yar\u0131s\u0131)/i,noon:/^\xf6\u011f/i,morning:/^sa/i,afternoon:/^\xf6\u011fleden sonra/i,evening:/^ak/i,night:/^ge/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}};function uh(ye,ce){if(void 0!==ye.one&&1===ce)return ye.one;const oe=ce%10,Re=ce%100;return 1===oe&&11!==Re?ye.singularNominative.replace("{{count}}",String(ce)):oe>=2&&oe<=4&&(Re<10||Re>20)?ye.singularGenitive.replace("{{count}}",String(ce)):ye.pluralGenitive.replace("{{count}}",String(ce))}function Ec(ye){return(ce,oe)=>oe&&oe.addSuffix?oe.comparison&&oe.comparison>0?ye.future?uh(ye.future,ce):"\u0437\u0430 "+uh(ye.regular,ce):ye.past?uh(ye.past,ce):uh(ye.regular,ce)+" \u0442\u043e\u043c\u0443":uh(ye.regular,ce)}const qP={lessThanXSeconds:Ec({regular:{one:"\u043c\u0435\u043d\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",singularNominative:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438",singularGenitive:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434",pluralGenitive:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},future:{one:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularNominative:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438",pluralGenitive:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"}}),xSeconds:Ec({regular:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0430",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},past:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0442\u043e\u043c\u0443",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438 \u0442\u043e\u043c\u0443",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434 \u0442\u043e\u043c\u0443"},future:{singularNominative:"\u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438",pluralGenitive:"\u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"}}),halfAMinute:(ye,ce)=>ce&&ce.addSuffix?ce.comparison&&ce.comparison>0?"\u0437\u0430 \u043f\u0456\u0432\u0445\u0432\u0438\u043b\u0438\u043d\u0438":"\u043f\u0456\u0432\u0445\u0432\u0438\u043b\u0438\u043d\u0438 \u0442\u043e\u043c\u0443":"\u043f\u0456\u0432\u0445\u0432\u0438\u043b\u0438\u043d\u0438",lessThanXMinutes:Ec({regular:{one:"\u043c\u0435\u043d\u0448\u0435 \u0445\u0432\u0438\u043b\u0438\u043d\u0438",singularNominative:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0438",singularGenitive:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d",pluralGenitive:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d"},future:{one:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 \u0445\u0432\u0438\u043b\u0438\u043d\u0443",singularNominative:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0443",singularGenitive:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0438",pluralGenitive:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d"}}),xMinutes:Ec({regular:{singularNominative:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0430",singularGenitive:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0438",pluralGenitive:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d"},past:{singularNominative:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0443 \u0442\u043e\u043c\u0443",singularGenitive:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0438 \u0442\u043e\u043c\u0443",pluralGenitive:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d \u0442\u043e\u043c\u0443"},future:{singularNominative:"\u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0443",singularGenitive:"\u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0438",pluralGenitive:"\u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d"}}),aboutXHours:Ec({regular:{singularNominative:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0433\u043e\u0434\u0438\u043d\u0438",singularGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0433\u043e\u0434\u0438\u043d",pluralGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0433\u043e\u0434\u0438\u043d"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0433\u043e\u0434\u0438\u043d\u0443",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0433\u043e\u0434\u0438\u043d\u0438",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0433\u043e\u0434\u0438\u043d"}}),xHours:Ec({regular:{singularNominative:"{{count}} \u0433\u043e\u0434\u0438\u043d\u0443",singularGenitive:"{{count}} \u0433\u043e\u0434\u0438\u043d\u0438",pluralGenitive:"{{count}} \u0433\u043e\u0434\u0438\u043d"}}),xDays:Ec({regular:{singularNominative:"{{count}} \u0434\u0435\u043d\u044c",singularGenitive:"{{count}} \u0434\u043di",pluralGenitive:"{{count}} \u0434\u043d\u0456\u0432"}}),aboutXWeeks:Ec({regular:{singularNominative:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0442\u0438\u0436\u043d\u044f",singularGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0442\u0438\u0436\u043d\u0456\u0432",pluralGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0442\u0438\u0436\u043d\u0456\u0432"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0442\u0438\u0436\u0434\u0435\u043d\u044c",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0442\u0438\u0436\u043d\u0456",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0442\u0438\u0436\u043d\u0456\u0432"}}),xWeeks:Ec({regular:{singularNominative:"{{count}} \u0442\u0438\u0436\u0434\u0435\u043d\u044c",singularGenitive:"{{count}} \u0442\u0438\u0436\u043d\u0456",pluralGenitive:"{{count}} \u0442\u0438\u0436\u043d\u0456\u0432"}}),aboutXMonths:Ec({regular:{singularNominative:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u043c\u0456\u0441\u044f\u0446\u044f",singularGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u043c\u0456\u0441\u044f\u0446\u0456\u0432",pluralGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u043c\u0456\u0441\u044f\u0446\u0456\u0432"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u043c\u0456\u0441\u044f\u0446\u044c",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u043c\u0456\u0441\u044f\u0446\u0456",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u043c\u0456\u0441\u044f\u0446\u0456\u0432"}}),xMonths:Ec({regular:{singularNominative:"{{count}} \u043c\u0456\u0441\u044f\u0446\u044c",singularGenitive:"{{count}} \u043c\u0456\u0441\u044f\u0446\u0456",pluralGenitive:"{{count}} \u043c\u0456\u0441\u044f\u0446\u0456\u0432"}}),aboutXYears:Ec({regular:{singularNominative:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0440\u043e\u043a\u0443",singularGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0440\u043e\u043a\u0456\u0432",pluralGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0440\u043e\u043a\u0456\u0432"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0440\u0456\u043a",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0440\u043e\u043a\u0438",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0440\u043e\u043a\u0456\u0432"}}),xYears:Ec({regular:{singularNominative:"{{count}} \u0440\u0456\u043a",singularGenitive:"{{count}} \u0440\u043e\u043a\u0438",pluralGenitive:"{{count}} \u0440\u043e\u043a\u0456\u0432"}}),overXYears:Ec({regular:{singularNominative:"\u0431\u0456\u043b\u044c\u0448\u0435 {{count}} \u0440\u043e\u043a\u0443",singularGenitive:"\u0431\u0456\u043b\u044c\u0448\u0435 {{count}} \u0440\u043e\u043a\u0456\u0432",pluralGenitive:"\u0431\u0456\u043b\u044c\u0448\u0435 {{count}} \u0440\u043e\u043a\u0456\u0432"},future:{singularNominative:"\u0431\u0456\u043b\u044c\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0440\u0456\u043a",singularGenitive:"\u0431\u0456\u043b\u044c\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0440\u043e\u043a\u0438",pluralGenitive:"\u0431\u0456\u043b\u044c\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0440\u043e\u043a\u0456\u0432"}}),almostXYears:Ec({regular:{singularNominative:"\u043c\u0430\u0439\u0436\u0435 {{count}} \u0440\u0456\u043a",singularGenitive:"\u043c\u0430\u0439\u0436\u0435 {{count}} \u0440\u043e\u043a\u0438",pluralGenitive:"\u043c\u0430\u0439\u0436\u0435 {{count}} \u0440\u043e\u043a\u0456\u0432"},future:{singularNominative:"\u043c\u0430\u0439\u0436\u0435 \u0437\u0430 {{count}} \u0440\u0456\u043a",singularGenitive:"\u043c\u0430\u0439\u0436\u0435 \u0437\u0430 {{count}} \u0440\u043e\u043a\u0438",pluralGenitive:"\u043c\u0430\u0439\u0436\u0435 \u0437\u0430 {{count}} \u0440\u043e\u043a\u0456\u0432"}})},CC={date:In({formats:{full:"EEEE, do MMMM y '\u0440.'",long:"do MMMM y '\u0440.'",medium:"d MMM y '\u0440.'",short:"dd.MM.y"},defaultWidth:"full"}),time:In({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} '\u043e' {{time}}",long:"{{date}} '\u043e' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Gv=["\u043d\u0435\u0434\u0456\u043b\u044e","\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a","\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a","\u0441\u0435\u0440\u0435\u0434\u0443","\u0447\u0435\u0442\u0432\u0435\u0440","\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e","\u0441\u0443\u0431\u043e\u0442\u0443"];function BS(ye){return"'\u0443 "+Gv[ye]+" \u043e' p"}const qh={lastWeek:(ye,ce,oe)=>{const Re=Lr(ye),Dt=Re.getDay();return Bl(Re,ce,oe)?BS(Dt):function nO(ye){const ce=Gv[ye];switch(ye){case 0:case 3:case 5:case 6:return"'\u0443 \u043c\u0438\u043d\u0443\u043b\u0443 "+ce+" \u043e' p";case 1:case 2:case 4:return"'\u0443 \u043c\u0438\u043d\u0443\u043b\u0438\u0439 "+ce+" \u043e' p"}}(Dt)},yesterday:"'\u0432\u0447\u043e\u0440\u0430 \u043e' p",today:"'\u0441\u044c\u043e\u0433\u043e\u0434\u043d\u0456 \u043e' p",tomorrow:"'\u0437\u0430\u0432\u0442\u0440\u0430 \u043e' p",nextWeek:(ye,ce,oe)=>{const Re=Lr(ye),Dt=Re.getDay();return Bl(Re,ce,oe)?BS(Dt):function GS(ye){const ce=Gv[ye];switch(ye){case 0:case 3:case 5:case 6:return"'\u0443 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443 "+ce+" \u043e' p";case 1:case 2:case 4:return"'\u0443 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439 "+ce+" \u043e' p"}}(Dt)},other:"P"},XS={code:"uk",formatDistance:(ye,ce,oe)=>qP[ye](ce,oe=oe||{}),formatLong:CC,formatRelative:(ye,ce,oe,Re)=>{const Dt=qh[ye];return"function"==typeof Dt?Dt(ce,oe,Re):Dt},localize:{ordinalNumber:(ye,ce)=>{const oe=String(ce?.unit),Re=Number(ye);let Dt;return Dt="date"===oe?3===Re||23===Re?"-\u0454":"-\u0435":"minute"===oe||"second"===oe||"hour"===oe?"-\u0430":"-\u0439",Re+Dt},era:Ct({values:{narrow:["\u0434\u043e \u043d.\u0435.","\u043d.\u0435."],abbreviated:["\u0434\u043e \u043d. \u0435.","\u043d. \u0435."],wide:["\u0434\u043e \u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438","\u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["1-\u0439 \u043a\u0432.","2-\u0439 \u043a\u0432.","3-\u0439 \u043a\u0432.","4-\u0439 \u043a\u0432."],wide:["1-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","2-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","3-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","4-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["\u0421","\u041b","\u0411","\u041a","\u0422","\u0427","\u041b","\u0421","\u0412","\u0416","\u041b","\u0413"],abbreviated:["\u0441\u0456\u0447.","\u043b\u044e\u0442.","\u0431\u0435\u0440\u0435\u0437.","\u043a\u0432\u0456\u0442.","\u0442\u0440\u0430\u0432.","\u0447\u0435\u0440\u0432.","\u043b\u0438\u043f.","\u0441\u0435\u0440\u043f.","\u0432\u0435\u0440\u0435\u0441.","\u0436\u043e\u0432\u0442.","\u043b\u0438\u0441\u0442\u043e\u043f.","\u0433\u0440\u0443\u0434."],wide:["\u0441\u0456\u0447\u0435\u043d\u044c","\u043b\u044e\u0442\u0438\u0439","\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c","\u043a\u0432\u0456\u0442\u0435\u043d\u044c","\u0442\u0440\u0430\u0432\u0435\u043d\u044c","\u0447\u0435\u0440\u0432\u0435\u043d\u044c","\u043b\u0438\u043f\u0435\u043d\u044c","\u0441\u0435\u0440\u043f\u0435\u043d\u044c","\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c","\u0436\u043e\u0432\u0442\u0435\u043d\u044c","\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434","\u0433\u0440\u0443\u0434\u0435\u043d\u044c"]},defaultWidth:"wide",formattingValues:{narrow:["\u0421","\u041b","\u0411","\u041a","\u0422","\u0427","\u041b","\u0421","\u0412","\u0416","\u041b","\u0413"],abbreviated:["\u0441\u0456\u0447.","\u043b\u044e\u0442.","\u0431\u0435\u0440\u0435\u0437.","\u043a\u0432\u0456\u0442.","\u0442\u0440\u0430\u0432.","\u0447\u0435\u0440\u0432.","\u043b\u0438\u043f.","\u0441\u0435\u0440\u043f.","\u0432\u0435\u0440\u0435\u0441.","\u0436\u043e\u0432\u0442.","\u043b\u0438\u0441\u0442\u043e\u043f.","\u0433\u0440\u0443\u0434."],wide:["\u0441\u0456\u0447\u043d\u044f","\u043b\u044e\u0442\u043e\u0433\u043e","\u0431\u0435\u0440\u0435\u0437\u043d\u044f","\u043a\u0432\u0456\u0442\u043d\u044f","\u0442\u0440\u0430\u0432\u043d\u044f","\u0447\u0435\u0440\u0432\u043d\u044f","\u043b\u0438\u043f\u043d\u044f","\u0441\u0435\u0440\u043f\u043d\u044f","\u0432\u0435\u0440\u0435\u0441\u043d\u044f","\u0436\u043e\u0432\u0442\u043d\u044f","\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430","\u0433\u0440\u0443\u0434\u043d\u044f"]},defaultFormattingWidth:"wide"}),day:Ct({values:{narrow:["\u041d","\u041f","\u0412","\u0421","\u0427","\u041f","\u0421"],short:["\u043d\u0434","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"],abbreviated:["\u043d\u0435\u0434","\u043f\u043e\u043d","\u0432\u0456\u0432","\u0441\u0435\u0440","\u0447\u0442\u0432","\u043f\u0442\u043d","\u0441\u0443\u0431"],wide:["\u043d\u0435\u0434\u0456\u043b\u044f","\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a","\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a","\u0441\u0435\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440","\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f","\u0441\u0443\u0431\u043e\u0442\u0430"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d.",noon:"\u043f\u043e\u043b.",morning:"\u0440\u0430\u043d\u043e\u043a",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447.",night:"\u043d\u0456\u0447"},abbreviated:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d.",noon:"\u043f\u043e\u043b.",morning:"\u0440\u0430\u043d\u043e\u043a",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447.",night:"\u043d\u0456\u0447"},wide:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d\u0456\u0447",noon:"\u043f\u043e\u043b\u0443\u0434\u0435\u043d\u044c",morning:"\u0440\u0430\u043d\u043e\u043a",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447\u0456\u0440",night:"\u043d\u0456\u0447"}},defaultWidth:"any",formattingValues:{narrow:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d.",noon:"\u043f\u043e\u043b.",morning:"\u0440\u0430\u043d\u043a\u0443",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u0456"},abbreviated:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d.",noon:"\u043f\u043e\u043b.",morning:"\u0440\u0430\u043d\u043a\u0443",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u0456"},wide:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d\u0456\u0447",noon:"\u043f\u043e\u043b\u0443\u0434\u0435\u043d\u044c",morning:"\u0440\u0430\u043d\u043a\u0443",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u0456"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\d+)(-?(\u0435|\u0439|\u0454|\u0430|\u044f))?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^((\u0434\u043e )?\u043d\.?\s?\u0435\.?)/i,abbreviated:/^((\u0434\u043e )?\u043d\.?\s?\u0435\.?)/i,wide:/^(\u0434\u043e \u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438|\u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438|\u043d\u0430\u0448\u0430 \u0435\u0440\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0434/i,/^\u043d/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[\u0438\u0456]?\u0439?)? \u043a\u0432.?/i,wide:/^[1234](-?[\u0438\u0456]?\u0439?)? \u043a\u0432\u0430\u0440\u0442\u0430\u043b/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[\u0441\u043b\u0431\u043a\u0442\u0447\u0432\u0436\u0433]/i,abbreviated:/^(\u0441\u0456\u0447|\u043b\u044e\u0442|\u0431\u0435\u0440(\u0435\u0437)?|\u043a\u0432\u0456\u0442|\u0442\u0440\u0430\u0432|\u0447\u0435\u0440\u0432|\u043b\u0438\u043f|\u0441\u0435\u0440\u043f|\u0432\u0435\u0440(\u0435\u0441)?|\u0436\u043e\u0432\u0442|\u043b\u0438\u0441(\u0442\u043e\u043f)?|\u0433\u0440\u0443\u0434)\.?/i,wide:/^(\u0441\u0456\u0447\u0435\u043d\u044c|\u0441\u0456\u0447\u043d\u044f|\u043b\u044e\u0442\u0438\u0439|\u043b\u044e\u0442\u043e\u0433\u043e|\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c|\u0431\u0435\u0440\u0435\u0437\u043d\u044f|\u043a\u0432\u0456\u0442\u0435\u043d\u044c|\u043a\u0432\u0456\u0442\u043d\u044f|\u0442\u0440\u0430\u0432\u0435\u043d\u044c|\u0442\u0440\u0430\u0432\u043d\u044f|\u0447\u0435\u0440\u0432\u043d\u044f|\u0447\u0435\u0440\u0432\u0435\u043d\u044c|\u043b\u0438\u043f\u0435\u043d\u044c|\u043b\u0438\u043f\u043d\u044f|\u0441\u0435\u0440\u043f\u0435\u043d\u044c|\u0441\u0435\u0440\u043f\u043d\u044f|\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c|\u0432\u0435\u0440\u0435\u0441\u043d\u044f|\u0436\u043e\u0432\u0442\u0435\u043d\u044c|\u0436\u043e\u0432\u0442\u043d\u044f|\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434[\u0430]?|\u0433\u0440\u0443\u0434\u0435\u043d\u044c|\u0433\u0440\u0443\u0434\u043d\u044f)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0441/i,/^\u043b/i,/^\u0431/i,/^\u043a/i,/^\u0442/i,/^\u0447/i,/^\u043b/i,/^\u0441/i,/^\u0432/i,/^\u0436/i,/^\u043b/i,/^\u0433/i],any:[/^\u0441\u0456/i,/^\u043b\u044e/i,/^\u0431/i,/^\u043a/i,/^\u0442/i,/^\u0447/i,/^\u043b\u0438\u043f/i,/^\u0441\u0435/i,/^\u0432/i,/^\u0436/i,/^\u043b\u0438\u0441/i,/^\u0433/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[\u043d\u043f\u0432\u0441\u0447]/i,short:/^(\u043d\u0434|\u043f\u043d|\u0432\u0442|\u0441\u0440|\u0447\u0442|\u043f\u0442|\u0441\u0431)\.?/i,abbreviated:/^(\u043d\u0435\u0434|\u043f\u043e\u043d|\u0432\u0456\u0432|\u0441\u0435\u0440|\u0447\u0435?\u0442\u0432|\u043f\u0442\u043d?|\u0441\u0443\u0431)\.?/i,wide:/^(\u043d\u0435\u0434\u0456\u043b[\u044f\u0456]|\u043f\u043e\u043d\u0435\u0434\u0456\u043b[\u043e\u043a][\u043a\u0430]|\u0432\u0456\u0432\u0442\u043e\u0440[\u043e\u043a][\u043a\u0430]|\u0441\u0435\u0440\u0435\u0434[\u0430\u0438]|\u0447\u0435\u0442\u0432\u0435\u0440(\u0433\u0430)?|\u043f\W*?\u044f\u0442\u043d\u0438\u0446[\u044f\u0456]|\u0441\u0443\u0431\u043e\u0442[\u0430\u0438])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u043d/i,/^\u043f/i,/^\u0432/i,/^\u0441/i,/^\u0447/i,/^\u043f/i,/^\u0441/i],any:[/^\u043d/i,/^\u043f[\u043e\u043d]/i,/^\u0432/i,/^\u0441[\u0435\u0440]/i,/^\u0447/i,/^\u043f\W*?[\u044f\u0442]/i,/^\u0441[\u0443\u0431]/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{narrow:/^([\u0434\u043f]\u043f|\u043f\u0456\u0432\u043d\.?|\u043f\u043e\u043b\.?|\u0440\u0430\u043d\u043e\u043a|\u0440\u0430\u043d\u043a\u0443|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\.?|\u043d\u0456\u0447|\u043d\u043e\u0447\u0456)/i,abbreviated:/^([\u0434\u043f]\u043f|\u043f\u0456\u0432\u043d\.?|\u043f\u043e\u043b\.?|\u0440\u0430\u043d\u043e\u043a|\u0440\u0430\u043d\u043a\u0443|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\.?|\u043d\u0456\u0447|\u043d\u043e\u0447\u0456)/i,wide:/^([\u0434\u043f]\u043f|\u043f\u0456\u0432\u043d\u0456\u0447|\u043f\u043e\u043b\u0443\u0434\u0435\u043d\u044c|\u0440\u0430\u043d\u043e\u043a|\u0440\u0430\u043d\u043a\u0443|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\u0456\u0440|\u0432\u0435\u0447\u043e\u0440\u0430|\u043d\u0456\u0447|\u043d\u043e\u0447\u0456)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^\u0434\u043f/i,pm:/^\u043f\u043f/i,midnight:/^\u043f\u0456\u0432\u043d/i,noon:/^\u043f\u043e\u043b/i,morning:/^\u0440/i,afternoon:/^\u0434[\u0435\u043d]/i,evening:/^\u0432/i,night:/^\u043d/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},uO={lessThanXSeconds:{one:"\u4e0d\u5230 1 \u79d2",other:"\u4e0d\u5230 {{count}} \u79d2"},xSeconds:{one:"1 \u79d2",other:"{{count}} \u79d2"},halfAMinute:"\u534a\u5206\u949f",lessThanXMinutes:{one:"\u4e0d\u5230 1 \u5206\u949f",other:"\u4e0d\u5230 {{count}} \u5206\u949f"},xMinutes:{one:"1 \u5206\u949f",other:"{{count}} \u5206\u949f"},xHours:{one:"1 \u5c0f\u65f6",other:"{{count}} \u5c0f\u65f6"},aboutXHours:{one:"\u5927\u7ea6 1 \u5c0f\u65f6",other:"\u5927\u7ea6 {{count}} \u5c0f\u65f6"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7ea6 1 \u4e2a\u661f\u671f",other:"\u5927\u7ea6 {{count}} \u4e2a\u661f\u671f"},xWeeks:{one:"1 \u4e2a\u661f\u671f",other:"{{count}} \u4e2a\u661f\u671f"},aboutXMonths:{one:"\u5927\u7ea6 1 \u4e2a\u6708",other:"\u5927\u7ea6 {{count}} \u4e2a\u6708"},xMonths:{one:"1 \u4e2a\u6708",other:"{{count}} \u4e2a\u6708"},aboutXYears:{one:"\u5927\u7ea6 1 \u5e74",other:"\u5927\u7ea6 {{count}} \u5e74"},xYears:{one:"1 \u5e74",other:"{{count}} \u5e74"},overXYears:{one:"\u8d85\u8fc7 1 \u5e74",other:"\u8d85\u8fc7 {{count}} \u5e74"},almostXYears:{one:"\u5c06\u8fd1 1 \u5e74",other:"\u5c06\u8fd1 {{count}} \u5e74"}},mO={date:In({formats:{full:"y'\u5e74'M'\u6708'd'\u65e5' EEEE",long:"y'\u5e74'M'\u6708'd'\u65e5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:In({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};function QS(ye,ce,oe){const Re="eeee p";return Bl(ye,ce,oe)?Re:ye.getTime()>ce.getTime()?"'\u4e0b\u4e2a'"+Re:"'\u4e0a\u4e2a'"+Re}const jv={lastWeek:QS,yesterday:"'\u6628\u5929' p",today:"'\u4eca\u5929' p",tomorrow:"'\u660e\u5929' p",nextWeek:QS,other:"PP p"},M1={code:"zh-CN",formatDistance:(ye,ce,oe)=>{let Re;const Dt=uO[ye];return Re="string"==typeof Dt?Dt:1===ce?Dt.one:Dt.other.replace("{{count}}",String(ce)),oe?.addSuffix?oe.comparison&&oe.comparison>0?Re+"\u5185":Re+"\u524d":Re},formatLong:mO,formatRelative:(ye,ce,oe,Re)=>{const Dt=jv[ye];return"function"==typeof Dt?Dt(ce,oe,Re):Dt},localize:{ordinalNumber:(ye,ce)=>{const oe=Number(ye);switch(ce?.unit){case"date":return oe.toString()+"\u65e5";case"hour":return oe.toString()+"\u65f6";case"minute":return oe.toString()+"\u5206";case"second":return oe.toString()+"\u79d2";default:return"\u7b2c "+oe.toString()}},era:Ct({values:{narrow:["\u524d","\u516c\u5143"],abbreviated:["\u524d","\u516c\u5143"],wide:["\u516c\u5143\u524d","\u516c\u5143"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["\u7b2c\u4e00\u5b63","\u7b2c\u4e8c\u5b63","\u7b2c\u4e09\u5b63","\u7b2c\u56db\u5b63"],wide:["\u7b2c\u4e00\u5b63\u5ea6","\u7b2c\u4e8c\u5b63\u5ea6","\u7b2c\u4e09\u5b63\u5ea6","\u7b2c\u56db\u5b63\u5ea6"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]},defaultWidth:"wide"}),day:Ct({values:{narrow:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],short:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],abbreviated:["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],wide:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"\u4e0a",pm:"\u4e0b",midnight:"\u51cc\u6668",noon:"\u5348",morning:"\u65e9",afternoon:"\u4e0b\u5348",evening:"\u665a",night:"\u591c"},abbreviated:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u95f4"},wide:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u95f4"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u4e0a",pm:"\u4e0b",midnight:"\u51cc\u6668",noon:"\u5348",morning:"\u65e9",afternoon:"\u4e0b\u5348",evening:"\u665a",night:"\u591c"},abbreviated:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u95f4"},wide:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u95f4"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\u7b2c\s*)?\d+(\u65e5|\u65f6|\u5206|\u79d2)?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^(\u524d)/i,abbreviated:/^(\u524d)/i,wide:/^(\u516c\u5143\u524d|\u516c\u5143)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(\u524d)/i,/^(\u516c\u5143)/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^\u7b2c[\u4e00\u4e8c\u4e09\u56db]\u523b/i,wide:/^\u7b2c[\u4e00\u4e8c\u4e09\u56db]\u523b\u949f/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|\u4e00)/i,/(2|\u4e8c)/i,/(3|\u4e09)/i,/(4|\u56db)/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^(\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d|\u5341[\u4e8c\u4e00])/i,abbreviated:/^(\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d|\u5341[\u4e8c\u4e00]|\d|1[12])\u6708/i,wide:/^(\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d|\u5341[\u4e8c\u4e00])\u6708/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u4e00/i,/^\u4e8c/i,/^\u4e09/i,/^\u56db/i,/^\u4e94/i,/^\u516d/i,/^\u4e03/i,/^\u516b/i,/^\u4e5d/i,/^\u5341(?!(\u4e00|\u4e8c))/i,/^\u5341\u4e00/i,/^\u5341\u4e8c/i],any:[/^\u4e00|1/i,/^\u4e8c|2/i,/^\u4e09|3/i,/^\u56db|4/i,/^\u4e94|5/i,/^\u516d|6/i,/^\u4e03|7/i,/^\u516b|8/i,/^\u4e5d|9/i,/^\u5341(?!(\u4e00|\u4e8c))|10/i,/^\u5341\u4e00|11/i,/^\u5341\u4e8c|12/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i,short:/^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i,abbreviated:/^\u5468[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i,wide:/^\u661f\u671f[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/\u65e5/i,/\u4e00/i,/\u4e8c/i,/\u4e09/i,/\u56db/i,/\u4e94/i,/\u516d/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{any:/^(\u4e0a\u5348?|\u4e0b\u5348?|\u5348\u591c|[\u4e2d\u6b63]\u5348|\u65e9\u4e0a?|\u4e0b\u5348|\u665a\u4e0a?|\u51cc\u6668|)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u4e0a\u5348?/i,pm:/^\u4e0b\u5348?/i,midnight:/^\u5348\u591c/i,noon:/^[\u4e2d\u6b63]\u5348/i,morning:/^\u65e9\u4e0a/i,afternoon:/^\u4e0b\u5348/i,evening:/^\u665a\u4e0a?/i,night:/^\u51cc\u6668/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},s0={lessThanXSeconds:{one:"\u5c11\u65bc 1 \u79d2",other:"\u5c11\u65bc {{count}} \u79d2"},xSeconds:{one:"1 \u79d2",other:"{{count}} \u79d2"},halfAMinute:"\u534a\u5206\u9418",lessThanXMinutes:{one:"\u5c11\u65bc 1 \u5206\u9418",other:"\u5c11\u65bc {{count}} \u5206\u9418"},xMinutes:{one:"1 \u5206\u9418",other:"{{count}} \u5206\u9418"},xHours:{one:"1 \u5c0f\u6642",other:"{{count}} \u5c0f\u6642"},aboutXHours:{one:"\u5927\u7d04 1 \u5c0f\u6642",other:"\u5927\u7d04 {{count}} \u5c0f\u6642"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7d04 1 \u500b\u661f\u671f",other:"\u5927\u7d04 {{count}} \u500b\u661f\u671f"},xWeeks:{one:"1 \u500b\u661f\u671f",other:"{{count}} \u500b\u661f\u671f"},aboutXMonths:{one:"\u5927\u7d04 1 \u500b\u6708",other:"\u5927\u7d04 {{count}} \u500b\u6708"},xMonths:{one:"1 \u500b\u6708",other:"{{count}} \u500b\u6708"},aboutXYears:{one:"\u5927\u7d04 1 \u5e74",other:"\u5927\u7d04 {{count}} \u5e74"},xYears:{one:"1 \u5e74",other:"{{count}} \u5e74"},overXYears:{one:"\u8d85\u904e 1 \u5e74",other:"\u8d85\u904e {{count}} \u5e74"},almostXYears:{one:"\u5c07\u8fd1 1 \u5e74",other:"\u5c07\u8fd1 {{count}} \u5e74"}},Zm={date:In({formats:{full:"y'\u5e74'M'\u6708'd'\u65e5' EEEE",long:"y'\u5e74'M'\u6708'd'\u65e5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:In({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},EO={lastWeek:"'\u4e0a\u500b'eeee p",yesterday:"'\u6628\u5929' p",today:"'\u4eca\u5929' p",tomorrow:"'\u660e\u5929' p",nextWeek:"'\u4e0b\u500b'eeee p",other:"P"},BO={code:"zh-TW",formatDistance:(ye,ce,oe)=>{let Re;const Dt=s0[ye];return Re="string"==typeof Dt?Dt:1===ce?Dt.one:Dt.other.replace("{{count}}",String(ce)),oe?.addSuffix?oe.comparison&&oe.comparison>0?Re+"\u5167":Re+"\u524d":Re},formatLong:Zm,formatRelative:(ye,ce,oe,Re)=>EO[ye],localize:{ordinalNumber:(ye,ce)=>{const oe=Number(ye);switch(ce?.unit){case"date":return oe+"\u65e5";case"hour":return oe+"\u6642";case"minute":return oe+"\u5206";case"second":return oe+"\u79d2";default:return"\u7b2c "+oe}},era:Ct({values:{narrow:["\u524d","\u516c\u5143"],abbreviated:["\u524d","\u516c\u5143"],wide:["\u516c\u5143\u524d","\u516c\u5143"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["\u7b2c\u4e00\u523b","\u7b2c\u4e8c\u523b","\u7b2c\u4e09\u523b","\u7b2c\u56db\u523b"],wide:["\u7b2c\u4e00\u523b\u9418","\u7b2c\u4e8c\u523b\u9418","\u7b2c\u4e09\u523b\u9418","\u7b2c\u56db\u523b\u9418"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]},defaultWidth:"wide"}),day:Ct({values:{narrow:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],short:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],abbreviated:["\u9031\u65e5","\u9031\u4e00","\u9031\u4e8c","\u9031\u4e09","\u9031\u56db","\u9031\u4e94","\u9031\u516d"],wide:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"\u4e0a",pm:"\u4e0b",midnight:"\u51cc\u6668",noon:"\u5348",morning:"\u65e9",afternoon:"\u4e0b\u5348",evening:"\u665a",night:"\u591c"},abbreviated:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u9593"},wide:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u9593"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u4e0a",pm:"\u4e0b",midnight:"\u51cc\u6668",noon:"\u5348",morning:"\u65e9",afternoon:"\u4e0b\u5348",evening:"\u665a",night:"\u591c"},abbreviated:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u9593"},wide:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u9593"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Zo({matchPattern:/^(\u7b2c\s*)?\d+(\u65e5|\u6642|\u5206|\u79d2)?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^(\u524d)/i,abbreviated:/^(\u524d)/i,wide:/^(\u516c\u5143\u524d|\u516c\u5143)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(\u524d)/i,/^(\u516c\u5143)/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^\u7b2c[\u4e00\u4e8c\u4e09\u56db]\u523b/i,wide:/^\u7b2c[\u4e00\u4e8c\u4e09\u56db]\u523b\u9418/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|\u4e00)/i,/(2|\u4e8c)/i,/(3|\u4e09)/i,/(4|\u56db)/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^(\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d|\u5341[\u4e8c\u4e00])/i,abbreviated:/^(\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d|\u5341[\u4e8c\u4e00]|\d|1[12])\u6708/i,wide:/^(\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d|\u5341[\u4e8c\u4e00])\u6708/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u4e00/i,/^\u4e8c/i,/^\u4e09/i,/^\u56db/i,/^\u4e94/i,/^\u516d/i,/^\u4e03/i,/^\u516b/i,/^\u4e5d/i,/^\u5341(?!(\u4e00|\u4e8c))/i,/^\u5341\u4e00/i,/^\u5341\u4e8c/i],any:[/^\u4e00|1/i,/^\u4e8c|2/i,/^\u4e09|3/i,/^\u56db|4/i,/^\u4e94|5/i,/^\u516d|6/i,/^\u4e03|7/i,/^\u516b|8/i,/^\u4e5d|9/i,/^\u5341(?!(\u4e00|\u4e8c))|10/i,/^\u5341\u4e00|11/i,/^\u5341\u4e8c|12/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i,short:/^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i,abbreviated:/^\u9031[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i,wide:/^\u661f\u671f[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/\u65e5/i,/\u4e00/i,/\u4e8c/i,/\u4e09/i,/\u56db/i,/\u4e94/i,/\u516d/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{any:/^(\u4e0a\u5348?|\u4e0b\u5348?|\u5348\u591c|[\u4e2d\u6b63]\u5348|\u65e9\u4e0a?|\u4e0b\u5348|\u665a\u4e0a?|\u51cc\u6668)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u4e0a\u5348?/i,pm:/^\u4e0b\u5348?/i,midnight:/^\u5348\u591c/i,noon:/^[\u4e2d\u6b63]\u5348/i,morning:/^\u65e9\u4e0a/i,afternoon:/^\u4e0b\u5348/i,evening:/^\u665a\u4e0a?/i,night:/^\u51cc\u6668/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},GO={lessThanXSeconds:{one:"\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u062a\u064a\u0646",threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062b\u0648\u0627\u0646\u064a",other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062b\u0627\u0646\u064a\u0629"},xSeconds:{one:"\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u062b\u0627\u0646\u062a\u064a\u0646",threeToTen:"{{count}} \u062b\u0648\u0627\u0646\u064a",other:"{{count}} \u062b\u0627\u0646\u064a\u0629"},halfAMinute:"\u0646\u0635\u0641 \u062f\u0642\u064a\u0642\u0629",lessThanXMinutes:{one:"\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629",two:"\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u062a\u064a\u0646",threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062f\u0642\u0627\u0626\u0642",other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062f\u0642\u064a\u0642\u0629"},xMinutes:{one:"\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u062f\u0642\u064a\u0642\u062a\u064a\u0646",threeToTen:"{{count}} \u062f\u0642\u0627\u0626\u0642",other:"{{count}} \u062f\u0642\u064a\u0642\u0629"},aboutXHours:{one:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0633\u0627\u0639\u062a\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0633\u0627\u0639\u0627\u062a \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0633\u0627\u0639\u0629 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xHours:{one:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u0633\u0627\u0639\u062a\u064a\u0646",threeToTen:"{{count}} \u0633\u0627\u0639\u0627\u062a",other:"{{count}} \u0633\u0627\u0639\u0629"},xDays:{one:"\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",two:"\u064a\u0648\u0645\u064a\u0646",threeToTen:"{{count}} \u0623\u064a\u0627\u0645",other:"{{count}} \u064a\u0648\u0645"},aboutXWeeks:{one:"\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062d\u062f \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0623\u0633\u0628\u0648\u0639\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0623\u0633\u0627\u0628\u064a\u0639 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0623\u0633\u0628\u0648\u0639 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xWeeks:{one:"\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062d\u062f",two:"\u0623\u0633\u0628\u0648\u0639\u064a\u0646",threeToTen:"{{count}} \u0623\u0633\u0627\u0628\u064a\u0639",other:"{{count}} \u0623\u0633\u0628\u0648\u0639"},aboutXMonths:{one:"\u0634\u0647\u0631 \u0648\u0627\u062d\u062f \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0634\u0647\u0631\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0623\u0634\u0647\u0631 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0634\u0647\u0631 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xMonths:{one:"\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",two:"\u0634\u0647\u0631\u064a\u0646",threeToTen:"{{count}} \u0623\u0634\u0647\u0631",other:"{{count}} \u0634\u0647\u0631"},aboutXYears:{one:"\u0639\u0627\u0645 \u0648\u0627\u062d\u062f \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0639\u0627\u0645\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0639\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xYears:{one:"\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",two:"\u0639\u0627\u0645\u064a\u0646",threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645",other:"{{count}} \u0639\u0627\u0645"},overXYears:{one:"\u0623\u0643\u062b\u0631 \u0645\u0646 \u0639\u0627\u0645",two:"\u0623\u0643\u062b\u0631 \u0645\u0646 \u0639\u0627\u0645\u064a\u0646",threeToTen:"\u0623\u0643\u062b\u0631 \u0645\u0646 {{count}} \u0623\u0639\u0648\u0627\u0645",other:"\u0623\u0643\u062b\u0631 \u0645\u0646 {{count}} \u0639\u0627\u0645"},almostXYears:{one:"\u0639\u0627\u0645 \u0648\u0627\u062d\u062f \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0639\u0627\u0645\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0639\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"}},WO={date:In({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:In({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:In({formats:{full:"{{date}} '\u0639\u0646\u062f' {{time}}",long:"{{date}} '\u0639\u0646\u062f' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},zO={lastWeek:"'\u0623\u062e\u0631' eeee '\u0639\u0646\u062f' p",yesterday:"'\u0623\u0645\u0633 \u0639\u0646\u062f' p",today:"'\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f' p",tomorrow:"'\u063a\u062f\u0627\u064b \u0639\u0646\u062f' p",nextWeek:"eeee '\u0639\u0646\u062f' p",other:"P"},JO={ordinalNumber:ye=>String(ye),era:Ct({values:{narrow:["\u0642","\u0628"],abbreviated:["\u0642.\u0645.","\u0628.\u0645."],wide:["\u0642\u0628\u0644 \u0627\u0644\u0645\u064a\u0644\u0627\u062f","\u0628\u0639\u062f \u0627\u0644\u0645\u064a\u0644\u0627\u062f"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["\u06311","\u06312","\u06313","\u06314"],wide:["\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0623\u0648\u0644","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062b\u0627\u0646\u064a","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062b\u0627\u0644\u062b","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0631\u0627\u0628\u0639"]},defaultWidth:"wide",argumentCallback:ye=>ye-1}),month:Ct({values:{narrow:["\u064a","\u0641","\u0645","\u0623","\u0645","\u064a","\u064a","\u0623","\u0633","\u0623","\u0646","\u062f"],abbreviated:["\u064a\u0646\u0627","\u0641\u0628\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u0640","\u064a\u0648\u0644\u0640","\u0623\u063a\u0633\u0640","\u0633\u0628\u062a\u0640","\u0623\u0643\u062a\u0640","\u0646\u0648\u0641\u0640","\u062f\u064a\u0633\u0640"],wide:["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"]},defaultWidth:"wide"}),day:Ct({values:{narrow:["\u062d","\u0646","\u062b","\u0631","\u062e","\u062c","\u0633"],short:["\u0623\u062d\u062f","\u0627\u062b\u0646\u064a\u0646","\u062b\u0644\u0627\u062b\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639\u0629","\u0633\u0628\u062a"],abbreviated:["\u0623\u062d\u062f","\u0627\u062b\u0646\u0640","\u062b\u0644\u0627","\u0623\u0631\u0628\u0640","\u062e\u0645\u064a\u0640","\u062c\u0645\u0639\u0629","\u0633\u0628\u062a"],wide:["\u0627\u0644\u0623\u062d\u062f","\u0627\u0644\u0627\u062b\u0646\u064a\u0646","\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621","\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621","\u0627\u0644\u062e\u0645\u064a\u0633","\u0627\u0644\u062c\u0645\u0639\u0629","\u0627\u0644\u0633\u0628\u062a"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"\u0635",pm:"\u0645",midnight:"\u0646",noon:"\u0638",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0645\u0633\u0627\u0621\u0627\u064b",night:"\u0644\u064a\u0644\u0627\u064b"},abbreviated:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0645\u0633\u0627\u0621\u0627\u064b",night:"\u0644\u064a\u0644\u0627\u064b"},wide:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0645\u0633\u0627\u0621\u0627\u064b",night:"\u0644\u064a\u0644\u0627\u064b"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u0635",pm:"\u0645",midnight:"\u0646",noon:"\u0638",morning:"\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0640\u0647\u0631",evening:"\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644"},abbreviated:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631",morning:"\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644"},wide:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0640\u0647\u0631",evening:"\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644"}},defaultFormattingWidth:"wide"})},OC={ordinalNumber:Zo({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:ye=>parseInt(ye,10)}),era:Ki({matchPatterns:{narrow:/^(\u0642|\u0628)/i,abbreviated:/^(\u0642\.?\s?\u0645\.?|\u0642\.?\s?\u0645\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(\u0642\u0628\u0644 \u0627\u0644\u0645\u064a\u0644\u0627\u062f|\u0642\u0628\u0644 \u0627\u0644\u0645\u064a\u0644\u0627\u062f|\u0628\u0639\u062f \u0627\u0644\u0645\u064a\u0644\u0627\u062f|\u0628\u0639\u062f \u0627\u0644\u0645\u064a\u0644\u0627\u062f)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0642\u0628\u0644/i,/^\u0628\u0639\u062f/i]},defaultParseWidth:"any"}),quarter:Ki({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^\u0631[1234]/i,wide:/^\u0627\u0644\u0631\u0628\u0639 [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ye=>ye+1}),month:Ki({matchPatterns:{narrow:/^[\u064a\u0641\u0645\u0623\u0645\u0633\u0646\u062f]/i,abbreviated:/^(\u064a\u0646|\u0641|\u0645\u0627\u0631|\u0623\u0628|\u0645\u0627\u064a|\u064a\u0648\u0646|\u064a\u0648\u0644|\u0623\u063a|\u0633|\u0623\u0643|\u0646|\u062f)/i,wide:/^(\u064a\u0646|\u0641|\u0645\u0627\u0631|\u0623\u0628|\u0645\u0627\u064a|\u064a\u0648\u0646|\u064a\u0648\u0644|\u0623\u063a|\u0633|\u0623\u0643|\u0646|\u062f)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u064a/i,/^\u0641/i,/^\u0645/i,/^\u0623/i,/^\u0645/i,/^\u064a/i,/^\u064a/i,/^\u0623/i,/^\u0633/i,/^\u0623/i,/^\u0646/i,/^\u062f/i],any:[/^\u064a\u0646/i,/^\u0641/i,/^\u0645\u0627\u0631/i,/^\u0623\u0628/i,/^\u0645\u0627\u064a/i,/^\u064a\u0648\u0646/i,/^\u064a\u0648\u0644/i,/^\u0623\u063a/i,/^\u0633/i,/^\u0623\u0643/i,/^\u0646/i,/^\u062f/i]},defaultParseWidth:"any"}),day:Ki({matchPatterns:{narrow:/^[\u062d\u0646\u062b\u0631\u062e\u062c\u0633]/i,short:/^(\u0623\u062d\u062f|\u0627\u062b\u0646\u064a\u0646|\u062b\u0644\u0627\u062b\u0627\u0621|\u0623\u0631\u0628\u0639\u0627\u0621|\u062e\u0645\u064a\u0633|\u062c\u0645\u0639\u0629|\u0633\u0628\u062a)/i,abbreviated:/^(\u0623\u062d\u062f|\u0627\u062b\u0646|\u062b\u0644\u0627|\u0623\u0631\u0628|\u062e\u0645\u064a|\u062c\u0645\u0639\u0629|\u0633\u0628\u062a)/i,wide:/^(\u0627\u0644\u0623\u062d\u062f|\u0627\u0644\u0627\u062b\u0646\u064a\u0646|\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621|\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621|\u0627\u0644\u062e\u0645\u064a\u0633|\u0627\u0644\u062c\u0645\u0639\u0629|\u0627\u0644\u0633\u0628\u062a)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u062d/i,/^\u0646/i,/^\u062b/i,/^\u0631/i,/^\u062e/i,/^\u062c/i,/^\u0633/i],wide:[/^\u0627\u0644\u0623\u062d\u062f/i,/^\u0627\u0644\u0627\u062b\u0646\u064a\u0646/i,/^\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621/i,/^\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621/i,/^\u0627\u0644\u062e\u0645\u064a\u0633/i,/^\u0627\u0644\u062c\u0645\u0639\u0629/i,/^\u0627\u0644\u0633\u0628\u062a/i],any:[/^\u0623\u062d/i,/^\u0627\u062b/i,/^\u062b/i,/^\u0623\u0631/i,/^\u062e/i,/^\u062c/i,/^\u0633/i]},defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},M0=Ks,P0={bg_BG:rg,cs_CZ:bh,da_DK:ug,de_DE:Bp,el_GR:yc,en_GB:wf,en_US:Ks,es_ES:Ma,es_MX:Ma,fi_FI:Fc,fr_FR:Wg,hr_HR:Ru,hu_HU:Yi,it_IT:S_,ja_JP:J0,ko_KR:gy,nb_NO:Ey,nl_NL:Ov,pl_PL:V_,pt_BR:YE,pt_PT:vM,ro_RO:u1,ru_RU:FM,sk_SK:tP,sl_SI:hS,sv_SE:SP,th_TH:RP,tr_TR:JP,uk_UA:XS,zh_CN:M1,zh_TW:BO,ar_SA:{code:"ar-SA",formatDistance:(ye,ce,oe)=>{let Re;const Dt=GO[ye];return Re="string"==typeof Dt?Dt:1===ce?Dt.one:2===ce?Dt.two:ce<=10?Dt.threeToTen.replace("{{count}}",String(ce)):Dt.other.replace("{{count}}",String(ce)),oe?.addSuffix?oe.comparison&&oe.comparison>0?"\u0641\u064a \u062e\u0644\u0627\u0644 "+Re:"\u0645\u0646\u0630 "+Re:Re},formatLong:WO,formatRelative:(ye,ce,oe,Re)=>zO[ye],localize:JO,match:OC,options:{weekStartsOn:0,firstWeekContainsDate:1}}};class Op{static parseISODate(ce){return function _c(ye,ce){const oe=ce?.additionalDigits??2,Re=function en(ye){const ce={},oe=ye.split(Jl.dateTimeDelimiter);let Re;if(oe.length>2)return ce;if(/:/.test(oe[0])?Re=oe[0]:(ce.date=oe[0],Re=oe[1],Jl.timeZoneDelimiter.test(ce.date)&&(ce.date=ye.split(Jl.timeZoneDelimiter)[0],Re=ye.substr(ce.date.length,ye.length))),Re){const Dt=Jl.timezone.exec(Re);Dt?(ce.time=Re.replace(Dt[1],""),ce.timezone=Dt[1]):ce.time=Re}return ce}(ye);let Dt;if(Re.date){const Ao=function Ee(ye,ce){const oe=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+ce)+"})|(\\d{2}|[+-]\\d{"+(2+ce)+"})$)"),Re=ye.match(oe);if(!Re)return{year:NaN,restDateString:""};const Dt=Re[1]?parseInt(Re[1]):null,ni=Re[2]?parseInt(Re[2]):null;return{year:null===ni?Dt:100*ni,restDateString:ye.slice((Re[1]||Re[2]).length)}}(Re.date,oe);Dt=function kt(ye,ce){if(null===ce)return new Date(NaN);const oe=ye.match(xl);if(!oe)return new Date(NaN);const Re=!!oe[4],Dt=Qt(oe[1]),ni=Qt(oe[2])-1,$i=Qt(oe[3]),Dr=Qt(oe[4]),Ao=Qt(oe[5])-1;if(Re)return function As(ye,ce,oe){return ce>=1&&ce<=53&&oe>=0&&oe<=6}(0,Dr,Ao)?function hr(ye,ce,oe){const Re=new Date(0);Re.setUTCFullYear(ye,0,4);const ni=7*(ce-1)+oe+1-(Re.getUTCDay()||7);return Re.setUTCDate(Re.getUTCDate()+ni),Re}(ce,Dr,Ao):new Date(NaN);{const ms=new Date(0);return function Cs(ye,ce,oe){return ce>=0&&ce<=11&&oe>=1&&oe<=(qr[ce]||(so(ye)?29:28))}(ce,ni,$i)&&function ba(ye,ce){return ce>=1&&ce<=(so(ye)?366:365)}(ce,Dt)?(ms.setUTCFullYear(ce,ni,Math.max(Dt,$i)),ms):new Date(NaN)}}(Ao.restDateString,Ao.year)}if(!Dt||isNaN(Dt.getTime()))return new Date(NaN);const ni=Dt.getTime();let Dr,$i=0;if(Re.time&&($i=function Zn(ye){const ce=ye.match(ic);if(!ce)return NaN;const oe=Vi(ce[1]),Re=Vi(ce[2]),Dt=Vi(ce[3]);return function ol(ye,ce,oe){return 24===ye?0===ce&&0===oe:oe>=0&&oe<60&&ce>=0&&ce<60&&ye>=0&&ye<25}(oe,Re,Dt)?oe*Ri+Re*Si+1e3*Dt:NaN}(Re.time),isNaN($i)))return new Date(NaN);if(!Re.timezone){const Ao=new Date(ni+$i),ms=new Date(0);return ms.setFullYear(Ao.getUTCFullYear(),Ao.getUTCMonth(),Ao.getUTCDate()),ms.setHours(Ao.getUTCHours(),Ao.getUTCMinutes(),Ao.getUTCSeconds(),Ao.getUTCMilliseconds()),ms}return Dr=function vr(ye){if("Z"===ye)return 0;const ce=ye.match(vt);if(!ce)return 0;const oe="+"===ce[1]?-1:1,Re=parseInt(ce[2]),Dt=ce[3]&&parseInt(ce[3])||0;return function cl(ye,ce){return ce>=0&&ce<=59}(0,Dt)?oe*(Re*Ri+Dt*Si):NaN}(Re.timezone),isNaN(Dr)?new Date(NaN):new Date(ni+$i+Dr)}(ce)}static isValidDate(ce){try{return"string"==typeof ce&&(ce=this.parseISODate(ce)),Ho(ce)}catch{return!1}}static getISODate(ce){return function ya(ye,ce){const oe=Lr(ye);if(isNaN(oe.getTime()))throw new RangeError("Invalid time value");const Re=ce?.format??"extended",Dt=ce?.representation??"complete";let ni="",$i="";const Dr="extended"===Re?"-":"",Ao="extended"===Re?":":"";if("time"!==Dt){const ms=Oo(oe.getDate(),2),us=Oo(oe.getMonth()+1,2);ni=`${Oo(oe.getFullYear(),4)}${Dr}${us}${Dr}${ms}`}if("date"!==Dt){const ms=oe.getTimezoneOffset();if(0!==ms){const Ya=Math.abs(ms);$i=`${ms<0?"+":"-"}${Oo(Math.trunc(Ya/60),2)}:${Oo(Ya%60,2)}`}else $i="Z";ni=`${ni}${""===ni?"":"T"}${[Oo(oe.getHours(),2),Oo(oe.getMinutes(),2),Oo(oe.getSeconds(),2)].join(Ao)}${$i}`}return ni}(ce)}static getDifferenceInTime(ce,oe,Re){switch(Re){case sl.SECONDS:return Ol(ce,oe);case sl.MINUTES:return function Du(ye,ce,oe){const Re=dl(ye,ce)/Si;return ll(oe?.roundingMethod)(Re)}(ce,oe);case sl.HOURS:return function Kc(ye,ce,oe){const Re=dl(ye,ce)/Ri;return ll(oe?.roundingMethod)(Re)}(ce,oe);case sl.MILLISECONDS:return dl(ce,oe);default:throw new Error(`Unsupported metric: ${Re}`)}}static addTime(ce,oe,Re){switch(Re){case sl.HOURS:return Gd(ce,oe);case sl.MINUTES:return dc(ce,oe);case sl.SECONDS:return wc(ce,oe);case sl.MILLISECONDS:return Tl(ce,oe);case sl.DAYS:return Fs(ce,oe);case sl.WEEKS:return Co(ce,oe);case sl.MONTHS:return Yc(ce,oe);case sl.YEARS:return pu(ce,oe);default:throw new Error('Invalid metric. Use "hours", "minutes", "seconds", "milliseconds", "days", "weeks", "months", or "years".')}}static subtractTime(ce,oe,Re){switch(Re){case sl.HOURS:return function kl(ye,ce){return Gd(ye,-ce)}(ce,oe);case sl.MINUTES:return function jc(ye,ce){return dc(ye,-ce)}(ce,oe);case sl.SECONDS:return function Xc(ye,ce){return wc(ye,-ce)}(ce,oe);case sl.MILLISECONDS:return function jd(ye,ce){return Tl(ye,-ce)}(ce,oe);case sl.DAYS:return function Wd(ye,ce){return Fs(ye,-ce)}(ce,oe);case sl.WEEKS:return function Lu(ye,ce){return Co(ye,-ce)}(ce,oe);case sl.MONTHS:return function uc(ye,ce){return Yc(ye,-ce)}(ce,oe);case sl.YEARS:return function id(ye,ce){return pu(ye,-ce)}(ce,oe);default:throw new Error('Invalid metric. Use "hours", "minutes", "seconds", "milliseconds", "days", "weeks", "months", or "years".')}}static getStartOfDay(ce){return Io(ce)}static getEndOfDay(ce){return ia(ce)}static getDayOfWeek(ce){return function Ed(ye){return Lr(ye).getDay()}(ce)}static getStartOfMonth(ce){return function $d(ye){const ce=Lr(ye);return ce.setDate(1),ce.setHours(0,0,0,0),ce}(ce)}static getMonthOfYear(ce){return function xd(ye){return Lr(ye).getMonth()}(ce)+1}static getYear(ce){return function rd(ye){return Lr(ye).getFullYear()}(ce)}static isSameOrAfter(ce,oe,Re){switch(Re){case Vl.DAY:return this.isSameOrAfterDay(ce,oe);case Vl.WEEK:return this.isSameOrAfterWeek(ce,oe);case Vl.MONTH:return this.isSameOrAfterMonth(ce,oe);case Vl.YEAR:return this.isSameOrAfterYear(ce,oe)}}static isSame(ce,oe,Re){switch(Re){case Vl.DAY:return function Qc(ye,ce){return+Io(ye)==+Io(ce)}(ce,oe);case Vl.WEEK:return Bl(ce,oe);case Vl.MONTH:return ql(ce,oe);case Vl.YEAR:return Td(ce,oe)}}static createDuration(ce){const oe=Math.floor(ce/Wc);return{seconds:ce%60,minutes:Math.floor(ce%Wc/60),hours:oe}}static convertDurationToMilliseconds(ce){const[oe,Re,Dt]=ce.split(":").map(Number);return 1e3*(oe*Wc+60*Re+Dt)}static isSameOrAfterDay(ce,oe){return function Gl(ye,ce){return+Lr(ye)==+Lr(ce)}(ce,oe)||Ac(ce,oe)}static isSameOrAfterWeek(ce,oe){return Bl(ce,oe)||Ac(ce,oe)}static isSameOrAfterMonth(ce,oe){return ql(ce,oe)||Ac(ce,oe)}static isSameOrAfterYear(ce,oe){return Td(ce,oe)||Ac(ce,oe)}static isBetween(ce,oe,Re,Dt="()"){const ni="["===Dt[0]?!Kd(ce,oe):Ac(ce,oe),$i="]"===Dt[1]?!Ac(ce,Re):Kd(ce,Re);return ni&&$i}static getSecondsFromDate(ce){return ce.getSeconds()}static getMinutesFromDate(ce){return ce.getMinutes()}static getHoursFromDate(ce){return ce.getHours()}static getDaysElapsedFromDate(ce){const oe=new Date(ce).getTime(),Re=(new Date).getTime(),Dt=Math.max(0,Math.floor((Re-oe)/1e3));return Math.max(0,Math.floor(Dt/86400))}static secondsToHHMMSS(ce){const oe=Math.floor(ce/Wc),Re=Math.floor(ce%Wc/60),Dt=Math.floor(ce%60);return`${String(oe).padStart(2,"0")}:${String(Re).padStart(2,"0")}:${String(Dt).padStart(2,"0")}`}static convertTimeStringToSeconds(ce){const[oe,Re,Dt]=ce.split(":").map(Number);return oe*Wc+60*Re+Dt}static fromNow(ce,oe,Re){try{if("string"==typeof ce&&(ce=this.parseISODate(ce)),oe){const Dt=this.detectLocale(oe);return Zl(ce,{...Re,locale:Dt})}return Zl(ce,{...Re})}catch{return""}}static detectLocale(ce){return P0[ce]||M0}}let O0=(()=>{class ye{constructor(oe,Re){this.localeService=Re,this.logger=oe.getLogger("date-handler-service")}initialize(){this.localeService.localeChanged.subscribe(oe=>{this.currentLocale=this.detectLocale()})}detectLocale(){const oe=this.localeService.getLocale();return Op.detectLocale(oe)}formatDate(oe,Re){try{return"string"==typeof oe&&(oe=Op.parseISODate(oe)),function Il(ye,ce,oe){const Re=mr(),Dt=oe?.locale??Re.locale??Ks,ni=oe?.firstWeekContainsDate??oe?.locale?.options?.firstWeekContainsDate??Re.firstWeekContainsDate??Re.locale?.options?.firstWeekContainsDate??1,$i=oe?.weekStartsOn??oe?.locale?.options?.weekStartsOn??Re.weekStartsOn??Re.locale?.options?.weekStartsOn??0,Dr=Lr(ye);if(!Ho(Dr))throw new RangeError("Invalid time value");let Ao=ce.match(Ws).map(us=>{const hl=us[0];return"p"===hl||"P"===hl?(0,gl[hl])(us,Dt.formatLong):us}).join("").match(xa).map(us=>{if("''"===us)return{isToken:!1,value:"'"};const hl=us[0];if("'"===hl)return{isToken:!1,value:Cl(us)};if(Xa[hl])return{isToken:!0,value:us};if(hl.match(Ka))throw new RangeError("Format string contains an unescaped latin alphabet character `"+hl+"`");return{isToken:!1,value:us}});Dt.localize.preprocessor&&(Ao=Dt.localize.preprocessor(Dr,Ao));const ms={firstWeekContainsDate:ni,weekStartsOn:$i,locale:Dt};return Ao.map(us=>{if(!us.isToken)return us.value;const hl=us.value;return(!oe?.useAdditionalWeekYearTokens&&Oi(hl)||!oe?.useAdditionalDayOfYearTokens&&oi(hl))&&ki(hl,ce,String(ye)),(0,Xa[hl[0]])(Dr,hl,Dt.localize,ms)}).join("")}(oe,Re,{locale:this.currentLocale})}catch(Dt){this.logger.error("Error formatting date:",Dt)}}parseDate(oe,Re){return function Xo(ye,ce,oe,Re){const Dt=function lc(){return Object.assign({},mr())}(),ni=Re?.locale??Dt.locale??Ks,$i=Re?.firstWeekContainsDate??Re?.locale?.options?.firstWeekContainsDate??Dt.firstWeekContainsDate??Dt.locale?.options?.firstWeekContainsDate??1,Dr=Re?.weekStartsOn??Re?.locale?.options?.weekStartsOn??Dt.weekStartsOn??Dt.locale?.options?.weekStartsOn??0;if(""===ce)return""===ye?Lr(oe):qt(oe,NaN);const Ao={firstWeekContainsDate:$i,weekStartsOn:Dr,locale:ni},ms=[new Yt],us=ce.match(qi).map(Ya=>{const Ll=Ya[0];return Ll in gl?(0,gl[Ll])(Ya,ni.formatLong):Ya}).join("").match(Bi),hl=[];for(let Ya of us){!Re?.useAdditionalWeekYearTokens&&Oi(Ya)&&ki(Ya,ce,ye),!Re?.useAdditionalDayOfYearTokens&&oi(Ya)&&ki(Ya,ce,ye);const Ll=Ya[0],cd=mi[Ll];if(cd){const{incompatibleTokens:Kv}=cd;if(Array.isArray(Kv)){const EC=hl.find(xC=>Kv.includes(xC.token)||xC.token===Ll);if(EC)throw new RangeError(`The format string mustn't contain \`${EC.fullToken}\` and \`${Ya}\` at the same time`)}else if("*"===cd.incompatibleTokens&&hl.length>0)throw new RangeError(`The format string mustn't contain \`${Ya}\` and any other token at the same time`);hl.push({token:Ll,fullToken:Ya});const Yv=cd.run(ye,Ya,ni.match,Ao);if(!Yv)return qt(oe,NaN);ms.push(Yv.setter),ye=Yv.rest}else{if(Ll.match(Br))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Ll+"`");if("''"===Ya?Ya="'":"'"===Ll&&(Ya=Do(Ya)),0!==ye.indexOf(Ya))return qt(oe,NaN);ye=ye.slice(Ya.length)}}if(ye.length>0&&Vr.test(ye))return qt(oe,NaN);const jl=ms.map(Ya=>Ya.priority).sort((Ya,Ll)=>Ll-Ya).filter((Ya,Ll,cd)=>cd.indexOf(Ya)===Ll).map(Ya=>ms.filter(Ll=>Ll.priority===Ya).sort((Ll,cd)=>cd.subPriority-Ll.subPriority)).map(Ya=>Ya[0]);let Gc=Lr(oe);if(isNaN(Gc.getTime()))return qt(oe,NaN);const qc={};for(const Ya of jl){if(!Ya.validate(Gc,Ao))return qt(oe,NaN);const Ll=Ya.set(Gc,qc,Ao);Array.isArray(Ll)?(Gc=Ll[0],Object.assign(qc,Ll[1])):Gc=Ll}return qt(oe,Gc)}(oe,Re,new Date,{locale:this.currentLocale})}isValidDateTime(oe,Re){const Dt=this.parseDate(oe,Re);return Op.isValidDate(Dt)}fromNow(oe,Re){return"string"==typeof oe&&(oe=Op.parseISODate(oe)),Zl(oe,{...Re,locale:this.currentLocale})}getLocalizedDate(oe,Re=null){return oe?this.localeService.localeChanged.pipe((0,ue.s)(1),(0,D.ZZ)(Dt=>{const ni=new Date(oe);if(isNaN(ni.getTime()))return(0,f.$)("Invalid Date");const $i=Dt.replace("_","-");Re||(Re={day:"numeric",month:"long",year:"numeric"});const Dr=`${ni.toLocaleDateString($i,Re)}`;return(0,y.of)(Dr)}),(0,M.W)(Dt=>(this.logger.info("Error while localizing date ",Dt),(0,f.$)(Dt)))):(0,y.of)(null)}getLocalizedTime(oe,Re=null){return oe?this.localeService.localeChanged.pipe((0,ue.s)(1),(0,D.ZZ)(Dt=>{const ni=new Date(oe);if(isNaN(ni.getTime()))return(0,f.$)("Invalid Date");const $i=Dt.replace("_","-");Re||(Re={hour:"numeric",minute:"2-digit"});const Dr=`${ni.toLocaleTimeString($i,Re)}`;return(0,y.of)(Dr)}),(0,M.W)(Dt=>(this.logger.info("Error while localizing time ",Dt),(0,f.$)(Dt)))):(0,y.of)(null)}getLocalizedDateTime(oe,Re=null,Dt=null){return(0,ve.zV)([this.getLocalizedDate(oe,Re),this.getLocalizedTime(oe,Dt)]).pipe((0,ue.s)(1),(0,c.T)(([ni,$i])=>({date:ni,time:$i})))}formatAMPMToUpperCase(oe){return oe?oe.replace(/\bam\b/,"AM").replace(/\bpm\b/,"PM"):""}static{this.\u0275fac=function(Re){return new(Re||ye)(ie.KVO(L.J6),ie.KVO(me))}}static{this.\u0275prov=ie.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}}return ye})();const Sd=[{name:"Dark",key:"dark",className:"",isDefaultTheme:!0},{name:"Light",key:"light",className:"light-theme"},{name:"System",key:"system",className:"",isSystemTheme:!0}],$v="userThemePreference";let E0=(()=>{class ye{constructor(oe,Re,Dt){this.loggingService=oe,this.bridgeService=Re,this.windowService=Dt,this.listeningToSystemThemeChanges=!1,this.handleSystemThemeChange=ni=>{this.systemTheme=this.getSystemTheme(ni),this.applyThemeToBody(this.systemTheme),this.logger.info("System theme preference changed:",this.isSystemLightTheme(ni)?"light":"dark")},this.logger=this.loggingService.getLogger("crimson/AppThemeService"),this.systemThemeMediaQuery=Dt.window.matchMedia("(prefers-color-scheme: light)")}initialize(){return this.logger.info("Initializing"),this.fetchThemePreferenceFromStorage().pipe((0,ue.s)(1),(0,c.T)(oe=>{if(this.logger.info("Response from fetchThemePreference: ",oe),oe)if(oe.value){this.currentTheme=Sd.find(Dt=>Dt.key===oe.value);const Re=Sd.some(Dt=>Dt.isSystemTheme);this.currentTheme?.isSystemTheme&&Re?(this.systemTheme=this.getSystemTheme(),this.applyThemeToBody(this.systemTheme),this.listenToSystemThemeChanges()):(this.currentTheme||(this.currentTheme=Sd.find(Dt=>Dt.isDefaultTheme)),this.applyThemeToBody(this.currentTheme))}else this.currentTheme=Sd.find(Re=>Re.isDefaultTheme)}))}getThemeValToSendInTelemetry(){const oe=this.getCurrentTheme(),Re=this.getCurrentAppliedTheme();return oe?.isSystemTheme?`${oe?.key}_${Re?.key}`:oe?.key}saveAndSetAppTheme(oe){if(oe.isSystemTheme?(this.systemTheme=this.getSystemTheme(),this.listenToSystemThemeChanges()):this.listeningToSystemThemeChanges&&this.unsubscribeFromSystemThemeChanges(),void 0!==oe?.className&&oe.key){this.logger.info("Setting currentTheme to ",oe),this.currentTheme=oe;const Re=this.currentTheme.isSystemTheme?this.systemTheme:this.currentTheme;return this.currentTheme.isDefaultTheme?this.deleteThemePreferenceFromStorage(oe).pipe((0,ue.s)(1),(0,I.M)(Dt=>{Dt&&(this.logger.info("Success calling deleteThemePreferenceFromStorage: ",Dt),this.applyThemeToBody(Re))}),(0,M.W)(Dt=>(this.logger.error("Error deleting theme preference",Dt),(0,y.of)(!1)))):this.saveThemePreferenceInStorage(oe).pipe((0,ue.s)(1),(0,I.M)(Dt=>{Dt&&(this.logger.info("Success calling saveThemePreferenceInStorage: ",Dt),this.applyThemeToBody(Re))}),(0,M.W)(Dt=>(this.logger.error("Error saving theme preference",Dt),(0,y.of)(!1))))}this.logger.error("theme object is invalid- ",oe)}getCurrentTheme(){return this.currentTheme}getCurrentAppliedTheme(){return this.getCurrentTheme()?.isSystemTheme?this.systemTheme:this.getCurrentTheme()}listenToSystemThemeChanges(){this.logger.info("inside listenToSystemThemeChanges"),this.listeningToSystemThemeChanges||(this.systemThemeMediaQuery.addEventListener("change",this.handleSystemThemeChange),this.listeningToSystemThemeChanges=!0)}unsubscribeFromSystemThemeChanges(){this.logger.info("inside unsubscribeFromSystemThemeChanges"),this.systemThemeMediaQuery.removeEventListener("change",this.handleSystemThemeChange),this.listeningToSystemThemeChanges=!1}saveThemePreferenceInStorage(oe){const Re={key:$v,value:oe.key};return this.logger.info("Saving theme preference key - sending the params as",Re),this.bridgeService.executeCommand(se.Ts.Common.Nvkvstorage.Write,Re).pipe((0,I.M)(Dt=>(this.logger.info("Success calling Nvkvstorage.Write API"),Dt)),(0,T.u)(!0),(0,M.W)(Dt=>(this.logger.error("Error during Nvkvstorage.Write api call - ",Dt),(0,f.$)(Dt))))}deleteThemePreferenceFromStorage(oe){const Re={key:$v};return this.logger.info("Deleting theme preference key - sending the params as",Re),this.bridgeService.executeCommand(se.Ts.Common.Nvkvstorage.Delete,Re).pipe((0,I.M)(Dt=>(this.logger.info("Success calling Nvkvstorage.Delete API"),Dt)),(0,T.u)(!0),(0,M.W)(Dt=>(this.logger.error("Error during Nvkvstorage.Delete api call - ",Dt),(0,f.$)(Dt))))}fetchThemePreferenceFromStorage(){return this.bridgeService.executeCommand(se.Ts.Common.Nvkvstorage.Read,{key:$v}).pipe((0,c.T)(Re=>Re))}listenToThemePreferenceFromStorage(){return this.bridgeService.executeCommand(se.Ts.Common.Nvkvstorage.Notification).pipe((0,c.T)(oe=>oe))}applyThemeToBody(oe){const Re=this.windowService.window.document.body.classList;Sd?.forEach(Dt=>{Dt.className&&Re?.remove(Dt.className)}),this.applyThemeToCEF(oe).pipe((0,ue.s)(1)).subscribe(()=>{this.logger.info("success calling applyThemeToCEF")},Dt=>{this.logger.error("Failure calling applyThemeToCEF ",Dt)}),oe.className&&(this.logger.info("Setting body class as ",oe.className),Re?.add(oe.className))}applyThemeToCEF(oe){return this.bridgeService.executeCommand(se.Ts.Common.Applicationcontrol.SetCEFWindowTheme,{systemTheme:oe.key}).pipe((0,I.M)(Dt=>(this.logger.info("Success calling SetCEFWindowTheme API",Dt),Dt)),(0,T.u)(!0),(0,M.W)(Dt=>(this.logger.error("Error during SetCEFWindowTheme API - ",Dt),(0,f.$)(Dt))))}isSystemLightTheme(oe){return oe||(oe=this.systemThemeMediaQuery),oe.matches}getSystemTheme(oe){const Re=this.isSystemLightTheme(oe);return Sd.find(Dt=>Dt.key===(Re?"light":"dark"))}listenAndApplyTheme(){return this.listenToThemePreferenceFromStorage().pipe((0,c.T)(oe=>{if(oe)if(oe.value){this.currentTheme=Sd.find(Dt=>Dt.key===oe.value);const Re=Sd.some(Dt=>Dt.isSystemTheme);this.currentTheme?.isSystemTheme&&Re?(this.systemTheme=this.getSystemTheme(),this.applyThemeToBody(this.systemTheme),this.listenToSystemThemeChanges()):(this.currentTheme||(this.currentTheme=Sd.find(Dt=>Dt.isDefaultTheme)),this.applyThemeToBody(this.currentTheme))}else this.currentTheme=Sd.find(Re=>Re.isDefaultTheme),this.applyThemeToBody(this.currentTheme);return oe}),(0,M.W)(oe=>(this.logger.error("Error during listenAndApplyTheme : ",oe),(0,f.$)(oe))))}static{this.\u0275fac=function(Re){return new(Re||ye)(ie.KVO(L.J6),ie.KVO(n.NZ),ie.KVO(Ve))}}static{this.\u0275prov=ie.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}}return ye})(),x0=(()=>{class ye{constructor(oe,Re){this.loggingService=oe,this.bridgeService=Re,this.requestId=0,this.logger=this.loggingService.getLogger("CustomHttpService")}getRequestId(){return this.requestId===Number.MAX_SAFE_INTEGER&&(this.logger.error("Max request id achieved!!!"),this.requestId=0),this.requestId++,this.requestId}httpRequest(oe){return this.bridgeService.executeCommand(se.Ts.Common.Httprequest.HttpRequest,oe).pipe((0,ue.s)(1),(0,I.M)(Re=>{},Re=>{this.logger.error("httpRquest failed with error",Re)}))}cancelHttpRequest(oe){return this.bridgeService.executeCommand(se.Ts.Common.Httprequest.CancelHttpRequest,oe).pipe((0,ue.s)(1),(0,I.M)(Re=>{},Re=>{this.logger.error("httpRquest failed with error",Re)}))}static{this.\u0275fac=function(Re){return new(Re||ye)(ie.KVO(L.J6),ie.KVO(n.NZ))}}static{this.\u0275prov=ie.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}}return ye})();class T0{constructor(ce,oe){this.loggingService=ce,this.customHttpService=oe,this.logger=this.loggingService.getLogger("CustomHttpFetch"),this.customFetchInterface=this.fetch.bind(this)}fetch(ce,oe){const Re=this.customHttpService.getRequestId();return this.fetchInternal(Re,ce,Date.now(),oe)}fetchInternal(ce,oe,Re,Dt){return new Promise((ni,$i)=>{if(Dt?.signal?.aborted)return void $i({name:"AbortError",code:DOMException.ABORT_ERR,reason:Dt?.signal.reason});const Dr=()=>{this.cancel(ce).pipe((0,ue.s)(1)).subscribe(),$i({name:"AbortError",code:DOMException.ABORT_ERR,reason:Dt?.signal.reason}),Dt?.signal?.removeEventListener("abort",Dr)};Dt?.signal?.addEventListener("abort",Dr);const Ao=this.mapFetchParamsToRequestParams(Dt,oe,ce),ms=Date.now();this.customHttpService.httpRequest(Ao).pipe((0,I.M)(us=>{if(us.failure)us.failure.networkError?(this.logger.info("rejecting with network error"),$i({name:"NetworkError",extendedCode:us.failure.code,stack:us.failure.exception,message:us.failure.message})):(this.logger.info("rejecting with other error"),$i({name:"OtherError",stack:us.failure.exception,message:us.failure.message}));else if(us.cancelled)this.logger.info("Abort request was successfully cancelled");else{const hl=Date.now(),jl=this.mapResultToFetchResult(us);this.logger.info("type: ",Dt?.method,", took fetch time : ",hl-ms,", total time: ",Date.now()-Re),ni(jl)}}),(0,M.W)(us=>(this.logger.info("catching and rejecting with other error: ",us.message),$i({name:"OtherError",message:us.message}),Oa.w))).pipe((0,ue.s)(1)).subscribe()})}cancel(ce){return this.logger.info("cancel requestId: ",ce),this.customHttpService.cancelHttpRequest({requestId:ce})}mapFetchParamsToRequestParams(ce,oe,Re){const Dt=new Headers(ce?.headers),ni=[];Dt.forEach((ms,us)=>{ni.push({keyName:us,keyValue:ms})}),Dt.has("referer")||ni.push({keyName:"referer",keyValue:document.referrer||window.location.origin});let $i=null;ce?.cache&&($i=Object.values(se.Or.Common.Httprequest.RequestCache).find(ms=>ms===ce?.cache),$i||this.logger.info("cache does not match defined enums: ",$i," for input param ",ce?.cache));let Dr=null;return ce?.method&&(Dr=Object.values(se.Or.Common.Httprequest.HttpRequestType).find(ms=>ms===ce?.method),Dr||this.logger.info("requestMethod does not match defined enums: ",Dr," for input param ",ce?.method)),{requestId:Re,url:oe,body:"string"==typeof ce?.body?ce?.body:null,requestCache:$i,headers:ni,httpRequestType:Dr||se.Or.Common.Httprequest.HttpRequestType.GET,origin:window.location.origin,userAgent:window.navigator.userAgent}}mapResultToFetchResult(ce){const oe=new Headers;return ce?.responseHeaders?.forEach(Dt=>{oe.append(Dt.keyName,Dt.keyValue)}),new Response(ce.body,{status:ce.status,statusText:ce.statusText,headers:oe})}}},6478:(Bt,z,s)=>{"use strict";s.d(z,{Z1:()=>me,Af:()=>r,Se:()=>_,ls:()=>i,pB:()=>O,NS:()=>f});var n=s(59859),l=s(91384),d=s(14714),v=s(43615),S=s(26875),y=s(81834),f=function(ne){return ne.HttpUrl="http.url",ne.HttpStatusCode="http.status_code",ne.HttpStatusCodeFamily="http.status_code_family",ne.HttpMethod="http.method",ne.HttpHostname="http.hostname",ne.HttpHeadersPrefix="http.headers.",ne.HttpPath="http.path",ne.HttpErrorText="http.error_text",ne.ParamsPrefix="params.",ne.Error="error",ne.SpanKind="span.kind",ne.Component="component",ne.ClientOs="client.os",ne.ClientOsName="client.os.name",ne.ClientOsVersion="client.os.version",ne.ServiceVersion="service.version",ne.ServiceType="service.type",ne.Type="type",ne.DeviceId="deviceId",ne.AppName="appName",ne.LayoutExecutionId="layoutExecutionId",ne.Origin="origin",ne.VpcId="vpcId",ne.Locale="locale",ne.Trigger="trigger",ne.LoginStatus="loginStatus",ne.CmsId="cmsId",ne.FailurePoint="failurePoint",ne.ErrorCode="errorCode",ne.ErrorType="errorType",ne.NetworkOverridePresent="networkOverridePresent",ne.NetworkTestStatus="networkTestStatus",ne.ZoneName="zone.name",ne.ZoneAddress="zone.address",ne.OobeDialogShown="oobeDialogShown",ne.LoginWindowShown="loginWindowShown",ne.LaunchSource="launchSource",ne.ShortName="shortName",ne.UsedLatencyBasedRouting="usedLatencyBasedRouting",ne.IsSessionAutoResumed="isSessionAutoResumed",ne.ErrorDetails="errorDetails",ne.RoutingOverrideUsed="routingOverrideUsed",ne.OverrideZoneName="overrideZoneName",ne.OverrideZoneAddress="overrideZoneAddress",ne.SessionId="sessionId",ne.SkippedAuthCheck="skippedAuthCheck",ne.CountryCode="countryCode",ne.FastestJarvisDomain="fastestJarvisDomain",ne.TraceId="traceId",ne.RequestId="requestId",ne.PanelType="panelType",ne.BeforeEventDuration="beforeEventDuration",ne.PresentDuration="presentDuration",ne.PushMessageType="pushMessageType",ne.AccountLinkingProvider="accountLinkingProvider",ne.HasFilters="hasFilters",ne.HasSearchQuery="hasSearchQuery",ne.IsFirstPage="isFirstPage",ne.ErrorMessage="errorMessage",ne.ErrorStack="errorStack",ne.DevMode="devMode",ne.PanelName="panelName",ne.SectionId="sectionId",ne.SectionTitle="sectionTitle",ne.LoginMethod="loginMethod",ne.LoginResult="loginResult",ne.LoginErrorCode="loginErrorCode",ne.LoginErrorUrl="loginErrorUrl",ne.LoginIdpId="loginIdpId",ne.GameFound="gameFound",ne}(f||{}),O=function(ne){return ne.DelegateToken="GetDelegateToken",ne.ClientGetLayout="ClientGetLayout",ne.FetchLayout="LayoutManagerGetLayout",ne.GetServerInfo="GetServerInfo",ne.GetSpecificServerInfo="GetSpecificServerInfo",ne.ClientGetAppMetadata="ClientGetAppMetadata",ne.ClientGetAppsList="ClientGetAppsList",ne.FetchAppsList="LayoutManagerGetAppsList",ne.FetchAppMetadata="LayoutManagerGetAppMetadata",ne.FetchSubscriptions="FetchSubscriptions",ne.GetEntitlementStatus="GetEntitlementStatus",ne.GameLaunch="GameLaunch",ne.ClientGetSubscriptions="ClientGetSubscriptions",ne.GetActiveSessions="GetActiveSessions",ne.GetSessionInfo="GetSessionInfo",ne.StartStreaming="StartStreaming",ne.GetUserEntitlements="GetUserEntitlements",ne.UpdateCheck="UpdateCheck",ne.PreStreaming="PreStreaming",ne.StreamerAuthentication="StreamerAuthentication",ne.StreamerAuthorization="StreamerAuthorization",ne.StreamerNetworktest="StreamerNetworkTest",ne.SessionLoading="SessionLoading",ne.GetRatingsInfo="GetRatingsInfo",ne.GxTargetGetFeature="GxTargetGetFeature",ne.GetFastestDomain="GetFastestDomain",ne.JarvisPing="JarvisPing",ne.JarvisOAuth="JarvisOAuth",ne.StarfleetOAuth="StarfleetOAuth",ne.LcarsFetchQueryData="LcarsFetchQueryData",ne.LcarsPostQueryData="LcarsPostQueryData",ne.ClientGetSurvey="ClientGetSurvey",ne.ClientDismissSurvey="ClientDismissSurvey",ne.PlatformSelection="PlatformSelection",ne.PlatformSelectionSharedStorageRead="PlatformSelectionSharedStorageRead",ne.PlatformSelectionDialogInteraction="PlatformSelectionDialogInteraction",ne.AccountLinking="AccountLinking",ne.AccountLinkingDialogInteraction="AccountLinkingDialogInteraction",ne.AlsGetLoginUrl="AlsGetLoginUrl",ne.AlsPostLoginUrl="AlsPostLoginUrl",ne.AlsPostToken="AlsPostToken",ne.AlsSync="AlsSync",ne.AlsDeleteLinking="AlsDeleteLinking",ne.AlsUserLogin="AlsUserLogin",ne.AlsTokenExchange="AlsTokenExchange",ne.AlsUIConnect="AlsUIConnect",ne.AlsUIDisconnect="AlsUIDisconnect",ne.AlsUIReconnect="AlsUIReconnect",ne.AlsUIResync="AlsUIResync",ne.GetAemReleaseHighlights="GetAemReleaseHighlights",ne.GetGfwslInformation="GetGfwslInformation",ne.StarfleetDeleteClientToken="StarfleetDeleteClientToken",ne.StarfleetGetClientToken="StarfleetGetClientToken",ne.StarfleetGetAccessToken="StarfleetGetAccessToken",ne.StarfleetGetUserInfo="StarfleetGetUserInfo",ne.SendTelemetryEvent="SendTelemetryEvent",ne.ClientSettings="ClientSettings",ne.ScheduledMaintenance="ScheduledMaintenance",ne.ScheduledMaintenanceSessionEndError="ScheduledMaintenanceSessionEndError",ne.ClientGetCloudVariable="ClientGetCloudVariable",ne.ClientStreamingQuality="ClientStreamingQuality",ne.PushNotificationRegistration="PushNotificationRegistration",ne.KVStoreGetClientData="KVStoreGetClientData",ne.KVStoreSetClientData="KVStoreSetClientData",ne.KVStoreDeleteClientData="KVStoreDeleteClientData",ne.KVStoreAppendClientData="KVStoreAppendClientData",ne.ClientGetPanel="ClientGetPanel",ne.ClientDesktopPaste="ClientDesktopPaste",ne.ClientClipboardAvailable="ClientClipboardAvailable",ne.BackgroundNetworkTest="BackgroundNetworkTest",ne.GetRemoteConfigV2="GetRemoteConfigV2",ne.PushMessageReceived="PushMessageReceived",ne.PnsRegistration="PnsRegistration",ne.PnsUnregister="PnsUnregister",ne.UserAccountData="UserAccountData",ne.SessionLengthWarning="SessionLengthWarning",ne.VrsGetRewards="VrsGetRewards",ne.UpsellMessages="UpsellMessages",ne.CampaignsInfo="CampaignsInfo",ne.SearchFilterGames="SearchFilterGames",ne.UasAcquireUser="UasAcquireUser",ne.AdToken="AdToken",ne.AdSession="AdSession",ne.AdOpportunity="AdFetch",ne.AdStart="AdStart",ne.FilterGroupSortOrderDefinitions="FilterGroupSortOrderDefinitions",ne.GetLoginWallData="GetLoginWallData",ne.GetLoginWallStringsOnly="GetLoginWallStringsOnly",ne.AddFavoriteApp="AddFavoriteApp",ne.RemoveFavoriteApp="RemoveFavoriteApp",ne.AddOwnedVariant="AddOwnedVariant",ne.RemoveOwnedVariant="RemoveOwnedVariant",ne.SelectOwnedVariant="SelectOwnedVariant",ne.GetUdsSummonedReport="GetUdsSummonedReport",ne.GetUdsEndOfSessionReport="GetUdsEndOfSessionReport",ne.OverallGfnSupportedLanguages="OverallGfnSupportedLanguages",ne.GFNUIException="GFNUIException",ne.GFNUIExceptionRenderDirective="GFNUIExceptionRenderDirective",ne.OffDeviceLogin="OffDeviceLogin",ne.LoginAttempt="LoginAttempt",ne.UpdateLoginHint="UpdateLoginHint",ne.LoginHintGetSsoInfo="LoginHintGetSsoInfo",ne.LoginWallProviderInfo="LoginWallProviderInfo",ne.LoginWallDataFetch="LoginWallDataFetch",ne.LoginWallDeeplink="LoginWallDeeplink",ne.LoginWallRedirect="LoginWallRedirect",ne}(O||{}),P=function(ne){return ne.XmlHttpRequest="XMLHttpRequest",ne}(P||{}),_=function(ne){return ne.Pc_A7="pc-a7",ne.Native_Windows="native-windows",ne}(_||{}),i=function(ne){return ne.Client="client",ne}(i||{}),r=function(ne){return ne.VpcId="ERROR_WHILE_GETTING_VPCID",ne.UpdateSsoLoginInfoEntryError="UPDATE_SSO_LOGIN_INFO_ENTRY_ERROR",ne.GetSsoLoginInfoError="GET_SSO_LOGIN_INFO_ERROR",ne}(r||{}),c=s(61142),m=s(36466),M=s(43848),D=s(65726),I=s(75707),U=s(5798),V=s(70521),T=s(58527),N=s(99469),L=s(77855),E=s(44748),g=s(23403),R=s(23413),B=s(35475),X=s(92414),H=s(33784),J=s(84877),re=s(14525),ie=s(90775),ue=s(70440),se=s(83594),Z=s(65706);class Se extends se.Q{constructor(G,W){super(G),this._isTracingDisabledReplaySubject=W}export(G,W){this._isTracingDisabledReplaySubject.asObservable().pipe((0,Z.s)(1)).subscribe($=>{$||super.export(G,W)})}}var Ce=s(19392),Be=s(83915);let Xe=(()=>{class ne{constructor(W){this.loggingService=W,this.initializationMap=new Map,this.logger=this.loggingService.getLogger("OTELTracerService")}initialize(W,$){if(this.initializationMap.get(W.exportConfig.componentName))return;const Pe={resource:new g.F({[R._2.SERVICE_NAME]:W.exportConfig.componentName})};this.provider=new L.Z(Pe);const Fe=new ie.lm;B.$.setGlobalPropagator(Fe);const At=new re.T;At.enable(),this.provider.register({propagator:Fe,contextManager:At}),this.exporter=new Se({headers:{"Lightstep-Access-Token":W.exportConfig.accessToken},url:W.exportConfig.collectorUrl},$),(0,ue.u)(Ze=>{console.error("Error while tracing",Ze)}),this.batchSpanProcessor=new E.J(this.exporter,{disableAutoFlushOnDocumentHide:!0}),this.provider.addSpanProcessor(this.batchSpanProcessor),this.initializationMap.set(W.exportConfig.componentName,!0)}getSpanContextInfo(W){if(!this.tracer)return null;const $={},le=X.u.setSpanContext(H._.active(),W.spanContext());return B.$.inject(le,$,J.U),$}getTraceInjectWrapper(){return this.getSpanContextInfo.bind(this)}createSpanUsingContextInfo(W,$){if(!this.tracer)return null;const le=B.$.extract(H._.active(),$),Pe=this.tracer.startSpan(W,{},le);return this.getSpanContextInfo(Pe),Pe}getCreateSpanUsingContextWrapper(){return this.createSpanUsingContextInfo.bind(this)}commitAnyPendingSpans(){return(0,Ce.H)(this.batchSpanProcessor.forceFlush()).pipe((0,Z.s)(1),(0,Be.T)(()=>(this.logger.info("Spans flushed successfully:"),!0)),(0,d.W)(W=>(this.logger.error("Failed to flush spans:",W),(0,M.of)(!1))))}createSpan(W,$){if(!this.tracer)return this.logger.error("Open telemetry tracer not initialized yet, returning null for span name",W),null;if(!$)return this.tracer.startSpan(W);const le=X.u.setSpan(H._.active(),$);return this.tracer.startSpan(W,{},le)}getOTELTracer(W,$){return this.initialize(W,$),this.tracer=this.provider.getTracer(),this.tracer}extractContext(W,$,le){const Pe=$||H._.active();return B.$.extract(Pe,W,le)}runWithContext(W,$,le,...Pe){return H._.with(W,$,le,...Pe)}static{this.\u0275fac=function($){return new($||ne)(T.KVO(N.J6))}}static{this.\u0275prov=T.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})}}return ne})();const He={[XMLHttpRequest.UNSENT]:"unsent",[XMLHttpRequest.OPENED]:"opened",[XMLHttpRequest.HEADERS_RECEIVED]:"headers received",[XMLHttpRequest.LOADING]:"loading",[XMLHttpRequest.DONE]:"done"},Me=(ne,G)=>{ne.setAttributes({[f.HttpStatusCode]:G,[f.HttpStatusCodeFamily]:G.toString().replace(/[0-9]{2}$/,"XX"),[f.Error]:G<=0||G>=400})};let Q=(()=>{class ne extends c.N0{constructor(W,$,le){super(),this.statusCodeZeroAnalyzerFactoryService=W,this.serviceWorkerService=$,this.otelTracerService=le,this.globalSpanTags={},this.tracer=null,this.tracingEnabledURLRegex=[],this.tracingEnabledUrls=new Map,this.pendingNetworkResponseSpanMap=new Map,this.createSpanUsingContext=this.otelTracerService.getCreateSpanUsingContextWrapper(),this.traceInjectWrapper=this.otelTracerService.getTraceInjectWrapper()}initialize(W,$,le,Pe){this.tracer=W,this.setTracingEnabledURLRegex($.urlRegex),this.setStatusCodeZeroAnalyzerConfig(le),this.serviceWorkerService.networkResponseReceived.subscribe(Fe=>{this.removeFromSWPendingRequests(Fe)},m.l),Pe.asObservable().subscribe(Fe=>{this.globalSpanTags=Fe},Fe=>{this.globalSpanTags={}})}addToSWPendingRequests(W,$){this.pendingNetworkResponseSpanMap.set(W,$)}removeFromSWPendingRequests(W){if(this.pendingNetworkResponseSpanMap.has(W.requestId)){const $=this.pendingNetworkResponseSpanMap.get(W.requestId);this.pendingNetworkResponseSpanMap.delete(W.requestId),0===W.responseStatusCode?this.statusCodeZeroAnalyzer.getFailureCode({requestUrl:W.requestUrl,uniqueRequestId:W.requestId,isCancelled:!1}).subscribe(le=>{Me($,le.statusCode),$.end(W.responseReceivedTimeMs)},m.l):(Me($,W.responseStatusCode),$.end(W.responseReceivedTimeMs))}}build(){const W=new XMLHttpRequest;return(0,S.isNil)(this.tracer)||(W.requestHeaders={},W.commonSpanTags=this.globalSpanTags,W.tracer=this.tracer,W.open=this.wrapOpen(W),W.send=this.wrapSend(W),W.setRequestHeader=this.wrapSetRequestHeader(W),W.constructSpanTags=this.getConstructSpanTags(),W.injectCarrierHeaders=this.getInjectCarrierHeaders(),W.getOperationName=this.getOperationName(),W.createSpanUsingContext=this.createSpanUsingContextWrapper(),W.getResponseHeaders=this.getResponseHeaders(),W.analyzeStatusCodeZero=this.analyzeStatusCodeZero(),W.addEventListener("readystatechange",this.getOnReadyStateChangedListener()),W.addEventListener("abort",this.handleAbort())),W}handleAbort(){return function(){this.isRequestAborted=!0}}setTracingEnabledURLRegex(W){this.tracingEnabledURLRegex=W.map($=>new RegExp($,"g"))}setStatusCodeZeroAnalyzerConfig(W){this.statusCodeZeroAnalyzer&&(this.statusCodeZeroAnalyzer=null),this.statusCodeZeroAnalyzer=this.statusCodeZeroAnalyzerFactoryService.createAnalyzer(W)}matchURLAgainstEnabledList(W){if(!this.tracingEnabledUrls.has(W)){const $=this.tracingEnabledURLRegex.findIndex(le=>{const Pe=W.match(le);return!(0,S.isNil)(Pe)&&1===Pe.length});this.tracingEnabledUrls.set(W,-1!==$)}return this.tracingEnabledUrls.get(W)}isURLEnabledForTracing(W){return!(0,S.isNil)(W)&&this.matchURLAgainstEnabledList(W.toString())}getResponseHeaders(){return function(){const le=this.getAllResponseHeaders().replace(/\s+$/,"").split(/\n/);for(let Pe=0;Pe<le.length;Pe++)le[Pe]=le[Pe].replace(/\r/g,"").trim();return le}}getOperationName(){return function(){return this.method+" "+this.urlInfo.hostname+this.urlInfo.pathname}}createSpanUsingContextWrapper(){const W=this.createSpanUsingContext;return function(le){return W(le,this.requestHeaders)}}analyzeStatusCodeZero(){const W=this.statusCodeZeroAnalyzer.getFailureCode;return function(){return W({requestUrl:this.urlInfo.href,isCancelled:this.isRequestAborted,uniqueRequestId:this.uniqueRequestId||""})}}getOnReadyStateChangedListener(){return function(){const $=this.uniqueRequestId&&this.isHandledByServiceWorker?this.serviceWorkerSpan:this.span;(0,S.isNil)($)||(this.readyState===XMLHttpRequest.UNSENT||this.readyState===XMLHttpRequest.OPENED?$.addEvent(He[this.readyState]):this.readyState===XMLHttpRequest.HEADERS_RECEIVED?$.addEvent(He[this.readyState],{method:this.method,url:this.urlInfo.href,responseHeaders:this.getResponseHeaders()}):this.readyState===XMLHttpRequest.LOADING?$.addEvent(He[this.readyState]):this.readyState===XMLHttpRequest.DONE?($.addEvent(He[this.readyState],{method:this.method,url:this.urlInfo.href,statusText:this.statusText,responseType:this.responseType,responseHeaders:this.getResponseHeaders()}),0===this.status?(0,M.of)(!0).pipe((0,D.c)(100),(0,I.ZZ)(le=>this.analyzeStatusCodeZero(this.urlInfo.href))).subscribe(le=>{$.setAttributes({status:le.statusCode}),Me($,le.statusCode),$.end()}):($.setAttributes({status:this.status}),Me($,this.status),$.end())):$.setAttributes({readyState:this.readyState}))}}getConstructSpanTags(){return function(){const $={[f.Component]:P.XmlHttpRequest,[f.HttpMethod]:this.method,[f.Type]:this.urlInfo.protocol.replace(":",""),[f.HttpHostname]:this.urlInfo.hostname,[f.HttpUrl]:this.urlInfo.pathname};return(0,S.extend)($,this.commonSpanTags),Object.keys(this.requestHeaders).forEach(Pe=>{$[f.HttpHeadersPrefix+Pe]=this.requestHeaders[Pe]}),this.urlInfo.searchParams.forEach((Pe,Fe)=>{$[f.ParamsPrefix+Fe]=Pe}),$}}getInjectCarrierHeaders(){const W=this.traceInjectWrapper;return function(){const le=W(this.span);Object.keys(le).forEach(Fe=>{Object.getPrototypeOf(this).setRequestHeader.call(this,Fe,le[Fe]),this.setRequestHeader(Fe,le[Fe])})}}wrapOpen(W){const $=W.open;return function(Pe,Fe,At,Le,Et){this.method=Pe;try{this.urlInfo=new URL(Fe)}catch{this.urlInfo=null}$.apply(this,arguments)}}wrapSend(W){const $=W.send,le=this.isURLEnabledForTracing.bind(this),Pe=this.serviceWorkerService.willGFNServiceWorkerHandleRequest.bind(this),Fe=this.addToSWPendingRequests.bind(this),At=this.omitOpentracingHeaders;return function(Et){(0,S.isNil)(this.urlInfo)||(this.span=this.createSpanUsingContext(this.getOperationName()),this.isHandledByServiceWorker=Pe(this.urlInfo.href,this.bypassCacheHeaderValue),this.uniqueRequestId&&this.isHandledByServiceWorker&&(this.serviceWorkerSpan=this.createSpanUsingContext("SW "+this.getOperationName()),this.serviceWorkerSpan.setAttributes(this.constructSpanTags()),Fe(this.uniqueRequestId,this.span)),this.requestHeaders=At(this.requestHeaders),le(this.urlInfo)&&this.injectCarrierHeaders(),this.span.setAttributes(this.constructSpanTags()),this.span.addEvent("send")),$.apply(this,arguments)}}wrapSetRequestHeader(W){const $=W.setRequestHeader;return function(Pe,Fe){"Authorization"===Pe||"X_LOCAL_SECURITY_COOKIE"===Pe||Pe===V.tD.SwCacheKeyAppendString||(this.requestHeaders[Pe]=Fe,Pe===U.SA.xRequestId&&(this.uniqueRequestId=Fe),Pe===V.tD.SwCacheBypass&&(this.bypassCacheHeaderValue=Fe)),!Pe.startsWith("ot-")&&!Pe.startsWith("traceparent")&&$.apply(this,arguments)}}omitOpentracingHeaders(W){return(0,S.omitBy)(W,$=>!$.startsWith("ot-")&&!$.startsWith("traceparent"))}static{this.\u0275fac=function($){return new($||ne)(T.KVO(N.pZ),T.KVO(V.lS),T.KVO(Xe))}}static{this.\u0275prov=T.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})}}return ne})(),me=(()=>{class ne{constructor(W,$,le){this.openTelemetryService=W,this.loggingService=$,this.injector=le,this.logger=this.loggingService.getLogger("DistributedTracingUtilService")}setSpanAttribute(W,$,le){W?W.setAttribute($,le):this.logger.error(`Unable to set attribute ${$} on null span`)}setSpanAttributes(W,$){W?W.setAttributes($):this.logger.error(`Unable to set attributes ${$} on null span`)}initializeDistributedTracing(W,$,le,Pe){this.disableOpenTracingSub=le,this.tracer=this.openTelemetryService.getOTELTracer(W,le),Pe.subscribe(Fe=>{this.commonTags=Fe},Fe=>{this.logger.error("Error while setting global tags. No global tags will be used",Fe),this.commonTags={}}),this.distributedTracingXhrFactoryService=this.injector.get(Q),this.distributedTracingXhrFactoryService.initialize(this.tracer,W.apiTracingConfig,$,Pe)}commitAnyPendingSpans(){return this.openTelemetryService.commitAnyPendingSpans()}isTracingDisabled(){return this.disableOpenTracingSub}getFormattedUrlForHttpPopupSpan(W,$){if($&&this.tracer){const le={};this.injectSpanHttpHeaders($,le);const Pe=new URL(W),Fe=JSON.stringify((0,S.extend)({},le)),At=Pe.searchParams.toString();W=`${Pe.origin}${Pe.pathname}?tracer=${(0,y.KA)(Fe,!0,!0)}`,At.length&&(W=`${W}&${At}`)}return W}startSpan(W,$){return this.openTelemetryService.createSpan(W,$)}startSpanUsingContext(W,$){return this.openTelemetryService.createSpanUsingContextInfo(W,$)}extractContextFromSpan(W){return this.openTelemetryService.getSpanContextInfo(W)}injectSpanHttpHeaders(W,$){const le=this.openTelemetryService.getSpanContextInfo(W),Pe=Object.keys(le);for(const Fe of Pe)$[Fe]=le[Fe]}handleHttpError(W,$){this.setSpanAttribute(W,f.Error,!0),this.setSpanAttribute(W,f.HttpStatusCode,$&&$.status||0)}handleHttpPopupError(W,$){this.setSpanAttribute(W,f.Error,!0),this.setSpanAttribute(W,f.HttpStatusCode,$.errorCode),this.setSpanAttribute(W,f.HttpErrorText,$.errorText),this.setSpanAttribute(W,f.HttpUrl,$.failedUrl)}handleHttpSuccess(W,$){this.setSpanAttribute(W,f.Error,!1),$&&this.setSpanAttribute(W,f.HttpUrl,$)}handleHttpEndpointSpan(W,$,le,Pe,Fe){const At=$.headers?$.headers:{},Le=this.startSpan(le,Pe);if(Le){const $e={...$.params,...Fe};return this.setSpanAttributes(Le,$e),this.injectSpanHttpHeaders(Le,At),W.pipe((0,l.M)(()=>this.handleHttpSuccess(Le)),(0,d.W)(Ze=>(this.handleHttpError(Le,Ze),(0,n.$)(Ze))),(0,v.j)(()=>this.closeSpan(Le)))}return W}closeSpan(W){W&&(this.setSpanAttributes(W,this.commonTags),W.end())}closeHttpPopupSpan(W,$,le){W&&(this.setSpanAttributes(W,this.commonTags),$?this.handleHttpPopupError(W,le):this.handleHttpSuccess(W,le.failedUrl),W.end())}sendOpenTracingSpanTags(W,$,le){const Pe=this.startSpan(W,le);$?.forEach((Fe,At)=>{this.setSpanAttribute(Pe,At,Fe)}),this.closeSpan(Pe)}runWithinSpanContext(W,$,le,...Pe){const Fe=this.openTelemetryService.extractContext(W);return this.openTelemetryService.runWithContext(Fe,$,le,...Pe)}static{this.\u0275fac=function($){return new($||ne)(T.KVO(Xe),T.KVO(N.J6),T.KVO(T.zZn))}}static{this.\u0275prov=T.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})}}return ne})()},92262:(Bt,z,s)=>{"use strict";s.d(z,{sT:()=>d,tg:()=>D,yN:()=>r});var n=s(94485),l=s(58527);let d=(()=>{class I{static{this.\u0275fac=function(T){return new(T||I)}}static{this.\u0275prov=l.jDH({token:I,factory:I.\u0275fac})}}return I})();var v=s(26537),S=s(47973),y=s(51006),f=s(96542),O=s(3457);let P=(()=>{class I{constructor(V,T){this.dialogRef=V,this.data=T,this.content=T.content}static{this.\u0275fac=function(T){return new(T||I)(l.rXU(v.CP),l.rXU(v.Vh))}}static{this.\u0275cmp=l.VBU({type:I,selectors:[["ng-component"]],standalone:!0,features:[l.aNF],decls:7,vars:3,consts:[["mat-dialog-title","",1,"font-header4"],["mat-dialog-content",""],[1,"exception-content",3,"innerHTML"],["mat-dialog-actions","","fxLayoutAlign","end end","fxLayout","row"],["mat-button","",1,"font-button1",3,"mat-dialog-close"]],template:function(T,N){1&T&&(l.j41(0,"h1",0),l.EFF(1),l.k0s(),l.j41(2,"div",1),l.nrm(3,"div",2),l.k0s(),l.j41(4,"div",3)(5,"button",4),l.EFF(6," Close "),l.k0s()()),2&T&&(l.R7$(),l.JRh(N.data.title),l.R7$(2),l.Y8G("innerHTML",N.content,l.npT),l.R7$(2),l.Y8G("mat-dialog-close",!0))},dependencies:[v.hM,v.tx,v.BI,v.Yi,v.E7,y.YF,O.DJ,O.sA,S.wG,S.iV,f.h],styles:[".exception-content[_ngcontent-%COMP%]{-webkit-user-select:text;user-select:text;background-color:var(--primary-800);padding:10px;overflow-wrap:anywhere}"]})}}return I})();const __Sanitize=/(\w+:|[\\/]).*[\\/]/gi,__Indentation=/ at /g,__Class=/([^]+)/g;class r{constructor(U,V){this.err=V,this.errorMessage=U,this.metadata={}}get error(){return this.err}toString(){return this.errorMessage+":"+JSON.stringify(this.err)}addMetadata(U,V){this.metadata[U]=V}getMetaData(){return this.metadata}}var a=s(99021),c=s(78812),m=s(99469);let D=(()=>{class I{constructor(V,T,N){this.logger=V,this.injector=T,this.dialog=N}handleError(V){let T=!1;this.logger.info("UnHandled Exception was caught",V);const N=this.injector.get(d);if(N&&(this.isEnabled=N.isExceptionEnabled,this.devMode=N.devMode),!this.isEnabled||(V?.rawResponse instanceof n.yz?(this.logger.error("There was an HTTP error. Skipping exception event"),T=!0):V instanceof a.M?(this.logger.error("Timeout error occured. Skipping exception event"),T=!0):V instanceof TypeError?this.logger.error("Type error occured. Sending exception telemetry"):V instanceof Error?this.logger.error("Error occured. Sending exception telemetry"):(this.logger.error("Unknown error or cef query failure. Skipping exception event"),T=!0),T&&!this.devMode))return;const L={name:V.name,message:V.message,stackFrame:null,exceptionString:null};V.stack=V.stack?.replace(__Sanitize,""),L.stackFrame=V.stack??c.oX.Undefined;const E=JSON.stringify(L);this.logger.error("Exception stack trace ",E),this.devMode&&this.dialog.open(P,{autoFocus:!1,disableClose:!0,panelClass:"nv-overlay-panel",data:{title:"Unhandled Exception",content:V.stack?this.formatExceptionStack(V.stack):E}}),T||(L.exceptionString=L.stackFrame,this.handleClientSideException(L,N))}formatExceptionStack(V){return V.replace(__Indentation,"<br> at ").replace(__Class,"<span>$1</span>")}static{this.\u0275fac=function(T){return new(T||I)(l.KVO(m.Vy),l.KVO(l.zZn),l.KVO(v.bZ))}}static{this.\u0275prov=l.jDH({token:I,factory:I.\u0275fac})}}return I})()},20381:(Bt,z,s)=>{"use strict";s.d(z,{sK:()=>re,y2:()=>d,BW:()=>Me,Id:()=>X,Ky:()=>B});var n=s(58527);let l=(()=>{class Q{static{this.\u0275fac=function(ne){return new(ne||Q)}}static{this.\u0275prov=n.jDH({token:Q,factory:Q.\u0275fac})}}return Q})(),d=(()=>{class Q extends l{static{this.\u0275fac=(()=>{let me;return function(G){return(me||(me=n.xGo(Q)))(G||Q)}})()}static{this.\u0275prov=n.jDH({token:Q,factory:Q.\u0275fac})}}return Q})();var v=s(85735),S=s(43848),y=s(19392),f=s(31315),O=s(59859),P=s(93181),_=s(36466),i=s(35146),r=s(75707),a=s(65706),c=s(91384),m=s(14714),M=s(12962),D=s(83915),I=s(55833),U=s(26875),V=s(99469),T=s(72271),N=s(78812),L=s(92262),E=function(Q){return Q.OSName="osName",Q}(E||{});class g extends L.yN{constructor(){super("Empty cloud variable",null)}}class R extends L.yN{constructor(){super("Cloud variable could not be retrieved via API call nor cache. Please handle this case and use defaults",null)}}var B=function(Q){return Q.GxTargetGetFeatureRollout="GetFeatureRollout",Q.GxTargetGetCloudVariable="GetCloudVariable",Q.GxTargetGetSurveyFeature="GetSurveyFeature",Q.Other="Other",Q}(B||{}),X=function(Q){return Q.GxTargetGetECommerceFeature="GetECommerceFeature",Q.GxTargetGetSurveyFeature="GetSurveyFeature",Q.GxTargetGetQueueETAConfig="GetQueueETAConfig",Q.GxTargetGetAutohighlightFeature="GetAutohighlightFeature",Q.GxTargetGetFreestyleFeature="GetFreestyleFeature",Q.GxTargetGetStarfleetPhase1="GetStarfleetPhase1",Q.GxTargetGetStarfleetPhase2="GetStarfleetPhase2",Q.GxTargetGetKeyboardLayout="GetKeyboardLayout",Q.GxTargetGetAnselFeature="GetAnselFeature",Q.GxTargetGetGfnBroadcastFeature="GetGfnBroadcastFeature",Q.GxTargetGetDeeplinkSupport="GetDeeplinkSupport",Q.GxTargetGetKBLayoutsConfig="GetKBLayoutsConfig",Q.GxTargetGetUpsellMessage="GetUpsellMessage",Q.GxTargetGetAllCloudVariables="GetAllCloudVariables",Q.GxTargetGetBrowserClientCanary="GetBrowserClientCanary",Q.GxTargetGetReservedSKUEnabled="GetReservedSKUEnabled",Q.GxTargetGetReservedSKUIBetaFlag="GetReservedSKUIBetaFlag",Q.GxTargetGetPathToPurchaseConfig="GetPathToPurchaseConfig",Q.GxTargetGetPunctualUIConfig="GetPunctualUIConfig",Q.GxTargetGetEnableBrowserIGSS="GetEnableBrowserIGSS",Q.GxTargetGetGuestFlowClientConfig="GxTargetGetGuestFlowClientConfig",Q.GetClientIMESupportedConfig="GetClientIMESupportedConfig",Q.GxTargetGetGameLaunchUniversalConfig="GetGameLaunchUniversalConfig",Q.Other="Other",Q}(X||{}),re=function(Q){return Q.StreamingClient="StreamingClient",Q.MallClient="MallClient",Q.StoreLibrary="StoreLibrary",Q.Unknown="Unknown",Q.BackgroundAgent="BackgroundAgent",Q.NvAppClient="NvAppClient",Q}(re||{}),ie=function(Q){return Q.GxTarget="GxTarget",Q}(ie||{}),ve=function(Q){return Q.UNDEFINED="UNDEFINED",Q.TRUE="TRUE",Q.FALSE="FALSE",Q}(ve||{});const ue={HTTPFailure:{name:"HTTPFailure",gdprLevel:N.EU.Functional},HTTPSuccess:{name:"HTTPSuccess",gdprLevel:N.EU.Functional},HTTPCallResult:{name:"HTTPCallResult",gdprLevel:N.EU.Functional}};class se extends N.YH{constructor(A){super(A),this.name=ue.HTTPFailure.name,this.gdprLevel=ue.HTTPFailure.gdprLevel}}class Z extends N.YH{constructor(A){super(A),this.name=ue.HTTPSuccess.name,this.gdprLevel=ue.HTTPSuccess.gdprLevel}}class Se extends N.YH{constructor(A){super(A),this.name=ue.HTTPCallResult.name,this.gdprLevel=ue.HTTPCallResult.gdprLevel}}var Ce=s(6478),Be=s(72945),Xe=s(81834);const He="78589530426925203";let Me=(()=>{class Q{constructor(me,ne,G,W,$,le,Pe,Fe){this.config=me,this.loggingService=ne,this.telemetryService=G,this.sharedStorageService=W,this.systemInfoService=$,this.eventStreamFactory=le,this.localeService=Pe,this.distributedTracingUtilService=Fe,this.isCvListInitialized$=new v.m(1),this.cacheMaxAge=1440,this.isInitialized$=new v.m(1),this.batchCvsInitialized=new v.m(1),this.commonClientParams={},this.cachedCloudVariableMap=new Map,this.deviceOSName="",this.readFromSharedStorage=At=>this.sharedStorageService.readBlock(At).pipe((0,r.ZZ)(Le=>(0,S.of)(Le||{}))),this.writeToSharedStorage=(At,Le)=>{const Et=Le.name;if(this.storageUpdateQueue.unshift(Le),this.storageUpdateQueue.length>1)return void this.logger.info("Added experiment to storage update queue",Et);const $e=At;let Ze;return(0,y.H)(this.readFromSharedStorage($e)).pipe((0,r.ZZ)(Qe=>(Ze=Qe,this.updateExperimentRefreshDate(Le),(Qe=this.cleanupStorageBlock(Qe))[Et]=Le,this.sharedStorageService.writeBlock($e,Qe)))).subscribe(()=>{this.logger.info("Cloud variable written to shared storage",Le.name,Le.value),this.processStorageUpdateQueue()},Qe=>{this.logger.error(`Error while writing to shared storage for ${Et}`,Qe),this.processStorageUpdateQueue()}),null},this.getSharedStorageKey=At=>{let Le=this.clientInfo.userId!==N.oX.Undefined?this.clientInfo.userId:void 0;return At===N.CV.DEVICE_ID&&(Le=void 0),this.logger.info("Got SharedStorageKey: ",this.storageKey+"_"+Le),this.storageKey+"_"+Le},this.logger=ne.getLogger("experienceControl/service"),this.storageKey="experienceControl",this.storageUpdateQueue=[],this.clientInfo={deviceId:"",userId:N.oX.Undefined,idpId:N.oX.Undefined,clientId:this.config.clientId,clientVer:this.config.clientVersion,clientVariant:this.getCommonClientVariant(this.config.clientVariant),deviceOS:"",deviceType:"",deviceMake:"",deviceModel:"",deviceOSVersion:"",clientType:T.CommonClientType.Undefined,browserType:""},this.cacheMaxAge=this.config.cacheMaxAge||this.cacheMaxAge,this.fetchCloudVariableStream=this.eventStreamFactory.createStream(this.fetchCloudVariables.bind(this))}getCommonClientVariant(me){switch(me){case"ibeta":return T.CommonClientVariant.iBeta;case"release":return T.CommonClientVariant.Release;default:return T.CommonClientVariant.Undefined}}setUserInfo(me){this.clientInfo.userId=me.userId||N.oX.Undefined,this.clientInfo.idpId=me.idpId||N.oX.Undefined}setCvList(me){this.cvList=me,this.isCvListInitialized$.next(!0)}cvListInitialized(){return this.isCvListInitialized$.asObservable()}fetchCloudVariables(){return(0,f.zV)([this.isGxTargetConfiguredCorrectly(),this.cvListInitialized()]).pipe((0,a.s)(1),(0,r.ZZ)(([me,ne])=>me?(0,P.p)([this.readFromSharedStorage(this.getSharedStorageKey(N.CV.USER_ID)),this.readFromSharedStorage(this.getSharedStorageKey(N.CV.DEVICE_ID))]):(this.batchCvsInitialized.next(!0),(0,O.$)(`client info not available -> clientId, clientVersion, userId, idpId, deviceId, \n clientVariant, clientType, deviceOS, deviceOSVersion, deviceType, deviceModel, deviceMake:\n ${this.clientInfo.clientId}, ${this.clientInfo.clientVer}, ${this.clientInfo.userId},\n ${this.clientInfo.idpId}, ${this.clientInfo.deviceId}, ${this.clientInfo.clientVariant},\n ${this.clientInfo.clientType}, ${this.clientInfo.deviceOS}, ${this.clientInfo.deviceOSVersion},\n ${this.clientInfo.deviceType}, ${this.clientInfo.deviceModel}, ${this.clientInfo.deviceMake}`))),(0,r.ZZ)(([me,ne])=>{const G=this.callGetMultipleCloudVariableApi({variant:this.config.clientVariant,...this.clientInfo.clientType===T.CommonClientType.Browser&&{userDefaultUILanguage:this.localeService.getShortLocale()}}).pipe((0,c.M)(le=>{this.batchCvsInitialized.next(!0)}),(0,m.W)(le=>{this.logger.error("Error in batch call",le);const Pe=new Map;return this.batchCvsInitialized.next(!0),(0,S.of)(Pe)}));let W,$;return this.logger.info("Requested cvs in batch call",this.cvList),(0,U.isEmpty)(me)?G:(this.cvList.forEach(le=>{$=me[le],$?(W={variation:$.result,value:$.value,activity:$.activity,metadata:$.metadata,isCachedResult:!0},this.cachedCloudVariableMap.set(le,W)):ne&&ne[le]&&($=ne[le],$&&(W={variation:$.result,value:$.value,activity:$.activity,metadata:$.metadata,isCachedResult:!0},this.cachedCloudVariableMap.set(le,W)))}),G.subscribe(_.l),G.pipe((0,M.o)(this.config.allCvNetworkTimeoutForCacheFallback,(0,S.of)(this.cachedCloudVariableMap))))}))}callGetMultipleCloudVariableApi(me={}){const ne=new Map,G=[],W=this.distributedTracingUtilService.startSpan(Ce.pB.ClientGetCloudVariable),$=this.distributedTracingUtilService.extractContextFromSpan(W);return(0,y.H)(this.cloudVariableSdk.getCloudVariables(this.cvList,T.CachePolicy.LIVE,{...this.commonClientParams,...me},$).catch(le=>{this.logger.error("Error in getCloudVariables from cloudVariableSdk",le)})).pipe((0,r.ZZ)(le=>{if(le?.size>0){this.sendCloudVariableFetchSuccessTelemetry(le,B.GxTargetGetCloudVariable,X.GxTargetGetAllCloudVariables);const Pe={name:void 0,variation:void 0,value:void 0,activity:void 0,isCachedResult:!1,state:T.CloudVariableStatus.Unknown};return this.cvList.forEach(Fe=>{if(le.get(Fe)){const Le=le.get(Fe);Le.clientRequestParams={commonClientParams:this.commonClientParams,additionalClientParams:me};const Et={name:Le.name,variation:Le.result,value:Le.value,activity:Le.activity,metadata:Le.metadata,isCachedResult:!1,state:T.CloudVariableStatus.Unknown};ne.set(Le.name,Et),G.push((0,S.of)(Et))}else ne.set(Fe,Pe)}),this.distributedTracingUtilService.closeSpan(W),(0,i.yU)(...G)}return void 0===le?(this.sendCloudVariableFetchFailureTelemetry(le,B.GxTargetGetCloudVariable,X.GxTargetGetAllCloudVariables),this.logger.error("Batch call returned failure")):(this.sendCloudVariableFetchSuccessTelemetry(le,B.GxTargetGetCloudVariable,X.GxTargetGetAllCloudVariables),this.logger.error("Batch call returned empty result")),this.distributedTracingUtilService.setSpanAttribute(W,Ce.NS.Error,!0),this.distributedTracingUtilService.closeSpan(W),(0,S.of)(new Map)}),(0,D.T)(()=>ne),(0,I.t)(1))}refreshCloudVariables(){this.fetchCloudVariableStream.refresh()}get batchCvsFetchedStatus$(){return this.batchCvsInitialized.asObservable()}processStorageUpdateQueue(){if(this.storageUpdateQueue.pop(),this.storageUpdateQueue.length){this.logger.info("Processing next experiment in queue");const me=this.storageUpdateQueue.pop(),ne=this.getSharedStorageKey(me.activity.activationType);this.writeToSharedStorage(ne,me)}}cleanupStorageBlock(me){const ne=new Set(Object.values(this.config.experiences));for(const G in me)ne.has(G)||(this.logger.info(`removing deprecated activity: ${G} from storage`),delete me[G]);return me}updateExperimentRefreshDate(me){return me.metadata||(me.metadata={}),me.metadata.refreshDate=new Date,me}initialize(me,ne){this.hostClientType=me||re.Unknown;const G=(0,f.zV)([this.systemInfoService.getDeviceOSType(),this.systemInfoService.getSystemInfo([V.Lu.DeviceId,V.Lu.OSName,V.Lu.OSVersion,V.Lu.DeviceType,V.Lu.BrowserName,V.Lu.SystemName,V.Lu.VendorName])]).pipe((0,D.T)(([W,$])=>({deviceId:this.config.piplExemption?V.Qe:$.DeviceId,osName:$.OSName,osVersion:$.OSVersion,osType:W,deviceType:$.DeviceType,browserType:$.BrowserName,deviceModel:$.SystemName,deviceMake:$.VendorName})));(0,f.zV)([G,ne]).pipe((0,r.ZZ)(([W,$])=>{this.clientInfo.deviceId=W.deviceId,this.clientInfo.browserType=W.browserType,this.clientInfo.deviceOS=W.osType,this.deviceOSName=W.osName,this.clientInfo.deviceType=W.deviceType||N.oX.Undefined,this.clientInfo.deviceMake=W.deviceMake||N.oX.Undefined,this.clientInfo.deviceModel=W.deviceModel||N.oX.Undefined,this.clientInfo.deviceOSVersion=W.osVersion,this.clientInfo.clientType=V.zk.isBrowserPlatform()?T.CommonClientType.Browser:T.CommonClientType.Native,this.updateCommonClientParams(E.OSName,this.getSupportedOSName(W.osName)),this.logger.info("Client info at initialize:",this.clientInfo);const Pe=this.config;return this.cloudVariableSdk=new T.CloudVariableSdkService({url:Pe.server,defaultRetries:Pe.defaultRetries,defaultTimeBetweenRetries:Pe.defaultTimeBetweenRetries,defaultTimeout:Pe.defaultTimeout,cacheMaxAge:Pe.cacheMaxAge,storageConfig:{storageType:T.StorageType.IndexedDB},loggingLevel:T.LoggingLevel.Info,clientInfo:this.clientInfo},this.config.openTracingConfig.exportConfig,this.distributedTracingUtilService.isTracingDisabled(),this.config.storage===N.P6.IndexedDb?void 0:this.readFromSharedStorage,this.config.storage===N.P6.IndexedDb?void 0:this.writeToSharedStorage,this.getSharedStorageKey),this.initGlobalTagsForOpenTracing($,me),(0,S.of)(!0)})).subscribe(()=>{this.logger.info("Initialized successfully"),this.isInitialized$.next(!0)},W=>{this.logger.error("Error initializing service",W),this.isInitialized$.next(!1)})}initGlobalTagsForOpenTracing(me,ne){this.cloudVariableSdk.updateGlobalTags({[Ce.NS.ServiceVersion]:this.clientInfo.clientVer,[Ce.NS.ServiceType]:Ce.Se.Pc_A7,[Ce.NS.SpanKind]:Ce.ls.Client,[Ce.NS.AppName]:ne,[Ce.NS.DeviceId]:this.clientInfo.deviceId,[Ce.NS.ClientOs]:this.clientInfo.deviceOS,[Ce.NS.ClientOsName]:this.deviceOSName,[Ce.NS.ClientOsVersion]:this.clientInfo.deviceOSVersion,[Ce.NS.CountryCode]:me})}getSupportedOSName(me){switch(me=me?.toLowerCase().includes("windows")?"windows":me,me?.toLowerCase()){case"windows":return"WINDOWS";case"mac":case"macos":return"MACOS";case"linux":return"LINUX";case"chrome os":case"chromeos":return"CHROMEOS";case"ios":return"IOS";case"ipados":return"IPADOS";case"webos":return"WEBOS";case"tizen":return"TIZEN";case"xbox":return"XBOX";case"android":return"ANDROID";case"visionos":return"VISIONOS";case"steamos":return"STEAMOS";default:return this.logger.info("Cannot get supported OS name for OS: ",me),""}}updateCommonClientParams(me,ne){me&&ne&&(this.commonClientParams[me]=ne)}getCloudVariable(me,ne={},G,W,$,le,Pe){return this.config.denyListExperiences.includes(me)?this.fetchSingleCloudVariable(me,ne,G,W,$,le,Pe).pipe((0,c.M)(Fe=>this.logger.info("Received requested cloud variable information: ",me,Fe))):this.batchCvsFetchedStatus$.pipe((0,a.s)(1),(0,r.ZZ)(()=>this.fetchCloudVariableStream.get$().pipe((0,r.ZZ)(Fe=>{const At=Fe.get(me);return At?At?.value?(0,S.of)(At):(0,O.$)(g):this.fetchSingleCloudVariable(me,ne,G,W,$,le)}),(0,c.M)(Fe=>{this.logger.info("Received requested cloud variable information: ",me,Fe)}),(0,m.W)(Fe=>(0,O.$)(Fe)))))}fetchSingleCloudVariable(me,ne={},G,W,$,le,Pe){let Fe,At;return this.logger.info("fetchSingleCloudVariable called for ",me),this.isGxTargetConfiguredCorrectly(le).pipe((0,r.ZZ)(([Le])=>(this.logger.info("cloud variable requested with params",me,ne,{...this.clientInfo}),Le?this.fetchCachedData(me):(0,O.$)(`client info not available -> clientId, clientVersion, userId, \n idpId, deviceId, clientVariant, clientType, deviceOS, deviceOSVersion, deviceType, deviceModel, deviceMake:\n ${this.clientInfo.clientId}, ${this.clientInfo.clientVer}, ${this.clientInfo.userId},\n ${this.clientInfo.idpId}, ${this.clientInfo.deviceId}, ${this.clientInfo.clientVariant},\n ${this.clientInfo.clientType}, ${this.clientInfo.deviceOS}, ${this.clientInfo.deviceOSVersion},\n ${this.clientInfo.deviceType}, ${this.clientInfo.deviceModel}, ${this.clientInfo.deviceMake}`))),(0,r.ZZ)(Le=>{Fe=Le,At=Fe&&Fe[me];const Et=this.callGetCloudVariableApi(me,ne,At,Fe,W,$);if(At){const $e={additionalClientParams:ne,commonClientParams:this.commonClientParams},Ze=this.cacheIsCurrent(At,G?.cacheLifetimeOverride)&&(Pe||(0,U.isEqual)($e,At.clientRequestParams)),Qe=(0,S.of)({name:At.name,variation:At.result,value:At.value,activity:At.activity,metadata:At.metadata,isCachedResult:!0,state:T.CloudVariableStatus.Unknown});if(G?.useCache){if(Ze)return Qe}else if(G?.useNetworkTimeoutForCacheFallback)return Et.subscribe(_.l,Ve=>{this.logger.info(`Error while fetching ${me}`,Ve)}),Et.pipe((0,M.o)(this.config.networkTimeoutForCacheFallback,Qe))}return Et}))}callGetCloudVariableApi(me,ne={},G,W,$,le){const Pe=this.distributedTracingUtilService.startSpan(Ce.pB.ClientGetCloudVariable),Fe=this.distributedTracingUtilService.extractContextFromSpan(Pe);return(0,y.H)(this.cloudVariableSdk.getCloudVariable(me,T.CachePolicy.LIVE,{...this.commonClientParams,...ne},Fe).catch(At=>{this.logger.error("Error in getCloudVariable from cloudVariableSdk",At)})).pipe((0,r.ZZ)(At=>{if(At){if(this.sendCloudVariableFetchSuccessTelemetry(At,$,le),(0,U.isEmpty)(At))return(0,O.$)(new g);this.distributedTracingUtilService.closeSpan(Pe);const Le=At;return Le.clientRequestParams={commonClientParams:this.commonClientParams,additionalClientParams:ne},(0,S.of)({name:Le.name,variation:Le.result,value:Le.value,activity:Le.activity,metadata:Le.metadata,isCachedResult:!1,state:T.CloudVariableStatus.Unknown})}return void 0===At?(0,O.$)(new R):(this.sendCloudVariableFetchSuccessTelemetry(At,$,le),(0,O.$)(new g))}),(0,m.W)(At=>(this.distributedTracingUtilService.setSpanAttribute(Pe,Ce.NS.Error,!0),this.distributedTracingUtilService.closeSpan(Pe),At instanceof g?G?this.cleanupExperienceForCloudVariable(me,W).pipe((0,r.ZZ)(()=>(0,O.$)(At))):(this.logger.info("Empty cloud variable and no cached response"),(0,O.$)(At)):G?(this.logger.info(`Applying cached experiment: ${me}`),this.sendCloudVariableFetchFailureTelemetry(At,$,le),(0,S.of)({name:G.name,variation:G.result,value:G.value,activity:G.activity,metadata:G.metadata,isCachedResult:!0,state:T.CloudVariableStatus.Unknown})):(this.sendCloudVariableFetchFailureTelemetry(At,$,le),(0,O.$)(At)))),(0,I.t)(1))}cleanupExperienceForCloudVariable(me,ne){const $=this.getSharedStorageKey(ne[me].activity.activationType);return this.logger.info(`Empty experiment list clearing the cache for: ${me}`),delete ne[me],this.sharedStorageService.writeBlock($,ne)}fetchCachedData(me){let ne=(0,S.of)({});if(this.clientInfo.userId!==N.oX.Undefined){const G=this.getSharedStorageKey(N.CV.USER_ID);ne=this.readFromSharedStorage(G)}return(0,P.p)([ne,this.readFromSharedStorage(this.getSharedStorageKey(N.CV.DEVICE_ID))]).pipe((0,r.ZZ)(([G,W])=>{let $;return G&&G[me]?(this.logger.info("found activity in user storage",me,G[me]),$=G):W&&W[me]?(this.logger.info("found activity in global storage",me,W[me]),$=W):$={},(0,S.of)($)}))}cacheIsCurrent(me,ne=this.cacheMaxAge){return-1===ne?!!me:!!(me&&V.Nq.getDifferenceInTime(new Date,this.getExperimentRefreshDate(me),V.yr.MINUTES)<=ne)}getExperimentRefreshDate(me){return me.metadata&&me.metadata.refreshDate}isGxTargetConfiguredCorrectly(me){let ne=this.isInitialized$;return me&&(ne=this.isInitialized$.pipe((0,r.ZZ)(()=>me),(0,r.ZZ)(G=>(this.logger.info("Setting user info"),this.setUserInfo(G),(0,S.of)(G))))),ne.pipe((0,a.s)(1),(0,D.T)(()=>[!!(this.clientInfo.clientId&&this.clientInfo.clientVer&&this.clientInfo.deviceId),this.clientInfo.clientId,this.clientInfo.clientVer,this.clientInfo.deviceId,this.clientInfo.userId,this.clientInfo.idpId,this.clientInfo.browserType,this.clientInfo.clientVariant,this.clientInfo.clientType,this.clientInfo.deviceOS,this.clientInfo.deviceOSVersion,this.clientInfo.deviceType,this.clientInfo.deviceModel,this.clientInfo.deviceMake]))}sendCloudVariableFetchFailureTelemetry(me,ne,G){if(0===this.config.clientId.localeCompare(He)){const W=new se({sourceComponent:this.hostClientType||re.Unknown,originalService:ie.GxTarget,serviceUseCase:ne,serviceSubUseCase:G,url:me?.config?.url||"",networkErrorCode:String(me&&me.response?me.response.status:0),destinationIp:"",xRequestId:me&&me.xRequestId?me.xRequestId:"",retryCount:0,wasSWCacheBypassed:ve.UNDEFINED,networkErrorMessage:me?.response?.message?.substring(0,1024)||""});this.telemetryService.push(W)}else{const W=new Se({sourceComponent:this.hostClientType||re.Unknown,originalService:ie.GxTarget,serviceUseCase:ne,serviceSubUseCase:G,url:me?.config?.url||"",networkErrorCode:String(me&&me.response?me.response.status:0),destinationIp:"",xRequestId:me&&me.xRequestId?me.xRequestId:"",httpStatus:me?.response?.status||0,responseData:"",durationMs:0,retryCount:0,wasSWCacheBypassed:ve.UNDEFINED});this.telemetryService.push(W)}}sendCloudVariableFetchSuccessTelemetry(me,ne,G){if(0===this.config.clientId.localeCompare(He)){const W=new Z({sourceComponent:this.hostClientType||re.Unknown,originalService:ie.GxTarget,serviceUseCase:ne,serviceSubUseCase:G,url:me?.url||"",httpStatus:me?.httpStatus||200,durationMs:Math.round(me?.durationMs)||0,destinationIp:"",responseData:"",xRequestId:me?.xRequestId||"",retryCount:0,wasSWCacheBypassed:ve.UNDEFINED});this.telemetryService.push(W)}else{const W=new Se({sourceComponent:this.hostClientType||re.Unknown,originalService:ie.GxTarget,serviceUseCase:ne,serviceSubUseCase:G,url:me?.url||"",networkErrorCode:"",destinationIp:"",xRequestId:me?.xRequestId||"",httpStatus:me?.httpStatus||200,responseData:"",durationMs:Math.round(me?.durationMs)||0,retryCount:0,wasSWCacheBypassed:ve.UNDEFINED});this.telemetryService.push(W)}}static{this.\u0275fac=function(ne){return new(ne||Q)(n.KVO(d),n.KVO(V.J6),n.KVO(N.H0),n.KVO(Be.yQ),n.KVO(V.zW),n.KVO(Xe.mZ),n.KVO(V.iH),n.KVO(Ce.Z1))}}static{this.\u0275prov=n.jDH({token:Q,factory:Q.\u0275fac,providedIn:"root"})}}return Q})()},48852:(Bt,z,s)=>{"use strict";s.d(z,{dt:()=>n,bi:()=>V,Oz:()=>ne,GJ:()=>d});var n=function(G){return G[G.A=0]="A",G[G.B=1]="B",G[G.X=2]="X",G[G.Y=3]="Y",G[G.LeftBumper=4]="LeftBumper",G[G.RightBumper=5]="RightBumper",G[G.LeftTrigger=6]="LeftTrigger",G[G.RightTrigger=7]="RightTrigger",G[G.Back=8]="Back",G[G.Start=9]="Start",G[G.LeftStick=10]="LeftStick",G[G.RightStick=11]="RightStick",G[G.DpadUp=12]="DpadUp",G[G.DpadDown=13]="DpadDown",G[G.DpadLeft=14]="DpadLeft",G[G.DpadRight=15]="DpadRight",G[G.Center=16]="Center",G}(n||{}),l=s(58527);let d=(()=>{class G{static{this.\u0275fac=function(le){return new(le||G)}}static{this.\u0275prov=l.jDH({token:G,factory:G.\u0275fac})}}return G})();var v=s(31315),S=s(12532),y=s(16229),f=s(3496),O=s(80583),P=s(26513),_=s(83915),i=s(34593),r=s(8619),a=s(53461),c=s(72147),m=s(10174),M=s(75707),D=s(43848);function I(G){return(0,c.n)(W=>W?(0,f.O)(0,G).pipe((0,m.u)(!0)):(0,D.of)(!1))}var U=s(20924);class V{}var T=function(G){return G.Left="left",G.Right="right",G.Up="up",G.Down="down",G}(T||{}),N=function(G){return G.Vertical="vertical",G.Horizontal="horizontal",G}(N||{}),L=function(G){return G[G.Left=0]="Left",G[G.Right=1]="Right",G}(L||{});const g=32767,R=-32768,B={[T.Down]:N.Vertical,[T.Up]:N.Vertical,[T.Left]:N.Horizontal,[T.Right]:N.Horizontal};var X=function(G){return G[G.NVST_GC_NONE=0]="NVST_GC_NONE",G[G.NVST_GC_BTN_START=1]="NVST_GC_BTN_START",G[G.NVST_GC_BTN_SELECT=2]="NVST_GC_BTN_SELECT",G[G.NVST_GC_BTN_MODE=3]="NVST_GC_BTN_MODE",G[G.NVST_GC_BTN_X=4]="NVST_GC_BTN_X",G[G.NVST_GC_BTN_Y=5]="NVST_GC_BTN_Y",G[G.NVST_GC_BTN_Z=6]="NVST_GC_BTN_Z",G[G.NVST_GC_BTN_A=7]="NVST_GC_BTN_A",G[G.NVST_GC_BTN_B=8]="NVST_GC_BTN_B",G[G.NVST_GC_BTN_C=9]="NVST_GC_BTN_C",G[G.NVST_GC_BTN_THUMBL=10]="NVST_GC_BTN_THUMBL",G[G.NVST_GC_BTN_THUMBR=11]="NVST_GC_BTN_THUMBR",G[G.NVST_GC_BTN_L1=12]="NVST_GC_BTN_L1",G[G.NVST_GC_BTN_R1=13]="NVST_GC_BTN_R1",G[G.NVST_GC_AXIS_DPAD_X=14]="NVST_GC_AXIS_DPAD_X",G[G.NVST_GC_AXIS_DPAD_Y=15]="NVST_GC_AXIS_DPAD_Y",G[G.NVST_GC_AXIS_LSTICK_X=16]="NVST_GC_AXIS_LSTICK_X",G[G.NVST_GC_AXIS_LSTICK_Y=17]="NVST_GC_AXIS_LSTICK_Y",G[G.NVST_GC_AXIS_RSTICK_X=18]="NVST_GC_AXIS_RSTICK_X",G[G.NVST_GC_AXIS_RSTICK_Y=19]="NVST_GC_AXIS_RSTICK_Y",G[G.NVST_GC_TRIGGER_LEFT=20]="NVST_GC_TRIGGER_LEFT",G[G.NVST_GC_TRIGGER_RIGHT=21]="NVST_GC_TRIGGER_RIGHT",G[G.NVST_GC_BTN_TOUCHPAD=22]="NVST_GC_BTN_TOUCHPAD",G[G.NVST_GC_AXIS_TOUCHPAD1_X=23]="NVST_GC_AXIS_TOUCHPAD1_X",G[G.NVST_GC_AXIS_TOUCHPAD1_Y=24]="NVST_GC_AXIS_TOUCHPAD1_Y",G[G.NVST_GC_AXIS_TOUCHPAD2_X=25]="NVST_GC_AXIS_TOUCHPAD2_X",G[G.NVST_GC_AXIS_TOUCHPAD2_Y=26]="NVST_GC_AXIS_TOUCHPAD2_Y",G[G.NVST_GC_NUM_CONTROLS=27]="NVST_GC_NUM_CONTROLS",G}(X||{});const H={[X.NVST_GC_BTN_START]:n.Start,[X.NVST_GC_BTN_SELECT]:n.Back,[X.NVST_GC_BTN_MODE]:n.Center,[X.NVST_GC_BTN_X]:n.X,[X.NVST_GC_BTN_Y]:n.Y,[X.NVST_GC_BTN_A]:n.A,[X.NVST_GC_BTN_B]:n.B,[X.NVST_GC_BTN_THUMBL]:n.LeftStick,[X.NVST_GC_BTN_THUMBR]:n.RightStick,[X.NVST_GC_BTN_L1]:n.LeftBumper,[X.NVST_GC_BTN_R1]:n.RightBumper,[X.NVST_GC_TRIGGER_LEFT]:n.LeftTrigger,[X.NVST_GC_TRIGGER_RIGHT]:n.RightTrigger};class J extends V{get isGamepadConnected$(){return this.connectedGamepadsInfoSubject.asObservable().pipe((0,_.T)(W=>W.length>0))}get isAnyGamepadInUse$(){const W=this.buttonPressedSubject.asObservable().pipe((0,_.T)(Fe=>Fe.isPressed),(0,i.Z)(!1)),$=this.joystickMovementSubject.asObservable().pipe((0,r.p)(Fe=>Fe.position===L.Right),(0,_.T)(Fe=>Fe.value>this.gamepadConfig.joystickMovementThreshold*g||Fe.value<this.gamepadConfig.joystickMovementThreshold*R),(0,i.Z)(!1)),le=this.joystickMovementSubject.asObservable().pipe((0,r.p)(Fe=>Fe.position===L.Left),(0,_.T)(Fe=>Fe.value>this.gamepadConfig.joystickMovementThreshold*g||Fe.value<this.gamepadConfig.joystickMovementThreshold*R),(0,i.Z)(!1));return(0,v.zV)([$,le,W]).pipe((0,_.T)(([Fe,At,Le])=>Fe||At||Le),(0,a.F)())}getObservableForDirection(W){let $;switch(W){case T.Down:$=n.DpadDown;break;case T.Left:$=n.DpadLeft;break;case T.Right:$=n.DpadRight;break;case T.Up:$=n.DpadUp}return this.isGamepadConnected$.pipe((0,c.n)(le=>le?(0,y.h)(this.buttonPressedSubject.asObservable().pipe((0,r.p)(Pe=>Pe.name===$),(0,_.T)(Pe=>Pe.isPressed)),this.getLeftJoystickMovementObservable(W)).pipe((0,a.F)(),I(this.gamepadConfig.continuousNavigationInterval)):S.w))}get leftPressed$(){return this.getObservableForDirection(T.Left)}get rightPressed$(){return this.getObservableForDirection(T.Right)}get upPressed$(){return this.getObservableForDirection(T.Up)}get downPressed$(){return this.getObservableForDirection(T.Down)}get rightStickMoved$(){return this.joystickMovementSubject.asObservable().pipe((0,r.p)(W=>W.position===L.Right),(0,_.T)(W=>W.value>this.gamepadConfig.joystickMovementThreshold*g||W.value<this.gamepadConfig.joystickMovementThreshold*R),(0,a.F)())}onButtonPressed$(W,$){return this.buttonPressedSubject.asObservable().pipe((0,r.p)(le=>le.name===W),(0,_.T)(le=>le.isPressed))}onButtonLongPressed$(W,$){return this.buttonPressedSubject.asObservable().pipe((0,r.p)(le=>le.name===W),(0,c.n)(le=>le.isPressed?(0,f.O)($??this.gamepadConfig.longPressDuration).pipe((0,m.u)(!0)):S.w))}onButtonComboPressed$(W){const $=W.map(le=>this.buttonPressedSubject.asObservable().pipe((0,r.p)(Pe=>Pe.name===le),(0,_.T)(Pe=>Pe.isPressed),(0,i.Z)(!1)));return(0,v.zV)($).pipe((0,_.T)(le=>!le.some(Fe=>!1===Fe)))}hasMovedMoreThanThreshold(W,$){switch($){case T.Down:case T.Right:return W>this.gamepadConfig.joystickMovementThreshold*g;case T.Up:case T.Left:return W<this.gamepadConfig.joystickMovementThreshold*R}}hasMovedMoreThanPreviousValue(W,$,le){switch(W){case T.Down:case T.Right:return $>le;case T.Left:case T.Up:return $<le}}getLeftJoystickMovementObservable(W){const $=B[W];let le,Pe=!0;return this.joystickMovementSubject.asObservable().pipe((0,r.p)(Fe=>Fe.position===L.Left&&Fe.axis===$),(0,_.T)(Fe=>{let At=!1;if(void 0===le){if(At=this.hasMovedMoreThanThreshold(Fe.value,W),At){if(!Pe)return!1;le=Fe.value}return At}return this.hasMovedMoreThanPreviousValue(W,Fe.value,le)?(le=Fe.value,!0):(le=void 0,Pe=!1,setTimeout(()=>{Pe=!0},this.gamepadConfig.cooloffDuration),!1)}))}handleGamepadEvent(W){const $=H[W.control];if(void 0===$)switch(W.control){case X.NVST_GC_AXIS_DPAD_X:W.value===R?this.buttonPressedSubject.next({name:n.DpadLeft,isPressed:!0}):W.value===g?this.buttonPressedSubject.next({name:n.DpadRight,isPressed:!0}):0===W.value&&(this.buttonPressedSubject.next({name:n.DpadLeft,isPressed:!1}),this.buttonPressedSubject.next({name:n.DpadRight,isPressed:!1}));break;case X.NVST_GC_AXIS_DPAD_Y:W.value===R?this.buttonPressedSubject.next({name:n.DpadUp,isPressed:!0}):W.value===g?this.buttonPressedSubject.next({name:n.DpadDown,isPressed:!0}):0===W.value&&(this.buttonPressedSubject.next({name:n.DpadDown,isPressed:!1}),this.buttonPressedSubject.next({name:n.DpadUp,isPressed:!1}));break;case X.NVST_GC_AXIS_LSTICK_X:this.joystickMovementSubject.next({value:W.value,axis:N.Horizontal,position:L.Left});break;case X.NVST_GC_AXIS_LSTICK_Y:this.joystickMovementSubject.next({value:W.value,axis:N.Vertical,position:L.Left});break;case X.NVST_GC_AXIS_RSTICK_X:this.joystickMovementSubject.next({value:W.value,axis:N.Horizontal,position:L.Right});break;case X.NVST_GC_AXIS_RSTICK_Y:this.joystickMovementSubject.next({value:W.value,axis:N.Vertical,position:L.Right});break;default:this.logger.warn(`No handling for gamepad event ${W.control}, ignoring`)}else this.buttonPressedSubject.next({name:$,isPressed:1===W.value||-1===W.value})}constructor(W,$,le,Pe){super(),this.bridgeService=$,this.gamepadConfig=le,this.ngZone=Pe,this.buttonPressedSubject=new O.B7,this.joystickMovementSubject=new O.B7,this.connectedGamepadsInfoSubject=new P.t([]),this.logger=W.getLogger("GeronimoEventGamepadService"),this.ngZone.runOutsideAngular(()=>{this.bridgeService.executeCommand(U.Ts.Gfn.Streaming.RegisterGamepadChangedCallback).pipe((0,i.Z)(0),(0,M.ZZ)(Fe=>this.bridgeService.executeCommand(U.Ts.Gfn.Streaming.GetConnectedGamepads))).subscribe(Fe=>{this.logger.info(`Connected gamepad info post gamepadChangeEvent: ${JSON.stringify(Fe)}`),this.connectedGamepadsInfoSubject.next(Fe.connectedGamepadInfoList)}),this.bridgeService.executeCommand(U.Ts.Gfn.Streaming.RegisterGamepadEventCallback,{minPositiveMovement:Math.floor(this.gamepadConfig.joystickTriggeredTolerance*g),maxNegativeMovement:Math.floor(this.gamepadConfig.joystickTriggeredTolerance*R)}).subscribe(Fe=>{this.handleGamepadEvent(Fe)})})}}var re=s(99469),ie=s(27731),ve=s(892),ue=s(36877),se=s(63997),Z=s(65726),Se=s(48765),Ce=s(91384),Be=s(55833),Xe=s(65770);class He extends V{get isGamepadConnected$(){return this._isGamepadConnected$}get isAnyGamepadInUse$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,_.T)(W=>W.some($=>this.isAnyAxisTriggeredOrButtonPressed($))),(0,a.F)()))}get leftPressed$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,_.T)(W=>W.some($=>this.isAxisTriggeredOrButtonPressed($,le=>le[0]<-this.gamepadConfig.joystickMovementThreshold,n.DpadLeft))),(0,a.F)(),I(this.gamepadConfig.continuousNavigationInterval)))}get rightPressed$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,_.T)(W=>W.some($=>this.isAxisTriggeredOrButtonPressed($,le=>le[0]>this.gamepadConfig.joystickMovementThreshold,n.DpadRight))),(0,a.F)(),I(this.gamepadConfig.continuousNavigationInterval)))}get upPressed$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,_.T)(W=>W.some($=>this.isAxisTriggeredOrButtonPressed($,le=>le[1]<-this.gamepadConfig.joystickMovementThreshold,n.DpadUp))),(0,a.F)(),I(this.gamepadConfig.continuousNavigationInterval)))}get downPressed$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,_.T)(W=>W.some($=>this.isAxisTriggeredOrButtonPressed($,le=>le[1]>this.gamepadConfig.joystickMovementThreshold,n.DpadDown))),(0,a.F)(),I(this.gamepadConfig.continuousNavigationInterval)))}get rightStickMoved$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,_.T)(W=>W.some($=>this.isAxisTriggeredOrButtonPressed($,le=>le[2]>this.gamepadConfig.joystickTriggeredTolerance||le[3]<-this.gamepadConfig.joystickTriggeredTolerance,n.RightStick))),(0,a.F)()))}onButtonPressed$(W,$){return this.ngZone.runOutsideAngular(()=>this.getButtonPressed$(this.gamepadsTick$,W,$))}onButtonLongPressed$(W,$){return this.ngZone.runOutsideAngular(()=>this.getButtonPressed$(this.gamepadsTick$,W).pipe((0,c.n)(le=>le?(0,D.of)(!0).pipe((0,Z.c)($??this.gamepadConfig.longPressDuration)):ie.t)))}onButtonComboPressed$(W){return this.ngZone.runOutsideAngular(()=>this.getButtonComboPressed$(this.gamepadsTick$,W))}constructor(W,$,le,Pe,Fe){super(),this.ngZone=le,this.browserSupportService=Pe,this.gamepadConfig=Fe,this.pollForGamepadConnection=!!this.gamepadConfig?.pollForGamepadConnection,this.logger=W.getLogger("WebApiGamepadService");const Et=$e=>$e?.connected&&(!!re.zk.isAndroidPlatform()||($e=>"standard"===$e?.mapping)($e));le.runOutsideAngular(()=>{let $e=this.pollForGamepadConnection;const Ze=$e?(0,ve.Y)(1e3):ie.t;this._isGamepadConnected$=(0,y.h)((0,ue.R)(window,"gamepadconnected"),(0,ue.R)(window,"gamepaddisconnected"),Ze.pipe((0,Se.v)(()=>$e))).pipe((0,i.Z)(0),(0,_.T)(Ot=>this.browserSupportService.getGamepads().some(Et)),(0,Ce.M)(Ot=>{Ot&&this.pollForGamepadConnection&&($e=!1)}),(0,a.F)(),(0,Be.t)(1));const Qe=$.leanModeTransitionState.pipe((0,i.Z)(this.gamepadConfig.gamepadTickPeriodDefault),(0,_.T)(Ot=>this.gamepadConfig.gamepadTickPeriodLean),(0,a.F)()),Ve=Pe.applicationWindowState$.pipe((0,_.T)(Ot=>"foreground"===Ot)),nt=(0,y.h)((0,se.v)(()=>(0,D.of)(document.hasFocus())),(0,ue.R)(window,"focus").pipe((0,m.u)(!0)),(0,ue.R)(window,"blur").pipe((0,m.u)(!1)));this.gamepadsTick$=(0,v.zV)([this._isGamepadConnected$,Ve,nt]).pipe((0,_.T)(([Ot,at,It])=>(this.logger.info("connected=",Ot,", foreground=",at,", windowFocused=",It),Ot&&at&&It)),(0,a.F)(),(0,c.n)(Ot=>Ot?(this.logger.info("Start polling gamepad state"),Qe.pipe((0,Ce.M)(at=>{this.logger.info(`Polling gamepad state with period: ${at} ms`)}),(0,c.n)(at=>(0,ve.Y)(at)),(0,_.T)(at=>Pe.getGamepads().filter(Et)))):(this.logger.info("Stop polling gamepad state"),(0,D.of)([]))),(0,Xe.u)())})}getButtonComboPressed$(W,$){return W.pipe((0,_.T)(le=>le.some(Pe=>$.every(Fe=>this.isButtonPressed(Pe,Fe)))),(0,a.F)())}getButtonPressed$(W,$,le){const Pe=!!le?.repeat,Fe=W.pipe((0,_.T)(At=>At.some(Le=>this.isButtonPressed(Le,$,le?.customButtonIndex))),(0,a.F)());return Pe?Fe.pipe(I(this.gamepadConfig.continuousNavigationInterval)):Fe}isButtonPressed(W,$,le){return W.buttons[le??$].pressed}isAxisTriggeredOrButtonPressed(W,$,le){return $(W.axes)||this.isButtonPressed(W,le)}isAnyAxisTriggeredOrButtonPressed(W){return W.buttons.some(Pe=>Pe.pressed)||(()=>W.axes.some(Pe=>Pe>this.gamepadConfig.joystickTriggeredTolerance||Pe<-this.gamepadConfig.joystickTriggeredTolerance))()}}class Me extends V{get isGamepadConnected$(){return S.w}get isAnyGamepadInUse$(){return S.w}get leftPressed$(){return S.w}get rightPressed$(){return S.w}get upPressed$(){return S.w}get downPressed$(){return S.w}get rightStickMoved$(){return S.w}onButtonPressed$(W,$){return S.w}onButtonLongPressed$(W,$){return S.w}onButtonComboPressed$(W){return S.w}}class Q extends Me{constructor(W){super(),this.systemInfoService=W}get isGamepadConnected$(){return this.systemInfoService.getSystemInfo([re.Lu.HID]).pipe((0,_.T)($=>$?.HID?.GamePad?.length>0))}}var A=s(54292);const ne={provide:V,useFactory:function me(G,W,$){switch(G.implementationType){case"android":const le=$.get(re.zW);return new Q(le);case"geronimo":{const Pe=$.get(re.J6),Fe=$.get(re.NZ);return new J(Pe,Fe,G,W)}case"webapi":{const Pe=$.get(re.J6),Fe=$.get(re.rQ),At=$.get(A.vT);return new He(Pe,Fe,W,At,G)}case"no-op":return new Me}},deps:[d,l.SKi,l.zZn]}},33089:(Bt,z,s)=>{"use strict";s.d(z,{NO:()=>c,Qe:()=>m});var n=s(43848),l=s(75707),d=s(20468),v=s(26875),O=function(D){return D.GfcHeadRequest="FeedbackHead",D.GfcAttachmentRequest="FeedbackAttachment",D}(O||{}),P=s(58527);let _=(()=>{class D{static{this.\u0275fac=function(V){return new(V||D)}}static{this.\u0275prov=P.jDH({token:D,factory:D.\u0275fac})}}return D})();var i=s(5798);const a="gfc/v4.0/attachment";let c=(()=>{class D{constructor(U,V){this.serverConfig=U,this.endpointFactory=V,this.latestOffset=0,this.commonFeedbackEventData={},this.previousChunkDataSize=0,this.prepareCommonFeedbackData(U),this.feedbackEndpointUrl=this.prepareFeedbackEndpoint(),this.feedbackAttachmentEndpointUrl=this.prepareFeedbackAttachmentEndpoint()}generateUrl(U){return this.serverConfig.server+"/"+U}computeSHA256Checksum(U){let V="";return(0,v.isEmpty)(U)||(V=(0,d.sha256)(U)),V}getDataSize(U){return(0,v.isEmpty)(U)?0:new Blob([U]).size}prepareFeedbackEndpoint(){return this.feedbackEndpointUrl=this.endpointFactory.createEndpoint({headers:{"Content-Type":"application/json"},config:{timeout:this.serverConfig.defaultTimeout,timeBetweenRetries:this.serverConfig.defaultTimeBetweenRetries,maxRetries:this.serverConfig.defaultRetries},reportRequestData:{originalService:"Gfc",serviceUseCase:O.GfcHeadRequest,reportSuccessTelemetry:"false"}}),this.feedbackEndpointUrl}prepareFeedbackAttachmentEndpoint(){return this.feedbackAttachmentEndpointUrl=this.endpointFactory.createEndpoint({config:{timeout:this.serverConfig.defaultTimeout,timeBetweenRetries:this.serverConfig.defaultTimeBetweenRetries,maxRetries:this.serverConfig.defaultRetries},reportRequestData:{originalService:"Gfc",serviceUseCase:O.GfcAttachmentRequest,reportSuccessTelemetry:"false"}}),this.feedbackAttachmentEndpointUrl}prepareCommonFeedbackData(U){this.commonFeedbackEventData=(0,v.extend)(this.commonFeedbackEventData,{clientId:U.clientId,feedbackProtocol:"4.4",feedbackSchemaVer:U.schemaVersion,feedbackSysVer:U.version})}buildGFCMultipartData(U,V,T,N,L=0,E=!1){const g=new FormData;return g.append("data2",new Blob([U])),g.append("feedbackId",V),g.append("size",T.toString()),g.append("checksum",this.computeSHA256Checksum(U)),N&&g.append("parameters",JSON.stringify(N.parameters)),g.append("offset",L.toString()),E&&g.append("eob","true"),g}updatePreviousChunkSizeAndBuildMultipartData(U,V,T=!1){return this.previousChunkDataSize=this.getDataSize(U),this.buildGFCMultipartData(U,this.xFeedbackId,this.previousChunkDataSize,V,this.latestOffset,T)}sendFeedbackHeadRequest(U){return U=(0,v.merge)(U,this.commonFeedbackEventData),this.feedbackEndpointUrl.makeRequestEx("POST",this.generateUrl("gfc/v4.0/head"),{body:U,headers:{"Content-Type":"application/json"},withCredentials:!0})}sendFeedbackEvent(U){return this.latestOffset=0,this.xFeedbackId=U.feedbackId,this.sendFeedbackHeadRequest(U)}sendFeedbackChunkEvent(U,V,T=!1,N){if(T){if(N?.isBrowserClosing)return this.sendLastFeedbackChunkEvent(U,V),(0,n.of)({});{N.prevChunkInProgress&&this.updateOffsetOnSuccessfulAttachmentRequest();const L=this.updatePreviousChunkSizeAndBuildMultipartData(U,V,!0);return this.latestOffset=0,this.sendFeedbackAttachmentReq(L)}}{const L=this.updatePreviousChunkSizeAndBuildMultipartData(U,V);return this.sendFeedbackAttachmentReq(L)}}sendFeedbackAttachmentReq(U){return this.feedbackAttachmentEndpointUrl.makeRequestEx("POST",this.generateUrl(a),{body:U,withCredentials:!0})}sendLastFeedbackChunkEvent(U,V){const T=this.updatePreviousChunkSizeAndBuildMultipartData(U,V,!0);navigator.sendBeacon(this.generateUrl(a),T),this.latestOffset=0}updateOffsetOnSuccessfulAttachmentRequest(U){this.latestOffset=U||Number(this.latestOffset)+Number(this.previousChunkDataSize)}sendFeedbackBasedOnTechConsent(U,V,T){return U.sentTs=(new Date).toISOString(),this.sendFeedbackHeadRequest(U).pipe((0,l.ZZ)(()=>{if(V){const N=this.buildGFCMultipartData(T,U.feedbackId,this.getDataSize(T),void 0,0,!0);return this.sendFeedbackAttachmentReq(N)}return(0,n.of)(!0)}))}static{this.\u0275fac=function(V){return new(V||D)(P.KVO(_),P.KVO(i.t))}}static{this.\u0275prov=P.jDH({token:D,factory:D.\u0275fac,providedIn:"root"})}}return D})();const m="undefined"},56784:(Bt,z,s)=>{"use strict";s.d(z,{Fw:()=>Se});var n=s(85735),l=s(43848),d=s(31315),v=s(65706),S=s(75707),y=s(72147),f=s(83915),O=s(14714),P=s(20924),_=s(20381),i=s(99469);const r="desktop",a="browser",c="android",M="selectOtherLayout";var D=function(Et){return Et.WindowsOS="Windows",Et.BrowserChromeOS="ChromeOS",Et.BrowserMacOS="macOS",Et.NativeMacOS="Mac",Et.XboxOS="Xbox",Et.AndroidOS="Android",Et.ShieldOS="Shield",Et}(D||{}),I=function(Et){return Et.Default="default",Et.Mac="mac",Et}(I||{});const U={WindowsOS:I.Default,BrowserChromeOS:I.Default,BrowserMacOS:I.Mac,NativeMacOS:I.Mac,XboxOS:I.Default,AndroidOS:I.Default},V={[r+D.WindowsOS]:"en-US",[r+D.NativeMacOS]:"m-us",[a+D.WindowsOS]:"en-US",[a+D.BrowserMacOS]:"m-us",[a+D.BrowserChromeOS]:"en-US",[a+D.XboxOS]:"en-US",[c+D.AndroidOS]:"en-US",[c+D.ShieldOS]:"en-US"},T=[`${r}${D.WindowsOS}`,`${r}${D.NativeMacOS}`,`${a}${D.WindowsOS}`,`${a}${D.BrowserMacOS}`,`${a}${D.BrowserChromeOS}`,`${a}${D.XboxOS}`,`${c}${D.AndroidOS}`,`${c}${D.ShieldOS}`],N={albanian:{default_keyCode:"sq-AL"},armenianPhonetic:{default_keyCode:"hy-AM"},assameseInscript:{default_keyCode:"as-IN"},azerbaijaniCyrillic:{default_keyCode:"az-Cyrl-AZ"},azerbaijaniLatin:{default_keyCode:"az-Latn-AZ"},banglaIndia:{default_keyCode:"bn-IN"},bashkir:{default_keyCode:"ba-RU"},belarusian:{default_keyCode:"be-BY"},belgianPeriod:{default_keyCode:"nl-BE"},belgianFrench:{default_keyCode:"fr-BE"},bosnianCyrillic:{default_keyCode:"bs-Cyrl-BA"},bulgarian:{default_keyCode:"bg-BG"},canadianEnglish:{default_keyCode:"en-CA"},canadianFrench:{default_keyCode:"fr-CA"},cherokeeNation:{default_keyCode:"chr-Cher-US"},chineseSimplified:{default_keyCode:"zh-CN"},chineseSimplifiedSingapore:{default_keyCode:"zh-SG"},chineseTraditional:{default_keyCode:"zh-TW"},chineseTraditionalHongKongSAR:{default_keyCode:"zh-HK"},chineseTraditionalMacaoSAR:{default_keyCode:"zh-MO"},croatian:{default_keyCode:"hr-HR",mac_keyCode:"m-hr"},czech:{default_keyCode:"cs-CZ",mac_keyCode:"m-cs"},danish:{default_keyCode:"da-DK",mac_keyCode:"m-da"},divehiPhonetic:{default_keyCode:"dv-MV"},dutch:{default_keyCode:"nl-NL",mac_keyCode:"m-nl-NL"},dzongkha:{default_keyCode:"dz-BT"},englishIndia:{default_keyCode:"en-IN"},englishUK:{default_keyCode:"en-GB",mac_keyCode:"m-brit"},englishUS:{default_keyCode:"en-US",mac_keyCode:"m-us"},abcExtended:{mac_keyCode:"en-US"},estonian:{default_keyCode:"et-EE",mac_keyCode:"m-et"},faeroese:{default_keyCode:"fo-FO"},finnish:{default_keyCode:"fi-FI",mac_keyCode:"m-fi"},french:{default_keyCode:"fr-FR",mac_keyCode:"m-fr"},georgianQWERTY:{default_keyCode:"ka-GE"},german:{default_keyCode:"de-DE",mac_keyCode:"m-de"},greek:{default_keyCode:"el-GR",mac_keyCode:"m-el"},greenlandic:{default_keyCode:"kl-GL"},guarani:{default_keyCode:"gn-PY"},gujarati:{default_keyCode:"gu-IN"},hausa:{default_keyCode:"ha-Latn-NG"},hebrew:{default_keyCode:"he-IL"},hindiTraditional:{default_keyCode:"hi-IN"},hungarian:{default_keyCode:"hu-HU",mac_keyCode:"m-hu"},icelandic:{default_keyCode:"is-IS",mac_keyCode:"m-is"},igbo:{default_keyCode:"ig-NG"},inuktitutLatin:{default_keyCode:"iu-Latn-CA"},inuktitutNaqittaut:{default_keyCode:"iu-Cans-CA"},irish:{default_keyCode:"en-IE",mac_keyCode:"m-en-ie"},italian:{default_keyCode:"it-IT"},japanese106:{default_keyCode:"ja-106",mac_keyCode:"m-ja-106"},kannada:{default_keyCode:"kn-IN"},kazakh:{default_keyCode:"kk-KZ"},khmer:{default_keyCode:"km-KH"},korean:{default_keyCode:"ko-KR"},kyrgyzCyrillic:{default_keyCode:"ky-KG"},lao:{default_keyCode:"lo-LA"},latvianStandard:{default_keyCode:"lv-LV"},lithuanian:{default_keyCode:"lt-LT"},luxembourgish:{default_keyCode:"lb-LU"},macedonianStandard:{default_keyCode:"mk-MK"},malayalam:{default_keyCode:"ml-IN"},marathi:{default_keyCode:"mr-IN"},mongolianCyrillic:{default_keyCode:"mn-MN"},mongolianMongolianScriptStandard:{default_keyCode:"mn-Mong-CN"},nepali:{default_keyCode:"ne-NP"},norwegian:{default_keyCode:"nb-NO",mac_keyCode:"m-no"},norwegianSami:{default_keyCode:"se-NO"},odia:{default_keyCode:"or-IN"},pashtoAfghanistan:{default_keyCode:"ps-AF"},persian:{default_keyCode:"fa-IR"},polish:{default_keyCode:"pl-PL"},portuguese:{default_keyCode:"pt-PT",mac_keyCode:"m-pt"},portugueseBrazilianABNT:{default_keyCode:"pt-BR"},punjabiGurumukhi:{default_keyCode:"pa-IN"},russian:{default_keyCode:"ru-RU",mac_keyCode:"m-ru"},sakha:{default_keyCode:"sah-RU"},serbianCyrillic:{default_keyCode:"sr-Cyrl-CS"},serbianLatin:{default_keyCode:"sr-Latn-CS",mac_keyCode:"sr-Latn"},sesothoSaLeboa:{default_keyCode:"nso-ZA"},setswana:{default_keyCode:"tn-ZA"},sinhala:{default_keyCode:"si-LK"},slovak:{default_keyCode:"sk-SK",mac_keyCode:"m-sk"},slovenian:{default_keyCode:"sl-SI",mac_keyCode:"m-sl"},sorbianStandard:{default_keyCode:"hsb-DE"},spanish:{default_keyCode:"es-ES_tradnl",mac_keyCode:"m-es"},spanishLatinAmerican:{default_keyCode:"es-MX"},swedish:{default_keyCode:"sv-SE",mac_keyCode:"m-sv"},swedishSami:{default_keyCode:"se-SE"},swissFrench:{default_keyCode:"fr-CH",mac_keyCode:"m-ch-fr"},swissGerman:{default_keyCode:"de-CH",mac_keyCode:"m-ch-de"},syriac:{default_keyCode:"syr-SY"},tajik:{default_keyCode:"tg-Cyrl-TJ"},tamazightCentral:{default_keyCode:"tzm-Latn-DZ"},tamil:{default_keyCode:"ta-IN"},tatar:{default_keyCode:"tt-RU"},telugu:{default_keyCode:"te-IN"},thaiKedmanee:{default_keyCode:"th-TH"},tibetanPRCStandard:{default_keyCode:"bo-CN"},turkishQ:{default_keyCode:"tr-TR"},turkmen:{default_keyCode:"tk-TM"},urdu:{default_keyCode:"ur-PK"},uyghur:{default_keyCode:"ug-CN"},uzbekCyrillic:{default_keyCode:"uz-Cyrl-UZ"},vietnamese:{default_keyCode:"vi-VN"},wolof:{default_keyCode:"wo-SN"},yoruba:{default_keyCode:"yo-NG"},australian:{mac_keyCode:"m-AU"},austrian:{mac_keyCode:"m-AT"},belgian:{mac_keyCode:"m-nl-be"},brazilian:{mac_keyCode:"m-pt-br"},canadian:{mac_keyCode:"m-en-ca"},canadianCSA:{mac_keyCode:"m-ca-csa"},croatianPC:{default_keyCode:"hr-BA"},dvorak:{mac_keyCode:"m-dv"},englishABC:{mac_keyCode:"m-en-abc"},frenchABCAZERTY:{mac_keyCode:"m-fr-abc"},englishUSInternationalPC:{mac_keyCode:"m-us-int"},faroese:{mac_keyCode:"m-fo"},frenchNumerical:{mac_keyCode:"m-fr-num"},frenchPC:{mac_keyCode:"m-fr-pc"},hawaiian:{default_keyCode:"haw-US"},italianPro:{mac_keyCode:"m-it-pro"},latvian:{mac_keyCode:"m-lv"},maltese:{default_keyCode:"mt-MT"},maori:{default_keyCode:"mi-NZ"},polishPro:{mac_keyCode:"m-pl-pro"},romanian:{mac_keyCode:"m-ro"},romanianStandard:{default_keyCode:"ro-RO"},serbian:{default_keyCode:"sr-Cyrl"},spanishISO:{mac_keyCode:"m-es-ISO"},swedishPro:{mac_keyCode:"m-sv-pro"},turkishQWERTY:{mac_keyCode:"m-tr-qty"},ukrainian:{mac_keyCode:"m-uk"},ukrainianPC:{default_keyCode:"uk-UA"},welsh:{default_keyCode:"cy-GB"},arabic101:{default_keyCode:"ar-SA"},japanese102:{default_keyCode:"ja-JP"},arabic:{mac_keyCode:"m-ar"},russianPC:{mac_keyCode:"m-ru-win"},russianPhonetic:{mac_keyCode:"m-ru-ph"}},L_windowsList=["albanian","arabic101","armenianPhonetic","assameseInscript","azerbaijaniCyrillic","azerbaijaniLatin","banglaIndia","bashkir","belarusian","belgianPeriod","belgianFrench","bosnianCyrillic","bulgarian","canadianEnglish","canadianFrench","cherokeeNation","chineseSimplified","chineseSimplifiedSingapore","chineseTraditional","chineseTraditionalHongKongSAR","chineseTraditionalMacaoSAR","croatian","czech","danish","divehiPhonetic","dutch","dzongkha","englishIndia","englishUK","welsh","englishUS","estonian","faeroese","finnish","french","georgianQWERTY","german","greek","greenlandic","guarani","gujarati","hausa","hebrew","hindiTraditional","hungarian","icelandic","igbo","inuktitutLatin","inuktitutNaqittaut","irish","italian","japanese106","japanese102","kannada","kazakh","khmer","korean","kyrgyzCyrillic","lao","latvianStandard","lithuanian","luxembourgish","macedonianStandard","malayalam","maltese","maori","marathi","mongolianCyrillic","mongolianMongolianScriptStandard","nepali","norwegian","norwegianSami","odia","pashtoAfghanistan","persian","polish","portuguese","portugueseBrazilianABNT","punjabiGurumukhi","romanianStandard","russian","sakha","serbianCyrillic","serbianLatin","sesothoSaLeboa","setswana","sinhala","slovak","slovenian","sorbianStandard","spanish","spanishLatinAmerican","swedish","swedishSami","swissFrench","swissGerman","syriac","tajik","tamazightCentral","tamil","tatar","telugu","thaiKedmanee","tibetanPRCStandard","turkishQ","turkmen","ukrainianPC","urdu","uyghur","uzbekCyrillic","vietnamese","wolof","yoruba"],L_macList=["arabic","australian","austrian","belgian","brazilian","bulgarian","belarusian","canadian","canadianCSA","chineseSimplified","chineseTraditional","croatian","croatianPC","czech","danish","dutch","dvorak","englishABC","frenchABCAZERTY","englishUK","englishUS","englishUSInternationalPC","estonian","faroese","finnish","french","frenchNumerical","frenchPC","georgianQWERTY","german","greek","hawaiian","hebrew","hungarian","icelandic","irish","italian","italianPro","korean","latvian","lithuanian","macedonianStandard","maltese","maori","norwegian","polish","polishPro","portuguese","romanian","romanianStandard","russian","russianPC","russianPhonetic","serbian","serbianLatin","slovak","slovenian","spanish","spanishISO","swedish","swedishPro","swissFrench","swissGerman","turkishQWERTY","ukrainian","ukrainianPC","vietnamese","welsh","japanese106","japanese102","englishIndia","abcExtended"],L_browserWindowsList=["englishUS","spanishLatinAmerican","turkishQ","spanish","portugueseBrazilianABNT","french","englishUK","polish","german","hungarian","italian","romanianStandard","portuguese","czech","canadianEnglish","swedish","englishIndia","bulgarian","hebrew","croatian","dutch","slovak","serbianLatin","russian","chineseSimplified","japanese106","korean","chineseTraditional","japanese102"],L_browserMacList=["englishUS","englishABC","englishUK","spanishISO","canadian","german","french","italianPro","polishPro","frenchNumerical","englishUSInternationalPC","dutch","swedishPro","chineseSimplified","danish","hungarian","canadianCSA","finnish","russian","japanese106","korean","chineseTraditional"],L_browserXboxList=["englishUS","spanishLatinAmerican","turkishQ","russian","spanish","portugueseBrazilianABNT","french","englishUK","polish","german","hungarian","italian","romanianStandard","portuguese","czech","canadianEnglish","swedish","englishIndia","serbianLatin","hebrew","dutch"],L_androidList=["englishUS","spanishLatinAmerican","turkishQ","spanish","portugueseBrazilianABNT","french","englishUK","polish","german","hungarian","italian","romanianStandard","portuguese","czech","canadianEnglish","swedish","englishIndia","bulgarian","hebrew","croatian","dutch","slovak","serbianLatin","russian","chineseSimplified","japanese106","korean","chineseTraditional","japanese102"],E_browserWindowsList=["ru-RU"],E_browserMacList=["m-ru"];var g=function(Et){return Et.Functional="functional",Et.Technical="technical",Et.Behavioral="behavioral",Et}(g||{});class R{constructor($e){this.parameters=$e,this.ts=(new Date).toISOString()}}const B={OverrideKeyboardLayout:{name:"OverrideKeyboardLayout",gdprLevel:g.Functional}};class X extends R{constructor($e){super($e),this.name=B.OverrideKeyboardLayout.name,this.gdprLevel=B.OverrideKeyboardLayout.gdprLevel}}var H=s(58527),J=s(89284),re=s(72945),ie=s(96542),ve=s(78812),ue=P.Or.Share.Shareserver.HotkeyEnum;const se="keyboardLayout";let Se=(()=>{class Et{constructor(Ze,Qe,Ve,nt,Ot,at,It,We,xe,lt,ft){this.idmService=Ze,this.loggingService=Qe,this.systemInfoService=Ve,this.bridgeService=nt,this.sharedStorage=Ot,this.translateService=at,this.localeService=It,this.experienceControl=We,this.telemetryService=xe,this.hotKeyHelper=lt,this.config=ft,this.defaultKbLayout$=new n.m(1),this.isPlatformBrowserLike=i.zk.isBrowserLikePlatform(),this.isPlatformBrowser=i.zk.isBrowserPlatform(),this.isPlatformAndroid=i.zk.isAndroidPlatform(),this.keyboardLayoutChange=new n.m(1),this.placeholder=new n.m(1),this.logger=Qe.getLogger("KeyboardLayoutService"),this.logger.info("Initializing KeyboardLayoutService"),this.showOtherKeyboardLayout=!!this.config.featureEnablement?.showOtherKeyboardLayout,this.registerKBLayoutChange(),this.getKeyboardLayoutsList().subscribe(ht=>{this.isPlatformBrowserLike?this.setDefaultLayoutAndPlaceholder():this.sendKeyboardLayoutTelemetry()},ht=>{this.logger.info("Error getting the list of keyboard layouts : ",ht)}),this.readCachedKeyboardLayout()}sendKeyboardLayoutTelemetry(){this.readCachedKeyboardLayout().pipe((0,v.s)(1),(0,S.ZZ)(Ze=>{const Qe=new X({previousKeyboardLayout:"",overrideKeyboardLayout:Ze?.code??"",defaultKeyboardLayout:""});return this.isPlatformBrowserLike?(Qe.parameters.defaultKeyboardLayout=this.getDefaultKBLayoutCode(),(0,l.of)(Qe)):this.detectKeyboardLayout().pipe((0,v.s)(1),(0,S.ZZ)(Ve=>(Qe.parameters.defaultKeyboardLayout=Ve,(0,l.of)(Qe))))})).subscribe(Ze=>{this.logger.info("Sending defaultKeyboardLayout telemetry through OverrideKeyboardLayout event",Ze),this.telemetryService.push(Ze)})}setDefaultLayoutAndPlaceholder(){this.idmService.accountStatusChanged.pipe((0,y.n)(Ze=>Ze.isAuthenticated?this.queryGxTargetForDefaultKBLayout():(0,l.of)(!1))).subscribe(Ze=>{this.handleDefaultKeyboardLayout(Ze),this.sendKeyboardLayoutTelemetry(),this.placeholder.next(this.getBrowserPlaceholder())})}get onKBLayoutChange$(){return this.keyboardLayoutChange.asObservable()}kbLayoutChanged(Ze){this.keyboardLayoutChange.next(Ze)}queryGxTargetForDefaultKBLayout(){return this.experienceControl.getCloudVariable("defaultKeyboardLayout",{userDefaultUILanguage:this.localeService.getShortLocale()},{useCache:!1},_.Ky.GxTargetGetCloudVariable,_.Id.GxTargetGetKBLayoutsConfig).pipe((0,f.T)(Ze=>Ze.value),(0,O.W)(Ze=>(this.logger.error("Failed to resolve gx-target cloud variable:",Ze),(0,l.of)(!1))))}get fetchClientIMEHotkeys(){return this.bridgeService.executeCommand(P.Ts.Share.Shareserver.GetHotkeyShortcut,{hotkey:ue.NativeKeyboardInputDialog}).pipe((0,f.T)(Ze=>Ze.keys),(0,f.T)(Ze=>this.hotKeyHelper.shortcutToString(Ze)))}get isOtherDefaultLayout(){return this._isOtherDefaultLayout}initializeKeyboardLayoutsListFromJson(Ze,Qe){const Ve=[];for(const nt of Ze){const Ot=N[nt];Ve.push({name:this.translateService.instant("common.keyboardLayout.layouts."+nt),code:Ot[`${Qe}_keyCode`]||Ot[`${I.Default}_keyCode`]})}return Ve.sort((nt,Ot)=>this.localeService.collator.compare(nt.name,Ot.name)),this.showOtherKeyboardLayout&&Ve.unshift({name:this.translateService.instant("settings.keyboardLayout.other"),code:this.getDefaultKBLayoutCodeForOther(),params:{isOtherLayout:!0,showOnTop:!0}}),Ve}getKeyboardLayoutsList(){if(this.keyboardLayoutsList$)return this.keyboardLayoutsList$.asObservable();const Ze=new n.m(1);return this.logger.info("Fetching the list of Keyboard Layouts to be displayed"),this.keyboardLayoutsList$=Ze,(0,d.zV)([this.systemInfoService.getSystemInfo([i.Lu.OSName,i.Lu.OSVersion,i.Lu.Platform]),this.localeService.localeChanged]).pipe((0,v.s)(1)).subscribe(([Qe,Ve])=>{this.logger.info("Getting the OS info using System info Service :",Qe);let Ot,nt=[];this.platform=Qe.Platform;const at=this.platform?.toUpperCase();this.isPlatformBrowser?at===D.WindowsOS.toUpperCase()||at===D.BrowserChromeOS.toUpperCase()?(nt=L_browserWindowsList,Ot=U.BrowserChromeOS):at===D.BrowserMacOS.toUpperCase()?(nt=L_browserMacList,Ot=U.BrowserMacOS):at===D.XboxOS.toUpperCase()&&(nt=L_browserXboxList,Ot=U.XboxOS):this.isPlatformAndroid?(nt=L_androidList,Ot=U.AndroidOS):at===D.WindowsOS.toUpperCase()?(nt=L_windowsList,Ot=U.WindowsOS):at===D.NativeMacOS.toUpperCase()&&(nt=L_macList,Ot=U.NativeMacOS),nt.length>0?(this.defaultKBLayoutCodeForOther=V[this.getPlatformOS()],this.translatedKBLayoutList=this.initializeKeyboardLayoutsListFromJson(nt,Ot),Ze.next(this.translatedKBLayoutList),Ze.complete()):(this.logger.info(`Keyboard Layout feature is not supported on ${at}, disabling it`),Ze.complete(),this.keyboardLayoutsList$=null)},Qe=>{Ze.error(Qe),this.keyboardLayoutsList$=null}),Ze.asObservable()}getPlatformOS(){let Ze=r;return this.isPlatformAndroid?Ze=c:this.isPlatformBrowser&&(Ze=a),`${Ze}${this.platform}`}handleDefaultKeyboardLayout(Ze){const Qe=this.getPlatformOS(),Ve=Ze||V;this.logger.info("Default keyboard layout for the user :",Ve);const nt=Ve[Qe];nt&&nt!==M?this.defaultKBLayoutCode=nt:(this._isOtherDefaultLayout=nt===M,this.defaultKBLayoutCode=this.defaultKBLayoutCodeForOther),this.setDefaultKBLayout(this.translatedKBLayoutList,this.defaultKBLayoutCodeForOther)}detectKeyboardLayout(){return this.bridgeService.executeCommand(P.Ts.Gfn.Streaming.GetKeyboardLayout)}onKBLayoutChange(){return this.bridgeService.executeCommand(P.Ts.Gfn.Streaming.OnKBLayoutChange)}isNonEnglishKeyboardLayout(Ze,Qe){let Ve=[];return!(!this.isPlatformBrowserLike||!Ze)&&(Qe===i.t_.Windows||Qe===i.t_.ChromeOS||Qe===i.t_.XBox?Ve=E_browserWindowsList:Qe===i.t_.MacOS&&(Ve=E_browserMacList),-1!==Ve.indexOf(Ze))}saveKeyboardLayoutToSharedStorage(Ze){return this.cachedKeyboardLayout$.next(Ze),this.sharedStorage.writeBlock(se,Ze)}saveKeyboardLayoutCodeToSharedStorage(Ze){const Qe=this.translatedKBLayoutList.find(Ve=>Ve.code===Ze);return this.saveKeyboardLayoutToSharedStorage(Qe)}readCachedKeyboardLayout(){if(this.cachedKeyboardLayout$)return this.cachedKeyboardLayout$.asObservable();const Ze=new n.m(1);return this.logger.info("Fetching the cache value of Keyboard Layout"),this.cachedKeyboardLayout$=Ze,this.sharedStorage.readBlock(se).subscribe(Qe=>(this.logger.info("Keyboard Layout cache read reponse",Qe),Ze.next(Qe),(0,l.of)(Qe)),Qe=>{Ze.error(Qe),this.cachedKeyboardLayout$=null}),Ze}removeCachedKeyboardLayout(){return this.cachedKeyboardLayout$.next({}),this.sharedStorage.removeBlock(se)}getKeyboardLayoutEnabled(Ze){return this.config.featureEnablement?.showPhysicalKeyboardLayoutSetting&&T.filter(Qe=>Qe.toUpperCase()===Ze?.toUpperCase()).length>0}getDefaultKBLayoutCodeForOther(){return this.defaultKBLayoutCodeForOther}getTranslatedValueForCurrentKBLayout(Ze){return this.translatedKBLayoutList.find(Qe=>Qe.code===Ze.code&&Qe.params?.isOtherLayout==Ze.params?.isOtherLayout)}getDefaultKBLayoutCode(){return this.defaultKBLayoutCode}getDefaultKBLayout(){return this.defaultKbLayout}getDefaultKBLayoutObservable(){return this.defaultKbLayout$.asObservable()}setDefaultKBLayout(Ze,Qe){let Ve;Ve=Ze.filter(nt=>this.isOtherDefaultLayout?nt.params?.isOtherLayout:nt.code===this.getDefaultKBLayoutCode()&&!nt.params?.isOtherLayout)[0],Ve||(Ve=Ze.filter(nt=>nt.code===Qe&&!nt.params?.isOtherLayout)[0]),this.defaultKbLayout=Ve,this.logger.info("Set default kb layout",this.defaultKbLayout),this.defaultKbLayout$.next(this.defaultKbLayout)}selectKeyboardLayout(Ze,Qe,Ve){this.logger.info("Keyboard layout override event triggered");const nt=new X({previousKeyboardLayout:"",overrideKeyboardLayout:"",defaultKeyboardLayout:""});let Ot,at,It;const We=this.getDefaultKBLayout();Ze?(at=Ze.code,It=this.isPlatformBrowserLike?We?.code:Ve?.code,Ot=Qe?.code||It,this.logger.info("Keyboard Layout Override event. Saving to cache. Override Keyboard Layout: ",Ze),this.saveKeyboardLayoutToSharedStorage(Ze).subscribe(xe=>{this.logger.info("Keyboard layout cache saved successfully : ",xe)},xe=>this.logger.info("Keyboard layout cache save failed : ",xe))):(this.isPlatformBrowserLike?(at=We?.code,It=We?.code,this.logger.info(`Default (${We?.name}) ${We?.code} keyboard layout selected. Clearing the cache.`)):(at=Ve?.code,It=Ve?.code,this.logger.info("Auto keyboard layout selected. Clearing the cache.")),Ot=Qe?.code||It,this.removeCachedKeyboardLayout().subscribe(xe=>this.logger.info("Keyboard layout cache cleared : ",xe),xe=>this.logger.info("Keyboard layout cache clear failed : ",xe))),nt.parameters.previousKeyboardLayout=Ot,nt.parameters.overrideKeyboardLayout=at,nt.parameters.defaultKeyboardLayout=It,this.logger.info("Sending override keyboard layout event telemetry",nt),this.telemetryService.push(nt)}isAutoOtherKBLayout(Ze){return this.detectKeyboardLayout().pipe((0,v.s)(1),(0,y.n)(Qe=>{const Ve=Ze.find(nt=>nt.code===Qe&&!nt.params?.isOtherLayout);return(0,l.of)(!Ve&&this.showOtherKeyboardLayout)}))}getNativePlaceholder(Ze){if(this.logger.info("detectedKeyboardLayout : ",Ze),this.logger.info("isOtherKeyboardLayoutEnabled : ",this.showOtherKeyboardLayout),Ze||this.showOtherKeyboardLayout){const Qe=this.translateService.instant("common.other");return this.translateService.instant("common.autoTemplate",{dataString:Ze?.name??Qe})}return this.translateService.instant("common.auto")}get onPlaceholderChange(){return this.placeholder.asObservable()}getBrowserPlaceholder(){return this.translateService.instant("common.defaultTemplate",{dataString:this.getDefaultKBLayout()?.name})}registerKBLayoutChange(){this.onKBLayoutChange().subscribe(Ze=>{this.logger.info("System keyboard layout changed to: "+Ze),this.kbLayoutChanged(Ze)})}static{this.\u0275fac=function(Qe){return new(Qe||Et)(H.KVO(J.k_2),H.KVO(i.J6),H.KVO(i.zW),H.KVO(i.NZ),H.KVO(re.yQ),H.KVO(ie.c$),H.KVO(i.iH),H.KVO(_.BW),H.KVO(ve.H0),H.KVO(i.Ho),H.KVO(J.Vk6))}}static{this.\u0275prov=H.jDH({token:Et,factory:Et.\u0275fac,providedIn:"root"})}}return Et})();s(56785),s(81834)},40996:(Bt,z,s)=>{"use strict";s.d(z,{hT:()=>a,DL:()=>m});var n=s(85735),l=s(43848),d=s(43153),v=s(55833),S=s(83915),y=s(14714),f=s(43615),O=s(65706),P=s(26875),_=s(58527),i=s(99469),r=s(72945),a=function(D){return D.JWT="JWT",D.IDM="IDM",D.INVALID="Invalid",D.UNKNOWN="Unknown",D.IDM_FALLBACK="IDM_FALLBACK",D}(a||{});let m=(()=>{class D{constructor(U,V){this.sharedStorage=V,this.telemetryStream=new n.m,this.startupComplete$=new n.m(1),this.logger=U.getLogger("streamer/gfnsdkService"),this.resetAuthConfig()}setSdkClient(U,V){U!==this.sdkClient&&(this.logger.info("SdkClient set to "+U),this.sdkClient=U,this.resetAuthConfig(V),this.getTelemetryData())}getTelemetryData(){return this.sdkClient&&(this.logger.info("Fetching sdk telemetry from shared storage."),this.sharedStorage.readBlock("sdk").subscribe(V=>{if(V)for(const T in V)if(V[T].telemetry&&Array.isArray(V[T].telemetry)&&V[T].telemetry.length>0){const N={platformName:T,checkGFNItems:[],streamNowButtonClickItems:[]};V[T].telemetry.forEach(L=>{switch(L.eventName){case"CheckGFN":{const E={status:L.status||"",timeTaken:L.timeTaken||0,version:L.version||"",dllVersion:L.dllVersion||"",originalTimestamp:L.originalTimestamp||0,originalCmsId:(L.originalCmsId||"").toString(),originalShortname:L.originalShortname||"",originalAuthMethod:L.originalAuthMethod||"Other"};N.checkGFNItems.push(E);break}case"StreamNowButtonClick":{const E={status:L.status||"",timeTaken:L.timeTaken||0,version:L.version||"",dllVersion:L.dllVersion||"",originalTimestamp:L.originalTimestamp||0,originalCmsId:(L.originalCmsId||"").toString(),originalShortname:L.originalShortname||"",originalAuthMethod:L.originalAuthMethod||"Other",timeRemaining:null==L.timeRemaining?-1:L.timeRemaining,hasPartnerData:null==L.hasPartnerData?V[T]?.partnerData?.length>0:L.hasPartnerData,hasPartnerSecureData:null==L.hasPartnerSecureData?V[T]?.partnerSecureData?.length>0:L.hasPartnerSecureData};N.streamNowButtonClickItems.push(E);break}default:this.logger.info(`Invalid telemetry event ${L?.eventName} found in shared storage`)}}),N.checkGFNItems.length+N.streamNowButtonClickItems.length>0?this.telemetryStream.next(N):this.logger.info("Platform "+T+" has no telemetry data to send")}})),this.telemetryStream.pipe((0,d.d)(U=>U.platformName))}clearTelemetryData(U){this.sharedStorage.removeBlock("sdk/"+U.platformName+"/telemetry").subscribe(T=>{this.logger.info(`Cached telemetry for SDK client ${this.sdkClient} was removed from storage ${T?"":"un"}successfully.`)})}parseAuthType(U){if(!U.authType)return a.INVALID;switch(U.authType.toLowerCase()){case"jarvis":case"jwt_gfn":return a.IDM;case"jwt":return!U.token||0===U.token.length||!(0,P.isNil)(U.timeRemaining)&&(U.timeRemaining<=0||U.timeRemaining>3600)?a.IDM_FALLBACK:a.JWT;default:return a.INVALID}}resetAuthConfig(U){this.authConfig$=U?(0,l.of)(U):this.getAuthConfigFromStorage().pipe((0,v.t)(1))}getAuthConfigFromStorage(){if(this.sdkClient){this.logger.info("Fetching auth type from shared storage.");const U="sdk/"+this.sdkClient;return this.sharedStorage.readBlock(U).pipe((0,S.T)(V=>(this.logger.info(`Running in GFN SDK mode for SDK client ${this.sdkClient}, auth type is ${this.parseAuthType(V)}.`),V)),(0,y.W)(()=>(this.logger.error(`Unable to read stored settings for SDK client ${this.sdkClient}`),(0,l.of)({token:void 0}))),(0,f.j)(()=>{this.startupComplete$.asObservable().subscribe(()=>{["token","partnerSecureData","partnerData"].forEach(T=>{this.sharedStorage.removeBlock(`${U}/${T}`).pipe((0,O.s)(1)).subscribe(N=>{this.logger.info(`${T} for SDK client ${this.sdkClient} was removed from storage ${N?"":"un"}successfully.`)})})})}))}return this.logger.info("Running in regular GFN client mode, auth type is IDM."),(0,l.of)({authType:a.IDM,token:void 0})}getAuthType(){return this.authConfig$.pipe((0,S.T)(U=>{const V=this.parseAuthType(U);return this.logger.info(V!==a.INVALID?`Returning cached auth type: ${V}`:"Current auth type is invalid and cannot be used for authentication purposes"),V}))}continueStartup(){this.startupComplete$.next(!0)}getIsAnonymousUser(){return this.getAuthType().pipe((0,S.T)(U=>U===a.JWT))}forceIDMAuthType(){this.originalAuthConfig$=this.authConfig$,this.authConfig$=this.originalAuthConfig$.pipe((0,S.T)(U=>{const V=Object.assign({},U);return V.authType=a.IDM,V.token=void 0,V.delegateToken=void 0,V}))}getAuthToken(){return this.authConfig$.pipe((0,S.T)(U=>{const V=U.token;return this.logger.info(V?"Returning cached auth token":"Current auth token is empty and likely not useful for authentication purposes"),V}))}getAuthInfo(){return this.authConfig$.pipe((0,S.T)(U=>{const V=this.parseAuthType(U);this.logger.info(V!==a.INVALID?`Returning cached auth type: ${V}`:"Current auth type is invalid and cannot be used for authentication purposes for gfn sdk");const T=U.token;this.logger.info(T?"Returning cached auth token.":"Current auth token is empty and likely not useful for authentication purposes for gfn sdk");let N=null,L=null,E=null,g=null;if(T){try{const R=atob(T.split(".")[1]),B=JSON.parse(R);if(Array.isArray(B.options))B.options.forEach(function(X){"uid"===X?.key?N=X?.value:"external_id"===X?.key?L=X?.value:"idp_id"===X?.key&&(E=X?.value)});else{const X=JSON.parse(atob(B.options));N=X.userId,L=X.externalId,E=X.partnerId,g=X.authorizationId}}catch(R){this.logger.error("Got an exception while parsing JWT for user info: ",R)}N?this.logger.info(`Returning userId from JWT ${N}`):this.logger.warn("Current userId is empty and likely not useful for authentication purposes!"),L?this.logger.info(`Returning externalUserId from JWT ${L}.`):this.logger.warn("Current externalUserId is empty and likely not useful for authentication purposes!"),E?this.logger.info(`Returning idpId from JWT ${E}.`):this.logger.warn("Current ipdId is empty and likely not useful for authentication purposes!"),g?this.logger.info("Returning authorizationId from JWT."):this.logger.warn("No authorizationId")}return{authType:V,authToken:T,userId:N,externalUserId:L,idpId:E,timeRemaining:U.timeRemaining,authorizationId:g}}))}getPartnerData(){return this.authConfig$.pipe((0,S.T)(U=>U?.partnerData||""))}getPartnerSecureData(){return this.authConfig$.pipe((0,S.T)(U=>U?.partnerSecureData||""))}isThisAGFNSDKSession(){return this.sdkClient&&this.sdkClient.length>0}isAuthInfoValid(U){return U.authToken?.length>0&&(null==U.timeRemaining||U.timeRemaining>0&&U.timeRemaining<=3600)}static{this.\u0275fac=function(V){return new(V||D)(_.KVO(i.J6),_.KVO(r.yQ))}}static{this.\u0275prov=_.jDH({token:D,factory:D.\u0275fac,providedIn:"root"})}}return D})()},72818:(Bt,z,s)=>{"use strict";s.d(z,{QO:()=>d,SN:()=>f});var d=function(O){return O.ThreeQuarterSheet="ThreeQuarterSheet",O.BottomSheet="BottomSheet",O}(d||{});function f(O,P){const _=[];if(P.addOverlayPanelCls&&_.push("nv-overlay-panel"),(P.bottomSheet||P.threeQuarterSheet)&&_.push("nv-hig"),P.threeQuarterSheet&&_.push("nv-three-quarter-sheet"),P.tvMode&&_.push("is-tv"),_.length>0){const i=O.panelClass?O.panelClass instanceof Array?O.panelClass:new Array(O.panelClass):[];_.forEach(r=>{i.includes(r)||i.push(r)}),O.panelClass=i}}},99564:(Bt,z,s)=>{"use strict";s.d(z,{G:()=>Xe});var n=s(58527),l=s(16490),d=s(96542),v=s(47973),S=s(99204),y=s(28139),f=s(36243),O=s(61142),P=s(3457),_=s(72818),i=s(11013),r=s(25369),a=s(22355),c=s(97888),m=s(40514),M=s(60990),D=s(81247),I=s(2218),U=s(26537);const V=(He,Me)=>({"has-image":He,"only-body":Me}),T=He=>({"overflow-wrap-anywhere":He}),N=He=>({"font-tv-error-text":He}),L=He=>({visible:He});function E(He,Me){if(1&He&&(n.j41(0,"i",20),n.EFF(1),n.k0s()),2&He){const Q=n.XpG(2);n.R7$(),n.JRh(Q.data.icon)}}function g(He,Me){if(1&He&&n.nrm(0,"img",21),2&He){const Q=n.XpG(2);n.Y8G("src",Q.data.image.url,n.B4B)}}function R(He,Me){if(1&He&&n.nrm(0,"qrcode",22),2&He){const Q=n.XpG(2);n.Y8G("qrdata",Q.data.link.url)("width",Q.tvMode?184:140)("errorCorrectionLevel","M")}}function B(He,Me){if(1&He&&(n.j41(0,"div",16),n.DNE(1,E,2,1,"i",17)(2,g,1,1,"img",18)(3,R,1,3,"qrcode",19),n.k0s()),2&He){const Q=n.XpG();n.R7$(),n.Y8G("ngIf",Q.data.icon),n.R7$(),n.Y8G("ngIf",Q.data.image),n.R7$(),n.Y8G("ngIf",Q.showQRCode)}}function X(He,Me){if(1&He&&(n.j41(0,"div",23),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&He){const Q=n.XpG();n.Y8G("ngClass",Q.tvMode?"font-header5":"font-header6"),n.R7$(),n.SpI(" ",n.i5U(2,2,Q.data.headerText.text,Q.data.headerText.placeholders)," ")}}function H(He,Me){1&He&&n.nrm(0,"mat-progress-spinner",24)}function J(He,Me){if(1&He&&(n.nrm(0,"div",25),n.nI1(1,"translate")),2&He){const Q=n.XpG();n.Y8G("ngClass",n.eq3(5,T,Q.showQRCode))("innerHTML",Q.data.bodyText.translated?Q.data.bodyText.text:n.i5U(1,2,Q.data.bodyText.text,Q.data.bodyText.placeholders),n.npT)}}function re(He,Me){if(1&He&&(n.j41(0,"div",26),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&He){const Q=n.XpG();n.Y8G("ngClass",n.eq3(5,N,Q.tvMode)),n.R7$(),n.SpI(" ",n.i5U(2,2,Q.data.errorCodeText.text,Q.data.errorCodeText.placeholders)," ")}}function ie(He,Me){if(1&He&&(n.qex(0),n.eu8(1,27)(2,27),n.bVm()),2&He){n.XpG();const Q=n.sdS(15),A=n.sdS(17);n.R7$(),n.Y8G("ngTemplateOutlet",Q),n.R7$(),n.Y8G("ngTemplateOutlet",A)}}function ve(He,Me){if(1&He&&n.eu8(0,27)(1,27),2&He){n.XpG();const Q=n.sdS(15),A=n.sdS(17);n.Y8G("ngTemplateOutlet",A),n.R7$(),n.Y8G("ngTemplateOutlet",Q)}}function ue(He,Me){if(1&He){const Q=n.RV6();n.j41(0,"button",29),n.bIt("click",function(me){n.eBV(Q);const ne=n.XpG(2);return n.Njj(ne.onPrimaryButtonClick(me))}),n.EFF(1),n.nI1(2,"translate"),n.eu8(3,30),n.k0s()}if(2&He){const Q=n.XpG(2),A=n.sdS(19);n.Y8G("ngClass",Q.showAccentBtn?"font-button2 mat-flat-button mat-accent":"font-button2")("nvFocusRipple",Q.showAccentBtn)("disabled",Q.data.primaryButton.isDisabled)("nvAutoFocus",Q.autoFocusOnPrimaryButton),n.R7$(),n.SpI(" ",n.bMT(2,7,Q.data.primaryButton.text)," "),n.R7$(2),n.Y8G("ngTemplateOutlet",A)("ngTemplateOutletContext",n.eq3(9,L,Q.data.primaryButton.spinnerOverlay))}}function se(He,Me){if(1&He&&n.DNE(0,ue,4,11,"button",28),2&He){const Q=n.XpG();n.Y8G("ngIf",Q.data.primaryButton)}}function Z(He,Me){if(1&He){const Q=n.RV6();n.j41(0,"button",32),n.bIt("click",function(me){n.eBV(Q);const ne=n.XpG(2);return n.Njj(ne.onSecondaryButtonClick(me))}),n.EFF(1),n.nI1(2,"translate"),n.eu8(3,30),n.k0s()}if(2&He){const Q=n.XpG(2),A=n.sdS(19);n.Y8G("disabled",Q.data.secondaryButton.isDisabled),n.R7$(),n.SpI(" ",n.bMT(2,4,Q.data.secondaryButton.text)," "),n.R7$(2),n.Y8G("ngTemplateOutlet",A)("ngTemplateOutletContext",n.eq3(6,L,Q.data.secondaryButton.spinnerOverlay))}}function Se(He,Me){if(1&He&&n.DNE(0,Z,4,8,"button",31),2&He){const Q=n.XpG();n.Y8G("ngIf",Q.data.secondaryButton)}}function Ce(He,Me){1&He&&(n.j41(0,"div",34),n.nrm(1,"mat-progress-spinner",35),n.k0s()),2&He&&(n.R7$(),n.Y8G("diameter",48))}function Be(He,Me){1&He&&n.DNE(0,Ce,2,1,"div",33),2&He&&n.Y8G("ngIf",Me.visible)}let Xe=(()=>{class He extends r.D{get hasImage(){return!!this.data.icon||!!this.data.image||this.showQRCode}get showQRCode(){return this.showQRCodeForLinks&&!!this.data.link?.url}get autoFocusOnPrimaryButton(){return this.data.autoFocusOnPrimaryButton??!0}get showAccentBtn(){return this.data.primaryButton.accentColor&&!this.tvMode}static open(Q,A,me){return(0,_.SN)(A,{bottomSheet:!0,tvMode:me}),Q.open(He,A)}constructor(Q,A,me,ne,G){super(me,ne,Q,G),this.primaryButtonClick=new n.bkB,this.secondaryButtonClick=new n.bkB,this.linkClick=new n.bkB,this.data={},this.data=Q.get(l.yj,null),this.tvMode=!!A.tvMode,this.showQRCodeForLinks=!!A.showQRCodeForLinks}ngOnInit(){this.layoutType=this.hasImage||this.tvMode?"row":"column"}onPrimaryButtonClick(Q){this.primaryButtonClick.emit(Q)}onSecondaryButtonClick(Q){this.secondaryButtonClick.emit(Q)}onLinkClick(){this.linkClick.emit()}static{this.\u0275fac=function(A){return new(A||He)(n.rXU(n.zZn),n.rXU(i.X,8),n.rXU(U.CP,8),n.rXU(l.eN,8),n.rXU(n.SKi))}}static{this.\u0275cmp=n.VBU({type:He,selectors:[["nv-hig-bottom-sheet"]],inputs:{data:"data"},outputs:{primaryButtonClick:"primaryButtonClick",secondaryButtonClick:"secondaryButtonClick",linkClick:"linkClick"},standalone:!0,features:[n.Vt3,n.aNF],decls:20,vars:22,consts:[["nonTvMode",""],["primaryButton",""],["secondaryButton",""],["buttonSpinner",""],["fxLayoutAlign","space-between stretch","nvSpatialNavigationContainer","","nvTrapFocus","",1,"hig-bottom-sheet",3,"fxLayout"],["class","image-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start start",1,"content",3,"fxFlex","ngClass","fxLayoutGap"],["fxFlex","nogrow","class","header-text",3,"ngClass",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutGap","24px",3,"fxLayoutAlign"],["fxFlex","none","mode","indeterminate","color","accent","diameter","64",4,"ngIf"],["fxFlex","","fxLayout","column",1,"font-body2"],["fxFlex","auto","class","body-text",3,"ngClass","innerHTML",4,"ngIf"],["fxFlex","auto","class","body-text",3,"ngClass",4,"ngIf"],["fxLayout","column",1,"actions-container",3,"fxFlex","fxFlexAlign"],[1,"buttons-container",3,"fxLayout","fxLayoutAlign","fxLayoutGap"],[4,"ngIf","ngIfElse"],[1,"image-container"],["class","material-icons",4,"ngIf"],[3,"src",4,"ngIf"],[3,"qrdata","width","errorCorrectionLevel",4,"ngIf"],[1,"material-icons"],[3,"src"],[3,"qrdata","width","errorCorrectionLevel"],["fxFlex","nogrow",1,"header-text",3,"ngClass"],["fxFlex","none","mode","indeterminate","color","accent","diameter","64"],["fxFlex","auto",1,"body-text",3,"ngClass","innerHTML"],["fxFlex","auto",1,"body-text",3,"ngClass"],[3,"ngTemplateOutlet"],["mat-button","",3,"ngClass","nvFocusRipple","disabled","nvAutoFocus","click",4,"ngIf"],["mat-button","",3,"click","ngClass","nvFocusRipple","disabled","nvAutoFocus"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["mat-button","","class","font-button2",3,"disabled","click",4,"ngIf"],["mat-button","",1,"font-button2",3,"click","disabled"],["fxLayout","column","fxLayoutAlign","center end","class","spinner-overlay",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center end",1,"spinner-overlay"],["mode","indeterminate",1,"mat-accent",3,"diameter"]],template:function(A,me){if(1&A&&(n.j41(0,"div",4),n.DNE(1,B,4,3,"div",5),n.j41(2,"div",6),n.DNE(3,X,3,5,"div",7),n.j41(4,"div",8),n.DNE(5,H,1,0,"mat-progress-spinner",9),n.j41(6,"div",10),n.DNE(7,J,2,7,"div",11)(8,re,3,7,"div",12),n.k0s()()(),n.j41(9,"div",13)(10,"div",14),n.DNE(11,ie,3,2,"ng-container",15)(12,ve,2,2,"ng-template",null,0,n.C5r),n.k0s(),n.DNE(14,se,1,1,"ng-template",null,1,n.C5r)(16,Se,1,1,"ng-template",null,2,n.C5r)(18,Be,1,1,"ng-template",null,3,n.C5r),n.k0s()()),2&A){const ne=n.sdS(13);n.AVh("is-tv",me.tvMode),n.Y8G("fxLayout",me.layoutType),n.R7$(),n.Y8G("ngIf",me.hasImage),n.R7$(),n.Y8G("fxFlex",me.tvMode?"":"grow")("ngClass",n.l_i(19,V,me.hasImage,!me.data.headerText))("fxLayoutGap",me.tvMode?"30px":"16px"),n.R7$(),n.Y8G("ngIf",me.data.headerText),n.R7$(),n.Y8G("fxLayoutAlign",me.data.headerText?"start start":"start center"),n.R7$(),n.Y8G("ngIf",me.data.showSpinner),n.R7$(2),n.Y8G("ngIf",me.data.bodyText),n.R7$(),n.Y8G("ngIf",me.data.errorCodeText),n.R7$(),n.Y8G("fxFlex",me.tvMode?"":"initial")("fxFlexAlign",me.tvMode?"start":"end"),n.R7$(),n.Y8G("fxLayout",me.tvMode?"column":"row")("fxLayoutAlign",me.tvMode?"":"end center")("fxLayoutGap",me.tvMode?"16px":"8px"),n.R7$(),n.Y8G("ngIf",me.tvMode)("ngIfElse",ne)}},dependencies:[P.w2,P.DJ,P.BO,P.sA,P.R$,P.UI,I.R,D.D,O.bT,f.f,f.c,O.YU,y.Cc,y.PW,S.D6,S.LG,M.r,m.e,O.T3,v.wG,v.iV,c.Aq,a.N,d.h,d.D9],styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}.hig-bottom-sheet[_ngcontent-%COMP%]{background-color:#393939;padding:0;width:100vw;min-height:132px;max-height:80vh}@media (orientation: portrait){.hig-bottom-sheet[_ngcontent-%COMP%]{min-height:180px;height:180px}}.isLtr[_nghost-%COMP%] .content[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .content[_ngcontent-%COMP%]{margin:16px max(env(safe-area-inset-right),16px) 0 max(env(safe-area-inset-left),16px)}html[dir=ltr][_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{--dummy: 0;margin:16px max(env(safe-area-inset-right),16px) 0 max(env(safe-area-inset-left),16px)}.isRtl[_nghost-%COMP%] .content[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .content[_ngcontent-%COMP%]{margin:16px max(env(safe-area-inset-left),16px) 0 max(env(safe-area-inset-right),16px)}html[dir=rtl][_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{--dummy: 0;margin:16px max(env(safe-area-inset-left),16px) 0 max(env(safe-area-inset-right),16px)}.actions-container[_ngcontent-%COMP%]{padding:8px max(env(safe-area-inset-right),8px) max(env(safe-area-inset-bottom),8px) max(env(safe-area-inset-left),8px)}.is-tv.hig-bottom-sheet[_ngcontent-%COMP%]{min-height:420px;height:420px}.isLtr[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{margin:120px 0 0 120px}html[dir=ltr][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{--dummy: 0;margin:120px 0 0 120px}.isRtl[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{margin:120px 120px 0 0}html[dir=rtl][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{--dummy: 0;margin:120px 120px 0 0}.is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:112px}.is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:112px;height:112px;object-fit:fill}.is-tv[_ngcontent-%COMP%] .actions-container[_ngcontent-%COMP%]{padding:0;max-width:606px}.is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{min-width:0}.isLtr[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{margin:120px 90px 0 120px}html[dir=ltr][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{--dummy: 0;margin:120px 90px 0 120px}.isRtl[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{margin:120px 120px 0 90px}html[dir=rtl][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{--dummy: 0;margin:120px 120px 0 90px}.isLtr[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image[_ngcontent-%COMP%]{margin:120px 90px 0 56px}html[dir=ltr][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image[_ngcontent-%COMP%]{--dummy: 0;margin:120px 90px 0 56px}.isRtl[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image[_ngcontent-%COMP%]{margin:120px 56px 0 90px}html[dir=rtl][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image[_ngcontent-%COMP%]{--dummy: 0;margin:120px 56px 0 90px}.is-tv[_ngcontent-%COMP%] .content.only-body[_ngcontent-%COMP%]{align-items:center}.isLtr[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.only-body[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.only-body[_ngcontent-%COMP%]{margin:0 90px 60px 120px}html[dir=ltr][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content.only-body[_ngcontent-%COMP%]{--dummy: 0;margin:0 90px 60px 120px}.isRtl[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.only-body[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.only-body[_ngcontent-%COMP%]{margin:0 120px 60px 90px}html[dir=rtl][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content.only-body[_ngcontent-%COMP%]{--dummy: 0;margin:0 120px 60px 90px}.isLtr[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image.only-body[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image.only-body[_ngcontent-%COMP%]{margin:0 90px 60px 56px}html[dir=ltr][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image.only-body[_ngcontent-%COMP%]{--dummy: 0;margin:0 90px 60px 56px}.isRtl[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image.only-body[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image.only-body[_ngcontent-%COMP%]{margin:0 56px 60px 90px}html[dir=rtl][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image.only-body[_ngcontent-%COMP%]{--dummy: 0;margin:0 56px 60px 90px}.is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .font-tv-error-text[_ngcontent-%COMP%]{margin:24px 0 0}.is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .header-text[_ngcontent-%COMP%]{word-break:break-word;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .body-text[_ngcontent-%COMP%]{word-break:break-word;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;min-height:45px}.overflow-wrap-anywhere[_ngcontent-%COMP%]{overflow-wrap:anywhere}.buttons-container[_ngcontent-%COMP%]{height:calc(44px + max(env(safe-area-inset-bottom),8px))}.buttons-container[_ngcontent-%COMP%] button[mat-button][_ngcontent-%COMP%]{line-height:36px}.buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;z-index:1;background:transparent}.isLtr[_nghost-%COMP%] .buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%]{margin-right:32px}html[dir=ltr][_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%]{--dummy4: 0;margin-right:32px}.isRtl[_nghost-%COMP%] .buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%]{margin-left:32px}html[dir=rtl][_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%]{--dummy4: 0;margin-left:32px}.is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%]{height:100%;margin-top:120px}.isLtr[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%]{margin-right:80px}html[dir=ltr][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%]{--dummy4: 0;margin-right:80px}.isRtl[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%]{margin-left:80px}html[dir=rtl][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%]{--dummy4: 0;margin-left:80px}.is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{align-self:flex-start;height:92px;width:100%;text-align:start;border-radius:5px;--font-sub-shared-font-size: 14px;--font-sub-shared-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{--font-sub-shared-font-size: 28px;--font-sub-shared-line-height: 40px}.image-container[_ngcontent-%COMP%]{margin:16px}"]})}}return He})()},52171:(Bt,z,s)=>{"use strict";s.d(z,{X:()=>S});var n=s(61142),l=s(96542),d=s(58527);function v(y,f){if(1&y&&(d.j41(0,"div",2)(1,"div",3),d.EFF(2),d.nI1(3,"translate"),d.k0s(),d.j41(4,"div",4),d.EFF(5),d.nI1(6,"translate"),d.k0s()()),2&y){const O=f.$implicit;d.R7$(2),d.JRh(d.bMT(3,2,O.primaryText)),d.R7$(3),d.JRh(d.bMT(6,4,O.secondaryText))}}let S=(()=>{class y{constructor(){this.data=[]}static{this.\u0275fac=function(P){return new(P||y)}}static{this.\u0275cmp=d.VBU({type:y,selectors:[["nv-hig-cell-comparison"]],inputs:{data:"data"},standalone:!0,features:[d.aNF],decls:2,vars:1,consts:[[1,"hig-cell-upgrade-container"],["class","hig-cell-upgrade",4,"ngFor","ngForOf"],[1,"hig-cell-upgrade"],[1,"hig-cell-upgrade-primary"],[1,"hig-cell-upgrade-secondary"]],template:function(P,_){1&P&&(d.j41(0,"div",0),d.DNE(1,v,7,6,"div",1),d.k0s()),2&P&&(d.R7$(),d.Y8G("ngForOf",_.data))},dependencies:[n.pM,l.h,l.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.hig-cell-upgrade-container[_ngcontent-%COMP%]{margin-top:16px;display:flex;flex-direction:column;gap:16px}.hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade[_ngcontent-%COMP%]{padding:16px;background:radial-gradient(112.74% 94.84% at 77.07% 0%,#ccc3,#ccc0 54.61%),#64646466}.hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-primary[_ngcontent-%COMP%]{--font-header-font-size: 24px;--font-header-line-height: 32px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-primary[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-primary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-primary[_ngcontent-%COMP%]{--font-header-font-size: 48px;--font-header-line-height: 64px}.hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-secondary[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 14px;--font-body-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-secondary[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-secondary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-secondary[_ngcontent-%COMP%]{--font-body-size: 28px;--font-body-line-height: 40px;--font-body-color: rgba(255, 255, 255, .85)}@media (max-width: 479px){.hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-primary[_ngcontent-%COMP%]{--font-header-font-size: 20px;--font-header-line-height: 28px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-primary[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-primary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-primary[_ngcontent-%COMP%]{--font-header-font-size: 40px;--font-header-line-height: 56px}}.tv-view[_nghost-%COMP%] .hig-cell-upgrade-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-cell-upgrade-container[_ngcontent-%COMP%]{gap:32px}"]})}}return y})()},80598:(Bt,z,s)=>{"use strict";s.d(z,{b5:()=>n.b5,oV:()=>l.o});var n=s(43281),l=s(13458)},13458:(Bt,z,s)=>{"use strict";s.d(z,{o:()=>S});var n=s(99204),l=s(3457),d=s(43281),v=s(58527);let S=(()=>{class y{constructor(O){this.viewRef=O,this.isTv=!1,this.mode=d.mt.Indeterminate,this.value=0,this.diameter=this.isTv?d._U:d.b5}static{this.\u0275fac=function(P){return new(P||y)(v.rXU(v.c1b))}}static{this.\u0275cmp=v.VBU({type:y,selectors:[["nv-hig-progress-circular"]],inputs:{isTv:"isTv",mode:"mode",value:"value",diameter:"diameter"},standalone:!0,features:[v.aNF],decls:2,vars:3,consts:[["fxLayoutAlign","center center",1,"common-overlay"],[1,"mat-accent",3,"mode","diameter","value"]],template:function(P,_){1&P&&(v.j41(0,"div",0),v.nrm(1,"mat-progress-spinner",1),v.k0s()),2&P&&(v.R7$(),v.Y8G("mode",_.mode)("diameter",_.diameter)("value",_.value))},dependencies:[l.w2,l.sA,n.D6,n.LG],styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}.common-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;z-index:1;background-color:#000000bf}.common-overlay.light-background[_ngcontent-%COMP%]{background-color:#00000080}.common-overlay.no-background[_ngcontent-%COMP%]{background-color:transparent}"]})}}return y})()},43281:(Bt,z,s)=>{"use strict";s.d(z,{_U:()=>l,b5:()=>n,mt:()=>d});const n=16,l=2*n;var d=function(v){return v.Indeterminate="indeterminate",v.Determininate="determinate",v}(d||{})},5428:(Bt,z,s)=>{"use strict";s.d(z,{t:()=>a});var n=s(58527),l=s(13186),d=s(6364),v=s(56106),S=s(61142),y=s(3457),f=s(99469),O=s(54676);const P=["slider"];function _(c,m){if(1&c){const M=n.RV6();n.j41(0,"input",4),n.mxI("ngModelChange",function(I){n.eBV(M);const U=n.XpG();return n.DH7(U.inputValue,I)||(U.inputValue=I),n.Njj(I)}),n.bIt("focus",function(){n.eBV(M);const I=n.XpG();return n.Njj(I.onTextFocus())})("blur",function(){n.eBV(M);const I=n.XpG();return n.Njj(I.onTextBlur())})("change",function(I){n.eBV(M);const U=n.XpG();return n.Njj(U.textChanged(I))})("input",function(I){n.eBV(M);const U=n.XpG();return n.Njj(U.textInput(I))}),n.k0s()}if(2&c){const M=n.XpG();n.Y8G("disabled",M.disabled),n.R50("ngModel",M.inputValue),n.BMQ("tabindex",M.tabindex)}}var i=function(c){return c.Integer="integer",c.Decimal="decimal",c.Time="time",c.Percent="percent",c}(i||{});const r={[i.Integer]:/^-?\d*$/,[i.Decimal]:/^-?\d*\.*\d*$/,[i.Time]:/^-?\d*[:]?\d*$/,[i.Percent]:/^-?\d*$/};let a=(()=>{class c{get min(){return this._min}set min(M){this._min=(0,d.OE)(M,this._min)}get max(){return this._max}set max(M){this._max=(0,d.OE)(M,this._max)}get step(){return this._step}set step(M){this._step=(0,d.OE)(M,this._step),this.forceSliderTickUpdate()}get default(){return this._default}set default(M){this._default=(0,d.OE)(M,this._default)}get tickInterval(){return this._tickInterval}set tickInterval(M){this._tickInterval="auto"===M?"auto":"number"==typeof M||"string"==typeof M?(0,d.OE)(M,this._tickInterval):0,console.log("tickinterval: ",this._tickInterval),this.forceSliderTickUpdate()}get value(){return this._value}set value(M){this._value=(0,d.OE)(M,this._value),setTimeout(()=>this.sliderMoved({source:this.slider,value:this.value}),0)}set formatTextAs(M){this._formatTextAs=i[M]||i.Integer}get formatTextAs(){return this._formatTextAs}constructor(M,D){this.dateHandlerService=D,this._min=0,this._max=100,this._step=1,this._default=void 0,this.disabled=!1,this.thumbLabel=!1,this.animating=!1,this._tickInterval=0,this._value=0,this.valueChange=new n.bkB,this.valueEntry=!1,this._formatTextAs=i.Integer,this.change=new n.bkB,this.input=new n.bkB,this.tabindex=void 0,this.sliderStep=0,this.inputValue=void 0,this.textFocused=!1,this.mouseDown=!1,this.initializing=!0,this.afterInit=!1,this.textValueValidation="",this.tabindex=parseInt(M,10),Number.isNaN(this.tabindex)&&(this.tabindex=void 0),this.realTabIndex="-1"}ngAfterViewInit(){this.afterInit=!0,setTimeout(()=>{this.forceSliderTickUpdate(),this.sliderMoved({source:this.slider,value:this.value})},0),setTimeout(()=>this.initializing=!1,100)}forceSliderTickUpdate(){this.afterInit&&this.slider&&(this.slider.step=this.step,this.sliderStep=this.step,this.slider._onMouseenter())}onTextFocus(){this.textFocused=!0}onTextBlur(){this.textFocused=!1}textChanged(M){let D=M.target.value;if(this.formatTextAs===i.Time){const U=this.dateHandlerService.parseDate(D,"mm:ss");D=(60*f.Nq.getMinutesFromDate(U)+f.Nq.getSecondsFromDate(U)).toString()}let I=0;this.formatTextAs===i.Decimal?(I=100*(parseFloat(D)||0),this.step&&(I=Math.round((I-100*this.min)/(100*this.step))*this.step+this.min)):(I=parseInt(D,10)||0,this.step&&(I=Math.round((I-this.min)/this.step)*this.step+this.min)),I=Math.min(this.max,Math.max(I,this.min)),this.value=I,this.sliderChanged({source:this.slider,value:this.value}),M.stopImmediatePropagation()}sliderChanged(M){this.valueChange.emit(this.value),this.change.emit(M)}sliderMoved(M){if(M&&void 0!==M.value){if(this.formatTextAs===i.Time){const D=new Date(0).getTimezoneOffset();let I=new Date(60*D*1e3);I=f.Nq.addTime(I,M.value,f.yr.SECONDS),this.inputValue=this.dateHandlerService.formatDate(I,"mm:ss")}else this.inputValue=this.formatTextAs===i.Percent?M.value+" %":M.value+"";this.textValueValidation=this.inputValue,this.input.emit(M)}}textInput(M){const I=M.target;I&&!(r[this.formatTextAs]||r[i.Integer]).test(I.value)?I.value=this.textValueValidation:this.textValueValidation=I.value,M.stopImmediatePropagation()}onKeyDown(M){this.default&&"Period"===M.code&&(this.value=this.default,this.sliderChanged({source:this.slider,value:this.value}))}static{this.\u0275fac=function(D){return new(D||c)(n.kS0("tabindex"),n.rXU(f.I_))}}static{this.\u0275cmp=n.VBU({type:c,selectors:[["nv-hig-slider"]],viewQuery:function(D,I){if(1&D&&n.GBs(P,7),2&D){let U;n.mGM(U=n.lsd())&&(I.slider=U.first)}},hostVars:1,hostBindings:function(D,I){2&D&&n.Mr5("tabindex",I.realTabIndex)},inputs:{min:"min",max:"max",step:"step",default:"default",disabled:"disabled",thumbLabel:"thumbLabel",animating:"animating",tickInterval:"tickInterval",value:"value",valueEntry:"valueEntry",formatTextAs:"formatTextAs"},outputs:{valueChange:"valueChange",change:"change",input:"input"},standalone:!0,features:[n.aNF],decls:4,vars:15,consts:[["slider",""],["fxFlex","row","fxLayoutAlign","start start",1,"nv-hig"],["fxFlex","","nvMatSliderKeyboardFixup","",3,"valueChange","input","change","mousedown","mouseup","keydown","min","max","step","disabled","thumbLabel","tickInterval","value","tabIndex"],["type","text","fxFlex","none","class","slider-text-entry font-body2",3,"disabled","ngModel","ngModelChange","focus","blur","change","input",4,"ngIf"],["type","text","fxFlex","none",1,"slider-text-entry","font-body2",3,"ngModelChange","focus","blur","change","input","disabled","ngModel"]],template:function(D,I){if(1&D){const U=n.RV6();n.j41(0,"div",1)(1,"mat-slider",2,0),n.mxI("valueChange",function(T){return n.eBV(U),n.DH7(I.value,T)||(I.value=T),n.Njj(T)}),n.bIt("input",function(T){return n.eBV(U),n.Njj(I.sliderMoved(T))})("change",function(T){return n.eBV(U),n.Njj(I.sliderChanged(T))})("mousedown",function(){return n.eBV(U),n.Njj(I.mouseDown=!0)})("mouseup",function(){return n.eBV(U),n.Njj(I.mouseDown=!1)},!1,n.tSv)("keydown",function(T){return n.eBV(U),n.Njj(I.onKeyDown(T))}),n.k0s(),n.DNE(3,_,1,3,"input",3),n.k0s()}2&D&&(n.R7$(),n.AVh("cdk-mouse-focused",I.textFocused)("nv-mouse-down",I.mouseDown)("hig-slider-no-animation",I.animating||I.initializing),n.Y8G("min",I.min)("max",I.max)("step",I.sliderStep)("disabled",I.disabled)("thumbLabel",I.thumbLabel)("tickInterval",I.tickInterval),n.R50("value",I.value),n.Y8G("tabIndex",I.tabindex),n.R7$(2),n.Y8G("ngIf",I.valueEntry))},dependencies:[y.w2,y.sA,y.UI,l.Lq,l.N$,O.Sb,S.bT,v.YN,v.me,v.BC,v.vS],styles:[".slider-text-entry[_ngcontent-%COMP%]{width:48px;height:23px;background-color:transparent;border:none;text-align:center;padding-bottom:2px;border-bottom:1px solid var(--hig-slider-border-bottom-color);caret-color:#76b900}.isLtr[_nghost-%COMP%] .slider-text-entry[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .slider-text-entry[_ngcontent-%COMP%]{margin:0 0 0 8px}html[dir=ltr][_ngcontent-%COMP%] .slider-text-entry[_ngcontent-%COMP%]{--dummy: 0;margin:0 0 0 8px}.isRtl[_nghost-%COMP%] .slider-text-entry[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .slider-text-entry[_ngcontent-%COMP%]{margin:0 8px 0 0}html[dir=rtl][_ngcontent-%COMP%] .slider-text-entry[_ngcontent-%COMP%]{--dummy: 0;margin:0 8px 0 0}.slider-text-entry[_ngcontent-%COMP%]:disabled{opacity:.38}.slider-text-entry[_ngcontent-%COMP%]::selection{background-color:#76b900}.slider-text-entry[_ngcontent-%COMP%]:focus, .mat-slider[_ngcontent-%COMP%]:not(.mat-slider-disabled).cdk-focused ~ .slider-text-entry[_ngcontent-%COMP%]{padding-bottom:1px;border-bottom:2px solid #76b900;outline:none}"]})}}return c})()},29824:(Bt,z,s)=>{"use strict";s.d(z,{L:()=>W});var n=s(58527),l=s(26537),d=s(96542),v=s(47973),S=s(29370),y=s(36243),f=s(99204),O=s(61142),P=s(3457),_=s(44224),i=s(72818),r=s(25369),a=s(22355),c=s(40514),m=s(60990),M=s(13906),D=s(81247),I=s(2218),U=s(52171),V=s(13090),T=s(16490);function N($,le){if(1&$&&n.nrm(0,"div",23),2&$){const Pe=n.XpG();n.Y8G("imageUrl",null==Pe.data||null==Pe.data.threeQuarterSheetData?null:Pe.data.threeQuarterSheetData.backgroundImageUrl)}}function L($,le){if(1&$&&(n.j41(0,"div",24)(1,"span",25),n.EFF(2),n.nI1(3,"translate"),n.k0s()()),2&$){const Pe=n.XpG();n.R7$(2),n.JRh(Pe.data.threeQuarterSheetData.title.translated?Pe.data.threeQuarterSheetData.title.text:n.bMT(3,1,Pe.data.threeQuarterSheetData.title.text))}}function E($,le){if(1&$&&(n.j41(0,"span",26),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&$){const Pe=n.XpG();n.R7$(),n.JRh(n.i5U(2,1,Pe.data.headerText.text,Pe.data.translateValues))}}function g($,le){1&$&&n.nrm(0,"mat-progress-spinner",27)}function R($,le){if(1&$&&(n.j41(0,"div",28),n.nrm(1,"qrcode",29),n.k0s()),2&$){const Pe=n.XpG();n.R7$(),n.Y8G("qrdata",Pe.data.image.url)("width",200)("errorCorrectionLevel","M")}}function B($,le){if(1&$&&(n.nrm(0,"div",30),n.nI1(1,"translate")),2&$){const Pe=n.XpG();n.Y8G("innerHTML",Pe.data.bodyText.translated?Pe.data.bodyText.text:n.i5U(1,1,Pe.data.bodyText.text,Pe.data.bodyText.placeholders),n.npT)}}function X($,le){if(1&$&&n.nrm(0,"mat-icon",36),2&$){const Pe=n.XpG().$implicit;n.Y8G("svgIcon",Pe.matIcon)}}function H($,le){if(1&$&&(n.j41(0,"div",33),n.DNE(1,X,1,1,"mat-icon",34),n.j41(2,"div",35),n.EFF(3),n.k0s()()),2&$){const Pe=le.$implicit;n.R7$(),n.Y8G("ngIf",Pe.matIcon),n.R7$(2),n.JRh(Pe.text)}}function J($,le){if(1&$&&(n.j41(0,"div",31),n.DNE(1,H,4,2,"div",32),n.k0s()),2&$){const Pe=n.XpG();n.R7$(),n.Y8G("ngForOf",Pe.data.descriptionList)}}function re($,le){if(1&$&&n.nrm(0,"nv-hig-cell-comparison",37),2&$){const Pe=n.XpG();n.Y8G("data",Pe.data.dataCells)}}function ie($,le){if(1&$&&(n.j41(0,"div",38)(1,"div",39),n.EFF(2),n.nI1(3,"translate"),n.k0s()()),2&$){const Pe=n.XpG();n.R7$(2),n.JRh(n.bMT(3,1,Pe.data.footerText.text))}}function ve($,le){1&$&&(n.j41(0,"div",40),n.nrm(1,"div",41),n.k0s())}function ue($,le){if(1&$&&n.nrm(0,"img",45),2&$){const Pe=n.XpG(2).$implicit;n.Y8G("src",Pe.imageUrl,n.B4B)}}function se($,le){if(1&$){const Pe=n.RV6();n.j41(0,"button",43),n.bIt("click",function(){n.eBV(Pe);const At=n.XpG().$implicit,Le=n.XpG();return n.Njj(Le.onRadioButtonClick(At.value))}),n.DNE(1,ue,1,1,"img",44),n.EFF(2),n.nI1(3,"translate"),n.k0s()}if(2&$){const Pe=n.XpG().$implicit;n.R7$(),n.Y8G("ngIf",Pe.imageUrl),n.R7$(),n.SpI(" ",n.bMT(3,2,Pe.value)," ")}}function Z($,le){if(1&$&&(n.qex(0),n.DNE(1,se,4,4,"button",42),n.bVm()),2&$){const Pe=le.$implicit;n.R7$(),n.Y8G("ngIf",Pe)}}function Se($,le){if(1&$){const Pe=n.RV6();n.j41(0,"button",46),n.bIt("click",function(){n.eBV(Pe);const At=n.XpG();return n.Njj(At.onPrimaryButtonClick())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}if(2&$){const Pe=n.XpG();n.Y8G("disabled",Pe.data.primaryButton.isDisabled)("nvAutoFocus",Pe.autoFocusOnPrimaryButton),n.R7$(),n.SpI(" ",n.bMT(2,3,Pe.data.primaryButton.text)," ")}}function Ce($,le){if(1&$&&(n.qex(0),n.eu8(1,47),n.bVm()),2&$){n.XpG();const Pe=n.sdS(25);n.R7$(),n.Y8G("ngTemplateOutlet",Pe)}}function Be($,le){if(1&$&&(n.qex(0),n.eu8(1,47)(2,47),n.bVm()),2&$){n.XpG();const Pe=n.sdS(23),Fe=n.sdS(25);n.R7$(),n.Y8G("ngTemplateOutlet",Pe),n.R7$(),n.Y8G("ngTemplateOutlet",Fe)}}function Xe($,le){1&$&&n.nrm(0,"span",49)}function He($,le){if(1&$){const Pe=n.RV6();n.qex(0),n.j41(1,"button",43),n.bIt("click",function(){const At=n.eBV(Pe).$implicit,Le=n.XpG();return n.Njj(Le.onAugmentedButtonClick(At.id))}),n.DNE(2,Xe,1,0,"span",48),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.bVm()}if(2&$){const Pe=le.$implicit;n.R7$(2),n.Y8G("ngIf",null==Pe?null:Pe.hasNotificationBadge),n.R7$(),n.SpI(" ",n.bMT(4,2,Pe.text)," ")}}function Me($,le){if(1&$){const Pe=n.RV6();n.j41(0,"button",43),n.bIt("click",function(){n.eBV(Pe);const At=n.XpG(2);return n.Njj(At.onLinkClick(At.data.link.url,At.data.link.shortUrl,At.data.link.shortUrlDescription,At.data.link.linkClickedCallback))}),n.j41(1,"span"),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"i",52),n.EFF(5,"open_in_new"),n.k0s()()}if(2&$){const Pe=n.XpG(2);n.R7$(2),n.JRh(n.i5U(3,1,Pe.data.link.text,Pe.data.link.placeholders))}}function Q($,le){if(1&$&&(n.j41(0,"div",50),n.nrm(1,"mat-divider",51),n.DNE(2,Me,6,4,"button",42),n.k0s()),2&$){const Pe=n.XpG();n.R7$(2),n.Y8G("ngIf",Pe.data.link.url||Pe.data.link.linkClickedCallback)}}function A($,le){if(1&$){const Pe=n.RV6();n.j41(0,"button",54),n.bIt("click",function(){n.eBV(Pe);const At=n.XpG(2);return n.Njj(At.onSecondaryButtonClick())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}if(2&$){const Pe=n.XpG(2);n.R7$(),n.SpI(" ",n.bMT(2,1,Pe.data.secondaryButton.text)," ")}}function me($,le){if(1&$&&n.DNE(0,A,3,3,"button",53),2&$){const Pe=n.XpG();n.Y8G("ngIf",Pe.data.secondaryButton)}}function ne($,le){if(1&$){const Pe=n.RV6();n.j41(0,"button",54),n.bIt("click",function(){n.eBV(Pe);const At=n.XpG(2);return n.Njj(At.onCheckboxClick())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}if(2&$){const Pe=n.XpG(2);n.R7$(),n.SpI(" ",n.bMT(2,1,Pe.data.checkbox.text)," ")}}function G($,le){if(1&$&&n.DNE(0,ne,3,3,"button",53),2&$){const Pe=n.XpG();n.Y8G("ngIf",Pe.data.checkbox)}}let W=(()=>{class $ extends r.D{get autoFocusOnPrimaryButton(){return this.data.autoFocusOnPrimaryButton??!0}static open(Pe,Fe){return Fe.maxWidth="100vw",(0,i.SN)(Fe,{threeQuarterSheet:!0}),Pe.open($,{...Fe,width:"100%",height:"100%"})}constructor(Pe,Fe,At,Le,Et){super(At,Le,Pe,Et),this.offDeviceLinkService=Fe,this.primaryButtonClick=new n.bkB,this.secondaryButtonClick=new n.bkB,this.radioButtonClick=new n.bkB,this.augmentedButtonClick=new n.bkB,this.linkClick=new n.bkB,this.data={},this.data=Pe.get(l.Vh,null)}onPrimaryButtonClick(Pe){this.primaryButtonClick.emit(Pe)}onSecondaryButtonClick(Pe){this.secondaryButtonClick.emit(Pe)}onCheckboxClick(){this.data.checkboxState=!0,(this.data.checkbox.primaryActionInThreeQuarterSheet?this.primaryButtonClick:this.secondaryButtonClick).emit()}onRadioButtonClick(Pe){this.data.radioOptionSelected=Pe,this.radioButtonClick.emit(),this.primaryButtonClick.emit()}onLinkClick(Pe,Fe,At,Le){Pe?this.offDeviceLinkService.open(Pe,{shortUrl:Fe,shortUrlDescription:At,threeQuarterSheetData:this.data?.threeQuarterSheetData}):Le&&Le(),this.linkClick.emit()}onAugmentedButtonClick(Pe){this.augmentedButtonClick.emit(Pe)}static{this.\u0275fac=function(Fe){return new(Fe||$)(n.rXU(n.zZn),n.rXU(V.n),n.rXU(l.CP,8),n.rXU(T.eN,8),n.rXU(n.SKi))}}static{this.\u0275cmp=n.VBU({type:$,selectors:[["nv-hig-three-quarter-sheet"]],inputs:{data:"data"},outputs:{primaryButtonClick:"primaryButtonClick",secondaryButtonClick:"secondaryButtonClick",radioButtonClick:"radioButtonClick",augmentedButtonClick:"augmentedButtonClick",linkClick:"linkClick"},standalone:!0,features:[n.Vt3,n.aNF],decls:26,vars:21,consts:[["secondaryButton",""],["checkboxButton",""],["fxFlex","","fxLayout","row","nvSpatialNavigationContainer","","nvTrapFocus","",1,"main-dialog-sheet"],["class","image-layer","nvHigBackgroundImageOverlay","",3,"imageUrl",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between start",1,"content-container"],["class","title",4,"ngIf"],["fxLayout","column","fxLayoutGap","32px"],["class","content-header font-header4",4,"ngIf"],["fxLayout","row",1,"content-info"],["mode","indeterminate","diameter","48","color","accent",4,"ngIf"],["class","qrcode-container",4,"ngIf"],["fxFlex","","fxLayout","column","fxLayoutGap","16px"],["class","font-body2",3,"innerHTML",4,"ngIf"],["fxLayout","column","fxLayoutGap","16px","class","hig-description-list-container",4,"ngIf"],[3,"data",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end end",4,"ngIf"],["class","background-scrim translucent",4,"ngIf"],["fxLayout","column","fxLayoutGap","12px",1,"button-container"],[4,"ngFor","ngForOf"],["mat-button","","class","sentence-case",3,"disabled","nvAutoFocus","click",4,"ngIf"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["fxLayout","column","fxLayoutGap","16px",4,"ngIf"],["nvHigBackgroundImageOverlay","",1,"image-layer",3,"imageUrl"],[1,"title"],[1,"title-content"],[1,"content-header","font-header4"],["mode","indeterminate","diameter","48","color","accent"],[1,"qrcode-container"],[3,"qrdata","width","errorCorrectionLevel"],[1,"font-body2",3,"innerHTML"],["fxLayout","column","fxLayoutGap","16px",1,"hig-description-list-container"],["class","hig-description-list-item",4,"ngFor","ngForOf"],[1,"hig-description-list-item"],["class","hig-description-icon font-body2",3,"svgIcon",4,"ngIf"],[1,"hig-description-text","font-body2"],[1,"hig-description-icon","font-body2",3,"svgIcon"],[3,"data"],["fxLayout","row","fxLayoutAlign","end end"],[1,"font-body3"],[1,"background-scrim","translucent"],[1,"vertical-divider"],["mat-button","",3,"click",4,"ngIf"],["mat-button","",3,"click"],["class","prefix-image",3,"src",4,"ngIf"],[1,"prefix-image",3,"src"],["mat-button","",1,"sentence-case",3,"click","disabled","nvAutoFocus"],[3,"ngTemplateOutlet"],["class","notification-badge",4,"ngIf"],[1,"notification-badge"],["fxLayout","column","fxLayoutGap","16px"],["role","separator",1,"separator"],[1,"material-icons","link-icon"],["mat-button","","class","sentence-case",3,"click",4,"ngIf"],["mat-button","",1,"sentence-case",3,"click"]],template:function(Fe,At){if(1&Fe&&(n.j41(0,"div",2),n.DNE(1,N,1,1,"div",3),n.j41(2,"div",4),n.DNE(3,L,4,3,"div",5),n.j41(4,"div",6),n.DNE(5,E,3,4,"span",7),n.j41(6,"div",8),n.DNE(7,g,1,0,"mat-progress-spinner",9)(8,R,2,3,"div",10),n.j41(9,"div",11),n.DNE(10,B,2,4,"div",12)(11,J,2,1,"div",13),n.k0s()(),n.DNE(12,re,1,1,"nv-hig-cell-comparison",14),n.k0s(),n.DNE(13,ie,4,3,"div",15),n.k0s(),n.DNE(14,ve,2,0,"div",16),n.j41(15,"div",17),n.DNE(16,Z,2,1,"ng-container",18)(17,Se,3,5,"button",19)(18,Ce,2,1,"ng-container",20)(19,Be,3,2,"ng-container",21)(20,He,5,4,"ng-container",18)(21,Q,3,1,"div",22)(22,me,1,1,"ng-template",null,0,n.C5r)(24,G,1,1,"ng-template",null,1,n.C5r),n.k0s()()),2&Fe){const Le=n.sdS(23);n.R7$(),n.Y8G("ngIf",null==At.data||null==At.data.threeQuarterSheetData?null:At.data.threeQuarterSheetData.backgroundImageUrl),n.R7$(),n.AVh("translucent",null==At.data||null==At.data.threeQuarterSheetData?null:At.data.threeQuarterSheetData.backgroundImageUrl),n.R7$(),n.Y8G("ngIf",null==At.data||null==At.data.threeQuarterSheetData?null:At.data.threeQuarterSheetData.title),n.R7$(2),n.Y8G("ngIf",At.data.headerText),n.R7$(2),n.Y8G("ngIf",At.data.showSpinner),n.R7$(),n.Y8G("ngIf",null==At.data.image?null:At.data.image.url),n.R7$(2),n.Y8G("ngIf",At.data.bodyText),n.R7$(),n.Y8G("ngIf",At.data.descriptionList),n.R7$(),n.Y8G("ngIf",(null==At.data.dataCells?null:At.data.dataCells.length)>0),n.R7$(),n.Y8G("ngIf",At.data.footerText),n.R7$(),n.Y8G("ngIf",null==At.data||null==At.data.threeQuarterSheetData?null:At.data.threeQuarterSheetData.backgroundImageUrl),n.R7$(),n.AVh("translucent",null==At.data||null==At.data.threeQuarterSheetData?null:At.data.threeQuarterSheetData.backgroundImageUrl),n.R7$(),n.Y8G("ngForOf",At.data.radioButtonOptions),n.R7$(),n.Y8G("ngIf",At.data.primaryButton&&!At.data.radioButtonOptions),n.R7$(),n.Y8G("ngIf",null==At.data.checkbox?null:At.data.checkbox.primaryActionInThreeQuarterSheet),n.R7$(),n.Y8G("ngIf",At.data.checkbox&&!At.data.checkbox.primaryActionInThreeQuarterSheet)("ngIfElse",Le),n.R7$(),n.Y8G("ngForOf",null==At.data.threeQuarterSheetData?null:At.data.threeQuarterSheetData.augmentedButtons),n.R7$(),n.Y8G("ngIf",At.data.link)}},dependencies:()=>[P.w2,P.DJ,P.BO,P.sA,P.UI,I.R,D.D,O.bT,M.Z,f.D6,f.LG,y.f,y.c,m.r,c.e,O.pM,U.X,S.m_,S.An,v.wG,v.iV,a.N,O.T3,d.h,d.D9,_.w,_.q],styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}.main-dialog-sheet[_ngcontent-%COMP%]{position:fixed;top:0;left:0;max-height:100%;width:100vw;height:100%}.main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%]{padding:133px 88px 48px;width:1180px}.main-dialog-sheet[_ngcontent-%COMP%] .content-container.translucent[_ngcontent-%COMP%]{background:#000000b3}.main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .content-header[_ngcontent-%COMP%]{height:318px;word-break:break-word;display:flex;align-items:flex-end}.main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .content-header.sentence-case[_ngcontent-%COMP%]{text-transform:lowercase}.main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .content-header.sentence-case[_ngcontent-%COMP%]:first-letter{text-transform:uppercase}.isLtr[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:32px}html[dir=ltr][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{--dummy4: 0;margin-right:32px}.isRtl[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-left:32px}html[dir=rtl][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{--dummy4: 0;margin-left:32px}.isLtr[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-left:0}.main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .qrcode-container[_ngcontent-%COMP%]{width:200px;height:200px}.main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{top:56px;position:fixed;display:flex;align-items:flex-end}.main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%]{--font-sub-shared-font-size: 16px;--font-sub-shared-line-height: 24px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0;color:#fff9}.tv-view[_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%]{--font-sub-shared-font-size: 32px;--font-sub-shared-line-height: 48px}.main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{width:calc(100vw - 1180px);background:#191919;padding-top:374px}.isLtr[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{padding-left:40px}html[dir=ltr][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{--dummy1: 0;padding-left:40px}.isRtl[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{padding-right:40px}html[dir=rtl][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{--dummy1: 0;padding-right:40px}.isLtr[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{padding-right:88px}html[dir=ltr][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{--dummy2: 0;padding-right:88px}.isRtl[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{padding-left:88px}html[dir=rtl][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{--dummy2: 0;padding-left:88px}.main-dialog-sheet[_ngcontent-%COMP%] .button-container.translucent[_ngcontent-%COMP%]{background:#000000b3}.main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{text-align:start;height:96px;border-radius:8px;white-space:normal;--font-sub-shared-font-size: 14px;--font-sub-shared-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0}.isLtr[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-left:32px}html[dir=ltr][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{--dummy1: 0;padding-left:32px}.isRtl[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-right:32px}html[dir=rtl][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{--dummy1: 0;padding-right:32px}.main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{width:48px;height:48px}.isLtr[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{padding-left:12px}html[dir=ltr][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{--dummy1: 0;padding-left:12px}.isRtl[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{padding-right:12px}html[dir=rtl][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{--dummy1: 0;padding-right:12px}.isLtr[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{padding-right:28px}html[dir=ltr][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{--dummy2: 0;padding-right:28px}.isRtl[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{padding-left:28px}html[dir=rtl][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{--dummy2: 0;padding-left:28px}.main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] i.link-icon[_ngcontent-%COMP%]{vertical-align:middle;padding:0 16px}.main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button.sentence-case[_ngcontent-%COMP%]{text-transform:lowercase}.main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button.sentence-case[_ngcontent-%COMP%]:first-letter{text-transform:uppercase}.tv-view[_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{--font-sub-shared-font-size: 28px;--font-sub-shared-line-height: 40px}.main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{margin-top:4px;color:#ffffff3d}.image-layer[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1;opacity:.8}.hig-description-list-container[_ngcontent-%COMP%]{margin-top:16px}.hig-description-list-container[_ngcontent-%COMP%] .hig-description-list-item[_ngcontent-%COMP%]{display:flex}.hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;height:28px;margin-top:4px}.isLtr[_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{margin-right:20px}html[dir=ltr][_ngcontent-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:20px}.isRtl[_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl][_ngcontent-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:20px}.notification-badge[_ngcontent-%COMP%]{display:inline-block;width:14px;height:14px;border-radius:50%;background-color:#76b900}.isLtr[_nghost-%COMP%] .notification-badge[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .notification-badge[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .notification-badge[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .notification-badge[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.background-scrim[_ngcontent-%COMP%]{position:relative;width:2px;height:100%}.background-scrim.translucent[_ngcontent-%COMP%]{background:#000000b3}.background-scrim[_ngcontent-%COMP%] .vertical-divider[_ngcontent-%COMP%]{width:100%;height:1080px;opacity:.24;background:linear-gradient(180deg,#fff0,#fff,#fff0)}"]})}}return $})()},22355:(Bt,z,s)=>{"use strict";s.d(z,{N:()=>v});var n=s(6364),l=s(58527),d=s(21684);let v=(()=>{class S{constructor(f,O){this.element=f,this.focusManager=O,this.autoFocusPolicy="self",this._focusEnabled=!0}get focusEnabled(){return this._focusEnabled}set focusEnabled(f){this._focusEnabled=(0,n.he)(f)}ngAfterViewInit(){this.focusEnabled&&("initial"===this.autoFocusPolicy?setTimeout(()=>this.focusManager.focusChild(this.element.nativeElement,"initial")):setTimeout(()=>this.focusManager.focusViaLastOrigin(this.element.nativeElement)))}static{this.\u0275fac=function(O){return new(O||S)(l.rXU(l.aKT),l.rXU(d.c))}}static{this.\u0275dir=l.FsC({type:S,selectors:[["","nvAutoFocus",""]],inputs:{autoFocusPolicy:"autoFocusPolicy",focusEnabled:[l.Mj6.None,"nvAutoFocus","focusEnabled"]},standalone:!0})}}return S})()},25369:(Bt,z,s)=>{"use strict";s.d(z,{D:()=>P});var n=s(26537),l=s(16490),d=s(80583),v=s(8619),S=s(65706),y=s(4208),f=s(81834),O=s(58527);let P=(()=>{class _{constructor(r,a,c,m){this.dialogRef=r,this.bottomSheetRef=a,this.injector=c,this.ngZone=m,this.destroy$=new d.B7}ngAfterViewInit(){const r=this.dialogRef?this.injector.get(n.Vh,null):this.bottomSheetRef?this.injector.get(l.yj,null):void 0,a=this.dialogRef??this.bottomSheetRef;!a||r?.disableBackToClose||this.ngZone.runOutsideAngular(()=>{a.keydownEvents().pipe((0,v.p)(f.Nw),(0,S.s)(1),(0,y.Q)(this.destroy$)).subscribe(c=>{c.stopPropagation(),c.preventDefault(),this.close(c)})})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}close(r){const a=("function"==typeof this.backToCloseResult?this.backToCloseResult():this.backToCloseResult)??r;this.dialogRef?.close(a),this.bottomSheetRef?.dismiss(a)}static{this.\u0275fac=function(a){return new(a||_)(O.rXU(n.CP,8),O.rXU(l.eN,8),O.rXU(O.zZn),O.rXU(O.SKi))}}static{this.\u0275dir=O.FsC({type:_,selectors:[["","nvBackToCloseModal",""]],inputs:{backToCloseResult:"backToCloseResult"},standalone:!0})}}return _})()},49219:(Bt,z,s)=>{"use strict";s.d(z,{q:()=>S});var n=s(6364),l=s(22355),d=s(58527),v=s(21684);let S=(()=>{class y{get enabled(){return this._enabled}set enabled(O){this._enabled=(0,n.he)(O)}constructor(O,P){this.element=O,this.focusManager=P,this._enabled=!0,this.restoreFunction=this.focusManager.createRestoreFocusFunction(this.focusManager.currentFocusedElement)}ngAfterViewInit(){this.enabled&&(this.autoFocusChildren.some(P=>P.focusEnabled)||this.focusManager.focusChild(this.element.nativeElement,"initial"))}shouldRestoreFocus(){const O=this.focusManager.currentFocusedElement;return O===document.body||this.element.nativeElement.contains(O)}ngOnDestroy(){this.enabled&&this.shouldRestoreFocus()&&setTimeout(()=>this.restoreFunction())}static{this.\u0275fac=function(P){return new(P||y)(d.rXU(d.aKT),d.rXU(v.c))}}static{this.\u0275dir=d.FsC({type:y,selectors:[["","nvCaptureRestoreFocus",""]],contentQueries:function(P,_,i){if(1&P&&d.wni(i,l.N,5),2&P){let r;d.mGM(r=d.lsd())&&(_.autoFocusChildren=r)}},inputs:{enabled:[d.Mj6.None,"nvCaptureRestoreFocus","enabled"]},standalone:!0})}}return y})()},54504:(Bt,z,s)=>{"use strict";s.d(z,{a:()=>d});var n=s(44186),l=s(58527);let d=(()=>{class v{constructor(y,f,O){this.elementRef=y,this.renderer=f,this.matTooltip=O,this.isTooltipEnabled=!0,this.isMultiLineEllipsis=!1}ngOnInit(){this.domElement=this.elementRef.nativeElement,this.renderer.addClass(this.domElement,this.isMultiLineEllipsis?"multi-line-ellipsis":"single-line-ellipsis"),this.renderer.addClass(this.domElement,"ellipsified-text-with-tooltip"),this.lineClamp&&this.renderer.setStyle(this.domElement,"-webkit-line-clamp",this.lineClamp)}ngAfterViewInit(){this.matTooltip.tooltipClass=this.tooltipClass}onMouseOver(){this.isTooltipEnabled&&(this.isMultiLineEllipsis?this.domElement.offsetHeight<this.domElement.scrollHeight:this.domElement.offsetWidth<this.domElement.scrollWidth)&&(this.matTooltip.message=this.domElement.innerText,this.matTooltip.show())}onMouseOut(){this.matTooltip.hide()}static{this.\u0275fac=function(f){return new(f||v)(l.rXU(l.aKT),l.rXU(l.sFG),l.rXU(n.oV))}}static{this.\u0275dir=l.FsC({type:v,selectors:[["","nvEllipsifiedTextWithTooltip",""]],hostBindings:function(f,O){1&f&&l.bIt("mouseover",function(){return O.onMouseOver()})("mouseout",function(){return O.onMouseOut()})},inputs:{tooltipClass:"tooltipClass",isTooltipEnabled:"isTooltipEnabled",isMultiLineEllipsis:"isMultiLineEllipsis",lineClamp:"lineClamp"},standalone:!0,features:[l.Jv_([n.oV])]})}}return v})()},97888:(Bt,z,s)=>{"use strict";s.d(z,{Aq:()=>D});var n=s(58527),l=s(6364),d=s(81834),v=s(11013),S=s(72653),y=s(68868),f=function(I){return I[I.Off=0]="Off",I[I.FocusIn=1]="FocusIn",I[I.On=2]="On",I[I.FocusOut=3]="FocusOut",I}(f||{});const O=["focus"],P=["blur"];function r({rippleRef:I,rectRef:U,targetWidth:V,targetHeight:T,borderWidth:N}){const L=I.nativeElement,E=U.nativeElement,g=Math.ceil(function i(I){const U=I.width/2,V=I.height/2;return Math.sqrt(U*U+V*V)}({width:V,height:T}))+20;L.style.height=2*g+"px",L.style.width=2*g+"px",E.style.height=Math.ceil(T)-2*N+"px",E.style.width=Math.ceil(V)-2*N+"px"}const a={enterDuration:140,exitDuration:140};class M{static{this._eventManager=new d.EU}constructor(U,V,T,N,L,E){this._target=U,this._ngZone=V,this._platform=N,this.borderWidth=L,this.inputModalityService=E,this.eventListeners={},this.focusAnimState=f.Off,this.clearListeners=()=>{this._currentRippleRef?.nativeElement.removeEventListener("transitionend",this.eventListeners.onTransitionEnd),this._currentRippleRef?.nativeElement.removeEventListener("transitioncancel",this.eventListeners.onTransitionCancel)},N.isBrowser&&(this._hostElement=(0,l.i8)(T))}focusInRipple(U){this.tearDown(),this._hostElement.classList.add("nv-focus-ripple-cta-btn"),this._hostElement.classList.add("focus-green-text");const V=U.animation,T=this.borderWidth,N=this._hostElement.getBoundingClientRect(),L=document.createElement("div");L.classList.add("nv-ripple-container");const E=document.createElement("div");E.classList.add("nv-ripple-circle");const g=document.createElement("div");g.classList.add("nv-ripple-rect");const R=new n.aKT(E),B=new n.aKT(g);this._hostElement.appendChild(L),L.appendChild(E),L.appendChild(g),this._currentContainerRef=new n.aKT(L),this._currentContainerRef.nativeElement.getBoundingClientRect(),r({rippleRef:R,rectRef:B,targetWidth:N.width,targetHeight:N.height,borderWidth:T}),E.style.backgroundColor=U.color,g.style.backgroundColor=U.color,E.style.transitionDuration=`${V.enterDuration}ms`,g.style.transitionDuration=`${V.enterDuration}ms`,E.style.opacity="0.5",g.style.opacity="1",this.focusAnimState=f.FocusIn,this._currentRippleRef=R,this._currentRectRef=B,this._ngZone.runOutsideAngular(()=>{const X=J=>{"opacity"===J.propertyName&&(this.clearListeners(),this.focusAnimState=f.On,this._currentRectRef.nativeElement.style.border=`${T}px solid ${U.borderColor}`,this.observer=new ResizeObserver(([{borderBoxSize:[{inlineSize:re,blockSize:ie}]}])=>{(re!==N.width||ie!==N.height)&&r({rippleRef:this._currentRippleRef,rectRef:this._currentRectRef,targetWidth:re,targetHeight:ie,borderWidth:T})}),this.observer.observe(this._hostElement))},H=J=>{"opacity"===J.propertyName&&this.tearDown()};this.eventListeners={onTransitionCancel:H,onTransitionEnd:X},this._currentRippleRef.nativeElement.addEventListener("transitionend",X),this._currentRippleRef.nativeElement.addEventListener("transitioncancel",H)})}tearDown(){this.clearListeners(),this._destroyRipples(),this.observer?.disconnect(),this.observer=null}focusOutRipple(){this.observer?.disconnect(),this.clearListeners();const U=this._currentRippleRef.nativeElement,V=this._currentRectRef.nativeElement;!V||!U||(V.style.border="none",U.style.opacity="0",U.style.width=0,U.style.height=0,V.style.opacity="0.5",V.style.width=0,V.style.height=0,this._hostElement.classList.remove("focus-green-text"),this.focusAnimState=f.FocusOut,this._ngZone.runOutsideAngular(()=>{const T=E=>{"opacity"===E.propertyName&&this.tearDown()},N=E=>{T(E)},L=E=>{T(E)};this.eventListeners={onTransitionCancel:L,onTransitionEnd:N},this._currentRippleRef.nativeElement.addEventListener("transitionend",N),this._currentRippleRef.nativeElement.addEventListener("transitioncancel",L)}))}setupTriggerEvents(U){const V=(0,l.i8)(U);!this._platform.isBrowser||!V||V===this._triggerElement||(this.removeTriggerEvents(),this._triggerElement=V,O.forEach(T=>{M._eventManager.addHandler(this._ngZone,T,V,this)}),P.forEach(T=>{M._eventManager.addHandler(this._ngZone,T,V,this)}))}removeTriggerEvents(){const U=this._triggerElement;U&&(O.forEach(V=>M._eventManager.removeHandler(V,U,this)),P.forEach(V=>M._eventManager.removeHandler(V,U,this)))}handleEvent(U){const V=this.inputModalityService.lastFocusOrigin;if(P.includes(U.type)){if(this.focusAnimState===f.Off||this.focusAnimState===f.FocusOut)return;this._onFocusOut()}if(("keyboard"===V||"program"===V)&&O.includes(U.type)){if(this.focusAnimState===f.On||this.focusAnimState===f.FocusIn)return;this._onFocusIn()}}_destroyRipples(){this.focusAnimState=f.Off,this._currentContainerRef?.nativeElement?.remove(),this._currentRippleRef?.nativeElement?.remove(),this._currentRectRef?.nativeElement?.remove(),this._currentRippleRef=null,this._currentRectRef=null,this._hostElement.classList.remove("nv-focus-ripple-cta-btn")}_onFocusIn(){const U=this._target.rippleConfig.animation;(U.enterDuration||U.exitDuration)&&this.focusInRipple(this._target.rippleConfig)}_onFocusOut(){const U=this._target.rippleConfig.animation;(U.enterDuration||U.exitDuration)&&this.focusOutRipple()}}let D=(()=>{class I{get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(V){this._trigger=V,this._setupTriggerEventsIfEnabled()}get flagEnabled(){return this._flagEnabled}set flagEnabled(V){this._flagEnabled=(0,l.he)(V)}get disableRipple(){return!this.focusRippleEnabled||!this._flagEnabled}constructor(V,T,N,L,E){this._elementRef=V,this.animation=a,this.color="#2c3220",this.borderColor="#76b900",this._flagEnabled=!0,this._isInitialized=!1,this.focusRippleEnabled=!!E.focusRippleEnabled,!this.disableRipple&&(this._rippleRenderer=new M(this,T,V,N,E?.focusRippleBorderWidth,L))}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer?.removeTriggerEvents()}get rippleConfig(){return{color:this.color,borderColor:this.borderColor,animation:this.animation}}_setupTriggerEventsIfEnabled(){this._isInitialized&&!this.disableRipple&&this._rippleRenderer.setupTriggerEvents(this.trigger)}static{this.\u0275fac=function(T){return new(T||I)(n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(S.OD),n.rXU(y.p),n.rXU(v.X,8))}}static{this.\u0275dir=n.FsC({type:I,selectors:[["button","color","accent"],["button","mat-raised-button",""],["button",8,"mat-accent"],["","nvFocusRipple",""]],inputs:{animation:[n.Mj6.None,"nvRippleAnimation","animation"],color:[n.Mj6.None,"nvRippleColor","color"],borderColor:[n.Mj6.None,"nvRippleBorderColor","borderColor"],trigger:[n.Mj6.None,"nvRippleTrigger","trigger"],flagEnabled:[n.Mj6.None,"nvFocusRipple","flagEnabled"]},standalone:!0})}}return I})()},40514:(Bt,z,s)=>{"use strict";s.d(z,{e:()=>a});var n=s(80583),l=s(36877),d=s(16229),v=s(8619),S=s(91384),y=s(4208),f=s(10174),O=s(65706),P=s(11013),_=s(81834),i=s(58527),r=s(6360);let a=(()=>{class c{constructor(M,D,I,U){this.elementRef=M,this.userActivationGuardService=D,this.ngZone=I,this.destroy$=new n.B7,this.enable=!1,this.enable=!!U?.userActivationGuardConfig?.link,this.message=U?.userActivationGuardConfig?.linkWarningMessage}ngAfterViewInit(){!this.enable||!this.message||this.ngZone.runOutsideAngular(()=>{(0,l.R)(this.elementRef.nativeElement,"click").pipe((0,v.p)(M=>this.isLink(M.target)),(0,v.p)(M=>!(0,_.Ls)(M)),(0,S.M)(()=>{this.displayWarningMessage()}),(0,y.Q)(this.destroy$)).subscribe(M=>{M.preventDefault()})})}isLink(M){return"A"===M.tagName&&M.hasAttribute("href")}displayWarningMessage(){if(this.isWarningDisplayed)return;const M=this.userActivationGuardService.displayWarning(this.message);(0,d.h)(M.afterOpened().pipe((0,f.u)(!0)),M.afterDismissed().pipe((0,f.u)(!1))).pipe((0,O.s)(2),(0,y.Q)(this.destroy$)).subscribe(D=>{this.isWarningDisplayed=D})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(D){return new(D||c)(i.rXU(i.aKT),i.rXU(r.gE),i.rXU(i.SKi),i.rXU(P.X,8))}}static{this.\u0275dir=i.FsC({type:c,selectors:[["","nvHyperLinkGuard",""],["a","href",""],["","innerHTML",""]],standalone:!0})}}return c})()},80362:(Bt,z,s)=>{"use strict";s.d(z,{i4:()=>_});var n=s(6364),l=s(58527),d=s(64409),v=s(80583),S=s(53461),y=s(26875);class O{constructor(r,a,c){this._scrolledIndexChange=new v.B7,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,S.F)()),this._viewport=null,this._itemOffsets=r,this._minBufferPx=a,this._maxBufferPx=c}attach(r){this._viewport=r,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(r,a,c){if(c<a)throw Error("CDK virtual scroll: maxBufferPx must be greater than or equal to minBufferPx");this._itemOffsets=r,this._minBufferPx=a,this._maxBufferPx=c,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(r,a){this._viewport&&this._itemOffsets&&this._itemOffsets.length>=r&&r>=0&&this._viewport.scrollToOffset(this._itemOffsets[r],a)}_updateTotalContentSize(){!this._viewport||!this._itemOffsets||0===this._itemOffsets.length||this._viewport.setTotalContentSize(this._itemOffsets[this._itemOffsets.length-1])}getIndexFromPosition(r){return Math.max(0,(0,y.sortedIndex)(this._itemOffsets,r)-1)}_updateRenderedRange(){if(!this._viewport||!this._itemOffsets||0===this._itemOffsets.length)return;const r=this._viewport.measureScrollOffset(),a=this.getIndexFromPosition(r),c=this._viewport.getRenderedRange(),m={start:c.start,end:c.end},M=this._viewport.getViewportSize(),D=this._viewport.getDataLength();m.start>this._itemOffsets.length&&(m.start=0,m.end=this._itemOffsets.length-1);const I=r-this._itemOffsets[m.start];if(I<this._minBufferPx&&0!==m.start){const U=this.getIndexFromPosition(this._maxBufferPx-I);m.start=Math.max(0,m.start-U),m.end=Math.min(D,Math.ceil(this.getIndexFromPosition(r+M+this._minBufferPx)))}else{const U=this._itemOffsets[m.end]-(r+M);if(U<this._minBufferPx&&m.end!==D){const V=this.getIndexFromPosition(this._maxBufferPx-U);V>0&&(m.end=Math.min(D,m.end+V),m.start=Math.max(0,Math.floor(this.getIndexFromPosition(this._itemOffsets[a]-this._minBufferPx))))}}this._viewport.setRenderedRange(m),this._viewport.setRenderedContentOffset(this._itemOffsets[m.start]),this._scrolledIndexChange.next(Math.floor(a))}}function P(i){return i._scrollStrategy}let _=(()=>{class i{constructor(){this._itemOffsets=[0],this._minBufferPx=200,this._maxBufferPx=300,this._scrollStrategy=new O(this.itemOffsets,this.minBufferPx,this.maxBufferPx)}get itemOffsets(){return this._itemOffsets}set itemOffsets(a){this._itemOffsets=a}get minBufferPx(){return this._minBufferPx}set minBufferPx(a){this._minBufferPx=(0,n.OE)(a)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(a){this._maxBufferPx=(0,n.OE)(a)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemOffsets,this.minBufferPx,this.maxBufferPx)}static{this.\u0275fac=function(c){return new(c||i)}}static{this.\u0275dir=l.FsC({type:i,selectors:[["cdk-virtual-scroll-viewport","itemOffsets",""]],inputs:{itemOffsets:"itemOffsets",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},standalone:!0,features:[l.Jv_([{provide:d.Mr,useFactory:P,deps:[(0,l.Rfq)(()=>i)]}]),l.OA$]})}}return i})()},79858:(Bt,z,s)=>{"use strict";s.d(z,{x:()=>E});var n=s(26513),l=s(80583),d=s(892),v=s(27594),S=s(16229),y=s(36877),f=s(8619),O=s(4208),P=s(73318),_=s(81834),i=s(87781),r=s(6364),a=s(11013),c=s(34842),m=s(58527),M=s(94222),D=s(21684),I=s(31308),U=s(99469),V=s(64409);let E=(()=>{class g{get enableLongPressScroll(){return this._enableLongPressScroll}set enableLongPressScroll(B){this._enableLongPressScroll=(0,r.he)(B)}get repositionFocus(){return this._repositionFocus}set repositionFocus(B){this._repositionFocus=(0,r.he)(B)}get fixFocusAtScroller(){return this._fixFocusAtScroller}set fixFocusAtScroller(B){this._fixFocusAtScroller=(0,r.he)(B)}set scrollerElement(B){this._scrollerElement=B}get scrollerElement(){return this._scrollerElement?.isConnected||(this.scrollerElement=this.virtualScrollViewport?this.virtualScrollViewport.getElementRef().nativeElement:(0,c.Bo)(this.elementRef.nativeElement)),this._scrollerElement}constructor(B,X,H,J,re,ie,ve,ue){this.elementRef=B,this.spatialNavigationService=X,this.ngZone=H,this.focusManager=J,this.interactivityChecker=re,this.localeService=ie,this.virtualScrollViewport=ve,this.orientation="horizontal",this._enableLongPressScroll=!0,this._repositionFocus=!1,this._fixFocusAtScroller=!1,this.reachBoundary="remain",this.isScrollingMode=new n.t(!1),this.firstKeydownTime=-1,this.lastKey="",this.destroy$=new l.B7,this.enabled=!1,this.enabled=!!ue?.spatialNavigationConfig?.longPressScrolling}ngAfterViewInit(){!this.enabled||!this.spatialNavigationService.enabled||(this.scrollerElement=this.virtualScrollViewport?this.virtualScrollViewport.getElementRef().nativeElement:(0,c.Bo)(this.elementRef.nativeElement),this.ngZone.runOutsideAngular(()=>{(0,y.R)(this.elementRef.nativeElement,"keydown",{capture:!0}).pipe((0,f.p)(B=>this.enableLongPressScroll&&this.filterKeyEvent(B)),(0,O.Q)(this.destroy$)).subscribe(this.onKeydown.bind(this)),(0,y.R)(this.elementRef.nativeElement,"keyup").pipe((0,f.p)(B=>this.enableLongPressScroll&&this.filterKeyEvent(B)),(0,O.Q)(this.destroy$)).subscribe(this.onKeyup.bind(this)),(0,y.R)(this.elementRef.nativeElement,"focusout").pipe((0,f.p)(B=>!this.elementRef.nativeElement.contains(B.relatedTarget))).subscribe(this.clear.bind(this))}))}ngOnDestroy(){this.isScrollingMode.next(!1),this.isScrollingMode.complete(),this.destroy$.next(),this.destroy$.complete()}shouldEnterScrollerMode(B){return!this.isScrollingMode.getValue()&&B.key===this.lastKey&&(new Date).getTime()-this.firstKeydownTime>400&&this.scrollerElement?.isConnected&&!this.isBoundary((0,P.G2)(B.key))}fixFocusAtScrollerElement(){this.fixFocusAtScroller&&(this.scrollerElement?.isConnected||(this.isScrollerFocusable=this.interactivityChecker.isFocusable(this.scrollerElement)),this.isScrollerFocusable||this.scrollerElement.setAttribute("tabindex","-1"),this.scrollerElement.focus())}restoreScrollerElement(){this.fixFocusAtScroller&&(this.isScrollerFocusable||this.scrollerElement.removeAttribute("tabindex"))}onKeydown(B){this.lastKey!==B.key&&(this.firstKeydownTime=(new Date).getTime(),this.lastKey=B.key);const X=(0,P.G2)(B.key);this.shouldEnterScrollerMode(B)&&(this.isScrollingMode.next(!0),this.lastFocusPoint=document.activeElement.getBoundingClientRect(),this.fixFocusAtScrollerElement(),this.doScrolling(X)),this.isScrollingMode.getValue()&&(B.preventDefault(),B.stopPropagation())}clear(){this.firstKeydownTime=-1,this.lastKey=""}onKeyup(){this.clear()}onScrollerKeydown(B){B.preventDefault(),B.stopPropagation()}onScrollerKeyUp(B){if(this.isScrollingMode.getValue()){const X=(0,P.G2)(B.key);setTimeout(()=>{document.activeElement===this.scrollerElement&&this.repositionFocusFrom((0,P.On)(X)),this.leaveScrollingMode()})}}getStartingPoint(B){let X=this.lastFocusPoint.left+this.lastFocusPoint.width/2,H=this.lastFocusPoint.top+this.lastFocusPoint.height/2;const J=this.scrollerElement.getBoundingClientRect();switch(B){case"up":H=J.y;break;case"down":H=J.bottom;break;case"left":X=J.x;break;case"right":X=J.right}return{x:X,y:H}}repositionFocusFrom(B){if(!this.repositionFocus)return;const{x:X,y:H}=this.getStartingPoint(B);this.spatialNavigationService.setStartingPointAt(X,H);const J=this.scrollerElement.spatialNavigationSearch(B);J&&this.focusManager.navigateTo(J,B,{preventScroll:!0}),this.lastFocusPoint=void 0}filterKeyEvent(B){return"horizontal"===this.orientation?B.key===_.F0.ArrowLeft||B.key===_.F0.ArrowRight:"vertical"===this.orientation&&(B.key===_.F0.ArrowUp||B.key===_.F0.ArrowDown)}isBoundary(B){switch(B){case"up":return 0===this.scrollerElement.scrollTop;case"down":return this.scrollerElement.scrollTop+this.scrollerElement.clientHeight>=this.scrollerElement.scrollHeight;case"left":return this.localeService.isRTLLayoutEnabled?this.scrollerElement.scrollLeft-this.scrollerElement.clientWidth<=-this.scrollerElement.scrollWidth:0===this.scrollerElement.scrollLeft;case"right":return this.localeService.isRTLLayoutEnabled?0===this.scrollerElement.scrollLeft:this.scrollerElement.scrollLeft+this.scrollerElement.clientWidth>=this.scrollerElement.scrollWidth}}doScrolling(B){this.ngZone.runOutsideAngular(()=>{const X=(0,d.Y)(0,v.X).pipe((0,O.Q)((0,S.h)(this.destroy$,this.isScrollingMode.pipe((0,f.p)(H=>!H))))).subscribe(H=>{this.isBoundary(B)?(this.repositionFocusFrom((0,P.On)(B)),"end"===this.reachBoundary&&this.leaveScrollingMode(),X.unsubscribe()):this.scroll(H,B)});(0,y.R)(this.scrollerElement,"keydown",{capture:!0}).pipe((0,O.Q)((0,S.h)(this.destroy$,this.isScrollingMode.pipe((0,f.p)(H=>!H))))).subscribe(this.onScrollerKeydown.bind(this)),(0,y.R)(this.scrollerElement,"keyup").pipe((0,O.Q)((0,S.h)(this.destroy$,this.isScrollingMode.pipe((0,f.p)(H=>!H))))).subscribe(this.onScrollerKeyUp.bind(this))})}scroll(B,X){const J=(B<150?(0,i.p2)(B/150):1)*this.getScrollAmount(X);switch(X){case"up":case"down":this.scrollerElement.scrollTop+=J;break;case"left":case"right":this.scrollerElement.scrollLeft+=J}}getScrollAmount(B){return"up"===B||"left"===B?-64:64}leaveScrollingMode(){this.isScrollingMode.next(!1),this.clear(),this.restoreScrollerElement()}static{this.\u0275fac=function(X){return new(X||g)(m.rXU(m.aKT),m.rXU(M.E),m.rXU(m.SKi),m.rXU(D.c),m.rXU(I.Z7),m.rXU(U.iH),m.rXU(V.d6,8),m.rXU(a.X,8))}}static{this.\u0275dir=m.FsC({type:g,selectors:[["","nvLongPressScroller",""]],inputs:{orientation:"orientation",enableLongPressScroll:"enableLongPressScroll",repositionFocus:"repositionFocus",fixFocusAtScroller:"fixFocusAtScroller",reachBoundary:"reachBoundary"},standalone:!0})}}return g})()},6006:(Bt,z,s)=>{"use strict";s.d(z,{F:()=>S});var n=s(6364),l=s(11013),d=s(58527),v=s(44186);let S=(()=>{class y{get disabled(){return this.tooltip.disabled}set disabled(O){this.tooltip.disabled=(0,n.he)(O)||this.shouldDisableTooltip}constructor(O,P){this.tooltip=P,this.shouldDisableTooltip=!1,this.shouldDisableTooltip=!!O?.mobileMode||!!O?.tvMode}ngOnInit(){this.shouldDisableTooltip&&(this.tooltip.disabled=!0)}static{this.\u0275fac=function(P){return new(P||y)(d.rXU(l.X,8),d.rXU(v.oV))}}static{this.\u0275dir=d.FsC({type:y,selectors:[["","matTooltip","","nvTooltipDisabled",""],["","matTooltip","","nvDisableTooltipIfNeeded","",3,"matTooltipDisabled",""]],inputs:{disabled:[d.Mj6.None,"nvTooltipDisabled","disabled"]},standalone:!0})}}return y})()},13906:(Bt,z,s)=>{"use strict";s.d(z,{Z:()=>d});var n=s(6364),l=s(58527);let d=(()=>{class v{get enabled(){return this._enabled}set enabled(y){this._enabled=(0,n.he)(y)}constructor(y,f){this.el=y,this.renderer=f}setBackgroundStyles(){this.renderer.setStyle(this.el.nativeElement,"background",`url("${this.imageUrl}") 0% 0% / cover no-repeat black`)}removeBackgroundStyles(){["background","background-color","background-repeat","background-size"].forEach(y=>{this.renderer.removeStyle(this.el.nativeElement,y)})}ngOnChanges(y){y.imageUrl?.currentValue&&y.imageUrl?.currentValue!==y.imageUrl?.previousValue&&this.enabled&&this.setBackgroundStyles(),(!y.imageUrl?.currentValue||!this.enabled)&&this.removeBackgroundStyles()}static{this.\u0275fac=function(f){return new(f||v)(l.rXU(l.aKT),l.rXU(l.sFG))}}static{this.\u0275dir=l.FsC({type:v,selectors:[["","nvHigBackgroundImageOverlay",""]],inputs:{imageUrl:"imageUrl",enabled:[l.Mj6.None,"nvHigBackgroundImageOverlay","enabled"]},standalone:!0,features:[l.OA$]})}}return v})()},54676:(Bt,z,s)=>{"use strict";s.d(z,{Sb:()=>L,rs:()=>V,sd:()=>R,tG:()=>I,v4:()=>g});var n=s(80583),l=s(36877),d=s(17053),v=s(4208),S=s(8619),y=s(81834),f=s(56785),O=s(68868),P=s(58527),_=s(49678),i=s(62141),r=s(4418),a=s(12949),c=s(94222),m=s(13186),M=s(26945),D=s(68477);let I=(()=>{class B{constructor(H,J,re,ie,ve,ue){this.el=H,this.radio=J,this.slide=re,this.check=ie,this.inputModalityService=ve,this.config=ue}keydownEvent(H){const J=this.radio?._inputElement?.nativeElement??this.slide?._inputElement.nativeElement??this.check?._inputElement.nativeElement??this.el.nativeElement;if(H.target===J&&("Enter"===H.key||" "===H.key)){if(this.radio)this.radio._onInputInteraction(H);else if(this.slide)this.slide._inputElement.nativeElement.checked=!this.slide.checked,this.slide._onChangeEvent(H);else if(this.check)this.check._onInputClick();else{const re=this.inputModalityService.lastInputModality===O.M.Gamepad;this.config?.customClickHandler&&re?this.config.customClickHandler(this.el.nativeElement):J.click()}H.preventDefault(),H.stopPropagation()}}static{this.\u0275fac=function(J){return new(J||B)(P.rXU(P.aKT),P.rXU(_._g,8),P.rXU(i.P2,8),P.rXU(r.So,8),P.rXU(O.p),P.rXU(f.Xv,8))}}static{this.\u0275dir=P.FsC({type:B,selectors:[["","nvAddKeyboardActivate",""],["mat-slide-toggle"],["mat-radio-button"],["mat-checkbox"],["a",3,"href",""]],hostBindings:function(J,re){1&J&&P.bIt("keydown",function(ve){return re.keydownEvent(ve)})},standalone:!0})}}return B})(),V=(()=>{class B{constructor(H,J){this.select=H,this.focusManager=J}ngAfterViewInit(){this.select&&setTimeout(()=>{const H=this.select._handleKeydown.bind(this.select);this.select._handleKeydown=J=>{if(this.select._elementRef.nativeElement.classList.contains("cdk-keyboard-focused")||this.focusManager.focusViaLastOrigin(this.select._elementRef.nativeElement),(0,y.Nw)(J)&&this.select.panelOpen)J.stopPropagation(),this.select.close();else if("ArrowLeft"!==J.key&&"ArrowRight"!==J.key||!this.select.panelOpen){if(this.select.panelOpen||"Enter"===J.key||" "===J.key){if(this.select.panelOpen&&"Enter"===J.key&&this.select._keyManager.activeItem._getHostElement().hasAttribute("nvMapOptionNoSelect"))return void this.select._keyManager.activeItem._getHostElement().click();H(J)}}else J.stopPropagation(),J.preventDefault()}},150)}static{this.\u0275fac=function(J){return new(J||B)(P.rXU(a.VO),P.rXU(f.c_))}}static{this.\u0275dir=P.FsC({type:B,selectors:[["mat-select","nvMatSelectKeyboardFixup",""]],standalone:!0})}}return B})(),L=(()=>{class B{constructor(H){this.slider=H}ngAfterViewInit(){this.slider&&setTimeout(()=>{const H=this.slider._onKeydown.bind(this.slider);this.slider._onKeydown=J=>{"ArrowUp"!==J.key&&"ArrowDown"!==J.key&&H(J)}},150)}static{this.\u0275fac=function(J){return new(J||B)(P.rXU(m.N$))}}static{this.\u0275dir=P.FsC({type:B,selectors:[["mat-slider","nvMatSliderKeyboardFixup",""]],standalone:!0})}}return B})(),g=(()=>{class B{constructor(H){this.panelHeader=H}ngAfterViewInit(){this.panelHeader&&setTimeout(()=>{const H=this.panelHeader._keydown.bind(this.panelHeader);this.panelHeader._keydown=J=>{"ArrowUp"!==J.key&&"ArrowDown"!==J.key&&"ArrowLeft"!==J.key&&"ArrowRight"!==J.key&&H(J)}},150)}static{this.\u0275fac=function(J){return new(J||B)(P.rXU(M.Z2))}}static{this.\u0275dir=P.FsC({type:B,selectors:[["mat-expansion-panel-header","nvMatExpansionPanelHeaderKeyboardFixup",""]],standalone:!0})}}return B})(),R=(()=>{class B{constructor(H,J,re){this.tabGroup=H,this.ngZone=J,this.spatialNavigationService=re,this.destroy$=new n.B7}ngAfterViewInit(){this.spatialNavigationService.enabled&&this.ngZone.runOutsideAngular(()=>{this.tabGroup?._elementRef?.nativeElement&&(this.updateAllTabIndex(),this.observeTabIndexChanged$().pipe((0,v.Q)(this.destroy$)).subscribe(H=>{const J=H.target;"-1"===J.getAttribute("tabindex")&&this.updateTabIndex(J)}),(0,l.R)(this.tabGroup._elementRef.nativeElement,"keydown",{capture:!0}).pipe((0,S.p)(H=>"ArrowDown"===H.key||"ArrowUp"===H.key||"ArrowRight"===H.key||"ArrowLeft"===H.key),(0,v.Q)(this.destroy$)).subscribe(H=>{switch(H.stopPropagation(),H.key){case"ArrowDown":this.spatialNavigationService.navigate("down");break;case"ArrowUp":this.spatialNavigationService.navigate("up");break;case"ArrowLeft":this.spatialNavigationService.navigate("left");break;case"ArrowRight":this.spatialNavigationService.navigate("right")}}))})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateAllTabIndex(){this.tabGroup._elementRef.nativeElement.querySelectorAll("[tabindex='-1']").forEach(this.updateTabIndex)}observeTabIndexChanged$(){return new d.c(H=>{const J=new MutationObserver(re=>{re.forEach(ie=>{H.next(ie)})});return J.observe(this.tabGroup._elementRef.nativeElement,{attributes:!0,subtree:!0,attributeFilter:["tabindex"]}),()=>{J.disconnect()}})}updateTabIndex(H){H.setAttribute("tabindex","0")}static{this.\u0275fac=function(J){return new(J||B)(P.rXU(D.T8),P.rXU(P.SKi),P.rXU(c.E))}}static{this.\u0275dir=P.FsC({type:B,selectors:[["mat-tab-group","nvMatTabGroupFixUp",""]],standalone:!0})}}return B})()},98504:(Bt,z,s)=>{"use strict";s.d(z,{f3:()=>_,nM:()=>i,tH:()=>a});var n=s(4208),l=s(80583),d=s(58527),v=s(49678),S=s(94222),y=s(31308),f=s(44296),O=s(42884),P=s(68868);let _=(()=>{class c{constructor(M,D){this.radio=M,this.spatialNavigationService=D}ngAfterViewInit(){if(this.spatialNavigationService.enabled&&this.radio._elementRef.nativeElement){const M=this.radio._inputElement.nativeElement.setAttribute.bind(this.radio._inputElement.nativeElement);this.radio._inputElement.nativeElement.setAttribute=(D,I)=>{M(D,"tabindex"===D?0:I)}}}static{this.\u0275fac=function(D){return new(D||c)(d.rXU(v._g),d.rXU(S.E))}}static{this.\u0275dir=d.FsC({type:c,selectors:[["mat-radio-button","nvMatRadioSpatialNavigationFixup",""]],standalone:!0})}}return c})(),i=(()=>{class c{constructor(M,D){this.elementRef=M,this.focusMonitor=D}ngOnInit(){this.focusMonitor.monitor(this.elementRef.nativeElement,!0)}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef.nativeElement)}static{this.\u0275fac=function(D){return new(D||c)(d.rXU(d.aKT),d.rXU(y.FN))}}static{this.\u0275dir=d.FsC({type:c,selectors:[["mat-checkbox"]],standalone:!0})}}return c})(),a=(()=>{class c{constructor(M,D,I,U){this.matMenuTrigger=M,this.spatialNavigationService=D,this.nvFocusTrapFactory=I,this.inputModality=U,this.destroyed$=new l.B7}ngAfterViewInit(){this.spatialNavigationService.enabled&&(this.matMenuTrigger.menuOpened.pipe((0,n.Q)(this.destroyed$)).subscribe(()=>{const M=document.getElementById(this.matMenuTrigger.menu.panelId);this.focusTrap=this.nvFocusTrapFactory.create(M.parentElement),this.focusTrap.attach(),this.matMenuTrigger.menu.focusFirstItem(this.inputModality.lastFocusOrigin||"keyboard")}),this.matMenuTrigger.menuClosed.pipe((0,n.Q)(this.destroyed$)).subscribe(()=>{this.focusTrap?.detach()}))}ngOnDestroy(){this.focusTrap?.detach(),this.destroyed$.next(),this.destroyed$.complete()}static{this.\u0275fac=function(D){return new(D||c)(d.rXU(f.fS),d.rXU(S.E),d.rXU(O.O),d.rXU(P.p))}}static{this.\u0275dir=d.FsC({type:c,selectors:[["","nvMatMenuTriggerSpatialNavigationFixup",""],["","matMenuTriggerFor",""]],standalone:!0})}}return c})()},60990:(Bt,z,s)=>{"use strict";s.d(z,{r:()=>d});var n=s(58527),l=s(13090);let d=(()=>{class v{constructor(y){this.offDeviceLinkService=y}onClick(y){const f=y.target;if(this.offDeviceLinkService.enabled&&f instanceof HTMLAnchorElement&&f.href){const O=this.shortUrl??f.getAttribute("shortUrl")??"";y.preventDefault(),this.offDeviceLinkService.open(f.href,{shortUrl:O})}}static{this.\u0275fac=function(f){return new(f||v)(n.rXU(l.n))}}static{this.\u0275dir=n.FsC({type:v,selectors:[["","nvOffDeviceLink",""],["a","href",""],["","innerHTML",""]],hostBindings:function(f,O){1&f&&n.bIt("click",function(_){return O.onClick(_)})},inputs:{shortUrl:"shortUrl"},standalone:!0})}}return v})()},46964:(Bt,z,s)=>{"use strict";s.d(z,{q:()=>v});var n=s(80598),l=s(58527),d=s(99469);let v=(()=>{class S{constructor(f,O,P){this.viewcontainerRef=f,this.renderer=O,this.diameter=n.b5,this.spinnerComponentNativeElement=null,this.logger=P.getLogger("nvProgressCircularDirective")}ngOnChanges(f){f&&f.isVisible&&f.isVisible.currentValue!==f.isVisible.previousValue&&(f.isVisible.currentValue?this.createSpinner():this.destroySpinner())}ngOnDestroy(){this.destroySpinner()}createSpinner(){this.spinnerComponentRef=this.viewcontainerRef.createComponent(n.oV),this.spinnerComponentNativeElement=this.spinnerComponentRef.injector.get(n.oV).viewRef.element.nativeElement,this.renderer.appendChild(this.viewcontainerRef.element.nativeElement,this.spinnerComponentNativeElement)}destroySpinner(){this.spinnerComponentNativeElement&&this.renderer.removeChild(this.viewcontainerRef.element.nativeElement,this.spinnerComponentNativeElement),this.spinnerComponentRef&&this.spinnerComponentRef.destroy(),this.spinnerComponentNativeElement=null}static{this.\u0275fac=function(O){return new(O||S)(l.rXU(l.c1b),l.rXU(l.sFG),l.rXU(d.J6))}}static{this.\u0275dir=l.FsC({type:S,selectors:[["","nvProgressCircular",""]],inputs:{isVisible:"isVisible",diameter:"diameter"},standalone:!0,features:[l.OA$]})}}return S})()},2218:(Bt,z,s)=>{"use strict";s.d(z,{$:()=>f,R:()=>y});var n=s(6364),l=s(58527),d=s(94222),v=s(21684),S=s(99469);let y=(()=>{class O{get containFocus(){return this._containFocus}set containFocus(_){this._containFocus=Array.isArray(_)?_.slice():(0,n.he)(_)}get captureFocusForChild(){return this._captureFocusForChild}set captureFocusForChild(_){this._captureFocusForChild=(0,n.he)(_),this.updateTabIndex()}get autoDisableCaptureIfNoChild(){return this._autoDisableCaptureIfNoChild}set autoDisableCaptureIfNoChild(_){this._autoDisableCaptureIfNoChild=(0,n.he)(_)}get enableSmoothScrolling(){return this._enableSmoothScrolling}set enableSmoothScrolling(_){this._enableSmoothScrolling=(0,n.he)(_)}constructor(_,i,r,a,c){this.element=_,this.spatialNavigationService=i,this.focusManager=r,this.ngZone=a,this.navigateFunction="grid",this.navigateAction="auto",this._containFocus=!0,this._captureFocusForChild=!1,this.captureAndTransitFocusPolicy="initial",this._autoDisableCaptureIfNoChild=!1,this._enableSmoothScrolling=!0,this.navBeforeFocus=m=>{if(this.captureFocusForChild){let M=m.target===this.element.nativeElement;if(this.autoDisableCaptureIfNoChild&&!this.spatialNavigationService.isFocusable(this.element.nativeElement)&&(this.updateTabIndex(),M=M||!this.element.nativeElement.contains(document.activeElement)),!M)return;let D=null;if("closest"===this.captureAndTransitFocusPolicy){const I=document.activeElement.contains(this.element.nativeElement)?this.element.nativeElement:document.activeElement;D=this.spatialNavigationService.getClosestChild(I,this.element.nativeElement,m.detail.dir)}else{const I=this.spatialNavigationService.isFocusable.bind(this.spatialNavigationService);D="first"===this.captureAndTransitFocusPolicy?this.focusManager.getFirstFocusableChild(this.element.nativeElement,I):this.focusManager.getInitialFocusable(this.element.nativeElement,I)}if(!D||D===this.element.nativeElement){let I="";D?D===this.element.nativeElement&&(I=`focus is on the container, container=${this.element.nativeElement.tagName}, containerClass=${this.element.nativeElement.className}`):I="target not found",this.logger.info(`possible focus lost. reason=${I}`)}m.preventDefault(),m.stopPropagation(),D&&D!==this.element.nativeElement?this.focusManager.navigateTo(D,m.detail.dir):this.autoDisableCaptureIfNoChild&&(this.updateTabIndex(),this.spatialNavigationService.navigate(m.detail.dir))}},this.navNoTarget=m=>{this.spatialNavigationService.shouldContainFocus(m.detail.dir,this.containFocus)&&m.target===this.element.nativeElement&&m.preventDefault()},this.logger=c.getLogger("SpatialNavigationContainer")}ngAfterContentInit(){this.spatialNavigationService.enabled&&this.spatialNavigationService.setNavigationContainerCssStyles(this.element.nativeElement,this.navigateFunction,this.navigateAction,this.enableSmoothScrolling)}ngAfterViewInit(){this.spatialNavigationService.enabled&&(this.ngZone.runOutsideAngular(()=>{this.element.nativeElement.addEventListener("navbeforefocus",this.navBeforeFocus),this.element.nativeElement.addEventListener("navnotarget",this.navNoTarget)}),this.updateTabIndex())}ngOnDestroy(){this.spatialNavigationService.enabled&&(this.element.nativeElement.removeEventListener("navbeforefocus",this.navBeforeFocus),this.element.nativeElement.removeEventListener("navnotarget",this.navNoTarget))}updateTabIndex(){if(this.spatialNavigationService.enabled&&this.element){const _=this.captureFocusForChild&&this.autoDisableCaptureIfNoChild?!!this.focusManager.getInitialFocusable(this.element.nativeElement,this.spatialNavigationService.isFocusable.bind(this.spatialNavigationService)):this.captureFocusForChild;this.element.nativeElement.tabIndex=_?0:-1}}static{this.\u0275fac=function(i){return new(i||O)(l.rXU(l.aKT),l.rXU(d.E),l.rXU(v.c),l.rXU(l.SKi),l.rXU(S.J6))}}static{this.\u0275dir=l.FsC({type:O,selectors:[["","nvSpatialNavigationContainer",""]],inputs:{navigateFunction:"navigateFunction",navigateAction:"navigateAction",containFocus:"containFocus",captureFocusForChild:"captureFocusForChild",captureAndTransitFocusPolicy:"captureAndTransitFocusPolicy",autoDisableCaptureIfNoChild:"autoDisableCaptureIfNoChild",enableSmoothScrolling:"enableSmoothScrolling"},standalone:!0})}}return O})(),f=(()=>{class O{get enableSmoothScrolling(){return this._enableSmoothScrolling}set enableSmoothScrolling(_){this._enableSmoothScrolling=(0,n.he)(_)}constructor(_,i){this.element=_,this.spatialNavigationService=i,this.navigateFunction="grid",this.navigateAction="auto",this._enableSmoothScrolling=!0}ngAfterContentInit(){this.spatialNavigationService.enabled&&this.spatialNavigationService.setNavigationContainerCssStyles(this.element.nativeElement,this.navigateFunction,this.navigateAction,this.enableSmoothScrolling)}static{this.\u0275fac=function(i){return new(i||O)(l.rXU(l.aKT),l.rXU(d.E))}}static{this.\u0275dir=l.FsC({type:O,selectors:[["","nvSpatialNavigationGroup",""]],inputs:{navigateFunction:"navigateFunction",navigateAction:"navigateAction",enableSmoothScrolling:"enableSmoothScrolling"},standalone:!0})}}return O})()},81247:(Bt,z,s)=>{"use strict";s.d(z,{D:()=>S});var n=s(6364),l=s(58527),d=s(94222),v=s(42884);let S=(()=>{class y{get forceEnable(){return this._forceEnable}set forceEnable(O){this._forceEnable=(0,n.he)(O)}constructor(O,P,_){this.elementRef=O,this.spatialNavigationService=P,this.nvTrapFocusFactory=_,this._forceEnable=!1}ngAfterViewInit(){this.elementRef&&(this.forceEnable||this.spatialNavigationService.enabled)&&(this.focusTrap=this.nvTrapFocusFactory.create(this.elementRef.nativeElement),this.focusTrap.attach())}ngOnDestroy(){this.focusTrap?.isAttached&&this.focusTrap?.detach()}static{this.\u0275fac=function(P){return new(P||y)(l.rXU(l.aKT),l.rXU(d.E),l.rXU(v.O))}}static{this.\u0275dir=l.FsC({type:y,selectors:[["","nvTrapFocus",""]],inputs:{forceEnable:"forceEnable"},standalone:!0})}}return y})()},11013:(Bt,z,s)=>{"use strict";s.d(z,{X:()=>d});const d=new(s(58527).nKC)("NV_HIG_CONFIG")},87781:(Bt,z,s)=>{"use strict";function l(f){return 1-Math.cos(f*Math.PI/2)}function S(f){return f}function y(f){return 1-Math.pow(1-f,3)}s.d(z,{p2:()=>l,p_:()=>y,sn:()=>S})},34842:(Bt,z,s)=>{"use strict";function n(S){return window.__spatialNavigation__?.isScrollContainer(S)??!1}function l(S){if(!S?.isConnected)return null;let y=S;for(;y&&!n(y);)y=y.parentElement;return y}function v(S){return function d(S){return S?.getScrollSnapTarget?.()??S}(S).getBoundingClientRect()}s.d(z,{Bo:()=>l,wT:()=>v})},21684:(Bt,z,s)=>{"use strict";s.d(z,{c:()=>_});var n=s(65706),l=s(73318),d=s(81834),v=s(58527),S=s(99469),y=s(94222),f=s(68868),O=s(31308);let _=(()=>{class i{get currentFocusedElement(){return document.activeElement instanceof HTMLElement?document.activeElement:void 0}constructor(a,c,m,M,D){this.spatialNavigationService=c,this.inputModalityService=m,this.checker=M,this.focusMonitor=D,this.logger=a.getLogger("FocusManager")}canFocusElement(a,c){return!(!a||(a.isConnected?this.currentFocusedElement===a&&a.classList.contains(`.cdk-${c}-focused`)&&(this.logger.warn(`cdk-${c}-focused is existing in ${a.nodeName}.`),1):(this.logger.warn(`${a.nodeName} is not connected to DOM.`),1)))}getFirstFocusableChild(a,c){const m=c??this.checker.isFocusable.bind(this.checker),M=a.children;for(let D=0;D<M.length;D++){const I=M[D];let U=null;if(U=I.nodeType===Node.ELEMENT_NODE&&m(I)?I:this.getFirstFocusableChild(I,c),U)return U}return null}focusChild(a,c,m,M){a&&setTimeout(()=>{const D="initial"===c?this.getInitialFocusable(a,m):this.getFirstFocusableChild(a,m);this.focusViaLastOrigin(D,M)},0)}getInitialFocusable(a,c){const m=c??this.checker.isFocusable.bind(this.checker);let M=a.querySelector("[cdkFocusInitial]");return(!M||!m(M))&&(M=this.getFirstFocusableChild(a,m)),M}focusViaLastOrigin(a,c){this.focusVia(a,this.inputModalityService.lastFocusOrigin??"keyboard",c)}focusVia(a,c,m){this.canFocusElement(a,c)&&(this.spatialNavigationService.enabled&&this.spatialNavigationService.setStartingPoint(null),this.focusMonitor.focusVia(a,c,m))}navigateTo(a,c,m){!a||!(0,l.UH)(a,"navbeforefocus",c)||this.focusViaLastOrigin(a,m)}getFocusRestorationTargetAt(a,c){const m=(0,d.EL)(a,c);if(!m||this.checker.isFocusable(m))return m;if(!Element.prototype.spatialNavigationSearch||!Element.prototype.focusableAreas)return;const D=m.getSpatialNavigationContainer().focusableAreas({mode:"visible"});let I,U=Number.POSITIVE_INFINITY;return D.forEach(V=>{if(!(V instanceof HTMLElement)||window.__spatialNavigation__.isContainer(V)&&D.some(g=>V.contains(g)))return;const T=V.getBoundingClientRect(),E=function P(i,r,a,c){return Math.abs(i-a)+Math.abs(r-c)}(a,c,(T.left+T.right)/2,(T.top+T.bottom)/2);E<U&&(U=E,I=V)}),I}createRestoreFocusFunction(a){if(a===document.body)return()=>{this.logger.warn("restoreTarget cannot be BODY. The focus might have already been lost before focus restoration")};const c=a.getBoundingClientRect();return()=>{if(a.isConnected&&this.checker.isFocusable(a))this.focusViaLastOrigin(a);else{const D=this.getFocusRestorationTargetAt((c.left+c.right)/2,(c.top+c.bottom)/2);D?this.focusViaLastOrigin(D):this.logger.warn("Potential focus loss (failed to restore focus) - target cannot be focused and no other focusable element is found")}}}restoreFocusAfterClosed(a,c){const m=c?.restoreFocusTarget??this.currentFocusedElement,M=a();if(m){const D=this.createRestoreFocusFunction(m);let I;if(M?.afterClosed)I=M.afterClosed();else{if(!M?.afterDismissed)throw new Error("not a supported type.");I=M.afterDismissed()}if(!I)throw new Error("afterClosed$ is not assigned.");I.pipe((0,n.s)(1)).subscribe(()=>{D()})}return M}static{this.\u0275fac=function(c){return new(c||i)(v.KVO(S.J6),v.KVO(y.E),v.KVO(f.p),v.KVO(O.Z7),v.KVO(O.FN))}}static{this.\u0275prov=v.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})()},42884:(Bt,z,s)=>{"use strict";s.d(z,{O:()=>S});var n=s(58527),l=s(21684),d=s(31308),v=s(73318);let S=(()=>{class O{constructor(_,i,r,a,c){this.focusManager=_,this.focusMonitor=i,this.ngZone=r,this.spatialNavigationService=a,this.nvFocusTrapManager=c}create(_){return new f(_,this.nvFocusTrapManager,this.focusManager,this.focusMonitor,this.ngZone,this.spatialNavigationService)}static{this.\u0275fac=function(i){return new(i||O)(n.KVO(l.c),n.KVO(d.FN),n.KVO(n.SKi),n.KVO(v.ED),n.KVO(y))}}static{this.\u0275prov=n.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})(),y=(()=>{class O{constructor(){this.focusTraps=[]}get topFocusTrap(){const _=this.focusTraps,i=_.length;return i>0?_[i-1]:void 0}register(_){if(!_)return;const i=this.focusTraps.indexOf(_);i>=0&&(this.focusTraps=this.focusTraps.splice(i,1)),this.topFocusTrap?.disable(),_.enable(),this.focusTraps.push(_)}remove(_){if(!_)return;const i=this.focusTraps.indexOf(_);-1!==i&&(this.focusTraps.splice(i,1),_.isAttached&&_.disable(),this.topFocusTrap?.enable())}static{this.\u0275fac=function(i){return new(i||O)}}static{this.\u0275prov=n.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})();class f{get isAttached(){return this._isAttached}constructor(P,_,i,r,a,c){this.container=P,this.nvFocusTrapManager=_,this.focusManager=i,this.focusMonitor=r,this.ngZone=a,this.spatialNavigationService=c,this._isAttached=!1,this.containerMutated=!1}attach(){this.nvFocusTrapManager.register(this)}detach(){this.nvFocusTrapManager.remove(this)}enable(){return!!this._isAttached||(this.spatialNavigationService.isFocusable(this.container)||(this.containerOldTabIndexVal=this.container.tabIndex,this.container.tabIndex=0,this.containerMutated=!0),this.container.contains(document.activeElement)||this.focusManager.focusViaLastOrigin(this.container),this.monitorFocusOn(this.container,document.activeElement),this._isAttached=!0,this._isAttached)}disable(){if(!this._isAttached)throw new Error("invoked detach when the focus trap is not attached");this.containerMutated&&(this.container.tabIndex=this.containerOldTabIndexVal,this.containerMutated=void 0,this.containerOldTabIndexVal=void 0),this.monitorSubscription?.unsubscribe(),this.monitorSubscription=void 0,this._isAttached=!1}monitorFocusOn(P,_){let i=_;this.ngZone.runOutsideAngular(()=>{this.monitorSubscription=this.focusMonitor.monitor(P,!0).subscribe(r=>{r?i=this.focusManager.currentFocusedElement:setTimeout(()=>{if(!this._isAttached)return;const a=this.focusManager.currentFocusedElement!==document.body||i?.isConnected?i:P;this.focusManager.focusViaLastOrigin(a)})})})}}},13090:(Bt,z,s)=>{"use strict";s.d(z,{n:()=>a});var n=s(99564),l=s(29824),d=s(11013),v=s(12532),S=s(80583),y=s(16229),f=s(10174),O=s(99469),P=s(58527),_=s(16490),i=s(26537),r=s(21684);let a=(()=>{class c{get isModalSheetOpened(){return this._isModalSheetOpened}get enabled(){return this._enabled}get isModalSheetOpened$(){return this.isModalSheetOpenSubject?this.isModalSheetOpenSubject.asObservable():v.w}constructor(M,D,I,U){this.matBottomSheet=D,this.matDialog=I,this.focusManager=U,this._isModalSheetOpened=!1,this._enabled=!1,this.config=M?.offDeviceLinkConfig,this.tvMode=!!M?.tvMode}enable(){window.open=(M,D,I,U)=>(M&&this.open(M),null),this._enabled=!0,this.isModalSheetOpenSubject||(this.isModalSheetOpenSubject=new S.B7)}open(M,D){if(!this.config)throw new Error("Off device link configuration is missing!");if(this._enabled){let I=!1;if(this.matDialog.openDialogs.length>0&&this.matDialog.openDialogs[this.matDialog.openDialogs.length-1].componentInstance instanceof l.L&&(I=!0),I){const U=this.focusManager.restoreFocusAfterClosed(()=>l.L.open(this.matDialog,{data:{headerText:{text:D?.shortUrl},bodyText:{text:D?.shortUrlDescription??this.config.title},primaryButton:{text:this.config.primaryButtonText},image:{url:M},threeQuarterSheetData:D?.threeQuarterSheetData},autoFocus:!1}));U.componentInstance.primaryButtonClick.subscribe(()=>{U.close()}),(0,y.h)(U.afterOpened().pipe((0,f.u)(!0)),U.afterClosed().pipe((0,f.u)(!1))).subscribe(V=>{this._isModalSheetOpened=V,this.isModalSheetOpenSubject.next(V)})}else{const U=this.focusManager.restoreFocusAfterClosed(()=>n.G.open(this.matBottomSheet,{data:{headerText:{text:this.config.title},bodyText:D?.shortUrl?{text:D?.shortUrl}:void 0,primaryButton:{text:this.config.primaryButtonText},link:{url:M,text:D?.shortUrl}}},this.tvMode));U.instance.primaryButtonClick.subscribe(()=>{U.dismiss()}),(0,y.h)(U.afterOpened().pipe((0,f.u)(!0)),U.afterDismissed().pipe((0,f.u)(!1))).subscribe(V=>{this._isModalSheetOpened=V,this.isModalSheetOpenSubject.next(V)})}return!0}{const I=window.open(M,"_blank");return!!O.zk.isCefPlatform()||null!==I}}static{this.\u0275fac=function(D){return new(D||c)(P.KVO(d.X,8),P.KVO(_.VK),P.KVO(i.bZ),P.KVO(r.c))}}static{this.\u0275prov=P.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})()},73318:(Bt,z,s)=>{"use strict";s.d(z,{ED:()=>l.E,G2:()=>n.G2,On:()=>n.On,UH:()=>n.UH,o3:()=>n.o3});var n=s(66221),l=s(94222)},94222:(Bt,z,s)=>{"use strict";s.d(z,{E:()=>a});var n=s(17053),l=s(63997),d=s(16229),v=s(36877),S=s(43848),y=s(75707),f=s(11013),O=s(66221),P=s(58527),_=s(68868),i=s(99469);let r=(()=>{class c{constructor(M,D,I,U){this.ngZone=M,this.inputModalityService=U,this.maxLength=0,this.focusIn=V=>{const T=this.queue.length>0&&this.queue[this.queue.length-1].fl,N={fo:null,fi:this.buildFocusEventData(V),fl:!1};V.target!==document.activeElement&&(N.ae=this.buildElementData(document.activeElement)),this.enqueue(N),T&&this.logger.info("Focus regained. Focus on: ",JSON.stringify(N.fi))},this.focusOut=V=>{const T=this.buildFocusEventData(V);let N;0===this.queue.length||null!==this.queue[this.queue.length-1].fo?(N={fo:T,fl:this.shouldCheckFocusLoss(V.target),fi:null},this.enqueue(N)):(N=this.queue[this.queue.length-1],N.fo=T,N.fl=this.shouldCheckFocusLoss(V.target)&&(null===V.relatedTarget||!V.relatedTarget?.isConnected)),N.fl&&this.logger.warn("Potential focus loss. Focus history: ",JSON.stringify(this.queue))},this.logger=D.getLogger("FocusHistoryQueueService"),this.window=I.window}enqueue(M){this.queue.push(M)>this.maxLength&&this.queue.shift()}buildElementData(M,D=0){if(!M)return null;const I={nn:M.nodeName?.toUpperCase?.()};return"BUTTON"===I.nn?I.it=M.textContent||M.querySelector("mat-icon[data-mat-icon-name]")?.getAttribute("data-mat-icon-name"):!M.textContent||"A"!==I.nn&&"MAT-SELECT"!==I.nn?M.textContent&&("DIV"===I.nn||"MAT-DIALOG-CONTAINER"===I.nn)&&(I.it=M.textContent.substring(0,50)):I.it=M.textContent,I.it||(I.cn=M.className,0===D&&(I.sc=this.buildElementData(M.getSpatialNavigationContainer(),D+1))),I}buildFocusEventData(M){return{ts:M.timeStamp,t:this.buildElementData(M.target),rt:this.buildElementData(M.relatedTarget),i:this.lastInputType}}shouldCheckFocusLoss(M){return this.lastInputType!==_.M.Touch&&this.lastInputType!==_.M.Mouse&&!M?.hasAttribute("data-focus-loss-exempt")}start(M){this.logger.info("Starting Focus History Queue Service"),this.lastInputType=null,this.maxLength=M,this.queue=[],this.ngZone.runOutsideAngular(()=>{this.window.addEventListener("focusin",this.focusIn),this.window.addEventListener("focusout",this.focusOut),this.inputModalitySubscription=this.inputModalityService.inputModalityChanged$.subscribe(D=>{this.lastInputType=D})})}stop(){this.logger.info("Stopping Focus History Queue Service"),this.ngZone.runOutsideAngular(()=>{this.window.removeEventListener("focusin",this.focusIn),this.window.removeEventListener("focusout",this.focusOut),this.inputModalitySubscription?.unsubscribe()})}static{this.\u0275fac=function(D){return new(D||c)(P.KVO(P.SKi),P.KVO(i.J6),P.KVO(i.s7),P.KVO(_.p))}}static{this.\u0275prov=P.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})(),a=(()=>{class c{get enabled(){return this._enabled}constructor(M,D,I){this.focusHistoryQueueService=D,this.logginService=I,this.spatialNavigation=void 0,this._navigate=void 0,this._enabled=!1,this.config=M?.spatialNavigationConfig??{},this.spatialNavigation=window.__spatialNavigation__,this.logger=this.logginService.getLogger("SpatialNavigationService"),this.spatialNavigation&&(this._navigate=window.navigate,this.spatialNavigation.keyMode="NONE"),this.logger.info(`Constructor: this.spatialNavigation=${!!this.spatialNavigation}, window.__spatialNavigation__=${!!window.__spatialNavigation__}`)}setNavigationContainerCssStyles(M,D,I,U=!0){this.enabled&&(M.setAttribute("data-spatial-navigation-contain","contain"),M.setAttribute("data-spatial-navigation-action",I),M.style.setProperty("--spatial-navigation-function",D),"focus"===I&&U&&M.style.setProperty("scroll-behavior","smooth"))}enable(M){this._enabled=M,this.activated=M,this.enabled?this.config?.focusHistoryQueueSize>0&&this.focusHistoryQueueService.start(this.config.focusHistoryQueueSize):this.config?.focusHistoryQueueSize>0&&this.focusHistoryQueueService.stop()}get activated(){return!(!this.spatialNavigation||"NONE"===this.spatialNavigation.keyMode)}set activated(M){!this.enabled||!this.spatialNavigation||(this.spatialNavigation.keyMode=M?"ARROW":"NONE")}setStartingPoint(M){if(!this.enabled||!this.spatialNavigation)return;if(!M)return void this.spatialNavigation.setStartingPoint(null);const D=M.getBoundingClientRect();this.spatialNavigation.setStartingPoint(D.x+D.width/2,D.y+D.height/2)}setStartingPointAt(M,D){!this.enabled||!this.spatialNavigation||this.spatialNavigation.setStartingPoint(M,D)}getClosestChild(M,D,I,U){const V=D.focusableAreas({mode:"all"});let T=this.getClosestChildInternal(M,D,I,V);if(!T&&U?.length>0)for(const N of U)if(T=this.getClosestChildInternal(M,D,N,V),T)break;return T}getClosestChildInternal(M,D,I,U){return M.spatialNavigationSearch(I,{container:D,candidates:U})}isFullyInViewport(M){return new n.c(D=>{const I=new IntersectionObserver(U=>{const V=U.filter(T=>T.intersectionRatio<1)?.[0];D.next(!V)});return I.observe(M),function(){I.disconnect()}})}onClick(M){return(0,l.v)(()=>(M instanceof HTMLAnchorElement&&(M.tabIndex=0),(0,d.h)((0,v.R)(M,"click"),(0,v.R)(M,"keydown")).pipe((0,y.ZZ)(D=>D instanceof MouseEvent||"Enter"===D.key||" "===D.key?(0,S.of)(D):(0,S.of)(void 0)))))}isDefaultFocusRequired(){return this.enabled&&!!this.config.isDefaultFocusRequired}navigate(M){this._navigate?.(M)}isFocusable(M){if(!this.spatialNavigation||!this.spatialNavigation.isFocusable){const D=window.__spatialNavigation__;this.logger.info(`this.spatialNavigation=${!!this.spatialNavigation}, this.spatialNavigation.isFocusable=${!!this.spatialNavigation.isFocusable}`),this.logger.info(`window.__spatialNavigation__=${!!D}, window.__spatialNavigation__.isFocusable=${!!D.isFocusable}`),this.logger.info(`this.spatialNavigation===window.__spatialNavigation__ ? ${this.spatialNavigation===D}`)}return this.spatialNavigation.isFocusable(M)}findNextTarget(M,D,I=document.body){let U,V;const T=M.getBoundingClientRect();return(0,O.o3)(D)?(U="left"===D?T.left-1:T.right+1,V=(T.top+T.bottom)/2):(U=(T.left+T.right)/2,V="up"===D?T.top-1:T.bottom+1),this.setStartingPointAt(U,V),this.getClosestChild(document.body,I,D)}shouldContainFocus(M,D){return Array.isArray(D)?D.includes(M):D}static{this.\u0275fac=function(D){return new(D||c)(P.KVO(f.X,8),P.KVO(r),P.KVO(i.J6))}}static{this.\u0275prov=P.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})()},66221:(Bt,z,s)=>{"use strict";function l(P,_,i){const r=new CustomEvent(_,{bubbles:!0,cancelable:!0,detail:{dir:i}});return P.dispatchEvent(r)}function d(P){switch(P){case"ArrowUp":return"up";case"ArrowDown":return"down";case"ArrowLeft":return"left";case"ArrowRight":return"right";default:throw new Error(`${P} is not a valid navigation key value`)}}function S(P){switch(P){case"up":return"down";case"down":return"up";case"left":return"right";case"right":return"left"}}function y(P){return"left"===P||"right"===P}s.d(z,{G2:()=>d,On:()=>S,UH:()=>l,o3:()=>y}),s(81834)},6360:(Bt,z,s)=>{"use strict";s.d(z,{gE:()=>M,HK:()=>n});var n=function(D){return D[D.Link=0]="Link",D[D.Share=1]="Share",D[D.Input=2]="Input",D[D.PlayMedia=3]="PlayMedia",D}(n||{});const l=[{object:Navigator.prototype,methodName:"share",type:n.Share,returnsPromise:!0},{object:window,methodName:"open",type:n.Link},{object:Element.prototype,methodName:"requestFullscreen",type:n.PlayMedia,returnsPromise:!0},{object:Element.prototype,methodName:"webkitRequestFullscreen",type:n.PlayMedia,returnsPromise:!0},{object:HTMLMediaElement.prototype,methodName:"play",type:n.PlayMedia,returnsPromise:!0}];var d=s(11013),v=s(10174),S=s(65706),y=s(91384),f=s(14714),O=s(81834),P=s(16229),_=s(12532),i=s(59859),r=s(58527),a=s(99469),c=s(65597),m=s(96542);let M=(()=>{class D{get enabled(){return this._enabled}set enabled(U){this._enabled=U,this.logger.info(`Set UserActivationGuardService enabled: ${U}`)}constructor(U,V,T,N){this.snackbarService=V,this.translateService=T,this._enabled=!1,this.guardedTypes=new Map,this.patchedTypes=[],this.snackBarOpened=!1,this.storedOriginalImplementation=new Map,this.logger=U.getLogger("UserActivationGuard"),this.defaultWarningMessage=N?.userActivationGuardConfig?.buttonWarningMessage,N?.userActivationGuardConfig&&this.logger.info(`UserActivationGuardConfig by HIG injection: ${JSON.stringify(N.userActivationGuardConfig)}`),this.isEnabled(N?.userActivationGuardConfig?.link)&&this.guardedTypes.set(n.Link,N.userActivationGuardConfig.link),this.isEnabled(N?.userActivationGuardConfig?.input)&&this.guardedTypes.set(n.Input,N.userActivationGuardConfig.input),this.isEnabled(N?.userActivationGuardConfig?.playMedia)&&this.guardedTypes.set(n.PlayMedia,N.userActivationGuardConfig.playMedia),this.isEnabled(N?.userActivationGuardConfig?.share)&&this.guardedTypes.set(n.Share,N.userActivationGuardConfig.share)}isEnabled(U){return!!U&&"none"!==U}isUserActivated(U){switch(U){case"sticky":return!!navigator.userActivation?.hasBeenActive;case"transient":return!!navigator.userActivation?.isActive;case"none":return!0;default:return!1}}guardSensitiveAPIs(){const U=this;if(this.enabled){if(!navigator.userActivation)return void this.logger.info("navigator.userActivation is not supported on this platform");for(const V of l){const{object:T,methodName:N,type:L}=V;if(!this.guardedTypes.has(L))return void this.logger.info(`Skipping patching ${N}`);if(!T||"function"!=typeof T[N])return void this.logger.error(`Failed patching ${N}: not found or not a function`);const E=`${T.constructor.name}.${N}`;if(this.storedOriginalImplementation.has(E))return;if(!Object.getOwnPropertyDescriptor(T,N)?.writable)return void this.logger.error(`${N} is not a writable property for ${T}`);this.storedOriginalImplementation.set(E,{object:T,methodName:N,original:T[N],type:L}),T[N]=function(...R){const B=U.guardedTypes.get(L);if(!U.isUserActivated(B))return U.triggerWarningMsg(),V.returnsPromise?Promise.resolve(void 0):void 0;try{const X=U.storedOriginalImplementation.get(E)?.original.apply(this,R);return X instanceof Promise?X.catch(H=>H instanceof DOMException&&"NotAllowedError"===H.name?(U.logger.info("NotAllowedError caught: action is not user activated",H),Promise.resolve(void 0)):Promise.reject(H)):X}catch(X){U.catchNotAllowedError(X)}},this.patchedTypes.push(L)}}}catchNotAllowedError(U){if("NotAllowedError"!==U.name)throw U;this.logger.info("NotAllowedError caught: action is not user activated",U)}restoreOriginalAPIs(){this.enabled&&navigator.userActivation&&(this.storedOriginalImplementation.forEach(({object:U,methodName:V,original:T})=>{try{U[V]=T}catch(N){this.logger.error(`Failed restoring ${V}:`,N)}}),this.storedOriginalImplementation.clear(),this.patchedTypes=[])}displayWarning(U,V){return this.snackbarService.open(this.translateService.instant(U,V))}isGuarded(U){return this.guardedTypes.has(U)}isPatched(U){return this.patchedTypes.includes(U)}guard(U,V,T,N){return this.enabled&&this.isGuarded(U)?(L,...E)=>{if(!(0,O.Ls)(L))return this.triggerWarningMsg(L,T,N),l.find(R=>R.type===U).returnsPromise?Promise.resolve(void 0):void 0;try{const g=V(L,...E);return g&&"function"==typeof g.then?g.catch(R=>"NotAllowedError"===R.name?(this.logger.info("NotAllowedError caught in Promise: action is not user activated",R),Promise.resolve(void 0)):Promise.reject(R)):g}catch(g){this.catchNotAllowedError(g)}}:V}triggerWarningMsg(U,V,T){if(!this.snackBarOpened){const E=this.displayWarning(V??this.defaultWarningMessage,T?.interpolationKey?{[T.interpolationKey]:T?.useInnerText?U?.target?.innerText:T?.text}:void 0);(0,P.h)(E.afterOpened().pipe((0,v.u)(!0)),E.afterDismissed().pipe((0,v.u)(!1))).pipe((0,S.s)(2)).subscribe(g=>{this.snackBarOpened=g})}}guardObservable(U,V,T,N){return this.enabled&&this.isGuarded(U)?V.pipe((0,y.M)(L=>{!(0,O.Ls)(L)&&this.triggerWarningMsg(L,T,N)}),(0,f.W)(L=>"NotAllowedError"===L.name?(this.logger.info("NotAllowedError caught: action is not user activated",L),_.w):(0,i.$)(()=>L))):V}static{this.\u0275fac=function(V){return new(V||D)(r.KVO(a.J6),r.KVO(c.UG),r.KVO(m.c$),r.KVO(d.X,8))}}static{this.\u0275prov=r.jDH({token:D,factory:D.\u0275fac,providedIn:"root"})}}return D})()},56785:(Bt,z,s)=>{"use strict";s.d(z,{DU:()=>N.D,c_:()=>fi.c,rX:()=>Ge,bm:()=>qa,xy:()=>Jl.x,Xv:()=>on.X,uh:()=>Bo,ur:()=>We,Vm:()=>El,f$:()=>co,I$:()=>gt,Lb:()=>lt.L,nO:()=>dl.n,QO:()=>T.QO,Oh:()=>pe,ti:()=>qn,RM:()=>L.R,ED:()=>On.E,D2:()=>E.D,gE:()=>ml.gE,HK:()=>ml.HK});var n=s(61142),l=s(94485),d=s(58527),v=s(51006),S=s(26537),y=s(16490),f=s(29370),O=s(44224),P=s(74150),_=s(96542),i=s(36243),r=s(14354),a=s(64409),c=s(99564),m=s(56106),M=s(47973),D=s(4418),I=s(49678),U=s(99204),V=s(31308),T=s(72818),N=s(25369),L=s(2218),E=s(81247),g=s(98504),R=s(60990),B=s(40514),X=s(97888),H=s(22355),J=s(52171),re=s(3457),ie=s(28139),ve=s(51394);const ue=(vt,en)=>[vt,en],se=vt=>({visible:vt}),Z=vt=>({"pointer-events":vt}),Se=vt=>({visibility:vt});function Ce(vt,en){if(1&vt&&(d.j41(0,"i",23),d.EFF(1),d.k0s()),2&vt){const Ee=d.XpG();d.R7$(),d.JRh(Ee.data.icon)}}function Be(vt,en){if(1&vt&&d.nrm(0,"img",24),2&vt){const Ee=d.XpG();d.Y8G("src",Ee.data.image.url,d.B4B)}}function Xe(vt,en){if(1&vt&&(d.nrm(0,"div",25),d.nI1(1,"translate")),2&vt){const Ee=d.XpG();d.Y8G("innerHTML",d.i5U(1,1,Ee.data.headerText.text,Ee.data.translateValues),d.npT)}}function He(vt,en){1&vt&&(d.j41(0,"div",26),d.nrm(1,"mat-progress-spinner",27),d.k0s())}function Me(vt,en){if(1&vt&&(d.nrm(0,"div",28),d.nI1(1,"translate")),2&vt){const Ee=d.XpG();d.Y8G("innerHTML",Ee.data.bodyText.translated?Ee.data.bodyText.text:d.i5U(1,1,Ee.data.bodyText.text,Ee.data.bodyText.placeholders),d.npT)}}function Q(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"a",32),d.bIt("click",function(){d.eBV(Ee);const Qt=d.XpG(2);return d.Njj(Qt.onLinkClick())}),d.EFF(1),d.nI1(2,"translate"),d.k0s()}if(2&vt){const Ee=d.XpG(2);d.Y8G("href",Ee.data.link.url,d.B4B)("shortUrl",null==Ee.data.link?null:Ee.data.link.shortUrl),d.R7$(),d.JRh(d.i5U(2,3,Ee.data.link.text,Ee.data.link.placeholders))}}function A(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"span",33),d.nI1(1,"translate"),d.bIt("click",function(){d.eBV(Ee);const Qt=d.XpG(2);return d.Njj(Qt.onLinkClick())}),d.k0s()}if(2&vt){const Ee=d.XpG(2);d.Y8G("innerHTML",d.i5U(1,1,Ee.data.link.text,Ee.data.link.placeholders),d.npT)}}function me(vt,en){if(1&vt&&(d.j41(0,"div",29),d.DNE(1,Q,3,6,"a",30)(2,A,2,4,"span",31),d.k0s()),2&vt){const Ee=d.XpG();d.R7$(),d.Y8G("ngIf",!(null!=Ee.data.link&&Ee.data.link.isTextWithHyperlinkTag)),d.R7$(),d.Y8G("ngIf",null==Ee.data.link?null:Ee.data.link.isTextWithHyperlinkTag)}}function ne(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"a",32),d.bIt("click",function(){d.eBV(Ee);const Qt=d.XpG(2);return d.Njj(Qt.onLinkClick())}),d.EFF(1),d.nI1(2,"translate"),d.k0s()}if(2&vt){const Ee=d.XpG(2);d.Y8G("href",Ee.data.link.url,d.B4B)("shortUrl",Ee.data.link.shortUrl),d.R7$(),d.JRh(d.bMT(2,3,Ee.data.link.text))}}function G(vt,en){if(1&vt&&(d.j41(0,"a",36),d.EFF(1),d.nI1(2,"translate"),d.k0s()),2&vt){const Ee=d.XpG(2);d.Y8G("routerLink",Ee.data.link.routerLink.commands)("skipLocationChange",Ee.data.link.routerLink.skipLocationChange),d.R7$(),d.SpI(" ",d.bMT(2,3,Ee.data.link.text)," ")}}function W(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"a",37),d.bIt("click",function(){d.eBV(Ee);const Qt=d.XpG(2);return d.Njj(Qt.data.link.linkClickedCallback())}),d.EFF(1),d.nI1(2,"translate"),d.k0s()}if(2&vt){const Ee=d.XpG(2);d.R7$(),d.SpI(" ",d.bMT(2,1,Ee.data.link.text)," ")}}function $(vt,en){if(1&vt&&(d.j41(0,"div",29),d.DNE(1,ne,3,5,"a",30)(2,G,3,5,"a",34)(3,W,3,3,"a",35),d.k0s()),2&vt){const Ee=d.XpG();d.R7$(),d.Y8G("ngIf",Ee.data.link.url&&!Ee.data.link.routerLink&&!Ee.data.link.linkClickedCallback),d.R7$(),d.Y8G("ngIf",Ee.data.link.routerLink&&!Ee.data.link.linkClickedCallback),d.R7$(),d.Y8G("ngIf",Ee.data.link.linkClickedCallback)}}function le(vt,en){if(1&vt&&(d.j41(0,"div",38),d.EFF(1),d.nI1(2,"translate"),d.k0s()),2&vt){const Ee=d.XpG();d.R7$(),d.SpI(" ",d.i5U(2,1,Ee.data.errorCodeText.text,Ee.data.errorCodeText.placeholders)," ")}}function Pe(vt,en){if(1&vt&&d.nrm(0,"nv-hig-cell-comparison",39),2&vt){const Ee=d.XpG();d.Y8G("data",Ee.data.dataCells)}}function Fe(vt,en){if(1&vt&&d.nrm(0,"img",46),2&vt){const Ee=d.XpG().$implicit;d.Y8G("src",Ee.imageUrl,d.B4B)}}function At(vt,en){if(1&vt&&(d.j41(0,"mat-radio-button",42)(1,"div",43),d.DNE(2,Fe,1,1,"img",44),d.j41(3,"div",45),d.EFF(4),d.k0s()()()),2&vt){const Ee=en.$implicit;d.Y8G("value",Ee.value),d.R7$(2),d.Y8G("ngIf",Ee.imageUrl),d.R7$(2),d.JRh(Ee.value)}}function Le(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"mat-radio-group",40),d.mxI("ngModelChange",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.DH7(Zn.data.radioOptionSelected,Qt)||(Zn.data.radioOptionSelected=Qt),d.Njj(Qt)}),d.bIt("change",function(){d.eBV(Ee);const Qt=d.XpG();return d.Njj(Qt.onRadioOptionChange())}),d.DNE(1,At,5,3,"mat-radio-button",41),d.k0s()}if(2&vt){const Ee=d.XpG();d.R50("ngModel",Ee.data.radioOptionSelected),d.R7$(),d.Y8G("ngForOf",Ee.data.radioButtonOptions)}}function Et(vt,en){if(1&vt&&d.nrm(0,"mat-icon",52),2&vt){const Ee=d.XpG().$implicit;d.Y8G("svgIcon",Ee.matIcon)}}function $e(vt,en){if(1&vt&&(d.j41(0,"div",49),d.DNE(1,Et,1,1,"mat-icon",50),d.j41(2,"div",51),d.EFF(3),d.k0s()()),2&vt){const Ee=en.$implicit;d.R7$(),d.Y8G("ngIf",Ee.matIcon),d.R7$(2),d.JRh(Ee.text)}}function Ze(vt,en){if(1&vt&&(d.j41(0,"div",47),d.DNE(1,$e,4,2,"div",48),d.k0s()),2&vt){const Ee=d.XpG();d.R7$(),d.Y8G("ngForOf",Ee.data.descriptionList)}}function Qe(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"div",53)(1,"div",54)(2,"a",55),d.bIt("click",function(){return d.eBV(Ee),d.Njj(!1)})("dragstart",function(){d.eBV(Ee);const Qt=d.XpG();return d.Njj(Qt.onImageDragStart())}),d.EFF(3),d.nI1(4,"translate"),d.nrm(5,"img",56),d.k0s(),d.nrm(6,"p",57),d.nI1(7,"translate"),d.k0s(),d.nrm(8,"p",58),d.nI1(9,"translate"),d.k0s()}if(2&vt){const Ee=d.XpG();d.R7$(2),d.Y8G("href",Ee.data.image.shortcutUrl,d.B4B),d.R7$(),d.JRh(d.i5U(4,6,Ee.data.image.caption,Ee.data.image.captionPlaceholder)),d.R7$(2),d.Y8G("src",Ee.data.image.url,d.B4B)("alt",Ee.data.image.captionPlaceholder),d.R7$(),d.Y8G("innerHTML",d.i5U(7,9,Ee.data.image.caption,Ee.data.image.captionPlaceholder),d.npT),d.R7$(2),d.Y8G("innerHTML",d.bMT(9,12,Ee.data.image.description),d.npT)}}function Ve(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"mat-checkbox",59),d.mxI("ngModelChange",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.DH7(Zn.data.checkboxState,Qt)||(Zn.data.checkboxState=Qt),d.Njj(Qt)}),d.j41(1,"span",60),d.EFF(2),d.nI1(3,"translate"),d.k0s()()}if(2&vt){const Ee=d.XpG();d.R50("ngModel",Ee.data.checkboxState),d.R7$(2),d.JRh(d.bMT(3,2,Ee.data.checkbox.text))}}function nt(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"button",61),d.bIt("click",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.Njj(Zn.onSecondaryButtonClick(Qt))}),d.EFF(1),d.nI1(2,"translate"),d.eu8(3,62),d.k0s()}if(2&vt){const Ee=d.XpG(),kt=d.sdS(25);d.Y8G("disabled",Ee.data.secondaryButton.isDisabled),d.R7$(),d.SpI(" ",d.bMT(2,4,Ee.data.secondaryButton.text)," "),d.R7$(2),d.Y8G("ngTemplateOutlet",kt)("ngTemplateOutletContext",d.eq3(6,se,Ee.data.secondaryButton.spinnerOverlay))}}function Ot(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"button",63),d.bIt("click",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.Njj(Zn.onPrimaryButtonClick(Qt))}),d.j41(1,"div",64),d.EFF(2),d.nI1(3,"translate"),d.k0s(),d.eu8(4,62),d.k0s()}if(2&vt){const Ee=d.XpG(),kt=d.sdS(25);d.Y8G("ngClass",Ee.data.primaryButton.accentColor?"font-button2 mat-flat-button mat-accent":"font-button2")("nvFocusRipple",!!Ee.data.primaryButton.accentColor)("disabled",Ee.data.primaryButton.isDisabled)("nvAutoFocus",Ee.autoFocusOnPrimaryButton)("ngStyle",d.eq3(11,Z,Ee.data.primaryButton.spinnerOverlay?"none":"all")),d.R7$(),d.Y8G("ngStyle",d.eq3(13,Se,Ee.data.primaryButton.removeButtonTextOnClick?"hidden":"visible")),d.R7$(),d.SpI(" ",d.bMT(3,9,Ee.data.primaryButton.text)," "),d.R7$(2),d.Y8G("ngTemplateOutlet",kt)("ngTemplateOutletContext",d.eq3(15,se,Ee.data.primaryButton.spinnerOverlay))}}function at(vt,en){if(1&vt&&(d.j41(0,"div",66),d.nrm(1,"mat-progress-spinner",67),d.k0s()),2&vt){const Ee=d.XpG(2);d.R7$(),d.Y8G("ngClass",Ee.data.spinnerClass?Ee.data.spinnerClass:"mat-accent")("diameter",16)}}function It(vt,en){1&vt&&d.DNE(0,at,2,2,"div",65),2&vt&&d.Y8G("ngIf",en.visible)}let We=(()=>{class vt extends N.D{get hasIcon(){return!!this.data.icon||!!this.data.image}get autoFocusOnPrimaryButton(){return this.data.autoFocusOnPrimaryButton??!0}static open(Ee,kt){return(0,T.SN)(kt,{addOverlayPanelCls:!0}),Ee.open(vt,kt)}constructor(Ee,kt,Qt,Zn){super(kt,Qt,Ee,Zn),this.primaryButtonClick=new d.bkB,this.secondaryButtonClick=new d.bkB,this.radioButtonClick=new d.bkB,this.linkClick=new d.bkB,this.data={},this.data=Ee.get(S.Vh,null)||{showSpinner:!1}}ngOnInit(){this.data.checkboxState=this.data.checkbox?.initialState??!1}onPrimaryButtonClick(Ee){this.primaryButtonClick.emit(Ee)}onSecondaryButtonClick(Ee){this.secondaryButtonClick.emit(Ee)}onLinkClick(){this.linkClick.emit()}onRadioOptionChange(){this.radioButtonClick.emit()}onImageDragStart(){this.data.image?.dragStartCallback()}static{this.\u0275fac=function(kt){return new(kt||vt)(d.rXU(d.zZn),d.rXU(S.CP,8),d.rXU(y.eN,8),d.rXU(d.SKi))}}static{this.\u0275cmp=d.VBU({type:vt,selectors:[["nv-hig-dialog"]],inputs:{data:"data"},outputs:{primaryButtonClick:"primaryButtonClick",secondaryButtonClick:"secondaryButtonClick",radioButtonClick:"radioButtonClick",linkClick:"linkClick"},standalone:!0,features:[d.Vt3,d.aNF],decls:26,vars:29,consts:[["buttonSpinner",""],["nvSpatialNavigationContainer","","nvTrapFocus","",3,"ngClass","forceEnable"],["fxLayout","row","fxLayoutAlign","stretch start",1,"hig-dialog-padding"],["class","hig-dialog-icon material-icons",4,"ngIf"],["class","hig-dialog-img",3,"src",4,"ngIf"],["fxLayout","column","fxLayoutGap","16px",1,"hig-dialog-content-container"],["fxLayout","column","fxLayoutAlign","space-between stretch",1,"hig-dialog-info-container"],["class","font-header6 header-text",3,"innerHTML",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"hig-dialog-spinner-container",3,"ngClass"],["class","hig-dialog-spinner",4,"ngIf"],["fxLayout","column"],["class","font-body2 body-text",3,"innerHTML",4,"ngIf"],["class","hig-dialog-link-text",4,"ngIf"],["class","font-body2 hig-dialog-error-text",4,"ngIf"],[3,"data",4,"ngIf"],["class","hig-radio-container","nvSpatialNavigationGroup","","navigateAction","focus",3,"ngModel","ngModelChange","change",4,"ngIf"],["class","hig-description-list-container",4,"ngIf"],["class","hig-dialog-image-container","fxLayout","row","fxLayoutAlign","start start",4,"ngIf"],["fxLayout","column","fxLayoutGap","16px",1,"hig-dialog-actions-container"],["class","nv-hig",3,"ngModel","ngModelChange",4,"ngIf"],["fxLayoutAlign","end center","fxLayoutGap","8px",1,"hig-dialog-buttons-container"],["mat-button","","class","hig-dialog-secondary-button font-button2",3,"disabled","click",4,"ngIf"],["mat-button","",3,"ngClass","nvFocusRipple","disabled","nvAutoFocus","ngStyle","click",4,"ngIf"],[1,"hig-dialog-icon","material-icons"],[1,"hig-dialog-img",3,"src"],[1,"font-header6","header-text",3,"innerHTML"],[1,"hig-dialog-spinner"],["mode","indeterminate","diameter","48","color","accent"],[1,"font-body2","body-text",3,"innerHTML"],[1,"hig-dialog-link-text"],["target","_blank","class","font-body2-link",3,"href","shortUrl","click",4,"ngIf"],["cdkMonitorSubtreeFocus","","target","_blank","class","font-body2",3,"innerHTML","click",4,"ngIf"],["target","_blank",1,"font-body2-link",3,"click","href","shortUrl"],["cdkMonitorSubtreeFocus","","target","_blank",1,"font-body2",3,"click","innerHTML"],["class","font-body2-link",3,"routerLink","skipLocationChange",4,"ngIf"],["class","font-body2-link","role","link","tabindex","0",3,"click",4,"ngIf"],[1,"font-body2-link",3,"routerLink","skipLocationChange"],["role","link","tabindex","0",1,"font-body2-link",3,"click"],[1,"font-body2","hig-dialog-error-text"],[3,"data"],["nvSpatialNavigationGroup","","navigateAction","focus",1,"hig-radio-container",3,"ngModelChange","change","ngModel"],["nvMatRadioSpatialNavigationFixup","",3,"value",4,"ngFor","ngForOf"],["nvMatRadioSpatialNavigationFixup","",3,"value"],[1,"hig-radio-label-container"],["class","hig-radio-option-image",3,"src",4,"ngIf"],["dir","auto",1,"hig-radio-option-label"],[1,"hig-radio-option-image",3,"src"],[1,"hig-description-list-container"],["class","hig-description-list-item",4,"ngFor","ngForOf"],[1,"hig-description-list-item"],["class","hig-description-icon font-body2",3,"svgIcon",4,"ngIf"],[1,"hig-description-text","font-body2"],[1,"hig-description-icon","font-body2",3,"svgIcon"],["fxLayout","row","fxLayoutAlign","start start",1,"hig-dialog-image-container"],["fxLayout","column",1,"hig-dialog-image-shortcut-container"],[1,"hig-dialog-image-shortcut-link",3,"click","dragstart","href"],[1,"hig-dialog-image",3,"src","alt"],[1,"hig-dialog-image-caption",3,"innerHTML"],[1,"hig-dialog-image-description","font-body2",3,"innerHTML"],[1,"nv-hig",3,"ngModelChange","ngModel"],[1,"font-body2"],["mat-button","",1,"hig-dialog-secondary-button","font-button2",3,"click","disabled"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["mat-button","",3,"click","ngClass","nvFocusRipple","disabled","nvAutoFocus","ngStyle"],[3,"ngStyle"],["fxLayoutAlign","center center","class","spinner-overlay",4,"ngIf"],["fxLayoutAlign","center center",1,"spinner-overlay"],["mode","indeterminate",3,"ngClass","diameter"]],template:function(kt,Qt){1&kt&&(d.j41(0,"div",1)(1,"div",2),d.DNE(2,Ce,2,1,"i",3)(3,Be,1,1,"img",4),d.j41(4,"div",5)(5,"div",6),d.DNE(6,Xe,2,4,"div",7),d.j41(7,"div",8),d.DNE(8,He,2,0,"div",9),d.j41(9,"div",10),d.DNE(10,Me,2,4,"div",11),d.k0s()(),d.DNE(11,me,3,2,"div",12)(12,$,4,3,"div",12)(13,le,3,4,"div",13)(14,Pe,1,1,"nv-hig-cell-comparison",14)(15,Le,2,2,"mat-radio-group",15)(16,Ze,2,1,"div",16)(17,Qe,10,14,"div",17),d.k0s(),d.j41(18,"div",18)(19,"div"),d.DNE(20,Ve,4,4,"mat-checkbox",19),d.k0s(),d.j41(21,"div",20),d.DNE(22,nt,4,8,"button",21)(23,Ot,5,17,"button",22),d.k0s(),d.DNE(24,It,1,1,"ng-template",null,0,d.C5r),d.k0s()()()()),2&kt&&(d.Y8G("ngClass",Qt.data.isTransparent?"hig-dialog-transparent":"hig-dialog")("forceEnable",Qt.data.trapFocus),d.R7$(),d.AVh("no-header-text",!Qt.data.headerText)("no-body-text",!Qt.data.bodyText)("no-spinner",!Qt.data.showSpinner)("has-icon",Qt.hasIcon),d.R7$(),d.Y8G("ngIf",Qt.data.icon),d.R7$(),d.Y8G("ngIf",Qt.data.image&&!Qt.data.image.isDraggableUrl),d.R7$(3),d.Y8G("ngIf",Qt.data.headerText),d.R7$(),d.Y8G("ngClass",d.l_i(26,ue,Qt.data.bodyText?"hig-dialog-spinner-content-start":"hig-dialog-spinner-content-center",Qt.data.showSpinner?"hig-dialog-spinner-group":"")),d.R7$(),d.Y8G("ngIf",Qt.data.showSpinner),d.R7$(2),d.Y8G("ngIf",Qt.data.bodyText),d.R7$(),d.Y8G("ngIf",null==Qt.data.link?null:Qt.data.link.placeholders),d.R7$(),d.Y8G("ngIf",Qt.data.link&&!Qt.data.link.placeholders),d.R7$(),d.Y8G("ngIf",Qt.data.errorCodeText),d.R7$(),d.Y8G("ngIf",(null==Qt.data.dataCells?null:Qt.data.dataCells.length)>0),d.R7$(),d.Y8G("ngIf",Qt.data.radioButtonOptions),d.R7$(),d.Y8G("ngIf",Qt.data.descriptionList),d.R7$(),d.Y8G("ngIf",null==Qt.data.image?null:Qt.data.image.isDraggableUrl),d.R7$(3),d.Y8G("ngIf",Qt.data.checkbox),d.R7$(2),d.Y8G("ngIf",Qt.data.secondaryButton),d.R7$(),d.Y8G("ngIf",Qt.data.primaryButton))},dependencies:[n.bT,n.YU,n.T3,m.YN,m.BC,m.vS,v.YF,re.DJ,re.BO,re.sA,ie.PW,ie.eI,M.wG,M.iV,ve.ig,D.g7,D.So,f.m_,f.An,I.Wk,I.VT,I._g,U.D6,U.LG,_.h,_.D9,V.Pd,V.vR,r.iI,r.Wk,L.R,E.D,g.f3,H.N,R.r,B.e,X.Aq,J.X],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.hig-dialog[_ngcontent-%COMP%]{background-color:var(--hig-dialog-bg-color);padding:0;width:560px}.hig-dialog-transparent[_ngcontent-%COMP%]{background-color:transparent;padding:0;width:100%}.isLtr[_nghost-%COMP%] .hig-dialog-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-dialog-padding[_ngcontent-%COMP%]{padding:20px 8px 8px 24px}html[dir=ltr][_ngcontent-%COMP%] .hig-dialog-padding[_ngcontent-%COMP%]{--dummy: 0;padding:20px 8px 8px 24px}.isRtl[_nghost-%COMP%] .hig-dialog-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-dialog-padding[_ngcontent-%COMP%]{padding:20px 24px 8px 8px}html[dir=rtl][_ngcontent-%COMP%] .hig-dialog-padding[_ngcontent-%COMP%]{--dummy: 0;padding:20px 24px 8px 8px}.hig-dialog-img[_ngcontent-%COMP%]{min-width:32px}.isLtr[_nghost-%COMP%] .hig-dialog-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-dialog-icon[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .hig-dialog-img[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-dialog-img[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .hig-dialog-icon[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .hig-dialog-img[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .hig-dialog-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-dialog-icon[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .hig-dialog-img[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-dialog-img[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .hig-dialog-icon[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .hig-dialog-img[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}@media (max-width: 479px),(min-width: 480px) and (max-width: 719px){.hig-dialog[_ngcontent-%COMP%]{width:calc(100vw - 32px)}}.hig-dialog-content-container[_ngcontent-%COMP%]{width:100%}.isLtr[_nghost-%COMP%] .hig-dialog-content-container[_ngcontent-%COMP%] .hig-dialog-info-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-dialog-content-container[_ngcontent-%COMP%] .hig-dialog-info-container[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .hig-dialog-content-container[_ngcontent-%COMP%] .hig-dialog-info-container[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .hig-dialog-content-container[_ngcontent-%COMP%] .hig-dialog-info-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-dialog-content-container[_ngcontent-%COMP%] .hig-dialog-info-container[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .hig-dialog-content-container[_ngcontent-%COMP%] .hig-dialog-info-container[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .hig-dialog-spinner[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-dialog-spinner[_ngcontent-%COMP%]{padding-right:15px}html[dir=ltr][_ngcontent-%COMP%] .hig-dialog-spinner[_ngcontent-%COMP%]{--dummy2: 0;padding-right:15px}.isRtl[_nghost-%COMP%] .hig-dialog-spinner[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-dialog-spinner[_ngcontent-%COMP%]{padding-left:15px}html[dir=rtl][_ngcontent-%COMP%] .hig-dialog-spinner[_ngcontent-%COMP%]{--dummy2: 0;padding-left:15px}.hig-dialog-spinner-group[_ngcontent-%COMP%]{margin-top:10px}.hig-dialog-link-text[_ngcontent-%COMP%]{margin:10px 0 0}.isLtr[_nghost-%COMP%] .hig-dialog-buttons-container[_ngcontent-%COMP%] .hig-dialog-secondary-button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-dialog-buttons-container[_ngcontent-%COMP%] .hig-dialog-secondary-button[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .hig-dialog-buttons-container[_ngcontent-%COMP%] .hig-dialog-secondary-button[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .hig-dialog-buttons-container[_ngcontent-%COMP%] .hig-dialog-secondary-button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-dialog-buttons-container[_ngcontent-%COMP%] .hig-dialog-secondary-button[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .hig-dialog-buttons-container[_ngcontent-%COMP%] .hig-dialog-secondary-button[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.hig-dialog-buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;z-index:1;background:transparent}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.hig-dialog-buttons-container[_ngcontent-%COMP%]{flex-flow:row wrap-reverse}}.hig-dialog-spinner-container[_ngcontent-%COMP%]{display:flex;align-items:center}.hig-dialog-spinner-content-start[_ngcontent-%COMP%]{margin-top:10px;place-content:start}.no-header-text.no-spinner[_ngcontent-%COMP%] .hig-dialog-spinner-content-start[_ngcontent-%COMP%]{margin-top:0}.hig-dialog-spinner-content-center[_ngcontent-%COMP%]{place-content:center}.no-body-text.has-icon[_ngcontent-%COMP%] .header-text[_ngcontent-%COMP%], .no-header-text.no-spinner.has-icon[_ngcontent-%COMP%] .body-text[_ngcontent-%COMP%]{display:flex;height:32px;align-items:center}.hig-dialog-icon[_ngcontent-%COMP%]{font-size:32px;color:#595959}.hig-radio-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:16px}.hig-radio-label-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.hig-radio-option-image[_ngcontent-%COMP%]{height:24px}.isLtr[_nghost-%COMP%] .hig-radio-option-image[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-radio-option-image[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .hig-radio-option-image[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .hig-radio-option-image[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-radio-option-image[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .hig-radio-option-image[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.hig-radio-option-label[_ngcontent-%COMP%]{line-height:24px;font-size:16px}.hig-dialog-image-container[_ngcontent-%COMP%]{width:100%;padding-top:24px}.hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-container[_ngcontent-%COMP%]{width:154px}.isLtr[_nghost-%COMP%] .hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-container[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-container[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-container[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-container[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-link[_ngcontent-%COMP%]{position:relative;font-size:0;line-height:0;color:transparent;cursor:grab;cursor:-webkit-grab}.hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-link[_ngcontent-%COMP%]:active{cursor:grabbing;cursor:-webkit-grabbing}.hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image[_ngcontent-%COMP%]{width:130px;height:130px}.hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-caption[_ngcontent-%COMP%]{text-align:center;margin:12px 0 0;color:#ffffffb3}.hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-description[_ngcontent-%COMP%]{margin:0}.hig-dialog-error-text[_ngcontent-%COMP%]{margin:24px 0 0}.hig-description-list-container[_ngcontent-%COMP%]{margin-top:16px}.hig-description-list-container[_ngcontent-%COMP%] .hig-description-list-item[_ngcontent-%COMP%]{display:flex}.hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{width:14px;height:14px;margin-top:2px;flex-shrink:0}.isLtr[_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{margin-right:20px}html[dir=ltr][_ngcontent-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:20px}.isRtl[_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl][_ngcontent-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:20px}"]})}}return vt})();var xe=s(5428),lt=s(29824),ft=s(76706),ht=s(26875),Xt=s(80583),Ht=s(36877),Je=s(12532),tt=s(892),rt=s(4208),et=s(8619),St=s(62931),Gt=s(91384),yt=s(14714),Wt=s(43615),ke=s(81834),be=s(73318),Ae=function(vt){return vt.FullBleedImage="FullBleedImage",vt.PaddedImage="PaddedImage",vt}(Ae||{}),Lt=s(13458),Zt=s(46964),fn=s(54504),hn=s(99469),On=s(94222),fi=s(21684);const Ji=["marqueeContainer"],Fi=["paginator"],bt=["marqueeTileContainerList"],bn=["paginatorList"],Pt=(vt,en,Ee,kt,Qt,Zn,Vi,vr,hr)=>({"mobile-view":vt,"tv-mode":en,"phone-marquee":Ee,"paginator-navigation":kt,"full-bleed-item":Qt,"full-bleed-item-not-first-position":Zn,"no-bg-overhang":Vi,"custom-bg":vr,"fallback-image-item":hr}),jt=(vt,en,Ee,kt)=>({fadeInMarquee:vt,"padded-image-container":en,"full-bleed-image-container":Ee,hidden:kt}),gn=vt=>({"no-mask":vt}),ui=(vt,en)=>({fadeInMarqueeDescription:vt,hidden:en}),Ii=(vt,en)=>({"marquee-tile-background-gradient":vt,"marquee-tile-background-fallback-gradient":en}),pr=vt=>({"marquee-tile-data":vt}),zr=vt=>({"no-bg-overhang":vt});function Cn(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"img",20),d.bIt("load",function(){d.eBV(Ee);const Qt=d.XpG(3);return d.Njj(Qt.marqueeImageLoadComplete())})("error",function(){d.eBV(Ee);const Qt=d.XpG(3);return d.Njj(Qt.fallbackToPlaceholderImage())}),d.k0s()}if(2&vt){const Ee=d.XpG(3);d.Y8G("src",Ee.marqueeImageUrl,d.B4B)("ngClass",d.eq3(2,gn,Ee.imageMaskDisabled))}}function pn(vt,en){if(1&vt&&(d.j41(0,"div",18),d.DNE(1,Cn,1,4,"img",19),d.k0s()),2&vt){const Ee=en.$implicit,kt=d.XpG(2);d.Y8G("ngClass",d.ziG(2,jt,Ee.isVisible&&kt.enableAnimation,Ee.imageType===kt.tileOption.PaddedImage&&!kt.tileIsShowingFallbackImage,Ee.imageType===kt.tileOption.FullBleedImage||kt.tileIsShowingFallbackImage,kt.enableContentVisibilityOptimization&&!Ee.isVisible)),d.R7$(),d.Y8G("ngIf",Ee.isVisible)}}function ti(vt,en){if(1&vt&&(d.j41(0,"div",22),d.nrm(1,"div",23),d.j41(2,"div",24),d.EFF(3),d.k0s()()),2&vt){const Ee=d.XpG().$implicit;d.R7$(3),d.JRh(Ee.app.promoTag)}}function pi(vt,en){if(1&vt&&(d.j41(0,"div"),d.DNE(1,ti,4,1,"div",21),d.k0s()),2&vt){const Ee=en.$implicit;d.R7$(),d.Y8G("ngIf",Ee.isVisible&&Ee.app.promoTag)}}function cn(vt,en){if(1&vt&&d.nrm(0,"div",18),2&vt){const Ee=d.XpG(5);d.Y8G("ngClass",d.l_i(1,Ii,Ee.hasMarqueeScrim,!Ee.hasMarqueeScrim))}}function An(vt,en){1&vt&&d.nrm(0,"div",33)}function Jn(vt,en){1&vt&&d.nrm(0,"div",34)}function hi(vt,en){1&vt&&d.nrm(0,"div",35)}function xi(vt,en){if(1&vt&&(d.j41(0,"div",28),d.DNE(1,cn,1,4,"div",29)(2,An,1,0,"div",30)(3,Jn,1,0,"div",31)(4,hi,1,0,"div",32),d.k0s()),2&vt){const Ee=d.XpG().$implicit;d.R7$(),d.Y8G("ngIf",Ee.gradients.background&&!Ee.isShowingFallbackImage),d.R7$(),d.Y8G("ngIf",Ee.gradients.leftEdge&&!Ee.isShowingFallbackImage),d.R7$(),d.Y8G("ngIf",Ee.gradients.leftMerge&&!Ee.isShowingFallbackImage),d.R7$(),d.Y8G("ngIf",Ee.gradients.bottomEdge)}}function xn(vt,en){if(1&vt&&(d.j41(0,"div",26),d.DNE(1,xi,5,4,"div",27),d.k0s()),2&vt){const Ee=en.$implicit,kt=d.XpG(3);d.Y8G("ngClass",d.l_i(2,ui,Ee.isVisible&&kt.enableAnimation,kt.enableContentVisibilityOptimization&&!Ee.isVisible)),d.R7$(),d.Y8G("ngIf",Ee.isVisible)}}function Yn(vt,en){if(1&vt&&(d.qex(0),d.DNE(1,xn,2,5,"div",25),d.bVm()),2&vt){const Ee=d.XpG(2);d.R7$(),d.Y8G("ngForOf",Ee.marqueeData)}}function Gn(vt,en){if(1&vt&&(d.j41(0,"div",46),d.EFF(1),d.k0s()),2&vt){const Ee=d.XpG(5);d.xc7("color",Ee.fontColor),d.R7$(),d.SpI(" ",Ee.appTitle," ")}}function Ci(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"img",47),d.bIt("error",function(){d.eBV(Ee);const Qt=d.XpG(5);return d.Njj(Qt.fallbackToAppLogo())}),d.k0s()}if(2&vt){const Ee=d.XpG(5);d.Y8G("src",Ee.appLogoUrl,d.B4B)}}function ln(vt,en){if(1&vt&&(d.j41(0,"div",48),d.EFF(1),d.k0s()),2&vt){const Ee=d.XpG(5);d.R7$(),d.SpI(" ",Ee.appSubtitle," ")}}function bi(vt,en){if(1&vt&&(d.j41(0,"div",49),d.EFF(1),d.k0s()),2&vt){const Ee=d.XpG(3).$implicit;d.R7$(),d.SpI(" ",Ee.app.additionalSubtitle," ")}}function Zi(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"div",39),d.DNE(1,Gn,2,3,"div",40)(2,Ci,1,1,"img",41),d.j41(3,"div",42),d.DNE(4,ln,2,1,"div",43)(5,bi,2,1,"div",44),d.k0s(),d.j41(6,"button",45),d.bIt("click",function(Qt){d.eBV(Ee);const Zn=d.XpG(2).$implicit,Vi=d.XpG(2);return d.Njj(Vi.onViewAppDetails(Qt,Zn.app))}),d.EFF(7),d.nI1(8,"translate"),d.k0s()()}if(2&vt){const Ee=d.XpG(2).$implicit,kt=d.XpG(2);d.R7$(),d.Y8G("ngIf",!kt.phoneMarqueeEnabled&&kt.appTitle),d.R7$(),d.Y8G("ngIf",!kt.appTitle),d.R7$(),d.xc7("color",kt.fontColor),d.R7$(),d.Y8G("ngIf",kt.appSubtitle),d.R7$(),d.Y8G("ngIf",Ee.app.additionalSubtitle),d.R7$(2),d.SpI(" ",d.bMT(8,7,"common.viewDetails")," ")}}function Mr(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"button",55),d.bIt("click",function(Qt){d.eBV(Ee);const Zn=d.XpG(3).$implicit,Vi=d.XpG(2);return d.Njj(Vi.onActionClicked(Qt,Zn.app.action,Vi.position,Zn.app.id))}),d.EFF(1),d.k0s()}if(2&vt){const Ee=d.XpG(3).$implicit;d.R7$(),d.SpI(" ",Ee.app.action.label," ")}}function $r(vt,en){if(1&vt&&(d.j41(0,"div",56),d.EFF(1),d.k0s()),2&vt){const Ee=d.XpG(3).$implicit;d.R7$(),d.SpI(" ",Ee.app.action.infoText," ")}}function _o(vt,en){if(1&vt&&(d.j41(0,"div",50)(1,"div",51),d.EFF(2),d.k0s(),d.nrm(3,"div",52),d.DNE(4,Mr,2,1,"button",53)(5,$r,2,1,"div",54),d.k0s()),2&vt){const Ee=d.XpG(2).$implicit;d.R7$(),d.Y8G("isMultiLineEllipsis",!0),d.R7$(),d.SpI(" ",Ee.app.title," "),d.R7$(),d.Y8G("isMultiLineEllipsis",!0)("innerHTML",null==Ee.app?null:Ee.app.body,d.npT),d.R7$(),d.Y8G("ngIf",(null==Ee.app||null==Ee.app.action||null==Ee.app.action.label?null:Ee.app.action.label.length)>0),d.R7$(),d.Y8G("ngIf",!(null==Ee.app.action||!Ee.app.action.infoText))}}function bo(vt,en){if(1&vt&&(d.j41(0,"div",18),d.DNE(1,Zi,9,9,"div",37)(2,_o,6,6,"div",38),d.k0s()),2&vt){const Ee=d.XpG().$implicit,kt=d.XpG(2);d.Y8G("ngClass",d.eq3(3,pr,Ee.contentOverlayType!==kt.tileOption.FullBleedImage)),d.R7$(),d.Y8G("ngIf",Ee.contentOverlayType!==kt.tileOption.FullBleedImage),d.R7$(),d.Y8G("ngIf",Ee.contentOverlayType===kt.tileOption.FullBleedImage)}}function Kn(vt,en){if(1&vt&&(d.j41(0,"div",36,1),d.DNE(2,bo,3,5,"div",29),d.k0s()),2&vt){const Ee=en.$implicit,kt=d.XpG(2);d.Y8G("ngClass",d.l_i(2,ui,Ee.isVisible&&kt.enableAnimation,kt.enableContentVisibilityOptimization&&!Ee.isVisible)),d.R7$(2),d.Y8G("ngIf",Ee.isVisible)}}function gi(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"button",57,2),d.nI1(2,"translate"),d.bIt("click",function(){d.eBV(Ee);const Qt=d.XpG(2);return d.Njj(Qt.prevSlide())}),d.nrm(3,"mat-icon",58),d.k0s()}2&vt&&d.BMQ("aria-label",d.bMT(2,1,"marquee.previous"))}function Pi(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"button",59,3),d.nI1(2,"translate"),d.bIt("click",function(){d.eBV(Ee);const Qt=d.XpG(2);return d.Njj(Qt.nextSlide())}),d.nrm(3,"mat-icon",60),d.k0s()}2&vt&&d.BMQ("aria-label",d.bMT(2,1,"marquee.next"))}function ji(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"li",63,5),d.bIt("click",function(){const Qt=d.eBV(Ee).$implicit,Zn=d.XpG(3);return d.Njj(Zn.goToSlide(Qt))})("focusin",function(){const Qt=d.eBV(Ee).$implicit,Zn=d.XpG(3);return d.Njj(Zn.goToSlide(Qt))}),d.k0s()}if(2&vt){const Ee=en.$implicit,kt=d.XpG(3);d.AVh("active",Ee===kt.position),d.BMQ("tabindex",kt.enablePaginatorNavigation?0:null)}}function Qi(vt,en){if(1&vt&&(d.j41(0,"ul",61,4),d.DNE(2,ji,2,3,"li",62),d.k0s()),2&vt){const Ee=d.XpG(2);d.BMQ("tabindex",Ee.enablePaginatorNavigation?0:null),d.R7$(2),d.Y8G("ngForOf",Ee.slideAccessor)}}function ar(vt,en){1&vt&&d.nrm(0,"div",64)}function jr(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"div",9,0),d.bIt("swipeleft",function(){d.eBV(Ee);const Qt=d.XpG();return d.Njj(Qt.swipeLeft())})("swiperight",function(){d.eBV(Ee);const Qt=d.XpG();return d.Njj(Qt.swipeRight())})("click",function(){d.eBV(Ee);const Qt=d.XpG();return d.Njj(Qt.cancelAutoSlide())}),d.DNE(2,pn,2,7,"div",10)(3,pi,2,1,"div",11)(4,Yn,2,1,"ng-container",12)(5,Kn,3,5,"div",13)(6,gi,4,3,"button",14)(7,Pi,4,3,"button",15)(8,Qi,3,2,"ul",16)(9,ar,1,0,"div",17),d.k0s()}if(2&vt){const Ee=d.XpG();d.xc7("--scrim-color",Ee.scrimColor)("--dismiss-ratio",Ee.dismissRatio),d.Y8G("ngClass",d.zJS(14,Pt,[Ee.mobileMode,Ee.tvMode,Ee.phoneMarqueeEnabled,Ee.enablePaginatorNavigation,Ee.isTileTypeFullBleedImage,Ee.isTileTypeFullBleedImageNotAtFirst,!1===Ee.backgroundOverhangEnabled,Ee.containerCustomBackground,Ee.tileIsShowingFallbackImage])),d.BMQ("tabindex",Ee.enablePaginatorNavigation?0:null),d.R7$(2),d.Y8G("ngForOf",Ee.marqueeData),d.R7$(),d.Y8G("ngForOf",Ee.marqueeData),d.R7$(),d.Y8G("ngIf",!Ee.phoneMarqueeEnabled),d.R7$(),d.Y8G("ngForOf",Ee.marqueeData),d.R7$(),d.Y8G("ngIf",0!==Ee.position),d.R7$(),d.Y8G("ngIf",Ee.position!==Ee.marqueeData.length-1),d.R7$(),d.Y8G("ngIf",(null==Ee.marqueeData?null:Ee.marqueeData.length)>1),d.R7$(),d.Y8G("ngIf",Ee.useMarqueeScrim)}}function ho(vt,en){if(1&vt&&(d.j41(0,"div",65),d.nrm(1,"nv-hig-progress-circular"),d.k0s()),2&vt){const Ee=d.XpG();d.Y8G("ngClass",d.eq3(1,zr,!1===Ee.backgroundOverhangEnabled))}}function Fo(vt,en){if(1&vt&&(d.j41(0,"div",66)(1,"span",67),d.EFF(2),d.nI1(3,"translate"),d.nrm(4,"br"),d.EFF(5),d.nI1(6,"translate"),d.k0s()()),2&vt){const Ee=d.XpG();d.Y8G("ngClass",d.eq3(7,zr,!1===Ee.backgroundOverhangEnabled)),d.R7$(2),d.SpI("",d.bMT(3,3,"common.genericLoadError")," "),d.R7$(3),d.JRh(d.bMT(6,5,"common.connectionError"))}}let no=(()=>{class vt{set tileData(Ee){this._tileData=Ee,this.refreshMarquee(!0)}get tileData(){return this._tileData}set imageOverrides(Ee){(0,ht.isEqual)(this._imageOverrides,Ee)||(this._imageOverrides=Ee,this.updateImageOverrides())}get imageOverrides(){return this._imageOverrides}get elementRef(){return this._elementRef}get tileOption(){return Ae}get hasMarqueeScrim(){return this._hasMarqueeScrim}set hasMarqueeScrim(Ee){this._hasMarqueeScrim=Ee}get hasFocus(){return this.marqueeContainer.nativeElement.contains(this.focusManager.currentFocusedElement)}get hasFocusable(){return!!this.focusManager.getInitialFocusable(this.marqueeContainer.nativeElement)}constructor(Ee,kt,Qt,Zn,Vi,vr,hr,qr,so,Cs){this.imageFormatService=Qt,this.networkStatusService=Zn,this.localeService=Vi,this.breakpointObserver=vr,this.spatialNavigationService=hr,this.focusManager=qr,this.changeDetector=so,this.imageFetcher=Cs,this.useMarqueeScrim=!1,this.phoneMarqueeEnabled=!1,this.mobileMode=!1,this.tvMode=!1,this.dismissRatio=0,this.enablePaginatorNavigation=!1,this.enableAnimation=!0,this.enableContentVisibilityOptimization=!1,this.actionClicked=new d.bkB,this.viewAppDetails=new d.bkB,this.imageLoadFailure=new d.bkB,this.marqueeScrolled=new d.bkB,this.paginatorRepositioned=new d.bkB,this.initialized=new d.bkB,this.beforeChangeSlide=new d.bkB,this.marqueeAutoScrollCancelled=new d.bkB,this.slideAccessor=[],this.position=0,this.busyLoadingMarquee=!0,this.errorVisible=!1,this.isTileTypeFullBleedImage=!1,this.isTileTypeFullBleedImageNotAtFirst=!1,this.tileIsShowingFallbackImage=!1,this.globalFallbackImage="assets/img/Marquee_Hero_Image_Fallback.png",this.globalFallbackImageType=Ae.FullBleedImage,this.formatImages=!0,this.backgroundOverhangEnabled=!0,this.imageMaskDisabled=!1,this.containerCustomBackground=!1,this.contentOverlayType=Ae.FullBleedImage,this.isHandsetPortrait=!1,this.ismarketingTileReloaded=!1,this.autoScrollInterval=5e3,this.autoScroll=!0,this._elementRef=Ee,this.logger=kt.getLogger("hig/MarqueeComponent"),this.destroy$=new Xt.B7}ngOnInit(){this.gradientOverrides&&(this.bottomEdgeGradientEnabled=this.gradientOverrides.bottomEdge??this.bottomEdgeGradientEnabled,this.leftEdgeGradientEnabled=this.gradientOverrides.leftEdge??this.leftEdgeGradientEnabled,this.leftMergeGradientEnabled=this.gradientOverrides.leftMerge??this.leftMergeGradientEnabled,this.backgroundGradientEnabled=this.gradientOverrides.background??this.backgroundGradientEnabled,this.backgroundOverhangEnabled=this.gradientOverrides.backgroundOverhang??this.backgroundOverhangEnabled),this.constructMarquee(),this.switchableImageConfig&&(this.breakpointObserver.observe(`(min-width: ${this.switchableImageConfig.breakpointPx}px)`).pipe((0,rt.Q)(this.destroy$)).subscribe(Ee=>{Ee.matches&&(this.overrideImageType(this.switchableImageConfig.alternate),this.changeDetector.detectChanges())}),this.breakpointObserver.observe(`(max-width: ${this.switchableImageConfig.breakpointPx-1}px)`).pipe((0,rt.Q)(this.destroy$)).subscribe(Ee=>{Ee.matches&&(this.overrideImageType(this.switchableImageConfig.default),this.changeDetector.detectChanges())})),this.networkStatusService.onlineStatusChanged.pipe((0,et.p)(Ee=>!0===Ee)).pipe((0,rt.Q)(this.destroy$)).subscribe(()=>{this.refreshMarquee(),this.changeDetector.detectChanges()}),this.phoneMarqueeEnabled&&(this.breakpointObserver.observe(ft.Rp.HandsetPortrait).pipe((0,rt.Q)(this.destroy$)).subscribe(Ee=>{this.isHandsetPortrait=Ee.matches,this.updateMarqueeImageUrl(this.tileInFocus.app),this.notifyPaginatorRepositioned(),this.changeDetector.detectChanges()}),ke._4.onResize(this.marqueeContainer.nativeElement).pipe((0,St.B)(200),(0,rt.Q)(this.destroy$)).subscribe(Ee=>{this.notifyPaginatorRepositioned()}))}updateImageOverrides(){if(this.globalFallbackImage=this.imageOverrides?.globalFallbackImageUrl??this.globalFallbackImage,this.globalFallbackImageType=this.imageOverrides?.globalFallbackImageType??this.globalFallbackImageType,this.formatImages=this.imageOverrides?.formatImages??this.formatImages,this.imageMaskDisabled=this.imageOverrides?.disableMask??this.imageMaskDisabled,this.containerCustomBackground=this.imageOverrides?.customBackground??this.containerCustomBackground,this.switchableImageConfig=this.imageOverrides?.switchableImageConfig,!(0,ht.isEmpty)(this.marqueeData)&&((0,ht.isNil)(this.tileData)||(0,ht.isEmpty)(this.tileData))){const kt={fallbackImage:this.globalFallbackImage,type:this.globalFallbackImageType};this.marqueeData=[{...this.marqueeData[0],app:kt}],this.updateImageTypeByIndex(0,kt.type,this.globalFallbackImageType!==Ae.PaddedImage)}}overrideImageType(Ee){this.marqueeData=this.marqueeData?.map(kt=>(kt.imageType=Ee,kt)),this.updateImageTypeByIndex(this.position,Ee,this.marqueeData[this.position].isShowingFallbackImage)}ngAfterViewInit(){this.spatialNavigationService.enabled&&this.enablePaginatorNavigation&&((0,Ht.R)(this.marqueeContainer?.nativeElement,"navbeforefocus").pipe((0,rt.Q)(this.destroy$)).subscribe(this.onContainerNavBeforeFocus.bind(this)),(0,Ht.R)(this.marqueeContainer?.nativeElement,"navnotarget").pipe((0,et.p)(Ee=>Ee.target===this.marqueeContainer?.nativeElement&&(0,be.o3)(Ee.detail.dir)),(0,rt.Q)(this.destroy$)).subscribe(this.navigateMarqueeSlide.bind(this))),this.initialized.emit()}onContainerNavBeforeFocus(Ee){this.hasFocus?this.navigateWithinMarquee(Ee):this.navigateIntoMarquee(Ee)}navigateIntoMarquee(Ee){let kt;switch(Ee.detail.dir){case"up":kt=this.paginatorList.get(this.position)?.nativeElement;break;case"down":case"left":case"right":kt=this.focusManager.getFirstFocusableChild(this.marqueeTileContainerList.get(this.position).nativeElement)}kt||(kt=this.paginatorList.get(this.position)?.nativeElement),kt&&(Ee.preventDefault(),this.focusManager.focusViaLastOrigin(kt))}navigateWithinMarquee(Ee){const kt=this.marqueeTileContainerList.get(this.position).nativeElement.contains(this.focusManager.currentFocusedElement),Qt=this.paginator.nativeElement.contains(Ee.target),Zn=this.marqueeTileContainerList.get(this.position).nativeElement.contains(Ee.target);if(kt&&Qt&&(0,be.o3)(Ee.detail.dir))this.navigateMarqueeSlide(Ee),Ee.preventDefault();else if(Ee.target===this.paginator?.nativeElement)Ee.preventDefault(),this.focusManager.focusViaLastOrigin(this.paginatorList.get(this.position)?.nativeElement);else if(Zn&&(0,be.o3)(Ee.detail.dir)){Ee.preventDefault();const Vi=this.spatialNavigationService.findNextTarget(Ee.target,Ee.detail.dir);Vi&&!this.marqueeContainer.nativeElement.contains(Vi)&&this.focusManager.navigateTo(Vi,Ee.detail.dir)}}navigateMarqueeSlide(Ee){let kt=!1;kt=(this.localeService.isRTLLayoutEnabled?"left"===Ee.detail.dir:"right"===Ee.detail.dir)?this.nextSlide():this.prevSlide(),kt&&(Ee.preventDefault(),this.changeDetector.detectChanges())}notifyPaginatorRepositioned(){setTimeout(()=>{const Ee=this.marqueeContainer?.nativeElement.getBoundingClientRect().top;let kt,Qt;void 0!==this.paginator?.nativeElement?(kt=this.paginator?.nativeElement.getBoundingClientRect().bottom,Qt=parseInt(getComputedStyle(this.paginator?.nativeElement).getPropertyValue("margin-bottom"),10)):(kt=this.marqueeTileContainerList.get(this.position).nativeElement.getBoundingClientRect().bottom,Qt=32),void 0!==kt&&void 0!==Ee&&this.paginatorRepositioned.next(Math.floor(kt+Qt-Ee))})}constructMarquee(){this.marqueeData=[],this.slideAccessor=[];const Ee=(0,ht.isNil)(this.tileData)||(0,ht.isEmpty)(this.tileData);if(Ee){const kt={heroImage:this.globalFallbackImage,marqueeHeroImage:this.globalFallbackImage,type:this.globalFallbackImageType};this.marqueeData.push({isVisible:!1,app:kt,gradients:this.getGradientConfig(kt),contentOverlayType:this.getContentOverlayType(kt),imageType:kt.type,isShowingFallbackImage:this.globalFallbackImageType!==Ae.PaddedImage}),this.updateImageTypeByIndex(0,kt.type,this.marqueeData[0].isShowingFallbackImage)}else this.tileData.forEach((kt,Qt)=>{this.marqueeData.push({isVisible:!1,app:kt,gradients:this.getGradientConfig(kt),contentOverlayType:this.getContentOverlayType(kt),imageType:kt.type,isShowingFallbackImage:Ee}),this.slideAccessor.push(Qt)});this.logger.info("Marquee Initialization"),this.errorVisible=!1,this.marqueeInitialization(),this.busyLoadingMarquee=!1,this.ismarketingTileReloaded=!0}getGradientConfig(Ee){return{bottomEdge:this.bottomEdgeGradientEnabled??Ee.type===Ae.FullBleedImage,leftEdge:this.leftEdgeGradientEnabled??Ee.type===Ae.PaddedImage,leftMerge:this.leftMergeGradientEnabled??!1,background:this.backgroundGradientEnabled??Ee.type===Ae.PaddedImage,backgroundOverhang:this.backgroundOverhangEnabled??!0}}getContentOverlayType(Ee){return this.overlayOverrides?this.overlayOverrides.contentOverlayType:Ee.type}updateMetaData(Ee){const kt=Ee.app;this.appLogoUrl=kt.logoImage?this.formatImages?this.imageFormatService.formatImageServiceUrl(kt.logoImage):kt.logoImage:null,this.updateMarqueeImageUrl(kt)}updateMarqueeImageUrl(Ee){let kt,Qt;if(this.phoneMarqueeEnabled&&this.isHandsetPortrait?(kt={w:960},Qt=Ee.heroImage):(kt={w:1920},Qt=Ee.marqueeHeroImage),Qt){const Zn=this.formatImages?this.imageFormatService.formatImageServiceUrl(Qt,kt):Qt;this.imageFetcher?this.fetchImageAndColors(Ee,Zn):(this.isTileTypeFullBleedImage&&(this.scrimColor="0, 0, 0",this.hasMarqueeScrim=!0),this.marqueeImageUrl=Zn,this.changeDetector.detectChanges())}else this.marqueeImageUrl=null,this.changeDetector.detectChanges()}fetchImageAndColors(Ee,kt){this.logger.info("image fetch started "+kt);let Qt,Zn=null;this.imageFetchSubsciption?.unsubscribe(),this.imageFetchSubsciption=this.imageFetcher.fetchImage(kt).pipe((0,Gt.M)(Vi=>{if(Zn=Vi.imageUrl,Vi.metadata?.colors){const vr=Vi.metadata.colors;let hr;hr=this.phoneMarqueeEnabled&&this.isHandsetPortrait&&vr.bottom?vr.bottom:this.localeService.isRTLLayoutEnabled&&vr.right||vr.left,hr&&(Qt=(0,ke.iN)(hr))}}),(0,yt.W)(Vi=>(this.logger.error("Failed to fetch image:",Vi),Je.w)),(0,Wt.j)(()=>{Ee==this.tileInFocus.app&&(this.tileInFocus.isShowingFallbackImage=!1,this.updateImageTypeByIndex(this.position,this.tileInFocus?.imageType,this.tileInFocus.isShowingFallbackImage),this.marqueeImageUrl=Zn,Qt=Qt||{r:0,g:0,b:0},this.scrimColor=`${Qt.r}, ${Qt.g}, ${Qt.b}`,this.fontColor=(0,ke.VP)(Qt),this.hasMarqueeScrim=!0,this.changeDetector.detectChanges(),this.logger.info("image loaded "+this.marqueeImageUrl))})).subscribe()}marqueeInitialization(){this.position=0,this.marqueeData[this.position]&&(this.marqueeData[this.position].isVisible=!0),this.setSlideMetaData(0),this.initAutoScroll()}setSlideMetaData(Ee){this.marqueeData[Ee]&&(this.tileInFocus=this.marqueeData[Ee],this.updateImageTypeByIndex(Ee,this.tileInFocus?.imageType,this.tileInFocus.isShowingFallbackImage),this.resetData(),this.updateMetaData(this.tileInFocus),this.isTileTypeFullBleedImage||(this.appSubtitle=this.tileInFocus.app.subtitle))}updateImageTypeByIndex(Ee,kt,Qt){this.tileIsShowingFallbackImage=Qt,this.isTileTypeFullBleedImage=kt===Ae.FullBleedImage,this.isTileTypeFullBleedImageNotAtFirst=this.isTileTypeFullBleedImage&&Ee>0}resetData(){this.marqueeImageUrl=null,this.appLogoUrl=null,this.appTitle=null,this.hasMarqueeScrim=!1,this.scrimColor=null,this.fontColor="white",this.appSubtitle=null}initAutoScroll(){this.autoScroll&&(this.marqueeIterator=(0,tt.Y)(this.autoScrollInterval),this.marqueeIteratorSubscription?.unsubscribe(),this.marqueeIteratorSubscription=this.marqueeIterator.pipe((0,et.p)(()=>document?.hasFocus()&&0==this.dismissRatio&&this.paginator?.nativeElement.getBoundingClientRect().bottom>0)).subscribe(()=>this.autoScrollNext()))}goToSlide(Ee){this.position!==Ee&&(this.changeSlide(Ee),this.pause(),this.marqueeScrolled.emit({position:this.position,autoScrolled:this.autoScroll}))}changeSlide(Ee){this.beforeChangeSlide.emit(Ee);const kt=this.marqueeContainer.nativeElement.contains(this.focusManager.currentFocusedElement),Qt=this.marqueeTileContainerList.get(this.position).nativeElement.contains(this.focusManager.currentFocusedElement);this.marqueeData.map((Vi,vr)=>{Vi.isVisible=vr===Ee});const Zn=this.position;if(this.position=Ee,this.setSlideMetaData(this.position),this.spatialNavigationService.enabled&&this.enablePaginatorNavigation&&kt){let Vi=this.position-Zn;Vi*=this.localeService.isRTLLayoutEnabled?-1:1;const hr=(0,ke.Ms)(window,Vi>0?ke.F0.ArrowRight:ke.F0.ArrowLeft).pipe((0,rt.Q)(this.destroy$)).subscribe();setTimeout(()=>{const qr=this.focusManager.getFirstFocusableChild(this.marqueeTileContainerList.get(this.position).nativeElement),so=Qt&&qr?qr:this.paginatorList.get(this.position)?.nativeElement;this.focusManager.focusViaLastOrigin(so),hr.closed||hr.unsubscribe()})}}prevSlide(){return this.position>0&&(this.goToSlide(this.position-1),!0)}nextSlide(){return this.position<this.marqueeData.length-1&&(this.goToSlide(this.position+1),!0)}autoScrollNext(){this.marqueeScrolled.emit({position:this.position,autoScrolled:this.autoScroll}),this.changeSlide((this.position+1)%this.marqueeData.length),this.changeDetector.detectChanges()}refreshMarquee(Ee){(this.errorVisible||Ee)&&(this.logger.info("Marquee data updated, constructing marquee..."),this.constructMarquee())}pause(){this.autoScroll=!1,this.marqueeIteratorSubscription?.unsubscribe()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.imageFetchSubsciption?.unsubscribe(),this.marqueeIteratorSubscription?.unsubscribe()}swipeLeft(){this.localeService.isRTLLayoutEnabled?this.prevSlide():this.nextSlide()}swipeRight(){this.localeService.isRTLLayoutEnabled?this.nextSlide():this.prevSlide()}marqueeImageLoadComplete(){0===this.position&&!0===this.ismarketingTileReloaded&&(this.ismarketingTileReloaded=!1)}fallbackToPlaceholderImage(){const Ee=this.marqueeData[this.position],kt=Ee.app;this.logger.warn("Error loading image for "+kt.title+" using fallback."),(0,ht.isNil)(this.tileData)||(0,ht.isEmpty)(this.tileData)?Ee.isShowingFallbackImage=Ee.imageType!==Ae.PaddedImage:(Ee.isShowingFallbackImage=!0,this.updateImageTypeByIndex(this.position,Ee.imageType,Ee.isShowingFallbackImage)),this.marqueeImageUrl=kt.fallbackImage?kt.fallbackImage:this.globalFallbackImage,this.imageLoadFailure.next(this.position)}fallbackToAppLogo(){this.logger.warn("Error loading app logo for "+this.marqueeData[this.position].app.title+" using fallback."),this.appTitle=this.marqueeData[this.position].app.title}onViewAppDetails(Ee,kt){this.logger.info("view app details",Ee),this.viewAppDetails.emit({app:kt,...Ee})}onActionClicked(Ee,kt,Qt,Zn){this.logger.info("action clicked",Ee,kt),this.actionClicked.emit({action:kt,position:Qt,id:Zn,...Ee})}setInitialFocus(){this.focusManager.focusChild(this.marqueeContainer.nativeElement,"first")}cancelAutoSlide(){this.pause(),this.marqueeAutoScrollCancelled.emit()}static{this.\u0275fac=function(kt){return new(kt||vt)(d.rXU(d.aKT),d.rXU(hn.J6),d.rXU(hn.Pl),d.rXU(hn.CF),d.rXU(hn.iH),d.rXU(ft.QP),d.rXU(On.E),d.rXU(fi.c),d.rXU(d.gRc),d.rXU("MARQUEE_IMAGE_METADATA_FETCHER",8))}}static{this.\u0275cmp=d.VBU({type:vt,selectors:[["nv-hig-marquee"]],viewQuery:function(kt,Qt){if(1&kt&&(d.GBs(Ji,5),d.GBs(Fi,5),d.GBs(bt,5),d.GBs(bn,5)),2&kt){let Zn;d.mGM(Zn=d.lsd())&&(Qt.marqueeContainer=Zn.first),d.mGM(Zn=d.lsd())&&(Qt.paginator=Zn.first),d.mGM(Zn=d.lsd())&&(Qt.marqueeTileContainerList=Zn),d.mGM(Zn=d.lsd())&&(Qt.paginatorList=Zn)}},inputs:{tileData:"tileData",useMarqueeScrim:"useMarqueeScrim",phoneMarqueeEnabled:"phoneMarqueeEnabled",mobileMode:"mobileMode",tvMode:"tvMode",dismissRatio:"dismissRatio",enablePaginatorNavigation:"enablePaginatorNavigation",gradientOverrides:"gradientOverrides",overlayOverrides:"overlayOverrides",enableAnimation:"enableAnimation",enableContentVisibilityOptimization:"enableContentVisibilityOptimization",imageOverrides:"imageOverrides"},outputs:{actionClicked:"actionClicked",viewAppDetails:"viewAppDetails",imageLoadFailure:"imageLoadFailure",marqueeScrolled:"marqueeScrolled",paginatorRepositioned:"paginatorRepositioned",initialized:"initialized",beforeChangeSlide:"beforeChangeSlide",marqueeAutoScrollCancelled:"marqueeAutoScrollCancelled"},standalone:!0,features:[d.aNF],decls:3,vars:3,consts:[["marqueeContainer",""],["marqueeTileContainerList",""],["leftButton",""],["rightButton",""],["paginator",""],["paginatorList",""],["class","marquee-container","nvSpatialNavigationGroup","",3,"ngClass","--scrim-color","--dismiss-ratio","swipeleft","swiperight","click",4,"ngIf"],["class","marquee-load-container",3,"ngClass",4,"ngIf"],["class","errorPlaceholder","fxLayoutAlign","center center",3,"ngClass",4,"ngIf"],["nvSpatialNavigationGroup","",1,"marquee-container",3,"swipeleft","swiperight","click","ngClass"],[3,"ngClass",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[4,"ngIf"],["class","marquee-tile-overlay-container",3,"ngClass",4,"ngFor","ngForOf"],["mat-icon-button","","class","marquee-button marquee-button-prev","tabindex","-1",3,"click",4,"ngIf"],["mat-icon-button","","class","marquee-button marquee-button-next","tabindex","-1",3,"click",4,"ngIf"],["class","marquee-indicators","cdkMonitorSubtreeFocus","","nvSpatialNavigationGroup","",4,"ngIf"],["class","marquee-scrim",4,"ngIf"],[3,"ngClass"],["elementtiming","marqueeTile","class","marquee-tile-image",3,"src","ngClass","load","error",4,"ngIf"],["elementtiming","marqueeTile",1,"marquee-tile-image",3,"load","error","src","ngClass"],["class","marquee-promo-tag-container","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"marquee-promo-tag-container"],[1,"marquee-promo-tag-border"],["dir","auto",1,"marquee-promo-tag"],["class","marquee-tile-gradient-container",3,"ngClass",4,"ngFor","ngForOf"],[1,"marquee-tile-gradient-container",3,"ngClass"],["class","marquee-tile-gradients",4,"ngIf"],[1,"marquee-tile-gradients"],[3,"ngClass",4,"ngIf"],["class","marquee-tile-left-edge-gradient",4,"ngIf"],["class","marquee-tile-left-merge-gradient",4,"ngIf"],["class","full-bleed-up-down-gradient",4,"ngIf"],[1,"marquee-tile-left-edge-gradient"],[1,"marquee-tile-left-merge-gradient"],[1,"full-bleed-up-down-gradient"],[1,"marquee-tile-overlay-container",3,"ngClass"],["class","overlay-content",4,"ngIf"],["class","full-bleed-overlay-content",4,"ngIf"],[1,"overlay-content"],["class","font-header4 marquee-app-title",3,"color",4,"ngIf"],["elementtiming","appLogo","class","marquee-app-title",3,"src","error",4,"ngIf"],[1,"subtitle-container"],["class","font-sub3",4,"ngIf"],["dir","auto","class","font-sub3",4,"ngIf"],["tabindex","0","mat-raised-button","","color","accent","data-focus-loss-exempt","",1,"marquee-tile-action-button","font-button2","text-button-icon",3,"click"],[1,"font-header4","marquee-app-title"],["elementtiming","appLogo",1,"marquee-app-title",3,"error","src"],[1,"font-sub3"],["dir","auto",1,"font-sub3"],[1,"full-bleed-overlay-content"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"title-font",3,"isMultiLineEllipsis"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"body-font",3,"isMultiLineEllipsis","innerHTML"],["mat-raised-button","","color","accent","class","marquee-tile-action-button font-button2","nvProgressCircular","",3,"click",4,"ngIf"],["class","info-font",4,"ngIf"],["mat-raised-button","","color","accent","nvProgressCircular","",1,"marquee-tile-action-button","font-button2",3,"click"],[1,"info-font"],["mat-icon-button","","tabindex","-1",1,"marquee-button","marquee-button-prev",3,"click"],["svgIcon","lt_arrow",1,"marquee-button-icon"],["mat-icon-button","","tabindex","-1",1,"marquee-button","marquee-button-next",3,"click"],["svgIcon","rt_arrow",1,"marquee-button-icon"],["cdkMonitorSubtreeFocus","","nvSpatialNavigationGroup","",1,"marquee-indicators"],[3,"active","click","focusin",4,"ngFor","ngForOf"],[3,"click","focusin"],[1,"marquee-scrim"],[1,"marquee-load-container",3,"ngClass"],["fxLayoutAlign","center center",1,"errorPlaceholder",3,"ngClass"],[1,"font-header5"]],template:function(kt,Qt){1&kt&&d.DNE(0,jr,10,24,"div",6)(1,ho,2,3,"div",7)(2,Fo,7,9,"div",8),2&kt&&(d.Y8G("ngIf",!Qt.busyLoadingMarquee&&!Qt.errorVisible),d.R7$(),d.Y8G("ngIf",Qt.busyLoadingMarquee),d.R7$(),d.Y8G("ngIf",Qt.errorVisible))},dependencies:[n.bT,L.$,n.YU,ie.Cc,ie.PW,n.pM,re.w2,re.DJ,re.sA,ve.jI,ve.ig,M.wG,M.iV,X.Aq,fn.a,R.r,B.e,Zt.q,f.m_,f.An,V.Pd,V.vR,Lt.o,_.h,_.D9],styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .marquee-button[_ngcontent-%COMP%] .marquee-button-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-button[_ngcontent-%COMP%] .marquee-button-icon[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-left-edge-gradient[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-left-edge-gradient[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-left-merge-gradient[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-left-merge-gradient[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .marquee-button[_ngcontent-%COMP%] .marquee-button-icon[_ngcontent-%COMP%], .marquee-button[_ngcontent-%COMP%] html[dir=rtl][_ngcontent-%COMP%] .marquee-button-icon[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-left-edge-gradient[_ngcontent-%COMP%], .marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] html[dir=rtl][_ngcontent-%COMP%] .marquee-tile-left-edge-gradient[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-left-merge-gradient[_ngcontent-%COMP%], .marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] html[dir=rtl][_ngcontent-%COMP%] .marquee-tile-left-merge-gradient[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_nghost-%COMP%]{--usable-inline-size: calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right)) ;--full-bleed-title-margin-bottom: 20px;--full-bleed-info-margin-top: 20px;--text-overlay-content-padding-bottom: 24px;--full-bleed-overlay-content-width: calc(.38 * var(--usable-inline-size));--full-bleed-overlay-content-max-width: none;--hig-marquee-third-column: calc(.06 * var(--usable-inline-size));--hig-marquee-fallback-background-gradient: linear-gradient( to top, rgba(128, 128, 128, 0) 0%, gray 40% );--hig-marquee-left-edge-gradient: linear-gradient( to left, rgba(25, 25, 25, 0) 0%, rgba(25, 25, 25, .25) 100% );--hig-marquee-custom-container-background: none;--text-overlay-content-title-lines: 2;--text-overlay-content-body-lines: 4;--hig-marquee-tile-action-button-margin-top: 24px;--hig-marquee-left-edge-gradient-width: calc(6 * var(--rwd-column-size) + 5 * var(--rwd-gutter-size));--hig-marquee-tile-overlay-container-margin-left: 24px;--hig-marquee-scrim-opacity: 0;--hig-marquee-button-prev-left: 0;--hig-marquee-button-icon-size: 40px;--hig-marquee-promo-tag-container-top: 10px;--hig-marquee-promo-tag-height: 24px;--hig-marquee-promo-tag-horizontal-padding: 8px;--hig-marquee-parallax-offset: -48px;--hig-marquee-animation-duration: 1s;--hig-marquee-container-border-radius: 0;--hig-marquee-indicator-border-radius: 0}.mobile-view[_ngcontent-%COMP%]{--full-bleed-title-margin-bottom: 8px;--full-bleed-info-margin-top: 16px}.marquee-button[_ngcontent-%COMP%]{display:none;border-width:0;transition:all .2s ease;border:0;padding:0;background:none;outline:none;cursor:pointer}.marquee-button.mat-icon-button[_ngcontent-%COMP%]{border-radius:50%!important;height:var(--hig-marquee-button-icon-size);width:var(--hig-marquee-button-icon-size);line-height:var(--hig-marquee-button-icon-size)}.marquee-button[_ngcontent-%COMP%] .marquee-button-icon[_ngcontent-%COMP%]{font-size:var(--hig-marquee-button-icon-size);height:var(--hig-marquee-button-icon-size);width:var(--hig-marquee-button-icon-size);line-height:var(--hig-marquee-button-icon-size);vertical-align:initial}.marquee-container[_ngcontent-%COMP%], .fallback-content[_ngcontent-%COMP%]{display:grid;align-items:center;justify-items:center;height:0;grid-template-columns:var(--hig-marquee-corner-column) var(--hig-marquee-text-column) var(--hig-marquee-third-column) 1fr var(--hig-marquee-corner-column);box-sizing:border-box;position:relative}.marquee-container.phone-marquee[_ngcontent-%COMP%], .fallback-content.phone-marquee[_ngcontent-%COMP%]{position:sticky;top:0;opacity:1;z-index:2;width:100%;height:100%;padding-bottom:0;transform:translateY(calc(var(--dismiss-ratio) * var(--hig-marquee-parallax-offset)));opacity:calc(1 - var(--dismiss-ratio));filter:blur(calc(10px * var(--dismiss-ratio)))}@media (orientation: portrait){.marquee-container.phone-marquee[_ngcontent-%COMP%], .fallback-content.phone-marquee[_ngcontent-%COMP%]{--image-portrait-ratio: .5625;--overlapping-size: 56px;--paginator-height: 36px;--overlay-container-height: 150px;grid-template-rows:calc(var(--image-portrait-ratio) * var(--hig-marquee-parent-container-width) - var(--overlapping-size)) var(--overlapping-size) var(--overlay-container-height) var(--paginator-height)}}@media (orientation: landscape){.marquee-container.phone-marquee[_ngcontent-%COMP%], .fallback-content.phone-marquee[_ngcontent-%COMP%]{--indicator-container-height: 24px;grid-template-rows:calc(var(--usable-inline-size) / 3.0967741935) var(--indicator-container-height) 1fr}.marquee-container.phone-marquee.full-bleed-item[_ngcontent-%COMP%], .fallback-content.phone-marquee.full-bleed-item[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr) auto}.marquee-container.phone-marquee[_ngcontent-%COMP%]:not(.full-bleed-item), .fallback-content.phone-marquee[_ngcontent-%COMP%]:not(.full-bleed-item){grid-template-columns:repeat(16,1fr) 50%}}@media (orientation: portrait){.marquee-container.phone-marquee.phone-marquee[_ngcontent-%COMP%], .fallback-content.phone-marquee.phone-marquee[_ngcontent-%COMP%]{background:linear-gradient(to bottom,rgba(var(--scrim-color),1) calc(.5 * var(--usable-inline-size)),rgba(var(--scrim-color),.7) calc(.9 * var(--usable-inline-size)),rgba(var(--scrim-color),0) calc(1.5 * var(--usable-inline-size)))}}@media (orientation: landscape){.marquee-container.phone-marquee.phone-marquee[_ngcontent-%COMP%], .fallback-content.phone-marquee.phone-marquee[_ngcontent-%COMP%]{background:linear-gradient(to bottom,rgba(var(--scrim-color),1) 55%,rgba(var(--scrim-color),.5) 80%,rgba(var(--scrim-color),0))}}[_ngcontent-%COMP%]:not(.phone-marquee) .marquee-container.phone-marquee[_ngcontent-%COMP%], [_ngcontent-%COMP%]:not(.phone-marquee) .fallback-content.phone-marquee[_ngcontent-%COMP%]{background:linear-gradient(to top,rgba(var(--scrim-color),0),rgba(var(--scrim-color),.02) 3.42%,rgba(var(--scrim-color),.05) 6.68%,rgba(var(--scrim-color),.12) 9.55%,rgba(var(--scrim-color),.2) 12.3%,rgba(var(--scrim-color),.29) 15%,rgba(var(--scrim-color),.39) 17.52%,rgba(var(--scrim-color),.5),rgba(var(--scrim-color),.61) 22.48%,rgba(var(--scrim-color),.71) 25%,rgba(var(--scrim-color),.8) 27.7%,rgba(var(--scrim-color),.88) 30.45%,rgba(var(--scrim-color),.95) 33.32%,rgba(var(--scrim-color),.98) 36.58%,rgba(var(--scrim-color),1) 40%)}@media (hover: hover) and (any-pointer: fine){.marquee-container[_ngcontent-%COMP%]:hover .marquee-button[_ngcontent-%COMP%], .fallback-content[_ngcontent-%COMP%]:hover .marquee-button[_ngcontent-%COMP%]{display:block}}.marquee-container[_ngcontent-%COMP%], .marquee-load-container[_ngcontent-%COMP%], .errorPlaceholder[_ngcontent-%COMP%]{grid-template-rows:var(--hig-marquee-padded-image-first-row) var(--hig-marquee-padded-image-second-row);padding-bottom:calc(var(--hig-marquee-padded-image-first-row) + var(--hig-marquee-padded-image-second-row))}.marquee-container[_ngcontent-%COMP%]{border-radius:var(--hig-marquee-container-border-radius);touch-action:pan-y!important}.marquee-container.no-bg-overhang[_ngcontent-%COMP%]{grid-template-rows:var(--hig-marquee-padded-image-first-row);padding-bottom:var(--hig-marquee-padded-image-first-row)}.marquee-container.no-bg-overhang.full-bleed-item[_ngcontent-%COMP%]{grid-template-rows:var(--hig-marquee-container-height);padding-bottom:var(--hig-marquee-container-height)}.marquee-container.custom-bg[_ngcontent-%COMP%]{background:var(--hig-marquee-custom-container-background)}.marquee-container[_ngcontent-%COMP%] .padded-image-container[_ngcontent-%COMP%], .marquee-container[_ngcontent-%COMP%] .marquee-tile-image[_ngcontent-%COMP%]{border-top-right-radius:var(--hig-marquee-container-border-radius);border-bottom-right-radius:var(--hig-marquee-container-border-radius)}.marquee-container[_ngcontent-%COMP%] .marquee-tile-left-merge-gradient[_ngcontent-%COMP%]{border-top-left-radius:var(--hig-marquee-container-border-radius);border-bottom-left-radius:var(--hig-marquee-container-border-radius)}.padded-image-container[_ngcontent-%COMP%]{grid-area:1/3/2/-1;height:100%;position:relative;z-index:2;justify-self:stretch}.phone-marquee[_ngcontent-%COMP%] .padded-image-container[_ngcontent-%COMP%]{min-height:unset;grid-area:1/1/3/-1}@media (orientation: landscape){.phone-marquee[_ngcontent-%COMP%] .padded-image-container[_ngcontent-%COMP%]{grid-area:1/1/2/-1}}[_ngcontent-%COMP%]:not(.phone-marquee) .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;mask-size:calc(100% + 2px) calc(100% + 2px);-webkit-mask-size:calc(100% + 2px) calc(100% + 2px);mask-position:center;-webkit-mask-position:center}.isLtr[_nghost-%COMP%] [_ngcontent-%COMP%]:not(.phone-marquee) .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:not(.no-mask), .isLtr [_nghost-%COMP%] [_ngcontent-%COMP%]:not(.phone-marquee) .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:not(.no-mask){mask-image:url(Marquee_Hero_Image_Gradient.97da07cc527f6200.svg);-webkit-mask-image:url(Marquee_Hero_Image_Gradient.97da07cc527f6200.svg)}.isRtl[_nghost-%COMP%] [_ngcontent-%COMP%]:not(.phone-marquee) .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:not(.no-mask), .isRtl [_nghost-%COMP%] [_ngcontent-%COMP%]:not(.phone-marquee) .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:not(.no-mask){mask-image:url(Marquee_Hero_Image_Gradient_RTL.8f28b6a06d45d190.svg);-webkit-mask-image:url(Marquee_Hero_Image_Gradient_RTL.8f28b6a06d45d190.svg)}.phone-marquee[_ngcontent-%COMP%] .padded-image-container[_ngcontent-%COMP%], .phone-marquee[_ngcontent-%COMP%] .full-bleed-image-container[_ngcontent-%COMP%]{display:flex;align-content:flex-end}.phone-marquee[_ngcontent-%COMP%] .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .phone-marquee[_ngcontent-%COMP%] .full-bleed-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{aspect-ratio:1.7777777778;min-height:unset;width:100%;height:auto;mask-size:100% 100%;-webkit-mask-size:100% 100%}@media (orientation: portrait){.phone-marquee[_ngcontent-%COMP%] .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .phone-marquee[_ngcontent-%COMP%] .full-bleed-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{-webkit-mask-image:linear-gradient(to top,#0000,#00000040 15%,#00000080 25%,#000 50%);mask-image:linear-gradient(to top,#0000,#00000040 15%,#00000080 25%,#000 50%)}}@media (orientation: landscape){.phone-marquee[_ngcontent-%COMP%] .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .phone-marquee[_ngcontent-%COMP%] .full-bleed-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{aspect-ratio:3.0967741935}.isLtr[_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .full-bleed-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .full-bleed-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{-webkit-mask-image:url(mobile_marquee_hero_mask_ltr.7fc7c054509b2c75.png);mask-image:url(mobile_marquee_hero_mask_ltr.7fc7c054509b2c75.png)}.isRtl[_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .full-bleed-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .full-bleed-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{-webkit-mask-image:url(mobile_marquee_hero_mask_rtl.40e2e47979f0f272.png);mask-image:url(mobile_marquee_hero_mask_rtl.40e2e47979f0f272.png)}}.marquee-tile-gradient-container[_ngcontent-%COMP%], .marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%]{display:contents}.marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-background-gradient[_ngcontent-%COMP%]{grid-area:1/1/3/-1;width:100%;height:100%;z-index:1}@media (orientation: portrait){.marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-background-gradient.phone-marquee[_ngcontent-%COMP%]{background:linear-gradient(to bottom,rgba(var(--scrim-color),1) calc(.5 * var(--usable-inline-size)),rgba(var(--scrim-color),.7) calc(.9 * var(--usable-inline-size)),rgba(var(--scrim-color),0) calc(1.5 * var(--usable-inline-size)))}}@media (orientation: landscape){.marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-background-gradient.phone-marquee[_ngcontent-%COMP%]{background:linear-gradient(to bottom,rgba(var(--scrim-color),1) 55%,rgba(var(--scrim-color),.5) 80%,rgba(var(--scrim-color),0))}}[_ngcontent-%COMP%]:not(.phone-marquee) .marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-background-gradient[_ngcontent-%COMP%]{background:linear-gradient(to top,rgba(var(--scrim-color),0),rgba(var(--scrim-color),.02) 3.42%,rgba(var(--scrim-color),.05) 6.68%,rgba(var(--scrim-color),.12) 9.55%,rgba(var(--scrim-color),.2) 12.3%,rgba(var(--scrim-color),.29) 15%,rgba(var(--scrim-color),.39) 17.52%,rgba(var(--scrim-color),.5),rgba(var(--scrim-color),.61) 22.48%,rgba(var(--scrim-color),.71) 25%,rgba(var(--scrim-color),.8) 27.7%,rgba(var(--scrim-color),.88) 30.45%,rgba(var(--scrim-color),.95) 33.32%,rgba(var(--scrim-color),.98) 36.58%,rgba(var(--scrim-color),1) 40%)}.marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-background-fallback-gradient[_ngcontent-%COMP%]{grid-area:1/1/3/-1;background:var(--hig-marquee-fallback-background-gradient);width:100%;height:100%;z-index:3}.marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-left-edge-gradient[_ngcontent-%COMP%]{grid-area:1/1/3/3;width:100%;height:100%;background:var(--hig-marquee-left-edge-gradient);z-index:3}.marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-left-merge-gradient[_ngcontent-%COMP%]{grid-area:1/1/1/-1;width:var(--hig-marquee-left-edge-gradient-width);height:100%;justify-self:start;background:var(--hig-marquee-left-merge-gradient);z-index:3}.marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .full-bleed-up-down-gradient[_ngcontent-%COMP%]{position:relative;grid-area:1/1/2/-1;width:100%;height:33%;align-self:end;bottom:-1px;background:var(--hig-marquee-tile-full-bleed-up-down-gradient);z-index:3}@media (min-width: 960px) and (max-width: 1439px),(min-width: 1440px) and (max-width: 1919px),(min-width: 1920px){[_nghost-%COMP%]{--hig-marquee-left-edge-gradient-width: calc(7 * var(--rwd-column-size) + 6 * var(--rwd-gutter-size))}}.marquee-button-prev[_ngcontent-%COMP%]{grid-area:1/1/2/2;position:relative;margin:16px;z-index:4}.isLtr[_nghost-%COMP%] .marquee-button-prev[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .marquee-button-prev[_ngcontent-%COMP%]{justify-self:left;left:var(--hig-marquee-button-prev-left)}.isRtl[_nghost-%COMP%] .marquee-button-prev[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-button-prev[_ngcontent-%COMP%]{justify-self:right;right:var(--hig-marquee-button-prev-left)}.marquee-button-next[_ngcontent-%COMP%]{grid-area:1/-2/2/-1;position:relative;margin:16px;z-index:4}.isLtr[_nghost-%COMP%] .marquee-button-next[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .marquee-button-next[_ngcontent-%COMP%]{justify-self:right}.isRtl[_nghost-%COMP%] .marquee-button-next[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-button-next[_ngcontent-%COMP%]{justify-self:left}@media (max-width: 479px){.marquee-button-prev[_ngcontent-%COMP%]{grid-area:1/1/5/2}.marquee-button-next[_ngcontent-%COMP%]{grid-area:1/-2/5/-1}}.full-bleed-image-container[_ngcontent-%COMP%]{grid-area:1/1/2/-1;position:relative;z-index:2;height:100%;justify-self:stretch}@media (orientation: portrait){.phone-marquee[_ngcontent-%COMP%] .full-bleed-image-container[_ngcontent-%COMP%]{grid-area:1/1/3/-1}}@media (orientation: landscape){.phone-marquee[_ngcontent-%COMP%] .full-bleed-image-container[_ngcontent-%COMP%]{grid-area:1/2/3/-1}}.full-bleed-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.mobile-view.full-bleed-item[_ngcontent-%COMP%]:not(.phone-marquee){--full-bleed-left-column: 16px}@media (orientation: portrait){.mobile-view.full-bleed-item[_ngcontent-%COMP%]:not(.phone-marquee){--full-bleed-left-column: 8px}}.mobile-view.full-bleed-item[_ngcontent-%COMP%]:not(.phone-marquee).full-bleed-item-not-first-position{--full-bleed-left-column: var(--hig-marquee-corner-column)}.mobile-view.full-bleed-item[_ngcontent-%COMP%]:not(.phone-marquee).marquee-container{--split-column: calc(var(--hig-marquee-corner-column) - var(--full-bleed-left-column));grid-template-columns:var(--full-bleed-left-column) var(--split-column) var(--hig-marquee-text-column) calc(.06 * var(--usable-inline-size)) 1fr var(--hig-marquee-corner-column)}.mobile-view.full-bleed-item[_ngcontent-%COMP%]:not(.phone-marquee).marquee-container .marquee-button-next[_ngcontent-%COMP%]{grid-area:1/6/2/-1}.mobile-view.full-bleed-item[_ngcontent-%COMP%]:not(.phone-marquee).marquee-container .marquee-indicators[_ngcontent-%COMP%]{grid-area:1/3/1/-1}.mobile-view.full-bleed-item[_ngcontent-%COMP%]:not(.phone-marquee).marquee-container .marquee-tile-overlay-container[_ngcontent-%COMP%]{grid-area:1/2/2/5}.full-bleed-overlay-content[_ngcontent-%COMP%]{text-align:start;width:var(--full-bleed-overlay-content-width);max-width:var(--full-bleed-overlay-content-max-width)}.full-bleed-overlay-content[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 14px;--font-body-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%]{--font-body-size: 28px;--font-body-line-height: 40px;--font-body-color: rgba(255, 255, 255, .85)}.mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%]{word-break:break-word;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--text-overlay-content-body-lines);align-self:center;text-overflow:ellipsis}[_ngcontent-%COMP%]:not(.mobile-view):not(.full-bleed-item) .full-bleed-overlay-content[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%]{-webkit-line-clamp:var(--text-overlay-content-body-lines)}.full-bleed-overlay-content[_ngcontent-%COMP%] .info-font[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 14px;--font-body-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0;font-style:italic;margin-top:var(--full-bleed-info-margin-top)}.tv-view[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .info-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .info-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .info-font[_ngcontent-%COMP%]{--font-body-size: 28px;--font-body-line-height: 40px;--font-body-color: rgba(255, 255, 255, .85)}.mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .info-font[_ngcontent-%COMP%]{word-break:break-word;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:center;text-overflow:ellipsis}[_ngcontent-%COMP%]:not(.mobile-view):not(.full-bleed-item) .full-bleed-overlay-content[_ngcontent-%COMP%] .info-font[_ngcontent-%COMP%]{-webkit-line-clamp:2}.full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%]{--font-header-font-size: 34px;--font-header-line-height: 48px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:700;margin-bottom:var(--full-bleed-title-margin-bottom)}.tv-view[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%]{--font-header-font-size: 68px;--font-header-line-height: 96px}.mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%]{word-break:break-word;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--text-overlay-content-title-lines);align-self:center;text-overflow:ellipsis}[_ngcontent-%COMP%]:not(.mobile-view):not(.full-bleed-item) .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%]{-webkit-line-clamp:var(--text-overlay-content-title-lines)}.mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 12px;--font-body-line-height: 16px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%]{--font-body-size: 24px;--font-body-line-height: 32px;--font-body-color: rgba(255, 255, 255, .85)}.mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .info-font[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 12px;--font-body-line-height: 16px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0;font-style:italic}.tv-view[_ngcontent-%COMP%] .mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .info-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .info-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .info-font[_ngcontent-%COMP%]{--font-body-size: 24px;--font-body-line-height: 32px;--font-body-color: rgba(255, 255, 255, .85)}.mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%]{--font-header-font-size: 24px;--font-header-line-height: 32px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%]{--font-header-font-size: 48px;--font-header-line-height: 64px}.phone-marquee.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%]{margin-top:16px}.phone-marquee.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%]{--font-header-font-size: 20px;--font-header-line-height: 28px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500;margin-bottom:0}.tv-view[_ngcontent-%COMP%] .phone-marquee.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .phone-marquee.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .phone-marquee.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%]{--font-header-font-size: 40px;--font-header-line-height: 56px}@media (orientation: portrait){.phone-marquee[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%]{text-align:center;width:var(--usable-inline-size)}.phone-marquee[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .marquee-tile-action-button[_ngcontent-%COMP%]{margin-top:auto}}@media (orientation: landscape){.phone-marquee[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .marquee-tile-action-button[_ngcontent-%COMP%]{margin-top:var(--hig-marquee-tile-action-button-margin-top)}}.marquee-tile-overlay-container[_ngcontent-%COMP%]{grid-area:1/2/2/4;width:100%;position:relative;z-index:4;justify-self:flex-start;display:flex;align-items:center;padding-bottom:var(--text-overlay-content-padding-bottom)}.isLtr[_nghost-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{padding-left:var(--hig-marquee-tile-overlay-container-margin-left)}html[dir=ltr][_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{--dummy1: 0;padding-left:var(--hig-marquee-tile-overlay-container-margin-left)}.isRtl[_nghost-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{padding-right:var(--hig-marquee-tile-overlay-container-margin-left)}html[dir=rtl][_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{--dummy1: 0;padding-right:var(--hig-marquee-tile-overlay-container-margin-left)}.marquee-tile-overlay-container[_ngcontent-%COMP%] .marquee-tile-data[_ngcontent-%COMP%]{width:100%}.marquee-tile-overlay-container[_ngcontent-%COMP%] .marquee-app-title[_ngcontent-%COMP%]{width:100%;height:auto;-webkit-line-clamp:3}.marquee-tile-overlay-container[_ngcontent-%COMP%] .subtitle-container[_ngcontent-%COMP%]{margin-top:24px;justify-content:center;text-align:center}.marquee-tile-overlay-container[_ngcontent-%COMP%] .subtitle-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{color:inherit}.phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{padding-bottom:0;pointer-events:none}.isLtr[_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{padding-left:0}html[dir=ltr][_ngcontent-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{--dummy1: 0;padding-left:0}.isRtl[_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{padding-right:0}html[dir=rtl][_ngcontent-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{--dummy1: 0;padding-right:0}.phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .marquee-app-title[_ngcontent-%COMP%]{width:160px;height:90px;padding-bottom:8px}@media screen and (max-width: 667px) and (max-height: 375px) and (orientation: landscape){.phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .marquee-app-title[_ngcontent-%COMP%]{width:132px;height:74px}}@media (orientation: portrait){.phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{grid-area:2/1/4/-1;height:100%;align-items:stretch}.phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .overlay-content[_ngcontent-%COMP%], .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%}.phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%]{width:calc(var(--usable-inline-size) - 48px);padding:0 24px}.phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .marquee-tile-data[_ngcontent-%COMP%]{width:100%;height:100%;padding:0 24px}.phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .subtitle-container[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:16px}}@media (orientation: landscape){.phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{grid-area:1/2/2/11;width:100%;padding-top:10px}.phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .subtitle-container[_ngcontent-%COMP%]{margin-top:0;padding-bottom:16px}.isLtr[_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}}@media (orientation: landscape){.phone-marquee.full-bleed-item[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{grid-area:1/1/2/5}}.marquee-tile-overlay-container[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%], .marquee-tile-overlay-container[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.marquee-load-container[_ngcontent-%COMP%]{margin-bottom:61px;height:0;display:grid;align-items:center;justify-items:center;box-sizing:border-box}@keyframes _ngcontent-%COMP%_nv-hig-marquee_fadeInMarquee{0%{opacity:0;transform:translate(1%)}to{opacity:1;transform:translate(0)}}.fadeInMarquee[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_nv-hig-marquee_fadeInMarquee var(--hig-marquee-animation-duration) forwards}.hidden[_ngcontent-%COMP%]{content-visibility:hidden}@keyframes _ngcontent-%COMP%_nv-hig-marquee_fadeInMarqueeDescription{0%{opacity:0}to{opacity:1}}.fadeInMarqueeDescription[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_nv-hig-marquee_fadeInMarqueeDescription var(--hig-marquee-animation-duration) forwards}.marquee-tile-action-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;color:#fff;margin-top:var(--hig-marquee-tile-action-button-margin-top)}.phone-marquee[_ngcontent-%COMP%] .marquee-tile-action-button[_ngcontent-%COMP%]{pointer-events:auto;margin-top:0}@media (orientation: portrait){.phone-marquee[_ngcontent-%COMP%] .marquee-tile-action-button[_ngcontent-%COMP%]{margin-bottom:16px}}.tv-mode[_ngcontent-%COMP%] .marquee-tile-action-button[_ngcontent-%COMP%]{height:72px;margin-top:var(--hig-marquee-tile-action-button-margin-top);min-width:-moz-fit-content;min-width:fit-content}.overlay-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}.marquee-indicators[_ngcontent-%COMP%]{grid-area:1/2/1/-1;align-self:end;z-index:4}.isLtr[_nghost-%COMP%] .marquee-indicators[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .marquee-indicators[_ngcontent-%COMP%]{padding-right:90px}html[dir=ltr][_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%]{--dummy2: 0;padding-right:90px}.isRtl[_nghost-%COMP%] .marquee-indicators[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-indicators[_ngcontent-%COMP%]{padding-left:90px}html[dir=rtl][_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%]{--dummy2: 0;padding-left:90px}.paginator-navigation.phone-marquee[_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%]{align-self:start;margin:0}@media (orientation: portrait){.paginator-navigation.phone-marquee[_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%]{margin:0 0 16px;grid-area:4/1/4/-1}}@media (orientation: landscape){.paginator-navigation.phone-marquee[_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%]{grid-area:2/1/2/-1}}.paginator-navigation[_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%]{padding:0 8px;align-items:center;display:flex;width:-moz-fit-content;width:fit-content;height:23px}.paginator-navigation[_ngcontent-%COMP%] .marquee-indicators.cdk-keyboard-focused[_ngcontent-%COMP%]{border-radius:12px;background-color:#ffffff52;transition:background-color .75s ease}.paginator-navigation.tv-mode[_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%]{height:48px}.paginator-navigation.tv-mode[_ngcontent-%COMP%] .marquee-indicators.cdk-keyboard-focused[_ngcontent-%COMP%]{border-radius:22px}.marquee-indicators[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-block;box-shadow:1px 1px 1px #00000080;border-radius:var(--hig-marquee-indicator-border-radius);background:#636363;transition:all .2s ease;width:32px;height:6px;margin-bottom:2px}.isLtr[_nghost-%COMP%] .marquee-indicators[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .marquee-indicators[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .marquee-indicators[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-indicators[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.paginator-navigation[_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{border-radius:50%;width:7px;height:7px;margin:4px}.paginator-navigation[_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{width:11px;height:11px;margin:2px}.paginator-navigation.tv-mode[_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{border-radius:50%;width:16px;height:16px;margin:12px}.paginator-navigation.tv-mode[_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{width:24px;height:24px;margin:8px}.marquee-indicators[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{background:#76b900}@media (hover: hover) and (any-pointer: fine){.marquee-indicators[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover:not(.active){cursor:pointer;background:#76b90080}}.errorPlaceholder[_ngcontent-%COMP%]{margin-bottom:61px;height:0;text-align:center;opacity:.5;box-sizing:border-box}.tv-mode[_ngcontent-%COMP%]{--hig-marquee-promo-tag-height: 42px;--hig-marquee-promo-tag-horizontal-padding: 10px}.mobile-view[_ngcontent-%COMP%]{--hig-marquee-promo-tag-height: 16px;--hig-marquee-promo-tag-horizontal-padding: 6px}.mobile-view[_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{--font-sub-shared-font-size: 12px;--font-sub-shared-line-height: 16px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0;line-height:16px}.tv-view[_ngcontent-%COMP%] .mobile-view[_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .mobile-view[_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .mobile-view[_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{--font-sub-shared-font-size: 24px;--font-sub-shared-line-height: 32px}.marquee-promo-tag-container[_ngcontent-%COMP%]{background:#292929;position:absolute;top:var(--hig-marquee-promo-tag-container-top);z-index:5}.isLtr[_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%]{left:0}html[dir=ltr][_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%]{--dummy5: 0;left:0}.isRtl[_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%]{right:0}html[dir=rtl][_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%]{--dummy5: 0;right:0}.isLtr[_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%]{right:unset}html[dir=ltr][_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%]{--dummy6: 0;right:unset}.isRtl[_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%]{left:unset}html[dir=rtl][_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%]{--dummy6: 0;left:unset}.phone-marquee[_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%]{top:5px}.marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag-border[_ngcontent-%COMP%]{height:var(--hig-marquee-promo-tag-height);width:calc(var(--hig-marquee-promo-tag-height) / 2);background-color:#76b900}.isLtr[_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag-border[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag-border[_ngcontent-%COMP%]{clip-path:polygon(0% 0%,100% 0%,25% 100%,0% 100%)}.isRtl[_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag-border[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag-border[_ngcontent-%COMP%]{clip-path:polygon(0% 0%,75% 100%,100% 100%,100% 0%)}.marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{height:var(--hig-marquee-promo-tag-height);display:flex;align-items:center;--font-sub-shared-font-size: 16px;--font-sub-shared-line-height: 24px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0}.isLtr[_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{padding-left:var(--hig-marquee-promo-tag-horizontal-padding)}html[dir=ltr][_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{--dummy1: 0;padding-left:var(--hig-marquee-promo-tag-horizontal-padding)}.isRtl[_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{padding-right:var(--hig-marquee-promo-tag-horizontal-padding)}html[dir=rtl][_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{--dummy1: 0;padding-right:var(--hig-marquee-promo-tag-horizontal-padding)}.isLtr[_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{padding-right:var(--hig-marquee-promo-tag-horizontal-padding)}html[dir=ltr][_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{--dummy2: 0;padding-right:var(--hig-marquee-promo-tag-horizontal-padding)}.isRtl[_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{padding-left:var(--hig-marquee-promo-tag-horizontal-padding)}html[dir=rtl][_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{--dummy2: 0;padding-left:var(--hig-marquee-promo-tag-horizontal-padding)}.tv-view[_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{--font-sub-shared-font-size: 32px;--font-sub-shared-line-height: 48px}.marquee-scrim[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:var(--hig-marquee-scrim-opacity);background:linear-gradient(180deg,#000 68%,#0000);z-index:6;pointer-events:none;transition:opacity .15s ease}.overlay-content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;aspect-ratio:1.7777777778}"],changeDetection:0})}}return vt})();var yo=s(31315),Zr=s(65706),Yr=s(94329);let go=(()=>{class vt{get focusableElement(){return this._focusableElement=this.spatialNavigationService.isFocusable(this._elementRef.nativeElement)?this._elementRef.nativeElement:this.focusManager.getFirstFocusableChild(this.elementRef.nativeElement,this.spatialNavigationService.isFocusable.bind(this.spatialNavigationService)),this._focusableElement}get elementRef(){return this._elementRef}constructor(Ee,kt,Qt){this.focusManager=kt,this.spatialNavigationService=Qt,this._focusableElement=null,this._elementRef=Ee}focus(Ee){this.focusManager.navigateTo(this.focusableElement,Ee)}static{this.\u0275fac=function(kt){return new(kt||vt)(d.rXU(d.aKT),d.rXU(fi.c),d.rXU(On.E))}}static{this.\u0275dir=d.FsC({type:vt,selectors:[["","nvFastSpatialNavigationItem",""]],standalone:!0})}}return vt})();var zo=s(6364);let si=(()=>{class vt{get enableFastNavigation(){return this._enalbeFastNavigation}set enableFastNavigation(Ee){this._enalbeFastNavigation=(0,zo.he)(Ee)}get orientation(){return this._orientation}set orientation(Ee){this._orientation=Ee}get containFocus(){return this._containFocus}set containFocus(Ee){this._containFocus=Array.isArray(Ee)?Ee:(0,zo.he)(Ee)}get isRTL(){return this._isRTL}set isRTL(Ee){this._isRTL=(0,zo.he)(Ee)}constructor(Ee,kt,Qt){this.container=Ee,this.spatialNavigationService=kt,this.ngZone=Qt,this._enalbeFastNavigation=!0,this._orientation="horizontal",this._containFocus=!1,this._isRTL=!1,this.destroy$=new Xt.B7}ngAfterViewInit(){this.spatialNavigationService.enabled&&this.ngZone.runOutsideAngular(()=>{(0,Ht.R)(this.container.nativeElement,"keydown").pipe((0,et.p)(this.checkDirection.bind(this)),(0,rt.Q)(this.destroy$)).subscribe(this.onKeydown.bind(this))})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}checkDirection(Ee){return"horizontal"===this.orientation?"ArrowLeft"===Ee.key||"ArrowRight"===Ee.key:"vertical"===this.orientation&&("ArrowUp"===Ee.key||"ArrowDown"===Ee.key)}getOffset(Ee){let kt=0;return"horizontal"===this.orientation?(kt="ArrowLeft"===Ee?-1:1,kt*=this.isRTL?-1:1):"vertical"===this.orientation&&(kt="ArrowDown"===Ee?1:-1),kt}onKeydown(Ee){if(!this.enableFastNavigation)return;const kt=Ee.key,Qt=this.getOffset(kt),Zn=this.getCurrentFocusedIndex();if(Zn<0)return;let Vi=Zn+Qt;const vr=(0,be.G2)(kt);let hr=!1;for(;!this.isOutofBoundary(Vi)&&!this.items.get(Vi).focusableElement;)Vi+=Qt;!this.isOutofBoundary(Vi)&&this.items.get(Vi).focusableElement?(this.items.get(Vi).focus(vr),hr=!0):hr=this.spatialNavigationService.shouldContainFocus(vr,this.containFocus),hr&&(Ee.preventDefault(),Ee.stopPropagation())}isOutofBoundary(Ee){return Ee<0||Ee>=this.items.length}getCurrentFocusedIndex(){let Ee=document.activeElement;for(;Ee&&Ee!==this.container.nativeElement;){if(Ee.hasAttribute("nvFastSpatialNavigationItem")){const kt=this.items.toArray().findIndex(Qt=>Qt?.elementRef?.nativeElement===Ee);if(-1!==kt)return kt}Ee=Ee.parentElement}return-1}static{this.\u0275fac=function(kt){return new(kt||vt)(d.rXU(d.aKT),d.rXU(On.E),d.rXU(d.SKi))}}static{this.\u0275dir=d.FsC({type:vt,selectors:[["","nvFast1DSpatialNavigation",""]],contentQueries:function(kt,Qt,Zn){if(1&kt&&d.wni(Zn,go,5),2&kt){let Vi;d.mGM(Vi=d.lsd())&&(Qt.items=Vi)}},inputs:{enableFastNavigation:"enableFastNavigation",orientation:"orientation",containFocus:"containFocus",isRTL:"isRTL"},standalone:!0})}}return vt})(),to=(()=>{class vt{get enableFocusBack(){return this._enableFocusBack}set enableFocusBack(Ee){this._enableFocusBack=(0,zo.he)(Ee)}get scrollPosition(){return this.scroller?.measureScrollOffset()}constructor(Ee,kt,Qt,Zn){this.elementRef=Ee,this.focusManager=kt,this.ngZone=Qt,this.scroller=Zn,this._enableFocusBack=!0,this.destroy$=new Xt.B7}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}ngAfterViewInit(){this.enableFocusBack&&this.ngZone.runOutsideAngular(()=>{(0,Ht.R)(this.elementRef.nativeElement,"keydown").pipe((0,et.p)(Ee=>"Escape"===Ee.key&&!Ee.defaultPrevented),(0,rt.Q)(this.destroy$)).subscribe(this.onKeydownEvent.bind(this))})}onKeydownEvent(Ee){this.focusInitialFocusable()&&(Ee.stopPropagation(),Ee.preventDefault())}focusInitialFocusable(){if(this.scroller&&0!==this.scrollPosition)return this.elementScrolledSub||this.scrollThenFocusInitialFocusable(this.scroller?.elementRef?.nativeElement),!0;const kt=this.focusManager.getInitialFocusable(this.scroller?.elementRef?.nativeElement??this.elementRef?.nativeElement);return!(kt===document.activeElement||!kt?.isConnected||(this.focusManager.focusViaLastOrigin(kt),0))}scrollThenFocusInitialFocusable(Ee){let kt=this.scrollPosition;this.elementScrolledSub=this.scroller.elementScrolled().pipe((0,rt.Q)(this.destroy$)).subscribe(()=>{0===this.scrollPosition||this.scrollPosition>kt?(0===this.scrollPosition&&this.focusManager.focusChild(Ee,"initial"),this.elementScrolledSub.unsubscribe(),this.elementScrolledSub=void 0):kt=this.scrollPosition}),this.scroller.scrollToIndex(0,"auto")}static{this.\u0275fac=function(kt){return new(kt||vt)(d.rXU(d.aKT),d.rXU(fi.c),d.rXU(d.SKi),d.rXU(a.d6,8))}}static{this.\u0275dir=d.FsC({type:vt,selectors:[["","nvFocusBack",""]],inputs:{enableFocusBack:"enableFocusBack"},exportAs:["nvFocusBack"],standalone:!0})}}return vt})();var ot=s(80362),Vt=s(15652),Sn=s(87781),Bn=s(34842),Ti=s(27594),Li=s(63997),dr=s(83915),Fr=s(48765),br=s(80412);class qn{constructor(en,Ee,kt,Qt){if(this.container=en,this.onScrollStatusChanged=new Xt.B7,this.isComplete=!1,this.isStarted=!1,!(en&&en instanceof HTMLElement))throw new Error(`${en.tagName} is not a valid container`);if(this.easingFunction=Qt?.easingFunction??Sn.sn,Qt?.duration&&Qt.duration<0)throw new Error(`${Qt.duration} is not a valid duration. the duration must greater or equal than 0.`);this.duration=Qt?.duration??200,this.startX=en.scrollLeft,this.startY=en.scrollTop,this.scrollAmountX=Ee-this.startX,this.scrollAmountY=kt-this.startY}onScrollStart(){return this.onScrollStatusChanged.pipe((0,et.p)(en=>en))}onScrollEnd(){return this.onScrollStatusChanged.pipe((0,et.p)(en=>!en))}start(){if(this.isComplete||this.isStarted)throw new Error(`the scrolling is ${this.isComplete?"completed":"started"}.`);return function Ut(vt,en=Ti.X){return function rr(vt=Ti.X){return(0,Li.v)(()=>{const en=vt.now();return(0,tt.Y)(0,vt).pipe((0,dr.T)(()=>vt.now()-en))})}(en).pipe((0,dr.T)(Ee=>Ee/vt),(0,Fr.v)(Ee=>Ee<1),(0,br.q)(1))}(this.duration).pipe((0,Gt.M)(()=>{this.isStarted||(this.isStarted=!0,this.onScrollStatusChanged.next(!0))}),(0,dr.T)(en=>this.easingFunction(en)),(0,dr.T)(en=>(this.container.scrollLeft=this.startX+this.scrollAmountX*en,this.container.scrollTop=this.startY+this.scrollAmountY*en,en)),(0,Wt.j)(()=>{this.isComplete=!0,this.onScrollStatusChanged.next(!1)}))}}let ci=(()=>{class vt{get enabled(){return this._enabled}set enabled(Ee){this._enabled=(0,zo.he)(Ee)}get enableKeyThrottle(){return this._enableKeyThrottle}set enableKeyThrottle(Ee){this._enableKeyThrottle=(0,zo.he)(Ee)}constructor(Ee,kt,Qt,Zn,Vi){this.spatialNavigationService=Ee,this.elementRef=kt,this.focusManager=Qt,this.ngZone=Vi,this.spacingTop=0,this.spacingBottom=0,this.spacingLeft=0,this.spacingRight=0,this._enabled=!0,this._enableKeyThrottle=!0,this.cancelScrolling$=new Xt.B7,this.destroy$=new Xt.B7,this.navBeforeFocus=vr=>{if(!(this.enabled&&vr.target instanceof HTMLElement))return;const hr=this.scrollerElement,qr=this.orientation;if(!hr||!qr)return;const so=vr.target;if(!hr.contains(so))return;const Cs=hr.getBoundingClientRect(),ba=(0,Bn.wT)(so);if(this.isVisibleInScroller(ba,Cs,qr))return;vr.preventDefault();const As=this.calculateRequiredScrollAmount(ba,Cs,qr);if(0===As)return;this.focusManager.focusViaLastOrigin(so,{preventScroll:!0});const{x:ol,y:cl}=this.getDestinationCoordinates(As);this.isScrolling&&this.cancelScrolling$.next();const Sa=new qn(this.scrollerElement,ol,cl,{easingFunction:Sn.p_,duration:96});this.enableKeyThrottle&&(0,Ht.R)(so,"keydown",{capture:!0}).pipe((0,rt.Q)((0,Vt.O4)(Sa.onScrollEnd(),this.cancelScrolling$,this.destroy$))).subscribe(this.swallowKeydownEvent),this.doScrolling(Sa)},this.logger=Zn.getLogger("focusThenScrollDirective")}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{this.elementRef.nativeElement.addEventListener("navbeforefocus",this.navBeforeFocus)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.elementRef.nativeElement.removeEventListener("navbeforefocus",this.navBeforeFocus)}isVisibleInScroller(Ee,kt,Qt){return"horizontal"===Qt&&Ee.left>=kt.left&&Ee.right<=kt.right||"vertical"===Qt&&Ee.top>=kt.top&&Ee.bottom<=kt.bottom}calculateRequiredScrollAmount(Ee,kt,Qt){let Zn=0;return Zn="horizontal"===Qt?Ee.left<kt.left?Ee.left-this.spacingLeft-kt.left:Ee.right+this.spacingRight-kt.right:Ee.top<kt.top?Ee.top-this.spacingTop-kt.top:Ee.bottom+this.spacingBottom-kt.bottom,Zn}getDestinationCoordinates(Ee){let kt=this.scrollerElement.scrollLeft,Qt=this.scrollerElement.scrollTop;return"horizontal"===this.orientation?kt+=Ee:Qt+=Ee,{x:kt,y:Qt}}swallowKeydownEvent(Ee){Ee.stopPropagation(),Ee.preventDefault()}doScrolling(Ee){Ee.onScrollEnd().pipe((0,Zr.s)(1),(0,rt.Q)((0,Vt.O4)(this.destroy$,this.cancelScrolling$))).subscribe(()=>{this.isScrolling=!1}),Ee.onScrollStart().pipe((0,Zr.s)(1),(0,rt.Q)((0,Vt.O4)(this.destroy$,this.cancelScrolling$))).subscribe(()=>{this.isScrolling=!0}),Ee.start().pipe((0,rt.Q)((0,Vt.O4)(this.cancelScrolling$,this.destroy$))).subscribe()}static{this.\u0275fac=function(kt){return new(kt||vt)(d.rXU(On.E),d.rXU(d.aKT),d.rXU(fi.c),d.rXU(hn.J6),d.rXU(d.SKi))}}static{this.\u0275dir=d.FsC({type:vt,inputs:{spacingTop:"spacingTop",spacingBottom:"spacingBottom",spacingLeft:"spacingLeft",spacingRight:"spacingRight",enabled:[d.Mj6.None,"enableFocusThenScroll","enabled"],enableKeyThrottle:"enableKeyThrottle"}})}}return vt})(),Tr=(()=>{class vt extends ci{constructor(Ee,kt,Qt,Zn,Vi,vr){super(kt,Zn,Qt,Vi,vr),this.scroller=Ee}get orientation(){return this.scroller.orientation}get scrollerElement(){return this.scroller.getElementRef().nativeElement}static{this.\u0275fac=function(kt){return new(kt||vt)(d.rXU(a.d6),d.rXU(On.E),d.rXU(fi.c),d.rXU(d.aKT),d.rXU(hn.J6),d.rXU(d.SKi))}}static{this.\u0275dir=d.FsC({type:vt,selectors:[["","nvSpatialNavigationVirtualScroll",""],["cdk-virtual-scroll-viewport","nvSpatialNavigationContainer","","navigateAction","focus"],["cdk-virtual-scroll-viewport","nvSpatialNavigationGroup","","navigateAction","focus"]],standalone:!0,features:[d.Vt3]})}}return vt})();const Jr=["wrapper"],oo=["container"],Qo=["carousel"],fo=(vt,en)=>({$implicit:vt,index:en}),Xr=vt=>({hidden:vt});function Go(vt,en){}function Ss(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"div",9,3),d.bIt("focusin",function(){const Qt=d.eBV(Ee).index,Zn=d.XpG();return d.Njj(Zn.onTileFocused(Qt))})("focusout",function(){d.eBV(Ee);const Qt=d.XpG();return d.Njj(Qt.onTileFocusOut())}),d.DNE(2,Go,0,0,"ng-template",10),d.k0s()}if(2&vt){const Ee=en.$implicit,kt=en.index,Qt=en.first,Zn=en.last,Vi=d.XpG();d.xc7("height",Vi.itemHeight,"px"),d.AVh("first",Qt)("last",Zn),d.R7$(2),d.Y8G("ngTemplateOutlet",Vi.template)("ngTemplateOutletContext",d.l_i(8,fo,Ee,kt))}}function kr(vt,en){if(1&vt){const Ee=d.RV6();d.qex(0),d.j41(1,"button",11),d.bIt("click",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.Njj(Zn.moveLeft(Qt))}),d.nrm(2,"mat-icon",12),d.k0s(),d.j41(3,"button",13),d.bIt("click",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.Njj(Zn.moveRight(Qt))}),d.nrm(4,"mat-icon",14),d.k0s(),d.bVm()}if(2&vt){const Ee=d.XpG();d.R7$(),d.Y8G("ngClass",d.eq3(2,Xr,!Ee.showLeftCarouselButton)),d.R7$(2),d.Y8G("ngClass",d.eq3(4,Xr,!Ee.showRightCarouselButton))}}let ka=(()=>{class vt{get items(){return this._items}set items(Ee){let kt=!1;if(this._itemsOriginal&&this._itemsOriginal?.length===Ee.length)for(let Qt=0;Qt<this._items.length;Qt++)this._items[Qt].id!==Ee[Qt].id&&(kt=!0);else kt=!0;kt&&(this._itemsOriginal=Ee,this._items=Ee.slice(),this.initialized&&this.initCarousel())}get scrollLeft(){return this.container.measureScrollOffset()}set scrollLeft(Ee){this.container.scrollTo({start:Ee,behavior:"auto"})}constructor(Ee,kt,Qt,Zn,Vi){this.ngZone=Qt,this.spatialNavigationService=Zn,this.changeDetector=Vi,this.animationDuration=1e3,this.easingFunction=Yr(.35,.37,.2,1),this.defaultResizeDebounceTime=200,this.showLeftCarouselButton=!1,this.showRightCarouselButton=!1,this.carouselButtonsVisibility=!1,this.carouselDirection="ltr",this.itemOffsets=[],this.extraMargin=32,this.extraMarginHeight=8,this.itemWidth=270,this.itemHeight=150,this.spatialNavigationSpacingLeft=0,this.spatialNavigationSpacingRight=0,this.initialized=!1,this.navNoTarget=vr=>{const hr=vr.detail.dir;("left"===hr||"right"===hr)&&vr.preventDefault()},this.logger=Ee.getLogger("Hig/CarouselComponent"),this.carouselDirection=kt.isRTLLayoutEnabled?"rtl":"ltr",this.destroy$=new Xt.B7,this.enableButtons=!this.mobileMode,this.resizeDebounceTime=this.defaultResizeDebounceTime}onTileFocused(Ee){const Qt=Ee-this.firstPositiveWidthTileIndex==0;this.isFirstTileFocused!==Qt&&(this.isFirstTileFocused=Qt,this.changeDetector.detectChanges()),this.currentFocusedIndex=Ee}onTileFocusOut(){this.currentFocusedIndex=-1}ngAfterViewInit(){setTimeout(()=>{this.initCarousel()}),ke._4.onResize(this.wrapper.nativeElement).pipe((0,St.B)(this.resizeDebounceTime),(0,rt.Q)(this.destroy$)).subscribe(Ee=>this.resizeCarousel()),this.ngZone.runOutsideAngular(()=>{this.carousel.nativeElement.addEventListener("navnotarget",this.navNoTarget),(0,Ht.R)(this.carousel.nativeElement,"scroll").pipe((0,St.B)(100),(0,rt.Q)(this.destroy$)).subscribe(Ee=>{this.ngZone.run(()=>{this.onScroll(Ee)})})})}get hasFocusedItem(){return this.currentFocusedIndex>=0}parseMargin(Ee,kt=Ee,Qt=Ee,Zn=kt){return{top:Ee,right:kt,bottom:Qt,left:Zn}}initCarousel(){const Ee=getComputedStyle(this.sizingElement.nativeElement);let kt=(0,ke.c2)(Ee.getPropertyValue(this.itemProperty.widthCSSVar)),Qt=(0,ke.c2)(Ee.getPropertyValue(this.itemProperty.heightCSSVar));if(kt<0||Qt<0)return void this.logger.warn("Cannot show tile as width or height is less than zero",kt,Qt);const Zn=(0,ke.c2)(Ee.getPropertyValue(this.itemProperty.maxWidthCSSVar)),Vi=(0,ke.c2)(Ee.getPropertyValue(this.itemProperty.maxHeightCSSVar));kt=Math.min(kt,+Zn),Qt=Math.min(Qt,+Vi);const vr=Ee.getPropertyValue(this.itemProperty.marginCSSVar).trim().replace(/\s+/g," ").split(" "),[hr,...qr]=vr,so=this.parseMargin(hr,...qr);this.extraMargin=parseInt(Ee.getPropertyValue(this.containerLeftMarginStr),10),this.extraMarginHeight=parseInt(Ee.getPropertyValue(this.containerTopMarginStr),10);const Cs=parseInt(so.left,10),ba=parseInt(so.right,10);this.spatialNavigationSpacingLeft=this.extraMargin+Cs,this.spatialNavigationSpacingRight=this.extraMargin+ba,Qt+=parseInt(so.top,10)+parseInt(so.bottom,10)+this.extraMarginHeight,kt+=Cs+ba;const As=this.carousel.nativeElement.getBoundingClientRect().width;this.itemWidth=kt,this.itemHeight=Qt,this.itemOffsets=[0];let ol=0;this.firstPositiveWidthTileIndex=-1,this.items.forEach((Sa,ya)=>{let bl=Sa.visibility?this.itemWidth:0;Sa.visibility&&-1===this.firstPositiveWidthTileIndex&&(this.firstPositiveWidthTileIndex=ya),(0===ya||ya===this.items.length-1)&&(bl+=this.extraMargin),ol+=bl,this.itemOffsets.push(ol)}),this.itemOffsets=this.itemOffsets.slice(),this.scrollLimit=this.itemOffsets[this.itemOffsets.length-1]-As,this.scrollLimit<this.extraMargin&&(this.scrollLimit=0);const cl=this.itemWidth>0?Math.floor(As/this.itemWidth):0;this.scrollAmountWithButton=cl*this.itemWidth,this.enableButtons&&this.updateButtonVisibility(),this.initialized=!0,this.changeDetector.detectChanges()}jumpToTile(Ee){this.scrollLeft=Math.min(this.scrollLimit,this.itemWidth*(Ee-this.firstPositiveWidthTileIndex))}moveRightValue(Ee){const kt=this.container.getElementRef().nativeElement.scrollLeft+Ee;this.animateScrollLeft(kt)}moveLeftValue(Ee){const kt=this.container.getElementRef().nativeElement.scrollLeft-Ee;this.animateScrollLeft(kt)}moveRight(Ee){this.moveRightValue(this.scrollAmountWithButton)}moveLeft(Ee){this.moveLeftValue(this.scrollAmountWithButton)}cancelScrollAnimationIfNeeded(){this.animationSubscription?.unsubscribe(),this.animationSubscription=null}animateScrollLeft(Ee){this.cancelScrollAnimationIfNeeded();const kt=new qn(this.container.getElementRef().nativeElement,Ee,0,{duration:this.animationDuration,easingFunction:this.easingFunction});kt.onScrollEnd().pipe((0,Zr.s)(1),(0,rt.Q)(this.destroy$)).subscribe(()=>{this.updateButtonVisibility()}),this.animationSubscription=kt.start().pipe((0,rt.Q)(this.destroy$)).subscribe()}resizeCarousel(){setTimeout(()=>{this.initCarousel(),this.hasFocusedItem?this.scrollFocusedItemIntoViewport():this.scrollLeft=0})}scrollFocusedItemIntoViewport(){return(0,yo.zV)([this.spatialNavigationService.isFullyInViewport(document.activeElement),this.spatialNavigationService.isFullyInViewport(this.carousel.nativeElement)]).pipe((0,Zr.s)(1),(0,rt.Q)(this.destroy$)).subscribe(([Ee,kt])=>{Ee&&kt||(this.carousel.nativeElement.scrollIntoView({behavior:"smooth",block:"center"}),this.jumpToTile(this.currentFocusedIndex))})}childrenChanged(){this.initCarousel()}onMouseEnter(){this.enableButtons&&(this.carouselButtonsVisibility=!0,this.changeDetector.detectChanges())}onMouseLeave(){this.enableButtons&&(this.carouselButtonsVisibility=!1,this.changeDetector.detectChanges())}onScroll(Ee){this.enableButtons&&this.updateButtonVisibility()}focusFirstTile(){this.focusBackDirective.focusInitialFocusable()}updateButtonVisibility(){const Ee="ltr"===this.carouselDirection?Math.floor(this.scrollLeft)>0:Math.floor(this.scrollLimit-this.scrollLeft)>0;Ee!==this.showLeftCarouselButton&&(this.showLeftCarouselButton=Ee);const kt="ltr"===this.carouselDirection?Math.floor(this.scrollLimit-this.scrollLeft)>0:Math.floor(this.scrollLeft)>0;kt!==this.showRightCarouselButton&&(this.showRightCarouselButton=kt),this.ngZone.run(()=>{this.changeDetector.detectChanges()})}ngOnDestroy(){this.cancelScrollAnimationIfNeeded(),this.destroy$.next(!0),this.destroy$.complete(),this.carousel.nativeElement.removeEventListener("navnotarget",this.navNoTarget)}tileIdentity(Ee,kt){return kt.id}static{this.\u0275fac=function(kt){return new(kt||vt)(d.rXU(hn.J6),d.rXU(hn.iH),d.rXU(d.SKi),d.rXU(On.E),d.rXU(d.gRc))}}static{this.\u0275cmp=d.VBU({type:vt,selectors:[["nv-hig-carousel"]],viewQuery:function(kt,Qt){if(1&kt&&(d.GBs(Jr,5),d.GBs(oo,5,d.aKT),d.GBs(Qo,5,d.aKT),d.GBs(Qo,5),d.GBs(to,5)),2&kt){let Zn;d.mGM(Zn=d.lsd())&&(Qt.wrapper=Zn.first),d.mGM(Zn=d.lsd())&&(Qt.sizingElement=Zn.first),d.mGM(Zn=d.lsd())&&(Qt.carousel=Zn.first),d.mGM(Zn=d.lsd())&&(Qt.container=Zn.first),d.mGM(Zn=d.lsd())&&(Qt.focusBackDirective=Zn.first)}},inputs:{items:"items",template:"template",itemProperty:"itemProperty",containerLeftMarginStr:"containerLeftMarginStr",containerTopMarginStr:"containerTopMarginStr",mobileMode:"mobileMode",resizeDebounceTime:"resizeDebounceTime"},standalone:!0,features:[d.aNF],decls:8,vars:18,consts:[["container",""],["wrapper",""],["carousel",""],["carouselItem",""],[1,"carousel-container",3,"mouseenter","mouseleave","dir"],[1,"carousel-wrapper"],["orientation","horizontal","nvSpatialNavigationGroup","","navigateAction","focus","nvFocusBack","","nvFast1DSpatialNavigation","",1,"carousel-inner",3,"itemOffsets","minBufferPx","maxBufferPx","enableKeyThrottle","enableSmoothScrolling","spacingLeft","spacingRight","enableFocusBack","containFocus","isRTL"],["class","item-container","nvFastSpatialNavigationItem","",3,"first","last","height","focusin","focusout",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[4,"ngIf"],["nvFastSpatialNavigationItem","",1,"item-container",3,"focusin","focusout"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["mat-button","",1,"carousel-button","carousel-button-prev",3,"click","ngClass"],["svgIcon","lt_arrow",1,"carousel-button-icon"],["mat-button","",1,"carousel-button","carousel-button-next",3,"click","ngClass"],["svgIcon","rt_arrow",1,"carousel-button-icon"]],template:function(kt,Qt){if(1&kt){const Zn=d.RV6();d.j41(0,"div",4,0),d.bIt("mouseenter",function(){return d.eBV(Zn),d.Njj(Qt.onMouseEnter())})("mouseleave",function(){return d.eBV(Zn),d.Njj(Qt.onMouseLeave())}),d.j41(2,"div",5,1)(4,"cdk-virtual-scroll-viewport",6,2),d.DNE(6,Ss,3,11,"div",7),d.k0s()(),d.DNE(7,kr,5,6,"ng-container",8),d.k0s()}2&kt&&(d.AVh("mobile-view",Qt.mobileMode),d.FS9("dir",Qt.carouselDirection),d.R7$(4),d.xc7("height",Qt.itemHeight,"px"),d.Y8G("itemOffsets",Qt.itemOffsets)("minBufferPx",Qt.itemWidth)("maxBufferPx",2.1*Qt.itemWidth)("enableKeyThrottle",!0)("enableSmoothScrolling",!1)("spacingLeft",Qt.spatialNavigationSpacingLeft)("spacingRight",Qt.spatialNavigationSpacingRight)("enableFocusBack",!Qt.isFirstTileFocused)("containFocus",!0)("isRTL","rtl"===Qt.carouselDirection),d.R7$(2),d.Y8G("cdkVirtualForOf",Qt.items)("cdkVirtualForTrackBy",Qt.tileIdentity),d.R7$(),d.Y8G("ngIf",Qt.enableButtons&&Qt.carouselButtonsVisibility))},dependencies:[ve.jI,ve.ig,a.d6,Tr,ot.i4,L.$,to,si,a.E$,go,n.T3,n.bT,M.wG,M.iV,n.YU,ie.Cc,ie.PW,f.m_,f.An],styles:[".carousel-container{position:relative;overflow:hidden;width:100%}.carousel-wrapper{position:relative;width:100%;max-width:100%;overflow:hidden}.carousel-container .carousel-wrapper .carousel-inner{overflow-y:hidden}.carousel-inner{display:flex;width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.carousel-inner .cdk-virtual-scroll-content-wrapper{display:flex;flex-direction:row}.carousel-inner .cdk-virtual-scroll-content-wrapper>.item-container{margin:0;box-sizing:border-box;margin-top:var(--container-top-margin)}:host-context(.isLtr) .carousel-inner .cdk-virtual-scroll-content-wrapper>.first{margin-left:var(--container-left-margin)}html[dir=ltr] .carousel-inner .cdk-virtual-scroll-content-wrapper>.first{--dummy3: 0;margin-left:var(--container-left-margin)}:host-context(.isRtl) .carousel-inner .cdk-virtual-scroll-content-wrapper>.first{margin-right:var(--container-left-margin)}html[dir=rtl] .carousel-inner .cdk-virtual-scroll-content-wrapper>.first{--dummy3: 0;margin-right:var(--container-left-margin)}html[dir=ltr] .carousel-inner .cdk-virtual-scroll-content-wrapper>.last{border-right:var(--container-left-margin) solid transparent}html[dir=rtl] .carousel-inner .cdk-virtual-scroll-content-wrapper>.last{border-left:var(--container-left-margin) solid transparent}.carousel-inner::-webkit-scrollbar{display:none}.carousel-button-icon{font-size:40px;width:40px;height:40px;line-height:40px}.carousel-button{position:absolute;border-width:0;margin:0;padding:0;height:40px;min-width:40px;top:45%;transform:translateY(-45%);z-index:2;opacity:1;visibility:visible;transition:all .2s ease;background:transparent;border-radius:50%!important}.carousel-button.hidden{visibility:hidden;opacity:0}.carousel-button.hover{background:transparent}.carousel-button-prev{left:8px}.carousel-button-next{right:16px}\n"],encapsulation:2,changeDetection:0})}}return vt})();var Xs=s(13186),ys=s(62141),ma=s(12949);function Zs(vt,en,Ee,kt){var Vi,Qt=arguments.length,Zn=Qt<3?en:null===kt?kt=Object.getOwnPropertyDescriptor(en,Ee):kt;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Zn=Reflect.decorate(vt,en,Ee,kt);else for(var vr=vt.length-1;vr>=0;vr--)(Vi=vt[vr])&&(Zn=(Qt<3?Vi(Zn):Qt>3?Vi(en,Ee,Zn):Vi(en,Ee))||Zn);return Qt>3&&Zn&&Object.defineProperty(en,Ee,Zn),Zn}"function"==typeof SuppressedError&&SuppressedError;const So=(vt,en)=>"method"===en.kind&&en.descriptor&&!("value"in en.descriptor)?{...en,finisher(Ee){Ee.createProperty(en.key,vt)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:en.key,initializer(){"function"==typeof en.initializer&&(this[en.key]=en.initializer.call(this))},finisher(Ee){Ee.createProperty(en.key,vt)}};function Xn(vt){return(en,Ee)=>void 0!==Ee?((vt,en,Ee)=>{en.constructor.createProperty(Ee,vt)})(vt,en,Ee):So(vt,en)}window;var Gi=s(70650);const Sr=window,Wr=Sr.ShadowRoot&&(void 0===Sr.ShadyCSS||Sr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ao=Symbol(),Ir=new WeakMap;class Cr{constructor(en,Ee,kt){if(this._$cssResult$=!0,kt!==ao)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=en,this.t=Ee}get styleSheet(){let en=this.o;const Ee=this.t;if(Wr&&void 0===en){const kt=void 0!==Ee&&1===Ee.length;kt&&(en=Ir.get(Ee)),void 0===en&&((this.o=en=new CSSStyleSheet).replaceSync(this.cssText),kt&&Ir.set(Ee,en))}return en}toString(){return this.cssText}}const ca=Wr?vt=>vt:vt=>vt instanceof CSSStyleSheet?(en=>{let Ee="";for(const kt of en.cssRules)Ee+=kt.cssText;return(vt=>new Cr("string"==typeof vt?vt:vt+"",void 0,ao))(Ee)})(vt):vt;var Zo;const Ha=window,vo=Ha.trustedTypes,ta=vo?vo.emptyScript:"",tl=Ha.reactiveElementPolyfillSupport,Ie={toAttribute(vt,en){switch(en){case Boolean:vt=vt?ta:null;break;case Object:case Array:vt=null==vt?vt:JSON.stringify(vt)}return vt},fromAttribute(vt,en){let Ee=vt;switch(en){case Boolean:Ee=null!==vt;break;case Number:Ee=null===vt?null:Number(vt);break;case Object:case Array:try{Ee=JSON.parse(vt)}catch{Ee=null}}return Ee}},Ei=(vt,en)=>en!==vt&&(en==en||vt==vt),Ls={attribute:!0,type:String,converter:Ie,reflect:!1,hasChanged:Ei},Ns="finalized";class Ps extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(en){var Ee;this.finalize(),(null!==(Ee=this.h)&&void 0!==Ee?Ee:this.h=[]).push(en)}static get observedAttributes(){this.finalize();const en=[];return this.elementProperties.forEach((Ee,kt)=>{const Qt=this._$Ep(kt,Ee);void 0!==Qt&&(this._$Ev.set(Qt,kt),en.push(Qt))}),en}static createProperty(en,Ee=Ls){if(Ee.state&&(Ee.attribute=!1),this.finalize(),this.elementProperties.set(en,Ee),!Ee.noAccessor&&!this.prototype.hasOwnProperty(en)){const kt="symbol"==typeof en?Symbol():"__"+en,Qt=this.getPropertyDescriptor(en,kt,Ee);void 0!==Qt&&Object.defineProperty(this.prototype,en,Qt)}}static getPropertyDescriptor(en,Ee,kt){return{get(){return this[Ee]},set(Qt){const Zn=this[en];this[Ee]=Qt,this.requestUpdate(en,Zn,kt)},configurable:!0,enumerable:!0}}static getPropertyOptions(en){return this.elementProperties.get(en)||Ls}static finalize(){if(this.hasOwnProperty(Ns))return!1;this[Ns]=!0;const en=Object.getPrototypeOf(this);if(en.finalize(),void 0!==en.h&&(this.h=[...en.h]),this.elementProperties=new Map(en.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const Ee=this.properties,kt=[...Object.getOwnPropertyNames(Ee),...Object.getOwnPropertySymbols(Ee)];for(const Qt of kt)this.createProperty(Qt,Ee[Qt])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(en){const Ee=[];if(Array.isArray(en)){const kt=new Set(en.flat(1/0).reverse());for(const Qt of kt)Ee.unshift(ca(Qt))}else void 0!==en&&Ee.push(ca(en));return Ee}static _$Ep(en,Ee){const kt=Ee.attribute;return!1===kt?void 0:"string"==typeof kt?kt:"string"==typeof en?en.toLowerCase():void 0}_$Eu(){var en;this._$E_=new Promise(Ee=>this.enableUpdating=Ee),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(en=this.constructor.h)||void 0===en||en.forEach(Ee=>Ee(this))}addController(en){var Ee,kt;(null!==(Ee=this._$ES)&&void 0!==Ee?Ee:this._$ES=[]).push(en),void 0!==this.renderRoot&&this.isConnected&&(null===(kt=en.hostConnected)||void 0===kt||kt.call(en))}removeController(en){var Ee;null===(Ee=this._$ES)||void 0===Ee||Ee.splice(this._$ES.indexOf(en)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((en,Ee)=>{this.hasOwnProperty(Ee)&&(this._$Ei.set(Ee,this[Ee]),delete this[Ee])})}createRenderRoot(){var en;const Ee=null!==(en=this.shadowRoot)&&void 0!==en?en:this.attachShadow(this.constructor.shadowRootOptions);return((vt,en)=>{Wr?vt.adoptedStyleSheets=en.map(Ee=>Ee instanceof CSSStyleSheet?Ee:Ee.styleSheet):en.forEach(Ee=>{const kt=document.createElement("style"),Qt=Sr.litNonce;void 0!==Qt&&kt.setAttribute("nonce",Qt),kt.textContent=Ee.cssText,vt.appendChild(kt)})})(Ee,this.constructor.elementStyles),Ee}connectedCallback(){var en;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(en=this._$ES)||void 0===en||en.forEach(Ee=>{var kt;return null===(kt=Ee.hostConnected)||void 0===kt?void 0:kt.call(Ee)})}enableUpdating(en){}disconnectedCallback(){var en;null===(en=this._$ES)||void 0===en||en.forEach(Ee=>{var kt;return null===(kt=Ee.hostDisconnected)||void 0===kt?void 0:kt.call(Ee)})}attributeChangedCallback(en,Ee,kt){this._$AK(en,kt)}_$EO(en,Ee,kt=Ls){var Qt;const Zn=this.constructor._$Ep(en,kt);if(void 0!==Zn&&!0===kt.reflect){const Vi=(void 0!==(null===(Qt=kt.converter)||void 0===Qt?void 0:Qt.toAttribute)?kt.converter:Ie).toAttribute(Ee,kt.type);this._$El=en,null==Vi?this.removeAttribute(Zn):this.setAttribute(Zn,Vi),this._$El=null}}_$AK(en,Ee){var kt;const Qt=this.constructor,Zn=Qt._$Ev.get(en);if(void 0!==Zn&&this._$El!==Zn){const Vi=Qt.getPropertyOptions(Zn),vr="function"==typeof Vi.converter?{fromAttribute:Vi.converter}:void 0!==(null===(kt=Vi.converter)||void 0===kt?void 0:kt.fromAttribute)?Vi.converter:Ie;this._$El=Zn,this[Zn]=vr.fromAttribute(Ee,Vi.type),this._$El=null}}requestUpdate(en,Ee,kt){let Qt=!0;void 0!==en&&(((kt=kt||this.constructor.getPropertyOptions(en)).hasChanged||Ei)(this[en],Ee)?(this._$AL.has(en)||this._$AL.set(en,Ee),!0===kt.reflect&&this._$El!==en&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(en,kt))):Qt=!1),!this.isUpdatePending&&Qt&&(this._$E_=this._$Ej())}_$Ej(){var en=this;return(0,Gi.A)(function*(){en.isUpdatePending=!0;try{yield en._$E_}catch(kt){Promise.reject(kt)}const Ee=en.scheduleUpdate();return null!=Ee&&(yield Ee),!en.isUpdatePending})()}scheduleUpdate(){return this.performUpdate()}performUpdate(){var en;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach((Qt,Zn)=>this[Zn]=Qt),this._$Ei=void 0);let Ee=!1;const kt=this._$AL;try{Ee=this.shouldUpdate(kt),Ee?(this.willUpdate(kt),null===(en=this._$ES)||void 0===en||en.forEach(Qt=>{var Zn;return null===(Zn=Qt.hostUpdate)||void 0===Zn?void 0:Zn.call(Qt)}),this.update(kt)):this._$Ek()}catch(Qt){throw Ee=!1,this._$Ek(),Qt}Ee&&this._$AE(kt)}willUpdate(en){}_$AE(en){var Ee;null===(Ee=this._$ES)||void 0===Ee||Ee.forEach(kt=>{var Qt;return null===(Qt=kt.hostUpdated)||void 0===Qt?void 0:Qt.call(kt)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(en)),this.updated(en)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(en){return!0}update(en){void 0!==this._$EC&&(this._$EC.forEach((Ee,kt)=>this._$EO(kt,this[kt],Ee)),this._$EC=void 0),this._$Ek()}updated(en){}firstUpdated(en){}}var ja;Ps[Ns]=!0,Ps.elementProperties=new Map,Ps.elementStyles=[],Ps.shadowRootOptions={mode:"open"},tl?.({ReactiveElement:Ps}),(null!==(Zo=Ha.reactiveElementVersions)&&void 0!==Zo?Zo:Ha.reactiveElementVersions=[]).push("1.6.3");const Ja=window,Wa=Ja.trustedTypes,Ea=Wa?Wa.createPolicy("lit-html",{createHTML:vt=>vt}):void 0,Ks="$lit$",na=`lit$${(Math.random()+"").slice(9)}$`,zi="?"+na,mr=`<${zi}>`,lr=document,je=()=>lr.createComment(""),Ft=vt=>null===vt||"object"!=typeof vt&&"function"!=typeof vt,un=Array.isArray,zn="[ \t\n\f\r]",vi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Si=/-->/g,Ri=/>/g,nr=RegExp(`>|${zn}(?:([^\\s"'>=/]+)(${zn}*=${zn}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),_r=/'/g,Er=/"/g,po=/^(?:script|style|textarea|title)$/i,To=vt=>(en,...Ee)=>({_$litType$:vt,strings:en,values:Ee}),Te=(To(1),To(2),Symbol.for("lit-noChange")),Jt=Symbol.for("lit-nothing"),Rt=new WeakMap,ei=lr.createTreeWalker(lr,129,null,!1);function tr(vt,en){if(!Array.isArray(vt)||!vt.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ea?Ea.createHTML(en):en}class lo{constructor({strings:en,_$litType$:Ee},kt){let Qt;this.parts=[];let Zn=0,Vi=0;const vr=en.length-1,hr=this.parts,[qr,so]=((vt,en)=>{const Ee=vt.length-1,kt=[];let Qt,Zn=2===en?"<svg>":"",Vi=vi;for(let vr=0;vr<Ee;vr++){const hr=vt[vr];let qr,so,Cs=-1,ba=0;for(;ba<hr.length&&(Vi.lastIndex=ba,so=Vi.exec(hr),null!==so);)ba=Vi.lastIndex,Vi===vi?"!--"===so[1]?Vi=Si:void 0!==so[1]?Vi=Ri:void 0!==so[2]?(po.test(so[2])&&(Qt=RegExp("</"+so[2],"g")),Vi=nr):void 0!==so[3]&&(Vi=nr):Vi===nr?">"===so[0]?(Vi=Qt??vi,Cs=-1):void 0===so[1]?Cs=-2:(Cs=Vi.lastIndex-so[2].length,qr=so[1],Vi=void 0===so[3]?nr:'"'===so[3]?Er:_r):Vi===Er||Vi===_r?Vi=nr:Vi===Si||Vi===Ri?Vi=vi:(Vi=nr,Qt=void 0);const As=Vi===nr&&vt[vr+1].startsWith("/>")?" ":"";Zn+=Vi===vi?hr+mr:Cs>=0?(kt.push(qr),hr.slice(0,Cs)+Ks+hr.slice(Cs)+na+As):hr+na+(-2===Cs?(kt.push(void 0),vr):As)}return[tr(vt,Zn+(vt[Ee]||"<?>")+(2===en?"</svg>":"")),kt]})(en,Ee);if(this.el=lo.createElement(qr,kt),ei.currentNode=this.el.content,2===Ee){const Cs=this.el.content,ba=Cs.firstChild;ba.remove(),Cs.append(...ba.childNodes)}for(;null!==(Qt=ei.nextNode())&&hr.length<vr;){if(1===Qt.nodeType){if(Qt.hasAttributes()){const Cs=[];for(const ba of Qt.getAttributeNames())if(ba.endsWith(Ks)||ba.startsWith(na)){const As=so[Vi++];if(Cs.push(ba),void 0!==As){const ol=Qt.getAttribute(As.toLowerCase()+Ks).split(na),cl=/([.?@])?(.*)/.exec(As);hr.push({type:1,index:Zn,name:cl[2],strings:ol,ctor:"."===cl[1]?da:"?"===cl[1]?Mt:"@"===cl[1]?Dn:Io})}else hr.push({type:6,index:Zn})}for(const ba of Cs)Qt.removeAttribute(ba)}if(po.test(Qt.tagName)){const Cs=Qt.textContent.split(na),ba=Cs.length-1;if(ba>0){Qt.textContent=Wa?Wa.emptyScript:"";for(let As=0;As<ba;As++)Qt.append(Cs[As],je()),ei.nextNode(),hr.push({type:2,index:++Zn});Qt.append(Cs[ba],je())}}}else if(8===Qt.nodeType)if(Qt.data===zi)hr.push({type:2,index:Zn});else{let Cs=-1;for(;-1!==(Cs=Qt.data.indexOf(na,Cs+1));)hr.push({type:7,index:Zn}),Cs+=na.length-1}Zn++}}static createElement(en,Ee){const kt=lr.createElement("template");return kt.innerHTML=en,kt}}function wo(vt,en,Ee=vt,kt){var Qt,Zn,Vi,vr;if(en===Te)return en;let hr=void 0!==kt?null===(Qt=Ee._$Co)||void 0===Qt?void 0:Qt[kt]:Ee._$Cl;const qr=Ft(en)?void 0:en._$litDirective$;return hr?.constructor!==qr&&(null===(Zn=hr?._$AO)||void 0===Zn||Zn.call(hr,!1),void 0===qr?hr=void 0:(hr=new qr(vt),hr._$AT(vt,Ee,kt)),void 0!==kt?(null!==(Vi=(vr=Ee)._$Co)&&void 0!==Vi?Vi:vr._$Co=[])[kt]=hr:Ee._$Cl=hr),void 0!==hr&&(en=wo(vt,hr._$AS(vt,en.values),hr,kt)),en}class Lr{constructor(en,Ee){this._$AV=[],this._$AN=void 0,this._$AD=en,this._$AM=Ee}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(en){var Ee;const{el:{content:kt},parts:Qt}=this._$AD,Zn=(null!==(Ee=en?.creationScope)&&void 0!==Ee?Ee:lr).importNode(kt,!0);ei.currentNode=Zn;let Vi=ei.nextNode(),vr=0,hr=0,qr=Qt[0];for(;void 0!==qr;){if(vr===qr.index){let so;2===qr.type?so=new ns(Vi,Vi.nextSibling,this,en):1===qr.type?so=new qr.ctor(Vi,qr.name,qr.strings,this,en):6===qr.type&&(so=new qt(Vi,this,en)),this._$AV.push(so),qr=Qt[++hr]}vr!==qr?.index&&(Vi=ei.nextNode(),vr++)}return ei.currentNode=lr,Zn}v(en){let Ee=0;for(const kt of this._$AV)void 0!==kt&&(void 0!==kt.strings?(kt._$AI(en,kt,Ee),Ee+=kt.strings.length-2):kt._$AI(en[Ee])),Ee++}}class ns{constructor(en,Ee,kt,Qt){var Zn;this.type=2,this._$AH=Jt,this._$AN=void 0,this._$AA=en,this._$AB=Ee,this._$AM=kt,this.options=Qt,this._$Cp=null===(Zn=Qt?.isConnected)||void 0===Zn||Zn}get _$AU(){var en,Ee;return null!==(Ee=null===(en=this._$AM)||void 0===en?void 0:en._$AU)&&void 0!==Ee?Ee:this._$Cp}get parentNode(){let en=this._$AA.parentNode;const Ee=this._$AM;return void 0!==Ee&&11===en?.nodeType&&(en=Ee.parentNode),en}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(en,Ee=this){en=wo(this,en,Ee),Ft(en)?en===Jt||null==en||""===en?(this._$AH!==Jt&&this._$AR(),this._$AH=Jt):en!==this._$AH&&en!==Te&&this._(en):void 0!==en._$litType$?this.g(en):void 0!==en.nodeType?this.$(en):(vt=>un(vt)||"function"==typeof vt?.[Symbol.iterator])(en)?this.T(en):this._(en)}k(en){return this._$AA.parentNode.insertBefore(en,this._$AB)}$(en){this._$AH!==en&&(this._$AR(),this._$AH=this.k(en))}_(en){this._$AH!==Jt&&Ft(this._$AH)?this._$AA.nextSibling.data=en:this.$(lr.createTextNode(en)),this._$AH=en}g(en){var Ee;const{values:kt,_$litType$:Qt}=en,Zn="number"==typeof Qt?this._$AC(en):(void 0===Qt.el&&(Qt.el=lo.createElement(tr(Qt.h,Qt.h[0]),this.options)),Qt);if((null===(Ee=this._$AH)||void 0===Ee?void 0:Ee._$AD)===Zn)this._$AH.v(kt);else{const Vi=new Lr(Zn,this),vr=Vi.u(this.options);Vi.v(kt),this.$(vr),this._$AH=Vi}}_$AC(en){let Ee=Rt.get(en.strings);return void 0===Ee&&Rt.set(en.strings,Ee=new lo(en)),Ee}T(en){un(this._$AH)||(this._$AH=[],this._$AR());const Ee=this._$AH;let kt,Qt=0;for(const Zn of en)Qt===Ee.length?Ee.push(kt=new ns(this.k(je()),this.k(je()),this,this.options)):kt=Ee[Qt],kt._$AI(Zn),Qt++;Qt<Ee.length&&(this._$AR(kt&&kt._$AB.nextSibling,Qt),Ee.length=Qt)}_$AR(en=this._$AA.nextSibling,Ee){var kt;for(null===(kt=this._$AP)||void 0===kt||kt.call(this,!1,!0,Ee);en&&en!==this._$AB;){const Qt=en.nextSibling;en.remove(),en=Qt}}setConnected(en){var Ee;void 0===this._$AM&&(this._$Cp=en,null===(Ee=this._$AP)||void 0===Ee||Ee.call(this,en))}}class Io{constructor(en,Ee,kt,Qt,Zn){this.type=1,this._$AH=Jt,this._$AN=void 0,this.element=en,this.name=Ee,this._$AM=Qt,this.options=Zn,kt.length>2||""!==kt[0]||""!==kt[1]?(this._$AH=Array(kt.length-1).fill(new String),this.strings=kt):this._$AH=Jt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(en,Ee=this,kt,Qt){const Zn=this.strings;let Vi=!1;if(void 0===Zn)en=wo(this,en,Ee,0),Vi=!Ft(en)||en!==this._$AH&&en!==Te,Vi&&(this._$AH=en);else{const vr=en;let hr,qr;for(en=Zn[0],hr=0;hr<Zn.length-1;hr++)qr=wo(this,vr[kt+hr],Ee,hr),qr===Te&&(qr=this._$AH[hr]),Vi||(Vi=!Ft(qr)||qr!==this._$AH[hr]),qr===Jt?en=Jt:en!==Jt&&(en+=(qr??"")+Zn[hr+1]),this._$AH[hr]=qr}Vi&&!Qt&&this.j(en)}j(en){en===Jt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,en??"")}}class da extends Io{constructor(){super(...arguments),this.type=3}j(en){this.element[this.name]=en===Jt?void 0:en}}const _a=Wa?Wa.emptyScript:"";class Mt extends Io{constructor(){super(...arguments),this.type=4}j(en){en&&en!==Jt?this.element.setAttribute(this.name,_a):this.element.removeAttribute(this.name)}}class Dn extends Io{constructor(en,Ee,kt,Qt,Zn){super(en,Ee,kt,Qt,Zn),this.type=5}_$AI(en,Ee=this){var kt;if((en=null!==(kt=wo(this,en,Ee,0))&&void 0!==kt?kt:Jt)===Te)return;const Qt=this._$AH,Zn=en===Jt&&Qt!==Jt||en.capture!==Qt.capture||en.once!==Qt.once||en.passive!==Qt.passive,Vi=en!==Jt&&(Qt===Jt||Zn);Zn&&this.element.removeEventListener(this.name,this,Qt),Vi&&this.element.addEventListener(this.name,this,en),this._$AH=en}handleEvent(en){var Ee,kt;"function"==typeof this._$AH?this._$AH.call(null!==(kt=null===(Ee=this.options)||void 0===Ee?void 0:Ee.host)&&void 0!==kt?kt:this.element,en):this._$AH.handleEvent(en)}}class qt{constructor(en,Ee,kt){this.element=en,this.type=6,this._$AN=void 0,this._$AM=Ee,this.options=kt}get _$AU(){return this._$AM._$AU}_$AI(en){wo(this,en)}}const yi=Ja.litHtmlPolyfillSupport;var Pr,uo;yi?.(lo,ns),(null!==(ja=Ja.litHtmlVersions)&&void 0!==ja?ja:Ja.litHtmlVersions=[]).push("2.8.0");class ss extends Ps{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var en,Ee;const kt=super.createRenderRoot();return null!==(en=(Ee=this.renderOptions).renderBefore)&&void 0!==en||(Ee.renderBefore=kt.firstChild),kt}update(en){const Ee=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(en),this._$Do=((vt,en,Ee)=>{var kt,Qt;const Zn=null!==(kt=Ee?.renderBefore)&&void 0!==kt?kt:en;let Vi=Zn._$litPart$;if(void 0===Vi){const vr=null!==(Qt=Ee?.renderBefore)&&void 0!==Qt?Qt:null;Zn._$litPart$=Vi=new ns(en.insertBefore(je(),vr),vr,void 0,Ee??{})}return Vi._$AI(vt),Vi})(Ee,this.renderRoot,this.renderOptions)}connectedCallback(){var en;super.connectedCallback(),null===(en=this._$Do)||void 0===en||en.setConnected(!0)}disconnectedCallback(){var en;super.disconnectedCallback(),null===(en=this._$Do)||void 0===en||en.setConnected(!1)}render(){return Te}}ss.finalized=!0,ss._$litElement$=!0,null===(Pr=globalThis.litElementHydrateSupport)||void 0===Pr||Pr.call(globalThis,{LitElement:ss});const Ts=globalThis.litElementPolyfillSupport;Ts?.({LitElement:ss}),(null!==(uo=globalThis.litElementVersions)&&void 0!==uo?uo:globalThis.litElementVersions=[]).push("3.3.3");class Gs extends ss{constructor(){super(...arguments),this.inset=!1,this.insetStart=!1,this.insetEnd=!1}}Zs([Xn({type:Boolean,reflect:!0})],Gs.prototype,"inset",void 0),Zs([Xn({type:Boolean,reflect:!0,attribute:"inset-start"})],Gs.prototype,"insetStart",void 0),Zs([Xn({type:Boolean,reflect:!0,attribute:"inset-end"})],Gs.prototype,"insetEnd",void 0);const es=((vt,...en)=>{const Ee=1===vt.length?vt[0]:en.reduce((kt,Qt,Zn)=>kt+(Vi=>{if(!0===Vi._$cssResult$)return Vi.cssText;if("number"==typeof Vi)return Vi;throw Error("Value passed to 'css' function must be a 'css' function result: "+Vi+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(Qt)+vt[Zn+1],vt[0]);return new Cr(Ee,vt,ao)})`:host{--_color: var(--md-divider-color, var(--md-sys-color-outline-variant, #cac4d0));--_thickness: var(--md-divider-thickness, 1px);box-sizing:border-box;color:var(--_color);display:flex;height:var(--_thickness);width:100%}:host([inset]),:host([inset-start]){padding-inline-start:16px}:host([inset]),:host([inset-end]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%}@media(forced-colors: active){:host::before{background:CanvasText}}/*# sourceMappingURL=divider-styles.css.map */
`;let hs=class extends Gs{};var vt;hs.styles=[es],hs=Zs([(vt="md-divider",en=>{return"function"==typeof en?(kt=en,customElements.define(vt,kt),kt):((Ee,kt)=>{const{kind:Qt,elements:Zn}=kt;return{kind:Qt,elements:Zn,finisher(Vi){customElements.define(Ee,Vi)}}})(vt,en);var kt})],hs);var Jo=s(44186),Gr=s(20288);const No=[Xs.Lq,M.wG,ys.jm,m.YN,U.D6,Gr.PO,f.m_,I.Wk,D.g7,y.vF,S.hM,ma.Ve,Jo.uc,V.Pd];let Vs=(()=>{class vt{static{this.\u0275fac=function(kt){return new(kt||vt)}}static{this.\u0275mod=d.$C({type:vt})}static{this.\u0275inj=d.G2t({imports:[No,Xs.Lq,M.wG,ys.jm,m.YN,U.D6,Gr.PO,f.m_,I.Wk,D.g7,y.vF,S.hM,ma.Ve,Jo.uc,V.Pd]})}}return vt})();var sa=s(80598),as=s(40262),il=s(26513),jo=function(vt){return vt.Init="Init",vt.Expanded="Expanded",vt.Expanding="Expanding",vt.Collapsed="Collapsed",vt.Collapsing="Collapsing",vt}(jo||{});const Oo={[jo.Init]:{expand:!1,text:!1,shadow:!1,icon:!1},[jo.Expanding]:{expand:!0,text:!0,shadow:!0,icon:!0},[jo.Expanded]:{expand:!0,text:!0,shadow:!0,icon:!0},[jo.Collapsing]:{expand:!0,text:!1,shadow:!1,icon:!1},[jo.Collapsed]:{expand:!1,text:!1,shadow:!1,icon:!1}};var za=s(68868);const Uo=["higSidebarContainer"],Xa=["higSidebarHighlight"];function vl(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"div",8),d.bIt("@higSidebarOpacityAnimation.done",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.Njj(Zn.onAnimationDone(Qt))}),d.k0s()}if(2&vt){const Ee=d.XpG();d.Y8G("@.disabled",!Ee.expandable)("@higSidebarOpacityAnimation",Ee.sidebarAnimationState)}}function Pl(vt,en){1&vt&&d.nrm(0,"div",9,1)}function Hs(vt,en){if(1&vt&&d.nrm(0,"img",19),2&vt){const Ee=d.XpG(3);d.FS9("src",Ee.accountInfoSidebarItem.badgeUrl,d.B4B),d.Y8G("@higSidebarOpacityAnimation",Ee.sidebarAnimationState)}}function wl(vt,en){if(1&vt&&(d.j41(0,"span"),d.EFF(1),d.nI1(2,"translate"),d.k0s()),2&vt){let Ee;const kt=d.XpG(3);d.HbH(null!==(Ee=kt.accountInfoSidebarItem.fontTypeClass)&&void 0!==Ee?Ee:"font-sub2"),d.Y8G("@higSidebarTextAnimation",kt.sidebarAnimationState),d.R7$(),d.SpI(" ",d.bMT(2,4,kt.accountInfoSidebarItem.text)," ")}}function rl(vt,en){if(1&vt&&(d.j41(0,"span",23),d.EFF(1),d.k0s()),2&vt){const Ee=d.XpG(4);d.R7$(),d.JRh(Ee.accountInfoSidebarItem.subtext)}}function al(vt,en){if(1&vt&&(d.j41(0,"div",20)(1,"span",21),d.EFF(2),d.k0s(),d.DNE(3,rl,2,1,"span",22),d.k0s()),2&vt){const Ee=d.XpG(3);d.Y8G("@higSidebarTextAnimation",Ee.sidebarAnimationState),d.R7$(2),d.JRh(Ee.accountInfoSidebarItem.text),d.R7$(),d.Y8G("ngIf",Ee.accountInfoSidebarItem.subtext)}}function gl(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"div",12)(1,"button",13),d.bIt("focus",function(Qt){d.eBV(Ee);const Zn=d.XpG(2);return d.Njj(Zn.onItemFocus(Qt))})("click",function(Qt){d.eBV(Ee);const Zn=d.XpG(2);return d.Njj(Zn.onItemClicked(Qt,Zn.accountInfoSidebarItem.type))}),d.j41(2,"div",14),d.nrm(3,"mat-icon",15),d.DNE(4,Hs,1,2,"img",16)(5,wl,3,6,"span",17)(6,al,4,3,"div",18),d.k0s()()()}if(2&vt){const Ee=d.XpG(2);d.R7$(),d.AVh("has-badge",null==Ee.accountInfoSidebarItem?null:Ee.accountInfoSidebarItem.badgeUrl)("selected",(null==Ee.currentSelectedItem?null:Ee.currentSelectedItem.type)===Ee.accountInfoSidebarItem.type),d.Y8G("hidden",!Ee.animationStateMap[Ee.sidebarAnimationState].expand&&Ee.hideAccountItemWhenCollapsed),d.R7$(2),d.Y8G("svgIcon",Ee.accountInfoSidebarItem.svgIconId)("@higSidebarOpacityAnimation",Ee.sidebarAnimationState),d.R7$(),d.Y8G("ngIf",Ee.accountInfoSidebarItem.badgeUrl&&Ee.animationStateMap[Ee.sidebarAnimationState].icon),d.R7$(),d.Y8G("ngIf",!(null!=Ee.accountInfoSidebarItem&&Ee.accountInfoSidebarItem.loggedIn)&&Ee.animationStateMap[Ee.sidebarAnimationState].text),d.R7$(),d.Y8G("ngIf",(null==Ee.accountInfoSidebarItem?null:Ee.accountInfoSidebarItem.loggedIn)&&Ee.animationStateMap[Ee.sidebarAnimationState].text)}}function _l(vt,en){if(1&vt&&(d.j41(0,"div",10),d.DNE(1,gl,7,10,"div",11),d.k0s()),2&vt){const Ee=d.XpG();d.R7$(),d.Y8G("ngIf",Ee.accountInfoSidebarItem)}}function ii(vt,en){1&vt&&d.nrm(0,"div",30)}function Sl(vt,en){if(1&vt&&(d.j41(0,"span",31),d.EFF(1),d.nI1(2,"translate"),d.k0s()),2&vt){let Ee;const kt=d.XpG().$implicit,Qt=d.XpG(2);d.HbH(null!==(Ee=kt.fontTypeClass)&&void 0!==Ee?Ee:"font-sub2"),d.Y8G("@higSidebarTextAnimation",Qt.sidebarAnimationState),d.R7$(),d.SpI(" ",d.bMT(2,4,kt.text)," ")}}function oi(vt,en){if(1&vt&&d.nrm(0,"div",32),2&vt){const Ee=d.XpG().$implicit,kt=d.XpG(2);d.AVh("selected",(null==kt.currentSelectedItem?null:kt.currentSelectedItem.type)===Ee.type)}}function Oi(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"div",12)(1,"button",26),d.bIt("focus",function(Qt){d.eBV(Ee);const Zn=d.XpG(2);return d.Njj(Zn.onItemFocus(Qt))})("click",function(Qt){const Zn=d.eBV(Ee).$implicit,Vi=d.XpG(2);return d.Njj(Vi.onItemClicked(Qt,Zn.type))}),d.j41(2,"div",14),d.DNE(3,ii,1,0,"div",27),d.nrm(4,"mat-icon",15),d.DNE(5,Sl,3,6,"span",28),d.k0s()(),d.DNE(6,oi,1,2,"div",29),d.k0s()}if(2&vt){const Ee=en.$implicit,kt=d.XpG(2);d.R7$(),d.AVh("selected",(null==kt.currentSelectedItem?null:kt.currentSelectedItem.type)===Ee.type),d.BMQ("cdkFocusInitial",(null==kt.currentSelectedItem?null:kt.currentSelectedItem.type)===Ee.type||null),d.R7$(2),d.Y8G("ngIf",Ee.hasNotificationBadge),d.R7$(),d.Y8G("svgIcon",Ee.svgIconId),d.R7$(),d.Y8G("ngIf",kt.animationStateMap[kt.sidebarAnimationState].text||!kt.expandable),d.R7$(),d.Y8G("ngIf",kt.showBorderOnSelectedItem)}}function ki(vt,en){if(1&vt&&(d.j41(0,"div",24),d.DNE(1,Oi,7,7,"div",25),d.k0s()),2&vt){const Ee=d.XpG();d.R7$(),d.Y8G("ngForOf",Ee.pageNavSidebarItems)}}function Or(vt,en){1&vt&&d.nrm(0,"div",30)}function is(vt,en){if(1&vt&&d.nrm(0,"mat-icon",15),2&vt){const Ee=d.XpG().$implicit,kt=d.XpG(2);d.Y8G("svgIcon",Ee.svgIconId)("@higSidebarOpacityAnimation",kt.sidebarAnimationState)}}function Os(vt,en){if(1&vt&&(d.j41(0,"span"),d.EFF(1),d.nI1(2,"translate"),d.k0s()),2&vt){let Ee;const kt=d.XpG().$implicit,Qt=d.XpG(2);d.HbH(null!==(Ee=kt.fontTypeClass)&&void 0!==Ee?Ee:"font-sub2"),d.Y8G("@higSidebarTextAnimation",Qt.sidebarAnimationState),d.R7$(),d.SpI(" ",d.bMT(2,4,kt.text)," ")}}function Ho(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"div",12)(1,"button",34),d.bIt("focus",function(Qt){d.eBV(Ee);const Zn=d.XpG(2);return d.Njj(Zn.onItemFocus(Qt))})("click",function(Qt){const Zn=d.eBV(Ee).$implicit,Vi=d.XpG(2);return d.Njj(Vi.onItemClicked(Qt,Zn.type))}),d.j41(2,"div",14),d.DNE(3,Or,1,0,"div",27)(4,is,1,2,"mat-icon",35)(5,Os,3,6,"span",17),d.k0s()()()}if(2&vt){const Ee=en.$implicit,kt=d.XpG(2);d.R7$(),d.AVh("selected",(null==kt.currentSelectedItem?null:kt.currentSelectedItem.type)===Ee.type),d.Y8G("hidden",!kt.animationStateMap[kt.sidebarAnimationState].expand),d.R7$(2),d.Y8G("ngIf",Ee.hasNotificationBadge&&kt.animationStateMap[kt.sidebarAnimationState].expand),d.R7$(),d.Y8G("ngIf",kt.animationStateMap[kt.sidebarAnimationState].icon),d.R7$(),d.Y8G("ngIf",kt.animationStateMap[kt.sidebarAnimationState].text||!kt.expandable)}}function Ko(vt,en){if(1&vt&&(d.j41(0,"div",33),d.DNE(1,Ho,6,6,"div",25),d.k0s()),2&vt){const Ee=d.XpG();d.R7$(),d.Y8G("ngForOf",Ee.modalNavSidebarItems)}}let xa=(()=>{class vt{get expand(){return this._expand}set expand(Ee){!this.expandable||Ee===this._expand||(this._expand=Ee,this.sidebarAnimationStateSubject.next(Ee?jo.Expanding:jo.Collapsing))}set currentSelectedItem(Ee){this._currentSelectedItem=Ee??this.pageNavSidebarItems?.[0]}get currentSelectedItem(){return this._currentSelectedItem}get sidebarAnimationState(){return this.sidebarAnimationStateSubject.getValue()}get sidebarAnimationState$(){return this.sidebarAnimationStateSubject.asObservable()}get spatialNavigationEnabled(){return this.spatialNavigationService.enabled}constructor(Ee,kt,Qt,Zn,Vi,vr,hr,qr){this.builder=Ee,this.loggingService=kt,this.spatialNavigationService=Qt,this.localeService=Zn,this.ngZone=Vi,this.focusManager=vr,this.inputModalityService=hr,this.changeDetector=qr,this.expandable=!0,this.showBorder=!1,this.enlargeFocusedItem=!1,this.gradientOnFocusedItem=!1,this.showBorderOnSelectedItem=!1,this.hideAccountItemWhenCollapsed=!1,this.itemClicked=new d.bkB,this.animationStateMap=Oo,this.HigSidebarAnimationStateType=jo,this.destroy$=new Xt.B7,this.lastHighlightOffset=0,this.sidebarAnimationStateSubject=new il.t(jo.Init),this._expand=!1,this.logger=this.loggingService.getLogger("hig/SidebarComponent"),this.isRtl=this.localeService.isRTLLayoutEnabled}ngOnInit(){this.logger.info(`Init, expandable: ${this.expandable}`),this.localeService.localeChanged.pipe((0,rt.Q)(this.destroy$)).subscribe(Ee=>{this.isRtl=this.localeService.isRTLLayoutEnabled})}ngAfterViewInit(){this.spatialNavigationEnabled&&this.ngZone.runOutsideAngular(()=>{(0,Ht.R)(this.higSidebarContainer.nativeElement,"navbeforefocus").pipe((0,et.p)(Ee=>Ee.target===this.higSidebarContainer.nativeElement),(0,rt.Q)(this.destroy$)).subscribe(this.onNavigateToInside.bind(this)),(0,Ht.R)(this.higSidebarContainer.nativeElement,"navnotarget").pipe((0,et.p)(Ee=>Ee.target===this.higSidebarContainer.nativeElement&&(this.isRtl?"left"===Ee.detail.dir:"right"===Ee.detail.dir)),(0,rt.Q)(this.destroy$)).subscribe(this.onNavigateToOutside.bind(this))})}onAnimationDone(Ee){"void"===Ee.toState?this.sidebarAnimationStateSubject.next(jo.Collapsed):Ee.toState===jo.Expanding&&this.sidebarAnimationStateSubject.next(jo.Expanded)}onSidebarClicked(Ee){!this.expandable||this.expand||(this.expand=!0,this.moveFocusOnSelectedItem())}onItemClicked(Ee,kt){this.expandable&&!this.expand||(this.expandable&&this.expand&&Ee.stopPropagation(),this.expandable&&this.currentSelectedItem.type===kt&&this.navigateOutToPrevFocused(),this.itemClicked.emit({itemType:kt,event:Ee}))}onItemFocus(Ee){if(this.higSidebarHighlight){this.higSidebarHighlight.nativeElement.style.height=`${Ee.target.getBoundingClientRect().height}px`;const kt=(0,as.i0)(this.expandable&&this.sidebarAnimationState===jo.Expanded&&"keyboard"===this.inputModalityService.lastFocusOrigin?"200ms ease-in":0,(0,as.i7)([(0,as.iF)({transform:`translateY(${this.lastHighlightOffset}px)`}),(0,as.iF)({transform:`translateY(${Ee.target.getBoundingClientRect().top}px)`})]));this.lastHighlightOffset=Ee.target.getBoundingClientRect().top,this.builder.build(kt).create(this.higSidebarHighlight.nativeElement).play()}}onFocusOut(Ee){this.isFocusedElementInSidebar(Ee.relatedTarget)||this.expandable&&this.expand&&(this.expand=!1,this.changeDetector.detectChanges())}onFocusIn(Ee){this.expandable&&!this.expand&&"keyboard"===this.inputModalityService.lastFocusOrigin&&(this.expand=!0)}moveFocusOnSelectedItem(Ee){setTimeout(()=>{const kt=this.higSidebarContainer?.nativeElement.querySelector(".selected");!kt||kt===this.focusManager.currentFocusedElement||(Ee?this.focusManager.navigateTo(kt,Ee):this.focusManager.focusViaLastOrigin(kt))})}onNavigateToInside(Ee){const kt=this.focusManager.currentFocusedElement;this.getSiblingElement()?.contains(kt)&&(this.prevFocusedElementBeforeNavigateIn=kt),Ee.preventDefault(),this.onExpandSidebarByNavigationIfNeeded(),this.moveFocusOnSelectedItem(Ee.detail.dir)}onExpandSidebarByNavigationIfNeeded(){!this.expandable||this.expand||this.sidebarAnimationState!==jo.Collapsed&&this.sidebarAnimationState!==jo.Init||(this.expand=!0,this.changeDetector.markForCheck())}onNavigateToOutside(Ee){Ee.preventDefault(),(!this.expandable||this.sidebarAnimationState===jo.Expanded)&&this.navigateOutToPrevFocused()}navigateOutToPrevFocused(){const Ee=this.isRtl?"left":"right";this.prevFocusedElementBeforeNavigateIn&&this.prevFocusedElementBeforeNavigateIn.isConnected?this.focusManager.navigateTo(this.prevFocusedElementBeforeNavigateIn,Ee):this.handleNavigateToNearBy(Ee),this.prevFocusedElementBeforeNavigateIn=null}handleNavigateToNearBy(Ee){this.expandable&&this.expand?(this.sidebarAnimationState$.pipe((0,et.p)(kt=>kt===jo.Collapsed),(0,Zr.s)(1),(0,rt.Q)(this.destroy$)).subscribe(kt=>{this.navigateToNearby(this.isRtl?"left":"right")}),this.expand=!1,this.changeDetector.markForCheck()):this.navigateToNearby(Ee)}navigateToNearby(Ee){const Qt=document.activeElement.getBoundingClientRect(),Zn=this.higSidebarContainer.nativeElement.getBoundingClientRect();this.spatialNavigationService.setStartingPointAt(this.isRtl?Zn.left:Zn.right,(Qt.top+Qt.bottom)/2);const vr=this.spatialNavigationService.getClosestChild(document.body,this.getSiblingElement(),Ee);this.focusManager.navigateTo(vr,Ee)}isFocusedElementInSidebar(Ee){return this.higSidebarContainer.nativeElement.contains(Ee)}getSiblingElement(){return this.higSidebarContainer.nativeElement.parentElement.nextElementSibling}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(kt){return new(kt||vt)(d.rXU(as.S6),d.rXU(hn.J6),d.rXU(On.E),d.rXU(hn.iH),d.rXU(d.SKi),d.rXU(fi.c),d.rXU(za.p),d.rXU(d.gRc))}}static{this.\u0275cmp=d.VBU({type:vt,selectors:[["nv-hig-sidebar"]],viewQuery:function(kt,Qt){if(1&kt&&(d.GBs(Uo,5),d.GBs(Xa,5)),2&kt){let Zn;d.mGM(Zn=d.lsd())&&(Qt.higSidebarContainer=Zn.first),d.mGM(Zn=d.lsd())&&(Qt.higSidebarHighlight=Zn.first)}},inputs:{expandable:"expandable",showBorder:"showBorder",enlargeFocusedItem:"enlargeFocusedItem",gradientOnFocusedItem:"gradientOnFocusedItem",showBorderOnSelectedItem:"showBorderOnSelectedItem",hideAccountItemWhenCollapsed:"hideAccountItemWhenCollapsed",expand:"expand",currentSelectedItem:"currentSelectedItem",accountInfoSidebarItem:"accountInfoSidebarItem",pageNavSidebarItems:"pageNavSidebarItems",modalNavSidebarItems:"modalNavSidebarItems"},outputs:{itemClicked:"itemClicked"},standalone:!0,features:[d.aNF],decls:7,vars:19,consts:[["higSidebarContainer",""],["higSidebarHighlight",""],["class","hig-sidebar-gradient",4,"ngIf"],["nvSpatialNavigationGroup","",1,"hig-sidebar-container",3,"click","focusout","focusin"],["class","hig-sidebar-highlight",4,"ngIf"],["class","account-info-layout",4,"ngIf"],["class","page-nav-layout",4,"ngIf"],["class","modal-nav-layout",4,"ngIf"],[1,"hig-sidebar-gradient"],[1,"hig-sidebar-highlight"],[1,"account-info-layout"],["class","hig-sidebar-item",4,"ngIf"],[1,"hig-sidebar-item"],["mat-button","",1,"account-button",3,"focus","click","hidden"],[1,"hig-sidebar-button-content"],[3,"svgIcon"],["class","avatar-badge",3,"src",4,"ngIf"],[3,"class",4,"ngIf"],["class","account-info",4,"ngIf"],[1,"avatar-badge",3,"src"],[1,"account-info"],[1,"username","font-sub2"],["class","font-body3",4,"ngIf"],[1,"font-body3"],[1,"page-nav-layout"],["class","hig-sidebar-item",4,"ngFor","ngForOf"],["mat-button","",3,"focus","click"],["class","notification-badge",4,"ngIf"],["class","item-text","nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",3,"class",4,"ngIf"],["class","button-border",3,"selected",4,"ngIf"],[1,"notification-badge"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"item-text"],[1,"button-border"],[1,"modal-nav-layout"],["mat-button","",3,"focus","click","hidden"],[3,"svgIcon",4,"ngIf"]],template:function(kt,Qt){if(1&kt){const Zn=d.RV6();d.DNE(0,vl,1,2,"div",2),d.j41(1,"div",3,0),d.bIt("click",function(vr){return d.eBV(Zn),d.Njj(Qt.onSidebarClicked(vr))})("focusout",function(vr){return d.eBV(Zn),d.Njj(Qt.onFocusOut(vr))})("focusin",function(vr){return d.eBV(Zn),d.Njj(Qt.onFocusIn(vr))}),d.DNE(3,Pl,2,0,"div",4)(4,_l,2,1,"div",5)(5,ki,2,1,"div",6)(6,Ko,2,1,"div",7),d.k0s()}2&kt&&(d.Y8G("ngIf",Qt.animationStateMap[Qt.sidebarAnimationState].shadow),d.R7$(),d.HbH(Qt.animationStateMap[Qt.sidebarAnimationState].expand&&Qt.expandable?"expanded":"collapsed"),d.AVh("expandable",Qt.expandable)("show-border",Qt.showBorder)("enlarge-focused-item",Qt.enlargeFocusedItem)("collapsing",Qt.sidebarAnimationState===Qt.HigSidebarAnimationStateType.Collapsing)("expand-finished",Qt.sidebarAnimationState===Qt.HigSidebarAnimationStateType.Expanded),d.Y8G("@.disabled",!Qt.expandable),d.BMQ("tabindex",Qt.spatialNavigationEnabled?0:-1),d.R7$(2),d.Y8G("ngIf",Qt.expandable),d.R7$(),d.Y8G("ngIf",Qt.expandable),d.R7$(),d.Y8G("ngIf",(null==Qt.pageNavSidebarItems?null:Qt.pageNavSidebarItems.length)>0),d.R7$(),d.Y8G("ngIf",Qt.expandable))},dependencies:[n.bT,L.$,M.wG,M.iV,f.m_,f.An,n.pM,fn.a,_.h,_.D9],styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[_nghost-%COMP%]{height:100%;--hig-sidebar-expand-width: 256px;--hig-sidebar-collapse-width: 120px;--hig-sidebar-container-padding-top: auto;--hig-sidebar-horizontal-padding: 0;--hig-sidebar-layout-gap-size: 16px;--hig-sidebar-layout-first-item-top-gap: 16px;--hig-sidebar-button-padding-top-bottom-size: 8px;--hig-sidebar-button-padding-left-right-size: 16px;--hig-sidebar-button-left-indent: 0;--hig-sidebar-button-content-layout-direction: column;--hig-sidebar-icon-size: 24px;--hig-sidebar-icon-default-color: var(--primary-contrast-700);--hig-sidebar-icon-padding-right: 0;--hig-sidebar-text-align-self: none;--hig-sidebar-text-last-align-last: none;--hig-sidebar-expanded-icon-gap-size: 24px;--hig-sidebar-collapsed-icon-gap-size: 8px;--hig-sidebar-item-focused-rgba: rgba(255, 255, 255, .32);--hig-sidebar-item-selected-left-border-size: 4px;--hig-sidebar-item-selected-left-border-color: #76b900;--hig-sidebar-item-selected-icon-color: #76b900;--hig-sidebar-item-selected-text-color: var(--primary-contrast-1000);--hig-sidebar-item-selected-border-width: 0;--hig-sidebar-item-selected-border-radius: 0;--hig-sidebar-item-selected-left-position: 0;--hig-notification-badge-width: 9px;--hig-notification-badge-height: 9px;--hig-notification-badge-bg: #76b900;--hig-notification-badge-position-right: 8px;--hig-notification-badge-position-top: -5px;--hig-notification-badge-position-left: initial;--hig-sidebar-border-color-rgba: rgba(255, 255, 255, .16);--hig-sidebar-account-icon-size: 24px;--hig-sidebar-account-layout-margin-top: 28px;--hig-sidebar-expanded-account-icon-gap-size: 16px;--hig-sidebar-expanded-account-with-badge-icon-gap-size: 8px;--hig-sidebar-avatar-badge-img-size: 17px;--hig-sidebar-avatar-badge-img-relative-top: 9px;--hig-sidebar-avatar-badge-img-relative-right: 11px;--hig-sidebar-avatar-badge-img-relative-left: 34px;--hig-sidebar-modal-layout-margin-bottom: 28px;--hig-sidebar-background-linear-gradient-deg: 90deg;--hig-sidebar-container-collapsed-overflow: unset}.isRtl [_nghost-%COMP%]{--hig-sidebar-background-linear-gradient-deg: 270deg}.hig-sidebar-container[_ngcontent-%COMP%]{height:100%;background:var(--hig-sidebar-bg);display:flex;flex-direction:column;padding-top:var(--hig-sidebar-container-padding-top)}.hig-sidebar-container[_ngcontent-%COMP%] .account-info-layout[_ngcontent-%COMP%], .hig-sidebar-container[_ngcontent-%COMP%] .page-nav-layout[_ngcontent-%COMP%], .hig-sidebar-container[_ngcontent-%COMP%] .modal-nav-layout[_ngcontent-%COMP%]{display:flex;flex-direction:column}.hig-sidebar-container[_ngcontent-%COMP%] .page-nav-layout[_ngcontent-%COMP%]{padding:0 var(--hig-sidebar-horizontal-padding)}.hig-sidebar-container[_ngcontent-%COMP%] .account-info-layout[_ngcontent-%COMP%]{justify-content:flex-start;margin-top:var(--hig-sidebar-account-layout-margin-top)}.hig-sidebar-container[_ngcontent-%COMP%] .modal-nav-layout[_ngcontent-%COMP%]{justify-content:flex-end;margin-bottom:var(--hig-sidebar-modal-layout-margin-bottom)}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%]{width:100%;margin:var(--hig-sidebar-layout-gap-size) 0;position:relative}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%]:first-of-type{margin-top:var(--hig-sidebar-layout-first-item-top-gap)}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] .button-border[_ngcontent-%COMP%]{position:absolute;top:0;left:var(--hig-sidebar-item-selected-left-position);width:var(--hig-sidebar-item-selected-border-width);height:100%;background-color:var(--hig-sidebar-item-selected-left-border-color);border-radius:var(--hig-sidebar-item-selected-border-radius);display:none}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] .button-border.selected[_ngcontent-%COMP%]{display:block}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:relative;width:100%;padding:var(--hig-sidebar-button-padding-top-bottom-size) var(--hig-sidebar-button-padding-left-right-size)}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{position:absolute;height:var(--hig-notification-badge-width);width:var(--hig-notification-badge-height);background:var(--hig-notification-badge-bg);border-radius:50%;top:var(--hig-notification-badge-position-top)}.isLtr[_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{right:var(--hig-notification-badge-position-right)}html[dir=ltr][_ngcontent-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{--dummy6: 0;right:var(--hig-notification-badge-position-right)}.isRtl[_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{left:var(--hig-notification-badge-position-right)}html[dir=rtl][_ngcontent-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{--dummy6: 0;left:var(--hig-notification-badge-position-right)}.isLtr[_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{left:var(--hig-notification-badge-position-left, initial)}html[dir=ltr][_ngcontent-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{--dummy5: 0;left:var(--hig-notification-badge-position-left, initial)}.isRtl[_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{right:var(--hig-notification-badge-position-left, initial)}html[dir=rtl][_ngcontent-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{--dummy5: 0;right:var(--hig-notification-badge-position-left, initial)}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:var(--hig-sidebar-icon-size);width:var(--hig-sidebar-icon-size);height:var(--hig-sidebar-icon-size);color:var(--hig-sidebar-icon-default-color)}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:var(--hig-sidebar-account-icon-size);width:var(--hig-sidebar-account-icon-size);height:var(--hig-sidebar-account-icon-size)}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--hig-sidebar-item-hover-rgba)}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused[_ngcontent-%COMP%], .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused[_ngcontent-%COMP%]{background-color:var(--hig-sidebar-item-focused-rgba)}.isLtr[_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.selected[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.selected[_ngcontent-%COMP%]{box-shadow:inset var(--hig-sidebar-item-selected-left-border-size) 0 var(--hig-sidebar-item-selected-left-border-color)}.isRtl[_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.selected[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.selected[_ngcontent-%COMP%]{box-shadow:inset calc(var(--hig-sidebar-item-selected-left-border-size) * -1) 0 var(--hig-sidebar-item-selected-left-border-color)}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.selected[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--hig-sidebar-item-selected-icon-color)}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.selected[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--hig-sidebar-item-selected-text-color)}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] .account-button[_ngcontent-%COMP%] img.avatar-badge[_ngcontent-%COMP%]{position:relative;height:var(--hig-sidebar-avatar-badge-img-size);width:auto;top:var(--hig-sidebar-avatar-badge-img-relative-top)}.isLtr[_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] .account-button[_ngcontent-%COMP%] img.avatar-badge[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] .account-button[_ngcontent-%COMP%] img.avatar-badge[_ngcontent-%COMP%]{right:var(--hig-sidebar-avatar-badge-img-relative-right)}.isRtl[_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] .account-button[_ngcontent-%COMP%] img.avatar-badge[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] .account-button[_ngcontent-%COMP%] img.avatar-badge[_ngcontent-%COMP%]{left:var(--hig-sidebar-avatar-badge-img-relative-left)}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] .account-button[_ngcontent-%COMP%] .account-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;min-width:0;max-width:70%}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] .account-button[_ngcontent-%COMP%] .account-info[_ngcontent-%COMP%] .username[_ngcontent-%COMP%]{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hig-sidebar-highlight[_ngcontent-%COMP%]{--hig-linear-gradient-highlight-style-deg: 90deg;background-image:linear-gradient(var(--hig-linear-gradient-highlight-style-deg),rgba(255,255,255,.32) 0%,rgba(255,255,255,.32) 33%,rgba(255,255,255,0) 100%);transition:height .1s ease-in-out,opacity .3s ease-in-out,visibility .3s ease-in-out;left:0;opacity:0;visibility:hidden;position:absolute;top:0;width:100%}.isRtl[_nghost-%COMP%] .hig-sidebar-highlight[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-highlight[_ngcontent-%COMP%]{--hig-linear-gradient-highlight-style-deg: 270deg}.hig-sidebar-container.expandable.expanded[_ngcontent-%COMP%]:not(.collapsing) .hig-sidebar-highlight[_ngcontent-%COMP%]{opacity:1;visibility:visible}.hig-sidebar-container.show-border[_ngcontent-%COMP%]{box-sizing:border-box}.isLtr[_nghost-%COMP%] .hig-sidebar-container.show-border[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container.show-border[_ngcontent-%COMP%]{border-left:none;border-right:1px solid var(--hig-sidebar-border-color-rgba)}.isRtl[_nghost-%COMP%] .hig-sidebar-container.show-border[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container.show-border[_ngcontent-%COMP%]{border-right:none;border-left:1px solid var(--hig-sidebar-border-color-rgba)}.hig-sidebar-container.expandable[_ngcontent-%COMP%]{transition:width .3s ease-in-out}.hig-sidebar-container.expandable[_ngcontent-%COMP%]:hover{background-color:#ffffff14;cursor:pointer;transition:background-color .3s ease-in-out}.hig-sidebar-container.expandable[_ngcontent-%COMP%] .account-info-layout[_ngcontent-%COMP%], .hig-sidebar-container.expandable[_ngcontent-%COMP%] .modal-nav-layout[_ngcontent-%COMP%]{flex:1 0 0}.hig-sidebar-container.expandable[_ngcontent-%COMP%] .page-nav-layout[_ngcontent-%COMP%]{flex:2 0 0;justify-content:center}.isLtr[_nghost-%COMP%] .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-left:calc(var(--hig-sidebar-button-padding-left-right-size) + var(--hig-sidebar-button-left-indent))}html[dir=ltr][_ngcontent-%COMP%] .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{--dummy1: 0;padding-left:calc(var(--hig-sidebar-button-padding-left-right-size) + var(--hig-sidebar-button-left-indent))}.isRtl[_nghost-%COMP%] .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-right:calc(var(--hig-sidebar-button-padding-left-right-size) + var(--hig-sidebar-button-left-indent))}html[dir=rtl][_ngcontent-%COMP%] .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{--dummy1: 0;padding-right:calc(var(--hig-sidebar-button-padding-left-right-size) + var(--hig-sidebar-button-left-indent))}.hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:unset;--hig-linear-gradient-highlight-style-deg: 90deg;background-image:linear-gradient(var(--hig-linear-gradient-highlight-style-deg),rgba(255,255,255,.08) 0%,rgba(255,255,255,.08) 33%,rgba(255,255,255,0) 100%)}.isRtl[_nghost-%COMP%] .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .isRtl [_nghost-%COMP%] .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{--hig-linear-gradient-highlight-style-deg: 270deg}.hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused[_ngcontent-%COMP%], .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused[_ngcontent-%COMP%]{background-color:unset}.hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%], .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#fff;transition:color .4s ease-in;filter:drop-shadow(0 3px 2px rgba(0,0,0,.5))}.hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[hidden][_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{display:none}.hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[hidden][_ngcontent-%COMP%]:hover{--hig-linear-gradient-highlight-style-deg: 90deg;background-image:linear-gradient(var(--hig-linear-gradient-highlight-style-deg),rgba(255,255,255,0) 0%,rgba(255,255,255,0) 33%,rgba(255,255,255,0) 100%)}.isRtl[_nghost-%COMP%] .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[hidden][_ngcontent-%COMP%]:hover, .isRtl [_nghost-%COMP%] .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[hidden][_ngcontent-%COMP%]:hover{--hig-linear-gradient-highlight-style-deg: 270deg}.hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[hidden].cdk-focused[_ngcontent-%COMP%], .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[hidden].cdk-mouse-focused[_ngcontent-%COMP%]{opacity:0}.hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) mat-icon[_ngcontent-%COMP%]{margin-bottom:var(--hig-sidebar-collapsed-icon-gap-size)}.hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .item-text[_ngcontent-%COMP%]{width:100%}.hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%]{flex-direction:var(--hig-sidebar-button-content-layout-direction);justify-content:center}.isLtr[_nghost-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:var(--hig-sidebar-icon-padding-right)}html[dir=ltr][_ngcontent-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:var(--hig-sidebar-icon-padding-right)}.isRtl[_nghost-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:var(--hig-sidebar-icon-padding-right)}html[dir=rtl][_ngcontent-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:var(--hig-sidebar-icon-padding-right)}.isLtr[_nghost-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:0}html[dir=ltr][_ngcontent-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:0}.isRtl[_nghost-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:0}html[dir=rtl][_ngcontent-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:0}.hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{align-self:var(--hig-sidebar-text-align-self);text-align-last:var(--hig-sidebar-text-last-align-last)}.hig-sidebar-container.collapsed[_ngcontent-%COMP%]{width:var(--hig-sidebar-collapse-width);overflow:var(--hig-sidebar-container-collapsed-overflow)}.hig-sidebar-container.collapsed[_ngcontent-%COMP%] .account-info-layout[_ngcontent-%COMP%], .hig-sidebar-container.collapsed[_ngcontent-%COMP%] .page-nav-layout[_ngcontent-%COMP%], .hig-sidebar-container.collapsed[_ngcontent-%COMP%] .modal-nav-layout[_ngcontent-%COMP%]{align-items:center}.hig-sidebar-container.collapsed[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%]{flex-direction:var(--hig-sidebar-button-content-layout-direction);justify-content:center}.hig-sidebar-container.expandable.expand-finished[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{transition:transform .2s ease-in-out}.hig-sidebar-container.expandable.expand-finished[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(.account-button) span[_ngcontent-%COMP%]{transition:font-size .2s ease-in-out}.hig-sidebar-container.expanded[_ngcontent-%COMP%]{width:var(--hig-sidebar-expand-width)}.hig-sidebar-container.expanded[_ngcontent-%COMP%] .account-info-layout[_ngcontent-%COMP%], .hig-sidebar-container.expanded[_ngcontent-%COMP%] .page-nav-layout[_ngcontent-%COMP%], .hig-sidebar-container.expanded[_ngcontent-%COMP%] .modal-nav-layout[_ngcontent-%COMP%]{align-items:stretch}.hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:var(--hig-sidebar-expand-width)}.isLtr[_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:var(--hig-sidebar-expanded-icon-gap-size)}html[dir=ltr][_ngcontent-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:var(--hig-sidebar-expanded-icon-gap-size)}.isRtl[_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:var(--hig-sidebar-expanded-icon-gap-size)}html[dir=rtl][_ngcontent-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:var(--hig-sidebar-expanded-icon-gap-size)}.isLtr[_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%]{padding-left:calc(calc(var(--hig-sidebar-icon-size) / 2 + var(--hig-sidebar-button-padding-left-right-size) + var(--hig-sidebar-button-left-indent)) - var(--hig-sidebar-account-icon-size) / 2)}html[dir=ltr][_ngcontent-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%]{--dummy1: 0;padding-left:calc(calc(var(--hig-sidebar-icon-size) / 2 + var(--hig-sidebar-button-padding-left-right-size) + var(--hig-sidebar-button-left-indent)) - var(--hig-sidebar-account-icon-size) / 2)}.isRtl[_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%]{padding-right:calc(calc(var(--hig-sidebar-icon-size) / 2 + var(--hig-sidebar-button-padding-left-right-size) + var(--hig-sidebar-button-left-indent)) - var(--hig-sidebar-account-icon-size) / 2)}html[dir=rtl][_ngcontent-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%]{--dummy1: 0;padding-right:calc(calc(var(--hig-sidebar-icon-size) / 2 + var(--hig-sidebar-button-padding-left-right-size) + var(--hig-sidebar-button-left-indent)) - var(--hig-sidebar-account-icon-size) / 2)}.isLtr[_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:var(--hig-sidebar-expanded-account-icon-gap-size)}html[dir=ltr][_ngcontent-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:var(--hig-sidebar-expanded-account-icon-gap-size)}.isRtl[_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:var(--hig-sidebar-expanded-account-icon-gap-size)}html[dir=rtl][_ngcontent-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:var(--hig-sidebar-expanded-account-icon-gap-size)}.isLtr[_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button.has-badge[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button.has-badge[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:var(--hig-sidebar-expanded-account-with-badge-icon-gap-size)}html[dir=ltr][_ngcontent-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button.has-badge[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:var(--hig-sidebar-expanded-account-with-badge-icon-gap-size)}.isRtl[_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button.has-badge[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button.has-badge[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:var(--hig-sidebar-expanded-account-with-badge-icon-gap-size)}html[dir=rtl][_ngcontent-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button.has-badge[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:var(--hig-sidebar-expanded-account-with-badge-icon-gap-size)}.hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%]{flex-direction:row;justify-content:start}.hig-sidebar-container.expanded.collapsing[_ngcontent-%COMP%]{width:var(--hig-sidebar-collapse-width)}.hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:calc(var(--hig-sidebar-button-padding-top-bottom-size) + var(--hig-sidebar-icon-size) * 1.5);padding:0 var(--hig-sidebar-button-padding-left-right-size)}.hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused[_ngcontent-%COMP%]:not(.account-button) mat-icon[_ngcontent-%COMP%], .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused[_ngcontent-%COMP%]:not(.account-button) mat-icon[_ngcontent-%COMP%]{transform:scale(1.5);transition:transform .2s ease-in}.hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused[_ngcontent-%COMP%]:not(.account-button) span[_ngcontent-%COMP%], .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused[_ngcontent-%COMP%]:not(.account-button) span[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 16px;--font-body-line-height: 24px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused[_ngcontent-%COMP%]:not(.account-button) span[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused[_ngcontent-%COMP%]:not(.account-button) span[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused[_ngcontent-%COMP%]:not(.account-button) span[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused[_ngcontent-%COMP%]:not(.account-button) span[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused[_ngcontent-%COMP%]:not(.account-button) span[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused[_ngcontent-%COMP%]:not(.account-button) span[_ngcontent-%COMP%]{--font-body-size: 32px;--font-body-line-height: 48px;--font-body-color: rgba(255, 255, 255, .85)}.hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused.selected[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused.selected[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{--font-sub-shared-font-size: 16px;--font-sub-shared-line-height: 24px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused.selected[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused.selected[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused.selected[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused.selected[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused.selected[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused.selected[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{--font-sub-shared-font-size: 32px;--font-sub-shared-line-height: 48px}.hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.selected[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{transform:scale(1.5)}.hig-sidebar-gradient[_ngcontent-%COMP%]{background:linear-gradient(var(--hig-sidebar-background-linear-gradient-deg),#000000 16.12%,rgba(0,0,0,.99) 18.82%,rgba(0,0,0,.98) 21.45%,rgba(0,0,0,.965) 23.65%,rgba(0,0,0,.5) 100%);height:100vh;position:absolute;top:0;width:100vw}"],data:{animation:[(0,as.hZ)("higSidebarOpacityAnimation",[(0,as.kY)("void => *",[(0,as.iF)({opacity:"0"}),(0,as.i0)("300ms ease-in",(0,as.iF)({opacity:"1"}))]),(0,as.kY)("* => void",[(0,as.iF)({opacity:"1"}),(0,as.i0)("300ms ease-in",(0,as.iF)({opacity:"0"}))])]),(0,as.hZ)("higSidebarTextAnimation",[(0,as.kY)("void => *",[(0,as.iF)({opacity:"0",transform:"translateX(-10px)"}),(0,as.i0)("300ms ease-in",(0,as.iF)({opacity:"1",transform:"translateX(0)"}))]),(0,as.kY)("* => void",[(0,as.iF)({opacity:"1",transform:"translateX(0)"}),(0,as.i0)("300ms ease-in",(0,as.iF)({opacity:"0",transform:"translateX(-10px)"}))])])]}})}}return vt})();var Ws=s(33668),ws=s(13906);const Nl=["selectorCardElements"],Ka=vt=>({visibility:vt});function Il(vt,en){if(1&vt&&(d.j41(0,"span",8),d.EFF(1),d.nI1(2,"translate"),d.k0s()),2&vt){const Ee=d.XpG();d.R7$(),d.JRh(d.i5U(2,1,Ee.data.subtitle.text,null==Ee.data.subtitle?null:Ee.data.subtitle.placeholders))}}function Cl(vt,en){1&vt&&d.eu8(0)}function ac(vt,en){if(1&vt&&d.nrm(0,"img",16),2&vt){const Ee=d.XpG(2);d.Y8G("src",Ee.choiceChip.choiceChipIcon.text,d.B4B)}}function lc(vt,en){if(1&vt&&d.nrm(0,"qrcode",25),2&vt){const Ee=d.XpG().$implicit,kt=d.XpG(3);d.Y8G("qrdata",Ee.stepImage.url)("width",kt.qrCodeWidth)("errorCorrectionLevel","M")}}function Vc(vt,en){if(1&vt&&d.nrm(0,"mat-icon",26),2&vt){const Ee=d.XpG().$implicit;d.Y8G("svgIcon",Ee.stepImage.matIcon)}}function Al(vt,en){if(1&vt&&(d.j41(0,"div",19)(1,"div",20),d.DNE(2,lc,1,3,"qrcode",21)(3,Vc,1,1,"mat-icon",22),d.k0s(),d.j41(4,"span",23),d.EFF(5),d.nI1(6,"translate"),d.k0s(),d.j41(7,"span",24),d.EFF(8),d.nI1(9,"translate"),d.k0s()()),2&vt){const Ee=en.$implicit;d.R7$(2),d.Y8G("ngIf",null==Ee||null==Ee.stepImage?null:Ee.stepImage.url),d.R7$(),d.Y8G("ngIf",null==Ee||null==Ee.stepImage?null:Ee.stepImage.matIcon),d.R7$(2),d.JRh(d.bMT(6,4,Ee.stepTitle.text)),d.R7$(3),d.JRh(d.bMT(9,6,Ee.stepDescription.text))}}function cc(vt,en){if(1&vt&&(d.j41(0,"div",17),d.DNE(1,Al,10,8,"div",18),d.k0s()),2&vt){const Ee=d.XpG(2);d.R7$(),d.Y8G("ngForOf",Ee.choiceChip.choiceChipContent)}}function _t(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"button",27),d.bIt("click",function(){const Qt=d.eBV(Ee).$implicit,Zn=d.XpG(2);return d.Njj(Zn.onButtonClick(Qt))}),d.EFF(1),d.nI1(2,"translate"),d.k0s()}if(2&vt){const Ee=en.$implicit;d.Y8G("disabled",null==Ee?null:Ee.isDisabled),d.R7$(),d.SpI(" ",d.bMT(2,2,Ee.text)," ")}}function Kt(vt,en){if(1&vt&&(d.j41(0,"span",28),d.EFF(1),d.nI1(2,"translate"),d.k0s()),2&vt){const Ee=d.XpG(2);d.R7$(),d.JRh(d.bMT(2,1,Ee.choiceChip.choiceChipStatusText.title.text))}}function mt(vt,en){if(1&vt&&(d.j41(0,"div",9)(1,"div",10),d.DNE(2,ac,1,1,"img",11),d.j41(3,"span"),d.EFF(4),d.nI1(5,"translate"),d.k0s()(),d.DNE(6,cc,2,1,"div",12),d.j41(7,"div",13),d.DNE(8,_t,3,4,"button",14),d.k0s(),d.DNE(9,Kt,3,3,"span",15),d.k0s()),2&vt){const Ee=d.XpG();d.R7$(2),d.Y8G("ngIf",null==Ee.choiceChip.choiceChipIcon?null:Ee.choiceChip.choiceChipIcon.text),d.R7$(2),d.JRh(Ee.choiceChip.choiceChipTitle.translated?Ee.choiceChip.choiceChipTitle.text:d.bMT(5,5,Ee.choiceChip.choiceChipTitle.text)),d.R7$(2),d.Y8G("ngIf",Ee.choiceChip.choiceChipContent),d.R7$(2),d.Y8G("ngForOf",null==Ee.choiceChip?null:Ee.choiceChip.choiceChipButtons),d.R7$(),d.Y8G("ngIf",null==Ee.choiceChip||null==Ee.choiceChip.choiceChipStatusText?null:Ee.choiceChip.choiceChipStatusText.title)}}function Yt(vt,en){if(1&vt&&(d.j41(0,"span",41),d.EFF(1),d.nI1(2,"translate"),d.k0s()),2&vt){const Ee=d.XpG().$implicit;d.R7$(),d.JRh(d.bMT(2,1,Ee.secondaryInfo.text))}}function _n(vt,en){if(1&vt&&d.nrm(0,"mat-icon",42),2&vt){const Ee=d.XpG().$implicit;d.Y8G("svgIcon",Ee.secondaryInfo.matIcon)}}function de(vt,en){if(1&vt&&(d.j41(0,"span",43),d.EFF(1),d.nI1(2,"translate"),d.k0s()),2&vt){const Ee=d.XpG().$implicit;d.R7$(),d.JRh(d.bMT(2,1,Ee.selectorCardStatusText.text))}}function q(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"button",46),d.bIt("click",function(){const Qt=d.eBV(Ee).$implicit,Zn=d.XpG(4);return d.Njj(Zn.onButtonClick(Qt))}),d.EFF(1),d.nI1(2,"translate"),d.k0s()}if(2&vt){const Ee=en.$implicit;d.Y8G("disabled",null==Ee?null:Ee.isDisabled),d.R7$(),d.SpI(" ",d.bMT(2,2,Ee.text)," ")}}function j(vt,en){if(1&vt&&(d.j41(0,"div",44),d.DNE(1,q,3,4,"button",45),d.k0s()),2&vt){const Ee=d.XpG().$implicit;d.R7$(),d.Y8G("ngForOf",Ee.selectorCardButtons)}}function te(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"div",31,2),d.bIt("focus",function(){const Qt=d.eBV(Ee).index,Zn=d.XpG(2);return d.Njj(Zn.expandSelectorCard(Qt))})("mousemove",function(){const Qt=d.eBV(Ee).index,Zn=d.XpG(2);return d.Njj(Zn.expandSelectorCard(Qt))}),d.j41(2,"div",32),d.nrm(3,"img",33),d.j41(4,"span",34),d.EFF(5),d.k0s()(),d.j41(6,"div",35)(7,"div",36),d.DNE(8,Yt,3,3,"span",37)(9,_n,1,1,"mat-icon",38),d.k0s(),d.DNE(10,de,3,3,"span",39),d.k0s(),d.DNE(11,j,2,1,"div",40),d.k0s()}if(2&vt){const Ee=en.$implicit,kt=en.index,Qt=d.XpG(2);d.HbH(kt===Qt.expandedSelectorCardIndex?"expanded":kt>Qt.expandedSelectorCardIndex?"next-card":"previous-card"),d.R7$(3),d.Y8G("ngStyle",d.eq3(9,Ka,null!=Ee.selectorCardIcon&&Ee.selectorCardIcon.url?"visible":"hidden"))("src",Ee.selectorCardIcon.url,d.B4B),d.R7$(2),d.JRh(Ee.selectorCardIcon.caption),d.R7$(3),d.Y8G("ngIf",null==Ee||null==Ee.secondaryInfo?null:Ee.secondaryInfo.text),d.R7$(),d.Y8G("ngIf",null==Ee||null==Ee.secondaryInfo?null:Ee.secondaryInfo.matIcon),d.R7$(),d.Y8G("ngIf",null==Ee?null:Ee.selectorCardStatusText),d.R7$(),d.Y8G("ngIf",null==Ee?null:Ee.selectorCardButtons)}}function fe(vt,en){if(1&vt&&(d.j41(0,"div",29),d.DNE(1,te,12,11,"div",30),d.k0s()),2&vt){const Ee=d.XpG();d.Y8G("isRTL",Ee.isRTL),d.R7$(),d.Y8G("ngForOf",Ee.data.content)}}let Ne=(()=>{class vt extends N.D{expandSelectorCard(Ee,kt=!0){kt&&Ee===this.expandedSelectorCardIndex&&this.selectorCardElements.get(this.expandedSelectorCardIndex)?.nativeElement?.contains(document.activeElement)||(this.expandedSelectorCardIndex=Ee,setTimeout(()=>{this.focusManager.focusChild(this.selectorCardElements.get(this.expandedSelectorCardIndex).nativeElement,"initial")}))}constructor(Ee,kt,Qt,Zn,Vi,vr){super(kt,Qt,Ee,Zn),this.focusManager=Vi,this.localeService=vr,this.buttonClick=new d.bkB,this.qrCodeWidth=200,this.isRTL=!1,this.expandedSelectorCardIndex=0,this.data=Ee.get(S.Vh,null),this.isRTL=this.localeService.isRTLLayoutEnabled,this.data.content&&this.setContentData(this.data.content)}onButtonClick(Ee){this.buttonClick.emit(Ee)}setContentData(Ee){Ee.choiceChipTitle?this.choiceChip=Ee:this.selectorCards=Ee}ngAfterViewInit(){this.selectorCardElements.length>0&&this.expandSelectorCard(this.expandedSelectorCardIndex,!1)}static{this.\u0275fac=function(kt){return new(kt||vt)(d.rXU(d.zZn),d.rXU(S.CP,8),d.rXU(y.eN,8),d.rXU(d.SKi),d.rXU(fi.c),d.rXU(hn.iH))}}static{this.\u0275cmp=d.VBU({type:vt,selectors:[["nv-hig-fullpage-dialog"]],viewQuery:function(kt,Qt){if(1&kt&&d.GBs(Nl,5),2&kt){let Zn;d.mGM(Zn=d.lsd())&&(Qt.selectorCardElements=Zn)}},inputs:{data:"data"},outputs:{buttonClick:"buttonClick"},standalone:!0,features:[d.Vt3,d.aNF],decls:13,vars:11,consts:[["choiceChipTemplate",""],["selectorCardsTemplate",""],["selectorCardElements",""],["nvHigBackgroundImageOverlay","","fxFlex","","fxLayout","column","nvTrapFocus","",1,"fullpage-dialog",3,"imageUrl"],[1,"header","font-sub1"],[1,"title","font-header4"],["class","subtitle font-body2",4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],[1,"subtitle","font-body2"],["fxLayout","column",1,"choice-chip-container"],[1,"choice-chip","font-sub2"],["class","chip-icon",3,"src",4,"ngIf"],["fxLayout","row","class","steps",4,"ngIf"],["nvAutoFocus","","autoFocusPolicy","initial",1,"buttons"],["mat-button","","class","font-button2",3,"disabled","click",4,"ngFor","ngForOf"],["class","status-text font-sub3",4,"ngIf"],[1,"chip-icon",3,"src"],["fxLayout","row",1,"steps"],["fxLayout","column","class","step",4,"ngFor","ngForOf"],["fxLayout","column",1,"step"],[1,"icon-container"],[3,"qrdata","width","errorCorrectionLevel",4,"ngIf"],["class","icon font-body2",3,"svgIcon",4,"ngIf"],[1,"step-title","font-body2"],[1,"step-description","font-body3"],[3,"qrdata","width","errorCorrectionLevel"],[1,"icon","font-body2",3,"svgIcon"],["mat-button","",1,"font-button2",3,"click","disabled"],[1,"status-text","font-sub3"],["nvFast1DSpatialNavigation","","fxLayout","row",1,"selector-cards",3,"isRTL"],["class","selector-card","nvFastSpatialNavigationItem","","tabindex","0",3,"class","focus","mousemove",4,"ngFor","ngForOf"],["nvFastSpatialNavigationItem","","tabindex","0",1,"selector-card",3,"focus","mousemove"],[1,"card-icon"],[1,"icon",3,"ngStyle","src"],[1,"font-body3"],[1,"card-text"],[1,"selector-card-secondary-info"],["class","font-sub3 selector-card-secondary-info-text",4,"ngIf"],["class","selector-card-secondary-info-icon icon font-body2",3,"svgIcon",4,"ngIf"],["class","card-status-text font-body3",4,"ngIf"],["class","card-buttons",4,"ngIf"],[1,"font-sub3","selector-card-secondary-info-text"],[1,"selector-card-secondary-info-icon","icon","font-body2",3,"svgIcon"],[1,"card-status-text","font-body3"],[1,"card-buttons"],["mat-button","","class","font-button2 card-button",3,"disabled","click",4,"ngFor","ngForOf"],["mat-button","",1,"font-button2","card-button",3,"click","disabled"]],template:function(kt,Qt){if(1&kt&&(d.j41(0,"div",3)(1,"span",4),d.EFF(2),d.nI1(3,"translate"),d.k0s(),d.j41(4,"span",5),d.EFF(5),d.nI1(6,"translate"),d.k0s(),d.DNE(7,Il,3,4,"span",6)(8,Cl,1,0,"ng-container",7),d.k0s(),d.DNE(9,mt,10,7,"ng-template",null,0,d.C5r)(11,fe,2,2,"ng-template",null,1,d.C5r)),2&kt){const Zn=d.sdS(10),Vi=d.sdS(12);d.Y8G("imageUrl",null==Qt.data?null:Qt.data.backgroundImageUrl),d.R7$(2),d.JRh(d.bMT(3,7,Qt.data.header.text)),d.R7$(3),d.JRh(d.bMT(6,9,Qt.data.title.text)),d.R7$(2),d.Y8G("ngIf",null==Qt.data?null:Qt.data.subtitle),d.R7$(),d.Y8G("ngIf",Qt.choiceChip)("ngIfThen",Zn)("ngIfElse",Vi)}},dependencies:[ws.Z,re.w2,re.DJ,re.UI,E.D,n.bT,n.pM,i.f,i.c,f.m_,f.An,H.N,M.wG,M.iV,si,go,n.B3,ie.Cc,ie.eI,_.h,_.D9],styles:['.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}.fullpage-dialog[_ngcontent-%COMP%]{position:fixed;top:0;left:0;max-height:100%;width:100%;height:100%;align-items:center;padding:56px 88px}.fullpage-dialog[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;height:100%;width:100%;z-index:-1;background:linear-gradient(to top,#000000f2 7.22%,#000000b3)}.header[_ngcontent-%COMP%]{align-self:self-start;color:#fff9}.title[_ngcontent-%COMP%], .subtitle[_ngcontent-%COMP%]{text-align:center}.subtitle[_ngcontent-%COMP%]{margin-top:16px;max-width:1152px}.choice-chip-container[_ngcontent-%COMP%]{align-items:center}.choice-chip[_ngcontent-%COMP%]{display:flex;margin-top:96px}.chip-icon[_ngcontent-%COMP%]{width:32px;height:32px;color:#fff}.isLtr[_nghost-%COMP%] .chip-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .chip-icon[_ngcontent-%COMP%]{margin:auto 16px auto 0}html[dir=ltr][_ngcontent-%COMP%] .chip-icon[_ngcontent-%COMP%]{--dummy: 0;margin:auto 16px auto 0}.isRtl[_nghost-%COMP%] .chip-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .chip-icon[_ngcontent-%COMP%]{margin:auto 0 auto 16px}html[dir=rtl][_ngcontent-%COMP%] .chip-icon[_ngcontent-%COMP%]{--dummy: 0;margin:auto 0 auto 16px}.choice-chip-content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.steps[_ngcontent-%COMP%]{flex-direction:row;justify-content:center;margin:84px 0}.step[_ngcontent-%COMP%]{flex-direction:column;margin:0 48px;text-align:center;width:300px}.icon-container[_ngcontent-%COMP%]{height:200px;margin-bottom:56px}.icon[_ngcontent-%COMP%]{color:#fff;height:200px;width:238px}.step-title[_ngcontent-%COMP%]{align-items:center;border:#ffffff 2px solid;border-radius:24px;color:#fff;display:flex;font-weight:500;height:44px;justify-content:center;margin:0 auto 24px;width:44px}.step-description[_ngcontent-%COMP%]{margin:0;max-width:300px}.buttons[_ngcontent-%COMP%]{display:flex;gap:24px}.status-container[_ngcontent-%COMP%]{text-align:center}.status[_ngcontent-%COMP%]{margin:0}.selector-cards[_ngcontent-%COMP%]{margin-top:96px}.selector-card[_ngcontent-%COMP%]{width:264px;height:544px;margin:20px 16px;text-align:center}.selector-card[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;background-color:#494949;opacity:0}.selector-card[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{transform:translateY(188px)}.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;align-items:center;opacity:.7}.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:64px;height:64px}.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{min-height:80px}.selector-card[_ngcontent-%COMP%] .card-text[_ngcontent-%COMP%]{box-sizing:border-box;height:110px}.selector-card[_ngcontent-%COMP%] .selector-card-secondary-info[_ngcontent-%COMP%]{height:30px;margin-top:16px;display:inline-flex;flex-direction:row;gap:16px}.selector-card[_ngcontent-%COMP%] .selector-card-secondary-info-icon[_ngcontent-%COMP%]{height:32px;width:32px;color:#76b900}.selector-card[_ngcontent-%COMP%] .card-status-text[_ngcontent-%COMP%], .selector-card[_ngcontent-%COMP%] .card-buttons[_ngcontent-%COMP%]{opacity:0}.selector-card.next-card[_ngcontent-%COMP%]{transform:translate(74px)}.selector-card.previous-card[_ngcontent-%COMP%]{transform:translate(-74px)}.isRtl[_nghost-%COMP%] .selector-card.next-card[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .selector-card.next-card[_ngcontent-%COMP%]{transform:translate(-74px)}.isRtl[_nghost-%COMP%] .selector-card.previous-card[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .selector-card.previous-card[_ngcontent-%COMP%]{transform:translate(74px)}.expanded.selector-card[_ngcontent-%COMP%]{transform:scale(1.6818181818,1.0735294118)}.expanded.selector-card[_ngcontent-%COMP%]:before{opacity:.8}.expanded.selector-card[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{transform:scale(.5945945946,.9315068493) translateZ(0) translateY(96px)}.expanded.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%]{opacity:1}.expanded.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{transform:scale(1.25)}.expanded.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{--font-header-font-size: 14px;--font-header-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:700}.tv-view[_ngcontent-%COMP%] .expanded.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .expanded.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .expanded.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{--font-header-font-size: 28px;--font-header-line-height: 40px}.expanded.selector-card[_ngcontent-%COMP%] .card-status-text[_ngcontent-%COMP%], .expanded.selector-card[_ngcontent-%COMP%] .card-buttons[_ngcontent-%COMP%]{opacity:1}.expanded.selector-card[_ngcontent-%COMP%] .card-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;width:100%;min-height:160px}.expanded.selector-card[_ngcontent-%COMP%] .card-buttons[_ngcontent-%COMP%] .card-button[_ngcontent-%COMP%]{height:72px}.selector-card[_ngcontent-%COMP%]{--transition-duration: .2s;transition-property:transform;transition-duration:var(--transition-duration);transition-timing-function:ease-out}.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%], .selector-card[_ngcontent-%COMP%] .card-text[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--transition-duration);transition-timing-function:ease-out}.selector-card[_ngcontent-%COMP%]:before{transition-property:opacity;transition-duration:var(--transition-duration);transition-timing-function:ease-out}.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%]{transition-property:transform,opacity;transition-duration:var(--transition-duration);transition-timing-function:ease-out}.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{transition-property:font-size,font-weight;transition-duration:var(--transition-duration);transition-timing-function:ease-out}.selector-card.expanded[_ngcontent-%COMP%]{--transition-duration: .25s}.selector-card.expanded[_ngcontent-%COMP%] .card-buttons[_ngcontent-%COMP%]{transition-property:opacity;transition-duration:var(--transition-duration);transition-timing-function:ease-out;transition-delay:.2s}']})}}return vt})();var Ye=function(vt){return vt[vt.Icon=0]="Icon",vt[vt.AvatarIcon=1]="AvatarIcon",vt[vt.SquareImage=2]="SquareImage",vt[vt.RectangularImage=3]="RectangularImage",vt}(Ye||{}),gt=function(vt){return vt[vt.Icon=0]="Icon",vt[vt.Checkbox=1]="Checkbox",vt[vt.Switch=2]="Switch",vt[vt.IconButton=3]="IconButton",vt[vt.TextButton=4]="TextButton",vt[vt.Rotary=5]="Rotary",vt[vt.Dropdown=6]="Dropdown",vt[vt.PlainText=7]="PlainText",vt}(gt||{}),on=s(11013);const pe=480,Ge={MaxS1Width:479,MaxS2Width:719,MinS3Width:720,MaxS3Width:959,MaxS4Width:1439,MaxS5Width:1919,MinS6Width:1920};function xt(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"button",2),d.bIt("click",function(Qt){d.eBV(Ee);const Zn=d.XpG(2);return d.Njj(Zn.secondaryButtonClick(Qt))}),d.EFF(1),d.nI1(2,"translate"),d.k0s()}if(2&vt){const Ee=d.XpG(2);d.Y8G("disabled",Ee.data.secondaryButton.isDisabled),d.R7$(),d.SpI(" ",d.bMT(2,2,Ee.data.secondaryButton.text)," ")}}function sn(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"div",1)(1,"button",2),d.bIt("click",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.Njj(Zn.primaryButtonClick(Qt))}),d.EFF(2),d.nI1(3,"translate"),d.k0s(),d.DNE(4,xt,3,4,"button",3),d.k0s()}if(2&vt){const Ee=d.XpG();d.R7$(),d.Y8G("disabled",Ee.data.primaryButton.isDisabled),d.R7$(),d.SpI(" ",d.bMT(3,3,Ee.data.primaryButton.text)," "),d.R7$(2),d.vxM(4,Ee.data.secondaryButton?4:-1)}}let En=(()=>{class vt{constructor(){this.primaryButtonClicked=new d.bkB,this.secondaryButtonClicked=new d.bkB}set cardData(Ee){this.data=Ee}primaryButtonClick(Ee){this.primaryButtonClicked.emit(Ee)}secondaryButtonClick(Ee){this.secondaryButtonClicked.emit(Ee)}static{this.\u0275fac=function(kt){return new(kt||vt)}}static{this.\u0275cmp=d.VBU({type:vt,selectors:[["nv-hig-list-item-context-cta"]],inputs:{cardData:"cardData"},outputs:{primaryButtonClicked:"primaryButtonClicked",secondaryButtonClicked:"secondaryButtonClicked"},standalone:!0,features:[d.aNF],decls:1,vars:1,consts:[["class","context-cta-container",4,"ngIf"],[1,"context-cta-container"],["mat-button","",1,"font-button2",3,"click","disabled"],["mat-button","",1,"font-button2",3,"disabled"]],template:function(kt,Qt){1&kt&&d.DNE(0,sn,5,5,"div",0),2&kt&&d.Y8G("ngIf",Qt.data.primaryButton)},dependencies:[n.bT,M.wG,M.iV,_.h,_.D9],styles:[".context-cta-container[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;align-items:flex-start;gap:calc(var(--hig-list-item-context-cta-button-gap) * var(--hig-list-item-length-scaling-factor))}.isLtr[_nghost-%COMP%] .context-cta-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .context-cta-container[_ngcontent-%COMP%]{padding-right:calc(8px * var(--hig-list-item-length-scaling-factor))}html[dir=ltr][_ngcontent-%COMP%] .context-cta-container[_ngcontent-%COMP%]{--dummy2: 0;padding-right:calc(8px * var(--hig-list-item-length-scaling-factor))}.isRtl[_nghost-%COMP%] .context-cta-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .context-cta-container[_ngcontent-%COMP%]{padding-left:calc(8px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .context-cta-container[_ngcontent-%COMP%]{--dummy2: 0;padding-left:calc(8px * var(--hig-list-item-length-scaling-factor))}"]})}}return vt})();function Un(vt,en){if(1&vt&&d.nrm(0,"mat-icon",1),2&vt){const Ee=d.XpG();d.Y8G("svgIcon",Ee.data.context.matIcon)}}let ri=(()=>{class vt{set cardData(Ee){this.data=Ee}static{this.\u0275fac=function(kt){return new(kt||vt)}}static{this.\u0275cmp=d.VBU({type:vt,selectors:[["nv-hig-list-item-context"]],inputs:{cardData:"cardData"},standalone:!0,features:[d.aNF],decls:4,vars:5,consts:[[1,"context-text-row","font-body2","font-color-tertiary"],[1,"context-icon",3,"svgIcon"],[3,"innerHtml"]],template:function(kt,Qt){1&kt&&(d.j41(0,"div",0),d.DNE(1,Un,1,1,"mat-icon",1),d.nrm(2,"div",2),d.nI1(3,"translate"),d.k0s()),2&kt&&(d.R7$(),d.vxM(1,Qt.data.context.matIcon?1:-1),d.R7$(),d.Y8G("innerHtml",Qt.data.context.translated?Qt.data.context.text:d.i5U(3,2,Qt.data.context.text,Qt.data.context.placeholders),d.npT))},dependencies:[f.m_,f.An,_.h,_.D9],styles:[".context-text-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:calc(var(--hig-list-item-context-supporting-text-gap) * var(--hig-list-item-length-scaling-factor));padding:calc(var(--hig-list-item-context-vertical-padding) * var(--hig-list-item-length-scaling-factor)) 0px}.context-icon[_ngcontent-%COMP%]{width:calc(var(--hig-list-item-context-supporting-icon-size) * var(--hig-list-item-image-scaling-factor));height:calc(var(--hig-list-item-context-supporting-icon-size) * var(--hig-list-item-image-scaling-factor));flex:0 0 auto}"]})}}return vt})();var Mi=s(51635);const Xi=["button"],Ui=["container"],fr=["items"];function xr(vt,en){if(1&vt&&(d.j41(0,"div",10),d.EFF(1),d.nI1(2,"translate"),d.k0s()),2&vt){const Ee=en.$implicit,kt=d.XpG();d.AVh("disabled-opacity",kt.disabled)("selected",Ee===(null==kt.input?null:kt.input[kt.selectedIndex])),d.R7$(),d.SpI(" ",d.bMT(2,5,Ee)," ")}}let yr=(()=>{class vt{set input(Ee){this._input=Ee,this.displayList=Ee.slice()}get input(){return this._input}set initialState(Ee){this._initialState=Ee,this.initialized&&Ee!==this.selectedIndex&&(this.ngOnInit(),this.ngAfterViewInit())}get initialState(){return this._initialState}constructor(Ee,kt){this.animationBuilder=Ee,this.disabled=!1,this._initialState=0,this.continuous=!0,this.selectionChanged=new d.bkB,this.displayIndex=0,this.selectedIndex=-1,this.initialized=!1,this.isRTLLayout=!1,this.isRTLLayout=kt.isRTLLayoutEnabled}moveToLeft(){if(!(!1===this.continuous&&0===this.selectedIndex||this.disabled||0===this.input.length)){if(0===this.displayIndex){const Ee=this.displayList.pop();this.displayList.unshift(Ee),this.displayIndex=1,this.animateTo(this.displayIndex,!0)}this.displayIndex--,this.selectedIndex=(this.input.length+this.selectedIndex-1)%this.input.length,this.selectionChanged.emit(this.selectedIndex),this.animateTo(this.displayIndex,!1)}}moveToRight(){if(!(!1===this.continuous&&this.selectedIndex===this.input.length-1||this.disabled||0===this.input.length)){if(this.displayIndex+1===this.displayList.length){const Ee=this.displayList.shift();this.displayList.push(Ee),this.displayIndex--,this.animateTo(this.displayIndex,!0)}this.displayIndex++,this.selectedIndex=(this.selectedIndex+1)%this.input.length,this.selectionChanged.emit(this.selectedIndex),this.animateTo(this.displayIndex,!1)}}goLeft(Ee){Ee?.preventDefault(),this.isRTLLayout?this.moveToRight():this.moveToLeft()}goRight(Ee){Ee?.preventDefault(),this.isRTLLayout?this.moveToLeft():this.moveToRight()}ngOnChanges(Ee){for(const kt of Object.keys(Ee))"input"===kt&&(Ee[kt].currentValue.length-1<this.initialState&&(this.initialState=0),(0===this.initialState||this.initialState===this.input.length-1)&&(this.ngOnInit(),this.ngAfterViewInit()))}ngOnInit(){this.displayIndex=this.selectedIndex=this.initialState,this.displayList=this.input?this.input.slice():void 0}ngAfterViewInit(){this.animateTo(this.displayIndex,!0),this.initialized=!0}animateTo(Ee,kt){let Qt=Ee*this.container.nativeElement.offsetWidth;this.isRTLLayout||(Qt*=-1),this.animationBuilder.build([(0,as.i0)(kt?0:"250ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,as.iF)({transform:`translateX(${Qt}px)`}))]).create(this.itemContainer.nativeElement).play()}focus(){this.element.nativeElement.focus()}static{this.\u0275fac=function(kt){return new(kt||vt)(d.rXU(as.S6),d.rXU(hn.iH))}}static{this.\u0275cmp=d.VBU({type:vt,selectors:[["nv-hig-rotary"]],viewQuery:function(kt,Qt){if(1&kt&&(d.GBs(Xi,5),d.GBs(Ui,7),d.GBs(fr,7)),2&kt){let Zn;d.mGM(Zn=d.lsd())&&(Qt.element=Zn.first),d.mGM(Zn=d.lsd())&&(Qt.container=Zn.first),d.mGM(Zn=d.lsd())&&(Qt.itemContainer=Zn.first)}},inputs:{input:"input",disabled:"disabled",initialState:"initialState",continuous:"continuous"},outputs:{selectionChanged:"selectionChanged"},standalone:!0,features:[d.OA$,d.aNF],decls:12,vars:3,consts:[["container",""],["items",""],["tabindex","0","cdkMonitorElementFocus","",1,"rotary-container",3,"keydown.arrowleft","keydown.arrowright"],[1,"button-container"],["mat-icon-button","","tabindex","-1",1,"rounded-button","font-body2",3,"click","disabled"],["svgIcon","chevron_left",1,"rotary-chevron"],[1,"nv-rotary-data-container","item-width"],["fxLayout","row","fxLayoutAlign","start center"],["class","font-body2 font-color-primary item-width","fxFlex","none",3,"disabled-opacity","selected",4,"ngFor","ngForOf"],["svgIcon","chevron_right",1,"rotary-chevron"],["fxFlex","none",1,"font-body2","font-color-primary","item-width"]],template:function(kt,Qt){if(1&kt){const Zn=d.RV6();d.j41(0,"div",2),d.bIt("keydown.arrowleft",function(vr){return d.eBV(Zn),d.Njj(Qt.goLeft(vr))})("keydown.arrowright",function(vr){return d.eBV(Zn),d.Njj(Qt.goRight(vr))}),d.j41(1,"div",3)(2,"button",4),d.bIt("click",function(vr){return d.eBV(Zn),d.Njj(Qt.goLeft(vr))}),d.nrm(3,"mat-icon",5),d.k0s()(),d.j41(4,"div",6,0)(6,"div",7,1),d.DNE(8,xr,3,7,"div",8),d.k0s()(),d.j41(9,"div",3)(10,"button",4),d.bIt("click",function(vr){return d.eBV(Zn),d.Njj(Qt.goRight(vr))}),d.nrm(11,"mat-icon",9),d.k0s()()()}2&kt&&(d.R7$(2),d.Y8G("disabled",Qt.disabled),d.R7$(6),d.Y8G("ngForOf",Qt.displayList),d.R7$(2),d.Y8G("disabled",Qt.disabled))},dependencies:[V.Pd,V.vR,M.wG,M.iV,f.m_,f.An,re.w2,re.DJ,re.sA,re.UI,n.pM,_.h,_.D9],styles:["[_nghost-%COMP%]{--hig-rotary-width: 144px;--hig-rotary-height: 40px;--hig-rotary-button-size: 40px;--hig-rotary-chevron-size: 24px}.rotary-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;height:var(--hig-rotary-height)}.rotary-container.cdk-keyboard-focused[_ngcontent-%COMP%], .rotary-container.cdk-program-focused[_ngcontent-%COMP%]{background:#ffffff52;transition:background-color .75s ease}.nv-rotary-data-container[_ngcontent-%COMP%]{text-align:center;display:block;overflow:hidden}.button-container[_ngcontent-%COMP%]{width:var(--hig-rotary-height);height:var(--hig-rotary-height);display:flex;align-items:center;justify-content:center}.rounded-button[_ngcontent-%COMP%]{border-radius:50%!important;width:var(--hig-rotary-button-size);height:var(--hig-rotary-button-size)}.rotary-chevron[_ngcontent-%COMP%]{width:var(--hig-rotary-chevron-size);height:var(--hig-rotary-chevron-size)}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.item-width[_ngcontent-%COMP%]{width:calc(var(--hig-rotary-width) - 2 * var(--hig-rotary-height))}.selected[_ngcontent-%COMP%]{visibility:visible}"]})}}return vt})();var Rr=s(54676);class co{constructor(en){this.reference=en}get dialogRef(){return this.reference instanceof S.CP&&this.reference.componentInstance instanceof We?this.reference:void 0}get bottomSheetRef(){return this.reference instanceof y.eN&&this.reference.instance instanceof c.G?this.reference:void 0}get threeQuarterSheetRef(){return this.reference instanceof S.CP&&this.reference.componentInstance instanceof lt.L?this.reference:void 0}get instance(){return this.dialogRef?.componentInstance??this.bottomSheetRef?.instance??this.threeQuarterSheetRef?.componentInstance}get primaryButtonClick(){return this.instance?.primaryButtonClick}get secondaryButtonClick(){return this.instance?.secondaryButtonClick}get linkClick(){return this.instance?.linkClick}get dialogKeydownEvents(){return this.dialogRef?.keydownEvents()}get augmentedButtonClick(){return this.instance instanceof lt.L?this.instance.augmentedButtonClick:void 0}get radioButtonClick(){return this.instance instanceof We||this.instance instanceof lt.L?this.instance.radioButtonClick:void 0}get checkboxState(){return this.instance?.data?.checkboxState}get radioOptionSelected(){return this.instance?.data?.radioOptionSelected}set backToCloseResult(en){this.instance.backToCloseResult=en}close(en){this.dialogRef?.close(en),this.bottomSheetRef?.dismiss(en),this.threeQuarterSheetRef?.close(en)}afterClosed(){return this.dialogRef?.afterClosed()??this.bottomSheetRef?.afterDismissed()??this.threeQuarterSheetRef?.afterClosed()}afterOpened(){return this.dialogRef?.afterOpened()??this.bottomSheetRef?.afterOpened()??this.threeQuarterSheetRef?.afterOpened()}}let Bo=(()=>{class vt{constructor(Ee,kt,Qt,Zn){this.matDialog=Ee,this.matBottomSheet=kt,this.focusManager=Qt,this.tvMode=!!Zn.tvMode}open(Ee,kt){Ee.autoFocus=!1;const Qt=()=>kt?.preferredDialogType===T.QO.BottomSheet?c.G.open(this.matBottomSheet,Ee,this.tvMode):this.tvMode?Ee.data.checkbox||Ee.data.radioButtonOptions||kt?.preferredDialogType===T.QO.ThreeQuarterSheet?lt.L.open(this.matDialog,Ee):c.G.open(this.matBottomSheet,Ee,this.tvMode):We.open(this.matDialog,Ee);return kt?.disableFocusRestore?new co(Qt()):this.focusManager.restoreFocusAfterClosed(()=>new co(Qt()),kt)}closeAll(){this.matDialog.closeAll(),this.matBottomSheet.dismiss()}static{this.\u0275fac=function(kt){return new(kt||vt)(d.KVO(S.bZ),d.KVO(y.VK),d.KVO(fi.c),d.KVO(on.X,8))}}static{this.\u0275prov=d.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"})}}return vt})();const os=vt=>({visible:vt});function Es(vt,en){if(1&vt&&(d.j41(0,"div",1),d.nrm(1,"mat-icon",2),d.k0s()),2&vt){const Ee=d.XpG();d.R7$(),d.Y8G("svgIcon",Ee.data.icon)}}function Fs(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"div",3)(1,"mat-checkbox",4),d.mxI("ngModelChange",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.DH7(Zn.data.toggleState,Qt)||(Zn.data.toggleState=Qt),d.Njj(Qt)}),d.bIt("change",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.Njj(Zn.toggleClick(Qt))}),d.k0s()()}if(2&vt){const Ee=d.XpG();d.R7$(),d.Y8G("disabled",Ee.data.disabled),d.R50("ngModel",Ee.data.toggleState)}}function Qs(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"div",5)(1,"mat-slide-toggle",4),d.mxI("ngModelChange",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.DH7(Zn.data.toggleState,Qt)||(Zn.data.toggleState=Qt),d.Njj(Qt)}),d.bIt("change",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.Njj(Zn.toggleClick(Qt))}),d.k0s()()}if(2&vt){const Ee=d.XpG();d.R7$(),d.Y8G("disabled",Ee.data.disabled),d.R50("ngModel",Ee.data.toggleState)}}function io(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"div",6)(1,"button",7),d.bIt("click",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.Njj(Zn.primaryButtonClick(Qt))}),d.nrm(2,"mat-icon",8),d.k0s()()}if(2&vt){const Ee=d.XpG();d.R7$(2),d.Y8G("svgIcon",Ee.data.icon)}}function Us(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"button",12),d.bIt("click",function(Qt){d.eBV(Ee);const Zn=d.XpG(2);return d.Njj(Zn.primaryButtonClick(Qt))}),d.j41(1,"span"),d.EFF(2),d.nI1(3,"translate"),d.k0s(),d.eu8(4,13),d.k0s()}if(2&vt){const Ee=d.XpG(2),kt=d.sdS(9);d.Y8G("disabled",Ee.data.primaryButton.isDisabled||Ee.data.disabled),d.R7$(),d.AVh("primary-button-text",Ee.data.primaryButton.spinnerOverlay),d.R7$(),d.SpI(" ",d.bMT(3,6,Ee.data.primaryButton.text)," "),d.R7$(2),d.Y8G("ngTemplateOutlet",kt)("ngTemplateOutletContext",d.eq3(8,os,Ee.data.primaryButton.spinnerOverlay))}}function Na(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"button",14),d.bIt("click",function(Qt){d.eBV(Ee);const Zn=d.XpG(2);return d.Njj(Zn.secondaryButtonClick(Qt))}),d.j41(1,"span"),d.EFF(2),d.nI1(3,"translate"),d.k0s(),d.eu8(4,13),d.k0s()}if(2&vt){const Ee=d.XpG(2),kt=d.sdS(9);d.Y8G("disabled",Ee.data.secondaryButton.isDisabled||Ee.data.disabled),d.BMQ("cdkFocusInitial",!Ee.data.primaryButton),d.R7$(),d.AVh("secondary-button-text",Ee.data.secondaryButton.spinnerOverlay),d.R7$(),d.SpI(" ",d.bMT(3,7,Ee.data.secondaryButton.text)," "),d.R7$(2),d.Y8G("ngTemplateOutlet",kt)("ngTemplateOutletContext",d.eq3(9,os,Ee.data.secondaryButton.spinnerOverlay))}}function Is(vt,en){if(1&vt&&(d.j41(0,"div",9),d.DNE(1,Us,5,10,"button",10)(2,Na,5,11,"button",11),d.k0s()),2&vt){const Ee=d.XpG();d.R7$(),d.vxM(1,Ee.data.primaryButton?1:-1),d.R7$(),d.vxM(2,Ee.data.secondaryButton?2:-1)}}function yl(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"div",15)(1,"nv-hig-rotary",16),d.bIt("selectionChanged",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.Njj(Zn.rotaryChange(Qt))}),d.k0s()()}if(2&vt){const Ee=d.XpG();d.R7$(),d.Y8G("input",Ee.rotaryOptions)("initialState",Ee.rotaryInit)}}function x(vt,en){1&vt&&d.nrm(0,"mat-divider")}function h(vt,en){if(1&vt&&(d.j41(0,"mat-option",19),d.EFF(1),d.nI1(2,"translate"),d.k0s(),d.DNE(3,x,1,0,"mat-divider")),2&vt){const Ee=en.$implicit;d.Y8G("value",Ee)("disabled",Ee.disabled),d.R7$(),d.SpI(" ",d.bMT(2,4,Ee.label)," "),d.R7$(2),d.vxM(3,Ee.divider?3:-1)}}function b(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"div",17)(1,"mat-select",18),d.mxI("ngModelChange",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.DH7(Zn.selection,Qt)||(Zn.selection=Qt),d.Njj(Qt)}),d.bIt("selectionChange",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.Njj(Zn.selectionChange(Qt))}),d.Z7z(2,h,4,6,null,null,d.Vm6),d.k0s()()}if(2&vt){const Ee=d.XpG();d.R7$(),d.FS9("placeholder",Ee.selection.label),d.R50("ngModel",Ee.selection),d.Y8G("disabled",Ee.data.disabled),d.BMQ("disabled",!!Ee.data.disabled||null),d.R7$(),d.Dyx(Ee.data.listItems)}}function k(vt,en){if(1&vt&&(d.j41(0,"div",20),d.nrm(1,"div",21),d.nI1(2,"translate"),d.k0s()),2&vt){const Ee=d.XpG();d.R7$(),d.Y8G("innerHtml",Ee.data.plaintext.translated?Ee.data.plaintext.text:d.i5U(2,1,Ee.data.plaintext.text,Ee.data.plaintext.placeholders),d.npT)}}function ee(vt,en){if(1&vt&&(d.j41(0,"div",23),d.nrm(1,"mat-progress-spinner",24),d.k0s()),2&vt){const Ee=d.XpG(2);d.R7$(),d.Y8G("diameter",Ee.spinnerDiameter)}}function he(vt,en){1&vt&&d.DNE(0,ee,2,1,"div",22),2&vt&&d.Y8G("ngIf",en.visible)}let we=(()=>{class vt{set cardData(Ee){this.data=Ee,this.data?.listItems?.length>0&&(this.initializeListItems(!0),this.objectDifferMap=void 0,this.setupKvDiffer()),this.data?.toggleState&&(this.toggleState=this.data.toggleState)}constructor(Ee,kt){this.genericDialog=Ee,this.differs=kt,this.spinnerDiameter=16,this.dialogPanelClass="",this.useDifferForListItemUpdate=!1,this.primaryButtonClicked=new d.bkB,this.secondaryButtonClicked=new d.bkB,this.toggleClicked=new d.bkB,this.selectionChanged=new d.bkB,this.trailElementType=gt,this.toggleState=!1,this.rotaryOptions=[],this.rotaryInit=0,this.destroy$=new Xt.B7}ngOnInit(){this.setupKvDiffer()}ngDoCheck(){if(!(this.useDifferForListItemUpdate&&this.data?.listItems?.length>0))return;let Ee=!1;this.data?.listItems?.forEach(kt=>{this.objectDifferMap[kt.label].diff(kt)&&(Ee=!0)}),Ee&&this.initializeListItems()}primaryButtonClick(Ee){this.primaryButtonClicked.emit(Ee)}secondaryButtonClick(Ee){this.secondaryButtonClicked.emit(Ee)}toggleClick(Ee){this.toggleClicked.emit(Ee.checked)}selectionChange(Ee){this.emitSelectionChange(this.selection)}rotaryChange(Ee){this.selection=this.data.listItems[Ee],this.emitSelectionChange(this.selection)}emitSelectionChange(Ee){for(const kt of this.data.listItems)kt.selected=!1;this.selection.selected=!0,this.selectionChanged.emit(Ee)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setupKvDiffer(){!this.useDifferForListItemUpdate||!(this.data?.listItems?.length>0)||this.objectDifferMap||(this.objectDifferMap={},this.data?.listItems?.forEach(Ee=>this.objectDifferMap[Ee.label]=this.differs.find(Ee).create()))}initializeListItems(Ee=!1){Ee&&(this.rotaryOptions=this.data.listItems.map(Qt=>Qt.label)),this.selection=this.data.listItems.find(Qt=>Qt.selected)??this.data.listItems[0];const kt=this.data.listItems.findIndex(Qt=>Qt.selected);this.rotaryInit=-1!==kt?kt:0}static{this.\u0275fac=function(kt){return new(kt||vt)(d.rXU(Bo),d.rXU(d.MKu))}}static{this.\u0275cmp=d.VBU({type:vt,selectors:[["nv-hig-list-item-trail"]],inputs:{cardData:"cardData",spinnerDiameter:"spinnerDiameter",dialogPanelClass:"dialogPanelClass",useDifferForListItemUpdate:[d.Mj6.None,"useDifferForUpdate","useDifferForListItemUpdate"]},outputs:{primaryButtonClicked:"primaryButtonClicked",secondaryButtonClicked:"secondaryButtonClicked",toggleClicked:"toggleClicked",selectionChanged:"selectionChanged"},standalone:!0,features:[d.aNF],decls:10,vars:1,consts:[["buttonSpinner",""],[1,"trail-container","trail-icon-container"],[1,"trail-icon","font-color-primary",3,"svgIcon"],[1,"trail-container","trail-checkbox-container"],[3,"ngModelChange","change","disabled","ngModel"],[1,"trail-container","trail-switch-container"],[1,"trail-container","trail-icon-button-container"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"trail-container","trail-buttons-container"],["mat-button","","cdkFocusInitial","",1,"font-button2",3,"disabled"],["mat-button","",1,"font-button2",3,"disabled"],["mat-button","","cdkFocusInitial","",1,"font-button2",3,"click","disabled"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["mat-button","",1,"font-button2",3,"click","disabled"],[1,"trail-container","trail-rotary-container"],[3,"selectionChanged","input","initialState"],[1,"trail-container","trail-dropdown-container"],["color","accent","panelClass","mat-select-dark-background mat-select-font-body2","nvMatSelectKeyboardFixup","","cdkMonitorElementFocus","",1,"trail-dropdown","hig-button-overlay","mat-select-font-body2",3,"ngModelChange","selectionChange","ngModel","placeholder","disabled"],[1,"font-body2","font-color-tertiary",3,"value","disabled"],[1,"trail-container","trail-plaintext-container"],[1,"font-body2","font-color-secondary",3,"innerHtml"],["class","trail-button-spinner-overlay",4,"ngIf"],[1,"trail-button-spinner-overlay"],["mode","indeterminate",1,"mat-accent",3,"diameter"]],template:function(kt,Qt){if(1&kt&&d.DNE(0,Es,2,1)(1,Fs,2,2)(2,Qs,2,2)(3,io,3,1)(4,Is,3,2)(5,yl,2,2)(6,b,4,4)(7,k,3,4)(8,he,1,1,"ng-template",null,0,d.C5r),2&kt){let Zn;d.vxM(0,(Zn=Qt.data.elementType)===Qt.trailElementType.Icon?0:Zn===Qt.trailElementType.Checkbox?1:Zn===Qt.trailElementType.Switch?2:Zn===Qt.trailElementType.IconButton?3:Zn===Qt.trailElementType.TextButton?4:Zn===Qt.trailElementType.Rotary?5:Zn===Qt.trailElementType.Dropdown?6:Zn===Qt.trailElementType.PlainText?7:-1)}},dependencies:[f.m_,f.An,D.g7,D.So,Rr.tG,g.nM,m.YN,m.BC,m.vS,ys.jm,ys.P2,M.wG,M.iV,n.T3,yr,ma.Ve,ma.VO,Mi.wT,Rr.rs,V.Pd,V.vR,Mi.Sy,O.w,O.q,U.D6,U.LG,n.bT,_.h,_.D9],styles:[".trail-container[_ngcontent-%COMP%]{height:calc(48px * var(--hig-list-item-length-scaling-factor));box-sizing:border-box;display:flex;align-items:center;width:-moz-fit-content;width:fit-content}.isLtr[_nghost-%COMP%] .trail-icon-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .trail-icon-container[_ngcontent-%COMP%]{padding:calc(12px * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor)) calc(12px * var(--hig-list-item-length-scaling-factor)) 0px}html[dir=ltr][_ngcontent-%COMP%] .trail-icon-container[_ngcontent-%COMP%]{--dummy: 0;padding:calc(12px * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor)) calc(12px * var(--hig-list-item-length-scaling-factor)) 0px}.isRtl[_nghost-%COMP%] .trail-icon-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .trail-icon-container[_ngcontent-%COMP%]{padding:calc(12px * var(--hig-list-item-length-scaling-factor)) 0px calc(12px * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .trail-icon-container[_ngcontent-%COMP%]{--dummy: 0;padding:calc(12px * var(--hig-list-item-length-scaling-factor)) 0px calc(12px * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor))}.trail-icon[_ngcontent-%COMP%]{width:calc(var(--hig-list-item-trail-icon-size) * var(--hig-list-item-image-scaling-factor));height:calc(var(--hig-list-item-trail-icon-size) * var(--hig-list-item-image-scaling-factor))}.trail-switch-container[_ngcontent-%COMP%]{min-width:calc(var(--hig-list-item-trail-switch-width) * var(--hig-list-item-length-scaling-factor));justify-content:center}.isLtr[_nghost-%COMP%] .trail-switch-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .trail-switch-container[_ngcontent-%COMP%]{padding-right:calc(8px * var(--hig-list-item-length-scaling-factor))}html[dir=ltr][_ngcontent-%COMP%] .trail-switch-container[_ngcontent-%COMP%]{--dummy2: 0;padding-right:calc(8px * var(--hig-list-item-length-scaling-factor))}.isRtl[_nghost-%COMP%] .trail-switch-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .trail-switch-container[_ngcontent-%COMP%]{padding-left:calc(8px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .trail-switch-container[_ngcontent-%COMP%]{--dummy2: 0;padding-left:calc(8px * var(--hig-list-item-length-scaling-factor))}.isLtr[_nghost-%COMP%] .trail-icon-button-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .trail-icon-button-container[_ngcontent-%COMP%]{padding-right:calc(4px * var(--hig-list-item-length-scaling-factor))}html[dir=ltr][_ngcontent-%COMP%] .trail-icon-button-container[_ngcontent-%COMP%]{--dummy2: 0;padding-right:calc(4px * var(--hig-list-item-length-scaling-factor))}.isRtl[_nghost-%COMP%] .trail-icon-button-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .trail-icon-button-container[_ngcontent-%COMP%]{padding-left:calc(4px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .trail-icon-button-container[_ngcontent-%COMP%]{--dummy2: 0;padding-left:calc(4px * var(--hig-list-item-length-scaling-factor))}.trail-buttons-container[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;gap:calc(var(--hig-list-item-trail-button-gap) * var(--hig-list-item-length-scaling-factor))}.isLtr[_nghost-%COMP%] .trail-buttons-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .trail-buttons-container[_ngcontent-%COMP%]{padding:calc(6px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor)) calc(6px * var(--hig-list-item-length-scaling-factor)) 0px}html[dir=ltr][_ngcontent-%COMP%] .trail-buttons-container[_ngcontent-%COMP%]{--dummy: 0;padding:calc(6px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor)) calc(6px * var(--hig-list-item-length-scaling-factor)) 0px}.isRtl[_nghost-%COMP%] .trail-buttons-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .trail-buttons-container[_ngcontent-%COMP%]{padding:calc(6px * var(--hig-list-item-length-scaling-factor)) 0px calc(6px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .trail-buttons-container[_ngcontent-%COMP%]{--dummy: 0;padding:calc(6px * var(--hig-list-item-length-scaling-factor)) 0px calc(6px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor))}.trail-buttons-container[_ngcontent-%COMP%] .primary-button-text[_ngcontent-%COMP%], .trail-buttons-container[_ngcontent-%COMP%] .secondary-button-text[_ngcontent-%COMP%]{visibility:hidden}.trail-rotary-container[_ngcontent-%COMP%]{justify-content:center}.trail-rotary-container[_ngcontent-%COMP%] nv-hig-rotary[_ngcontent-%COMP%]{--hig-rotary-width: calc(calc(var(--hig-list-item-trail-rotary-width) * var(--hig-list-item-length-scaling-factor)) - calc(8px * var(--hig-list-item-length-scaling-factor)));--hig-rotary-height: calc(var(--hig-list-item-trail-rotary-height) * var(--hig-list-item-length-scaling-factor));--hig-rotary-button-size: calc(var(--hig-list-item-trail-rotary-height) * var(--hig-list-item-image-scaling-factor));--hig-rotary-chevron-size: calc(24px * var(--hig-list-item-image-scaling-factor))}.isLtr[_nghost-%COMP%] .trail-rotary-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .trail-rotary-container[_ngcontent-%COMP%]{padding:calc(4px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor)) calc(4px * var(--hig-list-item-length-scaling-factor)) 0px}html[dir=ltr][_ngcontent-%COMP%] .trail-rotary-container[_ngcontent-%COMP%]{--dummy: 0;padding:calc(4px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor)) calc(4px * var(--hig-list-item-length-scaling-factor)) 0px}.isRtl[_nghost-%COMP%] .trail-rotary-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .trail-rotary-container[_ngcontent-%COMP%]{padding:calc(4px * var(--hig-list-item-length-scaling-factor)) 0px calc(4px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .trail-rotary-container[_ngcontent-%COMP%]{--dummy: 0;padding:calc(4px * var(--hig-list-item-length-scaling-factor)) 0px calc(4px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor))}.isLtr[_nghost-%COMP%] .trail-dropdown-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .trail-dropdown-container[_ngcontent-%COMP%]{padding-right:calc(4px * var(--hig-list-item-length-scaling-factor))}html[dir=ltr][_ngcontent-%COMP%] .trail-dropdown-container[_ngcontent-%COMP%]{--dummy2: 0;padding-right:calc(4px * var(--hig-list-item-length-scaling-factor))}.isRtl[_nghost-%COMP%] .trail-dropdown-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .trail-dropdown-container[_ngcontent-%COMP%]{padding-left:calc(4px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .trail-dropdown-container[_ngcontent-%COMP%]{--dummy2: 0;padding-left:calc(4px * var(--hig-list-item-length-scaling-factor))}.trail-dropdown[_ngcontent-%COMP%]{width:calc(var(--hig-list-item-trail-dropdown-width) * var(--hig-list-item-length-scaling-factor))}.isLtr[_nghost-%COMP%] .trail-spinner-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .trail-spinner-container[_ngcontent-%COMP%]{padding-left:calc(16px * var(--hig-list-item-length-scaling-factor))}html[dir=ltr][_ngcontent-%COMP%] .trail-spinner-container[_ngcontent-%COMP%]{--dummy1: 0;padding-left:calc(16px * var(--hig-list-item-length-scaling-factor))}.isRtl[_nghost-%COMP%] .trail-spinner-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .trail-spinner-container[_ngcontent-%COMP%]{padding-right:calc(16px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .trail-spinner-container[_ngcontent-%COMP%]{--dummy1: 0;padding-right:calc(16px * var(--hig-list-item-length-scaling-factor))}.isLtr[_nghost-%COMP%] .trail-spinner-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .trail-spinner-container[_ngcontent-%COMP%]{padding-right:calc(24px * var(--hig-list-item-length-scaling-factor))}html[dir=ltr][_ngcontent-%COMP%] .trail-spinner-container[_ngcontent-%COMP%]{--dummy2: 0;padding-right:calc(24px * var(--hig-list-item-length-scaling-factor))}.isRtl[_nghost-%COMP%] .trail-spinner-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .trail-spinner-container[_ngcontent-%COMP%]{padding-left:calc(24px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .trail-spinner-container[_ngcontent-%COMP%]{--dummy2: 0;padding-left:calc(24px * var(--hig-list-item-length-scaling-factor))}.trail-plaintext-container[_ngcontent-%COMP%]{padding:0px calc(16px * var(--hig-list-item-length-scaling-factor))}.trail-button-spinner-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:1;background:transparent}"]})}}return vt})();function ze(vt,en){if(1&vt&&d.nrm(0,"mat-icon",4),2&vt){const Ee=d.XpG().$implicit;d.Y8G("svgIcon",Ee.matIcon)}}function pt(vt,en){if(1&vt&&(d.j41(0,"div",3),d.DNE(1,ze,1,1,"mat-icon",4),d.nrm(2,"div",5),d.nI1(3,"translate"),d.k0s()),2&vt){const Ee=en.$implicit;d.R7$(),d.vxM(1,Ee.matIcon?1:-1),d.R7$(),d.Y8G("innerHtml",Ee.translated?Ee.text:d.i5U(3,2,Ee.text,Ee.placeholders),d.npT)}}function wt(vt,en){if(1&vt&&d.Z7z(0,pt,4,5,"div",3,d.Vm6),2&vt){const Ee=d.XpG();d.Dyx(null==Ee.data?null:Ee.data.supportingText)}}let $t=(()=>{class vt{constructor(){this.topPadding=!1,this.centerAlign=!1}set cardData(Ee){this.data=Ee,this.topPadding=!!this.data.supportingText&&!!this.data.headline?.text,this.centerAlign=!!this.data.supportingText!=!!this.data.headline?.text}static{this.\u0275fac=function(kt){return new(kt||vt)}}static{this.\u0275cmp=d.VBU({type:vt,selectors:[["nv-hig-list-item-core"]],inputs:{cardData:"cardData"},standalone:!0,features:[d.aNF],decls:5,vars:9,consts:[[1,"core-container","column-layout"],[1,"row-layout"],[1,"headline","font-body1","font-color-primary",3,"innerHtml"],[1,"core-supporting-text-row","font-color-tertiary"],[1,"core-supporting-icon",3,"svgIcon"],[1,"font-body2","font-color-tertiary",3,"innerHtml"]],template:function(kt,Qt){1&kt&&(d.j41(0,"div",0)(1,"div",1),d.nrm(2,"div",2),d.nI1(3,"translate"),d.k0s(),d.DNE(4,wt,2,0),d.k0s()),2&kt&&(d.AVh("conditional-top-padding",Qt.topPadding)("center-align",Qt.centerAlign),d.R7$(2),d.Y8G("innerHtml",null!=Qt.data&&Qt.data.headline.translated?null==Qt.data?null:Qt.data.headline.text:d.i5U(3,6,null==Qt.data?null:Qt.data.headline.text,null==Qt.data?null:Qt.data.headline.placeholders),d.npT),d.R7$(2),d.vxM(4,(null==Qt.data||null==Qt.data.supportingText?null:Qt.data.supportingText.length)>0?4:-1))},dependencies:[f.m_,f.An,_.h,_.D9],styles:[".headline[_ngcontent-%COMP%]{text-transform:var(--hig-list-item-core-headline-text-transform)}.core-supporting-text-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:calc(var(--hig-list-item-core-supporting-text-gap) * var(--hig-list-item-length-scaling-factor))}.core-supporting-icon[_ngcontent-%COMP%]{width:calc(var(--hig-list-item-core-supporting-icon-size) * var(--hig-list-item-image-scaling-factor));height:calc(var(--hig-list-item-core-supporting-icon-size) * var(--hig-list-item-image-scaling-factor));flex:0 0 auto}.column-layout[_ngcontent-%COMP%]{display:flex;flex-direction:column}.row-layout[_ngcontent-%COMP%]{display:flex;flex-direction:row}.core-container[_ngcontent-%COMP%]{min-height:calc(var(--hig-list-item-core-min-height) * var(--hig-list-item-length-scaling-factor));gap:calc(var(--hig-list-item-core-supporting-text-gap) * var(--hig-list-item-length-scaling-factor))}.conditional-top-padding[_ngcontent-%COMP%]{padding-top:calc(12px * var(--hig-list-item-length-scaling-factor))}.center-align[_ngcontent-%COMP%]{justify-content:center}"]})}}return vt})();function an(vt,en){if(1&vt&&(d.j41(0,"div",0),d.nrm(1,"mat-icon",1),d.k0s()),2&vt){const Ee=d.XpG();d.R7$(),d.Y8G("svgIcon",Ee.data.icon)}}function zt(vt,en){if(1&vt&&d.nrm(0,"img",5),2&vt){const Ee=d.XpG(2);d.Y8G("src",Ee.data.badgeIcon,d.B4B)}}function mn(vt,en){if(1&vt&&(d.j41(0,"div",2)(1,"div",3),d.nrm(2,"img",4),d.DNE(3,zt,1,1,"img",5),d.k0s()()),2&vt){const Ee=d.XpG();d.R7$(2),d.Y8G("src",Ee.data.primaryIcon,d.B4B),d.R7$(),d.vxM(3,Ee.data.badgeIcon?3:-1)}}function kn(vt,en){if(1&vt&&(d.j41(0,"div",6),d.nrm(1,"img",7),d.k0s()),2&vt){const Ee=d.XpG();d.R7$(),d.Y8G("src",Ee.data.image,d.B4B)}}function yn(vt,en){if(1&vt&&(d.j41(0,"div",8),d.nrm(1,"img",9),d.k0s()),2&vt){const Ee=d.XpG();d.R7$(),d.Y8G("src",Ee.data.image,d.B4B)}}let Qn=(()=>{class vt{constructor(){this.checkboxClicked=new d.bkB,this.leadElementType=Ye}set cardData(Ee){this.data=Ee}checkBoxClick(Ee){this.checkboxClicked.emit(Ee.checked)}static{this.\u0275fac=function(kt){return new(kt||vt)}}static{this.\u0275cmp=d.VBU({type:vt,selectors:[["nv-hig-list-item-lead"]],inputs:{cardData:"cardData"},outputs:{checkboxClicked:"checkboxClicked"},standalone:!0,features:[d.aNF],decls:4,vars:1,consts:[[1,"lead-offset","lead-icon-container"],[1,"lead-icon",3,"svgIcon"],[1,"lead-offset","lead-avatar-container"],[1,"lead-avatar-box"],[1,"lead-avatar-icon",3,"src"],[1,"lead-avatar-badge",3,"src"],[1,"lead-offset","lead-square-image-container"],[1,"lead-square-image",3,"src"],[1,"lead-rectangular-image-container"],[1,"lead-rectangular-image",3,"src"]],template:function(kt,Qt){if(1&kt&&d.DNE(0,an,2,1)(1,mn,4,2)(2,kn,2,1)(3,yn,2,1),2&kt){let Zn;d.vxM(0,(Zn=Qt.data.elementType)===Qt.leadElementType.Icon?0:Zn===Qt.leadElementType.AvatarIcon?1:Zn===Qt.leadElementType.SquareImage?2:Zn===Qt.leadElementType.RectangularImage?3:-1)}},dependencies:[f.m_,f.An],styles:[".isLtr[_nghost-%COMP%] .lead-offset[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .lead-offset[_ngcontent-%COMP%]{padding-left:calc(16px * var(--hig-list-item-length-scaling-factor))}html[dir=ltr][_ngcontent-%COMP%] .lead-offset[_ngcontent-%COMP%]{--dummy1: 0;padding-left:calc(16px * var(--hig-list-item-length-scaling-factor))}.isRtl[_nghost-%COMP%] .lead-offset[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .lead-offset[_ngcontent-%COMP%]{padding-right:calc(16px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .lead-offset[_ngcontent-%COMP%]{--dummy1: 0;padding-right:calc(16px * var(--hig-list-item-length-scaling-factor))}.lead-icon-container[_ngcontent-%COMP%]{padding:calc(12px * var(--hig-list-item-length-scaling-factor)) 0px}.lead-icon[_ngcontent-%COMP%]{width:calc(var(--hig-list-item-lead-icon-size) * var(--hig-list-item-image-scaling-factor));height:calc(var(--hig-list-item-lead-icon-size) * var(--hig-list-item-image-scaling-factor));color:var(--hig-list-item-lead-icon-color)}.lead-square-image-container[_ngcontent-%COMP%]{padding:calc(8px * var(--hig-list-item-length-scaling-factor)) 0px}.lead-square-image[_ngcontent-%COMP%]{width:calc(var(--hig-list-item-lead-square-image-size) * var(--hig-list-item-image-scaling-factor));height:calc(var(--hig-list-item-lead-square-image-size) * var(--hig-list-item-image-scaling-factor))}.lead-rectangular-image-container[_ngcontent-%COMP%]{padding:calc(12px * var(--hig-list-item-length-scaling-factor)) 0px}.lead-rectangular-image[_ngcontent-%COMP%]{width:calc(var(--hig-list-item-lead-rectangular-image-width) * var(--hig-list-item-image-scaling-factor));height:calc(var(--hig-list-item-lead-rectangular-image-height) * var(--hig-list-item-image-scaling-factor))}.lead-avatar-container[_ngcontent-%COMP%]{width:calc(var(--hig-list-item-lead-avatar-icon-size) * var(--hig-list-item-image-scaling-factor));height:calc(var(--hig-list-item-lead-avatar-icon-size) * var(--hig-list-item-image-scaling-factor));padding:calc(8px * var(--hig-list-item-length-scaling-factor)) 0px}.lead-avatar-box[_ngcontent-%COMP%]{position:relative;width:calc(var(--hig-list-item-lead-avatar-icon-size) * var(--hig-list-item-image-scaling-factor));height:calc(var(--hig-list-item-lead-avatar-icon-size) * var(--hig-list-item-image-scaling-factor))}.lead-avatar-icon[_ngcontent-%COMP%]{width:calc(var(--hig-list-item-lead-avatar-icon-size) * var(--hig-list-item-image-scaling-factor));height:calc(var(--hig-list-item-lead-avatar-icon-size) * var(--hig-list-item-image-scaling-factor))}.lead-avatar-badge[_ngcontent-%COMP%]{position:absolute;width:calc(var(--hig-list-item-lead-avatar-badge-width) * var(--hig-list-item-image-scaling-factor));height:calc(var(--hig-list-item-lead-avatar-badge-height) * var(--hig-list-item-image-scaling-factor));bottom:0}.isLtr[_nghost-%COMP%] .lead-avatar-badge[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .lead-avatar-badge[_ngcontent-%COMP%]{right:0}.isRtl[_nghost-%COMP%] .lead-avatar-badge[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .lead-avatar-badge[_ngcontent-%COMP%]{left:0}"]})}}return vt})();function li(vt,en){if(1&vt&&d.nrm(0,"nv-hig-list-item-lead",1),2&vt){const Ee=d.XpG();d.Y8G("cardData",Ee.data.lead)}}function wi(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"nv-hig-list-item-trail",6),d.bIt("primaryButtonClicked",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.Njj(Zn.primaryButtonClick(Qt))})("secondaryButtonClicked",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.Njj(Zn.secondaryButtonClick(Qt))})("toggleClicked",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.Njj(Zn.toggleClick(Qt))})("selectionChanged",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.Njj(Zn.selectionChange(Qt))}),d.k0s()}if(2&vt){const Ee=d.XpG();d.Y8G("cardData",Ee.data.trail)("dialogPanelClass",Ee.dialogPanelClass)("spinnerDiameter",Ee.spinnerDiameter)("useDifferForUpdate",Ee.useDifferForUpdate)}}function mi(vt,en){if(1&vt&&d.nrm(0,"nv-hig-list-item-context",1),2&vt){const Ee=d.XpG();d.Y8G("cardData",Ee.data.context)}}function Bi(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"nv-hig-list-item-context-cta",7),d.bIt("primaryButtonClicked",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.Njj(Zn.primaryContextButtonClick(Qt))})("secondaryButtonClicked",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.Njj(Zn.secondaryContextButtonClick(Qt))}),d.k0s()}if(2&vt){const Ee=d.XpG();d.Y8G("cardData",Ee.data.context)}}let qi=(()=>{class vt{set cardData(Ee){this.data=Ee}constructor(Ee){this.dialogPanelClass="",this.useDifferForUpdate=!1,this.primaryButtonClicked=new d.bkB,this.secondaryButtonClicked=new d.bkB,this.toggleClicked=new d.bkB,this.selectionChanged=new d.bkB,this.primaryContextButtonClicked=new d.bkB,this.secondaryContextButtonClicked=new d.bkB,this.leadElementType=Ye,this.trailElementType=gt,this.spinnerDiameter=16,this.tvMode=!!Ee?.tvMode,this.tvMode&&(this.spinnerDiameter*=1.5)}primaryButtonClick(Ee){this.primaryButtonClicked.emit(Ee)}secondaryButtonClick(Ee){this.secondaryButtonClicked.emit(Ee)}toggleClick(Ee){this.toggleClicked.emit(Ee)}selectionChange(Ee){this.selectionChanged.emit(Ee)}primaryContextButtonClick(Ee){this.primaryContextButtonClicked.emit(Ee)}secondaryContextButtonClick(Ee){this.secondaryContextButtonClicked.emit(Ee)}static{this.\u0275fac=function(kt){return new(kt||vt)(d.rXU(on.X,8))}}static{this.\u0275cmp=d.VBU({type:vt,selectors:[["nv-hig-list-item"]],inputs:{cardData:"cardData",dialogPanelClass:"dialogPanelClass",useDifferForUpdate:"useDifferForUpdate"},outputs:{primaryButtonClicked:"primaryButtonClicked",secondaryButtonClicked:"secondaryButtonClicked",toggleClicked:"toggleClicked",selectionChanged:"selectionChanged",primaryContextButtonClicked:"primaryContextButtonClicked",secondaryContextButtonClicked:"secondaryContextButtonClicked"},standalone:!0,features:[d.aNF],decls:9,vars:5,consts:[[1,"card-container"],[3,"cardData"],[1,"card-inner-container"],[1,"core-trail-container"],[3,"cardData","dialogPanelClass","spinnerDiameter","useDifferForUpdate"],[1,"context-container"],[3,"primaryButtonClicked","secondaryButtonClicked","toggleClicked","selectionChanged","cardData","dialogPanelClass","spinnerDiameter","useDifferForUpdate"],[3,"primaryButtonClicked","secondaryButtonClicked","cardData"]],template:function(kt,Qt){1&kt&&(d.j41(0,"div",0),d.DNE(1,li,1,1,"nv-hig-list-item-lead",1),d.j41(2,"div",2)(3,"div",3),d.nrm(4,"nv-hig-list-item-core",1),d.DNE(5,wi,1,4,"nv-hig-list-item-trail",4),d.k0s(),d.j41(6,"div",5),d.DNE(7,mi,1,1,"nv-hig-list-item-context",1)(8,Bi,1,1,"nv-hig-list-item-context-cta",1),d.k0s()()()),2&kt&&(d.R7$(),d.vxM(1,null!=Qt.data&&Qt.data.lead?1:-1),d.R7$(3),d.Y8G("cardData",Qt.data.core),d.R7$(),d.vxM(5,null!=Qt.data&&Qt.data.trail?5:-1),d.R7$(2),d.vxM(7,null!=Qt.data&&Qt.data.context?7:-1),d.R7$(),d.vxM(8,null!=Qt.data&&null!=Qt.data.context&&Qt.data.context.primaryButton?8:-1))},dependencies:[Qn,$t,we,ri,En],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}[_nghost-%COMP%]{display:contents;--hig-list-item-display: contents;--hig-list-item-context-display: flex;--hig-list-item-image-scaling-factor: 1;--hig-list-item-length-scaling-factor: 1;--hig-list-item-lead-column: 1 / span 1;--hig-list-item-core-column: 2 / span 1;--hig-list-item-trail-column: 3 / span 1;--hig-list-item-context-column: 2 / span 2;--hig-list-item-context-text-column: 2 / span 1;--hig-list-item-context-cta-column: 3 / span 1;--hig-list-item-core-headline-text-transform: none;--hig-list-item-core-min-height: 48px;--hig-list-item-core-supporting-icon-size: 20px;--hig-list-item-core-supporting-text-gap: 0px;--hig-list-item-lead-icon-size: 24px;--hig-list-item-lead-square-image-size: 56px;--hig-list-item-lead-rectangular-image-width: 100px;--hig-list-item-lead-rectangular-image-height: 56px;--hig-list-item-lead-avatar-icon-size: 40px;--hig-list-item-lead-avatar-badge-width: 20px;--hig-list-item-lead-avatar-badge-height: 17px;--hig-list-item-lead-icon-color: rgba(255, 255, 255, .9);--hig-list-item-trail-icon-size: 24px;--hig-list-item-trail-dropdown-width: 148px;--hig-list-item-trail-rotary-width: 144px;--hig-list-item-trail-rotary-height: 40px;--hig-list-item-trail-button-gap: 8px;--hig-list-item-trail-switch-width: 64px;--hig-list-item-trail-justify-items: end;--hig-list-item-context-justify-items: space-between;--hig-list-item-context-supporting-icon-size: 20px;--hig-list-item-context-supporting-text-gap: 8px;--hig-list-item-context-vertical-padding: 8px;--hig-list-item-context-cta-button-gap: 8px;--hig-list-item-context-cta-justify-items: end;--hig-list-item-container-padding: 4px}nv-hig-list-item-core[_ngcontent-%COMP%]{padding:calc(var(--hig-list-item-container-padding) * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor));min-height:calc(var(--hig-list-item-core-min-height) * var(--hig-list-item-length-scaling-factor));grid-column:var(--hig-list-item-core-column)}nv-hig-list-item-lead[_ngcontent-%COMP%]{padding:calc(var(--hig-list-item-container-padding) * var(--hig-list-item-length-scaling-factor)) 0px;grid-column:var(--hig-list-item-lead-column)}nv-hig-list-item-trail[_ngcontent-%COMP%]{display:flex;padding:calc(var(--hig-list-item-container-padding) * var(--hig-list-item-length-scaling-factor)) 0px;justify-content:var(--hig-list-item-trail-justify-items);grid-column:var(--hig-list-item-trail-column)}nv-hig-list-item-context[_ngcontent-%COMP%]{padding:0px calc(16px * var(--hig-list-item-length-scaling-factor)) calc(var(--hig-list-item-container-padding) * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor));grid-column:var(--hig-list-item-context-text-column)}nv-hig-list-item-context-cta[_ngcontent-%COMP%]{display:flex;padding-bottom:calc(var(--hig-list-item-container-padding) * var(--hig-list-item-length-scaling-factor));justify-content:var(--hig-list-item-context-cta-justify-items);grid-column:var(--hig-list-item-context-cta-column)}.card-container[_ngcontent-%COMP%], .card-inner-container[_ngcontent-%COMP%], .core-trail-container[_ngcontent-%COMP%]{display:var(--hig-list-item-display)}.context-container[_ngcontent-%COMP%]{display:var(--hig-list-item-context-display);justify-content:var(--hig-card-context-justify-items);grid-column:var(--hig-list-item-context-column)}"]})}}return vt})();function sr(vt,en){1&vt&&d.nrm(0,"div",1)}function Ar(vt,en){if(1&vt&&(d.j41(0,"div",2),d.nrm(1,"mat-icon",7),d.k0s()),2&vt){const Ee=d.XpG();d.R7$(),d.FS9("svgIcon",Ee.data.leadIcon)}}function Vr(vt,en){if(1&vt&&(d.j41(0,"span",8),d.EFF(1),d.nI1(2,"translate"),d.k0s()),2&vt){const Ee=d.XpG(2);d.R7$(),d.JRh(d.bMT(2,1,Ee.data.headerText))}}function Br(vt,en){if(1&vt&&(d.j41(0,"span",9),d.EFF(1),d.nI1(2,"translate"),d.k0s()),2&vt){const Ee=d.XpG(2);d.R7$(),d.JRh(d.bMT(2,1,Ee.data.supportingText))}}function Xo(vt,en){if(1&vt&&(d.j41(0,"div"),d.DNE(1,Vr,3,3,"span",8)(2,Br,3,3,"span",9),d.k0s()),2&vt){const Ee=d.XpG();d.AVh("text-content",Ee.data.headerText&&Ee.data.supportingText)("supporting-text-only",!Ee.data.headerText),d.R7$(),d.vxM(1,Ee.data.headerText?1:-1),d.R7$(),d.vxM(2,Ee.data.supportingText?2:-1)}}function Do(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"div",5)(1,"button",10),d.bIt("click",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.Njj(Zn.onPrimaryButtonClick(Qt))}),d.EFF(2),d.nI1(3,"translate"),d.k0s(),d.j41(4,"button",10),d.bIt("click",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.Njj(Zn.onSecondaryButtonClick(Qt))}),d.EFF(5),d.nI1(6,"translate"),d.k0s()()}if(2&vt){const Ee=d.XpG();d.R7$(2),d.SpI(" ",d.bMT(3,2,Ee.data.primaryButtonText)," "),d.R7$(3),d.SpI(" ",d.bMT(6,4,Ee.data.secondaryButtonText)," ")}}function Lo(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"div",11)(1,"button",12),d.bIt("click",function(Qt){d.eBV(Ee);const Zn=d.XpG();return d.Njj(Zn.onIconButtonClick(Qt))}),d.nrm(2,"mat-icon",7),d.k0s()()}if(2&vt){const Ee=d.XpG();d.AVh("icon-button-when-supporting-text-only",!Ee.data.headerText&&Ee.data.supportingText),d.R7$(2),d.FS9("svgIcon",Ee.data.iconButton)}}let ir=(()=>{class vt{constructor(){this.data={},this.primaryButtonClicked=new d.bkB,this.secondaryButtonClicked=new d.bkB,this.iconButtonClicked=new d.bkB}onPrimaryButtonClick(Ee){this.primaryButtonClicked.emit(Ee)}onSecondaryButtonClick(Ee){this.secondaryButtonClicked.emit(Ee)}onIconButtonClick(Ee){this.iconButtonClicked.emit(Ee)}static{this.\u0275fac=function(kt){return new(kt||vt)}}static{this.\u0275cmp=d.VBU({type:vt,selectors:[["nv-hig-list-insert"]],inputs:{data:"data"},outputs:{primaryButtonClicked:"primaryButtonClicked",secondaryButtonClicked:"secondaryButtonClicked",iconButtonClicked:"iconButtonClicked"},standalone:!0,features:[d.aNF],decls:7,vars:6,consts:[[1,"nv-hig-list-insert-container",3,"ngClass"],[1,"left-border"],[1,"lead-icon"],[1,"core-container"],[3,"text-content","supporting-text-only"],[1,"buttons-group"],[1,"icon-button",3,"icon-button-when-supporting-text-only"],[3,"svgIcon"],[1,"header-text","font-body1","font-color-primary"],[1,"font-body2","font-color-primary"],["mat-button","","cdkFocusInitial","",1,"font-button2",3,"click"],[1,"icon-button"],["mat-icon-button","",3,"click"]],template:function(kt,Qt){1&kt&&(d.j41(0,"div",0),d.DNE(1,sr,1,0,"div",1)(2,Ar,2,1,"div",2),d.j41(3,"div",3),d.DNE(4,Xo,3,6,"div",4)(5,Do,7,6,"div",5),d.k0s(),d.DNE(6,Lo,3,3,"div",6),d.k0s()),2&kt&&(d.Y8G("ngClass",null==Qt.data?null:Qt.data.colorTheme),d.R7$(),d.vxM(1,Qt.data.isLeftBorder?1:-1),d.R7$(),d.vxM(2,Qt.data.leadIcon?2:-1),d.R7$(2),d.vxM(4,Qt.data.headerText||Qt.data.supportingText?4:-1),d.R7$(),d.vxM(5,Qt.data.primaryButtonText||Qt.data.secondaryButtonText?5:-1),d.R7$(),d.vxM(6,Qt.data.iconButton?6:-1))},dependencies:[n.YU,ie.Cc,ie.PW,f.m_,f.An,M.wG,M.iV,_.h,_.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[_nghost-%COMP%]{--hig-list-item-display: contents;--hig-list-item-context-display: flex;--hig-list-item-image-scaling-factor: 1;--hig-list-item-length-scaling-factor: 1;--hig-list-item-lead-column: 1 / span 1;--hig-list-item-core-column: 2 / span 1;--hig-list-item-trail-column: 3 / span 1;--hig-list-item-context-column: 2 / span 2;--hig-list-item-context-text-column: 2 / span 1;--hig-list-item-context-cta-column: 3 / span 1;--hig-list-item-core-headline-text-transform: none;--hig-list-item-core-min-height: 48px;--hig-list-item-core-supporting-icon-size: 20px;--hig-list-item-core-supporting-text-gap: 0px;--hig-list-item-lead-icon-size: 24px;--hig-list-item-lead-square-image-size: 56px;--hig-list-item-lead-rectangular-image-width: 100px;--hig-list-item-lead-rectangular-image-height: 56px;--hig-list-item-lead-avatar-icon-size: 40px;--hig-list-item-lead-avatar-badge-width: 20px;--hig-list-item-lead-avatar-badge-height: 17px;--hig-list-item-lead-icon-color: rgba(255, 255, 255, .9);--hig-list-item-trail-icon-size: 24px;--hig-list-item-trail-dropdown-width: 148px;--hig-list-item-trail-rotary-width: 144px;--hig-list-item-trail-rotary-height: 40px;--hig-list-item-trail-button-gap: 8px;--hig-list-item-trail-switch-width: 64px;--hig-list-item-trail-justify-items: end;--hig-list-item-context-justify-items: space-between;--hig-list-item-context-supporting-icon-size: 20px;--hig-list-item-context-supporting-text-gap: 8px;--hig-list-item-context-vertical-padding: 8px;--hig-list-item-context-cta-button-gap: 8px;--hig-list-item-context-cta-justify-items: end;--hig-list-item-container-padding: 4px;width:100%}.nv-hig-list-insert-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:stretch;width:100%}.nv-hig-list-insert-container[_ngcontent-%COMP%] .left-border[_ngcontent-%COMP%]{display:flex;border-left:4px solid white}.nv-hig-list-insert-container[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.isLtr[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%]{padding:calc(12px * var(--hig-list-item-length-scaling-factor)) 0px calc(12px * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor))}html[dir=ltr][_ngcontent-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%]{--dummy: 0;padding:calc(12px * var(--hig-list-item-length-scaling-factor)) 0px calc(12px * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor))}.isRtl[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%]{padding:calc(12px * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor)) calc(12px * var(--hig-list-item-length-scaling-factor)) 0px}html[dir=rtl][_ngcontent-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%]{--dummy: 0;padding:calc(12px * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor)) calc(12px * var(--hig-list-item-length-scaling-factor)) 0px}.nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%]{display:flex;width:100%;flex-direction:row;flex:1;gap:inherit;justify-content:space-between}.nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;padding:calc(8px * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor))}.nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .supporting-text-only[_ngcontent-%COMP%]{display:flex;flex:1;align-self:center;padding:calc(8px * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor))}.nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .buttons-group[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:calc(8px * var(--hig-list-item-length-scaling-factor));align-self:center}.isLtr[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .buttons-group[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .buttons-group[_ngcontent-%COMP%]{padding:calc(6px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor)) calc(6px * var(--hig-list-item-length-scaling-factor)) 0px}html[dir=ltr][_ngcontent-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .buttons-group[_ngcontent-%COMP%]{--dummy: 0;padding:calc(6px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor)) calc(6px * var(--hig-list-item-length-scaling-factor)) 0px}.isRtl[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .buttons-group[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .buttons-group[_ngcontent-%COMP%]{padding:calc(6px * var(--hig-list-item-length-scaling-factor)) 0px calc(6px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .buttons-group[_ngcontent-%COMP%]{--dummy: 0;padding:calc(6px * var(--hig-list-item-length-scaling-factor)) 0px calc(6px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor))}.nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .buttons-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:64px}.nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{display:flex;align-self:center;justify-content:center}.isLtr[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{padding-right:calc(8px * var(--hig-list-item-length-scaling-factor))}html[dir=ltr][_ngcontent-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{--dummy2: 0;padding-right:calc(8px * var(--hig-list-item-length-scaling-factor))}.isRtl[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{padding-left:calc(8px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{--dummy2: 0;padding-left:calc(8px * var(--hig-list-item-length-scaling-factor))}.nv-hig-list-insert-container[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:calc(24px * var(--hig-list-item-image-scaling-factor));height:calc(24px * var(--hig-list-item-image-scaling-factor));font-size:calc(24px * var(--hig-list-item-image-scaling-factor))}.nv-hig-list-insert-container.theme-white[_ngcontent-%COMP%]{background-color:#ffffff1f}.nv-hig-list-insert-container.theme-white[_ngcontent-%COMP%] .left-border[_ngcontent-%COMP%]{border-left-color:#ffffffe6}.nv-hig-list-insert-container.theme-white[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffe6}.nv-hig-list-insert-container.theme-red[_ngcontent-%COMP%]{background-color:#fe1b0b33}.nv-hig-list-insert-container.theme-red[_ngcontent-%COMP%] .left-border[_ngcontent-%COMP%]{border-left-color:#fe1b0b}.nv-hig-list-insert-container.theme-red[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#fe1b0b}.nv-hig-list-insert-container.theme-yellow[_ngcontent-%COMP%]{background-color:#ffb43e33}.nv-hig-list-insert-container.theme-yellow[_ngcontent-%COMP%] .left-border[_ngcontent-%COMP%]{border-left-color:#ffb43e}.nv-hig-list-insert-container.theme-yellow[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffb43e}.nv-hig-list-insert-container.theme-blue[_ngcontent-%COMP%]{background-color:#0b8abc33}.nv-hig-list-insert-container.theme-blue[_ngcontent-%COMP%] .left-border[_ngcontent-%COMP%]{border-left-color:#0b8abc}.nv-hig-list-insert-container.theme-blue[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#0b8abc}.nv-hig-list-insert-container.theme-green[_ngcontent-%COMP%]{background-color:#76b90033}.nv-hig-list-insert-container.theme-green[_ngcontent-%COMP%] .left-border[_ngcontent-%COMP%]{border-left-color:#76b900}.nv-hig-list-insert-container.theme-green[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#76b900}@media screen and (max-width: 719px){.nv-hig-list-insert-container[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%], .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{align-self:flex-start}.nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .supporting-text-only[_ngcontent-%COMP%]{align-self:flex-start;align-items:center}.nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .buttons-group[_ngcontent-%COMP%]{align-self:flex-start}.nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button-when-supporting-text-only[_ngcontent-%COMP%]{align-self:center}.isLtr[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{margin-left:-8px}html[dir=ltr][_ngcontent-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{--dummy3: 0;margin-left:-8px}.isRtl[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{margin-right:-8px}html[dir=rtl][_ngcontent-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{--dummy3: 0;margin-right:-8px}}.tv-view[_nghost-%COMP%], .tv-view [_nghost-%COMP%]{--hig-list-item-length-scaling-factor: 2;--hig-list-item-image-scaling-factor: 1.5}.tv-view[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{align-self:center}.tv-view[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%]{flex-direction:row;align-items:center}.isLtr.tv-view[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{padding-right:calc(20px * var(--hig-list-item-length-scaling-factor))}html[dir=ltr] .tv-view[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{--dummy2: 0;padding-right:calc(20px * var(--hig-list-item-length-scaling-factor))}.isRtl.tv-view[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{padding-left:calc(20px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl] .tv-view[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{--dummy2: 0;padding-left:calc(20px * var(--hig-list-item-length-scaling-factor))}"]})}}return vt})();function wr(vt,en){if(1&vt&&d.nrm(0,"mat-progress-bar",7),2&vt){const Ee=d.XpG();d.AVh("progress-bar-accent",Ee.isFullResourceState)("progress-bar-warn",!Ee.isFullResourceState),d.Y8G("value",Ee.progressValue),d.BMQ("tabindex",null)}}function _s(vt,en){if(1&vt&&d.nrm(0,"mat-progress-bar",8),2&vt){const Ee=d.XpG();d.Y8G("value",Ee.progressValue),d.BMQ("tabindex",null)}}let Ta=(()=>{class vt{constructor(){this.resourceType="decremental",this.isWarningState=!1,this.isFullResourceState=!1}static{this.\u0275fac=function(kt){return new(kt||vt)}}static{this.\u0275cmp=d.VBU({type:vt,selectors:[["nv-hig-resource-progress-bar"]],inputs:{resourceType:"resourceType",isWarningState:"isWarningState",resourceRemainingCardData:"resourceRemainingCardData",resourceTotalCardData:"resourceTotalCardData",warningMessageData:"warningMessageData",progressValue:"progressValue",isFullResourceState:"isFullResourceState"},standalone:!0,features:[d.aNF],decls:9,vars:7,consts:[[1,"grid"],[1,"wrap-trail",3,"cardData"],[1,"progress-bar-container"],["mode","determinate",3,"progress-bar-accent","progress-bar-warn","value",4,"ngIf"],["class","progress-bar-default","mode","determinate",3,"value",4,"ngIf"],[1,"resource-warning"],[3,"data"],["mode","determinate",3,"value"],["mode","determinate",1,"progress-bar-default",3,"value"]],template:function(kt,Qt){1&kt&&(d.j41(0,"div",0),d.nrm(1,"nv-hig-list-item",1),d.j41(2,"div",2),d.DNE(3,wr,1,6,"mat-progress-bar",3)(4,_s,1,2,"mat-progress-bar",4),d.k0s()(),d.j41(5,"div",0),d.nrm(6,"nv-hig-list-item",1),d.k0s(),d.j41(7,"div",5),d.nrm(8,"nv-hig-list-insert",6),d.k0s()),2&kt&&(d.R7$(),d.AVh("warning",Qt.isWarningState),d.Y8G("cardData",Qt.resourceRemainingCardData),d.R7$(2),d.Y8G("ngIf","decremental"===Qt.resourceType),d.R7$(),d.Y8G("ngIf","incremental"===Qt.resourceType),d.R7$(2),d.Y8G("cardData",Qt.resourceTotalCardData),d.R7$(2),d.Y8G("data",Qt.warningMessageData))},dependencies:[qi,n.bT,Gr.PO,Gr.HM,ir],styles:["[_nghost-%COMP%]{--progress-bar-container-padding: 16px}.warning[_ngcontent-%COMP%]{--hig-list-item-lead-icon-color: #e02828}.grid[_ngcontent-%COMP%]{width:100%;display:grid;grid-template-columns:auto 1fr auto}.progress-bar-container[_ngcontent-%COMP%]{grid-column:1/-1;padding:0 var(--progress-bar-container-padding)}.resource-warning[_ngcontent-%COMP%]{display:flex;width:100%}.progress-bar-container[_ngcontent-%COMP%]{transform:scaleY(2);transform-origin:bottom}.tv-view[_nghost-%COMP%], .tv-view [_nghost-%COMP%]{--progress-bar-container-padding: 32px}.tv-view[_nghost-%COMP%] nv-hig-list-item[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] nv-hig-list-item[_ngcontent-%COMP%]{--hig-list-item-image-scaling-factor: 1.5;--hig-list-item-length-scaling-factor: 2}.tv-view[_nghost-%COMP%] .progress-bar-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .progress-bar-container[_ngcontent-%COMP%]{transform:scaleY(4)}"]})}}return vt})();function ls(vt,en){if(1&vt&&d.nrm(0,"mat-icon",9),2&vt){const Ee=d.XpG().$implicit;d.AVh("warning",Ee.warning),d.Y8G("svgIcon",Ee.iconName)}}function zs(vt,en){if(1&vt&&(d.qex(0),d.j41(1,"div",7),d.DNE(2,ls,1,3,"mat-icon",8),d.j41(3,"span"),d.EFF(4),d.k0s()(),d.bVm()),2&vt){const Ee=en.$implicit;d.R7$(2),d.Y8G("ngIf",Ee.iconName),d.R7$(),d.AVh("hig-generic-table-content-text",!Ee.iconName)("hig-generic-table-content-text-icon",Ee.iconName),d.R7$(),d.JRh(Ee.string)}}function ia(vt,en){if(1&vt){const Ee=d.RV6();d.j41(0,"div",7)(1,"button",10),d.bIt("click",function(){d.eBV(Ee);const Qt=d.XpG(),Zn=Qt.$implicit,Vi=Qt.index,vr=d.XpG();return d.Njj(vr.onButtonClick(Zn,Vi))}),d.j41(2,"span",11),d.EFF(3),d.nI1(4,"translate"),d.k0s()()()}if(2&vt){const Ee=d.XpG().$implicit;d.R7$(),d.AVh("mat-accent",Ee.cta.accentColor),d.R7$(2),d.JRh(d.bMT(4,3,Ee.cta.text))}}function ga(vt,en){if(1&vt&&(d.j41(0,"div",2)(1,"div",3)(2,"span",4),d.EFF(3),d.k0s()(),d.DNE(4,zs,5,6,"ng-container",5)(5,ia,5,5,"div",6),d.k0s()),2&vt){const Ee=en.$implicit;d.R7$(3),d.JRh(Ee.title),d.R7$(),d.Y8G("ngForOf",Ee.cells),d.R7$(),d.Y8G("ngIf",!!Ee.cta)}}let nl=(()=>{class vt{constructor(){this.columns=[],this.columnActionClick=new d.bkB}onButtonClick(Ee,kt){this.columnActionClick.emit({column:Ee,columnIndex:kt})}static{this.\u0275fac=function(kt){return new(kt||vt)}}static{this.\u0275cmp=d.VBU({type:vt,selectors:[["nv-hig-table-comparison"]],inputs:{columns:"columns"},outputs:{columnActionClick:"columnActionClick"},standalone:!0,features:[d.aNF],decls:2,vars:1,consts:[[1,"hig-generic-table"],["class","hig-generic-table-column",4,"ngFor","ngForOf"],[1,"hig-generic-table-column"],[1,"hig-generic-table-header"],[1,"hig-generic-table-content-text-header"],[4,"ngFor","ngForOf"],["class","hig-generic-table-content",4,"ngIf"],[1,"hig-generic-table-content"],["class","hig-generic-table-icon",3,"warning","svgIcon",4,"ngIf"],[1,"hig-generic-table-icon",3,"svgIcon"],["mat-button","",1,"hig-generic-table-button","font-button2",3,"click"],[1,""]],template:function(kt,Qt){1&kt&&(d.j41(0,"div",0),d.DNE(1,ga,6,3,"div",1),d.k0s()),2&kt&&(d.R7$(),d.Y8G("ngForOf",Qt.columns))},dependencies:[f.m_,f.An,M.wG,M.iV,_.h,_.D9,n.MD,n.Sq,n.bT],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}.hig-generic-table[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:8px}.hig-generic-table-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;overflow:hidden}.hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{--font-header-font-size: 20px;--font-header-line-height: 28px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500;display:flex;align-items:center;justify-content:center;height:60px;background-color:var(--hig-generic-table-content-bg-color-header)}.isLtr[_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{padding-right:8px}html[dir=ltr][_ngcontent-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{--dummy2: 0;padding-right:8px}.isRtl[_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{padding-left:8px}html[dir=rtl][_ngcontent-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{--dummy2: 0;padding-left:8px}.isLtr[_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.tv-view[_ngcontent-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{--font-header-font-size: 40px;--font-header-line-height: 56px}.hig-generic-table-content-text-header[_ngcontent-%COMP%]{word-break:break-word;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:center;text-overflow:ellipsis}.hig-generic-table-content-text[_ngcontent-%COMP%]{word-break:break-word;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;align-self:center;text-overflow:ellipsis}.hig-generic-table-content-text-icon[_ngcontent-%COMP%]{word-break:break-word;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:center;text-overflow:ellipsis}.hig-generic-table-content[_ngcontent-%COMP%]{height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 14px;--font-body-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.isLtr[_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%]{padding-right:8px}html[dir=ltr][_ngcontent-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%]{--dummy2: 0;padding-right:8px}.isRtl[_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%]{padding-left:8px}html[dir=rtl][_ngcontent-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%]{--dummy2: 0;padding-left:8px}.isLtr[_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.tv-view[_ngcontent-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%]{--font-body-size: 28px;--font-body-line-height: 40px;--font-body-color: rgba(255, 255, 255, .85)}.hig-generic-table-content[_ngcontent-%COMP%]:nth-child(odd){background-color:var(--hig-generic-table-content-bg-color-odd)}.hig-generic-table-content[_ngcontent-%COMP%]:nth-child(2n){background-color:var(--hig-generic-table-content-bg-color-even)}.hig-generic-table-icon[_ngcontent-%COMP%]{display:flex;width:16px;height:16px;margin-bottom:2px}.hig-generic-table-icon.warning[_ngcontent-%COMP%]{color:#ffb43e}@media (max-width: 479px){.hig-generic-table[_ngcontent-%COMP%]{flex-direction:column;gap:24px}}.tv-view[_nghost-%COMP%], .tv-view [_nghost-%COMP%]{--max-tv-content-width: 1152px}.tv-view[_nghost-%COMP%] .hig-generic-table[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-generic-table[_ngcontent-%COMP%]{width:var(--max-tv-content-width);gap:16px}.tv-view[_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{background-color:var(--hig-generic-table-tv-content-bg-color-header)}.tv-view[_nghost-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{height:88px}.tv-view[_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%]{height:120px}.tv-view[_nghost-%COMP%] .hig-generic-table-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-generic-table-icon[_ngcontent-%COMP%]{width:24px;height:24px;margin-bottom:4px}"]})}}return vt})();const Xl={provide:d.hnV,useFactory:function Wl(vt,en){return()=>function ua(vt,en){return vt.addSvgIconSetLiteral(en.bypassSecurityTrustHtml('<svg width="0" height="0" class="svg-sprite" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><clipPath id="a"><path fill="#fff" d="M0 0h48v48H0z"/></clipPath><clipPath id="a"><path fill="#fff" d="M0 0h48v48H0z"/></clipPath><clipPath id="a"><path fill="#fff" d="M0 0h24v24H0z"/></clipPath><clipPath id="clip0_10669_139213"><path d="M0 0h32v32H0z"/></clipPath></defs><symbol id="account_circle" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2a7.2 7.2 0 0 1-6-3.22c.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08a7.2 7.2 0 0 1-6 3.22z"/></symbol><symbol id="account_circle2" viewBox="0 0 80 74"><path d="M40.1 9.833C23.483 9.833 10 23.478 10 40.291a30.72 30.72 0 0 0 6.1 18.396c.16 0 .321-.041.482-.041 1.444-.162 2.809-.487 4.214-.893 1.244-.366 2.568-.65 3.772-1.097a23.448 23.448 0 0 0 3.652-1.787c1.164-.69 1.927-1.584 2.609-2.72.401-.731.762-1.26 1.565-1.544.16-.08.602-.203 1.043-.284v-1.218s-.802-.528-1.284-1.95c-.401-1.218-.642-3.98-.642-3.98s-.401-.121-.602-.202c-1.926-1.015-2.167-3.817-2.448-5.726-.12-.69-.281-1.706.361-2.193.12-.081.241-.163.361-.163-.441-1.218-.722-2.558-.963-3.776-.28-1.503-.762-2.843-.522-4.386.241-1.625 1.084-3.005 1.646-4.508.441-1.096 1.926-2.193 3.17-1.99.642-1.055 1.846-1.827 3.05-2.274a8.166 8.166 0 0 1 3.13-.487c1.445.04 2.73.569 4.134.771a8.482 8.482 0 0 1 2.609.813c.401.203.722.487 1.083.65.402.202.803.365 1.164.65.602.486 1.405 1.218 1.686 1.948.2.528.401.975.762 1.462.201.285.402.488.522.813.923 2.314.803 4.751.682 7.188-.04.974-.08 2.07-.401 3.045.16.04.321.081.481.203.763.569.482 2.924.281 3.736-.28 1.26-.842 2.965-1.284 3.533-.32.488-1.565.894-1.565.894s-.401 3.249-.722 4.183c-.321.934-1.084 1.665-1.084 1.665l-.04 1.258s1.405.203 1.806.731c.361.447.562.528.963.894.401.365.843.73 1.244 1.096.963.934 2.087 1.828 3.411 2.274.602.203 1.244.285 1.806.528.482.203.883.528 1.365.772 1.084.487 2.207.812 3.29 1.34.884.447 1.767.812 2.69 1.137 4.013-5.198 6.42-11.695 6.42-18.802C70.199 23.478 56.715 9.833 40.1 9.833Z"/></symbol><symbol id="add" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></symbol><symbol id="add_square" viewBox="0 0 44 44"><path d="M31.11 8A4.896 4.896 0 0 1 36 12.89v18.22A4.896 4.896 0 0 1 31.11 36H12.89A4.896 4.896 0 0 1 8 31.11V12.89A4.896 4.896 0 0 1 12.89 8h18.22Zm0 1.956H12.89a2.938 2.938 0 0 0-2.934 2.935v18.218a2.938 2.938 0 0 0 2.935 2.935h18.218a2.937 2.937 0 0 0 2.935-2.935V12.891a2.937 2.937 0 0 0-2.935-2.935ZM22 16a1 1 0 0 1 1 1v4h4a1 1 0 0 1 0 2h-4v4a1 1 0 0 1-2 0v-4h-4a1 1 0 0 1 0-2h4v-4a1 1 0 0 1 1-1Z"/></symbol><symbol id="alert_circle" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></symbol><symbol id="analytics" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"/><path fill="none" d="M7 12h2v5H7zm4 2h2v3h-2zm4-7h2v10h-2z"/><path d="M3 3v18h18V3H3zm6 14H7v-5h2v5zm4 0h-2v-3h2v3zm0-5h-2v-2h2v2zm4 5h-2V7h2v10z"/></symbol><symbol id="analytics_off" viewBox="0 0 24 24"><path d="M22.22 22.18 1.81 1.78.4 3.19 3 5.79V21h15.21l2.59 2.59 1.42-1.41ZM9 17H7v-5h2v5Zm4 0h-2v-3h.21L13 15.79V17Zm0-7v.14l2 2V7h2v7.14l4 4V3H5.86l7 7H13Z"/><path d="m17.892 17.846-1.415 1.414 4.335 4.335 1.414-1.414-4.334-4.335Z"/></symbol><symbol id="app" viewBox="0 0 32 32"><path d="M4 28V4h24v24H4Zm2.667-2.667h18.666v-16H6.667v16ZM9.333 16v-2.667h13.334V16H9.333Zm0 5.333v-2.666h8v2.666h-8Z" fill="currentColor"/></symbol><symbol id="arrow_down" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"/></symbol><symbol id="arrow_left" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M20 11H7.8l5.6-5.6L12 4l-8 8 8 8 1.4-1.4L7.8 13H20v-2z"/></symbol><symbol id="arrow_right" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"/></symbol><symbol id="arrow_up" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/></symbol><symbol id="aspect_ratio_scaling" viewBox="0 0 20 20"><path d="M11.667 14.165h4.167V10h-1.667v2.5h-2.5v1.666ZM4.167 10h1.667V7.5h2.5V5.832H4.167v4.167Zm-2.5 6.666V3.332h16.667v13.333H1.667ZM3.334 15h13.333V5H3.334v10Z"/></symbol><symbol id="audio" viewBox="0 0 24 24"><path d="M1 18h6v3H1v-3Zm8 0h6v3H9v-3Zm8 0h6v3h-6v-3ZM1 13h6v3H1v-3Zm8 0h6v3H9v-3Zm8 0h6v3h-6v-3ZM9 8h6v3H9V8Zm8 0h6v3h-6V8ZM9 3h6v3H9V3Z"/></symbol><symbol id="backspace" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"/><path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12.59 12 9 8.41 10.41 7 14 10.59 17.59 7 19 8.41 15.41 12 19 15.59z"/></symbol><symbol id="bandaid" viewBox="0 0 512 512"><path d="M259.2 304c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2c6.4 0 11.2-4.8 11.2-11.2s-4.8-11.2-11.2-11.2zm6.4-107.2c0-6.4-4.8-11.2-11.2-11.2s-11.2 4.8-11.2 11.2c0 6.4 4.8 11.2 11.2 11.2 4.8 0 11.2-4.8 11.2-11.2zm22.4 80c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2c6.4 0 11.2-4.8 11.2-11.2s-4.8-11.2-11.2-11.2zm-91.2-35.2c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2c6.4 0 11.2-4.8 11.2-11.2 0-4.8-4.8-11.2-11.2-11.2zm28.8-27.2c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2c6.4 0 11.2-4.8 11.2-11.2s-4.8-11.2-11.2-11.2zm3.2 59.2c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2c6.4 0 11.2-4.8 11.2-11.2s-4.8-11.2-11.2-11.2zm88-3.2c6.4 0 11.2-4.8 11.2-11.2s-4.8-11.2-11.2-11.2c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2zm-32-54.4c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2c6.4 0 11.2-4.8 11.2-11.2 0-4.8-4.8-11.2-11.2-11.2zM256 267.2c6.4 0 11.2-4.8 11.2-11.2s-4.8-11.2-11.2-11.2c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2zm6.4 88-104-104 94.4-94.4 104 104c-32 32-64 62.4-94.4 94.4zm-115.2-96 105.6 105.6-1.6 1.6-46.4 46.4c-17.6 17.6-43.2 17.6-60.8 0-16-14.4-30.4-28.8-44.8-43.2-17.6-17.6-17.6-43.2 0-60.8l46.4-46.4c0-1.6 1.6-3.2 1.6-3.2zm217.6-6.4L259.2 147.2l1.6-1.6 46.4-46.4c17.6-17.6 43.2-17.6 60.8 0 16 14.4 30.4 30.4 46.4 44.8 17.6 17.6 17.6 43.2 0 59.2l-48 48s0 1.6-1.6 1.6z"/></symbol><symbol id="battery_boost" viewBox="0 0 768 768"><path d="M286.68 287.76v64.944l95.52-64.944 96.288 64.944V287.76L382.2 224.352z"/><path d="M286.68 398.376v64.92l95.52-64.92 96.288 64.92v-64.92L382.2 334.968z"/><path d="M286.68 510.504v64.968l95.52-64.968 96.288 64.968v-64.968L382.2 447.096z"/><path d="M383.16 32.328 78.576 208.176v351.672l304.56 175.8 304.536-175.8V208.176L383.16 32.328zm127.152 559.8c0 7.824-6.384 14.232-14.256 14.232H269.808c-7.872 0-14.256-6.408-14.256-14.232v-371.64c0-7.872 6.384-14.232 14.256-14.232h51.984v-45.84h122.28v45.84h51.984c7.872 0 14.256 6.384 14.256 14.232v371.64z"/></symbol><symbol id="battery_charging" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M17 4h-3V2h-4v2H7v18h10V4zm-6 16v-5.5H9L13 7v5.5h2L11 20z"/></symbol><symbol id="bell" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 22c1.1 0 2-.9 2-2h-4a2 2 0 0 0 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V2.5h-3v2.18C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"/></symbol><symbol id="blank" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/></symbol><symbol id="broadcast" viewBox="0 0 24 24"><path d="M12 10a2 2 0 0 1 1.53 3.29L16.7 22h-2.13L12 14.93 9.43 22H7.3l3.17-8.71A2 2 0 0 1 12 10zm0-2a4 4 0 0 0-4 4c0 .5.1 1 .28 1.46l-.88 2.4A6.026 6.026 0 0 1 6 12a6 6 0 1 1 12 0c0 1.47-.53 2.81-1.4 3.86l-.88-2.4C15.9 13 16 12.5 16 12a4 4 0 0 0-4-4zm0-4a8 8 0 0 0-8 8c0 2.36 1 4.5 2.64 5.94l-.72 2A10.005 10.005 0 0 1 2 12C2 6.477 6.477 2 12 2s10 4.477 10 10c0 3.23-1.54 6.11-3.92 7.94l-.72-2C19 16.5 20 14.36 20 12a8 8 0 0 0-8-8z"/></symbol><symbol id="browser_diskdrive" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M2 8v8h20V8H2zm16 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/></symbol><symbol id="browser_diskdrive_network" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M21 13V5H3v8h8v3H9v1H3v2h6v1h6v-1h6v-2h-6v-1h-2v-3h8zm-4-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2z"/></symbol><symbol id="browser_disk_drive_removable" viewBox="0 0 24 24"><path d="M2 8v8h20V8H2zm2 5v-2h10v2H4zm14 1c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/></symbol><symbol id="browser_nav_up" viewBox="0 0 24 24"><path d="M12 22C6.5 22 2 17.5 2 12S6.5 2 12 2s10 4.5 10 10-4.5 10-10 10zm0-15-5 5h3v4h4v-4h3l-5-5z"/></symbol><symbol id="cancel" viewBox="0 0 16 17"><path d="M8 1.795c3.667 0 6.667 3 6.667 6.666 0 3.667-3 6.667-6.667 6.667s-6.667-3-6.667-6.667c0-3.666 3-6.666 6.667-6.666Zm0 1.333c-1.267 0-2.4.4-3.267 1.133l7.467 7.467c.667-.933 1.133-2.067 1.133-3.267 0-2.933-2.4-5.333-5.333-5.333Zm3.267 9.533L3.8 5.195c-.733.866-1.133 2-1.133 3.266 0 2.934 2.4 5.334 5.333 5.334 1.267 0 2.4-.4 3.267-1.134Z" fill="#fff" fill-opacity=".7"/></symbol><symbol id="carrot_down" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m7 10 5 5 5-5H7z"/></symbol><symbol id="carrot_up" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m7 14 5-5 5 5H7z"/></symbol><symbol id="cellular" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0zm0 0h24v24H0V0z"/>><path d="M4 20v-6h3v6H4Zm6 0V9h3v11h-3Zm6 0V4h3v16h-3Z"/></symbol><symbol id="check" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></symbol><symbol id="check_circle" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></symbol><symbol id="chevron_down" viewBox="0 0 768 768"><path d="M237.12 274.56 384 421.44l146.88-146.88L576 320 384 512 192 320l45.12-45.44z"/></symbol><symbol id="chevron_left" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z"/></symbol><symbol id="chevron_right" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"/></symbol><symbol id="chevron_up" viewBox="0 0 768 768"><path d="M237.12 493.12 384 346.56l146.88 146.56L576 448 384 256 192 448l45.12 45.12z"/></symbol><symbol id="close" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19 6.4 17.6 5 12 10.6 6.4 5 5 6.4l5.6 5.6L5 17.6 6.4 19l5.6-5.6 5.6 5.6 1.4-1.4-5.6-5.6L19 6.4z"/></symbol><symbol id="cloud_download" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"/></symbol><symbol id="cloud_upload" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"/></symbol><symbol id="comment" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 2h19.99L22 22l-4-4H2z"/></symbol><symbol id="content_paste" viewBox="0 0 768 768"><path d="M608 640H160V128h64v96h320v-96h64zM384 64c17.673 0 32 14.327 32 32s-14.327 32-32 32c-17.673 0-32-14.327-32-32s14.327-32 32-32zm224 0H474.24C460.8 26.88 425.6 0 384 0s-76.8 26.88-90.24 64H160c-35.346 0-64 28.654-64 64v512c0 35.346 28.654 64 64 64h448c35.346 0 64-28.654 64-64V128c0-35.346-28.654-64-64-64z"/></symbol><symbol id="copy_generic" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M16 1.9v2H4v12H2v-14h14ZM6 6h16v16H6V6Z"/></symbol><symbol id="death" viewBox="0 0 24 24"><path d="M20.85 15.92c-.1-.54-.44-.98-.9-1.22.43-1.37.66-3.13.66-5.34 0-4.03-3.92-7.48-8.73-7.48-4.81 0-8.64 3.33-8.64 7.48 0 2.19.23 3.94.65 5.3-.5.23-.88.69-.98 1.26-.17.94.47 1.84 1.44 2.01l2.32.4c.1.05.19.09.29.13l.53 2.48s1.27.93 4.45.93 4.39-.93 4.39-.93l.54-2.47c.13-.05.25-.1.38-.16l2.17-.38a1.73 1.73 0 0 0 1.43-2.01ZM9.56 14.56c-1.36 1.13-2.95 1.58-3.85.7-.9-.88-.67-2.66.59-3.89s3.23-1.3 4.13-.42c.91.87.46 2.51-.87 3.61Zm3.76 3.33c-.34.38.01-.05-1.43-.05s-.95.48-1.41.03c-.46-.45-.22-1.43-.1-1.8.11-.35.75-1.83 1.52-1.83.76 0 1.36 1.47 1.49 1.83.13.36.31 1.4-.07 1.82Zm4.82-2.64c-.9.88-2.49.43-3.85-.7-1.33-1.1-1.77-2.74-.87-3.62.9-.88 2.87-.81 4.13.42 1.27 1.24 1.5 3.02.59 3.9Z"/></symbol><symbol id="delete" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M6 21h12V7H6v14zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/></symbol><symbol id="delete_forever" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M6 21h12V7H6v14zm2.46-9.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4h-3.5z"/></symbol><symbol id="desktop" viewBox="0 0 24 24"><path d="M14 2h10v20h-2v-2h-6v2h-2V2Zm7 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm-5 2v2h6V8h-6Zm0 4v2h6v-2h-6Zm-4-6v2H2v8h10v2h-2v2h2v2H6v-2h2v-2H0V6h12Z"/></symbol><symbol id="desktop_mac" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M23 2H1v16h9l-2 3v1h8v-1l-2-3h9V2zm-2 12H3V4h18v10z"/></symbol><symbol id="desktop_windows" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M23 2H1v16h9v2H8v2h8v-2h-2v-2h9V2zm-2 14H3V4h18v12z"/></symbol><symbol id="devices" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M4 6h18V4H2v13H0v3h14v-3H4V6zm20 2h-8v12h8V8zm-2 9h-4v-7h4v7z"/></symbol><symbol id="download" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19 12v7H5v-7H3v9h18v-9h-2zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2v9.67z"/></symbol><symbol id="edit" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM21.41 6.34l-3.75-3.75-2.53 2.54 3.75 3.75 2.53-2.54z"/></symbol><symbol id="edit_settings" viewBox="0 0 24 24"><path d="M4 20V5.684h8.71L10.554 7.75H6V18h10.356v-4.713l1.993-1.996V20H4Zm4.783-4.772v-3.38l5.72-5.706 3.408 3.34-5.74 5.746H8.783Zm10.264-6.88-3.408-3.34L17.652 3 21 6.4l-1.953 1.949Z"/></symbol><symbol id="epic_games_logo" viewBox="0 0 22 25"><g id="Settings" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><path d="M2.615.053H19.42c1.343 0 1.838.507 1.838 1.88v16.58c0 .156 0 1.231-1.054 1.8-.703.378-3.452 1.543-8.248 3.495-.424.199-.628.25-.938.244-.348 0-.479-.047-.943-.244-4.792-2.015-7.54-3.18-8.243-3.496C.777 19.84.828 19.246.797 18.947a4.39 4.39 0 0 1-.02-.434V1.933c0-1.373.496-1.88 1.838-1.88ZM17.998 16.95l.003-.04v-.089l-.003-.04-.004-.037-.015-.074-.008-.033-.01-.034-.012-.033-.015-.03-.019-.033-.019-.03-.022-.032-.022-.03-.027-.026-.026-.03-.03-.025-.03-.026-.03-.019-.03-.022-.03-.018-.033-.019-.034-.018-.037-.019-.038-.015-.037-.019-.041-.014-.034-.01-.034-.012-.037-.01-.034-.012-.037-.011-.037-.011-.038-.008-.041-.01-.038-.012-.04-.007-.042-.011-.041-.011-.041-.012-.038-.007-.033-.011-.034-.007-.03-.012-.03-.007-.045-.014-.041-.016-.037-.014-.03-.019-.034-.018-.026-.026-.016-.022-.018-.04-.004-.049v-.007l.004-.037.015-.033.022-.034.034-.03.026-.014.03-.015.034-.007.038-.008.04-.007h.083l.033.004.038.003.037.004.038.008.037.007.038.007.037.011.038.012.04.01.03.015.034.012.03.014.034.015.03.015.034.015.03.018.033.015.03.022.03.019.033.018.03.022.023-.03.019-.029.022-.03.023-.029.022-.033.019-.03.022-.03.023-.029.018-.03.023-.03.022-.029.02-.029.021-.034.023-.029.022-.03.019-.03.023-.029-.03-.022-.03-.022-.03-.022-.03-.019-.034-.022-.03-.018-.033-.019-.034-.018-.03-.015-.034-.019-.037-.014-.034-.015-.034-.015-.033-.01-.038-.016-.033-.007-.034-.011-.038-.011-.033-.008-.038-.007-.037-.008-.034-.007-.037-.007-.041-.004-.037-.008-.042-.003h-.037l-.042-.004-.04-.004h-.161l-.075.008-.038.003-.037.004-.034.008-.037.007-.034.007-.034.008-.03.007-.034.011-.037.015-.037.01-.034.016-.033.019-.034.014-.034.019-.03.018-.03.022-.03.023-.026.018-.03.026-.026.03-.026.025-.026.03-.023.03-.022.03-.019.032-.019.033-.015.034-.015.033-.014.033-.008.033-.012.034-.014.066-.004.037-.004.033-.004.037v.086l.004.04.004.037.004.037.007.033.008.037.011.03.011.033.011.03.015.025.019.033.019.03.018.026.023.026.023.025.025.026.027.026.026.023.03.018.03.022.033.019.03.018.038.019.034.018.037.015.038.015.037.014.041.015.034.011.033.011.034.011.037.008.034.011.037.01.038.008.037.011.038.008.04.01.039.008.04.011.038.008.037.01.034.008.034.011.03.008.026.007.045.019.037.015.034.014.03.015.03.022.026.022.019.026.015.037.004.044v.008l-.004.037-.012.033-.014.03-.023.025-.03.023-.026.014-.03.012-.034.007-.033.007-.038.007-.041.004h-.082l-.041-.004h-.038l-.037-.007-.042-.003-.037-.008-.037-.007-.038-.008-.034-.01-.037-.012-.037-.01-.034-.016-.034-.01-.033-.016-.034-.014-.034-.015-.03-.019-.033-.014-.03-.019-.034-.022-.03-.019-.033-.021-.03-.023-.034-.022-.03-.022-.023.03-.026.025-.022.03-.026.03-.023.025-.022.03-.026.03-.023.025-.026.03-.022.026-.027.03-.022.029-.022.026-.027.03-.022.029-.026.025-.023.03.03.026.026.022.03.022.03.023.03.022.03.022.03.019.03.018.034.019.03.018.033.018.034.015.033.018.034.015.034.015.037.015.034.01.037.012.034.015.038.01.037.012.034.007.037.011.037.008.038.007.075.015.037.004.038.007.04.004.038.003.037.004h.041l.038.004h.157l.037-.004.042-.004.037-.003.034-.004.037-.004.038-.007.033-.008.034-.007.037-.007.034-.011.038-.012.037-.01.037-.015.038-.015.034-.019.033-.015.034-.018.03-.022.03-.018.03-.023.026-.021.03-.027.022-.022.026-.025.023-.026.018-.03.023-.03.038-.059.015-.033.014-.03.015-.033.012-.037.007-.033.011-.037.008-.037.004-.04.004-.037Zm-2.625.74h.038v-.61h-1.468v-.458h1.303v-.573h-1.303v-.44h1.449V15h-2.163v2.69h2.144Zm-2.734 0h.037V15h-.767l-.019.029-.018.033-.023.03-.019.033-.018.03-.019.033-.022.03-.02.032-.018.03-.019.03-.022.032-.019.03-.018.033-.02.03-.021.033-.019.03-.02.03-.018.032-.018.03-.023.033-.018.03-.02.032-.018.03-.023.033-.018.03-.019.03-.019.032-.022.03-.019.033-.018.03-.019.033-.022.03-.019.032-.02.03-.018-.03-.018-.033-.023-.029-.019-.033-.018-.03-.019-.033-.018-.03-.023-.033-.019-.03-.018-.029-.02-.033-.018-.03-.023-.032-.018-.03-.019-.033-.018-.03-.02-.033-.022-.03-.018-.029-.019-.033-.02-.03-.021-.033-.02-.03-.018-.033-.018-.029-.02-.03-.022-.033-.018-.029-.019-.034-.019-.029-.019-.033-.022-.03-.019-.033-.018-.03h-.767v2.69h.71v-1.583l.023.03.019.033.022.03.019.033.022.03.019.033.023.03.018.033.023.03.018.033.023.03.019.033.022.03.019.033.022.03.019.032.023.03.022.033.019.03.022.034.018.03.023.032.019.03.022.033.02.03.021.033.02.03.021.033.02.03.022.033.018.03.023.033.019.03.022.033h.015l.019-.03.022-.033.019-.03.022-.03.02-.033.021-.03.02-.03.018-.032.023-.03.018-.03.023-.03.018-.032.023-.03.018-.03.02-.033.022-.03.018-.03.023-.032.018-.03.023-.03.019-.033.018-.03.023-.029.019-.034.022-.03.019-.029.022-.03.019-.033.018-.03.023-.03.019-.032.022-.03.019-.03.022-.033.019-.03v1.591h.685Zm-4.342-1.11.015.034h-.633l.015-.033.012-.034.015-.037.015-.033.011-.033.015-.034.015-.037.015-.033.011-.033.015-.034.015-.033.011-.037.015-.033.015-.034.011-.033.015-.033.015-.037L7.93 16l.012-.034.014-.033.015-.037.012-.034.015-.033.015.033.011.034.014.037.016.033.011.034.015.033.015.037.01.033.016.033.015.034.011.033.015.037.011.033.015.034.015.033.012.033.014.038.015.033.012.033.015.033.015.037.011.034Zm1.175 1.11h.037l-.015-.034-.014-.033-.015-.034-.012-.037-.015-.032-.015-.034-.014-.033-.03-.066-.015-.038-.015-.033-.012-.033-.015-.033-.015-.034-.015-.033-.014-.037-.016-.033-.03-.067-.01-.033-.016-.033-.015-.037-.015-.033-.015-.034-.03-.066-.015-.033-.01-.038-.016-.033-.015-.033-.015-.033-.015-.033-.015-.033-.015-.038-.014-.033-.012-.033-.014-.033-.016-.034-.015-.033-.015-.037-.015-.033-.03-.067-.01-.033-.016-.033-.015-.033-.014-.037-.03-.066-.016-.034-.014-.033-.012-.033-.015-.037-.015-.033-.015-.034-.015-.033-.015-.033-.015-.033-.015-.038-.01-.033-.015-.033-.016-.033-.015-.033-.015-.034-.015-.037-.015-.033-.015-.033-.01-.033-.016-.034-.015-.033-.014-.037-.016-.033-.015-.033-.015-.034-.014-.033-.012-.033-.015-.037-.015-.033-.015-.034-.015-.033h-.692l-.015.033-.015.034-.015.033-.011.037-.015.033-.015.033-.015.034-.015.033-.015.033-.015.037-.015.033-.011.034-.03.066-.015.033-.015.037-.015.034-.015.033-.015.033-.011.033-.015.034-.015.037-.03.066-.015.033-.015.034-.015.033-.01.037-.016.033-.015.033-.015.034-.015.033-.015.033-.015.037-.015.033-.011.033-.03.067-.015.033-.015.033-.015.037-.015.033-.015.034-.011.033-.015.033-.015.034-.015.037-.015.033-.015.033-.015.033-.015.033-.011.034-.015.037-.015.033-.015.033-.015.033-.015.034-.015.033-.015.037-.011.033-.03.067-.015.033-.015.033-.015.037-.015.033-.015.034-.011.033-.015.033-.015.034-.015.037-.015.033-.015.033-.03.066-.011.033-.015.037-.03.067-.015.033h.756l.015-.033.011-.033.015-.034.015-.037.011-.032.015-.034.015-.033.011-.033.015-.033.016-.034.01-.033.015-.037.016-.033.01-.034.016-.033h1.074l.015.033.011.034.015.033.015.037.011.033.015.034.015.033.011.033.03.066.011.033.015.037.015.034.012.033.014.033h.734Zm-3.278-.344.026-.022v-1.201H4.985v.54h.546v.335l-.03.019-.026.015-.033.014-.03.015-.034.015-.034.007-.037.012-.038.007-.037.007-.038.004-.04.004-.042.004h-.086l-.041-.004-.037-.004-.038-.008-.037-.007-.038-.011-.037-.011-.034-.015-.034-.015-.033-.014-.03-.019-.03-.018-.03-.023-.03-.022-.026-.022-.023-.026-.026-.026-.022-.025-.023-.03-.018-.03-.02-.029-.018-.033-.015-.034-.015-.037-.011-.03-.011-.032-.008-.034-.015-.066-.004-.037-.003-.033-.004-.037v-.085l.004-.037.003-.037.008-.041.008-.033.007-.037.011-.037.015-.033.011-.033.015-.034.02-.03.018-.032.019-.03.018-.026.023-.03.026-.025.022-.026.026-.022.027-.023.026-.021.03-.02.03-.018.03-.018.034-.015.033-.015.034-.01.033-.012.034-.007.037-.007.034-.004.038-.004h.078l.042.004.04.004.038.003.037.008.038.007.034.007.033.011.034.012.03.01.03.015.03.015.033.019.03.018.03.019.03.018.03.022.03.019.03.026.03.022.022-.03.026-.025.023-.03.026-.03.022-.03.023-.025.026-.03.023-.03.026-.03.022-.025.023-.03.026-.029.022-.026.023-.03.026-.029.022-.03.027-.025.022-.03-.03-.022-.03-.026-.03-.022-.03-.022-.03-.019-.03-.022-.033-.018-.03-.02-.033-.017-.03-.02-.034-.014-.034-.018-.034-.015-.033-.015-.034-.014-.034-.012-.03-.01-.033-.008-.034-.01L5.486 15l-.033-.007-.034-.007-.037-.008-.038-.007-.033-.004-.042-.007-.037-.004h-.038l-.04-.004-.042-.003h-.16l-.038.003-.038.004-.074.008-.038.007-.037.004-.037.007-.034.011-.038.007-.034.012-.033.007-.034.015-.037.01-.03.012-.037.018-.034.015-.034.015-.034.019-.033.018-.034.019-.03.018-.03.018-.03.023-.03.018-.03.022-.026.022-.03.026-.026.022-.026.026-.026.026-.023.026-.026.026-.023.026-.022.03-.022.029-.023.03-.038.059-.018.03-.019.029-.019.033-.015.033-.03.067-.014.033-.016.037-.01.033-.012.037-.01.033-.008.037-.012.037-.007.033-.004.037-.008.037-.003.041-.004.037v.037l-.003.04v.122l.003.037.004.037.003.037.004.034.008.037.003.033.008.037.011.033.008.037.011.033.007.033.015.034.012.03.015.032.015.034.014.033.015.033.02.03.018.033.019.03.018.03.023.029.019.029.022.026.022.03.023.025.026.026.026.026.026.023.027.025.026.023.026.022.03.022.03.022.03.022.03.019.03.018.034.019.03.018.033.019.034.014.033.015.034.015.038.014.033.012.034.014.034.011.037.008.034.011.037.007.034.008.037.007.037.007.038.004.037.004.038.004.04.003.038.004h.161l.042-.004.037-.003.041-.004.038-.004.04-.004.038-.003.037-.008.038-.007.033-.007.038-.008.034-.011.037-.01.034-.012.034-.011.033-.011.034-.015.037-.015.034-.015.037-.014.034-.02.034-.013.033-.02.034-.018.034-.018.03-.018.03-.019.03-.022.03-.019.03-.021.025-.02.03-.021Zm1.1-8.912V7.04H5.439V4.705h1.857V3.311h-3.26v9.31h3.259V11.23H5.438V8.435h1.857Zm9.311 2.444c0 .366-.184.536-.545.536h-.267c-.375 0-.58-.17-.58-.536V5.174c0-.366.205-.61.58-.61h.24c.44 0 .572.148.572.61v1.86l1.396.003V5.032c0-1.137-.592-1.712-1.756-1.712h-.696c-1.164 0-1.737.716-1.737 1.854v5.77c0 1.138.573 1.683 1.737 1.683h.71c1.164 0 1.742-.545 1.742-1.682V8.899h-1.396v1.98ZM11.95 12.62h1.396V3.31H11.95v9.31Zm-1.864-5.173c0 .372-.101.518-.44.518h-.49V4.562h.49c.338 0 .44.172.44.545v2.34ZM7.76 3.31v9.31h1.395V9.243h.704c1.088 0 1.625-.572 1.625-1.729V5.04c0-1.157-.537-1.729-1.625-1.729H7.76Zm6.983 17.698H7.295l3.724 1.389 3.724-1.389Z" id="path2-7" fill="#E8E8E8"/></g></symbol><symbol id="ethernet" viewBox="0 0 768 768"><path d="M224 480h64v96h64v-96h64v96h64v-96h64v96h64V288H480v-96H288v96H160v288h64v-96zM140.16 96h488c41.92 0 75.84 33.92 75.84 76.16v456c0 41.885-33.955 75.84-75.84 75.84h-488C97.92 704 64 670.08 64 628.16v-456C64 129.92 97.92 96 140.16 96z"/></symbol><symbol id="exit_to_app" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM21 3H3v6h2V5h14v14H5v-4H3v6h18V3z"/></symbol><symbol id="eye" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 4C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/></symbol><symbol id="eye_off" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0z"/><path d="M12 6.5c2.76 0 5 2.24 5 5 0 .51-.1 1-.24 1.46l3.06 3.06c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l2.17 2.17c.47-.14.96-.24 1.47-.24zM3.42 2.45 2.01 3.87l2.68 2.68A11.738 11.738 0 0 0 1 11.5C2.73 15.89 7 19 12 19c1.52 0 2.97-.3 4.31-.82l3.43 3.43 1.41-1.41L3.42 2.45zM12 16.5c-2.76 0-5-2.24-5-5 0-.77.18-1.5.49-2.14l1.57 1.57c-.03.18-.06.37-.06.57 0 1.66 1.34 3 3 3 .2 0 .38-.03.57-.07L14.14 16c-.65.32-1.37.5-2.14.5zm2.97-5.33a2.97 2.97 0 0 0-2.64-2.64l2.64 2.64z"/></symbol><symbol id="favorite" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m12 21.35-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></symbol><symbol id="favorite_border" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"/></symbol><symbol id="feedback" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M22 2H2.01L2 22l4-4h16V2zm-9 12h-2v-2h2v2zm0-4h-2V6h2v4z"/></symbol><symbol id="file" viewBox="0 0 24 24"><path d="M4.01 2 4 22h16V8l-6-6H4.01zM13 9V3.5L18.5 9H13z"/></symbol><symbol id="filter_list" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/></symbol><symbol id="folder" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M10 4H2v16h20V6H12l-2-2z"/></symbol><symbol id="folder_open" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M22 6H12l-2-2H2v16h20V6zm-2 12H4V8h16v10z"/></symbol><symbol id="fps" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M23 2H1v16h9v2H8v2h8v-2h-2v-2h9V2zm-2 14H3V4h18v12z"/><path d="M6 11h2V9H6V8h3V6H4v8h2v-3zm6 0h3V6h-5v8h2v-3zm0-3h1v1h-1V8zm8 1h-2V8h2V6h-4v5h2v1h-2v2h4V9z"/></symbol><symbol id="freestyle" viewBox="0 0 24 24"><path d="M12.3 9.4c-1.5 0-2.7 1.2-2.7 2.7 0 1.2-1.1 1.8-1.8 1.8.8 1.1 2.3 1.8 3.6 1.8 2 0 3.6-1.6 3.6-3.6 0-1.4-1.2-2.7-2.7-2.7zm10.697-5.383-6.364 6.364-2.475-2.475 6.364-6.364 2.475 2.475z"/><path d="M20 9v9H4V7h9l2-2H2v15h20V7l-2 2z"/></symbol><symbol id="fullscreen_exit" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/></symbol><symbol id="full_screen_scaling" viewBox="0 0 20 20"><path d="M2.5 17.5v-4.167h1.667v2.5h2.5V17.5H2.5Zm10.833 0v-1.667h2.5v-2.5H17.5V17.5h-4.167ZM2.5 6.667V2.5h4.167v1.667h-2.5v2.5H2.5Zm13.333 0v-2.5h-2.5V2.5H17.5v4.167h-1.667Z"/></symbol><symbol id="g-assist" viewBox="0 0 24 24"><path d="M18.809 6.618v8.947H5.95v3.194h12.812L22.003 22V6.618h-3.194Z"/><path d="M1.332 2v15.37l3.229-3.229h12.824V2H1.332Zm11.712 5.822v3.518l-.115.093a4.398 4.398 0 0 1-1.435.717 6.134 6.134 0 0 1-1.748.243h-.093c-1.308 0-2.303-.347-2.974-1.041a3.05 3.05 0 0 1-.73-1.215c-.185-.521-.277-1.135-.277-1.83V7.88c0-.845.15-1.586.451-2.188a3.386 3.386 0 0 1 1.343-1.447c.578-.335 1.273-.497 2.06-.497h.104c.799 0 1.482.173 2.049.532a3.06 3.06 0 0 1 1.238 1.528l.116.3-.313.105-1.157.405-.324.116-.313.104-.069-.22-.023-.093c-.104-.312-.336-.74-1.215-.74h-.081c-.533 0-.926.162-1.204.497-.081.093-.15.209-.208.336-.15.324-.22.74-.22 1.238v.498c0 .706.138 1.227.416 1.54.266.3.706.45 1.32.45h.07c.265 0 .52-.022.763-.057.15-.023.29-.058.405-.104v-.891H9.225V7.486h3.82v.336Z"/></symbol><symbol id="gallery" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M18 2v6H4v8H2V2h2l2 4h2L6 2h2l2 4h2l-2-4h2l2 4h2l-2-4h4Zm1 14.5V19H9l3-4 2 2.7 3-3.7 2 2.5Zm1-4.5H8v8h12v-8Zm2-2v12H6V10h16Z"/></symbol><symbol id="gamepad_blue_b" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#0B8ABC"/><path d="M16.836 34V14.094h6.973c2.415 0 4.247.465 5.496 1.394 1.248.92 1.873 2.274 1.873 4.06 0 .976-.25 1.837-.752 2.585-.502.738-1.199 1.28-2.092 1.627 1.02.255 1.823.77 2.406 1.545.593.774.889 1.722.889 2.843 0 1.915-.61 3.364-1.832 4.348-1.221.984-2.962 1.486-5.223 1.504h-7.738Zm4.102-8.668v5.373h3.513c.966 0 1.718-.228 2.256-.683.547-.465.82-1.103.82-1.915 0-1.822-.943-2.748-2.83-2.775h-3.76Zm0-2.898h3.035c2.069-.037 3.103-.862 3.103-2.475 0-.902-.264-1.55-.793-1.941-.52-.402-1.344-.602-2.474-.602h-2.872v5.018Z" fill="#fff"/></symbol><symbol id="gamepad_blue_rb" viewBox="0 0 48 48"><g clip-path="url(#a)"><path d="M24 48c13.255 0 24-10.745 24-24S37.255 0 24 0 0 10.745 0 24s10.745 24 24 24Z" fill="#0B8ABC"/><path d="M25.306 34V14h7.438c2.001 0 3.576.505 4.724 1.514 1.166.99 1.749 2.334 1.749 4.029v.486c0 .762-.183 1.447-.548 2.057-.348.59-.844 1.085-1.488 1.485.905.4 1.601.962 2.088 1.686.487.724.731 1.59.731 2.6v.486c0 1.771-.574 3.162-1.722 4.171-1.131.99-2.715 1.486-4.75 1.486h-8.222Zm3.81-3.543h4.307c1.844 0 2.767-.705 2.767-2.114V27.8c0-.686-.244-1.219-.731-1.6-.47-.381-1.149-.571-2.036-.571h-4.306v4.828Zm0-8.314h3.524c1.844 0 2.767-.686 2.767-2.057V19.6c0-.648-.244-1.152-.731-1.514-.47-.362-1.149-.543-2.036-.543h-3.523v4.6ZM8 34V14h6.916c2.123 0 3.802.543 5.037 1.629 1.253 1.085 1.88 2.59 1.88 4.514v.543c0 1.352-.305 2.495-.914 3.428-.591.934-1.427 1.638-2.505 2.115L22.407 34h-4.15l-3.602-7.143H11.81V34H8Zm3.81-10.743h3.002c.922 0 1.688-.19 2.297-.571.609-.381.913-1.02.913-1.915v-.714c0-.857-.304-1.476-.913-1.857-.61-.4-1.375-.6-2.297-.6H11.81v5.657Z" fill="#fff"/></g></symbol><symbol id="gamepad_blue_rs" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#0B8ABC"/><path d="M15.631 27.269h-3.086v6.967H8.671V15.203h6.986c2.221 0 3.934.5 5.14 1.503 1.205 1.002 1.807 2.419 1.807 4.249 0 1.298-.28 2.383-.84 3.255-.55.862-1.39 1.551-2.517 2.065l4.068 7.778v.183h-4.158Zm-3.086-3.177h3.125c.973 0 1.726-.248 2.26-.745.534-.506.8-1.198.8-2.079 0-.897-.254-1.603-.761-2.117-.5-.514-1.27-.772-2.312-.772h-3.112zm22.766 5.15c0-.74-.258-1.307-.775-1.699-.517-.4-1.446-.82-2.79-1.255-1.342-.444-2.405-.88-3.189-1.307-2.135-1.168-3.202-2.74-3.202-4.72 0-1.028.284-1.943.852-2.744.577-.81 1.399-1.443 2.466-1.896 1.077-.453 2.282-.68 3.616-.68 1.343 0 2.54.249 3.59.746 1.05.488 1.864 1.18 2.44 2.078.586.898.879 1.917.879 3.059h-3.874c0-.872-.271-1.547-.814-2.026-.542-.488-1.304-.732-2.285-.732-.947 0-1.683.205-2.209.614-.525.401-.787.933-.787 1.595 0 .619.305 1.137.917 1.556.62.418 1.528.81 2.724 1.176 2.204.671 3.81 1.503 4.817 2.497 1.007.993 1.51 2.23 1.51 3.712 0 1.648-.615 2.942-1.846 3.883-1.231.932-2.888 1.399-4.971 1.399-1.447 0-2.764-.266-3.952-.798-1.188-.54-2.096-1.276-2.724-2.209-.62-.933-.93-2.013-.93-3.242h3.887c0 2.1 1.24 3.15 3.719 3.15.92 0 1.64-.187 2.156-.562.517-.383.775-.915.775-1.594z" fill="#fff"/></symbol><symbol id="gamepad_blue_rt" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#0B8ABC"/><path d="M15.991 27.436h-3.12v7.159H8.952V15.039h7.064c2.246 0 3.978.515 5.197 1.544 1.218 1.03 1.828 2.485 1.828 4.366 0 1.334-.283 2.449-.849 3.344-.557.886-1.406 1.594-2.546 2.122l4.113 7.992v.188h-4.205Zm-3.12-3.264h3.16c.983 0 1.745-.255 2.284-.766.54-.519.81-1.23.81-2.135 0-.922-.257-1.648-.77-2.176-.506-.528-1.285-.792-2.338-.792H12.87Zm26.818-5.87h-5.823v16.293h-3.917V18.303h-5.745v-3.264h15.485z" fill="#fff"/></symbol><symbol id="gamepad_blue_x" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#0B8ABC"/><path d="m23.854 21.775 4.477-7.24h5.659l-6.954 10.413 7.134 10.587h-5.724l-4.592-7.356-4.593 7.356h-5.724l7.135-10.587-6.954-10.414h5.658z" fill="#fff"/></symbol><symbol id="gamepad_blue_y" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#0B8ABC"/><path d="m23.986 23.063 4.143-8.97h4.484l-6.535 12.688V34h-4.17v-7.219l-6.535-12.687h4.498l4.115 8.969Z" fill="#fff"/></symbol><symbol id="gamepad_b_hint" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#CF3C33"/><path d="M17.588 34V14.094h6.508c2.16 0 3.782.446 4.867 1.34 1.094.893 1.64 2.214 1.64 3.964 0 .93-.264 1.755-.793 2.475-.528.711-1.248 1.262-2.16 1.654 1.076.301 1.924.875 2.543 1.723.63.838.944 1.841.944 3.008 0 1.786-.58 3.19-1.737 4.21C28.243 33.49 26.607 34 24.492 34h-6.904Zm2.625-9.31v7.163h4.334c1.221 0 2.183-.314 2.885-.943.71-.638 1.066-1.513 1.066-2.625 0-2.397-1.303-3.596-3.91-3.596h-4.375Zm0-2.106h3.965c1.148 0 2.064-.287 2.748-.861.693-.575 1.039-1.354 1.039-2.338 0-1.094-.32-1.887-.957-2.38-.638-.5-1.609-.751-2.912-.751h-3.883v6.33Z" fill="#fff"/></symbol><symbol id="gamepad_ls_hint" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#616161"/><path d="M13.104 31.854h9.433V34H10.465V14.094h2.639v17.76Zm18.293-6.727c-2.252-.647-3.892-1.44-4.922-2.379-1.021-.948-1.532-2.114-1.532-3.5 0-1.568.625-2.862 1.873-3.883 1.258-1.03 2.89-1.545 4.895-1.545 1.367 0 2.584.265 3.65.793 1.076.529 1.905 1.258 2.489 2.188.592.93.888 1.946.888 3.049H36.1c0-1.204-.383-2.147-1.149-2.83-.766-.693-1.846-1.04-3.24-1.04-1.294 0-2.306.288-3.035.862-.72.565-1.08 1.353-1.08 2.365 0 .811.341 1.5 1.025 2.064.693.556 1.864 1.067 3.514 1.532 1.659.465 2.953.98 3.883 1.545.938.556 1.631 1.207 2.078 1.955.455.747.683 1.627.683 2.638 0 1.614-.629 2.908-1.886 3.883-1.258.966-2.94 1.45-5.045 1.45-1.367 0-2.644-.26-3.828-.78-1.185-.529-2.101-1.249-2.748-2.16-.638-.912-.957-1.946-.957-3.104h2.638c0 1.204.442 2.156 1.326 2.858.893.693 2.083 1.039 3.569 1.039 1.385 0 2.447-.283 3.185-.848.739-.565 1.108-1.335 1.108-2.31 0-.976-.342-1.728-1.026-2.256-.683-.538-1.923-1.067-3.719-1.586Z" fill="#fff"/></symbol><symbol id="gamepad_lt_hint" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#616161"/><path d="M14.95 31.854h9.433V34H12.31V14.094h2.638v17.76Zm22.407-15.6H30.96V34h-2.611V16.254h-6.385v-2.16h15.394v2.16Z" fill="#fff"/></symbol><symbol id="gamepad_rb_hint" viewBox="0 0 48 48"><g clip-path="url(#a)"><path d="M24 48c13.255 0 24-10.745 24-24S37.255 0 24 0 0 10.745 0 24s10.745 24 24 24Z" fill="#616161"/><path d="M25.729 33.91V15h7.32c2.072 0 3.675.45 4.81 1.35 1.152.883 1.729 2.099 1.729 3.648v.54c0 1.585-.748 2.756-2.243 3.512 2.035.756 3.053 2.143 3.053 4.16v.568c0 1.603-.567 2.863-1.702 3.782-1.135.9-2.746 1.35-4.836 1.35h-8.13Zm3.107-2.62h4.943c1.189 0 2.071-.216 2.648-.648.594-.432.891-1.045.891-1.837v-.622c0-.828-.297-1.458-.891-1.89-.594-.45-1.477-.676-2.648-.676h-4.944v5.673Zm0-8.267h4.133c1.152 0 2.026-.207 2.62-.62.613-.415.919-1.018.919-1.81v-.568c0-.757-.297-1.342-.892-1.756-.594-.432-1.477-.648-2.647-.648h-4.134v5.402ZM8 33.91V15h6.78c2.198 0 3.918.486 5.16 1.459 1.243.972 1.865 2.341 1.865 4.106v.567c0 1.28-.333 2.36-1 3.242-.648.865-1.576 1.495-2.782 1.891l4.322 7.646h-3.404l-3.998-7.186h-3.836v7.186H8Zm3.107-9.833h3.62c1.224 0 2.188-.225 2.89-.675.72-.469 1.081-1.198 1.081-2.189v-.702c0-.972-.36-1.684-1.08-2.134-.703-.468-1.666-.703-2.891-.703h-3.62v6.403Z" fill="#fff"/></g></symbol><symbol id="gamepad_rs_hint" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#616161"/><path d="M16.672 25.947h-4.676V34H9.357V14.094h6.59c2.242 0 3.965.51 5.168 1.531 1.213 1.02 1.819 2.506 1.819 4.457 0 1.24-.338 2.32-1.012 3.24-.666.92-1.595 1.609-2.79 2.065l4.677 8.449V34h-2.817l-4.32-8.053Zm-4.676-2.146h4.033c1.304 0 2.338-.337 3.104-1.012.775-.674 1.162-1.577 1.162-2.707 0-1.23-.37-2.174-1.108-2.83-.729-.656-1.786-.989-3.171-.998h-4.02V23.8Zm20.494 1.326c-2.251-.647-3.892-1.44-4.922-2.379-1.02-.948-1.53-2.114-1.53-3.5 0-1.568.623-2.862 1.872-3.883 1.258-1.03 2.89-1.545 4.895-1.545 1.367 0 2.584.265 3.65.793 1.076.529 1.905 1.258 2.488 2.188.593.93.889 1.946.889 3.049h-2.639c0-1.204-.383-2.147-1.148-2.83-.766-.693-1.846-1.04-3.24-1.04-1.295 0-2.306.288-3.035.862-.72.565-1.08 1.353-1.08 2.365 0 .811.341 1.5 1.025 2.064.693.556 1.864 1.067 3.513 1.532 1.66.465 2.954.98 3.883 1.545.94.556 1.632 1.207 2.079 1.955.455.747.683 1.627.683 2.638 0 1.614-.629 2.908-1.887 3.883-1.258.966-2.94 1.45-5.045 1.45-1.367 0-2.643-.26-3.828-.78-1.185-.529-2.1-1.249-2.748-2.16-.638-.912-.957-1.946-.957-3.104h2.639c0 1.204.442 2.156 1.326 2.858.893.693 2.083 1.039 3.568 1.039 1.386 0 2.448-.283 3.186-.848s1.107-1.335 1.107-2.31c0-.976-.341-1.728-1.025-2.256-.684-.538-1.923-1.067-3.719-1.586Z" fill="#fff"/></symbol><symbol id="gamepad_rt_hint" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#616161"/><path d="m24.272 34.207-3.206-.153-5.513-7.413h-3.85v7.413H8.97V15.41h5.755c1.242 0 2.276.075 3.104.225.828.142 1.573.4 2.236.776.745.426 1.325.964 1.739 1.616.423.642.634 1.46.634 2.454 0 1.344-.372 2.47-1.117 3.38-.746.902-1.771 1.582-3.078 2.042zm-4.69-13.55c0-.535-.106-1.007-.317-1.416-.203-.417-.543-.768-1.022-1.052a3.903 3.903 0 0 0-1.407-.5 10.7 10.7 0 0 0-1.918-.15h-3.215v7.036h2.76c.864 0 1.619-.066 2.262-.2.644-.142 1.192-.4 1.643-.776.414-.351.717-.752.91-1.202.203-.46.304-1.04.304-1.74zm20.902-3.044H33.74v16.441h-2.51v-16.44h-6.744V15.41h15.998z" fill="#fff"/></symbol><symbol id="gamepad_y_hint" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#F19937"/><path d="m24.473 24.088 5.195-9.994h2.98l-6.863 12.482V34H23.16v-7.424l-6.863-12.482h3.008l5.168 9.994Z" fill="#fff"/></symbol><symbol id="gameplay" viewBox="0 0 24 24"><path d="M23 2v16h-9v2h2v2H8v-2h2v-2H1V2h22Zm-2 2H3v12h18V4ZM10 6c.3 0 .6.3.6.6H13c0-.4.3-.6.6-.6h1.1c.4 0 .6.3.6.6l.121.007c.57.06 1.186.533 1.279 1.093.1.6.9 4.1.8 5.1 0 .5-.5 1.1-1.1 1.1-.6 0-1.1-.5-1.7-1.1l-.962-.962-.138-.138c-.5-.6-.5-.6-1.1-.6h-1.3c-.403.003-.443.043-1 .6l-1.1 1.1c-.6.5-1.2 1.1-1.7 1.1s-1.1-.5-1.1-1.1c0-1.1.8-4.5.9-5.1.1-.6.8-1.1 1.3-1.1l.009-.114C8.56 6.162 8.83 6 9.1 6Z"/></symbol><symbol id="game_controller" viewBox="0 0 768 768"><path d="M652.8 272c-6.4-32-44.8-64-76.8-64 0-19.2-12.8-32-32-32h-64c-19.2 0-32 12.8-32 32H320c0-16-16-32-32-32h-64c-19.2 0-32 12.8-32 32-32 0-70.4 28.8-76.8 64C108.8 304 64 496 64 560c0 32 32 64 64 64s64-32 96-64 32-35.2 64-64c32-32 32-32 64-32h64c32 0 32 0 64 32l64 64c32 32 64 64 96 64s64-32 64-64c0-60.8-44.8-256-51.2-288zM320 358.4h-41.6V400h-44.8v-41.6H192v-44.8h41.6V272h44.8v41.6H320v44.8zM512 400c-35.2 0-64-28.8-64-64s28.8-64 64-64 64 28.8 64 64-28.8 64-64 64z"/></symbol><symbol id="game_controller_off" viewBox="0 0 768 768"><path d="M704 560c0 9.5-2.8 18.9-7.6 27.5L500 398.8c3.9.7 7.9 1.2 12 1.2 35.2 0 64-28.8 64-64s-28.8-64-64-64-64 28.8-64 64c0 5 .6 9.8 1.7 14.5L301.3 208H448c0-19.2 12.8-32 32-32h64c19.2 0 32 12.8 32 32 32 0 70.4 32 76.8 64S704 499.2 704 560zM146.9 224.6c-15.8 11.7-28.3 28.7-31.7 47.4C108.8 304 64 496 64 560c0 32 32 64 64 64s64-32 96-64 32-35.2 64-64c32-32 32-32 64-32h44.2m-110-105.6h-7.8V400h-44.8v-41.6H192v-44.8h41.6v-5.8M396.2 464l255 244.9 40.9-42.5-44.7-42.9L214.8 208 96.1 93.9l-40.9 42.5 91.7 88.1"/></symbol><symbol id="game_controller_partial" viewBox="0 0 24 24"><path clip-rule="evenodd" d="M18.011 6c1.001 0 2.202 1.001 2.402 2.002.033.167.1.475.188.88.44 2.034 1.413 6.532 1.413 8.117 0 1-1 2.001-2.001 2.001-1 0-2.002-1-3.002-2.001l-2.002-2.002c-.667-.667-1.334-1-2.001-1h-2.002c-.667 0-1.334.333-2.001 1-.618.557-.855.808-1.181 1.154-.202.214-.438.465-.82.848C6.003 17.999 5.002 19 4 19c-.999 0-2-1-2-2.001 0-1.66.962-6.061 1.406-8.09.091-.418.16-.736.195-.907.2-1.1 1.401-2.001 2.402-2.001 0-.6.4-1.001 1-1.001h2.002c.5 0 1 .5 1 1h4.004c0-.6.4-1 1-1h2.002c.6 0 1 .4 1 1zm-6.995 6.495h1.001l-.01-.01V7.492H8.505v-1H7.504v1H6.003c-.31 0-.86.41-.92.77l-.096.456-.105.495-.065.302c-.41 1.901-1.306 6.053-1.306 7.474 0 .17.33.5.5.5.38 0 1.401-1.02 1.942-1.561.37-.36.6-.6.79-.81.33-.351.6-.631 1.241-1.212 1.181-1.18 1.551-1.41 3.032-1.41zm3.003-2.501c0 1.1.9 2.001 2.001 2.001s2.001-.9 2.001-2.001-.9-2.002-2.001-2.002-2.001.9-2.001 2.002zM7.324 8.002h1.401v1.291h1.291v1.401h-1.29v1.301H7.323v-1.3h-1.3V9.292h1.3z" fill="#fff" fill-opacity=".9" fill-rule="evenodd"/></symbol><symbol id="game_library" viewBox="0 0 768 768"><path d="M160 96v576h448V96H160zm352 400c-16 0-32-16-48-32l-32-32c-16-16-16-16-32-16h-32c-16 0-16 0-32 16l-32 32c-16 16-32 32-48 32s-32-16-32-32c0-32 22.4-128 25.6-144s22.4-32 38.4-32c0-9.6 6.4-16 16-16h32c9.6 0 16 6.4 16 16h64c0-9.6 6.4-16 16-16h32c9.6 0 16 6.4 16 16 16 0 35.2 16 38.4 32S544 432 544 464c0 16-16 32-32 32zM64 128h64v512H64V128zm576 0h64v512h-64V128z"/></symbol><symbol id="gfe_logo" viewBox="0 0 768 768"><path d="m42.667 608 83.2 83.2h601.6v34.133H110.934l-68.267-68.267z"/><path d="M42.667 42.667v512l102.4 102.4h582.4v-614.4h-684.8zM76.8 539.733V76.8h616.533V192c-179.2 0-332.8 72.533-392.534 125.867l12.8 38.4c10.666 29.867 23.467 59.733 40.533 87.466 2.133 6.4 6.4 10.666 8.534 17.067 38.4 64 85.333 119.467 134.4 164.267H396.799c-53.333-46.933-98.133-98.133-134.4-153.6-25.6 12.8-102.4 14.933-138.667 32 34.133 36.267 74.667 81.067 125.866 121.6h-91.733l-81.067-85.334zm503.467 85.334c-89.6-87.466-128-196.267-140.8-236.8-2.133-10.666-4.267-14.933-4.267-14.933s110.933-83.2 256-108.8v72.533c-46.933 19.2-98.133 44.8-145.067 85.333 0 0 0 4.267 2.133 8.534 6.4 25.6 29.866 100.267 89.6 160-6.4-70.4-4.267-119.467-4.267-134.4v-6.4s21.333-17.067 55.467-36.267v211.2h-108.8z"/></symbol><symbol id="gfe_logo_inverse" viewBox="0 0 768 768"><path d="M437.333 386.133c12.8 38.4 49.067 145.067 136.533 228.267h106.666V411.733c-34.133 19.2-53.333 34.133-53.333 34.133v6.4c0 17.067-2.133 61.867 4.267 130.133-57.6-59.733-81.067-130.133-87.466-155.733-2.133-6.4-2.133-8.534-2.133-8.534 44.8-38.4 93.867-64 138.667-81.067v-70.4c-140.8 23.467-247.467 104.533-247.467 104.533s2.133 6.4 4.267 14.933z"/><path d="M249.6 616.533c-49.066-40.533-87.467-83.2-119.467-119.467 36.267-14.933 108.8-19.2 134.4-29.866 34.133 53.333 78.933 104.534 130.133 149.333h96c-46.933-44.8-93.867-98.133-130.133-160-2.133-4.267-6.4-10.666-8.534-14.933-14.933-25.6-27.733-53.333-38.4-83.2-4.267-12.8-8.534-23.467-12.8-36.267 57.6-51.2 206.933-119.467 379.733-121.6v-115.2h-595.2v448l78.933 81.067h85.333z"/><path d="M42.667 42.667v612.267l70.4 70.4h612.267V42.668H42.668zm672 672h-595.2l-66.133-66.134V601.6l81.067 78.933h580.267v34.133zm0-66.134h-563.2L53.334 548.266V53.333h661.333v595.2z"/></symbol><symbol id="goal" viewBox="0 0 24 24"><g transform="translate(2 6)"><circle cx="10.388" cy="5.993" r="5.62"/><path d="M3.405 9.008H-.003v2.02h4.701a7.632 7.632 0 0 1-1.293-2.02zm-.626-3.015c0-.338.03-.669.073-.996H-.003v2.02h2.859a7.548 7.548 0 0 1-.077-1.024zM4.673.984H-.003v2.02h3.395A7.633 7.633 0 0 1 4.673.984z"/></g><path d="M15.379 1.999h-4.376c5.13 1.031 8.964 5.122 8.964 10.015 0 4.847-3.762 8.908-8.819 9.986h4.173c3.944-1.747 6.683-5.573 6.683-10.013-.001-4.419-2.712-8.229-6.625-9.988Z"/></symbol><symbol id="gpu" viewBox="0 0 768 768"><path d="M64 226.133v46.934h34.133v268.8H140.8V226.134zm128 0V499.2h34.133v46.933H448V499.2h256V226.133H192zm366.933 217.6c-42.667 0-81.067-34.133-81.067-81.067 0-42.667 34.133-81.067 81.067-81.067 42.667 0 81.067 34.133 81.067 81.067 0 42.667-34.133 81.067-81.067 81.067z"/></symbol><symbol id="group2" viewBox="0 0 24 24"><g clip-path="url(#a)"><path d="M0 18v-1.575c0-.717.367-1.3 1.1-1.75C1.833 14.225 2.8 14 4 14c.217 0 .425.004.625.012.2.009.392.03.575.063-.233.35-.408.717-.525 1.1a4.098 4.098 0 0 0-.175 1.2V18H0Zm6 0v-1.625c0-.533.146-1.02.438-1.463.291-.441.704-.829 1.237-1.162.533-.333 1.17-.583 1.913-.75.741-.167 1.545-.25 2.412-.25.883 0 1.696.083 2.438.25.741.167 1.379.417 1.912.75.533.333.942.72 1.225 1.162.283.442.425.93.425 1.463V18H6Zm13.5 0v-1.625a4.46 4.46 0 0 0-.163-1.225 3.913 3.913 0 0 0-.487-1.075 4.29 4.29 0 0 1 .563-.063c.191-.008.387-.012.587-.012 1.2 0 2.167.22 2.9.662.733.442 1.1 1.03 1.1 1.763V18h-4.5ZM4 13c-.55 0-1.02-.196-1.413-.588A1.926 1.926 0 0 1 2 11c0-.567.196-1.042.587-1.425A1.947 1.947 0 0 1 4 9c.567 0 1.042.192 1.425.575.383.383.575.858.575 1.425 0 .55-.192 1.02-.575 1.412A1.914 1.914 0 0 1 4 13Zm16 0c-.55 0-1.02-.196-1.413-.588A1.926 1.926 0 0 1 18 11c0-.567.196-1.042.587-1.425A1.947 1.947 0 0 1 20 9c.567 0 1.042.192 1.425.575.383.383.575.858.575 1.425 0 .55-.192 1.02-.575 1.412A1.914 1.914 0 0 1 20 13Zm-8-1a2.893 2.893 0 0 1-2.125-.875A2.893 2.893 0 0 1 9 9c0-.85.292-1.563.875-2.138S11.167 6 12 6c.85 0 1.563.287 2.137.862C14.712 7.438 15 8.15 15 9c0 .833-.287 1.542-.863 2.125-.575.583-1.287.875-2.137.875Z" fill="#fff"/></g></symbol><symbol id="guage" viewBox="0 0 768 768"><path d="M384 512c-53.019 0-96-42.981-96-96 0-35.84 19.52-67.2 48-83.52l310.72-179.84L469.76 459.2c-16 31.36-48.32 52.8-85.76 52.8zm0-416c57.92 0 112 16 159.04 42.24l-67.2 38.72C448 166.08 416 160 384 160c-141.385 0-256 114.615-256 256 0 70.72 28.48 134.72 74.88 180.8h.32c12.48 12.48 12.48 32.64 0 45.12s-32.96 12.48-45.44.32C99.84 584.32 64 504.32 64 416 64 239.269 207.269 96 384 96zm320 320c0 88.32-35.84 168.32-93.76 226.24-12.48 12.16-32.64 12.16-45.12-.32s-12.48-32.64 0-45.12C611.52 550.4 640 486.72 640 416c0-32-6.08-64-17.28-92.8l38.72-67.2C688 304 704 357.76 704 416z"/></symbol><symbol id="gun" viewBox="0 0 24 24"><path d="M23 6.21h-.456v-.957H20.82l-.267.517H6.46l.001-.007C6.46 5.342 6.095 5 5.643 5c-.451 0-.817.342-.817.763l.001.007H2.986v2.315L1.496 9.35v.902h1.312l-1.784 7.632c-.135.574.333 1.116.961 1.116h4.199c.463 0 .864-.301.962-.724l1.182-5.057h3.026c1.644 0 2.982-1.249 2.982-2.784 0-.068-.006-.135-.011-.203h6.363v-.509h1.855V7.652H23V6.21Zm-9.812 4.225c0 .944-.822 1.712-1.833 1.712H8.58l.448-1.914h4.147c.007.066.013.134.013.202Z"/></symbol><symbol id="gun2x" viewBox="0 0 24 36"><path d="M23 18.21h-.456v-.957H20.82l-.267.517H6.46l.001-.007C6.46 17.342 6.095 17 5.643 17c-.451 0-.817.342-.817.763l.001.007H2.986v2.315l-1.49 1.265v.902h1.312l-1.784 7.632c-.135.574.333 1.116.961 1.116h4.199c.463 0 .864-.301.962-.724l1.182-5.057h3.026c1.644 0 2.982-1.249 2.982-2.784 0-.068-.006-.135-.011-.203h6.363v-.509h1.855v-2.071H23V18.21Zm-9.812 4.225c0 .944-.822 1.712-1.833 1.712H8.58l.448-1.914h4.147c.007.066.013.134.013.202ZM11.94 13.43H5.96v-1.02l2.9-3.16c.24-.27.45-.51.61-.72.16-.21.29-.4.38-.57.1-.17.16-.33.2-.49a1.79 1.79 0 0 0-.03-1.02 1.244 1.244 0 0 0-.67-.75c-.16-.06-.35-.1-.56-.1-.26 0-.48.04-.67.12-.19.08-.35.2-.47.34-.12.15-.22.32-.28.52-.06.2-.1.42-.1.66H5.79c0-.39.07-.76.2-1.1.13-.34.33-.64.58-.9.26-.26.57-.46.95-.61.37-.15.8-.22 1.28-.22.44 0 .84.06 1.19.17.35.11.64.28.88.49.24.21.42.47.54.77a2.712 2.712 0 0 1 .06 1.83c-.09.27-.21.54-.37.81s-.35.54-.57.81c-.22.27-.46.54-.72.82l-1.99 2.13h4.13v1.19h-.01Zm3.6-4.44 1.26-2.17h1.65l-2.02 3.26 2.09 3.35h-1.64l-1.32-2.26-1.31 2.26H12.6l2.09-3.35-2.02-3.26h1.64z"/></symbol><symbol id="gun3x" viewBox="0 0 24 36"><path d="M23 18.21h-.456v-.957H20.82l-.267.517H6.46l.001-.007C6.46 17.342 6.095 17 5.643 17c-.451 0-.817.342-.817.763l.001.007H2.986v2.315l-1.49 1.265v.902h1.312l-1.784 7.632c-.135.574.333 1.116.961 1.116h4.199c.463 0 .864-.301.962-.724l1.182-5.057h3.026c1.644 0 2.982-1.249 2.982-2.784 0-.068-.006-.135-.011-.203h6.363v-.509h1.855v-2.071H23V18.21Zm-9.812 4.225c0 .944-.822 1.712-1.833 1.712H8.58l.448-1.914h4.147c.007.066.013.134.013.202ZM7.67 8.3h.88c.26 0 .48-.03.67-.1.19-.07.34-.16.47-.28.13-.12.22-.26.28-.43.06-.17.09-.35.09-.56 0-.42-.11-.75-.33-.99-.22-.23-.56-.34-1.02-.34-.2 0-.38.03-.54.09-.17.05-.31.14-.44.24-.12.11-.21.24-.28.4-.07.15-.1.32-.1.52H5.86c0-.35.07-.67.21-.97.14-.31.33-.56.59-.78.25-.22.55-.39.9-.51s.72-.19 1.13-.19c.42 0 .81.05 1.16.16.35.11.65.27.9.48.25.22.45.48.59.8.14.32.21.68.21 1.1 0 .18-.03.36-.09.54-.06.18-.14.36-.26.53-.11.17-.26.33-.43.48-.17.15-.37.27-.6.38.27.09.5.21.69.36.19.14.34.31.46.49s.2.38.26.58a2.736 2.736 0 0 1-.15 1.75c-.15.33-.36.6-.63.82-.27.22-.58.39-.95.51s-.76.17-1.18.17c-.39 0-.76-.05-1.11-.16a2.91 2.91 0 0 1-.93-.47c-.27-.21-.48-.47-.64-.78-.16-.31-.24-.68-.24-1.09h1.48c0 .2.03.37.1.54.07.16.17.3.29.42.13.12.28.21.46.27.18.06.38.09.6.09.46 0 .82-.12 1.09-.37.26-.24.4-.6.4-1.06 0-.25-.04-.47-.12-.65-.08-.18-.19-.33-.33-.46-.14-.12-.31-.21-.52-.27-.2-.06-.43-.09-.68-.09h-.85V8.3Zm7.86.69 1.26-2.17h1.65l-2.02 3.26 2.09 3.35h-1.64l-1.32-2.26-1.31 2.26h-1.65l2.09-3.35-2.02-3.26h1.64z"/></symbol><symbol id="heads_up_display" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M23 18h-9v2h2v2H8v-2h2v-2H1V2h22v16ZM21 4H3v12h18V4ZM5 10v4h6v-4H5Z"/></symbol><symbol id="heart" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m12 21.35-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></symbol><symbol id="help" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"/></symbol><symbol id="highlights" viewBox="0 0 24 24"><path d="m18 4 2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H2v16h20V4h-4Zm-3.5 13.987L12 16.478l-2.5 1.51.7-2.818L8 13.157l2.9-.201 1.1-2.717 1.1 2.717 2.9.201-2.2 1.912.7 2.918Z"/></symbol><symbol id="highlights_disabled" viewBox="0 0 24 24"><path d="M2.27 2 21 20.73 19.73 22l-2.002-2.001L2 20V4.269L1 3.27 2.27 2ZM10 4l2 4h3l-2-4h2l2 4h3.005L18 4h4v15.173l-6.027-6.026.036-.03-.07-.006-6.744-6.74L8 4.001h2Zm.663 8.933-2.645.183 2.198 1.997-.699 2.796 2.497-1.498 2.497 1.498-.36-1.488-3.488-3.488Z"/></symbol><symbol id="home" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8h5z"/></symbol><symbol id="icon_play" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.667 4.167v11.666L15.833 10 6.667 4.167Z" fill="#fff" fill-opacity=".9"/></symbol><symbol id="image" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M21 21V3H3v18h18zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/></symbol><symbol id="image_off" viewBox="0 0 32 32"><path fill-rule="evenodd" clip-rule="evenodd" d="M20.67 22.084 1.914 3.328l1.414-1.414L22.084 20.67l-1.414 1.414Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M21.328 17.2V3h-14.2l14.2 14.2ZM4.3 3h-.972v18h18v-.972L19.301 18H5.327l3.5-4.5 2.5 3.01 2.833-3.65L4.3 3Z" fill="#fff"/></symbol><symbol id="ime" viewBox="0 0 24 24"><g fill="#FFF"><path d="M13.912 14.884h-.905V13.11H15.9a4.157 4.157 0 0 0-.302-.51l.92-.279c.186.233.372.542.472.79h2.662v1.772H18.7v-.905h-4.79v.905Zm5.795 2.5h-2.886v1.167c0 .495-.116.743-.495.882-.371.148-.867.155-1.5.155a3.363 3.363 0 0 0-.403-.936c.479.016 1.06.016 1.214.016.155 0 .201-.031.201-.14v-1.145h-2.87v-.874h2.87v-.41a5.31 5.31 0 0 0 .945-.635H14.29v-.859h3.42l.21-.046.61.48a7.772 7.772 0 0 1-1.71 1.338v.132h2.886v.874Z"/><path d="M20.232 2c.942 0 1.71.735 1.768 1.658v16.574c0 .936-.729 1.71-1.658 1.762l-.11.006H3.774c-.942 0-1.71-.735-1.768-1.665L2 20.232V3.768c0-.942.735-1.71 1.665-1.768h16.567Zm.626 1.258-.013.045a.804.804 0 0 1-.174.284L3.503 20.8a.695.695 0 0 1-.155.116c.104.058.22.103.342.116h16.542a.8.8 0 0 0 .8-.722l.007-.078V3.768a.83.83 0 0 0-.18-.51Zm-12.364 1.2H7.298L4.967 10.72h1.372l.43-1.29h2.263l.434 1.29h1.373L8.494 4.458ZM7.896 6.04l.787 2.344H7.118l.778-2.344Z"/></g></symbol><symbol id="inactive_display" viewBox="0 0 25 22"><path clip-rule="evenodd" d="M4.627 2.031H0v17.904h22.441l-1.492-1.5H1.5V3.531h4.62l-1.493-1.5ZM23.5 18.186V3.53H8.919l-1.493-1.5H25v17.662l-1.5-1.507Z"/><path d="M1.379 1.195 2.604 0l20.577 20.68-1.225 1.195L1.379 1.195Z"/></symbol><symbol id="info" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm1 15h-2v-6h2v6Zm0-8h-2V7h2v2Z"/></symbol><symbol id="integer_scaling" viewBox="0 0 20 20"><path d="M5 10h1.667V8.335H5v1.667Zm3.334 0H10V8.335H8.334v1.667Zm3.333 3.334h1.667v-1.667h-1.667v1.667Zm0-3.333h1.667V8.334h-1.667v1.667Zm-10 6.666V3.334h16.667v13.333H1.667Zm1.667-1.666h13.333V5H3.334v10Z"/></symbol><symbol id="ios_share" viewBox="0 0 44 44"><path d="m21 7-2.65 3.41a.931.931 0 0 1-.72.342c-.538 0-.944-.427-.944-1.012 0-.298.117-.527.314-.74l4.155-4.659C21.417 4.056 21.738 4 22 4s.415.056.676.341l4.432 4.645c.196.213.302.442.302.74 0 .585-.408 1.012-.958 1.012a.925.925 0 0 1-.708-.342L23 7v17c0 .598-.436 1-1 1-.564 0-1-.402-1-1V7ZM9 17.667c0-3.045 1.538-4.583 4.6-4.583L17 13v1.993h-3.686c-1.464 0-2.27.798-2.27 2.335l-.042 15.259c0 1.537.533 2.413 1.998 2.413h17.727C32.178 35 33 34.467 33 32.93l.042-15.26c0-1.536-.591-2.677-2.042-2.677h-4V13l3.4.084c3.062 0 4.6 1.538 4.6 4.583v14.75C35 35.464 33.462 37 30.4 37H13.6C10.538 37 9 35.463 9 32.418V17.667Z"/></symbol><symbol id="isp" viewBox="0 0 768 768"><path d="M384 64c-141.385 0-256 114.615-256 256 0 128.96 96 237.44 224 253.76V608h-32c-17.673 0-32 14.327-32 32H64v64h224c0 17.673 14.327 32 32 32h128c17.673 0 32-14.327 32-32h224v-64H480c0-17.673-14.327-32-32-32h-32v-34.24c128-16 224-124.8 224-253.76 0-141.385-114.615-256-256-256zm0 64s23.68 40.96 40.32 96h-80.64c16.64-55.04 40.32-96 40.32-96zm-71.36 13.76c-8.64 16-21.76 45.12-32.96 82.24h-61.76c22.08-37.12 54.08-66.24 94.72-82.24zm142.72.32c40.64 16 72.64 44.8 94.72 81.92h-61.76c-11.2-37.12-24.32-66.24-32.96-81.92zM194.88 288h71.36c-1.28 10.56-2.24 21.12-2.24 32s.96 21.44 2.24 32h-71.36c-1.92-10.56-2.88-21.12-2.88-32s.96-21.44 2.88-32zm135.36 0h107.52c1.28 10.56 2.24 21.12 2.24 32s-.96 21.44-2.24 32H330.24c-1.28-10.56-2.24-21.12-2.24-32s.96-21.44 2.24-32zm171.52 0h71.36c1.92 10.56 2.88 21.12 2.88 32s-.96 21.44-2.88 32h-71.36c1.28-10.56 2.24-21.12 2.24-32s-.96-21.44-2.24-32zM217.92 416h61.76c11.2 37.12 24.32 66.24 32.96 81.92-40.64-16-72.64-44.8-94.72-81.92zm125.76 0h80.64C407.68 471.04 384 512 384 512s-23.68-40.96-40.32-96zm144.64 0h61.76C528 453.12 496 482.24 455.36 498.24c8.64-16 21.76-45.12 32.96-82.24z"/></symbol><symbol id="keyboard" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0zm0 0h24v24H0V0z"/><path d="M22 5H2.01L2 19h20V5zM11 8h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v-2h2v2zm0-3H5V8h2v2zm9 7H8v-2h8v2zm0-4h-2v-2h2v2zm0-3h-2V8h2v2zm3 3h-2v-2h2v2zm0-3h-2V8h2v2z"/></symbol><symbol id="keyboard_arrow_left" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"/></symbol><symbol id="keyboard_arrow_right" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"/></symbol><symbol id="keyboard_hide_icon" viewBox="0 0 20 20"><g id="Client-IME" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="11″-iPad-Pro--Client-IME---portrait---snackbar" transform="translate(-780 -613)"><g id="Components-/-Button-/-Contained-icon-/-Active-Copy" transform="translate(762 594)"><g id="keyboard_hide" transform="translate(16 16)"><path id="Path" d="M0 0h24v24H0z"/><path d="M22 3H2.01L2 17h20V3ZM11 6h2v2h-2V6Zm0 3h2v2h-2V9ZM8 6h2v2H8V6Zm0 3h2v2H8V9Zm-1 2H5V9h2v2Zm0-3H5V6h2v2Zm9 7H8v-2h8v2Zm0-4h-2V9h2v2Zm0-3h-2V6h2v2Zm3 3h-2V9h2v2Zm0-3h-2V6h2v2Zm-7 15 4-4H8l4 4Z" id="Shape" fill="#FFF"/></g></g></g></g></symbol><symbol id="laptop" viewBox="0 0 32 32"><path d="M3 26v-2.235h4.47v-1.118H5.236V7h22.353v15.647h-2.235v1.118h4.47V26H3Zm4.47-5.588h17.883V9.235H7.47v11.177Z" fill="currentColor"/></symbol><symbol id="launch" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19 19H5V5h7V3H3v18h18v-9h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/></symbol><symbol id="link" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5zm-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-2zm-3-4h8v2H8zm9-4h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5zm-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-2zm-3-4h8v2H8z"/></symbol><symbol id="link_off" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M14.39 11 16 12.61V11zM17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.27-.77 2.37-1.87 2.84l1.4 1.4A4.986 4.986 0 0 0 22 12c0-2.76-2.24-5-5-5zM2 4.27l3.11 3.11A4.991 4.991 0 0 0 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4.01 1.41-1.41L3.41 2.86 2 4.27z"/></symbol><symbol id="lock" viewBox="0 0 24 24"><g fill="none"><path d="M0 0h24v24H0V0z"/><path d="M0 0h24v24H0V0z" opacity=".87"/></g><path d="M20 8h-3V6.21c0-2.61-1.91-4.94-4.51-5.19A5.008 5.008 0 0 0 7 6v2H4v14h16V8zm-8 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM9 8V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9z"/></symbol><symbol id="logout" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M14.6 15.6 16 17l5-5-5-5-1.4 1.4 2.6 2.6H7.5v2h9.7l-2.6 2.6ZM3 21h18v-3.976h-2V19H5V5h14v2.031h2V3H3v18Z"/></symbol><symbol id="lt_arrow" viewBox="0 0 40 40"><g fill="none" fill-rule="evenodd"><rect width="39" height="39" x=".5" y=".5" fill="var(--lt-arrow-rect-fill,#000)" stroke="var(--lt-arrow-rect-stroke,#FFF)" stroke-opacity=".4" opacity=".601" rx="19.5"/><path fill="var(--lt-arrow-polygon-fill,#FFF)" d="m22 26 1.41-1.41L18.83 20l4.58-4.59L22 14l-6 6z"/></g></symbol><symbol id="maximize" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M4 4h16v16H4V4Zm2 4v10h12V8H6Z" fill="#fff" fill-opacity=".9"/></symbol><symbol id="medal" viewBox="0 0 24 24"><path d="M3.79 2h16.42v1.59H3.79zm0 3.18v11L12 22l8.21-5.82v-11H3.79Zm11.25 11.5L12 15.08l-3.04 1.6.58-3.39-2.46-2.4 3.4-.49L12 7.32l1.52 3.08 3.4.49-2.46 2.4.58 3.39Z"/></symbol><symbol id="memory" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15 9H9v6h6V9zm-2 4h-2v-2h2v2zm8-2V9h-2V5h-4V3h-2v2h-2V3H9v2H5v4H3v2h2v2H3v2h2v4h4v2h2v-2h2v2h2v-2h4v-4h2v-2h-2v-2h2zm-4 6H7V7h10v10z"/></symbol><symbol id="menu" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></symbol><symbol id="message" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M22 2H2.01L2 22l4-4h16V2zm-4 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/></symbol><symbol id="mic" viewBox="0 0 24 24"><path d="M12 14c1.7 0 3-1.3 3-3V5c0-1.7-1.3-3-3-3S9 3.3 9 5v6c0 1.7 1.3 3 3 3zm5.3-3c0 3-2.5 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.4 2.7 6.2 6 6.7V21h2v-3.3c3.3-.5 6-3.3 6-6.7h-1.7z"/></symbol><symbol id="mic_off" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15 10.6V5c0-1.66-1.34-3-3-3-1.54 0-2.79 1.16-2.96 2.65L15 10.6zm4 .4h-1.7c0 .58-.1 1.13-.27 1.64l1.27 1.27c.44-.88.7-1.87.7-2.91zM4.41 2.86 3 4.27l6 6V11c0 1.66 1.34 3 3 3 .23 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28a7.13 7.13 0 0 0 2.55-.9l4.2 4.2 1.41-1.41L4.41 2.86z"/></symbol><symbol id="minimize" viewBox="0 0 25 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M20.946 14h-16v-4h16" fill="#fff" fill-opacity=".9"/></symbol><symbol id="montage" viewBox="0 0 24 24"><path d="m5 4 2 4h3L8 4h2l2 4h3l-2-4h2l2 4h3l-2-4h4v16H2V4h3Zm4.5 7-1.1 2.4L6 14.5l2.4 1.1L9.5 18l1.1-2.4 2.4-1.1-2.4-1.1L9.5 11Zm6-1.5-.8 1.7-1.7.8 1.7.8.8 1.7.8-1.7L18 12l-1.7-.8-.8-1.7Z"/></symbol><symbol id="more_horiz" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></symbol><symbol id="more_vert" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></symbol><symbol id="movie" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m18 4 2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z"/></symbol><symbol id="network_signal" viewBox="0 0 768 768"><path d="M611.875 130.56c139.852 140.084 139.852 367.028 0 506.88l-46.08-46.08c114.509-114.509 114.509-300.212 0-414.72l46.08-46.08zm-92.159 92.16c88.934 89.165 88.934 233.626 0 322.56l-46.08-46.08c63.59-63.59 63.59-166.81 0-230.4l46.08-46.08zM156.125 637.44c-139.853-140.083-139.853-367.027 0-506.88l46.08 46.08c-114.508 114.509-114.508 300.212 0 414.72l-46.08 46.08zm92.159-92.16c-88.934-89.164-88.934-233.626 0-322.56l46.08 46.08c-63.59 63.59-63.59 166.81 0 230.4l-46.08 46.08zM384 445.44c-33.932 0-61.44-27.508-61.44-61.44s27.508-61.44 61.44-61.44 61.44 27.508 61.44 61.44-27.508 61.44-61.44 61.44z"/></symbol><symbol id="no_scaling" viewBox="0 0 20 20"><path d="M5 13.334h10V6.667H5v6.667Zm-3.333 3.333V3.334h16.667v13.333H1.667Zm1.667-1.666h13.333V5H3.334v10Z"/></symbol><symbol id="nvidia-logo-horiz-rgb-wht-for-screen" viewBox="0 0 82 15.13"><path d="M8.53 4.52V3.15c.13 0 .27-.02.4-.02 3.74-.12 6.19 3.21 6.19 3.21s-2.65 3.68-5.49 3.68c-.41 0-.78-.07-1.11-.18V5.7c1.46.18 1.75.82 2.62 2.28l1.95-1.64s-1.42-1.86-3.82-1.86c-.26 0-.51.02-.75.04m0-4.52v2.04c.13-.01.27-.02.4-.02 5.2-.18 8.59 4.26 8.59 4.26s-3.89 4.73-7.94 4.73c-.37 0-.72-.03-1.05-.09v1.26c.28.04.57.06.87.06 3.77 0 6.5-1.93 9.14-4.21.44.35 2.23 1.2 2.6 1.58-2.51 2.1-8.36 3.8-11.68 3.8-.32 0-.63-.02-.93-.05v1.77h14.34V0H8.53zm0 9.84v1.08c-3.49-.62-4.46-4.25-4.46-4.25s1.67-1.86 4.46-2.16v1.18c-1.46-.18-2.6 1.19-2.6 1.19s.64 2.3 2.61 2.96M2.34 6.51s2.07-3.05 6.2-3.37V2.03C3.96 2.41 0 6.28 0 6.28s2.24 6.48 8.53 7.08v-1.18c-4.62-.58-6.2-5.67-6.2-5.67z" fill="#76b900"/><path d="M48.69 2.86v9.93h2.81V2.86zm-22.07-.01v9.94h2.83V5.24h2.19c.73 0 1.24.18 1.59.55.44.47.62 1.24.62 2.63v4.37h2.74V7.3c0-3.92-2.5-4.45-4.95-4.45H26.6m26.58.01v9.93h4.55c2.42 0 3.22-.4 4.07-1.31.6-.63 1-2.03 1-3.55 0-1.4-.33-2.64-.91-3.42-1.04-1.39-2.54-1.66-4.77-1.66h-3.94zm2.78 2.16h1.21c1.75 0 2.88.79 2.88 2.82s-1.13 2.83-2.88 2.83h-1.21zM44.62 2.86l-2.34 7.87-2.24-7.87h-3.03l3.2 9.93h4.04l3.23-9.93zm19.48 9.93h2.81V2.86H64.1zm7.86-9.93-3.92 9.93h2.77l.62-1.75h4.64l.59 1.75h3l-3.95-9.93zm1.82 1.81 1.7 4.65h-3.45zm7.34 8.42c-.48 0-.88-.39-.88-.88s.39-.88.88-.88.88.39.88.88-.39.88-.88.88zm0-1.58c-.39 0-.7.3-.7.71s.3.71.7.71.7-.3.7-.71-.3-.71-.7-.71zm.16 1.17-.17-.36h-.1v.36h-.21v-.93h.38c.19 0 .31.14.31.29 0 .13-.08.21-.17.25l.2.39zm-.12-.76h-.15v.24h.15c.08 0 .13-.06.13-.12s-.05-.12-.13-.12z" fill="#fff"/></symbol><symbol id="nvidia_logo_green" viewBox="0 0 44 44"><g fill="none"><path fill="#76B900" d="M7 37h30V7H7z"/><path fill="#FFF" d="M13.248 21.027s1.989-2.822 5.96-3.114v-1.024C14.81 17.229 11 20.811 11 20.811s2.157 5.999 8.208 6.548v-1.088c-4.44-.538-5.96-5.244-5.96-5.244Zm5.96 3.079v.997c-3.356-.576-4.287-3.93-4.287-3.93s1.611-1.717 4.287-1.996v1.094h-.005c-1.404-.162-2.501 1.1-2.501 1.1s.614 2.124 2.506 2.735Zm0-9.106v1.889c.13-.01.259-.018.389-.022 5.001-.162 8.26 3.944 8.26 3.944s-3.743 4.377-7.642 4.377c-.358 0-.692-.032-1.007-.085v1.168c.27.032.548.052.838.052 3.629 0 6.253-1.782 8.794-3.891.421.324 2.146 1.113 2.5 1.46-2.416 1.944-8.046 3.512-11.238 3.512-.307 0-.603-.018-.894-.045V29H33V15H19.208Zm0 4.177v-1.264c.128-.009.257-.015.389-.02 3.596-.108 5.956 2.972 5.956 2.972s-2.549 3.405-5.281 3.405c-.394 0-.746-.062-1.064-.164V20.27c1.4.163 1.682.758 2.524 2.107l1.872-1.518s-1.366-1.724-3.67-1.724c-.25 0-.49.017-.726.041Z"/></g></symbol><symbol id="nvidia_symbol" viewBox="0 0 768 768"><path d="M302.933 298.666v-38.4h12.8c106.667-4.267 174.933 89.6 174.933 89.6s-72.533 102.4-153.6 102.4c-12.8 0-21.333 0-29.866-4.267v-115.2c42.667 4.267 46.934 21.333 72.533 64l55.467-46.933s-38.4-51.2-106.667-51.2h-25.6zm0-127.999v55.467h12.8c145.066-4.267 238.934 123.733 238.934 123.733S443.734 482.134 332.801 482.134c-8.534 0-21.333 0-29.867-4.267V512h25.6c106.667 0 183.467-55.467 256-119.467 12.8 8.534 64 34.133 72.533 42.667C588.8 494.933 422.4 541.867 328.534 541.867h-25.6v55.467h401.067V170.667H302.934zm0 277.333v29.867C204.8 460.8 179.2 358.4 179.2 358.4s46.933-51.2 123.733-59.733V332.8c-42.667-4.267-72.533 34.133-72.533 34.133s17.067 64 72.533 81.067zM128 354.134s59.733-85.334 174.933-93.867V230.4C174.933 238.934 64 349.867 64 349.867s64 183.467 238.933 196.267v-34.133C174.933 499.201 128 354.134 128 354.134z"/></symbol><symbol id="open_in_full" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M3 21v-8h2v4.6L17.6 5H13V3h8v8h-2V6.4L6.4 19H11v2H3Z"/></symbol><symbol id="open_in_new" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19 19H5V5h7V3H3v18h18v-9h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/></symbol><symbol id="optimize_all" viewBox="0 0 32 32"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.5 27C21.299 27 26 22.299 26 16.5S21.299 6 15.5 6 5 10.701 5 16.5 9.701 27 15.5 27ZM7.1 16.753l4.063 3.947 1.025-.978-4.063-3.947-1.025.978Zm4.063 0 4.064 3.947 7.623-7.405-1.007-.995-6.616 6.427-3.057-2.97-1.007.996Zm3.039-.978 1.025.978 3.56-3.458-1.025-.977-3.56 3.457Z"/></symbol><symbol id="pan_zoom" viewBox="0 0 24 24"><path d="M16.256 11.498h-1.072V6h-2.976v10.239l-4.007-.85L7 16.619 12.337 22h8.601L22 14.378zM11 6V2H7l1.645 1.645-5 5L2 7v4h4L4.355 9.355l5-5z" fill-rule="evenodd"/></symbol><symbol id="pause" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/></symbol><symbol id="perm_scan_wifi" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"/></symbol><symbol id="person" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4Zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4Z"/></symbol><symbol id="phone_illustration" viewBox="0 0 116 204"><path clip-rule="evenodd" d="M.267.268h115.466v203.466H.267V.268ZM6 6v192h104V6H6Z"/><path clip-rule="evenodd" d="M36 187.134a2.866 2.866 0 0 1 2.867-2.866h40.266a2.866 2.866 0 1 1 0 5.733H38.867A2.867 2.867 0 0 1 36 187.134ZM76 88h-8c0-5.52-4.48-10-10-10s-10 4.48-10 10h-8v32h36V88Zm-18-6c3.32 0 6 2.68 6 6H52c0-3.32 2.68-6 6-6Zm0 20c-5.52 0-10-4.48-10-10h4c0 3.32 2.68 6 6 6s6-2.68 6-6h4c0 5.52-4.48 10-10 10Z"/></symbol><symbol id="photo_camera" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><circle cx="12" cy="12" r="3"/><path d="M9 2 7.17 4H2v16h20V4h-5.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"/></symbol><symbol id="picture_in_picture" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19 7h-8v6h8V7zm4-4H1v17.98h22V3zm-2 16.01H3V4.98h18v14.03z"/></symbol><symbol id="play_arrow" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M8 5v14l11-7L8 5z"/></symbol><symbol id="play_circle_filled" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5v-9l6 4.5-6 4.5z"/></symbol><symbol id="play_circle_outline" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m10 16.5 6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></symbol><symbol id="power" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M16 7V3h-2v4h-4V3H8v4H6v7.5L9.5 18v3h5v-3l3.5-3.51V7h-2z"/></symbol><symbol id="quality_high" viewBox="0 0 24 24"><path d="M21 3H3v18h18V3ZM11 15H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6Zm7-1a1 1 0 0 1-1 1h-.75v1.5h-1.5V15H14a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v4Zm-3.5-.5h2v-3h-2v3Z"/></symbol><symbol id="quiet_mode" viewBox="0 0 24 24"><path d="M3 3h18v18H3V3Zm9.028 16.792c4.243 0 7.764-3.52 7.764-7.764 0-4.333-3.52-7.764-7.764-7.764-4.333 0-7.764 3.521-7.764 7.764 0 4.334 3.521 7.764 7.764 7.764Zm-5.326-8.486c-.542-.361-.723-1.083-.452-1.896.271-.813.722-1.625.722-1.625 0-.09.181-.09.271 0 .632.903 1.264 1.625 1.896 2.076.09.09.18.09.271.181-.361.542-.632 1.264-.632 1.986-.18 0-.361-.09-.542-.09-.541-.09-.993-.361-1.534-.632Zm3.701-2.077c-.09-.18-.18-.36-.09-.632-.18-.45-.18-.993-.18-1.625s.541-1.173 1.354-1.354c.812-.18 1.715-.18 1.715-.18.18 0 .27.18.18.27-.541.994-.812 1.896-.902 2.709v.361h-.452c-.632 0-1.173.18-1.625.451ZM9.05 13.292c.27.632.722 1.174 1.444 1.535-.09.18-.18.27-.36.451a5.26 5.26 0 0 1-1.355.993c-.451.271-1.264.09-1.806-.541-.541-.632-.993-1.445-.993-1.445-.09-.09-.09-.27.09-.27 1.084 0 1.987-.181 2.71-.542.09-.09.18-.09.27-.18Zm4.604 1.535c.09.09.09.27.09.632.181.451.181.993.181 1.625s-.542 1.174-1.354 1.354c-.813.18-1.715.18-1.715.18-.181 0-.271-.18-.181-.27.542-.993.813-1.896.903-2.709v-.36h.451c.632 0 1.174-.181 1.625-.452Zm4.514-5.056c.09.09 0 .271-.18.271-1.084 0-1.986.18-2.709.542-.09.09-.18.09-.27.18a3.187 3.187 0 0 0-1.355-1.535c.09-.18.18-.27.361-.45a5.26 5.26 0 0 1 1.355-.994c.451-.27 1.264-.09 1.805.542.542.632.993 1.444.993 1.444Zm-.812 2.98c.451.27.722 1.083.451 1.895-.27.813-.722 1.625-.722 1.625 0 .09-.18.09-.27 0-.633-.902-1.265-1.625-1.897-2.076-.09-.09-.18-.09-.27-.18.36-.542.631-1.265.631-1.987.18 0 .361 0 .542.09.542.09.993.362 1.535.632Zm-2.709-.723a2.618 2.618 0 1 1-5.236 0 2.618 2.618 0 0 1 5.236 0Z"/></symbol><symbol id="ram" viewBox="0 0 768 768"><path d="M64 256h640v256H64V256zm0-93.867h64v64H64v-64zm576 0h64v64h-64v-64zm-98.133 0h64v64h-64v-64zm-93.867 0h64v64h-64v-64zm-93.866 0h64v64h-64v-64zm-98.134 0h64v64h-64v-64zm-98.133 0h64v64h-64v-64zM64 546.134h64v64H64v-64zm576 0h64v64h-64v-64zm-98.133 0h64v64h-64v-64zm-93.867 0h64v64h-64v-64zm-93.866 0h64v64h-64v-64zm-98.134 0h64v64h-64v-64zm-98.133 0h64v64h-64v-64z"/></symbol><symbol id="ranking_gold" viewBox="0 0 768 768"><path d="M70.4 560V208L384 32l313.6 176zm627.2-243.2v70.4L230.4 649.6l-64-35.2zm-368 390.4L384 736l313.6-176v-60.8z"/></symbol><symbol id="ranking_silver" viewBox="0 0 768 768"><path d="M697.6 387.2V208L384 32 70.4 208v352l160 89.6zm-368 320L384 736l313.6-176v-60.8z"/></symbol><symbol id="ranking_titanium" viewBox="0 0 768 768"><path d="M697.6 316.8v70.4L230.4 649.6l-64-35.2zm-368 390.4L384 736l313.6-176v-60.8zm368-499.2L384 32 70.4 208v352l80-44.8V252.8L384 121.6l233.6 131.2z"/><path d="M262.4 454.4V313.6L384 246.4l121.6 67.2-243.2 140.8z"/></symbol><symbol id="ranking_token" viewBox="0 0 768 768"><path d="m288 438.4 96 54.4 96-54.4V329.6l-96-54.4-96 54.4v108.8z"/><path d="M697.6 208 384 32 70.4 208v352l80-44.8V252.8L384 121.6l233.6 131.2z"/><path d="M70.4 560 384 736l313.6-176V208l-80 44.8v262.4L384 646.4 150.4 515.2z"/></symbol><symbol id="ranking_xp" viewBox="0 0 768 768"><path d="M697.6 208 384 32 70.4 208v352l80-44.8V252.8L384 121.6l233.6 131.2z"/><path d="M70.4 560 384 736l313.6-176V208l-80 44.8v262.4L384 646.4 150.4 515.2z"/><path d="M345.6 278.4h44.8l-67.2 102.4 70.4 112h-51.2l-44.8-73.6-48 73.6h-44.8L275.2 384l-64-105.6h51.2l41.6 67.2 41.6-67.2zM572.8 368c0 19.2-16 35.2-35.2 35.2h-80v86.4H416V278.4h121.6c19.2 0 35.2 16 35.2 35.2V368zm-115.2-3.2h64c6.4 0 9.6-3.2 9.6-9.6v-28.8c0-6.4-3.2-9.6-9.6-9.6h-64v48z"/></symbol><symbol id="readiness_score" viewBox="0 -960 960 960"><path d="M295-119q-36-1-68.5-18.5T165-189q-40-48-62.5-114.5T80-440q0-83 31.5-156T197-723q54-54 127-85.5T480-840q83 0 156 32t127 87q54 55 85.5 129T880-433q0 77-25 144t-71 113q-28 28-59 42.5T662-119q-18 0-36-4.5T590-137l-56-28q-12-6-25.5-9t-28.5-3q-15 0-28.5 3t-25.5 9l-56 28q-19 10-37.5 14.5T295-119Zm2-80q9 0 18.5-2t18.5-7l56-28q21-11 43.5-16t45.5-5q23 0 46 5t44 16l57 28q9 5 18 7t18 2q19 0 36-10t34-30q32-38 50-91t18-109q0-134-93-227.5T480-760q-134 0-227 94t-93 228q0 57 18.5 111t51.5 91q17 20 33 28.5t34 8.5Zm183-281Zm0 120q33 0 56.5-23.5T560-440q0-8-1.5-16t-4.5-16l50-67q10 13 17.5 27.5T634-480h82q-15-88-81.5-144T480-680q-88 0-155 56.5T244-480h82q14-54 57-87t97-33q17 0 32 3t29 9l-51 69q-2 0-5-.5t-5-.5q-33 0-56.5 23.5T400-440q0 33 23.5 56.5T480-360Z"/></symbol><symbol id="record" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15 12c0 1.7-1.3 3-3 3s-3-1.3-3-3 1.3-3 3-3 3 1.4 3 3z"/><path d="m23.3 11.9-2.3-.6C20.6 6.7 16.7 3 12 3c-5 0-9 4-9 9 0 4.4 3.1 8 7.2 8.8.3.7 1 1.2 1.8 1.2 1.1 0 2-.9 2-2s-.9-2-2-2c-.7 0-1.2.3-1.6.8C7.3 18.1 5 15.4 5 12c0-3.9 3.1-7 7-7s7 3.1 7 7c0 1-.2 2-.6 2.8l4.9-2.9z"/></symbol><symbol id="recordings" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M8.8 18.2C6.5 17 5 14.7 5 12c0-3.9 3.1-7 7-7l1.1.1L9 1v2.5C5.6 4.8 3 8.1 3 12c0 4.8 3.8 8.7 8.5 9l-2.7-2.8z"/><path d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/><path d="M15.4 5.8c2.2 1.2 3.8 3.5 3.8 6.2 0 3.9-3.1 7-7 7l-1.2-.1 4.1 4.1v-2.5c3.5-1.2 6-4.6 6-8.5 0-4.8-3.8-8.7-8.5-9l2.8 2.8z"/><path d="M12 6c-3.3 0-6 2.7-6 6s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6zm0 11c-2.8 0-5-2.2-5-5s2.2-5 5-5 5 2.2 5 5-2.2 5-5 5z"/></symbol><symbol id="record_disabled" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9.76 5.42 8.24 3.9a8.89 8.89 0 0 1 3.83-.86c4.69 0 8.58 3.69 8.98 8.28l2.28.59-4.45 2.63-.23-.23c.26-.7.4-1.5.4-2.3 0-3.89-3.09-6.98-6.98-6.98-.82 0-1.59.14-2.31.39Zm2.31 9.59c-1.7 0-2.99-1.3-2.99-2.99 0-.47.1-.91.28-1.3L6.48 7.84a6.928 6.928 0 0 0-1.39 4.18c0 3.39 2.3 6.08 5.39 6.78.4-.5.9-.8 1.6-.8 1.1 0 2 .9 2 2s-.9 2-2 2c-.8 0-1.5-.5-1.8-1.2a8.903 8.903 0 0 1-7.18-8.78c0-2.13.73-4.08 1.95-5.61L3 4.36l1.42-1.42 16.71 16.71-1.42 1.42-6.34-6.34c-.39.18-.83.28-1.3.28Z"/></symbol><symbol id="remote" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1zm-3 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM7.05 6.05l1.41 1.41a5.022 5.022 0 0 1 7.08 0l1.41-1.41C15.68 4.78 13.93 4 12 4s-3.68.78-4.95 2.05zM12 0C8.96 0 6.21 1.23 4.22 3.22l1.41 1.41C7.26 3.01 9.51 2 12 2s4.74 1.01 6.36 2.64l1.41-1.41C17.79 1.23 15.04 0 12 0z"/></symbol><symbol id="remove_circle" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"/></symbol><symbol id="replay" viewBox="0 0 24 24"><path d="M8.8 18.2C6.5 17 5 14.7 5 12c0-3.9 3.1-7 7-7l1.1.1L9 1v2.5C5.6 4.8 3 8.1 3 12c0 4.8 3.8 8.7 8.5 9l-2.7-2.8z"/><path d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/><path d="M15.4 5.8c2.2 1.2 3.8 3.5 3.8 6.2 0 3.9-3.1 7-7 7l-1.2-.1 4.1 4.1v-2.5c3.5-1.2 6-4.6 6-8.5 0-4.8-3.8-8.7-8.5-9l2.8 2.8z"/></symbol><symbol id="replay_disabled" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M19 12.02c0-3.29-2.29-6.05-5.35-6.8l-2.17-2.17c.17-.01.34-.03.51-.03 4.96 0 8.99 4.02 8.99 8.99 0 1.38-.31 2.69-.87 3.86l-1.52-1.52c.26-.73.41-1.51.41-2.33Zm-9.34-6.6L7.99 3.75V.98l4 4 .03.03h-.03c-.82 0-1.6.15-2.33.41Zm11.37 14.23-1.44 1.42-2.02-2.02c-.51.41-1.06.76-1.65 1.05v2.89l-4-4h.29c1.48-.05 2.82-.57 3.93-1.39l-2.88-2.88a3.039 3.039 0 0 1-4.05-4.05L6.38 7.84a6.973 6.973 0 0 0-1.4 4.17c0 3.29 2.28 6.05 5.34 6.8l2.17 2.17c-.17.01-.33.03-.5.03-4.96 0-8.99-4.02-8.99-8.99 0-2.12.73-4.06 1.95-5.6L2.89 4.36l1.42-1.42 16.72 16.71Z"/></symbol><symbol id="reset" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M13 3a9 9 0 0 0-9 9H1l4 3.99L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42A8.954 8.954 0 0 0 13 21a9 9 0 0 0 0-18Z"/></symbol><symbol id="restore_size" viewBox="0 0 24 24"><path d="M2 22V9h4V2h16v13h-4v7H2Zm2-2h12v-7H4v7Zm14-7h2V6H8v3h10v4Z" fill="#fff" fill-opacity=".9"/></symbol><symbol id="retry" viewBox="0 0 24 24"><path d="M12 4V0l5 5-5 5V6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6h2c0 4.42-3.58 8-8 8s-8-3.58-8-8 3.58-8 8-8"/></symbol><symbol id="rewards" viewBox="0 0 768 768"><path d="M448 384v251.733l-64-64-64 64V384H96v320h576V384zm42.666-128C539.732 249.6 576 211.2 576 160c0-53.333-42.667-96-96-96-49.067 0-89.6 38.4-96 85.334-6.4-49.066-49.067-85.333-96-85.333-55.467 0-96 42.667-96 96 0 49.066 38.4 89.6 87.466 96H63.999v96h256v-96h128v96h256v-96H490.666zM320 192h-32c-19.2 0-32-14.933-32-32s17.067-32 32-32c19.2 0 32 17.067 32 32v32zm123.733 0v-32c0-19.2 17.067-32 32-32 19.2 0 32 17.067 32 32s-14.933 32-32 32h-32z"/></symbol><symbol id="rt_arrow" viewBox="0 0 40 40"><g fill="none" fill-rule="evenodd"><rect width="39" height="39" x=".5" y=".5" fill="var(--rt-arrow-rect-fill,#000)" stroke="var(--rt-arrow-rect-stroke,#FFF)" stroke-opacity=".4" opacity=".601" rx="19.5"/><path fill="var(--rt-arrow-polygon-fill,#FFF)" d="m18 14-1.41 1.41L21.17 20l-4.58 4.59L18 26l6-6z"/></g></symbol><symbol id="save" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M17 3H3v18h18V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"/></symbol><symbol id="score_graph_L0" viewBox="0 0 92 55"><path d="M0 45a45 45 0 0 1 13.18-31.82l4.773 4.773A38.25 38.25 0 0 0 6.75 45H0Zm76.82-31.82A45 45 0 0 1 90 45h-6.75a38.25 38.25 0 0 0-11.203-27.047l4.773-4.773Z" fill="#494949"/><path d="M45 0a45 45 0 0 1 31.82 13.18l-4.773 4.773A38.25 38.25 0 0 0 45 6.75V0ZM13.18 13.18A45 45 0 0 1 45 0v6.75a38.25 38.25 0 0 0-27.047 11.203L13.18 13.18Z" fill="#494949"/><path d="M0 45a45 45 0 0 1 13.18-31.82l4.773 4.773A38.25 38.25 0 0 0 6.75 45H0Z" fill="#FE1B0B"/></symbol><symbol id="score_graph_L1" viewBox="0 0 92 55"><path d="M0 45a45 45 0 0 1 13.18-31.82l4.773 4.773A38.25 38.25 0 0 0 6.75 45H0Zm76.82-31.82A45 45 0 0 1 90 45h-6.75a38.25 38.25 0 0 0-11.203-27.047l4.773-4.773Z" fill="#494949"/><path d="M45 0a45 45 0 0 1 31.82 13.18l-4.773 4.773A38.25 38.25 0 0 0 45 6.75V0ZM13.18 13.18A45 45 0 0 1 45 0v6.75a38.25 38.25 0 0 0-27.047 11.203L13.18 13.18Z" fill="#494949"/><path d="M13.18 13.18A45 45 0 0 1 45 0v6.75a38.25 38.25 0 0 0-27.046 11.203L13.18 13.18Z" fill="#FFB43E"/></symbol><symbol id="score_graph_L2" viewBox="0 0 92 55"><path d="M0 45a45 45 0 0 1 13.18-31.82l4.773 4.773A38.25 38.25 0 0 0 6.75 45H0Zm76.82-31.82A45 45 0 0 1 90 45h-6.75a38.25 38.25 0 0 0-11.203-27.047l4.773-4.773Z" fill="#494949"/><path d="M45 0a45 45 0 0 1 31.82 13.18l-4.773 4.773A38.25 38.25 0 0 0 45 6.75V0ZM13.18 13.18A45 45 0 0 1 45 0v6.75a38.25 38.25 0 0 0-27.047 11.203L13.18 13.18Z" fill="#494949"/><path d="M45 0a45 45 0 0 1 31.82 13.18l-4.773 4.773A38.25 38.25 0 0 0 45 6.75V0Z" fill="#A3DC2B"/></symbol><symbol id="score_graph_L3" viewBox="0 0 92 55"><path d="M0 45a45 45 0 0 1 13.18-31.82l4.773 4.773A38.25 38.25 0 0 0 6.75 45H0Zm76.82-31.82A45 45 0 0 1 90 45h-6.75a38.25 38.25 0 0 0-11.203-27.047l4.773-4.773Z" fill="#494949"/><path d="M45 0a45 45 0 0 1 31.82 13.18l-4.773 4.773A38.25 38.25 0 0 0 45 6.75V0ZM13.18 13.18A45 45 0 0 1 45 0v6.75a38.25 38.25 0 0 0-27.047 11.203L13.18 13.18Z" fill="#494949"/><path d="M76.82 13.18A45 45 0 0 1 90 45h-6.75a38.25 38.25 0 0 0-11.203-27.047l4.773-4.773Z" fill="#76B900"/></symbol><symbol id="search" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></symbol><symbol id="send" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"/></symbol><symbol id="settings" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m19.44 12.99-.01.02c.04-.33.08-.67.08-1.01 0-.34-.03-.66-.07-.99l.01.02 2.44-1.92-2.43-4.22-2.87 1.16.01.01c-.52-.4-1.09-.74-1.71-1h.01L14.44 2H9.57l-.44 3.07h.01c-.62.26-1.19.6-1.71 1l.01-.01-2.88-1.17-2.44 4.22 2.44 1.92.01-.02c-.04.33-.07.65-.07.99 0 .34.03.68.08 1.01l-.01-.02-2.1 1.65-.33.26 2.43 4.2 2.88-1.15-.02-.04c.53.41 1.1.75 1.73 1.01h-.03L9.58 22h4.85s.03-.18.06-.42l.38-2.65h-.01c.62-.26 1.2-.6 1.73-1.01l-.02.04 2.88 1.15 2.43-4.2s-.14-.12-.33-.26l-2.11-1.66zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"/></symbol><symbol id="share" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92z"/></symbol><symbol id="shield_tv" viewBox="0 0 768 768"><path d="M533.832 482.28 223.68 292.032 45.912 592.416h422.736zM723.84 161.232H56.448l489.624 300.312zM203.16 279.456 31.872 174.384v394.464zm363.456 194.688 169.872 104.184v-391.2zm-12.264 20.712-57.696 97.536H713.4l-159.048-97.536zm-6.12 73.392V537.72h39.456v30.528h-39.456z"/></symbol><symbol id="shopping" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M21 6h-4c0-2.76-2.24-5-5-5S7 3.24 7 6H3v16h18V6zm-9-3c1.66 0 3 1.34 3 3H9c0-1.66 1.34-3 3-3zm0 10c-2.76 0-5-2.24-5-5h2c0 1.66 1.34 3 3 3s3-1.34 3-3h2c0 2.76-2.24 5-5 5z"/></symbol><symbol id="signal_wifi_off" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M23.64 7c-.45-.34-4.93-4-11.64-4-1.32 0-2.55.14-3.69.38L18.43 13.5 23.64 7zM3.41 1.31 2 2.72l2.05 2.05C1.91 5.76.59 6.82.36 7L12 21.5l3.91-4.87 3.32 3.32 1.41-1.41L3.41 1.31z"/></symbol><symbol id="smartphone" viewBox="0 0 24 24"><path clip-rule="evenodd" d="M7 3h10v1H7V3Zm0 3v12h10V6H7Zm10 14H7v1h10v-1ZM5 1h14v22H5V1Z"/></symbol><symbol id="social_share" viewBox="0 0 16 16"><path d="M8.5 8.068c-.38 0-.72.15-.98.387L3.955 6.37A1.65 1.65 0 0 0 4 6.021c0-.121-.02-.237-.045-.352L7.48 3.605c.27.251.625.407 1.02.407.83 0 1.5-.673 1.5-1.506a1.501 1.501 0 1 0-3 0c0 .12.02.236.045.351L3.52 4.921a1.49 1.49 0 0 0-1.02-.407c-.83 0-1.5.673-1.5 1.506s.67 1.506 1.5 1.506c.395 0 .75-.156 1.02-.407l3.56 2.089a1.42 1.42 0 0 0-.04.326c0 .808.655 1.466 1.46 1.466.805 0 1.46-.658 1.46-1.466 0-.808-.655-1.466-1.46-1.466Z"/></symbol><symbol id="sort" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"/></symbol><symbol id="space_bar" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M18 9v4H6V9H4v6h16V9z"/></symbol><symbol id="star_circle" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23L16.23 18z"/></symbol><symbol id="star_filled" viewBox="0 0 24 24"><path d="m22 9.2-7.2-.6L12 2 9.2 8.6 2 9.2 7.5 14l-1.6 7 6.2-3.7 6.2 3.7-1.6-7L22 9.2z"/></symbol><symbol id="steam_logo_icon" viewBox="0 0 93 93"><path fill-rule="evenodd" d="M46.422 1C71.594 1 92 21.37 92 46.5 92 71.629 71.594 92 46.422 92 25.556 92 7.979 78 2.569 58.9l17.471 7.21c1.184 5.893 6.405 10.343 12.65 10.343 7.114 0 12.901-5.777 12.901-12.88 0-.203-.006-.408-.014-.61l15.494-11.037c.13.004.26.007.39.007 9.478 0 17.19-7.7 17.19-17.16 0-9.462-7.712-17.16-17.19-17.16-9.479 0-17.19 7.698-17.19 17.16l.003.222-10.865 15.719a12.834 12.834 0 0 0-7.98 2.22L1 42.85C2.864 19.43 22.479 1 46.422 1ZM29.263 54.515a9.665 9.665 0 0 1 7.136.108 9.612 9.612 0 0 1 5.229 5.243 9.585 9.585 0 0 1-.015 7.396c-2.054 4.92-7.735 7.255-12.66 5.206a9.639 9.639 0 0 1-4.99-4.737l5.6 2.309c3.634 1.512 7.808-.204 9.322-3.831a7.112 7.112 0 0 0-3.838-9.306Zm32.198-31.177c6.316 0 11.454 5.13 11.454 11.435 0 6.304-5.138 11.433-11.454 11.433-6.315 0-11.454-5.13-11.454-11.433 0-6.304 5.139-11.435 11.454-11.435Zm.02 2.827c-4.752 0-8.605 3.844-8.605 8.588 0 4.743 3.853 8.588 8.604 8.588 4.752 0 8.604-3.845 8.604-8.588 0-4.744-3.852-8.588-8.604-8.588Z"/></symbol><symbol id="stop" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M6 6h12v12H6V6z"/></symbol><symbol id="storage" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"/></symbol><symbol id="sword" viewBox="0 0 24 24"><path d="m11.05 15.97 10.23-9.55L22 2l-4.42.72-9.55 10.23-1.6-1.59-1.31 1.31 6.21 6.21 1.31-1.31zm-8.04 5.02c-.83-.83-.83-2.19 0-3.02l2.65-2.65 3.02 3.02-2.65 2.65c-.83.83-2.18.83-3.02 0Z"/></symbol><symbol id="sync" viewBox="0 0 24 24"><path fill="none" d="M.01 0h24v24h-24V0z"/><path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46A7.93 7.93 0 0 0 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74A7.93 7.93 0 0 0 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"/></symbol><symbol id="tablet" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0zm0 0h24v24H0V0z"/><path d="M21 0H3v24h18V0zm-7 22h-4v-1h4v1zm5.25-3H4.75V3h14.5v16z"/></symbol><symbol id="tag" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M22.83 12.99 11.83 2H2v9.83l10.99 10.99 9.84-9.83zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7z"/></symbol><symbol id="text_snippet" viewBox="0 -960 960 960"><path d="M200-200h560v-367L567-760H200v560Zm0 80q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h400l240 240v400q0 33-23.5 56.5T760-120H200Zm80-160h400v-80H280v80Zm0-160h400v-80H280v80Zm0-160h280v-80H280v80Zm-80 400v-560 560Z"/></symbol><symbol id="thick_arrow_dash_up" viewBox="0 0 24 24"><path d="M7.027 14.513H0L12.009 0 24 14.513h-6.995v3.44H7.027Zm-.001 5.803h9.978v3.495H7.026Z" fill="#fff"/></symbol><symbol id="thick_arrow_up" viewBox="0 0 24 24"><path fill="#fff" d="M7.027 14.513H0L12.009 0 24 14.513h-6.995V24H7.027v-9.487z"/></symbol><symbol id="time" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2ZM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8Zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67V7Z"/></symbol><symbol id="touch2" viewBox="0 0 24 24"><path d="M20 22H9.027l-6.35-8.075 1.6-1.675L7.5 14.2V5h2.025v6H20v11ZM4.177 8.5A4.935 4.935 0 0 1 3.5 6c0-1.383.487-2.563 1.462-3.538C5.938 1.487 7.117 1 8.501 1c1.383 0 2.562.488 3.537 1.462.975.975 1.463 2.155 1.463 3.538a4.938 4.938 0 0 1-.675 2.5l-1.725-1c.133-.233.233-.47.3-.713.066-.241.1-.504.1-.787 0-.833-.292-1.542-.875-2.125A2.893 2.893 0 0 0 8.5 3c-.834 0-1.542.292-2.125.875A2.893 2.893 0 0 0 5.5 6c0 .283.033.546.1.787.066.242.166.48.3.713l-1.725 1Z" fill="#fff"/></symbol><symbol id="tune" viewBox="0 0 24 24"><path d="M3 17v2h6v-2H3ZM3 5v2h10V5H3Zm10 16v-2h8v-2h-8v-2h-2v6h2ZM7 9v2H3v2h4v2h2V9H7Zm14 4v-2H11v2h10Zm-6-4h2V7h4V5h-4V3h-2v6Z"/></symbol><symbol id="tv" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M4 5h16v12H4V5ZM2 19V3h20v16h-6v2H8v-2H2Z" fill="#fff" fill-opacity=".9"/></symbol><symbol id="tv_illustration" viewBox="0 0 238 163"><path clip-rule="evenodd" d="M.267.268h237.466v147.466H.267V.268ZM6 6v136h226V6H6Zm61 151.268h106v5.733H67v-5.733Z"/><path clip-rule="evenodd" d="M135.8 66.002c-.4-2-2.8-4-4.8-4 0-1.2-.8-2-2-2h-4c-1.2 0-2 .8-2 2h-8c0-1-1-2-2-2h-4c-1.2 0-2 .8-2 2-2 0-4.4 1.8-4.8 4-.4 2-3.2 14-3.2 18 0 2 2 4 4 4s4-2 6-4 2-2.2 4-4c2-2 2-2 4-2h4c2 0 2 0 4 2l4 4c2 2 4 4 6 4s4-2 4-4c0-3.8-2.8-16-3.2-18Zm-20.8 5.4h-2.6v2.6h-2.8v-2.6H107v-2.8h2.6v-2.6h2.8v2.6h2.6v2.8Zm12 2.6c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4Z"/></symbol><symbol id="upload" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M19 12V5H5v7H3V3h18v9h-2Zm-6-.67 2.59 2.58L17 12.5l-5-5-5 5 1.41 1.41L11 11.33V21h2v-9.67Z"/></symbol><symbol id="video" viewBox="0 0 24 24"><path d="m18 4 2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H2v16h20V4z"/></symbol><symbol id="videocam" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M17 10.5V6H3v12h14v-4.5l4 4v-11l-4 4z"/></symbol><symbol id="videocam_off" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M21 16.61V6.5l-4 4V6h-6.61zM3.41 1.86 2 3.27 4.73 6H3v12h13.73l3 3 1.41-1.41z"/></symbol><symbol id="video_off" viewBox="0 0 32 32"><path fill-rule="evenodd" clip-rule="evenodd" d="M28 22.147V8.667L22.667 14V8h-8.814L28 22.147ZM4.547 2.48l-1.88 1.88L6.307 8H4v16h18.307l4 4 1.88-1.88L4.547 2.48Z"/></symbol><symbol id="view_detailed" viewBox="0 0 768 768"><path d="M320 160v192h350.016V160zM128 576h160.992V160H128zm192 0h350.016V384H320v192z"/></symbol><symbol id="view_grid" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z"/></symbol><symbol id="view_summary" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M4 18h17v-6H4v6zM4 5v6h17V5H4z"/></symbol><symbol id="volume" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/></symbol><symbol id="volume_off" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M4.34 2.93 2.93 4.34 7.29 8.7 7 9H3v6h4l5 5v-6.59l4.18 4.18c-.65.49-1.38.88-2.18 1.11v2.06a8.94 8.94 0 0 0 3.61-1.75l2.05 2.05 1.41-1.41L4.34 2.93zM19 12c0 .82-.15 1.61-.41 2.34l1.53 1.53c.56-1.17.88-2.48.88-3.87 0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zm-7-8-1.88 1.88L12 7.76zm4.5 8A4.5 4.5 0 0 0 14 7.97v1.79l2.48 2.48c.01-.08.02-.16.02-.24z"/></symbol><symbol id="vr" viewBox="0 0 24 24"><path d="M3 8.5v5l-1-1v-3l1-1zm18 0v5l1-1v-3l-1-1zm-3-1.6c-1.3-.3-2-.4-6-.4-3 0-4.7.1-6 .4-1 .3-2 .6-2 1.6v6c0 1 3 3 4 3 2 0 3-1 4-1s2 1 4 1c1 0 4-2 4-3v-6c0-1-1-1.3-2-1.6zm-9.5 6.6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm7 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/></symbol><symbol id="warning" viewBox="0 0 768 768"><path d="M416 448h-64V320h64zm0 128h-64v-64h64zM32 672h704L384 64 32 672z"/></symbol><symbol id="wifi" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0zm0 0h24v24H0V0z"/><path d="m1 9 2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8 3 3 3-3a4.237 4.237 0 0 0-6 0zm-4-4 2 2a7.074 7.074 0 0 1 10 0l2-2C15.14 9.14 8.87 9.14 5 13z"/></symbol><symbol id="wrench" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12.09 2.91C10.08.9 7.07.49 4.65 1.67l4.34 4.34-3 3-4.34-4.34C.48 7.1.89 10.09 2.9 12.1a6.507 6.507 0 0 0 6.89 1.48l9.82 9.82 3.71-3.71-9.78-9.79c.92-2.34.44-5.1-1.45-6.99z"/></symbol><symbol id="wrench_circle" viewBox="0 0 32 32"><path d="m12.7 14.566-3.133-3.133a5.704 5.704 0 0 0-.417 1.1c-.1.378-.15.756-.15 1.133 0 1.267.45 2.35 1.35 3.251.9.9 1.983 1.35 3.25 1.35A4.412 4.412 0 0 0 15.166 18l5.034 5 2.8-2.8-5-5.034c.089-.2.155-.428.2-.684.044-.255.067-.549.067-.882 0-1.267-.45-2.35-1.35-3.25-.9-.9-1.984-1.35-3.25-1.35-.378 0-.756.05-1.134.15-.378.1-.744.239-1.1.416l3.133 3.134-1.866 1.867ZM16 29.334c-1.845 0-3.578-.35-5.2-1.05a13.456 13.456 0 0 1-4.234-2.85c-1.2-1.2-2.15-2.61-2.849-4.233-.7-1.622-1.05-3.356-1.05-5.2 0-1.845.35-3.578 1.05-5.2a13.47 13.47 0 0 1 2.85-4.234c1.2-1.2 2.61-2.15 4.233-2.85 1.622-.7 3.355-1.05 5.2-1.05 1.844 0 3.578.35 5.2 1.05 1.622.7 3.033 1.65 4.233 2.85a13.47 13.47 0 0 1 2.85 4.234c.7 1.622 1.05 3.355 1.05 5.2 0 1.844-.35 3.578-1.05 5.2a13.456 13.456 0 0 1-2.85 4.233c-1.2 1.2-2.61 2.15-4.233 2.85-1.622.7-3.356 1.05-5.2 1.05Z" fill="currentColor"/></symbol></svg>')),Promise.resolve()}(vt,en)},deps:[f.tp,P.up],multi:!0},xs={showDelay:0,hideDelay:0,touchendHideDelay:1500,disableTooltipInteractivity:!0};let qa=(()=>{class vt{static{this.\u0275fac=function(kt){return new(kt||vt)}}static{this.\u0275mod=d.$C({type:vt})}static{this.\u0275inj=d.G2t({providers:[Xl,{provide:S.di,useValue:{...new S.ru,restoreFocus:!1}},{provide:y.Ox,useValue:{...new y.J3,restoreFocus:!1}},{provide:Jo.sM,useValue:xs}],imports:[n.MD,v.YF,l.q1,Vs,_.h,i.f,O.w,r.iI,Ws.Cn,a.E9,nl,J.X,We,xe.t,c.G,lt.L,sa.oV,no,xa,ka,qi,Qn,$t,we,ri,En,yr,Ne,Ta,ir]})}}return vt})();var dl=s(13090);s(44968);var ml=s(6360);let El=(()=>{class vt{constructor(Ee,kt){this.matDialog=Ee,this.focusManager=kt}open(Ee,kt){return this.focusManager.restoreFocusAfterClosed(()=>this.matDialog.open(Ne,{data:Ee,autoFocus:!1,maxWidth:"100vw",panelClass:"dialogPaddingRemove",height:"100%",width:"100%"}),kt)}static{this.\u0275fac=function(kt){return new(kt||vt)(d.KVO(S.bZ),d.KVO(fi.c))}}static{this.\u0275prov=d.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"})}}return vt})();var Jl=s(79858);s(6006),s(49219)},68868:(Bt,z,s)=>{"use strict";s.d(z,{p:()=>D,M:()=>a});var n=s(80583),l=s(36877),d=s(43848),v=s(27731),S=s(16229),y=s(8619),f=s(72147),O=s(10174),P=s(73180),_=s(83915),i=s(55833),r=s(53461),a=function(I){return I.Keyboard="Keyboard",I.Gamepad="Gamepad",I.Mouse="Mouse",I.Touch="Touch",I}(a||{}),c=s(58527),m=s(99469),M=s(48852);let D=(()=>{class I{get lastFocusOrigin(){return this.focusOriginModality.focusOrigin}get lastInputModality(){return this.focusOriginModality.inputModality}get inputModalityChanged$(){return this.inputModalityChangedSubject.asObservable().pipe((0,y.p)(V=>this.monitoringActivated))}constructor(V,T,N){this.gamepadService=T,this.ngZone=N,this.focusOriginModality={},this.monitoringActivated=!1,this.inputModalityChangedSubject=new n.B7,this.logger=V.getLogger("InputModalityService"),this.ngZone.runOutsideAngular(()=>{const L=(0,l.R)(document,"keydown",{capture:!0}).pipe((0,f.n)(B=>"GoBack"===B.key?(0,d.of)(a.Touch):B.isTrusted?(0,d.of)(a.Keyboard):v.t)),E=this.gamepadService.isAnyGamepadInUse$.pipe((0,y.p)(B=>!0===B),(0,O.u)(a.Gamepad)),g=(0,l.R)(document,"mousemove",{capture:!0}).pipe((0,P.c)(50),(0,O.u)(a.Mouse)),R=(0,l.R)(document,"pointerdown",{capture:!0}).pipe((0,y.p)(B=>"mouse"===B.pointerType||"touch"===B.pointerType),(0,_.T)(B=>"mouse"===B.pointerType?a.Mouse:a.Touch));this.updateMonitoringActivationState(!0),(0,S.h)(L,E,R,g).pipe((0,i.t)(1),(0,r.F)()).subscribe(B=>this.inputModalityChangedSubject.next(B))})}startMonitoring(){this.logger.info("start monitoring"),this.focusOriginModalitySubscription?.unsubscribe(),this.focusOriginModalitySubscription=this.ngZone.runOutsideAngular(()=>this.inputModalityChanged$.pipe((0,_.T)(V=>{let T;switch(V){case a.Keyboard:case a.Gamepad:T="keyboard";break;case a.Mouse:T="mouse";break;case a.Touch:T="touch"}return{focusOrigin:T,inputModality:V}})).subscribe(V=>this.focusOriginModality=V))}stopMonitoring(){this.logger.info("stop monitoring"),this.focusOriginModalitySubscription?.unsubscribe(),this.focusOriginModalitySubscription=void 0,this.focusOriginModality={}}updateMonitoringActivationState(V){this.monitoringActivated=V}static{this.\u0275fac=function(T){return new(T||I)(c.KVO(m.J6),c.KVO(M.bi),c.KVO(c.SKi))}}static{this.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}}return I})()},78812:(Bt,z,s)=>{"use strict";s.d(z,{P6:()=>I,Rg:()=>r,XZ:()=>J,CV:()=>D,bC:()=>R,wx:()=>L,Xj:()=>B,FE:()=>E,EU:()=>a,i1:()=>ue,YH:()=>U,H0:()=>Q,_Y:()=>ie,oX:()=>m});var n=s(85735),l=s(3496),d=s(93181),v=s(43848),S=s(12532),y=s(75707),f=s(83915),O=s(14714),P=s(91384),_=s(26875),i=s(99469),r=function(A){return A.Full="Full",A.None="None",A.Temp="Temp",A}(r||{}),a=function(A){return A.Required="required",A.Functional="functional",A.Technical="technical",A.Behavioral="behavioral",A}(a||{}),c=function(A){return A.Anonymous="anonymous",A.DeviceOnly="deviceOnly",A.DevicePreferred="devicePreferred",A.UserPreferred="userPreferred",A.UserRequired="userRequired",A}(c||{}),m=function(A){return A.Undefined="undefined",A}(m||{}),M=function(A){return A.EventsCommonStore="eventsCommonStore",A.EventsDetailStore="eventsDetailStore",A.EventsDetailStoreRequired="eventsDetailStoreRequired",A.EventsDetailStoreTechnical="eventsDetailStoreTechnical",A.EventsDetailStoreBehavioral="eventsDetailStoreBehavioral",A.UserDataConsentStore="userDataConsentStore",A}(M||{}),D=function(A){return A.USER_ID="USER_ID",A.DEVICE_ID="DEVICE_ID",A.SESSION_ID="SESSION_ID",A}(D||{}),I=function(A){return A.SharedStorage="SharedStorage",A.LocalStorage="LocalStorage",A.AbHub="AbHub",A.IndexedDb="IndexedDb",A}(I||{});class U{constructor(me){this.parameters=me,this.ts=(new Date).toISOString()}}const T=new U({}),N={clientId:"{CLIENTID}",clientVer:"{CLIENTVER}",eventSchemaVer:"{EVENTSCHEMAVER}",eventSysVer:"0.17.0",deviceId:m.Undefined,userId:m.Undefined,externalUserId:m.Undefined,idpId:m.Undefined,sessionId:m.Undefined,deviceOS:m.Undefined,deviceOSVersion:m.Undefined,deviceType:m.Undefined,deviceModel:m.Undefined,deviceMake:m.Undefined,clientType:m.Undefined,clientVariant:m.Undefined,sentTs:"",events:[T],integrationId:m.Undefined,browserType:m.Undefined,productName:m.Undefined,productVersion:m.Undefined},L={required:r.None,functional:r.None,technical:r.None,behavioral:r.None},E={required:r.Temp,functional:r.Temp,technical:r.None,behavioral:r.None},R={required:r.Full,functional:r.Full,technical:r.None,behavioral:r.None},B={required:r.Full,functional:r.Full,technical:r.Full,behavioral:r.None};var X=function(A){return A.Ok="OK",A.InvalidInfoForEventType="INVALID_INFO_FOR_EVENT_TYPE",A.UnknownEventType="UNKNOWN_EVENT_TYPE",A.UnProcessed="UNPROCESSED",A.ExperimentAlreadyActive="EXPERIMENT_ALREADY_ACTIVE",A.FunctionalConsentNotReceived="FUNCTIONAL_CONSENT_NOT_RECEIVED",A.LocaleSwitchInProgress="LOCALE_SWITCH_INPROGRESS",A}(X||{});const J={userConsent:L,userId:"",externalUserId:"",idpId:""},ie=1e3;var ve=s(58527);let ue=(()=>{class A{static{this.\u0275fac=function(G){return new(G||A)}}static{this.\u0275prov=ve.jDH({token:A,factory:A.\u0275fac})}}return A})();var se=s(6478),Z=s(5798);let Se=(()=>{class A{constructor(ne,G,W){this.sdkConfig=ne,this.endpointFactory=G,this.distributedTracingUtilService=W,this.eventServerEndpoint=this.endpointFactory.createEndpoint({headers:{"Content-Type":"application/json"},config:{timeout:this.sdkConfig.defaultTimeout,timeBetweenRetries:this.sdkConfig.defaultTimeBetweenRetries,maxRetries:this.sdkConfig.defaultRetries},reportRequest:!1})}generateUrl(ne){return this.sdkConfig.server+"/"+this.sdkConfig.version+ne}sendEvent(ne,G,W,$){null!==ne&&ne.hasOwnProperty("sync")&&delete ne.sync;const Pe={body:G,headers:{"Content-Type":"application/json"},params:{immediateRequest:JSON.stringify(W)}},Fe=this.eventServerEndpoint.makeRequestEx("POST",this.generateUrl("/events/json"),Pe);return this.distributedTracingUtilService.handleHttpEndpointSpan(Fe,Pe,se.pB.SendTelemetryEvent,$)}sendEventviaBeacon(ne,G,W,$){ne?.hasOwnProperty("sync")&&delete ne.sync;const le=new Blob([G],{type:"text/plain"});return navigator.sendBeacon(this.generateUrl("/events/json"),le),(0,v.of)(!0)}setServer(ne){return this.sdkConfig.server=ne,this.getServerLocale(null)}getServerLocale(ne){const G=ne||this.sdkConfig.server;return G&&""!==G?G.endsWith(".cn")?"china":"global":"unknown"}static{this.\u0275fac=function(G){return new(G||A)(ve.KVO(ue),ve.KVO(Z.t),ve.KVO(se.Z1))}}static{this.\u0275prov=ve.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})(),Ce=(()=>{class A{constructor(){this.windowLocalStorage=null,i.zk.isBrowserPlatform()&&(this.windowLocalStorage=window.localStorage)}getWlsItem(ne,G){return this.windowLocalStorage&&JSON.parse(this.windowLocalStorage.getItem(ne+G))}setWlsItem(ne,G,W){return this.windowLocalStorage&&this.windowLocalStorage.setItem(ne+G,JSON.stringify(W))}removeWlsItem(ne,G){return this.windowLocalStorage&&this.windowLocalStorage.removeItem(ne+G)}getLength(){return this.windowLocalStorage&&this.windowLocalStorage.length}getKey(ne){return this.windowLocalStorage&&this.windowLocalStorage.key(ne)}clearall(ne){this.windowLocalStorage&&Object.keys(this.windowLocalStorage)?.forEach(G=>{G?.startsWith(ne)&&this.windowLocalStorage.removeItem(G)})}static{this.\u0275fac=function(G){return new(G||A)}}static{this.\u0275prov=ve.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})(),Be=(()=>{class A{getCommonData$(){return this.commonDataSubject.asObservable()}get registeredErrorCallbackVal(){return this.registeredErrorCallback}get defaultErrorCallbackVal(){return this.defaultErrorCallback}get cleanUpBacklogEventsVal(){return this.cleanUpBacklogEvents}get currentUserConsentUpdatedVal(){return this.currentUserConsentUpdated}setDefaultConsentVal(ne){this.defaultConsent=ne,this.deviceConsent=ne}setSendEventsInProgressVal(ne){this.sendEventsInProgress=ne}constructor(ne,G,W,$,le,Pe,Fe){this.config=ne,this.eventSdkService=G,this.logService=W,this.dbCacheService=$,this.dbService=le,this.networkStatusService=Pe,this.windowLocalStorage=Fe,this.commonData=N,this.defaultConsent=L,this.deviceConsent=L,this.deviceConsentUpdated=!1,this.currentUserConsent=L,this.currentUserConsentUpdated=!1,this.currentUserId=m.Undefined,this.syncedUserConsentInfo=!1,this.registeredErrorCallback=this.defaultErrorCallback,this.cleanUpBacklogEvents=!1,this.sendBacklogEventsInitiated=!1,this.sendEventsInProgress=!1,this.eventsInBatch=!1,this.newEventInDb=!1,this.sendBatchEventsInProgress={functional:!1,technical:!1,behavioral:!1,required:!1},this.cleanBacklogEventsInProgress=[],this.cleanWlsBacklogEventsInProgress=[],this.customParams={platform:!1},this.browserPlatform=!1,this.isTelemetryDisabled=!1,this.commonDataSubject=new n.m(1),this.serverLocale="unknown",this.purgeInitiated=!1,this.purgeInProgress={commonDbIsClear:!1,functionalDbIsClear:!1,technicalDbIsClear:!1,behavioralDbIsClear:!1,requiredDbIsClear:!1,wlsDbIsClear:!1},this.setErrorCallback=At=>{this.registeredErrorCallback=At},this.logger=this.logService.getLogger("JsEventsService"),this.commonData.clientId=this.config.clientId,this.commonData.eventSchemaVer=this.config.schemaVersion,this.sendInterval$=(0,l.O)(0,this.config.msBetweenSendRequest),this.logger.info("initialize",ne),this.networkStatusService.onlineStatusChanged.subscribe(this.onOnlineStateChanged.bind(this)),this.browserPlatform=i.zk.isBrowserPlatform(),this.serverLocale=this.eventSdkService.getServerLocale(null)}defaultErrorCallback(ne){this.logger.error("message:",ne&&ne.message?ne.message:"Unknown error")}updateServer(ne){const G=this.eventSdkService.setServer(ne);this.onLocationStateChanged(G)}sendToServerEndpoint(ne,G){const W=ne.events.slice(0);ne.eventsToBeSent=ne.events.length;const $=[];for(;0!==ne.eventsToBeSent;){let le;this.logger.event("eventsToBeSent",ne.eventsToBeSent.toString()),ne.eventsToBeSent>this.config.maxEventsPerRequest?(le=W.slice(0,this.config.maxEventsPerRequest),W.splice(0,this.config.maxEventsPerRequest)):le=W,ne.eventsToBeSent=ne.eventsToBeSent-le.length;const Pe=ne.commonData;Pe.events=le,Pe.sentTs=(new Date).toISOString();const Fe=JSON.stringify(Pe);this.logger.info("events request",Fe),$.push(this.eventSdkService.sendEvent(this.customParams,Fe,G))}return(0,d.p)($)}updateCleanupState(ne,G,W){let $=!1,le=0;this.cleanBacklogEventsInProgress.forEach(Pe=>{Pe.recordKey===ne&&($=!0,Pe.functionalDbIsClear=G===a.Functional?W:Pe.functionalDbIsClear,Pe.technicalDbIsClear=G===a.Technical?W:Pe.technicalDbIsClear,Pe.behavioralDbIsClear=G===a.Behavioral?W:Pe.behavioralDbIsClear,Pe.requiredDbIsClear=G===a.Required?W:Pe.requiredDbIsClear,Pe.functionalDbIsClear&&Pe.technicalDbIsClear&&Pe.behavioralDbIsClear&&Pe.requiredDbIsClear&&(this.dbService.getGlobalStore(M.EventsCommonStore).removeItem(ne).subscribe(),this.cleanBacklogEventsInProgress.splice(le,1)),le++)}),!1===$&&this.cleanBacklogEventsInProgress.push({recordKey:ne,functionalDbIsClear:G===a.Functional&&W,technicalDbIsClear:G===a.Technical&&W,behavioralDbIsClear:G===a.Behavioral&&W,requiredDbIsClear:G===a.Required&&W})}getConsentedEvents(ne,G,W,$){const le=[];return $&&$.events&&$.events.length>0&&$.events.forEach(Pe=>{const Fe=this.eventHasConsent(Pe.personalization,ne,G,W);if(Fe===r.Full||Fe===r.Temp){const At=(0,_.extend)({},this.updatePersonalizationQualifiers(Pe));le.push(At)}else this.logger.event("Event excluded from send due to no consent (to be discarded later): ",Pe,ne)}),le}sendBacklogEventsDetailToServer(ne,G,W,$,le,Pe){return this.logger.event("attempting to send backlog events for dbName:",W," userconsent: ",G,"key: ",le),this.dbService.getGlobalStore(W).getItem(le).pipe((0,y.ZZ)(Fe=>{let At={commonData:{},events:[],eventsToBeSent:0};const Le=$e=>{if(this.logger.event("jsEvents backlog response",$e,At.eventsToBeSent),0===At.eventsToBeSent)return this.dbService.getGlobalStore(W).removeItem(le).subscribe(),(0,v.of)(!0)},Et=$e=>{this.logger.error("Failed to send backlog events",$e.status),this.logger.event("Failed to send backlog events for :",le,W,".ErrorInfo: status",$e.status)};return At={commonData:(0,_.merge)({},Pe.common),events:this.getConsentedEvents($,ne,G,Fe),eventsToBeSent:0},At.commonData&&At.events&&At.events.length>0?this.sendToServerEndpoint(At,!1).pipe((0,f.T)($e=>{$e.forEach(Ze=>{Le(Ze)})}),(0,O.W)($e=>(Et($e),S.w))):(this.updateCleanupState(le,$,!0),this.dbService.getGlobalStore(W).removeItem(le).subscribe(),(0,v.of)(!0))}),(0,O.W)(Fe=>(this.logger.event("detail data not available for backlog key",le),this.dbService.getGlobalStore(W).removeItem(le).subscribe(),(0,v.of)(!0))))}updateWlsCleanupState(ne,G,W){let $=!1,le=0;this.cleanWlsBacklogEventsInProgress.forEach(Pe=>{Pe.recordKey===ne&&($=!0,Pe.functionalDbIsClear=G===a.Functional?W:Pe.functionalDbIsClear,Pe.technicalDbIsClear=G===a.Technical?W:Pe.technicalDbIsClear,Pe.behavioralDbIsClear=G===a.Behavioral?W:Pe.behavioralDbIsClear,Pe.requiredDbIsClear=G===a.Required?W:Pe.requiredDbIsClear,Pe.functionalDbIsClear&&Pe.technicalDbIsClear&&Pe.behavioralDbIsClear&&Pe.requiredDbIsClear&&(this.windowLocalStorage.removeWlsItem(M.EventsCommonStore,ne),this.cleanWlsBacklogEventsInProgress.splice(le,1)),le++)}),!1===$&&this.cleanWlsBacklogEventsInProgress.push({recordKey:ne,functionalDbIsClear:G===a.Functional&&W,technicalDbIsClear:G===a.Technical&&W,behavioralDbIsClear:G===a.Behavioral&&W,requiredDbIsClear:G===a.Required&&W})}sendWlsBacklogEventsDetailToServer(ne,G,W,$,le,Pe){this.logger.event("attempting to send wls backlog events for dbName:",W," userconsent: ",G,"key: ",le);const Fe=this.windowLocalStorage.getWlsItem(W,le);if(Fe){let At={commonData:{},events:[],eventsToBeSent:0};const Le=$e=>{if(this.logger.event("jsEvents wls backlog response",$e,At.eventsToBeSent),0===At.eventsToBeSent)return this.windowLocalStorage.removeWlsItem(W,le)},Et=$e=>{this.logger.error("Failed to send wls backlog events :",$e.status),this.logger.event("Failed to send wls backlog events for :",le,W,".ErrorInfo: status",$e.status)};return At={commonData:(0,_.merge)({},Pe.common),events:this.getConsentedEvents($,ne,G,Fe),eventsToBeSent:0},At.commonData&&At.events&&At.events.length>0?this.sendToServerEndpoint(At,!1).pipe((0,f.T)($e=>{$e.forEach(Ze=>{Le(Ze)})}),(0,O.W)($e=>(Et($e),S.w))):(this.updateWlsCleanupState(le,$,!0),(0,v.of)(this.windowLocalStorage.removeWlsItem(W,le)))}return this.updateWlsCleanupState(le,$,!0),this.logger.event("detail data not available for wls backlog key",le),(0,v.of)(this.windowLocalStorage.removeWlsItem(W,le))}attemptSendFromAllEventStores(ne,G,W,$,le){return(0,d.p)([ne.call(this,G,W,M.EventsDetailStore,a.Functional,$,le),ne.call(this,G,W,M.EventsDetailStoreTechnical,a.Technical,$,le),ne.call(this,G,W,M.EventsDetailStoreBehavioral,a.Behavioral,$,le),ne.call(this,G,W,M.EventsDetailStoreRequired,a.Required,$,le)])}sendBacklogEvents(ne){try{this.dbService.getGlobalStore(M.EventsCommonStore).getItem(ne).pipe((0,y.ZZ)(G=>{if(this.logger.event("testCommonData",G),G&&G.common){const W=JSON.parse(ne);return this.getUserConsentFromCache(W.userId||"undefined",!1).pipe((0,y.ZZ)($=>(this.logger.event("userConsentFromCache",$),G.common.gdprFuncOptIn=this.getString($.functional),G.common.gdprTechOptIn=this.getString($.technical),G.common.gdprBehOptIn=this.getString($.behavioral),G.common.deviceGdprFuncOptIn=this.getString(this.deviceConsent.functional),G.common.deviceGdprTechOptIn=this.getString(this.deviceConsent.technical),G.common.deviceGdprBehOptIn=this.getString(this.deviceConsent.behavioral),this.attemptSendFromAllEventStores(this.sendBacklogEventsDetailToServer,this.deviceConsent,$,ne,G))))}return this.logger.event("common data not available for backlog key",ne),this.dbService.getGlobalStore(M.EventsCommonStore).removeItem(ne).subscribe(),(0,v.of)(!0)}),(0,O.W)(G=>(this.logger.event("common data not available for backlog key",ne),this.dbService.getGlobalStore(M.EventsCommonStore).removeItem(ne).subscribe(),(0,v.of)(!0)))).subscribe()}catch(G){this.logger.error("catch backlog::",G)}}sendWlsBacklogEvents(ne){try{const G=this.windowLocalStorage.getWlsItem(M.EventsCommonStore,ne);if(this.logger.event("wlsCommonData",G),G){const W=JSON.parse(ne);this.getUserConsentFromCache(W.userId||"undefined",!1).pipe((0,y.ZZ)($=>{this.logger.event("userConsentFromCache",$);const le={common:G};return le.common.gdprFuncOptIn=this.getString($.functional),le.common.gdprTechOptIn=this.getString($.technical),le.common.gdprBehOptIn=this.getString($.behavioral),le.common.deviceGdprFuncOptIn=this.getString(this.deviceConsent.functional),le.common.deviceGdprTechOptIn=this.getString(this.deviceConsent.technical),le.common.deviceGdprBehOptIn=this.getString(this.deviceConsent.behavioral),this.attemptSendFromAllEventStores(this.sendWlsBacklogEventsDetailToServer,this.deviceConsent,$,ne,le)})).subscribe()}else this.logger.event("wls common data not available for backlog key",ne),this.windowLocalStorage.removeWlsItem(M.EventsCommonStore,ne)}catch(G){this.logger.error("catch wls backlog:",G)}}setInProgressState(ne,G){this.sendBatchEventsInProgress.functional=ne===a.Functional?G:this.sendBatchEventsInProgress.functional,this.sendBatchEventsInProgress.technical=ne===a.Technical?G:this.sendBatchEventsInProgress.technical,this.sendBatchEventsInProgress.behavioral=ne===a.Behavioral?G:this.sendBatchEventsInProgress.behavioral,this.sendBatchEventsInProgress.required=ne===a.Required?G:this.sendBatchEventsInProgress.required,this.eventsInBatch=this.getInProgressState()}getInProgressState(){return this.sendBatchEventsInProgress.functional||this.sendBatchEventsInProgress.technical||this.sendBatchEventsInProgress.behavioral||this.sendBatchEventsInProgress.required}sendBatchedEventsDetailToServer(ne,G,W,$,le,Pe){this.logger.event("attempting to send batched events for dbName:",W," userconsent: ",G,"key: ",le);const Fe=this.dbCacheService.getCachedGlobalItem(W,le);let At={commonData:{},events:[],eventsToBeSent:0};const Le=$e=>{this.logger.event("jsEvents batched response",$e);const Ze=JSON.parse($e.config.data);this.cleanUpSentEvents(Ze.events,W,le),this.setInProgressState($,!1),this.sendEventsInProgress=!1},Et=$e=>{this.setInProgressState($,!1),this.sendEventsInProgress=!1,this.logger.error("Failed to send events for :",le,".ErrorInfo: status",$e.status)};return At={commonData:(0,_.merge)({},Pe.common),events:this.getConsentedEvents($,ne,G,Fe),eventsToBeSent:0},At.commonData&&At.events&&At.events.length>0?(this.setInProgressState($,!0),this.sendEventsInProgress=!0,this.sendToServerEndpoint(At,!1).subscribe($e=>{$e.forEach(Ze=>{Le(Ze)})},$e=>{Et($e)})):(Fe&&Fe.events&&(Fe.events.splice(0,Fe.events.length),Fe.persist_().subscribe()),this.setInProgressState($,!1),this.sendEventsInProgress=!1),S.w}sendEvents(){const ne=this.getRecordKey(),G=this.dbCacheService.getCachedGlobalItem(M.EventsCommonStore,ne);if(G&&G.common)this.getUserConsentFromCache(this.currentUserId||m.Undefined,!0).pipe((0,y.ZZ)(W=>(G.common.gdprFuncOptIn=this.getString(W.functional),G.common.gdprTechOptIn=this.getString(W.technical),G.common.gdprBehOptIn=this.getString(W.behavioral),G.common.deviceGdprFuncOptIn=this.getString(this.deviceConsent.functional),G.common.deviceGdprTechOptIn=this.getString(this.deviceConsent.technical),G.common.deviceGdprBehOptIn=this.getString(this.deviceConsent.behavioral),this.attemptSendFromAllEventStores(this.sendBatchedEventsDetailToServer,this.deviceConsent,W,ne,G)))).subscribe();else{if(this.logger.event("common data not available for key",ne),G&&(0,_.isUndefined)(G.common))try{this.registeredErrorCallback("common data not set before starting to send events")}catch(W){this.logger.error(W),this.defaultErrorCallback("Invalid callback. Original Error: common data not set before starting to send events")}this.sendEventsInProgress=!1}}startTimeBasedSendToServer(){this.stopTimeBasedSendToServer(),this.sendEventSubscription=this.sendInterval$.subscribe(()=>{this.logger.event("events in batch:",this.eventsInBatch),this.logger.event("new event in db:",this.newEventInDb),(!0===this.eventsInBatch||!0===this.newEventInDb)&&!1===this.sendEventsInProgress&&!1===this.getInProgressState()&&!1===this.getPurgeInProgressState()&&(this.newEventInDb=!1,this.sendEventsInProgress=!0,this.sendEvents())}),this.logger.event("send interval request made")}stopTimeBasedSendToServer(){this.sendEventSubscription&&(this.sendEventSubscription.unsubscribe(),this.sendEventSubscription=null,this.logger.event("send interval stopped"))}onOnlineStateChanged(ne){this.isOnline=ne,this.isOnline?this.deviceConsent!==L&&(this.logger.info("jsEvents turns into online"),this.startTimeBasedSendToServer()):(this.logger.info("jsEvents turns into offline"),this.stopTimeBasedSendToServer())}onLocationStateChanged(ne){"unknown"!==this.serverLocale&&this.serverLocale!==ne&&(this.logger.info("purge stored events"),this.purgeInitiated=!0,this.purgeEventStoreRecords()),this.serverLocale=ne}purgeEventStoreRecords(){this.purgeInProgress={commonDbIsClear:!1,functionalDbIsClear:!1,technicalDbIsClear:!1,behavioralDbIsClear:!1,requiredDbIsClear:!1,wlsDbIsClear:!1},this.dbService.getGlobalStore(M.EventsDetailStore).clear().subscribe(()=>{this.purgeInProgress.functionalDbIsClear=!0}),this.dbService.getGlobalStore(M.EventsDetailStoreTechnical).clear().subscribe(()=>{this.purgeInProgress.technicalDbIsClear=!0}),this.dbService.getGlobalStore(M.EventsDetailStoreBehavioral).clear().subscribe(()=>{this.purgeInProgress.behavioralDbIsClear=!0}),this.dbService.getGlobalStore(M.EventsDetailStoreRequired).clear().subscribe(()=>{this.purgeInProgress.requiredDbIsClear=!0}),this.dbService.getGlobalStore(M.EventsCommonStore).clear().subscribe(()=>{this.purgeInProgress.commonDbIsClear=!0}),this.windowLocalStorage.clearall(M.EventsDetailStore),this.windowLocalStorage.clearall(M.EventsDetailStoreTechnical),this.windowLocalStorage.clearall(M.EventsDetailStoreBehavioral),this.windowLocalStorage.clearall(M.EventsDetailStoreRequired),this.windowLocalStorage.clearall(M.EventsCommonStore),this.purgeInProgress.wlsDbIsClear=!0}getPurgeInProgressState(){let ne=!1;return this.purgeInitiated&&(ne=!(this.purgeInProgress.wlsDbIsClear&&this.purgeInProgress.functionalDbIsClear&&this.purgeInProgress.technicalDbIsClear&&this.purgeInProgress.behavioralDbIsClear&&this.purgeInProgress.requiredDbIsClear&&this.purgeInProgress.commonDbIsClear),this.purgeInitiated=ne),ne}getUserConsentFromCache(ne,G){const $={required:this.deviceConsent.required,functional:this.deviceConsent.functional,technical:r.None,behavioral:r.None},le=this.dbCacheService.getOrCreateCachedGlobalItem(M.UserDataConsentStore,ne||m.Undefined);return le?le.sync_().pipe((0,f.T)(()=>{const Pe=le&&le.userConsent;return!0===G&&((0,_.isNil)(Pe)?this.currentUserId===m.Undefined&&(this.currentUserConsent=$,this.currentUserConsentUpdated=!0):(this.currentUserConsent=Pe,this.currentUserConsentUpdated=!0)),Pe||$}),(0,O.W)(Pe=>(0,v.of)($))):(0,v.of)($)}syncUserConsentInfo(ne){const G=ne.find(W=>W.userId===this.currentUserId);G&&(this.currentUserConsent=G.userConsent,this.currentUserConsentUpdated=!0),ne.forEach(W=>{const $=this.dbCacheService.getOrCreateCachedGlobalItem(M.UserDataConsentStore,W.userId);this.logger.event("previously cached consent",$.userConsent),$.userConsent=W.userConsent,$.persist_().subscribe(),this.logger.event("updated consent",W.userConsent)}),this.syncedUserConsentInfo=!0,this.startSendingEvents()}setDefaultConsent(ne){this.defaultConsent=ne,this.deviceConsent=ne,(this.currentUserId===m.Undefined||(0,_.isUndefined)(this.currentUserId))&&(this.currentUserConsent={required:this.deviceConsent.required,functional:this.deviceConsent.functional,technical:r.None,behavioral:r.None},this.currentUserConsentUpdated=!0),this.startSendingEvents()}setDeviceConsent(ne){this.deviceConsent=ne,this.deviceConsentUpdated=!0,this.logger.event("device consent",ne),this.startSendingEvents()}eventHasConsent(ne,G,W,$){let le;return le=ne===c.Anonymous||ne===c.DeviceOnly||ne===c.DevicePreferred?W:ne===c.UserRequired?this.currentUserId===m.Undefined||(0,_.isUndefined)(this.currentUserId)?L:$:this.currentUserId===m.Undefined||(0,_.isUndefined)(this.currentUserId)?{required:this.deviceConsent.required,functional:this.deviceConsent.functional,technical:r.None,behavioral:r.None}:$,G===a.Required?le.required:G===a.Functional?le.functional:G===a.Technical?le.technical:G===a.Behavioral?le.behavioral:r.None}cleanUpDbStore(){if(this.isTelemetryDisabled)return;const ne=this;if(this.commonData.sessionId===m.Undefined)return void ne.logger.info("Cleanup cannot proceed, this.commonData.sessionId is undefined");this.sendBacklogEventsInitiated=!0;const G=JSON.parse(this.getRecordKey());this.logger.info("cleanUpDbStore excluding session for",G);try{ne.dbService.getGlobalStore(M.EventsCommonStore).keys().pipe((0,P.M)(W=>{W.forEach(($,le)=>{try{if(ne.logger.event("Key#",le,"key ",$),"_version"===$)ne.logger.info("_version to be skipped",$);else{const Pe=JSON.parse($);""===Pe.sessionId||Pe.sessionId===G.sessionId?ne.logger.info("key not to be processed",Pe):ne.sendBacklogEvents($)}}catch(Pe){ne.logger.error("Json parsing failed for key:",$,"error:",Pe?.message)}})})).subscribe()}catch(W){ne.logger.error("encountered failure, error:",W?.message)}}cleanUpWlsStore(){this.sendBacklogEventsInitiated=!0;const ne=JSON.parse(this.getRecordKey());this.logger.info("cleanUpWlsStore excluding session for",ne);for(let G=0;G<this.windowLocalStorage.getLength();++G){const W=this.windowLocalStorage.getKey(G);if(W.match("^"+M.EventsCommonStore)){this.logger.event("Key#",G,"key ",W);const $=JSON.parse(W.replace(M.EventsCommonStore,""));""===$.sessionId||$.sessionId===ne.sessionId?this.logger.event("key not to be processed",$):this.sendWlsBacklogEvents(JSON.stringify($))}}}cleanUpSentEvents(ne,G,W){this.logger.event("cleanUpSentEvents for",W);const $=this.dbCacheService.getCachedGlobalItem(G,W);ne.forEach(le=>{if($&&$.events.length>0){const Pe=$.events.find(Fe=>Fe.ts===le.ts);if(Pe&&(0,_.isEqual)(Pe.parameters,le.parameters)){const Fe=$.events.indexOf(Pe);this.logger.event("matching event found",le),$.events.splice(Fe,1),$.persist_().subscribe()}else this.logger.event("matching event not found")}else this.logger.event("events seem to be already cleared")}),$.persist_().subscribe()}startSendingEvents(){this.isOnline&&this.deviceConsent!==L&&"unknown"!==this.serverLocale?(this.startTimeBasedSendToServer(),!1===this.sendBacklogEventsInitiated&&(this.cleanUpDbStore(),this.cleanUpBacklogEvents=!1)):this.logger.info("Device offline or No Functional consent. No clean job happened.",this.deviceConsent)}updateGdprQualifiers(ne){return(0,_.omit)(ne,"gdprLevel")}updatePersonalizationQualifiers(ne){return(0,_.omit)(ne,"personalization")}updateGdprAndPersonalizationQualifiers(ne){return(0,_.omit)(ne,["gdprLevel","personalization"])}getString(ne){return ne&&"string"!=typeof ne?JSON.stringify(ne):ne||""}getRecordKey(){return JSON.stringify({sessionId:this.commonData.sessionId||m.Undefined,userId:this.currentUserId||m.Undefined})}getFormattedInputData(ne,G){const W=(0,_.extend)({},this.commonData);!0===G.anonymize&&(W.deviceId="undefined",W.userId="undefined",W.sessionId="undefined",W.externalUserId="undefined",W.idpId="undefined");const $=(0,_.extend)({},this.updateGdprAndPersonalizationQualifiers(ne));this.logger.event("eventDetail",$);const le=[];return le.push($),W.events=le,W.sentTs=(new Date).toISOString(),W.gdprFuncOptIn=this.getString(this.currentUserConsent.functional),W.gdprTechOptIn=this.getString(this.currentUserConsent.technical),W.gdprBehOptIn=this.getString(this.currentUserConsent.behavioral),W.deviceGdprFuncOptIn=this.getString(this.deviceConsent.functional),W.deviceGdprTechOptIn=this.getString(this.deviceConsent.technical),W.deviceGdprBehOptIn=this.getString(this.deviceConsent.behavioral),JSON.stringify(W)}setFormattedEventsDetailData(ne,G,W){const $=this.getRecordKey();let Pe,le=M.EventsDetailStore;if(ne.gdprLevel===a.Technical&&(le=M.EventsDetailStoreTechnical),ne.gdprLevel===a.Behavioral&&(le=M.EventsDetailStoreBehavioral),ne.gdprLevel===a.Required&&(le=M.EventsDetailStoreRequired),G){Pe=this.windowLocalStorage.getWlsItem(le,$)||{},Pe.events=Pe.events||[];const Fe=(0,_.extend)({},this.updateGdprQualifiers(ne));this.logger.event("eventDetail wls",Fe),Pe.events.push(Fe),this.logger.event("details list wls",Pe.events),this.windowLocalStorage.setWlsItem(le,$,Pe),(0,_.isFunction)(W)&&W(),this.logger.event("request to batch an exit time event")}else{Pe=this.dbCacheService.getOrCreateCachedGlobalItem(le,$);let Fe=Pe.events;const At=(0,_.extend)({},this.updateGdprQualifiers(ne));if(this.logger.event("eventDetail IDb",At),Fe)Fe.push(At);else{const Le=[];Le.push(At),Fe=Le}this.logger.event("details list indexed db",Fe),Pe.events=Fe,Pe.persist_().subscribe(()=>{(0,_.isFunction)(W)&&W(),this.logger.event("request to batch an event"),this.newEventInDb=!0})}}storeEventDetail(ne,G){this.setFormattedEventsDetailData(ne,this.browserPlatform&&G.appExit||!1,G.afterDone||null)}checkIfEventIsSendable(ne,G){return(0,_.isEqual)(this.deviceConsent,L)||ne&&(0,_.isUndefined)(ne.gdprLevel)?(this.logger.info("No consent available, discarding event",ne.name,ne.gdprLevel),(0,_.isFunction)(G.afterDone)&&G.afterDone(),X.FunctionalConsentNotReceived):this.getPurgeInProgressState()?X.LocaleSwitchInProgress:X.Ok}sendEventDetail(ne,G){if(ne){G=(0,_.merge)({},G),this.isValidPersonalization(ne.personalization)||(ne.personalization=c.UserPreferred);const W=this.checkIfEventIsSendable(ne,G);if(W!==X.Ok)return W;if("unknown"===this.serverLocale||!0!==G.immediateRequest&&!0!==G.useBeacon||!0!==this.isOnline)this.storeEventDetail(ne,G);else{const $=this.eventHasConsent(ne.personalization,ne.gdprLevel,this.deviceConsent,this.currentUserConsent);if(this.logger.event("attempting to send immediate event for userId:",this.currentUserId," userconsent: ",this.currentUserConsent,"deviceconsent: ",this.deviceConsent),$!==r.Full&&$!==r.Temp)return this.currentUserId&&this.currentUserId!==m.Undefined&&!1===this.currentUserConsentUpdated?(this.storeEventDetail(ne,G),this.logger.event("Event stored as userConsent not synced yet",$,this.currentUserConsentUpdated)):((0,_.isFunction)(G.afterDone)&&G.afterDone(),this.logger.error("Event cannot be sent due to consent level:",$)),$;{const le=this.getFormattedInputData(ne,G);this.logger.info("jsonString request to send:",le);let Pe=this.eventSdkService.sendEvent,Fe=!0;G.useBeacon&&(Pe=this.eventSdkService.sendEventviaBeacon,Fe=!1),Pe.call(this.eventSdkService,this.customParams,le,Fe).subscribe(At=>{this.logger.event("jsevents response",At),(0,_.isFunction)(G.afterDone)&&G.afterDone()},At=>{this.logger.error("Failed to send eventdata for:",ne.name,".ErrorInfo: status",At.status,", data",At.config&&At.config.data),this.storeEventDetail(ne,G)})}}return X.Ok}return this.logger.error("Empty request"),X.UnProcessed}sendEventDetailWithPromise(ne,G){return new Promise((W,$)=>{if(ne){if(G=(0,_.merge)({},G),(0,_.isEqual)(this.deviceConsent,L)||ne&&(0,_.isUndefined)(ne.gdprLevel))return this.logger.info("Functional consent not received, discarding event",ne.name,ne.gdprLevel),(0,_.isFunction)(G.afterDone)&&G.afterDone(),void $(X.FunctionalConsentNotReceived);if(this.getPurgeInProgressState())return void $(X.LocaleSwitchInProgress);if("unknown"===this.serverLocale||!0!==G.immediateRequest&&!0!==G.useBeacon||!0!==this.isOnline)this.storeEventDetail(ne,G),W(X.Ok);else{const le=this.eventHasConsent(ne.personalization,ne.gdprLevel,this.deviceConsent,this.currentUserConsent);if(this.logger.event("attempting to send immediate event for userId:",this.currentUserId," userconsent: ",this.currentUserConsent,"deviceconsent: ",this.deviceConsent),le===r.Full||le===r.Temp){const Pe=this.getFormattedInputData(ne,G);let Fe=this.eventSdkService.sendEvent,At=!0;G.useBeacon&&(Fe=this.eventSdkService.sendEventviaBeacon,At=!1),Fe.call(this.eventSdkService,this.customParams,Pe,At).subscribe(Le=>{this.logger.event("jsevents response",Le),(0,_.isFunction)(G.afterDone)&&G.afterDone(),W(X.Ok)},Le=>{this.logger.error("Failed to send eventdata for:",ne.name,".ErrorInfo: status",Le.status,", data",Le.config&&Le.config.data),this.storeEventDetail(ne,G),W(X.UnProcessed)})}else this.currentUserId&&this.currentUserId!==m.Undefined&&!1===this.currentUserConsentUpdated?(this.storeEventDetail(ne,G),this.logger.event("Event stored as userConsent not synced yet",le,this.currentUserConsentUpdated)):((0,_.isFunction)(G.afterDone)&&G.afterDone(),this.logger.error("Event cannot be sent due to consent level:",le)),W(le)}}else this.logger.error("Empty request"),W(X.Ok)})}isValidPersonalization(ne){return ne===c.Anonymous||ne===c.DeviceOnly||ne===c.DevicePreferred||ne===c.UserPreferred||ne===c.UserRequired}setEventsCommonData(ne){if(!ne)return this.logger.error("Undefined common data sent by client"),(0,v.of)(void 0);this.cleanUpBacklogEvents=!1,this.commonData.sessionId===m.Undefined&&ne.sessionId&&(this.cleanUpBacklogEvents=!0),this.commonData=(0,_.merge)({},this.commonData,ne),this.logger.info("client user data",ne.userId,ne.externalUserId,ne.idpId),this.logger.info("this.commonData user data",this.commonData.userId,this.commonData.externalUserId,this.commonData.idpId),this.commonData.eventProtocol="1.5",this.currentUserId=this.commonData.idpId!==m.Undefined?this.commonData.userId:this.commonData.externalUserId,this.currentUserConsentUpdated=!1,this.logger.info("Device Id:",this.commonData.deviceId,"set for client:",this.commonData.clientId);const G=this.getUserConsentFromCache(this.currentUserId,!0);this.logger.event(this.commonData);const W=this.getRecordKey(),$=this.dbCacheService.getOrCreateCachedGlobalItem(M.EventsCommonStore,W);if($.common=this.commonData,$.persist_().subscribe(),this.browserPlatform){let le=this.windowLocalStorage.getWlsItem(M.EventsCommonStore,W)||{};le=this.commonData,this.windowLocalStorage.setWlsItem(M.EventsCommonStore,W,le)}return this.isOnline&&this.deviceConsent!==L&&"unknown"!==this.serverLocale?(this.startTimeBasedSendToServer(),this.cleanUpBacklogEvents&&!1===this.sendBacklogEventsInitiated&&(this.cleanUpDbStore(),this.cleanUpBacklogEvents=!1),this.browserPlatform&&this.cleanUpWlsStore()):this.logger.info("Device offline or No Functional consent. No clean job happened.",this.deviceConsent),this.commonDataSubject.next(this.commonData),G}setOverrideToolTelemetryState(ne){this.isTelemetryDisabled=ne}ngOnDestroy(){this.sendEventSubscription&&(this.sendEventSubscription.unsubscribe(),this.sendEventSubscription=void 0)}static{this.\u0275fac=function(G){return new(G||A)(ve.KVO(ue),ve.KVO(Se),ve.KVO(i.J6),ve.KVO(i.sc),ve.KVO(i.at),ve.KVO(i.CF),ve.KVO(Ce))}}static{this.\u0275prov=ve.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})();var He=s(20924),Me=s(99047);let Q=(()=>{class A{constructor(ne,G,W){this.loggingService=ne,this.bridgeService=G,this.jsEventsService=W,this.clientVersion="undefined",this.currentScreen="",this.deviceId="undefined",this.isUIRefreshed=!1,this.launchUiEventSent=!1,this.sessionId="undefined",this.sync=!1,this.userId="undefined",this.externalUserId="undefined",this.idpId="undefined",this.deviceOS=null,this.deviceOSVersion=null,this.deviceType=null,this.deviceModel=null,this.deviceMake=null,this.clientType=null,this.clientVariant=null,this.integrationId=null,this.browserType=null,this.productName=null,this.productVersion=null,this.isTelemetryDisabled=!1,this.defaultConsentListener$=new n.m(1),this.deviceConsentListener$=new n.m(1),this.commonDataListener$=new n.m(1),this.validUserIdResetListener$=new n.m(1),this.consentUpdatedPromise=new Promise($=>{$(null)}),this.logEvaluatorCallback=$=>!0,this.logger=this.loggingService.getLogger("telemetryService"),this.getUIRefreshState(),this.sessionId=this.generateSessionId()}updateTelemetrySessionId(ne){this.sessionId=ne}initialize(ne){this.isTelemetryDisabled=ne,this.jsEventsService.setOverrideToolTelemetryState(this.isTelemetryDisabled)}getCommonData$(){return this.jsEventsService.getCommonData$()}setLaunchUiEventSent(ne){this.launchUiEventSent=ne,this.logger.info("Launch UI event sent: ",this.launchUiEventSent)}getLaunchUiEventSent(){return this.launchUiEventSent}setLoggingEvaluator(ne){this.logEvaluatorCallback=ne}getUIRefreshState(){this.logger.info("Getting UI Refreshed state"),this.bridgeService.executeCommand(He.Ts.Common.Applicationinfo.GetIsUIRefreshed).subscribe(ne=>{this.isUIRefreshed=ne,this.logger.info("Refreshed state",this.isUIRefreshed)},()=>{this.logger.error("Failed to get UI Refreshed state")})}generateSessionId(){let ne=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(W){const $=(ne+16*Math.random())%16|0;return ne=Math.floor(ne/16),("x"===W?$:3&$|8).toString(16)})}get telemetrySessionId(){return this.sessionId}setEventsCommonData(ne,G=!1,W=!1){this.logger.info("telemetry sessionId is ",this.sessionId),!this.deviceId&&ne&&ne.deviceId&&this.logger.info("telemetry deviceId",ne.deviceId),(G&&ne&&ne.userId||ne&&ne.externalUserId)&&(this.logger.info("telemetry userId ",ne.userId),this.logger.info("telemetry externalUserId ",ne.externalUserId),this.logger.info("telemetry idpId ",ne.idpId)),this.deviceId=ne&&ne.deviceId?ne.deviceId:this.deviceId,this.clientVersion=ne&&ne.clientVer||this.clientVersion,G&&(this.userId=ne.userId||"undefined",this.externalUserId=ne.externalUserId||"undefined",this.idpId=ne.idpId||"undefined"),this.deviceOS=this.deviceOS||ne.deviceOS,this.deviceOSVersion=this.deviceOSVersion||ne.deviceOSVersion,this.deviceType=this.deviceType||ne.deviceType,this.deviceModel=this.deviceModel||ne.deviceModel,this.deviceMake=this.deviceMake||ne.deviceMake,this.clientType=this.clientType||ne.clientType,this.clientVariant=this.clientVariant||ne.clientVariant,this.integrationId=this.integrationId||ne.integrationId,this.browserType=this.browserType||ne.browserType,this.productName=this.productName||ne.productName,this.productVersion=this.productVersion||ne.productVersion,W&&(this.integrationId=ne.integrationId||"undefined"),this.logger.info("Setting common events data: ",{clientVer:this.clientVersion,sessionId:this.sessionId,deviceId:this.deviceId,userId:this.userId,externalUserId:this.externalUserId,idpId:this.idpId,deviceOS:this.deviceOS,deviceOSVersion:this.deviceOSVersion,deviceType:this.deviceType,deviceModel:this.deviceModel,deviceMake:this.deviceMake,clientType:this.clientType,clientVariant:this.clientVariant,integrationId:this.integrationId,browserType:this.browserType,productName:this.productName,productVersion:this.productVersion}),this.consentUpdatedPromise=this.jsEventsService.setEventsCommonData({clientVer:this.clientVersion,sessionId:this.sessionId,deviceId:this.deviceId,userId:this.userId,externalUserId:this.externalUserId,idpId:this.idpId,deviceOS:this.deviceOS||m.Undefined,deviceOSVersion:this.deviceOSVersion||m.Undefined,deviceType:this.deviceType||m.Undefined,deviceModel:this.deviceModel||m.Undefined,deviceMake:this.deviceMake||m.Undefined,clientType:this.clientType||m.Undefined,clientVariant:this.clientVariant||m.Undefined,integrationId:this.integrationId||m.Undefined,browserType:this.browserType||m.Undefined,productName:this.productName||m.Undefined,productVersion:this.productVersion||m.Undefined}).toPromise(),this.userId&&this.deviceId&&this.deviceId!==m.Undefined&&this.commonDataListener$.next(!0),this.validUserIdResetListener$.next(G&&this.userId&&this.userId!==m.Undefined)}setScreen(ne){this.currentScreen=ne}getScreen(){return this.currentScreen}changeSync(ne){this.sync=ne}setDefaultClientConsent(ne){this.logger.event("Set client consent: ",ne),this.jsEventsService.setDefaultConsent(ne),this.defaultConsentListener$.next(!0)}setDeviceConsent(ne){this.logger.event("Set device consent: ",ne),this.jsEventsService.setDeviceConsent(ne),this.defaultConsentListener$.next(!0),this.deviceConsentListener$.next(!0)}setUserConsent(ne){this.logger.event("Set user consent: ",ne),this.jsEventsService.syncUserConsentInfo(ne)}getDefaultClientConsentObserable(){return this.defaultConsentListener$.pipe((0,Me.$)())}getDeviceConsentObservable(){return this.deviceConsentListener$.pipe((0,Me.$)())}getCommonDataObservable(){return this.commonDataListener$.pipe((0,Me.$)())}getValidUserIdResetObservable(){return this.validUserIdResetListener$.asObservable()}setServerConfig(ne){this.jsEventsService.updateServer(ne)}push(ne,G,W){if(this.isUIRefreshed||this.isTelemetryDisabled)this.logger.info("Disabled telemetry",ne.name);else if(ne){if(W=(0,_.merge)({},W),W=(0,_.extend)(W,{appExit:this.sync}),G&&ne.parameters.hasOwnProperty("totalMs")){const $=Date.now(),le=$-G;this.logger.info("Started ",ne.name,"at ",G,"and ended at ",$,"Time elapsed(ms)",le),ne.parameters=(0,_.merge)(ne.parameters,{totalMs:le})}this.logEvaluatorCallback(ne)&&this.logger.event("Event detail: ",ne),this.consentUpdatedPromise.then(()=>{this.logger.info("Sending event "+ne.name),this.jsEventsService.sendEventDetail(ne,W)})}else this.logger.error("Empty event.")}pushWithPromise(ne,G,W){if(this.isUIRefreshed||this.isTelemetryDisabled)return this.logger.info("Disabled telemetry",ne.name),new Promise(($,le)=>{$("Disabled telemetry")});if(ne){if(W=(0,_.merge)({},W),W=(0,_.extend)(W,{appExit:this.sync}),G&&ne.parameters.hasOwnProperty("totalMs")){const $=Date.now(),le=$-G;this.logger.info("Started ",ne.name,"at ",G,"and ended at ",$,"Time elapsed(ms)",le),ne.parameters=(0,_.merge)(ne.parameters,{totalMs:le})}return this.logEvaluatorCallback(ne)&&this.logger.event("Event detail: ",ne),new Promise($=>{this.consentUpdatedPromise.then(()=>this.jsEventsService.sendEventDetailWithPromise(ne,W)).then(le=>{$(le)})})}return this.logger.error("Empty event."),new Promise(($,le)=>{le("Empty event.")})}static{this.\u0275fac=function(G){return new(G||A)(ve.KVO(i.J6),ve.KVO(i.NZ),ve.KVO(Be))}}static{this.\u0275prov=ve.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})()},5798:(Bt,z,s)=>{"use strict";s.d(z,{fu:()=>c,SA:()=>M,sl:()=>U,t:()=>T,jm:()=>a});var n=s(94485),l=s(40198),d=s(75707),v=s(83915),S=s(86447),y=s(80583),f=s(59859),O=s(3496),P=s(26875);const _={timeBetweenRetries:0,maxRetries:0,retryOnTimeout:!1,exponentialBackoffMaxDelay:3e4},i="TimeoutError";var a=function(N){return N[N.UnknownError=0]="UnknownError",N[N.RequestTimeout=-100]="RequestTimeout",N[N.RequestCancelled=-101]="RequestCancelled",N[N.NetworkStatusOffline=-102]="NetworkStatusOffline",N[N.DNSLookupFailed=-103]="DNSLookupFailed",N}(a||{});const c=36e5;var m=s(81834);const M={authorization:"Authorization",xRequestId:"x-request-id"};class U{static{this.httpErrorEventsSubject=new y.B7}static{this.httpSuccessEventsSubject=new y.B7}static{this.httpStartEventsSubject=new y.B7}static httpErrorEvents$(){return U.httpErrorEventsSubject.asObservable()}static httpSuccessEvents$(){return U.httpSuccessEventsSubject.asObservable()}static httpStartEvents$(){return U.httpStartEventsSubject.asObservable()}constructor(L,E,g={}){this.http=L,this.networkStatusService=E,this.configOptions=g,(0,P.isNil)(this.configOptions.config)&&(this.configOptions.config=_),(0,P.isNil)(this.configOptions.config.retryOnTimeout)&&(this.configOptions.config.retryOnTimeout=_.retryOnTimeout),(0,P.isNil)(this.configOptions.config.exponentialBackoffMaxDelay)&&(this.configOptions.config.exponentialBackoffMaxDelay=_.exponentialBackoffMaxDelay)}static replaceTemplateKey(L,E,g,R){let B=L;if("string"==typeof g){const X=":"+E;-1!==L.indexOf(X)&&(B=L.replace(new RegExp(X,"g"),encodeURIComponent(g)),R(E))}return B}static formatUrl(L,E){let g=L;return g=Object.keys(E).reduce((R,B)=>U.replaceTemplateKey(R,B,E[B],X=>delete E[X]),g),g}static isRetryableError(L,E,g){let R=!0;return L instanceof n.yz?0!==L.status||g.isOnline?429===L.status?R=!0:0!==L.status&&(L.status<500||L.status>=600)&&(R=!1):R=!1:L instanceof Error&&L.name===i&&!E.retryOnTimeout&&(R=!1),R}static formatError(L,E,g,R){const B=U.getFullUrl(L,E);let X,H;g instanceof n.yz?(X=g,H=g.status):g&&g.name===i&&(H=a.RequestTimeout);const J={url:B,status:H,rawResponse:X};return(0,P.isNil)(R.headers[M.xRequestId])||(J.xRequestId=R.headers[M.xRequestId]),J}static getFullUrl(L,E){const g=Object.keys(E);if(g.length>0){L+="?";for(const R of g)L+=`${R}=${E[R]}&`;L=L.substring(0,L.length-1)}return L}static applyTimeout(L,E){return(0,P.isNil)(E.timeout)?L:L.pipe((0,l.w)(E.timeout))}static isReportRequest(L){return(0,P.isNil)(L.reportRequest)||!0===L.reportRequest}genericRetryStrategy(L,E,g){return g.pipe((0,d.ZZ)((R,B)=>{const X=B+1,H=U.formatError(L,E.params,R,E);if(U.isReportRequest(E)&&(E.reportRequestData={...E.reportRequestData,retryCount:String(X)},U.httpErrorEventsSubject.next({response:H,options:E})),X>E.config.maxRetries||!U.isRetryableError(R,E.config,this.networkStatusService))return(0,f.$)(H);let J;if(E.config.timeBetweenRetries)J=E.config.timeBetweenRetries;else{const re=E.config?.exponentialBackoffMaxDelay;J=1e3,X>1&&(J=Math.min(1e3*Math.pow(2,X-1),re))}if(R instanceof n.yz&&(429===R.status||503===R.status)){const re=+(R.headers.get("retry-after")||0);isNaN(re)||(J=Math.max(J,1e3*re))}return(0,O.O)(J)}))}initRequest(L,E){const g=E;return g.params={...this.configOptions.params,...E.params},g.headers={...this.configOptions.headers,...E.headers},g.config={...this.configOptions.config,...E.config},g.reportRequestData={...this.configOptions.reportRequestData,...E.reportRequestData},g.reportRequest=this.configOptions.reportRequest&&E.reportRequest,g.includeRequestId&&(g.headers[M.xRequestId]=(0,m.bz)()),[g,U.formatUrl(L,g.params)]}makeRequest(L,E,g={}){return this.makeRequestEx(L,E,g).pipe((0,v.T)(R=>g?.includeFullResponse?R:R.body))}get(L,E={}){return this.makeRequest("GET",L,E)}delete(L,E={}){return this.makeRequest("DELETE",L,E)}post(L,E={}){return this.makeRequest("POST",L,E)}patch(L,E={}){return this.makeRequest("PATCH",L,E)}put(L,E={}){return this.makeRequest("PUT",L,E)}makeRequestEx(L,E,g={}){const[R,B]=this.initRequest(E,g);U.isReportRequest(R)&&U.httpStartEventsSubject.next({method:L,url:B,options:R}),R.reportRequestData.requestStartTime=Date.now().toString();const X=this.http.request(L,B,{body:R.body,params:R.params,headers:R.headers,responseType:R.responseType,observe:"response",withCredentials:!!R.withCredentials&&R.withCredentials});return U.applyTimeout(X,this.configOptions.config).pipe((0,S.l)(H=>this.genericRetryStrategy(B,R,H)),(0,v.T)(H=>{const J=(0,P.extend)(H,{config:{data:R.body}});return R.reportRequestData.requestEndTime=Date.now().toString(),U.isReportRequest(R)&&"false"!==R.reportRequestData.reportSuccessTelemetry&&U.httpSuccessEventsSubject.next({response:J,options:R}),J}))}getResponse(L,E={}){return this.makeRequestEx("GET",L,E)}}var V=s(58527);let T=(()=>{class N{constructor(E,g){this.http=E,this.networkStatusService=g}createEndpoint(E){return new U(this.http,this.networkStatusService,E)}static{this.\u0275fac=function(g){return new(g||N)(V.KVO(n.Qq),V.KVO(m.A5))}}static{this.\u0275prov=V.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}}return N})()},17669:(Bt,z,s)=>{"use strict";s.d(z,{FY:()=>d,PK:()=>n,QC:()=>v,qW:()=>l});var n=function(S){return S.Space="Space",S.CapsLock="CapsLock",S.Backspace="Backspace",S.ArrowLeft="ArrowLeft",S.ArrowRight="ArrowRight",S.Enter="Enter",S.Escape="Escape",S.PrimaryType="abc",S.SecondaryType="*&$",S}(n||{}),l=function(S){return S[S.Off=0]="Off",S[S.Once=1]="Once",S[S.Always=2]="Always",S}(l||{});const d=new Map([[["0",")"],"Digit0"],[["1","!"],"Digit1"],[["2","@"],"Digit2"],[["3","#"],"Digit3"],[["4","$"],"Digit4"],[["5","%"],"Digit5"],[["6","^"],"Digit6"],[["7","&"],"Digit7"],[["8","*"],"Digit8"],[["9","("],"Digit9"],[[";",":"],"Semicolon"],[["/","?"],"Slash"],[["`","~"],"Backquote"],[["[","{"],"BracketLeft"],[["\\","|"],"Backslash"],[["]","}"],"BracketRight"],[["'",'"'],"Quote"],[[".",">"],"Period"],[[",","<"],"Comma"],[["-","_"],"Minus"],[["=","+"],"Equal"]]),v=new Map([[[";",":"],186],[["=","+"],187],[[",","<"],188],[["-","_"],189],[[".",">"],190],[["/","?"],191],[["`","~"],192],[["[","{"],219],[["\\","|"],220],[["]","}"],221],[["'",'"'],222]])},56315:(Bt,z,s)=>{"use strict";s.d(z,{me:()=>Qe,RF:()=>T});var n=s(61142),l=s(47973),d=s(29370),v=s(80583),S=s(16229),y=s(36877),f=s(28653),O=s(83915),P=s(4208),_=s(56785),i=s(48852),r=s(17669),a=s(58527),c=s(61904),m=s(76614),M=s(51006),D=s(96542),I=s(3457);let U=(()=>{class at{static{this.\u0275fac=function(xe){return new(xe||at)}}static{this.\u0275cmp=a.VBU({type:at,selectors:[["nv-keyboard-hint"]],standalone:!0,features:[a.aNF],decls:6,vars:3,consts:[["fxLayout","row","fxLayoutAlign","start center"],[1,"fab-hint"]],template:function(xe,lt){1&xe&&(a.j41(0,"div",0)(1,"div",1),a.EFF(2,"Y"),a.k0s(),a.j41(3,"p"),a.EFF(4),a.nI1(5,"translate"),a.k0s()()),2&xe&&(a.R7$(4),a.JRh(a.bMT(5,1,lt.hint)))},dependencies:[M.YF,I.DJ,I.sA,D.h,D.D9],styles:[".fab-hint[_ngcontent-%COMP%]{--font-header-font-size: 18px;--font-header-line-height: 64px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:700;display:flex;background-color:#0b8abc;border-radius:50%;color:#fff;justify-content:center;align-items:center;width:64px;height:64px}.tv-view[_ngcontent-%COMP%] .fab-hint[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .fab-hint[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .fab-hint[_ngcontent-%COMP%]{--font-header-font-size: 36px;--font-header-line-height: 128px}.isLtr[_nghost-%COMP%] .fab-hint[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .fab-hint[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .fab-hint[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .fab-hint[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .fab-hint[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .fab-hint[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}p[_ngcontent-%COMP%]{--font-header-font-size: 20px;--font-header-line-height: 23px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:400;white-space:nowrap;margin:0}.tv-view[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] p[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] p[_ngcontent-%COMP%]{--font-header-font-size: 40px;--font-header-line-height: 46px}"]})}}return at})();var V=s(16490);let T=(()=>{class at{get enabled(){return this._enabled}set enabled(We){this._enabled=We}get onInput$(){return this.onInput.asObservable()}constructor(We,xe){this.matBottomSheet=We,this.overlay=xe,this.onInput=new v.B7,this.shiftKeyPressed=!1,this._enabled=!1}open(){if(!this.enabled)throw new Error("NvKeyboard is not enabled");return this.matBottomSheet.open(Ze,{panelClass:["nv-hig","nv-keyboard"],hasBackdrop:!1,disableClose:!1,autoFocus:!1,restoreFocus:!1})}sendShiftKeyEvent(We,xe){this.onInput.next(new KeyboardEvent(We,{key:"Shift",code:"ShiftLeft",shiftKey:xe,view:window,bubbles:!0,cancelable:!0}))}needShiftKey(We){return'!@#$%^&*()~_+{}|:"<>?'.includes(We)}sendInput(We){if(!this.enabled)throw new Error("NvKeyboard is not enabled");const xe=this.needShiftKey(We.key);xe&&!this.shiftKeyPressed&&"keydown"===We.type&&(this.shiftKeyPressed=!0,this.sendShiftKeyEvent(We.type,!0)),this.onInput.next(We),xe&&this.shiftKeyPressed&&"keyup"===We.type&&(this.shiftKeyPressed=!1,this.sendShiftKeyEvent(We.type,!1))}createHintOverlay(We){const lt=this.overlay.position().flexibleConnectedTo(We).withPositions([{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:24}]),ft=this.overlay.create(new c.rR({positionStrategy:lt})),ht=ft.attach(new m.A8(U)).instance;return{updateHint:Xt=>ht.hint=Xt,dispose:()=>ft.dispose()}}static{this.\u0275fac=function(xe){return new(xe||at)(a.KVO(V.VK),a.KVO(c.hJ))}}static{this.\u0275prov=a.jDH({token:at,factory:at.\u0275fac,providedIn:"root"})}}return at})();const N=["container"],L=(at,It)=>({"caps-lock-always":at,"caps-lock-once":It}),E=()=>["1","2","3","4","5","6","7","8","9","0"],g=at=>({keys:at}),R=()=>["q","w","e","r","t","y","u","i","o","p"],B=()=>["a","s","d","f","g","h","j","k","l","@"],X=()=>["z","x","c","v","b","n","m",",",".","?"],H=at=>({text:at}),J=()=>["`","~","!","@","#","$","%","^","&","*"],re=()=>["=","+","(",")","[","]","{","}","-","_"],ie=()=>["\xa3","\u20ac","'",'"',"|",";",":",",",".","?"],ve=()=>["\u2122","\xa9","\xa2","\xa5","\xa1","\xbf","<",">","\\","/"],ue=at=>({name:at,svgIcon:"space_bar"}),se=(at,It)=>({text:at,key:It,class:"text-capitalize"}),Z=(at,It,We)=>({key:at,class:"caps-lock-button",name:It,svgIcon:We}),Se=at=>({name:at,svgIcon:"keyboard_arrow_left"}),Ce=at=>({name:at,svgIcon:"keyboard_arrow_right"}),Be=(at,It)=>({name:at,key:It,svgIcon:"backspace"}),Xe=at=>({name:at,text:"Hide",class:"text-capitalize"}),He=(at,It)=>({text:at,key:It,class:"text-lower-case"});function Me(at,It){if(1&at&&(a.qex(0),a.j41(1,"tr",null,11),a.eu8(3,14),a.j41(4,"td",15),a.eu8(5,16),a.k0s()(),a.j41(6,"tr"),a.eu8(7,14),a.j41(8,"td",17),a.eu8(9,16),a.k0s(),a.j41(10,"td",17),a.eu8(11,16),a.k0s()(),a.j41(12,"tr"),a.eu8(13,14),a.j41(14,"td",18),a.eu8(15,16),a.k0s()(),a.j41(16,"tr"),a.eu8(17,14),a.k0s(),a.j41(18,"tr")(19,"td",17),a.eu8(20,16),a.k0s(),a.j41(21,"td",19),a.eu8(22,16),a.k0s(),a.j41(23,"td",17),a.eu8(24,14),a.k0s(),a.j41(25,"td",20),a.eu8(26,16),a.k0s()(),a.bVm()),2&at){const We=a.XpG(),xe=a.sdS(5),lt=a.sdS(9),ft=a.sdS(11),ht=a.sdS(13),Xt=a.sdS(15),Ht=a.sdS(17),Je=a.sdS(19),tt=a.sdS(21),rt=a.sdS(23);a.R7$(3),a.Y8G("ngTemplateOutlet",xe)("ngTemplateOutletContext",a.eq3(18,g,a.lJ4(17,E))),a.R7$(2),a.Y8G("ngTemplateOutlet",Je),a.R7$(2),a.Y8G("ngTemplateOutlet",xe)("ngTemplateOutletContext",a.eq3(21,g,a.lJ4(20,R))),a.R7$(2),a.Y8G("ngTemplateOutlet",Xt),a.R7$(2),a.Y8G("ngTemplateOutlet",Ht),a.R7$(2),a.Y8G("ngTemplateOutlet",xe)("ngTemplateOutletContext",a.eq3(24,g,a.lJ4(23,B))),a.R7$(2),a.Y8G("ngTemplateOutlet",ft),a.R7$(2),a.Y8G("ngTemplateOutlet",xe)("ngTemplateOutletContext",a.eq3(27,g,a.lJ4(26,X))),a.R7$(3),a.Y8G("ngTemplateOutlet",ht),a.R7$(2),a.Y8G("ngTemplateOutlet",lt),a.R7$(2),a.Y8G("ngTemplateOutlet",rt)("ngTemplateOutletContext",a.eq3(29,H,We.inputSymbol.SecondaryType)),a.R7$(2),a.Y8G("ngTemplateOutlet",tt)}}function Q(at,It){if(1&at&&(a.qex(0),a.j41(1,"tr"),a.eu8(2,14),a.j41(3,"td",15),a.eu8(4,16),a.k0s()(),a.j41(5,"tr"),a.eu8(6,14),a.j41(7,"td",17),a.eu8(8,16),a.k0s(),a.j41(9,"td",17),a.eu8(10,16),a.k0s()(),a.j41(11,"tr"),a.eu8(12,14),a.j41(13,"td",18),a.eu8(14,16),a.k0s()(),a.j41(15,"tr"),a.eu8(16,14),a.k0s(),a.j41(17,"tr")(18,"td",17),a.eu8(19,16),a.k0s(),a.j41(20,"td",19),a.eu8(21,16),a.k0s(),a.j41(22,"td",17),a.eu8(23,14),a.k0s(),a.j41(24,"td",20),a.eu8(25,16),a.k0s()(),a.bVm()),2&at){const We=a.XpG(),xe=a.sdS(5),lt=a.sdS(9),ft=a.sdS(11),ht=a.sdS(13),Xt=a.sdS(15),Ht=a.sdS(17),Je=a.sdS(19),tt=a.sdS(21),rt=a.sdS(23);a.R7$(2),a.Y8G("ngTemplateOutlet",xe)("ngTemplateOutletContext",a.eq3(18,g,a.lJ4(17,J))),a.R7$(2),a.Y8G("ngTemplateOutlet",Je),a.R7$(2),a.Y8G("ngTemplateOutlet",xe)("ngTemplateOutletContext",a.eq3(21,g,a.lJ4(20,re))),a.R7$(2),a.Y8G("ngTemplateOutlet",Xt),a.R7$(2),a.Y8G("ngTemplateOutlet",Ht),a.R7$(2),a.Y8G("ngTemplateOutlet",xe)("ngTemplateOutletContext",a.eq3(24,g,a.lJ4(23,ie))),a.R7$(2),a.Y8G("ngTemplateOutlet",ft),a.R7$(2),a.Y8G("ngTemplateOutlet",xe)("ngTemplateOutletContext",a.eq3(27,g,a.lJ4(26,ve))),a.R7$(3),a.Y8G("ngTemplateOutlet",ht),a.R7$(2),a.Y8G("ngTemplateOutlet",lt),a.R7$(2),a.Y8G("ngTemplateOutlet",rt)("ngTemplateOutletContext",a.eq3(29,H,We.inputSymbol.PrimaryType)),a.R7$(2),a.Y8G("ngTemplateOutlet",tt)}}function A(at,It){if(1&at&&(a.qex(0),a.j41(1,"td")(2,"button",22),a.EFF(3),a.k0s()(),a.bVm()),2&at){const We=It.$implicit;a.R7$(2),a.FS9("name",We),a.R7$(),a.JRh(We)}}function me(at,It){1&at&&a.DNE(0,A,4,2,"ng-container",21),2&at&&a.Y8G("ngForOf",It.keys)}function ne(at,It){if(1&at&&(a.j41(0,"div",26),a.EFF(1),a.k0s()),2&at){const We=a.XpG().key;a.R7$(),a.JRh(We)}}function G(at,It){if(1&at&&a.nrm(0,"mat-icon",27),2&at){const We=a.XpG().svgIcon;a.Y8G("svgIcon",We)}}function W(at,It){if(1&at&&(a.j41(0,"div",23),a.DNE(1,ne,2,1,"div",24),a.j41(2,"button",22),a.EFF(3),a.DNE(4,G,1,1,"mat-icon",25),a.k0s()()),2&at){let We;const xe=It.key,lt=It.svgIcon,ft=It.text,ht=It.name,Xt=It.class;a.R7$(),a.Y8G("ngIf",xe),a.R7$(),a.HbH(Xt),a.FS9("name",null!==(We=ht)&&void 0!==We?We:ft),a.R7$(),a.SpI(" ",ft," "),a.R7$(),a.Y8G("ngIf",lt)}}function $(at,It){if(1&at&&a.eu8(0,14),2&at){const We=a.XpG(),xe=a.sdS(7);a.Y8G("ngTemplateOutlet",xe)("ngTemplateOutletContext",a.eq3(2,ue,We.inputSymbol.Space))}}function le(at,It){if(1&at&&a.eu8(0,14),2&at){const We=a.XpG(),xe=a.sdS(7);a.Y8G("ngTemplateOutlet",xe)("ngTemplateOutletContext",a.l_i(2,se,We.inputSymbol.Enter,We.gamepadKey.LT))}}function Pe(at,It){if(1&at&&a.eu8(0,14),2&at){const We=a.XpG(),xe=a.sdS(7);a.Y8G("ngTemplateOutlet",xe)("ngTemplateOutletContext",a.sMw(2,Z,We.gamepadKey.LB,We.inputSymbol.CapsLock,We.capsLockOff?"thick_arrow_up":"thick_arrow_dash_up"))}}function Fe(at,It){if(1&at&&a.eu8(0,14),2&at){const We=a.XpG(),xe=a.sdS(7);a.Y8G("ngTemplateOutlet",xe)("ngTemplateOutletContext",a.eq3(2,Se,We.inputSymbol.ArrowLeft))}}function At(at,It){if(1&at&&a.eu8(0,14),2&at){const We=a.XpG(),xe=a.sdS(7);a.Y8G("ngTemplateOutlet",xe)("ngTemplateOutletContext",a.eq3(2,Ce,We.inputSymbol.ArrowRight))}}function Le(at,It){if(1&at&&a.eu8(0,14),2&at){const We=a.XpG(),xe=a.sdS(7);a.Y8G("ngTemplateOutlet",xe)("ngTemplateOutletContext",a.l_i(2,Be,We.inputSymbol.Backspace,We.gamepadKey.X))}}function Et(at,It){if(1&at&&a.eu8(0,14),2&at){const We=a.XpG(),xe=a.sdS(7);a.Y8G("ngTemplateOutlet",xe)("ngTemplateOutletContext",a.eq3(2,Xe,We.inputSymbol.Escape))}}function $e(at,It){if(1&at&&a.eu8(0,14),2&at){const We=It.text,xe=a.XpG(),lt=a.sdS(7);a.Y8G("ngTemplateOutlet",lt)("ngTemplateOutletContext",a.l_i(2,He,We,xe.gamepadKey.RB))}}let Ze=(()=>{class at{get capsLockAlways(){return this.capsLockState===r.qW.Always}get capsLockOnce(){return this.capsLockState===r.qW.Once}get capsLockOff(){return this.capsLockState===r.qW.Off}constructor(We,xe,lt){this.focusManager=We,this.nvKeyboardService=xe,this.gamepadService=lt,this.primaryType=!0,this.inputSymbol=r.PK,this.gamepadKey={X:"X",LT:"LT",LB:"LB",RB:"RB"},this.capsLockState=r.qW.Off,this.destroy$=new v.B7,this.pressedKeys=new Set}ngAfterViewInit(){const We=(lt,ft,ht)=>this.gamepadService.onButtonPressed$(lt,ht).pipe((0,f.j)(Xt=>!Xt),(0,O.T)(Xt=>[ft,Xt]));let xe;(0,S.h)(We(i.dt.X,r.PK.Backspace,{repeat:!0}),We(i.dt.LeftTrigger,r.PK.Enter,{repeat:!0}),We(i.dt.LeftBumper,r.PK.CapsLock),We(i.dt.RightBumper,r.PK.PrimaryType),We(i.dt.B,r.PK.Escape)).pipe((0,P.Q)(this.destroy$)).subscribe(([lt,ft])=>{this.processEvent(this.newKeyboardEvent(ft?"keydown":"keyup",lt))}),(0,S.h)((0,y.R)(this.container.nativeElement,"mousedown"),(0,y.R)(this.container.nativeElement,"mouseup")).pipe((0,P.Q)(this.destroy$)).subscribe(lt=>{if(lt.target instanceof HTMLButtonElement){const ft="mousedown"===lt.type?"keydown":"keyup";lt.preventDefault(),("keydown"===ft||lt.target===xe)&&this.processEvent(this.newKeyboardEvent(ft,lt.target.name)),xe=lt.target}}),this.focusCentralButton()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}toggleKeyboardType(){this.primaryType=!this.primaryType,this.focusCentralButton()}focusCentralButton(){setTimeout(()=>{const We=this.container.nativeElement,xe=We.rows[Math.floor(We.rows.length/2)],lt=xe.cells[Math.floor(xe.cells.length/2)];this.focusManager.focusChild(lt,"initial")})}toggleCapsLock(){this.capsLockState=this.capsLockOff?r.qW.Once:this.capsLockOnce?r.qW.Always:r.qW.Off}escapeKeyDown(We){We.stopPropagation()}keyDown(We){We.isTrusted?(this.nvKeyboardService.sendInput(We),(We.key.includes("Arrow")||"Tab"===We.key)&&We.preventDefault()):We.target instanceof HTMLButtonElement&&"Enter"===We.key&&(this.processEvent(We,We.target.name),this.lastKeydownEvent=We)}keyUp(We){We.isTrusted?this.nvKeyboardService.sendInput(We):We.target instanceof HTMLButtonElement&&"Enter"===We.key&&(this.processEvent(We,We.target.name),this.lastKeydownEvent?.target===We.target&&(this.lastKeydownEvent=void 0))}focusOut(){this.lastKeydownEvent?.target instanceof HTMLButtonElement&&(this.processEvent(this.lastKeydownEvent,this.lastKeydownEvent.target.name,"keyup"),this.lastKeydownEvent=void 0)}processEvent(We,xe,lt){const ft=xe??We.key,ht=this.newKeyboardEvent(lt??We.type,ft),Xt=1===ft.length,Ht="keyup"===ht.type;ft===r.PK.PrimaryType||ft===r.PK.SecondaryType?Ht&&this.toggleKeyboardType():ft===r.PK.CapsLock?Ht&&this.toggleCapsLock():Xt?(this.nvKeyboardService.sendInput(ht),this.capsLockOnce&&(this.capsLockState=r.qW.Off)):this.nvKeyboardService.sendInput(ht)}getKeyCode(We){for(const[lt,ft]of r.FY.entries())if(lt.includes(We))return ft;return[r.PK.Escape,r.PK.Backspace,r.PK.ArrowLeft,r.PK.ArrowRight,r.PK.Enter,r.PK.Space,r.PK.CapsLock].includes(We)?We:1===We.length&&/^[A-Za-z]+$/.test(We)?"Key"+We.toUpperCase():void 0}newKeyboardEvent(We,xe){const lt=this.nvKeyboardService.needShiftKey(xe);let ft=!1;const ht=this.pressedKeys.has(xe);return"keydown"===We?(ht||this.pressedKeys.add(xe),ft="Shift"!==xe&&ht):"keyup"===We&&ht&&this.pressedKeys.delete(xe),new KeyboardEvent(We,{key:xe,code:this.getKeyCode(xe),shiftKey:lt,repeat:ft,modifierCapsLock:!this.capsLockOff,view:window,bubbles:!0,cancelable:!0})}static{this.\u0275fac=function(xe){return new(xe||at)(a.rXU(_.c_),a.rXU(T),a.rXU(i.bi))}}static{this.\u0275cmp=a.VBU({type:at,selectors:[["nv-keyboard"]],viewQuery:function(xe,lt){if(1&xe&&a.GBs(N,5),2&xe){let ft;a.mGM(ft=a.lsd())&&(lt.container=ft.first)}},hostBindings:function(xe,lt){1&xe&&a.bIt("keydown.escape",function(ht){return lt.escapeKeyDown(ht)})("keydown",function(ht){return lt.keyDown(ht)})("keyup",function(ht){return lt.keyUp(ht)})("focusout",function(){return lt.focusOut()})},standalone:!0,features:[a.aNF],decls:24,vars:6,consts:[["container",""],["keyList",""],["composite",""],["spaceBar",""],["enter",""],["capsLock",""],["arrowLeft",""],["arrowRight",""],["backspace",""],["hide",""],["keyboardType",""],["row1",""],["nvTrapFocus","","nvSpatialNavigationContainer","",3,"ngClass"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["colspan","4",1,"top-right-cell"],[3,"ngTemplateOutlet"],["colspan","2"],["rowspan","2","colspan","4"],["colspan","6"],["colspan","4"],[4,"ngFor","ngForOf"],["mat-button","",3,"name"],[1,"key-container"],["class","keypad-circle",4,"ngIf"],[3,"svgIcon",4,"ngIf"],[1,"keypad-circle"],[3,"svgIcon"]],template:function(xe,lt){1&xe&&(a.j41(0,"table",12,0),a.DNE(2,Me,27,31,"ng-container",13)(3,Q,26,31,"ng-container",13),a.k0s(),a.DNE(4,me,1,1,"ng-template",null,1,a.C5r)(6,W,5,7,"ng-template",null,2,a.C5r)(8,$,1,4,"ng-template",null,3,a.C5r)(10,le,1,5,"ng-template",null,4,a.C5r)(12,Pe,1,6,"ng-template",null,5,a.C5r)(14,Fe,1,4,"ng-template",null,6,a.C5r)(16,At,1,4,"ng-template",null,7,a.C5r)(18,Le,1,5,"ng-template",null,8,a.C5r)(20,Et,1,4,"ng-template",null,9,a.C5r)(22,$e,1,5,"ng-template",null,10,a.C5r)),2&xe&&(a.Y8G("ngClass",a.l_i(3,L,lt.capsLockAlways,lt.capsLockOnce)),a.R7$(2),a.Y8G("ngIf",lt.primaryType),a.R7$(),a.Y8G("ngIf",!lt.primaryType))},dependencies:[n.bT,n.YU,n.T3,l.wG,l.iV,d.m_,d.An,_.D2,_.RM],styles:['table[_ngcontent-%COMP%]{width:100vw;height:23.4vw;border-spacing:0;direction:ltr}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:20%}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] td.top-right-cell[_ngcontent-%COMP%]{width:20%}table[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:flex;width:100%;height:100%;font-size:max(1.5vw,14px);font-weight:400;text-transform:lowercase;place-content:center;align-items:center;border:1px solid rgba(0,0,0,.5);background-color:#29292980}table[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{display:flex;width:unset;height:unset;font-size:max(1.5vw,14px)}table[_ngcontent-%COMP%] button.text-capitalize[_ngcontent-%COMP%]{text-transform:capitalize}table[_ngcontent-%COMP%] button.cdk-keyboard-focused[_ngcontent-%COMP%], table[_ngcontent-%COMP%] button.cdk-program-focused[_ngcontent-%COMP%]{border:1px solid #ffffff}table[_ngcontent-%COMP%] .key-container[_ngcontent-%COMP%]{position:relative;height:100%}table[_ngcontent-%COMP%] .key-container[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:max(1.5vw,14px)}table[_ngcontent-%COMP%] .key-container[_ngcontent-%COMP%] .caps-lock-button[_ngcontent-%COMP%]:before{position:absolute;background-color:#fff;border-radius:50%;width:calc(max(1.5vw,14px)/2);height:calc(max(1.5vw,14px)/2);top:10px;left:10px;content:""}table[_ngcontent-%COMP%] .key-container[_ngcontent-%COMP%] .keypad-circle[_ngcontent-%COMP%]{display:table-cell;position:absolute;background-color:#0b8abc;width:max(1.5vw,14px);height:max(1.5vw,14px);border-radius:50%;line-height:max(1.5vw,14px);font-size:max(.8vw,6px);color:#fff;text-align:center;vertical-align:middle;top:calc(50% - (max(1.5vw,14px)/2));right:10px;z-index:1;pointer-events:none}table.caps-lock-always[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(.text-capitalize):not(.text-lower-case), table.caps-lock-once[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(.text-capitalize):not(.text-lower-case){text-transform:uppercase}table.caps-lock-always[_ngcontent-%COMP%]:not(.caps-lock-once) .key-container[_ngcontent-%COMP%] .caps-lock-button[_ngcontent-%COMP%]:before, table.caps-lock-once[_ngcontent-%COMP%]:not(.caps-lock-once) .key-container[_ngcontent-%COMP%] .caps-lock-button[_ngcontent-%COMP%]:before{background-color:#76b900}']})}}return at})(),Qe=(()=>{class at{static{this.\u0275fac=function(xe){return new(xe||at)}}static{this.\u0275mod=a.$C({type:at})}static{this.\u0275inj=a.G2t({imports:[Ze,U]})}}return at})();s(99469)},25172:(Bt,z,s)=>{"use strict";s.d(z,{YQ:()=>S,ds:()=>d,ry:()=>v});var n=s(20924),l=s(58527),d=n.Or.Common.Applicationcontrol.State1;let v=(()=>{class y{static{this.\u0275fac=function(P){return new(P||y)}}static{this.\u0275prov=l.jDH({token:y,factory:y.\u0275fac})}}return y})();const S=n.Ts.Common.Systeminfo.GetSystemInfo.module},21172:(Bt,z,s)=>{"use strict";s.d(z,{P:()=>r});var n=s(85735),l=s(43848),d=s(16229),v=s(3496),S=s(25172),y=s(43187),f=s(53461),O=s(10174),P=s(99469),_=s(58527),i=s(3678);let r=(()=>{class a{constructor(m,M){this.plugins=M,this.defualtMandatoryPluginTimeout=3e4,this.pluginsActivationMap=new Map,this.hasMandatoryPluginActivationNotificationTimedOut=new n.m(1),this.pluginsLoadInfo=[],this.pluginsLoadInfoSub$=new n.m(1),this.mandatoryPluginNames=[],this.optionalPluginNames=[],this.logger=m.getLogger("PluginsNotificationService"),this.mandatoryPluginsLoaded=new n.m(1),this.optionalPluginLoaded=new n.m(1),this.mandatoryPluginNames=M.mandatoryModuleNames.map(D=>D.toLowerCase())??[],this.optionalPluginNames=M.optionalModulesNames.map(D=>D.toLowerCase())??[],this.logger.info(`Mandatory plugins list ${this.mandatoryPluginNames} \n optional plugins list ${this.optionalPluginNames}`)}isMandatoryPlugin(m){const M=m.toLowerCase();return!!this.mandatoryPluginNames?.find(D=>D===M)}isOptionalPlugin(m){const M=m.toLowerCase();return!!this.optionalPluginNames?.find(D=>D===M)}getCurrentPluginsLoadinfo(){return this.pluginsLoadInfo}getPluginsLoadInfo$(){return this.pluginsLoadInfoSub$.asObservable().pipe((0,f.F)())}handleModuleActivationNotification(m){let M=new Set,D=new Set,I=new Set;for(const V of m.modules){const T=V.module,N=this.isMandatoryPlugin(T),L=this.isOptionalPlugin(T),E=V.state===S.ds.active,g=T.toLowerCase();this.pluginsActivationMap.has(g)||this.pluginsActivationMap.set(g,new n.m(1)),this.pluginsActivationMap.get(g).next(E);const R=this.pluginsLoadInfo.find(B=>B.pluginName===T);(!R||R&&!R.isLoaded&&E)&&(this.pluginsLoadInfo=this.pluginsLoadInfo.filter(B=>B.pluginName!==T),this.pluginsLoadInfo.push({pluginName:T,isLoaded:E,loadDurationMs:Date.now()-this.pluginLoadStartTime})),N?E?M.add(T):(this.mandatoryPluginsLoaded.next({loaded:!1,name:T}),this.timerSub&&this.timerSub.unsubscribe()):L&&(E?D.add(T):I.add(T))}if(M.size!==this.plugins.mandatoryModuleNames.length)return;this.mandatoryPluginsLoaded.next({loaded:!0}),this.timerSub&&this.timerSub.unsubscribe();const U=D.size+I.size;if(D.size===this.plugins.optionalModulesNames.length)this.optionalPluginLoaded.next({loaded:!0});else if(I.size>0)if(1===I.size){const[V]=I;this.optionalPluginLoaded.next({loaded:!1,name:V})}else this.optionalPluginLoaded.next({loaded:!1});U+M.size===this.plugins.mandatoryModuleNames.length+this.plugins.optionalModulesNames.length&&this.pluginsLoadInfoSub$.next(this.pluginsLoadInfo)}get mandatoryPluginsLoaded$(){return this.mandatoryPluginsLoaded.asObservable().pipe((0,f.F)())}get optionalPluginsLoaded$(){return this.optionalPluginLoaded.asObservable().pipe((0,f.F)())}registerForModulesActiveNotification(){this.modulesActivationNotificationSub=this.bridgeCommandCefExecuteCommand(y.T.Common.Applicationcontrol.ModulesActiveNotification).subscribe(m=>{this.logger.info("ModuleActiveNotification state ",m),m.modules.length>0&&(this.handleModuleActivationNotification(m),this.logger.info("plugins loaded",m.modules))},m=>{this.logger.error("MandatoryPluginsHandlerService failed with error: ",m),this.mandatoryPluginsLoaded.next({loaded:!1,name:""}),this.modulesActivationNotificationSub.unsubscribe()})}isPluginLoaded$(m){if(!P.zk.isCefPlatform())return(0,l.of)(!0);const M=m.toLocaleLowerCase();return this.pluginsActivationMap.has(M)||this.pluginsActivationMap.set(M,new n.m(1)),this.isMandatoryPlugin(M)?(0,d.h)(this.pluginsActivationMap.get(M).asObservable(),this.hasMandatoryPluginActivationNotificationTimedOut.asObservable().pipe((0,O.u)(!1))).pipe((0,f.F)()):this.pluginsActivationMap.get(M).asObservable().pipe((0,f.F)())}init(m){this.bridgeCommandCefExecuteCommand=m,this.pluginLoadStartTime=Date.now(),this.registerForModulesActiveNotification(),this.plugins.mandatoryPluginTimeout&&this.triggerLoadingIndicator(!0)}triggerLoadingIndicator(m){m?(this.timerSub&&this.timerSub.unsubscribe(),this.timerSub=(0,v.O)(this.plugins.mandatoryPluginTimeout??this.defualtMandatoryPluginTimeout).subscribe(()=>{this.mandatoryPluginsLoaded.next({loaded:!1}),this.hasMandatoryPluginActivationNotificationTimedOut.next(!0),this.modulesActivationNotificationSub.unsubscribe(),this.timerSub.unsubscribe(),this.timerSub=null})):this.timerSub&&this.timerSub.unsubscribe()}static{this.\u0275fac=function(M){return new(M||a)(_.KVO(i.J6),_.KVO(S.ry))}}static{this.\u0275prov=_.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})()},50801:(Bt,z,s)=>{"use strict";s.d(z,{CQ:()=>ue,EO:()=>N,xI:()=>f,j6:()=>y,qQ:()=>S});var n=s(26513),l=s(80583),d=s(58527),v=s(99469);let S=(()=>{class se{constructor(Se){this.enableListenerSubject=new n.t(!0),this.exitStreamerFlowNotify$=new l.B7,this.logger=Se.getLogger("ProjectInterfaceService"),this.closeOSC$=new l.B7,this.openIGOSystemSettings$=new l.B7,this.quitStreaming$=new l.B7,this.sendCustomMessage$=new l.B7,this.onCustomMessage$=new l.B7,this.isNonEnglishKeyboardLayout$=new l.B7,this._streamingBegin$=new l.B7,this._streamingEnd$=new l.B7,this._streamingSessionSetupSuccess$=new l.B7}get streamingSessionSetupSuccess$(){return this._streamingSessionSetupSuccess$.asObservable()}get streamingBegin$(){return this._streamingBegin$.asObservable()}get streamingEnd$(){return this._streamingEnd$.asObservable()}notifyStreamingSessionSetupSuccess(Se){this._streamingSessionSetupSuccess$.next(Se)}notifyStreamingBegin(Se){this._streamingBegin$.next(Se)}notifyStreamingEnd(Se){this._streamingEnd$.next(Se)}get triggerCloseIGO(){return this.closeOSC$.asObservable()}get triggerOpenIGOSystemSettings(){return this.openIGOSystemSettings$.asObservable()}get triggerQuitStreaming(){return this.quitStreaming$.asObservable()}get enableListener(){return this.enableListenerSubject.asObservable()}get sendCustomMessage(){return this.sendCustomMessage$.asObservable()}get onCustomMessageReceived(){return this.onCustomMessage$.asObservable()}get isNonEnglishKeyboardLayout(){return this.isNonEnglishKeyboardLayout$.asObservable()}get exitStreamerFlowNotify(){return this.exitStreamerFlowNotify$.asObservable()}notifyStreamerFlowExit(){this.exitStreamerFlowNotify$.next(!0)}setNotificationAllowedCallBack(Se){this.logger.verbose("Setting isNotificationAllowed Callback"),this.isNotificationAllowedCallBack=Se}setShortcutCheckCallBacks(Se){this.logger.verbose("Setting checkIfShortcutIsPresent Callback"),this.checkIfShortcutIsPresentCallback=Se}setExitStreamerCallBack(Se){this.logger.verbose("Setting exitStreamer Callback"),this.exitStreamerCallBack=Se}resumeListening(){this.enableListenerSubject.next(!0)}pauseListening(){this.enableListenerSubject.next(!1)}quitStreaming(){this.quitStreaming$.next(!0)}closeIGO(){this.closeOSC$.next(!0)}openIGOSystemSettings(){this.openIGOSystemSettings$.next(!0)}setForceTouchModeCallback(Se){this.logger.verbose("Setting force touch mode callback"),this.getForceTouchMode=Se}postCustomMessage(Se,Ce,Be){const Xe={messageType:Be||"customMessage",messageRecipient:Ce,data:Se};this.logger.verbose("CustomMessage being sent:",Xe),this.sendCustomMessage$.next(Xe)}onCustomMessage(Se){Se.data=Se.data.replace("\0",""),this.onCustomMessage$.next(Se)}setIsNonEnglishKeyboardLayout(Se){this.isNonEnglishKeyboardLayout$.next(Se)}static{this.\u0275fac=function(Ce){return new(Ce||se)(d.KVO(v.J6))}}static{this.\u0275prov=d.jDH({token:se,factory:se.\u0275fac,providedIn:"root"})}}return se})(),y=(()=>{class se{static{this.\u0275fac=function(Ce){return new(Ce||se)}}static{this.\u0275prov=d.jDH({token:se,factory:se.\u0275fac})}}return se})();const f=new d.nKC("NV_PROJECTINTERFACE_CONFIG");var O=s(43848),P=s(93181),_=s(31315),i=s(75707),r=s(65706),a=s(14714),c=s(83915),m=s(79539),M=s(4208),D=s(10174),I=s(91384),U=s(26875),V=s(20924),T=s(89284),N=function(se){return se.PermissionPending="PermissionPending",se.PermissionDenied="PermissionDenied",se.Muted="Muted",se.Unmuted="Unmuted",se.NoMicFound="NoMicFound",se}(N||{}),L=function(se){return se.PerformaceWarning="microphone.performanceWarning",se.PermissionBlocked="microphone.micBlockedWarning",se.PermissionBlockedMacOS="microphone.micBlockedWarningMacOS",se.PermissionBlockedWindows="microphone.micBlockedWarningWindows",se}(L||{});const E="undefined",g={startState:E,requestedState:E,streamSessionId:E,subSessionId:E,resultState:E};var R=s(81834),B=function(se){return se.Start="Start",se.Stop="Stop",se.Initializing="Initializing",se.Muted="Muted",se.Unmuted="Unmuted",se.PermissionPending="PermissionPending",se.PermissionDenied="PermissionDenied",se.NoMicFound="NoMicFound",se}(B||{}),X=function(se){return se.Initialize="Initialize",se.UnmuteMic="UnmuteMic",se.MuteMic="MuteMic",se.AwaitPermssion="AwaitPermssion",se.DenyPermission="DenyPermission",se.LookForMic="LookForMic",se.StopMic="StopMic",se}(X||{});const H=new Map([[N.Unmuted,X.UnmuteMic],[N.Muted,X.MuteMic],[N.PermissionPending,X.AwaitPermssion],[N.PermissionDenied,X.DenyPermission],[N.NoMicFound,X.LookForMic]]);var J=s(65597),re=s(96542),ie=s(72945),ve=s(78812);let ue=(()=>{class se{constructor(Se,Ce,Be,Xe,He,Me,Q,A){this.snackbar=Be,this.bridgeService=Xe,this.translateService=He,this.sharedStorageService=Me,this.telemetryService=Q,this.systemInfoService=A,this.blockName="gfnMicState",this.isInitialized=!1,this.currentMicState=new n.t(N.PermissionPending),this.micInfo=g,this.isMicToggled=!1,this.stopSubject=new l.B7,this.micStateMachine=new R.Z3({tag:R.A6.MicrophoneStateMachine,states:{[B.Start]:{onExit:me=>(0,O.of)(me).pipe((0,i.ZZ)(ne=>this.applyUserPreference(ne)))},[B.Initializing]:{onEnter:me=>(0,O.of)(me).pipe((0,i.ZZ)(ne=>this.completeInitialization(ne)),(0,i.ZZ)(ne=>this.updateStateValue(ne))),onExit:me=>(0,O.of)(me).pipe((0,i.ZZ)(ne=>this.sendInitTelemetry(ne)))},[B.Unmuted]:{onEnter:me=>(0,O.of)(me).pipe((0,i.ZZ)(ne=>this.showToastMessage(ne)),(0,i.ZZ)(ne=>this.writeUserPreference(ne)),(0,i.ZZ)(ne=>this.sendToggleTelemetry(ne)),(0,i.ZZ)(ne=>this.updateStateValue(ne)))},[B.Muted]:{onEnter:me=>(0,O.of)(me).pipe((0,i.ZZ)(ne=>this.writeUserPreference(ne)),(0,i.ZZ)(ne=>this.sendToggleTelemetry(ne)),(0,i.ZZ)(ne=>this.updateStateValue(ne)))},[B.PermissionPending]:{onEnter:me=>(0,O.of)(me).pipe((0,i.ZZ)(ne=>this.sendToggleTelemetry(ne)),(0,i.ZZ)(ne=>this.updateStateValue(ne)))},[B.PermissionDenied]:{onEnter:me=>(0,O.of)(me).pipe((0,i.ZZ)(ne=>this.showToastMessage(ne)),(0,i.ZZ)(ne=>this.sendToggleTelemetry(ne)),(0,i.ZZ)(ne=>this.updateStateValue(ne)))},[B.NoMicFound]:{onEnter:me=>(0,O.of)(me).pipe((0,i.ZZ)(ne=>this.sendToggleTelemetry(ne)),(0,i.ZZ)(ne=>this.updateStateValue(ne)))},[B.Stop]:{}},transitions:{[X.Initialize]:[{from:B.Start,to:B.Initializing}],[X.UnmuteMic]:[{from:B.Initializing,to:B.Unmuted},{from:B.Muted,to:B.Unmuted},{from:B.PermissionPending,to:B.Unmuted},{from:B.NoMicFound,to:B.Unmuted},{from:B.PermissionDenied,to:B.Unmuted},{from:B.Unmuted,to:B.Unmuted}],[X.MuteMic]:[{from:R.cL,to:B.Muted}],[X.AwaitPermssion]:[{from:B.Initializing,to:B.PermissionPending},{from:B.NoMicFound,to:B.PermissionPending}],[X.DenyPermission]:[{from:B.Initializing,to:B.PermissionDenied},{from:B.PermissionPending,to:B.PermissionDenied},{from:B.PermissionDenied,to:B.PermissionDenied},{from:B.Muted,to:B.PermissionDenied}],[X.LookForMic]:[{from:R.cL,to:B.NoMicFound}],[X.StopMic]:[{from:R.cL,to:B.Stop}]},startState:B.Start,endState:B.Stop}),this.logger=Se.getLogger("MicrophoneService"),this.shouldApplyPreference=Ce?.saveMicPreference??!0}toggleMicrophone(){this.isMicToggled=!0,this.currentMicState$.pipe((0,r.s)(1)).subscribe(Se=>{(0,U.set)(this.micInfo,"startState",Se),Se===N.Unmuted?(this.setMicrophoneState(!1),(0,U.set)(this.micInfo,"requestedState",N.Muted),this.logger.info(`Mic button pressed, current state: ${Se}, requested state: Muted`)):(this.setMicrophoneState(!0),(0,U.set)(this.micInfo,"requestedState",N.Unmuted),this.logger.info(`Mic button pressed, current state: ${Se}, requested state: Unmuted`))})}get currentMicState$(){return this.currentMicState.asObservable()}getMicEvent(){this.logger.info("Get microphone event called"),this.bridgeService.executeCommand(V.Ts.Gfn.Streaming.GetMicState).subscribe()}setMicrophoneState(Se){this.bridgeService.executeCommand(V.Ts.Gfn.Streaming.SetMicState,{enable:Se}).subscribe()}start(Se,Ce,Be=!1){this.logger.info("Started"),(0,U.set)(this.micInfo,"streamSessionId",Se||E),(0,U.set)(this.micInfo,"subSessionId",Ce||E),this.setupCallback(Se,Ce,this.shouldApplyPreference,Be),this.getMicEvent()}stop(){this.logger.info("Stopped"),this.isInitialized=!1,this.stopSubject.next(),this.micStateMachine.on(X.StopMic,null).subscribe(Se=>this.micStateMachine.reset(),Se=>this.micStateMachine.reset())}willBeEnabledOnStreamStart(){return(0,P.p)([this.sharedStorageService.readBlock(this.blockName).pipe((0,a.W)(Se=>(0,O.of)(null))),this.bridgeService.executeCommand(V.Ts.Gfn.Streaming.ShouldDefaultEnableMic)]).pipe((0,c.T)(([Se,Ce])=>Ce&&((0,U.isEmpty)(Se)||Se?.preference===N.Unmuted)),(0,r.s)(1))}setupCallback(Se,Ce,Be,Xe=!1){this.logger.info("Microphone callback is set up"),(0,_.zV)([this.bridgeService.executeCommand(V.Ts.Gfn.Streaming.RegisterMicCallback),this.sharedStorageService.readBlock(this.blockName).pipe((0,a.W)(He=>(0,O.of)(null))),Xe?(0,O.of)(!0):this.bridgeService.executeCommand(V.Ts.Gfn.Streaming.ShouldDefaultEnableMic),this.systemInfoService.getDeviceOSType(),(0,O.of)(Se),(0,O.of)(Ce)]).pipe((0,c.T)(([He,Me,Q,A,me,ne])=>this.getActionAndStateData({...He,blockData:Me,shouldDefaultEnableMic:Q,osType:A,streamSessionId:me,streamSubSessionId:ne,shouldApplyPreference:Be})),(0,m.H)(([He,Me])=>this.micStateMachine.on(He,Me).pipe((0,a.W)(Q=>(this.logger.info("error occurred:",Q.code,Q.message,Q.data),(0,O.of)(Q))))),(0,M.Q)(this.stopSubject)).subscribe({next:He=>this.logger.info("Current mic state:",this.micStateMachine.currentState),error:He=>this.logger.info("Unexpected error occurred:",He),complete:()=>this.logger.info("Observable stream terminated")})}getActionAndStateData(Se){return this.logger.info("getActionAndStateData",Se),[this.isInitialized?H.get(Se.uiMicState):X.Initialize,Se]}updateStateValue(Se){return this.logger.info("updateStateValue",Se),this.currentMicState.next(Se.uiMicState),(0,O.of)(Se)}applyUserPreference(Se){this.logger.info("applyUserPreference",Se);let Ce=!1;return Se.shouldApplyPreference&&((0,U.isEmpty)(Se.blockData)&&Se.shouldDefaultEnableMic?(this.logger.info("No preference set, unmuting microphone"),this.setMicrophoneState(!0),Ce=!0):(0,U.isEmpty)(Se.blockData)||(this.logger.info("Not initialized, applying stored user preference:",Se.blockData.preference),Se.blockData.preference===N.Unmuted?(this.setMicrophoneState(!0),Ce=!0):Se.blockData.preference===N.Muted&&(this.setMicrophoneState(!1),Ce=!0))),Ce||this.getMicEvent(),(0,O.of)(Se)}sendInitTelemetry(Se){return this.logger.info("sendInitTelemetry",Se),this.telemetryService.push(new T.Yjq({uiMicState:Se.uiMicState,internalMicState:Se.internalMicState,streamSessionId:Se.streamSessionId||E,streamSubSessionId:Se.streamSubSessionId||E})),(0,O.of)(Se)}completeInitialization(Se){return this.logger.info("completeInitialization",Se),this.isInitialized=!0,(0,O.of)(Se)}sendToggleTelemetry(Se){return this.logger.info("sendToggleTelemetry",Se),this.isMicToggled&&((0,U.set)(this.micInfo,"resultState",Se.uiMicState),this.logger.info("Sending telemetry:",this.micInfo),this.isMicToggled=!1,this.telemetryService.push(new T.uxn(this.micInfo))),(0,O.of)(Se)}writeUserPreference(Se){return this.logger.info("writeUserPreference",Se),this.isMicToggled&&Se.shouldApplyPreference?this.sharedStorageService.writeBlock(this.blockName,{preference:Se.uiMicState}).pipe((0,D.u)(Se)):(0,O.of)(Se)}showToastMessage(Se){this.logger.info("showToastMessage",Se);let Ce=null;return Se.uiMicState!==N.Unmuted||Se.osType!==v.t_.ChromeOS||Se.shouldDefaultEnableMic?Se.uiMicState===N.PermissionDenied&&(v.zk.isBrowserPlatform()?Ce=L.PermissionBlocked:v.zk.isCefPlatform()&&this.isMicToggled&&(Se.osType===v.t_.MacOS?Ce=L.PermissionBlockedMacOS:Se.osType===v.t_.Windows&&(Ce=L.PermissionBlockedWindows))):Ce=L.PerformaceWarning,Ce?this.showToastMessageInternal(Ce).pipe((0,D.u)(Se)):(0,O.of)(Se)}showToastMessageInternal(Se){return this.logger.info("Showing toast notification"),this.translateService.get(Se).pipe((0,I.M)(Ce=>{this.snackbar.open(Ce,"",{duration:7e3,horizontalPosition:"left",verticalPosition:"bottom",panelClass:"nv-hig"})}))}static{this.\u0275fac=function(Ce){return new(Ce||se)(d.KVO(v.J6),d.KVO(f,8),d.KVO(J.UG),d.KVO(v.NZ),d.KVO(re.c$),d.KVO(ie.yQ),d.KVO(ve.H0),d.KVO(v.zW))}}static{this.\u0275prov=d.jDH({token:se,factory:se.\u0275fac,providedIn:"root"})}}return se})()},70521:(Bt,z,s)=>{"use strict";s.d(z,{tD:()=>D,fR:()=>ue,_F:()=>V,lS:()=>g,oY:()=>I});var n=s(80583),l=s(16229),d=s(43848),v=s(19392),S=s(55833),y=s(72147),f=s(10174),O=s(65706),P=s(83915),_=s(75707),i=s(8619),r=s(14714);s(57643);var m=function(Q){return Q.Gfn="geforcenow",Q.Nvapp="nvidiaapplication",Q}(m||{}),M=function(Q){return Q.FetchSuccess="SW_FETCH_SUCCESS",Q.RuntimeCacheUpdated="SW_RUNTIME_CACHE_UPDATED",Q}(M||{}),D=function(Q){return Q.ETag="etag",Q.SwCacheBypass="x-sw-cachebypass",Q.XRequestId="x-request-id",Q.SwCacheKeyAppendString="sw-cache-key-append-string",Q.SwCache="sw-cache",Q.SwNotifyFetch="sw-notify-fetch",Q.SwNoDataUpdate="sw-no-data-update",Q}(D||{}),I=function(Q){return Q.SkipWaiting="SKIP_WAITING",Q.GameLaunched="GAME_LAUNCHED",Q.GameExit="GAME_EXIT",Q.CloseStreamerSession="CLOSE_STREAM_SESSION",Q.PushNotification="BROWSER_PUSH_NOTIFICATION",Q.IpcPushNotification="IPC_PUSH_NOTIFICATION",Q.PushNotificationTelemetry="PUSH_NOTIFICATION_TELEMETRY",Q.UiPushNotification="BROWSER_VISIBLE_PUSH_NOTIFICATION",Q.PushNotificationTracing="PUSH_NOTIFICATION_TRACING",Q.SharedStorageUpdate="SHARED_STORAGE_UPDATE",Q.LoggerNotification="LOGGER_NOTIFICATION",Q.GetClientVersion="GET_CLIENT_VERSION",Q.SetLoggerSettings="SET_LOGGING_SETTINGS",Q.GetClientVersionWaitingSW="GET_CLIENT_VERSION_FROM_WAITING_SW",Q}(I||{}),U=function(Q){return Q.INSTALLING="installing",Q.INSTALLED="installed",Q.ACTIVATING="activating",Q.ACTIVATED="activated",Q.REDUNDANT="redundant",Q}(U||{}),V=function(Q){return Q.PushNotificationReceived="PushNotificationReceived",Q.PushNotificationError="PushNotificationError",Q}(V||{}),L=s(58527),E=s(99469);let g=(()=>{class Q{constructor(me){this.swSharedStorageUpdate=new n.B7,this.swLoggingUpdate=new n.B7,this.swActivationRequested$=new n.B7,this.swClientVersion=new n.B7,this.logger=me.getLogger("libraries/service-worker.service"),this.swCacheUpdate$=new n.B7,this.networkFetchSucceeded$=new n.B7,this.swActivated$=new n.B7,this.swUpdateReady$=new n.B7,this.resetSwUpdateCache$=new n.B7,this.swNotifyListener$=new n.B7,this.swPushNotificationListener$=new n.B7,this.swPushNotificationTelemetryListener$=new n.B7,this.swPushNotificationTracing=new n.B7,this.swUpdateReadyCached$=(0,l.h)(this.swUpdateReady$.asObservable(),this.resetSwUpdateCache$).pipe((0,S.t)(1))}get swCacheUpdated(){return this.swCacheUpdate$.asObservable()}get networkResponseReceived(){return this.networkFetchSucceeded$.asObservable()}get swUpdateReady(){return this.swUpdateReady$.asObservable()}get swUpdateReadyCached(){return this.swUpdateReadyCached$}get swActivated(){return this.swActivated$.asObservable()}get swNotifyListener(){return this.swNotifyListener$.asObservable()}get swPushNotificationListener(){return this.swPushNotificationListener$.asObservable()}get swPushNotificationTelemetryListener(){return this.swPushNotificationTelemetryListener$.asObservable()}get swPushNotificationTracingListener(){return this.swPushNotificationTracing.asObservable()}get swSharedStorageUpdate$(){return this.swSharedStorageUpdate.asObservable()}get swLoggingUpdate$(){return this.swLoggingUpdate.asObservable()}get swAssociatedClientVersion(){return this.swClientVersion.asObservable()}initialize(){this.serviceWorkerSupported()?(this.swHandleMessages(),this.swHandleControllerChanges(),this.swHandleUpdates()):this.logger.info("Service worker not supported")}willGFNServiceWorkerHandleRequest(me,ne){if(ne&&ne===JSON.stringify(!0))return!1;for(const G in ue.staleWhileRevalidate)if(ue.staleWhileRevalidate.hasOwnProperty(G)&&ue.staleWhileRevalidate[G].routePattern.test(me))return!0;return!1}serviceWorkerSupported(){return"serviceWorker"in navigator}getSWRegistrationInfo(){return this.serviceWorkerSupported()?{isSuccess:window?.SWRegistrationInfo?.isSuccess,error:window?.SWRegistrationInfo?.error}:null}clearSwUpdateCache(){this.logger.info("SW Update Cache: Cleared"),this.resetSwUpdateCache$.next(null)}checkForUpdates(){return this.serviceWorkerSupported()?navigator.serviceWorker.getRegistration().then(me=>me?this.swHasUpdate(me)?(this.logger.info(`Update available. SW in installing state = ${me.installing}, SW in waiting state = ${me.waiting}`),me):(this.logger.info("Explicitly checking for SW update at same location"),me.update()):Promise.reject("Registration does not exist")).then(me=>{const ne={updateAvailable:this.swHasUpdate(me),error:null};return this.logger.info(`SW updateAvailable: ${ne.updateAvailable}`),ne}).catch(me=>(this.logger.error("SW Update Check: Error",me.toString()),Promise.resolve({updateAvailable:!1,error:me}))):Promise.reject("SW Update Check: Browser does not support service workers")}activateServiceWorker(){return this.serviceWorkerSupported()?(0,v.H)(navigator.serviceWorker.getRegistration()).pipe((0,y.n)(me=>me?this.swHasUpdate(me)?me.installing?(this.logger.info("SW Activate: Waiting for new service worker to be installed"),this.swUpdateReady.pipe((0,f.u)(me),(0,O.s)(1))):(0,d.of)(me):(this.logger.info("SW Activate: Nothing to activate"),(0,d.of)(null)):(this.logger.info("SW Activate: No service worker registration"),(0,d.of)(null))),(0,P.T)(me=>me?.waiting?(this.logger.info("SW Activate: Requested to activate."),me.waiting.postMessage({type:I.SkipWaiting}),this.swActivationRequested$.next(),!0):(this.logger.info("SW Activate: No service worker waiting."),!1)),(0,O.s)(1)):(this.logger.info("SW Activate: Browser does not support service workers"),(0,d.of)(!1))}get swActivationRequested(){return this.swActivationRequested$.asObservable()}postMessageSw(me){this.serviceWorkerSupported()?navigator.serviceWorker.ready.then(ne=>{me.type===I.SharedStorageUpdate?this.logger.verbose("Calling SW postMessage with: ",me):this.logger.info("Calling SW postMessage with: ",me),ne.active?.postMessage({type:me.type,content:me.content})}):this.logger.info("SW PostMsg: Browser does not support service workers")}swHasUpdate(me){return!(!me.installing&&!me.waiting)}swHandleMessages(){navigator.serviceWorker.addEventListener("message",me=>{if(me.data.type===M.RuntimeCacheUpdated){this.logger.info("CacheUpdated event received from Service Worker: ",me.data.payload?.requestUrl);const{cacheName:ne,requestUrl:G,noDataUpdate:W}=me.data.payload;(0,v.H)(caches.open(ne)).pipe((0,_.ZZ)($=>$.match(G)),(0,i.p)($=>!!$),(0,_.ZZ)($=>$.json()),(0,r.W)($=>(this.logger.info("error while checking for cache update",$.toString()),(0,d.of)(null)))).subscribe($=>{$&&(this.logger.info("SW cache updated",ne),this.swCacheUpdate$.next({name:ne,url:G,data:$,noDataUpdate:W}))})}else me?.data.type===I.CloseStreamerSession?(this.logger.info("Msg received from another tab: ",me.data.type),this.swNotifyListener$.next(me.data)):me?.data.type===I.PushNotification?(this.logger.info("Firebase Token received from Service Worker: ",me.data.type),this.swPushNotificationListener$.next(me.data)):me?.data.type===I.PushNotificationTelemetry?(this.logger.info("Telemetry Event received from Service Worker: ",me.data.type),this.swPushNotificationTelemetryListener$.next(me.data)):me?.data.type===I.PushNotificationTracing?(this.logger.info("Telemetry Event received from Service Worker: ",me.data.type),this.swPushNotificationTracing.next(me.data)):me?.data.type===I.SharedStorageUpdate?(this.logger.info("SharedStorageUpdate event received from Service Worker: ",me.data.type),this.swSharedStorageUpdate.next(me.data)):me?.data.type===M.FetchSuccess?(this.logger.info("FetchSuccess event received from Service Worker: ",me.data.payload?.requestUrl),this.networkFetchSucceeded$.next(me.data.payload)):me?.data.type===I.LoggerNotification?(this.logger.info("Logger event received from Service Worker: ",me.data.type),this.swLoggingUpdate.next(me.data)):me?.data.type===I.GetClientVersion?(this.logger.info("Received client version is ",me.data),this.swClientVersion.next(me.data.content)):this.logger.info("Unhandled event received from Service Worker ",me.data)})}swHandleUpdates(){return this.serviceWorkerSupported()?(this.logger.info("SW Updates: Init"),navigator.serviceWorker.getRegistration().then(me=>{if(!me)return Promise.reject("SW Updates: Registration does not exist");let ne=this.swIsActive();return this.logger.info(`SW Updates: Registration Exists, First Installation: ${!ne}`),this.swOnUpdateInstalled(me,G=>{this.logger.info("SW Updates: Update installed"),this.logger.info("SW Updates: Notifying"),G.firstInstallation=!ne,this.swUpdateReady$.next(G),ne=!0}),Promise.resolve()}).catch(me=>this.logger.error("SW Updates: Error",me.toString()))):Promise.reject("SW Updates: Browser does not support service workers")}swOnUpdateInstalled(me,ne){const G=$=>{$.state===U.INSTALLED&&ne({state:$.state,ts:Date.now()})},W=$=>{$&&(this.logger.info("SW Update Listener: Update found"),G($),$.addEventListener("statechange",()=>{this.logger.info("SW Update Listener: New worker state change:",$.state),G($)}))};this.logger.info(`SW registration state: active = ${me.active}, waiting = ${me.waiting}, installed = ${me.installing}`),me?(me.waiting?(this.logger.info("SW Update Listener: An update is ready"),ne({state:U.INSTALLED,ts:Date.now()})):me.installing&&W(me.installing),me.onupdatefound||(this.logger.info("SW Update Listener: Waiting for any updates to current worker"),me.addEventListener("updatefound",()=>W(me.installing)))):this.logger.info("SW Update Listener: No service worker registration")}swIsActive(){return!!navigator.serviceWorker?.controller}swHandleControllerChanges(){if(!this.serviceWorkerSupported()||navigator.serviceWorker.oncontrollerchange)return;this.logger.info("SW Ctrl Change: Init");let me=this.swIsActive();this.logger.info("SW Ctrl Change: has active service worker -",me),navigator.serviceWorker.addEventListener("controllerchange",()=>{if(this.logger.info("SW Ctrl Change: New service worker activated"),this.swActivated$.next({firstInstallation:!me,ts:Date.now()}),!me)return this.logger.info("SW Ctrl Change: First activation"),void(me=!0)})}static{this.\u0275fac=function(ne){return new(ne||Q)(L.KVO(E.J6))}}static{this.\u0275prov=L.jDH({token:Q,factory:Q.\u0275fac,providedIn:"root"})}}return Q})();const R=m.Gfn,B=1440,X=60*B;var J=function(Q){return Q.LCARS="lcars",Q.LCARSStatic="lcarsStatic",Q.LCARSUserAccount="lcarsUserAccount",Q.LCARSClientStrings="lcarsClientStrings",Q.ServiceUrls="service",Q.ServerInfo="server",Q.RConfig="rconfig",Q.GxTarget="gxtarget",Q.Subscriptions="subscriptions",Q.Telemetry="telemetry",Q.Offline="offline",Q.GfcFeedbacks="gfcFeedbacks",Q.PNSNotifications="pnsNotifications",Q.LoginWallData="loginwalldata",Q.LoginWallStrings="loginwallstrings",Q.OverallGfnSupportedLanguages="overallGfnSupportedLanguages",Q.RootAndMall="rootAndMall",Q}(J||{});const ue={redirectSanitizer:{rootAndMall:{name:J.RootAndMall,cacheName:`${R}-${J.RootAndMall}-v1`,routePattern:new RegExp("^/(mall/)?$")}},staleWhileRevalidate:{lcars:{name:J.LCARS,cacheName:`${R}-${J.LCARS}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=panels/,expiry:{maxEntries:10,maxAgeSeconds:14*X,purgeOnQuotaError:!0}},lcarsStatic:{name:J.LCARSStatic,cacheName:`${R}-${J.LCARSStatic}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=staticAppData/,expiry:{maxEntries:5,maxAgeSeconds:14*X,purgeOnQuotaError:!0}},lcarsUserAccount:{name:J.LCARSUserAccount,cacheName:`${R}-${J.LCARSUserAccount}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=userAccount/,expiry:{maxEntries:2,maxAgeSeconds:14*X,purgeOnQuotaError:!0}},lcarsClientStrings:{name:J.LCARSClientStrings,cacheName:`${R}-${J.LCARSClientStrings}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=clientStrings/,expiry:{maxEntries:2,maxAgeSeconds:14*X,purgeOnQuotaError:!0}},serviceUrls:{name:J.ServiceUrls,cacheName:`${R}-${J.ServiceUrls}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+(\/v1\/serviceUrls)/,expiry:{maxEntries:10,maxAgeSeconds:14*X,purgeOnQuotaError:!0}},server:{name:J.ServerInfo,cacheName:`${R}-${J.ServerInfo}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+(\/v2\/serverInfo)/,expiry:{maxEntries:10,maxAgeSeconds:14*X,purgeOnQuotaError:!0}},subscriptions:{name:J.Subscriptions,cacheName:`${R}-${J.Subscriptions}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+(\/v4\/subscriptions)/,expiry:{maxEntries:20,maxAgeSeconds:7*X,purgeOnQuotaError:!0},flushCacheOnResponseCodes:[404]},loginwall:{name:J.LoginWallData,cacheName:`${R}-${J.LoginWallData}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=loginWallData/,expiry:{maxEntries:2,maxAgeSeconds:7*X,purgeOnQuotaError:!0}},loginwallstrings:{name:J.LoginWallStrings,cacheName:`${R}-${J.LoginWallStrings}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=loginWallStrings/,expiry:{maxEntries:2,maxAgeSeconds:7*X,purgeOnQuotaError:!0}},overallGfnSupportedLanguages:{name:J.OverallGfnSupportedLanguages,cacheName:`${R}-${J.OverallGfnSupportedLanguages}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=overallGfnSupportedLanguages/,expiry:{maxEntries:1,maxAgeSeconds:14*X,purgeOnQuotaError:!0}}},networkFirst:{},networkOnly:{telemetry:{name:J.Telemetry,cacheName:`${R}-${J.Telemetry}-v1`,routePattern:/https:\/\/events\.gfe(stage)?\.nvidia\.com\/v1\.0\/events\/json\?immediateRequest=true/,maxRetentionTime:B},gfcFeedbacks:{name:J.GfcFeedbacks,cacheName:`${R}-${J.GfcFeedbacks}-v1`,routePattern:/https:\/\/telemetry\.gfe(stage)?\.nvidia\.com\/gfc\/v4\.0\//,maxRetentionTime:B},pnsNotifications:{name:J.PNSNotifications,cacheName:`${R}-${J.PNSNotifications}-v1`,routePattern:/https:\/\/(stg.pns.nvidiagrid.net)?(pns.geforcenow.com)?\/v1\/unregister/,maxRetentionTime:B}}}},81111:(Bt,z,s)=>{"use strict";s.d(z,{Il:()=>v,lO:()=>S});var n=s(58527),v=function(y){return y.NOT_ATTEMPTED="NOT_ATTEMPTED",y.NOT_APPLICABLE="NOT_APPLICABLE",y.SUCCESS="SUCCESS",y.FAILED="FAILED",y}(v||{});const S=new n.nKC("StorageConfig")},56197:(Bt,z,s)=>{"use strict";s.d(z,{y:()=>E});var n=s(26875),l=s(85735),d=s(26513),v=s(43848),S=s(93181),y=s(31315),f=s(59859),O=s(14714),P=s(65706),_=s(8619),i=s(75707),r=s(83915),a=s(72147),c=s(91384),m=s(10174),M=s(99469),D=s(20924),I=s(81111),U=s(58527),V=D.Or.Common.Sharedstorage.OperationType;const T="sharedStore";let N=(()=>{class g{constructor(B,X){this.dbService=B,this.bridgeService=X}readFromSharedStorage(B){return this.dbService.getGlobalStore(T).getItem(B[0]).pipe((0,i.ZZ)(X=>{if(!X)return this.makeError(204,"Data not found");if(1===B.length)return(0,v.of)(X);{const H=(0,n.get)(X,B.slice(1),null);return null!==H?(0,v.of)(H):this.makeError(204,"Data not found")}}),(0,O.W)(X=>this.makeError(500,"IndexedDB Error: "+JSON.stringify(X))))}writeToSharedStorage(B,X){return this.dbService.getGlobalStore(T).getItem(B[0]).pipe((0,r.T)(H=>1===B.length?X:(0,n.setWith)(H||{},B.slice(1),X,Object)),(0,i.ZZ)(H=>this.executePostCacheUpdateCommand(V.Write,B,H).pipe((0,r.T)(()=>H))),(0,i.ZZ)(H=>this.dbService.getGlobalStore(T).setItem(B[0],H)),(0,i.ZZ)(()=>(0,v.of)(!0)),(0,O.W)(H=>this.makeError(500,"IndexedDB Error during write: "+JSON.stringify(H))))}removeFromSharedStorage(B){return this.dbService.getGlobalStore(T).getItem(B[0]).pipe((0,i.ZZ)(X=>{let J,H=X||{};return 1===B.length?J=this.dbService.getGlobalStore(T).removeItem(B[0]):(H=(0,n.unset)(H,B.slice(1)),J=this.dbService.getGlobalStore(T).setItem(B[0],H)),J}),(0,i.ZZ)(()=>this.executePostCacheUpdateCommand(V.Remove,B)),(0,O.W)(X=>this.makeError(500,"IndexedDB Error during remove: "+JSON.stringify(X))))}getCacheOfSharedStorage(){return this.dbService.getGlobalStore(T).getAllItemsByCursor().pipe((0,i.ZZ)(B=>this.executePostCacheUpdateCommand(V.Cache,[],B).pipe((0,r.T)(()=>B))),(0,O.W)(B=>this.makeError(500,"IndexedDB Error during cache operation: "+JSON.stringify(B))))}executePostCacheUpdateCommand(B,X,H){return M.zk.isBrowserPlatform()?this.bridgeService.executeCommand(D.Ts.Common.Sharedstorage.PostCacheUpdate,{operationType:B,path:X,cacheUpdateData:H??{}}).pipe((0,P.s)(1),(0,m.u)(!0),(0,O.W)(J=>this.makeError(500,"Error during execution of post-cache update command"+JSON.stringify(J)))):(0,v.of)(!0)}makeError(B,X){return(0,f.$)({success:!1,code:B,error:X})}static{this.\u0275fac=function(X){return new(X||g)(U.KVO(M.at),U.KVO(M.NZ))}}static{this.\u0275prov=U.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}}return g})();const L=["migrationState"];let E=(()=>{class g{constructor(B,X,H,J,re){this.bridgeService=B,this.nativeEventService=H,this.indexedDBUtilService=J,this.persistToJSONKeys=[],this.shouldUseJSON=!1,this.migrationStateSubject=new l.m(1),this.initialReadDoneSubject=new d.t(!1),this.logger=X.getLogger("libraries/shared-storage"),this.cachedSharedStorage$=new l.m(1),this.isInitialized=!1,this.isCEFPlatform=M.zk.isCefPlatform(),this.isCEFPlatform?(this.shouldUseJSON=re?.shouldUseJSON,this.persistToJSONKeys=re?.keysToPersistInJSON):this.setMigrationState(I.Il.NOT_APPLICABLE)}initialize(){this.logger.info("init");const B=this.indexedDBUtilService.getCacheOfSharedStorage().pipe((0,O.W)(H=>(this.logger.error(`Error while reading IndexedDB, ${H}`),(0,v.of)({})))),X=this.isCEFPlatform?this.bridgeService.executeCommand(D.Ts.Common.Sharedstorage.Cache).pipe((0,O.W)(H=>(this.logger.error("Error getting cached JSON data",H),(0,v.of)({})))):(0,v.of)({});this.isCEFPlatform?(0,S.p)([X,B]).subscribe(([H,J])=>{this.cachedSharedStorage$.next(this.mergeStorageData(H,J)),this.initialReadDoneSubject.next(!0)}):B.pipe((0,P.s)(1)).subscribe(H=>{this.cachedSharedStorage$.next(H),this.initialReadDoneSubject.next(!0)}),this.initialReadDoneSubject.asObservable().pipe((0,_.p)(H=>H),(0,i.ZZ)(H=>this.nativeEventService.get$(M.D4.SharedStorageUpdate,M.Jm.Types.HandlerEventType.StructuredWindowEvent)),(0,r.T)(H=>JSON.parse(H)),(0,a.n)(H=>this.isCEFPlatform?(0,y.zV)([(0,v.of)(H),B]).pipe((0,r.T)(([J,re])=>this.mergeStorageData(J,re))):(0,v.of)(H)),(0,O.W)(H=>(this.logger.error("error receiving native event",H),this.cachedSharedStorage$.pipe((0,P.s)(1))))).subscribe(H=>{this.logger.info("shared storage cache updated"),this.cachedSharedStorage$.next(H)}),this.isInitialized=!0}mergeStorageData(B,X){let H=B??{};return X?.migrationState?.state===I.Il.SUCCESS&&(H={...H,...X}),H}setMigrationState(B){this.migrationStateSubject.next(B)}getMigrationState$(){return this.migrationStateSubject.asObservable()}readBlock(B){return this.isInitialized||this.initialize(),this.cachedSharedStorage$.pipe((0,P.s)(1),(0,i.ZZ)(X=>{const H=(0,n.get)(X,B.split("/"));return H?(0,v.of)(H):(0,f.$)({code:204})}),(0,O.W)(X=>(this.logReadError(B,X),(0,v.of)({}))))}logReadError(B,X){switch(X.code){case 404:this.logger.info("No shared storage file found, creating a new one.");break;case 204:this.logger.info(`No entry for ${B} exists. Defaulting to empty object.`);break;default:this.logger.error(`Error (${X.code}) ${X.message}. Defaulting to empty object for path ${B}.`)}}writeBlock(B,X,H){const J=this.writeBlockInternal(B,X).pipe((0,P.s)(1),(0,c.M)(re=>{this.logger.info("write status to shared storage for path",B,re)}),(0,O.W)(re=>(this.logger.error("error writing to shared storage for path",B,re),(0,v.of)(!1))));return this.isInitialized||this.initialize(),this.cachedSharedStorage$.pipe((0,P.s)(1),(0,i.ZZ)(re=>(this.cachedSharedStorage$.next((0,n.setWith)(re,B.split("/"),X,Object)),H?J:(J.subscribe(),(0,v.of)(!0)))))}writeBlockInternal(B,X){return this.getMigrationState$().pipe((0,P.s)(1),(0,i.ZZ)(H=>{const J=B.split("/");return this.shouldUseJSONStorage(J,H)?this.bridgeService.executeCommand(D.Ts.Common.Sharedstorage.Write,{path:J,data:X}):this.indexedDBUtilService.writeToSharedStorage(J,X)}))}removeBlock(B){return this.isInitialized||this.initialize(),this.cachedSharedStorage$.pipe((0,P.s)(1),(0,r.T)(X=>{const H=(0,n.unset)(X,B);return this.cachedSharedStorage$.next(X),this.removeBlockInternal(B).subscribe(),H}))}removeBlockInternal(B){return this.getMigrationState$().pipe((0,P.s)(1),(0,i.ZZ)(X=>{const H=B.split("/");return this.shouldUseJSONStorage(H,X)?this.executeRemoveFromJSONSharedStore(B):this.indexedDBUtilService.removeFromSharedStorage(H)}))}executeRemoveFromJSONSharedStore(B){return this.bridgeService.executeCommand(D.Ts.Common.Sharedstorage.Remove,{path:B.split("/")}).pipe((0,m.u)(!0),(0,O.W)(X=>(204===X.code?this.logger.warn(`No entry for ${B} exists. Removal failed.`):this.logger.error(`Error (${X.code}) ${X.message}.`),(0,v.of)(!1))))}getSharedStorageKeys(){return this.isInitialized||this.initialize(),this.cachedSharedStorage$.pipe((0,P.s)(1),(0,r.T)(B=>Object.keys(B)))}loadMigrationState(){return this.indexedDBUtilService.readFromSharedStorage(L).pipe((0,r.T)(B=>B&&B.state?B.state:I.Il.NOT_ATTEMPTED),(0,O.W)(B=>(this.logger.error("Error loading migration state",B),(0,v.of)(I.Il.NOT_ATTEMPTED))))}saveMigrationStateToIndexedDB(B){return this.indexedDBUtilService.writeToSharedStorage(L,{state:B}).pipe((0,O.W)(X=>(this.logger.error("Error saving migration state",X),(0,v.of)(!1))))}initializeMigration(B=!1){return this.isCEFPlatform?B?(this.logger.info("Skipping shared storage migration as requested and setting migration state to NOT_ATTEMPTED"),this.setMigrationState(I.Il.NOT_ATTEMPTED),(0,v.of)(void 0)):this.loadMigrationState().pipe((0,a.n)(X=>X===I.Il.NOT_ATTEMPTED||X===I.Il.FAILED?this.performMigration():(this.setMigrationState(X),(0,v.of)(void 0)))):(this.logger.info("Skipping shared storage migration as its not applicable for NON-CEF platforms"),this.setMigrationState(I.Il.NOT_APPLICABLE),(0,v.of)(void 0))}performMigration(){return this.logger.info("Running Shared Storage Migration ..."),this.migrateKeys().pipe((0,a.n)(B=>{const X=B?I.Il.SUCCESS:I.Il.FAILED;return B||this.logger.error("Migration failed. Continuing with JSON file for shared storage..."),this.setMigrationState(X),this.saveMigrationStateToIndexedDB(X)}),(0,O.W)(B=>(this.logger.error("Error during shared storage migration",B),this.setMigrationState(I.Il.FAILED),this.saveMigrationStateToIndexedDB(I.Il.FAILED))),(0,r.T)(()=>{}))}migrateKeys(){const B=Date.now();return this.bridgeService.executeCommand(D.Ts.Common.Sharedstorage.Cache).pipe((0,a.n)(X=>{const H=[];return Object.keys(X).forEach(J=>{this.persistToJSONKeys.includes(J)||H.push(this.indexedDBUtilService.writeToSharedStorage(J.split("/"),X[J]).pipe((0,r.T)(re=>({key:J,result:re})),(0,O.W)(re=>(this.logger.error(`Failed writing key '${J}' to IndexedDB`,re),(0,v.of)({key:J,result:!1})))))}),0===H.length?(0,v.of)(!0):(0,y.zV)(H).pipe((0,P.s)(1),(0,r.T)(J=>{const re=J.every(ie=>!0===ie.result);return re&&J.forEach(({key:ie})=>{this.executeRemoveFromJSONSharedStore(ie).subscribe()}),this.logger.info("Execution time for migration script (ms): ",Date.now()-B),this.isInitialized=!1,re}))}),(0,O.W)(X=>(this.logger.error("Error migrating shared storage to IndexedDB",X),(0,v.of)(!1))))}shouldUseJSONStorage(B,X){return this.shouldUseJSON&&(X===I.Il.FAILED||X===I.Il.NOT_ATTEMPTED||X===I.Il.SUCCESS&&this.persistToJSONKeys.includes(B[0]))}static{this.\u0275fac=function(X){return new(X||g)(U.KVO(M.NZ),U.KVO(M.J6),U.KVO(M.dU),U.KVO(N),U.KVO(I.lO,8))}}static{this.\u0275prov=U.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}}return g})()},72945:(Bt,z,s)=>{"use strict";s.d(z,{yQ:()=>n.y});var n=s(56197);s(20924),s(81111)},54786:(Bt,z,s)=>{"use strict";s.d(z,{EK:()=>O,Jo:()=>n,O6:()=>f,Pq:()=>d,RH:()=>y,Td:()=>l,eL:()=>P,ie:()=>_,sm:()=>v});const n=":server/authorize?response_mode=query&response_type=id_token+token&device_id=:deviceId&scope=:scope&client_id=:clientId&redirect_uri=:redirectUri&ui_locales=:locale&nonce=:nonce&prompt=select_account",l=":server/authorize?response_type=code&device_id=:deviceId&scope=:scope&client_id=:clientId&redirect_uri=:redirectUri&ui_locales=:locale&nonce=:nonce&prompt=select_account&code_challenge=:codeChallenge&code_challenge_method=S256",d=":server/logout?id_token_hint=:idToken&ui_locales=:locale",v=":server/logout?id_token_hint=:idToken&ui_locales=:locale&post_logout_redirect_uri=:redirect_uri",y={clientToken:null,accessToken:null,idToken:null,user:{sub:"",idp_name:"",idp_id:"",external_id:"",preferred_username:"",consent:{trackTechnicalData:!1,trackBehavioralData:!1},isAuthenticated:!1},clientTokenExpiry:null,accessTokenExpiry:null,idTokenExpiry:null},f="starfleet";var O=function(i){return i.DBName="starfleet",i.DBKey="starfleetSession",i}(O||{}),P=function(i){return i.SharedStorage="sharedStorage",i.IndexedDB="indexedDB",i}(P||{}),_=function(i){return i[i.Failure=0]="Failure",i[i.Success=1]="Success",i[i.Cancel=2]="Cancel",i[i.CloseOnFailure=3]="CloseOnFailure",i}(_||{})},71927:(Bt,z,s)=>{"use strict";s.d(z,{e:()=>P});var n=s(43848),l=s(75707),d=s(83915),v=s(54786),S=s(56197),y=s(26875);class O{static encode(i){const r=new O;return r.data=window.btoa(encodeURIComponent(JSON.stringify(i))),r.authProvider=v.O6,r}static decode(i){return JSON.parse(decodeURIComponent(window.atob(i.data)))}}class P{constructor(i,r,a=v.eL.SharedStorage){this.idTokenRefreshUnderDuration=i,this.data=(0,y.isNil)(r)?Object.assign({},v.RH):r,this.setStorageType(a)}static loadFrom(i,r){let c;return c=i?i instanceof S.y?v.eL.SharedStorage:v.eL.IndexedDB:v.eL.SharedStorage,(c===v.eL.IndexedDB?i.getItem(v.EK.DBKey):i.readBlock("starfleetSession")).pipe((0,l.ZZ)(M=>{const D=M?.authProvider===v.O6?O.decode(M):null,I=new P(r,D,c);return(0,y.isEmpty)(D)?c===v.eL.IndexedDB?I.writeToDb(i):I.writeTo(i):(0,n.of)(I)}))}setStorageType(i){this.storageType=i===v.eL.IndexedDB?v.eL.IndexedDB:v.eL.SharedStorage}writeTo(i){return this.storageType===v.eL.IndexedDB?this.writeToDb(i):i.writeBlock("starfleetSession",O.encode(this.data),!0).pipe((0,d.T)(()=>this))}writeToDb(i){return i.setItem(v.EK.DBKey,O.encode(this.data)).subscribe(),(0,n.of)(this)}hasClientToken(){return!(0,y.isNil)(this.data.clientToken)}isClientTokenValid(){return this.hasClientToken()&&this.data.clientTokenExpiry>Date.now()}hasClientTokenExpired(){return this.hasClientToken()&&this.data.clientTokenExpiry<=Date.now()}hasAccessToken(){return!(0,y.isNil)(this.data.accessToken)}isAccessTokenValid(){return this.hasClientToken()&&this.data.accessTokenExpiry>Date.now()}isIdTokenValid(){return 0===this.data.idTokenExpiry||this.hasClientToken()&&this.data.idTokenExpiry>Date.now()+this.idTokenRefreshUnderDuration}}},46356:(Bt,z,s)=>{"use strict";s.d(z,{gH:()=>S,ie:()=>B.ie,X$:()=>d,hr:()=>n,EK:()=>B.EK,l4:()=>v,eL:()=>B.eL});class n{constructor(){}}var l=s(58527);let d=(()=>{class nt{static{this.\u0275fac=function(It){return new(It||nt)}}static{this.\u0275prov=l.jDH({token:nt,factory:nt.\u0275fac})}}return nt})();var v=function(nt){return nt.LoginAlreadyInProgress="Login Already In Progress",nt.OpenOAuthUrlStarted="Open OAuth url started",nt.OpenOAuthUrlCompleted="Open OAuth url completed",nt.LoginStarted="Login Started",nt.LoginCompleted="Login Completed",nt.LoginRedirectCompleted="Login redirect completed",nt.LoginAbortedByUser="Login Aborted: User Cancelled Login",nt.LoginAbortedAlreadyLoggedIn="Login Aborted: Already Logged In",nt.LoginFailed="Login Failed",nt.LoginFailedNoRetry="Login Failed No Retry",nt.LoginFailedToStart="Login failed to Start",nt.LogoutStarted="Logout Started",nt.LogoutCompleted="Logout Completed",nt.LogoutFailed="Logout Failed",nt.LoginInProgressNeedDisplayCode="Login Started Need Display Code",nt.LoginNotReturningFromLoginPage="Login not returning from login page",nt}(v||{}),S=function(nt){return nt.NOT_LOGGED_IN="Not Logged In, Must login",nt.USER_OFFLINE="User is Offline",nt.ALREADY_LOGGED_IN="Already logged in",nt.AUTH_ERROR="Auth Error",nt.AGE_RESTRICTED="age_restricted",nt.ACCOUNT_LOCKED="account_locked",nt.HTTP_START_FAILED="Http Server start failed",nt.CLIENT_TOKEN_FAIL="Client token url access failed",nt.OAUTH_DATA_EMPTY="JSON parsing fialed for OAUTH Data",nt.STARFLEET_REDIRECT_FAIL="Failure on Starfleet Redirect Page",nt.REDEEM_AUTHCODE_FAILED="Failuer in redeeming auth code",nt.NONCE_VALIDATION_FAILED="Nonce validation failed",nt.ACCOUNT_INACTIVE="account_inactive",nt.LOGIN_CANCELLED_BY_USER="User pressed back from login page",nt.LOGOUT_NOT_SUPPORTED="logout_not_supported",nt.LOGOUT_GENERIC_ERROR="logout_generic_error",nt.LOGIN_SILENT_LOGIN_FAILED="silent_login_failed",nt}(S||{}),B=(s(85735),s(43848),s(59859),s(36466),s(3496),s(91384),s(75707),s(65706),s(83915),s(99047),s(14714),s(55833),s(86447),s(8619),s(43615),s(26875),s(20924),s(99469),s(81834),s(71927),s(54786));s(5798),s(94485),s(6478),s(14709),s(36877),s(56237),s(80583),s(19392),s(10174),s(40198),s(72945),s(99204),s(92262)},57388:(Bt,z,s)=>{"use strict";s.d(z,{n1:()=>Xe});var n=s(58527),l=s(99204),d=s(51006),v=s(61142),S=s(56785);var D=s(99469),I=s(3457),U=s(28139);const V=["surveyFrame"];function T(He,Me){if(1&He){const Q=n.RV6();n.j41(0,"div",5)(1,"iframe",6,0),n.bIt("load",function(me){n.eBV(Q);const ne=n.XpG();return n.Njj(ne.onLoad(me))})("error",function(){n.eBV(Q);const me=n.XpG();return n.Njj(me.onError())}),n.k0s()()}if(2&He){const Q=n.XpG();n.Y8G("hidden",Q.loadingFrame)("ngStyle",Q.nvContainerSize),n.R7$(),n.Y8G("src",Q.getSource(),n.f$h)("ngStyle",Q.nvSize)}}function N(He,Me){if(1&He){const Q=n.RV6();n.j41(0,"div")(1,"nv-hig-dialog",7),n.bIt("primaryButtonClick",function(){n.eBV(Q);const me=n.XpG();return n.Njj(me.dismiss())}),n.k0s()()}if(2&He){const Q=n.XpG();n.R7$(),n.Y8G("data",Q.dialogData)}}function L(He,Me){if(1&He&&(n.j41(0,"div",8)(1,"div"),n.nrm(2,"mat-progress-spinner",9),n.k0s()()),2&He){const Q=n.XpG();n.Y8G("ngStyle",Q.nvContainerSize),n.R7$(2),n.Y8G("diameter",35)}}let E=(()=>{class He{get state(){return this._state}set state(Q){this.logger.info("state updated:",Q),this._state=Q}constructor(Q,A){this.networkStatusService=A,this.continue=new n.bkB,this.nvOnClose=new n.bkB,this.nvOnSend=new n.bkB,this.loadingFrame=!0,this.firstLoad=!0,this.isLoading=!1,this.loadEvent=null,this._state="main",this.errorText="",this.errorTitle="",this.buttonText="",this.dialogData={},this.logger=Q.getLogger("survey-feedback/surveyComponent"),this.logger.info("Attempting to open survey form")}ngOnInit(){this.isLoading=!1,this.loadEvent=null,this.activateOnlineSubscription(),this.isSurveyError&&(this.loadingFrame=!1),this.errorTitle=this.isSurveyError?"feedback.feedbackErrorTitle":"",this.errorText=this.isSurveyError?"feedback.feedbackErrorMessage":"feedback.problemConnectingToNvidia",this.buttonText="feedback.dismiss",this.dialogData={headerText:{text:this.errorTitle},bodyText:{text:this.errorText},primaryButton:{text:this.buttonText}}}onKeyUp(){this.dismiss()}getSource(){return this.nvSource}onError(){this.state="error",this.loadingFrame=!1,this.firstLoad=!1}dismiss(){this.loadEvent&&!this.isSurveyError&&!this.loadingFrame&&this.nvOnClose.emit("escape"),this.nvOnClose.emit("closed")}onLoad(Q){this.loadEvent=Q,this.isLoading=!0,this.loadEvent&&this.loadEvent.target&&this.loadEvent.target.src&&("main"!==this.state&&(this.state="main"),this.firstLoad=!1,this.logger.info("survey form opened"),this.loadingFrame=!1,setTimeout(()=>this.surveyFrame?.nativeElement.focus()),this.isSurveyError&&this.onError())}eventListener(Q){switch(Q.data){case"surveyengine.error":this.logger.error("invalid survey response",Q.data),this.checkIfFailSilently(),this.onError();break;case"surveyengine.nosurvey":case"surveyengine.cancel":this.dismiss();break;case"surveyengine.thanks":this.nvOnSend.emit("sent")}}checkIfFailSilently(){this.failSilently&&this.firstLoad&&(this.firstLoad=!1,this.logger.error("failing silently .."),this.continue.emit("continue"))}activateOnlineSubscription(){this.onlineSubscription=this.networkStatusService.onlineStatusChanged.subscribe(Q=>{"main"!==this.state&&(this.state="main"),this.loadingFrame=!this.isSurveyError,Q?this.isLoading||window.addEventListener("message",A=>{this.eventListener(A)}):(this.isLoading||this.checkIfFailSilently(),this.logger.info("showing survey error"),this.onError())},Q=>{this.logger.error("Error fetching online status at load",Q),this.onError()})}ngOnDestroy(){this.onlineSubscription&&this.onlineSubscription.unsubscribe()}static{this.\u0275fac=function(A){return new(A||He)(n.rXU(D.J6),n.rXU(D.CF))}}static{this.\u0275cmp=n.VBU({type:He,selectors:[["nv-survey"]],viewQuery:function(A,me){if(1&A&&n.GBs(V,5),2&A){let ne;n.mGM(ne=n.lsd())&&(me.surveyFrame=ne.first)}},hostBindings:function(A,me){1&A&&n.bIt("keyup.esc",function(){return me.onKeyUp()},!1,n.tSv)},inputs:{nvSize:"nvSize",nvContainerSize:"nvContainerSize",nvErrorSize:"nvErrorSize",nvSource:"nvSource",failSilently:"failSilently",isSurveyError:"isSurveyError"},outputs:{continue:"continue",nvOnClose:"nvOnClose",nvOnSend:"nvOnSend"},standalone:!0,features:[n.aNF],decls:4,vars:3,consts:[["surveyFrame",""],["nvTrapFocus","",1,"survey-container-parent",3,"ngSwitch"],["class","survey-container",3,"hidden","ngStyle",4,"ngSwitchDefault"],[4,"ngSwitchCase"],["class","survey-loading-dialog-pane","fxLayoutAlign","center center",3,"ngStyle",4,"ngIf"],[1,"survey-container",3,"hidden","ngStyle"],["data-focus-loss-exempt","","id","survey-frame","allow","gamepad",1,"survey-iframe",3,"load","error","src","ngStyle"],[3,"primaryButtonClick","data"],["fxLayoutAlign","center center",1,"survey-loading-dialog-pane",3,"ngStyle"],["mode","indeterminate",1,"mat-accent",3,"diameter"]],template:function(A,me){1&A&&(n.j41(0,"div",1),n.DNE(1,T,3,4,"div",2)(2,N,2,1,"div",3),n.k0s(),n.DNE(3,L,3,2,"div",4)),2&A&&(n.Y8G("ngSwitch",me.state),n.R7$(2),n.Y8G("ngSwitchCase","error"),n.R7$(),n.Y8G("ngIf",me.loadingFrame))},dependencies:[S.ur,S.D2,v.ux,v.fG,v.B3,v.e1,v.bT,d.YF,I.sA,U.eI,l.D6,l.LG],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.survey-loading-dialog-pane[_ngcontent-%COMP%]{background-color:#1f2224;height:610px;width:472px;border:0;overflow-y:overlay;overflow-x:hidden;max-height:80vh}.survey-loading-pane[_ngcontent-%COMP%]{margin:24px}.survey-bottom-filler[_ngcontent-%COMP%]{height:64px}.survey-iframe[_ngcontent-%COMP%]{border:0;max-height:80vh}button.survey-mat-raised-button.mat-accent[_ngcontent-%COMP%]:not([disabled]):hover{background-color:#6ba800}button.survey-mat-raised-button.mat-accent[_ngcontent-%COMP%]:not([disabled]):focus{background-color:#6ba800}button.survey-mat-raised-button.mat-accent[_ngcontent-%COMP%]:not([disabled]):active{background-color:#619900}.survey-nav-icon-container[_ngcontent-%COMP%]{display:block;text-align:center;line-height:48px;font-size:48px;height:48px;width:48px}.isLtr[_nghost-%COMP%] .survey-nav-icon-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .survey-nav-icon-container[_ngcontent-%COMP%]{margin-left:25px}html[dir=ltr][_ngcontent-%COMP%] .survey-nav-icon-container[_ngcontent-%COMP%]{--dummy3: 0;margin-left:25px}.isRtl[_nghost-%COMP%] .survey-nav-icon-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .survey-nav-icon-container[_ngcontent-%COMP%]{margin-right:25px}html[dir=rtl][_ngcontent-%COMP%] .survey-nav-icon-container[_ngcontent-%COMP%]{--dummy3: 0;margin-right:25px}.survey-container[_ngcontent-%COMP%]{overflow-y:hidden;overflow-x:hidden;max-height:80vh;background:#1f2224}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.survey-container[_ngcontent-%COMP%]{overflow-y:hidden;background:#393939}.survey-iframe[_ngcontent-%COMP%]{width:inherit!important;height:inherit!important;min-height:inherit!important;max-height:inherit;padding-bottom:inherit}}@media (max-width: 599.98px) and (orientation: portrait) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape) and (orientation: portrait){.survey-iframe[_ngcontent-%COMP%]{height:-webkit-fill-available!important}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.survey-container[_ngcontent-%COMP%], .survey-loading-dialog-pane[_ngcontent-%COMP%]{width:100vw!important;height:calc(100% - env(safe-area-inset-bottom))!important;min-height:unset!important;max-height:100%;padding-bottom:env(safe-area-inset-bottom)}.survey-container-parent[_ngcontent-%COMP%]{height:100%}}.tv-view[_nghost-%COMP%] .survey-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .survey-container[_ngcontent-%COMP%]{overflow-y:hidden;background:#393939}.tv-view[_nghost-%COMP%] .survey-iframe[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .survey-iframe[_ngcontent-%COMP%]{width:inherit!important;height:inherit!important;min-height:inherit!important;max-height:inherit;padding-bottom:inherit}@media (orientation: portrait){.tv-view[_nghost-%COMP%] .survey-iframe[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .survey-iframe[_ngcontent-%COMP%]{height:-webkit-fill-available!important}}.tv-view[_nghost-%COMP%] .survey-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .survey-container[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .survey-loading-dialog-pane[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .survey-loading-dialog-pane[_ngcontent-%COMP%]{width:100vw!important;height:calc(100% - env(safe-area-inset-bottom))!important;min-height:unset!important;max-height:100%;padding-bottom:env(safe-area-inset-bottom)}.tv-view[_nghost-%COMP%] .survey-container-parent[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .survey-container-parent[_ngcontent-%COMP%]{height:100%}"]})}}return He})();var R=s(26875),B=s(26513),X=s(85735),H=s(43848),J=s(75707),re=s(65706),ie=s(83915),ve=s(1794),ue=s(81834),se=s(74150),Z=s(26537),Se=s(96542),Ce=s(65597);let Xe=(()=>{class He{constructor(Q,A,me,ne,G,W){this.sanitizer=A,this.dialog=me,this.translateService=ne,this.snackbar=G,this.focusManager=W,this.feedbackUrl="",this.feedbackUrlLoaded=new B.t(!1),this.logger=Q.getLogger("FeedbackService"),this.userInfo$=new X.m(1)}getUserInfoUpdated(){return this.userInfo$.asObservable()}onAccountStatusChanged(Q){this.userInfo$.next(Q)}initializeFeedback(Q,A,me,ne){return this.isAdminHubSurvey=!1,this.isAdminHubSurveyError=!1,me().pipe((0,J.ZZ)(G=>G?A().pipe((0,re.s)(1),(0,ie.T)(W=>(W?(this.logger.info("AdminHub Feedback Survey feature is enabled and survey found"),this.setFeedbackUrl(W.surveyContainerUrl),this.feedbackUrlLoaded.next(!0),this.isAdminHubSurvey=!0,this.subscribeToSurveyEvents(W)):(this.logger.info("initializeFeedback - AdminHub Feedback Survey is not availanble"),this.isAdminHubSurveyError=!0,this.setFeedbackUrl("")),!0))):(this.logger.info("Surveys Feature rollout is disabled, show error dialog"),this.isAdminHubSurveyError=!0,this.setFeedbackUrl(""),(0,H.of)(!1))))}setFeedbackUrl(Q){this.feedbackUrl=this.sanitizer.bypassSecurityTrustResourceUrl(Q)}closeFeedbackDialog(){this.logger.trace(ue.N_.UserGesture,ue.YD.Feedback,ue.PC.close," by clicking dismiss"),this.isFeedbackDialogOpen()&&this.globalDialogref.close()}isFeedbackDialogOpen(){return!(0,R.isNil)(this.globalDialogref)&&0===this.globalDialogref.getState()}setUpToastContainer(Q){this.tc=Q}onOpenFeedbackDialog(Q){if(this.logger.trace(ue.N_.UserGesture,ue.YD.Feedback,ue.PC.open,"feedback option"),!this.isFeedbackDialogOpen())return this.globalDialogref=this.focusManager.restoreFocusAfterClosed(()=>{const A=["dialogPaddingRemove","survey-cdk-overlay-pane"];return this.isAdminHubSurveyError&&A.push("survey-cdk-overlay-error-pane"),this.dialog.open(E,{panelClass:A,autoFocus:!1,hasBackdrop:!0,disableClose:!0,maxWidth:"100vw"})}),this.globalDialogref.componentInstance.nvSource=this.feedbackUrl,this.globalDialogref.componentInstance.nvContainerSize={width:this.isAdminHubSurvey?"477px":"472px",height:this.isAdminHubSurvey?"700px":"610px"},this.globalDialogref.componentInstance.nvSize={width:this.isAdminHubSurvey?"477px":"472px",height:this.isAdminHubSurvey?"700px":"610px"},this.globalDialogref.componentInstance.isSurveyError=this.isAdminHubSurveyError,this.globalDialogref.componentInstance.nvOnSend.pipe((0,re.s)(1)).subscribe(A=>{this.onSurveySent(),this.globalDialogref.close()}),this.globalDialogref.componentInstance.nvOnClose.pipe((0,re.s)(1)).subscribe(A=>{"escape"===A&&Q(),this.globalDialogref.close()}),this.globalDialogref;this.logger.info("Feedback Dialog is already open")}feedbackUrlInitialized(){return this.feedbackUrlLoaded.asObservable()}onSurveySent(){this.logger.trace(ue.N_.UserGesture,ue.YD.Feedback,ue.PC.close," by clicking send"),this.translateService.get("feedback.thanksMessage").subscribe(Q=>{this.snackbar.open(Q,"",{duration:7e3,horizontalPosition:"left",verticalPosition:"bottom",panelClass:["nv-hig"]})}),this.logger.info("survey sent")}subscribeToSurveyEvents(Q){Q?(this.surveyEventReferenceSubmitted=(0,ve.subscribeToIFrameEvents)({surveyId:Q.surveyId,type:ve.SurveyEventType.Submitted},this.surveyEventListenerSubmitted.bind(this)),this.surveyEventReferenceDismissed=(0,ve.subscribeToIFrameEvents)({surveyId:Q.surveyId,type:ve.SurveyEventType.Dismissed},this.surveyEventListenerDismissed.bind(this)),this.surveyEventReferenceCloseDialog=(0,ve.subscribeToIFrameEvents)({surveyId:Q.surveyId,type:ve.SurveyEventType.CloseDialog},this.surveyEventListenerCloseDialog.bind(this))):this.logger.info("Error subscribing to survey events since survey result is empty")}surveyEventListenerSubmitted(){this.logger.info("Feedback Service - Survey Submitted, close Modal Dialog..."),this.onSurveySent(),this.closeFeedbackDialog(),this.surveyEventReferenceSubmitted.unsubscribe()}surveyEventListenerDismissed(){this.logger.info("Feedback Service - Survey Dismissed, close Modal Dialog..."),this.closeFeedbackDialog(),this.surveyEventReferenceDismissed.unsubscribe()}surveyEventListenerCloseDialog(){this.logger.info("Feedback Service - closing Modal Dialog..."),this.closeFeedbackDialog(),this.surveyEventReferenceCloseDialog.unsubscribe()}static{this.\u0275fac=function(A){return new(A||He)(n.KVO(D.J6),n.KVO(se.up),n.KVO(Z.bZ),n.KVO(Se.c$),n.KVO(Ce.UG),n.KVO(S.c_))}}static{this.\u0275prov=n.jDH({token:He,factory:He.\u0275fac,providedIn:"root"})}}return He})()},52299:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{AA:()=>getString,It:()=>isValidType4UUID,KA:()=>base64Encode,PI:()=>getDomainWithProtocol,Q2:()=>isBase64,RL:()=>invalidPipeArgumentError,Up:()=>pick,VP:()=>mapScrimRGBToFontColor,ab:()=>shallowCompare,bz:()=>generateUuid,c2:()=>evalCss,eJ:()=>cloneOrNull,gX:()=>isTimeoutOrConnectivityError,iN:()=>hexToRGB,l2:()=>normalizeUrl,tO:()=>formatLogString});var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(26875),lodash__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);function normalizeUrl(Bt){let z="";return Bt.forEach((s,n)=>{!s.startsWith("/")&&0!==n&&(z+="/"),s.endsWith("/")?z+=s.slice(0,s.length-1):z+=s}),z}function toLowerCaseOrEmpty(Bt){return Bt&&Bt.toLowerCase()||""}let CachedUuid=(()=>{class Bt{static{this.uuid=null}static getUuid(){return Bt.uuid}static refreshUuid(){Bt.uuid=generateUuidInternal()}}return Bt})();function generateUuidInternal(){let Bt=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(s){const n=(Bt+16*Math.random())%16|0;return Bt=Math.floor(Bt/16),("x"===s?n:3&n|8).toString(16)})}function generateUuid(Bt=!1){return Bt?CachedUuid.getUuid():generateUuidInternal()}function invalidPipeArgumentError(Bt,z){return Error(`InvalidPipeArgument: '${z}' for pipe '${Bt.toString()}'`)}function getString(Bt,z){let s=Bt&&"string"!=typeof Bt?JSON.stringify(Bt):Bt||"";return z&&(s=s.substr(0,z)),s}function isTimeoutOrConnectivityError(Bt){return!((0,lodash__WEBPACK_IMPORTED_MODULE_0__.isNil)(Bt)||(0,lodash__WEBPACK_IMPORTED_MODULE_0__.isNil)(Bt.status)||0!==Bt.status&&-100!==Bt.status)}function formatLogString(Bt,z,s,n){let l="";for(const S of n)try{l+="string"==typeof S?S:JSON.stringify(S,null,"\t"),l+=" "}catch{}return`${s.transform(new Date,"yyyy-MM-dd HH:mm:ss.SSS")} ${[z]} ${Bt} ${l}`}function base64Encode(Bt,z,s){return s&&(Bt=window.encodeURIComponent(Bt)),z&&(Bt=window.unescape(Bt)),window.btoa(Bt)}function isBase64(Bt){if(""===Bt||""===Bt.trim())return!1;try{return btoa(atob(Bt))===Bt}catch{return!1}}function isValidType4UUID(Bt){return!!/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-4[a-f0-9]{3}\b-[89aAbB][a-f0-9]{3}\b-[0-9a-fA-F]{12}$/gi.test(Bt)}function cloneOrNull(Bt){return Bt?{...Bt}:null}function pick(Bt,...z){const s={};for(const n of z)n in Bt&&(s[n]=Bt[n]);return s}function evalCss(expr){return eval(expr.trim().replace(/calc/g,"").replace(/px/g,"").replace(/100vw/g,window.innerWidth.toString()).replace(/100vh/g,window.innerHeight.toString()).replace(/[^-()\d/*+.]/g,""))}function shallowCompare(Bt,z){const s=Object.keys(Bt),n=Object.keys(z);if(s.length!==n.length)return!1;for(const l of s)if(Bt[l]!==z[l])return!1;return!0}function getDomainWithProtocol(Bt){try{return`${new URL(Bt).origin}`}catch{return""}}function mapScrimRGBToFontColor(Bt){return Bt?.299*Bt.r+.587*Bt.g+.114*Bt.b>150?"black":"white":null}function hexToRGB(Bt){if(!new RegExp("^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$").test(Bt))return null;let z,s,n;return 4===Bt.length?(z=parseInt(Bt[1]+Bt[1],16),s=parseInt(Bt[2]+Bt[2],16),n=parseInt(Bt[3]+Bt[3],16)):(z=parseInt(Bt.substring(1,3),16),s=parseInt(Bt.substring(3,5),16),n=parseInt(Bt.substring(5,7),16)),{r:z,g:s,b:n}}function convertMapToObject(Bt){const z={};return Bt.forEach((s,n)=>{z[n]=s}),z}function flattenObjectToDotNotation(Bt,z=""){const s=new Map;for(const n in Bt)if(Bt.hasOwnProperty(n)){const l=Bt[n],d=z?`${z}.${n}`:n;null===l||"object"!=typeof l||Array.isArray(l)?s.set(d,String(l)):flattenObjectToDotNotation(l,d).forEach((S,y)=>{s.set(y,S)})}return s}CachedUuid.refreshUuid()},81834:(Bt,z,s)=>{"use strict";s.d(z,{EU:()=>r,F0:()=>Ot,PC:()=>B,YD:()=>R,N_:()=>X,V$:()=>P,_d:()=>m,A5:()=>N,_4:()=>Ht,TE:()=>O,mZ:()=>c,Z3:()=>Fe,A6:()=>At,O4:()=>H,cL:()=>Pe,KA:()=>M.KA,eJ:()=>M.eJ,Ms:()=>xe,nK:()=>Ze,m1:()=>$e,c2:()=>M.c2,tO:()=>M.tO,pQ:()=>g,bz:()=>M.bz,PI:()=>M.PI,EL:()=>ht,Qt:()=>Et,AA:()=>M.AA,IT:()=>Xe,iN:()=>M.iN,RL:()=>M.RL,Pn:()=>It,Nw:()=>at,Q2:()=>M.Q2,Ls:()=>Qe,gX:()=>M.gX,mI:()=>ie,It:()=>M.It,VP:()=>M.VP,l2:()=>M.l2,hH:()=>He,Up:()=>M.Up,ab:()=>M.ab});var n=s(85735),l=s(43848),d=s(63997),v=s(3496),S=s(35146),y=s(91384);class f extends n.m{constructor(tt){super(tt),this.lastValue=null}getValue(){return this.lastValue}setValue(tt){this.lastValue=tt}next(tt){this.lastValue=tt,super.next(tt)}clear(){this.lastValue=null}}class O{constructor(tt,rt=!0,et=!0,St=!0,Gt=-1){this.workerFn=tt,this.cacheLastResult=et,this.clearCacheOnRefresh=St,this.cacheLifeTime=Gt,this.internalSubject=null,this.subscription=null,rt||this.get$()}refresh(){const tt=new n.m(1);this.cacheLastResult&&this.internalSubject instanceof f&&this.clearCacheOnRefresh&&this.internalSubject.clear();const rt=this.ensureEntryIsInitialized(!0);return rt&&this.pipeNewDataToReplaySubject(rt,tt),tt.asObservable()}setData(tt,rt=!1){this.internalSubject instanceof f&&this.internalSubject.setValue(tt),rt&&(this.ensureEntryIsInitialized(!1),this.pipeNewDataToReplaySubject((0,l.of)(tt),null))}getData(){return this.internalSubject instanceof f?this.internalSubject.getValue():null}get$(){const tt=this.ensureEntryIsInitialized(!1);return tt&&this.pipeNewDataToReplaySubject(tt,null),this.internalSubject.asObservable()}getRefreshObservable(){return(0,d.v)(()=>this.refresh())}pipeNewDataToReplaySubject(tt,rt){(0,v.O)(0).pipe((0,y.M)(et=>this.subscription=tt.subscribe(St=>{rt&&rt.next(St),this.internalSubject&&this.internalSubject.next(St),this.cacheLastResult&&this.cacheLifeTime>=0&&(0,v.O)(this.cacheLifeTime).subscribe(()=>{this.internalSubject=null})},St=>{const Gt=this.internalSubject;this.subscription&&this.subscription.unsubscribe(),this.internalSubject=null,rt&&rt.error(St),Gt&&Gt.error(St)}))).subscribe()}ensureEntryIsInitialized(tt){if(tt||!this.internalSubject)return this.subscription&&this.subscription.unsubscribe(),this.internalSubject||(this.internalSubject=this.createNewSubject()),this.workerFn()}createNewSubject(){return this.cacheLastResult?new f(1):new n.m(1)}}class P{constructor(tt,rt=!0,et=!0,St=!0,Gt=-1){this.workerFn=tt,this.lazyInit=rt,this.cacheLastResult=et,this.clearCacheOnRefresh=St,this.cacheLifeTime=Gt,this.eventStreamMap=new Map}refresh(tt){return this.ensureMapEntryExists(tt),this.eventStreamMap.get(tt).refresh()}refreshAll(){const tt=[];return this.eventStreamMap.forEach((rt,et)=>{tt.push(rt.refresh())}),(0,S.yU)(...tt)}setData(tt,rt,et=!1){this.ensureMapEntryExists(tt),this.eventStreamMap.get(tt).setData(rt,et)}getData(tt){return this.ensureMapEntryExists(tt),this.eventStreamMap.get(tt).getData()}get$(tt){return this.ensureMapEntryExists(tt),this.eventStreamMap.get(tt).get$()}ensureMapEntryExists(tt){this.eventStreamMap.has(tt)||this.eventStreamMap.set(tt,new O(()=>this.workerFn(tt),this.lazyInit,this.cacheLastResult,this.clearCacheOnRefresh,this.cacheLifeTime))}}var _=s(72653);const i=(0,_.BQ)({passive:!0,capture:!0});class r{constructor(){this._events=new Map,this._delegateEventHandler=tt=>{const rt=(0,_.Fb)(tt);rt&&this._events.get(tt.type)?.forEach((et,St)=>{(St===rt||St.contains(rt))&&et.forEach(Gt=>Gt.handleEvent(tt))})}}addHandler(tt,rt,et,St){const Gt=this._events.get(rt);if(Gt){const yt=Gt.get(et);yt?yt.add(St):Gt.set(et,new Set([St]))}else this._events.set(rt,new Map([[et,new Set([St])]])),tt.runOutsideAngular(()=>{document.addEventListener(rt,this._delegateEventHandler,i)})}removeHandler(tt,rt,et){const St=this._events.get(tt);if(!St)return;const Gt=St.get(rt);Gt&&(Gt.delete(et),0===Gt.size&&St.delete(rt),0===St.size&&(this._events.delete(tt),document.removeEventListener(tt,this._delegateEventHandler,i)))}}var a=s(58527);let c=(()=>{class Je{createStream(rt,et=!0,St=!0,Gt=!0,yt=-1){return new O(rt,et,St,Gt,yt)}static{this.\u0275fac=function(et){return new(et||Je)}}static{this.\u0275prov=a.jDH({token:Je,factory:Je.\u0275fac,providedIn:"root"})}}return Je})(),m=(()=>{class Je{createStream(rt){return new P(rt)}static{this.\u0275fac=function(et){return new(et||Je)}}static{this.\u0275prov=a.jDH({token:Je,factory:Je.\u0275fac,providedIn:"root"})}}return Je})();var M=s(52299),D=s(36877),I=s(16229),U=s(10174),V=s(34593),T=s(53461);let N=(()=>{class Je{constructor(){}onlineStatusChanged(){const rt=(0,D.R)(window,"online").pipe((0,U.u)(!0)),et=(0,D.R)(window,"offline").pipe((0,U.u)(!1));return(0,I.h)(rt,et).pipe((0,V.Z)(window.navigator.onLine),(0,T.F)())}isOnline(){return window.navigator.onLine}static{this.\u0275fac=function(et){return new(et||Je)}}static{this.\u0275prov=a.jDH({token:Je,factory:Je.\u0275fac,providedIn:"root"})}}return Je})();const L=[];function E(Je,tt,rt){for(;0!==L.length;){const et=`${tt.transform(new Date,"yyyy-MM-dd HH:mm:ss.SSS")} ${[Je]} ${rt[0]} ${L[L.length-1]} ${B.close}`;console.log(et),L.pop()}}function g(Je,tt,rt,et){if(et.length>=3&&et[1].toString().includes("Tracer"))if(L[L.length-1]!==et[1]){if(et[2]===B.close){const Gt=`${rt.transform(new Date,"yyyy-MM-dd HH:mm:ss.SSS")} ${[tt]} ${et[0]} ${L[L.length-1]} ${et[2]}`;L.pop(),console.log(Gt),L.length&&L.pop()}else et[2]===B.open&&L.includes(et[1])&&E(tt,rt,et);L.push(et[1])}else L[L.length-1]===et[1]&&L.pop();else if("Clicked on Back button"===et[1])return void E(tt,rt,et);return(0,M.tO)(Je,tt,rt,et)}var R=function(Je){return Je.EvidencePanel="EvidencePanelTracer",Je.Search="SearchTracer",Je.SeeMore="SeeMoreTracer",Je.UserInfo="UserDetails",Je.Login="LoginTracer",Je.Settings="SettingsTracer",Je.Feedback="FeedbackTracer",Je}(R||{}),B=function(Je){return Je.open="Opened",Je.close="Closed",Je}(B||{}),X=function(Je){return Je.UserGesture="UserGesture",Je.Endpoint="EndPoint",Je.Errormessage="ErrorMessage",Je.PushNotification="PushNotification",Je.UserDetails="UserDetails",Je}(X||{});const H={Done:65376};function ie(){return"tizen"in window}function Xe(){return function Se(){return window.webapis}()?.productinfo?.getSmartTVServerVersion()}function He(Je){if(!Je)return{};const[tt,rt]=Je.split("T-INFOLINK")[1]?.split("-");return{year:tt,version:rt}}var Q=s(80583),A=s(59859),me=s(65706),ne=s(79539),G=s(14714),W=s(4208),$=function(Je){return Je.InvalidStates="InvalidStates",Je.InvalidTransitions="InvalidTransitions",Je.InvalidStartState="InvalidStartState",Je.InvalidEndState="InvalidEndState",Je.InvalidWildcardState="InvalidWildcardState",Je.TransitionFromEndState="TransitionFromEndState",Je.TransitionNotFound="TransitionNotFound",Je.TransitionError="TransitionError",Je.UnreachableState="UnreachableState",Je.InvalidStateName="InvalidStateName",Je.AmbiguousTransition="AmbiguousTransition",Je.WildcardTargetState="WildcardTargetState",Je.MultipleWildcardTransitions="MultipleWildcardTransitions",Je}($||{});class le extends Error{constructor(tt,rt,et,St){super(`${tt} - ${rt} - ${et}`),this.name="StateMachineError",this.tag=tt,this.code=rt,this.data=St}}const Pe="**";class Fe{get currentState(){return this._currentState}constructor(tt,rt){this._serializer=new Q.B7,this._reset=new Q.B7,this.setupStateMachine(tt),rt&&this.validateStateMachine(),this.setupSerializer()}on(tt,rt){return(0,d.v)(()=>{const et={action:tt,stateData:rt,response:new n.m(1)};return this._serializer.next(et),et.response.asObservable()})}reset(){this._reset.next(),this._currentState=this._startState,this.setupSerializer()}executeTransition(tt,rt){if(this._currentState===this._endState)return(0,A.$)(this.createStateMachineError($.TransitionFromEndState,"Cannot transition from end state"));const et=this._transitions[tt]?.find(ke=>ke.from===this._currentState||ke.from===Pe)?.to;if(!et)return(0,A.$)(this.createStateMachineError($.TransitionNotFound,`Could not find a valid targetState from currentState ${this.currentState} on action ${tt}`));const St=this._states[this._currentState],Gt=this._states[et],yt=St?.onExit??(ke=>(0,l.of)(ke)),Wt=Gt?.onEnter??(ke=>(0,l.of)(ke));return yt(rt).pipe((0,me.s)(1),(0,y.M)(()=>this._currentState=et),(0,ne.H)(ke=>Wt(ke)),(0,me.s)(1),(0,G.W)(ke=>(0,A.$)(this.createStateMachineError($.TransitionError,`Error transitioning to ${et}`,ke))))}setupStateMachine(tt){if(this._tag=tt.tag,this._states=tt.states,!this._states)throw this.createStateMachineError($.InvalidStates,"State list cannot be nullish");if(this._transitions=tt.transitions,!this._transitions)throw this.createStateMachineError($.InvalidTransitions,"Transitions list cannot be nullish");if(this._startState=Object.keys(this._states).find(rt=>rt===tt.startState),!this._startState)throw this.createStateMachineError($.InvalidStartState,`Could not find valid start state with name ${tt.startState}`);if(this._endState=Object.keys(this._states).find(rt=>rt===tt.endState),!this._endState)throw this.createStateMachineError($.InvalidEndState,`Could not find valid end state with name ${tt.endState}`);if(Object.keys(this._states).includes(Pe))throw this.createStateMachineError($.InvalidWildcardState,"Wildcard state name cannot be specified manually in state definitions");this._currentState=tt.startState}setupSerializer(){this._serializer.pipe((0,ne.H)(tt=>this.executeTransition(tt.action,tt.stateData).pipe((0,ne.H)(rt=>(tt.response.next(rt),tt.response.complete(),(0,l.of)(rt))),(0,G.W)(rt=>(tt.response.error(rt),(0,l.of)(rt))))),(0,W.Q)(this._reset)).subscribe()}createStateMachineError(tt,rt,et){return new le(this._tag,tt,rt,et)}validateStateMachine(){const tt=new Map;Object.keys(this._states).forEach(rt=>tt.set(rt,!1)),tt.set(this._startState,!0),Object.keys(this._transitions).forEach(rt=>{const et=new Map;Object.keys(this._states).forEach(St=>et.set(St,0)),this._transitions[rt].forEach(St=>{if(St.from===this._endState)throw this.createStateMachineError($.TransitionFromEndState,"Cannot transition from end state");if(St.to===Pe)throw this.createStateMachineError($.WildcardTargetState,`Wildcard state cannot be targetState on action ${rt}`);if(St.from===Pe&&1!==this._transitions[rt].length)throw this.createStateMachineError($.MultipleWildcardTransitions,`Cannot specify multiple transitions on action ${rt} if one of them is a Wildcard`);if(![...Object.keys(this._states),Pe].includes(St.from))throw this.createStateMachineError($.InvalidStateName,`Invalid currentState ${St.from} on action ${rt} to state ${St.to}`);if(!Object.keys(this._states).includes(St.to))throw this.createStateMachineError($.InvalidStateName,`Invalid targetState ${St.to} on action ${rt} from state ${St.from}`);et.set(St.from,et.get(St.from)+1),tt.set(St.to,!0)}),et.forEach((St,Gt)=>{if(St>1)throw this.createStateMachineError($.AmbiguousTransition,`Ambiguous transition on action ${rt} from state ${Gt}`)})}),tt.forEach((rt,et)=>{if(!rt)throw this.createStateMachineError($.UnreachableState,`State ${et} is unreachable`)})}}var At=function(Je){return Je.MicrophoneStateMachine="MicrophoneStateMachine",Je}(At||{});function Le(Je){let tt;switch(Je){case"ArrowUp":tt=38;break;case"ArrowDown":tt=40;break;case"ArrowLeft":tt=37;break;case"ArrowRight":tt=39;break;case"Enter":tt=13;break;case"Escape":tt=27}return{key:Je,keyCode:tt}}function Et(){return document.activeElement??document}function $e(Je,tt,rt){Je instanceof HTMLIFrameElement||Je.dispatchEvent(new KeyboardEvent(tt,{...Le(rt),view:window,bubbles:!0,cancelable:!0}))}function Ze(Je){Je instanceof HTMLIFrameElement||Je.dispatchEvent(new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0}))}function Qe(Je){return Je?.isTrusted}var Ve=s(8619),Ot=function(Je){return Je.ArrowUp="ArrowUp",Je.ArrowDown="ArrowDown",Je.ArrowLeft="ArrowLeft",Je.ArrowRight="ArrowRight",Je}(Ot||{});function at(Je){return"Escape"===Je.key||"GoBack"===Je.key}function It(Je){return"ArrowUp"===Je.key||"ArrowDown"===Je.key||"ArrowLeft"===Je.key||"ArrowRight"===Je.key}function xe(Je,tt){const rt=(0,D.R)(Je,"keyup",{capture:!0}).pipe((0,Ve.p)(et=>et.key===tt),(0,me.s)(1));return(0,D.R)(Je,"keydown",{capture:!0}).pipe((0,Ve.p)(et=>et.key===tt),(0,y.M)(et=>{et.stopPropagation(),et.preventDefault()}),(0,W.Q)(rt))}function ht(Je,tt,rt){const et=document.elementFromPoint(Je,tt)||void 0;if(!et)return;const St=yt=>yt instanceof HTMLElement&&(!rt||rt(yt));return St(et)?et:document.elementsFromPoint(Je,tt).slice(1).find(yt=>St(yt))}var Xt=s(17053);class Ht{static resizeObserver(tt,rt){let et=null;return new Xt.c(Gt=>{let yt=!0;return et=new ResizeObserver(Wt=>{const ke=Wt[0].contentRect.width;yt&&Gt.next(Wt[0].contentRect.height<=rt.maxHeight&&ke<=rt.maxWidth&&ke>rt.minWidth)}),et.observe(tt),()=>{yt=!1,et?.unobserve(tt)}})}static onResize(tt){return new Xt.c(rt=>{let et=!0;const St=new ResizeObserver(Gt=>{et&&rt.next(Gt[0])});return St.observe(tt),()=>{et=!1,St?.unobserve(tt)}})}}},71780:(Bt,z,s)=>{"use strict";s.d(z,{ap:()=>D});var n=function(I){return I.GameTile="TV_BANNER",I.MaqueeTile="MARQUEE_HERO_IMAGE",I.MaqueeGameLogo="GAME_LOGO",I.MaqueeCascadeImage="assets.cascade.geforce.com/images/",I}(n||{});const l=[n.GameTile,n.MaqueeCascadeImage,n.MaqueeTile,n.MaqueeGameLogo];var d=function(I){return I.CommonJSInitStart="CommonJSInitStart",I.CommonJSInitEnd="CommonJSInitEnd",I.LayoutSpinnerStart="LayoutSpinnerStart",I.LayoutSpinnerEnd="LayoutSpinnerEnd",I.LayoutJSInitStart="LayoutJSInitStart",I.LayoutJSInitEnd="LayoutJSInitEnd",I.LayoutDataFetchStart="LayoutDataFetchStart",I.LayoutDataFetchEnd="LayoutDataFetchEnd",I.LayoutDataRenderStart="LayoutDataRenderStart",I.LayoutDataRenderEnd="LayoutDataRenderEnd",I.LoginWallCheckStart="LoginWallCheckStart",I.LoginWallCheckEnd="LoginWallCheckEnd",I.LoginWallDataFetchStart="LoginWallDataFetchStart",I.LoginWallDataFetchEnd="LoginWallDataFetchEnd",I.LoginWallRenderStart="LoginWallRenderStart",I.LoginWallRenderEnd="LoginWallRenderEnd",I}(d||{}),v=function(I){return I.CEFLoad="CEFLoad",I.TotalJSModuleLoad="TotalJSModuleLoad",I.CommonJSModuleLoad="CommonJSModuleLoad",I.LayoutJSModuleLoad="LayoutJSModuleLoad",I.LayoutDataLoad="LayoutDataLoad",I.LayoutSpinner="LayoutSpinner",I.LayoutDataRendering="LayoutDataRendering",I.CompleteLayout="CompleteLayout",I.LoginWallCheck="LoginWallCheck",I.LoginWallDataFetch="LoginWallDataFetch",I.LoginWallRendering="LoginWallRendering",I}(v||{});const y=[{name:v.CommonJSModuleLoad,start:d.CommonJSInitStart,end:d.CommonJSInitEnd},{name:v.LoginWallCheck,start:d.LoginWallCheckStart,end:d.LoginWallCheckEnd},{name:v.LayoutJSModuleLoad,start:d.LayoutJSInitStart,end:d.LayoutJSInitEnd},{name:v.LayoutDataLoad,start:d.LayoutDataFetchStart,end:d.LayoutDataFetchEnd},{name:v.LayoutSpinner,start:d.LayoutSpinnerStart,end:d.LayoutSpinnerEnd},{name:v.LayoutDataRendering,start:d.LayoutDataRenderStart,end:d.LayoutDataRenderEnd}],f=[{name:v.CommonJSModuleLoad,start:d.CommonJSInitStart,end:d.CommonJSInitEnd},{name:v.LoginWallCheck,start:d.LoginWallCheckStart,end:d.LoginWallCheckEnd},{name:v.LoginWallDataFetch,start:d.LoginWallDataFetchStart,end:d.LoginWallDataFetchEnd},{name:v.LoginWallRendering,start:d.LoginWallRenderStart,end:d.LoginWallRenderEnd}];var O=s(99469),P=s(89284),_=s(83915),i=s(14714),r=s(65706),a=s(43848),c=s(56237),m=s(20924),M=s(58527);let D=(()=>{class I{constructor(V,T,N){this.telemetryUtilService=T,this.bridgeService=N,this.imageLoadDuration=0,this.imageCount=0,this.imageTransferSize=0,this.usedJsHeapSize=0,this.resourceComputationDone=!1,this.imgTimingMap=new Map,this.logger=V.getLogger("AppLaunchPerformanceService"),this.isPerfTelemetryInitiatedOnce=!1,this.isLayoutLoadAbandoned=!1,this.layoutDurations=new Map,y.forEach(L=>{this.layoutDurations.set(L.name,0)}),this.layoutDurations.set(v.CEFLoad,-1),this.loginWallDurations=new Map,f.forEach(L=>{this.loginWallDurations.set(L.name,0)})}fetchCEFStartupTime(){return this.bridgeService.executeCommand(m.Ts.Common.Applicationinfo.GetApplicationTimeInfo,{type:m.Or.Common.Applicationinfo.ApplicationTimeType.Launch}).pipe((0,_.T)(V=>{const T=window.jsInitStartTs-V.startTime;return this.layoutDurations.set(v.CEFLoad,T),!0}),(0,i.W)(V=>(0,a.of)(!1)))}onCommonJSLoadEnd(){performance.mark(d.CommonJSInitEnd)}onLoginWallDataFetchStart(){performance.mark(d.LoginWallDataFetchStart)}onLoginWallDataFetchEnd(){performance.mark(d.LoginWallDataFetchEnd)}onLoginWallRenderStart(){performance.mark(d.LoginWallRenderStart)}onLoginWallRenderEnd(){performance.mark(d.LoginWallRenderEnd),this.computeLoginWallDuration()}onLoginWallCheckStart(){performance.mark(d.LoginWallCheckStart)}onLoginWallCheckEnd(){performance.mark(d.LoginWallCheckEnd)}onLayoutDataFetchStart(){this.isPerfTelemetryInitiatedOnce||performance.mark(d.LayoutDataFetchStart)}onLayoutDataFetchEnd(){this.isPerfTelemetryInitiatedOnce||(performance.mark(d.LayoutDataFetchEnd),performance.mark(d.LayoutSpinnerEnd))}onLayoutComponentDataRenderingStart(){this.isPerfTelemetryInitiatedOnce||performance.mark(d.LayoutDataRenderStart)}computeLoginWallDuration(){f.forEach(N=>{try{const L=performance.measure(N.name,N.start,N.end);this.loginWallDurations.set(N.name,L.duration)}catch{this.loginWallDurations.set(N.name,-1)}});let V="Stage wise durations for loginwall:\n";this.loginWallDurations.forEach((N,L)=>{V+=`${L}: ${N}\n`});const T=this.loginWallDurations.get(v.CommonJSModuleLoad)+this.loginWallDurations.get(v.LoginWallCheck)+this.loginWallDurations.get(v.LoginWallRendering);V=`${V}Total duration: ${T}`,this.logger.info(V)}computeLayoutDuration(){y.forEach(L=>{try{const E=performance.measure(L.name,L.start,L.end);this.layoutDurations.set(L.name,E.duration)}catch{this.layoutDurations.set(L.name,-1)}});const V=this.layoutDurations.get(v.CommonJSModuleLoad)+this.layoutDurations.get(v.LayoutJSModuleLoad);this.layoutDurations.set(v.TotalJSModuleLoad,V);const T=this.layoutDurations.get(v.CommonJSModuleLoad)+this.layoutDurations.get(v.LayoutJSModuleLoad)+this.layoutDurations.get(v.LoginWallCheck)+this.layoutDurations.get(v.LayoutDataLoad)+this.layoutDurations.get(v.LayoutDataRendering);this.layoutDurations.set(v.CompleteLayout,T);let N="Stage wise durations for layout:\n";this.layoutDurations.forEach((L,E)=>{N+=`${E}: ${L}\n`}),this.logger.info(N)}onLayoutComponentDataRenderingEnd(){this.isPerfTelemetryInitiatedOnce||(performance.mark(d.LayoutDataRenderEnd),(0,c.T)(O.zk.isCefPlatform,this.fetchCEFStartupTime(),(0,a.of)(!1)).pipe((0,r.s)(1)).subscribe(V=>{this.computeLayoutDuration(),this.computeResourceLoadMetrics(),this.isPerfTelemetryInitiatedOnce=!0}))}onLayoutComponentInit(){this.isPerfTelemetryInitiatedOnce||performance.mark(d.LayoutSpinnerStart)}onLayoutLoadAbandoned(){this.isLayoutLoadAbandoned=!0}computeResourceLoadMetrics(){this.observer=new PerformanceObserver(V=>this.perfResourceElementObserverCallback(V)),this.observer.observe({entryTypes:[O.uP.Element,O.uP.Resource]}),setTimeout(()=>{this.observer&&this.observer.disconnect(),this.usedJsHeapSize=this.getUsedJsHeapSize(),this.resourceComputationDone=!0,this.imgTimingMap.clear(),this.sendLayoutPerformanceTelemetry()},1e4)}perfResourceElementObserverCallback(V){try{V.getEntries().forEach(T=>{if(T instanceof PerformanceResourceTiming&&T.initiatorType===O.fV.Image&&this.isResourceConsidered(T.name)){const N=this.imgTimingMap.get(T.name);if(N&&T.connectStart){const L=N-T.connectStart;L<0&&this.logger.error(`Negative duration for entry ${JSON.stringify(T.toJSON())}, with loadTime ${N}`),this.imageLoadDuration+=L,this.imgTimingMap.delete(T.name),this.imageCount++}else this.imgTimingMap.set(T.name,T.connectStart);T.transferSize&&(this.imageTransferSize+=T.transferSize)}else if(T.entryType===O.uP.Element){const N=this.imgTimingMap.get(T.url);if(T.loadTime&&N){const L=T.loadTime-N;L<0&&this.logger.error(`Negative duration for entry ${JSON.stringify(T.toJSON())}, with startime ${N}`),this.imageLoadDuration+=L,this.imgTimingMap.delete(T.url),this.imageCount++}else this.imgTimingMap.set(T.url,T.loadTime)}})}catch(T){this.logger.error("Error occured in perfResourceElementObserverCallback ",T),this.observer.disconnect(),this.observer=null,this.imageCount=-1,this.imageLoadDuration=-1,this.imageTransferSize=-1}}isResourceConsidered(V){return l.some(T=>V.includes(T))}getUsedJsHeapSize(){return performance?.memory?.usedJSHeapSize??-1}sendLayoutPerformanceTelemetry(){const V=window.geForceNowStartLocationHash;this.isLayoutLoadAbandoned||V?.length&&!V.includes(P.V6C.DefaultRedirect)||!this.resourceComputationDone?this.logger.warn(`Abort sendLayoutPerformanceTelemetry, isLayoutLoadAbandoned: ${this.isLayoutLoadAbandoned}, startHash: ${V}`):(this.telemetryUtilService.sendPageLoadPerfEvent(P.$1L.Layout_L0,{viewDataLoadDuration:this.layoutDurations.get(v.LayoutDataLoad),sectionNames:[v.CEFLoad,v.TotalJSModuleLoad,v.LayoutSpinner,v.LayoutDataRendering,v.CompleteLayout],sectionDataLoadDurations:[0,0,0,0,0],sectionTotalLoadDurations:[this.layoutDurations.get(v.CEFLoad),this.layoutDurations.get(v.TotalJSModuleLoad),this.layoutDurations.get(v.LayoutSpinner),this.layoutDurations.get(v.LayoutDataRendering),this.layoutDurations.get(v.CompleteLayout)],imageLoadDuration:this.imageLoadDuration,imageCount:this.imageCount,imageTransferSize:this.imageTransferSize,usedJsHeapSize:this.usedJsHeapSize}),this.telemetryUtilService.sendNavigationPerfEvent())}static{this.\u0275fac=function(T){return new(T||I)(M.KVO(O.J6),M.KVO(P.jgD),M.KVO(O.NZ))}}static{this.\u0275prov=M.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}}return I})()},55059:(Bt,z,s)=>{"use strict";s.d(z,{gT:()=>n.g,ln:()=>d.l});var n=s(32398),d=(s(35131),s(86574))},32398:(Bt,z,s)=>{"use strict";s.d(z,{f:()=>n,g:()=>l});var n=function(d){return d.AUTHORIZATION_ERROR="AUTHORIZATION_ERROR",d.UNKNOWN="UNKNOWN",d.LOGGED_IN="LOGGED_IN",d.NOT_LOGGED_IN="NOT_LOGGED_IN",d.PENDING_LOGIN="PENDING_LOGIN",d.LOGIN_ERROR="LOGIN_ERROR",d}(n||{}),l=function(d){return d.NotStarted="NotStarted",d.Started="Started",d.LoggedOut="LoggedOut",d.LoggedIn="LoggedIn",d.Pending="Pending",d.Failed="Failed",d}(l||{})},35131:(Bt,z,s)=>{"use strict";s.d(z,{f:()=>_});var n=s(75707),l=s(6478),d=s(81834),v=s(18433),S=s(58527),y=s(61958),f=s(5798),O=s(99469),P=s(38502);let _=(()=>{class i{constructor(a,c,m,M,D){this.endpointFactory=c,this.distributedtracingUtilService=m,this.headerService=D,this.logger=M.getLogger("uasSdkService"),this.uasConfig=a.uasConfig;const{defaultRetries:I,defaultTimeBetweenRetries:U,defaultTimeout:V,retryOnTimeout:T,exponentialBackoffMaxDelay:N}=a.uasConfig;this.uasEndpoint=this.endpointFactory.createEndpoint({config:{maxRetries:I,timeout:V,timeBetweenRetries:U,retryOnTimeout:T,exponentialBackoffMaxDelay:N}})}getUrl(a){return(0,d.l2)([this.uasConfig.server,this.uasConfig.version,a])}acquireUser(a,c,m,M,D){this.logger.info("calling acquire user");const I={headers:{Authorization:"Bearer "+a,"Content-Type":"application/json","Accept-Language":M},body:{redirectUri:c,homeUrl:m},reportRequestData:{originalService:v.Uu$.UAS,serviceUseCase:v.OOF.AcquireUser,reportSuccessTelemetry:"true"},includeRequestId:!0};return this.headerService.getCommonHeaders().pipe((0,n.ZZ)(U=>{Object.assign(I.headers,U);const V=this.uasEndpoint.post(this.getUrl("acquire/login"),I);return this.distributedtracingUtilService.handleHttpEndpointSpan(V,I,l.pB.UasAcquireUser,D)}))}getUserAcquisitionState(a,c,m){this.logger.info("checking acquire user state");const M={headers:{Authorization:"Bearer "+a,"Content-Type":"application/json"},params:{requestId:c},reportRequestData:{originalService:v.Uu$.UAS,serviceUseCase:v.OOF.GetAcquisitionState,reportSuccessTelemetry:"true"},includeRequestId:!0};return this.headerService.getCommonHeaders().pipe((0,n.ZZ)(D=>{Object.assign(M.headers,D);const I=this.uasEndpoint.get(this.getUrl("acquire/loginStatus"),M);return this.distributedtracingUtilService.handleHttpEndpointSpan(I,M,l.pB.UasAcquireUser,m)}))}static{this.\u0275fac=function(c){return new(c||i)(S.KVO(y.Vk),S.KVO(f.t),S.KVO(l.Z1),S.KVO(O.J6),S.KVO(P.y1))}}static{this.\u0275prov=S.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})()},86574:(Bt,z,s)=>{"use strict";s.d(z,{l:()=>H});var n=s(26513),l=s(43848),d=s(36466),v=s(80583),S=s(892),y=s(59859),f=s(27731),O=s(36877),P=s(85735),_=s(83915),i=s(75707),r=s(8619),a=s(65706),c=s(14714),m=s(10174),M=s(91384),D=s(32398),I=s(20924),U=s(26875),T=s(18433),N=s(55512),L=s(58527),E=s(99469),g=s(61958),R=s(35131),B=s(78893),X=s(78812);let H=(()=>{class J{constructor(ie,ve,ue,se,Z,Se,Ce,Be){if(this.config=ve,this.uasSdk=ue,this.bridgeService=se,this.localeService=Z,this.routerService=Se,this.telemetryUtilService=Ce,this.telemetryService=Be,this.httpSubscription=null,this.redirectUrl=null,this.httpRequestSub=null,this.AutoEntitleStateSub=new n.t(D.g.NotStarted),this.loginInitiated=!1,this.pendingEntitlement=!1,this.uasKey="AutoEntitleState",this.redirectInputKey="inputData",this.redirectResponseKey="responseData",this.tabWindow=null,this.pollingSubscription=null,this.logger=ie.getLogger("uas/uas-service"),this.config.uasConfig.redirectUrlIsRelative){const Xe=window.sessionStorage.getItem(this.uasKey);this.config.starfleet.sameTabLogin&&Xe&&(this.loginInitiated=Xe===D.g.Started),this.config.uasConfig.sameTab&&Xe&&(this.pendingEntitlement=Xe===D.g.Pending),this.redirectUrl=window.location.origin+this.config.uasConfig.redirectUrl,window.sessionStorage.removeItem(this.uasKey),window.sessionStorage.removeItem(this.redirectInputKey)}}handleHttpRequest(ie){const ve={};return new URL(ie).searchParams.forEach((se,Z)=>{ve[Z]=se}),ve}get AutoEntitleState(){return this.AutoEntitleStateSub.asObservable()}onLoginInitiated(ie){if(this.tabWindow=ie,this.logger.info("on login initiated"),this.AutoEntitleStateSub.next(D.g.NotStarted),this.loginInitiated=!0,this.isAutoEntitlementEnabled()){if(this.config.starfleet.useDeviceAuthLogin)return(0,l.of)(null);if(!this.config.starfleet.redirectUrlIsRelative){this.logger.info("starting http server");const[ve,ue]=this.startHttpServer(this.config.starfleet.portNumbers);return this.httpRequestSub=ue,ve.pipe((0,_.T)(se=>(this.redirectUrl=this.config.starfleet.redirectUrl.replace("{portnumber}",se.toString()),this.logger.info("Success login init"),{url:this.redirectUrl,observable:ue})))}return this.config.starfleet.redirectUrlIsRelative?(this.config.starfleet.sameTabLogin&&window.sessionStorage.setItem(this.uasKey,D.g.Started),(0,l.of)({skipSuccessRedirect:!0})):(this.logger.info("Auto entitle not implemented for android"),(0,l.of)(null))}return this.logger.info("Auto entitle disabled"),(0,l.of)(null)}onLoginFailed(ie){if(this.loginInitiated&&this.isAutoEntitlementEnabled()&&(this.loginInitiated=!1,!this.config.starfleet.useDeviceAuthLogin)&&(!this.config.starfleet.redirectUrlIsRelative||this.config.starfleet.redirectUrlIsRelative&&this.config.starfleet.sameTabLogin)){const ve=new URL(this.config.starfleet.onCompleteRedirectUrl);ve.searchParams.append("error",ie||"unknown"),ve.searchParams.append("ui_locales",this.localeService.getLocale()),this.tabWindow?this.tabWindow.location.href=ve.href:this.bridgeService.executeCommand(I.Ts.Common.Httpserver.SendRedirectResponse,{redirectUrl:ve.href,redirectParams:[]}).subscribe(d.l,d.l,()=>this.stopHttpServer())}}stopHttpServer(){this.logger.info("Stopping http server"),this.httpSubscription&&(this.httpSubscription.unsubscribe(),this.httpSubscription=null,this.bridgeService.executeCommand(I.Ts.Common.Httpserver.StopHttpServer).subscribe(ie=>this.logger.info("success stopping httpserver",ie),ie=>this.logger.error("error stopping httpserver",ie)),this.logger.info("Success stopping http server"))}startHttpServer(ie){const ve=new v.B7,ue=new v.B7;return this.httpSubscription=this.bridgeService.executeCommand(I.Ts.Common.Httpserver.StartHttpServer,{ports:ie,redirectUrl:"",redirectParams:[]}).subscribe(se=>{switch(this.logger.info("httpresponse recieved"),(0,U.get)(se,"callbackReason")){case"serverCreated":this.logger.info("http server created"),ve.next((0,U.get)(se,"portNumber")),ve.complete();break;case"httpRequest":this.logger.info("http request recieved"),ue.next((0,U.get)(se,"url"));break;case"httpRequestAborted":ue.error(N.k_.LOGIN_CANCELLED_BY_USER)}},se=>{this.logger.error("error starting httpserver",se),ve.error("HTTP_START_FAILED"),ue.error("HTTP_START_FAILED")}),[ve,ue]}isAutoEntitlementEnabled(){return this.config.featureEnablement.UASAutoEntitle}handleOffDeviceAcquisition(ie,ve){if(ve.loginState===D.f.PENDING_LOGIN){const ue=new v.B7;this.httpRequestSub=ue.asObservable(),this.pollingSubscription=(0,S.Y)(this.config.uasConfig.pollingInterval).pipe((0,i.ZZ)(se=>this.uasSdk.getUserAcquisitionState(ie,ve.requestId)),(0,r.p)(se=>se.loginState!==D.f.PENDING_LOGIN),(0,a.s)(1),(0,c.W)(se=>(this.logger.error("error in get acquisition state",se),this.sendTelemetry(T.fbu.UALoginFailed,this.stringOrObj(se)),(0,l.of)({loginState:D.f.NOT_LOGGED_IN,requestId:null,landingPageUrl:null})))).subscribe(se=>ue.next(se))}return(0,l.of)(ve)}handleNativeRedirect(ie){return ie.landingPageUrl?.length>0?this.bridgeService.executeCommand(I.Ts.Common.Nativeauth.initiateLogIn,{url:ie.landingPageUrl}).pipe((0,a.s)(1),(0,m.u)(ie)):(0,l.of)(ie)}showNextPage(ie,ve){if(this.config.starfleet.useDeviceAuthLogin)return this.handleOffDeviceAcquisition(ie,ve);if(this.config.uasConfig.redirectUrlIsRelative)return this.redirectUserBrowser(ve);if(this.config.uasConfig.isNativeRedirect)return this.handleNativeRedirect(ve);let ue=null;return ve.loginState!==D.f.UNKNOWN&&ve.landingPageUrl?ue=new URL(ve.landingPageUrl):(ue=new URL(this.config.starfleet.onCompleteRedirectUrl),ue.searchParams.append("error","unknown")),this.logger.info("redirecting user to: ",ue.href),this.bridgeService.executeCommand(I.Ts.Common.Httpserver.SendRedirectResponse,{redirectUrl:ue.href,redirectParams:[]}).pipe((0,c.W)(se=>(0,l.of)(ve)),(0,m.u)(ve))}getRedirectResponse(){let ie=null;try{ie=JSON.parse(window.localStorage.getItem(this.redirectResponseKey)),this.logger.info("redirect response",ie)}catch(ve){this.logger.error("failed to parse response JSON",ve)}return window.localStorage.removeItem(this.redirectResponseKey),ie}validateMessageEvent(ie,ve){let ue=ie&&ie.data;return ue=ue&&ie.origin===window.location.origin&&ie.data.reason===ve,!!ue}redirectUserBrowser(ie){if(ie.loginState===D.f.PENDING_LOGIN){if(!(ie.landingPageUrl?.length>0))return(0,y.$)("landing page url must be defined for LOGIN_PENDING");const ve=this.routerService.getCurrentUrl();if(this.config.uasConfig.sameTab)return window.sessionStorage.setItem(this.redirectInputKey,JSON.stringify({returnUrl:ve})),window.sessionStorage.setItem(this.uasKey,D.g.Pending),window.open(ie.landingPageUrl,"_self"),f.t;this.tabWindow?this.tabWindow.location.href=ie.landingPageUrl:this.tabWindow=window.open(ie.landingPageUrl,"_blank"),this.httpRequestSub=(0,O.R)(window,"message").pipe((0,r.p)(ue=>this.validateMessageEvent(ue,"redirectCallback")),(0,_.T)(()=>this.getRedirectResponse()))}else ie.landingPageUrl?.length>0&&(this.config.uasConfig.sameTab?window.open(ie.landingPageUrl,"_self"):(this.tabWindow||(this.tabWindow=window.open("","_blank")),this.tabWindow.location.href=ie.landingPageUrl));return(0,l.of)(ie)}cancelAutoEntitlement(){this.sendTelemetry(T.fbu.UALoginPendingTimedOut,"cancelled or timedout"),this.loginInitiated=!1,this.pendingEntitlement=!1,this.stopHttpServer(),this.pollingSubscription&&(this.pollingSubscription.unsubscribe(),this.pollingSubscription=null)}autoEntitleUser(ie,ve=!1){if(this.acquireUserLoginStateSub&&!this.acquireUserLoginStateSub.isStopped)return this.logger.info("Auto-entitlment already in progress."),this.acquireUserLoginStateSub.asObservable();if((!this.acquireUserLoginStateSub||this.acquireUserLoginStateSub.isStopped)&&(this.acquireUserLoginStateSub=new P.m(1)),this.AutoEntitleStateSub.next(D.g.Started),this.logger.info("Auto Entitle triggered"),!1===this.loginInitiated&&!1===this.pendingEntitlement)return setTimeout(()=>{this.AutoEntitleStateSub.next(D.g.LoggedIn),this.logger.warn("Auto entitle cancelled, login not initiated"),this.acquireUserLoginStateSub.next(D.f.LOGGED_IN),this.acquireUserLoginStateSub.complete()},0),this.acquireUserLoginStateSub.asObservable();if(this.loginInitiated=!1,!0!==this.isAutoEntitlementEnabled())return setTimeout(()=>{this.AutoEntitleStateSub.next(D.g.LoggedIn),this.logger.info("Auto entitlement is disabled"),this.pendingEntitlement=!1,this.acquireUserLoginStateSub.next(D.f.LOGGED_IN),this.acquireUserLoginStateSub.complete()},0),this.acquireUserLoginStateSub.asObservable();if(!ie)return this.AutoEntitleStateSub.next(D.g.LoggedOut),this.logger.warn("Invalid idToken, aborting auto entitle"),this.pendingEntitlement=!1,this.showNextPage(null,{landingPageUrl:null,loginState:D.f.UNKNOWN,requestId:null}).pipe((0,M.M)(se=>{this.stopHttpServer(),this.acquireUserLoginStateSub.next(D.f.NOT_LOGGED_IN),this.acquireUserLoginStateSub.complete()})).subscribe(),this.acquireUserLoginStateSub.asObservable();this.logger.info("triggering auto entitle");let ue=null;if(this.pendingEntitlement)ue=(0,l.of)(this.getRedirectResponse()),this.pendingEntitlement=!1;else{const se=this.config.uasConfig.redirectUrlIsRelative?this.routerService.getCurrentUrl():this.config.uasConfig.homeUrl;ue=this.uasSdk.acquireUser(ie,this.redirectUrl,se,this.localeService.getLocale())}return ue.pipe((0,i.ZZ)(se=>(this.logger.info("acquire user success",se),this.showNextPage(ie,se))),(0,i.ZZ)(se=>{switch(se.loginState){case D.f.LOGGED_IN:return this.stopHttpServer(),this.AutoEntitleStateSub.next(D.g.LoggedIn),this.sendTelemetry(T.fbu.UALoginComplete),(0,l.of)(D.f.LOGGED_IN);case D.f.PENDING_LOGIN:return this.AutoEntitleStateSub.next(D.g.Pending),this.sendTelemetry(T.fbu.UALoginPending,`requestId: ${se.requestId}, page: ${se.landingPageUrl}`),this.logger.info("acquire user input required, pending"),this.httpRequestSub.pipe((0,a.s)(1),(0,i.ZZ)(Z=>{const Se=this.config.starfleet.useDeviceAuthLogin||this.config.uasConfig.redirectUrlIsRelative?Z:this.handleHttpRequest(Z);return this.logger.info("user input completed: ",Se),this.showNextPage(ie,Se)}),(0,_.T)(Z=>Z.loginState===D.f.LOGGED_IN?(this.stopHttpServer(),this.AutoEntitleStateSub.next(D.g.LoggedIn),this.sendTelemetry(T.fbu.UALoginPendingSuccess),D.f.LOGGED_IN):(this.stopHttpServer(),this.AutoEntitleStateSub.next(D.g.LoggedOut),this.sendTelemetry(T.fbu.UALoginPendingFailure,`request id ${se.requestId}, state: ${Z.loginState}`),D.f.NOT_LOGGED_IN)));default:return this.stopHttpServer(),this.AutoEntitleStateSub.next(D.g.LoggedOut),this.sendTelemetry(T.fbu.UALoginFailed,`request id ${se.requestId}, state: ${se.loginState}`),(0,l.of)(D.f.NOT_LOGGED_IN)}}),(0,c.W)(se=>(this.logger.error("acquire user failed with error:",se,se?.message),401!==se?.status||ve?(this.sendTelemetry(T.fbu.UALoginFailed,this.stringOrObj(se)),this.AutoEntitleStateSub.next(D.g.Failed),this.showNextPage(null,{landingPageUrl:null,loginState:D.f.UNKNOWN,requestId:null}).pipe((0,_.T)(Z=>(this.stopHttpServer(),D.f.NOT_LOGGED_IN)))):(this.loginInitiated=!0,(0,l.of)(D.f.AUTHORIZATION_ERROR)))),(0,M.M)(se=>{this.acquireUserLoginStateSub.next(se),this.acquireUserLoginStateSub.complete()})).subscribe(),this.acquireUserLoginStateSub.asObservable()}stringOrObj(ie){try{return JSON.stringify(ie)}catch{return ie}}sendTelemetry(ie,ve){const ue=new T.BAK({clientType:this.telemetryUtilService.getClientType(),currentScreen:this.telemetryService.getScreen(),userAction:T.ay7.AutoEntitle,status:ie,errorDetails:ve?.substring(0,1023)||"",totalMs:0,errorUri:"",serverErrorCode:""});let se=(0,l.of)(!0);(ie===T.fbu.UALoginComplete||ie===T.fbu.UALoginPendingSuccess)&&(se=this.telemetryService.getValidUserIdResetObservable()),se.pipe((0,r.p)(Z=>!0===Z),(0,a.s)(1),(0,M.M)(Z=>{this.telemetryService.push(ue,null,{immediateRequest:!0})})).subscribe()}static{this.\u0275fac=function(ve){return new(ve||J)(L.KVO(E.J6),L.KVO(g.Vk),L.KVO(R.f),L.KVO(E.NZ),L.KVO(E.iH),L.KVO(B.HM),L.KVO(T.jgD),L.KVO(X.H0))}}static{this.\u0275prov=L.jDH({token:J,factory:J.\u0275fac,providedIn:"root"})}}return J})()},54250:(Bt,z,s)=>{"use strict";s.d(z,{H$:()=>Se,Lk:()=>At,B_:()=>L});var n=s(99469),l=s(56785),d=s(85735),v=s(16229),S=s(43848),y=s(59859),f=s(31315),O=s(12532),P=s(15652),_=s(35146),i=s(65706),r=s(55833),a=s(91384),c=s(72147),m=s(53461),M=s(83915),D=s(14714),I=s(8619),U=s(75707),V=s(43615),T=s(10174),N=s(36206),L=function(Le){return Le.None="None",Le.UnsupportedOS="UnsupportedOS",Le.UnsupportedBrowser="UnsupportedBrowser",Le.PWARequired="PWARequired",Le.NativeAppOnly="NativeAppOnly",Le.UnsupportedStreaming="UnsupportedStreaming",Le}(L||{}),E=function(Le){return Le.None="None",Le.OfficiallySupported="OfficiallySupported",Le.UnofficiallySupported="UnofficiallySupported",Le.PartiallySupported="PartiallySupported",Le}(E||{}),g=s(80561),R=s(70433),B=s(18433),X=s(78893),H=s(80583),J=s(19392),re=s(4208),ie=s(58527),ve=s(26537),ue=s(3457),se=s(47973),Z=s(96542);let Se=(()=>{class Le{constructor($e,Ze){this.dialogRef=Ze,this.destroy$=new H.B7,this.dismissMessageDelay=4e3,this.gfnLink=location.hostname,this.logger=$e.getLogger("unsupported-browser-help.component")}onClose(){this.dialogRef.close()}onCopy(){(0,J.H)(navigator.clipboard.writeText(this.gfnLink)).pipe((0,re.Q)(this.destroy$)).subscribe($e=>{this.successMessageVisible=!0,setTimeout(()=>{this.successMessageVisible=!1},this.dismissMessageDelay)},$e=>{this.logger.error(`${this.gfnLink} is copied failed, error: ${$e}`)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(Ze){return new(Ze||Le)(ie.rXU(n.J6),ie.rXU(ve.CP))}}static{this.\u0275cmp=ie.VBU({type:Le,selectors:[["gfn-pwa-setup-guidance"]],decls:30,vars:24,consts:[["fxFlex","","fxLayout","column",1,"main-container"],["fxLayout","column",1,"content-container"],["fxLayout","column","fxLayoutAlign","start start"],[1,"font-header6","color-white","prompt-header"],[1,"font-body2"],[1,"link-container","font-body2"],["fxLayoutAlign","start center",1,"gfn-link"],["mat-button","","fxLayout","row","fxLayoutAlign","end center",1,"color-white",3,"click"],[1,"success-message","font-body2"],["fxLayout","row","fxLayoutAlign","end end",1,"button-container"],["mat-button","",3,"click"]],template:function(Ze,Qe){1&Ze&&(ie.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),ie.EFF(4),ie.nI1(5,"translate"),ie.k0s(),ie.j41(6,"span",4),ie.EFF(7),ie.nI1(8,"translate"),ie.k0s(),ie.j41(9,"span",4),ie.EFF(10),ie.nI1(11,"translate"),ie.k0s(),ie.j41(12,"span",4),ie.EFF(13),ie.nI1(14,"translate"),ie.k0s()(),ie.j41(15,"div",5)(16,"span",6),ie.EFF(17),ie.k0s(),ie.j41(18,"button",7),ie.bIt("click",function(){return Qe.onCopy()}),ie.j41(19,"span"),ie.EFF(20),ie.nI1(21,"translate"),ie.k0s()()(),ie.j41(22,"span",8),ie.EFF(23),ie.nI1(24,"translate"),ie.k0s()(),ie.j41(25,"div",9)(26,"button",10),ie.bIt("click",function(){return Qe.onClose()}),ie.j41(27,"span"),ie.EFF(28),ie.nI1(29,"translate"),ie.k0s()()()()),2&Ze&&(ie.R7$(4),ie.JRh(ie.bMT(5,10,"iosUnsupportedBrowserHelpDialog.title")),ie.R7$(3),ie.JRh(ie.bMT(8,12,"iosUnsupportedBrowserHelpDialog.setUpStep1")),ie.R7$(3),ie.JRh(ie.bMT(11,14,"iosUnsupportedBrowserHelpDialog.setUpStep2")),ie.R7$(3),ie.JRh(ie.bMT(14,16,"iosUnsupportedBrowserHelpDialog.setUpStep3")),ie.R7$(4),ie.JRh(Qe.gfnLink),ie.R7$(3),ie.JRh(ie.bMT(21,18,"iosPWA.copy")),ie.R7$(2),ie.AVh("visible",Qe.successMessageVisible),ie.R7$(),ie.JRh(ie.bMT(24,20,"iosPWA.linkCopied")),ie.R7$(5),ie.JRh(ie.bMT(29,22,"common.close")))},dependencies:[ue.DJ,ue.sA,ue.UI,se.iV,Z.D9],styles:[".main-container[_ngcontent-%COMP%]{width:560px;height:-moz-fit-content;height:fit-content}.main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%]{margin:20px 24px 8px}.main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .prompt-header[_ngcontent-%COMP%]{margin-bottom:12px}.main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .link-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto;margin:16px 0 8px;border:1px solid rgba(255,255,255,.2)}.isLtr[_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .link-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .link-container[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .link-container[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .link-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .link-container[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .link-container[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message[_ngcontent-%COMP%]{visibility:hidden}.isLtr[_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message[_ngcontent-%COMP%]{margin:0 0 8px 8px}html[dir=ltr][_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message[_ngcontent-%COMP%]{--dummy: 0;margin:0 0 8px 8px}.isRtl[_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message[_ngcontent-%COMP%]{margin:0 8px 8px 0}html[dir=rtl][_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message[_ngcontent-%COMP%]{--dummy: 0;margin:0 8px 8px 0}.main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message.visible[_ngcontent-%COMP%]{visibility:visible}.main-container[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{margin:0 8px 8px}"]})}}return Le})();var Ce=s(81834),Be=s(82187),Xe=s(18005),He=s(61958),Me=s(7703),Q=s(50801),A=s(17901),me=s(78812),ne=s(66974),G=s(45903),W=s(72945);const $_body_text="layout.universalUnsupportedDialogOnLoadText.bodyText",$_body_textPlatform="layout.universalUnsupportedDialogOnLoadText.bodyTextPlatform",$_body_textBrowser="layout.universalUnsupportedDialogOnLoadText.bodyTextBrowser",$_body_textGeneric="layout.universalUnsupportedDialogOnLoadText.bodyTextGeneric",$_body_textPartialSupport="layout.universalUnsupportedDialogOnLoadText.bodyTextPartialSupport",$_body_gluBodyText="layout.universalUnsupportedDialogOnLoadText.gluBodyText",$_link_unsupportedPlatform="layout.universalUnsupportedDialogText.unsupportedPlatformLinkText",$_link_unsupportedBrowser="layout.universalUnsupportedDialogText.unsupportedBrowserLinkText",$_link_unsupportedBrowserWithNativeApps="layout.universalUnsupportedDialogText.unsupportedBrowserWithNativeAppsLinkText",$_link_unsupportedPlatformOnTV="layout.universalUnsupportedDialogText.unsupportedPlatformLinkTextOnTV",$_link_unsupportedBrowserOnTV="layout.universalUnsupportedDialogText.unsupportedBrowserLinkTextOnTV",$_link_unsupportedBrowserOnIOS="common.setUpOnSafari",$_link_unsupportedBrowserWithNativeAppsOnTV="layout.universalUnsupportedDialogText.unsupportedBrowserWithNativeAppsLinkTextOnTV",$_link_nativeAppOnlyPlatform="layout.universalUnsupportedDialogText.nativeAppOnlyPlatformLinkText",$_link_pwaRequiredGuidance="layout.universalUnsupportedDialogText.pwaRequiredGuidanceLinkText",$_link_genericUnsupported="layout.universalUnsupportedDialogText.genericUnsupportedLinkText",$_link_gluNonRecommendedBrowser="layout.universalUnsupportedDialogText.gluNonRecommendedBrowserLinkText",$_link_partialSupport="layout.universalUnsupportedDialogText.safariLimitations",$_primaryButton_text="layout.universalUnsupportedDialogOnLoadText.primaryButton",$_primaryButton_continueAnywayText="common.continueAnyway",$_secondaryButton_partialSupportText="common.download",$_offDeviceLink_unsupportedBrowserWithNativeApps="offDeviceLink.unsupportedBrowserWithNativeAppsText",le={headerText:{text:"androidPermissionWebAPIUnsupportedPrompt.title"},bodyText:{text:"androidPermissionWebAPIUnsupportedPrompt.body"},primaryButton:{text:"common.gotIt",accentColor:!0}},Pe={supportType:E.OfficiallySupported,supportedBrowser:!0,supportedOS:!0,nativeClientSupported:!0,pwaRequired:!1,nativeAppOnly:!1,pwaGuidance:!1,streamingSupported:!0,universalStreaming:!0},Fe="gluUnsupportedBrowser";let At=(()=>{class Le{constructor($e,Ze,Qe,Ve,nt,Ot,at,It,We,xe,lt,ft,ht,Xt,Ht,Je,tt,rt){this.appConfig=Ze,this.systemInfoService=Qe,this.dialog=Ve,this.genericDialog=nt,this.deeplinkHelperService=Ot,this.projectInterfaceService=at,this.pwaService=It,this.redirectService=We,this.translateService=xe,this.telemetryUtilService=lt,this.telemetryService=ft,this.guestModeHelperService=ht,this.remoteConfigurationService=Xt,this.focusManager=Ht,this.injector=Je,this.cloudVariableHelper=tt,this.sharedStorageService=rt,this.tvMode=!1,this.isUnsupportedDialogClosedSubject=new d.m(1),this.openSetupGuidance=()=>{this.genericDialog.closeAll(),this.focusManager.restoreFocusAfterClosed(()=>this.dialog.open(Se,{autoFocus:!0,hasBackdrop:!0,panelClass:["dialogPaddingRemove","nv-overlay-panel"]}))},this.logger=$e.getLogger("gfn/browser-universal-service"),this.tvMode=!!Ze.featureEnablement.tvMode,this.cachedUnsupportedBrowsersConfig$=this.fetchClientConfiguration().pipe((0,i.s)(1),(0,r.t)(1)),this._cachedUnsupportedBrowserState$=this.cachedUnsupportedBrowsersConfig$.pipe((0,a.M)(et=>this.logger.info("Unsupported Browser Config: ",et)),(0,c.n)(et=>this.getUnsupportedBrowserStateInternal$(et)),(0,a.M)(et=>{this.logger.info(`browser / platform Unsupported State: ${et.unsupportedState}, Supported State: ${et.supportedState}`)}),(0,r.t)(1))}get unsupportedBrowserDialogClosedState(){return this.isUnsupportedDialogClosedSubject.asObservable()}isBcuUnsupported($e){return!($e.supportType!==E.None&&$e.streamingSupported&&$e.supportedBrowser&&$e.supportedOS&&(!$e.pwaRequired||this.pwaService.isInPWAMode()))}isGluUnsupported($e,Ze){return!($e.supportType!==E.None&&$e.streamingSupported&&(!$e.pwaRequired||this.pwaService.isInPWAMode())||this.isGluUnblocked(Ze))}isGluUnblocked($e){return $e.unsupportedState===L.UnsupportedOS||$e.unsupportedState===L.UnsupportedBrowser}isStreamingUnsupported($e){return $e.universalStreaming?$e.unsupportedState===L.UnsupportedStreaming||$e.unsupportedState===L.PWARequired:$e.unsupportedState!==L.None}getUnsupportedBrowserState$($e=!1){return($e?this.fetchRemoteBrowserState():(0,v.h)(this._cachedUnsupportedBrowserState$,this.fetchRemoteBrowserState())).pipe((0,m.F)(Ce.ab))}getUnsupportedBrowserConfig$($e=!1){return($e?this.fetchRemoteBrowserConfig():(0,v.h)(this.cachedUnsupportedBrowsersConfig$,this.fetchRemoteBrowserConfig())).pipe((0,m.F)(Ce.ab))}shouldDisplayPWAGuidance$(){return this.cachedUnsupportedBrowsersConfig$.pipe((0,i.s)(1),(0,c.n)($e=>$e.pwaGuidance?this.getUnsupportedBrowserStateInternal$($e).pipe((0,M.T)(Ze=>Ze.unsupportedState===L.PWARequired)):(0,S.of)(!1)))}fetchRemoteBrowserState(){return this.fetchRemoteBrowserConfig().pipe((0,c.n)($e=>this.getUnsupportedBrowserStateInternal$($e)),(0,a.M)($e=>{this.logger.info(`browser / platform from remote fetch Unsupported State: ${$e.unsupportedState}, Supported State: ${$e.supportedState}`)}))}fetchRemoteBrowserConfig(){return this.remoteConfigurationService.remoteConfigFetched$.pipe((0,a.M)($e=>this.logger.info("Remote config fetch is complete")),(0,c.n)($e=>this.fetchClientConfiguration($e.config)),(0,m.F)(Ce.ab),(0,a.M)($e=>{this.logger.info("Unsupported Browser Config after remote config fetch: ",JSON.stringify($e))}),(0,D.W)($e=>(this.logger.error("Error fetching remote config:",$e),(0,y.$)($e))))}handleUnsupportedWarningDialog(){this.oobeService=this.injector.get(g.Z),this.loginWallService=this.injector.get(R.X);const $e=this.oobeService.oobeDialogClosedState.pipe((0,I.p)(Qe=>Qe)),Ze=this.loginWallService.onLoginWallFlowCompleted$();this.deeplinkHelperService.isDeeplinkScenario()||$e.pipe((0,i.s)(1),(0,U.ZZ)(Qe=>this.shouldShowPermissionUnsupportedWarning$()),(0,I.p)(Qe=>Qe),(0,U.ZZ)(Qe=>this.openPermissionWebAPIUnsupportedDialog())).subscribe(),(0,f.zV)([$e,Ze]).pipe((0,i.s)(1)).subscribe(Qe=>this.openUnsupportedDialog())}handleStreamerUnblockedWarningDialog($e){return(0,f.zV)([this.getUnsupportedBrowserConfig$(!0),this.sharedStorageService.readBlock(Fe)]).pipe((0,i.s)(1),(0,c.n)(([Ze,Qe])=>{if(Ze.universalStreaming&&this.isGluUnblocked($e)&&!Qe.isDialogShownOnLoad){const Ve=this.openUnsupportedBrowserDialogOnLoad$(Ze),nt=this.sharedStorageService.writeBlock(Fe,{isDialogShownOnLoad:!0});return Ve.pipe((0,U.ZZ)(Ot=>nt))}return Ze.universalStreaming?(0,S.of)(!0):this.sharedStorageService.writeBlock(Fe,{isDialogShownOnLoad:!1})}),(0,i.s)(1))}openUnsupportedDialog(){this.unsupportedDialogSubscription||(this.unsupportedDialogSubscription=(0,f.zV)([this.getUnsupportedBrowserConfig$(!0),this.getUnsupportedBrowserState$(!0),this.sharedStorageService.readBlock(Fe)]).pipe((0,i.s)(1),(0,c.n)(([$e,Ze,Qe])=>{let Ve=O.w;const nt=this.sharedStorageService.writeBlock(Fe,{isDialogShownOnLoad:!1}),Ot=this.sharedStorageService.writeBlock(Fe,{isDialogShownOnLoad:!0}),at=this.openUnsupportedBrowserDialogOnLoad$($e);return this.logger.info("isBcuUnsupported",this.isBcuUnsupported($e)),this.logger.info("isDeepLinkScenario",this.deeplinkHelperService.isDeeplinkScenario()),this.logger.info("gluUnblocked",this.isGluUnblocked(Ze)),this.logger.info("gluUnsupported",this.isGluUnsupported($e,Ze)),this.logger.info("isDialogShownOnLoad",Qe.isDialogShownOnLoad),$e.universalStreaming?Qe.isDialogShownOnLoad||!this.isGluUnblocked(Ze)||this.deeplinkHelperService.isDeeplinkScenario()?($e.supportType===E.PartiallySupported||this.isGluUnsupported($e,Ze)&&!this.deeplinkHelperService.isDeeplinkScenario())&&(Ve=at):Ve=at.pipe((0,U.ZZ)(()=>Ot)):Ve=$e.supportType===E.PartiallySupported||this.isBcuUnsupported($e)&&!this.deeplinkHelperService.isDeeplinkScenario()?nt.pipe((0,U.ZZ)(()=>at)):nt,Ve}),(0,i.s)(1),(0,V.j)(()=>{this.isUnsupportedDialogClosedSubject.next(!0),this.isUnsupportedDialogClosedSubject.complete()})).subscribe(()=>this.logger.info("Unsupported browser dialog is not displayed or dismissed by the user."),$e=>{this.logger.error("Error displaying unsupported browser dialog",$e)}))}shouldShowPermissionUnsupportedWarning$(){return this.logger.info("Navigator permissions available?",!!navigator.permissions),this.appConfig.client?.needsPermissionWebAPICheck?this.getUnsupportedBrowserConfig$(!0).pipe((0,M.T)($e=>{if($e.supportType===E.PartiallySupported)return!1;if(this.guestModeHelperService.isGuestAppFlow()){const Qe=this.guestModeHelperService.getGuestModeConfig()[Be.kC.IGOSettings];if(!Qe?.isMicFeatureEnabled&&!Qe?.pasteDefaultOn)return!1}return!navigator.permissions&&!this.wasPermissionWarningShown&&!this.isBcuUnsupported($e)})):(0,S.of)(!1)}openPermissionWebAPIUnsupportedDialog(){const $e=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:le});return $e.afterOpened().subscribe(Ze=>this.wasPermissionWarningShown=!0),(0,P.O4)($e.primaryButtonClick.pipe((0,T.u)(!0)),$e.afterClosed().pipe((0,T.u)(!1))).pipe((0,i.s)(1),(0,a.M)(Ze=>{Ze&&$e.close()}))}getUnsupportedBrowserStateInternal$($e){const Ze={supportedState:E.None,unsupportedState:L.None,universalStreaming:$e.universalStreaming??!1};if($e.nativeAppOnly)return Ze.unsupportedState=L.NativeAppOnly,(0,S.of)(Ze);if(!$e.universalStreaming){if(!$e.supportedOS)return Ze.unsupportedState=L.UnsupportedOS,(0,S.of)(Ze);if(!$e.supportedBrowser)return Ze.unsupportedState=L.UnsupportedBrowser,(0,S.of)(Ze)}if(!$e.streamingSupported)return Ze.unsupportedState=L.UnsupportedStreaming,(0,S.of)(Ze);if($e.pwaRequired)return this.pwaService.onPWAModeChange.pipe((0,M.T)(Qe=>Qe?(Ze.supportedState=$e.supportType===E.OfficiallySupported?E.OfficiallySupported:E.UnofficiallySupported,Ze):(Ze.unsupportedState=L.PWARequired,Ze)));if($e.universalStreaming){if(!$e.supportedOS)return Ze.unsupportedState=L.UnsupportedOS,(0,S.of)(Ze);if(!$e.supportedBrowser)return Ze.unsupportedState=L.UnsupportedBrowser,(0,S.of)(Ze)}return $e.supportType===E.OfficiallySupported?Ze.supportedState=E.OfficiallySupported:$e.supportType===E.UnofficiallySupported?Ze.supportedState=E.UnofficiallySupported:$e.supportType===E.PartiallySupported&&(Ze.supportedState=E.PartiallySupported),(0,S.of)(Ze)}getRedirectKey($e){if($e.universalStreaming&&$e.supportedState===E.None)switch($e.unsupportedState){case L.UnsupportedOS:case L.UnsupportedBrowser:return N.r7.GfnPcDownload;case L.PWARequired:case L.NativeAppOnly:case L.UnsupportedStreaming:return N.r7.GfnPcUnsupportedBrowser;default:throw new Error("should not happen!")}else if($e.universalStreaming||$e.supportedState!==E.None){if($e.unsupportedState===L.None)switch($e.supportedState){case E.PartiallySupported:return N.r7.GfnPcSafariBrowserLearnMore;case E.OfficiallySupported:case E.UnofficiallySupported:break;default:throw new Error("should not happen!")}}else switch($e.unsupportedState){case L.UnsupportedOS:return N.r7.GfnPcUnsupportedDevice;case L.UnsupportedBrowser:case L.PWARequired:case L.NativeAppOnly:case L.UnsupportedStreaming:return N.r7.GfnPcUnsupportedBrowser;default:throw new Error("should not happen!")}}getBodyText($e){if($e.universalStreaming&&$e.supportedState===E.None)switch($e.unsupportedState){case L.UnsupportedOS:case L.UnsupportedBrowser:return" ";case L.PWARequired:case L.NativeAppOnly:case L.UnsupportedStreaming:return $_body_textBrowser;default:throw new Error("should not happen!")}else if($e.universalStreaming||$e.supportedState!==E.None){if($e.unsupportedState===L.None)switch($e.supportedState){case E.PartiallySupported:return $_body_textPartialSupport;case E.OfficiallySupported:case E.UnofficiallySupported:break;default:throw new Error("To be Implemented")}}else switch($e.unsupportedState){case L.UnsupportedOS:return $_body_textPlatform;case L.UnsupportedBrowser:case L.PWARequired:case L.NativeAppOnly:return $_body_textBrowser;case L.UnsupportedStreaming:return $_body_textGeneric;default:throw new Error("should not happen!")}}getUnsupportedHeaderText$($e){if($e.universalStreaming&&$e.supportedState===E.None)switch($e.unsupportedState){case L.UnsupportedOS:case L.UnsupportedBrowser:return this.combineBodyTextTranslations$($e);case L.PWARequired:case L.NativeAppOnly:case L.UnsupportedStreaming:return(0,S.of)("layout.universalUnsupportedDialogText.unsupportedBrowserHeaderText");default:throw new Error("should not happen!")}else if($e.universalStreaming||$e.supportedState!==E.None){if($e.unsupportedState===L.None)switch($e.supportedState){case E.PartiallySupported:return(0,S.of)("layout.universalUnsupportedDialogOnLoadText.partialSupportHeaderText");case E.OfficiallySupported:case E.UnofficiallySupported:break;default:throw new Error("should not happen!")}}else switch($e.unsupportedState){case L.UnsupportedOS:return(0,S.of)("layout.universalUnsupportedDialogText.unsupportedPlatformHeaderText");case L.UnsupportedBrowser:case L.PWARequired:case L.NativeAppOnly:return(0,S.of)("layout.universalUnsupportedDialogText.unsupportedBrowserHeaderText");case L.UnsupportedStreaming:return(0,S.of)("layout.universalUnsupportedDialogText.unsupportedGenericHeaderText");default:throw new Error("should not happen!")}}getDialogLink$($e,Ze){return this.getUnsupportedBrowserConfig$(Ze?.isLive).pipe((0,c.n)(Qe=>this._getDialogLink$($e,Qe,Ze)),(0,m.F)(Ce.ab))}_getDialogLink$($e,Ze,Qe){const Ve=this.getRedirectKey($e),nt=Qe?.anchorLink||!this.tvMode?this.getLinkText($e,Ze):this.getTVModeLinkText($e,Ze),Ot=$e.unsupportedState===L.UnsupportedBrowser&&Ze?.pwaGuidance,at=Ve===N.r7.GfnPcUnsupportedBrowser&&Ze?.nativeClientSupported?$_offDeviceLink_unsupportedBrowserWithNativeApps:void 0;return this.redirectService.getRedirectUrl(Ve).pipe((0,M.T)(It=>({url:It,text:nt,shortUrl:N.lp[Ve],shortUrlDescription:at,routerLink:this.getRouterLink($e,Ze),linkClickedCallback:Ot?this.openSetupGuidance.bind(this):void 0})))}getRouterLink($e,Ze){if($e.unsupportedState===L.PWARequired&&Ze?.pwaGuidance)return{commands:X.V6.PwaWall,skipLocationChange:!1}}getGluGenericBodyText($e){return $e.universalStreaming&&this.isGluUnblocked($e)?$_body_gluBodyText:$_body_text}combineBodyTextTranslations$($e){const Qe=this.translateService.get(this.getGluGenericBodyText($e)),Ve=this.translateService.get(this.getBodyText($e));return $e.supportedState===E.PartiallySupported?Ve:(0,_.yU)(Qe,Ve).pipe((0,i.s)(1),(0,M.T)(([nt,Ot])=>`${nt}<br><br>${Ot}`))}getTranslatedBodyText$($e){return this.getUnsupportedBrowserStateInternal$($e).pipe((0,c.n)(Ze=>this.combineBodyTextTranslations$(Ze)))}secondaryButtonConfig($e){return this.getUnsupportedBrowserStateInternal$($e).pipe((0,c.n)(Ze=>{const Qe=this.getSecondaryButtonText(Ze);return(0,S.of)(Qe?{text:Qe}:null)}))}getPrimaryButtonConfig$($e){return this.getUnsupportedBrowserStateInternal$($e).pipe((0,c.n)(Ze=>(0,S.of)({text:this.getButtonText(Ze),accentColor:this.getButtonConfig(Ze)})))}getTranslatedHeaderText$($e){return this.getUnsupportedBrowserStateInternal$($e).pipe((0,c.n)(Ze=>this.translateService.get(this.getHeaderText(Ze))))}getHeaderText($e){if($e.supportedState===E.None)switch($e.unsupportedState){case L.NativeAppOnly:case L.UnsupportedOS:case L.UnsupportedBrowser:case L.PWARequired:case L.UnsupportedStreaming:return"layout.universalUnsupportedDialogOnLoadText.headerText";default:throw new Error("should not happen!")}else if($e.unsupportedState===L.None)switch($e.supportedState){case E.PartiallySupported:return"layout.universalUnsupportedDialogOnLoadText.partialSupportHeaderText";case E.OfficiallySupported:case E.UnofficiallySupported:break;default:throw new Error("should not happen!")}}getButtonText($e){if($e.universalStreaming&&$e.supportedState===E.None)switch($e.unsupportedState){case L.UnsupportedOS:case L.UnsupportedBrowser:return $_primaryButton_continueAnywayText;case L.NativeAppOnly:case L.PWARequired:case L.UnsupportedStreaming:return $_primaryButton_text;default:throw new Error("should not happen!")}else if($e.universalStreaming||$e.supportedState!==E.None){if($e.unsupportedState===L.None)switch($e.supportedState){case E.PartiallySupported:return $_primaryButton_continueAnywayText;case E.OfficiallySupported:case E.UnofficiallySupported:break;default:throw new Error("should not happen!")}}else switch($e.unsupportedState){case L.NativeAppOnly:case L.UnsupportedOS:case L.UnsupportedBrowser:case L.PWARequired:case L.UnsupportedStreaming:return $_primaryButton_text;default:throw new Error("should not happen!")}}getSecondaryButtonText($e){if($e.supportedState===E.None)switch($e.unsupportedState){case L.NativeAppOnly:case L.UnsupportedOS:case L.UnsupportedBrowser:case L.PWARequired:case L.UnsupportedStreaming:return"";default:throw new Error("should not happen!")}else if($e.unsupportedState===L.None)switch($e.supportedState){case E.PartiallySupported:return $_secondaryButton_partialSupportText;case E.OfficiallySupported:case E.UnofficiallySupported:break;default:throw new Error("should not happen!")}}getButtonConfig($e){if($e.supportedState===E.None)switch($e.unsupportedState){case L.NativeAppOnly:case L.UnsupportedOS:case L.UnsupportedBrowser:case L.PWARequired:case L.UnsupportedStreaming:return!1;default:throw new Error("should not happen!")}else if($e.unsupportedState===L.None)switch($e.supportedState){case E.PartiallySupported:return!0;case E.OfficiallySupported:case E.UnofficiallySupported:break;default:throw new Error("should not happen!")}}getLinkText($e,Ze){if($e.universalStreaming&&$e.supportedState===E.None)switch($e.unsupportedState){case L.NativeAppOnly:return $_link_nativeAppOnlyPlatform;case L.UnsupportedOS:case L.UnsupportedBrowser:return $_link_gluNonRecommendedBrowser;case L.PWARequired:return Ze?.pwaGuidance?$_link_pwaRequiredGuidance:Ze?.nativeClientSupported?$_link_unsupportedBrowserWithNativeApps:$_link_unsupportedBrowser;case L.UnsupportedStreaming:return $_link_unsupportedBrowserWithNativeApps;default:throw new Error("should not happen!")}else if($e.universalStreaming||$e.supportedState!==E.None){if($e.unsupportedState===L.None)switch($e.supportedState){case E.PartiallySupported:return $_link_partialSupport;case E.OfficiallySupported:case E.UnofficiallySupported:break;default:throw new Error("should not happen!")}}else switch($e.unsupportedState){case L.NativeAppOnly:return $_link_nativeAppOnlyPlatform;case L.UnsupportedOS:return $_link_unsupportedPlatform;case L.UnsupportedBrowser:case L.PWARequired:return Ze?.pwaGuidance?$e.unsupportedState===L.UnsupportedBrowser?$_link_unsupportedBrowserOnIOS:$_link_pwaRequiredGuidance:Ze?.nativeClientSupported?$_link_unsupportedBrowserWithNativeApps:$_link_unsupportedBrowser;case L.UnsupportedStreaming:return $_link_genericUnsupported;default:throw new Error("should not happen!")}}getTVModeLinkText($e,Ze){if(!this.tvMode)throw new Error("Not in TV mode!");if($e.universalStreaming&&$e.supportedState===E.None)switch($e.unsupportedState){case L.UnsupportedOS:case L.UnsupportedBrowser:return $_link_gluNonRecommendedBrowser;case L.NativeAppOnly:case L.UnsupportedStreaming:return $_link_unsupportedBrowserWithNativeApps;case L.PWARequired:return Ze?.nativeClientSupported?$_link_unsupportedBrowserWithNativeAppsOnTV:$_link_unsupportedBrowserOnTV;default:throw new Error("should not happen!")}else if($e.universalStreaming||$e.supportedState!==E.None){if($e.unsupportedState===L.None)switch($e.supportedState){case E.PartiallySupported:return $_link_partialSupport;case E.UnofficiallySupported:case E.OfficiallySupported:break;default:throw new Error("should not happen!")}}else switch($e.unsupportedState){case L.NativeAppOnly:return $_link_unsupportedBrowserWithNativeAppsOnTV;case L.UnsupportedOS:return $_link_unsupportedPlatformOnTV;case L.UnsupportedBrowser:case L.PWARequired:return Ze?.nativeClientSupported?$_link_unsupportedBrowserWithNativeAppsOnTV:$_link_unsupportedBrowserOnTV;case L.UnsupportedStreaming:return $_link_genericUnsupported;default:throw new Error("should not happen!")}}openUnsupportedBrowserDialogOnLoad$($e){const Ze=this.getUnsupportedBrowserStateInternal$($e).pipe((0,c.n)(Qe=>this._getDialogLink$(Qe,$e)));return(0,_.yU)(this.telemetryService.getCommonDataObservable(),this.telemetryService.getDefaultClientConsentObserable()).pipe((0,i.s)(1),(0,U.ZZ)(Qe=>(0,f.zV)([this.getTranslatedHeaderText$($e),this.getTranslatedBodyText$($e),this.getPrimaryButtonConfig$($e),this.secondaryButtonConfig($e),Ze]).pipe((0,i.s)(1),(0,c.n)(([Ve,nt,Ot,at,It])=>{const We=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:Ve,translated:!0},bodyText:{text:nt,translated:!0},link:It,primaryButton:Ot,secondaryButton:at,autoFocusOnPrimaryButton:!1}},{preferredDialogType:l.QO.ThreeQuarterSheet});this.telemetryUtilService.sendPopUpDialogShownEvent(B.duU.Unsupported_Browser_Or_Platform_Load);const xe=We.primaryButtonClick.pipe((0,a.M)(lt=>{this.telemetryUtilService.sendPopUpDialogClosedEvent(B.duU.Unsupported_Browser_Or_Platform_Load,B.HBm.Dialog_Closed),We.close()}));return We.secondaryButtonClick.subscribe(()=>{window.location.href=this.downloadNativeClientUrl}),(0,P.O4)(xe,We.afterClosed())}))))}isSupportedBrowser($e,Ze,Qe){return this.checkSystemCompatibility($e,Ze??Qe)}checkSystemCompatibility($e,Ze){return!!this.pwaService.isInPWAMode()||!!Ze&&Ze.supportedPlatforms.includes($e.OSName)}checkGuestModeOverrides($e,Ze){return!(!this.guestModeHelperService.isGuestMode||!$e)&&this.checkSystemCompatibility(Ze,$e)}getSupportType($e,Ze,Qe,Ve,nt){return Ze?nt?E.PartiallySupported:Qe&&this.isSupportedBrowser($e,Qe)?E.OfficiallySupported:Ve&&this.isSupportedBrowser($e,Ve)?E.UnofficiallySupported:this.isSupportedBrowser($e,Qe,Ve)?E.OfficiallySupported:E.None:E.None}getDefaultSupportedConfig($e){return{supportType:$e?E.OfficiallySupported:E.None,supportedBrowser:!0,supportedOS:!0,nativeClientSupported:!1,pwaRequired:!1,nativeAppOnly:!1,pwaGuidance:!1,streamingSupported:$e,universalStreaming:!0}}initializeNativeClientDownloadURLs($e){this.downloadNativeClientUrl=$e===n.t_.MacOS?this.appConfig?.downloadNativeClient?.macUrl:this.appConfig?.downloadNativeClient?.winUrl}fetchClientConfiguration($e=this.appConfig){const Ze=!!$e.featureEnablement?.browserClientUniversalEnablement,Qe=!!$e.featureEnablement?.gdnUniversalEnablement;return n.zk.isNativeLikePlatform()?(0,S.of)(Pe):Qe&&this.guestModeHelperService.isGuestAppFlow()?(0,S.of)({supportType:E.OfficiallySupported,supportedBrowser:!0,supportedOS:!0,nativeClientSupported:!1,pwaRequired:!1,nativeAppOnly:!1,pwaGuidance:!1,streamingSupported:!0,universalStreaming:!0}):(0,f.zV)([this.systemInfoService.getSystemInfo([n.Lu.OSName,n.Lu.BrowserName]),this.systemInfoService.checkStreamingSupport(),this.cloudVariableHelper.getFeatureToggle(Xe.Yi.GAME_LAUNCH_UNIVERSAL)]).pipe((0,M.T)(([Ve,nt,Ot])=>{if(this.logger.info("Is streaming Supported: ",nt),Ze)return this.logger.info("Browser Client Universal Flag is enabled"),this.logger.info("Streaming Supported Flag from Ragnarok: ",nt),this.getDefaultSupportedConfig(nt);this.initializeNativeClientDownloadURLs(Ve.OSName);const at=$e.supportedBrowsersAndPlatforms,It=at?.officiallySupported.find(ft=>ft?.browser===Ve.BrowserName&&ft?.supportedPlatforms.includes(Ve.OSName)),We=at?.unofficiallySupported.find(ft=>ft?.browser===Ve.BrowserName&&ft?.supportedPlatforms.includes(Ve.OSName)),xe=at?.partiallySupported.find(ft=>ft?.browser===Ve.BrowserName&&ft?.supportedPlatforms.includes(Ve.OSName)),lt=at?.guestModeOverrides?.find(ft=>ft?.browser===Ve.BrowserName&&ft?.supportedPlatforms.includes(Ve.OSName));return this.logger.info("Official Support Info from Config",JSON.stringify(It)),this.logger.info("Unofficial Support Info from Config",JSON.stringify(We)),this.logger.info("Partial Support Info from Config",JSON.stringify(xe)),this.logger.info("Guest Mode Overrides from Config",JSON.stringify(lt)),this.logger.info("Current System Info",JSON.stringify(Ve)),this.checkGuestModeOverrides(lt,Ve)?(this.logger.info("Guest Mode Overrides are enabled"),this.logger.info("Streaming Supported Flag from Ragnarok: ",nt),this.getDefaultSupportedConfig(nt)):{supportType:this.getSupportType(Ve,nt,It,We,xe),supportedBrowser:this.isSupportedBrowser(Ve,It,We),supportedOS:at.allSupportedPlatforms?.includes(Ve.OSName),nativeClientSupported:at.nativeClientSupportedPlatforms.includes(Ve.OSName),pwaRequired:at.pwaRequiredPlatforms?.includes(Ve.OSName),nativeAppOnly:!!at.nativeAppOnlyPlatforms?.includes(Ve.OSName),pwaGuidance:at.pwaGuideSupportedPlatforms?.includes(Ve.OSName),streamingSupported:nt,universalStreaming:Ot.isEnabled}}))}static{this.\u0275fac=function(Ze){return new(Ze||Le)(ie.KVO(n.J6),ie.KVO(He.Vk),ie.KVO(n.zW),ie.KVO(ve.bZ),ie.KVO(l.uh),ie.KVO(Me.w),ie.KVO(Q.qQ),ie.KVO(A.SL),ie.KVO(N.Q5),ie.KVO(Z.c$),ie.KVO(B.jgD),ie.KVO(me.H0),ie.KVO(ne.x),ie.KVO(G.a),ie.KVO(l.c_),ie.KVO(ie.zZn),ie.KVO(Xe.r1),ie.KVO(W.yQ))}}static{this.\u0275prov=ie.jDH({token:Le,factory:Le.\u0275fac,providedIn:"root"})}}return Le})()},99569:(Bt,z,s)=>{"use strict";s.d(z,{T:()=>T});var n=s(80583),l=s(26513),d=s(85735),v=s(31315),S=s(65706),y=s(83915),f=s(75707),O=s(99469),P=s(5715),_=s(53747),i=s(61958),r=s(89284),a=s(68868),c=s(58527),m=s(72945),M=s(82973),D=s(74150),I=s(54292),U=s(96542),V=s(65597);let T=(()=>{class N{allowEarlyLayoutFetch(){this.startLayoutFetchSubject.next()}get startLayoutFetch$(){return this.startLayoutFetchSubject.asObservable()}get filterPanelToggled$(){return this.filterPanelToggled.asObservable()}get streamingTerminated$(){return this.streamingTerminated.asObservable()}get streamingBegin$(){return this.streamingBegin.asObservable()}get selectedParentId(){return this._selectedParentId}get enableGridResizing$(){return this.enableGridResizing}get gridSectionGameDetailslOpenStatus$(){return this.isGridSectionGameDetailsOpen.asObservable()}updateGridSectionGameDetailsOpenStatus(E){this.isGridSectionGameDetailsOpen.next(E)}browseStore(E){return E.pipe((0,S.s)(1),(0,y.T)(g=>(this.browseDbStore=this.dbCacheService.getOrCreateCachedGlobalItem(_.eE.DbStoreName,g.userId||O.Qe),this.logger.info("DB store initialize",_.eE.DbStoreName),this.browseDbStore)))}applyClassOnBody(E){document?document.getElementsByTagName("body")[0].classList.add(E):this.logger.error("Can not add the class, document is undefined")}showInvokeKeyboardToast(E){if(E&&this.inputModalityService.lastInputModality!==a.M.Keyboard){const B={duration:5e3,horizontalPosition:"left",panelClass:["nv-hig"]};this.snackBar.open(this.translateService.instant(E),"",B)}}updateInitialScale(){const E=window.devicePixelRatio;if(E){const g=1/E;this.meta.updateTag({content:`width=device-width, initial-scale=${g}, viewport-fit=cover, minimum-scale=${g}, maximum-scale=${g}`},"name=viewport")}else this.logger.info("Invalid devicePixelRatio. Not updating the initial scale.")}get gridViewGameDetailsGameId(){return this._gridViewGameDetailsGameId}get enableOverrideToolLink(){return this.overrideToolPath&&this.browserSupportService.isStagingOrDevDomain()&&this.pwaService.isInPWAMode()}constructor(E,g,R,B,X,H,J,re,ie,ve,ue,se,Z){this.appConfig=g,this.dbCacheService=R,this.systemInfoService=B,this.sharedStorageService=X,this.distributedTracingBootstrapService=H,this.meta=J,this.browserSupportService=re,this.translateService=ie,this.inputModalityService=ve,this.snackBar=ue,this.pwaService=se,this.redirectService=Z,this.marqueeControl=P.O.Play,this.enableGridResizing=new n.B7,this.isGridSectionGameDetailsOpen=new l.t(!1),this.filterPanelToggled=new d.m(1),this.streamingTerminated=new n.B7,this.streamingBegin=new n.B7,this.startLayoutFetchSubject=new d.m(1),this.notSupportedInfoShortUrl$=new d.m(1),this.notSupportedInfo$=new d.m(1),this._notSupportedInfo$=null,this.unsupportedInfoInitialized=!1,this.logger=E.getLogger("gfn/shared/browseUx"),this._selectedParentId="",this.tvMode=!!g?.featureEnablement?.tvMode,this.overrideToolPath=g?.client?.overrideToolPath,this.isAppStoreLinkEnabled=!!g.client?.enableAppStoreLink,this.appStoreLink=g.client?.appStoreLink,this.redirectKey=g.featureEnablement?.tvMode?r.r7g.GfnPcHelpTvGamepadOnly:r.r7g.GfnPcHelpKeyboardGamesUnavailable,this.tvMode&&(this.applyClassOnBody("tv-view"),g?.client?.updateInitalScale&&this.updateInitialScale())}initialize(){this.setMarqueeControlAction(P.O.Play),this.calculateAndCacheNotSupportedInfo()}calculateAndCacheNotSupportedInfo(){if(!this.unsupportedInfoInitialized)if(this.notSupportedInfoShortUrl$.next(this.isAppStoreLinkEnabled?"":r.lph[this.redirectKey]),this.isAppStoreLinkEnabled){const g=this.translateService.instant("layout.evidenceMetadata.notSupportedAndInstallApp",{appStoreLink:`href="${this.appStoreLink}" class="font-body3-link no-wrap" tabIndex="0"`});this.notSupportedInfo$.next(g),this.unsupportedInfoInitialized=!0}else this.redirectService.getRedirectUrl(this.redirectKey).pipe((0,S.s)(1),(0,y.T)(g=>this.translateService.instant("layout.evidenceMetadata.notSupported",{otherWaysLink:`href="${g}" class="font-body3-link no-wrap" tabIndex="0"`}))).subscribe({next:g=>{this.unsupportedInfoInitialized=!0,this.notSupportedInfo$.next(g)},error:g=>{this.unsupportedInfoInitialized=!1,this.logger.error("Failed to get redirect URL for unsupported info",g),this.notSupportedInfo$.next("")}})}getNotSupportedInfoShortUrl(){return this.notSupportedInfoShortUrl$.asObservable()}getNotSupportedInfo(){return this.notSupportedInfo$.asObservable()}getUserPreference(E,g){return this.browseStore(g).pipe((0,f.ZZ)(R=>R.sync_()),(0,y.T)(R=>R[E]))}setGridViewGameDetailsGameId(E){this._gridViewGameDetailsGameId=E}setUserPreference(E,g){return this.browseDbStore.sync_().pipe((0,f.ZZ)(()=>(this.browseDbStore[E]=g,this.browseDbStore.persist_())))}setMarqueeControlAction(E){this.marqueeControl=E}getMarqueeControlAction(){return this.marqueeControl}setSelectedParentId(E){this._selectedParentId=E}emitFilterPanelToggled(E,g){this.filterPanelToggled.next({opened:E,mode:g})}emitStreamingTerminated(){this.streamingTerminated.next()}emitStreamingBegin(){this.streamingBegin.next()}getVersionString(){return(0,v.zV)([this.systemInfoService.getSystemInfo([O.Lu.UserDefaultUILanguage,O.Lu.ProductName]),this.distributedTracingBootstrapService.fetchCountryCode()]).pipe((0,S.s)(1),(0,y.T)(([E,g])=>{if(O.zk.isAndroidPlatform())return`${(0,i.Cl)(this.appConfig)} ${g}/${E.UserDefaultUILanguage}/${E.ProductName}`;{const R=this.getClientVersionInfo();if(!R)return"";let B="",X="";return R.variant.length>0&&(B=R.variant.charAt(0)),R.type.length>0&&(X=R.type.charAt(0)),R.version+(B&&X?"/":"")+B+X+" "+g+"/"+E.UserDefaultUILanguage}}))}readLaunchMetaData(E){return this.sharedStorageService.readBlock(r.OUV.parentIdToLaunchMetaDataMap+"/"+E)}writeLaunchMetaData(E,g){return this.sharedStorageService.writeBlock(r.OUV.parentIdToLaunchMetaDataMap+"/"+E,g)}deleteLaunchMetaData(E){return this.sharedStorageService.removeBlock(r.OUV.parentIdToLaunchMetaDataMap+"/"+E)}openOverrideToolPage(){this.tvMode?location.href=this.overrideToolPath:window.open(this.overrideToolPath,"_blank")}getClientVersionInfo(){return{version:this.appConfig.build.version,variant:this.appConfig.build.variant,type:this.appConfig.build.type}}static{this.\u0275fac=function(g){return new(g||N)(c.KVO(O.J6),c.KVO(i.Vk),c.KVO(O.sc),c.KVO(O.zW),c.KVO(m.yQ),c.KVO(M.h),c.KVO(D.W8),c.KVO(I.vT),c.KVO(U.c$),c.KVO(a.p),c.KVO(V.UG),c.KVO(r.SLD),c.KVO(r.Q5Y))}}static{this.\u0275prov=c.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}}return N})()},38502:(Bt,z,s)=>{"use strict";s.d(z,{y1:()=>P,vB:()=>_,_v:()=>a,cq:()=>i,gb:()=>r});var n=s(99469),l=s(56237),d=s(31315),v=s(83915),S=s(55833),y=s(81834),f=s(61958),O=s(58527);let P=(()=>{class c{constructor(M,D){this.systemInfoService=M,this.appConfig=D}getDeviceModelHeader(M){if(n.zk.isBrowserPlatform()){if(M.DeviceType!==n.Y0.TV)return M.SystemName?.toUpperCase()??_;const I=M.CPUName?.toUpperCase();if("TIZEN"!==M.OSName)return I??_;const{year:U}=(0,y.hH)((0,y.IT)());return(U?`${I}-${U}`:I)??_}let D=_;return M.Model?D=M.Model:M.SystemName&&(D=M.SystemName),D}getDeviceMakeHeader(M){let D=_;return M.Make?D=M.Make:M.VendorName&&(D=M.VendorName),D}getClientIdHeaderValue(M){if(!M)throw new Error(`Unrecognized client ID type (${M})`);return this.appConfig.lcars.clientId}initialize(){const M=this.systemInfoService.getDeviceOSType(),D=(0,l.T)(n.zk.isBrowserLikePlatform,this.systemInfoService.getClientHeadersInfo(),this.systemInfoService.getSystemInfo([n.Lu.OSName,n.Lu.Platform,n.Lu.VendorName,n.Lu.SystemName]));this.commonHeaders$=(0,d.zV)([M,D]).pipe((0,v.T)(([I,U])=>{const V={};if(n.zk.isBrowserPlatform())V["NV-Device-Type"]=U.DeviceType,V["NV-Device-OS"]=U.OSName,V["NV-Client-Type"]="BROWSER",V["NV-Client-Streamer"]="WEBRTC",V["NV-Browser-Type"]=U.BrowserName;else{const T=r(I);V["NV-Device-Type"]=U.DeviceType?a(U.DeviceType):i(T),V["NV-Device-OS"]=T,V["NV-Client-Type"]="NATIVE",V["NV-Client-Streamer"]="NVIDIA-CLASSIC"}return V["NV-Device-Model"]=this.getDeviceModelHeader(U),V["NV-Device-Make"]=this.getDeviceMakeHeader(U),V["NV-Client-Version"]=(0,f.Cl)(this.appConfig),V}),(0,S.t)(1))}getCommonHeaders(M){return this.commonHeaders$||this.initialize(),this.commonHeaders$.pipe((0,v.T)(D=>({...D})),(0,v.T)(D=>(M?.withClientId&&(D["NV-Client-ID"]=this.getClientIdHeaderValue(M.withClientId)),D)))}static{this.\u0275fac=function(D){return new(D||c)(O.KVO(n.zW),O.KVO(f.Vk))}}static{this.\u0275prov=O.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})();const _="UNKNOWN",i=c=>{switch(c){case"IOS":return"PHONE";case"IPADOS":return"TABLET";case"TIZEN":case"WEBOS":return"TV";case"XBOX":case"STEAMOS":return"CONSOLE";default:return"DESKTOP"}},r=c=>{switch(c){case n.t_.Android:return"ANDROID";case n.t_.ChromeOS:return"CHROMEOS";case n.t_.IOS:return"IOS";case n.t_.IPadOS:return"IPADOS";case n.t_.Linux:return"LINUX";case n.t_.MacOS:return"MACOS";case n.t_.Shield:return"SHIELD";case n.t_.SteamOS:return"STEAMOS";case n.t_.Tizen:return"TIZEN";case n.t_.WebOS:return"WEBOS";case n.t_.Windows:return"WINDOWS";case n.t_.XBox:return"XBOX";default:return"UNKNOWN"}},a=c=>{switch(c){case n.Y0.Desktop:return"DESKTOP";case n.Y0.Laptop:return"LAPTOP";case n.Y0.TV:return"TV";case n.Y0.Phone:return"PHONE";case n.Y0.Tablet:return"TABLET";case n.Y0.Console:return"CONSOLE";case n.Y0.HMD:return"HMD";default:return"DESKTOP"}}},18005:(Bt,z,s)=>{"use strict";s.d(z,{r1:()=>r,Yi:()=>S});var n=s(20381),l=s(43848),d=s(83915),v=s(14714),S=function(a){return a.CLIPBOARD_PASTE_FEATURE_CONFIG="clipboardPasteFeatureConfig",a.BACKGROUND_WEBRTC_NETWORK_TEST="webRtcNetworkTestV2",a.ENABLE_BROWSER_IGSS="enableBrowserIGSS",a.GAME_LAUNCH_UNIVERSAL="gameLaunchUniversal",a.STEAMOS_NATIVE_DOWNLOAD="steamosNativeDownload",a}(S||{});const y=new Map([[S.ENABLE_BROWSER_IGSS,{defaultValue:!1,subUseCaseName:n.Id.GxTargetGetEnableBrowserIGSS,mapperFn:a=>a.value[S.ENABLE_BROWSER_IGSS]}],[S.BACKGROUND_WEBRTC_NETWORK_TEST,{defaultValue:{value:{enabled:!1,supportedZonesList:[],showUI:!1}},subUseCaseName:n.Id.Other,mapperFn:a=>a}],[S.GAME_LAUNCH_UNIVERSAL,{defaultValue:{isEnabled:!0},subUseCaseName:n.Id.GxTargetGetGameLaunchUniversalConfig,mapperFn:a=>a.value}],[S.STEAMOS_NATIVE_DOWNLOAD,{defaultValue:{isEnabled:!1},subUseCaseName:n.Id.Other,mapperFn:a=>a.value?.isEnabled}]]),f=new Map([[S.BACKGROUND_WEBRTC_NETWORK_TEST,"webRtcNetworkTestV2"]]);var O=s(58527),P=s(99469),_=s(61958),i=s(89284);let r=(()=>{class a{constructor(m,M,D,I){this.loggingService=m,this.experienceControlService=M,this.configuration=D,this.idmService=I,this.fetchedFeatureToggleValueMap=new Map,this.logger=this.loggingService.getLogger("CloudVariableHelperService"),this.idmService.accountStatusChanged.subscribe(()=>this.fetchedFeatureToggleValueMap?.clear())}getFeatureToggle(m,M={}){return M.configCheckEnabled&&!this.configuration.featureEnablement[M.useDifferentConfigAttributeName?f.get(m):m]?(this.logger.info("Feature disabled in config, returning default value"),(0,l.of)(y.get(m).defaultValue)):this.fetchedFeatureToggleValueMap.has(m)?(0,l.of)(this.fetchedFeatureToggleValueMap.get(m)):this.fetchFeatureToggle(m,M)}fetchFeatureToggle(m,M={}){return this.experienceControlService.getCloudVariable(this.configuration.gxTarget.experiences[m],{variant:M.buildVariant??null},{useCache:M.useCache??!0,useNetworkTimeoutForCacheFallback:!0},n.Ky.GxTargetGetCloudVariable,y.get(m).subUseCaseName,void 0,M.bypassClientRequestParamCheckForCache).pipe((0,d.T)(D=>{const I=y.get(m).mapperFn(D);return this.fetchedFeatureToggleValueMap.set(m,I),I}),(0,v.W)(D=>{this.logger.error(`Error while fetching feature toggle ${m}:`,D);const I=y.get(m).defaultValue;return(0,l.of)(I)}))}static{this.\u0275fac=function(M){return new(M||a)(O.KVO(P.J6),O.KVO(n.BW),O.KVO(_.Vk),O.KVO(i.k_2))}}static{this.\u0275prov=O.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})()},90116:(Bt,z,s)=>{"use strict";s.d(z,{$9:()=>i,yL:()=>D,ZZ:()=>M}),s(99469),s(89284),s(72945),s(88903),s(56785);const f=864e5;var i=function(I){return I[I.UnSupportedOS=0]="UnSupportedOS",I[I.OperationalMessaging=1]="OperationalMessaging",I[I.CriticalUpdate=2]="CriticalUpdate",I[I.RequiredUpdate=3]="RequiredUpdate",I[I.RecommendedUpdate=4]="RecommendedUpdate",I[I.DayPassExpired=5]="DayPassExpired",I[I.DayPassNearingExpiry=6]="DayPassNearingExpiry",I[I.TimeCappedLimitedState=7]="TimeCappedLimitedState",I[I.TimeCappedLowState=8]="TimeCappedLowState",I[I.AccountLinkingExpired=9]="AccountLinkingExpired",I[I.NewSyncFeature=10]="NewSyncFeature",I[I.UsabilityStudy=11]="UsabilityStudy",I[I.Survey=12]="Survey",I[I.DownloadNativeClient=13]="DownloadNativeClient",I[I.InstallPWA=14]="InstallPWA",I[I.BrowserPushNotification=15]="BrowserPushNotification",I[I.UpdatePWA=16]="UpdatePWA",I}(i||{});function M(I,U){return!I||Number(I.split(".")[2])<Number(U.split(".")[2])}function D(I,U){return!I||(Date.now()-I)/f>U}},43354:(Bt,z,s)=>{"use strict";s.d(z,{C$:()=>n,Vk:()=>d});var n=function(v){return v.Default="default",v.Row="row",v}(n||{});class d{}},61958:(Bt,z,s)=>{"use strict";s.d(z,{Vk:()=>n.Vk,C$:()=>n.C$,Cl:()=>X.C});var n=s(43354),O=(s(58527),s(83915),s(72147),s(75707),s(91384),s(14714),s(14709));s(72945),s(99469),s(56237),s(93181),s(43848),s(31315),s(45903),s(9544),s(20924),s(26875);(0,O.XR)(n.Vk);var X=s(70710)},70710:(Bt,z,s)=>{"use strict";function n(l){return l.product?.version||l.build.version}s.d(z,{C:()=>n})},15074:(Bt,z,s)=>{"use strict";s.d(z,{Io:()=>i,Lu:()=>m,NG:()=>y,OU:()=>a,Oj:()=>r,b2:()=>_,d4:()=>d,ni:()=>n,nw:()=>P,o:()=>f});const n={NETWORK_TROUBLESHOOT:"gfn_pc_net_help",GFN_PC_INFO:"gfn_pc_info",GFN_PC_HELP:"gfn_pc_help",TERMS_CONDITIONS:"gfn_pc_terms_of_use",ACCOUNT_TERMS:"nvidia_account_tos",OSS_LICENSES:"gfn_pc_oss",PRIVACY_POLICY:"privacy_policy",ACCOUNT_MANAGEMENT:"nvidia_account_management",ACCOUNT_MANAGEMENT_SSO:"nvidia_account_management_default",GFN_MEMBERSHIP_MANAGEMENT:"nvidia_account_management_gfn",SYS_REQUIREMENTS:"gfn_pc_sys_req",UDP_BUFFER_TIPS:"gfn_pc_net_help_udp_socket",GFN_PC_UNSUPPORTED_REGION:"gfn_pc_unsupported_region",GFN_PC_NET_HELP_FIREWALL:"gfn_pc_net_help_firewall",GFN_PC_NET_HELP_WIFI:"gfn_pc_net_help_wifi",GFN_PC_HELP_UPDATE:"gfn_pc_help_update",GFN_PC_HELP_MISSING_DECODER:"gfn_pc_help_missing_decoder",GFN_PC_MEMBERSHIP_JOIN:"gfn_pc_membership",GFN_SERVER_STATUS:"gfn_service_status",GFN_PC_REDEEM_ACTIVATION_CODE:"gfn_pc_redeem_activation_code",GFN_PC_ACCOUNT_NOT_ACTIVATED:"gfn_pc_account_not_activated",GFN_PC_WAITLIST:"gfn_pc_waitlist",DISCORD_TERMS:"discord_terms_of_service",GFN_PC_MEMBERSHIP_UPGRADE:"gfn_pc_membership_upgrade",GFN_PC_MEMBERSHIP_DAYPASS:"gfn_pc_membership_daypass",GFN_PC_CHECKOUT_DAYPASS:"gfn_pc_checkout_daypass",COOKIE_POLICY:"nvidia_cookie_policy",GFN_PC_KEYBOARD_TROUBLESHOOTING:"gfn_pc_keyboard_troubleshooting",STEAM_ACCOUNT_SETTINGS:"steam_account_settings",GFN_PC_REDEEM_MULTI_AFFILIATE:"gfn_pc_redeem_multi_affiliate",GFN_PC_DOWNLOAD:"gfn_pc_download",GFN_PC_RECOMMENDED_GAMEPADS:"gfn_pc_recommended_gamepads",GFN_PC_FAQ_IOS:"gfn_pc_faq_ios",EPIC_ACCOUNT_SETTINGS:"epic_account_settings",GFN_PC_HELP_KEYBOARD_GAMES_UNAVAILABLE:"gfn_pc_help_keyboard_games_unavailable",GFN_PC_BROWSER_PUSH_NOTIFICATION:"gfn_pc_help_browser_push_notification",GFN_PC_HELP_PASTE:"gfn_pc_help_paste",GFN_PC_HELP_CONNECTIONS:"gfn_pc_help_connections"};var d=function(D){return D.US="US",D}(d||{}),y=function(D){return D.Default="Default",D.GamepadFriendly="GamepadFriendly",D.TouchFriendly="TouchFriendly",D}(y||{}),f=function(D){return D.Join="Join",D.Close="Close",D.Login="Login",D}(f||{}),P=function(D){return D.Continue="Continue",D.Cancel="Cancel",D}(P||{}),_=function(D){return D.RelaunchNow="RelaunchNow",D.Cancel="Cancel",D}(_||{}),i=function(D){return D.Cancel="Cancel",D}(i||{});const r={RigReadyAndStreamerIdleTimeout:{type:"RIG_READY_AND_STREAMER_IDLE_TIMEOUT",src:"./assets/audio/rig_ready_streamer_timeout.m4a"}};var a=function(D){return D.cmsIdToMetadataMap="cmsIdToMetadataMap",D.parentIdToLaunchMetaDataMap="parentIdToLaunchMetaDataMap",D}(a||{});const m="auto-"},50778:(Bt,z,s)=>{"use strict";s.d(z,{ni:()=>n.ni,d4:()=>n.d4,Oj:()=>n.Oj,o:()=>n.o,NG:()=>n.NG,u7:()=>l.u,tS:()=>l.t,Lu:()=>n.Lu,OU:()=>n.OU,Io:()=>n.Io,nw:()=>n.nw,b2:()=>n.b2});var n=s(15074),l=s(42629)},42629:(Bt,z,s)=>{"use strict";s.d(z,{t:()=>n,u:()=>l});var n=function(d){return d[d.NVB_AUTH_INVALID=-1]="NVB_AUTH_INVALID",d[d.NVB_AUTH_NONE=0]="NVB_AUTH_NONE",d[d.NVB_AUTH_OAUTH2_PINGFEDERATE=1]="NVB_AUTH_OAUTH2_PINGFEDERATE",d[d.NVB_AUTH_OAUTH2_GOOGLE=2]="NVB_AUTH_OAUTH2_GOOGLE",d[d.NVB_AUTH_OAUTH2_JANRAIN=3]="NVB_AUTH_OAUTH2_JANRAIN",d[d.NVB_AUTH_ACTIVE_DIRECTORY=4]="NVB_AUTH_ACTIVE_DIRECTORY",d[d.NVB_AUTH_CLIENT_CERTIFICATE=5]="NVB_AUTH_CLIENT_CERTIFICATE",d[d.NVB_AUTH_SESSION_ID=6]="NVB_AUTH_SESSION_ID",d[d.NVB_AUTH_JARVIS=7]="NVB_AUTH_JARVIS",d[d.NVB_AUTH_JWT=8]="NVB_AUTH_JWT",d[d.NVB_AUTH_JWT_GFN=9]="NVB_AUTH_JWT_GFN",d}(n||{}),l=function(d){return d[d.NCT_R_UNKNOWN=0]="NCT_R_UNKNOWN",d[d.NCT_R_SUCCESS=1]="NCT_R_SUCCESS",d[d.NCT_R_INVALID_PARAM=2]="NCT_R_INVALID_PARAM",d[d.NCT_R_SYN_FAILED=3]="NCT_R_SYN_FAILED",d[d.NCT_R_FIN_FAILED=4]="NCT_R_FIN_FAILED",d[d.NCT_R_AUTH_FAILED=5]="NCT_R_AUTH_FAILED",d[d.NCT_R_POST_FAILED=6]="NCT_R_POST_FAILED",d[d.NCT_R_TEST_IN_PROGRESS=7]="NCT_R_TEST_IN_PROGRESS",d[d.NCT_R_CANCELED=8]="NCT_R_CANCELED",d[d.NCT_R_CAPACITY_FULL=9]="NCT_R_CAPACITY_FULL",d[d.NCT_R_SESSION_EXIST=10]="NCT_R_SESSION_EXIST",d[d.NCT_R_INVALID_DATA=11]="NCT_R_INVALID_DATA",d[d.NCT_R_SETUP_FAILED=12]="NCT_R_SETUP_FAILED",d[d.NCT_R_RETRYABLE_POST_FAILURE=13]="NCT_R_RETRYABLE_POST_FAILURE",d[d.NCT_R_BLOCK_STREAM=14]="NCT_R_BLOCK_STREAM",d}(l||{})},7703:(Bt,z,s)=>{"use strict";s.d(z,{w:()=>D});var n=s(43848),l=s(20381),d=s(43354),v=s(65706),S=s(75707),y=s(91384),f=s(83915),O=s(14714),P=s(14331),_=s(78893),i=s(21341),r=s(16992),a=s(54250),c=s(80838),m=s(58527),M=s(99469);let D=(()=>{class I{constructor(V,T){this.injector=V,this.useWindowedMode=!1,this._isDeeplinkGameLaunch=!1,this.logger=T.getLogger("deeplink-helper"),this.canHandleMap=new Map([[P.py.PlayGame,{canHandle:this.canHandlePlayGame.bind(this)}],[P.py.ViewGame,{canHandle:this.canHandleViewGame.bind(this)}]])}canHandleViewGame(V){const T=V.has(P.aj.GameId);return(0,n.of)({canHandle:T,isBadRequest:!T})}canHandlePlayGame(V){return V.has(P.aj.GameId)||V.has(P.aj.CmsId)?(this.unsupportedBrowserService=this.injector.get(a.Lk),this.unsupportedBrowserService.shouldDisplayPWAGuidance$().pipe((0,v.s)(1),(0,S.ZZ)(N=>(0,n.of)(N?{canHandle:!1,isBadRequest:!1,redirectLink:_.V6.PwaWall}:{canHandle:!0,isBadRequest:!1})))):(0,n.of)({canHandle:!1,isBadRequest:!0})}setDeeplinkZoneOverride(V,T){const N=V.get(P.aj.Zone);if(N)try{const L=this.injector.get(i.uU),E=this.injector.get(c.G),g=new URL(N).host;L.deeplinkOverrideZone?.address!==g&&(L.deeplinkOverrideZone=this.getDeeplinkZoneOverride(N,T),E.refreshServerInfo())}catch(L){this.logger.error("Incorrect deeplink override zone",L)}}performHandlingCheck(V){return this.getFeatureToggle().pipe((0,S.ZZ)(T=>{const N=V.get(P.aj.Action)||P.eL,L={canHandle:!1,isBadRequest:!0};if(!this.canHandleMap.has(N))return this.logger.error("No handler for specified action"),(0,n.of)(L);const E=P.oT[N];return E?T[E]?this.canHandleMap.get(N).canHandle(V).pipe((0,y.M)(B=>{B.canHandle||this.logger.error("Invalid set of parameters")})):(L.isBadRequest=!1,this.logger.error("Action not enabled in feature toggle"),(0,n.of)(L)):(this.logger.error("Feature toggle not configured for action"),(0,n.of)(L))}))}getDeeplinkZoneOverride(V,T){if(!(-1!==window.location.href.indexOf(_.f.Deeplink)||T&&-1!==T.indexOf(_.f.Deeplink)))return null;{let N=V||(0,_.BS)(P.aj.Zone);try{if(this.logger.info("Deeplink Zone Override: ",N),N){const L=new URL(N);if(N=L.host,"https:"===L.protocol&&N.endsWith("nvidiagrid.net")){const E=N?.substring(0,N?.indexOf("."));if(N)return{address:N,runNetworkTest:!0,name:E,isInternal:!0}}}return null}catch(L){return this.logger.error("Incorrect deeplink override zone",L),null}}}isDeeplinkScenario(){return!!window.location.hash.match(_.f.Deeplink)}getFeatureToggle(){return this.fetchedFeatureToggleValue?(0,n.of)(this.fetchedFeatureToggleValue):this.fetchDeeplinkFeatureToggle()}isSpecialAffiliatePartner(V){return Object.values(P.HJ).includes(V)}fetchDeeplinkFeatureToggle(){if(this.configuration||(this.configuration=this.injector.get(d.Vk)),this.experienceControlService||(this.experienceControlService=this.injector.get(l.BW)),this.experienceControlService)return this.experienceControlService.getCloudVariable(this.configuration?.gxTarget.experiences.deeplinkSupportV2,void 0,{useCache:!0,useNetworkTimeoutForCacheFallback:!0},l.Ky.GxTargetGetCloudVariable,l.Id.GxTargetGetDeeplinkSupport).pipe((0,f.T)(V=>(this.fetchedFeatureToggleValue=V.value,this.fetchedFeatureToggleValue)),(0,O.W)(V=>{this.logger.error("Error while fetching deeplink feature toggle:",V);const T=P.kw,N=this.configuration?.featureEnablement?.deeplinkSupportV2;return(0,n.of)(void 0!==N?N:T)}));{const V=P.kw,T=this.configuration?.featureEnablement?.deeplinkSupportV2;return(0,n.of)(void 0!==T?T:V)}}getDeeplinkPartnerData(){return this.deeplinkPartnerData}setDeeplinkPartnerData(V){this.deeplinkPartnerData=V}resetDeeplinkPartnerData(){this.deeplinkPartnerData=null}allowApplicationReload(){return this.guestModeHelperService||(this.guestModeHelperService=this.injector.get(r.x)),!this.guestModeHelperService?.isGuestMode&&!this.getDeeplinkPartnerData()}getUpdatedPartnerId(V){return P.bE[V]||V}postStreamingCleanUp(){this.resetDeeplinkPartnerData(),this.windowedMode=!1,this.isDeeplinkGameLaunch=!1}get isDeeplinkGameLaunch(){return this._isDeeplinkGameLaunch}set isDeeplinkGameLaunch(V){this._isDeeplinkGameLaunch=V}set windowedMode(V){this.useWindowedMode=V}get windowedMode(){return this.useWindowedMode}static{this.\u0275fac=function(T){return new(T||I)(m.KVO(m.zZn),m.KVO(M.J6))}}static{this.\u0275prov=m.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}}return I})()},35833:(Bt,z,s)=>{"use strict";s.d(z,{Tq:()=>Me,o3:()=>Ht});var n=s(36877),l=s(12532),d=s(15652),v=s(31315),S=s(43848),y=s(27731),f=s(16229),O=s(75707),P=s(65706),_=s(8619),i=s(10174),r=s(83915),a=s(91384),c=s(4208),m=s(14714),M=s(72147),D=s(43615),I=s(56785),U=s(53747),V=s(18568),T=s(14043),N=s(18433),L=s(82094),E=s(77200),g=s(13515),R=s(36206),B=s(94829),X=s(54250),H=s(58202),J=s(50778),ie=(s(20924),s(58527)),ve=s(99469),ue=s(61958),se=s(26537),Z=s(99569),Se=s(96542),Ce=s(55512),Be=s(1548),Xe=function(Je){return Je.Back="Back",Je.Logout="Logout",Je}(Xe||{}),He=function(Je){return Je.SendFeedback="SendFeedback",Je.SessionReport="SessionReport",Je.VisitSupport="VisitSupport",Je.Back="Back",Je}(He||{}),Me=function(Je){return Je.MarkAsOwned="MarkAsOwned",Je.ManuallyMarkAsOwned="ManuallyMarkAsOwned",Je.Cancel="Cancel",Je.Reconnect="Reconnect",Je.Connect="Connect",Je.GoToConnection="GoToConnection",Je.Resync="Resync",Je.NotNow="NotNow",Je.Done="Done",Je}(Me||{});const Q_body_text="layout.inLineAccountLinkingPrompt.body",Q_body_textWithoutURL="layout.inLineAccountLinkingPrompt.bodyWithoutURL",Q_primaryButton={text:"layout.accountLinkingPrompt.connect",accentColor:!0},Q_checkbox_text="common.dontShowThisAgain",Q_checkbox_initialState=!1,Q_tvLink_text="pathToPurchase.title",A_body_text="layout.inLineSyncInProgress.body",me_connectBody_text="layout.inLineAccountConnected.body",me_reconnectBody_text="layout.inLineAccountConnected.reconnectBody",me_primaryButton={text:"common.done"},ne_body_text="layout.inLineSyncFailure.failedSync.body",ne_primaryButton={text:"accountConnection.refreshLibrary",accentColor:!0},G_body_text="layout.inLineSyncFailure.notPublicIssue.body",G_primaryButton={text:"accountConnection.refreshLibrary",accentColor:!0},W_body_text="layout.inLineSyncFailure.profileNotCreated.body",W_primaryButton={text:"accountConnection.refreshLibrary",accentColor:!0},$_body_text="layout.inLineSyncFailure.permissionFailure.body",$_primaryButton={text:"accountConnection.goToConnection",accentColor:!0},le_body_text="layout.inLineLibrarySynced.body",le_primaryButton={text:"common.done"},Pe_body_text="layout.inLineNoGameSynced.body",Pe_primaryButton={text:"accountConnection.refreshLibrary",accentColor:!0},Pe_tvLink_text="pathToPurchase.title",Fe_body_text="layout.manuallyOwnPrompt.body",Fe_body_textWithoutURL="layout.manuallyOwnPrompt.bodyWithoutURL",Fe_genericBody_text="layout.manuallyOwnPrompt.genericBody",Fe_genericBody_textWithoutURL="layout.manuallyOwnPrompt.genericBodyWithoutURL",Fe_primaryButton={text:"layout.manuallyOwnPrompt.primaryButton",accentColor:!0},Fe_tvLink_text="pathToPurchase.title",At_body_text="layout.resyncGameStore.body",At_primaryButton={text:"accountConnection.refreshLibrary",accentColor:!0},At_tvLink_text="pathToPurchase.title",Le={header:"common.joinTodayToPlay",headerOnTv:"layout.joinTodayAlertDialogText.headerTextOnTv",body:{text:"layout.joinTodayAlertDialogText.bodyText",textWithoutLink:"layout.joinTodayAlertDialogText.bodyTextWithoutLink"},primaryButton:{text:"common.joinToday",accentColor:!0},secondaryButton:{text:"common.cancel"},loginButton:{text:"common.login"}},Et={header:"loginBridgeState.loginToGeForceNow",headerOnTv:"loginBridgeState.loginToGeForceNow",body:{text:"layout.joinTodayAlertDialogText.bodyTextWithoutLink",textWithoutLink:"layout.joinTodayAlertDialogText.bodyTextWithoutLink"},primaryButton:{text:"common.login",accentColor:!0},secondaryButton:{text:"common.cancel"},loginButton:{text:"common.login",accentColor:!0}},$e_body_text="common.connectionError",$e_primaryButton={text:"common.close",accentColor:!0},Ze_body_text="layout.mobileDataWarning.body",Ze_primaryButton={text:"common.allow",accentColor:!0},Qe_body={text:"multiplatform.dialog.description"},Qe_primaryButton={text:"common.continue",isDisabled:!0},Ve_body_text="fencedStatus.patchingSupplementalText",Ve_primaryButton_text="common.close",nt_body_text="fencedStatus.offlineSupplementalTextShortMessage",nt_primaryButton_text="common.close",Ot={header:"layout.gamepadWarningAlert.title",body:{text:"layout.gamepadWarningAlert.body",placeholders:{gamePadURL:""}},checkbox:{text:"common.dontShowThisAgain",initialState:!1},primaryButton:{text:"common.continue",accentColor:!0},secondaryButton:"common.cancel",notShownAgainButton:"layout.continueDontShowAgain",supportedGamepad:"layout.gamepadWarningAlert.supportedGamepad"},at={...Ot,body:{text:"layout.gamepadWarningAlert.bodyEcomRestricted"},supportedGamepad:void 0},It_body_text="layout.keyboardMouseWarningAlert.body",It_checkbox_text="common.dontShowThisAgain",It_checkbox_initialState=!1,It_primaryButton={text:"common.continue",accentColor:!0},We_body_text="layout.dayPassLowPlayTimeAlert.body",We_body_bodyEcomRestricted="layout.dayPassLowPlayTimeAlert.bodyEcomRestricted",We_checkbox_text="common.dontShowThisAgain",We_checkbox_initialState=!1,We_primaryButton={text:"common.playAnyway",accentColor:!0},We_secondaryButton_text="common.cancel",We_secondaryButton_id="cancel",We_augmentedButton_text="ecommerce.membership.addDays",xe_body_text="timeCapTimeAlert.timeCapLowPlayTimeAlert.body",xe_body_bodyEcomRestricted="timeCapTimeAlert.timeCapLowPlayTimeAlert.bodyEcomRestricted",xe_checkbox_text="timeCapTimeAlert.dontShowAgain",xe_checkbox_initialState=!1,xe_primaryButton={text:"common.playAnyway",accentColor:!0},lt_header="timeCapSessionLimitReached.outOfPlaytime",lt_body_text="timeCapTimeAlert.timeCapLimitedPlayTimeAlert.body",lt_body_bodyUnplayable="timeCapTimeAlert.timeCapLimitedPlayTimeAlert.bodyUnplayable",lt_body_bodySkuBasedUnplayable="timeCapTimeAlert.timeCapLimitedPlayTimeAlert.bodySkuBasedUnplayable",lt_body_bodySkuBasedUnplayableEcomRestricted="timeCapTimeAlert.timeCapLimitedPlayTimeAlert.bodySkuBasedUnplayableEcomRestricted",lt_body_bodyEcomRestricted="timeCapTimeAlert.timeCapLimitedPlayTimeAlert.bodyEcomRestricted",lt_checkbox_text="timeCapTimeAlert.dontShowAgain",lt_checkbox_initialState=!1,lt_primaryButton={text:"ecommerce.addPlaytime",accentColor:!0},lt_primaryPlayAnywayButton={text:"common.playAnyway",accentColor:!0},lt_primaryCloseButton={text:"common.close",accentColor:!0},ft_primaryButton={text:"common.gotIt"},ht_body_unsupportedBrowserWithNativeApps="layout.universalUnsupportedDialogText.unsupportedBrowserWithNativeAppsBodyText",ht_primaryButton={text:"common.close"},Xt_primaryButton={text:"common.continueAnyway"},Xt_secondaryButton={text:"common.cancel"};let Ht=(()=>{class Je{constructor(rt,et,St,Gt,yt,Wt,ke,be,Ae,qe,Lt,Zt,fn,hn,On,fi,Ji,Fi){this.appConfig=et,this.dialog=St,this.browseUxService=Gt,this.translateService=yt,this.telemetryUtilService=Wt,this.idmService=ke,this.redirectService=be,this.genericDialog=Ae,this.ecomService=qe,this.unsupportedBrowserService=Lt,this.bridgeService=Zt,this.focusManager=fn,this.fullPageDialog=hn,this.dateHandlerService=On,this.userActivationGuardService=fi,this.udsHelperService=Ji,this.translateParser=Fi,this.logger=rt.getLogger("DialogService"),this.tvMode=!!et?.featureEnablement?.tvMode}get threeQuarterSheetBackgroundData(){return this._threeQuarterSheetDialogData}set threeQuarterSheetBackgroundData(rt){this._threeQuarterSheetDialogData=rt}openJoinTodayAlertDialog(rt,et){const St=this.ecomService.canHardUpsell(),Gt=St?Le:Et,yt=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:this.tvMode?Gt.headerOnTv:Gt.header},bodyText:{text:this.tvMode?Gt.body.textWithoutLink:Gt.body.text,placeholders:{loginLink:'class="font-body2-link membership-login-link"'}},primaryButton:St?{...Gt.primaryButton}:this.tvMode?null:{...Gt.loginButton},secondaryButton:this.tvMode?{...Gt.loginButton}:{...Gt.secondaryButton},threeQuarterSheetData:{augmentedButtons:[{text:Gt.secondaryButton.text,id:"cancel"}],...this.threeQuarterSheetBackgroundData}}},{preferredDialogType:this.tvMode?I.QO.ThreeQuarterSheet:void 0});let Wt=null;const ke=yt.afterOpened().pipe((0,O.ZZ)(Ae=>{if(this.tvMode)return yt.secondaryButtonClick;if(!St)return yt.primaryButtonClick;{const qe=document.getElementsByClassName("membership-login-link");if(qe&&qe[0])return(0,n.R)(qe,"click")}return l.w}),(0,P.s)(1));this.appConfig.featureEnablement.UASAutoEntitle?Wt=(0,d.O4)(ke,yt.primaryButtonClick):(Wt=ke,yt.primaryButtonClick.subscribe(()=>{this.telemetryUtilService.sendJoinTodayAlertDialogUiAction(J.o.Join),this.ecomService.openJoinMembershipPage(rt,et)},Ae=>{this.logger.error("join today dialog:",Ae)}));const be=this.tvMode?yt.augmentedButtonClick.pipe((0,_.p)(Ae=>"cancel"===Ae)):yt.secondaryButtonClick;return(0,d.O4)(be.pipe((0,i.u)(J.o.Close)),yt.afterClosed().pipe((0,i.u)(J.o.Close)),Wt.pipe((0,i.u)(J.o.Login))).pipe((0,r.T)(Ae=>(this.telemetryUtilService.sendJoinTodayAlertDialogUiAction(Ae),yt.close(),Ae)))}openUnsupportedBrowserDialog(rt){let et;this.openGFNUnsupportedDialog(!1,rt).pipe((0,P.s)(1),(0,O.ZZ)(St=>(et=St,(0,d.O4)(et.afterClosed().pipe((0,i.u)(J.Io.Cancel)),et.primaryButtonClick.pipe((0,i.u)(J.Io.Cancel))))),(0,a.M)(St=>{this.telemetryUtilService.sendPopUpDialogClosedEvent(N.duU.Unsupported_Browser_Or_Platform_Game_Launch,N.HBm.Dialog_Closed),et.close()})).subscribe()}openUnsupportedSystemSoftBlockerDialog(rt){let et;return this.openGFNUnsupportedDialog(!0,rt).pipe((0,P.s)(1),(0,O.ZZ)(St=>(et=St,(0,d.O4)(St.secondaryButtonClick.pipe((0,i.u)(J.nw.Cancel)),St.primaryButtonClick.pipe((0,i.u)(J.nw.Continue)),St.afterClosed().pipe((0,i.u)(J.nw.Cancel))))),(0,r.T)(St=>(this.telemetryUtilService.sendPopUpDialogClosedEvent(N.duU.Unsupported_Browser_Or_Platform_Login,St===J.nw.Continue?N.HBm.Continue_Login:N.HBm.Dialog_Closed),et.close(),St)))}openGFNUnsupportedDialog(rt,et){return(0,v.zV)([this.unsupportedBrowserService.getDialogLink$(et,{isLive:!0}),this.unsupportedBrowserService.getUnsupportedHeaderText$(et)]).pipe((0,P.s)(1),(0,r.T)(([St,Gt])=>this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:Gt},link:St,bodyText:this.tvMode?{text:ht_body_unsupportedBrowserWithNativeApps,placeholders:{vanityUrl:St.shortUrl}}:void 0,primaryButton:rt?{...Xt_primaryButton}:{...ht_primaryButton},secondaryButton:rt?{...Xt_secondaryButton}:void 0,threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:I.QO.ThreeQuarterSheet})),(0,a.M)(St=>{this.telemetryUtilService.sendPopUpDialogShownEvent(rt?N.duU.Unsupported_Browser_Or_Platform_Login:N.duU.Unsupported_Browser_Or_Platform_Game_Launch)}))}openConnectionErrorDialog(){const rt=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"common.genericLoadError"},bodyText:{text:$e_body_text},primaryButton:{...$e_primaryButton}}});rt.primaryButtonClick.pipe((0,P.s)(1)).subscribe(()=>rt.close())}openMobileDataWarningDialog(){const rt=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"layout.mobileDataWarning.title"},bodyText:{text:Ze_body_text},primaryButton:{...Ze_primaryButton},secondaryButton:{text:"common.cancel"},threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:I.QO.ThreeQuarterSheet});return(0,d.O4)(rt.primaryButtonClick.pipe((0,i.u)(!0)),rt.secondaryButtonClick.pipe((0,i.u)(!1))).pipe((0,a.M)(()=>rt.close()))}setDigitalStore(rt,et,St){const Gt=rt?.label;return Gt!==L.$f?this.translateService.get(et,{digitalStore:Gt}):this.translateService.get(St)}openMultiPlatformSelectionDialog(rt,et){if(this.tvMode)return this.openStoreSelectorFullPageDialog({gameName:et.gameName,variants:et.variants,heroImageURL:et.heroImageURL,isInputSupported:et.isInputSupported});const St=et.variants.map(ke=>{const be=ke.appStoreInfo.label;return Object.assign({value:be===L.$f?ke.publisherName:be},ke.appStoreInfo.smallImageUrl?{imageUrl:ke.appStoreInfo.smallImageUrl}:null)}),yt={panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"common.beforeYouPlay"},bodyText:{...Qe_body},primaryButton:{...Qe_primaryButton},secondaryButton:{text:"common.cancel"},radioButtonOptions:St}},Wt=this.genericDialog.open(yt);return Wt.radioButtonClick.pipe((0,P.s)(1),(0,a.M)(()=>{yt.data.primaryButton.isDisabled=!1})).subscribe(),(0,d.O4)(Wt.primaryButtonClick.pipe((0,i.u)(!0)),Wt.secondaryButtonClick.pipe((0,i.u)(!1)),Wt.afterClosed().pipe((0,i.u)(!1))).pipe((0,r.T)(ke=>{if(Wt.close(),ke){const be=(ke=>{let be;const Ae=L.X9.StoresList.find(qe=>qe.label===ke);return be=et.variants.find(Ae?qe=>qe.appStore===Ae.store:qe=>qe.publisherName===ke&&qe.appStoreInfo.label===L.$f),be})(Wt.radioOptionSelected);return this.telemetryUtilService.sendClickEvent(N.EBD.PlatformSelection,be.appStore,`${rt}/${N.MCB.ScreenPlatformSelectionDialog}`),be}return null}))}openFencedStatusErrorDialog(rt){this.logger.info("Show fenced error dialog for",rt);const et=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:rt===V.jv.PATCHING?"fencedStatus.gamePatching":"fencedStatus.gameOffline"},bodyText:{text:rt===V.jv.PATCHING?Ve_body_text:nt_body_text},primaryButton:{text:rt===V.jv.PATCHING?Ve_primaryButton_text:nt_primaryButton_text}}});et.primaryButtonClick.pipe((0,P.s)(1)).subscribe(()=>et.close())}openGamepadRequiredDialog(){return(0,v.zV)([this.redirectService.getRedirectUrl(R.r7.GfnPcRecommendedGamepads),this.browseUxService.getUserPreference(U.mG.skipGamepadWarningDialog,this.idmService.accountStatusChanged)]).pipe((0,O.ZZ)(([rt,et])=>{if(et)return(0,S.of)(!0);const St=this.ecomService.canHardUpsell()?Ot:at,Gt=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:St.header},bodyText:{text:St.body.text,placeholders:this.tvMode?void 0:{gamePadURL:`class="font-body2-link" href="${rt}"`}},checkbox:{text:this.tvMode?St.notShownAgainButton:St.checkbox.text,initialState:St.checkbox.initialState,primaryActionInThreeQuarterSheet:!0},primaryButton:{...St.primaryButton},secondaryButton:{text:St.secondaryButton},link:St.supportedGamepad?{text:this.tvMode?St.supportedGamepad:void 0,url:this.tvMode?rt:void 0,shortUrl:R.lp[R.r7.GfnPcRecommendedGamepads]}:void 0,threeQuarterSheetData:this.threeQuarterSheetBackgroundData}});return(0,d.O4)(Gt.primaryButtonClick.pipe((0,i.u)(!0)),Gt.secondaryButtonClick.pipe((0,i.u)(!1)),Gt.afterClosed().pipe((0,i.u)(!1))).pipe((0,r.T)(yt=>(Gt.close(),yt&&this.browseUxService.setUserPreference(U.mG.skipGamepadWarningDialog,Gt.checkboxState).pipe((0,P.s)(1)).subscribe(),yt)))}))}openKeyboardMouseRequiredDialog(){return this.browseUxService.getUserPreference(U.mG.skipKeyboardMouseWarningDialog,this.idmService.accountStatusChanged).pipe((0,O.ZZ)(et=>{if(et)return(0,S.of)(!0);const St=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"layout.keyboardMouseWarningAlert.title"},bodyText:{text:It_body_text},checkbox:{text:this.tvMode?"layout.continueDontShowAgain":It_checkbox_text,initialState:It_checkbox_initialState,primaryActionInThreeQuarterSheet:!0},primaryButton:{...It_primaryButton},secondaryButton:{text:"common.quit"},threeQuarterSheetData:this.threeQuarterSheetBackgroundData}});return(0,d.O4)(St.primaryButtonClick.pipe((0,i.u)(!0)),St.secondaryButtonClick.pipe((0,i.u)(!1)),St.afterClosed().pipe((0,i.u)(!1))).pipe((0,a.M)(()=>St.close()),(0,O.ZZ)(Gt=>Gt?this.browseUxService.setUserPreference(U.mG.skipKeyboardMouseWarningDialog,St.checkboxState).pipe((0,i.u)(Gt)):(0,S.of)(Gt)))}))}openGameShortcutDialog(rt,et,St,Gt,yt,Wt,ke){const be=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{image:{caption:"interface.gametitle",captionPlaceholder:{title:rt},description:"gameShortcut.createShortcutGuidance",url:et,shortcutUrl:St,isDraggableUrl:!0,dragStartCallback:this.onGameShortcutDragStart.bind(this,yt,Wt,ke)},headerText:{text:"gameShortcut.createShortcutTitle"},primaryButton:{...ft_primaryButton}}});(0,d.O4)(be.primaryButtonClick.pipe((0,i.u)(!0)),be.afterClosed().pipe((0,i.u)(!0)),Gt).subscribe(()=>{be.close()})}onGameShortcutDragStart(rt,et,St){St&&this.telemetryUtilService.sendDragEvent(N.QF.GameShortcutUrl,rt,et)}openTimeCapLimitedPlaytimeDialog(rt,et,St){const Gt=this.ecomService.canHardUpsell(),yt=(0,v.zV)([this.browseUxService.getUserPreference(U.mG.skipTimeCapLimitedPlayTimeRemainingDialog,this.idmService.accountStatusChanged),this.ecomService.getUserMembership()]),Wt=this.ecomService.getRedirectUrlWithIdpId$(R.r7.GfnPcLimitedFeaturesGamePlay).pipe((0,r.T)(ke=>({headerText:{text:lt_header},bodyText:{text:Gt?lt_body_text:lt_body_bodyEcomRestricted,placeholders:this.tvMode?void 0:{limitedFeatureUrl:`class="font-body2-link" href="${ke}"`}},checkbox:{text:this.tvMode?"timeCapTimeAlert.dontShowAgainButton":lt_checkbox_text,initialState:lt_checkbox_initialState,primaryActionInThreeQuarterSheet:!1},link:{text:this.tvMode?"ecommerce.limitedFeatures":void 0,url:this.tvMode?ke:void 0,shortUrl:R.lp[R.r7.GfnPcLimitedFeaturesGamePlay],linkClickedCallback:this.limitedFeatureKBAClicked.bind(this,rt)},primaryButton:Gt?{...lt_primaryButton}:{...lt_primaryPlayAnywayButton},secondaryButton:Gt?{text:"common.playAnyway"}:{text:"common.cancel"}})));return yt.pipe((0,P.s)(1),(0,O.ZZ)(([ke,be])=>{if(!this.canShowTimeAlertDialog(ke,be.subscription?.currentSpanEndDateTime,U.mG.skipTimeCapLimitedPlayTimeRemainingDialog)&&et)return(0,S.of)(null);if(!et||St){const Ae={headerText:{text:lt_header},bodyText:{text:St?Gt?lt_body_bodySkuBasedUnplayable:lt_body_bodySkuBasedUnplayableEcomRestricted:lt_body_bodyUnplayable},primaryButton:Gt?{...lt_primaryButton}:{...lt_primaryCloseButton},secondaryButton:Gt?{text:"iosPWA.dismiss"}:void 0};return(0,S.of)(Ae)}return Wt}),(0,P.s)(1),(0,O.ZZ)(ke=>{if(null===ke)return(0,S.of)(!0);let be=N.HBm.Dialog_Closed;const Ae=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:ke}),qe=et&&!St;return(0,d.O4)(Ae.primaryButtonClick.pipe((0,a.M)(()=>{Gt?(this.ecomService.openAddPlaytimePageAndDialog(N.MCB.ScreenLimitedStateGameLaunchDialog,rt),be=N.HBm.Continue_Add_Playtime):qe&&(be=N.HBm.Continue_Play_Anyway)}),(0,i.u)(!Gt&&qe)),et&&!St&&Gt?Ae.secondaryButtonClick.pipe((0,a.M)(()=>be=N.HBm.Continue_Play_Anyway),(0,i.u)(!0)):Ae.secondaryButtonClick.pipe((0,i.u)(!1)),Ae.afterClosed().pipe((0,i.u)(!1))).pipe((0,P.s)(1),(0,a.M)(()=>Ae.close()),(0,O.ZZ)(Lt=>(this.telemetryUtilService.sendPopUpDialogClosedEvent(N.duU.Limited_State_Game_Launch,be,0,0,N.T80.FALSE,Ae.checkboxState?N.T80.TRUE:N.T80.FALSE),Lt&&et?this.ecomService.getUserMembership().pipe((0,P.s)(1),(0,O.ZZ)(Zt=>this.browseUxService.setUserPreference(U.mG.skipTimeCapLimitedPlayTimeRemainingDialog,{value:Ae.checkboxState,expirationDateTime:Zt.subscription.currentSpanEndDateTime}).pipe((0,i.u)(Lt)))):(0,S.of)(Lt))))}))}limitedFeatureKBAClicked(rt){this.telemetryUtilService.sendClickEvent(N.EBD.LimitedFeaturesKBA,"",rt,!1)}addPlayTimeClicked(rt){this.ecomService.openAddPlaytimePageAndDialog(N.MCB.ScreenLowStateGameLaunchDialog,rt)}openTimeCapLowPlaytimeDialog(rt){return(0,v.zV)([this.browseUxService.getUserPreference(U.mG.skipTimeCapLowPlayTimeRemainingDialog,this.idmService.accountStatusChanged),this.ecomService.getUserMembership()]).pipe((0,P.s)(1),(0,O.ZZ)(([et,St])=>{const Gt=this.ecomService.canHardUpsell();return this.canShowTimeAlertDialog(et,St.subscription?.currentSpanEndDateTime,U.mG.skipTimeCapLowPlayTimeRemainingDialog)?this.ecomService.getUserMembership().pipe((0,P.s)(1),(0,O.ZZ)(yt=>{const Wt={text:Gt?xe_body_text:xe_body_bodyEcomRestricted,placeholders:{remainingTime:(0,B.n9)(yt.subscription.remainingTimeInMinutes).time,addingMorePlaytime:!this.tvMode&&Gt?'class="font-body2-link add-playtime-link"':void 0}};let ke;this.tvMode&&Gt&&(ke={text:"timeCapTimeAlert.timeCapLowPlayTimeAlert.addPlayTime",url:void 0,shortUrl:void 0,linkClickedCallback:this.addPlayTimeClicked.bind(this,rt)});const be={headerText:{text:"timeCapTimeAlert.timeCapLowPlayTimeAlert.title"},bodyText:Wt,checkbox:{text:this.tvMode?"timeCapTimeAlert.dontShowAgainButton":xe_checkbox_text,initialState:xe_checkbox_initialState,primaryActionInThreeQuarterSheet:!0},link:ke,primaryButton:{...xe_primaryButton},secondaryButton:{text:"common.cancel"}},Ae=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:be}),qe=Ae.afterOpened().pipe((0,O.ZZ)(Lt=>{if(!Gt||this.tvMode)return y.t;{const Zt=document.getElementsByClassName("add-playtime-link");if(Zt&&Zt[0])return(0,n.R)(Zt,"click")}return(0,S.of)(void 0)}),(0,P.s)(1),(0,a.M)(()=>{this.ecomService.openAddPlaytimePageAndDialog(N.MCB.ScreenLowStateGameLaunchDialog,rt)}));return(0,d.O4)(Ae.primaryButtonClick.pipe((0,i.u)(!0)),Ae.secondaryButtonClick.pipe((0,i.u)(!1)),this.tvMode?Ae.linkClick.pipe((0,i.u)(!1)):qe.pipe((0,i.u)(!1)),Ae.afterClosed().pipe((0,i.u)(!1))).pipe((0,P.s)(1),(0,a.M)(()=>Ae.close()),(0,O.ZZ)(Lt=>(this.telemetryUtilService.sendPopUpDialogClosedEvent(N.duU.Low_State_Game_Launch,Lt?N.HBm.Continue_Play_Anyway:N.HBm.Dialog_Closed,0,0,N.T80.FALSE,Ae.checkboxState?N.T80.TRUE:N.T80.FALSE),Lt?this.browseUxService.setUserPreference(U.mG.skipTimeCapLowPlayTimeRemainingDialog,{value:Ae.checkboxState,expirationDateTime:yt.subscription.currentSpanEndDateTime}).pipe((0,i.u)(Lt)):(0,S.of)(Lt))))})):(0,S.of)(!0)}))}showTimeAlertDialog(rt,et,St){return this.ecomService.getUserMembership().pipe((0,P.s)(1),(0,O.ZZ)(Gt=>this.ecomService.isDayPassSubscription?this.openLowPlayTimeRemainingDialog(rt,et):this.ecomService.isLimitedState?this.openTimeCapLimitedPlaytimeDialog(et,this.ecomService.isLimitedPlayableState,St):this.openTimeCapLowPlaytimeDialog(et)))}openMembershipPageWithDayPassCallback(rt,et){this.ecomService.openMembershipPageAndDialog(()=>{this.ecomService.openDayPassCheckoutPage(N.MCB.ScreenLowPlaytimeDayPassDialog,et)},N.MCB.ScreenLowPlaytimeDayPassDialog,et,H.qQ.AddDayPassMembershipProgress)}openLowPlayTimeRemainingDialog(rt,et){return(0,v.zV)([this.browseUxService.getUserPreference(U.mG.skipDayPassLowPlayTimeRemainingDialog,this.idmService.accountStatusChanged),this.ecomService.getUserMembership()]).pipe((0,P.s)(1),(0,O.ZZ)(([St,Gt])=>{if(!this.canShowTimeAlertDialog(St,Gt.subscription.expirationDateTime,U.mG.skipDayPassLowPlayTimeRemainingDialog))return(0,S.of)(!0);const yt=this.ecomService.canHardUpsell(),Wt={text:yt?We_body_text:We_body_bodyEcomRestricted,placeholders:{skuShortName:Gt.product?.shortDescription,remainingTime:this.dateHandlerService.fromNow(Gt.subscription?.expirationDateTime),addDaysLink:!this.tvMode&&yt?'class="font-body2-link add-more-days-link"':void 0,linkClickedCallback:this.openMembershipPageWithDayPassCallback.bind(this,N.MCB.ScreenLowPlaytimeDayPassDialog,et)}},ke={secondaryButton:{text:We_secondaryButton_text}};this.tvMode&&(yt?(ke.secondaryButton.text=We_augmentedButton_text,ke.threeQuarterSheetData={augmentedButtons:[{text:We_secondaryButton_text,id:We_secondaryButton_id}]}):ke.threeQuarterSheetData=void 0);const be=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"layout.dayPassLowPlayTimeAlert.title"},bodyText:Wt,checkbox:{text:this.tvMode?"common.playAnywayDontShowAgain":We_checkbox_text,initialState:We_checkbox_initialState,primaryActionInThreeQuarterSheet:!0},primaryButton:{...We_primaryButton},...ke}}),Ae=be.afterOpened().pipe((0,O.ZZ)(Lt=>{if(!yt||this.tvMode)return yt||this.tvMode?this.tvMode?be.secondaryButtonClick:l.w:y.t;{const Zt=document.getElementsByClassName("add-more-days-link");if(Zt&&Zt[0])return(0,n.R)(Zt,"click")}return(0,S.of)(void 0)}),(0,P.s)(1),(0,a.M)(()=>{yt&&this.openMembershipPageWithDayPassCallback(N.MCB.ScreenLowPlaytimeDayPassDialog,et)})),qe=this.tvMode?be.augmentedButtonClick.pipe((0,_.p)(Lt=>"cancel"===Lt)):be.secondaryButtonClick;return(0,d.O4)(be.primaryButtonClick.pipe((0,i.u)(!0)),qe.pipe((0,i.u)(!1)),Ae.pipe((0,i.u)(!1)),be.afterClosed().pipe((0,i.u)(!1))).pipe((0,a.M)(()=>be.close()),(0,O.ZZ)(Lt=>Lt?this.browseUxService.setUserPreference(U.mG.skipDayPassLowPlayTimeRemainingDialog,{value:be.checkboxState,expirationDateTime:Gt.subscription.expirationDateTime}).pipe((0,i.u)(Lt)):(0,S.of)(Lt)))}))}canShowTimeAlertDialog(rt,et,St){return!rt||(!rt?.value||rt?.expirationDateTime!==et)&&(this.removeTimeAlertDialogPreference(St),!0)}removeTimeAlertDialogPreference(rt){return this.browseUxService.setUserPreference(rt,null).pipe((0,P.s)(1)).subscribe()}openHelpThreeQuarterSheet(){return this.redirectService.getRedirectUrl(R.r7.GfnPcSupport).pipe((0,P.s)(1),(0,O.ZZ)(rt=>this.createHelpDialogData(rt)),(0,O.ZZ)(rt=>this.openHelpDialogAndHandleActions(rt)))}createHelpDialogData(rt){const et=this.ecomService.canHardUpsell();return(0,S.of)({headerText:{text:"help.title"},bodyText:{text:"help.body"},primaryButton:{text:"feedback.send"},link:et?{text:"help.visitSupport",url:rt??void 0,shortUrl:R.lp[R.r7.GfnPcSupport]}:void 0,threeQuarterSheetData:{backgroundImageUrl:"shared/assets/img/DefaultStreamerBackgroundArt.jpg",augmentedButtons:et?[{text:"offDeviceLink.button",id:"Back"}]:[{text:"help.visitSupport",id:"visitSupport"},{text:"offDeviceLink.button",id:"Back"}]}})}openHelpDialogAndHandleActions(rt){const et=this.focusManager.restoreFocusAfterClosed(()=>I.Lb.open(this.dialog,{data:rt,autoFocus:!1}));this.udsHelperService.canShowUDSSummonedUIIcon().pipe((0,P.s)(1),(0,_.p)(ke=>ke),(0,O.ZZ)(ke=>{const be={text:"uds.iconTooltip",id:"sessionReport",hasNotificationBadge:!1};return rt.threeQuarterSheetData.augmentedButtons.unshift(be),et.componentInstance&&(et.componentInstance.data={...rt}),this.udsHelperService.readUdsNotificationIconState().pipe((0,P.s)(1),(0,r.T)(Ae=>({sessionReportButton:be,initialState:Ae})))}),(0,O.ZZ)(({sessionReportButton:ke,initialState:be})=>(ke.hasNotificationBadge=be,this.udsHelperService.getUdsIconVisibiltityState().pipe((0,c.Q)(et.afterClosed()),(0,a.M)(Ae=>{ke.hasNotificationBadge=Ae}))))).subscribe();const St=et.componentInstance.primaryButtonClick.pipe((0,i.u)(He.SendFeedback)),Gt=et.componentInstance.augmentedButtonClick.pipe((0,_.p)(ke=>"visitSupport"===ke),(0,i.u)(He.VisitSupport)),yt=et.componentInstance.augmentedButtonClick.pipe((0,_.p)(ke=>"sessionReport"===ke),(0,i.u)(He.SessionReport)),Wt=(0,d.O4)(et.componentInstance.augmentedButtonClick.pipe((0,_.p)(ke=>"Back"===ke),(0,i.u)(He.Back)),et.afterClosed().pipe((0,i.u)(He.Back))).pipe((0,P.s)(1));return(0,f.h)(St.pipe((0,c.Q)(et.afterClosed())),Gt.pipe((0,c.Q)(et.afterClosed())),yt.pipe((0,c.Q)(et.afterClosed())),Wt).pipe((0,a.M)(ke=>{ke===He.Back&&et.close()}))}openAccountLinkingExpirationDialog(rt,et=!1,St=!1,Gt=!1,yt=!1){const Wt=rt.expirationStatus;let ke;Wt===E.lH.Expired?ke="accountConnection.accountLinking.warningExpiredDialog":Wt===E.lH.ExpiresNow&&(ke="accountConnection.accountLinking.warningSoonDialog");let Ae=Gt?"accountConnection.reconnect":"accountConnection.goToConnection";St&&(Ae="accountConnection.goToConnection");const qe=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"accountConnection.reconnectAccount"},translateValues:{arg:rt.storeName},bodyText:{text:ke},primaryButton:{text:Ae,accentColor:!0},secondaryButton:{text:et?"common.cancel":"common.notNow"}}},{preferredDialogType:I.QO.ThreeQuarterSheet,disableFocusRestore:yt});return(0,d.O4)(qe.primaryButtonClick.pipe((0,i.u)(Gt?Me.Reconnect:Me.GoToConnection)),qe.secondaryButtonClick.pipe((0,i.u)(et?Me.Cancel:Me.NotNow)),qe.afterClosed().pipe((0,i.u)(null))).pipe((0,P.s)(1),(0,O.ZZ)(Lt=>null===Lt?(0,S.of)(null):(qe.close(),Lt===Me.Reconnect&&this.appConfig.featureEnablement.loginPopupBlockerWorkaround?(0,S.of)(Lt):qe.afterClosed().pipe((0,i.u)(Lt)))))}openAccountLinkingConnectingDialog(rt,et,St=!1){const Gt=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:et?"accountConnection.accountLinking.reconnectingAccount":"accountConnection.accountLinking.connectionProgressTitle"},bodyText:{text:et?"accountConnection.accountLinking.reconnectInProgress":"accountConnection.accountLinking.connectionProgress"},primaryButton:{text:"common.cancel"}}},{preferredDialogType:I.QO.ThreeQuarterSheet,disableFocusRestore:St});return(0,d.O4)(rt,Gt.primaryButtonClick.pipe((0,i.u)("")),Gt.afterClosed().pipe((0,i.u)(null))).pipe((0,m.W)(()=>(0,S.of)("")),(0,O.ZZ)(yt=>null===yt?(0,S.of)(yt):(Gt.close(),Gt.afterClosed().pipe((0,i.u)(yt)))))}openOffDeviceAccountLinkingDialog(rt,et,St=!1){let Gt;const yt=et.pipe((0,O.ZZ)(Wt=>{const ke=this.appConfig.featureEnablement.preferBottomSheetForLogin,be=ke?{link:{url:Wt.verificationUriComplete,text:""}}:{image:{url:Wt.verificationUriComplete}},Ae={preferredDialogType:ke?I.QO.BottomSheet:I.QO.ThreeQuarterSheet,disableFocusRestore:St};return Gt=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:(0,B.ZE)(Wt.verificationUri)},bodyText:{text:"loginBridgeState.deviceAuthLogin",placeholders:{authCode:`<div class="font-header3 white">${(0,B.zC)(Wt.userCode)}</div>`}},footerText:{text:"layout.gameOwnershipPrompt.offDeviceHint"},...be,primaryButton:{text:"common.cancel"}}},{...Ae}),(0,d.O4)(Gt.primaryButtonClick.pipe((0,i.u)(!1)),Gt.afterClosed().pipe((0,i.u)(null)))}));return(0,d.O4)(rt,yt).pipe((0,m.W)(()=>(0,S.of)(!1)),(0,O.ZZ)(Wt=>null===Wt?(0,S.of)(!1):(Gt.close(),Gt.afterClosed().pipe((0,i.u)(Wt)))))}openAccountLinkingErrorDialog(rt,et=!0){const St=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"accountConnection.accountLinking.connectionFailedTitle"},bodyText:{text:"accountConnection.accountLinking.connectionFailed",placeholders:{arg:rt}},primaryButton:{text:"common.close"},threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:I.QO.ThreeQuarterSheet,disableFocusRestore:et});return(0,d.O4)(St.primaryButtonClick.pipe((0,i.u)(!1)),St.afterClosed().pipe((0,i.u)(null))).pipe((0,P.s)(1),(0,O.ZZ)(Gt=>null===Gt?(0,S.of)(Gt):(St.close(),St.afterClosed().pipe((0,i.u)(Gt)))))}openPlaytestLiveErrorDialog(){return this.dialog.open(g.SO,{panelClass:"nv-hig",width:`${g.$3}px`,disableClose:!0,backdropClass:"dialog-backdrop"}).afterClosed()}openPlaytestLivePermissionHigDialog(rt){const et=this.focusManager.restoreFocusAfterClosed(()=>this.dialog.open(g.RI,{panelClass:"nv-hig",width:`${g.$3}px`,disableClose:!0,backdropClass:["dialog-backdrop","nv-overlay-panel"]}));return(0,d.O4)(et.componentInstance.primaryButtonClick.pipe((0,i.u)(!0)),et.componentInstance.secondaryButtonClick.pipe((0,i.u)(!1))).pipe((0,a.M)(()=>et.close()),(0,r.T)(St=>St||!1))}openPlaytestLiveFeedbackHigDialog(rt){return this.dialog.open(g.zn,{panelClass:"nv-hig",width:`${g.$3}px`,disableClose:!0,backdropClass:"dialog-backdrop"}).afterClosed()}openPlaytestLiveWebcamPreview(rt){return this.dialog.open(g.tP,{panelClass:"nv-hig",width:`${g.$3}px`,height:`${g.KG}px`,disableClose:!0,backdropClass:"dialog-backdrop"}).afterClosed()}openPlaytestLiveMicrophonePreview(rt){return this.dialog.open(g.YG,{panelClass:"nv-hig",width:`${g.$3}px`,height:`${g.KG}px`,disableClose:!0,backdropClass:"dialog-backdrop"}).afterClosed()}openPwaSetupGuidanceDialog(){this.focusManager.restoreFocusAfterClosed(()=>this.dialog.open(X.H$,{autoFocus:!0,hasBackdrop:!0,panelClass:["dialogPaddingRemove","nv-overlay-panel"]}))}openPluginFailureDialog(rt,et){let St={text:"pluginLoadFailure.mandatoryPluginFailure"};rt||(St={text:"pluginLoadFailure.optionalPluginFailure",placeholders:{feature:et}},et||(St={text:"pluginLoadFailure.mulipleOptionalPluginFailure"}));const Gt=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"pluginLoadFailure.title"},bodyText:St,primaryButton:{text:rt?"common.quit":"common.close"},disableBackToClose:!0}},{preferredDialogType:I.QO.ThreeQuarterSheet});return(0,d.O4)(Gt.primaryButtonClick.pipe((0,i.u)(!0)),Gt.secondaryButtonClick.pipe((0,i.u)(!1))).pipe((0,a.M)(()=>Gt.close()),(0,r.T)(yt=>yt||!1))}showPlatformOverridePermissionDialog(rt,et,St){const Gt=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"multiplatform.switchDialog.title"},bodyText:{text:"multiplatform.switchDialog.description",placeholders:{currentStore:et,newStore:St}},primaryButton:{text:"common.continue"},secondaryButton:{text:"common.cancel"}}});return(0,d.O4)(Gt.primaryButtonClick.pipe((0,i.u)(!0)),Gt.secondaryButtonClick.pipe((0,i.u)(!1)),Gt.afterClosed().pipe((0,i.u)(null))).pipe((0,P.s)(1),(0,a.M)(yt=>{Gt.close(),null!==yt&&this.telemetryUtilService.sendClickEvent(N.EBD.PlatformChangeConsent,St,`${rt}/ContinueClicked=${yt}`)}))}showExitAppDialog(){const rt=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"layout.exitAppPrompt.headerText"},primaryButton:{text:"layout.exitAppPrompt.primaryButton",accentColor:!0},secondaryButton:{text:"common.cancelTitleCase"}}});return(0,d.O4)(rt.primaryButtonClick.pipe((0,i.u)(!0)),rt.secondaryButtonClick.pipe((0,i.u)(!1)),rt.afterClosed().pipe((0,i.u)(!1))).pipe((0,P.s)(1),(0,a.M)(()=>rt.close()))}showLoginFailedDialog(rt){let et;return this.redirectService.getRedirectUrl(R.r7.GfnServerStatus).pipe((0,r.T)(St=>[St,R.lp[R.r7.GfnServerStatus]]),(0,O.ZZ)(([St,Gt])=>(et=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{link:this.tvMode?{text:"loginWall.gfnServiceStatus",shortUrl:Gt,url:St}:void 0,headerText:{text:"loginWall.loginFailed"},bodyText:{text:"loginWall.genericErrorWithStatusURL",placeholders:{serverStatusURL:this.tvMode?void 0:`class="font-body2-link" href="${St}"`}},primaryButton:rt?{text:"common.retry",accentColor:!0}:null,secondaryButton:{text:"common.close"}}},{preferredDialogType:I.QO.ThreeQuarterSheet}),(0,d.O4)(et.primaryButtonClick.pipe((0,i.u)(!0)),et.secondaryButtonClick.pipe((0,i.u)(!1)),et.afterClosed().pipe((0,i.u)(!1))))),(0,P.s)(1),(0,a.M)(()=>et.close()))}showProviderSwitchDialog(rt,et){const St=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"common.productName"},bodyText:{text:"loginWall.providerSwitchDialogBody",placeholders:{versionString:rt,providerString:et}},primaryButton:{text:"settings.provider.switchProvider"},secondaryButton:{text:"common.close"}}},{preferredDialogType:I.QO.ThreeQuarterSheet});return(0,d.O4)(St.primaryButtonClick.pipe((0,i.u)(!0)),St.secondaryButtonClick.pipe((0,i.u)(!1)),St.afterClosed().pipe((0,i.u)(!1))).pipe((0,a.M)(Gt=>{St.close()}))}getPlatformSelectionPatchingStatusText(rt){return rt===V.jv.PATCHING?{text:"fencedStatus.patchingStatus"}:rt===V.jv.SERVER_MAINTENANCE?{text:"fencedStatus.offlineStatus"}:void 0}getPlatformSelectionButtonLabel(rt){return"Play"===rt?"common.continue":"GetGame"===rt?"multiplatform.dialog.getGameButton":"common.select"}getStoreLabel(rt){return rt.appStoreInfo.label===L.$f?rt.publisherName:rt.appStoreInfo.label}getFencedStatus(rt){return rt?.gfn?.status??V.jv.UNAVAILABLE}shouldDisablePlatformSelectionButton(rt,et,St){return"Play"===St&&(rt!==V.jv.AVAILABLE||!et)}shouldDisplayPlatformSelectionButton(rt,et){return"GetGame"!==rt||!!et?.storeUrl}getSelectorCardSecondaryInfo(rt,et){let Gt;switch((0,T.A$)(rt)){case T.E8.OwnedManual:case T.E8.OwnedPlatformSync:Gt="layout.owned";break;default:Gt=null}return{matIcon:et.selectedPlatformVariant?.id===rt?.id?"check":null,text:Gt}}buildPlatformSelectionCardData(rt){return rt.variants.map(et=>{const St=this.getFencedStatus(et),Gt={selectorCardIcon:{url:et.appStoreInfo.smallImageUrl,caption:this.getStoreLabel(et)},selectorCardButtons:rt.buttons.filter(yt=>this.shouldDisplayPlatformSelectionButton(yt,et)).map(yt=>({text:this.getPlatformSelectionButtonLabel(yt),isDisabled:this.shouldDisablePlatformSelectionButton(St,rt.isInputSupported,yt),id:{storeId:et.id,buttonId:yt}})),secondaryInfo:this.getSelectorCardSecondaryInfo(et,rt)};return rt?.showPatchingText&&(Gt.selectorCardStatusText=this.getPlatformSelectionPatchingStatusText(St)),Gt})}storeSelectionDialog(rt,et){const St={header:{text:rt.gameName},backgroundImageUrl:rt.heroImageURL,title:{text:"layout.evidenceMetadata.selectPlatfrom"},content:this.buildPlatformSelectionCardData(rt)},Gt=this.fullPageDialog.open(St,et),yt=Gt.componentInstance.buttonClick.pipe((0,_.p)(be=>"Play"===be.id.buttonId),(0,P.s)(1)),Wt=Gt.componentInstance.buttonClick.pipe((0,_.p)(be=>"Play"!==be.id.buttonId&&"GetGame"!==be.id.buttonId),(0,P.s)(1)),ke=Gt.componentInstance.buttonClick.pipe((0,_.p)(be=>"GetGame"===be.id.buttonId),(0,M.n)(be=>this.openPurchaseDialog({gameName:rt.gameName,isInputSupported:rt.isInputSupported,selectedPlatformVariant:rt.variants.find(Ae=>Ae.id===be.id.storeId),heroImageURL:rt.heroImageURL}).pipe((0,_.p)(Ae=>!!Ae),(0,r.T)(()=>be))));return(0,d.O4)(yt,Wt,ke,Gt.afterClosed().pipe((0,i.u)(!1),(0,P.s)(1))).pipe((0,r.T)(be=>{if(Gt.close(),be)return rt.variants.find(Ae=>Ae.id===be.id.storeId)}))}openStoreSelectorFullPageDialog(rt,et){const St=["Play"];return rt.showGetGame&&St.push("GetGame"),this.storeSelectionDialog({...rt,buttons:St,showPatchingText:!0},et)}openAddToLibraryFullPageDialog(rt,et){return this.storeSelectionDialog({...rt,buttons:["AddToLibrary"]},et)}openGetGameFullPageDialog(rt,et){if(rt.selectedPlatformVariant){const St=rt.selectedPlatformVariant;return this.openPurchaseDialog({gameName:rt.gameName,isInputSupported:rt.isInputSupported,selectedPlatformVariant:St,heroImageURL:rt.heroImageURL},et).pipe((0,r.T)(Gt=>Gt&&St||null))}return this.storeSelectionDialog({...rt,buttons:["GetGame"]},et)}openChangeGameStoreFullPageDialog(rt,et){return this.storeSelectionDialog({...rt,buttons:["ChangeGameStore"],showCurrentSelection:!0},et)}openAccountProfileDialog(){const rt=this.ecomService.canHardUpsell();return this.redirectService.getRedirectUrl(R.r7.GfnAccountManagementSSO).pipe((0,P.s)(1),(0,r.T)(St=>({headerText:{text:rt?R.lp[R.r7.GfnAccountManagementSSO]:void 0},image:rt?{url:St}:void 0,bodyText:{text:rt?"offDeviceLink.title":"ecommerce.accountManagementDialog.description"},primaryButton:{text:"offDeviceLink.button"},secondaryButton:{text:"toolbar.logout"}}))).pipe((0,O.ZZ)(St=>{const Gt=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:St},{preferredDialogType:I.QO.ThreeQuarterSheet}),yt=Gt.secondaryButtonClick.pipe((0,O.ZZ)(()=>this.openLogoutConfirmationDialog()),(0,O.ZZ)(Wt=>Wt?(0,S.of)(Xe.Logout):y.t),(0,c.Q)(Gt.afterClosed()));return(0,d.O4)(Gt.primaryButtonClick.pipe((0,i.u)(Xe.Back)),Gt.afterClosed().pipe((0,i.u)(Xe.Back)),yt).pipe((0,P.s)(1),(0,a.M)(()=>Gt.close()))}))}openLogoutConfirmationDialog(){const et=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"accountProfile.logoutConfirmationDialogTitle"},bodyText:{text:"accountProfile.logoutConfirmationDialogText"},primaryButton:{text:"offDeviceLink.button"},secondaryButton:{text:"accountProfile.logoutConfirmationDialogButtonText"}}},{preferredDialogType:I.QO.ThreeQuarterSheet});return(0,d.O4)(et.primaryButtonClick.pipe((0,i.u)(!1)),et.afterClosed().pipe((0,i.u)(!1)),et.secondaryButtonClick.pipe((0,i.u)(!0))).pipe((0,a.M)(()=>et.close()))}showInLineLinkDialog(rt,et=!1){const St=rt.gameInfo.storeUrl,Gt=rt.isAccountLinkingSsoRequired;let yt={text:St?Q_body_text:Q_body_textWithoutURL,placeholders:{storeUrl:!this.tvMode&&St?`class="font-body2-link" href="${St}"`:void 0}};rt.showOnboardingReconnect&&(yt={text:"accountConnection.newFeature",placeholders:void 0});const Wt=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"accountConnection.connectAccount"},translateValues:{arg:rt.gameInfo.appStoreLabel},bodyText:yt,primaryButton:{...Q_primaryButton},secondaryButton:Gt?{text:"common.cancel"}:{text:"common.notNow"},checkbox:Gt?void 0:{text:this.tvMode?"layout.inLineAccountLinkingPrompt.dontShowAgainButton":Q_checkbox_text,initialState:Q_checkbox_initialState,primaryActionInThreeQuarterSheet:!1},link:rt.gameInfo.storeUrlClickedCallback&&this.tvMode?{text:Q_tvLink_text,linkClickedCallback:rt.gameInfo.storeUrlClickedCallback}:void 0,threeQuarterSheetData:this.threeQuarterSheetBackgroundData,descriptionList:rt.descriptionIconList}},{preferredDialogType:I.QO.ThreeQuarterSheet});return(0,d.O4)(this.userActivationGuardService.guardObservable(I.HK.Link,Wt.primaryButtonClick).pipe((0,i.u)(Me.Connect)),Wt.secondaryButtonClick.pipe((0,i.u)(Gt?Me.Cancel:et?Me.NotNow:Me.ManuallyMarkAsOwned)),Wt.afterClosed().pipe((0,i.u)(null))).pipe((0,O.ZZ)(ke=>{if(null===ke)return(0,S.of)({dialogAction:ke,checkBoxState:!1});const be=Wt.checkboxState;return Wt.close(),ke===Me.Connect&&this.appConfig.featureEnablement.loginPopupBlockerWorkaround?(0,S.of)({dialogAction:ke,checkBoxState:be}):Wt.afterClosed().pipe((0,i.u)({dialogAction:ke,checkBoxState:be}))}))}openInlineSyncInProgressDialog(rt,et,St){const Gt=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{disableBackToClose:!0,showSpinner:!0,headerText:{text:"layout.inLineSyncInProgress.header"},bodyText:{text:A_body_text,placeholders:{storeName:St}},threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:I.QO.ThreeQuarterSheet});return rt.pipe((0,O.ZZ)(yt=>yt?et.pipe((0,O.ZZ)(Wt=>(Gt.close(),Gt.afterClosed().pipe((0,i.u)(Wt))))):(Gt.close(),Gt.afterClosed().pipe((0,i.u)(!1)))))}profileNotCreatedDialog(rt,et){const St=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"layout.inLineSyncFailure.errorHeader"},translateValues:{storeName:rt},bodyText:{text:W_body_text,placeholders:{storeName:rt,redirectUrl:this.tvMode?void 0:`class="font-body2-link" href="${et}"`}},primaryButton:{...W_primaryButton},secondaryButton:{text:"common.notNow"},link:et?{text:this.tvMode?"layout.inLineSyncFailure.profileNotCreated.tvLink":void 0,placeholders:{storeName:rt},url:this.tvMode?et:void 0}:void 0,threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:I.QO.ThreeQuarterSheet});return(0,d.O4)(St.primaryButtonClick.pipe((0,i.u)(Me.Resync)),St.secondaryButtonClick.pipe((0,i.u)(Me.ManuallyMarkAsOwned)),St.afterClosed().pipe((0,i.u)(null))).pipe((0,O.ZZ)(Gt=>null===Gt?(0,S.of)(Gt):(St.close(),St.afterClosed().pipe((0,i.u)(Gt)))))}profileNotPublicIssueDialog(rt,et,St){const Gt=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"layout.inLineSyncFailure.errorHeader"},translateValues:{storeName:rt},bodyText:{text:G_body_text,placeholders:{userName:St,storeName:rt,redirectUrl:this.tvMode?void 0:`class="font-body2-link" href="${et}"`}},primaryButton:{...G_primaryButton},secondaryButton:{text:"common.notNow"},link:et?{text:this.tvMode?"layout.inLineSyncFailure.notPublicIssue.tvLink":void 0,url:this.tvMode?et:void 0}:void 0,threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:I.QO.ThreeQuarterSheet});return(0,d.O4)(Gt.primaryButtonClick.pipe((0,i.u)(Me.Resync)),Gt.secondaryButtonClick.pipe((0,i.u)(Me.ManuallyMarkAsOwned)),Gt.afterClosed().pipe((0,i.u)(null))).pipe((0,O.ZZ)(yt=>null===yt?(0,S.of)(yt):(Gt.close(),Gt.afterClosed().pipe((0,i.u)(yt)))))}permissionFailureDialog(rt){const et=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"accountConnection.reconnectAccount"},translateValues:{arg:rt},bodyText:{text:$_body_text},primaryButton:{...$_primaryButton},secondaryButton:{text:"common.close"},threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:I.QO.ThreeQuarterSheet});return(0,d.O4)(et.primaryButtonClick.pipe((0,i.u)(Me.GoToConnection)),et.secondaryButtonClick.pipe((0,i.u)(Me.Cancel)),et.afterClosed().pipe((0,i.u)(null))).pipe((0,O.ZZ)(St=>null===St?(0,S.of)(St):(et.close(),et.afterClosed().pipe((0,i.u)(St)))))}syncFailureDialog(rt){const et=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"layout.inLineSyncFailure.failedSync.header"},bodyText:{text:ne_body_text,placeholders:{appStore:rt}},primaryButton:{...ne_primaryButton},secondaryButton:{text:"common.close"},threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:I.QO.ThreeQuarterSheet});return(0,d.O4)(et.primaryButtonClick.pipe((0,i.u)(Me.Resync)),et.secondaryButtonClick.pipe((0,i.u)(Me.Cancel)),et.afterClosed().pipe((0,i.u)(null))).pipe((0,O.ZZ)(St=>null===St?(0,S.of)(St):(et.close(),et.afterClosed().pipe((0,i.u)(St)))))}showLibrarySyncedDialog(rt,et,St){const Gt=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"layout.inLineLibrarySynced.header"},translateValues:{storeApp:rt},bodyText:{text:le_body_text,placeholders:{noOfGames:et,userName:St}},primaryButton:{...le_primaryButton},threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:I.QO.ThreeQuarterSheet});return(0,d.O4)(Gt.primaryButtonClick.pipe((0,i.u)(Me.Done)),Gt.afterClosed().pipe((0,i.u)(Me.Done))).pipe((0,a.M)(()=>Gt.close()))}noGameSyncedDialog(rt,et,St){const Gt=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"layout.inLineNoGameSynced.header"},bodyText:{text:Pe_body_text,placeholders:{storeName:rt,userName:St,storeUrl:et.storeUrl&&!this.tvMode?`class="font-body2-link" href="${et.storeUrl}"`:void 0}},primaryButton:{...Pe_primaryButton},secondaryButton:{text:"common.notNow"},link:et.storeUrlClickedCallback&&this.tvMode?{text:Pe_tvLink_text,linkClickedCallback:et.storeUrlClickedCallback}:void 0,threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:I.QO.ThreeQuarterSheet});return(0,d.O4)(Gt.primaryButtonClick.pipe((0,i.u)(Me.Resync)),Gt.secondaryButtonClick.pipe((0,i.u)(Me.ManuallyMarkAsOwned)),Gt.afterClosed().pipe((0,i.u)(null))).pipe((0,O.ZZ)(yt=>null===yt?(0,S.of)(yt):(Gt.close(),Gt.afterClosed().pipe((0,i.u)(yt)))))}markGameAsManuallyOwned(rt){const et=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"layout.manuallyOwnPrompt.header"},bodyText:{text:rt.appStoreLabel?rt.storeUrl?Fe_body_text:Fe_body_textWithoutURL:rt.storeUrl?Fe_genericBody_text:Fe_genericBody_textWithoutURL,placeholders:{appStore:rt.appStoreLabel,storeUrl:rt.storeUrl&&!this.tvMode?`class="font-body2-link" href="${rt.storeUrl}"`:void 0}},primaryButton:{...Fe_primaryButton},secondaryButton:{text:"common.cancel"},link:rt.storeUrlClickedCallback&&this.tvMode?{text:Fe_tvLink_text,linkClickedCallback:rt.storeUrlClickedCallback}:void 0,threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:I.QO.ThreeQuarterSheet});return(0,d.O4)(et.primaryButtonClick.pipe((0,i.u)(Me.MarkAsOwned)),et.secondaryButtonClick.pipe((0,i.u)(Me.Cancel)),et.afterClosed().pipe((0,i.u)(null))).pipe((0,a.M)(()=>et.close()))}openInLineConnectSuccessDialog(rt,et,St){const Gt=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"layout.inLineAccountConnected.header"},translateValues:{storeName:rt},bodyText:{text:St?me_reconnectBody_text:me_connectBody_text,placeholders:{userName:et}},primaryButton:{...me_primaryButton},threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:I.QO.ThreeQuarterSheet});return(0,d.O4)(Gt.primaryButtonClick.pipe((0,i.u)(!0)),Gt.afterClosed().pipe((0,i.u)(!1))).pipe((0,O.ZZ)(yt=>null===yt?(0,S.of)(yt):(Gt.close(),Gt.afterClosed().pipe((0,i.u)(yt)))))}openResyncGameStore(rt,et){const St=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"layout.resyncGameStore.header"},translateValues:{appStore:rt.appStoreLabel},bodyText:{text:At_body_text,placeholders:{userName:et,storeUrl:rt.storeUrl&&!this.tvMode?`class="font-body2-link" href="${rt.storeUrl}"`:void 0}},primaryButton:{...At_primaryButton},secondaryButton:{text:"common.notNow"},link:rt.storeUrlClickedCallback&&this.tvMode?{text:At_tvLink_text,linkClickedCallback:rt.storeUrlClickedCallback}:void 0,threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:I.QO.ThreeQuarterSheet});return(0,d.O4)(St.primaryButtonClick.pipe((0,i.u)(Me.Resync)),St.secondaryButtonClick.pipe((0,i.u)(Me.ManuallyMarkAsOwned)),St.afterClosed().pipe((0,i.u)(null))).pipe((0,O.ZZ)(Gt=>null===Gt?(0,S.of)(Gt):(St.close(),St.afterClosed().pipe((0,i.u)(Gt)))))}openPurchaseDialog(rt,et){if(!rt.selectedPlatformVariant.storeUrl)return(0,S.of)(void 0);const St=this.getPlatformSelectionPatchingStatusText(this.getFencedStatus(rt.selectedPlatformVariant)),Gt=this.fullPageDialog.open({header:{text:rt.gameName,translated:!0},title:{text:"pathToPurchase.title"},subtitle:{text:"pathToPurchase.subtitle"},backgroundImageUrl:rt.heroImageURL,content:{choiceChipTitle:{text:this.getStoreLabel(rt.selectedPlatformVariant),translated:!0},choiceChipIcon:{text:rt.selectedPlatformVariant.appStoreInfo?.smallImageUrl??""},choiceChipContent:[{stepTitle:{text:"pathToPurchase.step1"},stepDescription:{text:"pathToPurchase.scanQrCode"},stepImage:{text:"",url:rt.selectedPlatformVariant.storeUrl}},{stepTitle:{text:"pathToPurchase.step2"},stepDescription:{text:"pathToPurchase.getDigitalVersion"},stepImage:{matIcon:"phone_illustration",text:""}},{stepTitle:{text:"pathToPurchase.step3"},stepDescription:{text:"pathToPurchase.backAndPlay"},stepImage:{matIcon:"tv_illustration",text:""}}],choiceChipButtons:[{text:"common.close",isDisabled:!!St,spinnerOverlay:!1,id:"close"}],choiceChipStatusText:{title:St}}},et);return(0,d.O4)(Gt.componentInstance.buttonClick,Gt.afterClosed().pipe((0,i.u)(void 0))).pipe((0,r.T)(yt=>!!yt&&(Gt.close(),!0)))}showBuyProtectionDialog(rt,et,St,Gt,yt,Wt=!0,ke=null){return this.browseUxService.getUserPreference(U.mG.skipBuyProtectionDialog,this.idmService.accountStatusChanged).pipe((0,P.s)(1),(0,O.ZZ)(be=>{if(be)return(0,S.of)(!0);const Ae=this.ecomService.canHardUpsell(),qe="upgrade-account-link";let Lt;const Zt=Ae?this.translateParser.interpolate(et,{membershipUpgradeUrl:`class="font-body2-link link-wrap ${qe}"`}):St;this.tvMode&&(Lt={text:Ae?"ecommerce.upgrade":"ecommerce.viewAccount",url:void 0,shortUrl:void 0,linkClickedCallback:Ae?yt:Gt});const hn=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:rt},bodyText:{text:Zt},checkbox:{text:this.tvMode?"ecommerce.continueAndDontShow":"common.dontShowThisAgain",initialState:!1,primaryActionInThreeQuarterSheet:!0},link:Ae?Lt:void 0,primaryButton:{text:Wt?"ecommerce.continueToGameStore":"common.continueTitleCase"},secondaryButton:{text:Wt?"ecommerce.notNow":"common.cancelTitleCase"},threeQuarterSheetData:this.threeQuarterSheetBackgroundData}}),On=hn.afterOpened().pipe((0,O.ZZ)(fi=>{if(!Ae||this.tvMode)return y.t;{const Ji=document.getElementsByClassName(qe);if(Ji&&Ji[0])return(0,n.R)(Ji,"click")}return(0,S.of)(void 0)}),(0,P.s)(1),(0,a.M)(()=>{this.telemetryUtilService.sendPopUpDialogShownEvent(N.duU.Buy_Protection_Information),Ae?yt():Gt()}));return(0,d.O4)(hn.primaryButtonClick.pipe((0,i.u)(!0)),hn.secondaryButtonClick.pipe((0,i.u)(!1)),this.tvMode?hn.linkClick.pipe((0,i.u)(!1)):On.pipe((0,i.u)(!1)),hn.afterClosed().pipe((0,i.u)(!1))).pipe((0,P.s)(1),(0,a.M)(()=>hn.close()),(0,O.ZZ)(fi=>(this.telemetryUtilService.sendPopUpDialogClosedEvent(N.duU.Buy_Protection_Information,fi?N.HBm.Continue_To_Game_Store:N.HBm.Dialog_Closed,0,0,N.T80.FALSE,hn.checkboxState?N.T80.TRUE:N.T80.FALSE),fi?(Wt&&ke&&ke(),this.browseUxService.setUserPreference(U.mG.skipBuyProtectionDialog,hn.checkboxState).pipe((0,i.u)(!0))):(0,S.of)(fi))))}))}openUpdateRequiredDialog(){const rt=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"updateApplication.confirmationTitle"},bodyText:{text:"updateApplication.confirmationText"},primaryButton:{text:"notification.restartNow"},secondaryButton:{text:"common.cancel"},threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:I.QO.ThreeQuarterSheet});return(0,d.O4)(rt.primaryButtonClick.pipe((0,i.u)(J.b2.RelaunchNow)),rt.secondaryButtonClick.pipe((0,i.u)(J.b2.Cancel)),rt.afterClosed().pipe((0,i.u)(null))).pipe((0,O.ZZ)(et=>null===et?(0,S.of)(et):(rt.close(),rt.afterClosed().pipe((0,i.u)(et)))))}openQuitAndProceedDialog(rt){const et=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"quitAndProceedDialog.title",placeholders:{gameName:rt}},translateValues:{gameName:rt},bodyText:{text:"quitAndProceedDialog.body",placeholders:{gameName:rt}},primaryButton:{text:"common.continue"},secondaryButton:{text:"common.cancel"}}});return(0,d.O4)(et.primaryButtonClick.pipe((0,i.u)(!0)),et.secondaryButtonClick.pipe((0,i.u)(!1)),et.afterClosed().pipe((0,i.u)(null))).pipe((0,O.ZZ)(St=>null===St?(0,S.of)(!1):(et.close(),et.afterClosed().pipe((0,i.u)(St)))))}openQuitConfirmationDialog(rt={}){const{isGuestAppFlow:et=!1,disableBackToClose:St=!1,trapFocus:Gt=!1,afterOpened:yt}=rt,ke={headerText:{text:`common.${et?"guestApp.":""}quitGame`},bodyText:{text:"common.wantQuit"},secondaryButton:{text:"common.cancelTitleCase"},primaryButton:{text:"common.quit",accentColor:!0},disableBackToClose:St,trapFocus:Gt},be=this.genericDialog.open({panelClass:"dialog-component-container",disableClose:!0,data:{...ke}}),Ae=yt?be.afterOpened().pipe((0,O.ZZ)(qe=>(yt(),y.t))):y.t;return(0,d.O4)(Ae,be.primaryButtonClick.pipe((0,a.M)(()=>{ke.primaryButton.spinnerOverlay=!0,ke.primaryButton.isDisabled=!0,ke.secondaryButton.isDisabled=!0}),(0,i.u)(!0)),be.secondaryButtonClick.pipe((0,i.u)(!1)),be.afterClosed().pipe((0,i.u)(null))).pipe((0,P.s)(1),(0,O.ZZ)(qe=>null===qe?(0,S.of)(!1):(be.close(qe),be.afterClosed().pipe((0,i.u)(qe)))),(0,D.j)(()=>{be.close()}))}static{this.\u0275fac=function(et){return new(et||Je)(ie.KVO(ve.J6),ie.KVO(ue.Vk),ie.KVO(se.bZ),ie.KVO(Z.T),ie.KVO(Se.c$),ie.KVO(N.jgD),ie.KVO(Ce.k_),ie.KVO(R.Q5),ie.KVO(I.uh),ie.KVO(H.yJ),ie.KVO(X.Lk),ie.KVO(ve.NZ),ie.KVO(I.c_),ie.KVO(I.Vm),ie.KVO(ve.I_),ie.KVO(I.gE),ie.KVO(Be.u),ie.KVO(Se.Sd))}}static{this.\u0275prov=ie.jDH({token:Je,factory:Je.\u0275fac,providedIn:"root"})}}return Je})()},59062:(Bt,z,s)=>{"use strict";s.d(z,{Tq:()=>n.Tq,o3:()=>n.o3});var n=s(35833)},82094:(Bt,z,s)=>{"use strict";s.d(z,{Oz:()=>S,$f:()=>n,X9:()=>y});const n="",d="UNKNOWN",v={store:d,label:n};var S=function(f){return f.AccountGamesSyncing="AccountGamesSyncing",f.AccountLinkingSso="AccountLinkingSso",f}(S||{});class y{static{this.digitalStoresMap=null}static{this.genreDefinitionsMap=new Map}static get StoresList(){return this.digitalStoresList||[]}static buildDigitalStoresMapFromList(){this.digitalStoresList?.length&&(this.digitalStoresMap={},this.digitalStoresList.forEach(O=>{this.digitalStoresMap[O.store]={store:O.store,label:O.label||n,smallImageUrl:O.smallImageUrl||"",largeImageUrl:O.largeImageUrl||"",sortOrder:O.sortOrder,accountLinkingMetadata:O.accountLinkingMetadata}}))}static get StoresMap(){return this.digitalStoresMap||{}}static getStoreInfoForAppstore(O){return this.StoresMap[O]||this.StoresMap[d]||v}static setAppStoresDefinitions(O){O?.length&&(this.digitalStoresList=O),this.buildDigitalStoresMapFromList()}static setGenreDefinitions(O){O&&O.forEach(P=>this.genreDefinitionsMap.set(P.genre,P.label))}static sortVariants(O){O.length>1&&O.sort((P,_)=>{const i=this.StoresMap[P.appStore]?.sortOrder,r=this.StoresMap[_.appStore]?.sortOrder;return i-r})}}},82973:(Bt,z,s)=>{"use strict";s.d(z,{h:()=>U});var n=s(6478),l=s(61958),d=s(99469),v=s(83915),S=s(34593),y=s(14714),f=s(75707),O=s(38006),P=s(26875),_=s(85735),i=s(43848),r=s(31315),a=s(78893),c=s(58527),m=s(22600),M=s(14354),D=s(80838),I=s(18587);let U=(()=>{class V{constructor(N,L,E,g,R,B,X,H,J,re){this.appConfig=L,this.distributedTracingUtilService=E,this.systemInfoService=g,this.nesUserInfoService=R,this.sharedStorageCachingService=B,this.localeService=X,this.router=H,this.gridService=J,this.userConsentService=re,this.disableTracingReplaySubject=new _.m(1),this.globalTagsReplaySubject=new _.m(1),this.acceptableFunctionalConsentLevels=[d.Rg.Full,d.Rg.Temp],this.logger=N.getLogger("gfn/distributed-tracing-initializer")}initializeDistributedTracing(){this.userConsentService.getUserConsent$().subscribe(L=>{const E=!this.acceptableFunctionalConsentLevels.includes(L.functional);this.disableTracingReplaySubject.next(E)}),this.distributedTracingUtilService.initializeDistributedTracing(this.appConfig.otelTracerConfig,this.appConfig.statusCodeZeroAnalyzerConfig,this.disableTracingReplaySubject,this.globalTagsReplaySubject),this.setGlobalTags()}setGlobalTags(){const N=(0,i.of)({[n.NS.ServiceVersion]:(0,l.Cl)(this.appConfig),[n.NS.ServiceType]:n.Se.Pc_A7,[n.NS.SpanKind]:n.ls.Client,[n.NS.AppName]:(0,a.I2)(this.router.url)?a.td.Streamer:a.td.Mall}),L=this.systemInfoService.getSystemInfo([d.Lu.DeviceId]).pipe((0,v.T)(X=>({[n.NS.DeviceId]:X.DeviceId})),(0,S.Z)({})),E=(0,r.zV)([this.systemInfoService.getSystemInfo([d.Lu.OSName,d.Lu.OSVersion]),this.systemInfoService.getDeviceOSType()]).pipe((0,v.T)(([X,H])=>({[n.NS.ClientOs]:H,[n.NS.ClientOsName]:X.OSName,[n.NS.ClientOsVersion]:X.OSVersion})),(0,S.Z)({}),(0,y.W)(X=>(this.logger.info(`Error fetching osInfo: ${X}`),(0,i.of)({})))),g=this.fetchCountryCode().pipe((0,v.T)(X=>({[n.NS.CountryCode]:X})),(0,S.Z)({})),R=this.localeService.localeChanged.pipe((0,v.T)(X=>({[n.NS.Locale]:X})),(0,S.Z)({})),B=this.gridService.vpcId$.pipe((0,v.T)(X=>({[n.NS.VpcId]:X})),(0,S.Z)({}),(0,y.W)(X=>(this.logger.info(`Error fetching vpcId: ${X}`),(0,i.of)({[n.NS.VpcId]:n.Af.VpcId}))));(0,r.zV)([N,L,E,g,R,B]).subscribe(([X,H,J,re,ie,ve])=>{const ue=(0,P.merge)({},X,H,J,re,ie,ve);this.logger.info("Setting the global tags:",ue),this.globalTagsReplaySubject.next(ue)})}fetchCountryCode(){return this.sharedStorageCachingService.getItem(O.up.CountryCode).pipe((0,f.ZZ)(N=>{if((0,P.isNil)(N.data))return this.logger.info("Cound not find countrycode in shared storage so fetching from NES"),this.nesUserInfoService.getCountryCode();if(N.expired){if(!this.sharedStorageCachingService.isExpiredValueAllowed(O.up.CountryCode))return this.logger.info("Expired values not allowed for country code hence fetching fresh value from NES"),this.nesUserInfoService.getCountryCode();this.logger.info("The cached country code value is expired so refreshing in backgound"),this.refreshCountryCodeInBackground()}return this.logger.info(`Using the country code from cache ${N.data}`),(0,i.of)(N.data)}))}refreshCountryCodeInBackground(){this.nesUserInfoService.getCountryCode().subscribe()}static{this.\u0275fac=function(L){return new(L||V)(c.KVO(d.J6),c.KVO(l.Vk),c.KVO(n.Z1),c.KVO(d.zW),c.KVO(m.l),c.KVO(O.VC),c.KVO(d.iH),c.KVO(M.Ix),c.KVO(D.G),c.KVO(I.F))}}static{this.\u0275prov=c.jDH({token:V,factory:V.\u0275fac,providedIn:"root"})}}return V})()},84937:(Bt,z,s)=>{"use strict";s.d(z,{O:()=>m});var n=s(26537),l=s(71962),d=s(80583),v=s(4208),S=s(26875),f=s(58527);const O=(M,D)=>[M,D];function P(M,D){if(1&M){const I=f.RV6();f.j41(0,"gfn-join-now",5),f.bIt("primaryButtonClicked",function(V){f.eBV(I);const T=f.XpG();return f.Njj(T.onPrimaryButtonClicked(V))})("loginButtonClicked",function(V){f.eBV(I);const T=f.XpG();return f.Njj(T.onLoginButtonClicked(V))})("closeButtonClicked",function(V){f.eBV(I);const T=f.XpG();return f.Njj(T.oncloseButtonClicked(V))}),f.k0s()}if(2&M){const I=f.XpG();f.Y8G("data",I.data)}}function _(M,D){if(1&M){const I=f.RV6();f.j41(0,"gfn-membership-update-progress",6),f.bIt("primaryButtonClicked",function(V){f.eBV(I);const T=f.XpG();return f.Njj(T.onPrimaryButtonClicked(V))})("closeButtonClicked",function(V){f.eBV(I);const T=f.XpG();return f.Njj(T.oncloseButtonClicked(V))}),f.k0s()}if(2&M){const I=f.XpG();f.Y8G("data",I.data)}}function i(M,D){if(1&M){const I=f.RV6();f.j41(0,"gfn-membership-refresh-error",7),f.bIt("closeButtonClicked",function(V){f.eBV(I);const T=f.XpG();return f.Njj(T.oncloseButtonClicked(V))}),f.k0s()}if(2&M){const I=f.XpG();f.Y8G("data",I.data)}}function r(M,D){if(1&M){const I=f.RV6();f.j41(0,"gfn-membership-not-updated",7),f.bIt("closeButtonClicked",function(V){f.eBV(I);const T=f.XpG();return f.Njj(T.oncloseButtonClicked(V))}),f.k0s()}if(2&M){const I=f.XpG();f.Y8G("data",I.data)}}function a(M,D){if(1&M){const I=f.RV6();f.j41(0,"gfn-playtime-update-progress",6),f.bIt("primaryButtonClicked",function(V){f.eBV(I);const T=f.XpG();return f.Njj(T.onPrimaryButtonClicked(V))})("closeButtonClicked",function(V){f.eBV(I);const T=f.XpG();return f.Njj(T.oncloseButtonClicked(V))}),f.k0s()}if(2&M){const I=f.XpG();f.Y8G("data",I.data)}}function c(M,D){if(1&M){const I=f.RV6();f.j41(0,"gfn-playtime-not-updated",7),f.bIt("closeButtonClicked",function(V){f.eBV(I);const T=f.XpG();return f.Njj(T.oncloseButtonClicked(V))}),f.k0s()}if(2&M){const I=f.XpG();f.Y8G("data",I.data)}}let m=(()=>{class M{get closeResult(){return[this.isEcomPlanChanged,this.currentUIState]}constructor(I,U){this.dialogRef=I,this.data=U,this.currentUIState=l.qQ.InitialState,this.ecomUIState=l.qQ,this.destroy$=new d.B7,this.lastEntitlement=null,this.isEcomPlanChanged=!1,this.membershipUpdateProgressPrimaryButtonClicked=!1}ngOnInit(){this.currentUIState=this.data.ecomUIState,this.initEcommerceSub()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}onPrimaryButtonClicked(I){if(this.currentUIState===l.qQ.InitialState)this.goToNextEcomDlgUIState(l.qQ.MembershipUpdateProgress);else if(this.currentUIState===l.qQ.MembershipUpdateProgress||this.currentUIState===l.qQ.MembershipUpdatetimeProgress){if(this.data.useCase===l.Y1.GaaSFree1HourExceeded||this.data.useCase===l.Y1.GaaSFreeSampleAlreadyUsed||this.data.useCase===l.Y1.GaaSUnsupportedFreeTitle)return this.goToNextEcomDlgUIState(l.qQ.ExitedToLogin),this.closeDialog(),void this.data.buttonClickCallback(l.qQ.ExitedToLogin);this.membershipUpdateProgressPrimaryButtonClicked=!0}}onLoginButtonClicked(I){this.currentUIState===l.qQ.InitialState&&(this.goToNextEcomDlgUIState(l.qQ.ExitedToLogin),this.closeDialog())}oncloseButtonClicked(I){this.closeDialog()}initEcommerceSub(){this.data.getUserMembership$.pipe((0,v.Q)(this.destroy$)).subscribe(I=>{const U=(0,S.get)(I,"subscription.productSku"),V=(0,S.get)(I,"subscription.remainingTimeInMinutes");null!==this.lastEntitlement?(this.isEcomPlanChanged=this.isPlanChanged(U),this.isEcomPlanChanged||this.currentUIState===l.qQ.MembershipUpdatetimeProgress&&this.isPlaytimeChanged(V)?this.closeDialog():this.membershipUpdateProgressPrimaryButtonClicked&&this.goToErrorOrRefreshState(I),this.lastEntitlement={productSku:U,remainingTimeInMinutes:V}):this.lastEntitlement={productSku:U,remainingTimeInMinutes:V}})}isPlanChanged(I){return this.lastEntitlement.productSku!==I}isPlaytimeChanged(I){return this.lastEntitlement.remainingTimeInMinutes<I}goToErrorOrRefreshState(I){this.goToNextEcomDlgUIState(I.membershipStatus===l.OO.ServerError||I.membershipStatus===l.OO.UnKnown?l.qQ.MembershipRefreshError:this.currentUIState===l.qQ.MembershipUpdatetimeProgress?l.qQ.MembershipTimeNotUpdated:l.qQ.MembershipNotUpdated)}closeDialog(){this.dialogRef.close(this.closeResult)}goToNextEcomDlgUIState(I){this.currentUIState=I}static{this.\u0275fac=function(U){return new(U||M)(f.rXU(n.CP),f.rXU(n.Vh))}}static{this.\u0275cmp=f.VBU({type:M,selectors:[["gfn-ecom-dialog"]],decls:9,vars:12,consts:[["nvBackToCloseModal","","nvTrapFocus","",3,"ngClass","backToCloseResult"],["fxFlexFill","","fxLayout","column","fxFlex","grow",3,"ngSwitch"],[3,"data","primaryButtonClicked","loginButtonClicked","closeButtonClicked",4,"ngSwitchCase"],[3,"data","primaryButtonClicked","closeButtonClicked",4,"ngSwitchCase"],[3,"data","closeButtonClicked",4,"ngSwitchCase"],[3,"primaryButtonClicked","loginButtonClicked","closeButtonClicked","data"],[3,"primaryButtonClicked","closeButtonClicked","data"],[3,"closeButtonClicked","data"]],template:function(U,V){1&U&&(f.j41(0,"div",0)(1,"div",1),f.DNE(2,P,1,1,"gfn-join-now",2)(3,_,1,1,"gfn-membership-update-progress",3)(4,i,1,1,"gfn-membership-refresh-error",4)(5,r,1,1,"gfn-membership-not-updated",4)(6,a,1,1,"gfn-playtime-update-progress",3)(7,c,1,1,"gfn-playtime-not-updated",4),f.nrm(8,"div"),f.k0s()()),2&U&&(f.Y8G("ngClass",f.l_i(9,O,V.data.isStreamerApp?"joinnow-component-container-streamer":"joinnow-component-container-mall",V.data.isCompactDialog?"joinnow-compact-dialog-container":""))("backToCloseResult",V.closeResult),f.R7$(),f.Y8G("ngSwitch",V.currentUIState),f.R7$(),f.Y8G("ngSwitchCase",V.ecomUIState.InitialState),f.R7$(),f.Y8G("ngSwitchCase",V.ecomUIState.MembershipUpdateProgress),f.R7$(),f.Y8G("ngSwitchCase",V.ecomUIState.MembershipRefreshError),f.R7$(),f.Y8G("ngSwitchCase",V.ecomUIState.MembershipNotUpdated),f.R7$(),f.Y8G("ngSwitchCase",V.ecomUIState.MembershipUpdatetimeProgress),f.R7$(),f.Y8G("ngSwitchCase",V.ecomUIState.MembershipTimeNotUpdated))},styles:[":root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.joinnow-component-container-mall,.joinnow-component-container-streamer{width:470px;height:668px}.joinnow-component-container-mall.joinnow-compact-dialog-container,.joinnow-component-container-streamer.joinnow-compact-dialog-container{height:100%}.joinnow-component-container-mall,.joinnow-component-container-streamer,.mat-mdc-dialog-container{border-radius:0;overflow:hidden;transition:height .5s;background-color:#1f2224;padding:0}.joinnow-component-container-streamer{height:618px}@media (max-height: 668px){.joinnow-component-container-mall,.mat-mdc-dialog-container{height:100%}.main-content-mall{height:550px}.main-content-mall .dialog-content{height:136px!important}}@media (max-width: 959.98px) and (orientation: landscape){.joinnow-component-container-mall,.joinnow-component-container-streamer{width:560px;height:-moz-fit-content;height:fit-content}.mat-mdc-dialog-container:has(gfn-ecom-dialog){height:-moz-fit-content;height:fit-content}}@media (max-width: 599.98px) and (orientation: portrait),screen and (max-width: 568px) and (max-height: 320px) and (orientation: landscape){.joinnow-component-container-mall,.joinnow-component-container-streamer{width:calc(100vw - 32px);height:-moz-fit-content;height:fit-content}.mat-mdc-dialog-container:has(gfn-ecom-dialog){height:-moz-fit-content;height:fit-content}}.tv-view .joinnow-component-container-mall,.tv-view .joinnow-component-container-streamer{width:840px;height:925px}\n"],encapsulation:2})}}return M})()},44781:(Bt,z,s)=>{"use strict";s.d(z,{c:()=>Xe});var n=s(58527),l=s(26875),v=s(80583),S=s(4208),y=s(18433),f=s(71962),O=s(65706),P=s(36206),_=s(18568),i=s(99469),r=s(61958),a=s(56785),c=s(74497),m=s(3457),M=s(28139),D=s(26537),I=s(29370),U=s(47973),V=s(61142),T=s(22355),N=s(60990),L=s(2218),E=s(97888),g=s(40514),R=s(46964),B=s(49219),X=s(33328),H=s(96542);const J=He=>[He],re=He=>({accountManagementLink:He});function ie(He,Me){if(1&He){const Q=n.RV6();n.j41(0,"div",13)(1,"button",14),n.bIt("click",function(){n.eBV(Q);const me=n.XpG(2);return n.Njj(me.closeDialog())}),n.j41(2,"mat-icon",15),n.EFF(3,"close"),n.k0s()()()}}function ve(He,Me){if(1&He&&(n.j41(0,"div",9)(1,"div",10)(2,"h1",11),n.EFF(3),n.nI1(4,"translate"),n.k0s()(),n.DNE(5,ie,4,0,"div",12),n.k0s()),2&He){const Q=n.XpG();n.R7$(3),n.JRh(n.bMT(4,2,"common.gfn")),n.R7$(2),n.Y8G("ngIf",!Q.isGaaS&&Q.closeButtonVisible)}}function ue(He,Me){if(1&He){const Q=n.RV6();n.j41(0,"button",19),n.bIt("click",function(){n.eBV(Q);const me=n.XpG(2);return n.Njj(me.closeDialog())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}if(2&He){const Q=n.XpG(2);n.R7$(),n.SpI(" ",n.bMT(2,1,Q.notNowButtonText)," ")}}function se(He,Me){if(1&He){const Q=n.RV6();n.j41(0,"span")(1,"button",20),n.bIt("click",function(){n.eBV(Q);const me=n.XpG(2);return n.Njj(me.joinNowClicked())}),n.EFF(2),n.nI1(3,"translate"),n.k0s()()}if(2&He){const Q=n.XpG(2);n.R7$(),n.Y8G("isVisible",Q.showLoadingOnJoinNow),n.R7$(),n.SpI(" ",n.bMT(3,2,Q.buttonText)," ")}}function Z(He,Me){if(1&He&&(n.j41(0,"div",16),n.DNE(1,ue,3,3,"button",17)(2,se,4,4,"span",18),n.k0s()),2&He){const Q=n.XpG();n.R7$(),n.Y8G("ngIf",!Q.isGaaS||Q.isUpgrade),n.R7$(),n.Y8G("ngIf",Q.canHardUpsell)}}function Se(He,Me){if(1&He&&(n.j41(0,"div",26)(1,"span",27),n.EFF(2),n.nI1(3,"translate"),n.k0s()()),2&He){const Q=n.XpG(2);n.R7$(2),n.JRh(n.bMT(3,1,Q.upsellMessage))}}function Ce(He,Me){if(1&He){const Q=n.RV6();n.j41(0,"button",28),n.bIt("click",function(){n.eBV(Q);const me=n.XpG(2);return n.Njj(me.joinNowClicked())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}if(2&He){const Q=n.XpG(2);n.Y8G("isVisible",Q.showLoadingOnJoinNow),n.R7$(),n.SpI(" ",n.bMT(2,2,Q.buttonText)," ")}}function Be(He,Me){if(1&He){const Q=n.RV6();n.j41(0,"div",21),n.DNE(1,Se,4,3,"div",22),n.j41(2,"div",23)(3,"button",24),n.bIt("click",function(){n.eBV(Q);const me=n.XpG();return n.Njj(me.closeDialog())}),n.EFF(4),n.nI1(5,"translate"),n.k0s(),n.DNE(6,Ce,3,4,"button",25),n.k0s()()}if(2&He){const Q=n.XpG();n.R7$(),n.Y8G("ngIf",Q.upsellMessage),n.R7$(3),n.SpI(" ",n.bMT(5,3,Q.queueLimitExceededCloseButtonText)," "),n.R7$(2),n.Y8G("ngIf",Q.showUpgradeButtonForQueueLimitExceeded)}}let Xe=(()=>{class He{constructor(Q,A,me,ne,G,W){this.telemetryUtilService=me,this.spatialNavigationService=ne,this.ecomService=G,this.redirectService=W,this.primaryButtonClicked=new n.bkB,this.closeButtonClicked=new n.bkB,this.loginButtonClicked=new n.bkB,this.notNowButtonText="common.notNow",this.showUpgradeButtonForQueueLimitExceeded=!0,this.queueLimitExceededCloseButtonText="common.close",this.queueLimitReached=!1,this.showLoadingOnJoinNow=!1,this.isGaaS=!1,this.isUpgrade=!1,this.canHardUpsell=!0,this.closeButtonVisible=!0,this.destroy$=new v.B7,this.logger=Q.getLogger("JoinNowComponent"),this.closeButtonVisible=!A?.featureEnablement?.tvMode}ngOnInit(){switch((this.data.useCase===f.Y1.GaaSFree1HourExceeded||this.data.useCase===f.Y1.GaaSFreeSampleAlreadyUsed||this.data.useCase===f.Y1.GaaSUnsupportedFreeTitle||this.data.useCase===f.Y1.GaaSFreeUserCanUpgrade)&&(this.isGaaS=!0,this.isUpgrade=this.data.useCase===f.Y1.GaaSFreeUserCanUpgrade),this.canHardUpsell=this.ecomService.canHardUpsell(),this.getDialogText(this.data),this.data.useCase){case f.Y1.MaxSessionLengthExceeded:this.sendUpsellTelemetry(y.fbu.StreamerPostSessionUpsell);break;case f.Y1.GaaSFreeUserCanUpgrade:this.sendUpsellTelemetry(y.fbu.StreamerPostSessionFreeGaaSUpsell);break;case f.Y1.GaaSFree1HourExceeded:this.sendUpsellTelemetry(y.fbu.StreamerPostSessionAnonGaaSUpsell);break;case f.Y1.GaaSFreeSampleAlreadyUsed:this.sendUpsellTelemetry(y.fbu.StreamerUsedFreeUpsell);break;case f.Y1.GaaSUnsupportedFreeTitle:this.sendUpsellTelemetry(y.fbu.StreamerNoFreeUpsell)}this.accountManagementLinkShortUrl=P.lp[P.r7.GfnAccountManagement],this.redirectService.getRedirectUrl(P.r7.GfnAccountManagement).pipe((0,O.s)(1),(0,S.Q)(this.destroy$)).subscribe(Q=>{this.accountManagementLink=`href="${Q}" class='font-body2-link membership-options-link'`})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}sendUpsellTelemetry(Q){this.telemetryUtilService.sendUserSessionEvent(y.ay7.LaunchGame,Q,0,"",this.data.gameLaunchScreen)}sendUIActionTelemetry(Q){let A;switch(this.data.useCase){case f.Y1.MaxSessionLengthExceeded:A=y.Pk9.StreamerPostSessionUpsell;break;case f.Y1.QueueLimitExceeded:A=y.Pk9.StreamerQueueUpsell;break;case f.Y1.GaaSFree1HourExceeded:A=y.Pk9.StreamerPostSessionAnonGaaSUpsell;break;case f.Y1.GaaSUnsupportedFreeTitle:A=y.Pk9.StreamerNoFreeUpsell;break;case f.Y1.GaaSFreeSampleAlreadyUsed:A=y.Pk9.StreamerUsedFreeUpsell;break;case f.Y1.GaaSFreeUserCanUpgrade:A=y.Pk9.StreamerPostSessionFreeGaaSUpsell;break;default:A=y.Pk9.StreamerPostSessionUpsell}this.telemetryUtilService.sendUiActionEvent(Q,A)}ngAfterViewInit(){const Q=document.getElementsByClassName("join-now-login-link"),A=Q?.length>0?Q[0]:void 0;A&&this.spatialNavigationService.onClick(A).pipe((0,S.Q)(this.destroy$)).subscribe(me=>{me&&(this.loginButtonClicked.emit(),this.data.buttonClickCallback(f.qQ.ExitedToLogin),this.sendUIActionTelemetry(y.kQl.Login))})}closeDialog(){this.closeButtonClicked.emit(),this.sendUIActionTelemetry(y.kQl.Close)}joinNowClicked(){this.logger.info("User clicked on Join button."),this.data.buttonClickCallback(f.qQ.InitialState),this.showLoadingOnJoinNow=!0,setTimeout(()=>{this.primaryButtonClicked.emit(),this.showLoadingOnJoinNow=!1},f.xY),this.sendUIActionTelemetry(y.kQl.Join)}getDialogText(Q){if(this.logger.info("Dialog data received from caller: ",Q),(0,l.isNil)(Q))this.logger.error("recieved null data in join now component");else{switch(this.data.useCase){case f.Y1.MaxSessionLengthExceeded:this.dialogTitle="ecommerce.upgradeDialog.title",this.description="ecommerce.upgradeDialog.description",this.canHardUpsell?(this.buttonText="ecommerce.upgrade",this.notNowButtonText="common.notNow"):this.notNowButtonText="common.close";break;case f.Y1.QueueLimitExceeded:this.queueLimitReached=!0,Q.getUserMembership$.pipe((0,O.s)(1)).subscribe(A=>{this.canHardUpsell&&this.ecomService.featureUpsellAvailable(_.q3.LOWER_SESSION_QUEUE_WAIT_TIME)?(this.description="ecommerce.queueLimitReached.upgradable",this.upsellMessage="ecommerce.upsellPromptForBetterQueuePositionA",this.buttonText="ecommerce.upgrade",this.queueLimitExceededCloseButtonText="common.notNow"):(this.description="ecommerce.queueLimitReached.notUpgradable",this.showUpgradeButtonForQueueLimitExceeded=!1)});break;case f.Y1.GaaSFree1HourExceeded:this.dialogTitle="ecommerce.joinNowDialog.gaaSFree1HourExceededTitle",this.description="ecommerce.joinNowDialog.gaaSFree1HourExceededDescription",this.buttonText="common.joinToday";break;case f.Y1.GaaSUnsupportedFreeTitle:this.dialogTitle="common.joinTodayToPlay",this.description="ecommerce.joinNowDialog.gaaSUnsupportedFreeDescription",this.buttonText="common.joinToday";break;case f.Y1.GaaSFreeSampleAlreadyUsed:this.dialogTitle="common.joinTodayToPlay",this.description="ecommerce.joinNowDialog.gaaSFree1HourExceededDescription",this.buttonText="common.joinToday";break;case f.Y1.GaaSFreeUserCanUpgrade:return this.dialogTitle="ecommerce.joinNowDialog.gaaSFreeUserCanUpgradeTitle",this.description="ecommerce.joinNowDialog.gaaSFreeUserCanUpgradeDescription",this.buttonText="ecommerce.upgrade",void(this.notNowButtonText="common.notNow");default:this.canHardUpsell?(this.dialogTitle="common.almostReadyToPlay",this.description="ecommerce.joinNowDialog.selectMembershipDescription",this.buttonText="common.selectMembership",this.notNowButtonText="common.notNow"):(this.dialogTitle="common.membershipRequired",this.description="ecommerce.joinNowDialogSoftUpsell.selectMembershipDescription",this.notNowButtonText="common.close")}this.loginButtonText="common.login"}}static{this.\u0275fac=function(A){return new(A||He)(n.rXU(i.J6),n.rXU(r.Vk),n.rXU(y.jgD),n.rXU(a.ED),n.rXU(c.y),n.rXU(P.Q5))}}static{this.\u0275cmp=n.VBU({type:He,selectors:[["gfn-join-now"]],inputs:{data:"data"},outputs:{primaryButtonClicked:"primaryButtonClicked",closeButtonClicked:"closeButtonClicked",loginButtonClicked:"loginButtonClicked"},decls:13,vars:21,consts:[["fxFlexFill","","fxLayout","column","nvSpatialNavigationContainer","","nvCaptureRestoreFocus","",3,"ngClass"],["fxFlex","none","class","custom-title-bar","fxLayout","row",4,"ngIf"],["fxFlex","none","fxLayout","column"],["src","shared/assets/img/GFNUpSellBannerKV_v3.webp",1,"dialog-art"],[3,"ngClass"],[1,"font-header6"],["cdkMonitorSubtreeFocus","",1,"font-body2",3,"innerHTML","shortUrl"],["fxFlex","none","class","dialog-button","fxLayout","row","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","none","fxLayout","column","class","upsell-pane",4,"ngIf"],["fxFlex","none","fxLayout","row",1,"custom-title-bar"],["fxFlex","","fxLayoutAlign","start center"],["mat-dialog-title","",1,"font-header6"],["fxFlex","","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","","fxLayoutAlign","end center"],["mat-icon-button","",3,"click"],["mat-font-set","material-icons"],["fxFlex","none","fxLayout","row","fxLayoutAlign","end center",1,"dialog-button"],["mat-button","","class","font-button2 not-now-button",3,"click",4,"ngIf"],[4,"ngIf"],["mat-button","",1,"font-button2","not-now-button",3,"click"],["mat-raised-button","","nvProgressCircular","","nvAutoFocus","",1,"font-button2",3,"click","isVisible"],["fxFlex","none","fxLayout","column",1,"upsell-pane"],["fxFlex","","fxLayout","column","fxLayoutAlign","start center","class","upsell-pane-message",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutAlign","end end","fxLayoutGap","8px",1,"upgrade-container"],["mat-button","",1,"font-button2",3,"click"],["class","font-button2","mat-raised-button","","color","accent","nvProgressCircular","","nvAutoFocus","",3,"isVisible","click",4,"ngIf"],["fxFlex","","fxLayout","column","fxLayoutAlign","start center",1,"upsell-pane-message"],[1,"font-sub2"],["mat-raised-button","","color","accent","nvProgressCircular","","nvAutoFocus","",1,"font-button2",3,"click","isVisible"]],template:function(A,me){1&A&&(n.j41(0,"div",0),n.DNE(1,ve,6,4,"div",1),n.j41(2,"div",2),n.nrm(3,"img",3),n.j41(4,"div",4)(5,"h2",5),n.EFF(6),n.nI1(7,"translate"),n.k0s(),n.nrm(8,"p",6),n.nI1(9,"translate"),n.nI1(10,"trustAsHtml"),n.k0s()(),n.DNE(11,Z,3,2,"div",7)(12,Be,7,5,"div",8),n.k0s()),2&A&&(n.Y8G("ngClass",n.eq3(15,J,me.data.isStreamerApp?"main-content-streamer":"main-content-mall")),n.R7$(),n.Y8G("ngIf",!me.data.isStreamerApp),n.R7$(3),n.Y8G("ngClass",n.eq3(17,J,me.queueLimitReached?"dialog-content-queue-limit":"dialog-content")),n.R7$(2),n.JRh(n.bMT(7,8,me.dialogTitle)),n.R7$(2),n.Y8G("innerHTML",n.bMT(10,13,n.i5U(9,10,me.description,n.eq3(19,re,me.accountManagementLink))),n.npT)("shortUrl",me.accountManagementLinkShortUrl),n.R7$(3),n.Y8G("ngIf",!me.queueLimitReached),n.R7$(),n.Y8G("ngIf",me.queueLimitReached))},dependencies:[m.DJ,m.BO,m.sA,m.G2,m.UI,M.PW,D.BI,I.An,U.iV,V.YU,V.bT,T.N,N.r,L.R,E.Aq,g.e,R.q,B.q,X.O,H.D9],styles:[":root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.main-content-streamer,.main-content-mall{width:470px;overflow:hidden;transition:height .5s}.main-content-streamer .custom-title-bar,.main-content-mall .custom-title-bar{width:470px;height:50px}:host-context(.isLtr) .main-content-streamer .custom-title-bar,:host-context(.isLtr) .main-content-mall .custom-title-bar{padding-left:24px}html[dir=ltr] .main-content-streamer .custom-title-bar,html[dir=ltr] .main-content-mall .custom-title-bar{--dummy1: 0;padding-left:24px}:host-context(.isRtl) .main-content-streamer .custom-title-bar,:host-context(.isRtl) .main-content-mall .custom-title-bar{padding-right:24px}html[dir=rtl] .main-content-streamer .custom-title-bar,html[dir=rtl] .main-content-mall .custom-title-bar{--dummy1: 0;padding-right:24px}:host-context(.isLtr) .main-content-streamer .custom-title-bar,:host-context(.isLtr) .main-content-mall .custom-title-bar{padding-right:24px}html[dir=ltr] .main-content-streamer .custom-title-bar,html[dir=ltr] .main-content-mall .custom-title-bar{--dummy2: 0;padding-right:24px}:host-context(.isRtl) .main-content-streamer .custom-title-bar,:host-context(.isRtl) .main-content-mall .custom-title-bar{padding-left:24px}html[dir=rtl] .main-content-streamer .custom-title-bar,html[dir=rtl] .main-content-mall .custom-title-bar{--dummy2: 0;padding-left:24px}.main-content-streamer .custom-title-bar .mat-mdc-dialog-title,.main-content-mall .custom-title-bar .mat-mdc-dialog-title{margin-bottom:0}.main-content-streamer .dialog-art,.main-content-mall .dialog-art{width:470px;height:264px;border:transparent;padding-bottom:0}.main-content-streamer .dialog-content,.main-content-mall .dialog-content{padding:24px;height:254px}.main-content-streamer .dialog-content-queue-limit,.main-content-mall .dialog-content-queue-limit{padding:24px;height:91px}.main-content-streamer .dialog-content-queue-limit>p,.main-content-mall .dialog-content-queue-limit>p{text-align:center;margin:4px 0 0}.main-content-streamer .dialog-content-queue-limit>h2,.main-content-mall .dialog-content-queue-limit>h2{display:none}.main-content-streamer .dialog-content>h2,.main-content-mall .dialog-content>h2{margin-top:0}.main-content-streamer .dialog-button,.main-content-mall .dialog-button{flex-wrap:nowrap;margin:8px;position:relative;right:0;bottom:0}:host-context(.isLtr) .main-content-streamer .dialog-button button:last-child,:host-context(.isLtr) .main-content-mall .dialog-button button:last-child{margin-left:8px}html[dir=ltr] .main-content-streamer .dialog-button button:last-child,html[dir=ltr] .main-content-mall .dialog-button button:last-child{--dummy3: 0;margin-left:8px}:host-context(.isRtl) .main-content-streamer .dialog-button button:last-child,:host-context(.isRtl) .main-content-mall .dialog-button button:last-child{margin-right:8px}html[dir=rtl] .main-content-streamer .dialog-button button:last-child,html[dir=rtl] .main-content-mall .dialog-button button:last-child{--dummy3: 0;margin-right:8px}.main-content-streamer .upsell-pane,.main-content-mall .upsell-pane{height:215px}.main-content-streamer .upsell-pane-message,.main-content-mall .upsell-pane-message{border-top:1px solid rgba(255,255,255,.15);margin:0 24px;padding:23px 0}.main-content-streamer .upgrade-container,.main-content-mall .upgrade-container{margin:8px}.compact-dialog-wrapper,.compact-dialog-wrapper .dialog-content{height:100%}@media (max-width: 469px){.main-content-streamer,.main-content-mall{width:100vw}.main-content-streamer .custom-title-bar,.main-content-mall .custom-title-bar{width:unset}.main-content-streamer .dialog-art,.main-content-mall .dialog-art{width:100vw;height:auto}.main-content-streamer .dialog-content,.main-content-mall .dialog-content,.main-content-streamer .dialog-button,.main-content-mall .dialog-button{width:unset}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.main-content-mall .dialog-art,.main-content-streamer .dialog-art{display:none}.main-content-mall .custom-title-bar,.main-content-streamer .custom-title-bar{display:none!important}.main-content-mall .dialog-content,.main-content-streamer .dialog-content{height:-moz-fit-content!important;height:fit-content!important}}.tv-view .main-content-mall,.tv-view .main-content-streamer,:host-context(.tv-view) .main-content-mall,:host-context(.tv-view) .main-content-streamer{width:840px;height:925px}.tv-view .main-content-mall .custom-title-bar,.tv-view .main-content-streamer .custom-title-bar,:host-context(.tv-view) .main-content-mall .custom-title-bar,:host-context(.tv-view) .main-content-streamer .custom-title-bar{width:100%;height:88px}:host-context(.isLtr) .tv-view .main-content-mall .custom-title-bar,:host-context(.isLtr) .tv-view .main-content-streamer .custom-title-bar,:host-context(.isLtr) :host-context(.tv-view) .main-content-mall .custom-title-bar,:host-context(.isLtr) :host-context(.tv-view) .main-content-streamer .custom-title-bar{padding-left:32px}html[dir=ltr] .tv-view .main-content-mall .custom-title-bar,html[dir=ltr] .tv-view .main-content-streamer .custom-title-bar,html[dir=ltr] :host-context(.tv-view) .main-content-mall .custom-title-bar,html[dir=ltr] :host-context(.tv-view) .main-content-streamer .custom-title-bar{--dummy1: 0;padding-left:32px}:host-context(.isRtl) .tv-view .main-content-mall .custom-title-bar,:host-context(.isRtl) .tv-view .main-content-streamer .custom-title-bar,:host-context(.isRtl) :host-context(.tv-view) .main-content-mall .custom-title-bar,:host-context(.isRtl) :host-context(.tv-view) .main-content-streamer .custom-title-bar{padding-right:32px}html[dir=rtl] .tv-view .main-content-mall .custom-title-bar,html[dir=rtl] .tv-view .main-content-streamer .custom-title-bar,html[dir=rtl] :host-context(.tv-view) .main-content-mall .custom-title-bar,html[dir=rtl] :host-context(.tv-view) .main-content-streamer .custom-title-bar{--dummy1: 0;padding-right:32px}:host-context(.isLtr) .tv-view .main-content-mall .custom-title-bar,:host-context(.isLtr) .tv-view .main-content-streamer .custom-title-bar,:host-context(.isLtr) :host-context(.tv-view) .main-content-mall .custom-title-bar,:host-context(.isLtr) :host-context(.tv-view) .main-content-streamer .custom-title-bar{padding-right:32px}html[dir=ltr] .tv-view .main-content-mall .custom-title-bar,html[dir=ltr] .tv-view .main-content-streamer .custom-title-bar,html[dir=ltr] :host-context(.tv-view) .main-content-mall .custom-title-bar,html[dir=ltr] :host-context(.tv-view) .main-content-streamer .custom-title-bar{--dummy2: 0;padding-right:32px}:host-context(.isRtl) .tv-view .main-content-mall .custom-title-bar,:host-context(.isRtl) .tv-view .main-content-streamer .custom-title-bar,:host-context(.isRtl) :host-context(.tv-view) .main-content-mall .custom-title-bar,:host-context(.isRtl) :host-context(.tv-view) .main-content-streamer .custom-title-bar{padding-left:32px}html[dir=rtl] .tv-view .main-content-mall .custom-title-bar,html[dir=rtl] .tv-view .main-content-streamer .custom-title-bar,html[dir=rtl] :host-context(.tv-view) .main-content-mall .custom-title-bar,html[dir=rtl] :host-context(.tv-view) .main-content-streamer .custom-title-bar{--dummy2: 0;padding-left:32px}.tv-view .main-content-mall .dialog-art,.tv-view .main-content-streamer .dialog-art,:host-context(.tv-view) .main-content-mall .dialog-art,:host-context(.tv-view) .main-content-streamer .dialog-art{width:100%;height:auto}.tv-view .main-content-mall .dialog-content,.tv-view .main-content-streamer .dialog-content,:host-context(.tv-view) .main-content-mall .dialog-content,:host-context(.tv-view) .main-content-streamer .dialog-content{padding:32px;height:auto}.tv-view .main-content-mall .dialog-button,.tv-view .main-content-streamer .dialog-button,:host-context(.tv-view) .main-content-mall .dialog-button,:host-context(.tv-view) .main-content-streamer .dialog-button{margin:8px 32px}:host-context(.isLtr) .tv-view .main-content-mall .dialog-button button:last-child,:host-context(.isLtr) .tv-view .main-content-streamer .dialog-button button:last-child,:host-context(.isLtr) :host-context(.tv-view) .main-content-mall .dialog-button button:last-child,:host-context(.isLtr) :host-context(.tv-view) .main-content-streamer .dialog-button button:last-child{margin-left:32px}html[dir=ltr] .tv-view .main-content-mall .dialog-button button:last-child,html[dir=ltr] .tv-view .main-content-streamer .dialog-button button:last-child,html[dir=ltr] :host-context(.tv-view) .main-content-mall .dialog-button button:last-child,html[dir=ltr] :host-context(.tv-view) .main-content-streamer .dialog-button button:last-child{--dummy3: 0;margin-left:32px}:host-context(.isRtl) .tv-view .main-content-mall .dialog-button button:last-child,:host-context(.isRtl) .tv-view .main-content-streamer .dialog-button button:last-child,:host-context(.isRtl) :host-context(.tv-view) .main-content-mall .dialog-button button:last-child,:host-context(.isRtl) :host-context(.tv-view) .main-content-streamer .dialog-button button:last-child{margin-right:32px}html[dir=rtl] .tv-view .main-content-mall .dialog-button button:last-child,html[dir=rtl] .tv-view .main-content-streamer .dialog-button button:last-child,html[dir=rtl] :host-context(.tv-view) .main-content-mall .dialog-button button:last-child,html[dir=rtl] :host-context(.tv-view) .main-content-streamer .dialog-button button:last-child{--dummy3: 0;margin-right:32px}:host-context(.isLtr) .tv-view .main-content-mall .dialog-button button:last-child,:host-context(.isLtr) .tv-view .main-content-streamer .dialog-button button:last-child,:host-context(.isLtr) :host-context(.tv-view) .main-content-mall .dialog-button button:last-child,:host-context(.isLtr) :host-context(.tv-view) .main-content-streamer .dialog-button button:last-child{margin-right:0}html[dir=ltr] .tv-view .main-content-mall .dialog-button button:last-child,html[dir=ltr] .tv-view .main-content-streamer .dialog-button button:last-child,html[dir=ltr] :host-context(.tv-view) .main-content-mall .dialog-button button:last-child,html[dir=ltr] :host-context(.tv-view) .main-content-streamer .dialog-button button:last-child{--dummy4: 0;margin-right:0}:host-context(.isRtl) .tv-view .main-content-mall .dialog-button button:last-child,:host-context(.isRtl) .tv-view .main-content-streamer .dialog-button button:last-child,:host-context(.isRtl) :host-context(.tv-view) .main-content-mall .dialog-button button:last-child,:host-context(.isRtl) :host-context(.tv-view) .main-content-streamer .dialog-button button:last-child{margin-left:0}html[dir=rtl] .tv-view .main-content-mall .dialog-button button:last-child,html[dir=rtl] .tv-view .main-content-streamer .dialog-button button:last-child,html[dir=rtl] :host-context(.tv-view) .main-content-mall .dialog-button button:last-child,html[dir=rtl] :host-context(.tv-view) .main-content-streamer .dialog-button button:last-child{--dummy4: 0;margin-left:0}.tv-view .main-content-mall div.dialog-content,:host-context(.tv-view) .main-content-mall div.dialog-content{height:200px}.tv-view .main-content-streamer div.dialog-content,:host-context(.tv-view) .main-content-streamer div.dialog-content{height:288px}\n"],encapsulation:2})}}return He})()},71962:(Bt,z,s)=>{"use strict";s.d(z,{Dd:()=>V,EI:()=>M,J0:()=>a,JZ:()=>g,LE:()=>d,OO:()=>U,P7:()=>N,Pq:()=>P,Q8:()=>D,TO:()=>m,Tq:()=>f,U3:()=>T,U_:()=>c,VD:()=>S,Wu:()=>R,Xj:()=>_,Y1:()=>E,Z9:()=>y,b5:()=>r,nC:()=>O,p1:()=>v,qQ:()=>L,r3:()=>i,xY:()=>l});var n=s(90116);const l=2e3,d="dayPassNearingExpiryBanner",v="TimeCapLowTimeBanner",S="TimeCapLimitedTimeBanner",y={notificationType:n.$9.DayPassExpired,svgIcon:"time",messageStr:{key:"notification.dayPassExpiredBannerEcomRestricted"},primaryButtonText:"notification.dismiss"},f={...y,messageStr:{key:"notification.dayPassExpiredBanner"},primaryButtonText:"settings.membership.upgrade",secondaryButtonText:"common.notNow"},O={notificationType:n.$9.DayPassNearingExpiry,svgIcon:"time",messageStr:{key:"notification.dayPassNearingExpiryBannerEcomRestricted"},primaryButtonText:"notification.dismiss"},P={...O,messageStr:{key:"notification.dayPassNearingExpiryBanner"},primaryButtonText:"ecommerce.membership.addDays",secondaryButtonText:"common.notNow"},_={notificationType:n.$9.TimeCappedLimitedState,svgIcon:"time",messageStr:{key:"notification.timeCapLimitedStateBannerEcomRestricted"},primaryButtonText:"notification.dismiss"},i={..._,messageStr:{key:"notification.timeCapLimitedStateBanner"},primaryButtonText:"ecommerce.addPlaytime",secondaryButtonText:"common.notNow"},r={notificationType:n.$9.TimeCappedLowState,svgIcon:"time",messageStr:{key:"notification.timeCapLowStateBannerEcomRestricted"},primaryButtonText:"notification.dismiss"},a={...r,messageStr:{key:"notification.timeCapLowStateBanner"},primaryButtonText:"ecommerce.addPlaytime",secondaryButtonText:"common.notNow"},c={membershipUpgradeSuccess:{header:"ecommerce.membershipUpgradeSuccessDialog.header",description:"ecommerce.membershipUpgradeSuccessDialog.description",cellComparisonDescription:"ecommerce.membershipUpgradeSuccessDialog.cellComparisonDescription",primaryButton:{text:"layout.play",accentColor:!0},secondaryButton:{text:"common.done"}},playtimeUpdateSuccess:{header:"ecommerce.playtimeAdded",description:"ecommerce.playtimeUpdateSuccessDialog.description",cellComparisonDescription:"ecommerce.playtimeUpdateSuccessDialog.cellComparisonDescription",primaryButton:{text:"layout.play",accentColor:!0},secondaryButton:{text:"common.done"}}};var m=function(B){return B.Windows="Windows",B.Mac="Mac",B}(m||{});const M={name:"gfn"};var D=function(B){return B.Development="dev",B.Staging="stage",B.Preview="preview",B.Production="prod",B}(D||{}),U=function(B){return B[B.UnKnown=0]="UnKnown",B[B.ServerError=1]="ServerError",B[B.LoggedOut=2]="LoggedOut",B[B.UnEntitled=3]="UnEntitled",B[B.Entitled=4]="Entitled",B}(U||{});const V={eComFeatureEnabled:!1,membershipStatus:U.UnKnown,subscription:null,product:null,affiliateStatus:null,unentitledUserData:null};var T=function(B){return B.SettingsMembershipPanel="SETTINGS_MEMBERSHIP_PANEL",B.EntitlementErrorComponent="ENTITLEMENT_ERROR_COMPONENT",B.LoadingComponent="LOADING_COMPONENT",B.ToolbarComponent="TOOLBAR_COMPONENT",B.MembershipUpdateProgressEcomUIState="MEMBERSHIP_UPDATE_PROGRESS_ECOM_UI_STATE",B.MembershipNotUpdatedEcomUIState="MEMBERSHIP_NOT_UPDATED_ECOM_UI_STATE",B.SettingsStreamingProfilePanel="SETTINGS_STREAMING_PROFILE_PANEL",B.SettingsInGameGraphicsPanel="SETTINGS_IN_GAME_GRAPHICS_SETTINGS_PANEL",B.CheckoutUpdateProgressEcomUIState="CHECKOUT_UPDATE_PROGRESS_ECOM_UI_STATE",B.CheckoutNotUpdatedEcomUIState="CHECKOUT_NOT_UPDATED_ECOM_UI_STATE",B.StreamingError="STREAMING_ERROR",B.MembershipTimeNotUpdatedEcomUIState="MEMBERSHIP_TIME_NOT_UPDATED_ECOM_UI_STATE",B.TimeCappedSessionLimitReachedComponent="TIME_CAPPED_SESSION_LIMIT_REACHED_COMPONENT",B.ViewOrAddPlaytimeBannerComponent="TIME_CAPPED_VIEW_ADD_PLAYTIME_BANNER",B.GameLaunchUnplayableErrorDialog="GAME_LAUNCH_UNPLAYABLE_ERROR_DIALOG",B.GameTileComponent="GAME_TILE_COMPONENT",B.GameDetailComponent="GAME_DETAIL_COMPONENT",B.BuyProtectionDialog="BUY_PROTECTION_DIALOG",B}(T||{}),N=function(B){return B.GameTileComponent="GAME_TILE_COMPONENT",B.GameDetailComponent="GAME_DETAIL_COMPONENT",B}(N||{}),L=function(B){return B[B.InitialState=0]="InitialState",B[B.MembershipUpdateProgress=1]="MembershipUpdateProgress",B[B.MembershipRefreshError=2]="MembershipRefreshError",B[B.MembershipNotUpdated=3]="MembershipNotUpdated",B[B.ExitedToLogin=4]="ExitedToLogin",B[B.CheckoutUpdateProgress=5]="CheckoutUpdateProgress",B[B.CheckoutRefreshError=6]="CheckoutRefreshError",B[B.CheckoutNotUpdated=7]="CheckoutNotUpdated",B[B.MembershipUpdatetimeProgress=8]="MembershipUpdatetimeProgress",B[B.MembershipTimeNotUpdated=9]="MembershipTimeNotUpdated",B[B.AddDayPassMembershipProgress=10]="AddDayPassMembershipProgress",B}(L||{}),E=function(B){return B[B.BridgeState=0]="BridgeState",B[B.Join=1]="Join",B[B.MaxSessionLengthExceeded=2]="MaxSessionLengthExceeded",B[B.QueueLimitExceeded=3]="QueueLimitExceeded",B[B.GaaSFree1HourExceeded=4]="GaaSFree1HourExceeded",B[B.GaaSUnsupportedFreeTitle=5]="GaaSUnsupportedFreeTitle",B[B.GaaSFreeSampleAlreadyUsed=6]="GaaSFreeSampleAlreadyUsed",B[B.GaaSFreeUserCanUpgrade=7]="GaaSFreeUserCanUpgrade",B}(E||{});const g=6e4,R=6e4},58202:(Bt,z,s)=>{"use strict";s.d(z,{LE:()=>d.LE,OO:()=>d.OO,Pq:()=>d.Pq,Tq:()=>d.Tq,Y1:()=>d.Y1,Z9:()=>d.Z9,nC:()=>d.nC,qQ:()=>d.qQ,yJ:()=>l.y}),s(44781);var l=s(74497),d=s(71962)},74497:(Bt,z,s)=>{"use strict";s.d(z,{y:()=>$e});var n=s(85735),l=s(26513),d=s(80583),v=s(43848),S=s(27731),y=s(3496),f=s(31315),O=s(15652),P=s(12532),_=s(8619),i=s(75707),r=s(65706),a=s(72147),c=s(91384),m=s(83915),M=s(10174),D=s(98651),I=s(14714),U=s(55833),V=s(43615),T=s(14749),N=s(34593),L=s(53461),E=s(26875),R=s(99469),B=s(71962),X=s(18433),H=s(18568),J=s(89284),re=s(84937),ie=s(78893),ve=s(36206),ue=s(56785),se=s(43117),Z=s(20038),Se=s(20924),Ce=s(81834),Be=s(58527),Xe=s(43897),He=s(78812),Me=s(80838),Q=s(26537),A=s(14354),me=s(40996),ne=s(55512),G=s(45903),W=s(61958),$=s(88903),le=s(72945);function Pe(Ze,Qe){return Ze.isLimitedStateAlert===Qe.isLimitedStateAlert&&Ze.isLowStateAlert===Qe.isLowStateAlert}const Fe={header:"ecommerce.membershipUpdateProgressDialog.title",description:"ecommerce.membershipUpdateProgressDialog.compactDialogDescription",tvDescription:"ecommerce.membershipUpdateProgressDialog.compactDialogTvDescription",primaryButton:{text:"common.continue",accentColor:!0},secondaryButton:{text:"common.close"}},At={header:"ecommerce.membershipNotUpdatedErrorDialog.title",description:"ecommerce.membershipNotUpdatedErrorDialog.description",primaryButton:{text:"common.close"}},Le={header:"ecommerce.playtimeAddProgressDialog.title",description:"ecommerce.membershipUpdateProgressDialog.compactDialogDescription",tvDescription:"ecommerce.membershipUpdateProgressDialog.compactDialogTvDescription",primaryButton:{text:"common.continue",accentColor:!0},secondaryButton:{text:"common.close"}},Et={header:"ecommerce.playtimeNotUpdatedDialog.title",description:"ecommerce.playtimeNotUpdatedDialog.description",primaryButton:{text:"common.close"}};let $e=(()=>{class Ze{get preferredDialogType(){return this.offDeviceLinkService.enabled?this.tvMode?ue.QO.ThreeQuarterSheet:ue.QO.BottomSheet:void 0}constructor(Ve,nt,Ot,at,It,We,xe,lt,ft,ht,Xt,Ht,Je,tt,rt,et,St,Gt,yt,Wt,ke,be,Ae){this.localeService=Ve,this.nesEntitlementService=nt,this.systemInfoService=Ot,this.telemetryService=at,this.gridService=It,this.telemetryUtilService=We,this.dialog=xe,this.router=lt,this.bridgeService=ft,this.gfnSdkService=ht,this.idmService=Xt,this.offDeviceLinkService=Ht,this.refreshUiService=Je,this.remoteConfigService=tt,this.appConfig=rt,this.focusManager=et,this.genericDialog=St,this.redirectService=Gt,this.refeshUiService=yt,this.bannerNotificationService=Wt,this.sharedStorageService=ke,this.platform$=new n.m(1),this.userMembership$=new l.t(B.Dd),this.userMembership=Object.assign({},B.Dd),this.isManualLogin=null,this.autoRefreshInterval=432e5,this.refreshEntitlement$=null,this.subscriptionProcessed$=new d.B7,this.userEntitlementSubscription=null,this.jarvisIdpId="",this.lastEntitlement=null,this.minimumNonZeroProgressValue=.5,this.maximumNon100ProgressValue=99.5,this.isClientInitiatedUpgrade$=new l.t(!1),this.initiateLaunchOnUpgradeSuccess$=new d.B7,this.logger=be.getLogger("EcommerceService"),this.tvMode=!!rt?.featureEnablement?.tvMode,this.detectPlatform(),this.redirectUrl=rt.redirect.serverUrl,this.redirectEnv=rt.redirect.environment,this.clientVersion=(0,E.get)(rt,"build.version"),this.canClientHardUpsell=rt.upsellPresentation.canHardUpsell,this.redirectEnvMap=new Map,this.jarvisIdpId=rt.starfleet.jarvisIdpId,this.intervalEventTriggered$=new n.m(1),this.refreshSubscriptionAfterExpiry=rt.client?.clientSubRefreshAfterExpiryDelayMS,this.initTimerEvents().subscribe(),this.buildRedirectionEnvMap(),this.onUpgradeClick=Ae.guard(ue.HK.Link,this.onUpgradeClick.bind(this)),this.onAddDaysClick=Ae.guard(ue.HK.Link,this.onAddDaysClick.bind(this)),this.onShowManageMembershipPage=Ae.guard(ue.HK.Link,this.onShowManageMembershipPage.bind(this)),this.onAddPlaytimeClick=Ae.guard(ue.HK.Link,this.onAddPlaytimeClick.bind(this)),this.onViewTimeClick=Ae.guard(ue.HK.Link,this.onViewTimeClick.bind(this))}initialize(){this.checkUserMembershipStatus(),this.initPushNotifications(),R.zk.isAndroidPlatform()&&this.userMembership$.asObservable().pipe((0,_.p)(Ve=>!!Ve?.subscription?.productSku),(0,i.ZZ)(Ve=>this.bridgeService.executeCommand(Se.Ts.Common.Subscriptioninfo.InitializeSubscriptionProductSku,{value:Ve.subscription.productSku})),(0,r.s)(1)).subscribe(),this.remoteConfigService.remoteConfigFetched$.subscribe(Ve=>{Ve.config?.upsellPresentation&&(!0===Ve.config.upsellPresentation.canHardUpsell||!1===Ve.config.upsellPresentation.canHardUpsell)&&(this.canClientHardUpsell=Ve.config.upsellPresentation.canHardUpsell)}),this.nesEntitlementService.subscriptionNetworkFetchedNoUpdate.pipe((0,r.s)(1),(0,i.ZZ)(Ve=>(Ve&&(this.userMembership.isCached=!1),this.checkEntitlement(!0)))).subscribe(),this.checkPlaytimeAndAddBanners()}get closeResult(){return[this.isEcomPlanChanged,this.currentUIState,this.isPlaytimeAdded,this.isDayPassAdded]}checkPlaytimeAndAddBanners(){this.getUserMembership().pipe((0,a.n)(Ve=>this.isDayPassSubscription||this.isTimeCappedSubscription?this.onTimeRemainingAlertForBanner.pipe((0,a.n)(nt=>{if(nt.isLowStateAlert){if(this.isDayPassSubscription&&!this.bannerNotificationService.hasNotificationInQueue(J.$94.DayPassNearingExpiry))return this.canShowTimeAlertBanner(Ve,!0,!1).pipe((0,r.s)(1),(0,c.M)(Ot=>{if(Ot){this.logger.info("Showing day pass nearing expiry banner");const at=Ve?.product?.shortDescription,It=this.canHardUpsell()?J.Pqy:J.nCs;It.messageStr.interpolates={currentSKUShortName:at},It.onSecondaryButtonClick=()=>this.persistExpiryPromptState(J.$94.DayPassNearingExpiry),It.onPrimaryButtonClick=We=>{this.canHardUpsell()&&this.onAddDaysClick(We)},this.bannerNotificationService.addNotificationToQueue(It)}}));if(this.isTimeCappedSubscription&&!this.bannerNotificationService.hasNotificationInQueue(J.$94.TimeCappedLowState))return this.bannerNotificationService.hasNotificationInQueue(J.$94.TimeCappedLimitedState)&&this.bannerNotificationService.removeNotificationFromQueue(J.$94.TimeCappedLimitedState),this.canShowTimeAlertBanner(Ve,!1,!1).pipe((0,r.s)(1),(0,c.M)(Ot=>{if(Ot){const at=this.canHardUpsell()?B.J0:B.b5;at.onSecondaryButtonClick=()=>this.persistExpiryPromptState(J.$94.TimeCappedLowState),at.onPrimaryButtonClick=It=>{this.canHardUpsell()&&this.onAddPlaytimeClick(It)},this.bannerNotificationService.addNotificationToQueue(at)}}))}else if(nt.isLimitedStateAlert){if(this.isLimitedState&&!this.bannerNotificationService.hasNotificationInQueue(J.$94.TimeCappedLimitedState))return this.bannerNotificationService.hasNotificationInQueue(J.$94.TimeCappedLowState)&&this.bannerNotificationService.removeNotificationFromQueue(J.$94.TimeCappedLowState),this.canShowTimeAlertBanner(Ve,!1,!0).pipe((0,r.s)(1),(0,c.M)(Ot=>{if(Ot){const at=this.canHardUpsell()?B.r3:B.Xj;at.onSecondaryButtonClick=()=>this.persistExpiryPromptState(J.$94.TimeCappedLimitedState),at.onPrimaryButtonClick=It=>this.canHardUpsell()?this.onAddPlaytimeClick(It):void 0,this.bannerNotificationService.addNotificationToQueue(at)}}))}else this.removeTimeAlertBannerNotifications();return(0,v.of)(null)})):(this.removeTimeAlertBannerNotifications(),(0,v.of)(null)))).subscribe(),this.getDayPassExpiryDetails().subscribe(Ve=>{if(Ve?.show){const nt=Ve.oldSKUShortName,Ot=this.canHardUpsell()?J.Tq5:J.Z9m;Ot.messageStr.interpolates={prevSKUShortName:nt},Ot.onPrimaryButtonClick=at=>{this.canHardUpsell()&&this.onUpgradeClick(at)},this.bannerNotificationService.addNotificationToQueue(Ot)}else this.bannerNotificationService.hasNotificationInQueue(J.$94.DayPassExpired)&&this.bannerNotificationService.removeNotificationFromQueue(J.$94.DayPassExpired)}),this.idmService.accountStatusChanged.pipe((0,c.M)(Ve=>{Ve.isAuthenticated||this.removeTimeAlertBannerNotifications()})).subscribe()}onUpgradeClick(Ve){this.logger.trace(Ce.N_.UserGesture,"Clicked on upgrade membership option"),this.openUpgradeMembershipPageAndProgressDialog(X.MCB.ScreenDayPassExpiryBanner,B.U3.CheckoutUpdateProgressEcomUIState)}onAddDaysClick(Ve){this.logger.trace(Ce.N_.UserGesture,"Clicked on Add Days option"),this.openMembershipPageAndDialog(()=>{this.openDayPassCheckoutPage(X.MCB.ScreenLowPlaytimeDayPassBanner,B.U3.CheckoutUpdateProgressEcomUIState)},X.MCB.ScreenLowPlaytimeDayPassBanner,B.U3.CheckoutUpdateProgressEcomUIState,B.qQ.AddDayPassMembershipProgress)}onShowManageMembershipPage(Ve){this.logger.trace(Ce.N_.UserGesture,"Clicked on manage membership option"),this.openAccountManagementPage(X.MCB.ScreenSettings,B.U3.CheckoutUpdateProgressEcomUIState)}onAddPlaytimeClick(Ve){this.logger.trace(Ce.N_.UserGesture,"Clicked on Add Playtime option"),this.openAddPlaytimePageAndDialog(X.MCB.ScreenAddPlaytimeBanner,B.U3.ViewOrAddPlaytimeBannerComponent)}onViewTimeClick(Ve){this.logger.trace(Ce.N_.UserGesture,"Clicked on View playtime Summary option"),this.openViewPlaytimePage(X.MCB.ScreenAddPlaytimeBanner,B.U3.ViewOrAddPlaytimeBannerComponent)}persistExpiryPromptState(Ve){this.getUserMembership().pipe((0,r.s)(1),(0,i.ZZ)(nt=>{let Ot,at;return Ve===J.$94.DayPassNearingExpiry?(at=nt.subscription.expirationDateTime,Ot=J.LE3):(at=nt.subscription.currentSpanEndDateTime,Ot=B.VD),this.sharedStorageService.writeBlock(Ot,{isPromptDismissed:!0,expirationDateTime:at})})).subscribe(()=>this.logger.info("persist Day Pass Nearing Expiry Prompt State is success"),nt=>this.logger.error("Error while writing to shared storage for Day Pass Nearing Expiry",nt))}canShowTimeAlertBanner(Ve,nt,Ot){let at,It;return nt?(It=Ve.subscription.expirationDateTime,at=J.LE3):(It=Ve.subscription.currentSpanEndDateTime,at=Ot?B.VD:B.p1),this.sharedStorageService.readBlock(at).pipe((0,m.T)(We=>0===Object.keys(We)?.length||(!We.isPromptDismissed||We.expirationDateTime!==It)&&(this.removeTimeAlertBannerPreference(at),!0)))}removeTimeAlertBannerPreference(Ve){this.sharedStorageService.removeBlock(Ve).pipe((0,r.s)(1)).subscribe()}removeTimeAlertBannerNotifications(){this.bannerNotificationService.hasNotificationInQueue(J.$94.DayPassNearingExpiry)&&this.bannerNotificationService.removeNotificationFromQueue(J.$94.DayPassNearingExpiry),this.isDayPassSubscription&&this.bannerNotificationService.hasNotificationInQueue(J.$94.DayPassExpired)&&this.bannerNotificationService.removeNotificationFromQueue(J.$94.DayPassExpired),this.bannerNotificationService.hasNotificationInQueue(J.$94.TimeCappedLimitedState)&&this.bannerNotificationService.removeNotificationFromQueue(J.$94.TimeCappedLimitedState),this.bannerNotificationService.hasNotificationInQueue(J.$94.TimeCappedLowState)&&this.bannerNotificationService.removeNotificationFromQueue(J.$94.TimeCappedLowState)}checkEntitlement(Ve){if(!0===this.appConfig.featureEnablement.UASAutoEntitle&&this.userMembership.membershipStatus===B.OO.UnEntitled){if(!this.userMembership.isCached)return this.logger.info("uas auto entitlement enabled, logging out unentitled user"),this.idmService.logout(null,null,null,!0).pipe((0,M.u)(Ve));this.logger.info("unentitled cached user, will not log out")}return(0,v.of)(Ve)}buildRedirectionEnvMap(){this.redirectEnvMap.set(B.Q8.Development,"d"),this.redirectEnvMap.set(B.Q8.Staging,"s"),this.redirectEnvMap.set(B.Q8.Preview,"w"),this.redirectEnvMap.set(B.Q8.Production,"p")}listenSubscriptionRefreshNotification(){return this.refreshUiService.subscriptionRefresh$.pipe((0,i.ZZ)(Ve=>(this.logger.info("Refresh Subscription",Ve?.source),this.checkUsersEntitlement())))}initPushNotifications(){this.listenSubscriptionRefreshNotification().subscribe()}checkUserMembershipStatus(){this.idmService.accountStatusChanged.pipe((0,D.r)(this.gridService.vpcId$.pipe((0,I.W)(()=>(0,v.of)(null)))),(0,_.p)(Ve=>Ve.length>0),(0,i.ZZ)(Ve=>(Ve.length&&(this.user=(0,E.last)(Ve)),this.logger.info("user account change received authentication status: ",this.user.isAuthenticated),this.userMembership=Object.assign({},B.Dd),this.user.isAuthenticated||(this.userMembership.membershipStatus=B.OO.LoggedOut),this.userMembership.eComFeatureEnabled=!0,this.checkUsersEntitlement())),(0,I.W)(Ve=>(this.logger.error("Error in get userinfo and affiliate status: ",Ve),(0,v.of)(null)))).subscribe()}checkUsersEntitlement(){return this.userMembership.membershipStatus===B.OO.LoggedOut?this.getClientStreamingQuality().pipe((0,i.ZZ)(Ve=>(this.logger.info("Got ClientStreamingQuality: ",Ve),this.userMembership.unentitledUserData=Ve,this.userMembership$.next({...this.userMembership}),(0,v.of)(null)))):(this.userEntitlementSubscription&&(this.userEntitlementSubscription.unsubscribe(),this.userEntitlementSubscription=null,this.subscriptionProcessed$&&(this.subscriptionProcessed$.complete(),this.subscriptionProcessed$=null,this.subscriptionProcessed$=new d.B7)),this.userEntitlementSubscription=this.nesEntitlementService.getUserEntitlement(this.user).pipe((0,U.t)(1),(0,i.ZZ)(Ve=>{if(this.userMembership.membershipStatus===B.OO.LoggedOut)return this.logger.info("user subscription revolved for last user"),S.t;const{product:nt,...Ot}=Ve;return this.logger.info("user subscription: ",Ot),this.userMembership.subscription=Ve.subscription,this.userMembership.product=Ve.product,this.userMembership.isCached=Ve.isCached,this.userMembership.lastFetchDateTime=new Date,(0,E.isNil)(Ve.subscription)?(this.userMembership.membershipStatus=B.OO.UnEntitled,this.getClientStreamingQuality().pipe((0,i.ZZ)(at=>(this.logger.info("Got ClientResolutions: ",at),this.userMembership.unentitledUserData=at,this.userMembership$.next({...this.userMembership}),this.initTimedEntitlementRefresh(),this.subscriptionProcessed$.next(Ve),(0,v.of)(Ve))))):(this.userMembership.membershipStatus=B.OO.Entitled,this.userMembership$.next({...this.userMembership}),this.initTimedEntitlementRefresh(),this.subscriptionProcessed$.next(Ve),(0,v.of)(Ve))}),(0,I.W)(Ve=>(this.logger.error("error in fetching user entitlement: ",Ve),this.userMembership.membershipStatus=B.OO.ServerError,this.userMembership$.next({...this.userMembership}),this.initTimedEntitlementRefresh(),this.subscriptionProcessed$.next(null),(0,v.of)(null))),(0,i.ZZ)(Ve=>this.checkEntitlement(Ve))).subscribe(()=>{this.refreshUiService.setContentExpiryInfo(se.sD.Subscription),this.logger.info("User membership fetched")},Ve=>{this.logger.error("Error while fetched user membership. "+Ve)}),this.subscriptionProcessed$.asObservable())}getClientStreamingQuality(){return this.nesEntitlementService.getClientStreamingQuality().pipe((0,U.t)(1),(0,I.W)(Ve=>(this.logger.error("error in fetching client resolutions: ",Ve),(0,v.of)(null))))}initTimedEntitlementRefresh(){this.refreshEntitlement$&&(this.refreshEntitlement$.unsubscribe(),this.refreshEntitlement$=null),this.refreshEntitlement$=(0,y.O)(this.autoRefreshInterval).pipe((0,i.ZZ)(Ve=>(this.logger.info("auto refreshing entitlement"),this.checkUsersEntitlement())),(0,V.j)(()=>{this.refreshEntitlement$=null})).subscribe()}onUserSkuChange(){return this.getUserMembership().pipe((0,T.J)(),(0,m.T)(([Ve,nt])=>{const Ot=Ve?.subscription,at=nt?.subscription,It=Ot?.productSku,We=at?.productSku;return nt.eComFeatureEnabled&&nt.membershipStatus===B.OO.Entitled&&void 0!==It&&void 0!==We?{prevMembership:Ve,newMembership:nt,hasSkuChanged:It!==We}:{prevMembership:Ve,newMembership:nt,hasSkuChanged:!1}}),(0,_.p)(Ve=>Ve.hasSkuChanged),(0,N.Z)({prevMembership:null,newMembership:null,hasSkuChanged:!1}))}getUserMembership(Ve=!1){return Ve?this.checkUsersEntitlement().pipe((0,i.ZZ)(()=>this.userMembership$.asObservable())):this.userMembership$.asObservable()}canHardUpsell(){return this.canClientHardUpsell}refreshUsersEntitlement(){this.checkUsersEntitlement().subscribe()}openAccountManagementPage(Ve,nt,Ot){this.openBrowserWindow(Ve,ve.r7.GfnAccountManagement,nt,ve.lp[ve.r7.GfnAccountManagement],Ot)}openJoinMembershipPage(Ve,nt){this.openBrowserWindow(Ve,ve.r7.GfnPcMembershipJoin,nt,ve.lp[ve.r7.GfnPcMembershipJoin])}openUpgradeMemberShipPage(Ve,nt,Ot){this.openBrowserWindow(Ve,ve.r7.GfnPcMembershipUpgrade,nt,ve.lp[ve.r7.GfnPcMembershipUpgrade],Ot)}openDayPassMembershipPage(Ve,nt){this.openBrowserWindow(Ve,ve.r7.GfnPcMembershipDayPass,nt,ve.lp[ve.r7.GfnPcMembershipDayPass])}openDayPassCheckoutPage(Ve,nt){this.openBrowserWindow(Ve,ve.r7.GfnPcCheckoutDayPass,nt,ve.lp[ve.r7.GfnPcCheckoutDayPass])}getUpgradeMembershipUrl(){return this.prepareProductMatrixURL(ve.r7.GfnPcMembershipUpgrade)}getRedirectUrlWithIdpId$(Ve){return this.platform$.pipe((0,r.s)(1),(0,a.n)(nt=>this.redirectService.getRedirectUrl(Ve,{idpId:this.user.idpId,Plt:nt})))}openAccountProfilePage(Ve,nt){this.canHardUpsell()?this.openBrowserWindow(Ve,ve.r7.GfnAccountManagementSSO,nt,ve.lp[ve.r7.GfnAccountManagementSSO]):this.openAccountProfileDialogEcomRestricted()}openAccountProfileDialogEcomRestricted(){const nt=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:void 0},bodyText:{text:"ecommerce.accountManagementDialog.description"},primaryButton:{text:"common.close"}}},{preferredDialogType:ue.QO.ThreeQuarterSheet});nt.primaryButtonClick.pipe((0,c.M)(()=>nt.close())).subscribe()}openVisitSupportDialog(){const nt=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:void 0},bodyText:{text:"ecommerce.visitSupportDialog.description"},primaryButton:{text:"common.close"},threeQuarterSheetData:{backgroundImageUrl:"shared/assets/img/DefaultStreamerBackgroundArt.jpg"}}},{preferredDialogType:ue.QO.ThreeQuarterSheet});nt.primaryButtonClick.pipe((0,c.M)(()=>nt.close())).subscribe()}openAddPlaytimePage(Ve,nt,Ot){this.openBrowserWindow(Ve,ve.r7.GfnPcAddPlaytime,nt,ve.lp[ve.r7.GfnPcAddPlaytime],Ot)}openViewPlaytimePage(Ve,nt,Ot){this.openBrowserWindow(Ve,ve.r7.GfnPcViewPlaytime,nt,ve.lp[ve.r7.GfnPcViewPlaytime],Ot)}openAddPlaytimePageAndDialog(Ve,nt,Ot){this.openMembershipPageAndDialog(()=>this.openAddPlaytimePage(Ve,nt,Ot),Ve,nt,B.qQ.MembershipUpdatetimeProgress,Ot)}openUpgradeMembershipPageAndProgressDialog(Ve,nt,Ot){this.openMembershipPageAndDialog(()=>this.openUpgradeMemberShipPage(Ve,nt,Ot),Ve,nt,B.qQ.MembershipUpdateProgress,Ot)}openJoinNowDialog(Ve,nt=B.Y1.Join,Ot,at=!1){const It=this.telemetryService.getScreen();return Ve=`${Ve}/${X.MCB.ScreenJoinGfnDialog}`,nt===B.Y1.MaxSessionLengthExceeded&&this.gfnSdkService.isThisAGFNSDKSession()&&(nt=this.featureUpsellAvailable(H.q3.HIGHER_SESSION_LENGTH)?B.Y1.GaaSFreeUserCanUpgrade:B.Y1.GaaSFree1HourExceeded),this.focusManager.restoreFocusAfterClosed(()=>this.dialog.open(re.O,{autoFocus:!1,disableClose:!0,panelClass:"nv-overlay-panel",data:{isStreamerApp:(0,ie.tE)(this.router.url),useCase:nt,gameLaunchScreen:It,ecomUIState:(0,E.isNil)(Ot)?B.qQ.InitialState:Ot,getUserMembership$:this.getUserMembership(),isCompactDialog:at,buttonClickCallback:We=>{We===B.qQ.InitialState&&(nt===B.Y1.MaxSessionLengthExceeded||nt===B.Y1.QueueLimitExceeded?this.openUpgradeMemberShipPage(It,Ve):this.openJoinMembershipPage(It,Ve))}}}))}openBrowserWindow(Ve,nt,Ot,at,It){this.sendClickTelemetryForBrowserWindow(Ve,nt,Ot,It);const We=Date.now();this.prepareProductMatrixURL(nt).subscribe(xe=>{this.logger.info("opening browser with url: ",xe),this.offDeviceLinkService.open(xe,{shortUrl:at}),this.sendManageSubscriptionTelemetry(!0,Ve,We)},xe=>{this.logger.error("Failed to open web page "+nt+" with error: ",xe.message),this.sendManageSubscriptionTelemetry(!1,Ve,We,xe.message)})}openMembershipPageAndDialog(Ve,nt,Ot,at,It){if(this.openProgressDialogSubscription$&&this.openProgressDialogSubscription$.unsubscribe(),this.offDeviceLinkService.enabled){let We=ve.r7.GfnPcMembershipUpgrade;at===B.qQ.MembershipUpdatetimeProgress?We=ve.r7.GfnPcAddPlaytime:at===B.qQ.AddDayPassMembershipProgress&&(We=ve.r7.GfnPcCheckoutDayPass),this.sendClickTelemetryForBrowserWindow(nt,We,Ot,It),this.openProgressDialogSubscription$=this.openProgressDialog(at,Ot,It).pipe((0,r.s)(1)).subscribe()}else Ve?.(),setTimeout(()=>{this.openProgressDialogSubscription$=this.openProgressDialog(at,Ot,It).pipe((0,r.s)(1)).subscribe()},B.xY)}featureEntitled(Ve){let nt=this.userMembership$.value?.subscription?.features?.features?.find(Ot=>Ot.key===Ve)?.textValue;return null!=nt&&(nt=JSON.parse(nt),Array.isArray(nt)?nt.length>0:nt)}featureSetValueEntitled(Ve){return this.userMembership$.value?.subscription?.features?.features?.find(Ot=>Ot.key===Ve)?.setValue?.length>0}featureArrayItemEntitled(Ve,nt){const Ot=this.getFeatureMetadata(Ve);if(Ot?.textValue){const at=JSON.parse(Ot.textValue);return Array.isArray(at)?at.some(It=>It.value===nt.toString()&&It.isEntitled):at}return!!Ot?.setValue&&Ot.setValue.includes(nt.toString())}featureArrayUpsellAvailable(Ve){const nt=[];return Ve?.forEach(Ot=>{const at=this.featureUpsellAvailable(Ot);nt.push(at)}),nt}featureUpsellAvailable(Ve){return this.userMembership$.value.subscription?.upsells?.some(nt=>nt.key===Ve&&!0===nt.booleanValue)}isFeatureAvailableToUser(Ve,nt){return this.featureEntitled(Ve)||this.featureUpsellAvailable(nt)}getFeatureMetadata(Ve){return this.userMembership$.value?.subscription?.features?.features?.find(nt=>nt.key===H.N1[Ve])}getStreamingModeDetails(Ve){return this.getStreamingProfileFromStreamingQuality(this.getStreamingQuality(Ve))}getMaxBitrate(){return this.getStreamingQuality()?.maxBitRate}getStreamingQuality(Ve){const nt=Ve?Z.eW[Ve]:H.IT.BALANCED;return(this.userMembership$.value.membershipStatus===B.OO.Entitled?this.userMembership$.value.subscription?.streamingQualities:this.userMembership$.value.unentitledUserData?.streamingQualities)?.find(It=>It.clientStreamingQualityMode===nt)}openProgressDialog(Ve=B.qQ.MembershipUpdateProgress,nt,Ot){return this.currentUIState=Ve,Ve===B.qQ.MembershipUpdatetimeProgress?this.openPlaytimeUpdateProgressDialog(nt,Ot):Ve===B.qQ.AddDayPassMembershipProgress?this.openDayPassCheckoutProgressDialog(nt,Ot):this.openMembershipUpgradeProgressDialog(nt,Ot)}sendClickTelemetryForBrowserWindow(Ve,nt,Ot,at){switch(nt){case ve.r7.GfnAccountManagement:this.telemetryUtilService.sendClickEvent(X.EBD.ManageMembership,at??"",`${Ve}/${Ot}`,!1);break;case ve.r7.GfnPcMembershipJoin:this.telemetryUtilService.sendClickEvent(X.EBD.JoinGfn,"",`${Ve}/${Ot}`,!1);break;case ve.r7.GfnPcMembershipUpgrade:this.telemetryUtilService.sendClickEvent(X.EBD.Upgrade,at??"",`${Ve}/${Ot}`,!1);break;case ve.r7.GfnAccountManagementSSO:this.telemetryUtilService.sendClickEvent(X.EBD.AccountManagementSso,"",`${Ve}/${Ot}`,!1);break;case ve.r7.GfnPcAddPlaytime:this.telemetryUtilService.sendClickEvent(X.EBD.AddPlaytime,at??"",`${Ve}/${Ot}`,!1);break;case ve.r7.GfnPcViewPlaytime:this.telemetryUtilService.sendClickEvent(X.EBD.ViewPlaytime,at??"",`${Ve}/${Ot}`,!1);break;case ve.r7.GfnPcMembershipDayPass:this.telemetryUtilService.sendClickEvent(X.EBD.GetDayPass,"",`${Ve}/${Ot}`,!1);break;case ve.r7.GfnPcCheckoutDayPass:this.telemetryUtilService.sendClickEvent(X.EBD.AddDayPass,"",`${Ve}/${Ot}`,!1)}}prepareProductMatrixURL(Ve){const nt=this.localeService.localeChanged.pipe((0,r.s)(1));return(0,f.zV)([nt,this.platform$,this.idmService.cachedAffiliateStatus]).pipe((0,m.T)(([Ot,at,It])=>{const We={cNm:B.EI.name,env:this.redirectEnvMap.get(this.redirectEnv),Plt:at,gcV:this.clientVersion,idpId:this.user.idpId,prv:It.data?.loginProvider};this.user.idpId===this.jarvisIdpId&&(We.loginHint=this.user.email),this.logger.info("JSO",We);const xe=new URL(this.redirectUrl+Ot);return xe.searchParams.append("page",Ve),xe.searchParams.append("jso",btoa(JSON.stringify(We))),xe.toString()}))}detectPlatform(){R.zk.isCefPlatform()?this.systemInfoService.getSystemInfo([R.Lu.Platform]).subscribe(Ve=>{this.platform$.next(Ve.Platform===B.TO.Mac?ve.Gl.Mac:ve.Gl.PC)}):this.platform$.next(ve.Gl.Browser)}sendManageSubscriptionTelemetry(Ve,nt,Ot,at){const It=new X.BAK({clientType:this.telemetryUtilService.getClientType(),currentScreen:nt,userAction:X.ay7.ManageECommerceSubscription,status:Ve?X.fbu.Success:X.fbu.ECommercePaywallLaunchError,errorDetails:at||Ve.toString(),totalMs:0,errorUri:"",serverErrorCode:""});this.telemetryService.push(It,Ot)}getStreamingProfileFromStreamingQuality(Ve){return Ve?{width:Ve.resolution.widthInPixels,height:Ve.resolution.heightInPixels,fps:Ve.resolution.framesPerSecond,maxBitrateAuto:!Ve.maxBitRate.bitrateOption,maxBitrate:Ve.maxBitRate.bitrateValue,drc:this.getStreamingQualityFeatureValue(Ve,H.tk.PROFILE_ADJUST_FOR_NETWORK),hdrStreamingMode:this.getStreamingQualityFeatureValue(Ve,H.tk.PROFILE_HDR_VERSION),reflex:this.getStreamingQualityFeatureValue(Ve,H.tk.PROFILE_REFLEX),cloudGsync:this.getStreamingQualityFeatureValue(Ve,H.tk.PROFILE_CLOUD_GSYNC),l4sEnabled:this.getStreamingQualityFeatureValue(Ve,H.tk.PROFILE_L4S),vSync:this.getStreamingQualityFeatureValue(Ve,H.tk.PROFILE_VSYNC),bitDepth:this.getStreamingQualityFeatureValue(Ve,H.tk.PROFILE_BIT_DEPTH)}:null}getStreamingQualityFeatureValue(Ve,nt){const Ot=Ve?.features?.find(at=>at.key===nt)?.textValue;try{return JSON.parse(Ot)}catch{return Ot}}openMembershipUpgradeProgressDialog(Ve,nt){return this.lastEntitlement=null,this.isEcomPlanChanged=!1,this.openDialog(ve.r7.GfnPcMembershipUpgrade,Fe,Ve,"membership upgrade progress",!0,nt)}openDayPassCheckoutProgressDialog(Ve,nt){return this.lastEntitlement=null,this.isDayPassAdded=!1,this.openDialog(ve.r7.GfnPcCheckoutDayPass,Fe,Ve,"Add Day Pass membership upgrade",!1,nt)}openPlaytimeUpdateProgressDialog(Ve,nt){return this.lastEntitlement=null,this.isPlaytimeAdded=!1,this.openDialog(ve.r7.GfnPcAddPlaytime,Le,Ve,"add playtime progress",!1,nt)}openDialog(Ve,nt,Ot,at,It=!0,We){const xe=Object.values(B.P7).includes(Ot);let lt={headerText:{text:this.offDeviceLinkService.enabled?ve.lp[Ve]:nt.header},bodyText:{text:this.offDeviceLinkService.enabled?nt.tvDescription:nt.description},primaryButton:nt.primaryButton,secondaryButton:nt.secondaryButton};return(this.offDeviceLinkService.enabled?this.prepareProductMatrixURL(Ve).pipe((0,m.T)(ht=>{const Xt=this.tvMode?{image:{url:ht,shortcutUrl:ve.lp[Ve]}}:{link:{url:ht,text:""}};return lt={...lt,...Xt},lt})):(0,v.of)(lt)).pipe((0,r.s)(1),(0,i.ZZ)(ht=>{const Xt=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:ht},{preferredDialogType:this.preferredDialogType});return this.initializeEcommerceSub(Xt,xe,We),(0,O.O4)(Xt.primaryButtonClick.pipe((0,M.u)(!0)),Xt.afterClosed().pipe((0,M.u)(!1)),Xt.secondaryButtonClick.pipe((0,M.u)(!1))).pipe((0,r.s)(1),(0,i.ZZ)(Ht=>(this.logger.info(`Closing ${at} dialog`),this.getUserMembershipSubscription$&&this.getUserMembershipSubscription$.unsubscribe(),Xt?.close(),Ht?this.checkForMembershipUpgrade(It,xe,We):(0,v.of)(Ht))))}))}openMembershipNotUpgradedErrorDialog(){return this.prepareProductMatrixURL(ve.r7.GfnAccountManagement).pipe((0,m.T)(Ve=>({headerText:{text:At.header},bodyText:{text:At.description,placeholders:this.tvMode?void 0:{membershipStatusUrl:`class="font-body2-link" href="${Ve}"`}},link:{text:this.tvMode?"ecommerce.viewAccount":void 0,url:this.tvMode?Ve:void 0,shortUrl:ve.lp[ve.r7.GfnAccountManagement]},primaryButton:At.primaryButton})),(0,i.ZZ)(Ve=>{const nt=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:Ve},{preferredDialogType:ue.QO.ThreeQuarterSheet});return(0,O.O4)(nt.primaryButtonClick,nt.afterClosed()).pipe((0,r.s)(1),(0,c.M)(()=>{nt.close()}))}))}openMembershipRefreshErrorDialog(Ve=!0){return this.redirectService.getRedirectUrl(ve.r7.GfnServerStatus).pipe((0,m.T)(nt=>({headerText:{text:Ve?At.header:Et.header},bodyText:{text:At.description},link:{text:"common.viewServerStatus",url:nt,shortUrl:ve.lp[ve.r7.GfnAccountManagement]},primaryButton:At.primaryButton})),(0,i.ZZ)(nt=>{const Ot=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:nt},{preferredDialogType:ue.QO.ThreeQuarterSheet});return(0,O.O4)(Ot.primaryButtonClick,Ot.afterClosed()).pipe((0,r.s)(1),(0,c.M)(()=>{Ot.close()}))}))}openPlaytimeUpdateErrorDialog(){return this.prepareProductMatrixURL(ve.r7.GfnAccountManagement).pipe((0,m.T)(Ve=>({headerText:{text:Et.header},bodyText:{text:Et.description,placeholders:this.tvMode?void 0:{accountStatusUrl:`class="font-body2-link" href="${Ve}"`}},link:{text:this.tvMode?"ecommerce.viewAccount":void 0,url:this.tvMode?Ve:void 0,shortUrl:ve.lp[ve.r7.GfnAccountManagement]},primaryButton:Et.primaryButton})),(0,i.ZZ)(Ve=>{const nt=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:Ve},{preferredDialogType:ue.QO.ThreeQuarterSheet});return this.telemetryUtilService.sendPopUpDialogShownEvent(X.duU.Playtime_Not_Added),(0,O.O4)(nt.primaryButtonClick,nt.afterClosed()).pipe((0,r.s)(1),(0,c.M)(()=>{nt.close()}))}))}initializeEcommerceSub(Ve,nt,Ot){this.isClientInitiatedUpgrade$.next(!0),Ve.backToCloseResult=this.closeResult;let at=null,It=!1;this.getUserMembershipSubscription$=this.getUserMembership().subscribe(We=>{const xe=We?.subscription?.productSku,lt=We?.subscription?.remainingTimeInMinutes,ft=We?.subscription?.subType,ht=We?.subscription?.expirationDateTime,Xt=We?.product?.shortDescription;null!==this.lastEntitlement?(this.isEcomPlanChanged=this.isPlanChanged(xe),this.isPlaytimeAdded=this.isPlaytimeChanged(lt),this.isDayPassAdded=this.hasDayPassExpiryDateChanged(ft,ht),(this.isEcomPlanChanged||this.currentUIState===B.qQ.MembershipUpdatetimeProgress&&this.isPlaytimeAdded||this.isDayPassAdded)&&(It=!0,at={membershipShortDescription:Xt,isPlaytimeAdded:this.isPlaytimeAdded,showPlayButton:nt,gameId:Ot},Ve?.close())):this.lastEntitlement={productSku:xe,remainingTimeInMinutes:lt,subType:ft,expirationDateTime:ht}}),Ve.afterClosed().pipe((0,r.s)(1),(0,i.ZZ)(()=>It&&at?this.openMembershipPlaytimeUpdateSuccessDialog(at):P.w)).subscribe()}openMembershipPlaytimeUpdateSuccessDialog(Ve){let nt;Ve.showPlayButton&&Ve.isPlaytimeAdded?nt=B.U_.playtimeUpdateSuccess.primaryButton:Ve.showPlayButton&&!Ve.isPlaytimeAdded?nt=B.U_.membershipUpgradeSuccess.primaryButton:Ve.showPlayButton||(nt=void 0);const at=this.genericDialog.open({panelClass:"dialogPaddingRemove",data:{headerText:{text:Ve.isPlaytimeAdded?B.U_.playtimeUpdateSuccess.header:B.U_.membershipUpgradeSuccess.header},bodyText:{text:Ve.isPlaytimeAdded?B.U_.playtimeUpdateSuccess.description:B.U_.membershipUpgradeSuccess.description},primaryButton:nt,secondaryButton:Ve.isPlaytimeAdded?B.U_.playtimeUpdateSuccess.secondaryButton:B.U_.membershipUpgradeSuccess.secondaryButton,dataCells:[{primaryText:Ve.isPlaytimeAdded?this.remainingPlaytime.time:Ve.membershipShortDescription,secondaryText:Ve.isPlaytimeAdded?B.U_.playtimeUpdateSuccess.cellComparisonDescription:B.U_.membershipUpgradeSuccess.cellComparisonDescription}]}},{preferredDialogType:this.preferredDialogType}),It=at.primaryButtonClick?.pipe((0,r.s)(1),(0,c.M)(()=>{this.logger.info("Primary button (Play) clicked on success dialog"),Ve.showPlayButton&&this.initiateLaunchOnUpgradeSuccess$.next(Ve.gameId),at.close()})),We=at.secondaryButtonClick.pipe((0,r.s)(1),(0,c.M)(()=>{this.logger.info("Secondary button (Close) clicked on success dialog"),at.close()})),xe=at.afterClosed().pipe((0,r.s)(1),(0,c.M)(()=>{this.logger.info("Success dialog closed without button click")}));return(0,O.O4)(It,We,xe).pipe((0,r.s)(1),(0,M.u)(!0),(0,V.j)(()=>{this.isClientInitiatedUpgrade$.next(!1)}))}checkForMembershipUpgrade(Ve=!0,nt=!1,Ot){return this.getUserMembership(!0).pipe((0,r.s)(1),(0,i.ZZ)(at=>{const It=at?.subscription?.productSku,We=at?.subscription?.remainingTimeInMinutes,xe=at?.subscription?.subType,lt=at?.subscription?.expirationDateTime;return this.isEcomPlanChanged=this.isPlanChanged(It),this.isPlaytimeAdded=this.isPlaytimeChanged(We),this.isDayPassAdded=this.hasDayPassExpiryDateChanged(xe,lt),Ve&&!this.isEcomPlanChanged&&!this.isDayPassAdded||!Ve&&!this.isPlaytimeAdded?this.openErrorDialogs(at,Ve):this.openMembershipPlaytimeUpdateSuccessDialog({membershipShortDescription:at?.product?.shortDescription,isPlaytimeAdded:this.isPlaytimeAdded,showPlayButton:nt,gameId:Ot})}))}isPlanChanged(Ve){return this.lastEntitlement.productSku!==Ve}hasDayPassExpiryDateChanged(Ve,nt){return Ve===H.hz.DAY_PASS&&this.lastEntitlement.expirationDateTime!==nt}isPlaytimeChanged(Ve){return this.lastEntitlement.remainingTimeInMinutes<Ve}openErrorDialogs(Ve,nt=!0){return Ve.membershipStatus===B.OO.ServerError||Ve.membershipStatus===B.OO.UnKnown?this.openMembershipRefreshErrorDialog(nt):nt?this.openMembershipNotUpgradedErrorDialog():this.openPlaytimeUpdateErrorDialog()}initTimerEvents(){return this.getUserMembership().pipe((0,T.J)(),(0,m.T)(([Ve,nt])=>{const Ot=Ve?.subscription,at=nt?.subscription,It=Ot?.productSku,We=at?.productSku;let xe,lt;It!==We?this.registerIntervalTimer():(this.isTimeCappedSubscription?(xe=Ot?.currentSpanEndDateTime,lt=at?.currentSpanEndDateTime):Ot?.expirationDateTime&&at?.expirationDateTime?(xe=Ot?.expirationDateTime,lt=at?.expirationDateTime):Ot?.renewalDateTime&&at?.renewalDateTime&&(xe=Ot?.renewalDateTime,lt=at?.renewalDateTime),xe!==lt&&this.registerIntervalTimer())}))}get isLimitedState(){return this.userMembership$.value?.subscription?.currentSubscriptionState?.state===H.zZ.LIMITED}get isLimitedPlayableState(){return this.userMembership$.value?.subscription?.currentSubscriptionState?.state===H.zZ.LIMITED&&this.userMembership$.value?.subscription?.currentSubscriptionState?.isGamePlayAllowed}get isLimitedUnplayableState(){return this.userMembership$.value?.subscription?.currentSubscriptionState?.state===H.zZ.LIMITED&&!this.userMembership$.value?.subscription?.currentSubscriptionState?.isGamePlayAllowed}get isFullState(){return this.userMembership$.value?.subscription?.currentSubscriptionState?.state===H.zZ.FULL&&this.userMembership$.value?.subscription?.remainingTimeInMinutes>this.userMembership$.value?.subscription?.notifications?.notifyUserWhenTimeRemainingInMinutes}get isLowState(){return this.userMembership$.value?.subscription?.currentSubscriptionState?.state===H.zZ.FULL&&this.userMembership$.value?.subscription?.remainingTimeInMinutes<=this.userMembership$.value?.subscription?.notifications?.notifyUserWhenTimeRemainingInMinutes}get totalPlaytime(){return(0,E.isUndefined)(this.userMembership$.value?.subscription?.totalTimeInMinutes)?void 0:(0,J.n96)(this.userMembership$.value.subscription.totalTimeInMinutes)}get remainingPlaytime(){return(0,E.isUndefined)(this.userMembership$.value?.subscription?.remainingTimeInMinutes)?void 0:(0,J.n96)(this.userMembership$.value.subscription.remainingTimeInMinutes)}get rolledOverPlaytime(){return this.userMembership$.value?.subscription?.rolledOverTimeInMinutes?(0,J.n96)(this.userMembership$.value.subscription.rolledOverTimeInMinutes):void 0}get remainingPlaytimePercentage(){if((0,E.isUndefined)(this.userMembership$.value?.subscription?.totalTimeInMinutes)||(0,E.isUndefined)(this.userMembership$.value?.subscription?.remainingTimeInMinutes))return 0;{const Ve=this.userMembership$.value.subscription.remainingTimeInMinutes/this.userMembership$.value.subscription.totalTimeInMinutes*100;return Ve>this.maximumNon100ProgressValue&&Ve<100?this.maximumNon100ProgressValue:Ve<this.minimumNonZeroProgressValue&&Ve>0?this.minimumNonZeroProgressValue:Ve}}get onTimeRemainingAlertForBanner(){return this.intervalEventTriggered$.pipe((0,m.T)(Ve=>this.checkForLowAndLimitedTime(this.userMembership$.value)),(0,L.F)(Pe))}get isTimeCappedSubscription(){return this.userMembership$.value?.subscription?.subType===H.hz.TIME_CAPPED}get isDayPassSubscription(){return this.userMembership$.value?.subscription?.subType===H.hz.DAY_PASS}getDayPassExpiryDetails(){return this.onUserSkuChange().pipe((0,m.T)(Ve=>{const nt=Ve?.prevMembership?.subscription,Ot=Ve?.newMembership?.subscription,at=nt?.productSku,It=Ot?.productSku;return{show:at!==It&&nt?.subType===H.hz.DAY_PASS&&this.featureUpsellAvailable(H.q3.DAY_PASS)&&Ot?.type===H.rz.FREE,oldSKUShortName:Ve?.prevMembership?.product?.shortDescription}}))}checkIfNearingExpiry(){return this.getUserMembership().pipe((0,r.s)(1),(0,i.ZZ)(Ve=>(this.isDayPassSubscription||this.isTimeCappedSubscription)&&(this.isLimitedState||this.checkLowPlayTimeCondition(this.userMembership$.value,!0))?this.getUserMembership(!0).pipe((0,r.s)(1),(0,m.T)(nt=>this.isLimitedState?this.isLimitedState:this.checkLowPlayTimeCondition(nt,!0))):(0,v.of)(!1)))}getExpiryBannerText(Ve){return Ve===H.hz.DAY_PASS?"notification.dayPassExpiryBanner":Ve!==H.hz.TIME_CAPPED?(this.logger.info(`Unsupported subType:${Ve}`),""):void 0}clearIntervalTimer(){this.membershipIntervalSub?.unsubscribe(),this.membershipIntervalSub=null}registerIntervalTimer(){let Ve,nt;this.clearIntervalTimer();const Ot=this.userMembership$.value?.subscription?.expirationDateTime,at=this.userMembership$.value?.subscription?.currentSpanEndDateTime,It=this.userMembership$.value?.subscription?.renewalDateTime;this.isTimeCappedSubscription?Ve=new Date(at):Ot?Ve=new Date(Ot):It&&(Ve=new Date(It)),Ve&&!isNaN(Ve)&&(this.membershipIntervalSub=(0,y.O)(0,B.JZ).subscribe(We=>{this.intervalEventTriggered$.next(We),nt=Ve.getTime()-(new Date).getTime(),nt<=0?(this.fetchLatestUserSubscriptionAfterExpiry(),this.clearIntervalTimer()):nt<B.JZ&&(this.clearIntervalTimer(),setTimeout(()=>{this.intervalEventTriggered$.next(We),this.fetchLatestUserSubscriptionAfterExpiry()},nt))}))}fetchLatestUserSubscriptionAfterExpiry(){this.refreshSubscriptionAfterExpiry&&!isNaN(this.refreshSubscriptionAfterExpiry)&&setTimeout(()=>{this.refeshUiService.resetContentExpiryAndRefreshOnFocus(se.sD.Subscription)},this.refreshSubscriptionAfterExpiry)}isUserUpgraded(Ve,nt,Ot){return null!==Ve&&Ve?.userId===nt&&Ve?.productSku!==Ot}isPlaytimeUpdated(Ve,nt,Ot,at){return this.isTimeCappedSubscription&&!this.isUserUpgraded(Ve,nt,Ot)&&null!==Ve&&Ve?.userId===nt&&Ve?.productSku===Ot&&Ve?.remainingTimeInMinutes<at}checkForLowAndLimitedTime(Ve){return this.isTimeCappedSubscription&&this.isLimitedState?{isLowStateAlert:!1,isLimitedStateAlert:!0}:this.checkLowPlayTimeCondition(Ve)?{isLowStateAlert:!0,isLimitedStateAlert:!1}:{isLowStateAlert:!1,isLimitedStateAlert:!1}}checkLowPlayTimeCondition(Ve,nt=!1){const Ot=Ve?.subscription,at=nt?Ot?.notifications?.notifyUserOnSessionWhenRemainingTimeInMinutes:Ot?.notifications?.notifyUserWhenTimeRemainingInMinutes,It=Ot?.expirationDateTime;let We;return We=this.isTimeCappedSubscription?Ot?.remainingTimeInMinutes:(new Date(It).getTime()-(new Date).getTime())/B.Wu,void 0!==We&&void 0!==at&&We>=0&&We<=at}get isClientInitiatedUpgrade(){return this.isClientInitiatedUpgrade$.asObservable()}get initiateLaunchOnUpgradeSuccess(){return this.initiateLaunchOnUpgradeSuccess$.asObservable()}static{this.\u0275fac=function(nt){return new(nt||Ze)(Be.KVO(R.iH),Be.KVO(Xe.no),Be.KVO(R.zW),Be.KVO(He.H0),Be.KVO(Me.G),Be.KVO(X.jgD),Be.KVO(Q.bZ),Be.KVO(A.Ix),Be.KVO(R.NZ),Be.KVO(me.DL),Be.KVO(ne.k_),Be.KVO(ue.nO),Be.KVO(se.F4),Be.KVO(G.a),Be.KVO(W.Vk),Be.KVO(ue.c_),Be.KVO(ue.uh),Be.KVO(ve.Q5),Be.KVO(se.F4),Be.KVO($.Hm),Be.KVO(le.yQ),Be.KVO(R.J6),Be.KVO(ue.gE))}}static{this.\u0275prov=Be.jDH({token:Ze,factory:Ze.\u0275fac,providedIn:"root"})}}return Ze})()},97273:(Bt,z,s)=>{"use strict";s.d(z,{u:()=>O});var n=s(82187),l=s(78893),d=s(58527),v=s(99469),S=s(17901),y=s(54292),f=s(61958);let O=(()=>{class P{constructor(i,r,a,c,m){this.localeService=i,this.loggingService=r,this.pwaService=a,this.browserSupportService=c,this.appConfig=m,this.defaultUrl=this.getDefaultUrl(),this.url="",this.shouldAvoidAddressBarUpdateFlag=!1,this.isAddressBarUrlUpdated=!1,this.isShareUrlTypeOGP=!0,this.isShareURLRequireBranch=!1,this.logger=this.loggingService.getLogger("GameShareUrlService"),this.avoidAddressBarUpdateConfig=!!this.appConfig?.client?.avoidAddressBarUpdate,this.isShareUrlTypeOGP=!(this.browserSupportService.isLocalDomain()||this.browserSupportService.isPartnerDomain()),this.isShareURLRequireBranch=this.browserSupportService.isStagingDomain(),this.initAvoidAddressBarUpdateFlag()}getDefaultUrl(){return(window.geForceNowStartLocationOrigin??window.location.origin)+(window.geForceNowStartLocationPathName??window.location.pathname)}splitUrl(i){const r=i.split("/");let a=r[r.length-1];return a=a.replace(n.dn,""),a=a.split(".")[0],a}updateShareUrlInfo(i,r){this.gameId=i,this.assetIdentifier=r;const a=`${n.aj.GameId}=${this.gameId}`;if(this.isShareUrlTypeOGP){const c=`&${n.aj.Locale}=${this.localeService.getLocale()}`,m=r?this.splitUrl(r):"";if(this.queryParamsString=`${a}${c}${m?`&${n.aj.AssetId}=${m}`:""}`,this.isShareURLRequireBranch){const D=this.browserSupportService.getHostBranchName();this.queryParamsString=`${this.queryParamsString}${D?`&${n.aj.Branch}=${D}`:""}`}this.url=`${window.location.origin}/${n.py.Games}?${this.queryParamsString}`}else this.queryParamsString=`${a}`,this.url=`${window.location.origin}${window.location.pathname}#/${n.Ix}?${this.queryParamsString}`;return!0}initAvoidAddressBarUpdateFlag(){this.pwaService.onPWAModeChange.subscribe(i=>{this.shouldAvoidAddressBarUpdateFlag=i||this.avoidAddressBarUpdateConfig},i=>{this.logger.error("Error while setting initial value, defaulting to false"+i),this.shouldAvoidAddressBarUpdateFlag=!1})}getIsAddressbarUrlUpdated(){return this.isAddressBarUrlUpdated}setShareUrlInAddressBar(){this.shouldAvoidAddressBarUpdateFlag||(this.gameId&&-1!==this.url.indexOf(this.gameId)?(window.history.replaceState("","",this.url),this.isAddressBarUrlUpdated=!0):this.resetUrlInAddressBar())}getDeeplinkShareUrl(){return this.url}getShareInfo(i,r,a){if(!(this.gameId===i&&this.assetIdentifier===r||this.updateShareUrlInfo(i,r)))return void this.logger.error("Error while validating gameId");const m=a?`&${n.aj.UtmSource}=${a}`:"";return this.gameId?{url:`${this.url}${m}`,queryParamsString:`${this.queryParamsString}${m}`}:{url:window.location.origin,queryParamsString:""}}resetUrlInAddressBar(i,r){if(this.shouldAvoidAddressBarUpdateFlag||this.gameId!==i)return;const a=r?this.defaultUrl.concat(`#${r}`):this.defaultUrl;window.history.replaceState("","",a),this.isAddressBarUrlUpdated=!1}setExitUrl(i){this.exitUrl=i}setGameUrlAsExitUrl(){this.exitUrl=this.queryParamsString?`${l.f.Deeplink}?${this.queryParamsString}&${n.aj.UtmSource}=${n.mB.Application}`:l.V6.DefaultRedirect}getExitUrl(){let i;return i=this.exitUrl?this.exitUrl:this.queryParamsString?`${l.f.Deeplink}?${this.queryParamsString}`:l.V6.DefaultRedirect,i}static{this.\u0275fac=function(r){return new(r||P)(d.KVO(v.iH),d.KVO(v.J6),d.KVO(S.SL),d.KVO(y.vT),d.KVO(f.Vk))}}static{this.\u0275prov=d.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})()},73718:(Bt,z,s)=>{"use strict";s.d(z,{u:()=>n.u});var n=s(97273)},28507:(Bt,z,s)=>{"use strict";s.d(z,{_:()=>P,e:()=>i});var n=s(81834),l=s(18433),d=s(6478),v=s(70521),S=s(58527),y=s(61958),f=s(99469),O=s(5798);let P=(()=>{class r{constructor(c,m,M,D){this.appConfig=c,this.distributedtracingUtilService=M,this.endpointFactory=D,this.logger=m.getLogger("GridSdkService");const{defaultRetries:I=0,defaultTimeBetweenRetries:U=0,defaultTimeout:V=1e4}=c.grid;this.serverInfoEndpoint=this.endpointFactory.createEndpoint({config:{maxRetries:I,timeBetweenRetries:U,timeout:V}}),this.firstFetchSet=new Set}makeUrl(c,m=this.appConfig.grid.server){return(0,n.l2)([m,this.appConfig.grid.version,c])}getSpecificServerInfo(c,m){c.startsWith("http")||(c=this.appConfig.featureEnablement?.enablePassThru?"http://"+c:"https://"+c);const D={includeRequestId:!0,reportRequestData:{originalService:l.Uu$.Grid,serviceUseCase:l.OOF.GetSpecificServerInformation},headers:{}},I=D.reportRequestData.serviceUseCase;this.firstFetchSet.has(I)?D.headers[v.tD.SwCacheBypass]=JSON.stringify(!0):this.firstFetchSet.add(I);const U=this.serverInfoEndpoint.get(this.makeUrl("/serverInfo",c),D);return this.distributedtracingUtilService.handleHttpEndpointSpan(U,D,d.pB.GetSpecificServerInfo,m)}static{this.\u0275fac=function(m){return new(m||r)(S.KVO(y.Vk),S.KVO(f.J6),S.KVO(d.Z1),S.KVO(O.t))}}static{this.\u0275prov=S.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var _=s(92262);class i extends _.yN{constructor(a){super("Could not fetch vpcId",a)}}},23953:(Bt,z,s)=>{"use strict";s.d(z,{G:()=>re});var n=s(85735),l=s(93181),d=s(31315),v=s(43848),S=s(59859),y=s(69917),f=s(35146),O=s(8619),P=s(65706),_=s(75707),i=s(83915),r=s(14714),a=s(91384),c=s(43615),m=s(99047),M=s(26875),I=s(28507),U=s(21341),V=s(70521),T=s(43117),N=s(58527),L=s(99469),E=s(61958),g=s(47261),R=s(51542),B=s(11961),X=s(22600),H=s(81834),J=s(64962);let re=(()=>{class ie{constructor(ue,se,Z,Se,Ce,Be,Xe,He,Me,Q,A,me){this.loggingService=ue,this.gridSdk=se,this.appConfig=Z,this.serverRouting=Se,this.networkConfigurationService=Ce,this.zoneStorageService=Be,this.nesUserInfoService=Xe,this.serviceWorkerService=Me,this.gfnWebWorkerService=Q,this.refreshUiService=A,this.networkStatusService=me,this.cachedRecommendedZone=null,this.streamingServiceUrl=null,this.hasServerInfoStreamErrored=!1,this.deeplinkZoneOverrideError$=new n.m(1),this.defaultZoneOnError=(ne,G)=>(this.logger.info(ne," : ",G),this.defaultZone$),this.logger=this.loggingService.getLogger("gfn/grid"),this.serverInfoStream=He.createStream(()=>this.requestServerInfo()),this.initServiceWorkerNotifications(),this.listenServerInfoRefreshNotification()}listenServerInfoRefreshNotification(){this.refreshUiService.serverInfoRefresh$.subscribe(ue=>{this.logger.info("Refresh ServerInfo",ue?.source),this.refreshServerInfo()})}initServiceWorkerNotifications(){this.serviceWorkerService.swCacheUpdated.pipe((0,O.p)(ue=>ue.name===V.fR.staleWhileRevalidate.server.cacheName),(0,P.s)(1)).subscribe(ue=>{const se=this.serverInfoStream.getData();if(!se)return;const Z=this.processServerInfo(ue.data);(0,l.p)([this.gfnWebWorkerService.hash(se),this.gfnWebWorkerService.hash(Z)]).subscribe(([Se,Ce])=>{Ce!==Se&&this.serverInfoStream.setData(Z,!0)},Se=>{this.logger.error("error hashing updated server info",Se)})})}findZone(ue,se){return(0,M.find)(ue,Z=>Z.name===se?.value)}processServerInfo(ue){if(this.logger.info("processServerInfo"),(0,M.isNil)(ue))throw new Error("Server info was invalid.");const se=ue.metaData,Z=ue.requestStatus;let Se;if((0,M.isNil)(Z))throw new Error('Bad schema in server info. Missing "requestStatus".');const Ce=Z.serverId;if((0,M.isNil)(se))throw new Error('Bad schema in server info. Missing "metaData".');(0,M.isEmpty)(se)&&this.logger.warn("Server metadata is empty");const Be=ue.monitorSettings,Xe=ue.serverType,He=(0,M.chain)(se).filter(A=>A.value.startsWith("http")).map(A=>{const me=A.value.replace("http://","").replace("https://","");return{name:A.key,address:me}}).keyBy("address").value(),Me=(0,M.find)(se,A=>"local-region"===A.key),Q=this.findZone(He,Me);if(this.logger.info("Local region: ",Q),this.streamingServiceUrl?Se={address:this.getDefaultZone(),name:this.appConfig.grid.name}:(0,M.isObject)(Me)&&!(0,M.isUndefined)(Me.value)&&(Se=this.findZone(He,Me)),!(0,M.isObject)(Se))if((0,M.isNil)(this.cachedRecommendedZone)){const A=this.appConfig.grid;Se={name:A.name,address:A.server.replace("http://","").replace("https://","").replace("/","")},this.logger.error(`default zone not valid, using config zone: ${Se.name}`)}else Se=this.cachedRecommendedZone,this.logger.error(`default zone not valid, using cached zone: ${Se.name}`);return this.saveDefaultZone(Se),{vpcId:Ce,serverType:Xe,zones:He,defaultZone:Se,monitorSettings:Be,detectedLocalZone:Q}}saveDefaultZone(ue){this.zoneStorageService.setDefaultZone(ue).subscribe(()=>M.noop,se=>this.logger.error("failed to set default zone",se))}requestServerInfo(ue){let se=null;return this.nesUserInfoService.fetchUserInfoWithStreamingUrl().pipe((0,_.ZZ)(Z=>(0,d.zV)([this.networkConfigurationService.getNetworkOverride(),this.networkConfigurationService.getCurrentCachedZone(),(0,v.of)(Z)])),(0,_.ZZ)(([Z,Se,Ce])=>{this.streamingServiceUrl=Ce.serviceEndpoint.streamingServiceUrl;const Be=this.getDefaultZone();return this.logger.info("cached zone and override Zone are:",Se,Z),this.cachedRecommendedZone=(0,M.isNil)(Z)?(0,M.isNil)(Se)?null:Se:Z,(0,M.isNil)(this.cachedRecommendedZone)?(this.logger.info("cachedRecommendedZone zone is null. Use new server info"),this.getServerInfo({address:this.streamingServiceUrl,name:""},se,ue)):(se=this.checkIfCachedOrOverrideZoneAvailable(Be,Z,Se),this.clearNotAvailableZones(se),se.isOverrideZoneAvailable?(this.logger.info("Override zone available in zonesList. Get serverInfo for override zone"),this.getServerInfo(Z,se,ue)):se.isCachedZoneAvailable?(this.logger.info("cached zone available in zonesList. Get serverInfo for cached zone"),this.getServerInfo(Se,se,ue)):(this.logger.info("Override or cached zone present but not available in zonesList, clearing NetworkOverride"),this.getServerInfo({address:this.streamingServiceUrl,name:""},se,ue)))}))}getServerInfo(ue,se,Z){return this.gridSdk.getSpecificServerInfo(ue.address,Z).pipe((0,i.T)(Se=>this.processServerInfo(Se)),(0,r.W)(Se=>(this.logger.error("error in fetching serverInfo",Se),se?.isCachedZoneAvailable||se?.isOverrideZoneAvailable?(this.networkConfigurationService.deeplinkOverrideZone&&this.deeplinkZoneOverrideError$.next(!0),this.clearNotAvailableZones({isCachedZoneAvailable:!se.isCachedZoneAvailable,isOverrideZoneAvailable:!se.isOverrideZoneAvailable}),this.getServerInfo({address:this.streamingServiceUrl,name:""},se,Z)):(this.hasServerInfoStreamErrored=!0,(0,S.$)(Se)))),(0,a.M)(Se=>{this.networkConfigurationService.deeplinkOverrideZone&&this.deeplinkZoneOverrideError$.next(!1),this.refreshUiService.setContentExpiryInfo(T.sD.ServerInfo),this.hasServerInfoStreamErrored=!1}))}checkIfCachedOrOverrideZoneAvailable(ue,se,Z){let Se,Ce;return!(0,M.isNil)(se)&&se.isInternal&&(this.logger.info("Internal override is set"),Se=!0),!(0,M.isNil)(se)&&!Se&&(Se=ue===se.defaultZone),(0,M.isNil)(Z)||(Ce=ue===Z.defaultZone),{isOverrideZoneAvailable:Se,isCachedZoneAvailable:Ce}}clearNotAvailableZones(ue){ue.isOverrideZoneAvailable?ue.isCachedZoneAvailable?this.logger.info("Both override and cached zones are available in the zonelist"):(this.logger.info("Cached zone is not available in the zonelist. Clearing cached zone"),this.networkConfigurationService.clearCurrentFingerprintCachedZone().subscribe()):(this.logger.info("Override zone is not available in the zonelist. Clearing override zone"),this.networkConfigurationService.clearNetworkOverride().subscribe())}getServerProperty(ue){return this.serverInfoStream.get$().pipe((0,i.T)(ue))}get deeplinkZoneOverrideStatus(){return this.deeplinkZoneOverrideError$.asObservable().pipe((0,c.j)(()=>{this.deeplinkZoneOverrideError$=new n.m(1)}))}get vpcId$(){return this.getServerProperty(ue=>ue.vpcId).pipe((0,r.W)(ue=>{if(!this.networkStatusService.isOnline){const se=this.networkStatusService.onlineStatusChanged.pipe((0,O.p)(Z=>Z),(0,P.s)(1),(0,_.ZZ)(()=>this.vpcId$));return(0,y.x)((0,v.of)(null),se)}return(0,S.$)(ue)}),(0,r.W)(ue=>(0,S.$)(new I.e(ue))))}get defaultZone$(){return this.getProperty(ue=>ue.defaultZone)}get zoneList$(){return this.getProperty(ue=>ue.zones)}get serverType$(){return this.getProperty(ue=>ue.serverType)}get monitorSettings$(){return this.hasServerInfoStreamErrored?(0,v.of)(void 0):this.getProperty(ue=>ue.monitorSettings)}get detectedLocalZone$(){return this.getProperty(ue=>ue.detectedLocalZone)}getProperty(ue){return this.getServerProperty(ue)}getZone(ue,se){return(0,f.yU)(this.zoneList$,this.defaultZone$).pipe((0,m.$)(),(0,_.ZZ)(Z=>{const[Se,Ce]=Z;return ue.defaultZone=Ce.address,this.serverRouting.getFastestRegionalZone(ue,Se,se).pipe((0,a.M)(Be=>{this.logger.info("Got the latency based router zone: ",Be),this.serverInfoStream.refresh()}))}))}getCachedZone(){return this.serverRouting.getCachedServerZone().pipe((0,_.ZZ)(ue=>(0,M.isNil)(ue)?this.defaultZoneOnError("Empty zone in cache, falling back to default zone"):(0,v.of)(ue)),(0,r.W)(ue=>this.defaultZoneOnError("No zone in cache, falling back to default zone",ue)))}getCachedLatencies(){const ue=this.networkConfigurationService.getCurrentCachedLatencies(),se=this.networkConfigurationService.getNetworkOverride();return(0,d.zV)([ue,se]).pipe((0,P.s)(1),(0,i.T)(([Z,Se])=>{if(Se&&this.appConfig?.lbrConfig?.applyDeterministicServerRouting){const He="latency@"+Se.address;return{[He]:Z&&Z[He]?Z[He]:"-1"}}if(!Z)return{};const Ce=this.appConfig?.lbrConfig?.cachedLatencyCount||U.RQ,Be=Object.keys(Z).sort((He,Me)=>parseInt(Z[He],10)-parseInt(Z[Me],10)).slice(0,Ce),Xe={};return Be.forEach(He=>{Xe[He]=Z[He]}),Xe}))}refreshServerInfo(){return this.serverInfoStream.refresh()}getDefaultZone(){return this.streamingServiceUrl?this.streamingServiceUrl.replace("http://","").replace("https://","").replace("/",""):""}static{this.\u0275fac=function(se){return new(se||ie)(N.KVO(L.J6),N.KVO(I._),N.KVO(E.Vk),N.KVO(g.b),N.KVO(R.u),N.KVO(B.p),N.KVO(X.l),N.KVO(H.mZ),N.KVO(V.lS),N.KVO(J.JS),N.KVO(T.F4),N.KVO(L.CF))}}static{this.\u0275prov=N.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"})}}return ie})()},80838:(Bt,z,s)=>{"use strict";s.d(z,{G:()=>n.G});var n=s(23953)},16992:(Bt,z,s)=>{"use strict";s.d(z,{x:()=>P});var n=s(99469),l=s(78893),d=s(82187),v=s(26875),y=s(58527),f=s(7703),O=s(50801);let P=(()=>{class _{constructor(r,a,c){if(this.deeplinkHelperService=a,this.guestModeConfig=d.VN,this.guestMode=!1,this.logger=r.getLogger("GuestModeHelperService"),c.setForceTouchModeCallback(this.getForceTouchModeSettings.bind(this)),(0,l.ED)()){this.guestMode=!0;const m=this.deeplinkHelperService.getUpdatedPartnerId((0,l.BS)(d.aj.PartnerId))||"";this.setGuestModeConfig(m)}}isGuestAppFlow(){return this.isGuestMode&&this.getGuestModeConfig()?.isGuestAppFlow}updateGuestModeConfig(r){if(r){const{allowedRedirectUrls:a,...c}=r;this.guestModeConfig=(0,v.merge)(this.guestModeConfig,c),this.logger.info("updated GuestModeConfig",this.guestModeConfig)}}mergeGuestModeConfig(r,a){return r&&a?(0,v.merge)(a,r):a}fetchDefaultGDNMetaData(r){const a=this.getGuestModeConfig()?.metadata,c=this.createDefaultMetdata(r);return this.logger.info("metadata Overrides: ",JSON.stringify(a)),this.logger.info("default MetaData: ",JSON.stringify(c)),c&&a?[(0,v.merge)(c,a)]:[c]}createDefaultMetdata(r){const a={...d.vz};return a.variants[0].id=r,a}getGuestModeConfig(){return this.guestModeConfig}getForceTouchModeSettings(){return n.zk.isTouchPlatform()?this.guestModeConfig?.forceTouchModeSettings:{}}isWhiteLabelingEnabled(){return this.getGuestModeConfig()?.isWhiteLabelingEnabled}hideGuestAppFlowStartButton(){return this.deeplinkHelperService.windowedMode&&this.getGuestModeConfig()?.hideAppStartButton}get isGuestMode(){return this.guestMode}set isGuestMode(r){this.guestMode=r}setGuestModeConfig(r){this.guestModeConfig=d.Uf[r]||d.VN}static{this.\u0275fac=function(a){return new(a||_)(y.KVO(n.J6),y.KVO(f.w),y.KVO(O.qQ))}}static{this.\u0275prov=y.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})()},66974:(Bt,z,s)=>{"use strict";s.d(z,{x:()=>V.x,N:()=>E});var n=s(85735),l=s(43848),d=s(59859),v=s(31315),S=s(83915),y=s(65706),f=s(14714),O=s(75707),P=s(99469),_=s(6478),i=s(40996),r=s(78812),a=s(14331),c=s(78893),m=s(87687),M=s(20381),D=s(81834),I=s(94829),U=s(58527),V=s(16992),T=s(43354),N=s(5798),L=s(97273);let E=(()=>{class g{constructor(B,X,H,J,re,ie,ve,ue,se,Z){this.guestModeHelperService=X,this.gfnSdkService=H,this.appConfig=J,this.endpointFactory=re,this.distributedtracingUtilService=ie,this.telemetryService=ve,this.gameShareUrlService=ue,this.experienceControlService=se,this.systemInfoService=Z,this.guestModeExitUrl="",this.guestModeAllowedRedirectUrls=[],this.isGuestFlowConfigFetchedSubject=new n.m(1),this.logger=B.getLogger("GuestModeService")}getAuthConfigFromNonce(B,X,H,J){const ie=this.endpointFactory.createEndpoint({config:{timeout:this.appConfig.accountLinking.defaultTimeout??15e3,timeBetweenRetries:0,maxRetries:this.appConfig.accountLinking.defaultRetries??1}}),ve={partnerId:X,cmsId:H,nonce:B,deviceId:J},ue={partnerId:X,cmsId:H.toString()},se=this.createRequestOptions(ve,{}),Z=ie.post(this.buildApiUrl("token"),se);return this.distributedtracingUtilService.handleHttpEndpointSpan(Z,se,_.pB.AlsTokenExchange,null,ue).pipe((0,S.T)(Se=>(this.logger.info("Successfully got JWT token from ALS API"),{authType:"jwt",partnerData:"",partnerSecureData:Se?.partnerSecureData,token:Se?.token})))}buildApiUrl(B){return this.appConfig.accountLinking?.server+"/v2/"+B}createRequestOptions(B={},X={}){return{params:X,body:B}}get guestModeAllowedRedirectUrlsList(){return this.guestModeAllowedRedirectUrls}set guestModeAllowedRedirectUrlsList(B){this.guestModeAllowedRedirectUrls=B}get isGuestFlowConfigFetched$(){return this.isGuestFlowConfigFetchedSubject.asObservable()}getGuestModeExitUrl(){return this.guestModeExitUrl}isStateValid(B){return!!((0,D.It)(B)||(0,D.Q2)(B)||/^[a-zA-Z0-9-]{1,36}$/.test(B))}createRedirectURLWithState(B,X,H){return(0,c.K)(B,X,H)}initializeGuestModeExitUrl(B,X,H){this.guestModeExitUrl=(0,c.K)(B,X,H.toString())}updateRedirectURLWithSubErrorCode(B){this.guestModeExitUrl=(0,c.K)(this.guestModeExitUrl,a.hV.SubStatus,(0,I.yJ)(B)),this.gameShareUrlService.setExitUrl(this.guestModeExitUrl)}updateGuestModeExitUrl(B){this.guestModeExitUrl=(0,c.K)(this.guestModeExitUrl,a.hV.Status,B.toString()),this.gameShareUrlService.setExitUrl(this.guestModeExitUrl)}fetchGuestFlowConfigCloudVariable(B,X,H,J){return this.experienceControlService.getCloudVariable(this.appConfig.gxTarget.experiences.guestFlowClientConfig,{partnerId:B},{useCache:!1,useNetworkTimeoutForCacheFallback:!1},M.Ky.GxTargetGetCloudVariable,M.Id.Other).pipe((0,y.s)(1),(0,S.T)(re=>{this.gxtGuestFlowClientConfig=re.value,this.logger.info("guestFlowClientConfig from gxtarget is: ",this.gxtGuestFlowClientConfig);const ie=this.gxtGuestFlowClientConfig.defaultPartnerConfig;let ve;H&&(ve=this.gxtGuestFlowClientConfig[H]);const ue=this.guestModeHelperService.mergeGuestModeConfig(ve,ie),se=ue?.allowedRedirectUrls||[];if(this.guestModeHelperService.updateGuestModeConfig(ue),this.logger.info("Final Guest Mode Config: ",JSON.stringify(ue)),this.isGuestFlowConfigFetchedSubject.next(),""!==X||0!==se.length){let Se=decodeURIComponent(X);if(!se.includes(Se))return{success:!1,error:m.LQP.RedirectURLNotAllowed};if(""!==J){if(!this.isStateValid(J))return{success:!1,error:m.LQP.RedirectURLNotAllowed};Se=this.createRedirectURLWithState(Se,a.hV.State,J)}else this.logger.info("Optional param state is empty");this.initializeGuestModeExitUrl(Se,a.hV.Status,a.Jv.Success)}return ie?.enabled??1?{success:!0,error:m.LQP.None,guestFlowStatusCode:a.Jv.Success}:(this.logger.error("Guest Mode is not enabled for ",B),{success:!1,error:m.LQP.Unauthorized,guestFlowStatusCode:a.Jv.Campaign_Suspended})}),(0,f.W)(re=>(this.logger.error("Error in fetching guestFlowClientConfig from GXT",re),(0,l.of)({success:!1,error:m.LQP.Unknown}))))}setAuthDataUsingNonce(B,X,H){return this.systemInfoService.getSystemInfo([P.Lu.DeviceId]).pipe((0,O.ZZ)(J=>this.getAuthConfigFromNonce(B,X,parseInt(H,10),J.DeviceId)),(0,S.T)(J=>J.token&&0!==J.token.length?(this.gfnSdkService.setSdkClient(X,J),{success:!0,error:m.LQP.None,guestFlowStatusCode:a.Jv.Success}):(this.logger.error("Invalid JWT token from ALS API"),{success:!1,error:m.LQP.Unauthorized,guestFlowStatusCode:a.Jv.GFN_Error})),(0,f.W)(J=>(this.logger.error("Failed to fetch JWT token from ALS API",J),(0,l.of)(401===J.status?{success:!1,error:m.LQP.PartnerAuthFailed,guestFlowStatusCode:a.Jv.Partner_Error}:{success:!1,error:m.LQP.Unauthorized,guestFlowStatusCode:a.Jv.GFN_Error}))))}setAuthDataUsingNonceAndUpdateGuestFlowConfig(B,X,H,J,re,ie){if(!J)return this.logger.error("No cms-id in deeplink with nonce"),(0,d.$)(m.LQP.BadRequest);const ve=this.fetchGuestFlowConfigCloudVariable(X,re,H,ie),ue=this.setAuthDataUsingNonce(B,X,H);return(0,v.zV)([ve,ue]).pipe((0,y.s)(1),(0,O.ZZ)(([se,Z])=>se.success?Z.success?(0,l.of)([se,Z]):(Z?.guestFlowStatusCode&&this.updateGuestModeExitUrl(Z?.guestFlowStatusCode),(0,d.$)(Z.error)):(se?.guestFlowStatusCode&&this.updateGuestModeExitUrl(se?.guestFlowStatusCode),(0,d.$)(se.error))),(0,O.ZZ)(se=>this.gfnSdkService.getAuthInfo()),(0,S.T)(se=>(se.authType===i.hT.JWT&&(this.telemetryService.setEventsCommonData({userId:se.userId,externalUserId:se.externalUserId,idpId:se.idpId},!0),this.experienceControlService.setUserInfo({userId:r.oX.Undefined,idpId:r.oX.Undefined})),!0)))}static{this.\u0275fac=function(X){return new(X||g)(U.KVO(P.J6),U.KVO(V.x),U.KVO(i.DL),U.KVO(T.Vk),U.KVO(N.t),U.KVO(_.Z1),U.KVO(r.H0),U.KVO(L.u),U.KVO(M.BW),U.KVO(P.zW))}}static{this.\u0275prov=U.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}}return g})()},9544:(Bt,z,s)=>{"use strict";s.d(z,{t:()=>T});var n=s(94485),l=s(5798),d=s(78812),v=s(18433),S=s(99469),y=s(26875),f=s(36466),O=s(35146),P=s(43848),_=s(43354),i=s(75707),r=s(70521),a=s(58527),c=s(85735),m=s(59859),M=s(3496),D=s(80583),I=s(86447),U=s(14714);let V=(()=>{class N{constructor(E){this.defaultMaxRetries=3,this.defaultRetryInterval=1e3,this.retryCount=0,this.jsLoadTelemetrySubject$=new c.m(1),this.logger=E.getLogger("ExternalJsLoadService")}getJsLoadScriptTag(E){return Array.from(document.getElementsByTagName("script")).find(R=>R.src.includes(E))}retryStrategy({maxRetries:E,retryInterval:g,isExponentialRetry:R},B){return B.pipe((0,i.ZZ)((X,H)=>H+1>E?(0,m.$)(X):(0,M.O)(Math.pow(R?2:1,H)*g)))}isScriptLoaded(E){return!!this.getJsLoadScriptTag(E)}unloadJS(E){const g=this.getJsLoadScriptTag(E);g&&g.remove()}loadJS(E,{scriptType:g="text/javascript",isAsyncLoad:R=!0}){const B=new D.B7,X=document.createElement("script");return X.src=E,X.type=g,X.async=R,X.onload=()=>{this.logger.info("External Script loaded successfully"),B.next(!0),B.complete()},X.onerror=H=>{this.unloadJS(E),this.logger.info("External Script load failed"),B.error(H)},document.body.appendChild(X),B.asObservable()}loadJSWithRetry(E,{scriptType:g="text/javascript",isAsyncLoad:R=!0,maxRetries:B=this.defaultMaxRetries,retryInterval:X=this.defaultRetryInterval,isExponentialRetry:H=!0}){return this.retryCount=0,this.loadJS(E,{scriptType:g,isAsyncLoad:R}).pipe((0,I.l)(J=>(this.retryCount++,this.retryStrategy({maxRetries:B,retryInterval:X,isExponentialRetry:H},J))),(0,U.W)(J=>(this.jsLoadTelemetrySubject$.next({isSuccess:!1,attemptCount:this.retryCount,fileName:E,error:J}),(0,P.of)(!1))))}static{this.\u0275fac=function(g){return new(g||N)(a.KVO(S.J6))}}static{this.\u0275prov=a.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}}return N})(),T=(()=>{class N{constructor(E,g,R,B,X,H){this.injector=E,this.statusCodeZeroAnalyzerFactoryService=R,this.localeService=B,this.serviceWorkerService=X,this.externalJsLoadService=H,this.logger=g.getLogger("http-telemetry.service"),this.reverseOriginalService=new Map,Object.keys(v.Uu$).forEach(J=>{this.reverseOriginalService.set(v.Uu$[J],J)}),this.reverseServiceUseCase=new Map,Object.keys(v.OOF).forEach(J=>{this.reverseServiceUseCase.set(v.OOF[J],J)}),this.reverseServiceSubUseCase=new Map,Object.keys(v.c4O).forEach(J=>{this.reverseServiceSubUseCase.set(v.c4O[J],J)}),this.pendingNetworkResponseMap=new Map}getStatusCodeZeroAnalyzer(){if(this.statusCodeZeroAnalyzer)return this.statusCodeZeroAnalyzer;const E=this.injector.get(_.Vk)?.statusCodeZeroAnalyzerConfig;return this.statusCodeZeroAnalyzer=this.statusCodeZeroAnalyzerFactoryService.createAnalyzer(E),this.statusCodeZeroAnalyzer}initialize(){this.logger.info("Initializing Http Telemetry Service"),l.sl.httpErrorEvents$().subscribe(E=>{this.sendHttpFailureEvent(E)}),l.sl.httpSuccessEvents$().subscribe(E=>{this.sendHTTPSuccessEvent(E)}),this.sendHTTPGetCallsTelemetry(),this.serviceWorkerService.networkResponseReceived.subscribe(E=>{this.handleNetworkResponseReceived(E)},f.l)}handleNetworkResponseReceived(E){const g=E.requestId;if(this.pendingNetworkResponseMap.has(g)){const R=this.pendingNetworkResponseMap.get(g);if(this.pendingNetworkResponseMap.delete(g),E.responseStatusCode<=0||E.responseStatusCode>=400){const B=R.httpSuccessEvent.parameters,X=new v._o$({destinationIp:B.destinationIp,serviceSubUseCase:B.serviceSubUseCase,sourceComponent:B.sourceComponent,serviceUseCase:B.serviceUseCase,originalService:B.originalService,xRequestId:B.xRequestId,url:B.url,retryCount:B.retryCount,wasSWCacheBypassed:B.wasSWCacheBypassed,networkErrorCode:String(E.responseStatusCode),networkErrorMessage:E.responseBody?.substring(0,1024)||""});this.telemetryService.push(X)}else R.httpSuccessEvent.parameters.durationMs=E.responseReceivedTimeMs-R.requestStartTime,this.telemetryService.push(R.httpSuccessEvent)}}sendHTTPGetCallsTelemetry(){this.externalJsLoadService.jsLoadTelemetrySubject$.subscribe(E=>{this.updateAndSendTelemetry(E,v.OOF.FetchJSFile)}),S.zk.isBrowserPlatform()&&(S.cK.retrySubject.subscribe(E=>{this.updateAndSendTelemetry(E,v.OOF.FetchJSFile)}),this.localeService.getLocaleDownloadRetryTelemetryData().subscribe(E=>{this.updateAndSendTelemetry(E,v.OOF.FetchLocaleJson)}))}updateAndSendTelemetry(E,g){const R={includeRequestId:!1,reportRequestData:{originalService:v.Uu$.AwsS3,serviceUseCase:g,serviceSubUseCase:v.c4O.Other,retryCount:E.attemptCount.toString(),requestEndTime:"0",requestStartTime:"0"}};if(E.isSuccess){const X={response:new n.cS({status:200,url:E.fileName}),options:R};this.sendHTTPSuccessEvent(X)}else this.sendHttpFailureEvent({response:{url:E.fileName,status:404},options:R})}getRetryCount(E){return(0,y.isNil)(E)||(0,y.isNil)(E.retryCount)?0:parseInt(E.retryCount,10)}getSWCacheBypassInfo(E){let R,g=v.T80.UNDEFINED;return E.headers&&E.headers[r.tD.SwCacheBypass]&&(R=E.headers[r.tD.SwCacheBypass],g=R===JSON.stringify(!0)?v.T80.TRUE:v.T80.FALSE),{swCacheBypassHeaderValue:R,wasSWCacheBypassed:g}}sendHttpFailureEvent(E){(0,y.isNil)(this.telemetryService)&&(this.telemetryService=this.injector.get(d.H0)),(0,y.isNil)(this.telemetryUtilService)&&(this.telemetryUtilService=this.injector.get(v.jgD));const g=E.response.xRequestId?E.response.xRequestId:"";(0,y.isNil)(this.telemetryService)||(0,y.isNil)(this.telemetryUtilService)?this.logger.warn("Unable to send event for failed http request: ",E.response.url):(0,O.yU)(this.telemetryService.getCommonDataObservable(),this.telemetryService.getDefaultClientConsentObserable()).pipe((0,i.ZZ)(R=>0!==E.response.status?(0,P.of)({statusCode:E.response.status}):this.getStatusCodeZeroAnalyzer().getFailureCode({requestUrl:E.response.url,uniqueRequestId:g}))).subscribe(R=>{const X=R.cachedDNSEntry?.destinationIp||"",H=this.getSWCacheBypassInfo(E.options);let J="";J=0===E.response.status?E.response.rawResponse?.message??"":JSON.stringify(E.response.rawResponse?.error)??"";const re=new v._o$({sourceComponent:this.telemetryUtilService.getClientType(),originalService:this.getOriginalService(E.options.reportRequestData),serviceUseCase:this.getServiceUseCase(E.options.reportRequestData),serviceSubUseCase:this.getServiceSubUseCase(E.options.reportRequestData),url:E.response.url,networkErrorCode:String(R.statusCode),destinationIp:X,xRequestId:g,retryCount:this.getRetryCount(E.options.reportRequestData),wasSWCacheBypassed:H.wasSWCacheBypassed,networkErrorMessage:J.substring(0,1024)});this.telemetryService.push(re)})}sendHTTPSuccessEvent(E){(0,y.isNil)(this.telemetryService)&&(this.telemetryService=this.injector.get(d.H0)),(0,y.isNil)(this.telemetryUtilService)&&(this.telemetryUtilService=this.injector.get(v.jgD)),(0,y.isNil)(this.telemetryService)||(0,y.isNil)(this.telemetryUtilService)?this.logger.info("Unable to send event for http success request: ",E.response.url):(0,O.yU)(this.telemetryService.getCommonDataObservable(),this.telemetryService.getDefaultClientConsentObserable()).subscribe(g=>{const R=this.getSWCacheBypassInfo(E.options),B=new v.Bhf({sourceComponent:this.telemetryUtilService.getClientType(),originalService:this.getOriginalService(E.options.reportRequestData),serviceUseCase:this.getServiceUseCase(E.options.reportRequestData),serviceSubUseCase:this.getServiceSubUseCase(E.options.reportRequestData),url:E.response.url,httpStatus:E.response.status,durationMs:parseInt(E.options.reportRequestData.requestEndTime,10)-parseInt(E.options.reportRequestData.requestStartTime,10),destinationIp:"",responseData:"",xRequestId:E.options.includeRequestId?E.options.headers[l.SA.xRequestId]:"",retryCount:this.getRetryCount(E.options.reportRequestData),wasSWCacheBypassed:R.wasSWCacheBypassed});B.parameters.xRequestId&&this.serviceWorkerService.willGFNServiceWorkerHandleRequest(E.response.url,R.swCacheBypassHeaderValue)?this.pendingNetworkResponseMap.set(B.parameters.xRequestId,{httpSuccessEvent:B,requestStartTime:parseInt(E.options.reportRequestData.requestStartTime,10)}):this.telemetryService.push(B)})}getOriginalService(E){return(0,y.isNil)(E)||(0,y.isNil)(E.originalService)||(0,y.isNil)(this.reverseOriginalService.get(E.originalService))?v.Uu$.Other:v.Uu$[this.reverseOriginalService.get(E.originalService)]}getServiceUseCase(E){return(0,y.isNil)(E)||(0,y.isNil)(E.serviceUseCase)||(0,y.isNil)(this.reverseServiceUseCase.get(E.serviceUseCase))?v.OOF.Other:v.OOF[this.reverseServiceUseCase.get(E.serviceUseCase)]}getServiceSubUseCase(E){return(0,y.isNil)(E)||(0,y.isNil)(E.serviceSubUseCase)||(0,y.isNil)(this.reverseServiceSubUseCase.get(E.serviceSubUseCase))?v.c4O.Other:v.c4O[this.reverseServiceSubUseCase.get(E.serviceSubUseCase)]}static{this.\u0275fac=function(g){return new(g||N)(a.KVO(a.zZn),a.KVO(S.J6),a.KVO(S.pZ),a.KVO(S.iH),a.KVO(r.lS),a.KVO(V))}}static{this.\u0275prov=a.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}}return N})()},98231:(Bt,z,s)=>{"use strict";s.d(z,{S:()=>P});var n=s(72147),l=s(65706),d=s(75707),v=s(6687),S=s(20924),y=s(58527),f=s(99469),O=s(55512);let P=(()=>{class _{constructor(r,a,c,m){this.ipcService=r,this.idmService=c,this.bridgeService=m,this.logger=a.getLogger("shared/idm-ipc"),this.ipcService.get$(v.kN.LoginStatusChanged).pipe((0,n.n)(M=>c.refreshUser())).subscribe(()=>{this.logger.info("User refreshed successfully")},M=>{this.logger.error("Failed refresh User with error: ",M)})}sendLoginStatusChange(){this.idmService.accountStatusChanged.pipe((0,l.s)(1),(0,d.ZZ)(r=>this.bridgeService.executeCommand(S.Ts.Common.Ipc.LoginStatus,{data:r},!1))).subscribe(r=>this.logger.info("success sending LoginStatus",r),r=>this.logger.error("error sending LoginStatus",r))}static{this.\u0275fac=function(a){return new(a||_)(y.KVO(v.Uj),y.KVO(f.J6),y.KVO(O.k_),y.KVO(f.NZ))}}static{this.\u0275prov=y.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})()},75318:(Bt,z,s)=>{"use strict";s.d(z,{n:()=>xe});var n=s(43848),l=s(31315),d=s(99443),v=s(18513),S=s(37233),y=s(8619),f=s(17053),P=s(36466),_=s(15652),i=s(56237),r=s(27731),a=s(65706),c=s(75707),m=s(83915),M=s(14714),D=s(91384),I=s(55833),U=s(99469),V=s(46356),T=s(18433),N=s(26537),L=s(56785),E=s(4208),g=s(80583),R=s(78893),B=s(40996),X=s(94829),H=s(81834),J=s(32398),re=s(58527),ie=s(61958),ve=s(14354),ue=s(78812),se=s(9801),Z=s(55512),Se=s(3457),Ce=s(28139),Be=s(29370),Xe=s(47973),He=s(61142),Me=s(81247),Q=s(97888),A=s(25369),me=s(96542);function ne(lt,ft){1<&&(re.j41(0,"div",9),re.nrm(1,"mat-icon",10),re.k0s())}function G(lt,ft){1<&&(re.j41(0,"span",11),re.EFF(1,"error"),re.k0s())}function W(lt,ft){if(1<){const ht=re.RV6();re.j41(0,"button",12),re.bIt("click",function(){re.eBV(ht);const Ht=re.XpG(2);return re.Njj(Ht.onCancel())}),re.j41(1,"span",13),re.EFF(2),re.nI1(3,"translate"),re.k0s()()}if(2<){const ht=re.XpG(2);re.R7$(2),re.JRh(re.bMT(3,1,ht.cancelButtonText))}}function $(lt,ft){if(1<){const ht=re.RV6();re.j41(0,"button",14),re.bIt("click",function(Ht){re.eBV(ht);const Je=re.XpG(2);return re.Njj(Je.onLoginClicked(Ht))}),re.j41(1,"span",13),re.EFF(2),re.nI1(3,"translate"),re.k0s()()}if(2<){const ht=re.XpG(2);re.R7$(2),re.JRh(re.bMT(3,1,ht.tryLoginText))}}function le(lt,ft){if(1<&&(re.j41(0,"div",1),re.DNE(1,ne,2,0,"div",2)(2,G,2,0,"span",3),re.j41(3,"div",4)(4,"span"),re.EFF(5),re.nI1(6,"translate"),re.k0s()(),re.j41(7,"span",5),re.EFF(8),re.nI1(9,"translate"),re.k0s(),re.j41(10,"div",6),re.DNE(11,W,4,3,"button",7)(12,$,4,3,"button",8),re.k0s()()),2<){const ht=re.XpG();re.Y8G("ngClass",ht.isStreamer?"main-content-streamer":"main-content-mall")("backToCloseResult",ht.backToCloseResult),re.R7$(),re.Y8G("ngIf",!ht.showErrorIcon&&ht.isStreamer),re.R7$(),re.Y8G("ngIf",ht.showErrorIcon&&ht.isStreamer),re.R7$(),re.Y8G("ngClass",ht.showErrorIcon&&ht.isStreamer?"content-header-error font-sub1":"content-header font-header6"),re.R7$(2),re.JRh(re.bMT(6,9,ht.headerText)),re.R7$(3),re.JRh(re.bMT(9,11,ht.bodyText)),re.R7$(3),re.Y8G("ngIf",ht.showCancel),re.R7$(),re.Y8G("ngIf",ht.showTryLogin)}}let Pe=(()=>{class lt{constructor(ht,Xt,Ht,Je,tt,rt,et,St,Gt,yt,Wt,ke,be,Ae,qe){this.dialogRef=Ht,this.genericDialog=Je,this.localeService=tt,this.router=rt,this.telemetryService=et,this.config=St,this.dialogData=Gt,this.gfnSdkService=yt,this.systemInfoService=Wt,this.idmTelemetryService=ke,this.idmService=be,this.idmLoginService=Ae,this.headerText="",this.bodyText="",this.cancelButtonText="",this.tryLoginText="",this.showCancel=!1,this.showTryLogin=!1,this.isStreamer=!1,this.shouldShowLoginButton=!1,this.showErrorIcon=!1,this.deviceAuthUri="",this.deviceAuthCode="",this.deviceAuthUriComplete="",this.browserPopup=void 0,this.needsWindowWorkaround=!1,this.offDeviceDialogSubscription=null,this.backToCloseResult=V.ie.Cancel,this.useDeviceAuthLogin=!!this.config?.useDeviceAuthLogin,this.logger=ht.getLogger("loginBridgeState"),this.needsWindowWorkaround=!!Xt?.featureEnablement?.loginPopupBlockerWorkaround,this.destroy$=new g.B7,this.onLoginClicked=qe.guard(L.HK.Link,this.onLoginClicked.bind(this))}initialize(){this.shouldShowLoginButton?(this.headerText="loginBridgeState.login",this.bodyText="loginBridgeState.loginToGeForceNow",this.tryLoginText="common.login",this.showCancel=!1,this.showTryLogin=!0):this.onTryLogin()}startLoginProcess(){this.logger.trace(H.N_.UserGesture,H.YD.Login,H.PC.open," login operation"),this.idmLoginService.getDeviceName$().pipe((0,a.s)(1),(0,c.ZZ)(ht=>(this.idmTelemetryService.sendLoginStartEvent(this.dialogData.idpId,!1),this.idmService.login(!1,this.dialogData.idpId,this.browserPopup,ht))),(0,E.Q)(this.destroy$)).subscribe(ht=>{switch(this.logger.info("starfleet login state update",ht),ht){case V.l4.LoginAbortedByUser:this.dialogRef.close(V.ie.Cancel);break;case V.l4.LoginAbortedAlreadyLoggedIn:this.dialogRef.close(V.ie.Success);break;case J.g.LoggedIn:this.idmTelemetryService.sendLoginSuccessUserSessionEvent(),this.dialogRef.close(V.ie.Success);break;case V.l4.LoginFailed:case J.g.Failed:this.onLoginFailed();break;case V.l4.LoginFailedNoRetry:case J.g.LoggedOut:this.onLoginFailed(!1);break;case V.l4.LoginFailedToStart:this.onLoginFailed(!1,!1);break;case V.l4.LoginInProgressNeedDisplayCode:this.onNeedDisplayCode()}},ht=>{this.logger.error("failed to login the user with error",ht),this.needsWindowWorkaround&&ht===V.l4.LoginAlreadyInProgress&&(this.idmService.cancel(),setTimeout(()=>{this.startLoginProcess()}))})}ngOnInit(){this.isStreamer=(0,R.tE)(this.router.url),(0,l.zV)([this.gfnSdkService.getAuthType(),this.localeService.localeChanged]).pipe((0,c.ZZ)(([ht])=>(this.isStreamer&&ht!==B.hT.IDM_FALLBACK&&ht!==B.hT.JWT&&(this.shouldShowLoginButton=!0),this.localeService.localeChanged)),(0,a.s)(1)).subscribe(P.l,ht=>this.logger.error("error in in locale changed"),()=>this.initialize())}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.closeOffDeviceAuthDialog()}onLoginFailed(ht=!0,Xt=!0){if(Xt?(this.headerText="common.loginUnsuccessful",this.bodyText=ht?"loginBridgeState.problemLogInRetry":"loginBridgeState.problemLogIn"):(this.headerText="loginBridgeState.unableToInitiateLogin",this.bodyText="loginBridgeState.poroblemTryingToLogin"),this.showCancel=!0,this.cancelButtonText="common.close",this.showTryLogin=ht,this.showErrorIcon=!0,this.tryLoginText="common.retry",!1===Xt?this.idmTelemetryService.sendCreateHTTPServerErrorEvent():this.idmTelemetryService.sendLoginFailureUserSessionEvent(),this.useDeviceAuthLogin){const Ht={panelClass:"dialogPaddingRemove",disableClose:!0,data:{...this.dialogData,headerText:{text:this.headerText},bodyText:{text:this.bodyText},primaryButton:{text:this.cancelButtonText}}};this.openThreeQuarterSheet(Ht)}}onCancel(){this.logger.trace(H.N_.UserGesture,H.YD.Login,H.PC.close," Login operation by clicking on cancel button"),this.dialogRef.close("common.close"===this.cancelButtonText?V.ie.CloseOnFailure:V.ie.Cancel)}onTryLogin(){this.needsWindowWorkaround?(this.browserPopup=window.open("","_blank"),this.headerText="loginBridgeState.login",this.bodyText="loginBridgeState.completeTheLogin",this.tryLoginText="common.login",this.showTryLogin=!0):(this.headerText="loginBridgeState.loginInProgress",this.bodyText="loginBridgeState.browserIsOpen",this.tryLoginText="common.retry",this.showTryLogin=!1),this.cancelButtonText="common.cancelTitleCase",this.showCancel=!0,this.startLoginProcess()}onLoginClicked(ht){this.onTryLogin()}onNeedDisplayCode(){this.deviceAuthUri=this.idmService.getDeviceDisplayCode().url,this.deviceAuthUriComplete=this.idmService.getDeviceDisplayCode().url_complete;const ht=this.idmService.getDeviceDisplayCode().user_code;if(ht&&(this.deviceAuthCode=(0,X.zC)(ht),this.cancelButtonText="common.cancelTitleCase",this.showCancel=!0),!this.deviceAuthUri||!this.deviceAuthUriComplete||!ht)throw new Error(`Failed to launch login bridge dialog. deviceAuthUri: ${this.deviceAuthUri}, deviceAuthUriComplete: ${this.deviceAuthUriComplete}, rawCode: ${ht}`);{const Xt={panelClass:"dialogPaddingRemove",disableClose:!0,data:{...this.dialogData,headerText:{text:(0,X.ZE)(this.deviceAuthUri)},primaryButton:{text:"common.cancelTitleCase"},bodyText:{text:"loginBridgeState.deviceAuthLogin",placeholders:{authCode:`<div class="font-header3 white">${this.deviceAuthCode}</div>`}},footerText:{text:"loginBridgeState.deviceAuthHint"},image:{url:this.deviceAuthUriComplete}}};this.openThreeQuarterSheet(Xt)}}openThreeQuarterSheet(ht){this.closeOffDeviceAuthDialog(),this.offDeviceAuthDialogRef=this.genericDialog.open(ht,{preferredDialogType:L.QO.ThreeQuarterSheet}),this.offDeviceAuthDialogRef.backToCloseResult=this.backToCloseResult,this.offDeviceDialogSubscription=(0,_.O4)(this.offDeviceAuthDialogRef.primaryButtonClick,this.offDeviceAuthDialogRef.afterClosed()).pipe((0,E.Q)(this.destroy$)).subscribe(()=>{this.closeOffDeviceAuthDialog(),this.onCancel()})}closeOffDeviceAuthDialog(){this.offDeviceDialogSubscription?.unsubscribe(),this.offDeviceDialogSubscription=null,this.offDeviceAuthDialogRef?.close(),this.offDeviceAuthDialogRef=void 0}static{this.\u0275fac=function(Xt){return new(Xt||lt)(re.rXU(U.J6),re.rXU(ie.Vk),re.rXU(N.CP),re.rXU(L.uh),re.rXU(U.iH),re.rXU(ve.Ix),re.rXU(ue.H0),re.rXU(V.X$),re.rXU(N.Vh),re.rXU(B.DL),re.rXU(U.zW),re.rXU(se.J),re.rXU(Z.k_),re.rXU(xe),re.rXU(L.gE))}}static{this.\u0275cmp=re.VBU({type:lt,selectors:[["gfn-login-bridge-state"]],decls:1,vars:1,consts:[["fxFlex","","fxLayout","column","nvTrapFocus","","nvBackToCloseModal","",3,"ngClass","backToCloseResult",4,"ngIf"],["fxFlex","","fxLayout","column","nvTrapFocus","","nvBackToCloseModal","",3,"ngClass","backToCloseResult"],["class","header-logo",4,"ngIf"],["class","error-icon material-icons",4,"ngIf"],[3,"ngClass"],[1,"font-body2","content-body"],["fxFlex","","fxLayout","row","fxLayoutAlign","end end",1,"content-button"],["mat-button","","class","font-button2 text-button-icon",3,"click",4,"ngIf"],["color","accent","class","retry-button","mat-raised-button","",3,"click",4,"ngIf"],[1,"header-logo"],["svgIcon","gfnBranding"],[1,"error-icon","material-icons"],["mat-button","",1,"font-button2","text-button-icon",3,"click"],[1,"font-button2"],["color","accent","mat-raised-button","",1,"retry-button",3,"click"]],template:function(Xt,Ht){1&Xt&&re.DNE(0,le,13,13,"div",0),2&Xt&&re.Y8G("ngIf",!Ht.useDeviceAuthLogin)},dependencies:[Se.DJ,Se.sA,Se.UI,Ce.PW,Be.An,Xe.iV,He.YU,He.bT,Me.D,Q.Aq,A.D,me.D9],styles:[".login-bridge-state-dialog .mat-mdc-dialog-container{border-radius:0}.login-bridge-state-dialog .main-content-streamer{width:470px;height:618px;background-color:#1f2224}.login-bridge-state-dialog .main-content-streamer .header-logo mat-icon{width:200px;height:60px;margin-top:34px}:host-context(.isLtr) .login-bridge-state-dialog .main-content-streamer .header-logo mat-icon{margin-left:24px}html[dir=ltr] .login-bridge-state-dialog .main-content-streamer .header-logo mat-icon{--dummy3: 0;margin-left:24px}:host-context(.isRtl) .login-bridge-state-dialog .main-content-streamer .header-logo mat-icon{margin-right:24px}html[dir=rtl] .login-bridge-state-dialog .main-content-streamer .header-logo mat-icon{--dummy3: 0;margin-right:24px}@keyframes gfn-login-bridge-state_fade{0%{opacity:.7}50%{opacity:.3}to{opacity:.7}}.login-bridge-state-dialog .main-content-streamer .content-header{margin:138px 0 0!important;text-align:center}.login-bridge-state-dialog .main-content-streamer .content-header-error{margin:33px 0 0!important;text-align:center}.login-bridge-state-dialog .main-content-streamer .error-icon{font-size:50px;margin:189px 0 0!important;opacity:.7;text-align:center}.login-bridge-state-dialog .main-content-streamer .content-body{margin:10px 24px 0!important;text-align:center}:host-context(.isLtr) .login-bridge-state-dialog .main-content-streamer .content-button{margin:0 8px 8px 0}html[dir=ltr] .login-bridge-state-dialog .main-content-streamer .content-button{--dummy: 0;margin:0 8px 8px 0}:host-context(.isRtl) .login-bridge-state-dialog .main-content-streamer .content-button{margin:0 0 8px 8px}html[dir=rtl] .login-bridge-state-dialog .main-content-streamer .content-button{--dummy: 0;margin:0 0 8px 8px}:host-context(.isLtr) .login-bridge-state-dialog .main-content-streamer .retry-button{margin:0 0 0 8px}html[dir=ltr] .login-bridge-state-dialog .main-content-streamer .retry-button{--dummy: 0;margin:0 0 0 8px}:host-context(.isRtl) .login-bridge-state-dialog .main-content-streamer .retry-button{margin:0 8px 0 0}html[dir=rtl] .login-bridge-state-dialog .main-content-streamer .retry-button{--dummy: 0;margin:0 8px 0 0}.login-bridge-state-dialog .main-content-mall{width:560px;height:166px;background-color:#393939}:host-context(.isLtr) .login-bridge-state-dialog .main-content-mall .content-header{margin:19px 24px 14px!important}html[dir=ltr] .login-bridge-state-dialog .main-content-mall .content-header{--dummy: 0;margin:19px 24px 14px!important}:host-context(.isRtl) .login-bridge-state-dialog .main-content-mall .content-header{margin:19px 24px 14px!important}html[dir=rtl] .login-bridge-state-dialog .main-content-mall .content-header{--dummy: 0;margin:19px 24px 14px!important}.login-bridge-state-dialog .main-content-mall .content-body{height:52px}:host-context(.isLtr) .login-bridge-state-dialog .main-content-mall .content-body{margin:0 24px!important}html[dir=ltr] .login-bridge-state-dialog .main-content-mall .content-body{--dummy: 0;margin:0 24px!important}:host-context(.isRtl) .login-bridge-state-dialog .main-content-mall .content-body{margin:0 24px!important}html[dir=rtl] .login-bridge-state-dialog .main-content-mall .content-body{--dummy: 0;margin:0 24px!important}:host-context(.isLtr) .login-bridge-state-dialog .main-content-mall .content-button{margin:0 8px 8px 0}html[dir=ltr] .login-bridge-state-dialog .main-content-mall .content-button{--dummy: 0;margin:0 8px 8px 0}:host-context(.isRtl) .login-bridge-state-dialog .main-content-mall .content-button{margin:0 0 8px 8px}html[dir=rtl] .login-bridge-state-dialog .main-content-mall .content-button{--dummy: 0;margin:0 0 8px 8px}:host-context(.isLtr) .login-bridge-state-dialog .main-content-mall .retry-button{margin:0 0 0 8px}html[dir=ltr] .login-bridge-state-dialog .main-content-mall .retry-button{--dummy: 0;margin:0 0 0 8px}:host-context(.isRtl) .login-bridge-state-dialog .main-content-mall .retry-button{margin:0 8px 0 0}html[dir=rtl] .login-bridge-state-dialog .main-content-mall .retry-button{--dummy: 0;margin:0 8px 0 0}.login-bridge-state-dialog .green{color:#76b900}.login-bridge-state-dialog .white{color:#fff}\n"],encapsulation:2})}}return lt})();var Fe=s(58202),At=s(54250),Le=s(50778),Et=s(55059),$e=s(43897),Ze=s(59062);let xe=(()=>{class lt{constructor(ht,Xt,Ht,Je,tt,rt,et,St,Gt,yt,Wt,ke,be,Ae,qe,Lt,Zt,fn,hn,On){this.idmService=Xt,this.networkStatusService=Ht,this.nesUserInfoService=Je,this.telemetryUtilService=tt,this.dialog=rt,this.configuration=et,this.telemetryService=St,this.ecommerceService=Gt,this.gfnSdkService=yt,this.router=Wt,this.unsupportedBrowserService=ke,this.dialogService=be,this.genericDialog=Ae,this.routerService=qe,this.idmTelemetryService=Lt,this.focusManager=Zt,this.uasService=fn,this.starfleetConfig=hn,this.systemInfoService=On,this.cancelTimeoutExpired=!1,this.cancelTimer=null,this.loginListener=null,this.joinNowSubscription=null,this.logger=ht.getLogger("gfn/shared/idm/idmLoginService"),this.tvMode=!!et?.featureEnablement?.tvMode,this.useDeviceAuthLogin=!!this.starfleetConfig?.useDeviceAuthLogin,this.hideSystemName=!!et?.starfleet?.hideSystemName}initialize(){this.configuration.starfleet.sameTabLogin&&(this.idmTelemetryService.checkAndSendLoginStartEvent(),this.idmService.getAuthStatus().pipe((0,a.s)(1),(0,c.ZZ)(ht=>(this.logger.info("Received authStatus ",ht),ht.authReturnState===V.l4.LoginCompleted||ht.authReturnState===V.l4.LoginFailed?null===ht.error?this.idmTelemetryService.sendLoginSuccessUserSessionEvent():(this.displayLoginErrorMessages(ht.error),this.idmTelemetryService.sendLoginFailureUserSessionEvent()):ht.authReturnState===V.l4.LogoutCompleted&&null!==ht.error&&this.displayLogoutErrorMessages(ht),(0,n.of)(!0)))).subscribe()),this.checkAutoEntitleState()}checkAutoEntitleState(){this.configuration.featureEnablement.UASAutoEntitle&&this.configuration.uasConfig.sameTab&&this.configuration.uasConfig.redirectUrlIsRelative&&this.uasService.AutoEntitleState.pipe((0,y.p)(ht=>ht===Et.gT.Failed||ht===Et.gT.LoggedOut),(0,a.s)(1)).subscribe(ht=>this.displayLoginErrorMessages(ht),ht=>this.logger.error("error in getting Auto Entitle state"))}login(ht,Xt=!1){return(0,l.zV)([this.unsupportedBrowserService.getUnsupportedBrowserState$(!0),this.unsupportedBrowserService.shouldDisplayPWAGuidance$()]).pipe((0,a.s)(1),(0,c.ZZ)(([Je,tt])=>U.zk.isNativeLikePlatform()||Je.unsupportedState===At.B_.None?(0,n.of)(!0):Je.unsupportedState===At.B_.PWARequired&&tt?(this.routerService.navigate([R.V6.PwaWall],{skipLocationChange:!1}),(0,n.of)(!1)):this.dialogService.openUnsupportedSystemSoftBlockerDialog(Je).pipe((0,m.T)(rt=>(rt===Le.nw.Cancel&&this.logger.info("User cancelled the login"),rt===Le.nw.Continue))))).pipe((0,a.s)(1),(0,c.ZZ)(Je=>Je?this.nesUserInfoService.providerInfo$.pipe((0,c.ZZ)(tt=>{let rt=null;return 1===tt?.loginPreferredProviders?.length&&ht!==T.MCB.ScreenSwitchProvider&&tt.gfnServiceEndpoints.forEach(et=>{et.loginProvider===tt.loginPreferredProviders[0]&&(rt=et.idpId)}),this.handleStarfleetLogin(ht,Xt,rt)}),(0,M.W)(tt=>(this.logger.error("Failed to get idpId",tt),this.handleStarfleetLogin(ht,Xt,null)))):(0,n.of)(!1)))}setUpDialog(ht){const Xt={panelClass:["login-bridge-state-dialog","dialogPaddingRemove","nv-overlay-panel"],disableClose:!0};return Xt.data={idpId:ht},this.tvMode&&(Xt.maxWidth="100vw"),this.clearCancelTimer(),this.cancelTimer=setTimeout(()=>{this.idmService.cancelLogin(!0).subscribe(),this.cancelTimeoutExpired=!0,this.listenForErrorSubscription&&this.listenForErrorSubscription.unsubscribe()},this.configuration.starfleet.httpServerDuration),this.cancelTimeoutExpired=!1,Xt}clearCancelTimer(){this.cancelTimer&&clearTimeout(this.cancelTimer),this.cancelTimer=null}handleStarfleetLogin(ht,Xt=!1,Ht){return(0,n.of)(null).pipe((0,c.ZZ)(Je=>(0,l.zV)([(0,n.of)(Ht),this.gfnSdkService.getAuthType()])),(0,c.ZZ)(([Je,tt])=>{if(tt===B.hT.IDM||tt===B.hT.INVALID){if(this.idmTelemetryService.sendLoginStartEvent(Je,this.configuration.starfleet.sameTabLogin),this.configuration.starfleet.sameTabLogin){const rt=this.routerService.getCurrentUrl();return this.idmService.login(!1,Je,void 0,void 0,rt).pipe((0,M.W)(et=>(this.logger.error("failed to login the user with error",et),(0,n.of)(et))))}{const rt=this.setUpDialog(Je);return this.dialog.open(Pe,rt).afterClosed().pipe((0,c.ZZ)(et=>{switch(this.clearCancelTimer(),et){case V.ie.Success:return(0,n.of)(!0);case V.ie.Failure:case V.ie.CloseOnFailure:return(0,n.of)(!1);case V.ie.Cancel:return this.cancelTimeoutExpired||this.handleBridgeStateCancel(),(0,R.tE)(this.router.url)?this.handleStarfleetLogin(ht,Xt,Je):(0,n.of)(!1)}}))}}return tt===B.hT.IDM_FALLBACK?(this.loginListener=new d.h,this.bringUpJoinNowDialog(Je),this.loginListener):(this.logger.error("Attempted to open the login screen during a valid GaaS session"),(0,n.of)(!1))}))}resolveEcomUseCase(){return this.ecomUseCase?(0,n.of)({}):this.gfnSdkService.getAuthInfo().pipe((0,D.M)(ht=>{ht.timeRemaining&&0===Number(ht.timeRemaining)?this.ecomUseCase=Fe.Y1.GaaSFreeSampleAlreadyUsed:ht.authToken?ht.timeRemaining&&3601===Number(ht.timeRemaining)?this.ecomUseCase=Fe.Y1.GaaSFree1HourExceeded:ht.timeRemaining&&3602===Number(ht.timeRemaining)&&(this.ecomUseCase=Fe.Y1.GaaSFreeUserCanUpgrade):this.ecomUseCase=Fe.Y1.GaaSUnsupportedFreeTitle,this.idmService.loginProvider&&(this.idmService.loginProvider=null)}))}bringUpJoinNowDialog(ht){const[Xt,Ht]=function O(lt,ft,ht){return[(0,y.p)(ft,ht)(new f.c((0,S.i)(lt))),(0,y.p)((0,v.A)(ft,ht))(new f.c((0,S.i)(lt)))]}(this.resolveEcomUseCase().pipe((0,c.ZZ)(()=>this.ecommerceService.openJoinNowDialog(ht,this.ecomUseCase,Fe.qQ.InitialState).afterClosed()),(0,I.t)(1)),Je=>!!Je&&Je[1]===Fe.qQ.ExitedToLogin);Xt.pipe((0,c.ZZ)(()=>{this.joinNowSubscription&&this.joinNowSubscription.unsubscribe(),this.idmService.loginProvider&&(this.idmService.loginProvider=null);const Je=this.setUpDialog(ht);return this.focusManager.restoreFocusAfterClosed(()=>this.dialog.open(Pe,Je)).afterClosed()})).subscribe(Je=>{switch(Je){case V.ie.Success:this.loginListener.next(Je);break;case V.ie.Failure:this.bringUpJoinNowDialog(ht);break;case V.ie.Cancel:this.cancelTimeoutExpired||this.handleBridgeStateCancel(),this.gfnSdkService.isThisAGFNSDKSession()&&this.bringUpJoinNowDialog(ht)}}),Ht.subscribe(([Je])=>{Je?this.loginListener.next(Je):this.bringUpJoinNowDialog(ht)})}handleBridgeStateCancel(ht=!1){this.listenForErrorSubscription=this.idmService.cancelLogin(ht).pipe((0,m.T)(Xt=>{if(Xt){const Ht=new T.BAK({clientType:this.telemetryUtilService.getClientType(),currentScreen:this.telemetryService.getScreen(),userAction:T.ay7.LoginWithStarfleet,status:T.fbu.CancelledLoginCompleted,errorDetails:status.toString(),totalMs:0,errorUri:"",serverErrorCode:""});this.telemetryService.push(Ht)}})).subscribe(P.l,Xt=>{this.logger.info("Error detected while listening for UserCancelled Error",Xt)})}displayLoginErrorMessages(ht){let Xt,Ht;switch(this.logger.info("Auth error in login: ",ht),ht){case V.gH.ACCOUNT_LOCKED:Xt="starfleet.accountLockedErrorMessage",Ht="starfleet.accountLockedHeader";break;case V.gH.AGE_RESTRICTED:Xt="starfleet.ageReStrictiveErrorMessage",Ht="starfleet.ageReStrictiveHeader";break;case V.gH.ACCOUNT_INACTIVE:Xt="starfleet.accountInActiveErrorMessage",Ht="starfleet.accountInActiveHeader";break;default:Xt="starfleet.genericErrorMessage",Ht="common.loginUnsuccessful"}const Je=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:Ht},bodyText:{text:Xt},primaryButton:{text:"starfleet.loginPrimaryButton"},secondaryButton:{text:"common.cancel"}}});(0,_.O4)(Je.secondaryButtonClick.pipe((0,a.s)(1)),Je.primaryButtonClick.pipe((0,a.s)(1),(0,c.ZZ)(tt=>this.login(T.MCB.ScreenAccountMenu)))).subscribe(tt=>{Je.close()})}displayLogoutErrorMessages(ht){let Xt,Ht;this.logger.info("logout error: ",ht.error),ht.error===V.gH.LOGOUT_NOT_SUPPORTED?(Ht={headerText:{text:"starfleet.logoutErrorheader"},bodyText:{text:"starfleet.logoutErrorMessageLogoutNotsupported"},primaryButton:{text:"common.continue"},secondaryButton:{text:"common.notNow"}},Xt=ht.logoutNotSupportedRedirectUrl):Ht={headerText:{text:"starfleet.logoutErrorheader"},bodyText:{text:"starfleet.logoutErrorMessageGeneric"},primaryButton:{text:"starfleet.logoutPrimaryButtonGeneric"}};const Je=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:Ht});(0,_.O4)((0,i.T)(()=>ht.error===V.gH.LOGOUT_NOT_SUPPORTED,(0,n.of)(1).pipe((0,c.ZZ)(tt=>Je.secondaryButtonClick.pipe((0,a.s)(1)))),r.t),Je.primaryButtonClick.pipe((0,a.s)(1),(0,m.T)(tt=>{ht.error===V.gH.LOGOUT_NOT_SUPPORTED&&(Xt?window.open(Xt,"_blank"):this.logger.error("redirectUrl is empty in LogOut Error scenario ",Xt,ht.error))}))).subscribe(()=>Je.close())}getDeviceName$(){return this.useDeviceAuthLogin?this.systemInfoService.getSystemInfo([U.Lu.UserSpecifiedDeviceName,U.Lu.OSName,U.Lu.DeviceType,U.Lu.SystemName]).pipe((0,a.s)(1),(0,m.T)(ht=>{if(ht.UserSpecifiedDeviceName)return this.logger.info("User-specified device name provided for off-device login flow"),ht.UserSpecifiedDeviceName;this.logger.info("No user-specified device name for off-device login flow, building from OS name, device type, system name");const Xt=(0,X.zy)(ht.OSName),Ht=(0,X.u2)(ht.DeviceType),Je=this.hideSystemName?void 0:ht.SystemName;if(!Xt||!Ht)return void this.logger.info("OsName or DeviceType not found: ",Xt,Ht);const tt=`${Xt} ${Ht}`;return this.logger.info("DeviceName created: ",tt),Je?`${tt} ${Je}`:tt}),(0,M.W)(ht=>(this.logger.error("Error creating deviceName: ",ht),(0,n.of)(void 0)))):(0,n.of)(void 0)}static{this.\u0275fac=function(Xt){return new(Xt||lt)(re.KVO(U.J6),re.KVO(Z.k_),re.KVO(U.CF),re.KVO($e.lW),re.KVO(T.jgD),re.KVO(N.bZ),re.KVO(ie.Vk),re.KVO(ue.H0),re.KVO(Fe.yJ),re.KVO(B.DL),re.KVO(ve.Ix),re.KVO(At.Lk),re.KVO(Ze.o3),re.KVO(L.uh),re.KVO(R.HM),re.KVO(se.J),re.KVO(L.c_),re.KVO(Et.ln),re.KVO(V.X$),re.KVO(U.zW))}}static{this.\u0275prov=re.jDH({token:lt,factory:lt.\u0275fac,providedIn:"root"})}}return lt})()},9801:(Bt,z,s)=>{"use strict";s.d(z,{J:()=>a,a:()=>r});var n=s(35146),l=s(18433),d=s(46356),v=s(8619),S=s(65706),y=s(75707),f=s(58527),O=s(99469),P=s(78812),_=s(61958);const i="loginStartEvent";var r=function(c){return c.isSilentLoginTelemetry="isSilentLoginTelemetry",c.isLoginViaLoginHint="isLoginViaLoginHint",c.None="None",c}(r||{});let a=(()=>{class c{constructor(M,D,I,U,V,T){this.telemetryUtilService=D,this.telemetryService=I,this.starfleetService=U,this.config=V,this.appConfig=T,this.isLoginWallEnabled=!!this.appConfig?.featureEnablement?.showLoginWall,this.logger=M.getLogger("gfn/shared/idm/idmLoginService")}sendLoginSuccessUserSessionEvent(M=r.None){this.telemetryService.getValidUserIdResetObservable().pipe((0,v.p)(D=>!0===D),(0,S.s)(1),(0,y.ZZ)(D=>(this.logger.info("Sending login success user session event"),this.starfleetService.accountStatusChanged.pipe((0,S.s)(1))))).subscribe(D=>{let I=this.isLoginWallEnabled?l.ay7.LoginWithStarfleetViaLoginWall:l.ay7.LoginWithStarfleet;M==r.isSilentLoginTelemetry&&(I=l.ay7.SilentLoginDirectLaunch),M==r.isLoginViaLoginHint&&(I=l.ay7.LoginviaLoginHint);const U=new l.BAK({clientType:this.telemetryUtilService.getClientType(),currentScreen:this.telemetryService.getScreen(),userAction:I,status:l.fbu.Success,errorDetails:status.toString(),totalMs:0,errorUri:"",serverErrorCode:""});this.telemetryService.push(U,null,{immediateRequest:!0}),this.logger.info("Sent loginSuccessEvent telemetry")})}sendLoginFailureUserSessionEvent(M=r.None){this.logger.info("Sending login failed user session event"),(0,n.yU)(this.telemetryService.getCommonDataObservable(),this.telemetryService.getDefaultClientConsentObserable()).pipe((0,y.ZZ)(D=>this.starfleetService.accountStatusChanged.pipe((0,S.s)(1)))).subscribe(D=>{let I=this.isLoginWallEnabled?l.ay7.LoginWithStarfleetViaLoginWall:l.ay7.LoginWithStarfleet;M==r.isSilentLoginTelemetry&&(I=l.ay7.SilentLoginDirectLaunch),M==r.isLoginViaLoginHint&&(I=l.ay7.LoginviaLoginHint);const U=new l.BAK({clientType:this.telemetryUtilService.getClientType(),currentScreen:this.telemetryService.getScreen(),userAction:I,status:l.fbu.Failure,errorDetails:this.starfleetService.lastError.error_description,totalMs:0,serverErrorCode:this.starfleetService.lastError.error_code,errorUri:this.starfleetService.lastError.error_uri});this.telemetryService.push(U,null,{immediateRequest:!0})})}sendCreateHTTPServerErrorEvent(){this.logger.info("Sending create HTTP server error event");const M=new l.px4({portsUsed:this.config.portNumbers?this.config.portNumbers.toString():"",errorMessage:d.gH.HTTP_START_FAILED});this.telemetryService.push(M)}sendLoginStartEvent(M,D){this.logger.info("Sending login triggered event");const I={loginProviderIdpId:M||""},U=new l.JWD(I);D?sessionStorage.setItem(i,JSON.stringify(I)):this.telemetryService.push(U)}checkAndSendLoginStartEvent(){(0,n.yU)(this.telemetryService.getCommonDataObservable(),this.telemetryService.getDefaultClientConsentObserable()).subscribe(M=>{const D=sessionStorage.getItem(i);if(D){const I=new l.JWD(JSON.parse(D));this.telemetryService.push(I),sessionStorage.removeItem(i)}})}static{this.\u0275fac=function(D){return new(D||c)(f.KVO(O.J6),f.KVO(l.jgD),f.KVO(P.H0),f.KVO(d.hr),f.KVO(d.X$),f.KVO(_.Vk))}}static{this.\u0275prov=f.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})()},55512:(Bt,z,s)=>{"use strict";s.d(z,{k_:()=>Be});var l=function(He){return He.LoginSSONotApplicable="Login SSO not applicable",He.LoginSSOProcessing="Login SSO in progress",He}(l||{}),d=s(99469);const S={userId:"",externalId:"",idpId:"",displayName:"",isAuthenticated:!1,technicalConsent:d.Rg.None,behavioralConsent:d.Rg.None,email:"",age:0};var f=s(85735),O=s(43848),P=s(16229),_=s(27731),i=s(63997),r=s(75707),a=s(8619),c=s(99047),m=s(83915),M=s(25577),D=s(14714),I=s(91384),U=s(48765),V=s(65706),T=s(46356),N=s(36206),L=s(40996),E=s(78893),g=s(9801),R=s(32398),B=s(26875),X=s(58527),H=s(20381),J=s(72945),re=s(14354),ie=s(61958),ve=s(54292),ue=s(18433),se=s(71927),Z=s(20924);let Se=(()=>{class He{constructor(Q,A,me,ne,G){this.config=Q,this.bridgeService=me,this.sharedStorage=ne,this.dbService=G,this.storageType=T.eL.SharedStorage,this.logger=A.getLogger("crimson/NativeAuthService"),this.idTokenRefreshUnderDuration=this.config.idTokenRefreshUnderDuration??0,this.idTokenRefreshUnderDuration<0&&(this.idTokenRefreshUnderDuration=0),this.storageType=this.config?.storageType??T.eL.SharedStorage,this.config.storageType===T.eL.IndexedDB&&(this.globalStore=this.dbService.getGlobalStore(T.EK.DBName))}syncSessionData(){return se.e.loadFrom(this.storageType===T.eL.SharedStorage?this.sharedStorage:this.globalStore,this.idTokenRefreshUnderDuration).pipe((0,r.ZZ)(A=>{let me={};return A?.data?.user?.isAuthenticated&&(me={clientToken:A.data?.clientToken,accessToken:A.data?.accessToken,idToken:A.data?.idToken,clientTokenExpiry:A.data?.clientTokenExpiry,accessTokenExpiry:A.data?.accessTokenExpiry,idTokenExpiry:A.data?.idTokenExpiry,sub:A.data.user?.sub,idpName:A.data.user?.idp_name,idpId:A.data.user?.idp_id,externalId:A.data.user?.external_id,preferredUserName:A.data.user?.preferred_username,trackTechnicalData:A.data.user?.consent?.trackTechnicalData,trackBehavioralData:A.data.user?.consent?.trackBehavioralData}),this.bridgeService.executeCommand(Z.Ts.Common.Nativeauth.syncSessionData,me).pipe((0,m.T)(ne=>ne?new se.e(this.idTokenRefreshUnderDuration,{clientToken:ne.clientToken,accessToken:ne.accessToken,idToken:ne.idToken,clientTokenExpiry:ne.clientTokenExpiry,accessTokenExpiry:ne.accessTokenExpiry,idTokenExpiry:ne.idTokenExpiry,user:{isAuthenticated:!0,sub:ne.sub,idp_name:ne.idpName,idp_id:ne.idpId,external_id:ne.externalId,preferred_username:ne.preferredUserName,consent:{trackTechnicalData:ne.trackTechnicalData,trackBehavioralData:ne.trackBehavioralData}}},this.config.storageType??T.eL.SharedStorage):null))}))}static{this.\u0275fac=function(A){return new(A||He)(X.KVO(T.X$),X.KVO(d.J6),X.KVO(d.NZ),X.KVO(J.yQ),X.KVO(d.at))}}static{this.\u0275prov=X.jDH({token:He,factory:He.\u0275fac,providedIn:"root"})}}return He})();var Ce=s(86574);class Be{static{this.LOGIN_CANCELLED_BY_USER=T.gH.LOGIN_CANCELLED_BY_USER}get loginProvider(){return this._loginProvider}set loginProvider(Me){this._loginProvider=Me}constructor(Me,Q,A,me,ne,G,W,$,le,Pe,Fe,At,Le,Et){this.loggingService=Me,this.experienceControlService=Q,this.sharedStorageService=A,this.gfnSdkService=me,this.starfleetService=ne,this.router=G,this.appConfig=W,this.browserSupportService=$,this.telemetryUtilService=le,this.idmTelemetryService=Pe,this.redirectService=Fe,this.nativeAuthService=At,this.uasService=Le,this.loginHintService=Et,this.isStreamer=!1,this._loginProvider=null,this.disableStarfleetUser=!1,this.notifyLogoutStartedSubject=new f.m(1),this.isSameTabLoginFeatureEnabled=!1,this.initSub=new f.m(1),this.accountStatusChanged$=new f.m(1),this.accountStatusChangedWithAge$=new f.m(1),this.getAuthStatus=()=>this.starfleetService.getAuthStatus(),this.cancel=()=>this.starfleetService.cancel(),this.logger=Me.getLogger("gfn/shared/idm/idmService"),this.starfleetEnabled=!1,this.idmProvider$=new f.m(1),this.isStreamer=(0,E.I2)(this.router.url),this.isSameTabLoginFeatureEnabled=this.appConfig.starfleet.sameTabLogin}initialize(Me){this.disableStarfleetUser=Me??!1,this.updateIdmProvider(!0),this.accountStatusChanged.subscribe(Q=>{d.zk.isAndroidPlatform()&&this.nativeAuthService.syncSessionData().pipe((0,r.ZZ)(A=>this.starfleetService.syncSession(A))).subscribe(A=>this.logger.info("sucess in native session sync"),A=>this.logger.error("error in native session sync",A)),this.setExperienceControlData(Q)}),this.checkAndSilentLogin(),this.telemetryUtilService.saveTelmetrySessionIdOnLoginAndLogout(this.sameTabAuthStarted()),this.manageAccountStatusChanged(),this.appConfig?.featureEnablement?.logininfo?.enabled&&this.accountStatusChanged.pipe((0,a.p)(Q=>this.appConfig.starfleet.jarvisIdpId===Q?.idpId||!Q?.isAuthenticated),(0,r.ZZ)(Q=>this.loginHintService.updateSsoLoginInfoEntry(Q?.isAuthenticated,Q?.idpId,Q?.email,d.cq.GFN))).subscribe()}setExperienceControlData(Me){this.experienceControlService.setUserInfo(Me);const Q=this.appConfig.gxTarget.denyListExperiences||[];let A=Object.values(this.appConfig.gxTarget.experiences).filter(me=>!Q.includes(me));!Me.userId&&!(0,E.ED)()&&(A=A.filter(me=>this.appConfig.gxTarget.deviceIdActivatedExperiences.includes(me))),this.experienceControlService.setCvList(A),this.experienceControlService.refreshCloudVariables()}verifySsoSharedPageMessage(Me){return Me&&Me.login_hint&&Me.idp_id===this.appConfig.starfleet.jarvisIdpId}gfnStoredLoginInfoApplicableForSso(Me,Q,A){return!this.loginHintService.isEmptySilentLoginInfo(A)&&A.idp_id===Me&&Me===Q}isSsoEnabled(){return!this.browserSupportService.isLocalDomain()&&this.appConfig.starfleet.ssoEnabled&&!this.disableStarfleetUser}checkAndSilentLogin(){if(!this.isSsoEnabled())return this.initSub.next(!0),void this.logger.info("SSO not applicable, unblocking login status broadcast");let Me,Q,A;this.silentLoginHelperClass=new d.Ts(this.loggingService,this.appConfig.starfleet.ssoSharedPageUrl,this.appConfig.starfleet.maxWaitTimeIframeLoad),this.starfleetService.getAuthStatus().pipe((0,r.ZZ)(me=>me.authReturnState===T.l4.LogoutCompleted?this.silentLoginHelperClass.clearUserDetailsFromSharedPage:this.starfleetAccountStatusChangedWrapper()),(0,r.ZZ)(me=>me?.isAuthenticated?this.silentLoginHelperClass.saveUserDetailsToSharedPage({login_hint:me.email,idp_id:me.idp_id,sub:me.sub,timestamp:(new Date).toISOString()}):(0,O.of)(null))).subscribe(me=>this.logger.info("getAuthStatus success"),me=>this.logger.info("getAuthStatus error:",me)),(0,P.h)(this.starfleetService.accountStatusChanged.pipe((0,c.$)(),(0,m.T)(me=>(Me=me,Me))),this.silentLoginHelperClass.getUserDetailsFromSharedPage.pipe((0,m.T)(me=>(Q=me??{idp_id:""},Q))),this.starfleetService.getAuthStatus().pipe((0,m.T)(me=>me.authReturnState===T.l4.LogoutCompleted&&(A=!0,A)))).pipe((0,r.ZZ)(me=>Me&&Me.isAuthenticated?(this.logger.info("User is already logged in so silent login not required"),(0,O.of)(l.LoginSSONotApplicable)):A?(this.logger.info("Returning from Logout so skipping silent login"),(0,O.of)(l.LoginSSONotApplicable)):Me&&!Me.isAuthenticated&&Q?this.verifySsoSharedPageMessage(Q)?(this.logger.info("Silent login starting"),this.starfleetService.login({silentLoginInfo:{silentLoginHelperInstance:this.silentLoginHelperClass,ssoSharedPageData:Q}}).pipe((0,M.H)())):(this.logger.info("Silent login not possible due to login hints verification"),(0,O.of)(l.LoginSSONotApplicable)):(this.logger.info("Silent login processing ongoing"),(0,O.of)(l.LoginSSOProcessing))),(0,D.W)(me=>(this.logger.error("SSO checking failed with error ",me),(0,O.of)(l.LoginSSONotApplicable))),(0,I.M)(me=>{me!==l.LoginSSOProcessing&&(this.logger.info("Unblocking login status broadcast"),this.initSub.next(!0)),me===T.l4.LoginCompleted?this.idmTelemetryService.sendLoginSuccessUserSessionEvent(g.a.isSilentLoginTelemetry):me!==l.LoginSSOProcessing&&me!==l.LoginSSONotApplicable&&this.idmTelemetryService.sendLoginFailureUserSessionEvent(g.a.isSilentLoginTelemetry)}),(0,U.v)(me=>me===l.LoginSSOProcessing)).subscribe()}updateIdmProvider(Me){this.starfleetEnabled=Me;const Q={data:"starfleet"};this.gfnSdkService.getAuthInfo().subscribe(A=>{let me=null;A.authType===L.hT.IDM&&(me=A.authToken),this.starfleetService.initialize(!0,!1,me),this.isStreamer&&this.starfleetService.getAuthToken().subscribe(),this.idmProvider$.next({starfleetEnabled:this.starfleetEnabled,service:this.starfleetService})}),Q.data="starfleet",this.sharedStorageService.writeBlock("authProvider",Q).subscribe(A=>this.logger.info("success updating authProvider: ",A),A=>this.logger.error("error in updating auth provider: ",A))}handleAccountStatusChanged(Me,Q=!1){return!0!==Me.isAuthenticated?(this.logger.info("account status changed, user is logged out"),(0,O.of)(Me)):this.getAuthToken(Q).pipe((0,r.ZZ)(A=>null===A?(0,O.of)(R.f.NOT_LOGGED_IN):(this.logger.info("acquiring user at account status changed"),this.uasService.autoEntitleUser(A.token,Q))),(0,r.ZZ)(A=>A===R.f.AUTHORIZATION_ERROR&&!1===Q?(this.logger.warn("account-status-changed Auth Error retrying"),this.handleAccountStatusChanged(Me,!0)):A===R.f.NOT_LOGGED_IN||A===R.f.UNKNOWN||A===R.f.AUTHORIZATION_ERROR?this.logout(void 0,void 0,void 0,!0).pipe((0,r.ZZ)(me=>_.t)):(0,O.of)(Me)))}manageAccountStatusChanged(){let Me={};this.starfleetService.accountStatusChanged.pipe((0,r.ZZ)(Q=>this.handleAccountStatusChanged(Q)),(0,m.T)(Q=>{Q&&((0,B.isEqual)(Me,Q)||(Me.age=Q?.age,Me.isNetworkCall=Q?.isNetworkCall,(0,B.isEqual)(Me,Q)?(this.logger.info("Only AccountStatusChangedWithAge event emitted."),this.accountStatusChangedWithAge$.next(Q)):(this.logger.info("AccountStatusChanged event emitted."),this.accountStatusChanged$.next(Q),this.accountStatusChangedWithAge$.next(Q))),Me=Q)})).subscribe()}starfleetAccountStatusChangedWrapper(){return this.initSub.pipe((0,r.ZZ)(Me=>this.accountStatusChanged$))}get accountStatusChanged(){return this.starfleetAccountStatusChangedWrapper().pipe((0,m.T)(Me=>this.disableStarfleetUser?S:this.getUserFromStarfleet(Me)))}get accountStatusChangedWithAge(){return this.accountStatusChangedWithAge$.pipe((0,m.T)(Me=>this.disableStarfleetUser?S:this.getUserFromStarfleet(Me)))}getUserFromStarfleet(Me){return{userId:Me.sub,externalId:Me.external_id,idpId:Me.idp_id,displayName:Me.preferred_username,isAuthenticated:Me.isAuthenticated,technicalConsent:Me.consent?.trackTechnicalData?d.Rg.Full:d.Rg.None,behavioralConsent:Me.consent?.trackBehavioralData?d.Rg.Full:d.Rg.None,targetedAdsOptIn:Me.consent?.targetedAdsOptIn??void 0,email:Me.email,age:Me?.age,isNetworkCall:Me?.isNetworkCall}}get isUserTokenAvailable(){return this.starfleetService.isUserLoggedIn}get isLoggedIn(){return this.starfleetService.isUserLoggedIn}get cachedUser(){return this.getCachedUserForStarfleet().pipe((0,m.T)(Me=>{const Q={data:{},expired:!0};return Q.expired=Me.expired,Me.data&&(Q.data=this.getUserFromStarfleet(Me.data)),Q}))}get cachedUserAndAffiliateStatus(){return(0,i.v)(()=>this.getCachedUserAndAffiliateStatusForStarfleet()).pipe((0,m.T)(Me=>{const Q={data:[],expired:!0};return Q.expired=Me.expired,Me.data&&Me.data.length&&(Q.data.push(this.getUserFromStarfleet(Me.data[0])),Q.data.push(Me.data[1])),Q}))}getCachedUserAndAffiliateStatusForStarfleet(){return this.starfleetAccountStatusChangedWrapper().pipe((0,V.s)(1),(0,r.ZZ)(Me=>Me.isAuthenticated?this.readStoredStarfleetUserAndAffiliateStatus(Me,!0):(0,O.of)({data:[Me,null],expired:!0})))}getCachedUserForStarfleet(){return this.starfleetAccountStatusChangedWrapper().pipe((0,V.s)(1),(0,m.T)(Me=>Me.isAuthenticated?{data:Me,expired:!1}:{data:void 0,expired:!0}))}get cachedAffiliateStatus(){return this.getCachedAffiliateStatusForStarfleet()}getCachedAffiliateStatusForStarfleet(){return this.starfleetAccountStatusChangedWrapper().pipe((0,V.s)(1),(0,r.ZZ)(Me=>Me.isAuthenticated?this.readStoredStarfleetUserAndAffiliateStatus(Me,!1):(0,O.of)({data:void 0,expired:!0})))}readStoredStarfleetUserAndAffiliateStatus(Me,Q){return this.sharedStorageService.readBlock(`idm_${Me.sub}`).pipe((0,m.T)(A=>Q?{data:[Me,A],expired:!1}:{data:A,expired:!1}))}setCachedAffiliateStatus(Me,Q){return this.setCachedAffiliateStatusForStarfleet(Me,Q)}setCachedAffiliateStatusForStarfleet(Me,Q){return this.sharedStorageService.writeBlock(`idm_${Me||d.Qe}`,Q)}getAuthToken(Me,Q){return this.starfleetService.getAuthToken(Me,Q).pipe((0,m.T)(A=>({token:A=this.disableStarfleetUser?null:A})))}setIdToken(Me){return this.starfleetService.createNewSessionFromIdToken(Me)}login(Me,Q,A,me,ne,G){return this.uasService.onLoginInitiated(A).pipe((0,r.ZZ)(W=>(0,P.h)(this.starfleetService.login({force:Me,idpId:Q,preCreatedWindow:A,deviceName:me,returnLocationUrl:ne,silentLoginInfo:G,redirect:W}).pipe((0,I.M)($=>{($===T.l4.LoginFailed||$===T.l4.LoginFailedNoRetry)&&this.uasService.onLoginFailed(this.starfleetService.lastError.error_code)})),this.uasService.AutoEntitleState)))}generateLogoutURL(){return this.accountStatusChanged.pipe((0,V.s)(1),(0,r.ZZ)(Me=>this.redirectService.getRedirectUrl(N.r7.GfnAccountManagementSSO,{idpId:Me.idpId,Plt:N.Gl.Browser})))}logout(Me,Q,A,me){this.isSameTabLoginFeatureEnabled&&this.notifyLogoutStartedSubject.next(!0);const ne=this.isSameTabLoginFeatureEnabled&&!me?this.generateLogoutURL():(0,O.of)(Q),G=(A||document.baseURI).split("?")[0];return ne.pipe((0,r.ZZ)(W=>this.starfleetService.logout(Me,W,G,me)))}refreshUser(){return this.starfleetService.refreshUser().pipe((0,m.T)(Me=>this.getUserFromStarfleet(Me)))}getUserServiceEndpoint(Me){return this.getServiceEndpointViaStarfleet(Me)}getClientData(Me,Q){return this.starfleetService.getClientData(Me,Q)}setClientData(Me,Q,A){return this.starfleetService.setClientData(Me,Q,A)}appendClientData(Me,Q,A){return this.starfleetService.appendClientData(Me,Q)}deleteClientData(Me,Q,A){return this.starfleetService.deleteClientData(Me,Q)}getServiceEndpointViaStarfleet(Me){return this.starfleetAccountStatusChangedWrapper().pipe((0,m.T)(Q=>{let A=Me.gfnServiceEndpoints.find(me=>me.idpId===Q.idp_id);if(!A||this.disableStarfleetUser){this.logger.info("Login provider not found with idp id, returning default provider");const me=Me.defaultProvider;A=Me.gfnServiceEndpoints.find(ne=>ne.loginProvider===me)}return{user:this.getUserFromStarfleet(Q),serviceEndpoint:A}}))}get accountsUrl$(){return(0,O.of)("")}handleAuthError(Me,Q,A,...me){return this.starfleetService.handleAuthError(Me,Q,A,...me)}getLastError(){return this.starfleetService.lastError||{error_code:void 0,error_description:void 0,error_uri:void 0}}getLogoutInitializeNotification(){return this.isSameTabLoginFeatureEnabled?this.notifyLogoutStartedSubject.asObservable():_.t}sameTabAuthStarted(){return this.isSameTabLoginFeatureEnabled?this.starfleetService.sameTabAuthStarted():_.t}cancelLogin(Me){return this.uasService.cancelAutoEntitlement(),this.isLoggedIn.pipe((0,r.ZZ)(Q=>Q?(this.logger.info("user was logged in, and cancelled during auto entitle"),(0,O.of)({authData:{},isLoggedIn:Q})):this.starfleetService.cancelLogin(Me).pipe((0,m.T)(A=>({authData:A,isLoggedIn:Q})))),(0,m.T)(Q=>(this.logger.info("Cancelled error detected while user logging in",Q.authData),(!Q.authData.error&&!this.appConfig.starfleet.useAuthorizationCodeFlow||Q.isLoggedIn)&&this.logout(Q.authData.access_token,null,null,!0).subscribe(),Q.authData)))}getDeviceDisplayCode(){const Me={...this.starfleetService.getDeviceDisplayCode()};let Q=N.lp[N.r7.GfnOffDeviceLogin];return this.appConfig.starfleet.offDeviceShortUrl&&(Q=this.appConfig.starfleet.offDeviceShortUrl),Me.url=Q,Me}static{this.\u0275fac=function(Q){return new(Q||Be)(X.KVO(d.J6),X.KVO(H.BW),X.KVO(J.yQ),X.KVO(L.DL),X.KVO(T.hr),X.KVO(re.Ix),X.KVO(ie.Vk),X.KVO(ve.vT),X.KVO(ue.jgD),X.KVO(g.J),X.KVO(N.Q5),X.KVO(Se),X.KVO(Ce.l),X.KVO(d.IU))}}static{this.\u0275prov=X.jDH({token:Be,factory:Be.\u0275fac,providedIn:"root"})}}},6687:(Bt,z,s)=>{"use strict";s.d(z,{kN:()=>O.kN,Nc:()=>O.Nc,Uj:()=>_,pQ:()=>O.pQ});var n=s(12532),l=s(91384),d=s(24737),v=s(48765),S=s(26875),y=s(20924),f=s(99469),O=s(85830),P=s(58527);let _=(()=>{class i extends f.jS{constructor(a,c,m){const M=c.getLogger("IpcService");super(a,M),this.logger=M,this.defaultHandlerType=f.Jm.Types.HandlerEventType.IpcEvent,this.registerNewHandler(f.Jm.Types.HandlerEventType.IpcEvent,D=>!0,D=>(Object.values(O.kN).includes(D.type)||this.logger.error("Unrecognized IPC type: ",D.type),D.type),D=>D.content,D=>{const I=JSON.parse(D);return((0,S.isNil)(I)||(0,S.isNil)(I.type)||I.type!==O.kN.QueueEmpty&&(0,S.isNil)(I.content))&&this.logger.error("Improperly formed IPC message received: ",D),I}),m.get$(f.D4.IpcNewMessage).subscribe(()=>this.checkIpcMessages(),D=>{this.logger.error("Error received from nativeEventService for IpcNewMessage event: ",D)})}pushMessage(a){if((0,S.isNil)(a))throw new Error("Must be a valid message");return this.bridgeService.executeCommand(y.Ts.Common.Ipc.Push,{message:a}).pipe((0,l.M)(c=>this.logger.info(c,a)))}checkIpcMessages(){this.bridgeService.executeCommand(y.Ts.Common.Ipc.Pop).pipe((0,d.fT)(a=>a?.type===O.kN.QueueEmpty?n.w:(0,S.isNil)(a?.type)?(this.logger.error("Invalid ipc message received: ",a),n.w):this.bridgeService.executeCommand(y.Ts.Common.Ipc.Pop)),(0,v.v)(a=>a?.type!==O.kN.QueueEmpty)).subscribe(a=>{this.processMessage(JSON.stringify(a))})}static{this.\u0275fac=function(c){return new(c||i)(P.KVO(f.NZ),P.KVO(f.J6),P.KVO(f.dU))}}static{this.\u0275prov=P.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})()},85830:(Bt,z,s)=>{"use strict";s.d(z,{Nc:()=>d,kN:()=>l,pQ:()=>v});var n=s(20924),l=function(S){return S.SelfUpdate="IPC_SELF_UPDATE_EVENT",S.RecommendedUpdate="IPC_RECOMMENDED_UPDATE_EVENT",S.RequiredUpdate="IPC_REQUIRED_UPDATE_EVENT",S.CriticalUpdate="IPC_CRITICAL_UPDATE_EVENT",S.PushNotification="IPC_PUSH_NOTIFICATION",S.LoginStatusChanged="IPC_LOGIN_STATUS_CHANGED_EVENT",S.CollectClientLogs="IPC_COLLECT_LOGS",S.UpdateExperimentContext="IPC_UPDATE_EXPERIMENT_CONTEXT",S.ProgressUpdate="IPC_PROGRESS_UPDATE",S.QueueEmpty="IPC_QUEUE_EMPTY",S.UploadExceptionInfo="IPC_UPLOAD_EXCEPTION_INFO",S.SelfUpdateStatus="IPC_GET_SELF_UPDATE_STATUS",S.UpdateCheckFailure="IPC_UPDATE_CHECK_FAILURE",S.DownloadPrepareFailure="IPC_DOWNLOAD_PREPARE_FAILURE",S.SelfUpdateThresholdNotReached="IPC_SELF_UPDATE_FAILURE_THRESHOLD_NOT_REACHED",S}(l||{}),d=function(S){return S.ExceptionOccurred="ExceptionOccurred",S.UserFeedBack="UserFeedback",S.LoginFailure="LoginFailure",S}(d||{}),v=n.Or.Common.Ipc.IpcTargets},95318:(Bt,z,s)=>{"use strict";s.d(z,{A$:()=>L,Bp:()=>T,E8:()=>v,HP:()=>_,JR:()=>i,Lx:()=>c,V9:()=>U,VQ:()=>M,f$:()=>D,mF:()=>I,oY:()=>n});const n=1e4;var v=function(R){return R.OwnedPlatformSync="PLATFORM_SYNC",R.OwnedManual="MANUAL",R.NotOwned="NOT_OWNED",R}(v||{}),_=function(R){return R.Marquee="MARQUEE",R.Main="MAIN",R.Library="LIBRARY",R.Favorites="FAVORITES",R.LoginWall="LOGINWALL",R}(_||{});const i={genreDefinitions:[],appStoreDefinitions:[],ratingDefinitions:[]},c={items:[]},M={sortOrderDefinitions:[],filterGroupDefinitions:[]};var D=function(R){return R.UNKNOWN="UNKNOWN",R.MOUSE="MOUSE",R.MOUSE_KEYBOARD="MOUSE_KEYBOARD",R.X_INPUT_GAMEPAD="X_INPUT_GAMEPAD",R.DIRECT_INPUT_GAMEPAD="DIRECT_INPUT_GAMEPAD",R.JOYSTICK="JOYSTICK",R.WHEEL="WHEEL",R.TOUCHSCREEN="TOUCHSCREEN",R.WII_CONTROLLER="WII_CONTROLLER",R.KINECT_CONTROLLER="KINECT_CONTROLLER",R.KEYBOARD="KEYBOARD",R.X_INPUT_GAMEPAD_PARTIAL="X_INPUT_GAMEPAD_PARTIAL",R.DIRECT_INPUT_GAMEPAD_PARTIAL="DIRECT_INPUT_GAMEPAD_PARTIAL",R.GAMEPAD="GAMEPAD",R.GAMEPAD_PARTIAL="GAMEPAD_PARTIAL",R.DUALSENSE_GAMEPAD="DUALSENSE_GAMEPAD",R.DUALSHOCK4_GAMEPAD="DUALSHOCK4_GAMEPAD",R}(D||{});const I="CLIENT_UPSELL_MESSAGES",U="LOGIN_WALL";var T=function(R){return R.Manual="MANUAL",R.StoreConnect="STORE_CONNECT",R.StoreReconnect="STORE_RECONNECT",R.StoreResync="STORE_RESYNC",R.ManualPostCancellation="MANUAL_POST_CANCELLATION",R}(T||{});function L(R){return R?.gfn?.library?.status?R.gfn.library.status:v.NotOwned}},14043:(Bt,z,s)=>{"use strict";s.d(z,{VQ:()=>m.VQ,JR:()=>m.JR,Br:()=>ht,E8:()=>m.E8,V9:()=>m.V9,Bp:()=>m.Bp,HP:()=>m.HP,mF:()=>m.mF,A$:()=>m.A$});var n=s(80583),l=s(43848),d=s(31315),v=s(59859),S=s(8619),y=s(75707),f=s(91384),O=s(53461),P=s(65706),_=s(83915),i=s(14714),r=s(55833),a=s(6478),c=s(81834),m=s(95318),M=s(82094),D=s(70521),I=s(40996),U=s(43117),V=s(26875),T=s(18433);const B="\nquery GetGameSection($vpcId: String!, $locale: String!, $panelNames: [String]!) {\n panels(vpcId: $vpcId, language: $locale, names: $panelNames) {\n id\n name\n sections {\n id\n title\n renderDirectives\n seeMoreInfo {\n filterTileId\n title\n filterIds\n minTiles\n sortOrderId\n }\n items {\n __typename\n ...filterFields\n ...minimalGameFields\n ...marketingFields\n }\n }\n }\n}\n\nfragment filterFields on FilterItem {\n id\n title\n image\n filterIds\n}\n\nfragment minimalGameFields on GameItem {\n app {\n id\n images {\n TV_BANNER\n HERO_IMAGE\n }\n title\n library {\n favorited\n }\n itemMetadata {\n campaignIds\n }\n variants {\n id\n shortName\n appStore\n supportedControls\n gfn {\n library {\n status\n selected\n }\n status\n }\n }\n gfn {\n playabilityState\n minimumMembershipTierLabel\n catalogSkuStrings {\n SKU_BASED_TAG\n }\n }\n }\n}\n\nfragment marketingFields on MarketingItem {\n id\n title\n subTitle\n body\n images {\n MARQUEE_HERO_IMAGE\n HERO_IMAGE\n }\n action {\n uri\n label\n infoText\n }\n schedule {\n startTime\n endTime\n }\n}",re="query GetAppDataQueryForAppId($vpcId: String!, $locale: String!, $appIds: [String]!) {\n apps(vpcId: $vpcId, language: $locale, appIds: $appIds) {\n items {\n appStore\n contentRatings {\n categoryKey\n contentDescriptorKeys\n interactiveElementKeys\n type\n }\n developerName\n displaysOwnRatingDuringGameplay\n id\n genres\n images {\n GAME_BOX_ART\n GAME_LOGO\n HERO_IMAGE\n SCREENSHOTS\n TV_BANNER\n KEY_ART\n }\n nvidiaTech {\n PHOTO_MODE\n FREESTYLE\n HIGHLIGHTS\n }\n title\n shortDescription\n longDescription\n maxLocalPlayers\n maxOnlinePlayers\n supportedControls\n publisherName\n marqueeScrimPrimaryRGB {\n r\n g\n b\n }\n computedValues {\n earliestStreetDate\n paymentModels {\n __typename\n }\n }\n itemMetadata {\n campaignIds\n }\n variants {\n streetDate\n appStore\n id\n shortName\n supportedControls\n storeUrl\n publisherName\n developerName\n paymentModels {\n __typename\n }\n gfn {\n status\n features {\n ...feature\n }\n supportedLanguages {\n language\n ... on GfnLanguageSettings {\n availableFeatures\n setMethod\n }\n }\n }\n }\n gfn {\n playabilityState\n minimumMembershipTierLabel\n catalogSkuStrings {\n SKU_BASED_TAG\n SKU_BASED_PLAYABILITY_TEXT\n SKU_BASED_UNPLAYABLE_DIALOG_HEADER\n SKU_BASED_UNPLAYABLE_DIALOG_BODY_UPGRADE\n SKU_BASED_UNPLAYABLE_DIALOG_BODY_UPGRADE_ECOMM_RESTRICTED\n }\n }\n }\n }\n}\nfragment feature on GfnSubscriptionFeature {\n __typename\n ... on GfnSubscriptionFeatureValue {\n key\n value\n }\n ... on GfnSubscriptionFeatureValueList {\n key\n values\n }\n}\n",G={StaticAppData:"query GetStaticAppData($locale: String!){\n genreDefinitions(language: $locale){\n genre\n label\n }\n appStoreDefinitions(language: $locale){\n store\n label\n sortOrder\n smallImageUrl\n features {\n __typename\n ... on AccountLinkingSso {\n displayProposition\n supported\n }\n ... on AccountGamesSyncing {\n displayProposition\n supported\n }\n }\n accountLinkingMetadata {\n supportedVariantIds\n isSupported\n isRequired\n label\n }\n }\n ratingDefinitions(language: $locale){\n ratingSystem\n label\n displayInterval\n contentDescriptors{\n key\n label\n sortOrder\n }\n interactiveElements {\n key\n label\n sortOrder\n }\n ratings {\n categoryKey\n description\n label\n minimumAge\n largeImageUrl\n smallImageUrl\n }\n }\n}",UserAccount:"{\n userAccount {\n storesData {\n store\n accountLinkingData {\n userDisplayName\n expiresIn\n userIdentifier\n accountSyncingData {\n totalNumberOfSyncedGfnGames\n syncState\n syncDate\n }\n }\n }\n }\n}",Marquee:"query GetMarquee($vpcId: String!, $locale: String!, $panelNames: [String]!) {\n panels(vpcId: $vpcId, language: $locale, names: $panelNames) {\n id\n name\n sections {\n id\n title\n items {\n __typename\n ...marketingFields\n ...marqueeGameFields\n }\n }\n }\n}\nfragment marketingFields on MarketingItem {\n id\n title\n images {\n MARQUEE_HERO_IMAGE\n HERO_IMAGE\n }\n body\n action {\n uri\n label\n infoText\n }\n schedule {\n startTime\n endTime\n }\n}\nfragment marqueeGameFields on GameItem {\n app {\n id\n title\n publisherName\n contentRatings {\n categoryKey\n contentDescriptorKeys\n interactiveElementKeys\n type\n }\n marqueeScrimPrimaryRGB {\n r\n g\n b\n }\n images {\n GAME_LOGO\n MARQUEE_HERO_IMAGE\n HERO_IMAGE\n }\n itemMetadata {\n campaignIds\n }\n variants {\n id\n appStore\n supportedControls\n }\n }\n}",Favorites:B,LibrarySection:B,LibrarySectionWithTime:"\nquery GetGameSection($vpcId: String!, $locale: String!, $panelNames: [String]!) {\n panels(vpcId: $vpcId, language: $locale, names: $panelNames) {\n id\n name\n sections {\n id\n title\n renderDirectives\n seeMoreInfo {\n filterTileId\n title\n filterIds\n minTiles,\n sortOrderId\n }\n items {\n __typename\n ...filterFields\n ...minimalGameFields\n }\n }\n }\n}\n\nfragment filterFields on FilterItem {\n id\n title\n image\n filterIds\n}\n\nfragment minimalGameFields on GameItem {\n app {\n id\n images {\n TV_BANNER\n HERO_IMAGE\n KEY_ART\n }\n title\n library {\n favorited\n }\n itemMetadata {\n campaignIds\n }\n variants {\n id\n shortName\n appStore\n publisherName\n supportedControls\n gfn {\n library {\n status\n selected\n lastPlayedDate\n }\n status\n }\n contentRatings {\n categoryKey\n type\n }\n }\n gfn {\n playabilityState\n minimumMembershipTierLabel\n catalogSkuStrings {\n SKU_BASED_TAG\n }\n }\n }\n}\n",Main:B,Campaigns:"query GetCampaignsInfo($locale: String!, $vpcId: String!) {\n campaigns(vpcId: $vpcId, language: $locale) {\n items {\n action {\n label\n url\n }\n id\n images {\n GAME_BOX_ART\n GAME_LOGO\n TV_BANNER\n HERO_IMAGE\n MARQUEE_HERO_IMAGE\n }\n promoText {\n summary\n tag\n }\n marqueeScrimPrimaryRGB {\n r\n g\n b\n }\n schedule {\n endTime\n startTime\n }\n }\n }\n}",FilterGroupAndSortOrderDefinitions:"query GetFilterGroupAndSortOrderDefinitions($locale: String!) {\n filterGroupDefinitions(language: $locale) {\n id\n label\n filters {\n id\n label\n filters\n }\n }\n sortOrderDefinitions(language: $locale) {\n id\n label\n orderBy\n }\n}",AppsWithSearch:"query GetSearchFilterResults(\n $vpcId: String!,\n $locale: String!,\n $sortString: String!,\n $fetchCount: Int!,\n $cursor: String!,\n $searchString: String!,\n $filters: AppFilterFields!) {\n apps(\n vpcId: $vpcId,\n language: $locale,\n orderBy: $sortString,\n first: $fetchCount,\n after: $cursor,\n searchQuery: $searchString,\n filters: $filters\n ){\n numberReturned\n numberSupported\n pageInfo {\n hasNextPage\n endCursor\n totalCount\n }\n items {\n id\n title\n library {\n favorited\n }\n images {\n TV_BANNER\n HERO_IMAGE\n }\n variants {\n id\n appStore\n supportedControls\n gfn {\n library {\n status\n selected\n }\n }\n }\n gfn {\n playabilityState\n minimumMembershipTierLabel\n catalogSkuStrings {\n SKU_BASED_TAG\n }\n }\n itemMetadata {\n campaignIds\n }\n }\n }\n}",AppsWithoutSearch:"query GetSearchFilterResults(\n $vpcId: String!,\n $locale: String!,\n $sortString: String!,\n $fetchCount: Int!,\n $cursor: String!,\n $filters: AppFilterFields!) {\n apps(\n vpcId: $vpcId,\n language: $locale,\n orderBy: $sortString,\n first: $fetchCount,\n after: $cursor,\n filters: $filters\n ){\n numberReturned\n numberSupported\n pageInfo {\n hasNextPage\n endCursor\n totalCount\n }\n items {\n id\n title\n library {\n favorited\n }\n images {\n TV_BANNER\n HERO_IMAGE\n }\n variants {\n id\n appStore\n supportedControls\n gfn {\n library {\n status\n selected\n }\n }\n }\n gfn {\n playabilityState\n minimumMembershipTierLabel\n catalogSkuStrings {\n SKU_BASED_TAG\n }\n }\n itemMetadata {\n campaignIds\n }\n }\n }\n}",UpsellMessages:"query GetUpsellMessages($locale: String!, $upsellMessageKey: [String]!) {\n clientStrings(language: $locale, keys: $upsellMessageKey)\n}",AppDataForAppId:"query GetAppDataQueryForAppId($vpcId: String!, $locale: String!, $appIds: [String]!) {\n apps(vpcId: $vpcId, language: $locale, appIds: $appIds) {\n items {\n appStore\n contentRatings {\n categoryKey\n contentDescriptorKeys\n interactiveElementKeys\n type\n }\n developerName\n displaysOwnRatingDuringGameplay\n id\n genres\n images {\n GAME_BOX_ART\n GAME_LOGO\n HERO_IMAGE\n SCREENSHOTS\n TV_BANNER\n KEY_ART\n }\n nvidiaTech {\n PHOTO_MODE\n FREESTYLE\n HIGHLIGHTS\n }\n title\n longDescription\n shortDescription\n maxLocalPlayers\n maxOnlinePlayers\n supportedControls\n publisherName\n marqueeScrimPrimaryRGB {\n r\n g\n b\n }\n computedValues {\n earliestStreetDate\n paymentModels {\n __typename\n }\n }\n itemMetadata {\n campaignIds\n }\n variants {\n streetDate\n appStore\n id\n shortName\n supportedControls\n storeUrl\n publisherName\n developerName\n paymentModels {\n __typename\n }\n gfn {\n library {\n status\n selected\n }\n status\n features {\n ...feature\n }\n supportedLanguages {\n language\n ... on GfnLanguageSettings {\n availableFeatures\n setMethod\n }\n }\n }\n }\n gfn {\n playabilityState\n minimumMembershipTierLabel\n catalogSkuStrings {\n SKU_BASED_TAG\n SKU_BASED_PLAYABILITY_TEXT\n SKU_BASED_UNPLAYABLE_DIALOG_HEADER\n SKU_BASED_UNPLAYABLE_DIALOG_BODY_UPGRADE\n SKU_BASED_UNPLAYABLE_DIALOG_BODY_UPGRADE_ECOMM_RESTRICTED\n }\n }\n }\n }\n}\nfragment feature on GfnSubscriptionFeature {\n __typename\n ... on GfnSubscriptionFeatureValue {\n key\n value\n }\n ... on GfnSubscriptionFeatureValueList {\n key\n values\n }\n}\n",AppDataForAppIdWithoutMILA:re,AppDataForCmsId:"query GetAppDataQueryForCmsId($vpcId: String!, $locale: String!, $cmsIds: [Int]!) {\n apps(vpcId: $vpcId, language: $locale, variantIds: $cmsIds) {\n items {\n appStore\n contentRatings {\n categoryKey\n contentDescriptorKeys\n interactiveElementKeys\n type\n }\n developerName\n displaysOwnRatingDuringGameplay\n id\n genres\n images {\n GAME_BOX_ART\n HERO_IMAGE\n SCREENSHOTS\n TV_BANNER\n KEY_ART\n }\n nvidiaTech {\n PHOTO_MODE\n FREESTYLE\n HIGHLIGHTS\n }\n title\n shortDescription\n longDescription\n maxLocalPlayers\n maxOnlinePlayers\n supportedControls\n publisherName\n marqueeScrimPrimaryRGB {\n r\n g\n b\n }\n computedValues {\n earliestStreetDate\n paymentModels {\n __typename\n }\n }\n itemMetadata {\n campaignIds\n }\n variants {\n streetDate\n appStore\n id\n shortName\n supportedControls\n storeUrl\n publisherName\n developerName\n paymentModels {\n __typename\n }\n gfn {\n status\n features {\n ...feature\n }\n supportedLanguages {\n language\n ... on GfnLanguageSettings {\n availableFeatures\n setMethod\n }\n }\n }\n }\n gfn {\n playabilityState\n minimumMembershipTierLabel\n catalogSkuStrings {\n SKU_BASED_TAG\n SKU_BASED_PLAYABILITY_TEXT\n SKU_BASED_UNPLAYABLE_DIALOG_HEADER\n SKU_BASED_UNPLAYABLE_DIALOG_BODY_UPGRADE\n SKU_BASED_UNPLAYABLE_DIALOG_BODY_UPGRADE_ECOMM_RESTRICTED\n }\n }\n }\n }\n}\nfragment feature on GfnSubscriptionFeature {\n __typename\n ... on GfnSubscriptionFeatureValue {\n key\n value\n }\n ... on GfnSubscriptionFeatureValueList {\n key\n values\n }\n}\n",AppDataForCmsIdWithoutVpcId:"query GetAppDataQueryForCmsIdWithoutVpcId($locale: String!, $cmsIds: [Int]!) {\n apps(language: $locale, variantIds: $cmsIds) {\n items {\n appStore\n contentRatings {\n categoryKey\n contentDescriptorKeys\n interactiveElementKeys\n type\n }\n developerName\n displaysOwnRatingDuringGameplay\n id\n genres\n images {\n GAME_BOX_ART\n HERO_IMAGE\n SCREENSHOTS\n TV_BANNER\n KEY_ART\n }\n nvidiaTech {\n PHOTO_MODE\n FREESTYLE\n HIGHLIGHTS\n }\n title\n shortDescription\n longDescription\n maxLocalPlayers\n maxOnlinePlayers\n supportedControls\n publisherName\n marqueeScrimPrimaryRGB {\n r\n g\n b\n }\n computedValues {\n earliestStreetDate\n paymentModels {\n __typename\n }\n }\n itemMetadata {\n campaignIds\n }\n variants {\n streetDate\n appStore\n id\n shortName\n supportedControls\n storeUrl\n publisherName\n developerName\n paymentModels {\n __typename\n }\n }\n gfn {\n playabilityState\n minimumMembershipTierLabel\n catalogSkuStrings {\n SKU_BASED_TAG\n SKU_BASED_PLAYABILITY_TEXT\n SKU_BASED_UNPLAYABLE_DIALOG_HEADER\n SKU_BASED_UNPLAYABLE_DIALOG_BODY_UPGRADE\n SKU_BASED_UNPLAYABLE_DIALOG_BODY_UPGRADE_ECOMM_RESTRICTED\n }\n }\n }\n }\n}",LoginWallData:"query GetLoginWallData($locale: String!, $vpcId: String!, $panelNames: [String]!, $stringsKey: [String]!) {\n panels(language: $locale, vpcId: $vpcId, names: $panelNames) {\n id\n name\n sections {\n items {\n __typename\n ...gameFields\n }\n }\n }\n clientStrings(language: $locale, keys: $stringsKey)\n}\nfragment gameFields on GameItem {\n app {\n images {\n TV_BANNER\n }\n }\n}",LoginWallStringsOnly:"query GetLoginWallStrings($locale: String!, $stringsKey: [String]!) {\n clientStrings(language: $locale, keys: $stringsKey)\n}",AddFavoriteApp:"mutation AddFavoriteApp($appId: String!, $locale: String!) {\n addFavoriteApp(language: $locale, appId: $appId) {\n app {\n id\n }\n }\n}",RemoveFavoriteApp:"mutation RemoveFavoriteApp($appId: String!, $locale: String!) {\n removeFavoriteApp(language: $locale, appId: $appId) {\n app {\n id\n }\n }\n}",AddOwnedVariant:"mutation AddOwnedVariant($cmsId: String!, $locale: String!) {\n addOwnedVariant(language: $locale, variantId: $cmsId) {\n app {\n id\n }\n }\n}",RemoveOwnedVariant:"mutation RemoveOwnedVariant($cmsId: String!, $locale: String!) {\n removeOwnedVariant(language: $locale, variantId: $cmsId) {\n app {\n id\n }\n }\n}",SelectOwnedVariant:"mutation SelectOwnedVariant($cmsId: String!, $locale: String!) {\n selectOwnedVariant(language: $locale, variantId: $cmsId) {\n app {\n id\n }\n }\n}",OverallGfnSupportedLanguages:"{\n overallGfnSupportedLanguages {\n language\n }\n}"},W={AppsWithSearch:"query GetSearchFilterResults(\n $vpcId: String!,\n $locale: String!,\n $sortString: String!,\n $fetchCount: Int!,\n $cursor: String!,\n $searchString: String!,\n $filters: AppFilterFields!) {\n apps(\n vpcId: $vpcId,\n language: $locale,\n orderBy: $sortString,\n first: $fetchCount,\n after: $cursor,\n searchQuery: $searchString,\n filters: $filters\n ){\n numberReturned\n numberSupported\n pageInfo {\n hasNextPage\n endCursor\n totalCount\n }\n items {\n id\n title\n images {\n TV_BANNER\n HERO_IMAGE\n }\n variants {\n id\n appStore\n supportedControls\n }\n gfn {\n playabilityState\n minimumMembershipTierLabel\n catalogSkuStrings {\n SKU_BASED_TAG\n }\n }\n itemMetadata {\n campaignIds\n }\n }\n }\n}",AppsWithoutSearch:"query GetSearchFilterResults(\n $vpcId: String!,\n $locale: String!,\n $sortString: String!,\n $fetchCount: Int!,\n $cursor: String!,\n $filters: AppFilterFields!) {\n apps(\n vpcId: $vpcId,\n language: $locale,\n orderBy: $sortString,\n first: $fetchCount,\n after: $cursor,\n filters: $filters\n ){\n numberReturned\n numberSupported\n pageInfo {\n hasNextPage\n endCursor\n totalCount\n }\n items {\n id\n title\n images {\n TV_BANNER\n HERO_IMAGE\n }\n variants {\n id\n appStore\n supportedControls\n }\n gfn {\n playabilityState\n minimumMembershipTierLabel\n catalogSkuStrings {\n SKU_BASED_TAG\n }\n }\n itemMetadata {\n campaignIds\n }\n }\n }\n}",Main:"\nquery GetGameSection($vpcId: String!, $locale: String!, $panelNames: [String]!) {\n panels(vpcId: $vpcId, language: $locale, names: $panelNames) {\n id\n name\n sections {\n id\n title\n renderDirectives\n seeMoreInfo {\n filterTileId\n title\n filterIds\n minTiles\n sortOrderId\n }\n items {\n __typename\n ...filterFields\n ...minimalGameFields\n ...marketingFields\n }\n }\n }\n}\n\nfragment filterFields on FilterItem {\n id\n title\n image\n filterIds\n}\n\nfragment minimalGameFields on GameItem {\n app {\n id\n images {\n TV_BANNER\n HERO_IMAGE\n }\n title\n itemMetadata {\n campaignIds\n }\n variants {\n id\n shortName\n appStore\n supportedControls\n gfn {\n status\n }\n }\n gfn {\n playabilityState\n minimumMembershipTierLabel\n catalogSkuStrings {\n SKU_BASED_TAG\n }\n }\n }\n}\n\nfragment marketingFields on MarketingItem {\n id\n title\n subTitle\n body\n images {\n MARQUEE_HERO_IMAGE\n HERO_IMAGE\n }\n action {\n uri\n label\n infoText\n }\n schedule {\n startTime\n endTime\n }\n}",AppDataForAppId:re},$={StaticAppData:"1c8e9ae4851b71a2a15583b4ec25bee23cd312ff2e1eae8ace58f9575ad6fda4",UserAccount:"c0d32eea714da66ceaaea8a894fdf26a503270c87b5494897f0579c390e3d479",Marquee:"85f89766a008f79411222f43a87066e0c882b9b7fbbfe033aa530bd5dff8942a",Favorites:"d4ed37bf0063ab0c9cd5e2e47665cac3650eabb64bbcf8d002f11a6db909e871",LibrarySection:"d4ed37bf0063ab0c9cd5e2e47665cac3650eabb64bbcf8d002f11a6db909e871",LibrarySectionWithTime:"9bef129b5929ff3c5364b1c1414f55db35973330ba13404611a6b3290e02fe43",Main:"d4ed37bf0063ab0c9cd5e2e47665cac3650eabb64bbcf8d002f11a6db909e871",Campaigns:"c75162f669ceb2b5d0ce5062474fd65b471a8a13085cbbb885ac1fe6fbbfbf8d",FilterGroupAndSortOrderDefinitions:"0b81ec998250c648401914babb7c71044e6603a16be2dfa537fde471d32233da",AppsWithSearch:"15aa0e9d952af2d29a81fb5eb4c30386fe0d53b3363718cca7ec9c7f23361dbe",AppsWithoutSearch:"b234be74fdc96b04f553afe3577a6f58c6aa8dbb0eb25dd73bd848d931fb12f9",UpsellMessages:"f367fe9d438dd1da67e8e9a9055f7219c258ee10bf6f6f48e539f6d5d3fd0120",AppDataForAppId:"ab019c4a58a2dc48ec013d6d402b952909224a589f8d8712f523252ca28ef987",AppDataForAppIdWithoutMILA:"5a3f8bfa229bc2c707cf9d49e16cfa2fdafd0915e88458cb906e7ac5bf3544a4",AppDataForCmsId:"7eed46fd01700c6bdc5f9b51fa98d4b08ccb9117c2ba798e95566e664ba049d9",AppDataForCmsIdWithoutVpcId:"3ebd6c912c15cbbb9b9ac4bf2e5b474da3c123d52de04d0f9b9986b97d86fa01",LoginWallData:"3d68466bc240d63c67dbf02336432988be7fb2eba52aef008dfca1ecea9c9fe9",LoginWallStringsOnly:"600316b112e08d80a3fe4ba16c45f635e690da9e798fe0fb7fc5da547e5e7051",AddFavoriteApp:"0b1463d227991c32ca83569af2470a9b000408fd01cdccc15692c9f0462354c9",RemoveFavoriteApp:"1a15b57e8a23113391e645cc3c672097b86282b60fb95f26b39a005507cd2583",AddOwnedVariant:"881604c8281fc0a106bc14ead8ab1ee02775fd3b847c987beb7153f5bec704ea",RemoveOwnedVariant:"41283cb0b456533f39dc91f65066c3b97dd4766d519c0e2d8e9fed79653dd959",SelectOwnedVariant:"d451d5d385ac4d38bb3eeda49afc269001b7b147fd1fb1f30e9f262d89be3b80",OverallGfnSupportedLanguages:"68d079c3efb00030abd24e976d549cef490ca7c70830adcd1a0920a2d62b5ae4"};var le=function(rt){return rt.StaticAppData="StaticAppData",rt.UserAccount="UserAccount",rt.Marquee="Marquee",rt.Favorites="Favorites",rt.LibrarySection="LibrarySection",rt.LibrarySectionWithTime="LibrarySectionWithTime",rt.Main="Main",rt.Campaigns="Campaigns",rt.FilterGroupAndSortOrderDefinitions="FilterGroupAndSortOrderDefinitions",rt.AppsWithSearch="AppsWithSearch",rt.AppsWithoutSearch="AppsWithoutSearch",rt.UpsellMessages="UpsellMessages",rt.AppDataForAppId="AppDataForAppId",rt.AppDataForAppIdWithoutMILA="AppDataForAppIdWithoutMILA",rt.AppDataForCmsId="AppDataForCmsId",rt.AppDataForCmsIdWithoutVpcId="AppDataForCmsIdWithoutVpcId",rt.LoginWallData="LoginWallData",rt.LoginWallStringsOnly="LoginWallStringsOnly",rt.AddFavoriteApp="AddFavoriteApp",rt.RemoveFavoriteApp="RemoveFavoriteApp",rt.AddOwnedVariant="AddOwnedVariant",rt.RemoveOwnedVariant="RemoveOwnedVariant",rt.SelectOwnedVariant="SelectOwnedVariant",rt.OverallGfnSupportedLanguages="OverallGfnSupportedLanguages",rt}(le||{}),Pe=function(rt){return rt.AppMetadata="appMetaData",rt.StaticAppData="staticAppData",rt.PanelsMain="panels/MainV2",rt.PanelsMarquee="panels/Marquee",rt.PanelsLibrary="panels/Library",rt.PanelsFavorites="panels/Favorites",rt.UserAccount="userAccount",rt.ClientStrings="clientStrings",rt.Campaigns="campaigns",rt.Apps="apps",rt.FilterGroupAndSortOrderDefinitions="filterGroupAndSortOrderDefinitions",rt.LoginWallData="loginWallData",rt.LoginWallStrings="loginWallStrings",rt.OverallLanguageList="overallGfnSupportedLanguages",rt}(Pe||{});const Fe={[le.StaticAppData]:{query:G[le.StaticAppData],cacheKey:Pe.StaticAppData,serviceUseCase:T.OOF.Other,isUserSpecificQuery:!1,sha256hash:$[le.StaticAppData]},[le.UserAccount]:{query:G[le.UserAccount],cacheKey:Pe.UserAccount,serviceUseCase:T.OOF.GetUserAccount,isUserSpecificQuery:!0,sha256hash:$[le.UserAccount]},[le.Marquee]:{query:G[le.Marquee],cacheKey:Pe.PanelsMarquee,serviceUseCase:T.OOF.GetPanel,isUserSpecificQuery:!0,sha256hash:$[le.Marquee]},[le.LibrarySectionWithTime]:{query:G[le.LibrarySectionWithTime],cacheKey:Pe.PanelsLibrary,serviceUseCase:T.OOF.GetPanel,isUserSpecificQuery:!0,sha256hash:$[le.LibrarySectionWithTime]},[le.LibrarySection]:{query:G[le.LibrarySection],cacheKey:Pe.PanelsLibrary,serviceUseCase:T.OOF.GetPanel,isUserSpecificQuery:!0,sha256hash:$[le.LibrarySection]},[le.Favorites]:{query:G[le.Favorites],cacheKey:Pe.PanelsFavorites,serviceUseCase:T.OOF.GetPanel,isUserSpecificQuery:!0,sha256hash:$[le.Favorites]},[le.Main]:{query:G[le.Main],cacheKey:Pe.PanelsMain,serviceUseCase:T.OOF.GetPanel,isUserSpecificQuery:!0,sha256hash:$[le.Main],serviceUnavailableFallbackQuery:W[le.Main]},[le.Campaigns]:{query:G[le.Campaigns],cacheKey:Pe.Campaigns,serviceUseCase:T.OOF.GetCampaigns,isUserSpecificQuery:!0,sha256hash:$[le.Campaigns]},[le.AppsWithSearch]:{query:G[le.AppsWithSearch],cacheKey:Pe.Apps,serviceUseCase:T.OOF.GetApps,isUserSpecificQuery:!0,sha256hash:$[le.AppsWithSearch],serviceUnavailableFallbackQuery:W[le.AppsWithSearch]},[le.AppsWithoutSearch]:{query:G[le.AppsWithoutSearch],cacheKey:Pe.Apps,serviceUseCase:T.OOF.GetApps,isUserSpecificQuery:!0,sha256hash:$[le.AppsWithoutSearch],serviceUnavailableFallbackQuery:W[le.AppsWithoutSearch]},[le.FilterGroupAndSortOrderDefinitions]:{query:G[le.FilterGroupAndSortOrderDefinitions],cacheKey:Pe.FilterGroupAndSortOrderDefinitions,serviceUseCase:T.OOF.GetFilterGroupAndSortOrderDefinitions,isUserSpecificQuery:!0,sha256hash:$[le.FilterGroupAndSortOrderDefinitions]},[le.AppDataForAppId]:{query:G[le.AppDataForAppId],cacheKey:Pe.AppMetadata,serviceUseCase:T.OOF.GetAppData,isUserSpecificQuery:!0,sha256hash:$[le.AppDataForAppId],serviceUnavailableFallbackQuery:W[le.AppDataForAppId]},[le.AppDataForAppIdWithoutMILA]:{query:G[le.AppDataForAppIdWithoutMILA],cacheKey:Pe.AppMetadata,serviceUseCase:T.OOF.GetAppData,isUserSpecificQuery:!0,sha256hash:$[le.AppDataForAppIdWithoutMILA]},[le.AppDataForCmsId]:{query:G[le.AppDataForCmsId],cacheKey:Pe.AppMetadata,serviceUseCase:T.OOF.GetAppData,isUserSpecificQuery:!0,sha256hash:$[le.AppDataForCmsId]},[le.AppDataForCmsIdWithoutVpcId]:{query:G[le.AppDataForCmsIdWithoutVpcId],cacheKey:Pe.AppMetadata,serviceUseCase:T.OOF.GetAppData,isUserSpecificQuery:!0,sha256hash:$[le.AppDataForCmsIdWithoutVpcId]},[le.UpsellMessages]:{query:G[le.UpsellMessages],cacheKey:Pe.ClientStrings,serviceUseCase:T.OOF.Other,isUserSpecificQuery:!0,sha256hash:$[le.UpsellMessages]},[le.LoginWallData]:{query:G[le.LoginWallData],cacheKey:Pe.LoginWallData,serviceUseCase:T.OOF.GetLoginWallData,isUserSpecificQuery:!1,sha256hash:$[le.LoginWallData]},[le.LoginWallStringsOnly]:{query:G[le.LoginWallStringsOnly],cacheKey:Pe.LoginWallStrings,serviceUseCase:T.OOF.GetLoginWallStrings,isUserSpecificQuery:!1,sha256hash:$[le.LoginWallStringsOnly]},[le.OverallGfnSupportedLanguages]:{query:G[le.OverallGfnSupportedLanguages],cacheKey:Pe.OverallLanguageList,serviceUseCase:T.OOF.OverallGfnSupportedLanguages,isUserSpecificQuery:!1,sha256hash:$[le.OverallGfnSupportedLanguages]}},At={[le.AddFavoriteApp]:{query:G[le.AddFavoriteApp],serviceUseCase:T.OOF.AddFavoriteApp},[le.RemoveFavoriteApp]:{query:G[le.RemoveFavoriteApp],serviceUseCase:T.OOF.RemoveFavoriteApp},[le.AddOwnedVariant]:{query:G[le.AddOwnedVariant],serviceUseCase:T.OOF.AddOwnedVariant},[le.RemoveOwnedVariant]:{query:G[le.RemoveOwnedVariant],serviceUseCase:T.OOF.RemoveOwnedVariant},[le.SelectOwnedVariant]:{query:G[le.SelectOwnedVariant],serviceUseCase:T.OOF.SelectOwnedVariant}};function Le(rt){return Fe[rt]}var $e=s(31418),Ze=s(58527),Qe=s(99469),Ve=s(5798),nt=s(78893),Ot=s(80062),at=s(38502),It=s(61958),We=s(55512);let xe=(()=>{class rt{constructor(St,Gt,yt,Wt,ke,be){this.appConfig=St,this.endpointFactory=Gt,this.distributedtracingUtilService=yt,this.idmService=Wt,this.clientHeaderService=be,this.cascadePreviewToken=null,this.lastFetchedStaticAppDataTime=null,this.lastFetchedStaticAppData$=null,this.nvPreviewTime=null,this.logger=ke.getLogger("LcarsSdkService");const{defaultRetries:Ae,defaultTimeBetweenRetries:qe,defaultTimeout:Lt,retryOnTimeout:Zt,exponentialBackoffMaxDelay:fn}=St.lcars;this.queryDataEndpoint=this.endpointFactory.createEndpoint({config:{maxRetries:Ae,timeout:Lt,timeBetweenRetries:qe,retryOnTimeout:Zt,exponentialBackoffMaxDelay:fn}}),this.firstFetchSet=new Set,this.setCascadePreviewData()}setCascadePreviewData(){this.cascadePreviewToken=(0,nt.BS)(nt.kE.CascadePreviewToken),this.cascadePreviewToken?(this.logger.info(`Got cascadePreviewToken: ${this.cascadePreviewToken}`),this.nvPreviewTime=(0,nt.BS)(nt.kE.PreviewAtTime),this.logger.info(this.nvPreviewTime?`Got previewAtTime: ${this.nvPreviewTime}`:"No previewAtTime in query params")):this.logger.info("No cascadePreviewToken in query params")}createHeader(St,Gt,yt,Wt){const ke={...Gt};return ke["Content-Type"]="application/graphql",this.firstFetchSet.has(St)||Wt?ke[D.tD.SwCacheBypass]=JSON.stringify(!0):this.firstFetchSet.add(St),yt?.token&&(ke[Ve.SA.authorization]=`GFNJWT ${yt.token}`),this.appConfig.lcars.cascadeHeaderValue&&(ke["NV-Cascade-Content"]=this.appConfig.lcars.cascadeHeaderValue),this.appConfig.lcars.stageHeaderValue&&(ke["NV-Env"]=this.appConfig.lcars.stageHeaderValue),this.cascadePreviewToken&&(ke["cache-control"]="no-cache",ke[D.tD.SwCacheBypass]=JSON.stringify(!1),ke["NV-Additional"]=this.cascadePreviewToken,this.nvPreviewTime&&(ke["NV-Preview-Time"]=this.nvPreviewTime)),ke}fetchQueryData(St,Gt,yt,Wt,ke){return(0,d.zV)([this.clientHeaderService.getCommonHeaders({withClientId:"lcars"}),this.idmService.accountStatusChanged.pipe((0,P.s)(1))]).pipe((0,y.ZZ)(([be,Ae])=>{const qe=Le(St),Lt=qe.cacheKey;Ae.isAuthenticated&&qe.isUserSpecificQuery&&Ae.userId!==this.lastHashedUserId&&(this.userIdHash=(0,Ot.sha1)(Ae.userId),this.lastHashedUserId=Ae.userId);const Zt=Object.assign(Lt?{requestType:Lt}:null,{extensions:JSON.stringify({persistedQuery:{sha256Hash:qe.sha256hash}})},Ae.isAuthenticated?{huId:this.userIdHash}:null,{variables:Gt?JSON.stringify(Gt):null}),fn={headers:this.createHeader(Lt,be,Wt,ke),reportRequestData:{originalService:T.Uu$.Lcars,serviceUseCase:qe.serviceUseCase,reportSuccessTelemetry:"true"},params:Zt,includeRequestId:!0},hn=[];return Object.keys(fn.headers).forEach(fi=>{"Authorization"!==fi&&hn.push(`${fi}: ${fn.headers[fi]}`)}),this.logger.info(`Headers for ${St} are: ${hn}`),this.handleRequest(Ae.isAuthenticated&&Lt!==Pe.AppMetadata||Ae.isAuthenticated&&Lt===Pe.AppMetadata&&Wt?this.appConfig.lcars.serverUrl:this.appConfig.lcars.serverUrlCDN,fn,qe,yt)}))}postQueryData(St,Gt,yt,Wt=!1){return(0,d.zV)([this.clientHeaderService.getCommonHeaders({withClientId:"lcars"}),this.idmService.getAuthToken(Wt,yt)]).pipe((0,y.ZZ)(([ke,be])=>{const Ae=function Et(rt){return At[rt]}(St),qe=Object.assign({query:Ae.query},{variables:Gt?JSON.stringify(Gt):null}),Lt={headers:this.createHeader(null,ke,be,!0),reportRequestData:{originalService:T.Uu$.Lcars,serviceUseCase:Ae.serviceUseCase,reportSuccessTelemetry:"true"},params:qe,includeRequestId:!0};return this.handlePostRequest(this.appConfig.lcars.serverUrl,Lt,yt)}),(0,i.W)(ke=>this.idmService.handleAuthError(ke,Wt,this.postQueryData.bind(this),St,Gt,yt)))}handlePostRequest(St,Gt,yt){const Wt=this.queryDataEndpoint.post((0,c.l2)([St]),Gt);return this.distributedtracingUtilService.handleHttpEndpointSpan(Wt,Gt,a.pB.LcarsPostQueryData,yt)}handleRequest(St,Gt,yt,Wt){const ke=this.queryDataEndpoint.get((0,c.l2)([St]),Gt);return this.distributedtracingUtilService.handleHttpEndpointSpan(ke,Gt,a.pB.LcarsFetchQueryData,Wt).pipe((0,i.W)(be=>{if(400!==be?.status||Gt?.params?.query){if(503===be?.status&&yt?.serviceUnavailableFallbackQuery){delete Gt.params.extensions;const Ae={...Gt};Ae.params.query=yt.serviceUnavailableFallbackQuery;const qe=this.queryDataEndpoint.get((0,c.l2)([St]),Ae);return this.distributedtracingUtilService.handleHttpEndpointSpan(qe,Ae,a.pB.LcarsFetchQueryData,Wt)}return(0,v.$)(be)}{const Ae={...Gt};Ae.params.query=yt.query;const qe=this.queryDataEndpoint.get((0,c.l2)([St]),Ae);return this.distributedtracingUtilService.handleHttpEndpointSpan(qe,Ae,a.pB.LcarsFetchQueryData,Wt)}}))}fetchStaticDataQuery(St,Gt){const yt=Date.now();if(yt-this.lastFetchedStaticAppDataTime>m.oY){this.lastFetchedStaticAppDataTime=yt;const ke=Le(le.StaticAppData),be=Object.assign({requestType:ke.cacheKey},{variables:JSON.stringify(St),extensions:JSON.stringify({persistedQuery:{sha256Hash:ke.sha256hash}})});this.lastFetchedStaticAppData$=this.clientHeaderService.getCommonHeaders().pipe((0,y.ZZ)(Ae=>{const qe={headers:this.createHeader(ke.cacheKey,Ae),reportRequestData:{originalService:T.Uu$.Lcars,reportSuccessTelemetry:"true"},params:be,includeRequestId:!0,includeFullResponse:!0},Lt=[];return Object.keys(qe.headers).forEach(Zt=>{Lt.push(`${Zt}: ${qe.headers[Zt]}`)}),this.logger.info(`Headers for static call are: ${Lt}`),this.handleRequest(this.appConfig.lcars.serverUrlCDN,qe,ke,Gt)}),(0,r.t)(1))}return this.lastFetchedStaticAppData$}static{this.\u0275fac=function(Gt){return new(Gt||rt)(Ze.KVO(It.Vk),Ze.KVO(Ve.t),Ze.KVO(a.Z1),Ze.KVO(We.k_),Ze.KVO(Qe.J6),Ze.KVO(at.y1))}}static{this.\u0275prov=Ze.jDH({token:rt,factory:rt.\u0275fac,providedIn:"root"})}}return rt})();var lt=s(80838),ft=s(66974);let ht=(()=>{class rt{constructor(St,Gt,yt,Wt,ke,be,Ae,qe,Lt,Zt,fn,hn,On){this.lcarsSdk=yt,this.localeService=Wt,this.idmService=ke,this.gridService=be,this.serviceWorkerService=Ae,this.distributedTracingUtilService=qe,this.gfnSdkService=Lt,this.refreshUiService=Zt,this.config=fn,this.guestModeHelperService=hn,this.imageFormatService=On,this.layoutDataUpdated$=new n.B7,this.userAccountInfoUpdated$=new n.B7,this.gameMetaDataMap=new Map,this.staticAppDataCurrentEtag=null,this.getAppDataQuery=(fi,Ji,Fi)=>fi?Ji?le.AppDataForCmsId:le.AppDataForCmsIdWithoutVpcId:Fi?le.AppDataForAppId:le.AppDataForAppIdWithoutMILA,this.logger=St.getLogger("LcarsService"),this.fetchStaticDataInfoStream=Gt.createStream(()=>this.fetchStaticAppDataInfo()),this.AppMetadataStreams=new c.V$(fi=>this.fetchAppdata(fi)),this.userAccountDataStream=Gt.createStream(()=>this.fetchUserAccountInfo()),this.fetchClientUpsellMessageStream=Gt.createStream(()=>this.fetchUpsellMessages()),this.campaignsInfoStream=Gt.createStream(()=>this.fetchCampaignsInfo()),this.filterGroupSortOrderDefinitionsStream=Gt.createStream(()=>this.fetchFilterGroupSortOrderDefinitions()),this.overallGfnLanguageListStream=Gt.createStream(()=>this.fetchOgll()),this.initalize(),this.initServiceWorkerNotifications()}initalize(){this.getVpcIdLocale().subscribe(()=>{},St=>{this.logger.error("Could not fetch vpcId",St)}),this.idmService.accountStatusChanged.subscribe(St=>{!1===this.isUserLoggedIn&&St.isAuthenticated&&(this.refreshAppMetaData=!0,this.refreshClientStrings=!0),void 0!==this.refreshCampaignsInfo&&(this.refreshCampaignsInfo=!0),void 0!==this.refreshFilterGroupSortOrderDefinitions&&(this.refreshFilterGroupSortOrderDefinitions=!0),this.isUserLoggedIn=St.isAuthenticated}),this.listenStaticAppDataRefreshEvent()}initServiceWorkerNotifications(){const St=D.fR.staleWhileRevalidate.lcarsStatic.cacheName,Gt=D.fR.staleWhileRevalidate.lcars.cacheName,yt=D.fR.staleWhileRevalidate.lcarsUserAccount.cacheName,Wt=D.fR.staleWhileRevalidate.lcarsClientStrings.cacheName,ke=D.fR.staleWhileRevalidate.overallGfnSupportedLanguages.cacheName,be=[Gt,St,yt,Wt,ke];this.serviceWorkerService.swCacheUpdated.pipe((0,S.p)(Ae=>be.includes(Ae.name))).subscribe(Ae=>{switch(Ae.name){case St:this.logger.info("Received updated data SW notification for static app data");const qe=Ae.data?.data;qe&&this.fetchStaticDataInfoStream.setData(qe,!0);break;case Gt:this.logger.info("Received updated data SW notification for panels");const Lt=Ae.data?.data;this.logPanelsData(Lt.panels),Lt&&this.layoutDataUpdated$.next(Lt);break;case yt:this.logger.info("Received updated data SW notification for user account data");const Zt=Ae.data?.data;Zt&&(this.userAccountDataStream.setData(Zt,!1),this.userAccountInfoUpdated$.next(Zt));break;case Wt:this.logger.info("Received updated data SW notification for client string");const fn=this.processUpsellMessageResponse(Ae.data);fn&&this.fetchClientUpsellMessageStream.setData(fn,!0);break;case ke:this.logger.info("Received updated data SW notification for OGLL");const hn=Ae.data?.data?.overallGfnSupportedLanguages;hn&&this.overallGfnLanguageListStream.setData(hn)}})}get onUserAccountInfoUpdated$(){return this.userAccountInfoUpdated$.asObservable()}get onLayoutDataUpdated$(){return this.layoutDataUpdated$.asObservable()}get nvPreviewTime(){return this.lcarsSdk.nvPreviewTime}listenStaticAppDataRefreshEvent(){this.refreshUiService.staticAppDataRefresh$.pipe((0,y.ZZ)(St=>(this.logger.info("Static app data refresh received"),this.ensureLatestStaticAppData$()))).subscribe()}getLocale(){return this.locale?(0,l.of)(this.locale):this.localeService.localeChanged.pipe((0,f.M)(St=>{this.locale=St}))}getVpcIdLocale(){if(this.vpcId&&this.locale)return(0,l.of)([this.vpcId,this.locale]);{const St=this.gridService.vpcId$.pipe((0,O.F)());return(0,d.zV)([St,this.getLocale()]).pipe((0,y.ZZ)(([Gt,yt])=>(this.vpcId=Gt,(0,l.of)([this.vpcId,yt]))))}}getVpcIdLocaleToken(St=!1,Gt){const yt=this.idmService.getAuthToken(St,Gt);return(0,d.zV)([yt,this.getVpcIdLocale()]).pipe((0,P.s)(1),(0,_.T)(([Wt,ke])=>[Wt||null,...ke]))}fetchAppdata(St,Gt=!1){const yt=JSON.parse(St),Wt=this.getAppDataOptions;if(!yt)return(0,v.$)("Error while reading gameId");const ke=this.distributedTracingUtilService.startSpan(a.pB.ClientGetAppMetadata,Wt.parentSpan),be={authToken:null,vpcId:null,locale:null},Ae=this.gfnSdkService.getAuthType().pipe((0,_.T)(Lt=>Lt!==I.hT.JWT));return(0,d.zV)([this.getVpcIdLocaleToken(Gt,ke),Ae]).pipe((0,f.M)(([[Lt,Zt,fn],hn])=>{be.authToken=Lt,be.vpcId=Zt,be.locale=fn,Wt?.isCmsId&&hn&&Lt&&Lt.token?Wt.useVpcIdWithCmsId=!0:Wt?.isCmsId&&(be.authToken=null)})).pipe((0,y.ZZ)(Lt=>{let Zt;const fn={locale:this.locale};if(Wt.isCmsId){Zt=this.getAppDataQuery(!0,Wt?.useVpcIdWithCmsId);let hn=[];(0,V.isArray)(yt)?hn=yt?.map(On=>parseInt(On,10)):"string"==typeof yt?hn=[parseInt(yt,10)]:"number"==typeof yt&&(hn=[yt]),fn.cmsIds=hn,Wt?.useVpcIdWithCmsId&&(fn.vpcId=this.vpcId)}else Zt=this.getAppDataQuery(!1,!0,Wt.includeLibraryFields),fn.appIds=[yt],fn.vpcId=this.vpcId;return this.setSpanTags(ke,void 0,this.vpcId,this.locale,this.isUserLoggedIn),(0,d.zV)([this.getStaticAppData().pipe((0,P.s)(1),(0,i.W)(()=>(0,l.of)(null))),this.lcarsSdk.fetchQueryData(Zt,fn,ke,be.authToken),this.getOgll$()]).pipe((0,y.ZZ)(([hn,On,fi])=>(hn||this.logger.info("Using default appstore info values for static app data"),0===On.data.apps.items.length&&this.guestModeHelperService.isGuestMode?(this.logger.info("Appdata is empty for GDN flow, using default metadata"),(0,l.of)(this.guestModeHelperService.fetchDefaultGDNMetaData(yt))):(On.data.apps.items.forEach(Ji=>{M.X9.sortVariants(Ji.variants),Ji.variants.forEach(Fi=>{Fi.appStoreInfo=M.X9.getStoreInfoForAppstore(Fi.appStore),Fi.gfn?.supportedLanguages?.forEach(bt=>{try{const bn=Intl.getCanonicalLocales(bt.language.replace(/_/g,"-"))[0];bt.language=bn.replace(/-/g,"_")}catch{}}),Fi.gfn?.supportedLanguages?.length>0&&fi?.length>0&&(Fi.gfn.supportedLanguages=Fi.gfn.supportedLanguages.filter(bt=>fi.some(bn=>bt.language===bn.language)))})}),this.refreshAppMetaData=this.refreshAppMetaData?!this.isUserLoggedIn:this.refreshAppMetaData,(0,l.of)(On.data.apps.items)))),(0,f.M)(()=>this.endSpan(ke,!1)),(0,i.W)(hn=>this.idmService.handleAuthError(hn,Gt,this.fetchAppdata.bind(this),St)),(0,i.W)(hn=>(this.endSpan(ke,!0),hn.status>=300&&this.guestModeHelperService.isGuestMode?(this.logger.info("Appdata fetch fails for GDN, using default metadata"),(0,l.of)(this.guestModeHelperService.fetchDefaultGDNMetaData(yt))):(0,v.$)(hn))))}))}getAppdata(St,Gt={},yt=!1){return this.getAppDataOptions=Gt,this.refreshAppMetaData||yt?this.fetchAppdata(JSON.stringify(St)).pipe((0,f.M)(Wt=>this.AppMetadataStreams.setData(JSON.stringify(St),Wt))):this.AppMetadataStreams.get$(JSON.stringify(St))}getPanelQuery(St){switch(St.panelName){case m.HP.Marquee:return le.Marquee;case m.HP.Main:return le.Main;case m.HP.Library:return St?.fetch?.fetchLibraryWithAdditionalInfo?le.LibrarySectionWithTime:le.LibrarySection;case m.HP.Favorites:return le.Favorites}}getPanel(St,Gt,yt=!1){const Wt=St.currentSpan?St.currentSpan:this.distributedTracingUtilService.startSpan(a.pB.ClientGetPanel,St.parentSpan);return this.getVpcIdLocaleToken(yt,Wt).pipe((0,y.ZZ)(([ke,be,Ae])=>{const Lt={vpcId:be,locale:Ae,panelName:Gt,fetch:Gt===m.HP.Library?this.config.lcars?.panelFetchQueryOverride:void 0};this.logger.info(`Fetching fresh panel ${Gt} for trigger ${St?.triggerName} with ${be}`),this.setSpanTags(Wt,St.triggerName,be,Ae,this.isUserLoggedIn),this.distributedTracingUtilService.setSpanAttribute(Wt,a.NS.PanelType,Gt);const Zt=this.getPanelQuery(Lt);return this.lcarsSdk.fetchQueryData(Zt,{vpcId:be,locale:Ae,panelNames:[Gt]},Wt,ke,St.bypassSwCache).pipe((0,y.ZZ)(hn=>(this.logPanelsData(hn?.data?.panels),(0,l.of)(hn.data.panels))),(0,f.M)(hn=>this.endSpan(Wt,!1)))}),(0,i.W)(ke=>this.idmService.handleAuthError(ke,yt,this.getPanel.bind(this),Object.assign({},St,{currentSpan:Wt}))),(0,i.W)(ke=>(this.endSpan(Wt,!0),(0,v.$)(ke))))}getLoginWallData(){const St=this.distributedTracingUtilService.startSpan(a.pB.GetLoginWallData);return this.getVpcIdLocale().pipe((0,y.ZZ)(([Gt,yt,Wt])=>(this.distributedTracingUtilService.setSpanAttribute(St,a.NS.PanelType,m.HP.LoginWall),this.lcarsSdk.fetchQueryData(le.LoginWallData,{vpcId:Gt,locale:yt,panelNames:[m.HP.LoginWall],stringsKey:[m.V9]},St).pipe((0,_.T)(Ae=>{const Zt=(Ae?.data?.panels[0]).sections[0].items.map(Ji=>this.imageFormatService.formatImageServiceUrl(Ji.app.images.TV_BANNER,{w:$e.KP})),fn=Ae?.data?.clientStrings[m.V9];return{backgroundData:{data:{imageUrls:Zt}},strings:fn}}),(0,f.M)(Ae=>this.endSpan(St,!1))))),(0,i.W)(Gt=>(this.endSpan(St,!0),(0,v.$)(Gt))))}logPanelsData(St){St?.forEach(Gt=>{this.logger.info(`Found Panel ${Gt?.name}`),Gt?.sections?.forEach(yt=>{this.logger.info(`Found section ${yt?.id}, ${yt?.title}`),(Gt.name===m.HP.Library||Gt.name===m.HP.Favorites)&&yt?.items.forEach(Wt=>{this.logger.info(`Found game ${Wt?.app?.title} in ${Gt?.name}`)})})})}getSearchFilterResults(St,Gt,yt,Wt,ke,be,Ae=!1){return this.getVpcIdLocaleToken(Ae).pipe((0,y.ZZ)(([qe,Lt,Zt])=>{const fn=Gt?.length>0,hn={vpcId:Lt,locale:Zt,filters:yt,sortString:St,fetchCount:ke,cursor:Wt||""};fn&&(hn.searchString=Gt);const On=this.getSearchRequestType(fn);return this.lcarsSdk.fetchQueryData(On,hn,be,qe,!0)}),(0,i.W)(qe=>this.idmService.handleAuthError(qe,Ae,this.getSearchFilterResults.bind(this),St,Gt,yt,Wt,ke,be)))}getSearchRequestType(St){return St?le.AppsWithSearch:le.AppsWithoutSearch}fetchStaticAppDataInfo(){return this.guestModeHelperService.isGuestAppFlow()?(0,l.of)(void 0):this.getLocale().pipe((0,y.ZZ)(St=>this.lcarsSdk.fetchStaticDataQuery({locale:St}).pipe((0,_.T)(yt=>(this.staticAppDataCurrentEtag=yt.headers.get(D.tD.ETag),this.refreshUiService.setContentExpiryInfo(U.sD.StaticAppData),yt.body.data)))),(0,i.W)(St=>(this.logger.error("Error in fetchStaticDataQuery",St),(0,l.of)(m.JR))))}ensureLatestStaticAppData$(){return this.getLocale().pipe((0,P.s)(1),(0,y.ZZ)(St=>this.lcarsSdk.fetchStaticDataQuery({locale:St}).pipe((0,_.T)(yt=>{const Wt=yt.headers.get(D.tD.ETag);return this.refreshUiService.setContentExpiryInfo(U.sD.StaticAppData),!(!Wt||Wt===this.staticAppDataCurrentEtag||(this.logger.info("New StaticAppData recevived and updated"),M.X9.setGenreDefinitions(yt.body.data?.genreDefinitions),M.X9.setAppStoresDefinitions(yt.body.data?.appStoreDefinitions),this.fetchStaticDataInfoStream.setData(yt.body.data,!0),this.staticAppDataCurrentEtag=yt.headers.get(D.tD.ETag),0))}),(0,i.W)(yt=>(this.logger.error("Error while fetching static app data",yt),(0,l.of)(!1))))))}getStaticAppData(){return this.fetchStaticDataInfoStream.get$().pipe((0,_.T)(St=>(M.X9.setGenreDefinitions(St?.genreDefinitions),M.X9.setAppStoresDefinitions(St?.appStoreDefinitions),St)))}setSpanTags(St,Gt,yt,Wt,ke){const be={};Gt&&(be[a.NS.Trigger]=Gt),be[a.NS.VpcId]=yt,be[a.NS.Locale]=Wt,be[a.NS.LoginStatus]=ke,this.distributedTracingUtilService.setSpanAttributes(St,be)}endSpan(St,Gt){St&&(this.distributedTracingUtilService.setSpanAttribute(St,a.NS.Error,Gt),this.distributedTracingUtilService.closeSpan(St))}setMetadataForCmsId(St,Gt){this.gameMetaDataMap.set(St.toString(),Gt)}getMetadataByCmsId(St){const Gt=St.toString();return this.gameMetaDataMap.has(Gt)?(0,l.of)(this.gameMetaDataMap.get(Gt)):this.getAppdata(Gt,{isCmsId:!0}).pipe((0,_.T)(yt=>yt[0]))}isFeatureSupportedOnVariant(St,Gt,yt){const Wt=St?.gfn?.features;return Wt&&Array.isArray(Wt)?Wt.some(ke=>ke.key===Gt&&(yt?ke.values?.includes(yt):"true"===ke.value)):Wt?.key===Gt&&(yt?Wt.values?.includes(yt):"true"===Wt.value)}getLatestUserAccountInfo(){return this.userAccountDataStream.refresh()}fetchUserAccountInfo(St=!1){const Gt=this.distributedTracingUtilService.startSpan(a.pB.UserAccountData);return this.idmService.getAuthToken(St,Gt).pipe((0,y.ZZ)(yt=>this.lcarsSdk.fetchQueryData(le.UserAccount,void 0,Gt,yt)),(0,_.T)(yt=>(this.refreshUiService.setContentExpiryInfo(U.sD.UserDatastore),this.endSpan(Gt,!1),yt.data)),(0,i.W)(yt=>this.idmService.handleAuthError(yt,St,this.fetchUserAccountInfo.bind(this))),(0,i.W)(yt=>(this.endSpan(Gt,!0),(0,v.$)(yt))))}getUpsellMessages(){return this.refreshClientStrings?this.fetchUpsellMessages().pipe((0,f.M)(St=>this.fetchClientUpsellMessageStream.setData(St,!0))):this.fetchClientUpsellMessageStream.get$()}fetchUpsellMessages(St=!1){const Gt=[m.mF],yt=this.distributedTracingUtilService.startSpan(a.pB.UpsellMessages),Wt=this.localeService.localeChanged,ke=this.idmService.getAuthToken(St,yt);return(0,d.zV)([ke,Wt]).pipe((0,r.t)(1),(0,y.ZZ)(([be,Ae])=>null===be.token?(0,l.of)({}):this.lcarsSdk.fetchQueryData(le.UpsellMessages,{locale:Ae,upsellMessageKey:Gt},yt,be)),(0,_.T)(be=>(this.endSpan(yt,!1),this.refreshClientStrings=!1,this.processUpsellMessageResponse(be))),(0,i.W)(be=>this.idmService.handleAuthError(be,St,this.fetchUpsellMessages.bind(this))),(0,i.W)(be=>(this.endSpan(yt,!0),(0,v.$)(be))))}processUpsellMessageResponse(St){const Gt=St?.data?.clientStrings?St?.data?.clientStrings[m.mF]:{};return this.logger.info("UpsellMessage Response: ",Gt),Gt}fetchCampaignsInfo(St=!1){if(!this.config.promoUI.isEnabled)return this.logger.info("promo UI feature is disabled"),(0,l.of)(m.Lx);const Gt=this.distributedTracingUtilService.startSpan(a.pB.CampaignsInfo),yt=this.idmService.getAuthToken(St,Gt);return(0,d.zV)([yt,this.getVpcIdLocale()]).pipe((0,P.s)(1),(0,y.ZZ)(([Wt,ke])=>this.lcarsSdk.fetchQueryData(le.Campaigns,{locale:ke[1],vpcId:ke[0]},Gt,Wt)),(0,_.T)(Wt=>(this.refreshUiService.setContentExpiryInfo(U.sD.CampaignsData),this.endSpan(Gt,!1),this.refreshCampaignsInfo=!1,Wt.data.campaigns)),(0,i.W)(Wt=>this.idmService.handleAuthError(Wt,St,this.fetchCampaignsInfo.bind(this))),(0,i.W)(Wt=>(this.logger.error("Error in fetching CampaignsInfo",Wt),this.endSpan(Gt,!0),(0,v.$)(Wt))))}getCampaignsInfo(){return this.refreshCampaignsInfo?this.fetchCampaignsInfo().pipe((0,f.M)(St=>this.campaignsInfoStream.setData(St,!0))):this.campaignsInfoStream.get$()}refreshCampaignsInfoStream(){this.campaignsInfoStream.refresh()}fetchFilterGroupSortOrderDefinitions(St=!1){const Gt=this.distributedTracingUtilService.startSpan(a.pB.FilterGroupSortOrderDefinitions),yt=this.idmService.getAuthToken(St,Gt);return(0,d.zV)([yt,this.getLocale()]).pipe((0,P.s)(1),(0,y.ZZ)(([Wt,ke])=>this.lcarsSdk.fetchQueryData(le.FilterGroupAndSortOrderDefinitions,{locale:ke},Gt,Wt)),(0,_.T)(Wt=>{this.endSpan(Gt,!1),this.refreshFilterGroupSortOrderDefinitions=!1,this.refreshUiService.setContentExpiryInfo(U.sD.FilterGroupDefinitions);const ke=Wt.data.filterGroupDefinitions;ke.forEach(Ae=>{Ae.filters.forEach(qe=>{qe.filterFields=[];for(let Lt=0;Lt<qe.filters.length;Lt++){const Zt=JSON.parse(qe.filters[Lt]);qe.filterFields[Lt]=Zt}})});const be=Wt.data?.sortOrderDefinitions;return this.logger.info(`Filter group list: ${JSON.stringify(ke)}`),{sortOrderDefinitions:be,filterGroupDefinitions:ke}}),(0,i.W)(Wt=>this.idmService.handleAuthError(Wt,St,this.fetchFilterGroupSortOrderDefinitions.bind(this))),(0,i.W)(Wt=>(this.logger.error("Error in fetching fetchFilterGroupSortOrderDefinitions",Wt),this.endSpan(Gt,!0),(0,l.of)(m.VQ))))}getFilterGroupSortOrderDefinitions(){return this.refreshFilterGroupSortOrderDefinitions=this.refreshFilterGroupSortOrderDefinitions||this.refreshUiService.isContentExpired(U.sD.FilterGroupDefinitions),this.refreshFilterGroupSortOrderDefinitions?this.fetchFilterGroupSortOrderDefinitions().pipe((0,f.M)(St=>this.filterGroupSortOrderDefinitionsStream.setData(St,!0))):this.filterGroupSortOrderDefinitionsStream.get$()}refreshFilterGroupSortOrderDefinitionsStream(){this.filterGroupSortOrderDefinitionsStream.refresh()}getLoginwallStrings(){const St=this.distributedTracingUtilService.startSpan(a.pB.GetLoginWallStringsOnly);return this.getLocale().pipe((0,y.ZZ)(Gt=>this.lcarsSdk.fetchQueryData(le.LoginWallStringsOnly,{locale:Gt,stringsKey:[m.V9]})),(0,_.T)(Gt=>(this.endSpan(St,!1),Gt?.data?.clientStrings[m.V9])),(0,i.W)(Gt=>(this.endSpan(St,!0),(0,v.$)(Gt))))}addFavoriteApp(St,Gt=!1){const yt=this.distributedTracingUtilService.startSpan(a.pB.AddFavoriteApp);return this.getLocale().pipe((0,P.s)(1),(0,y.ZZ)(Wt=>this.lcarsSdk.postQueryData(le.AddFavoriteApp,{appId:St,locale:Wt},yt,Gt)),(0,_.T)(Wt=>(this.logger.info("addFavoriteApp response",Wt),this.endSpan(yt,!1),!0)),(0,i.W)(Wt=>(this.logger.error("Error in addFavoriteApp",Wt),this.endSpan(yt,!0),(0,v.$)(Wt))))}removeFavoriteApp(St,Gt=!1){const yt=this.distributedTracingUtilService.startSpan(a.pB.RemoveFavoriteApp);return this.getLocale().pipe((0,P.s)(1),(0,y.ZZ)(Wt=>this.lcarsSdk.postQueryData(le.RemoveFavoriteApp,{appId:St,locale:Wt},yt,Gt)),(0,_.T)(Wt=>(this.logger.info("RemoveFavoriteApp response",Wt),this.endSpan(yt,!1),!0)),(0,i.W)(Wt=>404===Wt?.status?(this.logger.info("Treating 404 for removal of favorite as success"),this.endSpan(yt,!1),(0,l.of)(!0)):(this.logger.error("Error in removeFavoriteApp",Wt),this.endSpan(yt,!0),(0,v.$)(Wt))))}addOwnedVariant(St,Gt=!1){const yt=this.distributedTracingUtilService.startSpan(a.pB.AddOwnedVariant);return this.getLocale().pipe((0,P.s)(1),(0,y.ZZ)(Wt=>this.lcarsSdk.postQueryData(le.AddOwnedVariant,{cmsId:St,locale:Wt},yt,Gt)),(0,_.T)(Wt=>(this.logger.info("addOwnedVariant response",Wt),this.endSpan(yt,!1),!0)),(0,i.W)(Wt=>(this.logger.error("Error in addOwnedVariant",Wt),this.endSpan(yt,!0),(0,l.of)(!1))))}removeOwnedVariant(St,Gt=!1){const yt=this.distributedTracingUtilService.startSpan(a.pB.RemoveOwnedVariant);return this.getLocale().pipe((0,P.s)(1),(0,y.ZZ)(Wt=>this.lcarsSdk.postQueryData(le.RemoveOwnedVariant,{cmsId:St,locale:Wt},yt,Gt)),(0,_.T)(Wt=>(this.logger.info("removeOwnedVariant response",Wt),this.endSpan(yt,!1),!0)),(0,i.W)(Wt=>404===Wt?.status?(this.logger.info("Treating 404 for mark as unowned as success"),this.endSpan(yt,!1),(0,l.of)(!0)):(this.logger.error("Error in removeOwnedVariantSpan",Wt),this.endSpan(yt,!0),(0,v.$)(Wt))))}selectOwnedVariant(St,Gt=!1){const yt=this.distributedTracingUtilService.startSpan(a.pB.SelectOwnedVariant);return this.getLocale().pipe((0,P.s)(1),(0,y.ZZ)(Wt=>this.lcarsSdk.postQueryData(le.SelectOwnedVariant,{cmsId:St,locale:Wt},yt,Gt)),(0,_.T)(Wt=>(this.logger.info("selectOwnedVariant response",Wt),this.endSpan(yt,!1),!0)),(0,i.W)(Wt=>(this.logger.error("Error in selectOwnedVariant",Wt),this.endSpan(yt,!0),(0,l.of)(!1))))}fetchOgll(){const St=this.distributedTracingUtilService.startSpan(a.pB.OverallGfnSupportedLanguages);return this.lcarsSdk.fetchQueryData(le.OverallGfnSupportedLanguages,null,St).pipe((0,_.T)(Gt=>(this.endSpan(St,!1),Gt.data?.overallGfnSupportedLanguages??[])),(0,i.W)(Gt=>(this.logger.error("Error fetching overall languages data",Gt),this.endSpan(St,!0),(0,l.of)([]))))}getOgll$(){return this.overallGfnLanguageListStream.get$()}static{this.\u0275fac=function(Gt){return new(Gt||rt)(Ze.KVO(Qe.J6),Ze.KVO(c.mZ),Ze.KVO(xe),Ze.KVO(Qe.iH),Ze.KVO(We.k_),Ze.KVO(lt.G),Ze.KVO(D.lS),Ze.KVO(a.Z1),Ze.KVO(I.DL),Ze.KVO(U.F4),Ze.KVO(It.Vk),Ze.KVO(ft.x),Ze.KVO(Qe.Pl))}}static{this.\u0275prov=Ze.jDH({token:rt,factory:rt.\u0275fac,providedIn:"root"})}}return rt})();s(95989),s(43354),s(89284)},70433:(Bt,z,s)=>{"use strict";s.d(z,{X:()=>bt});var n=s(56785),d=(s(81834),s(31418)),v=s(78893),S=s(99469),O=(s(89284),s(59062),s(71780)),P=s(61958),_=s(99569);s(58202),s(60990),s(97888),s(54676),s(40514),s(33328);var Et=s(75707),$e=s(36666),Ze=s(8619),Qe=s(65706),Ve=s(83915),nt=s(14714),Ot=s(53461),at=s(43848),It=s(85735),We=s(80583),xe=s(26513),lt=s(31315),ft=s(59859),ht=s(36466),Xt=s(15652),Ht=s(82187),Je=s(82094),tt=s(36206),rt=s(46356),et=s(55059),St=s(50778),Gt=s(94829),yt=s(9801),Wt=s(26875),ke=s(6478),be=s(58527),Ae=s(55512),qe=s(75318),Lt=s(43897),Zt=s(14043),fn=s(7703),hn=s(54250),On=s(5349),fi=s(96542),Ji=s(65597),Fi=s(80561);let bt=(()=>{class bn{constructor(jt,gn,ui,Ii,pr,zr,Cn,pn,ti,pi,cn,An,Jn,hi,xi,xn,Yn,Gn,Ci,ln,bi,Zi){this.idmService=gn,this.idmLoginService=ui,this.routerService=Ii,this.nesUserInfoService=pr,this.lcarsService=zr,this.deeplinkHelperService=Cn,this.imageFormatService=pn,this.redirectService=ti,this.browseUxService=pi,this.appConfig=cn,this.genericDialog=An,this.unsupportedBrowserService=Jn,this.settingsService=hi,this.localeService=xi,this.appLaunchPerformanceService=xn,this.translateService=Yn,this.idmTelemetryService=Gn,this.loginHintService=Ci,this.snackbar=ln,this.oobeService=bi,this.distributedTracingUtilService=Zi,this.backToCloseResult=rt.ie.Cancel,this.handleRoute=(Mr,$r)=>{this.appLaunchPerformanceService.onLoginWallCheckStart();const _o=$r.url,bo=_o?.includes(v.f.LoginWall),Kn=_o?.includes(v.f.Deeplink),gi=Mr.queryParamMap;return Kn&&this.deeplinkHelperService.setDeeplinkZoneOverride(gi,$r.url),(0,v.ED)()?(this.appLaunchPerformanceService.onLoginWallCheckEnd(),(0,at.of)(!0)):this.isLoginWallEnabled().pipe((0,Et.ZZ)(Pi=>Pi?this.getURLAfterLoginCheck(bo):(0,at.of)(bo?v.f.Home:void 0)),(0,Et.ZZ)(Pi=>Kn?this.getURLAfterDeeplinkCheck(gi,Pi):(0,at.of)(Pi)),(0,Et.ZZ)(Pi=>{if(Pi){this.appLaunchPerformanceService.onLoginWallCheckEnd();const ji=new Map;return gi.keys.forEach(Qi=>{ji.set(Qi,gi.get(Qi))}),this.routerService.navigateByUrl(Pi,{state:{initialURL:_o,queryParamMap:ji}})}return bo||(this.loginWallFlowComplete$.next(!0),this.browseUxService.allowEarlyLayoutFetch()),this.appLaunchPerformanceService.onLoginWallCheckEnd(),(0,at.of)(!0)}))},this.logger=jt.getLogger("LoginWallService"),this.loginProviderInfo$=new It.m(1),this.unsupportedScenarioInfo$=new It.m(1),this.loginWallBackgroundData$=new It.m(1),this.loginWallStrings$=new It.m(1),this.clientVersionString$=new It.m(1),this.pwaInfo$=new It.m(1),this.loginStatus$=new We.B7,this.loginWallFlowComplete$=new It.m(1),this.needsWindowWorkaround=!!cn?.featureEnablement?.loginPopupBlockerWorkaround,this.enableFocusOnDefaultCTA$=new It.m(1),this.offDeviceDialogClosedStateSubject=new xe.t(!0)}initializeNavigateOnLogoutSubscription(){this.idmService.accountStatusChanged.pipe((0,$e.i)(1),(0,Ze.p)(jt=>!jt.isAuthenticated)).subscribe(jt=>this.routerService.navigateByUrl(v.f.LoginWall))}getSpecificProviderInfo(jt){return this.nesUserInfoService.providerInfo$.pipe((0,Qe.s)(1),(0,Ve.T)(gn=>{const ui=gn?.gfnServiceEndpoints?.find(pr=>pr.loginProvider===jt);return{allowProviderSwitch:!0,idpId:ui?.idpId,defaultProvider:ui?.loginProviderDisplayName,countryCode:gn?.clientCountryCode}}))}getSsoLoginInfo(){return this.appConfig?.featureEnablement?.logininfo?.enabled?this.loginHintService.getSsoLoginInfo():(0,at.of)(null)}ssoLoginHint(){return(0,lt.zV)([this.getSsoLoginInfo(),this.loginProviderInfo$]).pipe((0,Ve.T)(([jt,gn])=>this.idmService.gfnStoredLoginInfoApplicableForSso(gn?.idpId,this.appConfig?.starfleet?.jarvisIdpId,jt)?jt?.login_hint:null),(0,nt.W)(jt=>(this.logger.error("Error fetching loginInfo along with providerInfo",jt),(0,ft.$)(jt))))}fetchProviderInfo(){this.nesUserInfoService.loginPreferredProviders$.pipe((0,Et.ZZ)(jt=>1!==jt?.length?(0,at.of)({allowProviderSwitch:!1}):this.getSpecificProviderInfo(jt[0]))).subscribe(jt=>{this.traceLoginWallOperation(ke.pB.LoginWallProviderInfo,{isError:!1}),this.loginProviderInfo$.next(jt)},jt=>{this.logger.error("Error showing switch provider picker.",jt),this.traceLoginWallOperation(ke.pB.LoginWallProviderInfo,{isError:!0,errorType:"ProviderInfoFetchError",errorObject:jt}),this.loginProviderInfo$.next({allowProviderSwitch:!1})})}isLoginWallEnabled(){return(0,at.of)(this.appConfig.featureEnablement.showLoginWall)}showGameNotFoundToastMessage(){this.idmService.accountStatusChanged.pipe((0,Qe.s)(1),(0,Et.ZZ)(jt=>jt.isAuthenticated?(0,at.of)(null):this.translateService.get("loginWall.gameNotAvailable"))).subscribe(jt=>{if(jt)return this.snackbar.open(jt,"",{duration:d.VT,horizontalPosition:"left",panelClass:["nv-hig"]})},ht.l)}getURLAfterDeeplinkCheck(jt,gn){return this.deeplinkHelperService.performHandlingCheck(jt).pipe((0,Et.ZZ)(ui=>{if(!ui.canHandle)return this.logger.info("Cannot handle deeplink"),(0,at.of)(null);const Ii=jt.has(Ht.aj.CmsId);return this.lcarsService.getAppdata(jt.get(Ii?Ht.aj.CmsId:Ht.aj.GameId),{isCmsId:Ii})}),(0,Ve.T)(ui=>ui&&ui[0]?(this.traceLoginWallOperation(ke.pB.LoginWallDeeplink,{isError:!1,attributes:{[ke.NS.GameFound]:!0}}),gn):(this.showGameNotFoundToastMessage(),this.traceLoginWallOperation(ke.pB.LoginWallDeeplink,{isError:!1,attributes:{[ke.NS.GameFound]:!1}}),v.f.Home)),(0,nt.W)(ui=>(this.logger.error("Error while fetching game metadata: ",ui),this.traceLoginWallOperation(ke.pB.LoginWallDeeplink,{isError:!0,errorType:"DeeplinkMetadataFetchError",errorObject:ui}),(0,at.of)(v.f.Home))))}getURLAfterLoginCheck(jt){return this.idmService.accountStatusChanged.pipe((0,Qe.s)(1),(0,Ve.T)(gn=>gn.isAuthenticated?jt?v.f.Home:void 0:jt?void 0:v.f.LoginWall))}getBackgroundContentParameters(jt){if(this.returnLocationURL?.includes(v.f.Deeplink)){const ui=jt.has(Ht.aj.CmsId);return{contentType:d.CZ.Game,isCmsId:ui,contentId:jt.get(ui?Ht.aj.CmsId:Ht.aj.GameId)}}return{contentType:d.CZ.Catalog}}fetchUnsupportedScenarioInfo(){this.unsupportedBrowserService.getUnsupportedBrowserState$().pipe((0,Et.ZZ)(jt=>(this.logger.info("Browser Compatibility State at login wall: ",jt),(0,lt.zV)([this.unsupportedBrowserService.getDialogLink$(jt),this.unsupportedBrowserService.getUnsupportedHeaderText$(jt)])))).subscribe(([jt,gn])=>{this.unsupportedScenarioInfo$.next({text:gn,link:jt})})}fetchClientVersion(){this.browseUxService.getVersionString().pipe((0,Qe.s)(1)).subscribe(jt=>{this.clientVersionString$.next(jt)})}checkForOOBEClosed(){this.oobeService.oobeDialogClosedState.pipe((0,Ze.p)(jt=>jt)).subscribe(jt=>this.enableFocusOnDefaultCTA$.next())}enableFocusOnDefaultCTA(){return this.enableFocusOnDefaultCTA$.asObservable()}fetchPWAInfo(){const jt=this.localeService.localeChanged.pipe((0,Ve.T)(gn=>this.settingsService.getLinksUrl(St.ni.GFN_PC_FAQ_IOS,gn)));(0,lt.zV)([this.unsupportedBrowserService.shouldDisplayPWAGuidance$(),jt]).subscribe(([gn,ui])=>{this.pwaInfo$.next({shouldShowPWAGuidance:gn,faqUrl:ui})})}isSameTabLoginEnabled(){return(0,at.of)(this.appConfig.starfleet.sameTabLogin)}getUnsupportedScenarioInfo(){return this.unsupportedScenarioInfo$.asObservable()}getServerErrorURLs(){return this.redirectService.getRedirectUrl(tt.r7.GfnServerStatus).pipe((0,Ve.T)(jt=>[jt,tt.lp[tt.r7.GfnServerStatus]]))}onLoginWallFlowCompleted$(){return this.isLoginWallEnabled().pipe((0,Et.ZZ)(jt=>jt?this.loginWallFlowComplete$.asObservable():(0,at.of)(!0)),(0,Ot.F)())}getPWAInfo(){return this.pwaInfo$.asObservable()}initiateContentFetch(jt){this.appLaunchPerformanceService.onLoginWallDataFetchStart();const gn=this.getBackgroundContentParameters(jt);if(gn.contentType===d.CZ.Game){const ui=this.lcarsService.getAppdata(gn.contentId,{isCmsId:gn.isCmsId}),Ii=this.lcarsService.getLoginwallStrings();(0,lt.zV)([ui,Ii]).pipe((0,Qe.s)(1)).subscribe(([pr,zr])=>{this.traceLoginWallOperation(ke.pB.LoginWallDataFetch,{isError:!1});const Cn=pr[0]?.images,pn=[];pr[0].variants.forEach(pi=>{const cn=Je.X9.getStoreInfoForAppstore(pi.appStore),An=cn?.smallImageUrl;pn.push({logo:An,label:cn?.label===Je.$f?pr[0].publisherName:cn.label})});const ti={backgroundImageUrl:Cn?.HERO_IMAGE,gameTitle:pr[0].title,logoImageUrl:Cn?.GAME_LOGO?this.imageFormatService.formatImageServiceUrl(Cn?.GAME_LOGO,{w:360}):"",appStoresInfo:pn,forSkuMembersLabel:pr[0]?.gfn?.catalogSkuStrings?.SKU_BASED_TAG};this.appLaunchPerformanceService.onLoginWallDataFetchEnd(),this.loginWallBackgroundData$.next({data:ti}),this.loginWallStrings$.next(zr)},pr=>{this.logger.error("Error while fetching login wall data for deeplink.",pr),this.traceLoginWallOperation(ke.pB.LoginWallDataFetch,{isError:!0,errorType:"LoginWallDeeplinkDataFetchError",errorObject:pr}),this.appLaunchPerformanceService.onLoginWallDataFetchEnd(),this.loginWallBackgroundData$.next(null)})}else this.lcarsService.getLoginWallData().pipe((0,Qe.s)(1)).subscribe(pr=>{this.traceLoginWallOperation(ke.pB.LoginWallDataFetch,{isError:!1});const Cn={imageUrls:pr.backgroundData.data.imageUrls};this.appLaunchPerformanceService.onLoginWallDataFetchEnd(),this.loginWallBackgroundData$.next({data:Cn}),this.loginWallStrings$.next(pr.strings)},pr=>{this.logger.error("Error while fetching game catalog data.",pr),this.traceLoginWallOperation(ke.pB.LoginWallDataFetch,{isError:!0,errorType:"LoginWallCatalogDataFetchError",errorObject:pr}),this.appLaunchPerformanceService.onLoginWallDataFetchEnd(),this.loginWallBackgroundData$.next(null)})}cancelLogin(){this.idmService.cancelLogin(!1).subscribe(jt=>{(0,Wt.isEmpty)(jt)&&this.loginStatus$.next({loginProcessComplete:!0,state:d.fG.Unknown})})}initializeNavigationSubscription(){if(this.postLoginSubscription)return;const jt=this.loginStatus$.pipe((0,Ze.p)(ui=>ui.state===d.fG.Success)),gn=this.idmService.accountStatusChanged.pipe((0,Ze.p)(ui=>ui.isAuthenticated));this.postLoginSubscription=(0,Xt.O4)([jt,gn]).pipe((0,Qe.s)(1)).subscribe(ui=>{this.traceLoginWallOperation(ke.pB.LoginWallRedirect,{isError:!1}),this.routerService.navigateByUrl(this.returnLocationURL),this.postLoginSubscription=null},ui=>{this.logger.error("Error in postLoginSubscription. ",ui),this.traceLoginWallOperation(ke.pB.LoginWallRedirect,{isError:!0,errorType:"PostLoginNavigationError",errorObject:ui}),this.postLoginSubscription=null})}getLoginStatus$(){return this.loginStatus$.asObservable()}traceLoginAttempt(jt,gn=!1,ui){const Ii=this.distributedTracingUtilService.startSpan(ke.pB.LoginAttempt),pr=jt.state===d.fG.Failure||jt.state===d.fG.Aborted;let zr="";const Cn=this.idmService.getLastError();pr&&Cn?.error_description&&(zr=Cn.error_description);const pn=pr?Cn?.error_code:void 0,ti=pr?Cn?.error_uri:void 0;!gn&&ui?this.distributedTracingUtilService.setSpanAttribute(Ii,ke.NS.LoginIdpId,ui):gn&&this.distributedTracingUtilService.setSpanAttribute(Ii,ke.NS.LoginIdpId,"UNKNOWN"),this.distributedTracingUtilService.setSpanAttribute(Ii,ke.NS.LoginStatus,jt.state),this.distributedTracingUtilService.setSpanAttribute(Ii,ke.NS.Error,pr),pr&&zr&&this.distributedTracingUtilService.setSpanAttribute(Ii,ke.NS.ErrorMessage,zr),pr&&pn&&this.distributedTracingUtilService.setSpanAttribute(Ii,ke.NS.LoginErrorCode,pn),pr&&ti&&this.distributedTracingUtilService.setSpanAttribute(Ii,ke.NS.LoginErrorUrl,ti),this.distributedTracingUtilService.closeSpan(Ii)}traceOffDeviceLoginStart(jt,gn){this.offDeviceLoginSpan=this.distributedTracingUtilService.startSpan(ke.pB.OffDeviceLogin),this.distributedTracingUtilService.setSpanAttribute(this.offDeviceLoginSpan,ke.NS.LoginMethod,"offdevice")}traceOffDeviceLoginComplete(jt){if(!this.offDeviceLoginSpan)return void this.logger.warn("Attempting to complete off-device login tracing without an active span");const gn=jt===d.fG.Failure||jt===d.fG.Aborted,ui=this.idmService.getLastError();this.distributedTracingUtilService.setSpanAttribute(this.offDeviceLoginSpan,ke.NS.LoginResult,jt),this.distributedTracingUtilService.setSpanAttribute(this.offDeviceLoginSpan,ke.NS.Error,gn),gn&&ui?.error_description&&this.distributedTracingUtilService.setSpanAttribute(this.offDeviceLoginSpan,ke.NS.ErrorMessage,ui.error_description),gn&&ui?.error_code&&this.distributedTracingUtilService.setSpanAttribute(this.offDeviceLoginSpan,ke.NS.LoginErrorCode,ui.error_code),this.distributedTracingUtilService.closeSpan(this.offDeviceLoginSpan),this.offDeviceLoginSpan=null}attemptLogin(jt=!1){this.initializeNavigationSubscription();const gn=this.appConfig.starfleet.sameTabLogin;if(this.needsWindowWorkaround&&!gn&&(this.browserPopup=window.open("","_blank"),!this.browserPopup))return this.logger.error("Failed to open new window for login."),this.cancelLogin(),void this.loginStatus$.next({loginProcessComplete:!0,state:d.fG.Aborted});const ui=this.loginProviderInfo$.pipe((0,Qe.s)(1),(0,Ve.T)(pr=>pr.idpId));let Ii=!1;(0,lt.zV)([this.idmLoginService.getDeviceName$(),ui,this.getSsoLoginInfo()]).pipe((0,Qe.s)(1),(0,Et.ZZ)(([pr,zr,Cn])=>{let pn;this.idmTelemetryService.sendLoginStartEvent(zr,gn),this.idmService.gfnStoredLoginInfoApplicableForSso(zr,this.appConfig.starfleet.jarvisIdpId,Cn)&&!jt&&(pn={silentLoginHelperInstance:null,ssoSharedPageData:{idp_id:Cn?.idp_id,login_hint:Cn?.login_hint}},Ii=!0);const ti=window.location.origin+window.location.pathname+window.location.search;return this.idmService.login(!1,jt?null:zr,this.browserPopup,pr,ti+"#"+this.returnLocationURL,pn).pipe((0,Ve.T)(pi=>({loginServiceState:pi,idpToTrace:zr})))}),(0,Ve.T)(({loginServiceState:pr,idpToTrace:zr})=>{this.logger.info("starfleet login state update",pr);const Cn={loginProcessComplete:!1,state:d.fG.Unknown,errorMessage:"",retryAvailable:!0},pn=Ii?yt.a.isLoginViaLoginHint:yt.a.None;switch(pr){case rt.l4.LoginRedirectCompleted:Cn.state=d.fG.RedirectCompleted;break;case rt.l4.LoginAbortedByUser:Cn.loginProcessComplete=!0,Cn.state=d.fG.Aborted;break;case et.gT.LoggedIn:Cn.loginProcessComplete=!0,Cn.state=d.fG.Success,this.idmTelemetryService.sendLoginSuccessUserSessionEvent(pn),this.closeOffDeviceAuthDialog(Cn.state);break;case rt.l4.LoginFailed:case et.gT.Failed:Cn.loginProcessComplete=!0,Cn.state=d.fG.Failure,this.idmTelemetryService.sendLoginFailureUserSessionEvent(pn),this.closeOffDeviceAuthDialog(Cn.state);break;case rt.l4.LoginFailedNoRetry:case et.gT.LoggedOut:Cn.state=d.fG.Failure,Cn.retryAvailable=!1,Cn.loginProcessComplete=!0,this.idmTelemetryService.sendLoginFailureUserSessionEvent(pn),this.closeOffDeviceAuthDialog(Cn.state);break;case rt.l4.LoginFailedToStart:Cn.state=d.fG.Failure,Cn.loginProcessComplete=!0,this.idmTelemetryService.sendCreateHTTPServerErrorEvent(),this.closeOffDeviceAuthDialog(Cn.state);break;case rt.l4.LoginInProgressNeedDisplayCode:this.onNeedDisplayCode()}return Cn.loginProcessComplete&&this.traceLoginAttempt(Cn,jt,zr),this.loginStatus$.next(Cn),Cn})).subscribe()}onNeedDisplayCode(){const jt=this.idmService.getDeviceDisplayCode().url,gn=this.idmService.getDeviceDisplayCode().url_complete,ui=this.idmService.getDeviceDisplayCode().user_code;let Ii;if(ui&&(Ii=(0,Gt.zC)(ui)),!jt||!gn||!ui)throw new Error(`Failed to launch login bridge dialog. deviceAuthUri: ${jt}, deviceAuthUriComplete: ${gn}, rawCode: ${ui}`);{this.traceOffDeviceLoginStart(ui,jt);const pr=this.appConfig.featureEnablement.preferBottomSheetForLogin?{link:{url:gn,text:""}}:{image:{url:gn}},zr={panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:(0,Gt.ZE)(jt)},primaryButton:{text:"common.cancelTitleCase"},bodyText:{text:"loginBridgeState.deviceAuthLogin",placeholders:{authCode:`<div class="font-header3 white">${Ii}</div>`}},footerText:{text:"loginBridgeState.deviceAuthHint"},...pr}};this.openOffDeviceLoginDialog(zr)}}openOffDeviceLoginDialog(jt){this.closeOffDeviceAuthDialog(),this.offDeviceAuthDialogRef=this.genericDialog.open(jt,{preferredDialogType:this.appConfig.featureEnablement.preferBottomSheetForLogin?n.QO.BottomSheet:n.QO.ThreeQuarterSheet}),this.offDeviceAuthDialogRef.backToCloseResult=this.backToCloseResult,this.offDeviceDialogClosedStateSubject.next(!1),this.offDeviceAuthDialogRef.afterClosed().pipe((0,Qe.s)(1)).subscribe(ui=>{this.offDeviceDialogClosedStateSubject.next(!0)}),this.offDeviceDialogSubscription=(0,Xt.O4)([this.offDeviceAuthDialogRef.primaryButtonClick,this.offDeviceAuthDialogRef.afterClosed()]).subscribe(()=>{this.cancelLogin(),this.closeOffDeviceAuthDialog()})}isOffDeviceDialogClosed(){return this.offDeviceDialogClosedStateSubject.asObservable()}closeOffDeviceAuthDialog(jt){if(this.offDeviceAuthDialogRef){const gn=jt??d.fG.Unknown;this.offDeviceDialogSubscription?.unsubscribe(),this.offDeviceDialogSubscription=null,this.offDeviceAuthDialogRef?.close(),this.offDeviceAuthDialogRef=void 0,this.loginStatus$.next({loginProcessComplete:!0,state:gn,errorMessage:"",retryAvailable:!0}),jt&&this.traceOffDeviceLoginComplete(gn)}}get returnLocationURL(){return this._returnLocationURL??v.f.Home}updateReturnLocationURL(jt){this._returnLocationURL=jt?jt===v.f.Base?v.f.Home:jt:v.f.Home}getDefaultLoginProviderInfo(){return this.loginProviderInfo$.asObservable()}getLoginWallBackgroundContent(){return this.loginWallBackgroundData$.asObservable()}getLoginWallStrings(){return this.loginWallStrings$.asObservable()}getClientVersionString(){return this.clientVersionString$.asObservable()}getLearnMoreUrl(){return this.redirectService.getRedirectUrl(tt.r7.GfnPcInfo).pipe((0,Qe.s)(1),(0,Ve.T)(jt=>({redirectURL:jt,shortURL:tt.lp[tt.r7.GfnPcInfo]})))}getBackgroundInfo(jt){return this.getBackgroundContentParameters(jt).contentType===d.CZ.Game?(0,at.of)({contentType:d.CZ.Game,fallbackImageUrls:[""]}):(0,at.of)({contentType:d.CZ.Catalog,fallbackImageUrls:[d.U4]})}initialize(){this.isLoginWallEnabled().pipe((0,Qe.s)(1),(0,Ze.p)(jt=>jt)).subscribe(jt=>{this.initializeNavigateOnLogoutSubscription(),this.fetchProviderInfo(),this.fetchUnsupportedScenarioInfo(),this.fetchClientVersion(),this.fetchPWAInfo(),this.checkForOOBEClosed()})}traceLoginWallOperation(jt,gn){const ui=this.distributedTracingUtilService.startSpan(jt);if(this.distributedTracingUtilService.setSpanAttribute(ui,ke.NS.Error,gn.isError),gn.attributes&&Object.entries(gn.attributes).forEach(([Ii,pr])=>{this.distributedTracingUtilService.setSpanAttribute(ui,Ii,pr)}),gn.isError){gn.errorType&&this.distributedTracingUtilService.setSpanAttribute(ui,ke.NS.ErrorMessage,gn.errorType);const Ii=gn.errorObject;Ii&&("string"==typeof Ii?this.distributedTracingUtilService.setSpanAttribute(ui,ke.NS.ErrorDetails,Ii):Ii.message?this.distributedTracingUtilService.setSpanAttribute(ui,ke.NS.ErrorDetails,Ii.message):Ii.toString()&&this.distributedTracingUtilService.setSpanAttribute(ui,ke.NS.ErrorDetails,Ii.toString()),Ii.status&&this.distributedTracingUtilService.setSpanAttribute(ui,ke.NS.HttpStatusCode,Ii.status),Ii.stack&&this.distributedTracingUtilService.setSpanAttribute(ui,ke.NS.ErrorStack,Ii.stack))}this.distributedTracingUtilService.closeSpan(ui)}static{this.\u0275fac=function(gn){return new(gn||bn)(be.KVO(S.J6),be.KVO(Ae.k_),be.KVO(qe.n),be.KVO(v.HM),be.KVO(Lt.lW),be.KVO(Zt.Br),be.KVO(fn.w),be.KVO(S.Pl),be.KVO(tt.Q5),be.KVO(_.T),be.KVO(P.Vk),be.KVO(n.uh),be.KVO(hn.Lk),be.KVO(On.h$),be.KVO(S.iH),be.KVO(O.ap),be.KVO(fi.c$),be.KVO(yt.J),be.KVO(S.IU),be.KVO(Ji.UG),be.KVO(Fi.Z),be.KVO(ke.Z1))}}static{this.\u0275prov=be.jDH({token:bn,factory:bn.\u0275fac,providedIn:"root"})}}return bn})()},31418:(Bt,z,s)=>{"use strict";s.d(z,{CZ:()=>f,KP:()=>d,U4:()=>v,VT:()=>i,fG:()=>_});const d=400,v="assets/img/LoginWallFallbackTile.webp";var f=function(r){return r.Unknown="Unknown",r.Catalog="Catalog",r.Game="Game",r}(f||{}),_=function(r){return r.Unknown="Unknown",r.RedirectCompleted="RedirectCompleted",r.Aborted="Aborted",r.Success="Success",r.Failure="Failure",r}(_||{});const i=8e3},53747:(Bt,z,s)=>{"use strict";s.d(z,{eE:()=>n,mG:()=>l});var n=function(S){return S.DbStoreName="BrowseUxStore",S}(n||{}),l=function(S){return S.showDesktopShortcutPrompt="showDesktopShortcutPrompt",S.showSearchTip="showSearchTip",S.skipGamepadWarningDialog="skipGamepadWarningDialog",S.skipKeyboardMouseWarningDialog="skipKeyboardMouseWarningDialog",S.skipDayPassLowPlayTimeRemainingDialog="skipDayPassLowPlayTimeRemainingDialog",S.skipTimeCapLowPlayTimeRemainingDialog="skipTimeCapLowPlayTimeRemainingDialog",S.skipTimeCapLimitedPlayTimeRemainingDialog="skipTimeCapLimitedPlayTimeRemainingDialog",S.skipBuyProtectionDialog="skipBuyProtectionDialog",S.showUdsNotificationIcon="showUdsNotificationIcon",S.toastShown="toastShown",S}(l||{})},14331:(Bt,z,s)=>{"use strict";s.d(z,{HJ:()=>U,Ix:()=>S,Jv:()=>N,Uf:()=>V,VN:()=>D,aj:()=>y,bE:()=>T,dn:()=>v,eL:()=>O,hV:()=>g,kC:()=>c,kw:()=>_,mB:()=>r,oT:()=>i,py:()=>f,vz:()=>E}),s(87687);var l=s(95318);const v="TV_BANNER_",S="deeplink";var y=function(R){return R.Action="action",R.CmsId="cms-id",R.GameId="game-id",R.Store="store",R.Zone="zone",R.AssetId="asset-id",R.Locale="lang",R.ShowEvidencePanel="showEvidencePanel",R.SectionId="sectionId",R.Nonce="nonce",R.Redirect="redirect",R.PartnerData="partner-data",R.ExtraData="extra-data",R.UtmSource="utm_source",R.UtmCampaign="utm_campaign",R.UtmMedium="utm_medium",R.UtmTerm="utm_term",R.UtmContent="utm_content",R.PartnerId="partner-id",R.WindowedMode="windowed-mode",R.Branch="branch",R.State="state",R}(y||{}),f=function(R){return R.ViewGame="view-game",R.PlayGame="play-game",R.Games="games",R}(f||{});const O=f.ViewGame;var P=function(R){return R.IsViewGameEnabled="isViewGameEnabled",R.IsPlayGameEnabled="isPlayGameEnabled",R.ShowShortcutButton="showShortcutButton",R.ShowShareButton="showShareButton",R.SendDeeplinkTelemetry="sendDeeplinkTelemetry",R.GuestMode="guestMode",R}(P||{});const _={[P.IsViewGameEnabled]:!0,[P.IsPlayGameEnabled]:!0,[P.ShowShareButton]:!1,[P.ShowShortcutButton]:!1,[P.SendDeeplinkTelemetry]:!1},i={[f.ViewGame]:P.IsViewGameEnabled,[f.PlayGame]:P.IsPlayGameEnabled};var r=function(R){return R.Shortcut="shortcut",R.Application="application",R.Marquee="marquee",R}(r||{}),c=function(R){return R.IsNetworkTestEnabled="isNetworkTestEnabled",R.IsIGOEnabled="isIGOEnabled",R.IsOSCEnabled="isOSCEnabled",R.IsPostSessionTipsEnabled="isPostSessionTipsEnabled",R.IsStreamingTimerEnabled="isStreamingTimerEnabled",R.DisableCloseOnStreamExit="disableCloseOnStreamExit",R.ForceTouchModeSettings="forceTouchModeSettings",R.IsGuestAppFlow="isGuestAppFlow",R.IGOSettings="igoSettings",R.IsWhitelabelingEnabled="isWhiteLabelingEnabled",R.Metadata="metadata",R.HideAppStartButton="hideAppStartButton",R.IsWindowedModeCursorTypeFree="isWindowedModeCursorTypeFree",R}(c||{});const D={[c.HideAppStartButton]:!1,[c.IsWindowedModeCursorTypeFree]:!1,[c.IsNetworkTestEnabled]:!1,[c.IsIGOEnabled]:!0,[c.IsOSCEnabled]:!0,[c.IsPostSessionTipsEnabled]:!1,[c.IsStreamingTimerEnabled]:!0,[c.DisableCloseOnStreamExit]:!1,[c.ForceTouchModeSettings]:{launchStreamInTouchFriendlyMode:!1,useOsc:!1},[c.IsGuestAppFlow]:!0,[c.IGOSettings]:{isMicFeatureEnabled:!0,virtualKeyboard:!0,virtualGamepad:!1,pasteDefaultOn:!0,isInGameStatisticsEnabled:!1},[c.IsWhitelabelingEnabled]:!1,[c.Metadata]:{}},I={...D,[c.IsIGOEnabled]:!0,[c.DisableCloseOnStreamExit]:!0,[c.IsGuestAppFlow]:!1},U={DAF_GUESTMODE_25cb5a58:"daf_guestmode_25cb5a58",AC:"82d77512-a90b-42bf-8be9-446fb10341b5",GFN_PLAYTEST:"0F0E5E46-5F1E-42FE-BA5A-74077ED505F1"},V={"AyLZgPglXtCGoG-lPMe0mxYoP6BH9Jva3vLeerYckFA":I,"YwuYeOqCAwvSS9_ohdam7Bn-SQv0b7rLGP2v9lAZWto":I,xfhos6xyQwTHf0I5Scg7LjtfvVw5aeucqdJURXcMBcc:D,H6JxRR6FFDUGwN1fdlgKWBmOPnvDEvEEoudefDooEho:D,"2ZGpTLugwxbQLk8MlqSLFweBjXMJ33xKQdghZfmxTwc":D,"0Xg3tEsmQZqn-zsZgSTIQqJZn5f7X7kuBxE5C9KFsys":D},T={[U.DAF_GUESTMODE_25cb5a58]:"L65LoXgut5_bAQ95JepON01jMMSYxDHB4aa_tHQC-gc"};var N=function(R){return R[R.Success=0]="Success",R[R.Partner_Error=1]="Partner_Error",R[R.GFN_Error=2]="GFN_Error",R[R.Campaign_Suspended=3]="Campaign_Suspended",R[R.GFN_Error_SessionLimitReached=4]="GFN_Error_SessionLimitReached",R}(N||{});const E={id:"dummy-id",appStore:"UNKNOWN",supportedControls:[l.f$.TOUCHSCREEN],contentRatings:null,images:{HERO_IMAGE:"",TV_BANNER:""},variants:[{id:""}]};var g=function(R){return R.Status="status",R.State="state",R.SubStatus="sub-status",R}(g||{})},82187:(Bt,z,s)=>{"use strict";s.d(z,{mG:()=>n.mG,HD:()=>y,aj:()=>d.aj,Ix:()=>d.Ix,py:()=>d.py,VN:()=>d.VN,vz:()=>d.vz,kC:()=>d.kC,Uf:()=>d.Uf,mB:()=>d.mB,dn:()=>d.dn});var n=s(53747),d=(s(5715),s(14331)),y=function(c){return c.zoneMaintenance="ZONE_MAINTENANCE_TIMER",c.paste="PASTE",c.sessionLengthTimer="SESSION_LENGTH_TIMER",c.clickedUrl="CLICKED_URL",c}(y||{});s(31877)},5715:(Bt,z,s)=>{"use strict";s.d(z,{O:()=>l});var l=function(d){return d[d.Play=1]="Play",d[d.Pause=2]="Pause",d[d.Resume=3]="Resume",d}(l||{})},31877:(Bt,z,s)=>{"use strict";s.d(z,{IT:()=>y,N1:()=>S,hz:()=>O,q3:()=>P,rz:()=>f,tk:()=>_,zZ:()=>l});var l=function(i){return i.UNKNOWN="UNKNOWN",i.LIMITED="LIMITED",i.FULL="FULL",i}(l||{}),S=function(i){return i.UNKNOWN="UNKNOWN",i.RTX_ENABLED="RTX_ENABLED",i.HDR_ENABLED="HDR_ENABLED",i.SUPPORTED_HDR_VERSION="SUPPORTED_HDR_VERSION",i.SUPPORTED_AUDIO_FORMATS="SUPPORTED_AUDIO_FORMATS",i.IN_GAME_SETTINGS_PERSISTENCE_ENABLED="IN_GAME_SETTINGS_PERSISTENCE_ENABLED",i.ENABLED_FPS="ENABLED_FPS",i.ENABLED_DEBUG_TOOLS="ENABLED_DEBUG_TOOLS",i.ENABLED_REFLEX="ENABLED_REFLEX",i.CLOUD_GSYNC="CLOUD_GSYNC",i.ENABLED_L4S="ENABLED_L4S",i.BIT_DEPTH="BIT_DEPTH",i}(S||{}),y=function(i){return i.UNKNOWN="UNKNOWN",i.BALANCED="BALANCED",i.DATA_SAVER="DATA_SAVER",i.COMPETITIVE="COMPETITIVE",i}(y||{}),f=function(i){return i.UNKNOWN="UNKNOWN",i.FREE="FREE",i.PAID="PAID",i.PROMOTION="PROMOTION",i.GIFT_CARD="GIFT_CARD",i}(f||{}),O=function(i){return i.UNKNOWN="UNKNOWN",i.UNLIMITED="UNLIMITED",i.DAY_PASS="DAY_PASS",i.TIME_CAPPED="TIME_CAPPED",i}(O||{}),P=function(i){return i.UNKNOWN="UNKNOWN",i.BETTER_PRODUCT="BETTER_PRODUCT",i.SUPPORT_IN_GAME_SETTINGS_PERSISTENCE="SUPPORT_IN_GAME_SETTINGS_PERSISTENCE",i.HIGHER_SESSION_LENGTH="HIGHER_SESSION_LENGTH",i.LOWER_SESSION_QUEUE_WAIT_TIME="LOWER_SESSION_QUEUE_WAIT_TIME",i.HIGHER_FPS="HIGHER_FPS",i.HIGHER_RESOLUTION="HIGHER_RESOLUTION",i.SUPPORT_HDR="SUPPORT_HDR",i.SUPPORT_HDR10_PLUS_GAMING="SUPPORT_HDR10_PLUS_GAMING",i.SUPPORT_RTX="SUPPORT_RTX",i.SUPPORT_REFLEX="SUPPORT_REFLEX",i.AD_FREE_EXPERIENCE="AD_FREE_EXPERIENCE",i.DAY_PASS="DAY_PASS",i.SUPPORT_CLOUD_GSYNC="SUPPORT_CLOUD_GSYNC",i.SUPPORT_L4S="SUPPORT_L4S",i.HIGHER_BIT_DEPTH="HIGHER_BIT_DEPTH",i}(P||{}),_=function(i){return i.UNKNOWN="UNKNOWN",i.PROFILE_VSYNC="PROFILE_VSYNC",i.PROFILE_ADJUST_FOR_NETWORK="PROFILE_ADJUST_FOR_NETWORK",i.PROFILE_HDR="PROFILE_HDR",i.PROFILE_HDR_VERSION="PROFILE_HDR_VERSION",i.PROFILE_REFLEX="PROFILE_REFLEX",i.PROFILE_CLOUD_GSYNC="PROFILE_CLOUD_GSYNC",i.PROFILE_L4S="PROFILE_L4S",i.PROFILE_BIT_DEPTH="PROFILE_BIT_DEPTH",i}(_||{})},18568:(Bt,z,s)=>{"use strict";s.d(z,{jv:()=>I,c4:()=>i,tk:()=>M.tk,IT:()=>M.IT,N1:()=>M.N1,zZ:()=>M.zZ,hz:()=>M.hz,rz:()=>M.rz,q3:()=>M.q3});var n=s(5798),l=s(81834),d=s(18433),v=s(6478),S=s(70521),y=s(75707),f=s(83915),O=s(58527),P=s(61958),_=s(38502);let i=(()=>{class N{constructor(E,g,R,B){this.appConfig=E,this.endpointFactory=g,this.distributedtracingUtilService=R,this.clientHeaderService=B;const{defaultRetries:X=0,defaultTimeBetweenRetries:H=0,defaultTimeout:J=15e3}=E.nes,re={maxRetries:X,timeout:J,timeBetweenRetries:H};this.subscriptionsEndpoint=this.createEndpoint({config:re}),this.serviceUrlEndpoint=this.createEndpoint({config:{...re,maxRetries:E.nes.serviceUrlsMaxRetries}}),this.productEndpoint=this.createEndpoint(),this.firstFetchSet=new Set}buildUrl(E,g={}){const{useLayoutServer:R=!1}=g;return(0,l.l2)(R?[this.appConfig.nes.layoutServer,this.appConfig.nes.layoutServerVersion,E]:[this.appConfig.nes.server,this.appConfig.nes.version,E])}createEndpoint(E){return this.endpointFactory.createEndpoint(E)}createHeader(E){return{[n.SA.authorization]:`GFNJWT ${E.token}`}}createRequestOptions(E,g,R,B){const X={params:{...E},includeRequestId:!0,reportRequestData:{...g},includeFullResponse:B},H=g.serviceUseCase;return X.headers={},R?.token&&(X.headers=this.createHeader(R)),this.firstFetchSet.has(H)?X.headers[S.tD.SwCacheBypass]=JSON.stringify(!0):this.firstFetchSet.add(H),X}createAndCallNesServerAPI(E,g,R,B,X,H,J){return this.clientHeaderService.getCommonHeaders({withClientId:"lcars"}).pipe((0,y.ZZ)(re=>{const ie=this.createRequestOptions({serviceName:"gfn_pc",...R},{originalService:d.Uu$.NES,serviceUseCase:g},B,H);J&&(re[S.tD.SwNotifyFetch]="true"),Object.assign(ie.headers,re);const ve=this.subscriptionsEndpoint.get(this.buildUrl(E),ie);return this.distributedtracingUtilService.handleHttpEndpointSpan(ve,ie,v.pB.FetchSubscriptions,X)}))}getUserSubscription(E,g,R){return this.getMesServerAPIResp(E,g,R)}getMesServerAPIResp(E,g,R){return this.createAndCallNesServerAPI("/subscriptions",d.OOF.NES_Get_Subscriptions,E,g,R,!0,!0).pipe((0,f.T)(B=>{const X={subscription:B.body,lastFetchDateTime:new Date};return X.isCached=B.headers.has(S.tD.SwCache),X}))}getClientStreamingQuality(E,g){return this.createAndCallNesServerAPI("/client/streaming-qualities",d.OOF.NES_GetClientStreamingQuality,E,null,g,null,null)}getProductInfo(E){return this.productEndpoint.get(E)}getLoginProviderInfo(E,g){return this.serviceUrlEndpoint.get(this.buildUrl("/serviceUrls",{useLayoutServer:!0}),this.createRequestOptions(null,{originalService:d.Uu$.Cms,serviceUseCase:d.OOF.NES_Get_ServiceUrls},g))}static{this.\u0275fac=function(g){return new(g||N)(O.KVO(P.Vk),O.KVO(n.t),O.KVO(v.Z1),O.KVO(_.y1))}}static{this.\u0275prov=O.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}}return N})();s(92262);var M=s(31877),I=function(N){return N.UNAVAILABLE="UNAVAILABLE",N.AVAILABLE="AVAILABLE",N.PATCHING="PATCHING",N.SERVER_MAINTENANCE="SERVER_MAINTENANCE",N}(I||{})},43897:(Bt,z,s)=>{"use strict";s.d(z,{no:()=>L,lW:()=>E.l});var n=s(85735),l=s(59859),d=s(43848),v=s(12532),S=s(31315),y=s(8619),f=s(65706),O=s(75707),P=s(25590),_=s(14714),i=s(83915),r=s(53461),a=s(26875),c=s(6478),m=s(70521),M=s(58527),D=s(18568),I=s(55512),U=s(80838),V=s(99469);const N={id:null,title:null,shortDescription:null,longDescription:null,assets:null};let L=(()=>{class g{constructor(B,X,H,J,re,ie,ve){this.nesSdk=B,this.idmService=X,this.gridService=H,this.localeService=J,this.serviceWorkerService=re,this.distributedTracingUtilService=ie,this.subscriptionNetworkFetchedNoUpdate$=new n.m(1),this.logger=ve.getLogger("NesEntitlementService"),this.processedSubscriptionResponse$=new n.m(1),this.initServiceWorkerNotifications()}initServiceWorkerNotifications(){this.serviceWorkerService.swCacheUpdated.pipe((0,y.p)(B=>B.name===m.fR.staleWhileRevalidate.subscriptions.cacheName),(0,f.s)(1),(0,O.ZZ)(B=>B.noDataUpdate?(this.subscriptionNetworkFetchedNoUpdate$.next(!0),(0,l.$)("no update in data")):(0,d.of)(B)),(0,P.E)(this.idmService.accountStatusChanged),(0,O.ZZ)(([B,X])=>{this.logger.info("Subscription SW Cache updated, relaying updated data.",B.data);const H=new URL(B.url);if(H.searchParams.has("userId")){const J=H.searchParams.get("userId");return X.isAuthenticated&&X.userId===J?this.handleSubscriptionResponse({subscription:B.data},X):v.w}return v.w})).subscribe(B=>{this.processedSubscriptionResponse$.next(B)},B=>{this.logger.warn("ending sw cache observable: ",B)}),this.serviceWorkerService.networkResponseReceived.pipe((0,y.p)(B=>B.cacheName===m.fR.staleWhileRevalidate.subscriptions.cacheName&&404===B.responseStatusCode),(0,P.E)(this.idmService.accountStatusChanged),(0,O.ZZ)(([B,X])=>this.handleSubscriptionResponse(null,X))).subscribe(B=>{const X=this.distributedTracingUtilService.startSpan(c.pB.GetEntitlementStatus);this.distributedTracingUtilService.setSpanAttribute(X,c.NS.Error,!0),this.processSubscriptionResponse(B,X)})}get subscriptionNetworkFetchedNoUpdate(){return this.subscriptionNetworkFetchedNoUpdate$.asObservable()}getUserEntitlement(B){const X=this.distributedTracingUtilService.startSpan(c.pB.GetEntitlementStatus);return this.getUserEntitlementFromServer(X,B)}getUserEntitlementFromServer(B,X,H=!1){return this.logger.info("getUserEntitlement fetching from server/service worker"),this.getVpcIdLocaleAndToken(B,H).pipe((0,f.s)(1),(0,O.ZZ)(([J,re,ie])=>{if(this.logger.info("vpcId and delegate token resolved ",J),(0,a.isNil)(ie))return this.logger.error("invalid auth token"),(0,l.$)("failed to get auth token");const ve={languageCode:re,vpcId:J,userId:X.userId};return this.distributedTracingUtilService.setSpanAttribute(B,c.NS.VpcId,J),this.distributedTracingUtilService.setSpanAttribute(B,c.NS.Locale,re),this.nesSdk.getUserSubscription(ve,ie,B).pipe((0,O.ZZ)(ue=>this.handleSubscriptionResponse(ue,X)),(0,O.ZZ)(ue=>this.processSubscriptionResponse(ue,B)),(0,_.W)(ue=>404===ue.status?this.handleAndProcessSubscriptionResponse(X,B):this.idmService.handleAuthError(ue,H,this.getUserEntitlementFromServer.bind(this),B,X)))}),(0,_.W)(J=>(this.distributedTracingUtilService.setSpanAttribute(B,c.NS.Error,!0),this.distributedTracingUtilService.closeSpan(B),(0,l.$)(J))))}handleAndProcessSubscriptionResponse(B,X){return this.handleSubscriptionResponse(null,B).pipe((0,O.ZZ)(H=>this.processSubscriptionResponse(H,X)))}processSubscriptionResponse(B,X){return this.processedSubscriptionResponse$.next(B),this.distributedTracingUtilService.closeSpan(X),this.processedSubscriptionResponse$.asObservable()}handleSubscriptionResponse(B,X){if(!(0,a.isNil)(B?.subscription)&&!(0,a.isNil)(B?.subscription.productUri))return this.nesSdk.getProductInfo(B.subscription.productUri).pipe((0,i.T)(H=>({product:H,...B})),(0,_.W)(H=>(this.logger.error("failed to get product info: ",H),(0,d.of)({product:N,...B}))),(0,O.ZZ)(H=>this.returnSubscriptionResponse(H)));{const H={product:N,...B};return this.returnSubscriptionResponse(H)}}returnSubscriptionResponse(B){const X=(0,a.omit)(B,"cacheRefreshDate");return(0,d.of)(X)}getVpcIdLocaleAndToken(B,X=!1){const H=this.localeService.localeChanged,J=this.gridService.vpcId$.pipe((0,r.F)());return(0,S.zV)([J,H]).pipe((0,O.ZZ)(([re,ie])=>this.idmService.getAuthToken(X,B).pipe((0,i.T)(ve=>[re,ie,ve||null]))))}getClientStreamingQuality(){const B=this.distributedTracingUtilService.startSpan(c.pB.ClientStreamingQuality);return this.getClientStreamingQualityFromServer(B)}getClientStreamingQualityFromServer(B){const X=this.localeService.localeChanged,H=this.gridService.vpcId$.pipe((0,r.F)());return(0,S.zV)([H,X]).pipe((0,O.ZZ)(([J,re])=>(this.logger.info("getClientStreamingQualityFromServer vpcId,Locale resolved: ",J),this.nesSdk.getClientStreamingQuality({languageCode:re,vpcId:J},B).pipe((0,i.T)(ve=>(this.logger.info("getClientStreamingQuality response from server: ",ve),this.unentitledUserData=ve,this.unentitledUserData)),(0,_.W)(ve=>(this.logger.error("getClientStreamingQualityFromServer error: ",ve),(0,l.$)(ve)))))),(0,_.W)(J=>(this.logger.error("getClientStreamingQualityFromServer vpcId/Locale error: ",J),(0,l.$)(J))),(0,f.s)(1))}static{this.\u0275fac=function(X){return new(X||g)(M.KVO(D.c4),M.KVO(I.k_),M.KVO(U.G),M.KVO(V.iH),M.KVO(m.lS),M.KVO(c.Z1),M.KVO(V.J6))}}static{this.\u0275prov=M.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}}return g})();var E=s(22600)},22600:(Bt,z,s)=>{"use strict";s.d(z,{l:()=>L});var n=s(59859),l=s(43848),d=s(8619),v=s(65706),S=s(83915),y=s(75707),f=s(91384),O=s(34593),P=s(14714),_=s(26875),r=s(18433),a=s(50778),c=s(38006),m=s(70521),M=s(58527),D=s(18568),I=s(99469),U=s(55512),V=s(78812),T=s(80561),N=s(81834);let L=(()=>{class E{constructor(R,B,X,H,J,re,ie,ve){this.nesSdk=R,this.loggingService=B,this.idmService=X,this.telemetryService=H,this.oobeService=J,this.eventStreamFactory=re,this.sharedStorageCachingService=ie,this.serviceWorkerService=ve,this.isUserInfoAffiliate=!1,this.logger=this.loggingService.getLogger("gfn/shared/NesUserInfoService"),this.serverUrlsStream=this.eventStreamFactory.createStream(()=>this.fetchProviderInfo()),this.userInfoStream=this.eventStreamFactory.createStream(()=>this.userInfoWithStreamingUrl()),this.countryCodeStream=this.eventStreamFactory.createStream(()=>this.fetchCountryCode()),this.initServiceWorkerNotifications()}initServiceWorkerNotifications(){this.serviceWorkerService.swCacheUpdated.pipe((0,d.p)(R=>R.name===m.fR.staleWhileRevalidate.serviceUrls.cacheName),(0,v.s)(1)).subscribe(R=>{this.serverUrlsStream.setData(R.data,!0)})}fetchProviderInfo(){return this.logger.info("Calling NES server urls to get affiliate information"),this.nesSdk.getLoginProviderInfo().pipe((0,S.T)(R=>this.validateLoginProviderInfo(R)))}validateLoginProviderInfo(R){if(this.logger.info("processServiceUrls"),(0,_.isNil)(R)||(0,_.isNil)(R.gfnServiceInfo)||(0,_.isNil)(R.gfnServiceInfo.loginRequired))throw new Error("Server info was invalid.");const B=R.gfnServiceInfo;if(B.loginRequired&&((0,_.isNil)(B.loginPreferredProviders)||(0,_.isEmpty)(B.loginPreferredProviders)))throw new Error('Missing "loginPreferredProviders".');return R}getServerProperty(R){return this.serverUrlsStream.get$().pipe((0,S.T)(R))}fetchUserInfoWithStreamingUrl(){return this.userInfoStream.get$()}userInfoWithStreamingUrl(){let R;return this.serverUrlsStream.get$().pipe((0,y.ZZ)(B=>(R=B,this.idmService.getUserServiceEndpoint(R.gfnServiceInfo))),(0,S.T)(B=>{const X=B.serviceEndpoint.loginProvider;return this.sendProviderInfoTelemetry(X,R,B.user.isAuthenticated),{user:B.user,serviceEndpoint:B.serviceEndpoint,isAffiliate:X!==R.gfnServiceInfo.defaultProvider}}),(0,f.M)(B=>{this.isUserInfoAffiliate=B.isAffiliate,this.idmService.setCachedAffiliateStatus(B.user.userId,{loginProvider:B.serviceEndpoint.loginProvider,loginProviderCode:B.serviceEndpoint.loginProviderCode,isAffiliate:B.isAffiliate}).subscribe()}))}cachedUserAndAffiliateStatus(){return this.idmService.cachedUserAndAffiliateStatus}sendProviderInfoTelemetry(R,B,X){this.oobeService.oobeDialogClosedState.pipe((0,O.Z)(!1)).subscribe(()=>{const H=new r.Zhy({isAffiliateRegion:B.gfnServiceInfo.loginRequired?r.T80.TRUE:r.T80.FALSE,supportedProviders:(0,_.isEmpty)(B.gfnServiceInfo.loginPreferredProviders)?"":B.gfnServiceInfo.loginPreferredProviders.toString(),providerName:X?R:""});this.telemetryService.push(H,null,{immediateRequest:!0})})}get providerInfo$(){return this.getServerProperty(R=>(0,_.isNil)(R)||(0,_.isNil)(R.gfnServiceInfo)?null:R.gfnServiceInfo).pipe((0,P.W)(R=>(this.logger.error("failed to get provider info",R),(0,n.$)(R))))}get loginPreferredProviders$(){return this.getServerProperty(R=>(0,_.isNil)(R)||(0,_.isNil)(R.gfnServiceInfo)?null:R.gfnServiceInfo.loginPreferredProviders).pipe((0,P.W)(R=>(this.logger.error("failed to get login provider",R),(0,n.$)(R))))}get loginRequired$(){return this.getServerProperty(R=>!(!R||!R.gfnServiceInfo)&&R.gfnServiceInfo.loginRequired)}fetchProviderUserAction(){return this.logger.info("fetchProviderUserAction"),this.serverUrlsStream.get$().pipe((0,v.s)(1),(0,y.ZZ)(R=>this.idmService.getUserServiceEndpoint(R.gfnServiceInfo)),(0,S.T)(R=>(0,_.isNil)(R)?r.ay7.LoginWithJarvisOAuth:r.ay7.LoginWithFacebook.includes(R.serviceEndpoint.loginProvider.toUpperCase())?r.ay7.LoginWithFacebook:r.ay7.LoginWithGoogle.includes(R.serviceEndpoint.loginProvider.toUpperCase())?r.ay7.LoginWithGoogle:this.isUserInfoAffiliate?r.ay7.LoginWithAffiliate:r.ay7.LoginWithOther))}fetchCountryCode(){return this.serverUrlsStream.get$().pipe((0,S.T)(R=>R.gfnServiceInfo.clientCountryCode),(0,P.W)(R=>(this.logger.error("Could not fetch NES login provider info for country code",R),(0,l.of)(a.d4.US))),(0,y.ZZ)(R=>this.sharedStorageCachingService.saveItem(c.up.CountryCode,R)))}getCountryCode(){return this.countryCodeStream.get$()}static{this.\u0275fac=function(B){return new(B||E)(M.KVO(D.c4),M.KVO(I.J6),M.KVO(U.k_),M.KVO(V.H0),M.KVO(T.Z),M.KVO(N.mZ),M.KVO(c.VC),M.KVO(m.lS))}}static{this.\u0275prov=M.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})()},12860:(Bt,z,s)=>{"use strict";s.d(z,{z:()=>v});var n=s(58527),l=s(61958),d=s(56785);let v=(()=>{class S{constructor(f,O){this.spatialNavigationService=O,this.agreeButtonClicked=new n.bkB,this.tvMode=!!f?.featureEnablement?.tvMode}ngOnInit(){this.currentSpatialNavigationActivation=this.spatialNavigationService.activated,this.spatialNavigationService.enabled&&!this.currentSpatialNavigationActivation&&(this.spatialNavigationService.activated=!0)}onAgreeButtonClicked(){this.agreeButtonClicked.emit()}ngOnDestroy(){this.spatialNavigationService.activated=this.currentSpatialNavigationActivation}static{this.\u0275fac=function(O){return new(O||S)(n.rXU(l.Vk),n.rXU(d.ED))}}static{this.\u0275cmp=n.VBU({type:S,selectors:[["gfn-oobe"]],outputs:{agreeButtonClicked:"agreeButtonClicked"},decls:2,vars:1,consts:[[1,"oobe-dialog"],[1,"oobe-screen",3,"agreeButtonClick","tvMode"]],template:function(O,P){1&O&&(n.j41(0,"div",0)(1,"gfn-oobe-welcome",1),n.bIt("agreeButtonClick",function(){return P.onAgreeButtonClicked()}),n.k0s()()),2&O&&(n.R7$(),n.Y8G("tvMode",P.tvMode))},styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.oobe-dialog[_ngcontent-%COMP%]{width:705px;height:auto;max-height:100vh;-webkit-backface-visibility:hidden;background:#393939}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.oobe-dialog[_ngcontent-%COMP%]{width:100vw;height:100%}}.oobe-screen[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased;width:100%;height:100%;padding-top:max(24px,env(safe-area-inset-top));padding-bottom:env(safe-area-inset-bottom);max-width:100vw;max-height:100vh}.isLtr[_nghost-%COMP%] .oobe-screen[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .oobe-screen[_ngcontent-%COMP%]{padding-left:max(24px,env(safe-area-inset-left))}html[dir=ltr][_ngcontent-%COMP%] .oobe-screen[_ngcontent-%COMP%]{--dummy1: 0;padding-left:max(24px,env(safe-area-inset-left))}.isRtl[_nghost-%COMP%] .oobe-screen[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .oobe-screen[_ngcontent-%COMP%]{padding-right:max(24px,env(safe-area-inset-left))}html[dir=rtl][_ngcontent-%COMP%] .oobe-screen[_ngcontent-%COMP%]{--dummy1: 0;padding-right:max(24px,env(safe-area-inset-left))}.isLtr[_nghost-%COMP%] .oobe-screen[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .oobe-screen[_ngcontent-%COMP%]{padding-right:max(24px,env(safe-area-inset-right))}html[dir=ltr][_ngcontent-%COMP%] .oobe-screen[_ngcontent-%COMP%]{--dummy2: 0;padding-right:max(24px,env(safe-area-inset-right))}.isRtl[_nghost-%COMP%] .oobe-screen[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .oobe-screen[_ngcontent-%COMP%]{padding-left:max(24px,env(safe-area-inset-right))}html[dir=rtl][_ngcontent-%COMP%] .oobe-screen[_ngcontent-%COMP%]{--dummy2: 0;padding-left:max(24px,env(safe-area-inset-right))}.tv-view[_nghost-%COMP%] .oobe-dialog[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .oobe-dialog[_ngcontent-%COMP%]{width:100vw;height:100vh;display:flex;justify-content:center;align-items:flex-start}"]})}}return S})()},80561:(Bt,z,s)=>{"use strict";s.d(z,{Z:()=>n.Z,M:()=>f});var n=s(26114),l=s(18433),d=s(26875),v=s(99469),S=s(58527),y=s(78812);let f=(()=>{class O{constructor(_,i){this.telemetryService=_,this.telemetryUtilService=i,this._oobeCompleted=!1,this.asyncActions={}}set oobeCompleted(_){this._oobeCompleted=_}get oobeCompleted(){return this._oobeCompleted}startActionAsync(_){this.asyncActions[_]={currentScreen:this.telemetryService.getScreen(),startTime:Date.now()}}endActionAsync(_,i,r){if(!(0,d.isNil)(_)&&!(0,d.isNil)(this.asyncActions[_])){const a=this.asyncActions[_];i===l.fbu.AppExit&&this.telemetryService.changeSync(!0);const c=new l.BAK({currentScreen:a.currentScreen,clientType:this.telemetryUtilService.getClientType(),userAction:_,status:i,errorDetails:r||"",totalMs:0,errorUri:"",serverErrorCode:""});this.telemetryService.push(c,a.startTime),delete this.asyncActions[_]}}sendOobeAcceptEvent(_,i,r){let a=l.Osi.NotShown;i&&(a=r===v.Rg.Full?l.Osi.UserConsented:l.Osi.UserDidNotConsent);const c={currentScreen:this.telemetryService.getScreen(),action:_,technicalConsent:a},m=new l.Uqt(c);this.telemetryService.push(m)}static{this.\u0275fac=function(i){return new(i||O)(S.KVO(y.H0),S.KVO(l.jgD))}}static{this.\u0275prov=S.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})()},26114:(Bt,z,s)=>{"use strict";s.d(z,{Z:()=>B});var n=s(99469),l=s(26875),d=s(85735),v=s(93181),S=s(31315),y=s(43848),f=s(83915),O=s(65706),P=s(55833),_=s(75707),i=s(4208),r=s(20924),a=s(61958),c=s(12860);var D=s(78812),I=s(82187),U=s(58527),V=s(72945),T=s(26537),N=s(18587),L=s(40996),E=s(66974),g=s(54250),R=s(56785);let B=(()=>{class X{constructor(J,re,ie,ve,ue,se,Z,Se,Ce,Be,Xe,He){this.sharedStorageService=J,this.dialog=re,this.appConfig=ie,this.systemInfoService=ve,this.userConsentService=ue,this.localeService=se,this.gfnSdkService=Se,this.guestModeHelperService=Ce,this.unsupportedBrowserService=Be,this.bridgeService=Xe,this.focusManager=He,this.oobeDialogRef=null,this.isOobeDialogClosedSubject=new d.m(1),this.isLoginWallEnabled=!1,this.logger=Z.getLogger("OobeService/Logger"),this.tvMode=!!ie?.featureEnablement?.tvMode,this.isGDNDomain=window?.isGDNDomain,this.nativeEulaAcceptedVersion$=this.bridgeService.executeCommand(r.Ts.Common.Consent.getAccepted).pipe((0,f.T)(Me=>Me.value),(0,O.s)(1),(0,P.t)(1)),this.isLoginWallEnabled=this.appConfig.featureEnablement.showLoginWall}initialize(){n.zk.isAndroidPlatform()&&this.bridgeService.executeCommand(r.Ts.Common.Consent.setCurrent,{value:+this.appConfig.oobe.termsOfUseVersion}).subscribe()}get oobeDialogClosedState(){return this.isOobeDialogClosedSubject.asObservable()}get getProductVersion(){return(0,a.Cl)(this.appConfig)}getOobeDataFromSharedStorage(){return this.sharedStorageService.readBlock("oobe")}loadTermsOfUseAcceptedVersion(){return n.zk.isAndroidPlatform()?this.loadTermsOfUseAcceptedVersionForAndroid():this.getOobeDataFromSharedStorage().pipe((0,f.T)(J=>J?.termsOfUseAcceptedVersion||"0"))}loadTermsOfUseAcceptedVersionForAndroid(){return(0,v.p)({oobeData:this.getOobeDataFromSharedStorage(),nativeEulaAcceptedVersion:this.nativeEulaAcceptedVersion$}).pipe((0,f.T)(J=>Math.max(+J.oobeData?.termsOfUseAcceptedVersion||0,J.nativeEulaAcceptedVersion||0).toString()))}isTermsOfUseChangedSinceAccepted(){return this.loadTermsOfUseAcceptedVersion().pipe((0,f.T)(J=>!!(0,l.isNil)(J)||+this.appConfig.oobe.termsOfUseVersion>+J))}saveTermsOfUseAcceptedVersion(){return this.getOobeDataFromSharedStorage().pipe((0,_.ZZ)(J=>(J.termsOfUseAcceptedVersion=this.appConfig.oobe.termsOfUseVersion,n.zk.isAndroidPlatform()&&this.bridgeService.executeCommand(r.Ts.Common.Consent.setAccepted,{value:+this.appConfig.oobe.termsOfUseVersion}).subscribe(),this.saveOobeDataInSharedStorage(J))))}saveOobeDataInSharedStorage(J){return this.sharedStorageService.writeBlock("oobe",J)}launch(){return(0,v.p)({isEulaChanged:this.isTermsOfUseChangedSinceAccepted(),isAnonUser:this.gfnSdkService.getIsAnonymousUser()}).pipe((0,_.ZZ)(J=>!J.isEulaChanged&&!J.isAnonUser||this.isGDNDomain||this.guestModeHelperService.isGuestMode?(this.isOobeDialogClosedSubject.next(!0),this.isOobeDialogClosedSubject.complete(),this.logger.event("no oobe setDefaultConsentData"),this.userConsentService.setDefaultConsentData(this.isGDNDomain||this.guestModeHelperService.isGuestMode?D.FE:D.bC)):(0,S.zV)([this.localeService.layoutDirectionUpdated$,this.unsupportedBrowserService.shouldDisplayPWAGuidance$()]).pipe((0,O.s)(1),(0,_.ZZ)(([re,ie])=>window.location.hash.includes(I.py.PlayGame)&&ie||this.isLoginWallEnabled&&ie?(0,y.of)(!1):this.openOobeDialog()))))}openOobeDialog(){if(this.oobeDialogRef)return(0,y.of)(!1);const J={panelClass:"dialogWelcome",disableClose:!0,autoFocus:!1,maxWidth:"100vw"};return this.tvMode&&(J.height="100%"),this.oobeDialogRef=this.focusManager.restoreFocusAfterClosed(()=>this.dialog.open(c.z,J)),this.oobeDialogRef.componentInstance.agreeButtonClicked.pipe((0,O.s)(1),(0,i.Q)(this.oobeDialogRef.afterClosed())).subscribe(re=>{this.oobeDialogRef.close()}),this.oobeDialogRef.afterClosed().pipe((0,f.T)(()=>(this.oobeDialogRef=null,this.isOobeDialogClosedSubject.next(!0),this.isOobeDialogClosedSubject.complete(),this.logger.info("oobe closed"),!0)))}static{this.\u0275fac=function(re){return new(re||X)(U.KVO(V.yQ),U.KVO(T.bZ),U.KVO(a.Vk),U.KVO(n.zW),U.KVO(N.F),U.KVO(n.iH),U.KVO(n.J6),U.KVO(L.DL),U.KVO(E.x),U.KVO(g.Lk),U.KVO(n.NZ),U.KVO(R.c_))}}static{this.\u0275prov=U.jDH({token:X,factory:X.\u0275fac,providedIn:"root"})}}return X})()},77200:(Bt,z,s)=>{"use strict";s.d(z,{Em:()=>m,Fv:()=>r,Gl:()=>O,Jp:()=>c,RJ:()=>i,U8:()=>a,YS:()=>M,Zr:()=>y,b3:()=>f,dI:()=>U,lH:()=>D,lo:()=>S,pm:()=>_});var n=s(90116);const S="https://steamcommunity.com/profiles/",y=-1,f="STEAM",O="UPLAY",_=["UNKNOWN","NONE"],i={notificationType:n.$9.AccountLinkingExpired,messageStr:{key:"accountConnection.accountLinking.warningExpired"},secondaryButtonText:"common.notNow",primaryButtonText:"common.goToSettings"},r={notificationType:n.$9.NewSyncFeature,messageStr:{key:"notification.newUbisoftFeatureBanner"},secondaryButtonText:"common.notNow",primaryButtonText:"common.goToSettings"};var a=function(V){return V.onboardingReconnect="onboardingReconnect",V.reconnect="reconnect",V.syncDenied="syncDenied",V}(a||{}),c=function(V){return V.syncFailed="syncFailed",V.profileNotCreated="profileNotCreated",V.privateProfile="privateProfile",V}(c||{}),m=function(V){return V.UNKNOWN="UNKNOWN",V.SYNC_FAILED="SYNC_FAILED",V.SYNC_DENIED="SYNC_DENIED",V.PROFILE_NOT_CREATED="PROFILE_NOT_CREATED",V.SYNC_SUCCESS="SYNC_SUCCESS",V}(m||{});class M{constructor(T=36e5,N=864e5,L=12096e5){this.now=T,this.today=N,this.soon=L}}var D=function(V){return V[V.NotExpired=0]="NotExpired",V[V.ExpiresNow=1]="ExpiresNow",V[V.ExpiresToday=2]="ExpiresToday",V[V.ExpiresSoon=3]="ExpiresSoon",V[V.Expired=4]="Expired",V}(D||{}),U=function(V){return V[V.InitialFetchDone=0]="InitialFetchDone",V[V.LinkingDone=1]="LinkingDone",V[V.LinkingError=2]="LinkingError",V[V.SyncingDone=3]="SyncingDone",V[V.SyncingError=4]="SyncingError",V[V.Disconnected=5]="Disconnected",V[V.Expiring=6]="Expiring",V}(U||{})},42423:(Bt,z,s)=>{"use strict";s.d(z,{m:()=>n});const n={webcam:"",webcamDevId:"",microphone:"",micDevId:""}},82197:(Bt,z,s)=>{"use strict";s.d(z,{$3:()=>n,AT:()=>S,JK:()=>v,KG:()=>l,KU:()=>d,Pb:()=>O,VA:()=>i,Z0:()=>P,e8:()=>f,ep:()=>_,yd:()=>y});const n=560,l=540,d=512,v=512,S=-127,y=0,f=.4,O=100,P="standardWebrtc",_="red5ProPublisherSdk",i=6e4},69751:(Bt,z,s)=>{"use strict";s.d(z,{y:()=>O});var n=s(19392),l=s(65706),d=s(83915),v=s(42423),S=s(58527),y=s(99469),f=s(96542);let O=(()=>{class P{constructor(i,r){this.loggingService=i,this.translateService=r,this.audioInputDevices=[],this.videoInputDevices=[],this.logger=this.loggingService.getLogger("GFNWebcamService"),this.mediaSetup=v.m}getMediaDeviceInfo(i){return(0,n.H)(navigator.mediaDevices.enumerateDevices()).pipe((0,l.s)(1),(0,d.T)(r=>(r.forEach(a=>{"audioinput"===a.kind?this.audioInputDevices.push({deviceId:a.deviceId,label:a.label,groupId:a.groupId}):"videoinput"===a.kind&&this.videoInputDevices.push({deviceId:a.deviceId,label:a.label,groupId:a.groupId})}),this.audioInputDevices=this.audioInputDevices.filter((a,c,m)=>m.findIndex(M=>M.groupId===a.groupId)===c),this.videoInputDevices=this.videoInputDevices.filter((a,c,m)=>m.findIndex(M=>M.groupId===a.groupId)===c),{videoInput:this.videoInputDevices,audioInput:this.audioInputDevices})))}static{this.\u0275fac=function(r){return new(r||P)(S.KVO(y.J6),S.KVO(f.c$))}}static{this.\u0275prov=S.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})()},13515:(Bt,z,s)=>{"use strict";s.d(z,{KG:()=>I.KG,$3:()=>I.$3,SO:()=>P,zn:()=>nt,YG:()=>ue,RI:()=>m,tP:()=>Le});var n=s(58527),l=s(80583),d=s(99469),v=s(3457),S=s(47973),y=s(26537),f=s(61142),O=s(96542);let P=(()=>{class Ot{constructor(It){this.loggingService=It,this.primaryButtonClick=new n.bkB,this.destroy$=new l.B7}ngOnInit(){this.logger=this.loggingService.getLogger("playtest-error")}onPrimaryButtonClick(){this.primaryButtonClick.emit(!1)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(We){return new(We||Ot)(n.rXU(d.J6))}}static{this.\u0275cmp=n.VBU({type:Ot,selectors:[["gfn-playtestlive-error"]],inputs:{primaryButton:"primaryButton"},outputs:{primaryButtonClick:"primaryButtonClick"},decls:14,vars:11,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlexFill","",1,"error-dialog-container"],["fxFlex","1 1 auto","fxLayout","column"],[1,"error-dialog-header"],[1,"font-header6"],[1,"error-dialog-body"],[1,"font-body2",3,"innerHtml"],["fxLayout","row","fxLayoutAlign","end center","fxLayoutGap","10px"],["mat-button","","mat-dialog-close","",1,"font-button2","hig-button",3,"click"]],template:function(We,xe){1&We&&(n.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),n.EFF(4),n.nI1(5,"translate"),n.k0s()(),n.j41(6,"div",4),n.nrm(7,"span",5),n.nI1(8,"translate"),n.k0s()(),n.j41(9,"mat-dialog-actions",6)(10,"button",7),n.bIt("click",function(){return xe.onPrimaryButtonClick()}),n.EFF(11),n.nI1(12,"translate"),n.nI1(13,"uppercase"),n.k0s()()()),2&We&&(n.R7$(4),n.JRh(n.bMT(5,3,"playtestLive.errorDialog.header")),n.R7$(3),n.Y8G("innerHtml",n.bMT(8,5,"playtestLive.errorDialog.notAccessibleError"),n.npT),n.R7$(4),n.SpI(" ",n.bMT(13,9,n.bMT(12,7,"common.ok"))," "))},dependencies:[v.DJ,v.BO,v.sA,v.G2,v.UI,S.iV,y.tx,y.E7,f.Pc,O.D9],styles:[".error-dialog-container[_ngcontent-%COMP%]{max-width:100%}.error-dialog-container[_ngcontent-%COMP%] .error-dialog-header[_ngcontent-%COMP%]{margin-bottom:15px}.error-dialog-container[_ngcontent-%COMP%] .error-dialog-body[_ngcontent-%COMP%]{margin-bottom:20px}"]})}}return Ot})();var _=s(65805);function i(Ot,at){1&Ot&&(n.nrm(0,"span",5),n.nI1(1,"translate")),2&Ot&&n.Y8G("innerHtml",n.bMT(1,1,"playtestLive.privacyPermissionsDialog.permissionGameplay"),n.npT)}function r(Ot,at){1&Ot&&(n.nrm(0,"span",5),n.nI1(1,"translate")),2&Ot&&n.Y8G("innerHtml",n.bMT(1,1,"playtestLive.privacyPermissionsDialog.permissionInputs"),n.npT)}function a(Ot,at){1&Ot&&(n.nrm(0,"span",5),n.nI1(1,"translate")),2&Ot&&n.Y8G("innerHtml",n.bMT(1,1,"playtestLive.privacyPermissionsDialog.permissionWebcam"),n.npT)}function c(Ot,at){1&Ot&&(n.nrm(0,"span",5),n.nI1(1,"translate")),2&Ot&&n.Y8G("innerHtml",n.bMT(1,1,"playtestLive.privacyPermissionsDialog.permissionMicrophone"),n.npT)}let m=(()=>{class Ot{constructor(It,We){this.loggingService=It,this.playtestLiveService=We,this.primaryButtonClick=new n.bkB,this.secondaryButtonClick=new n.bkB,this.destroy$=new l.B7}ngOnInit(){this.logger=this.loggingService.getLogger("PermissionHig"),this.featureFlags=this.playtestLiveService.featureFlags}onPrimaryButtonClick(){this.primaryButtonClick.emit(!0)}onCancelButtonClick(){this.secondaryButtonClick.emit(!0)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(We){return new(We||Ot)(n.rXU(d.J6),n.rXU(_.C))}}static{this.\u0275cmp=n.VBU({type:Ot,selectors:[["gfn-playtestlive-permissionhig"]],inputs:{primaryButton:"primaryButton"},outputs:{primaryButtonClick:"primaryButtonClick",secondaryButtonClick:"secondaryButtonClick"},decls:22,vars:21,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlexFill","",1,"permissionhig-dialog-container"],["fxFlex","1 1 auto","fxLayout","column"],[1,"permissionhig-dialog-header"],[1,"font-header6"],[1,"permissionhig-dialog-body"],[1,"font-body2",3,"innerHtml"],["class","font-body2",3,"innerHtml",4,"ngIf"],["fxLayout","row-reverse","fxLayoutAlign","start center","fxLayoutGap","10px"],["mat-button","",1,"font-button2","hig-button",3,"click","mat-dialog-close"],["mat-button","","mat-dialog-close","",1,"font-button2","hig-button",3,"click"]],template:function(We,xe){1&We&&(n.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),n.EFF(4),n.nI1(5,"translate"),n.k0s()(),n.j41(6,"div",4),n.nrm(7,"span",5),n.nI1(8,"translate"),n.DNE(9,i,2,3,"span",6)(10,r,2,3,"span",6)(11,a,2,3,"span",6)(12,c,2,3,"span",6),n.k0s()(),n.j41(13,"mat-dialog-actions",7)(14,"button",8),n.bIt("click",function(){return xe.onPrimaryButtonClick()}),n.EFF(15),n.nI1(16,"translate"),n.nI1(17,"uppercase"),n.k0s(),n.j41(18,"button",9),n.bIt("click",function(){return xe.onCancelButtonClick()}),n.EFF(19),n.nI1(20,"translate"),n.nI1(21,"uppercase"),n.k0s()()()),2&We&&(n.R7$(4),n.SpI(" ",n.bMT(5,9,"playtestLive.privacyPermissionsDialog.header")," "),n.R7$(3),n.Y8G("innerHtml",n.bMT(8,11,"playtestLive.privacyPermissionsDialog.permissionIntro"),n.npT),n.R7$(2),n.Y8G("ngIf",xe.featureFlags.captureGameplay),n.R7$(),n.Y8G("ngIf",xe.featureFlags.captureInput),n.R7$(),n.Y8G("ngIf",xe.featureFlags.captureWebcam),n.R7$(),n.Y8G("ngIf",xe.featureFlags.captureMicrophone),n.R7$(2),n.Y8G("mat-dialog-close",!0),n.R7$(),n.SpI(" ",n.bMT(17,15,n.bMT(16,13,"playtestLive.privacyPermissionsDialog.accept"))," "),n.R7$(4),n.SpI(" ",n.bMT(21,19,n.bMT(20,17,"common.cancel"))," "))},dependencies:[f.bT,v.DJ,v.BO,v.sA,v.G2,v.UI,S.iV,y.tx,y.E7,f.Pc,O.D9],styles:[".permissionhig-dialog-container[_ngcontent-%COMP%]{max-width:100%}.permissionhig-dialog-container[_ngcontent-%COMP%] .permissionhig-dialog-header[_ngcontent-%COMP%]{margin-bottom:25px}.permissionhig-dialog-container[_ngcontent-%COMP%] .permissionhig-dialog-body[_ngcontent-%COMP%]{margin-bottom:20px}"]})}}return Ot})();var M=s(4208),D=s(65706),I=s(82197),U=s(69751),V=s(56106),T=s(28139),N=s(4418),L=s(12949),E=s(51635),g=s(20288),R=s(54676),B=s(98504);const X=["disableButton"],H=Ot=>({"microphone-display-none":Ot});function J(Ot,at){if(1&Ot&&(n.j41(0,"mat-option",19),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&Ot){const It=n.XpG();n.Y8G("value",It.selectedMicrophoneId),n.R7$(),n.SpI(" ",n.bMT(2,2,"playtestLive.selectMicrophoneDialog.noMicrophone")," ")}}function re(Ot,at){if(1&Ot&&(n.j41(0,"mat-option",20),n.EFF(1),n.k0s()),2&Ot){const It=at.$implicit;n.Y8G("value",It.deviceId),n.R7$(),n.SpI(" ",It.label," ")}}function ie(Ot,at){1&Ot&&(n.j41(0,"div",13),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&Ot&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"playtestLive.hardwarePermissionError")," "))}function ve(Ot,at){1&Ot&&(n.j41(0,"div",13),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&Ot&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"playtestLive.hardwarePermissionErrorOptional")," "))}let ue=(()=>{class Ot{constructor(It,We,xe,lt){this.gfnWebcamService=It,this.loggingService=We,this.playtestLiveService=xe,this.systemInfoService=lt,this.primaryButtonClick=new n.bkB,this.micSensitivity=0,this.isMicReady=!1,this.destroy$=new l.B7,this.selectedMicrophoneId="",this.checkboxState=!1,this.stopMicAfterPreview=!1,this.onAudioProcess=()=>{if(this.playtestLiveService.audioAnalyzer){const ft=new Uint8Array(this.playtestLiveService.audioAnalyzer.frequencyBinCount);this.playtestLiveService.audioAnalyzer.getByteFrequencyData(ft);let ht=0;const Xt=Array.from(ft);for(const Ht of Xt)ht+=Ht;this.micSensitivity=ht/ft.length}else this.micSensitivity=0}}ngOnInit(){this.logger=this.loggingService.getLogger("MicrophonePreview"),this.featureFlags=this.playtestLiveService.featureFlags,this.audioDevices=[],this.systemInfoService.getDeviceOSType().pipe((0,M.Q)(this.destroy$),(0,D.s)(1)).subscribe(It=>{this.stopMicAfterPreview=!d.zk.isCefPlatform()||It!==d.t_.Windows}),this.gfnWebcamService.getMediaDeviceInfo(this.featureFlags).pipe((0,M.Q)(this.destroy$)).subscribe(It=>{this.audioDevices=It.audioInput.map(We=>We),0<this.audioDevices.length&&this.onMicrophoneSelected(this.audioDevices[0].deviceId)},It=>{this.logger.info("Error fetching mic: ",It)}),this.audioIntervalHandle=window.setInterval(this.onAudioProcess,I.Pb)}onMicrophoneSelected(It){const We=this.audioDevices.find(xe=>xe.deviceId===It);We&&(this.selectedMicrophoneId=We.deviceId,this.gfnWebcamService.mediaSetup.microphone=We.label,this.gfnWebcamService.mediaSetup.micDevId=We.deviceId,this.playtestLiveService.stopMic(),this.playtestLiveService.startMic(We.deviceId),this.isMicReady=!0)}onPrimaryButtonClick(){this.primaryButtonClick.emit(!0)}onDisableChange(){this.checkboxState?(this.playtestLiveService.stopMic(),this.gfnWebcamService.mediaSetup.microphone="Disable",this.gfnWebcamService.mediaSetup.micDevId="Disable"):this.onMicrophoneSelected(this.selectedMicrophoneId)}isSelectorEmpty(){return 0===this.audioDevices.length||!this.audioDevices[0].deviceId||0===this.audioDevices[0].deviceId.length}ngOnDestroy(){window.clearInterval(this.audioIntervalHandle),this.audioIntervalHandle=null,this.stopMicAfterPreview?(this.logger.info("Stopping mic after preview"),this.playtestLiveService.stopMic()):this.logger.info("Not stopping mic after preview"),this.destroy$.next(!0),this.destroy$.complete(),this.audioDevices=[]}static{this.\u0275fac=function(We){return new(We||Ot)(n.rXU(U.y),n.rXU(d.J6),n.rXU(_.C),n.rXU(d.zW))}}static{this.\u0275cmp=n.VBU({type:Ot,selectors:[["gfn-playtestlive-microphonepreview"]],viewQuery:function(We,xe){if(1&We&&n.GBs(X,5),2&We){let lt;n.mGM(lt=n.lsd())&&(xe.disableButton=lt.first)}},inputs:{primaryButton:"primaryButton"},outputs:{primaryButtonClick:"primaryButtonClick"},decls:34,vars:39,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlexFill","",1,"microphone-dialog-container"],["fxFlex","1 1 auto","fxLayout","column"],[1,"microphone-dialog-header"],[1,"font-header6"],["fxFlex","0 0 auto","fxLayout","row","fxLayoutAlign","center center",1,"microphone-dialog-select","font-body2"],[3,"valueChange","selectionChange","disableOptionCentering","value","disabled"],["selected","",3,"value",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutGap","15px",1,"microphone-dialog-preview"],[1,"font-body2","nowrap"],["mode","determinate",1,"mic-progress",3,"value"],[1,"microphone-dialog-disable"],[3,"ngModelChange","change","ngClass","ngModel"],[1,"font-body2"],[1,"font-body2","font-color-warning",3,"ngClass"],["class","font-body2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxLayoutGap","10px"],["mat-button","","mat-dialog-close","",1,"font-button2","hig-button"],["mat-button","",1,"font-button2","hig-button",3,"mat-dialog-close","disabled"],["selected","",3,"value"],[3,"value"]],template:function(We,xe){1&We&&(n.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),n.EFF(4),n.nI1(5,"translate"),n.k0s()(),n.j41(6,"div",4)(7,"mat-select",5),n.mxI("valueChange",function(ft){return n.DH7(xe.selectedMicrophoneId,ft)||(xe.selectedMicrophoneId=ft),ft}),n.bIt("selectionChange",function(ft){return xe.onMicrophoneSelected(ft.value)}),n.DNE(8,J,3,4,"mat-option",6)(9,re,2,2,"mat-option",7),n.k0s()(),n.j41(10,"div",8)(11,"span",9),n.EFF(12),n.nI1(13,"translate"),n.k0s(),n.nrm(14,"mat-progress-bar",10),n.k0s(),n.j41(15,"div",11)(16,"mat-checkbox",12),n.mxI("ngModelChange",function(ft){return n.DH7(xe.checkboxState,ft)||(xe.checkboxState=ft),ft}),n.bIt("change",function(){return xe.onDisableChange()}),n.j41(17,"span",13),n.EFF(18),n.nI1(19,"translate"),n.k0s()(),n.j41(20,"div",14),n.EFF(21),n.nI1(22,"translate"),n.k0s()(),n.DNE(23,ie,3,3,"div",15)(24,ve,3,3,"div",15),n.k0s(),n.j41(25,"mat-dialog-actions",16)(26,"button",17),n.EFF(27),n.nI1(28,"translate"),n.nI1(29,"uppercase"),n.k0s(),n.j41(30,"button",18),n.EFF(31),n.nI1(32,"translate"),n.nI1(33,"uppercase"),n.k0s()()()),2&We&&(n.R7$(4),n.SpI(" ",n.bMT(5,19,"playtestLive.selectMicrophoneDialog.selectYourMicrophone")," "),n.R7$(3),n.Y8G("disableOptionCentering",!0),n.R50("value",xe.selectedMicrophoneId),n.Y8G("disabled",xe.checkboxState||xe.isSelectorEmpty()),n.R7$(),n.Y8G("ngIf",xe.isSelectorEmpty()),n.R7$(),n.Y8G("ngForOf",xe.audioDevices),n.R7$(3),n.SpI(" ",n.bMT(13,21,"playtestLive.selectMicrophoneDialog.inputLevel")," "),n.R7$(2),n.Y8G("value",xe.checkboxState?0:xe.micSensitivity),n.R7$(2),n.Y8G("ngClass",n.eq3(35,H,!xe.featureFlags.captureMicrophoneOptional)),n.R50("ngModel",xe.checkboxState),n.R7$(2),n.SpI(" ",n.bMT(19,23,"playtestLive.selectMicrophoneDialog.disableMicrophone")," "),n.R7$(2),n.Y8G("ngClass",n.eq3(37,H,!xe.isSelectorEmpty()||xe.featureFlags.captureMicrophoneOptional)),n.R7$(),n.SpI(" ",n.bMT(22,25,"playtestLive.selectMicrophoneDialog.requireMicrophone")," "),n.R7$(2),n.Y8G("ngIf",xe.isSelectorEmpty()&&!xe.featureFlags.captureMicrophoneOptional),n.R7$(),n.Y8G("ngIf",xe.isSelectorEmpty()&&xe.featureFlags.captureMicrophoneOptional),n.R7$(3),n.SpI(" ",n.bMT(29,29,n.bMT(28,27,"common.cancel"))," "),n.R7$(3),n.Y8G("mat-dialog-close",!0)("disabled",xe.isSelectorEmpty()&&(!xe.featureFlags.captureMicrophoneOptional||!xe.checkboxState)),n.R7$(),n.SpI(" ",n.bMT(33,33,n.bMT(32,31,"playtestLive.joinPlaytest"))," "))},dependencies:[f.YU,f.Sq,f.bT,V.BC,V.vS,v.DJ,v.BO,v.sA,v.G2,v.UI,T.PW,S.iV,N.So,y.tx,y.E7,L.VO,E.wT,g.HM,R.tG,B.nM,f.Pc,O.D9],styles:[".isLtr[_nghost-%COMP%] .mat-select-trigger, .isLtr [_nghost-%COMP%] .mat-select-trigger{padding-right:10px}html[dir=ltr][_ngcontent-%COMP%] .mat-select-trigger{--dummy2: 0;padding-right:10px}.isRtl[_nghost-%COMP%] .mat-select-trigger, .isRtl [_nghost-%COMP%] .mat-select-trigger{padding-left:10px}html[dir=rtl][_ngcontent-%COMP%] .mat-select-trigger{--dummy2: 0;padding-left:10px}.isLtr[_nghost-%COMP%] .mat-select-trigger, .isLtr [_nghost-%COMP%] .mat-select-trigger{padding-left:10px}html[dir=ltr][_ngcontent-%COMP%] .mat-select-trigger{--dummy1: 0;padding-left:10px}.isRtl[_nghost-%COMP%] .mat-select-trigger, .isRtl [_nghost-%COMP%] .mat-select-trigger{padding-right:10px}html[dir=rtl][_ngcontent-%COMP%] .mat-select-trigger{--dummy1: 0;padding-right:10px}.microphone-dialog-container[_ngcontent-%COMP%]{max-width:100%}.microphone-dialog-container[_ngcontent-%COMP%] .microphone-dialog-header[_ngcontent-%COMP%]{margin-bottom:15px}.microphone-dialog-container[_ngcontent-%COMP%] .microphone-dialog-select[_ngcontent-%COMP%]{height:48px;margin-bottom:16px;background:#494949}.microphone-dialog-container[_ngcontent-%COMP%] .microphone-dialog-preview[_ngcontent-%COMP%], .microphone-dialog-container[_ngcontent-%COMP%] .microphone-dialog-disable[_ngcontent-%COMP%]{margin-bottom:10px}.microphone-dialog-container[_ngcontent-%COMP%] .microphone-dialog-disable[_ngcontent-%COMP%] .font-color-warning[_ngcontent-%COMP%]{color:#ffb43e}.microphone-dialog-container[_ngcontent-%COMP%] .mic-progress[_ngcontent-%COMP%]{margin-top:8px}.microphone-dialog-container[_ngcontent-%COMP%] .nowrap[_ngcontent-%COMP%]{white-space:nowrap}.microphone-dialog-container[_ngcontent-%COMP%] .microphone-display-none[_ngcontent-%COMP%]{display:none}"]})}}return Ot})();var se=s(3496),Z=s(19392),Se=s(43848),Ce=s(59859),Be=s(91384),Xe=s(99204);const He=["webcamHolder"],Me=["disableButton"],Q=Ot=>({"webcam-hidden":Ot}),A=Ot=>({"webcam-display-none":Ot});function me(Ot,at){if(1&Ot&&(n.j41(0,"mat-option",20),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&Ot){const It=n.XpG();n.Y8G("value",It.selectedWebcamId),n.R7$(),n.SpI(" ",n.bMT(2,2,"playtestLive.selectWebcamDialog.noWebcam")," ")}}function ne(Ot,at){if(1&Ot&&(n.j41(0,"mat-option",21),n.EFF(1),n.k0s()),2&Ot){const It=at.$implicit;n.Y8G("value",It.deviceId),n.R7$(),n.SpI(" ",It.label," ")}}function G(Ot,at){1&Ot&&(n.j41(0,"div",24),n.nrm(1,"mat-progress-spinner",25),n.k0s())}function W(Ot,at){if(1&Ot&&(n.j41(0,"div",22),n.DNE(1,G,2,0,"div",23),n.k0s()),2&Ot){const It=n.XpG();n.R7$(),n.Y8G("ngIf",It.showSpinner)}}function $(Ot,at){1&Ot&&(n.j41(0,"div",15),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&Ot&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"playtestLive.hardwarePermissionError")," "))}function le(Ot,at){1&Ot&&(n.j41(0,"div",15),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&Ot&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"playtestLive.hardwarePermissionErrorOptional")," "))}function Pe(Ot,at){if(1&Ot&&(n.j41(0,"div",26)(1,"div",27)(2,"div",28),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.DNE(5,$,3,3,"div",29)(6,le,3,3,"div",29),n.k0s()()),2&Ot){const It=n.XpG();n.R7$(3),n.SpI(" ",n.bMT(4,3,"playtestLive.selectWebcamDialog.noWebcam")," "),n.R7$(2),n.Y8G("ngIf",!It.featureFlags.captureWebcamOptional),n.R7$(),n.Y8G("ngIf",It.featureFlags.captureWebcamOptional)}}function Fe(Ot,at){if(1&Ot&&(n.j41(0,"button",30),n.EFF(1),n.nI1(2,"translate"),n.nI1(3,"uppercase"),n.k0s()),2&Ot){const It=n.XpG();n.Y8G("mat-dialog-close",!0)("disabled",!It.isWebcamReady),n.R7$(),n.SpI(" ",n.bMT(3,5,n.bMT(2,3,"playtestLive.selectWebcamDialog.next"))," ")}}function At(Ot,at){if(1&Ot&&(n.j41(0,"button",30),n.EFF(1),n.nI1(2,"translate"),n.nI1(3,"uppercase"),n.k0s()),2&Ot){const It=n.XpG();n.Y8G("mat-dialog-close",!0)("disabled",!It.isWebcamReady&&!It.checkboxState),n.R7$(),n.SpI(" ",n.bMT(3,5,n.bMT(2,3,"playtestLive.joinPlaytest"))," ")}}let Le=(()=>{class Ot{constructor(It,We,xe){this.gfnWebcamService=It,this.loggingService=We,this.playtestLiveService=xe,this.secondaryButtonClick=new n.bkB,this.destroy$=new l.B7,this.isWebcamReady=!1,this.selectedWebcamId="",this.checkboxState=!1,this.showSpinner=!0,this.spinnerTimeout=null}startSpinner(){this.stopSpinner(),this.showSpinner=!0,this.spinnerTimeout=(0,se.O)(7e3).subscribe(()=>{this.stopSpinner()})}stopSpinner(){this.spinnerTimeout?.unsubscribe(),this.spinnerTimeout=null,this.showSpinner=!1}ngOnInit(){this.logger=this.loggingService.getLogger("WebcamPreview"),this.featureFlags=this.playtestLiveService.featureFlags,this.videoDevices=[],this.startSpinner(),this.gfnWebcamService.getMediaDeviceInfo(this.featureFlags).pipe((0,M.Q)(this.destroy$)).subscribe(It=>{this.videoDevices=It.videoInput.map(We=>We),0<this.videoDevices.length?this.onWebcamSelected(this.videoDevices[0].deviceId):this.stopSpinner()},It=>{this.logger.info("Error fetching webcam: ",It),this.stopSpinner()})}onWebcamSelected(It){const We=this.videoDevices.find(xe=>xe.deviceId===It);this.isWebcamReady=!1,this.startSpinner(),We&&(this.selectedWebcamId=We.deviceId,(0,Z.H)(navigator.mediaDevices.getUserMedia({audio:!1,video:{width:I.KU,deviceId:We.deviceId}})).pipe((0,D.s)(1),(0,M.Q)(this.destroy$),(0,Be.M)(xe=>xe.getVideoTracks().some(lt=>lt.enabled&&"live"===lt.readyState)?(0,Se.of)(xe):(0,Ce.$)("Webcam not ready"))).subscribe(xe=>{this.clearTracks(),this.webcamHolder.nativeElement.srcObject=xe,this.webcamHolder.nativeElement.onloadedmetadata=lt=>{this.stopSpinner(),this.isWebcamReady=!0,this.webcamHolder.nativeElement.play(),this.gfnWebcamService.mediaSetup.webcam=We.label,this.gfnWebcamService.mediaSetup.webcamDevId=We.deviceId}},xe=>{this.stopSpinner(),this.isWebcamReady=!1,this.clearTracks(),this.logger.info("Error accessing your webcam: ",xe)}))}onDisableChange(){this.checkboxState?(this.stopSpinner(),this.isWebcamReady=!1,this.clearTracks(),this.gfnWebcamService.mediaSetup.webcam="Disable",this.gfnWebcamService.mediaSetup.webcamDevId="Disable"):this.onWebcamSelected(this.selectedWebcamId)}isSelectorEmpty(){return 0===this.videoDevices.length||!this.videoDevices[0].deviceId||0===this.videoDevices[0].deviceId.length}clearTracks(){this.webcamHolder?.nativeElement?.srcObject?.getTracks()?.forEach(We=>We.stop())}ngOnDestroy(){this.stopSpinner(),this.clearTracks(),this.checkboxState&&(this.gfnWebcamService.mediaSetup.webcam="Disable",this.gfnWebcamService.mediaSetup.webcamDevId="Disable"),this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(We){return new(We||Ot)(n.rXU(U.y),n.rXU(d.J6),n.rXU(_.C))}}static{this.\u0275cmp=n.VBU({type:Ot,selectors:[["gfn-playtestlive-webcampreview"]],viewQuery:function(We,xe){if(1&We&&(n.GBs(He,5),n.GBs(Me,5)),2&We){let lt;n.mGM(lt=n.lsd())&&(xe.webcamHolder=lt.first),n.mGM(lt=n.lsd())&&(xe.disableButton=lt.first)}},outputs:{secondaryButtonClick:"secondaryButtonClick"},decls:30,vars:33,consts:[["webcamHolder",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlexFill","",1,"webcam-dialog-container"],["fxFlex","1 1 auto","fxLayout","column"],[1,"webcam-dialog-header"],[1,"font-header6"],["fxFlex","0 0 auto","fxLayout","row","fxLayoutAlign","center center",1,"webcam-dialog-select","font-body2"],[3,"valueChange","selectionChange","disableOptionCentering","value","disabled"],["selected","",3,"value",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","0 0 auto",1,"webcam-dialog-preview"],[1,"video-preview",3,"ngClass"],["class","video-box",4,"ngIf"],["class","video-text-box",4,"ngIf"],[1,"webcam-dialog-disable"],[3,"ngModelChange","change","ngClass","ngModel"],[1,"font-body2"],[1,"font-body2","font-color-warning",3,"ngClass"],["fxLayout","row","fxLayoutAlign","end center","fxLayoutGap","10px"],["mat-button","","mat-dialog-close","",1,"font-button2","hig-button"],["mat-button","","class","font-button2 hig-button",3,"mat-dialog-close","disabled",4,"ngIf"],["selected","",3,"value"],[3,"value"],[1,"video-box"],["class","hig-dialog-spinner","fxLayout","column","fxLayoutAlign","center center","fxFlex","1 1 auto",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","1 1 auto",1,"hig-dialog-spinner"],["mode","indeterminate","diameter","48","strokeWidth","4","color","accent"],[1,"video-text-box"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","1 1 auto"],[1,"no-webcam-header","font-sub1"],["class","font-body2",4,"ngIf"],["mat-button","",1,"font-button2","hig-button",3,"mat-dialog-close","disabled"]],template:function(We,xe){if(1&We){const lt=n.RV6();n.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"span",4),n.EFF(4),n.nI1(5,"translate"),n.k0s()(),n.j41(6,"div",5)(7,"mat-select",6),n.mxI("valueChange",function(ht){return n.eBV(lt),n.DH7(xe.selectedWebcamId,ht)||(xe.selectedWebcamId=ht),n.Njj(ht)}),n.bIt("selectionChange",function(ht){return n.eBV(lt),n.Njj(xe.onWebcamSelected(ht.value))}),n.DNE(8,me,3,4,"mat-option",7)(9,ne,2,2,"mat-option",8),n.k0s()(),n.j41(10,"div",9),n.nrm(11,"video",10,0),n.DNE(13,W,2,1,"div",11)(14,Pe,7,5,"div",12),n.k0s(),n.j41(15,"div",13)(16,"mat-checkbox",14),n.mxI("ngModelChange",function(ht){return n.eBV(lt),n.DH7(xe.checkboxState,ht)||(xe.checkboxState=ht),n.Njj(ht)}),n.bIt("change",function(){return n.eBV(lt),n.Njj(xe.onDisableChange())}),n.j41(17,"span",15),n.EFF(18),n.nI1(19,"translate"),n.k0s()(),n.j41(20,"div",16),n.EFF(21),n.nI1(22,"translate"),n.k0s()()(),n.j41(23,"mat-dialog-actions",17)(24,"button",18),n.EFF(25),n.nI1(26,"translate"),n.nI1(27,"uppercase"),n.k0s(),n.DNE(28,Fe,4,7,"button",19)(29,At,4,7,"button",19),n.k0s()()}2&We&&(n.R7$(4),n.JRh(n.bMT(5,17,"playtestLive.selectWebcamDialog.selectYourWebcam")),n.R7$(3),n.Y8G("disableOptionCentering",!0),n.R50("value",xe.selectedWebcamId),n.Y8G("disabled",xe.checkboxState||xe.isSelectorEmpty()),n.R7$(),n.Y8G("ngIf",xe.isSelectorEmpty()),n.R7$(),n.Y8G("ngForOf",xe.videoDevices),n.R7$(2),n.Y8G("ngClass",n.eq3(27,Q,xe.checkboxState||!xe.isWebcamReady)),n.R7$(2),n.Y8G("ngIf",xe.showSpinner||xe.checkboxState||!xe.isWebcamReady||xe.isSelectorEmpty()),n.R7$(),n.Y8G("ngIf",!xe.showSpinner&&!xe.checkboxState&&(xe.isSelectorEmpty()||!xe.isWebcamReady)),n.R7$(2),n.Y8G("ngClass",n.eq3(29,A,!xe.featureFlags.captureWebcamOptional)),n.R50("ngModel",xe.checkboxState),n.R7$(2),n.SpI(" ",n.bMT(19,19,"playtestLive.selectWebcamDialog.disableWebcam"),""),n.R7$(2),n.Y8G("ngClass",n.eq3(31,A,xe.featureFlags.captureWebcamOptional||!xe.isSelectorEmpty())),n.R7$(),n.SpI(" ",n.bMT(22,21,"playtestLive.selectWebcamDialog.requireWebcam")," "),n.R7$(4),n.SpI(" ",n.bMT(27,25,n.bMT(26,23,"common.cancel"))," "),n.R7$(3),n.Y8G("ngIf",xe.featureFlags.captureMicrophone&&!xe.checkboxState),n.R7$(),n.Y8G("ngIf",!xe.featureFlags.captureMicrophone||xe.checkboxState))},dependencies:[f.YU,f.Sq,f.bT,V.BC,V.vS,v.DJ,v.BO,v.sA,v.G2,v.UI,T.PW,S.iV,N.So,Xe.LG,y.tx,y.E7,L.VO,E.wT,R.tG,B.nM,f.Pc,O.D9],styles:[".isLtr[_nghost-%COMP%] .mat-select-trigger, .isLtr [_nghost-%COMP%] .mat-select-trigger{padding-right:10px}html[dir=ltr][_ngcontent-%COMP%] .mat-select-trigger{--dummy2: 0;padding-right:10px}.isRtl[_nghost-%COMP%] .mat-select-trigger, .isRtl [_nghost-%COMP%] .mat-select-trigger{padding-left:10px}html[dir=rtl][_ngcontent-%COMP%] .mat-select-trigger{--dummy2: 0;padding-left:10px}.isLtr[_nghost-%COMP%] .mat-select-trigger, .isLtr [_nghost-%COMP%] .mat-select-trigger{padding-left:10px}html[dir=ltr][_ngcontent-%COMP%] .mat-select-trigger{--dummy1: 0;padding-left:10px}.isRtl[_nghost-%COMP%] .mat-select-trigger, .isRtl [_nghost-%COMP%] .mat-select-trigger{padding-right:10px}html[dir=rtl][_ngcontent-%COMP%] .mat-select-trigger{--dummy1: 0;padding-right:10px}.webcam-dialog-container[_ngcontent-%COMP%]{max-width:100%}.webcam-dialog-container[_ngcontent-%COMP%] .webcam-dialog-header[_ngcontent-%COMP%]{margin-bottom:15px}.webcam-dialog-container[_ngcontent-%COMP%] .webcam-dialog-select[_ngcontent-%COMP%]{height:48px;margin-bottom:16px;background:#494949}.webcam-dialog-container[_ngcontent-%COMP%] .webcam-dialog-preview[_ngcontent-%COMP%]{height:288px;margin-bottom:10px;position:relative}.webcam-dialog-container[_ngcontent-%COMP%] .webcam-dialog-preview[_ngcontent-%COMP%] .video-preview[_ngcontent-%COMP%]{object-fit:cover;height:100%;width:100%;position:absolute}.webcam-dialog-container[_ngcontent-%COMP%] .webcam-dialog-preview[_ngcontent-%COMP%] .video-box[_ngcontent-%COMP%]{height:100%;width:100%;position:absolute;background:#292929}.webcam-dialog-container[_ngcontent-%COMP%] .webcam-dialog-preview[_ngcontent-%COMP%] .video-text-box[_ngcontent-%COMP%]{height:100%;width:76%;left:12%;position:absolute;text-align:center}.webcam-dialog-container[_ngcontent-%COMP%] .webcam-dialog-preview[_ngcontent-%COMP%] .video-text-box[_ngcontent-%COMP%] .no-webcam-header[_ngcontent-%COMP%]{margin-bottom:5px}.webcam-dialog-container[_ngcontent-%COMP%] .webcam-dialog-disable[_ngcontent-%COMP%]{margin-bottom:10px}.webcam-dialog-container[_ngcontent-%COMP%] .webcam-dialog-disable[_ngcontent-%COMP%] .font-color-warning[_ngcontent-%COMP%]{color:#ffb43e}.webcam-dialog-container[_ngcontent-%COMP%] .webcam-hidden[_ngcontent-%COMP%]{visibility:hidden}.webcam-dialog-container[_ngcontent-%COMP%] .webcam-display-none[_ngcontent-%COMP%]{display:none}"]})}}return Ot})();function Et(Ot,at){1&Ot&&(n.nrm(0,"div",8),n.nI1(1,"translate")),2&Ot&&n.Y8G("innerHtml",n.bMT(1,1,"playtestLive.playtestFeedbackDialog.feedbackIntro"),n.npT)}function $e(Ot,at){1&Ot&&(n.nrm(0,"div",8),n.nI1(1,"translate")),2&Ot&&n.Y8G("innerHtml",n.bMT(1,1,"playtestLive.playtestFeedbackDialog.feedbackGameplay"),n.npT)}function Ze(Ot,at){1&Ot&&(n.nrm(0,"div",8),n.nI1(1,"translate")),2&Ot&&n.Y8G("innerHtml",n.bMT(1,1,"playtestLive.playtestFeedbackDialog.feedbackInputs"),n.npT)}function Qe(Ot,at){1&Ot&&(n.nrm(0,"div",8),n.nI1(1,"translate")),2&Ot&&n.Y8G("innerHtml",n.bMT(1,1,"playtestLive.playtestFeedbackDialog.feedbackWebcam"),n.npT)}function Ve(Ot,at){1&Ot&&(n.nrm(0,"div",8),n.nI1(1,"translate")),2&Ot&&n.Y8G("innerHtml",n.bMT(1,1,"playtestLive.playtestFeedbackDialog.feedbackMicrophone"),n.npT)}let nt=(()=>{class Ot{constructor(It,We){this.loggingService=It,this.playtestLiveService=We,this.primaryButtonClick=new n.bkB,this.destroy$=new l.B7}ngOnInit(){this.logger=this.loggingService.getLogger("FeedbackHig"),this.featureFlags=this.playtestLiveService.featureFlags}onPrimaryButtonClick(){this.primaryButtonClick.emit(!0)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(We){return new(We||Ot)(n.rXU(d.J6),n.rXU(_.C))}}static{this.\u0275cmp=n.VBU({type:Ot,selectors:[["gfn-playtestlive-feedbackhig"]],inputs:{primaryButton:"primaryButton"},outputs:{primaryButtonClick:"primaryButtonClick"},decls:17,vars:14,consts:[["fxLayout","column",1,"feedbackhig-dialog-container"],[1,"feedbackhig-dialog-header"],[1,"font-header6"],[1,"feedbackhig-dialog-intro"],["class","font-body2",3,"innerHtml",4,"ngIf"],[1,"feedbackhig-dialog-items"],["fxLayout","row","fxLayoutAlign","end center","fxLayoutGap","10px"],["mat-button","",1,"font-button2","hig-button",3,"click","mat-dialog-close"],[1,"font-body2",3,"innerHtml"]],template:function(We,xe){1&We&&(n.j41(0,"div",0)(1,"span",1)(2,"span",2),n.EFF(3),n.nI1(4,"translate"),n.k0s()(),n.j41(5,"span",3),n.DNE(6,Et,2,3,"div",4),n.k0s(),n.j41(7,"span",5),n.DNE(8,$e,2,3,"div",4)(9,Ze,2,3,"div",4)(10,Qe,2,3,"div",4)(11,Ve,2,3,"div",4),n.k0s(),n.j41(12,"mat-dialog-actions",6)(13,"button",7),n.bIt("click",function(){return xe.onPrimaryButtonClick()}),n.EFF(14),n.nI1(15,"translate"),n.nI1(16,"uppercase"),n.k0s()()()),2&We&&(n.R7$(3),n.SpI(" ",n.bMT(4,8,"playtestLive.playtestFeedbackDialog.header")," "),n.R7$(3),n.Y8G("ngIf",xe.featureFlags.captureWebcam||xe.featureFlags.captureMicrophone||xe.featureFlags.captureGameplay||xe.featureFlags.captureInput),n.R7$(2),n.Y8G("ngIf",xe.featureFlags.captureGameplay),n.R7$(),n.Y8G("ngIf",xe.featureFlags.captureInput),n.R7$(),n.Y8G("ngIf",xe.featureFlags.captureWebcam),n.R7$(),n.Y8G("ngIf",xe.featureFlags.captureMicrophone),n.R7$(2),n.Y8G("mat-dialog-close",!0),n.R7$(),n.SpI(" ",n.bMT(16,12,n.bMT(15,10,"common.done"))," "))},dependencies:[f.bT,v.DJ,v.BO,v.sA,S.iV,y.tx,y.E7,f.Pc,O.D9],styles:[".feedbackhig-dialog-container[_ngcontent-%COMP%]{max-width:100%}.feedbackhig-dialog-container[_ngcontent-%COMP%] .feedbackhig-dialog-header[_ngcontent-%COMP%]{margin-bottom:20px}.feedbackhig-dialog-container[_ngcontent-%COMP%] .feedbackhig-dialog-intro[_ngcontent-%COMP%]{margin-bottom:10px}.feedbackhig-dialog-container[_ngcontent-%COMP%] .feedbackhig-dialog-items[_ngcontent-%COMP%]{margin-bottom:20px}"]})}}return Ot})()},65805:(Bt,z,s)=>{"use strict";s.d(z,{C:()=>A});var n=s(70650),l=s(20924),d=s(99469),v=s(80583),S=s(43848),y=s(59859),f=s(19392),O=s(3496),P=s(75707),_=s(65706),i=s(14714),r=s(4208),a=s(91384);const c={protocol:"",host:"",port:443,app:"",streamName:"",iceServers:[],tcpMuxPolicy:"",mediaElementId:void 0,mediaConstraints:{audio:{deviceId:"",echoCancellation:!0},video:{deviceId:"",width:{min:320,ideal:640,max:640},height:{min:240,ideal:360,max:480},frameRate:30}},connectionParams:{host:"",app:"live"},bandwidth:{audio:56,video:512},cameraWidth:640,cameraHeight:360};var I=s(82197),U=s(89284),V=s(78812),T=s(14331),N=s(58527),L=s(5798),E=s(69751),g=s(35833),R=s(17053),B=s(72147),X=s(83915),H=s(27721),J=s(10399),re=s(85735);const ie={url:"",deserializer:me=>JSON.parse(me.data),serializer:me=>JSON.stringify(me)};class ue extends v.kQ{constructor(ne,G){if(super(),ne instanceof R.c)this.destination=G,this.source=ne;else{const W=this._config=Object.assign({},ie);if(this._output=new v.B7,"string"==typeof ne)W.url=ne;else for(let $ in ne)ne.hasOwnProperty($)&&(W[$]=ne[$]);if(!W.WebSocketCtor&&WebSocket)W.WebSocketCtor=WebSocket;else if(!W.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new re.m}}lift(ne){const G=new ue(this._config,this.destination);return G.operator=ne,G.source=this,G}_resetState(){this._socket=null,this.source||(this.destination=new re.m),this._output=new v.B7}multiplex(ne,G,W){const $=this;return new R.c(le=>{try{$.next(ne())}catch(Fe){le.error(Fe)}const Pe=$.subscribe(Fe=>{try{W(Fe)&&le.next(Fe)}catch(At){le.error(At)}},Fe=>le.error(Fe),()=>le.complete());return()=>{try{$.next(G())}catch(Fe){le.error(Fe)}Pe.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:ne,protocol:G,url:W,binaryType:$}=this._config,le=this._output;let Pe=null;try{Pe=G?new ne(W,G):new ne(W),this._socket=Pe,$&&(this._socket.binaryType=$)}catch(At){return void le.error(At)}const Fe=new J.y(()=>{this._socket=null,Pe&&1===Pe.readyState&&Pe.close()});Pe.onopen=At=>{const{_socket:Le}=this;if(!Le)return Pe.close(),void this._resetState();const{openObserver:Et}=this._config;Et&&Et.next(At);const $e=this.destination;this.destination=H.v.create(Ze=>{if(1===Pe.readyState)try{const{serializer:Qe}=this._config;Pe.send(Qe(Ze))}catch(Qe){this.destination.error(Qe)}},Ze=>{const{closingObserver:Qe}=this._config;Qe&&Qe.next(void 0),Ze&&Ze.code?Pe.close(Ze.code,Ze.reason):le.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),this._resetState()},()=>{const{closingObserver:Ze}=this._config;Ze&&Ze.next(void 0),Pe.close(),this._resetState()}),$e&&$e instanceof re.m&&Fe.add($e.subscribe(this.destination))},Pe.onerror=At=>{this._resetState(),le.error(At)},Pe.onclose=At=>{this._resetState();const{closeObserver:Le}=this._config;Le&&Le.next(At),At.wasClean?le.complete():le.error(At)},Pe.onmessage=At=>{try{const{deserializer:Le}=this._config;le.next(Le(At))}catch(Le){le.error(Le)}}}_subscribe(ne){const{source:G}=this;return G?G.subscribe(ne):(this._socket||this._connectSocket(),this._output.subscribe(ne),ne.add(()=>{const{_socket:W}=this;0===this._output.observers.length&&(W&&1===W.readyState&&W.close(),this._resetState())}),ne)}unsubscribe(){const{_socket:ne}=this;ne&&1===ne.readyState&&ne.close(),this._resetState(),super.unsubscribe()}}var Z=s(42423);const Se={offerToReceiveAudio:!0,offerToReceiveVideo:!0};let Be=(()=>{class me{constructor(G){this.loggingService=G,this.messagesSubject=new v.B7,this.signalingMessages$=this.messagesSubject.asObservable(),this.numIceCandidates=0,this.signalingUrl="",this.streamName="",this.handleICECandidateEvent=W=>{this.logger.info(W),W.candidate&&this.sendCandidateMessage({handleCandidate:this.streamName,data:{candidate:W.candidate}})},this.handleNegotiationNeededEvent=W=>{this.logger.info(W)},this.handleICEConnectionStateChangeEvent=W=>{switch(this.logger.info(W),this.rtcPeerConnection.iceConnectionState){case"closed":case"failed":case"disconnected":this.closeWebRtc()}},this.handleSignalingStateChangeEvent=W=>{"closed"===(this.logger.info(W),this.rtcPeerConnection.signalingState)&&this.closeWebRtc()},this.handleTrackEvent=W=>{this.logger.info(W)},this.reportError=W=>{this.logger.error("got Error: "+W.name)},this.logger=this.loggingService.getLogger("WebrtcService"),this.mediaSetup=Z.m}connect(){(!this.socket$||this.socket$.closed)&&(this.socket$=this.createWebSocket(),this.socket$.subscribe(G=>{this.logger.verbose("Received a message: send to msgHandler"),this.messagesSubject.next(G)}))}createWebSocket(){return function se(me){return new ue(me)}({url:this.signalingUrl,protocol:"json",openObserver:{next:()=>{this.logger.info("WebrtcService: connected to websocket")}},closeObserver:{next:()=>{this.logger.info("WebrtcService: websocket connection closed"),this.socket$=void 0}}})}setUrlAndStreamName(G,W){this.signalingUrl=G,this.streamName=W,this.logger.info("setUrlAndStreamName "+this.signalingUrl+": "+this.streamName)}initSignalingConnection(){return this.logger.info("initSignalingConnection"),""===this.signalingUrl?(this.logger.error("invalid signaling url"),!1):"ws"!==this.signalingUrl.substr(0,2)?(this.logger.error("invalid protocol requested"),!1):(this.addIncomingMessageHandler(),this.requestMediaDevices().pipe((0,_.s)(1)).subscribe(G=>{this.logger.info("got media: signaling initialized"),this.initRtcPeerConnection()}),!0)}requestMediaDevices(){return new R.c(G=>{this.logger.info("requestMediaDevices");try{this.logger.info("selected devices: "+this.mediaSetup.micDevId+": "+this.mediaSetup.webcamDevId),(0,f.H)(navigator.mediaDevices.getUserMedia({audio:{deviceId:this.mediaSetup.micDevId,echoCancellation:!0},video:{width:864,height:480,deviceId:this.mediaSetup.webcamDevId}})).subscribe(W=>{W.getTracks().forEach($=>{this.logger.info("track: "+$.id+" readyState: "+$.readyState)}),this.mediaStream=W,G.next()})}catch(W){G.error(W),this.logger.error(`getUserMedia() error: ${W.name}`)}})}initRtcPeerConnection(){this.logger.info("initRtcPeerConnetion"),this.createPeerConnection(),this.mediaStream.getTracks().forEach(G=>this.rtcPeerConnection.addTrack(G,this.mediaStream));try{let G;(0,f.H)(this.rtcPeerConnection.createOffer(Se)).pipe((0,_.s)(1),(0,a.M)(W=>{G=W}),(0,B.n)(W=>(0,f.H)(this.rtcPeerConnection.setLocalDescription(G)))).subscribe(W=>{this.logger.info("offer created and set"),this.sendOfferMessage({handleOffer:this.streamName,transport:"udp",data:{sdp:G}})})}catch(G){this.handleGetUserMediaError(G)}}addIncomingMessageHandler(){this.connect(),this.logger.info("connect() done: addIncomingMessageHandler"),this.signalingMessages$.subscribe(G=>{if(this.logger.info("Received message obj:"),this.logger.info(G.data),G.data.type)switch(G.data.type){case"status":this.logger.info("Received message status");break;case"offer":this.logger.info("Received message offer"),this.handleOfferMessage(G.data);break;case"answer":this.logger.info("Received message answer"),this.handleAnswerMessage(G.data);break;case"hangup":this.handleHangupMessage(G);break;case"ice-candidate":case"candidate":this.logger.info("Received message ice-candidate"),this.handleICECandidateMessage(G.data.candidate);break;default:this.logger.info("unknown message of type "+G.type)}else G.data.sdp&&(this.logger.info("Received message is SDP"),"answer"===G.data.sdp.type&&(this.logger.info("Received message sdp-answer"),this.handleAnswerMessage(G.data.sdp)))},G=>this.logger.error(G)),this.logger.info("addIncomingMessageHandler done")}sendMessage(G){this.logger.info("sending message: "+G.type),this.socket$.next(G)}sendOfferMessage(G){this.logger.info("sending offerMessage"),this.socket$.next(G)}sendCandidateMessage(G){this.logger.info("sending candidateMessage"),this.socket$.next(G)}sendPublishMessage(G){this.logger.info("sending PUBLISH msg"),this.socket$.next(G)}handleOfferMessage(G){this.logger.info("handle incoming offer"),this.rtcPeerConnection||this.createPeerConnection(),this.mediaStream||this.startWebRtc(),(0,f.H)(this.rtcPeerConnection.setRemoteDescription(new RTCSessionDescription(G))).pipe((0,_.s)(1),(0,a.M)(W=>{this.mediaStream.getTracks().forEach($=>this.rtcPeerConnection.addTrack($,this.mediaStream)),this.logger.info("setRemoteDescription done")}),(0,B.n)(W=>(0,f.H)(this.rtcPeerConnection.createAnswer())),(0,a.M)(W=>{this.logger.info(`createAnswer done: ${W}`)}),(0,B.n)(W=>(0,f.H)(this.rtcPeerConnection.setLocalDescription(W))),(0,_.s)(1),(0,X.T)(W=>{this.logger.info(`localDescription done: ${this.rtcPeerConnection.localDescription}`),this.sendMessage({type:"answer",data:this.rtcPeerConnection.localDescription})})).subscribe(W=>{this.logger.info("Negotiation succeeded: ",W)},W=>{this.logger.info("Negotiation error: ",W),this.handleGetUserMediaError(W)},()=>{this.logger.info("Negotiation success")})}handleAnswerMessage(G){this.logger.info("handle incoming answer"),this.rtcPeerConnection.setRemoteDescription(G)}handleHangupMessage(G){this.logger.info(G),this.closeWebRtc()}handleICECandidateMessage(G){const W=new RTCIceCandidate(G);this.rtcPeerConnection.addIceCandidate(W).catch(this.reportError),this.numIceCandidates++,this.numIceCandidates>1&&(this.logger.info("PUBLISH NOW"),this.sendPublishMessage({publish:this.streamName,mode:"live",keyFramerate:3e3}))}createPeerConnection(){this.logger.info("creating PeerConnection"),this.rtcPeerConnection=new RTCPeerConnection({iceServers:[{urls:"stun:stun2.l.google.com:19302"}]}),this.rtcPeerConnection.onicecandidate=this.handleICECandidateEvent,this.rtcPeerConnection.oniceconnectionstatechange=this.handleICEConnectionStateChangeEvent,this.rtcPeerConnection.onsignalingstatechange=this.handleSignalingStateChangeEvent,this.rtcPeerConnection.onnegotiationneeded=this.handleNegotiationNeededEvent,this.rtcPeerConnection.ontrack=this.handleTrackEvent}startWebRtc(){this.logger.info("starting local stream"),this.mediaStream.getTracks().forEach(G=>{G.enabled=!0,this.logger.info("track: "+G+" readyState: "+G.readyState)})}closeWebRtc(){this.logger.info("Close webrtc"),this.rtcPeerConnection&&(this.rtcPeerConnection.ontrack=null,this.rtcPeerConnection.onicecandidate=null,this.rtcPeerConnection.oniceconnectionstatechange=null,this.rtcPeerConnection.onsignalingstatechange=null,this.mediaStream.getTracks().forEach(G=>{G.stop()}),this.rtcPeerConnection.getTransceivers().forEach(G=>{G.stop()}),this.rtcPeerConnection.close(),this.rtcPeerConnection=null)}handleGetUserMediaError(G){switch(G?.name){case"NotFoundError":this.logger.info("Unable to start streaming because no camera and/or microphone found");break;case"SecurityError":case"PermissionDeniedError":break;case null:case void 0:this.logger.error("Undefined error message.");break;default:this.logger.error("Error opening your camera and/or microphone: "+G.message)}this.closeWebRtc()}static{this.\u0275fac=function(W){return new(W||me)(N.KVO(d.J6))}}static{this.\u0275prov=N.jDH({token:me,factory:me.\u0275fac,providedIn:"root"})}}return me})();var Xe=s(21531);let He=(()=>{class me{constructor(G){this.loggingService=G,this.logger=this.loggingService.getLogger("Red5PublisherService"),this.mediaSetup=Z.m,this.rtcPublisher=new Xe.RTCPublisher}startRed5RtcPublish(G){this.logger.info("[startRed5RtcPublish]: started"),this.logger.info("Connecting using rtcConfig: ",G),(0,f.H)(this.rtcPublisher.init(G)).pipe((0,a.M)(this.rtcPublisher.on("*",this.onRed5PublisherEvent.bind(this))),(0,P.ZZ)(W=>this.rtcPublisher.publish()),(0,_.s)(1)).subscribe(W=>{this.logger.info("[startRed5RtcPublish]: Red5Publish succeeded: ",W)},W=>{this.logger.error("[startRed5RtcPublish]: Publisher Failed",W)})}onRed5PublisherEvent(G){this.logger.info("[onRed5PublisherEvent]:",G.type)}stopRed5RtcPublish(){this.logger.info("[stopRed5RtcPublish]: Stop Red5Pro streaming"),this.rtcPublisher.unpreview(),(0,f.H)(this.rtcPublisher.unpublish()).pipe((0,_.s)(1)).subscribe(G=>{this.rtcPublisher.off("*",this.onRed5PublisherEvent),this.logger.info("[stopRed5RtcPublish]: Unpublish Complete")},G=>{this.logger.error("[stopRed5RtcPublish]: Unpublish Failed: ",G)})}static{this.\u0275fac=function(W){return new(W||me)(N.KVO(d.J6))}}static{this.\u0275prov=N.jDH({token:me,factory:me.\u0275fac,providedIn:"root"})}}return me})();var Me=s(61958),Q=s(50801);let A=(()=>{class me{constructor(G,W,$,le,Pe,Fe,At,Le,Et,$e,Ze,Qe,Ve){this.loggingService=G,this.bridgeService=W,this.endpointFactory=$,this.gfnWebcamService=le,this.dialogService=Pe,this.webrtcService=Fe,this.red5PublisherService=At,this.appConfig=Le,this.idmService=Et,this.telemetryUtilService=$e,this.telemetryService=Ze,this.projectInterfaceService=Qe,this.networkStatusService=Ve,this.clientIngestURL="",this.webCamSupport=I.ep,this.playtestPermissionsGranted=!1,this.validIngest=!1,this.id="",this.heartbeatSubscription=null,this.timerSource=void 0,this.micTested=!1,this.streamerSessionId="",this.vdkSessionId="",this.stop$=new v.B7,this.audioContext=null,this.audioSource=null,this.mediaStream=null,this.isPlaytestLive=!1,this.blockReconnect=!1,this.disablePostSessionTips=!1,this.disableFeedback=!1,this.disableUds=!1,this.audioAnalyzer=null,this.featureFlags={captureWebcam:!0,captureWebcamOptional:!1,captureMicrophone:!0,captureMicrophoneOptional:!1,captureGameplay:!0,captureInput:!0},this.logger=this.loggingService.getLogger("PlaytestLiveService"),this.vdkPlaytestConfig=this.appConfig.vdkPlaytestConfig,this.endPoint=this.createEndpoint(!0)}initialize(){this.appConfig.featureEnablement?.playtest&&(this.projectInterfaceService.streamingSessionSetupSuccess$.subscribe(G=>{this.logger.info("Received streaming streamingSessionSetupSuccess notification:",G),this.setStreamingSessionId(G.sessionId)},G=>{this.logger.error("Error while receiving streamingSessionSetupSuccess:",G)}),this.projectInterfaceService.streamingBegin$.subscribe(G=>{this.logger.info("Received streaming streamingBegin notification:",G),this.startPlaytestLive()},G=>{this.logger.error("Error while receiving streamingBegin:",G)}),this.projectInterfaceService.streamingEnd$.subscribe(G=>{this.logger.info("Received streaming streamingEnd notification:",G),this.stopPlaytestLive()},G=>{this.logger.error("Error while receiving streamingEnd:",G)}))}initiatePlaytestLive(G,W){if(this.appConfig.featureEnablement?.playtest)return this.logger.info("Initiating playtest"),this.streamerSessionId="",this.id=G,this.vdkSessionId=W,this.telemetryService.setEventsCommonData({integrationId:T.HJ.GFN_PLAYTEST},!1,!0),(d.zk.isBrowserPlatform()?(0,S.of)(!0):this.bridgeService.executeCommand(l.Ts.Gfn.Streaming.AuthorizeAVDevices,{mic:!0,camera:!0})).pipe((0,P.ZZ)(At=>At?this.idmService.getAuthToken(!1):(0,y.$)("AuthorizeAVDevices Error")),(0,P.ZZ)(At=>(At?.token&&(this.authToken=At.token),this.getSessionInfo())),(0,P.ZZ)(At=>At?(this.featureFlags.captureWebcam=!this.playtestSession.featureFlags.includes("WEBCAM_DISABLED"),this.featureFlags.captureWebcamOptional=this.playtestSession.featureFlags.includes("WEBCAM_OPTIONAL"),this.featureFlags.captureMicrophone=!this.playtestSession.featureFlags.includes("MICROPHONE_DISABLED"),this.featureFlags.captureMicrophoneOptional=this.playtestSession.featureFlags.includes("MICROPHONE_OPTIONAL"),this.featureFlags.captureGameplay=!this.playtestSession.featureFlags.includes("RECORDING_DISABLED"),this.featureFlags.captureInput=!this.playtestSession.featureFlags.includes("INPUT_DISABLED"),this.featureFlags.captureWebcam||this.featureFlags.captureMicrophone||this.featureFlags.captureGameplay||this.featureFlags.captureInput?this.dialogService.openPlaytestLivePermissionHigDialog(this.playtestSession):(0,S.of)(!0)):this.dialogService.openPlaytestLiveErrorDialog()),(0,P.ZZ)(At=>At?this.featureFlags.captureWebcam?this.dialogService.openPlaytestLiveWebcamPreview(this.playtestSession):(0,S.of)(!0):(this.sendTelemetry(U._b3.SessionConsentDenied,U.YDY.Success),(0,y.$)("Permissions not granted"))),(0,P.ZZ)(At=>At?(this.gfnWebcamService.mediaSetup.webcamDevId.match("Disable")&&(this.featureFlags.captureWebcam=!1),this.featureFlags.captureMicrophone=this.featureFlags.captureWebcam,this.featureFlags.captureMicrophoneOptional=!1,this.featureFlags.captureMicrophone?this.dialogService.openPlaytestLiveMicrophonePreview(this.playtestSession):(0,S.of)(!0)):(this.sendTelemetry(U._b3.SessionConsentDenied,U.YDY.Success),(0,y.$)("Webcam permissions not granted"))),(0,P.ZZ)(At=>At?(this.logger.info("Permissions granted"),this.playtestPermissionsGranted=!0,(0,S.of)(!0)):(this.sendTelemetry(U._b3.SessionConsentDenied,U.YDY.Success),(0,y.$)("Launch Cancelled"))),(0,_.s)(1),(0,i.W)(At=>(this.logger.error("initiatePlaytestLive error:",At),(0,y.$)("initiatePlaytestLive Error"))))}startMic(G){this.appConfig.featureEnablement?.playtest&&(0,f.H)(navigator.mediaDevices.getUserMedia({audio:{deviceId:G,echoCancellation:!0}})).pipe((0,_.s)(1),(0,r.Q)(this.stop$),(0,a.M)(W=>W.getAudioTracks().some($=>$.enabled&&"live"===$.readyState)?(0,S.of)(W):(0,y.$)("Microphone not ready"))).subscribe(W=>{this.mediaStream=W,this.audioContext=new AudioContext,this.audioAnalyzer=this.audioContext.createAnalyser(),this.audioSource=this.audioContext.createMediaStreamSource(this.mediaStream),this.audioAnalyzer.fftSize=I.JK,this.audioAnalyzer.minDecibels=I.AT,this.audioAnalyzer.maxDecibels=I.yd,this.audioAnalyzer.smoothingTimeConstant=I.e8,this.audioSource.connect(this.audioAnalyzer),this.logger.info("Starting mic")},W=>{this.logger.info("Error accessing microphone: ",W)})}stopMic(){this.appConfig.featureEnablement?.playtest&&(this.logger.info("Stopping mic"),this.audioSource&&this.audioAnalyzer&&this.audioSource.disconnect(this.audioAnalyzer),this.audioSource=null,this.audioAnalyzer=null,this.audioContext&&this.audioContext.close(),this.audioContext=null,this.mediaStream&&this.mediaStream.getTracks()?.forEach(G=>{G.stop()}),this.mediaStream=null,this.stop$.next(!0),this.stop$.complete())}disableClientRecord(){return this.appConfig.featureEnablement?.playtest&&this.playtestPermissionsGranted}skipReconnect(){const G=this.appConfig.featureEnablement?.playtest&&this.networkStatusService.isOnline&&this.blockReconnect;return this.disablePostSessionTips=G,G}skipPostSessionTips(){const G=this.appConfig.featureEnablement?.playtest&&this.disablePostSessionTips;return this.disablePostSessionTips=!1,G}skipFeedback(){const G=this.appConfig.featureEnablement?.playtest&&this.disableFeedback;return this.disableFeedback=!1,G}skipUds(){const G=this.appConfig.featureEnablement?.playtest&&this.disableUds;return this.disableUds=!1,G}createEndpoint(G){return this.endpointFactory.createEndpoint({config:{timeout:this.vdkPlaytestConfig.defaultTimeout,timeBetweenRetries:this.vdkPlaytestConfig.defaultTimeBetweenRetries,maxRetries:G?1:3}})}ptmsHeartbeatPing(){const G=`${this.vdkPlaytestConfig.ptmsUrl}/v1/playtest/session/${this.playtestSession.sessionID}/heartbeat`;this.logger.verbose("Heartbeat API call"),this.endPoint.post(G,{headers:{Authorization:`Bearer ${this.authToken}`}}).pipe((0,_.s)(1)).subscribe($=>{this.logger.verbose("Heartbeat ping success")},$=>{401===$.status?this.idmService.getAuthToken(!0).pipe((0,_.s)(1)).subscribe(le=>{this.logger.info("Heartbeat getAuthToken refreshed"),this.authToken=le.token,this.ptmsHeartbeatPing()}):this.logger.error("Heartbeat ping error: ",$)})}getIngestUrls(){return this.endPoint.post(`${this.vdkPlaytestConfig.ptmsUrl}/v1/playtest/session/${this.playtestSession.sessionID}/ingest`,{headers:{Authorization:`Bearer ${this.authToken}`}}).pipe((0,a.M)($=>{this.validIngest=!0,this.startHeartbeatPing(),this.ingestDetails=Object.assign({},{ingest:$.ingest},{webcam:$.webcam},{streamProperties:$.streamProperties})},$=>{this.logger.error("Ingest url error: ",$),(0,y.$)("getIngestUrls Error")}))}getSessionInfo(){return this.endPoint.get(`${this.vdkPlaytestConfig.ptmsUrl}/v1/playtest/session/${this.vdkSessionId}`,{headers:{Authorization:`Bearer ${this.authToken}`}}).pipe((0,a.M)($=>{this.playtestSession=$}),(0,i.W)($=>(this.logger.error("getSessionInfo error: ",$),(0,S.of)(null))))}clientWebcamStart(){try{const G=this.clientIngestURL.lastIndexOf("/"),W=this.clientIngestURL.slice(G+1,this.clientIngestURL.length);if(this.webCamSupport===I.Z0)return this.logger.info("Standard WebRTC streaming started"),this.webrtcService.setUrlAndStreamName(this.clientIngestURL,W),this.webrtcService.mediaSetup.micDevId=this.gfnWebcamService.mediaSetup.micDevId,this.webrtcService.mediaSetup.webcamDevId=this.gfnWebcamService.mediaSetup.webcamDevId,void this.webrtcService.initSignalingConnection();this.webCamSupport===I.ep&&(this.featureFlags.captureMicrophone&&(this.red5PublisherService.mediaSetup.micDevId=this.gfnWebcamService.mediaSetup.micDevId),this.featureFlags.captureWebcam&&(this.red5PublisherService.mediaSetup.webcamDevId=this.gfnWebcamService.mediaSetup.webcamDevId),this.featureFlags.captureMicrophone||this.featureFlags.captureWebcam?(this.ingestDetails.webcam=Object.assign({},this.ingestDetails.webcam,{mediaConstraints:c.mediaConstraints,mediaElementId:void 0}),this.ingestDetails.webcam.mediaConstraints.audio.deviceId=this.gfnWebcamService.mediaSetup.micDevId,this.ingestDetails.webcam.mediaConstraints.video.deviceId=this.gfnWebcamService.mediaSetup.webcamDevId,this.ingestDetails.webcam.cameraWidth=c.cameraWidth,this.ingestDetails.webcam.cameraHeight=c.cameraHeight,this.ingestDetails.webcam.bandwidth=c.bandwidth,this.logger.info("Red5Pro startRed5RtcPublish"),this.red5PublisherService.startRed5RtcPublish(this.ingestDetails.webcam)):this.logger.info("Red5Pro startRed5RtcPublish skipped"))}catch{this.logger.info("clientWebcamStart error")}}clientWebcamStop(){try{"standardWebrtc"===this.webCamSupport?this.webrtcService.closeWebRtc():"red5ProPublisherSdk"===this.webCamSupport&&(this.featureFlags.captureMicrophone||this.featureFlags.captureWebcam?(this.logger.info("Red5Pro stopRed5RtcPublish"),this.red5PublisherService.stopRed5RtcPublish()):this.logger.info("Red5Pro stopRed5RtcPublish skipped"))}catch{this.logger.info("clientWebcamStop error")}}setStreamingSessionId(G){this.streamerSessionId=G}startPlaytestLive(){this.blockReconnect=!1,this.disableFeedback=!1,this.disableUds=!1,null!=this.playtestSession&&this.playtestPermissionsGranted&&this.getIngestUrls().pipe((0,_.s)(1)).subscribe(G=>{this.clientWebcamStart(),this.logger.info("Playtest started"),this.isPlaytestLive=!0,this.blockReconnect=!0,this.disableFeedback=!0,this.disableUds=!0,this.sendTelemetry(U._b3.SessionStart,U.YDY.Success)},G=>{this.logger.info("Playtest broadcast connection error: ",G),this.clientWebcamStop(),this.ptmsStopIngest(),this.heartbeatSubscription?.unsubscribe(),this.heartbeatSubscription=null,this.authToken=null,this.playtestSession=null,this.stopMic(),this.sendTelemetry(U._b3.SessionStart,U.YDY.Failure),this.telemetryService.setEventsCommonData({integrationId:V.oX.Undefined},!1,!0)})}ptmsStopIngest(){this.validIngest&&this.endPoint.delete(`${this.vdkPlaytestConfig.ptmsUrl}/v1/playtest/session/${this.playtestSession.sessionID}/ingest`,{headers:{Authorization:`Bearer ${this.authToken}`}}).subscribe($=>{this.validIngest=!1},$=>{this.logger.error("Stop ingest error: ",$),401===$.status?this.idmService.getAuthToken(!0).pipe((0,_.s)(1)).subscribe(le=>{this.authToken=le.token,this.ptmsStopIngest()}):(0,y.$)("ptmsStopIngest Error")})}stopPlaytestLive(){this.isPlaytestLive&&(this.logger.info("Playtest ended"),this.sendTelemetry(U._b3.SessionStop,U.YDY.Success,!0),this.clientWebcamStop(),this.ptmsStopIngest(),this.heartbeatSubscription?.unsubscribe(),this.heartbeatSubscription=null,this.stopMic(),this.isPlaytestLive=!1,this.dialogService.openPlaytestLiveFeedbackHigDialog(this.playtestSession)),this.playtestPermissionsGranted=!1,this.authToken=null,this.playtestSession=null}startHeartbeatPing(){this.timerSource=(0,O.O)(1e3,I.VA),this.heartbeatSubscription=this.timerSource.subscribe(G=>{this.logger.verbose("HeartBeating every 60 seconds call "),this.ptmsHeartbeatPing()})}sendTelemetry(G,W,$=!1){var le=this;return(0,n.A)(function*(){try{yield le.telemetryUtilService.sendPlaytesterSessionEvent(G,W,le.playtestSession?.sessionID??"",le.streamerSessionId??"",le.playtestSession?.gameInfo?.gameDeveloper??"",le.playtestSession?.gameInfo?.gameName??"",le.playtestSession?.gameInfo?.gameBuild??"",le.playtestSession?.gameInfo?.gameCMSID??"",le.gfnWebcamService.mediaSetup.webcam??"",le.gfnWebcamService.mediaSetup.microphone??"",le.micTested?U.O67.Yes:U.O67.No,"")}catch(Pe){le.logger.error("Telemetry send failed",Pe)}$&&le.telemetryService.setEventsCommonData({integrationId:V.oX.Undefined},!1,!0)})()}static{this.\u0275fac=function(W){return new(W||me)(N.KVO(d.J6),N.KVO(d.NZ),N.KVO(L.t),N.KVO(E.y),N.KVO(g.o3),N.KVO(Be),N.KVO(He),N.KVO(Me.Vk),N.KVO(U.k_2),N.KVO(U.jgD),N.KVO(V.H0),N.KVO(Q.qQ),N.KVO(d.CF))}}static{this.\u0275prov=N.jDH({token:me,factory:me.\u0275fac,providedIn:"root"})}}return me})()},95989:(Bt,z,s)=>{"use strict";s.d(z,{hL:()=>At,xL:()=>l.xL,Pi:()=>Et,MP:()=>l.MP,bz:()=>l.bz}),s(14279);var l=s(1646),d=s(31315),v=s(43848),S=s(65706),y=s(8619),f=s(72147),O=s(83915),P=s(14714),_=s(26875),i=s(99469),r=s(18433),a=s(6478),c=s(58527),m=s(61142),M=s(55512),D=s(61958),I=s(70521),U=s(78812),V=s(43117);let T=(()=>{class $e{constructor(Qe,Ve,nt,Ot,at){this.serviceWorkerService=Ve,this.telemetryService=nt,this.configuration=Ot,this.refreshUiService=at,this.logger=Qe.getLogger("PushNotificationTelemetryService"),this.serviceWorkerService.swPushNotificationTelemetryListener.subscribe(this.onNewTelemetryEvent.bind(this))}sendTokenRegisteredSuccessTelemetry(Qe){this.fetchFirebaseProjectID().pipe((0,S.s)(1)).subscribe(Ve=>{this.logger.info("sending Token Registered Success Telemetry"),this.telemetryService.push(this.createPushNotificationTokenRegisteredDef(Qe,Ve))},Ve=>{this.logger.info("Error while fetching firebase Project Id",Ve),this.telemetryService.push(this.createPushNotificationTokenRegisteredDef(Qe))})}sendPushNotificationFailureTelemetry(Qe,Ve){this.fetchFirebaseProjectID().pipe((0,S.s)(1)).subscribe(nt=>{this.logger.info("sending Token Failure Telemetry"),this.telemetryService.push(this.createPushNotificationErrorDef(Qe,Ve,nt))},nt=>{this.logger.info("Error while fetching firebase Project Id",nt),this.telemetryService.push(this.createPushNotificationErrorDef(Qe,Ve))})}sendPushNotificationCleanUpTelemetry(Qe){this.fetchFirebaseProjectID().pipe((0,S.s)(1)).subscribe(Ve=>{this.logger.info("sending KV Store CleanUp Telemetry"),this.telemetryService.push(this.createPushNotificationPurgedEntriesDef(Qe,Ve))},Ve=>{this.logger.info("Error while fetching firebase Project Id",Ve),this.telemetryService.push(this.createPushNotificationPurgedEntriesDef(Qe))})}fetchFirebaseProjectID(){return this.firebaseProjectId=this.configuration?.firebase?.pns?.projectId,(0,v.of)(this.firebaseProjectId)}onNewTelemetryEvent(Qe){if(this.logger.info("Telemetry message recieved from SW",Qe),Qe?.type===I.oY.PushNotificationTelemetry&&Qe?.content){const Ve=JSON.parse(Qe?.content);if(this.logger.info("Telemetry Message Type is: ",Ve?.type),Ve?.type===I._F.PushNotificationReceived){const nt=new r.U1f({requestId:Ve?.data?.requestId??"",projectId:Ve?.data?.projectId??"",sentTs:Ve?.data?.sentTs??0,ttl:Ve?.data?.ttl??0,type:Ve?.data?.type??r.RgL.UNKNOWN});this.telemetryService.push(nt)}else Ve?.type===I._F.PushNotificationError&&this.sendPushNotificationFailureTelemetry(Ve?.data?.errorDetails,Ve?.data?.errorCategory)}}createPushNotificationErrorDef(Qe,Ve,nt){return new r.Xci({errorDetails:Qe??"",errorCategory:Ve??r.mUs.GENERAL,projectId:nt??""})}createPushNotificationTokenRegisteredDef(Qe,Ve){return new r.uXT({registrationProvider:Qe,projectId:Ve??""})}createPushNotificationPurgedEntriesDef(Qe,Ve){return new r.YRL({deviceIds:Qe,projectId:Ve??""})}static{this.\u0275fac=function(Ve){return new(Ve||$e)(c.KVO(i.J6),c.KVO(I.lS),c.KVO(U.H0),c.KVO(D.Vk),c.KVO(V.F4))}}static{this.\u0275prov=c.jDH({token:$e,factory:$e.\u0275fac,providedIn:"root"})}}return $e})();var N=s(38502);const g="application/json";var R=function($e){return $e.Register="PNS_Registrations",$e.Unregister="PNS_Unregister",$e}(R||{});let B=(()=>{class $e{static{this.\u0275fac=function(Ve){return new(Ve||$e)}}static{this.\u0275prov=c.jDH({token:$e,factory:$e.\u0275fac})}}return $e})();var X=s(5798);let re=(()=>{class $e{constructor(Qe,Ve,nt){this.serverConfig=Qe,this.endpointFactory=Ve,this.distributedTracingUtilService=nt,this.commonHeaders={"Content-Type":g,Accept:g,"NV-Client-ID":Qe.clientId},this.endpointConfig={timeout:this.serverConfig.defaultTimeout,exponentialBackoffMaxDelay:this.serverConfig.exponentialBackoffMaxDelay,maxRetries:this.serverConfig.defaultRetries},this.pnsRegisterEndpointUrl=this.preparePnsRegisterEndpoint(),this.pnsUnregisterEndpointUrl=this.preparePnsUnregisterEndpoint()}generateUrl(Qe){return this.serverConfig.server+"/"+this.serverConfig.version+"/"+Qe}preparePnsRegisterEndpoint(){return this.endpointFactory.createEndpoint({headers:this.commonHeaders,config:this.endpointConfig,reportRequestData:{originalService:"PNS",serviceUseCase:R.Register,reportSuccessTelemetry:"true"}})}preparePnsUnregisterEndpoint(){return this.endpointFactory.createEndpoint({headers:this.commonHeaders,config:this.endpointConfig,reportRequestData:{originalService:"PNS",serviceUseCase:R.Unregister,reportSuccessTelemetry:"true"}})}pnsRegister(Qe,Ve,nt){return this.commonHeaders=(0,_.merge)(this.commonHeaders,Ve),this.pnsRegistrationRequest(Qe,this.commonHeaders,nt)}pnsUnregister(Qe,Ve){return this.commonHeaders=(0,_.merge)(this.commonHeaders,Ve),this.pnsUnregistrationRequest(Qe,this.commonHeaders)}getCommonHeaders(){return this.commonHeaders}pnsRegistrationRequest(Qe,Ve,nt){const Ot={body:Qe,headers:Ve},at=this.pnsRegisterEndpointUrl.post(this.generateUrl("registrations"),Ot);return this.distributedTracingUtilService.handleHttpEndpointSpan(at,Ot,a.pB.PnsRegistration,nt)}pnsUnregistrationRequest(Qe,Ve){const nt={body:Qe,headers:Ve},Ot=this.pnsUnregisterEndpointUrl.post(this.generateUrl("unregister"),nt);return this.distributedTracingUtilService.handleHttpEndpointSpan(Ot,nt,a.pB.PnsUnregister)}static{this.\u0275fac=function(Ve){return new(Ve||$e)(c.KVO(B),c.KVO(X.t),c.KVO(a.Z1))}}static{this.\u0275prov=c.jDH({token:$e,factory:$e.\u0275fac,providedIn:"root"})}}return $e})();var ve=s(72945);let Z=(()=>{class $e{constructor(Qe,Ve,nt,Ot,at,It,We,xe,lt,ft){this.datePipe=Ve,this.idmService=nt,this.systemInfoService=Ot,this.configuration=at,this.distributedTracingUtilService=It,this.pushNotificationTelemetryService=We,this.clientHeadersService=xe,this.pnsEndpointSdk=lt,this.sharedStorage=ft,this.browserProviderId=5,this.client="client_",this.uniqueClientsKey="client_unique_ids",this.dateFormat="yyyy-MM-dd HH:mm:ss +zzzz",this.logger=Qe.getLogger("PushNotificationRegistationService"),this.commonHeaders$=this.clientHeadersService.getCommonHeaders().pipe((0,S.s)(1))}registerDeviceForPns(Qe,Ve){return this.idmService.accountStatusChanged.pipe((0,S.s)(1),(0,y.p)(nt=>nt.isAuthenticated),(0,f.n)(nt=>(0,d.zV)([(0,v.of)(nt),this.idmService.getAuthToken(!1),this.commonHeaders$,this.systemInfoService.getSystemInfo([i.Lu.DeviceId])])),(0,f.n)(([nt,Ot,at,It])=>(this.commonHeaders=Object.assign({},{...at,Authorization:`GFNJWT ${Ot.token}`}),this.cachedPnsData=Object.assign({},{fcmToken:Qe,authToken:Ot.token}),this.pnsEndpointSdk.pnsRegister({registrationToken:Qe,deviceId:It.DeviceId},this.commonHeaders,Ve))),(0,O.T)(nt=>(this.logger.info("PNS registration response: ",nt),this.pushNotificationTelemetryService.sendTokenRegisteredSuccessTelemetry(r.key.PNS),!0)),(0,P.W)(nt=>(this.logger.error("Error registering device with PNS: ",nt),this.pushNotificationTelemetryService.sendPushNotificationFailureTelemetry(JSON.stringify(nt?.status??nt),r.mUs.DEVICE_REGISTRATION),Ve&&(this.distributedTracingUtilService.setSpanAttribute(Ve,a.NS.ErrorDetails,"Error registering device with PNS"),this.distributedTracingUtilService.closeSpan(Ve)),(0,v.of)(!1))))}unregisterFromPns(Qe=!0){Qe&&(this.logger.info("Unregister from PNS on user logout."),this.callUnregister())}callUnregister(Qe){const Ve=this.distributedTracingUtilService.startSpan(a.pB.PnsUnregister);this.commonHeaders=(0,_.merge)(this.commonHeaders,this.pnsEndpointSdk.getCommonHeaders()),this.cachedPnsData?.fcmToken||Qe?fetch(this.pnsEndpointSdk.generateUrl("unregister"),{method:"POST",body:JSON.stringify({previousRegistrationTokens:[this.cachedPnsData?.fcmToken??Qe]}),headers:this.commonHeaders,keepalive:!0}).then(Ot=>{this.distributedTracingUtilService.closeSpan(Ve),this.logger.info("Unregister Fetch api call response: ",Ot.status),204===Ot.status&&this.sharedStorage.removeBlock("pnsFcmToken").subscribe()}).catch(Ot=>{this.distributedTracingUtilService.setSpanAttribute(Ve,a.NS.ErrorDetails,"Error unregistering device from PNS"),this.distributedTracingUtilService.closeSpan(Ve),this.logger.error("Unregister Fetch api call failed: ",Ot)}):this.logger.error("FCM token was not found, not calling unregister api")}static{this.\u0275fac=function(Ve){return new(Ve||$e)(c.KVO(i.J6),c.KVO(m.vh),c.KVO(M.k_),c.KVO(i.zW),c.KVO(D.Vk),c.KVO(a.Z1),c.KVO(T),c.KVO(N.y1),c.KVO(re),c.KVO(ve.yQ))}}static{this.\u0275prov=c.jDH({token:$e,factory:$e.\u0275fac,providedIn:"root"})}}return $e})();var Se=s(85735),Ce=s(15652),Be=s(55833),Xe=s(73180),He=s(75707),Me=s(43615),Q=s(91384),A=s(20381),me=s(89284),ne=s(46356),G=s(65597),W=s(96542),$=s(50801),le=s(66974),Pe=s(88903),Fe=s(56785);let At=(()=>{class $e{constructor(Qe,Ve,nt,Ot,at,It,We,xe,lt,ft,ht,Xt,Ht,Je,tt,rt){this.configuration=Ve,this.idmService=nt,this.serviceWorkerService=Ot,this.experienceControl=at,this.localeService=It,this.snackbar=We,this.translateService=xe,this.projectInterfaceService=lt,this.guestModeHelperService=ft,this.distributedTracingUtilService=ht,this.pushNotificationRegistationService=Xt,this.sharedStorageService=Ht,this.appConfig=Je,this.bannerNotificationService=tt,this.offDeviceLinkService=rt,this.throttleTime=2e4,this.snackBarDuration=7e3,this.permissionRequestTracker=new Se.m(1),this.permissionToastDismissTracker=new Se.m(1),this.logger=Qe.getLogger("BrowserPushNotificationService"),this.firebaseStatusToSpanName=new Map}init(){this.pushNotificationConfiguration$=this.fetchPushNotificationConfig().pipe((0,Be.t)(1)),this.projectInterfaceService.setNotificationAllowedCallBack(this.isNotificationAllowed.bind(this)),this.registerDeviceForPushNotifications().subscribe(Qe=>{Qe?this.logger.info("Device Registration is Sucessful"):this.logger.error("Error while Registering the Device")}),this.initializePushNotifications().subscribe(Qe=>{Qe&&this.logger.info("Push Notification is Sucessfully initiated for permission = granted users")}),this.initializePushNotificationKBAUrl(),this.listenToTracingEventsFromServiceWorker(),this.unregisterFromPnsOnUserLogout(),this.checkPushNotificationAndAddBanner()}get pushNotificationKBAUrl(){return this.pushNotificationUrl}requestPermissionForPushNotification(){this.setPermissionRequested(),Notification.requestPermission().then(Qe=>{Qe===l.NQ.Granted?(this.logger.info("Browser Push Notification Permissions are Success"),this.showSuccessMessage(),this.initialize().subscribe(Ve=>{this.logger.info("Push Notification initialization is Success",Ve)})):Qe===l.NQ.Denied?(this.logger.info("Browser Push Notification Permissions are denied"),this.showSnackBarWithKBA()):this.logger.info(Qe===l.NQ.Default?"User has closed the Dialog without granting / denying the permissions":"Something unexpected happened, please check further logs")})}initialize(){return this.logger.info("initialize() is called"),this.isNotificationSupported()&&!this.registrationInProgress?(this.registrationInProgress=!0,(0,d.zV)([this.pushNotificationConfiguration$,this.idmService.accountStatusChanged]).pipe((0,Xe.c)(this.throttleTime),(0,He.ZZ)(([Qe,Ve])=>{if(Qe&&Ve.isAuthenticated){this.parentSpan=this.distributedTracingUtilService.startSpan(a.pB.PushNotificationRegistration);const nt=JSON.stringify(this.configuration?.firebase?.pns);return this.logger.info("Push Notification Settings are fetched; Sending Push Notification Settings to SW: ",nt),this.serviceWorkerService.postMessageSw({type:I.oY.PushNotification,content:nt}),this.registrationInProgress=!1,(0,v.of)(!0)}return this.logger.info("Push Notifications are not Supported for logged out users"),this.registrationInProgress=!1,(0,v.of)(!1)}))):(this.logger.info("Push Notifications are not Supported"),(0,v.of)(!1))}setPermissionToastDismissed(){this.permissionToastDismissTracker.next(!1)}setPermissionRequested(){this.permissionRequestTracker.next(!0)}willBeEnabledOnStreamStart(){return this.isNotificationAllowed().pipe((0,He.ZZ)(Qe=>Qe&&Notification.permission!==l.NQ.Granted&&Notification.permission!==l.NQ.Denied?(0,Ce.O4)(this.permissionRequestTracker.asObservable(),this.permissionToastDismissTracker.asObservable()).pipe((0,S.s)(1),(0,Me.j)(()=>{this.permissionRequestTracker.complete(),this.permissionRequestTracker=new Se.m(1),this.permissionToastDismissTracker.complete(),this.permissionToastDismissTracker=new Se.m(1)})):(0,v.of)(!1)))}checkPushNotificationAndAddBanner(){this.isNotificationAllowed().pipe((0,He.ZZ)(Qe=>(this.logger.info("Notification Banner is allowed to show: ",Qe),Qe?this.showPushNotificationBanner():(0,v.of)(!1)))).subscribe(Qe=>{this.logger.info("Notification Banner is shown: ",Qe)},Qe=>{this.logger.error("Error occured while checking for Push Notification Banner",Qe)})}showPushNotificationBanner(){return this.sharedStorageService.readBlock(l.O7).pipe((0,O.T)(Qe=>{if(this.isNotificationSupported()&&Notification.permission!==l.NQ.Granted&&(!Qe.appVersion||!Qe.isPromptDismissed||(0,me.ZZv)(Qe.appVersion,this.appConfig.build.branch)&&(0,me.yLo)(Qe.timeLastShown,7))){this.logger.info("Showing Browser Push Notification Permission Prompt"),this.logger.info("Notification.permission from Notification API ",Notification.permission);const Ve=Notification.permission===l.NQ.Denied,nt=Ve?l.Sz:l._x;return nt.onPrimaryButtonClick=Ve?this.onClickLearnMore.bind(this):this.onClickAllowNotification.bind(this),nt.onSecondaryButtonClick=this.persistPushNotificationPromptState.bind(this),this.bannerNotificationService.addNotificationToQueue(nt),!0}return this.bannerNotificationService.removeNotificationFromQueue(me.$94.BrowserPushNotification),!1}))}onClickLearnMore(){this.persistPushNotificationPromptState(),this.offDeviceLinkService.open(this.pushNotificationKBAUrl,{shortUrl:me.lph[me.r7g.GfnPcBrowserPushNotification]})}onClickAllowNotification(){this.persistPushNotificationPromptState(),this.requestPermissionForPushNotification()}persistPushNotificationPromptState(){this.sharedStorageService.writeBlock(l.O7,{appVersion:this.appConfig.build.version,isPromptDismissed:!0,timeLastShown:Date.now()}).pipe((0,S.s)(1)).subscribe(()=>this.logger.info("persist Push Notification Prompt State is success"),Qe=>this.logger.error("Error while writing to shared storage for browserPushNotification",Qe))}showSuccessMessage(){this.translateService.get("notification.notificationSuccessMessage").pipe((0,S.s)(1)).subscribe(Ve=>this.snackbar.open(Ve,"",{duration:this.snackBarDuration,horizontalPosition:"left",panelClass:["nv-hig"]}),Ve=>{this.logger.info("Error getting the toast message",Ve)})}showSnackBarWithKBA(){(0,d.zV)([this.translateService.get("common.learnMore"),this.translateService.get("notification.notificationBlockMessage")]).pipe((0,O.T)(([nt,Ot])=>{this.snackbar.open(Ot,nt,{duration:this.snackBarDuration,horizontalPosition:"left",panelClass:["nv-hig"]}).onAction().subscribe(at=>window.open(this.pushNotificationKBAUrl))})).subscribe(()=>this.logger.info("show Snack Bar With KBA is success"),nt=>this.logger.error("Error while showing snackbar wirh KBAs",nt))}initializePushNotificationKBAUrl(){const Qe=this.configuration.redirect.serverUrl,Ve=me.niw.GFN_PC_BROWSER_PUSH_NOTIFICATION;this.localeService.localeChanged.subscribe(nt=>{this.pushNotificationUrl=`${Qe}${nt}&page=${Ve}`},nt=>{this.logger.error("Some error occured while fetching locale for push Notification KBAUrl",nt)})}initializePushNotifications(){if(this.logger.info("Initialising Push Notifications on Refresh"),this.isNotificationSupported()){if(Notification.permission===l.NQ.Granted)return this.logger.info("Permission is granted"),this.initialize();Notification.permission===l.NQ.Denied?this.logger.info("Permission is denied"):Notification.permission===l.NQ.Default&&this.logger.info("Permission is set to default")}return(0,v.of)(!1)}isNotificationAllowed(){return!this.isNotificationSupported()||this.guestModeHelperService.isGuestMode?(0,v.of)(!1):this.pushNotificationConfiguration$.pipe((0,S.s)(1))}registerDeviceForPushNotifications(){return this.serviceWorkerService.swPushNotificationListener.pipe((0,He.ZZ)(Qe=>Qe?.type===I.oY.PushNotification?(this.registrationInProgress=!0,this.logger.info("message recieved from Service Worker, updating the KV Store",Qe?.content),this.pushNotificationRegistationService.registerDeviceForPns(Qe.content,this.parentSpan)):(0,v.of)(!1)),(0,He.ZZ)(Qe=>Qe?(this.logger.info("PNS registration response: ",Qe),this.registrationInProgress=!1,this.parentSpan&&(this.distributedTracingUtilService.setSpanAttribute(this.parentSpan,a.NS.Error,!1),this.distributedTracingUtilService.closeSpan(this.parentSpan)),(0,v.of)(!0)):(0,v.of)(!1)),(0,P.W)(Qe=>(this.logger.error("Error registering device with PNS: ",Qe),this.registrationInProgress=!1,(0,v.of)(!1))))}unregisterFromPnsOnUserLogout(){this.idmService.sameTabAuthStarted().pipe((0,Q.M)(Qe=>{Qe===ne.l4.LogoutStarted&&this.pushNotificationRegistationService.unregisterFromPns()})).subscribe()}listenToTracingEventsFromServiceWorker(){this.serviceWorkerService.swPushNotificationTracingListener.pipe((0,O.T)(Qe=>{if(Qe?.type===I.oY.PushNotificationTracing){this.logger.info("message recieved from Service Worker, updating open traceing flow",Qe?.content);const Ve=JSON.parse(Qe?.content);if(Ve?.start){const nt=this.distributedTracingUtilService.startSpan(Ve.spanName,this.parentSpan);this.firebaseStatusToSpanName.set(Ve.spanName,nt)}else{const nt=this.firebaseStatusToSpanName.get(Ve.spanName);nt&&(this.logger.info("Closing the Span. Span is open for ",Ve.spanName),this.distributedTracingUtilService.setSpanAttribute(nt,a.NS.Error,Ve.error),this.distributedTracingUtilService.closeSpan(nt),Ve.error&&(this.logger.info("Error is received with Close Span Event"),this.distributedTracingUtilService.setSpanAttribute(this.parentSpan,a.NS.ErrorDetails,"Unexpected Error with FCM"),this.distributedTracingUtilService.closeSpan(this.parentSpan)))}return!0}return!1}),(0,P.W)(Qe=>(this.logger.error("Some error occured while listening to Span Events from SW",Qe),this.parentSpan&&(this.distributedTracingUtilService.setSpanAttribute(this.parentSpan,a.NS.ErrorDetails,"Error while listening to Child Span Events from SW"),this.distributedTracingUtilService.closeSpan(this.parentSpan)),(0,v.of)(!1)))).subscribe(Qe=>{Qe?this.logger.info("Child Span is received from SW"):this.logger.error("Error while updating Firebase Spans from SW")})}isNotificationSupported(){return i.zk.isBrowserPlatform()&&"Notification"in window}fetchPushNotificationConfig(){return this.experienceControl.getCloudVariable(this.configuration.gxTarget.experiences.enableBrowserPushNotification,{},{useCache:!1},A.Ky.GxTargetGetCloudVariable,A.Id.GxTargetGetKBLayoutsConfig).pipe((0,O.T)(Qe=>Qe.value.enableBrowserPushNotifications),(0,P.W)(Qe=>(this.logger.error("Failed to resolve gx-target cloud variable:",Qe),(0,v.of)(!1))))}static{this.\u0275fac=function(Ve){return new(Ve||$e)(c.KVO(i.J6),c.KVO(D.Vk),c.KVO(M.k_),c.KVO(I.lS),c.KVO(A.BW),c.KVO(i.iH),c.KVO(G.UG),c.KVO(W.c$),c.KVO($.qQ),c.KVO(le.x),c.KVO(a.Z1),c.KVO(Z),c.KVO(ve.yQ),c.KVO(D.Vk),c.KVO(Pe.Hm),c.KVO(Fe.nO))}}static{this.\u0275prov=c.jDH({token:$e,factory:$e.\u0275fac,providedIn:"root"})}}return $e})();var Le=s(20924);let Et=(()=>{class $e{constructor(Qe,Ve,nt,Ot,at,It){this.translateService=Ve,this.localeService=nt,this.bridgeService=Ot,this.guestModeHelperService=at,this.audioPlayService=It,this.logger=Qe.getLogger("BrowserNotificationUiService")}show(Qe){if(!this.guestModeHelperService.isGuestMode&&i.zk.isBrowserPlatform()){this.logger.verbose("inside show method");const Ve=this.getTitleAndBodyMessage(Qe),nt={title:Ve.title,body:Ve.body,language:this.localeService.getLocale(),direction:this.localeService.isRTLLocale(this.localeService.getLocale())?"rtl":"ltr",tag:Qe.notificationId,silent:!0};this.bridgeService.executeCommand(Le.Ts.Common.Clientnotification.ShowClientNotifications,nt).subscribe(Ot=>{if(Ot===Le.Or.Common.Clientnotification.InternalErrorCodeEnum.Success){this.logger.info("Notifications are sent to Framework");const at=Qe.notificationType;(at===me.bzs.RigIsReady||at===me.bzs.CountdownTimerBegins)&&this.audioPlayService.playAudio(me.OjG.RigReadyAndStreamerIdleTimeout.type,at)}else this.logger.info("Notifications are not sent. Result is ",Ot)})}}deleteNotification(Qe){i.zk.isBrowserPlatform()&&this.bridgeService.executeCommand(Le.Ts.Common.Clientnotification.DeleteNotification,{uniqueId:Qe}).subscribe(Ve=>{Ve===Le.Or.Common.Clientnotification.InternalErrorCodeEnum.Success?this.logger.info("Notifications is deleted from Notification Center"):this.logger.info("Notifications clear request is not executed. Result is",Ve)})}clearNotificationsQueue(){i.zk.isBrowserPlatform()&&this.bridgeService.executeCommand(Le.Ts.Common.Clientnotification.ClearNotificationsQueue,{clear:!0}).subscribe(Qe=>{Qe===Le.Or.Common.Clientnotification.InternalErrorCodeEnum.Success?this.logger.info("Notification Centre is cleared"):this.logger.info("Notifications Centre clear request is not executed. Result is ",Qe)})}getTitleAndBodyMessage(Qe){const Ve=me.xLz.get(Qe.notificationType);let nt="";return nt=Qe.notificationType===me.bzs.CountdownTimerBegins?this.translateService.instant(Ve.title,{timeLeft:Qe.countdownTime}):this.translateService.instant(Ve.title),{title:nt,body:this.translateService.instant(Ve.body)}}static{this.\u0275fac=function(Ve){return new(Ve||$e)(c.KVO(i.J6),c.KVO(W.c$),c.KVO(i.iH),c.KVO(i.NZ),c.KVO(le.x),c.KVO(i.aP))}}static{this.\u0275prov=c.jDH({token:$e,factory:$e.\u0275fac,providedIn:"root"})}}return $e})()},14279:(Bt,z,s)=>{"use strict";s.d(z,{T:()=>a});var n=s(80583),l=s(85830),d=s(1646),v=s(81834),S=s(6478),y=s(83915),f=s(75707),O=s(20924),P=s(58527),_=s(99469),i=s(6687),r=s(61958);let a=(()=>{class c{constructor(M,D,I,U,V){this.ipcService=D,this.bridgeService=I,this.distributedTracingUtilService=U,this.appConfig=V,this.messageTypeObservableMap=new Map,this.routePushNotification=T=>{T&&T.messageType?this.messageTypeObservableMap[T.messageType]&&this.messageTypeObservableMap[T.messageType].forEach(N=>{this.logger.info("routing push notification for ",T.messageType),this.logger.trace(v.N_.PushNotification,"Received push notification for",d.MP[T.messageType]),N.next(T)}):this.logger.error("Invalid content received: ",T)},this.logger=M.getLogger("PushNotificationService"),this.subscribeForPushMessages()}subscribeForPushMessages(){let M;switch(this.appConfig.client.pushMessageSource){case d.jB.IPC:M=this.ipcService.get$(l.kN.PushNotification).pipe((0,y.T)(D=>[D]));break;case d.jB.NativeCallback:M=this.bridgeService.executeCommand(O.Ts.Common.Backgroundagent.OnPushMessage).pipe((0,f.ZZ)(D=>this.bridgeService.executeCommand(O.Ts.Common.Backgroundagent.PopAllMessages)),(0,y.T)(D=>D.messages.map(I=>I.content)));break;default:return void this.logger.error("Unsupported push message source. Ignoring message")}M.subscribe(D=>{D.forEach(I=>{this.handlePushMessage(I)})})}handlePushMessage(M){try{const D=JSON.parse(M).data;D||this.logger.error("Push notification data received is: ",D);const I={messageType:JSON.parse(D?.messageType)},U={};D?.requestMetaData&&JSON.parse(D.requestMetaData)?.traceContext?.forEach(N=>{U[N.key]=N.value});const V=this.distributedTracingUtilService.startSpanUsingContext(S.pB.PushMessageReceived,U);this.distributedTracingUtilService.setSpanAttributes(V,{[S.NS.PushMessageType]:I?.messageType}),this.distributedTracingUtilService.closeSpan(V),D?.regionIdType&&(I.regionIdType=JSON.parse(D.regionIdType)),D?.regionIds&&(I.regionIds=JSON.parse(D.regionIds)),D?.changeIdType&&(I.changeIdType=JSON.parse(D.changeIdType)),D?.changedIds&&(I.changedIds=JSON.parse(D.changedIds)),D?.sessionInfo&&(I.sessionInfo=JSON.parse(D.sessionInfo)),D?.patchingInfo&&(I.patchingInfo=JSON.parse(D.patchingInfo)),D?.accountLinkedInfo&&(I.accountLinkedInfo=JSON.parse(D.accountLinkedInfo)),D?.campaignInfo&&(I.campaignInfo=JSON.parse(D.campaignInfo)),D?.platformSyncInfo&&(I.platformSyncInfo=JSON.parse(D.platformSyncInfo)),this.routePushNotification(I)}catch(D){this.logger.error("Error while parsing push notification",D)}}registerPushNotification(M){this.logger.info("registerPushNotification map: ",M),this.messageTypeObservableMap[M]||(this.messageTypeObservableMap[M]=[]);const D=new n.B7;return this.messageTypeObservableMap[M].push(D),D.asObservable()}static{this.\u0275fac=function(D){return new(D||c)(P.KVO(_.J6),P.KVO(i.Uj),P.KVO(_.NZ),P.KVO(S.Z1),P.KVO(r.Vk))}}static{this.\u0275prov=P.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})()},1646:(Bt,z,s)=>{"use strict";s.d(z,{Ab:()=>r,MP:()=>f,NQ:()=>S,O7:()=>l,Sz:()=>v,Wq:()=>i,_x:()=>d,bz:()=>y,jB:()=>m,xL:()=>a});var n=s(90116);const l="browserPushNotification",d={notificationType:n.$9.BrowserPushNotification,icon:"notifications",messageStr:{key:"notification.browserPushNotificationMessage"},secondaryButtonText:"common.notNow",primaryButtonText:"notification.notifyMe"},v={...d,secondaryButtonText:"common.learnMore"};var S=function(M){return M.Granted="granted",M.Denied="denied",M.Default="default",M}(S||{}),y=function(M){return M.RigIsReady="RigIsReady",M.CountdownTimerBegins="CountdownTimerBegins",M.GracePeriodStart="GracePeriodStart",M}(y||{}),f=function(M){return M.UNKNOWN="UNKNOWN",M.SESSION_CHANGE="SESSION_CHANGE",M.APP_CHANGE="APP_CHANGE",M.PRODUCT_CHANGE="PRODUCT_CHANGE",M.SUBSCRIPTION_CHANGE="SUBSCRIPTION_CHANGE",M.ASSET_CHANGE="ASSET_CHANGE",M.GSWS_SYNC="GSWS_SYNC",M.SERVER_INFO_SYNC="SERVER_INFO_SYNC",M.CONFIGURATION_CHANGE="CONFIGURATION_CHANGE",M.LAYOUT_CHANGE="LAYOUT_CHANGE",M.SECTION_CHANGE="SECTION_CHANGE",M.LINKEDACCOUNT_CHANGE="LINKEDACCOUNT_CHANGE",M.PATCHING_EVENT="PATCHING_EVENT",M.LIBRARY_CHANGE="LIBRARY_CHANGE",M.KV_STORE_CHANGE="KV_STORE_CHANGE",M.PLATFORM_SYNC_CHANGE="PLATFORM_SYNC_CHANGE",M.CAMPAIGN_CHANGE="CAMPAIGN_CHANGE",M.FAVORITES_CHANGE="FAVORITES_CHANGE",M}(f||{}),i=function(M){return M.REGION="REGION",M.VPC="VPC",M}(i||{}),r=function(M){return M.APPID="APPID",M.CMSID="CMSID",M.PANEL="PANEL",M}(r||{});const a=new Map([[y.CountdownTimerBegins,{title:"notification.CountdownTimerBegins",body:"notification.body"}],[y.RigIsReady,{title:"notification.RigIsReady",body:"notification.body"}],[y.GracePeriodStart,{title:"notification.opportunity.queuePaused",body:"notification.opportunity.stayInQueue"}]]);var m=function(M){return M.IPC="ipc",M.NativeCallback="nativeCallback",M}(m||{})},17901:(Bt,z,s)=>{"use strict";s.d(z,{SL:()=>D});var n=s(99469),l=s(43848),d=s(35146),v=s(8619),S=s(83915),y=s(34593),f=s(53461),O=s(55833),P=s(75707),_=s(10174),i=function(U){return U.CacheName="offlineStore",U.DBKey="hitOfflineState",U}(i||{}),c=s(58527),m=s(76706);const M=U=>`(display-mode: ${U})`;let D=(()=>{class U{constructor(T,N,L,E){this.dbService=N,this.dbCacheService=L,this.breakpointObserver=E,this.logger=T.getLogger("gfn-shared/PWAService"),this.isInPWAMode$=void 0!==window.navigator.standalone?(0,l.of)(window.navigator.standalone):(0,d.yU)(E.observe(M("standalone")),E.observe(M("browser"))).pipe((0,v.p)(([g,R])=>g.matches||R.matches),(0,S.T)(([g,R])=>g.matches||this.isInPWAMode()),(0,y.Z)(this.isInPWAMode()),(0,f.F)(),(0,O.t)({bufferSize:1,refCount:!0}))}isInPWAMode(){return window.navigator.standalone||n.zk.isPWAModeOnLGTV()||n.zk.isPWAModeOnSamsungTV()||this.breakpointObserver.isMatched(M("standalone"))}get onPWAModeChange(){return this.isInPWAMode$}initialize(){this.logger.info("initialising Offline Datastore"),this.dbCacheService.getOrCreateCachedGlobalItem(i.CacheName,i.DBKey).sync_().subscribe()}checkForOfflineLaunch(){return this.dbService.getGlobalStore(i.CacheName).length().pipe((0,P.ZZ)(T=>T>0?(this.logger.info("offlineStoreValue is present in database"),this.dbService.getGlobalStore(i.CacheName).clear().pipe((0,_.u)(!0))):(this.logger.info("offlineStoreValue is not present in database"),(0,l.of)(!1))))}static{this.\u0275fac=function(N){return new(N||U)(c.KVO(n.J6),c.KVO(n.at),c.KVO(n.sc),c.KVO(m.QP))}}static{this.\u0275prov=c.jDH({token:U,factory:U.\u0275fac,providedIn:"root"})}}return U})()},36206:(Bt,z,s)=>{"use strict";s.d(z,{Gl:()=>l.Gl,Q5:()=>n.Q,lp:()=>l.lp,r7:()=>l.r7});var n=s(27561),l=s(81732)},27561:(Bt,z,s)=>{"use strict";s.d(z,{Q:()=>f});var n=s(65706),l=s(83915),d=s(81732),v=s(58527),S=s(99469),y=s(13090);let f=(()=>{class O{constructor(_,i,r){this.localeService=i,this.offDeviceLinkService=r,this.logger=_.getLogger("gfn/RedirectService")}handleUnsupportedAndroidPlatform(){this.redirectTo(d.r7.GfnPcUnsupportedDeviceAndroid,{replace:!0})}handleUnsupportedBrowser(){this.redirectTo(d.r7.GfnPcUnsupportedDevice,{replace:!0,jso:{Plt:d.Gl.Browser}})}redirectTo(_,i){this.getRedirectUrl(_,i?.jso).subscribe(r=>{this.logger.info("Redirecting to",r),i?.replace?window.location.replace(r):window.location.href=r})}redirectToExternalUrl(_,i){i?.replace?window.location.replace(_):window.location.href=_}getRedirectUrl(_,i){return this.localeService.localeChanged.pipe((0,n.s)(1)).pipe((0,l.T)(r=>{let a=`${d.r7.BaseUrl}${r}&page=${_}`;return i&&(a+=`&jso=${window.btoa(JSON.stringify(i))}`),a}))}openRedirectUrl(_,i,r){this.logger.info("Support Url clicked for: ",_,i);const a=i?{shortUrl:i}:void 0;this.getRedirectUrl(_,r).pipe((0,n.s)(1)).subscribe(c=>{this.offDeviceLinkService.open(c,a)})}static{this.\u0275fac=function(i){return new(i||O)(v.KVO(S.J6),v.KVO(S.iH),v.KVO(y.n))}}static{this.\u0275prov=v.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})()},81732:(Bt,z,s)=>{"use strict";s.d(z,{Gl:()=>n,lp:()=>d,r7:()=>l});var n=function(v){return v.PC="pc",v.Mac="mac",v.Browser="browser",v}(n||{}),l=function(v){return v.BaseUrl="https://www.nvidia.com/content/drivers/redirect.asp?language=",v.NetworkTroubleshoot="gfn_pc_net_help",v.RecommendedRoutersProductPage="gfn_pc_recommended_routers_product_page",v.GfnPcInfo="gfn_pc_info",v.GfnPcHelp="gfn_pc_help",v.TermsConditions="gfn_pc_terms_of_use",v.AccountTerms="nvidia_account_tos",v.OssLicenses="gfn_pc_oss",v.PrivacyPolicy="privacy_policy",v.PrivacyCenter="privacy_portal",v.AccountManagement="nvidia_account_management",v.SysRequirements="gfn_pc_sys_req",v.UdpBufferTips="gfn_pc_net_help_udp_socket",v.GfnPcUnSupportedRegion="gfn_pc_unsupported_region",v.GfnPcUnsupportedDevice="gfn_pc_unsupported_device",v.GfnPcUnsupportedDeviceAndroid="gfn_pc_unsupported_device_android",v.GfnPcUnsupportedBrowser="gfn_pc_unsupported_browser",v.GfnPcNetHelpFirewall="gfn_pc_net_help_firewall",v.GfnPcNetHelpWifi="gfn_pc_net_help_wifi",v.GfnPcHelpUpdate="gfn_pc_help_update",v.GfnPcHelpMissingDecoder="gfn_pc_help_missing_decoder",v.GfnServerStatus="gfn_pc_status",v.GfnPcDirectMouseInputHelp="gfn_pc_direct_mouse_input_help",v.CookiePolicy="nvidia_cookie_policy",v.GfnPcRecommendedGamepads="gfn_pc_recommended_gamepads",v.GfnAccountManagementSSO="nvidia_account_management_default",v.GfnAccountManagement="nvidia_account_management_gfn",v.GfnPcMembershipJoin="gfn_pc_membership",v.GfnPcMembershipUpgrade="gfn_pc_membership_upgrade",v.GfnPcMembershipDayPass="gfn_pc_membership_daypass",v.GfnPcCheckoutDayPass="gfn_pc_checkout_daypass",v.GfnPcRedeemActivationCode="gfn_pc_redeem_activation_code",v.GfnPcHelpKeyboardGamesUnavailable="gfn_pc_help_keyboard_games_unavailable",v.GfnPcHelpTvGamepadOnly="gfn_pc_help_tv_gamepad_only",v.GfnPcWaitList="gfn_pc_waitlist",v.GfnPcAccountNotActivated="gfn_pc_account_not_activated",v.GfnPcKeyboardTroubleshooting="gfn_pc_keyboard_troubleshooting",v.GfnPcCustomProfileLearnMore="gfn_pc_custom_profile_learn_more",v.GfnPcResolutionProfileUpscalingLearnMore="gfn_pc_resolution_upscaling_learn_more",v.GfnPcHdrUnsupportedSystemsLearnMore="gfn_pc_hdr_unsupported_systems_learn_more",v.GfnPcUnsupportedResolutionsLearnMore="gfn_pc_unsupported_resolutions_learn_more",v.GfnPcUnsupportedReflexLearnMore="gfn_pc_unsupported_reflex_learn_more",v.GfnPcHelpConnections="gfn_pc_help_connections",v.GfnPcOpportunityBlockerLearnMore="gfn_pc_ad_blocker_learn_more",v.GdnHomePage="gdn_home_page",v.GdnInvalidDeeplink="gdn_invalid_deeplink",v.GfnPcUdsLearnMore="gfn_pc_uds_learn_more",v.GfnPcAddPlaytime="gfn_pc_checkout_playtime",v.GfnPcViewPlaytime="nvidia_account_management_gfn_playsummary",v.GfnPcHowPlaytimeWorks="gfn_pc_help_playtime",v.GfnPcLimitedFeaturesGamePlay="gfn_pc_help_playtime_limited_features",v.GfnPcSafariBrowserLearnMore="gfn_pc_safari_browser_learn_more",v.GfnPcCloudGsyncLearnMore="gfn_pc_cloud_gsync_learn_more",v.GfnPcl4sLearnMore="gfn_pc_l4s_learn_more",v.GfnPcBrowserPushNotification="gfn_pc_help_browser_push_notification",v.GfnPcDownload="gfn_pc_download",v.GfnPcMembershipCatalogLearnMore="gfn_pc_membership_catalog",v.GFNPcUnsupportedOS="gfn_pc_unsupported_os",v.GfnPcSupport="gfn_pc_support",v.GfnPcHelpPaste="gfn_pc_help_paste",v.GfnPcHelpLinuxInstallation="gfn_pc_help_linux_installation",v.GfnOffDeviceLogin="gfn_off_device_login",v.GfnOffDeviceAccountLink="gfn_off_device_account_link",v}(l||{});const d={[l.PrivacyPolicy]:"nvidia.com/privacy",[l.PrivacyCenter]:"nvidia.com/privacy-center",[l.CookiePolicy]:"nvidia.com/cookies",[l.TermsConditions]:"gfn.link/terms",[l.AccountTerms]:"nvidia.com/account/terms",[l.OssLicenses]:"gfn.link/licenses",[l.GfnPcRecommendedGamepads]:"gfn.link/gamepads",[l.GfnAccountManagement]:"gfn.link/account",[l.GfnAccountManagementSSO]:"account.nvidia.com",[l.GfnPcMembershipJoin]:"gfn.link/join",[l.GfnPcMembershipUpgrade]:"gfn.link/upgrade",[l.GfnPcMembershipDayPass]:"gfn.link/daypass",[l.GfnPcCheckoutDayPass]:"gfn.link/adddays",[l.GfnPcRedeemActivationCode]:"gfn.link/redeem",[l.GfnServerStatus]:"gfn.link/status",[l.GfnPcHelpTvGamepadOnly]:"gfn.link/5258",[l.UdpBufferTips]:"gfn.link/4535",[l.GfnPcNetHelpFirewall]:"gfn.link/4566",[l.GfnPcNetHelpWifi]:"gfn.link/4567",[l.GfnPcHelpUpdate]:"gfn.link/4628",[l.GfnPcUnSupportedRegion]:"geforcenow.com",[l.GfnPcHelpMissingDecoder]:"gfn.link/4637",[l.GfnPcWaitList]:"gfn.link/waitlist",[l.RecommendedRoutersProductPage]:"gfn.link/routers",[l.NetworkTroubleshoot]:"gfn.link/4504",[l.GfnPcKeyboardTroubleshooting]:"gfn.link/5024",[l.GfnPcUnsupportedDevice]:"gfn.link/unsupported",[l.GfnPcUnsupportedBrowser]:"gfn.link/unsupported",[l.GfnPcCustomProfileLearnMore]:"gfn.link/5340",[l.GfnPcUnsupportedResolutionsLearnMore]:"gfn.link/5388",[l.GfnPcHelpConnections]:"gfn.link/5399",[l.GfnPcOpportunityBlockerLearnMore]:"gfn.link/5464",[l.GfnPcAddPlaytime]:"gfn.link/addtime",[l.GfnPcViewPlaytime]:"gfn.link/playtime",[l.GfnPcHowPlaytimeWorks]:"gfn.link/1200",[l.GfnPcLimitedFeaturesGamePlay]:"gfn.link/1201",[l.GfnPcSafariBrowserLearnMore]:"gfn.link/5495",[l.GfnPcInfo]:"geforcenow.com",[l.GfnPcl4sLearnMore]:"gfn.link/5522",[l.GfnPcBrowserPushNotification]:"gfn.link/5221",[l.GfnPcHdrUnsupportedSystemsLearnMore]:"gfn.link/5390",[l.GfnPcMembershipCatalogLearnMore]:"gfn.link/5601",[l.GfnPcSupport]:"gfn.link/support",[l.GfnPcHelpLinuxInstallation]:"gfn.link/5337",[l.GfnOffDeviceLogin]:"gfn.link/login",[l.GfnOffDeviceAccountLink]:"gfn.link/connect",[l.GfnPcDownload]:"gfn.link/download"}},43117:(Bt,z,s)=>{"use strict";s.d(z,{sD:()=>a,F4:()=>ve});var n=s(14354),l=s(99469),d=s(65706),v=s(83915),S=s(91384),y=s(14714),f=s(8619),O=s(14749),P=s(75707),_=s(10174),i=s(80583),r=s(95318),a=function(ue){return ue.ServerInfo="ServerInfo",ue.Apps="Apps",ue.Layout="Layout",ue.Subscription="Subscription",ue.ALS="ALS",ue.PanelLibrary="Panel_Library",ue.PanelMain="Panel_Main",ue.PanelMarquee="Panel_Marquee",ue.PanelFavorites="Panel_Favorites",ue.UserDatastore="User_Datastore",ue.CampaignsData="CampaignsData",ue.FilterGroupDefinitions="Filter_Group_Definitions",ue.StaticAppData="Static_App_Data",ue.SessionChange="SessionChange",ue}(a||{});const c={[r.HP.Main]:a.PanelMain,[r.HP.Marquee]:a.PanelMarquee,[r.HP.Library]:a.PanelLibrary,[r.HP.Favorites]:a.PanelFavorites};var m=function(ue){return ue.OnFocus="onFocus",ue.OnScreenChange="onScreenChange",ue.OnPushNotification="onPushNotification",ue.OnReset="OnReset",ue}(m||{}),M=function(ue){return ue.ServerInfo="ServerInfo",ue.Subscription="Subscription",ue.Apps="Apps",ue.Layout="Layout",ue.SkuData="SkuData",ue.Asset="Asset",ue.Library="Library",ue.Panel="Panel",ue.PatchingInfo="PatchingInfo",ue.LinkedAccount="LinkedAccount",ue.CampaignData="CampaignData",ue.SyncChange="SyncChange",ue.Favorites="Favorites",ue.StaticAppData="StaticAppData",ue.SessionChange="SessionChange",ue}(M||{});const D={};Object.keys(M).forEach(ue=>{D[ue]=new i.B7});const I=[{key:M.ServerInfo,contentExpiryKey:[a.ServerInfo],shouldCheckOnMallorSettings:!0},{key:M.Subscription,contentExpiryKey:[a.Subscription],shouldCheckOnMallorSettings:!0},{key:M.LinkedAccount,contentExpiryKey:[a.UserDatastore],shouldCheckOnMallorSettings:!0},{key:M.StaticAppData,contentExpiryKey:[a.StaticAppData],shouldCheckOnMallorSettings:!0},{key:M.CampaignData,contentExpiryKey:[a.CampaignsData],shouldCheckOnMall:!0,dependants:[M.Layout]},{key:M.Apps,contentExpiryKey:[a.Apps],shouldCheckOnMall:!0},{key:M.Layout,contentExpiryKey:[a.Layout],shouldCheckOnMall:!0,dependants:[M.Panel,M.Library,M.Favorites]},{key:M.Panel,contentExpiryKey:[a.PanelMain,a.PanelMarquee],shouldCheckOnMall:!0},{key:M.Library,contentExpiryKey:[a.PanelLibrary],shouldCheckOnMall:!0},{key:M.Favorites,contentExpiryKey:[a.PanelFavorites],shouldCheckOnMall:!0},{key:M.SessionChange,contentExpiryKey:[a.SessionChange],shouldCheckOnMall:!0}];var U=s(85735),V=s(31315),T=s(43848),N=s(59859),L=s(15652),E=s(3496),g=s(1646),R=s(23953),B=s(20381),X=s(89284),H=s(81834),J=s(26875),re=s(58527),ie=s(14279);let ve=(()=>{class ue{constructor(Z,Se,Ce,Be,Xe,He,Me,Q,A){this.windowService=Se,this.router=Ce,this.pushNotificationService=Be,this.experienceControlService=Xe,this.routerService=He,this.idmService=Me,this.appConfig=Q,this.injector=A,this.contentExpiryInfo={},this.gxtPunctualUIConfigFetched=new U.m(1),this.scheduledRequests=[],this.notificationTimerRaceMap=new Map,this.refreshSubjectMap=D,this.serverInfoRefresh$=this.refreshSubjectMap[M.ServerInfo].asObservable(),this.subscriptionRefresh$=this.refreshSubjectMap[M.Subscription].asObservable(),this.appsRefresh$=this.refreshSubjectMap[M.Apps].asObservable(),this.layoutRefresh$=this.refreshSubjectMap[M.Layout].asObservable(),this.skuDataRefresh$=this.refreshSubjectMap[M.SkuData].asObservable(),this.assetRefresh$=this.refreshSubjectMap[M.Asset].asObservable(),this.libraryRefresh$=this.refreshSubjectMap[M.Library].asObservable(),this.panelRefresh$=this.refreshSubjectMap[M.Panel].asObservable(),this.patchingInfoRefresh$=this.refreshSubjectMap[M.PatchingInfo].asObservable(),this.linkedAccountRefresh$=this.refreshSubjectMap[M.LinkedAccount].asObservable(),this.campaignDataRefresh$=this.refreshSubjectMap[M.CampaignData].asObservable(),this.syncChangeRefresh$=this.refreshSubjectMap[M.SyncChange].asObservable(),this.favoritesRefresh$=this.refreshSubjectMap[M.Favorites].asObservable(),this.staticAppDataRefresh$=this.refreshSubjectMap[M.StaticAppData].asObservable(),this.sessionChange$=this.refreshSubjectMap[M.SessionChange].asObservable(),this.logger=Z.getLogger("RefreshUiService"),this.pushNotificationHandlerMap=new Map([[g.MP.APP_CHANGE,{info:[{refreshTrigger:this.refreshSubjectMap[M.Apps],contentExpiryFlagToCheck:a.Apps}]}],[g.MP.SUBSCRIPTION_CHANGE,{info:[{refreshTrigger:this.refreshSubjectMap[M.Subscription],contentExpiryFlagToCheck:a.Subscription}],getTimeout:()=>60*Math.random()*1e3}],[g.MP.SERVER_INFO_SYNC,{info:[{refreshTrigger:this.refreshSubjectMap[M.ServerInfo],contentExpiryFlagToCheck:a.ServerInfo}]}],[g.MP.LAYOUT_CHANGE,{info:[{refreshTrigger:this.refreshSubjectMap[M.Panel]}],aggregationOverrides:{considerChangedIds:!0},shouldHandle:this.shouldHandleLayoutChangeNotification.bind(this)}],[g.MP.PRODUCT_CHANGE,{info:[{refreshTrigger:this.refreshSubjectMap[M.Subscription],contentExpiryFlagToCheck:a.Subscription}]}],[g.MP.ASSET_CHANGE,{info:[{refreshTrigger:this.refreshSubjectMap[M.Asset]}],aggregationOverrides:{considerChangedIds:!0},shouldHandle:this.shouldHandleAssetChangeNotification.bind(this)}],[g.MP.PATCHING_EVENT,{info:[{refreshTrigger:this.refreshSubjectMap[M.PatchingInfo]}],aggregationOverrides:{bypassAggregation:!0},shouldHandle:this.shouldHandlePatchingNotification.bind(this),getTimeout:()=>60*Math.random()*1e3}],[g.MP.LIBRARY_CHANGE,{info:[{refreshTrigger:this.refreshSubjectMap[M.Library],contentExpiryFlagToCheck:a.PanelLibrary}],getTimeout:()=>0}],[g.MP.LINKEDACCOUNT_CHANGE,{info:[{refreshTrigger:this.refreshSubjectMap[M.LinkedAccount],contentExpiryFlagToCheck:a.UserDatastore}],getTimeout:()=>0}],[g.MP.CAMPAIGN_CHANGE,{info:[{refreshTrigger:this.refreshSubjectMap[M.CampaignData],contentExpiryFlagToCheck:a.CampaignsData}],aggregationOverrides:{considerPropertyPath:"campaignInfo.eventType"}}],[g.MP.PLATFORM_SYNC_CHANGE,{info:[{refreshTrigger:this.refreshSubjectMap[M.SyncChange],contentExpiryFlagToCheck:a.UserDatastore}],getTimeout:()=>0}],[g.MP.FAVORITES_CHANGE,{info:[{refreshTrigger:this.refreshSubjectMap[M.Favorites],contentExpiryFlagToCheck:a.PanelFavorites}],getTimeout:()=>0}],[g.MP.SESSION_CHANGE,{info:[{refreshTrigger:this.refreshSubjectMap[M.SessionChange],contentExpiryFlagToCheck:a.SessionChange}],aggregationOverrides:{bypassAggregation:!0},getTimeout:()=>0}]])}get getPunctualUIConfig$(){return this.gxtPunctualUIConfigFetched.asObservable()}init(){this.fetchPunctualUIConfigCloudVariable(),this.refreshDataOnScreenChange(),this.refreshDataOnFocusGain(),this.handlePushNotifications()}getContentExpiryInfo(Z){return this.contentExpiryInfo[Z]}setContentExpiryInfo(Z){(0,V.zV)([this.getPunctualUIConfig$,this.idmService.accountStatusChanged]).pipe((0,d.s)(1),(0,v.T)(([Se,Ce])=>Z===a.SessionChange?Se.refreshIntervalSessionChange:Ce.isAuthenticated?Se.refreshIntervalLoggedInUser:Se.refreshIntervalLoggedOutUser),(0,S.M)(Se=>{this.contentExpiryInfo[Z]=Date.now()+60*Se*1e3})).subscribe(()=>{},Se=>this.logger.error("Error setting content expiry info",Se))}resetContentExpiryInfo(Z){Z&&(this.contentExpiryInfo[Z]=0)}resetContentExpiryAndRefreshOnFocus(Z){if(document.hasFocus()){let Se=!1;this.pushNotificationHandlerMap.forEach(Ce=>{Ce?.info?.forEach(Be=>{Be?.contentExpiryFlagToCheck===Z&&!Se&&(Be?.refreshTrigger.next({source:m.OnReset}),Se=!0)})})}else this.resetContentExpiryInfo(Z)}isPushNotificationEnabled$(){let Z=(0,T.of)(!1);if(this.appConfig?.featureEnablement?.supportsPushNotifications){if(!l.zk.isBrowserPlatform())return(0,T.of)(!0);{const Se=this.injector.get(X.hLj);Se&&(Z=Se.isNotificationAllowed())}}return Z.pipe((0,d.s)(1),(0,v.T)(Se=>{const Ce=Se&&Notification?.permission===g.NQ.Granted;return this.logger.info("notificationEnabled: ",Ce),Ce}))}fetchPunctualUIConfigCloudVariable(){this.experienceControlService.getCloudVariable(this.appConfig.gxTarget.experiences.punctualUIConfig,{},{useCache:!0,useNetworkTimeoutForCacheFallback:!0},B.Ky.GxTargetGetCloudVariable,B.Id.GxTargetGetPunctualUIConfig).pipe((0,d.s)(1),(0,S.M)(Z=>{const Se={...this.appConfig.defaultPunctualUIConfig,...Z?.value};this.gxtPunctualUIConfigFetched.next(Se)}),(0,y.W)(Z=>(this.gxtPunctualUIConfigFetched.next(this.appConfig.defaultPunctualUIConfig),(0,N.$)(Z)))).subscribe(()=>this.logger.info("Successfully fetched punctualUIConfig cv"),Z=>this.logger.info("Error while fetching punctualUIConfig cv",Z))}triggerRefresh(Z,Se,Ce){Se.next({source:Z,metadata:Ce})}isContentExpired(Z){return 0===this.contentExpiryInfo[Z]||Date.now()>this.contentExpiryInfo[Z]}triggerExpiredDataRefresh(Z,Se){const Ce=Se??this.router.url;this.logger.info("triggerExpiredDataRefresh if needed on ",Z);const Be=new Set;I.forEach(Xe=>{if(!Be.has(Xe.key)&&Xe.contentExpiryKey.some(Me=>this.isContentExpired(Me))&&(Xe.shouldCheckOnMallorSettings&&this.routerService.isMallOrSettingsUrl(Ce)||Xe.shouldCheckOnMall&&this.routerService.isMallUrl(Ce))){this.logger.info(`Refreshed triggered via source ${Z} for key ${Xe.key}`),this.triggerRefresh(Z,this.refreshSubjectMap[Xe.key]),Be.add(Xe.key);const Me=Xe.dependants;for(;Me?.length;){const Q=Me.shift();let A=I.find(me=>me.key===Q)?.dependants??[];A=A.filter(me=>!Be.has(me)),Me.push(...A),Be.add(Q)}}})}refreshDataOnFocusGain(){return this.windowService.getFocusEvent().subscribe(()=>{this.triggerExpiredDataRefresh(m.OnFocus)})}refreshDataOnScreenChange(){let Z;return this.router.events.pipe((0,f.p)(Se=>Se instanceof n.ld),(0,O.J)(),(0,v.T)(Se=>(Z=Se[1]&&Se[1].urlAfterRedirects,!!this.routerService.isMallOrSettingsUrl(Z))),(0,y.W)(Se=>(this.logger.error("Error in refreshDataOnScreenChange",Se),(0,T.of)(!1)))).subscribe(Se=>{Se&&this.triggerExpiredDataRefresh(m.OnScreenChange,Z)})}refreshCheckForRegionIds(Z){const Se=this.injector.get(R.G);return Z?.regionIdType&&Z?.regionIdType===g.Wq.REGION?Se?.detectedLocalZone$.pipe((0,d.s)(1),(0,P.ZZ)(Ce=>Ce?(0,T.of)(Ce):(this.logger.info("Detected local zone is empty"),Se?.getCachedZone())),(0,v.T)(Ce=>{const Be=Ce?.address?.split(".",1);if(Be?.length>0){const Xe=Be[0].toLowerCase();return this.logger.info("Local-Region Prefix",Xe),Z?.regionIds?.some(He=>He.toLowerCase()===Xe)}return!1}),(0,y.W)(Ce=>(this.logger.error("Error in getting Local-Region",Ce),(0,T.of)(!1)))):Se?.vpcId$.pipe((0,d.s)(1),(0,v.T)(Ce=>(Ce=Ce.toLowerCase(),this.logger.info("current VpcID",Ce),Z?.regionIds.some(Be=>Be.toLowerCase()===Ce))),(0,y.W)(Ce=>(this.logger.error("Error in getting current VPC ID",Ce),(0,T.of)(!1))))}canIgnoreNotification(Z,Se){if(Se?.bypassAggregation)return!1;const Ce=this.scheduledRequests.filter(He=>He.messageType===Z.messageType);if(!Ce.length)return!1;if(Se?.considerPropertyPath){if(!Ce.filter(Me=>(0,J.get)(Me,Se.considerPropertyPath)===(0,J.get)(Z,Se.considerPropertyPath)).length)return!1;this.logger.info("Request of same message type with same property value exists")}if(!Se?.considerChangedIds)return this.logger.info("Request of same message type exists, considerChangedIds = false. Ignoring notification"),!0;const Be=Ce.filter(He=>He.changeIdType===Z.changeIdType);if(!Be.length)return!1;const Xe=Be[0];return Z.changedIds?.forEach(He=>{Xe.changeIds.includes(He)||Xe.changeIds.push(He)}),this.logger.info("Request of same message type exists, changeIds updated. Ignoring notification"),!0}defaultShouldHandlePushNotification(Z,Se,Ce){return this.logger.info("pushNotification data handling for message type: "+g.MP[Z.messageType]),this.logger.info("Is window active: "+document.hasFocus()),this.logger.info("current screen url"+this.router.url),this.canIgnoreNotification(Z,Ce)?(0,T.of)(!1):document.hasFocus()&&this.routerService.isMallOrSettingsUrl(this.router.url)?Z?.regionIds?.length>0?this.refreshCheckForRegionIds(Z):(0,T.of)(!0):(Se.forEach(Be=>{this.resetContentExpiryInfo(Be?.contentExpiryFlagToCheck)}),(0,T.of)(!1))}handlePushNotifications(){this.pushNotificationHandlerMap.forEach((Z,Se)=>{this.pushNotificationService.registerPushNotification(Se).pipe((0,P.ZZ)(Ce=>(0,V.zV)(Z?.shouldHandle?[Z.shouldHandle(Ce,Z?.info,Z?.aggregationOverrides),(0,T.of)(Ce)]:[this.defaultShouldHandlePushNotification(Ce,Z?.info,Z?.aggregationOverrides),(0,T.of)(Ce)]))).subscribe(([Ce,Be])=>{if(Ce){let Xe;if(Z?.getTimeout)Xe=Z.getTimeout();else{const Q=this.appConfig.punctualUI.notificationProcessingDelay??3e5;Xe=Math.random()*Q}const He=(0,H.bz)(),Me={requestId:He,messageType:Be.messageType,changeIds:Be.changedIds??[],changeIdType:Be.changeIdType,considerChangedIds:Z.aggregationOverrides?.considerChangedIds};Z.aggregationOverrides?.considerPropertyPath&&(0,J.set)(Me,Z.aggregationOverrides.considerPropertyPath,(0,J.get)(Be,Z.aggregationOverrides.considerPropertyPath)),this.scheduledRequests.push(Me),setTimeout(()=>{const Q=this.scheduledRequests.findIndex(me=>me.requestId===He),A=this.scheduledRequests[Q].changeIds;this.scheduledRequests.splice(Q,1),Be.changedIds=A,this.logger.info("Handling Push Messgae for ",g.MP[Se]),Z?.handle?Z?.handle(Be):Z?.info.forEach(me=>{me?.refreshTrigger.next({source:m.OnPushNotification,metadata:Be})})},Xe)}})})}shouldHandleAssetChangeNotification(Z,Se,Ce){return this.defaultShouldHandlePushNotification(Z,Se,Ce).pipe((0,S.M)(Be=>{Be||this.resetContentExpiryInfo(a.Apps)}))}shouldHandleLayoutChangeNotification(Z,Se,Ce){return this.defaultShouldHandlePushNotification(Z,Se,Ce).pipe((0,S.M)(Be=>{Be||(Z?.changeIdType===g.Ab.PANEL?Z?.changedIds?.forEach(Xe=>{this.resetContentExpiryInfo(c[Xe])}):this.resetContentExpiryInfo(a.Layout))}))}shouldHandlePatchingNotification(Z){return Z?.regionIds?.length>0?this.refreshCheckForRegionIds(Z):(0,T.of)(!0)}getNotificationObservable(Z,Se={}){switch(Z){case g.MP.LIBRARY_CHANGE:return this.libraryRefresh$;case g.MP.FAVORITES_CHANGE:return this.favoritesRefresh$;case g.MP.PLATFORM_SYNC_CHANGE:const Ce=Se?.appStore;return this.syncChangeRefresh$.pipe((0,f.p)(Be=>Be.metadata?.platformSyncInfo?.platformCode===Ce));default:return null}}startNotificationTimerRace(Z,Se,Ce={}){const Be=new U.m(1),Xe=this.getNotificationObservable(Z,Ce);if(!Xe)return void this.logger.error(`No notification observable configured for ${Z}. Will not initiate race`);(0,L.O4)(Xe.pipe((0,d.s)(1),(0,_.u)(!0)),(0,E.O)(Se).pipe((0,_.u)(!1))).subscribe(Me=>{Be.next(Me)});const He=Ce?.key??Z;this.notificationTimerRaceMap.get(He)?.complete(),this.notificationTimerRaceMap.set(He,Be)}getNotificationTimerRaceResult(Z,Se={}){const Ce=Se?.key??Z;return this.notificationTimerRaceMap.has(Ce)||(0,N.$)(`Error: waiting on notification vs timer race for ${Ce} result without starting it`),this.notificationTimerRaceMap.get(Ce).asObservable()}static{this.\u0275fac=function(Se){return new(Se||ue)(re.KVO(l.J6),re.KVO(l.s7),re.KVO(n.Ix),re.KVO(ie.T),re.KVO(B.BW),re.KVO(X.HMi),re.KVO(X.k_2),re.KVO(X.Vk6),re.KVO(re.zZn))}}static{this.\u0275prov=re.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"})}}return ue})()},45903:(Bt,z,s)=>{"use strict";s.d(z,{a:()=>n.a});var n=s(86703)},86703:(Bt,z,s)=>{"use strict";s.d(z,{a:()=>I});var n=s(75707),l=s(14714),d=s(91384),v=s(83915),S=s(85735),y=s(43848),f=s(36466),O=s(26875),_=s(43187),i=s(58527),r=s(99469),a=s(51542),c=s(11961),m=s(72945),M=s(14709);const D="remoteOverrides";let I=(()=>{class U{constructor(T,N,L,E,g,R){this.networkConfig=N,this.zoneStorage=L,this.sharedStorageService=E,this.appConfig=g,this.bridgeService=R,this.remoteConfigFetchedSubject=new S.m(1),this.zonePrefixForCachedRCTelemetry="",this.vpcIdForForCachedRCTelemetry="",this.projectRevisionForCachedRCTelemetry="",this.currentRemoteConfigRevision="",this.logger=T.getLogger("shared/remote-config.service"),this.lastCachedZone$=this.networkConfig.getCurrentCachedZone().pipe((0,n.ZZ)(B=>(0,O.isNil)(B)||(0,O.isEmpty)(B)?this.zoneStorage.getDefaultZone():(this.logger.info("got cached zone",B),(0,y.of)(B)))),this.lastSavedZone$=this.networkConfig.getNetworkOverride().pipe((0,n.ZZ)(B=>(0,O.isNil)(B)||(0,O.isEmpty)(B)?(this.logger.info("get cached zone"),this.lastCachedZone$):(this.logger.info("got override zone",B),(0,y.of)(B))),(0,l.W)(B=>(this.logger.error("failed to fetch zone",B),(0,y.of)(null))))}get remoteConfigFetched$(){return this.remoteConfigFetchedSubject.asObservable()}getLastSavedZone(){return this.lastSavedZone$}configureRemoteOverrides(T){T?.isFetchedFromGXT?this.appConfig.setRemoteOverridesFromGXT(T.data,T.metaData?.rcParamNameToLocalConfigKeyPathMap):this.logger.info("configureRemoteOverrides are not from GXT",T)}constructOverrides(T,N,L,E,g){return{metaData:{lastFetchedFrom:T,lastFetchedAt:Date.now(),regionName:L,zoneName:E,rcParamNameToLocalConfigKeyPathMap:g},data:N}}saveRemoteOverrides(T){this.logger.info("save remote overides",T);const N={overrideData:{data:T.data}};this.sharedStorageService.writeBlock(D,T).pipe((0,n.ZZ)(()=>(this.logger.info("notify geronimo"),this.bridgeService.executeCommand(_.T.Gfn.Streaming.UpdateRemoteConfig,N)))).subscribe(()=>f.l,L=>this.logger.error("failed to save remoteOverrides",L))}loadPreviousOverrides(){return this.sharedStorageService.readBlock(D).pipe((0,l.W)(T=>(this.logger.info("failed to fetch overrides",T),(0,y.of)({}))))}isValidObject(T,N){return!(0,O.isNil)(T)&&!(0,O.isEmpty)(T)&&!(0,O.isEmpty)(T[N])}isValidString(T){return!(0,O.isNil)(T)&&!(0,O.isEmpty)(T)}getZonePrefix(T){let N="";if(this.isValidObject(T,"address")){const L=T.address.split(".",1);L.length>0&&(N=L[0])}return N}getRemoteConfigOnLaunch(){return this.loadPreviousOverrides().pipe((0,d.M)(T=>{this.zonePrefixForCachedRCTelemetry=T?.metaData?.regionName,this.vpcIdForForCachedRCTelemetry=T?.metaData?.zoneName,T?.isFetchedFromGXT?(this.appConfig.setRemoteOverridesFromGXT(T.data,T?.metaData?.rcParamNameToLocalConfigKeyPathMap),this.projectRevisionForCachedRCTelemetry=T?.data?.debugInfo?.revision):this.logger.info("Saved overrided are not from GXT",T)}))}getCurrentZonePrefix(){return this.logger.info("getCurrentZone"),this.lastSavedZone$.pipe((0,v.T)(T=>{const N=this.getZonePrefix(T);return this.isValidString(N)?N:(this.logger.info("invalid zone",T),null)}))}propagatePreviousOverides(){this.loadPreviousOverrides().subscribe(T=>{this.remoteConfigFetchedSubject.next({overrides:T,config:this.appConfig.get()})})}updateRemoteConfigFromGXT(T,N,L,E){const R=this.constructOverrides("",T,N,L,E);R.isFetchedFromGXT=!0,this.currentRemoteConfigRevision=R?.data?.debugInfo?.revision,this.saveRemoteOverrides(R),this.configureRemoteOverrides(R),this.logger.info("fire config fetched from GXT notification"),this.remoteConfigFetchedSubject.next({overrides:R,config:this.appConfig.get()})}static{this.\u0275fac=function(N){return new(N||U)(i.KVO(r.J6),i.KVO(a.u),i.KVO(c.p),i.KVO(m.yQ),i.KVO(M.oO),i.KVO(r.NZ))}}static{this.\u0275prov=i.jDH({token:U,factory:U.\u0275fac,providedIn:"root"})}}return U})()},78893:(Bt,z,s)=>{"use strict";s.d(z,{td:()=>P,V6:()=>S,kE:()=>y,HM:()=>se,u6:()=>H,f:()=>v,BS:()=>m,ED:()=>D,I2:()=>f,tE:()=>O,y1:()=>a,K:()=>M});var n=s(87687),l=s(50778),d=s(82187),v=function(Z){return Z.Base="/",Z.Home="/layout/games",Z.Gallery="/layout/gallery",Z.Settings="/layout/settings",Z.SettingsAccount="/layout/settings/account",Z.SettingsConnections="/layout/settings/connections",Z.SettingsGameplay="/layout/settings/gameplay",Z.SettingsSystem="/layout/settings/system",Z.SettingsAbout="/layout/settings/about",Z.Surveys="/layout/surveys",Z.GamesGrid="/layout/games/gameSectionGrid",Z.Deeplink="/deeplink",Z.PwaWall="/install",Z.DefaultStreamerExitUrl="/layout/games",Z.LoginWall="/loginwall",Z}(v||{}),S=function(Z){return Z.Home="layout/games",Z.BrowserBookmark="",Z.DefaultRedirect="layout/games",Z.StreamerRoot="streamer",Z.PwaWall="install",Z}(S||{}),y=function(Z){return Z.CmsId="cmsId",Z.LaunchSource="launchSource",Z.ShortName="shortName",Z.AppLaunchMode="appLaunchMode",Z.SdkClient="sdkClient",Z.ParentGameId="parentGameId",Z.AccountLinked="accountLinked",Z.CascadePreviewToken="cascadePreviewToken",Z.Locale="locale",Z.PreviewAtTime="previewAtTime",Z}(y||{});function f(Z){const Se=window.location.href;return O(Z)||-1!==Se.indexOf("launchSource=External")||-1!==Se.indexOf("action=play-game")}function O(Z){return Z.startsWith(`/${S.StreamerRoot}`)}var P=function(Z){return Z.Mall="GeForceNOW",Z.Streamer="GeForceNOWStreamer",Z}(P||{});function a(Z){const Se=Z.indexOf("?");return function c(Z){let He,Se=0,Ce="",Be=n.vhU.Unknown,Xe="",Me=l.NG.Default,Q=!1;if(Z.has(y.ParentGameId)&&(Ce=Z.get(y.ParentGameId)),Z.has(y.CmsId)&&(Se=+Z.get(y.CmsId)),Z.has(y.AppLaunchMode)){const A=Z.get(y.AppLaunchMode);switch(A){case l.NG.GamepadFriendly:case l.NG.TouchFriendly:Me=A;break;default:Me=l.NG.Default}}if(Z.has(y.LaunchSource)){const A=Z.get(y.LaunchSource);switch(A){case n.vhU.GeForceNOW:case n.vhU.External:case n.vhU.Deeplink:Be=A;break;default:Be=n.vhU.Unknown}}return Z.has(y.ShortName)&&(Xe=Z.get(y.ShortName)),Z.has(y.SdkClient)&&(He=Z.get(y.SdkClient)),Z.has(y.AccountLinked)&&(Q="true"===Z.get(y.AccountLinked)),{parentGameId:Ce,cmsId:Se,appLaunchMode:Me,launchSource:Be,shortName:Xe,sdkClient:He,accountLinked:Q}}(new URLSearchParams(Z.slice(Se)))}function m(Z){const Se=window?.geForceNowStartLocationHref;if(Se?.indexOf("?")>-1){const Ce=Se.slice(Se.indexOf("?"));return new URLSearchParams(Ce).get(Z)||null}return null}function M(Z,Se,Ce){const Be=new RegExp("([?&])"+Se+"=.*?(&|$)","i"),Xe=-1!==Z.indexOf("?")?"&":"?";return Z.match(Be)?Z.replace(Be,"$1"+Se+"="+Ce+"$2"):Z+Xe+Se+"="+Ce}function D(){return null!==m(d.aj.Nonce)}const I=[v.Home,v.GamesGrid],U=[v.Settings];var V=s(14354),T=s(8619),N=s(72147),L=s(83915),E=s(65706),g=s(34593),R=s(53461),B=function(Z){return Z.enableInitFocusOnNavigate="enableInitFocusOnNavigate",Z.initFocusOnGivenFragment="initFocusOnGivenFragment",Z}(B||{});const H={AccountInfo:"settings_account_info",UserMembership:"settings_user_membership",PlaytimeRemaining:"settings_playtime_remaining",AccountLinkingHeader:"settings_integrations_header",Integrations:"settings_integrations",DiscordIntegration:"settings_discord_integration",ServerLocation:"settings_server_location",StreamingProfile:"settings_streaming_profile",UpscaleMode:"settings_upscale_mode",DetailEnhancement:"settings_detail_enhancement",InGameGraphics:"settings_in_game_graphics",GameLanguage:"settings_preferred_game_language",KeyboardLayout:"settings_keyboard_layout",ClipboardPaste:"settings_clipboard_paste",MouseInput:"settings_mouse_input",NetworkIndicator:"settings_network_indicator",ReleaseHighlights:"settings_release_highlights"};var re=s(58527),ie=s(99469),ve=s(61958),ue=s(73718);let se=(()=>{class Z{constructor(Ce,Be,Xe,He){this.appConfig=Be,this.router=Xe,this.gameShareUrlService=He,this.defaultNavigationBehaviorOptions={},this.logger=Ce.getLogger("gfn/RouterService"),this.defaultNavigationBehaviorOptions.skipLocationChange=!!this.appConfig.client?.skipLocationChange,this.logger.info("Using default navigation options:",this.defaultNavigationBehaviorOptions),this.initNavStartSubscription()}initNavStartSubscription(){this.router.events.pipe((0,T.p)(Ce=>Ce instanceof V.Z)).subscribe(Ce=>{this.currentNavigationStartURL=Ce.url})}get onExitingStreamer(){return this.router.events.pipe((0,T.p)(Ce=>Ce instanceof V.Z&&O(this.router.url)&&Ce.url!==v.Base&&!O(Ce.url)),(0,N.n)(Ce=>this.router.events.pipe((0,T.p)(Be=>Be instanceof V.wF||Be instanceof V.L6||Be instanceof V.j5),(0,L.T)(Be=>Be instanceof V.wF),(0,E.s)(1))))}isRouteActive(Ce){return this.router.url.startsWith(Ce)}getRouteActivatedState(Ce){return this.router.events.pipe((0,T.p)(Be=>Be instanceof V.wF),(0,L.T)(Be=>this.isRouteActive(Ce)),(0,g.Z)(this.isRouteActive(Ce)),(0,R.F)())}navigateByUrl(Ce,Be){return this.router.navigateByUrl(Ce,{...this.defaultNavigationBehaviorOptions,...Be})}navigate(Ce,Be){return Be?.fragment&&(Be.state={[B.enableInitFocusOnNavigate]:!0,[B.initFocusOnGivenFragment]:!0,...Be.state}),this.router.navigate(Ce,{...this.defaultNavigationBehaviorOptions,...Be})}getStreamerExitUrl(){return this.exitUrl?this.exitUrl:v.DefaultStreamerExitUrl}setStreamerExitUrl(Ce){this.exitUrl=Ce||v.DefaultStreamerExitUrl}resetStreamerExitUrl(){this.exitUrl=v.DefaultStreamerExitUrl}getNavigationStartUrl(){return this.currentNavigationStartURL}getCurrentUrl(){let Ce;return Ce=this.gameShareUrlService.getIsAddressbarUrlUpdated()?this.gameShareUrlService.getDeeplinkShareUrl():document.baseURI+this.currentNavigationStartURL,this.logger.info("return URL is ",Ce,this.gameShareUrlService.getIsAddressbarUrlUpdated()),Ce}isMallUrl(Ce){return I.some(Xe=>Ce.startsWith(Xe))}isMallOrSettingsUrl(Ce){const Be=this.isMallUrl(Ce),Xe=U.some(He=>Ce.startsWith(He));return Be||Xe}isLayoutUrl(Ce){return Ce.startsWith("/layout")}getRouterNavigation(){return this.router.getCurrentNavigation()??this.router.lastSuccessfulNavigation}getFragment(){return this.getRouterNavigation().extras?.fragment}shouldInitiateFocusAfterRendered(){const Ce=!!this.appConfig?.featureEnablement?.tvMode;return this.getRoutingStateValueByKey(B.enableInitFocusOnNavigate)??Ce}getRoutingStateValueByKey(Ce){return this.getRouterNavigation().extras?.state?.[Ce]}static{this.\u0275fac=function(Be){return new(Be||Z)(re.KVO(ie.J6),re.KVO(ve.Vk),re.KVO(V.Ix),re.KVO(ue.u))}}static{this.\u0275prov=re.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"})}}return Z})()},18320:(Bt,z,s)=>{"use strict";s.d(z,{HV:()=>v,RQ:()=>l});const l=5,v="Unknown"},21341:(Bt,z,s)=>{"use strict";s.d(z,{RQ:()=>S.RQ,uU:()=>l.u,bo:()=>n.b});var n=s(47261),l=s(51542);s(26875);var S=s(18320)},51542:(Bt,z,s)=>{"use strict";s.d(z,{u:()=>T});var n=s(85735),l=s(43848),d=s(35146),v=s(65706),S=s(99047),y=s(83915),f=s(75707),O=s(53461),P=s(91384),_=s(14714),i=s(99469),r=s(26875),c=s(18320),m=s(58527),M=s(72945),D=s(7703);const I="networkConfig",V="zones";let T=(()=>{class N{constructor(E,g,R,B,X){this.systemInfo=g,this.sharedStorage=R,this.deeplinkHelperService=B,this.networkStatusService=X,this.currentFingerprint="",this.networkSessionIdUpdated$=new n.m(1),this.logger=E.getLogger("gfn/networkConfiguration"),this.isBrowserPlatform=i.zk.isBrowserPlatform(),this.deeplinkOverrideZone=this.deeplinkHelperService.getDeeplinkZoneOverride()}get networkSessionId$(){return this.networkSessionIdUpdated$.asObservable()}readNetworkSessionId(){this.getCachedNetworkSessionId().pipe((0,v.s)(1)).subscribe(E=>this.networkSessionIdUpdated$.next(E??""),E=>{this.logger.error("Error fetching cached networkSessionId",E),this.networkSessionIdUpdated$.next("")})}set deeplinkOverrideZone(E){this._deeplinkOverrideZone=E}get deeplinkOverrideZone(){return this._deeplinkOverrideZone}getFingerprint(){return this.systemInfo.getSystemInfo([i.Lu.Network]).pipe((0,S.$)(),(0,y.T)(E=>E.Network),(0,y.T)(E=>(E?.Fingerprint&&this.updateFingerPrintIfChanged(E.Fingerprint),(0,r.isNil)(E)||(0,r.isEmpty)(E.Fingerprint)?null:E.Fingerprint)))}updateFingerPrintIfChanged(E){if(this.currentFingerprint!==E)return this.currentFingerprint=E,this.modifyNetworkConfig(g=>((0,r.isNil)(E)||(g.currentFingerPrint=E),g),"Failed tp update fingerprint").subscribe()}cacheCurrentFingerprint(){return this.getFingerprint().pipe((0,y.T)(E=>!(0,r.isNil)(E)&&(this.lastCachedFingerprint=E,!0)))}getFingerprintInfo(E){return this.getNetworkConfig().pipe((0,y.T)(g=>(0,r.isNil)(g.networks[E])?null:g.networks[E]))}getCurrentFingerprintInfo(){return this.getFingerprint().pipe((0,f.ZZ)(E=>this.getFingerprintInfo(E)))}getCachedZone(E){return this.getNetworkConfig().pipe((0,y.T)(g=>(0,r.isNil)(g.networks[E])||(0,r.isNil)(g.networks[E].lbrZone)?null:g.networks[E].lbrZone))}getCurrentCachedZone(){return this.getFingerprint().pipe((0,f.ZZ)(E=>this.getCachedZone(E)))}getCurrentCachedZone$(){return this.cachedZone$||(this.cachedZone$=new n.m(1),this.getCurrentCachedZone().pipe((0,v.s)(1)).subscribe(E=>this.cachedZone$.next(E))),this.cachedZone$.asObservable().pipe((0,O.F)())}getCachedLatencies(E){return this.getNetworkConfig().pipe((0,y.T)(g=>(0,r.isNil)(g.networks[E])||(0,r.isNil)(g.networks[E].zonesLatencies)?null:g.networks[E].zonesLatencies))}getCurrentCachedLatencies(){return this.getFingerprint().pipe((0,f.ZZ)(E=>this.getCachedLatencies(E)))}getCachedNetworkSessionId(){return this.getFingerprint().pipe((0,f.ZZ)(E=>this.getNetworkConfig().pipe((0,y.T)(g=>(0,r.isNil)(g.networks[E])||(0,r.isNil)(g.networks[E].networkSessionId)?null:g.networks[E].networkSessionId))))}updateCurrentFingerprintNetworkTestFlag(E,g){return this.getFingerprint().pipe((0,f.ZZ)(R=>this.modifyNetworkConfig(B=>{const X=(0,r.isNil)(R)?this.lastCachedFingerprint:R;return(0,r.isNil)(X)||(B.networks[X]=B.networks[X]||{},(0,r.merge)(B.networks[X],{runNetworkTest:E,indirectNetworkTestPolicy:g})),B},`Unable to ${E?"set":"reset"} the network test requirement with policy: ${g}.`)))}setCachedLatencies(E,g){const R={},B=[];if(!(0,r.isNil)(g)&&g!==c.HV)for(const X of g.split(/[|]/)){const H=X.split(":"),J=2===H.length?Number(H[1]):NaN;isNaN(J)||B.push({key:H[0],val:H[1]})}for(const X of B)R["latency@"+X.key]=X.val;return this.modifyNetworkConfig(X=>(X.networks[E]=X.networks[E]||{},X.networks[E].zonesLatencies=(0,r.isEmpty)(R)?null:R,X),`Unable to save latency information for ${E}.`)}setCachedZone(E,g){return this.modifyNetworkConfig(R=>(R.networks[E]=R.networks[E]||{},R.networks[E].lbrZone=g,R),`Unable to save zone information for ${E}.`).pipe((0,P.M)(R=>{R&&this.cachedZone$&&this.cachedZone$.next(g)}))}setCachedNetworkSessionId(E){return this.getFingerprint().pipe((0,f.ZZ)(g=>this.modifyNetworkConfig(R=>(R.networks[g]=R.networks[g]||{},R.networks[g].networkSessionId=E,R),`Unable to save networkSessionId information for ${g}.`).pipe((0,P.M)(R=>{R&&this.networkSessionIdUpdated$.next(E)}))))}updateNetworkTestInfoInFingerprint(E,g,R){return this.getFingerprint().pipe((0,f.ZZ)(B=>B?this.modifyNetworkConfig(X=>(X.networks[B]=X.networks[B]||{},X.networks[B].maxSubscriptionProfile=E,X.networks[B].networkTestReturn=g,X.networks[B].lastShownThresholdProfile=R,X),`Unable to save maxSubscriptionProfile, networkTestReturn, lastShownThresholdProfile information for ${B}.`):(0,l.of)(!1)))}updateNetworkTestThresholdProfile(E){return this.getFingerprint().pipe((0,f.ZZ)(g=>this.modifyNetworkConfig(R=>(R.networks[g]=R.networks[g]||{},R.networks[g].lastShownThresholdProfile=E,R),`Unable to save lastShownThresholdProfile information for ${g}.`)))}clearFingerprintCachedZone(E){return this.modifyNetworkConfig(g=>(this.logger.info("clear Cached Zone for fingerprint: ",E),(0,r.isNil)(g.networks[E])||delete g.networks[E].lbrZone,g),`Unable to clear zone information for ${E}.`)}getNetworkConditions(){const E={isVpn:!1,isVPNDetectable:!1,zoneOverride:null,networkType:i.Sd.Unknown,isOffline:!1};return this.networkStatusService.isOnline?(0,d.yU)(this.systemInfo.getSystemInfo([i.Lu.Network]),this.getNetworkOverride()).pipe((0,S.$)(),(0,y.T)(([g,R])=>({isVpn:!!g.Network&&"1"===g.Network.IsVPN,isVPNDetectable:g.Network&&void 0!==g.Network.IsVPN,zoneOverride:R,networkType:g.Network?g.Network.NetworkType:i.Sd.Unknown,isOffline:!1})),(0,_.W)(g=>(this.logger.error("failed to set post session network conditions while online. Error: ",g),(0,l.of)(E)))):this.getNetworkOverride().pipe((0,S.$)(),(0,y.T)(g=>({isVpn:!1,isVPNDetectable:!1,zoneOverride:g,networkType:i.Sd.Unknown,isOffline:!0})),(0,_.W)(g=>(this.logger.error("failed to set post session network conditions while offline. Error: ",g),(0,l.of)(E))))}clearCachedDisplayForFingerprint(E){return this.modifyNetworkConfig(g=>(this.logger.info("clear Cached Display for fingerprint: ",E),(0,r.isNil)(g.networks[E])||delete g.networks[E].maxDisplay,g),`Unable to clear display information for ${E}.`)}clearCachedCurrentFingerprint(){return this.getFingerprint().pipe((0,f.ZZ)(E=>this.modifyNetworkConfig(g=>(this.logger.info("clear the network fingerprint: ",E),(0,r.isNil)(g.networks[E])||delete g.networks[E],g),`Unable to clear information for ${E}.`)))}setZoneList(E){return this.sharedStorage.writeBlock(V,E)}getZoneList(){return this.sharedStorage.readBlock(V)}setFingerprintMaxDisplay(E,g){return this.modifyNetworkConfig(R=>(this.logger.info(`fingerprint ${g} display set to ${E.width}x${E.height}@${E.frameRate}`),R.networks[g]=R.networks[g]||{},R.networks[g].maxDisplay=E,R),`Unable to save information for ${g}.`)}setCurrentFingerprintMaxDisplay(E){return this.getFingerprint().pipe((0,f.ZZ)(g=>this.setFingerprintMaxDisplay(E,g)))}getFingerprintMaxDisplay(E){return this.getNetworkConfig().pipe((0,y.T)(g=>(0,r.isNil)(g.networks[E])||(0,r.isNil)(g.networks[E].maxDisplay)?null:g.networks[E].maxDisplay))}getFingerprintMaxPacketSize(E){return this.getNetworkConfig().pipe((0,y.T)(g=>(0,r.isNil)(g.networks[E])||(0,r.isNil)(g.networks[E].networkTestReturn?.testResult?.maxPacketSize)?null:g.networks[E].networkTestReturn.testResult.maxPacketSize))}getCurrentFingerprintMaxDisplay(){return this.getFingerprint().pipe((0,f.ZZ)(E=>this.getFingerprintMaxDisplay(E)),(0,P.M)(E=>{(0,r.isNil)(E)||this.logger.info(`Get Current maxDisplay: ${E.width}x${E.height}@${E.frameRate}`)}))}getCurrentFingerprintMaxPacketSize(){return this.getFingerprint().pipe((0,f.ZZ)(E=>this.getFingerprintMaxPacketSize(E)),(0,P.M)(E=>{(0,r.isNil)(E)||this.logger.info(`Get Current maxPacketSize: ${E}`)}))}getNetworkOverride(){return this.deeplinkOverrideZone?(0,l.of)(this.deeplinkOverrideZone):this.sharedStorage.readBlock(I).pipe((0,y.T)(E=>E.routingOverride||null))}setNetworkOverride(E){return this.modifyNetworkConfig(g=>(g.routingOverride=E,g),`Unable to save zone override information for ${E}.`)}updateNetworkOverrideNetworkTestFlag(E){return this.modifyNetworkConfig(g=>(g.routingOverride&&(g.routingOverride.runNetworkTest=!!this.isBrowserPlatform||E),g),`Unable to ${E?"set":"clear"} the network test requirement.`)}clearNetworkOverride(){return this.deeplinkOverrideZone?(this.deeplinkOverrideZone=null,(0,l.of)(!0)):this.modifyNetworkConfig(E=>(delete E.routingOverride,E),"Unable to clear zone override.")}clearCurrentFingerprintCachedZone(){return this.logger.info("deleting CachedZone for current fingerprint"),this.getFingerprint().pipe((0,f.ZZ)(E=>this.clearFingerprintCachedZone(E)))}clearCurrentFingerprintMaxDisplay(){return this.logger.info("deleting Cached Display for current fingerprint"),this.getFingerprint().pipe((0,f.ZZ)(E=>this.clearCachedDisplayForFingerprint(E)))}modifyNetworkConfig(E,g){return this.getNetworkConfig().pipe((0,f.ZZ)(R=>this.sharedStorage.writeBlock(I,E(R))),(0,_.W)(this.logError(g,!1)))}getNetworkConfig(){return this.sharedStorage.readBlock(I).pipe((0,y.T)(E=>(0,r.merge)(E,{networks:{}})))}logError(E,g){return R=>(this.logger.error(E,R),(0,l.of)(g))}writeNetworkConfig(E,g){return this.sharedStorage.writeBlock(I,E,g)}static{this.\u0275fac=function(g){return new(g||N)(m.KVO(i.J6),m.KVO(i.zW),m.KVO(M.yQ),m.KVO(D.w),m.KVO(i.CF))}}static{this.\u0275prov=m.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}}return N})()},47261:(Bt,z,s)=>{"use strict";s.d(z,{b:()=>N});var n=s(80583),l=s(26513),d=s(35146),v=s(43848),S=s(59859),y=s(83915),f=s(75707),O=s(10174),P=s(14714),_=s(4208),i=s(99047),r=s(20924),a=s(26875),m=s(18320),M=s(18433),D=s(6478),I=s(58527),U=s(51542),V=s(99469),T=s(78812);let N=(()=>{class L{constructor(g,R,B,X,H,J){this.networkConfig=g,this.bridgeService=R,this.telemetryService=B,this.telemetryUtilService=X,this.distributedTracingUtilService=H,this.lbrCancelled$=new n.B7,this.retriggerPolicy$=new l.t(M.RsW.Manual),this.logger=J.getLogger("gfn/serverRouting"),this.isLbrInProgress=!1,this.lbrRun=!1}get isLbrRequired(){return this.lbrRequired}set isLbrRequired(g){this.lbrRequired=g}get isLbrRun(){return this.lbrRun}resetLbrStatus(){this.lbrRequired=!1,this.lbrRun=!1}setRetriggerPolicy(g){this.retriggerPolicy$.next(g)}getCachedServerZone(){const g=[this.networkConfig.getNetworkOverride(),this.networkConfig.getCurrentCachedZone()];return(0,d.yU)(...g).pipe((0,y.T)(R=>{const[B,X]=R;return(0,a.isNil)(B)?(this.logger.info("DiskCachedZone is: ",X," and cachedZone is: ",this.cachedZone),(0,a.isNil)(this.cachedZone)?X:this.cachedZone):(this.logger.info("Latency-based routing override found.",B),B)}))}getFastestRegionalZone(g,R,B){const X=(0,a.keys)(R);this.isLbrInProgress=!0;const H={user:g.userId,deviceId:g.deviceId,platformId:g.platformId,addresses:X},J=this.cacheZoneList(R),re=this.networkConfig.getNetworkOverride(),ie=this.networkConfig.getCurrentCachedLatencies();return(0,d.yU)(J,re,ie).pipe((0,f.ZZ)(([,ve,ue])=>(0,a.isNil)(ve)?(this.logger.info("override zone is not found, run LBR"),(0,a.isNil)(B)||this.distributedTracingUtilService.setSpanAttribute(B,D.NS.UsedLatencyBasedRouting,!0),this.performLbr(H,R,ve,g.defaultZone)):(this.logger.info("Latency-based routing override found: ",ve),(0,a.isNil)(B)||(this.logger.info("Setting isLBRRun to false"),this.distributedTracingUtilService.setSpanAttribute(B,D.NS.UsedLatencyBasedRouting,!1)),this.performLbr(H,R,ve,g.defaultZone).pipe((0,O.u)(ve),(0,P.W)(se=>(this.logger.error("Failed to perform LBR, returning overriden zone.",se),(0,v.of)(ve)))))))}shouldLbrRun(g){if((0,a.isEmpty)(g))return this.logger.info("Call to ServerInfo failed, therefore run LBR."),this.setRetriggerPolicy(M.RsW.ServerInfoFailed),this.cacheZoneList(g).pipe((0,O.u)(!0));const R=[this.networkConfig.getZoneList(),this.networkConfig.getCurrentFingerprintInfo()];return(0,d.yU)(...R).pipe((0,f.ZZ)(([B,X])=>{const H=(0,a.isNil)(this.cachedZone)&&!(0,a.isNil)(X)?X.lbrZone:this.cachedZone,J=(0,a.keys)(g),re=(0,a.keys)(B);let ie=!1;return(0,a.isNil)(X)?(this.logger.info("This fingerprint is observed for the first time, on which LBR was never run."),this.setRetriggerPolicy(M.RsW.FingerprintChanged),ie=!0):(0,a.isEmpty)(B)||(0,a.isNil)(X.zonesLatencies)||-1===(0,a.keys)(X.zonesLatencies)[0].indexOf(".")?(this.logger.info("Zone list or zonesLatencies not saved, therefore run LBR."),this.setRetriggerPolicy(M.RsW.ZoneListEmpty),ie=!0):(0,a.isNil)(H)?(this.logger.info("The user didn't have a cached zone, therefore run LBR."),this.setRetriggerPolicy(M.RsW.CachedZoneNotStored),ie=!0):J.includes(H.address)?(0,a.difference)(J,re).length>0&&(this.logger.info("New zones have been added to the pool."),this.setRetriggerPolicy(M.RsW.NewZonesAdded),ie=!0):(this.logger.info("The user's cached zone is no longer available."),this.setRetriggerPolicy(M.RsW.CachedZoneNotAvailable),ie=!0),this.cacheZoneList(g).pipe((0,O.u)(ie))}),(0,P.W)(B=>(this.logger.error("Error trying to determine if LBR should run, therefore run LBR.",B),this.setRetriggerPolicy(M.RsW.PolicyCheckFailed),this.cacheZoneList(g).pipe((0,O.u)(!0)))))}cacheZoneList(g){return this.networkConfig.setZoneList(g).pipe((0,y.T)(()=>(this.logger.info("Successfully stored zone list in shared storage"),!0)),(0,P.W)(R=>(this.logger.warn("Failed to store zone list: ",R),(0,v.of)(!1))))}performLbr(g,R,B,X){if((0,a.isEmpty)(R))return this.logger.error("Cannot perform latency based routing as zones is empty"),(0,S.$)("zones is empty.");this.lbrRun=!0;const H=Date.now();return this.networkConfig.getFingerprint().pipe((0,f.ZZ)(J=>this.bridgeService.executeCommand(r.Ts.Gfn.Serverrouting.PerformRouting,g).pipe((0,_.Q)(this.lbrCancelled$),(0,f.ZZ)(re=>{this.cachedZone=R[re?.url],this.cachedZone.defaultZone=X;const ie=this.networkConfig.setCachedZone(J,this.cachedZone).pipe((0,f.ZZ)(ue=>re.cacheResult?(this.isLbrInProgress=!1,(0,v.of)(ue)):this.networkConfig.clearFingerprintCachedZone(J))),ve=this.networkConfig.setCachedLatencies(J,re.results);return this.logRoutingSuccess(re),(0,d.yU)(ie,ve).pipe((0,f.ZZ)(()=>this.sendRoutingStatusTelemetry(re,B,re.cacheResult?M.fbu.Success:M.fbu.Other,H)),(0,O.u)(this.cachedZone))}),(0,P.W)(re=>{const ie=re,ve=(()=>{try{return JSON.parse(ie.message)}catch{return this.logger.error(`Unable to determine error from ${ie.message}`),{results:m.HV,ipAddresses:m.HV,networkSessionId:m.HV,resultCode:ie.code,resultText:ie.message}}})();this.logRoutingFailure(ve);const ue=this.networkConfig.clearFingerprintCachedZone(J),se=this.networkConfig.setCachedLatencies(J,ve.results);return(0,d.yU)(ue,se).pipe((0,f.ZZ)(()=>(this.cachedZone=null,this.sendRoutingStatusTelemetry(ve,B,M.fbu.ClientError,H))),(0,f.ZZ)(()=>(0,S.$)(re)))}))))}getRoutingInfoWithPolicy(g){return this.retriggerPolicy$.pipe((0,i.$)(),(0,y.T)(R=>(g.policy=R,g)))}sendRoutingStatusTelemetry(g,R,B,X){const H={clientType:this.telemetryUtilService.getClientType(),serverRecommendedZone:"",clientRecommendedZone:g.url||"",clientRecommendedZoneLatency:g.latency||0,results:g.results,ipAddresses:g.ipAddresses,status:B,errorCode:""+g.resultCode,errorDetails:g.resultText,networkSessionId:g.networkSessionId,totalMs:Date.now()-X,overrideZone:(0,a.isNil)(R)?"":R.address,overrideActive:(0,a.isNil)(R)?M.T80.FALSE:M.T80.TRUE};return this.getRoutingInfoWithPolicy(H).pipe((0,y.T)(J=>this.telemetryService.push(new M.Q2O(J))))}logRoutingSuccess(g){this.logger.info(`Latency-based routing ${g.cacheResult?"":"partially"} succeeded with code: '${g.resultText}'`),this.logger.info(`Least latency zone is ${g.url} with ${g.latency}ms`),this.logger.info("Results",g.results),this.logger.info("IP addresses",g.ipAddresses)}logRoutingFailure(g){this.logger.error(`Latency-based routing failed with code: '${g.resultText}'`),this.logger.info("Results",g.results),this.logger.info("IP addresses",g.ipAddresses)}cleanupOnCancel(){return this.lbrCancelled$.next(),this.isLbrInProgress?this.networkConfig.clearCurrentFingerprintCachedZone():(0,v.of)(!0)}static{this.\u0275fac=function(R){return new(R||L)(I.KVO(U.u),I.KVO(V.NZ),I.KVO(T.H0),I.KVO(M.jgD),I.KVO(D.Z1),I.KVO(V.J6))}}static{this.\u0275prov=I.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}}return L})()},20038:(Bt,z,s)=>{"use strict";s.d(z,{Bx:()=>g,CB:()=>Be,DN:()=>N,I2:()=>a,JW:()=>r,L4:()=>M,M0:()=>Xe,Mb:()=>ie,SB:()=>f,SS:()=>Me,TE:()=>I,TK:()=>m,UT:()=>Ce,UW:()=>R,YE:()=>Q,_R:()=>L,aG:()=>ve,eW:()=>O,gY:()=>se,im:()=>i,ir:()=>T,m$:()=>c,oN:()=>E,oY:()=>D,qn:()=>Z,sN:()=>A,sj:()=>V,wp:()=>J,x1:()=>He,y9:()=>U,zA:()=>ue,ze:()=>P});var n=s(20924),l=s(31877),d=s(36206),v=s(56123),f=function(G){return G.Balanced="balanced",G.DataSaver="dataSaver",G.Competitive="competitive",G.Custom="custom",G}(f||{}),O=function(G){return G.balanced="BALANCED",G.dataSaver="DATA_SAVER",G.competitive="COMPETITIVE",G.custom="BALANCED",G}(O||{}),P=function(G){return G.Low="Low",G.Medium="Medium",G.High="High",G.Off="Off",G}(P||{}),_=function(G){return G.Standard="Standard",G.Enhanced="Enhanced",G.AiEnhanced="AI-enhanced",G.NvScaler="NvScaler",G.NvSharpen="NvSharpen",G}(_||{}),i=function(G){return G.Standard="Standard",G.Enhanced="Enhanced",G.AiEnhanced="AiEnhanced",G.NvScaler="NvScaler",G.NvSharpen="NvSharpen",G}(i||{}),r=function(G){return G.Warnings="WARNINGS",G.On="ON",G.Off="OFF",G}(r||{}),a=function(G){return G.Logical="Logical",G.Physical="Physical",G}(a||{});const c=[{value:!0,displayName:"common.auto",enabled:!0},{value:!1,displayName:"settings.streamingProfiles.custom",enabled:!0}],m=[{value:n.Or.Gfn.Streaming.HdrStreamingMode.HDR10_PLUS_GAMING,label:"settings.streamingProfiles.hdr.hdr10PlusGaming",upsellFlag:l.q3.SUPPORT_HDR10_PLUS_GAMING,enabled:!1},{value:n.Or.Gfn.Streaming.HdrStreamingMode.HDR,label:"settings.streamingProfiles.hdr.hdr10",upsellFlag:l.q3.SUPPORT_HDR,enabled:!1},{value:n.Or.Gfn.Streaming.HdrStreamingMode.OFF,label:"common.off",enabled:!0}];var M=function(G){return G.Resolution="UpScalingResolutionId",G.AiSharpness="AiSharpnessValue",G.EnhSharpness="EnhancedSharpnessValue",G}(M||{});const D={BlockName:"appSettingsConfig",LatencyPropertyName:"advancedLatencyOptimization",DirectInputPropertyName:"directInput",NetworkQuality:"networkQuality",PlayWithMobileNetwork:"playWithMobileNetwork",StreamingProfiles:"streamingProfiles",CustomProfile:"customProfile",DiscordRichPresence:"discordRpEnabled",DirectInputCatalinaOsOrHigher:"directInputCatalinaOsOrHigher",InGameGraphics:"inGameGraphics",UpScalingResolutionId:"upScalingResolutionId",AiSharpnessValue:"aiSharpnessValue",EnhancedSharpnessValue:"enhancedSharpnessValue",UpscalingModeUpdatedByUser:"upscalingModeUpdatedByUser",ClipboardPaste:"clipboardPaste",UdsSnoozeStopDateTime:"udsSnoozeStopDateTime",CustomModeHdr:"customModeHdr",CustomModeReflex:"customModeReflex",CustomModeCloudGsync:"customModeCloudGsync",PreferredGameLanguage:"preferredGameLanguage"},I={OFF:{value:0,displayName:"common.off"},WARNINGS:{value:1,displayName:"settings.network.networkQualitySettingWarnings"}},U={advancedLatencyOptimization:!1,directInput:!0,networkQuality:I.WARNINGS.value,playWithMobileNetwork:!1,discordRpEnabled:!0,directInputCatalinaOsOrHigher:!1,clipboardPaste:!1},V={BALANCED:{value:f.Balanced,displayName:"settings.streamingProfiles.balanced",translatedDisplayName:""},DATA_SAVER:{value:f.DataSaver,displayName:"settings.streamingProfiles.dataSaver",translatedDisplayName:""},COMPETITIVE:{value:f.Competitive,displayName:"settings.streamingProfiles.competitive",translatedDisplayName:""},CUSTOM:{value:f.Custom,displayName:"settings.streamingProfiles.custom",translatedDisplayName:""}},T={OFF:{id:0,label:"common.off",value:4,name:P.Off},LOW:{id:1,label:"settings.resolutionUpscaling.sharpnessLow",value:0,name:P.Low},MEDIUM:{id:2,label:"settings.resolutionUpscaling.sharpnessMed",value:2,name:P.Medium},HIGH:{id:3,label:"settings.resolutionUpscaling.sharpnessHigh",value:3,name:P.High}},N={STANDARD:{id:0,checked:!1,disabled:!1,value:_.Standard,displayName:"settings.resolutionUpscaling.standard",resolutionInfo:"settings.resolutionUpscaling.standardInfo"},ENHANCED:{id:1,checked:!0,disabled:!1,value:_.Enhanced,displayName:"settings.resolutionUpscaling.enhanced",resolutionInfo:"settings.resolutionUpscaling.enhancedInfo"},AI_ENHANCED:{id:2,checked:!1,disabled:!1,value:_.AiEnhanced,displayName:"settings.resolutionUpscaling.aiEnhanced",resolutionInfo:"settings.resolutionUpscaling.aiInfo",error:{1:"",2:"settings.resolutionUpscaling.aiWarning.dispFlagErrMinDrv",4:"",8:"",16:"",32:"",64:"",128:"settings.resolutionUpscaling.aiWarning.dispFlagErrNvPixelsLoad",512:"",1024:"",4096:""}},NV_SCALER:{id:3,value:_.NvScaler},NV_SHARP:{id:4,value:_.NvSharpen}},L={ValueOff:{value:0,displayName:"common.off",enabled:!0},ValueOn:{value:1,displayName:"settings.streamingProfiles.on",enabled:!0},ValueAdaptive:{value:2,displayName:"settings.streamingProfiles.adaptive",enabled:!0}},E=[L.ValueOff,L.ValueOn,L.ValueAdaptive],g={value:8,enabled:!1},R={value:10,enabled:!1},J={balanced:{name:f.Balanced,description:"settings.streamingProfiles.balancedDescription",width:1920,height:1080,fps:60,maxBitrate:0,dataUsage:10,drc:!0,vSync:L.ValueAdaptive.value,networkInfo:{},profile:v.Profile.BALANCED},dataSaver:{name:f.DataSaver,description:"settings.streamingProfiles.dataSaverDescription",width:1280,height:720,fps:60,maxBitrate:12,dataUsage:4,drc:!0,vSync:L.ValueAdaptive.value,networkInfo:{},profile:v.Profile.DATA_SAVER},competitive:{name:f.Competitive,description:"settings.streamingProfiles.competitiveDescription",width:1280,height:720,fps:60,maxBitrate:0,dataUsage:6,drc:!0,vSync:L.ValueOff.value,networkInfo:{},profile:v.Profile.COMPETITIVE}},ie=G=>G+" FPS",ve={Value60:{value:60,displayName:ie(60),enabled:!0},Value30:{value:30,displayName:ie(30),enabled:!0}},ue=59,se=119,Z=120,Se={Ar_16_10:1.6,Ar_16_9:16/9,Ar_4_3:4/3,Ar_5_4:5/4,Ar_19_5_9:2.15,Ar_24_10:2.4,Ar_32_9:32/9,Ar_21_9_1:3440/1440,Ar_21_9_2:2560/1080,Ar_21_9_3:1680/720},Ce=[{ratio:Se.Ar_16_10,formattedRatio:"(16:10)"},{ratio:Se.Ar_16_9,formattedRatio:"(16:9)"},{ratio:Se.Ar_4_3,formattedRatio:"(4:3)"},{ratio:Se.Ar_5_4,formattedRatio:"(5:4)"},{ratio:Se.Ar_19_5_9,formattedRatio:"(19.5:9)"},{ratio:Se.Ar_24_10,formattedRatio:"(24:10)"},{ratio:Se.Ar_32_9,formattedRatio:"(32:9)"},{ratio:Se.Ar_21_9_1,formattedRatio:"(21:9)"},{ratio:Se.Ar_21_9_2,formattedRatio:"(21:9)"},{ratio:Se.Ar_21_9_3,formattedRatio:"(21:9)"}],Be={bitRateMin:5,bitRateMax:75};var Xe=function(G){return G.maxBitrate="maxBitrate",G.maxBitrateValue="maxBitrateValue",G.resolution="resolution",G.frameRate="frameRate",G.drc="drc",G.vSync="vSync",G.hdr="hdr",G.reflex="reflex",G.cloudGsync="cloudGsync",G.l4s="l4s",G.bitDepth="bitDepth",G}(Xe||{}),He=function(G){return G[G.PROFILE_MAXBITRATE=99]="PROFILE_MAXBITRATE",G[G.PROFILE_RESOLUTION=100]="PROFILE_RESOLUTION",G[G.PROFILE_FPS=101]="PROFILE_FPS",G}(He||{});const Me=[{id:He.PROFILE_MAXBITRATE,label:"settings.streamingProfiles.maxBitrate",displayByDefault:!0},{id:He.PROFILE_RESOLUTION,label:"settings.streamingProfiles.resolution",displayByDefault:!0,hasBadgeImage:!0},{id:He.PROFILE_FPS,label:"settings.streamingProfiles.framerate",displayByDefault:!0},{id:l.tk.PROFILE_VSYNC,label:"settings.streamingProfiles.vSync",displayByDefault:!0,clientFeatureToggleKey:"platformSupportVsync"},{id:l.tk.PROFILE_CLOUD_GSYNC,entitlementFlag:l.N1.CLOUD_GSYNC,upsellFlag:l.q3.SUPPORT_CLOUD_GSYNC,kbaLinkRedirect:d.r7.GfnPcCloudGsyncLearnMore},{id:l.tk.PROFILE_REFLEX,label:"settings.streamingProfiles.reflex",entitlementFlag:l.N1.ENABLED_REFLEX,upsellFlag:l.q3.SUPPORT_REFLEX},{id:l.tk.PROFILE_HDR_VERSION,label:"settings.streamingProfiles.hdrStreaming",entitlementFlag:l.N1.SUPPORTED_HDR_VERSION},{id:l.tk.PROFILE_BIT_DEPTH,label:"settings.streamingProfiles.colorPrecision",entitlementFlag:l.N1.BIT_DEPTH,upsellFlag:l.q3.HIGHER_BIT_DEPTH},{id:l.tk.PROFILE_ADJUST_FOR_NETWORK,label:"settings.streamingProfiles.drc",displayByDefault:!0},{id:l.tk.PROFILE_L4S,label:"settings.streamingProfiles.l4sSetting",entitlementFlag:l.N1.ENABLED_L4S,upsellFlag:l.q3.SUPPORT_L4S,kbaLinkRedirect:d.r7.GfnPcl4sLearnMore,shortUrl:d.lp[d.r7.GfnPcl4sLearnMore]}],Q=[{id:He.PROFILE_MAXBITRATE,label:"settings.streamingProfiles.maxBitrate",displayByDefault:!0},{id:He.PROFILE_RESOLUTION,label:"settings.streamingProfiles.resolution",displayByDefault:!0,hasBadgeImage:!0},{id:He.PROFILE_FPS,label:"settings.streamingProfiles.framerate",displayByDefault:!0},{id:l.tk.PROFILE_VSYNC,label:"settings.streamingProfiles.vSync",displayByDefault:!0,clientFeatureToggleKey:"platformSupportVsync"},{id:l.tk.PROFILE_ADJUST_FOR_NETWORK,label:"settings.streamingProfiles.drc",displayByDefault:!0}],A={platformSupportsCloudGsync:!1,isVrrCapableDisplay:!1,isGsyncDisplay:!1,cloudGsyncDependencies:{osSupportsCloudGsync:!1,driverSupportsCloudGsync:!1,minFpsForCloudGsync:60}}},5349:(Bt,z,s)=>{"use strict";s.d(z,{UW:()=>m.UW,Bx:()=>m.Bx,M0:()=>m.M0,SB:()=>m.SB,ir:()=>m.ir,d5:()=>ie,DN:()=>m.DN,SC:()=>I,L4:()=>m.L4,y9:()=>m.y9,h$:()=>X,oY:()=>m.oY,ze:()=>m.ze,xf:()=>ve.x,im:()=>m.im,_R:()=>m._R});var n=s(26875),l=s(80583),d=s(3496),v=s(43848),S=s(31315),y=s(75707),f=s(65706),O=s(91384),P=s(14714),_=s(83915),i=s(53461),r=s(55833),a=s(99469),c=s(20924),m=s(20038),M=s(18433),D=s(89284);class I{static getUpScaleSettingList(){return Object.values(D.DNU)}static getSharpnessList(){return Object.values(D.irY)}static getUpScaleSetting(Be){const Xe=I.getUpScaleSettingList().find(He=>He.id===Be);return Xe&&{...Xe,checked:!0}}static getSharpnessbyProperty(Be,Xe){return Object.values(D.irY).find(He=>He[Xe]===Be)||D.irY.LOW}static getSharpnessbyId(Be){return I.getSharpnessbyProperty(Be,"id")}static getSharpnessbyValue(Be){return I.getSharpnessbyProperty(Be,"value")}static isEnhanced(Be){return Be===D.DNU.ENHANCED.id}static isAiEnhanced(Be){return Be===D.DNU.AI_ENHANCED.id}static isNvScaler(Be){return Be===D.DNU.NV_SCALER.id}static isNvSharpen(Be){return Be===D.DNU.NV_SHARP.id}static isNvScalerOrNvSharpen(Be){return I.isNvScaler(Be)||I.isNvSharpen(Be)}static isSharpnessOff(Be){return Be.name===D.zeh.Off}}class U{static getTelemetrySettingDescription(Be,Xe){let He="";switch(Be){case m.oY.UpScalingResolutionId:He=I.getUpScaleSetting(Xe).value;break;case m.oY.AiSharpnessValue:case m.oY.EnhancedSharpnessValue:He=I.getSharpnessbyValue(Xe).name;break;case m.oY.UpscalingModeUpdatedByUser:He=Xe?M.T80.TRUE:M.T80.FALSE;break;case m.oY.NetworkQuality:He=this.getNetworkSettingTelemetryName(Xe);break;case m.oY.DiscordRichPresence:case m.oY.DirectInputPropertyName:case m.oY.InGameGraphics:case m.oY.CustomModeHdr:case m.oY.CustomModeReflex:case m.oY.CustomModeCloudGsync:He=this.getBooleanSettingTelemetryName(Xe);break;case m.oY.StreamingProfiles:case m.oY.PreferredGameLanguage:He=Xe}return He}static getNetworkSettingTelemetryName(Be){let Xe="";switch(Be){case 0:Xe=m.JW.Off;break;case 1:Xe=m.JW.Warnings;break;case 2:Xe=m.JW.On}return Xe}static getBooleanSettingTelemetryName(Be){return Be?M.Txn.Enabled:M.Txn.Disabled}}var V=s(50778),T=s(87687),N=s(58527),L=s(72945),E=s(78812),g=s(95346),R=s(61958),B=s(81834);let X=(()=>{class Ce{get isConnectionsPageReady$(){return this.isConnectionsPageReadySubject.asObservable()}get showServerLocationCTA(){return this._showServerLocationCTA}set showServerLocationCTA(Xe){this._showServerLocationCTA=Xe}get showPreferredGameLanguageCTA(){return this._showPreferredGameLanguageCTA}set showPreferredGameLanguageCTA(Xe){this._showPreferredGameLanguageCTA=Xe}constructor(Xe,He,Me,Q,A,me,ne,G,W){this.loggingService=Xe,this.sharedStorageService=He,this.bridgeService=Me,this.telemetryService=Q,this.telemetryUtilService=A,this.appConfig=me,this.systemInfoService=ne,this.localeService=W,this.isConnectionsPageReadySubject=new l.B7,this._showServerLocationCTA=!1,this._showPreferredGameLanguageCTA=!1,this.logger=this.loggingService.getLogger("gfn/settingsService"),this.sharedSettingsStream=G.createStream(this.getSettingsData.bind(this)),this.bridgeService.executeCommand(c.Ts.Gfn.Streaming.VsyncToggle).subscribe($=>{this.platformSupportsVsyncToggle=$}),(0,d.O)(this.appConfig.jsEvents.systemInfoEventDelay).pipe((0,y.ZZ)($=>this.getPreferredGameLanguage$()),(0,f.s)(1),(0,O.M)($=>this.telemetryUtilService.preferredGameLanguageSubject.next($)),(0,P.W)($=>(this.telemetryUtilService.preferredGameLanguageSubject.next({language:a.MY,isAuto:!0}),(0,v.of)($)))).subscribe()}get networkWarningsEnabled$(){return this.sharedSettingsStream.get$().pipe((0,_.T)(Xe=>(Xe?.networkQuality??m.y9.networkQuality)===m.TE.WARNINGS.value),(0,i.F)())}setNetworkWarningsEnabled(Xe){this.logger.info(Xe?"Enabling":"Disabling","network warnings"),this.storeChangedSettings({settingType:m.oY.NetworkQuality,selectedOption:Xe?m.TE.WARNINGS.value:m.TE.OFF.value})}setPlayWithMobileNetworkEnabled(Xe){this.logger.info(Xe?"Enabling":"Disabling","play with mobile network"),this.storeChangedSettings({settingType:m.oY.PlayWithMobileNetwork,selectedOption:Xe})}getAutoGameLanguage$(){return(0,S.zV)([this.localeService.localeChanged,this.systemInfoService.getSystemInfo([a.Lu.UserDefaultUILanguage])]).pipe((0,_.T)(([Xe,He])=>({language:Xe===a.MY?He.UserDefaultUILanguage:Xe,isAuto:!0})))}getPreferredGameLanguage$(){return this.gameLanguagePreference$.pipe((0,y.ZZ)(Xe=>Xe.isAuto?this.getAutoGameLanguage$():(0,v.of)(Xe)))}get gameLanguagePreference$(){return this.sharedSettingsStream.get$().pipe((0,_.T)(Xe=>({isAuto:Xe?.preferredGameLanguage?.startsWith(V.Lu)??!0,language:Xe?.preferredGameLanguage?.replace(V.Lu,"")??""})),(0,P.W)(Xe=>(this.logger.error("Error fetching preferred language from shared settings",Xe),(0,v.of)({isAuto:!0,language:""}))),(0,i.F)((Xe,He)=>Xe.isAuto===He.isAuto&&Xe.language===He.language))}setPreferredGameLanguage(Xe,He){this.logger.info(`Setting preferred game language: ${He?V.Lu:""}${Xe}`),this.storeChangedSettings({settingType:m.oY.PreferredGameLanguage,selectedOption:He?V.Lu+Xe:Xe})}isVsyncChangedAndToggleSupported(){return void 0!==this.currentVsyncValue&&void 0!==this.firstVsyncValue&&this.currentVsyncValue!==this.firstVsyncValue&&!this.platformSupportsVsyncToggle}setVsyncValue(Xe){void 0===this.firstVsyncValue?this.firstVsyncValue=Xe:this.currentVsyncValue=Xe}resetVsyncChanged(){this.firstVsyncValue=void 0,this.currentVsyncValue=void 0}getLinksUrl(Xe,He){Xe===V.ni.OSS_LICENSES&&(He="en_US");const Me=this.appConfig.redirect.serverUrl+He+"&page="+Xe;return this.logger.info(Xe+"url",Me),Me}getIohidConfigurable(){return this.ioHidConfig$||(this.ioHidConfig$=this.bridgeService.executeCommand(c.Ts.Common.Applicationcontrol.ReadConfig,{appname:"GeForceNOW"}).pipe((0,r.t)(1))),this.ioHidConfig$}getSwitchValue(Xe,He){let Me=!1;return(0,n.toArray)(Xe).forEach(A=>{if((0,n.includes)(A,He))return Me="true"===A.split("=")[1].trim(),Me}),Me}getSettingsData(){return this.sharedStorageService.readBlock(m.oY.BlockName)}storeChangedSettings(Xe,He=!0){const Me={};this.getSettingsData().subscribe(Q=>{(0,n.isNull)(Q)?(Me[Xe.settingType]=Xe.selectedOption,Q=Me):Q[Xe.settingType]=Xe.selectedOption,this.writeData(Q,Xe,He)})}isCatalinaOsOrHigher(){return this.isMinCatalinaOs$||(this.isMinCatalinaOs$=this.systemInfoService.getSystemInfo([a.Lu.OSName,a.Lu.OSVersion]).pipe((0,_.T)(Xe=>{if(this.logger.info("current OS: ",Xe.OSName,Xe.OSVersion),"macos"===Xe.OSName.toLowerCase()){const He=Xe.OSVersion.split("."),Me=parseInt(He[0],10),Q=parseInt(He[1],10);return Me>=10&&Q>=15}return!1}),(0,r.t)(1))),this.isMinCatalinaOs$}getClientPlatform(){return this.clientPlatform$||(this.clientPlatform$=this.systemInfoService.getSystemInfo([a.Lu.Platform]).pipe((0,_.T)(Xe=>{let He;return He=a.zk.isAndroidPlatform()?"android":a.zk.isBrowserPlatform()?"browser":"desktop",He+Xe.Platform}),(0,r.t)(1))),this.clientPlatform$}writeData(Xe,He,Me=!0){this.sharedStorageService.writeBlock(m.oY.BlockName,Xe,!0).subscribe(Q=>{Me&&this.sendTelemetry(He),this.sharedSettingsStream.refresh()},Q=>{Me&&this.sendTelemetry(He,Q.errorMessage)})}sendTelemetry(Xe,He=""){const Me={clientType:this.telemetryUtilService.getClientType(),settingLabel:Xe.settingType,settingValue:U.getTelemetrySettingDescription(Xe.settingType,Xe.selectedOption),errorDetails:He},Q=new T.l1U(Me);this.telemetryService.push(Q)}persistInGameGraphicsEnabled(){return this.getSettingsData().pipe((0,_.T)(Xe=>!!Xe?.inGameGraphics&&Xe.inGameGraphics))}static{this.\u0275fac=function(He){return new(He||Ce)(N.KVO(a.J6),N.KVO(L.yQ),N.KVO(a.NZ),N.KVO(E.H0),N.KVO(g.j),N.KVO(R.Vk),N.KVO(a.zW),N.KVO(B.mZ),N.KVO(a.iH))}}static{this.\u0275prov=N.jDH({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}}return Ce})();var H=s(85735),J=s(35146);const re=c.Ts.Gfn.Streaming;let ie=(()=>{class Ce{constructor(Xe,He,Me,Q,A){this.loggingService=Xe,this.bridgeService=He,this.settingsService=Me,this.telemetryService=Q,this.appconfig=A,this.isUpscalingVisibleSubject=new H.m(1),this.isAiSupportedSubject=new H.m(1),this.uiUpScaleDisplaySettingSubject=new H.m(1),this.aiSharpnessSettingSubject=new H.m(1),this.enhSharpnessSettingSubject=new H.m(1),this.nvScalerNvSharpSupportSubject=new H.m(1),this.logger=this.loggingService.getLogger("gfn/resolutionUpscaleService")}initialize(){this.setUpScalingOnAppLaunch()}saveSetting(Xe,He,Me=!1){this.settingsService.storeChangedSettings({settingType:D.oY8[Xe],selectedOption:He},Me),Me&&Xe===D.L4P.Resolution&&this.settingsService.storeChangedSettings({settingType:D.oY8.UpscalingModeUpdatedByUser,selectedOption:!0})}isValidId(Xe){return"number"==typeof Xe&&!Number.isNaN(Xe)}sendUpscalingErrorTelemetry(Xe,He){const Me={settingType:Xe,selectedOption:null};(0,J.yU)(this.telemetryService.getDefaultClientConsentObserable(),this.telemetryService.getCommonDataObservable()).pipe((0,f.s)(1)).subscribe(Q=>{this.settingsService.sendTelemetry(Me,He.toString())})}getNvScalerNvSharpSupport(){return this.nvScalerNvSharpSupportSubject.asObservable()}setNvScalerNvSharpSupport(Xe){this.nvScalerNvSharpSupportSubject.next(Xe)}getUpscalingVisibility(){return this.isUpscalingVisibleSubject.asObservable()}setUpscalingVisibility(Xe){this.isUpscalingVisibleSubject.next(Xe)}getAiSupport(){return this.isAiSupportedSubject.asObservable()}setAiSupport(Xe){this.isAiSupportedSubject.next(Xe)}getUpScaleDisplaySetting(){return this.uiUpScaleDisplaySettingSubject.asObservable()}setUpScaleDisplaySetting(Xe){const He=I.isNvScalerOrNvSharpen(Xe.id)?D.DNU.ENHANCED:I.getUpScaleSetting(Xe.id);this.uiUpScaleDisplaySettingSubject.next(He)}getAiSharpnessSetting(){return this.aiSharpnessSettingSubject.asObservable()}setAiSharpnessSetting(Xe){this.aiSharpnessSettingSubject.next(Xe)}getEnhSharpnessSetting(){return this.enhSharpnessSettingSubject.asObservable()}setEnhSharpnessSetting(Xe){this.enhSharpnessSettingSubject.next(Xe)}setUpScalingOnAppLaunch(){const Xe={filterSupportList:I.getUpScaleSettingList().map(He=>({filterId:He.id}))};this.bridgeService.executeCommand(re.GetMagnificationFilterSupportList,Xe).pipe((0,f.s)(1)).subscribe(He=>{if(this.logger.info("Supported magnification filters.",He),He.filterSupportList){const Me=He.filterSupportList.find(G=>I.isEnhanced(G.filterId)),Q=!!Me?.MagnificationFilterSupport;if(this.setUpscalingVisibility(Q),!Q)return void this.sendUpscalingErrorTelemetry(D.im9.Enhanced,Me?.FrameFilterErrorInfo);const A=He.filterSupportList.find(G=>I.isNvScaler(G.filterId)),me=He.filterSupportList.find(G=>I.isNvSharpen(G.filterId)),ne=He.filterSupportList.find(G=>I.isAiEnhanced(G.filterId));this.handleUpScaleSetting(A,me,ne)}},He=>{this.logger.error("Magnification filter error.",He)})}handleUpScaleSetting(Xe,He,Me){const Q=!!Xe?.MagnificationFilterSupport,A=!!He?.MagnificationFilterSupport,me=!!Me?.MagnificationFilterSupport,ne=Me?.FrameFilterErrorInfo,G=D.DNU.AI_ENHANCED.error[ne];this.setNvScalerNvSharpSupport({isNvScalerSupported:Q,isNvSharpenSupported:A}),this.setAiSupport({isAiSupported:me,aiErrorMessage:G}),this.settingsService.getSettingsData().pipe((0,f.s)(1)).subscribe(W=>{let $=W?.upScalingResolutionId;const le=W?.upscalingModeUpdatedByUser,Pe=I.getSharpnessbyValue(W?.aiSharpnessValue),Fe=I.getSharpnessbyValue(W?.enhancedSharpnessValue);if(this.setAiSharpnessSetting(Pe),this.setEnhSharpnessSetting(Fe),me||(this.sendUpscalingErrorTelemetry(D.im9.AiEnhanced,ne),I.isAiEnhanced($)&&($=null)),this.isValidId($)&&le)switch(this.setMagnificationFilter($),$){case D.DNU.AI_ENHANCED.id:this.setSharpnessFilter(Pe);break;case D.DNU.ENHANCED.id:(Q||A)&&this.setSharpnessFilter(Fe)}else{const At=this.appconfig.resolutionUpscalingConfig.defaultOptionId;this.setMagnificationFilter(At),this.saveSetting(D.L4P.Resolution,At,!1),(Q||A)&&this.setSharpnessFilter(Fe)}},W=>{this.logger.error("Failed to get settings ",W)})}setMagnificationFilter(Xe){let He;(0,S.zV)([this.getNvScalerNvSharpSupport(),this.getEnhSharpnessSetting()]).pipe((0,f.s)(1)).subscribe(([Me,Q])=>{!I.isSharpnessOff(Q)&&I.isEnhanced(Xe)&&(He=Me.isNvScalerSupported&&D.DNU.NV_SCALER.id||Me.isNvSharpenSupported&&D.DNU.NV_SHARP.id),this.processMagnificationFilter(He||Xe)})}processMagnificationFilter(Xe){const He=I.getUpScaleSetting(Xe);He&&this.bridgeService.executeCommand(re.SetMagnificationFilter,{filterId:He.id}).pipe((0,f.s)(1)).subscribe(()=>{this.setUpScaleDisplaySetting(He),this.logger.info("Resolution upscaling changed to ",He.id,He.value)},Q=>{this.logger.error("Failed to change resolution upscaling to ",He.id,He.value,Q)})}setSharpnessFilter(Xe){const He=Xe.name;this.bridgeService.executeCommand(re.SetMagnificationFilterSharpness,{sharpness:He}).pipe((0,f.s)(1)).subscribe(()=>{this.logger.info("Sharpness changed to ",He)},A=>{this.logger.error("Failed to change sharpness to ",He,A)})}static{this.\u0275fac=function(He){return new(He||Ce)(N.KVO(a.J6),N.KVO(a.NZ),N.KVO(D.h$Q),N.KVO(E.H0),N.KVO(D.Vk6))}}static{this.\u0275prov=N.jDH({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}}return Ce})();var ve=s(74965);s(31877),s(14043),s(58202)},74965:(Bt,z,s)=>{"use strict";s.d(z,{x:()=>Xe});var n=s(85735),l=s(80583),d=s(26513),v=s(36466),S=s(43848),y=s(31315),f=s(56237),O=s(36877),P=s(72147),_=s(91384),i=s(55833),r=s(8619),a=s(83915),c=s(65706),m=s(75707),M=s(14714),D=s(53461),I=s(73180),U=s(26875),T=s(56123),L=s(50961),g=s(99469),R=s(20038),B=s(20924),X=s(58202),H=s(31877),J=s(81834),re=s(81732),ie=s(58527),ve=s(72945),ue=s(21341),se=s(61958),Z=s(55512),Se=s(27561),Ce=s(14043),Be=s(45903);let Xe=(()=>{class He{constructor(Q,A,me,ne,G,W,$,le,Pe,Fe,At,Le,Et,$e){this.loggingService=Q,this.sharedStorageService=A,this.systemInfoService=me,this.bridgeService=ne,this.networkConfigService=G,this.config=W,this.ecommerceService=$,this.idmService=le,this.nativeEventService=Pe,this.redirectService=Fe,this.lcarsService=At,this.remoteConfigurationService=Le,this.libLoggingService=Et,this.eventStreamFactory=$e,this.fpsList=[R.aG.Value60,R.aG.Value30],this.bitDepthListsSubject=new n.m(1),this.updatedPresetProfiles={...R.wp},this.updatedBitrateValues=R.CB,this.streamingProfileGuid=(0,J.bz)(),this.streamingProfileGuidSubject=new n.m(1),this.networkInfoSubject=new n.m(1),this.displayModeChanged$=new l.B7,this.gameFeaturePropertiesSubject$=new n.m(1),this.hdrDropdownListSubject=new n.m(1),this.hdrDecodeSupportedSubject$=new d.t(!1),this.hdrRenderingSupportedSubject$=new d.t([]),this.hdrLearnMoreUrlSubject$=new n.m(1),this.hdrStreamingModeSubject$=new n.m,this.isReflexToggleTurnedOffSubject$=new n.m,this.streamingModeSubject$=new n.m,this.reflexLearnMoreUrlSubject$=new n.m(1),this.deviceCapabilitiesReady$=new n.m(1),this.modeSelectionReady$=new n.m(1),this.availableResolutionList$=new n.m(1),this.subscriptionBitDepthList=[],this.supportedVsyncTypes$=new n.m(1),this.supportedProfileNames$=new n.m(1),this.platformSupportedMaxResolutions$=new n.m(1),this.platformSupportedMaxFps$=new n.m(1),this.deviceCapabilities$=new n.m(1),this.isPresetProfileDetailsExpanded=!1,this.isCustomProfileDetailsExpanded=!0,this.logger=this.loggingService.getLogger("streaming-profile.service"),this.isBrowserPlatform=g.zk.isBrowserPlatform(),this.isBrowserLikePlatform=g.zk.isBrowserLikePlatform(),this.isStreamingProfileDataReadySubject=new l.B7,this.updateConfigurationVariables(),this.registerEvents(),this.initializeMembers()}get networkInfo$(){return this.networkInfoSubject.asObservable()}get isStreamingProfileDataReady(){return this.isStreamingProfileDataReadySubject.asObservable()}set isStreamingProfileDataReady(Q){this.isStreamingProfileDataReadySubject.next(Q)}get SupportedResolutionList(){return this.supportedResolutionList}get UnsupportedDisabledResolutionsList(){return this.unsupportedDisabledResolutionsList}get IsPlatformSupportsHDRDecode(){return this.hdrDecodeSupportedSubject$.value}get platformSupportedHDRRendering(){return this.hdrRenderingSupportedSubject$.value}get IsPlatformSupportsCloudGsync(){return this.cloudGsyncCapabilities?.platformSupportsCloudGsync}get IsVrrDisplayDetected(){return this.cloudGsyncCapabilities?.isVrrCapableDisplay}get isGsyncDisplay(){return this.cloudGsyncCapabilities?.isGsyncDisplay}get CloudGsyncDependencies(){return this.cloudGsyncCapabilities?.cloudGsyncDependencies}get minFpsForReflexWithoutVrr(){return this.deviceCapabilities.features.minimumFpsForReflexWithoutVrr}getAvailableResolutionList(){return this.availableResolutionList$.asObservable()}getPlatformSupportedMaxFps$(){return this.platformSupportedMaxFps$.asObservable()}getPlatformSupportedMaxResolution$(){return this.platformSupportedMaxResolutions$.asObservable()}getPlatformDeviceCapabilities$(){return this.deviceCapabilities$.asObservable()}initializeStreamingProfiles$(Q=!1){return this.initializeStreamingProfilesObservable$||(this.initializeStreamingProfilesObservable$=this.subscriptionInfoStream.get$().pipe((0,P.n)(A=>(this.updateStreamingModeFromEntitlementData(),this.getDeviceCapabilities$(A,Q))),(0,_.M)(()=>{this.updateMaxBitrate(),this.updateBitDepthList()}),(0,i.t)(1))),this.initializeStreamingProfilesObservable$}clientModeSelectionLogCallback(Q){this.libLoggingService.sendLog({logModule:"ClientModeSelection",timeStamp:"",logLevel:"d"===Q.level?g.$b.DEBUG:"w"===Q.level?g.$b.WARN:g.$b.INFO,logTag:Q.tag,logStr:Q.message})}setSubscriptionFeaturesAndGetResolutions(Q){this.subscriptionFeatures=Q.subscription?.features,this.subscriptionStreamingQualities=Q.subscription?.streamingQualities,this.subscriptionBitDepthList=this.getSubscriptionBitDepthList(this.subscriptionFeatures);const A=Q.membershipStatus!==X.OO.Entitled;let me=Q.subscription?.features?.resolutions;return A&&(me=Q.unentitledUserData?.resolutions,me=me?.map(ne=>({...ne,isEntitled:!0})),this.subscriptionFeatures={resolutions:me,features:[]},this.subscriptionStreamingQualities=Q.unentitledUserData?.streamingQualities),me?.sort(function(ne,G){return G.widthInPixels*G.heightInPixels-ne.widthInPixels*ne.heightInPixels}),me}initSubscriptionInfoStream(){this.subscriptionInfoStream=this.eventStreamFactory.createStream(()=>this.ecommerceService.getUserMembership().pipe((0,r.p)(Q=>Q.membershipStatus!==X.OO.UnKnown),(0,_.M)(()=>this.setPlatformSupportedHDRMode()),(0,a.T)(Q=>this.setSubscriptionFeaturesAndGetResolutions(Q)),(0,r.p)(Q=>{const A=Q?.length>0&&!(0,U.isEqual)(Q,this.lastProcessedResolutions);return this.lastProcessedResolutions=Q,A}),(0,_.M)(()=>this.deviceCapabilitiesFetched$=null)))}setPlatformSupportedHDRMode(){const Q=[];for(let A=0;A<R.TK.length;A++)R.TK[A].value!==B.Or.Gfn.Streaming.HdrStreamingMode.OFF&&((this.ecommerceService.featureArrayItemEntitled(H.N1.SUPPORTED_HDR_VERSION,R.TK[A].value)||this.ecommerceService.featureUpsellAvailable(R.TK[A].upsellFlag))&&Q.push(R.TK[A].value),R.TK[A].value===B.Or.Gfn.Streaming.HdrStreamingMode.HDR&&this.ecommerceService.isFeatureAvailableToUser(H.N1.HDR_ENABLED,R.TK[A].upsellFlag)&&!Q.includes(R.TK[A].value)&&Q.push(R.TK[A].value));this.hdrPlatformSupportedModes=Q}getDeviceCapabilities$(Q,A=!1){return this.deviceCapabilitiesFetched$&&!A||(this.deviceCapabilitiesFetched$=this.modeSelectionReady$.asObservable().pipe((0,P.n)(()=>{const me=this.modeSelection.sortModes(Q.map(G=>({width:G.widthInPixels,height:G.heightInPixels,fps:G.framesPerSecond})),{width:0,height:0,fps:0},[{field:"fps-abs",dir:"desc"},{field:"pixel-count-abs",dir:"desc"}]);return this.logger.info("GetDeviceCapabilities parameters: ",me),this.bridgeService.executeCommand(B.Ts.Gfn.Streaming.GetDeviceCapabilities,{supportedModes:me}).pipe((0,a.T)(G=>this.processDeviceCapabilitiesResponse(G)),(0,_.M)(()=>{this.supportedResolutionList=this.getSupportedResolutionsAndFpsList(Q),this.availableResolutionList=this.supportedResolutionList.filter(G=>G.enabled),this.availableResolutionList$.next(this.availableResolutionList)}))}),(0,c.s)(1),(0,i.t)(1))),this.deviceCapabilitiesFetched$}processDeviceCapabilitiesResponse(Q){this.logger.info("GetDeviceCapabilities response: ",Q),this.deviceCapabilities=Q,this.deviceCapabilities$.next(this.deviceCapabilities);const A=this.modeSelection.getSupportedVsyncTypes(this.deviceCapabilities);this.createSupportedVsyncList(A),this.createProfileNamesList(A);const me=this.deviceCapabilities.features.bitDepth>=10,ne=me&&this.deviceCapabilities.features.hdr,G=me&&!(0,U.isUndefined)(this.deviceCapabilities.features?.hdr10PlusGamingData?.version)&&0!==this.deviceCapabilities.features?.hdr10PlusGamingData?.version;this.hdrDecodeSupportedSubject$.next(me);const W=[];return G&&W.push(B.Or.Gfn.Streaming.HdrStreamingMode.HDR10_PLUS_GAMING),ne&&W.push(B.Or.Gfn.Streaming.HdrStreamingMode.HDR),this.hdrRenderingSupportedSubject$.next(W),this.logger.info("platformSupportedHDR decode, rendering modes: ",me,W),this.deviceCapabilitiesReady$.next(),!0}createSupportedVsyncList(Q){const A=R.oN.filter(me=>Q.includes(me.value));this.supportedVsyncTypes$.next(A)}createProfileNamesList(Q){this.isBrowserLikePlatform||(Q.some(A=>A===R._R.ValueOff.value)?this.supportedProfileNames$.next([R.sj.BALANCED,R.sj.DATA_SAVER,R.sj.COMPETITIVE,R.sj.CUSTOM]):this.supportedProfileNames$.next([R.sj.BALANCED,R.sj.DATA_SAVER,R.sj.CUSTOM]))}getCachedGxtOverrides(){return this.remoteConfigurationService.loadPreviousOverrides().pipe((0,a.T)(Q=>Q?.data&&Q?.isFetchedFromGXT?JSON.stringify(Q.data):(this.logger.info("No GXT overrides available."),"")),(0,c.s)(1))}initializeMembers(){this.initSubscriptionInfoStream(),this.initializeStreamingProfiles$().subscribe(v.l,v.l),this.initializeHdrDropdownList().subscribe(),this.previousStreamingProfile=this.getSpecificPresetProfile(),this.gameFeaturePropertiesInitialized$().subscribe(),this.getCachedGxtOverrides().pipe((0,m.ZZ)(Q=>{let A;return this.modeSelection=new L.ClientModeSelection(Q),this.modeSelection.setLogCallback(me=>this.clientModeSelectionLogCallback(me)),""!==Q?(A={gxtOverrideData:Q},this.bridgeService.executeCommand(B.Ts.Gfn.Streaming.ConfigureStreamingSettings,A)):(this.logger.info("configureStreaming remote overrides are not from GXT"),(0,S.of)(""))})).subscribe(()=>this.modeSelectionReady$.next())}registerEvents(){this.idmService.accountStatusChanged.subscribe(()=>{this.logger.info("Streaming profile reset for user account change."),this.initializeStreamingProfilesObservable$=null,this.clearCachedStreamingProfile()}),this.displayModeChangeListener$().pipe((0,_.M)(()=>this.logger.info("Received Display mode changed event.")),(0,m.ZZ)(()=>this.subscriptionInfoStream.get$()),(0,m.ZZ)(Q=>this.getDeviceCapabilities$(Q,!0)),(0,m.ZZ)(()=>this.fetchPlatformSupportCloudGsync$(!0)),(0,m.ZZ)(()=>this.systemInfoService.getSystemInfo([g.Lu.Display],!0))).subscribe(()=>{this.displayModeChanged$.next(!0)},Q=>{this.logger.error("Error in DisplayModeChange event.",Q)}),this.systemInfoService.onNetworkChanged().subscribe(Q=>{this.networkInfoSubject.next(Q)})}updateStreamingModeFromEntitlementData(){Object.values(R.SB).filter(Q=>Q!==R.SB.Custom).forEach(Q=>{const A=this.ecommerceService.getStreamingModeDetails(Q);let me=this.updatedPresetProfiles[Q];!A||!me||(me={...me,...A},this.updatedPresetProfiles[Q]=me)})}updateMaxBitrate(){const Q=this.ecommerceService.getMaxBitrate();Q&&(this.updatedBitrateValues.bitRateMin=Q.minBitrateValue,this.updatedBitrateValues.bitRateMax=Q.maxBitrateValue)}updateBitDepthList(){const Q=[],A=[];this.subscriptionBitDepthList.sort((ne,G)=>G.value-ne.value);const me=this.deviceCapabilities.features.sdrBitDepth||this.deviceCapabilities.features.bitDepth||R.Bx.value;this.subscriptionBitDepthList.forEach(ne=>{ne.value>me?(ne.enabled=!1,A.push(ne)):Q.push(ne)}),this.bitDepthListsSubject.next([Q,A])}initializeHdrDropdownList(){return(0,y.zV)([this.hdrDecodeSupportedSubject$.asObservable(),this.hdrRenderingSupportedSubject$.asObservable()]).pipe((0,m.ZZ)(([Q,A])=>{const me=[],ne=[],G=[],W=this.ecommerceService.getFeatureMetadata(H.N1.SUPPORTED_HDR_VERSION)?.setValue??[];!W.includes(B.Or.Gfn.Streaming.HdrStreamingMode.HDR)&&this.ecommerceService.isFeatureAvailableToUser(H.N1.HDR_ENABLED,H.q3.SUPPORT_HDR)&&W.push(B.Or.Gfn.Streaming.HdrStreamingMode.HDR);const $=new Map(R.TK.map((Pe,Fe)=>[Pe.value,Fe]));W.sort((Pe,Fe)=>$.get(Pe)-$.get(Fe));const le=Pe=>{const Fe=!!Pe?.upsellFlag&&this.ecommerceService.featureUpsellAvailable(Pe.upsellFlag);Fe||Q&&A.some(At=>Pe.value===At)?(Pe.enabled=!Fe,me.push(Pe)):Q?G.push(Pe):ne.push(Pe)};for(let Pe=0;Pe<W?.length;Pe++){const Fe=R.TK.find(At=>At.value===W[Pe]);!Fe||Fe.value===B.Or.Gfn.Streaming.HdrStreamingMode.OFF||le({...Fe})}return me.push({...R.TK.find(Pe=>Pe.value===B.Or.Gfn.Streaming.HdrStreamingMode.OFF)}),this.hdrDropdownListSubject.next({supportedList:me,displayNotDetectedList:G,unsupportedList:ne}),this.fetchHdrModeState$(!0)}))}initializeGameFeatureProperties$(){return this.gameFeatureProperties$||(this.gameFeatureProperties$=(0,y.zV)([this.fetchHdrModeState$(),this.fetchHdrLearnMoreUrl$().pipe((0,c.s)(1)),this.deviceCapabilitiesReady$.asObservable(),this.fetchSelectedStreamingMode$(),this.fetchReflexLearnMoreUrl$().pipe((0,c.s)(1)),this.fetchReflexToggleState$()]).pipe((0,P.n)(()=>this.gameFeaturePropertiesSubject$.asObservable()),(0,i.t)(1))),this.gameFeatureProperties$}updateConfigurationVariables(){const Q=this.config?.client?.streamingModeResolutionsConfiguration?.resolutionBadges;this.resolutionBadges=Q?Object.entries(Q).map(A=>A[1]):[],this.displayUnsupportedResolution=this.config?.client?.streamingModeResolutionsConfiguration?.displayUnsupportedResolution,this.displayUnsupportedFps=this.config?.client?.streamingModeResolutionsConfiguration?.displayUnsupportedFps,this.platformSupportVsync=!!this.config?.client?.streamingModeResolutionsConfiguration?.platformSupportVsync}gameFeaturePropertiesInitialized$(){return(0,y.zV)([this.getHdrStreamingMode$(),this.getHdrLearnMoreUrl$(),this.getIsPlatformSupportsHDRDecode$(),this.getIsPlatformSupportsHDRRendering$(),this.getStreamingMode$(),this.getReflexLearnMoreUrl$(),this.getIsReflexToggleTurnedOff$()]).pipe((0,a.T)(([Q,A,me,ne,G,W,$])=>(this.gameFeaturePropertiesSubject$.next({hdrStreamingMode:Q,hdrLearnMoreUrl:A,hdrDecodeSupported:me,hdrModesRenderSupported:ne,streamingMode:G,reflexLearnMoreUrl:W,reflexToggledOff:$}),!0)),(0,i.t)(1))}getIsPlatformSupportsHDRDecode$(){return this.hdrDecodeSupportedSubject$.asObservable()}getIsPlatformSupportsHDRRendering$(){return this.hdrRenderingSupportedSubject$.asObservable()}getHdrStreamingMode$(){return this.hdrStreamingModeSubject$.asObservable()}getHdrLearnMoreUrl$(){return this.hdrLearnMoreUrlSubject$.asObservable()}getStreamingMode$(){return this.streamingModeSubject$.asObservable()}getReflexLearnMoreUrl$(){return this.reflexLearnMoreUrlSubject$.asObservable()}getIsReflexToggleTurnedOff$(){return this.isReflexToggleTurnedOffSubject$.asObservable()}getStreamingProfileGuid(){return this.streamingProfileGuidSubject.asObservable()}updateStreamingProfileGuid(Q){(0,U.isEqual)(Q,this.previousStreamingProfile)||(this.streamingProfileGuid=(0,J.bz)(),this.previousStreamingProfile=Q),this.streamingProfileGuidSubject.next(this.streamingProfileGuid)}getSpecificPresetProfile(Q=R.SB.Balanced){return{...this.updatedPresetProfiles[Q]}}getAutoMaxBitrateValue(Q,A,me){const ne=[];return ne.push({frameRate:me,height:A,width:Q}),this.getAutoMaxBitrateValueForResolutionArray(ne).pipe((0,c.s)(1),(0,a.T)(G=>G[0].maxBandwidth))}getAutoMaxBitrateValueForResolutionArray(Q){return this.bridgeService.executeCommand(B.Ts.Gfn.Streaming.PlatformGetMaxBitRateForArray,{resolutions:Q}).pipe((0,c.s)(1),(0,a.T)(me=>{this.logger.info("PlatformGetMaxBitRateForArray response: ",me);const ne=me.resolutions;return ne?.forEach(G=>{G.maxBandwidth=Math.round(G.maxBandwidth/1e3)}),ne}),(0,M.W)(me=>{this.logger.error("Error in PlatformGetMaxBitRateForArray bridge command: ",me);const ne=[];return Q.forEach(G=>{ne.push({width:G.width,height:G.height,fps:G.frameRate,maxBandwidth:0})}),(0,S.of)(ne)}))}getResolutionBadgeText(Q,A){return this.resolutionBadges.filter(me=>me.resolutions.some(ne=>ne.height===A&&ne.width===Q))[0]?.badgeText}isCustomDataInSubscription(Q){const me=this.availableResolutionList?.some(ne=>ne.height===Q.height&&ne.width===Q.width&&ne.fpsList?.some(G=>G.value===Q.fps&&G.enabled))&&this.isCustomModeFeaturesEntitled(Q);return me||this.logger.info("Requested profile is not entitled, customData: ",Q),me}isCustomModeFeaturesEntitled(Q){const A=!(!(0,U.isUndefined)(Q.cloudGsync)&&Q.cloudGsync)||this.ecommerceService.featureEntitled(H.N1.CLOUD_GSYNC),me=!(!(0,U.isUndefined)(Q.hdrStreamingMode)&&Q.hdrStreamingMode!==B.Or.Gfn.Streaming.HdrStreamingMode.OFF)||this.ecommerceService.featureSetValueEntitled(H.N1.SUPPORTED_HDR_VERSION)||this.ecommerceService.featureEntitled(H.N1.HDR_ENABLED),ne=!(!(0,U.isUndefined)(Q.reflex)&&Q.reflex)||this.ecommerceService.featureEntitled(H.N1.ENABLED_REFLEX),G=!(!(0,U.isUndefined)(Q.l4sEnabled)&&Q.l4sEnabled)||this.ecommerceService.featureEntitled(H.N1.ENABLED_L4S),W=!(!(0,U.isUndefined)(Q.bitDepth)&&Q.bitDepth!==R.Bx.value)||this.ecommerceService.featureArrayItemEntitled(H.N1.BIT_DEPTH,Q.bitDepth);return this.logger.info("Requested profile features entitlements state: gsync, hdr, reflex, l4s, bitdepth: ",A,me,ne,G,W),A&&me&&ne&&G&&W}getProfileNamesList$(){return this.isBrowserLikePlatform?(0,S.of)([R.sj.BALANCED,R.sj.CUSTOM]):this.supportedProfileNames$.asObservable()}isVsyncSupported(){return!(g.zk.isAndroidPlatform()||g.zk.isBrowserPlatform())}calculateDataUsage(Q,A,me,ne){this.logger.info("Calculate data usage, params: ",Q,A,me,ne);const G={width:Q,height:A,frameRate:me,bitRateKbps:1e3*ne};if(g.zk.isAndroidPlatform()){let W=G.bitRateKbps;0===W&&(W=(0,T.CalculateMaxBitrateKbps)(G.width,G.height,G.frameRate));const $=(0,T.CalculateDataUsage)(G.frameRate,W);return(0,S.of)($)}return this.bridgeService.executeCommand(B.Ts.Gfn.Streaming.CalculateDataUsage,G).pipe((0,c.s)(1),(0,a.T)(W=>(this.logger.info("CalculateDataUsage response: ",W),W.dataUsage)),(0,M.W)(W=>(this.logger.error("Error in CalculateDataUsage bridge command: ",W),(0,S.of)(0))))}getSubscriptionBitDepthList(Q){const A=Q?.features?.find(me=>me.key===H.N1.BIT_DEPTH)?.textValue;return A?JSON.parse(A).map(G=>({value:JSON.parse(G.value),enabled:G.isEntitled})):[]}calculateAspectRatio(Q,A,me=!0){const ne=Q/A;let G=R.UT[0];for(const W of R.UT)Math.abs(ne-W.ratio)<Math.abs(ne-G.ratio)&&(G=W);return me&&this.logger.info("Calculate Formatted Aspect Ratio for resolution: ",Q,A,G.formattedRatio),G.formattedRatio}getResolution(Q,A,me=!1){return{width:Q,height:A,ratio:this.calculateAspectRatio(Q,A,!1),enabled:!0,labelText:this.getResolutionBadgeText(Q,A),fpsList:me?this.getFpsList():[]}}getPrimaryDisplayResolution(Q=R.I2.Logical){return this.isBrowserPlatform||g.zk.isAndroidPlatform()?this.systemInfoService.getSystemInfo([g.Lu.Display]).pipe((0,a.T)(A=>{const me=A.Display,ne=me[0].PhysicalResolution.split("x"),G=me[0].LogicalResolution.split("x");let W;return this.physicalResolution={width:parseInt(ne[0],10),height:parseInt(ne[1],10),fps:parseInt(me[0].RefreshRate,10)},W=Q===R.I2.Logical?{width:parseInt(G[0],10),height:parseInt(G[1],10),fps:parseInt(me[0].RefreshRate,10)}:this.physicalResolution,this.config.featureEnablement.landscapeOnlyStreaming&&(W={...W,width:Math.max(W.width,W.height),height:Math.min(W.width,W.height)},this.physicalResolution={...this.physicalResolution,width:Math.max(this.physicalResolution.width,this.physicalResolution.height),height:Math.min(this.physicalResolution.width,this.physicalResolution.height)}),this.logger.info(`Primary display ${Q} resolution: `,W),W})):this.bridgeService.executeCommand(B.Ts.Gfn.Streaming.GetDisplayMode).pipe((0,c.s)(1),(0,a.T)(A=>{let me;return this.physicalResolution={width:A.physical.width,height:A.physical.height,fps:A.physical.refreshRate},me=Q===R.I2.Logical?{width:A.logical.width,height:A.logical.height,fps:A.logical.refreshRate}:this.physicalResolution,this.logger.info(`Active display mode ${Q} resolution: `,A),me}))}getCurrentPhysicalResolution(){return this.physicalResolution?{horizontalPixels:this.physicalResolution.width,verticalPixels:this.physicalResolution.height}:null}mapToClientModeSelectionNetworkType(Q){switch(Q){case g.Sd.WiFi2_4:return 2;case g.Sd.WiFi5_0:return 3;case g.Sd.Ethernet:return 1}return 0}getModeSelectionProfileType(Q=R.SB.Balanced){switch(Q){case R.SB.Competitive:return 2;case R.SB.DataSaver:return 3;case R.SB.Custom:return 0}return 1}getStreamingProfileName(){return this.sharedStorageService.readBlock(R.oY.BlockName).pipe((0,a.T)(Q=>{let A=Q[R.oY.StreamingProfiles];return A=(0,U.isUndefined)(A)?R.SB.Balanced:A,A}))}getStreamingProfile(Q=0,A){if(this.streamingProfile$&&0===Q)return this.streamingProfile$;let me;return me=this.networkInfo$.pipe(0===Q?(0,c.s)(1):(0,D.F)()),this.streamingProfile$=(0,y.zV)([this.sharedStorageService.readBlock(R.oY.BlockName).pipe((0,c.s)(1)),this.getPrimaryDisplayResolution().pipe((0,c.s)(1)),this.networkConfigService.getCurrentFingerprintMaxDisplay().pipe((0,c.s)(1)),this.networkConfigService.getCurrentFingerprintMaxPacketSize().pipe((0,c.s)(1)),me,this.initializeStreamingProfiles$().pipe((0,c.s)(1))]).pipe((0,m.ZZ)(([ne,G,W,$,le,Pe])=>{this.settingsBlock=(0,U.merge)({},ne);const Fe=A??this.settingsBlock[R.oY.StreamingProfiles]??R.SB.Balanced;let Et,At=this.getModeSelectionProfileType(Fe),Le=!1;if(Fe===R.SB.Custom){const Ot=this.settingsBlock[R.oY.CustomProfile];!(0,U.isUndefined)(Ot)&&this.isCustomDataInSubscription(Ot)?(Et={...Ot},null!=Ot.l4sEnabled&&(Et.l4sEnabled=Ot.l4sEnabled&&Ot.drc),(0,U.isUndefined)(Ot?.hdrStreamingMode)?delete Et.hdrStreaming:Et.hdrStreaming=Ot.hdrStreamingMode!==B.Or.Gfn.Streaming.HdrStreamingMode.OFF):((0,U.isUndefined)(Ot)||(Le=!0),At=1)}let $e=this.getSpecificPresetProfile(Fe!==R.SB.Custom?Fe:R.SB.Balanced);const Ze=this.modeSelection.parseSubscription(this.subscriptionFeatures,this.subscriptionStreamingQualities),{desired:Qe,options:Ve}=Ze.get(At);return Et&&($e={...$e,...Et},Qe.fps=$e.fps,Qe.height=$e.height,Qe.width=$e.width,Ve.desiredFeatures.vsync=$e.vSync,Ve.desiredFeatures.hdr=$e.hdrStreamingMode!==B.Or.Gfn.Streaming.HdrStreamingMode.OFF,Ve.desiredFeatures.reflex=$e.reflex,Ve.desiredFeatures.bitDepth=$e.bitDepth,Ve.desiredFeatures.cloudGsync=$e.cloudGsync,Ve.desiredFeatures.l4s=$e.l4sEnabled,Ve.desiredFeatures.hdr10PlusGaming=$e.hdrStreamingMode===B.Or.Gfn.Streaming.HdrStreamingMode.HDR10_PLUS_GAMING),$e.networkInfo=le,Fe===R.SB.Custom&&($e.profile=0),Ve.selectKind=Q,Ve.networkType=this.mapToClientModeSelectionNetworkType(le.NetworkType),W&&Fe!==R.SB.Custom&&(Ve.networkMaxMode={...W,fps:W.frameRate}),(0,f.T)(()=>Le,this.storeCustomProfileData(null,!0).pipe((0,_.M)(()=>this.logger.info("Custom mode reset due to values outside entitlement"))),(0,S.of)(!0)).pipe((0,a.T)(()=>this.getStreamingMode(Qe,Ve,At,$e,Fe,$,G,W,Q)))}),(0,M.W)(ne=>(this.logger.error("Error/Exception in getStreamingProfile: (default profile data used)",ne),(0,S.of)(this.setupProfileData(this.getSpecificPresetProfile(),Q)))),(0,_.M)(ne=>this.updateStreamingProfileGuid(ne)),(0,i.t)(1)),this.streamingProfile$}getStreamingMode(Q,A,me,ne,G,W,$,le,Pe){const Fe=this.modeSelection.selectModeWithProfile(Q,this.deviceCapabilities,A,me);return this.logger.info("modeSelection.selectModeWithProfile: response ",Fe),ne.width=Fe.selectedVideoMode.width,ne.height=Fe.selectedVideoMode.height,ne.fps=Fe.selectedVideoMode.fps,ne.displayDpi=Fe.selectedVideoMode.scaleFactor??0,ne.audioMode=Fe.selectedFeatures.audioChannelCount,ne.cloudGsync=Fe.selectedFeatures.cloudGsync,ne.hdrStreaming=Fe.selectedFeatures.hdr,ne.reflex=Fe.selectedFeatures.reflex,ne.vSync=Fe.selectedFeatures.vsync,ne.l4sEnabled=Fe.selectedFeatures.l4s,ne.bitDepth=Fe.selectedFeatures.bitDepth,ne.hdrStreamingMode=Fe.selectedFeatures?.hdr10PlusGaming?B.Or.Gfn.Streaming.HdrStreamingMode.HDR10_PLUS_GAMING:Fe.selectedFeatures.hdr?B.Or.Gfn.Streaming.HdrStreamingMode.HDR:B.Or.Gfn.Streaming.HdrStreamingMode.OFF,this.setupProfileData(ne,Pe,G,W,$,le)}setupProfileData(Q,A,me,ne,G,W){return me&&(Q.name=me),ne&&(Q.maxPacketSize=ne),G&&(Q.primaryDisplayResolution=G),W&&(Q.currentFingerprintMaxDisplay=W),0===A&&(Q.maxBitrate=1e3*Q.maxBitrate),Q.aspectRatio=this.calculateAspectRatio(Q.width,Q.height),Q.hdrStreamingMode===B.Or.Gfn.Streaming.HdrStreamingMode.HDR10_PLUS_GAMING&&(Q.hdr10PlusGamingData=this.deviceCapabilities.features?.hdr10PlusGamingData),this.logger.info("Settings for "+(0===A?"streaming are: ":"display are: "),Q),Q}clearCachedStreamingProfile(){this.streamingProfile$=null}readCustomProfileData(){return this.sharedStorageService.readBlock(R.oY.BlockName).pipe((0,a.T)(Q=>(this.settingsBlock=(0,U.merge)({},Q),this.logger.info("Read settings block from sharedStorage: ",Q),Q[R.oY.CustomProfile])))}storeCustomProfileData(Q,A){return this.sharedStorageService.readBlock(R.oY.BlockName).pipe((0,m.ZZ)(me=>(A?delete this.settingsBlock[R.oY.CustomProfile]:(delete Q.hdr10PlusGamingData,this.settingsBlock=(0,U.merge)({},me),this.settingsBlock[R.oY.CustomProfile]=Q),this.sharedStorageService.writeBlock(R.oY.BlockName,this.settingsBlock))))}getFpsList(){return this.fpsList}getBitDepthLists$(){return this.bitDepthListsSubject.asObservable()}getHdrDropdownLists$(){return this.hdrDropdownListSubject.asObservable()}getSupportedVsyncList$(){return this.supportedVsyncTypes$.asObservable()}getFpsOption(Q){return{value:Q.framesPerSecond,displayName:(0,R.Mb)(Q.framesPerSecond),enabled:Q.isEntitled}}getSupportedResolutionsAndFpsList(Q){const A=[];let me=R.aG.Value60.value;if(this.unsupportedDisabledResolutionsList=[],0===Q?.length){this.logger.info("Subscription resolution list is empty using default custom resolution");const ne=this.getSpecificPresetProfile(),G=this.getResolution(ne.width,ne.height,!0);A.push(G)}else Q.forEach(ne=>{if(!A.some(G=>G.width===ne.widthInPixels&&G.height===ne.heightInPixels)){const G=this.getResolution(ne.widthInPixels,ne.heightInPixels);if(!this.modeSelection.isResolutionSupported(this.deviceCapabilities,G.width,G.height))return void(this.displayUnsupportedResolution&&!this.unsupportedDisabledResolutionsList.some($=>$.width===ne.widthInPixels&&$.height===ne.heightInPixels)&&(this.unsupportedDisabledResolutionsList.push(G),G.enabled=!1));const W=Q.filter($=>$.widthInPixels===G.width&&$.heightInPixels===G.height);if(G.enabled=W?.some($=>$.isEntitled),G.enabled){G.fpsList=W.map(le=>this.getFpsOption(le)),G.fpsList?.sort((le,Pe)=>Pe.value-le.value);const $=G.fpsList.filter(le=>!this.modeSelection.isModeSupported(this.deviceCapabilities,{width:G.width,height:G.height,fps:le.value}));$.length>0&&(G.fpsList=G.fpsList.filter(le=>!$.some(Pe=>Pe.value===le.value)),this.displayUnsupportedFps&&(G.unsupportedFpsList=$.map(le=>({...le,enabled:!1})))),me<G.fpsList[0].value&&(me=G.fpsList[0].value)}A.push(G)}});return this.platformSupportedMaxResolutions$.next(A[0]),this.platformSupportedMaxFps$.next(me),A}getPlatformSpecificBalancedPresetResolution(){const Q=this.getSpecificPresetProfile();if(Q&&this.availableResolutionList?.length&&!this.availableResolutionList?.some(A=>A.height===Q?.height&&A.width===Q?.width)){const A=Object.assign({},Q);return A.width=this.availableResolutionList[0].width,A.height=this.availableResolutionList[0].height,A.fps=this.availableResolutionList?.find(me=>me.width===A.width&&me.height===A.height)?.fpsList[0]?.value,A}return Q}getMaxbitRateList(){return(0,U.cloneDeep)(R.m$)}fetchHdrLearnMoreUrl$(){return this.hdrLearnMoreUrl$||(this.hdrLearnMoreUrl$=this.redirectService.getRedirectUrl(re.r7.GfnPcHdrUnsupportedSystemsLearnMore).pipe((0,_.M)(Q=>{this.hdrLearnMoreUrlSubject$.next(Q)}),(0,i.t)(1))),this.hdrLearnMoreUrl$}fetchHdrModeState$(Q){return Q&&this.hdrStreamingMode$&&(this.hdrStreamingMode$=null),this.hdrStreamingMode$||(this.hdrStreamingMode$=this.sharedStorageService.readBlock(R.oY.BlockName).pipe((0,a.T)(A=>{this.settingsBlock=(0,U.merge)({},A);const me=!(0,U.isUndefined)(this.settingsBlock[R.oY.StreamingProfiles])&&this.settingsBlock[R.oY.StreamingProfiles]===R.SB.Custom&&!(0,U.isUndefined)(this.settingsBlock[R.oY.CustomProfile]?.hdrStreamingMode)&&this.settingsBlock[R.oY.CustomProfile].hdrStreamingMode;return this.hdrStreamingModeSubject$.next(me),me}),(0,i.t)(1))),this.hdrStreamingMode$}onDisplayModeChanged(){return this.displayModeChanged$.asObservable()}getSettingsValueString(Q){return Q?"settings.streamingProfiles.on":"common.off"}getVsyncValueString(Q){return Q===R._R.ValueOff.value?"common.off":Q===R._R.ValueOn.value?"settings.streamingProfiles.on":"settings.streamingProfiles.adaptive"}getPlatformSupportedHDRModes(){return this.hdrPlatformSupportedModes}isHDRFeatureAvailableToUser(){return!!this.getPlatformSupportedHDRModes().length}getSupportedHDRMode(Q){return this.getPlatformSupportedHDRModes().find(ne=>{let G=Q.some(W=>this.lcarsService.isFeatureSupportedOnVariant(W,H.N1.SUPPORTED_HDR_VERSION,ne));return ne===B.Or.Gfn.Streaming.HdrStreamingMode.HDR&&!G&&(G=Q.some(W=>this.lcarsService.isFeatureSupportedOnVariant(W,H.N1.HDR_ENABLED))),G})}getHdrLabel(Q){let A=B.Or.Gfn.Streaming.HdrStreamingMode.OFF;const me=Q?.hdrStreamingMode??this.getPlatformSupportedHDRModes()?.[0];return this.IsPlatformSupportsHDRDecode&&this.platformSupportedHDRRendering?.length&&me!==B.Or.Gfn.Streaming.HdrStreamingMode.OFF&&!this.ecommerceService.featureUpsellAvailable(R.TK.find(ne=>ne.value===me).upsellFlag)&&(A=me),R.TK.find(ne=>ne.value===A)?.label}getCloudGsyncLabel(Q,A,me,ne){return this.fetchPlatformSupportCloudGsync$().pipe((0,a.T)(()=>this.getCloudGsyncLabelSync(Q,A,me,ne)))}getCloudGsyncLabelSync(Q,A,me,ne){return this.IsPlatformSupportsCloudGsync?A?"common.off":this.IsVrrDisplayDetected?(0,U.isUndefined)(me)||me===R._R.ValueAdaptive.value?!(0,U.isUndefined)(ne)&&ne<this.CloudGsyncDependencies?.minFpsForCloudGsync?"settings.streamingProfiles.vrrFpsTip":Q?"settings.streamingProfiles.on":"common.off":"settings.streamingProfiles.vrrVsyncTip":"settings.streamingProfiles.vrrNotDetected":"settings.streamingProfiles.hdrSystemUnsupportedTip"}getReflexLabel(Q,A){return A||!Q?"common.off":"settings.streamingProfiles.on"}getBitRateValues(){return this.updatedBitrateValues}displayModeChangeListener$(){return this.isBrowserPlatform?(0,O.R)(window,"resize").pipe((0,I.c)(100),(0,r.p)(()=>!!this.physicalResolution&&this.physicalResolution.width!==Math.floor(window.screen.width*window.devicePixelRatio))):this.nativeEventService.get$(g.D4.DisplayModeChange,g.Jm.Types.HandlerEventType.SimpleWindowEvent)}fetchPlatformSupportCloudGsync$(Q){return this.isBrowserPlatform||g.zk.isAndroidPlatform()?(0,S.of)(R.sN):(Q&&this.cloudGsyncCapabilities$&&(this.cloudGsyncCapabilities$=null),this.cloudGsyncCapabilities$||(this.cloudGsyncCapabilities$=this.bridgeService.executeCommand(B.Ts.Gfn.Streaming.GetPlatformCloudGsyncCapabilities).pipe((0,c.s)(1),(0,a.T)(A=>(this.logger.info("fetchPlatformSupportCloudGsync response: ",A),this.cloudGsyncCapabilities=A,this.cloudGsyncCapabilities)),(0,M.W)(A=>(this.logger.info("fetchPlatformSupportCloudGsync error: ",A),(0,S.of)(null))),(0,i.t)(1))),this.cloudGsyncCapabilities$)}fetchReflexLearnMoreUrl$(){return this.reflexLearnMoreUrl$||(this.reflexLearnMoreUrl$=this.redirectService.getRedirectUrl(re.r7.GfnPcUnsupportedReflexLearnMore).pipe((0,_.M)(Q=>{this.reflexLearnMoreUrlSubject$.next(Q)}),(0,i.t)(1))),this.reflexLearnMoreUrl$}fetchSelectedStreamingMode$(Q){return Q&&this.streamingMode$&&(this.streamingMode$=null),this.streamingMode$||(this.streamingMode$=this.sharedStorageService.readBlock(R.oY.BlockName).pipe((0,a.T)(A=>{this.settingsBlock=(0,U.merge)({},A);const me=(0,U.isUndefined)(this.settingsBlock[R.oY.StreamingProfiles])?R.SB.Balanced:this.settingsBlock[R.oY.StreamingProfiles];return this.streamingModeSubject$.next(me),me}),(0,i.t)(1))),this.streamingMode$}fetchReflexToggleState$(Q){return Q&&this.isReflexToggleTurnedOff$&&(this.isReflexToggleTurnedOff$=null),this.isReflexToggleTurnedOff$||(this.isReflexToggleTurnedOff$=this.sharedStorageService.readBlock(R.oY.BlockName).pipe((0,a.T)(A=>{this.settingsBlock=(0,U.merge)({},A);const me=(0,U.isUndefined)(this.settingsBlock[R.oY.StreamingProfiles])||this.settingsBlock[R.oY.StreamingProfiles]===R.SB.Custom&&((0,U.isUndefined)(this.settingsBlock[R.oY.CustomProfile]?.reflex)||!this.settingsBlock[R.oY.CustomProfile].reflex);return this.isReflexToggleTurnedOffSubject$.next(me),me}),(0,i.t)(1))),this.isReflexToggleTurnedOff$}clearSelectedModeAndToggles(){this.streamingMode$=null,this.hdrStreamingMode$=null,this.isReflexToggleTurnedOff$=null,this.gameFeatureProperties$=null}getMaxDisplayTestData(Q){return this.getStreamingProfile().pipe((0,c.s)(1),(0,a.T)(A=>{const me=A?.primaryDisplayResolution;let ne=[...this.availableResolutionList];if(Q||this.clearCachedStreamingProfile(),(0,U.isNil)(ne)||(0,U.isNil)(A)||A.name!==R.SB.Balanced)return null;ne=ne.sort(($,le)=>le.width*le.height-$.width*$.height);const G=this.getCappedFramerate(ne,me);return A.width<me?.width||A.fps<G||A.height<me?.height?this.isDisplayHighestForAspectRatio(A,ne,G)?null:A:null}))}getCappedFramerate(Q,A){if(!A||Q?.length<=0)return R.aG.Value60.value;let me=Q.filter(ne=>ne.height*ne.width==A.height*A.width);if(me?.length<=0&&(me=Q.filter(ne=>ne.height*ne.width<A.height*A.width)),me?.length>0){const ne=me[0]?.fpsList?.filter(G=>G.enabled);if(ne?.length>0){const G=ne.filter(W=>W.value<=A.fps+1);if(G?.length>0)return G[0].value}}return A?.fps>=R.gY?R.qn:A?.fps>=R.zA?R.aG.Value60.value:R.aG.Value30.value}isDisplayHighestForAspectRatio(Q,A,me){for(const ne of A){if(ne.width/ne.height!=Q.width/Q.height)continue;let G=ne.fpsList.filter(W=>!0===W.enabled)[0]?.value;return G=G<me?G:me,!(ne.width>Q.width||G>Q.fps)}return!0}getProfileSettingOptions(Q,A){const me=[];return(A?R.YE:R.SS).forEach(G=>me.push({id:G.id,display:this.isDisplaySettingOption(G),disabled:this.isSettingOptionDisable(G),label:this.getSettingOptionLabel(G),value:this.getSettingOptionValue(G,Q),valuePlaceholder:this.getSettingOptionValuePlaceholder(G,Q),kbaLinkRedirect:G.kbaLinkRedirect,shortUrl:G.shortUrl,valueBadgeText:this.getSettingOptionValueBadgeText(G,Q)})),me}getSettingOptionValueBadgeText(Q,A){return Q.hasBadgeImage?this.getResolutionBadgeText(A.width,A.height):null}isDisplaySettingOption(Q){let A=!0;return Q.clientFeatureToggleKey?this[Q.clientFeatureToggleKey]:(Q.remoteFeatureToggleKey&&(A=this[Q.remoteFeatureToggleKey]),Q.displayByDefault||A&&this.isFeatureAvailableToUser(Q.entitlementFlag,Q.upsellFlag))}isFeatureAvailableToUser(Q,A){return Q===H.N1.SUPPORTED_HDR_VERSION?this.isHDRFeatureAvailableToUser()||this.ecommerceService.isFeatureAvailableToUser(H.N1.HDR_ENABLED,H.q3.SUPPORT_HDR):this.ecommerceService.isFeatureAvailableToUser(Q,A)}isSettingOptionDisable(Q){return!Q.displayByDefault&&this.ecommerceService.featureUpsellAvailable(Q.upsellFlag)}getSettingOptionLabel(Q){return Q.id===H.tk.PROFILE_CLOUD_GSYNC?this.isGsyncDisplay?"settings.streamingProfiles.vrrGsyncDisplay":"settings.streamingProfiles.vrrDisplay":Q.label}getSettingOptionValue(Q,A){switch(Q.id){case R.x1.PROFILE_MAXBITRATE:return 0!==A.maxBitrate?`${A.maxBitrate} Mbps`:"common.auto";case R.x1.PROFILE_RESOLUTION:return A.width+" x "+A.height+" "+A.aspectRatio;case R.x1.PROFILE_FPS:return A.fps+" FPS";case H.tk.PROFILE_VSYNC:return this.getVsyncValueString(A.vSync);case H.tk.PROFILE_CLOUD_GSYNC:return this.getCloudGsyncLabelSync(A.cloudGsync,this.ecommerceService.featureUpsellAvailable(Q.upsellFlag));case H.tk.PROFILE_REFLEX:return this.getReflexLabel(A.reflex,this.ecommerceService.featureUpsellAvailable(Q.upsellFlag));case H.tk.PROFILE_HDR_VERSION:return this.getHdrLabel(A);case H.tk.PROFILE_BIT_DEPTH:return"settings.streamingProfiles.colorPrecisionValue";case H.tk.PROFILE_ADJUST_FOR_NETWORK:return this.getSettingsValueString(A.drc);case H.tk.PROFILE_L4S:return this.getSettingsValueString(A.l4sEnabled)}}getSettingOptionValuePlaceholder(Q,A){return Q.id===H.tk.PROFILE_BIT_DEPTH?{bitDepth:A.bitDepth}:Q.valuePlaceholder}static{this.\u0275fac=function(A){return new(A||He)(ie.KVO(g.J6),ie.KVO(ve.yQ),ie.KVO(g.zW),ie.KVO(g.NZ),ie.KVO(ue.uU),ie.KVO(se.Vk),ie.KVO(X.yJ),ie.KVO(Z.k_),ie.KVO(g.dU),ie.KVO(Se.Q),ie.KVO(Ce.Br),ie.KVO(Be.a),ie.KVO(g.wt),ie.KVO(J.mZ))}}static{this.\u0275prov=ie.jDH({token:He,factory:He.\u0275fac,providedIn:"root"})}}return He})()},38006:(Bt,z,s)=>{"use strict";s.d(z,{up:()=>n,VC:()=>a});var n=function(c){return c.ServerInfo="ServerInfo",c.AppMetadata="AppMetadata",c.CountryCode="CountryCode",c}(n||{});const l="SharedStorageCache";var d=s(43848),v=s(14714),S=s(75707),y=s(10174),f=s(83915),O=s(26875),P=s(58527),_=s(99469),i=s(72945),r=s(61958);let a=(()=>{class c{constructor(M,D,I){this.sharedStorageService=D,this.appConfig=I,this.logger=M.getLogger("gfn/Shared-Storage-Caching")}readSharedStorageCache(){return this.sharedStorageService.readBlock(l).pipe((0,v.W)(M=>(this.logger.info("Got error reading cache from shared storage:",M),(0,d.of)({}))))}saveItem(M,D){this.logger.info(`Saving the Item ${M} to shared storage cache`);const I={data:D,creationTs:Date.now()};return this.readSharedStorageCache().pipe((0,S.ZZ)(U=>(U[M]=I,this.sharedStorageService.writeBlock(l,U))),(0,v.W)(U=>(this.logger.info(`Error saving the item to the block ${l}: ${U}`),(0,d.of)(I))),(0,y.u)(D))}getItem(M){const D=this.appConfig.sharedStorageCache[M];return this.logger.info(`Get Item ${M}`),this.readSharedStorageCache().pipe((0,f.T)(I=>{const U={};if((0,O.has)(I,M)){this.logger.info(`Found the item ${M} in shared storage cache`);const V=I[M];U.data=V.data,U.expired=V.creationTs+D.cacheDuration<=Date.now()}return U}))}deleteItem(M){return this.logger.info(`Deleting the item: ${M}`),this.readSharedStorageCache().pipe((0,f.T)(D=>(delete D[M],D)),(0,S.ZZ)(D=>this.sharedStorageService.writeBlock(l,D)),(0,v.W)(D=>(this.logger.info(`Error deleting the item ${M} from shared storage cache - ${D}`),(0,d.of)(!1))))}isExpiredValueAllowed(M){return this.appConfig.sharedStorageCache[M].allowExpiredValue}static{this.\u0275fac=function(D){return new(D||c)(P.KVO(_.J6),P.KVO(i.yQ),P.KVO(r.Vk))}}static{this.\u0275prov=P.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})()},88610:(Bt,z,s)=>{"use strict";s.d(z,{Ow:()=>_,RX:()=>y,Tx:()=>O,Vd:()=>P,_Y:()=>d,iV:()=>f,xe:()=>i});var n=s(99469),l=s(87687),d=function(r){return r[r.MaxGpu=2]="MaxGpu",r[r.MaxDisk=3]="MaxDisk",r[r.MaxDisplay=3]="MaxDisplay",r[r.MaxInputDevicePerType=3]="MaxInputDevicePerType",r}(d||{}),y=function(r){return r[r.UNKNOWN=0]="UNKNOWN",r[r.SUCCESS=1]="SUCCESS",r[r.INVALID_PARAM=2]="INVALID_PARAM",r[r.SYN_FAILED=3]="SYN_FAILED",r[r.FIN_FAILED=4]="FIN_FAILED",r[r.AUTH_FAILED=5]="AUTH_FAILED",r[r.POST_FAILED=6]="POST_FAILED",r[r.TEST_IN_PROGRESS=7]="TEST_IN_PROGRESS",r[r.CANCELED=8]="CANCELED",r[r.CAPACITY_FULL=9]="CAPACITY_FULL",r[r.SESSION_EXIST=10]="SESSION_EXIST",r[r.INVALID_DATA=11]="INVALID_DATA",r[r.SETUP_FAILED=12]="SETUP_FAILED",r[r.RETRYABLE_POST_FAILURE=13]="RETRYABLE_POST_FAILURE",r[r.BLOCK_STREAM=14]="BLOCK_STREAM",r}(y||{}),f=function(r){return r.InitialLaunch="initialLaunch",r.StreamerCefInit="streamerCefInit",r.StreamerJsInit="streamerJsInit",r.UpdateCheck="updateCheck",r.PreStreaming="preStreaming",r.ManualLoginEntry="manualLoginEntry",r.AutoLogin="autoLogin",r.PlatformSelection="platformSelection",r.AccountLinking="accountLinking",r.NesAuthorization="nesAuthorization",r.Lbr="Lbr",r.NetworkTest="networkTest",r.SessionCleanup="sessionCleanup",r.SessionQueue="sessionQueue",r.StartSession="startSession",r.StreamerClientSetupDuration="streamerClientSetupDuration",r.StreamerConnectionDuration="streamerConnectionDuration",r.SeatConfigDuration="seatConfigDuration",r.StreamingStartDuration="streamingStartDuration",r}(f||{}),O=function(r){return r.Enabled="ENABLED",r.Disabled="DISABLED",r}(O||{}),P=function(r){return r.Native="Native",r.Browser="Browser",r.GFNSDK="GFNSDK",r.Undefined="undefined",r}(P||{}),_=function(r){return r.iBeta="iBeta",r.Release="Release",r.Undefined="undefined",r}(_||{});const i={[n.Sd.Ethernet]:l.w7B.Ethernet,[n.Sd.WiFi2_4]:l.w7B.Wifi_2_4,[n.Sd.WiFi5_0]:l.w7B.Wifi_5_0,[n.Sd.WiFi6_0]:l.w7B.Wifi_6_0,[n.Sd.WiFiUnknown]:l.w7B.Wifi_Unknown,[n.Sd.Mobile]:l.w7B.Mobile,[n.Sd.Mobile_2G]:l.w7B.Mobile_2G,[n.Sd.Mobile_3G]:l.w7B.Mobile_3G,[n.Sd.Mobile_4G]:l.w7B.Mobile_4G,[n.Sd.Mobile_5G]:l.w7B.Mobile_5G,[n.Sd.Wimax]:l.w7B.Wimax,[n.Sd.Bluetooth]:l.w7B.Bluetooth,[n.Sd.Other]:l.w7B.Other,[n.Sd.Unknown]:l.w7B.Unknown}},87687:(Bt,z,s)=>{"use strict";s.d(z,{$1L:()=>et,$_D:()=>I,$cp:()=>Qi,$sO:()=>Ir,B4z:()=>ca,BAK:()=>Ms,BEl:()=>hi,Bhf:()=>oo,Cv0:()=>P,EBD:()=>He,Fdg:()=>qs,GSb:()=>Hn,GoL:()=>Mn,H$b:()=>Zo,H9T:()=>Qe,HBm:()=>g,HOo:()=>$o,Hgm:()=>B,HjG:()=>Z,I0o:()=>ma,IWs:()=>Ti,Ixb:()=>Ds,J64:()=>ta,JWD:()=>Po,L15:()=>U,LCb:()=>Jr,LQP:()=>lt,LUK:()=>tt,MCB:()=>On,Mwe:()=>xn,N0J:()=>pr,O67:()=>xe,OCG:()=>vo,OOF:()=>Ze,Osh:()=>cs,Osi:()=>se,Pk9:()=>ne,PvP:()=>kr,Q2O:()=>Vn,QF:()=>i,QQA:()=>yt,RXY:()=>Zr,RgL:()=>S,Rhb:()=>ka,RsW:()=>N,Ssl:()=>zr,Sx:()=>fo,T80:()=>W,Tb$:()=>ke,Tjv:()=>Vo,Tv4:()=>Zt,U1f:()=>dr,UJ3:()=>Me,Uqt:()=>br,Uu$:()=>a,V_v:()=>c,Xci:()=>In,YDY:()=>Jn,YRL:()=>Ai,Yjq:()=>ji,Yno:()=>Rn,YwK:()=>Et,Zhy:()=>fa,ZpH:()=>ht,_aO:()=>Yn,_b3:()=>An,_o$:()=>Ut,aa0:()=>zo,ay7:()=>r,c4O:()=>T,cPM:()=>no,ddl:()=>ks,deY:()=>Cr,duU:()=>R,eK6:()=>At,fbL:()=>pa,fbu:()=>be,gho:()=>oa,gvg:()=>Go,h8t:()=>Fo,i6T:()=>ea,iQN:()=>Sn,jQD:()=>Yr,kJn:()=>tl,kKp:()=>at,kQl:()=>gn,kSA:()=>It,key:()=>ui,l1U:()=>$s,mTv:()=>ci,mUs:()=>jt,nzM:()=>$e,p2o:()=>H,ptg:()=>Ci,px4:()=>js,qH9:()=>M,sKj:()=>ue,t4p:()=>Le,tdz:()=>re,uKc:()=>We,uQS:()=>ar,uXT:()=>Wn,uxn:()=>Pi,vWR:()=>ao,vhU:()=>Ji,w7B:()=>Gt,war:()=>X,xEK:()=>Li,xkk:()=>ft,yEy:()=>V,yj4:()=>A,zMM:()=>xi,zTU:()=>le,zcd:()=>Ua});var l=function(Ie){return Ie.Functional="functional",Ie.Technical="technical",Ie.Behavioral="behavioral",Ie}(l||{}),d=function(Ie){return Ie.Anonymous="anonymous",Ie.DeviceOnly="deviceOnly",Ie.DevicePreferred="devicePreferred",Ie.UserPreferred="userPreferred",Ie.UserRequired="userRequired",Ie}(d||{}),S=function(Ie){return Ie.PRODUCT_CHANGE="PRODUCT_CHANGE",Ie.ASSET_CHANGE="ASSET_CHANGE",Ie.SESSION_CHANGE="SESSION_CHANGE",Ie.LAYOUT_CHANGE="LAYOUT_CHANGE",Ie.GSWS_SYNC="GSWS_SYNC",Ie.SECTION_CHANGE="SECTION_CHANGE",Ie.LINKEDACCOUNT_CHANGE="LINKEDACCOUNT_CHANGE",Ie.APP_CHANGE="APP_CHANGE",Ie.SERVER_INFO_SYNC="SERVER_INFO_SYNC",Ie.CONFIGURATION_CHANGE="CONFIGURATION_CHANGE",Ie.SUBSCRIPTION_CHANGE="SUBSCRIPTION_CHANGE",Ie.UNKNOWN="UNKNOWN",Ie.PATCHING_EVENT="PATCHING_EVENT",Ie.KV_STORE_CHANGE="KV_STORE_CHANGE",Ie.LIBRARY_CHANGE="LIBRARY_CHANGE",Ie.PLATFORM_SYNC_CHANGE="PLATFORM_SYNC_CHANGE",Ie.CAMPAIGN_CHANGE="CAMPAIGN_CHANGE",Ie.FAVORITES_CHANGE="FAVORITES_CHANGE",Ie}(S||{}),P=function(Ie){return Ie.EndOfSession="EndOfSession",Ie.Mall="Mall",Ie.Notification="Notification",Ie}(P||{}),i=function(Ie){return Ie.GameShortcutUrl="GameShortcutUrl",Ie}(i||{}),r=function(Ie){return Ie.AddDesktopShortcut="AddDesktopShortcut",Ie.LaunchGame="LaunchGame",Ie.NesAutoAuthorization="NesAutoAuthorization",Ie.LoginWithJarvisOAuth="LoginWithJarvisOAuth",Ie.LoginWithFacebook="LoginWithFacebook",Ie.NesGetCompleteLayouts="NesGetCompleteLayouts",Ie.LoginWithAffiliate="LoginWithAffiliate",Ie.LoginWithGoogle="LoginWithGoogle",Ie.Continue="Continue",Ie.ManageECommerceSubscription="ManageECommerceSubscription",Ie.UninstallGame="UninstallGame",Ie.LoginWithOther="LoginWithOther",Ie.AddGameToLibrary="AddGameToLibrary",Ie.Resend="Resend",Ie.LoginWithStarfleet="LoginWithStarfleet",Ie.ServiceWorkerActivation="ServiceWorkerActivation",Ie.SilentLoginDirectLaunch="SilentLoginDirectLaunch",Ie.LoginviaLoginHint="LoginviaLoginHint",Ie.SilentLoginRedirectFromDMO="SilentLoginRedirectFromDMO",Ie.AutoEntitle="AutoEntitle",Ie.LoginWithStarfleetViaLoginWall="LoginWithStarfleetViaLoginWall",Ie}(r||{}),a=function(Ie){return Ie.Jarvis="Jarvis",Ie.Gfc="Gfc",Ie.Lcars="Lcars",Ie.Grid="Grid",Ie.Cms="Cms",Ie.Aem="Aem",Ie.Survey="Survey",Ie.DR="DR",Ie.RemoteConfig="RemoteConfig",Ie.Starfleet="Starfleet",Ie.Other="Other",Ie.Rating="Rating",Ie.Gfwsl="Gfwsl",Ie.KVStore="KVStore",Ie.GxTarget="GxTarget",Ie.NES="NES",Ie.ALS="ALS",Ie.AwsS3="AwsS3",Ie.PNS="PNS",Ie.UAS="UAS",Ie.UDS="UDS",Ie}(a||{}),c=function(Ie){return Ie.COMMUNICATION_BANNER="COMMUNICATION_BANNER",Ie.UXTEST_BANNER="UXTEST_BANNER",Ie.SURVEY_BANNER="SURVEY_BANNER",Ie.POST_GAME="POST_GAME",Ie.FEEDBACK="FEEDBACK",Ie.NOTIFICATION_BANNER="NOTIFICATION_BANNER",Ie}(c||{}),M=function(Ie){return Ie.Passed="Passed",Ie.Unknown="Unknown",Ie.LbrDone="LbrDone",Ie.Skipped="Skipped",Ie.DialogShown="DialogShown",Ie}(M||{}),I=function(Ie){return Ie.IO="IO",Ie.Network="Network",Ie.General="General",Ie.JSON="JSON",Ie.None="None",Ie.File="File",Ie.Optimization="Optimization",Ie.IPC="IPC",Ie}(I||{}),U=function(Ie){return Ie.Success="Success",Ie.Failure="Failure",Ie}(U||{}),V=function(Ie){return Ie.AutoResume="AutoResume",Ie.DeviceTransition="DeviceTransition",Ie.None="None",Ie}(V||{}),T=function(Ie){return Ie.GetFreestyleFeature="GetFreestyleFeature",Ie.SendUsabilityStudyResponse="SendUsabilityStudyResponse",Ie.GetDeeplinkSupport="GetDeeplinkSupport",Ie.GetCloudSearch="GetCloudSearch",Ie.GetSurveyFeature="GetSurveyFeature",Ie.GetLayoutRefreshInterval="GetLayoutRefreshInterval",Ie.GetUsabilityStudy="GetUsabilityStudy",Ie.GetIgoSupportOnBrowserClient="GetIgoSupportOnBrowserClient",Ie.GetECommerceFeature="GetECommerceFeature",Ie.GetKeyboardLayout="GetKeyboardLayout",Ie.GetAutohighlightFeature="GetAutohighlightFeature",Ie.GetStarfleetPhase1="GetStarfleetPhase1",Ie.GetStarfleetPhase2="GetStarfleetPhase2",Ie.GetQueueETAConfig="GetQueueETAConfig",Ie.GetUpsellMessage="GetUpsellMessage",Ie.GetAllCloudVariables="GetAllCloudVariables",Ie.GetBrowserClientCanary="GetBrowserClientCanary",Ie.GetReservedSKUEnabled="GetReservedSKUEnabled",Ie.GetReservedSKUIBetaFlag="GetReservedSKUIBetaFlag",Ie.GetAnselFeature="GetAnselFeature",Ie.GetGfnBroadcastFeature="GetGfnBroadcastFeature",Ie.GetKBLayoutsConfig="GetKBLayoutsConfig",Ie.GetClipboardPasteConfig="GetClipboardPasteConfig",Ie.GetPathToPurchaseConfig="GetPathToPurchaseConfig",Ie.GetEnableRemoteConfigOnGXT="GetEnableRemoteConfigOnGXT",Ie.GetPunctualUIConfig="GetPunctualUIConfig",Ie.GetGameOwnershipABConfig="GetGameOwnershipABConfig",Ie.GetEnableBrowserIGSS="GetEnableBrowserIGSS",Ie.GetClientIMESupportedConfig="GetClientIMESupportedConfig",Ie.GetGameLaunchUniversalConfig="GetGameLaunchUniversalConfig",Ie.Other="Other",Ie}(T||{}),N=function(Ie){return Ie.FingerprintChanged="FingerprintChanged",Ie.ZoneListEmpty="ZoneListEmpty",Ie.PolicyCheckFailed="PolicyCheckFailed",Ie.Manual="Manual",Ie.CachedZoneNotStored="CachedZoneNotStored",Ie.ServerInfoFailed="ServerInfoFailed",Ie.CachedZoneNotAvailable="CachedZoneNotAvailable",Ie.NewZonesAdded="NewZonesAdded",Ie}(N||{}),g=function(Ie){return Ie.App_Exit="App_Exit",Ie.Dialog_Closed="Dialog_Closed",Ie.Goto_Settings="Goto_Settings",Ie.Continue_Login="Continue_Login",Ie.Proceed_Connect="Proceed_Connect",Ie.Paste_Confirmation="Paste_Confirmation",Ie.Continue_Play_Anyway="Continue_Play_Anyway",Ie.Continue_Add_Playtime="Continue_Add_Playtime",Ie.Continue_To_Game_Store="Continue_To_Game_Store",Ie}(g||{}),R=function(Ie){return Ie.Release_Highlights="Release_Highlights",Ie.Account_Link_Required="Account_Link_Required",Ie.Account_Link_Expired="Account_Link_Expired",Ie.Account_Link_Expires_Today="Account_Link_Expires_Today",Ie.Account_Link_Expires_Soon="Account_Link_Expires_Soon",Ie.Scheduled_Maintenance_Warning="Scheduled_Maintenance_Warning",Ie.Unsupported_Browser_Or_Platform_Load="Unsupported_Browser_Or_Platform_Load",Ie.Unsupported_Browser_Or_Platform_Login="Unsupported_Browser_Or_Platform_Login",Ie.Unsupported_Browser_Or_Platform_Game_Launch="Unsupported_Browser_Or_Platform_Game_Launch",Ie.InStream_Paste_Gesture_Dialog="InStream_Paste_Gesture_Dialog",Ie.Playtime_Not_Added="Playtime_Not_Added",Ie.Low_State_Game_Launch="Low_State_Game_Launch",Ie.Limited_State_Game_Launch="Limited_State_Game_Launch",Ie.Loading_Screen_Upgrade="Loading_Screen_Upgrade",Ie.Loading_Screen_Get_Day_Pass="Loading_Screen_Get_Day_Pass",Ie.Loading_Screen_Add_Playtime="Loading_Screen_Add_Playtime",Ie.Game_Launch_Unplayable_Error="Game_Launch_Unplayable_Error",Ie.Buy_Protection_Information="Buy_Protection_Information",Ie.Unknown="Unknown",Ie}(R||{}),B=function(Ie){return Ie.NVB_PROFILE_ROAMING_720P_30FPS="NVB_PROFILE_ROAMING_720P_30FPS",Ie.NVB_PROFILE_GAMING_1080P_60FPS="NVB_PROFILE_GAMING_1080P_60FPS",Ie.NT_1280_800_60="NT_1280_800_60",Ie.NVB_PROFILE_PROFESSIONAL="NVB_PROFILE_PROFESSIONAL",Ie.NVB_PROFILE_GAMING_720P_30FPS="NVB_PROFILE_GAMING_720P_30FPS",Ie.NT_1920_1200_60="NT_1920_1200_60",Ie.NT_1920_1200_30="NT_1920_1200_30",Ie.NT_1366_768_30="NT_1366_768_30",Ie.NT_1366_768_60="NT_1366_768_60",Ie.NT_1680_1050_30="NT_1680_1050_30",Ie.NT_1280_800_30="NT_1280_800_30",Ie.NT_1440_900_30="NT_1440_900_30",Ie.NT_1680_1050_60="NT_1680_1050_60",Ie.NVB_PROFILE_GAMING="NVB_PROFILE_GAMING",Ie.NVB_PROFILE_ROAMING_720P_60FPS="NVB_PROFILE_ROAMING_720P_60FPS",Ie.NT_1440_900_60="NT_1440_900_60",Ie.NVB_PROFILE_GAMING_720P_60FPS="NVB_PROFILE_GAMING_720P_60FPS",Ie.NVB_PROFILE_GAMING_1080P_30FPS="NVB_PROFILE_GAMING_1080P_30FPS",Ie.NVB_PROFILE_DEFAULT="NVB_PROFILE_DEFAULT",Ie}(B||{}),X=function(Ie){return Ie.Nvidia_Access_Denied="Nvidia_Access_Denied",Ie.Unknown="Unknown",Ie.Rate_Limited="Rate_Limited",Ie.Platform_Access_Denied="Platform_Access_Denied",Ie.Platform_Profile_Denied="Platform_Profile_Denied",Ie.Success="Success",Ie.Sync_Failed="Sync_Failed",Ie.Sync_Denied="Sync_Denied",Ie.Profile_Not_Created="Profile_Not_Created",Ie.Sync_Success="Sync_Success",Ie}(X||{}),H=function(Ie){return Ie.DismissManual="DismissManual",Ie.Completed="Completed",Ie.Notify="Notify",Ie.DismissAppExit="DismissAppExit",Ie.DismissLogout="DismissLogout",Ie.DismissSleep="DismissSleep",Ie.DismissTimeout="DismissTimeout",Ie.Participate="Participate",Ie.DismissManualPostMinimize="DismissManualPostMinimize",Ie.NotifyPostMinimize="NotifyPostMinimize",Ie.ParticpatePostMinimize="ParticpatePostMinimize",Ie.Minimized="Minimized",Ie.Deferred="Deferred",Ie.LearnMoreClicked="LearnMoreClicked",Ie}(H||{}),re=function(Ie){return Ie.Dev="Dev",Ie.Release="Release",Ie.IBeta="IBeta",Ie.Autoplay="Autoplay",Ie}(re||{}),ue=function(Ie){return Ie.StreamingClient="StreamingClient",Ie.MallClient="MallClient",Ie.StoreLibrary="StoreLibrary",Ie.Unknown="Unknown",Ie.BackgroundAgent="BackgroundAgent",Ie}(ue||{}),se=function(Ie){return Ie.UserConsented="UserConsented",Ie.NotShown="NotShown",Ie.UserDidNotConsent="UserDidNotConsent",Ie}(se||{}),Z=function(Ie){return Ie.Adaptive="Adaptive",Ie.Off="Off",Ie.On="On",Ie}(Z||{}),He=function(Ie){return Ie.UpdBufferTips="UpdBufferTips",Ie.PlatformSelection="PlatformSelection",Ie.PlatformChangeConsent="PlatformChangeConsent",Ie.Redeem="Redeem",Ie.ManualLogout="ManualLogout",Ie.StreamerBackNavigation="StreamerBackNavigation",Ie.Settings="Settings",Ie.NetworkTroubleshooting="NetworkTroubleshooting",Ie.AllGames="AllGames",Ie.JoinGfn="JoinGfn",Ie.AddGameToLibrary="AddGameToLibrary",Ie.ManageMembership="ManageMembership",Ie.ViewMembershipDetails="ViewMembershipDetails",Ie.MarketingMarquee="MarketingMarquee",Ie.ReleaseHighlights="ReleaseHighlights",Ie.ShareGame="ShareGame",Ie.LaunchGame="LaunchGame",Ie.AddGameShortcut="AddGameShortcut",Ie.MyLibrary="MyLibrary",Ie.ViewGameDetails="ViewGameDetails",Ie.UninstallGame="UninstallGame",Ie.AccountManagementSso="AccountManagementSso",Ie.Upgrade="Upgrade",Ie.InvokeSearch="InvokeSearch",Ie.AddBrowserShortcut="AddBrowserShortcut",Ie.AccountMenu="AccountMenu",Ie.OpenClientIME="OpenClientIME",Ie.OpenFeedbackDialog="OpenFeedbackDialog",Ie.OpenOnScreenKeyboard="OpenOnScreenKeyboard",Ie.CloseOnScreenKeyboard="CloseOnScreenKeyboard",Ie.PasteClipboardText="PasteClipboardText",Ie.ShowVirtualGamepad="ShowVirtualGamepad",Ie.ToggleMicrophone="ToggleMicrophone",Ie.ToggleNetworkWarnings="ToggleNetworkWarnings",Ie.QuitGame="QuitGame",Ie.LearnMoreAboutStreamingProfiles="LearnMoreAboutStreamingProfiles",Ie.SeeMore="SeeMore",Ie.FilterTile="FilterTile",Ie.PathToPurchase="PathToPurchase",Ie.PromoCTA="PromoCTA",Ie.Unmute="Unmute",Ie.Mute="Mute",Ie.AddPlaytime="AddPlaytime",Ie.ViewPlaytime="ViewPlaytime",Ie.HowPlaytimeWorksKBA="HowPlaytimeWorksKBA",Ie.LimitedFeaturesKBA="LimitedFeaturesKBA",Ie.GetDayPass="GetDayPass",Ie.AddDayPass="AddDayPass",Ie.RefreshUserSubscription="RefreshUserSubscription",Ie.AddToFavorite="AddToFavorite",Ie.RemoveFromFavorite="RemoveFromFavorite",Ie.ClickedUrl="ClickedUrl",Ie.ChangePreferredGameLanguage="ChangePreferredGameLanguage",Ie.SkuBasedCatalogLearnMoreKBA="SkuBasedCatalogLearnMoreKBA",Ie.VisitSupport="VisitSupport",Ie.MarketingSectionTile="MarketingSectionTile",Ie}(He||{}),Me=function(Ie){return Ie.Keyboard="Keyboard",Ie.Gamepad="Gamepad",Ie.Mouse="Mouse",Ie.Touch="Touch",Ie.Unknown="Unknown",Ie}(Me||{}),A=function(Ie){return Ie.Joystick="Joystick",Ie.Mouse="Mouse",Ie.Unknown="Unknown",Ie.Keyboard="Keyboard",Ie.GamePad="GamePad",Ie}(A||{}),ne=function(Ie){return Ie.StreamerUsedFreeUpsell="StreamerUsedFreeUpsell",Ie.StreamerQueueUpsell="StreamerQueueUpsell",Ie.StreamerNoFreeUpsell="StreamerNoFreeUpsell",Ie.StreamerPostSessionFreeGaaSUpsell="StreamerPostSessionFreeGaaSUpsell",Ie.StreamerPostSessionUpsell="StreamerPostSessionUpsell",Ie.StreamerPostSessionAnonGaaSUpsell="StreamerPostSessionAnonGaaSUpsell",Ie.Standard="Standard",Ie}(ne||{}),W=function(Ie){return Ie.UNDEFINED="UNDEFINED",Ie.TRUE="TRUE",Ie.FALSE="FALSE",Ie}(W||{}),le=function(Ie){return Ie.AUTH_FAILED="AUTH_FAILED",Ie.SESSION_EXIST="SESSION_EXIST",Ie.RETRYABLE_POST_FAILURE="RETRYABLE_POST_FAILURE",Ie.BLOCK_STREAM="BLOCK_STREAM",Ie.WIFI_2_4="WIFI_2_4",Ie.INVALID_PARAM="INVALID_PARAM",Ie.TEST_IN_PROGRESS="TEST_IN_PROGRESS",Ie.POST_FAILED="POST_FAILED",Ie.NA="NA",Ie.FAILED="FAILED",Ie.INVALID_DATA="INVALID_DATA",Ie.CANCELED="CANCELED",Ie.SETUP_FAILED="SETUP_FAILED",Ie.PacketLoss="PacketLoss",Ie.UNKNOWN="UNKNOWN",Ie.SYN_FAILED="SYN_FAILED",Ie.FIN_FAILED="FIN_FAILED",Ie.CAPACITY_FULL="CAPACITY_FULL",Ie}(le||{}),At=function(Ie){return Ie.Unknown="Unknown",Ie.NotStarted="NotStarted",Ie.Started="Started",Ie.Completed="Completed",Ie.Canceled="Canceled",Ie.Paused="Paused",Ie.Resumed="Resumed",Ie}(At||{}),Le=function(Ie){return Ie.Landscape="Landscape",Ie.Portrait="Portrait",Ie.Unknown="Unknown",Ie}(Le||{}),Et=function(Ie){return Ie.Unknown="Unknown",Ie.Windows="Windows",Ie.Mac="Mac",Ie.Android="Android",Ie.Web="Web",Ie.Linux="Linux",Ie}(Et||{}),$e=function(Ie){return Ie.PlayGame="PlayGame",Ie.ViewGame="ViewGame",Ie.None="None",Ie}($e||{}),Ze=function(Ie){return Ie.GetServerInformation="GetServerInformation",Ie.JARVIS_Get_User_Token="JARVIS_Get_User_Token",Ie.Image_Retrieval_Tile_Feature="Image_Retrieval_Tile_Feature",Ie.JARVIS_Set_Pin="JARVIS_Set_Pin",Ie.JARVIS_Redeem_Delegate_Token="JARVIS_Redeem_Delegate_Token",Ie.Append_Client_Data="Append_Client_Data",Ie.Get_Client_Settings="Get_Client_Settings",Ie.NES_Cancel_Subscription="NES_Cancel_Subscription",Ie.Get_Client_Data="Get_Client_Data",Ie.GetAppVariants="GetAppVariants",Ie.NES_Update_Subscription="NES_Update_Subscription",Ie.GetAppData="GetAppData",Ie.Layout_Get_Tile_Data="Layout_Get_Tile_Data",Ie.NES_Get_PlayTime="NES_Get_PlayTime",Ie.InitiateDownload="InitiateDownload",Ie.DR_Get_Product="DR_Get_Product",Ie.NES_Install="NES_Install",Ie.NES_Get_Subscriptions="NES_Get_Subscriptions",Ie.NES_Get_Products="NES_Get_Products",Ie.JARVIS_Chain_Session="JARVIS_Chain_Session",Ie.FCM_Checkin="FCM_Checkin",Ie.GetPrivacyPolicy="GetPrivacyPolicy",Ie.NES_Get_Credits="NES_Get_Credits",Ie.JARVIS_Get_Third_Party_Provider_Info="JARVIS_Get_Third_Party_Provider_Info",Ie.FCM_Subscribe="FCM_Subscribe",Ie.FCM_Unregister="FCM_Unregister",Ie.JARVIS_Request_Email_Verify="JARVIS_Request_Email_Verify",Ie.JARVIS_Verify_Pin="JARVIS_Verify_Pin",Ie.GetCloudVariable="GetCloudVariable",Ie.CheckForUpdate="CheckForUpdate",Ie.DR_Put_Cart="DR_Put_Cart",Ie.Get_Client_Token="Get_Client_Token",Ie.FCM_Unsubscribe="FCM_Unsubscribe",Ie.Streaming_GetFeedbackToken="Streaming_GetFeedbackToken",Ie.GetRemoteConfig="GetRemoteConfig",Ie.Get_Release_Highlights="Get_Release_Highlights",Ie.Get_User_Info="Get_User_Info",Ie.PrepareToDownload="PrepareToDownload",Ie.NES_Get_Resource="NES_Get_Resource",Ie.DR_Get_Payment="DR_Get_Payment",Ie.GetFeatureRollout="GetFeatureRollout",Ie.NES_Get_ServiceUrls="NES_Get_ServiceUrls",Ie.JARVIS_Get_Login_Token="JARVIS_Get_Login_Token",Ie.JARVIS_Get_Delegate_Token="JARVIS_Get_Delegate_Token",Ie.Set_Client_Data="Set_Client_Data",Ie.Layout_Get_Section="Layout_Get_Section",Ie.DR_Edit_Payment="DR_Edit_Payment",Ie.FeedbackHead="FeedbackHead",Ie.DR_Empty_Cart="DR_Empty_Cart",Ie.NES_Get_Apps="NES_Get_Apps",Ie.DR_Get_Orders="DR_Get_Orders",Ie.FCM_Register="FCM_Register",Ie.DR_Apply_Shopper="DR_Apply_Shopper",Ie.DR_Get_Token="DR_Get_Token",Ie.GetTermsAndConditions="GetTermsAndConditions",Ie.GetSurvey="GetSurvey",Ie.Layout_Get_Sections="Layout_Get_Sections",Ie.JARVIS_Get_Pin="JARVIS_Get_Pin",Ie.Get_Access_Token="Get_Access_Token",Ie.Delete_Client_Data="Delete_Client_Data",Ie.GetRatingsInfo="GetRatingsInfo",Ie.FeedbackAttachment="FeedbackAttachment",Ie.Image_Retrieval_Tile_Game="Image_Retrieval_Tile_Game",Ie.NES_Uninstall="NES_Uninstall",Ie.DR_Submit_Cart="DR_Submit_Cart",Ie.GetLayout="GetLayout",Ie.SendSurveyResponse="SendSurveyResponse",Ie.Feature_Tile_Image_Retrieval="Feature_Tile_Image_Retrieval",Ie.JARVIS_Get_Session_Token="JARVIS_Get_Session_Token",Ie.GetSpecificServerInformation="GetSpecificServerInformation",Ie.Layout_Manager_Data_Retrieval="Layout_Manager_Data_Retrieval",Ie.JARVIS_Get_User_Info="JARVIS_Get_User_Info",Ie.Streaming_GetJarvisDelegateToken="Streaming_GetJarvisDelegateToken",Ie.NES_Get_Product_Credits="NES_Get_Product_Credits",Ie.DR_Get_Cart="DR_Get_Cart",Ie.GetApps="GetApps",Ie.LinkAccount="LinkAccount",Ie.UnlinkAccount="UnlinkAccount",Ie.GetOAuthURL="GetOAuthURL",Ie.LibrarySync="LibrarySync",Ie.Other="Other",Ie.FetchJSFile="FetchJSFile",Ie.FetchLocaleJson="FetchLocaleJson",Ie.GetPanel="GetPanel",Ie.PNS_Registrations="PNS_Registrations",Ie.PNS_Unregister="PNS_Unregister",Ie.GetUserAccount="GetUserAccount",Ie.NES_GetClientStreamingQuality="NES_GetClientStreamingQuality",Ie.GetCampaigns="GetCampaigns",Ie.AcquireUser="AcquireUser",Ie.GetAcquisitionState="GetAcquisitionState",Ie.GetFilterGroupAndSortOrderDefinitions="GetFilterGroupAndSortOrderDefinitions",Ie.GetLoginWallData="GetLoginWallData",Ie.GetLoginWallStrings="GetLoginWallStrings",Ie.AddFavoriteApp="AddFavoriteApp",Ie.RemoveFavoriteApp="RemoveFavoriteApp",Ie.AddOwnedVariant="AddOwnedVariant",Ie.RemoveOwnedVariant="RemoveOwnedVariant",Ie.SelectOwnedVariant="SelectOwnedVariant",Ie.UdsEndOfSessionReport="UdsEndOfSessionReport",Ie.UdsSummonedReport="UdsSummonedReport",Ie.OverallGfnSupportedLanguages="OverallGfnSupportedLanguages",Ie}(Ze||{}),Qe=function(Ie){return Ie.Unknown="Unknown",Ie.Connected="Connected",Ie.Disconnected="Disconnected",Ie}(Qe||{}),at=function(Ie){return Ie.Excellent="Excellent",Ie.Poor="Poor",Ie.Bad="Bad",Ie.Unknown="Unknown",Ie}(at||{}),It=function(Ie){return Ie.SelfUpdateInstallAuto="SelfUpdateInstallAuto",Ie.SelfUpdateInstallManual="SelfUpdateInstallManual",Ie.CustomOfflinePage="CustomOfflinePage",Ie.LaunchUI="LaunchUI",Ie.FirstApplicationInstall="FirstApplicationInstall",Ie.LaunchPwaUI="LaunchPwaUI",Ie.ScheduledMaintenanceTimer="ScheduledMaintenanceTimer",Ie.SessionLengthTimer="SessionLengthTimer",Ie.UDSToastShown="UDSToastShown",Ie}(It||{}),We=function(Ie){return Ie.OobeAgreeAndContinue="OobeAgreeAndContinue",Ie.OobeTermsOfUseHyperlink="OobeTermsOfUseHyperlink",Ie}(We||{}),xe=function(Ie){return Ie.No="No",Ie.Yes="Yes",Ie.None="None",Ie}(xe||{}),lt=function(Ie){return Ie.GameNotFound="GameNotFound",Ie.BadRequest="BadRequest",Ie.Unknown="Unknown",Ie.ServerError="ServerError",Ie.ClipboardError="ClipboardError",Ie.Unauthorized="Unauthorized",Ie.PartnerAuthFailed="PartnerAuthFailed",Ie.ZoneNotFound="ZoneNotFound",Ie.RedirectURLNotAllowed="RedirectURLNotAllowed",Ie.None="None",Ie}(lt||{}),ft=function(Ie){return Ie.AccountLinked="AccountLinked",Ie.Disconnect="Disconnect",Ie.ResyncAfterResolve="ResyncAfterResolve",Ie.ResyncAfterProfileCreate="ResyncAfterProfileCreate",Ie.Sync="Sync",Ie.Resync="Resync",Ie.ReconnectForOnboarding="ReconnectForOnboarding",Ie.Reconnect="Reconnect",Ie.ReconnectAfterSyncDenied="ReconnectAfterSyncDenied",Ie.ResyncAfterSyncFailed="ResyncAfterSyncFailed",Ie}(ft||{}),ht=function(Ie){return Ie.FingerprintChanged="FingerprintChanged",Ie.ClientUpdated="ClientUpdated",Ie.StreamerNetworkError="StreamerNetworkError",Ie.NetworkTestCancelled="NetworkTestCancelled",Ie.OverrideFlagSet="OverrideFlagSet",Ie.MaxDisplayRequired="MaxDisplayRequired",Ie.PolicyCheckFailed="PolicyCheckFailed",Ie.Manual="Manual",Ie.RedResult="RedResult",Ie.NetworkTestFailed="NetworkTestFailed",Ie.MaxSubscriptionProfileUpgraded="MaxSubscriptionProfileUpgraded",Ie}(ht||{}),tt=function(Ie){return Ie.SolidState="SolidState",Ie.Unknown="Unknown",Ie.Rotational="Rotational",Ie}(tt||{}),et=function(Ie){return Ie.Streamer="Streamer",Ie.Gallery="Gallery",Ie.Layout_L0="Layout_L0",Ie.Settings="Settings",Ie.Layout_L1="Layout_L1",Ie}(et||{}),Gt=function(Ie){return Ie.Other="Other",Ie.Ethernet="Ethernet",Ie.Unknown="Unknown",Ie.Wifi_2_4="Wifi_2_4",Ie.Wifi_5_0="Wifi_5_0",Ie.Wifi_6_0="Wifi_6_0",Ie.Wifi_Unknown="Wifi_Unknown",Ie.Mobile="Mobile",Ie.Mobile_2G="Mobile_2G",Ie.Mobile_3G="Mobile_3G",Ie.Mobile_4G="Mobile_4G",Ie.Mobile_5G="Mobile_5G",Ie.Wimax="Wimax",Ie.Bluetooth="Bluetooth",Ie}(Gt||{}),yt=function(Ie){return Ie.Manual="Manual",Ie.Automatic="Automatic",Ie}(yt||{}),ke=function(Ie){return Ie.SystemInfo="SystemInfo",Ie}(ke||{}),be=function(Ie){return Ie.StreamerConnecting="StreamerConnecting",Ie.CancelledLoginCompleted="CancelledLoginCompleted",Ie.RagnarokLaunchError="RagnarokLaunchError",Ie.Success="Success",Ie.StreamerQueueUpsell="StreamerQueueUpsell",Ie.HTTPError="HTTPError",Ie.StreamerPostSessionFreeGaaSUpsell="StreamerPostSessionFreeGaaSUpsell",Ie.StreamerQueueApology="StreamerQueueApology",Ie.StreamerPostSessionUpsell="StreamerPostSessionUpsell",Ie.NesAuthFailed="NesAuthFailed",Ie.StreamerPostSessionAnonGaaSUpsell="StreamerPostSessionAnonGaaSUpsell",Ie.GeronimoLaunchError="GeronimoLaunchError",Ie.Failure="Failure",Ie.AppExit="AppExit",Ie.StreamerUsedFreeUpsell="StreamerUsedFreeUpsell",Ie.JarvisPinAuthFailed="JarvisPinAuthFailed",Ie.StreamerLoading="StreamerLoading",Ie.StreamerNoFreeUpsell="StreamerNoFreeUpsell",Ie.NesNotEntitled="NesNotEntitled",Ie.EmailNotVerified="EmailNotVerified",Ie.ServerError="ServerError",Ie.ECommercePaywallLaunchError="ECommercePaywallLaunchError",Ie.NetworkInfoError="NetworkInfoError",Ie.LoginFailed="LoginFailed",Ie.GeronimoNetworkTestError="GeronimoNetworkTestError",Ie.NetworkTestSdkError="NetworkTestSdkError",Ie.EmptyLibrary="EmptyLibrary",Ie.GetLayoutError="GetLayoutError",Ie.ClientError="ClientError",Ie.ClientOffline="ClientOffline",Ie.Other="Other",Ie.ServiceWorkerActivationOngoing="ServiceWorkerActivationOngoing",Ie.ServiceWorkerActivated="ServiceWorkerActivated",Ie.UALoginComplete="UALoginComplete",Ie.UALoginFailed="UALoginFailed",Ie.UALoginPending="UALoginPending",Ie.UALoginPendingTimedOut="UALoginPendingTimedOut",Ie.UALoginPendingSuccess="UALoginPendingSuccess",Ie.UALoginPendingFailure="UALoginPendingFailure",Ie.ServiceWorkerRegistrationFailed="ServiceWorkerRegistrationFailed",Ie.ServiceWorkerRegistrationSuccess="ServiceWorkerRegistrationSuccess",Ie.ServiceWorkerNotSupported="ServiceWorkerNotSupported",Ie.ServiceWorkerInstalled="ServiceWorkerInstalled",Ie.ServiceWorkerActivationError="ServiceWorkerActivationError",Ie.Registered="Registered",Ie.NotRegistered="NotRegistered",Ie.Played="Played",Ie}(be||{}),Zt=function(Ie){return Ie.UpdateSuccess="UpdateSuccess",Ie.UpdateFailure="UpdateFailure",Ie.QueryFailure="QueryFailure",Ie.DownloadStarted="DownloadStarted",Ie.Query="Query",Ie.IPCReceived="IPCReceived",Ie.UpdateInitiated="UpdateInitiated",Ie.IPCSent="IPCSent",Ie.DownloadFailure="DownloadFailure",Ie.Error="Error",Ie.Optimization="Optimization",Ie.Downloaded="Downloaded",Ie.Cancelled="Cancelled",Ie}(Zt||{}),On=function(Ie){return Ie.ScreenOobeWelcome="ScreenOobeWelcome",Ie.ScreenToastMessage="ScreenToastMessage",Ie.ScreenMainToolbar="ScreenMainToolbar",Ie.ScreenMarquee="ScreenMarquee",Ie.ScreenAllGames="ScreenAllGames",Ie.ScreenAccountMenu="ScreenAccountMenu",Ie.ScreenSettings="ScreenSettings",Ie.ScreenAutoLogin="ScreenAutoLogin",Ie.ScreenMontage="ScreenMontage",Ie.ScreenEmailVerification="ScreenEmailVerification",Ie.ScreenPreview="ScreenPreview",Ie.ScreenGallery="ScreenGallery",Ie.ScreenStreamer="ScreenStreamer",Ie.ScreenMyLibrary="ScreenMyLibrary",Ie.ScreenJoinGfnDialog="ScreenJoinGfnDialog",Ie.ScreenGridView="ScreenGridView",Ie.ScreenEvidencePanel="ScreenEvidencePanel",Ie.ScreenMallHome="ScreenMallHome",Ie.ScreenPlatformSelectionDialog="ScreenPlatformSelectionDialog",Ie.ScreenSwitchProvider="ScreenSwitchProvider",Ie.ScreenUpgradeBanner="ScreenUpgradeBanner",Ie.ScreenDesktopShortcut="ScreenDesktopShortcut",Ie.ScreenPlaytimeNotAddedDialog="ScreenPlaytimeNotAddedDialog",Ie.ScreenAddPlaytimeBanner="ScreenAddPlaytimeBanner",Ie.ScreenLimitedStateGameLaunchDialog="ScreenLimitedStateGameLaunchDialog",Ie.ScreenLowStateGameLaunchDialog="ScreenLowStateGameLaunchDialog",Ie.ScreenLowPlaytimeDayPassBanner="ScreenLowPlaytimeDayPassBanner",Ie.ScreenDayPassExpiryBanner="ScreenDayPassExpiryBanner",Ie.ScreenLowPlaytimeDayPassDialog="ScreenLowPlaytimeDayPassDialog",Ie.ScreenHelpMenu="ScreenHelpMenu",Ie}(On||{}),Ji=function(Ie){return Ie.Unknown="Unknown",Ie.GeForceNOW="GeForceNOW",Ie.External="External",Ie.Deeplink="Deeplink",Ie}(Ji||{}),jt=function(Ie){return Ie.TOKEN_REGISTRATION="TOKEN_REGISTRATION",Ie.DISPATCH_NOTIFICATION="DISPATCH_NOTIFICATION",Ie.DEVICE_REGISTRATION="DEVICE_REGISTRATION",Ie.CLIENT_SERVER_COMMUNICATION="CLIENT_SERVER_COMMUNICATION",Ie.SUBSCRIPTION="SUBSCRIPTION",Ie.PAYLOAD_DECRYPTION="PAYLOAD_DECRYPTION",Ie.GENERAL="GENERAL",Ie}(jt||{}),gn=function(Ie){return Ie.Join="Join",Ie.Close="Close",Ie.Login="Login",Ie}(gn||{}),ui=function(Ie){return Ie.NNS="NNS",Ie.PNS="PNS",Ie}(ui||{}),pr=function(Ie){return Ie.Video="Video",Ie.Audio="Audio",Ie}(pr||{}),zr=function(Ie){return Ie.Success="Success",Ie.Failure="Failure",Ie}(zr||{}),An=function(Ie){return Ie.SessionStart="SessionStart",Ie.SessionStop="SessionStop",Ie.SessionConsentDenied="SessionConsentDenied",Ie}(An||{}),Jn=function(Ie){return Ie.Success="Success",Ie.Failure="Failure",Ie.Unknown="Unknown",Ie}(Jn||{}),hi=function(Ie){return Ie.Full="Full",Ie.Low="Low",Ie.Limited="Limited",Ie}(hi||{}),xi=function(Ie){return Ie.Desktop="Desktop",Ie.Mobile="Mobile",Ie.Game="Game",Ie.Unknown="Unknown",Ie}(xi||{}),xn=function(Ie){return Ie.UpdateCheckAttemptsExhausted="UpdateCheckAttemptsExhausted",Ie.DownloadAttemptExhausted="DownloadAttemptExhausted",Ie.InstallationAttemptExhausted="InstallationAttemptExhausted",Ie.Banner="Banner",Ie}(xn||{}),Yn=function(Ie){return Ie.PopupShown="PopupShown",Ie.RelaunchNow="RelaunchNow",Ie.Redirect="Redirect",Ie}(Yn||{}),Ci=function(Ie){return Ie.FromMall="FromMall",Ie.FromStreamer="FromStreamer",Ie}(Ci||{});const ln={CaptureEvent:{name:"CaptureEvent",gdprLevel:l.Functional,personalization:d.UserPreferred},GalleryContentEvent:{name:"GalleryContentEvent",gdprLevel:l.Functional,personalization:d.UserPreferred},ClientAudioError:{name:"ClientAudioError",gdprLevel:l.Technical,personalization:d.UserPreferred},AnselFreestyleError:{name:"AnselFreestyleError",gdprLevel:l.Functional,personalization:d.UserPreferred},HighlightsGameSetting:{name:"HighlightsGameSetting",gdprLevel:l.Functional,personalization:d.UserPreferred},TextSearch:{name:"TextSearch",gdprLevel:l.Behavioral,personalization:d.UserPreferred},ProcessStarted:{name:"ProcessStarted",gdprLevel:l.Functional,personalization:d.UserPreferred},MicrophoneSettingChange:{name:"MicrophoneSettingChange",gdprLevel:l.Functional,personalization:d.UserPreferred},MicrophoneInitialized:{name:"MicrophoneInitialized",gdprLevel:l.Functional,personalization:d.UserPreferred},CheckGFN:{name:"CheckGFN",gdprLevel:l.Functional,personalization:d.UserPreferred},UIAction:{name:"UIAction",gdprLevel:l.Functional,personalization:d.UserPreferred},QueueEtaUpgradeClicked:{name:"QueueEtaUpgradeClicked",gdprLevel:l.Functional,personalization:d.UserPreferred},QueueEtaAddPlaytimeClicked:{name:"QueueEtaAddPlaytimeClicked",gdprLevel:l.Technical,personalization:d.UserPreferred},AudioNotificationEvent:{name:"AudioNotificationEvent",gdprLevel:l.Technical,personalization:d.UserPreferred},PopUpDialogClosed:{name:"PopUpDialogClosed",gdprLevel:l.Technical,personalization:d.UserPreferred},NetworkTest_Exception_Event:{name:"NetworkTest_Exception_Event",gdprLevel:l.Technical,personalization:d.UserPreferred},Game_Launch_Event:{name:"Game_Launch_Event",gdprLevel:l.Functional,personalization:d.UserPreferred},Game_Quit_Event:{name:"Game_Quit_Event",gdprLevel:l.Functional,personalization:d.UserPreferred},LaunchProcess:{name:"LaunchProcess",gdprLevel:l.Functional,personalization:d.UserPreferred},ClientImeOpenEvent:{name:"ClientImeOpenEvent",gdprLevel:l.Technical,personalization:d.UserPreferred},OpenedIGO:{name:"OpenedIGO",gdprLevel:l.Functional,personalization:d.UserPreferred},GalleryPlayedVideo:{name:"GalleryPlayedVideo",gdprLevel:l.Behavioral,personalization:d.UserPreferred},AnselFreestyleFeatureDisabled:{name:"AnselFreestyleFeatureDisabled",gdprLevel:l.Technical,personalization:d.UserPreferred},SettingSnapshot:{name:"SettingSnapshot",gdprLevel:l.Behavioral,personalization:d.UserPreferred},Application_Install:{name:"Application_Install",gdprLevel:l.Functional,personalization:d.UserPreferred},QueueAbandoned:{name:"QueueAbandoned",gdprLevel:l.Functional,personalization:d.UserPreferred},OwnershipSyncEvent:{name:"OwnershipSyncEvent",gdprLevel:l.Functional,personalization:d.UserPreferred},PopUpDialogShown:{name:"PopUpDialogShown",gdprLevel:l.Functional,personalization:d.UserPreferred},PushNotificationReceived:{name:"PushNotificationReceived",gdprLevel:l.Functional,personalization:d.UserPreferred},UITransition:{name:"UITransition",gdprLevel:l.Behavioral,personalization:d.UserPreferred},OOBE_Accept:{name:"OOBE_Accept",gdprLevel:l.Functional,personalization:d.UserPreferred},RoutingStatus:{name:"RoutingStatus",gdprLevel:l.Functional,personalization:d.UserPreferred},CrashInfo:{name:"CrashInfo",gdprLevel:l.Functional,personalization:d.UserPreferred},HTTPFailure:{name:"HTTPFailure",gdprLevel:l.Functional,personalization:d.UserPreferred},AnselFreestyleSession:{name:"AnselFreestyleSession",gdprLevel:l.Functional,personalization:d.UserPreferred},PushNotificationTokenRegistered:{name:"PushNotificationTokenRegistered",gdprLevel:l.Functional,personalization:d.UserPreferred},AutoUpdate:{name:"AutoUpdate",gdprLevel:l.Functional,personalization:d.UserPreferred},LayoutTelemetry:{name:"LayoutTelemetry",gdprLevel:l.Functional,personalization:d.UserPreferred},BrowserClientCanary:{name:"BrowserClientCanary",gdprLevel:l.Functional,personalization:d.UserPreferred},HTTPSuccess:{name:"HTTPSuccess",gdprLevel:l.Functional,personalization:d.UserPreferred},SDKCallResult:{name:"SDKCallResult",gdprLevel:l.Functional,personalization:d.UserPreferred},Drag:{name:"Drag",gdprLevel:l.Technical,personalization:d.UserPreferred},HighlightsIndividualGameToggle:{name:"HighlightsIndividualGameToggle",gdprLevel:l.Behavioral,personalization:d.UserPreferred},NetworkTest:{name:"NetworkTest",gdprLevel:l.Functional,personalization:d.UserPreferred},GFNSession:{name:"GFNSession",gdprLevel:l.Functional,personalization:d.UserPreferred},DeeplinkSource:{name:"DeeplinkSource",gdprLevel:l.Functional,personalization:d.UserPreferred},HIDInfo:{name:"HIDInfo",gdprLevel:l.Functional,personalization:d.UserPreferred},SystemInfo:{name:"SystemInfo",gdprLevel:l.Functional,personalization:d.UserPreferred},GameSearchFilterEvent:{name:"GameSearchFilterEvent",gdprLevel:l.Behavioral,personalization:d.UserPreferred},GalleryOpenedFileLocation:{name:"GalleryOpenedFileLocation",gdprLevel:l.Behavioral,personalization:d.UserPreferred},Click:{name:"Click",gdprLevel:l.Technical,personalization:d.UserPreferred},AnselFreestyleFilters:{name:"AnselFreestyleFilters",gdprLevel:l.Functional,personalization:d.UserPreferred},GalleryFilterUsed:{name:"GalleryFilterUsed",gdprLevel:l.Behavioral,personalization:d.UserPreferred},UserSession:{name:"UserSession",gdprLevel:l.Functional,personalization:d.UserPreferred},NavigationPerformanceMetrics:{name:"NavigationPerformanceMetrics",gdprLevel:l.Technical,personalization:d.UserPreferred},GalleryDeleteCountEvent:{name:"GalleryDeleteCountEvent",gdprLevel:l.Functional,personalization:d.UserPreferred},MontageEvent:{name:"MontageEvent",gdprLevel:l.Functional,personalization:d.UserPreferred},CreateHTTPServerError:{name:"CreateHTTPServerError",gdprLevel:l.Functional,personalization:d.UserPreferred},AnselScreenshotEvent:{name:"AnselScreenshotEvent",gdprLevel:l.Functional,personalization:d.UserPreferred},Hit_Event:{name:"Hit_Event",gdprLevel:l.Functional,personalization:d.UserPreferred},CloudSearch:{name:"CloudSearch",gdprLevel:l.Functional,personalization:d.UserPreferred},AuthenticationProvider:{name:"AuthenticationProvider",gdprLevel:l.Functional,personalization:d.UserPreferred},ExperienceControlInfo:{name:"ExperienceControlInfo",gdprLevel:l.Functional,personalization:d.UserPreferred},PageLoadPerformanceMetrics:{name:"PageLoadPerformanceMetrics",gdprLevel:l.Technical,personalization:d.UserPreferred},SettingState:{name:"SettingState",gdprLevel:l.Technical,personalization:d.UserPreferred},DeeplinkShare:{name:"DeeplinkShare",gdprLevel:l.Functional,personalization:d.UserPreferred},Game_Launch_Metrics:{name:"Game_Launch_Metrics",gdprLevel:l.Functional,personalization:d.UserPreferred},NetworkTest_Http_Event:{name:"NetworkTest_Http_Event",gdprLevel:l.Functional,personalization:d.UserPreferred},GalleryAction:{name:"GalleryAction",gdprLevel:l.Functional,personalization:d.UserPreferred},GFNPCLogsInfo:{name:"GFNPCLogsInfo",gdprLevel:l.Functional,personalization:d.UserPreferred},CTATileClickEvent:{name:"CTATileClickEvent",gdprLevel:l.Technical,personalization:d.UserPreferred},StreamingProfile:{name:"StreamingProfile",gdprLevel:l.Technical,personalization:d.UserPreferred},ClientImeInteractionEvent:{name:"ClientImeInteractionEvent",gdprLevel:l.Technical,personalization:d.UserPreferred},StreamNowButtonClick:{name:"StreamNowButtonClick",gdprLevel:l.Functional,personalization:d.UserPreferred},HighlightCapture:{name:"HighlightCapture",gdprLevel:l.Functional,personalization:d.UserPreferred},GalleryFileRemoved:{name:"GalleryFileRemoved",gdprLevel:l.Behavioral,personalization:d.UserPreferred},GalleryFilterEvent:{name:"GalleryFilterEvent",gdprLevel:l.Functional,personalization:d.UserPreferred},MontageAction:{name:"MontageAction",gdprLevel:l.Functional,personalization:d.UserPreferred},UserSurvey:{name:"UserSurvey",gdprLevel:l.Functional,personalization:d.UserPreferred},PluginAPIStatus:{name:"PluginAPIStatus",gdprLevel:l.Technical,personalization:d.UserPreferred},GPUInfo:{name:"GPUInfo",gdprLevel:l.Functional,personalization:d.UserPreferred},GallerySortEvent:{name:"GallerySortEvent",gdprLevel:l.Functional,personalization:d.UserPreferred},OverrideKeyboardLayout:{name:"OverrideKeyboardLayout",gdprLevel:l.Functional,personalization:d.UserPreferred},Exception:{name:"Exception",gdprLevel:l.Functional,personalization:d.UserPreferred},OpportunityViewStatus:{name:"OpportunityViewStatus",gdprLevel:l.Functional,personalization:d.UserPreferred},HighlightsCancelled:{name:"HighlightsCancelled",gdprLevel:l.Functional,personalization:d.UserPreferred},GalleryAccess:{name:"GalleryAccess",gdprLevel:l.Functional,personalization:d.UserPreferred},PushNotificationError:{name:"PushNotificationError",gdprLevel:l.Functional,personalization:d.UserPreferred},PushNotificationPurgedEntries:{name:"PushNotificationPurgedEntries",gdprLevel:l.Functional,personalization:d.UserPreferred},FreestyleStylesApplied:{name:"FreestyleStylesApplied",gdprLevel:l.Functional,personalization:d.UserPreferred},MediaPlay:{name:"MediaPlay",gdprLevel:l.Technical,personalization:d.UserPreferred},StatsClosedEvent:{name:"StatsClosedEvent",gdprLevel:l.Functional,personalization:d.UserPreferred},StatsViewChangedEvent:{name:"StatsViewChangedEvent",gdprLevel:l.Functional,personalization:d.UserPreferred},GFNEventStatus:{name:"GFNEventStatus",gdprLevel:l.Functional,personalization:d.UserPreferred},GameplayEntryEvent:{name:"GameplayEntryEvent",gdprLevel:l.Functional,personalization:d.UserPreferred},StreamingQualityChangedEvent:{name:"StreamingQualityChangedEvent",gdprLevel:l.Functional,personalization:d.UserPreferred},ResolutionUpscalingChangedEvent:{name:"ResolutionUpscalingChangedEvent",gdprLevel:l.Functional,personalization:d.UserPreferred},WidgetViewChangedEvent:{name:"WidgetViewChangedEvent",gdprLevel:l.Functional,personalization:d.UserPreferred},NotificationChangedEvent:{name:"NotificationChangedEvent",gdprLevel:l.Functional,personalization:d.UserPreferred},PlaytesterSessionEvent:{name:"PlaytesterSessionEvent",gdprLevel:l.Functional,personalization:d.UserPreferred},ClipboardPasteEvent:{name:"ClipboardPasteEvent",gdprLevel:l.Functional,personalization:d.UserPreferred},StorageUsageMetrics:{name:"StorageUsageMetrics",gdprLevel:l.Technical,personalization:d.UserPreferred},LoginStart:{name:"LoginStart",gdprLevel:l.Functional,personalization:d.UserPreferred},RemoteConfigInfo:{name:"RemoteConfigInfo",gdprLevel:l.Functional,personalization:d.UserPreferred},GameCampaignsUpdate:{name:"GameCampaignsUpdate",gdprLevel:l.Functional,personalization:d.UserPreferred},UDSDialogShown:{name:"UDSDialogShown",gdprLevel:l.Functional,personalization:d.UserPreferred},UDSSuggestionFeedback:{name:"UDSSuggestionFeedback",gdprLevel:l.Functional,personalization:d.UserPreferred},PluginsStatus:{name:"PluginsStatus",gdprLevel:l.Technical,personalization:d.UserPreferred},ClientSelfUpdate:{name:"ClientSelfUpdate",gdprLevel:l.Functional,personalization:d.UserPreferred},UserWindowInfo:{name:"UserWindowInfo",gdprLevel:l.Functional,personalization:d.UserPreferred},ResourceLoadError:{name:"ResourceLoadError",gdprLevel:l.Functional,personalization:d.UserPreferred}};class bi{constructor(Ei){this.parameters=Ei,this.ts=(new Date).toISOString()}}class Pi extends bi{constructor(Ei){super(Ei),this.name=ln.MicrophoneSettingChange.name,this.gdprLevel=ln.MicrophoneSettingChange.gdprLevel,this.personalization=ln.MicrophoneSettingChange.personalization}}class ji extends bi{constructor(Ei){super(Ei),this.name=ln.MicrophoneInitialized.name,this.gdprLevel=ln.MicrophoneInitialized.gdprLevel,this.personalization=ln.MicrophoneInitialized.personalization}}class Qi extends bi{constructor(Ei){super(Ei),this.name=ln.CheckGFN.name,this.gdprLevel=ln.CheckGFN.gdprLevel,this.personalization=ln.CheckGFN.personalization}}class ar extends bi{constructor(Ei){super(Ei),this.name=ln.UIAction.name,this.gdprLevel=ln.UIAction.gdprLevel,this.personalization=ln.UIAction.personalization}}class Fo extends bi{constructor(Ei){super(Ei),this.name=ln.AudioNotificationEvent.name,this.gdprLevel=ln.AudioNotificationEvent.gdprLevel,this.personalization=ln.AudioNotificationEvent.personalization}}class no extends bi{constructor(Ei){super(Ei),this.name=ln.PopUpDialogClosed.name,this.gdprLevel=ln.PopUpDialogClosed.gdprLevel,this.personalization=ln.PopUpDialogClosed.personalization}}class Zr extends bi{constructor(Ei){super(Ei),this.name=ln.Game_Launch_Event.name,this.gdprLevel=ln.Game_Launch_Event.gdprLevel,this.personalization=ln.Game_Launch_Event.personalization}}class Yr extends bi{constructor(Ei){super(Ei),this.name=ln.Game_Quit_Event.name,this.gdprLevel=ln.Game_Quit_Event.gdprLevel,this.personalization=ln.Game_Quit_Event.personalization}}class zo extends bi{constructor(Ei){super(Ei),this.name=ln.ClientImeOpenEvent.name,this.gdprLevel=ln.ClientImeOpenEvent.gdprLevel,this.personalization=ln.ClientImeOpenEvent.personalization}}class Sn extends bi{constructor(Ei){super(Ei),this.name=ln.Application_Install.name,this.gdprLevel=ln.Application_Install.gdprLevel,this.personalization=ln.Application_Install.personalization}}class Ti extends bi{constructor(Ei){super(Ei),this.name=ln.OwnershipSyncEvent.name,this.gdprLevel=ln.OwnershipSyncEvent.gdprLevel,this.personalization=ln.OwnershipSyncEvent.personalization}}class Li extends bi{constructor(Ei){super(Ei),this.name=ln.PopUpDialogShown.name,this.gdprLevel=ln.PopUpDialogShown.gdprLevel,this.personalization=ln.PopUpDialogShown.personalization}}class dr extends bi{constructor(Ei){super(Ei),this.name=ln.PushNotificationReceived.name,this.gdprLevel=ln.PushNotificationReceived.gdprLevel,this.personalization=ln.PushNotificationReceived.personalization}}class br extends bi{constructor(Ei){super(Ei),this.name=ln.OOBE_Accept.name,this.gdprLevel=ln.OOBE_Accept.gdprLevel,this.personalization=ln.OOBE_Accept.personalization}}class Vn extends bi{constructor(Ei){super(Ei),this.name=ln.RoutingStatus.name,this.gdprLevel=ln.RoutingStatus.gdprLevel,this.personalization=ln.RoutingStatus.personalization}}class Ut extends bi{constructor(Ei){super(Ei),this.name=ln.HTTPFailure.name,this.gdprLevel=ln.HTTPFailure.gdprLevel,this.personalization=ln.HTTPFailure.personalization}}class Wn extends bi{constructor(Ei){super(Ei),this.name=ln.PushNotificationTokenRegistered.name,this.gdprLevel=ln.PushNotificationTokenRegistered.gdprLevel,this.personalization=ln.PushNotificationTokenRegistered.personalization}}class ci extends bi{constructor(Ei){super(Ei),this.name=ln.AutoUpdate.name,this.gdprLevel=ln.AutoUpdate.gdprLevel,this.personalization=ln.AutoUpdate.personalization}}class Jr extends bi{constructor(Ei){super(Ei),this.name=ln.BrowserClientCanary.name,this.gdprLevel=ln.BrowserClientCanary.gdprLevel,this.personalization=ln.BrowserClientCanary.personalization}}class oo extends bi{constructor(Ei){super(Ei),this.name=ln.HTTPSuccess.name,this.gdprLevel=ln.HTTPSuccess.gdprLevel,this.personalization=ln.HTTPSuccess.personalization}}class fo extends bi{constructor(Ei){super(Ei),this.name=ln.Drag.name,this.gdprLevel=ln.Drag.gdprLevel,this.personalization=ln.Drag.personalization}}class Go extends bi{constructor(Ei){super(Ei),this.name=ln.NetworkTest.name,this.gdprLevel=ln.NetworkTest.gdprLevel,this.personalization=ln.NetworkTest.personalization}}class kr extends bi{constructor(Ei){super(Ei),this.name=ln.DeeplinkSource.name,this.gdprLevel=ln.DeeplinkSource.gdprLevel,this.personalization=ln.DeeplinkSource.personalization}}class pa extends bi{constructor(Ei){super(Ei),this.name=ln.HIDInfo.name,this.gdprLevel=ln.HIDInfo.gdprLevel,this.personalization=ln.HIDInfo.personalization}}class ka extends bi{constructor(Ei){super(Ei),this.name=ln.SystemInfo.name,this.gdprLevel=ln.SystemInfo.gdprLevel,this.personalization=ln.SystemInfo.personalization}}class ma extends bi{constructor(Ei){super(Ei),this.name=ln.Click.name,this.gdprLevel=ln.Click.gdprLevel,this.personalization=ln.Click.personalization}}class Ms extends bi{constructor(Ei){super(Ei),this.name=ln.UserSession.name,this.gdprLevel=ln.UserSession.gdprLevel,this.personalization=ln.UserSession.personalization}}class Ua extends bi{constructor(Ei){super(Ei),this.name=ln.NavigationPerformanceMetrics.name,this.gdprLevel=ln.NavigationPerformanceMetrics.gdprLevel,this.personalization=ln.NavigationPerformanceMetrics.personalization}}class js extends bi{constructor(Ei){super(Ei),this.name=ln.CreateHTTPServerError.name,this.gdprLevel=ln.CreateHTTPServerError.gdprLevel,this.personalization=ln.CreateHTTPServerError.personalization}}class Ds extends bi{constructor(Ei){super(Ei),this.name=ln.Hit_Event.name,this.gdprLevel=ln.Hit_Event.gdprLevel,this.personalization=ln.Hit_Event.personalization}}class fa extends bi{constructor(Ei){super(Ei),this.name=ln.AuthenticationProvider.name,this.gdprLevel=ln.AuthenticationProvider.gdprLevel,this.personalization=ln.AuthenticationProvider.personalization}}class cs extends bi{constructor(Ei){super(Ei),this.name=ln.PageLoadPerformanceMetrics.name,this.gdprLevel=ln.PageLoadPerformanceMetrics.gdprLevel,this.personalization=ln.PageLoadPerformanceMetrics.personalization}}class $s extends bi{constructor(Ei){super(Ei),this.name=ln.SettingState.name,this.gdprLevel=ln.SettingState.gdprLevel,this.personalization=ln.SettingState.personalization}}class Vo extends bi{constructor(Ei){super(Ei),this.name=ln.DeeplinkShare.name,this.gdprLevel=ln.DeeplinkShare.gdprLevel,this.personalization=ln.DeeplinkShare.personalization}}class Hn extends bi{constructor(Ei){super(Ei),this.name=ln.Game_Launch_Metrics.name,this.gdprLevel=ln.Game_Launch_Metrics.gdprLevel,this.personalization=ln.Game_Launch_Metrics.personalization}}class $o extends bi{constructor(Ei){super(Ei),this.name=ln.StreamingProfile.name,this.gdprLevel=ln.StreamingProfile.gdprLevel,this.personalization=ln.StreamingProfile.personalization}}class oa extends bi{constructor(Ei){super(Ei),this.name=ln.StreamNowButtonClick.name,this.gdprLevel=ln.StreamNowButtonClick.gdprLevel,this.personalization=ln.StreamNowButtonClick.personalization}}class qs extends bi{constructor(Ei){super(Ei),this.name=ln.UserSurvey.name,this.gdprLevel=ln.UserSurvey.gdprLevel,this.personalization=ln.UserSurvey.personalization}}class ks extends bi{constructor(Ei){super(Ei),this.name=ln.PluginAPIStatus.name,this.gdprLevel=ln.PluginAPIStatus.gdprLevel,this.personalization=ln.PluginAPIStatus.personalization}}class ea extends bi{constructor(Ei){super(Ei),this.name=ln.GPUInfo.name,this.gdprLevel=ln.GPUInfo.gdprLevel,this.personalization=ln.GPUInfo.personalization}}class Mn extends bi{constructor(Ei){super(Ei),this.name=ln.OpportunityViewStatus.name,this.gdprLevel=ln.OpportunityViewStatus.gdprLevel,this.personalization=ln.OpportunityViewStatus.personalization}}class In extends bi{constructor(Ei){super(Ei),this.name=ln.PushNotificationError.name,this.gdprLevel=ln.PushNotificationError.gdprLevel,this.personalization=ln.PushNotificationError.personalization}}class Ai extends bi{constructor(Ei){super(Ei),this.name=ln.PushNotificationPurgedEntries.name,this.gdprLevel=ln.PushNotificationPurgedEntries.gdprLevel,this.personalization=ln.PushNotificationPurgedEntries.personalization}}class Rn extends bi{constructor(Ei){super(Ei),this.name=ln.MediaPlay.name,this.gdprLevel=ln.MediaPlay.gdprLevel,this.personalization=ln.MediaPlay.personalization}}class ao extends bi{constructor(Ei){super(Ei),this.name=ln.PlaytesterSessionEvent.name,this.gdprLevel=ln.PlaytesterSessionEvent.gdprLevel,this.personalization=ln.PlaytesterSessionEvent.personalization}}class Ir extends bi{constructor(Ei){super(Ei),this.name=ln.ClipboardPasteEvent.name,this.gdprLevel=ln.ClipboardPasteEvent.gdprLevel,this.personalization=ln.ClipboardPasteEvent.personalization}}class Cr extends bi{constructor(Ei){super(Ei),this.name=ln.StorageUsageMetrics.name,this.gdprLevel=ln.StorageUsageMetrics.gdprLevel,this.personalization=ln.StorageUsageMetrics.personalization}}class Po extends bi{constructor(Ei){super(Ei),this.name=ln.LoginStart.name,this.gdprLevel=ln.LoginStart.gdprLevel,this.personalization=ln.LoginStart.personalization}}class ca extends bi{constructor(Ei){super(Ei),this.name=ln.UDSDialogShown.name,this.gdprLevel=ln.UDSDialogShown.gdprLevel,this.personalization=ln.UDSDialogShown.personalization}}class Zo extends bi{constructor(Ei){super(Ei),this.name=ln.UDSSuggestionFeedback.name,this.gdprLevel=ln.UDSSuggestionFeedback.gdprLevel,this.personalization=ln.UDSSuggestionFeedback.personalization}}class vo extends bi{constructor(Ei){super(Ei),this.name=ln.ClientSelfUpdate.name,this.gdprLevel=ln.ClientSelfUpdate.gdprLevel,this.personalization=ln.ClientSelfUpdate.personalization}}class ta extends bi{constructor(Ei){super(Ei),this.name=ln.UserWindowInfo.name,this.gdprLevel=ln.UserWindowInfo.gdprLevel,this.personalization=ln.UserWindowInfo.personalization}}class tl extends bi{constructor(Ei){super(Ei),this.name=ln.ResourceLoadError.name,this.gdprLevel=ln.ResourceLoadError.gdprLevel,this.personalization=ln.ResourceLoadError.personalization}}},18433:(Bt,z,s)=>{"use strict";s.d(z,{iQN:()=>l.iQN,Zhy:()=>l.Zhy,mTv:()=>l.mTv,$_D:()=>l.$_D,Tv4:()=>l.Tv4,T80:()=>l.T80,LCb:()=>l.LCb,EBD:()=>l.EBD,aa0:()=>l.aa0,OCG:()=>l.OCG,sKj:()=>l.sKj,px4:()=>l.px4,HBm:()=>l.HBm,Hgm:()=>l.Hgm,QF:()=>l.QF,fbu:()=>l.fbu,vhU:()=>l.vhU,iVs:()=>n.iV,yEy:()=>l.yEy,H9T:()=>l.H9T,war:()=>l.war,xkk:()=>l.xkk,RXY:()=>l.RXY,GSb:()=>l.GSb,$1L:()=>l.$1L,_o$:()=>l._o$,Bhf:()=>l.Bhf,kSA:()=>l.kSA,RsW:()=>l.RsW,JWD:()=>l.JWD,Yno:()=>l.Yno,Ssl:()=>l.Ssl,Yjq:()=>l.Yjq,uxn:()=>l.uxn,kKp:()=>l.kKp,gvg:()=>l.gvg,zTU:()=>l.zTU,QQA:()=>l.QQA,ZpH:()=>l.ZpH,RX8:()=>n.RX,qH9:()=>l.qH9,w7B:()=>l.w7B,Uqt:()=>l.Uqt,Osi:()=>l.Osi,uKc:()=>l.uKc,eK6:()=>l.eK6,GoL:()=>l.GoL,t4p:()=>l.t4p,Uu$:()=>l.Uu$,IWs:()=>l.IWs,YDY:()=>l.YDY,_b3:()=>l._b3,duU:()=>l.duU,mUs:()=>l.mUs,Xci:()=>l.Xci,RgL:()=>l.RgL,YRL:()=>l.YRL,U1f:()=>l.U1f,key:()=>l.key,uXT:()=>l.uXT,ptg:()=>l.ptg,BEl:()=>l.BEl,Q2O:()=>l.Q2O,MCB:()=>l.MCB,_aO:()=>l._aO,Mwe:()=>l.Mwe,c4O:()=>l.c4O,OOF:()=>l.OOF,N0J:()=>l.N0J,HOo:()=>l.HOo,p2o:()=>l.p2o,V_v:()=>l.V_v,O67:()=>l.O67,jgD:()=>d.j,Txn:()=>n.Tx,B4z:()=>l.B4z,Cv0:()=>l.Cv0,kQl:()=>l.kQl,Pk9:()=>l.Pk9,ay7:()=>l.ay7,BAK:()=>l.BAK,Fdg:()=>l.Fdg,HjG:()=>l.HjG,QP$:()=>v});var n=s(88610),l=s(87687),d=s(95346);function v(S,y,f){const O=f>0?Date.now()-f:0;return new l.jQD({useCase:S,streamSessionId:y,clientPerceivedSessionTimeMs:O})}},95346:(Bt,z,s)=>{"use strict";s.d(z,{j:()=>Xe});var n=s(85735),l=s(26513),d=s(35146),v=s(31315),S=s(43848),y=s(3496),f=s(75707),O=s(65706),P=s(83915),_=s(14714),i=s(91384),r=s(65770),a=s(55833),c=s(26875),M=s(99469),D=s(78812),I=s(20924),U=s(88610),V=s(87687),T=s(6687),N=s(81834),L=s(78893),E=s(50778),g=s(14331),R=s(68868),B=s(70710),X=s(58527),H=s(43354),J=s(72945),re=s(14709),ie=s(40996),ve=s(17901),ue=s(14354),se=s(66974),Z=s(7703);const Se="gfnTelemetry",Ce={cmsId:null,shortName:"",appLaunchMode:E.NG.Default,launchSource:V.vhU.Unknown,sdkClient:""},Be="telemetrySessionId";let Xe=(()=>{class He{constructor(Q,A,me,ne,G,W,$,le,Pe,Fe,At,Le,Et,$e,Ze){this.loggingService=Q,this.appConfig=A,this.sharedStorageService=me,this.telemetryService=ne,this.systemInfoService=G,this.ipcService=W,this.appConfigParams=$,this.gfnsdkService=le,this.pwaService=Pe,this.router=Fe,this.guestModeHelperService=At,this.deeplinkHelper=Le,this.inputModalityService=Et,this.ngZone=$e,this.audioPlayService=Ze,this.enableSoundNotification=!1,this.HIDInfo=void 0,this.clientType=V.sKj.Unknown,this.deviceIdSetSubject=new n.m(1),this.sendAppLaunchTelemetrySubject=new l.t(!1),this.streamerTelemetryConfig=Ce,this.isBrowserClient=!1,this.isGpuEventSent=!1,this.lastClickInputSource=V.UJ3.Unknown,this.clientVersion="",this.preferredGameLanguageSubject=new n.m(1),this.logger=this.loggingService.getLogger("telemetry-util.service"),this.enableSoundNotification=!!A?.featureEnablement?.enableSoundNotification,this.setClientType((0,L.I2)(this.router.url)?L.td.Streamer:L.td.Mall),this.isBrowserClient=M.zk.isBrowserPlatform()}init(Q){this.clientVersion=Q,this.initialize().subscribe(A=>{this.logger.info("Successfully generated and stored device id"),this.deviceIdSetSubject.next(),this.deviceIdSetSubject.complete()},A=>{this.logger.error("Error fetching deviceId: ",A)})}initializeAudioTelemetry(){this.enableSoundNotification&&this.audioPlayService.getAudioTelemetryData().subscribe(Q=>{this.logger.info("Event received from audio service : ",Q),this.sendAudioTelemetry(Q)})}sendAudioTelemetry(Q){this.telemetryService.push(new V.h8t({scenario:Q.eventScenario??"",status:this.transformToEventStatus(Q.eventStatus),errorDetails:(0,N.AA)(Q.errorDetails,D._Y)}))}transformToEventStatus(Q){return V.fbu[M.Hf[Q]]}restoreTelemetrySessionId(){null!==window.sessionStorage.getItem(Be)&&(this.telemetryService.updateTelemetrySessionId(window.sessionStorage.getItem(Be)),window.sessionStorage.removeItem(Be))}saveTelmetrySessionIdOnLoginAndLogout(Q){this.logger.info("Subscribing to Login initiated notification"),Q.subscribe(A=>{this.logger.info("Received notification for ",A),window.sessionStorage.setItem(Be,this.telemetryService.telemetrySessionId),this.logger.info("Completed saving telemetrySessionId")})}initialize(){this.restoreTelemetrySessionId(),this.ngZone.runOutsideAngular(()=>{this.inputModalityService.inputModalityChanged$.subscribe(A=>{switch(A){case R.M.Keyboard:this.lastClickInputSource=V.UJ3.Keyboard;break;case R.M.Gamepad:this.lastClickInputSource=V.UJ3.Gamepad;break;case R.M.Mouse:this.lastClickInputSource=V.UJ3.Mouse;break;case R.M.Touch:this.lastClickInputSource=V.UJ3.Touch}})});const Q=this.systemInfoService.getSystemInfo([M.Lu.DeviceId,M.Lu.Platform,M.Lu.OSVersion,M.Lu.VendorName,M.Lu.SystemName,M.Lu.DeviceType,M.Lu.BrowserName]);return(0,d.yU)(this.systemInfoService.getDeviceOSType(),Q).pipe((0,f.ZZ)(([A,me])=>{const ne={deviceOS:A,clientType:this.isBrowserClient?U.Vd.Browser:U.Vd.Native,clientVer:this.clientVersion,systemInfo:me,integrationId:this.getIntegrationId(),productName:this.appConfig.jsEvents.productName,productVersion:(0,B.C)(this.appConfig)};return this.initCommonData(ne)}))}initCommonData(Q){const A=Q.systemInfo;return this.telemetryService.setEventsCommonData({clientVer:Q.clientVer,deviceId:A.DeviceId,clientType:Q.clientType,clientVariant:this.getCommonClientVariant(this.appConfig.build.variant),deviceOS:Q.deviceOS,deviceOSVersion:A.OSVersion,deviceMake:A.VendorName||M.Qe,deviceModel:A.SystemName||M.Qe,deviceType:A.DeviceType||M.Qe,integrationId:Q.integrationId,browserType:A.BrowserName,productName:Q.productName||M.Qe,productVersion:Q.productVersion||M.Qe},!1),this.sharedStorageService.readBlock(Se).pipe((0,f.ZZ)(me=>(me.clientVersion=this.appConfig.build.version,me.deviceId=A.DeviceId,this.sharedStorageService.writeBlock(Se,me))))}setTelemetryConfig(Q){this.streamerTelemetryConfig=Q??Ce,this.sendSystemInfoTelemetry()}getIntegrationId(){let Q=M.Qe;const A=this.deeplinkHelper.getUpdatedPartnerId((0,L.BS)(g.aj.PartnerId));return(this.guestModeHelperService.isGuestMode||this.deeplinkHelper.isSpecialAffiliatePartner(A))&&(Q=A||M.Qe),Q}getPlatformType(Q){switch(Q){case"Mac":return V.YwK.Mac;case"Windows":return V.YwK.Windows;case"Android":case"Shield":return V.YwK.Android;case"Linux":return V.YwK.Linux;default:return V.YwK.Unknown}}getCurrentUiMode(Q){switch(Q){case I.Or.Common.Systeminfo.UiModeEnum.Desktop:return V.zMM.Desktop;case I.Or.Common.Systeminfo.UiModeEnum.Mobile:return V.zMM.Mobile;case I.Or.Common.Systeminfo.UiModeEnum.Game:return V.zMM.Game;default:return V.zMM.Unknown}}getCommonClientVariant(Q){switch(Q){case"ibeta":return U.Ow.iBeta;case"release":return U.Ow.Release;default:return U.Ow.Undefined}}getProductName(){return this.appConfig.jsEvents.productName}getDisplayDetails(Q){const A=[];for(let me=0;me<U._Y.MaxDisplay;me++){const ne={physicalRes:Q&&Q[me]&&Q[me].PhysicalResolution||"",logicalRes:Q&&Q[me]&&Q[me].LogicalResolution||"",refreshRate:Q&&Q[me]&&parseInt(Q[me].RefreshRate,10)||0,displayNumber:me};A.push(ne)}return A}getGpuDetails(Q){const A=[];for(let me=0;me<U._Y.MaxGpu;me++){const ne={gpuLongName:"",gpuVDSR:""};ne.gpuLongName=Q&&Q?.GPUData&&Q?.GPUData[me]&&Q?.GPUData[me]?.LongGPUName||"",ne.gpuVDSR=Q&&Q?.GPUData&&Q?.GPUData[me]&&Q?.GPUData[me]?.VDSR||"",A.push(ne)}return A}getApiStatus(Q){return"Success"===Q?V.L15.Success:V.L15.Failure}getPluginName(Q){if("SystemInfo"===Q)return V.Tb$.SystemInfo}getDiskMediumType(Q){switch(Q){case"SolidState":return V.LUK.SolidState;case"Rotational":return V.LUK.Rotational;default:return V.LUK.Unknown}}getClientVariantType(Q){switch(Q){case"ibeta":return V.tdz.IBeta;case"release":return V.tdz.Release;case"autoplay":return V.tdz.Autoplay;default:return V.tdz.Dev}}getDiskInfo(Q){const A=[];for(let me=0;me<U._Y.MaxDisk;me++){const ne={FreeSpace:0,MediumType:"",TotalSize:0};ne.FreeSpace=Q&&Q[me]&&Q[me].FreeSpace&&parseInt(Q[me].FreeSpace,10)||0,ne.MediumType=Q&&Q[me]&&this.getDiskMediumType(Q[me].MediumType)||V.LUK.Unknown,ne.TotalSize=Q&&Q[me]&&Q[me].TotalSize&&parseInt(Q[me].TotalSize,10)||0,A.push(ne)}return A}getInputDeviceInfo(Q,A){let me;switch(Q){case V.yj4.Keyboard:me=A.Keyboard;break;case V.yj4.Mouse:me=A.Mouse;break;case V.yj4.GamePad:me=A.GamePad;break;case V.yj4.Joystick:me=A.Joystick}return me}getNetworkType(Q){return U.xe[Q]??V.w7B.Unknown}setClientType(Q){this.clientType=Q===L.td.Mall?V.sKj.MallClient:Q===L.td.Streamer?V.sKj.StreamingClient:V.sKj.Unknown}getClientType(){return this.clientType}parseAndSendInputDeviceTelemetry(Q,A){for(let me=0;me<U._Y.MaxInputDevicePerType;me++)if(!(0,c.isUndefined)(A[me])){const ne={clientType:this.getClientType(),inputDevice:V.yj4[Q],manufacturer:A[me].manufacturer,versionNumber:A[me].versionNumber,productID:A[me].productID,reportIntervalMicroSeconds:isNaN(parseInt(A[me].reportIntervalUs,10))?0:parseInt(A[me].reportIntervalUs,10),transport:A[me].transport,vendorID:A[me].vendorID},G=new V.fbL(ne);this.telemetryService.push(G)}}sendHIDTelemetry(){if((0,c.isUndefined)(this.HIDInfo))this.logger.info("HID info is undefined");else for(const Q in V.yj4)if(this.HIDInfo.hasOwnProperty(V.yj4[Q])){const A=this.getInputDeviceInfo(V.yj4[Q],this.HIDInfo);this.parseAndSendInputDeviceTelemetry(V.yj4[Q],A)}}sendGpuInfoTelemetry(Q){let A;if(Q?A={gpuProduct:Q?.GPU?.PrimaryGPUDriverInfo?.GpuProduct||"",gpuRevision:Q?.GPU?.PrimaryGPUDriverInfo?.GpuRevision||"",gpuBuildNumHi:Q?.GPU?.PrimaryGPUDriverInfo?.GpuBuildNumHi||"",gpuBuildNumLo:Q?.GPU?.PrimaryGPUDriverInfo?.GpuBuildNumLo||"",gpuDriverName:Q?.GPU?.PrimaryGPUDriverInfo?.GpuDriverName||"",gpuDetails:this.getGpuDetails(Q.GPU)}:this.logger.error("No GPU Information available"),(0,c.isUndefined)(A))this.logger.info("GpuInfo event is undefined");else{const me=new V.i6T(A);this.telemetryService.push(me),this.isGpuEventSent=!0}}sendApiStatusTelemetry(Q){let A;if(Q?A={apiName:Q.ApiName||"",subApiName:Q.SubApiName||"",errorMessage:Q.ErrorMessage||"",pluginName:this.getPluginName(Q.PluginName),status:this.getApiStatus(Q.ApiStatus)}:this.logger.error("No System Information"),(0,c.isUndefined)(A)||this.getPluginName(Q.PluginName)!==V.Tb$.SystemInfo)this.logger.info("API status info is undefined");else{const me=new V.ddl(A);this.telemetryService.push(me)}}prepareSystemInfoTelemetryObject(Q,A,me){let G,W=[];return this.sendApiStatusTelemetry(Q),this.isGpuEventSent||this.sendGpuInfoTelemetry(Q),Q?(W=this.getDiskInfo(Q.Disk),Q.Display=Q.Display.slice(0,3),Q.GPU&&(Q.GPU.GPUData=Q.GPU?.GPUData?.slice(0,2)??[]),this.HIDInfo=Q.HID,G={vendorName:Q.VendorName||"",systemName:Q.SystemName||"",userDefaultUILanguage:Q.UserDefaultUILanguage||"",osName:Q.OSName||"",osVersion:Q.OSVersion||"",physicalMemoryCapacity:parseInt(Q.PhysicalMemoryCapacity,10)||0,processorArchitecture:Q.ProcessorArchitecture||"",cpuName:Q.CPUName||"",networkType:Q.Network&&Q.Network.NetworkType?this.getNetworkType(Q.Network.NetworkType):V.w7B.Unknown,gpuCount:Q.GPU?.GPUData?.length||0,gpu0LongName:Q.GPU&&Q.GPU?.GPUData&&Q.GPU?.GPUData[0]&&Q.GPU?.GPUData[0]?.LongGPUName||"",gpu1LongName:Q.GPU&&Q.GPU?.GPUData&&Q.GPU?.GPUData[1]&&Q.GPU?.GPUData[1]?.LongGPUName||"",diskCount:Q.Disk.length||0,disk0FreeSpace:W[0].FreeSpace||0,disk0MediumType:W[0].MediumType||V.LUK.Unknown,disk0TotalSize:W[0].TotalSize||0,disk1FreeSpace:W[1].FreeSpace||0,disk1MediumType:W[1].MediumType||V.LUK.Unknown,disk1TotalSize:W[1].TotalSize||0,disk2FreeSpace:W[2].FreeSpace||0,disk2MediumType:W[2].MediumType||V.LUK.Unknown,disk2TotalSize:W[2].TotalSize||0,displayCount:Q.Display.length||0,displayDetails:this.getDisplayDetails(Q.Display),routerMacAddress:Q.Network&&Q.Network.RouterMACAddress?Q.Network.RouterMACAddress.substring(0,8).toUpperCase():"Unknown",platform:this.getPlatformType(Q.Platform)||V.YwK.Unknown,clientVariant:this.getClientVariantType(this.appConfig.build.variant),launchSource:this.getLaunchSource(),userAgent:Q.BrowserName+" "+Q.BrowserVersion||M.Qe,dxVersion:Q.DxVersion||"",browserName:Q.BrowserName||M.Qe,browserVersion:Q.BrowserVersion||M.Qe,confidenceInBrowser:M.zk.isNativeLikePlatform()?99:Q.ConfidenceInBrowser,isBrowserForged:M.zk.isCefPlatform()?V.T80.UNDEFINED:Q.IsBrowserForged?V.T80.TRUE:V.T80.FALSE,systemInfoGuid:A,clientUrl:this.isBrowserClient?window.location.host+window.location.pathname:"",currentUiMode:this.getCurrentUiMode(Q.CurrentUiMode),preferredGameLanguage:me?.language??"",isAutoPreferredGameLanguage:me?.isAuto?V.T80.TRUE:V.T80.FALSE}):this.logger.error("No System Information"),G}getSystemInformationForTelemetry(){let Q=M.lo;return M.zk.isCefPlatform()||(Q=Q.filter(A=>A!==M.Lu.DxVersion)),(0,v.zV)([this.systemInfoService.getSystemInfo(Q),this.systemInfoService.getSystemInfoGuid(),this.appConfig.isGameLanguageSupportEnabled?this.preferredGameLanguageSubject.asObservable():(0,S.of)(null)]).pipe((0,O.s)(1),(0,P.T)(([A,me,ne])=>this.prepareSystemInfoTelemetryObject(A,me,ne)))}getLaunchSource(){return this.gfnsdkService.isThisAGFNSDKSession()&&!this.guestModeHelperService.isGuestMode?this.streamerTelemetryConfig.sdkClient||"Unknown":this.streamerTelemetryConfig.launchSource===V.vhU.External?"External":this.streamerTelemetryConfig.launchSource===V.vhU.GeForceNOW?"Mall":this.streamerTelemetryConfig.launchSource===V.vhU.Deeplink?"Deeplink":"Unknown"}sendLaunchUiTelemetry(){const Q=new V.Ixb({clientType:this.getClientType(),type:V.kSA.LaunchUI});this.telemetryService.push(Q)}sendSystemInfoTelemetry(){this.sharedSystemInfoSub||(this.sharedSystemInfoSub=(0,y.O)(this.appConfig.jsEvents.systemInfoEventDelay).pipe((0,f.ZZ)(()=>this.getSystemInformationForTelemetry()),(0,_.W)(Q=>(this.logger.error("Error when getting system info: ",Q),(0,S.of)(null))),(0,i.M)(Q=>{if((0,c.isUndefined)(Q)||(0,c.isNull)(Q))this.logger.error("No system information found for telemetry");else{const A=new V.Rhb(Q);this.telemetryService.push(A),this.sendHIDTelemetry()}}),(0,r.u)())),this.sharedSystemInfoSub.subscribe()}sendSDKTelemetry(){this.gfnsdkService.getTelemetryData().subscribe(Q=>{this.logger.info("Parsing sdk client events for ",Q.platformName),this.logger.info(`Sending ${Q.checkGFNItems.length} CheckGFN events`),this.logger.info(`Sending ${Q.streamNowButtonClickItems.length} StreamNowButtonClick events`);for(const A of Q.checkGFNItems)this.telemetryService.push(new V.$cp({status:A.status,timeTaken:A.timeTaken,gfnSDKVersion:A.version,gfnDLLVersion:A.dllVersion,originalTimestamp:A.originalTimestamp,originalSource:Q.platformName||"Unspecified",originalCmsId:A.originalCmsId,originalShortname:A.originalShortname,originalAuthMethod:A.originalAuthMethod}));for(const A of Q.streamNowButtonClickItems)this.logger.info("StreamNowButtonClick event found",this.streamerTelemetryConfig),this.telemetryService.push(new V.gho({status:A.status,timeTaken:A.timeTaken,gfnSDKVersion:A.version,cmsId:""+this.streamerTelemetryConfig.cmsId,gameShortName:this.streamerTelemetryConfig.shortName||"",gfnDLLVersion:A.dllVersion,originalTimestamp:A.originalTimestamp,originalSource:Q.platformName||"Unspecified",originalCmsId:A.originalCmsId,originalShortname:A.originalShortname,originalAuthMethod:A.originalAuthMethod,timeRemaining:A.timeRemaining,hasPartnerData:A.hasPartnerData?V.O67.Yes:V.O67.No,hasPartnerSecureData:A.hasPartnerSecureData?V.O67.Yes:V.O67.No}));this.gfnsdkService.clearTelemetryData(Q)})}sendPwaTelemetry(){this.pwaService.onPWAModeChange.pipe((0,O.s)(1),(0,i.M)(Q=>{if(Q){this.logger.info("Sending PWA launch event");const A=new V.Ixb({clientType:this.getClientType(),type:V.kSA.LaunchPwaUI});this.telemetryService.push(A)}})).subscribe()}sendOfflineLaunchTelemetry(){this.pwaService.checkForOfflineLaunch().subscribe(Q=>{if(Q){this.logger.info("Sending Offline Launch Event");const A=new V.Ixb({clientType:this.getClientType(),type:V.kSA.CustomOfflinePage});this.telemetryService.push(A)}else this.logger.info("No offline data present")})}sendStorageUsageEvent(){if(!this.isBrowserClient)return;const Q=navigator.storage;Q?.estimate?Q.estimate().then(A=>{this.logger.info("Sending storage usage metrics");const me=new V.deY({totalQuota:A.quota??0,totalUsage:A.usage??0,cacheUsage:A.usageDetails?.caches??0,indexedDBUsage:A.usageDetails?.indexedDB??0,serviceWorkerRegistrationsUsage:A.usageDetails?.serviceWorkerRegistrations??0});this.telemetryService.push(me)}).catch(A=>{this.logger.error("Failed to obtain storage estimate:",A)}):this.logger.info("StorageManager#estimate is not supported. Skipping sending storage metrics")}sendViewportTelemetry(){const Q=new V.J64({windowInnerHeight:window?.innerHeight??-1,windowInnerWidth:window?.innerWidth??-1,visualViewportHeight:window?.visualViewport?.height??-1,visualViewportWidth:window?.visualViewport?.width??-1,screenOrientationType:window.matchMedia("(orientation: landscape)").matches?V.t4p.Landscape:V.t4p.Portrait,devicePixelRatio:window?.devicePixelRatio??-1});this.telemetryService.push(Q)}sendLaunchTimeTelemetry(){this.deviceIdSetSubject.subscribe(()=>{const Q=this.telemetryService.getLaunchUiEventSent();Q||(this.sendLaunchUiTelemetry(),this.sendSystemInfoTelemetry(),this.sendSDKTelemetry(),this.sendPwaTelemetry(),this.sendOfflineLaunchTelemetry(),this.sendStorageUsageEvent(),this.initializeAudioTelemetry(),this.sendViewportTelemetry(),this.telemetryService.setLaunchUiEventSent(!0)),this.sendAppLaunchTelemetrySubject.next(!Q)})}getAppLaunchTelemetryObservable(){return this.sendAppLaunchTelemetrySubject.asObservable()}getPlatform(){return this.systemInfoService.getSystemInfo([M.Lu.Platform]).pipe((0,P.T)(Q=>this.getPlatformType(Q.Platform)),(0,a.t)(1))}getClientVariant(){return this.getClientVariantType(this.appConfig.build.variant)}sendLoginTelemetry(Q,A,me,ne){const G=new V.BAK({clientType:this.getClientType(),currentScreen:me,userAction:A,status:Q?V.fbu.Success:V.fbu.LoginFailed,errorDetails:Q.toString(),totalMs:0,errorUri:"",serverErrorCode:""});this.telemetryService.push(G,ne)}triggerExceptionInfoUpload(Q){Q.logsFeedbackId=this.telemetryService.telemetrySessionId;const A={type:T.kN.UploadExceptionInfo,content:JSON.stringify(Q),sender:this.getClientType()===V.sKj.MallClient?T.pQ.GfnMall:T.pQ.GfnStreamer,recipient:T.pQ.GfnUpdater};this.logger.info("Sending IPC message:",A),this.ipcService.pushMessage(A).subscribe(me=>this.logger.info("Exception info upload triggered: ",me),me=>this.logger.error("Error triggering exception info upload: ",me))}getXRequestIdForHttpEvent(Q){let A="";return Q&&Q.config&&Q.config.headers&&Q.config.headers["x-request-id"]&&(A=Q.config.headers["x-request-id"]),A}sendUiActionEvent(Q,A){const me=new V.uQS({actionTaken:Q,uiVariant:A});this.telemetryService.push(me)}sendJoinTodayAlertDialogUiAction(Q){let A;switch(Q){case E.o.Close:A=V.kQl.Close;break;case E.o.Join:A=V.kQl.Join;break;case E.o.Login:A=V.kQl.Login}A&&this.sendUiActionEvent(A,V.Pk9.Standard)}getJoinTodayAlertDialogHierarchy(Q,A){let me;switch(Q){case V.MCB.ScreenEvidencePanel:me=A;break;case V.MCB.ScreenMarquee:me=`${V.MCB.ScreenMallHome}`;break;default:me=""}return me&&(me=`${me}/${Q}`),me}sendUserSessionEvent(Q,A,me,ne,G){const W=G||this.telemetryService.getScreen(),$=new V.BAK({currentScreen:W,clientType:this.clientType,userAction:Q,status:A,errorDetails:(0,N.AA)(ne,D._Y),totalMs:0,errorUri:"",serverErrorCode:""});this.telemetryService.push($,me)}sendClickEvent(Q,A,me,ne=!1,G="",W="",$){const le=ne?`${this.telemetryService.getScreen()}/${me}`:me,Pe=new V.I0o({itemType:Q,itemLabel:A,hierarchy:le||"",inputSource:this.lastClickInputSource,gameCampaignId:G??"",additionalData:W});this.telemetryService.push(Pe,null,$)}sendDragEvent(Q,A,me,ne=!1){const G=ne?`${this.telemetryService.getScreen()}/${me}`:me,W=new V.Sx({itemType:Q,itemLabel:A,hierarchy:G||""});this.telemetryService.push(W)}sendPageLoadPerfEvent(Q,{viewDataLoadDuration:A=0,sectionNames:me=["","","","",""],sectionDataLoadDurations:ne=[0,0,0,0,0],sectionTotalLoadDurations:G=[0,0,0,0,0],imageLoadDuration:W=-1,imageCount:$=-1,imageTransferSize:le=-1,usedJsHeapSize:Pe=-1}){const Fe=new V.Osh({viewName:Q,viewDataLoadDuration:Math.round(A),sectionOneName:me[0],sectionOneDataLoadDuration:Math.round(ne[0]),sectionOneTotalLoadDuration:Math.round(G[0]),sectionTwoName:me[1],sectionTwoDataLoadDuration:Math.round(ne[1]),sectionTwoTotalLoadDuration:Math.round(G[1]),sectionThreeName:me[2],sectionThreeDataLoadDuration:Math.round(ne[2]),sectionThreeTotalLoadDuration:Math.round(G[2]),sectionFourName:me[3],sectionFourDataLoadDuration:Math.round(ne[3]),sectionFourTotalLoadDuration:Math.round(G[3]),sectionFiveName:me[4],sectionFiveDataLoadDuration:Math.round(ne[4]),sectionFiveTotalLoadDuration:Math.round(G[4]),totalViewLoadDuration:Math.round(G[4]),imageLoadDuration:Math.round(W),imageCount:Math.round($),imageTransferSize:Math.round(le),usedJsHeapSize:Math.round(Pe)});this.telemetryService.push(Fe)}sendNavigationPerfEvent(){const Q=window.performance.timing,A=new V.zcd({domainLookupDuration:Q.domainLookupEnd-Q.domainLookupStart,connectDuration:Q.connectEnd-Q.connectStart,requestResponseDuration:Q.responseEnd-Q.requestStart,responseDuration:Q.responseEnd-Q.responseStart,timeToFirstByte:Q.responseStart-Q.requestStart,pageRenderDuration:Q.domComplete-Q.domLoading,pageLoadDuration:Q.loadEventEnd-Q.fetchStart,redirectDuration:Q.redirectEnd-Q.redirectStart});this.telemetryService.push(A)}sendDeeplinkShareEvent(Q,A,me=V.LQP.None,ne=""){const G=new V.Tjv({queryParamsString:Q,shareType:A,serviceName:ne,error:me});this.telemetryService.push(G)}sendDeeplinkSourceEvent(Q,A){const me=new V.PvP(Q);this.telemetryService.push(me,void 0,A)}sendPopUpDialogShownEvent(Q){const A=new V.xEK({name:Q});this.telemetryService.push(A)}sendPopUpDialogClosedEvent(Q,A,me=0,ne=0,G=V.T80.FALSE,W=V.T80.FALSE){const $=new V.cPM({name:Q,exitTriggerPoint:A,totalMs:me,inWindowClicks:ne,scrolled:G,checkBoxChecked:W});this.telemetryService.push($)}sendClipboardPasteEvent(Q){const A=new V.$sO({clientClipboardRead:Q.clientClipboardRead,clipboardDataSent:Q.clipboardDataSent,clipboardDataLength:Q.clipboardDataLength,streamSessionId:Q.streamSessionId||"",streamSubSessionId:Q.streamSubSessionId||"",requestId:Q.requestId||""});this.telemetryService.push(A)}sendPlaytesterSessionEvent(Q,A,me,ne,G,W,$,le,Pe,Fe,At,Le){const Et=new V.vWR({userAction:Q,status:A,sessionId:me??"",streamSessionId:ne??"",gameDeveloperName:G??"",gameName:W??"",gameBuildNumber:$??"",cmsId:le??"",webcamName:Pe??"",microphoneName:Fe??"",microphoneTested:At??V.O67.No,errorInfo:Le??""});return this.telemetryService.pushWithPromise(Et,null,{immediateRequest:!0})}sendResourceLoadErrorEvent(Q){const A=new V.kJn({...Q});this.telemetryService.push(A)}static{this.\u0275fac=function(A){return new(A||He)(X.KVO(M.J6),X.KVO(H.Vk),X.KVO(J.yQ),X.KVO(D.H0),X.KVO(M.zW),X.KVO(T.Uj),X.KVO(re.aT),X.KVO(ie.DL),X.KVO(ve.SL),X.KVO(ue.Ix),X.KVO(se.x),X.KVO(Z.w),X.KVO(R.p),X.KVO(X.SKi),X.KVO(M.aP))}}static{this.\u0275prov=X.jDH({token:He,factory:He.\u0275fac,providedIn:"root"})}}return He})()},1548:(Bt,z,s)=>{"use strict";s.d(z,{u:()=>X});var n=s(31315),l=s(85735),d=s(80583),v=s(26513),S=s(43848),y=s(56237),f=s(65706),O=s(83915),P=s(75707),_=s(14714),i=s(8619),r=s(91384),a=s(34593),c=s(99469),m=s(5349),M=s(16632),D=s(89284),I=s(58527),U=s(61958),V=s(45903),T=s(66974),N=s(6478),L=s(5798);let E=(()=>{class H{constructor(re,ie,ve,ue,se,Z){this.endpointFactory=ie,this.distributedtracingUtilService=ve,this.idmService=ue,this.headerService=se,this.appConfig=Z,this.logger=re.getLogger("UdsSdkService");const{defaultRetries:Se,defaultTimeout:Ce,exponentialBackoffMaxDelay:Be}=this.appConfig.uasConfig;this.udsEndpoint=this.endpointFactory.createEndpoint({config:{maxRetries:Se,timeout:Ce,exponentialBackoffMaxDelay:Be}})}createRequestOptions(re,ie,ve,ue={},se={},Z=!1){return this.createHeader(re,ie).pipe((0,O.T)(Se=>({headers:re?Se:{},params:se,body:ue,reportRequestData:{reportSuccessTelemetry:"true",originalService:D.Uu$.UDS,serviceUseCase:ve},includeRequestId:!0,includeFullResponse:Z})))}createHeader(re,ie){return this.headerService.getCommonHeaders({withClientId:"lcars"}).pipe((0,O.T)(ve=>Object.assign({[L.SA.authorization]:`Bearer ${re.token}`,"NV-Device-ID":ie},ve)))}buildApiUrl(re){return this.appConfig.udsConfig?.server+"/v1/"+re}getSummonedUdsReport(re,ie,ve=!1){return this.idmService.getAuthToken(ve,ie).pipe((0,P.ZZ)(ue=>this.createRequestOptions(ue,re?.deviceId,D.OOF.UdsSummonedReport,{},{source:D.zOq.Mall,locale:re?.locale})),(0,P.ZZ)(ue=>{const se=this.udsEndpoint.get(this.buildApiUrl("uds/session/reports"),ue);return this.distributedtracingUtilService.handleHttpEndpointSpan(se,ue,N.pB.GetUdsSummonedReport,ie)}),(0,_.W)(ue=>this.idmService.handleAuthError(ue,ve,this.getSummonedUdsReport.bind(this),re,ie)))}getEndOfSessionUdsReport(re={},ie,ve,ue=!1){return this.idmService.getAuthToken(ue,ve).pipe((0,f.s)(1),(0,P.ZZ)(se=>this.createRequestOptions(se,ie,D.OOF.UdsEndOfSessionReport,re,{})),(0,P.ZZ)(se=>{const Z=this.udsEndpoint.post(this.buildApiUrl("uds/session/reports"),se);return this.distributedtracingUtilService.handleHttpEndpointSpan(Z,se,N.pB.GetUdsEndOfSessionReport,ve)}),(0,_.W)(se=>this.idmService.handleAuthError(se,ue,this.getEndOfSessionUdsReport.bind(this),re,ie,ve)))}static{this.\u0275fac=function(ie){return new(ie||H)(I.KVO(c.J6),I.KVO(L.t),I.KVO(N.Z1),I.KVO(D.k_2),I.KVO(D.y1M),I.KVO(D.Vk6))}}static{this.\u0275prov=I.jDH({token:H,factory:H.\u0275fac,providedIn:"root"})}}return H})();var g=s(78812),R=s(26537),B=s(56785);let X=(()=>{class H{get udsSuggestionsShownInStream(){return this._udsSuggestionsShownInStream}set udsSuggestionsShownInStream(re){this._udsSuggestionsShownInStream=re}get snoozeDurationInDays(){return this._snoozeDurationInDays}set snoozeDurationInDays(re){this._snoozeDurationInDays=re}get streamingErrorDetails(){return this._streamingErrorDetails}set streamingErrorDetails(re){this._streamingErrorDetails=re}get rawUDSDataFromGS(){return this._rawUDSDataFromGS}set rawUDSDataFromGS(re){this._rawUDSDataFromGS=re}get sessionDurationInMinsForUDS(){return this._sessionDurationInMins}set sessionDurationInMinsForUDS(re){this._sessionDurationInMins=re/60}updateUDSData(re){return(0,n.zV)([this.gridService.vpcId$,this.ecommerceService.getUserMembership(),this.systemInfoService.getSystemInfo([c.Lu.GPU,c.Lu.OSVersion]),this.streamingProfileService.getStreamingProfile()]).pipe((0,f.s)(1),(0,O.T)(([ie,ve,ue,se])=>{const Z=ve.subscription?.firstEntitlementStartDateTime,Se=["networkInfo"],Ce=Object.assign({},...Object.keys(se).filter(me=>!Se.includes(me)).map(me=>({[me]:se[me]}))),Be=ve.subscription?.productSku,Xe=ve.subscription?.upsells?.length>0?ve.subscription?.upsells:[],He=Z?c.Nq.getDaysElapsedFromDate(Z):0;Z?this.logger.info("elapsedTime since firstEntitlement",He):this.logger.info("firstEntitlementStartDateTime from GES is empty/null");const Me=this.rawUDSDataFromGS,A={elapsedTimeInDays:He||0,sessionDurationInMins:this.sessionDurationInMinsForUDS||0,sessionEndTimeStamp:Date.now(),sessionId:this.streamingProperties?.sessionId??"",subSessionId:this.streamingProperties?.subSessionId??"",streamingResolution:this.streamingProperties?.streamingResolution||null,streamedAppName:this.streamingProperties?.streamedAppName??"",gpuType:this.streamingProperties?.gpuType??"",upsells:Xe,gpu0LongName:ue.GPU?.GPUData[0]?.LongGPUName??"",zoneName:ie,ui_source:M.zO.EndOfSession,sku:Be??"",streamingProfile:Ce,osVersion:ue.OSVersion??"",...re};return this.appConfig?.udsConfig?.useOverriddenSAScores&&Me&&this.appConfig?.udsConfig?.saScores&&(Me.saScores={...Me.saScores,...this.appConfig?.udsConfig?.saScores},this.logger.info("Overriding saScores ",Me.saScores)),{...Me,...A}}))}get streamingProperties(){return this._currentStreamingProperties}set streamingProperties(re){this._currentStreamingProperties={...re}}getUDSDiagnosticData$(){return this.udsDiagnosticDataReplaySubject.asObservable()}constructor(re,ie,ve,ue,se,Z,Se,Ce,Be,Xe,He,Me,Q,A,me,ne,G){this.settingsService=re,this.appConfig=ie,this.remoteConfigService=ve,this.guestModeHelperService=ue,this.localeService=se,this.idmService=Z,this.dbCacheService=Se,this.udsSdkService=Ce,this.telemetryService=Be,this.systemInfoService=Xe,this.matDialog=He,this.gridService=Me,this.focusManager=Q,this.streamingProfileService=A,this.networkConfigService=ne,this.ecommerceService=G,this._udsSuggestionsShownInStream=!1,this._rawUDSDataFromGS=null,this._currentStreamingProperties=null,this.udsDBStore=null,this.udsDiagnosticDataReplaySubject=new l.m(1),this.udsIconVisibilityState=new d.B7,this._streamingErrorDetails=null,this.onUdsDataUpdatedSubject=new d.B7,this.udsNotificationState=new v.t({canShowIcon:!1,hasNotification:!1}),this.logger=me.getLogger("UdsHelperService"),this.initUdsDataUpdatedListener(),this.initUdsNotificationState()}initUdsDataUpdatedListener(){this.onUdsDataUpdatedSubject.asObservable().pipe((0,P.ZZ)(()=>(this.logger.info("Fetching uds data.."),this.postUDSData())),(0,_.W)(re=>(this.logger.error("Error fetching uds suggestion"+re),(0,S.of)(!1)))).subscribe()}getUdsIconVisibiltityState(){return this.udsIconVisibilityState.asObservable()}sendUDSDataToServer(){this.onUdsDataUpdatedSubject.next()}postUDSData(){const re=this.networkConfigService.getNetworkConditions().pipe((0,i.p)(ie=>null!==ie));return this.canPostUDSData().pipe((0,f.s)(1),(0,P.ZZ)(ie=>(0,y.T)(()=>ie,re.pipe((0,f.s)(1),(0,P.ZZ)(ve=>{const ue={zoneOverride:ve?.zoneOverride,sessionStartTimeStamp:this.streamingProperties.sessionStartTime,...this.streamingErrorDetails};return ve?.isVPNDetectable&&(ue.isVPN=ve.isVpn),this.updateUDSData(ue)}),(0,P.ZZ)(ve=>this.fetchUdsEndOfSessionReport(ve))),(0,S.of)(!1))),(0,r.M)(()=>{this.rawUDSDataFromGS=null,this.streamingProperties=null,this.streamingErrorDetails=null}))}getSessionDurationInSeconds(){const re=Date.now()-this.streamingProperties.sessionStartTime,ie=Math.floor(re/1e3);return this.logger.info("Streaming session duration in seconds: ",ie),ie}fetchUdsSummonedReport(re){const ie=this.localeService.localeChanged,ve=this.systemInfoService.getSystemInfo([c.Lu.DeviceId]);return(0,n.zV)([ie,ve]).pipe((0,f.s)(1),(0,P.ZZ)(([ue,se])=>this.udsSdkService.getSummonedUdsReport({locale:ue,deviceId:se.DeviceId})),(0,r.M)(ue=>{this.persistUDSNotificationIcon(!1),this.udsIconVisibilityState.next(!1),ue.error?this.handleUDSSuggestionError(ue.error,re,ue):this.sendUDSDialogShownTelemetry(ue,re)}),(0,_.W)(ue=>{const se="Error fetching summoned UDS report";return this.logger.error(se,ue),this.handleUDSSuggestionError(se,re,null),(0,S.of)(null)}))}showDiagnosticDialog(re){this.startWaitingForDiagnosticData();const ie=this.focusManager.restoreFocusAfterClosed(()=>this.matDialog.open(D.MgU,{panelClass:["dialog-component-container","dark-hue4-background-dialog"],autoFocus:!1,hasBackdrop:!0,disableClose:!0,maxWidth:"100vw",enterAnimationDuration:"0ms"}));this.fetchUdsSummonedReport(re).pipe((0,f.s)(1)).subscribe(ve=>{ie.componentInstance.response=ve,this.udsDiagnosticDataReplaySubject.next(ve)}),ie.componentInstance.launchSource=re,ie.componentInstance.udsUIClosed.pipe((0,f.s)(1)).subscribe(ve=>{ie.close()})}startWaitingForDiagnosticData(){this.udsDiagnosticDataReplaySubject.complete(),this.udsDiagnosticDataReplaySubject=null,this.udsDiagnosticDataReplaySubject=new l.m(1)}fetchUdsEndOfSessionReport(re){let ie;return(0,n.zV)([this.localeService.localeChanged,this.idmService.accountStatusChanged,this.systemInfoService.getSystemInfo([c.Lu.DeviceId])]).pipe((0,f.s)(1),(0,P.ZZ)(([ve,ue,se])=>(ie={udsData:re},ie.udsData.locale=ve,ie.udsData.idpId=ue?.idpId,this.udsSdkService.getEndOfSessionUdsReport(ie,se.DeviceId))),(0,O.T)(ve=>{if(this.logger.info("Show notify icon for summon button",!!ve?.notifyIcon),this.persistUDSNotificationIcon(!!ve?.notifyIcon),0===Object.keys(ve)?.length||ve?.error){const ue=0===Object.keys(ve)?.length?"emptyError: No data is available":String(ve?.error);return this.handleUDSSuggestionError(ue,M.zO.EndOfSession,ve,ie),!1}return ve.reports[0].areSAScoresGood?(this.handleUDSSuggestionError("Good SAS score",M.zO.EndOfSession,ve,ie),!1):(this.startWaitingForDiagnosticData(),this.udsDiagnosticDataReplaySubject.next(ve),this.udsSuggestionsShownInStream=!0,this.sendUDSDialogShownTelemetry(ve,M.zO.EndOfSession,ie),!0)}),(0,_.W)(ve=>(this.handleUDSSuggestionError("Error fetching end of session UDS report",M.zO.EndOfSession,null,ie),this.logger.error("Error fetching end of session UDS report",ve),(0,S.of)(!1))))}handleUDSSuggestionError(re,ie,ve,ue={}){this.udsSuggestionsShownInStream=!1,this.logger.error("handling UDSSuggestion Error: ",re,"Launch Source: ",ie),this.sendUDSDialogShownTelemetry(ve,ie,ue,re)}udsTriggerSource(re){switch(re){case M.zO.EndOfSession:return D.Cv0.EndOfSession;case M.zO.Mall:return D.Cv0.Mall;case M.zO.Notification:return D.Cv0.Notification}}sendUDSDialogShownTelemetry(re,ie,ve={},ue=""){const se=re?.reports[0],Z={sessionId:se?.sessionId||ve?.sessionId||"",subSessionId:se?.subSessionId||ve?.subSessionId||"",isSuccess:ue?D.T80.FALSE:D.T80.TRUE,error:ue,apiVersion:se?.udsVersion??"",udsData:JSON.stringify(ve)?.substring(0,1024)||"",category:se?.recommendationCategory||"",source:this.udsTriggerSource(ie)};this.telemetryService.push(new D.B4z(Z))}canShowUDSSummonedUIIcon(){return this.remoteConfigService.remoteConfigFetched$.pipe((0,O.T)(re=>{const ie=!this.guestModeHelperService.isGuestMode&&re.config?.udsConfig.canEnableSummonedUI;return this.logger.info("showUDSSummonedUIIcon flag",ie),ie}),(0,_.W)(re=>(this.logger.error("Error in canShowUDSSummonedUIIcon",re),(0,S.of)(!1))))}canPostUDSData(){return this.remoteConfigService.remoteConfigFetched$.pipe((0,f.s)(1),(0,O.T)(re=>{this.sessionDurationInMinsForUDS=this.getSessionDurationInSeconds(),this.snoozeDurationInDays=re.config?.udsConfig.snoozeDurationInDays;const ie=!this.guestModeHelperService.isGuestMode&&re.config?.udsConfig.canEnableEndOfSessionUI;return this.logger.info("canPostUDSData flag ",ie),ie}),(0,_.W)(re=>(this.logger.error("Error in canPostUDSData",re),(0,S.of)(!1))))}snoozeUDS(){const re=24*this.snoozeDurationInDays*60*60*1e3,ie={settingType:m.oY.UdsSnoozeStopDateTime,selectedOption:new Date(Date.now()+re).toISOString()};this.settingsService.storeChangedSettings(ie)}isUdsSnoozed(){return this.appConfig.udsConfig?.disableSnooze?(0,S.of)(!1):this.settingsService.getSettingsData().pipe((0,O.T)(re=>{if(re?.udsSnoozeStopDateTime){const ie=new Date(re.udsSnoozeStopDateTime).getTime();if((new Date).getTime()<ie)return!0}return!1}))}persistToastShown(){this.setUserPreference(D.mGo.toastShown,!0)}setUserPreference(re,ie){this.udsDBStore&&this.udsDBStore.status_===c.tO.Saved&&this.udsDBStore.sync_().pipe((0,P.ZZ)(()=>(this.udsDBStore[re]=ie,this.udsDBStore.persist_()))).subscribe()}getUdsStoreData(){return this.idmService.accountStatusChanged.pipe((0,f.s)(1),(0,i.p)(re=>re.isAuthenticated),(0,P.ZZ)(re=>(this.logger.info("intializing UDSDataStore"),this.udsDBStore=this.dbCacheService.getOrCreateCachedGlobalItem(M.TS,re.userId),this.udsDBStore.sync_())))}showUDSToast$(){return this.getUdsStoreData().pipe((0,P.ZZ)(()=>this.canShowUDSSummonedUIIcon()),(0,O.T)(re=>{const ie=re&&!this.udsDBStore.toastShown;return this.logger.info("canShowUDSToast",ie),ie}))}readUdsNotificationIconState(){return this.getUdsStoreData().pipe((0,O.T)(re=>(this.logger.info("show uds notification icon",this.udsDBStore.showUdsNotificationIcon),!!this.udsDBStore.showUdsNotificationIcon)))}initUdsNotificationState(){(0,n.zV)([this.canShowUDSSummonedUIIcon(),this.readUdsNotificationIconState().pipe((0,a.Z)(!1))]).pipe((0,O.T)(([re,ie])=>this.buildNotificationState(re,ie))).subscribe(re=>{this.udsNotificationState.next(re)})}buildNotificationState(re,ie){return{canShowIcon:re,hasNotification:re&&ie}}getUdsNotificationState(){return this.udsNotificationState.asObservable()}getCanShowUdsNotificationIcon(){return this.getUdsNotificationState().pipe((0,O.T)(re=>re.hasNotification))}persistUDSNotificationIcon(re){this.setUserPreference(D.mGo.showUdsNotificationIcon,re),this.canShowUDSSummonedUIIcon().pipe((0,f.s)(1),(0,O.T)(ie=>this.buildNotificationState(ie,re))).subscribe(ie=>{this.udsNotificationState.next(ie)})}static{this.\u0275fac=function(ie){return new(ie||H)(I.KVO(m.h$),I.KVO(U.Vk),I.KVO(V.a),I.KVO(T.x),I.KVO(c.iH),I.KVO(D.k_2),I.KVO(c.sc),I.KVO(E),I.KVO(g.H0),I.KVO(c.zW),I.KVO(R.bZ),I.KVO(D.Gip),I.KVO(B.c_),I.KVO(m.xf),I.KVO(c.J6),I.KVO(D.uUB),I.KVO(D.yJU))}}static{this.\u0275prov=I.jDH({token:H,factory:H.\u0275fac,providedIn:"root"})}}return H})()},16632:(Bt,z,s)=>{"use strict";s.d(z,{Cz:()=>v,TS:()=>P,_Z:()=>d,is:()=>S,qZ:()=>O,xy:()=>l,zO:()=>n});var n=function(_){return _.EndOfSession="END_OF_SESSION",_.Mall="MALL",_.Notification="NOTIFICATION",_}(n||{}),l=function(_){return _[_.Poor=0]="Poor",_[_.Bad=1]="Bad",_[_.Good=2]="Good",_[_.Excellent=3]="Excellent",_}(l||{}),d=function(_){return _[_.None=0]="None",_[_.Warning=1]="Warning",_[_.Error=2]="Error",_}(d||{}),v=function(_){return _.DesktopWindows="desktop_windows",_.Wifi="wifi",_.Isp="isp",_.Storage="storage",_}(v||{}),S=function(_){return _[_.none=0]="none",_[_.thumbUp=1]="thumbUp",_[_.thumbDown=2]="thumbDown",_}(S||{}),y=function(_){return _.DecoderScore="decoderScore",_.DownlinkCongestion="downlinkCongestion",_.DownlinkLag="downlinkLag",_.GpuPerfScore="gpuPerfScore",_.Overall="overall",_.ServerPerfScore="serverPerfScore",_.Uplink="uplink",_.VisualScore="visualScore",_}(y||{});const O=new Map([[y.DecoderScore,[v.DesktopWindows]],[y.Uplink,[v.Wifi]],[y.DownlinkLag,[v.Wifi,v.Isp]],[y.DownlinkCongestion,[v.Wifi,v.Isp]],[y.GpuPerfScore,[v.Storage]]]),P="UDSDataStore"},18587:(Bt,z,s)=>{"use strict";s.d(z,{F:()=>E});var n=s(26875),l=s(85735),d=s(93181),v=s(43848),S=s(31315),y=s(12532),f=s(892),O=s(83915),P=s(75707),_=s(14714),i=s(10174),r=s(78812),a=s(20924),c=s(99469),m=s(18433),M=s(8094),D=s(40996),I=s(81834),U=s(58527),V=s(89284),T=s(72945),N=s(55512),L=s(98231);let E=(()=>{class g{constructor(B,X,H,J,re,ie,ve,ue,se){this.appConfig=B,this.loggingService=X,this.sharedStorageService=H,this.idmService=J,this.telemetryService=re,this.telemetryUtilService=ie,this.gfnSdkService=ve,this.idmIpcService=ue,this.bridgeService=se,this.blockName="userConsentInfo",this.userConsentExpirationHours=24,this.isClientGdprConsentSet=!1,this.isManualLogin=null,this.userConsentSubject=new l.m(1),this.deviceConsentSubject=new l.m(1),this.eventDataElementsSubject=new l.m,this.logger=this.loggingService.getLogger("user-consent.service"),this.initLoginStatusSubscription(),this.sendEventDataElementsToRagnarok()}initUserConsent(){this.sharedStorageService.readBlock(this.blockName).pipe((0,O.T)(B=>!(0,n.isEmpty)(B)&&((0,n.isNil)(B.userId)||(0,n.isEmpty)(B.userId)?(this.logger.event("no stored consent setDefaultClientConsent",B.userConsent),this.telemetryService.setDefaultClientConsent(B.userConsent)):this.telemetryService.setUserConsent([B]),!0))).subscribe(B=>{B?this.logger.info("Consent read from userConsentInfo block sent to jsevents for initialization."):this.logger.error("No client consent sent to jsevents.")},B=>{this.logger.error("Reading UserConsentInfo block failed with error: ",B)})}writeUserConsent(B){return this.sharedStorageService.writeBlock(this.blockName,B,!0)}getDeviceConsent$(){return this.deviceConsentSubject.asObservable()}getUserConsent$(){return this.userConsentSubject.asObservable()}getEventDataElements$(){return this.eventDataElementsSubject.asObservable()}fetchAndUpdateUserConsent(B){return(0,d.p)([this.sharedStorageService.readBlock(this.blockName),this.telemetryService.getDefaultClientConsentObserable()]).pipe((0,P.ZZ)(([X,H])=>(X=this.refreshExpiryTime(X),this.updateUserConsentTelemetry(X,B),this.logger.info("Send app launch telemetry for valid userId"),this.telemetryUtilService.sendLaunchTimeTelemetry(),this.setExpiryIntervalSubscription(B),this.userConsentSubject.next(X.userConsent),this.writeUserConsent(X))))}sendEventDataElementsToRagnarok(){const B=this.appConfig?.featureEnablement?.useGridServer2;(c.zk.isBrowserPlatform()||B)&&(this.telemetryService.getCommonData$().pipe((0,P.ZZ)(X=>{const H={commonData:X,config:{server:this.appConfig.jsEvents.server,version:this.appConfig.jsEvents.version}};return H.commonData.sentTs=void 0,H.commonData.events=void 0,B?(this.eventDataElementsSubject.next(H),(0,v.of)(!0)):this.bridgeService.executeCommand(a.Ts.Gfn.Streaming.UpdateEventDataElements,H)})).subscribe(),(0,S.zV)([this.getDeviceConsent$(),this.getUserConsent$()]).pipe((0,P.ZZ)(([X,H])=>{const J={commonData:{}};return J.commonData.deviceGdprFuncOptIn=X.functional,J.commonData.deviceGdprTechOptIn=X.technical,J.commonData.deviceGdprBehOptIn=X.behavioral,J.commonData.gdprFuncOptIn=H.functional,J.commonData.gdprTechOptIn=H.technical,J.commonData.gdprBehOptIn=H.behavioral,B?(this.eventDataElementsSubject.next(J),(0,v.of)(!0)):this.bridgeService.executeCommand(a.Ts.Gfn.Streaming.UpdateEventDataElements,J)})).subscribe())}createConsentBlock(B){const X=(0,n.merge)({},r.XZ);return X.userConsent=B,X}createConsentBlockWithAuthInfo(B,X){const H=(0,n.merge)(r.XZ,{userId:B.userId,externalUserId:B.externalUserId,idpId:B.idpId});return H.userConsent=X,H}initLoginStatusSubscription(){this.idmService.cachedUser.pipe((0,P.ZZ)(B=>(this.isManualLogin=!B.data.isAuthenticated,(0,S.zV)([this.gfnSdkService.getAuthInfo(),this.idmService.accountStatusChanged]).pipe((0,P.ZZ)(([H,J])=>{let re=J;if(!re.isAuthenticated&&this.checkIntervalSubscription)this.checkIntervalSubscription.unsubscribe();else if(re.isAuthenticated||H.authType===D.hT.JWT){let ie={userId:re.userId,externalUserId:re.externalId,idpId:re.idpId};return H.authType===D.hT.JWT&&(ie={userId:H.userId,externalUserId:H.externalUserId,idpId:H.idpId},re={...re,userId:H.userId,externalId:H.externalUserId,idpId:H.idpId}),(""===re.idpId||(0,n.isNil)(re.idpId))&&(ie={userId:r.oX.Undefined,externalUserId:re.userId,idpId:r.oX.Undefined}),this.telemetryService.setEventsCommonData(ie,!0),this.fetchAndUpdateUserConsent(re)}return re.isAuthenticated?y.w:this.updateUserConsentInfoOnLogout()})))),(0,_.W)(B=>(this.logger.error("Error in getting/setting consent data on user refresh, Setting to default",B),(0,v.of)(!1)))).subscribe(B=>{this.logger.info("Updated user consent result successfully:",B),this.idmIpcService.sendLoginStatusChange()})}isExpired(B){let X=!0;const H=new Date;if(B&&B.expiryTime){const J=new Date(B.expiryTime);this.logger.info("Expiry time "+J+" now "+H),X=J<H}return X}refreshExpiryTime(B){if((0,n.isNil)(B.expiryTime)||this.telemetryUtilService.getClientType()!==m.sKj.StreamingClient){const X=new Date;X.setDate(X.getDate()+1),B.expiryTime=X.toISOString(),this.logger.event("LocalConsent expiryTime updated: ",B)}return B}updateUserConsentTelemetry(B,X){X.isAuthenticated&&(B.userConsent=(0,M.A$)(X),B.userId=X.userId,B.externalUserId=X.externalId,B.idpId=X.idpId,this.telemetryService.setUserConsent([B]))}checkConsentInterval(){return this.sharedStorageService.readBlock(this.blockName).pipe((0,P.ZZ)(B=>{if(!(0,n.isEmpty)(B))return this.isExpired(B)?this.idmService.refreshUser().pipe((0,i.u)(!0)):(this.logger.info("Consent data is still valid"),this.updateUserConsentTelemetry(B,this.currentUser),y.w)}))}setExpiryIntervalSubscription(B){if(this.currentUser=B,this.telemetryUtilService.getClientType()!==m.sKj.StreamingClient){const X=(0,f.Y)(60*this.userConsentExpirationHours*60*1e3);this.checkIntervalSubscription=X.pipe((0,P.ZZ)(()=>this.checkConsentInterval())).subscribe()}else this.logger.info("Not checking consent info on regular intervals for streamer")}setUpJarvisUserChangedSubscription(){this.idmService.accountStatusChanged.subscribe(B=>{!B.isAuthenticated&&!this.telemetryService.getLaunchUiEventSent()&&(this.logger.info("No user present, send launch time telemetry for undefined userId"),this.telemetryUtilService.sendLaunchTimeTelemetry())})}setDefaultConsentData(B){return this.logger.trace(I.N_.UserDetails,I.YD.UserInfo,"User consent is Behavioral:"+B.behavioral+" Functional:"+B.functional+" Technical:"+B.technical),this.isClientGdprConsentSet?(this.logger.info("Client GDPR consent is already set."),(0,v.of)(!1)):(this.logger.event("client consent not yet set - setDefaultClientConsent",B),this.telemetryService.setDefaultClientConsent(B),this.setUpJarvisUserChangedSubscription(),this.isClientGdprConsentSet=!0,this.deviceConsentSubject.next(B),this.writeUserConsent(this.createConsentBlock(B)))}setAnonUserConsentData(B){return this.logger.event("client consent not yet set - setAnonUserConsentData",B),this.telemetryService.setDefaultClientConsent(B),this.setUpJarvisUserChangedSubscription(),this.isClientGdprConsentSet=!0,this.gfnSdkService.getAuthInfo().pipe((0,P.ZZ)(X=>this.writeUserConsent(this.createConsentBlockWithAuthInfo(X,B))))}getAnonUserConsentData(){return this.sharedStorageService.readBlock(this.blockName).pipe((0,P.ZZ)(B=>(0,v.of)(B)))}updateUserConsentInfoOnLogout(){return this.sharedStorageService.readBlock(this.blockName).pipe((0,P.ZZ)(B=>(0,n.isEmpty)(B)?(this.logger.warn("UserConsentInfo section is empty in sharedstorage"),(0,v.of)(!1)):(B.userConsent=r.bC,delete B.userId,B.externalUserId&&delete B.externalUserId,B.idpId&&delete B.idpId,B.expiryTime&&delete B.expiryTime,this.userConsentSubject.next(B.userConsent),this.writeUserConsent(B))))}ngOnDestroy(){this.checkIntervalSubscription&&this.checkIntervalSubscription.unsubscribe()}static{this.\u0275fac=function(X){return new(X||g)(U.KVO(V.Vk6),U.KVO(c.J6),U.KVO(T.yQ),U.KVO(N.k_),U.KVO(r.H0),U.KVO(m.jgD),U.KVO(D.DL),U.KVO(L.S),U.KVO(c.NZ))}}static{this.\u0275prov=U.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}}return g})()},94829:(Bt,z,s)=>{"use strict";s.d(z,{yj:()=>_,rc:()=>n.rc,yJ:()=>n.yJ,n9:()=>n.n9,zC:()=>n.zC,ZE:()=>n.ZE,u2:()=>n.u2,zy:()=>n.zy,Df:()=>n.Df});var n=s(8094),l=s(80583),d=s(17053),v=s(18433),S=s(58527),y=s(99469),f=s(78812),O=function(L){return L.HaveNothing="HAVE_NOTHING",L.HaveMetadata="HAVE_METADATA",L.HaveCurrentData="HAVE_CURRENT_DATA",L.HaveFutureData="HAVE_FUTURE_DATA",L.HaveEnoughData="HAVE_ENOUGH_DATA",L}(O||{}),P=function(L){return L.NetworkEmpty="NETWORK_EMPTY",L.NetworkIdle="NETWORK_IDLE",L.NetworkLoading="NETWORK_LOADING",L.NetworkNoSource="NETWORK_NO_SOURCE",L}(P||{});let _=(()=>{class L{constructor(g,R){this.telemetryService=R,this.mediaPlayExceptionSubject=new l.B7,this.logger=g.getLogger("MediaHelperService")}playMedia(g,R,B){g?.parentElement||this.logger.warn("Attempting to play a media with null parentElement (probably not in DOM?)");const X=H=>{this.logger.info(`${H} - type=${R}, srcObject=${g?.srcObject?"defined":"undefined"}, played=${g?.played}, paused=${g?.paused}, readyState=${this.getVideoState(g?.readyState)}, muted=${g?.muted},\n sessionInfo=${JSON.stringify(B)}`)};return X("Attempting to play media"),new d.c(H=>{const J=g?.play();if(!J)return X("Undefined play result"),H.next(!g?.paused),void H.complete();J.then?.(()=>{X("Successfully played"),this.sendMediaPlayEvent(R,B),H.next(!0)}).catch?.(re=>{X("Failed to play"),this.logger.error(`${R} play failed with error: ${re.name}: ${re.message}`),this.sendMediaPlayEvent(R,B,re),this.mediaPlayExceptionSubject.next(re),H.next(!1)}).finally?.(()=>{H.complete()})})}pauseMedia(g){g?.pause()}mediaPlayFailure$(){return this.mediaPlayExceptionSubject.asObservable()}sendMediaPlayEvent(g,R,B){const X=new v.Yno({streamSessionId:R?.sessionId??"",streamSubSessionId:R?.subSessionId??"",mediaType:"video"===g?v.N0J.Video:v.N0J.Audio,result:void 0===B?v.Ssl.Success:v.Ssl.Failure,errorDetails:B?.message??"",errorName:B?.name??"",isResume:R?.isResumed??v.T80.FALSE,useCase:R?.useCase??""});this.telemetryService.push(X)}getVideoState(g){let R;switch(g){case HTMLMediaElement.HAVE_NOTHING:R=O.HaveNothing;break;case HTMLMediaElement.HAVE_METADATA:R=O.HaveMetadata;break;case HTMLMediaElement.HAVE_CURRENT_DATA:R=O.HaveCurrentData;break;case HTMLMediaElement.HAVE_FUTURE_DATA:R=O.HaveFutureData;break;case HTMLMediaElement.HAVE_ENOUGH_DATA:R=O.HaveEnoughData;break;default:R=g}return R}getVideoNetworkState(g){let R;switch(g){case HTMLMediaElement.NETWORK_EMPTY:R=P.NetworkEmpty;break;case HTMLMediaElement.NETWORK_IDLE:R=P.NetworkIdle;break;case HTMLMediaElement.NETWORK_LOADING:R=P.NetworkLoading;break;case HTMLMediaElement.NETWORK_NO_SOURCE:R=P.NetworkNoSource;break;default:R=g}return R}logMediaEventObject(g){this.logger.info("Logging event: ");for(const R in g)if("target"===R){for(const B in g[R])"error"===B?this.logger.info("event.target.error: ",B,":",g[R][B]?.code,g[R][B]?.message):("networkState"===B||"readyState"===B)&&this.logger.info("event.target.",B,":",g[R][B]);break}}static{this.\u0275fac=function(R){return new(R||L)(S.KVO(y.J6),S.KVO(f.H0))}}static{this.\u0275prov=S.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}}return L})();s(95318)},8094:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A$:()=>formatConsentData,Df:()=>removeSpacesInString,ZE:()=>formatVanityUrlForDisplay,n9:()=>formatTimeInMinutesToString,rc:()=>convertNegativeErrorCodes,u2:()=>getUserFacingDeviceType,yJ:()=>formatHexString,zC:()=>formatUserCodeForDisplay,zy:()=>getUserFacingOSName});var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(26875),lodash__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__),crimson__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(99469),js_events__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(78812),_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(50778);const minutesInAnHour=60,maxUnsigned32BitInteger=4294967295,HTTP_RESPONSE_STATES={UNDEFINED_RESPONSE:"undefined-response",NULL_URL:"null-url"},formatTimeConfig={HOURS:"hours",MINUTES:"minutes",SECONDS:"seconds"};function formatTimeString(Bt,z){const s=DateTimeUtils.createDuration(Bt),n=[];if(-1!==z.indexOf(formatTimeConfig.HOURS)){const l=leftPad(s?.hours.toString(),"0",2);n.push(l)}if(-1!==z.indexOf(formatTimeConfig.MINUTES)){const l=leftPad(s?.minutes.toString(),"0",2);n.push(l)}if(-1!==z.indexOf(formatTimeConfig.SECONDS)){const l=leftPad(s?.seconds.toString(),"0",2);n.push(l)}return n.join(":")}function formatHexString(Bt){if(Number.isInteger(Bt)){let z=(Bt>>>=0).toString(16).toUpperCase();return z=leftPad(z,"0",8),"0x"+z}return""}function leftPad(Bt,z,s){const n=s-Bt.length;return n>0?Array(n+1).join(z)+Bt:Bt}function hasValue(Bt,z){return!isNil(Bt)}function getUrl(Bt,z){let s="";return s=isUndefined(Bt)?z+"/"+HTTP_RESPONSE_STATES.UNDEFINED_RESPONSE:isNull(Bt.url)?z+"/"+HTTP_RESPONSE_STATES.NULL_URL:Bt.url,s}function getHttpResponseStatus(Bt){let z;return z=isUndefined(Bt)?HTTP_RESPONSE_STATES.UNDEFINED_RESPONSE:Bt.status,z}function validateObject(Bt,z,s=hasValue){const n=!isNil(Bt);return reduce(z,(l,d)=>l&&s(Bt[d],l),n)}function validateJson(Bt,z,s){const n={isValid:!1,data:null,error:""};try{n.data=JSON.parse(Bt),n.isValid=!0}catch(l){n.error=l.message}return n.isValid=n.isValid&&validateObject(n.data,z,s),n}function extractCmsId(Bt,z){const s=Bt.search("cmsId");if(s<0)return z.info("cmsId not found, ignoring event"),null;let n=Bt.substring(s),l=n.split("&");return l.length<=0?(z.error("cmsId found, but string splitting on & returned 0 strings"),null):(n=l[0],l=n.split("="),l.length<=1?(z.error("cmsId key found, but no value was found"),null):+l[1])}function formatConsentData(Bt){const z=(0,lodash__WEBPACK_IMPORTED_MODULE_0__.merge)({},js_events__WEBPACK_IMPORTED_MODULE_2__.bC);return Bt&&(z.technical=Bt.technicalConsent,z.behavioral=Bt.behavioralConsent),z}function removeSpacesInString(Bt){return Bt.replace(/\s/g,"")}function formatVanityUrlForDisplay(Bt){return Bt.replace(/(^\w+:|^)\/\//,"")}function formatUserCodeForDisplay(Bt){if(Bt.length<6)return Bt;const z=Math.round(Bt.length/2);return Bt.slice(0,z)+" - "+Bt.slice(z)}function getUserFacingOSName(Bt){switch(Bt){case crimson__WEBPACK_IMPORTED_MODULE_1__.t_.WebOS:return"webOS";case crimson__WEBPACK_IMPORTED_MODULE_1__.t_.Tizen:return"Tizen";case crimson__WEBPACK_IMPORTED_MODULE_1__.t_.XBox:return"Xbox";case crimson__WEBPACK_IMPORTED_MODULE_1__.t_.SteamOS:return"SteamOS";case crimson__WEBPACK_IMPORTED_MODULE_1__.t_.Shield:case crimson__WEBPACK_IMPORTED_MODULE_1__.t_.Android:return"Android";default:return}}function getUserFacingDeviceType(Bt){switch(Bt){case crimson__WEBPACK_IMPORTED_MODULE_1__.Y0.TV:return"TV";case crimson__WEBPACK_IMPORTED_MODULE_1__.Y0.Console:return"Console";default:return}}function evalCss(expr){return eval(expr.trim().replace(/calc/g,"").replace(/px/g,"").replace(/100vw/g,window.innerWidth.toString()).replace(/100vh/g,window.innerHeight.toString()).replace(/[^-()\d/*+.]/g,""))}function formatTimeInMinutesToString(Bt){if(0===Bt)return{time:"0m"};let z="";Bt>=minutesInAnHour&&(z+=Math.floor(Bt/minutesInAnHour)+"h");const s=Bt%minutesInAnHour;return s>0&&(z+=" "+s+"m"),{time:z}}function convertNegativeErrorCodes(Bt){return Bt>=0?Bt:maxUnsigned32BitInteger- -1*Bt+1}function removeElementFromArray(Bt,z){const s=Bt.indexOf(z);s>-1&&Bt.splice(s,1)}function getTranslatedLanguageLabel(Bt,z){try{return z.match(/(zh)[a-zA-Z0-9_-]*(CN|TW)/g)?EnglishLabelsOfLocales.get(z)??z:Bt.displayNames.of(z.replace(/_/g,"-"))??EnglishLabelsOfLocales.get(z)??z}catch{return EnglishLabelsOfLocales.get(z)??z}}},64962:(Bt,z,s)=>{"use strict";s.d(z,{JS:()=>He,Yk:()=>Se});const n=Symbol("Comlink.proxy"),l=Symbol("Comlink.endpoint"),d=Symbol("Comlink.releaseProxy"),v=Symbol("Comlink.finalizer"),S=Symbol("Comlink.thrown"),y=Me=>"object"==typeof Me&&null!==Me||"function"==typeof Me,P=new Map([["proxy",{canHandle:Me=>y(Me)&&Me[n],serialize(Me){const{port1:Q,port2:A}=new MessageChannel;return i(Me,Q),[A,[A]]},deserialize:Me=>(Me.start(),c(Me))}],["throw",{canHandle:Me=>y(Me)&&S in Me,serialize({value:Me}){let Q;return Q=Me instanceof Error?{isError:!0,value:{message:Me.message,name:Me.name,stack:Me.stack}}:{isError:!1,value:Me},[Q,[]]},deserialize(Me){throw Me.isError?Object.assign(new Error(Me.value.message),Me.value):Me.value}}]]);function i(Me,Q=globalThis,A=["*"]){Q.addEventListener("message",function me(ne){if(!ne||!ne.data)return;if(!function _(Me,Q){for(const A of Me)if(Q===A||"*"===A||A instanceof RegExp&&A.test(Q))return!0;return!1}(A,ne.origin))return void console.warn(`Invalid origin '${ne.origin}' for comlink proxy`);const{id:G,type:W,path:$}=Object.assign({path:[]},ne.data),le=(ne.data.argumentList||[]).map(H);let Pe;try{const Fe=$.slice(0,-1).reduce((Le,Et)=>Le[Et],Me),At=$.reduce((Le,Et)=>Le[Et],Me);switch(W){case"GET":Pe=At;break;case"SET":Fe[$.slice(-1)[0]]=H(ne.data.value),Pe=!0;break;case"APPLY":Pe=At.apply(Fe,le);break;case"CONSTRUCT":Pe=R(new At(...le));break;case"ENDPOINT":{const{port1:Le,port2:Et}=new MessageChannel;i(Me,Et),Pe=function g(Me,Q){return E.set(Me,Q),Me}(Le,[Le])}break;case"RELEASE":Pe=void 0;break;default:return}}catch(Fe){Pe={value:Fe,[S]:0}}Promise.resolve(Pe).catch(Fe=>({value:Fe,[S]:0})).then(Fe=>{const[At,Le]=X(Fe);Q.postMessage(Object.assign(Object.assign({},At),{id:G}),Le),"RELEASE"===W&&(Q.removeEventListener("message",me),a(Q),v in Me&&"function"==typeof Me[v]&&Me[v]())}).catch(Fe=>{const[At,Le]=X({value:new TypeError("Unserializable return value"),[S]:0});Q.postMessage(Object.assign(Object.assign({},At),{id:G}),Le)})}),Q.start&&Q.start()}function a(Me){(function r(Me){return"MessagePort"===Me.constructor.name})(Me)&&Me.close()}function c(Me,Q){return T(Me,[],Q)}function m(Me){if(Me)throw new Error("Proxy has been released and is not useable")}function M(Me){return J(Me,{type:"RELEASE"}).then(()=>{a(Me)})}const D=new WeakMap,I="FinalizationRegistry"in globalThis&&new FinalizationRegistry(Me=>{const Q=(D.get(Me)||0)-1;D.set(Me,Q),0===Q&&M(Me)});function T(Me,Q=[],A=function(){}){let me=!1;const ne=new Proxy(A,{get(G,W){if(m(me),W===d)return()=>{(function V(Me){I&&I.unregister(Me)})(ne),M(Me),me=!0};if("then"===W){if(0===Q.length)return{then:()=>ne};const $=J(Me,{type:"GET",path:Q.map(le=>le.toString())}).then(H);return $.then.bind($)}return T(Me,[...Q,W])},set(G,W,$){m(me);const[le,Pe]=X($);return J(Me,{type:"SET",path:[...Q,W].map(Fe=>Fe.toString()),value:le},Pe).then(H)},apply(G,W,$){m(me);const le=Q[Q.length-1];if(le===l)return J(Me,{type:"ENDPOINT"}).then(H);if("bind"===le)return T(Me,Q.slice(0,-1));const[Pe,Fe]=L($);return J(Me,{type:"APPLY",path:Q.map(At=>At.toString()),argumentList:Pe},Fe).then(H)},construct(G,W){m(me);const[$,le]=L(W);return J(Me,{type:"CONSTRUCT",path:Q.map(Pe=>Pe.toString()),argumentList:$},le).then(H)}});return function U(Me,Q){const A=(D.get(Q)||0)+1;D.set(Q,A),I&&I.register(Me,Q,Me)}(ne,Me),ne}function N(Me){return Array.prototype.concat.apply([],Me)}function L(Me){const Q=Me.map(X);return[Q.map(A=>A[0]),N(Q.map(A=>A[1]))]}const E=new WeakMap;function R(Me){return Object.assign(Me,{[n]:!0})}function X(Me){for(const[Q,A]of P)if(A.canHandle(Me)){const[me,ne]=A.serialize(Me);return[{type:"HANDLER",name:Q,value:me},ne]}return[{type:"RAW",value:Me},E.get(Me)||[]]}function H(Me){switch(Me.type){case"HANDLER":return P.get(Me.name).deserialize(Me.value);case"RAW":return Me.value}}function J(Me,Q,A){return new Promise(me=>{const ne=function re(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}();Me.addEventListener("message",function G(W){!W.data||!W.data.id||W.data.id!==ne||(Me.removeEventListener("message",G),me(W.data))}),Me.start&&Me.start(),Me.postMessage(Object.assign({id:ne},Q),A)})}var ie=s(19392),ve=s(892),ue=s(43848),se=s(65706),Z=s(10174),Se=function(Me){return Me.Timeout="Timeout",Me.Cleared="Cleared",Me.Tick="Tick",Me.Unknown="Unknown",Me}(Se||{}),Be=s(58527),Xe=s(99469);let He=(()=>{class Me{constructor(A){this.logger=A.getLogger("GfnWebWorkerService")}initialize(){if(typeof Worker<"u"){const A=new Worker(s.tu(new URL(s.p+s.u(403),s.b)),{type:void 0,name:"gfn-web"});this.gfnWorker=c(A)}else this.logger.warn("Web workers not supported, will use fallback mechanism");return this.gfnWorker}hash(A){return(0,ie.H)(this.gfnWorker.sha1(A))}intervalHandler(A,me){return this.gfnWorker?(0,ie.H)(this.gfnWorker.registerTimer(A,R(me))):A.startTimer?(this.logger.info("Fallback mechanism triggered, starting timer"),this.timer$=(0,ve.Y)(A.timeout).pipe((0,se.s)(1),(0,Z.u)(Se.Timeout)),this.timer$):(this.logger.info("Fallback mechanism triggered, clearing timer"),this.timer$=null,(0,ue.of)(Se.Cleared))}periodicIntervalHandler(A,me){return this.gfnWorker?(this.gfnWorker.registerInterval(A,R(me)),(0,ue.of)(Se.Unknown)):A.startInterval?(this.logger.info("Fallback mechanism triggered, starting interval"),this.interval$=(0,ve.Y)(A.tickInterval).pipe((0,Z.u)(Se.Tick)),this.interval$):(this.logger.info("Fallback mechanism triggered, clearing interval"),this.interval$=null,(0,ue.of)(Se.Cleared))}static{this.\u0275fac=function(me){return new(me||Me)(Be.KVO(Xe.J6))}}static{this.\u0275prov=Be.jDH({token:Me,factory:Me.\u0275fac,providedIn:"root"})}}return Me})()},11961:(Bt,z,s)=>{"use strict";s.d(z,{p:()=>v});var n=s(58527),l=s(72945);const d="defaultZone";let v=(()=>{class S{constructor(f){this.sharedStorage=f}setDefaultZone(f){return this.sharedStorage.writeBlock(d,f)}getDefaultZone(){return this.sharedStorage.readBlock(d)}static{this.\u0275fac=function(O){return new(O||S)(n.KVO(l.yQ))}}static{this.\u0275prov=n.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})()},89284:(Bt,z,s)=>{"use strict";s.d(z,{Ut0:()=>En,$94:()=>Un.$9,UWk:()=>ar.UW,BxN:()=>ar.Bx,T80:()=>bn.T80,Tzh:()=>en.T,mGo:()=>Ee.mG,hLj:()=>xt.hL,niw:()=>ji.ni,EBD:()=>bn.EBD,y1M:()=>go.y1,aa0:()=>bn.aa0,HD9:()=>Ee.HD,WWE:()=>Wc,r1C:()=>Qi.r1,Yi6:()=>Qi.Yi,r7g:()=>It.r7,lph:()=>It.lp,Vk6:()=>yo.Vk,M0g:()=>ar.M0,LE3:()=>Ks.LE,wCY:()=>gd.w,qr_:()=>li,yJU:()=>Ks.yJ,fbu:()=>bn.fbu,$w$:()=>dc,vhU:()=>bn.vhU,iVs:()=>bn.iVs,yEy:()=>bn.yEy,uBn:()=>rd.u,RXY:()=>bn.RXY,GSb:()=>bn.GSb,$vj:()=>$d,q8U:()=>zt,OjG:()=>ji.Oj,V6C:()=>Pt.V6,BSK:()=>cl,$1L:()=>bn.$1L,Gip:()=>ho.G,xDS:()=>Mn.x,k_2:()=>jr.k_,VK0:()=>ht,NGk:()=>ji.NG,C$e:()=>yo.C$,Br4:()=>Ir.Br,yjM:()=>gt.yj,Yjq:()=>bn.Yjq,uxn:()=>bn.uxn,tS_:()=>ji.tS,lWV:()=>on.lW,uUB:()=>ot.uU,qIF:()=>si,Kfi:()=>Ae,qH9:()=>bn.qH9,xLz:()=>xt.xL,Pii:()=>xt.Pi,eK6:()=>bn.eK6,GoL:()=>bn.GoL,t4p:()=>bn.t4p,Uu$:()=>bn.Uu$,Itz:()=>hd,SLD:()=>mu.SL,CC_:()=>Kl.C,YDY:()=>bn.YDY,_b3:()=>bn._b3,SBM:()=>ar.SB,ptg:()=>bn.ptg,FFI:()=>Cr,Q5Y:()=>It.Q5,F4T:()=>pd.F4,wIR:()=>Jl,BEl:()=>bn.BEl,irY:()=>ar.ir,d5b:()=>ar.d5,DNU:()=>ar.DN,SCF:()=>ar.SC,HMi:()=>Pt.HM,MCB:()=>bn.MCB,bo5:()=>ot.bo,OOF:()=>bn.OOF,L4P:()=>ar.L4,PbG:()=>ng,h$Q:()=>ar.h$,oY8:()=>ar.oY,OUV:()=>ji.OU,zeh:()=>ar.ze,zi2:()=>wd,HFx:()=>Rc,HOo:()=>bn.HOo,xfC:()=>ar.xf,N1D:()=>ct.N1,zZZ:()=>ct.zZ,hz6:()=>ct.hz,q3U:()=>ct.q3,Icg:()=>xd,O67:()=>bn.O67,jgD:()=>bn.jgD,B4z:()=>bn.B4z,zOq:()=>Ho.zO,Cv0:()=>bn.Cv0,umq:()=>Ko.u,MgU:()=>Ne,bzs:()=>xt.bz,im9:()=>ar.im,FX3:()=>rn.F,OON:()=>Ks.OO,_RN:()=>ar._R,HjG:()=>bn.HjG,yLo:()=>Un.yL,rcS:()=>gt.rc,QP$:()=>bn.QP$,Z9m:()=>Ks.Z9,Tq5:()=>Ks.Tq,nCs:()=>Ks.nC,Pqy:()=>Ks.Pq,yJs:()=>gt.yJ,n96:()=>gt.n9,ZZv:()=>Un.ZZ,y1F:()=>Pt.y1});var n=s(26537),l=s(31308),d=s(44224),v=s(29370),S=s(47973),y=s(99204),f=s(51006),O=s(61142),P=s(96542),_=s(80583),i=s(17053),r=s(4208),a=s(65706),c=s(26875),m=s(99469),M=s(56785);var I=s(78812);const U={PopUpDialogShown:{name:"PopUpDialogShown",gdprLevel:I.EU.Functional},PopUpDialogClosed:{name:"PopUpDialogClosed",gdprLevel:I.EU.Technical}};var V=function(it){return it.UNDEFINED="UNDEFINED",it.TRUE="TRUE",it.FALSE="FALSE",it}(V||{}),T=function(it){return it.App_Exit="App_Exit",it.Dialog_Closed="Dialog_Closed",it.Goto_Settings="Goto_Settings",it}(T||{}),N=function(it){return it.Release_Highlights="Release_Highlights",it.Account_Link_Required="Account_Link_Required",it.Account_Link_Expired="Account_Link_Expired",it.Account_Link_Expires_Today="Account_Link_Expires_Today",it.Account_Link_Expires_Soon="Account_Link_Expires_Soon",it.Unknown="Unknown",it}(N||{});class L extends I.YH{constructor(Ln){super(Ln),this.name=U.PopUpDialogShown.name,this.gdprLevel=U.PopUpDialogShown.gdprLevel}}class E extends I.YH{constructor(Ln){super(Ln),this.name=U.PopUpDialogClosed.name,this.gdprLevel=U.PopUpDialogClosed.gdprLevel}}var g=s(58527),R=s(44968),B=s(76706),X=s(3457),H=s(28139);const J=["articleContentContainer"];function re(it,Ln){1&it&&(g.j41(0,"div",6),g.nrm(1,"mat-progress-spinner",7),g.k0s())}function ie(it,Ln){if(1&it){const F=g.RV6();g.j41(0,"div",17)(1,"button",18),g.bIt("click",function(){g.eBV(F);const Ke=g.XpG(3);return g.Njj(Ke.closeDialog())}),g.nrm(2,"mat-icon",19),g.k0s()()}}function ve(it,Ln){if(1&it&&(g.j41(0,"span",20),g.EFF(1),g.nI1(2,"translate"),g.k0s()),2&it){const F=g.XpG(3);g.R7$(),g.JRh(g.bMT(2,1,F.articleDataParams.subTitle))}}function ue(it,Ln){1&it&&g.nrm(0,"div",21)}function se(it,Ln){if(1&it&&(g.nrm(0,"span",22),g.nI1(1,"trustAsHtml")),2&it){const F=g.XpG(3);g.Y8G("innerHTML",g.bMT(1,2,F.articleDataParams.content),g.npT),g.BMQ("tabindex",F.scrollable?0:null)}}function Z(it,Ln){1&it&&g.nrm(0,"div",23)}function Se(it,Ln){if(1&it){const F=g.RV6();g.j41(0,"div")(1,"div",8)(2,"span",9),g.EFF(3),g.nI1(4,"translate"),g.k0s(),g.DNE(5,ie,3,0,"div",10),g.k0s(),g.nrm(6,"mat-divider"),g.DNE(7,ve,3,3,"span",11),g.j41(8,"div",12),g.DNE(9,ue,1,0,"div",13),g.k0s(),g.j41(10,"mat-dialog-content",14,0),g.bIt("scroll",function(Ke){g.eBV(F);const nn=g.XpG(2);return g.Njj(nn.onScroll(Ke))}),g.DNE(12,se,2,4,"span",15),g.k0s(),g.DNE(13,Z,1,0,"div",16),g.k0s()}if(2&it){const F=g.XpG(2);g.R7$(3),g.JRh(g.bMT(4,7,F.articleDataParams.title)),g.R7$(2),g.Y8G("ngIf",F.closeButtonVisible),g.R7$(2),g.Y8G("ngIf",F.articleDataParams.subTitle),g.R7$(2),g.Y8G("ngIf",F.showTopOverlay),g.R7$(),g.Y8G("enableLongPressScroll",F.scrollable),g.R7$(2),g.Y8G("ngIf",F.articleDataParams.content),g.R7$(),g.Y8G("ngIf",F.showBottomOverlay)}}function Ce(it,Ln){if(1&it){const F=g.RV6();g.j41(0,"div",3),g.bIt("click",function(){g.eBV(F);const Ke=g.XpG();return g.Njj(Ke.OnDialogClick())}),g.DNE(1,re,2,0,"div",4)(2,Se,14,9,"div",5),g.k0s()}if(2&it){const F=g.XpG();g.Y8G("ngClass",F.articleDataParams.style),g.R7$(),g.Y8G("ngIf",F.waiting),g.R7$(),g.Y8G("ngIf",!F.waiting)}}let Be=(()=>{class it{constructor(F,Oe,Ke,nn,Nn,_i,Wi,or,Hr){this.el=F,this.genericDialog=Ke,this.telemetryService=nn,this.applicationLifetimeService=Nn,this.dialogRef=_i,this.articleDataParams=Wi,this.systemInfoService=or,this.breakpointObserver=Hr,this.waiting=!0,this.loadingContent=!0,this.showBottomOverlay=!1,this.showTopOverlay=!1,this.showDialog=!1,this.closeButtonVisible=!1,this.scrollable=!1,this.maxScrollPercent=0,this.dialogShownStartTime=0,this.dialogClickedCount=0,this.isTelemetrySent=!1,this.destroy$=new _.B7,this.logger=Oe.getLogger("information-dialog"),this.logger.info("component created"),this.closeButtonVisible=Wi?.enableCloseButton,_i.disableClose=!0,this.isSmallScreen=this.breakpointObserver.isMatched(m.hi.IPhone)}ngOnInit(){this.breakpointObserver.observe([m.hi.IPhone]).pipe((0,r.Q)(this.destroy$)).subscribe(F=>{this.isSmallScreen=F.matches}),this.waiting=!0,this.articleDataParams.style="article-content",this.articleSubscription=this.articleDataParams.getArticleCallback().subscribe(F=>{this.waiting=!1,this.dialogShownStartTime=Date.now(),F&&F.body?(this.articleDataParams.title=F.title,this.articleDataParams.subTitle=F.subTitle,this.articleDataParams.content=F.body,this.articleDataParams.style=F.style,this.showBottomOverlay=!0,this.currentDialogName=this.articleDataParams.dialogType,this.showDialog=!0,this.sendDialogShownTelemetry(),this.handleFocusWithScrollbar()):(this.error=!0,this.logger.error("get article returned null"),this.showErrorDialog())},F=>{this.waiting=!1,this.error=!0,this.logger.error("get article information failed with error: ",F),"1"!==this.articleDataParams.isInstallationScenario||(0,c.isNil)(F.status)?this.showErrorDialog():this.dialogRef.close()}),this.applicationLifetimeService.addWorkOnShutdown(()=>new i.c(F=>{F.next(this.sendDialogClosedTelemetry(T.App_Exit)),F.complete()}))}showErrorDialog(){const F=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{icon:"info",bodyText:{text:"releaseHighlights.noInformationAvailable"},primaryButton:{text:"common.close"}}});F.afterClosed().pipe((0,r.Q)(this.destroy$)).subscribe(()=>{this.dialogRef.close()}),F.primaryButtonClick.pipe((0,a.s)(1)).subscribe(()=>F.close()),!(0,c.isNil)(F)&&this.articleDataParams.autoCloseOnError&&setTimeout.call(F,()=>{F.close()},3e3)}onScroll(F){F.stopPropagation(),F.preventDefault();const Oe=Math.round((F.target.scrollTop+F.target.clientHeight)/F.target.scrollHeight*100);Oe>this.maxScrollPercent&&(this.maxScrollPercent=Oe),setTimeout(()=>{this.showTopOverlay=F.target.scrollTop>0,this.showBottomOverlay=Oe<100})}closeDialog(){this.dialogRef.close()}sendDialogShownTelemetry(){const F=new L({name:this.currentDialogName||N.Unknown});this.telemetryService.push(F)}handleFocusWithScrollbar(){setTimeout(()=>{const F=this.articleContentContainerElement?.nativeElement?.clientHeight,Oe=this.articleContentContainerElement?.nativeElement?.scrollHeight;this.scrollable=!F||!Oe||Oe>F,this.logger.info(`containerHeight: ${F}, scrollHeight: ${Oe}, dialog is scrollable: ${this.scrollable}`)})}sendDialogClosedTelemetry(F){if(!this.error&&!this.isTelemetrySent){const Oe=new E({name:this.currentDialogName||N.Unknown,totalMs:0,scrolled:0!==this.maxScrollPercent?V.TRUE:V.FALSE,inWindowClicks:this.dialogClickedCount,exitTriggerPoint:F,checkBoxChecked:V.FALSE});this.telemetryService.push(Oe,this.dialogShownStartTime,{immediateRequest:!0}),this.isTelemetrySent=!0}}OnDialogClick(){this.dialogClickedCount++}ngOnDestroy(){this.logger.info("destroying article-content dialog"),this.sendDialogClosedTelemetry(T.Dialog_Closed),this.articleSubscription&&this.articleSubscription.unsubscribe(),this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.rXU(g.aKT),g.rXU(m.J6),g.rXU(M.uh),g.rXU(I.H0),g.rXU(R.lM),g.rXU(n.CP),g.rXU(n.Vh),g.rXU(m.zW),g.rXU(B.QP))}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["nv-information-dialog"]],viewQuery:function(Oe,Ke){if(1&Oe&&g.GBs(J,5),2&Oe){let nn;g.mGM(nn=g.lsd())&&(Ke.articleContentContainerElement=nn.first)}},standalone:!0,features:[g.aNF],decls:2,vars:1,consts:[["articleContentContainer",""],["nvSpatialNavigationContainer","","nvTrapFocus","","nvBackToCloseModal",""],["fxLayout","column","class","article-dialog",3,"ngClass","click",4,"ngIf"],["fxLayout","column",1,"article-dialog",3,"click","ngClass"],["fxFlex","","fxFill","","fxLayoutAlign","center center","class","waiting-overlay",4,"ngIf"],[4,"ngIf"],["fxFlex","","fxFill","","fxLayoutAlign","center center",1,"waiting-overlay"],["id","progressIndicator","color","accent","mode","indeterminate","strokeWidth","5","diameter","35","value","15",1,"mat-accent"],["fxLayout","row","fxLayoutAlign","start center"],[1,"font-header6"],["fxFlex","","fxLayoutAlign","end center",4,"ngIf"],["class","font-sub1",4,"ngIf"],[1,"constants-position-relative"],["class","common-overlay scroll-overlay-top-gradient",4,"ngIf"],["cdkMonitorSubtreeFocus","","nvLongPressScroller","","orientation","vertical",3,"scroll","enableLongPressScroll"],["class","mat-primary mat-hue-2",3,"innerHTML",4,"ngIf"],["class","common-overlay scroll-overlay-bottom-gradient",4,"ngIf"],["fxFlex","","fxLayoutAlign","end center"],["mat-icon-button","",3,"click"],["svgIcon","close"],[1,"font-sub1"],[1,"common-overlay","scroll-overlay-top-gradient"],[1,"mat-primary","mat-hue-2",3,"innerHTML"],[1,"common-overlay","scroll-overlay-bottom-gradient"]],template:function(Oe,Ke){1&Oe&&(g.j41(0,"div",1),g.DNE(1,Ce,3,3,"div",2),g.k0s()),2&Oe&&(g.R7$(),g.Y8G("ngIf",Ke.showDialog))},dependencies:[O.bT,O.YU,f.YF,X.DJ,X.sA,X.G2,X.UI,H.PW,y.D6,y.LG,S.wG,S.iV,v.m_,v.An,d.w,d.q,n.hM,n.Yi,l.Pd,l.vR,m.O_,P.h,P.D9,M.RM,M.D2,M.DU,M.xy],styles:[':root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}html,body{margin:0}img{-webkit-user-drag:none}.no-wrap{white-space:nowrap}@font-face{font-family:"Material Icons 2";font-style:normal;font-weight:400;font-display:block;src:url(MaterialIcons-Regular.1e50f5c2ffa6aba4.eot),url(MaterialIcons-Regular.7ea2023eeca07427.woff2) format("woff2"),url(MaterialIcons-Regular.db852539204b1a34.woff) format("woff"),url(MaterialIcons-Regular.196fa4a92dd6fa73.ttf) format("truetype")}.common-window .material-icons{font-family:"Material Icons 2"}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape),(max-width: 479px),(min-width: 480px) and (max-width: 719px){.cdk-global-overlay-wrapper>.nv-overlay-panel{max-width:calc(100vw - 32px)!important}}.constants-position-relative{position:relative}.constants-display-none{display:none}:host-context(.isRtl) .flip-rtl-element{transform:scaleX(-1)}html[dir=rtl] .flip-rtl-element{--dummy: 0;transform:scaleX(-1)}.hotkey-border{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}.common-overlay{position:absolute;inset:0;display:flex;z-index:1;background-color:#000000bf}.common-overlay.light-background{background-color:#00000080}.common-overlay.no-background{background-color:transparent}button mat-icon{display:block;color:#ffffffb3}.article-dialog{min-width:408px;max-width:560px;max-height:538px;overflow-x:hidden;border-radius:0;padding:24px}mat-content,mat-dialog-content{overflow-y:overlay;overflow-x:hidden}.article-dialog mat-dialog-content{font-size:12px;font-weight:400;color:#fff9;padding:24px;width:inherit;overflow-x:hidden}.article-dialog.article-content mat-dialog-content{overflow-x:hidden;margin:0 0 5px;padding:0}.article-dialog.article-content{background-image:none;max-height:80vh;min-height:250px;min-width:560px;max-width:678px;transition:all;transform:translate(0) scale(1);animation-delay:0s;transition-delay:0s}@media (max-width: 599px){.article-dialog.article-content{min-width:0}}.article-dialog.dialog-service-container-size{background-image:none;max-height:80vh;min-height:250px;width:560px;max-width:678px;position:relative;transition:all;transform:translate(0) scale(1);animation-delay:0s;transition-delay:0s;background-color:#292929;overflow-y:hidden}.dialog-service-container-size a{border-bottom:1px solid var(--hig-link-border-bottom-color);white-space:nowrap;color:#76b900;opacity:1;text-decoration:none}.dialog-service-container-size a:hover{cursor:pointer;outline:none;color:var(--hig-link-hover-color);border-bottom:1px var(--hig-link-hover-border-bottom-style) var(--hig-link-hover-border-bottom-color)}.dialog-service-container-size a.cdk-program-focused,.dialog-service-container-size a.cdk-keyboard-focused,.cdk-keyboard-focused .dialog-service-container-size a:focus,.cdk-program-focused .dialog-service-container-size a:focus{position:relative;--outset: -1px ;--focus-background: rgba(118, 185, 0, .32)}.dialog-service-container-size a.cdk-program-focused:before,.dialog-service-container-size a.cdk-keyboard-focused:before,.cdk-keyboard-focused .dialog-service-container-size a:focus:before,.cdk-program-focused .dialog-service-container-size a:focus:before{content:"";position:absolute;top:var(--outset);right:var(--outset);bottom:var(--outset);left:var(--outset);animation:backgroundColorFadeIn .75s forwards}.dialog-service-container-size a.cdk-program-focused:after,.dialog-service-container-size a.cdk-keyboard-focused:after,.cdk-keyboard-focused .dialog-service-container-size a:focus:after,.cdk-program-focused .dialog-service-container-size a:focus:after{background-color:unset}@keyframes backgroundColorFadeIn{0%{background-color:transparent}to{background-color:var(--focus-background)}}.dialog-service-container-size a:active{opacity:.45}.dialog-service-container-size img{width:512px}.article-dialog.dialog-service-container-size .common-overlay{display:none}.article-dialog.dialog-service-container-size mat-divider{margin-top:16px;margin-bottom:16px}.common-window .dialog-no-transition{transition:none}.article-dialog .scroll-overlay-top-gradient{height:30px;background:linear-gradient(#1c1c1c,#1c1c1c00);top:0}:host-context(.isLtr) .article-dialog .scroll-overlay-top-gradient{margin-left:24px}html[dir=ltr] .article-dialog .scroll-overlay-top-gradient{--dummy3: 0;margin-left:24px}:host-context(.isRtl) .article-dialog .scroll-overlay-top-gradient{margin-right:24px}html[dir=rtl] .article-dialog .scroll-overlay-top-gradient{--dummy3: 0;margin-right:24px}:host-context(.isLtr) .article-dialog .scroll-overlay-top-gradient{margin-right:24px}html[dir=ltr] .article-dialog .scroll-overlay-top-gradient{--dummy4: 0;margin-right:24px}:host-context(.isRtl) .article-dialog .scroll-overlay-top-gradient{margin-left:24px}html[dir=rtl] .article-dialog .scroll-overlay-top-gradient{--dummy4: 0;margin-left:24px}.article-dialog .scroll-overlay-bottom-gradient{height:30px;background:linear-gradient(#1c1c1c00,#1c1c1c);bottom:24px;top:auto}:host-context(.isLtr) .article-dialog .scroll-overlay-bottom-gradient{margin-left:24px}html[dir=ltr] .article-dialog .scroll-overlay-bottom-gradient{--dummy3: 0;margin-left:24px}:host-context(.isRtl) .article-dialog .scroll-overlay-bottom-gradient{margin-right:24px}html[dir=rtl] .article-dialog .scroll-overlay-bottom-gradient{--dummy3: 0;margin-right:24px}:host-context(.isLtr) .article-dialog .scroll-overlay-bottom-gradient{margin-right:24px}html[dir=ltr] .article-dialog .scroll-overlay-bottom-gradient{--dummy4: 0;margin-right:24px}:host-context(.isRtl) .article-dialog .scroll-overlay-bottom-gradient{margin-left:24px}html[dir=rtl] .article-dialog .scroll-overlay-bottom-gradient{--dummy4: 0;margin-left:24px}.mat-mdc-dialog-container{padding-top:32px;z-index:82;transform:none;opacity:1;padding-bottom:24px;background-color:#191919;color:#fff;overflow:hidden}::selection{background:#478b06}.article-dialog mat-dialog-content:last-child,.article-dialog mat-dialog-content ng-form:last-child{margin-bottom:0}.article-dialog mat-dialog-content p:first-child{margin-top:0}.article-dialog mat-dialog-content .last-dialog-child{margin-bottom:0}.article-dialog mat-dialog-content.cdk-keyboard-focused,.article-dialog mat-dialog-content.cdk-program-focused{background-color:#ffffff52;transition:background-color .75s ease}.waiting-overlay{background-color:#0e0e0eb3}@media (max-width: 599.98px) and (orientation: portrait),(min-width: 480px) and (max-width: 719px){.article-dialog.dialog-service-container-size{max-height:100vh;width:100vw;height:100vh;max-width:100vw}.article-dialog,.article-dialog.article-content{min-width:320px;max-height:100vh;min-height:320px;max-width:100vw}.cdk-global-overlay-wrapper .small-screen-overlay-panel{max-width:100vw!important}}@media (max-width: 599.98px) and (orientation: portrait){.article-dialog mat-dialog-content{max-height:75vh}.dialog-service-container-size img{width:100%}}@media (max-width: 959.98px) and (orientation: landscape){.article-dialog mat-dialog-content{max-height:60vh}:host-context(.isLtr) .article-dialog.dialog-service-container-size{padding-left:max(env(safe-area-inset-left),24px)}html[dir=ltr] .article-dialog.dialog-service-container-size{--dummy1: 0;padding-left:max(env(safe-area-inset-left),24px)}:host-context(.isRtl) .article-dialog.dialog-service-container-size{padding-right:max(env(safe-area-inset-left),24px)}html[dir=rtl] .article-dialog.dialog-service-container-size{--dummy1: 0;padding-right:max(env(safe-area-inset-left),24px)}:host-context(.isLtr) .article-dialog.dialog-service-container-size{padding-right:max(env(safe-area-inset-right),24px)}html[dir=ltr] .article-dialog.dialog-service-container-size{--dummy2: 0;padding-right:max(env(safe-area-inset-right),24px)}:host-context(.isRtl) .article-dialog.dialog-service-container-size{padding-left:max(env(safe-area-inset-right),24px)}html[dir=rtl] .article-dialog.dialog-service-container-size{--dummy2: 0;padding-left:max(env(safe-area-inset-right),24px)}}.tv-view ::-webkit-scrollbar{width:16px}.tv-view .article-dialog{padding:32px}.tv-view .dialog-service-container-size img{width:100%}.tv-view .article-dialog.dialog-service-container-size{max-height:none;height:auto;width:925px;max-width:1920px}.tv-view .article-dialog.dialog-service-container-size mat-divider{margin-top:32px;margin-bottom:32px}\n'],encapsulation:2})}}return it})();var He=s(56106),Q=(s(97979),s(4418)),G=(s(12949),s(44296),s(48362),s(65597)),W=s(20288),Fe=s(43848),At=s(59859),Le=s(3496),Et=s(99047),$e=s(75707),Ze=s(91384),Qe=s(10174),Ve=s(79539),nt=s(83915),Ot=s(14714),at=s(43615),It=s(36206),We=function(it){return it.mall="gfnpc mall_client",it.streamer="gfnpc streamer_client",it.browser="gfn_browser_client",it}(We||{}),xe=function(it){return it[it.Progress=-1]="Progress",it[it.Excellent=0]="Excellent",it[it.Poor=1]="Poor",it[it.PoorWifi_2_4=2]="PoorWifi_2_4",it[it.Bad=3]="Bad",it[it.Error=4]="Error",it[it.NA=5]="NA",it}(xe||{}),lt=function(it){return it.Close="Close",it.Continue="Continue",it.TryAgain="TryAgain",it}(lt||{}),ft=function(it){return it.NetworkTestFailed="NetworkTestFailed",it.NetworkTestFailedMissingPlugin="NetworkTestPluginFailedMissingPlugin",it.NetworkTestAutoRunDone="NetworkTestAutoRunDone",it.NetworkTestAutoRunTryAgain="NetworkTestAutoRunTryAgain",it.NetworkTestClosed="NetworkTestClosed",it.NetworkTestClosedOnError="NetworkTestClosedOnError",it.LBRAutoRunDone="LBRAutoRunDone",it}(ft||{}),ht=function(it){return it.NetworkTestFailed="NetworkTestFailed",it.NetworkTestCancelled="NetworkTestCancelled",it.RedResult="RedResult",it.StreamerNetworkError="StreamerNetworkError",it.StreamerFrameLossTimeoutError="StreamerFrameLossTimeoutError",it.None="None",it}(ht||{});const Ht={text:"networkTest.genericNetworkName",icon:"network_signal"},tt={text:"networkTest.wifi",icon:"wifi"},rt={text:"networkTest.mobile",icon:"cellular"},et={text:"networkTest.networkTestMyComputer",icon:"desktop_mac"},St={text:"networkTest.myDevice",icon:"smartphone"},yt={text:"networkTest.myDevice",icon:"devices"},Wt={[m.Sd.Ethernet]:{text:"networkTest.ethernet",icon:"ethernet"},[m.Sd.WiFi2_4]:tt,[m.Sd.WiFi5_0]:tt,[m.Sd.WiFi6_0]:tt,[m.Sd.WiFiUnknown]:tt,[m.Sd.Mobile]:rt,[m.Sd.Mobile_2G]:rt,[m.Sd.Mobile_3G]:rt,[m.Sd.Mobile_4G]:rt,[m.Sd.Mobile_5G]:rt,[m.Sd.Wimax]:Ht,[m.Sd.Bluetooth]:Ht,[m.Sd.Other]:Ht,[m.Sd.Unknown]:Ht},ke={[m.Y0.Desktop]:et,[m.Y0.Laptop]:et,[m.Y0.TV]:{text:"networkTest.myTV",icon:"tv"},[m.Y0.Phone]:St,[m.Y0.Tablet]:St,[m.Y0.Server]:yt,[m.Y0.Console]:yt,[m.Y0.HMD]:yt,[m.Y0.Undefined]:yt};var Ae=function(it){return it.Started="Started",it.Finished="Finished",it}(Ae||{}),qe=function(it){return it.NetworkTest="NETWORKTEST",it.Error="ERROR",it}(qe||{}),hn=function(it){return it[it.NCT_R_UNKNOWN=0]="NCT_R_UNKNOWN",it[it.NCT_R_SUCCESS=1]="NCT_R_SUCCESS",it[it.NCT_R_INVALID_PARAM=2]="NCT_R_INVALID_PARAM",it[it.NCT_R_SYN_FAILED=3]="NCT_R_SYN_FAILED",it[it.NCT_R_FIN_FAILED=4]="NCT_R_FIN_FAILED",it[it.NCT_R_AUTH_FAILED=5]="NCT_R_AUTH_FAILED",it[it.NCT_R_POST_FAILED=6]="NCT_R_POST_FAILED",it[it.NCT_R_TEST_IN_PROGRESS=7]="NCT_R_TEST_IN_PROGRESS",it[it.NCT_R_CANCELED=8]="NCT_R_CANCELED",it[it.NCT_R_CAPACITY_FULL=9]="NCT_R_CAPACITY_FULL",it[it.NCT_R_SESSION_EXIST=10]="NCT_R_SESSION_EXIST",it[it.NCT_R_INVALID_DATA=11]="NCT_R_INVALID_DATA",it[it.NCT_R_SETUP_FAILED=12]="NCT_R_SETUP_FAILED",it[it.NCT_R_RETRYABLE_POST_FAILURE=13]="NCT_R_RETRYABLE_POST_FAILURE",it[it.NCT_R_BLOCK_STREAM=14]="NCT_R_BLOCK_STREAM",it}(hn||{}),On=function(it){return it[it.Success=0]="Success",it}(On||{});const fi={"WiFi Unknown":"Unknown","WiFi 6.0":"6GHz","WiFi 5.0":"5GHz","WiFi 2.4":"2.4GHz"};var Fi=function(it){return it[it.Any=0]="Any",it[it.VPN=1]="VPN",it[it.ZoneOverride=2]="ZoneOverride",it[it.Latency_more_150=3]="Latency_more_150",it[it.Latency_more_80=4]="Latency_more_80",it[it.Wifi_2_4=5]="Wifi_2_4",it[it.Wifi=6]="Wifi",it[it.Bandwidth_less_15=7]="Bandwidth_less_15",it[it.Offline=8]="Offline",it}(Fi||{});const bt=[{priority:0,text:"networkTest.youAreOfflineCheckConnection",condition:Fi.Offline,hasLink:!1,linkUrl:null},{priority:1,text:"networkTest.disconnectFromVpn",condition:Fi.VPN,hasLink:!1,linkUrl:null},{priority:2,text:"networkTest.youHaveZoveOverride",condition:Fi.ZoneOverride,hasLink:!1,linkUrl:null},{priority:3,text:"networkTest.farAwayFromServers",condition:Fi.Latency_more_150,hasLink:!0,linkUrl:It.r7.GfnServerStatus},{priority:4,text:"networkTest.wifi_2_4_Message",condition:Fi.Wifi_2_4,hasLink:!1,linkUrl:null},{priority:5,text:"networkTest.connectToEthernet",condition:Fi.Wifi,hasLink:!1,linkUrl:null},{priority:6,text:"networkTest.stopOtherStreaming",condition:Fi.Any,hasLink:!1,linkUrl:null},{priority:7,text:"networkTest.restartRouter",condition:Fi.Any,hasLink:!1,linkUrl:null},{priority:8,text:"networkTest.farAwayFromServers",condition:Fi.Latency_more_80,hasLink:!0,linkUrl:It.r7.GfnServerStatus},{priority:9,text:"networkTest.contactIspProvider",condition:Fi.Bandwidth_less_15,hasLink:!1,linkUrl:null}];var bn=s(18433),Pt=s(78893);const jt=(it,Ln,F)=>({autoRun:it,showAdditionalActions:Ln,progressState:F});function gn(it,Ln){if(1&it&&g.nrm(0,"gfn-network-icons",10),2&it){const F=g.XpG(3);g.Y8G("progressState",F.progressState)("nvTestData",F.testData)("maxDisplayState",F.maxDisplayState)("isWebRtcNetworkTest",F.isWebRtcNetworkTestEnabled)}}function ui(it,Ln){if(1&it&&g.nrm(0,"gfn-network-completed",15),2&it){const F=g.XpG(4);g.Y8G("nvTestData",F.testData)("isHandset",F.isHandset)}}function Ii(it,Ln){if(1&it&&(g.j41(0,"mat-tab-group",16)(1,"mat-tab",17),g.nI1(2,"translate"),g.nrm(3,"gfn-network-tips",18),g.k0s(),g.j41(4,"mat-tab",17),g.nI1(5,"translate"),g.nrm(6,"gfn-network-completed",15),g.k0s()()),2&it){const F=g.XpG(4);g.R7$(),g.FS9("label",g.bMT(2,5,"common.troubleshootingTips")),g.R7$(2),g.Y8G("networkConditionsData",F.networkConditionsData),g.R7$(),g.FS9("label",g.bMT(5,7,"networkTest.detailsTag")),g.R7$(2),g.Y8G("nvTestData",F.testData)("isHandset",F.isHandset)}}function pr(it,Ln){if(1&it&&(g.qex(0),g.j41(1,"span",19),g.EFF(2),g.nI1(3,"translate"),g.k0s(),g.nrm(4,"gfn-network-tips",18),g.j41(5,"span",19),g.EFF(6),g.nI1(7,"translate"),g.k0s(),g.nrm(8,"gfn-network-completed",15),g.bVm()),2&it){const F=g.XpG(4);g.R7$(2),g.JRh(g.bMT(3,5,"common.troubleshootingTips")),g.R7$(2),g.Y8G("networkConditionsData",F.networkConditionsData),g.R7$(2),g.JRh(g.bMT(7,7,"networkTest.detailsTag")),g.R7$(2),g.Y8G("nvTestData",F.testData)("isHandset",F.isHandset)}}function zr(it,Ln){if(1&it&&(g.j41(0,"div",11),g.DNE(1,ui,1,2,"gfn-network-completed",12)(2,Ii,7,9,"mat-tab-group",13)(3,pr,9,9,"ng-container",14),g.k0s()),2&it){const F=g.XpG(3);g.R7$(),g.Y8G("ngIf",!F.showTroubleshootTips),g.R7$(),g.Y8G("ngIf",F.showTroubleshootTips&&!F.isHandset),g.R7$(),g.Y8G("ngIf",F.showTroubleshootTips&&F.isHandset)}}function Cn(it,Ln){if(1&it&&(g.j41(0,"div",7),g.DNE(1,gn,1,4,"gfn-network-icons",8)(2,zr,4,3,"div",9),g.k0s()),2&it){const F=g.XpG(2);g.R7$(),g.Y8G("ngIf",!F.autoRun||F.autoRun&&-1!==F.progressState),g.R7$(),g.Y8G("ngIf",-1!==F.progressState)}}function pn(it,Ln){if(1&it){const F=g.RV6();g.j41(0,"div",20)(1,"gfn-network-test-error",21),g.bIt("close",function(){g.eBV(F);const Ke=g.XpG(2);return g.Njj(Ke.onClickClose())})("tryAgain",function(){g.eBV(F);const Ke=g.XpG(2);return g.Njj(Ke.onClickTryAgain())})("continue",function(){g.eBV(F);const Ke=g.XpG(2);return g.Njj(Ke.onClickContinue())}),g.k0s()()}if(2&it){const F=g.XpG(2);g.R7$(),g.Y8G("zoneName",F.zoneName)("networkTestErrorText",F.networkTestErrorText)("showFirewallHelpLink",F.showFirewallHelpLink)("firewallHelpUrl",F.firewallHelpUrl)("firewallHelpShortUrl",F.firewallHelpShortUrl)("firewallLinkText",F.firewallLinkText)("nvClient",F.nvClientApp)}}function ti(it,Ln){if(1&it){const F=g.RV6();g.j41(0,"div",22)(1,"gfn-nw-test-button-placer",23),g.bIt("tryAgain",function(){g.eBV(F);const Ke=g.XpG(2);return g.Njj(Ke.onClickTryAgain())})("close",function(){g.eBV(F);const Ke=g.XpG(2);return g.Njj(Ke.onClickClose())})("continue",function(){g.eBV(F);const Ke=g.XpG(2);return g.Njj(Ke.onClickContinue())}),g.k0s()()}if(2&it){const F=g.XpG(2);g.R7$(),g.Y8G("placementCriteria",g.sMw(1,jt,F.autoRun,F.showAdditionalActions,F.progressState))}}function pi(it,Ln){if(1&it&&(g.j41(0,"div",1)(1,"div",2)(2,"p"),g.EFF(3),g.nI1(4,"translate"),g.k0s()(),g.j41(5,"div",3),g.DNE(6,Cn,3,2,"div",4)(7,pn,2,7,"div",5),g.k0s(),g.DNE(8,ti,2,5,"div",6),g.k0s()),2&it){const F=g.XpG();g.Y8G("ngSwitch",F.uiState),g.R7$(),g.Y8G("ngClass",F.isHandset?"font-header6":"font-header5"),g.R7$(2),g.JRh(g.bMT(4,6,F.networkTestHeaderText)),g.R7$(3),g.Y8G("ngSwitchCase","NETWORKTEST"),g.R7$(),g.Y8G("ngSwitchCase","ERROR"),g.R7$(),g.Y8G("ngIf","NETWORKTEST"===F.uiState&&-1!==F.progressState)}}let cn=(()=>{class it{constructor(F,Oe,Ke){this.breakpointObserver=Oe,this.networkTestDialogData=Ke,this.buttonClicked=new g.bkB,this.testData={},this.delayRetry=0,this.logger=F.getLogger("libraries/network-test/NetworkTestDialogStateComponent"),this.initData(),this.destroy$=new _.B7}initData(){this.logger.info("Initializing network test dialog data:",this.networkTestDialogData),this.nvClientApp=bn.sKj.StreamingClient,this.networkTestHeaderText=this.networkTestDialogData.networkTestHeaderText,this.progressState=this.networkTestDialogData.progressState,this.uiState=this.networkTestDialogData.uiState,this.autoRun=this.networkTestDialogData.autoRun,this.showNetworkTest=this.networkTestDialogData.showNetworkTest,this.testData=this.networkTestDialogData.testData,this.maxDisplayState=this.networkTestDialogData.maxDisplayState,this.isHandset=this.networkTestDialogData.isHandset,this.isWebRtcNetworkTestEnabled=this.networkTestDialogData.isWebRtcNetworkTestEnabled,this.networkConditionsData=this.networkTestDialogData.networkConditionsData,this.zoneName=this.networkTestDialogData.zoneName,this.networkTestErrorText=this.networkTestDialogData?.networkTestErrorText,this.showFirewallHelpLink=this.networkTestDialogData?.showFirewallHelpLink,this.firewallHelpUrl=this.networkTestDialogData?.firewallHelpUrl,this.firewallHelpShortUrl=this.networkTestDialogData?.firewallHelpShortUrl,this.firewallLinkText=this.networkTestDialogData?.firewallLinkText,this.showTroubleshootTips=this.networkTestDialogData?.showTroubleshootTips}ngOnInit(){this.breakpointObserver.observe([B.Rp.Handset,B.Rp.Tablet]).pipe((0,r.Q)(this.destroy$)).subscribe(F=>{this.isHandset=F.matches})}onClickContinue(){this.buttonClicked.emit(lt.Continue)}onClickClose(){this.buttonClicked.emit(lt.Close)}onClickTryAgain(){this.buttonClicked.emit(lt.TryAgain)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.rXU(m.J6),g.rXU(B.QP),g.rXU(n.Vh))}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["gfn-network-dialog-state"]],outputs:{buttonClicked:"buttonClicked"},decls:1,vars:1,consts:[["nvSpatialNavigationContainer","","class","common-ui-network-container",3,"ngSwitch",4,"ngIf"],["nvSpatialNavigationContainer","",1,"common-ui-network-container",3,"ngSwitch"],[1,"common-ui-network-header",3,"ngClass"],[1,"network-test-content"],["fxLayout","column","fxLayoutAlign","center stretch",4,"ngSwitchCase"],["class","network-test-error-container",4,"ngSwitchCase"],["class","nv-button-class","fxLayout","row","fxLayoutAlign","end stretch",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center stretch"],["fxLayout","column",3,"progressState","nvTestData","maxDisplayState","isWebRtcNetworkTest",4,"ngIf"],["class","network-test-results",4,"ngIf"],["fxLayout","column",3,"progressState","nvTestData","maxDisplayState","isWebRtcNetworkTest"],[1,"network-test-results"],[3,"nvTestData","isHandset",4,"ngIf"],["ngClass","mat-tabs-font-button1","mat-stretch-tabs","false","nvMatTabGroupFixUp","",4,"ngIf"],[4,"ngIf"],[3,"nvTestData","isHandset"],["ngClass","mat-tabs-font-button1","mat-stretch-tabs","false","nvMatTabGroupFixUp",""],[3,"label"],[3,"networkConditionsData"],[1,"common-ui-network-title"],[1,"network-test-error-container"],[3,"close","tryAgain","continue","zoneName","networkTestErrorText","showFirewallHelpLink","firewallHelpUrl","firewallHelpShortUrl","firewallLinkText","nvClient"],["fxLayout","row","fxLayoutAlign","end stretch",1,"nv-button-class"],[3,"tryAgain","close","continue","placementCriteria"]],template:function(Oe,Ke){1&Oe&&g.DNE(0,pi,9,8,"div",0),2&Oe&&g.Y8G("ngIf",Ke.showNetworkTest)},styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.font-size-xxxs[_ngcontent-%COMP%]{font-size:8px}.font-size-xxs[_ngcontent-%COMP%]{font-size:11px}.font-size-sm[_ngcontent-%COMP%]{font-size:12px}.font-size-sm1[_ngcontent-%COMP%]{font-size:13px}.font-size-lg[_ngcontent-%COMP%]{font-size:14px}.font-size-xl[_ngcontent-%COMP%]{font-size:16px}.font-size-xl1[_ngcontent-%COMP%]{font-size:18px}.font-size-20[_ngcontent-%COMP%]{font-size:20px}.font-size-xxl[_ngcontent-%COMP%]{font-size:24px}.font-size-32[_ngcontent-%COMP%]{font-size:32px}.font-size-xxxl[_ngcontent-%COMP%]{font-size:40px}.line-height-sm[_ngcontent-%COMP%]{line-height:.75em}.line-height-sm1[_ngcontent-%COMP%]{line-height:1em}.line-height-14[_ngcontent-%COMP%]{line-height:14px}.line-height-12[_ngcontent-%COMP%]{line-height:12px}.line-height-16[_ngcontent-%COMP%]{line-height:16px}.line-height-md[_ngcontent-%COMP%]{line-height:1.5em}.line-height-lg[_ngcontent-%COMP%]{line-height:3em}.line-height-30[_ngcontent-%COMP%]{line-height:30px}.line-height-36[_ngcontent-%COMP%]{line-height:36px}.line-height-lg1[_ngcontent-%COMP%]{line-height:40px}.font-style-italic[_ngcontent-%COMP%]{font-style:italic}.font-style-bold[_ngcontent-%COMP%]{font-weight:700}.font-style-normal[_ngcontent-%COMP%]{font-weight:400}.font-uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.font-lowercase[_ngcontent-%COMP%]{text-transform:lowercase}.text-transform-none[_ngcontent-%COMP%]{text-transform:none}.common-ui-network-container[_ngcontent-%COMP%]{background-color:#1f2224;max-width:789px}.common-ui-network-header[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:0;height:24px}.isLtr[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900;vertical-align:middle;min-width:24px}.isLtr[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.result-text-container[_ngcontent-%COMP%]{margin-bottom:6px}.result-text[_ngcontent-%COMP%]{margin-top:1px}.nw-icon[_ngcontent-%COMP%]{height:24px;line-height:24px;width:auto;speak:none;font-size:48px;font-variant:normal;align-self:center;color:#fff;opacity:.9;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:22px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:22px}.icon-alert-bang[_ngcontent-%COMP%]{margin:0}.common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.common-ui-network-container[_ngcontent-%COMP%] .result-icon.error[_ngcontent-%COMP%]{color:#ed1c24}.warn[_ngcontent-%COMP%]{color:#ffb538}.error[_ngcontent-%COMP%]{color:#ed1c24}.common-ui-errorDetails[_ngcontent-%COMP%] .success[_ngcontent-%COMP%]{color:#76b900}.flex-1[_ngcontent-%COMP%]{flex:1}.nv-ui-assets[_ngcontent-%COMP%]{height:140px;margin-top:64px;display:flex;flex-direction:row;overflow:hidden;justify-content:center;align-items:baseline}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:79px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:79px}.nv-dot-icons[_ngcontent-%COMP%]{border-radius:50%;width:8px;height:8px;align-self:center;display:-webkit-inline-box;background:#ffffff73}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.animated[_ngcontent-%COMP%]{animation-duration:2s;animation-iteration-count:infinite;animation-fill-mode:both;animation-delay:1s}.caption[_ngcontent-%COMP%]{display:block;max-width:92px;width:12vw;text-align:center;margin-bottom:0}.caption.truncate-text[_ngcontent-%COMP%]{margin-top:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.common-ui-errorDetails[_ngcontent-%COMP%]{height:72px;display:flex;justify-content:center;margin:0 24px}.connect-error-details[_ngcontent-%COMP%]{display:flex}.common-ui-network-container[_ngcontent-%COMP%] .common-ui-resultDetails[_ngcontent-%COMP%]{height:24px;margin-bottom:30px;align-self:center;margin-top:22px}.common-ui-network-content[_ngcontent-%COMP%]{height:181px;background-color:#0000004d;overflow-y:auto}.common-ui-network-content[_ngcontent-%COMP%] .nv-button-class[_ngcontent-%COMP%]{height:84px;display:flex}.common-ui-network-content[_ngcontent-%COMP%] .override-warning-container[_ngcontent-%COMP%]{margin-top:5px;padding:0 24px;align-items:center}.common-ui-network-content[_ngcontent-%COMP%] span.icon-alert-circle_reg[_ngcontent-%COMP%]{font-size:11px}.common-ui-network-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:12px;margin-top:0}.div-table[_ngcontent-%COMP%]{display:table!important;width:101%;padding-top:24px;padding-bottom:24px;max-width:100%}.div-table-row[_ngcontent-%COMP%]{display:table-row;width:auto;clear:both;height:28px}.div-table-col[_ngcontent-%COMP%]{display:table-column;width:140px;text-align:center}.isLtr[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:right}.div-table-col-header[_ngcontent-%COMP%]{display:table-column;width:236px}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ffb538;width:177px}.yellowstyle[_ngcontent-%COMP%] .narrowstyle[_ngcontent-%COMP%]{width:26px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ed1c24;width:177px}.redstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ed1c24}.yellowstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.wifi_2_4_warn[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%] md-icon[_ngcontent-%COMP%]{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%]{display:table}.network-assets[_ngcontent-%COMP%]{display:flex}.error-details[_ngcontent-%COMP%]{display:flex;margin-top:24px}.isLtr[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.common-ui-error[_ngcontent-%COMP%]{width:480px}.redirect-page-div[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:center}.redirect-page-link[_ngcontent-%COMP%]{text-decoration:none}.vertical-gap-24[_ngcontent-%COMP%]{height:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-right:48px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-right:48px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-left:48px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-left:48px}.network-progress-fill[_ngcontent-%COMP%]{height:50px;background-color:#1f2224}.network-test-icons[_ngcontent-%COMP%]{display:block}.error-dlg-content[_ngcontent-%COMP%]{margin:24px;min-height:32px}.error-dlg-buttons[_ngcontent-%COMP%]{min-height:52px}.isLtr[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:right}html[dir=ltr][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isRtl[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:left}html[dir=rtl][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:left}button.error-dialog-button[_ngcontent-%COMP%]{margin:8px}.error-icon[_ngcontent-%COMP%]{font-size:32px!important}.isLtr[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.error-icon-error-dialog[_ngcontent-%COMP%]{font-size:32px;margin-top:20px;min-width:32px;line-height:5px}.isLtr[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 8px 23px 23px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 8px 23px 23px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 23px 23px 8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 23px 23px 8px}.active[_ngcontent-%COMP%]{background:#76b900;opacity:1;width:12px;height:12px;margin-bottom:-2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.normal[_ngcontent-%COMP%]{background:#ffffff73;width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.error-background-active-btn[_ngcontent-%COMP%]{background-color:#76b900}.custom-svg-icon[_ngcontent-%COMP%]{width:48px;height:auto}.network-isp-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.network-test-warning-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin-top:12px}.nv-dot-icons-container[_ngcontent-%COMP%]{margin-top:12px}@media (max-width: 960px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:60px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:60px}.network-test-results[_ngcontent-%COMP%]{min-width:80vw}.div-table-col-header[_ngcontent-%COMP%]{width:30%}.div-table-col[_ngcontent-%COMP%]{width:18%}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:120px}}@media (max-width: 790px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:48px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:48px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:80px}}@media (max-width: 690px){.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:60px}}@media screen and (max-width: 834px) and (max-height: 1194px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:36px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:36px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:87px}.nv-dot-icons[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.active[_ngcontent-%COMP%]{width:10px;height:10px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.normal[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.div-table-col-header[_ngcontent-%COMP%]{width:160px}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape),(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{display:block;max-height:65vh;overflow-y:auto;overflow-x:unset}.common-ui-network-container[_ngcontent-%COMP%]{margin:0;overflow:unset}.common-ui-network-header[_ngcontent-%COMP%]{margin:0}.common-ui-network-title[_ngcontent-%COMP%]{--font-header-font-size: 14px;--font-header-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--font-header-font-size: 28px;--font-header-line-height: 40px}.isLtr[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.common-ui-network-content[_ngcontent-%COMP%]{height:unset;background-color:unset}.nv-ui-assets[_ngcontent-%COMP%]{height:100px;line-height:0;margin-top:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.network-test-icons[_ngcontent-%COMP%]{text-align:center;height:16px;margin-top:0}.network-isp-icons[_ngcontent-%COMP%]{align-items:center}.nv-dot-icons[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.active[_ngcontent-%COMP%]{width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.normal[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.custom-svg-icon[_ngcontent-%COMP%]{width:24px;min-height:25px}.caption[_ngcontent-%COMP%]{margin:0 auto;align-self:center}.common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;display:flex;justify-content:center}.isLtr[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.isRtl[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.network-test-error-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-sizing:border-box;justify-content:center;align-items:stretch;max-width:100%}.icon-alert-bang[_ngcontent-%COMP%]{font-size:36px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:57px}.result-text[_ngcontent-%COMP%]{margin-top:0}.network-test-results[_ngcontent-%COMP%]{background-color:#0000004d;padding-top:16px}.mat-mdc-tab-group[_ngcontent-%COMP%]{background-color:#0000004d}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.div-table-row[_ngcontent-%COMP%]{justify-content:space-between;max-width:240px}}@media (max-width: 959.98px) and (orientation: landscape),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{max-height:60vh}.network-test-results[_ngcontent-%COMP%]{max-width:536px;min-width:0}.common-ui-network-container[_ngcontent-%COMP%]{width:536px;max-height:80vh}}@media (max-width: 599.98px) and (orientation: portrait){.common-ui-network-container[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}}@media screen and (max-width: 320px) and (max-height: 568px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.active[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:1px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:1px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:40px}.result-text[_ngcontent-%COMP%]{width:70%}}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%]{width:960px;max-width:960px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{height:unset;margin-top:24px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:0}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%]{height:277px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%]{height:auto}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{width:320px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{width:180px}.tv-view[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{height:20vh}.tv-view[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}.tv-view[_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%]{margin:16px}.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{font-size:40px;width:40px;height:40px}.isLtr.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-right:20px}html[dir=ltr] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:20px}.isRtl.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:20px}"]})}}return it})();var An=s(20924),hi=function(it){return it.SystemInfo="SystemInfo",it.MessageBusRouter="MessageBusRouter",it.BackgroundProcess="BackgroundProcess",it.BackgroundAgent="BackgroundAgent",it.Gallery="Gallery",it.NetworkTest="NetworkTest",it.NvCamera="NvCamera",it.ShareServer="ShareServer",it}(hi||{}),Gn=s(85735),Ci=s(26513),ln=s(36466),bi=s(31315),Zi=s(35146),Mr=s(8619),$r=s(25590),_o=s(34593),bo=s(72147);var Pi=s(40996),ji=s(50778),Qi=s(18005),ar=s(5349),jr=s(55512),ho=s(80838),Fo=s(51542),no=s(45903),yo=s(61958),Zr=s(81834),Yr=s(14354),go=s(38502),zo=s(11961);let si=(()=>{class it{constructor(F,Oe,Ke,nn,Nn,_i,Wi,or,Hr,Mo,aa,ko,Aa,Ra,Ml,Qa,Lc){this.systemInfo=Oe,this.streamingProfileService=Ke,this.idmService=nn,this.gridService=Nn,this.bridgeService=_i,this.networkConfigurationService=Wi,this.remoteConfigurationService=or,this.appConfig=Hr,this.gfnSdkService=Mo,this.localeService=aa,this.telemetryUtil=ko,this.eventStreamFactory=Aa,this.cloudVariableHelperService=Ra,this.router=Ml,this.clientHeaderService=Qa,this.zoneStorage=Lc,this.prod="Prod",this.selectedZone$=new Gn.m(1),this.messages=new _.B7,this.networkTestCancelled$=new _.B7,this.retriggerPolicy$=new Ci.t(bn.ZpH.Manual),this.startedListenToTokenRequest=!1,this.networkTestRun=!1,this.networkTestState$=new _.B7,this.lbrState$=new _.B7,this.networkLinksSubject=new Gn.m(1),this.isWebrtcNetworktestEnabledSubject=new Gn.m(1),this.isStreamer=!1,this.cachedWebrtcSupportedZonesList=[],this.isWebrtcNTSupportedOnUpdatedZoneSubject=new Gn.m(1),this.capableSupportedResolutions=null,this.isInitCalled=!1,this.networkTestFinishedCallbackResult$=new _.B7,this.maxSubscriptionProfile=null,this.logger=F.getLogger("shared/network-test.service"),this.qhdResolutionIdentifier=Hr?.client?.streamingModeResolutionsConfiguration?.resolutionIdentifier?.QHD,this.isNetworkTestInProgress=!1,this.initCurrentDisplayResolutionStream(),this.initCurrentMaxSubscriptionProfileStream(),this.initSupportedResolutionsStream(),this.initCapableResolutionsStream(),this.registerDisplayModeChangeEvent(),Hr?.networkTest?.prefetchStreams&&(this.currentMaxSubscriptionProfileStream.get$().subscribe(ln.l,ln.l),this.currentDisplayResolutionStream.get$().subscribe(ln.l,ln.l))}registerDisplayModeChangeEvent(){this.streamingProfileService.onDisplayModeChanged()?.pipe((0,nt.T)(()=>{this.currentDisplayResolutionStream.refresh()})).subscribe()}initCurrentDisplayResolutionStream(){this.currentDisplayResolutionStream=this.eventStreamFactory.createStream(()=>this.streamingProfileService.getPrimaryDisplayResolution().pipe((0,nt.T)(F=>({width:F.width,height:F.height,frameRate:F.fps}))))}initCurrentMaxSubscriptionProfileStream(){this.currentMaxSubscriptionProfileStream=this.eventStreamFactory.createStream(()=>this.streamingProfileService.getAvailableResolutionList().pipe((0,nt.T)(()=>{const F=this.streamingProfileService.getPlatformSpecificBalancedPresetResolution();return this.maxSubscriptionProfile={height:F.height,width:F.width,frameRate:F.fps},this.maxSubscriptionProfile})))}initSupportedResolutionsStream(){this.supportedResolutionsStream=this.eventStreamFactory.createStream(()=>this.streamingProfileService.getAvailableResolutionList().pipe((0,nt.T)(F=>{const Oe=new Map;return F?.forEach(Ke=>{Ke.enabled&&Ke.fpsList?.forEach(nn=>{nn.enabled&&Oe.set(`$h-${Ke.height}-w-${Ke.width}-f-${nn.value}`,{height:Ke.height,width:Ke.width,frameRate:nn.value})})}),Array.from(Oe.values())})))}initCapableResolutionsStream(){this.capableResolutionsStream=this.eventStreamFactory.createStream(()=>(0,bi.zV)([this.currentDisplayResolutionStream.get$(),this.supportedResolutionsStream.get$()]).pipe((0,$e.ZZ)(([F,Oe])=>(this.logger.info("Primary display resolution: ",F.width,"x",F.height," @",F.frameRate),this.getDynamicStreamingProfilesByRatio(Oe,F.width/F.height,16/9).pipe((0,nt.T)(Nn=>(this.capableSupportedResolutions=Nn,this.capableSupportedResolutions)))))))}initGxTargetConfiguration(F){if(this.isStreamer=(0,Pt.I2)(this.router.url),!F)return this.isWebrtcNetworkTestEnabled=!1,void this.isWebrtcNetworktestEnabledSubject.next({enabled:this.isWebrtcNetworkTestEnabled,showUI:!1});this.queryGxTarget()}initialize(){this.isInitCalled||(this.isInitCalled=!0,this.networkConfigurationService.readNetworkSessionId(),this.remoteConfig$=this.remoteConfigurationService.remoteConfigFetched$,(0,bi.zV)([this.webrtcNetworkTestEnabled,this.remoteConfig$]).subscribe(([F,Oe])=>{F.enabled&&this.configureWebrtcNetworkSettings(Oe)},F=>this.logger.error("Error fetching remote config and configuring Network Test settings."+F)),this.constructHelpLinks().pipe((0,nt.T)(F=>{this.networkLinksSubject.next(F)})).subscribe())}get isNetworkTestRequired(){return this.networkTestRequired}set isNetworkTestRequired(F){this.networkTestRequired=F}get networkTestMessages(){return this.messages.asObservable()}get zoneName(){return this.selectedZone$}get isNetworkTestRun(){return this.networkTestRun}get networkTestState(){return this.networkTestState$.asObservable()}get lbrState(){return this.lbrState$.asObservable()}get networkLinks(){return this.networkLinksSubject.asObservable()}get webrtcNetworkTestEnabled(){return this.isWebrtcNetworktestEnabledSubject.asObservable()}get webrtcNTSupportForZone(){return this.isWebrtcNTSupportedOnUpdatedZoneSubject.asObservable()}resetNetworkTestStatus(){this.networkTestRun=!1}getRetriggerPolicy(){return this.retriggerPolicy$.asObservable()}setRetriggerPolicy(F){this.retriggerPolicy$.next(F)}setParentSpanForNetworkTest(F){this.parentSpan=F}setNetworkTestState(F){this.networkTestState$.next(F)}setLbrState(F){this.lbrState$.next(F)}sendMessage(F,Oe){this.messages.next({message:F,data:Oe})}getNetworkInfo(){return m.zk.isBrowserPlatform()?(0,Fe.of)({}):this.systemInfo.getSystemInfo([m.Lu.Network]).pipe((0,nt.T)(F=>F.Network))}isSystemOnline(){return window.navigator.onLine}isZoneSupported(F,Oe){return!!this.allZonesSupported||(this.isProdZone(F)?this.cachedWebrtcSupportedZonesList.includes(Oe?.address):this.cachedWebrtcSupportedZonesList.includes(F?.address))}isUpdatedZoneSupported(F,Oe){return this.isWebrtcNTSupportedOnUpdatedZone=this.isZoneSupported(F,Oe),this.isWebrtcNTSupportedOnUpdatedZoneSubject.next(this.isWebrtcNTSupportedOnUpdatedZone),this.isWebrtcNTSupportedOnUpdatedZone}isProdZone(F){return F.name===this.prod}queryGxTarget(){const F=!!this.isStreamer,Oe=this.gridService.getCachedZone(),Ke=this.gridService.detectedLocalZone$,nn=this.cloudVariableHelperService.getFeatureToggle(Qi.Yi.BACKGROUND_WEBRTC_NETWORK_TEST,{configCheckEnabled:!0,useDifferentConfigAttributeName:!0,buildVariant:this.appConfig.build.variant,useCache:F});this.idmService.accountStatusChanged.pipe((0,Mr.p)(Nn=>Nn.isAuthenticated),(0,$e.ZZ)(Nn=>(0,Zi.yU)(Oe,nn,Ke))).subscribe(([Nn,_i,Wi])=>{this.logger.info("GxTarget webrtc network test response: ",_i.value);const or=this.isProdZone(Nn)?Wi:null;this.logger.info("Current zone:",Nn,", detected local zone: ",or),_i?.value?.enabled&&_i?.value?.supportedZonesList&&0!==_i?.value?.supportedZonesList.length?(this.cachedWebrtcSupportedZonesList=Object.assign([],_i.value.supportedZonesList),this.allZonesSupported=!1,this.isWebrtcNetworkTestEnabled=!0,this.isWebrtcNetworktestEnabledSubject.next({enabled:this.isWebrtcNetworkTestEnabled,showUI:_i?.value?.showUI||!1}),this.isWebrtcNTSupportedOnUpdatedZoneSubject.next(this.isZoneSupported(Nn,or))):_i?.value?.enabled&&_i?.value?.supportedZonesList&&0===_i?.value?.supportedZonesList.length?(this.allZonesSupported=!0,this.isWebrtcNetworkTestEnabled=!0,this.isWebrtcNetworktestEnabledSubject.next({enabled:this.isWebrtcNetworkTestEnabled,showUI:_i?.value?.showUI||!1}),this.isWebrtcNTSupportedOnUpdatedZoneSubject.next(this.isWebrtcNetworkTestEnabled)):(this.isWebrtcNetworkTestEnabled=!1,this.isWebrtcNetworktestEnabledSubject.next({enabled:this.isWebrtcNetworkTestEnabled,showUI:_i?.value?.showUI||!1}),this.isWebrtcNTSupportedOnUpdatedZoneSubject.next(this.isWebrtcNetworkTestEnabled))},Nn=>{this.logger.info("Failed to resolve gx-target cloud variable webRtcNetworkTestV2:",Nn),this.isWebrtcNetworkTestEnabled=!1,this.isWebrtcNetworktestEnabledSubject.next({enabled:this.isWebrtcNetworkTestEnabled,showUI:!1}),this.isWebrtcNTSupportedOnUpdatedZoneSubject.next(!1)})}configureWebrtcNetworkSettings(F){let Oe;const Ke=F?.overrides;Ke?.isFetchedFromGXT?(Oe={gxtOverrideData:JSON.stringify(Ke?.data)},this.logger.info("Sending rconfig data from GXT to ConfigureNetworkTestSettings"),this.bridgeService.executeCommand(An.Ts.Gfn.Networktest.ConfigureNetworkTestSettings,Oe).subscribe()):this.logger.info("No Network Test remote overrides available.")}getRemoteConfigForIndirectPolicy(F){let Oe;switch(F){case ht.RedResult:Oe=this.appConfig.featureEnablement.networkTestPolicy.isRedResultEnabled;break;case ht.StreamerFrameLossTimeoutError:Oe=this.appConfig.featureEnablement.networkTestPolicy.isFrameLossTimeoutErrorEnabled;break;default:Oe=!0}return Oe}hasMaxSubscriptionProfileUpgraded(F,Oe){return!m.zk.isBrowserPlatform()&&(F?Oe.height*Oe.width>F.height*F.width:Oe.width*Oe.height>=this.qhdResolutionIdentifier.lowerLimit)}shouldNetworkTestRun(){return(0,bi.zV)([this.networkConfigurationService.getCurrentFingerprintInfo(),this.currentMaxSubscriptionProfileStream.get$().pipe((0,a.s)(1))]).pipe((0,nt.T)(([F,Oe])=>{let Ke=!1;return(0,c.isNil)(F)?(this.logger.info("This fingerprint is observed for the first time, on which Network Test was never run."),this.setRetriggerPolicy(bn.ZpH.FingerprintChanged),Ke=!0):(0,c.isNil)(F.runNetworkTest)?(this.logger.info("Client upgraded to the version having the decoupling feature."),this.setRetriggerPolicy(bn.ZpH.ClientUpdated),Ke=!0):F.runNetworkTest?(Ke=this.getRemoteConfigForIndirectPolicy(F.indirectNetworkTestPolicy),this.logger.info(`An indirect policy: ${F.indirectNetworkTestPolicy} got triggered. Network test will ${Ke?"":"not "}be run.`),Ke&&(F.indirectNetworkTestPolicy.startsWith("Streamer")&&(F.indirectNetworkTestPolicy=ht.StreamerNetworkError),this.setRetriggerPolicy(F.indirectNetworkTestPolicy))):this.hasMaxSubscriptionProfileUpgraded(F?.maxSubscriptionProfile,Oe)&&(this.logger.info("Network test should run again as maxSubscriptionProfile has changed"),this.setRetriggerPolicy(bn.ZpH.MaxSubscriptionProfileUpgraded),Ke=!0),Ke}),(0,Ot.W)(F=>(this.logger.error("Error trying to determine if Network Test should run, therefore run Network Test.",F),this.setRetriggerPolicy(bn.ZpH.PolicyCheckFailed),(0,Fe.of)(!0))))}launchNetworkTest(F){return this.networkConfigurationService.getNetworkOverride().pipe((0,$r.E)(this.remoteConfig$.pipe((0,_o.Z)({overrides:{},config:this.appConfig}))),(0,bo.n)(([Oe,Ke])=>(this.appConfig=Ke.config,this.startedListenToTokenRequest||this.listenToTokenRequest(),this.executeNetworkTest(F).pipe((0,$e.ZZ)(nn=>this.updateNetworkTestOverrideFlag(nn)),(0,$e.ZZ)(nn=>this.networkTestPolicyChecks(nn)),(0,$e.ZZ)(nn=>this.updateMaxDisplay(nn)),(0,$e.ZZ)(nn=>this.updateNetworkTestSession(nn))))))}updateNetworkTestSession(F){return F.isSuccess?this.networkConfigurationService.setCachedNetworkSessionId(F.networkSessionId).pipe((0,Qe.u)(F)):(0,Fe.of)(F)}updateNetworkTestInfoInFingerprint(F,Oe,Ke){return F.result.result===hn.NCT_R_SUCCESS&&Oe&&Ke?this.networkConfigurationService.updateNetworkTestInfoInFingerprint(Oe,F,Ke):(0,Fe.of)(!1)}exceuteNetworkTestFinishedCallback(){this.bridgeService.executeCommand(An.Ts.Gfn.Networktest.NetworkTestFinishedCallback).pipe((0,a.s)(1)).subscribe(F=>{this.networkTestFinishedCallbackResult$.next(F)},F=>{this.networkTestFinishedCallbackResult$.error(F)})}executeNetworkTest(F,Oe=!1){let Ke,nn,Nn,_i,Wi;return this.exceuteNetworkTestFinishedCallback(),(0,bi.zV)([this.prepareNetworkParams(F,Oe),this.getResolutionForThresholdComparision()]).pipe((0,$e.ZZ)(([or,Hr])=>(Ke=Hr,nn=or,this.bridgeService.executeCommand(An.Ts.Gfn.Networktest.Start,or))),(0,$e.ZZ)(or=>this.getNetworkTestFinishedCallbackResult$().pipe((0,a.s)(1))),(0,$e.ZZ)(or=>(this.logger.info("Network Test result received: ",or),or?.result?.result===ji.u7.NCT_R_AUTH_FAILED?!1===Oe?(this.logger.info("Auth error, attempting to refresh credentials"),(0,At.$)(ji.u7.NCT_R_AUTH_FAILED)):(0,At.$)("Auth error, will not attempt to refresh credentials"):(0,Fe.of)(or))),(0,$e.ZZ)(or=>(or?.result?.result===ji.u7.NCT_R_SUCCESS&&(Nn=this.selectThresholdForResolution(or.testResult.thresholds,Ke)),_i=or,this.analyzeNetworkTestResults(or,Nn))),(0,$e.ZZ)(or=>(Wi=or,this.updateNetworkTestInfoInFingerprint(_i,nn?.maxDisplayResolution,Nn?.profile))),(0,nt.T)(or=>Wi),(0,Ot.W)(or=>or===ji.u7.NCT_R_AUTH_FAILED?this.executeNetworkTest(F,!0):(this.logger.error("Failed executing Network test command, error: ",or),(0,At.$)(or))))}networkTestPolicyChecks(F){const Oe=this.appConfig.featureEnablement.networkTestPolicy.isRedResultEnabled&&F.analysis.networkQuality===xe.Bad;let Ke=ht.None;return Oe&&(Ke=ht.RedResult,this.logger.info("Got a red result on analysis, hence Network Test will run on next streamer launch.")),this.networkConfigurationService.updateCurrentFingerprintNetworkTestFlag(Oe,Ke).pipe((0,Qe.u)(F))}updateMaxDisplay(F){return this.appConfig.featureEnablement.dynamicStreamingResolution?(this.logger.info("Dynamic res. is enabled by Remote config"),F.isSuccess?this.networkConfigurationService.setCurrentFingerprintMaxDisplay(F.capableProfile).pipe((0,Qe.u)(F)):(0,Fe.of)(F)):(this.logger.info("Dynamic res. is disabled by remote config, remove maxDisplay from sharedstorage"),this.networkConfigurationService.clearCurrentFingerprintMaxDisplay().pipe((0,Qe.u)(F)))}updateNetworkTestOverrideFlag(F){return this.networkConfigurationService.updateNetworkOverrideNetworkTestFlag(!1).pipe((0,Et.$)(),(0,Qe.u)(F))}startNetworkTest(F){return this.isNetworkTestInProgress=!0,this.networkTestRun=!0,this.launchNetworkTest(F).pipe((0,r.Q)(this.networkTestCancelled$),(0,Ze.M)(Oe=>{this.logger.info("Network Test completed: ",Oe),this.isNetworkTestInProgress=!1}),(0,Ot.W)(Oe=>(this.isNetworkTestInProgress=!1,this.logger.info("Network Test failed, hence Network Test will run on next streamer launch."),this.networkConfigurationService.updateCurrentFingerprintNetworkTestFlag(!0,ht.NetworkTestFailed).pipe((0,$e.ZZ)(()=>(0,At.$)(Oe))))))}listenToTokenRequest(){this.logger.info("Network Test starts listening to auth token request: "),this.bridgeService.executeCommand(An.Ts.Gfn.Networktest.AuthTokenRequest,{}).pipe((0,$e.ZZ)(()=>(this.logger.info("Got token REQUEST from NetworkTest SDK "),this.idmService.getAuthToken(!1,this.parentSpan))),(0,$e.ZZ)(F=>{if((0,c.isNil)(F)||(0,c.isNil)(F.token))return this.logger.info("Jarvis failed to return token, do not send command UpdateAuthToken..."),(0,Fe.of)({});{const Oe={authToken:F.token};return this.logger.info("Sending delegate token to NT2 SDK, using command UpdateAuthToken"),this.bridgeService.executeCommand(An.Ts.Gfn.Networktest.UpdateAuthToken,Oe)}})).subscribe(()=>this.startedListenToTokenRequest=!0,F=>this.logger.error("Error sending oauth token to NetworkTest",F))}sendNetworkTroubleshootClickedTelemetry(F){this.telemetryUtil.sendClickEvent(bn.EBD.NetworkTroubleshooting,"Network troubleshoot clicked",F)}selectThresholdForResolution(F,Oe){F.sort((nn,Nn)=>{const _i=nn.profile.height*nn.profile.width-Nn.profile.height*Nn.profile.width;return 0===_i?nn.profile.frameRate-Nn.profile.frameRate:_i});let Ke=-1;for(let nn=F.length-1;nn>=0;nn--)if(Oe.width*Oe.height>=F[nn].profile.width*F[nn].profile.height){if(nn-1>=0){const Nn=F[nn],_i=F[nn-1];Nn.profile.width===_i.profile.width&&Nn.profile.height===_i.profile.height&&Oe.frameRate<Nn.profile.frameRate&&(nn-=1)}Ke=nn;break}return-1===Ke&&(Ke=0),F[Ke]}getResolutionForThresholdComparision(){return(0,bi.zV)([this.currentDisplayResolutionStream.get$().pipe((0,a.s)(1)),this.currentMaxSubscriptionProfileStream.get$().pipe((0,a.s)(1))]).pipe((0,nt.T)(([F,Oe])=>{let Ke;return Ke=F.width<=Oe.width&&F.height<=Oe.height?F:Oe,Ke}))}roundTestResultNumbers(F){return this.logger.info("Rounding of network test results"),F.testResult.downlinkBandwidth=Math.round(F.testResult.downlinkBandwidth/1e6),F.testResult.uplinkBandwidth=Math.round(F.testResult.uplinkBandwidth/1e6)||0,F.testResult.thresholds?.forEach(Oe=>{Oe.bandwidthLimit=Math.round(Oe.bandwidthLimit),Oe.bandwidthRecommended=Math.round(Oe.bandwidthRecommended)}),F.testResult.packetLoss=Math.round(100*F.testResult.packetLoss)/100,F.testResult.latency=Math.round(F.testResult.latency),F.testResult.percentile99thFrameJitter=F.testResult.percentile99thFrameJitter/1e3||0,F}filterResolutionsByRatio(F,Oe,Ke){this.logger.info("filter Resolutions By Ratio, targetRatio: ",Oe);let nn=F?.filter(Nn=>Oe===Nn.width/Nn.height);return 0===nn?.length&&(this.logger.info("filter Resolutions By Ratio, fallbackRatio: ",Ke),nn=F?.filter(Nn=>Ke===Nn.width/Nn.height)),this.streamingProfileService.getAutoMaxBitrateValueForResolutionArray(nn)}getDynamicStreamingProfilesByRatio(F,Oe,Ke){return this.filterResolutionsByRatio(F,Oe,Ke).pipe((0,nt.T)(nn=>{let Nn=nn;Nn.sort((or,Hr)=>{const Mo=Hr.width*Hr.height-or.width*or.height;return 0===Mo?Hr.fps-or.fps:Mo});const _i=Nn[Nn.length-1],Wi=Nn.filter(or=>30===or.fps&&or.width===_i.width&&or.height===_i.height);return Nn=Nn.filter(or=>30!==or.fps).concat(Wi),Nn=Nn.map(or=>({...or,pixelCount:or.width*or.height})),Nn=(0,c.orderBy)(Nn,["pixelCount","maxBandwidth"],["desc","desc"]),this.logger.info("supportedResolutions filtered by ratio, 30fps removed + smallest resolution with 30fps: ",Nn),Nn}))}getCapableProfileForNetworkTest(F){return this.capableResolutionsStream.get$().pipe((0,a.s)(1),(0,nt.T)(Oe=>{const Ke=Oe[Oe.length-1],nn=F.testResult.downlinkBandwidth;let Nn={width:Ke.width,height:Ke.height,frameRate:Ke.fps};for(const Wi of Oe)if(nn>=Wi.maxBandwidth){Nn={frameRate:Wi.fps,height:Wi.height,width:Wi.width};break}return this.logger.info("estimated streaming resolution for Network Test: ",Nn),Nn}),(0,Ot.W)(Oe=>(this.logger.error("Error in estimating streaming resolution for network test. error:",Oe),this.isWebrtcNetworkTestEnabled?(this.logger.error("Returning dummy profile info for webclient"),(0,Fe.of)({width:0,height:0,frameRate:0})):(0,At.$)("Failed estimating streaming resolution for network test"))))}analyzeNetworkTestResults(F,Oe,Ke=!0){const nn=Ke?this.roundTestResultNumbers(F):F;return this.logger.info("Network test analysis results are: ",nn,this.zone),this.getCapableProfileForNetworkTest(nn).pipe((0,nt.T)(Nn=>{const _i=nn.result.result!==hn.NCT_R_SUCCESS?xe.NA:this.compareMetric(nn.testResult.downlinkBandwidth,Oe?.bandwidthLimit,Oe?.bandwidthRecommended,!0),Wi=nn.result.result!==hn.NCT_R_SUCCESS?xe.NA:this.compareMetric(nn.testResult.packetLoss,Oe?.packetLossLimit,Oe?.packetLossRecommended,!1),or=nn.result.result!==hn.NCT_R_SUCCESS?xe.NA:this.compareMetric(nn.testResult.latency,Oe?.latencyLimit,Oe?.latencyRecommended,!1),Hr=nn.result.result!==hn.NCT_R_SUCCESS?xe.NA:this.calculateNetworkQuality(_i,Wi,or);return{bandwidth:{measured:nn.testResult.downlinkBandwidth,limit:Oe?.bandwidthLimit,recommended:Oe?.bandwidthRecommended},uplinkBandwidth:nn.testResult.uplinkBandwidth,latency:{measured:nn.testResult.latency,limit:Oe?.latencyLimit,recommended:Oe?.latencyRecommended},latencyWithStream:nn.testResult.latencyWithStream,measuredPathMtu:nn.testResult.measuredPathMtu,frameLoss:{measured:nn.testResult.packetLoss,limit:Oe?.packetLossLimit,recommended:Oe?.packetLossRecommended},analysis:{networkQuality:Hr,bandwidthQuality:_i,frameLossQuality:Wi,latencyQuality:or},capableProfile:Nn,percentile99thFrameJitter:nn.testResult.percentile99thFrameJitter,networkSessionId:nn.testResult.networkSessionId,result:nn.result.result,isNetworkTest2:!0,isSuccess:nn.result.result===hn.NCT_R_SUCCESS,zone:nn.testResult.zone?{name:this.zone.name,address:nn.testResult.zone}:this.zone,errorDetails:nn.testResult.errorDetails||"",thresholds:nn.testResult.thresholds,maxUserCapableProfile:this.capableSupportedResolutions[0],maxPacketSize:nn.testResult.maxPacketSize,maxTestBandwidthMbps:nn.testResult.maxTestBandwidthMbps}}),(0,Ot.W)(Nn=>(this.logger.error("Error in analyzing network test result: ",Nn),(0,At.$)(Nn))))}calculateNetworkQuality(F,Oe,Ke){let nn;return F===xe.Excellent&&Oe===xe.Excellent&&Ke===xe.Excellent?nn=xe.Excellent:F===xe.Bad||Oe===xe.Bad||Ke===xe.Bad?nn=xe.Bad:(F===xe.Poor||Oe===xe.Poor||Ke===xe.Poor)&&(nn=xe.Poor),nn}compareMetric(F,Oe,Ke,nn){let Nn;return Nn=nn?F>=Ke?xe.Excellent:F<Oe?xe.Bad:xe.Poor:F<Ke?xe.Excellent:F>=Oe?xe.Bad:xe.Poor,Nn}getNetworkTestFinishedCallbackResult$(){return this.networkTestFinishedCallbackResult$.asObservable()}runLbrAndSaveOptimalZone(F){return this.gfnSdkService.getAuthType().pipe((0,$e.ZZ)(Oe=>{let Ke=(0,Fe.of)(null);(Oe===Pi.hT.IDM||Oe===Pi.hT.IDM_FALLBACK)&&(Ke=this.idmService.accountStatusChanged);const nn=[Ke,this.systemInfo.getSystemInfo([m.Lu.DeviceId])];return(0,Zi.yU)(...nn).pipe((0,bo.n)(([Nn,_i])=>{const Wi={userId:Nn&&!(0,c.isEmpty)(Nn.userId)?Nn.userId:"UnknownUser",platformId:F,deviceId:_i.DeviceId};return this.gridService.getZone(Wi,this.parentSpan)}))}))}prepareNetworkParams(F,Oe=!1){return this.logger.info("Getting network test parameters"),(0,Zi.yU)(this.idmService.accountStatusChanged,this.systemInfo.getSystemInfo([m.Lu.DeviceId]),this.currentDisplayResolutionStream.get$().pipe((0,a.s)(1)),this.gridService.getCachedZone(),this.idmService.getAuthToken(Oe,this.parentSpan),this.gfnSdkService.getAuthInfo(),this.currentMaxSubscriptionProfileStream.get$().pipe((0,a.s)(1)),this.capableResolutionsStream.get$().pipe((0,a.s)(1)),this.clientHeaderService.getCommonHeaders({withClientId:"lcars"})).pipe((0,$e.ZZ)(([Ke,nn,Nn,_i,Wi,or,Hr,Mo,aa])=>{this.logger.info("Preparing Network Test parameters"),this.zone=_i,this.selectedZone$.next(_i);let ko=ji.tS.NVB_AUTH_JWT_GFN,Aa=Wi.token;(!Aa||0===Aa.length)&&or.authType===Pi.hT.JWT&&(ko=ji.tS.NVB_AUTH_JWT,Aa=or.authToken);const Ra={platformId:F,user:(0,c.isEmpty)(Ke.userId)?"UnknownUser":Ke.userId,authType:ko,authToken:Aa||"",address:_i.address,deviceId:nn.DeviceId,displayResolution:{width:Nn.width,height:Nn.height,frameRate:Nn.frameRate},profiles:Mo.map(Qa=>({height:Qa.height,width:Qa.width,frameRate:Qa.fps})),maxDisplayResolution:Hr,httpHeaders:this.getHttpHeaders(aa)},Ml=(0,c.cloneDeep)(Ra);return delete Ml.authToken,this.logger.info("Network test parameters: ",Ml),(0,Fe.of)(Ra)}))}translateGFWSLSupportedString(F){switch(F){case m.t_.XBox:case m.t_.Windows:return"Windows";case m.t_.ChromeOS:return"Chrome OS";case m.t_.MacOS:return"macOS";case m.t_.IOS:case m.t_.IPadOS:case m.t_.VisionOS:return"iOS";case m.t_.Linux:return"Linux";case m.t_.Android:return"Android";case m.t_.WebOS:return"WebOS";case m.t_.Tizen:return"Tizen";case m.t_.SteamOS:return"SteamOS";default:return m.t_.Undefined}}getHttpHeaders(F){return m.zk.isBrowserPlatform()?[]:Object.entries(F).map(([Oe,Ke])=>({headerName:Oe,headerValue:Ke instanceof Array?Ke[0]:Ke}))}constructHelpLinks(){const F=this.localeService.localeChanged.pipe((0,Et.$)());return(0,Zi.yU)(F,this.systemInfo.getDeviceOSType()).pipe((0,nt.T)(Ke=>{const nn={cNm:m.zk.isBrowserPlatform()?"gfnb":"gfn",Plt:this.translateGFWSLSupportedString(Ke[1])},Nn=new URL(It.r7.BaseUrl+Ke[0]);Nn.searchParams.append("page",It.r7.NetworkTroubleshoot),Nn.searchParams.append("jso",btoa(JSON.stringify(nn))),this.logger.info("Network Troubleshooting tips link: ",Nn.toString());const _i=It.lp[It.r7.NetworkTroubleshoot],Wi=`${It.r7.BaseUrl}${Ke[0]}&page=${It.r7.RecommendedRoutersProductPage}`,or=It.lp[It.r7.RecommendedRoutersProductPage];return this.logger.info("Recommended Routers link: ",Wi),[Nn.toString(),_i,Wi,or]}))}cleanupOnCancel(){return this.networkTestCancelled$.next(),this.isNetworkTestInProgress?(this.logger.info("Cancelled network test, hence Network Test will run on next streamer launch."),this.networkConfigurationService.updateCurrentFingerprintNetworkTestFlag(!0,ht.NetworkTestCancelled)):(0,Fe.of)(!0)}isCachedZone(F,Oe){return F===Oe}isSupportedAndCachedZone(F,Oe,Ke){return F?.address&&this.isZoneSupported(F,Ke)&&this.isCachedZone(F.address,Oe?.address)}checkExpiry(F){if(!F?.networkTestExpiry?.expiryTime)return!0;if(F?.networkTestExpiry?.expiryTime){const Oe=new Date,Ke=new Date(F.networkTestExpiry.expiryTime);return this.logger.info("Webrtc Network Test Expiry time "+Ke+", time now "+Oe),Ke<Oe}}isWebrtcNetworkTestExpiryTimeElapsed(F){return(0,Zi.yU)(this.zoneStorage.getDefaultZone(),this.networkConfigurationService.getNetworkConfig(),this.gridService.detectedLocalZone$).pipe((0,nt.T)(([Oe,Ke,nn])=>this.isSupportedAndCachedZone(F,Ke?.networkTestExpiry?.zone,nn)||!F&&this.isSupportedAndCachedZone(Oe,Ke?.networkTestExpiry?.zone,nn)?this.checkExpiry(Ke):!(!F||!this.isZoneSupported(F,nn)||this.isCachedZone(F.address,Ke?.networkTestExpiry?.zone.address))||!(F||!this.isZoneSupported(Oe,nn)||this.isCachedZone(Oe.address,Ke?.networkTestExpiry?.zone?.address))))}isWebrtcNetworkTestRequired(F,Oe=!1){return(0,bi.zV)([this.webrtcNetworkTestEnabled,this.webrtcNTSupportForZone]).pipe((0,$e.ZZ)(([Ke,nn])=>(this.isWebrtcNetworkTestEnabled=Oe?Ke.enabled&&!Ke.showUI&&nn:Ke.enabled&&Ke.showUI&&nn,this.isWebrtcNetworkTestEnabled?this.isWebrtcNetworkTestExpiryTimeElapsed(F).pipe((0,nt.T)(Nn=>Nn?F?F&&F.runNetworkTest?(this.logger.info("Override zone has been set, hence run webrtc network test"),this.setRetriggerPolicy(bn.ZpH.OverrideFlagSet),!0):(this.logger.info("runNetworkTest for set override zone is false, not running Network test."),!1):(this.logger.info("Webrtc network test is enabled, run Network test."),!0):(this.logger.info("Network Test expiry time has not elapsed yet, not running Network test."),!1))):(this.logger.info("Network Test disabled, skipping Network test."),(0,Fe.of)(!1)))))}setNetworkTestExpiryTime(){const F=new Date,Oe=this.appConfig.networkTest?.expiryTime;return this.isWebrtcNetworkTestEnabled&&!(0,c.isNil)(Oe)?(F.setDate(F.getDate()+Oe),(0,Zi.yU)(this.gridService.getCachedZone(),this.networkConfigurationService.getNetworkConfig()).pipe((0,bo.n)(([Ke,nn])=>{this.logger.info(`Updating Network Test Expiry time for zone ${Ke.name}: `+F);const Nn={zone:Ke,expiryTime:F?.toISOString()};return nn=(0,c.extend)(nn,{networkTestExpiry:Nn}),this.networkConfigurationService.writeNetworkConfig(nn,!0)}),(0,Ot.W)(Ke=>(this.logger.error("Set Network Test expiry time failed: ",Ke),(0,Fe.of)(!1))))):(0,Fe.of)(!1)}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.KVO(m.J6),g.KVO(m.zW),g.KVO(ar.xf),g.KVO(jr.k_),g.KVO(ho.G),g.KVO(m.NZ),g.KVO(Fo.u),g.KVO(no.a),g.KVO(yo.Vk),g.KVO(Pi.DL),g.KVO(m.iH),g.KVO(bn.jgD),g.KVO(Zr.mZ),g.KVO(Qi.r1),g.KVO(Yr.Ix),g.KVO(go.y1),g.KVO(zo.p))}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})();var to=s(74965),ot=s(21341),Sn=s(60990),Bn=s(40514);function Ti(it,Ln){if(1&it&&(g.j41(0,"div",1)(1,"a",2),g.EFF(2),g.nI1(3,"translate"),g.k0s()()),2&it){const F=g.XpG();g.R7$(),g.Y8G("href",F.serverStatusUrl,g.B4B)("shortUrl",F.serverStatusShortUrl),g.R7$(),g.SpI(" ",g.bMT(3,3,"common.viewServerStatus")," ")}}let Li=(()=>{class it{constructor(F,Oe){this.networkTestService=F,this.localeService=Oe,this.serverStatusShortUrl=It.lp[It.r7.GfnServerStatus]}ngOnInit(){this.isOnline=this.networkTestService.isSystemOnline(),this.localeSubscription=this.localeService.localeChanged.subscribe(F=>{this.serverStatusUrl=It.r7.BaseUrl+F+"&page="+It.r7.GfnServerStatus})}ngOnDestroy(){this.localeSubscription&&this.localeSubscription.unsubscribe()}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.rXU(si),g.rXU(m.iH))}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["gfn-server-status-link"]],standalone:!0,features:[g.aNF],decls:1,vars:1,consts:[["class","redirect-page-div",4,"ngIf"],[1,"redirect-page-div"],["target","_blank",1,"font-body2-link",3,"href","shortUrl"]],template:function(Oe,Ke){1&Oe&&g.DNE(0,Ti,4,5,"div",0),2&Oe&&g.Y8G("ngIf",Ke.isOnline)},dependencies:[O.bT,M.bm,Sn.r,Bn.e,P.h,P.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.font-size-xxxs[_ngcontent-%COMP%]{font-size:8px}.font-size-xxs[_ngcontent-%COMP%]{font-size:11px}.font-size-sm[_ngcontent-%COMP%]{font-size:12px}.font-size-sm1[_ngcontent-%COMP%]{font-size:13px}.font-size-lg[_ngcontent-%COMP%]{font-size:14px}.font-size-xl[_ngcontent-%COMP%]{font-size:16px}.font-size-xl1[_ngcontent-%COMP%]{font-size:18px}.font-size-20[_ngcontent-%COMP%]{font-size:20px}.font-size-xxl[_ngcontent-%COMP%]{font-size:24px}.font-size-32[_ngcontent-%COMP%]{font-size:32px}.font-size-xxxl[_ngcontent-%COMP%]{font-size:40px}.line-height-sm[_ngcontent-%COMP%]{line-height:.75em}.line-height-sm1[_ngcontent-%COMP%]{line-height:1em}.line-height-14[_ngcontent-%COMP%]{line-height:14px}.line-height-12[_ngcontent-%COMP%]{line-height:12px}.line-height-16[_ngcontent-%COMP%]{line-height:16px}.line-height-md[_ngcontent-%COMP%]{line-height:1.5em}.line-height-lg[_ngcontent-%COMP%]{line-height:3em}.line-height-30[_ngcontent-%COMP%]{line-height:30px}.line-height-36[_ngcontent-%COMP%]{line-height:36px}.line-height-lg1[_ngcontent-%COMP%]{line-height:40px}.font-style-italic[_ngcontent-%COMP%]{font-style:italic}.font-style-bold[_ngcontent-%COMP%]{font-weight:700}.font-style-normal[_ngcontent-%COMP%]{font-weight:400}.font-uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.font-lowercase[_ngcontent-%COMP%]{text-transform:lowercase}.text-transform-none[_ngcontent-%COMP%]{text-transform:none}.common-ui-network-container[_ngcontent-%COMP%]{background-color:#1f2224;max-width:789px}.common-ui-network-header[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:0;height:24px}.isLtr[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900;vertical-align:middle;min-width:24px}.isLtr[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.result-text-container[_ngcontent-%COMP%]{margin-bottom:6px}.result-text[_ngcontent-%COMP%]{margin-top:1px}.nw-icon[_ngcontent-%COMP%]{height:24px;line-height:24px;width:auto;speak:none;font-size:48px;font-variant:normal;align-self:center;color:#fff;opacity:.9;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:22px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:22px}.icon-alert-bang[_ngcontent-%COMP%]{margin:0}.common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.common-ui-network-container[_ngcontent-%COMP%] .result-icon.error[_ngcontent-%COMP%]{color:#ed1c24}.warn[_ngcontent-%COMP%]{color:#ffb538}.error[_ngcontent-%COMP%]{color:#ed1c24}.common-ui-errorDetails[_ngcontent-%COMP%] .success[_ngcontent-%COMP%]{color:#76b900}.flex-1[_ngcontent-%COMP%]{flex:1}.nv-ui-assets[_ngcontent-%COMP%]{height:140px;margin-top:64px;display:flex;flex-direction:row;overflow:hidden;justify-content:center;align-items:baseline}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:79px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:79px}.nv-dot-icons[_ngcontent-%COMP%]{border-radius:50%;width:8px;height:8px;align-self:center;display:-webkit-inline-box;background:#ffffff73}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.animated[_ngcontent-%COMP%]{animation-duration:2s;animation-iteration-count:infinite;animation-fill-mode:both;animation-delay:1s}.caption[_ngcontent-%COMP%]{display:block;max-width:92px;width:12vw;text-align:center;margin-bottom:0}.caption.truncate-text[_ngcontent-%COMP%]{margin-top:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.common-ui-errorDetails[_ngcontent-%COMP%]{height:72px;display:flex;justify-content:center;margin:0 24px}.connect-error-details[_ngcontent-%COMP%]{display:flex}.common-ui-network-container[_ngcontent-%COMP%] .common-ui-resultDetails[_ngcontent-%COMP%]{height:24px;margin-bottom:30px;align-self:center;margin-top:22px}.common-ui-network-content[_ngcontent-%COMP%]{height:181px;background-color:#0000004d;overflow-y:auto}.common-ui-network-content[_ngcontent-%COMP%] .nv-button-class[_ngcontent-%COMP%]{height:84px;display:flex}.common-ui-network-content[_ngcontent-%COMP%] .override-warning-container[_ngcontent-%COMP%]{margin-top:5px;padding:0 24px;align-items:center}.common-ui-network-content[_ngcontent-%COMP%] span.icon-alert-circle_reg[_ngcontent-%COMP%]{font-size:11px}.common-ui-network-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:12px;margin-top:0}.div-table[_ngcontent-%COMP%]{display:table!important;width:101%;padding-top:24px;padding-bottom:24px;max-width:100%}.div-table-row[_ngcontent-%COMP%]{display:table-row;width:auto;clear:both;height:28px}.div-table-col[_ngcontent-%COMP%]{display:table-column;width:140px;text-align:center}.isLtr[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:right}.div-table-col-header[_ngcontent-%COMP%]{display:table-column;width:236px}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ffb538;width:177px}.yellowstyle[_ngcontent-%COMP%] .narrowstyle[_ngcontent-%COMP%]{width:26px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ed1c24;width:177px}.redstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ed1c24}.yellowstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.wifi_2_4_warn[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%] md-icon[_ngcontent-%COMP%]{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%]{display:table}.network-assets[_ngcontent-%COMP%]{display:flex}.error-details[_ngcontent-%COMP%]{display:flex;margin-top:24px}.isLtr[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.common-ui-error[_ngcontent-%COMP%]{width:480px}.redirect-page-div[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:center}.redirect-page-link[_ngcontent-%COMP%]{text-decoration:none}.vertical-gap-24[_ngcontent-%COMP%]{height:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-right:48px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-right:48px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-left:48px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-left:48px}.network-progress-fill[_ngcontent-%COMP%]{height:50px;background-color:#1f2224}.network-test-icons[_ngcontent-%COMP%]{display:block}.error-dlg-content[_ngcontent-%COMP%]{margin:24px;min-height:32px}.error-dlg-buttons[_ngcontent-%COMP%]{min-height:52px}.isLtr[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:right}html[dir=ltr][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isRtl[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:left}html[dir=rtl][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:left}button.error-dialog-button[_ngcontent-%COMP%]{margin:8px}.error-icon[_ngcontent-%COMP%]{font-size:32px!important}.isLtr[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.error-icon-error-dialog[_ngcontent-%COMP%]{font-size:32px;margin-top:20px;min-width:32px;line-height:5px}.isLtr[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 8px 23px 23px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 8px 23px 23px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 23px 23px 8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 23px 23px 8px}.active[_ngcontent-%COMP%]{background:#76b900;opacity:1;width:12px;height:12px;margin-bottom:-2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.normal[_ngcontent-%COMP%]{background:#ffffff73;width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.error-background-active-btn[_ngcontent-%COMP%]{background-color:#76b900}.custom-svg-icon[_ngcontent-%COMP%]{width:48px;height:auto}.network-isp-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.network-test-warning-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin-top:12px}.nv-dot-icons-container[_ngcontent-%COMP%]{margin-top:12px}@media (max-width: 960px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:60px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:60px}.network-test-results[_ngcontent-%COMP%]{min-width:80vw}.div-table-col-header[_ngcontent-%COMP%]{width:30%}.div-table-col[_ngcontent-%COMP%]{width:18%}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:120px}}@media (max-width: 790px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:48px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:48px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:80px}}@media (max-width: 690px){.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:60px}}@media screen and (max-width: 834px) and (max-height: 1194px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:36px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:36px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:87px}.nv-dot-icons[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.active[_ngcontent-%COMP%]{width:10px;height:10px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.normal[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.div-table-col-header[_ngcontent-%COMP%]{width:160px}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape),(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{display:block;max-height:65vh;overflow-y:auto;overflow-x:unset}.common-ui-network-container[_ngcontent-%COMP%]{margin:0;overflow:unset}.common-ui-network-header[_ngcontent-%COMP%]{margin:0}.common-ui-network-title[_ngcontent-%COMP%]{--font-header-font-size: 14px;--font-header-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--font-header-font-size: 28px;--font-header-line-height: 40px}.isLtr[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.common-ui-network-content[_ngcontent-%COMP%]{height:unset;background-color:unset}.nv-ui-assets[_ngcontent-%COMP%]{height:100px;line-height:0;margin-top:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.network-test-icons[_ngcontent-%COMP%]{text-align:center;height:16px;margin-top:0}.network-isp-icons[_ngcontent-%COMP%]{align-items:center}.nv-dot-icons[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.active[_ngcontent-%COMP%]{width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.normal[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.custom-svg-icon[_ngcontent-%COMP%]{width:24px;min-height:25px}.caption[_ngcontent-%COMP%]{margin:0 auto;align-self:center}.common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;display:flex;justify-content:center}.isLtr[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.isRtl[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.network-test-error-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-sizing:border-box;justify-content:center;align-items:stretch;max-width:100%}.icon-alert-bang[_ngcontent-%COMP%]{font-size:36px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:57px}.result-text[_ngcontent-%COMP%]{margin-top:0}.network-test-results[_ngcontent-%COMP%]{background-color:#0000004d;padding-top:16px}.mat-mdc-tab-group[_ngcontent-%COMP%]{background-color:#0000004d}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.div-table-row[_ngcontent-%COMP%]{justify-content:space-between;max-width:240px}}@media (max-width: 959.98px) and (orientation: landscape),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{max-height:60vh}.network-test-results[_ngcontent-%COMP%]{max-width:536px;min-width:0}.common-ui-network-container[_ngcontent-%COMP%]{width:536px;max-height:80vh}}@media (max-width: 599.98px) and (orientation: portrait){.common-ui-network-container[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}}@media screen and (max-width: 320px) and (max-height: 568px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.active[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:1px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:1px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:40px}.result-text[_ngcontent-%COMP%]{width:70%}}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%]{width:960px;max-width:960px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{height:unset;margin-top:24px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:0}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%]{height:277px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%]{height:auto}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{width:320px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{width:180px}.tv-view[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{height:20vh}.tv-view[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}.tv-view[_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%]{margin:16px}.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{font-size:40px;width:40px;height:40px}.isLtr.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-right:20px}html[dir=ltr] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:20px}.isRtl.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:20px}"]})}}return it})(),dr=(()=>{class it{constructor(F,Oe,Ke,nn){this.loggingService=F,this.telemetryUtil=Oe,this.networkTestService=Ke,this.telemetryService=nn,this.isSilentWebrtcNT=!1,this.logger=this.loggingService.getLogger("shared/network-test-telemetry.service"),this.networkTestService.webrtcNetworkTestEnabled.subscribe(Nn=>{this.isSilentWebrtcNT=Nn.enabled??!1})}getNetworkTestDataWithPolicy(F){return this.networkTestService.getRetriggerPolicy().pipe((0,Et.$)(),(0,nt.T)(Oe=>(F.policy=Oe,F)))}sendTestDoneTelemetry(F,Oe){const Ke=this.constructTestDoneTelemetryData(F,Oe);return this.isSilentWebrtcNT?(Ke.policy=bn.ZpH.Manual,(0,Fe.of)(this.telemetryService.push(new bn.gvg(Ke),F.startTime))):this.getNetworkTestDataWithPolicy(Ke).pipe((0,nt.T)(nn=>this.telemetryService.push(new bn.gvg(nn),F.startTime)))}constructTestDoneTelemetryData(F,Oe){const Ke=this.networkTestService.maxSubscriptionProfile,nn=Oe?.maxUserCapableProfile,Nn={networkTestVersion:2,bandwidth:Oe&&Oe.bandwidth.measured?Oe.bandwidth.measured:0,uplinkBandwidth:Oe&&Oe.uplinkBandwidth?Oe.uplinkBandwidth:0,clientType:this.telemetryUtil.getClientType(),displayProfile:(0,c.isNil)(Oe)?bn.Hgm.NVB_PROFILE_DEFAULT:this.formatDisplayProfile(Oe.capableProfile),userCapableProfileWidth:Oe?.capableProfile?.width||0,userCapableProfileHeight:Oe?.capableProfile?.height||0,userCapableProfileFrameRate:Oe?.capableProfile?.frameRate||0,maxUserCapableProfileWidth:nn?.width||0,maxUserCapableProfileHeight:nn?.height||0,maxUserCapableProfileFrameRate:nn?.fps||0,maxSubscriptionProfileWidth:Ke?.width||0,maxSubscriptionProfileHeight:Ke?.height||0,maxSubscriptionProfileFrameRate:Ke?.frameRate||0,maxTestBandwidthMbps:Oe?.maxTestBandwidthMbps||0,errorCode:(0,c.isNil)(Oe)?0:Oe.result,status:F.networkTestTelemetryStatus,errorReason:(0,c.isNil)(Oe)?this.formatNetworkErrorReason(F.networkTestTelemetryStatus):this.formatNetworkErrorReason(F.networkTestTelemetryStatus,Oe.result),dataLoss:Oe&&Oe.frameLoss.measured?Oe.frameLoss.measured:0,latency:Oe&&Oe.latency.measured?Oe.latency.measured:0,latencyWithStream:Oe&&Oe.latencyWithStream?Oe.latencyWithStream:0,measuredPathMtu:Oe&&Oe.measuredPathMtu?Oe.measuredPathMtu:0,networkQuality:(0,c.isNil)(Oe)?bn.kKp.Unknown:this.formatNetworkQuality(Oe.analysis.networkQuality),networkSessionId:Oe&&Oe.networkSessionId?Oe.networkSessionId:"",networkTestMode:F.autoRun?bn.QQA.Automatic:bn.QQA.Manual,networkType:(0,c.isNil)(Oe)?bn.w7B.Unknown:this.telemetryUtil.getNetworkType(F?.testData?.networkInfo?.NetworkType),totalMs:0,VPNConnection:(0,c.isNil)(F?.testData?.networkInfo)||(0,c.isNil)(F.testData.networkInfo?.IsVPN)?bn.T80.UNDEFINED:"1"===F?.testData?.networkInfo?.IsVPN?bn.T80.TRUE:bn.T80.FALSE,zone:(0,c.isNil)(Oe)?"":Oe.zone.address,overrideZone:(0,c.isNil)(F.zoneOverride)?"":F.zoneOverride.address,overrideActive:(0,c.isNil)(F.zoneOverride)?bn.T80.FALSE:bn.T80.TRUE,percentile99thFrameJitter:Oe&&Oe.percentile99thFrameJitter?Oe.percentile99thFrameJitter:0,resultCode:(0,c.isNil)(Oe)?0:Oe.result,errorDetails:(0,c.isNil)(Oe)?this.formatNetworkErrorReason(F.networkTestTelemetryStatus):F.isWebRtcNetworkTest?Oe?.errorDetails:this.formatNetworkErrorReason(F.networkTestTelemetryStatus,Oe.result),policy:bn.ZpH.Manual,maxPacketSize:Oe?.maxPacketSize||0};return this.logger.info("Network test telemetry data: ",Nn),Nn}formatDisplayProfile(F){let Oe=bn.Hgm.NVB_PROFILE_DEFAULT;return 1366===F.width&&768===F.height?Oe=30===F.frameRate?bn.Hgm.NT_1366_768_30:bn.Hgm.NT_1366_768_60:1920===F.width&&1080===F.height?Oe=30===F.frameRate?bn.Hgm.NVB_PROFILE_GAMING_1080P_30FPS:bn.Hgm.NVB_PROFILE_GAMING_1080P_60FPS:1280===F.width&&720===F.height?Oe=30===F.frameRate?bn.Hgm.NVB_PROFILE_GAMING_720P_30FPS:bn.Hgm.NVB_PROFILE_GAMING_720P_60FPS:1920===F.width&&1200===F.height?Oe=30===F.frameRate?bn.Hgm.NT_1920_1200_30:bn.Hgm.NT_1920_1200_60:1680===F.width&&1050===F.height?Oe=30===F.frameRate?bn.Hgm.NT_1680_1050_30:bn.Hgm.NT_1680_1050_60:1440===F.width&&900===F.height?Oe=30===F.frameRate?bn.Hgm.NT_1440_900_30:bn.Hgm.NT_1440_900_60:1280===F.width&&800===F.height&&(Oe=30===F.frameRate?bn.Hgm.NT_1280_800_30:bn.Hgm.NT_1280_800_60),Oe}formatNetworkErrorReason(F,Oe){let Ke;return Ke=F===bn.fbu.NetworkTestSdkError?this.formatNetworkTestV2ErrorReason(Oe):F===bn.fbu.Success?bn.zTU.NA:(0,c.isNil)(Oe)||151!==Oe?(0,c.isNil)(Oe)||204!==Oe?bn.zTU.UNKNOWN:bn.zTU.PacketLoss:bn.zTU.FAILED,Ke}formatNetworkTestV2ErrorReason(F){let Oe;switch(F){case bn.RX8.UNKNOWN:Oe=bn.zTU.UNKNOWN;break;case bn.RX8.SUCCESS:Oe=bn.zTU.NA;break;case bn.RX8.INVALID_PARAM:Oe=bn.zTU.INVALID_PARAM;break;case bn.RX8.SYN_FAILED:Oe=bn.zTU.SYN_FAILED;break;case bn.RX8.FIN_FAILED:Oe=bn.zTU.FIN_FAILED;break;case bn.RX8.AUTH_FAILED:Oe=bn.zTU.AUTH_FAILED;break;case bn.RX8.POST_FAILED:Oe=bn.zTU.POST_FAILED;break;case bn.RX8.TEST_IN_PROGRESS:Oe=bn.zTU.TEST_IN_PROGRESS;break;case bn.RX8.CANCELED:Oe=bn.zTU.CANCELED;break;case bn.RX8.CAPACITY_FULL:Oe=bn.zTU.CAPACITY_FULL;break;case bn.RX8.SESSION_EXIST:Oe=bn.zTU.SESSION_EXIST;break;case bn.RX8.INVALID_DATA:Oe=bn.zTU.INVALID_DATA;break;case bn.RX8.SETUP_FAILED:Oe=bn.zTU.SETUP_FAILED;break;case bn.RX8.RETRYABLE_POST_FAILURE:Oe=bn.zTU.RETRYABLE_POST_FAILURE;break;case bn.RX8.BLOCK_STREAM:Oe=bn.zTU.BLOCK_STREAM;break;default:Oe=bn.zTU.UNKNOWN}return Oe}formatNetworkQuality(F){let Oe=bn.kKp.Unknown;switch(F){case xe.Excellent:Oe=bn.kKp.Excellent;break;case xe.Poor:Oe=bn.kKp.Poor;break;case xe.Bad:Oe=bn.kKp.Bad}return Oe}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.KVO(m.J6),g.KVO(bn.jgD),g.KVO(si),g.KVO(I.H0))}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})();var Fr=s(21172);const br=(it,Ln,F)=>({autoRun:it,showAdditionalActions:Ln,progressState:F});function Vn(it,Ln){if(1&it&&g.nrm(0,"gfn-network-test-analyzer",2),2&it){const F=g.XpG();g.Y8G("data",F.analyzerData)}}function rr(it,Ln){if(1&it&&g.nrm(0,"gfn-network-completed",16),2&it){const F=g.XpG(4);g.Y8G("nvTestData",F.testData)("isHandset",F.isHandset)}}function Ut(it,Ln){if(1&it&&(g.j41(0,"mat-tab-group",17)(1,"mat-tab",18),g.nI1(2,"translate"),g.nrm(3,"gfn-network-tips",19),g.k0s(),g.j41(4,"mat-tab",18),g.nI1(5,"translate"),g.nrm(6,"gfn-network-completed",16),g.k0s()()),2&it){const F=g.XpG(4);g.R7$(),g.FS9("label",g.bMT(2,5,"common.troubleshootingTips")),g.R7$(2),g.Y8G("networkConditionsData",F.networkConditionsData),g.R7$(),g.FS9("label",g.bMT(5,7,"networkTest.detailsTag")),g.R7$(2),g.Y8G("nvTestData",F.testData)("isHandset",F.isHandset)}}function qn(it,Ln){if(1&it&&(g.qex(0),g.j41(1,"span",20),g.EFF(2),g.nI1(3,"translate"),g.k0s(),g.nrm(4,"gfn-network-tips",19),g.j41(5,"span",20),g.EFF(6),g.nI1(7,"translate"),g.k0s(),g.nrm(8,"gfn-network-completed",16),g.bVm()),2&it){const F=g.XpG(4);g.R7$(2),g.JRh(g.bMT(3,5,"common.troubleshootingTips")),g.R7$(2),g.Y8G("networkConditionsData",F.networkConditionsData),g.R7$(2),g.JRh(g.bMT(7,7,"networkTest.detailsTag")),g.R7$(2),g.Y8G("nvTestData",F.testData)("isHandset",F.isHandset)}}function Wn(it,Ln){if(1&it&&(g.j41(0,"div",12),g.DNE(1,rr,1,2,"gfn-network-completed",13)(2,Ut,7,9,"mat-tab-group",14)(3,qn,9,9,"ng-container",15),g.k0s()),2&it){const F=g.XpG(3);g.R7$(),g.Y8G("ngIf",!F.showTroubleshootTips),g.R7$(),g.Y8G("ngIf",F.showTroubleshootTips&&!F.isHandset),g.R7$(),g.Y8G("ngIf",F.showTroubleshootTips&&F.isHandset)}}function ci(it,Ln){if(1&it&&(g.j41(0,"div",9),g.nrm(1,"gfn-network-icons",10),g.DNE(2,Wn,4,3,"div",11),g.k0s()),2&it){const F=g.XpG(2);g.R7$(),g.Y8G("progressState",F.progressState)("nvTestData",F.testData)("maxDisplayState",F.maxDisplayState)("isWebRtcNetworkTest",F.isWebRtcNetworkTestEnabled),g.R7$(),g.Y8G("ngIf",-1!==F.progressState)}}function Tr(it,Ln){if(1&it){const F=g.RV6();g.j41(0,"div",21)(1,"gfn-network-test-error",22),g.bIt("close",function(){g.eBV(F);const Ke=g.XpG(2);return g.Njj(Ke.onClickClose())})("tryAgain",function(){g.eBV(F);const Ke=g.XpG(2);return g.Njj(Ke.onClickTryAgain())})("continue",function(){g.eBV(F);const Ke=g.XpG(2);return g.Njj(Ke.onClickContinue())}),g.k0s()()}if(2&it){const F=g.XpG(2);g.R7$(),g.Y8G("zoneName",F.zoneName)("networkTestErrorText",F.networkTestErrorText)("showFirewallHelpLink",F.showFirewallHelpLink)("firewallHelpUrl",F.firewallHelpUrl)("firewallHelpShortUrl",F.firewallHelpShortUrl)("firewallLinkText",F.firewallLinkText)("nvClient",F.nvClientApp)}}function Jr(it,Ln){if(1&it){const F=g.RV6();g.j41(0,"div",23)(1,"gfn-nw-test-button-placer",24),g.bIt("tryAgain",function(){g.eBV(F);const Ke=g.XpG(2);return g.Njj(Ke.onClickTryAgain())})("close",function(){g.eBV(F);const Ke=g.XpG(2);return g.Njj(Ke.onClickClose())})("continue",function(){g.eBV(F);const Ke=g.XpG(2);return g.Njj(Ke.onClickContinue())}),g.k0s()()}if(2&it){const F=g.XpG(2);g.R7$(),g.Y8G("placementCriteria",g.sMw(1,br,F.autoRun,F.showAdditionalActions,F.progressState))}}function oo(it,Ln){if(1&it&&(g.j41(0,"div",3)(1,"div",4)(2,"p"),g.EFF(3),g.nI1(4,"translate"),g.k0s()(),g.j41(5,"div",5),g.DNE(6,ci,3,5,"div",6)(7,Tr,2,7,"div",7),g.k0s(),g.DNE(8,Jr,2,5,"div",8),g.k0s()),2&it){const F=g.XpG();g.Y8G("ngSwitch",F.uiState),g.R7$(),g.Y8G("ngClass",F.isHandset?"font-header6":"font-header5"),g.R7$(2),g.JRh(g.bMT(4,6,F.networkTestHeaderText)),g.R7$(3),g.Y8G("ngSwitchCase","NETWORKTEST"),g.R7$(),g.Y8G("ngSwitchCase","ERROR"),g.R7$(),g.Y8G("ngIf","NETWORKTEST"===F.uiState&&-1!==F.progressState)}}let Qo=(()=>{class it{constructor(F,Oe,Ke,nn,Nn,_i,Wi,or,Hr,Mo,aa,ko,Aa,Ra,Ml,Qa,Lc){this.networkTestService=Oe,this.telemetryUtil=Ke,this.networkConfigurationService=nn,this.redirectService=Nn,this.applicationLifetimeService=_i,this.networkStatusService=Wi,this.streamingProfileService=or,this.serverRouting=Hr,this.networkTestTelemetryService=Mo,this.appConfig=aa,this.breakpointObserver=ko,this.dialogRef=Aa,this.matDialog=Ra,this.element=Ml,this.focusManager=Qa,this.pluginsNotificationService=Lc,this.nvClientApp=bn.sKj.MallClient,this.testData={},this.shutdownHandler=null,this.delayRetry=0,this.logger=F.getLogger("libraries/network-test/NetworkTestComponent"),this.destroy$=new _.B7,this.mobileMode=!!this.appConfig?.featureEnablement?.mobileMode,this.networkTestHeaderText="networkTest.networkTestHeader",this.showNetworkTest=!m.zk.isBrowserPlatform()}ngOnInit(){this.autoRun=this.nvClientApp===bn.sKj.StreamingClient,this.telemetryUtil.setClientType(this.autoRun?Pt.td.Streamer:Pt.td.Mall),this.platform=m.zk.isBrowserPlatform()?We.browser:this.autoRun?We.streamer:We.mall,this.showTroubleshootTips=!1,this.analyzerData={cmsId:this.cmsId},this.networkTestService.initialize(),m.zk.isBrowserPlatform()&&this.networkTestService.webrtcNetworkTestEnabled.pipe((0,r.Q)(this.destroy$)).subscribe(F=>{this.isWebRtcNetworkTestEnabled=F.enabled,this.showNetworkTest=F.showUI}),this.networkStatusService.onlineStatusChanged.pipe((0,Et.$)(),(0,$e.ZZ)(F=>F?this.networkTestResult?this.networkTestService.getNetworkInfo().pipe((0,a.s)(1),(0,Ze.M)(Oe=>{if(!Oe)return void this.logger.error("Invalid Network Info");this.testData.networkInfo=Oe,this.testData.result=this.networkTestResult,this.logger.info("Using existing network test results: ",this.testData.result);const Ke=this.populateNetworkTestResultData(this.networkTestResult);this.populateNetworkConditions(),this.uiState=qe.NetworkTest,this.autoRun?this.showAutoNetworkTestResultsDialog(Ke):this.focusManager.focusChild(this.element.nativeElement,"initial")}),(0,Qe.u)(F)):this.initiateNetworkAnalysis().pipe((0,Qe.u)(F)):(this.showNetworkTestError({networkTestStatus:bn.fbu.ClientOffline,errorDetails:bn.fbu.ClientOffline,errorCode:On.Success}),(0,Fe.of)(F)))).subscribe(F=>{this.logger.info(`Network analysis was ${F?"":"not "}started on init.`)}),this.networkConfigurationService.getNetworkOverride().pipe((0,a.s)(1)).subscribe(F=>{this.zoneOverride=F}),this.shutdownHandler=this.applicationLifetimeService.addWorkOnShutdown(()=>this.serverRouting.cleanupOnCancel().pipe((0,$e.ZZ)(()=>this.networkTestService.cleanupOnCancel()),(0,Qe.u)(void 0))),this.updateZoneName(),this.breakpointObserver.observe([B.Rp.Handset,B.Rp.Tablet]).pipe((0,r.Q)(this.destroy$)).subscribe(F=>{this.isHandset=F.matches}),this.setAnalysisState(this.autoRun&&this.progressState===xe.Progress)}initiateNetworkAnalysis(F=!1){return this.attemptLbr().pipe((0,$e.ZZ)(Oe=>(this.logger.info(`LBR was ${Oe?"":"not "}attempted.`),this.attemptNetworkTest(F))),(0,Ze.M)(Oe=>{this.logger.info(`Network Test was ${Oe?"":"not "}attempted.`)}))}attemptLbr(){return this.isWebRtcNetworkTestEnabled||this.autoRun&&!this.serverRouting.isLbrRequired?(0,Fe.of)(!1):(this.networkTestService.setLbrState(Ae.Started),this.networkTestService.getNetworkInfo().pipe((0,Ve.H)(F=>(0,c.isNil)(F)&&!m.zk.isBrowserPlatform()?(0,At.$)("Invalid Network Info"):(this.testData.networkInfo=F,this.progressState=xe.Progress,this.uiState=qe.NetworkTest,this.networkTestService.runLbrAndSaveOptimalZone(this.platform))),(0,a.s)(1),(0,nt.T)(F=>(this.logger.info("LBR attempt succeeded with fetched zone: ",F),!0)),(0,Ot.W)(F=>(this.logger.info("LBR attempt failed with: ",F),(0,Fe.of)("Invalid Network Info"!==F))),(0,Ze.M)(()=>{this.autoRun&&!this.networkTestService.isNetworkTestRequired&&this.networkTestService.sendMessage(ft.LBRAutoRunDone,{networkTestStatus:this.progressState,isLbrRun:this.serverRouting.isLbrRun})}),(0,at.j)(()=>this.networkTestService.setLbrState(Ae.Finished))))}attemptNetworkTest(F=!1){if(!this.autoRun||this.networkTestService.isNetworkTestRequired||F){this.networkTestService.setNetworkTestState(Ae.Started),this.showAdditionalActions=!1;const Oe=Date.now();return this.networkTestService.getNetworkInfo().pipe((0,Ve.H)(Ke=>(0,c.isNil)(Ke)&&!m.zk.isBrowserPlatform()?(0,At.$)("Invalid Network Info"):(this.testData.networkInfo=Ke,this.progressState=xe.Progress,this.uiState=qe.NetworkTest,(0,Le.O)(this.delayRetry).pipe(()=>this.networkTestService.startNetworkTest(this.platform)))),(0,a.s)(1),(0,$e.ZZ)(Ke=>{this.delayRetry=Ke.result===hn.NCT_R_CAPACITY_FULL?2*(this.delayRetry||this.appConfig.networkTest.delayFactorCapacityFull):0,this.logger.info(`Network Test Delay Retry Time: ${this.delayRetry}`),this.networkTestTelemetryStatus=bn.fbu.Success;const nn=this.populateNetworkTestResultData(Ke);return Ke.isSuccess&&this.populateNetworkConditions(),this.autoRun?this.showAutoNetworkTestResultsDialog(nn):this.focusManager.focusChild(this.element.nativeElement,"initial"),this.networkTestTelemetryService.sendTestDoneTelemetry({autoRun:this.autoRun,isWebRtcNetworkTest:this.isWebRtcNetworkTestEnabled,testData:this.testData,zoneOverride:this.zoneOverride,networkTestTelemetryStatus:this.networkTestTelemetryStatus,startTime:Oe},Ke).pipe((0,Qe.u)(!0))}),(0,Ot.W)(Ke=>(this.logger.info("Network Test failed, error code: ",Ke),this.networkTestTelemetryStatus=Ke.status?bn.fbu.HTTPError:bn.fbu.Other,this.showNetworkTestError({networkTestStatus:this.networkTestTelemetryStatus,errorDetails:(0,c.toString)(Ke&&Ke.status||Ke),errorCode:Ke.code}),this.networkTestTelemetryService.sendTestDoneTelemetry({autoRun:this.autoRun,isWebRtcNetworkTest:this.isWebRtcNetworkTestEnabled,testData:this.testData,zoneOverride:this.zoneOverride,networkTestTelemetryStatus:this.networkTestTelemetryStatus,startTime:Oe}).pipe((0,Qe.u)("Invalid Network Info"!==Ke)))),(0,at.j)(()=>this.networkTestService.setNetworkTestState(Ae.Finished)))}return(0,Fe.of)(!1)}updateZoneName(){this.logger.info("Subscribe to zone name: "),this.networkTestService.zoneName.pipe((0,r.Q)(this.destroy$)).subscribe(F=>{this.zoneName=F.name})}populateNetworkTestResultData(F){if(this.networkTestHeaderText="networkTest.networkTestResultsHeader",this.setAnalysisState(!1),F.isSuccess){if(this.testData.result=F,this.progressState=F.analysis.networkQuality,this.logger.info("Populate Network test result data, result status: ",xe[this.progressState]),(this.progressState!==xe.Excellent||this.testData.networkInfo.NetworkType===m.Sd.WiFi2_4||"1"===this.testData.networkInfo.IsVPN)&&(this.showAdditionalActions=!0),this.showTroubleshootTips=this.progressState===xe.Poor||this.progressState===xe.Bad||this.progressState===xe.Excellent&&(this.testData.networkInfo.NetworkType===m.Sd.WiFi2_4||"1"===this.testData.networkInfo.IsVPN),this.populateMaxDisplayTestData(F),this.autoRun){let Oe=this.progressState;return this.progressState===xe.Excellent&&(this.testData.networkInfo.NetworkType===m.Sd.WiFi2_4||"1"===this.testData.networkInfo.IsVPN)&&(Oe=xe.Poor,this.logger.info("Updating network test result status due to criteria: ",Oe)),this.networkTestService.sendMessage(ft.NetworkTestAutoRunDone,{networkTestStatus:Oe}),Oe}}else this.networkTestTelemetryStatus=bn.fbu.NetworkTestSdkError,this.showNetworkTestError({networkTestStatus:this.networkTestTelemetryStatus,errorDetails:F.errorDetails||(0,c.toString)(F.result),errorCode:F.result});return this.progressState}showAutoNetworkTestResultsDialog(F){if(this.logger.info("Network test result is: ",xe[this.progressState]),this.progressState!==xe.Excellent||this.progressState===xe.Excellent&&this.progressState!==F){this.logger.info("Network test results are not optimal; showing results dialog");const Ke={nvClientApp:bn.sKj.StreamingClient,networkTestHeaderText:this.networkTestHeaderText,progressState:this.progressState,uiState:this.uiState,autoRun:this.autoRun,showNetworkTest:this.showNetworkTest,testData:this.testData,maxDisplayState:this.maxDisplayState,isHandset:this.isHandset,isWebRtcNetworkTestEnabled:this.isWebRtcNetworkTestEnabled,showTroubleshootTips:this.showTroubleshootTips,networkConditionsData:this.networkConditionsData,zoneName:this.zoneName,networkTestErrorText:this.networkTestErrorText,showFirewallHelpLink:this.showFirewallHelpLink,firewallHelpUrl:this.firewallHelpUrl,firewallHelpShortUrl:this.firewallHelpShortUrl,firewallLinkText:this.firewallLinkText,showAdditionalActions:this.showAdditionalActions};this.streamerNTdialog=this.focusManager.restoreFocusAfterClosed(()=>this.matDialog.open(cn,{panelClass:["dialog-component-container","dark-hue4-background-dialog"],disableClose:!0,autoFocus:!1,enterAnimationDuration:"0ms",data:Ke})),this.streamerNTdialog.componentInstance.buttonClicked.pipe((0,r.Q)(this.destroy$)).subscribe(nn=>{switch(nn){case lt.Continue:this.onClickContinue();break;case lt.Close:this.onClickClose();break;case lt.TryAgain:this.onClickTryAgain()}})}}populateNetworkConditions(){this.networkConditionsData={isVpn:"1"===this.testData.networkInfo.IsVPN,zoneOverride:this.zoneOverride,bandwidth:this.testData.result.bandwidth.measured,latency:this.testData.result.latency.measured,networkType:this.testData.networkInfo.NetworkType},this.logger.info("Current network conditions: : ",this.networkConditionsData)}populateMaxDisplayTestData(F){(0,c.isNil)(F.capableProfile)||this.testData.networkInfo.NetworkType===m.Sd.WiFi2_4?this.maxDisplayState=null:this.streamingProfileService.getMaxDisplayTestData(this.autoRun).pipe((0,r.Q)(this.destroy$)).subscribe(Oe=>{this.maxDisplayState=(0,c.isNil)(Oe)?null:{width:Oe.width,height:Oe.height,frameRate:Oe.fps}})}showNetworkTestError(F){this.logger.info("Error in network test, errorDetails: ",F),this.uiState=qe.Error,F.errorCode===hn.NCT_R_BLOCK_STREAM?(this.networkTestErrorText="common.genericLoadError",this.showFirewallHelpLink=!0,this.redirectService.getRedirectUrl(It.r7.GfnPcNetHelpFirewall).pipe((0,a.s)(1),(0,r.Q)(this.destroy$)).subscribe(Oe=>{this.firewallHelpUrl=Oe,this.firewallHelpShortUrl=It.lp[It.r7.GfnPcNetHelpFirewall]}),this.firewallLinkText="networkTest.networkTestFirefallIssue",this.logger.info("Firewall URL: ",this.firewallHelpUrl)):(this.networkTestErrorText=F.networkTestStatus!==bn.fbu.ClientOffline?"networkTest.encounteredProblem":"common.connectionError",this.showFirewallHelpLink=!1),F?.networkTestStatus!==bn.fbu.ClientOffline?this.pluginsNotificationService.isPluginLoaded$(hi.NetworkTest).pipe((0,a.s)(1)).subscribe(Oe=>{Oe?this.networkTestService.sendMessage(ft.NetworkTestFailed,F):this.networkTestService.sendMessage(ft.NetworkTestFailedMissingPlugin)}):this.networkTestService.sendMessage(ft.NetworkTestFailed)}setAnalysisState(F){this.analyzerData={...this.analyzerData,isAnalysisDone:!F},this.logger.info("Is Network Test Analysis phase on: ",F," , Is analysis done: ",this.analyzerData?.isAnalysisDone)}onClickTryAgain(){this.networkTestHeaderText="networkTest.networkTestHeader",this.networkStatusService.onlineStatusChanged.pipe((0,Et.$)(),(0,$e.ZZ)(F=>F?(this.autoRun&&(this.streamerNTdialog?.close(),this.networkTestService.sendMessage(ft.NetworkTestAutoRunTryAgain),this.showNetworkTest=!0,this.setAnalysisState(!0)),this.initiateNetworkAnalysis(!0).pipe((0,Qe.u)(F))):(this.uiState=qe.Error,this.showNetworkTestError({networkTestStatus:bn.fbu.ClientOffline,errorDetails:bn.fbu.ClientOffline,errorCode:On.Success}),(0,Fe.of)(F)))).subscribe(F=>{this.logger.info(`Network analysis was ${F?"":"not "}started on Try Again.`)})}onClickClose(){this.dialogRef&&this.dialogRef.close(),this.autoRun&&(this.streamerNTdialog?.close(),this.networkTestService.sendMessage(ft.NetworkTestClosedOnError,{networkTestStatus:this.progressState}))}onClickContinue(){this.showNetworkTest=!1,this.dialogRef&&this.dialogRef.close(),this.autoRun&&this.streamerNTdialog?.close(),this.networkTestService.sendMessage(ft.NetworkTestClosed,{networkTestStatus:this.progressState})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.streamerNTdialog?.close(),this.serverRouting.cleanupOnCancel().pipe((0,$e.ZZ)(()=>this.networkTestService.cleanupOnCancel()),(0,a.s)(1)).subscribe(()=>{this.logger.info("destroying component: network analysis cleanup is done!"),this.shutdownHandler&&this.shutdownHandler.remove()})}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.rXU(m.J6),g.rXU(si),g.rXU(bn.jgD),g.rXU(Fo.u),g.rXU(It.Q5),g.rXU(R.lM),g.rXU(m.CF),g.rXU(to.x),g.rXU(ot.bo),g.rXU(dr),g.rXU(yo.Vk),g.rXU(B.QP),g.rXU(n.CP,8),g.rXU(n.bZ),g.rXU(g.aKT),g.rXU(M.c_),g.rXU(Fr.P))}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["gfn-network-test"]],inputs:{nvClientApp:"nvClientApp",networkTestResult:"networkTestResult",cmsId:"cmsId"},decls:2,vars:2,consts:[["fxFill","",3,"data",4,"ngIf"],["nvSpatialNavigationContainer","","nvCaptureRestoreFocus","","nvTrapFocus","","class","common-ui-network-container",3,"ngSwitch",4,"ngIf"],["fxFill","",3,"data"],["nvSpatialNavigationContainer","","nvCaptureRestoreFocus","","nvTrapFocus","",1,"common-ui-network-container",3,"ngSwitch"],[1,"common-ui-network-header",3,"ngClass"],[1,"network-test-content"],["fxLayout","column","fxLayoutAlign","center stretch",4,"ngSwitchCase"],["class","network-test-error-container",4,"ngSwitchCase"],["class","nv-button-class","fxLayout","row","fxLayoutAlign","end stretch",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center stretch"],["fxLayout","column",3,"progressState","nvTestData","maxDisplayState","isWebRtcNetworkTest"],["class","network-test-results",4,"ngIf"],[1,"network-test-results"],[3,"nvTestData","isHandset",4,"ngIf"],["ngClass","mat-tabs-font-button1","mat-stretch-tabs","false","nvMatTabGroupFixUp","",4,"ngIf"],[4,"ngIf"],[3,"nvTestData","isHandset"],["ngClass","mat-tabs-font-button1","mat-stretch-tabs","false","nvMatTabGroupFixUp",""],[3,"label"],[3,"networkConditionsData"],[1,"common-ui-network-title"],[1,"network-test-error-container"],[3,"close","tryAgain","continue","zoneName","networkTestErrorText","showFirewallHelpLink","firewallHelpUrl","firewallHelpShortUrl","firewallLinkText","nvClient"],["fxLayout","row","fxLayoutAlign","end stretch",1,"nv-button-class"],[3,"tryAgain","close","continue","placementCriteria"]],template:function(Oe,Ke){1&Oe&&g.DNE(0,Vn,1,1,"gfn-network-test-analyzer",0)(1,oo,9,8,"div",1),2&Oe&&(g.Y8G("ngIf",Ke.showNetworkTest&&Ke.autoRun),g.R7$(),g.Y8G("ngIf",Ke.showNetworkTest&&!Ke.autoRun))},styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.font-size-xxxs[_ngcontent-%COMP%]{font-size:8px}.font-size-xxs[_ngcontent-%COMP%]{font-size:11px}.font-size-sm[_ngcontent-%COMP%]{font-size:12px}.font-size-sm1[_ngcontent-%COMP%]{font-size:13px}.font-size-lg[_ngcontent-%COMP%]{font-size:14px}.font-size-xl[_ngcontent-%COMP%]{font-size:16px}.font-size-xl1[_ngcontent-%COMP%]{font-size:18px}.font-size-20[_ngcontent-%COMP%]{font-size:20px}.font-size-xxl[_ngcontent-%COMP%]{font-size:24px}.font-size-32[_ngcontent-%COMP%]{font-size:32px}.font-size-xxxl[_ngcontent-%COMP%]{font-size:40px}.line-height-sm[_ngcontent-%COMP%]{line-height:.75em}.line-height-sm1[_ngcontent-%COMP%]{line-height:1em}.line-height-14[_ngcontent-%COMP%]{line-height:14px}.line-height-12[_ngcontent-%COMP%]{line-height:12px}.line-height-16[_ngcontent-%COMP%]{line-height:16px}.line-height-md[_ngcontent-%COMP%]{line-height:1.5em}.line-height-lg[_ngcontent-%COMP%]{line-height:3em}.line-height-30[_ngcontent-%COMP%]{line-height:30px}.line-height-36[_ngcontent-%COMP%]{line-height:36px}.line-height-lg1[_ngcontent-%COMP%]{line-height:40px}.font-style-italic[_ngcontent-%COMP%]{font-style:italic}.font-style-bold[_ngcontent-%COMP%]{font-weight:700}.font-style-normal[_ngcontent-%COMP%]{font-weight:400}.font-uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.font-lowercase[_ngcontent-%COMP%]{text-transform:lowercase}.text-transform-none[_ngcontent-%COMP%]{text-transform:none}.common-ui-network-container[_ngcontent-%COMP%]{background-color:#1f2224;max-width:789px}.common-ui-network-header[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:0;height:24px}.isLtr[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900;vertical-align:middle;min-width:24px}.isLtr[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.result-text-container[_ngcontent-%COMP%]{margin-bottom:6px}.result-text[_ngcontent-%COMP%]{margin-top:1px}.nw-icon[_ngcontent-%COMP%]{height:24px;line-height:24px;width:auto;speak:none;font-size:48px;font-variant:normal;align-self:center;color:#fff;opacity:.9;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:22px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:22px}.icon-alert-bang[_ngcontent-%COMP%]{margin:0}.common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.common-ui-network-container[_ngcontent-%COMP%] .result-icon.error[_ngcontent-%COMP%]{color:#ed1c24}.warn[_ngcontent-%COMP%]{color:#ffb538}.error[_ngcontent-%COMP%]{color:#ed1c24}.common-ui-errorDetails[_ngcontent-%COMP%] .success[_ngcontent-%COMP%]{color:#76b900}.flex-1[_ngcontent-%COMP%]{flex:1}.nv-ui-assets[_ngcontent-%COMP%]{height:140px;margin-top:64px;display:flex;flex-direction:row;overflow:hidden;justify-content:center;align-items:baseline}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:79px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:79px}.nv-dot-icons[_ngcontent-%COMP%]{border-radius:50%;width:8px;height:8px;align-self:center;display:-webkit-inline-box;background:#ffffff73}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.animated[_ngcontent-%COMP%]{animation-duration:2s;animation-iteration-count:infinite;animation-fill-mode:both;animation-delay:1s}.caption[_ngcontent-%COMP%]{display:block;max-width:92px;width:12vw;text-align:center;margin-bottom:0}.caption.truncate-text[_ngcontent-%COMP%]{margin-top:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.common-ui-errorDetails[_ngcontent-%COMP%]{height:72px;display:flex;justify-content:center;margin:0 24px}.connect-error-details[_ngcontent-%COMP%]{display:flex}.common-ui-network-container[_ngcontent-%COMP%] .common-ui-resultDetails[_ngcontent-%COMP%]{height:24px;margin-bottom:30px;align-self:center;margin-top:22px}.common-ui-network-content[_ngcontent-%COMP%]{height:181px;background-color:#0000004d;overflow-y:auto}.common-ui-network-content[_ngcontent-%COMP%] .nv-button-class[_ngcontent-%COMP%]{height:84px;display:flex}.common-ui-network-content[_ngcontent-%COMP%] .override-warning-container[_ngcontent-%COMP%]{margin-top:5px;padding:0 24px;align-items:center}.common-ui-network-content[_ngcontent-%COMP%] span.icon-alert-circle_reg[_ngcontent-%COMP%]{font-size:11px}.common-ui-network-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:12px;margin-top:0}.div-table[_ngcontent-%COMP%]{display:table!important;width:101%;padding-top:24px;padding-bottom:24px;max-width:100%}.div-table-row[_ngcontent-%COMP%]{display:table-row;width:auto;clear:both;height:28px}.div-table-col[_ngcontent-%COMP%]{display:table-column;width:140px;text-align:center}.isLtr[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:right}.div-table-col-header[_ngcontent-%COMP%]{display:table-column;width:236px}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ffb538;width:177px}.yellowstyle[_ngcontent-%COMP%] .narrowstyle[_ngcontent-%COMP%]{width:26px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ed1c24;width:177px}.redstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ed1c24}.yellowstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.wifi_2_4_warn[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%] md-icon[_ngcontent-%COMP%]{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%]{display:table}.network-assets[_ngcontent-%COMP%]{display:flex}.error-details[_ngcontent-%COMP%]{display:flex;margin-top:24px}.isLtr[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.common-ui-error[_ngcontent-%COMP%]{width:480px}.redirect-page-div[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:center}.redirect-page-link[_ngcontent-%COMP%]{text-decoration:none}.vertical-gap-24[_ngcontent-%COMP%]{height:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-right:48px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-right:48px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-left:48px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-left:48px}.network-progress-fill[_ngcontent-%COMP%]{height:50px;background-color:#1f2224}.network-test-icons[_ngcontent-%COMP%]{display:block}.error-dlg-content[_ngcontent-%COMP%]{margin:24px;min-height:32px}.error-dlg-buttons[_ngcontent-%COMP%]{min-height:52px}.isLtr[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:right}html[dir=ltr][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isRtl[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:left}html[dir=rtl][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:left}button.error-dialog-button[_ngcontent-%COMP%]{margin:8px}.error-icon[_ngcontent-%COMP%]{font-size:32px!important}.isLtr[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.error-icon-error-dialog[_ngcontent-%COMP%]{font-size:32px;margin-top:20px;min-width:32px;line-height:5px}.isLtr[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 8px 23px 23px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 8px 23px 23px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 23px 23px 8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 23px 23px 8px}.active[_ngcontent-%COMP%]{background:#76b900;opacity:1;width:12px;height:12px;margin-bottom:-2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.normal[_ngcontent-%COMP%]{background:#ffffff73;width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.error-background-active-btn[_ngcontent-%COMP%]{background-color:#76b900}.custom-svg-icon[_ngcontent-%COMP%]{width:48px;height:auto}.network-isp-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.network-test-warning-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin-top:12px}.nv-dot-icons-container[_ngcontent-%COMP%]{margin-top:12px}@media (max-width: 960px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:60px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:60px}.network-test-results[_ngcontent-%COMP%]{min-width:80vw}.div-table-col-header[_ngcontent-%COMP%]{width:30%}.div-table-col[_ngcontent-%COMP%]{width:18%}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:120px}}@media (max-width: 790px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:48px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:48px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:80px}}@media (max-width: 690px){.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:60px}}@media screen and (max-width: 834px) and (max-height: 1194px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:36px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:36px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:87px}.nv-dot-icons[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.active[_ngcontent-%COMP%]{width:10px;height:10px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.normal[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.div-table-col-header[_ngcontent-%COMP%]{width:160px}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape),(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{display:block;max-height:65vh;overflow-y:auto;overflow-x:unset}.common-ui-network-container[_ngcontent-%COMP%]{margin:0;overflow:unset}.common-ui-network-header[_ngcontent-%COMP%]{margin:0}.common-ui-network-title[_ngcontent-%COMP%]{--font-header-font-size: 14px;--font-header-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--font-header-font-size: 28px;--font-header-line-height: 40px}.isLtr[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.common-ui-network-content[_ngcontent-%COMP%]{height:unset;background-color:unset}.nv-ui-assets[_ngcontent-%COMP%]{height:100px;line-height:0;margin-top:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.network-test-icons[_ngcontent-%COMP%]{text-align:center;height:16px;margin-top:0}.network-isp-icons[_ngcontent-%COMP%]{align-items:center}.nv-dot-icons[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.active[_ngcontent-%COMP%]{width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.normal[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.custom-svg-icon[_ngcontent-%COMP%]{width:24px;min-height:25px}.caption[_ngcontent-%COMP%]{margin:0 auto;align-self:center}.common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;display:flex;justify-content:center}.isLtr[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.isRtl[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.network-test-error-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-sizing:border-box;justify-content:center;align-items:stretch;max-width:100%}.icon-alert-bang[_ngcontent-%COMP%]{font-size:36px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:57px}.result-text[_ngcontent-%COMP%]{margin-top:0}.network-test-results[_ngcontent-%COMP%]{background-color:#0000004d;padding-top:16px}.mat-mdc-tab-group[_ngcontent-%COMP%]{background-color:#0000004d}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.div-table-row[_ngcontent-%COMP%]{justify-content:space-between;max-width:240px}}@media (max-width: 959.98px) and (orientation: landscape),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{max-height:60vh}.network-test-results[_ngcontent-%COMP%]{max-width:536px;min-width:0}.common-ui-network-container[_ngcontent-%COMP%]{width:536px;max-height:80vh}}@media (max-width: 599.98px) and (orientation: portrait){.common-ui-network-container[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}}@media screen and (max-width: 320px) and (max-height: 568px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.active[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:1px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:1px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:40px}.result-text[_ngcontent-%COMP%]{width:70%}}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%]{width:960px;max-width:960px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{height:unset;margin-top:24px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:0}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%]{height:277px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%]{height:auto}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{width:320px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{width:180px}.tv-view[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{height:20vh}.tv-view[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}.tv-view[_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%]{margin:16px}.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{font-size:40px;width:40px;height:40px}.isLtr.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-right:20px}html[dir=ltr] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:20px}.isRtl.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:20px}"]})}}return it})(),fo=(()=>{class it{constructor(F){this.networkTestDialogData=F}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.rXU(n.Vh))}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["gfn-network-test-dialog"]],decls:2,vars:2,consts:[["fxFill",""],["nvBackToCloseModal","","fxFill","",3,"nvClientApp","networkTestResult"]],template:function(Oe,Ke){1&Oe&&(g.j41(0,"div",0),g.nrm(1,"gfn-network-test",1),g.k0s()),2&Oe&&(g.R7$(),g.Y8G("nvClientApp",Ke.networkTestDialogData.nvClientApp)("networkTestResult",Ke.networkTestDialogData.networkTestResult))},encapsulation:2})}}return it})();var Xr=s(892);const Go=()=>[],Ss=(it,Ln)=>({resolution:it,fps:Ln});function kr(it,Ln){if(1&it&&(g.qex(0),g.nrm(1,"div",14),g.bVm()),2&it){const F=Ln.index,Oe=g.XpG(2);g.R7$(),g.Y8G("ngClass",Oe.progressCount===F?"active":"normal")}}function pa(it,Ln){if(1&it&&(g.j41(0,"div",12),g.DNE(1,kr,2,1,"ng-container",13),g.k0s()),2&it){const F=g.XpG();g.R7$(),g.Y8G("ngForOf",g.lJ4(1,Go).constructor(F.dotCount))}}function ka(it,Ln){if(1&it&&g.nrm(0,"gfn-network-test-warning",15),2&it){const F=g.XpG();g.Y8G("warningInfo",F.displayData.warningInfo)}}function Xs(it,Ln){if(1&it&&(g.j41(0,"div",3),g.nrm(1,"mat-icon",4),g.j41(2,"p",5),g.EFF(3),g.nI1(4,"translate"),g.k0s()()),2&it){const F=g.XpG(2);g.R7$(),g.Y8G("svgIcon",null==F.displayData||null==F.displayData.networkTypeDisplayData?null:F.displayData.networkTypeDisplayData.icon),g.R7$(2),g.JRh(g.bMT(4,2,null==F.displayData||null==F.displayData.networkTypeDisplayData?null:F.displayData.networkTypeDisplayData.text))}}function ys(it,Ln){if(1&it&&(g.j41(0,"div",3),g.nrm(1,"mat-icon",4),g.j41(2,"p",5),g.EFF(3),g.nI1(4,"translate"),g.k0s(),g.j41(5,"p",9),g.EFF(6),g.nI1(7,"translate"),g.k0s()()),2&it){const F=g.XpG(2);g.R7$(),g.Y8G("svgIcon",null==F.displayData||null==F.displayData.networkTypeDisplayData?null:F.displayData.networkTypeDisplayData.icon),g.R7$(2),g.JRh(g.bMT(4,3,null==F.nvTestData||null==F.nvTestData.networkInfo?null:F.nvTestData.networkInfo.NetworkName)),g.R7$(3),g.JRh(g.bMT(7,5,F.displayData.wifiRouterVersion))}}function ma(it,Ln){1&it&&(g.j41(0,"div",3),g.nrm(1,"mat-icon",19),g.j41(2,"p",5),g.EFF(3),g.nI1(4,"translate"),g.k0s()()),2&it&&(g.R7$(3),g.JRh(g.bMT(4,1,"networkTest.genericNetworkName")))}function fs(it,Ln){if(1&it&&(g.qex(0),g.nrm(1,"div",14),g.bVm()),2&it){const F=Ln.index,Oe=g.XpG(2);g.R7$(),g.Y8G("ngClass",Oe.progressCount===Oe.dotCount+F?"active":"normal")}}function Oa(it,Ln){if(1&it&&(g.qex(0),g.nrm(1,"div",14),g.bVm()),2&it){const F=Ln.index,Oe=g.XpG(2);g.R7$(),g.Y8G("ngClass",Oe.progressCount===2*Oe.dotCount+F?"active":"normal")}}function Ms(it,Ln){if(1&it&&(g.j41(0,"div",16),g.DNE(1,Xs,5,4,"div",17)(2,ys,8,7,"div",17)(3,ma,5,3,"div",17),g.j41(4,"div",12),g.DNE(5,fs,2,1,"ng-container",13),g.k0s(),g.j41(6,"div",3),g.nrm(7,"mat-icon",18),g.j41(8,"p",9),g.EFF(9),g.nI1(10,"translate"),g.k0s()(),g.j41(11,"div",12),g.DNE(12,Oa,2,1,"ng-container",13),g.k0s()()),2&it){const F=g.XpG();g.R7$(),g.Y8G("ngIf",!F.isWebRtcNetworkTest&&!F.displayToggles.hasNetworkName),g.R7$(),g.Y8G("ngIf",!F.isWebRtcNetworkTest&&F.displayToggles.hasNetworkName),g.R7$(),g.Y8G("ngIf",F.isWebRtcNetworkTest),g.R7$(2),g.Y8G("ngForOf",g.lJ4(8,Go).constructor(F.dotCount)),g.R7$(4),g.JRh(g.bMT(10,6,"networkTest.networkTestIsp")),g.R7$(3),g.Y8G("ngForOf",g.lJ4(9,Go).constructor(F.dotCount))}}function Ua(it,Ln){1&it&&g.nrm(0,"mat-icon",27)}function Zs(it,Ln){if(1&it&&g.nrm(0,"mat-icon",28),2&it){const F=g.XpG(2);g.Y8G("ngClass",F.resultIconClass)}}function qo(it,Ln){if(1&it&&(g.j41(0,"div",29)(1,"span",30),g.EFF(2),g.nI1(3,"translate"),g.k0s()()),2&it){const F=g.XpG(2);g.R7$(2),g.JRh(g.i5U(3,1,"networkTest.networkTestSupports",g.l_i(4,Ss,F.displayData.resolution,F.displayData.fps)))}}function js(it,Ln){if(1&it&&(g.j41(0,"div",20)(1,"div",21)(2,"div",22)(3,"div",23),g.DNE(4,Ua,1,0,"mat-icon",24)(5,Zs,1,1,"ng-template",null,1,g.C5r),g.j41(7,"div",25),g.EFF(8),g.nI1(9,"translate"),g.k0s()()(),g.DNE(10,qo,4,7,"div",26),g.k0s()()),2&it){const F=g.sdS(6),Oe=g.XpG();g.R7$(4),g.Y8G("ngIf",Oe.displayToggles.showSuccessIcons)("ngIfElse",F),g.R7$(4),g.JRh(g.bMT(9,4,Oe.displayData.resultText)),g.R7$(2),g.Y8G("ngIf",Oe.displayToggles.showBestResolutionText)}}let Ia=(()=>{class it{constructor(F,Oe,Ke,nn,Nn){this.breakpointObserver=Ke,this.networkTestService=nn,this.systemInfoService=Nn,this.displayData={},this.displayToggles={},this.isWarningNetworkTest=!1,this.progressCount=-1,this.dotCount=3,this.destroy$=new _.B7,this.breakpointDimension=["(max-width: 412px)"],this.logger=Oe.getLogger("libraries/network-test/NetworkTestComponent"),this.mobileMode=!!F?.featureEnablement?.mobileMode}ngOnInit(){this.displayData.wifiRouterVersion=fi[this.nvTestData?.networkInfo?.NetworkType]||"",this.displayData.header="networkTest.networkTestHeader",this.displayData.zoneName=this.nvTestData?.result?.zone?.name,this.displayData.networkTypeDisplayData=Wt[this.nvTestData?.networkInfo?.NetworkType]||Ht,this.displayToggles.hasNetworkName=!(0,c.isEmpty)(this.nvTestData?.networkInfo?.NetworkName)||!(0,c.isEmpty)(this.displayData.wifiRouterVersion),this.systemInfoService.getSystemInfo([m.Lu.DeviceType]).pipe((0,a.s)(1),(0,nt.T)(F=>ke[F?.DeviceType]||yt),(0,Ot.W)(F=>(this.logger.error("Error getting device type: ",F),(0,Fe.of)(yt))),(0,r.Q)(this.destroy$)).subscribe(F=>{this.displayData.deviceTypeDisplayData=F}),this.breakpointObserver.observe(this.breakpointDimension).pipe((0,r.Q)(this.destroy$)).subscribe(F=>{this.dotCount=F.matches?2:3})}ngOnChanges(){this.logger.info("Network test status changed: ",xe[this.progressState]),(0,c.isNil)(this.progressState)||this.progressState===xe.Progress?this.progressState===xe.Progress&&this.resetProgressState():(this.stopProgressAnimation(),this.updateResultIconClass(this.progressState),this.displayToggles.showResults=!0,this.displayToggles.isVPNConnection="1"===this.nvTestData?.networkInfo?.IsVPN,this.setResultStates(this.progressState),this.setMaxDisplayState(this.maxDisplayState)),this.displayToggles.showDotIcons=this.progressState===xe.Progress||this.displayToggles.isExcellentResult&&this.displayData.warningInfo!==xe.PoorWifi_2_4}updateZoneName(){this.logger.info("Subscribe to zone name: "),this.zoneNameSub&&(this.zoneNameSub.unsubscribe(),this.zoneNameSub=null),this.zoneNameSub=this.networkTestService.zoneName.subscribe(F=>{this.displayData.zoneName=F.name})}updateResultIconClass(F){this.progressState=F,this.resultIconClass=this.progressState===xe.Bad?"error":this.progressState===xe.Poor||this.nvTestData?.networkInfo?.NetworkType===m.Sd.WiFi2_4||"1"===this.nvTestData?.networkInfo?.IsVPN?"warn":"success"}resetProgressState(){this.startProgressAnimation(),this.updateZoneName(),this.displayData.wifiRouterVersion=fi[this.nvTestData?.networkInfo?.NetworkType]||"",this.displayData.header="networkTest.networkTestHeader",this.resetEthernetState(),this.isWarningNetworkTest=!1}resetEthernetState(){this.nvTestData&&this.nvTestData.networkInfo&&(this.displayToggles={hasNetworkName:!(0,c.isEmpty)(this.nvTestData?.networkInfo?.NetworkName)||!(0,c.isEmpty)(this.displayData.wifiRouterVersion)})}startProgressAnimation(){(0,c.isNil)(this.animationSub)&&(this.animationSub=(0,Xr.Y)(180).pipe((0,Ze.M)(()=>{this.progressCount=this.progressCount+1,this.progressCount=this.progressCount%(3*this.dotCount)})).subscribe())}stopProgressAnimation(){this.animationSub&&(this.animationSub.unsubscribe(),this.animationSub=null,this.progressCount=-1)}setResultStates(F){switch(this.displayData.header="networkTest.networkTestResultsHeader",F){case xe.Excellent:this.displayData.resultText=this.displayToggles.isVPNConnection||this.nvTestData?.networkInfo?.NetworkType===m.Sd.WiFi2_4?"networkTest.networkTestPoorWifiMsg":"networkTest.networkTestSuccessMsg",this.displayToggles.isExcellentResult=!0;break;case xe.Poor:this.isWarningNetworkTest=!0,this.displayData.warningInfo=xe.Poor,this.displayData.resultText="networkTest.networkTestPoorWifiMsg";break;case xe.Bad:this.isWarningNetworkTest=!0,this.displayData.warningInfo=xe.Bad,this.displayData.resultText="networkTest.networkTestBadWifiMsg"}this.displayToggles.showSuccessIcons=this.displayToggles.isExcellentResult&&!this.displayToggles.isVPNConnection&&this.nvTestData?.networkInfo?.NetworkType!==m.Sd.WiFi2_4}setMaxDisplayState(F){this.displayToggles.showBestResolutionText=!this.isWebRtcNetworkTest&&!(0,c.isNil)(F),(0,c.isNil)(F)||(this.displayData.resolution=`\u2066${F.width} x ${F.height}\u2069`,this.displayData.fps=F.frameRate)}ngOnDestroy(){this.zoneNameSub&&(this.zoneNameSub.unsubscribe(),this.zoneNameSub=null),this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.rXU(yo.Vk),g.rXU(m.J6),g.rXU(B.QP),g.rXU(si),g.rXU(m.zW))}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["gfn-network-icons"]],inputs:{progressState:"progressState",nvTestData:"nvTestData",maxDisplayState:"maxDisplayState",isWebRtcNetworkTest:"isWebRtcNetworkTest"},features:[g.OA$],decls:20,vars:14,consts:[["isWarningView",""],["isWarningIconView",""],[1,"nv-ui-assets"],[1,"network-test-icons"],[1,"nw-icon","custom-svg-icon",3,"svgIcon"],[1,"caption","font-body3"],["class","nv-dot-icons-container",4,"ngIf","ngIfElse"],["class","network-isp-icons",4,"ngIf"],["svgIcon","storage",1,"nw-icon","custom-svg-icon"],[1,"caption","truncate-text","font-body3"],[1,"common-ui-errorDetails"],["fxLayout","row","fxLayoutAlign","center start",4,"ngIf"],[1,"nv-dot-icons-container"],[4,"ngFor","ngForOf"],[1,"nv-dot-icons","animated",3,"ngClass"],[3,"warningInfo"],[1,"network-isp-icons"],["class","network-test-icons",4,"ngIf"],["svgIcon","isp",1,"nw-icon","custom-svg-icon"],["svgIcon","network_signal",1,"nw-icon","custom-svg-icon"],["fxLayout","row","fxLayoutAlign","center start"],["fxLayout","column","fxLayoutAlign","start center"],[1,"result-text-container"],["fxFlex","","fxLayout","row","fxLayoutAlign","center start",1,"font-sub1"],["class","nv-custom-icons nw-icon-small result-icon success icon-optimized_reg","mat-font-set","material-icons",4,"ngIf","ngIfElse"],[1,"result-text"],["class","result-resolution-container",4,"ngIf"],["mat-font-set","material-icons",1,"nv-custom-icons","nw-icon-small","result-icon","success","icon-optimized_reg"],["mat-font-set","material-icons",1,"nv-custom-icons","nw-icon-small","result-icon","icon-alert-circle_reg",3,"ngClass"],[1,"result-resolution-container"],[1,"font-body3"]],template:function(Oe,Ke){if(1&Oe&&(g.j41(0,"div",2)(1,"div",3),g.nrm(2,"mat-icon",4),g.j41(3,"p",5),g.EFF(4),g.nI1(5,"translate"),g.k0s()(),g.DNE(6,pa,2,2,"div",6)(7,ka,1,1,"ng-template",null,0,g.C5r)(9,Ms,13,10,"div",7),g.j41(10,"div",3),g.nrm(11,"mat-icon",8),g.j41(12,"p",5),g.EFF(13),g.nI1(14,"translate"),g.k0s(),g.j41(15,"p",9),g.EFF(16),g.nI1(17,"translate"),g.k0s()()(),g.j41(18,"div",10),g.DNE(19,js,11,6,"div",11),g.k0s()),2&Oe){const nn=g.sdS(8);g.R7$(2),g.Y8G("svgIcon",null==Ke.displayData||null==Ke.displayData.deviceTypeDisplayData?null:Ke.displayData.deviceTypeDisplayData.icon),g.R7$(2),g.JRh(g.bMT(5,8,null==Ke.displayData||null==Ke.displayData.deviceTypeDisplayData?null:Ke.displayData.deviceTypeDisplayData.text)),g.R7$(2),g.Y8G("ngIf",Ke.displayToggles.showDotIcons)("ngIfElse",nn),g.R7$(3),g.Y8G("ngIf",!Ke.isWarningNetworkTest),g.R7$(4),g.JRh(g.bMT(14,10,"common.gfn")),g.R7$(3),g.JRh(g.bMT(17,12,Ke.displayData.zoneName)),g.R7$(3),g.Y8G("ngIf",Ke.displayToggles.showResults)}},styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.font-size-xxxs[_ngcontent-%COMP%]{font-size:8px}.font-size-xxs[_ngcontent-%COMP%]{font-size:11px}.font-size-sm[_ngcontent-%COMP%]{font-size:12px}.font-size-sm1[_ngcontent-%COMP%]{font-size:13px}.font-size-lg[_ngcontent-%COMP%]{font-size:14px}.font-size-xl[_ngcontent-%COMP%]{font-size:16px}.font-size-xl1[_ngcontent-%COMP%]{font-size:18px}.font-size-20[_ngcontent-%COMP%]{font-size:20px}.font-size-xxl[_ngcontent-%COMP%]{font-size:24px}.font-size-32[_ngcontent-%COMP%]{font-size:32px}.font-size-xxxl[_ngcontent-%COMP%]{font-size:40px}.line-height-sm[_ngcontent-%COMP%]{line-height:.75em}.line-height-sm1[_ngcontent-%COMP%]{line-height:1em}.line-height-14[_ngcontent-%COMP%]{line-height:14px}.line-height-12[_ngcontent-%COMP%]{line-height:12px}.line-height-16[_ngcontent-%COMP%]{line-height:16px}.line-height-md[_ngcontent-%COMP%]{line-height:1.5em}.line-height-lg[_ngcontent-%COMP%]{line-height:3em}.line-height-30[_ngcontent-%COMP%]{line-height:30px}.line-height-36[_ngcontent-%COMP%]{line-height:36px}.line-height-lg1[_ngcontent-%COMP%]{line-height:40px}.font-style-italic[_ngcontent-%COMP%]{font-style:italic}.font-style-bold[_ngcontent-%COMP%]{font-weight:700}.font-style-normal[_ngcontent-%COMP%]{font-weight:400}.font-uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.font-lowercase[_ngcontent-%COMP%]{text-transform:lowercase}.text-transform-none[_ngcontent-%COMP%]{text-transform:none}.common-ui-network-container[_ngcontent-%COMP%]{background-color:#1f2224;max-width:789px}.common-ui-network-header[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:0;height:24px}.isLtr[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900;vertical-align:middle;min-width:24px}.isLtr[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.result-text-container[_ngcontent-%COMP%]{margin-bottom:6px}.result-text[_ngcontent-%COMP%]{margin-top:1px}.nw-icon[_ngcontent-%COMP%]{height:24px;line-height:24px;width:auto;speak:none;font-size:48px;font-variant:normal;align-self:center;color:#fff;opacity:.9;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:22px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:22px}.icon-alert-bang[_ngcontent-%COMP%]{margin:0}.common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.common-ui-network-container[_ngcontent-%COMP%] .result-icon.error[_ngcontent-%COMP%]{color:#ed1c24}.warn[_ngcontent-%COMP%]{color:#ffb538}.error[_ngcontent-%COMP%]{color:#ed1c24}.common-ui-errorDetails[_ngcontent-%COMP%] .success[_ngcontent-%COMP%]{color:#76b900}.flex-1[_ngcontent-%COMP%]{flex:1}.nv-ui-assets[_ngcontent-%COMP%]{height:140px;margin-top:64px;display:flex;flex-direction:row;overflow:hidden;justify-content:center;align-items:baseline}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:79px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:79px}.nv-dot-icons[_ngcontent-%COMP%]{border-radius:50%;width:8px;height:8px;align-self:center;display:-webkit-inline-box;background:#ffffff73}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.animated[_ngcontent-%COMP%]{animation-duration:2s;animation-iteration-count:infinite;animation-fill-mode:both;animation-delay:1s}.caption[_ngcontent-%COMP%]{display:block;max-width:92px;width:12vw;text-align:center;margin-bottom:0}.caption.truncate-text[_ngcontent-%COMP%]{margin-top:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.common-ui-errorDetails[_ngcontent-%COMP%]{height:72px;display:flex;justify-content:center;margin:0 24px}.connect-error-details[_ngcontent-%COMP%]{display:flex}.common-ui-network-container[_ngcontent-%COMP%] .common-ui-resultDetails[_ngcontent-%COMP%]{height:24px;margin-bottom:30px;align-self:center;margin-top:22px}.common-ui-network-content[_ngcontent-%COMP%]{height:181px;background-color:#0000004d;overflow-y:auto}.common-ui-network-content[_ngcontent-%COMP%] .nv-button-class[_ngcontent-%COMP%]{height:84px;display:flex}.common-ui-network-content[_ngcontent-%COMP%] .override-warning-container[_ngcontent-%COMP%]{margin-top:5px;padding:0 24px;align-items:center}.common-ui-network-content[_ngcontent-%COMP%] span.icon-alert-circle_reg[_ngcontent-%COMP%]{font-size:11px}.common-ui-network-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:12px;margin-top:0}.div-table[_ngcontent-%COMP%]{display:table!important;width:101%;padding-top:24px;padding-bottom:24px;max-width:100%}.div-table-row[_ngcontent-%COMP%]{display:table-row;width:auto;clear:both;height:28px}.div-table-col[_ngcontent-%COMP%]{display:table-column;width:140px;text-align:center}.isLtr[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:right}.div-table-col-header[_ngcontent-%COMP%]{display:table-column;width:236px}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ffb538;width:177px}.yellowstyle[_ngcontent-%COMP%] .narrowstyle[_ngcontent-%COMP%]{width:26px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ed1c24;width:177px}.redstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ed1c24}.yellowstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.wifi_2_4_warn[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%] md-icon[_ngcontent-%COMP%]{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%]{display:table}.network-assets[_ngcontent-%COMP%]{display:flex}.error-details[_ngcontent-%COMP%]{display:flex;margin-top:24px}.isLtr[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.common-ui-error[_ngcontent-%COMP%]{width:480px}.redirect-page-div[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:center}.redirect-page-link[_ngcontent-%COMP%]{text-decoration:none}.vertical-gap-24[_ngcontent-%COMP%]{height:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-right:48px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-right:48px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-left:48px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-left:48px}.network-progress-fill[_ngcontent-%COMP%]{height:50px;background-color:#1f2224}.network-test-icons[_ngcontent-%COMP%]{display:block}.error-dlg-content[_ngcontent-%COMP%]{margin:24px;min-height:32px}.error-dlg-buttons[_ngcontent-%COMP%]{min-height:52px}.isLtr[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:right}html[dir=ltr][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isRtl[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:left}html[dir=rtl][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:left}button.error-dialog-button[_ngcontent-%COMP%]{margin:8px}.error-icon[_ngcontent-%COMP%]{font-size:32px!important}.isLtr[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.error-icon-error-dialog[_ngcontent-%COMP%]{font-size:32px;margin-top:20px;min-width:32px;line-height:5px}.isLtr[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 8px 23px 23px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 8px 23px 23px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 23px 23px 8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 23px 23px 8px}.active[_ngcontent-%COMP%]{background:#76b900;opacity:1;width:12px;height:12px;margin-bottom:-2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.normal[_ngcontent-%COMP%]{background:#ffffff73;width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.error-background-active-btn[_ngcontent-%COMP%]{background-color:#76b900}.custom-svg-icon[_ngcontent-%COMP%]{width:48px;height:auto}.network-isp-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.network-test-warning-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin-top:12px}.nv-dot-icons-container[_ngcontent-%COMP%]{margin-top:12px}@media (max-width: 960px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:60px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:60px}.network-test-results[_ngcontent-%COMP%]{min-width:80vw}.div-table-col-header[_ngcontent-%COMP%]{width:30%}.div-table-col[_ngcontent-%COMP%]{width:18%}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:120px}}@media (max-width: 790px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:48px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:48px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:80px}}@media (max-width: 690px){.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:60px}}@media screen and (max-width: 834px) and (max-height: 1194px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:36px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:36px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:87px}.nv-dot-icons[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.active[_ngcontent-%COMP%]{width:10px;height:10px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.normal[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.div-table-col-header[_ngcontent-%COMP%]{width:160px}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape),(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{display:block;max-height:65vh;overflow-y:auto;overflow-x:unset}.common-ui-network-container[_ngcontent-%COMP%]{margin:0;overflow:unset}.common-ui-network-header[_ngcontent-%COMP%]{margin:0}.common-ui-network-title[_ngcontent-%COMP%]{--font-header-font-size: 14px;--font-header-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--font-header-font-size: 28px;--font-header-line-height: 40px}.isLtr[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.common-ui-network-content[_ngcontent-%COMP%]{height:unset;background-color:unset}.nv-ui-assets[_ngcontent-%COMP%]{height:100px;line-height:0;margin-top:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.network-test-icons[_ngcontent-%COMP%]{text-align:center;height:16px;margin-top:0}.network-isp-icons[_ngcontent-%COMP%]{align-items:center}.nv-dot-icons[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.active[_ngcontent-%COMP%]{width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.normal[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.custom-svg-icon[_ngcontent-%COMP%]{width:24px;min-height:25px}.caption[_ngcontent-%COMP%]{margin:0 auto;align-self:center}.common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;display:flex;justify-content:center}.isLtr[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.isRtl[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.network-test-error-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-sizing:border-box;justify-content:center;align-items:stretch;max-width:100%}.icon-alert-bang[_ngcontent-%COMP%]{font-size:36px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:57px}.result-text[_ngcontent-%COMP%]{margin-top:0}.network-test-results[_ngcontent-%COMP%]{background-color:#0000004d;padding-top:16px}.mat-mdc-tab-group[_ngcontent-%COMP%]{background-color:#0000004d}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.div-table-row[_ngcontent-%COMP%]{justify-content:space-between;max-width:240px}}@media (max-width: 959.98px) and (orientation: landscape),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{max-height:60vh}.network-test-results[_ngcontent-%COMP%]{max-width:536px;min-width:0}.common-ui-network-container[_ngcontent-%COMP%]{width:536px;max-height:80vh}}@media (max-width: 599.98px) and (orientation: portrait){.common-ui-network-container[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}}@media screen and (max-width: 320px) and (max-height: 568px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.active[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:1px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:1px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:40px}.result-text[_ngcontent-%COMP%]{width:70%}}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%]{width:960px;max-width:960px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{height:unset;margin-top:24px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:0}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%]{height:277px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%]{height:auto}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{width:320px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{width:180px}.tv-view[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{height:20vh}.tv-view[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}.tv-view[_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%]{margin:16px}.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{font-size:40px;width:40px;height:40px}.isLtr.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-right:20px}html[dir=ltr] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:20px}.isRtl.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:20px}"]})}}return it})();function Ds(it,Ln){1&it&&(g.j41(0,"div",3),g.nrm(1,"mat-icon",21),g.j41(2,"p",5),g.EFF(3),g.nI1(4,"translate"),g.k0s()()),2&it&&(g.R7$(3),g.JRh(g.bMT(4,1,"networkTest.networkTestMyComputer")))}function Js(it,Ln){1&it&&(g.j41(0,"div",3),g.nrm(1,"mat-icon",22),g.j41(2,"p",5),g.EFF(3),g.nI1(4,"translate"),g.k0s()()),2&it&&(g.R7$(3),g.JRh(g.bMT(4,1,"networkTest.myDevice")))}function fa(it,Ln){1&it&&g.nrm(0,"gfn-server-status-link",23)}function Ga(it,Ln){if(1&it&&g.nrm(0,"a",24),2&it){const F=g.XpG();g.FS9("translate",F.firewallLinkText),g.Y8G("href",F.firewallHelpUrl,g.B4B)("shortUrl",F.firewallHelpShortUrl)}}function cs(it,Ln){1&it&&(g.j41(0,"span"),g.EFF(1),g.nI1(2,"translate"),g.k0s()),2&it&&(g.R7$(),g.JRh(g.bMT(2,1,"common.quit")))}function $s(it,Ln){1&it&&(g.j41(0,"span"),g.EFF(1),g.nI1(2,"translate"),g.k0s()),2&it&&(g.R7$(),g.JRh(g.bMT(2,1,"common.close")))}let Vo=(()=>{class it{constructor(F){this.showFirewallHelpLink=!1,this.nvClient=bn.sKj.MallClient,this.tryAgain=new g.bkB,this.close=new g.bkB,this.continue=new g.bkB,this.networkTestStates=xe,this.mobileMode=!!F?.featureEnablement?.mobileMode}ngOnInit(){this.autoRun=this.nvClient===bn.sKj.StreamingClient}onClickClose(){this.close.emit()}onClickTryAgain(){this.tryAgain.emit()}onClickContinue(){this.continue.emit()}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.rXU(yo.Vk))}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["gfn-network-test-error"]],inputs:{networkTestErrorText:"networkTestErrorText",zoneName:"zoneName",showFirewallHelpLink:"showFirewallHelpLink",firewallHelpUrl:"firewallHelpUrl",firewallHelpShortUrl:"firewallHelpShortUrl",firewallLinkText:"firewallLinkText",nvClient:"nvClient"},outputs:{tryAgain:"tryAgain",close:"close",continue:"continue"},decls:31,vars:19,consts:[[1,"nv-ui-assets"],["class","network-test-icons",4,"ngIf"],[3,"warningInfo"],[1,"network-test-icons"],["svgIcon","storage",1,"nw-icon","custom-svg-icon"],[1,"caption","font-body3"],[1,"caption","zone","font-body3"],[1,"common-ui-errorDetails"],["fxLayout","row","fxLayoutAlign","center start"],["fxLayout","column","fxLayoutAlign","start center"],[1,"result-text-container"],["fxFlex","","fxLayout","row","fxLayoutAlign","center start",1,"font-sub1"],["mat-font-set","nv-custom-icon",1,"nv-custom-icons","nw-icon-small","result-icon","icon-alert-circle_reg","error"],["fxFlex","","fxLayout","column","fxLayoutAlign","start start"],[1,"result-text"],["class","error-url",4,"ngIf"],["class","font-body2-link",3,"href","shortUrl","translate",4,"ngIf"],[1,"nv-button-class","error-dlg-buttons"],["mat-button","",1,"error-dialog-button","font-button2",3,"click"],["mat-button","","cdkFocusInitial","",1,"error-dialog-button","font-button2","error-background-active-btn",3,"click"],[4,"ngIf"],["svgIcon","desktop_mac",1,"nw-icon","custom-svg-icon"],["svgIcon","devices",1,"nw-icon","custom-svg-icon"],[1,"error-url"],[1,"font-body2-link",3,"href","shortUrl","translate"]],template:function(Oe,Ke){1&Oe&&(g.j41(0,"div",0),g.DNE(1,Ds,5,3,"div",1)(2,Js,5,3,"div",1),g.nrm(3,"gfn-network-test-warning",2),g.j41(4,"div",3),g.nrm(5,"mat-icon",4),g.j41(6,"p",5),g.EFF(7),g.nI1(8,"translate"),g.k0s(),g.j41(9,"p",6),g.EFF(10),g.nI1(11,"translate"),g.k0s()()(),g.j41(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"div",11),g.nrm(17,"mat-icon",12),g.j41(18,"div",13)(19,"div",14),g.EFF(20),g.nI1(21,"translate"),g.k0s(),g.DNE(22,fa,1,0,"gfn-server-status-link",15)(23,Ga,1,3,"a",16),g.k0s()()()()()(),g.j41(24,"div",17)(25,"button",18),g.bIt("click",function(){return Ke.onClickTryAgain()}),g.EFF(26),g.nI1(27,"translate"),g.k0s(),g.j41(28,"button",19),g.bIt("click",function(){return Ke.onClickClose()}),g.DNE(29,cs,3,3,"span",20)(30,$s,3,3,"span",20),g.k0s()()),2&Oe&&(g.R7$(),g.Y8G("ngIf",!Ke.mobileMode),g.R7$(),g.Y8G("ngIf",Ke.mobileMode),g.R7$(),g.Y8G("warningInfo",Ke.networkTestStates.Bad),g.R7$(4),g.JRh(g.bMT(8,11,"common.gfn")),g.R7$(3),g.JRh(g.bMT(11,13,Ke.zoneName)),g.R7$(10),g.JRh(g.bMT(21,15,Ke.networkTestErrorText)),g.R7$(2),g.Y8G("ngIf",!Ke.showFirewallHelpLink),g.R7$(),g.Y8G("ngIf",Ke.showFirewallHelpLink),g.R7$(3),g.SpI(" ",g.bMT(27,17,"common.tryAgain")," "),g.R7$(3),g.Y8G("ngIf",Ke.autoRun),g.R7$(),g.Y8G("ngIf",!Ke.autoRun))},styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.font-size-xxxs[_ngcontent-%COMP%]{font-size:8px}.font-size-xxs[_ngcontent-%COMP%]{font-size:11px}.font-size-sm[_ngcontent-%COMP%]{font-size:12px}.font-size-sm1[_ngcontent-%COMP%]{font-size:13px}.font-size-lg[_ngcontent-%COMP%]{font-size:14px}.font-size-xl[_ngcontent-%COMP%]{font-size:16px}.font-size-xl1[_ngcontent-%COMP%]{font-size:18px}.font-size-20[_ngcontent-%COMP%]{font-size:20px}.font-size-xxl[_ngcontent-%COMP%]{font-size:24px}.font-size-32[_ngcontent-%COMP%]{font-size:32px}.font-size-xxxl[_ngcontent-%COMP%]{font-size:40px}.line-height-sm[_ngcontent-%COMP%]{line-height:.75em}.line-height-sm1[_ngcontent-%COMP%]{line-height:1em}.line-height-14[_ngcontent-%COMP%]{line-height:14px}.line-height-12[_ngcontent-%COMP%]{line-height:12px}.line-height-16[_ngcontent-%COMP%]{line-height:16px}.line-height-md[_ngcontent-%COMP%]{line-height:1.5em}.line-height-lg[_ngcontent-%COMP%]{line-height:3em}.line-height-30[_ngcontent-%COMP%]{line-height:30px}.line-height-36[_ngcontent-%COMP%]{line-height:36px}.line-height-lg1[_ngcontent-%COMP%]{line-height:40px}.font-style-italic[_ngcontent-%COMP%]{font-style:italic}.font-style-bold[_ngcontent-%COMP%]{font-weight:700}.font-style-normal[_ngcontent-%COMP%]{font-weight:400}.font-uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.font-lowercase[_ngcontent-%COMP%]{text-transform:lowercase}.text-transform-none[_ngcontent-%COMP%]{text-transform:none}.common-ui-network-container[_ngcontent-%COMP%]{background-color:#1f2224;max-width:789px}.common-ui-network-header[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:0;height:24px}.isLtr[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900;vertical-align:middle;min-width:24px}.isLtr[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.result-text-container[_ngcontent-%COMP%]{margin-bottom:6px}.result-text[_ngcontent-%COMP%]{margin-top:1px}.nw-icon[_ngcontent-%COMP%]{height:24px;line-height:24px;width:auto;speak:none;font-size:48px;font-variant:normal;align-self:center;color:#fff;opacity:.9;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:22px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:22px}.icon-alert-bang[_ngcontent-%COMP%]{margin:0}.common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.common-ui-network-container[_ngcontent-%COMP%] .result-icon.error[_ngcontent-%COMP%]{color:#ed1c24}.warn[_ngcontent-%COMP%]{color:#ffb538}.error[_ngcontent-%COMP%]{color:#ed1c24}.common-ui-errorDetails[_ngcontent-%COMP%] .success[_ngcontent-%COMP%]{color:#76b900}.flex-1[_ngcontent-%COMP%]{flex:1}.nv-ui-assets[_ngcontent-%COMP%]{height:140px;margin-top:64px;display:flex;flex-direction:row;overflow:hidden;justify-content:center;align-items:baseline}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:79px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:79px}.nv-dot-icons[_ngcontent-%COMP%]{border-radius:50%;width:8px;height:8px;align-self:center;display:-webkit-inline-box;background:#ffffff73}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.animated[_ngcontent-%COMP%]{animation-duration:2s;animation-iteration-count:infinite;animation-fill-mode:both;animation-delay:1s}.caption[_ngcontent-%COMP%]{display:block;max-width:92px;width:12vw;text-align:center;margin-bottom:0}.caption.truncate-text[_ngcontent-%COMP%]{margin-top:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.common-ui-errorDetails[_ngcontent-%COMP%]{height:72px;display:flex;justify-content:center;margin:0 24px}.connect-error-details[_ngcontent-%COMP%]{display:flex}.common-ui-network-container[_ngcontent-%COMP%] .common-ui-resultDetails[_ngcontent-%COMP%]{height:24px;margin-bottom:30px;align-self:center;margin-top:22px}.common-ui-network-content[_ngcontent-%COMP%]{height:181px;background-color:#0000004d;overflow-y:auto}.common-ui-network-content[_ngcontent-%COMP%] .nv-button-class[_ngcontent-%COMP%]{height:84px;display:flex}.common-ui-network-content[_ngcontent-%COMP%] .override-warning-container[_ngcontent-%COMP%]{margin-top:5px;padding:0 24px;align-items:center}.common-ui-network-content[_ngcontent-%COMP%] span.icon-alert-circle_reg[_ngcontent-%COMP%]{font-size:11px}.common-ui-network-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:12px;margin-top:0}.div-table[_ngcontent-%COMP%]{display:table!important;width:101%;padding-top:24px;padding-bottom:24px;max-width:100%}.div-table-row[_ngcontent-%COMP%]{display:table-row;width:auto;clear:both;height:28px}.div-table-col[_ngcontent-%COMP%]{display:table-column;width:140px;text-align:center}.isLtr[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:right}.div-table-col-header[_ngcontent-%COMP%]{display:table-column;width:236px}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ffb538;width:177px}.yellowstyle[_ngcontent-%COMP%] .narrowstyle[_ngcontent-%COMP%]{width:26px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ed1c24;width:177px}.redstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ed1c24}.yellowstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.wifi_2_4_warn[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%] md-icon[_ngcontent-%COMP%]{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%]{display:table}.network-assets[_ngcontent-%COMP%]{display:flex}.error-details[_ngcontent-%COMP%]{display:flex;margin-top:24px}.isLtr[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.common-ui-error[_ngcontent-%COMP%]{width:480px}.redirect-page-div[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:center}.redirect-page-link[_ngcontent-%COMP%]{text-decoration:none}.vertical-gap-24[_ngcontent-%COMP%]{height:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-right:48px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-right:48px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-left:48px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-left:48px}.network-progress-fill[_ngcontent-%COMP%]{height:50px;background-color:#1f2224}.network-test-icons[_ngcontent-%COMP%]{display:block}.error-dlg-content[_ngcontent-%COMP%]{margin:24px;min-height:32px}.error-dlg-buttons[_ngcontent-%COMP%]{min-height:52px}.isLtr[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:right}html[dir=ltr][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isRtl[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:left}html[dir=rtl][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:left}button.error-dialog-button[_ngcontent-%COMP%]{margin:8px}.error-icon[_ngcontent-%COMP%]{font-size:32px!important}.isLtr[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.error-icon-error-dialog[_ngcontent-%COMP%]{font-size:32px;margin-top:20px;min-width:32px;line-height:5px}.isLtr[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 8px 23px 23px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 8px 23px 23px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 23px 23px 8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 23px 23px 8px}.active[_ngcontent-%COMP%]{background:#76b900;opacity:1;width:12px;height:12px;margin-bottom:-2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.normal[_ngcontent-%COMP%]{background:#ffffff73;width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.error-background-active-btn[_ngcontent-%COMP%]{background-color:#76b900}.custom-svg-icon[_ngcontent-%COMP%]{width:48px;height:auto}.network-isp-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.network-test-warning-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin-top:12px}.nv-dot-icons-container[_ngcontent-%COMP%]{margin-top:12px}@media (max-width: 960px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:60px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:60px}.network-test-results[_ngcontent-%COMP%]{min-width:80vw}.div-table-col-header[_ngcontent-%COMP%]{width:30%}.div-table-col[_ngcontent-%COMP%]{width:18%}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:120px}}@media (max-width: 790px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:48px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:48px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:80px}}@media (max-width: 690px){.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:60px}}@media screen and (max-width: 834px) and (max-height: 1194px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:36px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:36px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:87px}.nv-dot-icons[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.active[_ngcontent-%COMP%]{width:10px;height:10px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.normal[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.div-table-col-header[_ngcontent-%COMP%]{width:160px}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape),(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{display:block;max-height:65vh;overflow-y:auto;overflow-x:unset}.common-ui-network-container[_ngcontent-%COMP%]{margin:0;overflow:unset}.common-ui-network-header[_ngcontent-%COMP%]{margin:0}.common-ui-network-title[_ngcontent-%COMP%]{--font-header-font-size: 14px;--font-header-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--font-header-font-size: 28px;--font-header-line-height: 40px}.isLtr[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.common-ui-network-content[_ngcontent-%COMP%]{height:unset;background-color:unset}.nv-ui-assets[_ngcontent-%COMP%]{height:100px;line-height:0;margin-top:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.network-test-icons[_ngcontent-%COMP%]{text-align:center;height:16px;margin-top:0}.network-isp-icons[_ngcontent-%COMP%]{align-items:center}.nv-dot-icons[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.active[_ngcontent-%COMP%]{width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.normal[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.custom-svg-icon[_ngcontent-%COMP%]{width:24px;min-height:25px}.caption[_ngcontent-%COMP%]{margin:0 auto;align-self:center}.common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;display:flex;justify-content:center}.isLtr[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.isRtl[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.network-test-error-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-sizing:border-box;justify-content:center;align-items:stretch;max-width:100%}.icon-alert-bang[_ngcontent-%COMP%]{font-size:36px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:57px}.result-text[_ngcontent-%COMP%]{margin-top:0}.network-test-results[_ngcontent-%COMP%]{background-color:#0000004d;padding-top:16px}.mat-mdc-tab-group[_ngcontent-%COMP%]{background-color:#0000004d}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.div-table-row[_ngcontent-%COMP%]{justify-content:space-between;max-width:240px}}@media (max-width: 959.98px) and (orientation: landscape),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{max-height:60vh}.network-test-results[_ngcontent-%COMP%]{max-width:536px;min-width:0}.common-ui-network-container[_ngcontent-%COMP%]{width:536px;max-height:80vh}}@media (max-width: 599.98px) and (orientation: portrait){.common-ui-network-container[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}}@media screen and (max-width: 320px) and (max-height: 568px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.active[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:1px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:1px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:40px}.result-text[_ngcontent-%COMP%]{width:70%}}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%]{width:960px;max-width:960px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{height:unset;margin-top:24px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:0}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%]{height:277px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%]{height:auto}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{width:320px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{width:180px}.tv-view[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{height:20vh}.tv-view[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}.tv-view[_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%]{margin:16px}.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{font-size:40px;width:40px;height:40px}.isLtr.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-right:20px}html[dir=ltr] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:20px}.isRtl.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:20px}"]})}}return it})();var Hn=s(51394),Ba=s(54504);const ds=(it,Ln)=>({warn:it,error:Ln});function la(it,Ln){if(1&it&&(g.j41(0,"div",6)(1,"div",7)(2,"p",10),g.EFF(3),g.nI1(4,"translate"),g.k0s()(),g.j41(5,"div",11)(6,"p",12),g.EFF(7),g.k0s()(),g.j41(8,"div",8)(9,"p",12),g.EFF(10),g.k0s()(),g.j41(11,"div",8)(12,"p",12),g.EFF(13),g.k0s()()()),2&it){const F=Ln.$implicit;g.R7$(3),g.SpI(" ",g.bMT(4,5,F.settingLabel)," "),g.R7$(2),g.Y8G("ngClass",g.l_i(7,ds,F.isPoorValue,F.isBadValue)),g.R7$(2),g.JRh(F.measuredValue),g.R7$(3),g.JRh(F.requiredValue),g.R7$(3),g.JRh(F.recommendedValue)}}function ra(it,Ln){if(1&it&&(g.j41(0,"div",5)(1,"div",6)(2,"div",7),g.EFF(3,"\xa0"),g.k0s(),g.j41(4,"div",8)(5,"p"),g.EFF(6),g.nI1(7,"translate"),g.k0s()(),g.j41(8,"div",8)(9,"p"),g.EFF(10),g.nI1(11,"translate"),g.k0s()(),g.j41(12,"div",8)(13,"p"),g.EFF(14),g.nI1(15,"translate"),g.k0s()()(),g.DNE(16,la,14,10,"div",9),g.k0s()),2&it){const F=g.XpG();g.R7$(6),g.JRh(g.bMT(7,4,"networkTest.networkTestMeasured")),g.R7$(4),g.JRh(g.bMT(11,6,"networkTest.networkTestRequired")),g.R7$(4),g.JRh(g.bMT(15,8,"common.recommended")),g.R7$(2),g.Y8G("ngForOf",F.propertyData)}}function $o(it,Ln){if(1&it&&(g.j41(0,"div",5)(1,"div",14)(2,"p"),g.EFF(3),g.nI1(4,"translate"),g.k0s()(),g.j41(5,"div",6)(6,"p",15),g.EFF(7),g.nI1(8,"translate"),g.k0s(),g.j41(9,"p",16),g.EFF(10),g.k0s()(),g.j41(11,"div",6)(12,"p",15),g.EFF(13),g.nI1(14,"translate"),g.k0s(),g.j41(15,"p",17),g.EFF(16),g.k0s()(),g.j41(17,"div",18)(18,"p",15),g.EFF(19),g.nI1(20,"translate"),g.k0s(),g.j41(21,"p",17),g.EFF(22),g.k0s()()()),2&it){const F=Ln.$implicit;g.R7$(3),g.JRh(g.bMT(4,8,F.settingLabel)),g.R7$(4),g.JRh(g.bMT(8,10,"networkTest.networkTestMeasured")),g.R7$(2),g.Y8G("ngClass",g.l_i(16,ds,F.isPoorValue,F.isBadValue)),g.R7$(),g.SpI(" ",F.measuredValue," "),g.R7$(3),g.JRh(g.bMT(14,12,"networkTest.networkTestRequired")),g.R7$(3),g.JRh(F.requiredValue),g.R7$(3),g.JRh(g.bMT(20,14,"common.recommended")),g.R7$(3),g.JRh(F.recommendedValue)}}function rs(it,Ln){if(1&it&&(g.j41(0,"div",5),g.DNE(1,$o,23,19,"div",13),g.k0s()),2&it){const F=g.XpG();g.R7$(),g.Y8G("ngForOf",F.propertyData)}}function oa(it,Ln){1&it&&(g.qex(0),g.j41(1,"span",19),g.EFF(2),g.nI1(3,"translate"),g.k0s(),g.bVm()),2&it&&(g.R7$(2),g.JRh(g.bMT(3,1,"networkTest.overrideZoneWarning")))}let Yo=(()=>{class it{constructor(F){this.networkConfigurationService=F}ngOnInit(){this.networkConfigurationService.getNetworkOverride().pipe((0,a.s)(1)).subscribe(F=>{this.showZoneOverrideWarning=!(0,c.isNil)(F)&&this.nvTestData.result.bandwidth.measured>=this.nvTestData.result.bandwidth.recommended&&this.nvTestData.result.frameLoss.measured<this.nvTestData.result.frameLoss.recommended&&this.nvTestData.result.latency.measured<this.nvTestData.result.latency.recommended&&"0"===this.nvTestData.networkInfo.IsVPN&&this.nvTestData.networkInfo.NetworkType!==m.Sd.WiFi2_4}),this.constructResults()}constructResults(){this.propertyData=[{settingLabel:"networkTest.bandwidth",measuredValue:this.nvTestData.result.bandwidth.measured>=this.nvTestData.result.bandwidth.recommended?`> ${this.nvTestData.result.bandwidth.measured}`:this.nvTestData.result.bandwidth.measured,recommendedValue:`> ${this.nvTestData.result.bandwidth.recommended}`,requiredValue:`> ${this.nvTestData.result.bandwidth.limit}`,isPoorValue:(0,c.inRange)(this.nvTestData.result.bandwidth.measured,this.nvTestData.result.bandwidth.limit,this.nvTestData.result.bandwidth.recommended),isBadValue:this.nvTestData.result.bandwidth.measured<=this.nvTestData.result.bandwidth.limit},{settingLabel:"networkTest.packetLoss",measuredValue:this.nvTestData.result.frameLoss.measured.toFixed(1),recommendedValue:`< ${this.nvTestData.result.frameLoss.recommended.toFixed(1)}`,requiredValue:`< ${this.nvTestData.result.frameLoss.limit.toFixed(1)}`,isPoorValue:(0,c.inRange)(this.nvTestData.result.frameLoss.measured,this.nvTestData.result.frameLoss.recommended,this.nvTestData.result.frameLoss.limit),isBadValue:this.nvTestData.result.frameLoss.measured>=this.nvTestData.result.frameLoss.limit},{settingLabel:"networkTest.latency",measuredValue:this.nvTestData.result.latency.measured,recommendedValue:`< ${this.nvTestData.result.latency.recommended}`,requiredValue:`< ${this.nvTestData.result.latency.limit}`,isPoorValue:(0,c.inRange)(this.nvTestData.result.latency.measured,this.nvTestData.result.latency.recommended,this.nvTestData.result.latency.limit),isBadValue:this.nvTestData.result.latency.measured>=this.nvTestData.result.latency.limit}]}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.rXU(Fo.u))}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["gfn-network-completed"]],inputs:{nvTestData:"nvTestData",isHandset:"isHandset"},decls:6,vars:3,consts:[["fxLayout","column","tabindex","0",1,"common-ui-network-content"],["fxLayout","column","fxFlex","",1,"div-table","font-sub2"],["fxLayout","column","fxFlex","",4,"ngIf"],["fxLayout","row",1,"override-warning-container"],[4,"ngIf"],["fxLayout","column","fxFlex",""],["fxLayout","row","fxFlex","",1,"div-table-row"],[1,"div-table-col-header","font-body2"],[1,"div-table-col","font-body2"],["class","div-table-row","fxLayout","row","fxFlex","",4,"ngFor","ngForOf"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3"],[1,"div-table-col","font-body2",3,"ngClass"],["dir","auto"],["fxLayout","column","fxFlex","",4,"ngFor","ngForOf"],[1,"font-sub2"],[1,"font-body3"],["dir","auto",1,"font-sub3",3,"ngClass"],["dir","auto",1,"font-sub3"],["fxLayout","row","fxFlex","",1,"div-table-row","font-body3"],[1,"font-body3-italic"]],template:function(Oe,Ke){1&Oe&&(g.j41(0,"div",0)(1,"div",1),g.DNE(2,ra,17,10,"div",2)(3,rs,2,1,"div",2),g.j41(4,"div",3),g.DNE(5,oa,4,3,"ng-container",4),g.k0s()()()),2&Oe&&(g.R7$(2),g.Y8G("ngIf",!Ke.isHandset),g.R7$(),g.Y8G("ngIf",Ke.isHandset),g.R7$(2),g.Y8G("ngIf",Ke.showZoneOverrideWarning))},dependencies:[Hn.ig,O.YU,O.Sq,O.bT,X.DJ,X.UI,H.PW,Ba.a,P.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.font-size-xxxs[_ngcontent-%COMP%]{font-size:8px}.font-size-xxs[_ngcontent-%COMP%]{font-size:11px}.font-size-sm[_ngcontent-%COMP%]{font-size:12px}.font-size-sm1[_ngcontent-%COMP%]{font-size:13px}.font-size-lg[_ngcontent-%COMP%]{font-size:14px}.font-size-xl[_ngcontent-%COMP%]{font-size:16px}.font-size-xl1[_ngcontent-%COMP%]{font-size:18px}.font-size-20[_ngcontent-%COMP%]{font-size:20px}.font-size-xxl[_ngcontent-%COMP%]{font-size:24px}.font-size-32[_ngcontent-%COMP%]{font-size:32px}.font-size-xxxl[_ngcontent-%COMP%]{font-size:40px}.line-height-sm[_ngcontent-%COMP%]{line-height:.75em}.line-height-sm1[_ngcontent-%COMP%]{line-height:1em}.line-height-14[_ngcontent-%COMP%]{line-height:14px}.line-height-12[_ngcontent-%COMP%]{line-height:12px}.line-height-16[_ngcontent-%COMP%]{line-height:16px}.line-height-md[_ngcontent-%COMP%]{line-height:1.5em}.line-height-lg[_ngcontent-%COMP%]{line-height:3em}.line-height-30[_ngcontent-%COMP%]{line-height:30px}.line-height-36[_ngcontent-%COMP%]{line-height:36px}.line-height-lg1[_ngcontent-%COMP%]{line-height:40px}.font-style-italic[_ngcontent-%COMP%]{font-style:italic}.font-style-bold[_ngcontent-%COMP%]{font-weight:700}.font-style-normal[_ngcontent-%COMP%]{font-weight:400}.font-uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.font-lowercase[_ngcontent-%COMP%]{text-transform:lowercase}.text-transform-none[_ngcontent-%COMP%]{text-transform:none}.common-ui-network-container[_ngcontent-%COMP%]{background-color:#1f2224;max-width:789px}.common-ui-network-header[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:0;height:24px}.isLtr[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900;vertical-align:middle;min-width:24px}.isLtr[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.result-text-container[_ngcontent-%COMP%]{margin-bottom:6px}.result-text[_ngcontent-%COMP%]{margin-top:1px}.nw-icon[_ngcontent-%COMP%]{height:24px;line-height:24px;width:auto;speak:none;font-size:48px;font-variant:normal;align-self:center;color:#fff;opacity:.9;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:22px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:22px}.icon-alert-bang[_ngcontent-%COMP%]{margin:0}.common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.common-ui-network-container[_ngcontent-%COMP%] .result-icon.error[_ngcontent-%COMP%]{color:#ed1c24}.warn[_ngcontent-%COMP%]{color:#ffb538}.error[_ngcontent-%COMP%]{color:#ed1c24}.common-ui-errorDetails[_ngcontent-%COMP%] .success[_ngcontent-%COMP%]{color:#76b900}.flex-1[_ngcontent-%COMP%]{flex:1}.nv-ui-assets[_ngcontent-%COMP%]{height:140px;margin-top:64px;display:flex;flex-direction:row;overflow:hidden;justify-content:center;align-items:baseline}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:79px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:79px}.nv-dot-icons[_ngcontent-%COMP%]{border-radius:50%;width:8px;height:8px;align-self:center;display:-webkit-inline-box;background:#ffffff73}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.animated[_ngcontent-%COMP%]{animation-duration:2s;animation-iteration-count:infinite;animation-fill-mode:both;animation-delay:1s}.caption[_ngcontent-%COMP%]{display:block;max-width:92px;width:12vw;text-align:center;margin-bottom:0}.caption.truncate-text[_ngcontent-%COMP%]{margin-top:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.common-ui-errorDetails[_ngcontent-%COMP%]{height:72px;display:flex;justify-content:center;margin:0 24px}.connect-error-details[_ngcontent-%COMP%]{display:flex}.common-ui-network-container[_ngcontent-%COMP%] .common-ui-resultDetails[_ngcontent-%COMP%]{height:24px;margin-bottom:30px;align-self:center;margin-top:22px}.common-ui-network-content[_ngcontent-%COMP%]{height:181px;background-color:#0000004d;overflow-y:auto}.common-ui-network-content[_ngcontent-%COMP%] .nv-button-class[_ngcontent-%COMP%]{height:84px;display:flex}.common-ui-network-content[_ngcontent-%COMP%] .override-warning-container[_ngcontent-%COMP%]{margin-top:5px;padding:0 24px;align-items:center}.common-ui-network-content[_ngcontent-%COMP%] span.icon-alert-circle_reg[_ngcontent-%COMP%]{font-size:11px}.common-ui-network-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:12px;margin-top:0}.div-table[_ngcontent-%COMP%]{display:table!important;width:101%;padding-top:24px;padding-bottom:24px;max-width:100%}.div-table-row[_ngcontent-%COMP%]{display:table-row;width:auto;clear:both;height:28px}.div-table-col[_ngcontent-%COMP%]{display:table-column;width:140px;text-align:center}.isLtr[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:right}.div-table-col-header[_ngcontent-%COMP%]{display:table-column;width:236px}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ffb538;width:177px}.yellowstyle[_ngcontent-%COMP%] .narrowstyle[_ngcontent-%COMP%]{width:26px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ed1c24;width:177px}.redstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ed1c24}.yellowstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.wifi_2_4_warn[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%] md-icon[_ngcontent-%COMP%]{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%]{display:table}.network-assets[_ngcontent-%COMP%]{display:flex}.error-details[_ngcontent-%COMP%]{display:flex;margin-top:24px}.isLtr[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.common-ui-error[_ngcontent-%COMP%]{width:480px}.redirect-page-div[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:center}.redirect-page-link[_ngcontent-%COMP%]{text-decoration:none}.vertical-gap-24[_ngcontent-%COMP%]{height:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-right:48px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-right:48px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-left:48px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-left:48px}.network-progress-fill[_ngcontent-%COMP%]{height:50px;background-color:#1f2224}.network-test-icons[_ngcontent-%COMP%]{display:block}.error-dlg-content[_ngcontent-%COMP%]{margin:24px;min-height:32px}.error-dlg-buttons[_ngcontent-%COMP%]{min-height:52px}.isLtr[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:right}html[dir=ltr][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isRtl[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:left}html[dir=rtl][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:left}button.error-dialog-button[_ngcontent-%COMP%]{margin:8px}.error-icon[_ngcontent-%COMP%]{font-size:32px!important}.isLtr[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.error-icon-error-dialog[_ngcontent-%COMP%]{font-size:32px;margin-top:20px;min-width:32px;line-height:5px}.isLtr[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 8px 23px 23px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 8px 23px 23px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 23px 23px 8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 23px 23px 8px}.active[_ngcontent-%COMP%]{background:#76b900;opacity:1;width:12px;height:12px;margin-bottom:-2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.normal[_ngcontent-%COMP%]{background:#ffffff73;width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.error-background-active-btn[_ngcontent-%COMP%]{background-color:#76b900}.custom-svg-icon[_ngcontent-%COMP%]{width:48px;height:auto}.network-isp-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.network-test-warning-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin-top:12px}.nv-dot-icons-container[_ngcontent-%COMP%]{margin-top:12px}@media (max-width: 960px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:60px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:60px}.network-test-results[_ngcontent-%COMP%]{min-width:80vw}.div-table-col-header[_ngcontent-%COMP%]{width:30%}.div-table-col[_ngcontent-%COMP%]{width:18%}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:120px}}@media (max-width: 790px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:48px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:48px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:80px}}@media (max-width: 690px){.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:60px}}@media screen and (max-width: 834px) and (max-height: 1194px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:36px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:36px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:87px}.nv-dot-icons[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.active[_ngcontent-%COMP%]{width:10px;height:10px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.normal[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.div-table-col-header[_ngcontent-%COMP%]{width:160px}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape),(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{display:block;max-height:65vh;overflow-y:auto;overflow-x:unset}.common-ui-network-container[_ngcontent-%COMP%]{margin:0;overflow:unset}.common-ui-network-header[_ngcontent-%COMP%]{margin:0}.common-ui-network-title[_ngcontent-%COMP%]{--font-header-font-size: 14px;--font-header-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--font-header-font-size: 28px;--font-header-line-height: 40px}.isLtr[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.common-ui-network-content[_ngcontent-%COMP%]{height:unset;background-color:unset}.nv-ui-assets[_ngcontent-%COMP%]{height:100px;line-height:0;margin-top:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.network-test-icons[_ngcontent-%COMP%]{text-align:center;height:16px;margin-top:0}.network-isp-icons[_ngcontent-%COMP%]{align-items:center}.nv-dot-icons[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.active[_ngcontent-%COMP%]{width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.normal[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.custom-svg-icon[_ngcontent-%COMP%]{width:24px;min-height:25px}.caption[_ngcontent-%COMP%]{margin:0 auto;align-self:center}.common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;display:flex;justify-content:center}.isLtr[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.isRtl[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.network-test-error-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-sizing:border-box;justify-content:center;align-items:stretch;max-width:100%}.icon-alert-bang[_ngcontent-%COMP%]{font-size:36px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:57px}.result-text[_ngcontent-%COMP%]{margin-top:0}.network-test-results[_ngcontent-%COMP%]{background-color:#0000004d;padding-top:16px}.mat-mdc-tab-group[_ngcontent-%COMP%]{background-color:#0000004d}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.div-table-row[_ngcontent-%COMP%]{justify-content:space-between;max-width:240px}}@media (max-width: 959.98px) and (orientation: landscape),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{max-height:60vh}.network-test-results[_ngcontent-%COMP%]{max-width:536px;min-width:0}.common-ui-network-container[_ngcontent-%COMP%]{width:536px;max-height:80vh}}@media (max-width: 599.98px) and (orientation: portrait){.common-ui-network-container[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}}@media screen and (max-width: 320px) and (max-height: 568px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.active[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:1px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:1px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:40px}.result-text[_ngcontent-%COMP%]{width:70%}}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%]{width:960px;max-width:960px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{height:unset;margin-top:24px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:0}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%]{height:277px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%]{height:auto}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{width:320px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{width:180px}.tv-view[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{height:20vh}.tv-view[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}.tv-view[_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%]{margin:16px}.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{font-size:40px;width:40px;height:40px}.isLtr.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-right:20px}html[dir=ltr] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:20px}.isRtl.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:20px}"]})}}return it})();const Bs=it=>({narrowstyle:it});let Va=(()=>{class it{constructor(){this.isWifi_2_4=!1,this.isBadNetworkResult=!1}ngOnInit(){switch(this.warningInfo){case xe.PoorWifi_2_4:this.isWifi_2_4=!0;break;case xe.Bad:this.isBadNetworkResult=!0}}static{this.\u0275fac=function(Oe){return new(Oe||it)}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["gfn-network-test-warning"]],inputs:{warningInfo:"warningInfo"},decls:4,vars:7,consts:[[1,"network-test-warning-icons",3,"ngClass"],[3,"ngClass"],["mat-font-set","material-icons",1,"nv-custom-icons","nw-icon","icon-alert-bang"]],template:function(Oe,Ke){1&Oe&&(g.j41(0,"div",0),g.nrm(1,"hr",1)(2,"mat-icon",2)(3,"hr",1),g.k0s()),2&Oe&&(g.Y8G("ngClass",Ke.isBadNetworkResult?"redstyle":"yellowstyle"),g.R7$(),g.Y8G("ngClass",g.eq3(3,Bs,Ke.isWifi_2_4)),g.R7$(2),g.Y8G("ngClass",g.eq3(5,Bs,Ke.isWifi_2_4)))},dependencies:[v.An,O.YU,H.PW],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.font-size-xxxs[_ngcontent-%COMP%]{font-size:8px}.font-size-xxs[_ngcontent-%COMP%]{font-size:11px}.font-size-sm[_ngcontent-%COMP%]{font-size:12px}.font-size-sm1[_ngcontent-%COMP%]{font-size:13px}.font-size-lg[_ngcontent-%COMP%]{font-size:14px}.font-size-xl[_ngcontent-%COMP%]{font-size:16px}.font-size-xl1[_ngcontent-%COMP%]{font-size:18px}.font-size-20[_ngcontent-%COMP%]{font-size:20px}.font-size-xxl[_ngcontent-%COMP%]{font-size:24px}.font-size-32[_ngcontent-%COMP%]{font-size:32px}.font-size-xxxl[_ngcontent-%COMP%]{font-size:40px}.line-height-sm[_ngcontent-%COMP%]{line-height:.75em}.line-height-sm1[_ngcontent-%COMP%]{line-height:1em}.line-height-14[_ngcontent-%COMP%]{line-height:14px}.line-height-12[_ngcontent-%COMP%]{line-height:12px}.line-height-16[_ngcontent-%COMP%]{line-height:16px}.line-height-md[_ngcontent-%COMP%]{line-height:1.5em}.line-height-lg[_ngcontent-%COMP%]{line-height:3em}.line-height-30[_ngcontent-%COMP%]{line-height:30px}.line-height-36[_ngcontent-%COMP%]{line-height:36px}.line-height-lg1[_ngcontent-%COMP%]{line-height:40px}.font-style-italic[_ngcontent-%COMP%]{font-style:italic}.font-style-bold[_ngcontent-%COMP%]{font-weight:700}.font-style-normal[_ngcontent-%COMP%]{font-weight:400}.font-uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.font-lowercase[_ngcontent-%COMP%]{text-transform:lowercase}.text-transform-none[_ngcontent-%COMP%]{text-transform:none}.common-ui-network-container[_ngcontent-%COMP%]{background-color:#1f2224;max-width:789px}.common-ui-network-header[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:0;height:24px}.isLtr[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900;vertical-align:middle;min-width:24px}.isLtr[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.result-text-container[_ngcontent-%COMP%]{margin-bottom:6px}.result-text[_ngcontent-%COMP%]{margin-top:1px}.nw-icon[_ngcontent-%COMP%]{height:24px;line-height:24px;width:auto;speak:none;font-size:48px;font-variant:normal;align-self:center;color:#fff;opacity:.9;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:22px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:22px}.icon-alert-bang[_ngcontent-%COMP%]{margin:0}.common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.common-ui-network-container[_ngcontent-%COMP%] .result-icon.error[_ngcontent-%COMP%]{color:#ed1c24}.warn[_ngcontent-%COMP%]{color:#ffb538}.error[_ngcontent-%COMP%]{color:#ed1c24}.common-ui-errorDetails[_ngcontent-%COMP%] .success[_ngcontent-%COMP%]{color:#76b900}.flex-1[_ngcontent-%COMP%]{flex:1}.nv-ui-assets[_ngcontent-%COMP%]{height:140px;margin-top:64px;display:flex;flex-direction:row;overflow:hidden;justify-content:center;align-items:baseline}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:79px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:79px}.nv-dot-icons[_ngcontent-%COMP%]{border-radius:50%;width:8px;height:8px;align-self:center;display:-webkit-inline-box;background:#ffffff73}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.animated[_ngcontent-%COMP%]{animation-duration:2s;animation-iteration-count:infinite;animation-fill-mode:both;animation-delay:1s}.caption[_ngcontent-%COMP%]{display:block;max-width:92px;width:12vw;text-align:center;margin-bottom:0}.caption.truncate-text[_ngcontent-%COMP%]{margin-top:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.common-ui-errorDetails[_ngcontent-%COMP%]{height:72px;display:flex;justify-content:center;margin:0 24px}.connect-error-details[_ngcontent-%COMP%]{display:flex}.common-ui-network-container[_ngcontent-%COMP%] .common-ui-resultDetails[_ngcontent-%COMP%]{height:24px;margin-bottom:30px;align-self:center;margin-top:22px}.common-ui-network-content[_ngcontent-%COMP%]{height:181px;background-color:#0000004d;overflow-y:auto}.common-ui-network-content[_ngcontent-%COMP%] .nv-button-class[_ngcontent-%COMP%]{height:84px;display:flex}.common-ui-network-content[_ngcontent-%COMP%] .override-warning-container[_ngcontent-%COMP%]{margin-top:5px;padding:0 24px;align-items:center}.common-ui-network-content[_ngcontent-%COMP%] span.icon-alert-circle_reg[_ngcontent-%COMP%]{font-size:11px}.common-ui-network-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:12px;margin-top:0}.div-table[_ngcontent-%COMP%]{display:table!important;width:101%;padding-top:24px;padding-bottom:24px;max-width:100%}.div-table-row[_ngcontent-%COMP%]{display:table-row;width:auto;clear:both;height:28px}.div-table-col[_ngcontent-%COMP%]{display:table-column;width:140px;text-align:center}.isLtr[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:right}.div-table-col-header[_ngcontent-%COMP%]{display:table-column;width:236px}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ffb538;width:177px}.yellowstyle[_ngcontent-%COMP%] .narrowstyle[_ngcontent-%COMP%]{width:26px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ed1c24;width:177px}.redstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ed1c24}.yellowstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.wifi_2_4_warn[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%] md-icon[_ngcontent-%COMP%]{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%]{display:table}.network-assets[_ngcontent-%COMP%]{display:flex}.error-details[_ngcontent-%COMP%]{display:flex;margin-top:24px}.isLtr[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.common-ui-error[_ngcontent-%COMP%]{width:480px}.redirect-page-div[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:center}.redirect-page-link[_ngcontent-%COMP%]{text-decoration:none}.vertical-gap-24[_ngcontent-%COMP%]{height:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-right:48px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-right:48px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-left:48px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-left:48px}.network-progress-fill[_ngcontent-%COMP%]{height:50px;background-color:#1f2224}.network-test-icons[_ngcontent-%COMP%]{display:block}.error-dlg-content[_ngcontent-%COMP%]{margin:24px;min-height:32px}.error-dlg-buttons[_ngcontent-%COMP%]{min-height:52px}.isLtr[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:right}html[dir=ltr][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isRtl[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:left}html[dir=rtl][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:left}button.error-dialog-button[_ngcontent-%COMP%]{margin:8px}.error-icon[_ngcontent-%COMP%]{font-size:32px!important}.isLtr[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.error-icon-error-dialog[_ngcontent-%COMP%]{font-size:32px;margin-top:20px;min-width:32px;line-height:5px}.isLtr[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 8px 23px 23px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 8px 23px 23px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 23px 23px 8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 23px 23px 8px}.active[_ngcontent-%COMP%]{background:#76b900;opacity:1;width:12px;height:12px;margin-bottom:-2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.normal[_ngcontent-%COMP%]{background:#ffffff73;width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.error-background-active-btn[_ngcontent-%COMP%]{background-color:#76b900}.custom-svg-icon[_ngcontent-%COMP%]{width:48px;height:auto}.network-isp-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.network-test-warning-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin-top:12px}.nv-dot-icons-container[_ngcontent-%COMP%]{margin-top:12px}@media (max-width: 960px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:60px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:60px}.network-test-results[_ngcontent-%COMP%]{min-width:80vw}.div-table-col-header[_ngcontent-%COMP%]{width:30%}.div-table-col[_ngcontent-%COMP%]{width:18%}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:120px}}@media (max-width: 790px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:48px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:48px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:80px}}@media (max-width: 690px){.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:60px}}@media screen and (max-width: 834px) and (max-height: 1194px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:36px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:36px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:87px}.nv-dot-icons[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.active[_ngcontent-%COMP%]{width:10px;height:10px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.normal[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.div-table-col-header[_ngcontent-%COMP%]{width:160px}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape),(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{display:block;max-height:65vh;overflow-y:auto;overflow-x:unset}.common-ui-network-container[_ngcontent-%COMP%]{margin:0;overflow:unset}.common-ui-network-header[_ngcontent-%COMP%]{margin:0}.common-ui-network-title[_ngcontent-%COMP%]{--font-header-font-size: 14px;--font-header-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--font-header-font-size: 28px;--font-header-line-height: 40px}.isLtr[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.common-ui-network-content[_ngcontent-%COMP%]{height:unset;background-color:unset}.nv-ui-assets[_ngcontent-%COMP%]{height:100px;line-height:0;margin-top:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.network-test-icons[_ngcontent-%COMP%]{text-align:center;height:16px;margin-top:0}.network-isp-icons[_ngcontent-%COMP%]{align-items:center}.nv-dot-icons[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.active[_ngcontent-%COMP%]{width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.normal[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.custom-svg-icon[_ngcontent-%COMP%]{width:24px;min-height:25px}.caption[_ngcontent-%COMP%]{margin:0 auto;align-self:center}.common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;display:flex;justify-content:center}.isLtr[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.isRtl[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.network-test-error-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-sizing:border-box;justify-content:center;align-items:stretch;max-width:100%}.icon-alert-bang[_ngcontent-%COMP%]{font-size:36px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:57px}.result-text[_ngcontent-%COMP%]{margin-top:0}.network-test-results[_ngcontent-%COMP%]{background-color:#0000004d;padding-top:16px}.mat-mdc-tab-group[_ngcontent-%COMP%]{background-color:#0000004d}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.div-table-row[_ngcontent-%COMP%]{justify-content:space-between;max-width:240px}}@media (max-width: 959.98px) and (orientation: landscape),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{max-height:60vh}.network-test-results[_ngcontent-%COMP%]{max-width:536px;min-width:0}.common-ui-network-container[_ngcontent-%COMP%]{width:536px;max-height:80vh}}@media (max-width: 599.98px) and (orientation: portrait){.common-ui-network-container[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}}@media screen and (max-width: 320px) and (max-height: 568px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.active[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:1px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:1px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:40px}.result-text[_ngcontent-%COMP%]{width:70%}}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%]{width:960px;max-width:960px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{height:unset;margin-top:24px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:0}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%]{height:277px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%]{height:auto}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{width:320px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{width:180px}.tv-view[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{height:20vh}.tv-view[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}.tv-view[_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%]{margin:16px}.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{font-size:40px;width:40px;height:40px}.isLtr.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-right:20px}html[dir=ltr] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:20px}.isRtl.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:20px}"]})}}return it})();var La=s(97888);function qs(it,Ln){if(1&it){const F=g.RV6();g.j41(0,"button",3),g.bIt("click",function(){g.eBV(F);const Ke=g.XpG();return g.Njj(Ke.execLeftButtonAction())}),g.EFF(1),g.nI1(2,"translate"),g.nI1(3,"uppercase"),g.k0s()}if(2&it){const F=g.XpG();g.R7$(),g.SpI(" ",g.bMT(3,3,g.bMT(2,1,F.leftButtonText))," ")}}let ks=(()=>{class it{constructor(){this.tryAgain=new g.bkB,this.close=new g.bkB,this.continue=new g.bkB,this.showButton=!0}ngOnInit(){switch(this.placementCriteria.progressState){case xe.Excellent:this.showButton=this.placementCriteria.showAdditionalActions,this.leftButtonText="common.tryAgain",this.rightButtonText=this.placementCriteria.autoRun?"common.continueTitleCase":"common.ok";break;case xe.Bad:this.leftButtonText=this.placementCriteria.autoRun?"networkTest.continueAnyway":"common.close",this.rightButtonText="common.tryAgain";break;default:this.leftButtonText=this.placementCriteria.autoRun?"common.continueTitleCase":"common.close",this.rightButtonText="common.tryAgain"}}execLeftButtonAction(){this.placementCriteria.progressState===xe.Excellent?this.tryAgain.emit():this.placementCriteria.autoRun?this.continue.emit():this.close.emit()}execRightButtonAction(){this.placementCriteria.progressState===xe.Excellent?this.placementCriteria.autoRun?this.continue.emit():this.close.emit():this.tryAgain.emit()}static{this.\u0275fac=function(Oe){return new(Oe||it)}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["gfn-nw-test-button-placer"]],inputs:{placementCriteria:"placementCriteria"},outputs:{tryAgain:"tryAgain",close:"close",continue:"continue"},decls:6,vars:6,consts:[[1,"container"],["mat-flat-button","","cdkFocusInitial","",1,"action-btn","font-button2","mat-accent",3,"click"],["mat-button","","class","font-button2 back-hover-override",3,"click",4,"ngIf"],["mat-button","",1,"font-button2","back-hover-override",3,"click"]],template:function(Oe,Ke){1&Oe&&(g.j41(0,"div",0)(1,"button",1),g.bIt("click",function(){return Ke.execRightButtonAction()}),g.EFF(2),g.nI1(3,"translate"),g.nI1(4,"uppercase"),g.k0s(),g.DNE(5,qs,4,5,"button",2),g.k0s()),2&Oe&&(g.R7$(2),g.SpI(" ",g.bMT(4,4,g.bMT(3,2,Ke.rightButtonText))," "),g.R7$(3),g.Y8G("ngIf",Ke.showButton))},dependencies:[S.iV,O.bT,La.Aq,O.Pc,P.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.action-btn[_ngcontent-%COMP%]{height:36px;min-width:64px;border-radius:0;margin:13px 8px}.isLtr[_nghost-%COMP%] .action-btn[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .action-btn[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .action-btn[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .action-btn[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .action-btn[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .action-btn[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .action-btn[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .action-btn[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.back-hover-override[_ngcontent-%COMP%]:hover{background-color:#ffffff0a}.container[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;padding:8px;gap:8px 13px}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.container[_ngcontent-%COMP%]{flex-wrap:wrap}}.tv-view[_nghost-%COMP%] .action-btn[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .action-btn[_ngcontent-%COMP%]{height:auto}.tv-view[_nghost-%COMP%] .container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .container[_ngcontent-%COMP%]{padding:16px;gap:16px 32px}"]})}}return it})();var ts=s(40262),$a=s(55833),va=s(53461),Mn=s(66974);function Tn(it,Ln){if(1&it&&(g.j41(0,"div",15)(1,"span",16),g.EFF(2),g.nI1(3,"translate"),g.k0s(),g.j41(4,"span",17),g.EFF(5),g.nI1(6,"translate"),g.k0s()()),2&it){const F=g.XpG(2);g.R7$(2),g.JRh(g.bMT(3,2,"setup.estimatedWaitTime")),g.R7$(3),g.SpI("\xa0",g.i5U(6,4,F.loadingScreensData.queueTimeKey,F.loadingScreensData.queueTimeValues),"")}}function tn(it,Ln){if(1&it&&(g.nrm(0,"div",18),g.nI1(1,"translate"),g.nI1(2,"trustAsHtml")),2&it){const F=g.XpG(2);g.Y8G("innerHTML",g.bMT(2,3,g.bMT(1,1,F.loadingScreensData.loadingText)),g.npT)}}function In(it,Ln){if(1&it&&(g.j41(0,"span"),g.EFF(1),g.nI1(2,"translate"),g.j41(3,"span"),g.EFF(4),g.k0s()()),2&it){const F=g.XpG(3);g.R7$(),g.SpI("",g.bMT(2,2,"setup.gamersAheadOfYou")," "),g.R7$(3),g.SpI(" ",F.loadingScreensData.queuePosition-1,"")}}function Ai(it,Ln){1&it&&(g.j41(0,"span"),g.EFF(1),g.nI1(2,"translate"),g.k0s()),2&it&&(g.R7$(),g.JRh(g.bMT(2,1,"setup.youAreNext")))}function So(it,Ln){if(1&it&&(g.j41(0,"div",19),g.DNE(1,In,5,4,"span",6)(2,Ai,3,3,"span",6),g.k0s()),2&it){const F=g.XpG(2);g.R7$(),g.Y8G("ngIf",F.loadingScreensData.queuePosition>1),g.R7$(),g.Y8G("ngIf",1===F.loadingScreensData.queuePosition)}}function Rn(it,Ln){1&it&&(g.j41(0,"div",20)(1,"span"),g.EFF(2),g.nI1(3,"translate"),g.k0s()()),2&it&&(g.R7$(2),g.SpI(" ",g.bMT(3,1,"setup.opportunity.promptText")," "))}function Xn(it,Ln){1&it&&(g.j41(0,"span",23),g.EFF(1),g.nI1(2,"translate"),g.k0s()),2&it&&(g.R7$(),g.SpI(" ",g.bMT(2,1,"setup.cleanupPreviousSession")," "))}function ae(it,Ln){if(1&it&&(g.j41(0,"div",21),g.DNE(1,Xn,3,3,"span",22),g.k0s()),2&it){const F=g.XpG(2);g.R7$(),g.Y8G("ngIf",!F.isGuestAppFlow)}}function st(it,Ln){if(1&it&&(g.j41(0,"div",7),g.DNE(1,Tn,7,7,"div",8)(2,tn,3,5,"div",9)(3,So,3,2,"div",10),g.j41(4,"div",11),g.nrm(5,"mat-progress-bar",12),g.k0s(),g.DNE(6,Rn,4,3,"div",13)(7,ae,2,1,"div",14),g.k0s()),2&it){const F=g.XpG();g.R7$(),g.Y8G("ngIf",F.loadingScreensData.queueTimeVisible&&!F.loadingScreensData.queuePositionVisible),g.R7$(),g.Y8G("ngIf",!F.showVideo),g.R7$(),g.Y8G("ngIf",F.loadingScreensData.queuePositionVisible),g.R7$(2),g.Y8G("mode",F.loadingScreensData.progressBar)("value",F.loadingScreensData.progressValue),g.BMQ("tabindex",null),g.R7$(),g.Y8G("ngIf",F.showVideo),g.R7$(),g.Y8G("ngIf",F.showSessionCleanupDesc)}}function Ct(it,Ln){if(1&it&&(g.j41(0,"div",24),g.nrm(1,"gfn-content-rating",25),g.k0s()),2&it){const F=g.XpG();g.R7$(),g.Y8G("contentRatings",F.contentRatings)}}function $n(it,Ln){1&it&&(g.j41(0,"mat-icon"),g.EFF(1,"open_in_new"),g.k0s())}function Gi(it,Ln){if(1&it){const F=g.RV6();g.j41(0,"button",27),g.bIt("click",function(){g.eBV(F);const Ke=g.XpG(2);return g.Njj(Ke.upgradeButtonClick())}),g.DNE(1,$n,2,0,"mat-icon",6),g.EFF(2),g.nI1(3,"translate"),g.k0s()}if(2&it){const F=g.XpG(2);g.Y8G("isVisible",F.loadingScreensData.showLoadingOnUpgradePromptButton),g.R7$(),g.Y8G("ngIf",F.loadingScreensData.showUpgradeLinkIcon),g.R7$(),g.SpI(" ",g.bMT(3,3,F.loadingScreensData.upgradePromptButtonText)," ")}}function Sr(it,Ln){if(1&it&&(g.qex(0),g.DNE(1,Gi,4,5,"button",26),g.bVm()),2&it){const F=g.XpG();g.R7$(),g.Y8G("ngIf",F.showUpsellCta)}}let Wr=(()=>{class it{constructor(F,Oe){this.guestModeHelperService=Oe,this.showHeaderSection=!0,this.clickUpgradeButton=new g.bkB,this.clickViewAccountButton=new g.bkB,this.isGuestAppFlow=!1,this.logger=F.getLogger("SmallLandscapeLoaderComponent"),this.isGuestAppFlow=Oe.isGuestAppFlow()}upgradeButtonClick(){this.clickUpgradeButton.emit(!0)}viewAccountButtonClick(){this.clickViewAccountButton.emit(!0)}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.rXU(m.J6),g.rXU(Mn.x))}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["gfn-small-landscape-loader"]],inputs:{loadingScreensData:"loadingScreensData",showVideo:"showVideo",showHeaderSection:"showHeaderSection",canShowRating:"canShowRating",showSessionCleanupDesc:"showSessionCleanupDesc",contentRatings:"contentRatings",showUpsellCta:"showUpsellCta",canHardUpsell:"canHardUpsell"},outputs:{clickUpgradeButton:"clickUpgradeButton",clickViewAccountButton:"clickViewAccountButton"},decls:7,vars:4,consts:[[1,"small-landscape-loader-container"],[1,"small-landscape-loader-bottom-sheet-wrapper"],[1,"small-landscape-loader-bottom-sheet"],["fxLayout","column",1,"bottom-sheet-container"],["class","header-content-container font-sub2","fxLayout","column",4,"ngIf"],["class","content-rating",4,"ngIf"],[4,"ngIf"],["fxLayout","column",1,"header-content-container","font-sub2"],["class","font-sub3",4,"ngIf"],["class","font-sub2","cdkMonitorSubtreeFocus","",3,"innerHTML",4,"ngIf"],["class","font-sub3","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[1,"small-landscape-loader-progress-bar"],[3,"mode","value"],["class","prompt-text font-sub3",4,"ngIf"],["class","session-cleanup-description",4,"ngIf"],[1,"font-sub3"],[1,"font-color-primary"],[1,"font-sub1"],["cdkMonitorSubtreeFocus","",1,"font-sub2",3,"innerHTML"],["fxLayout","row","fxLayoutAlign","start center",1,"font-sub3"],[1,"prompt-text","font-sub3"],[1,"session-cleanup-description"],["class","font-sub2",4,"ngIf"],[1,"font-sub2"],[1,"content-rating"],[3,"contentRatings"],["mat-button","","class","upgrade-button text-button-icon font-button2","nvProgressCircular","",3,"isVisible","click",4,"ngIf"],["mat-button","","nvProgressCircular","",1,"upgrade-button","text-button-icon","font-button2",3,"click","isVisible"]],template:function(Oe,Ke){1&Oe&&(g.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),g.DNE(4,st,8,8,"div",4)(5,Ct,2,1,"div",5),g.k0s(),g.DNE(6,Sr,2,1,"ng-container",6),g.k0s()()()),2&Oe&&(g.Y8G("@loadingAnimation","SmallScreenFadeIn"),g.R7$(4),g.Y8G("ngIf",Ke.showHeaderSection),g.R7$(),g.Y8G("ngIf",Ke.canShowRating&&!Ke.isGuestAppFlow&&Ke.contentRatings),g.R7$(),g.Y8G("ngIf",Ke.canHardUpsell))},styles:[".small-landscape-loader-container[_ngcontent-%COMP%]{z-index:1000;height:50%;width:100%;position:absolute;bottom:0;background:linear-gradient(180deg,#0000,#0000000d 11.44%,#00000026 23.55%,#0000004d 35.87%,#00000080 51.55%,#0009 64.77%,#000000b3 81.94%,#000c);display:flex;justify-content:center}.small-landscape-loader-bottom-sheet-wrapper[_ngcontent-%COMP%]{display:flex;width:90%}.small-landscape-loader-bottom-sheet[_ngcontent-%COMP%]{z-index:1001;width:-webkit-fill-available;width:-moz-available;display:flex;align-items:end;justify-content:space-between;padding:0 16px 16px;gap:4px}.small-landscape-loader-bottom-sheet[_ngcontent-%COMP%] .upgrade-button[_ngcontent-%COMP%]{min-width:auto}.bottom-sheet-container[_ngcontent-%COMP%]{gap:8px}.bottom-sheet-container[_ngcontent-%COMP%] .header-content-container[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.bottom-sheet-container[_ngcontent-%COMP%] .header-content-container[_ngcontent-%COMP%] .small-landscape-loader-progress-bar[_ngcontent-%COMP%], .bottom-sheet-container[_ngcontent-%COMP%] .header-content-container[_ngcontent-%COMP%] .prompt-text[_ngcontent-%COMP%], .bottom-sheet-container[_ngcontent-%COMP%] .header-content-container[_ngcontent-%COMP%] .session-cleanup-description[_ngcontent-%COMP%]{margin-top:8px}.bottom-sheet-container[_ngcontent-%COMP%] .content-rating[_ngcontent-%COMP%]{margin-top:16px}"],data:{animation:[(0,ts.hZ)("loadingAnimation",[(0,ts.kY)("void => SmallScreenFadeIn",[(0,ts.iF)({opacity:"0"}),(0,ts.i0)("0.3s ease-out",(0,ts.iF)({opacity:"1"}))]),(0,ts.kY)("SmallScreenFadeIn => void",[(0,ts.iF)({opacity:"1"}),(0,ts.i0)("0.3s ease-in",(0,ts.iF)({opacity:"0"}))]),(0,ts.kY)("* => *",[(0,ts.iF)({opacity:"0"}),(0,ts.i0)("0.3s ease-out",(0,ts.iF)({opacity:"1"}))])])]}})}}return it})();var ao=function(it){return it.Determinate="determinate",it.InDeterminate="indeterminate",it}(ao||{}),Ir=s(14043);let Cr=(()=>{class it{constructor(F,Oe,Ke){this.loggingService=F,this.lcarsService=Oe,this.logger=this.loggingService.getLogger("gfn/content-rating"),this.fetchRatingInfoStream=Ke.createStream(nn=>this.fetchRatingInfo(nn))}getCurrentRating(F,Oe){return this.fetchRatingInfoStream.get$(F).pipe((0,$e.ZZ)(Ke=>{if((0,c.isNil)(Ke)||(0,c.isNil)(Ke.ratings))return(0,At.$)(`ratingInfo is ${JSON.stringify(Ke)}`);const nn=Ke.ratings.find(_i=>_i.categoryKey===Oe);return(0,c.isNil)(nn)?(this.logger.info("no rating found for this rating category:",Oe),(0,Fe.of)(null)):(0,Fe.of)({rating:nn,ratingSystem:Ke.label,displayInterval:Ke.displayInterval})}))}getContentDescriptors(F,Oe){return this.fetchRatingInfoStream.get$(F).pipe((0,$e.ZZ)(Ke=>{if((0,c.isNil)(Ke)||(0,c.isEmpty)(Ke))return(0,At.$)(`ratingInfo is ${JSON.stringify(Ke)}`);if((0,c.isNil)(Ke.contentDescriptors))return this.logger.info("no content descriptors field"),(0,Fe.of)([]);let nn=Ke.contentDescriptors.filter(_i=>(0,c.includes)(Oe,_i.key));nn=(0,c.sortBy)(nn,["sortOrder"]);const Nn=nn.map(_i=>_i.label);return(0,Fe.of)(Nn)}))}getInteractiveElements(F,Oe){return this.fetchRatingInfoStream.get$(F).pipe((0,$e.ZZ)(Ke=>{if((0,c.isNil)(Ke)||(0,c.isEmpty)(Ke))return(0,At.$)(`ratingInfo is ${JSON.stringify(Ke)}`);if((0,c.isNil)(Ke.interactiveElements))return this.logger.info("no interactive elements field"),(0,Fe.of)([]);let nn=Ke.interactiveElements.filter(_i=>(0,c.includes)(Oe,_i.key));nn=(0,c.sortBy)(nn,["sortOrder"]);const Nn=nn.map(_i=>_i.label);return(0,Fe.of)(Nn)}))}fetchRatingInfo(F,Oe){return this.lcarsService.getStaticAppData().pipe((0,nt.T)(Ke=>(Ke?.ratingDefinitions).find(Nn=>Nn.ratingSystem===F)))}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.KVO(m.J6),g.KVO(Ir.Br),g.KVO(Zr._d))}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})();var Ki=s(46964);function el(it,Ln){if(1&it&&(g.qex(0),g.nrm(1,"hr"),g.j41(2,"div",7),g.EFF(3),g.k0s(),g.bVm()),2&it){const F=g.XpG(2).ngIf;g.R7$(3),g.JRh(null==F?null:F.elements)}}function ca(it,Ln){if(1&it&&(g.qex(0),g.j41(1,"div",4)(2,"div")(3,"div",5),g.EFF(4),g.k0s(),g.j41(5,"div",6),g.EFF(6),g.k0s()(),g.DNE(7,el,4,1,"ng-container",1),g.k0s(),g.bVm()),2&it){const F=g.XpG().ngIf;g.R7$(4),g.SpI(" ",null==F||null==F.ratingInfo||null==F.ratingInfo.rating?null:F.ratingInfo.rating.label," "),g.R7$(2),g.SpI(" ",null==F?null:F.descriptors," "),g.R7$(),g.Y8G("ngIf",null==F?null:F.elements)}}function Zo(it,Ln){if(1&it){const F=g.RV6();g.qex(0),g.j41(1,"div",2)(2,"img",3),g.bIt("load",function(){g.eBV(F);const Ke=g.XpG();return g.Njj(Ke.imageLoaded())}),g.k0s()(),g.DNE(3,ca,8,3,"ng-container",1),g.nI1(4,"async"),g.bVm()}if(2&it){const F=Ln.ngIf,Oe=g.XpG();g.R7$(2),g.Y8G("src",null==F||null==F.ratingInfo||null==F.ratingInfo.rating?null:F.ratingInfo.rating.largeImageUrl,g.B4B),g.R7$(),g.Y8G("ngIf",g.bMT(4,2,Oe.imageLoaded$))}}let Ha=(()=>{class it{set contentRatings(F){this.contentRatings$.next(F)}constructor(F,Oe,Ke){this.breakpointObserver=Oe,this.ratingService=Ke,this.imageLoaded$=new Ci.t(!1),this.destroy$=new _.B7,this.contentRatings$=new Gn.m(1),this.logger=F.getLogger("gfn/content-rating.component")}ngOnInit(){this.isSmallScreen$=this.breakpointObserver.observe(m.hi.IPhone).pipe((0,nt.T)(F=>F.matches)),this.ratingData$=this.contentRatings$.pipe((0,bo.n)(F=>(0,bi.zV)([this.ratingService.getCurrentRating(F.type,F.categoryKey),this.ratingService.getContentDescriptors(F.type,F.contentDescriptorKeys).pipe((0,nt.T)(Oe=>Oe?.join(", ")||"")),this.ratingService.getInteractiveElements(F.type,F.interactiveElementKeys).pipe((0,nt.T)(Oe=>Oe?.join(", ")||""))])),(0,nt.T)(([F,Oe,Ke])=>({ratingInfo:F,descriptors:Oe,elements:Ke})),(0,$a.t)(1),(0,r.Q)(this.destroy$))}imageLoaded(){this.imageLoaded$.next(!0)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.rXU(m.J6),g.rXU(B.QP),g.rXU(Cr))}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["gfn-content-rating"]],inputs:{contentRatings:"contentRatings"},decls:4,vars:7,consts:[["fxLayout","row","fxFlex","auto",1,"content-rating-container"],[4,"ngIf"],[1,"rating-logo"],[3,"load","src"],["fxLayout","column",1,"rating-details"],["dir","auto",1,"rating-title","font-sub2"],[1,"font-body3","font-color-tertiary","content-descriptors"],[1,"font-body3","interactive-elements"]],template:function(Oe,Ke){1&Oe&&(g.j41(0,"div",0),g.nI1(1,"async"),g.DNE(2,Zo,5,4,"ng-container",1),g.nI1(3,"async"),g.k0s()),2&Oe&&(g.AVh("small-screen",g.bMT(1,3,Ke.isSmallScreen$)),g.R7$(2),g.Y8G("ngIf",g.bMT(3,5,Ke.ratingData$)))},dependencies:[O.bT,X.DJ,X.UI,O.Jj],styles:["hr[_ngcontent-%COMP%]{height:1px;background-color:#ffffff4d;border:none;width:100%;margin:0}.rating-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:68px;width:auto}.isLtr[_nghost-%COMP%] .rating-details[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rating-details[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .rating-details[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .rating-details[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rating-details[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .rating-details[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .rating-details[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rating-details[_ngcontent-%COMP%]{text-align:left}html[dir=ltr][_ngcontent-%COMP%] .rating-details[_ngcontent-%COMP%]{--dummy0: 0;text-align:left}.isRtl[_nghost-%COMP%] .rating-details[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rating-details[_ngcontent-%COMP%]{text-align:right}html[dir=rtl][_ngcontent-%COMP%] .rating-details[_ngcontent-%COMP%]{--dummy0: 0;text-align:right}.content-descriptors[_ngcontent-%COMP%]{padding-top:3px;padding-bottom:4px}.interactive-elements[_ngcontent-%COMP%]{padding-top:3px}.content-rating-container.small-screen[_ngcontent-%COMP%] .rating-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:53px}.tv-view[_nghost-%COMP%] .content-rating-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .content-rating-container[_ngcontent-%COMP%]{padding:0;background-image:unset}.tv-view[_nghost-%COMP%] .rating-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .rating-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:82px;width:auto}.tv-view[_nghost-%COMP%] .rating-details[_ngcontent-%COMP%] .rating-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .rating-details[_ngcontent-%COMP%] .rating-title[_ngcontent-%COMP%]{line-height:1;padding-bottom:8px}.tv-view[_nghost-%COMP%] .content-descriptors[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .content-descriptors[_ngcontent-%COMP%]{padding:0 0 8px}.tv-view[_nghost-%COMP%] .interactive-elements[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .interactive-elements[_ngcontent-%COMP%]{padding-top:8px}"],changeDetection:0})}}return it})();var vo=s(33328);g.wjB(Wr,function(){return[Sn.r,Bn.e,Ki.q,O.bT,X.DJ,X.sA,S.iV,v.An,W.HM,Ha]},function(){return[P.D9,vo.O]});const tl=it=>({"analysis-done":it});function Ie(it,Ln){1&it&&g.nrm(0,"div",6),2&it&&g.Y8G("@networkTestAnalyzerAnimation",void 0)}function Ei(it,Ln){if(1&it&&(g.nrm(0,"gfn-small-landscape-loader",7),g.nI1(1,"async")),2&it){let F;const Oe=g.XpG();g.Y8G("showHeaderSection",!Oe.isAnalysisDone)("canShowRating",Oe.canShowRating)("loadingScreensData",Oe.loadingScreensData)("contentRatings",null==(F=g.bMT(1,4,Oe.appMetadata$))?null:F.contentRatings)}}function Ls(it,Ln){if(1&it&&(g.j41(0,"div",15)(1,"span"),g.EFF(2),g.nI1(3,"translate"),g.k0s()()),2&it){const F=g.XpG(2);g.Y8G("@networkTestAnalyzerAnimation",void 0),g.R7$(2),g.SpI("",g.bMT(3,2,F.loadingScreensData.loadingText),"...")}}function Ns(it,Ln){if(1&it&&(g.j41(0,"div",16),g.nrm(1,"mat-progress-bar",17),g.k0s()),2&it){const F=g.XpG(2);g.Y8G("@networkTestAnalyzerAnimation",void 0),g.R7$(),g.Y8G("mode",F.loadingScreensData.progressBar)}}function Ps(it,Ln){if(1&it&&(g.qex(0),g.nrm(1,"gfn-content-rating",18),g.bVm()),2&it){const F=Ln.ngIf;g.R7$(),g.Y8G("contentRatings",F)}}function ja(it,Ln){1&it&&(g.j41(0,"div")(1,"span",19),g.EFF(2),g.nI1(3,"translate"),g.k0s(),g.nrm(4,"mat-icon",20),g.k0s()),2&it&&(g.R7$(2),g.JRh(g.bMT(3,1,"setup.guestApp.poweredBy")))}function Ja(it,Ln){if(1&it&&(g.j41(0,"div",8),g.DNE(1,Ls,4,4,"div",9)(2,Ns,2,2,"div",10),g.j41(3,"div",11),g.DNE(4,Ps,2,1,"ng-container",12),g.nI1(5,"async"),g.k0s(),g.j41(6,"div",13)(7,"div",14),g.DNE(8,ja,5,3,"div",12),g.k0s()()()),2&it){let F;const Oe=g.XpG();g.R7$(),g.Y8G("ngIf",!Oe.isAnalysisDone),g.R7$(),g.Y8G("ngIf",!Oe.isAnalysisDone),g.R7$(),g.Y8G("ngClass",g.eq3(8,tl,Oe.isAnalysisDone)),g.R7$(),g.Y8G("ngIf",!Oe.isGuestAppFlow&&(null==(F=g.bMT(5,6,Oe.appMetadata$))?null:F.contentRatings)),g.R7$(2),g.Y8G("@networkTestAnalyzerAnimation",void 0),g.R7$(2),g.Y8G("ngIf",!Oe.isWhiteLabelingEnabled)}}let Wa=(()=>{class it{constructor(F,Oe,Ke,nn,Nn){this.ratingService=Ke,this.lcarsService=nn,this.elementRef=Nn,this.isDefaultGameArtVisible=!0,this.isGuestAppFlow=!1,this.isWhiteLabelingEnabled=!0,this.isAnalysisDone=!1,this.loadingScreensData={loadingText:"networkTest.networkTestHeader",progressBar:ao.InDeterminate},this.isSmallScreen=!1,this.canShowRating=!0,this.logger=F.getLogger("NetworkAnalyzerComponent"),this.isGuestAppFlow=Oe.isGuestAppFlow(),this.isGuestAppFlow&&(this.isWhiteLabelingEnabled=Oe.isWhiteLabelingEnabled()),this.destroy$=new _.B7}ngOnInit(){this.isAnalysisDone=this.data?.isAnalysisDone,this.appMetadata$=this.lcarsService.getMetadataByCmsId(this.data?.cmsId).pipe((0,$a.t)())}ngAfterViewInit(){Zr._4.resizeObserver(this.elementRef.nativeElement,{minWidth:M.rX.MaxS1Width,maxHeight:M.Oh,maxWidth:M.rX.MaxS3Width}).pipe((0,va.F)(),(0,r.Q)(this.destroy$)).subscribe(F=>{this.logger.info("Is small screen device: ",F),this.isSmallScreen=F},F=>{this.logger.error("Resize Observer error: ",F.toString())})}ngOnChanges(){this.isAnalysisDone=this.data?.isAnalysisDone,this.logger.info("isAnalysisDone changed: ",this.data?.isAnalysisDone)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.rXU(m.J6),g.rXU(Mn.x),g.rXU(Cr),g.rXU(Ir.Br),g.rXU(g.aKT))}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["gfn-network-test-analyzer"]],inputs:{data:"data"},features:[g.OA$],decls:6,vars:3,consts:[["class","analyzer-ui-scrim depth-lowest",4,"ngIf"],[3,"showHeaderSection","canShowRating","loadingScreensData","contentRatings",4,"ngIf"],["fxLayout","column","fxFlex","",1,"depth-middle","analyzer-ui-container"],[1,"analyzer-ui-top-image"],["src","shared/assets/img/DefaultStreamerBackgroundArt.jpg",1,"game-art"],["class","analyzer-ui-full-scrollable-container","fxLayout","column","fxFlex","",4,"ngIf"],[1,"analyzer-ui-scrim","depth-lowest"],[3,"showHeaderSection","canShowRating","loadingScreensData","contentRatings"],["fxLayout","column","fxFlex","",1,"analyzer-ui-full-scrollable-container"],["class","analyzer-ui-header",4,"ngIf"],["class","analyzer-ui-progress-bar",4,"ngIf"],[1,"analyzer-ui-primary-content-scrollable-container",3,"ngClass"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between start",1,"analyzer-ui-secondary-content-container"],[1,"analyzer-ui-secondary-content"],[1,"analyzer-ui-header"],[1,"analyzer-ui-progress-bar"],[3,"mode"],[3,"contentRatings"],[1,"no-wrap","font-sub3"],["svgIcon","nvidia-logo-horiz-rgb-wht-for-screen",1,"poweredByIcon"]],template:function(Oe,Ke){1&Oe&&(g.DNE(0,Ie,1,1,"div",0)(1,Ei,2,6,"gfn-small-landscape-loader",1),g.j41(2,"div",2)(3,"div",3),g.nrm(4,"img",4),g.k0s(),g.DNE(5,Ja,9,10,"div",5),g.k0s()),2&Oe&&(g.Y8G("ngIf",!Ke.isSmallScreen),g.R7$(),g.Y8G("ngIf",Ke.isSmallScreen),g.R7$(4),g.Y8G("ngIf",!Ke.isSmallScreen))},styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[_nghost-%COMP%]{--full-scrollable-container-left-margin: 40px}.analyzer-ui-container[_ngcontent-%COMP%]{background-color:transparent;overflow:hidden;position:relative}.analyzer-ui-scrim[_ngcontent-%COMP%]{background:linear-gradient(90deg,#000000e6,#000000d9 29%,#000000c9 42%,#000000b3 54%,#0009,#0000007a 74%,#00000054 82%,#0000003b 87%,#00000012 95%,#0000);width:100%;height:100%;position:absolute}.isRtl[_nghost-%COMP%] .analyzer-ui-scrim[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .analyzer-ui-scrim[_ngcontent-%COMP%]{background:linear-gradient(270deg,#000000e6,#000000d9 29%,#000000c9 42%,#000000b3 54%,#0009,#0000007a 74%,#00000054 82%,#0000003b 87%,#00000012 95%,#0000)}.analyzer-ui-top-image[_ngcontent-%COMP%]{display:none}.analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{height:100%;width:400px}.isLtr[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-left:var(--full-scrollable-container-left-margin)}html[dir=ltr][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-left:var(--full-scrollable-container-left-margin)}.isRtl[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-right:var(--full-scrollable-container-left-margin)}html[dir=rtl][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-right:var(--full-scrollable-container-left-margin)}.analyzer-ui-header[_ngcontent-%COMP%]{--font-header-font-size: 34px;--font-header-line-height: 48px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:700;margin-top:48px}.tv-view[_ngcontent-%COMP%] .analyzer-ui-header[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .analyzer-ui-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .analyzer-ui-header[_ngcontent-%COMP%]{--font-header-font-size: 68px;--font-header-line-height: 96px}.analyzer-ui-header[_ngcontent-%COMP%] .eta-info[_ngcontent-%COMP%]{margin-top:16px}.analyzer-ui-progress-bar[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:24px}.analyzer-ui-primary-content-scrollable-container[_ngcontent-%COMP%]{height:100%;overflow-y:auto}.analyzer-ui-primary-content-scrollable-container.analysis-done[_ngcontent-%COMP%]{margin-top:24px}.analyzer-ui-secondary-content-container[_ngcontent-%COMP%]{width:calc(100vw - var(--full-scrollable-container-left-margin));margin-top:24px;margin-bottom:24px}.analyzer-ui-secondary-content[_ngcontent-%COMP%]{width:400px}.analyzer-ui-secondary-content[_ngcontent-%COMP%] .poweredByIcon[_ngcontent-%COMP%]{width:82px;height:15px;vertical-align:middle}.isLtr[_nghost-%COMP%] .analyzer-ui-secondary-content[_ngcontent-%COMP%] .poweredByIcon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .analyzer-ui-secondary-content[_ngcontent-%COMP%] .poweredByIcon[_ngcontent-%COMP%]{margin-left:10px}html[dir=ltr][_ngcontent-%COMP%] .analyzer-ui-secondary-content[_ngcontent-%COMP%] .poweredByIcon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:10px}.isRtl[_nghost-%COMP%] .analyzer-ui-secondary-content[_ngcontent-%COMP%] .poweredByIcon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .analyzer-ui-secondary-content[_ngcontent-%COMP%] .poweredByIcon[_ngcontent-%COMP%]{margin-right:10px}html[dir=rtl][_ngcontent-%COMP%] .analyzer-ui-secondary-content[_ngcontent-%COMP%] .poweredByIcon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:10px}.tv-view[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden;width:720px}.tv-view[_nghost-%COMP%] .analyzer-ui-scrim[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .analyzer-ui-scrim[_ngcontent-%COMP%]{max-width:1080px}.tv-view[_nghost-%COMP%] .analyzer-ui-progress-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .analyzer-ui-progress-bar[_ngcontent-%COMP%]{width:720px}@media (max-width: 479px){.analyzer-ui-scrim[_ngcontent-%COMP%]{background:#191919!important}.analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--full-scrollable-container-left-margin: 24px;--full-scrollable-container-right-padding: 24px;overflow-y:auto;overflow-x:hidden;width:auto}.isLtr[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-left:var(--full-scrollable-container-left-margin)}html[dir=ltr][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-left:var(--full-scrollable-container-left-margin)}.isRtl[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-right:var(--full-scrollable-container-left-margin)}html[dir=rtl][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-right:var(--full-scrollable-container-left-margin)}.isLtr[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{padding-right:var(--full-scrollable-container-right-padding)}html[dir=ltr][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy2: 0;padding-right:var(--full-scrollable-container-right-padding)}.isRtl[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{padding-left:var(--full-scrollable-container-right-padding)}html[dir=rtl][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy2: 0;padding-left:var(--full-scrollable-container-right-padding)}.analyzer-ui-full-scrollable-container[_ngcontent-%COMP%] .analyzer-ui-secondary-content[_ngcontent-%COMP%]{width:auto}.analyzer-ui-header[_ngcontent-%COMP%]{--font-header-font-size: 24px;--font-header-line-height: 32px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500;margin-top:24px}.tv-view[_ngcontent-%COMP%] .analyzer-ui-header[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .analyzer-ui-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .analyzer-ui-header[_ngcontent-%COMP%]{--font-header-font-size: 48px;--font-header-line-height: 64px}.analyzer-ui-top-image[_ngcontent-%COMP%]{display:block}.analyzer-ui-top-image[_ngcontent-%COMP%] .game-art[_ngcontent-%COMP%]{width:100vw;height:auto}.analyzer-ui-primary-content-scrollable-container[_ngcontent-%COMP%]{overflow-y:initial;height:initial}.analyzer-ui-secondary-content-container[_ngcontent-%COMP%]{flex-direction:column!important;width:100%}}@media (min-width: 480px) and (max-width: 719px){.analyzer-ui-scrim[_ngcontent-%COMP%]{max-width:100%}.analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{width:83.33%}.isLtr[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-left:32px}html[dir=ltr][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-left:32px}.isRtl[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-right:32px}html[dir=rtl][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-right:32px}}@media (min-width: 720px) and (max-width: 959px){.analyzer-ui-scrim[_ngcontent-%COMP%]{max-width:100%}.analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{width:62.5%}.isLtr[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-left:32px}html[dir=ltr][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-left:32px}.isRtl[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-right:32px}html[dir=rtl][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-right:32px}}@media (min-width: 960px) and (max-width: 1439px){.analyzer-ui-scrim[_ngcontent-%COMP%]{max-width:50%}.analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{width:50%}.isLtr[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-left:40px}html[dir=ltr][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-left:40px}.isRtl[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-right:40px}html[dir=rtl][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-right:40px}}@media (min-width: 1440px) and (max-width: 1919px),(min-width: 1920px){.analyzer-ui-scrim[_ngcontent-%COMP%]{max-width:50%}.analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{width:33%}.isLtr[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-left:40px}html[dir=ltr][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-left:40px}.isRtl[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-right:40px}html[dir=rtl][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-right:40px}}@media screen and (min-width: 480px) and (max-width: 719px),screen and (min-width: 481px) and (max-height: 431px){.analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden;width:auto;display:block!important}.analyzer-ui-full-scrollable-container[_ngcontent-%COMP%] .analyzer-ui-secondary-content[_ngcontent-%COMP%]{width:400px}.analyzer-ui-header[_ngcontent-%COMP%]{--font-header-font-size: 24px;--font-header-line-height: 32px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500;margin-top:24px}.tv-view[_ngcontent-%COMP%] .analyzer-ui-header[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .analyzer-ui-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .analyzer-ui-header[_ngcontent-%COMP%]{--font-header-font-size: 48px;--font-header-line-height: 64px}.analyzer-ui-progress-bar[_ngcontent-%COMP%]{width:400px}.isLtr[_nghost-%COMP%] .analyzer-ui-progress-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .analyzer-ui-progress-bar[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .analyzer-ui-progress-bar[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .analyzer-ui-progress-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .analyzer-ui-progress-bar[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .analyzer-ui-progress-bar[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.analyzer-ui-primary-content-scrollable-container[_ngcontent-%COMP%]{overflow-y:hidden;height:initial}.analyzer-ui-secondary-content-container[_ngcontent-%COMP%]{flex-direction:column!important;width:100%}}"],data:{animation:[(0,ts.hZ)("networkTestAnalyzerAnimation",[(0,ts.kY)("void => *",[(0,ts.iF)({opacity:"0"}),(0,ts.i0)("0.3s ease-in",(0,ts.iF)({opacity:"1"}))]),(0,ts.kY)("* => void",[(0,ts.iF)({opacity:"1"}),(0,ts.i0)("0.3s ease-out",(0,ts.iF)({opacity:"0"}))])])]}})}}return it})();var Ea=s(68477),Ks=s(58202);const na=it=>({troubleshootLink:it}),zi=it=>({serversLink:it}),mr=it=>({routersLink:it});function lr(it,Ln){if(1&it&&(g.j41(0,"span",10),g.EFF(1),g.nI1(2,"translate"),g.k0s()),2&it){const F=g.XpG().$implicit;g.R7$(),g.JRh(g.bMT(2,1,F.text))}}function je(it,Ln){if(1&it&&(g.nrm(0,"span",11),g.nI1(1,"translate")),2&it){const F=g.XpG().$implicit,Oe=g.XpG();g.Y8G("innerHTML",g.i5U(1,1,Oe.tipLinkString,g.eq3(4,zi,'href="'+F.linkUrl+'" class="font-body2-link"')),g.npT)}}function Ft(it,Ln){if(1&it&&(g.j41(0,"div")(1,"div",6),g.nrm(2,"span",7),g.DNE(3,lr,3,3,"span",8)(4,je,2,6,"span",9),g.k0s()()),2&it){const F=Ln.$implicit;g.R7$(3),g.Y8G("ngIf",!F.hasLink),g.R7$(),g.Y8G("ngIf",F.hasLink)}}function un(it,Ln){if(1&it){const F=g.RV6();g.j41(0,"span",3),g.nI1(1,"translate"),g.bIt("click",function(){g.eBV(F);const Ke=g.XpG();return g.Njj(Ke.onClickTroubleshoot())}),g.k0s()}if(2&it){const F=g.XpG();g.Y8G("innerHTML",g.i5U(1,2,"networkTest.checkRecommendedRouters",g.eq3(5,mr,'href="'+F.routersLink+'" class="font-body3-link"')),g.npT)("shortUrl",F.routersShortUrl)}}function wn(it,Ln){1&it&&(g.j41(0,"span",12),g.EFF(1),g.nI1(2,"translate"),g.k0s()),2&it&&(g.R7$(),g.JRh(g.bMT(2,1,"networkTest.checkRecommendedRoutersEcomRestricted")))}let zn=(()=>{class it{constructor(F,Oe,Ke,nn,Nn){this.localeService=Oe,this.networkTestService=Ke,this.telemetryUtil=nn,this.ecomService=Nn,this.tipLinkString="networkTest.farAwayFromServers",this.canHardUpsell=!0,this.logger=F.getLogger("libraries/network-test/NetworkTipsComponent"),this.destroy$=new _.B7,this.canHardUpsell=this.ecomService.canHardUpsell()}ngOnInit(){this.updateTips(),this.networkTestService.networkLinks.pipe((0,r.Q)(this.destroy$)).subscribe(F=>{this.troubleshootLink=F[0],this.troubleshootShortUrl=F[1],this.routersLink=F[2],this.routersShortUrl=F[3]})}ngOnChanges(){this.updateTips()}updateTips(){this.logger.info("update network tips, network conditions: ",this.networkConditionsData),(0,c.isNil)(this.networkConditionsData)||(this.networkConditions=[],this.trobleshootTips=[],this.getNetworkConditions(),this.getTroubleshootTips())}getNetworkConditions(){this.logger.info("Current network conditions passed from parent component: ",this.networkConditionsData),this.networkConditionsData.isVpn&&this.networkConditions.push(Fi.VPN),(0,c.isNil)(this.networkConditionsData.zoneOverride)||this.networkConditions.push(Fi.ZoneOverride),(0,c.isNil)(this.networkConditionsData.latency)||(this.networkConditionsData.latency>150&&this.networkConditions.push(Fi.Latency_more_150),this.networkConditionsData.latency>80&&this.networkConditionsData.latency<=150&&this.networkConditions.push(Fi.Latency_more_80)),(0,c.isNil)(this.networkConditionsData.bandwidth)||this.networkConditionsData.bandwidth<15&&this.networkConditions.push(Fi.Bandwidth_less_15),(0,c.isNil)(this.networkConditionsData.networkType)||(this.networkConditionsData.networkType===m.Sd.WiFi2_4&&this.networkConditions.push(Fi.Wifi_2_4),(this.networkConditionsData.networkType===m.Sd.WiFi2_4||this.networkConditionsData.networkType===m.Sd.WiFi5_0||this.networkConditionsData.networkType===m.Sd.WiFi6_0||this.networkConditionsData.networkType===m.Sd.WiFiUnknown)&&this.networkConditions.push(Fi.Wifi)),this.networkConditionsData.isOffline&&this.networkConditions.push(Fi.Offline),this.logger.info("Current network conditions are: ",this.networkConditions)}getTroubleshootTips(){const F=[],Oe=this.networkConditionsData.isOffline?2:this.networkConditionsData.isVpn?1:3;this.networkConditions.forEach(Ke=>{const nn=(0,c.cloneDeep)(bt.find(Nn=>Nn.condition===Ke));nn.hasLink&&this.localeService.localeChanged.pipe((0,Et.$)()).subscribe(Nn=>{nn.linkUrl=`${It.r7.BaseUrl}${Nn}&page=${nn.linkUrl}`}),F.push(nn)}),bt.forEach(Ke=>{Ke.condition===Fi.Any&&F.push(Ke)}),F.sort((Ke,nn)=>Ke.priority-nn.priority),this.networkConditionsData.isOffline&&(F[1]=bt.find(Ke=>"networkTest.restartRouter"===Ke.text)),this.trobleshootTips=F.slice(0,Oe),this.logger.info("Show top trobleshoot tips for current network: ",this.trobleshootTips)}onClickTroubleshoot(){this.networkTestService.sendNetworkTroubleshootClickedTelemetry(this.telemetryUtil.getClientType())}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.rXU(m.J6),g.rXU(m.iH),g.rXU(si),g.rXU(bn.jgD),g.rXU(Ks.yJ))}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["gfn-network-tips"]],inputs:{networkConditionsData:"networkConditionsData"},features:[g.OA$],decls:8,vars:10,consts:[["fxLayout","column","fxLayoutAlign","space-between start",1,"network-tips","tips-results"],[4,"ngFor","ngForOf"],["cdkMonitorSubtreeFocus",""],[1,"font-body3","help-links",3,"click","innerHTML","shortUrl"],["class","font-body3 help-links",3,"innerHTML","shortUrl","click",4,"ngIf"],["class","font-body3 help-links",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start start"],[1,"bullet-unordered-tips","font-body2"],["class","font-body2",4,"ngIf"],["cdkMonitorSubtreeFocus","","class","font-body2",3,"innerHTML",4,"ngIf"],[1,"font-body2"],["cdkMonitorSubtreeFocus","",1,"font-body2",3,"innerHTML"],[1,"font-body3","help-links"]],template:function(Oe,Ke){1&Oe&&(g.j41(0,"div",0)(1,"div"),g.DNE(2,Ft,5,2,"div",1),g.k0s(),g.j41(3,"div",2)(4,"span",3),g.nI1(5,"translate"),g.bIt("click",function(){return Ke.onClickTroubleshoot()}),g.k0s(),g.DNE(6,un,2,7,"span",4)(7,wn,3,3,"span",5),g.k0s()()),2&Oe&&(g.R7$(2),g.Y8G("ngForOf",Ke.trobleshootTips),g.R7$(2),g.Y8G("innerHTML",g.i5U(5,5,"networkTest.viewMoreTroubleshootTips",g.eq3(8,na,'href="'+Ke.troubleshootLink+'" class="font-body3-link", target="_blank"')),g.npT)("shortUrl",Ke.troubleshootShortUrl),g.R7$(2),g.Y8G("ngIf",Ke.canHardUpsell),g.R7$(),g.Y8G("ngIf",!Ke.canHardUpsell))},dependencies:[O.Sq,O.bT,X.DJ,X.sA,Sn.r,Bn.e,l.vR,P.D9],styles:['[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.network-tips[_ngcontent-%COMP%]{height:181px;padding:24px;overflow-y:auto}.tips-results[_ngcontent-%COMP%]{background-color:#0000004d}.help-links[_ngcontent-%COMP%]{margin-top:24px}.bullet-unordered-tips[_ngcontent-%COMP%]:before{content:"-"}.isLtr[_nghost-%COMP%] .bullet-unordered-tips[_ngcontent-%COMP%]:before, .isLtr [_nghost-%COMP%] .bullet-unordered-tips[_ngcontent-%COMP%]:before{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .bullet-unordered-tips[_ngcontent-%COMP%]:before{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .bullet-unordered-tips[_ngcontent-%COMP%]:before, .isRtl [_nghost-%COMP%] .bullet-unordered-tips[_ngcontent-%COMP%]:before{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .bullet-unordered-tips[_ngcontent-%COMP%]:before{--dummy4: 0;margin-left:8px}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.network-tips[_ngcontent-%COMP%]{height:unset;background-color:unset}}.tv-view[_nghost-%COMP%] .network-tips[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .network-tips[_ngcontent-%COMP%]{height:300px;padding:38px}']})}}return it})();var vi=s(81247),Si=s(2218),Ri=s(54676),nr=s(49219),_r=s(25369);g.wjB(Qo,[O.YU,O.bT,O.ux,O.e1,X.DJ,X.sA,X.G2,H.PW,Ea.mq,Ea.T8,zn,vi.D,Si.R,Ri.sd,nr.q,Ia,Vo,Yo,ks,Wa],[P.D9]),g.wjB(fo,[X.G2,_r.D,Qo],[]),g.wjB(Ia,[v.An,O.YU,O.Sq,O.bT,X.DJ,X.sA,X.UI,H.PW,Va],[P.D9]),g.wjB(Vo,[v.An,S.iV,O.bT,P.Mm,X.DJ,X.sA,X.UI,Sn.r,Bn.e,Li,Va],[P.D9]),g.wjB(Wa,[v.An,O.YU,O.bT,X.DJ,X.sA,X.UI,H.PW,W.HM,Ha,Wr],[O.Jj,P.D9]),g.wjB(cn,[O.YU,O.bT,O.ux,O.e1,X.DJ,X.sA,H.PW,Ea.mq,Ea.T8,zn,Si.R,Ri.sd,Ia,Vo,Yo,ks],[P.D9]);var po=s(93181),To=s(26114),rn=s(18587),Di=s(80561),Te=s(79858),Jt=s(98504);const Rt=["welcomeContentContainer"],ei=["welcomeContent"],tr=it=>({"anon-user":it}),Ur=it=>({"gray-out":it}),lo=it=>({privacyCenterLink:it}),wo=it=>({privacyPolicyLink:it}),Lr=it=>({termsOfUseLink:it}),ns=it=>({cookiePolicyLink:it});function Io(it,Ln){if(1&it&&(g.nrm(0,"h1",14),g.nI1(1,"translate")),2&it){const F=g.XpG();g.Y8G("innerHTML",g.i5U(1,1,"oobe.gfnVersionText",F.gfnVersionText),g.npT)}}function da(it,Ln){if(1&it&&(g.j41(0,"div",15),g.nrm(1,"mat-icon",16),g.k0s()),2&it){const F=g.XpG();g.R7$(),g.Y8G("ngClass",g.eq3(1,Ur,!F.highlightScrollUpIndicator))}}function _a(it,Ln){if(1&it&&(g.nrm(0,"h1",14),g.nI1(1,"translate")),2&it){const F=g.XpG();g.Y8G("innerHTML",g.i5U(1,1,"oobe.gfnVersionText",F.gfnVersionText),g.npT)}}function Mt(it,Ln){if(1&it&&(g.nrm(0,"p",17),g.nI1(1,"translate")),2&it){const F=g.XpG(2);g.Y8G("innerHTML",g.i5U(1,2,"oobe.oobeCookiePolicyText",g.eq3(5,ns,F.cookiePolicyLink)),g.npT)("shortUrl",F.cookiePolicyShortUrl)}}function Dn(it,Ln){if(1&it&&(g.j41(0,"span")(1,"p"),g.nrm(2,"span",17),g.nI1(3,"translate"),g.k0s(),g.j41(4,"p"),g.nrm(5,"span",17),g.nI1(6,"translate"),g.k0s(),g.DNE(7,Mt,2,7,"p",18),g.j41(8,"p"),g.nrm(9,"span",17),g.nI1(10,"translate"),g.k0s()()),2&it){const F=g.XpG();g.R7$(2),g.Y8G("innerHTML",g.i5U(3,7,"oobe.oobeText",g.eq3(16,lo,F.privacyCenterLink)),g.npT)("shortUrl",F.privacyCenterShortUrl),g.R7$(3),g.Y8G("innerHTML",g.i5U(6,10,"oobe.oobePrivacyText",g.eq3(18,wo,F.privacyPolicyLink)),g.npT)("shortUrl",F.privacyPolicyShortUrl),g.R7$(2),g.Y8G("ngIf",F.isBrowserPlatform),g.R7$(2),g.Y8G("innerHTML",g.i5U(10,13,"oobe.agreeToTermsOfUse",g.eq3(20,Lr,F.termsOfUseLink)),g.npT)("shortUrl",F.termsOfUseShortUrl)}}function qt(it,Ln){1&it&&(g.j41(0,"p"),g.EFF(1),g.nI1(2,"translate"),g.k0s()),2&it&&(g.R7$(),g.JRh(g.bMT(2,1,"oobe.ecomRestricted.oobeCookiePolicyText")))}function Pn(it,Ln){if(1&it&&(g.j41(0,"span")(1,"p"),g.EFF(2),g.nI1(3,"translate"),g.k0s(),g.j41(4,"p"),g.EFF(5),g.nI1(6,"translate"),g.k0s(),g.DNE(7,qt,3,3,"p",10),g.j41(8,"p"),g.EFF(9),g.nI1(10,"translate"),g.k0s()()),2&it){const F=g.XpG();g.R7$(2),g.JRh(g.bMT(3,4,"oobe.ecomRestricted.oobeText")),g.R7$(3),g.JRh(g.bMT(6,6,"oobe.ecomRestricted.oobePrivacyText")),g.R7$(2),g.Y8G("ngIf",F.isBrowserPlatform),g.R7$(2),g.JRh(g.bMT(10,8,"oobe.ecomRestricted.agreeToTermsOfUse"))}}function yi(it,Ln){if(1&it){const F=g.RV6();g.j41(0,"div",19),g.nrm(1,"mat-divider"),g.j41(2,"mat-checkbox",20),g.mxI("ngModelChange",function(Ke){g.eBV(F);const nn=g.XpG();return g.DH7(nn.anonUserConsent,Ke)||(nn.anonUserConsent=Ke),g.Njj(Ke)}),g.j41(3,"span",21),g.EFF(4),g.nI1(5,"translate"),g.k0s()()()}if(2&it){const F=g.XpG();g.R7$(2),g.R50("ngModel",F.anonUserConsent),g.R7$(2),g.SpI(" ",g.bMT(5,2,"oobe.oobeAnonUserConsent"),"")}}function ur(it,Ln){if(1&it&&(g.j41(0,"div",15),g.nrm(1,"mat-icon",22),g.k0s()),2&it){const F=g.XpG();g.R7$(),g.Y8G("ngClass",g.eq3(1,Ur,!F.highlightScrollUpDownIndicator))}}let Pr=(()=>{class it{constructor(F,Oe,Ke,nn,Nn,_i,Wi,or,Hr,Mo){this.oobeService=Ke,this.telemetryService=nn,this.userConsentService=Nn,this.oobeTelemetryService=_i,this.gfnSdkService=Wi,this.guestModeHelperService=or,this.spatialNavigationService=Hr,this.redirectService=Mo,this.gfnVersionText={productVersion:""},this.privacyPolicyShortUrl=It.lp[It.r7.PrivacyPolicy],this.cookiePolicyShortUrl=It.lp[It.r7.CookiePolicy],this.termsOfUseShortUrl=It.lp[It.r7.TermsConditions],this.privacyCenterShortUrl=It.lp[It.r7.PrivacyCenter],this.welcomeContentViewed=!0,this.welcomeContentVisible=!0,this.anonUserConsent=!1,this.highlightScrollUpIndicator=!1,this.highlightScrollUpDownIndicator=!1,this.canHardUpsell=!0,this.agreeButtonClick=new g.bkB,this.logger=F.getLogger("OobeWelcomeComponent"),this.canHardUpsell=Oe.canHardUpsell(),this.isBrowserPlatform=m.zk.isBrowserPlatform(),this.isAnonUser$=this.guestModeHelperService.isGuestMode?(0,Fe.of)(!1):this.gfnSdkService.getIsAnonymousUser(),this.destroy$=new _.B7}ngOnInit(){this.gfnVersionText.productVersion=this.oobeService.getProductVersion,this.parentScreen=this.telemetryService.getScreen(),this.telemetryService.setScreen(bn.MCB.ScreenOobeWelcome);const F=this.redirectService.getRedirectUrl(It.r7.PrivacyPolicy).pipe((0,a.s)(1)),Oe=this.redirectService.getRedirectUrl(It.r7.TermsConditions).pipe((0,a.s)(1)),Ke=this.redirectService.getRedirectUrl(It.r7.CookiePolicy).pipe((0,a.s)(1)),nn=this.redirectService.getRedirectUrl(It.r7.PrivacyCenter).pipe((0,a.s)(1));(0,Zi.yU)(F,Oe,Ke,nn).pipe((0,r.Q)(this.destroy$)).subscribe(([Nn,_i,Wi,or])=>{const Hr="font-body2-link";this.privacyPolicyLink=`href="${Nn}" class="${Hr}"`,this.cookiePolicyLink=`href="${Wi}" class="${Hr}"`,this.termsOfUseLink=`href="${_i}" class="${Hr} no-wrap"`,this.privacyCenterLink=`href="${or}" class="${Hr}"`}),this.userConsentService.getAnonUserConsentData().pipe((0,r.Q)(this.destroy$)).subscribe(Nn=>{this.anonUserConsent=Nn.userConsent?.technical===I.Rg.Full})}ngAfterViewInit(){this.spatialNavigationService.setStartingPoint(this.welcomeContentElement.nativeElement.firstElementChild),Zr._4.onResize(this.welcomeContentElement.nativeElement).pipe((0,r.Q)(this.destroy$)).subscribe(F=>this.checkIfWelcomeContentViewed()),setTimeout(()=>{this.checkIfWelcomeContentViewed()})}onScrollWelcomeContent(){this.checkIfWelcomeContentViewed()}onOrientationChange(){this.welcomeContentContainerElement.nativeElement.scrollTop=0}checkIfWelcomeContentViewed(){const F=this.welcomeContentContainerElement.nativeElement.getBoundingClientRect(),Oe=this.welcomeContentElement.nativeElement.getBoundingClientRect(),Ke=F.bottom,_i=Oe.bottom;this.welcomeContentVisible=_i<=Ke&&Oe.top>=F.top,this.welcomeContentViewed=_i-1<=Ke,this.tvMode&&(this.highlightScrollUpIndicator=!(0===this.welcomeContentContainerElement.nativeElement.scrollTop),this.highlightScrollUpDownIndicator=!this.welcomeContentViewed)}agreeAndContinue(){let F=null,Oe=null;this.logger.info("oobe, welcome screen - agree and continue clicked"),this.saveTermsSubscription=(0,po.p)({saveTouResponse:this.oobeService.saveTermsOfUseAcceptedVersion(),isAnonUser:this.isAnonUser$}).pipe((0,Ze.M)(Ke=>{this.logger.info("Success writing accepted version"+Ke.saveTouResponse),this.oobeTelemetryService.oobeCompleted=!0}),(0,$e.ZZ)(Ke=>(F=Ke.isAnonUser,Ke.isAnonUser?(this.logger.info("oobe welcome setAnonUserConsentData. TechnicalConsent="+this.anonUserConsent),Oe=this.anonUserConsent?I.Xj:I.bC,this.userConsentService.setAnonUserConsentData(Oe)):(this.logger.event("oobe welcome setDefaultConsentData"),Oe=this.guestModeHelperService.isGuestMode?I.FE:I.bC,this.userConsentService.setDefaultConsentData(Oe))))).pipe((0,a.s)(1)).subscribe(()=>{this.logger.info("Successfully set default consent data"),this.oobeTelemetryService.sendOobeAcceptEvent(bn.uKc.OobeAgreeAndContinue,F,Oe.technical),this.agreeButtonClick.emit()},Ke=>{this.logger.error("Failed to set default consent data",Ke)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.saveTermsSubscription&&this.saveTermsSubscription.unsubscribe(),this.telemetryService.setScreen(this.parentScreen)}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.rXU(m.J6),g.rXU(Ks.yJ),g.rXU(To.Z),g.rXU(I.H0),g.rXU(rn.F),g.rXU(Di.M),g.rXU(Pi.DL),g.rXU(Mn.x),g.rXU(M.ED),g.rXU(It.Q5))}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["gfn-oobe-welcome"]],viewQuery:function(Oe,Ke){if(1&Oe&&(g.GBs(Rt,5),g.GBs(ei,5)),2&Oe){let nn;g.mGM(nn=g.lsd())&&(Ke.welcomeContentContainerElement=nn.first),g.mGM(nn=g.lsd())&&(Ke.welcomeContentElement=nn.first)}},hostBindings:function(Oe,Ke){1&Oe&&g.bIt("orientationchange",function(){return Ke.onOrientationChange()},!1,g.tSv)},inputs:{tvMode:"tvMode"},outputs:{agreeButtonClick:"agreeButtonClick"},decls:25,vars:24,consts:[["welcomeContentContainer",""],["welcomeContent",""],["fxFlex","","fxLayout","column","nvSpatialNavigationContainer","","nvTrapFocus","",1,"container"],["fxFlex","1 0 0",1,"welcome-header-container"],[1,"header-logo"],["svgIcon","gfnBranding"],["class","font-header6",3,"innerHTML",4,"ngIf"],["class","indicator-icon","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxFlex","8 0 0","nvLongPressScroller","","orientation","vertical","reachBoundary","end","tabindex","0",1,"welcome-content-container",3,"scroll"],[1,"welcome-text","font-body2"],[4,"ngIf"],["fxFlex","none","fxLayout","column","class","anon-user-consent-container nv-hig",4,"ngIf"],[1,"welcome-footer-container",3,"ngClass"],["mat-raised-button","","id","agreeAndContinueButton",1,"oobe-action-button","font-button2",3,"click","nvFocusRipple","disabled"],[1,"font-header6",3,"innerHTML"],["fxLayout","row","fxLayoutAlign","center center",1,"indicator-icon"],["svgIcon","carrot_up",3,"ngClass"],["cdkMonitorSubtreeFocus","",3,"innerHTML","shortUrl"],["cdkMonitorSubtreeFocus","",3,"innerHTML","shortUrl",4,"ngIf"],["fxFlex","none","fxLayout","column",1,"anon-user-consent-container","nv-hig"],["fxLayoutFill","",1,"anon-user-consent-checkbox",3,"ngModelChange","ngModel"],[1,"font-body2"],["svgIcon","carrot_down",3,"ngClass"]],template:function(Oe,Ke){if(1&Oe){const nn=g.RV6();g.j41(0,"div",2)(1,"div",3)(2,"div",4),g.nrm(3,"mat-icon",5),g.k0s(),g.DNE(4,Io,2,4,"h1",6)(5,da,2,3,"div",7),g.k0s(),g.j41(6,"div",8,0),g.bIt("scroll",function(){return g.eBV(nn),g.Njj(Ke.onScrollWelcomeContent())}),g.DNE(8,_a,2,4,"h1",6),g.j41(9,"div",9,1)(11,"p")(12,"span"),g.EFF(13),g.nI1(14,"translate"),g.k0s()(),g.DNE(15,Dn,11,22,"span",10)(16,Pn,11,10,"span",10),g.k0s()(),g.DNE(17,yi,6,4,"div",11),g.nI1(18,"async"),g.j41(19,"div",12),g.nI1(20,"async"),g.DNE(21,ur,2,3,"div",7),g.j41(22,"button",13),g.bIt("click",function(){return g.eBV(nn),g.Njj(Ke.agreeAndContinue())}),g.EFF(23),g.nI1(24,"translate"),g.k0s()()()}2&Oe&&(g.R7$(4),g.Y8G("ngIf",!Ke.tvMode),g.R7$(),g.Y8G("ngIf",Ke.tvMode&&!Ke.welcomeContentVisible),g.R7$(),g.xc7("overflow-y",Ke.welcomeContentVisible?"hidden":"auto"),g.R7$(2),g.Y8G("ngIf",Ke.tvMode),g.R7$(5),g.JRh(g.bMT(14,14,"oobe.oobeStatement")),g.R7$(2),g.Y8G("ngIf",Ke.canHardUpsell),g.R7$(),g.Y8G("ngIf",!Ke.canHardUpsell),g.R7$(),g.Y8G("ngIf",g.bMT(18,16,Ke.isAnonUser$)),g.R7$(2),g.Y8G("ngClass",g.eq3(22,tr,g.bMT(20,18,Ke.isAnonUser$))),g.R7$(2),g.Y8G("ngIf",Ke.tvMode&&!Ke.welcomeContentVisible),g.R7$(),g.Y8G("nvFocusRipple",!1)("disabled",!Ke.welcomeContentViewed),g.R7$(),g.SpI(" ",g.bMT(24,20,"oobe.agreeAndContinue")," "))},dependencies:[O.YU,O.bT,He.BC,He.vS,X.DJ,X.sA,X.UI,H.PW,S.iV,Q.So,v.An,d.q,vi.D,Sn.r,Si.R,Te.x,La.Aq,Ri.tG,Jt.nM,Bn.e,l.vR,O.Jj,P.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.container[_ngcontent-%COMP%]{outline:none}.welcome-header-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-top:14px;margin-bottom:14px}.welcome-content-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}.welcome-content-container[_ngcontent-%COMP%]::-webkit-scrollbar-track{box-shadow:none}.header-logo[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}.header-logo[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{display:block;width:186px;height:56px}.welcome-text[_ngcontent-%COMP%]{display:inline-block;color:#ffffffbf}.welcome-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:24px;margin-top:14px;margin-bottom:14px}.welcome-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:first-child{margin-top:0}.anon-user-consent-container[_ngcontent-%COMP%]{flex-grow:1;overflow:hidden;margin-bottom:16px}.anon-user-consent-container[_ngcontent-%COMP%] .mat-divider[_ngcontent-%COMP%]{margin-bottom:24px}.welcome-footer-container[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:8px}.welcome-footer-container.anon-user[_ngcontent-%COMP%]{margin-top:36px}.welcome-footer-container[_ngcontent-%COMP%] button.oobe-action-button[_ngcontent-%COMP%]{margin:8px 0;padding:0 8px;min-width:auto;height:36px;border:none;background-color:#393939;box-shadow:none}.isLtr[_nghost-%COMP%] .welcome-footer-container[_ngcontent-%COMP%] button.oobe-action-button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .welcome-footer-container[_ngcontent-%COMP%] button.oobe-action-button[_ngcontent-%COMP%]{float:right}html[dir=ltr][_ngcontent-%COMP%] .welcome-footer-container[_ngcontent-%COMP%] button.oobe-action-button[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isRtl[_nghost-%COMP%] .welcome-footer-container[_ngcontent-%COMP%] button.oobe-action-button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .welcome-footer-container[_ngcontent-%COMP%] button.oobe-action-button[_ngcontent-%COMP%]{float:left}html[dir=rtl][_ngcontent-%COMP%] .welcome-footer-container[_ngcontent-%COMP%] button.oobe-action-button[_ngcontent-%COMP%]{--dummy0: 0;float:left}.welcome-footer-container[_ngcontent-%COMP%] button.oobe-action-button[disabled][_ngcontent-%COMP%]{background-color:#393939;opacity:.38}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.container[_ngcontent-%COMP%]{width:100%;height:100%}.header-logo[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{width:186px;height:auto}.welcome-footer-container[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;display:flex;align-items:center;justify-content:flex-end}}.tv-view[_nghost-%COMP%], .tv-view [_nghost-%COMP%]{--container-margin: 64px 112px 64px 112px;--welcome-text-width: 98%}@media (min-width: 1440px) and (max-width: 1919px),(min-width: 1920px){.tv-view[_nghost-%COMP%], .tv-view [_nghost-%COMP%]{--container-margin: 56px 88px 60px 88px;--welcome-text-width: 75%}}.tv-view[_nghost-%COMP%] .container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .container[_ngcontent-%COMP%]{margin:var(--container-margin)}.tv-view[_nghost-%COMP%] .header-logo[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .header-logo[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{height:100px;width:auto}.tv-view[_nghost-%COMP%] .indicator-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .indicator-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{height:48px;width:48px}.tv-view[_nghost-%COMP%] .indicator-icon[_ngcontent-%COMP%] .mat-icon.gray-out[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .indicator-icon[_ngcontent-%COMP%] .mat-icon.gray-out[_ngcontent-%COMP%]{color:#ffffff14}.tv-view[_nghost-%COMP%] .welcome-header-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .welcome-header-container[_ngcontent-%COMP%]{margin-bottom:16px}.tv-view[_nghost-%COMP%] .welcome-content-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .welcome-content-container[_ngcontent-%COMP%]{width:100%;height:60vh}.tv-view[_nghost-%COMP%] .welcome-content-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .welcome-content-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-top:0;margin-bottom:58px}.tv-view[_nghost-%COMP%] .welcome-content-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb, .tv-view [_nghost-%COMP%] .welcome-content-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ffffff29}.tv-view[_nghost-%COMP%] .welcome-content-container[_ngcontent-%COMP%]::-webkit-scrollbar-track, .tv-view [_nghost-%COMP%] .welcome-content-container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#ffffff14}.tv-view[_nghost-%COMP%] .welcome-text[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .welcome-text[_ngcontent-%COMP%]{width:var(--welcome-text-width)}.tv-view[_nghost-%COMP%] .welcome-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .welcome-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:inherit;margin-top:58px;margin-bottom:58px}.tv-view[_nghost-%COMP%] .welcome-footer-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .welcome-footer-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;margin-bottom:0}.tv-view[_nghost-%COMP%] .welcome-footer-container[_ngcontent-%COMP%] button.oobe-action-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .welcome-footer-container[_ngcontent-%COMP%] button.oobe-action-button[_ngcontent-%COMP%]{padding:0 32px;height:72px;width:-moz-fit-content;width:fit-content;align-self:center}"]})}}return it})();var uo=s(12860),vs=s(44781),ss=s(84937),Ts=s(71962),Ro=s(87687),Gs=s(74497),es=s(22355);const hs=(it,Ln)=>[it,Ln];function Jo(it,Ln){if(1&it){const F=g.RV6();g.j41(0,"button",15),g.bIt("click",function(){g.eBV(F);const Ke=g.XpG(2);return g.Njj(Ke.closeClicked())}),g.j41(1,"mat-icon",16),g.EFF(2,"close"),g.k0s()()}}function Gr(it,Ln){if(1&it&&(g.j41(0,"div",10)(1,"div",11)(2,"h1",12),g.EFF(3),g.nI1(4,"translate"),g.k0s()(),g.j41(5,"div",13),g.DNE(6,Jo,3,0,"button",14),g.k0s()()),2&it){const F=g.XpG();g.R7$(3),g.JRh(g.bMT(4,2,"common.gfn")),g.R7$(3),g.Y8G("ngIf",F.closeButtonVisible)}}function No(it,Ln){1&it&&g.nrm(0,"img",17)}let Vs=(()=>{class it{constructor(F,Oe,Ke){this.ecommerceService=Oe,this.spatialNavigationService=Ke,this.primaryButtonClicked=new g.bkB,this.closeButtonClicked=new g.bkB,this.showLoadingOnContinue=!1,this.closeButtonVisible=!0,this.destroy$=new _.B7,this.closeButtonVisible=!F?.featureEnablement?.tvMode}ngOnInit(){this.dialogTitle="ecommerce.membershipUpdateProgressDialog.title",this.description=this.ecommerceService.isDayPassSubscription?"ecommerce.membershipUpdateProgressDialog.compactDialogDescription":"ecommerce.membershipUpdateProgressDialog.description"}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}ngAfterViewInit(){const F=document.getElementsByClassName("membership-options-link"),Oe=F?.length>0?F[0]:void 0;Oe&&this.spatialNavigationService.onClick(Oe).pipe((0,r.Q)(this.destroy$)).subscribe(Ke=>{Ke&&this.ecommerceService.openUpgradeMemberShipPage(Ro.MCB.ScreenJoinGfnDialog,Ts.U3.MembershipUpdateProgressEcomUIState)})}continueClicked(){this.showLoadingOnContinue=!0,this.ecommerceService.refreshUsersEntitlement(),this.primaryButtonClicked.emit()}closeClicked(){this.closeButtonClicked.emit()}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.rXU(yo.Vk),g.rXU(Gs.y),g.rXU(M.ED))}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["gfn-membership-update-progress"]],inputs:{data:"data"},outputs:{primaryButtonClicked:"primaryButtonClicked",closeButtonClicked:"closeButtonClicked"},decls:18,vars:21,consts:[["fxFlexFill","","fxLayout","column","nvSpatialNavigationContainer","","navigateAction","focus","nvCaptureRestoreFocus","",3,"ngClass"],["fxFlex","none","class","custom-title-bar","fxLayout","row",4,"ngIf"],["fxFlex","none","fxLayout","column"],["class","dialog-art","src","shared/assets/img/GFNUpSellBannerKV_v3.webp",4,"ngIf"],[1,"dialog-content"],[1,"font-header6"],["cdkMonitorSubtreeFocus","",1,"font-body2",3,"innerHTML"],["fxFlex","none","fxLayout","row","fxLayoutAlign","end center",1,"dialog-button"],["mat-button","",1,"font-button2",3,"click"],["mat-raised-button","","nvProgressCircular","","nvAutoFocus","",1,"font-button2","mat-accent",3,"click","isVisible"],["fxFlex","none","fxLayout","row",1,"custom-title-bar"],["fxFlex","","fxLayoutAlign","start center"],["mat-dialog-title","",1,"font-header6"],["fxFlex","","fxLayoutAlign","end center"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-font-set","material-icons"],["src","shared/assets/img/GFNUpSellBannerKV_v3.webp",1,"dialog-art"]],template:function(Oe,Ke){1&Oe&&(g.j41(0,"div",0),g.DNE(1,Gr,7,4,"div",1),g.j41(2,"div",2),g.DNE(3,No,1,0,"img",3),g.j41(4,"div",4)(5,"h2",5),g.EFF(6),g.nI1(7,"translate"),g.k0s(),g.nrm(8,"span",6),g.nI1(9,"translate"),g.nI1(10,"trustAsHtml"),g.k0s()(),g.j41(11,"div",7)(12,"button",8),g.bIt("click",function(){return Ke.closeClicked()}),g.EFF(13),g.nI1(14,"translate"),g.k0s(),g.j41(15,"button",9),g.bIt("click",function(){return Ke.continueClicked()}),g.EFF(16),g.nI1(17,"translate"),g.k0s()()()),2&Oe&&(g.Y8G("ngClass",g.l_i(18,hs,Ke.data.isStreamerApp?"main-content-streamer":"main-content-mall",Ke.data.isCompactDialog?"compact-dialog-wrapper":"")),g.R7$(),g.Y8G("ngIf",!Ke.data.isStreamerApp&&!Ke.data.isCompactDialog),g.R7$(2),g.Y8G("ngIf",!Ke.data.isCompactDialog),g.R7$(3),g.JRh(g.bMT(7,8,Ke.dialogTitle)),g.R7$(2),g.Y8G("innerHTML",g.bMT(10,12,g.bMT(9,10,Ke.description)),g.npT),g.R7$(5),g.SpI(" ",g.bMT(14,14,"common.close")," "),g.R7$(2),g.Y8G("isVisible",Ke.showLoadingOnContinue),g.R7$(),g.SpI(" ",g.bMT(17,16,"common.continue")," "))},dependencies:[X.DJ,X.sA,X.G2,X.UI,H.PW,n.BI,v.An,S.iV,O.YU,O.bT,es.N,Sn.r,Si.R,La.Aq,Bn.e,Ki.q,nr.q,vo.O,P.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.main-content-streamer[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%]{width:470px;overflow:hidden;transition:height .5s}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:470px;height:50px}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%]{margin-bottom:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:470px;height:264px;border:transparent;padding-bottom:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:24px;height:254px}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%]{padding:24px;height:91px}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{text-align:center;margin:4px 0 0}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{display:none}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{margin-top:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{flex-wrap:nowrap;margin:8px;position:relative;right:0;bottom:0}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-right:8px}.main-content-streamer[_ngcontent-%COMP%] .upsell-pane[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upsell-pane[_ngcontent-%COMP%]{height:215px}.main-content-streamer[_ngcontent-%COMP%] .upsell-pane-message[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upsell-pane-message[_ngcontent-%COMP%]{border-top:1px solid rgba(255,255,255,.15);margin:0 24px;padding:23px 0}.main-content-streamer[_ngcontent-%COMP%] .upgrade-container[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upgrade-container[_ngcontent-%COMP%]{margin:8px}.compact-dialog-wrapper[_ngcontent-%COMP%], .compact-dialog-wrapper[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{height:100%}@media (max-width: 469px){.main-content-streamer[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%]{width:100vw}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:unset}.main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:100vw;height:auto}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{width:unset}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{display:none}.main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{display:none!important}.main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{height:-moz-fit-content!important;height:fit-content!important}}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%]{width:840px;height:925px}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:100%;height:88px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-left:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-right:32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-right:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-left:32px}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:100%;height:auto}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:32px;height:auto}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{margin:8px 32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-left:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-right:32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-left:0}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%]{height:200px}.tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%]{height:288px}"]})}}return it})();const Ca=it=>[it];function sa(it,Ln){1&it&&(g.j41(0,"div",10),g.nrm(1,"div",11),g.k0s())}let as=(()=>{class it{constructor(F){this.localeService=F,this.closeButtonClicked=new g.bkB,this.serverStatusShortUrl=It.lp[It.r7.GfnServerStatus]}ngOnInit(){this.localeSubscription=this.localeService.localeChanged.subscribe(F=>{this.serverStatusUrl=It.r7.BaseUrl+F+"&page="+It.r7.GfnServerStatus})}closeClicked(){this.closeButtonClicked.emit()}ngOnDestroy(){this.localeSubscription&&this.localeSubscription.unsubscribe()}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.rXU(m.iH))}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["gfn-membership-refresh-error"]],inputs:{data:"data"},outputs:{closeButtonClicked:"closeButtonClicked"},decls:17,vars:15,consts:[["fxFlexFill","","fxLayout","column","nvSpatialNavigationContainer","","nvCaptureRestoreFocus","",3,"ngClass"],["fxFlex","none","class","custom-title-bar","fxLayout","row",4,"ngIf"],["fxFlex","","fxLayout","column"],["fxLayoutAlign","center center",1,"dialog-art"],["fontSet","nv-custom-icons","fontIcon","icon-alert-circle_reg",1,"nv-custom-icons","membership-error-icon"],[1,"dialog-content","membership-error-text"],[1,"font-body2"],["target","_blank",1,"font-body2-link",3,"href","shortUrl"],["fxFlex","none","fxLayout","row","fxLayoutAlign","end center",1,"dialog-button"],["mat-button","","nvAutoFocus","",1,"font-button1",3,"click"],["fxFlex","none","fxLayout","row",1,"custom-title-bar"],["fxFlex","","fxLayoutAlign","end center"]],template:function(Oe,Ke){1&Oe&&(g.j41(0,"div",0),g.DNE(1,sa,2,0,"div",1),g.j41(2,"div",2)(3,"div",3),g.nrm(4,"mat-icon",4),g.k0s(),g.j41(5,"div",5)(6,"h2",6),g.EFF(7),g.nI1(8,"translate"),g.k0s(),g.j41(9,"a",7),g.EFF(10),g.nI1(11,"translate"),g.k0s()()(),g.j41(12,"div",8)(13,"button",9),g.bIt("click",function(){return Ke.closeClicked()}),g.j41(14,"span"),g.EFF(15),g.nI1(16,"translate"),g.k0s()()()()),2&Oe&&(g.Y8G("ngClass",g.eq3(13,Ca,Ke.data.isStreamerApp?"main-content-streamer":"main-content-mall")),g.R7$(),g.Y8G("ngIf",!Ke.data.isStreamerApp),g.R7$(6),g.JRh(g.bMT(8,7,"common.genericLoadError")),g.R7$(2),g.Y8G("href",Ke.serverStatusUrl,g.B4B)("shortUrl",Ke.serverStatusShortUrl),g.R7$(),g.SpI(" ",g.bMT(11,9,"common.viewServerStatus")," "),g.R7$(5),g.JRh(g.bMT(16,11,"common.close")))},dependencies:[X.DJ,X.sA,X.G2,X.UI,H.PW,v.An,S.iV,O.YU,O.bT,es.N,Sn.r,Si.R,Bn.e,nr.q,P.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.main-content-streamer[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%]{width:470px;overflow:hidden;transition:height .5s}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:470px;height:50px}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%]{margin-bottom:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:470px;height:264px;border:transparent;padding-bottom:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:24px;height:254px}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%]{padding:24px;height:91px}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{text-align:center;margin:4px 0 0}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{display:none}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{margin-top:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{flex-wrap:nowrap;margin:8px;position:relative;right:0;bottom:0}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-right:8px}.main-content-streamer[_ngcontent-%COMP%] .upsell-pane[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upsell-pane[_ngcontent-%COMP%]{height:215px}.main-content-streamer[_ngcontent-%COMP%] .upsell-pane-message[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upsell-pane-message[_ngcontent-%COMP%]{border-top:1px solid rgba(255,255,255,.15);margin:0 24px;padding:23px 0}.main-content-streamer[_ngcontent-%COMP%] .upgrade-container[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upgrade-container[_ngcontent-%COMP%]{margin:8px}.compact-dialog-wrapper[_ngcontent-%COMP%], .compact-dialog-wrapper[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{height:100%}@media (max-width: 469px){.main-content-streamer[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%]{width:100vw}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:unset}.main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:100vw;height:auto}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{width:unset}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{display:none}.main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{display:none!important}.main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{height:-moz-fit-content!important;height:fit-content!important}}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%]{width:840px;height:925px}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:100%;height:88px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-left:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-right:32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-right:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-left:32px}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:100%;height:auto}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:32px;height:auto}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{margin:8px 32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-left:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-right:32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-left:0}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%]{height:200px}.tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%]{height:288px}.membership-error-icon[_ngcontent-%COMP%]{padding:80px 0 0;margin:0 auto 86px;font-size:80px;width:100%;height:178px;line-height:1;display:block;text-align:center;box-sizing:border-box}.membership-error-text[_ngcontent-%COMP%]{text-align:center}"]})}}return it})();const il=(it,Ln)=>[it,Ln];function jo(it,Ln){if(1&it){const F=g.RV6();g.j41(0,"div",13)(1,"button",14),g.bIt("click",function(){g.eBV(F);const Ke=g.XpG(2);return g.Njj(Ke.closeClicked())}),g.j41(2,"mat-icon",15),g.EFF(3,"close"),g.k0s()()()}}function Oo(it,Ln){if(1&it&&(g.j41(0,"div",9)(1,"div",10)(2,"h1",11),g.EFF(3),g.nI1(4,"translate"),g.k0s()(),g.DNE(5,jo,4,0,"div",12),g.k0s()),2&it){const F=g.XpG();g.R7$(3),g.JRh(g.bMT(4,2,"common.gfn")),g.R7$(2),g.Y8G("ngIf",F.closeButtonVisible)}}function za(it,Ln){1&it&&g.nrm(0,"img",16)}let Uo=(()=>{class it{constructor(F,Oe,Ke){this.ecommerceService=Oe,this.spatialNavigationService=Ke,this.closeButtonClicked=new g.bkB,this.closeButtonVisible=!0,this.destroy$=new _.B7,this.closeButtonVisible=!F?.featureEnablement?.tvMode}ngOnInit(){this.dialogTitle="ecommerce.membershipNotUpdatedDialog.title",this.description="ecommerce.membershipNotUpdatedDialog.description"}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}ngAfterViewInit(){const F=document.getElementsByClassName("membership-status-link"),Oe=F?.length>0?F[0]:void 0;Oe&&this.spatialNavigationService.onClick(Oe).pipe((0,r.Q)(this.destroy$)).subscribe(Ke=>{Ke&&this.ecommerceService.openAccountManagementPage(bn.MCB.ScreenJoinGfnDialog,Ts.U3.MembershipNotUpdatedEcomUIState)})}closeClicked(){this.closeButtonClicked.emit()}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.rXU(yo.Vk),g.rXU(Gs.y),g.rXU(M.ED))}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["gfn-membership-not-updated"]],inputs:{data:"data"},outputs:{closeButtonClicked:"closeButtonClicked"},decls:16,vars:17,consts:[["fxFlexFill","","fxLayout","column","nvSpatialNavigationContainer","","navigateAction","focus","nvCaptureRestoreFocus","",3,"ngClass"],["fxFlex","none","class","custom-title-bar","fxLayout","row",4,"ngIf"],["fxFlex","none","fxLayout","column"],["class","dialog-art","src","shared/assets/img/GFNUpSellBannerKV_v3.webp",4,"ngIf"],[1,"dialog-content"],[1,"font-header6"],["cdkMonitorSubtreeFocus","",1,"font-body2",3,"innerHTML"],["fxFlex","none","fxLayout","row","fxLayoutAlign","end center",1,"dialog-button"],["mat-button","","nvAutoFocus","",1,"font-button2",3,"click"],["fxFlex","none","fxLayout","row",1,"custom-title-bar"],["fxFlex","","fxLayoutAlign","start center"],["mat-dialog-title","",1,"font-header6"],["fxFlex","","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","","fxLayoutAlign","end center"],["mat-icon-button","",3,"click"],["mat-font-set","material-icons"],["src","shared/assets/img/GFNUpSellBannerKV_v3.webp",1,"dialog-art"]],template:function(Oe,Ke){1&Oe&&(g.j41(0,"div",0),g.DNE(1,Oo,6,4,"div",1),g.j41(2,"div",2),g.DNE(3,za,1,0,"img",3),g.j41(4,"div",4)(5,"h2",5),g.EFF(6),g.nI1(7,"translate"),g.k0s(),g.nrm(8,"span",6),g.nI1(9,"translate"),g.nI1(10,"trustAsHtml"),g.k0s()(),g.j41(11,"div",7)(12,"button",8),g.bIt("click",function(){return Ke.closeClicked()}),g.j41(13,"span"),g.EFF(14),g.nI1(15,"translate"),g.k0s()()()()),2&Oe&&(g.Y8G("ngClass",g.l_i(14,il,Ke.data.isStreamerApp?"main-content-streamer":"main-content-mall",Ke.data.isCompactDialog?"compact-dialog-wrapper":"")),g.R7$(),g.Y8G("ngIf",!Ke.data.isStreamerApp&&!Ke.data.isCompactDialog),g.R7$(2),g.Y8G("ngIf",!Ke.data.isCompactDialog),g.R7$(3),g.JRh(g.bMT(7,6,Ke.dialogTitle)),g.R7$(2),g.Y8G("innerHTML",g.bMT(10,10,g.bMT(9,8,Ke.description)),g.npT),g.R7$(6),g.JRh(g.bMT(15,12,"common.close")))},dependencies:[X.DJ,X.sA,X.G2,X.UI,H.PW,n.BI,v.An,S.iV,O.YU,O.bT,es.N,Sn.r,Si.R,Bn.e,nr.q,vo.O,P.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.main-content-streamer[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%]{width:470px;overflow:hidden;transition:height .5s}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:470px;height:50px}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%]{margin-bottom:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:470px;height:264px;border:transparent;padding-bottom:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:24px;height:254px}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%]{padding:24px;height:91px}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{text-align:center;margin:4px 0 0}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{display:none}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{margin-top:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{flex-wrap:nowrap;margin:8px;position:relative;right:0;bottom:0}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-right:8px}.main-content-streamer[_ngcontent-%COMP%] .upsell-pane[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upsell-pane[_ngcontent-%COMP%]{height:215px}.main-content-streamer[_ngcontent-%COMP%] .upsell-pane-message[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upsell-pane-message[_ngcontent-%COMP%]{border-top:1px solid rgba(255,255,255,.15);margin:0 24px;padding:23px 0}.main-content-streamer[_ngcontent-%COMP%] .upgrade-container[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upgrade-container[_ngcontent-%COMP%]{margin:8px}.compact-dialog-wrapper[_ngcontent-%COMP%], .compact-dialog-wrapper[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{height:100%}@media (max-width: 469px){.main-content-streamer[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%]{width:100vw}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:unset}.main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:100vw;height:auto}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{width:unset}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{display:none}.main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{display:none!important}.main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{height:-moz-fit-content!important;height:fit-content!important}}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%]{width:840px;height:925px}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:100%;height:88px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-left:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-right:32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-right:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-left:32px}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:100%;height:auto}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:32px;height:auto}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{margin:8px 32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-left:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-right:32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-left:0}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%]{height:200px}.tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%]{height:288px}"]})}}return it})();const Hs=(it,Ln)=>[it,Ln];function wl(it,Ln){if(1&it){const F=g.RV6();g.j41(0,"button",15),g.bIt("click",function(){g.eBV(F);const Ke=g.XpG(2);return g.Njj(Ke.closeClicked())}),g.j41(1,"mat-icon",16),g.EFF(2,"close"),g.k0s()()}}function rl(it,Ln){if(1&it&&(g.j41(0,"div",10)(1,"div",11)(2,"h1",12),g.EFF(3),g.nI1(4,"translate"),g.k0s()(),g.j41(5,"div",13),g.DNE(6,wl,3,0,"button",14),g.k0s()()),2&it){const F=g.XpG();g.R7$(3),g.JRh(g.bMT(4,2,"common.gfn")),g.R7$(3),g.Y8G("ngIf",F.closeButtonVisible)}}function al(it,Ln){1&it&&g.nrm(0,"img",17)}let gl=(()=>{class it{constructor(F,Oe){this.ecommerceService=Oe,this.primaryButtonClicked=new g.bkB,this.closeButtonClicked=new g.bkB,this.showLoadingOnContinue=!1,this.closeButtonVisible=!0,this.closeButtonVisible=!F?.featureEnablement?.tvMode}ngOnInit(){this.dialogTitle="ecommerce.playtimeAddProgressDialog.title",this.description="ecommerce.membershipUpdateProgressDialog.compactDialogDescription"}continueClicked(){this.showLoadingOnContinue=!0,this.ecommerceService.refreshUsersEntitlement(),this.primaryButtonClicked.emit()}closeClicked(){this.closeButtonClicked.emit()}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.rXU(yo.Vk),g.rXU(Gs.y))}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["gfn-playtime-update-progress"]],inputs:{data:"data"},outputs:{primaryButtonClicked:"primaryButtonClicked",closeButtonClicked:"closeButtonClicked"},decls:18,vars:21,consts:[["fxFlexFill","","fxLayout","column","nvSpatialNavigationContainer","","navigateAction","focus","nvCaptureRestoreFocus","",3,"ngClass"],["fxFlex","none","class","custom-title-bar","fxLayout","row",4,"ngIf"],["fxFlex","none","fxLayout","column"],["class","dialog-art","src","shared/assets/img/GFNUpSellBannerKV_v3.webp",4,"ngIf"],[1,"dialog-content"],[1,"font-header6"],["cdkMonitorSubtreeFocus","",1,"font-body2",3,"innerHTML"],["fxFlex","none","fxLayout","row","fxLayoutAlign","end center",1,"dialog-button"],["mat-button","",1,"font-button2",3,"click"],["mat-raised-button","","nvProgressCircular","","nvAutoFocus","",1,"font-button2","mat-accent",3,"click","isVisible"],["fxFlex","none","fxLayout","row",1,"custom-title-bar"],["fxFlex","","fxLayoutAlign","start center"],["mat-dialog-title","",1,"font-header6"],["fxFlex","","fxLayoutAlign","end center"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-font-set","material-icons"],["src","shared/assets/img/GFNUpSellBannerKV_v3.webp",1,"dialog-art"]],template:function(Oe,Ke){1&Oe&&(g.j41(0,"div",0),g.DNE(1,rl,7,4,"div",1),g.j41(2,"div",2),g.DNE(3,al,1,0,"img",3),g.j41(4,"div",4)(5,"h2",5),g.EFF(6),g.nI1(7,"translate"),g.k0s(),g.nrm(8,"span",6),g.nI1(9,"translate"),g.nI1(10,"trustAsHtml"),g.k0s()(),g.j41(11,"div",7)(12,"button",8),g.bIt("click",function(){return Ke.closeClicked()}),g.EFF(13),g.nI1(14,"translate"),g.k0s(),g.j41(15,"button",9),g.bIt("click",function(){return Ke.continueClicked()}),g.EFF(16),g.nI1(17,"translate"),g.k0s()()()),2&Oe&&(g.Y8G("ngClass",g.l_i(18,Hs,Ke.data.isStreamerApp?"main-content-streamer":"main-content-mall",Ke.data.isCompactDialog?"compact-dialog-wrapper":"")),g.R7$(),g.Y8G("ngIf",!Ke.data.isStreamerApp&&!Ke.data.isCompactDialog),g.R7$(2),g.Y8G("ngIf",!Ke.data.isCompactDialog),g.R7$(3),g.JRh(g.bMT(7,8,Ke.dialogTitle)),g.R7$(2),g.Y8G("innerHTML",g.bMT(10,12,g.bMT(9,10,Ke.description)),g.npT),g.R7$(5),g.SpI(" ",g.bMT(14,14,"common.close")," "),g.R7$(2),g.Y8G("isVisible",Ke.showLoadingOnContinue),g.R7$(),g.SpI(" ",g.bMT(17,16,"common.continue")," "))},dependencies:[X.DJ,X.sA,X.G2,X.UI,H.PW,n.BI,v.An,S.iV,O.YU,O.bT,es.N,Sn.r,Si.R,La.Aq,Bn.e,Ki.q,nr.q,vo.O,P.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.main-content-streamer[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%]{width:470px;overflow:hidden;transition:height .5s}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:470px;height:50px}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%]{margin-bottom:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:470px;height:264px;border:transparent;padding-bottom:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:24px;height:254px}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%]{padding:24px;height:91px}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{text-align:center;margin:4px 0 0}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{display:none}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{margin-top:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{flex-wrap:nowrap;margin:8px;position:relative;right:0;bottom:0}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-right:8px}.main-content-streamer[_ngcontent-%COMP%] .upsell-pane[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upsell-pane[_ngcontent-%COMP%]{height:215px}.main-content-streamer[_ngcontent-%COMP%] .upsell-pane-message[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upsell-pane-message[_ngcontent-%COMP%]{border-top:1px solid rgba(255,255,255,.15);margin:0 24px;padding:23px 0}.main-content-streamer[_ngcontent-%COMP%] .upgrade-container[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upgrade-container[_ngcontent-%COMP%]{margin:8px}.compact-dialog-wrapper[_ngcontent-%COMP%], .compact-dialog-wrapper[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{height:100%}@media (max-width: 469px){.main-content-streamer[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%]{width:100vw}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:unset}.main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:100vw;height:auto}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{width:unset}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{display:none}.main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{display:none!important}.main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{height:-moz-fit-content!important;height:fit-content!important}}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%]{width:840px;height:925px}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:100%;height:88px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-left:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-right:32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-right:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-left:32px}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:100%;height:auto}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:32px;height:auto}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{margin:8px 32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-left:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-right:32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-left:0}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%]{height:200px}.tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%]{height:288px}"]})}}return it})();const _l=(it,Ln)=>[it,Ln];function ii(it,Ln){if(1&it){const F=g.RV6();g.j41(0,"div",13)(1,"button",14),g.bIt("click",function(){g.eBV(F);const Ke=g.XpG(2);return g.Njj(Ke.closeClicked())}),g.j41(2,"mat-icon",15),g.EFF(3,"close"),g.k0s()()()}}function Sl(it,Ln){if(1&it&&(g.j41(0,"div",9)(1,"div",10)(2,"h1",11),g.EFF(3),g.nI1(4,"translate"),g.k0s()(),g.DNE(5,ii,4,0,"div",12),g.k0s()),2&it){const F=g.XpG();g.R7$(3),g.JRh(g.bMT(4,2,"common.gfn")),g.R7$(2),g.Y8G("ngIf",F.closeButtonVisible)}}function oi(it,Ln){1&it&&g.nrm(0,"img",16)}let Oi=(()=>{class it{constructor(F,Oe,Ke){this.ecommerceService=Oe,this.spatialNavigationService=Ke,this.closeButtonClicked=new g.bkB,this.closeButtonVisible=!0,this.destroy$=new _.B7,this.closeButtonVisible=!F?.featureEnablement?.tvMode}ngOnInit(){this.dialogTitle="ecommerce.playtimeNotUpdatedDialog.title",this.description="ecommerce.playtimeNotUpdatedDialog.description"}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}ngAfterViewInit(){const F=document.getElementsByClassName("account-status-link"),Oe=F?.length>0?F[0]:void 0;Oe&&this.spatialNavigationService.onClick(Oe).pipe((0,r.Q)(this.destroy$)).subscribe(Ke=>{Ke&&this.ecommerceService.openAccountManagementPage(bn.MCB.ScreenJoinGfnDialog,Ts.U3.MembershipTimeNotUpdatedEcomUIState)})}closeClicked(){this.closeButtonClicked.emit()}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.rXU(yo.Vk),g.rXU(Gs.y),g.rXU(M.ED))}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["gfn-playtime-not-updated"]],inputs:{data:"data"},outputs:{closeButtonClicked:"closeButtonClicked"},decls:16,vars:17,consts:[["fxFlexFill","","fxLayout","column","nvSpatialNavigationContainer","","navigateAction","focus","nvCaptureRestoreFocus","",3,"ngClass"],["fxFlex","none","class","custom-title-bar","fxLayout","row",4,"ngIf"],["fxFlex","none","fxLayout","column"],["class","dialog-art","src","shared/assets/img/GFNUpSellBannerKV_v3.webp",4,"ngIf"],[1,"dialog-content"],[1,"font-header6"],["cdkMonitorSubtreeFocus","",1,"font-body2",3,"innerHTML"],["fxFlex","none","fxLayout","row","fxLayoutAlign","end center",1,"dialog-button"],["mat-button","","nvAutoFocus","",1,"font-button2",3,"click"],["fxFlex","none","fxLayout","row",1,"custom-title-bar"],["fxFlex","","fxLayoutAlign","start center"],["mat-dialog-title","",1,"font-header6"],["fxFlex","","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","","fxLayoutAlign","end center"],["mat-icon-button","",3,"click"],["mat-font-set","material-icons"],["src","shared/assets/img/GFNUpSellBannerKV_v3.webp",1,"dialog-art"]],template:function(Oe,Ke){1&Oe&&(g.j41(0,"div",0),g.DNE(1,Sl,6,4,"div",1),g.j41(2,"div",2),g.DNE(3,oi,1,0,"img",3),g.j41(4,"div",4)(5,"h2",5),g.EFF(6),g.nI1(7,"translate"),g.k0s(),g.nrm(8,"span",6),g.nI1(9,"translate"),g.nI1(10,"trustAsHtml"),g.k0s()(),g.j41(11,"div",7)(12,"button",8),g.bIt("click",function(){return Ke.closeClicked()}),g.j41(13,"span"),g.EFF(14),g.nI1(15,"translate"),g.k0s()()()()),2&Oe&&(g.Y8G("ngClass",g.l_i(14,_l,Ke.data.isStreamerApp?"main-content-streamer":"main-content-mall",Ke.data.isCompactDialog?"compact-dialog-wrapper":"")),g.R7$(),g.Y8G("ngIf",!Ke.data.isStreamerApp&&!Ke.data.isCompactDialog),g.R7$(2),g.Y8G("ngIf",!Ke.data.isCompactDialog),g.R7$(3),g.JRh(g.bMT(7,6,Ke.dialogTitle)),g.R7$(2),g.Y8G("innerHTML",g.bMT(10,10,g.bMT(9,8,Ke.description)),g.npT),g.R7$(6),g.JRh(g.bMT(15,12,"common.close")))},dependencies:[X.DJ,X.sA,X.G2,X.UI,H.PW,n.BI,v.An,S.iV,O.YU,O.bT,es.N,Sn.r,Si.R,Bn.e,nr.q,vo.O,P.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.main-content-streamer[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%]{width:470px;overflow:hidden;transition:height .5s}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:470px;height:50px}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%]{margin-bottom:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:470px;height:264px;border:transparent;padding-bottom:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:24px;height:254px}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%]{padding:24px;height:91px}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{text-align:center;margin:4px 0 0}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{display:none}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{margin-top:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{flex-wrap:nowrap;margin:8px;position:relative;right:0;bottom:0}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-right:8px}.main-content-streamer[_ngcontent-%COMP%] .upsell-pane[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upsell-pane[_ngcontent-%COMP%]{height:215px}.main-content-streamer[_ngcontent-%COMP%] .upsell-pane-message[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upsell-pane-message[_ngcontent-%COMP%]{border-top:1px solid rgba(255,255,255,.15);margin:0 24px;padding:23px 0}.main-content-streamer[_ngcontent-%COMP%] .upgrade-container[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upgrade-container[_ngcontent-%COMP%]{margin:8px}.compact-dialog-wrapper[_ngcontent-%COMP%], .compact-dialog-wrapper[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{height:100%}@media (max-width: 469px){.main-content-streamer[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%]{width:100vw}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:unset}.main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:100vw;height:auto}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{width:unset}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{display:none}.main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{display:none!important}.main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{height:-moz-fit-content!important;height:fit-content!important}}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%]{width:840px;height:925px}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:100%;height:88px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-left:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-right:32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-right:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-left:32px}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:100%;height:auto}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:32px;height:auto}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{margin:8px 32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-left:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-right:32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-left:0}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%]{height:200px}.tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%]{height:288px}"]})}}return it})();g.wjB(ss.O,function(){return[X.DJ,X.G2,X.UI,H.PW,O.YU,O.ux,O.e1,vi.D,_r.D,vs.c,Vs,as,Uo,gl,Oi]},[]);var Ho=s(16632),Ko=s(1548),xa=s(27561),Ws=s(26945),ws=s(6364);const Nl=(it,Ln)=>({"warning-label":it,"error-label":Ln});let Il=(()=>{class it{set score(F){this._score=(0,ws.OE)(F),this._score<this.min&&(this._score=this.min),this._score>this.max&&(this._score=this.max)}get score(){return this._score}constructor(){this._score=0}static{this.\u0275fac=function(Oe){return new(Oe||it)}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["gfn-uds-graph"]],inputs:{min:"min",max:"max",score:"score",label:"label",level:"level"},decls:11,vars:10,consts:[[1,"graph-container"],[1,"graph-score"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"graph-label","font-body2",3,"ngClass","isMultiLineEllipsis"],["fxLayout","row","fxLayoutAlign","space-between center",1,"graph-range"],[1,"graph-icon","flip-rtl-element",3,"svgIcon"]],template:function(Oe,Ke){1&Oe&&(g.j41(0,"div",0)(1,"div",1),g.EFF(2),g.k0s(),g.j41(3,"div",2),g.EFF(4),g.k0s(),g.j41(5,"div",3)(6,"span"),g.EFF(7),g.k0s(),g.j41(8,"span"),g.EFF(9),g.k0s()(),g.nrm(10,"mat-icon",4),g.k0s()),2&Oe&&(g.R7$(2),g.JRh(Ke.score),g.R7$(),g.Y8G("ngClass",g.l_i(7,Nl,1===Ke.level,0===Ke.level))("isMultiLineEllipsis",!0),g.R7$(),g.SpI(" ",Ke.label," "),g.R7$(3),g.JRh(Ke.min),g.R7$(2),g.JRh(Ke.max),g.R7$(),g.FS9("svgIcon","score_graph_L"+Ke.level))},dependencies:[O.YU,v.An,X.DJ,X.sA,H.PW,Ba.a],styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[_nghost-%COMP%]{--graph-container-width: 92px;--graph-container-height: 90px;--graph-icon-width: 92px;--graph-icon-height: 55px;--graph-score-top: 21px;--graph-score-right: 1px;--graph-label-top: 66px;--graph-range-top: 44px}.tv-view[_nghost-%COMP%] -no-combinator[_nghost-%COMP%], .tv-view [_nghost-%COMP%]{--graph-container-width: 184px;--graph-container-height: 180px;--graph-icon-width: 184px;--graph-icon-height: 110px;--graph-score-top: 42px;--graph-score-right: 2px;--graph-label-top: 132px;--graph-range-top: 88px}.graph-container[_ngcontent-%COMP%]{position:relative;width:var(--graph-container-width);height:var(--graph-container-height)}.graph-container[_ngcontent-%COMP%] .warning-label[_ngcontent-%COMP%]{color:#ffb43e}.graph-container[_ngcontent-%COMP%] .error-label[_ngcontent-%COMP%]{color:#e02828}.graph-score[_ngcontent-%COMP%]{position:absolute;top:var(--graph-score-top);text-align:center;width:100%;--font-header-font-size: 28px;--font-header-line-height: 48px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:700}.isLtr[_nghost-%COMP%] .graph-score[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .graph-score[_ngcontent-%COMP%]{right:var(--graph-score-right)}html[dir=ltr][_ngcontent-%COMP%] .graph-score[_ngcontent-%COMP%]{--dummy6: 0;right:var(--graph-score-right)}.isRtl[_nghost-%COMP%] .graph-score[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .graph-score[_ngcontent-%COMP%]{left:var(--graph-score-right)}html[dir=rtl][_ngcontent-%COMP%] .graph-score[_ngcontent-%COMP%]{--dummy6: 0;left:var(--graph-score-right)}.tv-view[_ngcontent-%COMP%] .graph-score[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .graph-score[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .graph-score[_ngcontent-%COMP%]{--font-header-font-size: 56px;--font-header-line-height: 96px}.graph-label[_ngcontent-%COMP%]{position:absolute;top:var(--graph-label-top);text-align:center;width:100%;word-break:break-word;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:center;text-overflow:ellipsis}.graph-range[_ngcontent-%COMP%]{position:absolute;width:100%;top:var(--graph-range-top);--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 8px;--font-body-line-height: 16px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0;color:#fff9}.tv-view[_ngcontent-%COMP%] .graph-range[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .graph-range[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .graph-range[_ngcontent-%COMP%]{--font-body-size: 16px;--font-body-line-height: 32px;--font-body-color: rgba(255, 255, 255, .85)}.graph-icon[_ngcontent-%COMP%]{position:absolute;width:var(--graph-icon-width);height:var(--graph-icon-height);top:0}"]})}}return it})();const Cl=(it,Ln)=>({"warning-icon":it,"error-icon":Ln});function ac(it,Ln){1&it&&g.nrm(0,"div",8)}function lc(it,Ln){if(1&it&&(g.qex(0),g.nrm(1,"mat-icon",6),g.DNE(2,ac,1,0,"div",7),g.bVm()),2&it){const F=Ln.$implicit,Oe=Ln.last,Ke=g.XpG();g.R7$(),g.Y8G("ngClass",g.l_i(3,Cl,Ke.scoreHeaderIconStateMap[F]===Ke.scoreHeaderIconStateType.Warning,Ke.scoreHeaderIconStateMap[F]===Ke.scoreHeaderIconStateType.Error))("svgIcon",F),g.R7$(),g.Y8G("ngIf",!Oe)}}function Vc(it,Ln){if(1&it&&(g.qex(0),g.nrm(1,"gfn-uds-graph",9),g.bVm()),2&it){const F=Ln.$implicit;g.R7$(),g.Y8G("score",F.score)("label",F.label)("level",F.level)}}let Al=(()=>{class it{get saScores(){return this._saScores}set saScores(F){this.scoreHeaderIconStateMap=new Map,F.forEach(Oe=>{const Ke=Oe.level===Ho.xy.Poor,nn=Oe.level===Ho.xy.Bad;Ho.qZ.get(Oe.type).forEach(_i=>{Ke?this.scoreHeaderIconStateMap[_i]=Ho._Z.Error:nn&&!this.scoreHeaderIconStateMap[_i]&&(this.scoreHeaderIconStateMap[_i]=Ho._Z.Warning)})}),this._saScores=F}constructor(){this.scoreHeaderIconOrderedList=[Ho.Cz.DesktopWindows,Ho.Cz.Wifi,Ho.Cz.Isp,Ho.Cz.Storage],this.scoreHeaderIconStateType=Ho._Z,this._saScores=[]}static{this.\u0275fac=function(Oe){return new(Oe||it)}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["gfn-uds-score-container"]],inputs:{saScores:"saScores"},decls:9,vars:5,consts:[["fxLayout","column","fxFlexFill",""],["fxLayout","row","fxLayoutAlign","space-between center",1,"uds-score-header"],[1,"font-sub1","font-color-primary","score-title"],["fxLayout","row","fxLayoutAlign","center center"],[4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","center center",1,"uds-score-graph"],[1,"score-icons",3,"ngClass","svgIcon"],["class","score-dots",4,"ngIf"],[1,"score-dots"],["min","0","max","100",3,"score","label","level"]],template:function(Oe,Ke){1&Oe&&(g.j41(0,"div",0)(1,"div",1)(2,"span",2),g.EFF(3),g.nI1(4,"translate"),g.k0s(),g.j41(5,"div",3),g.DNE(6,lc,3,6,"ng-container",4),g.k0s()(),g.j41(7,"div",5),g.DNE(8,Vc,2,3,"ng-container",4),g.k0s()()),2&Oe&&(g.R7$(3),g.SpI(" ",g.bMT(4,3,"uds.scoreTitle")," "),g.R7$(3),g.Y8G("ngForOf",Ke.scoreHeaderIconOrderedList),g.R7$(2),g.Y8G("ngForOf",Ke.saScores))},dependencies:[O.YU,O.Sq,O.bT,v.An,X.DJ,X.sA,X.G2,H.PW,Il,P.D9],styles:["[_nghost-%COMP%]{--uds-score-header-min-height: 48px;--uds-score-dots-width: 12px;--uds-score-dots-border-width: 1px;--uds-score-icon-size: 24px;--uds-score-header-padding: 12px 16px;--uds-score-icons-padding: 12px;--uds-score-graph-gap: 24px;--uds-score-graph-margin-top-bottom: 24px;--uds-score-graph-margin-left-right: 24px;--uds-score-title-margin-right: 8px;--uds-score-header-gap: 10px}[_nghost-%COMP%] .tv-view[_nghost-%COMP%], .tv-view [_nghost-%COMP%]{--uds-score-header-min-height: 72px;--uds-score-dots-width: 24px;--uds-score-dots-border-width: 2px;--uds-score-icon-size: 42px;--uds-score-header-padding: 24px 32px;--uds-score-icons-padding: 24px;--uds-score-graph-gap: 48px;--uds-score-graph-margin-top-bottom: 48px;--uds-score-graph-margin-left-right: 24px;--uds-score-title-margin-right: 16px;--uds-score-header-gap: 20px}.uds-score-header[_ngcontent-%COMP%]{min-height:var(--uds-score-header-min-height);background:#393939;padding:var(--uds-score-header-padding);display:flex;flex-wrap:wrap;align-items:center;gap:var(--uds-score-header-gap)}.isLtr[_nghost-%COMP%] .uds-score-header[_ngcontent-%COMP%] .score-title[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .uds-score-header[_ngcontent-%COMP%] .score-title[_ngcontent-%COMP%]{margin-right:var(--uds-score-title-margin-right)}html[dir=ltr][_ngcontent-%COMP%] .uds-score-header[_ngcontent-%COMP%] .score-title[_ngcontent-%COMP%]{--dummy4: 0;margin-right:var(--uds-score-title-margin-right)}.isRtl[_nghost-%COMP%] .uds-score-header[_ngcontent-%COMP%] .score-title[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .uds-score-header[_ngcontent-%COMP%] .score-title[_ngcontent-%COMP%]{margin-left:var(--uds-score-title-margin-right)}html[dir=rtl][_ngcontent-%COMP%] .uds-score-header[_ngcontent-%COMP%] .score-title[_ngcontent-%COMP%]{--dummy4: 0;margin-left:var(--uds-score-title-margin-right)}.uds-score-header[_ngcontent-%COMP%] .score-dots[_ngcontent-%COMP%]{width:var(--uds-score-dots-width);height:0px;border:var(--uds-score-dots-border-width) dashed #737373}.isLtr[_nghost-%COMP%] .uds-score-header[_ngcontent-%COMP%] .score-icons[_ngcontent-%COMP%]:not(:last-child), .isLtr [_nghost-%COMP%] .uds-score-header[_ngcontent-%COMP%] .score-icons[_ngcontent-%COMP%]:not(:last-child){padding-right:var(--uds-score-icons-padding)}html[dir=ltr][_ngcontent-%COMP%] .uds-score-header[_ngcontent-%COMP%] .score-icons[_ngcontent-%COMP%]:not(:last-child){--dummy2: 0;padding-right:var(--uds-score-icons-padding)}.isRtl[_nghost-%COMP%] .uds-score-header[_ngcontent-%COMP%] .score-icons[_ngcontent-%COMP%]:not(:last-child), .isRtl [_nghost-%COMP%] .uds-score-header[_ngcontent-%COMP%] .score-icons[_ngcontent-%COMP%]:not(:last-child){padding-left:var(--uds-score-icons-padding)}html[dir=rtl][_ngcontent-%COMP%] .uds-score-header[_ngcontent-%COMP%] .score-icons[_ngcontent-%COMP%]:not(:last-child){--dummy2: 0;padding-left:var(--uds-score-icons-padding)}.isLtr[_nghost-%COMP%] .uds-score-header[_ngcontent-%COMP%] .score-icons[_ngcontent-%COMP%]:not(:first-child), .isLtr [_nghost-%COMP%] .uds-score-header[_ngcontent-%COMP%] .score-icons[_ngcontent-%COMP%]:not(:first-child){padding-left:var(--uds-score-icons-padding)}html[dir=ltr][_ngcontent-%COMP%] .uds-score-header[_ngcontent-%COMP%] .score-icons[_ngcontent-%COMP%]:not(:first-child){--dummy1: 0;padding-left:var(--uds-score-icons-padding)}.isRtl[_nghost-%COMP%] .uds-score-header[_ngcontent-%COMP%] .score-icons[_ngcontent-%COMP%]:not(:first-child), .isRtl [_nghost-%COMP%] .uds-score-header[_ngcontent-%COMP%] .score-icons[_ngcontent-%COMP%]:not(:first-child){padding-right:var(--uds-score-icons-padding)}html[dir=rtl][_ngcontent-%COMP%] .uds-score-header[_ngcontent-%COMP%] .score-icons[_ngcontent-%COMP%]:not(:first-child){--dummy1: 0;padding-right:var(--uds-score-icons-padding)}.uds-score-header[_ngcontent-%COMP%] .warning-icon[_ngcontent-%COMP%]{color:#ffb43e}.uds-score-header[_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{color:#e02828}.uds-score-header[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{min-width:var(--uds-score-icon-size);min-height:var(--uds-score-icon-size);font-size:var(--uds-score-icon-size)}.uds-score-graph[_ngcontent-%COMP%]{gap:var(--uds-score-graph-gap);display:flex;flex-wrap:wrap;margin:var(--uds-score-graph-margin-top-bottom) var(--uds-score-graph-margin-left-right)}"]})}}return it})();const cc=it=>({"selected-thumb":it}),_t=it=>({numOfDays:it});function Kt(it,Ln){if(1&it){const F=g.RV6();g.j41(0,"div",9)(1,"span"),g.EFF(2),g.k0s(),g.j41(3,"a",10),g.bIt("click",function(){g.eBV(F);const Ke=g.XpG();return g.Njj(Ke.onLearnMoreClick())}),g.EFF(4),g.nI1(5,"translate"),g.k0s()()}if(2&it){const F=g.XpG();g.R7$(2),g.SpI("",F.errorMessage,"\xa0"),g.R7$(),g.FS9("href",F.udsLearnMoreUrl,g.B4B),g.R7$(),g.JRh(g.bMT(5,3,"common.learnMore"))}}function mt(it,Ln){1&it&&(g.j41(0,"div"),g.nrm(1,"mat-progress-spinner",11),g.k0s())}function Yt(it,Ln){if(1&it&&(g.j41(0,"div",26),g.EFF(1),g.k0s()),2&it){const F=g.XpG(2);g.R7$(),g.SpI(" ",F.suggestionHeader," ")}}function _n(it,Ln){if(1&it){const F=g.RV6();g.j41(0,"mat-expansion-panel",32),g.bIt("opened",function(){g.eBV(F);const Ke=g.XpG(4);return g.Njj(Ke.onSuggestionPanelItemOpened())}),g.j41(1,"mat-expansion-panel-header",33)(2,"mat-panel-title",34),g.EFF(3),g.k0s()(),g.nrm(4,"div",35,0),g.nI1(6,"trustAsHtml"),g.k0s()}if(2&it){const F=g.XpG().$implicit,Oe=g.XpG(3);g.Y8G("expanded",Oe.recommendationExpand),g.R7$(3),g.SpI(" ",null==F?null:F.solutionTitle," "),g.R7$(),g.Y8G("innerHtml",g.bMT(6,3,null==F?null:F.solutionDetail),g.npT)}}function de(it,Ln){if(1&it&&(g.j41(0,"div",30),g.DNE(1,_n,7,5,"mat-expansion-panel",31),g.k0s()),2&it){const F=Ln.$implicit;g.R7$(),g.Y8G("ngIf",null==F?null:F.solutionTitle)}}function q(it,Ln){if(1&it&&(g.j41(0,"div",27)(1,"mat-accordion",28),g.DNE(2,de,2,1,"div",29),g.k0s()()),2&it){const F=g.XpG(2);g.R7$(),g.Y8G("multi",!0),g.R7$(),g.Y8G("ngForOf",F.suggestionList)}}function j(it,Ln){1&it&&(g.j41(0,"div",36)(1,"span",37),g.EFF(2),g.nI1(3,"translate"),g.k0s()()),2&it&&(g.R7$(2),g.JRh(g.bMT(3,1,"uds.goodScoreMessage")))}function te(it,Ln){if(1&it){const F=g.RV6();g.j41(0,"div",38)(1,"mat-checkbox",39),g.mxI("ngModelChange",function(Ke){g.eBV(F);const nn=g.XpG(2);return g.DH7(nn.isSnoozed,Ke)||(nn.isSnoozed=Ke),g.Njj(Ke)}),g.j41(2,"span",40),g.EFF(3),g.nI1(4,"translate"),g.k0s()()()}if(2&it){const F=g.XpG(2);g.R7$(),g.R50("ngModel",F.isSnoozed),g.R7$(2),g.SpI("",g.i5U(4,2,"uds.snoozeText",g.eq3(5,_t,F.snoozeDurationInDays))," ")}}function fe(it,Ln){if(1&it){const F=g.RV6();g.j41(0,"div",12)(1,"div",13)(2,"div"),g.EFF(3),g.k0s(),g.j41(4,"div"),g.EFF(5),g.k0s()(),g.j41(6,"div",14),g.nrm(7,"gfn-uds-score-container",15),g.k0s(),g.DNE(8,Yt,2,1,"div",16)(9,q,3,2,"div",17)(10,j,4,3,"div",18),g.j41(11,"div",19)(12,"span",20),g.EFF(13),g.nI1(14,"translate"),g.k0s(),g.j41(15,"button",21),g.bIt("click",function(){g.eBV(F);const Ke=g.XpG();return g.Njj(Ke.thumbUpClicked())}),g.j41(16,"mat-icon",22),g.EFF(17,"thumb_up"),g.k0s()(),g.j41(18,"button",23),g.bIt("click",function(){g.eBV(F);const Ke=g.XpG();return g.Njj(Ke.thumbDownClicked())}),g.j41(19,"mat-icon",22),g.EFF(20,"thumb_down"),g.k0s()()(),g.j41(21,"div",24)(22,"a",10),g.bIt("click",function(){g.eBV(F);const Ke=g.XpG();return g.Njj(Ke.onLearnMoreClick())}),g.EFF(23),g.nI1(24,"translate"),g.k0s()(),g.DNE(25,te,5,7,"div",25),g.k0s()}if(2&it){const F=g.XpG();g.R7$(3),g.JRh(F.gameTitle),g.R7$(2),g.JRh(F.udsReportDateTime),g.R7$(2),g.Y8G("saScores",F.saScores),g.R7$(),g.Y8G("ngIf",F.suggestionHeader),g.R7$(),g.Y8G("ngIf",F.suggestionList),g.R7$(),g.Y8G("ngIf",F.showGoodScoreReport),g.R7$(3),g.SpI(" ",g.bMT(14,12,"uds.feedbackTitle")," "),g.R7$(2),g.Y8G("ngClass",g.eq3(16,cc,F.currentFeedbackSelection===F.udsFeedbackSelection.thumbUp)),g.R7$(3),g.Y8G("ngClass",g.eq3(18,cc,F.currentFeedbackSelection===F.udsFeedbackSelection.thumbDown)),g.R7$(4),g.FS9("href",F.udsLearnMoreUrl,g.B4B),g.R7$(),g.SpI(" ",g.bMT(24,14,"common.learnMore")," "),g.R7$(2),g.Y8G("ngIf",F.snoozeDurationInDays&&F.launchSource===F.UDSLaunchSource.EndOfSession)}}let Ne=(()=>{class it{onClick(F){F.target instanceof HTMLAnchorElement&&this.onLinkClicked(F)}onEscapeKey(F){this.onExit()}get snoozeDurationInDays(){return this.udsHelperService.snoozeDurationInDays}constructor(F,Oe,Ke,nn,Nn,_i){this.telemetryService=F,this.udsHelperService=Oe,this.dateHandlerService=Ke,this.redirectService=nn,this.translateService=Nn,this.destroy$=new _.B7,this.saScores=[],this.linkIdsClicked=[],this.gameTitle="",this.currentFeedbackSelection=Ho.is.none,this.udsFeedbackSelection=Ho.is,this.UDSLaunchSource=Ho.zO,this.isSnoozed=!1,this.isSuggestionExpanded=!1,this.isLearnMoreClicked=!1,this.udsReportDateTime="",this.noUDSReport=!1,this.errorMessage="",this.isLoading=!0,this.showGoodScoreReport=!1,this.recommendationExpand=!1,this.udsUIClosed=new g.bkB,this.logger=_i.getLogger("UdsUiComponent")}ngOnInit(){this.udsHelperService.getUDSDiagnosticData$().pipe((0,a.s)(1),(0,r.Q)(this.destroy$)).subscribe(()=>{if(this.isLoading=!1,this.response&&Object.keys(this.response)?.length&&!this.response?.error){const F=this.response?.reports[0];this.gameTitle=F?.streamedAppName,this.setUDSReportDateTime(F),this.saScores=F?.saScores,F?.areSAScoresGood&&this.launchSource!==Ho.zO.EndOfSession?this.showGoodScoreReport=!0:(this.suggestionHeader=F?.recommendationListHeader,F?.recommendationList.forEach(Oe=>{Oe?.solutionDetail&&this.setLinkClass(Oe)}),this.suggestionList=F?.recommendationList,this.recommendationExpand=this.response?.recommendationExpand)}else this.launchSource!==Ho.zO.EndOfSession&&(this.noUDSReport=!0,this.errorMessage=this.response?.message??this.translateService.instant("uds.noUDSReport"));this.constructUDSLearnMoreLink(this.response?.errorCode)})}onLinkClicked(F){this.logger.info(`Link clicked in component: ${F.target?.id}`);const Oe=F.target?.id;Oe&&!this.linkIdsClicked.includes(Oe)&&this.linkIdsClicked.push(Oe)}setLinkClass(F){const Ke=(new DOMParser).parseFromString(F.solutionDetail,"text/html");Array.from(Ke.getElementsByTagName("a")).forEach(Nn=>{Nn.classList.add("font-body2-link")}),F.solutionDetail=Ke.body.innerHTML}getRedirectKeyword(F){return It.r7.GfnPcUdsLearnMore}constructUDSLearnMoreLink(F){const Oe=this.getRedirectKeyword(F);this.redirectService.getRedirectUrl(Oe).pipe((0,a.s)(1),(0,r.Q)(this.destroy$)).subscribe(Ke=>{this.udsLearnMoreUrl=Ke,this.logger.info("UDS Learn more URL: ",this.udsLearnMoreUrl)})}setUDSReportDateTime(F){const Oe=this.dateHandlerService.getLocalizedDate(F.sessionStartTimeStamp),Ke=this.dateHandlerService.getLocalizedDate(F.sessionEndTimeStamp),nn={hour:"numeric",minute:"2-digit",hour12:!0},Nn=this.dateHandlerService.getLocalizedTime(F.sessionStartTimeStamp,nn),_i=this.dateHandlerService.getLocalizedTime(F.sessionEndTimeStamp,nn);(0,bi.zV)([Oe,Ke,Nn,_i]).pipe((0,a.s)(1),(0,r.Q)(this.destroy$)).subscribe(([Wi,or,Hr,Mo])=>{Hr=this.dateHandlerService.formatAMPMToUpperCase(Hr),Mo=this.dateHandlerService.formatAMPMToUpperCase(Mo),this.udsReportDateTime=Wi===or?Wi+" "+Hr+" - "+Mo:Wi+" "+Hr+" - "+or+" "+Mo})}get exitButtonString(){return this.currentFeedbackSelection!==Ho.is.none?"common.send":"common.close"}sendUDSSuggestionFeedbackTelemetry(){let F=Ro.O67.None;this.currentFeedbackSelection===Ho.is.thumbUp?F=Ro.O67.Yes:this.currentFeedbackSelection===Ho.is.thumbDown&&(F=Ro.O67.No);const Oe=this.response?.reports?.length,Nn={sessionId:Oe?this.response?.reports[0]?.sessionId??"":"",subSessionId:Oe?this.response?.reports[0]?.subSessionId??"":"",wasHelpful:F,apiVersion:Oe?this.response?.reports[0]?.udsVersion:"",snooze:this.isSnoozed?Ro.T80.TRUE:Ro.T80.FALSE,showMore:this.isSuggestionExpanded?Ro.T80.TRUE:Ro.T80.FALSE,source:this.udsHelperService.udsTriggerSource(this.launchSource),learnMore:this.isLearnMoreClicked?Ro.T80.TRUE:Ro.T80.FALSE,linkIdsClicked:this.linkIdsClicked};this.telemetryService.push(new Ro.H$b(Nn))}thumbUpClicked(){this.currentFeedbackSelection=this.currentFeedbackSelection!==Ho.is.thumbUp?Ho.is.thumbUp:Ho.is.none}thumbDownClicked(){this.currentFeedbackSelection=this.currentFeedbackSelection!==Ho.is.thumbDown?Ho.is.thumbDown:Ho.is.none}onSuggestionPanelItemOpened(){this.isSuggestionExpanded=!0}onExit(){this.sendUDSSuggestionFeedbackTelemetry(),this.isSnoozed&&this.udsHelperService.snoozeUDS(),this.udsUIClosed.emit()}onLearnMoreClick(){this.isLearnMoreClicked=!0}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.rXU(I.H0),g.rXU(Ko.u),g.rXU(m.I_),g.rXU(xa.Q),g.rXU(P.c$),g.rXU(m.J6))}}static{this.\u0275cmp=g.VBU({type:it,selectors:[["gfn-uds-ui"]],hostBindings:function(Oe,Ke){1&Oe&&g.bIt("click",function(Nn){return Ke.onClick(Nn)})("keydown.escape",function(Nn){return Ke.onEscapeKey(Nn)})},inputs:{launchSource:"launchSource",response:"response"},outputs:{udsUIClosed:"udsUIClosed"},decls:13,vars:9,consts:[["suggestionDetails",""],["nvTrapFocus","","nvSpatialNavigationGroup","","navigateAction","focus","fxLayout","column",1,"uds-main-container","depth-highest"],[1,"uds-title","font-header5","font-color-primary"],["svgIcon","analytics",1,"uds-title-icon"],["class","uds-noreport font-body2 font-color-secondary",4,"ngIf"],[4,"ngIf"],["class","uds-full-scroll-container",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end end",1,"uds-buttons-container"],["mat-button","","nvAutoFocus","",1,"font-button2","mat-accent","mat-flat-button",3,"click"],[1,"uds-noreport","font-body2","font-color-secondary"],["target","_blank","cdkMonitorElementFocus","",1,"font-body2-link","no-wrap",3,"click","href"],["mode","indeterminate","color","accent","diameter","48","strokeWidth","4",1,"uds-spinner"],[1,"uds-full-scroll-container"],[1,"uds-subtitle","font-body2","font-color-secondary"],["fxLayout","column",1,"uds-score-container"],[3,"saScores"],["class","uds-suggestion-header font-color-primary font-sub1",4,"ngIf"],["class","uds-suggestion-container",4,"ngIf"],["class","uds-good-score-header-container",4,"ngIf"],[1,"uds-feedback-container"],[1,"uds-feedback-title","font-color-primary","font-body2"],["mat-icon-button","",1,"uds-thumb-up-button",3,"click","ngClass"],["mat-font-set","material-icons"],["mat-icon-button","",3,"click","ngClass"],[1,"uds-learn-more-container"],["class","uds-snooze-container nv-hig",4,"ngIf"],[1,"uds-suggestion-header","font-color-primary","font-sub1"],[1,"uds-suggestion-container"],[3,"multi"],["class","uds-suggestion-list",4,"ngFor","ngForOf"],[1,"uds-suggestion-list"],[3,"expanded","opened",4,"ngIf"],[3,"opened","expanded"],["nvMatExpansionPanelHeaderKeyboardFixup","","cdkMonitorElementFocus","",1,"uds-expansion-panel-header"],[1,"font-body2"],["nvOffDeviceLink","",1,"uds-expansion-panel-details","font-color-tertiary","font-body2",3,"innerHtml"],[1,"uds-good-score-header-container"],[1,"font-color-primary","font-sub2"],[1,"uds-snooze-container","nv-hig"],[3,"ngModelChange","ngModel"],[1,"font-body1"]],template:function(Oe,Ke){1&Oe&&(g.j41(0,"div",1)(1,"div",2),g.nrm(2,"mat-icon",3),g.j41(3,"span"),g.EFF(4),g.nI1(5,"translate"),g.k0s()(),g.DNE(6,Kt,6,5,"div",4)(7,mt,2,0,"div",5)(8,fe,26,20,"div",6),g.j41(9,"div",7)(10,"button",8),g.bIt("click",function(){return Ke.onExit()}),g.EFF(11),g.nI1(12,"translate"),g.k0s()()()),2&Oe&&(g.R7$(4),g.JRh(g.bMT(5,5,"uds.title")),g.R7$(2),g.Y8G("ngIf",Ke.noUDSReport),g.R7$(),g.Y8G("ngIf",Ke.isLoading),g.R7$(),g.Y8G("ngIf",!Ke.noUDSReport&&!Ke.isLoading),g.R7$(3),g.SpI(" ",g.bMT(12,7,Ke.exitButtonString)," "))},dependencies:[O.YU,O.Sq,O.bT,He.BC,He.vS,S.iV,Q.So,y.LG,v.An,X.DJ,X.sA,H.PW,Ws.BS,Ws.GK,Ws.Z2,Ws.WN,es.N,vi.D,Sn.r,Si.$,La.Aq,Ri.tG,Ri.v4,Jt.nM,Bn.e,Al,vo.O,P.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}[_nghost-%COMP%]{--uds-container-max-width: 700px;--uds-container-padding: 16px 0px;--uds-score-container-min-height: 180px;--uds-icon-size: 24px;--uds-expansion-panel-padding: 12px 16px;--uds-expansion-details-padding: 0px 16px 16px 16px;--uds-noreport-padding: 0px 16px;--uds-scroll-container-padding: 0px 16px;--uds-suggestion-header-padding: 12px 16px;--uds-spinner-margin: 48px;--uds-noreport-margin-bottom: 48px;--uds-score-container-margin-bottom: 24px;--uds-subtitle-margin-bottom: 24px;--uds-suggestion-container-margin-bottom: 24px;--uds-title-icon-margin-top: 4px;--uds-title-icon-margin-right: 8px;--uds-title-margin-bottom: 10px;--uds-title-padding: 0px 16px;--uds-feedback-title-margin-right: 16px;--uds-feedback-title-vertical-align: sub;--uds-feedback-button-height: 40px;--uds-feedback-button-width: 40px;--uds-feedback-icon-align: middle;--uds-thumb-up-button-margin-right: 16px;--uds-feedback-padding-bottom: 16px;--uds-good-score-header-margin: 16px auto;--uds-buttons-padding-top: 16px;--uds-buttons-padding-right: 16px;--uds-expansion-indicator-padding: 3px}[_nghost-%COMP%] .tv-view[_nghost-%COMP%], .tv-view [_nghost-%COMP%]{--uds-container-max-width: 1184px;--uds-container-padding: 32px 0px;--uds-score-container-min-height: 200px;--uds-icon-size: 42px;--uds-expansion-panel-padding: 24px 32px;--uds-expansion-details-padding: 0px 32px 32px 32px;--uds-noreport-padding: 0px 32px;--uds-scroll-container-padding: 0px 32px;--uds-suggestion-header-padding: 24px 32px;--uds-spinner-margin: 96px;--uds-noreport-margin-bottom: 96px;--uds-score-container-margin-bottom: 48px;--uds-subtitle-margin-bottom: 48px;--uds-suggestion-container-margin-bottom: 48px;--uds-title-icon-margin-top: 8px;--uds-title-icon-margin-right: 16px;--uds-title-margin-bottom: 20px;--uds-title-padding: 0px 32px;--uds-feedback-title-margin-right: 32px;--uds-feedback-title-vertical-align: middle;--uds-feedback-button-height: 64px;--uds-feedback-button-width: 64px;--uds-feedback-icon-align: bottom;--uds-thumb-up-button-margin-right: 32px;--uds-feedback-padding-bottom: 32px;--uds-good-score-header-margin: 32px auto;--uds-buttons-padding-top: 32px;--uds-buttons-padding-right: 32px;--uds-expansion-indicator-padding: 6px}.uds-main-container[_ngcontent-%COMP%]{width:100%;max-width:var(--uds-container-max-width);max-height:87vh;padding:var(--uds-container-padding);overflow:hidden}.uds-main-container[_ngcontent-%COMP%] .uds-title[_ngcontent-%COMP%]{display:flex;align-items:flex-start;margin-bottom:var(--uds-title-margin-bottom);padding:var(--uds-title-padding)}.uds-main-container[_ngcontent-%COMP%] .uds-title-icon[_ngcontent-%COMP%]{min-width:var(--uds-icon-size);min-height:var(--uds-icon-size);margin-top:var(--uds-title-icon-margin-top)}.isLtr[_nghost-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-title-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-title-icon[_ngcontent-%COMP%]{margin-right:var(--uds-title-icon-margin-right)}html[dir=ltr][_ngcontent-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-title-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:var(--uds-title-icon-margin-right)}.isRtl[_nghost-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-title-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-title-icon[_ngcontent-%COMP%]{margin-left:var(--uds-title-icon-margin-right)}html[dir=rtl][_ngcontent-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-title-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:var(--uds-title-icon-margin-right)}.uds-main-container[_ngcontent-%COMP%] .uds-subtitle[_ngcontent-%COMP%]{margin-bottom:var(--uds-subtitle-margin-bottom)}.uds-main-container[_ngcontent-%COMP%] .uds-spinner[_ngcontent-%COMP%]{margin:var(--uds-spinner-margin) auto}.uds-main-container[_ngcontent-%COMP%] .uds-noreport[_ngcontent-%COMP%]{margin-bottom:var(--uds-noreport-margin-bottom);padding:var(--uds-noreport-padding)}.uds-main-container[_ngcontent-%COMP%] .uds-full-scroll-container[_ngcontent-%COMP%]{overflow-y:overlay;padding:var(--uds-scroll-container-padding)}.uds-main-container[_ngcontent-%COMP%] .uds-score-container[_ngcontent-%COMP%]{min-height:var(--uds-score-container-min-height);border:1px solid #494949;margin-bottom:var(--uds-score-container-margin-bottom)}.uds-main-container[_ngcontent-%COMP%] .uds-suggestion-header[_ngcontent-%COMP%]{border-top:1px solid #494949;border-left:1px solid #494949;border-right:1px solid #494949;background-color:#393939;padding:var(--uds-suggestion-header-padding)}.uds-main-container[_ngcontent-%COMP%] .uds-suggestion-container[_ngcontent-%COMP%]{border:1px solid #494949;margin-bottom:var(--uds-suggestion-container-margin-bottom);overflow-y:hidden}.uds-main-container[_ngcontent-%COMP%] .uds-suggestion-container[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.uds-main-container[_ngcontent-%COMP%] .uds-suggestion-container[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%] .uds-expansion-panel-details[_ngcontent-%COMP%]{padding:var(--uds-expansion-details-padding)}.uds-main-container[_ngcontent-%COMP%] .uds-suggestion-container[_ngcontent-%COMP%] .mat-expansion-panel-header[_ngcontent-%COMP%]{--mat-expansion-header-collapsed-state-height: auto;--mat-expansion-header-expanded-state-height: auto;padding:var(--uds-expansion-panel-padding)}.uds-main-container[_ngcontent-%COMP%] .uds-suggestion-container[_ngcontent-%COMP%] .uds-expansion-panel-header[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%]{background-color:transparent}@media (hover: hover){.uds-main-container[_ngcontent-%COMP%] .uds-suggestion-container[_ngcontent-%COMP%] .uds-expansion-panel-header[_ngcontent-%COMP%]:hover{background-color:#ffffff14!important}}.uds-main-container[_ngcontent-%COMP%] .uds-suggestion-container[_ngcontent-%COMP%] .uds-expansion-panel-header[_ngcontent-%COMP%]:active, .uds-main-container[_ngcontent-%COMP%] .uds-suggestion-container[_ngcontent-%COMP%] .uds-expansion-panel-header.cdk-keyboard-focused[_ngcontent-%COMP%]{background-color:#ffffff52!important;transition:background-color .75s ease}.uds-main-container[_ngcontent-%COMP%] .uds-suggestion-list[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #494949}.uds-main-container[_ngcontent-%COMP%] .uds-feedback-container[_ngcontent-%COMP%] .uds-feedback-title[_ngcontent-%COMP%]{vertical-align:var(--uds-feedback-title-vertical-align)}.isLtr[_nghost-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-feedback-container[_ngcontent-%COMP%] .uds-feedback-title[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-feedback-container[_ngcontent-%COMP%] .uds-feedback-title[_ngcontent-%COMP%]{margin-right:var(--uds-feedback-title-margin-right)}html[dir=ltr][_ngcontent-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-feedback-container[_ngcontent-%COMP%] .uds-feedback-title[_ngcontent-%COMP%]{--dummy4: 0;margin-right:var(--uds-feedback-title-margin-right)}.isRtl[_nghost-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-feedback-container[_ngcontent-%COMP%] .uds-feedback-title[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-feedback-container[_ngcontent-%COMP%] .uds-feedback-title[_ngcontent-%COMP%]{margin-left:var(--uds-feedback-title-margin-right)}html[dir=rtl][_ngcontent-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-feedback-container[_ngcontent-%COMP%] .uds-feedback-title[_ngcontent-%COMP%]{--dummy4: 0;margin-left:var(--uds-feedback-title-margin-right)}.uds-main-container[_ngcontent-%COMP%] .uds-feedback-container[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{height:var(--uds-feedback-button-height);width:var(--uds-feedback-button-width)}.uds-main-container[_ngcontent-%COMP%] .uds-feedback-container[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{line-height:1;vertical-align:var(--uds-feedback-icon-align)}.isLtr[_nghost-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-feedback-container[_ngcontent-%COMP%] .uds-thumb-up-button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-feedback-container[_ngcontent-%COMP%] .uds-thumb-up-button[_ngcontent-%COMP%]{margin-right:var(--uds-thumb-up-button-margin-right)}html[dir=ltr][_ngcontent-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-feedback-container[_ngcontent-%COMP%] .uds-thumb-up-button[_ngcontent-%COMP%]{--dummy4: 0;margin-right:var(--uds-thumb-up-button-margin-right)}.isRtl[_nghost-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-feedback-container[_ngcontent-%COMP%] .uds-thumb-up-button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-feedback-container[_ngcontent-%COMP%] .uds-thumb-up-button[_ngcontent-%COMP%]{margin-left:var(--uds-thumb-up-button-margin-right)}html[dir=rtl][_ngcontent-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-feedback-container[_ngcontent-%COMP%] .uds-thumb-up-button[_ngcontent-%COMP%]{--dummy4: 0;margin-left:var(--uds-thumb-up-button-margin-right)}.uds-main-container[_ngcontent-%COMP%] .uds-feedback-container[_ngcontent-%COMP%] .selected-thumb[_ngcontent-%COMP%]{background-color:#ffffff29}.uds-main-container[_ngcontent-%COMP%] .uds-feedback-container[_ngcontent-%COMP%], .uds-main-container[_ngcontent-%COMP%] .uds-snooze-container[_ngcontent-%COMP%], .uds-main-container[_ngcontent-%COMP%] .uds-learn-more-container[_ngcontent-%COMP%]{padding-bottom:var(--uds-feedback-padding-bottom)}.uds-main-container[_ngcontent-%COMP%] .uds-good-score-header-container[_ngcontent-%COMP%]{margin:var(--uds-good-score-header-margin);text-align:center}.uds-main-container[_ngcontent-%COMP%] .uds-buttons-container[_ngcontent-%COMP%]{padding-top:var(--uds-buttons-padding-top)}.isLtr[_nghost-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-buttons-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-buttons-container[_ngcontent-%COMP%]{padding-right:var(--uds-buttons-padding-right)}html[dir=ltr][_ngcontent-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-buttons-container[_ngcontent-%COMP%]{--dummy2: 0;padding-right:var(--uds-buttons-padding-right)}.isRtl[_nghost-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-buttons-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-buttons-container[_ngcontent-%COMP%]{padding-left:var(--uds-buttons-padding-right)}html[dir=rtl][_ngcontent-%COMP%] .uds-main-container[_ngcontent-%COMP%] .uds-buttons-container[_ngcontent-%COMP%]{--dummy2: 0;padding-left:var(--uds-buttons-padding-right)}.uds-main-container[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:var(--uds-icon-size);height:var(--uds-icon-size);font-size:var(--uds-icon-size)}"]})}}return it})();g.wjB(uo.z,function(){return[Pr]},[]);var gt=s(94829),on=(s(28507),s(43897)),ct=s(18568),De=s(6687),pe=s(20381);let Ge=(()=>{class it{constructor(F,Oe){this.experienceControlService=Oe,this.logger=F.getLogger("shared/Experience-Ipc")}getCloudVariable(F,Oe={},Ke,nn,Nn,_i){return this.experienceControlService.getCloudVariable(F,Oe,Ke,nn,Nn,_i).pipe((0,Ze.M)(Wi=>{}),(0,Ot.W)(Wi=>(0,At.$)(Wi)))}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.KVO(m.J6),g.KVO(pe.BW))}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})();var xt=s(95989),sn=function(it){return it[it.Greater=0]="Greater",it[it.Lesser=1]="Lesser",it[it.Equal=2]="Equal",it}(sn||{});class En{constructor(Ln,F="."){if(this.versionStr=Ln,this.delimiter=F,(0,c.isNil)(Ln)||0===Ln.length)throw new Error("invalid version string: "+Ln);this.versionComponents=[];const Oe=Ln.split(F);for(const Ke of Oe)isNaN(Number(Ke))||this.versionComponents.push(+Ke)}static getPaddedFourOctetVersion(Ln,F="."){if(!Ln)return Ln;const Oe=Ln.split(F);for(let nn=0;nn<4-Oe.length;nn++)Oe.push("0");return Oe.reduce((nn,Nn)=>`${nn}.${Nn}`)}compare(Ln){const F=Math.min(this.versionComponents.length,Ln.versionComponents.length);for(let Oe=0;Oe<F;Oe++)if(this.versionComponents[Oe]!==Ln.versionComponents[Oe])return this.versionComponents[Oe]>Ln.versionComponents[Oe]?sn.Lesser:sn.Greater;return this.versionComponents.length>Ln.versionComponents.length?sn.Lesser:this.versionComponents.length<Ln.versionComponents.length?sn.Greater:sn.Equal}compareMajorVersion(Ln){const F=Math.min(this.versionComponents.length,Ln.versionComponents.length);for(let Oe=0;Oe<F-1;Oe++)if(this.versionComponents[Oe]!==Ln.versionComponents[Oe])return this.versionComponents[Oe]>Ln.versionComponents[Oe]?sn.Lesser:sn.Greater;return this.versionComponents.length>Ln.versionComponents.length?sn.Lesser:this.versionComponents.length<Ln.versionComponents.length?sn.Greater:sn.Equal}toString(){return this.versionStr}}var Un=s(90116);const ri={notificationType:Un.$9.RecommendedUpdate,icon:"info",messageStr:{key:"notification.recommendedUpdateAvailable"},primaryButtonText:"notification.restartNow"},Mi={notificationType:Un.$9.RequiredUpdate,icon:"info",messageStr:{key:"common.updateRequiredDescription"},primaryButtonText:"notification.restartNow"},Xi={notificationType:Un.$9.CriticalUpdate,icon:"info",messageStr:{key:"notification.criticalUpdateAvailableAndTimeLeft"},primaryButtonText:"notification.restartNow",showCountDownString:!0,notificationTimeoutInSeconds:300};var Ui=function(it){return it[it.Recommended=1]="Recommended",it[it.Required=2]="Required",it[it.Critical=3]="Critical",it}(Ui||{}),fr=function(it){return it.Recommended="recommended",it.Required="required",it.Critical="critical",it}(fr||{});const co="updateData",Bo=[Un.$9.CriticalUpdate,Un.$9.RecommendedUpdate,Un.$9.RequiredUpdate];var Es=function(it){return it.InstallationFailure="InstallationFailure",it.UpdateCheckFailure="UpdateCheckFailure",it.DownloadFailure="DownloadFailure",it}(Es||{}),Fs=s(72945),Qs=s(88903);class io{static{this.zeroVersion=new En("0")}constructor(Ln,F,Oe,Ke,nn,Nn,_i,Wi,or,Hr,Mo,aa,ko,Aa){this.ipcService=Ln,this.appConfig=Oe,this.nativeEventService=Ke,this.sharedStorage=nn,this.telemetry=Nn,this.telemetryUtilService=_i,this.bridgeService=Wi,this.systemInfoService=or,this.genericDialog=Hr,this.redirectService=Mo,this.bannerNotificationService=aa,this.snackbar=ko,this.translateService=Aa,this.defaultVersion="0.0.0.0",this.snackBarDuration=7e3,this.updateInProgressDialogTimeout=2e3,this.firstRunAfterMajorUpdate=!1,this.firstRunAfterMajorUpdateObservable=new Gn.m(1),this.initialAppVersion=null,this.triggerMallRelaunchSubject$=new _.B7,this.isUpdateErrorDialogOnScreen=new Ci.t(!1),this.showUpdateDialog=!1,this.logger=F.getLogger("updateService"),this.updateEventStream=new Zr.TE(()=>(this.updateInternalSubject=new _.B7,this.updateInternalSubject.asObservable()),!1),this.baseVersion=new En((0,yo.Cl)(Oe)),this.updateChannel=Oe.selfUpdate.serverChannel,this.showUpdateDialog=Oe.selfUpdate?.showUpdateInProgressDialog??!1,this.wasUpdatedFromUI=!1,this.registerForIpcMessages(),this.registerForWindowEvents(),this.readPreviousVersion().pipe((0,Ze.M)(Ra=>{this.previousVersion=Ra||io.zeroVersion}),(0,$e.ZZ)(this.storeCurrentVersion.bind(this)),(0,$e.ZZ)(this.isFirstRunAfterUpdate.bind(this)),(0,$e.ZZ)(Ra=>Ra?this.telemetryUtilService.getAppLaunchTelemetryObservable():(0,Fe.of)(!1)),(0,$e.ZZ)(Ra=>Ra?this.sendAppLaunchTelemetry(this.previousVersion):(0,Fe.of)(null))).subscribe(ln.l,Ra=>{this.logger.error("Received error while reading and updating stored version: ",Ra)},()=>{this.logger.info("Completed reading and updating stored version")}),this.osType$=this.systemInfoService.getDeviceOSType().pipe((0,a.s)(1),(0,$a.t)(1))}initialize(){this.checkForUpdatesAndAddBanner()}registerForIpcMessages(){this.ipcSubscriptions?(this.ipcSubscriptions.forEach((F,Oe)=>{F.unsubscribe(),this.logger.info("Unregistering for ipc event: ",Oe)}),this.ipcSubscriptions.clear()):this.ipcSubscriptions=new Map,this.logger.info("Registering for ipc events");const Ln=(F,Oe)=>this.ipcService.get$(F).pipe((0,$e.ZZ)(Ke=>(this.logger.info("IPC event call for version",Ke),this.isUpdateAvailable$().pipe((0,nt.T)(nn=>(this.logger.info("IPC update available response:",nn),nn)),(0,Ot.W)(nn=>(this.errorUpdate("Received error when handling ipc update: "+nn),this.sendAppUpdateTelemetry(this.baseVersion,this.getTargetVersion(),bn.Tv4.Error,"Error on IPC event: "+nn),(0,Fe.of)(!1)))))),(0,Ot.W)(Ke=>(this.logger.error("Received error on ipc type "+F+": ",Ke),this.registerForIpcMessages(),(0,Fe.of)(!1)))).subscribe();this.ipcSubscriptions.set(De.kN.SelfUpdate,Ln(De.kN.SelfUpdate)),this.ipcSubscriptions.set(De.kN.RecommendedUpdate,Ln(De.kN.RecommendedUpdate)),this.ipcSubscriptions.set(De.kN.RequiredUpdate,Ln(De.kN.RequiredUpdate)),this.ipcSubscriptions.set(De.kN.CriticalUpdate,Ln(De.kN.CriticalUpdate))}registerForWindowEvents(){this.windowEventSubscriptions?(this.windowEventSubscriptions.forEach((F,Oe)=>{F.unsubscribe(),this.logger.info("Unregistering for window event: ",Oe)}),this.windowEventSubscriptions.clear()):this.windowEventSubscriptions=new Map,this.logger.info("Registering for window events");const Ln=this.nativeEventService.get$(m.D4.SelfUpdate,m.Jm.Types.HandlerEventType.StructuredWindowEvent).subscribe(F=>{this.logger.info("Self update native event ",F);try{const Oe=this.validateUpdateData(this.parseUpdateData(F));(0,c.isNil)(Oe)||this.handleIncomingUpdate(Oe)}catch(Oe){this.errorUpdate(Oe),this.sendAppUpdateTelemetry(this.baseVersion,this.getTargetVersion(),bn.Tv4.UpdateFailure,Oe.toString())}},F=>{this.logger.error("Received error from window event "+m.D4.SelfUpdate+": ",F),this.registerForWindowEvents()});this.windowEventSubscriptions.set(m.D4.SelfUpdate,Ln)}checkForUpdatesAndAddBanner(){this.isUpdateErrorDialogOnScreen.asObservable().pipe((0,Mr.p)(Ln=>(Ln&&Bo.forEach(F=>{this.bannerNotificationService.removeNotificationFromQueue(F)}),!Ln)),(0,bo.n)(Ln=>this.getUpdates$())).subscribe(Ln=>{this.logger.info("New udpate available"),this.onUpdateAvailable(Ln)},Ln=>{this.logger.error(`Received error from getUpdate$ observable: ${JSON.stringify(Ln)}`)}),this.updateRequiredOnLaunch$().pipe((0,a.s)(1)).subscribe(()=>{this.logger.info("Successfully checked for existing update")},Ln=>{this.logger.error(`Failed to check for existing update ticket, error: ${JSON.stringify(Ln)}`)})}onUpdateAvailable(Ln){let F;switch(this.logger.info("onUpdateAvailable",Ln),Ln.severity){case Ui.Recommended:F=ri,F.messageStr.interpolates={updateVersion:Ln.version?.toString()||this.defaultVersion};break;case Ui.Required:F=Mi;break;case Ui.Critical:F=Xi;break;default:return void this.logger.error("Unknown update type : ",Ln.severity)}F&&(F.onPrimaryButtonClick=this.onClickRestart.bind(this),this.bannerNotificationService.addNotificationToQueue(F))}onClickRestart(Ln={}){this.showUpdateDialog?(this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{showSpinner:!0,bodyText:{text:"notification.updatingGFN"}}}),setTimeout(()=>{this.triggerMallRelaunchSubject$.next(Ln)},this.updateInProgressDialogTimeout)):this.triggerMallRelaunchSubject$.next(Ln)}onMallRelaunchTrigger(){return this.triggerMallRelaunchSubject$.asObservable()}getUpdates$(){return this.updateEventStream.get$()}recordUpdateFromUI$(){return this.appendUpdateData({updateFromJS:!0})}updateApplication$(Ln=!1){return this.logger.info("App relaunch will be requested to update the app."),this.appendUpdateData({updateFromJS:!0,updateFromStreamer:Ln}).pipe((0,bo.n)(()=>this.bridgeService.executeCommand(An.Ts.Common.Applicationcontrol.Restart,{launchArguments:""}).pipe((0,Qe.u)(!0))),(0,Ot.W)(()=>this.onUpdateError()))}onUpdateError(){return(0,bi.zV)([this.translateService.get("notification.dismiss"),this.translateService.get("notification.updateFailure")]).pipe((0,nt.T)(([Oe,Ke])=>(this.snackbar.open(Ke,Oe,{duration:this.snackBarDuration,horizontalPosition:"left",panelClass:["nv-hig"]}),!1)))}getUpdateData$(){return this.logger.info("getUpdateData$ called"),this.bridgeService.executeCommand(An.Ts.Common.Update.ReadTicket,{}).pipe((0,nt.T)(Ln=>{try{this.logger.info("Update ticket value received: ",Ln);const F=this.validateUpdateData(Ln);return this.logger.info("Parsed updateTicket value ",F),F}catch(F){throw this.logger.error("Error when processing ReadTicket result: ",F),new Error(F)}}),(0,Ot.W)(Ln=>(this.logger.error("Error reading update ticket data",Ln),(0,Fe.of)(null))))}getAvailableUpdate$(){return this.getUpdateData$().pipe((0,nt.T)(Ln=>(this.handleIncomingUpdate(Ln),this.pendingUpdate)))}isUpdateAvailable$(){return this.getAvailableUpdate$().pipe((0,nt.T)(Ln=>!(0,c.isNil)(Ln)))}updateRequiredOnLaunch$(){return this.getAvailableUpdate$().pipe((0,nt.T)(Ln=>(0,c.get)(Ln,"severity",Ui.Recommended)>Ui.Recommended))}isFirstAppRunAfterMajorUpdate$(){return this.firstRunAfterMajorUpdateObservable.asObservable()}parseUpdateData(Ln){let F;try{F=JSON.parse(Ln)}catch{const Ke="Update ticket raised with improper JSON: "+Ln;throw this.logger.error(Ke),new Error(Ke)}if((0,c.isNil)(Ln)||(0,c.isNil)(F)){const Oe="Update ticket raised with null data: "+Ln;throw this.logger.error(Oe),new Error(Oe)}return F}validateUpdateData(Ln){if((0,c.isNil)(Ln)){const Oe="validateUpdateData called with null updateData";throw this.logger.error(Oe),new Error(Oe)}if(!Ln.available||(0,c.isNil)(Ln.severity)||(0,c.isNil)(Ln.version))return this.logger.info("No update available"),null;const F=function yr(it){switch(it){case fr.Recommended:return Ui.Recommended;case fr.Required:return Ui.Required;case fr.Critical:return Ui.Critical;default:return null}}(Ln.severity);if((0,c.isNil)(F)){const Oe="Unrecognized update severity: "+Ln.severity;throw this.logger.error(Oe),new Error(Oe)}return{version:new En(Ln.version),severity:F}}isUpdateAccepted(Ln){if((0,c.isNil)(Ln))return!1;if((0,c.isNil)(this.pendingUpdate))return this.baseVersion.compare(Ln.version)===sn.Greater;switch(this.pendingUpdate.version.compare(Ln.version)){case sn.Greater:return!0;case sn.Lesser:return this.logger.info("Checked update has a lower version than current pending update: "+this.updateDataToString(Ln)+" < "+this.updateDataToString(this.pendingUpdate)),!1;case sn.Equal:return Ln.severity>this.pendingUpdate.severity||(this.logger.info("Raised update has equal version and lesser or equal severity as current pending update: "+this.updateDataToString(Ln)+" <= "+this.updateDataToString(this.pendingUpdate)),!1)}return!1}handleIncomingUpdate(Ln){this.isUpdateAccepted(Ln)?this.acceptUpdate(Ln):this.ignoreUpdate(Ln)}acceptUpdate(Ln){this.logger.info("Accepting new update data: ",Ln),this.pendingUpdate=Ln,this.updateInternalSubject.next(this.pendingUpdate),this.sendAppUpdateTelemetry(this.baseVersion,Ln.version,bn.Tv4.IPCReceived)}errorUpdate(Ln){const F="Raising error when processing update: "+Ln;this.logger.error(F),this.updateInternalSubject.error(F)}ignoreUpdate(Ln){this.logger.info("Ignoring update data: ",Ln)}updateDataToString(Ln){return(0,c.isNil)(Ln)?"undefined":Ln.version+":("+Ln.severity+")"}readUpdateData(){return this.sharedStorage.readBlock(co)}writeUpdateData(Ln){return this.sharedStorage.writeBlock(co,Ln)}appendUpdateData(Ln){return this.readUpdateData().pipe((0,$e.ZZ)(F=>{(0,c.isNil)(Ln)&&(F={});const Oe={...F,...Ln};return this.writeUpdateData(Oe)}))}isFirstRunAfterUpdate(){return this.readPreviousVersion().pipe((0,Ze.M)(Ln=>{this.firstRunAfterMajorUpdate=this.baseVersion.compareMajorVersion(Ln)===sn.Lesser,this.firstRunAfterMajorUpdateObservable.next(this.firstRunAfterMajorUpdate&&!this.isFirstApplicationInstall(Ln))}),(0,nt.T)(Ln=>this.baseVersion.compare(Ln)===sn.Lesser))}isFirstApplicationInstall(Ln){return Ln.compare(io.zeroVersion)===sn.Equal}storeCurrentVersion(){const Ln={currentVersion:this.baseVersion.toString()};return this.isFirstApplicationInstall(this.previousVersion)&&(Ln.initialAppVersion=En.getPaddedFourOctetVersion(this.baseVersion.toString())),this.appendUpdateData(Ln)}getInitialVersion(){return this.initialAppVersion?(0,Fe.of)(this.initialAppVersion):this.readUpdateData().pipe((0,nt.T)(Ln=>{const F=Ln?.initialAppVersion;return this.initialAppVersion=F&&new En(F)||io.zeroVersion,this.initialAppVersion}))}readPreviousVersion(){return(0,c.isNil)(this.previousVersion)?((0,c.isNil)(this.readPreviousVersionOb$)&&(this.readPreviousVersionOb$=this.readUpdateData().pipe((0,nt.T)(Ln=>{if((0,c.isNil)(Ln))this.logger.info("No update data found in shared storage");else{this.wasUpdatedFromUI=(0,c.get)(Ln,"updateFromJS",!1);const F=(0,c.get)(Ln,"currentVersion",io.zeroVersion.toString()),Oe=new En(F);if(Oe.compare(io.zeroVersion)!==sn.Equal)return Oe;this.logger.info("No previous version found in shared storage update block")}return io.zeroVersion}),(0,Ot.W)(Ln=>{const F="Error caught when reading update data from shared storage: "+Ln;throw this.logger.error(F),new Error(F)}))),this.readPreviousVersionOb$):(0,Fe.of)(this.previousVersion)}sendAppUpdateTelemetry(Ln,F,Oe,Ke,nn){this.logger.info("Uploading app update telemetry",Ln,F,Oe,Ke,nn);const Nn=new bn.mTv({previousVersion:(0,c.isNil)(Ln)?"":Ln.toString(),targetVersion:(0,c.isNil)(F)?"":F.toString(),status:Oe,downloadTimeMs:0,upTimeMs:0,retryCount:0,channel:this.updateChannel,updateUrl:"",errorCategory:(0,c.isNil)(Ke)?bn.$_D.None:bn.$_D.General,errorMessage:(0,c.isNil)(Ke)?"":Ke});this.telemetry.push(Nn,0,nn)}sendAppLaunchTelemetry(Ln){return this.systemInfoService.getSystemInfo([m.Lu.OSName,m.Lu.OSVersion]).pipe((0,nt.T)(F=>({OSName:F.OSName,OSVersion:F.OSVersion})),(0,Ot.W)(F=>(this.logger.error("Received error from getOsInfo, uploading telemetry without os info. Error = ",F),(0,Fe.of)({OSName:"",OSVersion:""}))),(0,nt.T)(F=>{let Oe,Ke;Ln===io.zeroVersion?(Oe="",Ke=bn.kSA.FirstApplicationInstall):(Oe=Ln.toString(),Ke=bn.kSA.SelfUpdateInstallAuto,this.sendAppUpdateTelemetry(this.previousVersion,this.baseVersion,bn.Tv4.UpdateSuccess,null));const nn={clientType:this.telemetryUtilService.getClientType(),type:Ke,previousAppVersion:Oe,osName:F.OSName};this.logger.info("Uploading app install telemetry: ",Ke);const Nn=new bn.iQN(nn);this.telemetry.push(Nn)}))}getTargetVersion(){return(0,c.isNil)(this.pendingUpdate)?null:this.pendingUpdate.version}checkLastInstallationStatus(){this.osType$.pipe((0,Mr.p)(Ln=>Ln===m.t_.Windows||Ln===m.t_.SteamOS),(0,$e.ZZ)(()=>this.bridgeService.executeCommand(An.Ts.Common.Applicationcontrol.RequestLastInstallerStatus))).subscribe(Ln=>{this.logger.info("RequestLastInstallerStatus response: ",Ln),Ln&&!(0,c.isEmpty)(Ln?.errorcode)?this.showUpdateDownloadFailureErrorDialog(Ln.errorcode):(this.logger.error("RequestLastInstallerStatus data is not valid."),this.checkUpdateDownloadFailure())},Ln=>{this.logger.error("RequestLastInstallerStatus returns error: ",Ln),this.checkUpdateDownloadFailure()}),this.osType$.pipe((0,Mr.p)(Ln=>Ln===m.t_.MacOS),(0,Ze.M)(()=>this.checkUpdateDownloadFailure())).subscribe()}checkUpdateDownloadFailure(){this.ipcService.get$(De.kN.UpdateCheckFailure).subscribe(F=>{this.logger.info("UpdateCheckFailure response: ",F),this.showUpdateDownloadFailureErrorDialog(null,Es.UpdateCheckFailure,F)},F=>this.logger.error("Error checking UpdateCheckFailure: ",F)),this.ipcService.get$(De.kN.DownloadPrepareFailure).subscribe(F=>{this.logger.info("DownloadPrepareFailure respopnse: ",F),this.showUpdateDownloadFailureErrorDialog(null,Es.DownloadFailure,F)},F=>this.logger.error("Error checking DownloadPrepareFailure: ",F)),this.ipcService.get$(De.kN.SelfUpdateThresholdNotReached).subscribe(F=>this.logger.info("SelfUpdateThresholdNotReached respopnse: ",F),F=>this.logger.error("Error checking SelfUpdateThresholdNotReached: ",F));const Ln={type:De.kN.SelfUpdateStatus,content:"",sender:De.pQ.GfnMall,recipient:De.pQ.GfnUpdater};this.logger.info("Sending IPC message for checking self update status:",Ln),this.ipcService.pushMessage(Ln).pipe((0,a.s)(1)).subscribe(F=>this.logger.info("SelfUpdateStatus requested: ",F),F=>this.logger.error("Error checking SelfUpdateStatus: ",F))}errorDialogLinkClicked(){this.logger.info("App manual download link clicked"),this.osType$.pipe((0,a.s)(1),(0,nt.T)(Ln=>{let F,Oe="";return Ln===m.t_.SteamOS?(F=It.r7.GfnPcHelpLinuxInstallation,Oe=It.lp[It.r7.GfnPcHelpLinuxInstallation]):F=It.r7.GfnPcDownload,{redirectUrl:F,shortUrl:Oe}})).subscribe(({redirectUrl:Ln,shortUrl:F})=>{this.redirectService.openRedirectUrl(Ln,F)})}showUpdateDownloadFailureErrorDialog(Ln,F=Es.InstallationFailure,Oe){let Ke=bn.Mwe.InstallationAttemptExhausted;F===Es.DownloadFailure?Ke=bn.Mwe.DownloadAttemptExhausted:F===Es.UpdateCheckFailure&&(Ke=bn.Mwe.UpdateCheckAttemptsExhausted),this.sendSelfUpdateTelemetry(Ke,bn._aO.PopupShown,Ln??"",bn.fbu.Failure,Oe??"");const or={text:this.appConfig.selfUpdate?.showLearnMoreKBA?"common.learnMore":"notification.getLatestApp",linkClickedCallback:this.errorDialogLinkClicked.bind(this)};let Hr;Ln&&(Hr={text:"error.errorCode",placeholders:{errorCode:Ln}});const Mo=F===Es.InstallationFailure||F===Es.DownloadFailure?"notification.updateFailureTitle":"notification.updateFailureCheckTitle",aa=F===Es.InstallationFailure||F===Es.DownloadFailure?"notification.updateFailureNotification":"notification.updateFailureCheckBody";this.isUpdateErrorDialogOnScreen.next(!0);const ko=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:Mo},bodyText:{text:aa},primaryButton:{text:"common.close"},link:or,errorCodeText:Ln?Hr:null}});ko.primaryButtonClick.pipe((0,a.s)(1)).subscribe(()=>{this.logger.info("close clicked "),this.isUpdateErrorDialogOnScreen.next(!1),ko.close()})}sendSelfUpdateTelemetry(Ln,F,Oe,Ke,nn){const Nn=new bn.OCG({category:Ln,action:F,errorDetails:Oe,status:Ke,newVersion:nn});this.telemetry.push(Nn)}static{this.\u0275fac=function(F){return new(F||io)(g.KVO(De.Uj),g.KVO(m.J6),g.KVO(yo.Vk),g.KVO(m.dU),g.KVO(Fs.yQ),g.KVO(I.H0),g.KVO(bn.jgD),g.KVO(m.NZ),g.KVO(m.zW),g.KVO(M.uh),g.KVO(It.Q5),g.KVO(Qs.Hm),g.KVO(G.UG),g.KVO(P.c$))}}static{this.\u0275prov=g.jDH({token:io,factory:io.\u0275fac,providedIn:"root"})}}s(92262);var yl=s(33089),ze=s(64962),pt=s(46356),wt=s(8094);let $t=(()=>{class it{constructor(F,Oe,Ke){this.idmService=F,this.loggingService=Oe,this.sharedStorageService=Ke,this.currentUserId="undefined",this.currentUserConsent=I.wx,this.userConsentFetchedSubject=new Gn.m(1),this.logger=this.loggingService.getLogger("UserConsentWrapperService")}initialize(){this.readSharedStorageConsent(),this.onUserAccountStatusChanged(),this.onJarvisUserDataChanged()}hasUserIdChanged(F){return!(0,c.isEqual)(this.currentUserId,F)}hasUserConsentChanged(F){return!(0,c.isEqual)(this.currentUserConsent,F)}setCurrentUserData(F,Oe){this.currentUserId=F,this.currentUserConsent=Oe}readSharedStorageConsent(){this.sharedStorageService.readBlock("userConsentInfo").subscribe(F=>{!(0,c.isUndefined)(F)&&this.hasUserIdChanged(F.userId)&&this.hasUserConsentChanged(F.userConsent)&&(this.setCurrentUserData(F.userId,F.userConsent),this.userConsentFetchedSubject.next({userId:F.userId,externalUserId:F.externalUserId,idpId:F.idpId,userConsent:F.userConsent}))})}onUserAccountStatusChanged(){this.idmService.accountStatusChanged.subscribe(F=>{if(F.isAuthenticated){const Oe=(0,wt.A$)(F);this.hasUserIdChanged(F.userId)&&this.hasUserConsentChanged(Oe)&&(this.setCurrentUserData(F.userId,Oe),this.userConsentFetchedSubject.next({userId:F.userId,externalUserId:F.externalId,idpId:F.idpId,userConsent:Oe}))}else this.setCurrentUserData(F.userId,I.bC),this.userConsentFetchedSubject.next({userId:"",externalUserId:"",idpId:"",userConsent:void 0})})}onJarvisUserDataChanged(){this.idmService.accountStatusChanged.subscribe(F=>{if(F.isAuthenticated){const Oe=(0,wt.A$)(F);this.hasUserIdChanged(F.userId)&&this.hasUserConsentChanged(Oe)&&(this.setCurrentUserData(F.userId,Oe),this.userConsentFetchedSubject.next({userId:F.userId,externalUserId:F.externalId,idpId:F.idpId,userConsent:Oe}))}else this.hasUserIdChanged(F.userId)&&this.userConsentFetchedSubject.next({userId:"",externalUserId:"",idpId:"",userConsent:void 0})})}getUserConsentFetchedSubjectObservable(){return this.userConsentFetchedSubject.asObservable()}getLogoutInitiatedNotification(){return this.idmService.getLogoutInitializeNotification()}sameTabAuthStarted(){return this.idmService.sameTabAuthStarted()}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.KVO(jr.k_),g.KVO(m.J6),g.KVO(Fs.yQ))}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})();const an="saveAppInstanceId";let zt=(()=>{class it{constructor(F,Oe,Ke,nn,Nn,_i,Wi,or,Hr,Mo,aa){this.appConfig=F,this.systemInfoService=Oe,this.telemetryService=Ke,this.remoteLoggingService=nn,this.userConsentWrapperService=Nn,this.loggingService=_i,this.sharedStorageService=Wi,this.logQueueService=or,this.gfnWebWorkerService=Hr,this.telemetryUtilService=Mo,this.injector=aa,this.defaultConsent=I.wx,this.appInstanceIdSubject=new Ci.t(""),this.appInstanceId=m.Qe,this.waitForLogRestore$=new Gn.m(1),this.eventParamIds={streamSessionId:"",surveySessionId:""},this.clientVersion="",this.logger=this.loggingService.getLogger("GfcHelperService")}restoreAllData(){null!==window.sessionStorage.getItem(an)&&(this.remoteLoggingService.restoreSavedLogs(),this.appInstanceId=window.sessionStorage.getItem(an),window.sessionStorage.removeItem(an)),this.waitForLogRestore$.next(!0)}getLogoutInitializeNotification(){this.userConsentWrapperService.getLogoutInitiatedNotification().subscribe(F=>{this.remoteLoggingService.handleExternalUrlLoad()})}saveLogsOnLoginClick(){this.logger.info("Subscribing to Login initiated notification"),this.userConsentWrapperService.sameTabAuthStarted().subscribe(F=>{F===pt.l4.LoginStarted&&(this.logger.info("Received notification for ",F),window.sessionStorage.setItem(an,this.appInstanceId),this.remoteLoggingService.saveLogsToSessionStorage(),this.logger.info("Completed saving appInstanceId and Logs"))})}initialize(F,Oe=this.eventParamIds){this.clientVersion=F,this.restoreAllData(),this.saveLogsOnLoginClick();const Ke=this.appConfig.gfcFeedbackEvents;this.remoteLoggingService.setBufferConfiguration({msBetweenChunkCreation:Ke.msBetweenChunkCreation,maxBufferSizeInBytes:Ke.maxBufferSizeInBytes,chunksQueueSize:Ke.chunksQueueSize,chunkResendRetryLimit:Ke.chunkResendRetryLimit}),this.userConsentWrapperService.initialize(),this.prepareAllGfcEventParams(Oe),this.registerForTimerRequests().subscribe(c.noop,nn=>{this.logger.error("Error getting timer updates")}),this.telemetryService.getDefaultClientConsentObserable().subscribe(()=>{this.defaultConsent=I.bC,this.remoteLoggingService.defaultConsentLevel=I.bC}),this.getLogoutInitializeNotification()}onTimerUpdate(F){F===ze.Yk.Timeout||F===ze.Yk.Cleared?this.logQueueService.updateTimer(F):this.logger.error("Error polling for idle timeout: ",F)}registerForTimerRequests(){return this.logQueueService.timerSubscriptionChanged().pipe((0,bo.n)(F=>this.gfnWebWorkerService.intervalHandler(F,this.onTimerUpdate.bind(this))))}buildGFNPCLogsFeedbackData(F){return this.systemInfoService.getSystemInfo([m.Lu.BrowserName,m.Lu.BrowserVersion,m.Lu.OSName]).pipe((0,nt.T)(Oe=>{const Ke=(0,c.extend)({},{appInstanceId:F.appInstanceId,streamSessionId:F.streamSessionId||"",browserName:Oe.BrowserName||"",browserVersion:Oe.BrowserVersion||"",osName:Oe.OSName||"",streamSubSessionIds:[],surveySessionId:F.surveySessionId||""});return this.logger.info("Prepared gfc feedback event params."),this.remoteLoggingService.prepareGfcFeedbackEventParams(Ke),!0}))}setAppInstanceIdInIndexedDb(F){return this.sharedStorageService.writeBlock("gfc",{appInstanceId:F})}prepareGfnPcLogsEventParams(F){let Oe;return this.waitForLogRestore$.pipe((0,$e.ZZ)(Ke=>(this.appInstanceId===m.Qe&&(this.appInstanceId=(0,Zr.bz)()),this.setAppInstanceIdInIndexedDb(this.appInstanceId))),(0,$e.ZZ)(Ke=>(Oe=Ke,F.appInstanceId=this.appInstanceId,this.buildGFNPCLogsFeedbackData(F))),(0,Ze.M)(Ke=>{Oe&&(console.log("Application InstanceId: ",this.appInstanceId),this.appInstanceIdSubject.next(this.appInstanceId))}))}getClientVariantType(F){switch(F){case"ibeta":return m.zg.iBeta;case"release":return m.zg.Release;default:return m.zg.Undefined}}fetchCommonDataFromSystem(F,Oe){return(0,bi.zV)([this.systemInfoService.getSystemInfo([m.Lu.DeviceId,m.Lu.OSName,m.Lu.OSVersion,m.Lu.SystemName,m.Lu.DeviceType,m.Lu.BrowserName]),this.userConsentWrapperService.getUserConsentFetchedSubjectObservable()]).pipe((0,nt.T)(([Ke,nn])=>{const Nn={clientVer:this.clientVersion,deviceId:Ke.DeviceId,sessionId:this.telemetryService.telemetrySessionId,feedbackId:this.telemetryService.telemetrySessionId,feedbackName:F,fileList:Oe,clientType:m.sK.Browser,clientVariant:this.getClientVariantType(this.appConfig.build.variant),deviceOS:Ke.OSName,deviceOSVersion:Ke.OSVersion??m.Qe,deviceMake:m.Qe,deviceModel:Ke.SystemName||m.Qe,deviceType:Ke.DeviceType,browserType:Ke.BrowserName??m.Qe,integrationId:this.telemetryUtilService.getIntegrationId(),deviceGdprFuncOptIn:this.defaultConsent.functional,deviceGdprTechOptIn:this.defaultConsent.technical,deviceGdprBehOptIn:this.defaultConsent.behavioral,productName:this.appConfig.gfcFeedbackEvents.productName,productVersion:this.clientVersion||m.Qe};return this.logger.trace(Zr.N_.UserDetails,Zr.YD.UserInfo,"Feedback id is "+Nn.feedbackId),this.logger.trace(Zr.N_.UserDetails,Zr.YD.UserInfo,"Client version is "+Nn.clientVer),(0,c.isEmpty)(nn.userId)||nn.userId===m.Qe?(Nn.userId=m.Qe,Nn.externalUserId=m.Qe,Nn.idpId=m.Qe):(Nn.userId=nn.userId,Nn.externalUserId=nn.externalUserId,Nn.idpId=nn.idpId),nn?.userConsent&&(Nn.gdprFuncOptIn=nn.userConsent.functional,Nn.gdprTechOptIn=nn.userConsent.technical,Nn.gdprBehOptIn=nn.userConsent.behavioral),Nn}),(0,Ot.W)(Ke=>(this.logger.error("Error fetching common device info: ",Ke),(0,At.$)(Ke))))}prepareFeedbackEventCommonParameters(){return console.log("telemetry sessionId/feedbackId ",this.telemetryService.telemetrySessionId),this.fetchCommonDataFromSystem("GFNPCLogs",[{name:"mall_console.txt",type:"file/gfnwebobfuscation"}]).pipe((0,bo.n)(Oe=>(this.remoteLoggingService.prepareFeedbackCommonEventData(Oe),this.logger.info("Prepared common gfc feedback event params."),(0,Fe.of)(!0))),(0,Ot.W)(Oe=>(this.logger.error("Error fetching systeminfo or deviceId: ",Oe),(0,Fe.of)(!1))))}prepareAllGfcEventParams(F){const Oe=this.prepareFeedbackEventCommonParameters(),Ke=this.prepareGfnPcLogsEventParams(F);(0,Zi.yU)(Oe,Ke).subscribe(nn=>{!(0,c.isUndefined)(nn)&&nn[0]&&nn[1]&&this.handleUserConsentUpdates()})}handleUserConsentUpdates(){this.userConsentWrapperService.getUserConsentFetchedSubjectObservable().subscribe(F=>{(0,c.isEmpty)(F.userId)?this.remoteLoggingService.prepareFeedbackCommonEventData({userId:m.Qe}):(F.userId!==m.Qe||!(0,c.isEmpty)(F.userId))&&(this.remoteLoggingService.prepareFeedbackCommonEventData({userId:F.userId}),this.remoteLoggingService.setUserConsent({userId:F.userId,externalUserId:F.externalUserId,idpId:F.idpId,userConsent:F.userConsent}))})}updateEventDataParamIds(F){this.remoteLoggingService.updateEventDataParamIds(F)}getAppInstanceId(){return this.appInstanceIdSubject.asObservable()}terminateRemoteLogSession(){this.logger.info("Terminating log collection."),this.remoteLoggingService.stopFeedbackUpload()}triggerExceptionInfoUpload(F){const Oe=this.injector.get(yl.NO);if(Oe){this.logger.info("EndPoints service available");const{exceptionTrace:Ke,...nn}=F;(0,bi.zV)([this.remoteLoggingService.feedbackId$,this.fetchCommonDataFromSystem("GFNUIException")]).pipe((0,a.s)(1),(0,$e.ZZ)(([Nn,_i])=>{this.logger.info("feedbackId:",Nn),_i.clientTs=(new Date).toISOString(),_i.feedbackId=(0,Zr.bz)();let Wi=!1;_i.gdprTechOptIn===m.Rg.Full&&(_i.fileList=[{name:"exception_trace.txt",type:"file/js-stacktrace"}],Wi=!0),this.logger.info("Common data:",_i);const or={..._i,parameters:{...nn}};return or.parameters.logsFeedbackId=Nn,Oe.sendFeedbackBasedOnTechConsent(or,Wi,Ke)})).subscribe(()=>{this.logger.info("Exception data sent successfully")},Nn=>{this.logger.info("Error uploading exception info:",Nn)})}else this.logger.info("EndPoints service not available, not uploading the feedback event")}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.KVO(yo.Vk),g.KVO(m.zW),g.KVO(I.H0),g.KVO(m.Vn),g.KVO($t),g.KVO(m.J6),g.KVO(Fs.yQ),g.KVO(m.V9),g.KVO(ze.JS),g.KVO(bn.jgD),g.KVO(g.zZn))}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})();var mn=s(6478),Qn=An.Or.Common.Discord.DiscordAsset;let li=(()=>{class it{get isDiscordDataReady$(){return this.isDiscordDataReadySubject.asObservable()}constructor(F,Oe,Ke,nn,Nn){this.bridgeService=Oe,this.settingsService=Ke,this.appConfig=nn,this.translate=Nn,this.isDiscordDataReadySubject=new _.B7,this.logger=F.getLogger("DiscordService"),this.discordRpEnabled=ar.y9.discordRpEnabled,this.featureEnabled=this.appConfig.featureEnablement.discordRichPresence&&m.zk.isCefPlatform()||!1,this.settingsService.getSettingsData().subscribe(_i=>{this.discordRpEnabled=(0,c.get)(_i,"discordRpEnabled",ar.y9.discordRpEnabled),this.isDiscordDataReadySubject.next()},_i=>{this.logger.error("Failed to get settings data",_i),this.isDiscordDataReadySubject.next()})}updatePresence(F){!this.featureEnabled||!F||this.translate.get("discord.playing",{title:F}).subscribe(Oe=>{this.currentPresence={details:Oe.trim().substring(0,128),largeImageKey:Qn.Large},this.discordRpEnabled&&this.updatePresenceCommand(this.currentPresence)})}clearPresence(){!this.featureEnabled||!this.currentPresence||(this.currentPresence=null,this.clearPresenceCommand())}updatePresenceCommand(F){(0,c.isEmpty)(F)||(this.logger.info("Updating rich presence with params",F),this.bridgeService.executeCommand(An.Ts.Common.Discord.UpdatePresence,F).subscribe())}clearPresenceCommand(){this.logger.info("Clearing rich presence"),this.bridgeService.executeCommand(An.Ts.Common.Discord.ClearPresence,{}).subscribe()}setDiscordEnabled(F){this.discordRpEnabled=F,F?this.updatePresenceCommand(this.currentPresence):this.clearPresenceCommand()}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.KVO(m.J6),g.KVO(m.NZ),g.KVO(ar.h$),g.KVO(yo.Vk),g.KVO(P.c$))}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})();s(98231),s(9544),s(15074);var Br=s(82973),Xo=s(70650),Do=s(19392);const Lo=["portable","laptop","sub notebook","convertible","detachable","notebook"];var wr=function(it){return it.Unknown="-1",it.Disabled="0",it.Enabled="1",it}(wr||{}),_s=function(it){return it.Locale="Locale",it.SystemInfo="SystemInfo",it.User="User",it.Init="Init",it.Geo="Geo",it}(_s||{});const ls={hasGeoInfo:!0,hasLocaleInfo:!0,hasSystemInfo:!0,hasUserInfo:!1},zs={additionalHwInfo:!1,geo:!1},ia=[{LCID:[1029],code:"cs-CZ",name:"\u010ce\u0161tina (Czech)",isoThreeLetter:"ces",countryCode:"CZ"},{LCID:[1030],code:"da-DK",name:"Dansk (Danish)",isoThreeLetter:"dan",countryCode:"DK"},{LCID:[1031,3079,5127,4103,2055],code:"de-DE",name:"Deutsch (German)",isoThreeLetter:"deu",countryCode:"DE"},{LCID:[1032],code:"el-GR",name:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac (Greek)",isoThreeLetter:"ell",countryCode:"GR"},{LCID:[1033],code:"en-US",name:"English - United States",isoThreeLetter:"eng",countryCode:"US"},{LCID:[2057,1078,1052,1118,1067,1101,1068,5146,1026,1109,1050,4122,1125,2067,1126,3081,10249,6153,5129,7177,12297,1061,1127,1071,2108,1084,1079,1129,1039,1136,1137,2144,1120,1087,1153,2128,2068,1048,2074,1091,1093,2117,16393,1081,1121,2145,1094,2118,1113,2137,1115,2080,3081,15369,14345,17417,5129,13321,18441],code:"en-GB",name:"English - United Kingdom",isoThreeLetter:"eng",countryCode:"GB"},{LCID:[3082,1069,1027,1034],code:"es-ES",name:"Espa\xf1ol - Espa\xf1a (Spanish - Spain)",isoThreeLetter:"spa",countryCode:"ES"},{LCID:[2058,11274,16394,13322,9226,5130,7178,12298,17418,4106,18442,58378,19466,6154,15370,10250,20490,21514,14346,8202],code:"es-MX",name:"Espa\xf1ol - M\xe9xico (Spanish - Mexico)",isoThreeLetter:"spa",countryCode:"MX"},{LCID:[1035],code:"fi-FI",name:"Suomi (Finnish)",isoThreeLetter:"fin",countryCode:"FI"},{LCID:[1036,2060,11276,3084,9228,12300,15372,5132,13324,6156,14348,58380,8204,10252,4108,7180,1122],code:"fr-FR",name:"Fran\xe7ais (French)",isoThreeLetter:"fra",countryCode:"FR"},{LCID:[1038],code:"hu-HU",name:"Magyar (Hungarian)",isoThreeLetter:"hun",countryCode:"HU"},{LCID:[1040,2064],code:"it-IT",name:"Italiano (Italian)",isoThreeLetter:"ita",countryCode:"IT"},{LCID:[1041],code:"ja-JP",name:"\u65e5\u672c\u8a9e (Japanese)",isoThreeLetter:"jpn",countryCode:"JP"},{LCID:[1042],code:"ko-KR",name:"\ud55c\uad6d\uc5b4 (Korean)",isoThreeLetter:"kor",countryCode:"KR"},{LCID:[1043],code:"nl-NL",name:"Nederlands (Dutch)",isoThreeLetter:"nld",countryCode:"NL"},{LCID:[1044,14],code:"nb-NO",name:"Norsk (Norwegian)",isoThreeLetter:"nor",countryCode:"NO"},{LCID:[1045],code:"pl-PL",name:"Polski (Polish)",isoThreeLetter:"pol",countryCode:"PL"},{LCID:[2070],code:"pt-PT",name:"Portugu\xeas - Portugal (Portuguese - Portugal)",isoThreeLetter:"por",countryCode:"PT"},{LCID:[1046,2070],code:"pt-BR",name:"Portugu\xeas - Brasil (Portuguese - Brazil)",isoThreeLetter:"por",countryCode:"BR"},{LCID:[1049,2092,1059,1088,1104,2073,3098,2115],code:"ru-RU",name:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439 (Russian)",isoThreeLetter:"rus",countryCode:"RU"},{LCID:[1051],code:"sk-SK",name:"Sloven\u010dina (Slovak)",isoThreeLetter:"slk",countryCode:"SK"},{LCID:[1060],code:"sl-SI",name:"Sloven\u0161\u010dina (Slovenian)",isoThreeLetter:"slv",countryCode:"SI"},{LCID:[1053],code:"sv-SE",name:"Svenska (Swedish)",isoThreeLetter:"swe",countryCode:"SE"},{LCID:[1054],code:"th-TH",name:"\u0e44\u0e17\u0e22 (Thai)",isoThreeLetter:"tha",countryCode:"TH"},{LCID:[1055],code:"tr-TR",name:"T\xfcrk\xe7e (Turkish)",isoThreeLetter:"tur",countryCode:"TR"},{LCID:[1058],code:"uk-UA",name:"Ukrainian (Ukraine)",isoThreeLetter:"ukr",countryCode:"UA"},{LCID:[2052,804,4],code:"zh-CHS",cmsCode:"zh_CN",name:"\u7b80\u4f53\u4e2d\u6587 (Chinese - Simplified)",isoThreeLetter:"zho",countryCode:"CN"},{LCID:[3076,1028,4100,404,5124,31748],code:"zh-CHT",cmsCode:"zh_TW",name:"\u7e41\u9ad4\u4e2d\u6587 (Chinese - Traditional)",isoThreeLetter:"zho",countryCode:"CN"}];var ga=An.Or.Nvapp.Driverupdaterecommendation.DriverTypeEnum;let nl=(()=>{class it{static{this.\u0275fac=function(Oe){return new(Oe||it)}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac})}}return it})(),ua=(()=>{class it{constructor(F,Oe,Ke,nn,Nn){this.config=Oe,this.systemInfoService=Ke,this.localeService=nn,this.injector=Nn,this.logger=F.getLogger("crimson/sdk/gfwsl/GfwslParamsService"),this.config.includedParams=this.config.includedParams||zs,this.params={gcV:this.config.appVersion},this.hasGeneralSystemInfo=!1,this.hasGenericSystemInfo=!1,this.hasGpuInfo=!1,this.hasLocaleInfo=!1,this.hasUserInfo=!1,this.hasGeoInfo=!1,this.gfwslParamsUpdated$=new Ci.t(this.getParamEventData(_s.Init))}digestMessage(F){return(0,Xo.A)(function*(){const Oe=(new TextEncoder).encode(F),Ke=yield crypto.subtle.digest("SHA-256",Oe);return Array.from(new Uint8Array(Ke)).map(_i=>_i.toString(16).padStart(2,"0")).join("")})()}getParamEventData(F){return{type:F,hasSystemInfo:this.isSystemInfoComplete(),hasLocaleInfo:this.hasLocaleInfo,hasUserInfo:this.hasUserInfo,hasGeoInfo:this.hasGeoInfo,params:this.params}}isSystemInfoComplete(){return this.hasGeneralSystemInfo&&this.config.includedParams.additionalHwInfo===this.hasGenericSystemInfo&&this.config.includedParams.additionalHwInfo===this.hasGpuInfo}get gfwslParamsUpdated(){return this.gfwslParamsUpdated$}initialize(){this.processSystemInfo(),this.processLocaleInfo(),this.config.includedParams.additionalHwInfo&&(this.hardwareService=this.injector.get(m.SQ),this.hardwareService||this.logger.error("ERROR:: Failed to obtain HardwareInformationService"),this.processGenericInfo(),this.processGpuInfo()),this.config.includedParams.geo&&this.initGeoService(),(0,Do.H)(this.digestMessage(this.config.userAgent+"/"+this.params.gcV)).subscribe(F=>{this.params.aiD=F})}onAccountStatusChanged(F,Oe,Ke,nn,Nn){this.params.jUid=Oe?btoa(F):F,this.hasUserInfo=Oe,this.params.uCst=[Ke===I.Rg.Full?wr.Enabled:wr.Disabled,nn===I.Rg.Full?wr.Enabled:wr.Disabled,Nn===I.Rg.Full?wr.Enabled:wr.Disabled],this.gfwslParamsUpdated$.next(this.getParamEventData(_s.User))}onGfwslParamsReady(F=ls){return this.gfwslParamsUpdated$.pipe((0,Mr.p)(Oe=>this.checkAvailableGfwslParams(F,Oe)),(0,a.s)(1))}initGeoService(){this.processGeoInfo()}checkAvailableGfwslParams(F,Oe){for(const Ke of Object.keys(F))if(F[Ke]!==Oe[Ke])return!1;return!0}processSystemInfo(){this.systemInfoService.getSystemInfo([m.Lu.OSName,m.Lu.OSVersion,m.Lu.ProcessorArchitecture,m.Lu.UserDefaultUILanguage,m.Lu.PhysicalMemoryCapacity]).subscribe(F=>{this.params.is6="x86_64"===F.ProcessorArchitecture?wr.Enabled:wr.Disabled,({ProcessorArchitecture:this.params.pArch,CPUName:this.params.cID}=F),[this.params.osC,this.params.osB]=this.getOSInfo(F.OSName,F.OSVersion),this.params.sM=this.computeMemory(F),this.params.IsB=wr.Disabled,this.params.gIsB=wr.Disabled,this.params.apRT="802.11a",this.userDefaultUILanguage=F.UserDefaultUILanguage,this.params.sdWmfp=wr.Enabled,this.params.O=`${this.params.pArch}/${this.params.osC}`,this.hasGeneralSystemInfo=!0,this.gfwslParamsUpdated$.next(this.getParamEventData(_s.SystemInfo))},F=>{this.logger.error("System info errored out",F)})}processGenericInfo(){this.hardwareService.getGenericInfo(!1).subscribe(F=>{(0,c.isEqual)(F,this.genericInfo)||(this.genericInfo=F,this.params.iLp=Lo.includes(F.MoboType?.toLowerCase())?wr.Enabled:wr.Disabled,this.params.isCRD=(F.DriverType?F.DriverType:ga.GameReadyDriver).toString(),this.params.sM=this.computeMemory(F),({DriverVersion:this.params.GFPV,CurrentResolution:this.params.cSR,IsDCHDriverInstalled:this.params.dch}=F),this.params.GFPV=this.params.GFPV?this.params.GFPV:"0.00",this.hasGenericSystemInfo=!0,this.gfwslParamsUpdated$.next(this.getParamEventData(_s.SystemInfo)))},F=>{this.logger.error("Generic info errored out",F)})}computeMemory(F){const Oe=F.TotalPhysicalMemory&&parseInt(F.TotalPhysicalMemory,10)>.1?F.TotalPhysicalMemory:F.PhysicalMemoryCapacity;return`${(parseInt(Oe,10)/1024**3).toFixed()}GB`}getOSInfo(F,Oe){const Ke=Oe?.split(".");let nn="";return F?.match(/windows/i)&&(nn=Ke?.pop()),[Ke?.join("."),nn]}processGpuInfo(){this.hardwareService.getGpuInfo(!1).subscribe(F=>{if(0===(0,c.size)(F.GPU))return void this.logger.error("Empty GPU list in gpu hardware info",F);const Oe=F.GPU.find(Ke=>Ke.IsPrimary===wr.Enabled)||F.GPU[0];this.params.IsQ=Oe.IsQuadro,this.params.D=JSON.parse(`{"VEN_${Oe.VendorId}&DEV_${Oe.DeviceId}":"DISPLAY"}`),this.params.dIDa=this.getGpuDeviceIdArray(F),this.params.dFma=this.getGpuDeviceFamilyArray(F),this.params.isO=F.IsOptimus,this.params.isSLI=this.computeSliStatus(F.SLI),this.params.pgpuId=this.getPrimaryGpuId(F),this.hasGpuInfo=!0,this.gfwslParamsUpdated$.next(this.getParamEventData(_s.SystemInfo))},F=>{this.logger.error("GPU info errored out",F)})}getPrimaryGpuId(F){let Oe=null;return F.GPU.every(Ke=>!Ke.IsPrimary||(Oe=Ke.GpuHandle,!1)),Oe}getGpuDeviceIdArray(F){return Array.from(this.getSortedGpuArray(F),(Oe,Ke)=>this.buildGpuDeviceId(Oe,Ke))}getSortedGpuArray(F){return Array.from(F.GPU).sort(Oe=>Oe.IsPrimary===wr.Enabled?-1:1)}buildGpuDeviceId(F,Oe){let Ke="";return F.DeviceId&&F.VendorId?(Ke=`${F.DeviceId}_${F.VendorId}`,Ke=F.SubSystemId&&F.SubVendorId?`${Ke}_${F.SubSystemId}_${F.SubVendorId}`:`${Ke}_FFFF_FFFF`):(this.logger.error("GPU info has invalid DeviceId and/or VendorId",F),Ke="FFFF_FFFF_FFFF_FFFF"),`${Ke}_${++Oe}`}getGpuDeviceFamilyArray(F){return Array.from(this.getSortedGpuArray(F),Oe=>parseInt(Oe.GPUArchitecture,10).toString(16))}computeSliStatus(F){return F.SLISupported===wr.Enabled&&F.HasActiveSLITopology===wr.Enabled?F.ActiveTopologyGPUCount:F.SLISupported}processGeoInfo(){this.params.go="",this.hasGeoInfo=!0,this.gfwslParamsUpdated$.next(this.getParamEventData(_s.Geo))}onUserConsentUpdated(F){this.params.uCst=[this.getFunctionalConsent(F),this.getGfwslConsent(F,"trackTechnicalData"),this.getGfwslConsent(F,"trackBehavioralData")]}getFunctionalConsent(F){return this.formatConsentForGfwsl(F.consentSettings?F.consentSettings.trackFunctionalData:{level:I.Rg.None})}formatConsentForGfwsl(F){return F.level===I.Rg.Full?wr.Enabled:wr.Disabled}getGfwslConsent(F,Oe){return F.consentSettings?this.formatConsentForGfwsl(F.consentSettings[Oe]):F.privacySettings&&F.privacySettings.dataTracking?this.formatConsentForGfwsl(F.privacySettings.dataTracking[Oe]):wr.Unknown}processLocaleInfo(){this.localeService.localeChanged.subscribe(F=>{this.setGfwslLocaleParams(F),this.hasLocaleInfo=!0,this.gfwslParamsUpdated$.next(this.getParamEventData(_s.Locale))},F=>{this.logger.error("Locale info errored out",F)})}setGfwslLocaleParams(F){const Oe=ia.find(nn=>nn.code===(F??this.userDefaultUILanguage)?.replace("_","-")||nn.cmsCode===F),Ke=Oe?.LCID[0].toString();this.params.gLg=Oe?.code,this.params.lg=Ke,this.params.L={CC:Oe?.isoThreeLetter,LCID:Ke}}getParams(F={},Oe){F=(0,c.omitBy)(F,nn=>"string"==typeof nn&&"CTP_"===nn.slice(0,4));let Ke=(0,c.assignIn)({},this.params,F);return Oe&&(Ke=(0,c.pick)(Ke,Oe)),Ke}getServer(){return this.config.server}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.KVO(m.J6),g.KVO(nl),g.KVO(m.zW),g.KVO(m.iH),g.KVO(g.zZn))}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})();var Wl=s(5798);let xs=(()=>{class it{static{this.\u0275fac=function(Oe){return new(Oe||it)}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac})}}return it})(),qa=(()=>{class it{constructor(F,Oe,Ke,nn,Nn){this.endpointFactory=Oe,this.gfwslParamsService=Ke,this.config=nn,this.distributedtracingUtilService=Nn,this.logger=F.getLogger("crimson/sdk/aem/AemService"),this.endpointMap=new Map,this.endpointDefinitionMap=new Map,this.endpointRetryConfig={},({defaultRetries:this.endpointRetryConfig.maxRetries,defaultTimeBetweenRetries:this.endpointRetryConfig.timeBetweenRetries,defaultTimeout:this.endpointRetryConfig.timeout}=this.config)}setUrlGenerator(F,Oe,Ke){let nn;const Nn=JSON.stringify(this.gfwslParamsService.getParams(Ke,Oe.paramMask));return nn=(0,Zr.l2)([F,Oe.classPath,Oe.clientPath,Oe.endpointPath]),(0,c.isEmpty)(Nn)||(nn=nn+"?"+Nn),nn}addEndpointDefinitions(F){F.forEach(Oe=>{const Ke=Oe.name;this.endpointDefinitionMap.set(Ke,Oe),this.endpointMap.set(Ke,this.endpointFactory.createEndpoint(Oe))})}callAemEndpoint(F,Oe,Ke,nn={},Nn={},_i){const Wi=this.endpointMap.get(F),or=this.endpointDefinitionMap.get(F);if(!Wi)return(0,At.$)(`No endpoint found for ${F}. Add this definition with the initialize call.`);Oe=this.gfwslParamsService.getParams(Oe,or.paramMask);const Hr=this.setUrlGenerator(this.config.server,or,Oe);this.logger.info("Going to call AEM URL:",Hr,"with dynamic headers:",Nn);const Mo={config:this.endpointRetryConfig,body:nn,headers:{...or.headers,...Nn},includeRequestId:!1,reportRequestData:(0,c.isNil)(Ke)?{}:{...Ke}},aa=Wi.makeRequestEx(or.method,Hr,Mo);return this.distributedtracingUtilService.handleHttpEndpointSpan(aa,Mo,mn.pB.GetAemReleaseHighlights,_i)}setConfigServer(F){this.config.server=F}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.KVO(m.J6),g.KVO(Wl.t),g.KVO(ua),g.KVO(xs),g.KVO(mn.Z1))}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})();var ll=function(it){return it.services="services/com.nvidia.services/",it}(ll||{}),dl=function(it){return it.GfeClient="AEMGFEClientContent",it}(dl||{}),pl=function(it){return it.Get="GET",it.Post="POST",it}(pl||{});const Ol="releaseHighlightStatus",ml="releaseHighlightsOnAppUpdate",Zl={go:"IN",sM:"32GB",osC:"10.0",osB:"7601",is6:"1",GFPV:"385.69",iLp:"0"},bc={name:"gfnReleaseHighlightsHtml",classPath:ll.services,clientPath:dl.GfeClient,endpointPath:"/getStyledClientReleaseHighlightsHtml",method:pl.Get,paramMask:["cNm","cmID","gcV","lg","gLg","go","cID","dIDa","sM","osC","osB","is6","GFPV","gIsB","iLp","isO","isSLI","cSR","isInst","Plt","clVt"]};let Jl=(()=>{class it{constructor(F,Oe,Ke,nn,Nn,_i,Wi,or,Hr,Mo){this.localService=Ke,this.matDialog=nn,this.aemService=Nn,this.sharedStorage=_i,this.remoteConfigurationService=Wi,this.telemetryUtilService=or,this.systemInfoService=Hr,this.focusManager=Mo,this.releaseHighlightsData={shown:!1},this.aemEndpointDefintions=[],this.aemEndpointDefintions.push(bc),this.logger=Oe.getLogger("gfn/releaseHighlights"),this.aemService.addEndpointDefinitions(this.aemEndpointDefintions),this.clientVariant=this.telemetryUtilService.getClientVariant(),this.mobileMode=!!F?.featureEnablement?.mobileMode,this.showBackButton=!!F?.backNavigation?.showBackButton}getReleaseHighlight(){return this.getAemReleaseHighlights().pipe((0,nt.T)(F=>({title:"common.releaseHighlights",subTitle:"",body:F.body.gfcontent.body,style:"dialog-service-container-size"})))}getPlatformParameter(){return m.zk.isBrowserPlatform()?this.systemInfoService.getSystemInfo([m.Lu.OSName]).pipe((0,nt.T)(F=>(0,gt.Df)(F.OSName))):m.zk.isAndroidPlatform()?(0,Fe.of)(m.t_.Android):this.systemInfoService.getSystemInfo([m.Lu.Platform,m.Lu.OSName]).pipe((0,nt.T)(F=>{const Oe=F.Platform;return Oe===m.aI.Linux?F.OSName===m.t_.SteamOS?m.t_.SteamOS:m.t_.Linux:Oe}))}getAemReleaseHighlights(){return(0,Zi.yU)(this.localService.localeChanged,this.getPlatformParameter()).pipe((0,$e.ZZ)(([F,Oe])=>this.aemService.callAemEndpoint("gfnReleaseHighlightsHtml",{cmID:"",gcV:this.clientVersion,gLg:F,lg:"",...Zl,cNm:m.zk.isNativeLikePlatform()?"gfn":"gfnb",isInst:this.isInstallScenario,Plt:Oe,clVt:this.clientVariant},{originalService:bn.Uu$.Aem,serviceUseCase:bn.OOF.Get_Release_Highlights},{},{"Content-Type":"text/plain"},void 0)))}updateReleaseHighlightsStatusInSharedStorage(F){return this.sharedStorage.writeBlock(Ol,{appVersion:F,isDialogShown:!0})}showReleaseHighlightsFromRemoteConfig(F){return this.remoteConfigurationService.remoteConfigFetched$.pipe((0,$e.ZZ)(Oe=>{const Ke=new En(F);if((0,c.isNil)(Oe.config)||(0,c.isNil)(Oe.config.releaseHighlights))return this.logger.info("Remote config value not set for Release highlights."),(0,Fe.of)(!1);{const nn=Oe.config.releaseHighlights.showReleaseHighlightsForAppVersion;return this.logger.info("Remote config value for Release highlights: ",nn),Ke.compare(new En(nn))===sn.Equal?this.updateReleaseHighlightsStatusInSharedStorage(Ke.toString()).pipe((0,$e.ZZ)(()=>(0,Fe.of)(!0))):(this.logger.info("Remote config version does not match the app versions."),(0,Fe.of)(!1))}}))}showReleaseHighlightsFromSharedStorage(F){return this.sharedStorage.readBlock(Ol).pipe((0,$e.ZZ)(Oe=>(0,c.isNil)(Oe)||(0,c.isEmpty)(Oe)?(0,Fe.of)(!0):Oe.appVersion===F?(0,Fe.of)(!Oe.isDialogShown):(this.logger.info("Old version value present in shared storage. Clearing"),this.sharedStorage.writeBlock(Ol,{}).pipe((0,Qe.u)(!0)))))}onShowReleaseHighlight(F,Oe,Ke){if(this.clientVersion=Oe,this.isInstallScenario=Ke,!F||!this.releaseHighlightsData.shown){this.releaseHighlightsData.shown=!0;const nn={autoFocus:!1,hasBackdrop:!0,disableClose:!1,restoreFocus:!1,panelClass:["dialogPaddingRemove","small-screen-overlay-panel"],enterAnimationDuration:"0ms"};return nn.data={getArticleCallback:()=>this.getReleaseHighlight(),autoCloseOnError:F,noInformationAvailableTxt:"releaseHighlights.noInformationAvailable",closeTxt:"common.close",dialogType:N.Release_Highlights,isInstallationScenario:this.isInstallScenario,enableCloseButton:this.showBackButton},this.mobileMode&&(nn.maxWidth="100vw"),this.focusManager.restoreFocusAfterClosed(()=>this.matDialog.open(Be,nn)),this.readReleaseHighlightsSkippedStatus(this.clientVersion).pipe((0,$e.ZZ)(Nn=>Nn?this.sharedStorage.writeBlock(ml,{}):(0,Fe.of)(null))).subscribe()}}updateReleaseHighlightsSkippedStatus(F,Oe){return this.sharedStorage.writeBlock(ml,{appVersion:F,isSkipped:Oe})}readReleaseHighlightsSkippedStatus(F){return this.sharedStorage.readBlock(ml).pipe((0,$e.ZZ)(Oe=>Oe?Oe.appVersion===F?(0,Fe.of)(Oe.isSkipped):(this.logger.info("Old version value present in shared storage. Clearing"),this.sharedStorage.writeBlock(ml,{}).pipe((0,Qe.u)(!1))):(0,Fe.of)(!1)))}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.KVO(yo.Vk),g.KVO(m.J6),g.KVO(m.iH),g.KVO(n.bZ),g.KVO(qa),g.KVO(Fs.yQ),g.KVO(no.a),g.KVO(bn.jgD),g.KVO(m.zW),g.KVO(M.c_))}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})();s(38006),s(75318);var vt=s(59062),en=s(99569),Ee=s(82187),kt=s(36877),Qt=s(41346),Zn=s(70521);const Vi={notificationType:Un.$9.RequiredUpdate,icon:"info",messageStr:{key:"common.updateRequiredDescription"},primaryButtonText:"notification.refreshNow"};var vr=function(it){return it.RegistrationFailed="RegistrationFailed",it.RegistrationSuccess="RegistrationSuccess",it.NotSupported="NotSupported",it.Installed="Installed",it.ActivationOngoing="ActivationOngoing",it.Activated="Activated",it.ActivationError="ActivationError",it}(vr||{});const hr=new Map([[vr.RegistrationFailed,Ro.fbu.ServiceWorkerRegistrationFailed],[vr.RegistrationSuccess,Ro.fbu.ServiceWorkerRegistrationSuccess],[vr.NotSupported,Ro.fbu.ServiceWorkerNotSupported],[vr.Installed,Ro.fbu.ServiceWorkerInstalled],[vr.ActivationOngoing,Ro.fbu.ServiceWorkerActivationOngoing],[vr.Activated,Ro.fbu.ServiceWorkerActivated],[vr.ActivationError,Ro.fbu.ServiceWorkerActivationError]]);let cl=(()=>{class it{constructor(F,Oe,Ke,nn,Nn,_i,Wi,or,Hr){this.serviceWorkerService=F,this.appConfig=Oe,this.experienceControlService=nn,this.router=Nn,this.deeplinkHelperService=_i,this.telemetryUtilService=Wi,this.telemetryService=or,this.bannerNotificationService=Hr,this.appStartTs=Date.now(),this.refreshing=!1,this.updateServiceWorkerSilently=!1,this.swUpdateCheckInterval=144e5,this.appLaunchWindow=1e4,this.lastUpdateCheckTimestamp=Date.now(),this.timeCheckInterval=6e4,this.serviceWorkerInstalledOnce=new Gn.m(1),this.swActivationTimedOut=new _.B7,this.shouldReloadOnActivation=!0,this.telemetryEventProcessingComplete=new _.B7,this.logger=Ke.getLogger("shared/service-worker-update.service"),this.appLaunchWindow=this.appConfig.selfUpdate.appLaunchWindow||this.appLaunchWindow,this.swUpdateCheckInterval=Math.max(this.appConfig.selfUpdate.swUpdateCheckInterval||this.swUpdateCheckInterval,3e4)}initialize(){this.serviceWorkerService.serviceWorkerSupported()?(this.serviceWorkerService.swUpdateReadyCached.subscribe(F=>{this.logger.info("Initialize: SW update event was cached")}),this.serviceWorkerService.swActivated.subscribe(F=>{this.logger.info("Initialize: SW activated"),this.serviceWorkerInstalledOnce.next(!0)}),this.serviceWorkerService.swIsActive()&&(this.logger.info("Initialize: SW already active"),this.serviceWorkerInstalledOnce.next(!0)),this.handleServiceWorkerActivated(),this.handleServiceWorkerInstalled(),this.autoUpdateOnAppLaunch(),this.periodicallyCheckForUpdates(),this.handleServiceWorkerActivationRequest(),this.checkForUpdatesAndAddBanner()):this.logger.info("Initialize: Service worker not supported"),this.sendServiceWorkerLaunchTelemetry()}get swActivationTimedOutNotification(){return this.swActivationTimedOut.asObservable()}updateReady(){return this.serviceWorkerService.swUpdateReadyCached.pipe((0,Ze.M)(F=>this.logger.info("swUpdateCache returned event => ",F)),(0,Mr.p)(F=>null!==F&&!this.isSwUpdateWithinAppLaunchWindow(F.ts)&&!F.firstInstallation),(0,$e.ZZ)(F=>this.getWaitingSWClientVersion()),(0,Mr.p)(F=>F&&F.data.clientVersionString!==this.appConfig.build.version),(0,Ze.M)(F=>this.logger.info("GFN SW Update Ready (outside app launch window)",F)))}checkForUpdates(){return this.withinAppLaunchWindow()?(this.logger.info("GFN SW Update skip update check in App launch window"),(0,Fe.of)({updateAvailable:!1,error:null})):this.checkForUpdatesInternal()}checkForUpdatesAndAddBanner(){m.zk.isBrowserPlatform()&&(this.logger.info("Service worker registering for updates"),this.updateReady().subscribe(()=>{this.logger.info("Service worker update ready. Showing notification.");const F=Vi;F.onPrimaryButtonClick=this.onClickRefresh.bind(this),this.bannerNotificationService.addNotificationToQueue(F)}))}onClickRefresh(){this.logger.info("REFRESH NOW clicked. Requesting SW to activate"),this.activateServiceWorker().subscribe(F=>this.logger.info("SW activation result",F),F=>this.logger.info("SW activation err",F.toString()))}checkForUpdatesInternal(F){return this.lastUpdateCheckTimestamp=Date.now(),this.serviceWorkerInstalledOnce.pipe((0,a.s)(1),(0,$e.ZZ)(Oe=>this.checkForCanaryUpdate(F)),(0,$e.ZZ)(Oe=>(0,Do.H)(this.serviceWorkerService.checkForUpdates()).pipe((0,a.s)(1))))}getCookie(F){const Oe=F.length+1;return document.cookie.split(";").map(Ke=>Ke.trim()).filter(Ke=>Ke.substring(0,Oe)===`${F}=`).map(Ke=>decodeURIComponent(Ke.substring(Oe)))[0]||"A"}sendCanaryTelemetry(F="",Oe="",Ke=""){if("B"===F||"B"===Ke){const nn=new bn.LCb({currentOriginCookieValue:F,gxtResponseValue:Oe,newOriginCookieValue:Ke});this.telemetryService.push(nn)}}checkForCanaryUpdate(F){if(F||(0,Pt.tE)(this.router.url)||(0,Pt.tE)(document.location.hash.substr(1)))return this.logger.info("in streamer path or skip checking Canary update",F),(0,Fe.of)(!0);this.logger.info("checking GXT Canary Targeting");const Oe=location.pathname.indexOf("index.html"),Ke=-1===Oe?location.pathname:location.pathname.substr(0,Oe),nn=this.getCookie("Request-Origin");let Nn="",_i="";return this.experienceControlService.getCloudVariable(this.appConfig.gxTarget.experiences.browserClientCanary,{domain:document.location.hostname,path:document.location.pathname},void 0,pe.Ky.GxTargetGetCloudVariable,pe.Id.GxTargetGetBrowserClientCanary).pipe((0,nt.T)(Wi=>(this.logger.info("browser client canary GXT: ",Wi.value.isCanaryEnabled),Nn=JSON.stringify(Wi),Wi.value.isCanaryEnabled?(document.cookie=`Request-Origin=B; path=${Ke}; max-age=31536000; samesite=strict`,_i="B"):(document.cookie=`Request-Origin=A; path=${Ke}; max-age=31536000; samesite=strict`,_i="A"),this.sendCanaryTelemetry(nn,Nn,_i),!0)),(0,Ot.W)(Wi=>(null===Wi.err&&"Empty cloud variable"===Wi.errorMessage?(Nn=JSON.stringify(Wi),this.logger.info("current path is not targeted, clearing cookie"),document.cookie=`Request-Origin=A; path=${Ke}; expires=${new Date(0).toUTCString()}`,_i="A"):(this.logger.error("error in fetching Canary GXT, keeping data as it is",Wi),_i=nn),this.sendCanaryTelemetry(nn,Nn,_i),(0,Fe.of)(!0))))}activateServiceWorker(){return this.logger.info("GFN SW Activation requested"),this.serviceWorkerService.activateServiceWorker()}reloadTab(){this.refreshing||(this.logger.info("Reloading the Tab"),window.location.reload()),this.refreshing=!0}finalizeActivation(){this.serviceWorkerService.postMessageSw({type:Zn.oY.GetClientVersion,content:""}),this.serviceWorkerService.swAssociatedClientVersion.pipe((0,a.s)(1)).subscribe(F=>{this.logger.info("Client Version of Associated SW and client is",F,this.appConfig.build.version),F!==this.appConfig.build.version&&this.shouldReloadOnActivation?this.reloadTab():this.swActivationTimedOut.next(!1)})}isSwUpdateWithinAppLaunchWindow(F){return F-this.appStartTs<this.appLaunchWindow}withinAppLaunchWindow(){return Date.now()-this.appStartTs<this.appLaunchWindow}periodicallyCheckForUpdates(){m.zk.isBrowserPlatform()?this.updateIntervalSub?this.logger.info("GFN SW Periodic Check: Already initialized"):(this.logger.info(`GFN SW Periodic Check: Init - time check interval: ${this.timeCheckInterval}, update check interval: ${this.swUpdateCheckInterval}`),this.updateIntervalSub=(0,Xr.Y)(this.timeCheckInterval).pipe((0,Mr.p)(F=>Date.now()-this.lastUpdateCheckTimestamp>=this.swUpdateCheckInterval),(0,$e.ZZ)(F=>this.checkForUpdates())).subscribe(F=>{this.logger.info("GFN SW Periodic Check: Result",F)},F=>this.logger.error("GFN SW Periodic Check: Error -",F.toString()))):this.logger.info("GFN SW Periodic Check: Skipping as not browser platform.")}clearUpdateCheckInterval(){this.updateIntervalSub?.unsubscribe(),this.updateIntervalSub=null}autoUpdateOnAppLaunch(){this.logger.info("GFN SW Auto Update: Init"),this.checkForUpdatesInternal(!m.zk.isBrowserPlatform()).pipe((0,Mr.p)(F=>F.updateAvailable&&this.withinAppLaunchWindow()&&this.deeplinkHelperService.allowApplicationReload()),(0,$e.ZZ)(F=>(this.logger.info("GFN SW Auto Update: Within launch window, requesting to activate."),this.activateServiceWorker()))).subscribe(F=>{this.logger.info("GFN SW Auto Update: Activation result",F)},F=>this.logger.error("GFN SW Auto Update: Request failed",F.toString()))}handleServiceWorkerActivatedInternal(F){this.logger.info("GFN SW Activated: New Service worker activated",F),F?.firstInstallation||this.refreshing||m.zk.isCefPlatform()?(this.logger.info("GFN SW Activated: Will not reload."),this.updateServiceWorkerSilently=!1):this.updateServiceWorkerSilently?(this.logger.info("GFN SW Activated: Updated silently."),this.updateServiceWorkerSilently=!1,this.serviceWorkerService.clearSwUpdateCache()):(this.logger.info("GFN SW Activated: Reloading the page."),this.finalizeActivation())}handleServiceWorkerActivated(){this.logger.info("GFN SW Activated: Init"),this.serviceWorkerService.swActivated.pipe((0,$e.ZZ)(F=>(this.sendServiceWorkerStateTelemetry(vr.Activated,!0),(0,Fe.of)(F).pipe((0,Qt.o)(Oe=>this.telemetryEventProcessingComplete.asObservable()))))).subscribe(F=>{this.handleServiceWorkerActivatedInternal(F)},F=>this.logger.error("GFN SW Activated: Error -",F.toString()))}handleServiceWorkerInstalled(){this.serviceWorkerService.swUpdateReady.subscribe(F=>{this.sendServiceWorkerStateTelemetry(vr.Installed,!0)})}sendServiceWorkerLaunchTelemetry(){(0,Zi.yU)(this.telemetryService.getDefaultClientConsentObserable(),this.telemetryService.getCommonDataObservable()).pipe((0,a.s)(1)).subscribe(F=>{if(this.serviceWorkerService.serviceWorkerSupported()){const Oe=this.serviceWorkerService.getSWRegistrationInfo();Oe&&this.sendServiceWorkerStateTelemetry(Oe.isSuccess?vr.RegistrationSuccess:vr.RegistrationFailed,!1,JSON.stringify(Oe.error))}else this.sendServiceWorkerStateTelemetry(vr.NotSupported)})}sendServiceWorkerStateTelemetry(F,Oe=!1,Ke=""){const nn={immediateRequest:Oe};(F===vr.Activated||F===vr.ActivationOngoing)&&(nn.afterDone=()=>{this.telemetryEventProcessingComplete.next(!0)});const Nn=new bn.BAK({clientType:this.telemetryUtilService.getClientType(),currentScreen:this.telemetryService.getScreen()||bn.MCB.ScreenMallHome,userAction:bn.ay7.ServiceWorkerActivation,status:hr.get(F),errorDetails:Ke.substring(0,1024),totalMs:0,errorUri:"",serverErrorCode:""});this.telemetryService.push(Nn,void 0,nn)}getWaitingSWClientVersion(){return(0,Do.H)(navigator.serviceWorker.getRegistration()).pipe((0,$e.ZZ)(F=>{const Oe=new MessageChannel;return F?.waiting?(F.waiting.postMessage({type:Zn.oY.GetClientVersionWaitingSW},[Oe.port2]),Oe.port1.start(),(0,kt.R)(Oe.port1,"message")):(0,Fe.of)(!1)}))}handleServiceWorkerActivationRequest(){this.logger.info("SWAR: Init"),this.serviceWorkerService.swActivationRequested.pipe((0,$e.ZZ)(F=>(0,Xr.Y)(750).pipe((0,r.Q)(this.serviceWorkerService.swActivated),(0,a.s)(1))),(0,$e.ZZ)(F=>this.getWaitingSWClientVersion()),(0,$e.ZZ)(F=>{this.shouldReloadOnActivation=!1,this.logger.info("SWAR: max time after activation requested, reloading ",F);let Ke,Oe="";return F&&F.data.clientVersionString!==this.appConfig.build.version?(this.logger.info(`Version from Service worker: ${F.data.clientVersionString}`),this.logger.info(`Version from appConfig: ${this.appConfig.build.version}`),Ke=this.telemetryEventProcessingComplete.asObservable(),Oe=F.data.clientVersionString):Ke=(0,Fe.of)(!1),this.sendServiceWorkerStateTelemetry(vr.ActivationOngoing,!0,Oe),Ke})).subscribe(F=>{F?this.reloadTab():this.swActivationTimedOut.next(!1)},F=>{this.sendServiceWorkerStateTelemetry(vr.ActivationError,!1,`SWAR: Error ${F}`),this.logger.error("SWAR: Error",F)})}isFirstInstallation(){return!this.serviceWorkerService.swIsActive()}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.KVO(Zn.lS),g.KVO(yo.Vk),g.KVO(m.J6),g.KVO(pe.BW),g.KVO(Yr.Ix),g.KVO(gd.w),g.KVO(bn.jgD),g.KVO(I.H0),g.KVO(Qs.Hm))}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})();var Sa=s(82094);s(62879),s(42629);let dc=(()=>{class it{constructor(F){this.logger=F.getLogger("gfn/shared/GameLaunchAnalyticsService"),this.resetGameLaunchMetadata(!1)}getGameLaunchMetadata(){return{...this.gameLaunchMetadata}}updateGameLaunchChangeMetadata(){this.logger.info(this.gameLaunchMetadata.launchTs?"Game change accepted - updating GameLaunchData":"No game launch info exists, adding GameChangeDialog info"),this.gameLaunchMetadata.isFromGameChangeDialog=!0}setGameLaunchMetadata(F,Oe,Ke){this.gameLaunchMetadata={shortName:F,launchTs:Oe,isMallRunning:Ke}}resetGameLaunchMetadata(F){this.logger.info("Cleared game launch metadata"),this.gameLaunchMetadata={shortName:"",launchTs:0,isMallRunning:F}}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.KVO(m.J6))}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})(),ed=(()=>{class it{constructor(F,Oe){this.router=F,this.routerService=Oe,this.backNavigationUrls=new Array,this.lastNavigationRoute=null,this.namedBackNavigationUrls=new Map}get lastNavigationUrl(){return this.lastNavigationRoute}get backNavigationRoute(){return this.lastNavigationRoute=this.backNavigationUrls.pop(),this.lastNavigationRoute}set backNavigationRoute(F){this.lastNavigationRoute=F,this.backNavigationUrls.push(F)}setNamedBackNavigationUrl(F,Oe){this.namedBackNavigationUrls.set(F,Oe)}getNamedBackNavigationUrl(F){return this.namedBackNavigationUrls.get(F)||""}clearState(){this.backNavigationUrls=new Array,this.lastNavigationRoute=null,this.namedBackNavigationUrls.clear()}navigateToPreviousRoute(F){const Oe=this.backNavigationRoute;F&&this.namedBackNavigationUrls.has(F)?this.routerService.navigateByUrl(this.getNamedBackNavigationUrl(F)):(0,c.isNil)(Oe)?this.routerService.navigateByUrl(Pt.f.Home):this.routerService.navigateByUrl(this.router.url===Oe?this.backNavigationRoute:Oe)}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.KVO(Yr.Ix),g.KVO(Pt.HM))}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})();var wc=function(it){return it.Search="Search",it.Survey="Survey",it}(wc||{}),Md=s(16229),Co=s(1794);const Hc={notificationType:Un.$9.Survey,messageStr:{key:"notification.surveyBannerMessage"},primaryButtonText:"notification.participate",secondaryButtonText:"notification.dismiss"},Yc={...Hc,messageStr:{key:"notification.usabilitySurveyMessage"}},eg={...Hc,messageStr:{key:"notification.octSurveyMessage"},primaryButtonText:"common.yes",secondaryButtonText:"notification.noThanks"},pu={...Hc,messageStr:{key:"notification.octSurveyPostMinimizeMessage"},primaryButtonText:"common.continue",secondaryButtonText:"notification.quit"},Hd={notificationType:Un.$9.OperationalMessaging,messageStr:{key:""},primaryButtonText:"common.learnMore",secondaryButtonText:"notification.dismiss",persistNotificationOnPrimaryButtonClick:!0};var kl=function(it){return it.MallScreen="SCREEN_MALL",it.SurveyScreen="SCREEN_SURVEY",it.FeedbackScreen="SCREEN_FEEDBACK",it.PostGameScreen="SCREEN_POSTGAME",it}(kl||{}),td=function(it){return it.Stage="STAGE",it.Prod="PROD",it}(td||{}),Wd=s(72271),Rl=s(68868),Lu=s(54292),nd=s(48852),uc=s(10399),zd=s(27731),id=s(76259);const Od=["MAT-SELECT"],Ed="nvCursorBlockerExempt";let Nu=(()=>{class it{get blockerElement(){return this._blockerElement}set blockerElement(F){this._blockerElement=F}get isMonitoring(){return!!this.cursorBlockerToggleSub&&!!this.trackMouseMovePositionSub}constructor(F,Oe,Ke,nn,Nn,_i){this.inputModalityService=F,this.spatialNavigationService=Oe,this.ngZone=Ke,this.focusManager=nn,this.lastMousePosition={x:0,y:0},this.renderer=_i.createRenderer(document.body,null),this.logger=Nn.getLogger("CursorBlockerSurvice")}monitor(){this.isMonitoring?this.logger.info("monitoring has already started. reuse the existing listeners."):(this.ngZone.runOutsideAngular(()=>{const F=(0,kt.R)(window,"keydown",{capture:!0,passive:!0}).pipe((0,nt.T)(Oe=>(0,Zr.Pn)(Oe)||(0,Zr.Nw)(Oe)),(0,_o.Z)(!1),(0,va.F)());this.cursorBlockerToggleSub=(0,bi.zV)([this.inputModalityService.inputModalityChanged$,F]).subscribe(([Oe,Ke])=>{const nn=this.currentInputModality,Nn=!nn;this.currentInputModality=Oe,this.shouleToggleCursorBlocker(Oe,Ke)&&(Nn||this.leaveInputMode(nn),this.enterInputMode(Oe))}),this.trackMousePosition()}),this.logger.info("start monitoring."))}stopMonitoring(){this.lastMousePosition={x:0,y:0},this.currentInputModality=void 0,this.toggleCursorBlockerElement(!1),this.cursorBlockerToggleSub&&(this.cursorBlockerToggleSub.unsubscribe(),this.cursorBlockerToggleSub=void 0),this.trackMouseMovePositionSub&&(this.trackMouseMovePositionSub.unsubscribe(),this.trackMouseMovePositionSub=void 0),this.logger.info("stop monitoring.")}isKeyboardOrGamepadInput(F){return F===Rl.M.Keyboard||F===Rl.M.Gamepad}shouleToggleCursorBlocker(F,Oe){const Ke=!!this.blockerElement,nn=this.isKeyboardOrGamepadInput(F);return Ke?!nn:nn&&Oe}enterInputMode(F){const Oe=this.isKeyboardOrGamepadInput(F);this.toggleCursorBlockerElement(Oe),Oe||this.switchToMouseInput()}leaveInputMode(F){F===Rl.M.Mouse&&this.leaveMouseInput(),(F===Rl.M.Keyboard||F===Rl.M.Gamepad)&&this.leaveGamePadAndKeyboard()}switchToMouseInput(){document.activeElement!==document.body&&(Od.includes(document.activeElement?.tagName)||document.activeElement?.hasAttribute(Ed))?this.focusManager.focusVia(document.activeElement,"mouse"):document.activeElement.blur()}leaveMouseInput(){document.activeElement!==document.body&&(Od.includes(document.activeElement?.tagName)||document.activeElement?.hasAttribute(Ed))?this.focusManager.focusVia(document.activeElement,"keyboard"):this.spatialNavigationService.setStartingPointAt(this.lastMousePosition?.x??0,this.lastMousePosition?.y??0)}trackMousePosition(){this.ngZone.runOutsideAngular(()=>{const F=(0,kt.R)(document,"mousemove",{capture:!0,passive:!0}),Oe=(0,kt.R)(document,"mouseover",{capture:!0,passive:!0}),Ke=(0,kt.R)(document,"wheel",{capture:!0});this.trackMouseMovePositionSub=(0,Md.h)(F,Oe,Ke).pipe((0,Mr.p)(nn=>this.currentInputModality===Rl.M.Mouse),(0,id.Z)(50),(0,Mr.p)(nn=>nn.clientX!==this.lastMousePosition.x||nn.clientY!==this.lastMousePosition.y)).subscribe(nn=>{this.lastMousePosition={x:nn.clientX,y:nn.clientY},this.blockerElement&&(this.blockerElement.style.top=`${this.lastMousePosition.y}px`,this.blockerElement.style.left=`${this.lastMousePosition.x}px`)})})}leaveGamePadAndKeyboard(){this.toggleCursorBlockerElement(!1)}toggleCursorBlockerElement(F){F?(this.blockerElement=this.createCursorBlocker(this.lastMousePosition?.x??0,this.lastMousePosition?.y??0),setTimeout(()=>{this.renderer.appendChild(document.body,this.blockerElement)})):(this.blockerElement?.isConnected&&this.renderer.removeChild(document.body,this._blockerElement),this.blockerElement=null)}createCursorBlocker(F,Oe){const Ke=this.renderer.createElement("DIV");return Ke.style.height="1px",Ke.style.width="1px",Ke.style.position="fixed",Ke.style.top=`${Oe}px`,Ke.style.left=`${F}px`,Ke.style.zIndex="1000000",Ke.style.cursor="none",Ke}getLastMousePosition(){return this.lastMousePosition}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.KVO(Rl.p),g.KVO(M.ED),g.KVO(g.SKi),g.KVO(M.c_),g.KVO(m.J6),g.KVO(g._9s))}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})(),$d=(()=>{class it{get isAnyIframeSubscribed(){return this.subscribedIframes.size>0}get activated(){return!!this.bindCommandSubscriptions}set activated(F){F!==this.activated&&(F?this.start():this.stop())}constructor(F,Oe,Ke,nn,Nn,_i){this.gamepadService=Oe,this.ngZone=Ke,this.bridgeService=nn,this.injector=Nn,this.config=_i,this.bindCommandSubscriptions=null,this.subscribedIframes=new Map,this.logger=F.getLogger("GamepadNavigationService"),this.forwardNavigationEventsToIframes=this.config?.client?.forwardGamepadNavigationEventsToIframe}start(){this.logger.info("Initializing gamepad navigation by synthesizing keyboard events"),this.bindCommandSubscriptions=new uc.y,this.bindCommandSubscriptions.add(this.bindCommand("ArrowUp",this.gamepadService.upPressed$)),this.bindCommandSubscriptions.add(this.bindCommand("ArrowDown",this.gamepadService.downPressed$)),this.bindCommandSubscriptions.add(this.bindCommand("ArrowLeft",this.gamepadService.leftPressed$)),this.bindCommandSubscriptions.add(this.bindCommand("ArrowRight",this.gamepadService.rightPressed$)),this.bindCommandSubscriptions.add(this.bindCommand("Enter",this.gamepadService.onButtonPressed$(nd.dt.A,{repeat:!0}),{synthesizeClick:!0})),this.bindCommandSubscriptions.add(this.bindCommand("Escape",this.gamepadService.onButtonPressed$(nd.dt.B,{repeat:!0})))}stop(){this.logger.info("Stop synthesizing gamepad input as keyboard events"),this.bindCommandSubscriptions.unsubscribe(),this.bindCommandSubscriptions=null}subscribeToGamepadNavigationEvents(F){F?.iframeId&&this.subscribedIframes.set(F.iframeId,F)}unsubscribeFromGamepadNavigationEvents(F){this.subscribedIframes.delete(F.iframeId)}sendEventToSubscribedIframes(F,Oe){this.subscribedIframes.forEach(Ke=>{Ke.element||(Ke.element=document.getElementById(Ke?.iframeId));const nn=Ke?.element?.contentWindow;nn&&document.activeElement===Ke.element&&nn.postMessage({type:"navigate",event:F,message:Oe},Ke?.targetOrigin)})}synthesizeClick(F){const Oe=this.injector.get(Rl.p),nn=this.injector.get(Nu)?.getLastMousePosition();Oe.updateMonitoringActivationState(!1);const Nn=F.getBoundingClientRect(),_i=Math.floor((Nn.left+Nn.width/2)*window.devicePixelRatio),Wi=Math.floor((Nn.top+Nn.height/2)*window.devicePixelRatio);let or=-1,Hr=-1;nn&&(or=Math.floor(nn.x*window.devicePixelRatio),Hr=Math.floor(nn.y*window.devicePixelRatio)),this.bridgeService.executeCommand(An.Ts.Common.Windowcontrol.SynthesizeClickEvent,{targetX:_i,targetY:Wi,mouseX:or,mouseY:Hr}).subscribe(()=>{const Mo=this.injector.get(M.c_);requestAnimationFrame(()=>{this.ngZone.run(()=>{Oe.updateMonitoringActivationState(!0),Mo.focusVia(Mo.currentFocusedElement,"keyboard")})})},Mo=>{this.logger.error(`Synthetic click at ${_i}, ${Wi} failed: ${Mo}`),Oe.updateMonitoringActivationState(!0)})}bindCommand(F,Oe,Ke){const nn=!!Ke?.synthesizeClick;let _i,Nn=!1;return this.ngZone.runOutsideAngular(()=>Oe.pipe((0,Ze.M)(Wi=>{const or=(0,Zr.Qt)(),Hr=or instanceof HTMLButtonElement||or instanceof HTMLAnchorElement&&or.hasAttribute("href");nn&&Wi&&Hr&&(_i=or)}),(0,bo.n)(Wi=>Wi?(0,Fe.of)("keydown"):Nn?(0,Fe.of)("keyup"):zd.t)).subscribe(Wi=>{const or=(0,Zr.Qt)();(0,Zr.m1)(or,Wi,F),Nn="keydown"===Wi,this.forwardNavigationEventsToIframes&&this.isAnyIframeSubscribed&&this.sendEventToSubscribedIframes(Wi,F),nn&&"keyup"===Wi&&_i===or&&(m.zk.isBrowserLikePlatform()?(0,Zr.nK)(or):this.synthesizeClick(or),_i=void 0)}))}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.KVO(m.J6),g.KVO(nd.bi),g.KVO(g.SKi),g.KVO(m.NZ),g.KVO(g.zZn),g.KVO(yo.Vk))}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})(),xd=(()=>{class it{constructor(F,Oe,Ke,nn,Nn,_i,Wi,or,Hr,Mo,aa,ko,Aa,Ra,Ml,Qa,Lc,Bu,Pu,Gu,Dd,Vu,og,sg,ag,fh,vh,_h,Ou,Ch,bh,lg){this.idmService=F,this.systemInfoService=Oe,this.experienceControlWrapperService=Ke,this.telemetryService=nn,this.distributedTracingBootstrapService=_i,this.router=Wi,this.browserSupportService=or,this.telemetryUtilService=Hr,this.customLocationService=Mo,this.routerService=aa,this.localeService=ko,this.nesUserInfoService=Aa,this.gridService=Ra,this.ecommerceService=Ml,this.appConfig=Qa,this.experienceControlService=Lc,this.gfnSdkService=Bu,this.applicationLifetimeService=Pu,this.libraryLoggingService=Gu,this.browseUxService=Dd,this.bridgeService=Vu,this.ipcService=og,this.gfcHelperService=sg,this.distributedTracingUtilService=ag,this.offDeviceLinkService=fh,this.networkStatusService=vh,this.bannerNotificationService=_h,this.genericDialog=Ou,this.focusManager=Ch,this.inputModalityService=bh,this.gamepadNavigationService=lg,this.participatedInSurvey=!1,this.surveyTimeout={},this.notificationTimers={},this.surveyActionDuration=0,this.surveyMinimized$=new _.B7,this.sdkConfigInitialized$=new Gn.m(1),this.handleInputFocusedEventBinding=this.handleInputFocusedEvent.bind(this),this.keyboardGuidanceKey="",this.logger=Nn.getLogger("SurveyService"),this.logger.info("Init SDK"),this.sdk=new Co.SurveySdkService,this.keyboardGuidanceKey=Qa.client?.invokeKeyboardGuidanceKey,this.surveySdkClientConfig={url:Qa.surveyEndpoint.server,defaultRetries:Qa.surveyEndpoint.defaultRetries,defaultTimeBetweenRetries:Qa.surveyEndpoint.defaultTimeBetweenRetries,defaultTimeout:Qa.surveyEndpoint.defaultTimeout,env:Qa.surveyEndpoint.server.includes("stg")?td.Stage:td.Prod,clientId:Qa.surveyEndpoint.clientId,clientVersion:(0,yo.Cl)(Qa),clientVariant:this.telemetryUtilService.getCommonClientVariant(Qa.build.variant),surveyContainerBaseUrl:Qa.surveyEndpoint.containerBaseUrl},this.clientSurveyResults=new Map,this.surveyEventReferenceSubmittedMap=new Map,this.surveyEventReferenceDismissedMap=new Map,this.surveyEventReferenceErrorMap=new Map,this.surveyEventReferenceSubmissionErrorMap=new Map,this.surveyEventReferenceTimeoutMap=new Map,this.surveyEventReferenceCloseDialogMap=new Map,this.surveyEventReferenceLogListenerMap=new Map,this.surveyEventReferenceMinimizedMap=new Map,this.surveyEventReferenceDeferredMap=new Map,this.tracerConfig=this.appConfig.otelTracerConfig.exportConfig,this.logger.info("surveySdkClientConfig: ",this.surveySdkClientConfig)}initialize(){this.applicationLifetimeService.addWorkOnShutdown(()=>(this.clientSurveyResults.forEach((F,Oe)=>{this.sendUserSurveyTelemetry(bn.p2o.DismissAppExit,this.getSurveyHierarchy(Oe),Oe,F)}),(0,Fe.of)(void 0))),this.checkForSurveyAndAddBanner()}checkForSurveyAndAddBanner(){(0,Md.h)((0,Fe.of)(!0),this.routerService.onExitingStreamer).pipe((0,Mr.p)(F=>!!F)).pipe((0,$e.ZZ)(F=>this.checkForAvailableSurveyBanner([Co.TriggerType.SurveyBanner,Co.TriggerType.UXTestBanner,Co.TriggerType.CommunicationBanner,Co.TriggerType.NotificationBanner]))).subscribe(F=>{const Oe=this.getSurveyBannerInProgress();this.showSurveyNotificationBanner(Oe)}),this.getMinimizedSurvey$().subscribe(F=>{const Oe=this.getSurveyBannerInProgress();this.showSurveyNotificationBanner(Oe)})}showSurveyNotificationBanner(F){if(!(0,c.isNil)(F))if(this.checkForBrowserPlatform()){this.logger.info("Is a minimized survey ?",F.surveyVisited);const Oe=F.triggerType;let Ke;switch(this.logger.info("showing survey notification",Oe),Oe){case Co.TriggerType.NotificationBanner:Ke=Hd,Ke.messageStr={key:F.bannerText},F.notificationUrl||(Ke.primaryButtonText=null);break;case Co.TriggerType.CommunicationBanner:Ke=F.surveyVisited?pu:eg;break;case Co.TriggerType.UXTestBanner:Ke=Yc;break;case Co.TriggerType.SurveyBanner:Ke=Hc;break;default:Ke=null}if(!Ke)return void this.logger.error("Skip showing banner. Unable to retrieve valid surveyBannerData, likely due to a missing triggerType from the server.");if(Ke.notificationTimeoutInSeconds=this.getBannerNotificationTimer()/1e3,Ke.onPrimaryButtonClick=this.onClickSurveyPrimaryButton.bind(this),Ke.onSecondaryButtonClick=this.onSurveyBannerDismiss.bind(this),Ke.onAutoDismiss=this.onSurveyBannerAutoDismiss.bind(this),this.bannerNotificationService.hasNotificationInQueue(Un.$9.OperationalMessaging)){const Nn=this.bannerNotificationService.getNotificationInQueue(Un.$9.OperationalMessaging);(0,c.isEqual)(Nn.messageStr,Ke.messageStr)||this.bannerNotificationService.removeNotificationFromQueue(Un.$9.OperationalMessaging)}this.logger.info("Added new survey banner notification ",F),this.bannerNotificationService.addNotificationToQueue(Ke),this.sendUserSurveyTelemetry(F.surveyVisited?bn.p2o.NotifyPostMinimize:bn.p2o.Notify,kl.MallScreen,Oe,F)}else this.logger.info("Skipping survey",F)}checkForBrowserPlatform(){return!m.zk.isBrowserPlatform()||m.zk.isBrowserPlatform()&&this.router.url!==Pt.f.Surveys}onClickSurveyPrimaryButton(){this.networkStatusService.isOnline?this.primarySurveyBannerAction():this.openSurveyConnectionErrorDialog()}openSurveyConnectionErrorDialog(F=!1){const Oe=this.focusManager.restoreFocusAfterClosed(()=>this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"notification.errorHeader"},bodyText:{text:"notification.errorDescription"},primaryButton:{text:"common.tryAgain",accentColor:!0},secondaryButton:{text:"common.exit"}}}));Oe.primaryButtonClick.pipe((0,a.s)(1)).subscribe(()=>{Oe.close(),F?this.primarySurveyBannerAction():(this.logger.info("Trying clicking again on primary button"),this.onClickSurveyPrimaryButton())}),Oe.secondaryButtonClick.pipe((0,a.s)(1)).subscribe(()=>{Oe.close()})}onSurveyBannerDismiss(F=!1){if(this.networkStatusService.isOnline){const Oe=this.getSurveyBannerInProgress();this.declineSurveys(F?bn.p2o.DismissTimeout:Oe?.surveyVisited?bn.p2o.DismissManualPostMinimize:bn.p2o.DismissManual,kl.MallScreen,Oe).pipe((0,Et.$)()).subscribe()}else F||this.openSurveyConnectionErrorDialog(!0)}onSurveyBannerAutoDismiss(){this.onSurveyBannerDismiss(!0)}handleClientSurveyResponse(F,Oe,Ke){if(F){this.logger.info("Got User Survey, data is: ",F),this.surveyActionDuration=Date.now();const nn=F;this.clientSurveyResults.set(nn.triggerType,nn),this.distributedTracingUtilService.setSpanAttributes(Oe,{[Co.SurveySdkSpanTagNames.SurveyId]:nn.surveyId}),this.subscribeToSurveyEvents(nn)}else this.logger.info("Cannot get User Survey data");this.sendSurveyHttpSuccessTelemetry({url:F?.config?.url,httpStatus:F?.status,durationMs:Ke,xRequestId:F?.xRequestId},bn.OOF.GetSurvey,bn.c4O.GetUsabilityStudy),this.distributedTracingUtilService.closeSpan(Oe),this.setIframeInfo(F?.surveyContainerUrl)}handleUsabilityStudyError(F,Oe){return this.logger.error("Check for survey failed. Sending HTTPFailure telemetry: ",F),this.distributedTracingUtilService.setSpanAttribute(Oe,mn.NS.Error,!0),this.distributedTracingUtilService.closeSpan(Oe),this.sendSurveyFailureTelemetry(F,bn.OOF.GetSurvey,bn.c4O.GetUsabilityStudy),this.resetClientSurveyResult(),(0,Fe.of)(void 0)}getBannerNotificationTimer(){const F=this.notificationTimers?.SURVEY_BANNER,Oe=this.notificationTimers?.UXTEST_BANNER;return this.clientSurveyResults.get(Co.TriggerType.SurveyBanner)?F:this.clientSurveyResults.get(Co.TriggerType.UXTestBanner)?Oe:3e5}checkUserAuthenticatedForSurveys(F){if(this.logger.info("check User Authenticated For Surveys"),!F.isAuthenticated){let Oe=kl.MallScreen;this.participatedInSurvey&&(Oe=kl.SurveyScreen,this.customLocationService.navigateToPreviousRoute(wc.Survey));const Ke=this.getSurveyBannerInProgress();return Ke&&(Ke.triggerType!==Co.TriggerType.CommunicationBanner?this.declineSurveys(bn.p2o.DismissLogout,Oe,Ke).subscribe():this.resetClientSurveyResult(Ke)),!1}return!0}checkSurveyEnabledForTriggerType(F,Oe){if(F){const Ke=F.value;switch(Oe){case Co.TriggerType.SurveyBanner:return Ke.enableBannerSurvey;case Co.TriggerType.Feedback:return Ke.enableUserFeedback;case Co.TriggerType.PostGame:return Ke.enablePostSessionSurvey;default:return!1}}return!1}checkForAvailableSurveyBanner(F,Oe="0",Ke="",nn=0){return this.idmService.accountStatusChanged.pipe((0,$e.ZZ)(Nn=>Nn.isAuthenticated?this.isSurveyBannerAvailableForTriggers(Nn,F).pipe((0,Et.$)(),(0,$e.ZZ)(_i=>_i?(this.logger.info("Survey feature enabled"),this.getAvailableSurveyBannerForTriggers(Nn,F,Oe,Ke,nn).pipe((0,Ot.W)(()=>(0,Fe.of)(null)))):(this.logger.info("Survey feature is not enabled"),(0,Fe.of)(null)))):(this.logger.info("checkForAvailableSurveyBanner user logged out"),this.checkUserAuthenticatedForSurveys(Nn)?void 0:(0,Fe.of)(void 0))))}isSurveyBannerAvailableForTriggers(F,Oe){const Ke=[this.appConfig.gxTarget.experiences.survey];Oe.includes(Co.TriggerType.UXTestBanner)&&Ke.push(this.appConfig.gxTarget.experiences.usabilityStudy),Oe.includes(Co.TriggerType.CommunicationBanner)&&Ke.push(this.appConfig.gxTarget.experiences.communicationSurvey),this.availableFeatures=[];const nn=this.getSurveyFeaturesEnablement(F,Ke).pipe((0,a.s)(1),(0,nt.T)(([..._i])=>{this.availableFeatures=_i;const Wi=_i[0],or=Oe.indexOf(Co.TriggerType.UXTestBanner),Hr=-1!==or?_i[or]:null,Mo=Oe.indexOf(Co.TriggerType.CommunicationBanner),aa=-1!==Mo?_i[Mo]:null,ko=this.checkSurveyEnabledForTriggerType(Wi,Oe[0]);return Oe.includes(Co.TriggerType.UXTestBanner)||Oe.includes(Co.TriggerType.CommunicationBanner)?!!(ko||Hr||aa):ko}),(0,Ot.W)(_i=>(this.logger.error("Failed to get survey feature enablement"),(0,Fe.of)(void 0)))),Nn=(0,Fe.of)(Oe.includes(Co.TriggerType.NotificationBanner));return(0,bi.zV)([nn,Nn]).pipe((0,nt.T)(([_i,Wi])=>_i||Wi))}getAvailableSurveyBannerForTriggers(F,Oe,Ke="0",nn="",Nn=0,_i=!1){const Wi=nn||this.cachedStreamingSessionId;return(0,bi.zV)([this.systemInfoService.getSystemInfo([m.Lu.DeviceId]),this.distributedTracingBootstrapService.fetchCountryCode(),this.prepareClientParams(Ke,Wi,Nn,_i),this.systemInfoService.getDeviceOSType()]).pipe((0,Ve.H)(([or,Hr,Mo,aa])=>{if(this.logger.info("ClientParams passed getAvailableSurveyBannerForTriggers: ",Mo,or.DeviceId,Hr),!this.checkUserAuthenticatedForSurveys(F)||(this.currentUser=F,!this.getDataForGetUserSurveyApi(Oe)))return(0,Fe.of)(void 0);this.sdk.initializeClientConfig(this.surveySdkClientConfig,this.tracerConfig,this.distributedTracingUtilService.isTracingDisabled()),this.sdkConfigInitialized$.next(),this.initGlobalTagsForOpenTracing(or.DeviceId,this.osInfo,Hr,F.userId,F.idpId);const ko=this.startGetSurveyClientSpan(!1),Aa=this.distributedTracingUtilService.extractContextFromSpan(ko),Ra=this.getCommonParams(aa);this.logger.info("ClientParams passed to survey sdk: ",this.surveyClientParams,Ra);const Ml=performance.now();return(0,Do.H)(this.sdk.getUserSurvey(F.userId,F.idpId,or.DeviceId,this.surveyTimeout,this.surveyClientParams,this.requestedTriggerTypes,this.surveyClientParams.locale,Ra.deviceOS,Ra.deviceType,Ra.deviceMake,Ra.deviceModel,Ra.deviceOSVersion,Ra.clientType,Ra.browserType,Aa)).pipe((0,Ze.M)(Qa=>{const Lc=performance.now();this.handleClientSurveyResponse(Qa,ko,Lc-Ml)}),(0,nt.T)(Qa=>m.zk.isBrowserPlatform()&&this.router.url===Pt.f.Surveys&&!Qa?void this.browserSupportService.goToPreviousPage():Qa),(0,Ot.W)(Qa=>this.handleUsabilityStudyError(Qa,ko)))}))}isSurveyFeatureAvailable(F){const Oe=[this.appConfig.gxTarget.experiences.survey];F.includes(Co.TriggerType.UXTestBanner)&&Oe.push(this.appConfig.gxTarget.experiences.usabilityStudy),F.includes(Co.TriggerType.CommunicationBanner)&&Oe.push(this.appConfig.gxTarget.experiences.communicationSurvey);let Ke=!1;return(0,Zi.yU)(this.idmService.accountStatusChanged,this.gfnSdkService.getAuthInfo()).pipe((0,Ze.M)(([nn,Nn])=>{Ke=Nn.authType===Pi.hT.JWT}),(0,Mr.p)(([nn,Nn])=>Ke||nn.isAuthenticated),(0,Ve.H)(([nn,Nn])=>{let _i;return _i=Ke?{userId:Nn.userId||"",idpId:Nn.idpId||""}:this.getUserInfoFromUser(nn),this.availableFeatures=[],this.getSurveyFeaturesEnablement(_i,Oe)}),(0,nt.T)(([...nn])=>{this.availableFeatures=nn;const Nn=nn[0],_i=F.indexOf(Co.TriggerType.UXTestBanner),Wi=-1!==_i?nn[_i]:null,or=F.indexOf(Co.TriggerType.CommunicationBanner),Hr=-1!==or?nn[or]:null,Mo=this.checkSurveyEnabledForTriggerType(Nn,F[0]);return F.includes(Co.TriggerType.UXTestBanner)||F.includes(Co.TriggerType.CommunicationBanner)||F.includes(Co.TriggerType.NotificationBanner)?!!(Mo||Wi||Hr):Mo}),(0,Ot.W)(nn=>(this.logger.error("Failed to get survey feature enablement"),(0,Fe.of)(void 0))))}getAvailableSurvey(F,Oe="0",Ke="",nn=0,Nn=!1){const _i=Ke||this.cachedStreamingSessionId;return(0,bi.zV)([this.idmService.accountStatusChanged,this.systemInfoService.getSystemInfo([m.Lu.DeviceId]),this.distributedTracingBootstrapService.fetchCountryCode(),this.systemInfoService.getDeviceOSType(),this.prepareClientParams(Oe,_i,nn,Nn)]).pipe((0,Ve.H)(([Wi,or,Hr,Mo])=>{if(!this.checkUserAuthenticatedForSurveys(Wi)||(this.currentUser=Wi,!this.getDataForGetUserSurveyApi(F)))return(0,Fe.of)(void 0);this.sdk.initializeClientConfig(this.surveySdkClientConfig,this.tracerConfig,this.distributedTracingUtilService.isTracingDisabled()),this.sdkConfigInitialized$.next(),this.initGlobalTagsForOpenTracing(or.DeviceId,this.osInfo,Hr,Wi.userId,Wi.idpId);const aa=this.startGetSurveyClientSpan(!1),ko=this.distributedTracingUtilService.extractContextFromSpan(aa),Aa=this.getCommonParams(Mo);this.logger.info("ClientParams passed to survey sdk: ",this.surveyClientParams,Aa);const Ra=performance.now();return(0,Do.H)(this.sdk.getUserSurvey(Wi.userId,Wi.idpId,or.DeviceId,this.surveyTimeout,this.surveyClientParams,this.requestedTriggerTypes,this.surveyClientParams.locale,Aa.deviceOS,Aa.deviceType,Aa.deviceMake,Aa.deviceModel,Aa.deviceOSVersion,Aa.clientType,Aa.browserType,ko)).pipe((0,Ze.M)(Ml=>{const Qa=performance.now();this.handleClientSurveyResponse(Ml,aa,Qa-Ra)}),(0,nt.T)(Ml=>m.zk.isBrowserPlatform()&&this.router.url===Pt.f.Surveys&&!Ml?void this.browserSupportService.goToPreviousPage():Ml),(0,Ot.W)(Ml=>this.handleUsabilityStudyError(Ml,aa)))}))}getDataForGetUserSurveyApi(F){this.requestedTriggerTypes=[],this.logger.info("getAvailableSurvey, available Features: ",this.availableFeatures);const Oe=this.availableFeatures[0],Ke=F.indexOf(Co.TriggerType.UXTestBanner),nn=-1!==Ke?this.availableFeatures[Ke]:null,Nn=F.indexOf(Co.TriggerType.CommunicationBanner),_i=-1!==Nn?this.availableFeatures[Nn]:null,Wi=F.includes(Co.TriggerType.NotificationBanner);return Oe||nn||Wi?(Oe&&(this.surveyTimeout.SURVEY_BANNER=Oe.value.surveyTimeoutSec),nn&&(this.surveyTimeout.UXTEST_BANNER=nn.value.surveyTimeoutSec),Oe&&(this.notificationTimers.SURVEY_BANNER=Oe.value.notificationTimeoutMs),nn&&(this.notificationTimers.UXTEST_BANNER=nn.value.notificationTimeoutMs),nn&&F.includes(Co.TriggerType.UXTestBanner)&&this.requestedTriggerTypes.push(Co.TriggerType.UXTestBanner),_i&&_i.value.enableOCTSurvey&&F.includes(Co.TriggerType.CommunicationBanner)&&this.requestedTriggerTypes.push(Co.TriggerType.CommunicationBanner),Oe&&F.forEach(Hr=>{Hr!==Co.TriggerType.UXTestBanner&&Hr!==Co.TriggerType.CommunicationBanner&&this.requestedTriggerTypes.push(Hr)}),Wi&&this.requestedTriggerTypes.push(Co.TriggerType.NotificationBanner),this.logger.info("RequestedTriggerTypes: ",this.requestedTriggerTypes),this.logger.info("Successfully preapared Data for GetUserSurvey Api"),!0):(this.logger.error("Failed to preapsre Data for GetUserSurvey Api"),!1)}prepareClientParams(F,Oe,Ke,nn){const Nn=nn?(0,Fe.of)({NetworkType:m.Sd.Unknown}):this.systemInfoService.getSystemInfo([m.Lu.Network]).pipe((0,nt.T)(_i=>_i.Network));return(0,Zi.yU)(Nn,this.systemInfoService.getSystemInfo([m.Lu.OSName,m.Lu.OSVersion,m.Lu.DeviceType,m.Lu.VendorName,m.Lu.SystemName,m.Lu.BrowserName,m.Lu.BrowserVersion]),this.systemInfoService.getDeviceOSType(),this.localeService.localeChanged,this.nesUserInfoService.fetchUserInfoWithStreamingUrl(),this.gridService.getCachedZone(),this.ecommerceService.getUserMembership().pipe((0,Mr.p)(_i=>_i.membershipStatus!==Ks.OO.UnKnown&&_i.membershipStatus!==Ks.OO.LoggedOut)),this.gfcHelperService.getAppInstanceId()).pipe((0,$e.ZZ)(([_i,Wi,or,Hr,Mo,aa,ko,Aa])=>(this.osInfo={OSName:Wi.OSName,OSVersion:Wi.OSVersion,Platform:or},this.systemInfo=Wi,this.surveyClientParams={gfnSessionId:Oe||"",application:"GFN",serverType:"GRID",userSubscriptionLevelSKU:ko.membershipStatus===Ks.OO.Entitled?ko.subscription.productSku:"",network:_i&&_i.NetworkType?_i.NetworkType:m.Sd.Unknown,locale:Hr,affiliate:Mo?.serviceEndpoint?Mo.serviceEndpoint.loginProvider:"",datacenter:aa.name||"",browser:Wi.BrowserName||"",browserVersion:Wi.BrowserVersion||"",cmsId:F,sessionDurationMin:Ke,osName:this.experienceControlService.getSupportedOSName(this.osInfo.OSName),selectedCmsId:this.browseUxService.selectedParentId||"",surveySessionId:m.zk.isBrowserPlatform()&&Aa||"",productName:this.telemetryUtilService.getProductName(),productVersion:(0,yo.Cl)(this.appConfig),currentAppTheme:this.getCurrentAppTheme()},(0,Fe.of)(this.surveyClientParams))))}performCleanup(F){this.unsubscribeFromLogListener(F),this.iframeInfo&&(this.gamepadNavigationService.unsubscribeFromGamepadNavigationEvents(this.iframeInfo),this.iframeInfo=void 0),window.removeEventListener("message",this.handleInputFocusedEventBinding)}unsubscribeFromLogListener(F){this.surveyEventReferenceLogListenerMap.get(F).unsubscribe()}getBannerSurveyTriggerType(){const F=this.getSurveyBannerInProgress();return F?(F.triggerType||this.logger.error(`survey triggerType is invalid from the current survey result: ${JSON.stringify(F)}`),F.triggerType):null}setStreamingSessionId(F){this.cachedStreamingSessionId=F}declineSurveys(F,Oe,Ke){if(this.logger.info("Decline User Surveys Async:",Ke),Ke&&!(0,c.isEmpty)(Ke)&&this.currentUser&&this.currentUser.isAuthenticated){this.logger.info("Declining the surveys for id: ",Ke.surveyId);const nn=this.startDismissSurveyClientSpan(Ke.surveyId),Nn=this.distributedTracingUtilService.extractContextFromSpan(nn),_i=performance.now();return(0,Do.H)(this.sdk.declineUserSurvey(this.currentUser.userId,Ke.surveyId,!1,Nn)).pipe((0,nt.T)(Wi=>{const or=performance.now();return this.distributedTracingUtilService.closeSpan(nn),this.sendUserSurveyTelemetry(F,Oe,Ke.triggerType,Ke),this.sendSurveyHttpSuccessTelemetry({url:Wi?.config?.url,httpStatus:Wi?.status,durationMs:or-_i,xRequestId:Wi?.xRequestId},bn.OOF.SendSurveyResponse,bn.c4O.SendUsabilityStudyResponse),this.resetClientSurveyResult(Ke),!0}),(0,Ot.W)(Wi=>(this.logger.error("Declining the survey failed sending HTTPFailure telemetry: ",Wi),this.distributedTracingUtilService.closeSpan(nn),this.sendSurveyFailureTelemetry(Wi,bn.OOF.SendSurveyResponse,bn.c4O.SendUsabilityStudyResponse),this.resetClientSurveyResult(Ke),(0,Fe.of)(!1))))}return this.logger.error("Something went wrong in declining the survey Removing the notification",Ke),this.resetClientSurveyResult(Ke),(0,Fe.of)(!1)}primarySurveyBannerAction(){const F=this.getSurveyBannerInProgress();let Oe;this.logger.info("onClickParticipate for id: ",F.surveyId),F.triggerType===Co.TriggerType.NotificationBanner?(Oe=bn.p2o.LearnMoreClicked,this.offDeviceLinkService.open(F.notificationUrl)):(this.participatedInSurvey=!0,this.router.url!==Pt.f.Surveys&&(this.customLocationService.setNamedBackNavigationUrl(wc.Survey,this.router.url),this.appConfig.featureEnablement?.surveyInNative?this.bridgeService.executeCommand(An.Ts.Common.Survey.Launch,{url:F.surveyContainerUrl,triggerType:F.triggerType,surveyId:F.surveyId}).subscribe(()=>{}):this.routerService.navigate([Pt.f.Surveys],{skipLocationChange:!0})),Oe=F?.surveyVisited?bn.p2o.ParticpatePostMinimize:bn.p2o.Participate),this.sendUserSurveyTelemetry(Oe,kl.MallScreen,F?.triggerType,F)}getSurveyUrl(){return this.getSurveyBannerInProgress()?.surveyContainerUrl}isSurveyInProgress(){return this.participatedInSurvey}getSurveyBannerInProgress(){return this.clientSurveyResults.get(Co.TriggerType.NotificationBanner)||this.clientSurveyResults.get(Co.TriggerType.CommunicationBanner)||this.clientSurveyResults.get(Co.TriggerType.UXTestBanner)||this.clientSurveyResults.get(Co.TriggerType.SurveyBanner)}subscribeToSurveyEvents(F){const Oe=F.triggerType,Ke=(0,Co.subscribeToIFrameEvents)({surveyId:F.surveyId,type:Co.SurveyEventType.Minimized},()=>this.surveyEventListnerMinimized(Oe));this.surveyEventReferenceMinimizedMap.set(Oe,Ke);const nn=(0,Co.subscribeToIFrameEvents)({surveyId:F.surveyId,type:Co.SurveyEventType.Deferred},()=>this.surveyEventListnerDeferred(Oe));this.surveyEventReferenceDeferredMap.set(Oe,nn);const Nn=(0,Co.subscribeToIFrameEvents)({surveyId:F.surveyId,type:Co.SurveyEventType.Submitted},()=>this.surveyEventListenerSubmitted(Oe));this.surveyEventReferenceSubmittedMap.set(Oe,Nn);const _i=(0,Co.subscribeToIFrameEvents)({surveyId:F.surveyId,type:Co.SurveyEventType.Dismissed},()=>this.surveyEventListenerDismissed(Oe));this.surveyEventReferenceDismissedMap.set(Oe,_i);const Wi=(0,Co.subscribeToIFrameEvents)({surveyId:F.surveyId,type:Co.SurveyEventType.Errored},()=>this.surveyEventListenerErrored(Oe));this.surveyEventReferenceErrorMap.set(Oe,Wi);const or=(0,Co.subscribeToIFrameEvents)({surveyId:F.surveyId,type:Co.SurveyEventType.SubmissionErrored},()=>this.surveyEventListenerSubmissionErrored(Oe));this.surveyEventReferenceSubmissionErrorMap.set(Oe,or);const Hr=(0,Co.subscribeToIFrameEvents)({surveyId:F.surveyId,type:Co.SurveyEventType.Timeout},()=>this.surveyEventListenerTimeout(Oe));this.surveyEventReferenceTimeoutMap.set(Oe,Hr);const Mo=(0,Co.subscribeToIFrameEvents)({surveyId:F.surveyId,type:Co.SurveyEventType.CloseDialog},()=>this.surveyEventListenerCloseDialog(Oe));this.surveyEventReferenceCloseDialogMap.set(Oe,Mo),this.logger.info("Survey Event Reference Close Dialog Map:",this.surveyEventReferenceCloseDialogMap.size);const aa=(0,Co.subscribeToIFrameEvents)({surveyId:F.surveyId,type:Co.SurveyEventType.Log},ko=>this.libraryLoggingService.sendLog(ko));this.surveyEventReferenceLogListenerMap.set(Oe,aa)}getSurveyHierarchy(F){switch(F){case Co.TriggerType.CommunicationBanner:return this.isSurveyInProgress()?kl.SurveyScreen:kl.MallScreen;case Co.TriggerType.SurveyBanner:case Co.TriggerType.UXTestBanner:return kl.SurveyScreen;case Co.TriggerType.Feedback:return kl.FeedbackScreen;case Co.TriggerType.PostGame:return kl.PostGameScreen;default:return kl.SurveyScreen}}surveyEventListnerMinimized(F){this.logger.info("Survey has minimized; triggerType: ",F),this.performCleanup(F),this.surveyMinimize(F),this.customLocationService.navigateToPreviousRoute(wc.Survey)}surveyEventListnerDeferred(F){this.logger.info("Survey has deferred; triggerType: ",F),this.sendUserSurveyTelemetry(bn.p2o.Deferred,this.getSurveyHierarchy(F),F,this.clientSurveyResults.get(F)),F!==Co.TriggerType.Feedback&&F!==Co.TriggerType.PostGame&&this.customLocationService.navigateToPreviousRoute(wc.Survey),this.surveyEventReferenceDeferredMap.get(F).unsubscribe(),this.performCleanup(F)}triggerSurveyLogUpload(F){if(m.zk.isBrowserPlatform())this.gfcHelperService.updateEventDataParamIds({surveySessionId:F||""});else{const Ke={type:De.kN.CollectClientLogs,content:JSON.stringify({name:De.Nc.UserFeedBack,surveySessionId:F||""}),sender:this.telemetryUtilService.getClientType()===bn.sKj.MallClient?De.pQ.GfnMall:De.pQ.GfnStreamer,recipient:De.pQ.GfnUpdater};this.logger.info("Sending IPC message for uploading survey logs:",Ke),this.ipcService.pushMessage(Ke).pipe((0,a.s)(1)).subscribe(nn=>this.logger.info("Survey logs upload triggered: ",nn),nn=>this.logger.error("Error triggering Survey logs upload: ",nn))}}surveyEventListenerSubmitted(F){this.logger.info("Survey has been submitted; triggerType: ",F);const Oe=this.clientSurveyResults.get(F)?.surveySessionId;this.triggerSurveyLogUpload(Oe),this.sendUserSurveyTelemetry(bn.p2o.Completed,this.getSurveyHierarchy(F),F,this.clientSurveyResults.get(F)),this.surveyEventReferenceSubmittedMap.get(F).unsubscribe(),this.performCleanup(F)}surveyEventListenerDismissed(F){this.logger.info("Survey has been dismissed"),this.sendUserSurveyTelemetry(bn.p2o.DismissManual,this.getSurveyHierarchy(F),F,this.clientSurveyResults.get(F)),this.surveyEventReferenceDismissedMap.get(F).unsubscribe(),this.performCleanup(F)}surveyEventListenerTimeout(F){this.logger.info("Survey has been timed-out; triggerType: ",F),this.sendUserSurveyTelemetry(bn.p2o.DismissTimeout,this.getSurveyHierarchy(F),F,this.clientSurveyResults.get(F)),(F===Co.TriggerType.PostGame||F===Co.TriggerType.Feedback)&&this.customLocationService.navigateToPreviousRoute(wc.Survey),this.surveyEventReferenceTimeoutMap.get(F).unsubscribe(),this.performCleanup(F)}surveyEventListenerCloseDialog(F){this.logger.info("User closed dialog from Survey; triggerType: ",F);const Oe=this.clientSurveyResults.get(F);this.resetClientSurveyResult(Oe),F!==Co.TriggerType.Feedback&&F!==Co.TriggerType.PostGame&&this.customLocationService.navigateToPreviousRoute(wc.Survey),[Co.TriggerType.Feedback,Co.TriggerType.PostGame].includes(F)&&this.sendUserSurveyTelemetry(bn.p2o.DismissManual,this.getSurveyHierarchy(F),F,Oe),this.surveyEventReferenceCloseDialogMap.get(F).unsubscribe(),this.performCleanup(F)}surveyEventListenerErrored(F){this.logger.info("Survey has error");const Oe=this.clientSurveyResults.get(F);this.resetClientSurveyResult(Oe),this.surveyEventReferenceErrorMap.get(F).unsubscribe(),this.performCleanup(F)}surveyEventListenerSubmissionErrored(F){this.logger.info("Survey has submission error");const Oe=this.clientSurveyResults.get(F);this.resetClientSurveyResult(Oe),this.surveyEventReferenceSubmissionErrorMap.get(F).unsubscribe(),this.performCleanup(F)}sendUserSurveyTelemetry(F,Oe,Ke,nn){if(this.logger.info("Sending survey telemetry: ",F),nn){const Nn=new bn.Fdg({hierarchy:Oe,status:F,surveyId:nn.surveyId,durationMs:this.getUserActionDuration(F),surveyTrigger:bn.V_v[Ke.toString()]});this.telemetryService.push(Nn,null,{immediateRequest:!0}),(F===bn.p2o.Completed||F===bn.p2o.DismissManual||F===bn.p2o.DismissTimeout||F===bn.p2o.Deferred||F===bn.p2o.DismissManualPostMinimize)&&this.resetClientSurveyResult(nn)}}surveyMinimize(F){const Oe=this.clientSurveyResults.get(F);Oe.surveyVisited=!0,this.sendUserSurveyTelemetry(bn.p2o.Minimized,this.getSurveyHierarchy(F),F,Oe),this.participatedInSurvey=!1,this.router.events.pipe((0,Mr.p)(Ke=>Ke instanceof Yr.wF),(0,Et.$)(),(0,Ze.M)(()=>{this.surveyMinimized$.next(F)})).subscribe()}getMinimizedSurvey$(){return this.surveyMinimized$.asObservable().pipe((0,$e.ZZ)(F=>(0,Fe.of)(this.clientSurveyResults.get(F))))}getUserInfoFromUser(F){return{userId:F?.userId||"",idpId:F?.idpId||""}}getSurveyFeaturesEnablement(F,Oe){const Ke=[];return Oe.forEach((nn,Nn)=>{const _i=this.experienceControlWrapperService.getCloudVariable(nn,{variant:this.appConfig.build.variant},void 0,pe.Ky.GxTargetGetCloudVariable,pe.Id.GxTargetGetSurveyFeature,(0,Fe.of)(F)).pipe((0,Ot.W)(Wi=>(this.logger.info("FeatureEnablement error: ",Wi),(0,Fe.of)(null))));Ke.push(_i)}),(0,Zi.yU)(...Ke)}startGetSurveyClientSpan(F=!1){const Oe=this.distributedTracingUtilService.startSpan(mn.pB.ClientGetSurvey);return Oe&&this.distributedTracingUtilService.setSpanAttributes(Oe,{[Co.SurveySdkSpanTagNames.ReadOnly]:F}),Oe}startDismissSurveyClientSpan(F){const Oe=this.distributedTracingUtilService.startSpan(mn.pB.ClientDismissSurvey);return Oe&&this.distributedTracingUtilService.setSpanAttributes(Oe,{[Co.SurveySdkSpanTagNames.SurveyId]:F}),Oe}initGlobalTagsForOpenTracing(F,Oe,Ke,nn,Nn){const _i={[mn.NS.ServiceVersion]:this.appConfig.build.version,[mn.NS.ServiceType]:mn.Se.Pc_A7,[mn.NS.SpanKind]:mn.ls.Client,[mn.NS.AppName]:(0,Pt.I2)(this.router.url)?Pt.td.Streamer:Pt.td.Mall,[mn.NS.DeviceId]:F,[mn.NS.ClientOs]:Oe.Platform,[mn.NS.ClientOsName]:Oe.OSName,[mn.NS.ClientOsVersion]:Oe.OSVersion,[mn.NS.CountryCode]:Ke,[Co.SurveySdkSpanTagNames.ClientVariant]:this.surveySdkClientConfig.clientVariant,[Co.SurveySdkSpanTagNames.ClientVersion]:this.getClientVersionRevision(this.surveySdkClientConfig.clientVersion),[Co.SurveySdkSpanTagNames.Environment]:this.surveySdkClientConfig.env,[Co.SurveySdkSpanTagNames.UserId]:nn,[Co.SurveySdkSpanTagNames.IdpId]:Nn};this.sdk.updateGlobalTags(_i)}getClientVersionRevision(F){return 4===F.split(".").length?F.substring(0,F.lastIndexOf(".")+1).concat("x"):F}resetClientSurveyResult(F){this.logger.info("Resetting client survey result"),this.participatedInSurvey=!1,F&&this.clientSurveyResults.delete(F.triggerType)}getUserActionDuration(F){return F===bn.p2o.Notify?0:Date.now()-this.surveyActionDuration}sendSurveyHttpSuccessTelemetry(F,Oe,Ke){const nn=new bn.Bhf({sourceComponent:this.telemetryUtilService.getClientType(),originalService:bn.Uu$.GxTarget,serviceUseCase:Oe,serviceSubUseCase:Ke,url:F.url||"",httpStatus:F.httpStatus||200,durationMs:Math.round(F.durationMs)||0,destinationIp:"",responseData:"",xRequestId:F.xRequestId||"",retryCount:0,wasSWCacheBypassed:bn.T80.UNDEFINED});this.telemetryService.push(nn)}sendSurveyFailureTelemetry(F,Oe,Ke){const nn=new bn._o$({sourceComponent:this.telemetryUtilService.getClientType(),originalService:bn.Uu$.GxTarget,serviceUseCase:Oe,serviceSubUseCase:Ke,url:F?.config?.url||"",networkErrorCode:String(F&&F.response?F.response.status:0),destinationIp:"",xRequestId:F&&F.xRequestId?F.xRequestId:"",retryCount:0,wasSWCacheBypassed:bn.T80.UNDEFINED,networkErrorMessage:F?.response?.message?.substring(0,1024)||""});this.telemetryService.push(nn)}getCommonParams(F){const Oe=m.zk.isBrowserPlatform();return{deviceOS:F,deviceType:this.systemInfo.DeviceType||I.oX.Undefined,deviceMake:this.systemInfo.VendorName||I.oX.Undefined,deviceModel:this.systemInfo.SystemName||I.oX.Undefined,deviceOSVersion:this.systemInfo.OSVersion,clientType:Oe?Wd.CommonClientType.Browser:Wd.CommonClientType.Native,browserType:this.systemInfo.BrowserName}}setIframeInfo(F){F&&(this.iframeInfo={iframeId:"survey-frame",targetOrigin:(0,Zr.PI)(F)||""},this.appConfig.spatialNavigation?.synthesizeClickViaBridgeCommand&&window.addEventListener("message",this.handleInputFocusedEventBinding),this.gamepadNavigationService.subscribeToGamepadNavigationEvents(this.iframeInfo))}handleInputFocusedEvent(F){const Oe=this.inputModalityService.lastInputModality;if("TEXT_INPUT_FOCUSED"===F?.data?.type&&F?.data?.coordinates&&(this.browseUxService.showInvokeKeyboardToast(this.keyboardGuidanceKey),Oe===Rl.M.Gamepad)){const Ke=document.activeElement.getBoundingClientRect(),nn=JSON.parse(F.data.coordinates);if(!Ke||!nn)return void this.logger.error("Invalid coordinates received for iframe click simulation.");const Nn=Math.floor((Ke.left+nn.left+nn.width/2)*window.devicePixelRatio),_i=Math.floor((Ke.top+nn.top+nn.height/2)*window.devicePixelRatio);this.bridgeService.executeCommand(An.Ts.Common.Windowcontrol.SynthesizeClickEvent,{targetX:Nn,targetY:_i,mouseX:-1,mouseY:-1}).subscribe()}}getCurrentAppTheme(){return Co.ThemeType.Dark}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.KVO(jr.k_),g.KVO(m.zW),g.KVO(Ge),g.KVO(I.H0),g.KVO(m.J6),g.KVO(Br.h),g.KVO(Yr.Ix),g.KVO(Lu.vT),g.KVO(bn.jgD),g.KVO(ed),g.KVO(Pt.HM),g.KVO(m.iH),g.KVO(on.lW),g.KVO(ho.G),g.KVO(Ks.yJ),g.KVO(yo.Vk),g.KVO(pe.BW),g.KVO(Pi.DL),g.KVO(R.lM),g.KVO(m.wt),g.KVO(en.T),g.KVO(m.NZ),g.KVO(De.Uj),g.KVO(zt),g.KVO(mn.Z1),g.KVO(M.nO),g.KVO(m.CF),g.KVO(Qs.Hm),g.KVO(M.uh),g.KVO(M.c_),g.KVO(Rl.p),g.KVO($d))}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})();var mu=s(17901),rd=s(73718),Cc=s(15652),Qc=s(65770),Rs=s(12962),Bl=s(86447),Eo=s(77200);class ql{get isProviderStateUpdating$(){return this.isProviderStateUpdatingSubject.asObservable()}get inProgress(){return this.isProviderStateUpdatingSubject.value}constructor(Ln,F,Oe,Ke,nn,Nn,_i,Wi=[],or,Hr){this.type=Ln,this.logger=F,this.appConfig=Oe,this.telemetryService=Ke,this.settingsService=nn,this.localeService=Nn,this.translateService=_i,this.enabledGamesList=Wi,this.digitalStoreMetadata=or,this.userAccountData=Hr,this._isSyncScheduled=!1,this.isProviderStateUpdatingSubject=new Ci.t(!1),this.connectInProgress=!1,this.syncInProgress=!1,this.inErrorState=!1,this.isResync=!1,this.errorText="",this.errorButtonText="",this.errorArg="",this.errorDialogUrl="",this.showReconnect=!1,this.reconnectReason=null,this.resyncReason=null,this.prevResyncReason=null,this.hideOnboardingReconnect=!1,this.inProgressDisconnect=!1,this.reconnectInProgress=!1,this.showSyncDeniedReconnect=!1,this.accountLinkedTime=null}get expirationTime(){let Ln;if(this.appConfig.accountLinking?.expirationDate)Ln=new Date(this.appConfig.accountLinking?.expirationDate),Number.isNaN(Ln.getTime())&&(Ln=null);else{const F=parseInt(this.userAccountData?.accountLinkingData.expiresIn,10);Ln=F&&F!==Eo.Zr?this.getExpirationFromNow(1e3*F):null,(!Ln||parseInt(Ln,10)===Eo.Zr)&&(Ln=null)}return Ln}get isSyncScheduled(){return this._isSyncScheduled}set isSyncScheduled(Ln){this._isSyncScheduled=Ln}get loggedIn(){return!!this.storeData?.store}get currentLocale(){return this.localeService.getLocale()}get fancyTimestamp(){const Ln=this.currentLocale;return m.Nq.fromNow(this.syncTime?this.syncTime:new Date,Ln,{addSuffix:!0})}get persona(){return this.userAccountData.accountLinkingData?.userDisplayName||this.translateService.instant("accountConnection.connected")}get name(){return this.digitalStoreInfo.accountLinkingMetadata.label}get appStoreName(){return this.digitalStoreInfo?.label}get platform(){return this.type.toUpperCase()}get numberOfSyncedGames(){return this.userAccountData?.accountLinkingData?.accountSyncingData?.totalNumberOfSyncedGfnGames||0}get expirations(){return new Eo.YS(this.appConfig.accountLinking?.expiringNow?1e3*this.appConfig.accountLinking.expiringNow:void 0,this.appConfig.accountLinking?.expiringToday?1e3*this.appConfig.accountLinking.expiringToday:void 0,this.appConfig.accountLinking?.expiringSoon?1e3*this.appConfig.accountLinking.expiringSoon:void 0)}get syncDate(){return this.userAccountData?.accountLinkingData?.accountSyncingData?.syncDate}get syncTime(){return this.syncDate?new Date(this.syncDate):null}get userId(){return this.userAccountData?.accountLinkingData?.userIdentifier}updateLinkTime(){this.accountLinkedTime=Date.now()}getExpirationFromNow(Ln){if("number"!=typeof Ln||Ln===Eo.Zr)return null;const F=this.accountLinkedTime??Date.now();return new Date(F+Ln)}get expires(){const Ln=parseInt(this.userAccountData.accountLinkingData.expiresIn,10);return Ln&&Ln!==Eo.Zr?this.getExpirationFromNow(1e3*Ln):null}get gamesList(){return this.enabledGamesList}get digitalStoreInfo(){return this.digitalStoreMetadata}get storeData(){return this.userAccountData}get isAccountSyncingSupported(){return this.digitalStoreInfo.features.filter(Ln=>Ln.__typename===Sa.Oz.AccountGamesSyncing).some(Ln=>!0===Ln.supported)}get isAccountLinkingSupported(){return this.digitalStoreInfo.features.filter(Ln=>Ln.__typename===Sa.Oz.AccountLinkingSso).some(Ln=>!0===Ln.supported)}set userAccountInfo(Ln){this.userAccountData=Ln}set syncData(Ln){this.userAccountData?.accountLinkingData&&(this.userAccountData.accountLinkingData.accountSyncingData=Ln)}get isExpired(){return!(!this.isAccountLinkingSupported||null===this.expirationTime)&&(0===this.expirationTime.getTime()||this.expirationTime.getTime()<Date.now())}get isConnected(){return!!this.storeData?.store}get state(){return this.userAccountData?.accountLinkingData?.accountSyncingData?.syncState}set state(Ln){this.userAccountData.accountLinkingData.accountSyncingData.syncState=Ln}get isSynced(){return this.isConnected&&this.state&&this.isAccountSyncSupported}get showOnboardingReconnect(){return this.isConnected&&this.isAccountSyncSupported&&!this.state&&!this.hideOnboardingReconnect&&this.appConfig.accountLinking.newFeatureAddition.includes(this.type)}get isAccountLinkingSsoAvailable(){return this.isAccountLinkingSupported}get isAccountSyncSupported(){return this.isAccountSyncingSupported}get icon(){return this.digitalStoreInfo.smallImageUrl||""}get isAccountLinkingSsoRequired(){return!!this.digitalStoreInfo.accountLinkingMetadata.isRequired}get isAccountLinked(){return this.isAccountLinkingSsoAvailable&&this.isConnected}resetResyncReconnectReasons(){this.reconnectReason=null,this.prevResyncReason=null}updateProviderState(){if(this.isProviderStateUpdatingSubject.next(!1),this.inProgressDisconnect=!1,this.syncInProgress=!1,this.inErrorState=!1,this.showReconnect=!1,this.showSyncDeniedReconnect=!1,this.prevResyncReason=this.resyncReason,this.resyncReason=null,this.isAccountLinkingSsoAvailable&&(this.errorText="",this.errorArg="",this.inErrorState=!1,this.isAccountLinkingSupported)){const Ln=this.getExpirationStatus();if(this.loggedIn&&Ln!==Eo.lH.NotExpired)switch(this.logger.info("Updating provider state for expiry",Ln),this.inErrorState=!0,this.showReconnect=!0,Ln){case Eo.lH.Expired:this.errorText="accountConnection.accountLinking.warningExpired";break;case Eo.lH.ExpiresNow:case Eo.lH.ExpiresToday:this.errorText="accountConnection.accountLinking.warningToday";break;case Eo.lH.ExpiresSoon:this.errorText="accountConnection.accountLinking.warning",this.errorArg=m.Nq.fromNow(this.expirationTime,this.currentLocale,{addSuffix:!0})}}this.isConnected&&this.isAccountSyncSupported&&this.state&&this.isSyncFailure()&&(this.logger.info(`Updating provider state for sync errors ${this.state} for ${this.type}`),this.errorText="accountConnection.accountSyncing.gameSyncFailed",this.errorArg="",this.inErrorState=!0,this.resyncReason=Eo.Jp.syncFailed,this.type===Eo.b3&&(this.state===Eo.Em.SYNC_DENIED?(this.errorDialogUrl=this.settingsService.getLinksUrl(ji.ni.STEAM_ACCOUNT_SETTINGS,this.currentLocale),this.resyncReason=Eo.Jp.privateProfile,this.errorText="accountConnection.accountSyncing.warning",this.errorButtonText="accountConnection.accountSyncing.openSettings",this.errorArg=this.errorDialogUrl):this.state===Eo.Em.PROFILE_NOT_CREATED&&(this.errorDialogUrl=Eo.lo+`${this.userId}`,this.errorText="accountConnection.accountSyncing.requirement",this.errorButtonText="accountConnection.accountSyncing.openProfile",this.errorArg=this.errorDialogUrl,this.resyncReason=Eo.Jp.profileNotCreated)),this.type===Eo.Gl&&this.state===Eo.Em.SYNC_DENIED&&(this.errorText="",this.showSyncDeniedReconnect=!0))}isSyncFailure(){return!this.state||this.state!==Eo.Em.SYNC_SUCCESS}getExpirationStatus(){return this.isExpired?Eo.lH.Expired:this.checkExpiration(this.expirations.now)?Eo.lH.ExpiresNow:this.checkExpiration(this.expirations.today)?Eo.lH.ExpiresToday:this.checkExpiration(this.expirations.soon)?Eo.lH.ExpiresSoon:Eo.lH.NotExpired}checkExpiration(Ln){return!!this.isExpired||this.expirationTime?.getTime()<Date.now()+Ln}onConnectStart(){this.logger.trace(Zr.N_.UserGesture,"Connecting to your accounts"),this.reconnectInProgress=!1,this.connectInProgress=!0,this.hideOnboardingReconnect=!0,this.isProviderStateUpdatingSubject.next(!0)}onConnectEnd(){this.connectInProgress=!1,this.isProviderStateUpdatingSubject.next(!1)}onReconnectStart(Ln){this.logger.trace(Zr.N_.UserGesture,"Reconnecting to your connected account"),this.reconnectReason=Ln?Eo.U8.onboardingReconnect:this.showSyncDeniedReconnect&&this.type===Eo.Gl?Eo.U8.syncDenied:Eo.U8.reconnect,this.reconnectInProgress=!0,this.hideOnboardingReconnect=!0,this.isProviderStateUpdatingSubject.next(!0)}onReconnectEnd(){this.reconnectInProgress=!1,this.isProviderStateUpdatingSubject.next(!1)}onSyncStart(){this.syncInProgress=!0,this.isProviderStateUpdatingSubject.next(!0)}onSyncEnd(){this.syncInProgress=!1,this.isProviderStateUpdatingSubject.next(!1)}onResyncStart(){this.isResync=!0,this.logger.trace(Zr.N_.UserGesture,"Resyncing to your connected account"),this.syncInProgress=!0,this.isProviderStateUpdatingSubject.next(!0)}onResyncEnd(){this.isResync=!1,this.syncInProgress=!1,this.isProviderStateUpdatingSubject.next(!1)}onDisconnectStart(){this.logger.trace(Zr.N_.UserGesture,"Disconnecting from your account"),this.inProgressDisconnect=!0,this.isProviderStateUpdatingSubject.next(!0)}onDisconnectEnd(){this.inProgressDisconnect=!1,this.inErrorState=!1,this.showReconnect=!1,this.isProviderStateUpdatingSubject.next(!1)}}let Td=(()=>{class it{constructor(F,Oe,Ke,nn,Nn){this.appConfig=Oe,this.endpointFactory=Ke,this.idmService=nn,this.distributedtracingUtilService=Nn,this.logger=F.getLogger("ALSService");const{defaultRetries:_i,defaultTimeout:Wi,exponentialBackoffMaxDelay:or,defaultTimeBetweenRetries:Hr}=Oe.accountLinking;this.alsEndpoint=this.endpointFactory.createEndpoint({config:{maxRetries:_i,timeout:Wi,exponentialBackoffMaxDelay:or,timeBetweenRetries:Hr}})}createHeader(F){return{[Wl.SA.authorization]:`Bearer ${F.token}`}}createRequestOptions(F={},Oe={},Ke,nn,Nn=!1){return{headers:Ke?this.createHeader(Ke):{},params:Oe,body:F,reportRequestData:{reportSuccessTelemetry:"true",originalService:bn.Uu$.ALS,serviceUseCase:nn},includeFullResponse:Nn}}get redirectFinishedUrl(){return this.appConfig.accountLinking.redirectFinishedUrl}providerSync(F,Oe,Ke){const nn=this.createRequestOptions({},{},Oe,bn.OOF.LibrarySync,!0),Nn=this.buildApiUrl("sync/").concat(F),_i=this.alsEndpoint.post(Nn,nn);return this.distributedtracingUtilService.handleHttpEndpointSpan(_i,nn,mn.pB.AlsSync,Ke).pipe((0,nt.T)(Wi=>(this.logger.info("Syncing result",Wi),202===Wi?.status)),(0,Ot.W)(Wi=>(this.logger.error(`Error syncing ${F} account provider: `,Wi),(0,Fe.of)(!1))))}buildApiUrl(F){return this.appConfig.accountLinking?.server+"/v1/"+F}getLoginUrl(F,Oe,Ke,nn=!1){let Nn=this.appConfig.accountLinking.redirectUrl;return this.appConfig.accountLinking.redirectUrlIsRelative&&(Nn=window.location.origin+Nn),Oe&&Oe>0&&(Nn=Nn.replace("{portnumber}",Oe.toString())),this.idmService.getAuthToken(nn,Ke).pipe((0,$e.ZZ)(_i=>{const Wi=this.createRequestOptions({},{platform:F,redirect_uri:Nn,client_id:this.appConfig.accountLinking.clientId},_i,bn.OOF.GetOAuthURL),or=this.alsEndpoint.get(this.buildApiUrl("login_url"),Wi);return this.distributedtracingUtilService.handleHttpEndpointSpan(or,Wi,mn.pB.AlsGetLoginUrl,Ke).pipe((0,nt.T)(Hr=>Hr.login_url))}),(0,Ot.W)(_i=>this.idmService.handleAuthError(_i,nn,this.getLoginUrl.bind(this),F,Oe,Ke)))}postLoginUrl(F,Oe,Ke=!1){return this.idmService.getAuthToken(Ke,Oe).pipe((0,$e.ZZ)(nn=>{const Nn=this.createRequestOptions({platform:F,client_id:this.appConfig.accountLinking.clientId},{},nn,bn.OOF.GetOAuthURL),_i=this.alsEndpoint.post(this.buildApiUrl("login_url"),Nn);return this.distributedtracingUtilService.handleHttpEndpointSpan(_i,Nn,mn.pB.AlsPostLoginUrl,Oe)}),(0,Ot.W)(nn=>this.idmService.handleAuthError(nn,Ke,this.postLoginUrl.bind(this),F,Oe)))}postToken(F,Oe){const Ke=this.createRequestOptions({client_id:this.appConfig.accountLinking.clientId,device_code:F},{},void 0,bn.OOF.Other),nn=this.alsEndpoint.post(this.buildApiUrl("token"),Ke);return this.distributedtracingUtilService.handleHttpEndpointSpan(nn,Ke,mn.pB.AlsPostToken,Oe)}disconnect(F,Oe,Ke,nn=!1){return this.idmService.getAuthToken(nn,Ke).pipe((0,$e.ZZ)(Nn=>{const _i=this.createRequestOptions({},{},Nn,bn.OOF.UnlinkAccount),Wi=this.alsEndpoint.delete(this.buildApiUrl(`linking/${Oe}`),_i);return this.distributedtracingUtilService.handleHttpEndpointSpan(Wi,_i,mn.pB.AlsDeleteLinking,Ke)}),(0,Qe.u)(!0),(0,Ot.W)(Nn=>this.idmService.handleAuthError(Nn,nn,this.disconnect.bind(this),F,Oe,Ke)),(0,Ot.W)(Nn=>(this.logger.error(`error disconnecting from ${F} account provider: `,Nn),(0,Fe.of)(!0))))}postRequestToSync(F,Oe,Ke=!1){return this.idmService.getAuthToken(Ke,Oe).pipe((0,$e.ZZ)(nn=>this.providerSync(F,nn,Oe)),(0,Ot.W)(nn=>(this.logger.error("Error while syncing",nn),this.idmService.handleAuthError(nn,Ke,this.postRequestToSync.bind(this),F,Oe))),(0,Ot.W)(()=>(0,Fe.of)(!1)))}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.KVO(m.J6),g.KVO(yo.Vk),g.KVO(Wl.t),g.KVO(jr.k_),g.KVO(mn.Z1))}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})();const Ac="timeout_";let hd=(()=>{class it{constructor(F,Oe,Ke,nn,Nn,_i,Wi,or,Hr,Mo,aa,ko,Aa,Ra,Ml,Qa,Lc,Bu,Pu,Gu,Dd,Vu){this.bridgeService=Oe,this.appConfig=Ke,this.idmService=nn,this.telemetryService=Nn,this.localeService=_i,this.settingsService=Wi,this.distributedtracingUtilService=or,this.dialogService=Hr,this.lcarsService=Mo,this.translateService=aa,this.refreshUiService=ko,this.router=Aa,this.customLocationService=Ra,this.guestModeHelperService=Ml,this.alsSdkService=Qa,this.sharedStorageService=Lc,this.snackbar=Bu,this.telemetryUtilService=Pu,this.dialog=Gu,this.bannerNotificationService=Dd,this.routerService=Vu,this.showBorderOnSettingsIntegration=!1,this.ctaVisibilityPreference=new Gn.m(1),this.providerOperationSub=new _.B7,this.triggerLibraryRefreshSub=new _.B7,this.removeOnboarding=new _.B7,this.isBrowserClient=!1,this.initialized=!1,this.accountLinkingEnabled=!1,this.isInitalized=!1,this.checkIfGamesAutoSynced=!1,this.accountProviders=new Map,this.accountLinkingDataSubject=new Gn.m(1),this.pendingGamesListEnablement=null,this.launchCTA=new Gn.m(1),this.logger=F.getLogger("OwnershipSyncService"),this.needsWindowWorkaround=!!Ke?.featureEnablement?.loginPopupBlockerWorkaround,this.isBrowserClient=m.zk.isBrowserPlatform(),this.linkedAccountChangedNotification$=this.getLinkChangeNotificationData().pipe((0,Qc.u)())}get shouldShowCTADefault(){return!0}get waitForAccountLinkingData(){return this.accountLinkingDataSubject.asObservable()}get isAccountLinkingEnabled(){let F=!1;return this.accountProviders.forEach(Oe=>{Oe.isAccountLinkingSupported&&(F=!0)}),this.accountLinkingEnabled&&F}initialize(){this.initialized||(this.idmService.accountStatusChanged.subscribe(F=>{this.logger.info("Account status changed, updating account linking data"),this.accountProviders?.forEach(Oe=>{Oe.showOnboardingReconnect&&!F.isAuthenticated&&this.removeOnboarding.next({providerType:Oe.type,state:!0})}),this.pendingGamesListEnablement?.unsubscribe(),this.cancelPendingCTA(),F.isAuthenticated&&this.initializeAccountConnections().subscribe(()=>{this.initExpirationCheck(),this.initialized=!0},Oe=>{this.logger.error("Error in initialization of ALS/Ownership service",Oe)})}),this.readShowIntegrationTilePreference().pipe((0,a.s)(1)).subscribe(F=>this.ctaVisibilityPreference.next(F),ln.l),this.checkAccountLinkingAndAddBanner(),this.checkOnBoardingSyncFeatureAndAddBanner())}notifyLibraryUpdated(){this.libraryUpdated$?.next()}checkAccountLinkingAndAddBanner(){this.providerOperationUpdate().pipe((0,Mr.p)(F=>F.operation===Eo.dI.InitialFetchDone||F.operation===Eo.dI.LinkingDone||F.operation===Eo.dI.LinkingError||F.operation===Eo.dI.SyncingDone||F.operation===Eo.dI.Expiring)).subscribe(F=>{this.logger.info("Account linking provider:",F.provider);const Oe=F.provider,Ke=this.getNotificationInfo(Oe);if(this.bannerNotificationService.hasNotificationInQueue(Un.$9.AccountLinkingExpired)&&(this.logger.info("Remove stale expiry notification",Oe),this.bannerNotificationService.removeNotificationFromQueue(Un.$9.AccountLinkingExpired)),Ke&&Ke.isAccountLinkingSsoAvailable&&Ke.loggedIn){const nn=Ke.expirationStatus;if(nn!==Eo.lH.NotExpired){const Nn=Eo.RJ;Nn.image=Ke.icon,Nn.messageStr.interpolates={store:Ke.storeName},Nn.onPrimaryButtonClick=this.onClickGotoSettings.bind(this),nn===Eo.lH.Expired&&(this.bannerNotificationService.addNotificationToQueue(Nn),this.onCancelCTA().pipe((0,a.s)(1)).subscribe(_i=>{this.bannerNotificationService.removeNotificationFromQueue(Un.$9.AccountLinkingExpired)}))}}})}checkOnBoardingSyncFeatureAndAddBanner(){this.waitForAccountLinkingData.pipe((0,nt.T)(F=>this.getEnabledAccountProviders().filter(Ke=>this.appConfig.accountLinking.newFeatureAddition.includes(Ke.type))),(0,bo.n)(F=>{const Oe=[];return F?.forEach(Ke=>{Ke&&(this.logger.info("Check for new feature noification",Ke),Oe.push(this.checkForNewSyncingFeature(Ke.type)))}),(0,bi.zV)(Oe)})).subscribe()}checkForNewSyncingFeature(F){const Oe=this.getNotificationInfo(F);if(this.bannerNotificationService.hasNotificationInQueue(Un.$9.NewSyncFeature)&&(this.logger.info("Remove stale new feature notification",F),this.bannerNotificationService.removeNotificationFromQueue(Un.$9.NewSyncFeature)),F&&Oe.showOnboardingReconnect){const Ke=Eo.Fv;return Ke.image=Oe.icon,Ke.onPrimaryButtonClick=this.onClickGotoSettings.bind(this),this.logger.info("Showing new feature notification",F),this.bannerNotificationService.addNotificationToQueue(Ke),this.onboardingStatusChange().pipe((0,Mr.p)(nn=>nn.state&&nn.providerType===F),(0,a.s)(1),(0,nt.T)(()=>(this.logger.info("Clearing new feature notification",F),this.bannerNotificationService.removeNotificationFromQueue(Un.$9.NewSyncFeature),(0,Fe.of)(!0))))}return(0,Fe.of)(!1)}onClickGotoSettings(){this.triggerHighlightOnSettingsIntegration(),this.customLocationService.backNavigationRoute=this.router.url,this.settingsService.showPreferredGameLanguageCTA=!0,this.routerService.navigate([Pt.f.SettingsConnections],{fragment:Pt.u6.Integrations})}startWaitingForLibraryUpdate(){this.libraryUpdated$?.complete(),this.libraryUpdated$=null,this.libraryUpdated$=new Gn.m(1)}getLinkChangeNotificationData(){return this.refreshUiService.linkedAccountRefresh$.pipe((0,nt.T)(F=>(this.logger.info("Refresh ALS triggered",F?.source),F?.metadata)))}getSyncChangeNotificationData(){return this.refreshUiService.syncChangeRefresh$.pipe((0,nt.T)(F=>(this.logger.info("Refresh sync change triggered",F?.source),F?.metadata)))}initializeAccountConnections(){return this.logger.info("Initializing account connections"),this.accountLinkingEnabled=!1,(0,bi.zV)([this.lcarsService.getStaticAppData(),this.getUserAccountData()]).pipe((0,nt.T)(([F,Oe])=>(this.processLcarsResponse(F.appStoreDefinitions,Oe),!0)),(0,Ot.W)(F=>(this.logger.error("Failure querying data from LCARS: ",F),(0,Fe.of)(!1))))}getUserAccountData(){return(0,Md.h)(this.lcarsService.getLatestUserAccountInfo().pipe((0,a.s)(1)),this.lcarsService.onUserAccountInfoUpdated$).pipe((0,nt.T)(Oe=>{const Ke=Oe.userAccount.storesData;return Ke.length?Ke:[]}),(0,Ot.W)(Oe=>(this.logger.error("Error in fetching user account info:",Oe),(0,Fe.of)([]))))}sortFeaturesData(F){const Oe=[];return Object.values(Sa.Oz).forEach(Ke=>{const nn=F.findIndex(Nn=>Nn.__typename===Ke);-1!==nn&&Oe.push(F[nn])}),Oe}processLcarsResponse(F,Oe){F?.length&&(F.filter(Ke=>!Eo.pm.includes(Ke.store)).forEach(Ke=>{const nn=Ke.store;Ke.features=this.sortFeaturesData(Ke.features),Ke.features?.forEach(Nn=>{const _i=Ke.accountLinkingMetadata.supportedVariantIds||[];if(Object.values(Sa.Oz).includes(Nn.__typename)&&Nn.supported){this.logger.info(`Processing LCARS data, digital store for ${Ke.store}:`,Ke);const Wi=this.getStoreSpecificUserAccountData(Ke.store,Oe);this.logger.info(`StoresData for ${Ke.store}:`,Wi),Nn.__typename===Sa.Oz.AccountLinkingSso&&(this.accountLinkingEnabled=!0),this.accountProviders.has(nn)?(this.logger.info("Existing provider, updating userAccount info",nn),this.accountProviders.get(nn).userAccountInfo=Wi):(this.logger.info("Setting provider",nn),this.accountProviders.set(nn,new ql(nn,this.logger,this.appConfig,this.telemetryService,this.settingsService,this.localeService,this.translateService,_i,Ke,Wi)))}})}),this.updateAccountConnections(!1,Eo.dI.InitialFetchDone),this.isInitalized||(this.logger.info("Register for account linking push notifications"),this.registerAccountLinkingServiceNotifications(),this.isInitalized=!0),this.accountLinkingDataSubject.next(!0),this.accountLinkingEnabled&&this.checkAccountExpiration())}getStoreSpecificUserAccountData(F,Oe){return Oe.find(Ke=>Ke.store===F)??null}updateAccountConnections(F,Oe,Ke=!1,nn){nn?(nn.updateLinkTime(),this.logger.info(`Updating account info from lcars for ${nn.platform}`),nn.updateProviderState(),this.onProviderDataUpdate(nn.type,Oe,F,Ke)):this.accountProviders.forEach(Nn=>{Nn.updateLinkTime(),this.logger.info(`Updating account info from lcars for ${Nn.platform}`),Nn.updateProviderState(),this.onProviderDataUpdate(Nn.type,Oe,F,Ke)})}initExpirationCheck(){(0,Xr.Y)(36e5).pipe((0,Mr.p)(()=>this.accountLinkingEnabled)).subscribe(()=>{this.checkAccountExpiration()})}checkAccountExpiration(){this.accountProviders.forEach(F=>{if(F.isAccountLinkingSsoAvailable&&F.isConnected){const Oe=F.getExpirationStatus();Oe!==Eo.lH.NotExpired&&(this.logger.info(`Account Linking expired state ${Oe} for ${F.type}`),F.updateProviderState(),this.providerOperationSub.next({provider:F.type,operation:Eo.dI.Expiring}))}})}registerAccountLinkingServiceNotifications(){this.linkedAccountChangedNotification$.pipe((0,bo.n)(F=>this.updateLinkedAccount(F))).subscribe(),this.getSyncChangeNotificationData().pipe((0,Ze.M)(F=>this.updateSyncAccount(F))).subscribe()}updateSyncAccount(F){if(F?.platformSyncInfo){this.logger.info("Refresh sync data as per push notification");const Oe=this.accountProviders.get(F.platformSyncInfo.platformCode);Oe?(Oe.syncData={totalNumberOfSyncedGfnGames:F.platformSyncInfo.syncGameCount,syncState:F.platformSyncInfo.syncState||Eo.Em.UNKNOWN,syncDate:F.platformSyncInfo.syncDate},this.updateAccountConnections(!0,Eo.dI.SyncingDone,Oe.isResync,Oe),Oe.onSyncEnd(),Oe.isSyncScheduled=!1):this.logger.error("Missing provider in notification data",F.platformSyncInfo.platformCode)}else this.logger.info("Refresh sync data for conditional triggers"),this.syncAccountLinking(!1).pipe((0,a.s)(1)).subscribe()}updateLinkedAccount(F){if(F){if(!F?.accountLinkedInfo)return this.logger.error("Missing accountLinkedInfo field in notification",F),(0,Fe.of)(!1);const Oe=F.accountLinkedInfo.accountType;if(!Oe)return this.logger.error(`Unknown accountType ${F.accountLinkedInfo.accountType} in notification`),(0,Fe.of)(!1);const Ke=this.accountProviders.get(Oe);if(!Ke)return this.logger.error(`Unknown accountType ${F.accountLinkedInfo.accountType} in notification`),(0,Fe.of)(!1);if(Ke.isSyncScheduled)return this.logger.info("Ignoring push notification, as a sync is scheduled for the provider"),(0,Fe.of)(!1);const nn=F.accountLinkedInfo.linked;return nn||!nn&&Ke.loggedIn?(this.logger.info("Account syncing triggered due to push notification"),this.syncAccountLinking(!1,Ke).pipe((0,Ze.M)(()=>this.checkAccountExpiration()),(0,a.s)(1))):(0,Fe.of)(!0)}return this.logger.info("Refresh ALS for conditional triggers"),this.syncAccountLinking(!1).pipe((0,Ze.M)(()=>this.checkAccountExpiration()),(0,a.s)(1))}syncAccountLinking(F,Oe,Ke=!1){return this.logger.info(`Syncing Account Linking data for ${Oe?.type}`),this.lcarsService.getLatestUserAccountInfo().pipe((0,nt.T)(nn=>(this.logger.info(`User Account data for ${Oe?.type}: `,nn),Oe?Oe.userAccountInfo=this.getStoreSpecificUserAccountData(Oe.digitalStoreInfo.store,nn.userAccount.storesData):this.accountProviders.forEach(Nn=>{Nn.userAccountInfo=this.getStoreSpecificUserAccountData(Nn.digitalStoreInfo.store,nn.userAccount.storesData)}),this.updateAccountConnections(F,Eo.dI.SyncingDone,Ke,Oe),!0)),(0,Ot.W)(nn=>(this.logger.error("Error syncing account linking providers: ",nn),(0,Fe.of)(!1))))}waitForAl(){return this.guestModeHelperService.isGuestMode?(0,Fe.of)(!0):this.accountLinkingDataSubject.asObservable()}isSyncingOrLinkingSupported(F,Oe){return this.waitForAl().pipe((0,a.s)(1),(0,nt.T)(()=>{this.logger.info(`Checking account linking/syncing availability for game ${Oe} on ${F}`),this.initialized||this.logger.warn("Attempting to check availability for game before initialization is complete..");const Ke=this.accountProviders?.get(F);return!(!Ke||!Ke.isAccountSyncSupported&&(!Ke.isAccountLinkingSupported||Ke.gamesList.length&&!Ke.gamesList.includes(Oe)))}))}getValueProp(F){const Oe=this.accountProviders.get(F);return Oe?Oe.digitalStoreInfo.features.filter(nn=>nn.displayProposition).map(nn=>({matIcon:nn.supported?"check_circle":"cancel",text:nn.displayProposition})):null}getAccountLinkingStateForGame(F="",Oe){const Ke=Oe.toString();return this.waitForAl().pipe((0,a.s)(1),(0,nt.T)(()=>{this.logger.info(`Checking account linking availability for game ${Oe} on ${F}`),this.initialized||this.logger.warn("Attempting to check against the list of account-linking availability for game before initialization is complete. Cloud variables may not have been loaded.");const nn=this.accountProviders.get(F);if(!nn||!nn.isAccountLinkingSupported)return this.logger.info(`Account linking not available for ${F}`),{isEnabled:!1,isRequired:!1};const Nn=nn;return!Nn.gamesList?.length||Nn.gamesList.includes(Ke)?(this.logger.info(`Account linking is available for ${F} and for the game, ${Oe}`),{isEnabled:!0,isRequired:!!Nn?.isAccountLinkingSsoRequired}):(this.logger.info(`Account linking is not available for ${F} and for the game, ${Oe}`),{isEnabled:!1,isRequired:!1})}))}isAccountLinkEnabledForGame(F="",Oe){const Ke=Oe.toString();return this.waitForAl().pipe((0,a.s)(1),(0,nt.T)(()=>{this.logger.info(`Checking account linking enablement for game ${Oe} on ${F}`),this.initialized||this.logger.warn("Attempting to check against the list of account-linking enabled games before initialization is complete. Cloud variables may not have been loaded.");const nn=this.accountProviders.get(F);if(!nn||!nn.isAccountLinkingSupported)return this.logger.info(`Account linking not provided for ${F}`),!1;const Nn=nn;return!Nn.gamesList?.length||Nn.gamesList.includes(Ke)?(this.logger.info("Account linking was enabled for the game, "+(Nn.isConnected&&!Nn.isExpired?"and account was linked and not expired":"but account was not linked or expired")),Nn.isConnected&&!Nn.isExpired):(this.logger.info(`Account linking is not available for ${F} and the game, ${Ke}`),!1)}))}isAccountLinked(F=""){if(this.isAccountLinkingAvailable(F)){const Oe=this.accountProviders.get(F);return Oe?.isConnected&&!Oe?.isExpired}return!1}isAccountSyncedOrLinkComplete(F){const Oe=this.accountProviders.get(F);return Oe?.isConnected||Oe?.isSynced}isAccountLinkingAvailable(F=""){const Oe=this.accountProviders.get(F);return!(!Oe||!Oe.isAccountLinkingSupported)}resync(F,Oe){if(!this.initialized)return(0,Fe.of)(!1);const Ke=this.accountProviders.get(F);return Ke?(Ke.onResyncStart(),this.sync(F,!0,!1,Oe)):(0,Fe.of)(!0)}connect(F,Oe,Ke=!1,nn=!1,Nn=!1,_i,Wi=!1){const or=this.accountProviders.get(F),Hr=or.name;return this.connectFlow(F,Ke,nn,_i,Wi).pipe((0,$e.ZZ)(Mo=>Mo?(this.logger.info("Account linking succeed, showing toast message"),this.handleConnectLoginSuccess(or,Hr,Oe,Ke,Nn,_i)):(this.logger.error("Account linking failed, showing error dialog"),this.dialogService.openAccountLinkingErrorDialog(Hr,Wi))))}connectFlow(F,Oe=!1,Ke=!1,nn,Nn=!1){if(!this.initialized)return(0,Fe.of)(!1);const _i=this.accountProviders.get(F);if(_i){const Wi=this.distributedtracingUtilService.startSpan(mn.pB.AlsUserLogin,nn);return this.distributedtracingUtilService.setSpanAttribute(Wi,mn.NS.AccountLinkingProvider,F),Oe?(_i.onReconnectStart(Ke),this.removeOnboarding.next({providerType:F,state:!0})):_i.onConnectStart(),(this.appConfig.featureEnablement?.openLinksOffDevice?this.doLoginOffDevice(_i,Wi,Nn):this.doLogin(_i,F,Oe,Wi,Nn)).pipe((0,Ot.W)(Mo=>(this.logger.error("Error logging in: ",Mo),(0,Fe.of)(!1))),(0,Ze.M)(Mo=>{Mo?(this.logger.info("Account linking succeed"),this.distributedtracingUtilService.setSpanAttribute(Wi,mn.NS.Error,!1)):(this.distributedtracingUtilService.setSpanAttribute(Wi,mn.NS.Error,!0),this.logger.error("Account linking failed"),this.providerOperationSub.next({provider:F,operation:Eo.dI.LinkingError}))}),(0,at.j)(()=>{Wi&&this.distributedtracingUtilService.closeSpan(Wi),Oe?_i.onReconnectEnd():_i.onConnectEnd()}))}return(0,Fe.of)(!1)}handleConnectLoginSuccess(F,Oe,Ke,nn,Nn=!1,_i){let Wi;return Nn&&F.isAccountSyncingSupported?this.syncInline(F,Ke,!1):(Nn?(this.logger.info("Opening inline connect success dialog"),Wi=this.dialogService.openInLineConnectSuccessDialog(Oe,F.persona,nn)):Wi=this.translateService.get(nn?"accountConnection.accountLinking.accountReconnected":"accountConnection.accountLinking.accountConnected",{arg:Oe}).pipe((0,Ze.M)(Hr=>{this.logger.info("Showing connection success toast"),this.snackbar.open(Hr,"",{duration:5e3,horizontalPosition:"left",verticalPosition:"bottom",panelClass:["nv-hig"]})})),Wi.pipe((0,nt.T)(()=>F.isAccountSyncingSupported?(this.sync(F.type,!1,Nn,_i).pipe((0,a.s)(1)).subscribe(ln.l,or=>this.logger.error("Error occurred while syncing",or)),!0):(F.updateProviderState(),this.logger.info("Connection successful, provider does not support syncing"),!0))))}disconnect(F,Oe=!1,Ke){if(!this.initialized)return(0,Fe.of)(!1);this.logger.info(`Disconnecting account "${F}"`);const nn=this.accountProviders.get(F);nn.showOnboardingReconnect&&this.removeOnboarding.next({providerType:F,state:!0}),nn.onDisconnectStart();const Nn=nn.isAccountSyncSupported;Nn&&this.startWaitingForLibraryUpdate();const _i=this.appConfig?.accountLinking?.disconnectWaitInterval,Wi=this.appConfig?.accountLinking?.defaultDisconnectWaitInterval,or=_i?_i[Ac+nn.type.toLowerCase()]??Wi:Wi,Hr=this.getPushMessageKey(xt.MP.PLATFORM_SYNC_CHANGE,nn.platform);return this.refreshUiService.startNotificationTimerRace(xt.MP.PLATFORM_SYNC_CHANGE,or,{key:Hr,appStore:nn.platform}),this.alsSdkService.disconnect(F,nn.platform,Ke).pipe((0,$e.ZZ)(()=>!Nn||Oe?(this.logger.info("Not proceeding to wait for library change trigger"),(0,Fe.of)(null)):this.handleLibraryRefreshOnSyncChange(nn)),(0,nt.T)(()=>(this.handleDisconnectSuccess(F,!Oe),!0)),(0,Ot.W)(()=>(nn.onDisconnectEnd(),this.logger.error("Disconnecting account error"),(0,Fe.of)(!1))))}handleLibraryRefreshOnSyncChange(F,Oe=!1){const Ke=new Ci.t(!1),nn=this.refreshUiService.libraryRefresh$.pipe((0,a.s)(1)).subscribe(_i=>Ke.next(!0));return this.refreshUiService.getNotificationTimerRaceResult(xt.MP.PLATFORM_SYNC_CHANGE,{key:xt.MP.PLATFORM_SYNC_CHANGE+":"+F.platform,appStore:F.platform}).pipe((0,a.s)(1),(0,$e.ZZ)(_i=>_i?(this.logger.info("Not refreshing userAccount"),(0,Fe.of)(null)):(this.logger.info("Refreshing user account stream after waiting"),this.syncAccountLinking(!0,F,Oe))),(0,$e.ZZ)(_i=>(null!==_i&&(F.onSyncEnd(),F.onResyncEnd(),F.isSyncScheduled=!1),Ke)),(0,Ze.M)(_i=>{F?.isConnected&&F.isSyncFailure()?this.logger.info("Sync failed, not triggering manual library refresh"):_i?this.logger.info("Received library refresh notification after account disconnect, not triggering manual refresh"):(this.logger.info("Did not receive library refresh notification in time, triggering manual refresh"),this.triggerLibraryRefreshSub.next(!0))}),(0,$e.ZZ)(_i=>this.libraryUpdated$&&!F.isSyncFailure()?this.libraryUpdated$.asObservable().pipe((0,a.s)(1),(0,Qe.u)(_i),(0,Rs.o)(this.appConfig.accountLinking.inlineSyncMaxWaitForLibraryUpdate,(0,Fe.of)(_i))):(0,Fe.of)(_i)),(0,at.j)(()=>{nn?.unsubscribe(),Ke?.complete()}))}reconnect(F,Oe,Ke,nn=!1){return this.needsWindowWorkaround&&(this.blankWindow=window.open("","_blank")),this.disconnect(F,!0,Ke).pipe((0,$e.ZZ)(Nn=>Nn?this.connect(F,null,!0,Oe,!1,Ke,nn):(0,Fe.of)(Nn)),(0,Ze.M)(()=>{this.blankWindow?.close(),this.blankWindow=null}))}handleDisconnectSuccess(F,Oe=!0){const Ke=this.accountProviders.get(F);Oe&&this.sendOwnershipDisconnectTelemetry(F),Ke.userAccountInfo=null,this.providerOperationSub.next({provider:F,operation:Eo.dI.Disconnected}),Ke.onDisconnectEnd()}getPushMessageKey(F,Oe){return F+":"+Oe}accountSyncLibraryRefresh(F,Oe=!1){F.isSyncScheduled=!0;const Ke=this.appConfig?.accountLinking?.syncWaitInterval,nn=this.appConfig?.accountLinking?.defaultSyncWaitInterval,Nn=Ke?Ke[Ac+F.type.toLowerCase()]??nn:nn,_i=this.getPushMessageKey(xt.MP.PLATFORM_SYNC_CHANGE,F.platform);return this.refreshUiService.startNotificationTimerRace(xt.MP.PLATFORM_SYNC_CHANGE,Nn,{key:_i,appStore:F.platform}),this.handleLibraryRefreshOnSyncChange(F,Oe).pipe((0,nt.T)(Wi=>!F.isSyncFailure()))}sync(F,Oe=!1,Ke=!1,nn){if(this.logger.info("Calling asynchronous sync for",F),!this.initialized)return(0,Fe.of)(!1);const Nn=this.accountProviders.get(F);if(!Nn)return(0,Fe.of)(!1);let _i;Nn.onSyncStart(),Nn.isAccountSyncingSupported&&this.startWaitingForLibraryUpdate();const Wi=this.alsSdkService.postRequestToSync(F,nn),or=this.accountSyncLibraryRefresh(Nn,Oe);return _i=Ke?this.dialogService.openInlineSyncInProgressDialog(Wi,or,Nn.name):Wi.pipe((0,$e.ZZ)(Hr=>(this.logger.info("Sync result",Hr),Hr?or:(Nn.state=Eo.Em.UNKNOWN,(0,Fe.of)(Hr))))),_i.pipe((0,Ze.M)(Hr=>{Hr||(Nn.onSyncEnd(),Nn.onResyncEnd(),this.onProviderDataUpdate(Nn.type,Eo.dI.SyncingError,!0,Oe))}))}onLibraryRefreshRequested(){return this.triggerLibraryRefreshSub.asObservable()}providerOperationUpdate(){return this.providerOperationSub.asObservable()}onboardingStatusChange(){return this.removeOnboarding.asObservable()}getEnabledAccountProviders(){return[...this.accountProviders.values()].sort((F,Oe)=>F.digitalStoreInfo.sortOrder-Oe.digitalStoreInfo.sortOrder)}getGameLaunchInfo(F){const Oe=this.accountProviders.get(F);if(!Oe)return null;const Ke=this.getValueProp(F);return{isAccountLinked:Oe.isAccountLinked,expirationStatus:Oe.getExpirationStatus(),isAccountLinkingSsoRequired:Oe.isAccountLinkingSsoRequired,providerType:F,storeName:Oe.name,isAccountLinkingSsoAvailable:Oe.isAccountLinkingSsoAvailable,descriptionIconList:Ke,showOnboardingReconnect:Oe.showOnboardingReconnect}}getNotificationInfo(F){const Oe=this.accountProviders.get(F);return Oe?{loggedIn:Oe.loggedIn,isAccountLinkingSsoAvailable:Oe.isAccountLinkingSsoAvailable,icon:Oe.icon,expirationStatus:Oe.getExpirationStatus(),showOnboardingReconnect:Oe.showOnboardingReconnect,storeName:Oe.name}:null}getAccountLinkingAnalyticsInfo(){const F=[];return this.accountProviders.forEach(Oe=>{F.push({isAccountSyncSupported:Oe.isAccountSyncSupported,isSynced:Oe.isSynced,isAccountLinkingSsoAvailable:Oe.isAccountLinkingSsoAvailable,isAccountLinked:Oe.isAccountLinked,providerType:Oe.type})}),F}parseLoginResult(F){if(F?.platform)return this.logger.info(`Account Linking login successful for ${F.platform}. Expires in ${F.expires_in}`),this.updateUserAccountPostLogin(F),F;if(F){if(F.error)throw new Error(F.error_description??F.error);const Oe=new URL(F),Ke={display_name:Oe.searchParams.get("display_name"),expires_in:Oe.searchParams.get("expires_in"),platform:Oe.searchParams.get("platform"),error:Oe.searchParams.get("error"),error_description:Oe.searchParams.get("error_description")};if(Ke.error)throw new Error(Ke.error_description??Ke.error);return this.logger.info(`Account Linking login successful for ${Ke.platform}. Expires in ${Ke.expires_in}`),this.updateUserAccountPostLogin(Ke),Ke}return this.logger.info("Account Linking login response invalid."),{}}updateUserAccountPostLogin(F){const Ke=this.accountProviders.get(F.platform);Ke&&(Ke.userAccountInfo={store:F.platform,accountLinkingData:{expiresIn:F.expires_in,userDisplayName:F.display_name}},Ke.updateLinkTime())}get getCTAVisibilityPreference$(){return this.ctaVisibilityPreference.asObservable()}getIntegrationTileVisibility$(){return this.getCTAVisibilityPreference$.pipe((0,va.F)(),(0,nt.T)(F=>{const{connectedCount:Oe,availableCount:Ke}=this.getCTACountInfo();return F&&Oe<Ke}))}updateIntegrationTileVisibilityPreference(F){this.ctaVisibilityPreference.next(F),this.writeShowIntegrationTilePreference(F)}getCTACountInfo(){const{totalValidConnected:F,totalAvailableProviders:Oe}=this.getConnectedAccountInfo();return{connectedCount:F.length,availableCount:Oe.length}}getConnectedAccountInfo(){const F=Array.from(this.accountProviders.values());return{totalValidConnected:F.filter(Ke=>!Ke.isAccountLinkingSupported&&!Ke.isAccountSyncingSupported||(Ke.isAccountLinked&&!Ke.isExpired||Ke.isSynced)),totalAvailableProviders:F}}readShowIntegrationTilePreference(){return this.idmService.cachedUser.pipe((0,$e.ZZ)(F=>this.sharedStorageService.readBlock("ALSPreference_"+F.data.userId)),(0,nt.T)(F=>null==F?.showIntegrationTile?this.shouldShowCTADefault:F.showIntegrationTile),(0,Ot.W)(F=>(0,Fe.of)(this.shouldShowCTADefault)))}writeShowIntegrationTilePreference(F){this.idmService.cachedUser.pipe((0,$e.ZZ)(Oe=>(0,po.p)([(0,Fe.of)(Oe.data.userId),this.sharedStorageService.readBlock("ALSPreference_"+Oe.data.userId)])),(0,$e.ZZ)(([Oe,Ke])=>(Ke.showIntegrationTile=F,this.sharedStorageService.writeBlock("ALSPreference_"+Oe,Ke)))).subscribe(ln.l,ln.l)}shouldHighlightSettingsIntegration(){return this.showBorderOnSettingsIntegration}triggerHighlightOnSettingsIntegration(){this.showBorderOnSettingsIntegration=!0}markSettingsIntegrationRenderComplete(){this.showBorderOnSettingsIntegration=!1}onCancelCTA(){return this.launchCTA.asObservable()}cancelPendingCTA(){this.launchCTA.next(!0),this.launchCTA.complete(),this.launchCTA=new Gn.m(1)}openExpirationDialog(F,Oe=!1,Ke=!1,nn=!1){const Nn=this.getGameLaunchInfo(F);return this.logger.info("Game launch info:",Nn),this.dialogService.openAccountLinkingExpirationDialog({isAccountLinkingSsoRequired:Nn.isAccountLinkingSsoRequired,expirationStatus:Nn.expirationStatus,providerType:Nn.providerType,storeName:Nn.storeName},Nn.isAccountLinkingSsoRequired,Oe,Ke,nn)}openAccountLinkingDialog(F,Oe,Ke=!1,nn=!1,Nn=!1){const _i=this.getGameLaunchInfo(F.appStore);this.logger.info("Game launch info:",_i);let Wi=bn.duU.Account_Link_Required;const or=_i.isAccountLinked,Hr=_i.showOnboardingReconnect,Mo=_i.expirationStatus,aa=Mo===Eo.lH.Expired||Mo===Eo.lH.ExpiresNow;if(or&&aa)return Wi=Eo.lH.Expired?bn.duU.Account_Link_Expired:bn.duU.Account_Link_Expires_Soon,this.telemetryUtilService.sendPopUpDialogShownEvent(Wi),this.openExpirationDialog(F.appStore,!1,nn,Nn).pipe((0,$e.ZZ)(ko=>{let Aa=!Oe;const Ra=ko===vt.Tq.GoToConnection;return Ra&&(Aa=!1,this.dialog.closeAll(),this.navigateToAccountsSection()),ko===vt.Tq.Reconnect?(this.telemetryUtilService.sendPopUpDialogClosedEvent(Wi,bn.HBm.Proceed_Connect),this.proceedToConnect(F,!0,Hr,Ke,Nn)):(this.telemetryUtilService.sendPopUpDialogClosedEvent(Wi,Ra?bn.HBm.Goto_Settings:bn.HBm.Dialog_Closed),(0,Fe.of)({returnValue:Aa,dialogShown:!0}))}));if(!or||or&&!aa&&Hr){const ko=F.accountLinkingStoreLabel,Aa=ko?ko+"_":"";return this.idmService.cachedUser.pipe((0,$e.ZZ)(Ra=>this.sharedStorageService.readBlock("accountInlineLinking_"+Aa+Ra.data.userId)),(0,$e.ZZ)(Ra=>{if(this.logger.info("Account linking data",Ra),!Ra.hideInlineAccountLinkingDialog||_i.isAccountLinkingSsoRequired){const Ml={isAccountLinkingSsoRequired:_i.isAccountLinkingSsoRequired,descriptionIconList:_i.descriptionIconList,gameInfo:F,showOnboardingReconnect:_i.showOnboardingReconnect};return this.telemetryUtilService.sendPopUpDialogShownEvent(Wi),this.dialogService.showInLineLinkDialog(Ml,!0).pipe((0,$e.ZZ)(Qa=>Qa.dialogAction===vt.Tq.Connect?(this.telemetryUtilService.sendPopUpDialogClosedEvent(Wi,bn.HBm.Proceed_Connect),this.proceedToConnect(F,!1,Hr,Ke,Nn)):(this.telemetryUtilService.sendPopUpDialogClosedEvent(Wi,bn.HBm.Dialog_Closed),Qa.checkBoxState&&this.onInlineLinkDialogDismiss(Aa),(0,Fe.of)({returnValue:!Oe,dialogShown:!0}))))}return(0,Fe.of)({returnValue:!0,dialogShown:!1})}))}return(0,Fe.of)({returnValue:!0,dialogShown:!1})}proceedToConnect(F,Oe,Ke,nn,Nn){return this.connect(F.appStore,F,Oe,Ke,nn,void 0,Nn).pipe((0,$e.ZZ)(_i=>(0,Fe.of)({returnValue:_i,dialogShown:!0})))}onProviderDataUpdate(F,Oe,Ke,nn){this.providerOperationSub.next({provider:F,operation:Oe}),Ke&&this.sendOwnershipSyncTelemetry(nn,F)}doLogin(F,Oe,Ke,nn,Nn=!1){let _i;return _i=this.isBrowserClient?this.doLoginBrowser(F,nn):this.doLoginNative(F,nn),this.dialogService.openAccountLinkingConnectingDialog(_i,Ke,Nn).pipe((0,$e.ZZ)(Wi=>Wi?(this.logger.info("Data received from AL service: ",Wi),this.onProviderDataUpdate(Oe,Eo.dI.LinkingDone,!F.isAccountSyncSupported,!1),(0,Fe.of)(!0)):(0,Fe.of)(!1)))}doLoginOffDevice(F,Oe,Ke=!1){const nn=this.alsSdkService.postLoginUrl(F.platform,Oe).pipe((0,$a.t)(1)),Nn=new Gn.m(1);let _i;const Wi=nn.pipe((0,Ze.M)(Hr=>{_i=this.linkedAccountChangedNotification$.pipe((0,Mr.p)(Mo=>!!Mo&&(Mo.accountLinkedInfo.accountType===F.type&&Mo.accountLinkedInfo.linked)),(0,a.s)(1)).subscribe(()=>Nn.next())}),(0,$e.ZZ)(Hr=>{const Mo=Math.max(1,Math.floor(Hr.expires_in/Hr.interval)-1);return this.alsSdkService.postToken(Hr.device_code,Oe).pipe((0,Bl.l)(aa=>aa.pipe((0,$e.ZZ)((ko,Aa)=>{if(Aa+1>Mo)return this.logger.error("Off device login failed because number of retry has reached maximal value"),(0,At.$)(ko);const Ml=ko.rawResponse;return 400===ko.status&&"authorization_pending"===Ml?.error?.error?(0,Le.O)(1e3*Hr.interval):void 0}))))}),(0,$e.ZZ)(Hr=>{const aa=(0,Le.O)(this.appConfig.accountLinking?.offDeviceNotificationTimeout??3e4).pipe((0,$e.ZZ)(()=>this.syncAccountLinking(!0,F)));return(0,Cc.O4)(Nn.asObservable(),aa).pipe((0,a.s)(1),(0,Qe.u)(!0))})),or=nn.pipe((0,nt.T)(Hr=>{let Mo=It.lp[It.r7.GfnOffDeviceAccountLink];return this.appConfig.accountLinking.offDeviceLoginShortUrl&&(Mo=this.appConfig.accountLinking.offDeviceLoginShortUrl),{userCode:Hr.user_code,verificationUri:Mo,verificationUriComplete:Hr.verification_uri_complete}}));return this.dialogService.openOffDeviceAccountLinkingDialog(Wi,or,Ke).pipe((0,Ze.M)(Hr=>{_i?.unsubscribe(),Nn?.complete()}))}doLoginBrowser(F,Oe){let Ke;this.blankWindow?(Ke=this.blankWindow,this.blankWindow=null):Ke=window.open("","_blank");const nn=this.alsSdkService.getLoginUrl(F.type.toUpperCase(),void 0,Oe).pipe((0,$e.ZZ)(_i=>(Ke.location.href=_i,(0,kt.R)(window,"message"))),(0,Mr.p)(_i=>this.validateMessageEvent(_i)),(0,nt.T)(_i=>this.getOAuthLoginData(_i)),(0,nt.T)(_i=>this.parseLoginResult(_i)),(0,nt.T)(_i=>{const Wi=new URL(this.alsSdkService.redirectFinishedUrl);return Wi.searchParams.append("platform",F.platform),Wi.searchParams.append("ui_locales",this.localeService.getLocale()),_i.display_name&&Wi.searchParams.append("display_name",_i.display_name),Ke.location.href=Wi.href,_i}),(0,Ot.W)(_i=>{this.logger.error("error retrieving login url ",_i.message);const Wi=new URL(this.alsSdkService.redirectFinishedUrl);return Wi.searchParams.append("platform",F.platform),Wi.searchParams.append("ui_locales",this.localeService.getLocale()),Wi.searchParams.append("error","accountlink_fail"),Ke.location.href=Wi.href,(0,Fe.of)("")})),Nn=(0,Xr.Y)(500).pipe((0,Mr.p)(()=>Ke.closed),(0,Qe.u)(""),(0,a.s)(1));return(0,Cc.O4)(Nn,nn)}doLoginNative(F,Oe){let Ke=this.appConfig.starfleet?.portNumbers;0===Ke.length&&(Ke=[4444]);const nn=new _.B7,Nn=new _.B7;return this.bridgeService.executeCommand(An.Ts.Common.Httpserver.StartHttpServer,{ports:Ke,redirectUrl:"",redirectParams:[]}).pipe((0,$e.ZZ)(_i=>{if("httpRequest"===_i?.callbackReason){const Wi=this.parseLoginResult(_i.url),or=new URL(this.alsSdkService.redirectFinishedUrl);return or.searchParams.append("platform",F.platform),or.searchParams.append("ui_locales",this.localeService.getLocale()),Wi.display_name&&or.searchParams.append("display_name",Wi.display_name),this.bridgeService.executeCommand(An.Ts.Common.Httpserver.SendRedirectResponse,{redirectUrl:or.toString()}).pipe((0,Ze.M)(()=>{Nn.next(Wi),Nn.complete()}))}return"httpRequestAborted"===_i?.callbackReason?(0,Fe.of)(!0).pipe((0,Ze.M)(()=>{Nn.next(),Nn.complete()})):"serverCreated"===_i?.callbackReason?(this.logger.info("HTTP server port is: ",_i.portNumber),nn.next(_i.portNumber),(0,Fe.of)(!0)):(0,At.$)("Error in HTTP server response for account login")}),(0,Ot.W)(_i=>{this.logger.error("Error creating HTTP server for account login",_i);const Wi=new URL(this.alsSdkService.redirectFinishedUrl);return Wi.searchParams.append("platform",F.platform),Wi.searchParams.append("ui_locales",this.localeService.getLocale()),Wi.searchParams.append("error","server_error"),this.bridgeService.executeCommand(An.Ts.Common.Httpserver.SendRedirectResponse,{redirectUrl:Wi.toString()}).pipe((0,Ze.M)(()=>{nn.error(_i),Nn.error(_i)}))}),(0,at.j)(()=>{Nn.complete(),nn.complete()})).subscribe(),nn.pipe((0,Ve.H)(_i=>this.alsSdkService.getLoginUrl(F.type.toUpperCase(),_i,Oe)),(0,Ve.H)(_i=>(this.appConfig.accountLinking.useNativeAuthCommands?this.bridgeService.executeCommand(An.Ts.Common.Nativeauth.initiateLogInALS,{url:_i}).pipe((0,a.s)(1)).subscribe():window.open(_i,"_blank"),Nn.asObservable())),(0,a.s)(1),(0,Rs.o)(3e5,(0,Fe.of)("")),(0,at.j)(()=>{this.logger.info("Closing HTTP server"),this.bridgeService.executeCommand(An.Ts.Common.Httpserver.StopHttpServer).subscribe()}))}validateMessageEvent(F){let Oe=F&&F.data;return Oe=Oe&&F.origin===window.location.origin,!!Oe}getOAuthLoginData(F){const Oe=F.data?.key;if(!Oe)return{};const Ke=window.localStorage.getItem(Oe);window.localStorage.removeItem(Oe);try{return JSON.parse(Ke).data}catch{return this.logger.error("malformed access code object",Ke),null}}getGameSyncStatus(F){switch(F){case Eo.Em.UNKNOWN:return bn.war.Unknown;case Eo.Em.SYNC_SUCCESS:return bn.war.Sync_Success;case Eo.Em.PROFILE_NOT_CREATED:return bn.war.Profile_Not_Created;case Eo.Em.SYNC_DENIED:return bn.war.Sync_Denied;case Eo.Em.SYNC_FAILED:return bn.war.Sync_Failed;default:return bn.war.Unknown}}sendOwnershipSyncTelemetry(F,Oe){const Ke=this.accountProviders.get(Oe);let nn=Ke.isSynced?F?bn.xkk.Resync:bn.xkk.Sync:bn.xkk.AccountLinked;if(Ke.reconnectReason)switch(Ke.reconnectReason){case Eo.U8.onboardingReconnect:nn=bn.xkk.ReconnectForOnboarding;break;case Eo.U8.syncDenied:nn=bn.xkk.ReconnectAfterSyncDenied;break;case Eo.U8.reconnect:nn=bn.xkk.Reconnect}else if(Ke.prevResyncReason)switch(Ke.prevResyncReason){case Eo.Jp.profileNotCreated:nn=bn.xkk.ResyncAfterProfileCreate;break;case Eo.Jp.privateProfile:nn=bn.xkk.ResyncAfterResolve;break;case Eo.Jp.syncFailed:nn=bn.xkk.ResyncAfterSyncFailed}const Nn=new bn.IWs({userAction:nn,state:Ke.isConnected?bn.H9T.Connected:bn.H9T.Disconnected,status:this.getGameSyncStatus(Ke.state),serviceProviderName:Oe||"",totalNumberOfGfnSupportedGames:Ke.numberOfSyncedGames,syncDate:Ke.syncDate||""});this.telemetryService.push(Nn),Ke.resetResyncReconnectReasons()}sendOwnershipDisconnectTelemetry(F){const Oe=this.accountProviders.get(F),Ke=this.accountProviders.get(F)?.syncDate||"",nn=new bn.IWs({userAction:bn.xkk.Disconnect,state:bn.H9T.Disconnected,status:bn.war.Sync_Success,serviceProviderName:F||"",totalNumberOfGfnSupportedGames:0,syncDate:Ke});this.telemetryService.push(nn),Oe.resetResyncReconnectReasons()}navigateToAccountsSection(){this.triggerHighlightOnSettingsIntegration(),this.customLocationService.backNavigationRoute=this.router.url,this.cancelPendingCTA(),this.router.navigate([Pt.f.SettingsConnections],{fragment:Pt.u6.Integrations})}handleConnectFlow(F,Oe,Ke=!1){return this.connect(F.type,Oe,Ke,!1,!0).pipe((0,$e.ZZ)(nn=>nn?(0,Fe.of)(nn):(0,At.$)("Account connection failed")))}handleInlineLinkingDialog(F,Oe){let Ke,nn=!1;return this.idmService.cachedUser.pipe((0,a.s)(1),(0,$e.ZZ)(Nn=>{const _i=Oe.accountLinkingStoreLabel;return Ke=_i?_i+"_":"",this.sharedStorageService.readBlock("accountInlineLinking_"+Ke+Nn.data.userId)}),(0,$e.ZZ)(Nn=>{if(Nn.hideInlineAccountLinkingDialog)return(0,Fe.of)({dialogAction:vt.Tq.ManuallyMarkAsOwned,checkBoxState:!1});nn=!0;const _i={isAccountLinkingSsoRequired:F.isAccountLinkingSsoRequired,descriptionIconList:this.getValueProp(Oe.appStore),gameInfo:Oe,showOnboardingReconnect:F.showOnboardingReconnect};return this.dialogService.showInLineLinkDialog(_i)}),(0,nt.T)(Nn=>(nn&&Nn.checkBoxState&&Nn.dialogAction===vt.Tq.ManuallyMarkAsOwned&&this.onInlineLinkDialogDismiss(Ke),Nn.dialogAction)))}onInlineLinkDialogDismiss(F){this.idmService.cachedUser.pipe((0,$e.ZZ)(Oe=>(0,po.p)([(0,Fe.of)(Oe.data.userId),this.sharedStorageService.readBlock("accountInlineLinking_"+F+Oe.data.userId)])),(0,$e.ZZ)(([Oe,Ke])=>(Ke.hideInlineAccountLinkingDialog=!0,this.sharedStorageService.writeBlock("accountInlineLinking_"+F+Oe,Ke))),(0,a.s)(1)).subscribe()}checkForConnection(F){const Oe=this.accountProviders.get(F.appStore);let Ke=Ir.Bp.Manual;return this.isSyncingOrLinkingSupported(F.appStore,F.variant.id).pipe((0,a.s)(1),(0,$e.ZZ)(nn=>{if(!Oe)return this.dialogService.markGameAsManuallyOwned(F);if(!nn)return this.dialogService.markGameAsManuallyOwned(F);if(!this.isAccountSyncedOrLinkComplete(F.appStore))return this.handleInlineLinkingDialog(Oe,F);if(Oe.isSynced&&Oe.isSyncFailure())return this.handleSyncErrors(Oe);const Nn=Oe.getExpirationStatus();return Nn===Eo.lH.Expired||Nn===Eo.lH.ExpiresNow?this.openExpirationDialog(F.appStore,!0):Oe.isSynced?this.dialogService.openResyncGameStore(F,Oe.persona):this.dialogService.markGameAsManuallyOwned(F)}),(0,$e.ZZ)(nn=>{switch(nn){case vt.Tq.Connect:Ke=Ir.Bp.StoreConnect;break;case vt.Tq.Reconnect:Ke=Ir.Bp.StoreReconnect;break;case vt.Tq.Resync:Ke=Ir.Bp.StoreResync;break;case vt.Tq.Cancel:Ke=Ir.Bp.ManualPostCancellation}return this.handleDialogActions(nn,Oe,F)}),(0,nt.T)(nn=>({syncSupported:Oe?.isAccountSyncingSupported,checkIfGamesAutoSynced:this.checkIfGamesAutoSynced,markAsOwnedTrigger:Ke})))}handleDialogActions(F,Oe,Ke){switch(this.checkIfGamesAutoSynced=!1,F){case vt.Tq.ManuallyMarkAsOwned:return this.handleManuallyMarkAsOwned(Oe,Ke);case vt.Tq.MarkAsOwned:return(0,Fe.of)(!0);case vt.Tq.Connect:return this.handleConnectFlow(Oe,Ke);case vt.Tq.Reconnect:return this.handleConnectFlow(Oe,Ke,!0);case vt.Tq.Resync:return this.syncInline(Oe,Ke,!0);case vt.Tq.GoToConnection:return this.dialog.closeAll(),this.navigateToAccountsSection(),(0,At.$)("Dialog dismissed , navigating to settings page");case vt.Tq.Done:return this.checkIfGamesAutoSynced=!0,(0,Fe.of)(!0);case vt.Tq.NotNow:return(0,Fe.of)(!0);default:return(0,At.$)("DIALOG_DISMISSED")}}handleManuallyMarkAsOwned(F,Oe){return this.dialogService.markGameAsManuallyOwned(Oe).pipe((0,$e.ZZ)(Ke=>this.handleDialogActions(Ke,F,Oe)))}syncInline(F,Oe,Ke){return this.sync(F.type,Ke,!0).pipe((0,a.s)(1),(0,$e.ZZ)(nn=>nn?0!==F.numberOfSyncedGames?(this.logger.info(`${F.numberOfSyncedGames} Games synced after syncing account`),this.dialogService.showLibrarySyncedDialog(F.appStoreName,F.numberOfSyncedGames,F.persona)):(this.logger.info("0 Games synced after syncing account"),this.dialogService.noGameSyncedDialog(F.appStoreName,Oe,F.persona)):this.handleSyncErrors(F)),(0,$e.ZZ)(nn=>this.handleDialogActions(nn,F,Oe)))}handleSyncErrors(F){switch(F.state){case Eo.Em.PROFILE_NOT_CREATED:return this.dialogService.profileNotCreatedDialog(F.name,F.errorDialogUrl);case Eo.Em.SYNC_DENIED:return F.type===Eo.b3?this.dialogService.profileNotPublicIssueDialog(F.name,F.errorDialogUrl,F.persona):this.dialogService.permissionFailureDialog(F.name);default:return this.dialogService.syncFailureDialog(F.name)}}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.KVO(m.J6),g.KVO(m.NZ),g.KVO(yo.Vk),g.KVO(jr.k_),g.KVO(I.H0),g.KVO(m.iH),g.KVO(ar.h$),g.KVO(mn.Z1),g.KVO(vt.o3),g.KVO(Ir.Br),g.KVO(P.c$),g.KVO(pd.F4),g.KVO(Yr.Ix),g.KVO(ed),g.KVO(Mn.x),g.KVO(Td),g.KVO(Fs.yQ),g.KVO(G.UG),g.KVO(bn.jgD),g.KVO(n.bZ),g.KVO(Qs.Hm),g.KVO(Pt.HM))}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})();var Kd=s(56237),Yd=s(12532),sl=function(it){return it.denied="denied",it}(sl||{}),Vl=function(it){return it.clientAddedData="CLIENT_ADDED_DATA",it.clientRemovedData="CLIENT_REMOVED_DATA",it.clientDataResponse="CLIENT_DATA_RESPONSE",it.serverDataRequest="SERVER_DATA_REQUEST",it}(Vl||{});let Wc=(()=>{class it{constructor(F,Oe,Ke,nn,Nn,_i,Wi,or,Hr){this.appConfig=Oe,this.settingsService=Ke,this.bridgeService=nn,this.distributedTracingUtilService=Nn,this.telemetryUtilService=_i,this.guestModeService=Wi,this.guestModeHelperService=or,this.systemInfoService=Hr,this.detectClipboardChange=new Ci.t(!1),this.desktopPasteTelemetry={clientClipboardRead:bn.T80.UNDEFINED,clipboardDataSent:bn.T80.UNDEFINED,clipboardDataLength:0,streamSessionId:"",streamSubSessionId:"",requestId:""},this.isGuestAppFlow=!1,this.logger=F.getLogger("ClipboardService"),this.isGuestAppFlow=this.guestModeHelperService.isGuestAppFlow(),this.clipboardConfig=this.appConfig?.client?.clipboardConfig}setDefaultClipboardSetting(){(0,Kd.T)(()=>this.isGuestAppFlow,this.guestModeService.isGuestFlowConfigFetched$,(0,Fe.of)(null)).pipe((0,a.s)(1),(0,$e.ZZ)(()=>(this.isGuestAppFlow&&(this.guestModeConfig=this.guestModeHelperService.getGuestModeConfig()),this.logger.info("Guest mode config for Paste: ",this.guestModeConfig?.igoSettings?.pasteDefaultOn," and Clipboard config: ",!!this.clipboardConfig?.isClipboardEnabled),this.clipboardConfig?.isClipboardEnabled&&this.clipboardConfig?.maxPasteBuffer?(this.isPasteFeatureOn=!!this.clipboardConfig?.isClipboardEnabled,void 0!==this.guestModeConfig?.igoSettings?.pasteDefaultOn&&(this.isPasteFeatureOn=this.isPasteFeatureOn&&this.guestModeConfig?.igoSettings?.pasteDefaultOn),this.settingsService.getSettingsData().pipe((0,a.s)(1))):(this.logger.info("Skip default setting as clipboard paste disabled"),(0,Fe.of)(null))))).subscribe(F=>{F&&!F.hasOwnProperty(ar.oY.ClipboardPaste)&&(this.logger.info("Setting clipboard paste as enabled: ",this.isPasteFeatureOn," by default"),this.settingsService.storeChangedSettings({settingType:ar.oY.ClipboardPaste,selectedOption:this.isPasteFeatureOn??!0}))})}init(){return this.detectClipboardChange||(this.detectClipboardChange=new Ci.t(!1)),this.detectClipboardChange.asObservable().pipe((0,$e.ZZ)(()=>this.getClipboardFeatureConfig()),(0,$e.ZZ)(F=>null!==F?F.isClipboardEnabled&&F?.maxPasteBuffer?this.readText().pipe((0,nt.T)(Oe=>this.getTextContent(Oe,F.maxPasteBuffer)),(0,$e.ZZ)(Oe=>this.sendClientDataAvailable(!!Oe))):(this.logger.info("Clipboard paste feature not enabled due to user settings"),(0,Fe.of)(!1)):(this.logger.info("Clipboard paste feature not enabled"),this.detectClipboardChange.complete(),this.detectClipboardChange=null,Yd.w)),(0,Ot.W)(F=>(this.logger.error("Error while sending clipboard availability",F),(0,Fe.of)(!1))))}setStreamingIds(F,Oe){this.desktopPasteTelemetry.streamSessionId=F,this.desktopPasteTelemetry.streamSubSessionId=Oe}sendClientDataAvailable(F){this.clipboardAvailableSpan=this.distributedTracingUtilService.startSpan(mn.pB.ClientClipboardAvailable);const Oe=[],Ke=this.distributedTracingUtilService.extractContextFromSpan(this.clipboardAvailableSpan);Object.keys(Ke)?.forEach(Wi=>{Oe.push({key:Wi,value:Ke[Wi]})});const nn={messageType:Ee.HD.paste,pasteData:{type:F?Vl.clientAddedData:Vl.clientRemovedData},tracingData:{traceId:this.clipboardAvailableSpan.spanContext().traceId,traceContext:Oe}},Nn=JSON.stringify(nn);return this.logger.info("Sending clipboard data available type",nn.pasteData.type),this.bridgeService.executeCommand(An.Ts.Gfn.Streaming.SendClipboardUpdate,{clipboardInfo:Nn},!1).pipe((0,Ze.M)(Wi=>{this.distributedTracingUtilService.closeSpan(this.clipboardAvailableSpan),this.logger.info("Clipboard available data sent",Wi)}),(0,Ot.W)(()=>(this.logger.error("Bridge command for SendClipboardUpdate failed"),this.distributedTracingUtilService.closeSpan(this.clipboardAvailableSpan),(0,Fe.of)(!1))))}sendClipboardContentInternal(F,Oe,Ke){const nn=Oe.spanContext().traceId,Nn=[],_i=this.distributedTracingUtilService.extractContextFromSpan(Oe);Object.keys(_i)?.forEach(Mo=>{Nn.push({key:Mo,value:_i[Mo]})});const Wi={messageType:Ee.HD.paste,pasteData:{type:F?Vl.clientDataResponse:Vl.clientRemovedData},tracingData:{requestId:Ke,traceId:nn,traceContext:Nn}};F&&(Wi.pasteData.data=F);const Hr={clipboardInfo:JSON.stringify(Wi)};return this.logger.info("Sending clipboard data type",Wi.pasteData.type),this.desktopPasteTelemetry.clipboardDataLength=F?.length??0,this.desktopPasteTelemetry.clipboardDataSent=this.desktopPasteTelemetry.clientClipboardRead===bn.T80.FALSE?bn.T80.UNDEFINED:F?bn.T80.TRUE:bn.T80.FALSE,this.desktopPasteTelemetry.requestId=Ke,this.bridgeService.executeCommand(An.Ts.Gfn.Streaming.SendClipboardUpdate,Hr,!1)}isClipboardPasteOn(){return this.settingsService.getSettingsData().pipe((0,nt.T)(F=>F?.clipboardPaste??!1))}readText(){return navigator.clipboard?(0,Do.H)(navigator.clipboard.readText()).pipe((0,Ot.W)(F=>(this.logger.info(`Clipboard readText: ${F}`),(0,Fe.of)(null)))):(this.logger.warn("navigator.clipboard is undefined, readText() probably is being used in non secure context."),(0,Fe.of)(null))}sendClipboardData(F){const Oe={};F?.traceContext?.forEach(nn=>{Oe[nn.key]=nn.value});const Ke=this.distributedTracingUtilService.startSpanUsingContext(mn.pB.ClientDesktopPaste,Oe);return this.getClipboardFeatureConfig().pipe((0,a.s)(1),(0,$e.ZZ)(nn=>null!==nn?(this.desktopPasteTelemetry.clientClipboardRead=nn.maxPasteBuffer?bn.T80.TRUE:bn.T80.FALSE,nn.isClipboardEnabled&&nn.maxPasteBuffer?this.readText().pipe((0,nt.T)(Nn=>this.getTextContent(Nn,nn.maxPasteBuffer)),(0,$e.ZZ)(Nn=>this.sendClipboardContentInternal(Nn,Ke,F?.requestId))):(this.logger.info("Clipboard paste feature disabled due to user settings"),this.sendClipboardContentInternal(null,Ke,F?.requestId))):(this.logger.info("Clipboard paste feature disabled"),this.sendClipboardContentInternal(null,Ke,F?.requestId))),(0,Ze.M)(nn=>{this.distributedTracingUtilService.closeSpan(Ke),this.logger.info("Clipboard data sent",nn),this.telemetryUtilService.sendClipboardPasteEvent(this.desktopPasteTelemetry)}),(0,Ot.W)(nn=>(this.distributedTracingUtilService.setSpanAttribute(Ke,mn.NS.Error,!0),this.distributedTracingUtilService.closeSpan(Ke),this.logger.error("Error sending custom Message: ",nn),(0,Fe.of)(!1))))}willBeEnabledOnStreamStart(){return this.getClipboardFeatureConfig().pipe((0,nt.T)(F=>F?.isClipboardEnabled??!1),(0,a.s)(1))}getClipboardFeatureConfig(){const F={isClipboardEnabled:!1,maxPasteBuffer:0};return this.clipboardConfig?.isClipboardEnabled&&this.clipboardConfig?.maxPasteBuffer?this.checkReadPermissions().pipe((0,$e.ZZ)(Oe=>Oe!==sl.denied?this.settingsService.getSettingsData().pipe((0,nt.T)(Ke=>Ke?.clipboardPaste?this.clipboardConfig:F)):(0,Fe.of)(F))):(0,Fe.of)(null)}checkReadPermissions(){const F={name:"clipboard-read"};try{return(0,Do.H)(navigator.permissions.query(F)).pipe((0,nt.T)(Oe=>Oe.state),(0,Ot.W)(Oe=>(this.logger.error("Error reading clipboard permissions",Oe),(0,Fe.of)(sl.denied))))}catch{return this.logger.error("Error while reading browser clipboard permissions"),(0,Fe.of)(sl.denied)}}getTextContent(F,Oe){return new Blob([F]).size<=Oe?F:(this.logger.warn("Invalid text on clipboard"),null)}getClipboardCardString(F){return this.systemInfoService.getSystemInfo([m.Lu.DeviceType,m.Lu.OSName]).pipe((0,nt.T)(Oe=>Oe[m.Lu.DeviceType]===m.Y0.HMD&&Oe[m.Lu.OSName]===m.t_.Android?F?"settings.clipboardPaste.turnOffHMD":"settings.clipboardPaste.turnOnHMD":F?"settings.clipboardPaste.turnOff":"settings.clipboardPaste.turnOn"))}getClipboardCardData(){return this.isClipboardFeatureEnabled()?this.settingsService.getSettingsData().pipe((0,nt.T)(F=>this.createClipboardCardData(F))):(0,Fe.of)(null)}isClipboardFeatureEnabled(){return this.appConfig?.client?.clipboardConfig?.isClipboardEnabled??!1}createClipboardCardData(F){if(!F)return null;const Oe=F?.clipboardPaste??!1,Ke={pasteHotkey:this.appConfig?.client?.clipboardConfig?.hotkey};return{core:{headline:{text:"settings.clipboardPaste.title"},supportingText:[{text:this.getSupportingText(Oe),placeholders:Ke}]},trail:{elementType:M.I$.Switch,toggleState:Oe}}}getSupportingText(F,Oe=""){return"gamepad"===this.appConfig?.client?.clipboardConfig?.clipboardHintStringType?F?`settings.${Oe}clipboardPaste.turnOffHMD`:`settings.${Oe}clipboardPaste.turnOnHMD`:F?`settings.${Oe}clipboardPaste.turnOff`:`settings.${Oe}clipboardPaste.turnOn`}onClipboardPasteToggled(F){this.settingsService.storeChangedSettings({settingType:ar.oY.ClipboardPaste,selectedOption:F})}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.KVO(m.J6),g.KVO(yo.Vk),g.KVO(ar.h$),g.KVO(m.NZ),g.KVO(mn.Z1),g.KVO(bn.jgD),g.KVO(Mn.N),g.KVO(Mn.x),g.KVO(m.zW))}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})();s(13515);var Kl=s(65805),gd=s(7703),pd=(s(54250),s(43117));s(20038),new En("2.0.56.999"),s(70433),s(71780);let wd=(()=>{class it{constructor(){this.streamerConfig=new Ci.t(this.createStreamerConfigFromSearchParameters())}get activeConfig(){return(0,Zr.eJ)(this.streamerConfig.value)}set activeConfig(F){this.streamerConfig.next((0,Zr.eJ)(F))}get config$(){return this.streamerConfig.asObservable()}createStreamerConfigFromSearchParameters(){const F=window.location.hash;return(0,Pt.y1)(F)}static{this.\u0275fac=function(Oe){return new(Oe||it)}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})(),Rc=(()=>{class it{constructor(F,Oe){this.guestModeHelperService=F,this.oscEnabled=!!Oe.featureEnablement?.osc}isOscEnabled(){return this.guestModeHelperService.isGuestMode?this.oscEnabled&&this.guestModeHelperService.getGuestModeConfig()?.isOSCEnabled||this.guestModeHelperService.getForceTouchModeSettings()?.useOsc:this.oscEnabled}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.KVO(Mn.x),g.KVO(yo.Vk))}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})();var gc=s(63997);s(86703);var gs=s(56123),vd=s(352);class Qd{static mapOSNametoSessionControlDeviceOS(Ln){let F;switch(Ln){case m.t_.Windows:F=gs.DeviceOS.WINDOWS;break;case m.t_.MacOS:F=gs.DeviceOS.MACOS;break;case m.t_.Shield:F=gs.DeviceOS.SHIELD;break;case m.t_.Android:F=gs.DeviceOS.ANDROID;break;case m.t_.IOS:F=gs.DeviceOS.IOS;break;case m.t_.IPadOS:F=gs.DeviceOS.IPADOS;break;case m.t_.ChromeOS:F=gs.DeviceOS.CHROMEOS;break;case m.t_.Linux:F=gs.DeviceOS.LINUX;break;case m.t_.Tizen:F=gs.DeviceOS.TIZEN;break;case m.t_.WebOS:F=gs.DeviceOS.WEBOS;break;case m.t_.TvOS:F=gs.DeviceOS.TVOS;break;case m.t_.XBox:F=gs.DeviceOS.XBOX;break;case m.t_.SteamOS:F=gs.DeviceOS.STEAMOS;break;case m.t_.VisionOS:F=gs.DeviceOS.VISIONOS}return F}static mapDeviceTypetoSessionControlDeviceType(Ln){let F;switch(Ln){case m.Y0.Console:F=gs.DeviceType.CONSOLE;break;case m.Y0.Desktop:F=gs.DeviceType.DESKTOP;break;case m.Y0.HMD:F=gs.DeviceType.HMD;break;case m.Y0.Laptop:F=gs.DeviceType.LAPTOP;break;case m.Y0.Phone:F=gs.DeviceType.PHONE;break;case m.Y0.TV:F=gs.DeviceType.TV;break;case m.Y0.Tablet:F=gs.DeviceType.TABLET}return F}static mapNetworkTypeToRagnarokNetworkType(Ln){let F;switch(Ln){case m.Sd.Ethernet:F=gs.NetworkType.ETHERNET;break;case m.Sd.WiFi2_4:F=gs.NetworkType.WIFI_2_4;break;case m.Sd.WiFi5_0:F=gs.NetworkType.WIFI_5_0;break;case m.Sd.WiFi6_0:case m.Sd.Other:F=gs.NetworkType.OTHER;break;case m.Sd.Mobile:F=gs.NetworkType.MOBILE;break;case m.Sd.WiFiUnknown:F=gs.NetworkType.WIFI;break;case m.Sd.Mobile_2G:F=gs.NetworkType.MOBILE_2G;break;case m.Sd.Mobile_3G:F=gs.NetworkType.MOBILE_3G;break;case m.Sd.Mobile_4G:F=gs.NetworkType.MOBILE_4G;break;case m.Sd.Mobile_5G:F=gs.NetworkType.MOBILE_5G;break;case m.Sd.Wimax:F=gs.NetworkType.WIMAX;break;case m.Sd.Bluetooth:F=gs.NetworkType.BLUETOOTH;break;default:F=gs.NetworkType.UNKNOWN}return F}}function yu(it){return(0,Zr.Up)(it,"sessionId","appId","state")}function Dc(it,Ln){return{...yu(it),timestamp:Ln}}function mh(it,Ln){return it.appId===Ln.appId&&it.sessionId===Ln.sessionId&&it.state===Ln.state}class Zd{constructor(){this._resumableSessions=[],this.change=new _.B7}get resumableSessions(){return this._resumableSessions}get changed$(){return this.change.asObservable()}cache(Ln){if(!(0,gs.isResumableSessionState)(Ln.state))return void this.remove(Ln.sessionId);const F=this._resumableSessions.findIndex(Oe=>Oe.sessionId===Ln.sessionId);-1===F?(this._resumableSessions.push(Dc(Ln,Date.now())),this.change.next()):mh(this._resumableSessions[F],Ln)||(Object.assign(this._resumableSessions[F],yu(Ln)),this.change.next())}remove(Ln){const F=this._resumableSessions.findIndex(Oe=>Oe.sessionId===Ln);-1!==F&&(this._resumableSessions.splice(F,1),this.change.next())}replaceAll(Ln){const F=Ln.filter(Oe=>(0,gs.isResumableSessionState)(Oe.state));if(!function Mu(it,Ln){return it.length===Ln.length&&it.every(F=>Ln.some(Oe=>mh(F,Oe)))}(this._resumableSessions,F)){const Oe=this._resumableSessions;this._resumableSessions=F.map(Ke=>{const nn=Oe.find(Nn=>Nn.sessionId===Ke.sessionId)?.timestamp;return Dc(Ke,nn??Date.now())}),this.change.next()}}clear(){this.replaceAll([])}}let ng=(()=>{class it{get resumableSessions(){return this.resumableSessionCache.resumableSessions}get resumableSessionsChanged$(){return this.resumableSessionCache.changed$}markSessionUnresumable(F){this.resumableSessionCache.remove(F)}clearResumableSessions(){this.resumableSessionCache.clear()}constructor(F,Oe,Ke,nn,Nn,_i,Wi,or,Hr,Mo,aa){if(this.zone=Oe,this.systemInfoService=Ke,this.appConfig=nn,this.distributedTracing=Nn,this.idmService=_i,this.libLoggingService=Wi,this.gfnSdkService=or,this.userConsentService=Hr,this.clientHeaderService=Mo,this.guestModeHelperService=aa,this.resumableSessionCache=new Zd,this.eventDataElements={},this.logCallback=ko=>{this.libLoggingService.sendLog({logLevel:ko.level,logStr:ko.message,logTag:ko.tag,timeStamp:ko.timestamp})},this.logger=F.getLogger("gfn/sessionManager"),vd.Logger.register(this.logCallback),this.isGuestAppFlow=this.guestModeHelperService.isGuestAppFlow(),this.appConfig?.sessionManagementConfig?.useCustomHttp){const ko=(0,g.WQX)(m.Xz);this.customFetch=new m.Ui(F,ko).customFetchInterface}this.userConsentService.getEventDataElements$().subscribe(ko=>{this.eventDataElements.commonData={...this.eventDataElements.commonData,...ko.commonData},this.eventDataElements?.commonData?.gdprFuncOptIn&&this.eventDataElements?.commonData?.clientId&&this.configureTelemetry(this.eventDataElements.commonData)})}configureSessionSettings(F){return this.logger.info("configureSessionSettings"),this.zone.runOutsideAngular(()=>(0,gc.v)(()=>((0,gs.configureSessionControlSettings)(F),(0,Fe.of)(!0))))}initialize(F){return this.zone.runOutsideAngular(()=>this.initializeInternal(F))}start(F,Oe,Ke){return this.zone.runOutsideAngular(()=>this.startOrResumeInternal(void 0,F,Oe,this.extractSpanData(Ke),Ke?.abortController))}resume(F,Oe,Ke,nn){return this.zone.runOutsideAngular(()=>this.startOrResumeInternal(F,Oe,Ke,this.extractSpanData(nn),nn?.abortController))}stop(F,Oe){return this.zone.runOutsideAngular(()=>this.stopInternal(F))}updateAdState(F,Oe){return this.zone.runOutsideAngular(()=>(this.logger.info("updateAdState"),this.distributedTracing.runWithinSpanContext(Oe,()=>{const Ke=this.sessionControl.updateAdState(F);return this.logger.info("updateAdState result:",Ke),(0,Fe.of)(Ke===gs.ScErrorCode.Success)})))}updateEventInfoGuids(F,Oe,Ke){return(0,gc.v)(()=>(this.telemetryEventIds={streamingProfileGuid:F,systemInfoGuid:Oe,networkSessionId:Ke||""},vd.TelemetryModule.setTelemetryEventIds(this.telemetryEventIds),(0,Fe.of)(!0)))}getActiveSessions(F){return this.zone.runOutsideAngular(()=>this.getActiveSessionsInternal(this.extractSpanData(F),F?.abortController))}getSessionInfo(F,Oe){return this.zone.runOutsideAngular(()=>(this.logger.info("getSessionInfo"),(0,gc.v)(()=>this.distributedTracing.runWithinSpanContext(this.extractSpanData(Oe),()=>(0,Do.H)(this.sessionControl.getSessionInfo(F,Oe?.abortController)).pipe((0,Ze.M)(nn=>{this.logger.info("getSessionInfo sessionInfoResult: ",nn),nn.code===gs.ScErrorCode.Success&&nn.session?this.resumableSessionCache.cache(nn.session):nn.code===gs.ScErrorCode.SessionTerminatedByAnotherClient&&this.resumableSessionCache.remove(F)}))))))}getAuthHeader(F){return new Promise((Oe,Ke)=>{this.logger.info("getAuthHeader: ",F),F&&this.isGuestAppFlow?(this.logger.info("Rejecting because we do not support refreshing for GDN"),Ke("we do not support refreshing for GDN")):this.getAuthInfo(!!F).pipe((0,Ze.M)(nn=>{this.logger.info("Resolving with result"),Oe(nn)},nn=>Ke("getAuthInfo failed with "+nn)),(0,a.s)(1)).subscribe()})}getAuthInfo(F=!1){return(0,gc.v)(()=>this.gfnSdkService.getAuthInfo().pipe((0,$e.ZZ)(Oe=>Oe.authType===Pi.hT.JWT?(0,Fe.of)("GFNPartnerJWT auth="+Oe.authToken):this.idmService.getAuthToken(F).pipe((0,$e.ZZ)(Ke=>(0,Fe.of)("GFNJWT "+Ke.token))))))}monitorAndNotifyNetworkType(F){this.getNetworkInfo?.unsubscribe(),this.getNetworkInfo=this.systemInfoService.getSystemInfo([m.Lu.Network]).pipe((0,va.F)()).subscribe(Oe=>{this.logger.info("Network info changed: ",Oe?.Network?.NetworkType),F.setNetworkType(Qd.mapNetworkTypeToRagnarokNetworkType(Oe?.Network?.NetworkType))})}getInitializeParameters(F){return(0,bi.zV)([this.systemInfoService.getSystemInfo([m.Lu.Platform,m.Lu.OSName,m.Lu.BrowserName,m.Lu.OSVersion,m.Lu.Make,m.Lu.Model,m.Lu.DeviceId,m.Lu.DeviceType,m.Lu.VendorName,m.Lu.OSVersion]),this.getClientHeaders(),this.getDeviceOSAndDeviceType()]).pipe((0,nt.T)(([Ke,nn,Nn])=>{this.logger.info("systemInfo: ",Ke),this.logger.info("device os and device type: ",Nn.os,Nn.type);const _i=this.createInitializeParams(F,nn,Ke,Nn);return this.logger.info("initParams to be sent for createSessionControl call:",_i),_i}))}updateServerAddressIfNeeded(F){this.serverAddress!==F&&(this.logger.info("Updating server address in SessionControl"),this.sessionControl.setDefaultServerAddress(F),this.serverAddress=F)}initializeInternal(F){return this.sessionControl?(this.updateServerAddressIfNeeded(F),(0,Fe.of)(!0)):this.getInitializeParameters(F).pipe((0,a.s)(1),(0,nt.T)(Oe=>(this.sessionControl?this.updateServerAddressIfNeeded(F):(this.logger.info("Creating SessionControl"),this.sessionControl=(0,gs.createSessionControl)(Oe),this.serverAddress=F,this.monitorAndNotifyNetworkType(this.sessionControl)),!0)))}configureTelemetry(F){this.logger.info("configureTelemetry"),vd.TelemetryModule.configure({clientVariant:F.clientVariant,clientType:F.clientType,clientVer:F.clientVer,productName:F.productName,productVersion:F.productVersion},{deviceId:F.deviceId,deviceOS:F.deviceOS,deviceOSVersion:F.deviceOSVersion,deviceType:F.deviceType,deviceModel:F.deviceModel,deviceMake:F.deviceMake,browserType:F.browserType},this.appConfig?.jsEvents.server+"/"+this.appConfig?.jsEvents?.version+"/events/json"),vd.TelemetryModule.updateClientCommonData({userId:F.userId,externalUserId:F.externalUserId,idpId:F.idpId},{deviceGdprFuncOptIn:F.deviceGdprFuncOptIn,deviceGdprTechOptIn:F.deviceGdprTechOptIn,deviceGdprBehOptIn:F.deviceGdprBehOptIn},{gdprFuncOptIn:F.gdprFuncOptIn,gdprTechOptIn:F.gdprTechOptIn,gdprBehOptIn:F.gdprBehOptIn},F.integrationId)}getClientHeaders(){return this.clientHeaderService.getCommonHeaders({withClientId:"lcars"}).pipe((0,nt.T)(F=>{const Oe=new Map;return Object.entries(F).forEach(([Ke,nn])=>{Oe.set(Ke,nn instanceof Array?nn[0]:nn)}),Oe}))}getDeviceOSAndDeviceType(){return this.appConfig?.featureEnablement?.supportsGetSystemInfoHeaders?this.systemInfoService.getClientHeadersInfo().pipe((0,nt.T)(F=>({os:gs.DeviceOS[F.OSName],type:gs.DeviceType[F.DeviceType]}))):this.systemInfoService.getSystemInfo([m.Lu.OSName,m.Lu.DeviceType]).pipe((0,nt.T)(F=>({os:Qd.mapOSNametoSessionControlDeviceOS(F.OSName),type:Qd.mapDeviceTypetoSessionControlDeviceType(F.DeviceType)})))}startOrResumeInternal(F,Oe,Ke,nn,Nn){return(0,gc.v)(()=>this.distributedTracing.runWithinSpanContext(nn,()=>{const _i=!!F;return(0,Do.H)(_i?this.sessionControl.resumeSession(F,Oe,Nn,Ke):this.sessionControl.startSession(Oe,Nn,Ke)).pipe((0,Ze.M)(or=>{this.logger.info(`sessionStartResumeResult from sessionControl ${_i?"resume":"start"}Session: `,or),or.code===gs.ScErrorCode.Success?(or.session&&this.resumableSessionCache.cache(or.session),or.activeSessions&&or.activeSessions.forEach(Hr=>this.resumableSessionCache.cache(Hr))):_i&&or.session&&!(0,gs.isResumableSessionState)(or.session.state)&&this.resumableSessionCache.remove(F),(0,gs.isCancelCode)(or.code)&&this.handleStartResumeSessionCancel(or)}))}))}stopInternal(F){return this.logger.info("stopInternal"),(0,gc.v)(()=>(0,Do.H)(this.sessionControl.deleteSession(F))).pipe((0,Ze.M)(Ke=>{this.logger.info("session deleted ",Ke),(Ke===gs.ScErrorCode.Success||Ke===gs.ScErrorCode.InvalidSessionIdNotFound)&&this.resumableSessionCache.remove(F)},Ke=>{this.logger.error("session delete failure",Ke)}))}getActiveSessionsInternal(F,Oe){return this.logger.info("getActiveSessions"),(0,gc.v)(()=>this.distributedTracing.runWithinSpanContext(F,()=>(0,Do.H)(this.sessionControl.getActiveSessions(Oe)).pipe((0,Ze.M)(nn=>{nn.code===gs.ScErrorCode.Success&&this.resumableSessionCache.replaceAll(nn.activeSessions??[])}))))}createInitializeParams(F,Oe,Ke,nn){return{serverAddress:F,deviceId:Ke.DeviceId,clientAppVersion:this.appConfig.build.version,clientHeaders:Oe,deviceOsVer:Ke.OSVersion,deviceMake:Ke.Make,deviceModel:Ke.Model,deviceOs:nn.os,deviceType:nn.type,clientType:this.appConfig?.client.clientTypeNative?gs.ClientType.NATIVE:gs.ClientType.BROWSER,clientStreamer:this.appConfig?.client.clientStreamerClassic?gs.ClientStreamer.CLASSIC:gs.ClientStreamer.WEBRTC,clientId:this.appConfig?.lcars?.clientId,clientPlatformName:this.appConfig?.sessionManagementConfig.clientPlatformName??Ke.OSName,browserType:Ke.BrowserName,authenticationProvider:{getAuthHeader:this.getAuthHeader.bind(this)},customFetch:this.customFetch}}handleStartResumeSessionCancel(F){this.logger.info("handleStartResumeSessionCancel: ",F),F.session?.sessionId&&(this.logger.info("sendDeleteRequest from session setup cancel:",F.code),this.sessionControl.deleteSession(F.session?.sessionId))}extractSpanData(F){return F?.spanData?F.spanData:F?.span?this.distributedTracing.extractContextFromSpan(F.span):{}}static{this.\u0275fac=function(Oe){return new(Oe||it)(g.KVO(m.J6),g.KVO(g.SKi),g.KVO(m.zW),g.KVO(yo.Vk),g.KVO(mn.Z1),g.KVO(jr.k_),g.KVO(m.wt),g.KVO(Pi.DL),g.KVO(rn.F),g.KVO(go.y1),g.KVO(Mn.x))}}static{this.\u0275prov=g.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})()},25167:(Bt,z,s)=>{"use strict";s.d(z,{s:()=>M});var n=s(58527),l=s(80583),d=s(31315),v=s(43848),S=s(35146),y=s(25590),f=s(65706),O=s(83915),P=s(20924),_=s(99469),i=s(89284),r=s(27862),a=s(25216),c=s(16706),m=s(78812);let M=(()=>{class D{constructor(U,V,T,N,L,E,g,R,B,X,H,J,re,ie,ve,ue){this.telemetryService=T,this.streamerConfigService=N,this.streamingManagerService=L,this.networkConfigurationService=E,this.streamingProfileService=g,this.bridgeService=R,this.networkTestService=B,this.serverRoutingService=X,this.gameLaunchAnalyticsService=H,this.routerService=J,this.guestModeHelperService=re,this.ownershipSyncService=ie,this.ecommerceService=ve,this.sharedSettingsService=ue,this.oobeShown=!1,this.gameLaunchStepList=[a.H.UpdateCheck,a.H.PreStreaming,a.H.Authentication,a.H.PlatformSelection,a.H.AccountLinking,a.H.Authorization,a.H.NetworkTest,a.H.Loading],this.overlappingDurations=[i.iVs.Lbr,i.iVs.SessionQueue],this.seatSetupDurations=[i.iVs.StreamerClientSetupDuration,i.iVs.StreamerConnectionDuration,i.iVs.SeatConfigDuration,i.iVs.StreamingStartDuration,i.iVs.SessionQueue],this.seatSetupOverlappingDurations=[i.iVs.StreamerConnectionDuration,i.iVs.SeatConfigDuration,i.iVs.SessionQueue],this.gameFeatureState=[{name:"",state:""}],this.seatSetupSequence$=new l.B7,this.seatSetupSequenceCount=[],this.logger=U.getLogger("gameSessionAnalyticsService"),this.resetNetworkTestResult(),this.resetResumeFlags(),this.resetGameLaunchDurationsMatrix(),this.resetdialogInteractionDurations(),this.routerService.onExitingStreamer.subscribe(se=>{se&&this.cleanupGameLaunchMetrics()}),this.seatSetupEventSequence=[],this.recordAndLogSeatSetupSequence(),V.featureEnablement?.useGridServer2&&(this.sessionManagerService=(0,n.WQX)(i.PbG))}resetNetworkTestResult(){this.networkTestUIResult=i.qH9.Unknown}resetResumeFlags(){this.wasStartedWithResume=!1,this.resumeType=i.yEy.None}getStreamingManagerCallbacks(U){return{callbackContext:this,onStateBegin:()=>{},onStateEnd:this.generateCallback(U).bind(this),onTerminalError:V=>this.onErrorState(U,V)}}initGameSessionAnalytics(){this.gameLaunchStepList.forEach(U=>{this.streamingManagerService.register(U,this.getStreamingManagerCallbacks(U))}),this.networkTestService.lbrState.subscribe(U=>{this.streamingManagerService.inActiveState()?U===i.Kfi.Started?this.startGameLaunchDuration(i.iVs.Lbr):U===i.Kfi.Finished&&this.stopGameLaunchDuration(i.iVs.Lbr):this.logger.info("Skipping LBR duation measrement since not triggered from Game Launch path")})}handleGeronimoLaunchResult(U,V=""){this.sendGameLaunchDurationEvent(U,V)}nextSeatSeatupEvent(U,V){this.seatSetupSequence$.next([U,V])}recordAndLogSeatSetupSequence(){this.seatSetupSequence$.subscribe(([U,V])=>{V?(this.logger.info("Seat setup sequence and count is ",this.seatSetupSequenceCount),this.seatSetupSequenceCount=[]):0!==this.seatSetupSequenceCount.length&&this.seatSetupSequenceCount.slice(-1)[0][0]!==U||0===this.seatSetupSequenceCount.length?this.seatSetupSequenceCount.push([U,1]):this.seatSetupSequenceCount[this.seatSetupSequenceCount.length-1][1]+=1})}handleGameLaunchFailure(U){this.sendGameLaunchDurationEvent(U)}updateGameLaunchDurations(U,V){this.updateSeatSetupEventSequence(V),this.stopGameLaunchDuration(U),V?(this.seatSetupOverlappingDurations.includes(V)&&this.gameLaunchDurations.get(V).duration&&(this.gameLaunchDurations.get(V).previousDurationCarry=this.gameLaunchDurations.get(V).duration),this.gameLaunchDurations.get(V).start=Date.now()):this.logger.info("Game launch durations measured upto session start: ",this.gameLaunchDurations)}moveGameLaunchDuration(U,V){this.gameLaunchDurations.get(U).start=this.gameLaunchDurations.get(V).start,this.gameLaunchDurations.get(U).duration=this.gameLaunchDurations.get(V).duration,this.gameLaunchDurations.get(V).start=0,this.gameLaunchDurations.get(V).duration=0}startGameLaunchDuration(U){U===i.iVs.StreamerClientSetupDuration&&(this.seatSetupEventSequence=[],this.updateSeatSetupEventSequence(i.iVs.StreamerClientSetupDuration)),this.gameLaunchDurations.get(U).start&&this.resetGameLaunchDuration(U),this.logger.info("starting game launch step duration",U),this.gameLaunchDurations.get(U).start=U===i.iVs.StreamerJsInit?window.jsInitStartTs:Date.now()}stopGameLaunchDuration(U){const V=this.gameLaunchDurations.get(U).start;this.logger.info("Current step: ",U," , Time stamp: ",V),this.gameLaunchDurations.get(U).duration=0!==V?Date.now()-V:0,this.seatSetupOverlappingDurations.includes(U)&&this.gameLaunchDurations.get(U).previousDurationCarry&&(this.gameLaunchDurations.get(U).duration+=this.gameLaunchDurations.get(U).previousDurationCarry,this.gameLaunchDurations.get(U).previousDurationCarry=0),this.logger.info("Game launch duration for ",U," is: ",this.gameLaunchDurations.get(U).duration)}resetGameLaunchDuration(U){this.logger.info("reset game launch duration for step: ",U),this.gameLaunchDurations.get(U).duration=0,this.gameLaunchDurations.get(U).start=0,this.gameLaunchDurations.get(U).previousDurationCarry=0}setIsOobeShown(U){this.oobeShown=U}setDialogInteractionDuration(U,V){this.dialogInteractionDurations.set(U,V)}setNetworkTestUIResult(U){this.networkTestUIResult=U}setAuthenticationStatus(U){this.authenticationStatus=U}setWasStartedWithResume(U){this.wasStartedWithResume=U}setResumeType(U){this.resumeType=U}getVSyncMode(U){return U===i._RN.ValueAdaptive.value?i.HjG.Adaptive:U===i._RN.ValueOn.value?i.HjG.On:i.HjG.Off}sendStreamingProfileEvent(){(0,d.zV)([this.streamingProfileService.getStreamingProfile(),this.sharedSettingsService.persistInGameGraphicsEnabled()]).pipe((0,y.E)(this.streamingProfileService.getStreamingProfileGuid()),(0,f.s)(1)).subscribe(([[U,V],T])=>{const N={profileName:U.name,resolutionHeight:U.height,resolutionWidth:U.width,aspectRatio:U.aspectRatio,framerate:U.fps,maxBitrate:U.maxBitrate,DRC:U.drc?i.T80.TRUE:i.T80.FALSE,vSyncSetting:this.getVSyncMode(U.vSync),streamingProfileGuid:T,hdrEnabled:U.hdrStreaming?i.T80.TRUE:i.T80.FALSE,hdrStreamingMode:U.hdrStreamingMode,reflexEnabled:U.reflex?i.T80.TRUE:i.T80.FALSE,cloudGsyncEnabled:U.cloudGsync?i.T80.TRUE:i.T80.FALSE,inGameGraphicsSetting:V?i.T80.TRUE:i.T80.FALSE,audioChannelCount:U.audioMode,l4sEnabled:U.l4sEnabled?i.T80.TRUE:i.T80.FALSE,bitDepth:U?.bitDepth??i.BxN.value};this.telemetryService.push(new i.HOo(N))},U=>{this.logger.error("Failed to get streaming profile settings: ",U)})}resetGameLaunchDurationsMatrix(){this.seatSetupEventSequence=[],this.gameLaunchDurations=new Map;for(const U in i.iVs)this.gameLaunchDurations.hasOwnProperty(U)||this.gameLaunchDurations.set(i.iVs[U],{start:0,duration:0,previousDurationCarry:0})}resetdialogInteractionDurations(){this.dialogInteractionDurations=new Map;for(const U in r.U)this.dialogInteractionDurations.hasOwnProperty(U)||this.dialogInteractionDurations.set(r.U[U],0)}calculateLaunchDuration(){const U=this.gameLaunchAnalyticsService.getGameLaunchMetadata(),V=U.launchTs,T=this.gameLaunchDurations.get(i.iVs.StreamerJsInit).start;this.logger.info("initiallaunchts",V,"currentTs",Date.now());const N=this.streamerConfigService.activeConfig.launchSource;if(_.zk.isCefPlatform()){let L=0,E=0;return this.logger.info("Mall is running:",U.isMallRunning),U.isMallRunning?(this.isWarmLaunch=!0,E=0,L=N===i.vhU.GeForceNOW||U.isFromGameChangeDialog?0:T-V,this.updateGameLaunchStartupDurations({start:V,duration:E,previousDurationCarry:0}),(0,v.of)(L)):this.bridgeService.executeCommand(P.Ts.Common.Applicationinfo.GetApplicationTimeInfo,{type:P.Or.Common.Applicationinfo.ApplicationTimeType.Launch}).pipe((0,O.T)(g=>(this.isWarmLaunch=g.isWarmLaunch||!1,this.logger.info("applaunchtimeinfo",g),U.isFromGameChangeDialog||(V>0&&V>g.startTime&&(E=V-g.startTime),L=T-g.startTime),this.updateGameLaunchStartupDurations({start:V,duration:E,previousDurationCarry:0},{start:g.startTime,duration:L,previousDurationCarry:0}),L)))}return 0!==V&&this.updateGameLaunchStartupDurations({start:V,duration:T-V,previousDurationCarry:0}),(0,v.of)(0)}updateGameLaunchStartupDurations(U,V){U&&(this.gameLaunchDurations.get(i.iVs.InitialLaunch).start=U.start,this.gameLaunchDurations.get(i.iVs.InitialLaunch).duration=U.duration),V&&(this.gameLaunchDurations.get(i.iVs.StreamerCefInit).start=V.start,this.gameLaunchDurations.get(i.iVs.StreamerCefInit).duration=V.duration)}onErrorState(U,V){if(U===V.errorSourceState)switch(V.errorSourceState){case a.H.Authentication:this.logger.info(`Error ${V.errorData.errorCode} occured on state Authentication`),this.sendGameLaunchSourceInfoTelemetry();break;case a.H.Authorization:{this.logger.info(`Error ${V.errorData.errorCode} occured on state Authorization`);const T={isResume:!1,status:V.errorData.errorCode===c._U.NotEntitled?i.fbu.NesNotEntitled:i.fbu.NesAuthFailed,errorDetails:V.errorData.errorCode.toString()};this.sendGameLaunchDurationEvent(T);break}}}generateCallback(U){return()=>{this.onStateEndInternal(U)}}onStateEndInternal(U){switch(U){case a.H.Init:this.startGameLaunchDuration(i.iVs.UpdateCheck);break;case a.H.UpdateCheck:this.updateGameLaunchDurations(i.iVs.UpdateCheck,i.iVs.PreStreaming);break;case a.H.PreStreaming:{this.stopGameLaunchDuration(i.iVs.PreStreaming);const V=Date.now();this.gameLaunchDurations.get(i.iVs.ManualLoginEntry).start=V,this.gameLaunchDurations.get(i.iVs.AutoLogin).start=V;break}case a.H.Authentication:this.authenticationStatus!==r.J.AUTO_LOGIN?(this.resetGameLaunchDuration(i.iVs.AutoLogin),this.updateGameLaunchDurations(i.iVs.ManualLoginEntry,i.iVs.PlatformSelection)):(this.resetGameLaunchDuration(i.iVs.ManualLoginEntry),this.updateGameLaunchDurations(i.iVs.AutoLogin,i.iVs.PlatformSelection)),this.sendGameLaunchSourceInfoTelemetry();break;case a.H.PlatformSelection:this.updateGameLaunchDurations(i.iVs.PlatformSelection,i.iVs.AccountLinking);break;case a.H.AccountLinking:this.updateGameLaunchDurations(i.iVs.AccountLinking,i.iVs.NesAuthorization);break;case a.H.Authorization:this.updateGameLaunchDurations(i.iVs.NesAuthorization,i.iVs.NetworkTest);break;case a.H.NetworkTest:this.updateGameLaunchDurations(i.iVs.NetworkTest,i.iVs.StartSession),this.startGameLaunchDuration(i.iVs.StreamerClientSetupDuration);break;case a.H.Loading:this.sendStreamingProfileEvent()}}updateSeatSetupEventSequence(U){this.seatSetupDurations.includes(U)&&this.seatSetupEventSequence.push(U)}getSeatSetupEventSequence(){return this.seatSetupEventSequence}resetSeatSetupEventSequence(U){U?(this.seatSetupEventSequence=[],this.resetGameLaunchDuration(i.iVs.StreamerClientSetupDuration),this.resetGameLaunchDuration(i.iVs.StreamerConnectionDuration),this.resetGameLaunchDuration(i.iVs.SeatConfigDuration),this.resetGameLaunchDuration(i.iVs.StreamingStartDuration)):this.seatSetupEventSequence.length>=1&&this.updateGameLaunchDurations(this.seatSetupEventSequence[this.seatSetupEventSequence.length-1],void 0)}setGameFeatureState(U){this.logger.info("Game feature updated",U),this.gameFeatureState=U}getAccountLinksData(){const U=this.ownershipSyncService.getAccountLinkingAnalyticsInfo(),V=[];for(const T of U)T.isAccountSyncSupported?V.push(T.providerType+(T.isSynced?"_SYNCED":"_UNSYNCED")):T.isAccountLinkingSsoAvailable&&V.push(T.providerType+(T.isAccountLinked?"_LINKED":"_UNLINKED"));return V}sendGameLaunchSourceInfoTelemetry(){const U=this.streamerConfigService.activeConfig.shortName??"",V=this.streamerConfigService.activeConfig.launchSource;this.logger.info("Game launch source for game: ",U," is :",V);const T=this.streamerConfigService.activeConfig.cmsId;let N;T&&this.sessionManagerService&&(N=this.sessionManagerService.resumableSessions.find(E=>E.appId===T));const L=N?.timestamp>0?Date.now()-N.timestamp:0;(0,S.yU)(this.telemetryService.getDefaultClientConsentObserable(),this.telemetryService.getCommonDataObservable()).subscribe(E=>{this.logger.info("Sending Game launch event for game: ",U);const g=this.guestModeHelperService.isGuestMode?{useBeacon:!0}:null;this.telemetryService.push(new i.RXY({gameShortName:U,gameLaunchSource:V,accountLinks:this.getAccountLinksData(),isResume:N?i.T80.TRUE:i.T80.FALSE,streamSessionId:N?.sessionId??"",clientPerceivedSessionTimeMs:L}),null,g)})}getNetworkTestDuration(){const U=this.gameLaunchDurations.get(i.iVs.NetworkTest).duration,V=this.gameLaunchDurations.get(i.iVs.Lbr).duration;return U>0?U-V:0}getStartSessionDuration(){const U=this.gameLaunchDurations.get(i.iVs.StartSession).duration,V=this.gameLaunchDurations.get(i.iVs.SessionQueue).duration;return U>0?U-V:0}getTotalGameLaunchDuration(){let U=0;return this.gameLaunchDurations.forEach((V,T)=>{!this.overlappingDurations.includes(T)&&!this.seatSetupEventSequence.includes(T)&&(U+=V.duration)}),U-=this.getTotaldialogInteractionDuration(),Math.round(U)}getTotaldialogInteractionDuration(){let U=0;return this.dialogInteractionDurations.forEach(V=>{U+=V}),U}getGameLaunchTelemetryStatus(U){return U&&Object.values(i.fbu).includes(U.status)?U.status:i.fbu.Success}sendGameLaunchDurationEvent(U,V=""){const T=this.streamerConfigService.activeConfig.shortName??"",N=this.streamerConfigService.activeConfig.launchSource,L=this.gameLaunchAnalyticsService.getGameLaunchMetadata(),E=L.shortName;if(this.logger.info(`Sending game launch metrics for game: ${T}, game in `,`metadata: ${E}, and game was launched via ${N}.`),E&&E!==T&&N!==i.vhU.External&&N!==i.vhU.Deeplink)return this.logger.error(`Event not sent! Game launched: ${T}, is different from the game launch info in `,`memory: ${E}, and game was launched via mallclient.`),void this.cleanupGameLaunchMetrics();const g=this.calculateLaunchDuration(),R=this.networkConfigurationService.getNetworkOverride();(0,S.yU)(R,g).pipe((0,f.s)(1)).subscribe(([B,X])=>{const H=i.iVs,J=new i.GSb({lbrDuration:this.gameLaunchDurations.get(H.Lbr).duration,initialLaunchDuration:this.gameLaunchDurations.get(H.InitialLaunch).duration,totalLaunchDuration:this.getTotalGameLaunchDuration(),platformSelectionDuration:this.gameLaunchDurations.get(H.PlatformSelection).duration-this.dialogInteractionDurations.get(r.U.PlatformSelection),accountLinkingDuration:this.gameLaunchDurations.get(H.AccountLinking).duration-this.dialogInteractionDurations.get(r.U.AccountLinking),nesAuthorizationDuration:this.gameLaunchDurations.get(H.NesAuthorization).duration,geronimoLaunchDuration:0,manualLoginEntryDuration:this.gameLaunchDurations.get(H.ManualLoginEntry).duration,lbrRun:this.serverRoutingService.isLbrRun?i.T80.TRUE:i.T80.FALSE,resumeType:this.resumeType,networkTestDuration:this.getNetworkTestDuration(),wasStartedWithResume:this.wasStartedWithResume?i.T80.TRUE:i.T80.FALSE,isResume:U&&!0===U.isResume?i.T80.TRUE:i.T80.FALSE,networkTestUiResult:this.networkTestUIResult,accountLinked:this.streamerConfigService.activeConfig.accountLinked?i.T80.TRUE:i.T80.FALSE,overrideActive:B?i.T80.TRUE:i.T80.FALSE,sessionCleanupDuration:this.gameLaunchDurations.get(H.SessionCleanup).duration-this.dialogInteractionDurations.get(r.U.SessionCleanupConfirmation),sessionQueueDuration:this.gameLaunchDurations.get(H.SessionQueue).duration,autoLoginDuration:this.gameLaunchDurations.get(H.AutoLogin).duration,streamerCefStartupDuration:this.gameLaunchDurations.get(H.StreamerCefInit).duration,networkTestRun:this.networkTestService.isNetworkTestRun?i.T80.TRUE:i.T80.FALSE,gameLaunchSource:N,oobeShown:this.oobeShown?i.T80.TRUE:i.T80.FALSE,isWarmLaunch:this.isWarmLaunch?i.T80.TRUE:i.T80.FALSE,streamerJsStartupDuration:this.gameLaunchDurations.get(H.StreamerJsInit).duration,sessionId:V||"",oobeCheckDuration:this.gameLaunchDurations.get(H.PreStreaming).duration,startSessionDuration:this.getStartSessionDuration(),overrideZone:B?.address??"",isFromGameChangeDialog:L.isFromGameChangeDialog?i.T80.TRUE:i.T80.FALSE,gameShortName:T,updateCheckDuration:this.gameLaunchDurations.get(H.UpdateCheck).duration,status:this.getGameLaunchTelemetryStatus(U),errorDetails:U?U.errorDetails:"",streamerClientSetupDuration:this.gameLaunchDurations.get(i.iVs.StreamerClientSetupDuration).duration,streamerConnectionDuration:this.gameLaunchDurations.get(i.iVs.StreamerConnectionDuration).duration,seatConfigDuration:this.gameLaunchDurations.get(i.iVs.SeatConfigDuration).duration,streamingStartDuration:this.gameLaunchDurations.get(i.iVs.StreamingStartDuration).duration,featuresState:this.gameFeatureState,accountLinks:this.getAccountLinksData(),remainingPlaytimeState:this.ecommerceService.isLimitedState?i.BEl.Limited:i.BEl.Full,storeName:this.streamerConfigService.activeConfig?.storeName??"UNKNOWN"});this.logger.info("Printing seat setup event sequence ",this.seatSetupEventSequence),this.telemetryService.push(J,null,this.guestModeHelperService.isGuestMode?{useBeacon:!0}:null),this.cleanupGameLaunchMetrics()})}cleanupGameLaunchMetrics(){this.serverRoutingService.resetLbrStatus(),this.networkTestService.resetNetworkTestStatus(),this.resetNetworkTestResult(),this.resetResumeFlags(),this.resetGameLaunchDurationsMatrix(),this.gameLaunchAnalyticsService.resetGameLaunchMetadata(!0),this.resetdialogInteractionDurations()}static{this.\u0275fac=function(V){return new(V||D)(n.KVO(_.J6),n.KVO(i.Vk6),n.KVO(m.H0),n.KVO(i.zi2),n.KVO(a.cp),n.KVO(i.uUB),n.KVO(i.xfC),n.KVO(_.NZ),n.KVO(i.qIF),n.KVO(i.bo5),n.KVO(i.$w$),n.KVO(i.HMi),n.KVO(i.xDS),n.KVO(i.Itz),n.KVO(i.yJU),n.KVO(i.h$Q))}}static{this.\u0275prov=n.jDH({token:D,factory:D.\u0275fac,providedIn:"root"})}}return D})()},27862:(Bt,z,s)=>{"use strict";s.d(z,{J:()=>n,U:()=>l});var n=function(d){return d[d.AUTO_LOGIN=0]="AUTO_LOGIN",d[d.MANUAL_LOGIN=1]="MANUAL_LOGIN",d[d.EMAIL_VERIFICATION=2]="EMAIL_VERIFICATION",d}(n||{}),l=function(d){return d.PlatformSelection="platformSelection",d.AccountLinking="accountLinking",d.PermissionsBarrier="permissionsBarrier",d.BrowserSupportCheck="browserSupportCheck",d.SessionCleanupConfirmation="sessionCleanupConfirmation",d}(l||{})},97663:(Bt,z,s)=>{"use strict";s.d(z,{z:()=>P});var n=s(6478),l=s(25216),d=s(26875),S=s(89284),y=s(58527),f=s(99469),O=s(78812);let P=(()=>{class _{constructor(r,a,c,m,M){this.streamingManagerService=a,this.distributedTracingUtilService=c,this.networkConfigurationService=m,this.telemetryService=M,this.gameLaunchStepList=[l.H.UpdateCheck,l.H.PreStreaming,l.H.Authentication,l.H.PlatformSelection,l.H.AccountLinking,l.H.Authorization,l.H.NetworkTest,l.H.Loading],this.logger=r.getLogger("gameSessionDistributedTracingService"),this.streamerStateToSpanMap=new Map}getSpanName(r){switch(r){case l.H.UpdateCheck:return n.pB.UpdateCheck;case l.H.PreStreaming:return n.pB.PreStreaming;case l.H.Authentication:return n.pB.StreamerAuthentication;case l.H.PlatformSelection:return n.pB.PlatformSelection;case l.H.AccountLinking:return n.pB.AccountLinking;case l.H.Authorization:return n.pB.StreamerAuthorization;case l.H.NetworkTest:return n.pB.StreamerNetworktest;case l.H.Loading:return n.pB.SessionLoading;default:return r.name}}getStreamingManagerCallbacks(r){return{callbackContext:this,onStateBegin:this.generateBeginStateCallback(r).bind(this),onStateEnd:this.generateEndStateCallback(r).bind(this),onTerminalError:a=>this.onErrorState(r,a)}}generateBeginStateCallback(r){return()=>{this.logger.info("Generating Span for state:",r.name);const a=this.getSpanName(r),c=this.distributedTracingUtilService.startSpan(a,this.gameLaunchSpan);this.streamerStateToSpanMap.set(r,c)}}generateEndStateCallback(r){return()=>{const a=this.streamerStateToSpanMap.get(r);(0,d.isNil)(a)||(this.logger.info("Closing span for state:",r.name),r===l.H.Authentication&&this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.LoginWindowShown,this.telemetryService.getScreen()!==S.MCB.ScreenAutoLogin),this.distributedTracingUtilService.closeSpan(a))}}onErrorState(r,a){if(r===a.errorSourceState){(0,d.isNil)(this.gameLaunchSpan)||(this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.Error,!0),this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.FailurePoint,a.errorSourceState.name),this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.ErrorType,a.errorData.errorType),this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.ErrorCode,a.errorData.errorCode),this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.HttpStatusCode,a.errorData.httpErrorCode));const c=this.streamerStateToSpanMap.get(r);(0,d.isNil)(c)||this.distributedTracingUtilService.setSpanAttribute(c,n.NS.Error,!0)}this.closeGameLaunchSpan()}subscribeToOverrideZone(){this.networkConfigurationService.getNetworkOverride().subscribe(r=>{(0,d.isNil)(this.gameLaunchSpan)||(this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.RoutingOverrideUsed,!(0,d.isNil)(r)),(0,d.isNil)(r)||(this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.OverrideZoneName,r.name),this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.OverrideZoneAddress,r.address)))})}closeGameLaunchSpan(r){(0,d.isNil)(this.gameLaunchSpan)||((0,d.isNil)(r)||(this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.IsSessionAutoResumed,r.isResume),this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.ErrorDetails,r.errorDetails),this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.Error,r.status!==S.fbu.Success)),this.distributedTracingUtilService.closeSpan(this.gameLaunchSpan))}initGameSessionDistributedTracing(){this.gameLaunchStepList.forEach(r=>{this.streamingManagerService.register(r,this.getStreamingManagerCallbacks(r))})}startGameLaunchSpan(r){this.gameLaunchSpan=this.distributedTracingUtilService.startSpan(n.pB.GameLaunch),this.subscribeToOverrideZone(),this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.LaunchSource,r.launchSource),this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.CmsId,r.cmsId),this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.ShortName,r.shortName)}setAttributeOnGameLaunchSpan(r,a){(0,d.isNil)(this.gameLaunchSpan)||this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,r,a)}updateGeronimoLaunchInfo(r,a){(0,d.isNil)(this.gameLaunchSpan)||this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.SessionId,a),this.closeGameLaunchSpan(r)}getCurrentActiveSpan(){return this.streamerStateToSpanMap.get(this.streamingManagerService.getCurrentState())}static{this.\u0275fac=function(a){return new(a||_)(y.KVO(f.J6),y.KVO(l.cp),y.KVO(n.Z1),y.KVO(S.uUB),y.KVO(O.H0))}}static{this.\u0275prov=y.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})()},16485:(Bt,z,s)=>{"use strict";s.d(z,{fz:()=>f,Gm:()=>D,cD:()=>v});var n=s(83915),l=s(26875),d=s(20924),v=function(U){return U[U.Closed=0]="Closed",U[U.Open=1]="Open",U[U.OpenWithInput=2]="OpenWithInput",U}(v||{});const y="OsrHandler has already been destroyed";let f=(()=>{class U{static{this.registeredHandlers=[]}get isDestroyed(){return this.destroyed}constructor(T,N,L,E,g){this.bridgeService=N,this.spatialNavigationService=E,this.gamepadNavigationService=g,this.desiredOsrState=v.Closed,this.logTag="",this.logger=T.getLogger("gfn/osr-handler"),this.destroyed=!1,this.logTag=L,U.registeredHandlers.push(this),this.logger.info("Created new OSR component",this.logTag)}static getStringListOfRegisteredHandlers(){let T="";return this.registeredHandlers.forEach(N=>T+=`\nState: ${N.desiredOsrState}, Parent: ${N.logTag}`),T}static clearHandlers(){this.registeredHandlers=[]}static getHighestRequestedState(){return 0===U.registeredHandlers.length?v.Closed:U.registeredHandlers.reduce((T,N)=>T.desiredOsrState>N.desiredOsrState?T:N).desiredOsrState}convertOsrReturnToOsrState(T,N){switch(T){case"osrOpen":return N?v.OpenWithInput:v.Open;case"osrClose":return v.Closed;default:return this.logger.error("Unknown osr return string: "+T+" returning closed"),v.Closed}}open(T=!1){if(this.destroyed)throw new Error(y);return this.desiredOsrState=T?v.OpenWithInput:v.Open,this.executeCommandForDesiredState(U.getHighestRequestedState())}close(){if(this.destroyed)throw new Error(y);return this.desiredOsrState=v.Closed,this.executeCommandForDesiredState(U.getHighestRequestedState())}closeAndDestroy(){if(this.destroyed)throw new Error(y);return this.desiredOsrState=v.Closed,this.destroyed=!0,U.registeredHandlers=(0,l.without)(U.registeredHandlers,this),this.executeCommandForDesiredState(U.getHighestRequestedState())}executeCommandForDesiredState(T){this.logger.info("List of all handlers, highest requested state:",T,U.getStringListOfRegisteredHandlers());let L,N=!1;switch(T){case v.OpenWithInput:N=!0,L=this.openOsrInternal(N);break;case v.Open:L=this.openOsrInternal(N);break;case v.Closed:L=this.closeOsrInternal();break;default:this.logger.error("Unknown desired osr state: "+T+" calling close"),L=this.closeOsrInternal()}return L.pipe((0,n.T)(E=>this.convertOsrReturnToOsrState(E,N)))}openOsrInternal(T){return this.spatialNavigationService.activated=T,this.gamepadNavigationService.activated=T,this.bridgeService.executeCommand(d.Ts.Gfn.Streaming.OpenOsr,{enableInput:T})}closeOsrInternal(){return this.spatialNavigationService.activated=!1,this.gamepadNavigationService.activated=!1,this.bridgeService.executeCommand(d.Ts.Gfn.Streaming.CloseOsr)}}return U})();var O=s(26537),P=s(16490),_=s(56785),i=s(65706),r=s(75707),a=s(14714),c=s(58527),m=s(99469),M=s(89284);let D=(()=>{class U{constructor(T,N,L,E){this.loggingService=T,this.bridgeService=N,this.spatialNavigationService=L,this.gamepadNavigationService=E,this.logger=T.getLogger("gfn/osr-handler-service")}createOsrHandler(T){return this.logger.info("Creating new OsrHandler instance"),new f(this.loggingService,this.bridgeService,T,this.spatialNavigationService,this.gamepadNavigationService)}attachOsrHandlerForModal(T,N){let L,E,g;if(T instanceof O.CP)L="MatDialogRef",E=T.afterOpened(),g=T.afterClosed();else if(T instanceof P.eN)L="MatBottomSheetRef",E=T.afterOpened(),g=T.afterDismissed();else{if(!(T instanceof _.f$))throw new Error("not a supported type.");L="NvHigGenericDialogRef",E=T.afterOpened(),g=T.afterClosed()}if(!E||!g)throw new Error("Either afterOpen$ or afterClosed$ is not assigned.");return this.withOsrHandler(L,E,g,N),T}withOsrHandler(T,N,L,E){const g=this.createOsrHandler(T);return N.pipe((0,i.s)(1),(0,r.ZZ)(()=>g.open(E)),(0,r.ZZ)(()=>L.pipe((0,i.s)(1),(0,r.ZZ)(()=>g.closeAndDestroy()))),(0,a.W)(R=>(this.logger.info(`open osr failed. message: ${R.message}`),g.closeAndDestroy())),(0,i.s)(1)).subscribe(),g}static{this.\u0275fac=function(N){return new(N||U)(c.KVO(m.J6),c.KVO(m.NZ),c.KVO(_.ED),c.KVO(M.$vj))}}static{this.\u0275prov=c.jDH({token:U,factory:U.\u0275fac,providedIn:"root"})}}return U})()},16706:(Bt,z,s)=>{"use strict";s.d(z,{_U:()=>y,gn:()=>S});var S=function(O){return O[O.InvalidParams=0]="InvalidParams",O[O.NetworkError=1]="NetworkError",O[O.ZeroCmsId=2]="ZeroCmsId",O[O.ScheduledMaintenance=3]="ScheduledMaintenance",O[O.UnsupportedPlatform=4]="UnsupportedPlatform",O[O.UnsupportedBrowser=5]="UnsupportedBrowser",O[O.PWARequired=6]="PWARequired",O[O.NativeAppOnly=7]="NativeAppOnly",O[O.GenericUnsupportedError=8]="GenericUnsupportedError",O[O.OpportunityAborted=9]="OpportunityAborted",O}(S||{}),y=function(O){return O[O.UnsupportedRegion=0]="UnsupportedRegion",O[O.NotAffiliateEntitled=1]="NotAffiliateEntitled",O[O.NotEntitled=2]="NotEntitled",O[O.Unknown=3]="Unknown",O}(y||{})},54947:(Bt,z,s)=>{"use strict";s.d(z,{R3:()=>nt,ac:()=>ft,vy:()=>lt,uw:()=>et,E3:()=>rt});var n=s(26875),l=s(23355),d=s(89284);s(16706);var P=s(25216);s(40996);var r=s(99469),a=s(36203);s(6478),s(27862),s(97663),s(25167);var N=s(78812),L=s(88583),g=s(20924);s(56785),s(44968),s(1794),s(57388);var G=s(26513),W=s(80583),$=s(43848),le=s(31315),Pe=s(72147),Fe=s(53461),At=s(55833),Le=s(14714),Et=s(83915),$e=s(8619),Ze=s(20381),Qe=s(58527),Ve=s(56784);let nt=(()=>{class St{get imeInputInProgress(){return this.imeOpened.value}get imeOpened$(){return this.imeOpened.asObservable()}get imeInputAction$(){return this.imeInputActionSubject.asObservable()}get imeInputTextVisible$(){return this.imeInputTextVisibleSubject.asObservable()}constructor(yt,Wt,ke,be,Ae,qe,Lt,Zt,fn,hn,On){this.configuration=ke,this.streamingService=be,this.telemetryService=Ae,this.streamerManagerService=qe,this.bridgeService=Lt,this.experienceControl=Zt,this.keyboardLayoutService=fn,this.networkStatusService=hn,this.appConfig=On,this.activeUiHandle=null,this.imeEnabled=!1,this.imeOpened=new G.t(!1),this.imeInputActionSubject=new W.B7,this.imeInputTextVisibleSubject=new W.B7,this.logger=Wt.getLogger("ClientImeLoaderService"),this.mobileMode=!!this.appConfig?.featureEnablement?.mobileMode,this.tvMode=!!this.appConfig?.featureEnablement?.tvMode,this.isImeConfigEnabled$=(0,$.of)(ke.featureEnablement.clientIME).pipe((0,Pe.n)(fi=>fi&&this.mobileMode?yt.accountStatusChanged.pipe((0,Pe.n)(Ji=>this.queryGxTargetForBrowserClientIME(Ji)),(0,Fe.F)()):(0,$.of)(fi)),(0,At.t)(1)),this.isImeEnabled$=(0,le.zV)([this.isImeConfigEnabled$,this.networkStatusService.onlineStatusChanged]).pipe((0,Pe.n)(([fi,Ji])=>(this.logger.info("Client IME support changes to",fi?"supported":"unsupported"),Ji?this.appConfig?.featureEnablement?.clientImeWithoutKbSupport?(0,$.of)(fi):r.zk.isBrowserPlatform()?this.keyboardLayoutService.readCachedKeyboardLayout().pipe((0,Pe.n)(Fi=>(this.logger.info("Keyboard layout cache read response: ",Fi),Fi&&Object.keys(Fi).length>0?(0,$.of)(Fi?.params?.isOtherLayout):(0,$.of)(this.keyboardLayoutService.isOtherDefaultLayout)))):(0,le.zV)([this.keyboardLayoutService.getKeyboardLayoutsList(),this.keyboardLayoutService.onKBLayoutChange$,this.keyboardLayoutService.readCachedKeyboardLayout()]).pipe((0,Pe.n)(([Fi,bt,bn])=>{if(!(0,n.isNil)(bn)&&!(0,n.isEmpty)(bn))return(0,$.of)(bn.params?.isOtherLayout);{const Pt=Fi;this.logger.info("kbChanged: ",bt);const jt=Pt.find(gn=>gn.code===bt);return(0,$.of)(void 0===jt)}})):(this.logger.info("Returning false. isOnline: ",Ji),(0,$.of)(!1)))),(0,Le.W)(fi=>(this.logger.error("Error detected while checking whether the clientIME feature is enabled",fi),(0,$.of)(!1))))}queryGxTargetForBrowserClientIME(yt){const Wt=(0,$.of)({userId:yt?.userId??"",idpId:yt?.idpId??""});return this.experienceControl.getCloudVariable(this.configuration.gxTarget.experiences.isBrowserClientIMESupported,{},void 0,Ze.Ky.GxTargetGetCloudVariable,Ze.Id.GetClientIMESupportedConfig,Wt).pipe((0,Et.T)(ke=>ke.value.isBrowserClientIMESupported),(0,Le.W)(ke=>(this.logger.info("Failed to resolve gx-target cloud variable:",ke),(0,$.of)(!1))))}initialize(){this.streamerManagerService.register(P.H.Streaming,{callbackContext:this,onStateBegin:this.onStateBegin,onStateEnd:this.onStateEnd},P.$R.Primary),this.isImeEnabled$.subscribe(Wt=>{this.logger.info("Cient IME",Wt?"enabled":"disabled"),this.imeEnabled=Wt}),this.streamingService.streamingEvent$.pipe((0,$e.p)(Wt=>Wt.event===l.CW.SESSION_SETUP_SUCCESS)).subscribe(Wt=>{this.sessionStartTime=Date.now()},Wt=>{this.logger.error("Error encountered while getting session setup time: ",Wt)})}onStateBegin(yt){this.activeUiHandle=yt.handle}onStateEnd(){this.activeUiHandle=null,this.imeOpened.next(!1)}initImeInputHandler(yt){this.imeEnabled?!1===this.imeInputInProgress&&this.activeUiHandle?.show(["input"]).subscribe(Wt=>{this.imeOpened.next(!0),this.shownImeInputHandle=Wt,this.logger.info("IME window opened");const ke=new d.aa0({streamDuration:0,source:""});ke.parameters.source=yt,ke.parameters.streamDuration=Date.now()-this.sessionStartTime,this.telemetryService.push(ke)},Wt=>{this.logger.info("Failed to open IME window")}):this.logger.error("Client IME is disabled!")}closeImeInputHandler(){this.shownImeInputHandle.hide(),this.imeOpened.next(!1),this.logger.info("IME window closed")}sendUnicodeInput(yt){const ke=(new TextEncoder).encode(yt);return this.bridgeService.executeCommand(g.Ts.Gfn.Streaming.SendUnicode,{unicodeInput:ke})}controlImeInput(yt){this.imeInputActionSubject.next(yt)}emitImeInputTextVisibility(yt){this.imeInputTextVisibleSubject.next(yt)}static{this.\u0275fac=function(Wt){return new(Wt||St)(Qe.KVO(d.k_2),Qe.KVO(r.J6),Qe.KVO(d.Vk6),Qe.KVO(L.I),Qe.KVO(N.H0),Qe.KVO(P.cp),Qe.KVO(r.NZ),Qe.KVO(Ze.BW),Qe.KVO(Ve.Fw),Qe.KVO(r.CF),Qe.KVO(d.Vk6))}}static{this.\u0275prov=Qe.jDH({token:St,factory:St.\u0275fac,providedIn:"root"})}}return St})();s(50801);var lt=function(St){return St.HotKey="Hotkey",St.Igo="IGO",St.Osc="OSC",St}(lt||{}),ft=function(St){return St.Send="Send",St.ToggleTextVisibility="ToggleTextVisibility",St}(ft||{}),ht=s(3496),Xt=s(75707),Ht=s(91384),Je=s(4208),tt=s(81406);let rt=(()=>{class St{get qualityInfo$(){return(0,ht.O)(this.appConfig.networkIndicators.initializationDelay).pipe((0,Xt.ZZ)(()=>this.quality$),(0,At.t)(1))}constructor(yt,Wt,ke){this.streamingService=Wt,this.appConfig=ke,this.quality$=new W.B7,this.logger=yt.getLogger("gfn/NetworkBarsUiService")}initializeStreamingUi(){this.logger.info("initializeStreamingUi");const yt=this.streamingService.streamingEvent$.pipe((0,$e.p)(Wt=>Wt.event===l.CW.STREAMING_QUALITY),(0,Et.T)(Wt=>Wt));this.terminated$=this.streamingService.streamingEvent$.pipe((0,$e.p)(Wt=>Wt.event===l.CW.STREAMING_TERMINATED||Wt.event===l.CW.STREAMING_STOPPED),(0,Et.T)(Wt=>Wt),(0,Ht.M)(Wt=>this.logger.info("got terminated event"))),this.onFrameLossWarning=this.streamingService.streamingEvent$.pipe((0,$e.p)(Wt=>Wt.event===l.CW.STREAMING_FRAME_LOSS_WARNING),(0,Ht.M)(Wt=>this.logger.info("got onFrameLossWarning event",Wt))),this.onFrameLossCleared=this.streamingService.streamingEvent$.pipe((0,$e.p)(Wt=>Wt.event===l.CW.STREAMING_FRAME_LOSS_CLEARED),(0,Ht.M)(Wt=>this.logger.info("got onFrameLossCleared event",Wt))),this.onStreamingFirstFrame=this.streamingService.streamingEvent$.pipe((0,$e.p)(Wt=>Wt.event===l.CW.STREAMING_FIRST_FRAME),(0,Ht.M)(Wt=>this.logger.info("got onStreamingFirstFrame event",Wt))),yt.pipe((0,Je.Q)(this.terminated$),(0,tt.u)()).subscribe(Wt=>this.quality$.next(Wt),Wt=>this.logger.error("subscribe failed",Wt))}static{this.\u0275fac=function(Wt){return new(Wt||St)(Qe.KVO(r.J6),Qe.KVO(a.I),Qe.KVO(d.Vk6))}}static{this.\u0275prov=Qe.jDH({token:St,factory:St.\u0275fac,providedIn:"root"})}}return St})(),et=(()=>{class St{get isInStreamingPasteEnabled(){return this.isInStreamingPasteEnabled$}get pasteInputInProgress(){return this.inStreamPasteWindowOpened.value}get pasteWindowOpened$(){return this.inStreamPasteWindowOpened.asObservable()}constructor(yt,Wt,ke,be,Ae,qe){this.streamerManagerService=Wt,this.bridgeService=ke,this.settingsService=be,this.guestModeHelperService=Ae,this.appConfig=qe,this.activeUiHandle=null,this.isPasteEnabled=!1,this.inStreamPasteWindowOpened=new G.t(!1),this.logger=yt.getLogger("InstreamPasteService"),this.isClipboardConfigEnabled=!!this.appConfig?.client?.clipboardConfig?.needsDialogForInStreamPaste,this.guestModeHelperService.isGuestAppFlow()&&(this.guestModeConfig=this.guestModeHelperService.getGuestModeConfig()),this.isInStreamingPasteEnabled$=this.settingsService.getSettingsData().pipe((0,Pe.n)(Lt=>{this.logger.info("Clipboard config value :",this.isClipboardConfigEnabled?"supported":"unsupported"),this.logger.info("Clipboard paste enablement from settings :",Lt?.clipboardPaste?"enabled":"disabled");let Zt=this.isClipboardConfigEnabled;return void 0!==this.guestModeConfig?.igoSettings?.pasteDefaultOn&&(Zt=Zt&&this.guestModeConfig?.igoSettings?.pasteDefaultOn),(0,$.of)(Zt&&Lt?.clipboardPaste)}),(0,Le.W)(Lt=>(this.logger.error("Failed to fetch paste config: ",Lt),(0,$.of)(!1))))}initialize(){this.streamerManagerService.register(P.H.Streaming,{callbackContext:this,onStateBegin:this.onStateBegin,onStateEnd:this.onStateEnd},P.$R.Primary),this.isInStreamingPasteEnabled.subscribe(Wt=>{this.logger.info("Clipboard Status on Safari Mac ",Wt?"enabled":"disabled"),this.isPasteEnabled=Wt})}onStateBegin(yt){this.activeUiHandle=yt.handle}onStateEnd(){this.activeUiHandle=null,this.inStreamPasteWindowOpened.next(!1)}initPasteInputHandler(){this.isPasteEnabled?!1===this.pasteInputInProgress&&this.activeUiHandle?.show(["paste"]).subscribe(yt=>{this.inStreamPasteWindowOpened.next(!0),this.shownPasteInputHandle=yt,this.logger.info("Paste window opened")},yt=>{this.logger.info("Failed to open Paste window")}):this.logger.error("Feature is disabled!")}closeInStreamPasteHandler(){this.shownPasteInputHandle?.hide(),this.inStreamPasteWindowOpened.next(!1),this.logger.info("Paste window is closed")}sendUnicodeInput(yt){const ke=(new TextEncoder).encode(yt);return this.bridgeService.executeCommand(g.Ts.Gfn.Streaming.SendUnicode,{unicodeInput:ke})}static{this.\u0275fac=function(Wt){return new(Wt||St)(Qe.KVO(r.J6),Qe.KVO(P.cp),Qe.KVO(r.NZ),Qe.KVO(d.h$Q),Qe.KVO(d.xDS),Qe.KVO(d.Vk6))}}static{this.\u0275prov=Qe.jDH({token:St,factory:St.\u0275fac,providedIn:"root"})}}return St})()},25216:(Bt,z,s)=>{"use strict";s.d(z,{Tw:()=>E,cp:()=>He,$R:()=>V,H:()=>X});var X,Me,n=s(43848),l=s(80583),d=s(26513),v=s(63997),S=s(31315),y=s(17053),f=s(83915),O=s(75707),P=s(91384),_=s(99047),i=s(43615),r=s(55833),a=s(26875),c=s(99469),m=s(44968),M=s(20924),D=s(89284),I=s(16485),U=s(23355),V=function(Me){return Me.Primary="primary",Me.Quit="quit",Me.StreamingTimer="streamingTimer",Me}(V||{}),T=function(Me){return Me[Me.GenericError=0]="GenericError",Me[Me.NesAuthError=1]="NesAuthError",Me[Me.GeronimoError=2]="GeronimoError",Me[Me.PreStreamGeronimoError=3]="PreStreamGeronimoError",Me[Me.EntitlementError=4]="EntitlementError",Me}(T||{});class L{constructor(Q,A){this.errorType=Q,this.errorCode=A}}class E extends L{constructor(Q){super(T.GeronimoError,E.extractErrorCode(Q)),this.errorEventInfo=Q}static extractErrorCode(Q){return Q.event===U.CW.STREAMING_TERMINATED||Q.event===U.CW.STREAMING_STOPPED?Q.reason:Q.result.result}}(Me=X||(X={})).Init={name:"Init",supportedRouterTags:[],defaultOsrState:I.cD.Closed,enableBackNavigation:!1},Me.UpdateCheck={name:"UpdateCheck",supportedRouterTags:[V.Primary],defaultOsrState:I.cD.Open,enableBackNavigation:!1},Me.PreStreaming={name:"PreStreaming",supportedRouterTags:[V.Primary],defaultOsrState:I.cD.OpenWithInput,enableBackNavigation:!1},Me.BrowserSupportCheck={name:"BrowserSupportCheck",supportedRouterTags:[V.Primary],defaultOsrState:I.cD.OpenWithInput,enableBackNavigation:!1},Me.PermissionsBarrier={name:"PermissionsBarrier",supportedRouterTags:[V.Primary],defaultOsrState:I.cD.OpenWithInput,enableBackNavigation:!1},Me.Authentication={name:"Authentication",supportedRouterTags:[V.Primary],defaultOsrState:I.cD.Open,enableBackNavigation:!1},Me.Authorization={name:"Authorization",supportedRouterTags:[V.Primary],defaultOsrState:I.cD.Open,enableBackNavigation:!0},Me.PlatformSelection={name:"PlatformSelection",supportedRouterTags:[V.Primary],defaultOsrState:I.cD.Open,enableBackNavigation:!0},Me.AccountLinking={name:"AccountLinking",supportedRouterTags:[V.Primary],defaultOsrState:I.cD.Open,enableBackNavigation:!0},Me.NetworkTest={name:"NetworkTest",supportedRouterTags:[V.Primary,V.Quit],defaultOsrState:I.cD.Open,enableBackNavigation:!0},Me.Loading={name:"Loading",supportedRouterTags:[V.Primary,V.Quit],defaultOsrState:I.cD.Open,enableBackNavigation:!0},Me.PostSessionConnection={name:"PostSessionConnection",supportedRouterTags:[V.Primary],defaultOsrState:I.cD.Open,enableBackNavigation:!1},Me.Streaming={name:"Streaming",supportedRouterTags:[V.Primary,V.StreamingTimer,V.Quit],defaultOsrState:I.cD.Closed,enableBackNavigation:!1},Me.PostStreaming={name:"PostStreaming",supportedRouterTags:[V.Primary],defaultOsrState:I.cD.Open,enableBackNavigation:!1},Me.Done={name:"Done",supportedRouterTags:[V.Primary],defaultOsrState:I.cD.OpenWithInput,enableBackNavigation:!1},Me.Error={name:"Error",supportedRouterTags:[V.Primary],defaultOsrState:I.cD.Open,enableBackNavigation:!1},Me.ResumableError={name:"ResumableError",supportedRouterTags:[V.Primary],defaultOsrState:I.cD.Open,enableBackNavigation:!1},Me.TerminalError={name:"TerminalError",supportedRouterTags:[V.Primary],defaultOsrState:I.cD.Open,enableBackNavigation:!1};class H{constructor(Q){this.callbacks=Q,this.callbacks.onStateBegin=this.callbacks.onStateBegin.bind(this.callbacks.callbackContext),this.callbacks.onStateEnd&&(this.callbacks.onStateEnd=this.callbacks.onStateEnd.bind(this.callbacks.callbackContext)),this.callbacks.onResumableError&&(this.callbacks.onResumableError=this.callbacks.onResumableError.bind(this.callbacks.callbackContext)),this.callbacks.onTerminalError&&(this.callbacks.onTerminalError=this.callbacks.onTerminalError.bind(this.callbacks.callbackContext))}begin(Q){this.callbacks.onStateBegin(Q)}end(){this.callbacks.onStateEnd&&this.callbacks.onStateEnd()}resumableError(Q){this.callbacks.onResumableError&&this.callbacks.onResumableError(Q)}terminalError(Q){this.callbacks.onTerminalError&&this.callbacks.onTerminalError(Q)}}class J{constructor(Q,A){this.parent=Q,this.id=A,this.hidden=!1}hide(){if(this.hidden)throw new Error("Cannot hide UI that has already been hidden");this.hidden=!0,this.parent.hide(this.id)}}const ie={path:["empty"],id:0},ve={x:0,y:0,w:0,h:0};var ue=s(16706),se=s(70521),Z=s(58527),Se=s(61142),Ce=s(50801),Be=s(6478);const Xe=()=>(0,n.of)(!0);let He=(()=>{class Me{static{this.InternalUIHandleImpl=class{constructor(A,me,ne,G){this.parent=A,this.routerTag=ne,this.exitGuard=Xe,this.enabled=!0,this.logger=G.getLogger(["gfn","StreamerManagerService","InternalUIHandle",me.name,ne].join("/"))}disable(){this.enabled=!1,this.exitGuard=Xe}enable(){this.enabled=!0}goToError(A){this.checkEnabled(),this.parent.goToError(A)}goToNext(){this.checkEnabled(),this.parent.advanceState()}goToDone(A){return this.checkEnabled(),this.parent.exitStreamer(A).toPromise()}goToResumableError(A){this.checkEnabled(),this.parent.goToResumableError(A)}goToTerminalError(A){this.checkEnabled(),this.parent.goToTerminalError(A)}show(A,me){return this.checkEnabled(),this.parent.show(this.routerTag,A,me).pipe((0,f.T)(ne=>new J(this,ne)))}hide(A){this.checkEnabled(),this.parent.hide(A)}restoreWindow(){this.checkEnabled(),this.parent.restoreWindow()}fullscreenWindow(){this.checkEnabled(),this.parent.fullscreenWindow()}setExitGuard(A){this.checkEnabled(),this.exitGuard=A}checkEnabled(){if(!this.enabled){const A="Cannot use a disabled UI handle, likely due to using the handle after the streamer state advanced";throw this.logger.error(A),new Error(A)}}}}constructor(A,me,ne,G,W,$,le,Pe,Fe,At,Le,Et,$e,Ze,Qe,Ve,nt,Ot,at,It){this.loggingService=A,this.bridgeService=me,this.routerService=ne,this.location=W,this.applicationLifetimeService=$,this.streamerConfigService=le,this.gfcHelperService=Pe,this.gameShareUrlService=Fe,this.streamingProfileService=At,this.ownershipSyncService=Le,this.projectInterfaceService=Et,this.redirectService=$e,this.serviceWorkerService=Ze,this.gfnSwUpdateService=Qe,this.notificationUiService=Ve,this.deeplinkHelperService=nt,this.guestModeHelperService=Ot,this.ecommerceService=at,this.distributedTracingUtilService=It,this.restrictedStates=[X.Init,X.Done],this.pathSegments=[],this.exitStreamerNotify$=new l.B7,this.logger=this.loggingService.getLogger("gfn/StreamerManagerService"),this.nextShowIdNumber=1,this.currentState=X.Init,this.currentStateChange$=new d.t(this.currentState),this.stateRegistrations=new Map,this.currentViewStacks=new Map,this.stateMachineConnections=new Map,this.stateMachineConnections.set(X.Init,X.UpdateCheck),this.stateMachineConnections.set(X.UpdateCheck,X.PreStreaming),this.stateMachineConnections.set(X.PreStreaming,X.BrowserSupportCheck),this.stateMachineConnections.set(X.BrowserSupportCheck,X.PermissionsBarrier),this.stateMachineConnections.set(X.PermissionsBarrier,X.Authentication),this.stateMachineConnections.set(X.Authentication,X.PlatformSelection),this.stateMachineConnections.set(X.PlatformSelection,X.AccountLinking),this.stateMachineConnections.set(X.AccountLinking,X.Authorization),this.stateMachineConnections.set(X.Authorization,X.NetworkTest),this.stateMachineConnections.set(X.NetworkTest,X.Loading),this.stateMachineConnections.set(X.Loading,X.Streaming),this.stateMachineConnections.set(X.Streaming,X.PostSessionConnection),this.stateMachineConnections.set(X.PostSessionConnection,X.PostStreaming),this.stateMachineConnections.set(X.PostStreaming,X.Done),this.stateMachineConnections.set(X.ResumableError,X.Loading),this.lastWindowSize=null,this.defaultOsrHandler=G.createOsrHandler("StreamerManagerService"),this.pathSegments=D.V6C.StreamerRoot.split("/"),this.projectInterfaceService.setExitStreamerCallBack(this.exitStreamer.bind(this))}register(A,me,ne=V.Primary){A.supportedRouterTags.includes(ne)||this.logAndThrowError("Router tag "+ne+" is not supported in state "+A.name),(0,a.includes)(this.restrictedStates,A)&&this.logAndThrowError("Cannot register handler for state "+A+" as it is a restricted state"),this.currentState===X.Init?(this.stateRegistrations.has(A)||this.stateRegistrations.set(A,[]),this.stateRegistrations.get(A).push({callbacks:new H(me),handle:new Me.InternalUIHandleImpl(this,A,ne,this.loggingService),tag:ne})):this.logAndThrowError("Cannot register new UI handlers after the Streamer state machine has begun")}initiateStreamer(){this.inActiveState()&&this.logAndThrowError(`InitiateStreamer called in illegal state ${this.currentState.name}`),this.currentState===X.Done&&(this.exitCurrentState(),this.enterState(X.Init)),0!==this.streamerConfigService.activeConfig.cmsId||this.streamerConfigService.activeConfig.parentGameId?(this.currentStateChangeSubscription||(this.currentStateChangeSubscription=this.getCurrentStateChanges().pipe((0,O.ZZ)(A=>(this.logger.info("UpdateStreamerStatus with state",A?.name),this.bridgeService.executeCommand(M.Ts.Gfn.Gfnsdkhost.UpdateStreamerStatus,{status:A.name})))).subscribe(()=>{},()=>{})),this.shutdownRequestedWorkHandle||(this.shutdownRequestedWorkHandle=this.applicationLifetimeService.addWorkOnShutdownRequested(()=>this.exitStreamer({skipsNavigation:!0}).pipe((0,P.M)(A=>{A&&(this.shutdownRequestedWorkHandle.remove(),this.shutdownRequestedWorkHandle=null)}),(0,f.T)(A=>!A)))),this.shutdownWorkHandle||(this.shutdownWorkHandle=this.applicationLifetimeService.addWorkOnShutdown(()=>(this.inDoneState()||this.goToDone({skipsNavigation:!0}),(0,n.of)(void 0)))),this.advanceState()):this.goToError({errorType:T.GenericError,errorCode:ue.gn.ZeroCmsId})}exitStreamer(A){return this.inDoneState()?(0,n.of)(!0):this.exitStreamer$?(this.logger.warn("An exit request is still in progress. New request will not be made."),this.exitStreamer$):(0,v.v)(()=>{const me=this.getCurrentState(),ne=this.stateRegistrations.has(me)?this.stateRegistrations.get(me).map(G=>G.handle.exitGuard().pipe((0,_.$)())):[(0,n.of)(!0)];return this.exitStreamer$=(0,S.zV)(ne).pipe((0,f.T)(G=>!G.includes(!1)),(0,P.M)(G=>{G&&this.goToDone(A)}),(0,i.j)(()=>{this.exitStreamer$=null}),(0,r.t)({refCount:!1,bufferSize:1})),this.exitStreamer$})}getCurrentState(){return this.currentState}getCurrentStateChanges(){return this.currentStateChange$.asObservable()}inErrorState(){return this.isErrorState(this.currentState)}inTerminalState(){return this.inDoneState()}inDoneState(){return this.currentState===X.Done}inActiveState(){return this.currentState!==X.Init&&this.currentState!==X.Done}updateDefaultOsrState(A,me){if(null==me||A!==me){let ne;switch(A){case I.cD.Open:ne=this.defaultOsrHandler.open();break;case I.cD.OpenWithInput:ne=this.defaultOsrHandler.open(!0);break;case I.cD.Closed:ne=this.defaultOsrHandler.close();break;default:this.logger.error("Unrecognized osr state: ",A),ne=this.defaultOsrHandler.close()}ne.subscribe({next:G=>{this.logger.info("Updated osr state to: "+G)},error:G=>{this.logger.error("Failed to update osr state: "+G)}})}}exitCurrentState(){this.stateRegistrations.has(this.currentState)&&this.stateRegistrations.get(this.currentState).forEach(A=>{A.handle.disable(),A.callbacks.end()}),this.resetViewStacks()}enterState(A,me){return this.currentState=A,this.logger.info("Entering state: ",A),this.currentStateChange$.next(this.currentState),!(0,a.includes)(this.restrictedStates,A)&&this.stateRegistrations.has(A)?(this.stateRegistrations.get(A).forEach(ne=>{const G={handle:ne.handle,data:me};ne.handle.enable(),ne.callbacks.begin(G)}),!0):A===X.Done&&(this.exit(me),!0)}exit(A){!this.streamerConfigService.activeConfig?.sdkClient||!c.zk.isCefPlatform()||this.guestModeHelperService.isGuestMode&&this.guestModeHelperService.getGuestModeConfig()?.disableCloseOnStreamExit?(this.streamingProfileService.clearCachedStreamingProfile(),this.notificationUiService.clearNotificationsQueue(),this.deeplinkHelperService.postStreamingCleanUp(),this.ecommerceService.registerIntervalTimer(),this.projectInterfaceService.notifyStreamerFlowExit(),c.zk.isCefPlatform()?this.bridgeService.executeCommand(M.Ts.Gfn.Streaming.Cleanup).pipe((0,i.j)(()=>this.handleExit(A))).subscribe():(this.gfnSwUpdateService.periodicallyCheckForUpdates(),this.handleExit(A))):this.applicationLifetimeService.shutdownApplication(m.pu.ApplicationRequestedExit)}handleExit(A){if(c.zk.isCefPlatform()&&this.restoreWindow(),c.zk.isBrowserPlatform()&&(this.gfcHelperService.terminateRemoteLogSession(),this.serviceWorkerService.postMessageSw({type:se.oY.GameExit})),!A?.skipsNavigation)if(null!=A?.exitUrl||null!=A?.exitCommandData)if(A?.exitCommandData)this.logger.info("Exit navigation by command:",A.exitCommandData),this.routerService.navigate(A.exitCommandData.commands,A.exitCommandData.options??{skipLocationChange:!0});else{const ne=A?.exitUrl??D.V6C.Home;this.logger.info("Exiting to "+ne),this.routerService.navigateByUrl(ne,{skipLocationChange:!0})}else{this.updateAddressBar();const ne=this.gameShareUrlService.getExitUrl();ne.includes("http")?(this.logger.info("Clearing session storage before redirect is initiated"),sessionStorage.removeItem("gdnDeeplinkUrl"),this.distributedTracingUtilService.commitAnyPendingSpans().subscribe(()=>{this.logger.info("Redirecting to Partner URL"),this.redirectService.redirectToExternalUrl(ne,{replace:!0})})):this.routerService.navigateByUrl(ne,{skipLocationChange:!0})}}updateAddressBar(){this.logger.info(`UpdateAddressBar called. Current Streamer State: ${this.currentState.name}`),this.gameShareUrlService.setShareUrlInAddressBar()}enterErrorState(A,me){return this.isErrorState(A)||this.logAndThrowError("enterErrorState called with a non-error state: "+A.name),this.logger.info("Advancing to error state: ",A.name),this.currentState=A,this.currentStateChange$.next(this.currentState),!!this.stateRegistrations.has(A)&&(this.stateRegistrations.get(A).forEach(ne=>{const G={handle:ne.handle,errorUIHandle:ne.handle,data:me};ne.handle.enable(),ne.callbacks.begin(G)}),!0)}advanceState(){if(this.inTerminalState())this.logger.info("Not advancing from terminal state: "+this.currentState.name);else if(this.stateMachineConnections.has(this.currentState)){const A=this.stateMachineConnections.get(this.currentState);this.updateDefaultOsrState(A.defaultOsrState,this.currentState.defaultOsrState),this.exitCurrentState(),this.logger.info("Advancing to state: "+this.stateMachineConnections.get(this.currentState).name),this.enterState(this.stateMachineConnections.get(this.currentState))||(this.logger.info("Skipping state with no registered handlers: "+this.currentState.name),this.advanceState())}else this.logAndThrowError("No state to advance to from state: "+this.currentState.name)}updateDisplays(){this.logger.info("UpdateDisplays called");const A={};this.currentViewStacks.forEach((ne,G)=>{if(ne.length>0){const W=ne[ne.length-1];A[G]=W.path.slice(),W.data&&A[G].push(W.data)}});const me=this.routerService.navigate([...this.pathSegments,{outlets:A}],{skipLocationChange:!0});return me.then(()=>{if(this.streamerConfigService.activeConfig.launchSource===D.vhU.GeForceNOW&&c.zk.isBrowserPlatform()){if(this.inDoneState())return void this.location.replaceState(this.gameShareUrlService.getExitUrl());this.updateAddressBar()}}),me}show(A,me,ne){this.logger.info(`Show called for routerTag: ${A}, path: ${me}`),this.currentViewStacks.has(A)||this.currentViewStacks.set(A,[ie]);const G=this.nextShowIdNumber++;return this.currentViewStacks.get(A).push({path:me,id:G,data:ne}),new y.c(W=>{this.updateDisplays().then(()=>{W.next(G)}).catch($=>{W.error($)})})}hide(A){this.logger.info(`Hide called with id:${A}`),0===A&&this.logAndThrowError("Cannot hide default UI element"),this.currentViewStacks.forEach((me,ne)=>{me.forEach((G,W)=>{if(G.id===A)return me.splice(W,1),void this.updateDisplays()})})}goToDone(A){this.inDoneState()?this.logger.warn("Already in Done state, no transition to make"):(this.updateDefaultOsrState(X.Done.defaultOsrState),this.exitCurrentState(),this.enterState(X.Done,A))}goToError(A){(this.inTerminalState()||this.inErrorState())&&this.logAndThrowError("Cannot enter Error state from Error or terminal state: "+this.currentState.name);const me={errorSourceState:this.currentState,errorData:A};this.exitCurrentState(),this.enterErrorState(X.Error,me)}goToResumableError(A){this.currentState!==X.Error&&this.logAndThrowError("Invalid state to call goToResumableError from: "+this.currentState.name),this.stateRegistrations.forEach((me,ne)=>{me.forEach(G=>{G.callbacks.resumableError(A)})}),this.exitCurrentState(),this.enterErrorState(X.ResumableError,A)}goToTerminalError(A){this.currentState!==X.Error&&this.logAndThrowError("Invalid state to call goToTerminalError from: "+this.currentState.name),this.stateRegistrations.forEach((me,ne)=>{me.forEach(G=>{G.callbacks.terminalError(A)})}),this.exitCurrentState(),this.enterErrorState(X.TerminalError,A)}restoreWindow(){this.lastWindowSize?(this.lastWindowSize=null,this.bridgeService.executeCommand(M.Ts.Common.Windowcontrol.RestoreFromFullScreen).subscribe(()=>{})):this.logger.info("Not restoring window as there was no change in size")}fullscreenWindow(){this.lastWindowSize={width:window.innerWidth,height:window.innerHeight},this.logger.info("Fullscreening window"),this.bridgeService.executeCommand(M.Ts.Common.Windowcontrol.Resize,ve).subscribe(()=>{})}resetViewStacks(){this.logger.info("Resetting view stacks"),this.currentViewStacks.clear(),this.currentViewStacks.set(V.Primary,[ie]),this.currentViewStacks.set(V.Quit,[ie]),this.updateDisplays()}isErrorState(A){return A===X.Error||A===X.ResumableError||A===X.TerminalError}logAndThrowError(A){throw this.logger.error(A),new Error(A)}static{this.\u0275fac=function(me){return new(me||Me)(Z.KVO(c.J6),Z.KVO(c.NZ),Z.KVO(D.HMi),Z.KVO(I.Gm),Z.KVO(Se.aZ),Z.KVO(m.lM),Z.KVO(D.zi2),Z.KVO(D.q8U),Z.KVO(D.uBn),Z.KVO(D.xfC),Z.KVO(D.Itz),Z.KVO(Ce.qQ),Z.KVO(D.Q5Y),Z.KVO(se.lS),Z.KVO(D.BSK),Z.KVO(D.Pii),Z.KVO(D.wCY),Z.KVO(D.xDS),Z.KVO(D.yJU),Z.KVO(Be.Z1))}}static{this.\u0275prov=Z.jDH({token:Me,factory:Me.\u0275fac,providedIn:"root"})}}return Me})()},23355:(Bt,z,s)=>{"use strict";s.d(z,{CW:()=>S,JY:()=>P,Jt:()=>l,TP:()=>y,XK:()=>c,b5:()=>d,fZ:()=>v,hY:()=>_,o2:()=>f,qF:()=>n});var n=function(m){return m[m.NVB_PROFILE_GAMING=0]="NVB_PROFILE_GAMING",m[m.NVB_PROFILE_PROFESSIONAL=1]="NVB_PROFILE_PROFESSIONAL",m[m.NVB_PROFILE_GAMING_720P_30FPS=2]="NVB_PROFILE_GAMING_720P_30FPS",m[m.NVB_PROFILE_GAMING_720P_60FPS=3]="NVB_PROFILE_GAMING_720P_60FPS",m[m.NVB_PROFILE_GAMING_1080P_30FPS=4]="NVB_PROFILE_GAMING_1080P_30FPS",m[m.NVB_PROFILE_GAMING_1080P_60FPS=5]="NVB_PROFILE_GAMING_1080P_60FPS",m[m.NVB_PROFILE_ROAMING_720P_30FPS=6]="NVB_PROFILE_ROAMING_720P_30FPS",m[m.NVB_PROFILE_ROAMING_720P_60FPS=7]="NVB_PROFILE_ROAMING_720P_60FPS",m}(n||{}),l=function(m){return m[m.NVB_R_UDP_BUFFER_TOO_SMALL=2148204566]="NVB_R_UDP_BUFFER_TOO_SMALL",m[m.NVB_R_FIREWALL_BLOCK=2148016156]="NVB_R_FIREWALL_BLOCK",m[m.NVB_R_WIFI_CONNECTIVITY_ISSUE1=2147745808]="NVB_R_WIFI_CONNECTIVITY_ISSUE1",m[m.NVB_R_WIFI_CONNECTIVITY_ISSUE2=2147745799]="NVB_R_WIFI_CONNECTIVITY_ISSUE2",m[m.NVB_R_WIFI_CONNECTIVITY_ISSUE3=2147745796]="NVB_R_WIFI_CONNECTIVITY_ISSUE3",m[m.VIDEO_DECODER_CREATION_FAILED=67174402]="VIDEO_DECODER_CREATION_FAILED",m[m.VIDEO_DECODER_ERROR_MASK=790289]="VIDEO_DECODER_ERROR_MASK",m[m.NVST_NETERR_CLIENT_DISCONNECT_UNINTENDED_NO_VIDEO_PACKETS_RECENTLY=2147745808]="NVST_NETERR_CLIENT_DISCONNECT_UNINTENDED_NO_VIDEO_PACKETS_RECENTLY",m[m.NVST_DISCONN_SERVER_VFP_PROTECTED_CONTENT=2148438786]="NVST_DISCONN_SERVER_VFP_PROTECTED_CONTENT",m[m.GFNPC_CLIENT_FRAME_LOSS_TIMEOUT_ERROR=3237150722]="GFNPC_CLIENT_FRAME_LOSS_TIMEOUT_ERROR",m[m.GFNPC_CLIENT_SESSION_IN_INITIALIZING_STATE=3237150723]="GFNPC_CLIENT_SESSION_IN_INITIALIZING_STATE",m[m.GFNPC_CLIENT_VIDEO_PLAY_FAIL=3237150724]="GFNPC_CLIENT_VIDEO_PLAY_FAIL",m[m.GFNPC_CLIENT_AUDIO_PLAY_FAIL=3237150725]="GFNPC_CLIENT_AUDIO_PLAY_FAIL",m[m.GFNPC_CLIENT_GAME_LAUNCHED_IN_NEW_TAB=3237150726]="GFNPC_CLIENT_GAME_LAUNCHED_IN_NEW_TAB",m[m.GFNPC_CLIENT_OPPORTUNITY_ABORTED=3237150727]="GFNPC_CLIENT_OPPORTUNITY_ABORTED",m[m.GFNPC_CLIENT_GUESTMODE_SESSION_LIMIT_PER_DEVICE_REACHED=3237093682]="GFNPC_CLIENT_GUESTMODE_SESSION_LIMIT_PER_DEVICE_REACHED",m[m.GUEST_MODE_CAMAPAIGN_DISABLED=3237093705]="GUEST_MODE_CAMAPAIGN_DISABLED",m}(l||{}),d=function(m){return m[m.NVB_R_UNKNOWN=-1]="NVB_R_UNKNOWN",m[m.NVB_R_SUCCESS=0]="NVB_R_SUCCESS",m[m.NVB_R_UNINITIALIZED=1]="NVB_R_UNINITIALIZED",m[m.NVB_R_CALLBACKS_NOT_REGISTERED=2]="NVB_R_CALLBACKS_NOT_REGISTERED",m[m.NVB_R_NOT_SUPPORTED=3]="NVB_R_NOT_SUPPORTED",m[m.NVB_R_VERSION_MISMATCH=4]="NVB_R_VERSION_MISMATCH",m[m.NVB_R_UPGRADE_RECOMMENDED=5]="NVB_R_UPGRADE_RECOMMENDED",m[m.NVB_R_OS_ERROR=6]="NVB_R_OS_ERROR",m[m.NVB_R_INVALID_PARAM=101]="NVB_R_INVALID_PARAM",m[m.NVB_R_INVALID_CLIENT_OBJECT=102]="NVB_R_INVALID_CLIENT_OBJECT",m[m.NVB_R_INVALID_SERVER_NAME=103]="NVB_R_INVALID_SERVER_NAME",m[m.NVB_R_INVALID_PORT_NUMBER=104]="NVB_R_INVALID_PORT_NUMBER",m[m.NVB_R_INVALID_VIDEO_DECODER=105]="NVB_R_INVALID_VIDEO_DECODER",m[m.NVB_R_INVALID_AUDIO_RENDERER=106]="NVB_R_INVALID_AUDIO_RENDERER",m[m.NVB_R_INVALID_AUTH_TYPE=107]="NVB_R_INVALID_AUTH_TYPE",m[m.NVB_R_INVALID_STREAM_SETTINGS=108]="NVB_R_INVALID_STREAM_SETTINGS",m[m.NVB_R_INVALID_CERTIFICATE=109]="NVB_R_INVALID_CERTIFICATE",m[m.NVB_R_INVALID_PRIVATE_KEY=110]="NVB_R_INVALID_PRIVATE_KEY",m[m.NVB_R_INVALID_CERTIFICATE_KEY_PAIR=111]="NVB_R_INVALID_CERTIFICATE_KEY_PAIR",m[m.NVB_R_REINITIALIZE_ERROR=112]="NVB_R_REINITIALIZE_ERROR",m[m.NVB_R_INVALID_PROFILE=113]="NVB_R_INVALID_PROFILE",m[m.NVB_R_INVALID_INPUT_DEVICE=114]="NVB_R_INVALID_INPUT_DEVICE",m[m.NVB_R_INVALID_STATS_OPTION=115]="NVB_R_INVALID_STATS_OPTION",m[m.NVB_R_INVALID_FEATURECONTROL_TYPE=116]="NVB_R_INVALID_FEATURECONTROL_TYPE",m[m.NVB_R_NETWORK_ERROR=151]="NVB_R_NETWORK_ERROR",m[m.NVB_R_SOCKET_ERROR=152]="NVB_R_SOCKET_ERROR",m[m.NVB_R_ADDRESS_RESOLVE_FAILED=153]="NVB_R_ADDRESS_RESOLVE_FAILED",m[m.NVB_R_CONNECT_FAILED=154]="NVB_R_CONNECT_FAILED",m[m.NVB_R_SSL_ERROR=155]="NVB_R_SSL_ERROR",m[m.NVB_R_CONNECTION_TIMEOUT=156]="NVB_R_CONNECTION_TIMEOUT",m[m.NVB_R_DATA_RECEIVE_TIMEOUT=157]="NVB_R_DATA_RECEIVE_TIMEOUT",m[m.NVB_R_PEER_NO_RESPONSE=158]="NVB_R_PEER_NO_RESPONSE",m[m.NVB_R_UNEXPECTED_HTTPREDIRECT=159]="NVB_R_UNEXPECTED_HTTPREDIRECT",m[m.NVB_R_NETWORK_CAPABLE=201]="NVB_R_NETWORK_CAPABLE",m[m.NVB_R_INSUFFICIENT_NETWORK_CAPABILITY=202]="NVB_R_INSUFFICIENT_NETWORK_CAPABILITY",m[m.NVB_R_MINIMUM_NETWORK_CAPABILITY=203]="NVB_R_MINIMUM_NETWORK_CAPABILITY",m[m.NVB_R_BLOCK_STREAM=204]="NVB_R_BLOCK_STREAM",m[m.NVB_R_AUTH_ERR_UNKNOWN=252]="NVB_R_AUTH_ERR_UNKNOWN",m[m.NVB_R_AUTH_ERR_DEFUNCT_TOKEN=253]="NVB_R_AUTH_ERR_DEFUNCT_TOKEN",m[m.NVB_R_AUTH_ERR_UNAUTHORIZED_CLIENT=254]="NVB_R_AUTH_ERR_UNAUTHORIZED_CLIENT",m[m.NVB_R_AUTH_ERR_UNSUPPORTED_PROTOCOL=255]="NVB_R_AUTH_ERR_UNSUPPORTED_PROTOCOL",m[m.NVB_R_AUTH_ERR_UNREACHABLE_AUTH_SERVER=256]="NVB_R_AUTH_ERR_UNREACHABLE_AUTH_SERVER",m[m.NVB_R_AUTH_ERR_UNSUPPORTED_TOKEN_FORMAT=257]="NVB_R_AUTH_ERR_UNSUPPORTED_TOKEN_FORMAT",m[m.NVB_R_AUTH_ERR_TOKEN_NOT_UPDATED=258]="NVB_R_AUTH_ERR_TOKEN_NOT_UPDATED",m[m.NVB_R_SESSION_NOT_ACTIVE=301]="NVB_R_SESSION_NOT_ACTIVE",m[m.NVB_R_SESSION_LIMIT_REACHED=302]="NVB_R_SESSION_LIMIT_REACHED",m[m.NVB_R_INSUFFICIENT_RESOURCES=303]="NVB_R_INSUFFICIENT_RESOURCES",m[m.NVB_R_EULA_NOT_ACCEPTED=304]="NVB_R_EULA_NOT_ACCEPTED",m[m.NVB_R_APP_TITLE_FENCED=305]="NVB_R_APP_TITLE_FENCED",m[m.NVB_R_INVALID_APP_IDENTIFIER=306]="NVB_R_INVALID_APP_IDENTIFIER",m[m.NVB_R_PREFERRED_CONTROLLER_NOT_FOUND=307]="NVB_R_PREFERRED_CONTROLLER_NOT_FOUND",m[m.NVB_R_NO_ACTIVE_SESSION_FOUND=308]="NVB_R_NO_ACTIVE_SESSION_FOUND",m[m.NVB_R_SESSION_NOT_PAUSED=309]="NVB_R_SESSION_NOT_PAUSED",m[m.NVB_R_SESSION_TERMINATED_MULTIPLE_LOGIN=310]="NVB_R_SESSION_TERMINATED_MULTIPLE_LOGIN",m[m.NVB_R_SESSION_TERMINATED_ANOTHER_CLIENT=311]="NVB_R_SESSION_TERMINATED_ANOTHER_CLIENT",m[m.NVB_R_STREAMER_UNINITIALIZED=341]="NVB_R_STREAMER_UNINITIALIZED",m[m.NVB_R_STREAMER_NETWORK_ERROR=342]="NVB_R_STREAMER_NETWORK_ERROR",m[m.NVB_R_STREAMER_CONNECT_FAILED=343]="NVB_R_STREAMER_CONNECT_FAILED",m[m.NVB_R_USER_IS_NOT_ENTITLED=351]="NVB_R_USER_IS_NOT_ENTITLED",m[m.NVB_R_GES_NOT_REACHABLE=352]="NVB_R_GES_NOT_REACHABLE",m[m.NVB_R_USER_NOT_REGISTERED_IN_GES=353]="NVB_R_USER_NOT_REGISTERED_IN_GES",m[m.NVB_R_NO_ENTITLEMENT_TIME_REMAINING=354]="NVB_R_NO_ENTITLEMENT_TIME_REMAINING",m[m.NVB_R_SERVER_ERROR=501]="NVB_R_SERVER_ERROR",m[m.NVB_R_SERVER_OUT_OF_SERVICE=502]="NVB_R_SERVER_OUT_OF_SERVICE",m[m.NVB_R_SEVER_MAINTENANCE_MODE=503]="NVB_R_SEVER_MAINTENANCE_MODE",m[m.NVB_R_INVALID_SERVER_RESPONSE=504]="NVB_R_INVALID_SERVER_RESPONSE",m[m.NVB_R_TOO_MANY_SERVER_REQUESTS=505]="NVB_R_TOO_MANY_SERVER_REQUESTS",m[m.NVB_R_APPLICATION_PATCHING=506]="NVB_R_APPLICATION_PATCHING",m[m.NVB_R_APP_MAINTENANCE_STATUS=3237290296]="NVB_R_APP_MAINTENANCE_STATUS",m[m.NVB_R_REQUIRED_SEAT_INSTANCE_TYPE_NOT_SUPPORTED=3237290301]="NVB_R_REQUIRED_SEAT_INSTANCE_TYPE_NOT_SUPPORTED",m[m.NVB_R_SERVER_SESSION_QUEUE_LENGTH_EXCEEDED=3237290302]="NVB_R_SERVER_SESSION_QUEUE_LENGTH_EXCEEDED",m[m.NVB_R_REGION_NOT_SUPPORTED_FOR_STREAMING=3237290303]="NVB_R_REGION_NOT_SUPPORTED_FOR_STREAMING",m[m.NVB_R_SESSION_GAME_BINARIES_NOT_AVAILABLE_IN_REGION=3237290306]="NVB_R_SESSION_GAME_BINARIES_NOT_AVAILABLE_IN_REGION",m[m.NVB_R_SESSION_IN_QUEUE_ABANDONED=3237093701]="NVB_R_SESSION_IN_QUEUE_ABANDONED",m[m.NVB_R_SESSION_ICE_CONNECTION_FAILED=3237093894]="NVB_R_SESSION_ICE_CONNECTION_FAILED",m[m.NVB_R_SERVER_ERROR_BEGIN=61440]="NVB_R_SERVER_ERROR_BEGIN",m[m.NVB_R_SERVER_ERROR_MAX=553648127]="NVB_R_SERVER_ERROR_MAX",m[m.NVB_R_SESSION_REMOVED_FROM_QUEUE_MAINTENANCE=3237290311]="NVB_R_SESSION_REMOVED_FROM_QUEUE_MAINTENANCE",m[m.NVB_R_ZONE_MAITENANCE_STATUS=3237290312]="NVB_R_ZONE_MAITENANCE_STATUS",m[m.NVB_R_GFN_GAME_NOT_OWNED_BY_USER=15806465]="NVB_R_GFN_GAME_NOT_OWNED_BY_USER",m[m.NVB_R_INSTANCE_TYPE_NOT_SUPPORTED_IN_SINGLE_REGION=3237290315]="NVB_R_INSTANCE_TYPE_NOT_SUPPORTED_IN_SINGLE_REGION",m[m.NVB_R_SESSION_WAITING_ADS_TIME_EXPIRED=3237290319]="NVB_R_SESSION_WAITING_ADS_TIME_EXPIRED",m[m.NVB_R_USER_CANCELED_WATCHING_ADS=3237290320]="NVB_R_USER_CANCELED_WATCHING_ADS",m[m.NVB_R_INSUFFICIENT_PLAYABILITY_LEVEL=3237290326]="NVB_R_INSUFFICIENT_PLAYABILITY_LEVEL",m[m.NVB_R_STREAMING_NOT_ALLOWED_IN_LIMITED_MODE=3237290321]="NVB_R_STREAMING_NOT_ALLOWED_IN_LIMITED_MODE",m}(d||{}),v=function(m){return m[m.NVB_SN_STREAMING_PROPERTIES=0]="NVB_SN_STREAMING_PROPERTIES",m[m.NVB_SN_STREAMER_CONNECTED=1]="NVB_SN_STREAMER_CONNECTED",m[m.NVB_SN_STREAMING_QUALITY_CHANGED=2]="NVB_SN_STREAMING_QUALITY_CHANGED",m[m.NVB_SN_SERVER_INITIATED_PAUSE=3]="NVB_SN_SERVER_INITIATED_PAUSE",m[m.NVB_SN_SERVER_INITIATED_RESUME=4]="NVB_SN_SERVER_INITIATED_RESUME",m[m.NVB_SN_CONTROLLER_MAPPING_CHANGED=5]="NVB_SN_CONTROLLER_MAPPING_CHANGED",m[m.NVB_SN_APPROACHING_IDLE_TIMEOUT=11]="NVB_SN_APPROACHING_IDLE_TIMEOUT",m[m.NVB_SN_APPROACHING_SESSION_MAX_TIMELIMIT=12]="NVB_SN_APPROACHING_SESSION_MAX_TIMELIMIT",m[m.NVB_SN_APPROACHING_ENTITLEMENT_TIMEOUT=13]="NVB_SN_APPROACHING_ENTITLEMENT_TIMEOUT",m[m.NVB_SN_CLEAR_IDLE_TIMEOUT=14]="NVB_SN_CLEAR_IDLE_TIMEOUT",m[m.NVB_SN_WARNING_MAX=20]="NVB_SN_WARNING_MAX",m[m.NVB_SN_FRAME_STATISTICS=21]="NVB_SN_FRAME_STATISTICS",m[m.NVB_SN_SUMMARY_STATISTICS=22]="NVB_SN_SUMMARY_STATISTICS",m[m.NVB_SN_TERMINATION_BEGIN=50]="NVB_SN_TERMINATION_BEGIN",m[m.NVB_SN_STREAMING_START_FAILED=51]="NVB_SN_STREAMING_START_FAILED",m[m.NVB_SN_STOPPED_BY_USER=52]="NVB_SN_STOPPED_BY_USER",m[m.NVB_SN_STOPPED_UNINTENTIONALLY=53]="NVB_SN_STOPPED_UNINTENTIONALLY",m[m.NVB_SN_ENTITLEMENT_TIMEOUT=54]="NVB_SN_ENTITLEMENT_TIMEOUT",m[m.NVB_SN_STREAMER_NETWORK_ERROR=55]="NVB_SN_STREAMER_NETWORK_ERROR",m[m.NVB_SN_EXITED_DUE_TO_USER_IDLE_TIMEOUT=56]="NVB_SN_EXITED_DUE_TO_USER_IDLE_TIMEOUT",m[m.NVB_SN_EXITED_DUE_TO_SESSION_TIMELIMIT=57]="NVB_SN_EXITED_DUE_TO_SESSION_TIMELIMIT",m[m.NVB_SN_TERMINATED_BY_OPERATOR=58]="NVB_SN_TERMINATED_BY_OPERATOR",m[m.NVB_SN_PAUSED_BY_USER=59]="NVB_SN_PAUSED_BY_USER",m[m.NVB_SN_TERMINATED_BY_PM=60]="NVB_SN_TERMINATED_BY_PM",m[m.NVB_SN_TERMINATED_WINDOWED_MODE=61]="NVB_SN_TERMINATED_WINDOWED_MODE",m[m.NVB_SN_TERMINATED_GAME_EXITED=62]="NVB_SN_TERMINATED_GAME_EXITED",m[m.NVB_SN_TERMINATED_UNAUTHROIZED_PROCESS_ACCESS=63]="NVB_SN_TERMINATED_UNAUTHROIZED_PROCESS_ACCESS",m[m.NVB_SN_TERMINATED_MULTIPLE_LOGIN=64]="NVB_SN_TERMINATED_MULTIPLE_LOGIN",m[m.NVB_SN_TERMINATED_MALICIOUS_PROCESS_ACCESS=65]="NVB_SN_TERMINATED_MALICIOUS_PROCESS_ACCESS",m[m.NVB_SN_TERMINATED_UNKNOWN_PROCESS_ACCESS=66]="NVB_SN_TERMINATED_UNKNOWN_PROCESS_ACCESS",m[m.NVB_SN_TERMINATED_MINER_PROCESS_ACCESS=67]="NVB_SN_TERMINATED_MINER_PROCESS_ACCESS",m[m.NVB_SN_TERMINATED_FULL_TDR_OCCURRED=68]="NVB_SN_TERMINATED_FULL_TDR_OCCURRED",m[m.NVB_SN_TERMINATED_ANOTHER_CLIENT=69]="NVB_SN_TERMINATED_ANOTHER_CLIENT",m[m.NVB_SN_TERMINATED_GAME_NOT_OWNED_BY_USER=72]="NVB_SN_TERMINATED_GAME_NOT_OWNED_BY_USER",m[m.NVB_SN_PM_TERMINATED_MAINTENANCE_MODE=73]="NVB_SN_PM_TERMINATED_MAINTENANCE_MODE",m[m.NVB_SN_TERMINATION_MAX=200]="NVB_SN_TERMINATION_MAX",m[m.NVB_SN_TERMINATED_DUE_TO_SYSTEM_SLEEP=301]="NVB_SN_TERMINATED_DUE_TO_SYSTEM_SLEEP",m[m.NVB_SN_PAUSED_DUE_TO_SYSTEM_SLEEP=302]="NVB_SN_PAUSED_DUE_TO_SYSTEM_SLEEP",m[m.NVB_SN_INIT_FAILED_DUE_TO_SYSTEM_SLEEP=303]="NVB_SN_INIT_FAILED_DUE_TO_SYSTEM_SLEEP",m[m.NVB_SN_INIT_PAUSED_DUE_TO_SYSTEM_SLEEP=304]="NVB_SN_INIT_PAUSED_DUE_TO_SYSTEM_SLEEP",m[m.SERVER_DISCONNECTED_MULTIPLE_TAB=15868752]="SERVER_DISCONNECTED_MULTIPLE_TAB",m[m.NVB_R_SYSTEM_SLEEP_DURING_STREAMING=3237289988]="NVB_R_SYSTEM_SLEEP_DURING_STREAMING",m[m.NVB_R_SYSTEM_SLEEP_DURING_SESSION_SETUP=3237289989]="NVB_R_SYSTEM_SLEEP_DURING_SESSION_SETUP",m}(v||{}),S=function(m){return m.STREAMING_BEGIN="STREAMING_BEGIN",m.STREAMING_STOPPED="STREAMING_STOPPED",m.SESSION_STOPPED="SESSION_STOPPED",m.SESSION_SETUP_SUCCESS="SESSION_SETUP_SUCCESS",m.SESSION_SETUP_FAILURE="SESSION_SETUP_FAILURE",m.STREAMING_TERMINATED="STREAMING_TERMINATED",m.ACTIVE_SESSIONS="ACTIVE_SESSIONS",m.GET_SESSION_INFO="GET_SESSION_INFO",m.STOP_RESULT="STOP_RESULT",m.SESSION_RESUME_FAILURE="SESSION_RESUME_FAILURE",m.STREAMING_WARNINGS="STREAMING_WARNINGS",m.SESSION_SETUP_PROGRESS="SESSION_SETUP_PROGRESS",m.ANALYTICS_EVENT="ANALYTICS_EVENT",m.SUMMARY_STATS="SUMMARY_STATS",m.FRAME_STATS="FRAME_STATS",m.UPDATE_AUTH_TOKEN="UPDATE_AUTH_TOKEN",m.STREAMING_QUALITY="STREAMING_QUALITY",m.STREAMING_FIRST_FRAME="STREAMING_FIRST_FRAME",m.STREAMING_PROPERTY_UPDATE="STREAMING_PROPERTY_UPDATE",m.STREAMING_FRAME_LOSS_WARNING="STREAMING_FRAME_LOSS_WARNING",m.STREAMING_FRAME_LOSS_ERROR="STREAMING_FRAME_LOSS_ERROR",m.STREAMING_FRAME_LOSS_CLEARED="STREAMING_FRAME_LOSS_CLEARED",m.BROWSER_ANALYTICS_EVENT="BROWSER_ANALYTICS_EVENT",m.SERENITY_EVENT="SERENITY_EVENT",m.STREAMING_CLIENT_MESSAGE="STREAMING_CLIENT_MESSAGE",m.TEXT_COMPOSITION="TEXT_COMPOSITION",m.STREAM_QUALITY_REPORT="STREAM_QUALITY_REPORT",m}(S||{}),y=function(m){return m[m.NVB_SESSION_STATUS_UNKNOWN=-1]="NVB_SESSION_STATUS_UNKNOWN",m[m.NVB_SESSION_INITIALIZING=0]="NVB_SESSION_INITIALIZING",m[m.NVB_SESSION_READY_FOR_CONNECT=1]="NVB_SESSION_READY_FOR_CONNECT",m[m.NVB_SESSION_STREAMING=2]="NVB_SESSION_STREAMING",m[m.NVB_SESSION_WAITING_FOR_RECONNECT=3]="NVB_SESSION_WAITING_FOR_RECONNECT",m[m.NVB_SESSION_PAUSED_INTENTIONAL=4]="NVB_SESSION_PAUSED_INTENTIONAL",m[m.NVB_SESSION_PAUSED_UNINTENTIONAL=5]="NVB_SESSION_PAUSED_UNINTENTIONAL",m[m.NVB_SESSION_RESUMING=6]="NVB_SESSION_RESUMING",m[m.NVB_SESSION_FINISHED=7]="NVB_SESSION_FINISHED",m}(y||{}),f=function(m){return m[m.NVB_SSS_CONNECTING=0]="NVB_SSS_CONNECTING",m[m.NVB_SSS_QUEUEPOSITION=1]="NVB_SSS_QUEUEPOSITION",m[m.NVB_SSS_CONFIGURING=2]="NVB_SSS_CONFIGURING",m[m.NVB_SSS_STARTINGSTREAMER=3]="NVB_SSS_STARTINGSTREAMER",m[m.NVB_SSS_SEATREADY=4]="NVB_SSS_SEATREADY",m[m.NVB_SSS_PREVIOUS_SESSION_CLEANUP=5]="NVB_SSS_PREVIOUS_SESSION_CLEANUP",m}(f||{}),P=function(m){return m.STREAMING_CONNECTION_LOST="STREAMING_CONNECTION_LOST",m.STREAMING_CONNECTION_FOUND="STREAMING_CONNECTION_FOUND",m}(P||{}),_=function(m){return m[m.RESUMABLE=0]="RESUMABLE",m[m.NOT_RESUMABLE=1]="NOT_RESUMABLE",m[m.NO_AUTH_TOKEN=2]="NO_AUTH_TOKEN",m}(_||{}),c=function(m){return m[m.UNKNOWN=0]="UNKNOWN",m[m.RESOLUTION=1]="RESOLUTION",m[m.BIT_DEPTH=2]="BIT_DEPTH",m}(c||{})},95294:(Bt,z,s)=>{"use strict";s.d(z,{U:()=>l});var n=s(23355);class l{constructor(){this.result=n.b5.NVB_R_SESSION_NOT_ACTIVE,this.extendedError=[]}}},36203:(Bt,z,s)=>{"use strict";s.d(z,{I:()=>n.I});var n=s(88583);s(95294)},88583:(Bt,z,s)=>{"use strict";s.d(z,{I:()=>at});var n=s(58527),l=s(99469),d=s(20924),v=s(65770),S=s(4208),y=s(75707),f=s(8619),O=s(83915),P=s(91384),_=s(53461),i=s(65706),r=s(14714),a=s(10174),c=s(99047),m=s(48765),M=s(48216),D=s(26513),I=s(80583),U=s(3496),V=s(16229),T=s(43848),N=s(31315),L=s(35146),E=s(12532),g=s(36466),R=s(27731),B=s(19392),X=s(59859),H=s(15652),J=s(23355),re=s(26875),ie=s(95294),ve=s(89284),ue=s(6478),se=s(40996),Z=s(25216),Se=s(56123),Ce=s(85735);class Be{static mapAppLaunchModeToString(We,xe){switch(We){case Se.AppLaunchMode.Default:return ve.NGk.Default;case Se.AppLaunchMode.GamepadFriendly:return ve.NGk.GamepadFriendly;case Se.AppLaunchMode.TouchFriendly:return ve.NGk.TouchFriendly}return xe.error("mapAppLaunchModeToString Unknown AppLaunchMode value:"+We+" using Default"),ve.NGk.Default}static mapStringToAppLaunchMode(We,xe){switch(We){case ve.NGk.Default:return Se.AppLaunchMode.Default;case ve.NGk.GamepadFriendly:return Se.AppLaunchMode.GamepadFriendly;case ve.NGk.TouchFriendly:return Se.AppLaunchMode.TouchFriendly}return xe.error("mapStringToAppLaunchMode Unknown AppLaunchMode value:"+We+" using Default"),Se.AppLaunchMode.Default}static mapActiveSessionInfoToSession(We,xe){const lt=[];if(We)for(const ft of We){const ht={sessionId:ft.sessionId,appId:ft.appId,appLaunchMode:Be.mapAppLaunchModeToString(ft.appLaunchMode,xe),clientId:void 0,deviceId:void 0,status:J.TP.NVB_SESSION_STATUS_UNKNOWN};switch(ft.state){case Se.SessionState.INITIALIZING:ht.status=J.TP.NVB_SESSION_INITIALIZING;break;case Se.SessionState.READY_FOR_CONNECTION:ht.status=J.TP.NVB_SESSION_READY_FOR_CONNECT;break;case Se.SessionState.STREAMING:ht.status=J.TP.NVB_SESSION_STREAMING;break;case Se.SessionState.PAUSED:ht.status=J.TP.NVB_SESSION_PAUSED_UNINTENTIONAL;break;case Se.SessionState.RESUMING:ht.status=J.TP.NVB_SESSION_RESUMING;break;case Se.SessionState.FINISHED:ht.status=J.TP.NVB_SESSION_FINISHED;break;default:ht.status=J.TP.NVB_SESSION_STATUS_UNKNOWN}lt.push(ht)}return lt}static createSessionStartResult(We,xe,lt){const ft={event:J.CW.SESSION_SETUP_SUCCESS,gpuType:We.gpuType};return We.sessionId&&(ft.sessionId=We.sessionId,ft.subSessionId=We.subSessionId,ft.streams=We.streams),We.error&&(ft.event=We.isResume?J.CW.SESSION_RESUME_FAILURE:J.CW.SESSION_SETUP_FAILURE,ft.result={result:xe.get(We.error.code)||We.error.code},ft.sessions=Be.mapActiveSessionInfoToSession(We.sessionList,lt)),JSON.stringify(ft)}static createSessionStopResult(We,xe){const lt={event:J.CW.STOP_RESULT};return We.sessionId&&(lt.sessionId=We.sessionId,lt.subSessionId=We.subSessionId),We.error&&(lt.result={result:xe.get(We.error.code)||We.error.code}),JSON.stringify(lt)}static createGetSessionResult(We,xe,lt){const ht={event:J.CW.GET_SESSION_INFO,result:{extendedError:[],requestId:1,result:0},sessions:Be.mapActiveSessionInfoToSession([{sessionId:We.sessionId,appId:We.appId,appLaunchMode:We.appLaunchMode,state:We.state}],lt)};return We.error&&(ht.result.result=xe.get(We.error.code)||We.error.code),JSON.stringify(ht)}static createProgressUpdateEvent(We){const xe={event:J.CW.SESSION_SETUP_PROGRESS,eta:We.eta,queuePosition:We.queuePosition,isAdsRequired:We.isAdsRequired,ads:[],sessionId:We.sessionId,subSessionId:We.subSessionId};switch(We.progressState){case Se.SessionProgressState.CONNECTING:xe.state=J.o2.NVB_SSS_CONNECTING;break;case Se.SessionProgressState.IN_QUEUE:xe.state=J.o2.NVB_SSS_QUEUEPOSITION;break;case Se.SessionProgressState.CONFIGURING:xe.state=J.o2.NVB_SSS_CONFIGURING;break;case Se.SessionProgressState.STARTING_STREAMER:xe.state=J.o2.NVB_SSS_STARTINGSTREAMER;break;case Se.SessionProgressState.PREVIOUS_SESSION_CLEANUP:xe.state=J.o2.NVB_SSS_PREVIOUS_SESSION_CLEANUP}return We.ads?.forEach(lt=>{xe.ads.push(lt)}),JSON.stringify(xe)}}const Xe=new Map([[Se.ScErrorCode.SessionEntitledTimeExceeded,J.fZ.NVB_SN_ENTITLEMENT_TIMEOUT],[Se.ScErrorCode.NetworkError,J.b5.NVB_R_NETWORK_ERROR],[Se.ScErrorCode.AuthTokenNotUpdated,J.b5.NVB_R_AUTH_ERR_TOKEN_NOT_UPDATED],[Se.ScErrorCode.SessionLimitExceeded,J.b5.NVB_R_SESSION_LIMIT_REACHED],[Se.ScErrorCode.AppPatching,J.b5.NVB_R_APPLICATION_PATCHING],[Se.ScErrorCode.ResponseParseFailure,J.b5.NVB_R_INVALID_SERVER_RESPONSE],[Se.ScErrorCode.InvalidSessionIdNotFound,J.b5.NVB_R_SESSION_NOT_ACTIVE],[Se.ScErrorCode.InvalidAuthenticationUnsupportedProtocol,J.b5.NVB_R_AUTH_ERR_UNSUPPORTED_PROTOCOL],[Se.ScErrorCode.InvalidAuthenticationCredentials,J.b5.NVB_R_AUTH_ERR_UNAUTHORIZED_CLIENT],[Se.ScErrorCode.EntitlementFailure,J.b5.NVB_R_USER_IS_NOT_ENTITLED],[Se.ScErrorCode.SessionServerErrorBegin,J.b5.NVB_R_SERVER_ERROR],[Se.ScErrorCode.MaintenanceStatus,J.b5.NVB_R_SEVER_MAINTENANCE_MODE],[Se.ScErrorCode.ServiceUnAvailable,J.b5.NVB_R_SERVER_OUT_OF_SERVICE],[Se.ScErrorCode.ServerSessionQueueLengthExceeded,J.b5.NVB_R_SERVER_SESSION_QUEUE_LENGTH_EXCEEDED],[Se.ScErrorCode.AppMaintenanceStatus,J.b5.NVB_R_APP_MAINTENANCE_STATUS],[Se.ScErrorCode.SessionTerminatedByAnotherClient,J.b5.NVB_R_SESSION_TERMINATED_ANOTHER_CLIENT],[Se.ScErrorCode.RequestLimitExceeded,J.b5.NVB_R_TOO_MANY_SERVER_REQUESTS],[Se.ScErrorCode.RequiredSeatInstanceTypeNotSupported,J.b5.NVB_R_REQUIRED_SEAT_INSTANCE_TYPE_NOT_SUPPORTED],[Se.ScErrorCode.RegionNotSupportedForStreaming,J.b5.NVB_R_REGION_NOT_SUPPORTED_FOR_STREAMING],[Se.ScErrorCode.GameBinariesNotAvailableInRegion,J.b5.NVB_R_SESSION_GAME_BINARIES_NOT_AVAILABLE_IN_REGION],[Se.ScErrorCode.GameNotFound,J.b5.NVB_R_INVALID_APP_IDENTIFIER],[Se.ScErrorCode.NoInternetDuringSessionSetup,J.b5.NVB_R_NETWORK_ERROR],[Se.ScErrorCode.SessionRemovedFromQueueMaintenance,J.b5.NVB_R_SESSION_REMOVED_FROM_QUEUE_MAINTENANCE],[Se.ScErrorCode.ZoneMaintenanceStatus,J.b5.NVB_R_ZONE_MAITENANCE_STATUS],[Se.ScErrorCode.InstanceTypeNotSupportedInSingleRegion,J.b5.NVB_R_INSTANCE_TYPE_NOT_SUPPORTED_IN_SINGLE_REGION],[Se.ScErrorCode.SessionWaitingAdsTimeExpired,J.b5.NVB_R_SESSION_WAITING_ADS_TIME_EXPIRED],[Se.ScErrorCode.UserCancelledWatchingAds,J.b5.NVB_R_USER_CANCELED_WATCHING_ADS],[Se.ScErrorCode.SessionInsufficientPlayabilityLevel,J.b5.NVB_R_INSUFFICIENT_PLAYABILITY_LEVEL],[Se.ScErrorCode.StreamingNotAllowedInLimitedMode,J.b5.NVB_R_STREAMING_NOT_ALLOWED_IN_LIMITED_MODE],[Se.ScErrorCode.SessionNotPaused,J.b5.NVB_R_SESSION_NOT_PAUSED]]),He=new Map([[Se.ScErrorCode.SystemSleepDuringSessionSetup,J.fZ.NVB_SN_INIT_FAILED_DUE_TO_SYSTEM_SLEEP]]),Me=new Map([[Se.ScErrorCode.SystemSleepDuringSessionSetup,J.fZ.NVB_SN_INIT_PAUSED_DUE_TO_SYSTEM_SLEEP]]);class Q{constructor(We,xe,lt,ft){this.appConfig=xe,this.sessionManagerService=lt,this.telemetryService=ft,this.sessionEventsSubject=new I.B7,this.sessionControlCodesNotificationMap=new Map,this.sessionUpdateCallback=ht=>{this.logger.info("sessionUpdateCallback from Ragnarok: ",ht),ht.sessionId&&this.sessionIdSubject?.next(ht.sessionId),ht.subSessionId&&(this.subSessionId=ht.subSessionId),this.sessionEventsSubject.next(Q.createProgressUpdateEvent(ht))},this.logger=We.getLogger("gfn/sessionManagerAdapter")}getResumableSessionId(We){return this.sessionManagerService.resumableSessions.find(xe=>xe.appId===We)?.sessionId}markSessionUnresumable(We){return this.sessionManagerService.markSessionUnresumable(We)}configureSessionSettings(We){return this.sessionManagerService.configureSessionSettings({gxtOverrideData:We.gxtOverrideData,overrideData:We.overrideData})}registerCallback(){return this.logger.info("registerCallback"),this.sessionEventsSubject.asObservable()}prepare(We){return this.logger.info("prepare: ",We),this.buildSessionControlErrorMap(),this.sessionManagerService.initialize(We.address)}updateAdState(We,xe){return this.sessionManagerService.updateAdState(We,xe)}updateEventInfoGuids(We,xe,lt){return this.logger.info("Update event info guids"),this.sessionManagerService.updateEventInfoGuids(We,xe,lt)}getSessionInfo(We,xe){return this.sessionManagerService.getSessionInfo(We,{span:xe}).pipe((0,O.T)(lt=>lt.code===Se.ScErrorCode.Success?(this.logger.info("getSessionInfo success"),this.createSessionInfoSuccess(lt)):(this.logger.error("getSessionInfo error",lt.code),this.createSessionInfoError(lt))),(0,r.W)(lt=>(this.logger.info("getSessionInfo error"),(0,T.of)(this.createSessionInfoError(null,We,lt)))))}buildSessionControlErrorMap(){Xe.forEach((We,xe)=>this.sessionControlCodesNotificationMap.set(xe,We)),this.appConfig?.sessionManagementConfig.sessionSetupFailureOnSleep&&He.forEach((We,xe)=>this.sessionControlCodesNotificationMap.set(xe,We)),this.appConfig?.sessionManagementConfig.sessionSetupPauseOnSleep&&Me.forEach((We,xe)=>this.sessionControlCodesNotificationMap.set(xe,We))}startOrResume(We,xe){const lt=!!We.session;this.abortController=new AbortController,this.sessionIdSubject=new Ce.m(1),lt&&this.sessionIdSubject.next(We.session),this.subSessionId=null,this.sessionRequestInProgress=!0;const ft=this.createStartSessionParameters(We),ht={span:xe,spanData:We.spanData,refreshAuthToken:We.refreshAuthToken,abortController:this.abortController};return(lt?this.sessionManagerService.resume(We.session,ft,this.sessionUpdateCallback,ht):this.sessionManagerService.start(ft,this.sessionUpdateCallback,ht)).pipe((0,P.M)(Ht=>{this.sessionRequestInProgress=!1,Ht.code===Se.ScErrorCode.Success?this.handleStartSessionSuccess(Ht,lt):this.handleStartSessionError(lt,Ht)}),(0,r.W)(Ht=>(this.logger.error(`session ${lt?"resume":"start"} failure`,Ht),this.sessionRequestInProgress=!1,this.handleStartSessionError(lt),(0,T.of)(null))))}stop(We,xe){if(this.logger.info("stop session",We,"reason",xe?`reason: ${xe.toString(16)}`:""),this.sessionRequestInProgress)return this.logger.info("sessionRequestInProgress is true, aborting session request"),this.abortController.abort(xe),(0,T.of)(!0);let lt=We;return(lt?(0,T.of)(lt):this.sessionIdSubject.asObservable()).pipe((0,i.s)(1),(0,y.ZZ)(ht=>(lt=ht,this.sendGameQuitEvent(lt),this.logger.info("stopping session",lt),this.sessionManagerService.stop(lt))),(0,O.T)(ht=>(ht===Se.ScErrorCode.Success?this.handleSessionDeleteSuccess(lt,this.subSessionId):this.handleSessionDeleteError(lt,this.subSessionId,ht),ht===Se.ScErrorCode.Success)),(0,r.W)(ht=>(this.handleSessionDeleteError(lt,this.subSessionId,void 0,ht),(0,T.of)(!1))))}sendGameQuitEvent(We){const xe=this.sessionManagerService.resumableSessions.find(lt=>lt.sessionId===We);this.telemetryService.push((0,ve.QP$)(ve.ptg.FromStreamer,We,xe?.timestamp))}getActiveSessions(We){return this.logger.info("getActiveSessions"),this.sessionManagerService.getActiveSessions({span:We}).pipe((0,O.T)(xe=>xe?.code===Se.ScErrorCode.Success?(this.logger.info("active sessions success"),this.createActiveSessionSuccess(xe)):(this.logger.error("active sessions error",xe?.code),this.createActiveSessionError(xe))),(0,r.W)(xe=>(this.logger.error("active sessions failure",xe),(0,T.of)(this.createActiveSessionError(null,xe)))))}createStartSessionParameters(We){const lt={widthInPixels:We.streamingProfile.width,heightInPixels:We.streamingProfile.height,framesPerSecond:We.streamingProfile.fps,sdrHdrMode:We.streamingProfile.hdrStreaming?Se.SdrHdrMode.HDR:Se.SdrHdrMode.SDR,displayData:{desiredContentMaxLuminance:We?.streamingDisplayDataInfo?.desiredContentMaxLuminance,desiredContentMinLuminance:We?.streamingDisplayDataInfo?.desiredContentMinLuminance,desiredContentMaxFrameAverageLuminance:We?.streamingDisplayDataInfo?.desiredContentMaxFrameAverageLuminance},dpi:We.streamingProfile.displayDpi??0};We.streamingProfile?.hdrStreamingMode===d.Or.Gfn.Streaming.HdrStreamingMode.HDR10_PLUS_GAMING&&(lt.hdr10PlusGamingData=We.streamingProfile.hdr10PlusGamingData);const ft=[];ft.push(lt);const ht={reflex:We.streamingProfile?.reflex,bitDepth:this.mapInputBitDepthToGridServerBitDepth(We.streamingProfile?.bitDepth),cloudGsync:We.streamingProfile?.cloudGsync,enabledL4S:We.streamingProfile?.l4sEnabled,supportedHidDevices:We.streamingProfile?.supportedHidDevices,profile:We.streamingProfile?.profile},Xt={serverAddress:We.address,appId:We.appId.toString(),clientLocale:We.locale,accountLinked:We.accountLinked,partnerCustomData:We.partnerCustomData,enablePersistingInGameSettings:We.persistingInGameSettings,userAge:We.userAge,metaData:{...We.metaData,surroundAudioInfo:We?.audioModeFormat?.toString()},monitorSettings:ft,appLaunchMode:We.appLaunchMode,keyboardLayout:We.keyboardLayout,streamingFeatures:ht,remoteControllersBitmap:We.remoteControllersBitmap};return this.logger.info("sessionParameters: ",Xt),Xt}handleStartSessionSuccess(We,xe){this.logger.info("handleStartSessionSuccess: ",We);let lt={sessionId:We.session?.sessionId,subSessionId:We.session?.subSessionId,queuePosition:0,eta:0,progressState:Se.SessionProgressState.CONFIGURING,ads:[]};this.sessionEventsSubject.next(Q.createProgressUpdateEvent(lt)),lt={sessionId:We.session?.sessionId,subSessionId:We.session?.subSessionId,queuePosition:0,eta:0,progressState:Se.SessionProgressState.STARTING_STREAMER,ads:[]},this.sessionEventsSubject.next(Q.createProgressUpdateEvent(lt));const ft={sessionId:We?.session?.sessionId??"",subSessionId:We?.session?.subSessionId??"",isResume:xe,zoneName:We?.session?.zoneName??"",zoneAddress:We?.session?.zoneAddress??"",gpuType:We?.session?.gpuType??"",streamSettings:[{monitorId:We.session.monitorSettings[0].monitorId,positionX:We.session.monitorSettings[0].positionX,positionY:We.session.monitorSettings[0].positionY,videoSettings:{frameRate:We.session.monitorSettings[0].framesPerSecond,resolution:{dpi:We.session.monitorSettings[0].dpi,height:We.session.monitorSettings[0].heightInPixels,width:We.session.monitorSettings[0].widthInPixels}}}]};this.subSessionId=We.session?.subSessionId,this.onSessionStartResult(ft)}handleStartSessionError(We,xe){this.logger.info("handleStartSessionError: ",xe),xe&&(0,Se.isCancelCode)(xe.code)?this.handleStartSessionCancel(xe):this.onSessionStartResult({sessionId:xe?.session?.sessionId??"",subSessionId:xe?.session?.subSessionId??"",isResume:We,sessionList:xe?.activeSessions,error:{code:xe?.code??Se.ScErrorCode.DOMExceptionInSessionControl,description:"Quitting due to error"},zoneName:xe?.session?.zoneName??"",zoneAddress:xe?.session?.zoneAddress??"",gpuType:xe?.session?.gpuType??""})}handleStartSessionCancel(We){this.logger.info("handleStartSessionCancel: ",We),this.onSessionStopResult({sessionId:We.session?.sessionId,subSessionId:We.session?.subSessionId})}onSessionStartResult(We){this.logger.info("callback onSessionStartResult called with eventData, ",We),We.sessionId&&this.sessionIdSubject?.next(We.sessionId),We.error&&(this.sessionIdSubject?.complete(),this.sessionIdSubject=null),this.sessionEventsSubject.next(Q.createSessionStartResult(We,this.sessionControlCodesNotificationMap,this.logger))}handleSessionDeleteSuccess(We,xe){this.logger.info("handleSessionDeleteSuccess"),this.onSessionStopResult({sessionId:We,subSessionId:xe})}handleSessionDeleteError(We,xe,lt,ft){this.logger.info("handleSessionDeleteError");const ht={sessionId:We,subSessionId:xe};ht.code=ft||lt,this.onSessionStopResult(ht)}onSessionStopResult(We){this.logger.info("callback onSessionStopResult called with result, ",We),this.sessionIdSubject?.complete(),this.sessionIdSubject=null,this.subSessionId=null,this.sessionEventsSubject.next(Q.createSessionStopResult(We,this.sessionControlCodesNotificationMap))}static createProgressUpdateEvent(We){const xe={event:J.CW.SESSION_SETUP_PROGRESS,eta:We.eta,queuePosition:We.queuePosition,isAdsRequired:We.isAdsRequired,sessionId:We.sessionId,subSessionId:We.subSessionId,ads:[]};switch(We.progressState){case Se.SessionProgressState.CONNECTING:xe.state=J.o2.NVB_SSS_CONNECTING;break;case Se.SessionProgressState.IN_QUEUE:xe.state=J.o2.NVB_SSS_QUEUEPOSITION;break;case Se.SessionProgressState.CONFIGURING:xe.state=J.o2.NVB_SSS_CONFIGURING;break;case Se.SessionProgressState.STARTING_STREAMER:xe.state=J.o2.NVB_SSS_STARTINGSTREAMER;break;case Se.SessionProgressState.PREVIOUS_SESSION_CLEANUP:xe.state=J.o2.NVB_SSS_PREVIOUS_SESSION_CLEANUP}return We.ads?.forEach(lt=>{xe.ads.push(lt)}),xe}static createSessionStartResult(We,xe,lt){const ft={event:J.CW.SESSION_SETUP_SUCCESS,gpuType:We.gpuType};return We.sessionId&&(ft.sessionId=We.sessionId,ft.subSessionId=We.subSessionId,ft.streams=We.streams,ft.streamSettings=We.streamSettings),We.error&&(ft.event=We.isResume?J.CW.SESSION_RESUME_FAILURE:J.CW.SESSION_SETUP_FAILURE,ft.result={result:xe.get(We.error.code)||We.error.code},ft.sessions=Be.mapActiveSessionInfoToSession(We.sessionList,lt)),ft}static createSessionStopResult(We,xe){const lt={event:J.CW.SESSION_STOPPED};return We.sessionId&&(lt.sessionId=We.sessionId,lt.subSessionId=We.subSessionId),We.error&&(lt.result={result:xe.get(We.code)||We.code}),lt}createActiveSessionSuccess(We){return{event:J.CW.ACTIVE_SESSIONS,result:{extendedError:[],requestId:1,result:0},sessions:Be.mapActiveSessionInfoToSession(We.activeSessions,this.logger)}}createActiveSessionError(We,xe){const lt={event:J.CW.ACTIVE_SESSIONS,result:{extendedError:[],requestId:1,result:0},sessions:null};return lt.result.result=We?this.sessionControlCodesNotificationMap.get(We?.code)||We?.code:xe?.code?this.sessionControlCodesNotificationMap.get(xe.code)||xe.code:Se.ScErrorCode.DOMExceptionInSessionControl,lt}createSessionInfoSuccess(We){return{event:J.CW.GET_SESSION_INFO,result:{extendedError:[],requestId:1,result:0},sessions:Be.mapActiveSessionInfoToSession([{sessionId:We.session?.sessionId,appId:We.session?.appId,appLaunchMode:We.session?.appLaunchMode,state:We.session?.state}],this.logger)}}createSessionInfoError(We,xe,lt){if(We){const ft={sessionId:We.session?.sessionId,appId:We.session?.appId,appLaunchMode:We.session?.appLaunchMode,state:We.session?.state};return{event:J.CW.GET_SESSION_INFO,result:{extendedError:[],requestId:1,result:this.sessionControlCodesNotificationMap.get(We.code)},sessions:Be.mapActiveSessionInfoToSession([ft],this.logger)}}if(lt){const ht={event:J.CW.GET_SESSION_INFO,result:{extendedError:[],requestId:1,result:0},sessions:Be.mapActiveSessionInfoToSession([{sessionId:xe,appId:0,state:""}],this.logger)};return ht.result.result=lt?.code?this.sessionControlCodesNotificationMap.get(lt.code)||lt.code:Se.ScErrorCode.DOMExceptionInSessionControl,ht}}mapInputBitDepthToGridServerBitDepth(We){let xe=Se.BitDepth.BIT_DEPTH_8;return xe=We===ve.UWk.value?Se.BitDepth.BIT_DEPTH_10:Se.BitDepth.BIT_DEPTH_8,xe}}var A=s(78812),me=s(72945),ne=s(25167),G=s(97663),W=s(56784),$=s(50801),le=s(70521),Pe=function(It){return It[It.AdStateUnknown=0]="AdStateUnknown",It[It.AdNotStarted=1]="AdNotStarted",It[It.AdStarted=2]="AdStarted",It[It.AdPaused=3]="AdPaused",It[It.AdResumed=4]="AdResumed",It[It.AdFinished=5]="AdFinished",It[It.AdCanceled=6]="AdCanceled",It}(Pe||{}),Le=function(It){return It.AdBlockerDetected="Ad blocker detected",It.AdBlockerDisabled="Ad Blocker Dialog is disabled",It.AutoplayBlocker="Autoplay blocker",It.CssModified="Css modified",It.VideoElementRemoved="Video element removed",It.AutoplayRemoved="Autoplay attribute removed",It.PreloadAdded="Preload attribute added",It.FlashstoppedAdded="Flashstopped attribute added",It.MediaPlayBlocked="Media play blocked",It.ErrorLoadingUrl="Error loading url",It.AdPlayTimeout="Ad play timeout",It.AdVideoStuck="Ad video is stuck",It.IsAdsRequiredUndefined="IsAdsRequired Flag is undefined",It.Unknown="Unknown error",It}(Le||{});const $e={status:ve.eK6.Unknown,watchedTimeInMs:null,pausedTimeInMs:null,errorInfo:Le.Unknown},Qe={adId:null,adState:Pe.AdStateUnknown,adUrl:null,adLengthInSeconds:null,adMediaFiles:null};let Ve=(()=>{class It{constructor(xe,lt,ft,ht,Xt,Ht,Je){this.loggingService=xe,this.idmService=lt,this.bridgeService=ft,this.mediaHelperService=ht,this.telemetryService=Xt,this.distributedTracingUtilService=Ht,this.gameSessionDistributedTracingService=Je,this.totalAdPausedDurationInMs=0,this.adStartedTs=0,this.adEndedTs=0,this.wasAdPausedAtLeastOnce=!1,this._currentStreamingProperties=null,this.sendAdErrorTelemetrySubject=new I.B7,this.logger=this.loggingService.getLogger("OpportunityHelperService"),this.AdErrorTelemetrySubjectListener()}AdErrorTelemetrySubjectListener(){this.adErrorTelemetry$.pipe((0,_.F)()).subscribe(xe=>{let lt,ft;this.logger.info("IsAdsRequired Flag is: ",xe.isAdsRequired),lt=xe.partialAdTelemetryData,ft=xe.adData,lt||(lt={...$e}),ft||(ft={...Qe}),this.sendTelemetry(lt,ft)})}get adErrorTelemetry$(){return this.sendAdErrorTelemetrySubject.asObservable()}set adErrorTelemetry(xe){this.sendAdErrorTelemetrySubject.next(xe)}get streamingProperties(){return this._currentStreamingProperties}set streamingProperties(xe){this._currentStreamingProperties={...xe}}updateAdState(xe,lt,ft,ht=!1){if(this.computeOpportunityPausedDuration(xe,lt,ft?.perfNowCts),xe.pausedTimeInMs=Math.round(this.totalAdPausedDurationInMs),ht)return(0,T.of)(null);{this.sendTelemetry({status:this.mapOpportunityStatus(xe.adAction),watchedTimeInMs:xe?.watchedTimeInMs,pausedTimeInMs:xe?.pausedTimeInMs,errorInfo:ft?.errorInfo},lt);const Xt=this.distributedTracingUtilService.startSpan(ue.pB.AdSession,this.gameSessionDistributedTracingService.getCurrentActiveSpan());return this.updateAdStateFunction?this.updateAdStateFunction(xe,Xt):this.bridgeService.executeCommand(d.Ts.Gfn.Streaming.UpdateAdState,xe)}}processVideoEvents(xe,lt,ft,ht,Xt=!1,Ht=!1){xe||this.logger.error("Video Element is null or undefined: ",xe),this.logger.info("Process video request: ",xe?.currentSrc,d.Or.Gfn.Streaming.AdAction[lt.adAction],` , skipMediaPlay: ${Xt}, skipProcessing: ${Ht}`);let Je=!1;Xt||lt.adAction!==d.Or.Gfn.Streaming.AdAction.PAUSE?!Xt&<.adAction===d.Or.Gfn.Streaming.AdAction.START||lt.adAction===d.Or.Gfn.Streaming.AdAction.RESUME?(this.logger.info("Resume: Attempt playing media: ",d.Or.Gfn.Streaming.AdAction[lt.adAction]),Je=!0):Xt&<.adAction===d.Or.Gfn.Streaming.AdAction.START&&this.logger.info("Skip playing the media for AdAction.START as the ad would be auto played already."):(this.mediaHelperService.pauseMedia(xe),this.wasAdPausedAtLeastOnce=!0);const tt=Math.floor(Date.now()/1e3);return(Je?this.mediaHelperService.playMedia(xe,"video",{sessionId:this.streamingProperties?.sessionId??"",subSessionId:this.streamingProperties?.subSessionId??"",isResumed:ve.T80.FALSE,useCase:"Resume ad"}).pipe((0,i.s)(1),(0,r.W)(et=>(this.logger.error("Error playing resumed ad:",et.toString()),(0,T.of)(null)))):(0,T.of)(null)).pipe((0,y.ZZ)(et=>(0,L.yU)((0,T.of)(et),this.updateAdState({adId:lt.adId,adAction:lt.adAction,clientTimestamp:lt?.clientTimestamp??tt,watchedTimeInMs:lt?.watchedTimeInMs,cancelReason:lt?.cancelReason},ft,ht,Ht))),(0,O.T)(et=>(this.logger.info("Media play result: ",et[0]),this.logger.info(Ht?"Ad state update was skipped: ":"Ad state update sent for: ",d.Or.Gfn.Streaming.AdAction[lt.adAction]),this.resetValues(lt),et[0])),(0,r.W)(et=>(this.logger.error("Error updating ad state: ",d.Or.Gfn.Streaming.AdAction[lt.adAction],Ht," Error: ",et.toString()),this.resetValues(lt),E.w)))}setTelemetryHelperData(xe){this.cmsId=xe}isOpportunityViewingOver(xe){return xe?.adAction===d.Or.Gfn.Streaming.AdAction.FINISH||xe?.adAction===d.Or.Gfn.Streaming.AdAction.CANCEL}computeOpportunityPausedDuration(xe,lt,ft){if(xe?.adAction===d.Or.Gfn.Streaming.AdAction.START)this.adStartedTs=ft;else if(this.isOpportunityViewingOver(xe)){if(this.wasAdPausedAtLeastOnce){this.adEndedTs=ft;const ht=this.adEndedTs-this.adStartedTs,Xt=1e3*lt.adLengthInSeconds;this.logger.info("Time taken to view ad in ms: ",ht,", total ad length in ms: ",Xt),ht>Xt?this.totalAdPausedDurationInMs=ht-Xt:this.logger.info("Ad is being terminated before completely watching it.")}this.logger.info("totalAdPausedDurationInMs: ",this.totalAdPausedDurationInMs)}}resetValues(xe){this.isOpportunityViewingOver(xe)&&(this.adStartedTs=this.adEndedTs=this.totalAdPausedDurationInMs=0,this.wasAdPausedAtLeastOnce=!1)}sendTelemetry(xe,lt){this.idmService.accountStatusChanged.pipe((0,i.s)(1),(0,O.T)(ft=>{const ht=new ve.GoL({cmsId:this.cmsId??"",url:lt.adUrl??"",receipt:lt.adId??"",status:xe.status??ve.eK6.Unknown,durationInSec:lt.adLengthInSeconds??0,watchedTimeInMs:xe.watchedTimeInMs??0,pausedTimeInMs:xe.pausedTimeInMs??0,errorInfo:xe.errorInfo??"",currentScreenOrientation:window.matchMedia("(orientation: landscape)").matches?ve.t4p.Landscape:ve.t4p.Portrait,targetedAdsOptIn:void 0===ft?.targetedAdsOptIn?ve.T80.UNDEFINED:!0===ft?.targetedAdsOptIn?ve.T80.TRUE:ve.T80.FALSE,sessionId:this.streamingProperties?.sessionId??"",subSessionId:this.streamingProperties?.subSessionId??""});this.telemetryService.push(ht)})).subscribe()}mapOpportunityStatus(xe){let lt;switch(xe){case d.Or.Gfn.Streaming.AdAction.START:lt=ve.eK6.Started;break;case d.Or.Gfn.Streaming.AdAction.CANCEL:lt=ve.eK6.Canceled;break;case d.Or.Gfn.Streaming.AdAction.PAUSE:lt=ve.eK6.Paused;break;case d.Or.Gfn.Streaming.AdAction.RESUME:lt=ve.eK6.Resumed;break;case d.Or.Gfn.Streaming.AdAction.FINISH:lt=ve.eK6.Completed;break;default:lt=ve.eK6.Unknown}return lt}convertToAdState(xe){let lt;switch(xe){case d.Or.Gfn.Streaming.AdAction.START:lt=Pe.AdStarted;break;case d.Or.Gfn.Streaming.AdAction.CANCEL:lt=Pe.AdCanceled;break;case d.Or.Gfn.Streaming.AdAction.PAUSE:lt=Pe.AdPaused;break;case d.Or.Gfn.Streaming.AdAction.RESUME:lt=Pe.AdResumed;break;case d.Or.Gfn.Streaming.AdAction.FINISH:lt=Pe.AdFinished;break;default:lt=Pe.AdStateUnknown}return lt}static{this.\u0275fac=function(lt){return new(lt||It)(n.KVO(l.J6),n.KVO(ve.k_2),n.KVO(l.NZ),n.KVO(ve.yjM),n.KVO(A.H0),n.KVO(ue.Z1),n.KVO(G.z))}}static{this.\u0275prov=n.jDH({token:It,factory:It.\u0275fac,providedIn:"root"})}}return It})();function Ot(It,We){return It.sessionId===We.sessionId||It.subSessionId===We.subSessionId}let at=(()=>{class It{get autoResuming(){return"none"!==this.autoResumeState}get streamingProperties(){return this.sharedStreamingProperties}get hasFirstFrameBeenReceived(){return this._hasFirstFrameBeenReceived}get isStreamingOn(){return this.isStreaming}get connectivityEvent$(){return this.connectivityEventSub.asObservable()}get resumeType(){return this.isResume?this.isAutoResumedSession?ve.yEy.AutoResume:ve.yEy.DeviceTransition:ve.yEy.None}get streamingEvent$(){return this._streamingEvent$}get dismissPushNotificationSnackbarSubject(){return this.dismissSnackbar}get dismissPushNotificationSnackbarObs$(){return this.dismissSnackbar.asObservable()}setShouldQuitAndLaunchOnSessionLimitReached(xe){this.shouldQuitAndLaunchFactory=xe}constructor(xe,lt,ft,ht,Xt,Ht,Je,tt,rt,et,St,Gt,yt,Wt,ke,be,Ae,qe,Lt,Zt,fn,hn,On,fi,Ji,Fi,bt,bn){let Pt;this.bridgeService=lt,this.windowService=ft,this.sharedStorageService=ht,this.gameSessionAnalyticsService=Xt,this.gameSessionDistributedTracingService=Ht,this.idmService=Je,this.gfnSdkService=tt,this.appConfig=rt,this.discordService=et,this.networkStatusService=St,this.distributedTracingUtilService=Gt,this.networkConfigurationService=yt,this.gfcHelperService=Wt,this.keyboardLayoutService=ke,this.surveyService=be,this.projectInterfaceService=Ae,this.serviceWorkerService=qe,this.networkStatus=Lt,this.streamingProfileService=Zt,this.systemInfoService=fn,this.deeplinkHelperService=hn,this.clipboardService=On,this.clientHeaderService=fi,this.ratingService=Ji,this.browseUxService=Fi,this.udsHelperService=bt,this.opportunityHelperService=bn,this.$streamingCodecName=new D.t(null),this.connectivityEventSub=new I.B7,this.dismissSnackbar=new I.B7,this.isVideoReceived=!1,this._hasFirstFrameBeenReceived=!1,this.isStreaming=!1,this.resumableSession=!1,this.wasStreamingRequested=!1,this.sharedStreamingProperties={sessionId:null,subSessionId:null,streams:null},this.isResume=!1,this.autoResumeState="none",this.sessionStartAttempts=0,this.isAutoResumedSession=!1,this.terminatingConnectivityAutoResume$=new I.B7,this.cancelTimerSubject=new I.B7,this.reconnectTimeout=(0,U.O)(this.appConfig.streamer.reconnectTimeout).pipe((0,v.u)(),(0,S.Q)(this.cancelTimerSubject)),this.nvstNetworkErrorCodes=/^8004([A-F0-9]{4})/,this.streamingProfileGuid="",this.systemInfoGuid="",this.configureStreamingSettingsParameters={},this.isAuthTokenRefreshedOnce=!1,this.logger=xe.getLogger("streamingService"),this.useGridServer2=!!this.appConfig?.featureEnablement?.useGridServer2,this.resetStreamingServiceFlags(),this.gameSessionAnalyticsService.setResumeType(this.resumeType),this.initializeCallbackHandlers();const jt=this.bridgeService.executeCommand(d.Ts.Gfn.Streaming.RegisterCallback);if(this.useGridServer2){this.sessionManagerAdapter=new Q(xe,this.appConfig,(0,n.WQX)(ve.PbG),(0,n.WQX)(A.H0)),this.opportunityHelperService.updateAdStateFunction=this.sessionManagerAdapter.updateAdState.bind(this.sessionManagerAdapter);const gn=this.sessionManagerAdapter.registerCallback();Pt=(0,V.h)(gn,jt)}else Pt=jt;this._streamingEvent$=Pt.pipe((0,y.ZZ)(gn=>{const ui=this.callbackHandler.get(gn.event);return ui?ui.call(this,gn):(0,T.of)(gn)}),(0,v.u)()),this.streamingEvent$.subscribe(()=>{},gn=>this.logger.error("callback error",gn),()=>this.logger.info("callback complete")),this.activeSessionsEvent$=this.streamingEvent$.pipe((0,f.p)(gn=>gn.event===J.CW.ACTIVE_SESSIONS),(0,O.T)(gn=>gn)),this.getSessionInfoEvent$=this.streamingEvent$.pipe((0,f.p)(gn=>gn.event===J.CW.GET_SESSION_INFO),(0,O.T)(gn=>gn)),this.stopEvent$=this.useGridServer2?this.streamingEvent$.pipe((0,f.p)(gn=>gn.event===J.CW.SESSION_STOPPED)):this.streamingEvent$.pipe((0,f.p)(gn=>gn.event===J.CW.STOP_RESULT),(0,P.M)(gn=>{this.wasStreamingRequested=!1,this.updateSessionId(gn.sessionId,gn.subSessionId)})),this.sessionSetupProgressEvent$=this.streamingEvent$.pipe((0,f.p)(gn=>gn.event===J.CW.SESSION_SETUP_PROGRESS),(0,O.T)(gn=>gn)),this.sessionSetupProgressEvent$.pipe((0,_.F)(Ot)).subscribe(gn=>this.updateSessionId(gn.sessionId,gn.subSessionId)),(0,N.zV)([this.streamingProfileService.getStreamingProfileGuid(),this.systemInfoService.getSystemInfoGuid()]).pipe((0,y.ZZ)(([gn,ui])=>{const Ii={streamingProfileGuid:gn,systemInfoGuid:ui};return this.streamingProfileGuid=gn,this.systemInfoGuid=ui,this.useGridServer2?this.sessionManagerAdapter.updateEventInfoGuids(gn,ui,this?.streamingParams?.networkSessionId):this.bridgeService.executeCommand(d.Ts.Gfn.Streaming.UpdateEventInfoGuids,Ii)})).subscribe(),this.initProjectInterfaceNotifications(),this.registerStreamingCodec()}getStreamingCodec(){return this.$streamingCodecName.asObservable()}registerStreamingCodec(){l.zk.isCefPlatform()&&(this.logger.info("Registering codec callback"),this.bridgeService.executeCommand(d.Ts.Gfn.Streaming.StreamingCodecNotification).subscribe(xe=>{this.logger.info("Received Codec ",xe),this.$streamingCodecName.next(xe)}))}sessionTerminationListener(xe){let lt="";this.swListenerSubscription=(0,L.yU)(this.serviceWorkerService.swNotifyListener,this.sessionSetupProgressEvent$).pipe((0,i.s)(1),(0,y.ZZ)(([ft,ht])=>(this.logger.info("Msg received from SW to stop streaming: ",ft),lt=ft.content,this.checkIfStopSessionCanBeInitiated(ht.state)?(this.logger.info("Session is not initialized, we can safely stop it"),this.stopStreaming(J.Jt.GFNPC_CLIENT_GAME_LAUNCHED_IN_NEW_TAB)):E.w)),(0,y.ZZ)(ft=>{if(this.logger.info("Session is stopped:",ft),ft){const ht={reason:J.fZ.NVB_SN_TERMINATED_ANOTHER_CLIENT,latestStreamedAppName:lt};ht.event=this.useGridServer2?J.CW.STREAMING_STOPPED:J.CW.STREAMING_TERMINATED;const Xt=new Z.Tw(ht);xe(Xt)}return E.w}),(0,r.W)(ft=>(this.logger.error("Some unexpected error occured: ",ft),E.w))).subscribe()}checkIfStopSessionCanBeInitiated(xe){return xe===J.o2.NVB_SSS_CONNECTING||xe===J.o2.NVB_SSS_PREVIOUS_SESSION_CLEANUP||xe===J.o2.NVB_SSS_QUEUEPOSITION}unsubscribeSessionTerminationListener(){this.swListenerSubscription?.unsubscribe()}initProjectInterfaceNotifications(){this.streamingEvent$.subscribe(xe=>{switch(xe.event){case J.CW.SESSION_SETUP_SUCCESS:this.projectInterfaceService.notifyStreamingSessionSetupSuccess({event:xe.event,sessionId:xe.sessionId,subSessionId:xe.subSessionId});break;case J.CW.STREAMING_BEGIN:const ft={event:xe.event};this.browseUxService.emitStreamingBegin(),this.projectInterfaceService.notifyStreamingBegin(ft);break;case J.CW.STREAMING_STOPPED:case J.CW.STOP_RESULT:case J.CW.STREAMING_TERMINATED:case J.CW.SESSION_SETUP_FAILURE:const ht={event:xe.event,errorCode:xe.reason,isResumable:this.isResumableNetworkErrorCode(xe)};this.projectInterfaceService.notifyStreamingEnd(ht),this.browseUxService.emitStreamingTerminated()}},g.l)}updateKeyboardLayout(){return(0,N.zV)([this.systemInfoService.getDeviceOSType().pipe((0,i.s)(1)),this.keyboardLayoutService.readCachedKeyboardLayout()]).pipe((0,P.M)(([xe,lt])=>{this.logger.info("Keyboard layout cache read response for prepare:",lt);let ft=lt?.code;!ft&&l.zk.isBrowserPlatform()&&(ft=this.keyboardLayoutService.getDefaultKBLayoutCode()),this.logger.info("Updating the keyboard layout data to be passed to the streamer:",ft),this.keyboardLayoutCode=ft,this.projectInterfaceService.setIsNonEnglishKeyboardLayout(this.keyboardLayoutService.isNonEnglishKeyboardLayout(ft,xe))},xe=>this.logger.info("Keyboard layout cache read error:",xe)),(0,a.u)(null))}updateStreamingContentRating(){let xe;return xe=this.streamingParams.contentRating?.type&&this.streamingParams.contentRating?.categoryKey&&this.streamingParams.contentRating?.contentDescriptorKeys?(0,L.yU)(this.ratingService.getCurrentRating(this.streamingParams.contentRating.type,this.streamingParams.contentRating.categoryKey).pipe((0,r.W)(lt=>(0,T.of)(null))),this.ratingService.getContentDescriptors(this.streamingParams.contentRating.type,this.streamingParams.contentRating.contentDescriptorKeys).pipe((0,r.W)(lt=>(0,T.of)([])))):(0,T.of)([null,[]]),xe.pipe((0,i.s)(1),(0,P.M)(([lt,ft])=>{let ht="";ft&&ft.length&&(ht=ft.join(", ")),this.startParamsContentRating=void 0,(0,re.isNil)(lt)||(this.startParamsContentRating={displayIntervalMin:lt.displayInterval,ratingClassText:lt.rating.label,largeImageUrl:lt.rating.largeImageUrl,smallImageUrl:lt.rating.smallImageUrl,contentDescriptorText:ht,ratingSystem:this.streamingParams?.contentRating?.type??"",categoryKey:this.streamingParams?.contentRating?.categoryKey??"",contentDescriptorKeys:this.streamingParams?.contentRating?.contentDescriptorKeys??[],interactiveElementKeys:this.streamingParams?.contentRating?.interactiveElementKeys??[]})}),(0,O.T)(lt=>{}))}initializeCallbackHandlers(){this.callbackHandler=new Map,this.callbackHandler.set(J.CW.SESSION_SETUP_SUCCESS,this.onSessionSetupSuccess),this.callbackHandler.set(J.CW.STREAMING_BEGIN,this.onStreamingBegin),this.callbackHandler.set(J.CW.SESSION_SETUP_FAILURE,this.onSetupFailure),this.callbackHandler.set(J.CW.SESSION_STOPPED,this.onSessionStopped),this.callbackHandler.set(J.CW.STREAMING_TERMINATED,this.onStreamingTerminated),this.callbackHandler.set(J.CW.STREAMING_STOPPED,this.onStreamingTerminated),this.callbackHandler.set(J.CW.UPDATE_AUTH_TOKEN,this.onUpdateAuthToken),this.callbackHandler.set(J.CW.STREAMING_FIRST_FRAME,this.onStreamingFirstFrame),this.callbackHandler.set(J.CW.SESSION_RESUME_FAILURE,this.onSessionResumeFailure),this.callbackHandler.set(J.CW.SESSION_SETUP_PROGRESS,this.onSessionSetupProgress),this.callbackHandler.set(J.CW.STREAMING_FRAME_LOSS_WARNING,this.onFrameLossWarning),this.callbackHandler.set(J.CW.STREAMING_FRAME_LOSS_ERROR,this.onFrameLossError),this.callbackHandler.set(J.CW.STREAMING_FRAME_LOSS_CLEARED,this.onFrameLossCleared),this.callbackHandler.set(J.CW.STREAM_QUALITY_REPORT,this.onGameStreamQualityReport)}mapSleepErrorCode(xe){return xe.extendedCode===J.fZ.NVB_R_SYSTEM_SLEEP_DURING_STREAMING&&(this.logger.info("Valid error reason for sleep, replacing reason but leaving error code."),xe.reason=J.fZ.NVB_SN_TERMINATED_DUE_TO_SYSTEM_SLEEP,this.logger.info("onStreamingTerminated: mapped SleepErrorCode",xe),this.clearSessionId(!0)),xe}onGameStreamQualityReport(xe){return this.logger.info("onGameStreamQualityReport received with UDS data: ",xe),this.udsHelperService.rawUDSDataFromGS=xe.udsData,(0,T.of)(xe)}onUpdateAuthToken(xe){const lt=this.distributedTracingUtilService.startSpanUsingContext("StreamerUpdateAuthToken",xe.spanData);return this.gfnSdkService.getAuthInfo().pipe((0,y.ZZ)(ft=>ft.authType===se.hT.JWT?(0,T.of)(ft.authToken):this.idmService.getAuthToken(!0,lt).pipe((0,y.ZZ)(ht=>(0,T.of)(ht.token)))),(0,r.W)(ft=>(this.logger.info("getAuthInfo error in onUpdateAuthToken",ft),(0,T.of)(""))),(0,y.ZZ)(ft=>this.processUpdatedAuthToken(ft)),(0,O.T)(ft=>xe))}processUpdatedAuthToken(xe){return this.logger.info("processing updated Auth Token"),this.bridgeService.executeCommand(d.Ts.Gfn.Streaming.SetAuthToken,{token:xe})}onStreamingBegin(xe){return this.logger.info("onStreamingBegin"),this.discordService.updatePresence(this.streamingParams.appName),this.distributedTracingUtilService.closeSpan(this.streamingSpan),this.isStreaming=!0,this.sessionStartAttempts=0,this.appConfig?.client?.clipboardConfig?.needsDialogForInStreamPaste||(this.clipboardInitSub=this.clipboardService.init().subscribe(),this.clipboardAvailableSub=this.windowService.getFocusEvent().subscribe(()=>{this.clipboardService.detectClipboardChange?.next(!0)})),this.networkConfigurationService.cacheCurrentFingerprint().pipe((0,r.W)(lt=>(this.logger.error("Unable to cache current fingerprint: ",lt),(0,T.of)(!1))),(0,y.ZZ)(lt=>"connectivity"===this.autoResumeState?(this.logger.info("connectivity auto resuming, suppress onStreamingBegin "),this.connectivityEventSub.next({event:J.JY.STREAMING_CONNECTION_FOUND}),this.cancelTimerSubject.next(!0),this.resetAutoResumingState(),this.sendStreamingBeginTelemetry(),R.t):"pauseResume"===this.autoResumeState?(this.logger.info("stream starting after pause resume"),this.resetAutoResumingState(),this.sendStreamingBeginTelemetry(),(0,T.of)(xe)):(this.logger.info("stream starting"),this.gameSessionAnalyticsService.updateGameLaunchDurations(ve.iVs.StartSession,void 0),this.gameSessionAnalyticsService.updateGameLaunchDurations(ve.iVs.StreamingStartDuration,void 0),this.gameSessionAnalyticsService.nextSeatSeatupEvent(null,!0),this.sendStreamingBeginTelemetry(),(0,T.of)(xe))))}sendStreamingBeginTelemetry(){this.logger.info("sending telemetry, onStreamingBegin");const xe={status:ve.fbu.Success,isResume:this.isResume,errorDetails:"0x00000000"};this.gameSessionAnalyticsService.setResumeType(this.resumeType),this.gameSessionAnalyticsService.handleGeronimoLaunchResult(xe,this.sharedStreamingProperties.sessionId),this.gameSessionDistributedTracingService.updateGeronimoLaunchInfo(xe,this.sharedStreamingProperties.sessionId)}onStreamingFirstFrame(xe){return this.logger.info("onStreamingFirstFrame"),this.isVideoReceived=!0,this._hasFirstFrameBeenReceived=!0,(0,T.of)(xe)}shouldCleanupAndLaunchOnSessionLimitReached(xe){const ft=(xe.sessions?xe.sessions:[]).find(ht=>ht.appId!==this.streamingParams.appId);return ft?this.shouldQuitAndLaunchFactory?this.shouldQuitAndLaunchFactory(ft.appId,this.streamingParams.appName):(this.logger.info("shouldQuitAndLaunchFactory is unset, proceeding with game launch"),(0,T.of)(!0)):(this.logger.info("No other session is running a different app, proceeding with game launch"),(0,T.of)(!0))}onSetupFailure(xe){return this.logger.error("onSetupFailure",xe),this.wasStreamingRequested=!1,this.sessionRequested=!1,this.updateSessionId(xe.sessionId,xe.subSessionId),1===this.sessionStartAttempts&&xe.result.result===J.b5.NVB_R_SESSION_LIMIT_REACHED?(this.logger.info("Attempted to launch a session resulted in session limit reached"),this.shouldCleanupAndLaunchOnSessionLimitReached(xe).pipe((0,i.s)(1),(0,y.ZZ)(lt=>lt?(this.logger.info("Stopping or resuming active session"),this.gameSessionAnalyticsService.moveGameLaunchDuration(ve.iVs.SessionCleanup,ve.iVs.StartSession),this.gameSessionAnalyticsService.resetSeatSetupEventSequence(!0),this.gameSessionAnalyticsService.nextSeatSeatupEvent(null,!0),this.sessionCleanup(xe)):(this.handleSetupFailure(xe),this.logger.info("Consuming setup failure because cleanup-and-launch was rejected"),R.t)),(0,i.s)(1),(0,P.M)(()=>{this.gameSessionAnalyticsService.updateGameLaunchDurations(ve.iVs.SessionCleanup,ve.iVs.StartSession),this.gameSessionAnalyticsService.startGameLaunchDuration(ve.iVs.StreamerClientSetupDuration)}),(0,y.ZZ)(lt=>lt.error?this.handleSetupFailure({event:J.CW.SESSION_SETUP_FAILURE,result:{requestId:0,result:lt.result},sessionId:""}):this.start(lt.sessionId).pipe((0,y.ZZ)(()=>R.t))))):this.handleSetupFailure(xe)}onSessionStopped(xe){return this.logger.info("onSessionStopped"),this.sessionRequested=!1,this.wasStreamingRequested=!1,this.updateSessionId(xe.sessionId,xe.subSessionId),(0,T.of)(xe)}handleSetupFailure(xe){this.gameSessionAnalyticsService.updateGameLaunchDurations(ve.iVs.StartSession,void 0),this.gameSessionAnalyticsService.resetSeatSetupEventSequence(!1),this.gameSessionAnalyticsService.nextSeatSeatupEvent(null,!0);const lt=this.getErrorCode(xe.result),ft={status:"0x00000000"!==lt?l.zk.isCefPlatform()?ve.fbu.GeronimoLaunchError:ve.fbu.RagnarokLaunchError:ve.fbu.Success,isResume:this.isResume,errorDetails:lt.toString()};return this.logger.info("received session error : ",ft),this.gameSessionAnalyticsService.setResumeType(this.resumeType),this.gameSessionAnalyticsService.handleGeronimoLaunchResult(ft,xe.sessionId),this.gameSessionDistributedTracingService.updateGeronimoLaunchInfo(ft,xe.sessionId),this.sessionStartAttempts=0,(0,T.of)(xe)}getErrorCode(xe){let lt;return lt=(0,re.isArray)(xe.extendedError)&&xe.extendedError.length>0?xe.extendedError[0]:xe.result,(0,ve.yJs)(lt)}onSessionResumeFailure(xe){this.wasStreamingRequested=!1,this.sessionRequested=!1;const lt=xe;return"connectivity"===this.autoResumeState?this.hasSessionTimedOut?(this.logger.info("returning cached terminated event"),(0,T.of)(this.prevTerminatedInfo)):(this.logger.info("auto resume failed, retrying",xe),this.resumeableTerminateWrapper(this.prevTerminatedInfo,!0)):this.autoResuming||lt.result.result!==J.b5.NVB_R_SESSION_NOT_PAUSED&<.result.result!==J.b5.NVB_R_SESSION_NOT_ACTIVE?(this.logger.error("onResumeFailure",xe),this.sendResumeFailureTelemetryData({status:l.zk.isCefPlatform()?ve.fbu.GeronimoLaunchError:ve.fbu.RagnarokLaunchError,errorDetails:(0,re.propertyOf)(xe)("result").toString()}),this.updateSessionId(xe.sessionId,xe.subSessionId),(0,T.of)(xe)):(this.logger.info("The session to be resumed is no longer active, starting a new session"),this.start(void 0,void 0,!0).pipe((0,y.ZZ)(ft=>R.t)))}resetAutoResumingState(){this.autoResumeState="none",this.prevTerminatedInfo=null}updateNetorkTestIndirectPolicy(xe,lt){return xe?this.networkConfigurationService.updateCurrentFingerprintNetworkTestFlag(xe,lt):(0,T.of)(!1)}getStreamerNetworkErrorInfo(xe,lt){const ft=lt.toString(16).toUpperCase();let ht=[!1];return xe===J.fZ.NVB_SN_STREAMER_NETWORK_ERROR&&this.nvstNetworkErrorCodes.test(ft)?ht=[!0,ve.VK0.StreamerNetworkError]:this.appConfig.featureEnablement.networkTestPolicy.isFrameLossTimeoutErrorEnabled&&xe===J.fZ.NVB_SN_PAUSED_BY_USER&<===J.Jt.GFNPC_CLIENT_FRAME_LOSS_TIMEOUT_ERROR&&(ht=[!0,ve.VK0.StreamerFrameLossTimeoutError]),this.logger.info(`Network test should${ht[0]?"":" not"} be triggered from network error code: 0x${ft}`),ht}getErrorKeyByValue(xe){let lt="";return[J.Jt,J.b5,J.fZ].forEach(ht=>{const Xt=Object.keys(ht).find(Ht=>ht[Ht]===xe);Xt&&(lt=Xt)}),lt}updateSessionCacheIfNeeded(xe){if(!xe.pauseRequested&&!(xe.isSessionAlive??this.isResumableNetworkErrorCode(xe))){const ft=this.sharedStreamingProperties.sessionId;this.logger.info("Marking session as unresumable on streaming termination:",ft),this.sessionManagerAdapter.markSessionUnresumable(ft)}}onStreamingTerminated(xe){this.logger.info("onStreamingTerminated",xe),xe=this.mapSleepErrorCode(xe),this.discordService.clearPresence(),this.isStreaming=!1,this.wasStreamingRequested=!1,this.clipboardAvailableSub?.unsubscribe(),this.clipboardInitSub?.unsubscribe();const lt={errorCode:xe.reason,extendedCode:xe.extendedCode,errorString:this.getErrorKeyByValue(xe.reason)};if(this.udsHelperService.streamingErrorDetails=lt,xe.pauseRequested)return this.resumableSession=!0,(0,T.of)(xe);this.useGridServer2&&this.updateSessionCacheIfNeeded(xe);const[ft,ht]=this.getStreamerNetworkErrorInfo(xe.reason,xe.extendedCode);return this.updateNetorkTestIndirectPolicy(ft,ht).pipe((0,r.W)(Xt=>(this.logger.error("Unable to update streamer network test policy: ",Xt),(0,T.of)(!1))),(0,y.ZZ)(Xt=>{if(this.isVideoReceived&&this.isResumableNetworkErrorCode(xe))return this.resumableSession=!0,this.isVideoReceived=!1,this.logger.info("session is resumable, sending STREAMING_CONNECTION_LOST event"),this.connectivityEventSub.next({event:J.JY.STREAMING_CONNECTION_LOST}),this.appConfig.streamer?.autoResumeConfig?.autoResumeDisabled?(0,T.of)(xe):(this.reconnectTimeout.pipe((0,i.s)(1)).subscribe(()=>{this.hasSessionTimedOut=!0,this.logger.info("hasSessionTimedOut set to true")}),this.resumeableTerminateWrapper(xe,!1));if(this.useGridServer2){if(this.shouldDeleteSession(xe)){this.logger.info("calling stop on session manager service");const Ht=this.sessionManagerAdapter.stop(xe.sessionId,xe.reason).pipe((0,y.ZZ)(()=>R.t));return(0,V.h)(this.processStreamingTermination(xe),Ht)}return this.logger.info("Do not delete session as server has taken care of it"),this.processStreamingTermination(xe)}return this.processStreamingTermination(xe)}))}isResumableNetworkErrorCode(xe){return this.logger.info("isNetworkErrorCode? :",xe),xe.isResumable&&xe.reason!==J.fZ.NVB_SN_TERMINATED_DUE_TO_SYSTEM_SLEEP}resumeableTerminateWrapper(xe,lt){const ft=this.terminatingConnectivityAutoResume$.asObservable().pipe((0,a.u)(null)),ht=this.resumableTerminate("connectivity",xe),Xt=lt?(0,U.O)(this.appConfig.streamer.reconnectRefreshInterval).pipe((0,y.ZZ)(()=>ht)):ht;return(0,V.h)(Xt,ft).pipe((0,c.$)(),(0,m.v)(()=>!1===this.isStreaming),(0,y.ZZ)(Ht=>((0,re.isNil)(Ht)?this.logger.info("Terminate Fired!"):this.logger.info("Auto resume failed!"),(0,T.of)(xe))))}resumableTerminate(xe,lt){if(this.networkStatusService.isOnline)return this.attemptAutoResume(xe,lt);{const ft=this.networkStatusService.onlineStatusChanged.pipe((0,f.p)(ht=>!0===ht));return(0,V.h)(this.reconnectTimeout,ft).pipe((0,c.$)(),(0,y.ZZ)(ht=>!0===ht?this.attemptAutoResume(xe,lt):(this.logger.info("Network timed out!"),(0,T.of)(lt))))}}attemptAutoResume(xe,lt){const ft=this.startSessionsPollingSpan(ue.pB.GetSessionInfo);return this.logger.info("attemptAutoResume"),this.useGridServer2?this.sessionManagerAdapter.getSessionInfo(this.sharedStreamingProperties.sessionId,ft).pipe((0,P.M)(ht=>{this.logger.info("attemptAutoResume activeSessionInfo: ",ht),this.processGetSessionInfo(ht,ft)}),(0,c.$)(),(0,y.ZZ)(ht=>this.processAutoResume(xe,lt)),(0,r.W)(ht=>(this.logger.info("attemptAutoResume error:",ht),(0,T.of)(lt)))):this.getSessionInfo(this.sharedStreamingProperties.sessionId,ft).pipe((0,y.ZZ)(ht=>this.getSessionInfoEvent$),(0,P.M)(ht=>{this.processGetSessionInfo(ht,ft)}),(0,c.$)(),(0,y.ZZ)(ht=>this.processAutoResume(xe,lt)),(0,r.W)(ht=>(this.logger.info("attemptAutoResume error:",ht),(0,T.of)(lt))))}processGetSessionInfo(xe,lt){this.logger.info("update resumable state and clear"),this.distributedTracingUtilService.closeSpan(lt),this.updateResumableSession(xe)}processAutoResume(xe,lt){return this.resumableSession?this.autoResume(xe,lt).pipe((0,y.ZZ)(()=>R.t),(0,r.W)(ft=>(0,T.of)(lt))):(this.logger.info("fire terminated",this.resumableSession,this.networkStatusService.isOnline),(0,T.of)(lt))}autoResume(xe,lt){return this.isStreaming?(this.logger.info("autoResume: already streaming"),(0,T.of)(!0)):(this.logger.info("auto resuming...."),this.autoResumeState=xe,this.prevTerminatedInfo=lt,this.isResume=!0,this.gameSessionAnalyticsService.setWasStartedWithResume(!0),this.gameSessionAnalyticsService.setResumeType(this.resumeType),this.gfnResume().pipe((0,P.M)(ft=>{this.logger.info("auto-resume invoked"),this.isAutoResumedSession=!0,this.wasStreamingRequested=ft},ft=>{this.logger.error("auto-resume failed",ft),this.resetAutoResumingState(),this.clearSessionId(!this.isSessionResumable())})))}processStreamingTermination(xe){return this.logger.info("clear state"),this.resumableSession=!1,this.clearSessionId(!this.isSessionResumable()),(0,T.of)(xe)}clearSessionId(xe=!1){this.sharedStreamingProperties.sessionId=null,this.sharedStreamingProperties.subSessionId=null,xe&&(this.logger.info("clear old streaming sessionId from sharedstorage.json."),this.updateSessionId())}updateResumableSession(xe){this.logger.info("updateResumableSession"),this.resumableSession=!0,this.getResumableState(xe.result,xe.sessions)===J.hY.NOT_RESUMABLE&&(this.resumableSession=!1),this.logger.info("updateResumableSession resumeable",this.resumableSession)}onSessionSetupSuccess(xe){return this.sharedStreamingProperties.sessionId=xe.sessionId,this.sharedStreamingProperties.subSessionId=xe.subSessionId,this.updateSessionId(xe.sessionId,xe.subSessionId),this.sharedStreamingProperties.streams=xe.streams,this.logger.info("streams: "+JSON.stringify(this.sharedStreamingProperties.streams)),this.surveyService.setStreamingSessionId(this.sharedStreamingProperties.sessionId),this.setUDSStreamingProperties(xe),this.clipboardService.setStreamingIds(this.sharedStreamingProperties.sessionId,this.sharedStreamingProperties.subSessionId),"connectivity"===this.autoResumeState?(this.logger.info("connectivity auto resuming, suppress success"),R.t):(this.logger.info("streaming mode is",xe.streamingMode),(0,T.of)(xe))}setUDSStreamingProperties(xe){let lt=null;xe.streamSettings?.length>0&&(lt={width:xe.streamSettings[0]?.videoSettings?.resolution?.width??0,height:xe.streamSettings[0]?.videoSettings?.resolution?.height??0,fps:xe.streamSettings[0]?.videoSettings?.frameRate??0}),this.udsHelperService.streamingProperties={streamedAppName:this.streamingParams?.appName,...this.streamingProperties,streamingResolution:lt,sessionStartTime:Date.now(),gpuType:xe?.gpuType}}onSessionSetupProgress(xe){return this.autoResuming?R.t:(0,T.of)(xe)}onFrameLossError(xe){return this.logger.info("onFrameLossError"),this.pauseStreaming(J.Jt.GFNPC_CLIENT_FRAME_LOSS_TIMEOUT_ERROR).pipe((0,O.T)(lt=>xe),(0,r.W)(lt=>(this.logger.error("pauseStreaming failed",lt),(0,T.of)(xe))))}onFrameLossWarning(xe){return this.logger.info("onFrameLossWarning"),(0,T.of)(xe)}onFrameLossCleared(xe){return this.logger.info("onFrameLossCleared"),(0,T.of)(xe)}updateSessionId(xe,lt){this.logger.info("Update session Id"),this.updateSessionIdsForSharedServices(xe,lt),this.sharedStorageService.writeBlock("streamingSessionId",{sessionId:xe||null}).subscribe(g.l,ht=>{this.logger.error("Failed to update the session Id in shared storage. Error:",ht)})}updateSessionIdsForSharedServices(xe,lt){xe&&(this.gfcHelperService.updateEventDataParamIds({streamSessionId:xe,streamSubSessionId:lt}),this.opportunityHelperService.streamingProperties={sessionId:xe,subSessionId:lt},this.appConfig.featureEnablement?.remoteLogInNative&&this.bridgeService.executeCommand(d.Ts.Common.Remotelog.SessionIdUpdated,{sessionId:xe,subSessionId:lt}).subscribe())}gfnStart(xe,lt){return this.gameSessionAnalyticsService.updateGameLaunchDurations(ve.iVs.StreamerClientSetupDuration,ve.iVs.StreamerConnectionDuration),this.useGridServer2?(this.logger.info("Invoking session manager start"),this.launchStreaming(xe,lt)):this.bridgeService.executeCommand(d.Ts.Gfn.Streaming.Start,xe)}preStartSetup(xe){return this.setClientSupportsVirtualGamepad().pipe((0,y.ZZ)(()=>this.setSupportedHidTypes(xe)),(0,y.ZZ)(()=>this.getGamePadBitmap()))}setClientSupportsVirtualGamepad(){return this.appConfig?.featureEnablement?.virtualController?this.bridgeService.executeCommand(d.Ts.Gfn.Streaming.SetClientSupportsVirtualGamepad,{supportsVirtualGamepad:!0}):(0,T.of)(!1)}setSupportedHidTypes(xe){return this.bridgeService.executeCommand(d.Ts.Gfn.Streaming.SetSupportedHidTypes,{supportedControls:xe})}getGamePadBitmap(){return this.bridgeService.executeCommand(d.Ts.Gfn.Streaming.GetGamepadBitmap)}createStreamingStartParams(xe,lt){const ft=[];let ht,Xt;return lt.session?.connectionInfo.forEach(Je=>{Je&&(this.logger.info("media connection info usage:",Je),ft.push({ip:Je.ip,port:Je.port,protocol:Je.protocol,usage:Je.usage,appLevelProtocol:Je.appLevelProtocol,resourcePath:Je.resourcePath}))}),this.logger.info("media connection info length:",ft.length),this.keyboardLayoutCode&&(ht=this.keyboardLayoutCode,Xt=!1),{sessionType:xe.session?d.Or.Gfn.Streaming.SessionType.Resume:d.Or.Gfn.Streaming.SessionType.Launch,cmsId:xe.appId.toString(),appLaunchMode:xe.appLaunchMode,maxLocalPlayers:xe.maxLocalPlayers,zoneName:lt.zoneName,zoneAddress:lt.session?.zoneAddress,accountLinked:xe.accountLinked,sessionId:lt.session?.sessionId,subSessionId:lt.session?.subSessionId,heroImage:xe.heroImage,gameDisplayOwnRating:xe.gameDisplayOwnRating,storeName:xe.storeName,appName:xe.appName,subscriptionLongDesc:xe.subscriptionLongDesc,providerName:xe.providerName,audioModeFormat:xe.audioModeFormat,serverLocation:xe.serverLocation,streamingProfile:{name:xe.streamingProfile?.name,description:xe.streamingProfile?.description,width:lt.session?.monitorSettings[0].widthInPixels,height:lt.session?.monitorSettings[0].heightInPixels,fps:lt.session?.monitorSettings[0].framesPerSecond,maxBitrate:xe.streamingProfile?.maxBitrate,maxBitrateAuto:xe.streamingProfile?.maxBitrateAuto,dataUsage:xe.streamingProfile?.dataUsage,drc:xe.streamingProfile?.drc,vSync:xe.streamingProfile?.vSync,aspectRatio:xe.streamingProfile?.aspectRatio,maxPacketSize:xe.streamingProfile?.maxPacketSize,hdrStreaming:lt.session?.monitorSettings[0].sdrHdrMode===Se.SdrHdrMode.HDR,hdr10PlusGamingData:lt.session?.monitorSettings[0]?.hdr10PlusGamingData,hdrStreamingMode:xe.streamingProfile?.hdrStreamingMode,bitDepth:lt.session.finalizedStreamingFeatures.bitDepth,reflex:lt.session?.finalizedStreamingFeatures.reflex,cloudGsync:lt.session?.finalizedStreamingFeatures.cloudGsync,l4sEnabled:lt.session?.finalizedStreamingFeatures.enabledL4S,supportedHidDevices:lt.session.finalizedStreamingFeatures.supportedHidDevices,profile:xe.streamingProfile?.profile},contentRating:xe.contentRating,eventInfoGuids:{systemInfoGuid:this.systemInfoGuid,streamingProfileGuid:this.streamingProfileGuid},mediaConnectionInfo:ft,configInfo:this.configureStreamingSettingsParameters,hostName:xe.zoneName,gpuName:this.findGpuName(xe.gpuNameMap,lt.session?.gpuType),gpuType:lt.session?.gpuType,keyboardLayout:ht,allowKeyboardLayoutChange:Xt,locale:xe.locale,clientAppVersion:this.appConfig.build.version,supportedControls:xe.supportedControls}}findGpuName(xe,lt){this.logger.info("gpunamemap: ",xe);let ft="";const ht=xe?.findIndex(Xt=>Xt.gpuName===lt);return ht>=0&&(ft=xe[ht].mappedGpuName),ft}gfnPrepare(xe){return this.useGridServer2?this.sessionManagerAdapter.prepare(xe):this.bridgeService.executeCommand(d.Ts.Gfn.Streaming.Prepare,xe)}getActiveSessions(xe){return this.setAuthInfo().pipe((0,y.ZZ)(()=>{const lt={spanData:(0,re.isNil)(xe)?{}:this.distributedTracingUtilService.extractContextFromSpan(xe)};return this.bridgeService.executeCommand(d.Ts.Gfn.Streaming.GetActiveSessions,lt)}))}getSessionInfo(xe,lt){const ft={session:xe,spanData:lt?this.distributedTracingUtilService.extractContextFromSpan(lt):{}};return this.bridgeService.executeCommand(d.Ts.Gfn.Streaming.GetSessionInfo,ft)}createStartParameters(xe,lt,ft,ht){const Xt=(0,re.pick)(xe,["appId","appLaunchMode","frameStatsEnabled","summaryStatsEnabled","maxLocalPlayers","advancedLatencyOptimization","networkPacketCaptureEnabled","metaData","frameLossWarningTimeout","frameLossErrorTimeout","address","serverType","port","partnerCustomData","streamingProfile","locale","accountLinked","persistingInGameSettings","gameShortName","networkSessionId","audioModeFormat","supportedControls","heroImage","gameDisplayOwnRating","storeName","appName","subscriptionLongDesc","providerName","zoneName","userAge","serverLocation","gpuNameMap","streamingDisplayDataInfo"]);this.keyboardLayoutCode&&(Xt.keyboardLayout=this.keyboardLayoutCode,Xt.allowKeyboardLayoutChange=!1),Xt.contentRating=this.startParamsContentRating,Xt.refreshAuthToken=ht,Xt.metaData.ClientImeSupport=this.appConfig.featureEnablement.serverIME?"0":"1";const Ht=this.streamingProfileService.getCurrentPhysicalResolution();return Ht&&(Xt.metaData.clientPhysicalResolution=JSON.stringify(Ht)),Xt.session=lt,Xt.spanData=ft,Xt}start(xe,lt,ft=!1){this.streamingSpan=this.distributedTracingUtilService.startSpan(ue.pB.StartStreaming,this.gameSessionDistributedTracingService.getCurrentActiveSpan()),this.isResume=!(0,re.isNil)(xe),this.gameSessionAnalyticsService.setResumeType(this.resumeType);const ht=this.createStartParameters(this.streamingParams,xe,this.distributedTracingUtilService.extractContextFromSpan(this.streamingSpan),lt),{partnerCustomData:Xt,...Ht}=ht;return this.logger.info("start",Ht),ft||(this.sessionStartAttempts+=1),this.gfnStart(ht,this.streamingSpan).pipe((0,P.M)(Je=>{this.logger.info("gfnStart returned: ",Je),this.wasStreamingRequested=Je}))}setAuthInfo(xe=!1){return this.gfnSdkService.getAuthInfo().pipe((0,y.ZZ)(ft=>ft.authType===se.hT.JWT?(0,T.of)({tokenType:ve.tS_.NVB_AUTH_JWT,token:ft.authToken}):this.idmService.getAuthToken(xe,this.streamingSpan).pipe((0,O.T)(ht=>({tokenType:ve.tS_.NVB_AUTH_JWT_GFN,token:ht.token})))),(0,y.ZZ)(ft=>this.bridgeService.executeCommand(d.Ts.Gfn.Streaming.SetAuthInfo,ft)))}startSessionsPollingSpan(xe){return this.distributedTracingUtilService.startSpan(xe,this.gameSessionDistributedTracingService.getCurrentActiveSpan())}getSessionState(xe){if(xe){this.logger.info("Recovering active session from session result Info.");const lt=xe.sessions?xe.sessions:[],ft=this.getResumableState(xe.result,lt);return this.logger.info("resumable state",xe,ft),(0,T.of)({resultInfo:xe.result,sessions:lt,resumableState:ft})}{this.logger.info("pollActiveSessions");const lt=this.startSessionsPollingSpan(ue.pB.GetActiveSessions);return this.useGridServer2?this.sessionManagerAdapter.getActiveSessions(lt).pipe((0,O.T)(ft=>this.processGetActiveSessionResult(ft)),(0,c.$)(),(0,P.M)(()=>this.distributedTracingUtilService.closeSpan(lt))):this.getActiveSessions(lt).pipe((0,y.ZZ)(ft=>this.activeSessionsEvent$),(0,O.T)(ft=>this.processGetActiveSessionResult(ft)),(0,c.$)(),(0,P.M)(()=>this.distributedTracingUtilService.closeSpan(lt)))}}processGetActiveSessionResult(xe){this.logger.info("activeSessionResultInfo: ",xe);const lt=this.getResumableState(xe.result,xe.sessions);return this.logger.info("resumable state",xe,lt),{resultInfo:xe.result,sessions:xe.sessions,resumableState:lt}}setupSession(xe){if(this.logger.info("setupSession",xe),(0,re.isNil)(xe))throw new Error("Invalid session state");const lt=(0,re.get)(xe,"resultInfo.result"),ft={error:!this.isSuccess(lt),result:lt};if(ft.error)return this.logger.error("unexpected result code in sessions",ft.result),(0,T.of)(ft);const ht=xe.sessions;let Xt=ht.length;const Ht=[];for(const tt of ht)tt.appId===this.streamingParams.appId?tt.status!==J.TP.NVB_SESSION_INITIALIZING?(this.logger.info("resuming session",tt.sessionId),Xt--,ft.sessionId=tt.sessionId,ft.appLaunchMode=tt.appLaunchMode):(this.logger.info("found session in initializing state, stopping it"),Ht.push(tt.sessionId)):Ht.push(tt.sessionId);this.logger.info("stopEventsToWaitFor",Xt,ft.sessionId);let Je=(0,T.of)(ft);if(Xt>0){const tt=(0,B.H)(Ht).pipe((0,P.M)(rt=>this.logger.info("Stopping session ",rt)),(0,y.ZZ)(rt=>this.stopStreamingInternal(rt)),(0,r.W)(rt=>(this.logger.error("Caught error while stopping stream ",rt),(0,T.of)(null))));Je=this.stopEvent$.pipe((0,M.S)(Xt),(0,a.u)(ft)),tt.subscribe(rt=>this.logger.info("Stopped session: ",rt),rt=>{this.logger.error("Failed to stop session: ",rt),this.gameSessionAnalyticsService.handleGameLaunchFailure({status:ve.fbu.HTTPError,errorDetails:rt&&rt.status?rt.status.toString():""})},()=>this.logger.info("Finished stopping all sessions"))}return Je}sessionCleanup(xe){return this.getSessionState(xe).pipe((0,y.ZZ)(lt=>this.setupSession(lt)))}isSuccess(xe){return xe===J.b5.NVB_R_SUCCESS||xe===J.b5.NVB_R_UPGRADE_RECOMMENDED||xe===J.b5.NVB_R_NO_ACTIVE_SESSION_FOUND||xe===J.b5.NVB_R_SESSION_LIMIT_REACHED}getResumableState(xe,lt){if(xe.result===J.b5.NVB_R_AUTH_ERR_TOKEN_NOT_UPDATED)return this.logger.info("getResumableState - token not updated"),J.hY.NO_AUTH_TOKEN;if(!this.isSuccess(xe.result))return this.logger.info("getResumableState - failure",xe.result),J.hY.NOT_RESUMABLE;for(const ft of lt)if(ft.appId===this.streamingParams.appId&&this.isResumableSessionState(ft))return this.logger.info("getResumableState - found resumable state"),J.hY.RESUMABLE;return this.logger.info("getResumableState - no resumable sessions found"),J.hY.NOT_RESUMABLE}isResumableSessionState(xe){return xe.status===J.TP.NVB_SESSION_READY_FOR_CONNECT||xe.status===J.TP.NVB_SESSION_PAUSED_INTENTIONAL||xe.status===J.TP.NVB_SESSION_PAUSED_UNINTENTIONAL||xe.status===J.TP.NVB_SESSION_STREAMING}stopStreamingInternal(xe,lt){return this.logger.info("calling stopstreaming internal"),this.useGridServer2?this.wasStreamingRequested?this.bridgeService.executeCommand(d.Ts.Gfn.Streaming.Stop,{session:xe,reasonCode:lt}):this.sessionManagerAdapter.stop(xe,lt):this.setAuthInfo().pipe((0,y.ZZ)(()=>this.bridgeService.executeCommand(d.Ts.Gfn.Streaming.Stop,{session:xe,reasonCode:lt})))}pauseStreamingInternal(xe){return this.bridgeService.executeCommand(d.Ts.Gfn.Streaming.PauseStreaming,{reasonCode:xe})}gfnResume(){if(this.logger.info("gfnResume invoked"),this.useGridServer2){this.logger.info("Invoking session manager resume");const xe=this.createStartParameters(this.streamingParams,this.sharedStreamingProperties.sessionId),lt=this.launchStreaming(xe).pipe((0,f.p)(ht=>!!ht)),ft=this.streamingEvent$.pipe((0,f.p)(ht=>ht.event===J.CW.SESSION_RESUME_FAILURE||ht.event===J.CW.STREAMING_STOPPED),(0,i.s)(1),(0,y.ZZ)(ht=>(0,X.$)(ht)));return(0,H.O4)(lt,ft)}return(0,N.zV)([this.networkConfigurationService.networkSessionId$,this.setAuthInfo()]).pipe((0,i.s)(1),(0,y.ZZ)(([xe,lt])=>this.bridgeService.executeCommand(d.Ts.Gfn.Streaming.Resume,{networkSessionId:xe})))}launchStreaming(xe,lt){return this.preStartSetup(xe.supportedControls).pipe((0,y.ZZ)(ft=>(this.logger.info("gfn start bitmap: ",ft),xe.remoteControllersBitmap=ft,this.sessionRequested=!0,this.sessionManagerAdapter.startOrResume(xe,lt))),(0,y.ZZ)(ft=>{if(this.logger.info("sessionStartResumeResult in launchStreaming: ",ft),ft?.code===Se.ScErrorCode.Success){const ht=this.createStreamingStartParams(xe,ft);return this.logger.info("launchStreamParameters: ",ht),this.bridgeService.executeCommand(d.Ts.Gfn.Streaming.StartStreaming,ht)}return(0,T.of)(!1)}))}sendResumeFailureTelemetryData(xe){this.gameSessionAnalyticsService.handleGameLaunchFailure({isResume:!0,status:xe.status,errorDetails:xe.errorDetails})}shouldDeleteSession(xe){this.logger.info("shouldDeleteSession eventInfo is: ",xe);let lt=!1;return!xe.isResumable&&0===xe.streamStopReason&&(lt=!0),lt}resetStreamingServiceFlags(){this.isVideoReceived=!1,this._hasFirstFrameBeenReceived=!1,this.isStreaming=!1,this.resumableSession=!1,this.wasStreamingRequested=!1,this.sharedStreamingProperties={sessionId:null,subSessionId:null},this.isResume=!1,this.autoResumeState="none",this.sessionStartAttempts=0,this.isAutoResumedSession=!1,this.prevTerminatedInfo=null,this.hasSessionTimedOut=!1,this.isAuthTokenRefreshedOnce=!1}stopStreaming(xe){if(this.clipboardAvailableSub?.unsubscribe(),this.clipboardInitSub?.unsubscribe(),this.logger.info("stop streaming called, wasStreamingStarted:",this.wasStreamingRequested," isStreaming:",this.isStreaming," isSessionResumable:",this.isSessionResumable()," isSessionRequested:",this.sessionRequested),!(this.wasStreamingRequested||this.isStreaming||this.isSessionResumable()||this.sessionRequested))return this.clearSessionId(!0),(0,T.of)(!0);let lt=this.streamingEvent$.pipe((0,f.p)(ft=>ft.event===J.CW.STREAMING_TERMINATED||ft.event===J.CW.STOP_RESULT||ft.event===J.CW.SESSION_STOPPED));return this.networkStatus.isOnline||(this.logger.info("Stop Streaming when user is offline"),lt=(0,T.of)(this.useGridServer2?{event:J.CW.STREAMING_STOPPED}:{event:J.CW.STREAMING_TERMINATED})),(0,L.yU)(this.stopStreamingInternal(this.sharedStreamingProperties.sessionId,xe),lt).pipe((0,c.$)(),(0,O.T)(ft=>ft[0]),(0,r.W)(ft=>(this.logger.error("Caught error while stopping the streaming",ft),(0,T.of)(!1))))}pauseStreaming(xe){return this.logger.info("pause streaming called, isStreaming:",this.isStreaming),this.pauseStreamingInternal(xe)}autoResumePausedStreaming(){if(this.autoResuming)return this.logger.info("autoResumePausedStreaming: already running auto resume, state =",this.autoResumeState),(0,T.of)(!0);const xe=this.sharedStreamingProperties.sessionId;return this.resumableSession&&xe?(this.logger.info("autoResumePausedStreaming: sessionId =",xe),this.autoResume("pauseResume")):(this.logger.error(`autoResumePausedStreaming: invalid state, resumableSession = ${this.resumableSession} sessionId = ${xe}`),(0,X.$)(new ie.U))}getPrepareParameters(xe){let lt=J.qF.NVB_PROFILE_GAMING_1080P_60FPS;(this.windowService.window.screen.height<1080||this.windowService.window.screen.width<1920)&&(lt=J.qF.NVB_PROFILE_GAMING_720P_60FPS);const ft=(0,re.pick)(xe,["address","serverType","port","deviceId","advancedLatencyOptimization","directInput","streamingProfile","appName","locale"]);return this.clientHeaderService.getCommonHeaders({withClientId:"lcars"}).pipe((0,O.T)(ht=>{const Xt=Object.entries(ht).map(([Je,tt])=>({headerName:Je,headerValue:tt instanceof Array?tt[0]:tt}));return{...ft,profile:lt,cmsId:xe.appId.toString(),shortName:xe.gameShortName,clientAppVersion:this.appConfig.build.version,clientHeaders:Xt}}))}configureStreamingSettings(xe){return this.mergeConfigureStreamingSettings(xe),this.sessionManagerAdapter.configureSessionSettings(this.configureStreamingSettingsParameters).pipe((0,y.ZZ)(()=>this.bridgeService.executeCommand(d.Ts.Gfn.Streaming.ConfigureStreamingSettings,this.configureStreamingSettingsParameters)))}mergeConfigureStreamingSettings(xe){xe.gxtOverrideData&&(this.configureStreamingSettingsParameters.gxtOverrideData=xe.gxtOverrideData),null!=xe.isInternalUser&&(this.configureStreamingSettingsParameters.isInternalUser=xe.isInternalUser),xe.overrideData&&(this.configureStreamingSettingsParameters.overrideData=xe.overrideData),xe.clientConfigOverride&&(this.configureStreamingSettingsParameters.clientConfigOverride=xe.clientConfigOverride)}startStreaming(xe){return this.streamingParams=xe,this.hasSessionTimedOut&&(this.hasSessionTimedOut=!1,this.cancelTimerSubject.next(!0)),this.sessionStartAttempts=0,this.getPrepareParameters(xe).pipe((0,P.M)(lt=>this.logger.info("prepare params",lt)),(0,y.ZZ)(lt=>this.gfnPrepare(lt)),(0,y.ZZ)(lt=>this.useGridServer2?(0,T.of)(!0):this.setAuthInfo()),(0,y.ZZ)(lt=>this.processPartnerData()),(0,y.ZZ)(lt=>this.updateKeyboardLayout()),(0,y.ZZ)(lt=>this.updateStreamingContentRating()),(0,y.ZZ)(lt=>{const ft=this.sessionManagerAdapter?.getResumableSessionId(xe.appId);return this.gameSessionAnalyticsService.setWasStartedWithResume(!!ft),this.start(ft)}))}processPartnerData(){let xe=!1;const lt=this.deeplinkHelperService.getDeeplinkPartnerData();return lt&&(this.logger.info("Found partner-data in play-game deeplink"),this.streamingParams.metaData.partnerData=lt,xe=!0),this.gfnSdkService.isThisAGFNSDKSession()?(0,N.zV)([this.gfnSdkService.getPartnerData(),this.gfnSdkService.getPartnerSecureData()]).pipe((0,O.T)(([ft,ht])=>(ft&&ft.length>0?(this.streamingParams.metaData.partnerData=ft,this.logger.info("partnerData passed from GFN SDK"),xe=!0):this.logger.info("No partnerData passed from GFN SDK"),ht&&ht.length>0?(this.streamingParams.partnerCustomData=ht,this.logger.info("partnerSecureData passed from GFN SDK"),xe=!0):this.logger.info("No partnerSecureData passed from GFN SDK"),xe))):(xe||this.logger.info("No partnerData and partnerSecureData present"),(0,T.of)(xe))}isSessionResumable(){return this.resumableSession}isResumed(){return this.isResume}terminateConnectivityAutoResume(){this.terminatingConnectivityAutoResume$.next()}resume(){return this.logger.info("resuming...."),this.getSessionState().pipe((0,y.ZZ)(xe=>{if(this.resumableSession=xe.resumableState===J.hY.RESUMABLE,this.resumableSession)return this.logger.info("resumable session found"),this.isAutoResumedSession=!1,this.isResume=!0,this.gameSessionAnalyticsService.setWasStartedWithResume(!0),this.gameSessionAnalyticsService.setResumeType(this.resumeType),this.gfnResume().pipe((0,P.M)(lt=>{this.wasStreamingRequested=lt}));{this.logger.error("no resumable sessions found");const lt=new ie.U;return this.sendResumeFailureTelemetryData({status:ve.fbu.ClientError,errorDetails:lt.result.toString()}),(0,X.$)(lt)}}))}static{this.\u0275fac=function(lt){return new(lt||It)(n.KVO(l.J6),n.KVO(l.NZ),n.KVO(l.s7),n.KVO(me.yQ),n.KVO(ne.s),n.KVO(G.z),n.KVO(ve.k_2),n.KVO(se.DL),n.KVO(ve.Vk6),n.KVO(ve.qr_),n.KVO(l.CF),n.KVO(ue.Z1),n.KVO(ve.uUB),n.KVO(ve.q8U),n.KVO(W.Fw),n.KVO(ve.Icg),n.KVO($.qQ),n.KVO(le.lS),n.KVO(l.CF),n.KVO(ve.xfC),n.KVO(l.zW),n.KVO(ve.wCY),n.KVO(ve.WWE),n.KVO(ve.y1M),n.KVO(ve.FFI),n.KVO(ve.Tzh),n.KVO(ve.umq),n.KVO(Ve))}}static{this.\u0275prov=n.jDH({token:It,factory:It.\u0275fac,providedIn:"root"})}}return It})()},90851:(Bt,z,s)=>{"use strict";s.r(z),s.d(z,{BrowserModule:()=>re});var n=s(61142),l=s(14354),d=s(51006),v=s(17617),S=s(99469),y=s(23812),f=s(80583),O=s(4208),P=s(75707),_=s(20924),i=s(1229),r=s(58527),a=s(96542),c=s(43664),m=s(52834),M=s(15332),D=s(55962),I=s(3457),U=s(99204),V=s(97979),T=s(29370),N=s(51635);function L(ie,ve){1&ie&&r.nrm(0,"mat-icon",5)}let E=(()=>{class ie{constructor(){}static{this.\u0275fac=function(se){return new(se||ie)}}static{this.\u0275cmp=r.VBU({type:ie,selectors:[["nv-browser-item"]],inputs:{item:"item",activeItem:"activeItem",noChevron:"noChevron"},decls:6,vars:5,consts:[["matRipple","",1,"browser-item","hig-button-overlay"],["fxLayout","row","fxLayoutAlign","start center",1,"browser-card"],[1,"icon-normal","icon-details",3,"svgIcon"],[1,"font-body1","font-color-primary"],["svgIcon","chevron_right","class","icon-normal",4,"ngIf"],["svgIcon","chevron_right",1,"icon-normal"]],template:function(se,Z){1&se&&(r.j41(0,"mat-card",0)(1,"mat-card-content",1),r.nrm(2,"mat-icon",2),r.j41(3,"span",3),r.EFF(4),r.k0s(),r.DNE(5,L,1,0,"mat-icon",4),r.k0s()()),2&se&&(r.AVh("focus",Z.activeItem===Z.item),r.R7$(2),r.Y8G("svgIcon",Z.item.icon),r.R7$(2),r.JRh(Z.item.name),r.R7$(),r.Y8G("ngIf",!Z.noChevron))},dependencies:[n.bT,I.DJ,I.sA,V._m,V.Rm,T.An,N.r6],styles:[".browser-item[_ngcontent-%COMP%]{width:512px;height:48px;padding:0;box-sizing:border-box;background-color:transparent;box-shadow:none;border-radius:0}.icon-details[_ngcontent-%COMP%]{width:24px;height:24px}.isLtr[_nghost-%COMP%] .icon-details[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .icon-details[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .icon-details[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .icon-details[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .icon-details[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .icon-details[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.browser-card[_ngcontent-%COMP%]{width:100%;text-align:center;word-wrap:break-word;padding:12px 16px}.browser-card[_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]{width:24px;height:24px;font-size:24px}.browser-card[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{width:calc(100% - 64px);padding:0 8px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.isLtr[_nghost-%COMP%] .browser-card[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .browser-card[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{text-align:left}html[dir=ltr][_ngcontent-%COMP%] .browser-card[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{--dummy0: 0;text-align:left}.isRtl[_nghost-%COMP%] .browser-card[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .browser-card[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{text-align:right}html[dir=rtl][_ngcontent-%COMP%] .browser-card[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{--dummy0: 0;text-align:right}"]})}}return ie})();function g(ie,ve){if(1&ie){const ue=r.RV6();r.j41(0,"nv-browser-item",8),r.bIt("dblclick",function(){const Z=r.eBV(ue).$implicit,Se=r.XpG(2);return r.Njj(Se.goDownOneLevel(Z))}),r.k0s()}if(2&ie){const ue=ve.$implicit,se=r.XpG(2);r.Y8G("item",ue)("activeItem",se.browserSelection)("noChevron","file"===ue.icon)}}function R(ie,ve){if(1&ie){const ue=r.RV6();r.j41(0,"div",6)(1,"nv-virtual-grid-container",7),r.mxI("selectedItemChange",function(Z){r.eBV(ue);const Se=r.XpG();return r.DH7(Se.browserSelection,Z)||(Se.browserSelection=Z),r.Njj(Z)}),r.bIt("selectedItemChange",function(Z){r.eBV(ue);const Se=r.XpG();return r.Njj(Se.selectedItemChanged(Z))})("keydown",function(Z){r.eBV(ue);const Se=r.XpG();return r.Njj(Se.selectBrowserItem(Z))}),r.DNE(2,g,1,3,"ng-template",null,0,r.C5r),r.k0s()()}if(2&ie){const ue=r.sdS(3),se=r.XpG();r.R7$(),r.Y8G("useFocusOutline",!1)("items",se.dataItems),r.R50("selectedItem",se.browserSelection),r.Y8G("itemHeight",48)("topBottomPad",0)("marginBottom",0)("itemWidth",480)("marginRight",0)("rightMarginReq",!1)("template",ue)}}function B(ie,ve){1&ie&&r.nrm(0,"mat-spinner",11)}function X(ie,ve){if(1&ie&&(r.j41(0,"div",9),r.DNE(1,B,1,0,"mat-spinner",10),r.k0s()),2&ie){const ue=r.XpG();r.R7$(),r.Y8G("ngIf",ue.waiting)}}const J=[{path:"",component:(()=>{class ie{constructor(ue,se,Z,Se,Ce,Be,Xe,He,Me,Q){this.loggingService=ue,this.route=se,this.navigationService=Z,this.osService=Se,this.bridgeService=Ce,this.translateService=Be,this.dialog=Xe,this.appBarService=He,this.galleryService=Me,this.igoConfig=Q,this.destroy$=new f.B7,this.includeFiles=!1,this.dataItems=[],this.preFetchedItems=[],this.enableNetworkDrives=!1,this.waiting=!1,this.error=!1,this.getFolderListing$=void 0,this.enumDrives=void 0,this.checkMarkVisible=!1,this.saveChangeDisabled=!0,this.logger=this.loggingService.getLogger("NvBrowser")}ngOnInit(){this.title=this.route.snapshot.paramMap.get("title"),this.startFolder=this.route.snapshot.paramMap.get("location"),this.source=this.route.snapshot.paramMap.get("source"),this.caller=this.route.snapshot.paramMap.get("caller"),this.includeFiles="true"===this.route.snapshot.paramMap.get("files"),this.setupReturn(this.caller),this.dirSeparator=this.osService.getDirSeparator(),this.windows=this.osService.getOSType()===S.aI.Windows,this.systemName=this.translateService.instant(this.windows?"browser.ThisPC":"browser.ThisMac"),this.enableExternalDrives=JSON.parse(this.route.snapshot.paramMap.get("external")),this.disableSel=!1,"GFE"===this.igoConfig.branding&&(this.enableNetworkDrives=!0),("undefined"===this.startFolder||""===this.startFolder)&&(this.startFolder=this.galleryService.getVideoFolder()),this.initialFolder=this.startFolder;const ue=this.initialFolder.length-1;ue>0&&"\\"===this.initialFolder[ue]&&(this.initialFolder=this.initialFolder.slice(0,-1)),this.logger.info("Source: ",this.source),this.logger.info("External drives are valid: ",this.enableExternalDrives),this.logger.info("Network drives are valid: ",this.enableNetworkDrives),this.logger.info("Display files also: ",this.includeFiles),this.appBarService.setAll({title:this.title,navButtonArrow:!0,icons:[{id:"closeIgo",icon:"close",tooltip:"tooltips.Close"}]}),this.appBarService.actionClicked$.pipe((0,O.Q)(this.destroy$)).subscribe(Z=>{"nav"===Z?this.onBackClicked():"check"===Z&&this.onUseLocClicked()}),this.navigationService.escapeEvent().pipe((0,O.Q)(this.destroy$)).subscribe(()=>{this.onBackClicked()}),this.bridgeService.executeCommand(_.Ts.Common.Gallery.EnumerateDrives).subscribe(Z=>{this.enumDrives=Z,this.logger.info("Enumerated Drives: ",Z),this.getFolderData(this.startFolder)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.unsubscribe()}clearData(){this.waiting=!0,this.preFetchedItems.length=0,this.dataItems=this.preFetchedItems.slice(),this.browserSelection=void 0}getFolderData(ue){this.clearData(),this.getFolderListing$&&(this.getFolderListing$.unsubscribe(),this.getFolderListing$=void 0);const Z=this.bridgeService.executeCommand(_.Ts.Common.Gallery.GetFolderListing,{directory:ue,excludeDirectoryType:this.source===i.QAj.Temporary?_.Or.Common.Gallery.ExcludeDirectoryType.hiddenAndEmpty:_.Or.Common.Gallery.ExcludeDirectoryType.hidden}).pipe((0,O.Q)(this.destroy$));this.getFolderListing$=Z.subscribe(Se=>{setTimeout(()=>{this.preFetchedItems.length=0,Se.directories.forEach(Ce=>{this.shouldFolderBeExcluded(ue,Ce)||this.preFetchedItems.push({name:Ce,icon:"folder"})}),this.includeFiles&&Se.files.forEach(Ce=>{this.shouldFileBeExcluded(Ce.name)||this.preFetchedItems.push({name:Ce.name,icon:"file"})}),this.dataItems=this.preFetchedItems.slice(),this.waiting=!1,this.error=!1},0)},Se=>{this.logger.info("GetFolderListing error: ",Se),this.waiting=!1,this.error=!0})}selectedItemChanged(ue){this.browserSelection=ue,this.controlCheckmark()}goDownOneLevel(ue){const se=this.startFolder===this.systemName;if(0===this.startFolder.length||se)if(se&&!this.windows)this.startFolder=this.dirSeparator+ue.name;else{this.disableSel=!1,this.startFolder="";const Z=ue.name.lastIndexOf(this.dirSeparator);this.startFolder=-1===Z?ue.name:ue.name.substr(0,Z)}else this.startFolder=this.startFolder+this.dirSeparator+ue.name;this.browserSelection=void 0,this.controlCheckmark(),this.getFolderData(this.startFolder)}goUpOneLevel(){if(this.startFolder===this.systemName)return;if(this.isRootOfDrive(this.startFolder))return void(this.windows?(this.logger.info("At root of drive: ",this.startFolder),this.disableSel=!0,this.processDrives()):(this.startFolder=this.systemName,this.getFolderData("/")));const ue=this.startFolder.lastIndexOf(this.dirSeparator);this.startFolder=this.startFolder.substr(0,ue),this.browserSelection=void 0,this.controlCheckmark(),this.getFolderData(this.startFolder)}processUpButton(ue){("Enter"===ue.key||" "===ue.key)&&this.goUpOneLevel()}controlCheckmark(){const ue=this.saveChangeDisabled,se=this.buildFolder();this.saveChangeDisabled=se===this.initialFolder,ue!==this.saveChangeDisabled&&(this.checkMarkVisible?(this.appBarService.deleteIcon("check"),this.checkMarkVisible=!1):(this.appBarService.addIcon({id:"check",icon:"check",tooltip:"tooltips.Done"}),this.checkMarkVisible=!0))}buildFolder(){let ue="";return this.startFolder!==this.systemName&&(ue=this.startFolder,this.browserSelection&&ue[ue.length-1]!==this.dirSeparator&&(ue+=this.dirSeparator)),this.browserSelection&&(!this.windows&&this.startFolder===this.systemName&&(ue+=this.dirSeparator),ue+=this.browserSelection.name),ue}onUseLocClicked(){const ue=this.buildFolder();ue!==this.initialFolder&&"broadcast"!==this.caller?this.dialog.openAlertDialog({title:"confirmation.confirmFileLocationTitle",query:"confirmation.confirmFileLocationChange",queryParam:{arg:ue},action1:"confirmation.NotRightNow",action2:"confirmation.yes"}).pipe((0,O.Q)(this.destroy$),(0,P.ZZ)(Z=>Z.afterClosed())).subscribe(Z=>{Z===i.SFy.Action2?this.onUseClick(ue):this.onBackClicked()}):this.onUseClick(ue)}setupReturn(ue){switch(ue){case"storage":this.returnPath="../settings/storage";break;case"broadcast":this.returnPath="../settings/broadcast";break;case"perfmon":this.returnPath="../performance/performance-menu";break;default:this.logger.error("Missing return path! ",ue)}this.logger.info("Return to: ",this.returnPath)}onUseClick(ue){this.navigationService.navigate([this.returnPath,{folder:ue,source:this.source}],{relativeTo:this.route.parent,skipLocationChange:!0},i.jby.settings)}onBackClicked(){this.logger.info("Back clicked"),this.navigationService.navigate([this.returnPath],{relativeTo:this.route.parent,skipLocationChange:!0},i.jby.settings)}selectBrowserItem(ue){("Enter"===ue.key||" "===ue.key)&&this.browserSelection&&this.goDownOneLevel(this.browserSelection)}isRootOfDrive(ue){return ue.split(this.dirSeparator).length===(this.windows?1:2)}shouldFolderBeExcluded(ue,se){if(se.startsWith("$"))return!0;const Z=ue===this.dirSeparator?ue+se:ue+this.dirSeparator+se;let Se=!1;return this.enumDrives&&this.enumDrives.drives.forEach(Ce=>{Ce.name!==Z||"fixed"===Ce.type||this.enableExternalDrives&&"external"===Ce.type||(Se=!0)}),Se}shouldFileBeExcluded(ue){const se=ue.toLowerCase(),Z=se.lastIndexOf(".");return-1!==Z&&"png"!==se.slice(Z+1)}getDriveImage(ue){switch(ue){case"network":return"browser_diskdrive_network";case"removable":return"browser_disk_drive_removable";default:return"browser_diskdrive"}}processDrives(){this.preFetchedItems.length=0,this.enumDrives&&this.enumDrives.drives.forEach(ue=>{if("fixed"===ue.type||this.enableExternalDrives&&"external"===ue.type||this.enableNetworkDrives&&"network"===ue.type){let Z=ue.name;const Se=ue.name.length-1;ue.name[Se]===this.dirSeparator&&(Z=ue.name.slice(0,Se)),this.preFetchedItems.push({name:Z,icon:this.getDriveImage(ue.type)})}this.startFolder=this.systemName,this.dataItems=this.preFetchedItems.slice(),this.browserSelection=this.dataItems[0]})}static{this.\u0275fac=function(se){return new(se||ie)(r.rXU(S.J6),r.rXU(l.nX),r.rXU(i.o_p),r.rXU(i.aTF),r.rXU(S.NZ),r.rXU(a.c$),r.rXU(i.eo6),r.rXU(i.gZv),r.rXU(i.AFS),r.rXU(i.k$F))}}static{this.\u0275cmp=r.VBU({type:ie,selectors:[["igo-browser"]],decls:6,vars:5,consts:[["browserTemplate",""],["fxLayout","column","fxFlex","",1,"page-padding"],[1,"virtual-grid"],["caller","browser",1,"text-color",3,"clicked","keydown","pathLocation","openFunction","disabled"],["fxFlex","grow",4,"ngIf"],["fxLayoutAlign","center center","fxFlex","grow",4,"ngIf"],["fxFlex","grow"],["tabIndex","0","fxFlex","","fxLayout","row",1,"virtual-grid","text-color",3,"selectedItemChange","keydown","useFocusOutline","items","selectedItem","itemHeight","topBottomPad","marginBottom","itemWidth","marginRight","rightMarginReq","template"],[3,"dblclick","item","activeItem","noChevron"],["fxLayoutAlign","center center","fxFlex","grow"],["diameter","40","color","accent",4,"ngIf"],["diameter","40","color","accent"]],template:function(se,Z){1&se&&(r.j41(0,"div",1)(1,"div",2)(2,"nv-folder-browser",3),r.bIt("clicked",function(){return Z.goUpOneLevel()})("keydown",function(Ce){return Z.processUpButton(Ce)}),r.k0s()(),r.nrm(3,"nv-divider",2),r.DNE(4,R,4,10,"div",4)(5,X,2,1,"div",5),r.k0s()),2&se&&(r.R7$(2),r.Y8G("pathLocation",Z.startFolder)("openFunction",!1)("disabled",Z.disableSel),r.R7$(2),r.Y8G("ngIf",!Z.waiting&&!Z.error),r.R7$(),r.Y8G("ngIf",Z.waiting||Z.error))},dependencies:[n.bT,c.$,m.I,M.O,D.e,I.DJ,I.sA,I.UI,U.LG,E],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.location-pad[_ngcontent-%COMP%], .virtual-grid[_ngcontent-%COMP%]{padding:0}.individual-item-padding[_ngcontent-%COMP%]{padding:12px 16px}.page-padding[_ngcontent-%COMP%]{padding-top:16px;padding-bottom:16px}[_nghost-%COMP%]{padding:0}.text-color[_ngcontent-%COMP%]{color:var(--folderbrowser-text-color)}"]})}}return ie})(),data:{level:9}}];let re=(()=>{class ie{static{this.\u0275fac=function(se){return new(se||ie)}}static{this.\u0275mod=r.$C({type:ie})}static{this.\u0275inj=r.G2t({imports:[n.MD,y.G,d.YF,v.i,l.iI.forChild(J),(0,S.BU)()]})}}return ie})()},18880:(Bt,z,s)=>{"use strict";s.d(z,{Q6:()=>ue,SF:()=>ve});var n=s(26537),l=s(58527),d=s(99469),v=s(61142),S=s(3457),y=s(28139),f=s(56106),O=s(47973),P=s(51394),_=s(99204),i=s(20288),r=s(4418),a=s(31308),c=s(54676),m=s(98504),M=s(96542);const D=se=>({spinnerContent:se}),I=()=>({progressBarContent:!0}),U=se=>({background:se});function V(se,Z){if(1&se&&l.nrm(0,"mat-progress-spinner",10),2&se){const Se=l.XpG(2);l.Y8G("diameter",48)("mode",Se.data.progressMode)("value",Se.value)}}function T(se,Z){if(1&se&&(l.j41(0,"div",7),l.DNE(1,V,1,3,"mat-progress-spinner",8),l.nrm(2,"span",9),l.nI1(3,"translate"),l.k0s()),2&se){const Se=l.XpG();l.Y8G("ngClass",l.eq3(6,D,Se.data.spinner)),l.R7$(),l.Y8G("ngIf",Se.data.spinner),l.R7$(),l.Y8G("innerHtml",l.i5U(3,3,Se.data.query,Se.data.queryParam),l.npT)}}function N(se,Z){if(1&se){const Se=l.RV6();l.j41(0,"div",20)(1,"mat-checkbox",21),l.mxI("ngModelChange",function(Be){l.eBV(Se);const Xe=l.XpG().$implicit;return l.DH7(Xe.state,Be)||(Xe.state=Be),l.Njj(Be)}),l.bIt("change",function(){l.eBV(Se);const Be=l.XpG().index,Xe=l.XpG(2);return l.Njj(Xe.onStateChanged(Be))}),l.j41(2,"span",15),l.EFF(3),l.nI1(4,"translate"),l.k0s()()()}if(2&se){const Se=l.XpG().$implicit;l.R7$(),l.R50("ngModel",Se.state),l.R7$(2),l.SpI(" ",l.bMT(4,2,Se.label)," ")}}function L(se,Z){if(1&se&&(l.j41(0,"div"),l.DNE(1,N,5,4,"div",19),l.k0s()),2&se){const Se=Z.$implicit;l.R7$(),l.Y8G("ngIf",Se.label)}}function E(se,Z){if(1&se){const Se=l.RV6();l.j41(0,"div",11),l.nrm(1,"span",12),l.nI1(2,"translate"),l.j41(3,"div")(4,"div",13)(5,"mat-checkbox",14),l.mxI("ngModelChange",function(Be){l.eBV(Se);const Xe=l.XpG();return l.DH7(Xe.masterState,Be)||(Xe.masterState=Be),l.Njj(Be)}),l.bIt("change",function(){l.eBV(Se);const Be=l.XpG();return l.Njj(Be.onStateChanged())}),l.j41(6,"span",15),l.EFF(7),l.nI1(8,"translate"),l.k0s()()(),l.j41(9,"div",16),l.DNE(10,L,2,1,"div",17),l.k0s()(),l.nrm(11,"span",18),l.nI1(12,"translate"),l.k0s()}if(2&se){const Se=l.XpG();l.R7$(),l.Y8G("innerHtml",l.i5U(2,6,Se.data.query,Se.data.queryParam),l.npT),l.R7$(4),l.R50("ngModel",Se.masterState),l.Y8G("indeterminate",Se.checkIndeterminate()),l.R7$(2),l.JRh(l.bMT(8,9,Se.data.state)),l.R7$(3),l.Y8G("ngForOf",Se.data.subActions),l.R7$(),l.Y8G("innerHtml",l.i5U(12,11,Se.data.hint,Se.data.hintParam),l.npT)}}function g(se,Z){if(1&se&&l.nrm(0,"mat-progress-bar",25),2&se){const Se=l.XpG(2);l.Y8G("mode",Se.data.progressMode)("value",Se.value)}}function R(se,Z){if(1&se&&(l.j41(0,"div",26),l.EFF(1),l.k0s()),2&se){const Se=l.XpG(2);l.R7$(),l.SpI("",Se.value,"%")}}function B(se,Z){if(1&se&&(l.j41(0,"div",22),l.nrm(1,"span",12),l.nI1(2,"translate"),l.DNE(3,g,1,2,"mat-progress-bar",23)(4,R,2,1,"div",24),l.k0s()),2&se){const Se=l.XpG();l.Y8G("ngClass",l.lJ4(7,I)),l.R7$(),l.Y8G("innerHtml",l.i5U(2,4,Se.data.query,Se.data.queryParam),l.npT),l.R7$(2),l.Y8G("ngIf",Se.data.progressBar),l.R7$(),l.Y8G("ngIf",Se.data.progressPercentage)}}function X(se,Z){if(1&se&&(l.j41(0,"button",27),l.EFF(1),l.nI1(2,"translate"),l.k0s()),2&se){const Se=l.XpG();l.Y8G("mat-dialog-close",Se.getRetValue1())("ngStyle",l.eq3(5,U,Se.data.action1Color)),l.R7$(),l.SpI(" ",l.bMT(2,3,Se.data.action1)," ")}}function H(se,Z){if(1&se&&(l.j41(0,"button",27),l.EFF(1),l.nI1(2,"translate"),l.k0s()),2&se){const Se=l.XpG();l.Y8G("mat-dialog-close",Se.retVals.Action2)("ngStyle",l.eq3(5,U,Se.data.action2Color)),l.R7$(),l.SpI(" ",l.bMT(2,3,Se.data.action2)," ")}}function J(se,Z){if(1&se&&(l.j41(0,"button",27),l.EFF(1),l.nI1(2,"translate"),l.k0s()),2&se){const Se=l.XpG();l.Y8G("mat-dialog-close",Se.retVals.Action3)("ngStyle",l.eq3(5,U,Se.data.action3Color)),l.R7$(),l.SpI(" ",l.bMT(2,3,Se.data.action3)," ")}}var ve=function(se){return se.Action1="action1",se.Action2="action2",se.Action3="action3",se.Action4="",se}(ve||{});let ue=(()=>{class se{constructor(Se,Ce){this.data=Se,this.localeSerive=Ce,this.masterState=!0,this.retVals=ve,this.direction="ltr",this.value=0,Se.spinner&&(Se.progressBar=!1),void 0===Se.progressMode&&(Se.progressMode="indeterminate"),this.direction=this.localeSerive.isRTLLayoutEnabled?"rtl":"ltr"}set dialogData(Se){this.data=Se}get dialogData(){return this.data}onStateChanged(Se){if(void 0===Se)this.data.subActions.forEach(Ce=>{Ce.state=this.masterState});else{let Ce=!0;this.data.subActions.forEach(Be=>{Be.state&&(Ce=!1)}),this.masterState=!Ce}}getRetValue1(){return this.masterState?this.retVals.Action1:this.retVals.Action4}checkIndeterminate(){if(0===this.data.subActions.length)return!1;let Se=!1;return this.data.subActions.forEach(Ce=>{Ce.state!==this.masterState&&(Se=!0)}),Se}static{this.\u0275fac=function(Ce){return new(Ce||se)(l.rXU(n.Vh),l.rXU(d.iH))}}static{this.\u0275cmp=l.VBU({type:se,selectors:[["nv-hig-alert-dialog"]],inputs:{value:"value",dialogData:"dialogData"},decls:11,vars:11,consts:[[1,"hig-alert-dialog",3,"dir"],["mat-dialog-title","",1,"font-header6"],["mat-dialog-content","","class","font-body2","fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","14px",3,"ngClass",4,"ngIf"],["mat-dialog-content","","class","font-body2","fxLayout","column","fxLayoutAlign","start left","fxLayoutGap","16px",4,"ngIf"],["mat-dialog-content","","class","font-body2","fxLayout","column","fxLayoutAlign","start center","fxLayoutGap","8px",3,"ngClass",4,"ngIf"],["mat-dialog-actions","",3,"align"],["mat-button","","class","font-button2 hig-button",3,"mat-dialog-close","ngStyle",4,"ngIf"],["mat-dialog-content","","fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","14px",1,"font-body2",3,"ngClass"],["color","accent","fxFlex","none",3,"diameter","mode","value",4,"ngIf"],["cdkMonitorSubtreeFocus","",1,"queryText",3,"innerHtml"],["color","accent","fxFlex","none",3,"diameter","mode","value"],["mat-dialog-content","","fxLayout","column","fxLayoutAlign","start left","fxLayoutGap","16px",1,"font-body2"],["cdkMonitorSubtreeFocus","",3,"innerHtml"],[1,"checkbox"],[3,"ngModelChange","change","ngModel","indeterminate"],[1,"font-body2"],[1,"subcheckboxsize"],[4,"ngFor","ngForOf"],[1,"hinttext",3,"innerHtml"],["class","subcheckbox",4,"ngIf"],[1,"subcheckbox"],[3,"ngModelChange","change","ngModel"],["mat-dialog-content","","fxLayout","column","fxLayoutAlign","start center","fxLayoutGap","8px",1,"font-body2",3,"ngClass"],["class","mat-accent",3,"mode","value",4,"ngIf"],["fxLayoutAlign","start start",4,"ngIf"],[1,"mat-accent",3,"mode","value"],["fxLayoutAlign","start start"],["mat-button","",1,"font-button2","hig-button",3,"mat-dialog-close","ngStyle"]],template:function(Ce,Be){1&Ce&&(l.j41(0,"div",0)(1,"span",1),l.EFF(2),l.nI1(3,"translate"),l.k0s(),l.DNE(4,T,4,8,"div",2)(5,E,13,14,"div",3)(6,B,5,8,"div",4),l.j41(7,"div",5),l.DNE(8,X,3,7,"button",6)(9,H,3,7,"button",6)(10,J,3,7,"button",6),l.k0s()()),2&Ce&&(l.FS9("dir",Be.direction),l.R7$(2),l.JRh(l.bMT(3,9,Be.data.title)),l.R7$(2),l.Y8G("ngIf",void 0===Be.data.progressBar&&void 0===Be.data.hint||Be.data.spinner),l.R7$(),l.Y8G("ngIf",Be.data.hint),l.R7$(),l.Y8G("ngIf",Be.data.progressBar),l.R7$(),l.Y8G("align","end"),l.R7$(),l.Y8G("ngIf",Be.data.action1),l.R7$(),l.Y8G("ngIf",Be.data.action2),l.R7$(),l.Y8G("ngIf",Be.data.action3))},dependencies:[v.YU,v.Sq,v.bT,v.B3,S.DJ,S.BO,S.sA,S.UI,y.PW,y.eI,f.BC,f.vS,O.iV,P.ig,_.LG,i.HM,r.So,n.tx,n.BI,n.Yi,n.E7,a.vR,c.tG,m.nM,M.D9],styles:[".spinnerContent[_ngcontent-%COMP%]{overflow:hidden!important}.progressBarContent[_ngcontent-%COMP%]{padding-top:16px}.checkbox[_ngcontent-%COMP%]{margin-bottom:0!important}.subcheckboxsize[_ngcontent-%COMP%]{max-height:240px;overflow-y:auto}.isLtr[_nghost-%COMP%] .subcheckbox[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .subcheckbox[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .subcheckbox[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .subcheckbox[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .subcheckbox[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .subcheckbox[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.hinttext[_ngcontent-%COMP%]{padding-bottom:28px}.queryText[_ngcontent-%COMP%]{white-space:pre-wrap}.hig-alert-dialog[_ngcontent-%COMP%]{background-color:var(--hig-dialog-bg-color)}"]})}}return se})()},28138:(Bt,z,s)=>{"use strict";s.d(z,{U:()=>O});var n=s(61142),l=s(51006),d=s(17617),v=s(99469),S=s(56785),y=s(58527);let O=(()=>{class P{constructor(i){if(i)throw new Error("CoreModule already loaded; Import in root module only.")}static{this.\u0275fac=function(r){return new(r||P)(y.KVO(P,12))}}static{this.\u0275mod=y.$C({type:P})}static{this.\u0275inj=y.G2t({imports:[n.MD,l.YF,d.i,(0,v.BU)(),S.bm]})}}return P})()},1229:(Bt,z,s)=>{"use strict";s.d(z,{Uit:()=>Zr.Ui,V4L:()=>Zr.V4,Dli:()=>ue.D,wzr:()=>ft.wz,T7s:()=>On.T7,J7_:()=>On.J7,gZv:()=>P,lyd:()=>ho.ly,_Cw:()=>V._,$jZ:()=>$r.$,m_A:()=>xe.m_,KUS:()=>Zr.KU,Azv:()=>no.Az,eCB:()=>no.eC,XBk:()=>no.XB,NXI:()=>no.NX,gXb:()=>xe.gX,uk:()=>ti,eo6:()=>jt.e,Rvq:()=>ui.R,O5:()=>On.O5,dJT:()=>fn.dJ,_Fy:()=>pn,XyZ:()=>On.Xy,hot:()=>fn.ho,QAj:()=>jr.QA,yzX:()=>Zr.yz,$iR:()=>Zr.$i,aw6:()=>Zr.aw,D7m:()=>Zr.D7,AFS:()=>T.AF,Wro:()=>jr.Wr,Adt:()=>ar.A,sT2:()=>fn.sT,x_y:()=>gn.x_,P8t:()=>fn.P8,SFy:()=>Ji.SF,f2G:()=>On.f2,pWC:()=>jr.pW,g8X:()=>r.g8,DXY:()=>r.DX,QSC:()=>r.QS,fvX:()=>I.f,EMD:()=>no.EM,Q20:()=>no.Q2,Lxc:()=>no.Lx,Zt_:()=>no.Zt,K_i:()=>no.K_,k$F:()=>ht.k,AHe:()=>Qi.A,xT0:()=>ho.xT,xT8:()=>ho.Qe,rMY:()=>ji,iuc:()=>Zi,f1P:()=>no.f1,TEj:()=>no.TE,NpC:()=>no.Np,hnm:()=>no.hn,oXh:()=>no.oX,YQZ:()=>xe.YQ,LMy:()=>yo.LM,UZ:()=>On.UZ,o_p:()=>gi.o,$0i:()=>gn.$0,p56:()=>ho.p5,zX$:()=>ve.z,xdE:()=>pr,h8x:()=>hi,BO6:()=>pi,aTF:()=>_.a,Ng:()=>On.Ng,Bqk:()=>S.B,Jkt:()=>ft.Jk,mbZ:()=>ft.mb,EdA:()=>ft.Ed,lb6:()=>i.lb,VHt:()=>i.VH,auo:()=>i.au,hc_:()=>i.hc,zET:()=>E.z,si$:()=>no.si,pwE:()=>no.pw,Vq5:()=>no.Vq,VJe:()=>yo.VJ,Btx:()=>On.Bt,jyV:()=>fn.jy,Vlf:()=>xn,Pev:()=>T.Pe,R8Z:()=>Jn,Jr9:()=>We.J,P15:()=>N.P,m$j:()=>Kn,W1J:()=>xe.W1,naB:()=>fn.n,onG:()=>zr,jby:()=>On.jb,rJX:()=>_o.rJ,QYS:()=>i.QY,BKk:()=>_o.BK,O67:()=>On.O6,xRl:()=>bn.x,g7b:()=>Mr,$lC:()=>zo,VuP:()=>cn,SIx:()=>Cn,b4n:()=>Ht,Bni:()=>no.Bn,xkq:()=>Fo.xk}),s(28138);var l=s(80583),d=s(26513),v=s(58527),S=s(11728);let P=(()=>{class si{constructor(ot){this.oscDisplayService=ot,this.actionClicked=new l.B7,this.iconsChanged=new d.t([]),this.titleChanged=new d.t({title:"",params:{}}),this.navButtonChanged=new d.t(""),this.activeChanged=new d.t(!1),this.iconList=[],this.actionClicked$=this.actionClicked.asObservable(),this.icons$=this.iconsChanged.asObservable(),this.title$=this.titleChanged.asObservable(),this.navButton$=this.navButtonChanged.asObservable(),this.active$=this.activeChanged.asObservable()}reset(){this.titleChanged.next({title:"",params:{}}),this.iconsChanged.next([]),this.navButtonChanged.next(""),this.activeChanged.next(!1)}setTitle(ot,Vt={}){this.titleChanged.next({title:ot,params:Vt})}setNavButton(ot){this.navButtonChanged.next(ot)}setNavButtonArrow(){this.setNavButton("arrow_left")}setNavButtonClose(){this.setNavButton("close")}setActive(ot){this.activeChanged.next(ot)}addIcon(ot){this.iconList.push(ot),this.iconsChanged.next(this.iconList)}deleteIcon(ot){const Vt=this.iconList.findIndex(Sn=>Sn.id===ot);-1!==Vt&&(this.iconList.splice(Vt,1),this.iconsChanged.next(this.iconList))}setIcons(ot){this.iconList=ot.slice(),this.iconsChanged.next(this.iconList)}setAll(ot){this.reset(),this.setTitle(ot.title,ot.params),this.setActive(ot.active),this.setIcons(ot.icons),ot.navButton&&""!==ot.navButton?this.setNavButton(ot.navButton):ot.navButtonArrow?this.setNavButtonArrow():ot.navButtonClose&&this.setNavButtonClose()}clearIcons(){this.iconList=[],this.iconsChanged.next(this.iconList)}getIcons(){return this.iconList}clickIcon(ot){"closeIgo"===ot&&this.closeIgo(),this.actionClicked.next(ot)}clickBack(){this.clickIcon("nav")}closeIgo(){this.oscDisplayService.closeOSC()}static{this.\u0275fac=function(Vt){return new(Vt||si)(v.KVO(S.B))}}static{this.\u0275prov=v.jDH({token:si,factory:si.\u0275fac,providedIn:"root"})}}return si})();var _=s(75042),i=s(10132),r=s(73934),c=(s(34414),s(26875)),M=(s(76560),s(99469)),I=(s(50801),s(72428)),V=s(69416),T=s(8260),N=s(83934),L=s(83915),E=s(33452),g=s(54947),R=s(73180),B=s(75707),X=s(65706),H=s(89284);let re=(()=>{class si{constructor(ot,Vt,Sn,Bn,Ti){this.injector=Vt,this.hotkeyService=Sn,this.configuration=Bn,this.hotkeyShareService=Ti,this.instreamPasteService=null,this.logger=ot.getLogger("IGO CustomPasteService"),this.configuration?.client?.clipboardConfig?.needsDialogForInStreamPaste&&(this.instreamPasteService=this.injector.get(g.uw))}init(){this.logger.info("Initializing CustomPasteService"),this.hotkeyShareService.removeFromIgnoredHotkeysSet(r.g8.InStreamPaste),this.hotkeyService.listen(r.g8.InStreamPaste).pipe((0,R.c)(333),(0,B.ZZ)(()=>this.instreamPasteService.isInStreamingPasteEnabled.pipe((0,X.s)(1)))).subscribe(ot=>{this.logger.info("In Stream Paste Window opening triggered"),ot?(this.logger.info("In Stream Paste feature is enabled, opening Clipboard window"),this.instreamPasteService.initPasteInputHandler()):this.logger.info("In Stream Paste feature is disabled")})}static{this.\u0275fac=function(Vt){return new(Vt||si)(v.KVO(M.J6),v.KVO(v.zZn),v.KVO(r.QS),v.KVO(H.Vk6),v.KVO(I.f))}}static{this.\u0275prov=v.jDH({token:si,factory:si.\u0275fac,providedIn:"root"})}}return si})();var ie=s(57412),ve=s(10356),ue=s(72238),se=s(91384),Z=s(14714),Se=s(43615),Ce=s(43848),Be=s(13973),Xe=s(93181),He=s(31315),Me=s(59859),Q=s(10174),A=s(20924);const me=Be.zn,ne=A.Or.Common.Downloader.DownloadStatus;var Ot=function(si){return si[si.SHADOWPLAY=0]="SHADOWPLAY",si[si.STATSOVERLAY=1]="STATSOVERLAY",si[si.DRIVERUPDATES=2]="DRIVERUPDATES",si[si.APPLICATIONS=3]="APPLICATIONS",si[si.NOTEBOOK=4]="NOTEBOOK",si}(Ot||{});const at=[{name:"rise_toggle_shadow_replay",category:Ot.SHADOWPLAY,execute:function G(si){if(si&&si.hasOwnProperty("enable")){const to=!!+si.enable,ot=si.serviceHandle;let Vt;return ot.getInstantReplayEnableStatus().pipe((0,L.T)(Sn=>(to?Sn?Vt="Instant Replay is already on.":(ot.enableInstantReplay(),Vt="Instant Replay has been turned on successfully."):Sn?(ot.disableInstantReplay(),Vt="Instant Replay has been turned off successfully."):Vt="Instant Replay is already off.",Vt)))}return(0,Ce.of)(me)},telemetryName:"ToggleInstantReplay"},{name:"rise_save_instant_replay",category:Ot.SHADOWPLAY,execute:function W(si){const to=si.serviceHandle;let ot;return(0,Xe.p)([to.getInstantReplayEnableStatus(),to.getInstantReplayRunningStatus(),to.getDesktopCaptureEnabled()]).pipe((0,L.T)(([Vt,Sn,Bn])=>(Vt?Sn?(to.saveIR(),ot="Instant replay has been saved successfully."):ot="Instant replay is not recording right now, you need to run a supporated game.":ot="Instant replay is turned off. You need to turn it on first.",ot)))},telemetryName:"SaveInstantReplay"},{name:"rise_start_recording",category:Ot.SHADOWPLAY,execute:function $(si){if(si&&si.hasOwnProperty("enable")){const ot=si.serviceHandle;let Vt;return+si.enable?(0,He.zV)([ot.doWeNeedToAskPermission(),ot.getMRState().pipe((0,X.s)(1))]).pipe((0,L.T)(([Sn,Bn])=>(Bn?Vt="Recording is already active.":Sn.isPossible||Sn.shouldAskForPermission?!Sn.isPossible&&Sn.shouldAskForPermission?(ot.startManualRecord(),Vt="You need to enable desktop capture to start recording."):(ot.startManualRecord(),Vt="Recording has been started successfully."):Vt="A supported game is required to start recording.",Vt))):ot.getMRState().pipe((0,X.s)(1),(0,L.T)(Sn=>(Sn?(ot.stopAndSaveManualRecord(),Vt="Recording has been stopped successfully."):Vt="Recording is not active at the moment.",Vt)))}return(0,Ce.of)(me)},telemetryName:"RecordControl"},{name:"rise_toggle_desktop_capture",category:Ot.SHADOWPLAY,execute:function le(si){if(si&&si.hasOwnProperty("enable")){const to=!!+si.enable;let Vt;return si.serviceHandle.SetDesktopCaptureEnabled(to),Vt=to?"Desktop capture has been turned ON successfully.":"Desktop capture has been turned OFF successfully.",(0,Ce.of)(Vt)}return(0,Ce.of)(me)},telemetryName:"ToggleDesktopCapture"},{name:"rise_save_screenshot",category:Ot.SHADOWPLAY,execute:function Pe(si){const to=si.serviceHandle;let ot;return to.doWeNeedToAskPermission().pipe((0,L.T)(Vt=>(Vt.isPossible||Vt.shouldAskForPermission?!Vt.isPossible&&Vt.shouldAskForPermission?(to.captureScreenshot(),ot="You need to enable desktop capture to take a screenshot."):(to.captureScreenshot(),ot="Screenshot has been captured successfully."):ot="A supported game is required to take a screenshot.",ot)))},telemetryName:"SaveScreenshot"},{name:"rise_show_overlay",category:Ot.STATSOVERLAY,execute:function Fe(si){if(si&&si.hasOwnProperty("enable")){const to=!!+si.enable;let Vt;return si.serviceHandle.setPerfOverlayVisiblity(to),Vt=to?"Statistics overlay has been made visible.":"Statistics overlay has been hidden.",(0,Ce.of)(Vt)}return(0,Ce.of)(me)},telemetryName:"ToggleStatisticsOverlay"},{name:"rise_check_driver",category:Ot.DRIVERUPDATES,execute:function At(si){if(si){const to=si.serviceHandle;let ot;return to.getDriverUpdateRecommendation().pipe((0,B.ZZ)(Vt=>Vt?Vt.version?+si.download?to.startDriverDownload(Vt).pipe((0,L.T)(Bn=>{const Ti=Bn?.downloadProgressStatus.downloadStatus;if(Ti===ne.DownloadTriggered||Ti===ne.Downloading){let Li=Bn?.downloadProgressStatus.timeRemaining;if(0===Li||void 0===Li)return ot=`A new driver version ${Vt.version} is available\n and being downloaded. You can install it from NVIDIA App-> Drivers page.`,ot;{let dr;return Li/=60,dr=Li>1?Math.round(Li).toString()+" minutes":"a minute",ot=`A new driver version ${Vt.version} is available\n and being downloaded. You can install it from NVIDIA App-> Drivers page in\n about ${dr}.`,ot}}return Ti===ne.Finished||Ti===ne.VerifyingChecksum||Ti===ne.VerifyingSignature?(ot=`A new driver version ${Vt.version} is downloaded\n and available to install. You can install it from NVIDIA App-> Drivers page.`,ot):(ot=`A new driver version ${Vt.version} is available,\n but could not be downloaded at the moment.\n You can download it at - ${Vt.downloadURL}`,ot)}),(0,Z.W)(()=>(ot=`A new driver version ${Vt.version} is available,\n but could not be downloaded at the moment.\n You can download it at - ${Vt.downloadURL}`,(0,Ce.of)(ot)))):(ot=`A new driver version ${Vt.version} is available.\n You can download it at - ${Vt.downloadURL}`,(0,Ce.of)(ot)):(ot="Unable to get driver details at the moment. Head to the Drivers page for more details.",(0,Ce.of)(ot)):(ot=`Your driver version ${to.getInstalledDDVersion()} is up to date.`,(0,Ce.of)(ot))),(0,Z.W)(()=>(ot="Unable to get driver details at the moment. Head to the Drivers page for more details.",(0,Me.$)(()=>ot))))}return(0,Ce.of)(me)},telemetryName:"CheckForDriverUpdate"},{name:"rise_launch_app",category:Ot.APPLICATIONS,execute:function Le(si){if(si&&si.game){const to=si.game,ot=si.serviceHandle;return ot.getApplications().pipe((0,B.ZZ)(Vt=>{const Sn=Vt.applications.findIndex(Bn=>Bn.displayName===to);return-1===Sn?(0,Ce.of)(`${to} was not found on your system.`):ot.launchApplication(Vt.applications[Sn].localId).pipe((0,Q.u)(`${to} has been launched successfully.`))}),(0,Z.W)(()=>{const Vt=`${to} could not be launched, try launching it manually.`;return(0,Me.$)(()=>Vt)}))}return(0,Ce.of)(me)},telemetryName:"LaunchApplication"},{name:"rise_set_battery_boost",category:Ot.NOTEBOOK,execute:function Et(si){const ot="BatteryBoost mode could not be changed at the moment. Please try changing it from NvApp -> Graphics page.";if(si&&si.mode&&[Be.Xb.ON,Be.Xb.OFF].includes(si.mode)){const Vt=si.serviceHandle;return Vt.getNvAppSettingsInfo().pipe((0,B.ZZ)(Sn=>{if(Sn){if(Sn[Be.oT.BATTERY_BOOST]?.settingInfo?.isSupported){const Bn=si.mode===Be.Xb.ON;return Vt.queryAndUpdateBatteryBoostValue().pipe((0,B.ZZ)(Ti=>Ti.enabled===Bn?(0,Ce.of)(`BatteryBoost mode is already set to ${si.mode}.`):Vt.setBatteryBoostValue({version:Ti.version,enabled:Bn,frameRate:Ti.frameRate}).pipe((0,Q.u)(`BatteryBoost mode has been set to ${si.mode}.`),(0,Z.W)(()=>(0,Me.$)(()=>ot)))),(0,Z.W)(()=>(0,Me.$)(()=>ot)))}return(0,Ce.of)("BatteryBoost is not supported on this system.")}return(0,Ce.of)(ot)}),(0,Z.W)(()=>(0,Me.$)(()=>ot)))}return(0,Ce.of)(me)},telemetryName:"SetBatteryBoost"},{name:"rise_get_battery_boost",category:Ot.NOTEBOOK,execute:function $e(si){const to=si.serviceHandle,ot="Error while querying BatteryBoost value";return to.getNvAppSettingsInfo().pipe((0,B.ZZ)(Vt=>Vt?Vt[Be.oT.BATTERY_BOOST]?.settingInfo?.isSupported?to.queryAndUpdateBatteryBoostValue().pipe((0,L.T)(Sn=>Sn?JSON.stringify(Sn):ot),(0,Z.W)(()=>(0,Me.$)(()=>ot))):(0,Ce.of)("BatteryBoost is not supported on this system."):(0,Ce.of)(ot)),(0,Z.W)(()=>(0,Me.$)(()=>ot)))},isSilentFunctionCall:!0,telemetryName:"GetBatteryBoost"},{name:"rise_set_whisper_mode",category:Ot.NOTEBOOK,execute:function Ze(si){const to=[Be.Xb.ON,Be.Xb.OFF],ot=Object.values(Be.B8);if(si&&si.mode&&to.includes(si.mode)&&si.fan_volume&&ot.includes(si.fan_volume)){const Vt=si.serviceHandle,Sn="WhisperMode could not be changed at the moment. Please try changing it from NvApp -> Graphics page.";return Vt.getNvAppSettingsInfo().pipe((0,B.ZZ)(Bn=>{if(Bn){if(Bn[Be.oT.WHISPER_MODE]?.settingInfo?.isSupported){const Ti=si.mode===Be.Xb.ON,Li=si.fan_volume,dr=Li===Be.B8.QUIETER?Be.yE.QUIETER:Li===Be.B8.QUIET?Be.yE.QUIET:Be.yE.BALANCED;return Vt.queryAndUpdateWhisperModeValue().pipe((0,B.ZZ)(Fr=>{let br;return Fr.enabled===Ti&&dr===Fr.fanVolume?(br=`WhisperMode is already set to ${si.mode}`,br+=Ti?` with fan volume to ${si.fan_volume}.`:".",(0,Ce.of)(br)):(br=`WhisperMode has been set to ${si.mode}`,br+=Ti?` with fan volume to ${si.fan_volume}.`:".",Vt.setWhisperModeValue({version:Fr.version,enabled:Ti,frameRate:Fr.frameRate,fanVolume:dr}).pipe((0,Q.u)(br),(0,Z.W)(()=>(0,Me.$)(()=>Sn))))}),(0,Z.W)(()=>(0,Me.$)(()=>Sn)))}return(0,Ce.of)("WhisperMode is not supported on this system.")}return(0,Ce.of)(Sn)}),(0,Z.W)(()=>(0,Me.$)(()=>Sn)))}return(0,Ce.of)(me)},telemetryName:"SetWhisperMode"},{name:"rise_get_whisper_mode",category:Ot.NOTEBOOK,execute:function Qe(si){const to=si.serviceHandle,ot="Error while querying WhisperMode value";return to.getNvAppSettingsInfo().pipe((0,B.ZZ)(Vt=>Vt?Vt[Be.oT.WHISPER_MODE]?.settingInfo?.isSupported?to.queryAndUpdateWhisperModeValue().pipe((0,L.T)(Sn=>Sn?JSON.stringify(Sn):ot),(0,Z.W)(()=>(0,Me.$)(()=>ot))):(0,Ce.of)("WhisperMode is not supported on this system."):(0,Ce.of)(ot)),(0,Z.W)(()=>(0,Me.$)(()=>ot)))},isSilentFunctionCall:!0,telemetryName:"GetWhisperMode"},{name:"rise_set_optimus_mode",category:Ot.NOTEBOOK,execute:function Ve(si){if(si&&si.mode&&[Be.Jg.AUTO,Be.Jg.NVIDIA_GPU,Be.Jg.OPTIMUS].includes(si.mode)){const ot=si.serviceHandle;return ot.getNvAppSettingsInfo().pipe((0,B.ZZ)(Vt=>{const Sn="Display Mode could not be changed at the moment. Please try changing it from NvApp -> System page.";if(Vt){if(Vt[Be.oT.OPTIMUS_MODE]?.bIsSupported){const Bn=si.mode===Be.Jg.NVIDIA_GPU?"NVIDIA GPU":si.mode;return ot.queryAndUpdateOptimusModeValue().pipe((0,B.ZZ)(Ti=>{const Li=Ti.bIsAutomatic?Be.Jg.AUTO:Ti.MuxState===Be.iZ.State_DGPU?Be.Jg.NVIDIA_GPU:Be.Jg.OPTIMUS;if(si.mode===Li)return(0,Ce.of)(`Display Mode is already set to ${Bn}.`);let dr=!1;(Li===Be.Jg.NVIDIA_GPU||si.mode===Be.Jg.NVIDIA_GPU)&&(dr=!0);const Fr=si.mode===Be.Jg.AUTO;let br=Ti.MuxState;return Fr||(br=si.mode===Be.Jg.NVIDIA_GPU?Be.iZ.State_DGPU:Be.iZ.State_IGPU),ot.handleSetOptiMusModeFunctionCall({bIsAutomatic:Fr,MuxState:br},dr).pipe((0,L.T)(rr=>rr?`Display Mode has been set to ${Bn}.`:`Display mode hasn\u2019t changed. It\u2019s still set to ${Li===Be.Jg.NVIDIA_GPU?"NVIDIA GPU":Li}.`),(0,Z.W)(()=>(0,Me.$)(()=>Sn)))}),(0,Z.W)(()=>(0,Me.$)(()=>Sn)))}return(0,Ce.of)("Display Mode is not supported on this system.")}return(0,Ce.of)(Sn)}))}return(0,Ce.of)(me)},telemetryName:"SetOptimusMode"},{name:"rise_get_optimus_mode",category:Ot.NOTEBOOK,execute:function nt(si){const to=si.serviceHandle,ot="Error while querying Optimus mode value";return to.getNvAppSettingsInfo().pipe((0,B.ZZ)(Vt=>Vt?Vt[Be.oT.OPTIMUS_MODE]?.bIsSupported?to.queryAndUpdateOptimusModeValue().pipe((0,L.T)(Sn=>Sn?JSON.stringify(Sn):ot),(0,Z.W)(()=>(0,Me.$)(()=>ot))):(0,Ce.of)("Advanced Optimus mode is not supported on this system."):(0,Ce.of)(ot)),(0,Z.W)(()=>(0,Me.$)(()=>ot)))},isSilentFunctionCall:!0,telemetryName:"GetOptimusMode"}];var It=s(19724),We=s(32912),xe=s(51830);let lt=(()=>{class si{constructor(ot,Vt,Sn,Bn,Ti){this.loggingService=ot,this.riseService=Vt,this.shadowPlayService=Sn,this.perfMonService=Bn,this.aichatboxService=Ti,this.logger=this.loggingService.getLogger("FunctionCallingService")}init(){this.logger.info("init"),this.riseService.listenToFunctionCalls().subscribe(this.onFunctionCallNotification.bind(this))}onFunctionCallNotification(ot){if(this.logger.info("handleFunctionCallNotification:",ot?.resultTokens),ot?.resultTokens){let Vt={};Vt=JSON.parse(ot.resultTokens),Vt&&Vt.hasOwnProperty("func")?this.handleFunctionCall(Vt):(this.logger.error("Invalid function call"),this.riseService.handleFunctionCallResponse(me,!0))}else this.logger.error("Invalid function call"),this.riseService.handleFunctionCallResponse(me,!0)}handleFunctionCall(ot){this.logger.info("handleFunctionCall:",ot);const Vt=at.find(br=>br.name===ot.func);if(!Vt)return this.logger.error("Unknown function:",ot.func),void this.riseService.handleFunctionCallResponse(me,!0);const Sn=ot.params||{},Bn=Object.entries(Sn).map(([br,Vn])=>`${br}: ${Vn}`).join(", "),Ti=this.getFunctionCallHandlerService(Vt.category);Ti&&(Sn.serviceHandle=Ti,Sn.logger=this.logger);const Li=Date.now();let dr,Fr;Vt.execute(Sn).pipe((0,se.M)(br=>{dr=br,Fr=It.pn.Success}),(0,Z.W)(br=>(dr=Be.zn,Fr=It.pn.Error,(0,Ce.of)())),(0,Se.j)(()=>{this.riseService.handleFunctionCallResponse(dr,!Vt.isSilentFunctionCall),this.aichatboxService.sendFunctionCallTelemetry(It.QG[Vt.telemetryName],Bn,Fr,Date.now()-Li)})).subscribe()}getFunctionCallHandlerService(ot){let Vt;switch(ot){case Ot.SHADOWPLAY:Vt=this.shadowPlayService;break;case Ot.STATSOVERLAY:Vt=this.perfMonService;break;case Ot.DRIVERUPDATES:case Ot.APPLICATIONS:case Ot.NOTEBOOK:Vt=this.riseService}return Vt}static{this.\u0275fac=function(Vt){return new(Vt||si)(v.KVO(M.J6),v.KVO(We.J),v.KVO(xe.W1),v.KVO(E.z),v.KVO(ue.D))}}static{this.\u0275prov=v.jDH({token:si,factory:si.\u0275fac,providedIn:"root"})}}return si})();var ft=s(23860),ht=s(12137);let Ht=(()=>{class si{constructor(ot,Vt,Sn,Bn,Ti){this.bridgeService=Vt,this.hotkeyService=Sn,this.oscDisplayService=Bn,this.igoConfig=Ti,this.throttleMs=333,this.$webcamState=new d.t(!1),this.webcamInfo={present:!1,enabled:!1,visible:!1,preview:!1,queuePreview:!1,position:A.Or.Share.Shareserver.OverlayPositionEnum.rightTop,size:A.Or.Share.Shareserver.OverlaySizeEnum.small},this.logger=ot.getLogger("WebcamService")}init(){if("GFE"===this.igoConfig.branding){this.hotkeyService.listen(r.g8.CameraToggle).pipe((0,R.c)(this.throttleMs)).subscribe(()=>{this.toggleWebcam()}),this.initializeWebcam(),this.getWebcamOverlaySettings();let ot=!1;this.oscDisplayService.getCurrentOpenState().subscribe(Vt=>{ot&&this.getCurrentWebcamStates(Vt),ot=!0})}}getCurrentWebcamStates(ot){"open"===ot&&!0===this.webcamInfo.preview?this.enableWebcamPreview(!1):"closed"===ot&&(this.webcamInfo.preview=this.webcamInfo.queuePreview,this.enableWebcamPreview(this.webcamInfo.queuePreview))}initializeWebcam(){this.getWebcamPresent().subscribe(ot=>{this.logger.info("Webcam present: ",ot),this.webcamInfo.present=ot,ot&&(this.getWebcamEnable().subscribe(Vt=>{this.webcamInfo.enabled=Vt,this.$webcamState.next(this.webcamInfo.enabled),this.logger.info("Webcam Enabled: ",Vt)}),this.getWebcamShown().subscribe(Vt=>{this.webcamInfo.visible=Vt,this.logger.info("Webcam Shown: ",Vt)}),this.getWebcamPreviewState().subscribe(Vt=>{this.webcamInfo.preview=this.webcamInfo.queuePreview=Vt,this.logger.info("Webcam Preview: ",Vt)}))})}getWebcamState(){return this.$webcamState.asObservable()}getWebcamPresent(){return this.bridgeService.executeCommand(A.Ts.Share.Shareserver.GetWebcamPresent).pipe((0,L.T)(ot=>(this.logger.info("GetWebcamPresent returns: ",ot),ot.present),ot=>(this.logger.info("GetWebcamPresent error: ",ot),!1)))}getWebcamEnable(){return this.bridgeService.executeCommand(A.Ts.Share.Shareserver.GetWebcamEnable).pipe((0,L.T)(ot=>(this.logger.info("GetWebcamEnable returns: ",ot),ot.status),ot=>(this.logger.info("GetWebcamEnable error: ",ot),!1)))}enableWebcam(ot){this.bridgeService.executeCommand(A.Ts.Share.Shareserver.EnableWebcam,{status:ot}).subscribe(Sn=>{this.logger.info("EnableWebcam returns: ",Sn),this.webcamInfo.enabled=ot},Sn=>{this.logger.info("EnableWebcam error: ",Sn)})}getWebcamShown(){return this.bridgeService.executeCommand(A.Ts.Share.Shareserver.GetWebcamShown).pipe((0,L.T)(ot=>(this.logger.info("GetWebcamShown returns: ",ot),ot.shown),ot=>(this.logger.info("GetWebcamShown error: ",ot),!1)))}toggleWebcam(){this.bridgeService.executeCommand(A.Ts.Share.Shareserver.ToggleWebcam).subscribe(ot=>{this.logger.info("ToggleWebcam returns: ",ot),this.webcamInfo.enabled=!this.webcamInfo.enabled,this.$webcamState.next(this.webcamInfo.enabled)},ot=>{this.logger.info("ToggleWebcam error: ",ot)})}getWebcamPreviewState(){return this.bridgeService.executeCommand(A.Ts.Share.Shareserver.GetWebcamPreviewState).pipe((0,L.T)(ot=>(this.logger.info("GetWebcamPreviewState returns: ",ot),ot.enabled),ot=>(this.logger.info("GetWebcamPreviewState error: ",ot),!1)))}enableWebcamPreview(ot){this.bridgeService.executeCommand(A.Ts.Share.Shareserver.EnableWebcamPreview,{enable:ot}).subscribe(Sn=>{this.logger.info("EnableWebcamPreview returns: ",Sn)},Sn=>{this.logger.info("EnableWebcamPreview error: ",Sn)})}queueWebcamPreview(ot){this.webcamInfo.queuePreview=ot}getWebcamOverlaySettings(){this.bridgeService.executeCommand(A.Ts.Share.Shareserver.GetIndicatorOverlaySettings,{id:A.Or.Share.Shareserver.IndicatorEnum.webcam}).subscribe(Vt=>{this.logger.info("GetIndicatorOverlaySettings returns: ",Vt),this.webcamInfo.position=Vt.position,this.webcamInfo.size=Vt.size},Vt=>{this.logger.info("GetIndicatorOverlaySettings error: ",Vt)})}setWebcamOverlaySettings(ot,Vt){this.bridgeService.executeCommand(A.Ts.Share.Shareserver.SetIndicatorOverlaySettings,{id:A.Or.Share.Shareserver.IndicatorEnum.webcam,enable:this.webcamInfo.enabled,position:ot,size:Vt}).subscribe(Bn=>{this.logger.info("SetIndicatorOverlaySettings returns: ",Bn),this.webcamInfo.position=ot,this.webcamInfo.size=Vt},Bn=>{this.logger.info("SetIndicatorOverlaySettings error: ",Bn)})}getWebcamInfo(){return this.webcamInfo}static{this.\u0275fac=function(Vt){return new(Vt||si)(v.KVO(M.J6),v.KVO(M.NZ),v.KVO(r.QS),v.KVO(S.B),v.KVO(ht.k))}}static{this.\u0275prov=v.jDH({token:si,factory:si.\u0275fac,providedIn:"root"})}}return si})();var Je=s(16229),tt=s(19392),rt=s(17053),et=s(36466),St=s(8619),Gt=s(72147),yt=s(65770),Wt=s(4208),ke=s(79539),be=s(93702),Ae=s(40198),qe=s(65726),Lt=s(30518),Zt=s(99047),fn=s(22123),hn=s(78854),On=s(53914),fi=s(78812),Ji=s(18880),Fi=s(30254),bt=s(96542),bn=s(10279),Pt=s(27211),jt=s(24964),gn=s(59002),ui=s(2688),Ii=function(si){return si.anselEnabledResponse="anselEnabledResponse",si.anselEnabledState="anselEnabledState",si.procInfo="procInfo",si.captureTypesList="captureTypesList",si.sdkIntegration="sdkIntegration",si.rollRange="rollRange",si.fovRange="fovRange",si.setRollFovResponse="setRollFovResponse",si.screenResolution="screenResolution",si.highResResolutions="highResResolutions",si.panoramaResolutions="panoramaResolutions",si.captureShotStarted="captureShotStarted",si.captureShotProgress="captureShotProgress",si.captureShotFinished="captureShotFinished",si.captureShotProcessingFinished="captureShotProcessingFinished",si.captureShotCancel="captureShotCancel",si.features="features",si.filtersList="filtersList",si.resetFilter="resetFilter",si.insertFilter="insertFilter",si.removeFilter="removeFilter",si.moveFilter="moveFilter",si.filterStackInfo="filterStackInfo",si.filterDetails="filterDetails",si.setFilterAttribute="setFilterAttribute",si.setFovResponse="setFovResponse",si.setRollResponse="setRollResponse",si.fovValue="fovValue",si.resetEntireStack="resetEntireStack",si.nvCameraReady="nvCameraReady",si.anselStatusReport="anselStatusReport",si.ngxAIUpResProgress="ngxAIUpResProgress",si.ngxAIUpResCaptureDone="ngxAIUpResCaptureDone",si.cancelPendingOperations="cancelPendingOperations",si}(Ii||{}),pr=function(si){return si[si.slider=1]="slider",si[si.boolean=2]="boolean",si[si.button=3]="button",si[si.list=4]="list",si[si.edit=5]="edit",si[si.label=6]="label",si[si.pulldown=7]="pulldown",si[si.radiobutton=9]="radiobutton",si}(pr||{}),zr=function(si){return si.HotKey="HK",si.Ui="UI",si}(zr||{}),Cn=function(si){return si.Top="Top",si.Bottom="Bottom",si}(Cn||{}),pn=function(si){return si.MoveUp="MoveUp",si.MoveDown="MoveDown",si.Add="Add",si.Delete="Delete",si.Clicked="Clicked",si.ApplyStyle="ApplyStyle",si.None="None",si}(pn||{}),ti=function(si){return si.Keyboard="Keyboard",si.Mouse="Mouse",si.Gamepad="Gamepad",si}(ti||{}),pi=function(si){return si.UpdateStyleFail="updateStyleFail",si.ApplyStyleFail="applyStyleFail",si.RemoveFilterSuccess="RemoveFilterSuccess",si.CaptureFinished="CaptureFinished",si.CaptureFailed="CaptureFailed",si}(pi||{}),cn=function(si){return si.SUCCESS="Success",si.ERROR_RESTART="Error occured, please restart the game",si.ERROR_SUPPORTED_GAME="Supported game required",si.ERROR_SESSION_NOT_ALLOWED="Session not allowed",si.ERROR_TIMEOUT="Timeout has occurred",si.ERROR_SYSTEM_OFFLINE="System is offline",si}(cn||{});const An={GPUArchitecture:"0x00000160",ExGPUArchImplementation:[8,7],OSBuildNumber:17134};var Jn=function(si){return si[si.KeyZ=0]="KeyZ",si[si.KeyX=1]="KeyX",si[si.KeyY=2]="KeyY",si[si.KeyW=3]="KeyW",si[si.KeyS=4]="KeyS",si[si.KeyA=5]="KeyA",si[si.KeyD=6]="KeyD",si}(Jn||{});let hi=(()=>{class si{get pageLaunchStart(){return this._pageLaunchStart}set pageLaunchStart(ot){this._pageLaunchStart=ot}getFetchedSystemInfo(){return this.systemInfo}get pageLaunchMode(){return this._pageLaunchMode}set pageLaunchMode(ot){this._pageLaunchMode=ot}get currentGameInfo(){if(this.igoConfig.GFNCefClient){const ot=this.gfnInfoService.getstreamerConfig();return this.currentGameStreamInfo={procId:void 0,cmsId:ot?.cmsId,drsName:void 0,drsProfileName:void 0,shortName:ot?.shortName,drsWhitelist:void 0},this.logger.info("Current Streaming Game:",this.currentGameStreamInfo),this.currentGameStreamInfo}return this.currentGFEGameInfo}passFilterStateToTelemetry(){this.telemetryService.updateAnselFilterAppliedField(this.ppeFiltersState?.deepDvc||this.ppeFiltersState?.nis||this.ppeFiltersState?.trueHdr||this.isModsAppliedCurrently)}updatePpeState(ot,Vt){switch(ot){case Fi.VL:this.ppeFiltersState.deepDvc=Vt;break;case Fi.on:this.ppeFiltersState.nis=Vt;break;case Fi.Ow:this.ppeFiltersState.trueHdr=Vt;break;default:return void this.logger.error("Incorrect filter ID passed")}this.passFilterStateToTelemetry()}constructor(ot,Vt,Sn,Bn,Ti,Li,dr,Fr,br,Vn,rr,Ut,qn,Wn,ci,Tr,Jr,oo,Qo){this.injector=ot,this.igoConfig=Vt,this.loggingService=Sn,this.bridgeService=Bn,this.hotkeyService=Ti,this.oscDisplayService=Li,this.translateService=dr,this.shadowPlayService=Fr,this.galleryService=br,this.localeService=Vn,this.telemetryService=rr,this.telemetryIgoService=Ut,this.oscNotificationService=qn,this.dialogHelperService=Wn,this.dbService=ci,this.networkStatusService=Tr,this.systemInfoService=Jr,this.gfnInfoService=oo,this.featureSupportService=Qo,this.gfnRTSPAccountedLatency=3e3,this.nvCameraStrictTimeout=250,this.nvCameraDefaultTimeout=2e3,this.nvCameraRelaxedTimeout=15e3,this.throttleDuration=500,this.nvCameraMenuOpenTimeout=3e3,this.dbStorageName="NvCamera",this.filterPresetsStorageKeyName="FilterPresets_v1",this.previewSupported=!0,this.freestylePreviewPrefix="Preview_",this.freestylePreviewExtension=".png",this.driverStorePathKey="DriverStore",this.previewInProgress=!1,this.isNvCameraEnabled=!1,this.isGameFilterEnabled=!1,this.isPhotoModeEnabled=!1,this.isRedirectionEnable=!1,this.notifications$=new l.B7,this.currentUIMode=void 0,this.currentProcessInfo=void 0,this.currentGameStreamInfo=void 0,this.currentGFEGameInfo=void 0,this.currentGameChromaInfo=void 0,this.currentFreestyleGameInfo=void 0,this.systemInfo=void 0,this.isDevServer=!1,this.filterPresetsData=void 0,this.isModsAppliedCurrently=!1,this.isAIUpresSupported=void 0,this.isNvCameraReady=!1,this.nvcameraOperationUnderProgress=!1,this.uiRunning=new d.t(!1),this.gameFilterStyleToggleHotkey=new d.t(""),this.cachedFeaturesAvailable=void 0,this.currentGameSlots=void 0,this.keyMatchCount=[0,0],this.invalidSequence=[!1,!1],this.sourceTrigger=zr.HotKey,this.snackBarRef=void 0,this.restartRequired=!1,this.statusOfCaptureEnhance=!0,this.isSystemOnline=!1,this.nvCameraTimedOut=!1,this.gameFilterDisable=new d.t(!0),this.photoModeDisable=new d.t(!0),this.previewPaths=[],this.panningUsed=!1,this.panningWithGC=!1,this.panningWithKB=!1,this.panningWithMouse=!1,this.usedController=!1,this.usedKeyboard=!1,this.usedMouse=!1,this.gridUsed=!1,this.menuLaunchTime=0,this.previousSlotApplied=-1,this.isAppStartedReceived=!1,this.gameFilterMenu=!1,this.slotsUsed=new Set,this.navigationInputDevice={KEYBOARD:!1,MOUSE:!1,GAMEPAD:!1},this.dialogRef=void 0,this.menuCloseInProgress$=new d.t(!1),this.gameDetails={cmsId:"",drsName:"",drsProfileName:""},this.isAIDVCEnabled=!1,this.isAIHDREnabled=!1,this.isNIS2Enabled=!1,this.ppeFiltersState={nis:!1,deepDvc:!1,trueHdr:!1},this.lastSlotChanged$=new d.t(void 0),this.modsAppliedOnGameLaunch$=new l.B7,this.nvcameraGameStarted$=new l.B7,this.isPpeFeaturesEnabled=!1,this._pageLaunchStart=0,this._pageLaunchMode=It.gv.UsingUI,this.alertDialogData={title:"nvcamera.GameFilters",query:"",queryParam:{arg:""},action1:void 0,action2:void 0,spinner:void 0,progressBar:void 0,progressPercentage:void 0},this.preResetSessionData={uiMode:void 0,modsApplied:!1,currentGameInfo:void 0},this.appConfig=null,this.streamerStateSubscription=void 0,this.featureResult={gameFilterSupport:!1,photoModeSupport:!1},this.chromaDBResult=void 0,this.globalToggleChangedFromIGO$=new l.B7,this.isGameRestartRequestedfromCTA=!1,this.logger=this.loggingService.getLogger("NvCameraService"),this.dBStore=this.dbService.getGlobalStore(this.dbStorageName),this.igoConfig.GFNCefClient||(this.lcarsService=this.injector.get(ie.B))}init(){return this.logger.info("Initialize , feature support: ",this.igoConfig.NvCameraFeaturesEnabled),this.igoConfig.GFNCefClient&&(this.nvCameraStrictTimeout+=this.gfnRTSPAccountedLatency,this.nvCameraDefaultTimeout+=this.gfnRTSPAccountedLatency,this.nvCameraRelaxedTimeout+=this.gfnRTSPAccountedLatency,this.appConfig=this.injector.get(H.Vk6),this.appConfig||this.logger.info("ERROR:: Failed to obtain appConfig")),this.getSystemInfo().subscribe(ot=>{this.logger.info("System Info: ",ot)}),this.igoConfig.GFNCefClient&&this.updateStreamerState(),this.isPpeFeaturesEnabled=this.featureSupportService.isPpeEnabled(),this.checkFeatureSupport().toPromise().then(ot=>(this.logger.info("Photo Mode supported = ",this.isPhotoModeSupported()),this.logger.info("Game Filter supported = ",this.isGameFilterSupported()),this.logger.info("initialized"),!0),ot=>(this.logger.error("failed to initialize, error: ",ot.message),!1))}queryChromaDB(){return this.igoConfig.GFNCefClient?this.chromaDBResult?(this.logger.info("Skipping Chroma query, already populated:",this.chromaDBResult),(0,Ce.of)(this.chromaDBResult)):this.isChromaApproved():(this.chromaDBResult={photoModeSupport:this.isPhotoModeSupported(),gameFilterSupport:this.isGameFilterSupported()},(0,Ce.of)(this.chromaDBResult))}isChromaApproved(){return this.isDevServer?(this.logger.info("Skipping launch checks, isDevServer: ",this.isDevServer),this.chromaDBResult={gameFilterSupport:!0,photoModeSupport:!0},(0,Ce.of)(this.chromaDBResult)):this.currentGameInfo?.cmsId?this.gfnInfoService.getAppMetadataUsingCmsId(this.currentGameInfo?.cmsId).pipe((0,L.T)(ot=>(this.logger.info("isFreestyleSupported: ",ot.nvidiaTech.FREESTYLE),this.logger.info("isPhotoModeSupported: ",ot.nvidiaTech.PHOTO_MODE),this.chromaDBResult={gameFilterSupport:ot.nvidiaTech.FREESTYLE,photoModeSupport:ot.nvidiaTech.PHOTO_MODE},this.chromaDBResult)),(0,Z.W)(ot=>(this.logger.error(`Unable to obtain game meta data ${ot}`),this.chromaDBResult={gameFilterSupport:!0,photoModeSupport:!0},(0,Ce.of)(this.chromaDBResult)))):(this.logger.error("CmsId not available to query"),(0,Ce.of)(void 0))}isFeatureAvailable(){return"GFE"===this.igoConfig.branding?(0,Ce.of)({photoModeSupport:this.isPhotoModeSupported(),gameFilterSupport:this.isGameFilterSupported()}):(this.isSystemOnline=this.networkStatusService.isOnline,this.isSystemOnline?this.queryChromaDB().pipe((0,L.T)(ot=>{if(this.featureResult=ot,this.featureResult.gameFilterSupport||this.featureResult.photoModeSupport)if(!this.isNvCameraReady&&this.isAppStartedReceived)this.logger.info("Checking if nvcamera is ready"),this.checkNvCameraReady();else if(this.isNvCameraReady)this.setAnselFreestyleState();else{const Vt="NvCamera is not ready";this.featureResult.gameFilterSupport&&this.sendFeatureDisableErrorTelemetry(On.O5.GameFilter,On.bG.featureNotAvailable,Vt),this.featureResult.photoModeSupport&&this.sendFeatureDisableErrorTelemetry(On.O5.PhotoMode,On.bG.featureNotAvailable,Vt)}return this.featureResult}),(0,Z.W)(ot=>(this.logger.error("Unable to get chroma results, using defaults."+ot),this.featureResult={gameFilterSupport:!0,photoModeSupport:!0},(0,Ce.of)(this.featureResult)))):(this.featureResult={gameFilterSupport:!0,photoModeSupport:!0},(0,Ce.of)(this.featureResult)))}isGameFilterSupported(){return this.isNvCameraEnabled&&this.isGameFilterEnabled}isPhotoModeSupported(){return this.isNvCameraEnabled&&this.isPhotoModeEnabled}isPhotoModeLiteSupported(){return this.isNvCameraEnabled&&this.isPhotoModeEnabled&&!this.igoConfig.GFNCefClient}listenNotification(ot){return this.notifications$.asObservable().pipe((0,St.p)(Vt=>ot.some(Sn=>!!Vt[Sn])))}captureNormalScreenshot(){this.shadowPlayService.captureScreenshot()}monitorHotKey(ot,Vt,Sn=!1,Bn=!0){const Ti=Sn?1:0,Li=Vt,dr=Vt.length;if(0===dr)return!1;let Fr=!1,br=ot.key;switch(br=M.SV[br]?M.SV[br]:br.charCodeAt(0),Bn){case!0:if(!this.invalidSequence[Ti]&&!this.keyMatchCount[Ti]&&Li[dr-1]===br)for(let Vn=0;Vn<dr-1;Vn++)18===Li[Vn]&&ot.altKey&&this.keyMatchCount[Ti]++,17===Li[Vn]&&ot.ctrlKey&&this.keyMatchCount[Ti]++,16===Li[Vn]&&ot.shiftKey&&this.keyMatchCount[Ti]++;if(Li[this.keyMatchCount[Ti]]===br){this.keyMatchCount[Ti]++,this.keyMatchCount[Ti]===dr&&(Fr=!0,this.keyMatchCount[Ti]=0,this.invalidSequence[Ti]=!1);break}if(this.keyMatchCount[Ti]){let Vn=!1;for(let rr=0;rr<this.keyMatchCount[Ti];rr++)Vn=Li[rr]===br;if(Vn)break}this.invalidSequence[Ti]=!0,this.keyMatchCount[Ti]=0;break;default:this.keyMatchCount[Ti]=0}return Fr}get gfStyleToggleHotkey$(){return this.gameFilterStyleToggleHotkey.asObservable()}getNListenForGameFilterHotkey(){const ot=this.getHotkeyStringForActiveSlot().pipe((0,se.M)(Sn=>{this.gameFilterStyleToggleHotkey.next(Sn)})),Vt=[A.Or.Share.Shareserver.HotkeyEnum.FreeStyleToggleStyle1,A.Or.Share.Shareserver.HotkeyEnum.FreeStyleToggleStyle2,A.Or.Share.Shareserver.HotkeyEnum.FreeStyleToggleStyle3].map(Sn=>this.hotkeyService.listen(Sn).pipe((0,Gt.n)(Bn=>this.hotkeyService.getHotkeyString(Bn)),(0,se.M)(Bn=>{this.gameFilterStyleToggleHotkey.next(Bn)})));return(0,Je.h)(...Vt,ot)}launchPhotoModeMenu(ot=zr.HotKey){this.pageLaunchStart=Date.now(),this.logger.info("launchPhotoModeMenu"),this.isPhotoModeSupported()?(this.nvcameraOperationUnderProgress&&this.logger.info("Nvcamera operation underway, cancel menu launch"),this.currentUIMode=On.O5.PhotoMode,this.sourceTrigger=ot,this.menuLaunchTime=Date.now(),this.tryLaunchMenu(A.Or.Common.Nvcamera.FeaturesSupported.sdk).subscribe(()=>{this.logger.info("launchPhotoModeMenu successfull, AI Upres supported",this.isAIUpresSupported)},Vt=>{this.errorHandlingForLaunchMenu(A.Or.Common.Nvcamera.FeaturesSupported.sdk,Vt.message),this.logger.error("launchPhotoModeMenu error: ",Vt.message)})):this.logger.info("Photo Mode not supported, should not be here")}launchGameFilterMenu(ot=zr.HotKey){this.logger.info("launchGameFilterMenu"),this.pageLaunchStart=Date.now(),this.gameFilterMenu=!0,this.isGameFilterSupported()||this.featureSupportService.isPpeEnabled()?(this.nvcameraOperationUnderProgress&&this.logger.info("Nvcamera operation underway, cancel menu launch"),this.currentUIMode=On.O5.GameFilter,this.sourceTrigger=ot,this.menuLaunchTime=Date.now(),this.tryLaunchMenu(A.Or.Common.Nvcamera.FeaturesSupported.mods).subscribe(()=>{this.logger.info("launchGameFilterMenu successful")},Vt=>{this.errorHandlingForLaunchMenu(A.Or.Common.Nvcamera.FeaturesSupported.mods,Vt.message),this.logger.error("launchGameFilterMenu error: ",Vt.message)})):this.logger.info("Game Filter not supported, should not be here")}postMenuClose(ot,Vt=!1){this.currentUIMode=void 0,this.isModsAppliedCurrently=Vt,this.passFilterStateToTelemetry(),this.telemetryService.setModsActiveStatus(Vt),this.currentGameInfo&&(this.telemetryService.sendAnselFreestyleSession(ot,Date.now()-this.menuLaunchTime,this.navigationInputDevice.KEYBOARD,this.navigationInputDevice.MOUSE,this.navigationInputDevice.GAMEPAD,this.currentGameInfo.cmsId.toString(),this.currentGameInfo.shortName,this.currentGameInfo.drsName,this.currentGameInfo.drsProfileName,this.panningUsed,this.panningWithKB,this.panningWithMouse),this.sendAnselFreestyleFiltersTelemetry(ot))}closeMenu(ot,Vt=!1){return(0,Ce.of)(ot).pipe((0,B.ZZ)(Sn=>{if(Sn===On.O5.GameFilter)return(0,Ce.of)(void 0);let Bn;if(this.currentUIMode=void 0,this.isModsAppliedCurrently)Bn=this.currentGameSlots.modsSlotsInfo.lastSlotIdx,Vt=!0,this.logger.info("reapplying mods after photo mode session");else{if(this.isPpeFeaturesEnabled)return this.logger.info("reapplying ppefilter after photo mode session"),this.getLastSlotChangedUpdates().pipe((0,X.s)(1));Bn=0}return(0,Ce.of)(Bn)}),(0,B.ZZ)(Sn=>void 0!==Sn?this.applySlot(Sn,!0,On.O5.GameFilter):(0,Ce.of)(A.Or.Common.Nvcamera.AnselStatusEnum.ok)),(0,Z.W)(Sn=>(this.logger.error("error while closing the menu: ",Sn),(0,Ce.of)(A.Or.Common.Nvcamera.AnselStatusEnum.ok))),(0,Z.W)(Sn=>(this.logger.error("applySlot failed",Sn),(0,Ce.of)(Sn))),(0,B.ZZ)(()=>this.configureNvCameraSession(!1,!1,Vt,this.nvCameraDefaultTimeout)),(0,se.M)(()=>{this.logger.info("Menu closed successfully",ot),this.postMenuClose(ot,Vt)}),(0,Z.W)(Sn=>{throw this.postMenuClose(ot,Vt),Sn}))}getFilterList(){return this.nvcameraRequestWithWait(A.Ts.Common.Nvcamera.SetFilter,{enable:!1},Ii.filtersList,this.nvCameraRelaxedTimeout)}setFilter(ot,Vt,Sn,Bn){const Ti=this.nvcameraRequestWithWait(A.Ts.Common.Nvcamera.SetFilter,{enable:ot,stackId:Vt,filterId:Sn},Ii.filterDetails,this.nvCameraRelaxedTimeout).pipe((0,yt.u)());return this.igoConfig.GFNCefClient&&this.customizeAndShowAlert(Bn,pn.Add),Ti}customizeAndShowAlert(ot,Vt){if(this.dialogRef)this.logger.error("Something messed up, should not be here, current dialog is already up");else{let Sn,Bn;if(Bn=this.getCurrentModSlotName(),Vt===pn.MoveUp||Vt===pn.MoveDown||Vt===pn.Add||Vt===pn.Delete)this.currentUIMode===On.O5.PhotoMode||this.currentUIMode===On.O5.PhotoModeLight?(Sn="nvcamera.UpdatingFilters",Bn=""):Bn?Sn="commonLabels.Updating":(Sn="nvcamera.UpdatingStyle",Bn=this.getCurrentSlotIndex());else{if(Vt!==pn.ApplyStyle)return;this.currentUIMode===On.O5.PhotoMode||this.currentUIMode===On.O5.PhotoModeLight?(Sn="nvcamera.ApplyingFilters",Bn=""):Bn?Sn="commonLabels.Applying":(Sn="nvcamera.ApplyingStyle",Bn=this.getCurrentSlotIndex())}this.showAlert(void 0,Sn,Bn,"confirmation.cancel",void 0,!0,!1,"indeterminate",ot,{next:Li=>{if(Li===Ji.SF.Action1){this.logger.info("User cancelled the ongoing filter operation : ",Li);this.notifications$.next({cancelPendingOperations:{}}),this.closeAlert()}},error:Li=>{this.logger.error("failed in showAlert",Li),this.closeAlert()},complete:()=>{this.closeAlert()}})}}showAlert(ot,Vt,Sn,Bn,Ti,Li,dr,Fr,br,Vn){this.dialogRef||(this.alertDialogData.title=ot||(this.currentUIMode===On.O5.PhotoMode?"nvcamera.PhotoMode":"nvcamera.GameFilters"),this.alertDialogData.query=Vt,this.alertDialogData.queryParam={arg:Sn},this.alertDialogData.action1=Bn,this.alertDialogData.action2=Ti,this.alertDialogData.spinner=Li,this.alertDialogData.progressBar=dr,this.alertDialogData.progressPercentage=dr&&"determinate"===Fr,this.alertDialogData.progressMode=Fr,this.dialogHelperService.openAlertDialog(this.alertDialogData).pipe((0,se.M)(rr=>this.dialogRef=rr),(0,B.ZZ)(rr=>rr.afterClosed()),(0,Wt.Q)(br)).subscribe(Vn))}closeAlert(){this.dialogRef&&(this.dialogRef.close(),this.dialogRef=void 0)}showSnack(ot,Vt){let Sn,Bn;if(this.closeAlert(),Bn=this.getCurrentModSlotName(),ot===pi.UpdateStyleFail)Bn?Sn="snacks.UnableToUpdate":(Sn=this.igoConfig.GFNCefClient?"snacks.UnableToUpdateStyle":"snacks.UnableToUpdateProfile",Bn=this.getCurrentSlotIndex());else if(ot===pi.ApplyStyleFail)Bn?Sn="snacks.UnableToApply":(Sn=this.igoConfig.GFNCefClient?"snacks.UnableToApplyStyle":"snacks.UnableToApplyProfile",Bn=this.getCurrentSlotIndex());else if(ot===pi.RemoveFilterSuccess)Bn=Vt,Sn="1"===Bn?"snacks.RemovedFilter":"snacks.RemovedFilters";else{if(ot!==pi.CaptureFailed)return;Sn="nvcamera.UnableToPhotograph",Bn=void 0}this.translateService.get(Sn,{arg:Bn}).subscribe(Ti=>{this.snackBarRef=this.dialogHelperService.openSnackBar(Ti)})}setFilterAttribute(ot,Vt,Sn,Bn,Ti,Li){return Bn===pr.boolean&&(Li.forEach((Fr,br)=>{Li[br]=!!Fr}),Ti="bool"),this.nvcameraRequestWithWait(A.Ts.Common.Nvcamera.SetFilterAttribute,{filter:ot,controlId:Sn,controlType:Bn,stackId:Vt,dataType:Ti,values:Li},Ii.setFilterAttribute,this.nvCameraDefaultTimeout).pipe((0,L.T)(Fr=>{if(Fr.setFilterAttribute.status)return Fr.setFilterAttribute.status;throw new Error(A.Or.Common.Nvcamera.AnselStatusEnum.failed)}))}setFilterWithAttributes(ot){return this.nvcameraRequestWithWait(A.Ts.Common.Nvcamera.SetFilter,{enable:!0,stackId:ot.stackIdx,filterId:ot.id},Ii.filterDetails,this.nvCameraRelaxedTimeout).pipe((0,B.ZZ)(Vt=>(0,tt.H)(Vt.filterDetails.controls)),(0,ke.H)(Vt=>this.setFilterAttribute(ot.id,ot.stackIdx,Vt.id,pr[Vt.controlType],Vt.dataType,[ot.controls[Vt.id].currentValue])),(0,Z.W)(Vt=>(this.logger.error("setFilterAttribute failed: ",Vt),(0,Ce.of)(Vt))),(0,be.o)(1))}resetEntireStack(){return this.nvcameraRequestWithWait(A.Ts.Common.Nvcamera.ResetFilterStack,{},Ii.resetEntireStack,this.nvCameraRelaxedTimeout).pipe((0,L.T)(ot=>{if(ot.resetEntireStack.status)return ot.resetEntireStack.status;throw new Error(A.Or.Common.Nvcamera.AnselStatusEnum.failed)}))}removeFilter(ot){return this.nvcameraRequestWithWait(A.Ts.Common.Nvcamera.RemoveFilter,{stackId:ot},Ii.removeFilter,this.nvCameraRelaxedTimeout).pipe((0,L.T)(Vt=>{if(Vt.removeFilter.status)return Vt.removeFilter.status;throw new Error(A.Or.Common.Nvcamera.AnselStatusEnum.failed)}))}resetFilterControls(ot,Vt){return this.nvcameraRequestWithWait(A.Ts.Common.Nvcamera.ResetFilter,{resetAll:ot,stackId:Vt},Ii.resetFilter,this.nvCameraRelaxedTimeout).pipe((0,L.T)(Sn=>{if(Sn.resetFilter.status)return Sn.resetFilter.status;throw new Error(A.Or.Common.Nvcamera.AnselStatusEnum.failed)}))}setGridOfThirds(ot){return this.gridUsed=ot,this.bridgeService.executeCommand(A.Ts.Common.Nvcamera.SetCameraGridOfThirds,{enableGoT:ot})}getFreestyleWhitelisted(ot){return this.bridgeService.executeCommand(A.Ts.Common.Nvcamera.GetFreestyleWhitelisted,{profileName:ot})}getCaptureTypes(){return this.nvcameraRequestWithWait(A.Ts.Common.Nvcamera.GetAnselCaptureTypes,{},Ii.captureTypesList,this.nvCameraRelaxedTimeout)}getCaptureResolutions(ot){let Vt;return Vt=ot===A.Or.Common.Nvcamera.CaptureTypes.regular||ot===A.Or.Common.Nvcamera.CaptureTypes.stereoRegular?Ii.screenResolution:ot===A.Or.Common.Nvcamera.CaptureTypes.highRes?Ii.highResResolutions:Ii.panoramaResolutions,this.nvcameraRequestWithWait(A.Ts.Common.Nvcamera.GetCaptureResolutions,{captureType:ot},Vt,this.nvCameraRelaxedTimeout)}getCameraRange(ot,Vt){return this.nvcameraRequestWithWait(A.Ts.Common.Nvcamera.GetCameraRangeFovRoll,{getCameraRoll:ot,getCameraFov:Vt},ot?Ii.rollRange:Ii.fovRange,this.nvCameraRelaxedTimeout)}SetCameraControlFovRoll(ot,Vt,Sn){return this.nvcameraRequestWithWait(A.Ts.Common.Nvcamera.SetCameraControlFovRoll,{setFovRollEnable:ot,setRollValue:void 0!==Vt?Math.round(Vt):void 0,setFovValue:void 0!==Sn?Math.round(Sn):void 0},Ii.setRollFovResponse,this.nvCameraRelaxedTimeout)}GetCameraControlFov(ot){return this.nvcameraRequestWithWait(A.Ts.Common.Nvcamera.GetCameraControlFov,{setFovRollEnable:ot},Ii.fovValue,this.nvCameraRelaxedTimeout)}captureScreenshot(ot,Vt){if(this.igoConfig.GFNCefClient)return this.shadowPlayService.captureCustomScreenshot("photoMode","placeholder.png",this.getActiveModsSlot(this.currentUIMode).id);this.telemetryIgoService.startAnselScreenshot();let Sn,Bn,Ti=Object();return new rt.c(Li=>{let Fr,br;ot?(Fr=[Ii.ngxAIUpResProgress,Ii.ngxAIUpResCaptureDone],br=A.Ts.Common.Nvcamera.StartNgxAIUpRes,Sn=Vt?.upResScale.toString(),Bn=Vt?.width.toString()+"x"+Vt?.height.toString(),Ti={upResScale:Vt?.upResScale,screenshotResolution:Vt?.width.toString()+"x"+Vt?.height.toString()}):(Fr=[Ii.captureShotStarted,Ii.captureShotFinished,Ii.captureShotProcessingFinished,Ii.captureShotProgress,Ii.anselStatusReport],br=A.Ts.Common.Nvcamera.CaptureScreenshot);const Vn=this.listenNotification(Fr).pipe((0,Ae.w)(9e5)).subscribe(rr=>{Li.next(rr),rr.captureShotProcessingFinished&&!ot?(Vn.unsubscribe(),Li.complete(),this.anselFreestyleCaptureTelemetry(It.db.ScreenshotCaptured)):rr.ngxAIUpResCaptureDone&&(Vn.unsubscribe(),Li.complete(),this.anselFreestyleCaptureTelemetry(It.db.ScreenshotCaptured,Ti))},rr=>{this.logger.info("listenerCaptureShotFinished timed out"),Li.error(rr),this.anselFreestyleCaptureTelemetry(It.db.ScreenshotFailed),Vn.unsubscribe()});this.bridgeService.executeCommand(br,Vt).subscribe(rr=>{this.logger.info(br,"command issued: ",rr)},rr=>{this.logger.info("nvcameraRequestWithWait",br," failed"),Li.error(rr),Vn.unsubscribe()})})}cancelCurrentCapture(){return this.igoConfig.GFNCefClient?(0,Ce.of)(A.Or.Common.Nvcamera.AnselStatusEnum.ok):(this.anselFreestyleCaptureTelemetry(It.db.ScreenshotCancelled),this.nvcameraRequestWithWait(A.Ts.Common.Nvcamera.CancelCapture,{},Ii.captureShotCancel,this.nvCameraRelaxedTimeout).pipe((0,L.T)(ot=>{if(ot.captureShotCancel.status)return ot.captureShotCancel.status;throw new Error(A.Or.Common.Nvcamera.AnselStatusEnum.failed)})))}getLastSlotChangedUpdates(){return this.lastSlotChanged$.asObservable()}triggerPpeFilterSlotChange(ot){this.lastSlotChanged$.next(ot)}applySlot(ot,Vt=!1,Sn=On.O5.GameFilter,Bn=!1){let Ti;return this.logger.info("applyslot index:",ot),this.logger.info("applyslot feature:",Sn),Ti=Sn===On.O5.GameFilter?this.currentGameSlots.modsSlotsInfo:this.currentGameSlots.anselSlotsInfo,(Vt=(Vt=Vt||0===ot)||!this.isModsAppliedCurrently)||Ti.lastSlotIdx!==ot?(2!==Ti.slots.length&&(Ti.lastSlotIdx=ot),this.resetEntireStack().pipe((0,B.ZZ)(()=>{if(0===ot)return(0,Ce.of)(A.Or.Common.Nvcamera.AnselStatusEnum.ok);const Li=Ti.slots[ot].filterStack.filters;return Bn&&this.modsAppliedOnGameLaunch$.next(ot),this.applyFilters(Li,pn.ApplyStyle)}),(0,B.ZZ)(()=>(Sn===On.O5.GameFilter&&(this.triggerPpeFilterSlotChange(ot),this.previousSlotApplied>=0&&this.slotSwitchingTelemetry(this.previousSlotApplied,ot),this.previousSlotApplied=ot),(0,Ce.of)(A.Or.Common.Nvcamera.AnselStatusEnum.ok))))):(this.logger.info("slot is already applied, skipping"),(0,Ce.of)(A.Or.Common.Nvcamera.AnselStatusEnum.ok))}enableModsAndApplySlot(ot,Vt=!1){return this.logger.info("enableModsAndApplySlot index = ",ot),this.nvcameraOperationUnderProgress=!0,this.tryStartNvCameraSession(A.Or.Common.Nvcamera.FeaturesSupported.mods).pipe((0,B.ZZ)(()=>this.checkAndUpdateSavedFilterPaths()),(0,B.ZZ)(()=>this.applySlot(ot,!0,On.O5.GameFilter,Vt)),(0,qe.c)(this.nvCameraStrictTimeout),(0,B.ZZ)(()=>(this.isModsAppliedCurrently=!0,this.passFilterStateToTelemetry(),this.telemetryService.setModsActiveStatus(!0),this.configureNvCameraSession(!1,!1,!0,this.nvCameraDefaultTimeout))),(0,Se.j)(()=>{this.nvcameraOperationUnderProgress=!1}))}applyFilters(ot,Vt){if(ot.length>0){const Sn=(0,tt.H)(ot).pipe((0,ke.H)(Bn=>this.setFilterAndAttributes(Bn,Bn.stackIdx)),(0,Wt.Q)(this.listenNotification([Ii.cancelPendingOperations])),(0,Z.W)(Bn=>(this.logger.error("setFilterAndAttributes failed: ",Bn),(0,Ce.of)(Bn))),(0,be.o)(1),(0,yt.u)());return this.igoConfig.GFNCefClient&&this.customizeAndShowAlert(Sn,Vt),Sn}return(0,Ce.of)(A.Or.Common.Nvcamera.AnselStatusEnum.ok)}checkPreviewEnabled(){return!(this.currentUIMode!==On.O5.GameFilter||!this.previewSupported)||(this.logger.info("Freestyle previews not enabled."+this.currentUIMode),!1)}showPreviewImg(ot,Vt,Sn,Bn){if(!this.checkPreviewEnabled()||!this.currentGFEGameInfo)return;if(void 0===ot){const Li=this.getActiveModsSlot(this.currentUIMode);if(void 0===Li)return void this.logger.info("Active mod slot cannot be undefined");ot=Li.id}const Ti=this.slotsPreviewInfo[ot];void 0===Bn&&(Bn=Ti.previewPath),this.galleryService.getThumbnailForFile(Bn,Vt,Sn).subscribe(Li=>{if(this.resetPreviewStatus(),void 0===Li)return this.logger.info("Image thumbnail cannot be undefined."),void(Ti.previewAvailable=!1);this.logger.info("Freestyle preview available for slot: "+Ti.id),Ti.previewImgData=Li,Ti.previewAvailable=!0},Li=>{this.logger.info("Freestyle preview not available for slot: "+Ti.id),Ti.previewAvailable=!1,this.resetPreviewStatus()})}resetPreviewStatus(){this.previewInProgress&&(this.logger.info("Freestyle preview shot completed."),this.previewInProgress=!1)}setPreviewDetails(ot,Vt,Sn){this.logger.info("Setting preview details"),this.checkPreviewEnabled()&&this.currentGFEGameInfo&&(this.slotsPreviewInfo||this.initializePreviewInfo(),this.shadowPlayService.getFreestylePreviewBasePath().subscribe(Bn=>{const Ti=Bn.previewBasePath;this.logger.info("Freestyle preview base folder"+Ti);for(const Li of ot)Li.id&&(this.slotsPreviewInfo[Li.id].previewPath=Ti+"\\"+this.freestylePreviewPrefix+Li.id+this.freestylePreviewExtension,this.logger.info("Preview path for Slot: "+Li.id+" is "+this.slotsPreviewInfo[Li.id].previewPath),this.previewPaths.push(this.slotsPreviewInfo[Li.id].previewPath));this.sendPreviewPathToGalleryPlugin()},Bn=>{this.logger.info("Error occured in setting preview details :"+Bn)}))}sendPreviewPathToGalleryPlugin(){this.bridgeService.executeCommand(A.Ts.Common.Gallery.PreviewPathInfo,{paths:this.previewPaths}).subscribe(()=>{this.previewPaths=[]})}updatePreview(ot,Vt,Sn){let Bn;if(!this.checkPreviewEnabled())return;this.currentGameSlots&&this.currentGameSlots.modsSlotsInfo&&(Bn=this.getActiveModsSlot(this.currentUIMode));const Ti=Bn?Bn.id:Sn;0===Ti||this.previewInProgress||(this.previewInProgress=!0,this.triggerPreview(this.freestylePreviewPrefix+Ti+this.freestylePreviewExtension,Ti).subscribe(dr=>{this.showPreviewImg(Ti,ot,Vt,dr.filePath)},dr=>{this.logger.info("Error in capturing screenshot for preview"),this.previewInProgress=!1}))}triggerPreview(ot,Vt){return this.shadowPlayService.captureCustomScreenshot("freestyle",ot,Vt)}getAvailableFeatureSet(){return this.cachedFeaturesAvailable?(0,Ce.of)(this.cachedFeaturesAvailable):this.queryFeatureSet(this.isNvCameraReady?this.nvCameraDefaultTimeout:this.nvCameraStrictTimeout)}queryFeatureSet(ot){return this.cachedFeaturesAvailable=void 0,this.nvcameraRequestWithWait(A.Ts.Common.Nvcamera.GetFeatureSet,{},Ii.features,ot).pipe((0,L.T)(Vt=>{const Sn=Vt?.features?.featureSet??[];return this.cachedFeaturesAvailable={[A.Or.Common.Nvcamera.FeaturesSupported.sdk]:Sn.includes(A.Or.Common.Nvcamera.FeaturesSupported.sdk),[A.Or.Common.Nvcamera.FeaturesSupported.mods]:Sn.includes(A.Or.Common.Nvcamera.FeaturesSupported.mods),[A.Or.Common.Nvcamera.FeaturesSupported.allowOffline]:Sn.includes(A.Or.Common.Nvcamera.FeaturesSupported.allowOffline)},this.cachedFeaturesAvailable}),(0,Z.W)(Vt=>(this.cachedFeaturesAvailable={[A.Or.Common.Nvcamera.FeaturesSupported.sdk]:!1,[A.Or.Common.Nvcamera.FeaturesSupported.mods]:!1,[A.Or.Common.Nvcamera.FeaturesSupported.allowOffline]:!1},(0,Ce.of)(this.cachedFeaturesAvailable))))}closeGameFilterMenu(ot){this.menuCloseInProgress$.next(!0),this.closeMenu(On.O5.GameFilter,ot.isleaveFilters).subscribe(Vt=>{this.changeUIRunning(!1),this.igoConfig.GFNCefClient||this.setDynamicHotkey(!0,[r.g8.OpenFreestyle]),this.logger.info("GameFilter menu closed successfully: ",Vt)},Vt=>{this.changeUIRunning(!1),this.igoConfig.GFNCefClient||this.setDynamicHotkey(!0,[r.g8.OpenFreestyle]),this.logger.error("error while closing GameFilter menu: ",Vt)})}closePhotoModeMenu(ot){this.menuCloseInProgress$.next(!0),(ot.isAnselLite?(0,Ce.of)(null):this.setGridOfThirds(!1)).pipe((0,B.ZZ)(()=>ot.isShowError||this.restartRequired?(this.changeUIRunning(!1),(0,Ce.of)(!0)):this.closeMenu(On.O5.PhotoMode,!1))).subscribe(Vt=>{this.changeUIRunning(!1),this.igoConfig.GFNCefClient||this.setDynamicHotkey(!0,[r.g8.OpenAnsel,r.g8.Screenshot]),this.logger.info("Photo mode menu closed successfully: ",Vt)},Vt=>{this.changeUIRunning(!1),this.igoConfig.GFNCefClient||this.setDynamicHotkey(!0,[r.g8.OpenAnsel,r.g8.Screenshot]),this.logger.error("error while closing Photo mode menu: ",Vt)})}configureNvCameraSession(ot,Vt,Sn,Bn){return this.nvcameraRequestWithWait(A.Ts.Common.Nvcamera.SetAnselEnable,{sessionEnable:ot,pauseOnEnable:Vt,leaveFiltersOn:Sn},Ii.anselEnabledResponse,Bn).pipe((0,se.M)(()=>{ot||this.saveFilterPresetsData()}),(0,L.T)(Ti=>{if(Ti.anselEnabledResponse.capture)return Ti.anselEnabledResponse.capture;throw new Error(A.Or.Common.Nvcamera.AnselStatusEnum.failed)}))}getCurrentGameChromaInfo(){return this.currentGameChromaInfo}getNvCameraSessionState(){return this.nvcameraRequestWithWait(A.Ts.Common.Nvcamera.GetAnselEnabledStatus,{},Ii.anselEnabledState,this.nvCameraRelaxedTimeout).pipe((0,L.T)(ot=>{if(void 0!==ot.anselEnabledState.status)return ot.anselEnabledState.status;throw new Error(A.Or.Common.Nvcamera.AnselStatusEnum.failed)}))}getProcessInfo(){return this.nvcameraRequestWithWait(A.Ts.Common.Nvcamera.GetProcessInfo,{},Ii.procInfo,this.nvCameraRelaxedTimeout).pipe((0,L.T)(ot=>ot),(0,Z.W)(ot=>(this.logger.error("GetProcessInfo failed:",ot),(0,Ce.of)(void 0))))}getNvCameraSettings(){return this.bridgeService.executeCommand(A.Ts.Common.Nvcamera.GetNvCameraConfig)}checkFeatureSupport(){return this.isPhotoModeEnabled=this.igoConfig.PhotoModeEnabled,this.isGameFilterEnabled=this.igoConfig.GameFilterEnabled,this.isNvCameraEnabled=this.igoConfig.NvCameraFeaturesEnabled&&(this.isPhotoModeEnabled||this.isGameFilterEnabled),this.getGlobalToggle().pipe((0,B.ZZ)(ot=>this.igoConfig.GFNCefClient?(0,Ce.of)(!0):this.configureNvcameraSettings(ot&&this.isNvCameraEnabled)),(0,B.ZZ)(ot=>(this.logger.info("configureNvcameraSettings response: ",ot),this.registerNotifications(),this.setHotkeyForSlotToggle(this.isGameFilterSupported()))),(0,B.ZZ)(()=>void 0!==this.isAIUpresSupported?(0,Ce.of)(this.isAIUpresSupported):this.getAiUpresSupported()),(0,L.T)(ot=>(this.isAIUpresSupported=ot,this.logger.info("AIUpres supported",this.isAIUpresSupported),!0)),(0,Z.W)(ot=>{throw this.logger.error("checkFeatureSupport failed: ",ot),ot}))}configureNvcameraSettings(ot){return this.bridgeService.executeCommand(A.Ts.Common.Nvcamera.SetNvCameraConfig,{ipcEnable:ot,freestyleEnable:ot}).pipe((0,L.T)(Vt=>(this.logger.info("ConfigureNvcameraSettings returned: ",Vt),!0)),(0,Z.W)(Vt=>(this.logger.info("ConfigureNvcameraSettings returned: ",Vt),(0,Ce.of)(!1))))}changeUIRunning(ot){this.uiRunning.next(ot),ot||this.menuCloseInProgress$.next(!1)}checkAndLaunchPhotoModeMenu(){this.pageLaunchMode=It.gv.UsingHotkey,this.igoConfig.GFNCefClient&&this.currentUIMode!==On.O5.PhotoMode?this.isSystemOnline&&this.queryChromaDB().subscribe(ot=>{ot.photoModeSupport&&this.togglePhotoModeUI()}):this.togglePhotoModeUI()}waitForMenuToClose(ot){this.menuCloseInProgress$.pipe((0,Ae.w)(this.nvCameraMenuOpenTimeout),(0,Lt.I6)(Vt=>!1===Vt),(0,X.s)(1)).subscribe(Vt=>{this.logger.info("Previous menu closed "),ot===On.O5.PhotoMode?this.launchPhotoModeMenu():ot===On.O5.GameFilter&&this.launchGameFilterMenu()},Vt=>{this.logger.error("Previous session did not close in time: ",Vt)})}togglePhotoModeUI(){if(this.logger.info("UI running status PhotoModeUI",this.uiRunning.getValue(),this.menuCloseInProgress$.getValue()),this.uiRunning.getValue())if(this.menuCloseInProgress$.getValue())this.waitForMenuToClose(On.O5.PhotoMode);else{if(this.currentUIMode===On.O5.GameFilter){const ot=this.uiRunning.subscribe(Vt=>{Vt||(this.launchPhotoModeMenu(),ot.unsubscribe())})}this.oscDisplayService.closeOSC()}else this.launchPhotoModeMenu()}toggleGameFilterUI(){if(this.logger.info("UI running status GameFilterUI",this.uiRunning.getValue()),this.pageLaunchMode=It.gv.UsingHotkey,this.uiRunning.getValue())if(this.menuCloseInProgress$.getValue())this.waitForMenuToClose(On.O5.GameFilter);else{if(this.currentUIMode===(On.O5.PhotoMode||On.O5.PhotoModeLight)){const ot=this.uiRunning.subscribe(Vt=>{Vt||(this.launchGameFilterMenu(),ot.unsubscribe())})}this.oscDisplayService.closeOSC()}else this.launchGameFilterMenu()}registerHotkey(ot,Vt){this.hotkeyService.listen(ot).pipe((0,R.c)(this.throttleDuration)).subscribe(()=>{Vt()})}registerNotifications(){this.isNvCameraEnabled&&(this.isPhotoModeSupported()&&this.registerHotkey(r.g8.OpenAnsel,this.checkAndLaunchPhotoModeMenu.bind(this)),this.isGameFilterSupported()&&(this.registerHotkey(r.g8.FreeStyleToggleStyle1,this.applyOrToggleStyleAt.bind(this,1)),this.registerHotkey(r.g8.FreeStyleToggleStyle2,this.applyOrToggleStyleAt.bind(this,2)),this.registerHotkey(r.g8.FreeStyleToggleStyle3,this.applyOrToggleStyleAt.bind(this,3)),this.igoConfig.GFNCefClient||this.registerHotkey(r.g8.OpenFreestyle,this.toggleGameFilterUI.bind(this))),this.bridgeService.executeCommand(A.Ts.Common.Nvcamera.NvCameraResponseNotification).subscribe(ot=>{this.handleNotifications(ot)}),this.bridgeService.executeCommand(A.Ts.Common.Nvcamera.NvCameraFilterResponseNotification).subscribe(ot=>{this.handleNotifications(ot)}),this.bridgeService.executeCommand(A.Ts.Common.Nvcamera.NgxAIUpResNotifications).subscribe(ot=>{this.handleNotifications(ot)}),this.bridgeService.executeCommand(A.Ts.Common.Nvcamera.NvCameraUIControlNotificationData).subscribe(ot=>{this.handleNotifications(ot)}),this.bridgeService.executeCommand(A.Ts.Share.Shareserver.RegisterGeneralNotifications).pipe((0,St.p)(ot=>!!ot.gameExited||!!ot.disableHDR)).subscribe(ot=>{ot.gameExited?this.onGameExit(ot.gameExited):this.anselSnapWhenHDRScreenshotError()}),this.shadowPlayService.registerAppStartedEvent().subscribe(ot=>{this.isAppStartedReceived=!0,this.logger.info("App Start Data: ",ot),ot&&(this.currentGFEGameInfo={procId:ot.appStarted.pid,cmsId:ot.appStarted.cmsId,drsName:ot.appStarted.DRSAppName,drsProfileName:ot.appStarted.profileName,shortName:ot.appStarted.shortName,drsWhitelist:!1}),this.gameDetails.cmsId=this.currentGameInfo.cmsId.toString(),this.gameDetails.drsName=this.currentGameInfo.drsName,this.gameDetails.drsProfileName=this.currentGameInfo.drsProfileName}),this.listenNotification([Ii.nvCameraReady]).pipe((0,qe.c)(this.nvCameraDefaultTimeout)).subscribe(ot=>{this.onNvCameraReady(ot)}),this.igoConfig.GFNCefClient||this.shadowPlayService.getNvCameraToggleStateUpdates().pipe((0,B.ZZ)(ot=>this.configureNvcameraSettings(ot&&this.isNvCameraEnabled))).subscribe(),this.getCmsData().subscribe())}anselSnapWhenHDRScreenshotError(){this.isNvCameraReady?(this.uiRunning.getValue()?(0,Ce.of)(!0):this.tryStartNvCameraSession(A.Or.Common.Nvcamera.FeaturesSupported.mods)).pipe((0,ke.H)(Vt=>Vt?this.captureScreenshot(!1,void 0):(0,Ce.of)(Vt)),(0,Z.W)(Vt=>(this.logger.info("NvCamera session declined for anselSnapWhenHDRScreenshotError",Vt),this.oscNotificationService.show(ft.Ed.HDRErrorScreenshot),(0,Me.$)(Vt)))).subscribe():this.oscNotificationService.show(ft.Ed.HDRErrorScreenshot)}applyOrToggleStyleAt(ot){if(this.logger.info("Hotkey toggle style no ",ot),this.nvcameraOperationUnderProgress)return void this.logger.info("Filter operations under progress, ignoring hotkey");if(this.uiRunning.getValue())return void this.logger.info("UI is up, ignoring hotkey");let Vt,Sn=!1;this.isModsAppliedCurrently&&this.currentGameSlots.modsSlotsInfo.lastSlotIdx===ot?(Vt=this.enableModsAndApplySlot(0),this.previousStyleApplied=""):(Vt=this.checkSlotsForCurrentGame().pipe((0,B.ZZ)(Bn=>this.enableModsAndApplySlot(ot))),Sn=!0),Vt.subscribe(Bn=>{this.logger.info("Status of applyOrToggleStyleAt = ",Bn),Sn&&this.sendAnselFreestyleFiltersTelemetry(On.O5.GameFilter)},Bn=>{this.logger.info("Error in applyOrToggleStyleAt. Error = ",Bn),Sn&&(this.nvCameraTimedOut=!0,this.sendAnselFreestyleErrorTelemetry(On.T7.anselFreeStyle,On.O5.GameFilter),this.anselFreestyleErrorTelemetry(On.T7.anselFreeStyle,On.O5.GameFilter,"Nvcamera timed out"))})}getHotkeyNum(ot){return this.hotkeyService.getHotkeyNum(ot)}getHotkeyStringForSlot(ot){switch(ot){case 1:return this.hotkeyService.getHotkeyString(r.g8.FreeStyleToggleStyle1);case 2:return this.hotkeyService.getHotkeyString(r.g8.FreeStyleToggleStyle2);case 3:return this.hotkeyService.getHotkeyString(r.g8.FreeStyleToggleStyle3);default:return(0,Ce.of)(void 0)}}handleNotifications(ot){this.logger.info("NvCamera Notification: ",ot),this.notifications$.next(ot)}saveFilterPresetsData(ot=null){(ot=ot||this.filterPresetsData)&&this.dBStore.setItem(this.filterPresetsStorageKeyName,JSON.stringify(ot)).subscribe(()=>{this.logger.info("Filter presets data storage updated")},Vt=>{this.logger.error("Error while updating filter presets data storage: ",Vt)})}loadFilterPresetsData(){return this.filterPresetsData?(0,Ce.of)(!0):(this.filterPresetsData=new fn.Jm,this.dBStore.getItem(this.filterPresetsStorageKeyName).pipe((0,L.T)(ot=>(ot?this.filterPresetsData.deserialize(JSON.parse(ot))?this.logger.info("Filter presets data loaded from the storage"):(this.logger.error("Failed to parse stored filter presets data, stored data: ",JSON.stringify(ot)),this.filterPresetsData=new fn.Jm):this.logger.info("Filter presets data not found in the storage"),!0)),(0,Z.W)(ot=>(this.logger.error("Could not load filter presets data from the storage: ",JSON.stringify(ot)),(0,Ce.of)(!0)))))}processSlotsForPathUpdates(ot,Vt){let Sn,Bn;return ot.some(Ti=>Ti.filterStack.filters.length>0&&(Ti.filterStack.filters.some(Li=>{const dr=Li.id;if(!Sn){if(!dr.includes(this.driverStorePathKey))return!1;if(Bn=dr.substring(0,dr.lastIndexOf("\\")+1),Vt===Bn)return Sn=!1,!0;Sn=!0,this.logger.info("Driverstore path has changed, updating saved filter presets")}const Fr=dr.substring(dr.lastIndexOf("\\")+1);Li.id=Vt+Fr}),!Sn)),Sn}checkAndUpdateSavedFilterPaths(){return this.igoConfig.GFNCefClient||!this.currentGameSlots?(0,Ce.of)(!1):this.getFilterList().pipe((0,L.T)(ot=>{let Sn;ot.filtersList.filtersListArray.some(Li=>{const dr=Li.id;return!!dr.includes(this.driverStorePathKey)&&(Sn=dr.substring(0,dr.lastIndexOf("\\")+1),!0)});const Bn=this.processSlotsForPathUpdates(this.currentGameSlots.modsSlotsInfo.slots,Sn),Ti=this.processSlotsForPathUpdates(this.currentGameSlots.anselSlotsInfo.slots,Sn);return(Bn||Ti)&&this.saveFilterPresetsData(),!0}),(0,Z.W)(ot=>(this.logger.error("Error in checkAndUpdateSavedFilterPaths():",ot),(0,Ce.of)(!1))))}loadSlotsForCurrentGame(){return this.loadFilterPresetsData().pipe((0,se.M)(()=>{let ot="";ot=this.isDevServer?"devserver":this.igoConfig.GFNCefClient?this.currentGameInfo.cmsId.toString():this.currentProcessInfo.procPath,this.filterPresetsData.filterPresets[ot]?this.logger.info("Saved filter presets loaded for the game"):(this.logger.info("No saved filter presets found for the game"),this.filterPresetsData.filterPresets[ot]=new fn.n,this.igoConfig.GFNCefClient||(this.filterPresetsData.filterPresets[ot].modsSlotsInfo.lastSlotIdx=1)),this.currentGameSlots=this.filterPresetsData.filterPresets[ot]}))}getHotkeyStringForActiveSlot(){return this.isNvCameraReady?this.checkSlotsForCurrentGame().pipe((0,B.ZZ)(Vt=>this.currentGameSlots.modsSlotsInfo.lastSlotIdx>0?this.getHotkeyStringForSlot(this.currentGameSlots.modsSlotsInfo.lastSlotIdx):(0,Ce.of)(void 0))):(0,Ce.of)("None")}checkSlotsForCurrentGame(){return this.currentGameSlots?(0,Ce.of)(!0):this.getProcessInfo().pipe((0,St.p)(ot=>!!ot),(0,B.ZZ)(ot=>(this.currentProcessInfo=ot[Ii.procInfo],this.loadSlotsForCurrentGame())))}initializePreviewInfo(){if(!this.slotsPreviewInfo){this.slotsPreviewInfo=[];for(let ot=0;ot<=fn.Zi;ot++)this.slotsPreviewInfo.push(new fn.Bv(ot))}}deletePreviews(){if(this.slotsPreviewInfo)for(let ot=0;ot<=fn.Zi;ot++)this.slotsPreviewInfo[ot].previewPath&&this.bridgeService.executeCommand(A.Ts.Common.Gallery.DeletePreview,{previewFilepath:this.slotsPreviewInfo[ot].previewPath}).subscribe()}tryLaunchMenu(ot){this.nvcameraOperationUnderProgress=!0;let Vt=!1;return this.tryStartNvCameraSession(ot).pipe((0,B.ZZ)(Sn=>(Vt=Sn,this.checkSlotsForCurrentGame())),(0,B.ZZ)(()=>this.checkAndUpdateSavedFilterPaths()),(0,L.T)(()=>(this.logger.info("Launching UI Menu"),this.restartRequired=!1,ot===A.Or.Common.Nvcamera.FeaturesSupported.mods?Vt?this.oscDisplayService.openOSC("sidebar/nvcamera/game-filters",{showError:!1,errorType:cn.SUCCESS,nvCameraSessionExists:!0}):(this.currentUIMode=On.O5.GameFilter,this.oscDisplayService.openOSC("sidebar/nvcamera/game-filters",{showError:!0,errorType:cn.ERROR_SUPPORTED_GAME,nvCameraSessionExists:!1})):ot===A.Or.Common.Nvcamera.FeaturesSupported.sdk&&this.oscDisplayService.openOSC("sidebar/nvcamera/photo-mode",{UIMode:this.currentUIMode,isAIUpresEnabled:this.isAIUpresSupported,showError:!1,errorType:cn.SUCCESS}),!0)),(0,Se.j)(()=>{this.nvcameraOperationUnderProgress=!1}))}setNvcameraCmsInfo(){this.currentFreestyleGameInfo&&this.currentFreestyleGameInfo.cmsId&&this.bridgeService.executeCommand(A.Ts.Common.Nvcamera.SetCMSInfo,{cmsId:this.currentFreestyleGameInfo.cmsId.toString(),shortName:this.currentFreestyleGameInfo.shortName}).subscribe()}getGPUInfo(){return this.bridgeService.executeCommand(A.Ts.Share.Graphicssetting.GetGPUInfo)}getGenericInfo(){return this.bridgeService.executeCommand(A.Ts.Share.Graphicssetting.GetGenericInfo)}getSystemInfo(){return this.systemInfo?(0,Ce.of)(this.systemInfo):(this.systemInfo={cpuName:"",gpuName:"",systemType:"",isOptimus:!1,osVersion:"",ddVersion:""},this.igoConfig.GFNCefClient?(0,Ce.of)(this.systemInfo):(0,Xe.p)([this.systemInfoService.getSystemInfo([M.Lu.CPUName,M.Lu.GPU,M.Lu.OSVersion]),this.getGPUInfo(),this.getGenericInfo()]).pipe((0,L.T)(([ot,Vt,Sn])=>{this.systemInfo.cpuName=ot.CPUName;const Bn=ot.GPU?.GPUData?.length??0;let Ti=0;for(;Ti<Bn-1;Ti++)this.systemInfo.gpuName+=ot.GPU?.GPUData[Ti]?.LongGPUName+", ";return this.systemInfo.gpuName+=ot.GPU?.GPUData[Ti]?.LongGPUName??"",this.systemInfo.osVersion=ot.OSVersion,this.systemInfo.isOptimus="1"===Vt.IsOptimus,this.systemInfo.systemType=Sn.MoboType,this.systemInfo.ddVersion=Sn.DriverVersion,this.systemInfo}),(0,Z.W)(ot=>(this.logger.error("Error while fetching system info ",ot),(0,Ce.of)(this.systemInfo)))))}getGlobalToggle(){return this.shadowPlayService.getNvCameraToggleState()}setGlobalToggle(ot){return this.logger.info("setGlobalToggle:",ot),this.globalToggleChangedFromIGO$.next(ot),(0,Xe.p)([this.shadowPlayService.setNvCameraToggleState(ot),this.configureNvcameraSettings(ot)]).pipe((0,L.T)(()=>(this.logger.info("setGlobalToggle successfull"),!0)))}listenToNvCameraGlobalToggleChanges(){return this.globalToggleChangedFromIGO$.asObservable()}getIsGameRestartRequestedfromCTA(){return this.isGameRestartRequestedfromCTA}setIsGameRestartRequestedfromCTA(ot){this.isGameRestartRequestedfromCTA=ot}isFreestyleSupportedGame(){return this.currentGameInfo?.drsWhitelist}checkIfCurrentGameIsAllowlisted(){return this.igoConfig.GFNCefClient?this.chromaDBResult?.gameFilterSupport:this.currentGameChromaInfo?.nvidiaTech?.FREESTYLE}checkFeatureLaunch(ot){let Vt=cn.SUCCESS;switch(this.isSystemOnline=this.networkStatusService.isOnline,this.currentGameInfo&&(this.igoConfig.GFNCefClient||this.currentFreestyleGameInfo?.procId===this.currentGameInfo.procId)&&(this.currentFreestyleGameInfo=this.currentGameInfo),ot){case On.O5.PhotoModeLight:case On.O5.GameFilter:if(this.isSystemOnline)return this.queryChromaDB().pipe((0,L.T)(()=>(this.currentFreestyleGameInfo&&void 0!==this.currentFreestyleGameInfo.cmsId&&this.checkIfCurrentGameIsAllowlisted()?(this.logger.info("Game whitelisted in ChromaDB"),Vt=cn.SUCCESS):(this.logger.info("Game blacklisted in ChromaDB: ",this.currentFreestyleGameInfo),Vt=cn.ERROR_SUPPORTED_GAME),Vt)),(0,Z.W)(Sn=>(Vt=this.igoConfig.GFNCefClient?cn.ERROR_SYSTEM_OFFLINE:this.cachedFeaturesAvailable?.[A.Or.Common.Nvcamera.FeaturesSupported.allowOffline]?cn.SUCCESS:cn.ERROR_SUPPORTED_GAME,(0,Ce.of)(Vt))));Vt=this.igoConfig.GFNCefClient?cn.ERROR_SYSTEM_OFFLINE:this.cachedFeaturesAvailable?.[A.Or.Common.Nvcamera.FeaturesSupported.allowOffline]?cn.SUCCESS:cn.ERROR_SUPPORTED_GAME;break;case On.O5.PhotoMode:break;default:this.logger.error("Unknown feature: "+ot)}return(0,Ce.of)(Vt)}nvcameraRequestWithWait(ot,Vt,Sn,Bn){return new rt.c(Ti=>{this.logger.info("command: ",ot.method),this.logger.info("params: ",Vt);const Li=this.listenNotification([Sn]).pipe((0,Ae.w)(Bn)).subscribe(dr=>{Ti.next(dr),Li.unsubscribe(),Ti.complete()},dr=>{this.logger.error("nvcameraRequestWithWait ",ot.method," timed out"),Ti.error(dr)});this.bridgeService.executeCommand(ot,Vt).subscribe(dr=>{this.logger.info(ot.method,"command issued: ",dr)},dr=>{this.logger.error("nvcameraRequestWithWait",ot.method," failed"),Ti.error(dr),Li.unsubscribe()})})}enableNvCameraSession(){return this.configureNvCameraSession(!0,this.currentUIMode===On.O5.PhotoMode,!1,this.nvCameraDefaultTimeout).pipe((0,L.T)(Vt=>{const Sn=[A.Or.Common.Nvcamera.AnselStatusEnum.ok,A.Or.Common.Nvcamera.AnselStatusEnum.alreadyEnabled];if(Sn.push(this.currentUIMode===On.O5.PhotoMode?A.Or.Common.Nvcamera.AnselStatusEnum.okAnsel:A.Or.Common.Nvcamera.AnselStatusEnum.okModsOnly),Sn.includes(Vt))return!0;throw new Error(cn.ERROR_SESSION_NOT_ALLOWED)}))}tryStartNvCameraSession(ot){return this.igoConfig.GFNCefClient?this.enableNvCameraSession():this.getAvailableFeatureSet().pipe((0,L.T)(Vt=>{if(Vt?.[ot])return ot===A.Or.Common.Nvcamera.FeaturesSupported.sdk?On.O5.PhotoMode:On.O5.GameFilter;if(ot===A.Or.Common.Nvcamera.FeaturesSupported.sdk&&Vt?.[A.Or.Common.Nvcamera.FeaturesSupported.mods]&&this.isPhotoModeLiteSupported())return this.currentUIMode=On.O5.PhotoModeLight,On.O5.PhotoModeLight;throw new Error(cn.ERROR_SUPPORTED_GAME)}),(0,B.ZZ)(Vt=>this.checkFeatureLaunch(Vt)),(0,se.M)(Vt=>{if(Vt!==cn.SUCCESS)throw new Error(Vt)}),(0,B.ZZ)(()=>this.enableNvCameraSession()))}gameStartedNotify(){return this.nvcameraGameStarted$.asObservable()}modsSlotappliedComplete(){return this.modsAppliedOnGameLaunch$.asObservable()}ensureChromaDataIsAvailableForGame(){return this.logger.info("ensureChromaDataIsAvailableForGame"),this.lcarsService?.getCurrentAppChromaInfo().pipe((0,St.p)(ot=>!!ot&&void 0!==ot.pid&&ot.pid===this.currentFreestyleGameInfo.procId&&!this.isPreviousSessionRunning()),(0,L.T)(ot=>(this.currentGameChromaInfo=ot,this.currentGameChromaInfo?.nvidiaTech?.FREESTYLE||(this.nvcameraGameStarted$.next(!0),this.modsAppliedOnGameLaunch$.next(0)),this.logger.info("Chroma info fetched successfully for the current nvcamera game ",ot),!0)),(0,X.s)(1),(0,Ae.w)(hn.CZ))}shouldApplyFiltersOnLaunch(){const ot=this.currentGameSlots.modsSlotsInfo.lastSlotIdx;return ot>0&&this.currentGameSlots.modsSlotsInfo.slots[ot]?.filterStack?.filters?.length>0}onNvCameraReady(ot){this.statusOfCaptureEnhance&&(ot.nvCameraReady.deviceCreationCounter>0&&(this.logger.info("nvcamera ready notification received"),this.isNvCameraReady=!0,this.gameFilterDisable.next(!1),this.photoModeDisable.next(!1),this.queryFeatureSet(this.nvCameraRelaxedTimeout).subscribe()),this.getProcessInfo().pipe((0,St.p)(Vt=>!!Vt),(0,B.ZZ)(Vt=>(this.currentProcessInfo=Vt[Ii.procInfo],this.currentFreestyleGameInfo={procId:Vt[Ii.procInfo].procId,cmsId:void 0,drsName:void 0,drsProfileName:void 0,shortName:void 0,drsWhitelist:!1},this.igoConfig.GFNCefClient||(this.nvcameraGameStarted$.next(!0),!this.networkStatusService.isOnline)?(0,Ce.of)(!1):this.ensureChromaDataIsAvailableForGame())),(0,St.p)(Vt=>Vt),(0,B.ZZ)(()=>this.loadSlotsForCurrentGame()),(0,B.ZZ)(()=>{const Vt=this.currentGameSlots.modsSlotsInfo.lastSlotIdx;return this.shouldApplyFiltersOnLaunch()?this.enableModsAndApplySlot(Vt,!0).pipe((0,L.T)(Sn=>(this.logger.info("slot",Vt,"filters applied automatically"),this.sendAnselFreestyleFiltersTelemetry(On.O5.GameFilter,!0),Sn))):(this.modsAppliedOnGameLaunch$.next(Vt),this.triggerPpeFilterSlotChange(Vt),this.previousSlotApplied=Vt,(0,Ce.of)(A.Or.Common.Nvcamera.AnselStatusEnum.ok))}),(0,B.ZZ)(Vt=>this.getHotkeyStringForActiveSlot().pipe((0,L.T)(Sn=>(this.gameFilterStyleToggleHotkey.next(Sn),Vt))))).subscribe(et.l,Vt=>{this.logger.error("failed to apply slot automatically: ",Vt.message)}))}resetState(ot=null){if(this.logger.info("resetState"),this.igoConfig.GFNCefClient)this.preResetSessionData.currentGameInfo=this.currentGameInfo,this.preResetSessionData.uiMode=this.currentUIMode,this.preResetSessionData.modsApplied=this.isModsAppliedCurrently;else{const Vt=ot?.exitAppPID;if(this.logger.info("currentProcessInfo:",this.currentProcessInfo),this.currentProcessInfo&&this.currentProcessInfo.procId!==Vt&&-1!==Vt)return void this.logger.info("gameExit ignored for Pid:",Vt);this.currentProcessInfo&&this.currentProcessInfo.procId===Vt&&(this.currentFreestyleGameInfo=void 0,this.currentGameChromaInfo=void 0)}this.cachedFeaturesAvailable=void 0,this.currentGameSlots=void 0,this.currentUIMode=void 0,this.isModsAppliedCurrently=!1,this.passFilterStateToTelemetry(),this.gameFilterDisable.next(!0),this.photoModeDisable.next(!0),this.isNvCameraReady=!1,this.currentProcessInfo=void 0,this.telemetryService.setModsActiveStatus(!1),this.saveFilterPresetsData(),this.restartRequired=!1,this.currentGFEGameInfo=void 0,this.currentGameStreamInfo=void 0,this.previewInProgress=!1,this.deletePreviews(),this.slotsPreviewInfo=void 0,this.chromaDBResult=void 0,this.isAppStartedReceived=!1,this.isGameRestartRequestedfromCTA=!1,this.isAIDVCEnabled=!1,this.isAIHDREnabled=!1,this.isNIS2Enabled=!1}onGameExit(ot){if(!this.igoConfig.GFNCefClient)return this.resetState(ot)}sanitize(ot){return Math.floor(ot*fn.US)/fn.US}fillSingleSliderControl(ot,Vt,Sn,Bn){Bn.id=Vt.id,Bn.dataType=Vt.dataType,Bn.dimension=Sn,Bn.measureUnit=Vt.measureUnit||"",Bn.minValue=Math.round(Vt.minValue[Sn]*fn.Af)/fn.Af,Bn.maxValue=Math.round(Vt.maxValue[Sn]*fn.Af)/fn.Af,Bn.stepSize=Math.round(Vt.stepSize[Sn]*fn.Af)/fn.Af,Bn.currentValue=Math.round(Vt.currentValue[Sn]*fn.Af)/fn.Af,Bn.uiMinValue=Vt.uiMinValueV1?Vt.uiMinValueV1[Sn]:Vt.uiMinValue,Bn.uiMaxValue=Vt.uiMaxValueV1?Vt.uiMaxValueV1[Sn]:Vt.uiMaxValue,Bn.uiStepSize=this.sanitize(Vt.uiStepSize[Sn]),0===Bn.uiStepSize&&(Bn.uiStepSize=Math.abs(Bn.uiMaxValue-Bn.uiMinValue)/100),Bn.uiMinValue!==Bn.uiMaxValue?(Bn.currentUIValue=Math.round(this.normalizeSliderValue(Vt.currentValue[Sn]*fn.Af/fn.Af,Bn.minValue,Bn.maxValue,Bn.uiMinValue,Bn.uiMaxValue)*fn.US)/fn.US,Bn.defaultValue=Math.round(this.normalizeSliderValue(Vt.defaultValue[Sn]*fn.Af/fn.Af,Bn.minValue,Bn.maxValue,Bn.uiMinValue,Bn.uiMaxValue)*fn.US)/fn.US):(Bn.currentUIValue=Bn.uiMaxValue,Bn.defaultValue=Bn.uiMaxValue),"int"===Vt.dataType&&(Bn.stepSize=Bn.uiStepSize=1)}fillSingleEditControl(ot,Vt,Sn,Bn){Bn.id=Vt.id,Bn.dataType=Vt.dataType,Bn.dimension=Sn,Bn.currentValue=Vt.currentValue[Sn],Bn.minValue=Vt.minValue[Sn],Bn.maxValue=Vt.maxValue[Sn]}createFilterControls(ot,Vt){ot&&ot.filterDetails&&(Vt.controls=[],ot.filterDetails.controls?.forEach((Sn,Bn,Ti)=>{const Li={};Li.controlType=Sn.controlType,Li.displayName=Sn.displayName,Li.currentValueArray=[];const dr=(Sn.defaultValue||Sn.currentValue||[Sn.defaultId]).length;if("slider"===Sn.controlType){if(1===dr)this.fillSingleSliderControl(Vt,Sn,0,Li),Li.currentValueArray[0]=Li.currentValue;else if(dr>1){Li.controlType="multislider",Li.subControls=[],Li.id=Sn.id,Li.dataType=Sn.dataType;for(let Fr=0;Fr<dr;Fr++){const br={};br.displayName=Sn.uiDisplayNameV1?Sn.uiDisplayNameV1[Fr]:"",this.fillSingleSliderControl(Vt,Sn,Fr,br),Li.currentValueArray[Fr]=br.currentValue,Li.subControls.push(br)}}}else if("boolean"===Sn.controlType)Li.id=Sn.id,Li.controlType=Sn.controlType,Li.dataType="bool",Li.dimension=0,Li.currentValue=!!Sn.currentValue[0],Li.currentValueArray[0]=Li.currentValue;else if("pulldown"===Sn.controlType||"radiobutton"===Sn.controlType)Li.id=Sn.id,Li.dimension=0,Li.dataType="int",Li.pullDownOrRadioButtonItems=Sn.uiDisplayNameV1,Li.currentValueArray[0]=Sn.currentId;else{if("edit"!==Sn.controlType)return void this.logger.error("unknown filter control type:",Sn.controlType);if(1===dr)this.fillSingleEditControl(Vt,Sn,0,Li),Li.currentValueArray[0]=Li.currentValue;else if(dr>1){Li.controlType="multiedit",Li.id=Sn.id,Li.dataType=Sn.dataType,Li.subControls=[];for(let Fr=0;Fr<dr;Fr++){const br={};br.displayName=Sn.uiDisplayNameV1?Sn.uiDisplayNameV1[Fr]:"",this.fillSingleEditControl(Vt,Sn,Fr,br),Li.currentValueArray[Fr]=br.currentValue,Li.subControls.push(br)}}}Vt.controls.push(Li)}))}togglePanning(){this.enableAnselRedirection(!this.isRedirectionEnable)}gfnMouseEvent(ot,Vt,Sn,Bn){return this.bridgeService.executeCommand(A.Ts.Common.Nvcamera.MouseEventToNvcamera,{eventName:ot,button:Vt,coordinateX:Sn,coordinateY:Bn}).subscribe()}gfnKBEvent(ot,Vt,Sn,Bn){return this.bridgeService.executeCommand(A.Ts.Common.Nvcamera.KeyboardEventToNvcamera,{eventName:ot,keyCode:Vt,code:Sn,shiftKey:Bn}).subscribe()}enableAnselRedirection(ot,Vt,Sn){if(Vt=A.Or.Common.Nvcamera.Hid.mouse,this.isRedirectionEnable===ot)return;let Bn;this.isRedirectionEnable=ot,this.isInDesktopMode().pipe((0,B.ZZ)(Ti=>{if(Ti){if(this.currentUIMode!==On.O5.PhotoMode)return(0,Ce.of)(!1);Bn=A.Or.Common.Nvcamera.Mode.windowedSDK}else if(this.currentUIMode===On.O5.PhotoMode)Bn=A.Or.Common.Nvcamera.Mode.fullscreenSDK;else{if(this.currentUIMode!==On.O5.PhotoModeLight)return(0,Ce.of)(!1);Bn=A.Or.Common.Nvcamera.Mode.fullscreenNoSDK}return this.igoConfig.GFNCefClient?(0,Ce.of)(!1):this.bridgeService.executeCommand(A.Ts.Common.Nvcamera.SetAnselRedirection,{enable:ot,mode:Bn,hid:Vt})})).subscribe(Ti=>{this.logger.info("EnableAnselRedirection status: ",Ti)},Ti=>{this.logger.error("EnableAnselRedirection error: ",Ti)})}getRedirectionState(){return this.isRedirectionEnable}isInDesktopMode(){return this.oscDisplayService.getCurrentDesktopMode().pipe((0,Zt.$)(),(0,L.T)(ot=>(this.logger.info("Current display mode is ",ot),"desktop"===ot)))}setLanguageAndGetFilterList(){return this.localeService.localeChanged.pipe((0,Zt.$)(),(0,B.ZZ)(ot=>(this.logger.info("locale changed to:",ot),this.bridgeService.executeCommand(A.Ts.Common.Nvcamera.SetLanguage,{langId:ot}))),(0,B.ZZ)(()=>this.getFilterList()))}getCurrentUIMode(){return this.currentUIMode}setCurrentModSlotName(ot){this.currentGameSlots.modsSlotsInfo.slots[this.currentGameSlots.modsSlotsInfo.lastSlotIdx].slotName=ot}getCurrentModSlotName(){if(this.isAnyGameFilterSlotSelected()){const ot=this.currentGameSlots.modsSlotsInfo.slots[this.currentGameSlots.modsSlotsInfo.lastSlotIdx].slotName;return ot&&""!==ot.trim()?ot:void 0}}getCurrentSlotIndex(){return this.isAnyGameFilterSlotSelected()?this.currentGameSlots.modsSlotsInfo.lastSlotIdx.toString():""}getActiveModsSlot(ot){let Vt;return Vt=ot===On.O5.GameFilter?this.currentGameSlots.modsSlotsInfo:this.currentGameSlots.anselSlotsInfo,Vt.slots[Vt.lastSlotIdx]}isAnyGameFilterSlotSelected(){return!!this.statusOfCaptureEnhance&&this.currentGameSlots&&this.currentGameSlots.modsSlotsInfo.lastSlotIdx>0}isAnyGameFilterSlotSelectedNvApp(){return this.currentGameSlots&&this.currentGameSlots.modsSlotsInfo.lastSlotIdx>0}isPreviousSessionRunning(){return this.currentFreestyleGameInfo&&this.currentFreestyleGameInfo.cmsId}getCmsData(){let ot=!1;return this.shadowPlayService.registerAppStartedEvent().pipe((0,B.ZZ)(Vt=>(this.logger.info("app notification:",Vt),ot=!0,this.isAppStartedReceived=!0,this.currentGameInfo&&this.currentGameInfo.drsWhitelist?(0,Ce.of)(void 0):this.isPreviousSessionRunning()?(this.logger.info("not updating current app data"),(0,Ce.of)(void 0)):(this.logger.info("updating current app data"),Vt&&(this.currentGFEGameInfo={procId:Vt.appStarted.pid,cmsId:Vt.appStarted.cmsId,chromaAppId:Vt.appStarted.ChromaAppId,drsName:Vt.appStarted.DRSAppName,drsProfileName:Vt.appStarted.profileName,shortName:Vt.appStarted.shortName,drsWhitelist:!1}),this.igoConfig.GFNCefClient?(0,Ce.of)({}):this.getFreestyleWhitelisted(Vt.appStarted.DRSAppName)))),(0,se.M)(Vt=>{this.logger.info("getFreestyleWhitelisted",Vt),this.currentGameInfo.drsWhitelist=!!Vt&&Vt.freestyleWhitelisted,ot&&!this.currentGameInfo.drsWhitelist&&(this.nvcameraGameStarted$.next(!0),this.modsAppliedOnGameLaunch$.next(0))}),(0,Z.W)(Vt=>(ot=!1,this.logger.error("getFreestyleWhitelisted failed"+JSON.stringify(Vt)),(0,Ce.of)())))}setAnselFreestyleState(){this.gameFilterDisable.value&&this.gameFilterDisable.next(!1),this.photoModeDisable.value&&this.photoModeDisable.next(!1)}checkNvCameraReady(){this.queryFeatureSet(this.nvCameraRelaxedTimeout).pipe((0,se.M)(ot=>{ot&&(ot[A.Or.Common.Nvcamera.FeaturesSupported.mods]||ot[A.Or.Common.Nvcamera.FeaturesSupported.sdk])&&(this.isNvCameraReady=!0,this.logger.info("Setting NvCamera ready"),this.setAnselFreestyleState())})).subscribe()}setNavigationInputDevice(ot=[],Vt=[]){if(ot.length===Vt.length)for(let Sn=0;Sn<ot.length;Sn++)switch(ot[Sn]){case ti.Keyboard:this.navigationInputDevice.KEYBOARD=!!Vt[Sn];break;case ti.Mouse:this.navigationInputDevice.MOUSE=!!Vt[Sn];break;case ti.Gamepad:this.navigationInputDevice.GAMEPAD=!!Vt[Sn]}}sendAnselFreestyleFiltersTelemetry(ot,Vt=!1){let Sn="",Bn="",Ti="",Li="",dr=0;ot===On.O5.GameFilter&&(this.currentGameSlots.modsSlotsInfo.slots.forEach(Fr=>{const br=Fr.filterStack.filters.length;let Vn="";if(br){this.slotsUsed.add(dr);for(let rr=0;rr<br;rr++)Vn+=rr<br-1?Fr.filterStack.filters[rr].name+", ":Fr.filterStack.filters[rr].name}else this.slotsUsed.delete(dr);switch(dr){case 1:Sn=Vn;break;case 2:Bn=Vn;break;case 3:Ti=Vn}if(dr===this.currentGameSlots.modsSlotsInfo.lastSlotIdx&&(Li=Vn,this.previousStyleApplied!==Li))for(let rr=0;rr<br;rr++)this.telemetryService.sendAnselFreestyleFilters(Fr.filterStack.filters[rr].name,ot,this.currentGameInfo.cmsId.toString(),this.currentGameInfo.shortName,this.currentGameInfo.drsName,this.currentGameInfo.drsProfileName);dr++}),""!==Li&&this.previousStyleApplied!==Li&&this.telemetryService.sendFreestyleSlotTelemetry(Sn,Bn,Ti,Li,this.currentGameSlots.modsSlotsInfo.lastSlotIdx,this.slotsUsed.size,Vt,this.currentGameInfo.cmsId.toString(),this.currentGameInfo.shortName,this.currentGameInfo.drsName,this.currentGameInfo.drsProfileName)),this.previousStyleApplied=Li}sendAnselScreenshotTelemetry(ot,Vt){let Sn="",Bn=0,Ti=this.currentGameInfo;Ti||(Ti=this.preResetSessionData.currentGameInfo),ot===On.J7.completed&&this.currentGameSlots.anselSlotsInfo.slots.forEach(Li=>{const dr=Li.filterStack.filters.length;let Fr="";if(dr)for(let br=0;br<dr;br++)this.telemetryService.sendAnselFreestyleFilters(Li.filterStack.filters[br].name,On.O5.PhotoMode,Ti?.cmsId.toString(),Ti?.shortName,Ti?.drsName,Ti?.drsProfileName),Fr+=br<dr-1?Li.filterStack.filters[br].name+", ":Li.filterStack.filters[br].name;1===Bn&&(Sn=Fr),Bn++}),this.telemetryService.sendAnselScreenshotTelemetry(ot,Ti?.cmsId,Ti?.shortName,Vt.screenshotType,Vt.screenshotResolution,this.panningUsed,Vt.mode,Vt.totalMs,Vt.gridUsed,Vt.roll,Vt.fov,Sn,Vt.errorType,Vt.errorString)}sendAnselFreestyleErrorTelemetry(ot,Vt,Sn){this.getSystemInfo().subscribe(Bn=>{let Ti=On.nt.unsupportedGame,Li=this.currentGameInfo;Sn?(Ti=On.nt.streamerError,Li||(Li=this.preResetSessionData.currentGameInfo)):Li&&!this.checkIfCurrentGameIsAllowlisted()?Ti=On.nt.gameBlacklisted:this.nvCameraTimedOut&&(Ti=On.nt.nvCameraTimedOut,this.nvCameraTimedOut=!1),Li&&this.telemetryService.sendAnselFreestyleErrorTelemetry(ot,Vt,Li.cmsId.toString(),Li.shortName,Li.drsName,Li.drsProfileName,Bn.cpuName,Bn.gpuName,Bn.osVersion,Bn.isOptimus,Bn.systemType,Bn.ddVersion,Ti,Sn)})}errorHandlingForLaunchMenu(ot,Vt){Vt!==cn.ERROR_SUPPORTED_GAME&&(this.currentUIMode=void 0),this.igoConfig.GFNCefClient?ot===A.Or.Common.Nvcamera.FeaturesSupported.sdk?(Vt===cn.ERROR_SESSION_NOT_ALLOWED?this.oscNotificationService.show(ft.Ed.PhotoModeNotAllowed):this.photoModeDisable.next(!0),this.sendFeatureDisableErrorTelemetry(On.O5.PhotoMode,On.bG.nvCameraSessionConfigurationFailed,JSON.stringify(Vt))):ot===A.Or.Common.Nvcamera.FeaturesSupported.mods&&(this.gameFilterDisable.next(!0),this.sendFeatureDisableErrorTelemetry(On.O5.GameFilter,On.bG.nvCameraSessionConfigurationFailed,JSON.stringify(Vt))):Vt!==cn.ERROR_SESSION_NOT_ALLOWED||ot!==A.Or.Common.Nvcamera.FeaturesSupported.sdk?Vt===cn.ERROR_RESTART?(this.restartRequired=!0,ot===A.Or.Common.Nvcamera.FeaturesSupported.mods?this.oscDisplayService.openOSC("sidebar/nvcamera/game-filters",{showError:!1,errorType:cn.ERROR_RESTART}):ot===A.Or.Common.Nvcamera.FeaturesSupported.sdk&&this.oscDisplayService.openOSC("sidebar/nvcamera/photo-mode",{showError:!1,errorType:cn.ERROR_RESTART})):ot===A.Or.Common.Nvcamera.FeaturesSupported.mods?this.oscDisplayService.openOSC("sidebar/nvcamera/game-filters",{showError:!0,errorType:Vt}):ot===A.Or.Common.Nvcamera.FeaturesSupported.sdk&&this.oscDisplayService.openOSC("sidebar/nvcamera/photo-mode",{UIMode:this.currentUIMode,isAIUpresEnabled:!1,showError:!0,errorType:Vt}):this.oscNotificationService.show(this.igoConfig.GFNCefClient?ft.Ed.PhotoModeNotAllowed:ft.Ed.PhotoModeNotAllowedNvApp)}onCaptureEnhanceToggle(){this.statusOfCaptureEnhance&&this.isNvCameraReady?this.applySlot(this.currentGameSlots.modsSlotsInfo.lastSlotIdx,!0).subscribe(ot=>{this.logger.info("applySlot success")},ot=>{this.logger.error("applySlot failed:",ot)}):!this.statusOfCaptureEnhance&&this.isNvCameraReady&&this.resetEntireStack().subscribe(ot=>{this.logger.info("resetEntireStack success")},ot=>{this.logger.error("resetEntireStack failed:",ot)}),this.setHotkeyForSlotToggle(this.statusOfCaptureEnhance&&this.isGameFilterSupported()).subscribe()}setHotkeyForSlotToggle(ot){return this.igoConfig.GFNCefClient?(0,Ce.of)(!1):(this.hotkeyService.setHotkeyDynamicEnable([r.g8.FreeStyleToggleStyle1,r.g8.FreeStyleToggleStyle2,r.g8.FreeStyleToggleStyle3],ot),(0,Ce.of)(!0))}setDynamicHotkey(ot,Vt){this.igoConfig.GFNCefClient||this.hotkeyService.setHotkeyDynamicEnable(Vt,ot)}formatDataForUnifiedIPC(ot,Vt){if(!ot||!ot.controls||!Array.isArray(ot.controls)||0===ot.controls.length)return this.logger.error("Fields missing (Filter / Controls). Abort formatting..."),null;const Sn={filterId:void 0,stackIdx:void 0,controls:[void 0]},Bn={slider:1,multislider:1,boolean:2,edit:5,multiedit:5,pulldown:7};return Sn.filterId=ot.id,Sn.stackIdx=Vt,Sn.controls=[],ot.controls.forEach(function(Ti){Sn.controls.push({id:Ti.id,type:Bn[Ti.controlType],values:Ti.currentValueArray,dataType:Ti.dataType})}),Sn}setFilterAndAttributes(ot,Vt){this.logger.info("service.setFilterAndAttributes(). Try to formatDataForUnifiedIPC().");const Sn=this.formatDataForUnifiedIPC(ot,Vt);return Sn?(this.logger.info("SetFilterAndAttributes request: ",Sn),this.nvcameraRequestWithWait(A.Ts.Common.Nvcamera.SetFilterAndAttributes,{filterId:Sn.filterId,stackIdx:Sn.stackIdx,controls:Sn.controls},Ii.filterDetails,this.nvCameraRelaxedTimeout).pipe((0,L.T)(Bn=>Bn.filterDetails.filter.status?Bn.filterDetails.filter.status:A.Or.Common.Nvcamera.AnselStatusEnum.failed),(0,be.o)(1))):(this.logger.error("Fallback to old API (setFilterType)."),this.setFilterWithAttributes(ot))}normalizeSliderValue(ot,Vt,Sn,Bn,Ti){return(ot-Vt)/(Sn-Vt)*(Ti-Bn)+Bn}startNvCameraSession(){return this.currentUIMode=On.O5.GameFilter,this.tryStartNvCameraSession(A.Or.Common.Nvcamera.FeaturesSupported.mods)}getAiUpresSupported(){return this.igoConfig.GFNCefClient?(0,Ce.of)(!1):this.systemInfoService.getSystemInfo([M.Lu.OSVersion]).pipe((0,L.T)(ot=>{const Vt=ot.OSVersion.split(".");return An.OSBuildNumber<=parseInt(Vt[Vt.length-1],10)}),(0,B.ZZ)(ot=>ot?this.getGPUInfo():(0,Ce.of)(void 0)),(0,L.T)(ot=>{if(ot){const Vt=(0,c.find)(ot.GPU,{IsPrimary:"1"})||ot.GPU[0],Sn=Vt.GPUArchitecture,Bn=parseInt(An.GPUArchitecture,16)<=parseInt(Sn,10),Ti=void 0!==Vt.GPUArchImplementation?parseInt(Vt.GPUArchImplementation,16):void 0,Li=parseInt(An.GPUArchitecture,16)===parseInt(Sn,10)&&Ti&&An.ExGPUArchImplementation.includes(Ti);return!(!Bn||Li)}return!1}),(0,Z.W)(ot=>(this.logger.error("Error in checking AIUpresSupport: ",ot),(0,Ce.of)(!1))))}updateStreamerState(){this.streamerStateSubscription&&(this.streamerStateSubscription.unsubscribe(),this.streamerStateSubscription=void 0),this.streamerStateSubscription=this.oscDisplayService.streamerState$.subscribe(ot=>{if(ot){if(this.logger.info("streaming state change: ",ot.name),["Error","TerminalError","ResumableError"].indexOf(ot.name)>=0&&(this.isModsAppliedCurrently||this.preResetSessionData.modsApplied||this.currentUIMode)){const Sn="State: "+ot.name+", modsActive: "+(this.isModsAppliedCurrently||this.preResetSessionData.modsApplied)+", UI mode: "+(this.currentUIMode?this.currentUIMode:this.preResetSessionData.uiMode||"Other");this.logger.info("StreamerError errorString = ",Sn),this.sendAnselFreestyleErrorTelemetry(On.T7.anselFreestyleGeneralFailure,this.currentUIMode||On.O5.GameFilter,Sn)}"Done"===ot.name&&this.resetState()}})}sendFunctionalityErrorTelemetry(ot){this.sendAnselFreestyleErrorTelemetry(On.T7.anselFreestyleGeneralFailure,this.currentUIMode||On.O5.GameFilter,ot)}sendFeatureDisableErrorTelemetry(ot,Vt,Sn){let Bn=this.currentGameInfo;Bn||(Bn=this.preResetSessionData.currentGameInfo),this.telemetryService.sendAnselFreestyleFeatureDisableTelemetry(Bn?.cmsId.toString(),Bn?.shortName.toString(),ot||On.O5.GameFilter,Vt,Sn||"Unknown Error")}transformGFEFilterData(ot){this.logger.info("transformGFEFilterData");const Vt=[];return ot?(ot.forEach((Sn,Bn)=>{const Ti={filterDetails:{filter:{status:A.Or.Common.Nvcamera.AnselStatusEnum.ok,stackIdx:Bn,id:Sn.id,filterDisplayName:Sn.title},controls:[]}};function Li(br,Vn,rr){Vn.minValue.push(br.range?.min),Vn.maxValue.push(br.range?.max),Vn.defaultValue.push(br.default),Vn.currentValue.push(br.value),"int"===Vn.dataType&&(br.step=1),Vn.stepSize.push(br.step),Vn.uiMinValueV1.push(br.uiRange?.min[rr]),Vn.uiMaxValueV1.push(br.uiRange?.max[rr]),Vn.uiMinValue=br.uiRange?.min[0],Vn.uiMaxValue=br.uiRange?.min[0],0===br.step&&(br.step=((Vn.uiMaxValueV1?Vn.uiMaxValueV1[rr]:Vn.uiMaxValue)-(Vn.uiMinValueV1?Vn.uiMinValueV1[rr]:Vn.uiMinValue))/100,Vn.uiStepSize.push(br.step))}function dr(br,Vn,rr){Vn.minValue.push(br.min),Vn.maxValue.push(br.max),Vn.defaultValue.push(br.value),Vn.currentValue.push(br.value)}Sn.controls?.forEach(br=>{const Vn={};switch(Vn.id=br.id,Vn.displayName=br.title,br.type){case"sidebar-slider":Vn.controlType="slider",Vn.dataType=br.dataType,Vn.uiDisplayNameV1=[""],Vn.minValue=[],Vn.maxValue=[],Vn.defaultValue=[],Vn.currentValue=[],Vn.stepSize=[],Vn.uiStepSize=[],Vn.uiMinValueV1=[],Vn.uiMaxValueV1=[],Vn.uiMinValue=[],Vn.uiMaxValue=[],Vn.uiDisplayNameV1=[""],Li(br,Vn,0),Vn.uiDisplayNameV1=[""];break;case"sidebar-multislider":Vn.controlType="slider",Vn.dataType=br.dataType,Vn.minValue=[],Vn.maxValue=[],Vn.defaultValue=[],Vn.currentValue=[],Vn.stepSize=[],Vn.uiStepSize=[],Vn.uiMinValueV1=[],Vn.uiMaxValueV1=[],Vn.uiMinValue=[],Vn.uiMaxValue=[],Vn.uiDisplayNameV1=[""],br.subcontrols?.forEach((rr,Ut)=>{Vn.uiDisplayNameV1.push(rr.title),Li(rr,Vn,Ut)});break;case"sidebar-boolean":Vn.controlType="boolean",Vn.dataType="bool",Vn.currentValue=br.value;break;case"sidebar-list":Vn.controlType="pulldown",Vn.defaultId=br.title,Vn.currentId=br.title,Vn.uiDisplayNameV1=[],br.items.forEach(rr=>{Vn.uiDisplayNameV1.push(rr.title)});break;case"sidebar-edit":Vn.controlType="edit",Vn.dataType=br.dataType,Vn.uiDisplayNameV1=[""],Vn.minValue=[],Vn.maxValue=[],Vn.defaultValue=[],Vn.currentValue=[],dr(br,Vn);break;case"sidebar-multiedit":Vn.controlType="edit",Vn.dataType=br.dataType,Vn.minValue=[],Vn.maxValue=[],Vn.defaultValue=[],Vn.currentValue=[],Vn.uiDisplayNameV1=[""],br.subcontrols?.forEach((rr,Ut)=>{Vn.uiDisplayNameV1.push(rr.title),dr(rr,Vn)})}Ti.filterDetails.controls.push(Vn)});const Fr=new fn.dJ(Sn.id,Sn.title,!1,Bn);this.createFilterControls(Ti,Fr),Vt.push(Fr)}),Vt):(this.logger.info("Invalid filter stack data from gfe backup"),Vt)}loadGFEMigrationData(ot){try{const Vt=new fn.Jm,Sn=ot.ModsSlotStorage,Bn=ot.ModsDataStorage,Ti=3;return Sn&&Bn?(this.logger.info("Porting GFE backup data"),Object.keys(Sn).forEach(dr=>{let Fr;for(Vt.filterPresets[dr]=new fn.n,Fr=0;Fr<Ti;Fr++){const br=Bn[dr]?.lastSlot;Vt.filterPresets[dr].modsSlotsInfo.lastSlotIdx=br>=0?br:0,Vt.filterPresets[dr].modsSlotsInfo.slots[Fr+1].filterStack.filters=this.transformGFEFilterData(Sn[dr][Fr]?.activeFilterStack)}Vt.filterPresets[dr].anselSlotsInfo.lastSlotIdx=1,Vt.filterPresets[dr].anselSlotsInfo.slots[1].filterStack.filters=this.transformGFEFilterData(Sn[dr][Fr]?.activeFilterStack)}),this.dBStore.setItem(this.filterPresetsStorageKeyName,JSON.stringify(Vt)).pipe((0,se.M)(dr=>this.logger.info("Filter presets migrated from GFE")))):(this.logger.info("No filter presets found in gfe backup"),(0,Ce.of)(null))}catch{return this.logger.error("Error while migrating filter presets from GFE"),(0,Ce.of)(null)}}slotSwitchingTelemetry(ot,Vt){let Sn="",Bn="";if(this.logger.info("oldSlotID "+ot+" newSlotID "+Vt),ot===Vt)return;this.isAIDVCEnabled&&(Bn=Fi.Qu.RTX_DVC),this.isAIHDREnabled&&(Bn=Bn?Fi.Qu.RTX_HDR+","+Bn:Fi.Qu.RTX_HDR),this.isNIS2Enabled&&Bn&&(Bn=Fi.Qu.NIS2+","+Bn),this.currentGameSlots.modsSlotsInfo.slots[ot].filterStack.filters.forEach(Li=>{Sn=Sn?Li.name+","+Sn:Li.name}),(this.isAIDVCEnabled||this.isAIHDREnabled||this.isNIS2Enabled)&&(Sn=Bn+","+Sn);let Ti="";this.currentGameSlots.modsSlotsInfo.slots[Vt].filterStack.filters.forEach(Li=>{Ti=Ti?Ti+","+Li.name:Li.name}),(this.isAIDVCEnabled||this.isAIHDREnabled||this.isNIS2Enabled)&&(Ti=Bn+","+Ti),this.telemetryService.sendProcessingFilter(this.gameDetails,this.systemInfo.ddVersion,It.Bs.FiltersSlotChanged,ot,Sn,Vt,Ti,"",!0)}setAIDVCEnabled(ot){this.isAIDVCEnabled=ot}setAIHDREnabled(ot){this.isAIHDREnabled=ot}setNIS2Enabled(ot){this.isNIS2Enabled=ot}filterAddedTelemetry(ot){this.telemetryService.sendProcessingFilter(this.gameDetails,this.systemInfo.ddVersion,It.Bs.FiltersAdded,0,ot,0,"","",!0)}filterAppliedTelemetry(ot,Vt=!1){let Sn="";this.isAIDVCEnabled&&(Sn=Fi.Qu.RTX_DVC+","),this.isAIHDREnabled&&(Sn=Sn+Fi.Qu.RTX_HDR+","),this.isNIS2Enabled&&(Sn=Sn+Fi.Qu.NIS2+",");let Bn="";(this.isAIDVCEnabled||this.isAIHDREnabled||this.isNIS2Enabled)&&(this.currentUIMode===On.O5.GameFilter||Vt)&&(Bn=Sn?Sn.slice(0,-1):"");const Ti=ot||this.currentGameSlots?.anselSlotsInfo?.lastSlotIdx,Li=this.currentUIMode===On.O5.GameFilter||Vt?this.currentGameSlots?.modsSlotsInfo?.slots[ot]:this.currentGameSlots?.anselSlotsInfo?.slots[this.currentGameSlots?.anselSlotsInfo?.lastSlotIdx];Li||Vt?(Li&&Li.filterStack.filters.forEach(dr=>{Bn=Bn?Bn+","+dr.name:dr.name}),Bn?(this.logger.info("filters applied, sending telemetry"),this.telemetryService.sendProcessingFilter(this.gameDetails,this.systemInfo.ddVersion,It.Bs.FiltersApplied,Ti,Bn,0,"","",!0)):this.logger.info("No filters applied, skipping telemetry")):this.logger.info("slotsInfo missing")}anselFreestyleCaptureTelemetry(ot,Vt){let Sn="";const Bn=this.currentUIMode===On.O5.PhotoMode?It.Uk.Ansel:It.Uk.AnselLite;this.currentGameSlots.anselSlotsInfo.slots[this.currentGameSlots.anselSlotsInfo.lastSlotIdx].filterStack.filters.forEach(Li=>{Sn=Sn?Sn+","+Li.name:Li.name}),this.isInDesktopMode().subscribe(Li=>{this.telemetryIgoService.sendAnselFreestyleCaptureEvent(this.gameDetails,"",this.systemInfo.ddVersion,this.systemInfo.gpuName,ot,Bn,Li?On.ri.windowed:On.ri.fullscreen,Vt?Vt.screenshotResolution:"",Vt?Vt.upResScale:0,Sn,this.gridUsed,this.panningUsed)})}getScreenshotHotkey(){return this.hotkeyService.getHotkeyString(r.g8.Screenshot)}processingControlSettingsTelemetry(ot){if(!this.igoConfig.GFNCefClient){const Sn=this.currentUIMode===On.O5.GameFilter?this.currentGameSlots?.modsSlotsInfo?.slots[ot]:this.currentGameSlots?.anselSlotsInfo?.slots[this.currentGameSlots?.anselSlotsInfo?.lastSlotIdx];if(!Sn)return;this.isInDesktopMode().subscribe(Bn=>{const Ti=Bn?On.ri.windowed:On.ri.fullscreen;Sn.filterStack.filters.forEach(Li=>{Li.controls.forEach(dr=>{let Fr="";switch(dr.controlType){case"boolean":Fr=dr.currentValue?.toString();case"slider":Fr=dr.currentUIValue?.toString();case"multislider":Fr=dr.currentValueArray?.toString();default:Fr=dr.currentValueArray?.toString()}this.sendSingleControlSettingsTelemetry(Li.name,dr.displayName,Fr,Ti)})})})}}sendSingleControlSettingsTelemetry(ot,Vt,Sn,Bn){this.telemetryService.sendProcessingControlSettings(this.gameDetails,ot,Vt,Sn,Bn)}anselFreestyleErrorTelemetry(ot,Vt,Sn){if(!this.igoConfig.GFNCefClient){let Bn=On.nt.unsupportedGame;this.gameDetails&&!this.checkIfCurrentGameIsAllowlisted()?Bn=On.nt.gameBlacklisted:this.nvCameraTimedOut&&(Bn=On.nt.nvCameraTimedOut),this.telemetryService.sendAnselFreestyleError(this.gameDetails,ot,Bn,Sn,fi.oX.Undefined,It.Uk[this.currentUIMode],this.sourceTrigger===zr.Ui,this.systemInfo.gpuName,this.systemInfo.ddVersion,this.systemInfo.isOptimus,this.systemInfo.systemType)}}static{this.\u0275fac=function(Vt){return new(Vt||si)(v.KVO(v.zZn),v.KVO(ht.k),v.KVO(M.J6),v.KVO(M.NZ),v.KVO(r.QS),v.KVO(S.B),v.KVO(bt.c$),v.KVO(xe.W1),v.KVO(T.AF),v.KVO(M.iH),v.KVO(bn.x),v.KVO(Pt.S),v.KVO(ft.mb),v.KVO(jt.e),v.KVO(M.at),v.KVO(M.CF),v.KVO(M.zW),v.KVO(gn.x_),v.KVO(ui.R))}}static{this.\u0275prov=v.jDH({token:si,factory:si.\u0275fac,providedIn:"root"})}}return si})();var xi=s(35146);let xn=(()=>{class si{constructor(ot,Vt,Sn,Bn,Ti,Li,dr,Fr,br){this.loggingService=ot,this.bridgeService=Vt,this.featureSupportService=Sn,this.nvCameraService=Bn,this.dbService=Ti,this.translateService=Li,this.oscDisplayService=dr,this.lcarsService=Fr,this.shadowPlayService=br,this.nisStateInfo=void 0,this.currentGameInfo=void 0,this.isSystemOnline=!1,this.vibranceDefaultValue=0,this.sharpenDefaultValue=0,this.deepDvcStateAtGameLaunch=[],this.deepDvcStateAtAppLaunch=void 0,this.trueHdrStateAtGameLaunch=[],this.trueHdrStateAtAppLaunch=void 0,this.nis2StateAtGameLaunch=[],this.nis2StateAtAppLaunch=void 0,this.ppeFilterSlotData=void 0,this.currentGameSlotIndex=1,this.hardConstraintSupportFailure=0,this.softConstraintSupportFailure=0,this.isAppStartedReceived=!1,this.isPpeFeaturesEnabled=!1,this.isPpeSupportedGame=!1,this.isPpeFiltersVisible=!1,this.dbStorageName="PpeFilters",this.filterPresetsStorageKeyName="PpeFilterPresets",this.staticFilterListStrings=[],this.disabledDueToGlobalToggle=!1,this.instantEnableSupported=!1,this.deepDvcInitialized$=new l.B7,this.nisInitialized$=new l.B7,this.trueHdrInitialized$=new l.B7,this.ppeGameStartedNotify$=new l.B7,this.gameLaunchTelemetry=!1,this.rtxDvcGameEnableState=!1,this.rtxHdrGameEnableState=!1,this.logger=this.loggingService.getLogger("PpeService"),this.isAIDVCSupported=!1,this.isAIHDRSupported=!1,this.isNIS2Supported=!1,this.isAIDVCEnabled=!1,this.isAIHDREnabled=!1,this.isNIS2Enabled=!1,this.isAIDVCAddSuccess=!1,this.isAIHDRAddSuccess=!1,this.isPpeFeaturesEnabled=this.featureSupportService.isPpeEnabled(),this.dBStore=this.dbService.getGlobalStore(this.dbStorageName)}init(){this.isPpeFeaturesEnabled=this.featureSupportService.isPpeEnabled(),this.isPpeFeaturesEnabled&&(this.logger.info(" Ppe Service Init"),this.resetGameInfo(),this.registerNotifications(),this.sendGameLaunchAutoAppliedTelemetry(),this.getDeepDVCSystemSupport().pipe((0,L.T)(ot=>{this.logger.info("aidvcSupport values : ",ot),this.isAIDVCSupported=0===ot.errorCode}),(0,Z.W)(ot=>(this.logger.error("aidvcSupport Error ",ot),this.isAIDVCSupported=!1,(0,Ce.of)(ot)))).subscribe(),this.getGlobalRTXHDRSupport().pipe((0,L.T)(ot=>{this.logger.info("globalRTXhdrSupport values : ",ot),this.isAIHDRSupported=ot.globalSupport,this.hardConstraintSupportFailure=this.isAIHDRSupported?0:1}),(0,Z.W)(ot=>(this.logger.error("rtxHdrSupport Error : ",ot),this.isAIHDRSupported=!1,this.hardConstraintSupportFailure=1,(0,Ce.of)(ot)))).subscribe(),this.getNIS2SystemSupport().pipe((0,L.T)(ot=>{this.logger.info("nis2Support values : ",ot),this.isNIS2Supported=ot.supported}),(0,Z.W)(ot=>(this.logger.error("nis2Support Error ",ot),this.isNIS2Supported=!1,(0,Ce.of)(ot)))).subscribe())}changeDeepDvcFilterSettings(ot){return this.bridgeService.executeCommand(A.Ts.Share.Graphicssetting.SetAIDVCState,ot)}changeTrueHdrFilterSettings(ot){return this.oscDisplayService.setRtxHdrStatus(ot.enabled),this.bridgeService.executeCommand(A.Ts.Share.Graphicssetting.SetAIHDRState_V2,ot)}changeNis2FilterSettings(ot){return this.bridgeService.executeCommand(A.Ts.Share.Graphicssetting.SetNIS2Sharpen,ot)}disableAIDVC(ot){const Vt={cmsId:this.currentGameInfo.cmsId,processId:this.currentGameInfo.procId,enabled:!1,saturation:this.deepDvcParametersValue.saturation,intensity:this.deepDvcParametersValue.intensity,saveEnabled:!!ot,saveIntensity:!0,saveSaturation:!0,applyEffectInRealTime:!0,isUseGlobal:!1};return this.deepDvcParametersValue&&ot&&(this.deepDvcParametersValue.enabled=!1),this.logger.info("PPE filter DeepDVC is being disabled ",Vt),this.changeDeepDvcFilterSettings(Vt).pipe((0,se.M)(()=>this.nvCameraService.updatePpeState(Fi.VL,!1)))}disableAIHDR(ot){this.trueHdrParametersValue||this.initializeAIHDRInfo();const Vt={cmsId:this.currentGameInfo.cmsId,processId:this.currentGameInfo.procId,enabled:!1,peakBrightness:this.trueHdrParametersValue.peakBrightness,middleGrey:this.trueHdrParametersValue.middleGrey,contrast:this.trueHdrParametersValue.contrast,saturation:this.trueHdrParametersValue.saturation,saveEnabled:!!ot,savePeakBrightness:!0,saveMiddleGrey:!0,saveContrast:!0,saveSaturation:!0,applyEffectInRealTime:this.isAIHDRSupported&&this.trueHdrStateAtAppLaunch?.enabled,isUseGlobal:!1};return this.trueHdrParametersValue&&ot&&(this.trueHdrParametersValue.enabled=!1),this.logger.info("PPE filter TrueHDR is being disabled ",Vt),this.changeTrueHdrFilterSettings(Vt).pipe((0,se.M)(()=>this.nvCameraService.updatePpeState(Fi.Ow,!1)))}saveAIDVCState(){return this.getDeepDVCStateInfo().pipe((0,B.ZZ)(ot=>{if(this.deepDvcParametersValue){const Vt=this.deepDvcParametersValue.enabled!==ot.enabled,Sn=this.deepDvcParametersValue.intensity!==ot.intensity,Bn=this.deepDvcParametersValue.saturation!==ot.saturation;if(Vt||Sn||Bn){const Li={cmsId:this.currentGameInfo.cmsId,processId:this.currentGameInfo.procId,enabled:this.deepDvcParametersValue.enabled,intensity:this.deepDvcParametersValue.intensity,saturation:this.deepDvcParametersValue.saturation,saveEnabled:Vt,saveIntensity:Sn,saveSaturation:Bn,applyEffectInRealTime:!1,isUseGlobal:!1};return this.logger.info("DeepDVC Drs is being updated ",Li,this.deepDvcParametersValue),this.changeDeepDvcFilterSettings(Li)}}return(0,Ce.of)(null)})).subscribe(()=>{this.nvCameraService.isInDesktopMode().subscribe(ot=>{const Vt=ot?On.ri.windowed:On.ri.fullscreen;this.deepDvcParametersValue&&(this.nvCameraService.sendSingleControlSettingsTelemetry(Fi.Qu.RTX_DVC,Fi.ke.filterDetails.controls[0].displayName,this.deepDvcParametersValue.intensity.toString(),Vt),this.nvCameraService.sendSingleControlSettingsTelemetry(Fi.Qu.RTX_DVC,Fi.ke.filterDetails.controls[1].displayName,this.deepDvcParametersValue.saturation.toString(),Vt))})})}saveAIHDRState(){return this.getTrueHDRStateInfo().pipe((0,B.ZZ)(ot=>{if(this.trueHdrParametersValue){const Vt=this.trueHdrParametersValue.enabled!==ot.enabled,Sn=this.trueHdrParametersValue.peakBrightness!==ot.peakBrightness,Bn=this.trueHdrParametersValue.middleGrey!==ot.middleGrey,Ti=this.trueHdrParametersValue.contrast!==ot.contrast,Li=this.trueHdrParametersValue.saturation!==ot.saturation;if(Vt||Sn||Bn||Ti||Li){const Fr={cmsId:this.currentGameInfo.cmsId,processId:this.currentGameInfo.procId,enabled:this.trueHdrParametersValue.enabled,peakBrightness:this.trueHdrParametersValue.peakBrightness,middleGrey:this.trueHdrParametersValue.middleGrey,contrast:this.trueHdrParametersValue.contrast,saturation:this.trueHdrParametersValue.saturation,saveEnabled:Vt,savePeakBrightness:Sn,saveMiddleGrey:Bn,saveContrast:Ti,saveSaturation:Li,applyEffectInRealTime:!1,isUseGlobal:!1};return this.logger.info("TrueHDR Drs is being updated ",Fr,this.trueHdrParametersValue),this.changeTrueHdrFilterSettings(Fr)}}return(0,Ce.of)(null)})).subscribe(()=>{this.nvCameraService.isInDesktopMode().subscribe(ot=>{const Vt=ot?On.ri.windowed:On.ri.fullscreen;this.trueHdrParametersValue&&(this.nvCameraService.sendSingleControlSettingsTelemetry(Fi.Qu.RTX_HDR,Fi.J1.filterDetails.controls[0].displayName,this.trueHdrParametersValue.peakBrightness.toString(),Vt),this.nvCameraService.sendSingleControlSettingsTelemetry(Fi.Qu.RTX_HDR,Fi.J1.filterDetails.controls[1].displayName,this.trueHdrParametersValue.middleGrey.toString(),Vt),this.nvCameraService.sendSingleControlSettingsTelemetry(Fi.Qu.RTX_HDR,Fi.J1.filterDetails.controls[2].displayName,this.trueHdrParametersValue.contrast.toString(),Vt),this.nvCameraService.sendSingleControlSettingsTelemetry(Fi.Qu.RTX_HDR,Fi.J1.filterDetails.controls[3].displayName,this.trueHdrParametersValue.saturation.toString(),Vt))})})}saveNIS2State(){return this.getNIS2StateInfo().pipe((0,B.ZZ)(ot=>{if(this.nis2ParametersValue){const Sn=this.nis2ParametersValue.sharpen!==ot.sharpen;if(Sn){const Bn={processId:this.currentGameInfo.procId,sharpen:this.nis2ParametersValue.sharpen,saveToDRS:Sn};return this.logger.info("NIS2 Drs is being updated ",Bn,this.nis2ParametersValue),this.changeNis2FilterSettings(Bn)}}return(0,Ce.of)(null)}),(0,Z.W)(ot=>(this.logger.error("on getNIS2StateInfo Error ",ot),(0,Ce.of)(ot)))).subscribe(()=>{this.nis2ParametersValue&&this.nvCameraService.isInDesktopMode().subscribe(ot=>{const Vt=ot?On.ri.windowed:On.ri.fullscreen;this.nvCameraService.sendSingleControlSettingsTelemetry(Fi.Qu.NIS2,Fi.$k.filterDetails.controls[0].displayName,this.nis2ParametersValue.sharpen.toString(),Vt)})})}restoreAIDVC(ot){const Vt={cmsId:this.currentGameInfo.cmsId,processId:this.currentGameInfo.procId,enabled:ot.enabled,saturation:ot.saturation,intensity:ot.intensity,saveEnabled:!1,saveIntensity:!1,saveSaturation:!1,applyEffectInRealTime:!0,isUseGlobal:!1};return this.deepDvcParametersValue={cmsId:this.currentGameInfo.cmsId,enabled:ot.enabled,intensity:ot.intensity,saturation:ot.saturation},this.logger.info("Restoring AIDVC state ",Vt),this.changeDeepDvcFilterSettings(Vt)}restoreAIHDR(ot){const Vt={cmsId:this.currentGameInfo.cmsId,processId:this.currentGameInfo.procId,enabled:ot.enabled,peakBrightness:ot.peakBrightness,middleGrey:ot.middleGrey,contrast:ot.contrast,saturation:ot.saturation,saveEnabled:!1,savePeakBrightness:!1,saveMiddleGrey:!1,saveContrast:!1,saveSaturation:!1,applyEffectInRealTime:!0,isUseGlobal:!1};return this.trueHdrParametersValue={cmsId:this.currentGameInfo.cmsId,enabled:ot.enabled,peakBrightness:ot.peakBrightness,middleGrey:ot.middleGrey,contrast:ot.contrast,saturation:ot.saturation},this.logger.info("Restoring AIHDR state ",Vt),this.changeTrueHdrFilterSettings(Vt)}restoreNIS2(ot){const Vt={processId:this.currentGameInfo.procId,sharpen:ot.sharpen,saveToDRS:!1};return this.nis2ParametersValue={cmsId:this.currentGameInfo.cmsId,enabled:ot.enabled,sharpen:ot.sharpen},this.logger.info("Restoring NIS2 state ",Vt),this.changeNis2FilterSettings(Vt)}sendGameLaunchAutoAppliedTelemetry(){(0,Je.h)(this.nvCameraService.gameStartedNotify(),this.ppeGameStartedNotify$).pipe((0,St.p)(ot=>!this.gameLaunchTelemetry),(0,ke.H)(ot=>(this.gameLaunchTelemetry=!0,(0,xi.yU)(this.deepDvcInitialized$.asObservable(),this.nisInitialized$.asObservable(),this.trueHdrInitialized$.asObservable(),this.nvCameraService.modsSlotappliedComplete()))),(0,L.T)(([ot,Vt,Sn,Bn])=>(null!==Bn&&this.nvCameraService.filterAppliedTelemetry(Bn,!0),this.gameLaunchTelemetry=!1,null))).subscribe()}restorePPEFilters(ot=!1){this.disabledDueToGlobalToggle||!this.ppeFilterSlotData||this.ppeFilterSlotData&&this.ppeFilterSlotData.ppeFilterSlot[this.currentGameInfo.drsProfileName]<=0||(ot&&this.ppeGameStartedNotify$.next(!0),(0,Ce.of)(this.isAIDVCSupportedInChroma()).pipe((0,B.ZZ)(Vt=>Vt?this.getDeepDVCSystemSupport():(this.logger.info("Game is denylisted for AI DVC"),(0,Ce.of)({errorCode:Fi.O3.FEATURE_SUPPORT_ERROR_ERROR}))),(0,L.T)(Vt=>(this.logger.info("getDeepDVCSystemSupport ",Vt),this.instantEnableSupported=Vt.instantEnableSupported,Vt.errorCode===Fi.O3.FEATURE_SUPPORT_ERROR_OK?(this.isAIDVCSupported=!0,this.isPpeFiltersVisible=this.isPpeFiltersVisible||this.isAIDVCSupported,!0):(this.isAIDVCSupported=!1,this.isPpeFiltersVisible=this.isPpeFiltersVisible||this.isAIDVCSupported,this.deepDvcInitialized$.next(!1),!1))),(0,St.p)(Vt=>!!Vt),(0,B.ZZ)(Vt=>(this.logger.info("getDeepDVCSystemSupport response",Vt),this.getDeepDVCStateInfo())),(0,B.ZZ)(Vt=>{if(this.isAIDVCEnabled=Vt.enabled,this.nvCameraService.setAIDVCEnabled(this.isAIDVCEnabled),this.deepDvcInitialized$.next(Vt.enabled),this.deepDvcStateAtAppLaunch={cmsId:this.currentGameInfo.cmsId,enabled:Vt.enabled,saturation:Vt.saturation,intensity:Vt.intensity},this.logger.info("AIDVC values at app launch ",this.deepDvcStateAtAppLaunch),this.isAIDVCEnabled){let Sn=-1;return this.deepDvcStateAtGameLaunch&&(Sn=this.deepDvcStateAtGameLaunch.findIndex(Bn=>Bn.cmsId===this.currentGameInfo.cmsId)),-1!==Sn?this.deepDvcStateAtGameLaunch[Sn]=this.deepDvcStateAtAppLaunch:this.deepDvcStateAtGameLaunch.push(this.deepDvcStateAtAppLaunch),this.restoreAIDVC(Vt)}return(0,Ce.of)(!1)}),(0,Z.W)(Vt=>(this.deepDvcInitialized$.next(!1),this.nvCameraService.updatePpeState(Fi.VL,!1),this.logger.info("Restore AIDVC Filter error : ",Vt),(0,Ce.of)(!1)))).subscribe(Vt=>{this.nvCameraService.updatePpeState(Fi.VL,!!Vt),this.logger.info("Restore AIDVC Filter response",Vt)}),this.getRTXHDRSupportperDisplay().pipe((0,B.ZZ)(Vt=>(this.logger.info("getRTXHDRSupportperDisplay : ",Vt),this.isAIHDRSupported=Vt.isSupported,this.getErrorCodeList(Vt.errorCode),this.isPpeFiltersVisible=this.isAIHDRSupported?this.isPpeFiltersVisible||this.isAIHDRSupported:this.isPpeFiltersVisible||!this.hardConstraintSupportFailure,this.maxPeakBrightness=Vt.maxPeakBrightness,this.minPeakBrightness=Vt.minPeakBrightness,(0,Ce.of)(Vt.isSupported))),(0,B.ZZ)(Vt=>(this.logger.info("getRTXHDRSupportperDisplay response",Vt),this.getTrueHDRStateInfo())),(0,B.ZZ)(Vt=>{if(this.isAIHDREnabled=Vt.enabled,this.nvCameraService.setAIHDREnabled(this.isAIHDREnabled),this.trueHdrInitialized$.next(!0),this.trueHdrStateAtAppLaunch={cmsId:this.currentGameInfo.cmsId,enabled:Vt.enabled,peakBrightness:Vt.peakBrightness,middleGrey:Vt.middleGrey,contrast:Vt.contrast,saturation:Vt.saturation},this.logger.info("AIHDR values at app launch ",this.trueHdrStateAtAppLaunch),Vt.supported&&this.isAIHDREnabled){let Sn=-1;return this.trueHdrStateAtGameLaunch&&(Sn=this.trueHdrStateAtGameLaunch.findIndex(Bn=>Bn.cmsId===this.currentGameInfo.cmsId)),-1!==Sn?this.trueHdrStateAtGameLaunch[Sn]=this.trueHdrStateAtAppLaunch:this.trueHdrStateAtGameLaunch.push(this.trueHdrStateAtAppLaunch),this.restoreAIHDR(Vt)}return(0,Ce.of)(!1)}),(0,Z.W)(Vt=>(this.trueHdrInitialized$.next(!1),this.logger.info("Restore AIHDR Filter error : ",Vt),this.nvCameraService.updatePpeState(Fi.Ow,!1),(0,Ce.of)(!1)))).subscribe(Vt=>{this.nvCameraService.updatePpeState(Fi.Ow,!!Vt),this.logger.info("Restore AIHDR Filter response",Vt)}),this.getNIS2SystemSupport().pipe((0,B.ZZ)(Vt=>(this.logger.info("getNIS2SystemSupport ",Vt),this.isNIS2Supported=Vt.supported,Vt.supported||this.nisInitialized$.next(!1),(0,Ce.of)(!!Vt.supported))),(0,St.p)(Vt=>!!Vt),(0,B.ZZ)(Vt=>(this.logger.info("getNIS2SystemSupport response",Vt),this.getNIS2StateInfo())),(0,B.ZZ)(Vt=>{if(this.isNIS2Enabled=Vt.enabled,this.isPpeFiltersVisible=this.isPpeFiltersVisible||this.isNIS2Enabled,this.nvCameraService.setNIS2Enabled(this.isNIS2Enabled),this.nisInitialized$.next(!0),this.nis2StateAtAppLaunch={cmsId:this.currentGameInfo.cmsId,enabled:this.isNIS2Enabled,sharpen:Vt.sharpen},this.logger.info("NIS2 values at app launch ",this.nis2StateAtAppLaunch),this.isNIS2Enabled){let Sn=-1;return this.nis2StateAtGameLaunch&&(Sn=this.nis2StateAtGameLaunch.findIndex(Bn=>Bn.cmsId===this.currentGameInfo.cmsId)),-1!==Sn?this.nis2StateAtGameLaunch[Sn]=this.nis2StateAtAppLaunch:this.nis2StateAtGameLaunch.push(this.nis2StateAtAppLaunch),this.restoreNIS2(Vt)}return(0,Ce.of)(!1)}),(0,Z.W)(Vt=>(this.nisInitialized$.next(!1),this.logger.info("Restore NIS2 Filter error : ",Vt),this.nvCameraService.updatePpeState(Fi.on,!1),(0,Ce.of)(!1)))).subscribe(Vt=>{this.nvCameraService.updatePpeState(Fi.on,!!Vt),this.logger.info("Restore NIS2 Filter response",Vt)}))}isAIDVCSupportedInChroma(){return!(!this.currentGameChromaInfo||!this.currentGameInfo)&&this.currentGameChromaInfo.pid===this.currentGameInfo.procId&&this.currentGameChromaInfo?.nvidiaTech?.RTXDVC}ensureChromaDataIsAvailableForGame(){return this.lcarsService.getCurrentAppChromaInfo().pipe((0,St.p)(ot=>!!ot&&void 0!==ot.pid&&ot.pid===this.currentGameInfo.procId&&!this.nvCameraService.isPreviousSessionRunning()),(0,L.T)(ot=>{this.currentGameChromaInfo=ot}),(0,X.s)(1),(0,Ae.w)(hn.CZ))}registerNotifications(){this.getCmsData().subscribe(),this.bridgeService.executeCommand(A.Ts.Share.Shareserver.RegisterGeneralNotifications).pipe((0,St.p)(ot=>!!ot?.gameExited)).subscribe(ot=>{this.onGameAppExit(ot.gameExited)}),this.shadowPlayService.registerAppStartedEvent().pipe((0,St.p)(ot=>!!ot?.appStarted),(0,B.ZZ)(ot=>(this.logger.info(" App Start Data: ",ot),this.nvCameraService.isPreviousSessionRunning()?this.logger.info("APP updte skipped since previous NvCamera session running"):(this.isAppStartedReceived=!0,this.isPpeSupportedGame=!0,ot&&(this.currentGameInfo={procId:ot.appStarted.pid,cmsId:ot.appStarted.cmsId,drsName:ot.appStarted.DRSAppName,drsProfileName:ot.appStarted.profileName,shortName:ot.appStarted.shortName,drsWhitelist:!1})),this.nvCameraService.getGlobalToggle())),(0,B.ZZ)(ot=>(this.disabledDueToGlobalToggle=!ot||this.nvCameraService.getIsGameRestartRequestedfromCTA(),this.loadPpeSlotsForCurrentGame())),(0,B.ZZ)(()=>this.ensureChromaDataIsAvailableForGame())).subscribe(()=>{this.disabledDueToGlobalToggle?this.logger.info("Restore PPE filter skipped"):(this.logger.info("Checking Restore PPE filter"),this.restorePPEFilters(!0))}),this.nvCameraService.getLastSlotChangedUpdates().subscribe(ot=>this.onSlotChanged(ot))}getCmsData(){return this.shadowPlayService.registerAppStartedEvent().pipe((0,B.ZZ)(ot=>(this.logger.info("app notification:",ot),ot.appStarted?this.nvCameraService.isPreviousSessionRunning()?(this.logger.info("Preious session running in NvCamera"),(0,Ce.of)(void 0)):(this.isAppStartedReceived=!0,this.isPpeSupportedGame=!0,this.logger.info("updating current app data"),ot?(this.currentGameInfo={procId:ot.appStarted.pid,cmsId:ot.appStarted.cmsId,drsName:ot.appStarted.DRSAppName,drsProfileName:ot.appStarted.profileName,shortName:ot.appStarted.shortName,drsWhitelist:!1},this.checkFreestyleWhitelisted()):(0,Ce.of)(null)):(0,Ce.of)(void 0))),(0,se.M)(ot=>{ot&&(this.currentGameInfo.drsWhitelist=ot.freestyleWhitelisted)}),(0,Z.W)(ot=>(this.logger.error("Unable to fetch drs whitelist data: "+ot),(0,Ce.of)(null))))}updateNIS2State(ot){this.nisStateInfo.enabled=ot.enabled,this.nisStateInfo.sharpen=ot.sharpen,this.setSharpness(ot.sharpen,!1)}onGameAppExit(ot){this.logger.info(" GameApp exit ProcessID:",ot.exitAppPID),this.isAppStartedReceived=!1,this.isPpeSupportedGame=!1,this.isPpeFiltersVisible=!1,this.instantEnableSupported=!1;const Vt=this.deepDvcStateAtGameLaunch.findIndex(Ti=>Ti.cmsId===this.currentGameInfo.cmsId);this.deepDvcStateAtGameLaunch.splice(Vt,1);const Sn=this.trueHdrStateAtGameLaunch.findIndex(Ti=>Ti.cmsId===this.currentGameInfo.cmsId);this.trueHdrStateAtGameLaunch.splice(Sn,1);const Bn=this.trueHdrStateAtGameLaunch.findIndex(Ti=>Ti.cmsId===this.currentGameInfo.cmsId);this.nis2StateAtGameLaunch.splice(Bn,1),this.savePpeFilterPresetsData(),this.resetGameInfo(),this.ResetGraphicsSettingValues()}getDeepDVCSystemSupport(){return this.bridgeService.executeCommand(A.Ts.Share.Graphicssetting.GetAIDVCSupport)}getGlobalRTXHDRSupport(){return this.bridgeService.executeCommand(A.Ts.Share.Graphicssetting.GetAIHDRSupport_V2)}getRTXHDRSupportperDisplay(){return this.bridgeService.executeCommand(A.Ts.Share.Graphicssetting.GetAIHDRDisplayInfoForProcess,{processId:this.currentGameInfo.procId})}getNIS2SystemSupport(){return this.bridgeService.executeCommand(A.Ts.Share.Graphicssetting.GetNIS2State,{processId:0,cmsId:0})}runTimeChangeControlValue(ot){const Vt=ot.controls;if(Vt&&ot.id===Fi.VL&&(this.isAIDVCEnabled||this.instantEnableSupported)){const Sn={cmsId:this.currentGameInfo.cmsId,processId:this.currentGameInfo.procId,enabled:!0,saturation:Vt[1].currentUIValue,intensity:Vt[0].currentUIValue,saveEnabled:!1,saveIntensity:!1,saveSaturation:!1,applyEffectInRealTime:!0,isUseGlobal:!1};return this.deepDvcParametersValue={cmsId:this.currentGameInfo.cmsId,enabled:Sn.enabled,intensity:Sn.intensity,saturation:Sn.saturation},this.logger.info("DeepDVC filter values updated and are being applied ",Sn),this.changeDeepDvcFilterSettings(Sn)}if(Vt&&ot.id===Fi.VL&&!this.isAIDVCEnabled)return this.deepDvcParametersValue={cmsId:this.currentGameInfo.cmsId,enabled:!0,intensity:Vt[0].currentUIValue,saturation:Vt[1].currentUIValue},this.logger.info("DeepDVC filter values updated and are being saved ",this.deepDvcParametersValue),(0,Ce.of)(!0);if(Vt&&ot.id===Fi.Ow){let Sn,Bn,Ti,Li;if(this.maxPeakBrightness<=this.minPeakBrightness?(Sn=this.maxPeakBrightness,Bn=Vt[0].currentUIValue,Ti=Vt[1].currentUIValue,Li=Vt[2].currentUIValue):(Sn=Vt[0].currentUIValue,Bn=Vt[1].currentUIValue,Ti=Vt[2].currentUIValue,Li=Vt[3].currentUIValue),this.isAIHDREnabled){const dr={cmsId:this.currentGameInfo.cmsId,processId:this.currentGameInfo.procId,enabled:!0,peakBrightness:Sn,middleGrey:Bn,contrast:Ti,saturation:Li,saveEnabled:!this.isAIHDRSupported,savePeakBrightness:!1,saveMiddleGrey:!1,saveContrast:!1,saveSaturation:!1,applyEffectInRealTime:this.isAIHDRSupported&&this.trueHdrStateAtAppLaunch.enabled,isUseGlobal:!1};return this.trueHdrParametersValue={cmsId:this.currentGameInfo.cmsId,enabled:dr.enabled,peakBrightness:dr.peakBrightness,middleGrey:dr.middleGrey,contrast:dr.contrast,saturation:dr.saturation},this.logger.info("TrueHDR filter values updated and are being applied ",dr),this.changeTrueHdrFilterSettings(dr)}return this.trueHdrParametersValue={cmsId:this.currentGameInfo.cmsId,enabled:!0,peakBrightness:Sn,middleGrey:Bn,contrast:Ti,saturation:Li},this.logger.info("TrueHDR filter values updated and are being saved ",this.trueHdrParametersValue),(0,Ce.of)(!0)}if(Vt&&ot.id===Fi.on&&this.isNIS2Enabled){const Sn={processId:this.currentGameInfo.procId,sharpen:Vt[0].currentUIValue,saveToDRS:!1};return this.nis2ParametersValue={cmsId:this.currentGameInfo.cmsId,enabled:this.isNIS2Enabled,sharpen:Sn.sharpen},this.logger.info("NIS2 filter values updated and are being applied ",Sn),this.changeNis2FilterSettings(Sn)}return Vt&&ot.id===Fi.on&&!this.isNIS2Enabled?(this.nis2ParametersValue={cmsId:this.currentGameInfo.cmsId,enabled:this.isNIS2Enabled,sharpen:Vt[0].currentUIValue},this.logger.info("NIS2 filter values updated and are being saved ",this.nis2ParametersValue),(0,Ce.of)(!0)):(0,Ce.of)(void 0)}getDeepDVCStateInfo(){return this.logger.info(" : getDeepDVCStateInfo currentGameInfo : ",this.currentGameInfo),this.bridgeService.executeCommand(A.Ts.Share.Graphicssetting.GetAIDVCState,{cmsId:this.currentGameInfo.cmsId,processId:this.currentGameInfo.procId})}getAIDVCRealTimeStateInfo(){return this.logger.info(" : getAIDVCRealTimeStateInfo currentGameInfo : ",this.currentGameInfo),this.bridgeService.executeCommand(A.Ts.Share.Graphicssetting.GetRealtimeAIDVCState,{processId:this.currentGameInfo.procId})}getTrueHDRStateInfo(){return this.logger.info(" : getTrueHDRStateInfo currentGameInfo : ",this.currentGameInfo),this.bridgeService.executeCommand(A.Ts.Share.Graphicssetting.GetAIHDRState_V2,{cmsId:this.currentGameInfo.cmsId,processId:this.currentGameInfo.procId})}getTrueHDRRealTimeStateInfo(){return this.logger.info(" : getTrueHDRRealTimeStateInfo currentGameInfo : ",this.currentGameInfo),this.bridgeService.executeCommand(A.Ts.Share.Graphicssetting.GetAIHDRRealTimeState,{processId:this.currentGameInfo.procId})}getNIS2StateInfo(){return this.logger.info(" : getNIS2StateInfo currentGameInfo : ",this.currentGameInfo),this.bridgeService.executeCommand(A.Ts.Share.Graphicssetting.GetNIS2State,{cmsId:this.currentGameInfo.cmsId,processId:this.currentGameInfo.procId})}savePpeFilterPresetsData(){this.ppeFilterSlotData&&this.dBStore.setItem(this.filterPresetsStorageKeyName,JSON.stringify(this.ppeFilterSlotData)).subscribe(()=>{this.logger.info("Filter presets data storage updated")},ot=>{this.logger.error("Error while updating filter presets data storage: ",ot)})}loadPpeFilterPresetsData(){return this.ppeFilterSlotData?(0,Ce.of)(!0):(this.ppeFilterSlotData=new Fi.qp,this.dBStore.getItem(this.filterPresetsStorageKeyName).pipe((0,L.T)(ot=>{if(ot)try{this.ppeFilterSlotData=JSON.parse(ot),this.logger.info("Ppe Filter slots data found in the storage")}catch(Vt){this.logger.error("Failed to parse stored Ppe Filter slots data exception : ",Vt)}else this.logger.info("Ppe Filter slots data not found in the storage");return!0}),(0,Z.W)(ot=>(this.logger.error("Could not load filter presets data from the storage: ",JSON.stringify(ot)),(0,Ce.of)(!0)))))}loadPpeSlotsForCurrentGame(){return this.loadPpeFilterPresetsData().pipe((0,se.M)(()=>{let ot=-1;ot=this.ppeFilterSlotData.ppeFilterSlot[this.currentGameInfo.drsProfileName],-1===ot||void 0===ot?(this.logger.info("No saved Ppe filter presets found for the game"),this.currentGameSlotIndex=1):(this.logger.info("Saved Ppe filter presets loaded for the game",ot),this.currentGameSlotIndex=ot)}))}updatePpeFilterSlotIndex(ot){this.currentGameSlotIndex=ot,this.ppeFilterSlotData&&(this.ppeFilterSlotData.ppeFilterSlot[this.currentGameInfo.drsProfileName]=ot)}isAnyPpeFilterSlotSelected(){return this.ppeFilterSlotData?.ppeFilterSlot?.[this.currentGameInfo.drsProfileName]>0}getCurrentPpeSlotIndex(){return this.isAnyPpeFilterSlotSelected()?this.ppeFilterSlotData.ppeFilterSlot[this.currentGameInfo.drsProfileName].toString():""}getCurrentPpeSlotNumber(){return this.isAnyPpeFilterSlotSelected()?this.ppeFilterSlotData.ppeFilterSlot[this.currentGameInfo.drsProfileName]:null}getAiDvcErrorCodeList(ot,Vt){let Sn=0,Bn=0;const Ti=ot?A.Or.Share.Graphicssetting.AidvcUnSupportedErrors:A.Or.Share.Graphicssetting.AidvcRealTimeErrors,Li=Object.keys(Ti).filter(dr=>isNaN(Number(dr))).map((dr,Fr)=>{if(Sn=ot&&Object.values(Fi.X4).includes(dr)?1:0,Bn=Vt&1<<Ti[dr],Bn)return this.isAIDVCSupported=!Sn,this.constructErrorItem(Ti[dr],!!Sn,!!Bn)});return this.logger.info("AiDvc ErrorList : "+JSON.stringify(Li)),Li}getErrorCodeList(ot){this.logger.info(" : Support ErrorCodes : ",ot),this.hardConstraintSupportFailure=0,this.softConstraintSupportFailure=1;let Vt=0,Sn=0;const Bn=Object.keys(A.Or.Share.Graphicssetting.AihdrUnSupportedErrors).filter(Ti=>isNaN(Number(Ti))).map((Ti,Li)=>{if(Vt=Object.values(Fi.X4).includes(Ti)?1:0,Sn=ot&1<<A.Or.Share.Graphicssetting.AihdrUnSupportedErrors[Ti],Vt&&Sn&&(this.hardConstraintSupportFailure=Vt&&Sn),Sn)return this.isAIHDRSupported=!1,this.constructErrorItem(A.Or.Share.Graphicssetting.AihdrUnSupportedErrors[Ti],!!Vt,!!Sn)});return ot&&!this.hardConstraintSupportFailure&&(this.softConstraintSupportFailure=1),this.logger.info("ErrorList : "+JSON.stringify(Bn)),Bn}constructErrorItem(ot,Vt,Sn){return{errorId:ot,hardConstraint:Vt,valueSet:Sn}}setSharpness(ot,Vt){return(0,Ce.of)(!1)}setVibrance(ot,Vt){return(0,Ce.of)(!1)}reapplyDesktopSharpness(){this.bridgeService.executeCommand(A.Ts.Share.Graphicssetting.GetNIS2State,{cmsId:0,processId:0}).pipe((0,B.ZZ)(ot=>(this.logger.info("NIS2 Desktop/Global info",ot),this.bridgeService.executeCommand(A.Ts.Share.Graphicssetting.SetNIS2Sharpen,{processId:0,sharpen:ot.sharpen,saveToDRS:!1}))),(0,Z.W)(ot=>(this.logger.error("on NIS2 reapplyDesktopSharpness Error ",ot),(0,Ce.of)([]))))}getAllStaticFilterList(){return this.staticFilterListStrings=[],this.featureSupportService.isPpeEnabled()&&(this.isAIDVCSupported&&(this.staticFilterListStrings.push({id:"2",name:this.translateService.instant("nvcamera.AiDigitalVibrance"),isVisible:!0,isPPEFilter:!0,isFeatureEnabled:!1,isExpanded:!1,errorCodesList:[]}),this.isPpeFiltersVisible=this.isAppStartedReceived),(this.isAIHDRSupported||!this.isAIHDRSupported&&!this.hardConstraintSupportFailure)&&(this.staticFilterListStrings.push({id:"2",name:this.translateService.instant("nvcamera.TrueHDRTitle"),isVisible:!0,isPPEFilter:!0,isFeatureEnabled:!1,isExpanded:!1,errorCodesList:[]}),this.isPpeFiltersVisible=this.isAppStartedReceived),this.isNIS2Supported&&(this.staticFilterListStrings.push({id:"2",name:this.translateService.instant("nvcamera.NIS"),isVisible:!0,isPPEFilter:!0,isFeatureEnabled:!1,isExpanded:!1,errorCodesList:[]}),this.isPpeFiltersVisible=this.isAppStartedReceived)),fn.$1.forEach(ot=>{this.staticFilterListStrings.push({id:"1",name:this.translateService.instant("nvcamera."+ot),isVisible:!0,isPPEFilter:!1,isFeatureEnabled:!1,isExpanded:!1,errorCodesList:[]})}),this.staticFilterListStrings}ResetGraphicsSettingValues(){this.reapplyDesktopSharpness(),this.isAIDVCAddSuccess=!1,this.isAIHDRAddSuccess=!1}resetGameInfo(){this.currentGameInfo={procId:0,cmsId:0,drsName:"",drsProfileName:"",shortName:"",drsWhitelist:!1},this.nvCameraService.updatePpeState(Fi.on,!1),this.nvCameraService.updatePpeState(Fi.Ow,!1),this.nvCameraService.updatePpeState(Fi.VL,!1),this.currentGameChromaInfo=void 0}initializeNISInfo(){this.nisStateInfo={supported:!1,enabled:!1,cmsId:0,selectedResolutionIndex:0,resolutions:[],sharpen:0}}initializeAIDVCInfo(){this.deepDvcParametersValue={cmsId:0,enabled:!1,intensity:0,saturation:0}}initializeAIHDRInfo(){this.trueHdrParametersValue={cmsId:0,enabled:!1,peakBrightness:0,middleGrey:0,contrast:0,saturation:0}}checkFreestyleWhitelisted(){return this.nvCameraService.getFreestyleWhitelisted(this.currentGameInfo.drsName).pipe((0,L.T)(ot=>(this.currentGameInfo.drsWhitelist=ot.freestyleWhitelisted,ot.freestyleWhitelisted)),(0,Z.W)(ot=>(this.logger.info("getFreestyleWhitelisted error : ",ot),this.currentGameInfo.drsWhitelist=!1,(0,Ce.of)(ot))))}isFreestyleSupportedGame(){return this.currentGameInfo?.drsWhitelist}onSlotChanged(ot){this.logger.info("onSlotChanged slotIdx : ",ot),this.isPpeFeaturesEnabled&&this.isPpeSupportedGame&&(this.updatePpeFilterSlotIndex(ot),0===ot?(this.deepDvcParametersValue?.enabled&&(this.isAIDVCSupportedInChroma()?(this.logger.info("Disabling AI DVC"),this.disableAIDVC(ot).subscribe()):this.logger.info("Game is black listed for AI DVC. AI DVC disable not required")),this.trueHdrParametersValue?.enabled&&this.disableAIHDR(ot).subscribe()):ot&&ot>0?(this.deepDvcParametersValue?.enabled&&(this.isAIDVCSupportedInChroma()?(this.logger.info("Restoring AI DVC"),this.restoreAIDVC(this.deepDvcParametersValue).pipe((0,X.s)(1),(0,B.ZZ)(()=>this.getAIDVCRealTimeStateInfo()),(0,L.T)(Vt=>(this.logger.info("RtxDvc Game support ",Vt),this.rtxDvcGameEnableState=!!Vt&&Vt.enabled,this.rtxDvcGameEnableState))).subscribe()):(this.logger.info("Game is deny listed for AI DVC. AI DVC will not be restored"),this.rtxDvcGameEnableState=!1)),this.trueHdrParametersValue?.enabled&&(this.logger.info("Restoring RTX HDR"),this.restoreAIHDR(this.trueHdrParametersValue).pipe((0,X.s)(1),(0,B.ZZ)(()=>this.getTrueHDRRealTimeStateInfo()),(0,L.T)(Vt=>(this.logger.info("RtxHdr Game support ",Vt),this.rtxHdrGameEnableState=!!Vt&&Vt.enabled,this.rtxHdrGameEnableState))).subscribe())):this.logger.info("Slot changed notification ignored",ot))}static{this.\u0275fac=function(Vt){return new(Vt||si)(v.KVO(M.J6),v.KVO(M.NZ),v.KVO(ui.R),v.KVO(hi),v.KVO(M.at),v.KVO(bt.c$),v.KVO(S.B),v.KVO(ie.B),v.KVO(xe.W1))}}static{this.\u0275prov=v.jDH({token:si,factory:si.\u0275fac,providedIn:"root"})}}return si})(),Zi=(()=>{class si{constructor(ot,Vt,Sn,Bn,Ti){this.loggingService=ot,this.osService=Vt,this.bridgeService=Sn,this.galleryService=Ti,this.uploadDataList=[],this.memeQueue=[],this.DefaultMemeMaxLength=80,this.upperMemeMaxed=this.DefaultMemeMaxLength,this.lowerMemeMaxed=this.DefaultMemeMaxLength,this.saveBitmap=!0,this.idTracker=0,this.dirSeparator="",this.logger=this.loggingService.getLogger("MemeService"),this.renderer=Bn.createRenderer(null,null)}init(){this.logger.info("Initializing Meme Service"),this.dirSeparator=this.osService.getDirSeparator(),this.galleryService.captureSaved().subscribe(ot=>{if(this.memeQueue.length>0){const Vt=this.memeQueue.find(Sn=>Sn.source===ot);Vt&&(this.saveMemeStrings(Vt).subscribe(),this.memeQueue=this.memeQueue.filter(Sn=>Sn.source!==ot))}})}createMeme(ot){this.memeParams=ot,this.memeCanvasData="",this.logger.info("Meme params: ",ot),0!==ot.width&&setTimeout(()=>{if(this.memeCanvasData=this.createMemeCanvasForGIFTranscoder(this.memeParams.width,this.memeParams.height),this.saveBitmap){const Sn=this.writeEncryptedBmp(this.memeCanvasData).subscribe(()=>{Sn.unsubscribe()})}const Vt=this.setupTranscode(!1).subscribe(Sn=>{Sn&&this.logger.info("Transcode Meme/GIF complete!",ot),Vt.unsubscribe()})})}createGIF(ot){this.gifParams=ot,this.logger.info("GIF params: ",ot),setTimeout(()=>{const Vt=this.setupTranscode(!0).subscribe(Sn=>{Sn&&this.logger.info("Transcode GIF complete!",ot),Vt.unsubscribe()})})}setupTranscode(ot){const Bn={file:ot?this.gifParams.file:this.memeParams.file,targetPath:"",maxFileSizeMB:ot?void 0:200,quality:"medium",newHeight:720,newFps:"high",newDuration:ot?this.gifParams.duration:this.memeParams.duration,userData:this.idTracker,memeImage:ot?"":this.memeCanvasData};return this.getTemporaryFolderPath().pipe((0,B.ZZ)(Ti=>(this.idTracker++,Ti[Ti.length-1]===this.dirSeparator&&(Ti=Ti.slice(0,-1)),Bn.targetPath=Ti,this.saveUploadData(this.idTracker,Bn))),(0,B.ZZ)(()=>this.gifTranscode(Bn)))}saveUploadData(ot,Vt){return this.getMemeStrings(Vt.file).pipe((0,L.T)(Sn=>(this.uploadData={id:ot,folder:Vt.targetPath,fileSize:0,type:"video",subtype:"",videoUploadTitle:"",privacy:"",destination:"",fileSource:"",highlightDefinitionId:"",conversionStartTime:"",DRSName:"",DRSProfileName:"",fullFilename:Vt.file,fileName:"",containsMeme:""===Vt.memeImage?"No":"Yes",topMemeLength:Sn.top.length,bottomMemeLength:Sn.bottom.length},-1===this.findUploadDataInList(this.uploadData.id)&&(this.uploadDataList.push(this.uploadData),this.logger.info("Stored UploadData: ",this.uploadData)),!0)))}findUploadDataInList(ot){let Vt=-1;return this.uploadDataList.forEach(function(Sn,Bn){Sn.id===ot&&(Vt=Bn)}),Vt}getFilename(ot){return/.*[\\/](.*)/.exec(ot)[1]}getTemporaryFolderPath(){return this.bridgeService.executeCommand(A.Ts.Common.Gallery.GetSettings).pipe((0,L.T)(ot=>ot.settings.tempFolderPath))}createMemeCanvasForGIFTranscoder(ot,Vt){this.logger.info("Begin creating Bitmap at: "+ot+"x"+Vt);const Sn=ot,Bn=Vt,Ti=this.renderer.createElement("canvas");Ti.width=Sn,Ti.height=Bn;const Li=Ti.getContext("2d");Li.fillStyle="rgba(0,0,0,0)",Li.fillRect(0,0,Sn,Bn);const dr=this.memeParams.topFontSize*(Sn/this.memeParams.clientWidth),Fr=this.memeParams.bottomFontSize*(Sn/this.memeParams.clientWidth),br=this.memeParams.strokeColor||"black",Vn=this.memeParams.fillColor||"white";let rr=dr.toFixed(0);Li.font=rr+"px NVIDIA",this.logger.info("Video Font top: ",Li.font);let Ut=this.calculateFontWidth(dr,this.memeParams.topString),qn=Math.floor(Sn/2-Ut/2),Wn=parseInt(rr,10);this.logger.info("Top string at x: "+qn+" y: "+Wn),Li.strokeStyle=br,Li.lineWidth=this.getLineWidth(rr),Li.strokeText(this.memeParams.topString,qn,Wn,Ut),Li.fillStyle=Vn,Li.fillText(this.memeParams.topString,qn,Wn,Ut),rr=Fr.toFixed(0),Li.font=rr+"px NVIDIA",this.logger.info("Video Font bottom: ",Li.font),Ut=this.calculateFontWidth(Fr,this.memeParams.bottomString);const ci=.025*Bn;qn=Math.floor(Sn/2-Ut/2),Wn=Math.floor(Bn-ci),this.logger.info("Bottom string at x: "+qn+" y: "+Wn),Li.strokeStyle=br,Li.lineWidth=this.getLineWidth(rr),Li.strokeText(this.memeParams.bottomString,qn,Wn,Ut),Li.fillStyle=Vn,Li.fillText(this.memeParams.bottomString,qn,Wn,Ut),this.logger.info("Canvas created");const Tr=this.CanvasToBMPToDataURL(Ti);return this.logger.info("BMP Image created"),Tr}calculateFontWidth(ot,Vt){const Bn=this.renderer.createElement("canvas").getContext("2d");return Bn.font=ot+"px NVIDIA",Bn.measureText(Vt).width}getLineWidth(ot){const Vt=parseInt(ot,10),Sn=Math.round((Vt+20)/20);return Math.min(Sn,5)}toArrayBuffer(ot){const Vt=ot.width,Sn=ot.height,Bn=4*Vt,Ti=ot.getContext("2d").getImageData(0,0,Vt,Sn),Li=new Uint32Array(Ti.data.buffer),dr=4*Math.floor((32*Vt+31)/32),br=56+dr*Sn,Vn=new ArrayBuffer(br),rr=new DataView(Vn);let oo,Qo,qn=0,Wn=0,ci=0,Tr=0,Jr=0;for(fo(19778),Xr(br),qn+=4,Xr(54),Xr(40),Xr(Vt),Xr(Sn),fo(1),fo(32),qn+=24,ci=Sn-1;ci>=0;){for(Tr=54+ci*dr,Wn=0;Wn<Bn;)Qo=Li[Jr++],oo=Qo>>>24,rr.setUint32(Tr+Wn,Qo<<8|oo),Wn+=4;ci--}return Vn;function fo(Go){rr.setUint16(qn,Go,!0),qn+=2}function Xr(Go){rr.setUint32(qn,Go,!0),qn+=4}}CanvasToBMPToDataURL(ot){const Vt=new Uint8Array(this.toArrayBuffer(ot)),Sn=Vt.length;let Bn="",Ti=0;for(;Ti<Sn;)Bn+=String.fromCharCode(Vt[Ti++]);return btoa(Bn)}saveMemeStrings(ot){return this.bridgeService.executeCommand(A.Ts.Common.Gallery.AddMeme,{file:ot.source,memeInfo:{topBarText:ot.top,bottomBarText:ot.bottom}}).pipe((0,L.T)(Sn=>(this.logger.info("AddMeme complete: ",Sn),!0),Sn=>(this.logger.error("AddMeme failed: ",Sn),!1)),(0,Z.W)(Sn=>(this.logger.info("AddMeme error: ",Sn),(0,Ce.of)(!1))))}getMemeStrings(ot){const Vt={top:"",bottom:"",source:ot,color:""};return this.bridgeService.executeCommand(A.Ts.Common.Gallery.GetFileMetadata,{file:ot}).pipe((0,L.T)(Sn=>(Vt.top=Sn.memeInfo.topBarText,Vt.bottom=Sn.memeInfo.bottomBarText,Vt)),(0,Z.W)(Sn=>(this.logger.info("Get Meme Strings from metaData error: ",Sn),(0,Ce.of)(Vt))))}clearMemeStrings(ot){this.logger.info("Source to clear: ",ot),this.saveMemeStrings({top:"",bottom:"",source:ot,color:""}).subscribe()}queueToUpdateMeme(ot,Vt,Sn){const Bn={top:"",bottom:"",source:ot,color:""};(""!==Vt||""!==Sn)&&(Bn.top=Vt,Bn.bottom=Sn),this.memeQueue.push(Bn)}writeEncryptedBmp(ot){return this.bridgeService.executeCommand(A.Ts.Common.Gallery.WriteEncryptedBitmap,{bitmapImage:ot}).pipe((0,L.T)(Sn=>(this.logger.info("WriteEncryptedBmp complete: ",Sn),!0),Sn=>(this.logger.error("WriteEncryptedBmp failed: ",Sn),!1)),(0,Z.W)(Sn=>(this.logger.info("WriteEncryptedBitmap error: ",Sn),(0,Ce.of)(!1))))}gifTranscode(ot){const Vt={file:ot.file,targetPath:ot.targetPath,maxFileSizeMB:ot.maxFileSizeMB,quality:ot.quality,newHeight:ot.newHeight,newFps:ot.newFps,newDuration:ot.newDuration,userData:ot.userData.toString(),memeImage:ot.memeImage};return this.logger.info("Final Transcode parameters: ",Vt),this.bridgeService.executeCommand(A.Ts.Common.Gallery.TranscodeMediaFile,Vt).pipe((0,L.T)(Sn=>{this.logger.info("gifTranscode complete: ",Sn);const Bn=parseInt(Sn.userData,10),Ti=this.findUploadDataInList(Bn);return this.logger.info("UserData: ",this.uploadDataList[Ti]),Sn.newFile},Sn=>{this.logger.info("gifTranscode failed: ",Sn)}),(0,Z.W)(Sn=>(this.logger.info("gifTranscode error: ",Sn),(0,Ce.of)(void 0))))}setUpperMemeMaxed(ot){this.upperMemeMaxed=ot}setLowerMemeMaxed(ot){this.lowerMemeMaxed=ot}isUpperMemeMaxed(){return this.upperMemeMaxed}isLowerMemeMaxed(){return this.lowerMemeMaxed}static{this.\u0275fac=function(Vt){return new(Vt||si)(v.KVO(M.J6),v.KVO(_.a),v.KVO(M.NZ),v.KVO(v._9s),v.KVO(T.AF))}}static{this.\u0275prov=v.jDH({token:si,factory:si.\u0275fac,providedIn:"root"})}}return si})(),Mr=(()=>{class si{constructor(ot,Vt){this.loggingService=ot,this.bridgeService=Vt,this.logger=this.loggingService.getLogger("TrimService")}init(){this.logger.info("Initializing Trim Service")}trim(ot){return this.bridgeService.executeCommand(A.Ts.Common.Gallery.Trim,ot).pipe((0,L.T)(Vt=>(this.logger.info("Trim complete: ",Vt),!0),Vt=>(this.logger.info("Trim failed: ",Vt),!0)),(0,Z.W)(Vt=>(this.logger.info("Trim error: ",Vt),(0,Ce.of)(!1))))}moveFile(ot,Vt){return this.bridgeService.executeCommand(A.Ts.Common.Gallery.MoveFile,{source:ot,destination:Vt})}copyFile(ot,Vt){return this.bridgeService.executeCommand(A.Ts.Common.Gallery.CopyFile,{source:ot,destination:Vt})}deleteFile(ot){return this.bridgeService.executeCommand(A.Ts.Common.Gallery.RemoveGalleryItem,{file:ot})}overwriteOriginal(ot,Vt){return this.logger.info("Overwriting original!"),this.deleteFile(Vt).pipe((0,B.ZZ)(()=>(this.logger.info("Original deleted!"),this.moveFile(ot,Vt))))}getMetaData(ot){return this.bridgeService.executeCommand(A.Ts.Common.Gallery.GetFileMetadata,{file:ot})}static{this.\u0275fac=function(Vt){return new(Vt||si)(v.KVO(M.J6),v.KVO(M.NZ))}}static{this.\u0275prov=v.jDH({token:si,factory:si.\u0275fac,providedIn:"root"})}}return si})();var $r=s(44202),_o=s(46776);let bo=(()=>{class si{constructor(ot,Vt,Sn,Bn){this.loggingService=ot,this.localeService=Vt,this.translateService=Sn,this.appThemeService=Bn,this.timeoutDuration=100,this.logger=ot.getLogger("AppThemingService")}init(){this.translatedThemes=this.fetchTranslations();const ot=this.appThemeService.getCurrentTheme()?.key;this.selectedTheme=this.translatedThemes.find(Bn=>Bn.key===ot)??this.translatedThemes.find(Bn=>Bn.isDefaultTheme)??this.selectedTheme,this.logger.info(" : selectedTheme : ",this.selectedTheme),this.appThemeService.initialize().subscribe(Bn=>{this.logger.info(" App Theme service initialize: ",Bn)}),this.appThemeService.listenAndApplyTheme().subscribe(Bn=>{this.logger.info(" Listen to theme change from storage and apply theme : ",Bn)})}fetchTranslations(){return M.m1.map(ot=>{const Vt=ot.name.toLowerCase(),Sn=this.translateService.instant(`preferences.featureReadiness.themeFeature.${Vt}`);return ot.name=Sn,ot.isDefaultTheme&&(this.defaultThemeNameFormatted=`${Sn} (${this.translateService.instant("common.default")})`),{...ot}})}static{this.\u0275fac=function(Vt){return new(Vt||si)(v.KVO(M.J6),v.KVO(M.iH),v.KVO(bt.c$),v.KVO(M.gB))}}static{this.\u0275prov=v.jDH({token:si,factory:si.\u0275fac,providedIn:"root"})}}return si})(),Kn=(()=>{class si{constructor(ot,Vt,Sn,Bn,Ti,Li,dr,Fr,br,Vn,rr,Ut,qn,Wn,ci,Tr,Jr,oo,Qo,fo,Xr,Go,Ss,kr){this.loggingService=ot,this.osService=Vt,this.hotkey=Sn,this.oscDisplay=Bn,this.cacheService=Ti,this.oscNotification=Li,this.galleryService=dr,this.sdkGalleryService=Fr,this.shadowPlayService=br,this.webcamService=Vn,this.igoConfig=rr,this.nvcamera=Ut,this.ppeService=qn,this.osdService=Wn,this.telemetryHelperService=ci,this.gfnInfo=Tr,this.memeService=Jr,this.oscDisplayService=oo,this.trimService=Qo,this.clientInputService=fo,this.featureSupportService=Xr,this.statisticsService=Go,this.appThemingService=Ss,this.injector=kr,this.logger=this.loggingService.getLogger("IGO ServiceLoader"),this.isInitialised=!1}init(){return this.logger.info("Serviceloaderservice init"),this.featureSupportService.init().pipe((0,L.T)(ot=>(this.logger.info("Feature Support Data: ",ot),this.isInitialised?(this.oscDisplayService.fetchDisplayResolution(),!0):(this.featureSupportService.isGFEMode()&&(this.lcarsService=this.injector.get(ie.B),this.perfMonService=this.injector.get(E.z),this.ngxService=this.injector.get(ve.z),this.aiChatboxService=this.injector.get(ue.D),this.functionCallingService=this.injector.get(lt)),!!ot?.igo&&(ot?.initData?(this.isInitialised=!0,this.initSelectiveServices(ot)):(this.isInitialised=!0,this.initAllServices(),this.igoConfig.RecordingFeaturesDisabled=!0,setTimeout(()=>this.oscDisplayService.openOSC(),1e3)),!0)))))}initAllServices(){this.initBaseServices(),this.shadowPlayService.init(),this.webcamService.init(),this.nvcamera.init(),this.ppeService.init(),this.clientInputService.init(),this.featureSupportService.isGFEMode()?(this.perfMonService?.init(),this.lcarsService?.init(),this.ngxService?.init(),this.aiChatboxService?.init(),this.functionCallingService?.init()):this.statisticsService.init()}initSelectiveServices(ot){ot.hotkey&&this.hotkey.init(),ot.oscDisplay&&(this.oscDisplay.init(),this.oscDisplay.fetchDisplayResolution()),ot.os&&this.osService.init().subscribe(()=>{ot.oscNotification&&this.oscNotification.init(),ot.cache&&this.cacheService.init(),ot.gallery&&this.galleryService.init(),ot.sdkGallery&&this.sdkGalleryService.init(),ot.meme&&this.memeService.init(),ot.trim&&this.trimService.init(),ot.telemetryHelper&&this.telemetryHelperService.init()}),ot.gfnInfo&&this.gfnInfo.init(),ot.osd&&this.osdService.init(),ot.shadowPlay&&this.shadowPlayService.init(),ot.webcam&&this.webcamService.init(),ot.nvcamera&&this.nvcamera.init(),ot.ppe&&this.ppeService.init(),ot.clientInput&&this.clientInputService.init(),ot.statistics&&this.statisticsService.init(),ot.inStreamPaste&&(this.customPasteService=this.injector.get(re),this.customPasteService?.init()),this.featureSupportService.isGFEMode()&&(this.lcarsService?.init(),ot.perfMon&&this.perfMonService?.init(),this.ngxService?.init(),this.aiChatboxService?.init(),this.functionCallingService?.init()),ot.appTheming&&this.appThemingService.init()}initBaseServices(){this.hotkey.init(),this.oscDisplay.init(),this.oscDisplay.fetchDisplayResolution(),this.osService.init().subscribe(()=>{this.oscNotification.init(),this.cacheService.init(),this.galleryService.init(),this.sdkGalleryService.init(),this.memeService.init(),this.trimService.init(),this.telemetryHelperService.init()}),this.gfnInfo.init(),this.osdService.init()}static{this.\u0275fac=function(Vt){return new(Vt||si)(v.KVO(M.J6),v.KVO(_.a),v.KVO(r.QS),v.KVO(S.B),v.KVO(V._),v.KVO(ft.mb),v.KVO(T.AF),v.KVO(N.P),v.KVO(xe.W1),v.KVO(Ht),v.KVO(ht.k),v.KVO(hi),v.KVO(xn),v.KVO(i.au),v.KVO(bn.x),v.KVO(gn.x_),v.KVO(Zi),v.KVO(S.B),v.KVO(Mr),v.KVO($r.$),v.KVO(ui.R),v.KVO(_o.rJ),v.KVO(bo),v.KVO(v.zZn))}}static{this.\u0275prov=v.jDH({token:si,factory:si.\u0275fac,providedIn:"root"})}}return si})();var gi=s(72582),Pi=s(25373);let ji=(()=>{class si{constructor(ot,Vt){this.loggingService=ot,this.bridgeService=Vt,this.logger=this.loggingService.getLogger("KeyboardService")}onKeyDown(ot,Vt){switch(ot.key){case"ArrowDown":Vt===Cn.Bottom?(ot.stopPropagation(),ot.preventDefault()):(this.bridgeService.executeCommand(A.Ts.Share.Osc.GenerateKeyboardMessage,{keycode:Pi.wn,keymodifier:0}).subscribe(Sn=>{this.logger.info("ArrowDown pressed"+Sn)}),ot.stopPropagation());break;case"ArrowUp":Vt===Cn.Top?(ot.stopPropagation(),ot.preventDefault()):(this.bridgeService.executeCommand(A.Ts.Share.Osc.GenerateKeyboardMessage,{keycode:Pi.wn,keymodifier:Pi.FX}).subscribe(Sn=>{this.logger.info("ArrowUp pressed"+Sn)}),ot.stopPropagation())}}static{this.\u0275fac=function(Vt){return new(Vt||si)(v.KVO(M.J6),v.KVO(M.NZ))}}static{this.\u0275prov=v.jDH({token:si,factory:si.\u0275fac,providedIn:"root"})}}return si})();var Qi=s(50057),ar=s(48700),jr=s(45152),ho=s(43827),Fo=s(10918),no=s(27271),yo=s(8559),Zr=s(45109),Yr=s(34593),go=function(si){return si.Open="open",si.Closed="closed",si}(go||{});class zo{constructor(to,ot,Vt,Sn,Bn,Ti,Li){this.loggingService=to,this.oscDisplayService=ot,this.hotkeyService=Vt,this.hotKey=Sn,this.isPTTHotkey=Bn,this.keyUpEvent$=Ti,this.keyDownEvent$=Li,this.hotkeyEvent$=new l.B7,this.unregister$=new l.B7,this.isMonitoring=!1,this.isHotKeyEnabled=!1,this.hotKeyNum=[],this.hotKeyCount=0,this.keyMatchCount=0,this.invalidSequence=!1,this.isHotkeyDetected=!1,this.lastPTTDownStatus=!1,this.logger=this.loggingService.getLogger("UIHotKeyMonitor"),this.init()}register(){return this.hotkeyEvent$.asObservable()}unregister(){this.unregister$.next(),this.isMonitoring&&this.stopDetection()}init(){this.logger.info("init hotkey:",this.hotKey),this.getHotkeyMapping(),this.isHotKeyEnabled=this.hotkeyService.isNvAppHotkeyEnabled(this.hotKey),this.setUpListners()}getHotkeyMapping(){this.hotkeyService.getHotkeyNum(this.hotKey).pipe((0,se.M)(to=>{this.hotKeyNum=to,this.hotKeyCount=this.hotKeyNum.length})).subscribe()}setUpListners(){(0,He.zV)([this.oscDisplayService.getCurrentDisplayMode(),this.oscDisplayService.getCurrentOpenState(),this.hotkeyService.nvAppDynamicHokeysChangedEvent().pipe((0,Yr.Z)(""))]).pipe((0,Wt.Q)(this.unregister$),(0,se.M)(([to,ot,Vt])=>{this.isHotKeyEnabled=this.hotkeyService.isNvAppHotkeyEnabled(this.hotKey),to.fullscreen&&ot===go.Open&&this.isHotKeyEnabled?this.isMonitoring||this.startDetection():this.isMonitoring&&this.stopDetection()})).subscribe(),this.keyDownEvent$.pipe((0,Wt.Q)(this.unregister$)).subscribe(to=>{this.onKeyDown(to)}),this.keyUpEvent$.pipe((0,Wt.Q)(this.unregister$)).subscribe(to=>{this.onKeyUp(to)}),this.hotkeyService.getHotkeyChangedEvents([this.hotKey]).pipe((0,Wt.Q)(this.unregister$)).subscribe(()=>{this.getHotkeyMapping()})}onKeyDown(to){if(!this.isMonitoring||!this.isHotKeyEnabled)return;const ot=this.monitorHotKey(to,!0);if(ot){if(this.isPTTHotkey&&this.lastPTTDownStatus)return;this.logger.info("detected hotkey:",this.hotKey),this.hotkeyEvent$.next(!0)}this.isPTTHotkey&&(this.lastPTTDownStatus=ot)}onKeyUp(to){if(!this.isMonitoring||!this.isHotKeyEnabled)return;const ot=this.monitorHotKey(to,!1);this.isPTTHotkey&&ot&&(this.logger.info("released PTT hotkey:",this.hotKey),this.lastPTTDownStatus=!1,this.hotkeyEvent$.next(!1))}monitorHotKey(to,ot){if(0===this.hotKeyCount)return!1;let Vt=!1,Sn=to.keyCode;switch(ot){case!0:if((18==Sn||164==Sn||165==Sn)&&(Sn=18),(17==Sn||162==Sn||163==Sn)&&(Sn=17),(16==Sn||160==Sn||161==Sn)&&(Sn=16),!this.invalidSequence&&!this.keyMatchCount&&this.hotKeyNum[this.hotKeyCount-1]==Sn)for(let Bn=0;Bn<this.hotKeyCount-1;Bn++)18==this.hotKeyNum[Bn]&&to.altKey&&this.keyMatchCount++,17==this.hotKeyNum[Bn]&&to.ctrlKey&&this.keyMatchCount++,16==this.hotKeyNum[Bn]&&to.shiftKey&&this.keyMatchCount++;if(this.hotKeyNum[this.keyMatchCount]==Sn){this.keyMatchCount++,this.keyMatchCount==this.hotKeyCount&&(Vt=!0,this.isHotkeyDetected=!0,this.keyMatchCount=0,this.invalidSequence=!1);break}if(this.keyMatchCount){let Bn=!1;for(let Ti=0;Ti<this.keyMatchCount;Ti++)Bn=this.hotKeyNum[Ti]==Sn;if(Bn)break}this.invalidSequence=!0,this.keyMatchCount=0;break;case!1:this.keyMatchCount=0,this.isHotkeyDetected&&(this.isHotkeyDetected=!1,Vt=!0)}return Vt}startDetection(){this.logger.info("startDetection",this.hotKey),this.isMonitoring=!0,this.hotkeyService.setHotkeyDynamicEnable([this.hotKey],!1,!0)}stopDetection(){this.logger.info("stopDetection",this.hotKey),this.isMonitoring=!1;const to=this.hotkeyService.isNvAppHotkeyEnabled(this.hotKey);void 0!==to&&this.hotkeyService.setHotkeyDynamicEnable([this.hotKey],to,!0)}}},45152:(Bt,z,s)=>{"use strict";s.d(z,{QA:()=>d,Tk:()=>P,Wr:()=>l,gE:()=>v,pW:()=>a,so:()=>S});var n=s(20924),l=function(U){return U.Video="video",U.Image="image",U.Other="other",U}(l||{}),d=function(U){return U.Temporary="temporary",U.Highlights="highlights",U}(d||{}),v=n.Or.Common.Gallery.AudioType,S=function(U){return U.Normal="Normal",U.SuperResolution="SuperResolution",U.SuperResolutionOversized="SuperResolution_Oversized",U.Mono360="360Mono",U.Stereo="Stereo",U.Stereo360="360Stereo",U.Exr="Exr",U.Live="Live",U.Offline="Offline",U.Highlights="Highlight",U.Mta="MTA",U.NormalAnsel="Normal_Ansel",U.Gif="AnimatedGif",U.InstantReplay="InstantReplay",U.Manual="Manual",U.Screenshot="Screenshot",U}(S||{});class P{constructor(){this.total=0,this.highlights=0,this.videos=0,this.instantReplays=0,this.images=0,this.highlightBreakDown=[]}}var a=function(U){return U.HIGHLIGHT_COMPLETED="highlightCompleted",U.MOVE_STARTED="moveStarted",U.MOVE_INPROGRESS="moveInProgress",U.MOVE_DONE="moveDone",U}(a||{})},12137:(Bt,z,s)=>{"use strict";s.d(z,{k:()=>n});class n{}},10918:(Bt,z,s)=>{"use strict";s.d(z,{$S:()=>y,W6:()=>O,im:()=>S,mU:()=>d,w8:()=>l,xk:()=>v,xs:()=>f,zr:()=>n});const n={igo:!0,shadowPlay:!0,webcam:!1,nvcamera:!0,ppe:!0,graphics:!0,clientInput:!1,hotkey:!0,oscDisplay:!0,os:!0,oscNotification:!0,cache:!0,gallery:!0,sdkGallery:!0,telemetryHelper:!0,meme:!1,trim:!1,gfnInfo:!1,osd:!0,gfnMicrophone:!1,statistics:!1,gamepadOrientedMode:!1,enableInputControl:!1,controlUGC:!1,connectionStatus:!1,isKBMGameSupported:!0,nvKeyboardSupported:!1,clientIME:!1,useGamepadLSControl:!1,shortcutControls:!1,title:!0,feedback:!0,links:!0,gameplay:!0,virtualKeyboardOnMobile:!0,perfMon:!0,reflexAnalyzer:!0,inStreamPaste:!1,appTheming:!0},l={initData:{},...n};var d=function(P){return P.NvAppIGO="NvAppIGO",P.LargerFontIGO="LargerFontIGO",P}(d||{});const v=120,S=1920,y=1080,f=1280,O=800},22123:(Bt,z,s)=>{"use strict";s.d(z,{$1:()=>U,Af:()=>S,Bv:()=>m,Jm:()=>I,P8:()=>P,US:()=>y,Zi:()=>v,dJ:()=>r,ho:()=>a,jy:()=>i,n:()=>D,sT:()=>_});var n=s(26875);const v=3,S=100,y=100,P=!0,_="nvcamera.GameFilters",i="nvcamera.PhotoMode";class r{constructor(T,N,L,E,g=[],R=!1,B=!1,X=[],H=!1){this.id=T,this.name=N,this.isSelected=L,this.stackIdx=E,this.controls=g,this.isPPEFilter=R,this.isExpanded=B,this.errorCodes=X,this.isVisible=H}}class a{constructor(){this.filters=[],this.selectedFilterCount=0,this.upButtonDisabled=!0,this.downButtonDisabled=!0}moveSelectionUp(){const T=this.filters.length,N=new Set;for(let L=T-2;L>=0;L--)this.filters[L].isSelected&&!this.filters[L+1].isSelected&&(this.swapFilters(L,L+1),N.add(L),N.add(L+1));return N}moveSelectionDown(){const T=this.filters.length,N=new Set;for(let L=1;L<T;L++)this.filters[L].isSelected&&!this.filters[L-1].isSelected&&(this.swapFilters(L,L-1),N.add(L),N.add(L-1));return N}deleteSelection(){const T=this.getIndicesOfSelection();return(0,n.remove)(this.filters,function(N){return N.isSelected}),this.selectedFilterCount=this.selectedFilterCount-T.length,T.reverse()}filterClicked(T,N){T.isSelected!==N&&(N?this.selectedFilterCount++:this.selectedFilterCount--),T.isSelected=N}getIndicesOfSelection(){const T=[];return this.filters.forEach((N,L,E)=>{N.isSelected&&T.push(L)}),T}getSelectedFilters(){return this.filters.filter(T=>T.isSelected)}swapFilters(T,N){if(T<0||T>=this.filters.length||N<0||N>=this.filters.length)return;const L=this.filters[T];this.filters[T]=this.filters[N],this.filters[N]=L,this.filters[T].stackIdx=T,this.filters[N].stackIdx=N}deserialize(T){if(!T.filters)return!1;const N=this;return N.selectedFilterCount=T.selectedFilterCount,N.upButtonDisabled=T.upButtonDisabled,N.downButtonDisabled=T.downButtonDisabled,T.filters.forEach((L,E)=>{const g=new r(L.id,L.name,L.isSelected,L.stackIdx,L.controls);N.filters[E]=g}),!0}}class c{constructor(T,N){this.filterStack=new a,this.id=T,this.altText=N,this.slotName=void 0}deserialize(T){if(!T.filterStack)return!1;const N=this;return N.id=T.id,N.altText=T.altText,N.slotName=T.slotName,N.slotHotkey=T.slotHotkey,N.filterStack.deserialize(T.filterStack)}}class m{constructor(T){this.previewAvailable=!1,this.id=T}}class M{createEmptySlots(T){const N=[];for(let L=0;L<T;L++){const E=0===L?"settings.None":L.toString();N.push(new c(L,E))}return N}constructor(T){this.lastSlotIdx=0,this.slots=this.createEmptySlots(T),2===T&&(this.lastSlotIdx=1)}deserialize(T){const N=this;if(!T.slots||T.slots.length!==N.slots.length)return!1;let L;return N.lastSlotIdx=T.lastSlotIdx,N.slots.every((E,g)=>(L=E.deserialize(T.slots[g]),L)),L}}class D{constructor(){this.anselSlotsInfo=new M(2),this.modsSlotsInfo=new M(v+1)}deserialize(T){return!(!T.anselSlotsInfo||!T.modsSlotsInfo)&&(this.anselSlotsInfo.deserialize(T.anselSlotsInfo)&&this.modsSlotsInfo.deserialize(T.modsSlotsInfo))}}class I{constructor(){this.filterPresets={}}deserialize(T){if(!T.filterPresets)return!1;const N=this;let L;return Object.keys(T.filterPresets).every(E=>(N.filterPresets[E]=new D,L=N.filterPresets[E].deserialize(T.filterPresets[E]),L)),L}}const U=["Auto Depth of Field","Black & White","Brightness/Contrast","Color","Colorblind","Depth of Field","Details","Letterbox","Night mode","Old film","Painterly","Sharpen","Sharpen+","SpecialFX","Splitscreen","Tilt-shift","Vignette","Watercolor"]},43827:(Bt,z,s)=>{"use strict";s.d(z,{Qe:()=>n,ly:()=>l,p5:()=>S,xT:()=>v});var n=function(y){return y.off="off",y.on="on",y.recording="recording",y}(n||{}),l=function(y){return y.active="Active",y.stopped="Stopped",y.paused="Paused",y}(l||{}),v=function(y){return y.low="Low",y.medium="Medium",y.high="High",y.ultra="Ultra",y.custom="Custom",y}(v||{});const S="dlssoverride.performance"},45109:(Bt,z,s)=>{"use strict";s.d(z,{$i:()=>P,D7:()=>i,DQ:()=>D,KU:()=>m,N5:()=>l,PQ:()=>y,Py:()=>S,Ui:()=>I,V4:()=>M,VE:()=>r,aw:()=>_,i$:()=>d,qV:()=>n,sn:()=>c,wq:()=>v,xt:()=>f,yz:()=>O});const n="AiChatBox",l=100,d=1e4,v=6e4,S=5e3,y=1e3,f=6e4,O=700,P=650,_=500,i=380,r=24,c="Something went wrong, try restarting G-Assist from IGO.";var m=function(U){return U[U.Default=0]="Default",U[U.DoubleArrowHorizontal=1]="DoubleArrowHorizontal",U[U.DoubleArrowVertical=2]="DoubleArrowVertical",U[U.DoubleArrowDiagonalLeft=3]="DoubleArrowDiagonalLeft",U[U.DoubleArrowDiagonalRight=4]="DoubleArrowDiagonalRight",U[U.TextInput=5]="TextInput",U}(m||{}),M=function(U){return U.Interactive="gAssist.interactive",U.NonInteractive="gAssist.nonInteractive",U.Hidden="gAssist.hidden",U}(M||{});const D=["hey gasist","hey g-assist","hey game assist","hey game-assist","/ga"];var I=function(U){return U.RISE="Rise",U.GameAssistant="Game Assistant",U}(I||{})},72238:(Bt,z,s)=>{"use strict";s.d(z,{D:()=>J});var n=s(26513),l=s(80583),d=s(43848),v=s(93181),S=s(91384),y=s(8619),f=s(75707),O=s(65726),P=s(72147),_=s(83915),i=s(14714),r=s(73180),a=s(26875),m=s(20924),M=s(45109),D=s(73934),I=s(23860),U=s(13973),V=s(19724),T=s(58527),N=s(99469),L=s(32912),E=s(48700),g=s(2688),R=s(51830),B=s(8260),X=s(11728),H=s(27211);let J=(()=>{class re{constructor(ve,ue,se,Z,Se,Ce,Be,Xe,He,Me,Q,A){this.loggingService=ve,this.bridgeService=ue,this.hotkeyService=se,this.riseService=Z,this.gameAssistantService=Se,this.dbService=Ce,this.featureSupportService=Be,this.shadowplayService=Xe,this.galleryService=He,this.oscNotificationService=Me,this.oscDisplayService=Q,this.telemetryIgoService=A,this.aiChatboxVisibilityChanged$=new n.t(!1),this.aiChatboxPositionChanged$=new l.B7,this.aiChatboxModeChanged$=new l.B7,this.isAiChatboxVisibile=!1,this.aiChatBoxMode=M.V4.Hidden,this.aiAssistants={},this.shouldStartASRonLaunch=!1,this.isRiseInstalled=!1,this.isASRInstalled=!1,this.isGameAssistantInstalled=!1,this.isASRSessionReady=!1,this.isASRMicAvailable=!1,this.isFirstQueryAfterGameLaunch=!1,this.chartOrImageDialogChanged$=new l.B7,this.shouldCloseChartDialog$=new l.B7,this.gAssistToggleStateChanged$=new l.B7,this.asrReadyStateChanged$=new n.t(!1),this.setUpASRRequests$=new l.B7,this.logger=this.loggingService.getLogger("AiChatboxService"),this.dBStore=this.dbService.getGlobalStore(M.qV)}init(){if(this.logger.info("init"),!this.featureSupportService.isGAssistFeatureAvailable())return this.logger.info("Feature not available"),this.setHotkeys(!1),void this.shadowplayService.notifyUIReadyStatus();this.riseService.initialize(),this.handleSetUpASRRequests(),this.registerInstallationUpdates(),this.registerHotkeyCallbacks(),this.checkInstallStatus().pipe((0,S.M)(()=>{this.shadowplayService.notifyUIReadyStatus()})).subscribe(),this.getASRMicUpdates(),this.registerApplicationLaunchedFunctionCallEvents(),this.registerGameLaunchEvents(),this.registerLaunchRequestFromClient(),this.registerAutoLaunchRequests(),this.registerTelemetryRequests()}launchAiChatbox(ve){this.logger.info("launchAiChatbox"),this.isRiseInstalled&&(this.setAiChatboxVisibility(!0),this.initchatboxTelemetryData(),this.chatboxTelemetryData.triggerMode=ve,this.currentGameInfo&&(this.chatboxTelemetryData.isGameActive=V.T8.TRUE))}setAiChatboxVisibility(ve){this.logger.info("setAiChatboxVisibility, isVisible:",ve),this.isAiChatboxVisibile=ve,this.triggerAiChatBoxVisibilityChange()}getAiChatBoxVisibility(){return this.isAiChatboxVisibile}triggerAiChatBotPositionAndDimensionsChange(ve=void 0){this.aiChatboxPositionChanged$.next(ve)}listenAiChatBoxVisibilityChanges(){return this.aiChatboxVisibilityChanged$.asObservable()}listenAiChatBoxPositionChanges(){return this.aiChatboxPositionChanged$.asObservable()}updateChatBoxPositionAndDimensions(ve){this.logger.info("updateChatBoxPosition"),!(0,a.isEqual)(this.aiChatBoxData.chatBoxPosition,ve)&&(this.aiChatBoxData.chatBoxPosition=ve,this.savePersistedData())}getChatBoxPosition(){return this.aiChatBoxData.chatBoxPosition}getIsGAssistInstalled(){return this.isRiseInstalled}turnONASR(){this.logger.info("turnONASR"),this.isASRSessionReady?this.logger.info("ASR session already active"):(this.shadowplayService.setGAssistGlobalToggle(!0).subscribe(),this.setUpASRRequests$.next(!0))}turnOFFASR(){this.logger.info("turnOFFASR"),this.setUpASRRequests$.next(!1),this.asrReadyStateChanged$.next(!1),this.shadowplayService.setGAssistGlobalToggle(!1).subscribe()}toggleGAssistFeature(ve,ue=!1){this.logger.info("toggleGAssistFeature",ve),ve?(this.setLaunchHotkey(!0),!this.isAiChatboxVisibile&&this.aiChatBoxMode!==M.V4.Hidden&&this.launchAiChatbox(V.gv.UsingUI),this.isASRInstalled&&this.isASRMicAvailable&&this.turnONASR()):(this.setLaunchHotkey(!1),this.isASRInstalled&&this.turnOFFASR(),this.riseService.onDisableGAssist(),this.setAiChatboxVisibility(!1)),this.gAssistToggleStateChanged$.next(ve),ue||(this.aiChatBoxData.gAssistGlobalToggle=ve,this.savePersistedData())}getGAssistToggleState(){return this.aiChatBoxData.gAssistGlobalToggle}listenToGAssistToggleChanges(){return this.gAssistToggleStateChanged$.asObservable()}closeAiChatBox(ve){this.setAiChatBoxMode(M.V4.Hidden),this.chatboxTelemetryData.closeTrigger=ve?V.j4.Escape:V.j4.Minimize}setAiChatBoxMode(ve,ue=!1){this.logger.info("setAiChatBoxMode:",ve,ue),this.aiChatBoxMode=ve,this.aiChatBoxMode!==M.V4.Interactive&&this.shouldCloseChartDialog$.next(),ue||this.aiChatboxModeChanged$.next(ve)}getAiChatBoxMode(){return this.logger.info("getAiChatBoxMode:",this.aiChatBoxMode),this.aiChatBoxMode}listenAiChatBoxModeChanges(){return this.aiChatboxModeChanged$.asObservable()}setIsChartOrImageDialogOpen(ve){this.logger.info("setIsChartOrImageDialogOpen:",ve),ve&&(this.chatboxTelemetryData.isChartDialogOpened=V.T8.TRUE),this.chartOrImageDialogChanged$.next(ve)}getIsChartOrImageDialogChangedEvent(){return this.chartOrImageDialogChanged$.asObservable()}shouldCloseChartDialog(){return this.shouldCloseChartDialog$.asObservable()}updateChartDialogPosition(ve){this.logger.info("updateChartDialogPosition"),!(0,a.isEqual)(this.aiChatBoxData.chartDialogPosition,ve)&&(this.aiChatBoxData.chartDialogPosition=ve,this.savePersistedData())}getChartDialogPosition(){return this.aiChatBoxData.chartDialogPosition}checkASRLaunchOnStart(){this.shouldStartASRonLaunch&&(this.riseService.toggleASR(V.gv.UsingHotkey,!0),this.shouldStartASRonLaunch=!1)}getASRReadyStateUpdates(){return this.asrReadyStateChanged$.asObservable()}saveCSVData(ve){const ue=this.galleryService.getVideoFolder();this.bridgeService.executeCommand(m.Ts.Nvapp.Rise.SaveCSV,{csvData:ve,ugcFolderPath:ue}).pipe((0,S.M)(Z=>{Z.status?(this.logger.info("Chart data saved successfully"),this.oscNotificationService.show(I.Ed.GAssistChartDataSaved,Z.folderPath)):(this.logger.error("Failed to save chart data"),this.oscNotificationService.show(I.Ed.GAssistChartDataSaveError))})).subscribe()}registerApplicationLaunchedFunctionCallEvents(){this.riseService.getApplicationLaunchedEvents().pipe((0,S.M)(()=>{this.takeChatBoxToNonInteractiveMode()})).subscribe()}listenToGameAssistantUnsupportedResponse(){this.gameAssistantService.getGameAssistantUnsupportedQueryEvent().pipe((0,S.M)(()=>{this.currentChatItem.loading?(this.logger.info("Forwarding query to Rise"),this.currentChatItem.aiAssistant=M.Ui.RISE,this.activeAiAssistant=this.aiAssistants[M.Ui.RISE],this.riseService.sendRequest(this.currentChatItem).subscribe()):this.logger.info("No query is pending, ignoring GA unsupported response")}))}routeQueryToAppropriateAssistant(ve){const ue=ve.prompt;if(this.currentChatItem=ve,this.isGameAssistantInstalled&&this.gameAssistantService.getIsSessionActive()){let se;Object.values(this.aiAssistants).some(Z=>{const Se=Z.switches.some(Ce=>ue.toLowerCase().includes(Ce));return Se&&(se=Z),Se}),se||(se=this.isFirstQueryAfterGameLaunch?this.aiAssistants[M.Ui.GameAssistant]:this.activeAiAssistant?this.activeAiAssistant:this.aiAssistants[M.Ui.RISE]),this.activeAiAssistant=se,this.currentChatItem.aiAssistant=se.name,this.logger.info("Sending query to",se.name)}else this.currentChatItem.aiAssistant=M.Ui.RISE,this.activeAiAssistant=this.aiAssistants[M.Ui.RISE];this.isFirstQueryAfterGameLaunch=!1,this.chatboxTelemetryData.noOfQueriesAsked++,this.activeAiAssistant.service.sendRequest(ve).pipe((0,S.M)(se=>{se||(this.logger.info("Query failed"),this.activeAiAssistant.service.onQueryFailure())})).subscribe()}populateAvailableAiAssistants(){this.aiAssistants={},this.isRiseInstalled&&(this.aiAssistants[M.Ui.RISE]={name:M.Ui.RISE,service:this.riseService,switches:U.Rb}),this.isGameAssistantInstalled&&(this.aiAssistants[M.Ui.GameAssistant]={name:M.Ui.GameAssistant,service:this.gameAssistantService,switches:M.DQ})}registerTelemetryRequests(){this.riseService.getASRTelemetryRequests().pipe((0,S.M)(ve=>{this.sendASRQueryTelemetry(ve)})).subscribe()}registerGameLaunchEvents(){this.shadowplayService.registerAppStartedEvent().pipe((0,S.M)(ve=>{this.isFirstQueryAfterGameLaunch=!0,this.currentGameInfo={procId:ve.appStarted.pid,cmsId:ve.appStarted.cmsId,drsName:ve.appStarted.DRSAppName,drsProfileName:ve.appStarted.profileName,shortName:ve.appStarted.shortName},this.isAiChatboxVisibile&&(this.chatboxTelemetryData.isGameActive=V.T8.TRUE)})).subscribe(),this.bridgeService.executeCommand(m.Ts.Share.Shareserver.RegisterGeneralNotifications).pipe((0,y.p)(ve=>!!ve?.gameExited),(0,S.M)(()=>{this.isFirstQueryAfterGameLaunch=!1,this.currentGameInfo=void 0})).subscribe()}registerLaunchRequestFromClient(){this.oscDisplayService.getLaunchGAssistWindowEvents().pipe((0,S.M)(()=>{this.logger.info("GAssist launch request from client"),this.setAiChatBoxMode(M.V4.Interactive),this.isAiChatboxVisibile||this.launchAiChatbox(V.gv.UsingClientUI)})).subscribe()}registerAutoLaunchRequests(){this.riseService.getChatBoxLaunchOnNextInitUpdates().pipe((0,S.M)(ve=>{this.aiChatBoxData&&(this.aiChatBoxData.shouldLaunchChatboxOnInit=ve,this.aiChatBoxData.autoLaunchRequestedTimestamp=ve?Date.now():0,this.savePersistedData())})).subscribe()}takeChatBoxToNonInteractiveMode(){this.isAiChatboxVisibile&&this.aiChatBoxMode===M.V4.Interactive&&this.setAiChatBoxMode(M.V4.NonInteractive)}isPluginSwitchHintShown(){return this.aiChatBoxData?.isPluginSwitchHintShown}setIsPluginSwitchHintShown(){this.aiChatBoxData.isPluginSwitchHintShown=!0,this.savePersistedData()}sendChatboxSessionTelemetry(ve,ue,se,Z,Se,Ce,Be,Xe,He,Me,Q,A){this.chatboxTelemetryData.isASRActive=ve?V.T8.TRUE:V.T8.FALSE,this.chatboxTelemetryData.isASRUsed=ue?V.T8.TRUE:V.T8.FALSE,this.chatboxTelemetryData.isMicIconUsed=Z?V.T8.TRUE:V.T8.FALSE,this.chatboxTelemetryData.isNonInteractiveModeUsed=se?V.T8.TRUE:V.T8.FALSE,this.chatboxTelemetryData.isRepositioned=Se?V.T8.TRUE:V.T8.FALSE,this.chatboxTelemetryData.isResized=Ce?V.T8.TRUE:V.T8.FALSE,this.chatboxTelemetryData.isSettingsOpened=Be?V.T8.TRUE:V.T8.FALSE,this.chatboxTelemetryData.isChatCleared=Xe?V.T8.TRUE:V.T8.FALSE,this.chatboxTelemetryData.isFeatureToggleUsed=He?V.T8.TRUE:V.T8.FALSE,this.chatboxTelemetryData.isChartReceived=Me?V.T8.TRUE:V.T8.FALSE,this.chatboxTelemetryData.noOfASRTimeouts=A,this.chatboxTelemetryData.noOfQueryTimeouts=Q,He&&(this.chatboxTelemetryData.closeTrigger=V.j4.FeatureToggle),this.telemetryIgoService.sendGAssistChatBoxSession(this.chatboxTelemetryData)}sendSettingsMenuSessionTelemetry(ve){this.telemetryIgoService.sendGAssistSettingsMenuSession(ve)}sendQueryTelemetry(ve,ue,se,Z,Se,Ce){const Be={cmsId:this.currentGameInfo?this.currentGameInfo.cmsId.toString():"0",drsName:this.currentGameInfo?this.currentGameInfo.drsName:"Desktop",drsProfileName:this.currentGameInfo?this.currentGameInfo.drsProfileName:"Desktop",queryType:ve?V.dt.Voice:V.dt.Text,responseCode:Z,responseTime:Se,isChartOutput:se?V.T8.TRUE:V.T8.FALSE,isFirstQuery:ue?V.T8.TRUE:V.T8.FALSE,pluginName:Ce};this.telemetryIgoService.sendGAssistQueryData(Be)}sendFunctionCallTelemetry(ve,ue,se,Z){const Se={cmsId:this.currentGameInfo?this.currentGameInfo.cmsId.toString():"0",drsName:this.currentGameInfo?this.currentGameInfo.drsName:"Desktop",drsProfileName:this.currentGameInfo?this.currentGameInfo.drsProfileName:"Desktop",functionName:ve,functionParams:ue,responseCode:se,responseTime:Z};this.telemetryIgoService.sendGAssistFunctionCallData(Se)}sendASRQueryTelemetry(ve){ve.chatboxMode=this.aiChatBoxMode===M.V4.Interactive?V.xV.Interactive:V.xV.NonInteractive,this.telemetryIgoService.sendGAssistASRQueryData(ve)}sendASRSetupTelemetry(ve){this.telemetryIgoService.sendGAssistASRSetupData(ve)}initchatboxTelemetryData(){this.chatboxTelemetryData={triggerMode:V.gv.UsingHotkey,isGameActive:V.T8.FALSE,isASRActive:V.T8.FALSE,isASRUsed:V.T8.FALSE,isNonInteractiveModeUsed:V.T8.FALSE,isMicIconUsed:V.T8.FALSE,isASRHotkeyUsed:V.T8.FALSE,isRepositioned:V.T8.FALSE,isResized:V.T8.FALSE,isSettingsOpened:V.T8.FALSE,isChatCleared:V.T8.FALSE,isChartReceived:V.T8.FALSE,isChartDialogOpened:V.T8.FALSE,isFeatureToggleUsed:V.T8.FALSE,noOfQueriesAsked:0,noOfQueryTimeouts:0,noOfASRTimeouts:0,closeTrigger:V.j4.SettingsMenu}}onGAssistUnInstall(){this.logger.info("onGAssistUnInstall"),this.setHotkeys(!1),this.toggleGAssistFeature(!1,!0),this.isRiseInstalled=!1,this.isASRInstalled=!1}registerInstallationUpdates(){this.shadowplayService.getGAssistInstallStateChanges().pipe((0,f.ZZ)(ve=>(this.logger.info("GAssist installation event:",ve),ve?this.checkInstallStatus():(this.onGAssistUnInstall(),(0,d.of)()))),(0,S.M)(()=>{this.isASRInstalled&&this.riseService.initializeASR(),this.logger.info("Install status updated")})).subscribe()}delayIf(ve,ue){return function(se){return ve?se.pipe((0,O.c)(ue)):se}}handleSetUpASRRequests(){this.setUpASRRequests$.pipe((0,P.n)(ve=>this.setUpASR(ve))).subscribe()}updateASRReadyness(){const ve=this.isASRSessionReady&&this.isASRMicAvailable;this.asrReadyStateChanged$.next(ve),this.setASRHotkey(ve)}onMicUpdates(){this.logger.info("onMicUpdates"),this.isASRInstalled&&(this.isASRMicAvailable&&this.aiChatBoxData?.gAssistGlobalToggle?this.turnONASR():this.turnOFFASR())}getASRMicUpdates(){this.riseService.getAsrActiveMicUpdates().pipe((0,S.M)(ve=>{this.isASRMicAvailable=!!ve,this.onMicUpdates()})).subscribe()}setUpASR(ve){let ue;return this.logger.info("setUpASR:",ve),(0,d.of)(ve).pipe(this.delayIf(ve,M.Py),(0,f.ZZ)(se=>(ue=Date.now(),this.riseService.setUpASRSession(se))),(0,_.T)(se=>{this.logger.info("setUpASR result:",se),this.isASRSessionReady=ve&&se,this.sendASRSetupTelemetry({responseCode:V.pn.Success,responseTime:Date.now()-ue}),this.updateASRReadyness()}),(0,i.W)(se=>(this.logger.error("VqResisterVoiceQuery error:",se),this.sendASRSetupTelemetry({responseCode:V.pn.Error,responseTime:Date.now()-ue}),(0,d.of)(void 0))))}toggleInteractiveMode(){this.aiChatBoxMode===M.V4.Interactive?this.setAiChatBoxMode(M.V4.NonInteractive):this.aiChatBoxMode===M.V4.NonInteractive?this.setAiChatBoxMode(M.V4.Interactive):this.logger.error("Mode = Hidden when AichatBox is visible")}checkInstallStatus(){const ve=[this.fetchRiseInstallationStatus()];return this.featureSupportService.isASRFeatureAvailable()&&ve.push(this.fetchASRInstallStatus()),this.featureSupportService.isGameAssistantAvailable()&&ve.push(this.fetchGameAssistantInstallationStatus()),(0,v.p)(ve).pipe((0,_.T)(()=>{this.isRiseInstalled?this.initStorageData():this.setHotkeys(!1),this.populateAvailableAiAssistants()}))}fetchASRInstallStatus(){return this.riseService.isASRSupported().pipe((0,_.T)(ve=>(this.isASRInstalled=ve.status,this.logger.info("isASRInstalled",this.isASRInstalled),this.isASRInstalled)))}fetchRiseInstallationStatus(){return this.riseService.isRiseSupported().pipe((0,_.T)(ve=>(this.isRiseInstalled=ve.status,this.logger.info("isRiseInstalled",this.isRiseInstalled),this.isRiseInstalled)))}fetchGameAssistantInstallationStatus(){return this.gameAssistantService.isInstalled().pipe((0,_.T)(ve=>(this.isGameAssistantInstalled=ve.status,this.logger.info("isGameAssistantInstalled",this.isGameAssistantInstalled),this.isGameAssistantInstalled&&this.gameAssistantService.initialize(),this.isGameAssistantInstalled)))}initStorageData(){this.dBStore.getItem(M.qV).pipe((0,S.M)(ve=>{if(ve&&ve?.version&&0!==ve.chatBoxPosition?.width&&0!==ve.chatBoxPosition?.height?(this.logger.info("Fetched storage data"),this.aiChatBoxData=ve,this.aiChatBoxData.isPluginSwitchHintShown=!!ve.isPluginSwitchHintShown):(this.logger.info("storage data not present"),this.aiChatBoxData={version:1,gAssistGlobalToggle:!0,chatBoxPosition:{x:window.innerWidth-M.D7-M.VE,y:window.innerHeight-M.aw-M.VE,width:M.D7,height:M.aw},isPluginSwitchHintShown:!1,shouldLaunchChatboxOnInit:!1,autoLaunchRequestedTimestamp:0},this.savePersistedData()),this.toggleGAssistFeature(this.aiChatBoxData.gAssistGlobalToggle,!0),this.aiChatBoxData.shouldLaunchChatboxOnInit){if(this.logger.info("Chatbox requested to be launched on init"),this.aiChatBoxData.autoLaunchRequestedTimestamp){const ue=Date.now()-this.aiChatBoxData.autoLaunchRequestedTimestamp;ue<=M.xt?setTimeout(()=>{this.setAiChatBoxMode(M.V4.Interactive),this.launchAiChatbox(V.gv.AutoLaunchOnInit)},M.PQ):this.logger.info("Chatbox launch request expired, timeElapsed:",ue)}else this.logger.info("Invalid auto launch timestamp");this.aiChatBoxData.shouldLaunchChatboxOnInit=!1,this.aiChatBoxData.autoLaunchRequestedTimestamp=0,this.savePersistedData()}}),(0,i.W)(ve=>(this.logger.error("Error while fetching storage data:",ve),(0,d.of)()))).subscribe()}savePersistedData(){this.dBStore.setItem(M.qV,this.aiChatBoxData).subscribe(()=>{this.logger.info("Perstisted data saved successfully")},ve=>{this.logger.error("Error while saving the persisted data ",ve)})}registerHotkey(ve,ue){this.hotkeyService.listen(ve).pipe((0,r.c)(M.N5)).subscribe(se=>{ue(se)})}setLaunchHotkey(ve){this.hotkeyService.setHotkeyDynamicEnable([D.g8.ChatUIToggle],ve)}setASRHotkey(ve){this.hotkeyService.setHotkeyDynamicEnable([D.g8.ChatPTT],ve)}setHotkeys(ve){this.setLaunchHotkey(ve),this.setASRHotkey(ve)}registerHotkeyCallbacks(){this.registerHotkey(D.g8.ChatUIToggle,this.onAiChatboxHotkey.bind(this)),this.hotkeyService.listenChatBoxPTT().subscribe(ve=>{this.onASRHotkey(ve)})}triggerAiChatBoxVisibilityChange(){this.logger.info("triggerAiChatBoxVisibilityChange"),this.aiChatboxVisibilityChanged$.next(this.isAiChatboxVisibile)}onAiChatboxHotkey(){this.logger.info("onAiChatboxHotkey, isCurrentlyVisible:",this.isAiChatboxVisibile),this.isAiChatboxVisibile?this.toggleInteractiveMode():(this.setAiChatBoxMode(M.V4.Interactive),this.launchAiChatbox(V.gv.UsingHotkey))}onASRHotkey(ve){this.logger.info("onASRHotkey, isDown:",ve," isAiChatboxVisibile:",this.isAiChatboxVisibile),ve?(this.isAiChatboxVisibile?this.riseService.toggleASR(V.gv.UsingHotkey,!0):(this.shouldStartASRonLaunch=!0,this.setAiChatBoxMode(M.V4.NonInteractive),this.launchAiChatbox(V.gv.UsingHotkey)),this.chatboxTelemetryData.isASRHotkeyUsed=V.T8.TRUE,this.chatboxTelemetryData.isASRUsed=V.T8.TRUE):this.riseService.toggleASR(V.gv.UsingHotkey,!1)}static{this.\u0275fac=function(ue){return new(ue||re)(T.KVO(N.J6),T.KVO(N.NZ),T.KVO(D.QS),T.KVO(L.J),T.KVO(E.A),T.KVO(N.at),T.KVO(g.R),T.KVO(R.W1),T.KVO(B.AF),T.KVO(I.mb),T.KVO(X.B),T.KVO(H.S))}}static{this.\u0275prov=T.jDH({token:re,factory:re.\u0275fac,providedIn:"root"})}}return re})()},69416:(Bt,z,s)=>{"use strict";s.d(z,{_:()=>r});var n=s(20924),l=s(892),d=s(43848),v=s(83915),S=s(14714),y=s(75707),f=s(91384),O=s(58527),P=s(99469),_=s(75042),i=function(a){return a[a.Empty=0]="Empty",a[a.Partial=1]="Partial",a[a.Full=2]="Full",a}(i||{});let r=(()=>{class a{constructor(m,M,D){this.osService=M,this.bridgeService=D,this.videoPath="",this.directoryListOutdated=!0,this.directoryListUpdateCounts=!1,this.files=[],this.directoryList=[],this.directories=[],this.populatedFolder=[[],[],[],[],[]],this.folderData=[],this.fileData=[],this.mainCache=[],this.folderCache=[],this.cacheEntries=5,this.initialized=!1,this.ageCounter=0,this.dataIndex=0,this.freeInterval=3e5,this.minEntryAge=12e5,this.active=!1,this.logger=m.getLogger("CacheService")}resetCacheEntry(m){this.folderCache[m]={dirty:!0,crc:0,path:"",age:0,time:0,loaded:i.Empty}}init(){if(this.logger.info("Initialize"),this.dirSeparator=this.osService.getDirSeparator(),!this.initialized){this.directoryListOutdated=!0,this.mainCache[0]={dirty:!0,crc:0,path:""};for(let m=0;m<this.cacheEntries;m++)this.resetCacheEntry(m);this.cacheTimerOn(),this.initialized=!0,this.logger.info("Initialize complete")}}reInit(){this.cacheTimerOff(),this.initialized=!1,this.init()}galleryActive(m){this.active=m}cacheTimerOn(){this.cacheTimer||(this.cacheTimer=(0,l.Y)(this.freeInterval).subscribe(()=>{if(this.logger.info("cacheTimer called"),this.active)return;let m=2147483647,M=-1;const I=(new Date).getTime();for(let U=0;U<this.cacheEntries;U++)0!==this.folderCache[U].age&&this.folderCache[U].age<m&&I-this.folderCache[U].time>this.minEntryAge&&(M=U,m=this.folderCache[U].age);0!==m&&-1!==M&&(this.logger.info("resetting cache entry: "+M+" age was: "+m),this.folderData[M].directories.length=0,this.folderData[M].files.length=0,this.folderCache[M].loaded===i.Full&&(this.fileData[M].popFolder.length=0),this.resetCacheEntry(M)),this.checkCacheState()}))}cacheTimerOff(){this.logger.info("cacheTimerOff called"),this.cacheTimer&&(this.cacheTimer.unsubscribe(),this.cacheTimer=void 0)}checkCacheState(){let m=!0;this.folderCache.forEach(M=>{M.loaded!==i.Empty&&(m=!1)}),m&&this.cacheTimerOff()}setRecordingPaths(m){this.videoPath=m,this.reInit()}getCurrentPopFolder(){return this.populatedFolder[this.dataIndex]}resetCurrentPopFolder(){this.populatedFolder[this.dataIndex].length=0}useCacheData(m,M){let D=!1;if(m!==this.videoPath){const I=this.folderCache.findIndex(L=>L.path===m);if(-1===I)return!1;D=!this.folderCache[I].dirty&&this.folderCache[I].path===m;const U=D&&this.folderCache[I].loaded!==i.Empty,V=D&&this.folderCache[I].loaded===i.Full;this.dataIndex=I;const N=(new Date).getTime();return M?(U&&(this.logger.info("useCacheData, updating partial!"),this.files=this.folderData[I].files,this.directories=this.folderData[I].directories,this.counts=this.folderData[I].counts,this.logger.info("useCacheData, updating partial - DONE!!"),this.folderCache[I].time=N),U):(V&&(this.logger.info("useCacheData, updating full!"),this.populatedFolder[I]=this.fileData[I].popFolder,this.counts=this.folderData[I].counts,this.logger.info("useCacheData, updating full - DONE!!"),this.folderCache[I].time=N),V)}return D=!this.mainCache[0].dirty&&this.mainCache[0].path===m,D}setCacheNotDirty(m){if(m===this.videoPath)this.mainCache[0].dirty=!1;else{const M=this.folderCache.findIndex(D=>D.path===m);-1!==M&&(this.folderCache[M].dirty=!1)}}setCacheLoadedPartial(m){const M=this.folderCache.findIndex(D=>D.path===m);-1!==M&&(this.folderCache[M].loaded=i.Partial,this.folderData[M]={files:this.files,directories:this.directories,counts:this.counts})}setCacheLoaded(m){const M=this.folderCache.findIndex(D=>D.path===m);-1!==M&&(this.folderCache[M].loaded=i.Full,this.fileData[M]={popFolder:this.populatedFolder[M]})}setFileCounts(m,M){const D=this.folderCache.findIndex(I=>I.path===M);-1!==D?this.folderData[D].counts=m:this.logger.error("Could not find cache entry")}getVideoPathCRC(){return this.getGalleryFolderCRC(this.videoPath).pipe((0,v.T)(m=>{const M=this.mainCache[0].crc!==m.crc;return this.mainCache[0]={dirty:M,crc:m.crc,path:this.videoPath},M}),(0,S.W)(m=>(this.logger.info("getVideoPathCRC error: ",m),(0,d.of)(!0))))}getCachedDataCRC(m){void 0===m&&(this.logger.info("getCachedDataCRC: input undefined will use video path"),m=this.videoPath);let M=-1;if(m===this.videoPath)return this.getVideoPathCRC();if(M=this.folderCache.findIndex(D=>D.path===m),-1===M&&(M=this.folderCache.findIndex(D=>D.path===m)),-1===M){let D=2147483647;for(let I=0;I<this.cacheEntries;I++)this.folderCache[I].dirty&&this.folderCache[I].age<D&&(M=I,D=this.folderCache[I].age)}if(-1===M){let D=2147483647;for(let I=0;I<this.cacheEntries;I++)this.folderCache[I].age<D&&(M=I,D=this.folderCache[I].age)}return M>=this.cacheEntries&&this.logger.error("folder cache has bad indexing!"),this.logger.info("Using index: "+M),this.getGalleryFolderCRC(m).pipe((0,y.ZZ)(D=>{const I=this.folderCache[M].crc!==D.crc,V=I||this.folderCache[M].loaded===i.Empty;this.ageCounter++;const N=(new Date).getTime();return this.folderCache[M]={dirty:V,crc:D.crc,path:m,age:this.ageCounter,time:N,loaded:I?i.Empty:this.folderCache[M].loaded},this.cacheTimerOn(),(0,d.of)(!0)}),(0,S.W)(D=>(this.logger.info("getCachedDataCRC error: ",D),this.resetCacheEntry(M),(0,d.of)(!1))))}getGalleryFolderCRC(m){return this.bridgeService.executeCommand(n.Ts.Common.Gallery.GetFolderCRC,{directory:m})}getDirectoryListCRC(){return this.getVideoPathCRC().pipe((0,f.M)(m=>{this.directoryListOutdated=m}))}getNewDirectoryList(){return this.directoryListOutdated?(this.directoryList.length=0,this.directoryListUpdateCounts=!0,this.bridgeService.executeCommand(n.Ts.Common.Gallery.GetFolderListing,{directory:this.videoPath,shouldGetOnlyNv:!0,excludeDirectoryType:n.Or.Common.Gallery.ExcludeDirectoryType.empty}).pipe((0,v.T)(M=>(this.setDirectoryList(M.directories),this.logger.info("New Directories: ",this.directoryList),this.directoryList)))):(this.logger.info("Current Directories: ",this.directoryList),this.directoryListUpdateCounts=!1,(0,d.of)(this.directoryList))}getDirectoryList(){return this.getDirectoryListCRC().pipe((0,y.ZZ)(()=>this.getNewDirectoryList()))}setDirectoryList(m){this.directoryList=m.slice(),this.directoryListOutdated=!1}updateDirectoryList(m){if(this.directoryList.length){let M=m.lastIndexOf(this.dirSeparator);const D=m.substr(0,M);M=D.lastIndexOf(this.dirSeparator)+1;const I=D.substr(M);this.directoryList.find(U=>U===I)||this.flushDirectoryList()}}flushDirectoryList(){this.directoryListOutdated=!0}static{this.\u0275fac=function(M){return new(M||a)(O.KVO(P.J6),O.KVO(_.a),O.KVO(P.NZ))}}static{this.\u0275prov=O.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})()},44202:(Bt,z,s)=>{"use strict";s.d(z,{$:()=>i});var n=s(54947),l=s(43848),d=s(80583),v=s(73180),S=s(75707),y=s(65706),f=s(73934),O=s(58527),P=s(99469),_=s(12137);let i=(()=>{class r{get inputControlUIOpened$(){return this.inputUISubject.asObservable()}get systemKeyboardState$(){return this.systemVirtualKeyboardService.keyboardVisible$}get imeOpened$(){return this.clientImeLoaderService?.imeOpened$??(0,l.of)(!1)}get isImeEnabled$(){return this.clientImeLoaderService?.isImeEnabled$??(0,l.of)(!1)}get imeInputInProgress(){return this.clientImeLoaderService?.imeInputInProgress??!1}get imeInputTextVisible$(){return this.clientImeLoaderService?.imeInputTextVisible$??(0,l.of)(!1)}constructor(c,m,M,D,I){this.igoConfig=m,this.injector=M,this.hotkeyService=D,this.systemVirtualKeyboardService=I,this.inputUISubject=new d.B7,this.clientImeLoaderService=null,this.throttleMs=333,this.logger=c.getLogger("IGO ClientInputService"),this.igoConfig.GFNCefClient&&(this.clientImeLoaderService=this.injector.get(n.R3))}init(){this.logger.info("Initializing ClientInputService"),this.igoConfig.GFNCefClient&&this.hotkeyService.listen(f.g8.NativeKeyboardInputDialog).pipe((0,v.c)(this.throttleMs),(0,S.ZZ)(()=>this.clientImeLoaderService.isImeEnabled$.pipe((0,y.s)(1)))).subscribe(c=>{this.clientImeLoaderService.imeInputInProgress?this.clientImeLoaderService.closeImeInputHandler():(this.logger.info("ClientIME window opening triggered"),c?(this.logger.info("ClientIME feature is enabled, opening IME window"),this.clientImeLoaderService.initImeInputHandler(n.vy.HotKey)):this.logger.info("ClientIME feature is disabled"))})}toggleInputControlUI(c){this.inputUISubject.next(c)}initImeInput(c){this.clientImeLoaderService?.initImeInputHandler(c)}controlImeInput(c){this.clientImeLoaderService?.controlImeInput(c)}closeImeInput(){this.clientImeLoaderService?.closeImeInputHandler()}static{this.\u0275fac=function(m){return new(m||r)(O.KVO(P.J6),O.KVO(_.k),O.KVO(O.zZn),O.KVO(f.QS),O.KVO(P.zH))}}static{this.\u0275prov=O.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},24964:(Bt,z,s)=>{"use strict";s.d(z,{e:()=>r});var n=s(8619),l=s(65706),d=s(75707),v=s(83915),S=s(18880),y=s(58527),f=s(11728),O=s(26537),P=s(65597),_=s(56785),i=s(1229);let r=(()=>{class a{constructor(m,M,D,I,U){this.oscDisplayService=m,this.dialog=M,this.snackbar=D,this.focusManager=I,this.igoConfig=U}openAlertDialog(m,M=!0,D=!0){const I={panelClass:this.igoConfig.GFNCefClient?["nv-hig","nv-igo","nv-overlay-panel"]:["nv-hig","nv-igo","nv-overlay-panel","igo-dialog-geometry"],disableClose:M,autoFocus:!1,data:m};return this.oscDisplayService.getCanShowUI().pipe((0,n.p)(U=>U),(0,l.s)(1),(0,d.ZZ)(()=>this.oscDisplayService.getCurrentOpenState()),(0,l.s)(1),(0,v.T)(U=>{const V="open"!==U;V&&this.oscDisplayService.openOSC("");const T=this.focusManager.restoreFocusAfterClosed(()=>this.dialog.open(S.Q6,I));return T.afterClosed().subscribe(N=>{D&&(N=!0),V&&N&&this.oscDisplayService.closeOSC()}),T}))}closeAll(){this.dialog.closeAll()}openSnackBar(m,M="",D=5e3,I="left"){return this.snackbar.open(m,M,{duration:D,horizontalPosition:I,panelClass:this.igoConfig.GFNCefClient?["nv-hig","nv-igo"]:["nv-hig","nv-igo","igo-dialog-geometry"]})}closeSnackBar(){this.snackbar.dismiss()}static{this.\u0275fac=function(M){return new(M||a)(y.KVO(f.B),y.KVO(O.bZ),y.KVO(P.UG),y.KVO(_.c_),y.KVO(i.k$F))}}static{this.\u0275prov=y.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})()},2688:(Bt,z,s)=>{"use strict";s.d(z,{R:()=>U});var n=s(61142),l=s(43848),d=s(31315),v=s(65706),S=s(75707),y=s(10174),f=s(14714),O=s(83915),P=s(20924),_=s(99469),i=s(89284),r=s(10918),a=s(10132),c=s(58527),m=s(12137),M=s(54292),D=s(56315),I=s(50801);let U=(()=>{class V{constructor(N,L,E,g,R,B,X,H){this.injector=L,this.bridgeService=E,this.igoConfig=g,this.systemInfoService=R,this.browserSupportService=B,this.projectInterfaceService=H,this.useAlternateHotkeyForIGO=!1,this.isGuestAppFlow=!1,this.logger=N.getLogger("igo/FeatureSupportService"),this.isBrowserPlatform=_.zk.isBrowserPlatform(),"GFE"===this.igoConfig.branding?this.applyClassOnBody(r.mU.NvAppIGO):this.igoConfig.SmallScreenEnlargeFont&&this.applyClassOnBody(r.mU.LargerFontIGO),this.isCaptureSupported=!0,"GFN"===this.igoConfig.branding&&(this.guestModeHelperService=this.injector.get(i.xDS),this.appConfig=this.injector.get(i.Vk6),this.tvMode=!!this.appConfig?.featureEnablement?.tvMode,this.isMobileMode=!!this.appConfig?.featureEnablement?.mobileMode,this.inputControlEnabled=!!this.appConfig?.igo?.enableInputControl,this.nvKeyboardSupported=X.enabled,this.clientImeEnabled=!!this.appConfig.featureEnablement.clientIME,this.useGamepadLSControl=!!this.appConfig.featureEnablement.useGamepadLSControl,this.useAlternateHotkeyForIGO=!!this.appConfig.featureEnablement.useAlternateHotkeyForIGO,this.isGuestAppFlow=this.guestModeHelperService.isGuestAppFlow(),this.isVirtualControllerEnabled=!!this.appConfig.featureEnablement?.virtualController,this.blurInputOnSoftKeyboardDismissal=!!this.appConfig?.featureEnablement?.blurInputOnSoftKeyboardDismissal,this.displayOnscreenKeyboardUsage=!!this.appConfig?.igo?.displayOnscreenKeyboardUsage,this.handleSystemKeyboardVisibility=!!this.appConfig?.igo?.handleSystemKeyboardVisibility,this.disableGamepadHintsOnSystemKBOpened=!!this.appConfig?.client?.disableGamepadHintsOnSystemKBOpened,this.hideKeyboardOptionInputControlComponent=!!this.appConfig?.igo?.hideKeyboardOptionInputControl,this.streamerHelperService=this.injector.get(i.HFx)),this.initFeatureControl()}setIgoFeatureSupportData(N){return{igo:!0,shadowPlay:this.isShadowPlayEnabled(),webcam:this.isWebcamEnabled(),nvcamera:this.isNvcameraEnabled(),ppe:this.isPpeEnabled(),graphics:this.isGraphicsEnabled(),clientInput:!0,hotkey:!0,oscDisplay:!0,os:!0,oscNotification:!0,cache:!0,gallery:this.isGalleryEnabled(),sdkGallery:this.isSdkGalleryEnabled(),telemetryHelper:!0,meme:this.isMemeEnabled(),trim:this.isTrimEnabled(),gfnInfo:!0,osd:!0,gfnMicrophone:this.evaluateGfnMicEnablement(N),statistics:this.isStatisticsEnabled(),gamepadOrientedMode:this.isGamepadOrientedMode(),enableInputControl:this.isInputControlEnabled(),controlUGC:this.isControlUGCEnabled(),connectionStatus:this.isConnectionStatusEnabled(),isKBMGameSupported:this.isKeyboardMouseGamesAllowed(),nvKeyboardSupported:this.isNvKeyboardSupported(),clientIME:this.isClientImeEnabled(),useGamepadLSControl:this.isGamepadLSControlUsed(),shortcutControls:this.areShortcutsOveridden(),title:this.showTitle(),feedback:this.showFeedbackSetting(),links:this.showLinks(),gameplay:this.isGameplaySupported(),virtualKeyboardOnMobile:this.isVirtualKeyboardOnMobileSupported(),perfMon:this.isPerfOverlayEnabled(),reflexAnalyzer:this.isReflexAnalyzerEnabled(),inStreamPaste:this.needsDialogForInStreamPaste()}}initFeatureControl(){this.featureControl$="GFN"===this.igoConfig.branding&&this.igoConfig.IGOFeatureEnabled?this.systemInfoService.getSystemInfo([_.Lu.DeviceType]).pipe((0,v.s)(1),(0,S.ZZ)(N=>(this.cachedDeviceType=N.DeviceType,this.isGuestAppFlow&&(this.guestModeConfig=this.guestModeHelperService.getGuestModeConfig()),(0,l.of)(this.setIgoFeatureSupportData(N.DeviceType))))):(0,l.of)(r.zr)}evaluateGfnMicEnablement(N){return N!==_.Y0.TV&&!this.isGfnMobileMode()&&(this.guestModeConfig?.igoSettings?.isMicFeatureEnabled??!0)}init(){let N;return this.bridgeService.executeCommand(P.Ts.Share.Shareserver.GetInitData).pipe((0,S.ZZ)(L=>(N=L,N&&(this.isCaptureSupported=N.captureSupported),this.injector.get(n.hj,Promise.resolve(null)))),(0,S.ZZ)(L=>this.featureControl$),(0,S.ZZ)(L=>L.igo?(this.igoSupportData={initData:N,...L},(0,l.of)(this.igoSupportData)):(this.logger.info("Disabling IGO due to feature toggle"),this.igoSupportData=r.w8,this.bridgeService.executeCommand(P.Ts.Share.Shareserver.SetCaptureSupported,{supported:!1}).pipe((0,y.u)(this.igoSupportData)))),(0,f.W)(L=>(this.logger.info("Error occured while fetching GetInitDataReturn : ",L),(0,l.of)(this.igoSupportData))))}isShadowPlayEnabled(){return!this.isBrowserPlatform&&this.isCaptureSupported}isIgoWithoutBrowserPlatform(){return!this.isBrowserPlatform}isWebcamEnabled(){return!this.isGFEMode()&&!this.isBrowserPlatform}isNvcameraEnabled(){return this.igoConfig?.NvCameraFeaturesEnabled}isPpeEnabled(){return"GFN"!==this.igoConfig.branding}isSummaryDialogEnabled(){return!0}isGraphicsEnabled(){return!1}isGalleryEnabled(){return!this.isBrowserPlatform&&this.isCaptureSupported}isSdkGalleryEnabled(){return!this.isBrowserPlatform}isMemeEnabled(){return!this.isBrowserPlatform}isTrimEnabled(){return!this.isBrowserPlatform}isMicrophoneEnabled(){return"GFN"!==this.igoConfig.branding}isIssoPerfOptimizationEnabled(){return"GFN"===this.igoConfig.branding&&!!this.appConfig?.igo?.isso?.perfOptimizationEnabled}showPerfLogging(){return"GFN"!==this.igoConfig.branding}isNvApp(){return"GFN"!==this.igoConfig.branding}isGfnMicrophoneEnabled(){return"GFN"===this.igoConfig.branding?this.systemInfoService.getSystemInfo([_.Lu.DeviceType]).pipe((0,v.s)(1),(0,O.T)(N=>this.evaluateGfnMicEnablement(N.DeviceType))):(0,l.of)(!1)}isStatisticsEnabled(){return!("GFE"===this.igoConfig.branding||this.isGuestAppFlow&&!this.guestModeConfig?.igoSettings?.isInGameStatisticsEnabled)}isGamepadOrientedMode(){return this.appConfig?.igo?.enableGamepadMode&&"GFN"===this.igoConfig.branding}isISSOCompactMode(){return this.appConfig?.igo?.isso?.compactOnly&&"GFN"===this.igoConfig.branding}isLongPressShortcutEnabled(){return"GFN"===this.igoConfig.branding&&this.appConfig?.igo?.longPressShortcutEnabled&&!this.streamerHelperService.isOscEnabled()}issoLayoutPref(){return this.appConfig?.igo?.isso?.layoutPreference||i.C$e.Default}applyClassOnBody(N){let L;if(!document)return void this.logger.error("Can not add the class, document is undefined");const E=document.getElementsByTagName("body")[0];N===r.mU.NvAppIGO?L="nvapp-igo-view":N===r.mU.LargerFontIGO&&(L="larger-font-igo-view"),E.classList.add(L)}enlargeIGOTextFont(){return this.igoConfig.SmallScreenEnlargeFont}isTVMode(){return this.tvMode&&"GFN"===this.igoConfig.branding}isInputControlEnabled(){return this.inputControlEnabled&&"GFN"===this.igoConfig.branding}isSystemEnabled(){return(0,d.zV)([this.systemInfoService.getDeviceOSType().pipe((0,v.s)(1)),this.systemInfoService.getSystemInfo([_.Lu.DeviceType]).pipe((0,v.s)(1))]).pipe((0,O.T)(([N,L])=>{const E=N===_.t_.Windows,R=N===_.t_.MacOS;return this.isBrowserPlatform?E||N===_.t_.ChromeOS||R||N===_.t_.XBox||L[_.Lu.DeviceType]===_.Y0.HMD&&N===_.t_.Android:E||R||N===_.t_.SteamOS}))}isControlUGCEnabled(){return!this.isBrowserPlatform&&"GFN"===this.igoConfig.branding}isConnectionStatusEnabled(){return"GFN"===this.igoConfig.branding}isKeyboardMouseGamesAllowed(){return"GFN"!==this.igoConfig.branding||this.appConfig?.client?.supportsKeyboardMouseGames}isGfnBrowserDevMode(){return"GFN"===this.igoConfig.branding&&this.isBrowserPlatform&&this.browserSupportService.isStagingOrDevDomain()}isNvKeyboardSupported(){return this.nvKeyboardSupported&&"GFN"===this.igoConfig.branding}isClientImeEnabled(){return this.clientImeEnabled&&"GFN"===this.igoConfig.branding}isGamepadLSControlUsed(){return this.useGamepadLSControl&&"GFN"===this.igoConfig.branding}usesAlternateHotkeyForIGO(){return this.useAlternateHotkeyForIGO&&"GFN"===this.igoConfig.branding}isGfnMobileMode(){return this.isMobileMode&&"GFN"===this.igoConfig.branding}areShortcutsOveridden(){return!!this.isGuestAppFlow&&!!this.guestModeConfig?.igoSettings?.shortcutControls}getHotkeyShortcutsOverrides(){return this.guestModeConfig?.igoSettings?.shortcutControls}showTitle(){return!this.isGuestAppFlow}showFeedbackSetting(){return!this.isGuestAppFlow}showLinks(){return!this.isGuestAppFlow}isGameplaySupported(){return!this.isGuestAppFlow}showTimeLeftMessage(){return!this.isGuestAppFlow}getOverriddenMicPosition(){return!1===this.guestModeConfig?.igoSettings?.isMicFeatureEnabled?a.VH.none:this.guestModeConfig?.igoSettings?.micIconPosition??null}getOverriddenNetworkStatusIconPosition(){return this.guestModeConfig?.igoSettings?.networkStatusIndicatorPosition??null}getOverriddenStatisticsPosition(){return this.guestModeConfig?.igoSettings?.statisticsPosition??null}getIgoOverrideSettings(){return this.isGuestAppFlow?this.guestModeConfig?.igoSettings:null}getForceTouchModeSettings(){return this.projectInterfaceService.getForceTouchMode()}isVirtualControllerSupported(){let N;return this.isGuestAppFlowWrapper()?(N=!1,N=this.isVirtualControllerEnabled&&(this.guestModeConfig?.igoSettings?.virtualGamepad??N)):N=this.isVirtualControllerEnabled,N}isVirtualKeyboardOnMobileSupported(){let N=!0;return this.isGuestAppFlowWrapper()&&(N=this.guestModeConfig?.igoSettings?.virtualKeyboard??N),N}hideExitFullScreenOption(){return this.isGuestAppFlowWrapper()||this.appConfig?.igo?.hideExitFullScreenOption}shouldHideKeyboardShortcuts(){return this.igoConfig?.HideKeyboardShortcuts}isGuestAppFlowWrapper(){return this.guestModeHelperService?.isGuestAppFlow()}isGFEMode(){return"GFN"!==this.igoConfig.branding}isRunTimeMaxBitRateConfigSupported(){return _.zk.isNativeLikePlatform()||this.isBrowserPlatform&&!this.isMobileMode}isRunTimeVSYNCConfigSupported(){return!_.zk.isBrowserPlatform()}isRunTimeAdjustPoorNetworkToggleSupported(){return _.zk.isNativeLikePlatform()||this.isBrowserPlatform&&!this.isMobileMode}isPerfOverlayEnabled(){return this.isGFEMode()}isNgxAvailable(){return!1}isRectOptimizationEnabled(){return!0}isReflexAnalyzerEnabled(){return this.isPerfOverlayEnabled()}needsDialogForInStreamPaste(){return"GFN"===this.igoConfig.branding&&!!this.appConfig?.client?.clipboardConfig?.needsDialogForInStreamPaste}shouldBlurInputOnSoftKeyboardDismissal(){return this.blurInputOnSoftKeyboardDismissal}showOnscreenKeyboardUsageNotification(){return this.displayOnscreenKeyboardUsage}isGAssistFeatureAvailable(){return this.isNvApp()}isASRFeatureAvailable(){return this.isNvApp()}isGameAssistantAvailable(){return this.isNvApp()}shouldHandleSystemKeyboardVisibility(){return this.handleSystemKeyboardVisibility}shouldDisableGamepadHintsOnSystemKBOpened(){return this.disableGamepadHintsOnSystemKBOpened}hideKeyboardOptionInputControlFlag(){return this.hideKeyboardOptionInputControlComponent}static{this.\u0275fac=function(L){return new(L||V)(c.KVO(_.J6),c.KVO(c.zZn),c.KVO(_.NZ),c.KVO(m.k),c.KVO(_.zW),c.KVO(M.vT),c.KVO(D.RF),c.KVO(I.qQ))}}static{this.\u0275prov=c.jDH({token:V,factory:V.\u0275fac,providedIn:"root"})}}return V})()},48700:(Bt,z,s)=>{"use strict";s.d(z,{A:()=>m});var n=s(20924),l=s(14714),d=s(8619),v=s(91384),S=s(75707),y=s(65726),f=s(83915),O=s(80583),P=s(43848),_=s(45109),i=s(58527),r=s(99469),a=s(57412),c=s(51830);let m=(()=>{class M{constructor(I,U,V,T){this.bridgeService=I,this.loggingService=U,this.lcarsService=V,this.shadowPlayService=T,this.initialized=!1,this.assistantResponse$=new O.B7,this.gameAssistantUnsupportedQuery$=new O.B7,this.logger=this.loggingService.getLogger("GameAssistantService")}initialize(){this.initialized||(this.registerGameStartedChromaInfo(),this.registerGameExitEvents(),this.registerGameAssistantResponse(),this.initialized=!0)}isInstalled(){return this.bridgeService.executeCommand(n.Ts.Nvapp.Rise.GameAssistSupported).pipe((0,l.W)(I=>(this.logger.error("GameAssistSupported error:",I),(0,P.of)({status:!1}))))}getIsSessionActive(){return this.isGameAssistReady}resetContext(){}sendRequest(I){return this.submitQuery(I.prompt)}listenToAssistantResponses(){return this.assistantResponse$.asObservable()}onQueryFailure(){this.assistantResponse$.next(_.sn),this.assistantResponse$.next(null)}getGameAssistantUnsupportedQueryEvent(){return this.gameAssistantUnsupportedQuery$.asObservable()}registerGameStartedChromaInfo(){this.lcarsService.getCurrentAppChromaInfo().pipe((0,d.p)(I=>!!I&&void 0!==I.pid&&I.nvidiaTech?.GAMEASSIST),(0,v.M)(I=>{this.currentGameInfo={name:I.profileName,pid:I.pid}}),(0,S.ZZ)(()=>this.loadGameAssistant())).subscribe()}registerGameExitEvents(){this.bridgeService.executeCommand(n.Ts.Share.Shareserver.RegisterGeneralNotifications).pipe((0,d.p)(I=>!!I?.gameExited),(0,S.ZZ)(I=>{let U=(0,P.of)(!0);return I.gameExited.exitAppPID===this.currentGameInfo?.pid&&(U=this.unloadGameAssistant()),U}),(0,v.M)(()=>{this.currentGameInfo=void 0})).subscribe()}registerGameAssistantResponse(){this.bridgeService.executeCommand(n.Ts.Nvapp.Rise.GameAssistQueryResponseNotfication).pipe((0,v.M)(I=>{this.onGameAssistantResponse(I)})).subscribe()}onGameAssistantResponse(I){switch(this.logger.info("onGameAssistantResponse:",I.responseType),I.responseType){case n.Or.Nvapp.Rise.ResponseType1.NvGameAssistApi_QueryResponse_ResponseChunk:case n.Or.Nvapp.Rise.ResponseType1.NvGameAssistApi_QueryResponse_CitationChunk:this.assistantResponse$.next(I.responseText);break;case n.Or.Nvapp.Rise.ResponseType1.NvGameAssistApi_QueryResponse_Sentinel:this.assistantResponse$.next(null);break;case n.Or.Nvapp.Rise.ResponseType1.NvGameAssistApi_QueryResponse_GameAssistReady:this.logger.info("Game assistant ready message recieved"),this.isGameAssistReady=!0;break;case n.Or.Nvapp.Rise.ResponseType1.NvGameAssistApi_QueryResponse_Fail:this.logger.info("Game Assistant returned failure for the query"),this.onQueryFailure();break;case n.Or.Nvapp.Rise.ResponseType1.NvGameAssistApi_QueryResponse_UnsupportedQuery:this.logger.info("Query not supported by Game Assistant"),this.gameAssistantUnsupportedQuery$.next()}}loadGameAssistant(){return this.logger.info("loadGameAssistant"),this.loadGAssistPlugin(!0).pipe((0,y.c)(_.Py),(0,S.ZZ)(()=>this.createSession(!0)))}unloadGameAssistant(){return this.logger.info("unloadGameAssistant"),this.isGameAssistReady=!1,this.createSession(!1).pipe((0,S.ZZ)(()=>this.loadGAssistPlugin(!1)))}loadGAssistPlugin(I){return this.logger.info("loadGAssistPlugin:",I),this.shadowPlayService.setGAssistGlobalToggle(I,!0)}createSession(I){this.logger.info("createSession:",I,this.currentGameInfo);const U={create:I,gameName:this.currentGameInfo.name,pid:this.currentGameInfo.pid};return this.bridgeService.executeCommand(n.Ts.Nvapp.Rise.GameAssistCreateSession,U).pipe((0,f.T)(V=>(V.status||this.logger.error("createSession failed:",U),V.status)),(0,l.W)(V=>(this.logger.error("createSession failed:",U,"error:",V),(0,P.of)(!1))))}submitQuery(I){return this.logger.info("submitQuery"),this.bridgeService.executeCommand(n.Ts.Nvapp.Rise.GameAssistSubmitQuery,{queryText:I}).pipe((0,f.T)(V=>(V.status||this.logger.error("submitQuery failed"),V.status)),(0,l.W)(V=>(this.logger.error("submitQuery failed:",V),(0,P.of)(!1))))}static{this.\u0275fac=function(U){return new(U||M)(i.KVO(r.NZ),i.KVO(r.J6),i.KVO(a.B),i.KVO(c.W1))}}static{this.\u0275prov=i.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})}}return M})()},32912:(Bt,z,s)=>{"use strict";s.d(z,{J:()=>se});var n=s(80583),l=s(26513),d=s(93181),v=s(43848),S=s(59859),y=s(16229),f=s(36466),O=s(83915),P=s(75707),_=s(67110),i=s(14714),r=s(72147),a=s(91384),c=s(8619),m=s(20924),g=function(Z){return Z.GRD="grd",Z.CRD="crd",Z.NVAPP="nvapp",Z}(g||{}),H=s(13973),J=s(45109),re=s(19724),ie=s(58527),ve=s(99469),ue=s(51830);let se=(()=>{class Z{constructor(Ce,Be,Xe){this.bridgeService=Ce,this.loggingService=Be,this.shadowPlayService=Xe,this.response=new n.B7,this.installStatus$=new l.t(null),this.downloadProgressUpdate$=new l.t(null),this.shouldFocusInput$=new n.B7,this.asrListening$=new l.t(!1),this.asrWaiting$=new l.t(!1),this.onHistoryChanges$=new n.B7,this.onApplicationLaunched$=new n.B7,this.chartMessage="",this.isRiseRegistered=!1,this.skipNextCompletion=!1,this.functionCallNotification$=new n.B7,this.gameEventNotification$=new n.B7,this.asrResponse$=new n.B7,this.asrActiveMicUpdates$=new n.B7,this.isGameRunning=!1,this.hasRiseRecievedGameInfo=!0,this.isChartRecieved=!1,this.isMicIconUsed=!1,this.shouldSkipSendingQueryToAssistant=!1,this.noOfASRQueryTimeouts=0,this.noOfQueryTimeouts=0,this.asrQueryTelemetry$=new n.B7,this.onQueryToBeHandledInUI$=new n.B7,this.chatBoxLaunchOnNextInit$=new n.B7,this.riseProgressUpdates=this.downloadProgressUpdate$?.asObservable(),this.chatHistory=[],this.history=[],this.logger=this.loggingService.getLogger("RiseService")}initialize(){this.logger.info("Initialize"),this.registerRiseProgressNotification(),this.registerGameNotifications(),this.initializeASR(),this.queryInstalledDDVersion(),this.initNvAppSettingsInfo(),this.registerRise(!1).subscribe()}register(Ce){this.logger.info("Register:",Ce,this.isRiseRegistered),Ce!==this.isRiseRegistered&&(Ce&&(this.isFirstQueryAfterRegister=!0),this.registerRise(Ce).subscribe(Be=>{this.logger.info("Registration Response: ",Be)},Be=>{this.logger.error("RISE Registration failed with error: ",Be),this.onRegisterError()}))}registerRise(Ce){return this.logger.info("registerRise:",Ce),Ce||this.clearChatHistory(),this.isRiseRegistered=Ce,this.bridgeService.executeCommand(m.Ts.Nvapp.Rise.RiseRegister,{enable:Ce})}queryInstalledDDVersion(){this.bridgeService.executeCommand(m.Ts.Share.Graphicssetting.GetGenericInfo).pipe((0,O.T)(Ce=>{this.installedDDVersion=Ce.DriverVersion})).subscribe()}getInstalledDDVersion(){return this.installedDDVersion}getIsRiseRegistered(){return this.isRiseRegistered}onDisableGAssist(){this.registerRise(!1).subscribe(),this.hasRiseRecievedGameInfo=!1}listenToRiseResponses(){return this.response.asObservable()}sendRequest(Ce){return Ce.startTime=Date.now(),Ce.isFirstQueryAfterRegister=this.isFirstQueryAfterRegister,this.setUpQueryTimeout(Ce),this.sendRiseRequest(Ce.prompt)}getNvAppSettingsString(){return this.getNvAppSettingsInfo().pipe((0,P.ZZ)(()=>{const Ce=[];return this.nvAppSettingsData[H.oT.BATTERY_BOOST].settingInfo?.isSupported&&Ce.push(this.queryAndUpdateBatteryBoostValue()),this.nvAppSettingsData[H.oT.WHISPER_MODE].settingInfo?.isSupported&&Ce.push(this.queryAndUpdateWhisperModeValue()),this.nvAppSettingsData[H.oT.OPTIMUS_MODE]?.bIsSupported&&Ce.push(this.queryAndUpdateOptimusModeValue()),(0,d.p)(Ce).pipe((0,_.U)({}))}),(0,O.T)(()=>JSON.stringify(this.nvAppSettingsQueryMetaData)),(0,i.W)(Ce=>(this.logger.error("getNvAppSettingsString failed: ",Ce),(0,v.of)(""))))}sendRiseRequest(Ce,Be=H.KL.NV_RISE_CONTENT_TYPE_TEXT){return this.logger.info("sendRiseRequest"),this.hasRiseRecievedGameInfo=!0,this.getNvAppSettingsString().pipe((0,P.ZZ)(Xe=>this.bridgeService.executeCommand(m.Ts.Nvapp.Rise.RiseRequestCompletion,{content:Ce,contentType:Be,nvAppSettings:Xe})),(0,O.T)(Xe=>(this.logger.info("RISE Request Response: ",Xe),Xe.status)),(0,i.W)(Xe=>(this.logger.error("RISE request failed with Error :",Xe),(0,v.of)(!1))))}setUpQueryTimeout(Ce){this.resetQueryTimeout(),this.queryTimeout$=setTimeout(()=>{this.logger.error("No response from Rise, timing out"),this.noOfQueryTimeouts++,Ce.isTimedOutQuery=!0,this.onQueryFailure()},J.wq)}resetQueryTimeout(){this.queryTimeout$&&clearTimeout(this.queryTimeout$),this.queryTimeout$=void 0}onRiseResponse(Ce){this.logger.info("onRiseResponse"),this.isFirstQueryAfterRegister=!1,this.resetQueryTimeout(),this.response?.next(Ce),this.shouldFocusInput$.next()}onDownloadRequiredStatus(){this.installStatus$?.next(H.to)}onInstallStatus(){this.installStatus$?.next(H.om)}onReadyStatus(){this.installStatus$?.next(H.Uo)}onRegisterError(){this.installStatus$?.next(H.fY)}onRiseDownloadProgressUpdate(Ce){this.downloadProgressUpdate$?.next(Ce)}getRiseInstallationStatus(){return this.installStatus$?.asObservable()}getShouldFocusInput(){return this.shouldFocusInput$.asObservable()}shouldFocusInput(){this.shouldFocusInput$.next()}getGameLaunchedUpdates(){return this.gameEventNotification$.asObservable()}isGameRunningCurrently(){return this.isGameRunning}isDummyPromptNeededToUpdateGameInfo(){return!this.hasRiseRecievedGameInfo}getLoadingText(){return this.isFirstQueryAfterRegister?"gAssist.initializingGAssist":"gAssist.loading"}getGameInfoDummyPrompt(){return Number(this.installedDDVersion)>=H.NU?H.VI:H.E_}registerGameNotifications(){let Ce;this.shadowPlayService.registerAppStartedEvent().pipe((0,r.n)(Be=>{if(Ce=Be,!Be.appStarted?.DRSAppName)return(0,v.of)(!1);const Xe={bLaunched:!0,gameName:Be.appStarted.profileName,exePath:"",pid:Be.appStarted.pid};return this.hasRiseRecievedGameInfo=!1,this.bridgeService.executeCommand(m.Ts.Nvapp.Rise.RiseGameNotification,Xe)}),(0,a.M)(()=>{Ce.appStarted?.DRSAppName&&(this.isGameRunning=!0,this.gameEventNotification$.next(),this.asrQueryTelemetryData.cmsId=Ce.appStarted.cmsId.toString(),this.asrQueryTelemetryData.drsName=Ce.appStarted.DRSAppName,this.asrQueryTelemetryData.drsProfileName=Ce.appStarted.profileName)}),(0,i.W)(Be=>(this.logger.info("Rise game notification call failed:",Be),(0,v.of)(!1)))).subscribe(),this.bridgeService.executeCommand(m.Ts.Share.Shareserver.RegisterGeneralNotifications).pipe((0,c.p)(Be=>!!Be?.gameExited),(0,r.n)(Be=>(this.hasRiseRecievedGameInfo=!1,this.bridgeService.executeCommand(m.Ts.Nvapp.Rise.RiseGameNotification,{bLaunched:!1,gameName:"",exePath:"",pid:0}))),(0,a.M)(()=>{this.isGameRunning=!1,this.gameEventNotification$.next(),this.asrQueryTelemetryData.cmsId="0",this.asrQueryTelemetryData.drsName="Desktop",this.asrQueryTelemetryData.drsProfileName="Desktop"}),(0,i.W)(Be=>(this.logger.info("Rise game notification call failed:",Be),(0,v.of)(!1)))).subscribe()}setChatHistory(Ce){this.chatHistory=Ce}setHistory(Ce,Be=!1){this.history=Ce,Be&&this.onHistoryChanges$.next()}getChatHistory(){return this.chatHistory}getHistory(){return this.history}getHistoryChangeUpdates(){return this.onHistoryChanges$.asObservable()}listenToFunctionCalls(){return this.functionCallNotification$.asObservable()}handleFunctionCallResponse(Ce,Be){this.logger.info("handleFunctionCallResponse:",Ce),Be&&(this.onRiseResponse(Ce),this.onRiseResponse(null)),this.sendRiseRequest(Ce,H.KL.NV_RISE_CONTENT_TYPE_CUSTOM_BEHAVIOR_RESULT).subscribe()}toggleASR(Ce,Be=void 0){let Xe;Xe=void 0===Be?!this.getASRListeningStatus():Be,Xe?(this.startASR(),this.asrQueryTelemetryData.triggerMode=Ce):this.stopASR(),(Ce=re.gv.UsingUI)&&(this.isMicIconUsed=!0)}getASRListeningStateUpdates(){return this.asrListening$.asObservable()}getASRWaitingStateUpdates(){return this.asrWaiting$.asObservable()}getASRTelemetryRequests(){return this.asrQueryTelemetry$.asObservable()}getDriverUpdateRecommendation(){return this.logger.info("getDriverUpdateRecommendation"),this.bridgeService.executeCommand(m.Ts.Nvapp.Driverupdaterecommendation.GetDriverUpdateRecommendation).pipe((0,O.T)(Ce=>(this.logger.info("getDriverUpdateRecommendation response",Ce),Ce.result)),(0,i.W)(Ce=>(this.logger.error("getDriverUpdateRecommendation error:",Ce),(0,S.$)(Ce))))}startDriverDownload(Ce){return this.logger.info("startDriverDownload, driverInfo",Ce),this.bridgeService.executeCommand(m.Ts.Common.Downloader.StartDownloadAndPostProcess,{version:Ce.version,url:Ce.downloadURL,downloadTypeInfo:{componentName:Ce.driverType===m.Or.Nvapp.Driverupdaterecommendation.DriverTypeEnum.GameReadyDriver?g.GRD:g.CRD,updateChannel:m.Or.Common.Downloader.UpdateChannel.Official,updateType:m.Or.Common.Downloader.UpdateType.Full,invokeType:m.Or.Common.Downloader.InvokeType.Manual}}).pipe((0,a.M)(me=>{this.logger.info("startDriverDownload response:",me)}),(0,i.W)(me=>(this.logger.error("startDriverDownload error:",me),(0,S.$)(me))))}getApplications(){return this.logger.info("getApplications"),this.bridgeService.executeCommand(m.Ts.Nvapp.Localgames.GetApplications).pipe((0,O.T)(Ce=>(this.logger.info("GetApplications response:",Ce),Ce)),(0,i.W)(Ce=>(this.logger.error("GetApplications error:",Ce),(0,S.$)(Ce))))}launchApplication(Ce){return this.logger.info("launchApplication"),this.bridgeService.executeCommand(m.Ts.Nvapp.Localgames.LaunchApplication,{localId:Ce}).pipe((0,a.M)(Xe=>{this.onApplicationLaunched$.next(),this.logger.info("Launchapplication successfull:",Xe)}),(0,i.W)(Xe=>(this.logger.error("Launchapplication error:",Xe),(0,S.$)(Xe))))}getNvAppSettingsInfo(){return this.nvAppSettingsData?(0,v.of)(this.nvAppSettingsData):this.queryNvAppSettingsInfo()}queryAndUpdateBatteryBoostValue(){return this.logger.info("queryAndUpdateBatteryBoostValue"),this.bridgeService.executeCommand(m.Ts.Nvapp.Nvcplplugin.GetProfileSettingValue,{ProfileName:H.W5,ProfileSettingEnum:this.nvAppSettingsData[H.oT.BATTERY_BOOST].settingInfo.enumId,ApplicationId:0,CmsId:0}).pipe((0,O.T)(Be=>(this.logger.info("queryAndUpdateBatteryBoostValue successfull:",Be),this.nvAppSettingsData[H.oT.BATTERY_BOOST].featureValue=JSON.parse(Be.SettingValue.JsonStringValue),this.nvAppSettingsQueryMetaData.battery_boost.mode=this.nvAppSettingsData[H.oT.BATTERY_BOOST].featureValue.enabled?H.Xb.ON:H.Xb.OFF,this.nvAppSettingsData[H.oT.BATTERY_BOOST].featureValue)),(0,i.W)(Be=>(this.logger.error("queryAndUpdateBatteryBoostValue error:",Be),this.nvAppSettingsQueryMetaData.battery_boost.mode=H.Xb.UNSUPPORTED,(0,S.$)(Be))))}setBatteryBoostValue(Ce){this.logger.info("setBatteryBoostValue");const Be={ProfileName:H.W5,ProfileSettingEnum:this.nvAppSettingsData[H.oT.BATTERY_BOOST].settingInfo.enumId,ApplicationId:0,CmsId:0,SettingValue:{SettingType:3,JsonStringValue:JSON.stringify(Ce)}};return this.bridgeService.executeCommand(m.Ts.Nvapp.Nvcplplugin.SetProfileSettingValue,Be).pipe((0,O.T)(Xe=>{this.logger.info("setBatteryBoostValue successfull:",Xe)}),(0,i.W)(Xe=>(this.logger.error("setBatteryBoostValue error:",Xe),(0,S.$)(Xe))))}queryAndUpdateWhisperModeValue(){return this.logger.info("queryAndUpdateWhisperModeValue"),this.bridgeService.executeCommand(m.Ts.Nvapp.Nvcplplugin.GetProfileSettingValue,{ProfileName:H.W5,ProfileSettingEnum:this.nvAppSettingsData[H.oT.WHISPER_MODE].settingInfo.enumId,ApplicationId:0,CmsId:0}).pipe((0,O.T)(Be=>{switch(this.logger.info("queryAndUpdateWhisperModeValue successfull:",Be),this.nvAppSettingsData[H.oT.WHISPER_MODE].featureValue=JSON.parse(Be.SettingValue.JsonStringValue),this.nvAppSettingsQueryMetaData.whisper_mode.mode=this.nvAppSettingsData[H.oT.WHISPER_MODE].featureValue.enabled?H.Xb.ON:H.Xb.OFF,this.nvAppSettingsData[H.oT.WHISPER_MODE].featureValue.fanVolume){case H.yE.QUIETER:this.nvAppSettingsQueryMetaData.whisper_mode.fan_volume=H.B8.QUIETER;break;case H.yE.QUIET:this.nvAppSettingsQueryMetaData.whisper_mode.fan_volume=H.B8.QUIET;break;case H.yE.BALANCED:this.nvAppSettingsQueryMetaData.whisper_mode.fan_volume=H.B8.BALANCED}return this.nvAppSettingsData[H.oT.WHISPER_MODE].featureValue}),(0,i.W)(Be=>(this.logger.error("queryAndUpdateWhisperModeValue error:",Be),this.nvAppSettingsQueryMetaData.whisper_mode.mode=H.Xb.UNSUPPORTED,(0,S.$)(Be))))}setWhisperModeValue(Ce){this.logger.info("setWhisperModeValue");const Be={ProfileName:H.W5,ProfileSettingEnum:this.nvAppSettingsData[H.oT.WHISPER_MODE].settingInfo.enumId,ApplicationId:0,CmsId:0,SettingValue:{SettingType:3,JsonStringValue:JSON.stringify(Ce)}};return this.bridgeService.executeCommand(m.Ts.Nvapp.Nvcplplugin.SetProfileSettingValue,Be).pipe((0,O.T)(Xe=>{this.logger.info("setWhisperModeValue successfull:",Xe)}),(0,i.W)(Xe=>(this.logger.error("setWhisperModeValue error:",Xe),(0,S.$)(Xe))))}queryAndUpdateOptimusModeValue(){return this.logger.info("queryAndUpdateOptimusModeValue"),this.getDdsState().pipe((0,O.T)(Ce=>(this.logger.info("queryAndUpdateOptimusModeValue successfull:",Ce),this.nvAppSettingsData[H.oT.OPTIMUS_MODE]=Ce,this.nvAppSettingsQueryMetaData.optimus_mode.mode=Ce.bIsSupported?Ce.bIsAutomatic?H.Jg.AUTO:Ce.MuxState===H.iZ.State_DGPU?H.Jg.NVIDIA_GPU:H.Jg.OPTIMUS:H.Jg.UNSUPPORTED,Ce)),(0,i.W)(Ce=>(this.logger.error("queryAndUpdateOptimusModeValue error:",Ce),this.nvAppSettingsQueryMetaData.optimus_mode.mode=H.Jg.UNSUPPORTED,(0,S.$)(Ce))))}getShouldSkipSendingQueryToAssistant(){return this.shouldSkipSendingQueryToAssistant}onQueryToBeHandledInUI(Ce){this.onQueryToBeHandledInUI$.next(Ce)}getChatBoxLaunchOnNextInitUpdates(){return this.chatBoxLaunchOnNextInit$.asObservable()}handleSetOptiMusModeFunctionCall(Ce,Be){return this.logger.info("handleSetOptiMusModeFunctionCall, shouldAskConfirmation:",Be),Be&&this.chatBoxLaunchOnNextInit$.next(!0),this.setOptimusModeValue(Ce)}analyzeUserConfirmationResponse(Ce){return!!Ce&&/\b(yes|ys|y|ye|yess|yep|yup)\b/i.test(Ce.trim())}setOptimusModeValue(Ce){return this.logger.info("setOptimusModeValue"),this.bridgeService.executeCommand(m.Ts.Nvapp.Nvcpldisplayplugin.SetDDSState,Ce).pipe((0,O.T)(Be=>(this.logger.info("setOptimusModeValue successfull:",Be),!0)),(0,i.W)(Be=>(this.logger.error("setOptimusModeValue error:",Be),(0,S.$)(Be))))}isASRSupported(){return this.bridgeService.executeCommand(m.Ts.Nvapp.Rise.VqVoiceQuerySupported).pipe((0,i.W)(Ce=>(this.logger.error("VqVoiceQuerySupported error:",Ce),(0,v.of)({status:!1}))))}isRiseSupported(){return this.bridgeService.executeCommand(m.Ts.Nvapp.Rise.RiseSupported).pipe((0,i.W)(Ce=>(this.logger.error("RiseSupported error:",Ce),(0,v.of)({status:!1}))))}setUpASRSession(Ce){return this.logger.info("setUpASRSession:",Ce),this.bridgeService.executeCommand(m.Ts.Nvapp.Rise.VqResisterVoiceQuery,{create:Ce}).pipe((0,O.T)(Xe=>(this.logger.info("VqResisterVoiceQuery:",Xe),Xe.status)))}listenASRResponses(){return this.asrResponse$.asObservable()}shutDownASR(){this.getASRListeningStatus()&&(this.asrListening$.next(!1),this.setVoiceQuery(!1)),this.asrWaiting$.next(!1),this.noOfASRQueryTimeouts=0,this.noOfQueryTimeouts=0,this.isMicIconUsed=!1,this.isChartRecieved=!1}getAsrActiveMicUpdates(){return this.asrActiveMicUpdates$.asObservable()}getApplicationLaunchedEvents(){return this.onApplicationLaunched$.asObservable()}onQueryFailure(){this.response?.next(J.sn),this.response?.next(null)}fetchShadowPlayMicInfo(){this.shadowPlayService.getMicrophoneData().pipe((0,a.M)(Ce=>{Ce.index<0?(this.logger.info("Mic not available:",Ce),this.activeMicID=void 0):this.activeMicID=Ce.micSpecs[Ce.index]?.id,this.asrActiveMicUpdates$.next(this.activeMicID),this.logger.info("active mic:",Ce.micSpecs[Ce.index]?.name)})).subscribe()}getMicInfo(){this.fetchShadowPlayMicInfo(),(0,y.h)(this.shadowPlayService.getMICDeviceState(),this.shadowPlayService.getMicSelectionChanges()).pipe((0,a.M)(()=>this.fetchShadowPlayMicInfo())).subscribe()}initializeASR(){this.isASRSupported().pipe((0,O.T)(Ce=>Ce.status),(0,c.p)(Ce=>Ce),(0,a.M)(Ce=>{this.logger.info("isASRSupported result:",Ce),this.registerASRNotifications(),this.getMicInfo()})).subscribe(),this.asrQueryTelemetryData={cmsId:"0",drsName:"Desktop",drsProfileName:"Desktop",triggerMode:re.gv.UsingHotkey,chatboxMode:re.xV.Interactive,responseCode:re.pn.Timeout,responseTime:0}}getASRTimeOutCounter(){return this.noOfASRQueryTimeouts}getQueryTimeOutCounter(){return this.noOfQueryTimeouts}getIsMicIconUsed(){return this.isMicIconUsed}getIsChartRecieved(){return this.isChartRecieved}triggerASRQueryTelemetryEvent(){this.asrQueryTelemetry$.next(this.asrQueryTelemetryData)}processResponse(Ce){return Ce.replace(/[\[(][^\])]*[\])]?|\s*[\[(][^\])]*$/g,"").replace(/\s+/g," ").trim()}onASRResponse(Ce){const Be=this.asrWaiting$.getValue();if(this.logger.info("onASRResponse:",Be),!Be)return void this.resetASRWaitTimeout();const Xe=this.processResponse(Ce);this.asrWaiting$.next(!1),this.resetASRWaitTimeout(),this.asrQueryTelemetryData.responseTime=this.asrQueryTelemetryData.responseTime?Date.now()-this.asrQueryTelemetryData.responseTime:0,Xe?(this.asrQueryTelemetryData.responseCode=re.pn.Success,this.asrResponse$.next(Xe)):this.asrQueryTelemetryData.responseCode=re.pn.Empty,this.triggerASRQueryTelemetryEvent()}registerASRNotifications(){this.bridgeService.executeCommand(m.Ts.Nvapp.Rise.VqVoiceQueryResultNotfication).subscribe(Ce=>{this.onASRResponse(Ce.queryText)})}setVoiceQuery(Ce){this.bridgeService.executeCommand(m.Ts.Nvapp.Rise.VqSetVoiceQuery,{vqMode:Ce?m.Or.Nvapp.Rise.VqMode.NvVqApi_VoiceQueryMode_Start:m.Or.Nvapp.Rise.VqMode.NvVqApi_VoiceQueryMode_Stop,micId:this.activeMicID,voiceLangId:"",textLangId:""}).pipe((0,a.M)(Xe=>{this.logger.info("setVoiceQuery:",Xe)}),(0,i.W)(Xe=>(this.logger.error("setVoiceQuery error:",Xe),this.asrQueryTelemetryData.responseCode=re.pn.Error,this.asrQueryTelemetryData.responseTime=0,this.triggerASRQueryTelemetryEvent(),(0,v.of)()))).subscribe()}startASR(){this.asrListening$.getValue()||this.asrWaiting$.getValue()?this.logger.info("Ignoring ASR start:",this.asrListening$,this.asrWaiting$):(this.setVoiceQuery(!0),this.asrListening$.next(!0))}resetASRWaitTimeout(){this.asrResponseWaitTimeout$&&clearTimeout(this.asrResponseWaitTimeout$),this.asrResponseWaitTimeout$=void 0}setUpASRWaitTimeout(){this.resetASRWaitTimeout(),this.asrQueryTelemetryData.responseTime=Date.now(),this.asrResponseWaitTimeout$=setTimeout(()=>{this.logger.error("No response from ASR, timing out"),this.asrWaiting$.next(!1),this.noOfASRQueryTimeouts++,this.asrQueryTelemetryData.responseCode=re.pn.Timeout,this.asrQueryTelemetryData.responseTime=this.asrQueryTelemetryData.responseTime?Date.now()-this.asrQueryTelemetryData.responseTime:0,this.triggerASRQueryTelemetryEvent()},J.i$)}stopASR(){this.setVoiceQuery(!1),this.asrWaiting$.next(!0),this.asrListening$.next(!1),this.setUpASRWaitTimeout()}getASRListeningStatus(){return this.asrListening$.getValue()}clearChatHistory(){this.setChatHistory([]),this.setHistory([],!0)}registerRiseProgressNotification(){this.logger.info("RISE Subscription"),this.bridgeService?.executeCommand(m.Ts.Nvapp.Rise.RiseUpdatesNotifications)?.pipe((0,a.M)(Ce=>{if(Ce?.resultTokens)if(Ce?.contentType===H.cv.NV_RISE_CONTENT_TYPE_GRAPH){if(void 0!==Ce?.completed&&!0===Ce?.completed){const Be=this.chartMessage;return this.chartMessage="",Be}this.chartMessage=this.chartMessage.concat(Ce.resultTokens),this.isChartRecieved=!0}else if(Ce?.contentType===H.cv.NV_RISE_CONTENT_TYPE_TEXT){if(void 0!==Ce?.completed&&!0===Ce.completed&&""!==this.chartMessage)return this.chartMessage;this.onRiseResponse(Ce.resultTokens)}else if(Ce?.contentType===H.cv.NV_RISE_CONTENT_TYPE_DOWNLOAD_REQUEST)this.onDownloadRequiredStatus();else if(Ce?.contentType===H.cv.NV_RISE_CONTENT_TYPE_INSTALLING)this.onInstallStatus();else if(Ce?.contentType===H.cv.NV_RISE_CONTENT_TYPE_PROGRESS_UPDATE)this.onRiseDownloadProgressUpdate(Ce.resultTokens);else{if(Ce?.contentType===H.cv.NV_RISE_CONTENT_TYPE_READY)return void this.onReadyStatus();if(Ce?.contentType===H.cv.NV_RISE_CONTENT_TYPE_CUSTOM_BEHAVIOR)return this.functionCallNotification$.next(Ce),void(this.skipNextCompletion=!0);this.onRiseResponse(null)}else{if(Ce?.contentType===H.cv.NV_RISE_CONTENT_TYPE_GRAPH&&void 0!==Ce?.completed&&!0===Ce?.completed){const Be=this.chartMessage;this.chartMessage="",this.onRiseResponse(Be)}else if(Ce?.contentType===H.cv.NV_RISE_CONTENT_TYPE_DOWNLOAD_REQUEST)this.onDownloadRequiredStatus();else if(Ce?.contentType===H.cv.NV_RISE_CONTENT_TYPE_INSTALLING)this.onInstallStatus();else if(Ce?.contentType===H.cv.NV_RISE_CONTENT_TYPE_PROGRESS_UPDATE)this.onRiseDownloadProgressUpdate(Ce.resultTokens);else{if(Ce?.contentType===H.cv.NV_RISE_CONTENT_TYPE_READY)return void this.onReadyStatus();if(Ce?.contentType===H.cv.NV_RISE_CONTENT_TYPE_CUSTOM_BEHAVIOR)return void this.functionCallNotification$.next(Ce)}if(this.skipNextCompletion)return void(this.skipNextCompletion=!1);this.onRiseResponse(null)}}))?.subscribe(f.l,Ce=>{this.logger.error("Failed to register RiseProgressNotificationsReturn with Error :",Ce)})}initNvAppSettingsInfo(){this.queryNvAppSettingsInfo().subscribe()}getDdsState(){return this.bridgeService.executeCommand(m.Ts.Nvapp.Nvcpldisplayplugin.GetDDSState)}queryNvAppSettingsInfo(){return this.logger.info("queryNvAppSettingsInfo"),(0,d.p)([this.bridgeService.executeCommand(m.Ts.Nvapp.Nvcplplugin.GetProfileSettingsInfo),this.getDdsState()]).pipe((0,O.T)(Ce=>{const Be=Ce[0],Xe=Ce[1];return this.nvAppSettingsData={},this.nvAppSettingsData[H.oT.BATTERY_BOOST]={},this.nvAppSettingsData[H.oT.BATTERY_BOOST].settingInfo=Be?Be[H.oT.BATTERY_BOOST]?.SettingInfo:void 0,this.nvAppSettingsData[H.oT.WHISPER_MODE]={},this.nvAppSettingsData[H.oT.WHISPER_MODE].settingInfo=Be?Be[H.oT.WHISPER_MODE]?.SettingInfo:void 0,this.nvAppSettingsData[H.oT.OPTIMUS_MODE]=Xe,this.nvAppSettingsQueryMetaData={battery_boost:{mode:this.nvAppSettingsData[H.oT.BATTERY_BOOST].settingInfo?.isSupported?H.Xb.OFF:H.Xb.UNSUPPORTED},whisper_mode:{mode:this.nvAppSettingsData[H.oT.WHISPER_MODE].settingInfo?.isSupported?H.Xb.OFF:H.Xb.UNSUPPORTED},optimus_mode:{mode:this.nvAppSettingsData[H.oT.OPTIMUS_MODE]?.bIsSupported?H.Jg.AUTO:H.Jg.UNSUPPORTED}},this.logger.info("nvAppSettingsData:",this.nvAppSettingsData),this.nvAppSettingsData}))}OnDestroy(){}static{this.\u0275fac=function(Be){return new(Be||Z)(ie.KVO(ve.NZ),ie.KVO(ve.J6),ie.KVO(ue.W1))}}static{this.\u0275prov=ie.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"})}}return Z})()},8260:(Bt,z,s)=>{"use strict";s.d(z,{AF:()=>He,Pe:()=>Xe});var n=s(26513),l=s(80583),d=s(43848),v=s(35146),S=s(17053),y=s(31315),f=s(19392),O=s(79539),P=s(99047),_=s(8619),i=s(75707),r=s(83915),a=s(91384),c=s(10174),m=s(14714),M=s(25577),D=s(20924),I=s(45152),U=s(23860),V=s(53914),T=s(51830),N=s(58527),L=s(99469),E=s(75042),g=s(69416),R=s(83934),B=s(11728),X=s(10279),H=s(27211),J=s(96542),re=s(24964),ie=s(61142),ve=s(59002),ue=s(2688),se=s(72582),Xe=function(Me){return Me[Me.BackNav=0]="BackNav",Me[Me.ForwardNav=1]="ForwardNav",Me[Me.DeleteFile=2]="DeleteFile",Me}(Xe||{});let He=(()=>{class Me{get fileDataChangeListener(){return this.currentFileData$.asObservable()}get currentFileData(){return this.currentFileData$.getValue()}set currentFileData(A){this.logger.info("Updating metadata"),this.currentFileData$.next(A)}get filesSelectedDataChangeListener(){return this.currentSelectedFilesData$.asObservable()}get currentSelectedFilesData(){return this.currentSelectedFilesData$.getValue()}set currentSelectedFilesData(A){this.currentSelectedFilesData$.next(A)}listenForTrackerEvents(){return this.trackerCallback$.asObservable()}listenForDelayedEvents(){return this.delayedCallback$.asObservable()}isHighlightCanceled(){return this.canceledCallback$.asObservable()}refreshEvent(){return this.refreshEvent$.asObservable()}recentEvent(){return this.recentEvent$.asObservable()}previewPaneEvent(){return this.previewPaneEvent$.asObservable()}lowDiskSpaceEvent(){const A=this.checkDiskSpace().subscribe(()=>{A.unsubscribe()});return this.lowDiskSpaceEvent$.asObservable()}lowDiskSpaceValue(){return this.lowDiskSpaceEvent$.getValue()}captureSaved(){return this.captureSaved$.asObservable()}get previewWindowCloseNotify(){return this.previewWindowCloseNotify$.asObservable()}closePreviewWindow(A){this.previewWindowCloseNotify$.next(A)}constructor(A,me,ne,G,W,$,le,Pe,Fe,At,Le,Et,$e,Ze,Qe,Ve){this.bridgeService=me,this.osService=ne,this.cacheService=G,this.sdkService=W,this.notifierService=$,this.oscDisplayService=le,this.telemetry=Pe,this.telemetryIgo=Fe,this.translateService=At,this.dialogHelper=Le,this.datePipe=Et,this.gfnInfoService=$e,this.featureSupportService=Ze,this.shadowPlayService=Qe,this.navigationService=Ve,this.videoPath="",this.thumbWidth=128,this.thumbHeight=128,this.directories=[],this.workingFolder="",this.lastUserSelectedFolder="",this.previewCaller=void 0,this.mostLikelyResolution={width:1920,height:1080},this.currentFileData$=new n.t(null),this.currentSelectedFilesData$=new n.t([]),this.captureSaved$=new n.t(""),this.gameDetails={cmsId:"",drsName:"",drsProfileName:"",shortName:""},this.lastExitedGameDetails={cmsId:"",drsName:"",drsProfileName:"",shortName:""},this.activeFilter=0,this.fileCounts=new I.Tk,this.topLevelCounts=[],this.updatingTracker=!1,this.highlightSummaryIsOpen=!1,this.highlightsCaptureToggleEnabled=!1,this.trackerCallback$=new l.B7,this.delayedCallback$=new l.B7,this.canceledCallback$=new l.B7,this.refreshEvent$=new l.B7,this.recentEvent$=new l.B7,this.lowDiskSpaceEvent$=new n.t(!1),this.previewPaneEvent$=new l.B7,this.previewWindowCloseNotify$=new l.B7,this.isNvApp=!1,this.hlTempPath="",this.galleryPath="",this.highlightsPath="Highlights",this.folderPathSeparator="\\",this.isAppStartedReceived=!1,this.logger=A.getLogger("GalleryService"),this.isNvApp=this.featureSupportService.isNvApp()}init(){this.logger.info("Initialize"),this.dirSeparator=this.osService.getDirSeparator(),this.bridgeService.executeCommand(D.Ts.Common.Gallery.GalleryNotifications).pipe((0,O.H)(A=>this.galleryEvent(A))).subscribe(),this.checkDiskSpace().pipe((0,P.$)()).subscribe(),this.gfnInfoService.streamingTerminated().pipe().subscribe(()=>{this.setLastUserSelectedFolder("")}),this.shadowPlayService.registerAppStartedEvent().subscribe(A=>{this.setLastUserSelectedFolder(""),this.gameDetails.cmsId=A.appStarted.cmsId.toString(),this.gameDetails.drsName=A.appStarted.DRSAppName,this.gameDetails.drsProfileName=A.appStarted.profileName,this.gameDetails.shortName=A.appStarted.shortName,this.lastExitedGameDetails=this.gameDetails,this.isAppStartedReceived=!0}),this.bridgeService.executeCommand(D.Ts.Share.Shareserver.RegisterGeneralNotifications).pipe((0,_.p)(A=>!!A?.gameExited)).subscribe(A=>{this.onGameExit()}),this.bridgeService.executeCommand(D.Ts.Common.Gallery.GetSettings).pipe((0,i.ZZ)(A=>(this.checkDiskLimits(A.settings.capacity),A.settings.path?this.initPathItems(A.settings.path).pipe((0,r.T)(me=>A)):(0,d.of)(A))),(0,a.M)(A=>{this.telemetry.updateGallerySettings(A)}),(0,i.ZZ)(A=>this.featureSupportService.isGFEMode()?this.bridgeService.executeCommand(D.Ts.Common.Gallery.MigrateHighlightsTracker):(0,d.of)(null))).subscribe(),this.getGalleryPath().subscribe(),this.isNvApp&&this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetHighlightsEnable,{}).subscribe(A=>{this.highlightsCaptureToggleEnabled=A.enable,this.logger.info("Highlights enabled: ",this.highlightsCaptureToggleEnabled)})}hasAnyEntries(){if(this.topLevelCounts.length>0){let A=0;return this.topLevelCounts.forEach(me=>{A+=me.totalCount}),console.log("gallery entries: ",A),A>0}return!1}checkDiskLimits(A){this.logger.info("Disk Limits: ",A),A.enabled&&A.capacityPercent/100*A.totalDiskSpaceMB<=A.usageMB&&(this.logger.info("Gallery is full"),this.notifierService.show(U.Ed.GalleryIsFull))}initPathItems(A){this.videoPath=A,this.cacheService.setRecordingPaths(this.videoPath);const me=this.videoPath.split(":")[0];return this.logger.info("Drive Letter: ",me),me.length&&this.getDriveSize(me),this.getFolders().pipe((0,a.M)(()=>{this.logger.info("Initialize complete")}))}pathChanged(){return this.logger.info("Re-initializing Gallery Service"),this.workingFolder="",this.setLastUserSelectedFolder(""),this.directories=[],this.topLevelCounts=[],this.cacheService.flushDirectoryList(),this.bridgeService.executeCommand(D.Ts.Common.Gallery.GetSettings).pipe((0,i.ZZ)(me=>(this.checkDiskLimits(me.settings.capacity),this.initPathItems(me.settings.path))),(0,c.u)(!0))}getDriveSize(A){this.bridgeService.executeCommand(D.Ts.Common.Gallery.GetDriveInfo,{drive:A}).subscribe(ne=>{this.currentDriveSize=ne.totalSpaceMB,this.currentDriveFreeSpace=ne.freeSpaceMB,this.logger.info("Drive info: ",ne)})}buildPath(A){return""===A?this.videoPath:this.videoPath+this.dirSeparator+A}setWorkingFolder(A){const me=this.buildPath(A);return this.cacheService.getCachedDataCRC(me).pipe((0,i.ZZ)(ne=>this.getUsableData(A)),(0,i.ZZ)(ne=>(this.cacheService.useCacheData(me,!1),(0,d.of)(this.cacheService.files.length))))}getWorkingFolder(){return""!==this.workingFolder&&this.directories.length&&(this.directories.find(me=>me===this.workingFolder)||(this.workingFolder="")),""===this.workingFolder&&this.directories.length&&(this.workingFolder=this.directories[0]),this.workingFolder}setLastUserSelectedFolder(A){this.lastUserSelectedFolder=A}getLastUserSelectedFolder(){return this.lastUserSelectedFolder}getVideoFolder(){return this.videoPath}saveCurrentLocation(A){this.currentLocation=A}getCurrentLocation(){return this.currentLocation}setGalleryThumbSize(A){this.thumbWidth=A,this.thumbHeight=A}populateDirectoryStats(){if(this.directories.length>0&&this.cacheService.directoryListUpdateCounts){this.topLevelCounts=[];const A=[];return this.directories.forEach(me=>{A.push(this.getAppStats(me))}),(0,v.yU)(...A).pipe((0,r.T)(()=>this.directories))}return(0,d.of)(this.directories)}getFolders(){return this.cacheService.getDirectoryList().pipe((0,i.ZZ)(A=>(this.directories=A,this.populateDirectoryStats())))}showFolderContents(A){return""===A?""===this.workingFolder?this.workingFolder=A=this.directories[0]:A=this.workingFolder:this.workingFolder=A,this.logger.info("Working Folder: ",this.workingFolder),this.setWorkingFolder(A).pipe((0,r.T)(()=>this.cacheService.getCurrentPopFolder()))}getCurrentFolderCount(){return this.fileCounts}getUsableData(A){this.logger.info("GetUsableData Dir: ",A);const me=this.buildPath(A);if(this.cacheService.useCacheData(me,!0))return this.logger.info("GetUsableData - Using cached data"),this.fileCounts=this.cacheService.counts,this.telemetryIgo.setGalleryAccessCached(!0),this.telemetryIgo.setGalleryFolderCounts(this.cacheService.counts.images,this.cacheService.counts.total-this.cacheService.counts.images),(0,d.of)(!0);this.telemetryIgo.setGalleryAccessCached(!1);let ne=[];return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetApplicationConfigs,{}).pipe((0,a.M)(G=>{if(G&&G.apps.length){const W=G.apps.find($=>$.app.profileName===A||$.app.name===A);W&&(ne=W.highlights.map($=>({name:$.name,displayName:"",count:0,enabled:!0})),ne.forEach($=>{const le=`highlightLabels.${$.name}`,Pe=this.translateService.instant(le);$.displayName=Pe===le?$.name:Pe}))}}),(0,m.W)(()=>(0,d.of)(!1)),(0,i.ZZ)(()=>this.bridgeService.executeCommand(D.Ts.Common.Gallery.GetAppUGC,{appName:A})),(0,r.T)(G=>{this.cacheService.resetCurrentPopFolder();const W=[],$=this.cacheService.getCurrentPopFolder();let le=0,Pe=0,Fe=0,At=0;return G.ugc&&G.ugc.forEach((Le,Et)=>{Pe+=Le.fileSubType===D.Or.Common.Gallery.SubType.InstantReplay?1:0,le+=Le.fileSubType===D.Or.Common.Gallery.SubType.Manual?1:0,Le.fileType===D.Or.Common.Gallery.FileType.video&&Le.fileSubType!==D.Or.Common.Gallery.SubType.InstantReplay&&Le.fileSubType!==D.Or.Common.Gallery.SubType.Manual&&Le.fileSubType!==D.Or.Common.Gallery.SubType.Highlight&&(le+=1),Fe+=Le.fileType===D.Or.Common.Gallery.FileType.image?1:0,At+=Le.fileSubType===D.Or.Common.Gallery.SubType.Highlight?1:0;const $e=Le.path.lastIndexOf(this.dirSeparator),Qe={name:Le.path.substr($e+1),type:Le.fileType,subtype:Le.fileSubType,source:Le.fileSource,thumbnail:""};W.push(Qe);const Ve={fullFilename:Le.path,file:Qe,folder:A,index:Et,duration:Le.duration,date:Le.date,fileSize:Le.fileSizeKB.toString(),audiotype:Le.audiotype,hlName:Le.highlightName,hlId:Le.id,hlGroup:Le.highlightGroupId,cancel:!1,data:null,codecType:Le.codecType};$.push(Ve),ne.some(nt=>{nt.name===Le.highlightName&&nt.count++})}),this.cacheService.files=W,this.cacheService.setCacheLoadedPartial(me),this.logger.info("Files: "+G.ugc.length+" Highlights : "+At+" Recordings: "+le+" IR: "+Pe+" Images: "+Fe),this.fileCounts={total:G.ugc.length,highlights:At,videos:le,instantReplays:Pe,images:Fe,highlightBreakDown:ne},this.telemetryIgo.setGalleryFolderCounts(Fe,G.ugc.length-Fe),this.cacheService.setFileCounts(this.fileCounts,me),!0}),(0,m.W)(G=>(this.logger.error("GetAppUGC failed with error: ",G),(0,d.of)(void 0))))}getAppStats(A){return this.bridgeService.executeCommand(D.Ts.Common.Gallery.GetAppStats,{appName:A}).pipe((0,r.T)(ne=>{this.logger.info("App Stats: "+A+" SS: "+ne.screenshots+" V: "+ne.videos);const G=this.topLevelCounts.findIndex(W=>W.folder===A);return G>=0?this.topLevelCounts[G].totalCount=ne.screenshots+ne.videos:this.topLevelCounts.push({folder:A,totalCount:ne.screenshots+ne.videos}),ne}))}getMetaData(A,me=!0){return this.bridgeService.executeCommand(D.Ts.Common.Gallery.GetFileMetadata,{file:A,width:me?this.thumbWidth:void 0,height:me?this.thumbHeight:void 0})}getImageFileDimensions(A){return this.bridgeService.executeCommand(D.Ts.Common.Gallery.GetImageFileDimensions,{file:A})}getFileData(A,me,ne){const G=this.cacheService.getCurrentPopFolder();return void 0===G||G.length<=me||A!==G[0].folder||""===G[me].file.name?(0,d.of)(void 0):this.getMetaData(G[me].fullFilename,ne).pipe((0,P.$)(),(0,r.T)(W=>{const $=this.cacheService.getCurrentPopFolder();if(void 0===$||$.length<=me||A!==$[0].folder)return;const le=$[me],Pe=$[me].file,Fe=void 0===W.audiotype?I.gE.Unknown:W.audiotype;return Pe.type===I.Wr.Video&&Pe.subtype===I.so.Normal&&Fe===D.Or.Common.Gallery.AudioType.Separate&&(Pe.subtype=I.so.Mta),le.audiotype=Fe,le.duration=void 0===W.duration?"":W.duration,le.memeTop=W.memeInfo?W.memeInfo.topBarText:"",le.memeBottom=W.memeInfo?W.memeInfo.bottomBarText:"",le.data=void 0===W.thumbnail?null:W.thumbnail,le}),(0,m.W)(W=>(this.logger.error("GetMetaData failed: ",W),(0,d.of)(void 0))))}fillInFileData(A){return this.getFileData(A.folder,A.index,!0)}removeItem(A,me){return this.bridgeService.executeCommand(D.Ts.Common.Gallery.RemoveGalleryItem,{file:A,forceDelete:me||!1}).pipe((0,i.ZZ)(G=>{const W=A.lastIndexOf(this.dirSeparator),$=A.substr(W+1,A.length-1);return this.logger.info("File deleted: ",$),this.cleanupLocalHighlightsListAfterDelete(A),(0,d.of)(!0)}),(0,m.W)(G=>(this.logger.info("File remove failed: ",G),this.notifierService.show(U.Ed.FailedToRemove,"",""),(0,d.of)(!1))))}getThumbnailForFile(A,me=70,ne=70){return this.bridgeService.executeCommand(D.Ts.Common.Gallery.GetThumbnail,{file:A,width:me,height:ne}).pipe((0,r.T)(W=>W.thumbnail))}eventCaptureSaved(A){const me=A.captureSaved.ugc.fileSource===D.Or.Common.Gallery.Source.GFE_SDK&&A.captureSaved.ugc.fileSubType===D.Or.Common.Gallery.SubType.Highlight,ne=A.captureSaved.ugc.fileType===D.Or.Common.Gallery.FileType.image,G=A.captureSaved.ugc.fileSource===D.Or.Common.Gallery.Source.GFE_Ansel,W=A.captureSaved.ugc.codecType===T.m_.H265;if(A.captureSaved.unannounced||this.getThumbnailForFile(A.captureSaved.ugc.path).subscribe($=>{if(me){const le=`highlightLabels.${A.captureSaved.ugc.highlightName}`;this.translateService.get(le).subscribe(Pe=>{Pe===le&&(Pe=A.captureSaved.ugc.highlightName),this.notifierService.show(U.Ed.HighlightsSaved,Pe,"","",W?"":$)})}else if(G){let le="";switch(A.captureSaved.ugc.fileSubType){case D.Or.Common.Gallery.SubType.Normal_Ansel:le="nvcamera.screenshot";break;case D.Or.Common.Gallery.SubType.SuperResolution:case D.Or.Common.Gallery.SubType.SuperResolution_Oversized:le="nvcamera.highResolutionPhoto";break;case D.Or.Common.Gallery.SubType.SubType_360Mono:le="nvcamera.360PhotoSphere";break;case D.Or.Common.Gallery.SubType.Stereo:le="nvcamera.screenshot3D";break;case D.Or.Common.Gallery.SubType.SubType_360Stereo:le="nvcamera.360PhotoSphere3D"}this.notifierService.show(U.Ed.HighlightsSaved,le,"","",W?"":$)}else ne?this.notifierService.show(U.Ed.ScreenshotSaved,"","","",$):"Manual"===A.captureSaved.ugc.fileSubType?this.notifierService.show(U.Ed.RecordStopped,"","","",W?"":$):"InstantReplay"===A.captureSaved.ugc.fileSubType&&this.notifierService.show(U.Ed.InstantReplaySaved,"","","",W?"":$)}),this.highlightSummaryIsOpen?void 0===this.highlightsSummaryData.highlights.find($=>$.path===A.captureSaved.ugc.path)&&this.highlightsSummaryData.highlights.push({id:A.captureSaved.ugc.id,path:A.captureSaved.ugc.path,fileType:A.captureSaved.ugc.fileType,highlightdefinitionId:A.captureSaved.ugc.highlightDefinitionId,highlightName:A.captureSaved.ugc.highlightName,highlightGroupId:A.captureSaved.ugc.highlightGroupId,highlightTags:A.captureSaved.ugc.highlightTags,highlightSignificance:A.captureSaved.ugc.highlightSignificance}):this.cacheService.updateDirectoryList(A.captureSaved.ugc.path),me){const $={id:A.captureSaved.ugc.id,groupId:A.captureSaved.ugc.highlightGroupId,filename:A.captureSaved.ugc.path,name:A.captureSaved.ugc.highlightName,cancel:!1};if(this.delayedCallback$.observers.length){const le=A.captureSaved.ugc.DRSProfileName,Pe=0===this.directories.length,Fe=!Pe&&void 0===this.directories.find(Et=>Et===le),At=!Pe&&!Fe&&this.workingFolder!==le,Le=Pe||Fe||At;if(this.logger.info("Special cases: "+Pe+" "+Fe+" "+At),Le){const Et=this.workingFolder;this.showFolderContents(A.captureSaved.ugc.DRSProfileName).subscribe(()=>{this.saveDelayedHighlight($),this.workingFolder=Et})}else this.saveDelayedHighlight($)}this.telemetry.sendHighlightCapture({shortName:this.sdkService.sdkInstance.appShortName},this.sdkService.sdkInstance.sdkVersion,this.durationToSeconds(A.captureSaved.ugc.duration),A.captureSaved.ugc.highlightDefinitionId,"image"===A.captureSaved.ugc.fileType?V.cM.image:V.cM.video,V.tT.Success,{cmsId:A?.captureSaved?.ugc?.cmsId.toString(),drsName:A?.captureSaved?.ugc?.DRSName,drsProfileName:A?.captureSaved?.ugc?.DRSProfileName})}return this.captureSaved$.observers.length&&this.captureSaved$.next(A.captureSaved.ugc.path),!me&&this.refreshEvent$.observers.length&&this.refreshEvent$.next({folder:A.captureSaved.ugc.DRSProfileName}),this.getFolders().pipe((0,a.M)($=>this.updateRecentList()),(0,r.T)($=>!0))}durationToSeconds(A){const me=A.lastIndexOf(":"),ne=A.slice(me+1),G=A.slice(0,me),W=G.lastIndexOf(":"),$=G.slice(W+1),le=A.slice(0,W);return Number(ne)+60*Number($)+3600*Number(le)}updateRecentList(){this.recentEvent$.observers.length&&this.recentEvent$.next()}updateAfterFileCreation(A){this.refreshEvent$.observers.length&&this.refreshEvent$.next({folder:A}),this.updateRecentList(),this.logger.info("Update Recent and Gallery complete")}getMissingItem(A){const me=A.filename;let ne=me.lastIndexOf(this.dirSeparator);const G=me.slice(ne+1),W=me.slice(0,ne);ne=W.lastIndexOf(this.dirSeparator);const $=W.slice(ne+1);if(this.workingFolder!==$)return(0,d.of)(void 0);const le=this.cacheService.getCurrentPopFolder(),Pe=le.findIndex(Fe=>A.id===Fe.hlId);return-1===Pe?(this.refreshEvent$.observers.length&&this.refreshEvent$.next({folder:$}),(0,d.of)(void 0)):(le[Pe].fullFilename=me,le[Pe].file.name=G,this.getFileData($,Pe,!0))}getCurrentDropdownCount(A){return this.getAppStats(A).pipe((0,r.T)(me=>{const ne=this.topLevelCounts.findIndex(G=>G.folder===A);return-1!==ne?(this.topLevelCounts[ne].totalCount=me.screenshots+me.videos,this.topLevelCounts[ne].totalCount):0}))}saveDelayedHighlight(A){if(A.cancel)return this.logger.info("Canceling Highlight"),void this.canceledCallback$.next({hlEvent:I.pW.HIGHLIGHT_COMPLETED,args:A});const me=this.getMissingItem(A).subscribe(ne=>{ne&&(this.delayedCallback$.next({hlEvent:I.pW.HIGHLIGHT_COMPLETED,args:ne}),me.unsubscribe())})}updateFolderSync(A,me){return new S.c(ne=>{this.updateFolder(A,me).subscribe(()=>{ne.next(),ne.complete(),this.logger.info("Complete")})})}updateFolder(A,me){let ne={};if(me===I.QA.Highlights)ne={userGalleryPath:A};else if(me===I.QA.Temporary){const W=A.lastIndexOf(this.dirSeparator),$=A.length-1;W===$&&(A=A.slice(0,$)),ne={tempFolderPath:A}}return this.bridgeService.executeCommand(D.Ts.Common.Gallery.SetSettings,{settings:ne}).pipe((0,r.T)(()=>!0),(0,c.u)(!0))}galleryEvent(A){if(A){if(A.captureSaved)return this.logger.info("Gallery event: CaptureSaved"),this.eventCaptureSaved(A);if(A.openSummary)this.logger.info("Gallery event: OpenSummary"),this.eventOpenSummary(A);else if(A.highlightCanceled)this.logger.info("Gallery event: HighlightCanceled"),this.eventHighlightCanceled(A);else if(A.ugcDeleted)this.logger.info("Gallery event: UgcDeleted"),this.eventUGCDeleted(A);else if(A.checkDiskSpace)this.logger.info("Gallery event: CheckDiskSpace"),this.lowDiskSpace(A);else if(void 0!==A.galleryIsFull)this.logger.info("Gallery event: GalleryIsFull"),!0===A.galleryIsFull&&this.notifierService.show(U.Ed.GalleryIsFull);else if(A.highlightCaptureFailed)this.logger.info("Gallery event: HighlightCaptureFailed"),this.checkCaptureFailure(A);else if(A.galleryPathUpdateStatus){switch(A.galleryPathUpdateStatus.status){case D.Or.Common.Gallery.GalleryPathUpdateStatus.TrackerUpdateInProgress:this.updatingTracker=!0;break;case D.Or.Common.Gallery.GalleryPathUpdateStatus.TrackerUpdateComplete:case D.Or.Common.Gallery.GalleryPathUpdateStatus.CancelUpdateComplete:this.updatingTracker=!1}this.trackerCallback$.next({trackerEvent:A.galleryPathUpdateStatus.status})}else this.logger.info("Unknown or unhandled Event Type: ",A)}else this.logger.info("Event: undefined or null");return(0,d.of)(!1)}galleryTrackerChangePath(){return new S.c(A=>{this.pathChanged().subscribe(()=>{A.next(),A.complete(),this.logger.info("ChangePath Complete")})})}getRecentData(A,me){this.setGalleryThumbSize(A);const ne=[];return ne.length=0,this.bridgeService.executeCommand(D.Ts.Common.Gallery.GetRecentUGC,{count:me}).pipe((0,i.ZZ)($=>{if(!$||!$.recents||!$.recents.length)return this.logger.info("No recent items to view!"),(0,v.yU)((0,d.of)(!1));const le=Math.min(me,$.recents.length);for(let Fe=0;Fe<le;Fe++){const At=$.recents[Fe].path;let Le=At.lastIndexOf(this.dirSeparator);const Et=At.substr(Le+1,At.length-1);let $e=At.substr(0,Le);Le=$e.lastIndexOf(this.dirSeparator),$e=$e.substr(Le+1,$e.length-1);const Qe={fullFilename:At,file:{name:Et,type:$.recents[Fe].fileType,subtype:$.recents[Fe].fileSubType,source:$.recents[Fe].fileSource,thumbnail:""},folder:$e,index:Fe,duration:$.recents[Fe].duration,date:$.recents[Fe].date,fileSize:$.recents[Fe].fileSizeKB.toString(),audiotype:$.recents[Fe].audiotype,hlName:$.recents[Fe].highlightName,hlId:$.recents[Fe].id,hlGroup:$.recents[Fe].highlightGroupId,cancel:!1,data:null,codecType:$.recents[Fe].codecType};ne.push(Qe)}this.logger.info("Viewing "+ne.length+" recent items");const Pe=[];return ne.forEach(Fe=>{Pe.push(this.getRecentMetaData(Fe,A||void 0))}),(0,v.yU)(...Pe)}),(0,r.T)(()=>(this.logger.info("Recent MetaData complete!"),ne)))}setHighlightsSummaryOpen(A){this.highlightSummaryIsOpen=A}getRecentMetaData(A,me){return this.bridgeService.executeCommand(D.Ts.Common.Gallery.GetFileMetadata,{file:A.fullFilename,width:me=me||void 0,height:me}).pipe((0,r.T)(G=>void 0===G.fileType?(this.logger.info("metadata not available for file ",A.fullFilename),!1):("video"===G.fileType&&void 0!==A.duration&&(A.duration=G.duration),A.date=G.date,A.fileSize=G.fileSizeKB+"",A.audiotype=G.audiotype,A.data=G.thumbnail,!0)))}filterSummaryData(A){return A.filter(ne=>ne.path.includes(this.hlTempPath))}filterGalleryData(A){return A.filter(ne=>ne.path.includes(this.galleryPath))}filterRecentViewData(A){return A.filter(ne=>ne.fullFilename.includes(this.galleryPath))}eventOpenSummary(A){const me=this.sdkService.sdkInstance.profileName;if(!me||0===me.length)return void this.logger.error("Missing game name");this.highlightSummaryIsOpen=!0;const ne=this.filterSummaryData(A.openSummary.ugc);this.highlightsSummaryData={sdkVersion:this.sdkService.sdkInstance.sdkVersion,profileName:me,appShortName:this.sdkService.sdkInstance.appShortName,name:this.sdkService.sdkInstance.name,highlights:this.isNvApp?ne:A.openSummary.ugc};const G={callbackData:JSON.stringify({openedFromSDK:!0})};this.telemetryIgo.beginStartupTimer(V.gh.highlightsButton),(this.isNvApp&&ne.length||!this.isNvApp)&&this.oscDisplayService.openOSC("sidebar/gallery",G)}eventHighlightCanceled(A){this.canceledCallback$.observers.length&&this.saveDelayedHighlight({id:A.highlightCanceled.highlight.id,groupId:A.highlightCanceled.highlight.groupId,filename:"",name:"",cancel:!0}),this.telemetryIgo.sendHighlightCancelled({shortName:this.sdkService.sdkInstance.appShortName},this.sdkService.sdkInstance.name,this.sdkService.sdkInstance.sdkVersion)}eventUGCDeleted(A){const me=A.ugcDeleted.ugc,ne=me.path;let G=ne.lastIndexOf(this.dirSeparator);const W=ne.slice(0,G);G=W.lastIndexOf(this.dirSeparator);const $=W.slice(G+1);this.getFolders().subscribe(()=>this.updateRecentList()),this.workingFolder===$&&(-1===this.cacheService.getCurrentPopFolder().findIndex(Fe=>me.id===Fe.hlId)||this.refreshEvent$.observers.length&&this.refreshEvent$.next({folder:$,filename:ne}))}lowDiskSpace(A){this.lowDiskSpaceEvent$.next(A.checkDiskSpace.lowDiskSpace)}checkCaptureFailure(A){this.logger.info("checkCaptureFailure: ",A),(A.highlightCaptureFailed.errorCode===D.Or.Share.Shareserver.InternalErrorCodeEnum.ShadowPlay_E_FAIL_NO_DISC_SPACE||A.highlightCaptureFailed.errorCode===D.Or.Share.Shareserver.InternalErrorCodeEnum.ShadowPlay_E_BOUNDS||A.highlightCaptureFailed.errorCode===D.Or.Share.Shareserver.InternalErrorCodeEnum.ShadowPlay_E_FAIL_NO_GALLERY_SPACE)&&(this.notifierService.show(U.Ed.NoSpaceCaptureNotSaved,"commonLabels.Highlights"),this.isNvApp&&this.telemetry.sendHighlightCapture({shortName:this.sdkService.sdkInstance.appShortName},this.sdkService.sdkInstance.sdkVersion,null,null,null,A.highlightCaptureFailed.errorCode.toString()))}onGameExit(){this.lastExitedGameDetails=this.gameDetails,this.gameDetails={cmsId:"",drsName:"",drsProfileName:"",shortName:""},this.isAppStartedReceived=!1,this.isNvApp&&this.featureSupportService.isSummaryDialogEnabled()&&this.highlightsCaptureToggleEnabled&&this.launchHighlightsSummaryDialog()}checkDiskSpace(){return this.bridgeService.executeCommand(D.Ts.Common.Gallery.CheckDiskSpace,{}).pipe((0,r.T)(me=>(this.lowDiskSpace({checkDiskSpace:{lowDiskSpace:me.lowDiskSpace}}),me.lowDiskSpace)))}cleanupLocalHighlightsListAfterDelete(A){if(this.highlightsSummaryData&&this.highlightsSummaryData.highlights.length>0){const me=this.highlightsSummaryData.highlights.find(ne=>ne.path===A);if(me){this.logger.info("Highlight to delete: ",me);const ne=this.highlightsSummaryData.highlights.indexOf(me);ne>-1&&this.highlightsSummaryData.highlights.splice(ne,1)}}}getHighlightsToUse(A){return A?(this.highlightSummaryIsOpen=!0,this.highlightsSummaryData):{sdkVersion:"",profileName:"",appShortName:"",name:"",highlights:void 0}}generateGalleryFilename(A,me,ne=new Date){return`${this.videoPath}${this.dirSeparator}${A}${this.dirSeparator}${A} ${this.datePipe.transform(ne,"yyyy.MM.dd - HH.mm.ss.SS")}.${me}`}previewPaneSendEvent(A){this.previewPaneEvent$.next(A)}setPreviewCaller(A){this.previewCaller=A}getPreviewCaller(){return this.previewCaller}showDeleteSnackbar(A){let me=!0;const ne=A.length,G=1===ne?"confirmation.deletedTitle":"confirmation.deletedTitleMulti";return A.length<=0?(0,d.of)(!1):new S.c(le=>{(0,y.zV)([this.translateService.get(G,{arg:ne}),this.translateService.get("confirmation.undo")]).pipe((0,i.ZZ)(([Pe,Fe])=>{const At=this.dialogHelper.openSnackBar(Pe,Fe);return At.onAction().subscribe(()=>{me=!1}),At.afterDismissed()}),(0,i.ZZ)(()=>(0,f.H)(A)),(0,i.ZZ)(Pe=>me?(this.telemetryIgo.sendGalleryFileRemoved(Pe),this.removeItem(Pe.fullFilename)):(0,d.of)(!1)),(0,M.H)()).subscribe(Pe=>{le.next(Pe),le.complete()})})}getCurrentGameDetails(){return this.gameDetails}getLastExitedGameDetails(){return this.lastExitedGameDetails}sendDiskSpaceChangedTelemetry(A){this.featureSupportService.isGFEMode()&&this.telemetry.sendIGOSettings(this.gameDetails,V.ld,A?"true":"false")}sendDiskSpaceSliderChangedTelemetry(A){this.featureSupportService.isGFEMode()&&this.telemetry.sendIGOSettings(this.gameDetails,V.q6,A.toString())}getGalleryPath(){return this.bridgeService.executeCommand(D.Ts.Common.Gallery.GetSettings).pipe((0,i.ZZ)(A=>(this.hlTempPath=A.settings.tempFolderPath,this.galleryPath=A.settings.userGalleryPath,(0,d.of)(!0))))}moveFiles(A,me){const ne={source:"",destination:""};return ne.source=A,ne.destination=me,this.bridgeService.executeCommand(D.Ts.Common.Gallery.MoveFile,ne)}getFolderListing(A){return this.bridgeService.executeCommand(D.Ts.Common.Gallery.GetFolderListing,{directory:A})}sendHighlightsSavedNotification(A){this.notifierService.show(U.Ed.HighlightsSavedToGallery,A.toString())}launchHighlightsSummaryDialog(){return this.bridgeService.executeCommand(D.Ts.Common.Gallery.GetAppUGC,{appName:this.lastExitedGameDetails.drsProfileName}).pipe((0,i.ZZ)(me=>{this.filteredSummaryData=this.filterSummaryData(me.ugc),this.logger.info("filteredSummaryData : ",this.filteredSummaryData),this.highlightsSummaryData={sdkVersion:this.sdkService.sdkInstance.sdkVersion,profileName:this.gameDetails.drsProfileName,appShortName:this.sdkService.sdkInstance.appShortName,name:this.sdkService.sdkInstance.name,highlights:this.isNvApp?this.filteredSummaryData:me.ugc};const ne={callbackData:JSON.stringify({openedFromSDK:!0})};return this.filteredSummaryData.length&&(this.highlightSummaryIsOpen=!0,this.oscDisplayService.openOSC("sidebar/gallery",ne)),(0,d.of)(!0)}),(0,m.W)(me=>(this.logger.error("GetAppUGC failed with error: ",me),(0,d.of)(void 0)))).subscribe()}getHighlightsTempPath(){return this.hlTempPath+this.highlightsPath+this.folderPathSeparator+this.lastExitedGameDetails.drsProfileName}isGalleryMenuExitAllowed(){return!this.isNvApp||!this.highlightSummaryIsOpen||!!this.isAppStartedReceived}setHighlightsCaptureToggle(A){this.highlightsCaptureToggleEnabled=A}static{this.\u0275fac=function(me){return new(me||Me)(N.KVO(L.J6),N.KVO(L.NZ),N.KVO(E.a),N.KVO(g._),N.KVO(R.P),N.KVO(U.mb),N.KVO(B.B),N.KVO(X.x),N.KVO(H.S),N.KVO(J.c$),N.KVO(re.e),N.KVO(ie.vh),N.KVO(ve.x_),N.KVO(ue.R),N.KVO(T.W1),N.KVO(se.o))}}static{this.\u0275prov=N.jDH({token:Me,factory:Me.\u0275fac,providedIn:"root"})}}return Me})()},59002:(Bt,z,s)=>{"use strict";s.d(z,{$0:()=>Me,Fm:()=>He,x_:()=>Q});var n=s(8619),l=s(83915),d=s(65706),v=s(73180),S=s(25590),y=s(75707),f=s(91384),O=s(14714),P=s(4208),_=s(99469),i=s(20924),r=s(50801),a=s(57388),c=s(36203),m=s(54947),M=s(89284),D=s(26513),I=s(85735),U=s(80583),V=s(43848),T=s(31315),N=s(3496),L=s(16229),E=s(1794),R=s(54292),B=s(73934),X=s(20381),H=s(23860),J=s(46776),re=s(23355),ie=s(58527),ve=s(12137),ue=s(2688),se=s(11728),Z=s(72428),Se=s(44202),Ce=s(96542),Be=s(24964),Xe=function(A){return A[A.MIN_COMPACT_ICON_DURATION=1e3]="MIN_COMPACT_ICON_DURATION",A[A.MIN_EXPANDED_NETWORK_MESSAGE_DURATION=6e3]="MIN_EXPANDED_NETWORK_MESSAGE_DURATION",A}(Xe||{}),He=function(A){return A[A.RECORD_SPECIAL_CASE_NONE=0]="RECORD_SPECIAL_CASE_NONE",A[A.RECORD_SPECIAL_CASE_4K=1]="RECORD_SPECIAL_CASE_4K",A[A.RECORD_SPECIAL_CASE_PLAYTEST=2]="RECORD_SPECIAL_CASE_PLAYTEST",A[A.RECORD_SPECIAL_CASE_10bit=3]="RECORD_SPECIAL_CASE_10bit",A}(He||{}),Me=function(A){return A[A.NORMAL=0]="NORMAL",A[A.WARNING=1]="WARNING",A[A.ALERT=2]="ALERT",A}(Me||{});let Q=(()=>{class A{constructor(ne,G,W,$,le,Pe,Fe,At,Le,Et,$e,Ze,Qe,Ve,nt,Ot,at){this.injector=ne,this.igoConfig=G,this.featureSupportService=W,this.browserSupportService=$,this.oscDisplayService=le,this.projectInterfaceService=Pe,this.loggingService=Fe,this.bridgeService=At,this.hotkeyService=Le,this.hotkeyShareService=Et,this.microphoneService=$e,this.notifierService=Ze,this.clientInputService=Qe,this.dbService=Ve,this.systemInfoService=nt,this.translateService=Ot,this.dialog=at,this.streamingEndTime=-1,this.appTitle="",this.appInstanceId="",this.currentGameProfileName="",this.gfnEnabled=!1,this.imeEnabled=!1,this.throttleMs=333,this.isGfnMicEnabled=!1,this.hdrStreamingStatus=J.ud.Inactive,this.$disableRecordSpecialCase=new D.t(He.RECORD_SPECIAL_CASE_NONE),this.$disableRecordSpecialCaseInternal=new I.m(1),this.$gpuFriendlyName=new D.t(""),this.$streamingTerminated=new U.B7,this.$networkState=new D.t(Me.NORMAL),this.subscriptions=[],this.networkStatusInit=!1,this.globalStore=null,this.igoNotifications="IgoNotifications",this.netWorkNotificationEnabled=!1,this.getGameHdrSupportInfo=new U.B7,this.micIconStatus=new D.t(!1),this.drcToggleStatus$=new I.m(1),this.l4sStatusNotificationGeronimo$=new I.m(1),this.l4sStatusString$=new I.m(1),this.streamerExitNotification$=new U.B7,this.logger=this.loggingService.getLogger("GfnInfoService"),this.globalStore=this.dbService.getGlobalStore(this.igoNotifications)}init(){this.logger.info("GfnInfo service init"),!0===this.igoConfig.GFNCefClient&&this.igoConfig.IGOFeatureEnabled&&(this.streamerConfigService=this.injector.get(M.zi2),this.streamerHelperService=this.injector.get(M.HFx),this.streamingProfileService||(this.streamingProfileService=this.injector.get(M.xfC)),this.playtestLiveService=this.injector.get(M.CC_),this.cloudVariableHelperService=this.injector.get(M.r1C),this.ecommerceService||(this.ecommerceService=this.injector.get(M.yJU)),this.streamingService||(this.streamingService=this.injector.get(c.I),this.logger.info("StreamingService not injected init")),this.streamingService.streamingEvent$.pipe((0,n.p)(ne=>ne.event===re.CW.SESSION_SETUP_SUCCESS)).subscribe(ne=>{this.onSessionSetupSuccess(ne),this.onGetGpuName(ne),this.onGetGameName()}),this.streamingService.streamingEvent$.pipe((0,n.p)(ne=>ne.event===re.CW.STREAMING_CLIENT_MESSAGE)).subscribe(ne=>{this.processStreamingClientMessage(ne)}),this.streamingService.streamingEvent$.pipe((0,n.p)(ne=>ne.event===re.CW.STREAMING_BEGIN)).subscribe(()=>{this.appTitle=this.streamingService.streamingParams.appName,this.streamingEndTime=-1,this.getHDRGameSupportInfo()}),this.streamingService.streamingEvent$.pipe((0,n.p)(ne=>ne.event===re.CW.STREAMING_BEGIN||ne.event===re.CW.STOP_RESULT||ne.event===re.CW.STREAMING_TERMINATED||ne.event===re.CW.STREAMING_STOPPED),(0,l.T)(ne=>(this.logger.info("Microphone Icon Status update ",ne.event),ne.event===re.CW.STREAMING_BEGIN?this.micIconStatus.next(!0):(ne.event===re.CW.STOP_RESULT||ne.event===re.CW.STREAMING_TERMINATED||ne.event===re.CW.STREAMING_STOPPED)&&this.micIconStatus.next(!1),!0))).subscribe(),this.feedbackService=this.injector.get(a.n1),this.surveyService=this.injector.get(M.Icg),this.nesUserInfoService=this.injector.get(M.lWV),this.gfcHelperService=this.injector.get(M.q8U),this.lcarsService=this.injector.get(M.Br4),this.appConfig||(this.appConfig=this.injector.get(M.Vk6)),_.zk.isBrowserPlatform()&&this.gfcHelperService.getAppInstanceId().subscribe(ne=>{this.appInstanceId=ne}),this.featureSupportService.isGfnMicrophoneEnabled().pipe((0,d.s)(1)).subscribe(ne=>{this.isGfnMicEnabled=ne,ne?(this.hotkeyService.startListeningToHotkey(B.g8.MicToggle).pipe((0,d.s)(1)).subscribe(),this.hotkeyService.listen(B.g8.MicToggle).pipe((0,v.c)(this.throttleMs),(0,S.E)(this.microphoneService.currentMicState$)).subscribe(([G,W])=>{W!==r.EO.PermissionPending&&W!==r.EO.PermissionDenied&&this.microphoneService.toggleMicrophone()}),this.streamingService.streamingEvent$.pipe((0,n.p)(G=>G.event===re.CW.STREAMING_BEGIN)).subscribe(()=>{this.microphoneService.start(this.streamingService.streamingProperties.sessionId,this.streamingService.streamingProperties.subSessionId)})):!ne&&!this.featureSupportService.isShadowPlayEnabled()&&this.hotkeyService.stopListeningToHotkey(B.g8.MicToggle)}),this.streamingService.streamingEvent$.pipe((0,n.p)(ne=>ne.event===re.CW.STREAMING_TERMINATED||ne.event===re.CW.STOP_RESULT||ne.event===re.CW.STREAMING_STOPPED)).subscribe(()=>{this.isGfnMicEnabled&&this.microphoneService.stop(),this.$gpuFriendlyName.next(""),this.$streamingTerminated.next(!0),this.$networkState.next(Me.NORMAL),this.networkNotificationSubscription&&(this.networkNotificationSubscription.unsubscribe(),this.networkNotificationSubscription=void 0)}),this.idmService=this.injector.get(M.k_2),this.idmService.accountStatusChanged.subscribe(ne=>{this.feedbackService.onAccountStatusChanged({userId:ne.userId,externalUserId:ne.externalId,idpId:ne.idpId,isAuthenticated:ne.isAuthenticated})}),this.gfnEnabled=!0,this.projectInterfaceService.triggerQuitStreaming.subscribe(ne=>{ne&&this.quitStreaming()}),this.clientInputService.isImeEnabled$.subscribe(ne=>{this.logger.info("Checking ClientIME enablement value ",ne),this.imeEnabled=ne,this.imeEnabled?(this.hotkeyShareService.removeFromIgnoredHotkeysSet(B.g8.NativeKeyboardInputDialog),this.hotkeyService.startListeningToHotkey(B.g8.NativeKeyboardInputDialog).subscribe()):this.hotkeyService.stopListeningToHotkey(B.g8.NativeKeyboardInputDialog)},ne=>{this.logger.info("Error getting ClientIME enablement value, defaulting to false",ne),this.hotkeyService.stopListeningToHotkey(B.g8.NativeKeyboardInputDialog),this.imeEnabled=!1}),this.releaseHighlights=this.injector.get(M.wIR),this.networkConfigurationService=this.injector.get(M.uUB),this.networkBarsUiService=this.injector.get(m.E3),this.settingsService=this.injector.get(M.h$Q),this.networkConfigurationService.getNetworkOverride().subscribe(ne=>{null!=ne&&(this.currentServer1={server:ne.name})}),this.networkConfigurationService.getCurrentCachedZone().subscribe(ne=>{null!=ne&&(this.currentServer2={server:ne.name})}),_.zk.isBrowserPlatform()?(this.logger.info("Setting HDR status to unknown for non native client"),this.hdrStreamingStatus=J.ud.Unknown):this.registerHDRStreamingStatusNotification(),this.streamingService.streamingEvent$.pipe((0,n.p)(ne=>(ne.event===re.CW.STREAMING_PROPERTY_UPDATE&&ne)?.updateType===re.XK.BIT_DEPTH)).subscribe(ne=>{this.colorBitDepth=ne?.bitDepth,this.logger.info("Received color bit depth ",this.colorBitDepth)}),this.projectInterfaceService.exitStreamerFlowNotify.subscribe(ne=>{this.logger.info("Streamer exit notification received"),this.colorBitDepth=void 0,this.currentProfile=null,this.streamerExitNotification$.next(!0),this.l4sStatusNotificationGeronimo$.next(i.Or.Gfn.Streaming.L4SState.UNKNOWN)}),this.checkL4sStateGeronimo()),"GFN"===this.igoConfig.branding&&(this.experienceControlService=this.injector.get(X.BW),this.experienceControlService.batchCvsFetchedStatus$.pipe((0,d.s)(1),(0,y.ZZ)(ne=>ne?this.isIgssEnabledInConfig():(0,V.of)(!0))).subscribe(),this.checkIfOscEnabled())}getL4sStatusString(){return this.l4sStatusString$.asObservable()}get drcToggleStatus(){return this.drcToggleStatus$.asObservable()}set drcToggleStatus(ne){this.drcToggleStatus$.next(ne)}checkIfOscEnabled(){this.streamerHelperService.isOscEnabled()?(this.logger.info("Open IGO hotkey blocked for OSC enabled clients on GDN"),this.hotkeyService.updateBlockedHotkeysList(B.g8.OpenIGO,!0)):this.logger.info("OSC is disabled, so Open IGO hotkey will not be blocked")}getstreamerConfig(){return this.streamerConfigService.activeConfig}updateSessionLengthTime(ne){const G=ne?.message?.timerData;G&&G.beforeEventMS?this.streamingEndTime=Date.now()+G.beforeEventMS:this.logger.error("Missing timerData params:",JSON.stringify(G))}processStreamingClientMessage(ne){const G=ne;G?.message?.messageType===M.HD9.sessionLengthTimer&&this.updateSessionLengthTime(G)}getStreamingEndTime(){return this.streamingEndTime}getStreamingTitle(){return this.appTitle}quitGfnStreaming(){this.gfnEnabled&&(this.oscDisplayService.closeOSC(R.oy.QuitGath),this.quitStreaming())}quitStreaming(){this.projectInterfaceService.exitStreamerCallBack().pipe((0,d.s)(1)).subscribe(()=>this.oscDisplayService.gfnQuitting())}exitFullScreen(){this.browserSupportService.exitFullscreen()}sendFeeback(ne){if(this.feedbackService.setUpToastContainer(ne),!this.gfnEnabled)return;const G=()=>this.streamerConfigService.config$.pipe((0,y.ZZ)(le=>this.surveyService.getAvailableSurvey([E.TriggerType.Feedback],`${le.cmsId}`,this.streamingService.streamingProperties.sessionId))),W=()=>this.surveyService.isSurveyFeatureAvailable([E.TriggerType.Feedback]),$=()=>this.surveyService.surveyEventListenerCloseDialog(E.TriggerType.Feedback);this.nesUserInfoService.fetchUserInfoWithStreamingUrl().pipe((0,y.ZZ)(le=>this.feedbackService.initializeFeedback(le.serviceEndpoint.loginProvider,G,W,this.appInstanceId)),(0,n.p)(le=>le),(0,d.s)(1)).subscribe(()=>{this.feedbackService.onOpenFeedbackDialog($)})}getAppMetadataUsingCmsId(ne){return this.lcarsService.getMetadataByCmsId(ne)}getAppMetaDataUsingParentId(ne){return this.lcarsService.getAppdata(ne).pipe((0,l.T)(G=>G[0]))}getRecordSpecialCase(){return this.$disableRecordSpecialCase.asObservable()}checkRecordingCapability(ne){this.logger.info("checkRecordingCapability ",ne),this.getCodec().pipe((0,d.s)(1),(0,y.ZZ)(G=>this.featureSupportService.isShadowPlayEnabled()&&G.codec!==i.Or.Gfn.Streaming.Codec.H264&&G.codec!==i.Or.Gfn.Streaming.Codec.None?(this.logger.info("Checking Record capability ",G,ne),this.bridgeService.executeCommand(i.Ts.Gfn.Streaming.RecordingTranscodeSupport,{})):(this.logger.info("Record capability check skipped ",G,ne),(0,V.of)(!0)))).subscribe(G=>{this.logger.info("Received Transcode support boolean",G),G||(this.logger.info("Disabling recording due to missing transcode support"),this.$disableRecordSpecialCase.next(He.RECORD_SPECIAL_CASE_10bit))})}onSessionSetupSuccess(ne){if(this.logger.info("OnSessionSetupSuccess EventInfo: ",ne),this.$disableRecordSpecialCase.next(He.RECORD_SPECIAL_CASE_NONE),this.hasWarningBeenShown=this.hasAlertBeenShown=this.ignoreQScore=!1,this.getNetworkNotificationStateFromMall(),this.networkStatusInit||(this.networkStatusInit=!0,this.networkStatus()),!this.featureSupportService.isControlUGCEnabled()||!this.igoConfig.ControlUGCEnabled)return void this.$disableRecordSpecialCase.next(He.RECORD_SPECIAL_CASE_NONE);const G=ne.streamSettings[0].videoSettings.resolution.width,W=ne.streamSettings[0].videoSettings.resolution.height,$=ne.streamSettings[0].videoSettings.frameRate,Pe=G*W;this.logger.info("videoSettings.resolution.width : ",G),this.logger.info("videoSettings.resolution.height: ",W),this.playtestLiveService.disableClientRecord()?(this.logger.info("SpecialCase: PLAYTEST"),this.$disableRecordSpecialCase.next(He.RECORD_SPECIAL_CASE_PLAYTEST)):Pe>=4953600&&$>=120||$>=240?(this.logger.info("Streaming at 4K like resolution with fps >= 120"),this.$disableRecordSpecialCase.next(He.RECORD_SPECIAL_CASE_4K)):Pe>=4953600?(this.logger.info("Streaming at 4K, check if transcode to 1440p is supported for record"),this.bridgeService.executeCommand(i.Ts.Share.Shareserver.GetIf4KRecordingFallbackAvailable).subscribe(Fe=>{this.logger.info("GetIf4KRecordingFallbackAvailable result:",Fe),Fe?(this.logger.info("SpecialCase: NONE"),this.$disableRecordSpecialCase.next(He.RECORD_SPECIAL_CASE_NONE)):(this.logger.info("SpecialCase: 4K"),this.$disableRecordSpecialCase.next(He.RECORD_SPECIAL_CASE_4K))},Fe=>{this.logger.error("GetIf4KRecordingFallbackAvailable error:",Fe),this.logger.info("SpecialCase: 4K error"),this.$disableRecordSpecialCase.next(He.RECORD_SPECIAL_CASE_4K)})):(this.logger.info("SpecialCase: NONE"),this.checkRecordingCapability(He.RECORD_SPECIAL_CASE_NONE)),this.checkL4sState()}getGpuName(){return this.$gpuFriendlyName.asObservable()}getCodec(){return this.streamingService||(this.streamingService=this.injector.get(c.I),this.logger.info("StreamingService not injected getCodec")),this.streamingService.getStreamingCodec()}onGetGpuName(ne){this.$gpuFriendlyName.next(ne.gpuType)}streamingTerminated(){return this.$streamingTerminated.asObservable()}onGetGameName(){const ne=this.bridgeService.executeCommand(i.Ts.Share.Shareserver.RegisterAppNotifications).pipe((0,n.p)(G=>!!G?.appStarted)).subscribe(G=>{this.currentGameProfileName=G.appStarted.profileName,ne.unsubscribe()})}showReleaseHighlight(ne){this.releaseHighlights.onShowReleaseHighlight(!1,ne,"0")}getCurrentServer(){const ne=null==this.currentServer1;return ne&&null==this.currentServer2?{server:"Auto"}:ne?this.currentServer2:this.currentServer1}checkL4SUserEntitlement(){return this.streamingProfileService||(this.streamingProfileService=this.injector.get(M.xfC)),this.ecommerceService||(this.ecommerceService=this.injector.get(M.yJU)),this.ecommerceService.isFeatureAvailableToUser(M.N1D.ENABLED_L4S,M.q3U.SUPPORT_L4S)?(this.logger.info("User entitled for L4S"),!0):(this.logger.info("User not entitled for L4S"),!1)}networkStatus(){const ne=(0,T.zV)([this.networkBarsUiService.qualityInfo$,this.systemInfoService.getSystemInfo([_.Lu.DeviceType]).pipe((0,d.s)(1))]).pipe((0,n.p)(()=>!this.ignoreQScore),(0,f.M)(()=>{this.ignoreQScore=!0})).subscribe(([G,W])=>{let $=!1;if(this.netWorkNotificationEnabled)if(this.isQosUnderThreshold(G.streamQuality))if(G.streamQuality>this.appConfig.networkIndicators.alertThreshold){const le=!(this.hasWarningBeenShown||this.hasAlertBeenShown),Pe="notification.network.spottyConnection";this.hasWarningBeenShown=!0,le?($=!1,this.notifierService.show(H.Ed.NetworkSpottyConnection,Pe)):($=!0,this.$networkState.next(Me.WARNING))}else{if(this.hasAlertBeenShown)$=!0,this.$networkState.next(Me.ALERT);else{$=!1;const Pe=W.DeviceType===_.Y0.Phone?H.wz.Message1:this.featureSupportService.isGuestAppFlowWrapper()?H.wz.Message2:H.wz.None;this.notifierService.show(H.Ed.NetworkBadConnection,"","","","",{useAlternativeMessage:Pe})}this.hasAlertBeenShown=!0}else this.$networkState.next(Me.NORMAL);else $=!1;this.delayTimer($)});this.subscriptions.push(ne)}getHDRSupportInfo(){return this.getGameHdrSupportInfo.asObservable()}getTimerSubString(){return this.ecommerceService.getUserMembership().pipe((0,O.W)(ne=>(this.logger.error("User Membership fetch failed ",ne),(0,V.of)(null))),(0,l.T)(ne=>{const G=ne?.product?.shortDescription,W=ne?.subscription?.subType===M.hz6.TIME_CAPPED;return W?ne?.subscription?.currentSubscriptionState?.state===M.zZZ.LIMITED&&ne?.subscription?.currentSubscriptionState?.isGamePlayAllowed?(this.logger.info("User in limited playable state"),G?this.translateService.instant("mainMenu.GfnLimitedStateWarningShortDescr",{arg:G}):this.translateService.instant("mainMenu.GfnLimitedStateWarning")):(this.logger.info("User not in limited playable state"),G??null):(this.logger.info("Not a time Capped SKU ",W),G??null)}))}getHDRGameSupportInfo(){const ne=this.getstreamerConfig().cmsId;let G;G=ne?this.getAppMetadataUsingCmsId(ne):this.getAppMetaDataUsingParentId(this.streamerConfigService.activeConfig.parentGameId),G.pipe((0,l.T)(W=>{const $=this.streamingProfileService.getSupportedHDRMode(W.variants);this.getGameHdrSupportInfo.next(void 0!==$&&$!==i.Or.Gfn.Streaming.HdrStreamingMode.OFF)})).subscribe()}isUserHDREntitled(){return this.streamingProfileService.isHDRFeatureAvailableToUser()}getResolutionBadgeText(ne,G){return this.streamingProfileService.getResolutionBadgeText(ne,G)}getHDRStreamingStatus(){return this.hdrStreamingStatus}isPlatformSupportsHDRDecode(){return this.streamingProfileService.IsPlatformSupportsHDRDecode}getFormattedAspectRatio(ne,G){return this.streamingProfileService.calculateAspectRatio(ne,G)}getNetworkNotificationStateFromMall(){this.networkNotificationSubscription=this.settingsService?.networkWarningsEnabled$.subscribe(ne=>{this.netWorkNotificationEnabled=ne,this.globalStore.setItem("noteConnectionStatus",ne).pipe((0,d.s)(1)).subscribe(()=>{this.logger.info("Network Notification enabled: ",ne)},G=>{this.logger.error(`Unable to set noteConnectionStatus in store ${this.igoNotifications}`,G)})})}getNetworkWarningsEnabledState(){return this.settingsService?.networkWarningsEnabled$??(0,V.of)(!1)}getNetworkState(){return this.$networkState.asObservable()}delayTimer(ne){const W=(0,N.O)(ne?Xe.MIN_COMPACT_ICON_DURATION:Xe.MIN_EXPANDED_NETWORK_MESSAGE_DURATION).subscribe(()=>{this.ignoreQScore=!1});this.subscriptions.push(W)}isQosUnderThreshold(ne){return ne<=this.appConfig.networkIndicators.warningThreshold}getColorBitDepth(){return this.colorBitDepth}registerHDRStreamingStatusNotification(){this.bridgeService.executeCommand(i.Ts.Gfn.Streaming.RegisterHDRStreamingStatusNotification).subscribe(ne=>{this.hdrStreamingStatus=ne?J.ud.Active:J.ud.Inactive,this.logger.info("registerHDRStreamingStatusNotification: HDR streaming status: ",ne)},ne=>{this.logger.error("registerHDRStreamingStatusNotification error:",ne)})}isIgssEnabledInConfig(){return _.zk.isNativeLikePlatform()?(0,V.of)(!0):this.cloudVariableHelperService.getFeatureToggle(M.Yi6.ENABLE_BROWSER_IGSS).pipe((0,d.s)(1))}showMicIcon(){return this.micIconStatus.asObservable()}checkIfBitDepthAvailable(){return this.ecommerceService||(this.ecommerceService=this.injector.get(M.yJU)),this.appConfig||(this.appConfig=this.injector.get(M.Vk6)),this.ecommerceService?.isFeatureAvailableToUser(M.N1D.BIT_DEPTH,M.q3U.HIGHER_BIT_DEPTH)}checkL4sStateGeronimo(){this.checkL4SUserEntitlement()?this.bridgeService.executeCommand(i.Ts.Gfn.Streaming.StreamingL4SStateNotification,{}).subscribe(ne=>{this.logger.info("l4sStatusNotification received ",ne),ne?this.l4sStatusNotificationGeronimo$.next(ne.l4sState):this.logger.error("Empty L4S state received")}):this.logger.info("User not entitled to L4S, so skipping Geronimo subscription")}checkL4sState(){this.logger.info("checkL4sState"),this.checkL4SUserEntitlement()?(0,T.zV)([this.settingsService.getSettingsData(),this.streamingProfileService.getStreamingProfile(),this.streamingProfileService.readCustomProfileData()]).pipe((0,y.ZZ)(([ne,G,W])=>{this.logger.info("Shared Settings: ",ne),this.logger.info("Current Profile: ",G);const $={...G};return this.currentProfile={l4sEnabled:$?.l4sEnabled,drc:$?.drc,isCustomProfile:ne.streamingProfiles===M.SBM.Custom},this.logger.info("Streaming proile initialized to ",this.currentProfile),this.currentProfile?.drc?this.currentProfile?.l4sEnabled?(this.logger.info("DRC and L4S enabled at game launch"),this.translateService.get("statistics.L4SUnknown")):(this.logger.info("L4S disabled at game launch"),this.translateService.get("commonLabels.Inactive")):(this.logger.info("DRC disabled at game launch"),this.translateService.get("commonLabels.Inactive"))}),(0,y.ZZ)(ne=>(this.l4sStatusString$.next(ne),this.currentProfile.isCustomProfile&&this.currentProfile.l4sEnabled&&this.currentProfile.drc?(this.logger.info("Game launched with custom streaming profile"),this.geronimoWaitL4SStatus(!0)):this.currentProfile.l4sEnabled&&this.currentProfile.drc?(this.logger.info("Game launched with non-custom streaming profile"),this.geronimoWaitL4SStatus(!1)):(this.logger.info("Not waiting for response from geronimo"),(0,V.of)(null)))),(0,P.Q)(this.streamerExitNotification$)).subscribe(ne=>{},ne=>{this.logger.error("L4S State fetch failed with ",ne)},()=>{this.logger.info("L4S state fetch subscription closed")}):this.logger.info("User not entitled for L4S")}geronimoWaitL4SStatus(ne){this.logger.info("geronimoWaitL4SStatus");let G=this.currentProfile.drc;const W=ne?this.drcToggleStatus:(0,V.of)(!0);return(0,L.h)(W.pipe((0,y.ZZ)($=>(this.logger.info("DRC toggle switched in Gameplay page",$),G=$,this.translateService.get(G?"statistics.L4SUnknown":"commonLabels.Inactive")))),this.l4sStatusNotificationGeronimo$.pipe((0,y.ZZ)($=>G&&$===i.Or.Gfn.Streaming.L4SState.ACTIVE?(this.logger.info("Geronimo L4S state enabled ",$,G),this.translateService.get("commonLabels.Active")):G&&$===i.Or.Gfn.Streaming.L4SState.INACTIVE?(this.logger.info("Geronimo L4S state disabled ",$,G),this.translateService.get("commonLabels.Inactive")):G&&$===i.Or.Gfn.Streaming.L4SState.UNKNOWN?(this.logger.info("Geronimo L4S state unknown ",$,G),this.translateService.get("statistics.L4SUnknown")):(this.logger.info("Geronimo L4S response ignored since drc is disabled",G,$),(0,V.of)(null))))).pipe((0,l.T)($=>($?this.l4sStatusString$.next($):this.logger.info("Incorrect status received so ignoring",$),null)))}static{this.\u0275fac=function(G){return new(G||A)(ie.KVO(ie.zZn),ie.KVO(ve.k),ie.KVO(ue.R),ie.KVO(R.vT),ie.KVO(se.B),ie.KVO(r.qQ),ie.KVO(_.J6),ie.KVO(_.NZ),ie.KVO(B.QS),ie.KVO(Z.f),ie.KVO(r.CQ),ie.KVO(H.mb),ie.KVO(Se.$),ie.KVO(_.at),ie.KVO(_.zW),ie.KVO(Ce.c$),ie.KVO(Be.e))}}static{this.\u0275prov=ie.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})()},34414:(Bt,z,s)=>{"use strict";s.d(z,{R:()=>S});var n=s(99469),l=s(76560),d=s(58527),v=s(89284);let S=(()=>{class y{constructor(O){this.guestModeHelperService=O}get(O,P){const _=O===n.t_.MacOS?l.oO:l.vO;return this.guestModeHelperService.isGuestAppFlow()&&((O===n.t_.MacOS?l.kO:l.Hu)?.forEach((r,a)=>{void 0!==_.get(a)&&_.set(a,r)}),O===n.t_.MacOS&&P===n.dZ.SAFARI&&l.Gj?.forEach((r,a)=>{void 0!==_.get(a)&&_.set(a,r)})),_}static{this.\u0275fac=function(P){return new(P||y)(d.KVO(v.xDS))}}static{this.\u0275prov=d.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})()},73934:(Bt,z,s)=>{"use strict";s.d(z,{g8:()=>E,DX:()=>g,QS:()=>R});var n=s(80583),l=s(93181),d=s(43848),v=s(8619),S=s(83915),y=s(75707),f=s(14714),O=s(65706),P=s(10174),_=s(91384),i=s(99469),r=s(20924),a=s(26875);class c{constructor(X){this.osrName=X}}const M={CMD:new c("cmd"),N0:new c("0"),ALT:new c("alt"),TAB:new c("tab"),CTRL:new c("ctrl")};var D=s(36466),I=s(58527);let U=(()=>{class B{static{this.KeyBindImpl=class{constructor(H,J,re){this.keyBindingName=H,this.parent=J,this.keyPressed$=new n.B7,re.subscribe(this.keyPressed$)}get onKeyPressed$(){return this.keyPressed$.asObservable()}unregister(){this.parent.unregisterKeyBinding(this.keyBindingName),this.keyPressed$.complete()}}}constructor(H,J,re){this.bridgeService=J,this.systemInfoService=re,this.keyPressCallback$=new n.B7,this.keyBindings=new Map,this.platformUniqueKeys=new Map,this.logger=H.getLogger("gfn/KeybindingService"),this.setPlatformUniqueKeys(),this.init()}registerKeyBinding(H,J){if(0===H.length)throw Error("Key combination cannot have length 0");for(const ie of H)if(this.platformUniqueKeys.has(ie)&&!this.platformUniqueKeys.get(ie).includes(J))throw Error(`Key ${ie.osrName} is not supported by current platform`);const re=this.generateKeyBindingName(H);if(this.keyBindings.has(re))throw Error("Key combination already exists in keyBindings");return this.keyBindings.set(re,H),this.osrRegisterCustomKeyPress(re,re).subscribe(D.l,ie=>{this.logger.error(`Failed to register ${re} with error`,ie)}),new B.KeyBindImpl(re,this,this.keyPressCallback$.pipe((0,v.p)(ie=>ie===re)))}unregisterKeyBinding(H){if(!this.keyBindings.has(H))throw Error(`Key binding ${H} does not exist and cannot be unregisterd.`);this.keyBindings.delete(H),this.osrUnregisterCustomKeyPress(H).subscribe(D.l,J=>{this.logger.error(`Failed to unregister ${H} with error`,J)})}generateKeyBindingName(H){return(0,a.map)(H,"osrName").join("-")}init(){this.registerKeybindingCallback()}setPlatformUniqueKeys(){this.platformUniqueKeys.set(M.CMD,[i.t_.MacOS])}registerKeybindingCallback(){this.logger.info("osrRegisterKeyPressCallback"),this.systemInfoService.getDeviceOSType().pipe((0,y.ZZ)(H=>this.bridgeService.executeCommand(r.Ts.Gfn.Streaming.OsrRegisterKeyPressCallback,{osType:H}))).subscribe(H=>{if(null!==H){const J=H.toString();this.checkIfKeyBindingIsPresent(J)?this.logger.info("Keybinding is present ",J):this.logger.error("Unhandled custom keypress event type: ",J)}else this.logger.error("null custom keypress event: ",H)},H=>{this.logger.error("osrRegisterKeyPressCallback callback failure",H)})}checkIfKeyBindingIsPresent(H){let J=!1;const re=H.split("-").slice().sort();return Array.from(this.keyBindings?.keys())?.forEach(ve=>{const ue=ve?.split("-").slice().sort();(0,a.isEqual)(re,ue)&&(J=!0,this.keyPressCallback$.next(ve),this.logger.info("keyPressCallback$ is updated with ",ve))}),J}osrRegisterCustomKeyPress(H,J){return this.logger.info("osrRegisterCustomKeyPress",H,J),this.bridgeService.executeCommand(r.Ts.Gfn.Streaming.OsrRegisterCustomKeyPress,{name:H,keyCombination:J})}osrUnregisterCustomKeyPress(H){return this.logger.info("osrUnregisterCustomKeyPress",H),this.bridgeService.executeCommand(r.Ts.Gfn.Streaming.OsrUnregisterCustomKeyPress,{keyCombination:H})}static{this.\u0275fac=function(J){return new(J||B)(I.KVO(i.J6),I.KVO(i.NZ),I.KVO(i.zW))}}static{this.\u0275prov=I.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}}return B})();var V=s(25216),T=s(12137),N=s(72428),L=s(34414),E=r.Or.Share.Shareserver.HotkeyEnum,g=function(B){return B.Valid="Valid",B.Invalid="Invalid",B.InUse="InUse",B.Error="Error",B}(g||{});let R=(()=>{class B{listen(H){return this.hkCallback$.pipe((0,v.p)(J=>J===H))}listenPTT(){return this.hkPTTCallback$.asObservable()}listenChatBoxPTT(){return this.hkChatBoxPTTCallback$.asObservable()}constructor(H,J,re,ie,ve,ue,se,Z){this.loggingService=H,this.bridgeService=J,this.igoConfig=re,this.injector=ie,this.hotkeyShareService=ve,this.hotKeyHelper=ue,this.systemInfoService=se,this.hotkeyDefaultMappingService=Z,this.hkCallback$=new n.B7,this.hkPTTCallback$=new n.B7,this.hkChatBoxPTTCallback$=new n.B7,this.hotkeyChanged$=new n.B7,this.hotkeyList={},this.gfnHotkeyMappings={},this.nvAppDynamicEnableStatus={},this.nvAppDynamicHotkeysChanged$=new n.B7,this.keybindingService=null,this.streamerManagerService=null,this.blockHotkeys=!1,this.blockedHotkeysMap=new Map,this.logger=this.loggingService.getLogger("HotkeyService")}init(){this.logger.info("Hotkey service init"),!0===this.igoConfig.GFNCefClient&&this.igoConfig.IGOFeatureEnabled&&(this.keybindingService=this.injector.get(U),this.streamerManagerService=this.injector.get(V.cp)),this.getAllHotkeys(),this.bridgeService.executeCommand(r.Ts.Share.Shareserver.RegisterHotkeyNotifications).subscribe(H=>this.hotkeyEvent(H))}updateBlockedHotkeysList(H,J){J?this.blockedHotkeysMap.set(H,!0):!J&&this.blockedHotkeysMap.has(H)?this.blockedHotkeysMap.delete(H):this.logger.error("Incorrect combination of hotkey and update",H,J)}hotkeyEvent(H){if(null!==H&&(this.logger.info("Hotkey: ",H),!this.blockHotkeys&&void 0!==H.hotkey))if(H.hotkey===E.PTT&&this.hkPTTCallback$.next("Down"===H.state),H.hotkey===E.ChatPTT){const J=this.hotKeyHelper.shortcutToString(this.hotkeyList[E.ChatPTT]);if(!J||"None"===J)return;this.hkChatBoxPTTCallback$.next("Down"===H.state)}else this.hkCallback$.next(H.hotkey)}getAllHotkeys(){const H=Object.keys(E).map(re=>E[re]),J=[];H.forEach(re=>{const ie=E[re];J.push(this.getHotkeyNum(ie).pipe((0,S.T)(ve=>(this.logger.info(`Hot key mapping for ${ie} :`,ve),this.hotkeyList[ie]=ve,!0))))}),(0,l.p)(J).subscribe(()=>{H.forEach(re=>{const ie=E[re];this.keybindingService&&this.hotkeyList[ie]&&this.hotkeyList[ie].length>0&&this.registerGfnHotkey(ie,this.hotkeyList[ie])})})}getHotkeyNum(H){return this.hotkeyList[H]?(0,d.of)(this.hotkeyList[H]):this.bridgeService.executeCommand(r.Ts.Share.Shareserver.GetHotkeyShortcut,{hotkey:H}).pipe((0,S.T)(J=>J.keys))}getHotkeyString(H){return this.hotkeyList[H]?(0,d.of)(this.hotKeyHelper.shortcutToString(this.hotkeyList[H])):this.getHotkeyNum(H).pipe((0,S.T)(J=>this.hotKeyHelper.shortcutToString(J)))}setHotkeyString(H,J){return this.checkIfValidGfnHotkey(J).pipe((0,y.ZZ)(re=>re?this.bridgeService.executeCommand(r.Ts.Share.Shareserver.SetHotkeyShortcut,{hotkey:H,keys:J}):(0,d.of)({_return_internal:r.Or.Share.Shareserver.InternalErrorCodeEnum.GXP_Error_InvalidArg})),(0,S.T)(re=>re._return_internal===r.Or.Share.Shareserver.InternalErrorCodeEnum.GXP_Success_Ok?(this.keybindingService&&(this.gfnHotkeyMappings[H]&&(this.gfnHotkeyMappings[H].unregister(),this.gfnHotkeyMappings[H]=void 0),(1!==J.length||0!==J[0])&&this.registerGfnHotkey(H,J)),this.hotkeyList[H]=J,this.hotkeyChanged$.next(H),g.Valid):re._return_internal===r.Or.Share.Shareserver.InternalErrorCodeEnum.GXP_Error_InvalidArg?g.Invalid:re._return_internal===r.Or.Share.Shareserver.InternalErrorCodeEnum.GXP_Error_HotkeyInUse?g.InUse:(this.logger.info("SetHotkeyShortcut Unhandled result: ",re._return_internal),g.Error)),(0,f.W)(re=>(this.logger.info("SetHotkeyShortcut failed: ",re),(0,d.of)(g.Error))))}checkForDup(H,J){let re=!1;const ie=H.slice().sort();return J.forEach(ve=>{if(this.hotkeyList[ve].length){const ue=this.hotkeyList[ve].slice().sort();(0,a.isEqual)(ie,ue)&&(re=!0)}}),re}checkIdenticalEntry(H,J){if(!H||!this.hotkeyList[J])return!1;const re=H.slice().sort(),ie=this.hotkeyList[J].slice().sort();return(0,a.isEqual)(re,ie)}checkIfModifierKey(H){let J=!1;return i.$f.forEach(re=>{re===H&&(J=!0)}),J}checkIfWinKey(H){return 91===H||92===H}getHotkeyChangedEvents(H){return this.hotkeyChanged$.pipe((0,v.p)(J=>H.includes(J)))}checkIfValidGfnHotkey(H){if(!this.keybindingService||!H||0===H.length||1===H.length&&0===H[0])return(0,d.of)(!0);const ie=H.map(ve=>this.hotKeyHelper.processKey(ve).toLowerCase()).map(ve=>new c(ve)).map(ve=>ve.osrName).join("-");return this.bridgeService.executeCommand(r.Ts.Gfn.Streaming.OsrCheckKeyPressCombination,{keyCombination:ie}).pipe((0,f.W)(ve=>(this.logger.info("Check KeyPress Combo err: ",ve),(0,d.of)(!0))))}registerGfnHotkey(H,J){if(this.hotkeyShareService.isHotkeyInIgnoredSet(H))return void this.logger.info("Skip register gfn hotkey",H);const ie=J.map(ve=>this.hotKeyHelper.processKey(ve).toLowerCase()).map(ve=>new c(ve));this.gfnHotkeyMappings[H]&&this.gfnHotkeyMappings[H].unregister(),(1!==J.length||0!==J[0])&&this.systemInfoService.getDeviceOSType().pipe((0,O.s)(1)).subscribe(ve=>{this.gfnHotkeyMappings[H]=this.keybindingService.registerKeyBinding(ie,ve),this.gfnHotkeyMappings[H]&&this.gfnHotkeyMappings[H].onKeyPressed$.subscribe(()=>{this.logger.info("key pressed: ",H),this.blockHotkeys||this.streamerManagerService.getCurrentState()!==V.H.Streaming||this.blockedHotkeysMap.has(H)?this.logger.info("Hotkey ignored ",H,this.blockHotkeys,this.streamerManagerService.getCurrentState()):this.hkCallback$.next(H)})})}blockAllHotkeys(H){return this.blockHotkeys=H,this.bridgeService.executeCommand(r.Ts.Share.Shareserver.SetHotkeyMonitoring,{enable:!H}).pipe((0,S.T)(J=>(this.logger.info("setHotkeyMonitoring returned: ",J),!0)),(0,f.W)(J=>(this.logger.error("setHotkeyMonitoring failed: ",J),(0,d.of)(!1))))}stopListeningToHotkey(H){this.hotkeyList[H]&&this.hotkeyList[H].length<=0||(this.keybindingService&&this.gfnHotkeyMappings[H]&&(this.gfnHotkeyMappings[H].unregister(),this.gfnHotkeyMappings[H]=void 0),this.logger.info("Stop listening to hotkey",H),this.hotkeyShareService.addToIgnoredHotkeysSet(H))}startListeningToHotkey(H){if(void 0===this.hotkeyList[H]||this.hotkeyList[H].length<=0)return(0,d.of)(!0);const J=this.hotkeyShareService.isHotkeyInIgnoredSet(H);return this.logger.info("Start listening to hotkey",H,J),J&&this.hotkeyShareService.removeFromIgnoredHotkeysSet(H),this.keybindingService?this.resolveInnerConflicts(H):(0,d.of)(!0)}resolveInnerConflicts(H){const J=[];return this.systemInfoService.getDeviceOSType().pipe((0,O.s)(1),(0,S.T)(re=>{this.removeMappings(H,J,re),J&&J.length>0&&J.forEach(ie=>{this.setHotkeyString(ie,this.hotkeyDefaultMappingService.get(re).get(ie)).subscribe(ve=>{ve===g.Valid?this.logger.info("Resolve Conflicts result is: ",ve):this.logger.error("Some Error occurred while resolving conflicts")})}),this.registerGfnHotkey(H,this.hotkeyList[H])}),(0,P.u)(!0))}removeMappings(H,J,re){const ie=this.findDuplicate(H,J,re);void 0!==ie&&(this.gfnHotkeyMappings[ie]&&(this.gfnHotkeyMappings[ie].unregister(),this.gfnHotkeyMappings[ie]=void 0),J.push(ie),this.removeMappings(ie,J,re))}findDuplicate(H,J,re){let ie;return Object.keys(E).map(ue=>E[ue]).forEach(ue=>{const se=E[ue];if(se!==H&&this.hotkeyList[se]?.length>0)if(0===J.length)this.checkIdenticalEntry(this.hotkeyList[se],H)&&(ie=se);else{const Z=this.hotkeyDefaultMappingService.get(re).get(H);ie=Z&&this.checkIdenticalEntry(Z,se)?se:void 0}}),this.logger.info("duplicate hotkey found: ",ie),ie}resetToDefaults(){return this.logger.info("resetToDefaults"),this.bridgeService.executeCommand(r.Ts.Share.Shareserver.ResetHotkeysToDefault).pipe((0,f.W)(()=>(0,d.of)(!0)),(0,_.M)(()=>{this.hotkeyList={},Object.keys(E).map(J=>E[J]).forEach(J=>{this.keybindingService&&this.gfnHotkeyMappings[J]&&(this.gfnHotkeyMappings[J].unregister(),this.gfnHotkeyMappings[J]=void 0),this.hotkeyChanged$.next(E[J])}),this.getAllHotkeys()}),(0,P.u)(!0))}triggerHotkeyCallbacks(H){this.hkCallback$.next(H)}triggerChatBoxPTTCallback(H){this.hkChatBoxPTTCallback$.next(H)}nvAppDynamicHokeysChangedEvent(){return this.nvAppDynamicHotkeysChanged$.asObservable()}isNvAppHotkeyEnabled(H){return this.nvAppDynamicEnableStatus[H]}setHotkeyDynamicEnable(H,J,re=!1){this.logger.info("setHotkeyDynamicEnable:",H,J,re),re||(H.forEach(ie=>{this.nvAppDynamicEnableStatus[ie]=J}),this.nvAppDynamicHotkeysChanged$.next()),this.bridgeService.executeCommand(r.Ts.Share.Shareserver.SetHotkeyDynamicEnable,{enable:J,keys:H}).subscribe(ie=>{this.logger.info("setHotkeyDynamicEnable result:",ie)},ie=>{this.logger.error("setHotkeyDynamicEnable error:",ie)})}static{this.\u0275fac=function(J){return new(J||B)(I.KVO(i.J6),I.KVO(i.NZ),I.KVO(T.k),I.KVO(I.zZn),I.KVO(N.f),I.KVO(i.Ho),I.KVO(i.zW),I.KVO(L.R))}}static{this.\u0275prov=I.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}}return B})()},72428:(Bt,z,s)=>{"use strict";s.d(z,{f:()=>S});var n=s(20924),l=s(58527),d=s(99469),v=n.Or.Share.Shareserver.HotkeyEnum;let S=(()=>{class y{constructor(O){this.ignoredHotkeysSet=new Set([v.DVRSave,v.InStreamPaste]),this.logger=O.getLogger("HotkeyShareService")}addToIgnoredHotkeysSet(O){this.ignoredHotkeysSet.add(O),this.logger.info("Added hotkey to ignore set:",O)}removeFromIgnoredHotkeysSet(O){this.ignoredHotkeysSet.delete(O),this.logger.info("Removed hotkey from ignore set:",O)}isHotkeyInIgnoredSet(O){return this.ignoredHotkeysSet.has(O)}static{this.\u0275fac=function(P){return new(P||y)(l.KVO(d.J6))}}static{this.\u0275prov=l.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})()},50057:(Bt,z,s)=>{"use strict";s.d(z,{A:()=>i});var n=s(80583),l=s(43848),d=s(20924),v=s(83915),S=s(14714),y=s(91384),f=s(58527),O=s(99469);const P="overrides",_=P+".json";let i=(()=>{class r{constructor(c,m){this.loggingService=c,this.bridgeService=m,this.localConfigChangedNotification=new n.B7,this.generateExceptionFlag=!1,this.logger=this.loggingService.getLogger("IgoPiplLocaleConfigService"),this.registerForlocaleChangeNotification()}getLocaleOverride(){return this.bridgeService.executeCommand(d.Ts.Common.Nvlocalizedconfig.GetLocalizationData)}setServerURL(c){this.serverURL=c}generateException(){this.generateExceptionFlag=!0}getGenerateExceptionFlag(){return this.generateExceptionFlag}getServerURL(){return this.serverURL}localConfigChangeNotification(){return this.localConfigChangedNotification.asObservable()}readOverrides(){return this.bridgeService.executeCommand(d.Ts.Common.Applicationcontrol.ReadGenericConfig,{configname:_,path:[P]}).pipe((0,v.T)(m=>m[P]),(0,S.W)(m=>(this.logger.error("Failed to fetch locale overrides",m),(0,l.of)(null))))}registerForlocaleChangeNotification(){this.bridgeService.executeCommand(d.Ts.Common.Nvlocalizedconfig.LocalizationDataChangeNotification).pipe((0,y.M)(c=>{this.logger.info("Received Localization Data Change Notification: ",c),c?.jsEvents?.server!==this.getServerURL()?this.localConfigChangedNotification.next(c):this.logger.info("Telemetry URL unchanged ",c?.jsEvents?.server)}),(0,S.W)(c=>(this.logger.error("Failed to get overrides",c),(0,l.of)(!1)))).subscribe()}static{this.\u0275fac=function(m){return new(m||r)(f.KVO(O.J6),f.KVO(O.NZ))}}static{this.\u0275prov=f.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},57412:(Bt,z,s)=>{"use strict";s.d(z,{B:()=>U});var n=s(26513),l=s(43848),d=s(36466),v=s(75707),S=s(91384),y=s(8619),f=s(25590),O=s(83915),P=s(14714),_=s(26875),r=s(81834),a=s(20924),c=s(78854),m=s(51830),M=s(58527),D=s(99469),I=s(5798);let U=(()=>{class V{constructor(N,L,E,g,R){this.injector=N,this.loggingService=L,this.endpointFactory=E,this.bridgeService=g,this.localeService=R,this.currentGameChromaInfo$=new n.t({}),this.logger=this.loggingService.getLogger("LcarsService")}populateIgoAppConfig(N){this.logger.info("AppConfig populated"),this.igoAppConfig=N}init(){this.shadowPlayService=this.injector.get(m.W1),this.registerAppNotifications()}getCurrentAppChromaInfo(){return this.currentGameChromaInfo$.asObservable()}registerAppNotifications(){this.listenToAppStartedNotification(),this.listenToAppExitNotification(),this.listenToLocalChangedEvent()}listenToAppStartedNotification(){let N;this.shadowPlayService.registerAppStartedEvent().pipe((0,v.ZZ)(L=>{const E=L.appStarted.ChromaAppId;if(N=L,!E||"None"===E){const g={};return g.id=E,g.nvidiaTech={FREESTYLE:!0,RTXDVC:!0},g.title="",(0,l.of)(g)}return this.getAppAssetsByAppId(N)}),(0,S.M)(L=>{if(!L?.nvidiaTech)return void this.logger.error("erroneous LCARS response:",L);const E={};E.cmsId=N.appStarted.cmsId,E.pid=N.appStarted.pid,E.profileName=N.appStarted.profileName,E.id=L.id,E.title=L.title,E.nvidiaTech=L.nvidiaTech,this.logger.info("App chroma info fetched for ",E),this.currentGameChromaInfo$.next(E)})).subscribe(d.l,L=>{this.logger.error("error to register for app started notification:",L)})}listenToAppExitNotification(){this.bridgeService.executeCommand(a.Ts.Share.Shareserver.RegisterGeneralNotifications).pipe((0,y.p)(N=>!!N.gameExited),(0,f.E)(this.currentGameChromaInfo$.asObservable()),(0,S.M)(([N,L])=>{N.gameExited.exitAppPID===L?.pid&&this.currentGameChromaInfo$.next({})})).subscribe(d.l,N=>{this.logger.error("error to register for app exit notification:",N)})}listenToLocalChangedEvent(){this.localeService.localeChanged.pipe((0,S.M)(N=>{this.currentLocale=N})).subscribe(d.l,N=>{this.logger.error("failed to apply slot automatically: ",N.message)})}fetchAppsAndGamesAssets(N,L){const E=Object.assign({requestType:L},{query:N}),g={headers:this.createHeader(),params:E};return this.queryDataEndpoint=this.endpointFactory.createEndpoint({config:{timeout:this.igoAppConfig.lcars.defaultTimeout,timeBetweenRetries:this.igoAppConfig.lcars.defaultTimeBetweenRetries,maxRetries:this.igoAppConfig.lcars.defaultRetries}}),this.queryDataEndpoint.get((0,r.l2)([this.igoAppConfig.lcars.serverUrlCDN]),g).pipe((0,O.T)(X=>{const H=X?.data?.apps.items;return(0,_.isEmpty)(H)?[]:H}))}getAppAssetsByAppId(N){const E=this.getAppAssetsQueryOptions(this.currentLocale,N.appStarted.ChromaAppId),g=(0,c.az)(E);return this.fetchAppsAndGamesAssets(g,c.cW.AppMetaData).pipe((0,O.T)(R=>R[0]),(0,P.W)(R=>{this.logger.error("Error while chroma app metadata query",R);const B={};return B.cmsId=N.appStarted.cmsId,B.pid=N.appStarted.pid,this.currentGameChromaInfo$.next(B),(0,l.of)(null)}))}getAppAssetsQueryOptions(N,L){return{language:N,appIds:this.forMatStringsArray(Array.isArray(L)?L:[L])}}forMatStringsArray(N){return N.map(L=>JSON.stringify(L)).join(",")}createHeader(){return{"NV-Client-ID":this.igoAppConfig.lcars.clientId,"NV-Client-Version":this.igoAppConfig.build.version,"Content-Type":"application/graphql"}}static{this.\u0275fac=function(L){return new(L||V)(M.KVO(M.zZn),M.KVO(D.J6),M.KVO(I.t),M.KVO(D.NZ),M.KVO(D.iH))}}static{this.\u0275prov=M.jDH({token:V,factory:V.\u0275fac,providedIn:"root"})}}return V})()},78854:(Bt,z,s)=>{"use strict";s.d(z,{CZ:()=>d,az:()=>l,cW:()=>n});var n=function(v){return v.AppMetaData="appMetaData",v}(n||{});const l=v=>`{\n apps(\n language: "${v.language}",\n appIds:[${v.appIds}]) {\n items {\n id\n title\n nvidiaTech {\n PHOTO_MODE\n FREESTYLE\n RTXDVC\n REFLEX\n REFLEXFLASHINDICATOR\n REFLEXFIAUTO\n REFLEXSTATS\n GAMEASSIST\n }\n }\n }}`,d=3e4},72582:(Bt,z,s)=>{"use strict";s.d(z,{o:()=>f});var n=s(80583),l=s(58527),d=s(99469),v=s(10279),S=s(27211),y=s(14354);let f=(()=>{class O{escapeEvent(){return this.escapeCallback$.asObservable()}centerPaneClosedEvent(){return this.centerPaneCallback$.asObservable()}constructor(_,i,r,a){this.telemetryHelperService=i,this.telemetryIgoService=r,this.router=a,this.disableEscape=!1,this.escapeCallback$=new n.B7,this.centerPaneCallback$=new n.B7,this.centerPaneOpened=!1,this.logger=_.getLogger("NavigationService")}navigate(_,i,r){this.disableEscape=!1;const a=Date.now();return r?this.router.navigate(_,i).then(c=>(this.telemetryIgoService.trackNavigation(a,r),c),c=>(this.logger.error("error:",c),!1)):this.router.navigate(_,i)}goToNextNavState(){this.disableEscape||(this.centerPaneOpened?this.centerPaneCallback$.next():this.escapeCallback$.next(),this.centerPaneOpened=!1),this.disableEscape=!1}openCenterPane(_){this.centerPaneOpened&&!_&&this.centerPaneCallback$.next(),this.centerPaneOpened=_}disableEscapeEvent(_){this.disableEscape=_}disableCenterPaneCallback(){this.centerPaneOpened=!1}static{this.\u0275fac=function(i){return new(i||O)(l.KVO(d.J6),l.KVO(v.x),l.KVO(S.S),l.KVO(y.Ix))}}static{this.\u0275prov=l.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})()},8559:(Bt,z,s)=>{"use strict";s.d(z,{DP:()=>y,LM:()=>v,N5:()=>S,VJ:()=>l,aT:()=>d,lD:()=>r,xF:()=>i,xJ:()=>_,yE:()=>a}),s(20924);var l=function(c){return c[c["dlssoverride.performanceModes.performance"]=0]="dlssoverride.performanceModes.performance",c[c["dlssoverride.performanceModes.balanced"]=1]="dlssoverride.performanceModes.balanced",c[c["dlssoverride.performanceModes.quality"]=2]="dlssoverride.performanceModes.quality",c[c["dlssoverride.performanceModes.default"]=3]="dlssoverride.performanceModes.default",c[c["dlssoverride.performanceModes.dlaa"]=4]="dlssoverride.performanceModes.dlaa",c[c["dlssoverride.performanceModes.ultraPerformance"]=5]="dlssoverride.performanceModes.ultraPerformance",c[c["dlssoverride.performanceModes.custom"]=6]="dlssoverride.performanceModes.custom",c}(l||{}),d=function(c){return c[c["dlssoverride.performanceModes.performance"]=0]="dlssoverride.performanceModes.performance",c[c["dlssoverride.performanceModes.balanced"]=1]="dlssoverride.performanceModes.balanced",c[c["dlssoverride.performanceModes.quality"]=2]="dlssoverride.performanceModes.quality",c[c["dlssoverride.performanceModes.ultraPerformance"]=3]="dlssoverride.performanceModes.ultraPerformance",c[c["dlssoverride.performanceModes.dlaa"]=5]="dlssoverride.performanceModes.dlaa",c[c["dlssoverride.performanceModes.custom"]=6]="dlssoverride.performanceModes.custom",c[c["dlssoverride.performanceModes.default"]=9999]="dlssoverride.performanceModes.default",c}(d||{}),v=function(c){return c[c["dlssoverride.models.default"]=0]="dlssoverride.models.default",c[c["dlssoverride.models.presetA"]=1]="dlssoverride.models.presetA",c[c["dlssoverride.models.presetB"]=2]="dlssoverride.models.presetB",c[c["dlssoverride.models.presetC"]=3]="dlssoverride.models.presetC",c[c["dlssoverride.models.presetD"]=4]="dlssoverride.models.presetD",c[c["dlssoverride.models.presetE"]=5]="dlssoverride.models.presetE",c[c["dlssoverride.models.presetF"]=6]="dlssoverride.models.presetF",c[c["dlssoverride.models.presetJ"]=10]="dlssoverride.models.presetJ",c[c["dlssoverride.models.presetK"]=11]="dlssoverride.models.presetK",c[c["dlssoverride.models.presetL"]=12]="dlssoverride.models.presetL",c[c["dlssoverride.models.presetM"]=13]="dlssoverride.models.presetM",c[c["dlssoverride.models.presetN"]=14]="dlssoverride.models.presetN",c[c["dlssoverride.models.presetO"]=15]="dlssoverride.models.presetO",c[c["dlssoverride.models.latest"]=16777215]="dlssoverride.models.latest",c}(v||{}),S=function(c){return c[c.MetricValueOff=0]="MetricValueOff",c[c["dlssoverride.fg.off"]=1]="dlssoverride.fg.off",c[c["dlssoverride.fg.value_3x"]=2]="dlssoverride.fg.value_3x",c[c["dlssoverride.fg.value_4x"]=3]="dlssoverride.fg.value_4x",c}(S||{}),y=function(c){return c[c.DlssDD=57580]="DlssDD",c[c.FgxDD=57e3]="FgxDD",c}(y||{});const _="N/A",i="commonLabels.Off",r="commonLabels.Inactive",a="statistics.L4SUnknown"},10356:(Bt,z,s)=>{"use strict";s.d(z,{z:()=>D});var n=s(26513),l=s(43848),d=s(93181),v=s(59859),S=s(83915),y=s(8619),f=s(72147),O=s(14714),P=s(20924),_=s(11728),i=s(8559),r=s(58527),a=s(99469),c=s(2688),m=s(33452),M=s(96542);let D=(()=>{class I{constructor(V,T,N,L,E,g){this.injector=V,this.loggingService=T,this.bridgeService=N,this.featureSupportService=L,this.perfMonService=E,this.translateService=g,this.disabledDueToGlobalToggle=!1,this.isValidGameRunning$=new n.t(!1),this.isFgSupported=!1,this.fgEnabled=!1,this.currentGameInfo=void 0,this.restartRequiredFgx=!1,this.isDlssSupportedDD=!1,this.isFgxSupportedDD=!1,this.dlssFGSupported=!1,this.dlssSRSupported=!1,this.dlssRRSupported=!1,this.dlssSMSupported=!1,this.dlssFGEnabled=!1,this.dlssSREnabled=!1,this.dlssRREnabled=!1,this.dlssSMEnabled=!1,this.dlssFGCountOff=!1,this.dlssSRModeOff=!1,this.dlssRRModeOff=!1,this.dlssFGCountSupported=!1,this.dlssSRModeSupported=!1,this.dlssRRModeSupported=!1,this.logger=this.loggingService.getLogger("NgxService")}init(){this.logger.info("Initialize"),this.oscDisplayService=this.injector.get(_.B),this.registerAppNotifications(),this.disabledDueToGlobalToggle=!this.featureSupportService.isNgxAvailable()}isNgxAvailable(){return this.featureSupportService.isNgxAvailable()}isValidGameRunning(){return this.isValidGameRunning$.asObservable()}isValidGameRunningValue(){return this.isValidGameRunning$.value}isDlssFGSupported(){return this.dlssFGSupported}isDlssSRSupported(){return this.dlssSRSupported}isDlssRRSupported(){return this.dlssRRSupported}isDlssFGEnabled(){return this.dlssFGEnabled}isDlssSREnabled(){return this.dlssSREnabled}isDlssRREnabled(){return this.dlssRREnabled}isDlssSMEnabled(){return this.dlssSMEnabled}isDlssOrSmEnabled(){return this.dlssFGEnabled||this.dlssSREnabled||this.dlssRREnabled||this.dlssSMEnabled}isDlssFGCountOff(){return this.dlssFGCountOff}isDlssSRModeOff(){return this.dlssSRModeOff}isDlssRRModeOff(){return this.dlssRRModeOff}isDlssFGCountSupported(){return this.dlssFGCountSupported}isDlssSRModeSupported(){return this.dlssSRModeSupported}isDlssRRModeSupported(){return this.dlssRRModeSupported}getNGXOverrideSRState(V=!1){return this.logger.info("Calling DLSS SR state "),this.bridgeService.executeCommand(P.Ts.Share.Graphicssetting.GetNGXOverrideSRState,{localId:V?0:this.currentGameInfo.localId,cmsId:V?0:this.currentGameInfo.cmsId})}getNGXOverrideRRState(V=!1){return this.logger.info("Calling DLSS RR state "),this.bridgeService.executeCommand(P.Ts.Share.Graphicssetting.GetNGXOverrideRRState,{localId:V?0:this.currentGameInfo.localId,cmsId:V?0:this.currentGameInfo.cmsId})}getNGXOverrideFGState(V=!1){return this.logger.info("Calling DLSS FG state "),this.bridgeService.executeCommand(P.Ts.Share.Graphicssetting.GetNGXOverrideFGState,{localId:V?0:this.currentGameInfo.localId,cmsId:V?0:this.currentGameInfo.cmsId})}getFgxDrsState(V){return this.logger.info(" : getNGXOverrideFGXState currentGameInfo : ",this.currentGameInfo),this.bridgeService.executeCommand(P.Ts.Share.Graphicssetting.GetFGXState,{localId:V?0:this.currentGameInfo.localId,cmsId:V?0:this.currentGameInfo.cmsId})}getFgxDynamicState(){return this.logger.info(" : getNGXOverrideFGXDynState currentGameInfo : ",this.currentGameInfo),this.bridgeService.executeCommand(P.Ts.Share.Graphicssetting.GetFGXDynamicState,{processId:this.currentGameInfo.procId,localId:this.currentGameInfo.localId,cmsId:this.currentGameInfo.cmsId})}getNgxDDSupport(){return this.featureSupportService.isNvApp()?this.bridgeService.executeCommand(P.Ts.Share.Nvperfmon.CheckRLASupportedDriver).pipe((0,S.T)(V=>(this.isDlssSupportedDD=V.driverVersion>=i.DP.DlssDD,this.isFgxSupportedDD=V.driverVersion>=i.DP.FgxDD,this.logger.info("DLSS Support",+this.isDlssSupportedDD+" Ver: "+V.driverVersion+" Min. DD is: "+i.DP.DlssDD),this.logger.info("FGX Support",+this.isFgxSupportedDD+" Ver: "+V.driverVersion+" Min. DD is: "+i.DP.FgxDD),[this.isDlssSupportedDD,this.isFgxSupportedDD]))):(0,l.of)([!1,!1])}launchNgxMenu(){this.logger.info("launchNgxPerformanceMenu"),this.oscDisplayService.openOSC("sidebar/ngx/ngx-menu")}registerAppNotifications(){this.bridgeService.executeCommand(P.Ts.Share.Shareserver.RegisterGeneralNotifications).pipe((0,y.p)(V=>!!V?.gameExited)).subscribe(V=>{this.onGameExit()}),this.bridgeService.executeCommand(P.Ts.Share.Shareserver.RegisterAppNotifications).pipe((0,y.p)(V=>!!V?.appStarted),(0,f.n)(V=>(this.logger.info(" App Start Data: ",V),this.currentGameInfo=V?{procId:V.appStarted.pid,cmsId:V.appStarted.cmsId,localId:V.appStarted.localId,drsName:V.appStarted.DRSAppName,drsProfileName:V.appStarted.profileName,shortName:V.appStarted.shortName,drsWhitelist:!1}:{procId:0,cmsId:0,localId:0,drsName:"",drsProfileName:"",shortName:"",drsWhitelist:!1},this.onGameStart(this.currentGameInfo.cmsId,this.currentGameInfo.localId,this.currentGameInfo.procId)))).subscribe(V=>{this.logger.info("onGameLaunched command: ",V),this.currentGameInfo.procId&&(this.currentGameInfo.cmsId||this.currentGameInfo.localId)?(this.isValidGameRunning$.next(!!V),V&&setTimeout(()=>{(this.isDlssSupportedDD||this.isFgxSupportedDD)&&this.GetFeatureProfileSettings(this.currentGameInfo.localId,this.currentGameInfo.cmsId)},1e3)):this.isValidGameRunning$.next(!1)})}checkFGSupportConstraints(V){const T=V.constraintsFG[0]?.parameters;return!!T&&(T.bUnknown||T.bGpuUnsupported||T.bDriverUnsupported||T.bDenyListed?(this.dlssFGSupported=!1,this.dlssFGCountSupported=!1,this.perfMonService.setDlssFGModelmetric(i.xJ),this.perfMonService.setDlssFGCountmetric(i.xJ),!1):(this.dlssFGSupported=!0,this.dlssFGCountSupported=!T.bFGMultiFrameCountUnsupported,this.dlssFGCountSupported||this.perfMonService.setDlssFGCountmetric(i.xJ),!0))}checkSRSupportConstraints(V){const T=V.constraintsSR[0]?.parameters;return!!T&&(T.bUnknown||T.bGpuUnsupported||T.bDriverUnsupported||T.bSRModelDenyListed?(this.dlssSRSupported=!1,this.dlssSRModeSupported=!1,this.perfMonService.setDlssSRModelmetric(i.xJ),this.perfMonService.setDlssSRModemetric(i.xJ),!1):(this.dlssSRSupported=!0,this.dlssSRModeSupported=!T.bDenyListed,this.dlssSRModeSupported||this.perfMonService.setDlssSRModemetric(i.xJ),!0))}checkRRSupportConstraints(V){const T=V.constraintsRR[0]?.parameters;return!!T&&(T.bUnknown||T.bGpuUnsupported||T.bDriverUnsupported||T.bRRModelDenyListed?(this.dlssRRSupported=!1,this.dlssRRModeSupported=!1,this.perfMonService.setDlssRRModelmetric(i.xJ),this.perfMonService.setDlssRRModemetric(i.xJ),!1):(this.dlssRRSupported=!0,this.dlssRRModeSupported=!T.bDenyListed,this.dlssRRModeSupported||this.perfMonService.setDlssRRModemetric(i.xJ),!0))}checkSMSupportConstraints(V){const T=V.constraintsSM[0]?.parameters;return!(!T||T.bUnknown||T.bGpuUnsupported||T.bDriverUnsupported||T.bDenyListed||T.bHWSUnavailable||T.bGraphicsApiUnsupported)}GetFeatureProfileSettings(V,T){this.logger.info("Profile Settings called "),this.bridgeService.executeCommand(P.Ts.Share.Graphicssetting.GetProfileSettingsForNvApp,{localId:V,cmsId:T}).pipe((0,S.T)(L=>(this.logger.info("Profile info ",L),this.isDlssSupportedDD&&(this.dlssFGSupported=this.checkFGSupportConstraints(L),this.dlssSRSupported=this.checkSRSupportConstraints(L),this.dlssRRSupported=this.checkRRSupportConstraints(L)),this.isFgxSupportedDD&&(this.dlssSMSupported=this.checkSMSupportConstraints(L)),!0)),(0,f.n)(()=>(0,d.p)([this.getDlssFgFeatureState(this.dlssFGSupported),this.getDlssSrFeatureState(this.dlssSRSupported),this.getDlssRrFeatureState(this.dlssRRSupported),this.getFgxFeatureState(this.dlssSMSupported)])),(0,f.n)(([L,E,g,R])=>(0,d.p)([L?this.getDlssFgFeatureState(this.dlssFGSupported,L):(0,l.of)(void 0),E?this.getDlssSrFeatureState(this.dlssSRSupported,E):(0,l.of)(void 0),g?this.getDlssRrFeatureState(this.dlssRRSupported,g):(0,l.of)(void 0),R?this.getFgxFeatureState(this.dlssSMSupported,R):(0,l.of)(void 0)]))).subscribe()}onGameLaunchedCommand(V){return this.bridgeService.executeCommand(P.Ts.Share.Graphicssetting.DlssOnGameLaunched,V)}changeMFG(V,T){const N={localId:this.currentGameInfo?this.currentGameInfo.localId:0,cmsId:this.currentGameInfo.cmsId,overrideEnabled:V.overrideEnabled,dlssOverrideFgMultiFrameFeedback:V.dlssOverrideFgMultiFrameFeedback,overrideMultiFrameCountId:T};return this.logger.info("mfg Drs is being updated ",N),this.bridgeService.executeCommand(P.Ts.Share.Graphicssetting.SetNGXOverrideFGState,N)}onGameStart(V,T,N){const L={processId:N,localId:T,cmsId:V};return this.logger.info("OnGameLaunched ",L),this.restartRequiredFgx=!0,this.onGameLaunchedCommand(L)}onGameExit(){this.isValidGameRunning$.next(!1),this.currentGameInfo={procId:0,cmsId:0,localId:0,drsName:"",drsProfileName:"",shortName:"",drsWhitelist:!1},this.restartRequiredFgx=!1,this.clearDlssValues()}getDlssSrFeatureState(V,T=!1){return V&&this.isValidGameRunningValue()?this.getNGXOverrideSRState(T).pipe((0,S.T)(N=>(this.logger.info("DLSS SR state ",N),N?!(T||!N.isUseGlobal)||(this.dlssSREnabled=N.overrideEnabled,this.dlssSRModeOff=N.performanceMode===i.VJ["dlssoverride.performanceModes.default"],N.overrideEnabled?(this.perfMonService.requestNgxPolling(),this.perfMonService.setDlssSRModelmetric(i.lD),this.dlssSRModeSupported&&this.perfMonService.setDlssSRModemetric(this.dlssSRModeOff?i.xF:i.lD)):(this.perfMonService.setDlssSRModelmetric(i.xF),this.dlssSRModeSupported&&this.perfMonService.setDlssSRModemetric(i.xF)),!1):(this.perfMonService.setDlssSRModelmetric(i.xF),this.dlssSRModeSupported&&this.perfMonService.setDlssSRModemetric(i.xF),!1))),(0,O.W)(N=>(this.logger.info("Get DLSS SR state error : ",N),this.perfMonService.setDlssSRModelmetric(i.yE),this.perfMonService.setDlssSRModemetric(i.yE),(0,l.of)(!1)))):(this.perfMonService.setDlssSRModelmetric(i.xJ),this.perfMonService.setDlssSRModemetric(i.xJ),(0,l.of)(!1))}getDlssRrFeatureState(V,T=!1){return V&&this.isValidGameRunningValue()?this.getNGXOverrideRRState(T).pipe((0,S.T)(N=>(this.logger.info("DLSS RR state ",N),N?!(T||!N.isUseGlobal)||(this.dlssRREnabled=N.overrideEnabled,this.dlssRRModeOff=N.performanceMode===i.VJ["dlssoverride.performanceModes.default"],N.overrideEnabled?(this.perfMonService.requestNgxPolling(),this.perfMonService.setDlssRRModelmetric(i.lD),this.dlssRRModeSupported&&this.perfMonService.setDlssRRModemetric(this.dlssRRModeOff?i.xF:i.lD)):(this.perfMonService.setDlssRRModelmetric(i.xF),this.dlssRRModeSupported&&this.perfMonService.setDlssRRModemetric(i.xF)),!1):(this.perfMonService.setDlssRRModelmetric(i.xF),this.dlssRRModeSupported&&this.perfMonService.setDlssRRModemetric(i.xF),!1))),(0,O.W)(N=>(this.logger.info("Get DLSS RR state error : ",N),this.perfMonService.setDlssRRModelmetric(i.yE),this.perfMonService.setDlssRRModemetric(i.yE),(0,l.of)(!1)))):(this.perfMonService.setDlssRRModelmetric(i.xJ),this.perfMonService.setDlssRRModemetric(i.xJ),(0,l.of)(!1))}getDlssFgFeatureState(V,T=!1){return V&&this.isValidGameRunningValue()?this.getNGXOverrideFGState(T).pipe((0,S.T)(N=>(this.logger.info("DLSS FG state ",N),N?!(T||!N.isUseGlobal)||(this.dlssFGEnabled=N.overrideEnabled,this.dlssFGCountOff=N.overrideMultiFrameCountId<=i.N5["dlssoverride.fg.off"],N.overrideEnabled?(this.perfMonService.requestNgxPolling(),this.perfMonService.setDlssFGModelmetric(i.lD),this.dlssFGCountSupported&&this.perfMonService.setDlssFGCountmetric(this.dlssFGCountOff?i.xF:i.lD)):(this.perfMonService.setDlssFGModelmetric(i.xF),this.dlssFGCountSupported&&this.perfMonService.setDlssFGCountmetric(i.xF)),!1):(this.perfMonService.setDlssFGModelmetric(i.xF),this.dlssFGCountSupported&&this.perfMonService.setDlssFGCountmetric(i.xF),!1))),(0,O.W)(N=>(this.logger.info("Get DLSS FG state error : ",N),this.perfMonService.setDlssFGModelmetric(i.yE),this.perfMonService.setDlssFGCountmetric(i.yE),(0,l.of)(!1)))):(this.perfMonService.setDlssFGModelmetric(i.xJ),this.perfMonService.setDlssFGCountmetric(i.xJ),(0,l.of)(!1))}getFgxFeatureState(V,T=!1){return V&&this.isValidGameRunningValue()?this.getFgxDrsState(T).pipe((0,S.T)(N=>(this.logger.info("Fgx Drs state ",N),!(!N||(T||!N.isUseGlobal)&&(this.dlssSMEnabled=N.isFgxEnabled,N.isFgxEnabled&&this.perfMonService.requestNgxPolling(),this.perfMonService.setDlssSMmetric(i.lD),1)))),(0,O.W)(N=>(this.logger.info("Get FGX DRS state error : ",N),this.perfMonService.setDlssSMmetric(i.yE),(0,l.of)(!1)))):(this.perfMonService.setDlssSMmetric(i.xJ),(0,l.of)(!0))}clearDlssValues(){this.dlssFGSupported=!1,this.dlssSRSupported=!1,this.dlssRRSupported=!1,this.dlssSMSupported=!1,this.dlssFGEnabled=!1,this.dlssSREnabled=!1,this.dlssRREnabled=!1,this.dlssSMEnabled=!1,this.dlssFGCountOff=!1,this.dlssSRModeOff=!1,this.dlssRRModeOff=!1,this.dlssSRModeSupported=!1,this.dlssRRModeSupported=!1,this.dlssFGCountSupported=!1}getApplications(){return this.logger.info("getApplications"),this.bridgeService.executeCommand(P.Ts.Gfe.Localgames.GetApplications).pipe((0,S.T)(V=>(this.logger.info("GetApplications successful"),V)),(0,O.W)(V=>(this.logger.error("GetApplications error:",V),(0,v.$)(V))))}getLocalId(V){let T=0;return this.getApplications().pipe((0,S.T)(N=>{const L=N.applications.findIndex(E=>E.displayName===V);return-1===L?this.logger.info(V+" was not found on your system."):(this.logger.info("Fetched for ",V," LocalId: ",N.applications[L].localId),T=N.applications[L].localId),T}),(0,O.W)(N=>(this.logger.info("Error in GetApplicationsReturn",N),(0,l.of)(T))))}static{this.\u0275fac=function(T){return new(T||I)(r.KVO(r.zZn),r.KVO(a.J6),r.KVO(a.NZ),r.KVO(c.R),r.KVO(m.z),r.KVO(M.c$))}}static{this.\u0275prov=r.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}}return I})()},75042:(Bt,z,s)=>{"use strict";s.d(z,{a:()=>_});var n=s(83915),l=s(75707),d=s(14714),v=s(43848),S=s(99469),y=s(20924),f=s(73934),O=s(58527),P=s(12137);let _=(()=>{class i{constructor(a,c,m,M,D){this.igoConfig=c,this.systemInfoService=m,this.bridgeService=M,this.hotKeyHelper=D,this.logger=a.getLogger("OsService")}init(){return this.logger.info("Initialize"),"GFE"===this.igoConfig.branding?this.systemInfoService.getSystemInfo([S.Lu.Platform]).pipe((0,n.T)(a=>(this.logger.info("Platform: ",a.Platform),this.isWindows=a.Platform===S.aI.Windows,this.isOptimus=!1,!0)),(0,l.ZZ)(()=>this.bridgeService.executeCommand(y.Ts.Share.Graphicssetting.GetGPUInfo)),(0,n.T)(a=>(this.isOptimus="1"===a.IsOptimus,this.logger.info("IsOptimus: ",this.isOptimus),!0)),(0,d.W)(()=>(0,v.of)(!0))):this.systemInfoService.getSystemInfo([S.Lu.Platform,S.Lu.Network]).pipe((0,n.T)(a=>(this.logger.info("Platform: ",a.Platform),this.isWindows=a.Platform===S.aI.Windows,this.isOptimus=!1,this.networkInfo=a.Network,this.logger.info("NetworkInfo: ",this.networkInfo),!0)))}getDirSeparator(){return"GFE"===this.igoConfig.branding||this.isWindows?"\\":"/"}getFileBaseSize(){return this.isWindows?1024:1e3}getQuitHotkey(){return this.bridgeService.executeCommand(y.Ts.Share.Shareserver.GetHotkeyShortcut,{hotkey:f.g8.QuitGame}).pipe((0,n.T)(a=>a.keys),(0,n.T)(a=>this.hotKeyHelper.shortcutToString(a)))}getOSType(){return this.isWindows?S.aI.Windows:S.aI.Mac}getIsOptimus(){return this.isOptimus}getNetworkInfo(){return this.networkInfo}static{this.\u0275fac=function(c){return new(c||i)(O.KVO(S.J6),O.KVO(P.k),O.KVO(S.zW),O.KVO(S.NZ),O.KVO(S.Ho))}}static{this.\u0275prov=O.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})()},11728:(Bt,z,s)=>{"use strict";s.d(z,{B:()=>Me});var n=s(14354),l=s(26513),d=s(85735),v=s(80583),S=s(43848),y=s(31315),f=s(27731),O=s(16229),P=s(10174),_=s(72147),i=s(75707),r=s(8619),a=s(65706),c=s(14714),m=s(91384),M=s(36666),D=s(83915),I=s(48765),U=s(4208),V=s(99469),T=s(20924),N=s(44968),L=s(48852),E=s(73934),g=s(23860),R=s(53914),B=s(16485),X=s(25216),H=s(54292),J=s(72238),re=s(10918),ie=s(89284),ve=s(58527),ue=s(2688),se=s(12137),Z=s(27211),Se=s(72582),Ce=s(26537),Be=s(65597),Xe=s(50801),He=s(44202);let Me=(()=>{class Q{getCurrentOpenStateImmediate(){return this.currentOpenState$.value}getCurrentOpenState(){return this.currentOpenState$.asObservable()}getCurrentDesktopModeImmediate(){return"desktop"===this.currentDesktopMode$.value}getCurrentDesktopMode(){return this.currentDesktopMode$.asObservable()}getLastActiveWindow(){return this.lastActiveWindow}getCanShowUI(){return this.showUI$.asObservable()}getIsUIAllowed(){return this.showUI$.value}getHideSidebar(){return this.hideSidebar}getSidebarVisibilityChange$(){return this.sideBarVisible$.asObservable()}setHideSidebar(me){this.hideSidebar=me,this.sideBarVisible$.next(!me)}setOutsideClickState(me){this.clickOutsideSidebarState=me}getOutsideClickState(){return this.clickOutsideSidebarState}getRtxHdrStatus$(){return this.rtxHdrState$.asObservable()}getRtxHdrEnable(){return!this.inDesktopMode&&this.rtxHdrState$.value}setRtxHdrStatus(me){this.rtxHdrState$.next(me)}getNativeHdrStatus$(){return this.nativeHdrState$.asObservable()}getNativeHdrEnable(){return this.nativeHdrState$.value}isDisplayStateCheckComplete(){return this.hdrStateCheckStatus$.asObservable()}constructor(me,ne,G,W,$,le,Pe,Fe,At,Le,Et,$e,Ze,Qe,Ve,nt){this.featureSupportService=me,this.hotkeyService=ne,this.notifierService=G,this.loggingService=W,this.bridgeService=$,this.injector=le,this.ngZone=Pe,this.igoConfig=Fe,this.telemetryIgo=At,this.navigationService=Le,this.dialog=Et,this.snackBar=$e,this.browserSupportService=Ze,this.projectInterfaceService=Qe,this.gamepadService=Ve,this.clientInputService=nt,this.transitioning=!1,this.openNoInput=0,this.openWithInput=!1,this.isInteractivePersistentModeOpen=!1,this.needToOpen=!1,this.paintingAllowed=!0,this.lastActiveWindow=null,this.inDesktopMode=null,this.inFakeFSMode=null,this.inGamepadOrientedMode=null,this.isGfnBrowserDevMode=null,this.isGfnMobileMode=null,this.appInFocus=null,this.needTransitionWorkaround=!1,this.pathSegments=[],this.startingState="sidebar/main-menu",this.startingStateName=R.jb.mainMenu,this.osrHandler=null,this.applicationLifetime=null,this.quitShownHandle=null,this.useAlternateHotkeyForIGO=!1,this.currentOpenState$=new l.t("closed"),this.currentDesktopMode$=new l.t("desktop"),this.currentDisplayMode$=new l.t({}),this.currentCursorType$=new l.t({cursorId:0}),this.showUI$=new l.t(!0),this.gfnStreamerService=null,this.streamerConfigService=null,this.streamerHelperService=null,this.storeDelayedState=void 0,this.osdDisplayRect=[],this.hideSidebar=!1,this.sideBarVisible$=new d.m(1),this.rtxHdrState$=new l.t(!1),this.nativeHdrState$=new l.t(!1),this.hdrStateCheckStatus$=new l.t(!1),this.visibileNotificationCount=0,this.notificationVisible$=new v.B7,this.forceOSDDisplayRectUpdate$=new v.B7,this.clickOutsideSidebarState=!0,this.isChartOrImageDialogOpen=!1,this.displayResolutionAvailable$=new d.m(1),this.launchGAssistWindowMessage$=new v.B7,this.streamerState$=new l.t(void 0),this.logger=this.loggingService.getLogger("OscDisplayService"),this.inGamepadOrientedMode=me.isGamepadOrientedMode(),this.isGfnBrowserDevMode=me.isGfnBrowserDevMode(),this.isGfnMobileMode=me.isGfnMobileMode(),"GFN"===this.igoConfig.branding&&(this.streamerConfigService=this.injector.get(ie.zi2),this.gfnAppConfig=this.injector.get(ie.Vk6),this.streamerHelperService=this.injector.get(ie.HFx)),Fe.Path&&(this.pathSegments=Fe.Path.split("/"))}doOpenWindow(me,ne=!1){return this.logger.info("doOpenWindow:",me,ne),V.zk.isBrowserPlatform()&&me&&this.browserSupportService.setExitPath(H.oy.IGO),null!==this.osrHandler?this.osrHandler.open(me).pipe((0,P.u)(null)):(!me&&ne?setTimeout(()=>{this.openNoInput>0&&!this.openWithInput&&this.setDisplayRects().subscribe()},1e3):me?this.unsetDisplayRects().subscribe():this.setDisplayRects().subscribe(),this.bridgeService.executeCommand(T.Ts.Share.Osc.OpenWindow,{enableInput:me}))}getLongPressDuration(){return this.streamerConfigService.config$.pipe((0,_.n)(me=>{this.logger.info("Streamer config received and long press duration will be checked ",me.cmsId);const ne=me.cmsId.toString(),G=this.gfnAppConfig.igo.gamepadLongStartPressDurationOverride;if(G&&G.hasOwnProperty(ne)){const W=G[ne];return this.logger.info("Long press start duration will be increased for the game ",W),(0,S.of)(W)}return this.logger.info("Long press start duration will not be increased for the game ",this.gfnAppConfig.gamepadConfig.longPressDuration),(0,S.of)(this.gfnAppConfig.gamepadConfig.longPressDuration)}))}doCloseWindow(me){this.logger.info("doCloseWindow:"),V.zk.isBrowserPlatform()&&this.browserSupportService.resetExitPath(),null===this.osrHandler?(this.unsetDisplayRects().subscribe(),this.hdrStateCheckStatus$.next(!1),this.bridgeService.executeCommand(T.Ts.Share.Osc.CloseWindow).subscribe()):this.osrHandler.close().subscribe()}setDisplayRects(){return this.featureSupportService.isRectOptimizationEnabled()&&"GFE"===this.igoConfig.branding?(this.logger.info("setDisplayRects, visibileNotificationCount:",this.visibileNotificationCount),(0,S.of)(this.visibileNotificationCount).pipe((0,i.ZZ)(me=>me>0?this.notificationVisible$.asObservable():(0,S.of)(!1)),(0,r.p)(me=>!me),(0,a.s)(1),(0,i.ZZ)(()=>{if(this.openWithInput||this.isInteractivePersistentModeOpen)return this.logger.info("skipping setDisplayRects, interactive IGO up"),(0,S.of)("true");const me=this.osdDisplayRect;return this.logger.info("setDisplayRects:",me),this.bridgeService.executeCommand(T.Ts.Share.Osc.SetDisplayRects,{displayRects:me})}),(0,c.W)(()=>(0,S.of)("Error setting display rects")))):(0,S.of)("")}unsetDisplayRects(){return this.featureSupportService.isRectOptimizationEnabled()&&"GFE"===this.igoConfig.branding?(this.logger.info("unsetDisplayRects"),this.bridgeService.executeCommand(T.Ts.Share.Osc.SetDisplayRects,{displayRects:[]}).pipe((0,c.W)(()=>(0,S.of)("Error setting display rects")))):(0,S.of)("")}init(){if(this.logger.info("initialized osc display"),this.router=this.injector.get(n.Ix),!0===this.igoConfig.GFNCefClient&&this.igoConfig.IGOFeatureEnabled){const G=this.injector.get(B.Gm);G&&(this.osrHandler=G.createOsrHandler("OscDisplayService")),this.applicationLifetime=this.injector.get(N.lM),this.applicationLifetime&&(this.quitShownHandle=this.applicationLifetime.addWorkOnShutdownRequested(this.gfnQuitting.bind(this))),this.showUI$.next(!1),this.gfnStreamerService=this.injector.get(X.cp),this.gfnStreamerService.getCurrentStateChanges().subscribe(W=>{this.logger.info("streaming state change: ",W),this.streamerState$.next(W),W===X.H.Streaming?this.gfnStreamingEnter():this.gfnStreamingExit()}),this.projectInterfaceService.triggerCloseIGO.subscribe(W=>{W&&this.closeOSC(H.oy.QuitGath)}),this.projectInterfaceService.triggerOpenIGOSystemSettings.subscribe(W=>{W&&this.openOSC("sidebar/settings/system")}),this.featureSupportService.isInputControlEnabled()&&this.clientInputService.inputControlUIOpened$.pipe((0,r.p)(W=>W)).subscribe(()=>{this.closeOSC()}),this.clientInputService.imeOpened$.subscribe(W=>{W&&this.closeOSC()})}else this.aiChatboxService=this.injector.get(J.D),this.aiChatboxService?.getIsChartOrImageDialogChangedEvent().subscribe(G=>{this.isChartOrImageDialogOpen=!0}),(0,y.zV)([this.currentCursorType$,this.currentDisplayMode$]).pipe((0,_.n)(([G,W])=>W?.fullscreen?(this.logger.info("Sending cursor info to CEF",G.cursorId),this.bridgeService.executeCommand(T.Ts.Share.Osc.SetCursorInfo,{cursorId:G.cursorId})):(0,S.of)(null))).subscribe();this.router.events.subscribe(G=>{G instanceof n.Z?this.preNavigate(G.url):G instanceof n.wF&&this.postNavigate()}),this.useAlternateHotkeyForIGO=this.featureSupportService.usesAlternateHotkeyForIGO(),this.bridgeService.executeCommand(T.Ts.Share.Shareserver.RegisterWindowStateChangeNotifications).subscribe(G=>this.windowEvent(G));const me=(0,y.zV)([this.projectInterfaceService.enableListener,this.getCanShowUI()]).pipe((0,_.n)(([G,W])=>G&&W?this.useAlternateHotkeyForIGO?this.gamepadService.onButtonComboPressed$([L.dt.DpadUp,L.dt.LeftBumper]).pipe((0,r.p)($=>$),(0,m.M)($=>this.logger.info("IGO hotkey combination buttons pressed."))):this.getCurrentOpenState().pipe((0,_.n)($=>{const le=this.gamepadService.onButtonPressed$(L.dt.Start).pipe((0,r.p)(Pe=>!1===Pe));return"closed"===$?this.getLongPressDuration().pipe((0,_.n)(Pe=>(this.logger.info("Received long press duration ",Pe),this.gamepadService.onButtonLongPressed$(L.dt.Start,Pe)))):le.pipe((0,M.i)(1))})):f.t)),ne=this.featureSupportService.isLongPressShortcutEnabled()?(0,O.h)(this.hotkeyService.listen(E.g8.OpenIGO),me):this.hotkeyService.listen(E.g8.OpenIGO);this.isGfnMobileMode||ne.subscribe(()=>this.toggleOSCFromHotkey()),this.igoConfig.GFNCefClient||(this.bridgeService.executeCommand(T.Ts.Share.Osc.RegisterCloseCommand).subscribe(()=>{this.aiChatboxService.takeChatBoxToNonInteractiveMode(),this.closeOSC()}),this.bridgeService.executeCommand(T.Ts.Share.Osc.RegisterResizeEvent).subscribe(()=>{this.handleOSCResize()}))}preNavigate(me){"/"!==me&&(this.bridgeService.executeCommand(T.Ts.Share.Osc.SetPainting,{enablePainting:!1}).subscribe(),this.paintingAllowed=!1),this.needToOpen&&(this.needToOpen=!1,this.doOpenWindow(!0).subscribe(ne=>{ne&&"noWindow"!==ne&&(this.lastActiveWindow=ne),this.notifyOverlayState(!0),this.telemetryIgo.sendStartupTelemetry()}))}postNavigate(){this.needTransitionWorkaround?(this.needTransitionWorkaround=!1,this.router.navigate([...this.pathSegments,{outlets:{igo:[this.startingState]}}]),this.logger.info("Going to starting state now")):(this.paintingAllowed||(this.bridgeService.executeCommand(T.Ts.Share.Osc.SetPainting,{enablePainting:!0}).subscribe(),this.paintingAllowed=!0),this.transitioning=!1)}windowEvent(me){if(null!=me)if(this.logger.info("Window event: ",me),"dismiss"===me.windowMsg)this.aiChatboxService.takeChatBoxToNonInteractiveMode(),this.closeOSC();else if("fullscreenTransition"===me.windowMsg)null!==this.inDesktopMode&&(this.openNoInput||this.openWithInput)&&("toDesktop"===me.direction&&!this.currentDisplayMode?.fullscreen||this.aiChatboxService.takeChatBoxToNonInteractiveMode(),this.getFSMode().subscribe(G=>{if(this.logger.info("new display state: ",G),this.logger.info("current display state: ",this.currentDisplayMode),!G)return;const W=!G.fullscreen;let $=!1;!W&&this.currentDisplayMode&&(G.width!==this.currentDisplayMode.width||G.height!==this.currentDisplayMode.height)&&($=!0),this.currentDisplayMode=G,(W!==this.inDesktopMode||!W&&G.borderlessMode!==this.inFakeFSMode||$)&&(this.inDesktopMode=W,this.inFakeFSMode=G.borderlessMode,this.currentDisplayMode$.next(this.currentDisplayMode),this.triggerForcedDisplayRectUpdate(),this.transitionDisplayFullscreen(),this.logger.info("closing OSC because of state change"))}));else if("overlayToggle"===me.windowMsg)this.toggleOSCFromHotkey();else if("showPreferences"===me.windowMsg)this.launchGAssistWindowMessage$.next();else if("showHotkeyMessage"===me.windowMsg){const ne="GFE"===this.igoConfig.branding?"product.NVIDIA":"product.GFN",G="GFE"===this.igoConfig.branding?g.Ed.OpenShareNvApp:g.Ed.OpenShare;this.inGamepadOrientedMode&&!this.useAlternateHotkeyForIGO?this.featureSupportService.isGuestAppFlowWrapper()?this.notifierService.show(G,"","","","",{useAlternativeMessage:g.wz.Message4,useAlternativeIcon:!0}):this.notifierService.show(G,ne,"","","",{useAlternativeMessage:g.wz.Message1}):this.inGamepadOrientedMode&&this.useAlternateHotkeyForIGO?this.featureSupportService.isGuestAppFlowWrapper()?this.notifierService.show(G,"notification.HotkeyForXbox","","","",{useAlternativeMessage:g.wz.Message3,useAlternativeIcon:!0}):this.notifierService.show(G,"notification.HotkeyForXbox",ne):!this.featureSupportService.isGuestAppFlowWrapper()||this.featureSupportService.isGfnMobileMode()||this.featureSupportService.getForceTouchModeSettings()?.useOsc?!this.isGfnMobileMode&&!this.featureSupportService.getForceTouchModeSettings()?.useOsc&&this.displayIGOOpenNotification(G,ne):(0,y.zV)([this.hotkeyService.getHotkeyString(T.Or.Share.Shareserver.HotkeyEnum.OpenIGO),this.featureSupportService.isGfnMicrophoneEnabled()]).pipe((0,a.s)(1)).subscribe(([W,$])=>{W&&W.length&&this.notifierService.show(G,W,"","","",{useAlternativeMessage:$?g.wz.Message2:g.wz.Message3,useAlternativeIcon:!0})})}}displayIGOOpenNotification(me,ne){const G=this.hotkeyService.getHotkeyString(T.Or.Share.Shareserver.HotkeyEnum.OpenIGO).pipe((0,D.T)(Pe=>(this.logger.info("IGO Open KB notification hotkey",Pe),Pe&&Pe.length&&this.notifierService.show(me,Pe,ne),!1)),(0,a.s)(1)),W=this.projectInterfaceService.exitStreamerFlowNotify,$=this.gamepadService.isGamepadConnected$.pipe((0,i.ZZ)(Pe=>(this.logger.info("IGO Open notification Gamepad ",Pe),Pe?(this.notifierService.show(me,ne,"","","",{useAlternativeMessage:g.wz.Message1}),(0,S.of)(!0)):G)),(0,I.v)(Pe=>!Pe),(0,c.W)(Pe=>(this.logger.info("IGO open notification error ",Pe),G)),(0,U.Q)(W));(this.featureSupportService.isLongPressShortcutEnabled()?$:G).subscribe()}fetchDisplayResolution(){this.featureSupportService.enlargeIGOTextFont()?this.bridgeService.executeCommand(T.Ts.Gfn.Streaming.GetDisplayMode).pipe((0,a.s)(1)).subscribe(me=>{this.logger.info("Received display resolution details ",me),me.logical.width<=re.im&&me.logical.height<=re.$S?(this.logger.info("using smaller display resolution"),this.displayResolutionAvailable$.next(!0)):(this.logger.info("not using smaller display resolution"),this.displayResolutionAvailable$.next(!1))}):(this.logger.info("Resolution check skipped, overlay resolution will be set to 1080p"),this.displayResolutionAvailable$.next(!1))}gfnStreamingEnter(){this.showUI$.next(!0),this.displayResolutionAvailable$.pipe((0,a.s)(1),(0,i.ZZ)(me=>{this.logger.info("gfnStreamingEnter ",me);let ne={width:re.im,height:re.$S};return me&&(ne={width:re.xs,height:re.W6}),this.bridgeService.executeCommand(T.Ts.Gfn.Streaming.OsrSetOverlayResolution,{width:ne.width,height:ne.height})})).subscribe(),this.storeDelayedState&&this.storeDelayedState.state&&this.storeDelayedState.state.length>0&&setTimeout(()=>{this.openOSC(this.storeDelayedState.state,this.storeDelayedState.stateParams),this.storeDelayedState=void 0},500)}gfnStreamingExit(){this.getIsUIAllowed()&&(this.showUI$.next(!1),this.closeAll(),this.bridgeService.executeCommand(T.Ts.Gfn.Streaming.OsrSetOverlayResolution,{width:0,height:0}).subscribe())}gfnQuitting(){return this.openWithInput&&this.closeOSC(),(0,S.of)(!1)}getFSMode(){return this.bridgeService.executeCommand(T.Ts.Share.Osc.FullscreenState)}getAppInFocus(){return this.appInFocus}requestAppInFocus(){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetCaptureProcessInfo,{appType:T.Or.Share.Shareserver.AppType.in_focus}).pipe((0,i.ZZ)(me=>(this.logger.info("requestAppInFocus: success ",me),this.appInFocus=me,(0,S.of)(!0))),(0,c.W)(me=>(this.logger.info("requestAppInFocus: error ",me),(0,S.of)(!0))))}closeAll(){for(this.openWithInput&&this.closeOSC();this.openNoInput>0;)this.closeNonInteractiveOSC();this.doCloseWindow()}openOSC(me=null,ne={}){this.logger.info("OpenOSC"),!this.transitioning&&(this.clientInputService.imeInputInProgress&&setTimeout(()=>{this.clientInputService.closeImeInput()}),this.featureSupportService.isInputControlEnabled()&&this.clientInputService.toggleInputControlUI(!1),this.requestAppInFocus().subscribe(()=>{this.openSelectedOSC(me,ne)}))}openSelectedOSC(me=null,ne={}){if(this.showUI$.value)return!me&&""!==me&&(me=this.startingState),this.router.url===this.startingState&&(this.needTransitionWorkaround=!0,me=null,this.logger.info("Need transition workaround")),this.openWithInput||(this.transitioning=!0,this.openWithInput=!0,this.needToOpen=!0,this.currentOpenState$.next("open")),this.checkDisplayState(),me&&""!==me?void this.navigationService.navigate([...this.pathSegments,{outlets:{igo:[...me.split("/"),ne]}}],{skipLocationChange:!0},this.startingStateName):(this.preNavigate("/"),void this.postNavigate());this.storeDelayedState={state:me,stateParams:ne}}navigateToNull(){return this.navigationService.navigate([...this.pathSegments,{outlets:{igo:null}}],{skipLocationChange:!0},R.jb.none)}closeOSC(me){if(this.logger.info("closeOSC"),this.openWithInput&&!this.transitioning){if(this.isChartOrImageDialogOpen||this.dialog.closeAll(),this.snackBar.dismiss(),this.appInFocus=null,this.openWithInput=!1,this.navigateToNull().then(ne=>{ne||(this.logger.info("navigation failed, retrying"),setTimeout(()=>{this.navigateToNull()},100))},ne=>{this.logger.info("navigation rejected: ",ne),setTimeout(()=>{this.navigateToNull()},100)}),this.currentOpenState$.next("closed"),this.notifyOverlayState(!1),this.isInteractivePersistentModeOpen)return void this.logger.info("InteractivePersistentModeOpen, skipping window close");this.openNoInput>0?(this.logger.info("Open OSC without input"),this.doOpenWindow(!1,!0).subscribe(),setTimeout(()=>{this.setDisplayRects().subscribe()})):(this.logger.info("Close OSC"),this.doOpenWindow(!1,!0).subscribe(),setTimeout(()=>{0===this.openNoInput&&!this.openWithInput&&this.doCloseWindow(me)},1e3))}}openNonInteractiveOSC(){if(this.logger.info("openNonInteractiveOSC"),!this.showUI$.value)return;this.checkDisplayState();const me=0===this.openNoInput;this.openNoInput+=1,me?this.openWithInput||(this.logger.info("Open OSC without input"),this.doOpenWindow(!1).subscribe()):this.logger.info("Non-interactive overlay already up")}closeNonInteractiveOSC(){this.logger.info("closeNonInteractiveOSC"),0!==this.openNoInput&&(this.openNoInput-=1,this.openNoInput<0&&(this.openNoInput=0),setTimeout(()=>{0===this.openNoInput&&!this.openWithInput&&(this.logger.info("Close OSC"),this.doCloseWindow(H.oy.OscNotification))},5e3))}convertRect(me){return me.map(ne=>({x:Math.round(ne.x),y:Math.round(ne.y),width:Math.round(ne.width),height:Math.round(ne.height)}))}setOSDDisplayRectangles(me){this.osdDisplayRect=this.convertRect(me),this.openNoInput>0&&!this.openWithInput&&this.setDisplayRects().subscribe()}transitionDisplayFullscreen(){if(!(this.openNoInput<=0)||this.openWithInput){if(this.openWithInput){if(!(this.dialog.openDialogs.length>0))return this.logger.info("Interactive ui is up during FS transition, closing it"),void this.closeOSC();this.logger.info("Dialog open during FS transition")}this.doCloseWindow(),setTimeout(()=>{this.logger.info("Reopening OSC after state change"),this.doOpenWindow(this.openWithInput).subscribe(()=>{this.inDesktopMode&&this.ngZone.run(()=>{this.logger.info("Refreshing ui on switching to DT mode")})}),this.currentDesktopMode$.next(this.inDesktopMode?"desktop":"fullscreen")},1e3)}}setNotificationStart(){this.visibileNotificationCount++,this.notificationVisible$.next(!0),this.unsetDisplayRects().subscribe()}setNotificationStop(){this.visibileNotificationCount--,this.visibileNotificationCount<0&&(this.logger.error("Something is wrong, visibileNotificationCount < 0"),this.visibileNotificationCount=0),0===this.visibileNotificationCount&&this.notificationVisible$.next(!1),this.setDisplayRects().subscribe()}registerForcedDisplayRectUpdate(){return this.forceOSDDisplayRectUpdate$.asObservable()}triggerForcedDisplayRectUpdate(){this.forceOSDDisplayRectUpdate$.next(!0)}getCurrentDisplayMode(){return this.currentDisplayMode$.asObservable()}setCurrentCursorShape(me){this.currentCursorType$.next(me)}checkDisplayState(){this.getFSMode().subscribe(me=>{if(!me)return;this.logger.info("display state:",me);const G=this.inDesktopMode!==!me.fullscreen||me.width!==this.currentDisplayMode?.width||me.height!==this.currentDisplayMode?.height;this.currentDisplayMode=me,this.inDesktopMode=!me.fullscreen,this.inDesktopMode&&(me.hdrMode=!1),G&&this.currentDisplayMode$.next(this.currentDisplayMode),this.nativeHdrState$.next(me.hdrMode)},me=>{this.logger.info("Could not query fs state: ",me),this.inDesktopMode=!0,this.hdrStateCheckStatus$.next(!0)},()=>{this.currentDesktopMode$.next(this.inDesktopMode?"desktop":"fullscreen"),this.hdrStateCheckStatus$.next(!0)})}notifyOverlayState(me){}toggleOSCFromHotkey(){this.transitioning||(this.openWithInput?this.closeOSC():(this.telemetryIgo.beginStartupTimer(R.gh.openHotkey),this.openOSC()))}handleOSCResize(){this.logger.info("handleOSCResize"),this.triggerForcedDisplayRectUpdate()}getInteractiveModeForPersistentOverlay(){return this.logger.info("getInteractiveModeForPersistentOverlay:",this.isInteractivePersistentModeOpen),this.isInteractivePersistentModeOpen}openInteractiveModeForPersistentOverlay(){this.logger.info("openInteractiveModeForPersistentOverlay, openWithInput",this.openWithInput),this.isInteractivePersistentModeOpen=!0,!this.openWithInput&&setTimeout(()=>{this.currentOpenState$.next("open"),this.doOpenWindow(!0).subscribe()},100)}closeInteractiveModeForPersistentOverlay(){this.logger.info("closeInteractiveModeForPersistentOverlay, openWithInput",this.openWithInput),this.isInteractivePersistentModeOpen=!1,!this.openWithInput&&setTimeout(()=>{this.currentOpenState$.next("closed"),this.doOpenWindow(!1).subscribe()},100)}getLaunchGAssistWindowEvents(){return this.launchGAssistWindowMessage$.asObservable()}static{this.\u0275fac=function(ne){return new(ne||Q)(ve.KVO(ue.R),ve.KVO(E.QS),ve.KVO(g.mb),ve.KVO(V.J6),ve.KVO(V.NZ),ve.KVO(ve.zZn),ve.KVO(ve.SKi),ve.KVO(se.k),ve.KVO(Z.S),ve.KVO(Se.o),ve.KVO(Ce.bZ),ve.KVO(Be.UG),ve.KVO(H.vT),ve.KVO(Xe.qQ),ve.KVO(L.bi),ve.KVO(He.$))}}static{this.\u0275prov=ve.jDH({token:Q,factory:Q.\u0275fac,providedIn:"root"})}}return Q})()},23860:(Bt,z,s)=>{"use strict";s.d(z,{Ed:()=>O,Jk:()=>P,mb:()=>r,wz:()=>_});var n=s(80583),l=s(43848),d=s(93181),v=s(14714),S=s(91384),y=s(58527),f=s(99469),O=function(a){return a[a.Empty=0]="Empty",a[a.OpenShare=1]="OpenShare",a[a.OpenShareNvApp=2]="OpenShareNvApp",a[a.InstantReplayStarted=3]="InstantReplayStarted",a[a.InstantReplayStopped=4]="InstantReplayStopped",a[a.InstantReplaySaving=5]="InstantReplaySaving",a[a.InstantReplaySaved=6]="InstantReplaySaved",a[a.RecordStarted=7]="RecordStarted",a[a.RecordSaving=8]="RecordSaving",a[a.RecordStopped=9]="RecordStopped",a[a.ScreenshotSaved=10]="ScreenshotSaved",a[a.PhotographicScreenshotSavedToGallery=11]="PhotographicScreenshotSavedToGallery",a[a.WarningFullscreenGameRequired=12]="WarningFullscreenGameRequired",a[a.WarningRecordingStopToCustomize=13]="WarningRecordingStopToCustomize",a[a.WarningHighlightsStopToCustomize=14]="WarningHighlightsStopToCustomize",a[a.WarningRecordingStopToUseFeature=15]="WarningRecordingStopToUseFeature",a[a.WarningInstantReplayStopToUseFeature=16]="WarningInstantReplayStopToUseFeature",a[a.WarningSupportedGameRequired=17]="WarningSupportedGameRequired",a[a.WarningNvidiaGpuRequired=18]="WarningNvidiaGpuRequired",a[a.HighlightsSaved=19]="HighlightsSaved",a[a.FailedToRemove=20]="FailedToRemove",a[a.GalleryIsFull=21]="GalleryIsFull",a[a.DiskSpaceIsLow=22]="DiskSpaceIsLow",a[a.NoSpaceCaptureNotSaved=23]="NoSpaceCaptureNotSaved",a[a.NoSpaceCaptureNotStarted=24]="NoSpaceCaptureNotStarted",a[a.ErrorRestartGame=25]="ErrorRestartGame",a[a.PhotoModeNotAllowedNvApp=26]="PhotoModeNotAllowedNvApp",a[a.PhotoModeNotAllowed=27]="PhotoModeNotAllowed",a[a.CustomOverlaySlotEmpty=28]="CustomOverlaySlotEmpty",a[a.ManualRecordRunning=29]="ManualRecordRunning",a[a.ConnectingToGfnBroadcast=30]="ConnectingToGfnBroadcast",a[a.ConnectedToGfnBroadcast=31]="ConnectedToGfnBroadcast",a[a.FailedToConnectGfnBroadcast=32]="FailedToConnectGfnBroadcast",a[a.DisconnectedFromGfnBroadcast=33]="DisconnectedFromGfnBroadcast",a[a.NetworkSpottyConnection=34]="NetworkSpottyConnection",a[a.NetworkBadConnection=35]="NetworkBadConnection",a[a.OnscreenKeyboardUsage=36]="OnscreenKeyboardUsage",a[a.HDRErrorRecord=37]="HDRErrorRecord",a[a.HDRErrorScreenshot=38]="HDRErrorScreenshot",a[a.HDRErrorHighlight=39]="HDRErrorHighlight",a[a.PerfMonLogging=40]="PerfMonLogging",a[a.PerfMonRectAlignmentWarning=41]="PerfMonRectAlignmentWarning",a[a.PerfMonRfiWarning=42]="PerfMonRfiWarning",a[a.ProtectedContentWarning=43]="ProtectedContentWarning",a[a.HighlightsSavedToGallery=44]="HighlightsSavedToGallery",a[a.GAssistLaunchError=45]="GAssistLaunchError",a[a.GAssistChartDataSaved=46]="GAssistChartDataSaved",a[a.GAssistChartDataSaveError=47]="GAssistChartDataSaveError",a}(O||{}),P=function(a){return a[a.Empty=0]="Empty",a[a.OpenOverlay=1]="OpenOverlay",a[a.ConnectionStatus=2]="ConnectionStatus",a[a.SaveIRToGallery=3]="SaveIRToGallery",a[a.SaveMRToGallery=4]="SaveMRToGallery",a[a.SaveSSToGallery=5]="SaveSSToGallery",a[a.SaveHLToGallery=6]="SaveHLToGallery",a[a.IROnOff=7]="IROnOff",a[a.MROn=8]="MROn",a[a.RecordHDRError=9]="RecordHDRError",a[a.HighlightHDRError=10]="HighlightHDRError",a[a.ScreenshotHDRError=11]="ScreenshotHDRError",a[a.ProtectedContentWarning=12]="ProtectedContentWarning",a[a.SaveHLFromTempToGallery=13]="SaveHLFromTempToGallery",a}(P||{}),_=function(a){return a[a.None=0]="None",a[a.Message1=1]="Message1",a[a.Message2=2]="Message2",a[a.Message3=3]="Message3",a[a.Message4=4]="Message4",a}(_||{});const i={useAlternativeMessage:_.None,useAlternativeIcon:!1,useAlternativeIconClass:""};let r=(()=>{class a{constructor(m,M){this.loggingService=m,this.dbService=M,this.notification$=new n.B7,this.globalStore=null,this.igoNotifications="IgoNotifications",this.globalToggleStore="GlobalToggle",this.globalState=!0,this.initialState=!0,this.controls=[{saveStr:"noteOverlay",control:P.OpenOverlay,enable:this.initialState,controlledNotifiers:[O.OpenShare,O.OpenShareNvApp]},{saveStr:"noteSaveIR",control:P.SaveIRToGallery,enable:this.initialState,controlledNotifiers:[O.InstantReplaySaving,O.InstantReplaySaved]},{saveStr:"noteSaveMR",control:P.SaveMRToGallery,enable:this.initialState,controlledNotifiers:[O.RecordSaving,O.RecordStopped]},{saveStr:"noteSaveSS",control:P.SaveSSToGallery,enable:this.initialState,controlledNotifiers:[O.ScreenshotSaved,O.PhotographicScreenshotSavedToGallery]},{saveStr:"noteSaveHL",control:P.SaveHLToGallery,enable:this.initialState,controlledNotifiers:[O.HighlightsSaved]},{saveStr:"noteOnOffIR",control:P.IROnOff,enable:this.initialState,controlledNotifiers:[O.InstantReplayStarted,O.InstantReplayStopped]},{saveStr:"noteOnMR",control:P.MROn,enable:this.initialState,controlledNotifiers:[O.RecordStarted]},{saveStr:"noteConnectionStatus",control:P.ConnectionStatus,enable:this.initialState,controlledNotifiers:[O.NetworkSpottyConnection,O.NetworkBadConnection]},{saveStr:"noteHDRErrorScreenshot",control:P.ScreenshotHDRError,enable:this.initialState,controlledNotifiers:[O.HDRErrorScreenshot]},{saveStr:"noteHDRErrorHighlight",control:P.HighlightHDRError,enable:this.initialState,controlledNotifiers:[O.HDRErrorHighlight]},{saveStr:"noteHDRErrorRecord",control:P.RecordHDRError,enable:this.initialState,controlledNotifiers:[O.HDRErrorRecord]},{saveStr:"noteProtectedContentWarning",control:P.ProtectedContentWarning,enable:this.initialState,controlledNotifiers:[O.ProtectedContentWarning]},{saveStr:"noteSaveHLToGallery",control:P.SaveHLFromTempToGallery,enable:this.initialState,controlledNotifiers:[O.HighlightsSavedToGallery]}],this.logger=this.loggingService.getLogger("OscNotificationService"),this.globalStore=this.dbService.getGlobalStore(this.igoNotifications)}getOscEvents(){return this.notification$.asObservable()}showInternal(m,M,D="",I="",U="",V="",T=i){this.isNotificationBlocked(m)||this.notification$.next({selection:m,arg1:D,arg2:I,flip:M,thumb:V,alternateNotificationData:T})}show(m,M="",D="",I="",U="",V=i){this.showInternal(m,!1,M,D,I,U,V)}flipTo(m,M="",D="",I="",U="",V=i){this.showInternal(m,!0,M,D,I,U,V)}init(){const m=this.globalStore.getItem(this.globalToggleStore).subscribe(M=>{void 0!==M&&(this.globalState=M)},M=>{this.logger.error("Failed to read global notification state",M)},()=>{m.unsubscribe()});this.controls.forEach(M=>{const D=this.globalStore.getItem(M.saveStr).subscribe(I=>{M.enable=void 0===I?this.initialState:I},I=>{this.logger.error("Failed to read Notification Control in database: ",I)},()=>{D.unsubscribe()})})}getNotificationControls(){return this.controls}setNotificationControl(m,M){const D=this.controls.find(U=>U.control===m);D&&(D.enable=M);const I=this.globalStore.setItem(D.saveStr,D.enable).subscribe(()=>{I.unsubscribe(),this.logger.info("Notification Control Stored: "+D.saveStr+" Value: "+D.enable)})}isNotificationBlocked(m){let M=!1;return this.controls.forEach(D=>{D.controlledNotifiers.forEach(I=>{I===m&&(M=!D.enable||!this.globalState)})}),M}getGlobalToggle(){return this.globalState}setGlobalToggle(m){this.globalState=m;const M=this.globalStore.setItem(this.globalToggleStore,this.globalState).subscribe({complete:()=>{M.unsubscribe()}})}loadGFEMigrationData(m){const M=m["notification-settings"];if(!M)return this.logger.info("No valid notification data found in GFE backup"),(0,l.of)(null);this.logger.info("Porting GFE backup data");const D={noteOverlay:"openShare",noteSaveIR:"savedIR",noteSaveMR:"savedMR",noteSaveSS:"savedSS",noteSaveHL:"savedHL",noteOnOffIR:"IROnOff",noteOnMR:"MRStarted",noteHDRErrorScreenshot:"screenshotHDRError",noteHDRErrorHighlight:"hlHDRError",noteHDRErrorRecord:"recordHDRError",noteProtectedContentWarning:"protectedContentWarning"};let I=!0;const U=[];return Object.keys(D).forEach(V=>{const T=M[D[V]];void 0!==T&&U.push(this.globalStore.setItem(V,T).pipe((0,v.W)(N=>(this.logger.error("GFE migrations indexDb update failed",N),(0,l.of)(null))))),T&&(I=!1)}),I&&U.push(this.globalStore.setItem(this.globalToggleStore,!1).pipe((0,v.W)(V=>(this.logger.error("GFE migrations indexDb update failed",V),(0,l.of)(null))))),(0,d.p)(U).pipe((0,S.M)(V=>this.logger.info("Notification data migrated from GFE")))}static{this.\u0275fac=function(M){return new(M||a)(y.KVO(f.J6),y.KVO(f.at))}}static{this.\u0275prov=y.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})()},10132:(Bt,z,s)=>{"use strict";s.d(z,{QY:()=>M,VH:()=>c,au:()=>D,hc:()=>m,lb:()=>a});var n=s(80583),l=s(35146),d=s(43848),v=s(93181),S=s(91384),y=s(10174),f=s(14714),O=s(33452),P=s(58527),_=s(99469),i=s(12137),r=s(2688),a=function(I){return I.Recording="Recording",I.IR="IR",I.Highlights="Highlights",I.Broadcast="Broadcast",I.Mic="Mic",I.ViewerCount="ViewerCount",I.Comments="Comments",I.Webcam="Webcam",I.WebcamSize="WebcamSize",I.GfnMic="GfnMic",I.PerfLogging="PerfLogging",I.Statistics="Statistics",I.StatsSize="StatsSize",I.Network="Network",I.Performance="Performance",I.AIChatbox="AIChatbox",I}(a||{}),c=function(I){return I.rightTop="rightTop",I.rightCenter="rightCenter",I.rightBottom="rightBottom",I.centerBottom="centerBottom",I.leftBottom="leftBottom",I.leftCenter="leftCenter",I.leftTop="leftTop",I.centerTop="centerTop",I.none="none",I}(c||{}),m=function(I){return I.small="small",I.medium="medium",I.large="large",I}(m||{}),M=function(I){return I.compact="compact",I.standard="standard",I}(M||{});let D=(()=>{class I{constructor(V,T,N,L,E,g){this.injector=V,this.dbService=T,this.igoConfig=N,this.featureSupportService=L,this.loggingService=E,this.localeService=g,this.osdChanged$=new n.B7,this.globalStore=null,this.dbStoreName="IgoIndicatorSettings",this.overlaySettings={Recording:c.rightTop,IR:c.rightTop,Highlights:c.rightTop,Mic:c.rightTop,Broadcast:c.rightTop,ViewerCount:c.rightTop,Comments:c.rightTop,GfnMic:c.rightTop,Statistics:c.none,StatsSize:M.compact,Network:c.none,Performance:c.rightTop,PerfLogging:c.rightTop,AIChatbox:c.rightTop},this.logger=this.loggingService.getLogger("OsdService"),"GFN"===this.igoConfig.branding?this.overlaySettings.Statistics=this.localeService.isRTLLayoutEnabled?c.leftTop:c.rightTop:(this.perfMonService=this.injector.get(O.z),this.overlaySettings.Recording=c.rightBottom,this.overlaySettings.IR=c.rightBottom,this.overlaySettings.Mic=c.rightBottom,this.overlaySettings.Highlights=c.rightBottom,this.overlaySettings.PerfLogging=c.rightBottom,this.featureSupportService.isGAssistFeatureAvailable()&&(this.overlaySettings.AIChatbox=c.rightBottom)),this.featureSupportService.isConnectionStatusEnabled()&&this.featureSupportService.isGfnMobileMode()&&(this.overlaySettings.Network=c.rightTop),this.globalStore=this.dbService.getGlobalStore(this.dbStoreName)}init(){const V=[];Object.keys(this.overlaySettings).forEach(T=>{this.getAndSetOverriddenPositionSetting(T);const N=this.globalStore.getItem(T).pipe((0,S.M)(L=>{const E=c[L],g=M[L];void 0!==E?this.overlaySettings[T]=E:void 0!==g&&(this.overlaySettings[T]=g)}));V.push(N)}),(0,l.yU)(...V).subscribe(()=>{this.perfMonService?.setPerfOverlayQuadrant(this.overlaySettings[a.Performance]),this.triggerChange(null)}),this.perfMonService?.listenVisibilityChanges().subscribe(T=>{this.logger.info("listenVisibilityChanges:",T),this.overlaySettings.Performance===c.none&&T&&(this.overlaySettings.Performance=c.rightTop,this.saveOverlaySettings().subscribe()),this.triggerChange(a.Performance)})}saveOverlaySettings(V=!1){const T=[];return Object.keys(this.overlaySettings).forEach(N=>{const L=this.globalStore.setItem(N,this.overlaySettings[N]);T.push(L)}),(0,l.yU)(...T).pipe((0,S.M)(()=>{V||this.triggerChange(null)}),(0,y.u)(!0))}getPosition(V){return this.overlaySettings[V]}setPosition(V,T){this.overlaySettings[V]=T,V===a.Performance&&this.perfMonService.setPerfOverlayQuadrant(T)}getStatsSize(){return this.overlaySettings[a.StatsSize]}setStatsSize(V){this.overlaySettings[a.StatsSize]=V}getOsdIndicatorSize(V){return this.overlaySettings[V]}setOsdIndicatorSize(V,T){this.overlaySettings[V]=T}listenChanges(){return this.osdChanged$.asObservable()}triggerChange(V){this.osdChanged$.next(V)}indexDbUpdateGfeMigration(V,T){return this.globalStore.setItem(V,T).pipe((0,f.W)(N=>(this.logger.error("GFE migrations indexDb update failed",N),(0,d.of)(null))))}loadGFEMigrationData(V){const T=V["osd-storage"];if(!T)return this.logger.info("No valid data found in GFE backup"),(0,d.of)(null);this.logger.info("Porting GFE backup data");const N={RightTop:c.rightTop,RightBottom:c.rightBottom,LeftBottom:c.leftBottom,LeftTop:c.leftTop},L=[];if(T.Status?.enabled){const E=T.Status.position;N[E]&&(L.push(this.indexDbUpdateGfeMigration(a.Recording,N[E])),L.push(this.indexDbUpdateGfeMigration(a.IR,N[E])),L.push(this.indexDbUpdateGfeMigration(a.Mic,N[E])),L.push(this.indexDbUpdateGfeMigration(a.Highlights,N[E])))}if(T.Performance?.enabled){const E=T.Performance.position;N[E]&&L.push(this.indexDbUpdateGfeMigration(a.Performance,N[E]))}return(0,v.p)(L).pipe((0,S.M)(E=>this.logger.info("OSD settings migrated from GFE")))}getAndSetOverriddenPositionSetting(V){let T=null;V===a.GfnMic?T=this.featureSupportService.getOverriddenMicPosition()??null:V===a.Network?T=this.featureSupportService.getOverriddenNetworkStatusIconPosition()??null:V===a.Statistics&&(T=this.featureSupportService.getOverriddenStatisticsPosition()??null),T&&(this.overlaySettings[V]=T)}static{this.\u0275fac=function(T){return new(T||I)(P.KVO(P.zZn),P.KVO(_.at),P.KVO(i.k),P.KVO(r.R),P.KVO(_.J6),P.KVO(_.iH))}}static{this.\u0275prov=P.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}}return I})()},27271:(Bt,z,s)=>{"use strict";s.d(z,{Az:()=>L,Bn:()=>O,EM:()=>J,GA:()=>v,K_:()=>H,Lx:()=>B,NX:()=>T,Ne:()=>n,Np:()=>_,Or:()=>a,Q2:()=>R,TE:()=>f,UY:()=>re,Vq:()=>D,XB:()=>N,Zt:()=>X,aL:()=>y,eC:()=>E,f1:()=>P,hn:()=>r,it:()=>l,ix:()=>V,j9:()=>g,nN:()=>M,oX:()=>c,pw:()=>m,si:()=>I,v4:()=>d});const n=500,l=20,d=5e3,v=3e4,y="1.0";var f=function(ie){return ie[ie.FPS=0]="FPS",ie[ie.GPU=1]="GPU",ie[ie.CPU=2]="CPU",ie[ie.Latency=3]="Latency",ie[ie.DLSSFG=4]="DLSSFG",ie[ie.DLSSSR=5]="DLSSSR",ie[ie.DLSSRR=6]="DLSSRR",ie[ie.DLSSSM=7]="DLSSSM",ie}(f||{});const O=["white","red","#76b900","blue","black","custom"],P=[{id:f.FPS,name:"settings.gameplay.FPS",shortName:"settings.gameplay.FPS"},{id:f.GPU,name:"perfmon.GPUName",shortName:"perfmon.GPU"},{id:f.CPU,name:"perfmon.CPUName",shortName:"perfmon.CPU"},{id:f.Latency,name:"perfmon.latency",shortName:"perfmon.latencyShortName"},{id:f.DLSSFG,name:"dlssoverride.techov.fgov",shortName:"dlssoverride.techov.fgovshort"},{id:f.DLSSSR,name:"dlssoverride.techov.srov",shortName:"dlssoverride.techov.srovshort"},{id:f.DLSSRR,name:"dlssoverride.techov.rrov",shortName:"dlssoverride.techov.rrovshort"},{id:f.DLSSSM,name:"dlssoverride.tech.sm",shortName:"dlssoverride.tech.smshort"}];var _=function(ie){return ie[ie.FPS=0]="FPS",ie[ie.Basic=1]="Basic",ie[ie.Advanced=2]="Advanced",ie[ie.Latency=3]="Latency",ie[ie.DLSS=4]="DLSS",ie[ie.Custom=9999]="Custom",ie}(_||{});Object.keys(_);var r=function(ie){return ie[ie["settings.gameplay.FPS"]=0]="settings.gameplay.FPS",ie[ie["perfmon.basic"]=1]="perfmon.basic",ie[ie["perfmon.advanced"]=2]="perfmon.advanced",ie[ie["perfmon.latency"]=3]="perfmon.latency",ie[ie["dlssoverride.dlss"]=4]="dlssoverride.dlss",ie[ie["settings.gameplay.Custom"]=9999]="settings.gameplay.Custom",ie}(r||{});const a=_.Basic,c=[{id:_.FPS,name:"settings.gameplay.FPS",metrics:["fpsdispavg"]},{id:_.Basic,name:"perfmon.basic",metrics:["fpsdispavg","gpuUtil","cpuUtil","avgPCLatency"]},{id:_.Advanced,name:"perfmon.advanced",metrics:["fpsdispavg","fpsdisp1pc","fpsMax","fpsMin","frameTime","gpuUtil","gpuTemp","gpuClock","gpuVoltage","gpuPower","gpuFanSpeed","vramClock","cpuUtil","cpuTemp","cpuClock","renderLatency","avgPCLatency"]},{id:_.Latency,name:"perfmon.latency",metrics:["fpsdispavg","renderLatency","avgPCLatency","reflexMonitorPosition","mouseLatency","avgMouseLatency","pcDisplayLatency","avgPcDisplayLatency","systemLatency","avgSystemLatency"]},{id:_.DLSS,name:"dlssoverride.dlss",metrics:["fpsdispavg","fpsdisp1pc","avgPCLatency","dlssfgmodel","dlssfgcount","dlsssrmodel","dlsssrmode","dlssrrmodel","dlssrrmode"]},{id:_.Custom,name:"settings.gameplay.Custom",metrics:["fpsdispavg","fpsdisp1pc","fpsMax","fpsMin","frameTime","gpuUtil","gpuTemp","gpuClock","gpuVoltage","gpuPower","gpuFanSpeed","vramClock","cpuUtil","cpuTemp","cpuClock","renderLatency","avgPCLatency","reflexMonitorPosition","mouseLatency","avgMouseLatency","pcDisplayLatency","avgPcDisplayLatency","systemLatency","avgSystemLatency","dlssfgmodel","dlssfgcount","dlsssrmodel","dlsssrmode","dlssrrmodel","dlssrrmode","dlsssm"]}];var m=function(ie){return ie[ie.Linear=0]="Linear",ie[ie.Double=1]="Double",ie[ie.Stacked=2]="Stacked",ie}(m||{});const M=m.Linear;var D=function(ie){return ie[ie.Standard=0]="Standard",ie[ie.Enhanced=1]="Enhanced",ie}(D||{}),I=function(ie){return ie[ie.Standard=0]="Standard",ie[ie.Large=1]="Large",ie}(I||{}),U=function(ie){return ie[ie.White=0]="White",ie[ie.Red=1]="Red",ie[ie.Green=2]="Green",ie[ie.Blue=3]="Blue",ie[ie.Black=4]="Black",ie[ie.Custom=5]="Custom",ie}(U||{});const V=D.Standard,T=I.Standard,N=U.White,L=0,E="#76b900";var g=function(ie){return ie.FPS="FPS",ie.Basic="Basic",ie.Advanced="Advanced",ie.Latency="Latency",ie}(g||{});const R=60,B=35,X=40,H=35,J=30;function re(){return[{metricId:"fps",name:"perfmon.framRate",shortName:"settings.gameplay.FPS",category:f.FPS,visible:!1,value:void 0,unit:void 0,defaultValue:"N/A"},{metricId:"fpsdispavg",name:"perfmon.framRate",shortName:"settings.gameplay.FPS",category:f.FPS,visible:!1,value:void 0,unit:void 0,defaultValue:"N/A"},{metricId:"fps1pc",name:"perfmon.fps1pc",shortName:"perfmon.fps1pcShort",category:f.FPS,visible:!1,value:void 0,unit:"perfmon.fps1pcUnit",defaultValue:"N/A"},{metricId:"fpsdisp1pc",name:"perfmon.fps1pc",shortName:"perfmon.fps1pcShort",category:f.FPS,visible:!1,value:void 0,unit:"perfmon.fps1pcUnit",defaultValue:"N/A"},{metricId:"fpsMax",name:"perfmon.fpsMax",shortName:"perfmon.fpsMaxShort",category:f.FPS,visible:!1,value:void 0,unit:"perfmon.fpsMaxUnit"},{metricId:"fpsMin",name:"perfmon.fpsMin",shortName:"perfmon.fpsMinShort",category:f.FPS,visible:!1,value:void 0,unit:"perfmon.fpsMinUnit"},{metricId:"frameTime",name:"perfmon.frameTime",shortName:"perfmon.frameTimeShort",category:f.FPS,visible:!1,value:void 0,unit:"perfmon.milliseconds"},{metricId:"gpuUtil",name:"perfmon.gpuUtil",shortName:"perfmon.gpuUtilShort",category:f.GPU,visible:!1,value:void 0,unit:"perfmon.percentage"},{metricId:"gpuTemp",name:"perfmon.gpuTemp",shortName:"perfmon.gpuTempShort",category:f.GPU,visible:!1,value:void 0,unit:"perfmon.degreeCelcius"},{metricId:"gpuClock",name:"perfmon.gpuClock",shortName:"perfmon.gpuClockShort",category:f.GPU,visible:!1,value:void 0,unit:"perfmon.megaHertz"},{metricId:"gpuVoltage",name:"perfmon.gpuVoltage",shortName:"perfmon.gpuVoltageShort",category:f.GPU,visible:!1,value:void 0,unit:"perfmon.volt"},{metricId:"gpuPower",name:"perfmon.gpuPower",shortName:"perfmon.gpuPowerShort",category:f.GPU,visible:!1,value:void 0,unit:"perfmon.watt"},{metricId:"gpuFanSpeed",name:"perfmon.gpuFanSpeed",shortName:"perfmon.gpuFanSpeedShort",category:f.GPU,visible:!1,value:void 0,unit:"perfmon.rpm"},{metricId:"vramClock",name:"perfmon.vramClock",shortName:"perfmon.vramClockShort",category:f.GPU,visible:!1,value:void 0,unit:"perfmon.megaHertz"},{metricId:"cpuUtil",name:"perfmon.cpuUtil",shortName:"perfmon.cpuUtilShort",category:f.CPU,visible:!1,value:void 0,unit:"perfmon.percentage"},{metricId:"cpuTemp",name:"perfmon.cpuTemp",shortName:"perfmon.cpuTempShort",category:f.CPU,visible:!1,value:void 0,unit:"perfmon.degreeCelcius"},{metricId:"cpuClock",name:"perfmon.cpuClock",shortName:"perfmon.cpuClockShort",category:f.CPU,visible:!1,value:void 0,unit:"perfmon.megaHertz"},{metricId:"renderLatency",name:"perfmon.renderLatency",shortName:"perfmon.renderLatencyShort",category:f.Latency,visible:!1,value:void 0,unit:"perfmon.milliseconds",defaultValue:"N/A"},{metricId:"avgPCLatency",name:"perfmon.avgPCLatency",shortName:"perfmon.avgPCLatencyShort",category:f.Latency,visible:!1,value:void 0,unit:"perfmon.milliseconds",defaultValue:"N/A"},{metricId:"reflexMonitorPosition",name:"perfmon.reflexMonitorPosition",shortName:"perfmon.reflexMonitorPositionShort",category:f.Latency,visible:!1,value:void 0,unit:"",defaultValue:"N/A"},{metricId:"mouseLatency",name:"perfmon.mouseLatency",shortName:"perfmon.mouseLatencyShort",category:f.Latency,visible:!1,value:void 0,unit:"perfmon.milliseconds",defaultValue:"N/A"},{metricId:"avgMouseLatency",name:"perfmon.avgMouseLatency",shortName:"perfmon.avgMouseLatencyShort",category:f.Latency,visible:!1,value:void 0,unit:"perfmon.milliseconds",defaultValue:"N/A"},{metricId:"pcDisplayLatency",name:"perfmon.pcDisplayLatency",shortName:"perfmon.pcDisplayLatencyShort",category:f.Latency,visible:!1,value:void 0,useCachedValue:!0,unit:"perfmon.milliseconds",defaultValue:"N/A"},{metricId:"avgPcDisplayLatency",name:"perfmon.avgPcDisplayLatency",shortName:"perfmon.avgPcDisplayLatencyShort",category:f.Latency,visible:!1,value:void 0,unit:"perfmon.milliseconds",defaultValue:"N/A"},{metricId:"systemLatency",name:"perfmon.systemLatency",shortName:"perfmon.systemLatencyShort",category:f.Latency,visible:!1,value:void 0,useCachedValue:!0,unit:"perfmon.milliseconds",defaultValue:"N/A"},{metricId:"avgSystemLatency",name:"perfmon.avgSystemLatency",shortName:"perfmon.avgSystemLatencyShort",category:f.Latency,visible:!1,value:void 0,unit:"perfmon.milliseconds",defaultValue:"N/A"},{metricId:"dlssfgmodel",name:"dlssoverride.techov.fgmodelov",shortName:"dlssoverride.techov.fgmodelovshort",category:f.DLSSFG,visible:!1,value:void 0,unit:void 0,errorString:void 0,defaultValue:"N/A"},{metricId:"dlssfgcount",name:"dlssoverride.techov.fgmodeov",shortName:"dlssoverride.techov.fgmodeovshort",category:f.DLSSFG,visible:!1,value:void 0,unit:void 0,errorString:void 0,defaultValue:"N/A"},{metricId:"dlsssrmodel",name:"dlssoverride.techov.srmodelov",shortName:"dlssoverride.techov.srmodelovshort",category:f.DLSSSR,visible:!1,value:void 0,unit:void 0,defaultValue:"N/A"},{metricId:"dlsssrmode",name:"dlssoverride.techov.srmodeov",shortName:"dlssoverride.techov.srmodeovshort",category:f.DLSSSR,visible:!1,value:void 0,unit:void 0,defaultValue:"N/A"},{metricId:"dlssrrmodel",name:"dlssoverride.techov.rrmodelov",shortName:"dlssoverride.techov.rrmodelovshort",category:f.DLSSRR,visible:!1,value:void 0,unit:void 0,defaultValue:"N/A"},{metricId:"dlssrrmode",name:"dlssoverride.techov.rrmodeov",shortName:"dlssoverride.techov.rrmodeovshort",category:f.DLSSRR,visible:!1,value:void 0,unit:void 0,defaultValue:"N/A"},{metricId:"dlsssm",name:"dlssoverride.tech.sm",shortName:"dlssoverride.tech.smshort",category:f.DLSSSM,visible:!1,value:void 0,unit:void 0,defaultValue:"N/A"}]}},33452:(Bt,z,s)=>{"use strict";s.d(z,{z:()=>ve});var n=s(80583),l=s(26513),d=s(892),v=s(43848),S=s(12532),y=s(83915),f=s(91384),O=s(75707),P=s(14714),_=s(8619),i=s(65706),r=s(72147),a=s(73180),c=s(40198),m=s(20924),M=s(78854),D=s(11728),I=s(27271),U=s(73934),V=s(51830),T=s(53914),N=s(19724),L=s(10132),E=s(23860),g=s(10356),R=s(8559),B=s(58527),X=s(96542),H=s(99469),J=s(2688),re=s(27211),ie=s(57412);let ve=(()=>{class ue{constructor(Z,Se,Ce,Be,Xe,He,Me,Q,A,me){this.injector=Z,this.translateService=Se,this.loggingService=Ce,this.dbService=Be,this.bridgeService=Xe,this.hotkeyService=He,this.featureSupportService=Me,this.oscNotificationService=Q,this.telemetryIgoService=A,this.lcarsService=me,this.PerfMonStorageKeyName="PerfMonPersistedData",this.throttleDuration=500,this.gpuData=[],this.perfData=[],this.perfOverlayVisibilityChanged$=new n.B7,this.perfOverlayCoordinatesChanged$=new n.B7,this.perfLoggingIndicator$=new l.t(!1),this.fpsMetricVisible=!1,this.isPerfTrackingActive=!1,this.perfStatsSubscriberCount=0,this.stopPerfTrackingTimer=void 0,this.isPerfMenuLaunched=!1,this.dlsssrmodelvalue=R.xJ,this.dlssrrmodelvalue=R.xJ,this.dlssfgmodelvalue=R.xJ,this.dlsssrmodevalue=R.xJ,this.dlssrrmodevalue=R.xJ,this.dlssfgcountvalue=R.xJ,this.dlsssmvalue=R.xJ,this.dlssFGModelCustom=!1,this.dlssSRModelCustom=!1,this.dlssRRModelCustom=!1,this.dlssFGCountCustom=!1,this.dlssSRModeCustom=!1,this.dlssRRModeCustom=!1,this.legacyRFISupportedCMSIDs=[],this.latestRFISupportedCMSIDs=[],this.ReflexStatsSupportedCMSIDs=[],this.ReflexIntegratedCMSIDs=[],this.islatestRFISupported=!1,this.islegacyRFISupported=!1,this.isReflexStatsSupported=!1,this.cachedReflexStatsSupported=!1,this.isReflexIntegrated=!1,this.ngxPollingSubscription=null,this.runningRFISupportedGamePID=void 0,this.currentDisplayMode={},this.currentGameInfo=void 0,this.isAppStartedReceived=!1,this.gameDetails={cmsId:"",drsName:"",drsProfileName:""},this.lastAppStartedPid=0,this.logger=this.loggingService.getLogger("PerfMonService"),this.dBStore=this.dbService.getGlobalStore("PerfMon")}init(){this.logger.info("Initialize"),this.oscDisplayService=this.injector.get(D.B),this.shadowPlayService=this.injector.get(V.W1),this.ngxService=this.injector.get(g.z),this.getIsRLASupported().subscribe(Z=>{this.isRLAEnabled=Z}),this.ngxService.getNgxDDSupport().subscribe(Z=>{this.isDlssSupportedDD=Z[0],this.isFgxSupportedDD=Z[1]}),this.registerPerfStatsNotifications(),this.setHotkeys(!0),this.registerHotkeyNotifications(),this.registerAppNotifications(),this.registerDisplayNotifications(),this.initStatsAndLoadData(),this.clearDlssMetricValues()}isDlssSupported(){return this.isDlssSupportedDD}isFgxSupported(){return this.isFgxSupportedDD}requestNgxPolling(){this.isPerfTrackingActive&&this.isValidGameRunning&&(this.perfmonData?.activeMetricSetId===I.Np.DLSS||this.perfmonData?.activeMetricSetId===I.Np.Custom)&&this.startNgxPolling()}listenVisibilityChanges(){return this.perfOverlayVisibilityChanged$.asObservable()}getPerfLoggingStatus(){return this.perfLoggingIndicator$.asObservable()}getPerfOverlayVisiblity(){return this.perfmonData?.isPerfOverlayVisible}getFpsMetricVisible(){return this.perfmonData.activeMetricSetId!==I.Np.FPS||this.fpsMetricVisible}setPerfOverlayVisiblity(Z){this.logger.info("setPerfOverlayVisiblity: ",Z),(this.islegacyRFISupported||this.islatestRFISupported)&&this.isRLAEnabled&&!this.flashIndicatorStatus&&this.setFlashIndicatorVisibility(Z),this.togglePerfOverlay(Z,!1)}getIsRLASupported(){return this.bridgeService.executeCommand(m.Ts.Share.Nvperfmon.GetRLAMonitorSupport).pipe((0,y.T)(Z=>(this.logger.info("RLA Monitor Status: ",Z.supported),Z.supported)))}getIsPerfOverlayEnabled(){return this.isPerfOverlayEnabled}setIsPerfOverlayEnabled(Z){this.logger.info("setIsPerfOverlayEnabled: ",Z),this.isPerfOverlayEnabled!==Z&&(this.isPerfOverlayEnabled=Z,this.setPerfOverlayVisiblity(Z))}getMetricSet(){return void 0===this.perfmonData.activeMetricSetId?I.Or:this.perfmonData.activeMetricSetId}setMetricSet(Z){this.logger.info("setMetricSet:",Z),Z===I.Np.Latency&&!this.isRLAEnabled&&(Z=I.Or),Z===I.Np.DLSS&&!this.isDlssSupportedDD&&(Z=I.Or),this.perfmonData.activeMetricSetId=Z,!this.isValidGameRunning||this.perfmonData.activeMetricSetId!==I.Np.DLSS&&this.perfmonData.activeMetricSetId!==I.Np.Custom?this.stopNgxPolling():this.startNgxPolling(),this.togglePerfOverlay(!0,!1)}getActiveLayout(){return void 0===this.perfmonData?.activeLayout?I.nN:this.perfmonData.activeLayout}setActiveLayout(Z){this.perfmonData.activeLayout=Z,this.logger.info("setActiveLayout:",this.perfmonData.activeLayout),this.togglePerfOverlay(!0,!1),this.telemetryIgoService.sendIGOSettings(this.gameDetails,T.E6,N.Eq[I.pw[this.perfmonData.activeLayout]])}getVisibilityMode(){return void 0===this.perfmonData?.perfOverlayVisibilityMode?I.ix:this.perfmonData.perfOverlayVisibilityMode}setVisibilityMode(Z){this.logger.info("setVisibilityMode:",Z),this.perfmonData.perfOverlayVisibilityMode=Z,this.togglePerfOverlay(!0,!1),this.telemetryIgoService.sendIGOSettings(this.gameDetails,T.ft,N.Om[I.Vq[this.perfmonData.perfOverlayVisibilityMode]])}getOverlayFontSize(){return void 0===this.perfmonData?.perfOverlayFontSize?I.NX:this.perfmonData.perfOverlayFontSize}setOverlayFontSize(Z){this.perfmonData.perfOverlayFontSize=Z,this.togglePerfOverlay(!0,!1)}getOverlayFontColor(){return void 0===this.perfmonData?.perfOverlayFontColor?I.XB:this.perfmonData.perfOverlayFontColor}setOverlayFontColor(Z){this.perfmonData.perfOverlayFontColor=Z,this.togglePerfOverlay(!0,!1)}getOverlayBackgroundOpacity(){return void 0===this.perfmonData?.perfOverlayFontColor?I.Az:this.perfmonData.perfOverlayBackgroundOpacity}setOverlayBackgroundOpacity(Z){this.perfmonData.perfOverlayBackgroundOpacity=Z,this.togglePerfOverlay(!0,!1)}getOverlayCustomFontColor(){return void 0===this.perfmonData?.perfOverlayCustomFontColor?I.eC:this.perfmonData.perfOverlayCustomFontColor}setOverlayCustomFontColor(Z){this.perfmonData.perfOverlayCustomFontColor=Z,this.togglePerfOverlay(!0,!1)}validateCustomFontColorInput(Z){return new RegExp("^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$").test(Z)}getPerfData(Z){return this.perfData[Z]}launchPerformanceMenu(){this.logger.info("launchPerformanceMenu"),this.oscDisplayService.openOSC("sidebar/performance/performance-menu")}getIsValidGameRunning(){return this.isValidGameRunning}isPerformanceAvailable(){return this.featureSupportService.isPerfOverlayEnabled()}getLoggingState(){return this.logger.info("getLoggingState:",this.perfmonData.isLogging),this.perfmonData?.isLogging}toggleLogging(Z,Se=!0){this.logger.info("toggleLogging"),this.perfmonData.isLogging=void 0===Z?!this.perfmonData.isLogging:Z,this.perfmonData.isLogging?(this.startPerfTracking(),this.telemetryIgoService.startStatsLoggingSession(Se?N.gv.UsingHotkey:N.gv.UsingUI)):(this.stopPerfTracking(),this.telemetryIgoService.sendStatsLoggingSession(this.gameDetails)),this.bridgeService.executeCommand(m.Ts.Share.Nvperfmon.LoggingToggle,{path:this.perfmonData.logPath,enable:this.perfmonData.isLogging}).subscribe(Be=>{this.logger.info("toggleLogging:",Be)},Be=>{this.logger.info("toggleLogging:",Be)}),this.perfOverlayVisibilityChanged$.next(this.perfmonData.isPerfOverlayVisible),this.perfLoggingIndicator$.next(this.perfmonData.isLogging),this.perfmonData.isLogging&&this.oscNotificationService.show(E.Ed.PerfMonLogging),this.savePersistedData()}getPerfOverlayAbsolutePosition(Z=null){if(this.logger.info("getPerfOverlayAbsolutePosition"),this.perfmonData){if(!this.perfmonData.perfOverlayAbsolutePosition){if(!Z)return this.perfmonData.perfOverlayAbsolutePosition;this.updatePerformancePositionCoordinates(Z)}return this.perfmonData.perfOverlayAbsolutePosition}}setPerfOverlayAbsolutePosition(Z,Se=!1){this.logger.info("setPerfOverlayAbsolutePosition",Z),this.perfmonData.perfOverlayAbsolutePosition=Z,Se||this.perfOverlayCoordinatesChanged$.next(Z),this.savePersistedData(),this.telemetryIgoService.sendIGOSettings(this.gameDetails,T.Ls,Z?.x.toString()),this.telemetryIgoService.sendIGOSettings(this.gameDetails,T.Qi,Z?.y.toString())}listenPerfOverlayCoordinateChanges(){return this.perfOverlayCoordinatesChanged$.asObservable()}setPerfOverlayQuadrant(Z){this.logger.info("setPerfOverlayQuadrant",Z),this.perfOverlayQuadrant=Z}checkPerformancePositionCoordinates(){this.perfmonData.perfOverlayAbsolutePosition||(this.perfmonData.perfOverlayAbsolutePosition={x:void 0,y:void 0},this.updatePerformancePositionCoordinates(this.perfOverlayQuadrant))}updatePerformancePositionCoordinates(Z,Se=null){if(this.logger.info("updatePerformancePositionCoordinates",Z),this.perfmonData&&(Se=Se||this.perfmonData.perfOverlayAbsolutePosition))switch(Z){case L.VH.rightTop:Se.x=100,Se.y=0;break;case L.VH.rightCenter:Se.x=100,Se.y=50;break;case L.VH.rightBottom:Se.x=100,Se.y=100;break;case L.VH.centerBottom:Se.x=50,Se.y=100;break;case L.VH.leftBottom:Se.x=0,Se.y=100;break;case L.VH.leftCenter:Se.x=0,Se.y=50;break;case L.VH.leftTop:Se.x=0,Se.y=0;break;case L.VH.centerTop:Se.x=50,Se.y=0;break;default:Se.x=void 0,Se.y=void 0}}startNgxPolling(){this.ngxService.isDlssOrSmEnabled()?this.ngxPollingSubscription?this.logger.info("polling already active"):(this.logger.info("start polling"),this.ngxPollingSubscription=(0,d.Y)(5e3).subscribe(Z=>{this.pollNgxOverrideState()})):this.logger.info("Dlss/SM features disabled, not polling")}stopNgxPolling(){this.ngxPollingSubscription?(this.logger.info("stop polling"),this.ngxPollingSubscription&&(this.ngxPollingSubscription.unsubscribe(),this.ngxPollingSubscription=null)):this.logger.info("polling already stopped")}startPerfTracking(){if(this.logger.info("startPerfTracking:",this.perfStatsSubscriberCount,this.isPerfTrackingActive),this.isValidGameRunning){const Z=this.getMetricSet();Z===I.Np.DLSS||Z===I.Np.Custom?this.startNgxPolling():this.stopNgxPolling()}this.clearPerfTrackingStopTimer(),this.perfStatsSubscriberCount++,this.isPerfTrackingActive||this.enablePerfTracking(!0)}stopPerfTracking(){if(this.logger.info("stopPerfTracking:",this.perfStatsSubscriberCount,this.isPerfTrackingActive),this.isPerfTrackingActive||this.logger.error("something went wrong, isPerfTrackingActive:",this.isPerfTrackingActive),this.perfStatsSubscriberCount--,this.perfStatsSubscriberCount<0)this.logger.error("something went wrong, perfSubscriberCount:",this.perfStatsSubscriberCount),this.perfStatsSubscriberCount=0;else if(this.perfStatsSubscriberCount>0)return;0===this.perfStatsSubscriberCount&&(void 0!==this.stopPerfTrackingTimer&&(this.logger.error("something went wrong, stopPerfTracking timer already running"),this.clearPerfTrackingStopTimer()),this.stopPerfTrackingTimer=setTimeout(()=>{this.enablePerfTracking(!1)},I.GA),this.stopNgxPolling())}updateDefaultLoggingPath(){this.bridgeService.executeCommand(m.Ts.Share.Nvperfmon.GetDefaultLoggingPath).subscribe(Z=>{this.logger.info("GetDefaultLoggingPath:",Z),this.perfmonData.logPath=Z.path.logpath},Z=>{this.logger.error("GetDefaultLoggingPath error:",Z)})}getLoggingPath(){return this.perfmonData.logPath}setLoggingPath(Z){this.perfmonData.logPath=Z,this.savePersistedData()}updateMetricVisibility(Z){void 0===Z.value&&Z.defaultValue?(Z.value=Z.defaultValue,Z.visible=this.perfmonData.activeMetricSetId!==I.Np.FPS,Z.isUnitHidden=!0):(Z.visible=void 0!==Z.value,Z.isUnitHidden=void 0===Z.value||Z.defaultValue&&Z.value===Z.defaultValue),this.getActiveLayout()===I.pw.Stacked&&["fps1pc","fpsdisp1pc"].includes(Z.metricId)&&(Z.isUnitHidden=!0)}updateCustomMetricSet(){this.perfmonData.customMetrics.length=0,this.perfData[0]&&this.perfData[0].forEach(Z=>{Z.isCustomSelected&&this.perfmonData.customMetrics.push(Z.metricId)}),this.savePersistedData()}checkSystemLatency(){return!!this.perfData[0]&&!!this.perfData[0].find(Se=>"systemLatency"===Se.metricId).isCustomSelected}loadGFEMigrationData(Z){const Se=Z.overclockings;if(!Se)return this.logger.info("No valid data found in GFE backup"),(0,v.of)(null);this.logger.info("Porting GFE backup data");const Ce={isPerfOverlayVisible:!!Se.isPerfOverlayVisible,activeMetricSetId:I.Or,activeLayout:I.nN,perfOverlayVisibilityMode:I.ix,perfOverlayAbsolutePosition:null,isLogging:!1,logPath:Se.loggingPath||"",customMetrics:[...I.oX.find(Xe=>Xe.id===I.Or).metrics],rectAlignmentStatus:!0,flashIndicatorStatus:!1,avgSampleSize:20,perfOverlayFontSize:I.NX,perfOverlayFontColor:I.XB,perfOverlayBackgroundOpacity:I.Az,perfOverlayCustomFontColor:I.eC,version:I.aL},Be=Z["osd-storage"];if(Be?.Performance.view)switch(Be?.Performance.view){case I.j9.FPS:Ce.activeMetricSetId=I.Np.FPS;break;case I.j9.Basic:Ce.activeMetricSetId=I.Np.Basic;break;case I.j9.Advanced:Ce.activeMetricSetId=I.Np.Advanced;break;case I.j9.Latency:Ce.activeMetricSetId=I.Np.Latency}return this.dBStore.setItem(this.PerfMonStorageKeyName,Ce).pipe((0,f.M)(Xe=>this.logger.info("Statistics overlay settings migrated from GFE")))}getIsRLAEnabled(){return this.isRLAEnabled}isReflexAnalyzerAvailable(){return this.featureSupportService.isReflexAnalyzerEnabled()}isRLASupportedDriver(){this.bridgeService.executeCommand(m.Ts.Share.Nvperfmon.CheckRLASupportedDriver).subscribe(Z=>{this.logger.info("getSupportedDD response:",Z),this.isRLAsupportedDD=Z.supported},Z=>{this.logger.error("error in getSupportedDD:",Z),this.isRLAsupportedDD=!1})}GetNGXOverrideState(Z,Se){return this.bridgeService.executeCommand(m.Ts.Share.Nvperfmon.GetNGXOverrideState,{processId:Z,cmsId:Se})}getIsRLASupportedDD(){return this.isRLAsupportedDD}updateRectAlignStatus(Z){this.perfmonData.rectAlignmentStatus=Z,this.savePersistedData(),this.logger.info("Storing current rectangle alignment status to local storage - "+this.perfmonData.rectAlignmentStatus),this.telemetryIgoService.sendIGOSettings(this.gameDetails,T.Q3,Z?.toString())}getRectAlignStatus(){return void 0===this.perfmonData.rectAlignmentStatus&&(this.perfmonData.rectAlignmentStatus=!0),this.perfmonData.rectAlignmentStatus}setRectAlignStatusOnInit(){return this.perfmonData.rectAlignmentStatus}setFlashIndicatorVisibility(Z){this.reflexFlashIndicatorVisibility=Z,this.bridgeService.executeCommand(m.Ts.Share.Nvperfmon.ShowFlashIndicator,{isVisible:this.reflexFlashIndicatorVisibility}).subscribe(Se=>{this.logger.info("setFlashIndicatorVisibility response:",Se)},Se=>{this.logger.error("error in setFlashIndicatorVisibility:",Se)})}getFlashIndicatorStatus(){return this.flashIndicatorStatus=this.perfmonData.flashIndicatorStatus,this.flashIndicatorStatus}setFlashIndicatorSize(Z){this.bridgeService.executeCommand(m.Ts.Share.Nvperfmon.SetFlashIndicatorSize,{size:Z}).subscribe(Se=>{this.logger.info("SetFlashIndicatorSize response:",Se)},Se=>{this.logger.error("error in setFlashIndicatorSize:",Se)})}updateFlashIndicatorStatus(Z){this.perfmonData.flashIndicatorStatus=Z,this.flashIndicatorStatus=Z,this.savePersistedData(),this.logger.info("Storing current Flash Indicator status to local storage - "+this.perfmonData.flashIndicatorStatus),this.telemetryIgoService.sendIGOSettings(this.gameDetails,T.uA,Z?.toString())}getCustAvgSampleSize(){return this.perfmonData.avgSampleSize?this.perfmonData.avgSampleSize:I.it}updateCustAvgSampleSize(Z){this.bridgeService.executeCommand(m.Ts.Share.Nvperfmon.SetMetricSampleSize,{sampleSize:Z}).subscribe(Se=>{this.logger.info("updateCustAvgSampleSize response:",Se),this.perfmonData.avgSampleSize=Z,this.savePersistedData()},Se=>{this.logger.error("error in setCustAvgOnInit:",Se)}),this.telemetryIgoService.sendIGOSettings(this.gameDetails,T.oi,Z.toString())}setCustAvgOnInit(){const Z=this.getCustAvgSampleSize();this.bridgeService.executeCommand(m.Ts.Share.Nvperfmon.SetMetricSampleSize,{sampleSize:Z}).subscribe(Se=>{this.logger.info("setCustAvgOnInit response:",Se)},Se=>{this.logger.error("error in setCustAvgOnInit:",Se)})}resetAverages(){this.bridgeService.executeCommand(m.Ts.Share.Nvperfmon.ResetAverageMetrics).subscribe(Z=>{this.logger.info("resetAverages response:",Z)},Z=>{this.logger.error("error in resetAverages:",Z)}),this.telemetryIgoService.sendIGOSettings(this.gameDetails,T.QT,"true")}alignMonitoringRect(){this.bridgeService.executeCommand(m.Ts.Share.Nvperfmon.AlignLatencyMonitoringRectangle).subscribe(Z=>{this.logger.info("alignMonitoringRect response:",Z)},Z=>{this.logger.error("error in alignMonitoringRect:",Z)})}getCurrentDisplayMode(){return this.currentDisplayMode}setPerfMenuLaunched(Z){this.isPerfMenuLaunched=Z,!Z&&!this.perfmonData.isPerfOverlayVisible&&this.clearCachedMetricValues()}clearCachedMetricValues(){this.getPerfData(0)?.forEach(Z=>{Z.useCachedValue&&(Z.cachedValue=void 0)})}clearPerfTrackingStopTimer(){this.stopPerfTrackingTimer&&(clearTimeout(this.stopPerfTrackingTimer),this.stopPerfTrackingTimer=void 0)}enablePerfTracking(Z){this.logger.info("enablePerfTracking:",Z),this.isPerfTrackingActive=Z,this.bridgeService.executeCommand(m.Ts.Share.Nvperfmon.EnablePerfStatsNotification,{intervalMS:I.Ne,isEnable:Z}).subscribe(Ce=>{this.logger.info("enablePerfTracking result:",Ce)},Ce=>{this.logger.error("enablePerfTracking error:",Ce),this.isPerfTrackingActive=!1})}loadCustomMetricSet(){this.perfData[0]&&this.perfmonData.customMetrics.forEach(Z=>{this.perfData[0].find(Se=>Se.metricId===Z).isCustomSelected=!0,"dlssfgmodel"===Z?this.setDlssFGModelCustomSelected(!0):"dlssfgcount"===Z?this.setDlssFGCountCustomSelected(!0):"dlsssrmodel"===Z?this.setDlssSRModelCustomSelected(!0):"dlsssrmode"===Z?this.setDlssSRModeCustomSelected(!0):"dlssrrmodel"===Z?this.setDlssRRModelCustomSelected(!0):"dlssrrmode"===Z&&this.setDlssRRModeCustomSelected(!0)})}savePersistedData(Z=null){this.dBStore.setItem(this.PerfMonStorageKeyName,Z=Z||this.perfmonData).subscribe(Se=>{this.logger.info("Perstisted data saved successfully ",Se)},Se=>{this.logger.error("Error while saving the persisted data ",Se)})}initStatsAndLoadData(){this.initPerfStats().pipe((0,O.ZZ)(()=>this.loadPerfMonData()),(0,y.T)(()=>(this.perfmonData.isPerfOverlayVisible&&(this.perfmonData.isPerfOverlayVisible=!1,this.togglePerfOverlay(!0,!1)),setTimeout(()=>{this.perfmonData.perfOverlayAbsolutePosition&&this.perfOverlayCoordinatesChanged$.next(this.perfmonData.perfOverlayAbsolutePosition)},250),this.isReflexAnalyzerAvailable&&(this.setCustAvgOnInit(),this.isRLASupportedDriver(),this.getFlashIndicatorStatus()&&this.setFlashIndicatorSize(!0)),!0))).subscribe()}getDefaultPerfMonData(){return this.perfmonData={isPerfOverlayVisible:!1,activeMetricSetId:I.Or,activeLayout:I.nN,perfOverlayVisibilityMode:I.ix,perfOverlayAbsolutePosition:null,isLogging:!1,logPath:"",customMetrics:[...I.oX.find(Z=>Z.id===I.Or).metrics],rectAlignmentStatus:!0,flashIndicatorStatus:!1,avgSampleSize:20,perfOverlayFontSize:I.NX,perfOverlayFontColor:I.XB,perfOverlayBackgroundOpacity:I.Az,perfOverlayCustomFontColor:I.eC,version:I.aL},this.updateDefaultLoggingPath(),this.perfmonData}loadPerfMonData(){return this.dBStore.getItem(this.PerfMonStorageKeyName).pipe((0,y.T)(Z=>Z?(this.logger.info("Loaded perfmon data from the storage"),this.perfmonData=Z,this.perfmonData.isLogging=!1,this.perfmonData.version||(this.perfmonData.activeMetricSetId===I.Np.DLSS&&(this.perfmonData.activeMetricSetId=I.Np.Custom),this.perfmonData.version=I.aL),!0):(this.logger.info("No perfmon data found in storage"),this.perfmonData=this.getDefaultPerfMonData(),!1)),(0,P.W)(Z=>(this.logger.error("Could not load perfmon data from the storage: ",JSON.stringify(Z)),this.perfmonData=this.getDefaultPerfMonData(),(0,v.of)(!1))),(0,f.M)(()=>{this.loadCustomMetricSet()}))}registerAppNotifications(){this.shadowPlayService.registerAppStartedEvent().pipe((0,O.ZZ)(Z=>(this.logger.info("app notification:",Z),this.onGameStart(Z),this.getRFIDataForLaunchedGame()))).subscribe(),this.bridgeService.executeCommand(m.Ts.Share.Shareserver.RegisterGeneralNotifications).pipe((0,_.p)(Z=>!!Z?.gameExited)).subscribe(Z=>{this.onGameExit(Z)})}setProcessID(Z,Se){return Se?Se&&this.lastAppStartedPid===Z?(this.currentGameInfo={procId:0,cmsId:0,drsName:"",drsProfileName:"",shortName:"",drsWhitelist:!1},this.gameDetails={cmsId:"",drsName:"",drsProfileName:""},this.bridgeService.executeCommand(m.Ts.Share.Nvperfmon.SetProcessId,{processId:0}).pipe((0,f.M)(Ce=>{this.isValidGameRunning=!1,this.isAppStartedReceived=!1}),(0,P.W)(Ce=>(this.logger.error("SetProcessId error:",Ce),(0,v.of)(!1))))):(0,v.of)(!1):(this.lastAppStartedPid=Z,this.bridgeService.executeCommand(m.Ts.Share.Nvperfmon.SetProcessId,{processId:Z}).pipe((0,f.M)(Ce=>{this.isValidGameRunning=!0}),(0,P.W)(Ce=>(this.logger.error("SetProcessId error:",Ce),(0,v.of)(!1)))))}onGameStart(Z){this.logger.info(" App Start Data: ",Z),this.isAppStartedReceived=!0,Z&&(this.currentGameInfo={procId:Z.appStarted.pid,cmsId:Z.appStarted.cmsId,drsName:Z.appStarted.DRSAppName,drsProfileName:Z.appStarted.profileName,shortName:Z.appStarted.shortName,drsWhitelist:!1}),this.gameDetails.cmsId=this.currentGameInfo.cmsId.toString(),this.gameDetails.drsName=this.currentGameInfo.drsName,this.gameDetails.drsProfileName=this.currentGameInfo.drsProfileName,this.getPerfOverlayVisiblity()&&this.telemetryIgoService.sendStatsOverlaySession(this.gameDetails,N.B_[I.Np[this.perfmonData.activeMetricSetId]],this.perfmonData.perfOverlayAbsolutePosition.x,this.perfmonData.perfOverlayAbsolutePosition.y,N.Om[I.Vq[this.perfmonData.perfOverlayVisibilityMode]],N.Eq[I.pw[this.perfmonData.activeLayout]],!0),this.setProcessID(Z.appStarted.pid,!1).subscribe(),this.perfmonData&&void 0===this.perfmonData.rectAlignmentStatus&&(this.perfmonData.rectAlignmentStatus=!0),this.perfmonData?.rectAlignmentStatus&&this.isRLAsupportedDD&&this.isRLAEnabled&&(this.isPerfTrackingActive?this.alignMonitoringRect():(this.startPerfTracking(),setTimeout(()=>{this.alignMonitoringRect(),!this.perfmonData.isPerfOverlayVisible&&!this.perfmonData.isLogging&&this.stopPerfTracking()},I.v4)))}isNgxDlssError(Z){return!!(Z.dlssOverrideFlagErrFailed||Z.dlssOverrideFlagErrDenied||Z.dlssOverrideFlagErrDRS||Z.dlssOverrideFlagErrNotFound||Z.dlssOverrideFlagErrDllLoad)}pollNgxOverrideState(){this.GetNGXOverrideState(this.currentGameInfo.procId,this.currentGameInfo.cmsId).pipe((0,i.s)(1),(0,O.ZZ)(Z=>{if(!Z)return(0,v.of)(R.xJ);if(this.ngxService.isDlssFGEnabled())if(Z.dlssOverrideFlagEvaluateFG&&!this.isNgxDlssError(Z.errFeedbackFG)){const Se=this.translateService.instant("dlssoverride.models.latest");this.setDlssFGModelmetric(Se),this.setDlssFGCountmetric(this.getDlssFGCountValue(R.N5[Z.frameGenerationCount]))}else this.setDlssFGModelmetric(R.lD),this.setDlssFGCountmetric(this.getDlssFGCountValue(R.lD));if(this.ngxService.isDlssSREnabled())if(Z.dlssOverrideFlagEvaluateSR&&!this.isNgxDlssError(Z.errFeedbackSR)){let Se=R.LM[Z.renderPreset];(!Se||!Z.renderPreset)&&(Se=R.lD),this.setDlssSRModelmetric(Se),this.setDlssSRModemetric(this.getDlssSRModeValue(R.aT[Z.performanceMode],Z.scalingRatio))}else this.setDlssSRModelmetric(R.lD),this.setDlssSRModemetric(this.getDlssSRModeValue(R.lD));if(this.ngxService.isDlssRREnabled())if(Z.dlssOverrideFlagEvaluateRR&&!this.isNgxDlssError(Z.errFeedbackRR)){let Se=R.LM[Z.renderPreset];(!Se||!Z.renderPreset)&&(Se=R.lD),this.setDlssRRModelmetric(Se),this.setDlssRRModemetric(this.getDlssRRModeValue(R.aT[Z.performanceMode],Z.scalingRatio))}else this.setDlssRRModelmetric(R.lD),this.setDlssRRModemetric(R.lD);return(0,v.of)(R.xJ)}),(0,P.W)(Z=>(this.logger.info("Get DLSS GetNGXOverrideState error : ",Z),this.setDlssSRModelmetric(R.yE),this.setDlssSRModemetric(R.yE),this.setDlssRRModelmetric(R.yE),this.setDlssRRModemetric(R.yE),this.setDlssFGModelmetric(R.yE),this.setDlssFGCountmetric(R.yE),(0,v.of)(void 0)))).subscribe(),this.ngxService.isDlssSMEnabled()&&this.ngxService.getFgxDynamicState().pipe((0,i.s)(1),(0,r.n)(Z=>{if(this.logger.info("FGX Dynamic state ",Z),!Z)return(0,v.of)("commonLabels.Inactive");let Se="";return Se=Z.isFgxEnabled?"commonLabels.Active":"commonLabels.Inactive",(0,v.of)(Se)}),(0,P.W)(Z=>(this.logger.info("Get FGX DRS state error : ",Z),(0,v.of)(R.yE)))).subscribe(Z=>{this.setDlssSMmetric(this.translateService.instant(Z))})}onGameExit(Z){this.logger.info(" App Exit Data: ",Z?.gameExited?.exitAppPID),this.setProcessID(Z?.gameExited?.exitAppPID,!0).subscribe(),this.clearDlssMetricValues(),this.clearCachedMetricValues(),this.stopNgxPolling()}clearDlssMetricValues(){this.setDlssSRModelmetric(R.xJ),this.setDlssSRModemetric(R.xJ),this.setDlssRRModelmetric(R.xJ),this.setDlssRRModemetric(R.xJ),this.setDlssFGModelmetric(R.xJ),this.setDlssFGCountmetric(R.xJ),this.setDlssSMmetric(R.xJ)}registerPerfStatsNotifications(){this.bridgeService.executeCommand(m.Ts.Share.Nvperfmon.RegisterPerfStatsNotifications).subscribe(Z=>{this.updatePerfStats(Z)},Z=>{this.logger.error("error:",Z)})}registerDisplayNotifications(){this.logger.info("registerDisplayNotifications"),this.oscDisplayService.getCurrentDesktopMode().pipe((0,f.M)(()=>{this.perfmonData&&(this.logger.info("registerDisplayNotifications, isPerfOverlayVisible:",this.perfmonData.isPerfOverlayVisible),this.perfOverlayVisibilityChanged$.next(this.perfmonData.isPerfOverlayVisible))})).subscribe(),this.oscDisplayService.getCurrentDisplayMode().pipe((0,f.M)(Z=>{this.currentDisplayMode=Z})).subscribe()}setHotkeys(Z){this.hotkeyService.setHotkeyDynamicEnable([U.g8.PMOCOverlay,U.g8.PMOCLoggingToggle,U.g8.PMOCOverlayCycle,U.g8.PMOCOverlayVisibility,U.g8.PMOCResetAverageMetrics],Z)}registerHotkey(Z,Se){this.hotkeyService.listen(Z).pipe((0,a.c)(this.throttleDuration)).subscribe(()=>{Se()})}registerHotkeyNotifications(){this.registerHotkey(U.g8.PMOCOverlay,this.togglePerfOverlay.bind(this)),this.registerHotkey(U.g8.PMOCLoggingToggle,this.toggleLogging.bind(this)),this.registerHotkey(U.g8.PMOCOverlayCycle,this.cyclePerfOverlayMetrics.bind(this)),this.registerHotkey(U.g8.PMOCOverlayVisibility,this.toggleEnhancedMode.bind(this)),this.registerHotkey(U.g8.PMOCResetAverageMetrics,this.resetAverages.bind(this))}togglePerfOverlay(Z,Se=!0){this.checkPerformancePositionCoordinates();const Ce=this.perfmonData.isPerfOverlayVisible;this.logger.info("togglePerfOverlay, oldState:",Ce,"forceOperation:",Z),this.perfmonData.isPerfOverlayVisible=void 0!==Z?Z:!this.perfmonData.isPerfOverlayVisible,this.perfmonData.isPerfOverlayVisible?(this.isPerfOverlayEnabled=!0,Ce||this.startPerfTracking()):this.stopPerfTracking(),this.perfOverlayVisibilityChanged$.next(this.perfmonData.isPerfOverlayVisible);const Be=this.checkSystemLatency(),Xe=[I.Np.Latency];Be&&Xe.push(I.Np.Custom),(this.islegacyRFISupported||this.islatestRFISupported)&&this.isRLAEnabled&&!this.flashIndicatorStatus&&(this.perfmonData.isPerfOverlayVisible&&Xe.includes(this.perfmonData.activeMetricSetId)?this.setFlashIndicatorVisibility(!0):this.setFlashIndicatorVisibility(!1)),this.savePersistedData(),!this.perfmonData.isPerfOverlayVisible&&!this.isPerfMenuLaunched&&this.clearCachedMetricValues(),Ce!==this.perfmonData.isPerfOverlayVisible&&(this.perfmonData.isPerfOverlayVisible?this.telemetryIgoService.startStatsOverlaySession(Se?N.gv.UsingHotkey:N.gv.UsingUI):this.telemetryIgoService.sendStatsOverlaySession(this.gameDetails,N.B_[I.Np[this.perfmonData.activeMetricSetId]],this.perfmonData.perfOverlayAbsolutePosition.x,this.perfmonData.perfOverlayAbsolutePosition.y,N.Om[I.Vq[this.perfmonData.perfOverlayVisibilityMode]],N.Eq[I.pw[this.perfmonData.activeLayout]],!1))}cyclePerfOverlayMetrics(){if(!this.perfmonData.isPerfOverlayVisible)return;this.logger.info("cyclePerfOverlay, current metricSet:",this.perfmonData.activeMetricSetId,this.isRLAEnabled);let Z=I.Or;this.perfmonData.activeMetricSetId===I.Np.FPS?Z=I.Np.Basic:this.perfmonData.activeMetricSetId===I.Np.Basic?Z=I.Np.Advanced:this.perfmonData.activeMetricSetId===I.Np.Advanced?Z=this.isRLAEnabled?I.Np.Latency:this.isDlssSupportedDD?I.Np.DLSS:I.Np.Custom:this.perfmonData.activeMetricSetId===I.Np.Latency?Z=this.isDlssSupportedDD?I.Np.DLSS:I.Np.Custom:this.perfmonData.activeMetricSetId===I.Np.DLSS?Z=I.Np.Custom:this.perfmonData.activeMetricSetId===I.Np.Custom&&(Z=I.Np.FPS),this.oscDisplayService.unsetDisplayRects().subscribe(),this.setMetricSet(Z)}toggleEnhancedMode(){this.perfmonData.isPerfOverlayVisible&&(this.logger.info("toggleEnhancedMode, current mode:",this.perfmonData.perfOverlayVisibilityMode),this.oscDisplayService.unsetDisplayRects().subscribe(),this.setVisibilityMode((this.perfmonData.perfOverlayVisibilityMode+1)%2))}initPerfStats(){return this.bridgeService.executeCommand(m.Ts.Share.Nvperfmon.GetGpuInfo).pipe((0,y.T)(Z=>(this.gpuData=Z.gpus,this.logger.info("GPUData",this.gpuData),this.gpuData.forEach((Se,Ce)=>{this.perfData[Ce]=(0,I.UY)()}),!0)),(0,P.W)(Z=>(this.logger.error("error:",Z),(0,v.of)(!1))))}round(Z,Se){return Math.round(Z*(Se=Math.pow(10,Se)))/Se}fillPerfMetrics(Z,Se){const Ce=this.perfData[Se],Be=Z.gpusPerfStats.find(Me=>Me.gpuIndex===Se);let Xe=0,He=!1;Ce.forEach(Me=>{let Q;if(Be&&Me.category===I.TE.GPU){if(Q=Be[Me.metricId],"gpuFanSpeed"===Me.metricId&&Q&&Q.length>0){let A=0;for(let me=0;me<Q.length;me++)A+=parseInt(Q[me].fanSpeed,10);Q=Math.trunc(A/Q.length)}}else Q=Z[Me.metricId];"reflexMonitorPosition"!==Me.metricId&&(Q>0&&Me.category===I.TE.FPS?(Q=Math.round(Q),+Me.value<100&&Q>=100&&(He=!0)):Q>0&&(Me.category===I.TE.Latency||"renderLatency"===Me.metricId)?Q=this.round(Q,1).toFixed(1):Q>0&&"gpuVoltage"===Me.metricId?Q=this.round(Q,3).toFixed(3):void 0!==Q&&(Q=this.round(Q,1))),Me.value=Q,this.updateMetricVisibility(Me),Me.category===I.TE.DLSSFG&&("dlssfgmodel"===Me.metricId?Me.value!==this.dlssfgmodelvalue&&(He=!0,Me.value=this.dlssfgmodelvalue):"dlssfgcount"===Me.metricId&&Me.value!==this.dlssfgcountvalue&&(He=!0,Me.value=this.dlssfgcountvalue)),Me.category===I.TE.DLSSRR&&("dlssrrmodel"===Me.metricId?Me.value!==this.dlssrrmodelvalue&&(He=!0,Me.value=this.dlssrrmodelvalue):"dlssrrmode"===Me.metricId&&Me.value!==this.dlssrrmodevalue&&(He=!0,Me.value=this.dlssrrmodevalue)),Me.category===I.TE.DLSSSR&&("dlsssrmodel"===Me.metricId?Me.value!==this.dlsssrmodelvalue&&(He=!0,Me.value=this.dlsssrmodelvalue):"dlsssrmode"===Me.metricId&&Me.value!==this.dlsssrmodevalue&&(He=!0,Me.value=this.dlsssrmodevalue)),Me.category===I.TE.DLSSSM&&Me.value!==this.dlsssmvalue&&(He=!0,Me.value=this.dlsssmvalue),Me.useCachedValue&&(void 0!==Me.value?Me.cachedValue=Me.value:Me.value=Me.cachedValue),Me.visible&&(Xe+=1)}),Xe!==this.visibleMetricCount?(this.logger.info("visibile metric count changed"),this.visibleMetricCount=Xe,this.perfOverlayVisibilityChanged$.next(this.perfmonData.isPerfOverlayVisible)):He&&this.getActiveLayout()!==I.pw.Stacked&&this.oscDisplayService.triggerForcedDisplayRectUpdate()}checkFPSViewVisibility(Z){this.perfmonData.activeMetricSetId===I.Np.FPS&&(void 0===Z||this.fpsMetricVisible?void 0===Z&&this.fpsMetricVisible&&(this.fpsMetricVisible=!1,this.perfOverlayVisibilityChanged$.next(this.perfmonData.isPerfOverlayVisible)):(this.fpsMetricVisible=!0,this.perfOverlayVisibilityChanged$.next(this.perfmonData.isPerfOverlayVisible)))}updatePerfStats(Z){Z&&Z.gpusPerfStats&&Z.gpusPerfStats.length>0?(Z.gSyncLamp&&(Object.keys(Z.gSyncLamp).forEach(Se=>{if("lamEnabled"===Se)Z.gSyncLamp[Se]!==this.isLAMSupported&&(this.logger.info("Lam metrics support recieved"),this.logger.info("stats:",Z),this.isLAMSupported=Z.gSyncLamp[Se]);else if("reflexMonitorPosition"===Se){const Ce=Z.gSyncLamp[Se];Z[Se]="("+Ce.topleftx+", "+Ce.toplefty+")"}else if(Se.toLowerCase().includes("mouselatency")){const Ce=Z.gSyncLamp[Se].latency;Z[Se]=Ce&&Ce>0?Ce/1e3:void 0}else{const Ce=Z.gSyncLamp[Se];Z[Se]=Ce&&Ce>0?Ce/1e3:void 0}}),delete Z.gSyncLamp),this.gpuData.forEach(Se=>{this.fillPerfMetrics(Z,Se.index),this.checkFPSViewVisibility(Z.fps)})):this.logger.error("No GPU stats present, ignore this FvSDK sample:",Z)}getRFIDataForLaunchedGame(){return this.ensureChromaDataIsAvailableForGame().pipe((0,y.T)(Z=>{if(!this.perfmonData||!Z)return;this.islatestRFISupported=Z.nvidiaTech.REFLEXFIAUTO,this.islegacyRFISupported=Z.nvidiaTech.REFLEXFLASHINDICATOR,this.isReflexIntegrated=Z.nvidiaTech.REFLEX,(this.islatestRFISupported||this.islegacyRFISupported)&&(this.runningRFISupportedGamePID=Z.pid);const Se=this.checkSystemLatency(),Ce=[I.Np.Latency];Se&&Ce.push(I.Np.Custom),this.islatestRFISupported||this.islegacyRFISupported?this.perfmonData.flashIndicatorStatus?this.setFlashIndicatorSize(this.perfmonData.flashIndicatorStatus):this.setFlashIndicatorVisibility(this.perfmonData.isPerfOverlayVisible&&Ce.includes(this.perfmonData.activeMetricSetId)):this.setFlashIndicatorVisibility(!1),this.perfmonData.isPerfOverlayVisible&&this.isRLAEnabled&&this.isValidGameRunning&&(this.islegacyRFISupported?(this.logger.info("Toggle legacy RFI from in-game settings"),this.oscNotificationService.show(E.Ed.PerfMonRfiWarning)):this.islegacyRFISupported||this.islatestRFISupported||(this.logger.info("RFI not supported"),this.oscNotificationService.show(E.Ed.PerfMonRectAlignmentWarning)))}),(0,P.W)(Z=>(this.logger.error("Unable to obtain game meta data:",Z),S.w)))}setDlssSRModelmetric(Z){this.dlsssrmodelvalue=this.translateService.instant(Z)}setDlssRRModelmetric(Z){this.dlssrrmodelvalue=this.translateService.instant(Z)}setDlssFGModelmetric(Z){this.dlssfgmodelvalue=this.translateService.instant(Z)}setDlssSRModemetric(Z){this.dlsssrmodevalue=this.translateService.instant(Z)}setDlssRRModemetric(Z){this.dlssrrmodevalue=this.translateService.instant(Z)}setDlssFGCountmetric(Z){this.dlssfgcountvalue=this.translateService.instant(Z)}getDlssFGCustomSelected(){return this.dlssFGModelCustom&&this.dlssFGCountCustom}getDlssSRCustomSelected(){return this.dlssSRModelCustom&&this.dlssSRModeCustom}getDlssRRCustomSelected(){return this.dlssRRModelCustom&&this.dlssRRModeCustom}setDlssFGModelCustomSelected(Z){this.dlssFGModelCustom=Z}setDlssSRModelCustomSelected(Z){this.dlssSRModelCustom=Z}setDlssRRModelCustomSelected(Z){this.dlssRRModelCustom=Z}setDlssFGCountCustomSelected(Z){this.dlssFGCountCustom=Z}setDlssSRModeCustomSelected(Z){this.dlssSRModeCustom=Z}setDlssRRModeCustomSelected(Z){this.dlssRRModeCustom=Z}setDlssSMmetric(Z){this.dlsssmvalue=this.translateService.instant(Z)}getDlssSRModeValue(Z,Se=0){return Z&&this.ngxService.isDlssSRModeSupported()?this.ngxService.isDlssSRModeOff()?R.xF:"dlssoverride.performanceModes.default"===Z?R.lD:("dlssoverride.performanceModes.custom"===Z&&(Z=this.translateService.instant(Z)+" ("+Se+"%)"),Z):R.xJ}getDlssRRModeValue(Z,Se=0){return Z&&this.ngxService.isDlssRRModeSupported()?this.ngxService.isDlssRRModeOff()?R.xF:"dlssoverride.performanceModes.default"===Z?R.lD:("dlssoverride.performanceModes.custom"===Z&&(Z=this.translateService.instant(Z)+" ("+Se+"%)"),Z):R.xJ}getDlssFGCountValue(Z){return Z&&this.ngxService.isDlssFGCountSupported()?this.ngxService.isDlssFGCountOff()?R.xF:"dlssoverride.fg.off"===Z?R.lD:Z:R.xJ}ensureChromaDataIsAvailableForGame(){return this.lcarsService.getCurrentAppChromaInfo().pipe((0,_.p)(Z=>!!Z&&void 0!==Z.pid&&Z.pid===this.currentGameInfo.procId),(0,y.T)(Z=>(this.logger.info("Chroma info fetched successfully for the current reflex game ",Z),Z)),(0,i.s)(1),(0,c.w)(M.CZ))}static{this.\u0275fac=function(Se){return new(Se||ue)(B.KVO(B.zZn),B.KVO(X.c$),B.KVO(H.J6),B.KVO(H.at),B.KVO(H.NZ),B.KVO(U.QS),B.KVO(J.R),B.KVO(E.mb),B.KVO(re.S),B.KVO(ie.B))}}static{this.\u0275prov=B.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"})}}return ue})()},30254:(Bt,z,s)=>{"use strict";s.d(z,{$k:()=>D,J1:()=>M,O3:()=>l,Ow:()=>a,Qu:()=>U,VL:()=>i,X4:()=>d,ag:()=>S,dz:()=>c,ke:()=>m,lR:()=>f,on:()=>r,qp:()=>I,sg:()=>P});var n=s(20924),l=function(V){return V[V.FEATURE_SUPPORT_ERROR_OK=0]="FEATURE_SUPPORT_ERROR_OK",V[V.FEATURE_SUPPORT_ERROR_ERROR=1]="FEATURE_SUPPORT_ERROR_ERROR",V[V.FEATURE_SUPPORT_ERROR_MINIMUM_DRIVER_VERSION_NOT_MET=2]="FEATURE_SUPPORT_ERROR_MINIMUM_DRIVER_VERSION_NOT_MET",V[V.FEATURE_SUPPORT_ERROR_OS_HDR_DISABLED=3]="FEATURE_SUPPORT_ERROR_OS_HDR_DISABLED",V}(l||{}),d=function(V){return V[V.GPU_INCOMPATIBLE=0]="GPU_INCOMPATIBLE",V[V.CLIENT_VIRTUALIZATION_ENABLED=1]="CLIENT_VIRTUALIZATION_ENABLED",V[V.OS_INCOMPATIBLE=2]="OS_INCOMPATIBLE",V[V.MSHYBRID_ENABLED=8]="MSHYBRID_ENABLED",V[V.DISPLAY_INCOMPATIBLE=10]="DISPLAY_INCOMPATIBLE",V[V.NO_DISPLAY_CONNECTED=11]="NO_DISPLAY_CONNECTED",V[V.GAME_DENYLISTED=21]="GAME_DENYLISTED",V}(d||{}),v=function(V){return V[V.MULTI_MON_DETECTED=3]="MULTI_MON_DETECTED",V[V.HDR_DISABLED=4]="HDR_DISABLED",V[V.SOC_FEATURE_ENABLED=5]="SOC_FEATURE_ENABLED",V[V.SLI_ENABLED=6]="SLI_ENABLED",V[V.SURROUND_ENABLED=7]="SURROUND_ENABLED",V[V.MSHYBRID_ENABLED_DDS_IGPU=9]="MSHYBRID_ENABLED_DDS_IGPU",V[V.USE_ALTERNATE_DISPLAY=12]="USE_ALTERNATE_DISPLAY",V[V.MINIMUM_DRIVER_VERSION_NOT_MET=20]="MINIMUM_DRIVER_VERSION_NOT_MET",V}(v||{});const S={[v.MULTI_MON_DETECTED]:"nvcamera.PpeError.multiMonitor",[v.MINIMUM_DRIVER_VERSION_NOT_MET]:"nvcamera.PpeError.minDriver",[v.HDR_DISABLED]:"nvcamera.PpeError.osAndAutoHdrAndGameHdr",[v.SLI_ENABLED]:"nvcamera.PpeError.sli",[v.SURROUND_ENABLED]:"nvcamera.PpeError.surround",[v.SOC_FEATURE_ENABLED]:"nvcamera.PpeError.socFeatures",[v.USE_ALTERNATE_DISPLAY]:"nvcamera.PpeError.alternateDisplay",[v.MSHYBRID_ENABLED_DDS_IGPU]:"nvcamera.PpeError.msHybridDDS"};var y=function(V){return V[V.INGAMEHDR_AUTOHDR_ENABLED=0]="INGAMEHDR_AUTOHDR_ENABLED",V}(y||{});const f={[y.INGAMEHDR_AUTOHDR_ENABLED]:"nvcamera.PpeError.AutoHdrAndGameHdr"};var O=function(V){return V[V.DRS_REGKEY_NOT_SET=0]="DRS_REGKEY_NOT_SET",V[V.UNSUPPORTED_PRESENTATION_MODE=1]="UNSUPPORTED_PRESENTATION_MODE",V[V.GAME_HDR_ENABLED=2]="GAME_HDR_ENABLED",V[V.OS_HDR_DISABLED=3]="OS_HDR_DISABLED",V[V.SOC_FEATURES_ENABLED=4]="SOC_FEATURES_ENABLED",V[V.MISTMATCHED_DISPLAY=5]="MISTMATCHED_DISPLAY",V[V.API_NOT_SUPPORTED=6]="API_NOT_SUPPORTED",V}(O||{});const P={[O.DRS_REGKEY_NOT_SET]:"nvcamera.PpeError.featureDisabled",[O.UNSUPPORTED_PRESENTATION_MODE]:"nvcamera.PpeError.iFlip",[O.GAME_HDR_ENABLED]:"nvcamera.PpeError.osAndAutoHdrAndGameHdr",[O.OS_HDR_DISABLED]:"nvcamera.PpeError.osAndAutoHdrAndGameHdr",[O.SOC_FEATURES_ENABLED]:"nvcamera.PpeError.socFeatures",[O.MISTMATCHED_DISPLAY]:"nvcamera.PpeError.mismatchedDisplay",[O.API_NOT_SUPPORTED]:"nvcamera.PpeError.unsupportedApi"},i="sqhfx7",r="nXEC17",a="ydzplY",c="ydznXE",m={filterDetails:{filter:{status:n.Or.Common.Nvcamera.AnselStatusEnum.ok},controls:[{id:0,displayName:"Intensity (%)",controlType:"slider",measureUnit:"%",dataType:n.Or.Common.Nvcamera.DataType.uint,minValue:[0],maxValue:[100],defaultValue:[50],currentValue:[50],stepSize:[1],uiStepSize:[1],uiMinValueV1:[0],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:0,uiMaxValue:100},{id:0,displayName:"Saturation Boost (%)",controlType:"slider",measureUnit:"%",dataType:n.Or.Common.Nvcamera.DataType.uint,minValue:[0],maxValue:[100],defaultValue:[25],currentValue:[25],stepSize:[1],uiStepSize:[1],uiMinValueV1:[0],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:0,uiMaxValue:100}]}},M={filterDetails:{filter:{status:n.Or.Common.Nvcamera.AnselStatusEnum.ok},controls:[{id:0,displayName:"Peak brightness (nits)",controlType:"slider",measureUnit:"%",dataType:n.Or.Common.Nvcamera.DataType.uint,minValue:[0],maxValue:[100],defaultValue:[1],currentValue:[1],stepSize:[1],uiStepSize:[1],uiMinValueV1:[0],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:0,uiMaxValue:100},{id:0,displayName:"Middle greys (nits)",controlType:"slider",measureUnit:"nits",dataType:n.Or.Common.Nvcamera.DataType.uint,minValue:[0],maxValue:[100],defaultValue:[50],currentValue:[50],stepSize:[1],uiStepSize:[1],uiMinValueV1:[0],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:0,uiMaxValue:100},{id:0,displayName:"Contrast (%)",controlType:"slider",measureUnit:"%",dataType:n.Or.Common.Nvcamera.DataType.int,minValue:[-100],maxValue:[100],defaultValue:[0],currentValue:[0],stepSize:[1],uiStepSize:[1],uiMinValueV1:[-100],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:-100,uiMaxValue:100},{id:0,displayName:"Saturation (%)",controlType:"slider",measureUnit:"%",dataType:n.Or.Common.Nvcamera.DataType.int,minValue:[-100],maxValue:[100],defaultValue:[0],currentValue:[0],stepSize:[1],uiStepSize:[1],uiMinValueV1:[-100],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:-100,uiMaxValue:100}]}},D={filterDetails:{filter:{status:n.Or.Common.Nvcamera.AnselStatusEnum.ok},controls:[{id:0,displayName:"Sharpen (%)",controlType:"slider",measureUnit:"%",dataType:n.Or.Common.Nvcamera.DataType.uint,minValue:[0],maxValue:[100],defaultValue:[50],currentValue:[50],stepSize:[1],uiStepSize:[1],uiMinValueV1:[0],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:0,uiMaxValue:100}]}};class I{constructor(){this.ppeFilterSlot={}}}var U=function(V){return V.RTX_DVC="RTX Dynamic Vibrance",V.RTX_HDR="RTX HDR",V.NIS2="Sharpen (Image Scaling)",V}(U||{})},83934:(Bt,z,s)=>{"use strict";s.d(z,{P:()=>H});var n=s(26513),l=s(35146),d=s(43848),v=s(36466),S=s(91384),y=s(75707),f=s(83915),O=s(14714),P=s(65706),_=s(40198),i=s(20924),r=s(23860),a=s(53914),c=s(18880),m=s(89284),M=s(57412),D=s(78854),I=s(59002),U=s(58527),V=s(99469),T=s(96542),N=s(12137),L=s(10279),E=s(27211),g=s(24964),R=s(5798),B=s(73934);let H=(()=>{class J{get streamerConfig(){return this.streamerConfigService.activeConfig}isHighlightsActive(){return this.highlightsActive$.asObservable()}overrideHighlightSettings(){return this.overrideHighlightUI}cachedAHLGameShortName(){return this.cachedShortName}constructor(ie,ve,ue,se,Z,Se,Ce,Be,Xe,He,Me,Q){this.injector=ie,this.bridgeService=ue,this.translateService=se,this.igoConfig=Z,this.oscNotificationService=Se,this.telemetry=Ce,this.telemetryIgo=Be,this.dialogHelper=Xe,this.endpointFactory=He,this.hotkeyService=Me,this.gfnInfoService=Q,this.disableRecordSpecialCase=I.Fm.RECORD_SPECIAL_CASE_4K,this.appShortName="",this.scopes=[],this.highlightsActive=!1,this.overrideHighlightUI=!1,this.sdkHighlightSupported=!1,this.cachedShortName="",this.sdkInstance={appShortName:"",profileName:"",name:"",sdkVersion:""},this.highlightsActive$=new n.t(!1),this.gameSpecificHlData=[],this.subActions=[],this.isNvApp=!1,this.logger=ve.getLogger("SdkHighlightsService"),this.isNvApp="GFE"===this.igoConfig.branding}init(){this.logger.info("Initialize"),this.gfnInfoService.getRecordSpecialCase().subscribe(ie=>{this.logger.info("disableRecordSpecialCase mode: ",ie),this.disableRecordSpecialCase=ie}),this.bridgeService.executeCommand(i.Ts.Share.Shareserver.RegisterSDKNotifications).subscribe(ie=>this.highlightsEvent(ie)),this.bridgeService.executeCommand(i.Ts.Share.Shareserver.GetHighlightsActive).subscribe(ie=>{ie&&this.highlightsActive$.next(!this.disableRecordSpecialCase&&ie.active)})}getPermissionsData(ie){const ve=[];ve.push(this.bridgeService.executeCommand(i.Ts.Share.Shareserver.GetApplicationConfigs,{}).pipe((0,S.M)(ue=>{if(this.gameSpecificHlData.length=0,ue){const se=ue.apps.findIndex(Z=>Z.app.profileName===ie);-1!==se&&(this.gameSpecificHlData=ue.apps[se].highlights,this.gameSpecificHlData.forEach(Z=>Z.userEnabled=!0))}}))),ve.push(this.hotkeyService.blockAllHotkeys(!0).pipe((0,S.M)(()=>{this.logger.info("Hotkeys disabled")}))),setTimeout(()=>{(0,l.yU)(...ve).subscribe(()=>{this.askToSetPermissions(ie)})},2e3)}askToSetPermissions(ie){this.logger.info("permissions request");let ve="GFE"===this.igoConfig.branding?"product.NVAPP":"product.GFN";ve=this.translateService.instant(ve);let ue="GFE"===this.igoConfig.branding?"confirmation.HighlightsTitle":ve;ue=this.translateService.instant(ue);const se="GFE"===this.igoConfig.branding?"confirmation.HighlightsPermissionsNvApp":"confirmation.HighlightsPermissions",Z="GFE"===this.igoConfig.branding?"confirmation.HighlightsHintNvApp":"confirmation.HighlightsHint";this.subActions.length=0,this.gameSpecificHlData.length>0&&this.gameSpecificHlData.forEach(Ce=>{const Be=`highlightLabels.${Ce.name}`;let Xe=this.translateService.instant(Be);Xe===Be&&(Xe=Ce.name),this.subActions.push({label:Xe,state:Ce.userEnabled})}),this.dialogHelper.openAlertDialog({title:ue,query:se,queryParam:{arg:ie},state:"confirmation.HighlightsMainCheckbox",hint:Z,hintParam:{arg:ve},action1:"confirmation.LetsGo",action1Color:"#76b900",subActions:this.subActions}).pipe((0,y.ZZ)(Ce=>Ce.afterClosed())).subscribe(Ce=>{Ce===c.SF.Action1?this.allowHighlights():this.disallowHighlights(),this.hotkeyService.blockAllHotkeys(!1).subscribe()})}highlightsEvent(ie){this.logger.info("Event: ",ie),ie?ie.requestPermissions?this.eventRequestPermissions(ie):ie.createInstance?this.eventCreateInstance(ie):ie.destroyInstance?this.eventDestroyInstance(ie):ie.updatePermissions?(this.sdkInstance.appShortName=ie.updatePermissions.app.appShortName,this.sdkInstance.profileName=ie.updatePermissions.app.profileName,this.sdkInstance.name=ie.updatePermissions.app.name):ie.actionStatus?this.eventActionStatus(ie):ie.openGroup||ie.closeGroup||(ie.highlightSessionStatus?(this.highlightsActive=ie.highlightSessionStatus.enable,this.highlightsActive$.next(ie.highlightSessionStatus.enable)):ie.manualRecordRunning?"GFE"===this.igoConfig.branding&&this.oscNotificationService.show(r.Ed.ManualRecordRunning,ie.manualRecordRunning.manualRecordGameName,ie.manualRecordRunning.gameName):this.logger.info("Unknown or unhandled Event Type: ",ie)):this.logger.info("Event: undefined or null")}eventRequestPermissions(ie){this.appShortName=ie.requestPermissions.app.appShortName,this.scopes=ie.requestPermissions.scopes,this.getPermissionsData(ie.requestPermissions.app.profileName)}eventCreateInstance(ie){this.sdkInstance.appShortName=ie.createInstance.app.appShortName,this.sdkInstance.profileName=ie.createInstance.app.profileName,this.sdkInstance.name=ie.createInstance.app.name,this.sdkInstance.sdkVersion=ie.createInstance.sdkVersion}sendHighlightFailureTelemetry(ie){!this.isNvApp||!ie?.actionStatus?.app?.name||!ie?.actionStatus?.status||this.telemetry.sendHighlightCapture({shortName:ie.actionStatus.app.name},null,null,null,null,ie.actionStatus.status)}eventActionStatus(ie){const ve=ie.actionStatus;"HighlightsSaveVideo"!==ie.actionStatus.action&&"HighlightsSaveScreenshot"!==ie.actionStatus.action||"NVGSDK_ERR_CAP_LIMIT_REACHED"!==ie.actionStatus.status?"HighlightsSaveVideo"!==ie.actionStatus.action&&"HighlightsSaveScreenshot"!==ie.actionStatus.action||"NVGSDK_ERR_DISK_LIMIT_REACHED"!==ie.actionStatus.status?"NVGSDK_SUCCESS"!==ie.actionStatus.status&&(void 0===ie.actionStatus.status?ie.actionStatus.status="NVGSDK_ERR_NOT_SET":this.sendHighlightFailureTelemetry(ie),this.logger.info("Event not handled: ",ie)):(this.logger.info("Capture failed due to disk space limit"),this.oscNotificationService.show(r.Ed.NoSpaceCaptureNotSaved,"commonLabels.Highlights")):(this.logger.info("Capture failed due to cap space limit"),this.oscNotificationService.show(r.Ed.NoSpaceCaptureNotSaved,"commonLabels.Highlights")),this.telemetryIgo.recordSDKCallResult(ve.action,ve.status,ve.statusInternalCode,{shortName:ve.app.appShortName},ve.sdkVersion?ve.sdkVersion:""),ve.action===a.rV.connect&&!this.isNvApp&&this.getStateOfCurrentGame(ie.actionStatus.app).subscribe(ue=>{ue.permissionParams.permissions.length>0&&this.telemetry.sendHighlightsGameSetting({},ue.state,ue.state?a.Bt.alreadyOn:a.Bt.alreadyOff)})}eventDestroyInstance(ie){this.sdkInstance.appShortName="",this.sdkInstance.profileName="",this.sdkInstance.name="",this.sdkInstance.sdkVersion=""}fillPermissions(ie){const ve={app:{},permissions:[]};return ve.app.appShortName=this.appShortName,this.scopes.forEach((ue,se)=>{ve.permissions[se]={scope:ue,permission:ie}}),ve}setPermissions(ie){const ve=this.fillPermissions(ie);return this.bridgeService.executeCommand(i.Ts.Share.Shareserver.SetSDKPermissions,ve).pipe((0,f.T)(ue=>(this.logger.info("SetSDKPermissions "+(ie===i.Or.Share.Shareserver.SdkPermissions.granted?"granted":"denied")+" for: ",this.appShortName),this.gameSpecificHlData.length>0&&this.updateHighlightsSettings(),!0)),(0,O.W)(ue=>(this.logger.info("SetSDKPermissions failed: ",ue),(0,d.of)(!1))))}updateHighlightsSettings(){const ve={app:{appShortName:this.sdkInstance.appShortName,profileName:this.sdkInstance.profileName,name:this.sdkInstance.name},highlightDefinitions:this.gameSpecificHlData};ve.highlightDefinitions.forEach(ue=>{const se=`highlightLabels.${ue.name}`;let Z=this.translateService.instant(se);Z===se&&(Z=ue.name),ue.userEnabled=this.subActions.find(Se=>Se.label===Z).state}),this.bridgeService.executeCommand(i.Ts.Share.Shareserver.SetHighlightsConfig,ve).subscribe(()=>{})}allowHighlights(){this.setPermissions(i.Or.Share.Shareserver.SdkPermissions.granted).subscribe(),this.telemetry.sendHighlightsGameSetting({shortName:this.sdkInstance.appShortName},!0,a.Bt.initial,null,a.f2.gameToggle,this.sdkInstance.profileName)}disallowHighlights(){this.setPermissions(i.Or.Share.Shareserver.SdkPermissions.denied).subscribe(),this.telemetry.sendHighlightsGameSetting({shortName:this.sdkInstance.appShortName},!1,a.Bt.initial,null,a.f2.gameToggle,this.sdkInstance.profileName)}getStateOfCurrentGame(ie){return this.bridgeService.executeCommand(i.Ts.Share.Shareserver.GetSDKPermissions,{app:ie}).pipe((0,f.T)(se=>{let Z=!1;for(let Ce=0;Ce<se.permissions.length;Ce++)Z=se.permissions[Ce].permission===i.Or.Share.Shareserver.SdkPermissions.granted||Z,this.logger.info(se.permissions[Ce].scope+" permissions for: "+ie.profileName+" are: "+se.permissions[Ce].permission);return{permissionParams:{app:ie,permissions:se.permissions},state:Z}}))}setStateOfCurrentGame(ie){for(let ue=0;ue<ie.permissionParams.permissions.length;ue++)ie.permissionParams.permissions[ue].permission=ie.state?i.Or.Share.Shareserver.SdkPermissions.granted:i.Or.Share.Shareserver.SdkPermissions.denied;return this.bridgeService.executeCommand(i.Ts.Share.Shareserver.SetSDKPermissions,ie.permissionParams).pipe((0,f.T)(()=>{this.logger.info("Permissions for: "+ie.permissionParams.app.profileName+" changed to: "+ie.permissionParams.permissions[0].permission)}))}IsSDKHighlightSupportedGame(ie){return this.lcarsService.getMetadataByCmsId(ie).pipe((0,f.T)(ve=>{if(ve){if(this.logger.info("isHighlightsSupported: ",ve.nvidiaTech?.HIGHLIGHTS),ve.nvidiaTech?.HIGHLIGHTS)return this.sdkHighlightSupported=!0,void(this.overrideHighlightUI=!1);this.sdkHighlightSupported=!1}else this.logger.info("isHighlightsSupported value not found for the game")})).subscribe(v.l,ve=>{this.sdkHighlightSupported=!1,this.overrideHighlightUI=!1,this.logger.error("Unable to obtain game meta data.",ve)})}IsSDKHighlightSupportedGameNvapp(){return this.lcarsServiceNvApp?.getCurrentAppChromaInfo().pipe((0,f.T)(ie=>{if(ie){if(this.logger.info("isHighlightsSupported: ",ie.nvidiaTech?.HIGHLIGHTS),ie.nvidiaTech?.HIGHLIGHTS)return this.sdkHighlightSupported=!0,void(this.overrideHighlightUI=!1);this.sdkHighlightSupported=!1}else this.logger.info("isHighlightsSupported value not found for the game")}),(0,P.s)(1),(0,_.w)(D.CZ)).subscribe(v.l,ie=>{this.sdkHighlightSupported=!1,this.overrideHighlightUI=!1,this.logger.error("Unable to obtain game meta data.",ie)})}createEndpoint(){return this.endpointFactory.createEndpoint({config:{timeout:1e4,timeBetweenRetries:3e4,maxRetries:2}})}toggleAutohighlight(ie){!0===this.igoConfig.GFNCefClient?(this.streamerConfigService=this.injector.get(m.zi2),this.lcarsService=this.injector.get(m.Br4),this.IsSDKHighlightSupportedGame(this.streamerConfig.cmsId),this.enableAutohighlight(ie)):(this.lcarsServiceNvApp=this.injector.get(M.B),this.IsSDKHighlightSupportedGameNvapp())}enableAutohighlight(ie){const ve={toggle:ie};ie||this.sdkHighlightSupported?(this.overrideHighlightUI=!1,this.cachedShortName=""):(this.overrideHighlightUI=!0,this.cachedShortName=this.streamerConfig.shortName,this.logger.info("AHL disabled on a supported game: ",this.cachedShortName)),this.sdkHighlightSupported?this.logger.info("AHL not supported for ",this.streamerConfig.shortName):this.bridgeService.executeCommand(i.Ts.Share.Shareserver.ToggleAutoHighlight,ve).pipe((0,f.T)(ue=>(this.logger.info("ToggleAutoHighlight returns: ",ue),ue)),(0,O.W)(ue=>(this.logger.info("ToggleAutoHighlight error: ",ue),(0,d.of)(!1)))).subscribe()}toggleSdkHighlights(ie){!0===this.igoConfig.GFNCefClient&&this.bridgeService.executeCommand(i.Ts.Share.Shareserver.DisableRecordSpecialCase,{specialCase:ie?I.Fm.RECORD_SPECIAL_CASE_NONE:I.Fm.RECORD_SPECIAL_CASE_4K}).pipe((0,f.T)(ue=>(this.logger.info("DisableRecordSpecialCase returns: ",ue),ue)),(0,O.W)(ue=>(this.logger.info("DisableRecordSpecialCase error: ",ue),(0,d.of)(!1)))).subscribe()}static{this.\u0275fac=function(ve){return new(ve||J)(U.KVO(U.zZn),U.KVO(V.J6),U.KVO(V.NZ),U.KVO(T.c$),U.KVO(N.k),U.KVO(r.mb),U.KVO(L.x),U.KVO(E.S),U.KVO(g.e),U.KVO(R.t),U.KVO(B.QS),U.KVO(I.x_))}}static{this.\u0275prov=U.jDH({token:J,factory:J.\u0275fac,providedIn:"root"})}}return J})()},51830:(Bt,z,s)=>{"use strict";s.d(z,{W1:()=>me,YQ:()=>Se,gX:()=>A,m_:()=>Xe});var n=s(26513),l=s(80583),d=s(93181),v=s(43848),S=s(31315),y=s(17053),f=s(35146),O=s(8619),P=s(65706),_=s(73180),i=s(75707),r=s(83915),a=s(14714),c=s(91384),m=s(26875),D=s(20924),I=s(78812),U=s(50801),V=s(23860),T=s(73934),N=s(53914),L=s(43827),E=s(22123),g=s(18880),R=s(59002),B=s(72238),X=s(58527),H=s(99469),J=s(11728),re=s(10279),ie=s(24964),ve=s(12137),ue=s(83934),se=s(2688),Z=s(27211),Se=D.Or.Share.Shareserver.MicModeEnum,Ce=D.Or.Share.Shareserver.Resolution,Be=D.Or.Share.Shareserver.Quality,Xe=D.Or.Share.Shareserver.Codec,Q=D.Or.Share.Shareserver.DeviceTypeEnum,A=D.Or.Share.Shareserver.DeviceStateTypeEnum;let me=(()=>{class ne{constructor(W,$,le,Pe,Fe,At,Le,Et,$e,Ze,Qe,Ve,nt,Ot,at){this.injector=$,this.bridgeService=le,this.oscNotificationService=Pe,this.hotkeyService=Fe,this.oscDisplayService=At,this.telemetry=Le,this.dialogHelper=Et,this.igoConfig=$e,this.gfnInfoService=Ze,this.sdkHighlightService=Qe,this.microphoneService=Ve,this.featureSupportService=nt,this.telemetryIgoService=Ot,this.dbService=at,this.ShadowplayStorageKeyName="ShadowplayPersistedData",this.disableRecordSpecialCase=R.Fm.RECORD_SPECIAL_CASE_4K,this.$mrState=new n.t(!1),this.$irState=new n.t(L.Qe.off),this.$micState=new n.t(Se.off),this.$hlBadState=new n.t(!1),this.$micDeviceState=new l.B7,this.$micSelectionChanged=new l.B7,this.$camDeviceState=new l.B7,this.$micPttHotkey=new n.t(!1),this.$freestyleAnselState=new l.B7,this.$videoSpecsInitState=new n.t(!1),this.$appStartedEvent=new l.B7,this.$gAssistInstallState=new l.B7,this._mrStartTime=null,this.isDTCaptureSupported=!1,this.notebookCoProc=!1,this.captureState=null,this.isGfnMicrophoneEnabled=!1,this.hevcSupported=!1,this.maxIRTime=15,this.throttleMs=333,this.microphoneSpecs=[],this.currentMicIndex=-1,this.isNvApp=!1,this.isAV1RecSupported=!1,this.protectedContentFail=!1,this.protectedContentFailRecordSave=!1,this.captureScreenshot=void 0,this.enableInstantReplay=void 0,this.disableInstantReplay=void 0,this.saveIR=void 0,this.startManualRecord=void 0,this.stopAndSaveManualRecord=void 0,this.logger=W.getLogger("ShadowPlayService"),this.dBStore=this.dbService.getGlobalStore("Shadowplay"),this.isNvApp=this.featureSupportService.isNvApp()}throttled(W){return(0,m.throttle)(W,1e3,{trailing:!1})}init(){this.captureScreenshot=this.throttled(this._captureScreenshot),this.enableInstantReplay=this.throttled(this._enableInstantReplay),this.disableInstantReplay=this.throttled(this._disableInstantReplay),this.saveIR=this.throttled(this._saveIR),this.startManualRecord=this.throttled(this._startManualRecord),this.stopAndSaveManualRecord=this.throttled(this._stopAndSaveManualRecord),this.bridgeService.executeCommand(D.Ts.Share.Shareserver.RegisterCaptureStateChangeNotifications).pipe((0,O.p)(W=>W.captureMode!==D.Or.Share.Shareserver.CaptureModeEnum.gameCast)).subscribe(W=>this.handleCaptureEvent(W)),this.bridgeService.executeCommand(D.Ts.Share.Shareserver.RegisterGeneralNotifications).subscribe(W=>this.handleGeneralNotification(W)),this.gfnInfoService.getRecordSpecialCase().subscribe(W=>{this.logger.info("disableRecordSpecialCase mode: ",W),this.disableRecordSpecialCase=W,this.sdkHighlightService.toggleAutohighlight(!this.disableRecordSpecialCase),this.sdkHighlightService.toggleSdkHighlights(!this.disableRecordSpecialCase)}),this.featureSupportService.isGfnMicrophoneEnabled().pipe((0,P.s)(1)).subscribe(W=>{if(this.isGfnMicrophoneEnabled=W,W)this.microphoneService.currentMicState$.subscribe($=>{this.setMicMode($===U.EO.Unmuted?Se.on:Se.off)});else{const $=this.getMicrophoneData().subscribe(()=>{$.unsubscribe()});this.hotkeyService.listen(T.g8.MicToggle).pipe((0,_.c)(this.throttleMs)).subscribe(()=>{let le=this.$micState.getValue();le=le===Se.ptt||le===Se.on?Se.off:Se.on,this.setMicMode(le)}),this.hotkeyService.listenPTT().pipe().subscribe(le=>{this.$micPttHotkey.next(le),this.setMicPTTMode(le?Se.on:Se.off)})}}),this.hotkeyService.listen(T.g8.DVRToggle).pipe((0,_.c)(this.throttleMs)).subscribe(()=>{this.disableRecordSpecialCase||(this.$irState.getValue()===L.Qe.off?this.enableInstantReplay():this.disableInstantReplay())}),this.hotkeyService.listen(T.g8.DVRSave).pipe((0,_.c)(this.throttleMs)).subscribe(()=>{this.disableRecordSpecialCase||(this.$irState.getValue()===L.Qe.recording?this.saveIR():this.logger.info("Attempted to save and instant replay while instant replay was disabled"))}),this.hotkeyService.listen(T.g8.RecordToggle).pipe((0,_.c)(this.throttleMs)).subscribe(()=>{this.disableRecordSpecialCase||(this.$mrState.getValue()?this.stopAndSaveManualRecord():this.startManualRecord())}),this.hotkeyService.listen(T.g8.Screenshot).pipe((0,_.c)(this.throttleMs)).subscribe(()=>{R.Fm.RECORD_SPECIAL_CASE_PLAYTEST!==this.disableRecordSpecialCase&&this.captureScreenshot()}),this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetCaptureState).subscribe(W=>{this.captureState=W.state}),this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetDesktopCaptureSupportReason).subscribe(W=>{if(this.logger.info("Desktop Support Reason: ",W),this.isDTCaptureSupported=W.support,!1===this.isDTCaptureSupported){const $=W.desktopCaptureUnsupportedReason[0];($.indexOf("notebookDriver")>=0||$.indexOf("notebookCoProc")>=0||$.indexOf("notebookDGpu")>=0||$.indexOf("hideCheckboxAOSP")>=0)&&(this.notebookCoProc=!0)}},W=>{this.logger.info("Desktop support query failed")}),this.getInstantReplayMaxLength().subscribe(W=>{this.maxIRTime=W,this.logger.info("IR Length: "+W+" seconds")}),this.getHevcSupportedState().subscribe(W=>{this.hevcSupported=W,this.logger.info("HEVC Supported: "+W)}),(0,d.p)([this.getInstantReplayEnableStatus(),this.getInstantReplayRunningStatus()]).subscribe(([W,$])=>{$?this.$irState.next(L.Qe.recording):W&&this.$irState.next(L.Qe.on),($||W)&&this.hotkeyService.startListeningToHotkey(T.g8.DVRSave).subscribe()}),this.isNvApp&&(this.aiChatBoxService=this.injector.get(B.D),this.getVideoSpecs().pipe((0,i.ZZ)(()=>this.loadShadowplayData()),(0,P.s)(1),(0,r.T)(()=>{this.isAV1RecSupported=!!this.videoSpecs?.codecs?.length,this.$videoSpecsInitState.next(!0),this.telemetryIgoService.updateVideoSpecSettings(this.videoSpecs)})).subscribe(),this.getMicMode().pipe((0,P.s)(1)).subscribe(W=>{this.telemetryIgoService.updateMicMode(W)}),setTimeout(()=>{this.getLastLaunchedApp()},0)),this.bridgeService.executeCommand(D.Ts.Share.Shareserver.RegisterAppNotifications).pipe((0,O.p)(W=>!!W?.appStarted)).subscribe(W=>{this.$appStartedEvent.next(W)})}get mrStartTime(){return this._mrStartTime}get videoCaptureReturnLocation(){return this._videoCaptureReturnLocation}set videoCaptureReturnLocation(W){this._videoCaptureReturnLocation=W}getShowCodecMessage(){return this.isAV1RecSupported&&this.spData.showCodecMessage}dismissShowCodecMessage(){this.spData.showCodecMessage=!1,this.savePersistedData()}isGAssistInstalled(){return this.isNvApp&&this.aiChatBoxService?.getIsGAssistInstalled()}getDefaultShadowplayData(){return this.spData={showCodecMessage:!0},this.spData}savePersistedData(W=null){this.dBStore.setItem(this.ShadowplayStorageKeyName,W=W||this.spData).subscribe($=>{this.logger.info("Persisted data saved successfully ",$)},$=>{this.logger.error("Error while saving the persisted data ",$)})}loadShadowplayData(){return this.dBStore.getItem(this.ShadowplayStorageKeyName).pipe((0,r.T)(W=>W?(this.logger.info("Loaded sp data from the storage"),this.spData=W,!0):(this.logger.info("No sp data found in storage"),this.spData=this.getDefaultShadowplayData(),!1)),(0,a.W)(W=>(this.logger.error("Could not load sp data from the storage: ",JSON.stringify(W)),this.spData=this.getDefaultShadowplayData(),(0,v.of)(!1))))}handleCaptureEvent(W){this.logger.info("Capture Event:",W);const $=!this.isNvApp||W?.errorType;switch(W.captureMode){case D.Or.Share.Shareserver.CaptureModeEnum.screenshot:this.logger.info("screenshot capture event"),$&&this.telemetry.sendCaptureEvent(N.db.screenshotSaved,W.captureMethod,W.recordWidth,W.recordHeight,W.recordFramerate,W.recordCodec,W.colorSpaceRange,W.errorType,W.errorDetails);break;case D.Or.Share.Shareserver.CaptureModeEnum.manual:this.logger.info("Manual capture"),W.recordingState===D.Or.Share.Shareserver.RecordingState.started?this.disableRecordSpecialCase||(this.oscNotificationService.show(V.Ed.RecordStarted),this.$mrState.next(!0),this._mrStartTime=Date.now(),$&&this.telemetry.sendCaptureEvent(N.db.startManualCapture,W.captureMethod,W.recordWidth,W.recordHeight,W.recordFramerate,W.recordCodec,W.colorSpaceRange,W.errorType,W.errorDetails)):W.recordingState===D.Or.Share.Shareserver.RecordingState.available&&(this.protectedContentFailRecordSave||this.oscNotificationService.show(V.Ed.RecordSaving),this.protectedContentFailRecordSave=!1,this.$mrState.next(!1),this._mrStartTime=null,$&&this.telemetry.sendCaptureEvent(N.db.stopAndSaveManualCapture,W.captureMethod,W.recordWidth,W.recordHeight,W.recordFramerate,W.recordCodec,W.colorSpaceRange,W.errorType,W.errorDetails));break;case D.Or.Share.Shareserver.CaptureModeEnum.dvr:this.logger.info("DVR");const le=this.$irState.value===L.Qe.on||this.$irState.value===L.Qe.recording;W.recordingState===D.Or.Share.Shareserver.RecordingState.enabled?this.disableRecordSpecialCase||(this.oscNotificationService.show(V.Ed.InstantReplayStarted),this.logger.info("IR Enabled"),this.$irState.next(L.Qe.on),$&&this.telemetry.sendCaptureEvent(N.db.turnOnInstantReplay,W.captureMethod,W.recordWidth,W.recordHeight,W.recordFramerate,W.recordCodec,W.colorSpaceRange,W.errorType,W.errorDetails)):W.recordingState===D.Or.Share.Shareserver.RecordingState.started?this.disableRecordSpecialCase||(this.logger.info("IR Started"),this.$irState.next(L.Qe.recording)):W.recordingState===D.Or.Share.Shareserver.RecordingState.available?this.disableRecordSpecialCase||(this.logger.info("IR Available"),this.$irState.next(L.Qe.on)):W.recordingState===D.Or.Share.Shareserver.RecordingState.saved?this.disableRecordSpecialCase||(this.logger.info("IR Saved"),this.oscNotificationService.show(V.Ed.InstantReplaySaving),$&&this.telemetry.sendCaptureEvent(N.db.instantReplaySaved,W.captureMethod,W.recordWidth,W.recordHeight,W.recordFramerate,W.recordCodec,W.colorSpaceRange,W.errorType,W.errorDetails)):W.recordingState===D.Or.Share.Shareserver.RecordingState.disabled&&(this.oscNotificationService.show(V.Ed.InstantReplayStopped),this.logger.info("IR Disabled"),this.$irState.next(L.Qe.off),$&&this.telemetry.sendCaptureEvent(N.db.turnOffInstantReplay,W.captureMethod,W.recordWidth,W.recordHeight,W.recordFramerate,W.recordCodec,W.colorSpaceRange,W.errorType,W.errorDetails));const Pe=this.$irState.value===L.Qe.on||this.$irState.value===L.Qe.recording;Pe!==le&&(Pe?this.hotkeyService.startListeningToHotkey(T.g8.DVRSave).subscribe():this.hotkeyService.stopListeningToHotkey(T.g8.DVRSave));break;case D.Or.Share.Shareserver.CaptureModeEnum.gearHighlight:this.logger.info("Gear Highlight"),W.recordingState===D.Or.Share.Shareserver.RecordingState.enabled?(this.logger.info("Gear Highlights Enabled"),this.$hlBadState.next(!1)):W.recordingState===D.Or.Share.Shareserver.RecordingState.disabled&&(this.logger.info("Gear Highlights Disabled"),this.$hlBadState.next(!0));break;default:this.logger.info("Other",W.captureMode)}}handleGeneralNotification(W){if(this.logger.info("General Event: ",W),W.captureFailed)this.handleError();else if(W.galleryIsFull)this.logger.info("Gallery is full"),this.oscNotificationService.show(V.Ed.GalleryIsFull);else if(W.diskSpaceIsLow)this.logger.info("Gallery disk space is low"),this.oscNotificationService.show(V.Ed.DiskSpaceIsLow);else if(W.deviceChange)W.deviceChange.device===Q.mic?(this.logger.info("Microphone has been ",W.deviceChange.state),this.$micDeviceState.next(W.deviceChange.state)):W.deviceChange.device===Q.webcam&&(this.logger.info("Camera has been ",W.deviceChange.state),this.$camDeviceState.next(W.deviceChange.state));else if(W.disableHDR)switch(W.disableHDR.captureMode){case D.Or.Share.Shareserver.CaptureModeEnum.manual:this.oscNotificationService.show(V.Ed.HDRErrorRecord);break;case D.Or.Share.Shareserver.CaptureModeEnum.highlight:this.oscNotificationService.show(V.Ed.HDRErrorHighlight)}else if(W.protectedContentRunning){this.logger.info("Protected content notification ",W.protectedContentRunning.appname);let $="";if(W.protectedContentRunning.appname){const le=W.protectedContentRunning.appname.replace(".exe","");$=le[0].toUpperCase()+le.substring(1,le.length)}else $="notification.ProtectedContentGeneric";this.protectedContentFail=!0,this.protectedContentFailRecordSave=!0,setTimeout(()=>{this.oscNotificationService.show(V.Ed.ProtectedContentWarning,$)},1e3)}else W.freeStyleAnselState?this.$freestyleAnselState.next(W.freeStyleAnselState.enable):W.gassistInstallState&&this.$gAssistInstallState.next(W.gassistInstallState.installed)}handleError(){!1===this.isDTCaptureSupported&&!0===this.notebookCoProc&&("PID"===this.captureState?(this.oscNotificationService.show(V.Ed.WarningSupportedGameRequired),this.logger.info("Supported game required")):(this.oscNotificationService.show(V.Ed.WarningFullscreenGameRequired),this.logger.info("Fullscreen game required")))}getMRState(){return this.$mrState.asObservable()}getIRState(){return this.$irState.asObservable()}getMICState(){return this.$micState.asObservable()}getHLBadState(){return this.$hlBadState.asObservable()}getMICDeviceState(){return this.$micDeviceState.asObservable()}getCAMDeviceState(){return this.$camDeviceState.asObservable()}micPttHotkeyPressed(){return this.$micPttHotkey.asObservable()}isNotebookCoProcSystem(){return this.notebookCoProc}doWeNeedToAskPermission(){const W={isPossible:!1,shouldAskForPermission:!1};return(0,S.zV)([this.isCaptureControlPIDModeValid(),this.isInDesktopMode(),this.getDesktopCaptureSupported(),this.getDesktopCaptureEnabled()]).pipe((0,r.T)(([$,le,Pe,Fe])=>(this.logger.info("isCaptureControlPIDModeValid: ",$),this.logger.info("isInDesktopMode: ",le),this.logger.info("isDesktopCaptureSupported: ",Pe),this.logger.info("isDesktopCaptureEnabled: ",Fe),!le||Fe||$?(W.isPossible=!0,W):!0===this.notebookCoProc?("PID"===this.captureState?(this.oscNotificationService.show(V.Ed.WarningSupportedGameRequired),this.logger.info("Supported game required")):(this.oscNotificationService.show(V.Ed.WarningFullscreenGameRequired),this.logger.info("Fullscreen game required")),W):(W.shouldAskForPermission=Pe,W))))}isCaptureControlPIDModeValid(){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetCaptureControlPIDMode).pipe((0,r.T)(W=>(this.logger.info("Is Capture Control PID mode valid: ",W),W.valid)))}getMicSelectionChanges(){return this.$micSelectionChanged.asObservable()}isInDesktopMode(){return this.oscDisplayService.getCurrentDesktopMode().pipe((0,P.s)(1),(0,r.T)(W=>(this.logger.info("Desktop mode: ",W),"desktop"===W)))}getDesktopCaptureSupported(){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetDesktopCaptureSupported).pipe((0,r.T)(W=>(this.logger.info("DesktopCapture Supported: ",W.support),W.support)))}getDesktopCaptureEnabled(){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetDesktopCaptureEnabled).pipe((0,r.T)(W=>(this.logger.info("DesktopCapture Enabled: ",W.enable),W.enable)))}getHevcSupportedState(){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetHevcSupportedState).pipe((0,r.T)(W=>(this.logger.info("Hevc Support State: ",W.enable),W.enable)))}SetDesktopCaptureEnabled(W){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.SetDesktopCaptureEnabled,{enable:W}).pipe((0,r.T)(le=>(this.logger.info("SetDesktopCaptureEnabled: ",le),!0)),(0,a.W)(le=>(this.logger.error("Error in SetDesktopCaptureEnabled: ",le),(0,v.of)(!1))))}handlePrivacyAndAvailability(W){return this.doWeNeedToAskPermission().pipe((0,i.ZZ)($=>$.shouldAskForPermission?"GFE"===this.igoConfig.branding?(this.dialogHelper.closeAll(),this.askToEnableDTCapture(W)):(0,v.of)(!1):(0,v.of)(!0)))}sendCaptureTelemetryNvApp(W,$){if(!this.isNvApp)return;let le;le=W===N.db.turnOnInstantReplay||W===N.db.turnOffInstantReplay?(0,v.of)(null):this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetCaptureProcessInfo,{appType:D.Or.Share.Shareserver.AppType.capture}).pipe((0,P.s)(1),(0,a.W)(Pe=>(this.logger.error("GetCaptureProcessInfo failed with ",Pe.toString()),(0,v.of)(null)))),le.pipe((0,r.T)(Pe=>{this.telemetry.sendCaptureEvent(W,null,null,null,null,null,null,$?$.toString():I.oX.Undefined,null,null,{drsName:Pe?.DRSAppName,drsProfileName:Pe?.profileName})})).subscribe()}checkFailure(W,$,le){this.logger.info("Check Failure for ",$," returns: ",W),W._return_internal===D.Or.Share.Shareserver.InternalErrorCodeEnum.ShadowPlay_E_FAIL_NO_DISC_SPACE||W._return_internal===D.Or.Share.Shareserver.InternalErrorCodeEnum.ShadowPlay_E_BOUNDS||W._return_internal===D.Or.Share.Shareserver.InternalErrorCodeEnum.ShadowPlay_E_FAIL_NO_GALLERY_SPACE?"mainMenu.ManualRecord"===$?this.oscNotificationService.show(V.Ed.NoSpaceCaptureNotStarted):this.oscNotificationService.show(V.Ed.NoSpaceCaptureNotSaved,$):W._return_internal===D.Or.Share.Shareserver.InternalErrorCodeEnum.ShadowPlay_E_FAIL_CAPTURE_DISABLED&&(this.logger.info("Record failure due to protected content",this.protectedContentFail),this.protectedContentFail||this.oscNotificationService.show(V.Ed.WarningSupportedGameRequired,$),this.protectedContentFail=!1),this.sendCaptureTelemetryNvApp(le,W?._return_status)}askToEnableDTCapture(W){this.logger.info("askToEnableDTCapture request for: ",W);let $="",le="";switch(W){case"ss":$="mainMenu.Screenshot",le="confirmation.CaptureScreenshot";break;case"mr":$="mainMenu.ManualRecord",le="confirmation.CaptureRecording";break;case"br":$="settings.Broadcast",le="confirmation.CaptureBroadcasting"}return this.dialogHelper.openAlertDialog({title:$,query:le,queryParam:"",action1:"confirmation.NotRightNow",action2:"confirmation.yes"},!0,!1).pipe((0,i.ZZ)(Fe=>Fe.afterClosed()),(0,i.ZZ)(Fe=>Fe===g.SF.Action2?this.SetDesktopCaptureEnabled(!0):(0,v.of)(!1)),(0,r.T)(Fe=>"ss"!==W&&Fe))}_captureScreenshot(){this.handlePrivacyAndAvailability("ss").subscribe($=>{$&&(this.logger.info("Taking screenshot"),this.bridgeService.executeCommand(D.Ts.Share.Shareserver.CaptureScreenshot).subscribe(le=>{this.checkFailure(le,"mainMenu.Screenshot",N.db.screenshotSaved)},le=>{this.sendCaptureTelemetryNvApp(N.db.screenshotSaved,le),this.logger.error("CaptureScreenshot failed: ",le)}),this.telemetry.startCaptureEvent(N.db.screenshotSaved))})}captureCustomScreenshot(W,$,le){return this.logger.info("Got custom screenshot request: Filename "+$),new y.c(Pe=>{const Fe=this.bridgeService.executeCommand(D.Ts.Share.Shareserver.CustomScreenshotNotifications).subscribe(At=>{Pe.next(At),Fe.unsubscribe(),Pe.complete()},At=>{Pe.error(At)});this.bridgeService.executeCommand(D.Ts.Share.Shareserver.CaptureCustomScreenshot,{controller:W,screenshotName:$,slotId:le}).subscribe(At=>{(At._return_code||At._return_internal!==D.Or.Share.Shareserver.InternalErrorCodeEnum.GXP_Success_Ok&&At._return_internal!==D.Or.Share.Shareserver.InternalErrorCodeEnum.GXP_Success_NoError)&&(this.logger.info("Internal error while capturing screenshot."+At.return_code),Pe.error(At.return_code),Fe.unsubscribe())},At=>{this.logger.info("Error while initializing custom screenshot"),Pe.error(At),Fe.unsubscribe()})})}_enableInstantReplay(){return this.logger.info("IR Enabled"),this.telemetry.startCaptureEvent(N.db.turnOnInstantReplay),this.bridgeService.executeCommand(D.Ts.Share.Shareserver.EnableInstantReplay,{enable:!0}).subscribe(W=>{this.checkFailure(W,"mainMenu.InstantReplay",N.db.turnOnInstantReplay)},W=>{this.sendCaptureTelemetryNvApp(N.db.turnOnInstantReplay,W),this.logger.error("EnableInstantReplay (enable) failed: ",W)})}_disableInstantReplay(){return this.logger.info("IR Disabled"),this.telemetry.startCaptureEvent(N.db.turnOffInstantReplay),this.bridgeService.executeCommand(D.Ts.Share.Shareserver.EnableInstantReplay,{enable:!1}).subscribe(W=>{this.checkFailure(W,"mainMenu.InstantReplay",N.db.turnOffInstantReplay)},W=>{this.sendCaptureTelemetryNvApp(N.db.turnOffInstantReplay,W),this.logger.error("EnableInstantReplay (disable) failed: ",W)})}_saveIR(){return this.logger.info("IR saved"),this.telemetry.startCaptureEvent(N.db.instantReplaySaved),this.bridgeService.executeCommand(D.Ts.Share.Shareserver.SaveInstantReplay).subscribe(W=>{this.checkFailure(W,"mainMenu.InstantReplay",N.db.instantReplaySaved)},W=>{this.sendCaptureTelemetryNvApp(N.db.instantReplaySaved,W),this.logger.error("SaveInstantReplay failed: ",W)})}_startManualRecord(){this.logger.info("Try manual"),this.handlePrivacyAndAvailability("mr").subscribe($=>{$&&(this.logger.info("Manual Record started"),this.telemetry.startCaptureEvent(N.db.startManualCapture),this.bridgeService.executeCommand(D.Ts.Share.Shareserver.EnableRecord,{enable:!0}).subscribe(le=>{this.checkFailure(le,"mainMenu.ManualRecord",N.db.startManualCapture)},le=>{this.sendCaptureTelemetryNvApp(N.db.startManualCapture,le),this.logger.error("EnableRecord (start) failed: ",le)}))})}_stopAndSaveManualRecord(){return this.logger.info("Manual Record saved"),this.telemetry.startCaptureEvent(N.db.stopAndSaveManualCapture),this.bridgeService.executeCommand(D.Ts.Share.Shareserver.EnableRecord,{enable:!1}).subscribe(W=>{this.checkFailure(W,"mainMenu.ManualRecord",N.db.stopAndSaveManualCapture)},W=>{this.sendCaptureTelemetryNvApp(N.db.stopAndSaveManualCapture,W),this.logger.error("EnableRecord (save) failed: ",W)})}getInstantReplayRunningStatus(){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetInstantReplayRunningStatus).pipe((0,r.T)(W=>(this.logger.info("GetInstantReplayRunningStatus returns: ",W),W.status)))}getInstantReplayEnableStatus(){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetInstantReplayEnableStatus).pipe((0,r.T)(W=>(this.logger.info("GetInstantReplayEnableStatus returns: ",W),W.status)))}getInstantReplayMaxLength(){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetInstantReplaySettings).pipe((0,r.T)(W=>(this.logger.info("GetInstantReplaySettings returns: ",W),this.telemetry.updateReplayLength(W.replayLengthSeconds),W.replayLengthSeconds)))}getMicMode(){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetMicMode).pipe((0,r.T)(W=>(this.logger.info("GetMicMode returns: ",W),this.$micState.next(W.mode),W.mode)),(0,a.W)(W=>(this.logger.error("GetMicMode error: ",W),(0,v.of)(Se.off))))}setMicMode(W){const $={mode:W},le=W!==Se.off;return!this.isGfnMicrophoneEnabled&&"GFN"===this.igoConfig.branding&&(this.logger.info(" SetMicState with ",le),this.bridgeService.executeCommand(D.Ts.Gfn.Streaming.SetMicState,{enable:le}).subscribe(Pe=>{},Pe=>{this.logger.error(" SetMicState: ",Pe)})),this.bridgeService.executeCommand(D.Ts.Share.Shareserver.SetMicMode,$).subscribe(Pe=>{this.$micState.next(W),this.telemetryIgoService.updateMicMode(W)},Pe=>{this.logger.error(" SetMicMode: ",Pe)})}setMicPTTMode(W){const $=!this.$mrState.getValue(),le=this.$irState.getValue()!==L.Qe.recording,Pe=this.$micState.getValue()!==Se.ptt;$&&le||Pe||this.bridgeService.executeCommand(D.Ts.Share.Shareserver.MicPTTMode,{mode:W}).subscribe(At=>{this.logger.info("SetMicPTTMode results: ",At)},At=>{this.logger.info("SetMicPTTMode error: ",At)})}getFreestylePreviewBasePath(){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetFreestylePreviewBasePath,{})}GetSupportedBitrates(W,$){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetSupportedBitrates,{quality:W,resolution:$})}GetSupportedBitratesFramerates(W,$,le,Pe){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetSupportedBitratesFramerates,{quality:W,resolution:$,codec:le,framerate:Pe})}GetQualityDefaultData(W){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetQualityDefaultData,{quality:W})}setInstantReplaySettings(W){return this.logger.info("setInstantReplaySettings params: ",W),this.bridgeService.executeCommand(D.Ts.Share.Shareserver.SetInstantReplaySettings,W).pipe((0,r.T)($=>(this.logger.info("setInstantReplaySettings returns: ",$),!0)))}getRecordSettings(){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetRecordSettings).pipe((0,r.T)(W=>(this.logger.info("GetRecordSettings returns: ",W),W)))}setRecordSettings(W){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.SetRecordSettings,W).subscribe($=>{this.logger.info("SetRecordSettings returns: ",$)})}getBroadcastSettings(){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetBroadcastSettings).pipe((0,r.T)(W=>(this.logger.info("GetBroadcastSettings returns: ",W),W)))}convertResolution(W){switch(W){case"In-game":default:return Ce.In_game;case"2160p 4K":return Ce.Resolution_2160p_4K;case"4320p 8K":return Ce.Resolution_4320p_8K;case"1440p HD":return Ce.Resolution_1440p_HD;case"1080p HD":return Ce.Resolution_1080p_HD;case"720p HD":return Ce.Resolution_720p_HD;case"480p":return Ce.Resolution_480p;case"360p":return Ce.Resolution_360p;case"240p":return Ce.Resolution_240p;case"Exact":return Ce.Exact}}convertCodec(W){return"AV1"===W?Xe.AV1:Xe.H264_HEVC}getVideoSpecsInit(){return(0,S.zV)([this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetSupportedResolutionsCodecs),this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetSupportedFramerates),this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetInstantReplaySettings)]).pipe((0,r.T)(([W,$,le])=>{const Pe=Be[le.quality],Fe=this.convertResolution(le.resolution),At=this.convertCodec(le.codec);return this.videoSpecs={resolutions:W.resolutions,frameRates:$.framerates,codecs:W.codecs,frameRatesDefault:void 0,codecDefault:W.defaultCodec,bitRatesMin:void 0,bitRatesMax:void 0,bitRatesDefault:void 0,recQualitySP:Pe,recQualityIgo:this.convertQualitySpToIgo(Pe),recResolution:Fe,recFramerate:le.framerate,recBitrate:le.bitrateBps,recReplayLength:le.replayLengthSeconds,recCodec:At},this.videoSpecs}),(0,a.W)(W=>(this.logger.error("Error in getVideoSpecsInit: ",W),(0,v.of)(this.videoSpecs))))}getVideoSpecs(){return this.getVideoSpecsInit().pipe((0,i.ZZ)(W=>this.GetSupportedBitratesFramerates(W.recQualitySP,W.recResolution,W.recCodec,W.recFramerate)),(0,r.T)(W=>(this.videoSpecs.bitRatesMin=W.bitrateBpsMin,this.videoSpecs.bitRatesMax=W.bitrateBpsMax,this.videoSpecs.bitRatesDefault=W.bitrateBpsDefault,this.videoSpecs.frameRates=W.fpsList.slice(0,W.supportedFPSCount),this.videoSpecs.frameRatesDefault=W.fpsDefault,this.videoSpecs)),(0,a.W)(W=>(this.logger.error("Error in getVideoSpecs: ",W),(0,v.of)(this.videoSpecs))))}convertQualitySpToIgo(W){switch(W){case Be.Average:return L.xT.low;case Be.Good:return L.xT.medium;case Be.VeryGood:return L.xT.high;case Be.UltraGood:return L.xT.ultra;case Be.Custom:return L.xT.custom;default:this.logger.info("Invalid Quality: ",W)}}convertQualityIgoToSp(W){switch(W){case L.xT.low:return Be.Average;case L.xT.medium:return Be.Good;case L.xT.high:return Be.VeryGood;case L.xT.ultra:return Be.UltraGood;case L.xT.custom:return Be.Custom;default:this.logger.info("Invalid Quality: ",W)}}setVideoSpecs(W,$){if(!$)return this.videoSpecs={...this.videoSpecs,recReplayLength:W.recReplayLength},this.setVideoSpecsNUpdateIRMaxTime({resolution:D.Or.Share.Shareserver.Resolution.In_game,framerate:60,bitrateBps:5e7,codec:D.Or.Share.Shareserver.Codec.H264_HEVC,replayLengthSeconds:W.recReplayLength});if(void 0===this.videoSpecs)return this.logger.error("setVideoSpecs input is undefined!"),(0,v.of)(!1);this.videoSpecs.recQualitySP=this.convertQualityIgoToSp(W.recQualityIgo),this.videoSpecs.recResolution=W.recResolution,this.videoSpecs.recFramerate=W.recFramerate,this.videoSpecs.recBitrate=W.recBitrate,this.videoSpecs.recReplayLength=W.recReplayLength,this.videoSpecs.recCodec=W.recCodec;const le={quality:this.videoSpecs.recQualitySP,resolution:W.recResolution,framerate:W.recFramerate,bitrateBps:W.recBitrate,replayLengthSeconds:W.recReplayLength,codec:W.recCodec};return this.GetSupportedBitratesFramerates(le.quality,le.resolution,le.codec,le.framerate).pipe((0,i.ZZ)(Pe=>((le.quality!==Be.Custom||le.bitrateBps<Pe.bitrateBpsMin||le.bitrateBps>Pe.bitrateBpsMax)&&(this.logger.trace("bps reset: qual:"+le.quality+", bps:"+le.bitrateBps+", min:"+Pe.bitrateBpsMin+", max:"+Pe.bitrateBpsMax),le.bitrateBps=this.videoSpecs.recBitrate=Pe.bitrateBpsDefault),Pe.fpsList.indexOf(le.framerate)<0&&(le.framerate=Pe.fpsDefault),this.setVideoSpecsNUpdateIRMaxTime(le).pipe((0,c.M)(Fe=>{Fe&&this.telemetryIgoService.updateVideoSpecSettings(this.videoSpecs)})))))}setVideoSpecsNUpdateIRMaxTime(W){return this.setInstantReplaySettings(W).pipe((0,r.T)(()=>(this.maxIRTime=this.videoSpecs.recReplayLength,!0)))}getMicCount(){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetMicCount).pipe((0,r.T)(W=>W.present),(0,a.W)(W=>(this.logger.error("GetMicCount error: ",W),(0,v.of)(0))))}getMicSettings(W){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetMicSettings,W).pipe((0,r.T)($=>(this.microphoneSpecs[W.index]=$,!0)),(0,a.W)($=>(this.logger.error("GetMicSettings error: ",$),(0,v.of)(!1))))}getCurrentMicSettings(){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetMicSettings,{index:-1}).pipe((0,r.T)($=>$.index),(0,a.W)($=>(this.logger.error("getCurrentMicSettings error: ",$),(0,v.of)(0))))}getLastLaunchedApp(){this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetCaptureProcessInfo,{appType:D.Or.Share.Shareserver.AppType.last_proc}).pipe((0,c.M)(W=>{this.logger.info("getLastAppInfo: ",W);const $={};$.appStarted=W,this.$appStartedEvent.next($)}),(0,a.W)(W=>(this.logger.error("getLastAppInfo failed:",W),(0,v.of)(null)))).subscribe()}setMicSettings(W){return this.$micSelectionChanged.next(),this.bridgeService.executeCommand(D.Ts.Share.Shareserver.SetMicSettings,{index:W.index,muted:W.micSpecs[W.index]?.muted??!1,volumePercent:W.micSpecs[W.index]?.volumePercent??0,boostPercent:W.micSpecs[W.index]?.boostPercent??0}).pipe((0,a.W)(le=>(this.logger.error("setMicSettings error: ",le),(0,v.of)(!1))))}getAudioSettings(){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetAudioSettings).pipe((0,r.T)(W=>({systemVolumePercent:W.systemVolumePercent,separateTracks:W.separateTracks})),(0,a.W)(W=>(this.logger.error("GetAudioSettings error: ",W),(0,v.of)({systemVolumePercent:0,separateTracks:!1}))))}setAudioSettings(W){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.SetAudioSettings,W).pipe((0,a.W)($=>(this.logger.error("setAudioSettings error: ",$),(0,v.of)(!1))))}getMicrophoneData(){this.microphoneSpecs.length=0;let W=0;return this.getMicCount().pipe((0,i.ZZ)($=>{if(W=$,0===W)return(0,v.of)({index:-1,micSpecs:void 0});const le=[];for(let Pe=0;Pe<W;Pe++)le.push(this.getMicSettings({index:Pe}));return(0,f.yU)(...le)}),(0,i.ZZ)(()=>this.getCurrentMicSettings()),(0,r.T)($=>{this.logger.info("All Mic Data: ",this.microphoneSpecs),this.logger.info("Current Index: ",$);const le=[];if(this.microphoneSpecs?.length)if(this.microphoneSpecs.forEach((Fe,At)=>{le[At]={index:Fe.index,name:Fe.name,id:Fe.id,muted:Fe.muted,enabled:Fe.enabled,volumePercent:Fe.volumePercent,boostPercent:Fe.boostPercent}}),le[$]?.enabled)this.currentMicIndex=$;else{this.currentMicIndex=-1;for(let Fe=0;Fe<W;Fe++)if(le[Fe]?.enabled){this.currentMicIndex=le[Fe].index;break}}return{index:this.currentMicIndex,micSpecs:le}}))}isCurrentMicAvailable(){return this.currentMicIndex<0?(0,v.of)(!1):this.getMicrophoneData().pipe((0,r.T)(()=>this.microphoneSpecs[this.currentMicIndex]?.enabled))}syncShadowPlaySettings(W){return this.logger.info("syncShadowPlaySettings"),this.bridgeService.executeCommand(D.Ts.Share.Shareserver.SyncShadowPlaySettings,{isGFEMigration:W}).pipe((0,r.T)(le=>(this.logger.info("SyncShadowPlaySettings successful:",le),!0)),(0,a.W)(le=>(this.logger.error("SyncShadowPlaySettings failed:",le),(0,v.of)(!1))))}getNvCameraToggleStateUpdates(){return this.$freestyleAnselState.asObservable()}getVideoSpecsInitStateUpdates(){return this.$videoSpecsInitState.asObservable()}getNvCameraToggleState(){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GetNvCameraToggleState).pipe((0,r.T)(W=>{let $=W?.enable;return this.logger.info("nvcamera toggle state:",$),void 0===$&&(this.logger.info("Nvcamera toggle setting not present, using default"),$=E.P8),$}),(0,a.W)(W=>(this.logger.error("Error while fetching nvcamera toggle state:",W),(0,v.of)(E.P8))))}setNvCameraToggleState(W){return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.SetNvCameraToggleState,{enable:W}).pipe((0,c.M)(()=>{this.logger.info("nvcamera toggle state set successfully")}),(0,a.W)(le=>(this.logger.error("Error while setting nvcamera toggle state:",le),(0,v.of)(null))))}registerAppStartedEvent(){return this.$appStartedEvent.asObservable()}notifyUIReadyStatus(){this.bridgeService.executeCommand(D.Ts.Share.Shareserver.SetOverlayReady,{bReady:!0}).subscribe($=>{this.logger.info("SetOverlayReady response:",$)},$=>{this.logger.error("SetOverlayReady failed:",$)})}setGAssistGlobalToggle(W,$=!1){this.logger.info("setGAssistGlobalToggle:",W,$);const le=W?D.Or.Share.Shareserver.GAssistFeatureState.SPFeatureState_Start:D.Or.Share.Shareserver.GAssistFeatureState.SPFeatureState_Stop,Pe=D.Or.Share.Shareserver.GAssistFeatureState.SPFeatureState_Unknown;return this.bridgeService.executeCommand(D.Ts.Share.Shareserver.GAssistToggle,{systemAssistEnable:Pe,gameAssistEnable:$||!W?le:Pe,voiceQueryEnable:$?Pe:le}).pipe((0,c.M)(At=>{this.logger.info("setGAssistGlobalToggle response:",At)}))}getGAssistInstallStateChanges(){return this.$gAssistInstallState.asObservable()}static{this.\u0275fac=function($){return new($||ne)(X.KVO(H.J6),X.KVO(X.zZn),X.KVO(H.NZ),X.KVO(V.mb),X.KVO(T.QS),X.KVO(J.B),X.KVO(re.x),X.KVO(ie.e),X.KVO(ve.k),X.KVO(R.x_),X.KVO(ue.P),X.KVO(U.CQ),X.KVO(se.R),X.KVO(Z.S),X.KVO(H.at))}}static{this.\u0275prov=X.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})}}return ne})()},46776:(Bt,z,s)=>{"use strict";s.d(z,{BK:()=>B,rJ:()=>X,ud:()=>g});var n=s(96542),l=s(99469),d=s(80583),v=s(26513),S=s(36466),y=s(43848),f=s(35146),O=s(8619),P=s(75707),_=s(4208),i=s(91384),r=s(65706),a=s(73934),c=s(10132),m=s(89284),M=s(20924),D=s(59002),I=s(36203),U=s(23355),V=s(48852),T=s(56123),L=s(58527),E=s(1229),g=function(H){return H[H.Active=0]="Active",H[H.Inactive=1]="Inactive",H[H.Unknown=2]="Unknown",H}(g||{}),R=function(H){return H.Normal="normal-color",H.Bright="bright-color",H.Warning="warning-color",H.Error="error-color",H}(R||{}),B=function(H){return H[H.Off=0]="Off",H[H.Standard=1]="Standard",H[H.Compact=2]="Compact",H}(B||{});let X=(()=>{class H{constructor(re,ie,ve,ue,se,Z,Se,Ce,Be){this.injector=re,this.igoConfig=ie,this.loggingService=ve,this.hotkeyService=ue,this.osdService=se,this.bridgeService=Z,this.systemInfoService=Se,this.featureSupportService=Ce,this.gamepadService=Be,this.throttleDuration=500,this.statsWindowPosition=c.VH.rightTop,this.statsWindowSize=c.QY.standard,this.statsRunning=!1,this.mrPosition=c.VH.none,this.irPosition=c.VH.none,this.hlPosition=c.VH.none,this.micPosition=c.VH.none,this.mrState=!1,this.irState=!1,this.hlState=!1,this.micState=!1,this.statistics$=new d.B7,this.statsHotkey$=new d.B7,this.totalDroppedFrames=0,this.previousPacketLoss=0,this.networkData={roundTripDelay:0,streamingFps:0,gameEngineFps:0,frameLoss:"0",totalFrameLoss:"0",packetLoss:"0",totalPacketLoss:"0",totalAvailableBandwidth:0,bandwidthUsed:0,bandwidthPrecentage:0,networkName:"",connectionType:"",isVpnOn:!1,resolution:"",resolutionLabel:"",serverLoc:"",hdrStreamingStatus:"",streamingCodec:"",bitDepth:void 0},this.colorDataEnabled=!0,this.colorData={roundTripDelay:R.Bright,streamingFps1:R.Bright,streamingFps2:R.Normal,gameEngineFps:R.Bright,packetLoss1:R.Bright,packetLoss2:R.Normal,packetLossTotal:R.Normal,frameLoss:R.Normal,frameLossTotal:R.Normal,totalAvailableBandwidth:R.Normal,connectionType:R.Normal,vpnIndicator:R.Normal,resolution:R.Normal,serverLoc:R.Normal},this.statsStateSubject=new v.t(B.Off),this.statsEvent={state:B.Off,position:this.statsWindowPosition,size:this.statsWindowSize,data:this.networkData,colors:this.colorData},this.zone="",this.zoneDefault="",this.hdrSupportedForCurrentGame=!1,this.streamingStatsSubject=new d.B7,this.statsStopListening=new d.B7,this.stopPerf=new d.B7,this.totalBlockedTime=0,this.hdrStreamingStatus="","GFN"===this.igoConfig.branding&&(this.gridService=this.injector.get(m.Gip),this.gfnInfoService=this.injector.get(D.x_),this.streamingService=this.injector.get(I.I),this.translateService=this.injector.get(n.c$),this.logger=this.loggingService.getLogger("StatisticsService"))}handleStatsActivation(){this.logger.info("Hotkey for Statistics toggle pressed.");const re=this.statsStateSubject.getValue();let ie;ie=this.featureSupportService.isISSOCompactMode()?re===B.Off?B.Compact:B.Off:re===B.Compact?B.Off:re+1,this.statsStateSubject.next(ie),this.toggleStatistics(),this.statsHotkey$.next(ie)}init(){this.logger.info("Initializing Statistics Service"),this.igoConfig.handleGamepadShortcutForInternalStats&&this.gamepadService.onButtonComboPressed$([V.dt.LeftBumper,V.dt.LeftTrigger,V.dt.B]).pipe((0,O.p)(re=>re),(0,P.ZZ)(re=>(this.logger.info("Gamepad button combo LB-LT-B pressed, toggling internal stats"),this.bridgeService.executeCommand(M.Ts.Gfn.Streaming.ToggleStats)))).subscribe(S.l,re=>{this.logger.error("Error while toggling internal stats: ",re)}),this.igoConfig.handleGamepadShortcutForExternalStats&&this.gamepadService.onButtonComboPressed$([V.dt.LeftBumper,V.dt.LeftTrigger,V.dt.X]).pipe((0,O.p)(re=>re)).subscribe(re=>{this.logger.info("Gamepad button combo LB-LT-X pressed, toggling external stats"),this.handleStatsActivation()},re=>{this.logger.error("Error while toggling external stats",re)}),this.hotkeyService.listen(a.g8.StatisticsToggle).subscribe(()=>{this.handleStatsActivation()}),this.streamingService.streamingEvent$.pipe((0,O.p)(re=>re.event===U.CW.STREAMING_TERMINATED||re.event===U.CW.STOP_RESULT||re.event===U.CW.STREAMING_STOPPED)).subscribe(()=>{this.killStats()}),this.gfnInfoService.getHDRSupportInfo().subscribe(re=>{this.hdrSupportedForCurrentGame=re,this.logger.info("HDR support for current game: ",this.hdrSupportedForCurrentGame)}),this.featureSupportService.isIssoPerfOptimizationEnabled()?(this.logger.info("Optimization enabled to improve perf on switching ISSO off"),this.statsStateSubject.asObservable().pipe((0,P.ZZ)(re=>(this.logger.info("Toggling ISSO ",re),this.bridgeService.executeCommand(M.Ts.Gfn.Streaming.ToggleISSOStats,{enableIsso:re!==B.Off})))).subscribe(re=>{this.logger.info("ToggleISSOStats success ",re)},re=>this.logger.error("ToggleISSOStats failed ",re.toString())),this.streamingStatsObservable=this.streamingStatsSubject.asObservable()):(this.logger.info("Optimization for ISSO disabled"),this.streamingStatsObservable=this.bridgeService.executeCommand(M.Ts.Gfn.Streaming.GetStreamStats,{}))}getStatsDetails(){this.featureSupportService.isIssoPerfOptimizationEnabled||this.logger.info("Optimization for ISSO disabled, so skipping"),this.bridgeService.executeCommand(M.Ts.Gfn.Streaming.GetStreamStats,{}).pipe((0,_.Q)(this.statsStopListening),(0,i.M)(re=>{this.streamingStatsSubject.next(re)})).subscribe()}toggleStatistics(){this.statsWindowPosition=this.osdService.getPosition(c.lb.Statistics),this.statsWindowSize=this.osdService.getStatsSize(),this.logger.info("Stat Position: "+this.statsWindowPosition+" Size: "+this.statsWindowSize),this.statsRunning?(this.statsRunning=this.statsStateSubject.getValue()!==B.Off,this.sendUICurrentData()):(this.sendUICurrentData(),this.updateStatsData(),this.getStatsDetails())}showHdrISSOStatus(){return this.gfnInfoService.isUserHDREntitled()&&this.hdrSupportedForCurrentGame}updateStatsData(){if(this.statsStateSubject.getValue()!==B.Off){const re=!this.statsRunning;this.statsRunning=!0;const ie=[];re&&(this.zone=this.zoneDefault="",ie.push(this.gridService?.defaultZone$.pipe((0,i.M)(ve=>{ve&&(this.zoneDefault=ve.name)}))),ie.push(this.gridService?.detectedLocalZone$.pipe((0,i.M)(ve=>{ve&&(this.zone=ve.name)})))),ie.push(this.systemInfoService.getSystemInfo([l.Lu.Network]).pipe((0,i.M)(ve=>{this.networkInfo=ve.Network}))),ie.push(this.streamingStatsObservable.pipe((0,i.M)(ve=>{this.streamingStats=ve}))),ie.push((0,y.of)(this.gfnInfoService.getHDRStreamingStatus()).pipe((0,i.M)(ve=>{this.hdrStreamingStatus=ve===g.Active?"statistics.HDR10":this.showHdrISSOStatus()&&ve===g.Inactive?"commonLabels.Off":this.showHdrISSOStatus()&&ve===g.Unknown?this.streamingStats?.streamStats?.sdrHdrMode===T.SdrHdrMode.HDR?"statistics.HDR10":"commonLabels.Off":""}))),(0,f.yU)(...ie).pipe((0,r.s)(1)).subscribe(()=>{this.updateUIData(),this.getStatsData()},ve=>{this.logger.error("UpdateStats Error: ",ve.toString()),re&&(this.statsRunning=!1),this.getStatsData()})}else this.statsStopListening.next(!0)}getStatsData(){setTimeout(()=>{this.updateStatsData()},1e3)}sendUICurrentData(){this.statsEvent={state:this.statsStateSubject.getValue(),position:this.statsWindowPosition,size:this.statsWindowSize,data:this.networkData,colors:this.colorData},this.statistics$.next(this.statsEvent)}updateUIData(){const re=this.streamingStats,ie=re.streamStats.frameWidth,ve=re.streamStats.frameHeight,ue=this.gfnInfoService.getFormattedAspectRatio(ie,ve),se=this.translateService.instant("settings.gameplay.ResView",{resWidth:ie,resHeight:ve,aspectRatio:ue}),Z=this.gfnInfoService.getResolutionBadgeText(re.streamStats.frameWidth,re.streamStats.frameHeight);this.totalDroppedFrames+=re.streamStats.droppedFrames;const Se=re.streamStats.packetloss-this.previousPacketLoss;this.previousPacketLoss=re.streamStats.packetloss;const Ce=re.streamStats.bandwidth||0,Xe=re.streamStats.bandwidthUtilization,He=Math.round((re.streamStats.streamBitrate||0)/1e3),Me=Math.round(Ce/1e3);let Q=re.streamStats.serverZone?.toUpperCase().replace(/-/g,"\u2011");Q=void 0===Q||""===Q?"--":Q;const A=""===this.zone?this.zoneDefault:this.zone,me=void 0!==this.networkInfo?.NetworkName&&""!==this.networkInfo?.NetworkName,ne=void 0!==this.networkInfo?.NetworkType&&""!==this.networkInfo?.NetworkType;let W,G="";if(l.zk.isNativeLikePlatform()?(G="",W=this.gfnInfoService.getColorBitDepth()):(G=re.streamStats?.codec,W=re.streamStats?.bitDepth),this.networkData={roundTripDelay:re.streamStats.roundTripDelayMs||0,streamingFps:re.streamStats.frameRate||0,gameEngineFps:re.streamStats.avgGameFrameRate||0,frameLoss:re.streamStats.droppedFrames.toString(),totalFrameLoss:this.totalDroppedFrames.toString(),packetLoss:Se.toString(),totalPacketLoss:re.streamStats.packetloss.toString(),totalAvailableBandwidth:Me,bandwidthUsed:He,bandwidthPrecentage:Xe,networkName:me?this.networkInfo?.NetworkName:"--",connectionType:ne?this.networkInfo?.NetworkType:"--",isVpnOn:"1"===this.networkInfo?.IsVPN,resolution:se,resolutionLabel:Z,serverLoc:A+" ("+Q+")",hdrStreamingStatus:this.hdrStreamingStatus,streamingCodec:G,bitDepth:W},this.colorDataEnabled){const $=this.networkData.roundTripDelay<=40?R.Bright:this.networkData.roundTripDelay<=80?R.Warning:R.Error;let le=R.Normal;this.networkData.connectionType?.includes("2.4")&&(le=R.Warning),this.colorData={roundTripDelay:$,streamingFps1:R.Bright,streamingFps2:R.Normal,gameEngineFps:R.Bright,packetLoss1:0===Se?R.Bright:R.Error,packetLoss2:0===Se?R.Normal:R.Error,packetLossTotal:0===re.streamStats.packetloss?R.Normal:R.Error,frameLoss:0===re.streamStats.droppedFrames?R.Normal:R.Error,frameLossTotal:0===this.totalDroppedFrames?R.Normal:R.Error,totalAvailableBandwidth:R.Normal,connectionType:le,vpnIndicator:"1"===this.networkInfo?.IsVPN?R.Warning:R.Normal,resolution:R.Normal,serverLoc:R.Normal}}this.sendUICurrentData()}getStatisticsEvents(){return this.statistics$.asObservable()}statisticsLayoutChanged(){this.toggleStatistics()}statisticsStateChanged(re){this.statsStateSubject.next(re),this.toggleStatistics()}statisticsHotkeyPressed(){return this.statsHotkey$.asObservable()}getStatsState(){return this.statsStateSubject.getValue()}killStats(){this.totalDroppedFrames=0,this.previousPacketLoss=0,this.statsRunning=!1,this.statsStateSubject.next(B.Off),this.sendUICurrentData()}static{this.\u0275fac=function(ie){return new(ie||H)(L.KVO(L.zZn),L.KVO(E.k$F),L.KVO(l.J6),L.KVO(a.QS),L.KVO(c.au),L.KVO(l.NZ),L.KVO(l.zW),L.KVO(E.Rvq),L.KVO(V.bi))}}static{this.\u0275prov=L.jDH({token:H,factory:H.\u0275fac,providedIn:"root"})}}return H})()},19724:(Bt,z,s)=>{"use strict";s.d(z,{B_:()=>L,Bl:()=>ne,Bs:()=>y,CV:()=>U,Dk:()=>At,E5:()=>Ce,Ef:()=>He,Eq:()=>N,JI:()=>R,Jt:()=>M,Kl:()=>me,MB:()=>D,Om:()=>T,Pm:()=>I,QG:()=>J,Qz:()=>V,RT:()=>Q,T8:()=>E,T_:()=>m,Uk:()=>c,Ym:()=>$,_5:()=>ve,aR:()=>Me,bH:()=>Se,cB:()=>Be,cM:()=>S,db:()=>P,dt:()=>B,gM:()=>Pe,gv:()=>O,j4:()=>g,jG:()=>se,jQ:()=>ue,l4:()=>Z,oF:()=>Fe,pn:()=>X,qM:()=>W,rP:()=>v,sI:()=>Xe,x4:()=>f,xN:()=>G,xV:()=>H,zV:()=>le});var l=function(Le){return Le.Functional="functional",Le.Technical="technical",Le.Behavioral="behavioral",Le}(l||{}),d=function(Le){return Le.Anonymous="anonymous",Le.DeviceOnly="deviceOnly",Le.DevicePreferred="devicePreferred",Le.UserPreferred="userPreferred",Le.UserRequired="userRequired",Le}(d||{}),v=function(Le){return Le.New="New",Le.Saved="Saved",Le.Removed="Removed",Le}(v||{}),S=function(Le){return Le.Image="Image",Le.Video="Video",Le}(S||{}),y=function(Le){return Le.FiltersAdded="FiltersAdded",Le.FiltersSlotChanged="FiltersSlotChanged",Le.FiltersApplied="FiltersApplied",Le}(y||{}),f=function(Le){return Le.SessionProviderSettings="SessionProviderSettings",Le.SessionLogin="SessionLogin",Le.SessionMenuLaunch="SessionMenuLaunch",Le.SessionHotkeySettings="SessionHotkeySettings",Le}(f||{}),O=function(Le){return Le.UsingHotkey="UsingHotkey",Le.UsingUI="UsingUI",Le.UsingClientUI="UsingClientUI",Le.AutoLaunchOnInit="AutoLaunchOnInit",Le}(O||{}),P=function(Le){return Le.ScreenshotCaptured="ScreenshotCaptured",Le.ScreenshotCancelled="ScreenshotCancelled",Le.ScreenshotFailed="ScreenshotFailed",Le.MRStart="MRStart",Le.MRSave="MRSave",Le.IRStart="IRStart",Le.IRSave="IRSave",Le.IRStop="IRStop",Le.DetectValidGame="DetectValidGame",Le}(P||{}),c=function(Le){return Le.Ansel="Ansel",Le.Freestyle="Freestyle",Le.AnselLite="AnselLite",Le}(c||{}),m=function(Le){return Le.alwayson="alwayson",Le.ptt="ptt",Le.off="off",Le.unknown="unknown",Le}(m||{}),M=function(Le){return Le.Average="Average",Le.Good="Good",Le.VeryGood="VeryGood",Le.UltraGood="UltraGood",Le.Custom="Custom",Le}(M||{}),D=function(Le){return Le.LeftTop="LeftTop",Le.CenterTop="CenterTop",Le.RightTop="RightTop",Le.RightCenter="RightCenter",Le.RightBottom="RightBottom",Le.CenterBottom="CenterBottom",Le.LeftBottom="LeftBottom",Le.LeftCenter="LeftCenter",Le.Nowhere="Nowhere",Le.NA="NA",Le}(D||{}),I=function(Le){return Le.FirstScreen="FirstScreen",Le.Cached="Cached",Le.FullLoad="FullLoad",Le}(I||{}),U=function(Le){return Le.PreferencesScreen="PreferencesScreen",Le.UploadScreen="UploadScreen",Le.ProviderTrigger="ProviderTrigger",Le.CustomizeScreen="CustomizeScreen",Le.ProviderStop="ProviderStop",Le.ProviderPause="ProviderPause",Le.ProviderResume="ProviderResume",Le.CameraPreviewOn="CameraPreviewOn",Le.KeyboardShortcutScreen="KeyboardShortcutScreen",Le.AnselBringup="AnselBringup",Le.GalleryPopulateFolders="GalleryPopulateFolders",Le.GalleryPopulateFiles="GalleryPopulateFiles",Le.Screenshot="Screenshot",Le.CloseOsc="CloseOsc",Le}(U||{}),V=function(Le){return Le.Overlay="Overlay",Le.Logging="Logging",Le}(V||{}),T=function(Le){return Le.Standard="Standard",Le.Enhanced="Enhanced",Le}(T||{}),N=function(Le){return Le.Linear="Linear",Le.Double="Double",Le.Stacked="Stacked",Le}(N||{}),L=function(Le){return Le.FPS="FPS",Le.Basic="Basic",Le.Advanced="Advanced",Le.Latency="Latency",Le.Custom="Custom",Le}(L||{}),E=function(Le){return Le.UNDEFINED="UNDEFINED",Le.TRUE="TRUE",Le.FALSE="FALSE",Le}(E||{}),g=function(Le){return Le.Escape="Escape",Le.Minimize="Minimize",Le.FeatureToggle="FeatureToggle",Le.SettingsMenu="SettingsMenu",Le}(g||{}),R=function(Le){return Le.SidebarButton="SidebarButton",Le.ChatboxButton="ChatboxButton",Le}(R||{}),B=function(Le){return Le.Text="Text",Le.Voice="Voice",Le}(B||{}),X=function(Le){return Le.Success="Success",Le.Error="Error",Le.Timeout="Timeout",Le.Empty="Empty",Le}(X||{}),H=function(Le){return Le.Interactive="Interactive",Le.NonInteractive="NonInteractive",Le}(H||{}),J=function(Le){return Le.ToggleInstantReplay="ToggleInstantReplay",Le.SaveInstantReplay="SaveInstantReplay",Le.RecordControl="RecordControl",Le.ToggleDesktopCapture="ToggleDesktopCapture",Le.SaveScreenshot="SaveScreenshot",Le.ToggleStatisticsOverlay="ToggleStatisticsOverlay",Le.CheckForDriverUpdate="CheckForDriverUpdate",Le.LaunchApplication="LaunchApplication",Le.SetBatteryBoost="SetBatteryBoost",Le.GetBatteryBoost="GetBatteryBoost",Le.SetWhisperMode="SetWhisperMode",Le.GetWhisperMode="GetWhisperMode",Le.SetOptimusMode="SetOptimusMode",Le.GetOptimusMode="GetOptimusMode",Le}(J||{});const re={HighlightCapture:{name:"HighlightCapture",gdprLevel:l.Functional,personalization:d.DevicePreferred},ProcessingFilter:{name:"ProcessingFilter",gdprLevel:l.Functional,personalization:d.DevicePreferred},AudioSettingsEvent:{name:"AudioSettingsEvent",gdprLevel:l.Functional,personalization:d.DevicePreferred},HighlightsGameSetting:{name:"HighlightsGameSetting",gdprLevel:l.Functional,personalization:d.DevicePreferred},ProcessingControlSettings:{name:"ProcessingControlSettings",gdprLevel:l.Functional,personalization:d.DevicePreferred},SessionEvent:{name:"SessionEvent",gdprLevel:l.Functional,personalization:d.DevicePreferred},AnselFreestyleCapture:{name:"AnselFreestyleCapture",gdprLevel:l.Functional,personalization:d.DevicePreferred},CaptureEvent:{name:"CaptureEvent",gdprLevel:l.Functional,personalization:d.DevicePreferred},AnselFreestyleError:{name:"AnselFreestyleError",gdprLevel:l.Functional,personalization:d.DevicePreferred},IgoSettings:{name:"IgoSettings",gdprLevel:l.Functional,personalization:d.DevicePreferred},UIPerfEvent:{name:"UIPerfEvent",gdprLevel:l.Functional,personalization:d.DevicePreferred},HTTPCallResult:{name:"HTTPCallResult",gdprLevel:l.Functional,personalization:d.DevicePreferred},NotificationSettings:{name:"NotificationSettings",gdprLevel:l.Functional,personalization:d.DevicePreferred},StatsSession:{name:"StatsSession",gdprLevel:l.Functional,personalization:d.DevicePreferred},GAssistChatboxSession:{name:"GAssistChatboxSession",gdprLevel:l.Functional,personalization:d.DevicePreferred},GAssistSettingsMenuSession:{name:"GAssistSettingsMenuSession",gdprLevel:l.Functional,personalization:d.DevicePreferred},GAssistQuery:{name:"GAssistQuery",gdprLevel:l.Functional,personalization:d.DevicePreferred},GAssistASRSetup:{name:"GAssistASRSetup",gdprLevel:l.Functional,personalization:d.DevicePreferred},GAssistASRQuery:{name:"GAssistASRQuery",gdprLevel:l.Functional,personalization:d.DevicePreferred},GAssistFunctionCall:{name:"GAssistFunctionCall",gdprLevel:l.Functional,personalization:d.DevicePreferred},GAssistFunctionCallTechnical:{name:"GAssistFunctionCallTechnical",gdprLevel:l.Technical,personalization:d.DevicePreferred}};class ie{constructor(Et){this.parameters=Et,this.ts=(new Date).toISOString()}}class ve extends ie{constructor(Et){super(Et),this.name=re.HighlightCapture.name,this.gdprLevel=re.HighlightCapture.gdprLevel,this.personalization=re.HighlightCapture.personalization}}class ue extends ie{constructor(Et){super(Et),this.name=re.ProcessingFilter.name,this.gdprLevel=re.ProcessingFilter.gdprLevel,this.personalization=re.ProcessingFilter.personalization}}class se extends ie{constructor(Et){super(Et),this.name=re.AudioSettingsEvent.name,this.gdprLevel=re.AudioSettingsEvent.gdprLevel,this.personalization=re.AudioSettingsEvent.personalization}}class Z extends ie{constructor(Et){super(Et),this.name=re.HighlightsGameSetting.name,this.gdprLevel=re.HighlightsGameSetting.gdprLevel,this.personalization=re.HighlightsGameSetting.personalization}}class Se extends ie{constructor(Et){super(Et),this.name=re.ProcessingControlSettings.name,this.gdprLevel=re.ProcessingControlSettings.gdprLevel,this.personalization=re.ProcessingControlSettings.personalization}}class Ce extends ie{constructor(Et){super(Et),this.name=re.SessionEvent.name,this.gdprLevel=re.SessionEvent.gdprLevel,this.personalization=re.SessionEvent.personalization}}class Be extends ie{constructor(Et){super(Et),this.name=re.AnselFreestyleCapture.name,this.gdprLevel=re.AnselFreestyleCapture.gdprLevel,this.personalization=re.AnselFreestyleCapture.personalization}}class Xe extends ie{constructor(Et){super(Et),this.name=re.CaptureEvent.name,this.gdprLevel=re.CaptureEvent.gdprLevel,this.personalization=re.CaptureEvent.personalization}}class He extends ie{constructor(Et){super(Et),this.name=re.AnselFreestyleError.name,this.gdprLevel=re.AnselFreestyleError.gdprLevel,this.personalization=re.AnselFreestyleError.personalization}}class Me extends ie{constructor(Et){super(Et),this.name=re.IgoSettings.name,this.gdprLevel=re.IgoSettings.gdprLevel,this.personalization=re.IgoSettings.personalization}}class Q extends ie{constructor(Et){super(Et),this.name=re.UIPerfEvent.name,this.gdprLevel=re.UIPerfEvent.gdprLevel,this.personalization=re.UIPerfEvent.personalization}}class me extends ie{constructor(Et){super(Et),this.name=re.NotificationSettings.name,this.gdprLevel=re.NotificationSettings.gdprLevel,this.personalization=re.NotificationSettings.personalization}}class ne extends ie{constructor(Et){super(Et),this.name=re.StatsSession.name,this.gdprLevel=re.StatsSession.gdprLevel,this.personalization=re.StatsSession.personalization}}class G extends ie{constructor(Et){super(Et),this.name=re.GAssistChatboxSession.name,this.gdprLevel=re.GAssistChatboxSession.gdprLevel,this.personalization=re.GAssistChatboxSession.personalization}}class W extends ie{constructor(Et){super(Et),this.name=re.GAssistSettingsMenuSession.name,this.gdprLevel=re.GAssistSettingsMenuSession.gdprLevel,this.personalization=re.GAssistSettingsMenuSession.personalization}}class $ extends ie{constructor(Et){super(Et),this.name=re.GAssistQuery.name,this.gdprLevel=re.GAssistQuery.gdprLevel,this.personalization=re.GAssistQuery.personalization}}class le extends ie{constructor(Et){super(Et),this.name=re.GAssistASRSetup.name,this.gdprLevel=re.GAssistASRSetup.gdprLevel,this.personalization=re.GAssistASRSetup.personalization}}class Pe extends ie{constructor(Et){super(Et),this.name=re.GAssistASRQuery.name,this.gdprLevel=re.GAssistASRQuery.gdprLevel,this.personalization=re.GAssistASRQuery.personalization}}class Fe extends ie{constructor(Et){super(Et),this.name=re.GAssistFunctionCall.name,this.gdprLevel=re.GAssistFunctionCall.gdprLevel,this.personalization=re.GAssistFunctionCall.personalization}}class At extends ie{constructor(Et){super(Et),this.name=re.GAssistFunctionCallTechnical.name,this.gdprLevel=re.GAssistFunctionCallTechnical.gdprLevel,this.personalization=re.GAssistFunctionCallTechnical.personalization}}},53914:(Bt,z,s)=>{"use strict";s.d(z,{$l:()=>It,Af:()=>r,Bt:()=>c,C0:()=>ft,Cd:()=>Me,E6:()=>l,HZ:()=>Be,J7:()=>ue,JD:()=>rt,Jf:()=>re,LA:()=>Ot,LL:()=>Je,Ls:()=>v,Ng:()=>se,O5:()=>M,O6:()=>U,OH:()=>Ze,OU:()=>X,Q3:()=>y,QT:()=>P,Qi:()=>S,Qq:()=>ht,T7:()=>ie,UZ:()=>L,VT:()=>Ve,Vd:()=>yt,XW:()=>lt,Xy:()=>E,YB:()=>$e,Y_:()=>Xe,Yj:()=>H,aM:()=>tt,bG:()=>Se,cM:()=>a,cO:()=>We,db:()=>R,eL:()=>T,f2:()=>m,ft:()=>d,gh:()=>V,jb:()=>g,k8:()=>Ce,ld:()=>_,nt:()=>ve,oi:()=>O,pG:()=>B,q6:()=>i,rV:()=>D,ri:()=>He,tT:()=>N,uA:()=>f,xg:()=>A,yQ:()=>J,zg:()=>Wt});var n=s(78812);const l="StatsLayout",d="StatsVisibility",v="StatsPositionX",S="StatsPositionY",y="RectAlignment",f="FlashIndicatorStatus",O="CustAvgSampleSize",P="ResetAverages",_="DiskSpaceLimit",i="DiskSpaceLimitSlider";var r=function(ke){return ke.gfn="GFN",ke.standalone="Standalone",ke}(r||{}),a=function(ke){return ke.image="Image",ke.video="Video",ke.none="None",ke}(a||{}),c=function(ke){return ke.initial="Initial",ke.settings="Settings",ke.alreadyOn="AlreadyOn",ke.alreadyOff="AlreadyOff",ke}(c||{}),m=function(ke){return ke.individualToggle="IndividualToggle",ke.gameToggle="GameToggle",ke.featureToggle="FeatureToggle",ke}(m||{}),M=function(ke){return ke.GameFilter="Freestyle",ke.PhotoMode="Ansel",ke.PhotoModeLight="AnselLite",ke}(M||{}),D=function(ke){return ke.connect="Connect",ke.disconnect="Disconnect",ke.requestpermissions="RequestPermissions",ke.getlanguage="GetLanguage",ke.highlightsconfigure="HighlightsConfigure",ke.highlightsopengroup="HighlightsOpenGroup",ke.highlightsclosegroup="HighlightsCloseGroup",ke.highlightssavevideo="HighlightsSaveVideo",ke.highlightssavescreenshot="HighlightsSaveScreenshot",ke.highlightsopensummary="HighlightsOpenSummary",ke.highlightsgetcount="HighlightsGetCount",ke.highlightsgetuserconfig="HighlightsGetUserConfig",ke.opsoptimize="OpsOptimize",ke.unknown="UNKNOWN",ke}(D||{}),U=function(ke){return ke.on="Yes",ke.true="Yes",ke.yes="Yes",ke.off="No",ke.false="No",ke.no="No",ke}(U||{}),V=function(ke){return ke.openHotkey="OpenHotkey",ke.highlightsButton="HighlightsButton",ke}(V||{}),T=function(ke){return ke.internal="Internal",ke.external="External",ke.network="Network",ke.unknown="Unknown",ke}(T||{}),N=function(ke){return ke.Success="Success",ke.Failure="Failure",ke}(N||{}),L=function(ke){return ke.root="Root",ke.folder="Folder",ke.content="Content",ke}(L||{}),E=function(ke){return ke.none="None",ke.screenshot="Screenshot",ke.video="Video",ke.ir="InstantReplay",ke.highlight="Highlight",ke}(E||{}),g=function(ke){return ke.none="None",ke.settings="Settings",ke.galleryMain="GalleryMain",ke.galleryImagePreview="GalleryImagePreview",ke.galleryVideoPreview="GalleryVideoPreview",ke.browser="FolderBrowser",ke.mainMenu="MainMenu",ke.general="General",ke.highlights="HighlightsSettings",ke.videoCapture="VideoCaptureSettings",ke.storage="StorageSettings",ke.shortcuts="HotkeySettings",ke.headsup="HUDSettings",ke.notifications="NotificationSettings",ke.audioCapture="AudioCaptureSettings",ke.broadcast="BroadcastSettings",ke.gfnBroadcast="GfnBroadcast",ke.connect="ConnectSettings",ke.connectOauth="ConnectOauth",ke.broadcastLive="BroadcastLive",ke.share="Share",ke.privacy="Privacy",ke.system="System",ke.gameplay="Gameplay",ke.debug="Debug",ke.graphics="Graphics",ke.instantReplay="InstantReplay",ke}(g||{}),R=function(ke){return ke.startManualCapture="StartManualCapture",ke.stopAndSaveManualCapture="StopAndSaveManualCapture",ke.turnOnInstantReplay="TurnOnInstantReplay",ke.instantReplaySaved="InstantReplaySaved",ke.turnOffInstantReplay="TurnOffInstantReplay",ke.screenshotSaved="ScreenshotSaved",ke}(R||{}),B=function(ke){return ke.upperRight="UpperRight",ke.lowerRight="LowerRight",ke.lowerLeft="LowerLeft",ke.upperLeft="UpperLeft",ke.none="None",ke}(B||{}),X=function(ke){return ke.standard="Standard",ke.compact="Compact",ke}(X||{}),H=function(ke){return ke.balanced="Balanced",ke.dataSaver="DataSaver",ke.competitive="Competitive",ke.custom="Custom",ke}(H||{}),J=function(ke){return ke.recording="Recording",ke.iR="IR",ke.highlights="Highlights",ke.mic="Mic",ke.statistics="Statistics",ke.network="Network",ke}(J||{}),re=function(ke){return ke.empty="Empty",ke.openOverlay="OpenOverlay",ke.connectionStatus="ConnectionStatus",ke.saveIRToGallery="SaveIRToGallery",ke.saveMRToGallery="SaveMRToGallery",ke.saveSSToGallery="SaveSSToGallery",ke.saveHLToGallery="SaveHLToGallery",ke.iROnOff="IROnOff",ke.mROn="MROn",ke}(re||{}),ie=function(ke){return ke.anselFreeStyle="AnselFreestyleNoResponse",ke.anselFreestyleGeneralFailure="AnselFreestyleGeneralFailure",ke.anselFailedToStart="AnselFailedToStart",ke.anselNoSpaceLeft="AnselNoSpaceLeft",ke.anselPermissionDenied="AnselPermissionDenied",ke.anselInvalidRequest="AnselInvalidRequest",ke.anselFreestyleAlreadyEnabled="AnselFreestyleAlreadyEnabled",ke.anselFreestyleAlreadyDisabled="AnselFreestyleAlreadyDisabled",ke.anselOutOfRange="AnselOutOfRange",ke.anselFreestyleAlreadySet="AnselFreestyleAlreadySet",ke.anselFreestyleIncompatibleVersion="AnselFreestyleIncompatibleVersion",ke.anselFreestyleAppFatalError="AnselFreestyleAppFatalError",ke.anselFreestyleAppNonFatalError="AnselFreestyleAppNonFatalError",ke.anselFreestyleUnsupportedGameError="AnselFreestyleUnsupportedGameError",ke.anselFreestyleMenuLaunchError="AnselFreestyleMenuLaunchError",ke}(ie||{}),ve=function(ke){return ke.nvCameraTimedOut="NvCameraTimedOut",ke.gameBlacklisted="GameBlackListed",ke.unsupportedGame="UnSupportedGame",ke.streamerError="StreamerError",ke}(ve||{}),ue=function(ke){return ke.started="Started",ke.completed="Completed",ke.cancelled="Cancelled",ke.failed="Failed",ke}(ue||{}),se=function(ke){return ke.anselScreenshotTimeoutFailure="AnselScreenshotTimeoutFailure",ke.anselScreenshotUnknownFailure="AnselScreenshotUnknownFailure",ke.anselScreenshotNoFailure="AnselScreenshotNoFailure",ke}(se||{}),Se=function(ke){return ke.nvCameraReadyNotificationNotReceived="NvCameraReadyNotificationNotReceived",ke.featureNotAvailable="FeatureNotAvailable",ke.nvCameraSessionConfigurationFailed="NvCameraSessionConfigurationFailed",ke.featureDisabledReasonUnknown="FeatureDisabledReasonUnknown",ke}(Se||{}),Ce=function(ke){return ke.start="Start",ke.stop="Stop",ke.pause="Pause",ke.resume="Resume",ke}(Ce||{}),Be=function(ke){return ke.adobe="Adobe",ke.facebook="Facebook",ke.lightstream="Lightstream",ke.twitch="Twitch",ke.youtube="YouTube",ke}(Be||{}),Xe=function(ke){return ke.failedToStart="FailedToStart",ke.failedToStop="FailedToStop",ke.timeoutError="TimeoutError",ke.unknownError="UnknownError",ke}(Xe||{}),He=function(ke){return ke.fullscreen="Fullscreen",ke.windowed="Windowed",ke}(He||{});class Me extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Functional,this.name="GFNSession"}}class A extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Behavioral,this.name="SettingSnapshot"}}class $e{get streamerConfig(){return this.streamerConfigService?.activeConfig}constructor(be,Ae){this.bridgeService=be,this.streamerConfigService=Ae}generateFinalizedEvent(be,Ae){return be.cmsId=be.cmsId||(this.streamerConfig?this.streamerConfig.cmsId.toString():""),be.shortName=be.shortName||(this.streamerConfig?this.streamerConfig.shortName:""),new Ae(be)}}class Ze extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Functional,this.name="AnselFreestyleSession"}}class Ve extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Functional,this.name="AnselFreestyleFilters"}}class Ot extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Functional,this.name="FreestyleStylesApplied"}}class It extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Functional,this.name="AnselScreenshotEvent"}}class We extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Functional,this.name="AnselFreestyleError"}}class lt extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Technical,this.name="AnselFreestyleFeatureDisabled"}}class ft extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Functional,this.name="BroadcastEvent"}}class ht extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Functional,this.name="BroadcastError"}}class Je extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Functional,this.name="GameplayEntryEvent"}}class tt extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Functional,this.name="StreamingQualityChangedEvent"}}class rt extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Functional,this.name="ResolutionUpscalingChangedEvent"}}var yt=function(ke){return ke.Native="Native",ke}(yt||{}),Wt=function(ke){return ke.Release="Release",ke.IBeta="iBeta",ke.Undefined="undefined",ke.Dev="Dev",ke}(Wt||{})},27211:(Bt,z,s)=>{"use strict";s.d(z,{S:()=>d});var n=s(53914),l=s(43848);class d{constructor(){this.clientHost=n.Af.standalone,this.modsActive=!1}toTelemetryBoolean(S){return S?n.O6.yes:n.O6.no}setModsActiveStatus(S){this.modsActive=S}sendHighlightCapture(S,y,f,O,P,_,i,r){}sendHighlightsGameSetting(S,y,f,O,P,_){}sendProcessingFilter(S,y,f,O,P,_,i,r,a){}sendProcessingControlSettings(S,y,f,O,P){}sendIGOSettings(S,y,f){}sendStatsSession(S,y,f,O,P,_,i,r,a){}sendUIPerfEvent(S,y,f,O,P,_){}init(){}initCommonData(){return(0,l.of)(null)}sendAudioTelemetry(S){}sendCaptureEvent(S,y,f,O,P,_,i,r,a,c,m,M,D,I,U){}startAnselScreenshot(){}sendAnselFreestyleCaptureEvent(S,y,f,O,P,_,i,r,a,c,m,M){}sendAnselFreestyleError(S,y,f,O,P,_,i,r,a,c,m){}updateVideoSpecSettings(S){}updateMicMode(S){}startStatsLoggingSession(S){}sendStatsLoggingSession(S){}sendStatsOverlaySession(S,y,f,O,P,_,i=!1){}startStatsOverlaySession(S){}sendStartupTelemetry(){}beginStartupTimer(S){}trackNavigation(S,y=n.jb.none){}sendHighlightsIndividualGameToggle(S,y,f){}sendHighlightCancelled(S,y,f){}getHighlightsEnabled(){return null}recordSDKCallResult(S,y,f,O,P){}sendSDKCallResults(S,y){}sendGalleryOpenedFileLocation(){}sendGalleryFileRemoved(S){}sendGalleryPlayedVideo(S,y){}sendGalleryFilterUsed(S){}sendGalleryFileAccess(S){}sendGalleryAccess(){}startGalleryAccess(S){}setGalleryAccessCached(S){}setGalleryFolderCounts(S,y){}sendStatsClosedTelemetry(S,y,f){}sendStatsViewChanged(S,y,f){}sendWidgetViewChanged(S,y,f){}sendNotificationChanged(S,y){}sendSessionEvent(S,y,f,O,P,_,i,r){}sendNotificationSettingsTelemetry(S){}sendGAssistChatBoxSession(S){}sendGAssistSettingsMenuSession(S){}sendGAssistQueryData(S){}sendGAssistASRSetupData(S){}sendGAssistASRQueryData(S){}sendGAssistFunctionCallData(S){}}},10279:(Bt,z,s)=>{"use strict";s.d(z,{x:()=>g});var n=s(20924),l=s(85735),d=s(17053),v=s(93181),S=s(43848),y=s(83915),f=s(75707),O=s(90975),P=s(91384),_=s(53914),i=s(88583),r=s(23355),a=s(89284),c=s(61958),m=s(10132),M=s(23860),D=s(27211),I=s(58527),U=s(99469),V=s(12137),T=s(73934),N=s(44968),L=s(50057),E=s(78812);let g=(()=>{class R{constructor(X,H,J,re,ie,ve,ue,se,Z,Se,Ce,Be){this.loggingService=X,this.bridgeService=H,this.igoConfig=J,this.injector=re,this.hotkeyService=ie,this.appLifetimeService=ve,this.dbService=ue,this.osdService=se,this.notificationService=Z,this.igoPiplLocaleConfigService=Se,this.systemInfoService=Ce,this.telemetryService=Be,this.commonData={},this.clientHost=_.Af.standalone,this.driveTypeMap={unknown:_.eL.unknown,removable:_.eL.external,fixed:_.eL.internal,network:_.eL.network},this.captureEventsMap={},this.screenPosMap={},this.statsFormat={},this.profileNameMap={},this.widgetIndicatorMap={},this.notificationMap={},this.cachedSessionId="",this.irBufLength=new l.m(1),this.gallerySettings=new l.m(1),this.modsActive=!1,this.uiPerfEventData=new Map,this.anselFilterApplied=!1,this.isNvApp=!1,this.logger=this.loggingService.getLogger("TelemetryHelperService"),this.screenPosMap[m.VH.leftBottom]=_.pG.lowerLeft,this.screenPosMap[m.VH.leftTop]=_.pG.upperLeft,this.screenPosMap[m.VH.rightBottom]=_.pG.lowerRight,this.screenPosMap[m.VH.rightTop]=_.pG.upperRight,this.screenPosMap[m.VH.none]=_.pG.none,this.statsFormat[m.QY.standard]=_.OU.standard,this.statsFormat[m.QY.compact]=_.OU.compact,this.profileNameMap[a.SBM.Balanced]=_.Yj.balanced,this.profileNameMap[a.SBM.DataSaver]=_.Yj.dataSaver,this.profileNameMap[a.SBM.Competitive]=_.Yj.competitive,this.profileNameMap[a.SBM.Custom]=_.Yj.custom,this.widgetIndicatorMap[m.lb.Recording]=_.yQ.recording,this.widgetIndicatorMap[m.lb.IR]=_.yQ.iR,this.widgetIndicatorMap[m.lb.Highlights]=_.yQ.highlights,this.widgetIndicatorMap[m.lb.Mic]=_.yQ.mic,this.widgetIndicatorMap[m.lb.GfnMic]=_.yQ.mic,this.widgetIndicatorMap[m.lb.Statistics]=_.yQ.statistics,this.widgetIndicatorMap[m.lb.Network]=_.yQ.network,this.notificationMap[M.Jk.Empty]=_.Jf.empty,this.notificationMap[M.Jk.OpenOverlay]=_.Jf.openOverlay,this.notificationMap[M.Jk.ConnectionStatus]=_.Jf.connectionStatus,this.notificationMap[M.Jk.SaveIRToGallery]=_.Jf.saveIRToGallery,this.notificationMap[M.Jk.SaveMRToGallery]=_.Jf.saveMRToGallery,this.notificationMap[M.Jk.SaveSSToGallery]=_.Jf.saveSSToGallery,this.notificationMap[M.Jk.SaveHLToGallery]=_.Jf.saveHLToGallery,this.notificationMap[M.Jk.IROnOff]=_.Jf.iROnOff,this.notificationMap[M.Jk.MROn]=_.Jf.mROn,this.isNvApp="GFE"===this.igoConfig.branding}init(){let X;this.logger.info("Initializing telemetry"),this.sessionStartTime=Date.now(),this.telemetryHelperIGOService=this.injector.get(D.S),"GFN"===this.igoConfig.branding?(this.streamingService=this.injector.get(i.I),X=this.injector.get(a.zi2),this.appConfig=this.injector.get(c.Vk),this.streamingSubscription=this.streamingService.streamingEvent$.subscribe(H=>{H.event===r.CW.SESSION_SETUP_SUCCESS&&(this.sendSettingsTelemetry(),this.cachedSessionId=this.streamingService.streamingProperties.sessionId||"",this.streamingSubscription.unsubscribe())}),this.gridService=this.injector.get(a.Gip),this.gridService.getCachedZone().subscribe(H=>{this.zone=H})):this.registerForlocaleChangeNotification(),this.perGameEventFactory=new _.YB(this.bridgeService,X),this.clientHost="GFN"===this.igoConfig.branding?_.Af.gfn:_.Af.standalone,"GFN"===this.igoConfig.branding?this.appLifetimeService.addWorkOnShutdown(()=>new d.c(H=>{H.next(this.sendExitTelemetry()),H.complete()})):this.telemetryHelperIGOService.initCommonData().subscribe(H=>{this.commonData=H}),this.telemetryHelperIGOService.init()}registerForlocaleChangeNotification(){this.igoPiplLocaleConfigService.localConfigChangeNotification().subscribe(X=>{const H=X?.jsEvents?.server;H?this.telemetryService.setServerConfig(H):this.logger.error("Telemetry Server URL empty in local config ",X)})}getLocaleOverride(){return this.bridgeService.executeCommand(n.Ts.Common.Nvlocalizedconfig.GetLocalizationData)}sendExitTelemetry(){this.telemetryHelperIGOService.sendSDKCallResults(!1,!0);const X=this.perGameEventFactory.generateFinalizedEvent({wasHighlightsAvailable:this.toTelemetryBoolean(this.telemetryHelperIGOService.getHighlightsEnabled()),sessionDurationMs:Date.now()-this.sessionStartTime,sessionId:this.cachedSessionId},_.Cd);this.telemetryService.push(X,0,{appExit:!0})}sendSettingsTelemetry(){const X=this.dbService.getGlobalStore("IGOTelemetry");X.getItem("lastSettingsSendTime").subscribe(H=>{this.logger.info("sendTime: ",H,"alwaysSend: ",this.appConfig?this.appConfig.featureEnablement?this.appConfig.featureEnablement.alwaysSendSettingsTelemetry:"No featureEnablement in config":"No appConfig"),(this.appConfig&&this.appConfig.featureEnablement&&this.appConfig.featureEnablement.alwaysSendSettingsTelemetry||!H||Date.now()-H>6048e5)&&(this.logger.info("Sending settings"),this.doSendSettingsTelemetry(),X.setItem("lastSettingsSendTime",Date.now()))})}doSendSettingsTelemetry(){let H=0,J=0,re=0,ie=_.eL.unknown;const ve={clientHost:this.clientHost,gallerySizeMB:0,gallerySpaceUsedPercent:0,typeOfStorageDrive:ie,areGlobalHighlightsOn:this.toTelemetryBoolean(!1),openIGOHotkey:"",numGalleryImages:0,numGalleryVideos:0,instantReplayBufferLength:0,galleryTotalSizeMB:0,screenshotHotkey:"",irToggleHotkey:"",saveIRHotkey:"",mrHotkey:"",statsHotkey:"",recordingHUDLocation:this.screenPosMap[this.osdService.getPosition(m.lb.Recording)],instantReplayHUDLocation:this.screenPosMap[this.osdService.getPosition(m.lb.IR)],highlightsHUDLocation:this.screenPosMap[this.osdService.getPosition(m.lb.Highlights)],micHUDLocation:this.screenPosMap[this.osdService.getPosition(m.lb.Mic)],connectionStatusHUDLocation:this.screenPosMap[this.osdService.getPosition(m.lb.Network)],statsLocation:this.screenPosMap[this.osdService.getPosition(m.lb.Statistics)],statsFormat:this.statsFormat[this.osdService.getStatsSize()],irSavedIndicatorOn:this.toTelemetryBoolean(this.notificationService.getNotificationControls()[M.Jk.SaveIRToGallery-1].enable),mrSavedIndicatorOn:this.toTelemetryBoolean(this.notificationService.getNotificationControls()[M.Jk.SaveMRToGallery-1].enable),screenshotSavedIndicatorOn:this.toTelemetryBoolean(this.notificationService.getNotificationControls()[M.Jk.SaveSSToGallery-1].enable),irToggleIndicatorOn:this.toTelemetryBoolean(this.notificationService.getNotificationControls()[M.Jk.IROnOff-1].enable),mrStartedIndicatorOn:this.toTelemetryBoolean(this.notificationService.getNotificationControls()[M.Jk.MROn-1].enable),highlightSavedIndicatorOn:this.toTelemetryBoolean(this.notificationService.getNotificationControls()[M.Jk.SaveHLToGallery-1].enable)},ue=(0,v.p)([this.bridgeService.executeCommand(n.Ts.Common.Gallery.EnumerateDrives),this.gallerySettings]).pipe((0,y.T)(([Z,Se])=>{if(Se.settings.path)for(const Ce of Z.drives)if(Se.settings.path.startsWith(Ce.name))return ie=this.driveTypeMap[Ce.type]||_.eL.unknown,ie;return ie})),se=this.gallerySettings.pipe((0,y.T)(Z=>(Z.settings.capacity&&(H=Z.settings.capacity.enabled?Math.round(Z.settings.capacity.capacityPercent*Z.settings.capacity.totalDiskSpaceMB):0,J=Z.settings.capacity.usageMB,re=Z.settings.capacity.totalDiskSpaceMB),ve.gallerySizeMB=J,ve.gallerySpaceUsedPercent=H>0?Math.round(100*J/H):0,ve.galleryTotalSizeMB=re,Z)),(0,f.ZZ)(Z=>Z.settings.path?this.bridgeService.executeCommand(n.Ts.Common.Gallery.GetFolderListing,{directory:Z.settings.path,shouldGetOnlyNv:!0,excludeDirectoryType:n.Or.Common.Gallery.ExcludeDirectoryType.empty}):(0,S.of)(null)),(0,y.T)(Z=>Z&&Z.directories.length>0?Z.directories:[""]),(0,f.ZZ)(Z=>(0,S.of)(...Z)),(0,f.ZZ)(Z=>0===Z.length?(0,S.of)({screenshots:0,videos:0}):this.bridgeService.executeCommand(n.Ts.Common.Gallery.GetAppStats,{appName:Z})),(0,O.T)((Z,Se)=>(Z.numImages+=Se.screenshots,Z.numVideos+=Se.videos,Z),{numImages:0,numVideos:0}),(0,P.M)(Z=>{ve.numGalleryImages=Z.numImages,ve.numGalleryVideos=Z.numVideos}),(0,f.ZZ)(()=>ue),(0,P.M)(Z=>{ve.typeOfStorageDrive=Z||_.eL.unknown}),(0,f.ZZ)(()=>this.bridgeService.executeCommand(n.Ts.Share.Shareserver.GetHighlightsEnable)),(0,P.M)(Z=>{ve.areGlobalHighlightsOn=this.toTelemetryBoolean(Z.enable)}),(0,f.ZZ)(()=>this.irBufLength),(0,P.M)(Z=>{ve.instantReplayBufferLength=Z}),(0,f.ZZ)(()=>this.hotkeyService.getHotkeyString(n.Or.Share.Shareserver.HotkeyEnum.OpenIGO)),(0,P.M)(Z=>{ve.openIGOHotkey=Z}),(0,f.ZZ)(()=>this.hotkeyService.getHotkeyString(n.Or.Share.Shareserver.HotkeyEnum.Screenshot)),(0,P.M)(Z=>{ve.screenshotHotkey=Z}),(0,f.ZZ)(()=>this.hotkeyService.getHotkeyString(n.Or.Share.Shareserver.HotkeyEnum.DVRToggle)),(0,P.M)(Z=>{ve.irToggleHotkey=Z}),(0,f.ZZ)(()=>this.hotkeyService.getHotkeyString(n.Or.Share.Shareserver.HotkeyEnum.DVRSave)),(0,P.M)(Z=>{ve.saveIRHotkey=Z}),(0,f.ZZ)(()=>this.hotkeyService.getHotkeyString(n.Or.Share.Shareserver.HotkeyEnum.RecordToggle)),(0,P.M)(Z=>{ve.mrHotkey=Z}),(0,f.ZZ)(()=>this.hotkeyService.getHotkeyString(n.Or.Share.Shareserver.HotkeyEnum.StatisticsToggle)),(0,P.M)(Z=>{ve.statsHotkey=Z})).subscribe(()=>{this.logger.info("Actually sending settings telemetry",ve);const Z=new _.xg(ve);this.telemetryService.push(Z,0,{immediateRequest:!0}),se.unsubscribe()})}updateReplayLength(X){this.irBufLength.next(X),this.irBufLength.complete()}updateGallerySettings(X){this.gallerySettings.next(X),this.gallerySettings.complete()}toTelemetryBoolean(X){return X?_.O6.yes:_.O6.no}updateAnselFilterAppliedField(X){this.anselFilterApplied=X}sendHighlightCapture(X,H,J,re,ie,ve,ue){this.telemetryHelperIGOService.sendHighlightCapture(X,H,J,re,ie,ue,ve,this.anselFilterApplied)}sendProcessingControlSettings(X,H,J,re,ie){this.telemetryHelperIGOService.sendProcessingControlSettings(X,H,J,re,ie)}sendProcessingFilter(X,H,J,re,ie,ve,ue,se,Z){this.telemetryHelperIGOService.sendProcessingFilter(X,H,J,re,ie,ve,ue,se,Z)}sendIGOSettings(X,H,J){this.telemetryHelperIGOService.sendIGOSettings(X,H,J)}startUIPerfEvent(X){this.uiPerfEventData.set(X,Date.now())}sendUIPerfEvent(X,H,J,re){if(!this.uiPerfEventData.has(H))return void this.logger.error("Cannot send stats ui perf telemetry, timer was never started");const ie=this.uiPerfEventData.get(H)-Date.now();this.telemetryHelperIGOService.sendUIPerfEvent(X,H,ie,ie,J,re),this.uiPerfEventData.delete(H)}sendHighlightsGameSetting(X,H,J,re,ie,ve){this.telemetryHelperIGOService.sendHighlightsGameSetting(X,H,J,re,ie,ve)}startCaptureEvent(X){this.captureEventsMap[X]=Date.now()}sendCaptureEvent(X,H,J,re,ie,ve,ue,se,Z,Se,Ce){this.isNvApp||this.captureEventsMap[X]?(this.telemetryHelperIGOService?.sendCaptureEvent(X,H,J,re,ie,ve,ue,se,Z,Date.now()-this.captureEventsMap[X],Se,Ce,this.osdService.getPosition(m.lb.IR),this.osdService.getPosition(m.lb.Performance),this.anselFilterApplied),this.isNvApp||(this.captureEventsMap[X]=0)):this.logger.error("Attempted to end a performance measurement for "+X+" without starting it!")}sendAnselFreestyleSession(X,H,J,re,ie,ve,ue,se,Z,Se,Ce,Be){if("GFN"===this.igoConfig.branding){const Xe=this.perGameEventFactory.generateFinalizedEvent({mode:X,totalMs:H,usedKeyboard:this.toTelemetryBoolean(J),usedMouse:this.toTelemetryBoolean(re),cmsId:ve||"",shortName:ue||"",panningUsed:this.toTelemetryBoolean(Se),panningWithKB:this.toTelemetryBoolean(Ce),panningWithMouse:this.toTelemetryBoolean(Be)},_.OH);this.telemetryService.push(Xe)}}sendAnselFreestyleFilters(X,H,J,re,ie,ve){if("GFN"===this.igoConfig.branding){const ue=this.perGameEventFactory.generateFinalizedEvent({mode:H,filterName:X||"",cmsId:J||"",shortName:re||""},_.VT);this.telemetryService.push(ue)}}sendFreestyleSlotTelemetry(X,H,J,re,ie,ve,ue,se,Z,Se,Ce){if("GFN"===this.igoConfig.branding){const Be=this.perGameEventFactory.generateFinalizedEvent({usedStyles:ve,style1Filters:X,style2Filters:H,style3Filters:J,activeStyle:ie||0,activeFilters:re,cmsId:se||"",shortName:Z||"",persistedFilters:this.toTelemetryBoolean(ue),usedMenu:this.toTelemetryBoolean(!ue)},_.LA);this.telemetryService.push(Be)}}sendAnselScreenshotTelemetry(X,H,J,re,ie,ve,ue,se,Z,Se,Ce,Be,Xe,He){if("GFN"===this.igoConfig.branding){const Me=new _.$l({state:X,cmsId:H||0,shortName:J||"",screenshotType:re,screenshotResolution:ie,panningUsed:this.toTelemetryBoolean(ve),mode:ue,totalMs:se||0,gridUsed:this.toTelemetryBoolean(Z),installedDDVersion:X===_.J7.failed&&this.zone.name||"",gpuName:X===_.J7.failed&&this.zone.address||"",errorType:Xe,errorString:He,roll:Se,fov:Ce,stackedFilters:Be});this.telemetryService.push(Me)}}sendAnselFreestyleErrorTelemetry(X,H,J,re,ie,ve,ue,se,Z,Se,Ce,Be,Xe,He){if("GFN"===this.igoConfig.branding){const Me=this.perGameEventFactory.generateFinalizedEvent({errorType:X,errorSubType:Xe,errorString:He||"",mode:H,serverGPUType:this.zone.name,serverOSVersion:this.zone.address,usedMenu:_.O6.true,cmsId:J||"",shortName:re||""},_.cO);this.telemetryService.push(Me)}}sendAnselFreestyleFeatureDisableTelemetry(X,H,J,re,ie){if("GFN"===this.igoConfig.branding){const ve=this.perGameEventFactory.generateFinalizedEvent({cmsId:"",shortName:H||"",mode:J,errorType:re,errorInfo:ie||"",serverInfo:this.zone.address||""},_.XW);this.telemetryService.push(ve)}}sendBroadcastEventTelemetry(X,H,J,re,ie){if("GFN"===this.igoConfig.branding){const ve=this.perGameEventFactory.generateFinalizedEvent({cmsId:"",shortName:H||"",action:J||_.k8.start,provider:_.HZ.lightstream,timeMs:0,modsActive:this.toTelemetryBoolean(this.modsActive)},_.C0);this.telemetryService.push(ve)}}sendBroadcastErrorTelemetry(X,H,J,re,ie){if("GFN"===this.igoConfig.branding){const ve=this.perGameEventFactory.generateFinalizedEvent({cmsId:"",shortName:H||"",errorType:J||_.Y_.unknownError,provider:_.HZ.lightstream,errorString:ie||""},_.Qq);this.telemetryService.push(ve)}}setModsActiveStatus(X){this.modsActive=X}sendStatsViewChanged(X,H,J){this.telemetryHelperIGOService.sendStatsViewChanged(X,this.statsFormat[H],this.screenPosMap[J])}sendGameplayEntrySetting(X){const H=this.perGameEventFactory.generateFinalizedEvent({clientHost:this.clientHost,sessionId:this.cachedSessionId,profile:this.profileNameMap[X]},_.LL);this.logger.info("Gameplay Profile Entry Telemetry: ",H),this.telemetryService.push(H)}sendStatsClosedTelemetry(X,H,J){this.telemetryHelperIGOService.sendStatsClosedTelemetry(X,this.screenPosMap[H],this.statsFormat[J])}sendStreamingQualityChanged(X){const H=this.perGameEventFactory.generateFinalizedEvent({clientHost:this.clientHost,sessionId:this.cachedSessionId,maxBitrateAuto:this.toTelemetryBoolean(X.maxBitrateAuto),maxBitrateAutoChanged:this.toTelemetryBoolean(X.maxBitrateAutoChanged),maxBitrate:X.maxBitrate,maxBitrateChanged:this.toTelemetryBoolean(X.MaxBitrateChanged),vsync:X.vSync,vsyncChanged:this.toTelemetryBoolean(X.vSyncChanged),drc:this.toTelemetryBoolean(X.drc),drcChanged:this.toTelemetryBoolean(X.drcChanged)},_.aM);this.logger.info("StreamingQuality Changed Telemetry: ",H),this.telemetryService.push(H)}sendResolutionUpscalingChanged(X){const H=this.perGameEventFactory.generateFinalizedEvent({clientHost:this.clientHost,sessionId:this.cachedSessionId,upscaleMode:X.upscaleMode,detailEnhancement:X.detailEnhancement},_.JD);this.logger.info("ResolutionUpscaling Changed Telemetry: ",H),this.telemetryService.push(H)}sendWidgetViewChanged(X,H){this.telemetryHelperIGOService.sendWidgetViewChanged(X,this.screenPosMap[H],this.widgetIndicatorMap[X])}sendNotificationChanged(X,H){this.telemetryHelperIGOService.sendNotificationChanged(this.notificationMap[X],H)}sendAnselFreestyleError(X,H,J,re,ie,ve,ue,se,Z,Se,Ce){this.telemetryHelperIGOService.sendAnselFreestyleError(X,H,J,re,ie,ve,ue,se,Z,Se,Ce)}static{this.\u0275fac=function(H){return new(H||R)(I.KVO(U.J6),I.KVO(U.NZ),I.KVO(V.k),I.KVO(I.zZn),I.KVO(T.QS),I.KVO(N.lM),I.KVO(U.at),I.KVO(m.au),I.KVO(M.mb),I.KVO(L.A),I.KVO(U.zW),I.KVO(E.H0))}}static{this.\u0275prov=I.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})}}return R})()},89701:(Bt,z,s)=>{"use strict";s.d(z,{g:()=>D});var n=s(96542),l=s(80583),d=s(4208),v=s(91384),S=s(25242);S.t1.register(...S.$L);const y=S.t1;var f=s(71816),O=s(26537),P=s(24616),_=s(17617),i=s(58527),r=s(99469),a=s(1229),c=s(29370),m=s(44186);let M=(()=>{class I{constructor(V,T,N,L){this.data=V,this.loggingService=T,this.aiChatboxService=N,this.elementRef=L,this.downloadTooltipText="gAssist.tooltips.download",this.closeTooltipText="gAssist.tooltips.close",y.register(S.ZT,S.Jy),this.logger=this.loggingService.getLogger("ChartDialogComponent"),this.chartDataObj=V}ngOnInit(){this.aiChatboxService.setIsChartOrImageDialogOpen(!0)}onDownload(){const N=[],L=[this.chartDataObj?.chartOptions?.scales?.x?.title?.text||""].concat(this.chartDataObj.chartData.datasets.map(g=>g.label));N.push(L.join(",")),this.chartDataObj.chartData.labels.forEach((g,R)=>{const B=[g].concat(this.chartDataObj.chartData.datasets.map(X=>X.data[R]));N.push(B.join(","))});const E=N.join("\n");this.aiChatboxService.saveCSVData(E)}onDragEnd(V){this.logger.info("onDragEnd");const T=this.elementRef?.nativeElement?.getBoundingClientRect();T&&this.aiChatboxService.updateChartDialogPosition({x:T.x,y:T.y})}ngOnDestroy(){this.aiChatboxService.setIsChartOrImageDialogOpen(!1)}static{this.\u0275fac=function(T){return new(T||I)(i.rXU(O.Vh),i.rXU(r.J6),i.rXU(a.Dli),i.rXU(i.aKT))}}static{this.\u0275cmp=i.VBU({type:I,selectors:[["igo-g-assist-chart-dialog"]],standalone:!0,features:[i.aNF],decls:10,vars:10,consts:[["cdkDrag","","cdkDragRootElement",".cdk-overlay-pane","cdkDragBoundary","body",1,"dialog-container",3,"cdkDragEnded"],["cdkDragHandle","",1,"gassist-header-right"],[1,"header-btn","download-btn","gassist-state-btn",3,"click","matTooltip"],["svgIcon","download"],[1,"header-btn","gassist-state-btn",3,"mat-dialog-close","matTooltip"],["svgIcon","close"],[1,"dialog-content-container"],["baseChart","",3,"data","options","type"]],template:function(T,N){1&T&&(i.j41(0,"div",0),i.bIt("cdkDragEnded",function(E){return N.onDragEnd(E)}),i.j41(1,"div",1)(2,"button",2),i.nI1(3,"translate"),i.bIt("click",function(){return N.onDownload()}),i.nrm(4,"mat-icon",3),i.k0s(),i.j41(5,"button",4),i.nI1(6,"translate"),i.nrm(7,"mat-icon",5),i.k0s()(),i.j41(8,"div",6),i.nrm(9,"canvas",7),i.k0s()()),2&T&&(i.R7$(2),i.FS9("matTooltip",i.bMT(3,6,N.downloadTooltipText)),i.R7$(3),i.FS9("matTooltip",i.bMT(6,8,N.closeTooltipText)),i.Y8G("mat-dialog-close",!0),i.R7$(4),i.Y8G("data",N.data.chartData)("options",N.data.chartOptions)("type",N.data.chartType))},dependencies:[f.FR,f.j9,_.i,c.An,O.tx,m.oV,n.h,n.D9,P.ad,P.T1,P.Fb],styles:[".dialog-container[_ngcontent-%COMP%]{padding:0;height:100%;box-sizing:border-box;display:flex;flex-direction:column;z-index:50}.dialog-container[_ngcontent-%COMP%] .dialog-content-container[_ngcontent-%COMP%]{border:none;margin:auto;position:relative;display:flex;justify-content:center;align-items:center;min-height:320px;min-width:calc(40vw - 112px);width:100%;height:100%;flex-grow:1;padding:0 16px 16px;box-sizing:border-box}.dialog-container[_ngcontent-%COMP%] .header-btn[_ngcontent-%COMP%]{color:#fff;background:transparent;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;outline:none!important}.dialog-container[_ngcontent-%COMP%] .header-btn[data-disabled=true][_ngcontent-%COMP%]{opacity:.5;pointer-events:none}.dialog-container[_ngcontent-%COMP%] .gassist-header-right[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:12px 16px;background-color:#292929}.dialog-container[_ngcontent-%COMP%] .gassist-header-right.download-btn[_ngcontent-%COMP%]{width:24px;position:relative;top:1px}.g-assist-chart-dialog[_ngcontent-%COMP%] mat-dialog-container[_ngcontent-%COMP%] .mat-mdc-dialog-container .mdc-dialog__surface{border-radius:0}"]})}}return I})(),D=(()=>{class I{constructor(V,T,N,L){this.loggingService=V,this.dialog=T,this.riseService=N,this.aiChatboxService=L,this.onLoad=()=>{},this.chartType="line",this.expandTooltipText="gAssist.tooltips.expand",this.destroy$=new l.B7,y.register(S.ZT,S.Jy),this.logger=this.loggingService.getLogger("ChartElementComponent")}ngOnInit(){this.logger.info("Init"),this.aiChatboxService.shouldCloseChartDialog().pipe((0,d.Q)(this.destroy$),(0,v.M)(()=>{this.logger.info("closing chart dialog:",this.expanded),this.expanded&&this.mediaDialogRef&&(this.mediaDialogRef.close(),this.aiChatboxService.setIsChartOrImageDialogOpen(!1),this.expanded=!1)})).subscribe()}openModal(){this.logger.info("Opened G-Assist Chart");const V={},T=this.aiChatboxService.getChartDialogPosition();T&&(V.left=T.x.toString()+"px",V.right="unset",V.top=T.y.toString()+"px",V.bottom="unset"),this.mediaDialogRef=this.dialog?.open(M,{data:{chartData:this.chartData,chartOptions:this.chartOptions,chartType:this.chartType},height:"40%",width:"40%",autoFocus:!0,position:V,panelClass:"g-assist-chart-dialog",hasBackdrop:!1,disableClose:!1,restoreFocus:!0}),this.mediaDialogRef?.afterOpened()?.pipe((0,d.Q)(this.destroy$)).subscribe(N=>{this.expanded=!0}),this.aiChatboxService.shouldCloseChartDialog().pipe((0,d.Q)(this.destroy$),(0,v.M)(()=>{this.logger.info("closing chart dialog:",this.expanded),this.expanded&&(this.mediaDialogRef.close(),this.aiChatboxService.setIsChartOrImageDialogOpen(!1),this.expanded=!1)})).subscribe(),this.mediaDialogRef?.afterClosed()?.pipe((0,d.Q)(this.destroy$))?.subscribe(N=>{this.expanded=!1,this.riseService.shouldFocusInput(),this.logger.info("The chart dialog was closed")})}ngOnDestroy(){this.logger.info("ngOnDestroy"),this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(T){return new(T||I)(i.rXU(r.J6),i.rXU(O.bZ),i.rXU(a.Jr9),i.rXU(a.Dli))}}static{this.\u0275cmp=i.VBU({type:I,selectors:[["igo-g-assist-chart-element"]],inputs:{onLoad:"onLoad",expanded:"expanded",rawData:"rawData",chartData:"chartData",chartOptions:"chartOptions"},standalone:!0,features:[i.aNF],decls:5,vars:9,consts:[[1,"chart-container",3,"click"],["baseChart","",1,"chart",3,"data","options","type"],[1,"middle"],["svgIcon","open_in_full","color","#fff",1,"expand-icon",3,"matTooltip"]],template:function(T,N){1&T&&(i.j41(0,"div",0),i.bIt("click",function(){return N.expanded?void 0:N.openModal()}),i.nrm(1,"canvas",1),i.j41(2,"div",2),i.nrm(3,"mat-icon",3),i.nI1(4,"translate"),i.k0s()()),2&T&&(i.BMQ("data-disabled",N.expanded),i.R7$(),i.Y8G("data",N.chartData)("options",N.chartOptions)("type",N.chartType),i.BMQ("data-disabled",N.expanded),i.R7$(2),i.FS9("matTooltip",i.bMT(4,7,N.expandTooltipText)),i.BMQ("data-disabled",N.expanded))},dependencies:[f.FR,f.j9,_.i,c.An,m.oV,n.h,n.D9],styles:[".chart-container[_ngcontent-%COMP%]{background-color:#393939;border:none;margin:1rem auto auto;position:relative;display:flex;justify-content:center;min-width:calc(10vw - 112px);min-height:250px;height:100%;flex-grow:1}.chart-container[_ngcontent-%COMP%] canvas[_ngcontent-%COMP%]{width:160px;height:100%}.chart-container[data-disabled=true][_ngcontent-%COMP%]{opacity:.5}.chart-container[_ngcontent-%COMP%]:hover > .chart[_ngcontent-%COMP%]{opacity:.3}.chart-container[_ngcontent-%COMP%]:hover > .chart[data-disabled=true][_ngcontent-%COMP%]{opacity:1}.chart-container[_ngcontent-%COMP%]:hover > .middle[_ngcontent-%COMP%]{opacity:1}.middle[_ngcontent-%COMP%]{transition:.5s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center}.middle[data-disabled=true][_ngcontent-%COMP%]{display:none;cursor:default}.middle[_ngcontent-%COMP%] .expand-icon[_ngcontent-%COMP%]{margin:auto;cursor:pointer}.middle[_ngcontent-%COMP%] .expand-icon[data-disabled=true][_ngcontent-%COMP%]{display:none;cursor:default}"]})}}return I})()},39248:(Bt,z,s)=>{"use strict";s.r(z),s.d(z,{GAssistModule:()=>X});var n=s(61142),l=s(56106),d=s(24616),v=s(14354),S=s(51006),y=s(26283),f=s(71816),O=s(99469),P=s(56785),_=s(17617),i=s(23812),r=s(89701),a=s(80583),c=s(4208),m=s(91384),M=s(1229),D=s(19724),I=s(58527),U=s(3457),V=s(54676),T=s(93662),N=s(52834),L=s(62141),E=s(96542);const g=H=>({hotkey:H}),B=[{path:"gassist-settings",component:(()=>{class H{constructor(re,ie,ve,ue,se){this.appBarService=re,this.navigationService=ie,this.loggingService=ve,this.route=ue,this.aiChatboxService=se,this.destroy$=new a.B7,this.isModeRotaryUsed=!1,this.globalToggleChangedValue=D.T8.UNDEFINED,this.logger=this.loggingService.getLogger("GAssistSettingsMenuComponent"),this.appBarService.setAll({title:"gAssist.projectGAssist",navButtonArrow:!0,icons:[{id:"closeIgo",icon:"close",tooltip:"tooltips.Close"}]}),this.appBarService.actionClicked$.pipe((0,c.Q)(this.destroy$)).subscribe(Z=>{"nav"===Z&&this.onBackClicked()})}ngOnInit(){this.gAssistGlobalToggle=this.aiChatboxService.getGAssistToggleState(),this.aiChatBoxHotkey=this.route.snapshot.params.gAssistHotkey,this.launchTrigger=this.route.snapshot.params.trigger,this.aiChatBoxModeRotaryOptions=[M.V4L.Interactive,M.V4L.NonInteractive,M.V4L.Hidden],this.activeAiChatboxMode=this.aiChatBoxModeRotaryOptions.indexOf(this.aiChatboxService.getAiChatBoxMode()),this.registerGAssistToggleChanges(),this.registerAiChatBoxModeChanges(),this.registerEscapeEvent()}gAssistGlobalToggleChanged(re){this.logger.info("ogAssistGlobalToggleChanged: ",re.checked),this.aiChatboxService.toggleGAssistFeature(re.checked),this.globalToggleChangedValue=re.checked?D.T8.TRUE:D.T8.FALSE}aiChatBoxModeRotaryOptionsChanged(re){this.logger.info("aiChatBoxModeRotaryOptionsChanged:",re);const ie=this.aiChatBoxModeRotaryOptions[re];this.aiChatboxService.setAiChatBoxMode(ie),ie!==M.V4L.Hidden&&!this.aiChatboxService.getAiChatBoxVisibility()&&this.aiChatboxService.launchAiChatbox(D.gv.UsingUI),this.isModeRotaryUsed=!0}ngOnDestroy(){this.logger.info("ngOnDestroy"),this.aiChatboxService.sendSettingsMenuSessionTelemetry({triggerMode:this.launchTrigger,globalToggleChangedValue:this.globalToggleChangedValue,isModeRotaryUsed:this.isModeRotaryUsed?D.T8.TRUE:D.T8.FALSE}),this.destroy$.next(!0)}registerEscapeEvent(){this.navigationService.escapeEvent().pipe((0,c.Q)(this.destroy$)).subscribe(()=>{this.onBackClicked()})}registerAiChatBoxModeChanges(){this.aiChatboxService.listenAiChatBoxModeChanges().pipe((0,c.Q)(this.destroy$),(0,m.M)(re=>{this.aiChatBoxModeRotaryOptions[this.activeAiChatboxMode]!==re&&(this.activeAiChatboxMode=this.aiChatBoxModeRotaryOptions.indexOf(re))})).subscribe()}registerGAssistToggleChanges(){this.aiChatboxService.listenToGAssistToggleChanges().pipe((0,c.Q)(this.destroy$),(0,m.M)(re=>{this.gAssistGlobalToggle=re})).subscribe()}onBackClicked(){this.logger.info("Back clicked"),this.navigationService.navigate(["../main-menu"],{relativeTo:this.route.parent,skipLocationChange:!0},M.jby.mainMenu)}static{this.\u0275fac=function(ie){return new(ie||H)(I.rXU(M.gZv),I.rXU(M.o_p),I.rXU(O.J6),I.rXU(v.nX),I.rXU(M.Dli))}}static{this.\u0275cmp=I.VBU({type:H,selectors:[["igo-gassist-settings-menu"]],decls:12,vars:13,consts:[["fxLayout","column","fxFlex","grow"],["fxLayout","column",1,"gassist-toggle"],["fxFlex","none","fxLayout","row","fxLayoutAlign","start start"],["fxFlex","grow",1,"font-body1","font-color-primary"],["fxFlex","none",3,"ngModelChange","change","ngModel"],[1,"font-body2","font-color-tertiary"],[1,"gassist-mode"],["title","gAssist.mode","subTitle","gAssist.openCloseInteractiveMode",3,"selectionChanged","disabled","input","initialState","subTitleArg"]],template:function(ie,ve){1&ie&&(I.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),I.EFF(4),I.nI1(5,"translate"),I.k0s(),I.j41(6,"mat-slide-toggle",4),I.mxI("ngModelChange",function(se){return I.DH7(ve.gAssistGlobalToggle,se)||(ve.gAssistGlobalToggle=se),se}),I.bIt("change",function(se){return ve.gAssistGlobalToggleChanged(se)}),I.k0s()(),I.j41(7,"div",5),I.EFF(8),I.nI1(9,"translate"),I.k0s()(),I.j41(10,"div",6)(11,"nv-rotary",7),I.bIt("selectionChanged",function(se){return ve.aiChatBoxModeRotaryOptionsChanged(se)}),I.k0s()()()),2&ie&&(I.R7$(4),I.SpI(" ",I.bMT(5,7,"gAssist.projectGAssist")," "),I.R7$(2),I.R50("ngModel",ve.gAssistGlobalToggle),I.R7$(2),I.SpI(" ",I.bMT(9,9,"gAssist.projectGAssistDescription")," "),I.R7$(3),I.Y8G("disabled",!ve.gAssistGlobalToggle)("input",ve.aiChatBoxModeRotaryOptions)("initialState",ve.activeAiChatboxMode)("subTitleArg",I.eq3(11,g,ve.aiChatBoxHotkey)))},dependencies:[U.DJ,U.sA,U.UI,l.BC,l.vS,V.tG,T.X,N.I,L.P2,E.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}[_nghost-%COMP%]{padding:16px 0}.gassist-toggle[_ngcontent-%COMP%]{padding:14px 16px}.isLtr[_nghost-%COMP%] .gassist-mode[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .gassist-mode[_ngcontent-%COMP%]{padding:10px 4px 20px 16px}html[dir=ltr][_ngcontent-%COMP%] .gassist-mode[_ngcontent-%COMP%]{--dummy: 0;padding:10px 4px 20px 16px}.isRtl[_nghost-%COMP%] .gassist-mode[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .gassist-mode[_ngcontent-%COMP%]{padding:10px 16px 20px 4px}html[dir=rtl][_ngcontent-%COMP%] .gassist-mode[_ngcontent-%COMP%]{--dummy: 0;padding:10px 16px 20px 4px}"]})}}return H})(),data:{level:1}}];let X=(()=>{class H{static{this.\u0275fac=function(ie){return new(ie||H)}}static{this.\u0275mod=I.$C({type:H})}static{this.\u0275inj=I.G2t({imports:[n.MD,S.YF,(0,O.BU)(),O._N,l.YN,P.bm,i.G,r.g,f.FR,_.i,d.ad,y.yK,v.iI.forChild(B)]})}}return H})()},13973:(Bt,z,s)=>{"use strict";s.d(z,{t5:()=>Wt,nA:()=>hn,rH:()=>On,zn:()=>fi,B8:()=>pr,Xb:()=>Ii,yE:()=>ui,E_:()=>Lt,VI:()=>Zt,NU:()=>fn,W5:()=>Pt,iZ:()=>gn,oT:()=>jt,Jg:()=>zr,Rb:()=>Fi,to:()=>yt,fY:()=>Gt,om:()=>et,Uo:()=>St,cv:()=>Ht,KL:()=>Je,IM:()=>be,BJ:()=>Ae,Il:()=>qe,uY:()=>bn});const i=1024,r=2048,a=4096,c=8192,m=16384,M=32768,D=65536,I=131072,U=262144,V=524288,T=1048576,N=4194304,L=8388608,E=16777216,g=33554432,R=67108864,B=134217728,X=268435456,Be=1,Xe=2,He=4,Me=8,Q=16;function $(Cn){0!==Cn.text.length&&(console.assert(Cn.len>0,"Never adding text to root"),Cn.renderer.add_text(Cn.renderer.data,Cn.text),Cn.text="")}function le(Cn){console.assert(Cn.len>0,"No nodes to end"),Cn.len-=1,Cn.token=Cn.tokens[Cn.len],Cn.renderer.end_token(Cn.renderer.data)}function Pe(Cn,pn){Cn.len+=1,Cn.tokens[Cn.len]=pn,Cn.token=pn,Cn.renderer.add_token(Cn.renderer.data,pn)}function Fe(Cn,pn,ti){for(;ti<=Cn.len;){if(Cn.tokens[ti]&pn)return ti;ti+=1}return-1}function At(Cn,pn){for(;Cn.len>pn;)le(Cn)}function Le(Cn,pn){let ti=-1,pi=-1;for(let cn=Cn.blockquote_idx+1;cn<=Cn.len;cn+=1)if(Cn.tokens[cn]&g){if(Cn.tokens[cn-1]&pn&&(ti=cn-1),Cn.indent_len<Cn.spaces[cn]){pi=-1;break}pi=cn}-1===pi?-1===ti?(At(Cn,Cn.blockquote_idx),Pe(Cn,pn)):At(Cn,ti):(At(Cn,pi),Pe(Cn,pn))}function Et(Cn,pn){Pe(Cn,g),Cn.spaces[Cn.len]=Cn.indent_len+pn,$e(Cn),Cn.token=X}function $e(Cn){Cn.indent="",Cn.indent_len=0,Cn.pending=""}function Ze(Cn){switch(Cn){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return!0;default:return!1}}function Qe(Cn,pn){for(const ti of pn){const pi=Cn.pending+ti;switch(Cn.token){case T:case 1:case V:switch(console.assert(0===Cn.text.length,"Root should not have any text"),Cn.pending[0]){case void 0:Cn.pending=ti;continue;case" ":Cn.pending=ti,Cn.indent+=" ",Cn.indent_len+=1;continue;case"\t":Cn.pending=ti,Cn.indent+="\t",Cn.indent_len+=4;continue;case"\n":At(Cn,Cn.blockquote_idx),Cn.blockquote_idx=0,Cn.backticks_count=0,Cn.pending=ti;continue;case"#":switch(ti){case"#":if(Cn.pending.length<6){Cn.pending=pi;continue}break;case" ":switch(Cn.pending.length){case 1:Pe(Cn,4),$e(Cn);continue;case 2:Pe(Cn,8),$e(Cn);continue;case 3:Pe(Cn,16),$e(Cn);continue;case 4:Pe(Cn,32),$e(Cn);continue;case 5:Pe(Cn,64),$e(Cn);continue;case 6:Pe(Cn,128),$e(Cn);continue}console.assert(!1,"Should not reach here")}break;case">":{const An=Fe(Cn,V,Cn.blockquote_idx+1);-1===An?(At(Cn,Cn.blockquote_idx),Cn.blockquote_idx+=1,Cn.backticks_count=0,Pe(Cn,V)):Cn.blockquote_idx=An,$e(Cn),Cn.pending=ti;continue}case"-":case"*":case"_":if(0===Cn.hr_chars&&(console.assert(1===Cn.pending.length,"Pending should be one character"),Cn.hr_chars=1,Cn.hr_char=Cn.pending),Cn.hr_chars>0){switch(ti){case Cn.hr_char:Cn.hr_chars+=1,Cn.pending=pi;continue;case" ":Cn.pending=pi;continue;case"\n":if(Cn.hr_chars<3)break;Cn.renderer.add_token(Cn.renderer.data,N),Cn.renderer.end_token(Cn.renderer.data),Cn.pending="",Cn.hr_chars=0;continue}Cn.hr_chars=0}if("_"!==Cn.pending[0]&&" "===Cn.pending[1]){Le(Cn,L),Et(Cn,2),Qe(Cn,pi.slice(2));continue}break;case"`":if(Cn.pending.length<3){if("`"===ti){Cn.pending=pi,Cn.backticks_count=pi.length;continue}Cn.backticks_count=0;break}switch(ti){case"`":Cn.pending.length===Cn.backticks_count?(Cn.pending=pi,Cn.backticks_count=pi.length):(Pe(Cn,2),$e(Cn),Cn.backticks_count=0,Qe(Cn,pi));continue;case"\n":Pe(Cn,512),Cn.pending.length>Cn.backticks_count&&Cn.renderer.set_attr(Cn.renderer.data,He,Cn.pending.slice(Cn.backticks_count)),$e(Cn);continue;default:Cn.pending=pi;continue}case"+":if(" "!==ti)break;Le(Cn,L),Et(Cn,2);continue;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":if("."===Cn.pending[Cn.pending.length-1]){if(" "!==ti)break;Le(Cn,E),"1."!==Cn.pending&&Cn.renderer.set_attr(Cn.renderer.data,Q,Cn.pending.slice(0,-1)),Et(Cn,Cn.pending.length+1);continue}{const An=ti.charCodeAt(0);if(46===An||Ze(An)){Cn.pending=pi;continue}}}let cn=pi;if(Cn.token&T)Cn.token=Cn.tokens[Cn.len],Cn.renderer.add_token(Cn.renderer.data,T),Cn.renderer.end_token(Cn.renderer.data);else if(Cn.indent_len>=4){let An=0;for(;An<4;An+=1)if("\t"===Cn.indent[An]){An+=1;break}cn=Cn.indent.slice(An)+pi,Pe(Cn,256)}else Pe(Cn,2);$e(Cn),Qe(Cn,cn);continue;case 256:switch(pi){case"\n ":case"\n \t":case"\n \t":case"\n \t":case"\n\t":Cn.text+="\n",Cn.pending="";continue;case"\n":case"\n ":case"\n ":case"\n ":Cn.pending=pi;continue;default:0!==Cn.pending.length?($(Cn),le(Cn),Cn.pending=ti):Cn.text+=ti;continue}case 512:switch(ti){case"`":pi.length===Cn.backticks_count+Cn.code_fence_body?($(Cn),le(Cn),Cn.pending="",Cn.backticks_count=0,Cn.code_fence_body=0):Cn.pending=pi;continue;case"\n":Cn.text+=Cn.pending,Cn.pending=ti,Cn.code_fence_body=1;continue;default:Cn.text+=pi,Cn.pending="",Cn.code_fence_body=1;continue}case i:switch(ti){case"`":pi.length===Cn.backticks_count+ +(" "===Cn.pending[0])?($(Cn),le(Cn),Cn.pending="",Cn.backticks_count=0):Cn.pending=pi;continue;case"\n":Cn.text+=Cn.pending,Cn.pending="",Cn.token=T,Cn.blockquote_idx=0,$(Cn);continue;case" ":Cn.text+=Cn.pending,Cn.pending=ti;continue;default:Cn.text+=pi,Cn.pending="";continue}case X:switch(Cn.pending.length){case 0:if("["!==ti)break;Cn.pending=pi;continue;case 1:if(" "!==ti&&"x"!==ti)break;Cn.pending=pi;continue;case 2:if("]"!==ti)break;Cn.pending=pi;continue;case 3:if(" "!==ti)break;Cn.renderer.add_token(Cn.renderer.data,R),"x"===Cn.pending[1]&&Cn.renderer.set_attr(Cn.renderer.data,Me,""),Cn.renderer.end_token(Cn.renderer.data),Cn.pending=" ";continue}Cn.token=Cn.tokens[Cn.len],Cn.pending="",Qe(Cn,pi);continue;case c:case m:{let An="*",Jn=r;if(Cn.token===m&&(An="_",Jn=a),An===Cn.pending){if($(Cn),An===ti){le(Cn),Cn.pending="";continue}Pe(Cn,Jn),Cn.pending=ti;continue}break}case r:case a:{let An="*",Jn=c;switch(Cn.token===a&&(An="_",Jn=m),Cn.pending){case An:An===ti?Cn.tokens[Cn.len-1]===Jn?Cn.pending=pi:($(Cn),Pe(Cn,Jn),Cn.pending=""):($(Cn),le(Cn),Cn.pending=ti);continue;case An+An:const hi=Cn.token;$(Cn),le(Cn),le(Cn),An!==ti?(Pe(Cn,hi),Cn.pending=ti):Cn.pending="";continue}break}case M:if("~~"===pi){$(Cn),le(Cn),Cn.pending="";continue}break;case B:"http://"===pi||"https://"===pi?($(Cn),Pe(Cn,I),Cn.pending=pi,Cn.text=pi):"http:/"[Cn.pending.length]===ti||"https:/"[Cn.pending.length]===ti?Cn.pending=pi:(Cn.token=Cn.tokens[Cn.len],Qe(Cn,ti));continue;case D:case U:if("]"===Cn.pending){$(Cn),"("===ti?Cn.pending=pi:(le(Cn),Cn.pending=ti);continue}if("]"===Cn.pending[0]&&"("===Cn.pending[1]){if(")"===ti){const An=Cn.token===D?Be:Xe,Jn=Cn.pending.slice(2);Cn.renderer.set_attr(Cn.renderer.data,An,Jn),le(Cn),Cn.pending=""}else Cn.pending+=ti;continue}break;case I:" "===ti||"\n"===ti||"\\"===ti?(Cn.renderer.set_attr(Cn.renderer.data,Be,Cn.pending),$(Cn),le(Cn),Cn.pending=ti):(Cn.text+=ti,Cn.pending=pi);continue}switch(Cn.pending[0]){case"\\":if("\n"===ti)Cn.pending=ti;else{const cn=ti.charCodeAt(0);Cn.pending="",Cn.text+=Ze(cn)||cn>=65&&cn<=90||cn>=97&&cn<=122?pi:ti}continue;case"\n":$(Cn),Cn.token=T,Cn.blockquote_idx=0,Cn.pending=ti;continue;case"`":if(Cn.token&U)break;"`"===ti?(Cn.backticks_count+=1,Cn.pending=pi):(Cn.backticks_count+=1,$(Cn),Pe(Cn,i),Cn.text=" "===ti||"\n"===ti?"":ti,Cn.pending="");continue;case"_":case"*":{if(Cn.token&U)break;let cn=r,An=c;const Jn=Cn.pending[0];if("_"===Jn&&(cn=a,An=m),1===Cn.pending.length){if(Jn===ti){Cn.pending=pi;continue}if(" "!==ti&&"\n"!==ti){$(Cn),Pe(Cn,cn),Cn.pending=ti;continue}}else{if(Jn===ti){$(Cn),Pe(Cn,An),Pe(Cn,cn),Cn.pending="";continue}if(" "!==ti&&"\n"!==ti){$(Cn),Pe(Cn,An),Cn.pending=ti;continue}}break}case"~":if(Cn.token&(U|M))break;if("~"===Cn.pending){if("~"===ti){Cn.pending=pi;continue}}else if(" "!==ti&&"\n"!==ti){$(Cn),Pe(Cn,M),Cn.pending=ti;continue}break;case"[":if(!(Cn.token&(U|D))&&"]"!==ti){$(Cn),Pe(Cn,D),Cn.pending=ti;continue}break;case"!":if(!(Cn.token&U)&&"["===ti){$(Cn),Pe(Cn,U),Cn.pending="";continue}break;case" ":if(" "===ti)continue}Cn.token&(U|D)||"h"!==ti||" "!==Cn.pending&&""!==Cn.pending?(Cn.text+=Cn.pending,Cn.pending=ti):(Cn.text+=Cn.pending,Cn.pending=ti,Cn.token=B)}$(Cn)}function nt(Cn,pn){let ti,pi;switch(pn){case 1:return;case V:ti=pi=document.createElement("blockquote");break;case 2:ti=pi=document.createElement("p");break;case T:ti=pi=document.createElement("br");break;case N:ti=pi=document.createElement("hr");break;case 4:ti=pi=document.createElement("h1");break;case 8:ti=pi=document.createElement("h2");break;case 16:ti=pi=document.createElement("h3");break;case 32:ti=pi=document.createElement("h4");break;case 64:ti=pi=document.createElement("h5");break;case 128:ti=pi=document.createElement("h6");break;case r:case a:ti=pi=document.createElement("em");break;case c:case m:ti=pi=document.createElement("strong");break;case M:ti=pi=document.createElement("s");break;case i:ti=pi=document.createElement("code");break;case I:case D:ti=pi=document.createElement("a");break;case U:ti=pi=document.createElement("img");break;case L:ti=pi=document.createElement("ul");break;case E:ti=pi=document.createElement("ol");break;case g:ti=pi=document.createElement("li");break;case R:const cn=document.createElement("input");cn.type="checkbox",cn.disabled=!0,ti=pi=cn;break;case 256:case 512:ti=document.createElement("pre"),pi=document.createElement("code"),ti.appendChild(pi)}Cn.nodes[Cn.index].appendChild(ti),Cn.index+=1,Cn.nodes[Cn.index]=pi}function Ot(Cn){Cn.index-=1}function at(Cn,pn){Cn.nodes[Cn.index].appendChild(document.createTextNode(pn))}function It(Cn,pn,ti){Cn.nodes[Cn.index].setAttribute(function me(Cn){switch(Cn){case Be:return"href";case Xe:return"src";case He:return"lang";case Me:return"checked";case Q:return"start"}}(pn),ti)}var Xt=s(20924),Ht=Xt.Or.Nvapp.Rise.ContentType1,Je=Xt.Or.Nvapp.Rise.ContentType;const et="INSTALLING",St="READY",Gt="ERROR",yt="DOWNLOAD REQUIRED",Wt="/clear",be="What is DLSS 4?",Ae="Tell me about my system",qe="Chart my CPU and GPU utilization",Lt="what is nvidia app",Zt="/game_launch_info",fn=580.5,hn="DummyRequest",On=3e4,fi="Sorry, that didn't work.",Fi=["hey gpu","hey system","hey system-assist","hey system assist","/sa"],bn=(Cn,pn,ti=!1)=>{const pi=(Cn=>(Cn||"").split("%%"))(Cn=Cn.replace(/(\r\n)+/g,"\r\n"));let cn="";pi.forEach((Jn,hi)=>{const xi=document.createElement("div"),xn=function Ve(Cn){return{add_token:nt,end_token:Ot,add_text:at,set_attr:It,data:{nodes:[Cn,,,,,],index:0}}}(xi),Yn=function G(Cn){const pn=new Uint32Array(24);return pn[0]=1,{renderer:Cn,text:"",pending:"",tokens:pn,len:0,token:1,code_fence_body:0,blockquote_idx:0,hr_char:"",hr_chars:0,backticks_count:0,spaces:new Uint8Array(24),indent:"",indent_len:0}}(xn);if(Qe(Yn,Jn),(ti||hi!==pi.length-1)&&function W(Cn){Cn.pending.length>0&&Qe(Cn,"\n")}(Yn),hi%2!=0){const Gn=xi.querySelector("p");if(Gn){const Ci=document.createElement("summary");Ci.textContent=Gn.textContent.replace(":",""),Ci.style.color="var(--colors-brand)",xi.firstChild.replaceWith(Ci),Array.from(xi.querySelectorAll("a")).forEach(ln=>{ln.textContent=ln.textContent.replace("http://","").replace("https://","")}),cn=`${cn}<details>${xi.innerHTML}</details>`}}else cn=`${cn}${xi.innerHTML}`});const An=document.createElement("div");return An.innerHTML=cn,Array.from(An.querySelectorAll("ol")).forEach(Jn=>{Jn.setAttribute("start","1")}),"RiseService"===pn&&Array.from(An.querySelectorAll("a")).forEach(Jn=>{const hi=document.createElement("span");hi.textContent=Jn.textContent,Jn.replaceWith(hi)}),An.innerHTML.replace("<img ","<img onerror='this.style.display = \"none\"' ")},Pt="Base Profile";var jt=function(Cn){return Cn.BATTERY_BOOST="BatteryBoost",Cn.WHISPER_MODE="WhisperMode",Cn.OPTIMUS_MODE="optimus_mode",Cn}(jt||{}),gn=Xt.Or.Nvapp.Nvcpldisplayplugin.MuxState,ui=Xt.Or.Nvapp.Nvcplplugin.FanVolume,Ii=function(Cn){return Cn.ON="ON",Cn.OFF="OFF",Cn.UNSUPPORTED="UNSUPPORTED",Cn}(Ii||{}),pr=function(Cn){return Cn.QUIETER="QUIETER",Cn.QUIET="QUIET",Cn.BALANCED="BALANCED",Cn}(pr||{}),zr=function(Cn){return Cn.AUTO="AUTO",Cn.NVIDIA_GPU="NVIDIA_GPU",Cn.OPTIMUS="OPTIMUS",Cn.UNSUPPORTED="UNSUPPORTED",Cn}(zr||{})},47629:(Bt,z,s)=>{"use strict";s.r(z),s.d(z,{GalleryModule:()=>We});var n=s(61142),l=s(14354),d=s(51006),v=s(17617),S=s(99469),y=s(23812),f=s(80583),O=s(43848),P=s(19392),_=s(35146),i=s(4208),r=s(75707),a=s(83915),c=s(91384),m=s(8619),M=s(25577),D=s(26875),I=s(20924),U=s(1229),V=s(19724),T=s(58527),N=s(59002),L=s(27211),E=s(43664),g=s(83486),R=s(52834),B=s(15332),X=s(67904),H=s(3457),J=s(28139),re=s(56106),ie=s(47973),ve=s(29370),ue=s(26945),se=s(4418),Z=s(51635),Se=s(54676),Ce=s(98504),Be=s(96542);const Xe=["grid"],He=["accordion"],Me=xe=>({arg:xe}),Q=(xe,lt)=>({"custom-checkbox-checked":xe,"custom-checkbox-unchecked":lt}),A=xe=>[xe];function me(xe,lt){1&xe&&(T.j41(0,"div",10)(1,"div",11)(2,"span",12),T.EFF(3),T.nI1(4,"translate"),T.k0s()(),T.j41(5,"div",11)(6,"span",12),T.EFF(7),T.nI1(8,"translate"),T.k0s()()()),2&xe&&(T.R7$(3),T.SpI(" ",T.bMT(4,2,"summaryDialog.ReviewDescription")," "),T.R7$(4),T.SpI(" ",T.bMT(8,4,"summaryDialog.ReviewNote")," "))}function ne(xe,lt){if(1&xe){const ft=T.RV6();T.j41(0,"nv-dropdown",22),T.bIt("selectionChanged",function(Xt){T.eBV(ft);const Ht=T.XpG(2);return T.Njj(Ht.onDropdownChanged(Xt))}),T.k0s()}if(2&xe){const ft=T.XpG(2);T.Y8G("textFont16",!0)("isBackgroundColorReq",!1)("selection",ft.dropdownIndex)("disabled",ft.dropdownDisabled1||ft.lowDiskSpace)("input",ft.dropdownInput)}}function G(xe,lt){if(1&xe){const ft=T.RV6();T.j41(0,"div",11)(1,"span",23),T.EFF(2),T.nI1(3,"translate"),T.k0s(),T.j41(4,"button",24),T.bIt("click",function(){T.eBV(ft);const Xt=T.XpG(2);return T.Njj(Xt.onAllHighlightsSelected())}),T.nrm(5,"mat-icon",25),T.k0s()()}if(2&xe){const ft=T.XpG(2);T.R7$(2),T.SpI(" ",T.i5U(3,2,"summaryDialog.totalHighlights",T.eq3(5,Me,ft.totalHighlightCount()))," "),T.R7$(3),T.Y8G("ngClass",T.l_i(7,Q,ft.allHighlightsSelected,!ft.allHighlightsSelected))}}function W(xe,lt){1&xe&&T.nrm(0,"div",26)}function $(xe,lt){1&xe&&(T.j41(0,"mat-expansion-panel-header",27)(1,"div",28)(2,"div",29),T.EFF(3),T.nI1(4,"translate"),T.k0s(),T.j41(5,"div",30),T.nrm(6,"mat-icon",31),T.k0s()()()),2&xe&&(T.R7$(3),T.SpI(" ",T.bMT(4,1,"gallery.ViewSettings")," "))}function le(xe,lt){if(1&xe){const ft=T.RV6();T.j41(0,"button",34),T.bIt("click",function(){T.eBV(ft);const Xt=T.XpG().$implicit,Ht=T.XpG(2);return T.Njj(Ht.onMenuChanged(Xt))}),T.j41(1,"div",11)(2,"div",35),T.EFF(3),T.nI1(4,"translate"),T.k0s()()()}if(2&xe){const ft=T.XpG().$implicit;T.R7$(2),T.AVh("active",ft.active),T.R7$(),T.SpI(" ",T.i5U(4,3,ft.label,T.eq3(6,Me,ft.value))," ")}}function Pe(xe,lt){1&xe&&(T.j41(0,"button",42),T.nrm(1,"mat-icon",43),T.k0s())}function Fe(xe,lt){if(1&xe){const ft=T.RV6();T.qex(0),T.j41(1,"div",11)(2,"mat-checkbox",44),T.mxI("ngModelChange",function(Xt){const Ht=T.eBV(ft).$implicit;return T.DH7(Ht.enabled,Xt)||(Ht.enabled=Xt),T.Njj(Xt)}),T.bIt("change",function(){const Xt=T.eBV(ft).$implicit,Ht=T.XpG(4);return T.Njj(Ht.onHighlightFilterChanged(Xt))}),T.k0s(),T.j41(3,"span",45),T.bIt("click",function(){const Xt=T.eBV(ft).$implicit,Ht=T.XpG(4);return T.Njj(Ht.onHighlightFilterClicked(Xt))}),T.EFF(4),T.k0s()(),T.bVm()}if(2&xe){const ft=lt.$implicit;T.R7$(2),T.R50("ngModel",ft.enabled),T.R7$(2),T.JRh(ft.displayName+" ("+ft.count+")")}}function At(xe,lt){if(1&xe){const ft=T.RV6();T.j41(0,"mat-expansion-panel",36)(1,"mat-expansion-panel-header",37)(2,"div",28)(3,"button",38),T.bIt("click",function(Xt){T.eBV(ft);const Ht=T.XpG().$implicit,Je=T.XpG(2);return Xt.stopPropagation(),T.Njj(Je.onMenuChanged(Ht))}),T.j41(4,"div",39),T.EFF(5),T.nI1(6,"translate"),T.k0s()(),T.DNE(7,Pe,2,0,"button",40),T.k0s()(),T.j41(8,"div",41),T.DNE(9,Fe,5,2,"ng-container",20),T.k0s()()}if(2&xe){const ft=T.XpG().$implicit,ht=T.XpG(2);T.R7$(4),T.AVh("active",ft.active),T.R7$(),T.SpI(" ",T.i5U(6,5,ft.label,T.eq3(8,Me,ft.value))," "),T.R7$(2),T.Y8G("ngIf",0!==ht.highlightsCount),T.R7$(2),T.Y8G("ngForOf",ft.children)}}function Le(xe,lt){if(1&xe&&(T.qex(0),T.DNE(1,le,5,8,"button",32)(2,At,10,10,"mat-expansion-panel",33),T.bVm()),2&xe){const ft=lt.$implicit;T.R7$(),T.Y8G("ngIf",!ft.children),T.R7$(),T.Y8G("ngIf",ft.children)}}function Et(xe,lt){if(1&xe){const ft=T.RV6();T.qex(0),T.DNE(1,ne,1,5,"nv-dropdown",13)(2,G,6,10,"div",14),T.j41(3,"mat-accordion",15),T.DNE(4,W,1,0,"div",16),T.j41(5,"mat-expansion-panel",17,2),T.bIt("opened",function(){T.eBV(ft);const Xt=T.XpG();return T.Njj(Xt.accordionOpen=!0)})("closed",function(){T.eBV(ft);const Xt=T.XpG();return T.Njj(Xt.accordionOpen=!1)}),T.DNE(7,$,7,3,"mat-expansion-panel-header",18),T.j41(8,"div",19),T.DNE(9,Le,3,2,"ng-container",20),T.nrm(10,"div",21),T.k0s()()(),T.nrm(11,"nv-divider"),T.bVm()}if(2&xe){const ft=T.XpG();T.R7$(),T.Y8G("ngIf",!ft.highlightSummaryIsOpen||ft.highlightSummaryIsOpen&&!ft.isNvApp),T.R7$(),T.Y8G("ngIf",ft.highlightSummaryIsOpen&&ft.isNvApp),T.R7$(2),T.Y8G("ngif",ft.highlightSummaryIsOpen&&ft.isNvApp),T.R7$(),T.AVh("extra-bottom",ft.accordionOpen),T.Y8G("@.disabled",ft.delay)("disabled",ft.dropdownDisabled2||ft.lowDiskSpace),T.R7$(2),T.Y8G("ngIf",!ft.highlightSummaryIsOpen||ft.highlightSummaryIsOpen&&!ft.isNvApp),T.R7$(2),T.Y8G("ngForOf",ft.menuItems)}}function $e(xe,lt){1&xe&&T.nrm(0,"div")}function Ze(xe,lt){if(1&xe&&(T.j41(0,"div",46)(1,"div",47),T.EFF(2),T.nI1(3,"translate"),T.k0s()()),2&xe){const ft=T.XpG();T.R7$(2),T.JRh(T.i5U(3,1,ft.emptyContainerString,ft.emptyContainerParams))}}function Qe(xe,lt){if(1&xe){const ft=T.RV6();T.j41(0,"nv-gallery-item",50),T.bIt("click",function(){const Xt=T.eBV(ft).$implicit,Ht=T.XpG(2);return T.Njj(Ht.openFile(Xt))}),T.k0s()}if(2&xe){const ft=lt.$implicit,ht=lt.scroll,Xt=T.XpG(2);T.Y8G("item",ft)("scrolling",ht)("activeItem",Xt.galleryOpenItem)("thumbSize",Xt.thumbSize)("initialDelay",Xt.delay)}}function Ve(xe,lt){if(1&xe){const ft=T.RV6();T.j41(0,"div",51)(1,"div",52)(2,"button",53),T.bIt("click",function(){T.eBV(ft);const Xt=T.XpG(2);return T.Njj(Xt.onDeleteAllClicked())}),T.j41(3,"div",54),T.EFF(4),T.nI1(5,"translate"),T.k0s()(),T.j41(6,"button",55),T.bIt("click",function(){T.eBV(ft);const Xt=T.XpG(2);return T.Njj(Xt.saveSelectedItems())}),T.j41(7,"div",54),T.EFF(8),T.nI1(9,"translate"),T.k0s()()()()}if(2&xe){const ft=T.XpG(2);T.R7$(4),T.JRh(T.bMT(5,5,"summaryDialog.DiscardAll")),T.R7$(2),T.Y8G("ngClass",T.eq3(10,A,ft.selectedHighlightCount()?"snap-button":"snap-button-disabled")),T.R7$(),T.AVh("disabled-opacity",!ft.selectedHighlightCount()),T.R7$(),T.SpI(" ",T.i5U(9,7,"summaryDialog.SaveToGalleryOption",T.eq3(12,Me,ft.selectedHighlightCount()))," ")}}function nt(xe,lt){if(1&xe){const ft=T.RV6();T.j41(0,"nv-virtual-grid-container",48,3),T.bIt("multiSelectMode",function(Xt){T.eBV(ft);const Ht=T.XpG();return T.Njj(Ht.onMultiSelectMode(Xt))})("multiSelectList",function(Xt){T.eBV(ft);const Ht=T.XpG();return T.Njj(Ht.onMultiSelectList(Xt))}),T.mxI("selectedItemChange",function(Xt){T.eBV(ft);const Ht=T.XpG();return T.DH7(Ht.gallerySelection,Xt)||(Ht.gallerySelection=Xt),T.Njj(Xt)}),T.bIt("selectedItemChange",function(Xt){T.eBV(ft);const Ht=T.XpG();return T.Njj(Ht.selectedItemChanged(Xt))})("keydown",function(Xt){T.eBV(ft);const Ht=T.XpG();return T.Njj(Ht.openGalleryItem(Xt))}),T.DNE(2,Qe,1,5,"ng-template",null,4,T.C5r),T.k0s(),T.DNE(4,Ve,10,14,"div",49)}if(2&xe){const ft=T.sdS(3),ht=T.XpG();T.Y8G("items",ht.galleryItems),T.R50("selectedItem",ht.gallerySelection),T.Y8G("itemHeight",ht.thumbSize)("marginBottom",5)("itemWidth",ht.thumbSize)("marginRight",5)("template",ft)("topBottomPad",0),T.R7$(4),T.Y8G("ngIf",ht.highlightSummaryIsOpen&&ht.isNvApp)}}let Ot=(()=>{class xe{constructor(ft,ht,Xt,Ht,Je,tt,rt,et,St,Gt,yt,Wt,ke,be,Ae,qe,Lt){this.loggingService=ft,this.route=ht,this.osService=Xt,this.galleryService=Ht,this.bridgeService=Je,this.sdkService=tt,this.oscDisplayService=rt,this.cacheService=et,this.telemetry=St,this.navigationService=Gt,this.dialogHelper=yt,this.igoConfig=Wt,this.appBarService=ke,this.gfnInfoService=be,this.nvCameraService=Ae,this.featureSupportService=qe,this.telemetryIgo=Lt,this.destroy$=new f.B7,this.previewOpen=!1,this.initComplete=!1,this.accordionOpen=!1,this.lowDiskSpace=!1,this.originalItems=[],this.useItems=[],this.galleryItems=[],this.dropdownDisabled1=!1,this.dropdownDisabled2=!1,this.noEntriesYet=!1,this.emptyString="",this.emptyContainerVisible=!1,this.emptyContainerString="",this.emptyContainerParams={},this.emptyHideDropdown=!1,this.thumbSize=116,this.delay=!0,this.highlightsCount=0,this.currentDropdownSelection="",this.dropdownIndex=-1,this.addMenu=!0,this.menuItems=[],this.menuStrings=[],this.filters=["all","highlight","video","instantreplay","image"],this.telemetryFilters=[U.XyZ.none,U.XyZ.highlight,U.XyZ.video,U.XyZ.ir,U.XyZ.screenshot],this.activeFilter=this.filters[0],this.multiSelectMode=!1,this.multiSelectList=void 0,this.isNvApp=!1,this.openFromSdk=!1,this.recentHighlightsIndex=1,this.highlightsGame="",this.hlPending=!1,this.allHighlightsSelected=!1,this.highlightSummaryIsOpen=!1,this.isGalleryMenuExitAllowed=!0,this.currentDesktopMode="desktop",this.logger=this.loggingService.getLogger("Gallery"),this.highlightSummaryIsOpen=this.galleryService.highlightSummaryIsOpen,this.logger.info(" : highlightSummaryIsOpen : ",this.highlightSummaryIsOpen),this.isNvApp=this.featureSupportService.isNvApp()}ngOnInit(){this.dirSeparator=this.osService.getDirSeparator(),this.telemetryIgo.startGalleryAccess(U.UZ.root),this.galleryService.setGalleryThumbSize(this.thumbSize),this.cacheService.galleryActive(!0),this.handleView(),this.initializeFilters(),this.isGalleryMenuExitAllowed=this.galleryService.isGalleryMenuExitAllowed(),this.setAppBarInitial(),this.appBarService.actionClicked$.pipe((0,i.Q)(this.destroy$)).subscribe(ft=>{this.appBarClicked(ft)}),this.isGalleryMenuExitAllowed&&(this.backCallback$=this.navigationService.escapeEvent().subscribe(()=>{this.onBackClicked()})),this.galleryService.filesSelectedDataChangeListener.pipe((0,i.Q)(this.destroy$)).subscribe(()=>{this.handleView()}),this.galleryService.lowDiskSpaceEvent().pipe((0,i.Q)(this.destroy$)).subscribe(ft=>{this.lowDiskSpace=ft,this.logger.info("The disk space is low: ",ft),this.handleView()}),this.initializeView().pipe((0,i.Q)(this.destroy$)).subscribe(()=>{this.telemetryIgo.sendGalleryAccess(),this.delayedHighlightSubscription$=this.galleryService.listenForDelayedEvents().subscribe(ft=>{ft.hlEvent===U.pWC.HIGHLIGHT_COMPLETED&&(this.resetView(ft.args),this.processDelayedHighlight(ft.args))}),this.canceledHighlightSubscription$=this.galleryService.isHighlightCanceled().subscribe(ft=>{ft.hlEvent===U.pWC.HIGHLIGHT_COMPLETED&&this.processCanceledHighlight(ft.args)}),this.refreshGallerySubscription$=this.galleryService.refreshEvent().subscribe(ft=>{this.currentDropdownSelection===ft.folder&&(ft.filename?this.originalItems.findIndex(Xt=>Xt.fullFilename===ft.filename)>=0?this.reloadItems():this.checkForZeroEntryDropdown():this.reloadItems())}),this.initComplete=!0}),setTimeout(()=>this.delay=!1,300),this.galleryService.previewPaneEvent().pipe((0,i.Q)(this.destroy$)).subscribe(ft=>{this.previewEvent(ft)}),this.oscDisplayService.getCurrentDesktopMode().pipe((0,i.Q)(this.destroy$)).subscribe(ft=>{this.currentDesktopMode=ft}),this.highlightSummaryIsOpen=this.galleryService.highlightSummaryIsOpen}setAppBarInitial(){this.appBarService.setTitle(this.highlightSummaryIsOpen&&this.isNvApp?"summaryDialog.ReviewGameHighlights":"gallery.Gallery"),this.appBarService.setActive(!1),this.appBarService.setNavButtonArrow(),this.isGalleryMenuExitAllowed?this.appBarService.setIcons([{id:"closeIgo",icon:"close",tooltip:"tooltips.Close"}]):this.appBarService.clearIcons()}initializeFilters(){this.menuStrings=["filterMenu.ShowAll","filterMenu.Highlights","filterMenu.VideoRecordings","filterMenu.InstantReplay","filterMenu.Screenshots"],this.menuStrings.forEach(ft=>{this.menuItems.push({label:ft,value:0,active:!1,children:null})})}setupFilterList(){const ft=(0,D.cloneDeep)(this.galleryService.fileCounts);if(ft.highlights=0,this.openFromSdk&&(ft.total=0,ft.videos=0,ft.instantReplays=0,ft.images=0),this.useItems.forEach(ht=>{ft.highlights+="Highlight"===ht.file.subtype?1:0,this.openFromSdk&&(ft.total++,ft.videos+="Manual"===ht.file.subtype?1:0,ft.instantReplays+="InstantReplay"===ht.file.subtype?1:0,ft.images+="image"===ht.file.type?1:0)}),this.menuItems[0].value=ft.total,this.menuItems[1].value=ft.highlights,this.menuItems[2].value=ft.videos,this.menuItems[3].value=ft.instantReplays,this.menuItems[4].value=ft.images,ft.highlightBreakDown&&ft.highlightBreakDown.length){if(this.openFromSdk){const ht=this.galleryService.highlightsSummaryData.highlights;ft.highlightBreakDown.forEach(Xt=>{Xt.count=ht.filter(Ht=>""!==Ht.path&&Ht.highlightName===Xt.name).length})}this.menuItems[1].children=ft.highlightBreakDown}else this.menuItems[1].children=[];this.logger.info("File counts: ",ft),this.highlightsCount=ft.highlights,0!==ft.total&&!this.openFromSdk&&(1===this.galleryService.activeFilter&&0===ft.highlights||2===this.galleryService.activeFilter&&0===ft.videos||3===this.galleryService.activeFilter&&0===ft.instantReplays||4===this.galleryService.activeFilter&&0===ft.images)&&(this.menuItems[this.galleryService.activeFilter].active=!1,this.galleryService.activeFilter=0,this.activeFilter=this.filters[0],this.menuItems[0].active=!0)}initializeDropdown(ft){const ht=ft,Xt=ht.length;if(0===Xt)return this.dropdownDisabled1=this.dropdownDisabled2=!0,this.dropdownInput=["settings.NoGamesFound"],this.dropdownFolders=[""],this.noEntriesYet=!0,void this.handleView();const Ht=this.galleryService.topLevelCounts.slice();this.dropdownInput=[],this.dropdownFolders=[];for(let Je=0;Je<Xt;Je++){const tt=Ht.find(et=>et.folder===ht[Je]);let rt=tt?tt.totalCount:0;this.openFromSdk&&(rt=this.highlightsData.highlights.length,this.dropdownDisabled1=!0,this.dropdownDisabled2=!1),this.dropdownInput.push(`${ht[Je]} (${rt})`),this.dropdownFolders.push(ht[Je])}}getGameToUse(ft,ht,Xt){return""!==Xt?Xt:ht&&""!==ht?ht:ft}initializeView(){this.logger.info("Event Capture: Folders IN"),this.highlightSummaryIsOpen=this.galleryService.highlightSummaryIsOpen,this.isNvApp&&this.telemetry.startUIPerfEvent(V.CV.GalleryPopulateFolders);let ft=!1;if(this.route.snapshot.params.callbackData)try{const ht=JSON.parse(this.route.snapshot.params.callbackData);ht&&ht.openedFromSDK&&(ft=ht.openedFromSDK)}catch{}return this.highlightsData=this.galleryService.getHighlightsToUse(ft),this.galleryService.highlightSummaryIsOpen&&ft?(this.openFromSdk=!0,this.activeFilter=this.filters[this.recentHighlightsIndex],this.highlightsGame=this.highlightsData.profileName,this.menuItems[this.recentHighlightsIndex].active=!0):(this.activeFilter=this.filters[this.galleryService.activeFilter],this.menuItems[this.galleryService.activeFilter].active=!0),this.galleryService.getFolders().pipe((0,r.ZZ)(ht=>{const Xt=this.gfnInfoService.currentGameProfileName,Ht=this.nvCameraService.currentGameInfo?.drsProfileName?.replace(/[\\/:*?"<>|]/g," "),Je=this.galleryService.getLastUserSelectedFolder(),tt=this.openFromSdk||Xt||Ht,rt=this.getGameToUse(Xt,Ht,Je),et=this.openFromSdk?this.highlightsData.profileName:rt;let St=void 0!==ht.find(yt=>yt===et);this.openFromSdk&&!St&&(ht.push(et),ht.sort(),St=!0),this.initializeDropdown(ht);let Gt=tt&&St?et:this.galleryService.getWorkingFolder();return this.highlightSummaryIsOpen&&this.isNvApp&&(Gt=this.galleryService.getLastExitedGameDetails().drsProfileName),""===Gt?(0,O.of)([]):(this.currentDropdownSelection=Gt,this.dropdownIndex=this.dropdownFolders.indexOf(Gt),this.logger.info("Event Capture: Folders OUT"),this.isNvApp&&(this.telemetry.sendUIPerfEvent(this.galleryService.getCurrentGameDetails(),V.CV.GalleryPopulateFolders,ht.length,this.currentDesktopMode),this.telemetry.startUIPerfEvent(V.CV.GalleryPopulateFiles)),this.logger.info("Event Capture: "+this.currentDropdownSelection+" Thumbnails IN"),this.galleryService.showFolderContents(this.currentDropdownSelection))}),(0,a.T)(ht=>{this.processGalleryContent(ht),this.logger.info("Event Capture: "+this.currentDropdownSelection+" Thumbnails OUT");let Xt=this.galleryService.getCurrentFolderCount()?.total;return Xt||(Xt=0),this.isNvApp&&this.telemetry.sendUIPerfEvent(this.galleryService.getCurrentGameDetails(),V.CV.GalleryPopulateFiles,Xt,this.currentDesktopMode),!0}))}resetView(ft){this.initComplete&&!this.openFromSdk&&(this.emptyContainerVisible&&this.noEntriesYet?(this.emptyContainerVisible=!1,this.noEntriesYet=!1,this.dropdownDisabled1=this.dropdownDisabled2=!1,this.cacheService.flushDirectoryList(),this.initializeView().pipe((0,i.Q)(this.destroy$)).subscribe()):void 0===this.dropdownFolders.find(ht=>ht===ft.folder)?(this.logger.info("Folder not found...adding!"),this.galleryService.getFolders().pipe((0,i.Q)(this.destroy$)).subscribe(ht=>{this.initializeDropdown(ht)})):(this.logger.info("Folder found...updating count!"),this.fixMissingCounts(ft.folder)))}processGalleryContent(ft){this.hlPending=this.isHighlightInUGCPending(ft),this.checkForZeroEntryDropdown(),ft.length||this.hlPending?(this.emptyString=void 0,this.handleView(),this.originalItems=ft.slice(),this.preFilterData(!0)):this.setupFilterList()}isHighlightInUGCPending(ft){let ht=0;return ft&&ft.forEach(Xt=>{""===Xt.fullFilename&&ht++}),!!ht}handleView(){this.emptyContainerVisible=!!(this.lowDiskSpace||this.noEntriesYet||this.emptyString),this.emptyHideDropdown=!1,this.lowDiskSpace?(this.emptyContainerString="mainMenu.LowDiskSpace",this.emptyContainerParams={},this.emptyHideDropdown=!0):this.noEntriesYet?(this.emptyContainerString="gallery.NoEntriesYet",this.emptyContainerParams={},this.emptyHideDropdown=!0):this.emptyString&&(this.emptyContainerString=this.emptyString,this.emptyContainerParams={arg1:this.currentDropdownSelection})}checkForZeroEntryDropdown(){const ft=this.openFromSdk&&0!==this.galleryService.highlightsSummaryData.highlights.length,Xt=this.galleryService.topLevelCounts.slice().find(Je=>Je.folder===this.currentDropdownSelection);this.emptyString=Xt&&Xt.totalCount||this.hlPending||ft?void 0:"gallery.ZeroEntries",this.handleView()}preFilterData(ft){this.useItems=this.openFromSdk&&this.currentDropdownSelection===this.highlightsGame?this.originalItems.filter(Xt=>this.galleryService.highlightsSummaryData.highlights.find(Ht=>Xt.hlId===Ht.id)):this.originalItems.slice();const ht=(new Date).toISOString();this.useItems.forEach(Xt=>{""===Xt.date&&(Xt.date=ht)}),ft&&this.setupFilterList(),this.filterData()}filterData(){if(this.isNvApp&&this.highlightSummaryIsOpen){const ft=this.useItems.filter(ht=>ht.fullFilename.includes(this.galleryService.hlTempPath));this.useItems=ft}this.activeFilter===this.filters[0]?this.galleryItems=this.useItems:this.activeFilter===this.filters[1]?this.galleryItems=this.useItems.filter(ft=>{if("Highlight"===ft.file.subtype){if(this.menuItems[1].children&&ft.hlName){const ht=this.menuItems[1].children.find(Xt=>Xt.name===ft.hlName);if(ht)return ht.enabled}return!0}return!1}):this.activeFilter===this.filters[2]?this.galleryItems=this.useItems.filter(ft=>"Manual"===ft.file.subtype||"video"===ft.file.type&&"InstantReplay"!==ft.file.subtype&&"Manual"!==ft.file.subtype&&"Highlight"!==ft.file.subtype):this.activeFilter===this.filters[3]?this.galleryItems=this.useItems.filter(ft=>"InstantReplay"===ft.file.subtype):this.activeFilter===this.filters[4]&&(this.galleryItems=this.useItems.filter(ft=>ft.file.type===this.activeFilter)),this.multiSelectMode&&this.onCancelMultiSelectClicked(),this.gallerySelection&&this.galleryItems.findIndex(ft=>ft===this.gallerySelection)<0&&(this.gallerySelection=void 0)}ngOnDestroy(){this.dialogHelper.closeSnackBar(),this.update$&&this.update$.unsubscribe(),this.backCallback$&&this.backCallback$.unsubscribe(),this.centerPaneCallback$&&this.centerPaneCallback$.unsubscribe(),this.delayedHighlightSubscription$&&this.delayedHighlightSubscription$.unsubscribe(),this.canceledHighlightSubscription$&&this.canceledHighlightSubscription$.unsubscribe(),this.refreshGallerySubscription$&&this.refreshGallerySubscription$.unsubscribe(),this.destroy$.next(!0),this.destroy$.unsubscribe(),this.cacheService.galleryActive(!1),this.galleryService.setHighlightsSummaryOpen(!1)}onBackClicked(){setTimeout(()=>{this.logger.info("Back clicked"),this.navigationService.navigate(["../main-menu"],{relativeTo:this.route.parent,skipLocationChange:!0},U.jby.mainMenu)})}onOpenClicked(){if(this.logger.info("Open clicked"),!this.gallerySelection)return void this.logger.info("no selected item");let ft=this.gallerySelection.fullFilename;const ht=ft.lastIndexOf(this.dirSeparator);if(-1!==ht&&(ft=ft.slice(0,ht)),""!==ft){this.oscDisplayService.closeOSC();const Xt=this.bridgeService.executeCommand(I.Ts.Common.Applicationinfo.OpenDirectoryBrowser,{name:ft}).subscribe(()=>{Xt.unsubscribe()});this.telemetryIgo.sendGalleryOpenedFileLocation()}}arrayDeleteFile(ft,ht){const Xt=ht.indexOf(ft);Xt>=0&&ht.splice(Xt,1)}onRemoveClicked(){if(this.logger.info("Remove clicked"),!this.gallerySelection)return void this.logger.info("no selected item");let ft;ft=this.multiSelectMode?this.multiSelectList:[this.gallerySelection];const ht=this.multiSelectMode&&this.multiSelectList.length>1,tt={title:ht?"confirmation.confirmDeleteTitleMulti":"confirmation.confirmDeleteTitle",query:ht?"confirmation.confirmDeleteMulti":"confirmation.confirmDelete",queryParam:{arg1:ht?this.multiSelectList.length:"0"},action1:"confirmation.NotRightNow",action2:"confirmation.remove"};let rt=!1;const et=this.galleryItems.slice(),St=this.useItems.slice(),Gt=this.originalItems.slice(),yt=(0,D.cloneDeep)(this.menuItems),Wt=this.dropdownInput.slice(),ke=(0,D.cloneDeep)(this.galleryService.topLevelCounts),be=()=>{this.menuItems.forEach((Ae,qe)=>{Ae.value=yt[qe].value}),this.galleryService.topLevelCounts.forEach((Ae,qe)=>{Ae.totalCount=ke[qe].totalCount}),yt[1].value>0&&this.menuItems[1].children.forEach((Ae,qe)=>{Ae.count=yt[1].children[qe].count}),this.checkForZeroEntryDropdown(),setTimeout(()=>{this.originalItems=Gt,this.useItems=St,this.galleryItems=et,this.dropdownInput=Wt},0)};this.dialogHelper.openAlertDialog(tt).pipe((0,i.Q)(this.destroy$),(0,r.ZZ)(Ae=>Ae.afterClosed()),(0,c.M)(()=>{this.multiSelectMode&&this.onCancelMultiSelectClicked()}),(0,m.p)(Ae=>Ae===U.SFy.Action2),(0,c.M)(()=>this.closePreview()),(0,r.ZZ)(()=>(0,P.H)(ft)),(0,c.M)(Ae=>{if(this.arrayDeleteFile(Ae,this.galleryItems),this.arrayDeleteFile(Ae,this.useItems),this.arrayDeleteFile(Ae,this.originalItems),this.galleryService.topLevelCounts.slice().forEach(Lt=>{if(Ae.folder===Lt.folder){const Zt=this.dropdownFolders.indexOf(Lt.folder);let fn=0;this.openFromSdk?fn=this.galleryItems.length:(fn=Lt.totalCount||0,fn>0&&fn--),Lt.totalCount=fn,Zt>=0&&(this.dropdownInput[Zt]=`${Lt.folder} (${fn})`)}this.dropdownInput=this.dropdownInput.slice()}),this.menuItems[0].value--,Ae.file.subtype===I.Or.Common.Gallery.SubType.Highlight&&(this.menuItems[1].value--,Ae.hlName)){const Lt=this.menuItems[1].children.find(Zt=>Zt.name===Ae.hlName);Lt&&Lt.count--}(Ae.file.subtype===I.Or.Common.Gallery.SubType.Manual||Ae.file.type===I.Or.Common.Gallery.FileType.video&&Ae.file.subtype!==I.Or.Common.Gallery.SubType.InstantReplay&&Ae.file.subtype!==I.Or.Common.Gallery.SubType.Manual&&Ae.file.subtype!==I.Or.Common.Gallery.SubType.Highlight)&&this.menuItems[2].value--,Ae.file.subtype===I.Or.Common.Gallery.SubType.InstantReplay&&this.menuItems[3].value--,Ae.file.type===I.Or.Common.Gallery.FileType.image&&this.menuItems[4].value--}),(0,M.H)(),(0,c.M)(()=>this.checkForZeroEntryDropdown()),(0,c.M)(()=>this.galleryItems=this.galleryItems.slice()),(0,r.ZZ)(()=>this.galleryService.showDeleteSnackbar(ft)),(0,c.M)(Ae=>rt=Ae),(0,m.p)(Ae=>!0===Ae),(0,r.ZZ)(()=>this.galleryService.getCurrentDropdownCount(this.currentDropdownSelection)),(0,c.M)(()=>{this.galleryService.topLevelCounts.slice().forEach(qe=>{const Lt=this.dropdownFolders.indexOf(qe.folder);Lt>=0&&(this.dropdownInput[Lt]=`${qe.folder} (${this.openFromSdk?this.galleryItems.length:qe.totalCount||0})`)}),this.dropdownInput=this.dropdownInput.slice()})).subscribe(()=>{},()=>{rt||be()},()=>{rt||be()})}selectedItemChanged(ft){this.gallerySelection=ft,this.multiSelectMode||(this.galleryService.currentSelectedFilesData=[ft])}onDropdownChanged(ft){this.logger.info("Dropdown selection changed to: "+ft),this.closePreview(),this.dialogHelper.closeSnackBar(),this.dropdownIndex=ft,this.currentDropdownSelection=this.dropdownFolders[ft],this.galleryService.setLastUserSelectedFolder(this.currentDropdownSelection),this.reloadItems()}reloadItems(){this.logger.info("Event Capture: "+this.currentDropdownSelection+" Thumbnails IN"),this.telemetry.startUIPerfEvent(V.CV.GalleryPopulateFiles),this.telemetryIgo.startGalleryAccess(U.UZ.folder),this.update$&&this.update$.unsubscribe(),this.gallerySelection=void 0,this.originalItems=[],this.useItems=[],this.galleryItems=[],this.update$=this.galleryService.showFolderContents(this.currentDropdownSelection).subscribe(ft=>{this.processGalleryContent(ft),this.logger.info("Event Capture: "+this.currentDropdownSelection+" Thumbnails OUT"),this.fixMissingCounts(this.currentDropdownSelection),this.telemetryIgo.sendGalleryAccess()})}openFile(ft){!ft.fullFilename||this.multiSelectMode||(this.galleryService.currentFileData=this.gallerySelection,this.galleryOpenItem=this.gallerySelection,this.telemetryIgo.startGalleryAccess(U.UZ.content),this.previewOpen?this.telemetryIgo.sendGalleryFileAccess(ft):(this.centerPaneOpened(),this.galleryService.setPreviewCaller(U.jby.galleryMain),this.navigationService.navigate([{outlets:{centerPane:"center-view/preview"}}],{relativeTo:this.route,skipLocationChange:!0},"image"===ft.file.type?U.jby.galleryImagePreview:U.jby.galleryVideoPreview).then(()=>{this.telemetryIgo.sendGalleryFileAccess(ft)})))}centerPaneOpened(){this.previewOpen||(this.navigationService.openCenterPane(!0),this.previewOpen=!0,this.centerPaneCallback$=this.navigationService.centerPaneClosedEvent().subscribe(()=>{this.galleryOpenItem=void 0,this.previewOpen=!1,this.centerPaneCallback$.unsubscribe(),this.centerPaneCallback$=void 0}))}closePreview(){this.previewOpen?this.galleryService.closePreviewWindow(!0):this.logger.info("Ignoring close preview window request")}onMenuChanged(ft){this.dialogHelper.closeSnackBar(),this.logger.info("Menu changed to: ",ft),this.menuItems.forEach(Xt=>Xt.active=!1);const ht=this.menuItems.findIndex(Xt=>Xt===ft);ft.active=!0,this.openFromSdk||(this.galleryService.activeFilter=ht),this.activeFilter=this.filters[ht],this.preFilterData(!1),this.checkForZeroEntryDropdown(),this.telemetryIgo.sendGalleryFilterUsed(this.telemetryFilters[ht])}onHighlightFilterChanged(ft){this.dialogHelper.closeSnackBar(),this.preFilterData(!1),this.checkForZeroEntryDropdown()}onHighlightFilterClicked(ft){this.dialogHelper.closeSnackBar(),ft.enabled=!ft.enabled,this.preFilterData(!1)}openGalleryItem(ft){"Enter"===ft.key&&this.gallerySelection?this.openFile(this.gallerySelection):"Delete"===ft.key&&this.onRemoveClicked()}onMultiSelectMode(ft){this.multiSelectMode=ft,ft&&this.previewOpen&&this.closePreview()}onMultiSelectList(ft){this.multiSelectList=ft.slice(0),this.changeAppBarSelected(this.multiSelectList.length),this.galleryService.currentSelectedFilesData=this.multiSelectList,this.allHighlightsSelected=this.multiSelectList.length===this.totalHighlightCount()}onCancelMultiSelectClicked(){this.virtualGrid.cancelMultiSelect()}fixMissingCounts(ft){const ht=this.dropdownFolders.indexOf(ft);if(-1!==ht){const Xt=this.galleryService.getCurrentDropdownCount(ft).subscribe(Ht=>{this.openFromSdk&&(Ht=this.galleryItems.length),this.dropdownInput[ht]=`${ft} (${Ht})`,this.dropdownInput=this.dropdownInput.slice(),this.setupFilterList(),this.handleView(),Xt.unsubscribe()})}}processCanceledHighlight(ft){const ht=this.galleryItems.slice(),Xt=ht.findIndex(Ht=>Ht.hlId===ft.id);-1!==Xt?(this.logger.info("Canceled item: ",ht[Xt]),ht[Xt].cancel=!0,this.galleryItems=ht.slice()):this.logger.info("highlightUpdate could not find a match...skipping")}processDelayedHighlight(ft){const ht=this.galleryItems.findIndex(Xt=>Xt.hlId===ft.hlId);-1!==ht?(Object.assign(this.galleryItems[ht],ft),this.fixMissingCounts(this.galleryItems[ht].folder)):this.logger.info("highlightUpdate could not find a match...skipping")}appBarClicked(ft){this.dialogHelper.closeSnackBar(),setTimeout(()=>{"nav"===ft?this.multiSelectMode?this.onCancelMultiSelectClicked():this.onBackClicked():"delete"===ft&&this.onRemoveClicked()},0)}changeAppBarSelected(ft){0===ft?this.setAppBarInitial():ft>=1&&(this.appBarService.setActive(!0),this.appBarService.setNavButtonClose(),1===ft?this.appBarService.setTitle("gallery.OneSelected"):this.appBarService.setTitle("gallery.XSelected",{arg:ft}),this.appBarService.setIcons([{id:"delete",icon:"delete_forever",tooltip:"tooltips.Remove"}]))}previewEvent(ft){if(ft===U.Pev.DeleteFile)this.gallerySelection=this.galleryOpenItem,this.onRemoveClicked();else if(ft===U.Pev.BackNav||ft===U.Pev.ForwardNav){let ht=this.galleryItems.indexOf(this.galleryOpenItem);if(ht<0)return;ft===U.Pev.BackNav?ht-=1:ht+=1,ht=ht>=this.galleryItems.length?0:ht<0?this.galleryItems.length-1:ht,this.gallerySelection=this.galleryItems[ht],this.openFile(this.gallerySelection)}}saveSelectedItems(){this.multiSelectList&&(this.multiSelectList.forEach(ft=>{const ht=ft.fullFilename;this.galleryService.moveFiles(ht,this.galleryService.galleryPath+ft.folder+"\\"+ft.file.name).subscribe(Ht=>{this.galleryService.cleanupLocalHighlightsListAfterDelete(ht)})}),this.sendHLSavedNotification()),this.galleryService.getCurrentGameDetails||this.onDeleteAllClicked()}onDeleteAllClicked(){const ft=this.galleryService.getHighlightsTempPath(),ht=[],Xt=[];this.galleryService.getFolderListing(ft).pipe((0,r.ZZ)(Ht=>(Ht.files.forEach(tt=>{ht.push((0,O.of)(tt.name))}),(0,_.yU)(...ht))),(0,r.ZZ)(Ht=>(Ht.forEach(Je=>{Xt.push(this.galleryService.removeItem(ft+this.galleryService.folderPathSeparator+Je,!0))}),(0,_.yU)(...Xt))),(0,c.M)(()=>this.logger.info("All temp highlights deleted"))).subscribe(),this.onDialogClosed()}sendHLSavedNotification(){this.galleryService.sendHighlightsSavedNotification(this.selectedHighlightCount())}onAllHighlightsSelected(){this.allHighlightsSelected=!this.allHighlightsSelected,this.virtualGrid.selectAllItems(this.allHighlightsSelected)}onDialogClosed(){this.logger.info("Dialog closed"),this.galleryService.highlightSummaryIsOpen=!1,this.highlightSummaryIsOpen=!1,this.oscDisplayService.closeOSC()}selectedHighlightCount(){return this.multiSelectList?this.multiSelectList.length:0}totalHighlightCount(){return this.galleryItems?this.galleryItems.length:0}static{this.\u0275fac=function(ht){return new(ht||xe)(T.rXU(S.J6),T.rXU(l.nX),T.rXU(U.aTF),T.rXU(U.AFS),T.rXU(S.NZ),T.rXU(U.P15),T.rXU(U.Bqk),T.rXU(U._Cw),T.rXU(U.xRl),T.rXU(U.o_p),T.rXU(U.eo6),T.rXU(U.k$F),T.rXU(U.gZv),T.rXU(N.x_),T.rXU(U.h8x),T.rXU(U.Rvq),T.rXU(L.S))}}static{this.\u0275cmp=T.VBU({type:xe,selectors:[["igo-gallery"]],viewQuery:function(ht,Xt){if(1&ht&&(T.GBs(Xe,5),T.GBs(He,5)),2&ht){let Ht;T.mGM(Ht=T.lsd())&&(Xt.virtualGrid=Ht.first),T.mGM(Ht=T.lsd())&&(Xt.accordion=Ht.first)}},decls:9,vars:5,consts:[["noGrid",""],["useGrid",""],["accordion",""],["grid",""],["galleryTemplate",""],["fxLayout","column","fxFlex",""],["fxFlex","grow","fxLayout","column"],["fxFlex","none","class","review_strings nvapp-side-padding",4,"ngIf"],[4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],["fxFlex","none",1,"review_strings","nvapp-side-padding"],["fxLayout","row","fxLayoutAlign","start center"],[1,"font-body1","body-text"],["class","",3,"textFont16","isBackgroundColorReq","selection","disabled","input","selectionChanged",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["displayMode","flat",1,"accordion","nv-item-row"],["fxLayout","row","fxLayoutAlign","start center","class","selectall-section",4,"ngif"],["hideToggle","true",1,"nv-item-row","view-panel","text-color",3,"opened","closed","disabled"],["matRipple","","class","hig-button-overlay","collapsedHeight","48px","expandedHeight","48px",4,"ngIf"],["fxLayout","column",1,"max-accordion-height"],[4,"ngFor","ngForOf"],["fxFlex","none",1,"nv-gap-16"],[1,"",3,"selectionChanged","textFont16","isBackgroundColorReq","selection","disabled","input"],[1,"font-body1","body-text","selectall-side-padding"],["mat-icon-button","",1,"nv-item-icon","complex-button",3,"click"],[3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"selectall-section"],["matRipple","","collapsedHeight","48px","expandedHeight","48px",1,"hig-button-overlay"],["fxLayout","row","fxLayoutAlign","start center","fxFlexFill",""],["fxFlex","grow",1,"accordion-label","accordion-left-padding","font-body1","text-color"],["fxFlex","none","fxLayout","row","fxLayoutAlign","center center",1,"nv-item-icon","accordion-chevron-padding-header","text-color"],["svgIcon","chevron_down",1,"accordion-chevron","text-color"],["mat-button","","class","complex-button accordion-chevron-padding","fxFlex","none",3,"click",4,"ngIf"],["fxFlex","none","class","accordion-nested","hideToggle","true",4,"ngIf"],["mat-button","","fxFlex","none",1,"complex-button","accordion-chevron-padding",3,"click"],["fxFlex","shrink",1,"font-body1","accordion-item","text-color"],["fxFlex","none","hideToggle","true",1,"accordion-nested"],["collapsedHeight","48px","expandedHeight","36px"],["mat-button","","fxFlex","grow",1,"font-body1","accordion-label","accordion-item","accordion-nested-left-padding","text-color",3,"click"],[1,"font-body1","text-color"],["mat-button","","fxFlex","none","class","nv-item-icon complex-button accordion-nested-right text-color","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","column",1,"indent","nested_accordion_item"],["mat-button","","fxFlex","none","fxLayout","row","fxLayoutAlign","center center",1,"nv-item-icon","complex-button","accordion-nested-right","text-color"],["svgIcon","chevron_down",1,"accordion-chevron"],["fxFlex","none",1,"nested_accordion_checkbox","text-color",3,"ngModelChange","change","ngModel"],["fxFlex","shrink",1,"font-body1","check-label","text-color",3,"click"],["fxFlex","","fxLayout","row","fxLayoutAlign","center center",1,"emptyContainer"],[1,"font-body2","emptyMessage"],["tabIndex","0","fxFlex","","fxLayout","row","multiSelect","true","chunkFileMetadata","true",1,"virtual-grid-side-padding","text-color",3,"multiSelectMode","multiSelectList","selectedItemChange","keydown","items","selectedItem","itemHeight","marginBottom","itemWidth","marginRight","template","topBottomPad"],["fxFlex","none","fxLayout","row","class","confirm-section",4,"ngIf"],[1,"text-color",3,"click","item","scrolling","activeItem","thumbSize","initialDelay"],["fxFlex","none","fxLayout","row",1,"confirm-section"],["fxLayout","row","fxLayoutAlign","space-between end",1,"snap_fixed","nvapp-side-padding"],["mat-button","",1,"font-button2","hig-button","snap-button-margin",3,"click"],[1,"snap-text"],["mat-button","",1,"font-button2","hig-button",3,"click","ngClass"]],template:function(ht,Xt){if(1&ht&&(T.j41(0,"div",5)(1,"div",6),T.DNE(2,me,9,6,"div",7)(3,Et,12,9,"ng-container",8)(4,$e,1,0,"div",9)(5,Ze,4,4,"ng-template",null,0,T.C5r)(7,nt,5,9,"ng-template",null,1,T.C5r),T.k0s()()),2&ht){const Ht=T.sdS(6),Je=T.sdS(8);T.R7$(2),T.Y8G("ngIf",Xt.highlightSummaryIsOpen&&Xt.isNvApp),T.R7$(),T.Y8G("ngIf",!Xt.emptyHideDropdown),T.R7$(),T.Y8G("ngIf",Xt.emptyContainerVisible)("ngIfThen",Ht)("ngIfElse",Je)}},dependencies:[n.YU,n.Sq,n.bT,E.$,g.T,R.I,B.O,X.v,H.DJ,H.sA,H.G2,H.UI,J.PW,re.BC,re.vS,ie.iV,ve.An,ue.BS,ue.GK,ue.Z2,se.So,Z.r6,Se.tG,Ce.nM,Be.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.emptyContainer[_ngcontent-%COMP%]{align-items:center}[_nghost-%COMP%]{padding:16px 0}.isLtr[_nghost-%COMP%] .nested_accordion_item[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nested_accordion_item[_ngcontent-%COMP%]{padding-left:48px}html[dir=ltr][_ngcontent-%COMP%] .nested_accordion_item[_ngcontent-%COMP%]{--dummy1: 0;padding-left:48px}.isRtl[_nghost-%COMP%] .nested_accordion_item[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nested_accordion_item[_ngcontent-%COMP%]{padding-right:48px}html[dir=rtl][_ngcontent-%COMP%] .nested_accordion_item[_ngcontent-%COMP%]{--dummy1: 0;padding-right:48px}.nested_accordion_checkbox[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.isLtr[_nghost-%COMP%] .nested_accordion_checkbox[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nested_accordion_checkbox[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nested_accordion_checkbox[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nested_accordion_checkbox[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nested_accordion_checkbox[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nested_accordion_checkbox[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .mat-button-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .mat-button-padding[_ngcontent-%COMP%]{margin-right:22px}html[dir=ltr][_ngcontent-%COMP%] .mat-button-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-right:22px}.isRtl[_nghost-%COMP%] .mat-button-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .mat-button-padding[_ngcontent-%COMP%]{margin-left:22px}html[dir=rtl][_ngcontent-%COMP%] .mat-button-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-left:22px}.isLtr[_nghost-%COMP%] .mat-sub-button-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .mat-sub-button-padding[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .mat-sub-button-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .mat-sub-button-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .mat-sub-button-padding[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .mat-sub-button-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.emptyMessage[_ngcontent-%COMP%]{height:52px;margin:0 24px;max-width:400px;text-align:center}.virtual-grid-side-padding[_ngcontent-%COMP%]{padding:0 16px}.gallery-scroller[_ngcontent-%COMP%]{padding:16px 24px}.accordion[_ngcontent-%COMP%]{padding:0}.isLtr[_nghost-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .accordion-nested-right[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .accordion-nested-right[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .accordion-nested-right[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .accordion-nested-right[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .accordion-nested-right[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .accordion-nested-right[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .accordion-nested-left-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .accordion-nested-left-padding[_ngcontent-%COMP%]{padding-left:32px}html[dir=ltr][_ngcontent-%COMP%] .accordion-nested-left-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:32px}.isRtl[_nghost-%COMP%] .accordion-nested-left-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .accordion-nested-left-padding[_ngcontent-%COMP%]{padding-right:32px}html[dir=rtl][_ngcontent-%COMP%] .accordion-nested-left-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:32px}.isLtr[_nghost-%COMP%] .accordion-left-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .accordion-left-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .accordion-left-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .accordion-left-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .accordion-left-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .accordion-left-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .accordion-chevron-padding-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .accordion-chevron-padding-header[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .accordion-chevron-padding-header[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .accordion-chevron-padding-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .accordion-chevron-padding-header[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .accordion-chevron-padding-header[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.extra-bottom[_ngcontent-%COMP%]{margin-bottom:-16px}.accordion-label[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.isLtr[_nghost-%COMP%] .accordion-label[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .accordion-label[_ngcontent-%COMP%]{text-align:left}html[dir=ltr][_ngcontent-%COMP%] .accordion-label[_ngcontent-%COMP%]{--dummy0: 0;text-align:left}.isRtl[_nghost-%COMP%] .accordion-label[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .accordion-label[_ngcontent-%COMP%]{text-align:right}html[dir=rtl][_ngcontent-%COMP%] .accordion-label[_ngcontent-%COMP%]{--dummy0: 0;text-align:right}.accordion-item[_ngcontent-%COMP%]{padding:12px 16px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;min-width:0;width:0}.isLtr[_nghost-%COMP%] .accordion-item[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .accordion-item[_ngcontent-%COMP%]{text-align:left}html[dir=ltr][_ngcontent-%COMP%] .accordion-item[_ngcontent-%COMP%]{--dummy0: 0;text-align:left}.isRtl[_nghost-%COMP%] .accordion-item[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .accordion-item[_ngcontent-%COMP%]{text-align:right}html[dir=rtl][_ngcontent-%COMP%] .accordion-item[_ngcontent-%COMP%]{--dummy0: 0;text-align:right}.check-label[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;min-width:0;width:0;padding-top:12px;padding-bottom:12px}.isLtr[_nghost-%COMP%] .check-label[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .check-label[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .check-label[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .check-label[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .check-label[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .check-label[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.active[_ngcontent-%COMP%]{color:var(--accent-500)}.icon-dimensions[_ngcontent-%COMP%]{width:24px;height:24px}.isLtr[_nghost-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%]{margin-right:-24px!important}html[dir=ltr][_ngcontent-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%]{--dummy4: 0;margin-right:-24px!important}.isRtl[_nghost-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%]{margin-left:-24px!important}html[dir=rtl][_ngcontent-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%]{--dummy4: 0;margin-left:-24px!important}.isLtr[_nghost-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%]{padding-right:24px!important}html[dir=ltr][_ngcontent-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px!important}.isRtl[_nghost-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%]{padding-left:24px!important}html[dir=rtl][_ngcontent-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px!important}.max-accordion-height[_ngcontent-%COMP%]{max-height:526px;overflow:overlay}.isLtr[_nghost-%COMP%] .max-accordion-height[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .max-accordion-height[_ngcontent-%COMP%]{margin-right:-24px}html[dir=ltr][_ngcontent-%COMP%] .max-accordion-height[_ngcontent-%COMP%]{--dummy4: 0;margin-right:-24px}.isRtl[_nghost-%COMP%] .max-accordion-height[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .max-accordion-height[_ngcontent-%COMP%]{margin-left:-24px}html[dir=rtl][_ngcontent-%COMP%] .max-accordion-height[_ngcontent-%COMP%]{--dummy4: 0;margin-left:-24px}.isLtr[_nghost-%COMP%] .max-accordion-height[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .max-accordion-height[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .max-accordion-height[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .max-accordion-height[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .max-accordion-height[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .max-accordion-height[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.isLtr[_nghost-%COMP%] .indent[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .indent[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .indent[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .indent[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .indent[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .indent[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.review_strings[_ngcontent-%COMP%]{width:512px;min-height:100px;margin-bottom:16px;display:block}.isLtr[_nghost-%COMP%] .selectall-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .selectall-side-padding[_ngcontent-%COMP%]{padding-right:352px}html[dir=ltr][_ngcontent-%COMP%] .selectall-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:352px}.isRtl[_nghost-%COMP%] .selectall-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .selectall-side-padding[_ngcontent-%COMP%]{padding-left:352px}html[dir=rtl][_ngcontent-%COMP%] .selectall-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:352px}.isLtr[_nghost-%COMP%] .selectall-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .selectall-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .selectall-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .selectall-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .selectall-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .selectall-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.snap-button[_ngcontent-%COMP%]{background-color:var(--accent-500)}.snap-button-disabled[_ngcontent-%COMP%]{background-color:var(--primary-700)}.isLtr[_nghost-%COMP%] .snap-button-margin[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .snap-button-margin[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .snap-button-margin[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .snap-button-margin[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .snap-button-margin[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .snap-button-margin[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.snap-button-nvapp[_ngcontent-%COMP%]{margin-bottom:16px}.snap_fixed[_ngcontent-%COMP%]{position:fixed;min-height:32px;height:-moz-fit-content;height:fit-content;width:-moz-fit-content;width:fit-content}.snap-text[_ngcontent-%COMP%]{max-width:320px}.confirm-section[_ngcontent-%COMP%]{height:32px;margin-top:16px;display:flex;justify-content:flex-end;max-width:512px}.custom-checkbox-checked[_ngcontent-%COMP%]{background-image:url(Select_All_24.5528d1942c3b1881.svg)}.custom-checkbox-unchecked[_ngcontent-%COMP%]{background-image:url(Deselect_All_24.9c60743cf04d1b72.svg)}.text-color[_ngcontent-%COMP%]{color:var(--gallery-accordion-expansion-panel-text-color)}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}"]})}}return xe})();var at=s(27216);const It=[{path:"",component:Ot,data:{level:1}},{path:"center-view",component:at.VI,outlet:"centerPane",children:[{path:"preview",component:at.MG}]}];let We=(()=>{class xe{static{this.\u0275fac=function(ht){return new(ht||xe)}}static{this.\u0275mod=T.$C({type:xe})}static{this.\u0275inj=T.G2t({imports:[n.MD,S._N,y.G,d.YF,v.i,l.iI.forChild(It),(0,S.BU)()]})}}return xe})()},57307:(Bt,z,s)=>{"use strict";s.d(z,{h:()=>So});var n=s(40262),l=s(80583),d=s(43848),v=s(93181),S=s(14714),y=s(75707),f=s(4208),O=s(73180),P=s(91384),_=s(83915),i=s(20924),r=s(1229),a=s(54292),c=s(58527),m=s(99469),M=s(26537),D=s(50801),I=s(61142),U=s(14354),V=s(3457),T=s(28139),N=s(65706),L=s(65726),E=s(29370);const g=["statusIndicator"];function R(Rn,Xn){if(1&Rn&&(c.j41(0,"div",4),c.nrm(1,"mat-icon",5),c.k0s()),2&Rn){const ae=c.XpG(2);c.R7$(),c.Y8G("svgIcon",ae.icon)}}function B(Rn,Xn){if(1&Rn&&(c.j41(0,"div",2),c.DNE(1,R,2,1,"div",3),c.k0s()),2&Rn){const ae=c.XpG();c.R7$(),c.Y8G("ngIf",ae.icon)}}let X=(()=>{class Rn{set mode(ae){const st=r.lb6[ae];this._mode=void 0!==st?st:r.lb6.Recording,this.setup()}get mode(){return this._mode}constructor(ae,st,Ct,$n,Gi){this.injector=ae,this.sdkService=st,this.shadowplayService=Ct,this.featureSupportService=$n,this.changed=new c.bkB,this.showHighlights=!1,this.showMic=!1,this.showRecording=!1,this.showPerfLogging=!1,this.showAny=!1,this.icon="",this.destroy$=new l.B7,this.IRState=!1,this.MRState=!1,this.HLBadState=!1,this.viewInit=!1,this.notifiersRegistered=!1,this.logger=Gi.getLogger("SPStatus")}ngAfterViewInit(){this.viewInit=!0,(0,d.of)(!0).pipe((0,L.c)(0),(0,f.Q)(this.destroy$)).subscribe(()=>this.setup())}setup(){this.mode===r.lb6.Highlights?(this.icon="highlights",this.SetHighlightIcon()):this.mode===r.lb6.Recording?this.icon="record":this.mode===r.lb6.IR?this.icon="replay":this.mode===r.lb6.Mic?this.icon="mic":this.mode===r.lb6.PerfLogging&&(this.icon="text_snippet"),this.viewInit&&!this.notifiersRegistered&&(this.destroy$.next(),this.destroy$.complete(),this.destroy$=new l.B7,this.sdkService.isHighlightsActive().pipe((0,f.Q)(this.destroy$)).subscribe(ae=>{this.updateHighlights(ae)}),this.shadowplayService.getMICState().pipe((0,f.Q)(this.destroy$)).subscribe(ae=>{this.updateMic(ae)}),this.shadowplayService.getMRState().pipe((0,f.Q)(this.destroy$)).subscribe(ae=>{this.updateRecording(ae,!0)}),this.shadowplayService.getIRState().pipe((0,f.Q)(this.destroy$)).subscribe(ae=>{this.updateRecording(ae===r.xT8.recording,!1)}),this.shadowplayService.getHLBadState().pipe((0,f.Q)(this.destroy$)).subscribe(ae=>{this.updateHLBadState(ae)}),this.featureSupportService.showPerfLogging()&&(this.perfMonService=this.injector.get(r.zET),this.perfMonService.getPerfLoggingStatus().pipe((0,f.Q)(this.destroy$)).subscribe(ae=>{this.showPerfLogging=ae,this.updateShowAny()})),this.notifiersRegistered=!0)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}SetHighlightIcon(){this.mode===r.lb6.Highlights&&this.showHighlights&&(this.icon=this.HLBadState?"highlights_disabled":"highlights")}updateHighlights(ae){this.showHighlights=!(!ae&&!1!==ae)&&ae,this.SetHighlightIcon(),this.updateShowAny()}updateHLBadState(ae){this.HLBadState=!(!ae&&!1!==ae)&&ae,this.SetHighlightIcon(),this.updateShowAny()}updateMic(ae){const st=ae!==r.YQZ.off;this.showMic=!(!st&&!1!==st)&&st,this.updateShowAny()}updateRecording(ae,st){let Ct=!1;(ae||!1===ae)&&(Ct=ae),st?this.MRState=Ct:this.IRState=Ct,this.showRecording=this.MRState||this.IRState,this.updateShowAny()}updateShowAny(){const ae=this.mode===r.lb6.Highlights&&this.showHighlights||this.mode===r.lb6.Recording&&this.MRState||this.mode===r.lb6.IR&&this.IRState||this.mode===r.lb6.Mic&&this.showMic&&(this.showRecording||this.showHighlights)||this.mode===r.lb6.PerfLogging&&this.showPerfLogging;ae!==this.showAny&&(this.showAny=ae,this.changed.emit())}getDimensions(){return this.statusIndicator?this.statusIndicator.nativeElement.getBoundingClientRect():null}static{this.\u0275fac=function(st){return new(st||Rn)(c.rXU(c.zZn),c.rXU(r.P15),c.rXU(r.W1J),c.rXU(r.Rvq),c.rXU(m.J6))}}static{this.\u0275cmp=c.VBU({type:Rn,selectors:[["nv-shadowplay-status"]],viewQuery:function(st,Ct){if(1&st&&c.GBs(g,7),2&st){let $n;c.mGM($n=c.lsd())&&(Ct.statusIndicator=$n.first)}},inputs:{mode:"mode"},outputs:{changed:"changed"},decls:3,vars:1,consts:[["statusIndicator",""],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["class","osd-general osd-status-image","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center",1,"osd-general","osd-status-image"],[3,"svgIcon"]],template:function(st,Ct){1&st&&(c.j41(0,"div",null,0),c.DNE(2,B,2,1,"div",1),c.k0s()),2&st&&(c.R7$(2),c.Y8G("ngIf",Ct.showAny))},dependencies:[I.bT,V.DJ,V.sA,E.An],styles:[".osd-general[_ngcontent-%COMP%]{opacity:.9}.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top left}.isLtr.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-topcenter[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topcenter [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top center}.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top right}.isLtr.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{transform-origin:center right}.isLtr.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom left}.isLtr.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-bottomcenter[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomcenter [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom center}.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom right}.isLtr.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{transform-origin:center left}.isLtr.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-topright[_nghost-%COMP%], .osd-topright [_nghost-%COMP%], .osd-bottomright[_nghost-%COMP%], .osd-bottomright [_nghost-%COMP%], .osd-centerright[_nghost-%COMP%], .osd-centerright [_nghost-%COMP%], .osd-topright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-centerright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-direction:column-reverse}.osd-status-image[_ngcontent-%COMP%]{width:24px;height:24px;background-color:#000c}.osd-status-image[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#fff;line-height:18px;font-size:18px;height:18px;width:18px}.osd-topright [_nghost-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] > div[_ngcontent-%COMP%]{flex-direction:row-reverse}"]})}}return Rn})();var H=s(59002);const J=["microphoneStatusIndicator"];function re(Rn,Xn){1&Rn&&c.nrm(0,"mat-icon",6)}function ie(Rn,Xn){1&Rn&&c.nrm(0,"mat-icon",7)}function ve(Rn,Xn){if(1&Rn&&(c.j41(0,"div",2)(1,"div",3),c.DNE(2,re,1,0,"mat-icon",4)(3,ie,1,0,"mat-icon",5),c.k0s()()),2&Rn){const ae=c.XpG();c.R7$(),c.Y8G("ngSwitch",ae.currentMicButtonState),c.R7$(),c.Y8G("ngSwitchCase",ae.micStates.Unmuted),c.R7$(),c.Y8G("ngSwitchCase",ae.micStates.Muted)}}let ue=(()=>{class Rn{constructor(ae,st,Ct,$n){this.microphoneService=ae,this.igoConfig=st,this.injector=Ct,this.loggingService=$n,this.showAny=!0,this.showIcon=!1,this.micStates=D.EO,this.viewInit=!1,this.componentDestroy=new l.B7,this.changed=new c.bkB,this.logger=this.loggingService.getLogger("MicrophoneStatusComponentIgo"),this.setup()}ngOnInit(){"GFN"===this.igoConfig.branding&&(this.gfnInfoService=this.injector.get(H.x_),this.gfnInfoService?this.gfnInfoService.showMicIcon().pipe((0,_.T)(ae=>{this.logger.info("ShowIcon Status updated to ",ae),this.showIcon=ae}),(0,f.Q)(this.componentDestroy)).subscribe():this.logger.error("GfnInfoService injection failed"))}setup(){this.viewInit&&(this.micStateSub=this.microphoneService.currentMicState$.subscribe(ae=>{switch(this.currentMicButtonState=ae,this.currentMicButtonState){case D.EO.Unmuted:case D.EO.Muted:this.showAny=!0,this.changed.emit();break;default:this.showAny=!1,this.changed.emit()}}))}ngAfterViewInit(){this.viewInit=!0,setTimeout(()=>this.setup(),0)}ngOnDestroy(){this.micStateSub?.unsubscribe(),this.componentDestroy.next(!0),this.componentDestroy.complete()}getDimensions(){return this.microphoneStatusIndicator?this.microphoneStatusIndicator.nativeElement.getBoundingClientRect():null}static{this.\u0275fac=function(st){return new(st||Rn)(c.rXU(D.CQ),c.rXU(r.k$F),c.rXU(c.zZn),c.rXU(m.J6))}}static{this.\u0275cmp=c.VBU({type:Rn,selectors:[["nv-microphone-status"]],viewQuery:function(st,Ct){if(1&st&&c.GBs(J,7),2&st){let $n;c.mGM($n=c.lsd())&&(Ct.microphoneStatusIndicator=$n.first)}},outputs:{changed:"changed"},decls:3,vars:1,consts:[["microphoneStatusIndicator",""],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxLayout","row","fxLayoutAlign","center center",1,"osd-general","osd-status-image",3,"ngSwitch"],["svgIcon","mic",4,"ngSwitchCase"],["svgIcon","mic_off",4,"ngSwitchCase"],["svgIcon","mic"],["svgIcon","mic_off"]],template:function(st,Ct){1&st&&(c.j41(0,"div",null,0),c.DNE(2,ve,4,3,"div",1),c.k0s()),2&st&&(c.R7$(2),c.Y8G("ngIf",Ct.showAny&&Ct.showIcon))},dependencies:[I.bT,I.ux,I.e1,V.DJ,V.sA,E.An],styles:[".osd-general[_ngcontent-%COMP%]{opacity:.9}.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top left}.isLtr.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-topcenter[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topcenter [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top center}.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top right}.isLtr.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{transform-origin:center right}.isLtr.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom left}.isLtr.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-bottomcenter[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomcenter [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom center}.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom right}.isLtr.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{transform-origin:center left}.isLtr.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-topright[_nghost-%COMP%], .osd-topright [_nghost-%COMP%], .osd-bottomright[_nghost-%COMP%], .osd-bottomright [_nghost-%COMP%], .osd-centerright[_nghost-%COMP%], .osd-centerright [_nghost-%COMP%], .osd-topright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-centerright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-direction:column-reverse}.osd-status-image[_ngcontent-%COMP%]{width:24px;height:24px;background-color:#000c}.osd-status-image[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#fff;line-height:18px;font-size:18px;height:18px;width:18px}"]})}}return Rn})();var se=s(20381),Z=s(89284),Se=s(96542),Ce=s(74150),Be=s(43664);const Xe=["statsOverlay"];function He(Rn,Xn){if(1&Rn&&(c.j41(0,"div",15),c.nrm(1,"mat-icon",16),c.j41(2,"span",17),c.EFF(3),c.k0s()()),2&Rn){const ae=c.XpG(2);c.R7$(2),c.AVh("font-sub3",ae.rowLayout)("font-header6",!ae.rowLayout),c.R7$(),c.JRh(ae.userVisibleGpuName)}}function Me(Rn,Xn){if(1&Rn&&(c.j41(0,"div",7)(1,"span",8),c.EFF(2),c.k0s(),c.j41(3,"div",9)(4,"div",10)(5,"span"),c.EFF(6,"("),c.k0s(),c.j41(7,"span",11),c.EFF(8),c.nI1(9,"translate"),c.nI1(10,"uppercase"),c.k0s(),c.j41(11,"span"),c.EFF(12,")"),c.k0s()(),c.j41(13,"span",12),c.EFF(14),c.nI1(15,"translate"),c.nI1(16,"uppercase"),c.k0s()()()),2&Rn){const ae=c.XpG(2);c.AVh("compact-box-width",!ae.enlargeFontMode&&!ae.rowLayout)("compact-box-width-enlargefont",ae.enlargeFontMode&&!ae.rowLayout),c.R7$(),c.ZvI("font-header4 compact-text-spacing2 ",ae.colors.gameEngineFps,""),c.R7$(),c.JRh(ae.gameEngineFpsString),c.R7$(3),c.AVh("compact-text",!ae.enlargeFontMode)("compact-text-enlarged",ae.enlargeFontMode),c.R7$(2),c.AVh("compact-text",!ae.enlargeFontMode)("compact-text-enlarged",ae.enlargeFontMode),c.R7$(),c.JRh(c.bMT(10,28,c.bMT(9,26,"statistics.FPS"))),c.R7$(3),c.AVh("compact-text",!ae.enlargeFontMode)("compact-text-enlarged",ae.enlargeFontMode),c.R7$(2),c.AVh("compact-text",!ae.enlargeFontMode)("compact-text-enlarged",ae.enlargeFontMode),c.R7$(),c.JRh(c.bMT(16,32,c.bMT(15,30,ae.gameEngine)))}}function Q(Rn,Xn){if(1&Rn&&(c.j41(0,"div",3),c.nrm(1,"div",18),c.j41(2,"div",19)(3,"span"),c.EFF(4),c.k0s()()()),2&Rn){const ae=c.XpG(2);c.R7$(3),c.AVh("compact-text",!ae.enlargeFontMode&&!ae.rowLayout)("compact-text-enlarged",ae.enlargeFontMode)("font-sub3",ae.rowLayout),c.R7$(),c.JRh(ae.networkData.serverLoc)}}function A(Rn,Xn){if(1&Rn&&(c.j41(0,"div",25)(1,"span",23),c.EFF(2),c.nI1(3,"translate"),c.k0s(),c.j41(4,"div",24)(5,"span",27),c.EFF(6),c.k0s()()()),2&Rn){const ae=c.XpG(3);c.AVh("font-body2",!ae.enlargeFontMode)("font-body-largefont0",ae.enlargeFontMode),c.R7$(2),c.JRh(c.bMT(3,6,"statistics.L4S")),c.R7$(4),c.JRh(ae.l4sStatusString)}}function me(Rn,Xn){if(1&Rn&&(c.j41(0,"span"),c.EFF(1),c.k0s()),2&Rn){const ae=c.XpG(4);c.ZvI("standard-post ",ae.colors.vpnIndicator,""),c.R7$(),c.JRh(ae.vpnString)}}function ne(Rn,Xn){if(1&Rn&&(c.j41(0,"div")(1,"span",21),c.EFF(2),c.nI1(3,"translate"),c.k0s(),c.j41(4,"div",22)(5,"span",23),c.EFF(6),c.nI1(7,"translate"),c.k0s(),c.j41(8,"div",24)(9,"span"),c.EFF(10),c.k0s(),c.DNE(11,me,2,4,"span",35),c.k0s()(),c.j41(12,"div",36)(13,"span",23),c.EFF(14),c.nI1(15,"translate"),c.k0s(),c.j41(16,"span",34),c.EFF(17),c.k0s()()()),2&Rn){const ae=c.XpG(3);c.R7$(),c.AVh("font-sub2",!ae.enlargeFontMode)("font-sub-largefont0",ae.enlargeFontMode),c.R7$(),c.JRh(c.bMT(3,21,"statistics.Subheader3")),c.R7$(2),c.AVh("font-body2",!ae.enlargeFontMode)("font-body-largefont0",ae.enlargeFontMode),c.R7$(2),c.JRh(c.bMT(7,23,"statistics.ConnectionType")),c.R7$(3),c.ZvI("standard-base ",ae.colors.connectionType,""),c.R7$(),c.JRh(ae.networkData.connectionType),c.R7$(),c.Y8G("ngIf",ae.vpnPresent),c.R7$(),c.AVh("font-body2",!ae.enlargeFontMode)("font-body-largefont0",ae.enlargeFontMode),c.R7$(2),c.JRh(c.bMT(15,25,"statistics.NetworkName")),c.R7$(3),c.JRh(ae.ssid)}}function G(Rn,Xn){if(1&Rn&&(c.j41(0,"span",37),c.EFF(1),c.k0s()),2&Rn){const ae=c.XpG(3);c.R7$(),c.JRh(ae.networkData.resolutionLabel)}}function W(Rn,Xn){if(1&Rn&&(c.j41(0,"div",33)(1,"span",23),c.EFF(2),c.nI1(3,"translate"),c.k0s(),c.j41(4,"span",34),c.EFF(5),c.nI1(6,"translate"),c.k0s()()),2&Rn){const ae=c.XpG(3);c.AVh("font-body2",!ae.enlargeFontMode)("font-body-largefont0",ae.enlargeFontMode),c.R7$(2),c.JRh(c.bMT(3,6,"settings.streamingProfiles.hdrStreaming")),c.R7$(3),c.JRh(c.bMT(6,8,ae.networkData.hdrStreamingStatus))}}function $(Rn,Xn){if(1&Rn&&(c.j41(0,"div",33)(1,"span",23),c.EFF(2),c.nI1(3,"translate"),c.k0s(),c.j41(4,"span",34),c.EFF(5),c.nI1(6,"translate"),c.k0s()()),2&Rn){const ae=c.XpG(3);c.AVh("font-body2",!ae.enlargeFontMode)("font-body-largefont0",ae.enlargeFontMode),c.R7$(2),c.JRh(c.bMT(3,6,"settings.streamingProfiles.codecName")),c.R7$(3),c.JRh(c.bMT(6,8,ae.codecNameString))}}function le(Rn,Xn){if(1&Rn&&(c.j41(0,"div",3)(1,"span",20),c.EFF(2),c.nI1(3,"translate"),c.k0s(),c.j41(4,"span",21),c.EFF(5),c.nI1(6,"translate"),c.k0s(),c.j41(7,"div",22)(8,"span",23),c.EFF(9),c.nI1(10,"translate"),c.k0s(),c.j41(11,"div",24)(12,"span"),c.EFF(13),c.k0s(),c.j41(14,"span"),c.EFF(15),c.nI1(16,"translate"),c.k0s()()(),c.j41(17,"div",25)(18,"span",23),c.EFF(19),c.nI1(20,"translate"),c.k0s(),c.j41(21,"div",24)(22,"span"),c.EFF(23),c.k0s(),c.j41(24,"span"),c.EFF(25),c.nI1(26,"translate"),c.k0s()()(),c.DNE(27,A,7,8,"div",26),c.j41(28,"span",21),c.EFF(29),c.nI1(30,"translate"),c.k0s(),c.j41(31,"div",22)(32,"span",23),c.EFF(33),c.nI1(34,"translate"),c.k0s(),c.j41(35,"div",24)(36,"span"),c.EFF(37),c.k0s(),c.j41(38,"span"),c.EFF(39),c.nI1(40,"translate"),c.k0s()()(),c.j41(41,"div",25)(42,"span",23),c.EFF(43),c.nI1(44,"translate"),c.k0s(),c.j41(45,"div",24)(46,"span",27),c.EFF(47),c.k0s(),c.j41(48,"span",28),c.EFF(49),c.nI1(50,"translate"),c.k0s(),c.j41(51,"span",28),c.EFF(52),c.k0s()()(),c.DNE(53,ne,18,27,"div",29),c.nrm(54,"nv-divider"),c.j41(55,"span",30),c.EFF(56),c.nI1(57,"translate"),c.k0s(),c.j41(58,"div",22)(59,"span",23),c.EFF(60),c.nI1(61,"translate"),c.k0s(),c.j41(62,"div",24)(63,"span"),c.EFF(64),c.k0s(),c.DNE(65,G,2,1,"span",31),c.k0s()(),c.DNE(66,W,7,10,"div",32)(67,$,7,10,"div",32),c.j41(68,"div",33)(69,"span",23),c.EFF(70),c.nI1(71,"translate"),c.k0s(),c.j41(72,"span",34),c.EFF(73),c.k0s()()()),2&Rn){const ae=c.XpG(2);c.R7$(),c.AVh("font-header6",!ae.enlargeFontMode)("font-header5",ae.enlargeFontMode),c.R7$(),c.JRh(c.bMT(3,89,"statistics.Header1")),c.R7$(2),c.AVh("font-sub2",!ae.enlargeFontMode)("font-sub-largefont0",ae.enlargeFontMode),c.R7$(),c.JRh(c.bMT(6,91,"statistics.Subheader1")),c.R7$(2),c.AVh("font-body2",!ae.enlargeFontMode)("font-body-largefont0",ae.enlargeFontMode),c.R7$(2),c.JRh(c.bMT(10,93,"statistics.FrameLoss")),c.R7$(3),c.ZvI("standard-base ",ae.colors.frameLoss,""),c.R7$(),c.JRh(ae.networkData.frameLoss),c.R7$(),c.ZvI("standard-post ",ae.colors.frameLossTotal,""),c.R7$(),c.Lme("(",ae.networkData.totalFrameLoss," ",c.bMT(16,95,"statistics.Total"),")"),c.R7$(2),c.AVh("font-body2",!ae.enlargeFontMode)("font-body-largefont0",ae.enlargeFontMode),c.R7$(2),c.JRh(c.bMT(20,97,"statistics.PacketLoss")),c.R7$(3),c.ZvI("standard-base ",ae.colors.packetLoss2,""),c.R7$(),c.JRh(ae.networkData.packetLoss),c.R7$(),c.ZvI("standard-post ",ae.colors.packetLossTotal,""),c.R7$(),c.Lme("(",ae.networkData.totalPacketLoss," ",c.bMT(26,99,"statistics.Total"),")"),c.R7$(2),c.Y8G("ngIf",ae.l4sStatusEnabled&&ae.l4sStatusString),c.R7$(),c.AVh("font-sub2",!ae.enlargeFontMode)("font-sub-largefont0",ae.enlargeFontMode),c.R7$(),c.JRh(c.bMT(30,101,"statistics.Subheader2")),c.R7$(2),c.AVh("font-body2",!ae.enlargeFontMode)("font-body-largefont0",ae.enlargeFontMode),c.R7$(2),c.JRh(c.bMT(34,103,"statistics.TotalAvailable")),c.R7$(3),c.ZvI("standard-base ",ae.colors.totalAvailableBandwidth,""),c.R7$(),c.JRh(ae.networkData.totalAvailableBandwidth),c.R7$(),c.ZvI("standard-post ",ae.colors.totalAvailableBandwidth,""),c.R7$(),c.JRh(c.bMT(40,105,"statistics.Mbps")),c.R7$(2),c.AVh("font-body2",!ae.enlargeFontMode)("font-body-largefont0",ae.enlargeFontMode),c.R7$(2),c.JRh(c.bMT(44,107,"statistics.BandwidthUsed")),c.R7$(4),c.JRh(ae.networkData.bandwidthUsed),c.R7$(2),c.JRh(c.bMT(50,109,"statistics.Mbps")),c.R7$(3),c.SpI("(",ae.networkData.bandwidthPrecentage,"%)"),c.R7$(),c.Y8G("ngIf",ae.isConnectionStatsAvailable),c.R7$(2),c.AVh("font-header6",!ae.enlargeFontMode)("font-header5",ae.enlargeFontMode),c.R7$(),c.JRh(c.bMT(57,111,"statistics.Header2")),c.R7$(2),c.AVh("font-body2",!ae.enlargeFontMode)("font-body-largefont0",ae.enlargeFontMode),c.R7$(2),c.JRh(c.bMT(61,113,"statistics.Resolution")),c.R7$(3),c.ZvI("standard-wrap ",ae.colors.resolution,""),c.R7$(),c.JRh(ae.networkData.resolution),c.R7$(),c.Y8G("ngIf",ae.networkData.resolutionLabel),c.R7$(),c.Y8G("ngIf",!!ae.networkData.hdrStreamingStatus),c.R7$(),c.Y8G("ngIf",!!ae.codecNameString),c.R7$(),c.AVh("font-body2",!ae.enlargeFontMode)("font-body-largefont0",ae.enlargeFontMode),c.R7$(2),c.JRh(c.bMT(71,115,"statistics.ServerLocation")),c.R7$(3),c.JRh(ae.networkData.serverLoc)}}function Pe(Rn,Xn){if(1&Rn&&(c.j41(0,"div",2)(1,"div",3),c.DNE(2,He,4,5,"div",4),c.j41(3,"div",5),c.DNE(4,Me,17,34,"div",6),c.j41(5,"div",7)(6,"span",8),c.EFF(7),c.k0s(),c.j41(8,"div",9)(9,"div",10)(10,"span"),c.EFF(11,"("),c.k0s(),c.j41(12,"span",11),c.EFF(13),c.nI1(14,"translate"),c.nI1(15,"uppercase"),c.k0s(),c.j41(16,"span"),c.EFF(17,")"),c.k0s()(),c.j41(18,"span",12),c.EFF(19),c.nI1(20,"translate"),c.nI1(21,"uppercase"),c.k0s()()(),c.j41(22,"div",13)(23,"span",8),c.EFF(24),c.k0s(),c.j41(25,"div",9)(26,"div",10)(27,"span"),c.EFF(28,"("),c.k0s(),c.j41(29,"span",11),c.EFF(30),c.nI1(31,"translate"),c.k0s(),c.j41(32,"span"),c.EFF(33,")"),c.k0s()(),c.j41(34,"span",12),c.EFF(35),c.nI1(36,"translate"),c.nI1(37,"uppercase"),c.k0s()()()(),c.DNE(38,Q,5,7,"div",14)(39,le,74,117,"div",14),c.k0s()()),2&Rn){const ae=c.XpG();c.AVh("font-body2",!ae.enlargeFontMode)("font-body-largefont0",ae.enlargeFontMode),c.R7$(2),c.Y8G("ngIf",!ae.hideGpuName),c.R7$(),c.Y8G("fxLayout",ae.rowLayout?"column":"row"),c.R7$(),c.Y8G("ngIf",ae.isso12Enabled),c.R7$(),c.AVh("compact-box-width",!ae.enlargeFontMode&&!ae.rowLayout)("compact-box-width-enlargefont",ae.enlargeFontMode&&!ae.rowLayout),c.R7$(),c.ZvI("font-header4 compact-text-spacing2 ",ae.colors.streamingFps1,""),c.R7$(),c.JRh(ae.networkData.streamingFps),c.R7$(3),c.AVh("compact-text",!ae.enlargeFontMode)("compact-text-enlarged",ae.enlargeFontMode),c.R7$(2),c.AVh("compact-text",!ae.enlargeFontMode)("compact-text-enlarged",ae.enlargeFontMode),c.R7$(),c.JRh(c.bMT(15,63,c.bMT(14,61,"statistics.FPS"))),c.R7$(3),c.AVh("compact-text",!ae.enlargeFontMode)("compact-text-enlarged",ae.enlargeFontMode),c.R7$(2),c.AVh("compact-text",!ae.enlargeFontMode)("compact-text-enlarged",ae.enlargeFontMode),c.R7$(),c.JRh(c.bMT(21,67,c.bMT(20,65,"statistics.Stream"))),c.R7$(3),c.AVh("compact-box-width",!ae.enlargeFontMode&&!ae.rowLayout)("compact-box-width-enlargefont",ae.enlargeFontMode&&!ae.rowLayout),c.R7$(),c.ZvI("font-header4 compact-text-spacing2 ",ae.colors.roundTripDelay,""),c.R7$(),c.JRh(ae.networkData.roundTripDelay),c.R7$(3),c.AVh("compact-text",!ae.enlargeFontMode)("compact-text-enlarged",ae.enlargeFontMode),c.R7$(2),c.AVh("compact-text",!ae.enlargeFontMode)("compact-text-enlarged",ae.enlargeFontMode),c.R7$(),c.JRh(c.bMT(31,69,"statistics.Millisec")),c.R7$(2),c.AVh("compact-text",!ae.enlargeFontMode)("compact-text-enlarged",ae.enlargeFontMode),c.R7$(2),c.AVh("compact-text",!ae.enlargeFontMode)("compact-text-enlarged",ae.enlargeFontMode),c.R7$(),c.JRh(c.bMT(37,73,c.bMT(36,71,"statistics.Ping"))),c.R7$(3),c.Y8G("ngIf",ae.useSize===ae.compact),c.R7$(),c.Y8G("ngIf",ae.useSize===ae.standard)}}let Fe=(()=>{class Rn{constructor(ae,st,Ct,$n,Gi,Sr,Wr,ao,Ir,Cr,Po,Ki,el){this.injector=ae,this.igoConfig=st,this.loggingService=Ct,this.statisticsService=$n,this.gfnInfoService=Gi,this.oscDisplayService=Sr,this.osdService=Wr,this.translateService=ao,this.telemetryService=Ir,this.experienceControlService=Cr,this.domSanitizer=Po,this.featureSupportService=Ki,this.matIconRegistry=el,this.destroy$=new l.B7,this.statsState=r.BKk.Off,this.colors=void 0,this.useSize=r.QYS.standard,this.compact=r.QYS.compact,this.standard=r.QYS.standard,this.vpnText="",this.vpnString="",this.vpnPresent=!1,this.naText="",this.ssid="",this.statsStarted=0,this.isConnectionStatsAvailable=!m.zk.isBrowserPlatform(),this.gpuFriendlyName="",this.userVisibleGpuName="",this.hideGpuName=!0,this.isso12Enabled=!1,this.gameEngineFpsString="",this.rowLayout=!1,this.l4sStatusEnabled=!1,this.appConfig=null,this.uiOpen=!1,this.isGuestAppFlow=!1,this.showBitDepth=!1,this.changed=new c.bkB,this.logger=this.loggingService.getLogger("StatisticsOverlayComponent"),this.isGuestAppFlow=this.featureSupportService.isGuestAppFlowWrapper(),this.matIconRegistry.addSvgIcon("gpuBranding",this.domSanitizer.bypassSecurityTrustResourceUrl("./assets/img/geforce_mark.svg")),this.rowLayout=this.featureSupportService.issoLayoutPref()===Z.C$e.Row,this.enlargeFontMode=this.featureSupportService.enlargeIGOTextFont()}ngOnInit(){this.logger.info("init"),this.vpnText="("+this.translateService.instant("statistics.Vpn")+")",this.naText=this.translateService.instant("statistics.NotAvailable"),this.gameEngine=this.isGuestAppFlow?"statistics.AppEngine":"statistics.GameEngine"}ngAfterViewInit(){this.logger.info("ngAfterViewInit"),this.gfnInfoService.checkL4SUserEntitlement()?(this.l4sStatusEnabled=!0,this.gfnInfoService.getL4sStatusString().pipe((0,f.Q)(this.destroy$)).subscribe(ae=>{this.l4sStatusString=ae})):this.l4sStatusEnabled=!1,this.showBitDepth=this.gfnInfoService.checkIfBitDepthAvailable(),this.events=this.statisticsService.getStatisticsEvents().subscribe(ae=>{if(this.logger.info("Got message: ",ae),ae.state===r.BKk.Standard&&this.statsState!==r.BKk.Standard)this.useSize=r.QYS.standard,this.handleUIEvent(ae.state);else{if(ae.state===r.BKk.Off&&this.statsState!==r.BKk.Off)return this.uiOpen&&(this.oscDisplayService.closeNonInteractiveOSC(),this.uiOpen=!1),this.statsState=ae.state,this.changed.emit(),void this.overlayClosed();if(ae.state===r.BKk.Compact&&this.statsState!==r.BKk.Compact)this.useSize=r.QYS.compact,this.handleUIEvent(ae.state);else if(ae.state===r.BKk.Off&&this.statsState===r.BKk.Off)return}this.osdService.setStatsSize(this.useSize),this.isso12Enabled=0!==ae.data.gameEngineFps,this.gameEngineFpsString=ae.data.gameEngineFps>999?"---":ae.data.gameEngineFps.toString(),this.networkData=ae.data,this.colors=ae.colors,this.vpnString=ae.data.isVpnOn?this.vpnText:"",this.vpnPresent=ae.data.isVpnOn,this.ssid="Ethernet"===ae.data.connectionType?this.naText:ae.data.networkName,m.zk.isNativeLikePlatform()||(this.codecName=ae.data?.streamingCodec),this.getCodecString(ae.data?.bitDepth)}),this.appConfig||"GFN"!==this.igoConfig.branding||(this.appConfig=this.injector.get(Z.Vk6),this.appConfig)?(this.gfnInfoService.getGpuName().pipe((0,f.Q)(this.destroy$)).subscribe(ae=>{this.gpuFriendlyName=ae,""===ae?(this.logger.info("Empty GPU name received"),this.hideGpuNameISSO()):this.getGpuMappings()}),m.zk.isCefPlatform()&&this.gfnInfoService.getCodec().pipe((0,f.Q)(this.destroy$)).subscribe(ae=>{this.codecName=ae?.codec})):this.logger.info("ERROR:: Failed to obtain appConfig")}hideGpuNameISSO(){this.hideGpuName=!0,this.userVisibleGpuName=""}ngOnDestroy(){this.statsState!==r.BKk.Off&&(this.statsState=r.BKk.Off,this.overlayClosed()),this.events&&(this.events.unsubscribe(),this.events=void 0),this.getCloudVarSub&&(this.getCloudVarSub.unsubscribe(),this.getCloudVarSub=void 0),this.destroy$.next(!0),this.destroy$.unsubscribe()}getCodecString(ae){const st=this.codecName;if(this.showBitDepth&&ae){let Ct="";if(st===i.Or.Gfn.Streaming.Codec.AV1)Ct="settings.streamingProfiles.codecAV1_bit";else if(st===i.Or.Gfn.Streaming.Codec.H264)Ct="settings.streamingProfiles.codecH264_bit";else{if(st!==i.Or.Gfn.Streaming.Codec.H265)return void this.logger.error("Unsupported Codec Name received:",st);Ct="settings.streamingProfiles.codecH265_bit"}this.translateService.get(Ct,{bitDepth:ae}).subscribe($n=>{this.codecNameString=$n})}else st===i.Or.Gfn.Streaming.Codec.AV1?this.codecNameString="settings.streamingProfiles.codecAV1":st===i.Or.Gfn.Streaming.Codec.H264?this.codecNameString="settings.streamingProfiles.codecH264":st===i.Or.Gfn.Streaming.Codec.H265?this.codecNameString="settings.streamingProfiles.codecH265":this.logger.error("Unsupported Codec Name received:",st)}handleUIEvent(ae){this.uiOpen||(this.oscDisplayService.openNonInteractiveOSC(),this.uiOpen=!0),this.statsStarted=Date.now(),this.statsState=ae,this.openedPosition=this.getPosition(),this.changed.emit()}overlayClosed(){const ae=Date.now()-this.statsStarted;this.telemetryService.sendStatsClosedTelemetry(ae,this.openedPosition,this.useSize)}getPosition(){return this.osdService.getPosition(r.lb6.Statistics)}getDimensions(){return this.statsOverlay?this.statsOverlay.nativeElement.getBoundingClientRect():null}getGpuMappings(){this.getCloudVarSub=this.experienceControlService.getCloudVariable(this.appConfig.gxTarget.experiences.enableGpuNameMappingV2,{},{useCache:!0,useNetworkTimeoutForCacheFallback:!0},se.Ky.GxTargetGetCloudVariable,se.Id.Other).pipe((0,_.T)(ae=>{ae.value.enableGpuNameMapping&&this.findVisibleGpuName(ae.value.gpuNameMap)}),(0,S.W)(ae=>(this.logger.info("GxTargetGetFeatureEnabled fetch error",ae),this.hideGpuName=!0,(0,d.of)(!0)))).subscribe()}findVisibleGpuName(ae){const st=ae.findIndex(Ct=>Ct.gpuName===this.gpuFriendlyName);st>=0&&(this.hideGpuName=!1,this.userVisibleGpuName=this.isGuestAppFlow?ae[st].mappedGdnGpuName:ae[st].mappedGpuName,""===this.userVisibleGpuName&&(this.logger.info("GPU name mapped to empty string so hiding the GPU name"),this.hideGpuNameISSO()),this.logger.info("GPU VisibleName: ",this.userVisibleGpuName))}static{this.\u0275fac=function(st){return new(st||Rn)(c.rXU(c.zZn),c.rXU(r.k$F),c.rXU(m.J6),c.rXU(r.rJX),c.rXU(r.x_y),c.rXU(r.Bqk),c.rXU(r.auo),c.rXU(Se.c$),c.rXU(r.xRl),c.rXU(se.BW),c.rXU(Ce.up),c.rXU(r.Rvq),c.rXU(E.tp))}}static{this.\u0275cmp=c.VBU({type:Rn,selectors:[["nv-statistics-overlay"]],viewQuery:function(st,Ct){if(1&st&&c.GBs(Xe,7),2&st){let $n;c.mGM($n=c.lsd())&&(Ct.statsOverlay=$n.first)}},outputs:{changed:"changed"},decls:3,vars:3,consts:[["statsOverlay",""],["class","stat-window osd-general",3,"font-body2","font-body-largefont0",4,"ngIf"],[1,"stat-window","osd-general"],["fxLayout","column"],["class","gpu-window","fxLayout","row",4,"ngIf"],["fxLayoutAlign","space-between center",3,"fxLayout"],["class","compact-box box-space",3,"compact-box-width","compact-box-width-enlargefont",4,"ngIf"],[1,"compact-box","box-space"],["fxFlexAlign","center"],[1,"compact-text-spacing1"],[1,"compact-text-unit"],[1,"compact-text-ellipsis","compact-text-short"],[1,"compact-text-ellipsis","compact-text-long"],[1,"compact-box"],["fxLayout","column",4,"ngIf"],["fxLayout","row",1,"gpu-window"],["svgIcon","gpuBranding",1,"gpu-icon","flip-rtl-element"],[1,"gpu-name"],[1,"nv-gap-8"],["fxFlex","","fxLayoutAlign","center center",1,"server-box"],[1,"header-text","header-first"],[1,"subheader-text1","normal-color"],["fxLayout","row",1,"standard-holder","margin-bottom-9"],["fxFlex","",1,"standard-label"],["fxLayoutAlign","end start",1,"standard-data"],["fxLayout","row",1,"standard-holder","margin-bottom-12"],["class","standard-holder margin-bottom-12","fxLayout","row",3,"font-body2","font-body-largefont0",4,"ngIf"],[1,"standard-base"],[1,"standard-post"],[4,"ngIf"],[1,"header-text"],["class","inline-badge",4,"ngIf"],["class","standard-holder extra-bottom","fxLayout","row",3,"font-body2","font-body-largefont0",4,"ngIf"],["fxLayout","row",1,"standard-holder","extra-bottom"],[1,"standard-base","standard-data"],[3,"class",4,"ngIf"],["fxLayout","row",1,"standard-holder"],[1,"inline-badge"]],template:function(st,Ct){1&st&&(c.j41(0,"div",null,0),c.DNE(2,Pe,40,75,"div",1),c.k0s()),2&st&&(c.AVh("row-layout",Ct.rowLayout),c.R7$(2),c.Y8G("ngIf",0!==Ct.statsState))},dependencies:[I.bT,V.DJ,V.sA,V.R$,V.UI,E.An,Be.$,I.Pc,Se.D9],styles:['.nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.osd-general[_ngcontent-%COMP%]{opacity:.9}.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top left}.isLtr.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-topcenter[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topcenter [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top center}.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top right}.isLtr.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{transform-origin:center right}.isLtr.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom left}.isLtr.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-bottomcenter[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomcenter [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom center}.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom right}.isLtr.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{transform-origin:center left}.isLtr.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-topright[_nghost-%COMP%], .osd-topright [_nghost-%COMP%], .osd-bottomright[_nghost-%COMP%], .osd-bottomright [_nghost-%COMP%], .osd-centerright[_nghost-%COMP%], .osd-centerright [_nghost-%COMP%], .osd-topright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-centerright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-direction:column-reverse}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}.stat-window[_ngcontent-%COMP%]{background-color:#000;transform:scale(.8)}.isLtr[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%]{padding:16px}html[dir=ltr][_ngcontent-%COMP%] .stat-window[_ngcontent-%COMP%]{--dummy: 0;padding:16px}.isRtl[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%]{padding:16px}html[dir=rtl][_ngcontent-%COMP%] .stat-window[_ngcontent-%COMP%]{--dummy: 0;padding:16px}.gpu-window[_ngcontent-%COMP%]{margin-bottom:14px}.gpu-name[_ngcontent-%COMP%]{color:#fff}.isLtr[_nghost-%COMP%] .gpu-name[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .gpu-name[_ngcontent-%COMP%]{padding:1px 0 0 4px}html[dir=ltr][_ngcontent-%COMP%] .gpu-name[_ngcontent-%COMP%]{--dummy: 0;padding:1px 0 0 4px}.isRtl[_nghost-%COMP%] .gpu-name[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .gpu-name[_ngcontent-%COMP%]{padding:1px 4px 0 0}html[dir=rtl][_ngcontent-%COMP%] .gpu-name[_ngcontent-%COMP%]{--dummy: 0;padding:1px 4px 0 0}.gpu-icon[_ngcontent-%COMP%]{height:28px;width:24px}.isLtr[_nghost-%COMP%] .box-space[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .box-space[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .box-space[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .box-space[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .box-space[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .box-space[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.compact-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:#393939}.compact-box-width[_ngcontent-%COMP%]{width:112px}.compact-box-width-enlargefont[_ngcontent-%COMP%]{width:118px}.server-box[_ngcontent-%COMP%]{width:100%;height:24px;background-color:#393939}.compact-text[_ngcontent-%COMP%]{line-height:20px;font-size:12px;font-weight:700;color:#ffffffb3;text-align:center;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.compact-text-enlarged[_ngcontent-%COMP%]{line-height:28px;font-size:18px;font-weight:700;color:#ffffffb3;text-align:center;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.compact-text-unit[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;font-size:12px}.compact-text-spacing1[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:0;margin-bottom:8px}.compact-text-spacing2[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:2px}.compact-text-empty[_ngcontent-%COMP%]{margin-bottom:20px}.header-first[_ngcontent-%COMP%]{margin-top:24px}.header-text[_ngcontent-%COMP%], .subheader-text1[_ngcontent-%COMP%]{margin-bottom:12px}.standard-holder[_ngcontent-%COMP%]{line-height:24px}.standard-holder.margin-bottom-9[_ngcontent-%COMP%]{margin-bottom:9px}.standard-holder.margin-bottom-12[_ngcontent-%COMP%]{margin-bottom:12px}.standard-label[_ngcontent-%COMP%]{width:150px}.isLtr[_nghost-%COMP%] .standard-label[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .standard-label[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .standard-label[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .standard-label[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .standard-label[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .standard-label[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.standard-data[_ngcontent-%COMP%]{width:185px}.isLtr[_nghost-%COMP%] .standard-data[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .standard-data[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .standard-data[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .standard-data[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .standard-data[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .standard-data[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.standard-base[_ngcontent-%COMP%], .standard-post[_ngcontent-%COMP%], .standard-wrap[_ngcontent-%COMP%]{font-weight:500}.isLtr[_nghost-%COMP%] .standard-base[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .standard-base[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .standard-post[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .standard-post[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .standard-wrap[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .standard-wrap[_ngcontent-%COMP%]{text-align:right}html[dir=ltr][_ngcontent-%COMP%] .standard-base[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .standard-post[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .standard-wrap[_ngcontent-%COMP%]{--dummy0: 0;text-align:right}.isRtl[_nghost-%COMP%] .standard-base[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .standard-base[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .standard-post[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .standard-post[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .standard-wrap[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .standard-wrap[_ngcontent-%COMP%]{text-align:left}html[dir=rtl][_ngcontent-%COMP%] .standard-base[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .standard-post[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .standard-wrap[_ngcontent-%COMP%]{--dummy0: 0;text-align:left}.standard-wrap[_ngcontent-%COMP%]{white-space:nowrap}.isLtr[_nghost-%COMP%] .standard-post[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .standard-post[_ngcontent-%COMP%]{padding-left:3px}html[dir=ltr][_ngcontent-%COMP%] .standard-post[_ngcontent-%COMP%]{--dummy1: 0;padding-left:3px}.isRtl[_nghost-%COMP%] .standard-post[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .standard-post[_ngcontent-%COMP%]{padding-right:3px}html[dir=rtl][_ngcontent-%COMP%] .standard-post[_ngcontent-%COMP%]{--dummy1: 0;padding-right:3px}.extra-bottom[_ngcontent-%COMP%]{margin-bottom:8px}.separator[_ngcontent-%COMP%]{font-weight:500}.isLtr[_nghost-%COMP%] .separator[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .separator[_ngcontent-%COMP%]{padding-left:3px}html[dir=ltr][_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{--dummy1: 0;padding-left:3px}.isRtl[_nghost-%COMP%] .separator[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .separator[_ngcontent-%COMP%]{padding-right:3px}html[dir=rtl][_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{--dummy1: 0;padding-right:3px}.isLtr[_nghost-%COMP%] .separator[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .separator[_ngcontent-%COMP%]{padding-right:3px}html[dir=ltr][_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{--dummy2: 0;padding-right:3px}.isRtl[_nghost-%COMP%] .separator[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .separator[_ngcontent-%COMP%]{padding-left:3px}html[dir=rtl][_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{--dummy2: 0;padding-left:3px}.bright-color[_ngcontent-%COMP%]{color:#fff}.normal-color[_ngcontent-%COMP%]{color:#ffffffb3}.warning-color[_ngcontent-%COMP%]{color:#ffb43e}.error-color[_ngcontent-%COMP%]{color:#e02828}.isLtr.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], html[dir=ltr] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], html[dir=rtl] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.isLtr.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], html[dir=ltr] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], html[dir=rtl] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.tv-view[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%]{width:576px}.tv-view[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .gpu-window[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .gpu-window[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .gpu-window[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .gpu-window[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:48px;height:48px;width:48px}.tv-view[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .compact-box[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .compact-box[_ngcontent-%COMP%]{width:100%}.tv-view[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .compact-text-unit[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .compact-text-unit[_ngcontent-%COMP%]{font-size:24px}.tv-view[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .compact-text[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .compact-text[_ngcontent-%COMP%]{line-height:32px;font-size:24px}.tv-view[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .standard-holder[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .standard-holder[_ngcontent-%COMP%]{line-height:38px}.tv-view[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .inline-badge[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .inline-badge[_ngcontent-%COMP%]{font-size:24px;line-height:32px;padding:0 6px}.isLtr.tv-view[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .inline-badge[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .inline-badge[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .inline-badge[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .inline-badge[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .inline-badge[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .inline-badge[_ngcontent-%COMP%]{margin-left:14px}html[dir=ltr] .tv-view[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .inline-badge[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .inline-badge[_ngcontent-%COMP%]{--dummy3: 0;margin-left:14px}.isRtl.tv-view[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .inline-badge[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .inline-badge[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .inline-badge[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .inline-badge[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .inline-badge[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .inline-badge[_ngcontent-%COMP%]{margin-right:14px}html[dir=rtl] .tv-view[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .inline-badge[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .inline-badge[_ngcontent-%COMP%]{--dummy3: 0;margin-right:14px}.inline-badge[_ngcontent-%COMP%]{position:relative;display:inline-flex;align-items:center;justify-content:center;font-weight:700!important;color:#afafaf!important;box-sizing:border-box;white-space:nowrap;font-size:12px;line-height:16px;padding:0 3px;margin-top:4px}.isLtr[_nghost-%COMP%] .inline-badge[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .inline-badge[_ngcontent-%COMP%]{margin-left:7px}html[dir=ltr][_ngcontent-%COMP%] .inline-badge[_ngcontent-%COMP%]{--dummy3: 0;margin-left:7px}.isRtl[_nghost-%COMP%] .inline-badge[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .inline-badge[_ngcontent-%COMP%]{margin-right:7px}html[dir=rtl][_ngcontent-%COMP%] .inline-badge[_ngcontent-%COMP%]{--dummy3: 0;margin-right:7px}.inline-badge[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;border:1px solid #afafaf;opacity:.6}.row-layout[_ngcontent-%COMP%] .stat-window[_ngcontent-%COMP%]{background-color:#000000bf;width:200px;margin:0;padding:4px}.row-layout[_ngcontent-%COMP%] .gpu-window[_ngcontent-%COMP%]{margin-bottom:3px;align-items:center}.row-layout[_ngcontent-%COMP%] .gpu-window[_ngcontent-%COMP%] .gpu-icon[_ngcontent-%COMP%]{height:16px;width:16px}.row-layout[_ngcontent-%COMP%] .gpu-name[_ngcontent-%COMP%]{padding:0}.row-layout[_ngcontent-%COMP%] .compact-box[_ngcontent-%COMP%]{width:-webkit-fill-available;width:-moz-available;width:stretch;align-items:center;margin:1px 0;background:#636363;opacity:.75;height:28px;flex-direction:row}.isLtr[_nghost-%COMP%] .row-layout[_ngcontent-%COMP%] .compact-box[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .row-layout[_ngcontent-%COMP%] .compact-box[_ngcontent-%COMP%]{padding:0 4px 0 8px}html[dir=ltr][_ngcontent-%COMP%] .row-layout[_ngcontent-%COMP%] .compact-box[_ngcontent-%COMP%]{--dummy: 0;padding:0 4px 0 8px}.isRtl[_nghost-%COMP%] .row-layout[_ngcontent-%COMP%] .compact-box[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .row-layout[_ngcontent-%COMP%] .compact-box[_ngcontent-%COMP%]{padding:0 8px 0 4px}html[dir=rtl][_ngcontent-%COMP%] .row-layout[_ngcontent-%COMP%] .compact-box[_ngcontent-%COMP%]{--dummy: 0;padding:0 8px 0 4px}.row-layout[_ngcontent-%COMP%] .compact-text-unit[_ngcontent-%COMP%]{align-items:baseline}.row-layout[_ngcontent-%COMP%] .compact-text-spacing1[_ngcontent-%COMP%]{margin:0 4px;align-items:center;flex-grow:1;justify-content:space-between;flex-direction:row;width:-webkit-fill-available}.row-layout[_ngcontent-%COMP%] .compact-text-spacing2[_ngcontent-%COMP%]{line-height:16px;font-size:16px;margin:0}.row-layout[_ngcontent-%COMP%] .compact-text[_ngcontent-%COMP%]{font-size:12px;line-height:16px;font-weight:400;padding:0;color:#ffffffe6}.row-layout[_ngcontent-%COMP%] .compact-text-ellipsis[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.row-layout[_ngcontent-%COMP%] .compact-text-short[_ngcontent-%COMP%]{max-width:32px}.row-layout[_ngcontent-%COMP%] .compact-text-long[_ngcontent-%COMP%]{max-width:86px}.row-layout[_ngcontent-%COMP%] .server-box[_ngcontent-%COMP%]{background-color:unset;margin-bottom:4px}.row-layout[_ngcontent-%COMP%] .server-box[_ngcontent-%COMP%] .compact-text[_ngcontent-%COMP%]{font-weight:500;color:#ffffffb3}']})}}return Rn})();var At=s(31315),Le=s(53461);const Et=["networkStatusIndicator"],$e=(Rn,Xn)=>({"icon-warning":Rn,"icon-error":Xn});function Ze(Rn,Xn){if(1&Rn&&(c.j41(0,"div",2)(1,"div",3),c.nrm(2,"mat-icon",4),c.k0s()()),2&Rn){const ae=c.XpG();c.R7$(2),c.Y8G("ngClass",c.l_i(1,$e,ae.iconWarning,ae.iconAlert))}}let Qe=(()=>{class Rn{constructor(ae,st){this.gfnInfoService=ae,this.showAny=!0,this.iconWarning=!1,this.iconAlert=!1,this.viewInit=!1,this.changed=new c.bkB,this.logger=st.getLogger("NetworkStatusComponent"),this.setup()}setup(){if(!this.viewInit)return;const ae=this.gfnInfoService.getNetworkWarningsEnabledState(),st=this.gfnInfoService.getNetworkState();this.networkStateSub=(0,At.zV)([ae,st]).pipe((0,Le.F)()).subscribe(([Ct,$n])=>{this.showAny=Ct&&$n!==r.$0i.NORMAL,this.iconWarning=$n===r.$0i.WARNING,this.iconAlert=$n===r.$0i.ALERT,this.changed.emit()})}ngAfterViewInit(){this.viewInit=!0,setTimeout(()=>this.setup(),0)}ngOnDestroy(){this.networkStateSub?.unsubscribe()}getDimensions(){return this.networkStatusIndicator?this.networkStatusIndicator.nativeElement.getBoundingClientRect():null}static{this.\u0275fac=function(st){return new(st||Rn)(c.rXU(r.x_y),c.rXU(m.J6))}}static{this.\u0275cmp=c.VBU({type:Rn,selectors:[["nv-network-status"]],viewQuery:function(st,Ct){if(1&st&&c.GBs(Et,7),2&st){let $n;c.mGM($n=c.lsd())&&(Ct.networkStatusIndicator=$n.first)}},outputs:{changed:"changed"},decls:3,vars:1,consts:[["networkStatusIndicator",""],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxLayout","row","fxLayoutAlign","center center",1,"osd-general","osd-status-image"],["svgIcon","network_signal",3,"ngClass"]],template:function(st,Ct){1&st&&(c.j41(0,"div",null,0),c.DNE(2,Ze,3,4,"div",1),c.k0s()),2&st&&(c.R7$(2),c.Y8G("ngIf",Ct.showAny))},dependencies:[I.YU,I.bT,V.DJ,V.sA,T.PW,E.An],styles:[".osd-general[_ngcontent-%COMP%]{opacity:.9}.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top left}.isLtr.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-topcenter[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topcenter [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top center}.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top right}.isLtr.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{transform-origin:center right}.isLtr.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom left}.isLtr.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-bottomcenter[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomcenter [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom center}.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom right}.isLtr.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{transform-origin:center left}.isLtr.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-topright[_nghost-%COMP%], .osd-topright [_nghost-%COMP%], .osd-bottomright[_nghost-%COMP%], .osd-bottomright [_nghost-%COMP%], .osd-centerright[_nghost-%COMP%], .osd-centerright [_nghost-%COMP%], .osd-topright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-centerright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-direction:column-reverse}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.osd-status-image[_ngcontent-%COMP%]{width:24px;height:24px;background-color:#000c}.osd-status-image[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{line-height:18px;font-size:18px;height:18px;width:18px}"]})}}return Rn})();var Ve=s(60990),nt=s(40514);const Ot=["perfOverlay"],at=(Rn,Xn)=>({"perf-overlay-container":Rn,"perf-overlay-container-enhanced":Xn}),It=Rn=>({"metric-row":Rn}),We=Rn=>({"metric-stacked":Rn}),xe=Rn=>({padding:Rn});function lt(Rn,Xn){if(1&Rn&&(c.j41(0,"span",11),c.EFF(1),c.nI1(2,"translate"),c.k0s()),2&Rn){const ae=c.XpG(2).$implicit,st=c.XpG(3);c.Y8G("ngStyle",st.metricNameStyle),c.R7$(),c.JRh(c.bMT(2,2,st.getCategoryName(ae)))}}function ft(Rn,Xn){if(1&Rn&&(c.j41(0,"span",11),c.EFF(1),c.nI1(2,"translate"),c.k0s()),2&Rn){const ae=c.XpG(2).$implicit,st=c.XpG(5);c.Y8G("ngStyle",st.metricNameStyle),c.R7$(),c.JRh(c.bMT(2,2,st.getMetricName(ae)))}}function ht(Rn,Xn){if(1&Rn&&(c.j41(0,"span",19),c.EFF(1),c.k0s()),2&Rn){const ae=c.XpG(2).$implicit,st=c.XpG(5);c.Y8G("ngStyle",c.eq3(2,xe,st.isFpsOnlyView?"0 0 0 4px":null)),c.R7$(),c.JRh(st.showDlssOrPerfValue(ae))}}function Xt(Rn,Xn){if(1&Rn&&c.nrm(0,"span",20),2&Rn){const ae=c.XpG(2).$implicit,st=c.XpG(5);c.Y8G("ngStyle",c.eq3(2,xe,st.isFpsOnlyView?"0 0 0 4px":null))("innerHTML",st.dlssMetricValueUpdate(st.showDlssOrPerfValue(ae)),c.npT)}}function Ht(Rn,Xn){if(1&Rn&&(c.j41(0,"span",21),c.EFF(1),c.nI1(2,"translate"),c.k0s()),2&Rn){const ae=c.XpG(2).$implicit;c.R7$(),c.SpI("\xa0",c.bMT(2,1,ae.unit),"")}}function Je(Rn,Xn){if(1&Rn&&(c.j41(0,"div",14),c.DNE(1,ft,3,4,"span",8),c.j41(2,"div",15),c.DNE(3,ht,2,4,"span",16)(4,Xt,1,4,"span",17)(5,Ht,3,3,"span",18),c.k0s()()),2&Rn){const ae=c.XpG().$implicit,st=c.XpG(5);c.Y8G("fxLayoutAlign",st.metricMultiLine(ae)?"space-between start":"space-between center"),c.R7$(),c.Y8G("ngIf",st.showMetricName()),c.R7$(),c.Y8G("ngStyle",st.metricInfoStyle),c.R7$(),c.Y8G("ngIf",!st.isMetricValueMultiLIne(ae.category)),c.R7$(),c.Y8G("ngIf",st.isMetricValueMultiLIne(ae.category)),c.R7$(),c.Y8G("ngIf",!ae.isUnitHidden)}}function tt(Rn,Xn){if(1&Rn&&(c.j41(0,"div",12),c.DNE(1,Je,6,6,"div",13),c.k0s()),2&Rn){const ae=Xn.$implicit,st=c.XpG(5);c.Y8G("ngClass",c.eq3(2,We,st.showMetricName())),c.R7$(),c.Y8G("ngIf",ae.visible)}}function rt(Rn,Xn){if(1&Rn&&(c.j41(0,"div",22),c.EFF(1," \xa0 "),c.k0s()),2&Rn){const ae=c.XpG(5);c.Y8G("ngStyle",ae.dividerStyle)}}function et(Rn,Xn){if(1&Rn&&(c.j41(0,"div",7),c.DNE(1,lt,3,4,"span",8)(2,tt,2,4,"div",9)(3,rt,2,1,"div",10),c.k0s()),2&Rn){const ae=c.XpG(),st=ae.$implicit,Ct=ae.index,$n=ae.last,Gi=c.XpG(2).$implicit,Sr=c.XpG();c.R7$(),c.Y8G("ngIf",Sr.showCategoryName()),c.R7$(),c.Y8G("ngForOf",st),c.R7$(),c.Y8G("ngIf",Sr.showDivider(Gi,st,Ct-1)&&!$n)}}function St(Rn,Xn){if(1&Rn&&(c.j41(0,"div"),c.DNE(1,et,4,3,"div",6),c.k0s()),2&Rn){const ae=Xn.$implicit,st=c.XpG(3);c.R7$(),c.Y8G("ngIf",st.showCategory(ae))}}function Gt(Rn,Xn){if(1&Rn&&(c.j41(0,"div",5),c.DNE(1,St,2,1,"div",3),c.k0s()),2&Rn){const ae=c.XpG(),st=ae.$implicit;c.Y8G("ngClass",c.eq3(2,It,!ae.first)),c.R7$(),c.Y8G("ngForOf",st)}}function yt(Rn,Xn){if(1&Rn&&(c.qex(0),c.DNE(1,Gt,2,4,"div",4),c.bVm()),2&Rn){const ae=Xn.index,st=c.XpG();c.R7$(),c.Y8G("ngIf",st.showRow(ae))}}let Lt=(()=>{class Rn{constructor(ae,st,Ct){this.loggingService=ae,this.perfMonService=st,this.ngxService=Ct,this.destroy$=new l.B7,this.activeMetrics=[],this.throttleDuration=500,this.metricRows=[],this.isEnhancedMode=!1,this.isStackedLayout=!1,this.isRLAEnabled=!1,this.isFpsOnlyView=!1,this.created=new c.bkB,this.logger=this.loggingService.getLogger("PerformanceOverlayComponent"),this.logger.info("constructor")}ngAfterContentInit(){this.logger.info("ngAfterViewInit"),this.updateAndFormatMetricSet(),this.perfMonService.getActiveLayout(),this.created.emit()}ngOnInit(){this.logger.info("ngOnInit"),this.perfMonService.listenVisibilityChanges().pipe((0,f.Q)(this.destroy$)).subscribe(()=>{this.updateAndFormatMetricSet()})}ngOnDestroy(){this.logger.info("ngOnDestroy"),this.destroy$.next(!0),this.destroy$.unsubscribe()}showDivider(ae,st,Ct){return!(this.isStackedLayout||this.metricSet.id===r.NpC.FPS||!st?.length||ae.length===Ct+1||0===ae[Ct+1]?.filter($n=>$n.visible).length)&&(st[0]?.category!==r.TEj.FPS||st[0]?.visible)}showMetricName(){return this.isStackedLayout&&this.metricSet?.id!==r.NpC.FPS}showMetricShortNameDlss(){return!this.isStackedLayout}getMetricName(ae){if(this.activeLayout===r.pwE.Stacked)return ae.shortName}showCategoryName(){return!this.isStackedLayout&&this.metricSet.id!==r.NpC.FPS}getCategoryName(ae){const st=ae.filter(Ct=>Ct.visible);return st.length>0?r.f1P[st[0].category].shortName:""}showCategory(ae){return ae.filter(Ct=>Ct.visible).length>0}showRow(ae){return!this.isStackedLayout||this.metricRows[ae][0][0]?.visible}showRowMargin(ae){return!this.isStackedLayout||this.metricRows[ae][0][0]?.visible}getDimensions(){this.logger.info("getDimensions");const ae=this.perfOverlayComponent?this.perfOverlayComponent.nativeElement.getBoundingClientRect():null,st=this.perfMonService.getMetricSet();if(ae){let Ct;Ct=this.activeLayout===r.pwE.Linear&&st===r.NpC.Advanced?100:26,ae.width=Math.round(ae.width)+Ct,ae.x=Math.round(ae.x);const $n=this.getOverlayLogicalWidth();ae.x=ae.x-Math.round(Ct*(ae.x/$n)),ae.x<0&&(ae.x=0),ae.x+ae.width>$n&&(ae.x=$n-ae.width)}return ae}getOverlayLogicalWidth(){const ae=this.perfMonService.getCurrentDisplayMode();let st;if(ae&&ae.width&&ae.height){const Gi=Math.min(ae.height/1080,ae.width/1920);st=ae.width/Gi}else st=1920;return this.logger.info("overlayLogicalWidth:",st),st}groupMetricCategories(ae){const st=[];return Object.values(r.TEj).filter($n=>!isNaN(Number($n))).forEach($n=>{const Gi=ae.filter(Sr=>Sr.category===$n);Gi.length&&st.push(Gi)}),st}updateAndFormatMetricSet(){this.logger.info("updateAndFormatMetricSet");const ae=this.perfMonService.getMetricSet();this.metricSet=r.oXh.find(Ct=>Ct.id===ae);const st=this.perfMonService.getPerfData(0);switch(this.activeMetrics=[],this.metricSet?.metrics.forEach(Ct=>{const $n=st?.find(Gi=>Gi.metricId===Ct);$n&&(ae!==r.NpC.Custom||$n.isCustomSelected)&&(this.perfMonService.updateMetricVisibility($n),this.activeMetrics.push($n))}),this.logger.info("activeView:",this.metricSet.id),this.isFpsOnlyView=this.metricSet.id===r.NpC.FPS,this.metricRows=[],this.activeLayout=this.perfMonService.getActiveLayout(),this.logger.info("activeLayout:",this.activeLayout),this.isStackedLayout=this.activeLayout===r.pwE.Stacked,this.activeLayout){case r.pwE.Linear:const Ct=this.groupMetricCategories(this.activeMetrics);this.metricRows.push(Ct);break;case r.pwE.Double:const $n=this.groupMetricCategories(this.activeMetrics);if(this.metricSet.id===r.NpC.FPS)this.metricRows.push([$n[0]]);else{const Gi=Math.floor($n.length/2),Sr=$n.length-Gi;this.metricRows.push($n.splice(0,Gi)),this.metricRows.push($n.splice(-Sr))}break;case r.pwE.Stacked:this.activeMetrics.forEach(Gi=>{const Sr=[];Sr.push([Gi]),this.metricRows.push(Sr)})}this.isEnhancedMode=this.perfMonService.getOverlayFontSize()===r.si$.Large}metricMultiLine(ae){return this.isMetricValueMultiLIne(ae.category)&&ae.value.length>=8}dlssMetricValueUpdate(ae){return ae.replace(", ",",<br>")}isMetricValueMultiLIne(ae){return this.activeLayout===r.pwE.Stacked&&(ae===r.TEj.DLSSSR||ae===r.TEj.DLSSRR)}getCustomMetricColour(){return 5===this.perfMonService?.getOverlayFontColor()?this.perfMonService?.getOverlayCustomFontColor():r.Bni[this.perfMonService?.getOverlayFontColor()]}get metricInfoStyle(){return{"min-width":this.isFpsOnlyView?"0":null,color:this.getCustomMetricColour()}}get metricNameStyle(){return{color:this.getCustomMetricColour()}}get backgroundOpacityStyle(){return{"background-color":"rgba(0, 0, 0, "+(this.perfMonService.getOverlayBackgroundOpacity()/100).toString()+")"}}get dividerStyle(){return{"border-left-color":this.getCustomMetricColour()}}showDlssOrPerfValue(ae){let st=ae.value;return this.isStackedLayout||(this.perfMonService.getMetricSet()===r.NpC.Custom?("dlssfgmodel"===ae.metricId&&this.perfMonService.getDlssFGCustomSelected()||"dlsssrmodel"===ae.metricId&&this.perfMonService.getDlssSRCustomSelected()||"dlssrrmodel"===ae.metricId&&this.perfMonService.getDlssRRCustomSelected())&&(st+=","):this.perfMonService.getMetricSet()===r.NpC.DLSS&&("dlssfgmodel"===ae.metricId||"dlsssrmodel"===ae.metricId||"dlssrrmodel"===ae.metricId)&&(st+=",")),st}static{this.\u0275fac=function(st){return new(st||Rn)(c.rXU(m.J6),c.rXU(r.zET),c.rXU(r.zX$))}}static{this.\u0275cmp=c.VBU({type:Rn,selectors:[["nv-performance-overlay"]],viewQuery:function(st,Ct){if(1&st&&c.GBs(Ot,7),2&st){let $n;c.mGM($n=c.lsd())&&(Ct.perfOverlayComponent=$n.first)}},outputs:{created:"created"},decls:4,vars:6,consts:[["perfOverlay",""],["fxLayout","column",1,"osd-general"],[3,"ngClass","ngStyle"],[4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start end",3,"ngClass",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start end",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end"],["class","metric-name",3,"ngStyle",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],["class","divider",3,"ngStyle",4,"ngIf"],[1,"metric-name",3,"ngStyle"],[3,"ngClass"],["fxLayout","row",3,"fxLayoutAlign",4,"ngIf"],["fxLayout","row",3,"fxLayoutAlign"],["fxLayout","row","fxLayoutAlign","center center",1,"metric-info",3,"ngStyle"],["class","metric-value",3,"ngStyle",4,"ngIf"],["class","metric-value dlss-metric-value",3,"ngStyle","innerHTML",4,"ngIf"],["class","metric-unit",4,"ngIf"],[1,"metric-value",3,"ngStyle"],[1,"metric-value","dlss-metric-value",3,"ngStyle","innerHTML"],[1,"metric-unit"],[1,"divider",3,"ngStyle"]],template:function(st,Ct){1&st&&(c.j41(0,"div",1,0)(2,"div",2),c.DNE(3,yt,2,1,"ng-container",3),c.k0s()()),2&st&&(c.R7$(2),c.Y8G("ngClass",c.l_i(3,at,Ct.activeMetrics.length>0,Ct.isEnhancedMode))("ngStyle",Ct.backgroundOpacityStyle),c.R7$(),c.Y8G("ngForOf",Ct.metricRows))},dependencies:[I.YU,I.Sq,I.bT,I.B3,V.DJ,V.sA,T.PW,T.eI,Ve.r,nt.e,Se.D9],styles:['.nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.osd-general[_ngcontent-%COMP%]{opacity:.9}.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top left}.isLtr.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-topcenter[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topcenter [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top center}.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top right}.isLtr.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{transform-origin:center right}.isLtr.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom left}.isLtr.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-bottomcenter[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomcenter [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom center}.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom right}.isLtr.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{transform-origin:center left}.isLtr.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-topright[_nghost-%COMP%], .osd-topright [_nghost-%COMP%], .osd-bottomright[_nghost-%COMP%], .osd-bottomright [_nghost-%COMP%], .osd-centerright[_nghost-%COMP%], .osd-centerright [_nghost-%COMP%], .osd-topright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-centerright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-direction:column-reverse}.perf-overlay-container[_ngcontent-%COMP%]{padding:10px}.metric-row[_ngcontent-%COMP%]{margin-top:10px}.metric-name[_ngcontent-%COMP%]{font-size:14px;line-height:14px;font-weight:400;max-width:120px}.metric-info[_ngcontent-%COMP%]{min-width:34px}.metric-value[_ngcontent-%COMP%]{font-size:14px;line-height:14px;font-weight:700}.isLtr[_nghost-%COMP%] .metric-value[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .metric-value[_ngcontent-%COMP%]{padding:0 0 0 6px}html[dir=ltr][_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{--dummy: 0;padding:0 0 0 6px}.isRtl[_nghost-%COMP%] .metric-value[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .metric-value[_ngcontent-%COMP%]{padding:0 6px 0 0}html[dir=rtl][_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{--dummy: 0;padding:0 6px 0 0}.dlss-metric-value[_ngcontent-%COMP%]{white-space:pre-line}.isLtr[_nghost-%COMP%] .dlss-metric-value[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .dlss-metric-value[_ngcontent-%COMP%]{text-align:right}html[dir=ltr][_ngcontent-%COMP%] .dlss-metric-value[_ngcontent-%COMP%]{--dummy0: 0;text-align:right}.isRtl[_nghost-%COMP%] .dlss-metric-value[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .dlss-metric-value[_ngcontent-%COMP%]{text-align:left}html[dir=rtl][_ngcontent-%COMP%] .dlss-metric-value[_ngcontent-%COMP%]{--dummy0: 0;text-align:left}.metric-unit[_ngcontent-%COMP%]{font-size:12px;line-height:12px;font-weight:700}.metric-category[_ngcontent-%COMP%]{width:100%}.divider[_ngcontent-%COMP%]{border-left-width:1px;border-left-style:solid;height:100%}.isLtr[_nghost-%COMP%] .divider[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .divider[_ngcontent-%COMP%]{margin:0 10px}html[dir=ltr][_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{--dummy: 0;margin:0 10px}.isRtl[_nghost-%COMP%] .divider[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .divider[_ngcontent-%COMP%]{margin:0 10px}html[dir=rtl][_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{--dummy: 0;margin:0 10px}.metric-stacked[_ngcontent-%COMP%]{width:260px}.perf-overlay-container-enhanced[_ngcontent-%COMP%] .perf-overlay-container[_ngcontent-%COMP%]{padding:15px}.perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-info[_ngcontent-%COMP%]{min-width:51px}.perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-name[_ngcontent-%COMP%], .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:21px;line-height:21px}.isLtr[_nghost-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-name[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-name[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{padding:0 0 0 9px}html[dir=ltr][_ngcontent-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-name[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{--dummy: 0;padding:0 0 0 9px}.isRtl[_nghost-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-name[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-name[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{padding:0 9px 0 0}html[dir=rtl][_ngcontent-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-name[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{--dummy: 0;padding:0 9px 0 0}.perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-name[_ngcontent-%COMP%]{max-width:175px}.perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-row[_ngcontent-%COMP%]{margin-top:15px}.perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-unit[_ngcontent-%COMP%]{font-size:18px;line-height:18px}.perf-overlay-container-enhanced[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{border-left-width:1.5px;border-left-style:"solid"}.perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-stacked[_ngcontent-%COMP%]{width:390px}']})}}return Rn})();var Zt=s(61904);let fn=(()=>{class Rn{constructor(ae,st,Ct,$n,Gi,Sr){this.hotkeyService=ae,this.loggingService=st,this.oscDisplayService=Ct,this.navigationService=$n,this.elementRef=Gi,this.overlayContainer=Sr,this.pointerEvents="auto",this.throttleDuration=500,this.isInInteractiveMode=!1,this.disableNonInteractiveSwitch=!1,this.isResizing=!1,this.destroy$=new l.B7,this.exemptedElementClasses=[],this.checkOutsideClick=Wr=>{if(this.isResizing)return void this.baseLogger.info("isResizing is true when checking for outside clicks");if(this.elementRef.nativeElement.contains(Wr.target)||this.overlayContainer.getContainerElement().contains(Wr.target))return;let Ir=!1;this.exemptedElementClasses.some(Cr=>{const Po=document.querySelector(Cr);return Ir=Po&&Po.contains(Wr.target),Ir}),Ir||(this.baseLogger.info("clicked outside"),this.isInInteractiveMode&&(this.toggleInteractiveMode(),this.onInteractiveModeChange()))},this.baseLogger=this.loggingService.getLogger("InteractivePersistentOverlayComponent")}ngOnInit(){this.baseLogger.info("ngOnInit"),this.registerEscapeEvents()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.baseLogger.info("ngOnDestroy"),this.isInInteractiveMode&&this.toggleInteractiveMode()}configureInteractiveModeHotkey(ae){this.baseLogger.info("configureInteractiveModeHotkey"),this.hotkeyService.listen(ae).pipe((0,f.Q)(this.destroy$),(0,O.c)(this.throttleDuration)).subscribe(()=>{this.toggleInteractiveMode()})}toggleInteractiveMode(){this.isInInteractiveMode&&this.disableNonInteractiveSwitch||(this.isInInteractiveMode=!this.isInInteractiveMode,this.baseLogger.info("toggle interactive mode to:",this.isInInteractiveMode),this.isInInteractiveMode?(this.oscDisplayService.openInteractiveModeForPersistentOverlay(),document.addEventListener("mousedown",this.checkOutsideClick)):(this.oscDisplayService.closeInteractiveModeForPersistentOverlay(),document.removeEventListener("mousedown",this.checkOutsideClick)))}onEscape(){this.isInInteractiveMode&&(this.toggleInteractiveMode(),this.onInteractiveModeChange())}registerEscapeEvents(){this.navigationService.escapeEvent().pipe((0,f.Q)(this.destroy$),(0,P.M)(()=>{this.onEscape()})).subscribe()}registerDisplayModeChangeEvent(){this.oscDisplayService.getCurrentDesktopMode().pipe((0,f.Q)(this.destroy$),(0,P.M)(ae=>{this.displayMode&&ae!==this.displayMode&&this.isInInteractiveMode&&(this.baseLogger.info("closing interactive mode on display mode change"),this.toggleInteractiveMode(),this.onInteractiveModeChange()),this.displayMode=ae})).subscribe()}onInteractiveModeChange(){}static{this.\u0275fac=function(st){return new(st||Rn)(c.rXU(r.QSC),c.rXU(m.J6),c.rXU(r.Bqk),c.rXU(r.o_p),c.rXU(c.aKT),c.rXU(Zt.Sf))}}static{this.\u0275cmp=c.VBU({type:Rn,selectors:[["igo-interactive-persistent-overlay"]],hostVars:2,hostBindings:function(st,Ct){2&st&&c.xc7("pointer-events",Ct.pointerEvents)},decls:0,vars:0,template:function(st,Ct){},encapsulation:2})}}return Rn})();var hn=s(8619),On=s(26513),fi=s(16229),Ji=s(13973);let Fi=0;var jt=s(25242);const ui=(Rn,Xn,ae=void 0)=>{const st=Sr=>null==Sr;if(0===Xn.length||st(Rn))return ae;let $n,Ct=Rn,Gi=0;for(;Gi<Xn.length;){const Sr=Xn[Number(Gi)];if($n=Ct["number"==typeof Sr?Number(Sr):`${Sr}`],st($n))return ae;Ct=$n,Gi+=1}return st($n)?ae:$n};function Ii(Rn){return Object.prototype.toString.call(Rn).slice(8,-1)}const pr=["Boolean","Number","String","Error","Date"];function ti(Rn,Xn){if(!Rn)return;let ae=0;const st=ui(Rn,["length"],0);for(;ae<st;)Xn(Rn[Number(ae)],ae),ae+=1;return Rn}function pi(Rn){if("object"!=typeof Rn||null===Rn)return Rn;const Xn=Ii(Rn);let ae=null;return"Set"!==Xn&&"Map"!==Xn&&"Array"!==Xn&&"Object"!==Xn?function zr(Rn){const Xn=Rn.constructor,ae=Ii(Rn);return pr.indexOf(ae)>-1?new Xn(Rn):"RegExp"===ae?function pn(Rn){const ae=new Rn.constructor(Rn.source,/\w*$/.exec(Rn));return ae.lastIndex=Rn.lastIndex,ae}(Rn):"Symbol"===ae?function Cn(Rn){return Object(Symbol.prototype.valueOf.call(Rn))}(Rn):"Function"===ae?Rn:null}(Rn):"Set"===Xn?(ae=new Set,Rn.forEach(st=>{ae.add(pi(st))}),ae):"Map"===Xn?(ae=new Map,Rn.forEach((st,Ct)=>{ae.set(Ct,pi(st))}),ae):("Array"===Xn&&(ae=[],ti(Rn,(st,Ct)=>{ae[Number(Ct)]=pi(st)})),"Object"===Xn&&(ae={},ti(Object.keys(Rn),st=>{ae[`${st}`]=pi(Rn[`${st}`])})),ae)}jt.t1.register(jt.Jy);const An=["#76b900","#4898E7","rgba(255, 205, 86, 1)","rgba(54, 162, 235, 1)","rgba(153, 102, 255, 1)"];var Jn={type:"line",data:{labels:void 0,datasets:void 0},options:{elements:{point:{}},line:{datasets:{}},layout:{padding:{left:3,right:12,bottom:3,top:3}},maintainAspectRatio:!1,responsive:!0,scales:{},plugins:{legend:{display:!0,labels:{color:"rgba(255, 255, 255, 0.7)"}},tooltip:{callbacks:{label:void 0}}}}};const xi=Rn=>{let Xn=[];try{Xn=JSON.parse(Rn)}catch{}const ae=Xn[0].data.map(Ct=>Ct.x),st=pi(Jn);return st.data.labels=ae,st.data.datasets=Xn.map((Ct,$n)=>({label:Ct.chartTitle,data:Ct.data.map(Gi=>Gi.y),pointBorderColor:An[$n],backgroundColor:An[$n],borderColor:An[$n],borderWidth:1,pointRadius:1,pointBackgroundColor:An[$n],pointHoverBackgroundColor:An[$n],hoverBackgroundColor:An[$n],hoverBorderColor:An[$n],xAxisID:0!==$n&&Ct.xUnit!==Xn[0].xUnit?`x${$n}`:"x",yAxisID:0!==$n&&Ct.yUnit!==Xn[0].yUnit?`y${$n}`:"y"})),st.options.scales=function hi(Rn){let Xn={};return Rn?.length>0&&Rn.forEach((ae,st)=>{const Ct=`x${0!==st?st:""}`,$n=`y${0!==st?st:""}`;0===st?(Xn={...Xn,x:{title:{display:"%"!==ae.xUnit,text:ae.xUnit,color:"rgba(255, 255, 255, 0.7)"},ticks:{callback:Gi=>"%"===ae.xUnit?Gi+"%":Gi,color:"rgba(255, 255, 255, 0.7)"},grid:{}},y:{position:"left",title:{display:"%"!==ae.yUnit,text:ae.yUnit,color:"rgba(255, 255, 255, 0.7)"},ticks:{callback:Gi=>"%"===ae.yUnit?Gi+"%":Gi,color:"rgba(255, 255, 255, 0.7)"},grid:{}}},void 0!==Xn.y&&void 0!==ae.yUpperLimit&&(Xn.y.max=ae.yUpperLimit),void 0!==Xn.y&&void 0!==ae.yLowerLimit&&(Xn.y.min=ae.yLowerLimit)):st>0&&(ae.xUnit!==Rn[0].xUnit&&(Xn={...Xn,[Ct]:{position:"top",title:{display:"%"!==ae.xUnit,text:ae.xUnit,color:"rgba(255, 255, 255, 0.7)"},ticks:{callback:Gi=>"%"===ae.xUnit?Gi+"%":Gi,color:"rgba(255, 255, 255, 0.7)"},grid:{drawOnChartArea:!1}}}),ae.yUnit!==Rn[0].yUnit&&(Xn={...Xn,[$n]:{position:"right",title:{display:"%"!==ae.yUnit,text:ae.yUnit,color:"rgba(255, 255, 255, 0.7)"},ticks:{callback:Gi=>"%"===ae.yUnit?Gi+"%":Gi,color:"rgba(255, 255, 255, 0.7)"},grid:{drawOnChartArea:!1}}},void 0!==Xn[$n]&&void 0!==ae.yUpperLimit&&(Xn[$n].max=ae.yUpperLimit),void 0!==Xn[$n]&&void 0!==ae.yLowerLimit&&(Xn[$n].min=ae.yLowerLimit)))}),Xn}(Xn),Xn.length>1&&(st.options.layout.padding.right=3),st.options.plugins.tooltip.callbacks.label=function(Ct){let $n=Ct.dataset.label||"";return $n&&($n+=": "),null!==Ct.parsed.y&&($n+=Ct.parsed.y,$n+=` ${Xn[Ct.datasetIndex].yUnit}`),$n},st};var xn=s(19724),Yn=s(98504),Gn=s(52834),Ci=s(47973),ln=s(44296),bi=s(44186),Zi=s(24616),Mr=s(26283),$r=s(89701),_o=s(17617);let bo=(()=>{class Rn{constructor(ae,st){this.data=ae,this.loggingService=st,this.downloadTooltipText="gAssist.tooltips.download",this.closeTooltipText="gAssist.tooltips.close",this.logger=this.loggingService.getLogger("ImageDialogComponent"),this.imageDataObj=ae}onDownload(){const ae=document.createElement("a");ae.href=this.data.imgSrc,ae.download=`project-g-assist-image-${(new Date).toLocaleString()}.jpg`,document.body.appendChild(ae),ae.click()}onClose(){this.logger.info("Close image modal")}static{this.\u0275fac=function(st){return new(st||Rn)(c.rXU(M.Vh),c.rXU(m.J6))}}static{this.\u0275cmp=c.VBU({type:Rn,selectors:[["igo-g-assist-image-dialog"]],standalone:!0,features:[c.aNF],decls:10,vars:9,consts:[[1,"dialog-container"],[1,"gassist-header-right"],[1,"header-btn","download-btn","gassist-state-btn",3,"click","matTooltip"],["svgIcon","download"],[1,"header-btn","gassist-state-btn",3,"mat-dialog-close","matTooltip"],["svgIcon","close"],[1,"dialog-content-container","img-container"],[1,"image",3,"src"]],template:function(st,Ct){1&st&&(c.j41(0,"div",0)(1,"div",1)(2,"button",2),c.nI1(3,"translate"),c.bIt("click",function(){return Ct.onDownload()}),c.nrm(4,"mat-icon",3),c.k0s(),c.j41(5,"button",4),c.nI1(6,"translate"),c.nrm(7,"mat-icon",5),c.k0s()(),c.j41(8,"div",6),c.nrm(9,"img",7),c.k0s()()),2&st&&(c.R7$(2),c.FS9("matTooltip",c.bMT(3,5,Ct.downloadTooltipText)),c.R7$(3),c.FS9("matTooltip",c.bMT(6,7,Ct.closeTooltipText)),c.Y8G("mat-dialog-close",Ct.onClose()),c.R7$(4),c.Y8G("src",Ct.data.imgSrc,c.B4B),c.BMQ("ref",Ct.data.imgRef))},dependencies:[_o.i,E.An,M.tx,bi.oV,Se.h,Se.D9],styles:[".dialog-container[_ngcontent-%COMP%] .img-container[_ngcontent-%COMP%]{margin:16px auto;flex:1;width:100%;height:100%}.dialog-container[_ngcontent-%COMP%] .img-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{object-fit:contain;width:100%;height:100%}.dialog-container[_ngcontent-%COMP%] .img-container[_ngcontent-%COMP%] .expand-icon[_ngcontent-%COMP%]{color:#fff;width:32px;height:32px}",".dialog-container[_ngcontent-%COMP%]{padding:0;height:100%;box-sizing:border-box;display:flex;flex-direction:column;z-index:50}.dialog-container[_ngcontent-%COMP%] .dialog-content-container[_ngcontent-%COMP%]{border:none;margin:auto;position:relative;display:flex;justify-content:center;align-items:center;min-height:320px;min-width:calc(40vw - 112px);width:100%;height:100%;flex-grow:1;padding:0 16px 16px;box-sizing:border-box}.dialog-container[_ngcontent-%COMP%] .header-btn[_ngcontent-%COMP%]{color:#fff;background:transparent;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;outline:none!important}.dialog-container[_ngcontent-%COMP%] .header-btn[data-disabled=true][_ngcontent-%COMP%]{opacity:.5;pointer-events:none}.dialog-container[_ngcontent-%COMP%] .gassist-header-right[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:12px 16px;background-color:#292929}.dialog-container[_ngcontent-%COMP%] .gassist-header-right.download-btn[_ngcontent-%COMP%]{width:24px;position:relative;top:1px}.g-assist-chart-dialog[_ngcontent-%COMP%] mat-dialog-container[_ngcontent-%COMP%] .mat-mdc-dialog-container .mdc-dialog__surface{border-radius:0}"]})}}return Rn})(),Kn=(()=>{class Rn{constructor(ae,st){this.dialog=st,this.image="",this.onLoad=()=>{},this.expanded=!1,this.imgSrc=`data:image/jpeg;base64,${this.image}`,this.imgRef="",this.logger=ae.getLogger("igo/RiseService")}openModal(){this.logger.info("Opened G-Assist Image");const ae=this.dialog.open(bo,{data:{imageData:this.image,imgSrc:this.imgSrc,imgRef:this.imgSrc},height:"40%",width:"40%",autoFocus:!0,position:{},panelClass:"g-assist-image-dialog",hasBackdrop:!1,disableClose:!1,restoreFocus:!0});ae?.afterOpened()?.subscribe(st=>{this.expanded=!0}),ae?.afterClosed()?.pipe((0,N.s)(1))?.subscribe(st=>{this.expanded=!1,this.logger.info("The image dialog was closed")})}static{this.\u0275fac=function(st){return new(st||Rn)(c.rXU(m.J6),c.rXU(M.bZ))}}static{this.\u0275cmp=c.VBU({type:Rn,selectors:[["igo-g-assist-image-element"]],inputs:{image:"image",onLoad:"onLoad",expanded:"expanded"},decls:4,vars:3,consts:[[1,"img-container",3,"click"],[1,"image",3,"load","src"],[1,"middle"],["svgIcon","open_in_full","color","#fff",1,"expand-icon"]],template:function(st,Ct){1&st&&(c.j41(0,"div",0),c.bIt("click",function(){return Ct.expanded?void 0:Ct.openModal()}),c.j41(1,"img",1),c.bIt("load",function(){return Ct.onLoad()}),c.k0s(),c.j41(2,"div",2),c.nrm(3,"mat-icon",3),c.k0s()()),2&st&&(c.R7$(),c.Y8G("src",Ct.imgSrc,c.B4B),c.BMQ("ref",Ct.imgRef),c.R7$(2),c.BMQ("data-disabled",Ct.expanded))},dependencies:[E.An],styles:[".img-container[_ngcontent-%COMP%]{margin:16px auto!important;flex:1;width:100%;height:100%}.img-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{object-fit:contain;width:100%;height:100%}.img-container[_ngcontent-%COMP%] .expand-icon[_ngcontent-%COMP%]{color:#fff;width:32px;height:32px}.middle[_ngcontent-%COMP%]{transition:.5s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center}.middle[data-disabled=true][_ngcontent-%COMP%]{display:none;cursor:default}.middle[_ngcontent-%COMP%] .expand-icon[_ngcontent-%COMP%]{margin:auto;cursor:pointer}.middle[_ngcontent-%COMP%] .expand-icon[data-disabled=true][_ngcontent-%COMP%]{display:none;cursor:default}"]})}}return Rn})();function gi(Rn,Xn){if(1&Rn&&(c.j41(0,"div",5),c.nrm(1,"div",6),c.j41(2,"span"),c.EFF(3),c.nI1(4,"translate"),c.k0s()()),2&Rn){const ae=c.XpG();c.AVh("loading-message-box",ae.showLoadingMessage),c.BMQ("data-interactive",ae.isInteractive),c.R7$(3),c.JRh(c.bMT(4,4,ae.loadingText))}}function Pi(Rn,Xn){1&Rn&&(c.j41(0,"div",13),c.EFF(1,"..."),c.k0s())}function ji(Rn,Xn){if(1&Rn&&(c.j41(0,"div",16),c.nrm(1,"igo-g-assist-chart-element",17),c.k0s()),2&Rn){const ae=Xn.$implicit,st=Xn.index,Ct=c.XpG(3);c.R7$(),c.Y8G("chartData",ae)("chartOptions",null==Ct.options?null:Ct.options[st])("rawData",Ct.messageData[st])("expanded",!1)("onLoad",Ct.onLoad)}}function Qi(Rn,Xn){if(1&Rn&&(c.j41(0,"div",14),c.DNE(1,ji,2,5,"div",15),c.k0s()),2&Rn){const ae=c.XpG(2);c.R7$(),c.Y8G("ngForOf",ae.chartData)}}function ar(Rn,Xn){if(1&Rn&&c.nrm(0,"igo-g-assist-image-element",18),2&Rn){const ae=c.XpG(2);c.Y8G("image",ae.image)("expanded",!1)("onLoad",ae.onLoad)}}function jr(Rn,Xn){if(1&Rn&&(c.j41(0,"div",7)(1,"div",8)(2,"div"),c.nrm(3,"div",9),c.DNE(4,Pi,2,0,"div",10),c.k0s()(),c.DNE(5,Qi,2,1,"div",11)(6,ar,1,3,"igo-g-assist-image-element",12),c.k0s()),2&Rn){const ae=c.XpG();c.BMQ("data-interactive",ae.isInteractive),c.R7$(3),c.Y8G("innerHTML",ae.messageHtml,c.npT),c.BMQ("data-show-citations",ae.showCitations),c.R7$(),c.Y8G("ngIf",ae.isLoading),c.R7$(),c.Y8G("ngIf",ae.data&&ae.options),c.R7$(),c.Y8G("ngIf",ae.image)}}function ho(Rn,Xn){if(1&Rn){const ae=c.RV6();c.j41(0,"button",19),c.bIt("click",function(){c.eBV(ae);const Ct=c.XpG();return c.Njj(Ct.dictate())}),c.nrm(1,"mat-icon",20),c.k0s()}if(2&Rn){const ae=c.XpG();c.BMQ("data-disabled",!ae.ttsEnabled)}}let Fo=(()=>{class Rn{constructor(ae,st){this.riseService=st,this.onLoad=()=>{},this.messageData=[],this.isInteractive=!0,this.showCitations=!1,this.ttsEnabled=!1,this.logger=ae.getLogger("ChatOutputMessageComponent")}ngOnInit(){this.showLoadingMessage=!(this.responseStr||this.chartData&&this.chartOptions||this.image)&&!0===this.isLoading,this.loadingText=this.riseService.getLoadingText(),this.data=this.chartData,this.options=this.chartOptions,this.image=this.imageData}dictate(){this.logger.info("TTS")}static{this.\u0275fac=function(st){return new(st||Rn)(c.rXU(m.J6),c.rXU(r.Jr9))}}static{this.\u0275cmp=c.VBU({type:Rn,selectors:[["igo-g-assist-chat-output-message"]],inputs:{onLoad:"onLoad",responseStr:"responseStr",chartData:"chartData",chartOptions:"chartOptions",imageData:"imageData",isLoading:"isLoading",messageData:"messageData",messageHtml:"messageHtml",isInteractive:"isInteractive"},decls:5,vars:6,consts:[[1,"chat-output-message-box","chat-message-box"],["fxLayout","row","fxLayoutAlign","start center","class","loading-section bubble-bg",3,"loading-message-box",4,"ngIf"],[1,"tts-message-box"],["class","message-textbox bubble-bg",4,"ngIf"],["class","speaker-btn",3,"click",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"loading-section","bubble-bg"],[1,"dot-flashing"],[1,"message-textbox","bubble-bg"],["fxLayout","column",1,"message-text-container"],[1,"message-text","selectable",3,"innerHTML"],["class","message-text-suffix",4,"ngIf"],["class","message-text",4,"ngIf"],[3,"image","expanded","onLoad",4,"ngIf"],[1,"message-text-suffix"],[1,"message-text"],["class","message-chart-container",4,"ngFor","ngForOf"],[1,"message-chart-container"],[3,"chartData","chartOptions","rawData","expanded","onLoad"],[3,"image","expanded","onLoad"],[1,"speaker-btn",3,"click"],["svgIcon","volume"]],template:function(st,Ct){1&st&&(c.j41(0,"div",0),c.DNE(1,gi,5,6,"div",1),c.j41(2,"div",2),c.DNE(3,jr,7,6,"div",3)(4,ho,2,1,"button",4),c.k0s()()),2&st&&(c.AVh("loading-message-box",Ct.showLoadingMessage),c.BMQ("data-interactive",Ct.isInteractive),c.R7$(),c.Y8G("ngIf",Ct.showLoadingMessage),c.R7$(2),c.Y8G("ngIf",Ct.responseStr||Ct.data&&Ct.options||Ct.image),c.R7$(),c.Y8G("ngIf",Ct.responseStr&&Ct.ttsEnabled))},dependencies:[I.Sq,I.bT,V.DJ,V.sA,Ve.r,nt.e,$r.g,E.An,Kn,Se.D9],styles:['[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[_nghost-%COMP%] .message-text[_ngcontent-%COMP%] details summary{cursor:pointer;padding-top:8px}[_nghost-%COMP%] .message-text[_ngcontent-%COMP%] details li{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}[_nghost-%COMP%] .message-text[_ngcontent-%COMP%] p{margin:0}[_nghost-%COMP%] .message-text[_ngcontent-%COMP%] ol, [_nghost-%COMP%] .message-text[_ngcontent-%COMP%] ul{margin:4px}.isLtr [_nghost-%COMP%] .message-text[_ngcontent-%COMP%] ol, .isLtr [_nghost-%COMP%] .message-text[_ngcontent-%COMP%] ul{padding-left:8px}html[dir=ltr] [_nghost-%COMP%] .message-text[_ngcontent-%COMP%] ol, html[dir=ltr] [_nghost-%COMP%] .message-text[_ngcontent-%COMP%] ul{--dummy1: 0;padding-left:8px}.isRtl [_nghost-%COMP%] .message-text[_ngcontent-%COMP%] ol, .isRtl [_nghost-%COMP%] .message-text[_ngcontent-%COMP%] ul{padding-right:8px}html[dir=rtl] [_nghost-%COMP%] .message-text[_ngcontent-%COMP%] ol, html[dir=rtl] [_nghost-%COMP%] .message-text[_ngcontent-%COMP%] ul{--dummy1: 0;padding-right:8px}[_nghost-%COMP%] .message-text[_ngcontent-%COMP%] ol li, [_nghost-%COMP%] .message-text[_ngcontent-%COMP%] ul li{list-style-type:disc;cursor:default}.isLtr [_nghost-%COMP%] .message-text[_ngcontent-%COMP%] ol li, .isLtr [_nghost-%COMP%] .message-text[_ngcontent-%COMP%] ul li{margin:4px 4px 4px 8px}html[dir=ltr] [_nghost-%COMP%] .message-text[_ngcontent-%COMP%] ol li, html[dir=ltr] [_nghost-%COMP%] .message-text[_ngcontent-%COMP%] ul li{--dummy: 0;margin:4px 4px 4px 8px}.isRtl [_nghost-%COMP%] .message-text[_ngcontent-%COMP%] ol li, .isRtl [_nghost-%COMP%] .message-text[_ngcontent-%COMP%] ul li{margin:4px 8px 4px 4px}html[dir=rtl] [_nghost-%COMP%] .message-text[_ngcontent-%COMP%] ol li, html[dir=rtl] [_nghost-%COMP%] .message-text[_ngcontent-%COMP%] ul li{--dummy: 0;margin:4px 8px 4px 4px}[_nghost-%COMP%] .message-text.show-suffix[_ngcontent-%COMP%] *:last-child{display:inline}[_nghost-%COMP%] .message-text.show-suffix[_ngcontent-%COMP%] *:last-child:after{content:"..."}.chat-output-message-box.chat-message-box[_ngcontent-%COMP%]{justify-content:flex-start;max-width:100%}.isLtr[_nghost-%COMP%] .chat-output-message-box.chat-message-box[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .chat-output-message-box.chat-message-box[_ngcontent-%COMP%]{padding-right:10px}html[dir=ltr][_ngcontent-%COMP%] .chat-output-message-box.chat-message-box[_ngcontent-%COMP%]{--dummy2: 0;padding-right:10px}.isRtl[_nghost-%COMP%] .chat-output-message-box.chat-message-box[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .chat-output-message-box.chat-message-box[_ngcontent-%COMP%]{padding-left:10px}html[dir=rtl][_ngcontent-%COMP%] .chat-output-message-box.chat-message-box[_ngcontent-%COMP%]{--dummy2: 0;padding-left:10px}.chat-output-message-box.chat-message-box[_ngcontent-%COMP%] .avatar-img[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{fill:currentColor;width:20px;height:20px}.chat-output-message-box.chat-message-box[_ngcontent-%COMP%] .tts-message-box[_ngcontent-%COMP%]{display:flex;max-width:100%;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;flex-grow:1}.chat-output-message-box.chat-message-box[_ngcontent-%COMP%] .tts-message-box[_ngcontent-%COMP%] .speaker-btn[_ngcontent-%COMP%]{color:#fff;background:transparent;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}.chat-output-message-box.chat-message-box[_ngcontent-%COMP%] .tts-message-box[_ngcontent-%COMP%] .speaker-btn[data-disabled=true][_ngcontent-%COMP%]{opacity:.5;pointer-events:none}.chat-output-message-box.chat-message-box[_ngcontent-%COMP%] .tts-message-box[_ngcontent-%COMP%] .message-text-container[_ngcontent-%COMP%] .message-text[_ngcontent-%COMP%], .chat-output-message-box.chat-message-box[_ngcontent-%COMP%] .tts-message-box[_ngcontent-%COMP%] .message-text-container[_ngcontent-%COMP%] .message-text-suffix[_ngcontent-%COMP%]{display:inline-block}.chat-output-message-box.chat-message-box[_ngcontent-%COMP%] .tts-message-box[_ngcontent-%COMP%] .message-textbox[_ngcontent-%COMP%]{justify-content:flex-start}.chat-output-message-box.chat-message-box[_ngcontent-%COMP%] .tts-message-box[_ngcontent-%COMP%] .message-chart-container[_ngcontent-%COMP%]{width:calc(20vw - 96px)}.chat-output-message-box.chat-message-box[_ngcontent-%COMP%] .bubble-bg[_ngcontent-%COMP%]{border-radius:6px}.chat-output-message-box.chat-message-box[_ngcontent-%COMP%] .bubble-bg[data-interactive=true][_ngcontent-%COMP%]{border:1px solid #292929;background-color:#262626}.chat-output-message-box.chat-message-box[_ngcontent-%COMP%] .bubble-bg[data-interactive=false][_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,0);background-color:#ffffff0d}.chat-output-message-box.chat-message-box[_ngcontent-%COMP%] .img-container[_ngcontent-%COMP%]{position:relative;margin:auto}.chat-output-message-box.chat-message-box[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{max-width:100%;max-height:100%;opacity:1;display:block;width:100%;height:auto;transition:.5s ease;backface-visibility:hidden}.chat-output-message-box.chat-message-box[_ngcontent-%COMP%] .img-container[_ngcontent-%COMP%]:hover > .image[_ngcontent-%COMP%]{opacity:.3}.chat-output-message-box.chat-message-box[_ngcontent-%COMP%] .img-container[_ngcontent-%COMP%]:hover > .middle[_ngcontent-%COMP%]{opacity:1}.chat-output-message-box.chat-message-box[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]:hover > .chart[_ngcontent-%COMP%]{opacity:.3}.chat-output-message-box.chat-message-box[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]:hover > .middle[_ngcontent-%COMP%]{opacity:1}.chat-output-message-box.chat-message-box[_ngcontent-%COMP%] .middle[_ngcontent-%COMP%]{transition:.5s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center}.chat-output-message-box.chat-message-box[_ngcontent-%COMP%] .middle[_ngcontent-%COMP%] .expand-icon[_ngcontent-%COMP%]{margin:auto;cursor:pointer}.chat-output-message-box.chat-message-box.loading-message-box[_ngcontent-%COMP%]{align-items:center}.loading-section[_ngcontent-%COMP%]{justify-content:flex-start;border-radius:6px;gap:10px;padding:10px}.dot-flashing[_ngcontent-%COMP%], .dot-flashing[_ngcontent-%COMP%]:before, .dot-flashing[_ngcontent-%COMP%]:after{width:6px;height:6px;border-radius:50%;background-color:#fff;color:#fff}.dot-flashing[_ngcontent-%COMP%]{margin:0 10px;position:relative;animation:_ngcontent-%COMP%_dot-flashing 1s infinite linear alternate;animation-delay:.5s}.dot-flashing[_ngcontent-%COMP%]:before, .dot-flashing[_ngcontent-%COMP%]:after{content:"";display:inline-block;position:absolute;top:0}.dot-flashing[_ngcontent-%COMP%]:before{left:-8px;animation:_ngcontent-%COMP%_dot-flashing 1s infinite alternate;animation-delay:0s}.dot-flashing[_ngcontent-%COMP%]:after{left:8px;animation:_ngcontent-%COMP%_dot-flashing 1s infinite alternate;animation-delay:1s}@keyframes _ngcontent-%COMP%_dot-flashing{0%{background-color:#ffffffb3}50%,to{background-color:#ffffff4d}}',".chat-message-box[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:10px}.chat-message-box[_ngcontent-%COMP%] .avatar-img[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex:0 0 24px;color:#ffffffb3}.chat-message-box[_ngcontent-%COMP%] .avatar-img[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:24px;height:24px}.chat-message-box[_ngcontent-%COMP%] .message-textbox[_ngcontent-%COMP%]{padding:10px}.chat-message-box[_ngcontent-%COMP%] .message-textbox[_ngcontent-%COMP%] .message-text[_ngcontent-%COMP%]{white-space:pre-wrap;overflow-wrap:anywhere}.chat-message-box[_ngcontent-%COMP%] .message-textbox[_ngcontent-%COMP%] .message-text[_ngcontent-%COMP%]:empty{display:none}.selectable[_ngcontent-%COMP%]{-webkit-user-select:text;user-select:text}"]})}}return Rn})(),no=(()=>{class Rn{constructor(){this.inputQuery=""}static{this.\u0275fac=function(st){return new(st||Rn)}}static{this.\u0275cmp=c.VBU({type:Rn,selectors:[["igo-g-assist-chat-input-message"]],inputs:{inputQuery:"inputQuery",isInteractive:"isInteractive"},decls:4,vars:2,consts:[[1,"chat-input-message-box","chat-message-box"],["fxLayout","column",1,"message-textbox","bubble-bg"],[1,"message-text","selectable"]],template:function(st,Ct){1&st&&(c.j41(0,"div",0)(1,"div",1)(2,"span",2),c.EFF(3),c.k0s()()()),2&st&&(c.R7$(),c.BMQ("data-interactive",Ct.isInteractive),c.R7$(2),c.JRh(Ct.inputQuery))},dependencies:[V.DJ],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}.chat-input-message-box[_ngcontent-%COMP%]{justify-content:flex-end}.isLtr[_nghost-%COMP%] .chat-input-message-box[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .chat-input-message-box[_ngcontent-%COMP%]{padding-left:10px}html[dir=ltr][_ngcontent-%COMP%] .chat-input-message-box[_ngcontent-%COMP%]{--dummy1: 0;padding-left:10px}.isRtl[_nghost-%COMP%] .chat-input-message-box[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .chat-input-message-box[_ngcontent-%COMP%]{padding-right:10px}html[dir=rtl][_ngcontent-%COMP%] .chat-input-message-box[_ngcontent-%COMP%]{--dummy1: 0;padding-right:10px}.chat-input-message-box[_ngcontent-%COMP%] .bubble-bg[_ngcontent-%COMP%]{border-radius:var(--geometry-border-radius-lg)}.chat-input-message-box[_ngcontent-%COMP%] .bubble-bg[data-interactive=true][_ngcontent-%COMP%]{border:1px solid #292929;background-color:#111}.chat-input-message-box[_ngcontent-%COMP%] .bubble-bg[data-interactive=false][_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,0);background-color:#0009}",".chat-message-box[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:10px}.chat-message-box[_ngcontent-%COMP%] .avatar-img[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex:0 0 24px;color:#ffffffb3}.chat-message-box[_ngcontent-%COMP%] .avatar-img[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:24px;height:24px}.chat-message-box[_ngcontent-%COMP%] .message-textbox[_ngcontent-%COMP%]{padding:10px}.chat-message-box[_ngcontent-%COMP%] .message-textbox[_ngcontent-%COMP%] .message-text[_ngcontent-%COMP%]{white-space:pre-wrap;overflow-wrap:anywhere}.chat-message-box[_ngcontent-%COMP%] .message-textbox[_ngcontent-%COMP%] .message-text[_ngcontent-%COMP%]:empty{display:none}.selectable[_ngcontent-%COMP%]{-webkit-user-select:text;user-select:text}"]})}}return Rn})();var yo=s(70650),Zr=s(56106),Yr=s(50599);const go=["inputRef"];function zo(Rn,Xn){if(1&Rn){const ae=c.RV6();c.j41(0,"div",9),c.nI1(1,"translate"),c.bIt("click",function(){c.eBV(ae);const Ct=c.XpG();return c.Njj(Ct.toggleASR())}),c.nrm(2,"mat-icon",10),c.k0s()}if(2&Rn){const ae=c.XpG();c.FS9("matTooltip",c.bMT(1,3,ae.asrTooltip)),c.BMQ("data-disabled",ae.disabled||ae.waitingOnASR),c.R7$(2),c.FS9("svgIcon",ae.asrIcon)}}let si=(()=>{class Rn{constructor(ae,st,Ct){this.riseService=st,this.translateService=Ct,this.destroy$=new l.B7,this.isASRTriggeredFromMicButton=!1,this.isCurrentInputVoice=!1,this.promptPlaceholderText="gAssist.promptPlaceholder",this.sendQueryText="gAssist.tooltips.sendQuery",this.asrIcon="mic",this.asrTooltip="gAssist.startSpeaking",this.inputValue=void 0,this.data="",this.setCursor=$n=>{this.inputRef.nativeElement.setSelectionRange($n,$n)},this.setValue=($n="")=>{this.inputValue=$n,$n&&requestAnimationFrame(()=>this.setCursor($n.length)),this.isCurrentInputVoice=!1},this.logger=ae.getLogger("ChatInputBoxComponent")}ngOnChanges(ae){(ae.capturingASR||ae.waitingOnASR)&&(this.capturingASR?(this.asrIcon="stop",this.asrTooltip="gAssist.stopSpeaking",this.promptPlaceholderText=this.isASRTriggeredFromMicButton?"gAssist.clickStopAfterSpeaking":this.asrHotkey?this.translateService.instant("gAssist.release")+this.asrHotkey+this.translateService.instant("gAssist.toStopSpeaking"):"gAssist.clickStopAfterSpeaking"):this.waitingOnASR?(this.asrIcon="mic",this.asrTooltip="gAssist.startSpeaking",this.promptPlaceholderText="gAssist.loading"):(this.isASRTriggeredFromMicButton=!1,this.promptPlaceholderText="gAssist.promptPlaceholder",this.asrIcon="mic",this.asrTooltip="gAssist.startSpeaking")),this.chatHistory=this.riseService.getChatHistory(),this.focusInput()}ngAfterViewInit(){this.riseService.getShouldFocusInput().pipe((0,f.Q)(this.destroy$)).subscribe(()=>{this.focusInput()}),this.focusInput(),this.riseService.listenASRResponses().pipe((0,f.Q)(this.destroy$)).subscribe(ae=>{this.onASRResponse(ae)})}blur(){this.inputRef.nativeElement.blur()}updateInput(ae){this.inputValue=ae,this.userInputValue=ae,this.isCurrentInputVoice=!1}submit(){const ae=(this.inputValue||"").trim();ae&&(this.chatInputCallback(ae,this.isCurrentInputVoice),this.inputValue="",this.upArrowCounter=void 0,this.userInputValue=void 0,this.chatHistory=this.riseService.getChatHistory())}handleArrowUp(){if(0===this.chatHistory.length||this.userInputValue&&0!==this.userInputValue.length)return;let ae=Math.max(0,this.upArrowCounter-1);void 0===this.upArrowCounter&&(ae=this.chatHistory.length-1),this.setValue(this.chatHistory[ae]),this.upArrowCounter=ae}handleArrowDown(){if(this.userInputValue&&0!==this.userInputValue.length)return;const ae=this.chatHistory.length;(0===ae||this.upArrowCounter===ae)&&(this.upArrowCounter=this.upArrowCounter);const st=ae-1;this.upArrowCounter===st&&(this.setValue(this.userInputValue),this.upArrowCounter=this.upArrowCounter+1);let Ct=Math.min(st,this.upArrowCounter+1);void 0===this.upArrowCounter&&(Ct=st),this.setValue(this.chatHistory[Ct]),this.upArrowCounter=Ct}toggleASR(){this.capturingASR=!this.capturingASR,this.capturingASR&&(this.setValue(void 0),this.isASRTriggeredFromMicButton=!0),this.riseService.toggleASR(xn.gv.UsingUI)}keyDown(ae){var st=this;return(0,yo.A)(function*(){return"Enter"===ae.key&&!ae.shiftKey&&ae.target.value.trim()?yield st.submit():"ArrowUp"===ae.key?st.handleArrowUp():"ArrowDown"===ae.key?st.handleArrowDown():void 0})()}onASRResponse(ae){this.setValue(ae),this.isCurrentInputVoice=!0,this.submit()}focusInput(){this.isInteractive&&this.inputRef&&setTimeout(()=>{this.inputRef.nativeElement.focus()})}ngOnDestroy(){this.logger.info("ngOnDestroy"),this.destroy$.next(!0)}static{this.\u0275fac=function(st){return new(st||Rn)(c.rXU(m.J6),c.rXU(r.Jr9),c.rXU(Se.c$))}}static{this.\u0275cmp=c.VBU({type:Rn,selectors:[["igo-g-assist-chat-input-box"]],viewQuery:function(st,Ct){if(1&st&&c.GBs(go,5),2&st){let $n;c.mGM($n=c.lsd())&&(Ct.inputRef=$n.first)}},inputs:{chatInputCallback:"chatInputCallback",chatHistory:"chatHistory",asrHotkey:"asrHotkey",disabled:"disabled",capturingASR:"capturingASR",waitingOnASR:"waitingOnASR",isASRReady:"isASRReady",isInteractive:"isInteractive"},features:[c.OA$],decls:11,vars:14,consts:[["inputRef",""],["id","chat-input-box-wrapper"],[1,"chat-input-text-area-root"],[1,"chat-input-text-area-container"],[1,"chat-input-container"],["matInput","","wrap","soft",1,"chat-input-box",3,"keydown","input","ngModel","placeholder","spellcheck","value","disabled"],["class","chat-input-btn mic-btn","matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",1,"chat-input-btn","send-query-btn",3,"click","matTooltip"],["svgIcon","send",3,"color"],["matTooltipPosition","above",1,"chat-input-btn","mic-btn",3,"click","matTooltip"],[3,"svgIcon"]],template:function(st,Ct){if(1&st){const $n=c.RV6();c.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"textarea",5,0),c.nI1(6,"translate"),c.bIt("keydown",function(Sr){return c.eBV($n),c.Njj(Ct.keyDown(Sr))})("input",function(Sr){return c.eBV($n),c.Njj(Ct.updateInput(Sr.target.value))}),c.k0s()(),c.DNE(7,zo,3,5,"div",6),c.j41(8,"div",7),c.nI1(9,"translate"),c.bIt("click",function(){return c.eBV($n),c.Njj(Ct.submit())}),c.nrm(10,"mat-icon",8),c.k0s()()()()}2&st&&(c.R7$(3),c.BMQ("data-disabled",!Ct.inputValue||Ct.disabled||Ct.capturingASR),c.R7$(),c.Y8G("ngModel",Ct.data)("placeholder",c.bMT(6,10,Ct.promptPlaceholderText))("spellcheck",!0)("value",Ct.inputValue)("disabled",Ct.disabled||Ct.capturingASR||Ct.waitingOnASR),c.R7$(3),c.Y8G("ngIf",Ct.isASRReady),c.R7$(),c.FS9("matTooltip",c.bMT(9,12,Ct.sendQueryText)),c.BMQ("data-disabled",!Ct.inputValue||Ct.disabled||Ct.capturingASR||Ct.waitingOnASR),c.R7$(2),c.Y8G("color",Ct.disabled?"#828282":"#76B900"))},dependencies:[I.bT,Zr.me,Zr.BC,Zr.vS,Gn.I,E.An,Yr.fg,bi.oV,Se.D9],styles:['#chat-input-box-wrapper[_ngcontent-%COMP%]{display:flex;width:100%;height:100%}#chat-input-box-wrapper[_ngcontent-%COMP%] [_ngcontent-%COMP%]::placeholder{color:#fff;opacity:1}#chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-box[_ngcontent-%COMP%]{flex:1;outline:none}.isLtr[_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-box[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-box[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-box[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-box[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-box[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-box[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}#chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-btn[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;min-width:24px;padding:0 16px}#chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-btn[_ngcontent-%COMP%]:hover{color:#fff;background-color:#ffffff14}#chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-btn[data-disabled=true][_ngcontent-%COMP%]{color:#ffffff61;pointer-events:none}#chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-btn.send-query-btn[_ngcontent-%COMP%]{width:24px;height:24px;display:flex;align-items:center;justify-content:center;padding:0}.isLtr[_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-btn.send-query-btn[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-btn.send-query-btn[_ngcontent-%COMP%]{margin:12px 16px}html[dir=ltr][_ngcontent-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-btn.send-query-btn[_ngcontent-%COMP%]{--dummy: 0;margin:12px 16px}.isRtl[_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-btn.send-query-btn[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-btn.send-query-btn[_ngcontent-%COMP%]{margin:12px 16px}html[dir=rtl][_ngcontent-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-btn.send-query-btn[_ngcontent-%COMP%]{--dummy: 0;margin:12px 16px}#chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-btn.mic-btn[_ngcontent-%COMP%]{width:24px;height:24px;display:flex;align-items:center;justify-content:center;padding:0}.isLtr[_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-btn.mic-btn[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-btn.mic-btn[_ngcontent-%COMP%]{margin:12px 0 12px 16px}html[dir=ltr][_ngcontent-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-btn.mic-btn[_ngcontent-%COMP%]{--dummy: 0;margin:12px 0 12px 16px}.isRtl[_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-btn.mic-btn[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-btn.mic-btn[_ngcontent-%COMP%]{margin:12px 16px 12px 0}html[dir=rtl][_ngcontent-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-btn.mic-btn[_ngcontent-%COMP%]{--dummy: 0;margin:12px 16px 12px 0}#chat-input-box-wrapper[_ngcontent-%COMP%] #asr-wrapper[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;gap:16px;cursor:pointer}.isLtr[_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] #asr-wrapper[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] #asr-wrapper[_ngcontent-%COMP%]{padding:0 16px 0 0}html[dir=ltr][_ngcontent-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] #asr-wrapper[_ngcontent-%COMP%]{--dummy: 0;padding:0 16px 0 0}.isRtl[_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] #asr-wrapper[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] #asr-wrapper[_ngcontent-%COMP%]{padding:0 0 0 16px}html[dir=rtl][_ngcontent-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] #asr-wrapper[_ngcontent-%COMP%]{--dummy: 0;padding:0 0 0 16px}#chat-input-box-wrapper[_ngcontent-%COMP%] #asr-wrapper[_ngcontent-%COMP%] .asr-text[_ngcontent-%COMP%]{color:#ffffffe6}#chat-input-box-wrapper[_ngcontent-%COMP%] #asr-wrapper[_ngcontent-%COMP%] .asr-stop[_ngcontent-%COMP%]{cursor:pointer}#chat-input-box-wrapper[_ngcontent-%COMP%] #asr-wrapper[_ngcontent-%COMP%] .chat-input-btn[_ngcontent-%COMP%]{padding:12px 16px}#chat-input-box-wrapper[_ngcontent-%COMP%] #asr-wrapper[data-waiting=true][_ngcontent-%COMP%]{pointer-events:none;opacity:.5}#chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-text-area-root[_ngcontent-%COMP%]{width:100%;height:100%;gap:8px}#chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-text-area-container[_ngcontent-%COMP%]{display:flex;width:100%;min-height:48px;align-items:flex-end;height:100%;background-color:#393939}#chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-text-area-container[data-can-capture-audio=false][_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{color:#ffffffe6}.isLtr[_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-text-area-container[data-can-capture-audio=false][_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-text-area-container[data-can-capture-audio=false][_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{padding:12px 0 8px 16px}html[dir=ltr][_ngcontent-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-text-area-container[data-can-capture-audio=false][_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{--dummy: 0;padding:12px 0 8px 16px}.isRtl[_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-text-area-container[data-can-capture-audio=false][_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-text-area-container[data-can-capture-audio=false][_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{padding:12px 16px 8px 0}html[dir=rtl][_ngcontent-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-text-area-container[data-can-capture-audio=false][_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{--dummy: 0;padding:12px 16px 8px 0}#chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-text-area-container[data-can-capture-audio=false][_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%]:after{color:#ffffffe6}.isLtr[_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-text-area-container[data-can-capture-audio=false][_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%]:after, .isLtr [_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-text-area-container[data-can-capture-audio=false][_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%]:after{padding:12px 0 8px 16px}html[dir=ltr][_ngcontent-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-text-area-container[data-can-capture-audio=false][_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%]:after{--dummy: 0;padding:12px 0 8px 16px}.isRtl[_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-text-area-container[data-can-capture-audio=false][_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%]:after, .isRtl [_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-text-area-container[data-can-capture-audio=false][_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%]:after{padding:12px 16px 8px 0}html[dir=rtl][_ngcontent-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-text-area-container[data-can-capture-audio=false][_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%]:after{--dummy: 0;padding:12px 16px 8px 0}#chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%]{align-items:stretch;display:inline-grid;flex-grow:1;height:100%;position:relative;vertical-align:top}#chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%]:after{grid-area:1/1;--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 14px;--font-body-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0;overflow-wrap:break-word;box-sizing:border-box;white-space:pre-wrap;color:#ffffffe6}.tv-view[_ngcontent-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%]:after, .tv-view[_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%]:after, .tv-view [_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%]:after{--font-body-size: 28px;--font-body-line-height: 40px;--font-body-color: rgba(255, 255, 255, .85)}#chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 14px;--font-body-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0;resize:none;background:inherit;appearance:none;border:none;overflow:auto;position:absolute;top:0;left:0;width:100%;height:100%;padding:12px 0 8px;color:#ffffffe6}.tv-view[_ngcontent-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] #chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{--font-body-size: 28px;--font-body-line-height: 40px;--font-body-color: rgba(255, 255, 255, .85)}#chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::placeholder{opacity:.7}#chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-container[_ngcontent-%COMP%]:after{content:attr(data-value) " ";margin:0;min-width:1em;visibility:hidden;width:auto;padding:12px 0;color:#ffffffe6}#chat-input-box-wrapper[_ngcontent-%COMP%] .chat-input-container[data-disabled=true][_ngcontent-%COMP%]{opacity:.7}']})}}return Rn})();const to=["chatboxContainer"],ot=["chatMessagesContainer"];function Vt(Rn,Xn){if(1&Rn){const ae=c.RV6();c.j41(0,"div",32)(1,"button",33),c.bIt("click",function(Ct){const $n=c.eBV(ae).$implicit,Gi=c.XpG(2);return c.Njj(Gi.populateTextInput(Ct,$n.text))}),c.EFF(2),c.k0s()()}if(2&Rn){const ae=Xn.$implicit,st=c.XpG(2);c.BMQ("key",ae.text),c.R7$(),c.BMQ("data-interactive",st.interactive),c.R7$(),c.SpI(" ",ae.text," ")}}function Sn(Rn,Xn){if(1&Rn&&(c.j41(0,"div",23)(1,"div",24)(2,"div",25),c.nrm(3,"mat-icon",26),c.k0s(),c.j41(4,"span",27),c.EFF(5),c.nI1(6,"translate"),c.k0s(),c.j41(7,"div",28),c.DNE(8,Vt,3,3,"div",29),c.k0s()(),c.j41(9,"div",30)(10,"span"),c.EFF(11),c.nI1(12,"translate"),c.k0s()(),c.j41(13,"div",31)(14,"span"),c.EFF(15),c.nI1(16,"translate"),c.k0s()()()),2&Rn){const ae=c.XpG();c.BMQ("data-disabled",ae.isDisabled)("data-interactive",ae.interactive),c.R7$(5),c.JRh(c.bMT(6,6,"gAssist.textBoxHintText")),c.R7$(3),c.Y8G("ngForOf",ae.suggestedPrompts),c.R7$(3),c.JRh(c.bMT(12,8,"gAssist.learnCommands")),c.R7$(4),c.JRh(c.bMT(16,10,"gAssist.disclaimer"))}}function Bn(Rn,Xn){if(1&Rn&&c.nrm(0,"igo-g-assist-chat-output-message",37),2&Rn){const ae=c.XpG().$implicit,st=c.XpG();c.Y8G("responseStr",ae.text)("messageHtml",ae.html)("isLoading",ae.loading)("chartData",st.getChartDataForItem(ae))("chartOptions",st.getChartOptionsForItem(ae))("imageData",ae.image)("isInteractive",st.interactive)}}function Ti(Rn,Xn){if(1&Rn&&(c.j41(0,"div",34),c.nrm(1,"igo-g-assist-chat-input-message",35),c.DNE(2,Bn,1,7,"igo-g-assist-chat-output-message",36),c.k0s()),2&Rn){const ae=Xn.$implicit,st=c.XpG();c.BMQ("key",ae.id),c.R7$(),c.Y8G("inputQuery",ae.prompt)("isInteractive",st.interactive),c.R7$(),c.Y8G("ngIf",ae.text||ae.chart||ae.image||ae.loading)}}function Li(Rn,Xn){if(1&Rn&&(c.j41(0,"div",38),c.nrm(1,"div",39),c.j41(2,"span"),c.EFF(3),c.nI1(4,"translate"),c.k0s()()),2&Rn){const ae=c.XpG();c.AVh("loading-message-box",ae.isASRListening||ae.waitingOnASR),c.BMQ("data-interactive",ae.interactive),c.R7$(3),c.JRh(c.bMT(4,4,ae.loadingText))}}function dr(Rn,Xn){if(1&Rn){const ae=c.RV6();c.j41(0,"div",40)(1,"span",41),c.EFF(2),c.nI1(3,"translate"),c.k0s(),c.j41(4,"button",42),c.nI1(5,"translate"),c.bIt("click",function(){c.eBV(ae);const Ct=c.XpG();return c.Njj(Ct.onClosepluginSwitchHintText())}),c.nrm(6,"mat-icon",43),c.k0s()()}if(2&Rn){const ae=c.XpG();c.BMQ("data-interactive",ae.interactive),c.R7$(2),c.JRh(c.bMT(3,4,ae.pluginSwitchHintText)),c.R7$(2),c.FS9("matTooltip",c.bMT(5,6,"gAssist.tooltips.close")),c.BMQ("data-interactive",ae.interactive)}}function Fr(Rn,Xn){if(1&Rn&&(c.j41(0,"div",47)(1,"span",48),c.EFF(2),c.k0s(),c.j41(3,"span",49),c.EFF(4),c.nI1(5,"translate"),c.k0s()()),2&Rn){const ae=c.XpG(2);c.BMQ("data-onlyOnePrompt",!(ae.isASRReady&&ae.asrHotkey)),c.R7$(2),c.JRh(ae.riseOverlayHotkey),c.R7$(2),c.JRh(c.bMT(5,3,"gAssist.toInteract"))}}function br(Rn,Xn){1&Rn&&(c.j41(0,"div",50),c.EFF(1," \xa0 "),c.k0s())}function Vn(Rn,Xn){if(1&Rn&&(c.j41(0,"span",48),c.EFF(1),c.k0s()),2&Rn){const ae=c.XpG(3);c.R7$(),c.JRh(ae.asrHotkey)}}function rr(Rn,Xn){if(1&Rn&&(c.j41(0,"span",49),c.EFF(1),c.nI1(2,"translate"),c.k0s()),2&Rn){const ae=c.XpG(3);c.R7$(),c.JRh(c.bMT(2,1,ae.asrHotkeyPrompt))}}function Ut(Rn,Xn){if(1&Rn&&(c.j41(0,"div",47)(1,"span",49),c.EFF(2),c.nI1(3,"translate"),c.k0s(),c.DNE(4,Vn,2,1,"span",51)(5,rr,3,3,"span",52),c.k0s()),2&Rn){const ae=c.XpG(2);c.BMQ("data-onlyOnePrompt",!(ae.riseOverlayHotkey&&!ae.isASRListening&&!ae.waitingOnASR)),c.R7$(2),c.JRh(c.bMT(3,4,ae.asrHotkeyPromptPrefix)),c.R7$(2),c.Y8G("ngIf",!ae.waitingOnASR),c.R7$(),c.Y8G("ngIf",!ae.waitingOnASR)}}function qn(Rn,Xn){if(1&Rn&&(c.j41(0,"div",44),c.DNE(1,Fr,6,5,"div",45)(2,br,2,0,"div",46)(3,Ut,6,6,"div",45),c.k0s()),2&Rn){const ae=c.XpG();c.R7$(),c.Y8G("ngIf",ae.riseOverlayHotkey&&!(ae.isASRListening||ae.waitingOnASR)),c.R7$(),c.Y8G("ngIf",ae.riseOverlayHotkey&&ae.isASRReady&&ae.asrHotkey&&!(ae.isASRListening||ae.waitingOnASR)),c.R7$(),c.Y8G("ngIf",ae.isASRReady&&ae.asrHotkey)}}let Wn=(()=>{class Rn{constructor(ae,st,Ct,$n,Gi,Sr,Wr){this.hotkeyService=ae,this.riseService=st,this.gameAssistantService=Ct,this.translate=$n,this.oscDisplayService=Gi,this.aiChatboxService=Sr,this.loggingService=Wr,this.onClosed=new c.bkB,this.onDragOrResizeEnded=new c.bkB,this.onResizeStarted=new c.bkB,this.destroy$=new l.B7,this.previousCursorStyle=null,this.isMaximized=!1,this.keyUp$=new l.B7,this.keyDown$=new l.B7,this.waitingForDummyRequestResponse$=new On.t(!1),this.chatboxMaxHeight=r.yzX,this.chatboxMaxWidth=r.$iR,this.chatboxMinHeight=r.aw6,this.chatboxMinWidth=r.D7m,this.isInstalling=!1,this.isReady=!0,this.isError=!1,this.title="gAssist.projectGAssist",this.hotkey="gAssist.hotkey",this.hotKeyPrompt="gAssist.hotKeyPrompt",this.suggestedPromptText="gAssist.suggestedPromptText",this.closeTooltipText="gAssist.tooltips.close",this.clearChatTooltipText="gAssist.tooltips.clearChat",this.clearChatText="gAssist.clearChat",this.settingsText="settings.Settings",this.minimizeText="gAssist.tooltips.minimize",this.loadingText="gAssist.asrListening",this.promptText="",this.isDisabled=!1,this.isResizing=!1,this.waitingOnASR=!1,this.isASRListening=!1,this.isASRReady=!1,this.isASRUsed=!1,this.isNonInteractiveModeUsed=!1,this.isMicIconUsed=!1,this.isRepositioned=!1,this.isResized=!1,this.isSettingsOpened=!1,this.isChatCleared=!1,this.isFeatureToggleUsed=!1,this.noOfQueriesAsked=0,this.prompt="",this.riseOverlayHotkey="",this.suggestedPrompts=[{text:Ji.IM},{text:Ji.BJ},{text:Ji.Il}],this.suggestedInputValue="",this.chatHistory=[],this.history=[],this.asrHotkey="",this.asrHotkeyPrompt="gAssist.toSpeak",this.asrHotkeyPromptPrefix="gAssist.hold",this.preScaleIcon="maximize",this.dragPosition={x:0,y:0},this.handleResponse=ao=>{if(this.logger.info("handleResponse"),-1!=ao.search("chartTitle"))this.setHistory(this.history.map(Ir=>Ir?.id===this.requestId?{...Ir,chart:[...Ir.chart?Ir.chart:[],xi(ao)],data:[...Ir.data||[],ao]}:Ir));else if(-1!==ao.search("imageData")){const Cr=JSON.parse(ao).image;this.setHistory(this.history.map(Po=>Po.id===this.requestId?{...Po,image:Cr,data:[...Po.data||[],ao]}:Po))}else this.setHistory(this.history.map(Ir=>{if(Ir.id!==this.requestId)return Ir;const Cr=Ir.text?Ir.text+ao:ao,Po=(0,Ji.uY)(Cr,"RiseService");return{...Ir,text:Cr,html:Po}}))},this.handleReset=()=>{this.logger.info("handleReset"),this.isDisabled=!1,this.queryItem=void 0,this.prompt=void 0,this.currentChatItem=void 0,this.requestId===Ji.nA?(this.requestId="",this.logger.info("Response for dummy request recieved"),this.waitingForDummyRequestResponse$.next(!1),this.clearDummyRequestTimeout()):this.requestId=""},this.handleDone=ao=>{this.logger.info("handleDone");let Ir=!1;this.requestId!==Ji.nA&&this.setHistory(this.history?.map(Cr=>{if(Cr.id!==this.requestId)return Cr;void 0!==Cr.chart&&void 0===Cr.text&&(Ir=!0);const Po={...Cr,loading:!1,isPluginResponse:this.detectPluginResponse(Cr),html:ao?(0,Ji.uY)(Cr.text||"",ao,!0):"",text:ao?Cr.text:""};return Po.pluginName=Cr.pluginName,setTimeout(()=>{Po.isQueryToBeSentToAssistant&&this.aiChatboxService.sendQueryTelemetry(Po.isVoiceQuery,Po.isFirstQueryAfterRegister,Ir,Po.isTimedOutQuery?xn.pn.Timeout:xn.pn.Success,Date.now()-Po.startTime,Po.pluginName)}),Po})),Ir||this.handleReset()},this.submitQuery=(ao,Ir=!1)=>{this.logger.info("submitQuery, isWaiting:",this.waitingForDummyRequestResponse$.getValue()," isVoiceQuery:",Ir);try{this.prompt=ao;const Cr=function Pt(){return Fi+=1,function bt(Rn){return function bn(){return`${performance.now()}xxxxxxxxxxxxxxxx`.replace(/[x]|\./g,()=>(16*Math.random()|0).toString(16))}()+Rn}(Fi)}(),Po={id:Cr,isVoiceQuery:Ir,prompt:ao,loading:!0,html:"",isQueryToBeSentToAssistant:!this.riseService.getShouldSkipSendingQueryToAssistant()};this.waitingForDummyRequestResponse$.asObservable().pipe((0,f.Q)(this.destroy$),(0,hn.p)(Ki=>!Ki),(0,N.s)(1),(0,P.M)(()=>{this.requestId=Cr,Po.isQueryToBeSentToAssistant?(this.logger.info("Sending query now"),this.aiChatboxService.routeQueryToAppropriateAssistant(Po)):this.riseService.onQueryToBeHandledInUI(Po.prompt)})).subscribe(),this.currentChatItem=Po,this.setChatHistory(this.chatHistory[this.chatHistory.length-1]!==this.prompt?this.chatHistory.concat([this.prompt]):this.chatHistory),this.setHistory(this.history.map(Ki=>({...Ki,loading:!1})).concat([Po])),this.isDisabled=!0}catch(Cr){this.logger.error("err",Cr)}},this.scrollToLastMessage=()=>{const ao=()=>{const Ir=this.chatMessagesContainer?.nativeElement;Ir&&Ir.scrollIntoView(!1)};ao(),setTimeout(()=>ao(),333)},this.logger=this.loggingService.getLogger("GAssistComponent"),this.riseService.register(!0),this.setupResizeObserver(),this.setUpChatHistory(),this.registerAssistantResponses(),this.handleGameInfo(),this.setUpASR()}setUpASR(){this.aiChatboxService.getASRReadyStateUpdates().pipe((0,P.M)(ae=>{this.isASRReady=ae,this.updatePluginHintText()})).subscribe(),(0,At.zV)([this.riseService.getASRListeningStateUpdates(),this.riseService.getASRWaitingStateUpdates()]).pipe((0,P.M)(([ae,st])=>{this.isASRListening=ae,this.waitingOnASR=st,ae?(this.asrHotkeyPrompt="gAssist.toStopSpeaking",this.asrHotkeyPromptPrefix="gAssist.release",this.loadingText="gAssist.asrListening",this.isASRUsed=!0):st?(this.asrHotkeyPromptPrefix="gAssist.loading",this.loadingText="gAssist.loading"):(this.asrHotkeyPrompt="gAssist.toSpeak",this.asrHotkeyPromptPrefix="gAssist.hold")})).subscribe(),this.riseService.getASRWaitingStateUpdates().pipe((0,P.M)(ae=>{this.waitingOnASR=ae})).subscribe()}handleGameInfo(){this.riseService.isGameRunningCurrently()&&this.riseService.isDummyPromptNeededToUpdateGameInfo()&&setTimeout(()=>{this.sendGameInfoToRise()},0),this.riseService.getGameLaunchedUpdates().pipe((0,f.Q)(this.destroy$),(0,L.c)(0),(0,P.M)(()=>{this.sendGameInfoToRise()})).subscribe()}sendGameInfoToRise(){this.logger.info("Sending dummy request for updating game info"),this.sendDummyRequest(this.riseService.getGameInfoDummyPrompt())}sendDummyRequest(ae){this.logger.info("sendDummyRequest"),this.requestId=Ji.nA,this.currentChatItem={id:this.requestId,aiAssistant:r.Uit.RISE,prompt:ae,html:"",loading:!1},this.riseService.sendRequest(this.currentChatItem).subscribe(),this.waitingForDummyRequestResponse$.next(!0),this.dummyRequestTimeout=setTimeout(()=>{this.waitingForDummyRequestResponse$.getValue()&&this.logger.error("Timed out waiting for the dummy request response"),this.waitingForDummyRequestResponse$.next(!1),this.dummyRequestTimeout=void 0},Ji.rH)}clearDummyRequestTimeout(){this.dummyRequestTimeout&&(clearTimeout(this.dummyRequestTimeout),this.dummyRequestTimeout=void 0)}setupResizeObserver(){this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=new ResizeObserver(()=>this.scrollToLastMessage())}registerAssistantResponses(){(0,fi.h)(this.riseService.listenToRiseResponses().pipe((0,_.T)(ae=>({assistant:r.Uit.RISE,response:ae}))),this.gameAssistantService.listenToAssistantResponses().pipe((0,_.T)(ae=>({assistant:r.Uit.GameAssistant,response:ae})))).pipe((0,f.Q)(this.destroy$),(0,P.M)(ae=>{if(!this.currentChatItem?.isQueryToBeSentToAssistant||ae.assistant===this.currentChatItem?.aiAssistant)return ae.response?void(this.requestId!==Ji.nA?this.handleResponse(ae.response):this.logger.info("ignoring response for dummy request")):this.handleDone("RiseService");this.logger.info("Ignoring response from other assistant:",ae.assistant)})).subscribe()}trackCursorChanges(){const ae=this.chatboxContainer?.nativeElement;ae&&(this.mouseMoveListener=this.updateCursorChange.bind(this),this.mouseLeaveListener=this.resetCursorStyle.bind(this),ae.addEventListener("mousemove",this.mouseMoveListener),ae.addEventListener("mouseleave",this.mouseLeaveListener))}resetCursorStyle(){this.previousCursorStyle="default",this.oscDisplayService.setCurrentCursorShape({cursorId:r.KUS.Default})}updateCursorChange(ae){const st=getComputedStyle(ae.target).cursor;null!==st&&st!==this.previousCursorStyle&&(this.previousCursorStyle=st,this.oscDisplayService.setCurrentCursorShape({cursorId:this.getCursorShape(st)}))}getCursorShape(ae){switch(ae){case"default":default:return r.KUS.Default;case"text":return r.KUS.TextInput;case"nwse-resize":case"nw-resize":case"se-resize":return r.KUS.DoubleArrowDiagonalLeft;case"nesw-resize":case"ne-resize":case"sw-resize":return r.KUS.DoubleArrowDiagonalRight;case"ew-resize":case"w-resize":case"e-resize":return r.KUS.DoubleArrowHorizontal;case"ns-resize":case"n-resize":case"s-resize":return r.KUS.DoubleArrowVertical}}setPosition(){const ae=this.aiChatboxService.getChatBoxPosition();!ae||0===ae.width||0===ae.height||(ae.minimalHeightMode=!this.interactive&&!this.isEmptyState(),this.aiChatboxService.triggerAiChatBotPositionAndDimensionsChange(ae))}ngOnInit(){this.logger.info("ngOnInit"),this.getHotkeys(),this.registerHotkeyChangedEvents(),this.setUpUIHotkeyDetection(),this.updatePluginHintText()}ngOnChanges(ae){ae.interactive&&(this.updatePluginHintText(),this.setPosition())}setChatHistory(ae){this.chatHistory=ae,this.riseService.setChatHistory(ae)}setHistory(ae){this.history=ae,this.riseService.setHistory(ae),setTimeout(()=>{this.interactive||this.oscDisplayService.triggerForcedDisplayRectUpdate()})}translateText(ae,st){return this.translate.instant(ae,st)}updatePluginHintText(){void 0!==this.interactive&&(this.interactive?this.pluginSwitchHintText=this.isASRReady?"gAssist.pluginSwitchHintText":"gAssist.pluginSwitchHintTextNoVoice":(this.pluginSwitchHintText=this.isASRReady?"gAssist.pluginSwitchHintTextVoiceOnly":"",this.isNonInteractiveModeUsed=!0))}onKeyUp(ae){this.keyUp$.next(ae)}onKeyDown(ae){this.keyDown$.next(ae)}setUpUIHotkeyDetection(){document.addEventListener("keyup",this.onKeyUp.bind(this)),document.addEventListener("keydown",this.onKeyDown.bind(this)),this.gAssistUIDetectedHotkey=new r.$lC(this.loggingService,this.oscDisplayService,this.hotkeyService,r.g8X.ChatUIToggle,!1,this.keyUp$.asObservable(),this.keyDown$.asObservable()),this.gAssistUIDetectedHotkey.register().subscribe(ae=>{this.hotkeyService.triggerHotkeyCallbacks(r.g8X.ChatUIToggle)}),this.asrUIDetectedHotkey=new r.$lC(this.loggingService,this.oscDisplayService,this.hotkeyService,r.g8X.ChatPTT,!0,this.keyUp$.asObservable(),this.keyDown$.asObservable()),this.asrUIDetectedHotkey.register().subscribe(ae=>{this.hotkeyService.triggerChatBoxPTTCallback(ae)})}getHotkeys(){this.hotkeyService.getHotkeyString(i.Or.Share.Shareserver.HotkeyEnum.ChatUIToggle)?.pipe((0,f.Q)(this.destroy$))?.subscribe(ae=>{this.logger.info("RISE hotkey",ae),this.riseOverlayHotkey="None"!==ae?ae:""}),this.hotkeyService.getHotkeyString(i.Or.Share.Shareserver.HotkeyEnum.ChatPTT).pipe((0,f.Q)(this.destroy$)).subscribe(ae=>{this.logger.info("ASR hotkey: ",ae),this.asrHotkey="None"!==ae?ae:""})}registerHotkeyChangedEvents(){this.hotkeyService.getHotkeyChangedEvents([i.Or.Share.Shareserver.HotkeyEnum.ChatUIToggle,i.Or.Share.Shareserver.HotkeyEnum.ChatPTT]).pipe((0,f.Q)(this.destroy$),(0,P.M)(()=>this.getHotkeys())).subscribe()}detectPluginResponse(ae){this.logger.info("detectPluginResponse");const st=ae.text;if(!st)return this.showPluginSwitchHint=!1,!1;const Ct=st.trim().split(/\s+/),$n=Ct.length>0&&Ct[0].startsWith("_")&&Ct[0].endsWith(">_");return ae.pluginName=$n?Ct[0].slice(1,-2):"Rise",this.showPluginSwitchHint=$n&&!this.aiChatboxService.isPluginSwitchHintShown(),$n&&this.logger.info("Plugin response detected:",this.showPluginSwitchHint),$n}updatePosition(){const ae=this.chatboxContainer?.nativeElement?.getBoundingClientRect();ae&&this.aiChatboxService.triggerAiChatBotPositionAndDimensionsChange(ae)}onPresetScale(){this.logger.info("onPresetScale");const ae=this.chatboxContainer.nativeElement.getBoundingClientRect();if(!ae)return void this.logger.error("Failed to get component rect");const st={x:ae.x,y:ae.y,width:this.isMaximized?r.D7m:r.$iR,height:this.isMaximized?r.aw6:r.yzX},$n=st.height-ae.height;st.x>960&&(st.x=st.x-(st.width-ae.width)),st.y>540&&(st.y=st.y-$n),this.aiChatboxService.triggerAiChatBotPositionAndDimensionsChange(st)}onClose(){this.onClosed.emit()}onDragEnd(ae){this.logger.info("onDragEnd"),this.isRepositioned=!0,this.onDragOrResizeEnded.emit(),this.riseService.shouldFocusInput(),setTimeout(()=>{this.updatePosition(),this.dragPosition={x:0,y:0}})}onResizeEnd(){this.logger.info("onResizeEnd"),this.isResizing=!1,this.onDragOrResizeEnded.emit(),this.riseService.shouldFocusInput(),setTimeout(()=>{this.updatePosition()})}onResizeStart(){this.logger.info("onResizeStart"),this.isResizing=!0,this.isResized=!0,this.onResizeStarted.emit()}minimize(){this.minimized=!0}getChartDataForItem(ae){return ae?.chart?.map(st=>st.data)}getChartOptionsForItem(ae){return ae?.chart?.map(st=>st.options)}resetChat(){this.logger.info("Reset requested"),this.riseService.clearChatHistory(),this.logger.info("Sending dummy prompt to clear chat"),this.sendDummyRequest(Ji.t5),this.gameAssistantService.resetContext(),this.showPluginSwitchHint=!1,this.isChatCleared=!0}openSettings(){this.logger.info("Open settings"),this.isSettingsOpened=!0,this.oscDisplayService.openOSC("sidebar/gassist/gassist-settings",{globalToggle:!0,gAssistHotkey:this.riseOverlayHotkey,trigger:xn.JI.ChatboxButton})}populateTextInput(ae,st){ae.stopPropagation(),this.suggestedInputValue=st,this.submitQuery(this.suggestedInputValue)}ngAfterViewInit(){!this.chatMessagesContainer||!this.chatboxContainer||(this.resizeObserver.observe(this.chatMessagesContainer.nativeElement),this.scrollToLastMessage(),this.trackCursorChanges())}onDisableGAssist(){this.aiChatboxService.toggleGAssistFeature(!1),this.isFeatureToggleUsed=!0}onClosepluginSwitchHintText(){this.logger.info("onClosepluginSwitchHintText"),this.showPluginSwitchHint=!1,this.aiChatboxService.setIsPluginSwitchHintShown()}isEmptyState(){return 0===this.history.length&&!(this.isASRListening||this.waitingOnASR)}checkPresetScaleIcon(ae=void 0){ae||(ae=this.chatboxContainer.nativeElement.getBoundingClientRect()),ae?ae.width===r.$iR&&ae.height===r.yzX?(this.preScaleIcon="restore_size",this.isMaximized=!0):(this.preScaleIcon="maximize",this.isMaximized=!1):this.logger.error("Failed to get component rect")}setUpChatHistory(){this.chatHistory=this.riseService.getChatHistory(),this.history=this.riseService.getHistory(),this.checkShowPluginHintText(),this.riseService.getHistoryChangeUpdates().pipe((0,f.Q)(this.destroy$),(0,P.M)(()=>{this.chatHistory=this.riseService.getChatHistory(),this.history=this.riseService.getHistory()})).subscribe()}checkShowPluginHintText(){this.history?.length>0&&this.logger.info("checkShowPluginHintText:",this.history[this.history.length-1].isPluginResponse),this.showPluginSwitchHint=this.history?.length>0&&this.history[this.history.length-1].isPluginResponse&&!this.aiChatboxService.isPluginSwitchHintShown()}ngOnDestroy(){this.logger.info("ngOnDestroy"),this.destroy$.next(!0),this.resizeObserver&&this.resizeObserver.disconnect(),this.clearDummyRequestTimeout();const ae=this.chatboxContainer?.nativeElement;this.gAssistUIDetectedHotkey.unregister(),this.asrUIDetectedHotkey.unregister(),ae&&(this.mouseMoveListener&&ae.removeEventListener("mousemove",this.mouseMoveListener),this.mouseLeaveListener&&ae.removeEventListener("mouseleave",this.mouseLeaveListener)),document.removeEventListener("keyup",this.onKeyUp),document.removeEventListener("keydown",this.onKeyDown),this.aiChatboxService.sendChatboxSessionTelemetry(this.isASRReady,this.isASRUsed,this.isNonInteractiveModeUsed,this.riseService.getIsMicIconUsed(),this.isRepositioned,this.isResized,this.isSettingsOpened,this.isChatCleared,this.isFeatureToggleUsed,this.riseService.getIsChartRecieved(),this.riseService.getQueryTimeOutCounter(),this.riseService.getASRTimeOutCounter()),this.riseService.shutDownASR()}static{this.\u0275fac=function(st){return new(st||Rn)(c.rXU(r.QSC),c.rXU(r.Jr9),c.rXU(r.Adt),c.rXU(Se.c$),c.rXU(r.Bqk),c.rXU(r.Dli),c.rXU(m.J6))}}static{this.\u0275cmp=c.VBU({type:Rn,selectors:[["nv-g-assist"]],viewQuery:function(st,Ct){if(1&st&&(c.GBs(to,5),c.GBs(ot,5)),2&st){let $n;c.mGM($n=c.lsd())&&(Ct.chatboxContainer=$n.first),c.mGM($n=c.lsd())&&(Ct.chatMessagesContainer=$n.first)}},inputs:{interactive:"interactive",minimized:"minimized"},outputs:{onClosed:"onClosed",onDragOrResizeEnded:"onDragOrResizeEnded",onResizeStarted:"onResizeStarted"},features:[c.OA$],decls:35,vars:45,consts:[["chatboxContainer",""],["menu","matMenu"],["chatMessagesContainer",""],["id","chat-layout","cdkDragBoundary","body","cdkDrag","",1,"gap-md","gassist-container",3,"rzStart","rzStop","cdkDragEnded","ngResizable","rzHandles","rzMaxWidth","rzMaxHeight","rzMinWidth","rzMinHeight","cdkDragDisabled","cdkDragFreeDragPosition"],["cdkDragHandle","",1,"gassist-header-bar"],[1,"gassist-header-top"],[1,"gassist-header-left","gassist-title"],[1,"gassist-header-right"],["matTooltipClass","igo-geometry",1,"header-btn","gassist-state-btn",3,"click","matTooltip"],["svgIcon","minimize"],["mat-button","",1,"header-btn","gassist-state-btn",3,"matMenuTriggerFor"],["svgIcon","more_vert"],["xPosition","before"],["mat-menu-item","",1,"header-btn","new-chat-btn","gassist-state-btn",3,"click"],["class","empty-state","fxLayout","column","fxLayoutAlign","space-between center",4,"ngIf"],[1,"text-input-col"],[1,"generated-output"],["class","chat-group",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","end center","class","loading-section bubble-bg",3,"loading-message-box",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between center","class","plugin-switch-hint",4,"ngIf"],[1,"text-input-row"],[3,"disabled","chatInputCallback","chatHistory","waitingOnASR","capturingASR","isASRReady","asrHotkey","isInteractive"],["fxLayout","row","fxLayoutAlign","space-between center","class","asr-hotkey-prompt-section",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between center",1,"empty-state"],["fxLayout","column","fxLayoutAlign","center center",1,"empty-state-top"],["fxLayout","column","fxLayoutAlign","center center",1,"gassist-icon-container"],["svgIcon","g-assist",1,"gassist-icon"],[1,"suggested-prompts-header"],[1,"suggested-prompts-container"],["class","suggested-prompt",4,"ngFor","ngForOf"],[1,"command-info"],["fxLayout","column","fxLayoutAlign","end center","fxFlex","none",1,"disclaimer-text"],[1,"suggested-prompt"],[1,"suggested-prompt-btn",3,"click"],[1,"chat-group"],[3,"inputQuery","isInteractive"],[3,"responseStr","messageHtml","isLoading","chartData","chartOptions","imageData","isInteractive",4,"ngIf"],[3,"responseStr","messageHtml","isLoading","chartData","chartOptions","imageData","isInteractive"],["fxLayout","row","fxLayoutAlign","end center",1,"loading-section","bubble-bg"],[1,"dot-flashing"],["fxLayout","row","fxLayoutAlign","space-between center",1,"plugin-switch-hint"],[1,"pluginSwitchHintText"],[1,"header-btn","gassist-state-btn","plugin-hint-btn",3,"click","matTooltip"],["svgIcon","close"],["fxLayout","row","fxLayoutAlign","space-between center",1,"asr-hotkey-prompt-section"],["class","hotkey-prompt",4,"ngIf"],["class","divider",4,"ngIf"],[1,"hotkey-prompt"],[1,"font-sub2","asr-hotkey-combo"],[1,"font-body2","asr-hotkey-prompt"],[1,"divider"],["class","font-sub2 asr-hotkey-combo",4,"ngIf"],["class","font-body2 asr-hotkey-prompt",4,"ngIf"]],template:function(st,Ct){if(1&st){const $n=c.RV6();c.j41(0,"div",3,0),c.bIt("rzStart",function(){return c.eBV($n),c.Njj(Ct.onResizeStart())})("rzStop",function(){return c.eBV($n),c.Njj(Ct.onResizeEnd())})("cdkDragEnded",function(Sr){return c.eBV($n),c.Njj(Ct.onDragEnd(Sr))}),c.j41(2,"div",4)(3,"div",5)(4,"div",6)(5,"span"),c.EFF(6),c.nI1(7,"translate"),c.k0s()(),c.j41(8,"div",7)(9,"button",8),c.nI1(10,"translate"),c.bIt("click",function(){return c.eBV($n),c.Njj(Ct.onClose())}),c.nrm(11,"mat-icon",9),c.k0s(),c.j41(12,"button",10),c.nrm(13,"mat-icon",11),c.k0s(),c.j41(14,"mat-menu",12,1)(16,"button",13),c.bIt("click",function(){return c.eBV($n),c.Njj(Ct.openSettings())}),c.EFF(17),c.nI1(18,"translate"),c.k0s(),c.j41(19,"button",13),c.bIt("click",function(){return c.eBV($n),c.Njj(Ct.resetChat())}),c.EFF(20),c.nI1(21,"translate"),c.k0s(),c.j41(22,"button",13),c.bIt("click",function(){return c.eBV($n),c.Njj(Ct.onDisableGAssist())}),c.EFF(23),c.nI1(24,"translate"),c.k0s()()()()(),c.DNE(25,Sn,17,12,"div",14),c.j41(26,"div",15)(27,"div",16,2),c.DNE(29,Ti,3,4,"div",17)(30,Li,5,6,"div",18),c.k0s()(),c.DNE(31,dr,7,8,"div",19),c.j41(32,"div",20),c.nrm(33,"igo-g-assist-chat-input-box",21),c.k0s(),c.DNE(34,qn,4,3,"div",22),c.k0s()}if(2&st){const $n=c.sdS(15);c.Y8G("ngResizable",Ct.interactive)("rzHandles","all")("rzMaxWidth",Ct.interactive?Ct.chatboxMaxWidth:null)("rzMaxHeight",Ct.interactive?Ct.chatboxMaxHeight:null)("rzMinWidth",Ct.interactive?Ct.chatboxMinWidth:null)("rzMinHeight",Ct.interactive?Ct.chatboxMinHeight:null)("cdkDragDisabled",Ct.isResizing)("cdkDragFreeDragPosition",Ct.dragPosition),c.BMQ("data-interactive",Ct.interactive)("data-minimized",Ct.minimized),c.R7$(2),c.BMQ("data-interactive",Ct.interactive),c.R7$(),c.BMQ("data-interactive",Ct.interactive),c.R7$(3),c.JRh(c.bMT(7,35,Ct.title)),c.R7$(3),c.FS9("matTooltip",c.bMT(10,37,Ct.minimizeText)),c.R7$(3),c.Y8G("matMenuTriggerFor",$n),c.R7$(5),c.SpI(" ",c.bMT(18,39,Ct.settingsText)," "),c.R7$(2),c.BMQ("data-disabled",0===Ct.history.length),c.R7$(),c.SpI(" ",c.bMT(21,41,Ct.clearChatTooltipText)," "),c.R7$(3),c.SpI(" ",c.bMT(24,43,"gAssist.disableGAssist")," "),c.R7$(2),c.Y8G("ngIf",Ct.isEmptyState()),c.R7$(),c.BMQ("data-interactive",Ct.interactive)("data-show",!Ct.isEmptyState()),c.R7$(3),c.Y8G("ngForOf",Ct.history),c.R7$(),c.Y8G("ngIf",Ct.isASRListening||Ct.waitingOnASR),c.R7$(),c.Y8G("ngIf",Ct.showPluginSwitchHint&&Ct.pluginSwitchHintText),c.R7$(),c.BMQ("data-interactive",Ct.interactive),c.R7$(),c.Y8G("disabled",Ct.isDisabled)("chatInputCallback",Ct.submitQuery)("chatHistory",Ct.chatHistory)("waitingOnASR",Ct.waitingOnASR)("capturingASR",Ct.isASRListening)("isASRReady",Ct.isASRReady)("asrHotkey",Ct.asrHotkey)("isInteractive",Ct.interactive),c.R7$(),c.Y8G("ngIf",!Ct.interactive)}},dependencies:[I.Sq,I.bT,V.DJ,V.sA,V.UI,Yn.tH,Gn.I,Ci.iV,ln.pI,ln.gy,ln.fS,E.An,bi.oV,Zi.T1,Zi.Fb,Mr.vI,Fo,no,si,Se.D9],styles:['#chat-layout[_ngcontent-%COMP%]{width:380px;padding:0;overflow:hidden;display:flex;flex-direction:column;position:relative;box-sizing:border-box;color:#ffffffe6;--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 14px;--font-body-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] #chat-layout[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] #chat-layout[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] #chat-layout[_ngcontent-%COMP%]{--font-body-size: 28px;--font-body-line-height: 40px;--font-body-color: rgba(255, 255, 255, .85)}#chat-layout[data-interactive=false][_ngcontent-%COMP%]{opacity:.8;pointer-events:none}#chat-layout[data-interactive=false][data-minimized=true][_ngcontent-%COMP%]{min-height:0}#chat-layout[data-interactive=false][_ngcontent-%COMP%] .text-input-row[_ngcontent-%COMP%]{display:none}#chat-layout[_ngcontent-%COMP%] .download-container[_ngcontent-%COMP%]{margin:auto;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}#chat-layout[_ngcontent-%COMP%] .gassist-header-bar[_ngcontent-%COMP%] .header-btn[_ngcontent-%COMP%]{color:#fff;background:transparent;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;width:24px;height:24px}#chat-layout[_ngcontent-%COMP%] .gassist-header-bar[_ngcontent-%COMP%] .header-btn.menu-btn[_ngcontent-%COMP%], #chat-layout[_ngcontent-%COMP%] .gassist-header-bar[_ngcontent-%COMP%] .header-btn.new-chat-btn[_ngcontent-%COMP%], #chat-layout[_ngcontent-%COMP%] .gassist-header-bar[_ngcontent-%COMP%] .header-btn.minimize-chat-btn[_ngcontent-%COMP%]{position:relative;top:1px}#chat-layout[_ngcontent-%COMP%] .gassist-header-bar[_ngcontent-%COMP%] .header-btn[data-disabled=true][_ngcontent-%COMP%]{opacity:.5;pointer-events:none}#chat-layout[_ngcontent-%COMP%] .gassist-header-bar[_ngcontent-%COMP%] .gassist-header-top[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px}#chat-layout[_ngcontent-%COMP%] .gassist-header-bar[_ngcontent-%COMP%] .gassist-header-top[data-interactive=false][_ngcontent-%COMP%]{background-color:#111;border-bottom:1px solid rgba(255,255,255,.08)}#chat-layout[_ngcontent-%COMP%] .gassist-header-bar[_ngcontent-%COMP%] .gassist-header-top[data-interactive=true][_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,0);background-color:#292929}#chat-layout[_ngcontent-%COMP%] .gassist-header-bar[_ngcontent-%COMP%] .gassist-header-top[_ngcontent-%COMP%] .gassist-header-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;flex-grow:1}#chat-layout[_ngcontent-%COMP%] .gassist-header-bar[_ngcontent-%COMP%] .gassist-header-top[_ngcontent-%COMP%] .gassist-header-right[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:8px}#chat-layout[_ngcontent-%COMP%] .gassist-header-bar[_ngcontent-%COMP%] .gassist-header-bottom[_ngcontent-%COMP%]{padding:8px 16px;background-color:#292929;margin-top:1px}#chat-layout[_ngcontent-%COMP%] .gassist-header-bar[_ngcontent-%COMP%] .gassist-header-bottom[_ngcontent-%COMP%] .gassist-subheader[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:14px;color:#ffffffb3}#chat-layout[_ngcontent-%COMP%] .gassist-header-bar[_ngcontent-%COMP%] .gassist-header-bottom[_ngcontent-%COMP%] .gassist-subheader[_ngcontent-%COMP%] .gassist-shortcut-text[_ngcontent-%COMP%]{color:#ffffffe6}#chat-layout[_ngcontent-%COMP%] .gassist-header-bar[data-interactive=false][_ngcontent-%COMP%]{visibility:hidden}#chat-layout[_ngcontent-%COMP%] .gassist-state-btn[_ngcontent-%COMP%]{min-width:24px}#chat-layout[_ngcontent-%COMP%] .gassist-state-btn[_ngcontent-%COMP%]:hover{background-color:#ffffff14!important}#chat-layout[_ngcontent-%COMP%] .gassist-state-btn[_ngcontent-%COMP%]:active{background-color:#ffffff52!important}#chat-layout[_ngcontent-%COMP%] .gassist-state-btn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;line-height:20px;height:20px;width:20px}.disclaimer-text[_ngcontent-%COMP%]{width:100%;height:32px;text-align:center;--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 12px;--font-body-line-height: 16px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0;color:#ffffffe6}.tv-view[_ngcontent-%COMP%] .disclaimer-text[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .disclaimer-text[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .disclaimer-text[_ngcontent-%COMP%]{--font-body-size: 24px;--font-body-line-height: 32px;--font-body-color: rgba(255, 255, 255, .85)}.empty-state[_ngcontent-%COMP%]{flex-grow:1;padding:16px 16px 4px;background:#111;box-sizing:border-box;color:#ffffffe6}.empty-state[data-disabled=true][_ngcontent-%COMP%]{pointer-events:none}.empty-state[data-interactive=false][_ngcontent-%COMP%]{border-radius:var(--geometry-border-radius-lg) var(--geometry-border-radius-lg) 0 0}.text-input-col[_ngcontent-%COMP%]{flex-grow:1;padding:0 16px;overflow-x:hidden;border-top:16px solid rgba(0,0,0,0);border-bottom:16px solid rgba(0,0,0,0);background:#111;box-sizing:border-box;scrollbar-gutter:stable;color:#ffffffe6}.text-input-col[data-interactive=false][_ngcontent-%COMP%]{overflow:hidden;border-radius:var(--geometry-border-radius-lg) var(--geometry-border-radius-lg) 0 0}.text-input-col[data-interactive=true][_ngcontent-%COMP%]{overflow:auto}.text-input-col[_ngcontent-%COMP%] .chat-group[_ngcontent-%COMP%], .text-input-col[_ngcontent-%COMP%] .generated-output[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow-x:hidden;gap:10px;max-width:100%}.text-input-col[_ngcontent-%COMP%] .chat-group[_ngcontent-%COMP%]{gap:10px}.text-input-col[_ngcontent-%COMP%] .generated-output[_ngcontent-%COMP%]{min-height:100%;box-sizing:border-box}.text-input-col[data-show=false][_ngcontent-%COMP%]{display:none}.text-input-col[_ngcontent-%COMP%] .loading-section[_ngcontent-%COMP%]{align-self:flex-end;border-radius:6px;gap:10px;padding:10px}.text-input-col[_ngcontent-%COMP%] .dot-flashing[_ngcontent-%COMP%], .text-input-col[_ngcontent-%COMP%] .dot-flashing[_ngcontent-%COMP%]:before, .text-input-col[_ngcontent-%COMP%] .dot-flashing[_ngcontent-%COMP%]:after{width:6px;height:6px;border-radius:50%;background-color:#fff;color:#fff}.text-input-col[_ngcontent-%COMP%] .dot-flashing[_ngcontent-%COMP%]{margin:0 10px;position:relative;animation:_ngcontent-%COMP%_dot-flashing 1s infinite linear alternate;animation-delay:.5s}.text-input-col[_ngcontent-%COMP%] .dot-flashing[_ngcontent-%COMP%]:before, .text-input-col[_ngcontent-%COMP%] .dot-flashing[_ngcontent-%COMP%]:after{content:"";display:inline-block;position:absolute;top:0}.text-input-col[_ngcontent-%COMP%] .dot-flashing[_ngcontent-%COMP%]:before{left:-8px;animation:_ngcontent-%COMP%_dot-flashing 1s infinite alternate;animation-delay:0s}.text-input-col[_ngcontent-%COMP%] .dot-flashing[_ngcontent-%COMP%]:after{left:8px;animation:_ngcontent-%COMP%_dot-flashing 1s infinite alternate;animation-delay:1s}@keyframes _ngcontent-%COMP%_dot-flashing{0%{background-color:#ffffffb3}50%,to{background-color:#ffffff4d}}.text-input-col[_ngcontent-%COMP%] .bubble-bg[_ngcontent-%COMP%]{border-radius:6px}.text-input-col[_ngcontent-%COMP%] .bubble-bg[data-interactive=true][_ngcontent-%COMP%]{border:1px solid #292929;background-color:#111}.text-input-col[_ngcontent-%COMP%] .bubble-bg[data-interactive=false][_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,0);background-color:#0009}.text-input-row[_ngcontent-%COMP%]{max-height:214px;padding:0;color:#ffffffe6}.chart-container[_ngcontent-%COMP%]{width:100%;height:30vh}.empty-state-top[_ngcontent-%COMP%]{padding:0 8px;flex-grow:1}.gassist-icon[_ngcontent-%COMP%]{width:40px;height:40px}.suggested-prompts-header[_ngcontent-%COMP%]{--font-sub-shared-font-size: 16px;--font-sub-shared-line-height: 24px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0;text-align:center;color:#ffffffe6}.tv-view[_ngcontent-%COMP%] .suggested-prompts-header[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .suggested-prompts-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .suggested-prompts-header[_ngcontent-%COMP%]{--font-sub-shared-font-size: 32px;--font-sub-shared-line-height: 48px}.suggested-prompts-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:8px;padding-top:24px}.suggested-prompts-container[_ngcontent-%COMP%] .suggested-prompt[_ngcontent-%COMP%] .suggested-prompt-btn[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 14px;--font-body-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0;color:#ffffffe6;border-radius:6px;padding:8px;text-align:center;cursor:pointer}.tv-view[_ngcontent-%COMP%] .suggested-prompts-container[_ngcontent-%COMP%] .suggested-prompt[_ngcontent-%COMP%] .suggested-prompt-btn[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .suggested-prompts-container[_ngcontent-%COMP%] .suggested-prompt[_ngcontent-%COMP%] .suggested-prompt-btn[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .suggested-prompts-container[_ngcontent-%COMP%] .suggested-prompt[_ngcontent-%COMP%] .suggested-prompt-btn[_ngcontent-%COMP%]{--font-body-size: 28px;--font-body-line-height: 40px;--font-body-color: rgba(255, 255, 255, .85)}.suggested-prompts-container[_ngcontent-%COMP%] .suggested-prompt[_ngcontent-%COMP%] .suggested-prompt-btn[data-interactive=false][_ngcontent-%COMP%]{background:transparent;border:1px solid rgba(0,0,0,0)}.suggested-prompts-container[_ngcontent-%COMP%] .suggested-prompt[_ngcontent-%COMP%] .suggested-prompt-btn[data-interactive=true][_ngcontent-%COMP%]{background:#1d1d1d;border:1px solid rgba(255,255,255,.08)}.suggested-prompts-container[_ngcontent-%COMP%] .suggested-prompt[_ngcontent-%COMP%] .suggested-prompt-btn[_ngcontent-%COMP%]:hover{background:#494949;color:#ffffffe6}.gassist-title[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 16px;--font-body-line-height: 24px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0;color:#ffffffe6;font-weight:500}.tv-view[_ngcontent-%COMP%] .gassist-title[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .gassist-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .gassist-title[_ngcontent-%COMP%]{--font-body-size: 32px;--font-body-line-height: 48px;--font-body-color: rgba(255, 255, 255, .85)}.asr-hotkey-prompt-section[_ngcontent-%COMP%]{box-sizing:border-box;padding:12px;border-top:1px solid rgba(255,255,255,.08);min-height:48px;width:100%;background-color:#111;color:#ffffffe6}.asr-hotkey-combo[_ngcontent-%COMP%]{font-weight:500;color:#ffffffe6}.asr-hotkey-prompt[_ngcontent-%COMP%]{font-weight:400;color:#ffffffe6}.divider[_ngcontent-%COMP%]{border-left-width:1px;border-left-style:solid;height:100%}.isLtr[_nghost-%COMP%] .divider[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .divider[_ngcontent-%COMP%]{margin:0 10px}html[dir=ltr][_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{--dummy: 0;margin:0 10px}.isRtl[_nghost-%COMP%] .divider[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .divider[_ngcontent-%COMP%]{margin:0 10px}html[dir=rtl][_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{--dummy: 0;margin:0 10px}.hotkey-prompt[_ngcontent-%COMP%]{display:flex;flex-direction:row;white-space:pre-wrap;width:100%}.hotkey-prompt[data-onlyOnePrompt=false][_ngcontent-%COMP%]{justify-content:center;align-items:center}.plugin-switch-hint[_ngcontent-%COMP%]{width:100%;height:32px;min-height:32px;text-align:center;padding:0 16px;--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 12px;--font-body-line-height: 16px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.plugin-switch-hint[data-interactive=false][_ngcontent-%COMP%]{background-color:#111;border-top:1px solid rgba(255,255,255,.08)}.plugin-switch-hint[data-interactive=true][_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,0);background-color:#191919}.tv-view[_ngcontent-%COMP%] .plugin-switch-hint[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .plugin-switch-hint[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .plugin-switch-hint[_ngcontent-%COMP%]{--font-body-size: 24px;--font-body-line-height: 32px;--font-body-color: rgba(255, 255, 255, .85)}.plugin-hint-btn[_ngcontent-%COMP%]{color:#fff;background:transparent;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;width:24px;height:24px}.plugin-hint-btn[data-interactive=false][_ngcontent-%COMP%]{display:none;pointer-events:none}.command-info[_ngcontent-%COMP%]{--font-sub-shared-font-size: 14px;--font-sub-shared-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0;width:250px;margin-top:15px;margin-bottom:27px;text-align:center;-webkit-user-select:text;user-select:text}.tv-view[_ngcontent-%COMP%] .command-info[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .command-info[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .command-info[_ngcontent-%COMP%]{--font-sub-shared-font-size: 28px;--font-sub-shared-line-height: 40px}']})}static{this.\u0275prov=c.jDH({token:Rn,factory:Rn.\u0275fac})}}return Rn})(),ci=(()=>{class Rn extends fn{constructor(ae,st,Ct,$n,Gi,Sr,Wr){super(st,Ct,$n,Gi,ae,Sr),this.aiChatboxService=Wr,this.exemptedElementClasses=[".sidebar"],this.logger=this.loggingService.getLogger("AiChatboxComponent")}ngOnInit(){this.logger.info("ngOnInit"),super.ngOnInit(),this.aiChatboxService.getGAssistToggleState()||this.aiChatboxService.toggleGAssistFeature(!0),this.aiChatboxService.checkASRLaunchOnStart(),this.aiChatboxService.getIsChartOrImageDialogChangedEvent().pipe((0,f.Q)(this.destroy$)).subscribe(ae=>{this.disableNonInteractiveSwitch=ae}),this.aiChatboxService.getAiChatBoxMode()===r.V4L.Interactive&&this.toggleInteractiveMode(),this.registerModeChanges()}ngOnDestroy(){this.logger.info("ngOnDestroy"),super.ngOnDestroy()}onMenuClosed(ae=!1){this.aiChatboxService.closeAiChatBox(ae)}onDragOrResizeEnded(){this.logger.info("onDragOrResizeEnded"),this.isResizing=!1}onResizeStarted(){this.logger.info("onResizeStarted"),this.isResizing=!0}onInteractiveModeChange(){this.logger.info("onInteractiveModeChange"),this.aiChatboxService.setAiChatBoxMode(this.isInInteractiveMode?r.V4L.Interactive:r.V4L.NonInteractive)}onEscape(){this.onMenuClosed(!0)}registerModeChanges(){this.aiChatboxService.listenAiChatBoxModeChanges().pipe((0,f.Q)(this.destroy$),(0,P.M)(ae=>{ae===r.V4L.Hidden?this.aiChatboxService.setAiChatboxVisibility(!1):ae===r.V4L.Interactive?this.isInInteractiveMode||this.toggleInteractiveMode():this.isInInteractiveMode&&this.toggleInteractiveMode()})).subscribe()}setPosition(){this.logger.info("setPosition");const ae=this.aiChatboxService.getChatBoxPosition();!ae||0===ae.width||0===ae.height||(ae.minimalHeightMode=!this.isInInteractiveMode,this.aiChatboxService.triggerAiChatBotPositionAndDimensionsChange(ae))}getDimensions(){this.logger.info("getDimensions");const ae=this.gAssistComponent?this.gAssistComponent.chatboxContainer.nativeElement.getBoundingClientRect():null;return ae&&this.isInInteractiveMode&&this.aiChatboxService.updateChatBoxPositionAndDimensions({x:ae.x,y:ae.y,width:ae.width,height:ae.height}),ae}static{this.\u0275fac=function(st){return new(st||Rn)(c.rXU(c.aKT),c.rXU(r.QSC),c.rXU(m.J6),c.rXU(r.Bqk),c.rXU(r.o_p),c.rXU(Zt.Sf),c.rXU(r.Dli))}}static{this.\u0275cmp=c.VBU({type:Rn,selectors:[["nv-ai-chatbox"]],viewQuery:function(st,Ct){if(1&st&&c.GBs(Wn,5),2&st){let $n;c.mGM($n=c.lsd())&&(Ct.gAssistComponent=$n.first)}},features:[c.Vt3],decls:2,vars:1,consts:[["fxLayout","row","LayoutAlign","start center",1,"igo-geometry"],[3,"onClosed","onDragOrResizeEnded","onResizeStarted","interactive"]],template:function(st,Ct){1&st&&(c.j41(0,"div",0)(1,"nv-g-assist",1),c.bIt("onClosed",function(){return Ct.onMenuClosed()})("onDragOrResizeEnded",function(){return Ct.onDragOrResizeEnded()})("onResizeStarted",function(){return Ct.onResizeStarted()}),c.k0s()()),2&st&&(c.R7$(),c.Y8G("interactive",Ct.isInInteractiveMode))},dependencies:[V.DJ,Wn],encapsulation:2})}}return Rn})();function Tr(Rn,Xn){if(1&Rn){const ae=c.RV6();c.j41(0,"div",9)(1,"div",7)(2,"div",10),c.bIt("mousedown",function(Ct){c.eBV(ae);const $n=c.XpG(2);return c.Njj($n.onMouseDown(Ct))}),c.nrm(3,"nv-ai-chatbox"),c.k0s()()()}if(2&Rn){const ae=c.XpG().$implicit;c.Mz_("id","aiChatBoxDiv",ae.key,""),c.Y8G("ngClass",ae.value)}}function Jr(Rn,Xn){if(1&Rn){const ae=c.RV6();c.j41(0,"div",11)(1,"div",7)(2,"div")(3,"nv-performance-overlay",12),c.bIt("created",function(){c.eBV(ae);const Ct=c.XpG().$implicit,$n=c.XpG();return c.Njj($n.onPerfOverlayComponentCreated(Ct.value))})("changed",function(){c.eBV(ae);const Ct=c.XpG(2);return c.Njj(Ct.updateVisibility("Performance"))}),c.k0s()()()()}if(2&Rn){const ae=c.XpG().$implicit;c.Mz_("id","perfOverlayDiv",ae.key,""),c.Y8G("ngClass",ae.value)}}function oo(Rn,Xn){if(1&Rn){const ae=c.RV6();c.j41(0,"div")(1,"nv-shadowplay-status",13),c.bIt("changed",function(){c.eBV(ae);const Ct=c.XpG(2);return c.Njj(Ct.updateVisibility("PerfLogging"))}),c.k0s()()}}function Qo(Rn,Xn){if(1&Rn){const ae=c.RV6();c.j41(0,"div")(1,"nv-shadowplay-status",14),c.bIt("changed",function(){c.eBV(ae);const Ct=c.XpG(2);return c.Njj(Ct.updateVisibility("Recording"))}),c.k0s()()}}function fo(Rn,Xn){if(1&Rn){const ae=c.RV6();c.j41(0,"div")(1,"nv-shadowplay-status",15),c.bIt("changed",function(){c.eBV(ae);const Ct=c.XpG(2);return c.Njj(Ct.updateVisibility("IR"))}),c.k0s()()}}function Xr(Rn,Xn){if(1&Rn){const ae=c.RV6();c.j41(0,"div")(1,"nv-shadowplay-status",16),c.bIt("changed",function(){c.eBV(ae);const Ct=c.XpG(2);return c.Njj(Ct.updateVisibility("Highlights"))}),c.k0s()()}}function Go(Rn,Xn){if(1&Rn){const ae=c.RV6();c.j41(0,"div")(1,"nv-shadowplay-status",17),c.bIt("changed",function(){c.eBV(ae);const Ct=c.XpG(2);return c.Njj(Ct.updateVisibility("Mic"))}),c.k0s()()}}function Ss(Rn,Xn){if(1&Rn){const ae=c.RV6();c.j41(0,"div")(1,"nv-microphone-status",18),c.bIt("changed",function(){c.eBV(ae);const Ct=c.XpG(2);return c.Njj(Ct.updateVisibility("GfnMic"))}),c.k0s()()}}function kr(Rn,Xn){if(1&Rn){const ae=c.RV6();c.j41(0,"div")(1,"nv-network-status",18),c.bIt("changed",function(){c.eBV(ae);const Ct=c.XpG(2);return c.Njj(Ct.updateVisibility("Network"))}),c.k0s()()}}function pa(Rn,Xn){if(1&Rn){const ae=c.RV6();c.j41(0,"div")(1,"nv-statistics-overlay",18),c.bIt("changed",function(){c.eBV(ae);const Ct=c.XpG(2);return c.Njj(Ct.updateVisibility("Statistics"))}),c.k0s()()}}function ka(Rn,Xn){if(1&Rn&&(c.j41(0,"div",2),c.DNE(1,Tr,4,3,"div",3)(2,Jr,4,3,"div",4),c.j41(3,"div",5)(4,"div",6)(5,"div",7),c.DNE(6,oo,2,0,"div",8),c.k0s(),c.j41(7,"div",7),c.DNE(8,Qo,2,0,"div",8),c.k0s(),c.j41(9,"div",7),c.DNE(10,fo,2,0,"div",8),c.k0s(),c.j41(11,"div",7),c.DNE(12,Xr,2,0,"div",8),c.k0s(),c.j41(13,"div",7),c.DNE(14,Go,2,0,"div",8),c.k0s(),c.j41(15,"div",7),c.DNE(16,Ss,2,0,"div",8),c.k0s(),c.j41(17,"div",7),c.DNE(18,kr,2,0,"div",8),c.k0s()(),c.j41(19,"div",7),c.DNE(20,pa,2,0,"div",8),c.k0s()()()),2&Rn){const ae=Xn.$implicit,st=c.XpG();c.Y8G("ngClass",st.productClass),c.R7$(),c.Y8G("ngIf",st.isAiChatboxVisible&&st.visibility.AIChatbox===ae.key),c.R7$(),c.Y8G("ngIf",st.isPerfOverlayVisible(ae.key)),c.R7$(),c.Y8G("ngClass",ae.value),c.R7$(3),c.Y8G("ngIf",st.visibility.PerfLogging===ae.key),c.R7$(2),c.Y8G("ngIf",st.visibility.Recording===ae.key),c.R7$(2),c.Y8G("ngIf",st.visibility.IR===ae.key),c.R7$(2),c.Y8G("ngIf",st.visibility.Highlights===ae.key),c.R7$(2),c.Y8G("ngIf",st.isMicEnabled&&st.visibility.Mic===ae.key),c.R7$(2),c.Y8G("ngIf",st.isGfnMicEnabled&&st.visibility.GfnMic===ae.key),c.R7$(2),c.Y8G("ngIf",st.visibility.Network===ae.key),c.R7$(2),c.Y8G("ngIf",st.visibility.Statistics===ae.key)}}let Xs=(()=>{class Rn{constructor(ae,st,Ct,$n,Gi,Sr,Wr){this.injector=ae,this.loggingService=st,this.oscDisplayService=Ct,this.osdService=$n,this.featureSupportService=Gi,this.renderer=Sr,this.shadowPlayService=Wr,this.destroy$=new l.B7,this.isGFN=!0,this.isMicEnabled=!1,this.isGfnMicEnabled=!1,this.micSwitchState=r.YQZ.off,this.presentMic=!1,this.productClass="",this.visibility={Recording:r.VHt.none,IR:r.VHt.none,Highlights:r.VHt.none,Mic:r.VHt.none,ViewerCount:r.VHt.none,Comments:r.VHt.none,GfnMic:r.VHt.none,Statistics:r.VHt.none,Network:r.VHt.none,Performance:r.VHt.none,PerfLogging:r.VHt.none,AIChatbox:r.VHt.none},this.quadrants={leftTop:"osd-topleft",centerTop:"osd-topcenter",rightTop:"osd-topright",leftCenter:"osd-centerleft",rightCenter:"osd-centerright",leftBottom:"osd-bottomleft",centerBottom:"osd-bottomcenter",rightBottom:"osd-bottomright"},this.isAiChatboxVisible=!1,this.anythingVisible=!1,this.logger=this.loggingService.getLogger("OsdComponent"),this.productClass=this.featureSupportService.isGFEMode()?"osd-container-nvapp":"osd-container-gfn",this.featureSupportService.isGFEMode()&&(this.perfMonService=this.injector.get(r.zET),this.aiChatBoxService=this.injector.get(r.Dli),this.isGFN=!1)}ngAfterContentInit(){setTimeout(()=>{this.updatePositions(),this.updateVisibility()},10),this.listener=this.osdService.listenChanges().subscribe(()=>{setTimeout(()=>{this.updatePositions(),this.updateVisibility()},0)}),this.featureSupportService.isGFEMode()&&(this.perfOverlayCoordinatesListner=this.perfMonService?.listenPerfOverlayCoordinateChanges().subscribe(()=>{setTimeout(()=>{this.updatePerfOverlayCoordinates(!0)},50)}),this.featureSupportService.isGAssistFeatureAvailable()&&(this.aiChatBoxService.listenAiChatBoxVisibilityChanges().pipe((0,f.Q)(this.destroy$)).subscribe(ae=>{this.isAiChatboxVisible=ae,setTimeout(()=>{this.updateVisibility()},0)}),this.aiChatBoxService.listenAiChatBoxPositionChanges().pipe((0,f.Q)(this.destroy$)).subscribe(ae=>{this.isAiChatboxVisible&&this.updateAiChatBoxPosition(ae)})))}onMouseDown(ae){}ngOnInit(){this.gfnMicEnableSub=this.featureSupportService.isGfnMicrophoneEnabled().pipe((0,N.s)(1)).subscribe(ae=>this.isGfnMicEnabled=ae),this.featureSupportService.isGFEMode()&&(this.isMicAvailable(),this.setupMic(),this.shadowPlayService.getMICDeviceState().pipe((0,f.Q)(this.destroy$)).subscribe(ae=>{(ae===r.gXb.plugged_in||ae===r.gXb.plugged_out)&&ae===r.gXb.plugged_in&&(this.setupMic(),this.micSwitchState===r.YQZ.on&&(this.isMicEnabled=!0)),this.isMicAvailable()}),this.shadowPlayService.getMICState().pipe((0,f.Q)(this.destroy$)).subscribe(ae=>{this.micSwitchState=ae,this.isMicEnabled=!(ae!==r.YQZ.on||!this.presentMic)}),this.shadowPlayService.micPttHotkeyPressed().pipe((0,f.Q)(this.destroy$)).subscribe(ae=>{this.micSwitchState===r.YQZ.ptt&&this.presentMic&&(this.isMicEnabled=ae)}),this.shadowPlayService.getMicCount().pipe((0,f.Q)(this.destroy$)).subscribe(ae=>{this.isMicEnabled=ae>0}),this.oscDisplayService.registerForcedDisplayRectUpdate().pipe((0,f.Q)(this.destroy$)).subscribe(()=>this.updateRects()))}onPerfOverlayComponentCreated(ae){const st=this.indicatorDisribution(),Ct=this.visibility[r.lb6.Performance];Ct in st&&st[Ct]>0?(this.logger.info("Quadrant changed and overlapping ",ae,Ct),this.updatePerfOverlayCoordinates()):(this.logger.info("Quadrant changed and no overlapping ",ae,Ct),this.updatePerfOverlayCoordinates())}setupMic(){this.shadowPlayService.getMicMode().pipe((0,f.Q)(this.destroy$)).subscribe(ae=>{this.micSwitchState=ae,this.isMicEnabled=ae===r.YQZ.on,ae===r.YQZ.ptt&&(this.presentMic=!0)})}isMicAvailable(){this.shadowPlayService.getMicrophoneData().pipe((0,f.Q)(this.destroy$)).subscribe(ae=>{-1===ae.index?(this.isMicEnabled=!1,this.presentMic=!1):this.presentMic=!0})}indicatorDisribution(){const ae={};return this.statusShadowplayChildren?.forEach(st=>{if(st.showAny){const Ct=this.visibility[st.mode];ae[Ct]=Ct in ae?ae[Ct]+1:1}}),ae}detectIndicator(ae){(0,d.of)(1).subscribe(()=>{this.logger.info("Received inidcator update notification ",ae),(this.statusShadowplayChildren?.find(Ct=>Ct.mode===ae)).showAny?this.logger.info("Displaying indicator ",ae," In Quadrant ",this.visibility[ae]):this.logger.info("Hiding indicator ",ae),this.updatePerfOverlayCoordinates()})}getCoordinateLimits(ae=1){const st=window.innerWidth;let Ct=0;Ct=this.perfMonService.getVisibilityMode()===r.Vq5.Enhanced?this.perfMonService.getActiveLayout()===r.pwE.Double||this.perfMonService.getActiveLayout()===r.pwE.Linear?r.Q20:r.Zt_:this.perfMonService.getActiveLayout()===r.pwE.Double||this.perfMonService.getActiveLayout()===r.pwE.Linear?r.Lxc:r.K_i;const Sr=window.innerHeight;return{upperPercentX:(st-Ct)/st*100,lowerPercentX:Ct/st*100,upperPercentY:(Sr-r.EMD*ae)/Sr*100,lowerPercentY:r.EMD*ae/Sr*100}}quadrantCalculation(ae,st){let Ct,$n;const Gi=this.indicatorDisribution();if(ae>50&&st>50)Ct=r.VHt.rightBottom;else if(ae>50&&st<50)Ct=r.VHt.rightTop;else if(ae<50&&st>50)Ct=r.VHt.leftBottom;else{if(!(ae<50&&st<50))return{quadrant:r.VHt.none,xLim:null};Ct=r.VHt.leftTop}return Ct in Gi&&Gi[Ct]>0?($n=this.getCoordinateLimits(Gi[Ct]),Ct===r.VHt.rightTop&&ae>=$n.upperPercentX&&st<=$n.lowerPercentY?{quadrant:r.VHt.rightTop,xLim:$n.upperPercentX}:Ct===r.VHt.rightBottom&&ae>=$n.upperPercentX&&st>=$n.upperPercentY?{quadrant:r.VHt.rightBottom,xLim:$n.upperPercentX}:Ct===r.VHt.leftTop&&ae<=$n.lowerPercentX&&st<=$n.lowerPercentY?{quadrant:r.VHt.leftTop,xLim:$n.lowerPercentX}:Ct===r.VHt.leftBottom&&ae<=$n.lowerPercentX&&st>=$n.upperPercentY?{quadrant:r.VHt.leftBottom,xLim:$n.lowerPercentX}:{quadrant:r.VHt.none,xLim:null}):{quadrant:r.VHt.none,xLim:null}}checkIfBarCanBeScrolled(ae,st){return this.quadrantCalculation(ae,st).xLim}updateAiChatBoxPosition(ae){if(this.featureSupportService.isGFEMode()){if(this.logger.info("updateAiChatBoxPosition",ae),ae){const st=document.getElementById("aiChatBoxDiv"+r.VHt.rightBottom),Ct=document.getElementById("chat-layout");if(st){const $n=ae.x.toString()+"px",Gi="unset",Sr=ae.y.toString()+"px",Wr="unset";this.renderer.setStyle(st,"left",$n),this.renderer.setStyle(st,"top",Sr),this.renderer.setStyle(st,"right",Gi),this.renderer.setStyle(st,"bottom",Wr),this.renderer.removeStyle(st,"transform"),this.logger.info("updateAiChatBoxPosition updated position")}if(Ct){this.renderer.setStyle(Ct,"left","0"),this.renderer.setStyle(Ct,"top","0");const $n=ae.width.toString()+"px",Gi=ae.height.toString()+"px";this.renderer.setStyle(Ct,"width",$n),this.renderer.removeStyle(Ct,"transform"),ae.minimalHeightMode&&void 0!==ae.minimalHeightMode?(this.renderer.removeStyle(Ct,"height"),this.renderer.setStyle(Ct,"max-height",Gi)):(this.renderer.setStyle(Ct,"height",Gi),this.renderer.removeStyle(Ct,"max-height")),this.logger.info("updateAiChatBoxPosition updated dimentions")}}setTimeout(()=>{this.updateRects()},0)}}updatePerfOverlayCoordinates(ae=!1){if(!this.featureSupportService.isGFEMode())return;const st={x:-1,y:-1},Ct=this.perfMonService?.getPerfOverlayAbsolutePosition(null);if(!Ct)return;st.y=Ct.y;const $n=Ct.x,Gi=this.checkIfBarCanBeScrolled($n,st.y);if(st.x=Gi||$n,!st||(-1===st.x||101===st.x)&&(-1===st.y||101===st.y)||50===st.x&&(-1===st.y||101===st.y)||50===st.y&&(-1===st.x||101===st.x))return;const Sr=this.visibility[r.lb6.Performance];this.logger.info("updatePerfOverlayCoordinates:",st,"perfOverlayDiv"+Sr);const Wr=document.getElementById("perfOverlayDiv"+Sr);if(Wr){const ao=st.x.toString()+"%",Ir="unset",Cr=st.y.toString()+"%",Po="unset",Ki="translate(-"+st.x+"%,-"+st.y+"%)";this.renderer.setStyle(Wr,"left",ao),this.renderer.setStyle(Wr,"top",Cr),this.renderer.setStyle(Wr,"right",Ir),this.renderer.setStyle(Wr,"bottom",Po),this.renderer.setStyle(Wr,"transform",Ki),this.logger.info("updatePerfOverlayCoordinates updated")}ae&&this.updateRects()}updatePositions(){Object.keys(this.visibility).forEach(ae=>{this.visibility[ae]=this.osdService.getPosition(r.lb6[ae])})}updateRects(){const ae=[];this.statusShadowplayChildren?.forEach(st=>{st.showAny&&ae.push(st.getDimensions())}),this.statusMicrophoneChild?.showAny&&ae.push(this.statusMicrophoneChild.getDimensions()),this.featureSupportService.isGFEMode()?(this.performanceOverlayChild&&ae.push(this.performanceOverlayChild.getDimensions()),this.aiChatboxChild&&ae.push(this.aiChatboxChild.getDimensions())):this.statisticsOverlayChild?.statsState!==r.BKk.Off&&ae.push(this.statisticsOverlayChild.getDimensions()),this.statusNetworkChild?.showAny&&ae.push(this.statusNetworkChild.getDimensions()),this.oscDisplayService.setOSDDisplayRectangles(ae)}updateVisibility(ae=null){this.isGFN||(this.logger.info("updateVisibility ",ae),ae&&this.detectIndicator(ae));const st=this.anythingVisible;let Ct=!1;this.statusShadowplayChildren?.forEach($n=>{$n.showAny&&(Ct=!0)}),this.statusMicrophoneChild?.showAny&&(Ct=!0),this.featureSupportService.isGFEMode()?(this.performanceOverlayChild&&(Ct=!0),this.aiChatboxChild&&(Ct=!0)):this.statisticsOverlayChild?.statsState!==r.BKk.Off&&(Ct=!0),this.statusNetworkChild?.showAny&&(Ct=!0),this.anythingVisible=Ct,setTimeout(()=>{this.updateRects(),st!==this.anythingVisible&&(this.anythingVisible?this.oscDisplayService.openNonInteractiveOSC():this.oscDisplayService.closeNonInteractiveOSC())},0)}isPerfOverlayVisible(ae){return!!this.featureSupportService.isPerfOverlayEnabled()&&this.visibility.Performance===ae&&this.perfMonService?.getPerfOverlayVisiblity()&&this.perfMonService.getFpsMetricVisible()}ngOnDestroy(){this.listener.unsubscribe(),this.perfOverlayCoordinatesListner?.unsubscribe(),this.gfnMicEnableSub?.unsubscribe(),this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(st){return new(st||Rn)(c.rXU(c.zZn),c.rXU(m.J6),c.rXU(r.Bqk),c.rXU(r.auo),c.rXU(r.Rvq),c.rXU(c.sFG),c.rXU(r.W1J))}}static{this.\u0275cmp=c.VBU({type:Rn,selectors:[["nv-osd"]],viewQuery:function(st,Ct){if(1&st&&(c.GBs(ue,5),c.GBs(Fe,5),c.GBs(Qe,5),c.GBs(Lt,5),c.GBs(ci,5),c.GBs(X,5)),2&st){let $n;c.mGM($n=c.lsd())&&(Ct.statusMicrophoneChild=$n.first),c.mGM($n=c.lsd())&&(Ct.statisticsOverlayChild=$n.first),c.mGM($n=c.lsd())&&(Ct.statusNetworkChild=$n.first),c.mGM($n=c.lsd())&&(Ct.performanceOverlayChild=$n.first),c.mGM($n=c.lsd())&&(Ct.aiChatboxChild=$n.first),c.mGM($n=c.lsd())&&(Ct.statusShadowplayChildren=$n)}},decls:3,vars:4,consts:[[3,"hidden"],["class","osd-container",3,"ngClass",4,"ngFor","ngForOf"],[1,"osd-container",3,"ngClass"],["fxLayout","row","class","ai-chatbox",3,"ngClass","id",4,"ngIf"],["fxLayout","row",3,"id","ngClass",4,"ngIf"],["fxLayout","row",3,"ngClass"],["fxLayout","column","fxFlex","none",1,"osd-column"],["fxLayout","row","fxFlex","none"],[4,"ngIf"],["fxLayout","row",1,"ai-chatbox",3,"ngClass","id"],[3,"mousedown"],["fxLayout","row",3,"id","ngClass"],[3,"created","changed"],["mode","PerfLogging",3,"changed"],["mode","Recording",3,"changed"],["mode","IR",3,"changed"],["mode","Highlights",3,"changed"],["mode","Mic",3,"changed"],[3,"changed"]],template:function(st,Ct){1&st&&(c.j41(0,"div",0),c.DNE(1,ka,21,12,"div",1),c.nI1(2,"keyvalue"),c.k0s()),2&st&&(c.Y8G("hidden",!Ct.anythingVisible),c.R7$(),c.Y8G("ngForOf",c.bMT(2,2,Ct.quadrants)))},dependencies:[I.YU,I.Sq,I.bT,V.DJ,V.UI,T.PW,X,ue,Fe,Qe,Lt,ci,I.lG],styles:[".osd-container[_ngcontent-%COMP%]{left:0;right:0;max-width:100%;z-index:0}.osd-container-nvapp[_ngcontent-%COMP%]{margin:11px;height:calc(100vh - 22px)}.osd-container-gfn[_ngcontent-%COMP%]{margin:24px 0;height:calc(100vh - 48px)}.osd-topleft[_ngcontent-%COMP%]{left:env(safe-area-inset-left);top:0;position:fixed;transform-origin:left top}.osd-topright[_ngcontent-%COMP%]{right:env(safe-area-inset-right);top:0;position:fixed;transform-origin:right top}.osd-topcenter[_ngcontent-%COMP%]{right:50%;top:0;position:fixed;transform:translate(50%);transform-origin:center top}.osd-centerright[_ngcontent-%COMP%]{right:0;top:50%;position:fixed;transform:translateY(-50%);transform-origin:right center}.osd-centerleft[_ngcontent-%COMP%]{left:0;top:50%;position:fixed;transform:translateY(-50%);transform-origin:left center}.osd-bottomleft[_ngcontent-%COMP%]{left:0;bottom:0;position:fixed;transform-origin:left bottom}.osd-bottomleft[_ngcontent-%COMP%] > .osd-column[_ngcontent-%COMP%]{flex-direction:column-reverse!important}.osd-bottomright[_ngcontent-%COMP%]{right:0;bottom:0;position:fixed;transform-origin:right bottom}.osd-bottomright[_ngcontent-%COMP%] > .osd-column[_ngcontent-%COMP%]{flex-direction:column-reverse!important}.osd-bottomcenter[_ngcontent-%COMP%]{right:50%;bottom:0;position:fixed;transform:translate(50%);transform-origin:center bottom}.osd-bottomcenter[_ngcontent-%COMP%] > .osd-column[_ngcontent-%COMP%]{flex-direction:column-reverse!important}.osd-topright[_ngcontent-%COMP%], .osd-bottomright[_ngcontent-%COMP%], .osd-bottomcenter[_ngcontent-%COMP%], .osd-topright[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] .osd-bottomcenter[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-direction:row-reverse!important}.isRtl[_nghost-%COMP%] .osd-topright[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .osd-topright[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .osd-bottomright[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .osd-bottomright[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .osd-bottomcenter[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .osd-bottomcenter[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .osd-topright[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .osd-topright[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .osd-bottomright[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] .osd-bottomcenter[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .osd-bottomright[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] .osd-bottomcenter[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-direction:row!important}.isRtl[_nghost-%COMP%] .osd-topleft[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .osd-topleft[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .osd-bottomleft[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .osd-bottomleft[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .osd-centerleft[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .osd-centerleft[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .osd-topleft[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .osd-topleft[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .osd-centerleft[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .osd-centerleft[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .osd-bottomleft[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .osd-bottomleft[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-direction:row-reverse!important}.ai-chatbox[_ngcontent-%COMP%]{z-index:49}.apple-translucent-bar[_nghost-%COMP%] .osd-topleft[_ngcontent-%COMP%], .apple-translucent-bar [_nghost-%COMP%] .osd-topleft[_ngcontent-%COMP%], .apple-translucent-bar[_nghost-%COMP%] .osd-topright[_ngcontent-%COMP%], .apple-translucent-bar [_nghost-%COMP%] .osd-topright[_ngcontent-%COMP%], .apple-translucent-bar[_nghost-%COMP%] .osd-topcenter[_ngcontent-%COMP%], .apple-translucent-bar [_nghost-%COMP%] .osd-topcenter[_ngcontent-%COMP%]{top:env(safe-area-inset-top)}.apple-translucent-bar[_nghost-%COMP%] .osd-centerleft[_ngcontent-%COMP%], .apple-translucent-bar [_nghost-%COMP%] .osd-centerleft[_ngcontent-%COMP%], .apple-translucent-bar[_nghost-%COMP%] .osd-centerright[_ngcontent-%COMP%], .apple-translucent-bar [_nghost-%COMP%] .osd-centerright[_ngcontent-%COMP%]{top:calc(50% + env(safe-area-inset-top))}"]})}}return Rn})();var ys=s(48852),ma=s(54947),fs=s(56237),Oa=s(27731),Ms=s(36877),Ua=s(12532),Zs=s(72147),qo=s(10174),js=s(43615),Ia=s(23860),Ds=s(16485),Js=s(81834),fa=s(56785),Ga=s(56315);let cs=(()=>{class Rn{constructor(){this.hint="",this.svgIcon=""}static{this.\u0275fac=function(st){return new(st||Rn)}}static{this.\u0275cmp=c.VBU({type:Rn,selectors:[["igo-gamepad-control-hint"]],inputs:{hint:"hint",svgIcon:"svgIcon"},decls:5,vars:4,consts:[["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"hint-container"],[3,"svgIcon"],[1,"hint-bar-text"]],template:function(st,Ct){1&st&&(c.j41(0,"div",0),c.nrm(1,"mat-icon",1),c.j41(2,"span",2),c.EFF(3),c.nI1(4,"translate"),c.k0s()()),2&st&&(c.R7$(),c.Y8G("svgIcon",Ct.svgIcon),c.R7$(2),c.JRh(c.bMT(4,2,Ct.hint)))},dependencies:[E.An,V.DJ,V.sA,V.UI,Se.D9],styles:["[_nghost-%COMP%]{--gamepad-control-hint-icon-size: 32px}.tv-view [_nghost-%COMP%]{--gamepad-control-hint-icon-size: 48px}.hint-container[_ngcontent-%COMP%]{height:var(--gamepad-control-hint-icon-size)}.hint-container[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{width:var(--gamepad-control-hint-icon-size);height:var(--gamepad-control-hint-icon-size);flex:1 0 var(--gamepad-control-hint-icon-size);z-index:1}.hint-container[_ngcontent-%COMP%] .hint-bar-text[_ngcontent-%COMP%]{width:100%;font-size:calc(var(--gamepad-control-hint-icon-size) / 2);line-height:var(--gamepad-control-hint-icon-size);background-color:#191919cc;white-space:nowrap;position:relative}.isLtr[_nghost-%COMP%] .hint-container[_ngcontent-%COMP%] .hint-bar-text[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hint-container[_ngcontent-%COMP%] .hint-bar-text[_ngcontent-%COMP%]{padding:0 calc(var(--gamepad-control-hint-icon-size) / 2) 0 var(--gamepad-control-hint-icon-size)}html[dir=ltr][_ngcontent-%COMP%] .hint-container[_ngcontent-%COMP%] .hint-bar-text[_ngcontent-%COMP%]{--dummy: 0;padding:0 calc(var(--gamepad-control-hint-icon-size) / 2) 0 var(--gamepad-control-hint-icon-size)}.isRtl[_nghost-%COMP%] .hint-container[_ngcontent-%COMP%] .hint-bar-text[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hint-container[_ngcontent-%COMP%] .hint-bar-text[_ngcontent-%COMP%]{padding:0 var(--gamepad-control-hint-icon-size) 0 calc(var(--gamepad-control-hint-icon-size) / 2)}html[dir=rtl][_ngcontent-%COMP%] .hint-container[_ngcontent-%COMP%] .hint-bar-text[_ngcontent-%COMP%]{--dummy: 0;padding:0 var(--gamepad-control-hint-icon-size) 0 calc(var(--gamepad-control-hint-icon-size) / 2)}.isLtr[_nghost-%COMP%] .hint-container[_ngcontent-%COMP%] .hint-bar-text[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hint-container[_ngcontent-%COMP%] .hint-bar-text[_ngcontent-%COMP%]{transform:translate(calc(-1 * calc(var(--gamepad-control-hint-icon-size) / 2)))}.isRtl[_nghost-%COMP%] .hint-container[_ngcontent-%COMP%] .hint-bar-text[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hint-container[_ngcontent-%COMP%] .hint-bar-text[_ngcontent-%COMP%]{transform:translate(calc(calc(var(--gamepad-control-hint-icon-size) / 2)))}"]})}}return Rn})();const $s=["textInput"];function Vo(Rn,Xn){if(1&Rn&&c.nrm(0,"igo-gamepad-control-hint",5),2&Rn){const ae=c.XpG(2);c.Y8G("hint",ae.toggleKeyboardHint)("svgIcon",ae.toggleIcon)}}function Hn(Rn,Xn){if(1&Rn&&c.nrm(0,"igo-gamepad-control-hint",5),2&Rn){const ae=c.XpG(2);c.Y8G("hint",ae.mouseHint)("svgIcon",ae.mouseIcon)}}function Ba(Rn,Xn){if(1&Rn&&c.nrm(0,"igo-gamepad-control-hint",5),2&Rn){const ae=c.XpG(2);c.Y8G("hint",ae.clientImeHint)("svgIcon",ae.clientImeIcon)}}function ds(Rn,Xn){if(1&Rn&&c.nrm(0,"igo-gamepad-control-hint",5),2&Rn){const ae=c.XpG(2);c.Y8G("hint",ae.textVisibilityHint)("svgIcon",ae.textVisibilityIcon)}}function la(Rn,Xn){if(1&Rn&&c.nrm(0,"igo-gamepad-control-hint",5),2&Rn){const ae=c.XpG(2);c.Y8G("hint",ae.pasteHint)("svgIcon",ae.clipboardPasteIcon)}}function ra(Rn,Xn){if(1&Rn&&(c.j41(0,"div",3)(1,"div",4),c.nrm(2,"igo-gamepad-control-hint",5),c.DNE(3,Vo,1,2,"igo-gamepad-control-hint",6)(4,Hn,1,2,"igo-gamepad-control-hint",6)(5,Ba,1,2,"igo-gamepad-control-hint",6)(6,ds,1,2,"igo-gamepad-control-hint",6)(7,la,1,2,"igo-gamepad-control-hint",6),c.k0s()()),2&Rn){const ae=c.XpG();c.R7$(2),c.Y8G("hint",ae.escapeHint)("svgIcon",ae.escapeIcon),c.R7$(),c.Y8G("ngIf",!ae.hideKeyboardOptionInputControlFlag&&ae.isDefaultMode),c.R7$(),c.Y8G("ngIf",ae.isJoystickEnabled),c.R7$(),c.Y8G("ngIf",ae.isClientImeEnabled),c.R7$(),c.Y8G("ngIf",ae.isClientImeMode),c.R7$(),c.Y8G("ngIf",ae.showInputControlHintForClipboard)}}var $o=function(Rn){return Rn.Default="Default",Rn.ClientIme="ClientIme",Rn}($o||{}),rs=function(Rn){return Rn.B="B",Rn.Y="Y",Rn.X="X",Rn.RT="RT",Rn.RS="RS",Rn.LS="LS",Rn.RB_LONG_PRESS="RB_LONG_PRESS",Rn}(rs||{});const oa={currentMode:$o.Default,systemKeyboardOpened:!1,nvKeyboardOpened:!1,imeInputTextVisible:!1};let Yo=(()=>{class Rn{get gamepadHintVisible(){return this._gamepadHintVisible}set gamepadHintVisible(ae){ae!==this._gamepadHintVisible&&(this._gamepadHintVisible=ae)}get gamepadHintFlagsChanged$(){return this.triggerGamepadHintChangedSubject.asObservable()}get currentHintFlags(){return this.triggerGamepadHintChangedSubject.getValue()}get nvKeyboardOpened(){return this.currentHintFlags.nvKeyboardOpened}get keyboardOpened(){return this.currentHintFlags.systemKeyboardOpened||this.nvKeyboardOpened}get isClientImeMode(){return this.currentHintFlags.currentMode===$o.ClientIme}get isDefaultMode(){return this.currentHintFlags.currentMode===$o.Default}constructor(ae,st,Ct,$n,Gi,Sr,Wr,ao,Ir,Cr,Po,Ki,el,ca,Zo){this.loggingService=ae,this.ngZone=st,this.clientInputService=Ct,this.bridgeService=$n,this.gamepadService=Gi,this.oscNotificationService=Sr,this.spatialNavigationService=Wr,this.nvKeyboardService=ao,this.featureSupportService=Ir,this.gamepadNavigationService=Cr,this.translate=Po,this.dialog=Ki,this.clipboardService=el,this.clientImeLoaderService=ca,this.appConfig=Zo,this.isJoystickEnabled=!0,this.isClientImeEnabled=!1,this.isClipboardPasteEnabled=!1,this.showInputControlHintForClipboard=!1,this.hideKeyboardOptionInputControlFlag=!1,this.isInputControlActivated=!1,this._gamepadHintVisible=!1,this.triggerGamepadHintChangedSubject=new On.t(oa),this.specialCaseForKeyboardHandling=!1,this.disableGamepadHintsOnSystemKBOpened=!1,this.logger=ae.getLogger("IGOInputControlComponent"),this.destroy$=new l.B7,this.escapeHint="clientInput.CloseHint",this.toggleKeyboardHint="clientInput.HideKeyboardHint",this.clientImeHint="clientInput.NativeKeyboardInputHint",this.mouseHint="clientInput.MouseHint",this.pasteHint="clientInput.PasteHint",this.textVisibilityHint="clientInput.HideImeInputTextHint",this.nvKeyboardSupported=this.featureSupportService.isNvKeyboardSupported(),this.isClientImeEnabled=this.featureSupportService.isClientImeEnabled(),this.specialCaseForKeyboardHandling=this.featureSupportService.shouldHandleSystemKeyboardVisibility(),this.disableGamepadHintsOnSystemKBOpened=this.featureSupportService.shouldDisableGamepadHintsOnSystemKBOpened(),this.hideKeyboardOptionInputControlFlag=this.featureSupportService.hideKeyboardOptionInputControlFlag(),this.clipboardConfig=this.appConfig.client?.clipboardConfig}ngOnInit(){this.clientInputService.imeOpened$.pipe((0,Le.F)(),(0,y.ZZ)(ae=>(this.switchInputMode(ae?$o.ClientIme:$o.Default),this.clientInputService.imeInputTextVisible$)),(0,f.Q)(this.destroy$)).subscribe(ae=>{const st={...this.currentHintFlags,imeInputTextVisible:ae};this.triggerGamepadHintChangedSubject.next(st)}),this.isClipboardPasteEnabled=!!this.clipboardConfig?.isClipboardEnabled,this.showInputControlHintForClipboard=!!this.clipboardConfig?.showInputControlHintForClipboard&&this.isClipboardPasteEnabled,this.gamepadHintFlagsChanged$.pipe((0,Le.F)(Js.ab),(0,f.Q)(this.destroy$)).subscribe(ae=>{this.handleGamepadHintChanged(ae)}),this.nvKeyboardSupported?(this.osrHandler=new Ds.fz(this.loggingService,this.bridgeService,"nvKeyboard",this.spatialNavigationService,this.gamepadNavigationService),this.escapeIcon="gamepad_blue_b",this.toggleIcon="gamepad_blue_y",this.clientImeIcon="gamepad_blue_rt",this.clipboardPasteIcon="gamepad_blue_rb",this.mouseIcon="gamepad_blue_rs"):(this.escapeIcon="gamepad_b_hint",this.toggleIcon="gamepad_y_hint",this.clientImeIcon="gamepad_rt_hint",this.clipboardPasteIcon="gamepad_rb_hint",this.mouseIcon=this.featureSupportService.isGamepadLSControlUsed()?"gamepad_ls_hint":"gamepad_rs_hint"),this.textVisibilityIcon="gamepad_blue_x"}ngAfterViewInit(){(0,fs.T)(()=>this.specialCaseForKeyboardHandling,(0,d.of)(!1),this.clientInputService.systemKeyboardState$).pipe((0,f.Q)(this.destroy$)).subscribe(st=>{this.handleKeyboardState(st)}),this.clientInputService.inputControlUIOpened$.pipe((0,Zs.n)(st=>(this.toggleInputControl(st),st?this.gamepadKeyPressed():Oa.t)),(0,f.Q)(this.destroy$)).subscribe(st=>{this.handleGamepadKeyPressed(st)})}handleKeyboardState(ae){this.disableGamepadHintsOnSystemKBOpened&&this.isInputControlActivated&&(this.gamepadHintVisible=!ae);const st={...this.currentHintFlags,systemKeyboardOpened:ae};this.triggerGamepadHintChangedSubject.next(st),this.featureSupportService.showOnscreenKeyboardUsageNotification()&&ae&&!this.isUsagePresented&&(this.oscNotificationService.show(Ia.Ed.OnscreenKeyboardUsage),this.isUsagePresented=!0),this.featureSupportService.shouldBlurInputOnSoftKeyboardDismissal()&&!ae&&document.activeElement===this.inputElement?.nativeElement&&this.inputElement.nativeElement.blur()}gamepadKeyPressed(){const ae=this.gamepadService.rightStickMoved$.pipe((0,hn.p)(ao=>!0===ao),(0,qo.u)(rs.RS)),st=this.gamepadService.onButtonLongPressed$(ys.dt.RightBumper).pipe((0,hn.p)(ao=>!0===ao),(0,qo.u)(rs.RB_LONG_PRESS)),Ct=this.gamepadService.onButtonPressed$(ys.dt.RightTrigger).pipe((0,hn.p)(ao=>!0===ao),(0,qo.u)(rs.RT)),$n=this.hideKeyboardOptionInputControlFlag?Oa.t:this.gamepadService.onButtonPressed$(ys.dt.Y).pipe((0,hn.p)(ao=>!0===ao),(0,qo.u)(rs.Y)),Gi=this.gamepadService.onButtonPressed$(ys.dt.X).pipe((0,hn.p)(ao=>!0===ao),(0,qo.u)(rs.X)),Sr=this.gamepadService.onButtonPressed$(ys.dt.B).pipe((0,hn.p)(ao=>!0===ao),(0,qo.u)(rs.B)),Wr=this.ngZone.runOutsideAngular(()=>(0,Ms.R)(document,"keydown").pipe((0,hn.p)(ao=>"Escape"===ao.key),(0,qo.u)(rs.B)));return(0,fi.h)(ae,Ct,$n,Gi,Sr,st,Wr)}handleGamepadKeyPressed(ae){switch(ae){case rs.RS:this.isDefaultMode&&this.keyboardOpened&&this.toggleKeyboard(!1);break;case rs.RT:this.isClientImeMode?this.clientInputService.controlImeInput(ma.ac.Send):this.nvKeyboardOpened?(this.nvKeyboardRef.afterDismissed().pipe((0,N.s)(1),(0,f.Q)(this.destroy$)).subscribe(()=>{this.clientInputService.initImeInput(ma.vy.Igo)}),this.activateNvKeyboard(!1)):this.clientInputService.initImeInput(ma.vy.Igo);break;case rs.Y:this.isDefaultMode&&this.toggleKeyboard(!this.keyboardOpened,!0);break;case rs.X:this.isClientImeMode&&this.clientInputService.controlImeInput(ma.ac.ToggleTextVisibility);break;case rs.B:if(this.isClientImeMode)return;this.keyboardOpened?this.nvKeyboardOpened||this.toggleKeyboard(!1):this.clientInputService.toggleInputControlUI(!1);break;case rs.RB_LONG_PRESS:this.pasteText()}}handleGamepadHintChanged(ae){const st=ae.systemKeyboardOpened,Ct=ae.imeInputTextVisible;this.isDefaultMode?(this.escapeHint="clientInput.CloseHint",this.clientImeHint="clientInput.NativeKeyboardInputHint",this.pasteHint="clientInput.PasteHint",this.enableJoystickMouse(!0),this.toggleKeyboardHint=this.keyboardOpened?st&&this.nvKeyboardSupported?"clientInput.AppKeyboardHint":"clientInput.HideKeyboardHint":"clientInput.ShowKeyboardHint"):this.isClientImeMode&&(this.textVisibilityHint=Ct?"clientInput.HideImeInputTextHint":"clientInput.ShowImeInputTextHint",this.escapeHint="clientInput.CancelHint",this.clientImeHint="clientInput.SendHint",this.enableJoystickMouse(!1))}pasteText(){this.clipboardService.isClipboardPasteOn().pipe((0,N.s)(1),(0,f.Q)(this.destroy$),(0,y.ZZ)(ae=>ae?this.clipboardService.readText():(this.logger.info("Clipboard paste is turned off from user settings."),(0,d.of)(null))),(0,y.ZZ)(ae=>null!==ae&&this.showInputControlHintForClipboard?this.clientImeLoaderService.sendUnicodeInput(ae):(0,d.of)(!1))).subscribe({next:ae=>{ae&&this.logger.info("Sent unicode text from clipboard successfully to the server: ",ae)},error:ae=>{this.logger.error("Error during clipboard operation: ",ae)}})}openNvKeyboard(){this.nvKeyboardRef=this.nvKeyboardService.open(),this.switchInputMode($o.Default),(0,fi.h)(this.nvKeyboardRef.afterOpened().pipe((0,N.s)(1),(0,qo.u)(!0)),this.nvKeyboardRef.afterDismissed().pipe((0,N.s)(1),(0,qo.u)(!1))).pipe((0,P.M)(ae=>{const st={...this.currentHintFlags,nvKeyboardOpened:ae};ae?this.openOsr():this.closeOsr(),this.triggerGamepadHintChangedSubject.next(st)}),(0,Zs.n)(ae=>ae?this.nvKeyboardService.onInput$.pipe((0,hn.p)(st=>"keydown"===st.type&&"Escape"===st.key),(0,N.s)(1)):Ua.w),(0,f.Q)(this.destroy$),(0,js.j)(()=>{this.nvKeyboardOpened&&(this.nvKeyboardRef.dismiss(),this.triggerGamepadHintChangedSubject.next({...this.currentHintFlags,nvKeyboardOpened:!1})),this.nvKeyboardRef=void 0})).subscribe(ae=>{this.activateNvKeyboard(!1),ae.stopPropagation()})}activateNvKeyboard(ae){ae&&!this.nvKeyboardOpened?this.openNvKeyboard():!ae&&this.nvKeyboardOpened&&this.nvKeyboardRef.dismiss()}toggleInputControl(ae){this.isInputControlActivated=ae,this.gamepadHintVisible=ae,this.toggleKeyboard(ae),this.enableJoystickMouse(ae),this.hideKeyboardOptionInputControlFlag&&ae&&(this.logger.info("Showing KB informative message"),this.translate.get("snacks.SteamdeckKB").subscribe(st=>{this.dialog.openSnackBar(st)}))}switchInputMode(ae){const st={...this.currentHintFlags,currentMode:ae};this.triggerGamepadHintChangedSubject.next(st)}enableJoystickMouse(ae){this.isJoystickEnabled=ae,this.bridgeService.executeCommand(i.Ts.Gfn.Streaming.ToggleJoystickMouse,{enable:ae}).pipe((0,N.s)(1),(0,f.Q)(this.destroy$)).subscribe()}toggleSystemKeyboardForXbox(ae,st=!1){st?(this.inputElement?.nativeElement.blur(),this.inputElement?.nativeElement.focus(),this.logger.info("Force open virtual keyboard on Xbox.")):this.toggleSystemKeyboard(ae)}toggleKeyboard(ae,st=!1){this.nvKeyboardSupported?this.activateNvKeyboard(ae):this.specialCaseForKeyboardHandling?this.toggleSystemKeyboardForXbox(ae,st):this.toggleSystemKeyboard(ae)}toggleSystemKeyboard(ae){const st=this.inputElement?.nativeElement;st&&(ae?st.focus():st.blur())}openOsr(){this.osrHandler.open(!0).pipe((0,N.s)(1)).subscribe(ae=>{this.logger.info("Opened osr with state "+ae)},ae=>{this.logger.error("Received error when opening osr: ",ae)})}closeOsr(){this.osrHandler.close().pipe((0,N.s)(1)).subscribe(ae=>{this.logger.info("Closed osr, state after close: "+ae)},ae=>{this.logger.error("Received error when closing osr: ",ae)})}ngOnDestroy(){this.osrHandler&&!this.osrHandler.isDestroyed&&this.osrHandler.closeAndDestroy().pipe((0,N.s)(1)).subscribe(),this.nvKeyboardRef?.dismiss(),this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(st){return new(st||Rn)(c.rXU(m.J6),c.rXU(c.SKi),c.rXU(r.$jZ),c.rXU(m.NZ),c.rXU(ys.bi),c.rXU(Ia.mb),c.rXU(fa.ED),c.rXU(Ga.RF),c.rXU(r.Rvq),c.rXU(Z.$vj),c.rXU(Se.c$),c.rXU(r.eo6),c.rXU(Z.WWE),c.rXU(ma.R3),c.rXU(Z.Vk6))}}static{this.\u0275cmp=c.VBU({type:Rn,selectors:[["igo-input-control"]],viewQuery:function(st,Ct){if(1&st&&c.GBs($s,5),2&st){let $n;c.mGM($n=c.lsd())&&(Ct.inputElement=$n.first)}},decls:3,vars:1,consts:[["textInput",""],["autocomplete","off","autocorrect","off","autocapitalize","off","type","text","id","hiddentext","tabIndex","-1",1,"hidden-text-input"],["class","input-control",4,"ngIf"],[1,"input-control"],["fxFlex","","fxLayout","column","fxLayoutGap","24px",1,"icon-hint-container"],[3,"hint","svgIcon"],[3,"hint","svgIcon",4,"ngIf"]],template:function(st,Ct){1&st&&(c.nrm(0,"input",1,0),c.DNE(2,ra,8,7,"div",2)),2&st&&(c.R7$(2),c.Y8G("ngIf",Ct.gamepadHintVisible))},dependencies:[I.bT,V.DJ,V.BO,V.UI,cs],styles:[".hidden-text-input[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:50px;opacity:0;pointer-events:none;caret-color:transparent;font-size:24em}.input-control[_ngcontent-%COMP%]{position:absolute;top:64px}.isLtr[_nghost-%COMP%] .input-control[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .input-control[_ngcontent-%COMP%]{left:64px}.isRtl[_nghost-%COMP%] .input-control[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .input-control[_ngcontent-%COMP%]{right:64px}"]})}}return Rn})();var Bs=s(892),Va=s(26875);const La=[{id:r.EdA.OpenShare,icon:"nvidia_symbol",iconColor:"icon-preview notifier-icon-large",iconBackground:"icon-green-bg",message:"notification.OpenShare",alternateNotificationData:{alternativeMessage1:"notification.OpenShareGamepad",alternativeMessage2:"notification.guestApp.OpenShare",alternativeMessage3:"notification.guestApp.OpenShareBasic",alternativeMessage4:"notification.guestApp.OpenShareGamepad",alternativeIcon:"info",alternativeIconClass:"notifier-icon-setting"}},{id:r.EdA.OpenShareNvApp,icon:"nvidia_symbol",iconColor:"icon-preview notifier-icon-large",iconBackground:"icon-green-bg",message:"notification.OpenShareNvApp",alternateNotificationData:{alternativeMessage1:"notification.OpenShareGamepadNvApp",alternativeMessage2:"notification.guestApp.OpenShare",alternativeIcon:"info",alternativeIconClass:"notifier-icon-setting"}},{id:r.EdA.PerfMonLogging,icon:"nvidia_symbol",iconColor:"icon-preview notifier-icon-large",iconBackground:"icon-green-bg",message:"notification.PerfMonLogging"},{id:r.EdA.PerfMonRectAlignmentWarning,icon:"alert_circle",iconColor:"icon-normal",message:"settings.RLARectangle"},{id:r.EdA.PerfMonRfiWarning,icon:"audio",iconColor:"icon-normal",message:"settings.RLAIndicator"},{id:r.EdA.InstantReplayStarted,icon:"replay",iconColor:"icon-highlighted",message:"notification.InstantReplayStarted"},{id:r.EdA.InstantReplayStopped,icon:"replay",iconColor:"icon-normal",message:"notification.InstantReplayStopped"},{id:r.EdA.InstantReplaySaving,icon:"replay",iconColor:"icon-highlighted",message:"notification.InstantReplaySaving"},{id:r.EdA.InstantReplaySaved,icon:"replay",iconColor:"icon-highlighted",message:"notification.InstantReplaySaved"},{id:r.EdA.RecordStarted,icon:"record",iconColor:"icon-highlighted",message:"notification.ManualRecordStarted"},{id:r.EdA.RecordSaving,icon:"record",iconColor:"icon-normal",message:"notification.ManualRecordSaving"},{id:r.EdA.RecordStopped,icon:"record",iconColor:"icon-normal",message:"notification.ManualRecordStopped"},{id:r.EdA.ScreenshotSaved,icon:"gallery",iconColor:"icon-normal",message:"notification.ScreenshotSaved"},{id:r.EdA.PhotographicScreenshotSavedToGallery,icon:"gallery",iconColor:"icon-normal",message:"notification.PhotographicScreenshotSavedToGallery"},{id:r.EdA.WarningFullscreenGameRequired,icon:"warning",iconColor:"icon-warning",message:"notification.WarningFullscreenGameRequired"},{id:r.EdA.WarningRecordingStopToCustomize,icon:"warning",iconColor:"icon-warning",message:"notification.WarningStopRecordingToCustomize"},{id:r.EdA.WarningHighlightsStopToCustomize,icon:"warning",iconColor:"icon-warning",message:"notification.WarningStopHighlightsToCustomize"},{id:r.EdA.WarningRecordingStopToUseFeature,icon:"warning",iconColor:"icon-warning",message:"notification.WarningStopRecording"},{id:r.EdA.WarningInstantReplayStopToUseFeature,icon:"warning",iconColor:"icon-warning",message:"notification.WarningStopInstantReplay"},{id:r.EdA.WarningSupportedGameRequired,icon:"alert_circle",iconColor:"icon-normal",message:"notification.WarningGameRequired"},{id:r.EdA.WarningNvidiaGpuRequired,icon:"warning",iconColor:"icon-warning",message:"notification.WarningNvidiaGpuRequired"},{id:r.EdA.HighlightsSaved,icon:"highlights",iconColor:"icon-normal",message:"notification.HighlightsSaved"},{id:r.EdA.FailedToRemove,icon:"warning",iconColor:"icon-warning",message:"notification.FailedToRemove"},{id:r.EdA.GalleryIsFull,icon:"warning",iconColor:"icon-warning",message:"notification.GalleryIsFull"},{id:r.EdA.DiskSpaceIsLow,icon:"warning",iconColor:"icon-warning",message:"notification.DiskSpaceIsLow"},{id:r.EdA.NoSpaceCaptureNotSaved,icon:"warning",iconColor:"icon-warning",message:"notification.NoSpaceCaptureNotSaved"},{id:r.EdA.NoSpaceCaptureNotStarted,icon:"warning",iconColor:"icon-warning",message:"notification.NoSpaceCaptureNotStarted"},{id:r.EdA.ErrorRestartGame,icon:"warning",iconColor:"icon-warning",message:"notification.ErrorRestartGame"},{id:r.EdA.PhotoModeNotAllowedNvApp,icon:"alert_circle",iconColor:"icon-normal",message:"notification.PhotoModeNotAllowed"},{id:r.EdA.PhotoModeNotAllowed,icon:"warning",iconColor:"icon-warning",message:"notification.PhotoModeNotAllowed"},{id:r.EdA.CustomOverlaySlotEmpty,icon:"warning",iconColor:"icon-warning",message:"notification.CustomOverlaySlotEmpty"},{id:r.EdA.ManualRecordRunning,icon:"warning",iconColor:"icon-warning",message:"notification.ManualRecordRunning"},{id:r.EdA.ConnectingToGfnBroadcast,icon:"broadcast",iconColor:"icon-highlighted",message:"notification.ConnectingTo"},{id:r.EdA.ConnectedToGfnBroadcast,icon:"check",iconColor:"icon-highlighted",message:"notification.ConnectedTo"},{id:r.EdA.FailedToConnectGfnBroadcast,icon:"warning",iconColor:"icon-warning",message:"notification.FailedConnect"},{id:r.EdA.DisconnectedFromGfnBroadcast,icon:"close",iconColor:"icon-highlighted",message:"notification.DisconnectedFrom"},{id:r.EdA.NetworkSpottyConnection,icon:"network_signal",iconColor:"icon-warning",message:"notification.network.spottyConnection"},{id:r.EdA.NetworkBadConnection,icon:"network_signal",iconColor:"icon-error",message:"notification.network.badNetworkMessage",alternateNotificationData:{alternativeMessage1:"notification.network.badNetworkMessageShort",alternativeMessage2:"notification.network.guestApp.badNetworkMessage"}},{id:r.EdA.OnscreenKeyboardUsage,icon:"remote",iconColor:"icon-normal",message:"notification.OnscreenKeyboardUsage"},{id:r.EdA.HDRErrorHighlight,icon:"warning",iconColor:"icon-warning",message:"notification.HDRErrorHighlight"},{id:r.EdA.HDRErrorRecord,icon:"warning",iconColor:"icon-warning",message:"notification.HDRErrorRecord"},{id:r.EdA.HDRErrorScreenshot,icon:"warning",iconColor:"icon-warning",message:"notification.HDRErrorScreenshot"},{id:r.EdA.ProtectedContentWarning,icon:"alert_circle",iconColor:"icon-normal",message:"notification.ProtectedContentApp"},{id:r.EdA.HighlightsSavedToGallery,icon:"highlights",iconColor:"icon-normal",message:"summaryDialog.SavedToGalleryNotification"},{id:r.EdA.GAssistLaunchError,icon:"warning",iconColor:"icon-warning",message:"gAssist.launchError"},{id:r.EdA.GAssistChartDataSaved,icon:"g-assist",wordBreak:!0,message:"gAssist.chartDataSaved"},{id:r.EdA.GAssistChartDataSaveError,icon:"warning",iconColor:"icon-warning",message:"gAssist.chartDataSaveError"}],qs=(Rn,Xn)=>({"notifier-black-rtxhdr":Rn,"notifier-black-nativehdr":Xn}),ks=Rn=>({"notifier-word-break":Rn});function ea(Rn,Xn){if(1&Rn&&c.nrm(0,"img",6),2&Rn){const ae=c.XpG();c.Y8G("src",ae.notifierIconPath,c.B4B)}}function ts(Rn,Xn){if(1&Rn&&c.nrm(0,"mat-icon",7),2&Rn){const ae=c.XpG();c.ZvI("mat-icon notifier-icon ",ae.notifierIconColor,""),c.Y8G("svgIcon",ae.notifierIcon)}}let $a=(()=>{class Rn{constructor(ae,st,Ct,$n,Gi,Sr,Wr,ao,Ir){this.loggingService=ae,this.oscDisplayService=st,this.oscNotificationService=Ct,this.el=$n,this.renderer=Gi,this.translateService=Sr,this.featureSupportService=ao,this.igoConfig=Ir,this.isOpen=!1,this.doFlip=!1,this.flipToMessage="",this.flipToIcon="",this.flipToIconColor="",this.flipToIconBackground="",this.flipToIconPath="",this.countDown=0,this.notifierMessage="",this.notifierIconPath="",this.notifierIcon="",this.notifierIconColor="",this.notifierIconBackground="",this.countDownStart=5,this.isRTLLayout=!1,this.tvMode=!1,this.rtxHdrMode=!1,this.nativeHdrMode=!1,this.notifierWordBreak=!1,this.logger=this.loggingService.getLogger("NvOscNotifierComponent"),this.isRTLLayout=Wr.isRTLLayoutEnabled,this.tvMode=this.featureSupportService.isTVMode()}ngAfterViewInit(){this.renderer.addClass(this.el.nativeElement,"notifier-slider"),this.igoConfig.GFNCefClient||this.oscDisplayService.isDisplayStateCheckComplete().pipe((0,hn.p)(Boolean),(0,N.s)(1)).subscribe(()=>{this.rtxHdrMode=this.oscDisplayService.getRtxHdrEnable(),this.nativeHdrMode=!this.rtxHdrMode&&this.oscDisplayService.getNativeHdrEnable()}),this.events=this.oscNotificationService.getOscEvents().subscribe(ae=>{const{thumb:st,...Ct}=ae;this.logger.info("got message: ",Ct),this.oscDisplayService.getIsUIAllowed()&&(ae.selection===r.EdA.Empty?this.close():this.setupNotifier(ae))})}ngOnDestroy(){this.events.unsubscribe()}changeClass(ae){"tall"===ae?(this.renderer.removeClass(this.el.nativeElement,"notifier-large"),this.renderer.addClass(this.el.nativeElement,"notifier-tall")):"large"===ae?(this.renderer.removeClass(this.el.nativeElement,"notifier-tall"),this.renderer.addClass(this.el.nativeElement,"notifier-large")):"small"===ae&&(this.renderer.removeClass(this.el.nativeElement,"notifier-tall"),this.renderer.removeClass(this.el.nativeElement,"notifier-large"))}getWidthOfText(ae,st,Ct){return this.renderer.createElement("canvas").getContext("2d").measureText(ae).width}close(){this.isOpen=!1,this.renderer.removeClass(this.el.nativeElement,"notifier-flip"),this.renderer.removeClass(this.el.nativeElement,this.isRTLLayout?"notifier-open-rtl":"notifier-open"),setTimeout(()=>{this.oscDisplayService.setNotificationStop(),this.oscDisplayService.closeNonInteractiveOSC()},1e3)}flip(){this.renderer.addClass(this.el.nativeElement,"notifier-flip")}open(ae=!1){this.isOpen=!0;const st=this.tvMode?592:330,$n=this.tvMode?"28px":"18px";DOMRect.fromRect({x:1920-st,y:90,width:st,height:this.tvMode?309:240}),this.oscDisplayService.setNotificationStart(),this.oscDisplayService.openNonInteractiveOSC();const Sr=this.getWidthOfText(this.notifierMessage,"NVIDIA",$n);this.changeClass(Sr>(this.tvMode?500:525)?"tall":Sr>(this.tvMode?250:290)?"large":"small"),this.renderer.addClass(this.el.nativeElement,this.isRTLLayout?"notifier-open-rtl":"notifier-open");const Ir=(0,Bs.Y)(1e3).subscribe(()=>{if(this.countDown<0&&this.doFlip){this.countDown=ae?2*this.countDownStart:this.countDownStart,this.flip(),this.doFlip=!1;const Cr=(0,Bs.Y)(250).subscribe(()=>{this.notifierIcon=this.flipToIcon,this.notifierIconColor=this.flipToIconColor,this.notifierIconBackground=this.flipToIconBackground,this.notifierIconPath=this.flipToIconPath,this.notifierMessage=this.flipToMessage,Cr.unsubscribe()})}else this.countDown<0?(this.countDown=0,this.close(),Ir.unsubscribe()):this.countDown--})}setupNotifier(ae){const st=(0,Va.find)(La,Sr=>Sr.id===ae.selection);let Ct=ae.arg1;(0,Va.isString)(Ct)&&""!==Ct&&(Ct=this.translateService.instant(Ct,{}));let $n=ae.arg2;(0,Va.isString)($n)&&""!==$n&&($n=this.translateService.instant($n,{})),""!==ae.thumb&&(st.img=ae.thumb,st.icon="");const Gi=this.translateService.instant(this.pickAlternateMessages(ae.alternateNotificationData.useAlternativeMessage,st),{arg1:Ct,arg2:$n});if(ae.flip)this.flipToIcon=ae.alternateNotificationData?.useAlternativeIcon?st.alternateNotificationData.alternativeIcon:st.icon||"",this.flipToIconColor=ae.alternateNotificationData?.useAlternativeIcon?st.alternateNotificationData.alternativeIconClass:st.iconColor||"",this.flipToIconBackground=ae.alternateNotificationData?.useAlternativeIcon?"":st.iconBackground||"",this.flipToIconPath=st.img||"",this.flipToMessage=Gi,this.doFlip=!0;else{this.notifierMessage=Gi,this.notifierIcon=ae.alternateNotificationData?.useAlternativeIcon?st.alternateNotificationData?.alternativeIcon:st.icon||"",this.notifierIconColor=ae.alternateNotificationData?.useAlternativeIcon?st.alternateNotificationData?.alternativeIconClass:st.iconColor||"",this.notifierIconBackground=ae.alternateNotificationData?.useAlternativeIcon?"":st.iconBackground||"",this.notifierIconPath=st.img||"",this.notifierWordBreak=st.wordBreak;const Sr=ae.selection===r.EdA.ProtectedContentWarning;this.countDown=Sr?2*this.countDownStart:this.countDownStart,this.open(Sr)}}pickAlternateMessages(ae,st){let Ct="";switch(ae){case r.wzr.None:Ct=st.message;break;case r.wzr.Message1:Ct=st.alternateNotificationData?.alternativeMessage1;break;case r.wzr.Message2:Ct=st.alternateNotificationData?.alternativeMessage2;break;case r.wzr.Message3:Ct=st.alternateNotificationData?.alternativeMessage3;break;case r.wzr.Message4:Ct=st.alternateNotificationData?.alternativeMessage4}return Ct}static{this.\u0275fac=function(st){return new(st||Rn)(c.rXU(m.J6),c.rXU(r.Bqk),c.rXU(r.mbZ),c.rXU(c.aKT),c.rXU(c.sFG),c.rXU(Se.c$),c.rXU(m.iH),c.rXU(r.Rvq),c.rXU(r.k$F))}}static{this.\u0275cmp=c.VBU({type:Rn,selectors:[["nv-osc-notifier"]],decls:7,vars:13,consts:[[1,"notifier-black","mat-elevation-z6",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"notifier",3,"ngClass"],["fxFlex","none","fxLayout","row","fxLayoutAlign","center center"],["class","notifier-icon","fxFlex","none",3,"src",4,"ngIf"],[3,"svgIcon","class",4,"ngIf"],["fxLayout","column",1,"font-body2","notifier-text"],["fxFlex","none",1,"notifier-icon",3,"src"],[3,"svgIcon"]],template:function(st,Ct){1&st&&(c.j41(0,"div",0)(1,"div",1)(2,"div",2),c.DNE(3,ea,1,1,"img",3)(4,ts,1,4,"mat-icon",4),c.k0s(),c.j41(5,"div",5),c.EFF(6),c.k0s()()()),2&st&&(c.Y8G("ngClass",c.l_i(8,qs,Ct.rtxHdrMode,Ct.nativeHdrMode)),c.R7$(),c.Y8G("ngClass",c.eq3(11,ks,Ct.notifierWordBreak)),c.R7$(),c.ZvI("notifier-icon-container ",Ct.notifierIconBackground,""),c.R7$(),c.Y8G("ngIf",Ct.notifierIconPath),c.R7$(),c.Y8G("ngIf",Ct.notifierIcon),c.R7$(2),c.JRh(Ct.notifierMessage))},dependencies:[I.YU,I.bT,V.DJ,V.sA,V.UI,T.PW,E.An],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.notifier-slider[_nghost-%COMP%]{perspective:800px}.notifier-black[_ngcontent-%COMP%]{box-sizing:border-box;position:absolute;overflow:hidden;width:300px;height:90px;top:105px;z-index:200;background-color:var(--osc-notifier-bg-color)}.isLtr[_nghost-%COMP%] .notifier-black[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .notifier-black[_ngcontent-%COMP%]{right:-100%;transition:right .25s cubic-bezier(.4,0,1,1) .25s,border-left-width .25s cubic-bezier(.4,0,1,1) 0s;border-left:300px solid var(--accent-500)}.isRtl[_nghost-%COMP%] .notifier-black[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .notifier-black[_ngcontent-%COMP%]{left:-100%;transition:left .25s cubic-bezier(.4,0,1,1) .25s,border-right-width .25s cubic-bezier(.4,0,1,1) 0s;border-right:300px solid var(--accent-500)}.notifier-black-rtxhdr[_ngcontent-%COMP%]{background-color:var(--osc-notifier-bg-color-rtxhdr)}.notifier-black-nativehdr[_ngcontent-%COMP%]{background-color:var(--osc-notifier-bg-color-nativehdr)}.notifier-large[_nghost-%COMP%] > .notifier-black[_ngcontent-%COMP%]{width:330px;height:124px;top:90px}.notifier-tall[_nghost-%COMP%] > .notifier-black[_ngcontent-%COMP%]{width:330px;height:150px;top:90px}.notifier[_ngcontent-%COMP%]{width:100%;height:100%;opacity:0;transition-property:opacity 0s linear 0s}.notifier-icon-container[_ngcontent-%COMP%]{margin:10px 16px;height:70px;width:70px}.notifier-icon[_ngcontent-%COMP%]{box-sizing:border-box;width:48px;height:48px;font-size:48px}.notifier-icon-large[_ngcontent-%COMP%]{width:60px;height:60px}.notifier-icon-setting[_ngcontent-%COMP%]{opacity:.7}.notifier-word-break[_ngcontent-%COMP%]{word-break:break-word}.notifier-text[_ngcontent-%COMP%]{width:calc(100% - 102px);color:var(--osc-notifier-text-color)}.isLtr[_nghost-%COMP%] .notifier-text[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .notifier-text[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .notifier-text[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .notifier-text[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .notifier-text[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .notifier-text[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}@media screen and (max-width: 430px) and (max-height: 932px) and (orientation: portrait),screen and (max-width: 932px) and (max-height: 430px) and (orientation: landscape){.notifier-black[_ngcontent-%COMP%]{width:211px;height:48px;top:72px}.isLtr[_nghost-%COMP%] .notifier-black[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .notifier-black[_ngcontent-%COMP%]{right:-241px;border-left:211px solid var(--accent-500)}.isRtl[_nghost-%COMP%] .notifier-black[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .notifier-black[_ngcontent-%COMP%]{left:-241px;border-right:211px solid var(--accent-500)}.notifier-icon-container[_ngcontent-%COMP%]{margin:8px 16px;width:32px;height:32px}.notifier-icon[_ngcontent-%COMP%]{width:28px;height:28px}.notifier-text[_ngcontent-%COMP%]{width:calc(100% - 64px)}.isLtr[_nghost-%COMP%] .notifier-text[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .notifier-text[_ngcontent-%COMP%]{padding-right:14px}html[dir=ltr][_ngcontent-%COMP%] .notifier-text[_ngcontent-%COMP%]{--dummy2: 0;padding-right:14px}.isRtl[_nghost-%COMP%] .notifier-text[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .notifier-text[_ngcontent-%COMP%]{padding-left:14px}html[dir=rtl][_ngcontent-%COMP%] .notifier-text[_ngcontent-%COMP%]{--dummy2: 0;padding-left:14px}}.notifier-open[_nghost-%COMP%] > .notifier-black[_ngcontent-%COMP%]{transition:right .25s cubic-bezier(0,0,.2,1) 0s,border-left-width .25s cubic-bezier(0,0,.2,1) .25s;right:0;border-left-width:5px}.notifier-open[_nghost-%COMP%] > .notifier-black[_ngcontent-%COMP%] > .notifier[_ngcontent-%COMP%]{transition:opacity .5s linear .5s;opacity:1}.notifier-open-rtl[_nghost-%COMP%] > .notifier-black[_ngcontent-%COMP%]{transition:left .25s cubic-bezier(0,0,.2,1) 0s,border-right-width .25s cubic-bezier(0,0,.2,1) .25s;left:0;border-right-width:5px}.notifier-open-rtl[_nghost-%COMP%] > .notifier-black[_ngcontent-%COMP%] > .notifier[_ngcontent-%COMP%]{transition:opacity .5s linear .5s;opacity:1}.notifier-flip[_nghost-%COMP%] > .notifier-green[_ngcontent-%COMP%], .notifier-flip[_nghost-%COMP%] > .notifier-black[_ngcontent-%COMP%]{transition:transform 1s;transform-style:preserve-3d;transform:rotateX(180deg)}.notifier-flip[_nghost-%COMP%] > .notifier-black[_ngcontent-%COMP%] > .notifier[_ngcontent-%COMP%]{transition:transform 1s;transform-style:preserve-3d;transform:rotateX(-180deg)}.tv-view[_nghost-%COMP%] .notifier-black[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .notifier-black[_ngcontent-%COMP%]{width:429px;height:154px}.tv-view[_nghost-%COMP%] .notifier-icon-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .notifier-icon-container[_ngcontent-%COMP%]{margin:16px 24px;width:114px;height:114px}.tv-view[_nghost-%COMP%] .notifier-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .notifier-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .notifier-icon-large[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .notifier-icon-large[_ngcontent-%COMP%]{width:82px;height:82px;font-size:82px}.tv-view .notifier-large[_nghost-%COMP%] > .notifier-black[_ngcontent-%COMP%]{width:562px;height:204px}.tv-view .notifier-tall[_nghost-%COMP%] > .notifier-black[_ngcontent-%COMP%]{width:562px;height:250px}"]})}}return Rn})(),va=(()=>{class Rn{constructor(){this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight}static{this.\u0275fac=function(st){return new(st||Rn)}}static{this.\u0275cmp=c.VBU({type:Rn,selectors:[["igo-nv-grid"]],decls:10,vars:34,consts:[[1,"grid-svg","pos-abs"],[1,"grid-line-white"],[1,"grid-line-white","pos-abs"],[1,"grid-line-black"]],template:function(st,Ct){1&st&&(c.j41(0,"div"),c.qSk(),c.j41(1,"svg",0),c.nrm(2,"line",1)(3,"line",1)(4,"line",2)(5,"line",1)(6,"line",3)(7,"line",3)(8,"line",3)(9,"line",3),c.k0s()()),2&st&&(c.R7$(),c.BMQ("width",Ct.windowWidth)("height",Ct.windowHeight),c.R7$(),c.BMQ("x1",0)("x2",Ct.windowWidth)("y1",Ct.windowHeight/3)("y2",Ct.windowHeight/3),c.R7$(),c.BMQ("x1",0)("x2",Ct.windowWidth)("y1",2*Ct.windowHeight/3)("y2",2*Ct.windowHeight/3),c.R7$(),c.BMQ("x1",Ct.windowWidth/3)("x2",Ct.windowWidth/3)("y1",0)("y2",Ct.windowHeight),c.R7$(),c.BMQ("x1",2*Ct.windowWidth/3)("x2",2*Ct.windowWidth/3)("y1",0)("y2",Ct.windowHeight),c.R7$(),c.BMQ("x1",0)("x2",Ct.windowWidth)("y1",Ct.windowHeight/3)("y2",Ct.windowHeight/3),c.R7$(),c.BMQ("x1",0)("x2",Ct.windowWidth)("y1",2*Ct.windowHeight/3)("y2",2*Ct.windowHeight/3),c.R7$(),c.BMQ("x1",Ct.windowWidth/3)("x2",Ct.windowWidth/3)("y1",0)("y2",Ct.windowHeight),c.R7$(),c.BMQ("x1",2*Ct.windowWidth/3)("x2",2*Ct.windowWidth/3)("y1",0)("y2",Ct.windowHeight))},styles:[".grid-line-white[_ngcontent-%COMP%]{stroke:var(--primary-contrast-1000);stroke-width:5}.grid-line-black[_ngcontent-%COMP%]{stroke:var(--secondary-1000);stroke-width:2}.grid-svg[_ngcontent-%COMP%]{z-index:-1}.pos-abs[_ngcontent-%COMP%]{position:absolute}"]})}}return Rn})();const Mn=["textInput"],Tn=Rn=>({"igo-geometry":Rn});function tn(Rn,Xn){1&Rn&&c.nrm(0,"igo-nv-grid")}function In(Rn,Xn){if(1&Rn&&(c.j41(0,"div",3),c.nrm(1,"router-outlet",4,0),c.k0s()),2&Rn){const ae=c.sdS(2),st=c.XpG();c.Y8G("ngClass",c.eq3(3,Tn,st.isNvAppClient))("@slideInOut",st.prepareRoute(ae))("@slideInOutRTL",st.prepareRouteRtl(ae))}}function Ai(Rn,Xn){1&Rn&&c.nrm(0,"igo-input-control")}let So=(()=>{class Rn{constructor(ae,st,Ct,$n,Gi,Sr,Wr,ao,Ir,Cr,Po,Ki){this.injector=$n,this.bridgeService=Gi,this.igoConfig=Sr,this.navigationService=Wr,this.oscDisplayService=ao,this.matDialog=Ir,this.localeService=Cr,this.projectInterfaceService=Po,this.hotkeyService=Ki,this.uiStateSub=void 0,this.destroy$=new l.B7,this.curUIState="closed",this.showGrid=!1,this.throttleDuration=500,this.slideInOutParams={left_void:"-100%",right_void:"0",left_igo:"0",right_igo:"100%"},this.inputControlEnabled=!1,this.sidebarEnabled=!0,this.isNvAppClient=!1,this.logger=st.getLogger("IGO"),this.isNvAppClient=!this.igoConfig.GFNCefClient,Ct.isGFEMode()&&(this.nvcameraService=this.injector.get(r.h8x),this.oscNotificationService=this.injector.get(r.mbZ),this.osdService=this.injector.get(r.auo),this.shadowPlayService=this.injector.get(r.W1J),this.perfMonService=this.injector.get(r.zET)),(Ct.isGFEMode()?this.handleGFEtoNvAppMigration():(0,d.of)(!0)).pipe((0,S.W)(ca=>(this.logger.info("handleGFEtoNvAppMigration failed",ca),(0,d.of)(null))),(0,y.ZZ)(()=>ae.init())).subscribe(ca=>{ca&&(this.logger.info("IGO singleton services initialized"),Sr.GFNCefClient&&Sr.IGOFeatureEnabled&&(this.inputControlEnabled=Ct.isInputControlEnabled(),this.sidebarEnabled=!Ct.isGfnMobileMode()&&!Ct.getForceTouchModeSettings()?.useOsc))}),this.uiStateSub=this.oscDisplayService.getCurrentOpenState().pipe((0,f.Q)(this.destroy$)).subscribe(ca=>{this.curUIState=ca}),this.hotkeyService.listen(r.g8X.QuitGame).pipe((0,O.c)(this.throttleDuration),(0,f.Q)(this.destroy$)).subscribe(()=>{this.quitStreaming()})}onkeydown(ae){if(this.igoConfig.IGOFeatureEnabled&&"Escape"===ae.key&&"open"===this.curUIState){if(this.matDialog.openDialogs.length>0)return;this.logger.info("IGO Detected Escape"),this.navigationService.goToNextNavState(),this.preventDefaultAndStopPropagation(ae)}}quitStreaming(){"open"===this.curUIState?(this.logger.info("IGO detected Quit Wih open state"),this.oscDisplayService.closeOSC(a.oy.QuitGath)):this.logger.info("IGO detected Quit with closed state"),this.projectInterfaceService.quitStreaming()}preventDefaultAndStopPropagation(ae){ae.preventDefault(),ae.stopPropagation()}handleGFEtoNvAppMigration(){this.logger.info("handleGFEtoNvAppMigration");let ae=!1;return(0,v.p)([this.bridgeService.executeCommand(i.Ts.Share.Shareserver.HandleHighlightsGfeConfig),this.bridgeService.executeCommand(i.Ts.Share.Shareserver.GetExportedGFESettingsData)]).pipe((0,S.W)(st=>(this.logger.error("GFE migration fetch failed",st),(0,d.of)([null,{isValidGFEDataFound:!1,gfeData:null}]))),(0,y.ZZ)(([st,Ct])=>{if(!Ct.isValidGFEDataFound||!Ct.gfeData)return this.logger.info("No valid gfe settings backup found"),this.shadowPlayService.syncShadowPlaySettings(!1);let $n={};try{$n=JSON.parse(Ct.gfeData),this.logger.info("gfeData found in the storage")}catch(Gi){$n=null,this.logger.error("Failed to parse stored gfeData exception ",Gi)}return $n?(ae=!0,(0,v.p)([this.nvcameraService?.loadGFEMigrationData($n).pipe((0,S.W)(Gi=>(this.logger.error("GFE migration failed for nvcameraservice",Gi),(0,d.of)(null))))??(0,d.of)(null),this.oscNotificationService?.loadGFEMigrationData($n).pipe((0,S.W)(Gi=>(this.logger.error("GFE migration failed for oscNotificationService",Gi),(0,d.of)(null))))??(0,d.of)(null),this.osdService?.loadGFEMigrationData($n).pipe((0,S.W)(Gi=>(this.logger.error("GFE migration failed for osdService",Gi),(0,d.of)(null))))??(0,d.of)(null),this.perfMonService?.loadGFEMigrationData($n).pipe((0,S.W)(Gi=>(this.logger.error("GFE migration failed for perfMonService",Gi),(0,d.of)(null))))??(0,d.of)(null),this.shadowPlayService.syncShadowPlaySettings(!0).pipe((0,S.W)(Gi=>(this.logger.error("GFE migration failed for shadowPlayService",Gi),(0,d.of)(null))))]).pipe((0,P.M)(Gi=>this.logger.info("GFE settings migrated successfully")))):(this.logger.error("Failed to parse GFE backup data, ignoring it"),this.shadowPlayService.syncShadowPlaySettings(!1))}),(0,_.T)(st=>!0))}setShowGrid(ae){this.showGrid=ae}getShowGrid(){return this.showGrid}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}prepareRoute(ae){return!this.localeService.isRTLLayoutEnabled&&ae&&ae.isActivated&&ae.activatedRoute?"igo":"void"}prepareRouteRtl(ae){return this.localeService.isRTLLayoutEnabled&&ae&&ae.isActivated&&ae.activatedRoute?"igo":"void"}static{this.\u0275fac=function(st){return new(st||Rn)(c.rXU(r.m$j),c.rXU(m.J6),c.rXU(r.Rvq),c.rXU(c.zZn),c.rXU(m.NZ),c.rXU(r.k$F),c.rXU(r.o_p),c.rXU(r.Bqk),c.rXU(M.bZ),c.rXU(m.iH),c.rXU(D.qQ),c.rXU(r.QSC))}}static{this.\u0275cmp=c.VBU({type:Rn,selectors:[["nv-igo"]],viewQuery:function(st,Ct){if(1&st&&c.GBs(Mn,5),2&st){let $n;c.mGM($n=c.lsd())&&(Ct.inputElement=$n.first)}},hostBindings:function(st,Ct){1&st&&c.bIt("keydown",function(Gi){return Ct.onkeydown(Gi)},!1,c.EBC)},decls:5,vars:3,consts:[["outletigo","outlet"],[4,"ngIf"],["class","sidebar","fxFlexFill","",3,"ngClass",4,"ngIf"],["fxFlexFill","",1,"sidebar",3,"ngClass"],["name","igo"]],template:function(st,Ct){1&st&&(c.nrm(0,"nv-osc-notifier"),c.DNE(1,tn,1,0,"igo-nv-grid",1)(2,In,3,5,"div",2),c.nrm(3,"nv-osd"),c.DNE(4,Ai,1,0,"igo-input-control",1)),2&st&&(c.R7$(),c.Y8G("ngIf",Ct.showGrid),c.R7$(),c.Y8G("ngIf",Ct.sidebarEnabled),c.R7$(2),c.Y8G("ngIf",Ct.inputControlEnabled))},dependencies:[I.YU,I.bT,U.n3,V.G2,T.PW,Xs,Yo,$a,va],styles:["[_nghost-%COMP%]{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden!important;-webkit-user-select:none;user-select:none;cursor:default;margin:0;background:#0000!important;pointer-events:none}.sidebar[_ngcontent-%COMP%]{position:relative;overflow:hidden}"],data:{animation:[(0,n.hZ)("slideInOut",[(0,n.kY)("void => igo",[(0,n.iF)({opacity:0,left:"-100%"}),(0,n.i0)("300ms cubic-bezier(0, 0, 0.2, 1)",(0,n.iF)({opacity:1,left:"0"}))]),(0,n.kY)("igo => void",[(0,n.P)(":leave",[(0,n.iF)({opacity:1,left:"0"}),(0,n.i0)("300ms cubic-bezier(0.4, 0, 1, 1)",(0,n.iF)({opacity:0,left:"-100%"}))])])]),(0,n.hZ)("slideInOutRTL",[(0,n.kY)("void => igo",[(0,n.iF)({opacity:0,right:"-100%"}),(0,n.i0)("300ms cubic-bezier(0, 0, 0.2, 1)",(0,n.iF)({opacity:1,right:"0"}))]),(0,n.kY)("igo => void",[(0,n.P)(":leave",[(0,n.iF)({opacity:1,right:"0"}),(0,n.i0)("300ms cubic-bezier(0.4, 0, 1, 1)",(0,n.iF)({opacity:0,right:"-100%"}))])])])]}})}}return Rn})()},23540:(Bt,z,s)=>{"use strict";s.r(z),s.d(z,{MainMenuModule:()=>Fi});var n=s(61142),l=s(14354),d=s(51006),v=s(99469),S=s(17617),y=s(23812),f=s(58527),O=s(80583),P=s(93181),_=s(892),i=s(43848),r=s(4208),a=s(91384),c=s(65706),m=s(20924),M=s(1229),D=s(54947),I=s(54292),U=s(50801),V=s(59002),T=s(19724),N=s(3457),L=s(28139),E=s(43664),g=s(43822),R=s(93662),B=s(52834),X=s(62141),H=s(54676),J=s(35146),re=s(73180),ie=s(75707),ve=s(93702),ue=s(8619),se=s(81616),Z=s(6754),Se=s(67904),Ce=s(64409);const Be=["scroller"];function Xe(bt,bn){if(1&bt){const Pt=f.RV6();f.j41(0,"div",9)(1,"nv-virtual-grid-item",10)(2,"nv-gallery-item",11),f.bIt("click",function(){const gn=f.eBV(Pt).$implicit,ui=f.XpG(2);return f.Njj(ui.openFile(gn.item))})("mousedown",function(){const gn=f.eBV(Pt).$implicit,ui=f.XpG(2);return f.Njj(ui.selectedItemChanged(gn.item))}),f.k0s()()()}if(2&bt){const Pt=bn.$implicit,jt=f.XpG(2);f.R7$(),f.Y8G("item",Pt)("selectedItemIndex",jt.selectedItemIndex)("itemWidth",jt.displayThumbnailSize)("itemHeight",jt.displayThumbnailSize),f.R7$(),f.Y8G("item",Pt.item)("activeItem",jt.recentSelection)("thumbSize",jt.displayThumbnailSize)}}function He(bt,bn){if(1&bt){const Pt=f.RV6();f.qex(0),f.nrm(1,"div",2),f.j41(2,"div",3)(3,"nv-item-button",4),f.bIt("clicked",function(){f.eBV(Pt);const gn=f.XpG();return f.Njj(gn.recentGoLeft())}),f.k0s(),f.j41(4,"div",5)(5,"cdk-virtual-scroll-viewport",6,0),f.bIt("keydown",function(gn){f.eBV(Pt);const ui=f.XpG();return f.Njj(ui.keydownRecent(gn))}),f.DNE(7,Xe,3,7,"div",7),f.k0s()(),f.j41(8,"nv-item-button",8),f.bIt("clicked",function(){f.eBV(Pt);const gn=f.XpG();return f.Njj(gn.recentGoRight())}),f.k0s()(),f.bVm()}if(2&bt){const Pt=f.XpG();f.R7$(3),f.Y8G("disabled",Pt.leftDisabled),f.R7$(2),f.Y8G("itemSize",Pt.displayThumbnailSize),f.R7$(2),f.Y8G("cdkVirtualForOf",Pt.recentList),f.R7$(),f.Y8G("disabled",Pt.rightDisabled)}}let Me=(()=>{class bt{constructor(Pt,jt,gn,ui,Ii){this.loggingService=Pt,this.route=jt,this.navigationService=gn,this.galleryService=ui,this.dialogHelper=Ii,this.destroy$=new O.B7,this.previewOpen=!1,this.recentList=[],this.displayThumbnailSize=86,this.recentItemsToDisplay=10,this.recentItemsVisible=4,this.requestThumbnailSize=128,this._selectedItem=void 0,this.selectedItemIndex=-1,this.leftDisabled=!1,this.rightDisabled=!1,this.logger=this.loggingService.getLogger("RecentView")}ngOnInit(){this.initializeRecent(0,0),this.galleryService.recentEvent().pipe((0,r.Q)(this.destroy$),(0,re.c)(1e3)).subscribe(()=>{this.initializeRecent(this.requestThumbnailSize,this.selectedItemIndex),this.scroller&&this.scroller.scrollToIndex(0,"smooth")}),this.galleryService.previewPaneEvent().pipe((0,r.Q)(this.destroy$)).subscribe(Pt=>{this.previewEvent(Pt)})}ngOnDestroy(){this.dialogHelper.closeSnackBar(),this.destroy$.next(!0),this.destroy$.unsubscribe(),this.centerPaneCallback$&&this.centerPaneCallback$.unsubscribe()}initializeRecent(Pt=0,jt=0){this.galleryService.getRecentData(Pt,this.recentItemsToDisplay).pipe((0,ie.ZZ)(gn=>{if(this.logger.info("RecentList length",gn.length),gn.length>0){(jt<0||jt>=gn.length)&&(jt=0),this._selectedItem=gn[jt],this.recentList=gn.map((Ii,pr)=>(Ii===this._selectedItem&&(this.selectedItemIndex=pr),{index:pr,selected:Ii===this._selectedItem,element:void 0,item:Ii})),this.chevronControl();const ui=[];return this.recentList.forEach(Ii=>{ui.push(this.galleryService.getRecentMetaData(Ii.item,Ii.item.codecType===M.m_A.H265?0:this.requestThumbnailSize))}),(0,J.yU)(...ui)}return(0,i.of)(null)}),(0,ve.o)(1)).subscribe()}keydownRecent(Pt){("Enter"===Pt.key||" "===Pt.key)&&this.recentList.length>0&&this.selectedItemIndex>=0&&this.selectedItemIndex<this.recentList.length?this.openFile(this.recentList[this.selectedItemIndex].item):"ArrowLeft"===Pt.key?this.recentGoLeft():"ArrowRight"===Pt.key&&this.recentGoRight()}openFile(Pt){this.dialogHelper.closeSnackBar(),this.recentSelection=this.recentList.find(jt=>jt.item.fullFilename===Pt.fullFilename).item,this.galleryService.currentFileData=this.recentSelection,this.previewOpen||(this.centerPaneOpened(),this.galleryService.setPreviewCaller(M.jby.mainMenu),this.navigationService.navigate([{outlets:{centerPane:"center-view/preview"}}],{relativeTo:this.route,skipLocationChange:!0},"image"===Pt.file.type?M.jby.galleryImagePreview:M.jby.galleryVideoPreview))}centerPaneOpened(){this.previewOpen||(this.navigationService.openCenterPane(!0),this.previewOpen=!0,this.centerPaneCallback$=this.navigationService.centerPaneClosedEvent().subscribe(()=>{this.recentSelection=void 0,this.previewOpen=!1,this.centerPaneCallback$.unsubscribe(),this.centerPaneCallback$=void 0}))}closePreview(){this.previewOpen?this.galleryService.closePreviewWindow(!0):this.logger.info("Ignoring close preview window request")}selectedItemChanged(Pt){this.selectedItemIndex>=0&&this.selectedItemIndex<this.recentList.length&&(this.recentList[this.selectedItemIndex].selected=!1),this.selectedItemIndex=this.recentList.findIndex(jt=>jt.item.fullFilename===Pt.fullFilename),-1!==this.selectedItemIndex&&(this.logger.info("SelectedItemChanged item: ",Pt.file.name),this.recentList[this.selectedItemIndex].selected=!0,this.chevronControl())}recentNav(Pt,jt=!1){let gn=this.selectedItemIndex;this.recentList[this.selectedItemIndex].selected=!1,Pt?gn--:gn++,gn=jt?gn>=this.recentList.length?0:gn<0?this.recentList.length-1:gn:gn>=this.recentList.length?this.recentList.length-1:gn<0?0:gn,this.scroller.scrollToIndex(gn,"smooth"),this.selectedItemIndex=gn,this.recentList[this.selectedItemIndex].selected=!0,this.previewOpen&&this.openFile(this.recentList[gn].item),this.chevronControl()}recentGoLeft(){this.recentNav(!0)}recentGoRight(){this.recentNav(!1)}chevronControl(){this.recentList.length<=this.recentItemsVisible?(this.leftDisabled=!0,this.rightDisabled=!0):0===this.selectedItemIndex?(this.leftDisabled=!0,this.rightDisabled=!1):this.selectedItemIndex===this.recentList.length-1?(this.leftDisabled=!1,this.rightDisabled=!0):(this.leftDisabled=!1,this.rightDisabled=!1)}deleteCurrentFile(){this.logger.info("Remove clicked");const jt=this.recentList[this.selectedItemIndex].item;this.dialogHelper.openAlertDialog({title:"confirmation.confirmDeleteTitle",query:"confirmation.confirmDelete",queryParam:"",action1:"confirmation.NotRightNow",action2:"confirmation.remove"}).pipe((0,r.Q)(this.destroy$),(0,ie.ZZ)(gn=>gn.afterClosed()),(0,ue.p)(gn=>gn===M.SFy.Action2),(0,a.M)(()=>{this.closePreview(),this.recentList.splice(this.selectedItemIndex,1),this.selectedItemIndex>=this.recentList.length&&(this.selectedItemIndex=this.recentList.length-1),this.recentList.length>0&&(this.recentList[this.selectedItemIndex].selected=!0),this.recentList=this.recentList.slice()}),(0,ie.ZZ)(()=>this.galleryService.showDeleteSnackbar([jt])),(0,ue.p)(gn=>!1===gn),(0,a.M)(()=>this.initializeRecent(this.selectedItemIndex))).subscribe()}previewEvent(Pt){this.logger.info("PreviewEvent:",Pt),Pt===M.Pev.DeleteFile?this.deleteCurrentFile():(Pt===M.Pev.BackNav||Pt===M.Pev.ForwardNav)&&(this.recentNav(Pt===M.Pev.BackNav,!0),this.openFile(this.recentList[this.selectedItemIndex].item))}static{this.\u0275fac=function(jt){return new(jt||bt)(f.rXU(v.J6),f.rXU(l.nX),f.rXU(M.o_p),f.rXU(M.AFS),f.rXU(M.eo6))}}static{this.\u0275cmp=f.VBU({type:bt,selectors:[["nv-recent-view"]],viewQuery:function(jt,gn){if(1&jt&&f.GBs(Be,5),2&jt){let ui;f.mGM(ui=f.lsd())&&(gn.scroller=ui.first)}},decls:1,vars:1,consts:[["scroller",""],[4,"ngIf"],[1,"nv-gap-8"],["fxLayout","row","fxLayoutAlign","center center","fxFlexFill",""],["svgIcon","chevron_left",3,"clicked","disabled"],[1,"recent-layout"],["fxFlex","","orientation","horizontal","tabIndex","0",1,"recent-container",3,"keydown","itemSize"],["class","recent-item",4,"cdkVirtualFor","cdkVirtualForOf"],["svgIcon","chevron_right",1,"right-button-padding",3,"clicked","disabled"],[1,"recent-item"],[3,"item","selectedItemIndex","itemWidth","itemHeight"],["nvHoverFocus","",3,"click","mousedown","item","activeItem","thumbSize"]],template:function(jt,gn){1&jt&&f.DNE(0,He,9,4,"ng-container",1),2&jt&&f.Y8G("ngIf",gn.recentList.length>0)},dependencies:[n.bT,N.DJ,N.sA,N.G2,N.UI,g.j,se.U,B.I,Z.m,Se.v,Ce.yg,Ce.E$,Ce.d6],styles:[".nv-gap-1{height:1px}.nv-gap-4{height:4px}.nv-horizontal-gap-4{width:4px}.nv-gap-8{height:8px}.nv-horizontal-gap-8{width:8px}.nv-gap-12{height:12px}.nv-gap-14{height:14px}.nv-gap-16{height:16px}.nv-gap-24{height:24px}.nv-horizontal-gap-24{width:24px}.nv-gap-32{height:32px}.nv-horizontal-gap-32{width:32px}.nv-gap-40{height:40px}.nv-gap-48{height:48px}:host-context(.isRtl) .flip-rtl-element{transform:scaleX(-1)}html[dir=rtl] .flip-rtl-element{--dummy: 0;transform:scaleX(-1)}.hotkey-border{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}:host[disabled] .nv-item *{cursor:default}.nv-item-icon{width:36px;height:36px}.nv-item-icon mat-icon{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row{padding:0 24px}.nv-item-labels{padding:8px 0;height:100%}.nv-label{padding:8px 0}.default-cursor{cursor:default}.disabled-opacity{opacity:.38}:host-context(.tv-view) .nv-item-icon{width:40px;height:40px}:host-context(.tv-view) .nv-item-icon mat-icon,:host-context(.tv-view) .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}:host{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.recent-layout{height:86px;width:376px}:host-context(.isLtr) .right-button-padding{padding-left:8px}html[dir=ltr] .right-button-padding{--dummy1: 0;padding-left:8px}:host-context(.isRtl) .right-button-padding{padding-right:8px}html[dir=rtl] .right-button-padding{--dummy1: 0;padding-right:8px}.recent-container{height:86px;overflow-y:hidden;overflow-x:scroll}.recent-container::-webkit-scrollbar{width:0;height:0}.recent-container .cdk-virtual-scroll-content-wrapper{display:flex;flex-direction:row}:host-context(.isLtr) .left-button-padding{padding-right:8px}html[dir=ltr] .left-button-padding{--dummy2: 0;padding-right:8px}:host-context(.isRtl) .left-button-padding{padding-left:8px}html[dir=rtl] .left-button-padding{--dummy2: 0;padding-left:8px}.center-text{text-align:center}.recent-item{width:86px;height:100%}:host-context(.isLtr) .recent-item{padding-left:8px}html[dir=ltr] .recent-item{--dummy1: 0;padding-left:8px}:host-context(.isRtl) .recent-item{padding-right:8px}html[dir=rtl] .recent-item{--dummy1: 0;padding-right:8px}\n"],encapsulation:2})}}return bt})();var Q=s(29370),A=s(96542);const me=["*"];function ne(bt,bn){if(1&bt&&f.nrm(0,"div",7),2&bt){const Pt=f.XpG();f.AVh("font-color-secondary",!Pt.tvMode&&!Pt.isNvApp)("font-color-tertiary",!Pt.tvMode&&Pt.isNvApp)("disabled-opacity",Pt.tvMode&&!Pt.disabled),f.Y8G("ngClass",Pt.subTitleStringFont)("translate",Pt.subTitle)("translateParams",Pt.subTitleArg)}}let G=(()=>{class bt{constructor(Pt){this.featureSupportService=Pt,this.icon=void 0,this.titleString=void 0,this.subTitle=void 0,this.subTitleArg=void 0,this.disabled=!1,this.subtitleVisible=!0,this.sidePaddingRotary=!1,this.iconExtraPaddingTop=!1,this.tvMode=!1,this.isNvApp=!1,this.tvMode=this.featureSupportService.isTVMode(),this.isNvApp=this.featureSupportService.isNvApp(),this.enlargeFontMode=this.featureSupportService.enlargeIGOTextFont()}ngAfterContentInit(){this.getSubTitleStringFont(),this.getTitleStringFont()}getSubTitleStringFont(){this.subTitleStringFont=this.tvMode?"font-body3":this.enlargeFontMode?"font-body-largefont1":"font-body2"}getTitleStringFont(){this.titleStringFont=this.tvMode?"font-sub2":this.enlargeFontMode?"font-body-largefont0":"font-body1"}static{this.\u0275fac=function(jt){return new(jt||bt)(f.rXU(M.Rvq))}}static{this.\u0275cmp=f.VBU({type:bt,selectors:[["nv-main-menu-item"]],inputs:{icon:"icon",titleString:"titleString",subTitle:"subTitle",subTitleArg:"subTitleArg",disabled:"disabled",subtitleVisible:"subtitleVisible",sidePaddingRotary:"sidePaddingRotary",iconExtraPaddingTop:"iconExtraPaddingTop"},ngContentSelectors:me,decls:10,vars:24,consts:[["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","none",1,"nv-item-icon"],[3,"svgIcon"],["fxFlexAlign","center","fxLayout","column","fxLayoutAlign","start start","fxFlex","grow"],[1,"nv-menu-item-title",3,"ngClass"],[3,"ngClass","font-color-secondary","font-color-tertiary","disabled-opacity","translate","translateParams",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","none"],[3,"ngClass","translate","translateParams"]],template:function(jt,gn){1&jt&&(f.NAR(),f.j41(0,"div",0)(1,"div",1),f.nrm(2,"mat-icon",2),f.k0s(),f.j41(3,"div",3)(4,"div",4),f.EFF(5),f.nI1(6,"translate"),f.k0s(),f.DNE(7,ne,1,9,"div",5),f.k0s(),f.j41(8,"div",6),f.SdG(9),f.k0s()()),2&jt&&(f.AVh("igo-menu-item",!gn.sidePaddingRotary)("igo-menu-item-rotary",gn.sidePaddingRotary)("disabled-opacity",gn.disabled)("sub-title",gn.subTitle&&gn.subtitleVisible),f.R7$(),f.AVh("svg-icon-details",!gn.tvMode),f.R7$(),f.AVh("icon-extra-padding",gn.iconExtraPaddingTop&&!gn.enlargeFontMode)("icon-extra-padding-enlargefont",gn.enlargeFontMode&&gn.iconExtraPaddingTop)("icon-padding-enlargeFont",gn.enlargeFontMode&&!gn.iconExtraPaddingTop),f.Y8G("svgIcon",gn.icon),f.R7$(),f.AVh("nv-item-labels",gn.tvMode),f.R7$(),f.Y8G("ngClass",gn.titleStringFont),f.R7$(),f.JRh(f.bMT(6,22,gn.titleString)),f.R7$(2),f.Y8G("ngIf",gn.subTitle&&gn.subtitleVisible))},dependencies:[n.YU,n.bT,N.DJ,N.sA,N.R$,N.UI,L.PW,Q.An,A.Mm,A.D9],styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.igo-menu-item[_ngcontent-%COMP%]{padding:12px 16px}.igo-menu-item.sub-title[_ngcontent-%COMP%]{padding:14px 16px}.isLtr[_nghost-%COMP%] .igo-menu-item-rotary[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .igo-menu-item-rotary[_ngcontent-%COMP%]{padding:12px 2px 12px 16px}html[dir=ltr][_ngcontent-%COMP%] .igo-menu-item-rotary[_ngcontent-%COMP%]{--dummy: 0;padding:12px 2px 12px 16px}.isRtl[_nghost-%COMP%] .igo-menu-item-rotary[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .igo-menu-item-rotary[_ngcontent-%COMP%]{padding:12px 16px 12px 2px}html[dir=rtl][_ngcontent-%COMP%] .igo-menu-item-rotary[_ngcontent-%COMP%]{--dummy: 0;padding:12px 16px 12px 2px}.isLtr[_nghost-%COMP%] .igo-menu-item-rotary.sub-title[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .igo-menu-item-rotary.sub-title[_ngcontent-%COMP%]{padding:14px 2px 14px 16px}html[dir=ltr][_ngcontent-%COMP%] .igo-menu-item-rotary.sub-title[_ngcontent-%COMP%]{--dummy: 0;padding:14px 2px 14px 16px}.isRtl[_nghost-%COMP%] .igo-menu-item-rotary.sub-title[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .igo-menu-item-rotary.sub-title[_ngcontent-%COMP%]{padding:14px 16px 14px 2px}html[dir=rtl][_ngcontent-%COMP%] .igo-menu-item-rotary.sub-title[_ngcontent-%COMP%]{--dummy: 0;padding:14px 16px 14px 2px}.svg-icon-details[_ngcontent-%COMP%]{width:24px;height:24px}.isLtr[_nghost-%COMP%] .svg-icon-details[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .svg-icon-details[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .svg-icon-details[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .svg-icon-details[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .svg-icon-details[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .svg-icon-details[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.subtitle-carousal-color[_ngcontent-%COMP%]{color:var(--main-menu-item-subtitle-carousal-color)}.nv-menu-item-title[_ngcontent-%COMP%]{color:var(--main-menu-item-title-text-color)}.icon-padding-enlargeFont[_ngcontent-%COMP%]{padding-top:10px}.icon-extra-padding-enlargefont[_ngcontent-%COMP%]{padding-top:24px}.icon-extra-padding[_ngcontent-%COMP%]{padding-top:8px}.tv-view[_nghost-%COMP%] .igo-menu-item[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .igo-menu-item[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}.tv-view[_nghost-%COMP%] .igo-menu-item.sub-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .igo-menu-item.sub-title[_ngcontent-%COMP%]{padding:16px 0}.tv-view[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%]{padding:0;height:-moz-fit-content;height:fit-content}.isLtr.tv-view[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr] .tv-view[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl.tv-view[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl] .tv-view[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{height:40px;width:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}"]})}}return bt})();const W=["tc"],$=bt=>({"gallery-container":bt}),le=bt=>({arg:bt}),Pe=(bt,bn,Pt)=>({arg:bt,arg2:bn,arg3:Pt}),Fe=bt=>({hotkey:bt});function At(bt,bn){if(1&bt&&(f.qex(0),f.j41(1,"nv-main-menu-item",11)(2,"div"),f.EFF(3),f.k0s()(),f.nrm(4,"nv-divider",7),f.bVm()),2&bt){const Pt=f.XpG();f.R7$(),f.Y8G("subTitle",Pt.userShortDescription),f.R7$(),f.AVh("font-body2",!Pt.tvMode&&!Pt.enlargeIgoFontSize)("font-body-largefont1",!Pt.tvMode&&Pt.enlargeIgoFontSize)("nv-item-labels",Pt.tvMode),f.R7$(),f.SpI(" ",Pt.timeLeftInStream," "),f.R7$(),f.Y8G("marginNotReq",Pt.tvMode)}}function Le(bt,bn){1&bt&&(f.qex(0),f.nrm(1,"nv-recent-view"),f.bVm())}function Et(bt,bn){if(1&bt){const Pt=f.RV6();f.j41(0,"div",12)(1,"nv-item-button",13),f.bIt("clicked",function(){f.eBV(Pt);const gn=f.XpG();return f.Njj(gn.onGalleryClicked())}),f.k0s(),f.DNE(2,Le,2,0,"ng-container",3),f.k0s()}if(2&bt){const Pt=f.XpG();f.Y8G("ngClass",f.eq3(4,$,!Pt.isGfn)),f.R7$(),f.Y8G("chevron",!Pt.lowDiskSpace)("disabled",Pt.lowDiskSpace),f.R7$(),f.Y8G("ngIf",Pt.showRecent)}}function $e(bt,bn){if(1&bt&&(f.j41(0,"span",27),f.EFF(1),f.k0s()),2&bt){const Pt=f.XpG(3);f.R7$(),f.JRh(Pt.mrTime)}}function Ze(bt,bn){if(1&bt){const Pt=f.RV6();f.j41(0,"nv-main-menu-item",23),f.DNE(1,$e,2,1,"span",24),f.nrm(2,"div",25),f.j41(3,"nv-item-button",26),f.bIt("clicked",function(){f.eBV(Pt);const gn=f.XpG(2);return f.Njj(gn.onClickManualRecord())}),f.k0s()()}if(2&bt){const Pt=f.XpG(2);f.Y8G("subTitle",Pt.mrHotkeyText)("subTitleArg",f.eq3(8,le,Pt.mrHotkey))("subtitleVisible",!(Pt.isGamepadOrientedMode&&!Pt.disableRecordSpecialCase))("disabled",Pt.recordSpecialCase.RECORD_SPECIAL_CASE_NONE!==Pt.disableRecordSpecialCase),f.R7$(),f.Y8G("ngIf",Pt.mrTime),f.R7$(2),f.Y8G("svgIcon",Pt.isRecording?"stop":"play_arrow")("tooltip",Pt.isRecording?"tooltips.StopAndSave":"tooltips.Start")("disabled",Pt.recordSpecialCase.RECORD_SPECIAL_CASE_NONE!==Pt.disableRecordSpecialCase)}}function Qe(bt,bn){if(1&bt){const Pt=f.RV6();f.j41(0,"nv-item-button",28),f.bIt("clicked",function(){f.eBV(Pt);const gn=f.XpG(2);return f.Njj(gn.onClickManualRecord())}),f.k0s()}if(2&bt){const Pt=f.XpG(2);f.Y8G("urlIcon",Pt.isRecording?"stop":"play_arrow")("subTitle",Pt.mrHotkeyText)("subTitleArg",f.eq3(6,le,Pt.mrHotkey))("mainMenuUse",!0)("subText",Pt.mrTime)("disabled",Pt.recordSpecialCase.RECORD_SPECIAL_CASE_NONE!==Pt.disableRecordSpecialCase)}}function Ve(bt,bn){if(1&bt){const Pt=f.RV6();f.j41(0,"nv-item-button",31),f.bIt("clicked",function(){f.eBV(Pt);const gn=f.XpG(3);return f.Njj(gn.onClickIRSave())}),f.k0s()}if(2&bt){const Pt=f.XpG(3);f.Y8G("disabled",Pt.recordSpecialCase.RECORD_SPECIAL_CASE_NONE!==Pt.disableRecordSpecialCase)}}function nt(bt,bn){if(1&bt&&(f.j41(0,"nv-main-menu-item",29),f.DNE(1,Ve,1,1,"nv-item-button",30),f.k0s()),2&bt){const Pt=f.XpG(2);f.Y8G("subTitle",Pt.irHotkeyText)("subTitleArg",f.sMw(5,Pe,Pt.irHotkey,Pt.irMin,Pt.irSec))("subtitleVisible",!Pt.isGamepadOrientedMode)("disabled",!Pt.isSaveEnabled||Pt.disableRecordSpecialCase),f.R7$(),f.Y8G("ngIf",Pt.isSaveEnabled)}}function Ot(bt,bn){if(1&bt){const Pt=f.RV6();f.j41(0,"nv-item-button",32),f.bIt("clicked",function(){f.eBV(Pt);const gn=f.XpG(2);return f.Njj(gn.onInstantReplayClicked())})("secondButtonclicked",function(){f.eBV(Pt);const gn=f.XpG(2);return f.Njj(gn.onClickIRSave())}),f.k0s()}if(2&bt){const Pt=f.XpG(2);f.Y8G("subTitle",Pt.irHotkeyText)("subTitleArg",f.sMw(5,Pe,Pt.irHotkey,Pt.irMin,Pt.irSec))("secondButton",Pt.isSaveEnabled)("chevron",!0)("disabled",Pt.recordSpecialCase.RECORD_SPECIAL_CASE_NONE!==Pt.disableRecordSpecialCase)}}function at(bt,bn){1&bt&&f.nrm(0,"div",33)}function It(bt,bn){1&bt&&f.nrm(0,"div",33)}function We(bt,bn){if(1&bt){const Pt=f.RV6();f.qex(0),f.DNE(1,It,1,0,"div",18),f.j41(2,"nv-item-button",34),f.bIt("clicked",function(){f.eBV(Pt);const gn=f.XpG(2);return f.Njj(gn.onPhotoModeClicked())}),f.k0s(),f.bVm()}if(2&bt){const Pt=f.XpG(2);f.R7$(),f.Y8G("ngIf",Pt.tvMode),f.R7$(),f.Y8G("chevron",!0)("subTitle",Pt.photoModeSubTitle)("subTitleArg",f.eq3(6,le,Pt.photoModeHotkey))("subtitleVisible",!(Pt.isGamepadOrientedMode&&!Pt.photoModeDisabled))("disabled",Pt.photoModeDisabled)}}function xe(bt,bn){1&bt&&f.nrm(0,"div",33)}function lt(bt,bn){if(1&bt){const Pt=f.RV6();f.qex(0),f.DNE(1,xe,1,0,"div",18),f.j41(2,"nv-item-button",35),f.bIt("clicked",function(){f.eBV(Pt);const gn=f.XpG(2);return f.Njj(gn.onNgxClicked())}),f.k0s(),f.bVm()}if(2&bt){const Pt=f.XpG(2);f.R7$(),f.Y8G("ngIf",Pt.tvMode),f.R7$(),f.Y8G("chevron",!0)("subTitleArg",f.eq3(5,le,Pt.photoModeHotkey))("subtitleVisible",!(Pt.isGamepadOrientedMode&&!Pt.photoModeDisabled))("disabled",Pt.photoModeDisabled)}}function ft(bt,bn){if(1&bt){const Pt=f.RV6();f.qex(0),f.j41(1,"nv-item-button",36),f.bIt("clicked",function(){f.eBV(Pt);const gn=f.XpG(2);return f.Njj(gn.onHighLightsClicked())}),f.k0s(),f.bVm()}if(2&bt){const Pt=f.XpG(2);f.R7$(),f.Y8G("chevron",!0)("subTitle",Pt.hlL0Text)("subtitleVisible",!0)("disabled",!1)}}function ht(bt,bn){1&bt&&f.nrm(0,"div",33)}function Xt(bt,bn){if(1&bt){const Pt=f.RV6();f.qex(0),f.DNE(1,ht,1,0,"div",18),f.j41(2,"nv-item-button",37),f.bIt("clicked",function(){f.eBV(Pt);const gn=f.XpG(2);return f.Njj(gn.onGamesFilterClicked())}),f.k0s(),f.bVm()}if(2&bt){const Pt=f.XpG(2);f.R7$(),f.Y8G("ngIf",Pt.tvMode),f.R7$(),f.Y8G("chevron",!0)("subTitle",Pt.getGameFilterSubTitle().subTitle)("subTitleArg",Pt.getGameFilterSubTitle().args)("subtitleVisible",!(Pt.isGamepadOrientedMode&&"None"!==Pt.gfStyleToggleHotkey))("disabled",Pt.gameFilterDisabled)}}function Ht(bt,bn){if(1&bt){const Pt=f.RV6();f.j41(0,"mat-slide-toggle",40),f.bIt("change",function(gn){f.eBV(Pt);const ui=f.XpG(3);return f.Njj(ui.onToggleMicSwitch(gn))}),f.k0s()}if(2&bt){const Pt=f.XpG(3);f.Y8G("checked",Pt.micSwitchState)}}function Je(bt,bn){if(1&bt&&(f.j41(0,"nv-main-menu-item",38),f.DNE(1,Ht,1,1,"mat-slide-toggle",39),f.k0s()),2&bt){const Pt=f.XpG(2);f.Y8G("subTitle",Pt.micHotkeyText)("subTitleArg",f.eq3(4,le,Pt.micHotkeyArg))("subtitleVisible",Pt.showKbShortcutSubtitles&&Pt.micSubtitleVisible),f.R7$(),f.Y8G("ngIf",Pt.useMicSwitch)}}function tt(bt,bn){if(1&bt){const Pt=f.RV6();f.j41(0,"nv-rotary",41),f.bIt("selectionChanged",function(gn){f.eBV(Pt);const ui=f.XpG(2);return f.Njj(ui.onRotaryMic(gn))}),f.k0s()}if(2&bt){const Pt=f.XpG(2);f.Y8G("input",Pt.micRotaryOptions)("initialState",Pt.micRotaryInit)("subTitle",Pt.micHotkeyText)("subTitleArg",f.eq3(5,le,Pt.micHotkeyArg))("width",Pt.rotaryWidth)}}function rt(bt,bn){if(1&bt){const Pt=f.RV6();f.j41(0,"div"),f.nrm(1,"nv-divider"),f.DNE(2,Ze,4,10,"nv-main-menu-item",14)(3,Qe,1,8,"nv-item-button",15)(4,nt,2,9,"nv-main-menu-item",16)(5,Ot,1,9,"nv-item-button",17)(6,at,1,0,"div",18),f.j41(7,"nv-item-button",19),f.bIt("clicked",function(){f.eBV(Pt);const gn=f.XpG();return f.Njj(gn.onScreenshotClicked())}),f.k0s(),f.DNE(8,We,3,8,"ng-container",3)(9,lt,3,7,"ng-container",3)(10,ft,2,4,"ng-container",3)(11,Xt,3,6,"ng-container",3),f.nrm(12,"nv-divider",7),f.DNE(13,Je,2,6,"nv-main-menu-item",20),f.j41(14,"div",21),f.DNE(15,tt,1,7,"nv-rotary",22),f.k0s()()}if(2&bt){const Pt=f.XpG();f.R7$(2),f.Y8G("ngIf",Pt.isGfn),f.R7$(),f.Y8G("ngIf",!Pt.isGfn),f.R7$(),f.Y8G("ngIf",Pt.isGfn),f.R7$(),f.Y8G("ngIf",!Pt.isGfn),f.R7$(),f.Y8G("ngIf",Pt.tvMode),f.R7$(),f.Y8G("subTitle",Pt.screenShotSubTitle)("subTitleArg",f.eq3(18,le,Pt.screenshotHotkey))("subtitleVisible",!Pt.isGamepadOrientedMode)("urlIcon",Pt.screenShotUrlIcon)("mainMenuUse",Pt.screenShotMainMenuUse)("disabled",Pt.recordSpecialCase.RECORD_SPECIAL_CASE_PLAYTEST===Pt.disableRecordSpecialCase),f.R7$(),f.Y8G("ngIf",Pt.photoMode),f.R7$(),f.Y8G("ngIf",Pt.isNgxAvailable),f.R7$(),f.Y8G("ngIf",Pt.isGalleryEnabled&&!Pt.isGfn),f.R7$(),f.Y8G("ngIf",Pt.gameFilter),f.R7$(),f.Y8G("marginNotReq",Pt.tvMode),f.R7$(),f.Y8G("ngIf",!Pt.isGfnMicEnabled&&!Pt.showMicRotary),f.R7$(2),f.Y8G("ngIf",!Pt.isGfnMicEnabled&&Pt.showMicRotary)}}function et(bt,bn){if(1&bt){const Pt=f.RV6();f.j41(0,"nv-item-button",42),f.bIt("clicked",function(){f.eBV(Pt);const gn=f.XpG();return f.Njj(gn.onIMEClicked())}),f.k0s()}if(2&bt){const Pt=f.XpG();f.Y8G("subTitle",Pt.imeHotkeyText)("subTitleArg",f.eq3(3,le,Pt.imeHotkeyArg))("subtitleVisible",Pt.isKBMGamesAllowed)}}function St(bt,bn){if(1&bt){const Pt=f.RV6();f.j41(0,"nv-rotary",45),f.bIt("selectionChanged",function(gn){f.eBV(Pt);const ui=f.XpG(2);return f.Njj(ui.onChangeWebcam(gn))}),f.k0s()}if(2&bt){const Pt=f.XpG(2);f.Y8G("input",Pt.webcamRotaryOptions)("initialState",Pt.webcamRotaryInit)("width",Pt.rotaryWidth)}}function Gt(bt,bn){if(1&bt&&(f.qex(0),f.nrm(1,"div",33),f.j41(2,"nv-main-menu-item",43),f.DNE(3,St,1,3,"nv-rotary",44),f.k0s(),f.bVm()),2&bt){const Pt=f.XpG();f.R7$(2),f.Y8G("subTitle",Pt.camHotkeyText)("subTitleArg",f.eq3(4,le,Pt.camHotkeyArg))("subtitleVisible",!(Pt.isGamepadOrientedMode&&Pt.camHotkeyArg.length>0)),f.R7$(),f.Y8G("ngIf",Pt.showWebcamRotary)}}function yt(bt,bn){if(1&bt){const Pt=f.RV6();f.j41(0,"nv-item-button",47),f.bIt("clicked",function(){f.eBV(Pt);const gn=f.XpG(2);return f.Njj(gn.onToggleMicrophone())}),f.k0s()}if(2&bt){const Pt=f.XpG(2);f.Y8G("subTitle",Pt.micHotkeyText)("disabled",Pt.isGfnMicButtonDisabled)}}function Wt(bt,bn){if(1&bt){const Pt=f.RV6();f.j41(0,"nv-main-menu-item",38)(1,"mat-slide-toggle",48),f.bIt("change",function(){f.eBV(Pt);const gn=f.XpG(2);return f.Njj(gn.onToggleMicrophone())}),f.k0s()()}if(2&bt){const Pt=f.XpG(2);f.Y8G("subTitle",Pt.micHotkeyText)("subTitleArg",f.eq3(4,le,Pt.micHotkeyArg))("subtitleVisible",Pt.isGfnMicEnabled&&Pt.showKbShortcutSubtitles),f.R7$(),f.Y8G("checked",Pt.gfnMicSwitchState)}}function ke(bt,bn){if(1&bt&&(f.qex(0),f.DNE(1,yt,1,2,"nv-item-button",46)(2,Wt,2,6,"nv-main-menu-item",20),f.bVm()),2&bt){const Pt=f.XpG();f.R7$(),f.Y8G("ngIf",Pt.isGfnMicBlocked||Pt.isGfnMicButtonDisabled),f.R7$(),f.Y8G("ngIf",!Pt.isGfnMicBlocked&&!Pt.isGfnMicButtonDisabled)}}function be(bt,bn){if(1&bt){const Pt=f.RV6();f.j41(0,"nv-item-button",49),f.bIt("clicked",function(){f.eBV(Pt);const gn=f.XpG();return f.Njj(gn.openInputControl())}),f.k0s()}if(2&bt){const Pt=f.XpG();f.Y8G("titleString",Pt.inputControlTitleString)}}function Ae(bt,bn){if(1&bt){const Pt=f.RV6();f.j41(0,"nv-main-menu-item",50)(1,"nv-rotary",45),f.bIt("selectionChanged",function(gn){f.eBV(Pt);const ui=f.XpG();return f.Njj(ui.onChangeStats(gn))}),f.k0s()()}if(2&bt){const Pt=f.XpG();f.Y8G("subTitle",Pt.statsHotkeyText)("subTitleArg",f.eq3(8,le,Pt.statsHotkeyArg))("subtitleVisible",Pt.showKbShortcutSubtitles)("sidePaddingRotary",!Pt.tvMode)("iconExtraPaddingTop",!Pt.tvMode),f.R7$(),f.Y8G("input",Pt.statsRotaryOptions)("initialState",Pt.statsRotatyState)("width",Pt.rotaryWidth)}}function qe(bt,bn){if(1&bt){const Pt=f.RV6();f.qex(0),f.j41(1,"nv-item-button",51),f.bIt("clicked",function(){f.eBV(Pt);const gn=f.XpG();return f.Njj(gn.onGAssistClicked())}),f.k0s(),f.bVm()}if(2&bt){const Pt=f.XpG();f.R7$(),f.FS9("subTitle",Pt.gAssistSubtitle),f.Y8G("chevron",!0)("titleFontBold",!0)("subTitleArg",f.eq3(4,Fe,Pt.gAssistOverlayHotkey))}}function Lt(bt,bn){if(1&bt){const Pt=f.RV6();f.qex(0),f.j41(1,"nv-item-button",52),f.bIt("clicked",function(){f.eBV(Pt);const gn=f.XpG();return f.Njj(gn.onPerformanceClicked())}),f.k0s(),f.bVm()}if(2&bt){const Pt=f.XpG();f.R7$(),f.Y8G("chevron",!0)("titleFontBold",!0)("subTitleArg",f.eq3(3,Fe,Pt.perfOverlayHotkey))}}function Zt(bt,bn){if(1&bt){const Pt=f.RV6();f.j41(0,"nv-item-button",53),f.bIt("clicked",function(){f.eBV(Pt);const gn=f.XpG();return f.Njj(gn.exitFullScreen())}),f.k0s()}}function fn(bt,bn){if(1&bt){const Pt=f.RV6();f.j41(0,"nv-item-button",54),f.bIt("clicked",function(){f.eBV(Pt);const gn=f.XpG();return f.Njj(gn.quitGfn())}),f.k0s()}if(2&bt){const Pt=f.XpG();f.Y8G("titleArg",f.eq3(3,le,Pt.gfnTitle))("subTitle",Pt.gfnQuitHotkey)("subtitleVisible",Pt.showKbShortcutSubtitles)}}let On=(()=>{class bt{constructor(Pt,jt,gn,ui,Ii,pr,zr,Cn,pn,ti,pi,cn,An,Jn,hi,xi,xn,Yn){this.injector=Pt,this.loggingService=jt,this.route=gn,this.navigationService=ui,this.hotkeyService=Ii,this.galleryService=pr,this.shadowPlayService=zr,this.webcamService=Cn,this.nvcameraService=pn,this.oscDisplayService=ti,this.igoConfig=pi,this.appBarService=cn,this.osService=An,this.featureSupportService=Jn,this.microphoneService=hi,this.clientInputService=xi,this.bridgeService=xn,this.ppeService=Yn,this.destroy$=new O.B7,this.screenshotHotkey="",this.mrHotkey="",this.mrHotkeyText="",this.mrTime="",this.isRecording=!1,this.irToggleHotkey="",this.irSaveHotkey="",this.gfStyleToggleHotkey="None",this.minSeconds=15,this.irMin="",this.irSec="",this.irSeconds=0,this.irState=M.xT8.off,this.isIROn=!1,this.isSaveEnabled=!1,this.irHotkey="",this.irHotkeyText="",this.micHotkey="",this.micHotkeyPTT="",this.micHotkeyText="",this.micHotkeyArg="",this.micSubtitleVisible=!1,this.statsHotkey="",this.statsHotkeyText="",this.statsHotkeyArg="",this.imeHotkeyText="",this.imeHotkeyArg="",this.imeEnabled=!1,this.imeHotkey="",this.camHotkeyText="",this.camHotkeyArg="",this.disableRecordSpecialCase=V.Fm.RECORD_SPECIAL_CASE_4K,this.recordSpecialCase=V.Fm,this.photoMode=!1,this.photoModeDisabled=!1,this.photoModeHotkey="",this.gameFilter=!1,this.gameFilterDisabled=!1,this.lowDiskSpace=!1,this.enableLanguage=!1,this.initialLangIndex=5,this.gfnIntegration=!1,this.timeLeftInStream=void 0,this.gfnTitle="",this.gfnQuitHotkey="",this.micRotaryOptions=["commonLabels.Off","mainMenu.AlwaysOn","mainMenu.PushToTalk"],this.micState=M.YQZ.off,this.micRotaryInit=0,this.showMicRotary=!1,this.useMicSwitch=!1,this.micSwitchState=!1,this.micCount=0,this.rotaryWidth=132,this.webcamRotaryOptions=["commonLabels.Off","mainMenu.CaptureOnly","mainMenu.PreviewCapture"],this.webcamRotaryInit=0,this.statsRotaryOptions=["commonLabels.Off","settings.stats.Standard","settings.stats.Compact"],this.statsRotatyState=M.BKk.Off,this.throttleDuration=500,this.showRecent=!1,this.bcHotkey="",this.bcSubtitle="",this.showWebcamControls=!1,this.showWebcamRotary=!1,this.webcamHotkey="",this.isGalleryEnabled=!1,this.isShadowPlayEnabled=!1,this.isWebcamEnabled=!1,this.isBrowserPlatform=!1,this.isGfnMicEnabled=!1,this.isStatisticsEnabled=!1,this.isInputControlEnabled=!1,this.isGfnMicBlocked=!0,this.isGfnMicButtonDisabled=!1,this.gfnMicSwitchState=!1,this.isGamepadOrientedMode=!1,this.tvMode=!1,this.isKBMGamesAllowed=!0,this.inputControlTitleString="",this.showExitOption=!0,this.showTimeLeft=!1,this.isPerformanceAvailable=!1,this.perfOverlayHotkey="",this.isGAssistInstalled=!1,this.gAssistOverlayHotkey="",this.gAssistSubtitle="",this.nvcameraGlobal=!0,this.isGfn=!1,this.irL1FlagEnabled=!1,this.screenShotSubTitle=void 0,this.screenShotUrlIcon=void 0,this.screenShotMainMenuUse=void 0,this.photoModeSubTitle=void 0,this.gameFilterSubtitle=void 0,this.gameFilterSubtitleArg=void 0,this.userShortDescription=void 0,this.showKbShortcutSubtitles=!1,this.titleFormat="New AV1 Recording Format Available",this.titleFormatSub="Switch to AV1 format for better compression and quality. You can adjust the codec",this.opens="OPEN SETTINGS",this.dismiss="DISMISS",this.titleParamsFormat={},this.titleParamsFormatSub={},this.showCodecMsg=!1,this.isNgxAvailable=!1,this.logger=this.loggingService.getLogger("MainMenu"),this.featureSupportService.isGFEMode()?(this.perfmonService=this.injector.get(M.zET),this.ngxService=this.injector.get(M.zX$),this.aiChatBoxService=this.injector.get(M.Dli)):(this.gfnInfoService=this.injector.get(M.x_y),this.statisticsService=this.injector.get(M.rJX)),this.isGalleryEnabled=this.featureSupportService.isGalleryEnabled(),this.isShadowPlayEnabled=this.featureSupportService.isShadowPlayEnabled(),this.isWebcamEnabled=this.featureSupportService.isWebcamEnabled(),this.isBrowserPlatform=v.zk.isBrowserPlatform(),this.isStatisticsEnabled=this.featureSupportService.isStatisticsEnabled(),this.isInputControlEnabled=this.featureSupportService.isInputControlEnabled(),this.isGamepadOrientedMode=this.featureSupportService.isGamepadOrientedMode(),this.tvMode=this.featureSupportService.isTVMode(),this.isKBMGamesAllowed=this.featureSupportService.isKeyboardMouseGamesAllowed(),this.showExitOption=!this.featureSupportService.hideExitFullScreenOption(),this.isGfn="GFN"===this.igoConfig.branding,this.showKbShortcutSubtitles=!this.featureSupportService.shouldHideKeyboardShortcuts(),this.enlargeIgoFontSize=this.featureSupportService.enlargeIGOTextFont(),this.inputControlTitleString="mainMenu.InputControl",this.appBarService.setAll({title:"GFN"===pi.branding?this.featureSupportService.showTitle()?"product.GFN":"":"product.NVIDIA",icons:[{id:"closeIgo",icon:"close",tooltip:"tooltips.Close"},{id:"settings",icon:"settings",tooltip:"tooltips.Settings"}]}),this.gfnIntegration="GFN"===pi.branding,this.gfnIntegration?(this.showTimeLeft=this.featureSupportService.showTimeLeftMessage(),this.useMicSwitch=!0,this.rotaryWidth=this.enlargeIgoFontSize?M.xkq:68,this.gfnTitle=this.gfnInfoService?.getStreamingTitle(),this.osService.getQuitHotkey().pipe((0,r.Q)(this.destroy$)).subscribe(Gn=>{this.logger.info("Quit Game hotkey: ",Gn),this.gfnQuitHotkey=Gn===v.rB[0]?"":Gn}),this.featureSupportService.showFeedbackSetting()&&this.appBarService.addIcon({id:"feedback",icon:"feedback",tooltip:"tooltips.Feedback"}),this.clientInputService.isImeEnabled$.pipe((0,r.Q)(this.destroy$)).subscribe(Gn=>{this.logger.info("Checking ClientIME enablement value ",Gn),this.imeEnabled=Gn},Gn=>{this.logger.info("Error getting ClientIME enablement value, defaulting to false",Gn),this.imeEnabled=!1}),this.gfnInfoService?.getRecordSpecialCase().pipe((0,r.Q)(this.destroy$)).subscribe(Gn=>{this.logger.info("disableRecordSpecialCase mode: ",Gn),this.disableRecordSpecialCase=Gn}),this.gfnInfoService.getTimerSubString().pipe((0,r.Q)(this.destroy$)).subscribe(Gn=>{this.userShortDescription=Gn})):this.disableRecordSpecialCase=V.Fm.RECORD_SPECIAL_CASE_NONE,this.appBarService.actionClicked$.pipe((0,r.Q)(this.destroy$)).subscribe(Gn=>{"settings"===Gn?this.onSettingsClicked():"feedback"===Gn&&this.gfnInfoService?.sendFeeback(this.tc)})}setUpGAssistButton(){this.isGAssistInstalled=this.aiChatBoxService.getIsGAssistInstalled(),this.isGAssistInstalled&&this.hotkeyService.getHotkeyString(m.Or.Share.Shareserver.HotkeyEnum.ChatUIToggle).pipe((0,r.Q)(this.destroy$),(0,a.M)(Pt=>{this.logger.info("gAssistHotkey hotkey: ",Pt),Pt&&(this.gAssistOverlayHotkey=Pt,this.gAssistSubtitle=this.aiChatBoxService.getGAssistToggleState()?"gAssist.openCloseInteractiveMode":"gAssist.enableOpenGAssist")})).subscribe()}screenShotKeyDetails(){this.isGfn?(this.screenShotSubTitle=this.screenshotHotkey,this.screenShotUrlIcon=void 0,this.screenShotMainMenuUse=void 0):(this.screenShotSubTitle="mainMenu.ScreenShotText",this.screenShotUrlIcon="photo_camera",this.screenShotMainMenuUse="true")}photoModeKeyDetails(Pt){this.photoModeSubTitle=this.isGfn?Pt:"mainMenu.PhotoModeText"}onInstantReplayClicked(){this.logger.info("Instant Replay clicked"),this.navigationService.navigate(["../instantReplay"],{relativeTo:this.route.parent,skipLocationChange:!0},M.jby.instantReplay)}ngOnInit(){if(this.shadowPlayService.getVideoSpecsInitStateUpdates().pipe((0,r.Q)(this.destroy$)).subscribe(()=>{this.showCodecMsg=this.shadowPlayService.getShowCodecMessage()}),this.isGalleryEnabled&&(this.showRecent=this.galleryService.hasAnyEntries()&&!this.galleryService.lowDiskSpaceValue()),this.igoConfig.GFNCefClient?this.featureSupportService.isNvcameraEnabled()&&(this.nvcameraService.isFeatureAvailable().pipe((0,r.Q)(this.destroy$)).subscribe(Pt=>{this.photoMode=Pt.photoModeSupport,this.gameFilter=Pt.gameFilterSupport,this.getHotkeyAndStyleSlotString()}),this.nvcameraService.gameFilterDisable.pipe((0,r.Q)(this.destroy$)).subscribe(Pt=>this.gameFilterDisabled=Pt),this.nvcameraService.photoModeDisable.pipe((0,r.Q)(this.destroy$)).subscribe(Pt=>this.photoModeDisabled=Pt)):(this.photoMode=this.nvcameraService.isPhotoModeSupported(),this.gameFilter=this.nvcameraService.isGameFilterSupported(),this.featureSupportService.isPpeEnabled()&&(this.gameFilter=!0),this.getHotkeyAndStyleSlotString(),this.isPerformanceAvailable=this.perfmonService.isPerformanceAvailable(),this.isNgxAvailable=this.ngxService.isNgxAvailable(),this.featureSupportService.isGAssistFeatureAvailable()&&this.setUpGAssistButton()),this.backCallback$=this.navigationService.escapeEvent().subscribe(()=>{this.oscDisplayService.closeOSC()}),"GFE"===this.igoConfig.branding){this.getPerformanceSubTitle(),this.showWebcamControls=!0,this.webcamInfo=this.webcamService.getWebcamInfo(),this.showWebcamRotary=this.webcamInfo.present,this.webcamRotaryInit=this.webcamInfo.enabled?this.webcamInfo.preview?2:1:0,this.logger.info("Webcam Info:",this.webcamInfo);let Pt=!0;this.shadowPlayService.getMicCount().pipe((0,r.Q)(this.destroy$)).subscribe(jt=>{this.micCount=jt,0===jt?(this.showMicRotary=!1,this.createMicSubtitle()):this.shadowPlayService.isCurrentMicAvailable().pipe((0,r.Q)(this.destroy$)).subscribe(gn=>{this.showMicRotary=gn,this.createMicSubtitle()})}),this.hotkeyService.getHotkeyString(m.Or.Share.Shareserver.HotkeyEnum.CameraToggle).pipe((0,r.Q)(this.destroy$)).subscribe(jt=>{this.logger.info("Webcam hotkey: ",jt),this.webcamHotkey=jt,this.showWebcamRotary&&this.createCameraSubtitle()}),this.webcamService.getWebcamState().pipe((0,r.Q)(this.destroy$)).subscribe(jt=>{Pt||(this.webcamRotaryInit=jt?this.webcamInfo.preview?2:1:0),Pt=!1}),this.shadowPlayService.getCAMDeviceState().pipe((0,r.Q)(this.destroy$)).subscribe(jt=>{(jt===M.gXb.plugged_in||jt===M.gXb.plugged_out)&&(this.showWebcamRotary=jt===M.gXb.plugged_in,this.webcamInfo.present=jt===M.gXb.plugged_in,this.createCameraSubtitle())})}this.isGalleryEnabled&&(this.galleryService.lowDiskSpaceEvent().pipe((0,r.Q)(this.destroy$)).subscribe(Pt=>{Pt!==this.lowDiskSpace&&(this.showRecent=this.galleryService.hasAnyEntries()&&!Pt),this.lowDiskSpace=Pt,this.logger.info("The disk space is low: ",Pt)}),this.galleryService.recentEvent().pipe((0,r.Q)(this.destroy$)).subscribe(()=>{this.showRecent=this.galleryService.hasAnyEntries()&&!this.lowDiskSpace})),this.hotkeyService.getHotkeyString(m.Or.Share.Shareserver.HotkeyEnum.Screenshot).pipe((0,r.Q)(this.destroy$)).subscribe(Pt=>{V.Fm.RECORD_SPECIAL_CASE_PLAYTEST===this.disableRecordSpecialCase?this.screenshotHotkey="mainMenu.DisabledForPlaytest":(this.logger.info("Screenshot hotkey: ",Pt),this.screenshotHotkey=Pt),this.screenShotKeyDetails()}),this.hotkeyService.getHotkeyString(m.Or.Share.Shareserver.HotkeyEnum.NativeKeyboardInputDialog).pipe((0,r.Q)(this.destroy$)).subscribe(Pt=>{this.logger.info("IME hotkey: ",Pt),this.imeHotkey=Pt}),this.disableRecordSpecialCase||(this.hotkeyService.getHotkeyString(m.Or.Share.Shareserver.HotkeyEnum.RecordToggle).pipe((0,r.Q)(this.destroy$)).subscribe(Pt=>{this.logger.info("Manual record hotkey: ",Pt),this.mrHotkey=Pt}),this.hotkeyService.getHotkeyString(m.Or.Share.Shareserver.HotkeyEnum.DVRToggle).pipe((0,r.Q)(this.destroy$)).subscribe(Pt=>{this.logger.info("Instant replay toggle hotkey: ",Pt),this.irToggleHotkey=Pt}),this.hotkeyService.getHotkeyString(m.Or.Share.Shareserver.HotkeyEnum.DVRSave).pipe((0,r.Q)(this.destroy$)).subscribe(Pt=>{this.logger.info("Instant replay save hotkey: ",Pt),this.irSaveHotkey=Pt})),this.hotkeyService.getHotkeyString(m.Or.Share.Shareserver.HotkeyEnum.MicToggle).pipe((0,r.Q)(this.destroy$)).subscribe(Pt=>{this.logger.info("Microphone hotkey: ",Pt),this.micHotkey=Pt}),this.hotkeyService.getHotkeyString(m.Or.Share.Shareserver.HotkeyEnum.PTT).pipe((0,r.Q)(this.destroy$)).subscribe(Pt=>{this.logger.info("Microphone PTT hotkey: ",Pt),this.micHotkeyPTT=Pt}),this.hotkeyService.getHotkeyString(m.Or.Share.Shareserver.HotkeyEnum.BroadcastToggle).pipe((0,r.Q)(this.destroy$)).subscribe(Pt=>{this.logger.info("Broadcast toggle hotkey: ",Pt),this.bcHotkey=Pt}),this.hotkeyService.getHotkeyString(m.Or.Share.Shareserver.HotkeyEnum.StatisticsToggle).pipe((0,r.Q)(this.destroy$)).subscribe(Pt=>{this.logger.info("Statistics hotkey: ",Pt),this.statsHotkey=Pt,this.statsHotkeyText="mainMenu.ChangeFormat",this.statsHotkeyArg=this.statsHotkey}),this.isShadowPlayEnabled&&(this.shadowPlayService.getIRState().pipe((0,r.Q)(this.destroy$)).subscribe(Pt=>{this.irState=Pt,this.setIRHotkeyFormat()}),this.shadowPlayService.getMRState().pipe((0,r.Q)(this.destroy$)).subscribe(Pt=>{this.isRecording=Pt,this.setMRHotkeyFormat()}),(0,P.p)([this.shadowPlayService.getInstantReplayRunningStatus(),this.shadowPlayService.getInstantReplayMaxLength()]).pipe((0,r.Q)(this.destroy$)).subscribe(([Pt,jt])=>{this.irState=Pt?M.xT8.recording:this.irState,this.irSeconds=void 0===jt?this.minSeconds:jt,this.setIRHotkeyFormat()}),this.bridgeService.executeCommand(m.Ts.Share.Shareserver.GetHighlightsEnable,{}).pipe((0,r.Q)(this.destroy$)).subscribe(Pt=>{this.hlL0Text=Pt.enable?"mainMenu.HighlightL0Enabled":"mainMenu.HighlightL0Disabled"})),(0,_.Y)(500).pipe((0,r.Q)(this.destroy$)).subscribe(()=>{this.isShadowPlayEnabled&&(this.mrTime=this.shadowPlayService.mrStartTime?this.getFormattedTime(this.shadowPlayService.mrStartTime):""),this.gfnIntegration&&this.updateStreamingTimeLeft()}),this.setupIME(),this.featureSupportService.isGfnMicrophoneEnabled().pipe((0,c.s)(1)).subscribe(Pt=>{this.isGfnMicEnabled=Pt,Pt?this.setupGfnMicrophone():this.isShadowPlayEnabled&&(this.setupMic(),this.shadowPlayService.getMICState().pipe((0,r.Q)(this.destroy$)).subscribe(jt=>{this.micState=jt,this.micSwitchState=jt!==M.YQZ.off,this.micRotaryInit=this.getMicState(jt),this.createMicSubtitle()}),this.shadowPlayService.getMICDeviceState().pipe((0,r.Q)(this.destroy$)).subscribe(jt=>{(jt===M.gXb.plugged_in||jt===M.gXb.plugged_out)&&(this.showMicRotary=jt===M.gXb.plugged_in,this.createMicSubtitle())}))}),this.gfnIntegration&&this.updateStreamingTimeLeft(),this.statisticsService?.statisticsHotkeyPressed().pipe((0,r.Q)(this.destroy$)).subscribe(Pt=>{this.statsRotatyState=Pt}),this.statsRotatyState=this.statisticsService?.getStatsState()}ngOnDestroy(){this.backCallback$&&this.backCallback$.unsubscribe(),this.destroy$.next(!0),this.destroy$.unsubscribe()}getHotkeyAndStyleSlotString(){(this.isGfn?(0,i.of)(!0):this.nvcameraService.getGlobalToggle()).pipe((0,r.Q)(this.destroy$)).subscribe(jt=>{this.logger.info("Global toggle value is set to ",jt),this.nvcameraGlobal=jt,this.getHotKeyStringForAnselNFreestyle(jt)})}getHotKeyStringForAnselNFreestyle(Pt){this.logger.info("getHotKeyStringForAnselNFreestyle"),Pt?this.hotkeyService.getHotkeyString(m.Or.Share.Shareserver.HotkeyEnum.OpenAnsel).pipe((0,r.Q)(this.destroy$)).subscribe(jt=>{this.logger.info("Photo mode hotkey: ",jt),this.photoModeKeyDetails(jt),this.photoModeHotkey=jt}):this.photoModeSubTitle="mainMenu.photoModeGlobalToggle",this.isGfn||this.hotkeyService.getHotkeyString(m.Or.Share.Shareserver.HotkeyEnum.OpenFreestyle).pipe((0,r.Q)(this.destroy$)).subscribe(jt=>{this.gameFilterHotkey=jt}),this.nvcameraService.gfStyleToggleHotkey$.pipe((0,r.Q)(this.destroy$)).subscribe(jt=>{this.gfStyleToggleHotkey=jt}),this.nvcameraService.getNListenForGameFilterHotkey().pipe((0,r.Q)(this.destroy$)).subscribe()}createCameraSubtitle(){this.webcamInfo.present?(this.camHotkeyText="mainMenu.Toggle",this.camHotkeyArg=this.webcamHotkey):(this.camHotkeyText="mainMenu.NotAvailable",this.camHotkeyArg="")}getDisableRecordStringMessage(){switch(this.disableRecordSpecialCase){case V.Fm.RECORD_SPECIAL_CASE_PLAYTEST:return"mainMenu.DisabledForPlaytest";case V.Fm.RECORD_SPECIAL_CASE_4K:return"mainMenu.DisableRecord";case V.Fm.RECORD_SPECIAL_CASE_10bit:return"mainMenu.DisableRecord10bit"}}setIRHotkeyFormat(){this.isIROn=this.irState!==M.xT8.off;const Pt=this.isGfn&&this.irState===M.xT8.recording||!this.isGfn&&this.isIROn;if(this.isSaveEnabled=this.irState===M.xT8.recording,this.irHotkey=Pt?this.irSaveHotkey:this.irToggleHotkey,this.irSec="",this.irMin="",this.disableRecordSpecialCase)this.irHotkeyText=this.getDisableRecordStringMessage();else if(Pt)if(this.irSeconds<60)this.irSec=this.irSeconds.toString(),this.irHotkeyText="mainMenu.SaveLastSecs";else{const jt=Math.floor(this.irSeconds/60);this.irSec=(this.irSeconds-60*jt).toString(),this.irMin=jt.toString(),this.irHotkeyText="mainMenu.SaveLast"}else this.irHotkeyText="mainMenu.Toggle"}setMRHotkeyFormat(){this.mrHotkeyText=this.disableRecordSpecialCase?this.getDisableRecordStringMessage():this.isRecording?"mainMenu.StopAndSave":"mainMenu.Start"}onBCStateChange(Pt){this.bcState=Pt,this.bcSubtitle=Pt===M.lyd.active||Pt===M.lyd.paused?"mainMenu.Stop":""}getFormattedTime(Pt){return this.formatTime(Pt,Date.now())}formatTime(Pt,jt){const gn=Math.max(0,Math.floor((jt-Pt)/1e3));return v.Nq.secondsToHHMMSS(gn)}updateStreamingTimeLeft(){const Pt=this.gfnInfoService?.getStreamingEndTime();Pt>0&&(this.timeLeftInStream=this.formatTime(Date.now(),Pt))}onScreenshotClicked(){this.logger.info("Screenshot button clicked"),this.shadowPlayService.captureScreenshot()}onIMEClicked(){this.oscDisplayService.closeOSC(I.oy.IGO),this.clientInputService.initImeInput(D.vy.Igo)}onClickIRStart(){this.logger.info("IR Start clicked"),this.shadowPlayService.enableInstantReplay()}onClickIRSave(){this.logger.info("IR Save clicked"),this.shadowPlayService.saveIR()}onClickIRStop(){this.logger.info("IR Stop clicked"),this.shadowPlayService.disableInstantReplay()}onToggleIR(Pt){this.logger.info("on toggle IR: ",Pt.checked),Pt.checked?this.onClickIRStart():this.onClickIRStop()}onClickManualRecord(){this.logger.info("Manual Record clicked"),this.isRecording?this.shadowPlayService.stopAndSaveManualRecord():this.shadowPlayService.startManualRecord()}onRotaryMic(Pt){this.logger.info("Microphone Rotary: ",Pt);const jt=this.getMicRotaryInit(Pt);this.micState=jt,this.micRotaryInit=Pt,this.createMicSubtitle(),this.shadowPlayService.setMicMode(jt)}onToggleMicSwitch(Pt){const jt=Pt.checked?M.YQZ.on:M.YQZ.off;this.micSwitchState=Pt.checked,this.micState=jt,this.createMicSubtitle(),this.shadowPlayService.setMicMode(jt)}onToggleMicrophone(){this.microphoneService.toggleMicrophone()}onChangeStats(Pt){this.statisticsService.statisticsStateChanged(Pt)}onPerformanceClicked(){this.logger.info("Performance clicked"),this.perfmonService.launchPerformanceMenu()}onNgxClicked(){this.logger.info("Ngx clicked"),this.ngxService.launchNgxMenu()}onGAssistClicked(){this.logger.info("G-Assist clicked");const Pt={globalToggle:this.aiChatBoxService.getGAssistToggleState(),gAssistHotkey:this.gAssistOverlayHotkey,trigger:T.JI.SidebarButton};this.oscDisplayService.openOSC("sidebar/gassist/gassist-settings",Pt)}onCodecClick(Pt=!1){this.logger.info("Codec MSG clicked"),this.shadowPlayService.dismissShowCodecMessage(),Pt||(this.shadowPlayService.videoCaptureReturnLocation="../main-menu",this.navigationService.navigate(["../settings/video"],{relativeTo:this.route.parent,skipLocationChange:!0},M.jby.videoCapture)),this.showCodecMsg=!1}getPerformanceSubTitle(){this.hotkeyService.getHotkeyString(m.Or.Share.Shareserver.HotkeyEnum.PMOCOverlay).pipe((0,r.Q)(this.destroy$)).subscribe(Pt=>{this.perfOverlayHotkey=Pt})}getMicRotaryInit(Pt){switch(Pt){case 0:default:return M.YQZ.off;case 1:return M.YQZ.on;case 2:return M.YQZ.ptt}}getMicState(Pt){switch(Pt){case M.YQZ.off:default:return 0;case M.YQZ.on:return 1;case M.YQZ.ptt:return 2}}onBroadcastClicked(){this.logger.info("Broadcast clicked"),this.shadowPlayService.handlePrivacyAndAvailability("br").pipe((0,r.Q)(this.destroy$)).subscribe(Pt=>{Pt&&this.navigationService.navigate(["../content/share"],{relativeTo:this.route.parent,skipLocationChange:!0},M.jby.broadcast)})}onChangeWebcam(Pt){this.logger.info("Webcam changed: ",Pt),this.webcamRotaryInit=Pt,this.webcamService.enableWebcam(0!==Pt),this.webcamService.queueWebcamPreview(2===Pt)}onGalleryClicked(){this.logger.info("Gallery clicked"),this.navigationService.navigate(["../gallery"],{relativeTo:this.route.parent,skipLocationChange:!0},M.jby.galleryMain)}onSettingsClicked(){this.logger.info("Settings clicked"),this.navigationService.navigate(["../settings/settings"],{relativeTo:this.route.parent,skipLocationChange:!0},M.jby.settings)}onPhotoModeClicked(){this.logger.info("Photo mode clicked"),this.nvcameraService.pageLaunchMode=T.gv.UsingUI,this.nvcameraService.launchPhotoModeMenu(M.onG.Ui)}onHighLightsClicked(){this.logger.info("Highlights mode clicked"),this.navigationService.navigate(["../settings/highlights"],{relativeTo:this.route.parent,skipLocationChange:!0},M.jby.highlights)}onGamesFilterClicked(){this.logger.info("Games Filter mode clicked"),this.nvcameraService.pageLaunchMode=T.gv.UsingUI,this.nvcameraService.launchGameFilterMenu(M.onG.Ui)}createGfnMicSubtitle(){this.isGfnMicBlocked?(this.micHotkeyText=v.zk.isCefPlatform()?"mainMenu.MicBlockedMessage":"mainMenu.MicDisabled",this.micHotkeyArg=""):this.isGfnMicButtonDisabled?(this.micHotkeyText="mainMenu.MicNotFoundMessage",this.micHotkeyArg=""):(this.micHotkeyText="mainMenu.Toggle",this.micHotkeyArg=this.micHotkey)}createMicSubtitle(){this.showMicRotary||this.useMicSwitch?(this.micHotkeyText="mainMenu.Toggle",this.micHotkeyArg=this.micHotkey,this.micState===M.YQZ.ptt&&(this.micHotkeyText="mainMenu.ActivatePushToTalk",this.micHotkeyArg=this.micHotkeyPTT),"None"===this.micHotkeyArg&&(this.micSubtitleVisible=!1)):(this.micHotkeyText=0===this.micCount?"mainMenu.NotAvailable":"mainMenu.Disabled",this.micHotkeyArg="",this.micSubtitleVisible=!0)}setupGfnMicrophone(){this.microphoneService.currentMicState$.pipe((0,r.Q)(this.destroy$)).subscribe(Pt=>{this.isGfnMicBlocked=Pt===U.EO.PermissionPending||Pt===U.EO.PermissionDenied,this.isGfnMicButtonDisabled=Pt===U.EO.NoMicFound,this.gfnMicSwitchState=Pt===U.EO.Unmuted,this.logger.info("Microphone blocked?",this.isGfnMicBlocked),this.logger.info("Microphone button disabled?",this.isGfnMicButtonDisabled),this.createGfnMicSubtitle()})}setupMic(){this.shadowPlayService.getMicMode().pipe((0,r.Q)(this.destroy$)).subscribe(Pt=>{this.micState=Pt,this.micSwitchState=Pt!==M.YQZ.off,this.micRotaryInit=this.getMicState(Pt),this.createMicSubtitle()})}setupIME(){this.imeHotkeyText="mainMenu.OpenClose",this.imeHotkeyArg=this.imeHotkey}getGameFilterSubTitle(){const Pt=this.nvcameraService.isAnyGameFilterSlotSelected(),jt=this.nvcameraService.isAnyGameFilterSlotSelectedNvApp()||this.ppeService.isAnyPpeFilterSlotSelected(),gn=this.nvcameraService.isAppStartedReceived,ui=this.nvcameraService.isAnyGameFilterSlotSelectedNvApp()?this.nvcameraService.getCurrentSlotIndex():this.ppeService.getCurrentPpeSlotIndex(),Ii={subTitle:"",args:{}};if(this.gameFilterDisabled)Ii.subTitle="nvcamera.NotCurrentlyAvailable";else if(this.nvcameraGlobal){const pr=this.nvcameraService.getCurrentModSlotName();Pt&&this.isGfn?pr||"None"!==this.gfStyleToggleHotkey?pr&&"None"!==this.gfStyleToggleHotkey?(Ii.subTitle="nvcamera.StyleAndHotkeySubtitle",Ii.args={hotkey:this.gfStyleToggleHotkey,styleName:pr}):pr?(Ii.subTitle="nvcamera.StyleOnlySubtitle",Ii.args={styleName:pr}):"None"!==this.gfStyleToggleHotkey&&(Ii.subTitle="nvcamera.HotkeyOnlySubtitle",Ii.args={hotkey:this.gfStyleToggleHotkey,slotIndex:this.nvcameraService.getCurrentSlotIndex()}):(Ii.subTitle="nvcamera.Style",Ii.args={arg:this.nvcameraService.getCurrentSlotIndex()}):!this.isGfn&&gn&&!jt&&this.gameFilterHotkey?(Ii.subTitle="nvcamera.GameFilterNoneSelected",Ii.args={hotkey:this.gameFilterHotkey}):!this.isGfn&&gn&&jt&&this.gameFilterHotkey?(Ii.subTitle="nvcamera.GameFilterSupportedGameProfile",Ii.args={hotkey:this.gameFilterHotkey,slotIndex:ui}):this.isGfn||gn?Ii.subTitle="nvcamera.None":(Ii.subTitle="nvcamera.GameFilterUnsupportedGame",Ii.args={hotkey:this.gameFilterHotkey})}else Ii.subTitle="mainMenu.gameFilterGlobalToggle";return Ii}quitGfn(){this.gfnInfoService?.quitGfnStreaming()}exitFullScreen(){this.gfnInfoService?.exitFullScreen()}openInputControl(){this.clientInputService.toggleInputControlUI(!0)}static{this.\u0275fac=function(jt){return new(jt||bt)(f.rXU(f.zZn),f.rXU(v.J6),f.rXU(l.nX),f.rXU(M.o_p),f.rXU(M.QSC),f.rXU(M.AFS),f.rXU(M.W1J),f.rXU(M.b4n),f.rXU(M.h8x),f.rXU(M.Bqk),f.rXU(M.k$F),f.rXU(M.gZv),f.rXU(M.aTF),f.rXU(M.Rvq),f.rXU(U.CQ),f.rXU(M.$jZ),f.rXU(v.NZ),f.rXU(M.Vlf))}}static{this.\u0275cmp=f.VBU({type:bt,selectors:[["app-main-menu"]],viewQuery:function(jt,gn){if(1&jt&&f.GBs(W,5,f.c1b),2&jt){let ui;f.mGM(ui=f.lsd())&&(gn.tc=ui.first)}},decls:18,vars:13,consts:[["tc",""],["fxLayout","column","fxFlex",""],["fxFlex","grow"],[4,"ngIf"],["fxLayout","column",3,"ngClass",4,"ngIf"],["svgIcon","keyboard","titleString","mainMenu.NativeKeyboardInputDialog",3,"subTitle","subTitleArg","subtitleVisible","clicked",4,"ngIf"],["svgIcon","keyboard",3,"titleString","clicked",4,"ngIf"],[3,"marginNotReq"],["icon","analytics","titleString","settings.stats.Statistics",3,"subTitle","subTitleArg","subtitleVisible","sidePaddingRotary","iconExtraPaddingTop",4,"ngIf"],["svgIcon","fullscreen_exit","titleString","mainMenu.ExitFullscreen",3,"clicked",4,"ngIf"],["svgIcon","logout","titleString","mainMenu.QuitGame",3,"titleArg","subTitle","subtitleVisible","clicked",4,"ngIf"],["icon","time","titleString","mainMenu.GfnSessionTimer",3,"subTitle"],["fxLayout","column",3,"ngClass"],["svgIcon","gallery","titleString","gallery.Gallery",3,"clicked","chevron","disabled"],["icon","record","titleString","mainMenu.ManualRecord",3,"subTitle","subTitleArg","subtitleVisible","disabled",4,"ngIf"],["titleString","mainMenu.ManualRecord","svgIcon","record",3,"urlIcon","subTitle","subTitleArg","mainMenuUse","subText","disabled","clicked",4,"ngIf"],["icon","replay","titleString","mainMenu.InstantReplay",3,"subTitle","subTitleArg","subtitleVisible","disabled",4,"ngIf"],["titleString","mainMenu.InstantReplay","svgIcon","replay",3,"subTitle","subTitleArg","secondButton","chevron","disabled","clicked","secondButtonclicked",4,"ngIf"],["class","nv-gap-16",4,"ngIf"],["svgIcon","image","titleString","mainMenu.Screenshot",3,"clicked","subTitle","subTitleArg","subtitleVisible","urlIcon","mainMenuUse","disabled"],["icon","mic","titleString","mainMenu.Microphone",3,"subTitle","subTitleArg","subtitleVisible",4,"ngIf"],[1,"rotary-side-padding"],["svgIcon","mic","title","mainMenu.Microphone",3,"input","initialState","subTitle","subTitleArg","width","selectionChanged",4,"ngIf"],["icon","record","titleString","mainMenu.ManualRecord",3,"subTitle","subTitleArg","subtitleVisible","disabled"],["class","font-body2 timer-spacing",4,"ngIf"],["fxFlex","none",1,"nv-horizontal-gap-24"],[3,"clicked","svgIcon","tooltip","disabled"],[1,"font-body2","timer-spacing"],["titleString","mainMenu.ManualRecord","svgIcon","record",3,"clicked","urlIcon","subTitle","subTitleArg","mainMenuUse","subText","disabled"],["icon","replay","titleString","mainMenu.InstantReplay",3,"subTitle","subTitleArg","subtitleVisible","disabled"],["svgIcon","save","tooltip","tooltips.Save",3,"disabled","clicked",4,"ngIf"],["svgIcon","save","tooltip","tooltips.Save",3,"clicked","disabled"],["titleString","mainMenu.InstantReplay","svgIcon","replay",3,"clicked","secondButtonclicked","subTitle","subTitleArg","secondButton","chevron","disabled"],[1,"nv-gap-16"],["svgIcon","photo_camera","titleString","nvcamera.PhotoMode",3,"clicked","chevron","subTitle","subTitleArg","subtitleVisible","disabled"],["svgIcon","video_off","titleString","dlssoverride.performance","subTitle","dlssoverride.performanceSub",3,"clicked","chevron","subTitleArg","subtitleVisible","disabled"],["svgIcon","highlights","titleString","filter.Highlights",3,"clicked","chevron","subTitle","subtitleVisible","disabled"],["svgIcon","freestyle","titleString","nvcamera.GameFilters",3,"clicked","chevron","subTitle","subTitleArg","subtitleVisible","disabled"],["icon","mic","titleString","mainMenu.Microphone",3,"subTitle","subTitleArg","subtitleVisible"],["class","mic-spacing",3,"checked","change",4,"ngIf"],[1,"mic-spacing",3,"change","checked"],["svgIcon","mic","title","mainMenu.Microphone",3,"selectionChanged","input","initialState","subTitle","subTitleArg","width"],["svgIcon","keyboard","titleString","mainMenu.NativeKeyboardInputDialog",3,"clicked","subTitle","subTitleArg","subtitleVisible"],["icon","videocam","titleString","mainMenu.Webcam",3,"subTitle","subTitleArg","subtitleVisible"],[3,"input","initialState","width","selectionChanged",4,"ngIf"],[3,"selectionChanged","input","initialState","width"],["svgIcon","mic","titleString","mainMenu.Microphone",3,"subTitle","disabled","clicked",4,"ngIf"],["svgIcon","mic","titleString","mainMenu.Microphone",3,"clicked","subTitle","disabled"],[3,"change","checked"],["svgIcon","keyboard",3,"clicked","titleString"],["icon","analytics","titleString","settings.stats.Statistics",3,"subTitle","subTitleArg","subtitleVisible","sidePaddingRotary","iconExtraPaddingTop"],["svgIcon","g-assist","titleString","gAssist.projectGAssist",3,"clicked","chevron","titleFontBold","subTitle","subTitleArg"],["svgIcon","analytics","titleString","perfmon.performance","subTitle","perfmon.togglePerfOverlay",3,"clicked","chevron","titleFontBold","subTitleArg"],["svgIcon","fullscreen_exit","titleString","mainMenu.ExitFullscreen",3,"clicked"],["svgIcon","logout","titleString","mainMenu.QuitGame",3,"clicked","titleArg","subTitle","subtitleVisible"]],template:function(jt,gn){1&jt&&(f.j41(0,"div",1)(1,"div",2),f.DNE(2,At,5,9,"ng-container",3)(3,Et,3,6,"div",4)(4,rt,16,20,"div",3)(5,et,1,5,"nv-item-button",5)(6,Gt,4,6,"ng-container",3)(7,ke,3,2,"ng-container",3)(8,be,1,1,"nv-item-button",6),f.k0s(),f.qex(9),f.nrm(10,"nv-divider",7),f.DNE(11,Ae,2,10,"nv-main-menu-item",8)(12,qe,2,6,"ng-container",3)(13,Lt,2,5,"ng-container",3)(14,Zt,1,0,"nv-item-button",9)(15,fn,1,5,"nv-item-button",10),f.bVm(),f.nrm(16,"div",null,0),f.k0s()),2&jt&&(f.R7$(2),f.Y8G("ngIf",gn.gfnIntegration&&gn.showTimeLeft&&gn.timeLeftInStream),f.R7$(),f.Y8G("ngIf",gn.isGalleryEnabled),f.R7$(),f.Y8G("ngIf",gn.isShadowPlayEnabled),f.R7$(),f.Y8G("ngIf",gn.imeEnabled&&gn.isKBMGamesAllowed),f.R7$(),f.Y8G("ngIf",gn.isWebcamEnabled&&gn.showWebcamControls),f.R7$(),f.Y8G("ngIf",gn.isGfnMicEnabled),f.R7$(),f.Y8G("ngIf",gn.isInputControlEnabled),f.R7$(2),f.Y8G("marginNotReq",gn.tvMode),f.R7$(),f.Y8G("ngIf",gn.isStatisticsEnabled),f.R7$(),f.Y8G("ngIf",gn.isGAssistInstalled),f.R7$(),f.Y8G("ngIf",gn.isPerformanceAvailable),f.R7$(),f.Y8G("ngIf",gn.gfnIntegration&&gn.isBrowserPlatform&&!gn.tvMode&&gn.showExitOption),f.R7$(),f.Y8G("ngIf",gn.gfnIntegration))},dependencies:[n.YU,n.bT,N.DJ,N.UI,L.PW,E.$,g.j,R.X,B.I,X.P2,H.tG,Me,G],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.gallery-container[_ngcontent-%COMP%]{padding-top:16px}.timer-spacing[_ngcontent-%COMP%]{padding:2px 0 8px}.main-item-height[_ngcontent-%COMP%]{height:60px}.isLtr[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-right:4px}html[dir=ltr][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:4px}.isRtl[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-left:4px}html[dir=rtl][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:4px}.codec-padding[_ngcontent-%COMP%]{padding:22px 8px 8px;background-color:var(--primary-700)}.codec-text-padding[_ngcontent-%COMP%]{padding:0 16px}.codec-options-padding[_ngcontent-%COMP%]{padding:8px;color:var(--primary-contrast-1000)}.codec-options-padding[_ngcontent-%COMP%]:hover{background-color:var(--primary-600);cursor:pointer}.codec-options-padding[_ngcontent-%COMP%]:focus{background-color:var(--primary-600)}[_nghost-%COMP%]{padding:0 0 16px}.tv-view[_nghost-%COMP%], .tv-view [_nghost-%COMP%]{padding:24px}"]})}}return bt})();var fi=s(27216);const Ji=[{path:"",component:On,data:{level:0}},{path:"center-view",component:fi.VI,outlet:"centerPane",children:[{path:"preview",component:fi.MG}]}];let Fi=(()=>{class bt{static{this.\u0275fac=function(jt){return new(jt||bt)}}static{this.\u0275mod=f.$C({type:bt})}static{this.\u0275inj=f.G2t({imports:[n.MD,d.YF,y.G,S.i,l.iI.forChild(Ji),(0,v.BU)()]})}}return bt})()},17617:(Bt,z,s)=>{"use strict";s.d(z,{i:()=>g});var n=s(56106),l=s(97979),d=s(99204),v=s(20288),S=s(47973),y=s(44296),f=s(48362),O=s(44224),P=s(29370),_=s(12949),i=s(62141),r=s(49678),a=s(26945),c=s(50599),m=s(4418),M=s(26537),D=s(64409),I=s(65597),U=s(44186),V=s(51635),T=s(31308),N=s(56785),L=s(58527);const E=[n.YN,S.wG,l.ic,y.bB,f.s5,d.D6,v.PO,O.w,P.m_,_.Ve,i.jm,r.Wk,c.fS,D.E9,a.MY,m.g7,M.hM,I._T,U.uc,V.pZ,T.Pd,N.bm];let g=(()=>{class R{static{this.\u0275fac=function(H){return new(H||R)}}static{this.\u0275mod=L.$C({type:R})}static{this.\u0275inj=L.G2t({providers:[{provide:M.di,useValue:{exitAnimationDuration:"0ms",enterAnimationDuration:"0ms"}}],imports:[n.YN,E,n.YN,S.wG,l.ic,y.bB,f.s5,d.D6,v.PO,O.w,P.m_,_.Ve,i.jm,r.Wk,c.fS,D.E9,a.MY,m.g7,M.hM,I._T,U.uc,V.pZ,T.Pd,N.bm]})}}return R})()},95843:(Bt,z,s)=>{"use strict";s.r(z),s.d(z,{NvcameraModule:()=>br});var n=s(61142),l=s(14354),d=s(20288),v=s(51006),S=s(99469),y=s(23812),f=s(17617),O=s(80583),P=s(892),_=s(4208),i=s(1229),r=s(58527),a=s(96542),c=s(43664),m=s(52834),M=s(21254),D=s(3457),I=s(28139),U=s(22355),V=s(35146),T=s(43848),N=s(19392),L=s(93181),E=s(3496),g=s(8619),R=s(91384),B=s(75707),X=s(14714),H=s(65706),J=s(83915),re=s(93702),ie=s(79539),ve=s(86447),ue=s(41346),se=s(30254),Z=s(20924),Se=s(33668),Ce=s(19724),Be=s(27211),Xe=s(83486),He=s(56106),Me=s(49678),Q=s(54676);function A(Vn,rr){if(1&Vn){const Ut=r.RV6();r.j41(0,"mat-radio-button",2),r.bIt("change",function(){const Wn=r.eBV(Ut).index,ci=r.XpG();return r.Njj(ci.onChange(Wn))}),r.EFF(1),r.k0s()}if(2&Vn){const Ut=rr.$implicit;r.Y8G("value",Ut),r.R7$(),r.SpI(" ",Ut," ")}}let me=(()=>{class Vn{constructor(){this.disable=!1,this.changedSelection=new r.bkB}ngOnInit(){this.setEntry()}onChange(Ut){this.selection!==Ut&&(this.selection=Ut,this.changedSelection.emit(Ut),this.setEntry())}setEntry(){this.input&&this.input.length>0?((this.selection<0||this.selection>=this.input.length)&&(this.selection=0),this.entry=this.input[this.selection],this.disable=!!this.disabled||this.input.length<2):(this.entry="",this.disable=!0)}static{this.\u0275fac=function(qn){return new(qn||Vn)}}static{this.\u0275cmp=r.VBU({type:Vn,selectors:[["nv-radio-button"]],inputs:{selection:"selection",input:"input",disabled:"disabled"},outputs:{changedSelection:"changedSelection"},decls:2,vars:3,consts:[["fxLayout","column",3,"ngModelChange","ngModel","disabled"],["class","nv-radio-button",3,"value","change",4,"ngFor","ngForOf"],[1,"nv-radio-button",3,"change","value"]],template:function(qn,Wn){1&qn&&(r.j41(0,"mat-radio-group",0),r.mxI("ngModelChange",function(Tr){return r.DH7(Wn.entry,Tr)||(Wn.entry=Tr),Tr}),r.DNE(1,A,2,2,"mat-radio-button",1),r.k0s()),2&qn&&(r.R50("ngModel",Wn.entry),r.Y8G("disabled",Wn.disable),r.R7$(),r.Y8G("ngForOf",Wn.input))},dependencies:[n.Sq,D.DJ,He.BC,He.vS,Me.VT,Me._g,Q.tG,m.I],styles:[".nv-radio-button{padding:8px}\n"],encapsulation:2})}}return Vn})();var ne=s(43822),G=s(44296),W=s(29370),$=s(62141),le=s(26945),Pe=s(98504),Fe=s(5428);let At=(()=>{class Vn{constructor(Ut,qn,Wn,ci,Tr){this.nvCameraService=Ut,this.loggingService=qn,this.cdr=Wn,this.igoConfig=ci,this.injector=Tr,this.disabled=!1,this.logger=this.loggingService.getLogger("FilterSlider")}ngOnInit(){this.igoConfig.GFNCefClient||(this.ppeService=this.injector.get(i.Vlf))}onSliderMoved(Ut){this.control.currentUIValue!==Ut.value&&(this.control.currentUIValue=Ut.value,this.onSliderValueChanged())}onSliderValueChanged(){this.cdr.detectChanges(),this.control.currentValue=this.nvCameraService.normalizeSliderValue(this.control.currentUIValue,this.control.uiMinValue,this.control.uiMaxValue,this.control.minValue,this.control.maxValue),this.filter.controls[this.control.id].currentValueArray[this.control.dimension]=this.control.currentValue,this.filter.isPPEFilter?this.ppeService.runTimeChangeControlValue(this.filter).subscribe():this.nvCameraService.setFilterAttribute(this.filter.id,this.filter.stackIdx,this.control.id,i.xdE.slider,this.control.dataType,this.filter.controls[this.control.id].currentValueArray).subscribe(Ut=>{this.logger.info("slider change successful = "+Ut)},Ut=>{this.logger.error("slider change failed = "+JSON.stringify(Ut))})}static{this.\u0275fac=function(qn){return new(qn||Vn)(r.rXU(i.h8x),r.rXU(S.J6),r.rXU(r.gRc),r.rXU(i.k$F),r.rXU(r.zZn))}}static{this.\u0275cmp=r.VBU({type:Vn,selectors:[["igo-filter-slider"]],inputs:{control:"control",filter:"filter",disabled:"disabled"},decls:6,vars:9,consts:[["fxLayout","column"],["fxLayout","row",1,"title-padding","font-body1"],["fxFlex","grow"],["fxFlex","none"],["fxFlex","","valueEntry","true","formatTextAs","Decimal",1,"slider-left-padding",3,"input","valueChange","min","max","step","value","default","disabled"]],template:function(qn,Wn){1&qn&&(r.j41(0,"div",0)(1,"div",1)(2,"div",2),r.EFF(3),r.k0s()(),r.j41(4,"div",3)(5,"nv-hig-slider",4),r.bIt("input",function(Tr){return Wn.onSliderMoved(Tr)})("valueChange",function(){return Wn.onSliderValueChanged()}),r.k0s()()()),2&qn&&(r.R7$(),r.AVh("title-disabled-font",Wn.disabled),r.R7$(2),r.JRh(Wn.control.displayName),r.R7$(2),r.Y8G("min",Wn.control.uiMinValue)("max",Wn.control.uiMaxValue)("step",Wn.control.uiStepSize)("value",Wn.control.currentUIValue)("default",Wn.control.defaultValue)("disabled",Wn.disabled))},dependencies:[m.I,D.DJ,D.UI,Fe.t],styles:[".title-padding[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.title-disabled-font[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 16px;--font-body-line-height: 24px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0;color:var(--primary-contrast-380)}.tv-view[_ngcontent-%COMP%] .title-disabled-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .title-disabled-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .title-disabled-font[_ngcontent-%COMP%]{--font-body-size: 32px;--font-body-line-height: 48px;--font-body-color: rgba(255, 255, 255, .85)}.slider-left-padding[_ngcontent-%COMP%]{padding-top:2.5px;padding-bottom:2.5px}.isLtr[_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}"]})}}return Vn})(),Le=(()=>{class Vn{constructor(Ut,qn){this.nvCameraService=Ut,this.loggingService=qn,this.logger=this.loggingService.getLogger("FilterEditbox")}editBoxChanged(Ut){this.control.currentValueArray[this.control.dimension]=parseFloat(Ut),this.nvCameraService.setFilterAttribute(this.filter.id,this.filter.stackIdx,this.control.id,i.xdE.edit,this.control.dataType,this.control.currentValueArray).subscribe(qn=>{this.logger.info("editbox value change successful = "+qn)},qn=>{this.logger.error("editbox value change failed = "+JSON.stringify(qn))})}static{this.\u0275fac=function(qn){return new(qn||Vn)(r.rXU(i.h8x),r.rXU(S.J6))}}static{this.\u0275cmp=r.VBU({type:Vn,selectors:[["igo-filter-editbox"]],inputs:{control:"control",filter:"filter"},decls:6,vars:4,consts:[["fxLayout","row"],["fxFlex","grow"],[3,"textChange","text","placeholderText","disabled","textMaxLength"]],template:function(qn,Wn){1&qn&&(r.j41(0,"div",0)(1,"div",1),r.EFF(2),r.k0s()(),r.j41(3,"div",0)(4,"div",1)(5,"nv-input",2),r.mxI("textChange",function(Tr){return r.DH7(Wn.control.currentValue,Tr)||(Wn.control.currentValue=Tr),Tr}),r.bIt("textChange",function(Tr){return Wn.editBoxChanged(Tr)}),r.k0s()()()),2&qn&&(r.R7$(2),r.JRh(Wn.control.displayName),r.R7$(3),r.R50("text",Wn.control.currentValue),r.Y8G("disabled",!1)("textMaxLength",100))},dependencies:[m.I,M.Q,D.DJ,D.UI],encapsulation:2})}}return Vn})();const Et=Vn=>({activeFilterCount:Vn}),$e=()=>[],Ze=Vn=>({availableFilterCount:Vn});function Qe(Vn,rr){1&Vn&&(r.j41(0,"div")(1,"span",7),r.EFF(2),r.nI1(3,"translate"),r.k0s()()),2&Vn&&(r.R7$(2),r.JRh(r.bMT(3,1,"nvcamera.NONEStateDescription")))}function Ve(Vn,rr){1&Vn&&(r.j41(0,"span",13),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2&Vn&&(r.R7$(),r.JRh(r.bMT(2,1,"nvcamera.HeaderTitleFilters")))}function nt(Vn,rr){if(1&Vn&&(r.j41(0,"span",13),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2&Vn){const Ut=r.XpG(3);r.R7$(),r.JRh(r.i5U(2,1,"nvcamera.ActiveFilters",r.eq3(4,Et,Ut.filterStack.filters.length+Ut.ppeFilterStack.filters.length)))}}function Ot(Vn,rr){if(1&Vn&&(r.j41(0,"div",11),r.DNE(1,Ve,3,3,"span",12)(2,nt,3,6,"span",12),r.k0s()),2&Vn){const Ut=r.XpG(2);r.R7$(),r.Y8G("ngIf",!Ut.isNewFilterUI),r.R7$(),r.Y8G("ngIf",Ut.isNewFilterUI&&(Ut.nvCameraReady||Ut.isPpeFiltersVisible)&&!Ut.disabledDueToGlobalToggle)}}function at(Vn,rr){if(1&Vn){const Ut=r.RV6();r.qex(0),r.j41(1,"nv-item-button",14),r.bIt("clicked",function(){r.eBV(Ut);const Wn=r.XpG(2);return r.Njj(Wn.moveSelectedFiltersUp())}),r.k0s(),r.j41(2,"nv-item-button",15),r.bIt("clicked",function(){r.eBV(Ut);const Wn=r.XpG(2);return r.Njj(Wn.moveSelectedFiltersDown())}),r.k0s(),r.j41(3,"nv-item-button",16),r.bIt("clicked",function(){r.eBV(Ut);const Wn=r.XpG(2);return r.Njj(Wn.deleteSelectedFilters())}),r.k0s(),r.bVm()}if(2&Vn){const Ut=r.XpG(2);r.R7$(),r.Y8G("disabled",Ut.filterStack.upButtonDisabled),r.R7$(),r.Y8G("disabled",Ut.filterStack.downButtonDisabled)}}function It(Vn,rr){if(1&Vn){const Ut=r.RV6();r.qex(0),r.j41(1,"nv-item-button",14),r.bIt("clicked",function(){r.eBV(Ut);const Wn=r.XpG(2);return r.Njj(Wn.moveSelectedFiltersUp())}),r.k0s(),r.j41(2,"nv-item-button",15),r.bIt("clicked",function(){r.eBV(Ut);const Wn=r.XpG(2);return r.Njj(Wn.moveSelectedFiltersDown())}),r.k0s(),r.j41(3,"nv-item-button",17),r.bIt("clicked",function(){r.eBV(Ut);const Wn=r.XpG(2);return r.Njj(Wn.deleteSelectedFilters())}),r.k0s(),r.bVm()}if(2&Vn){const Ut=r.XpG(2);r.R7$(),r.Y8G("disabled",Ut.filterStack.upButtonDisabled||0===Ut.filterStack.selectedFilterCount||Ut.ppeFilterStack.selectedFilterCount>0),r.R7$(),r.Y8G("disabled",Ut.filterStack.downButtonDisabled||0===Ut.filterStack.selectedFilterCount||Ut.ppeFilterStack.selectedFilterCount>0),r.R7$(),r.Y8G("disabled",Ut.filterStack.selectedFilterCount+Ut.ppeFilterStack.selectedFilterCount===0)}}function We(Vn,rr){1&Vn&&(r.qex(0),r.nrm(1,"nv-item-button",22),r.bVm()),2&Vn&&(r.R7$(),r.Y8G("disabled",!0))}function xe(Vn,rr){if(1&Vn&&(r.qex(0),r.nrm(1,"nv-item-button",23),r.bVm()),2&Vn){r.XpG();const Ut=r.sdS(4);r.R7$(),r.Y8G("matMenuTriggerFor",Ut)}}function lt(Vn,rr){if(1&Vn){const Ut=r.RV6();r.j41(0,"button",25),r.bIt("click",function(){r.eBV(Ut);const Wn=r.XpG().$implicit,ci=r.XpG(3);return r.Njj(ci.onFilterAdded(Wn))}),r.j41(1,"span",26),r.EFF(2),r.k0s()()}if(2&Vn){const Ut=r.XpG().$implicit;r.R7$(2),r.JRh(Ut.name)}}function ft(Vn,rr){if(1&Vn&&(r.qex(0),r.DNE(1,lt,3,1,"button",24),r.bVm()),2&Vn){const Ut=rr.$implicit;r.R7$(),r.Y8G("ngIf",Ut.isVisible)}}function ht(Vn,rr){if(1&Vn&&(r.j41(0,"div",18),r.DNE(1,We,2,1,"ng-container",2)(2,xe,2,1,"ng-container",2),r.j41(3,"mat-menu",19,0)(5,"div",20),r.DNE(6,ft,2,1,"ng-container",21),r.k0s()()()),2&Vn){const Ut=r.XpG(2);r.R7$(),r.Y8G("ngIf",Ut.isFilterDropdownDisabled()),r.R7$(),r.Y8G("ngIf",!Ut.isFilterDropdownDisabled()),r.R7$(4),r.Y8G("ngForOf",Ut.filterList)}}function Xt(Vn,rr){if(1&Vn&&(r.j41(0,"div",8),r.DNE(1,Ot,3,2,"div",9)(2,at,4,2,"ng-container",2)(3,It,4,3,"ng-container",2)(4,ht,7,3,"div",10),r.k0s()),2&Vn){const Ut=r.XpG();r.R7$(),r.Y8G("ngIf",Ut.isAppStartedReceived||Ut.nvCameraReady),r.R7$(),r.Y8G("ngIf",!Ut.isNewFilterUI&&Ut.filterStack.selectedFilterCount>0),r.R7$(),r.Y8G("ngIf",Ut.isNewFilterUI&&Ut.isAppStartedReceived&&Ut.filterStack.filters.length+Ut.ppeFilterStack.filters.length>0&&!Ut.disabledDueToGlobalToggle),r.R7$(),r.Y8G("ngIf",!Ut.isNewFilterUI)}}function Ht(Vn,rr){1&Vn&&(r.j41(0,"div",27)(1,"mat-icon",28),r.EFF(2,"info"),r.k0s(),r.j41(3,"span"),r.EFF(4),r.nI1(5,"translate"),r.k0s()()),2&Vn&&(r.R7$(4),r.JRh(r.bMT(5,1,"nvcamera.AddFilterMessage")))}function Je(Vn,rr){if(1&Vn){const Ut=r.RV6();r.j41(0,"button",41),r.bIt("click",function(Wn){r.eBV(Ut);const ci=r.XpG().$implicit,Tr=r.XpG(2);return r.Njj(Tr.isNewFilterUI?Tr.onFilterClickedNvApp(ci,ci.isSelected,Wn):Tr.onFilterClicked(ci,!0,Wn))}),r.nrm(1,"mat-icon",42),r.k0s()}}function tt(Vn,rr){if(1&Vn&&(r.j41(0,"div"),r.nrm(1,"igo-filter-slider",46),r.k0s()),2&Vn){const Ut=r.XpG().$implicit,qn=r.XpG().$implicit,Wn=r.XpG(2);r.R7$(),r.Y8G("control",Ut)("filter",qn)("disabled",Wn.ppeGameRelaunchInfo(qn))}}function rt(Vn,rr){if(1&Vn&&(r.j41(0,"div",51),r.nrm(1,"igo-filter-slider",46),r.k0s()),2&Vn){const Ut=rr.$implicit,qn=r.XpG(3).$implicit,Wn=r.XpG(2);r.R7$(),r.Y8G("control",Ut)("filter",qn)("disabled",Wn.ppeGameRelaunchInfo(qn))}}function et(Vn,rr){if(1&Vn&&(r.j41(0,"div",47)(1,"div",48)(2,"div",49)(3,"span"),r.EFF(4),r.k0s()()(),r.DNE(5,rt,2,3,"div",50),r.k0s()),2&Vn){const Ut=r.XpG().$implicit;r.R7$(4),r.JRh(Ut.displayName),r.R7$(),r.Y8G("ngForOf",Ut.subControls)}}function St(Vn,rr){if(1&Vn){const Ut=r.RV6();r.j41(0,"div",48)(1,"div",49),r.EFF(2),r.k0s(),r.j41(3,"div",18)(4,"mat-slide-toggle",52),r.mxI("ngModelChange",function(Wn){r.eBV(Ut);const ci=r.XpG().$implicit;return r.DH7(ci.currentValue,Wn)||(ci.currentValue=Wn),r.Njj(Wn)}),r.bIt("change",function(){r.eBV(Ut);const Wn=r.XpG().$implicit,ci=r.XpG().$implicit,Tr=r.XpG(2);return r.Njj(Tr.onBooleanToggled(Wn,ci))}),r.k0s()()()}if(2&Vn){const Ut=r.XpG().$implicit;r.R7$(2),r.JRh(Ut.displayName),r.R7$(2),r.R50("ngModel",Ut.currentValue)}}function Gt(Vn,rr){if(1&Vn){const Ut=r.RV6();r.j41(0,"div",53)(1,"div",54)(2,"div",49),r.EFF(3),r.k0s()(),r.j41(4,"div",55)(5,"nv-dropdown",56),r.bIt("selectionChanged",function(Wn){r.eBV(Ut);const ci=r.XpG().$implicit,Tr=r.XpG().$implicit,Jr=r.XpG(2);return r.Njj(Jr.pullDownOrRadioButtonChanged(Wn,ci,Tr))}),r.k0s()()()}if(2&Vn){const Ut=r.XpG().$implicit;r.R7$(3),r.JRh(Ut.displayName),r.R7$(2),r.Y8G("maxHeight",300)("selection",Ut.currentValueArray[0])("disabled",!1)("input",Ut.pullDownOrRadioButtonItems)}}function yt(Vn,rr){if(1&Vn){const Ut=r.RV6();r.j41(0,"div",53)(1,"div",54)(2,"div",49),r.EFF(3),r.k0s()(),r.j41(4,"div",55)(5,"nv-radio-button",57),r.bIt("changedSelection",function(Wn){r.eBV(Ut);const ci=r.XpG().$implicit,Tr=r.XpG().$implicit,Jr=r.XpG(2);return r.Njj(Jr.pullDownOrRadioButtonChanged(Wn,ci,Tr))}),r.k0s()()()}if(2&Vn){const Ut=r.XpG().$implicit;r.R7$(3),r.JRh(Ut.displayName),r.R7$(2),r.Y8G("selection",Ut.currentValueArray[0])("disabled",!1)("input",Ut.pullDownOrRadioButtonItems)}}function Wt(Vn,rr){if(1&Vn&&(r.j41(0,"div",47),r.nrm(1,"igo-filter-editbox",58),r.k0s()),2&Vn){const Ut=r.XpG().$implicit,qn=r.XpG().$implicit;r.R7$(),r.Y8G("control",Ut)("filter",qn)}}function ke(Vn,rr){if(1&Vn&&(r.j41(0,"div",51),r.nrm(1,"igo-filter-editbox",58),r.k0s()),2&Vn){const Ut=rr.$implicit,qn=r.XpG(3).$implicit;r.R7$(),r.Y8G("control",Ut)("filter",qn)}}function be(Vn,rr){if(1&Vn&&(r.j41(0,"div",47)(1,"div",54)(2,"div",49),r.EFF(3),r.k0s()(),r.DNE(4,ke,2,2,"div",50),r.k0s()),2&Vn){const Ut=r.XpG().$implicit;r.R7$(3),r.JRh(Ut.displayName),r.R7$(),r.Y8G("ngForOf",Ut.subControls)}}function Ae(Vn,rr){if(1&Vn&&(r.j41(0,"div",43),r.DNE(1,tt,2,3,"div",2)(2,et,6,2,"div",6)(3,St,5,2,"div",44)(4,Gt,6,5,"div",45)(5,yt,6,4,"div",45)(6,Wt,2,2,"div",6)(7,be,5,2,"div",6),r.k0s()),2&Vn){const Ut=rr.$implicit;r.R7$(),r.Y8G("ngIf","slider"===Ut.controlType),r.R7$(),r.Y8G("ngIf","multislider"===Ut.controlType),r.R7$(),r.Y8G("ngIf","boolean"===Ut.controlType),r.R7$(),r.Y8G("ngIf","pulldown"===Ut.controlType),r.R7$(),r.Y8G("ngIf","radiobutton"===Ut.controlType),r.R7$(),r.Y8G("ngIf","edit"===Ut.controlType),r.R7$(),r.Y8G("ngIf","multiedit"===Ut.controlType)}}function qe(Vn,rr){1&Vn&&(r.j41(0,"li"),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2&Vn&&(r.R7$(),r.JRh(r.bMT(2,1,"nvcamera.NISNote")))}function Lt(Vn,rr){1&Vn&&(r.j41(0,"li"),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2&Vn&&(r.R7$(),r.SpI(" ",r.bMT(2,1,"nvcamera.PPEFilterNote2")," "))}function Zt(Vn,rr){if(1&Vn&&(r.j41(0,"li"),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2&Vn){const Ut=r.XpG().$implicit,qn=r.XpG(5);r.R7$(),r.SpI(" ",r.bMT(2,1,qn.getPpeErrorString(Ut.errorId))," ")}}function fn(Vn,rr){if(1&Vn&&(r.j41(0,"ul"),r.DNE(1,Zt,3,3,"li",2),r.k0s()),2&Vn){const Ut=rr.$implicit;r.R7$(),r.Y8G("ngIf",Ut&&Ut.valueSet)}}function hn(Vn,rr){if(1&Vn&&(r.j41(0,"div"),r.DNE(1,fn,2,1,"ul",21),r.k0s()),2&Vn){const Ut=r.XpG(2).$implicit;r.R7$(),r.Y8G("ngForOf",Ut.errorCodes)}}function On(Vn,rr){if(1&Vn&&(r.j41(0,"ul")(1,"li"),r.EFF(2),r.nI1(3,"translate"),r.k0s()()),2&Vn){const Ut=rr.$implicit;r.R7$(2),r.SpI(" ",r.bMT(3,1,Ut)," ")}}function fi(Vn,rr){if(1&Vn&&(r.j41(0,"div"),r.DNE(1,On,4,3,"ul",21),r.k0s()),2&Vn){const Ut=r.XpG(4);r.R7$(),r.Y8G("ngForOf",Ut.aiDvcRealTimeErrorStringList)}}function Ji(Vn,rr){if(1&Vn&&(r.j41(0,"ul")(1,"li"),r.EFF(2),r.nI1(3,"translate"),r.k0s()()),2&Vn){const Ut=rr.$implicit;r.R7$(2),r.SpI(" ",r.bMT(3,1,Ut)," ")}}function Fi(Vn,rr){if(1&Vn&&(r.j41(0,"div"),r.DNE(1,Ji,4,3,"ul",21),r.k0s()),2&Vn){const Ut=r.XpG(4);r.R7$(),r.Y8G("ngForOf",Ut.aiHdrRealTimeErrorStringList)}}function bt(Vn,rr){if(1&Vn&&(r.j41(0,"div",59)(1,"mat-icon",60),r.EFF(2,"info"),r.k0s(),r.j41(3,"div",61)(4,"span")(5,"ul")(6,"li"),r.EFF(7),r.nI1(8,"translate"),r.k0s(),r.DNE(9,qe,3,3,"li",2)(10,Lt,3,3,"li",2),r.k0s(),r.DNE(11,hn,2,1,"div",2)(12,fi,2,1,"div",2)(13,Fi,2,1,"div",2),r.k0s()()()),2&Vn){const Ut=r.XpG().$implicit,qn=r.XpG(2);r.R7$(7),r.JRh(r.bMT(8,6,"nvcamera.PPEFilterNote1")),r.R7$(2),r.Y8G("ngIf",Ut.id===qn.nisId),r.R7$(),r.Y8G("ngIf",qn.ppeGameRelaunchInfo(Ut)),r.R7$(),r.Y8G("ngIf",Ut.errorCodes.length),r.R7$(),r.Y8G("ngIf",Ut.id===qn.deepDvcId&&!qn.aiDvcGameEnableState&&qn.rtxDvcRealTimeErrorCode),r.R7$(),r.Y8G("ngIf",Ut.id===qn.trueHdrId&&qn.getRtxHdrStateAtAppLaunch()&&!qn.trueHdrGameEnableState)}}function bn(Vn,rr){if(1&Vn){const Ut=r.RV6();r.j41(0,"mat-expansion-panel",32)(1,"mat-expansion-panel-header",33)(2,"div",34),r.bIt("click",function(Wn){const ci=r.eBV(Ut).$implicit,Tr=r.XpG(2);return r.Njj(Tr.onFilterTitleClicked(ci,Wn))}),r.j41(3,"div",35)(4,"div",36)(5,"span"),r.EFF(6),r.k0s()()(),r.DNE(7,Je,2,0,"button",37),r.k0s()(),r.j41(8,"div",38),r.DNE(9,Ae,8,7,"div",39)(10,bt,14,8,"div",40),r.k0s()()}if(2&Vn){const Ut=rr.$implicit,qn=r.XpG(2);r.AVh("active",Ut.isSelected),r.Y8G("expanded",Ut.isExpanded),r.R7$(6),r.SpI(" ",Ut.name," "),r.R7$(),r.Y8G("ngIf",Ut.controls.length>0),r.R7$(2),r.Y8G("ngForOf",Ut.controls),r.R7$(),r.Y8G("ngIf",qn.isNewFilterUI&&Ut.isPPEFilter)}}function Pt(Vn,rr){if(1&Vn&&(r.j41(0,"div",29)(1,"mat-accordion",30),r.DNE(2,bn,11,7,"mat-expansion-panel",31),r.k0s()()),2&Vn){const Ut=r.XpG();r.R7$(),r.Y8G("@.disabled",Ut.disableAnimation),r.R7$(),r.Y8G("ngForOf",r.lJ4(2,$e).concat(Ut.ppeFilterStack.filters,Ut.filterStack.filters.slice().reverse()))}}function jt(Vn,rr){1&Vn&&r.nrm(0,"nv-divider")}function gn(Vn,rr){if(1&Vn&&(r.j41(0,"div",66),r.EFF(1),r.k0s()),2&Vn){const Ut=r.XpG().$implicit,qn=r.XpG(2);r.AVh("side-padding",qn.isNewFilterUI),r.R7$(),r.SpI(" ",Ut.name," ")}}function ui(Vn,rr){if(1&Vn){const Ut=r.RV6();r.j41(0,"nv-item-button",67),r.bIt("clicked",function(){r.eBV(Ut);const Wn=r.XpG().$implicit,ci=r.XpG(2);return r.Njj(ci.onFilterAdded(Wn))}),r.k0s()}if(2&Vn){const Ut=r.XpG().$implicit;r.Y8G("titleString",Ut.name)}}function Ii(Vn,rr){if(1&Vn&&(r.j41(0,"div"),r.DNE(1,gn,2,3,"div",64)(2,ui,1,1,"nv-item-button",65),r.k0s()),2&Vn){const Ut=r.XpG(2);r.R7$(),r.Y8G("ngIf",0===Ut.currentActiveSlotIndex||!Ut.nvCameraReady&&!Ut.isPpeFiltersVisible||!Ut.globalToggle||Ut.isGameRestartRequestedfromCTA),r.R7$(),r.Y8G("ngIf",0!==Ut.currentActiveSlotIndex&&(Ut.nvCameraReady||Ut.isPpeSupportedGame&&Ut.isPpeFiltersVisible)&&Ut.globalToggle&&!Ut.isGameRestartRequestedfromCTA)}}function pr(Vn,rr){if(1&Vn&&(r.j41(0,"div",47)(1,"div",62)(2,"span",63),r.EFF(3),r.nI1(4,"translate"),r.k0s()(),r.DNE(5,Ii,3,2,"div",21),r.k0s()),2&Vn){const Ut=r.XpG();r.R7$(),r.AVh("side-padding",Ut.isNewFilterUI),r.R7$(2),r.JRh(r.i5U(4,4,"nvcamera.AvailableFilters",r.eq3(7,Ze,Ut.filterListRender.length))),r.R7$(2),r.Y8G("ngForOf",Ut.filterListRender)}}let zr=(()=>{class Vn{constructor(Ut,qn,Wn,ci,Tr,Jr,oo,Qo){this.nvCameraService=Ut,this.loggingService=qn,this.cdr=Wn,this.igoConfig=ci,this.translateService=Tr,this.ppeService=Jr,this.oscDisplayService=oo,this.telemetryIgo=Qo,this.panelOpenState=!1,this.disableAnimation=!0,this.defaultFilter="",this.filterList=[],this.multiFilterInstanceAvailable=!1,this._ppeFilterStack=new i.hot,this.destroy$=new O.B7,this.deepDvcId=se.VL,this.nisId=se.on,this.trueHdrId=se.Ow,this.filterListRender=[],this.isNewFilterUI=!1,this.availableFilterMessage="",this.isAppStartedReceived=!1,this.isPpeSupportedGame=!1,this.isPpeFiltersVisible=!1,this.nvCameraReady=!1,this.isNis2Enabled=!1,this.isFreestyleSupportedGame=!1,this.ppeFilterTitleInfo=!0,this.aiDvcGameEnableState=!1,this.trueHdrGameEnableState=!1,this.aiDvcStateAtAppLaunch=null,this.aiHdrStateAtAppLaunch=null,this.aiDvcRealTimeErrorStringList=[],this.aiHdrRealTimeErrorStringList=[],this.rtxDvcRealTimeErrorCode=0,this.globalToggle=i.P8t,this.isGameRestartRequestedfromCTA=!1,this.disabledDueToGlobalToggle=!1,this.realtimeRtxDvcStatePollingInterval=50,this.realtimeRtxDvcStatePollingDuration=500,this.instantEnableSupported=!1,this.rtxHdrMinMiddleGrey=10,this.freestyleFilterFinalized$=new O.B7,this.deepDvcFinalized$=new O.B7,this.trueHdrFinalized$=new O.B7,this.nisFinalized$=new O.B7,this.logger=this.loggingService.getLogger("FilterSection"),this.isAppStartedReceived=this.nvCameraService.isAppStartedReceived,this.isPpeSupportedGame=this.ppeService.isPpeSupportedGame,this.nvCameraReady=this.nvCameraService.isNvCameraReady,this.isNis2Enabled=this.ppeService.isNIS2Enabled,this.aiDvcStateAtAppLaunch=this.ppeService.deepDvcStateAtAppLaunch,this.aiHdrStateAtAppLaunch=this.ppeService.trueHdrStateAtAppLaunch,this.isFreestyleSupportedGame=this.nvCameraService.isFreestyleSupportedGame(),this.isGameRestartRequestedfromCTA=this.nvCameraService.getIsGameRestartRequestedfromCTA(),this.instantEnableSupported=this.ppeService.instantEnableSupported}ngOnInit(){this.isNewFilterUI=!this.igoConfig.GFNCefClient,this.isPpeFiltersVisible=this.ppeService.isPpeFiltersVisible&&!this.isUsedForPhotoMode,this.igoConfig.GFNCefClient||(this.sendSessionEventTelemetry(),this.isUsedForPhotoMode&&(this.markFilterFetchFinalize(se.VL),this.markFilterFetchFinalize(se.on),this.markFilterFetchFinalize(se.Ow))),this.ppeService.isPpeFeaturesEnabled&&this.isPpeSupportedGame&&this.isPpeFiltersVisible&&this.nvCameraService.getGlobalToggle().subscribe(Ut=>{this.globalToggle=Ut,this.disabledDueToGlobalToggle=!this.globalToggle||this.isGameRestartRequestedfromCTA,this.disabledDueToGlobalToggle||this.createPPEFiltersList()}),this.nvCameraService.setLanguageAndGetFilterList().subscribe(Ut=>{Ut.filtersList.filtersListArray.forEach(Wn=>{this.filterList.push({id:Wn.id,name:Wn.name,isVisible:Wn.id!==se.on,isFeatureEnabled:!1,isExpanded:!1,errorCodesList:null})}),this.refreshFilterList(se.dz),this.filterList.length>0&&(this.defaultFilter=this.filterList[0].id),this.logger.info("initialized")},Ut=>{this.logger.error("error during filter section init = "+Ut),this.nvCameraService.sendFunctionalityErrorTelemetry("FunctionalError - FilterSection Init Failed: "+Ut),this.refreshFilterList(se.dz)}),(!this.isAppStartedReceived||this.isAppStartedReceived&&!this.nvCameraReady&&!this.isPpeFiltersVisible)&&this.isNewFilterUI&&this.refreshFilterList(),this.disableUpDownButton(i._Fy.None)}ngAfterViewInit(){setTimeout(()=>this.disableAnimation=!1),this.oscDisplayService.getSidebarVisibilityChange$().pipe((0,g.p)(Ut=>!Ut),(0,_.Q)(this.destroy$),(0,R.M)(Ut=>this.menuTrigger?.closeMenu())).subscribe()}set filterStack(Ut){this._filterStack=Ut,this.refreshFilterList()}get filterStack(){return this._filterStack}set currentSlotIndex(Ut){this.currentActiveSlotIndex=Ut}set setUseCase(Ut){this.isUsedForPhotoMode=Ut}get ppeFilterStack(){return this._ppeFilterStack}markFilterFetchFinalize(Ut){switch(Ut){case se.VL:this.deepDvcFinalized$.next(!0);break;case se.on:this.nisFinalized$.next(!0);break;case se.Ow:this.trueHdrFinalized$.next(!0);break;case se.dz:this.freestyleFilterFinalized$.next(!0)}}refreshFilterList(Ut){this.multiFilterInstanceAvailable||this.nvCameraService.getGlobalToggle().pipe((0,R.M)(qn=>{if(this.globalToggle=qn,(!this.isAppStartedReceived||!qn||this.isGameRestartRequestedfromCTA||!this.isPpeSupportedGame&&!this.isFreestyleSupportedGame||this.isAppStartedReceived&&!this.nvCameraReady&&!this.isPpeFiltersVisible)&&this.isNewFilterUI)return this.filterListRender=this.ppeService.staticFilterListStrings.filter(Wn=>!(this.isUsedForPhotoMode&&Wn.isPPEFilter)),void this.markFilterFetchFinalize(Ut);0!==this.currentActiveSlotIndex?(this.filterListRender=[],this.filterList.forEach(Wn=>{Wn.isVisible=!0,Wn.isVisible=!(this.filterStack.filters.findIndex(ci=>ci.id===Wn.id)>-1||this.ppeFilterStack.filters.findIndex(ci=>ci.id===Wn.id)>-1),Wn.isVisible&&(Wn.isPPEFilter?this.filterListRender.splice(0,0,Wn):this.filterListRender.push(Wn))})):this.filterListRender=this.ppeService.staticFilterListStrings,this.markFilterFetchFinalize(Ut)})).subscribe()}isFilterDropdownDisabled(){return!this.multiFilterInstanceAvailable&&this.filterStack.filters.length===this.filterList.length}constructPPEFilters(Ut,qn,Wn,ci,Tr){return{id:Ut,name:qn,isVisible:!1,isPPEFilter:!0,isFeatureEnabled:Wn,isExpanded:ci,errorCodesList:Tr}}constructDeepDvcFilterControls(Ut,qn){return{filterDetails:{filter:{status:Z.Or.Common.Nvcamera.AnselStatusEnum.ok},controls:[{id:0,displayName:this.translateService.instant("nvcamera.AiDigitalVibranceIntensity"),controlType:"slider",measureUnit:"%",dataType:Z.Or.Common.Nvcamera.DataType.int,minValue:[0],maxValue:[100],defaultValue:[50],currentValue:[Ut],stepSize:[1],uiStepSize:[1],uiMinValueV1:[0],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:0,uiMaxValue:100},{id:1,displayName:this.translateService.instant("nvcamera.AiDigitalVibranceBoost"),controlType:"slider",measureUnit:"%",dataType:Z.Or.Common.Nvcamera.DataType.int,minValue:[0],maxValue:[100],defaultValue:[25],currentValue:[qn],stepSize:[1],uiStepSize:[1],uiMinValueV1:[0],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:0,uiMaxValue:100}]}}}constructTrueHdrFilterControls(Ut,qn,Wn,ci,Tr,Jr){let oo=[];return oo=Jr>Tr?[{id:0,displayName:this.translateService.instant("nvcamera.AIHdrbrightness"),controlType:"slider",measureUnit:"%",dataType:Z.Or.Common.Nvcamera.DataType.int,minValue:[Tr],maxValue:[Jr],defaultValue:[Jr],currentValue:[Ut],stepSize:[5],uiStepSize:[5],uiMinValueV1:[Tr],uiMaxValueV1:[Jr],uiDisplayNameV1:[""],uiMinValue:Tr,uiMaxValue:Jr},{id:1,displayName:this.translateService.instant("nvcamera.AIHdrMiddleGreys"),controlType:"slider",measureUnit:"%",dataType:Z.Or.Common.Nvcamera.DataType.int,minValue:[this.rtxHdrMinMiddleGrey],maxValue:[100],defaultValue:[25],currentValue:[qn],stepSize:[1],uiStepSize:[1],uiMinValueV1:[this.rtxHdrMinMiddleGrey],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:this.rtxHdrMinMiddleGrey,uiMaxValue:100},{id:2,displayName:this.translateService.instant("nvcamera.AIHdrContrast"),controlType:"slider",measureUnit:"%",dataType:Z.Or.Common.Nvcamera.DataType.int,minValue:[-100],maxValue:[100],defaultValue:[0],currentValue:[Wn],stepSize:[1],uiStepSize:[1],uiMinValueV1:[-100],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:-100,uiMaxValue:100},{id:3,displayName:this.translateService.instant("nvcamera.AIHdrSaturation"),controlType:"slider",measureUnit:"%",dataType:Z.Or.Common.Nvcamera.DataType.int,minValue:[-100],maxValue:[100],defaultValue:[0],currentValue:[ci],stepSize:[1],uiStepSize:[1],uiMinValueV1:[-100],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:-100,uiMaxValue:100}]:[{id:0,displayName:this.translateService.instant("nvcamera.AIHdrMiddleGreys"),controlType:"slider",measureUnit:"%",dataType:Z.Or.Common.Nvcamera.DataType.int,minValue:[this.rtxHdrMinMiddleGrey],maxValue:[100],defaultValue:[25],currentValue:[qn],stepSize:[1],uiStepSize:[1],uiMinValueV1:[this.rtxHdrMinMiddleGrey],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:this.rtxHdrMinMiddleGrey,uiMaxValue:100},{id:1,displayName:this.translateService.instant("nvcamera.AIHdrContrast"),controlType:"slider",measureUnit:"%",dataType:Z.Or.Common.Nvcamera.DataType.int,minValue:[-100],maxValue:[100],defaultValue:[0],currentValue:[Wn],stepSize:[1],uiStepSize:[1],uiMinValueV1:[-100],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:-100,uiMaxValue:100},{id:2,displayName:this.translateService.instant("nvcamera.AIHdrSaturation"),controlType:"slider",measureUnit:"%",dataType:Z.Or.Common.Nvcamera.DataType.int,minValue:[-100],maxValue:[100],defaultValue:[0],currentValue:[ci],stepSize:[1],uiStepSize:[1],uiMinValueV1:[-100],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:-100,uiMaxValue:100}],{filterDetails:{filter:{status:Z.Or.Common.Nvcamera.AnselStatusEnum.ok},controls:oo}}}constructNis2FilterControls(Ut){return{filterDetails:{filter:{status:Z.Or.Common.Nvcamera.AnselStatusEnum.ok},controls:[{id:0,displayName:this.translateService.instant("nvcamera.NISSharpen"),controlType:"slider",measureUnit:"%",dataType:Z.Or.Common.Nvcamera.DataType.int,minValue:[0],maxValue:[100],defaultValue:[50],currentValue:[Ut],stepSize:[1],uiStepSize:[1],uiMinValueV1:[0],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:0,uiMaxValue:100}]}}}createAIDVCFilter(Ut,qn,Wn){const ci=this.constructPPEFilters(this.deepDvcId,this.translateService.instant("nvcamera.AiDigitalVibrance"),Ut.enabled,!1,qn);if(ci.isVisible=!ci.isFeatureEnabled,Ut&&Ut.enabled){const Tr=this.constructDeepDvcFilterControls(Ut.intensity,Ut.saturation),Jr=new i.dJT(ci.id,ci.name,!1,this.filterStack.filters.length,null,!0,!this.ppeService.isAIDVCSupported,qn,!1);this.ppeFilterStack.filters.push(Jr),this.nvCameraService.createFilterControls(Tr,Jr)}this.filterList.splice(0,0,ci),this.refreshFilterList(se.VL)}createAIHDRFilter(Ut,qn,Wn){const ci=this.constructPPEFilters(this.trueHdrId,this.translateService.instant("nvcamera.TrueHDRTitle"),Ut.enabled,!1,qn);if(ci.isVisible=!ci.isFeatureEnabled,this.trueHdrState&&this.trueHdrState.enabled){const Tr=this.constructTrueHdrFilterControls(Ut.peakBrightness,Ut.middleGrey,Ut.contrast,Ut.saturation,this.trueHDRPeakBrightnessMax<=this.trueHDRPeakBrightnessMin?this.trueHDRPeakBrightnessMax:this.trueHDRPeakBrightnessMin,this.trueHDRPeakBrightnessMax),Jr=new i.dJT(ci.id,ci.name,!1,this.filterStack.filters.length,null,!0,!this.ppeService.isAIHDRSupported,qn,!1);this.ppeFilterStack.filters.push(Jr),this.nvCameraService.createFilterControls(Tr,Jr)}this.filterList.splice(0,0,ci),this.refreshFilterList(se.Ow)}sendSessionEventTelemetry(){(0,V.yU)(this.freestyleFilterFinalized$,this.deepDvcFinalized$,this.trueHdrFinalized$,this.nisFinalized$).pipe((0,_.Q)(this.destroy$)).subscribe(Ut=>{this.telemetryIgo.sendSessionEvent(Ce.x4.SessionMenuLaunch,"",Date.now()-this.nvCameraService.pageLaunchStart,this.isUsedForPhotoMode?Ce.Uk.Ansel:Ce.Uk.Freestyle,this.nvCameraService.getFetchedSystemInfo()?.ddVersion,this.nvCameraService.pageLaunchMode,"",""),this.nvCameraService.pageLaunchStart=0})}createPPEFiltersList(){if(!this.isNewFilterUI)return;let Ut=[];this.ppeService.isAIDVCSupportedInChroma()?this.ppeService.getDeepDVCSystemSupport().pipe((0,B.ZZ)(ci=>(this.logger.info("DeepDvc system support ",ci),this.instantEnableSupported=ci.instantEnableSupported,ci.errorCode&&(Ut=this.ppeService.getAiDvcErrorCodeList(!0,ci.errorCode)),ci.errorCode!==se.O3.FEATURE_SUPPORT_ERROR_OK?this.ppeService.isAIDVCSupported=!1:(this.deepDvcFinalized$.next(!0),this.ppeService.isAIDVCSupported=!0),(0,T.of)(this.ppeService.isAIDVCSupported))),(0,g.p)(ci=>!!ci),(0,B.ZZ)(ci=>(this.logger.info("getDenyListData AIDVC response",ci),this.ppeService.getDeepDVCStateInfo())),(0,B.ZZ)(ci=>(this.logger.info("DeepDvc state received ",ci),this.aiDvcState=ci,this.aiDvcState.enabled&&this.currentActiveSlotIndex?this.ppeService.restoreAIDVC(this.aiDvcState):(0,T.of)(!1))),(0,B.ZZ)(ci=>(this.logger.info("Restore AIDVC State response",ci),this.aiDvcState.enabled?this.getRtxDvcRealTimeState():(0,T.of)(!1))),(0,B.ZZ)(ci=>(this.logger.info("AIDVC Game support ",ci),this.createAIDVCFilter(this.aiDvcState,Ut,ci),(0,T.of)(null))),(0,X.W)(ci=>{this.logger.info("Create DeepDVC Filter error : ",ci);const Tr=this.constructPPEFilters(this.deepDvcId,this.translateService.instant("nvcamera.AiDigitalVibrance"),!1,!1,Ut);return this.filterList.splice(0,0,Tr),this.refreshFilterList(se.VL),(0,T.of)(!1)}),(0,H.s)(1)).subscribe(ci=>{this.logger.info("Create DeepDVC Filter response",ci)}):this.deepDvcFinalized$.next(!0);let qn=0,Wn=[];this.ppeService.getRTXHDRSupportperDisplay().pipe((0,B.ZZ)(ci=>(this.logger.info("RtxHdr system support per display",ci),this.ppeService.isAIHDRSupported=ci.isSupported,qn=ci.errorCode,this.trueHDRPeakBrightnessMin=ci.minPeakBrightness,this.trueHDRPeakBrightnessMax=ci.maxPeakBrightness,this.ppeService.maxPeakBrightness=ci.maxPeakBrightness,this.ppeService.minPeakBrightness=ci.minPeakBrightness,Wn=this.ppeService.getErrorCodeList(ci.errorCode),this.ppeService.hardConstraintSupportFailure?(this.trueHdrFinalized$.next(!0),(0,T.of)(!1)):(0,T.of)(!0))),(0,g.p)(ci=>!!ci),(0,B.ZZ)(ci=>(this.logger.info("getDenyListData AIHDR response",ci),this.ppeService.getTrueHDRStateInfo())),(0,B.ZZ)(ci=>(this.logger.info("TrueHdr state received ",ci),this.trueHdrState=ci,this.trueHdrState.peakBrightness<this.trueHDRPeakBrightnessMin&&(this.trueHdrState.peakBrightness=this.trueHDRPeakBrightnessMin),this.trueHdrState.peakBrightness>this.trueHDRPeakBrightnessMax&&(this.trueHdrState.peakBrightness=this.trueHDRPeakBrightnessMax),this.trueHdrState.peakBrightness||(this.trueHdrState.peakBrightness=this.trueHDRPeakBrightnessMax),this.trueHdrState.supported&&this.trueHdrState.enabled&&this.currentActiveSlotIndex&&this.ppeService.restoreAIHDR(this.trueHdrState),this.trueHdrState.supported?(0,T.of)(!0):(this.ppeService.getErrorCodeList(ci.supportError),this.ppeService.hardConstraintSupportFailure?(this.trueHdrFinalized$.next(!0),(0,T.of)(!1)):(0,T.of)(!0)))),(0,g.p)(ci=>!!ci),(0,B.ZZ)(ci=>(this.logger.info("Restore AIHDR State response",ci),this.ppeService.trueHdrStateAtAppLaunch?.enabled?(this.logger.info("AIHDR was enabled at launch"),this.ppeService.getTrueHDRRealTimeStateInfo()):(this.logger.info("AIHDR was disabled at launch"),(0,T.of)(!1)))),(0,B.ZZ)(ci=>(this.logger.info("TrueHdr Game support ",ci),this.trueHdrGameEnableState=!!ci&&ci.enabled,this.ppeService.rtxHdrGameEnableState=this.trueHdrGameEnableState,this.aiHdrRealTimeErrorStringList=this.getAiHdrRealTimeErrorString(ci.errorCode),this.createAIHDRFilter(this.trueHdrState,Wn,ci),(0,T.of)(null))),(0,X.W)(ci=>(this.logger.info("Create trueHDR Filter error : ",ci),this.trueHdrFinalized$.next(!0),(0,T.of)(!1))),(0,H.s)(1)).subscribe(),this.ppeService.getNIS2SystemSupport().pipe((0,B.ZZ)(ci=>(this.logger.info("NIS2 system support ",ci),ci.supported?(this.ppeService.isNIS2Supported=!0,(0,T.of)(!0)):(this.ppeService.isNIS2Supported=!1,this.nisFinalized$.next(!0),(0,T.of)(!1)))),(0,g.p)(ci=>!!ci),(0,B.ZZ)(()=>this.ppeService.currentGameInfo.cmsId?(0,T.of)(!0):(this.nisFinalized$.next(!0),(0,T.of)(!1))),(0,g.p)(ci=>!!ci),(0,B.ZZ)(ci=>(this.logger.info("get supported game response",ci),this.ppeService.getNIS2StateInfo())),(0,B.ZZ)(ci=>{this.logger.info("NIS2 state received ",ci);const Tr=this.constructPPEFilters(this.nisId,this.translateService.instant("nvcamera.NIS"),ci.enabled,!1,[]);if(ci.enabled){Tr.isVisible=!1;const Jr=this.constructNis2FilterControls(ci.sharpen),oo=new i.dJT(Tr.id,Tr.name,!1,this.filterStack.filters.length,null,!0);this.ppeFilterStack.filters.push(oo),this.nvCameraService.createFilterControls(Jr,oo),this.filterList.splice(0,0,Tr),this.refreshFilterList(se.on)}else this.nisFinalized$.next(!0);return(0,T.of)(null)}),(0,X.W)(ci=>(this.nisFinalized$.next(!0),this.logger.info("Create NIS2 Filter error : ",ci),(0,T.of)(!1))),(0,H.s)(1)).subscribe()}onPPEFilterApplied(Ut){let qn;switch(Ut.id){case this.deepDvcId:qn=this.ppeService.getDeepDVCStateInfo().pipe((0,J.T)(ci=>(this.logger.info("DeepDvc state received ",ci),this.constructDeepDvcFilterControls(ci.intensity,ci.saturation))));break;case this.trueHdrId:qn=this.ppeService.getTrueHDRStateInfo().pipe((0,J.T)(ci=>(this.logger.info("TrueHdr state received ",ci),ci.peakBrightness<this.trueHDRPeakBrightnessMin&&(ci.peakBrightness=this.trueHDRPeakBrightnessMin),ci.peakBrightness>this.trueHDRPeakBrightnessMax&&(ci.peakBrightness=this.trueHDRPeakBrightnessMax),ci.peakBrightness||(ci.peakBrightness=this.trueHDRPeakBrightnessMax),this.constructTrueHdrFilterControls(ci.peakBrightness,ci.middleGrey,ci.contrast,ci.saturation,this.trueHDRPeakBrightnessMax<=this.trueHDRPeakBrightnessMin?this.trueHDRPeakBrightnessMax:this.trueHDRPeakBrightnessMin,this.trueHDRPeakBrightnessMax))));break;case this.nisId:qn=this.ppeService.getNIS2StateInfo().pipe((0,J.T)(ci=>(this.logger.info("NIS2 state received ",ci),this.constructNis2FilterControls(ci.sharpen))),(0,X.W)(ci=>(this.logger.error("on getNIS2StateInfo Error ",ci),(0,T.of)(ci))))}if(!qn)return void this.logger.error("Should not be here, filter:",Ut);const Wn=new i.dJT(Ut.id,Ut.name,!1,this.filterStack.filters.length,null,!0,Ut.id===this.trueHdrId&&!this.ppeService.isAIHDRSupported,Ut.errorCodesList,!1);qn.subscribe(ci=>{this.nvCameraService.createFilterControls(ci,Wn),this.ppeService.runTimeChangeControlValue(Wn).subscribe(Tr=>{if(Tr){if(!0===Tr||0===Tr._return_code){this.ppeFilterStack.filters.push(Wn);const Jr=this.filterList.indexOf(Ut);Jr>-1&&(this.filterList[Jr].isVisible=!1,this.filterList[Jr].isFeatureEnabled=!0),Ut.id===this.deepDvcId&&(this.ppeService.isAIDVCAddSuccess=!0,this.nvCameraService.filterAddedTelemetry(se.Qu.RTX_DVC),this.nvCameraService.updatePpeState(this.deepDvcId,!0),this.getRtxDvcRealTimeState().subscribe()),Ut.id===this.trueHdrId&&(this.ppeService.isAIHDRAddSuccess=!0,this.nvCameraService.filterAddedTelemetry(se.Qu.RTX_HDR),this.nvCameraService.updatePpeState(this.trueHdrId,!0),this.ppeService.getTrueHDRRealTimeStateInfo().subscribe(oo=>{this.logger.info("TrueHdr Game support ",oo),this.trueHdrGameEnableState=!!oo&&oo.enabled,this.ppeService.rtxHdrGameEnableState=this.trueHdrGameEnableState,this.aiHdrRealTimeErrorStringList=this.getAiHdrRealTimeErrorString(oo.errorCode)})),Ut.id===this.nisId&&this.nvCameraService.updatePpeState(this.nisId,!0)}this.logger.info("PPE filter added successfully")}}),(0,X.W)(Tr=>(this.logger.error("PPE filter addition failed",Tr),Tr))})}removeFilterFromAvailable(Ut){const qn=this.filterListRender.findIndex(Wn=>Wn.name===Ut.name);qn>-1&&this.filterListRender.splice(qn,1)}onFilterAdded(Ut){if(this.logger.info("onFilterAdded: ",Ut.name),this.removeFilterFromAvailable(Ut),Ut.isPPEFilter){const Wn=this.filterList.indexOf(Ut);return Wn>-1&&(this.filterList[Wn].isFeatureEnabled=!0),this.onPPEFilterApplied(Ut)}const qn=new O.B7;this.disableUpDownButton(i._Fy.Add),this.nvCameraService.setFilter(!0,this.filterStack.filters.length,Ut.id,qn).subscribe(Wn=>{const ci=new i.dJT(Ut.id,Ut.name,!1,this.filterStack.filters.length);if(this.filterStack.filters.push(ci),!this.multiFilterInstanceAvailable){const Tr=this.filterList.indexOf(Ut);Tr>-1&&(this.filterList[Tr].isVisible=!1)}this.nvCameraService.createFilterControls(Wn,ci),qn.next(!0),qn.complete(),this.logger.info("filter applied succesfully ",Ut.name)},Wn=>{this.logger.error("failed to apply filter with error: ",Wn),qn.next(!1),qn.complete(),this.nvCameraService.showSnack(i.BO6.UpdateStyleFail)})}onFilterClicked(Ut,qn,Wn){if(Ut.isPPEFilter)Ut.id!==se.on&&(Ut.isExpanded=!Ut.isExpanded),this.ppeFilterStack.filterClicked(Ut,qn);else{Ut.isExpanded=!Ut.isExpanded,this.filterStack.filterClicked(Ut,qn);const ci=this.filterStack.getIndicesOfSelection();this.disableUpDownButton(i._Fy.Clicked,ci)}}onFilterClickedNvApp(Ut,qn,Wn){Ut.isPPEFilter?(Ut.id!==se.on&&(Ut.isExpanded=!Ut.isExpanded),this.ppeFilterStack.filterClicked(Ut,!qn)):(Ut.isExpanded=!Ut.isExpanded,this.filterStack.filterClicked(Ut,!qn))}onFilterTitleClicked(Ut,qn){if(qn.stopPropagation(),Ut.isPPEFilter)Ut.id===se.on?(this.ppeFilterStack.filterClicked(Ut,!1),Ut.isExpanded=!Ut.isExpanded):this.ppeFilterStack.filterClicked(Ut,!Ut.isSelected);else{this.filterStack.filterClicked(Ut,!Ut.isSelected);const Wn=this.filterStack.getIndicesOfSelection();this.disableUpDownButton(i._Fy.Clicked,Wn)}}onPPEFilterClicked(Ut){Ut.isExpanded=!Ut.isExpanded}onPPEFilterTitleClicked(Ut){Ut.isExpanded=!Ut.isExpanded,this.onPPEFilterClicked(Ut)}disableUpDownButton(Ut,qn){let Wn=0;switch(qn&&(Wn=qn.length),Ut){case i._Fy.MoveUp:this.filterStack.downButtonDisabled=!1;for(let ci=0;ci<Wn;ci++)if(this.filterStack.filters&&qn[ci]===this.filterStack.filters.length-1){this.filterStack.upButtonDisabled=!0;break}break;case i._Fy.MoveDown:this.filterStack.upButtonDisabled=!1;for(let ci=0;ci<Wn;ci++)if(0===qn[ci]){this.filterStack.downButtonDisabled=!0;break}break;case i._Fy.Add:this.filterStack.upButtonDisabled=!1;break;case i._Fy.Clicked:case i._Fy.None:Wn>0&&(this.filterStack.downButtonDisabled=0===qn[0],this.filterStack.filters&&(this.filterStack.upButtonDisabled=qn[Wn-1]===this.filterStack.filters.length-1))}}onBooleanToggled(Ut,qn){this.cdr.detectChanges(),Ut.currentValueArray=[Ut.currentValue],this.nvCameraService.setFilterAttribute(qn.id,qn.stackIdx,Ut.id,i.xdE.boolean,Ut.dataType,Ut.currentValueArray).subscribe(ci=>{this.logger.info("attribute change successful = "+ci)},ci=>{this.logger.error("attribute change failed = "+JSON.stringify(ci))})}updateFilters(Ut,qn){if(this.disableUpDownButton(qn,Array.from(Ut)),Ut.size>0){const Wn=[];Ut.forEach(ci=>{Wn.push(this.filterStack.filters[ci])}),this.nvCameraService.applyFilters(Wn,qn).subscribe(ci=>{this.logger.info("Filter sequence changed successfully")},ci=>{this.logger.error("Failed updating filter sequence, error: ",ci),this.nvCameraService.showSnack(i.BO6.UpdateStyleFail)})}}moveSelectedFiltersUp(){const Ut=this.filterStack.moveSelectionUp();this.updateFilters(Ut,i._Fy.MoveUp)}moveSelectedFiltersDown(){const Ut=this.filterStack.moveSelectionDown();this.updateFilters(Ut,i._Fy.MoveDown)}deletePPEFIlters(){const Ut=this.ppeFilterStack.getIndicesOfSelection();return 0===Ut.length?(0,T.of)(!1):(0,N.H)(Ut).pipe((0,B.ZZ)(qn=>this.ppeFilterStack.filters[qn].id===se.VL?this.ppeService.disableAIDVC(this.currentActiveSlotIndex):this.ppeFilterStack.filters[qn].id===se.Ow?this.ppeService.disableAIHDR(this.currentActiveSlotIndex):(0,T.of)(void 0)),(0,re.o)(1),(0,R.M)(()=>{this.ppeFilterStack.deleteSelection()}),(0,X.W)(qn=>(this.logger.error("filter deletion failed",qn),(0,T.of)(!1))))}deleteNvCameraFilters(){const Ut=this.filterStack.deleteSelection();let qn=0;return this.filterStack.filters.forEach(()=>{this.filterStack.filters[qn].stackIdx=qn++}),0===Ut.length?(0,T.of)(Z.Or.Common.Nvcamera.AnselStatusEnum.ok):(0,N.H)(Ut).pipe((0,ie.H)(Wn=>this.nvCameraService.removeFilter(Wn)),(0,re.o)(1),(0,X.W)(Wn=>(this.logger.error("filter deletion failed",Wn),(0,T.of)(Z.Or.Common.Nvcamera.AnselStatusEnum.failed))))}deleteSelectedFilters(){let Ut="confirmation.confirmFilterDelete";const qn=this.filterStack.getIndicesOfSelection().length+this.ppeFilterStack.getIndicesOfSelection().length,Wn=qn.toString();if(0===qn)return;qn>1&&(Ut="confirmation.confirmFiltersDelete");let ci=!1;const Tr={next:Jr=>{Jr===i.SFy.Action1?ci=!1:Jr===i.SFy.Action2&&(ci=!0)},error:Jr=>{this.logger.error("failed in showAlert",Jr),this.nvCameraService.closeAlert()},complete:()=>{if(this.nvCameraService.closeAlert(),ci){if(!this.multiFilterInstanceAvailable){const oo=[].concat(this.filterStack.getSelectedFilters(),this.ppeFilterStack.getSelectedFilters());oo.reverse(),oo.forEach(Qo=>{const fo={id:Qo.id,name:Qo.name};this.logger.error(" : selectedFilters filterToAdd : ",fo);const Xr=this.filterList.findIndex(Go=>Go.id===fo.id);Xr>-1&&(this.filterList[Xr].isVisible=!0,Qo.isPPEFilter?(this.filterListRender.splice(0,0,this.filterList[Xr]),Qo.id===this.deepDvcId&&this.ppeService.deepDvcParametersValue&&(this.ppeService.deepDvcParametersValue.enabled=!1),Qo.id===this.trueHdrId&&this.ppeService.trueHdrParametersValue&&(this.ppeService.trueHdrParametersValue.enabled=!1)):this.filterListRender.push(this.filterList[Xr]))})}const Jr=(0,L.p)([this.deletePPEFIlters(),this.deleteNvCameraFilters()]).pipe((0,R.M)(()=>{this.refreshFilterList(),this.nvCameraService.showSnack(i.BO6.RemoveFilterSuccess,Wn)}));this.igoConfig.GFNCefClient?this.nvCameraService.customizeAndShowAlert(Jr,i._Fy.Delete):Jr.subscribe()}}};this.igoConfig.GFNCefClient||1!==qn?this.nvCameraService.showAlert("confirmation.remove",Ut,Wn,"confirmation.NotRightNow","confirmation.remove",!1,void 0,void 0,this.destroy$,Tr):(this.logger.info("Only single filter selected"),(0,T.of)(i.SFy.Action2).subscribe(Tr))}pullDownOrRadioButtonChanged(Ut,qn,Wn){qn.currentValueArray[0]=Ut,this.nvCameraService.setFilterAttribute(Wn.id,Wn.stackIdx,qn.id,i.xdE[qn.controlType],qn.dataType,qn.currentValueArray).subscribe(ci=>{this.logger.info("value change successful for "+qn.controlType+"="+ci)},ci=>{this.logger.error("value change failed for "+qn.controlType+"="+JSON.stringify(ci))})}ppeGameRelaunchInfo(Ut){if(Ut.id===this.deepDvcId&&this.ppeService.deepDvcStateAtAppLaunch){let qn;return qn=this.instantEnableSupported?!this.aiDvcGameEnableState:!this.ppeService.deepDvcStateAtAppLaunch.enabled&&this.ppeService.isAIDVCAddSuccess,qn}if(Ut.id===this.trueHdrId&&this.ppeService.trueHdrStateAtAppLaunch){const qn=!this.ppeService.trueHdrStateAtAppLaunch.enabled&&this.ppeService.isAIHDRAddSuccess||!this.ppeService.isAIHDRSupported||!this.ppeService.rtxHdrGameEnableState;return qn&&this.oscDisplayService.setRtxHdrStatus(!1),qn}}disablePeakBrightnessSlider(Ut){return Ut.id===this.trueHdrId&&this.trueHDRPeakBrightnessMax<=this.trueHDRPeakBrightnessMin}getListOfErrorStrings(Ut){Ut.forEach(Wn=>{(void 0).push(this.getPpeErrorString(Wn.errorId))})}getPpeErrorString(Ut){return Ut>=1?(this.oscDisplayService.setRtxHdrStatus(!1),se.ag[Ut]):""}getAidvcRealTimeErrorString(Ut,qn){const Wn=this.ppeService.getAiDvcErrorCodeList(Ut,qn),ci=[];return Wn.forEach(Tr=>{Tr&&ci.push(se.lR[Tr.errorId])}),ci}getAiHdrRealTimeErrorString(Ut){const qn=this.ppeService.getErrorCodeList(Ut),Wn=[];return qn.forEach(ci=>{ci&&ci.errorId&&Wn.push(se.sg[ci.errorId])}),Wn}getRtxDvcRealTimeState(){const Ut=Date.now();return this.ppeService.getAIDVCRealTimeStateInfo().pipe((0,J.T)(qn=>{if(this.logger.info("RTXDVC gameSupport response : ",qn),this.aiDvcGameEnableState=!!qn&&qn.enabled,this.ppeService.rtxDvcGameEnableState=this.aiDvcGameEnableState,this.rtxDvcRealTimeErrorCode=qn?qn.errorCode:0,this.aiDvcRealTimeErrorStringList=this.getAidvcRealTimeErrorString(!1,qn.errorCode),Date.now()-Ut<this.realtimeRtxDvcStatePollingDuration){if(!qn.enabled&&!qn.errorCode)throw new Error("gameSupport");return qn}return!0}),(0,ve.l)(qn=>qn.pipe((0,R.M)(()=>{this.logger.info("Retrying getAIDVCRealTimeStateInfo")}),(0,ue.o)(()=>(0,E.O)(this.realtimeRtxDvcStatePollingInterval)))))}getRtxHdrStateAtAppLaunch(){return!!this.aiHdrStateAtAppLaunch&&this.aiHdrStateAtAppLaunch.enabled}ngOnDestroy(){this.logger.info("ngOnDestroy"),this.ppeService.isPpeFeaturesEnabled&&(this.ppeService.isAIDVCSupported&&(this.ppeService.saveAIDVCState(),this.aiDvcGameEnableState=!1,this.instantEnableSupported=!1),this.trueHdrGameEnableState=!1,this.ppeService.saveAIHDRState(),this.ppeService.isNIS2Supported&&this.ppeService.saveNIS2State()),this.destroy$.next(!0),this.destroy$.unsubscribe()}static{this.\u0275fac=function(qn){return new(qn||Vn)(r.rXU(i.h8x),r.rXU(S.J6),r.rXU(r.gRc),r.rXU(i.k$F),r.rXU(a.c$),r.rXU(i.Vlf),r.rXU(i.Bqk),r.rXU(Be.S))}}static{this.\u0275cmp=r.VBU({type:Vn,selectors:[["app-filter-section"]],viewQuery:function(qn,Wn){if(1&qn&&r.GBs(Se.Cp,5),2&qn){let ci;r.mGM(ci=r.lsd())&&(Wn.menuTrigger=ci.first)}},inputs:{filterStack:"filterStack",currentSlotIndex:"currentSlotIndex",setUseCase:"setUseCase"},decls:8,vars:6,consts:[["menu","matMenu"],["fxLayout","column",1,"filter-section"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","class","active-filter-header-padding",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","class","section-padding font-body2 font-color-tertiary side-padding",4,"ngIf"],["class","filter-stack-section",4,"ngIf"],["fxLayout","column",4,"ngIf"],[1,"font-body1","font-color-tertiary","side-padding"],["fxLayout","row","fxLayoutAlign","start center",1,"active-filter-header-padding"],["fxFlex","grow",4,"ngIf"],["fxFlex","none",4,"ngIf"],["fxFlex","grow"],["class","font-body2 font-color-tertiary left-side-padding",4,"ngIf"],[1,"font-body2","font-color-tertiary","left-side-padding"],["fxFlex","none","svgIcon","arrow_up","tooltip","tooltips.MoveUp",1,"filter-button-dimensions",3,"clicked","disabled"],["fxFlex","none","svgIcon","arrow_down","tooltip","tooltips.MoveDown",1,"filter-button-dimensions",3,"clicked","disabled"],["fxFlex","none","svgIcon","delete_forever","tooltip","tooltips.Remove",1,"filter-button-dimensions",3,"clicked"],["fxFlex","none","svgIcon","delete_forever","tooltip","tooltips.Remove",1,"filter-button-dimensions","nvapp-right-side-padding-delete",3,"clicked","disabled"],["fxFlex","none"],["xPosition","before","yPosition","below","overlapTrigger","false",1,"nv-igo"],[1,"filtermenu"],[4,"ngFor","ngForOf"],["svgIcon","add","tooltip","tooltips.AddFilter",1,"filter-button-dimensions","right-side-padding-add",3,"disabled"],["svgIcon","add","tooltip","tooltips.AddFilter",1,"filter-button-dimensions","right-side-padding-add",3,"matMenuTriggerFor"],["mat-menu-item","","class","nv-dropdown-menu hig-button-overlay","fxLayout","row","fxLayoutAlign","start center",3,"click",4,"ngIf"],["mat-menu-item","","fxLayout","row","fxLayoutAlign","start center",1,"nv-dropdown-menu","hig-button-overlay",3,"click"],[1,"font-body1","filter-dropdown-button"],["fxLayout","row","fxLayoutAlign","start center",1,"section-padding","font-body2","font-color-tertiary","side-padding"],["mat-font-set","material-icons",1,"nv-custom-icons","icon-alert-circle_reg","icon-padding"],[1,"filter-stack-section"],["multi","",1,"filter-stack"],["hideToggle","true",3,"expanded","active",4,"ngFor","ngForOf"],["hideToggle","true",3,"expanded"],["collapsedHeight","48px","expandedHeight","48px"],["fxLayout","row","fxLayoutAlign","start center","fxFlexFill","",1,"filter-item","selectable","left-side-padding",3,"click"],["fxLayout","row","fxFlex","",1,"font-body1","font-color-primary"],["fxLayout","column","fxLayoutAlign","start center"],["fxFlex","none","class","nv-item-icon complex-button chevron-down-padding font-body1 font-color-primary","fxLayout","row","fxLayoutAlign","center center",3,"click",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start start",1,"font-body1","side-padding","bottom-padding"],["style","width: 100%;",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxFlex","none","fxLayout","row","fxLayoutAlign","center center",1,"nv-item-icon","complex-button","chevron-down-padding","font-body1","font-color-primary",3,"click"],["svgIcon","chevron_down",1,"accordion-chevron"],[2,"width","100%"],["fxLayout","row","class","section-padding",4,"ngIf"],["fxLayout","column","fxLayoutGap","8px",4,"ngIf"],["fxFlex","",3,"control","filter","disabled"],["fxLayout","column"],["fxLayout","row",1,"section-padding"],["fxFlex","grow",1,"font-color-primary"],["fxFlex","none","class","subcontrols","fxLayoutGap","12px",4,"ngFor","ngForOf"],["fxFlex","none","fxLayoutGap","12px",1,"subcontrols"],[3,"ngModelChange","change","ngModel"],["fxLayout","column","fxLayoutGap","8px"],["fxLayout","row"],["fxLayout","row","fxFlex","none"],["fxFlex","",3,"selectionChanged","maxHeight","selection","disabled","input"],[3,"changedSelection","selection","disabled","input"],["fxFlex","",3,"control","filter"],["fxLayout","row","fxLayoutAlign","center center"],["mat-font-set","material-icons",1,"nv-custom-icons","icon-alert-circle_reg","icon-padding","font-color-tertiary"],["fxLayout","column",1,"font-body2","font-color-primary"],["fxLayoutAlign","start center",1,"section-padding"],[1,"font-sub2","font-color-tertiary"],["class","font-body1 filter-item font-color-tertiary",3,"side-padding",4,"ngIf"],["urlIcon","add",3,"titleString","clicked",4,"ngIf"],[1,"font-body1","filter-item","font-color-tertiary"],["urlIcon","add",3,"clicked","titleString"]],template:function(qn,Wn){1&qn&&(r.j41(0,"div",1),r.DNE(1,Qe,4,3,"div",2)(2,Xt,5,4,"div",3)(3,Ht,6,3,"div",4)(4,Pt,3,3,"div",5)(5,jt,1,0,"nv-divider",2),r.j41(6,"div"),r.DNE(7,pr,6,9,"div",6),r.k0s()()),2&qn&&(r.R7$(),r.Y8G("ngIf",Wn.isAppStartedReceived&&0===Wn.currentActiveSlotIndex&&!Wn.disabledDueToGlobalToggle),r.R7$(),r.Y8G("ngIf",0!==Wn.currentActiveSlotIndex),r.R7$(),r.Y8G("ngIf",0!==Wn.currentActiveSlotIndex&&Wn.isAppStartedReceived&&(Wn.nvCameraReady||Wn.isPpeSupportedGame&&Wn.isPpeFiltersVisible)&&Wn.isNewFilterUI&&Wn.filterStack.filters.length+Wn.ppeFilterStack.filters.length===0&&!Wn.disabledDueToGlobalToggle),r.R7$(),r.Y8G("ngIf",0!==Wn.currentActiveSlotIndex&&Wn.isAppStartedReceived&&!Wn.disabledDueToGlobalToggle),r.R7$(),r.Y8G("ngIf",Wn.isNewFilterUI),r.R7$(2),r.Y8G("ngIf",Wn.isNewFilterUI))},dependencies:[c.$,Xe.T,me,ne.j,m.I,n.Sq,n.bT,D.DJ,D.BO,D.sA,D.G2,D.UI,He.BC,He.vS,G.pI,G.gy,G.fS,W.An,$.P2,le.BS,le.GK,le.Z2,Q.tG,Pe.tH,At,Le,a.D9],styles:['@charset "UTF-8";.filter-section[_ngcontent-%COMP%]{width:512px;min-width:512px;max-width:512px}.filtermenu[_ngcontent-%COMP%]{max-height:494px;width:280px;overflow:auto}.isLtr[_nghost-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.nv-dropdown-menu[_ngcontent-%COMP%]{box-sizing:border-box;margin:0;width:100%;height:36px}.nv-dropdown-menu[_ngcontent-%COMP%]:first-of-type{margin-top:8px}.nv-dropdown-menu[_ngcontent-%COMP%] .span[_ngcontent-%COMP%]{width:194px}.filter-dropdown-button[_ngcontent-%COMP%]{padding:0 16px}.filter-title[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.accordion-body[_ngcontent-%COMP%]{padding:16px 24px}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%] .mat-expansion-panel-header[_ngcontent-%COMP%]{background-color:transparent}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%] .mat-expansion-panel-header[disabled][_ngcontent-%COMP%]{opacity:.38}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%] .mat-expansion-panel-header[_ngcontent-%COMP%]:not(:disabled):hover{background-color:var(--filter-section-expansion-panel-header-hover-bg-color)}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%] .mat-expansion-panel-header[_ngcontent-%COMP%]:not(:disabled):focus{background-color:var(--filter-section-expansion-panel-header-focus-bg-color);transition:background-color .75s ease}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%] .mat-expansion-panel-header[_ngcontent-%COMP%]:not(:disabled):active{background-color:var(--filter-section-expansion-panel-header-active-bg-color)}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel.active[_ngcontent-%COMP%]{background-color:var(--filter-section-expansion-panel-active-bg-color)}.filter-stack[_ngcontent-%COMP%] .mat-expansion-panel-spacing[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.chevron-down-padding[_ngcontent-%COMP%]{height:24px;width:24px}.isLtr[_nghost-%COMP%] .subcontrols[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .subcontrols[_ngcontent-%COMP%]{padding:10px 0 0 20px}html[dir=ltr][_ngcontent-%COMP%] .subcontrols[_ngcontent-%COMP%]{--dummy: 0;padding:10px 0 0 20px}.isRtl[_nghost-%COMP%] .subcontrols[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .subcontrols[_ngcontent-%COMP%]{padding:10px 20px 0 0}html[dir=rtl][_ngcontent-%COMP%] .subcontrols[_ngcontent-%COMP%]{--dummy: 0;padding:10px 20px 0 0}.filter-item[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.filter-item.selectable[_ngcontent-%COMP%]:hover{background-color:var(--filter-section-filter-item-selectable-hover-bg-color)}.active-filter-header-padding[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.isLtr[_nghost-%COMP%] .rightmost-button-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rightmost-button-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .rightmost-button-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .rightmost-button-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rightmost-button-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .rightmost-button-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.filter-button-dimensions[_ngcontent-%COMP%]{width:24px;height:24px}.isLtr[_nghost-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.isLtr[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.bottom-padding[_ngcontent-%COMP%]{padding-bottom:12px}.isLtr[_nghost-%COMP%] .left-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .left-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .left-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .left-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .left-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .left-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .left-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .left-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .left-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .left-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .left-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .left-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .right-side-padding-add[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .right-side-padding-add[_ngcontent-%COMP%]{margin-right:20px}html[dir=ltr][_ngcontent-%COMP%] .right-side-padding-add[_ngcontent-%COMP%]{--dummy4: 0;margin-right:20px}.isRtl[_nghost-%COMP%] .right-side-padding-add[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .right-side-padding-add[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl][_ngcontent-%COMP%] .right-side-padding-add[_ngcontent-%COMP%]{--dummy4: 0;margin-left:20px}.isLtr[_nghost-%COMP%] .right-side-padding-add[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .right-side-padding-add[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .right-side-padding-add[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .right-side-padding-add[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .right-side-padding-add[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .right-side-padding-add[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr.nvapp-igo-view[_nghost-%COMP%], .isLtr.nvapp-igo-view [_nghost-%COMP%], .isLtr .nvapp-igo-view[_nghost-%COMP%], .isLtr .nvapp-igo-view [_nghost-%COMP%], .nvapp-igo-view .isLtr[_nghost-%COMP%], .nvapp-igo-view .isLtr [_nghost-%COMP%]{padding-right:0}html[dir=ltr] .nvapp-igo-view[_nghost-%COMP%], .nvapp-igo-view [_nghost-%COMP%]{--dummy2: 0;padding-right:0}.isRtl.nvapp-igo-view[_nghost-%COMP%], .isRtl.nvapp-igo-view [_nghost-%COMP%], .isRtl .nvapp-igo-view[_nghost-%COMP%], .isRtl .nvapp-igo-view [_nghost-%COMP%], .nvapp-igo-view .isRtl[_nghost-%COMP%], .nvapp-igo-view .isRtl [_nghost-%COMP%]{padding-left:0}html[dir=rtl] .nvapp-igo-view[_nghost-%COMP%], .nvapp-igo-view [_nghost-%COMP%]{--dummy2: 0;padding-left:0}.isLtr.nvapp-igo-view[_nghost-%COMP%], .isLtr.nvapp-igo-view [_nghost-%COMP%], .isLtr .nvapp-igo-view[_nghost-%COMP%], .isLtr .nvapp-igo-view [_nghost-%COMP%], .nvapp-igo-view .isLtr[_nghost-%COMP%], .nvapp-igo-view .isLtr [_nghost-%COMP%]{padding-left:0}html[dir=ltr] .nvapp-igo-view[_nghost-%COMP%], .nvapp-igo-view [_nghost-%COMP%]{--dummy1: 0;padding-left:0}.isRtl.nvapp-igo-view[_nghost-%COMP%], .isRtl.nvapp-igo-view [_nghost-%COMP%], .isRtl .nvapp-igo-view[_nghost-%COMP%], .isRtl .nvapp-igo-view [_nghost-%COMP%], .nvapp-igo-view .isRtl[_nghost-%COMP%], .nvapp-igo-view .isRtl [_nghost-%COMP%]{padding-right:0}html[dir=rtl] .nvapp-igo-view[_nghost-%COMP%], .nvapp-igo-view [_nghost-%COMP%]{--dummy1: 0;padding-right:0}.isLtr.nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isLtr.nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isLtr .nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isLtr .nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isLtr[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isLtr [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr] .nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl.nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isRtl.nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isRtl .nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isRtl .nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isRtl[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isRtl [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl] .nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr.nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isLtr.nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isLtr .nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isLtr .nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isLtr[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isLtr [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr] .nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl.nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isRtl.nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isRtl .nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isRtl .nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isRtl[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isRtl [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl] .nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr.nvapp-igo-view[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .isLtr.nvapp-igo-view [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .isLtr .nvapp-igo-view[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .isLtr .nvapp-igo-view [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isLtr[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isLtr [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr] .nvapp-igo-view[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl.nvapp-igo-view[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .isRtl.nvapp-igo-view [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .isRtl .nvapp-igo-view[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .isRtl .nvapp-igo-view [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isRtl[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isRtl [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl] .nvapp-igo-view[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr.nvapp-igo-view[_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .isLtr.nvapp-igo-view [_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .isLtr .nvapp-igo-view[_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .isLtr .nvapp-igo-view [_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isLtr[_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isLtr [_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr] .nvapp-igo-view[_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl.nvapp-igo-view[_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .isRtl.nvapp-igo-view [_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .isRtl .nvapp-igo-view[_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .isRtl .nvapp-igo-view [_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isRtl[_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isRtl [_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl] .nvapp-igo-view[_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .icon-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .icon-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%]{padding-left:0}html[dir=ltr][_ngcontent-%COMP%] .icon-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:0}.isRtl[_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%]{padding-right:0}html[dir=rtl][_ngcontent-%COMP%] .icon-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:0}.icon-alert-circle_reg[_ngcontent-%COMP%]{line-height:inherit;font-style:normal}.isLtr[_nghost-%COMP%] .error-list[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-list[_ngcontent-%COMP%]{margin-left:20px}html[dir=ltr][_ngcontent-%COMP%] .error-list[_ngcontent-%COMP%]{--dummy3: 0;margin-left:20px}.isRtl[_nghost-%COMP%] .error-list[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-list[_ngcontent-%COMP%]{margin-right:20px}html[dir=rtl][_ngcontent-%COMP%] .error-list[_ngcontent-%COMP%]{--dummy3: 0;margin-right:20px}ul[_ngcontent-%COMP%]{list-style-image:none;padding:0;margin:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:"\\2022";--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 14px;--font-body-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0;display:inline-block;width:4px}.tv-view[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before, .tv-view[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before, .tv-view [_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{--font-body-size: 28px;--font-body-line-height: 40px;--font-body-color: rgba(255, 255, 255, .85)}.isLtr[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before, .isLtr [_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before, .isRtl [_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{--dummy1: 0;padding-right:8px}.isLtr[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before, .isLtr [_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{padding-right:8px}html[dir=ltr][_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{--dummy2: 0;padding-right:8px}.isRtl[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before, .isRtl [_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{padding-left:8px}html[dir=rtl][_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{--dummy2: 0;padding-left:8px}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex}.isLtr[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{text-align:left}html[dir=ltr][_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{--dummy0: 0;text-align:left}.isRtl[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{text-align:right}html[dir=rtl][_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{--dummy0: 0;text-align:right}.filterdisplayname[disabled][_ngcontent-%COMP%]{opacity:.08}.section-padding[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}']})}}return Vn})();const Cn=()=>({active:!1,"preview-panel__preview-pane-basic":!0}),pn=(Vn,rr,Ut)=>({active:Vn,"preview-panel__preview-pane-basic":rr,"preview-panel__preview-pane":Ut});function ti(Vn,rr){if(1&Vn&&r.nrm(0,"div",9),2&Vn){const Ut=r.XpG(2);r.Y8G("ngClass",r.lJ4(2,Cn))("tabindex",Ut.restartGame||!Ut.isAppStartedReceived?-1:0)}}function pi(Vn,rr){if(1&Vn&&(r.j41(0,"div"),r.DNE(1,ti,1,3,"div",8),r.k0s()),2&Vn){const Ut=r.XpG();r.R7$(),r.Y8G("ngForOf",Ut.slots)}}function cn(Vn,rr){if(1&Vn&&r.nrm(0,"div",9),2&Vn){const Ut=r.XpG(2);r.Y8G("ngClass",r.lJ4(2,Cn))("tabindex",Ut.restartGame||!Ut.isPpeSupportedGame&&!Ut.isPpeFiltersVisible&&!Ut.isNvCameraReady||Ut.disabledDueToGlobalToggle?-1:0)}}function An(Vn,rr){if(1&Vn&&(r.j41(0,"div"),r.DNE(1,cn,1,3,"div",8),r.k0s()),2&Vn){const Ut=r.XpG();r.R7$(),r.Y8G("ngForOf",Ut.slots)}}function Jn(Vn,rr){if(1&Vn&&r.nrm(0,"img",14),2&Vn){const Ut=r.XpG().$implicit,qn=r.XpG(2);r.Y8G("src",qn.slotsPreview[Ut.id].previewImgData,r.B4B)}}function hi(Vn,rr){if(1&Vn&&(r.j41(0,"span",15),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2&Vn){const Ut=r.XpG().$implicit;r.R7$(),r.JRh(r.bMT(2,1,Ut.altText))}}function xi(Vn,rr){if(1&Vn){const Ut=r.RV6();r.j41(0,"div",11),r.bIt("click",function(){const Wn=r.eBV(Ut).$implicit,ci=r.XpG(2);return r.Njj(ci.onSlotSelection(Wn))})("keydown.enter",function(){const Wn=r.eBV(Ut).$implicit,ci=r.XpG(2);return r.Njj(ci.onSlotSelection(Wn))}),r.DNE(1,Jn,1,1,"img",12)(2,hi,3,3,"span",13),r.k0s()}if(2&Vn){const Ut=rr.$implicit,qn=r.XpG(2);r.Y8G("ngClass",r.sMw(5,pn,qn.isSlotActive(Ut),qn.restartGame,!qn.restartGame))("nvAutoFocus",qn.isSlotActive(Ut))("tabindex",qn.restartGame||!qn.isAppStartedReceived&&!qn.disabledDueToGlobalToggle?-1:0),r.R7$(),r.Y8G("ngIf",qn.checkPreviewForSlot(Ut.id)),r.R7$(),r.Y8G("ngIf",!qn.checkPreviewForSlot(Ut.id))}}function xn(Vn,rr){if(1&Vn&&(r.j41(0,"div"),r.DNE(1,xi,3,9,"div",10),r.k0s()),2&Vn){const Ut=r.XpG();r.R7$(),r.Y8G("ngForOf",Ut.slots)}}function Yn(Vn,rr){1&Vn&&r.nrm(0,"nv-divider")}function Gn(Vn,rr){1&Vn&&(r.j41(0,"div",22),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2&Vn&&(r.R7$(),r.SpI(" ",r.bMT(2,1,"nvcamera.EditFieldTitleHotkey")," "))}function Ci(Vn,rr){if(1&Vn){const Ut=r.RV6();r.j41(0,"div",16)(1,"div",17)(2,"div",18),r.EFF(3),r.nI1(4,"translate"),r.k0s(),r.j41(5,"nv-input",19),r.mxI("textChange",function(Wn){r.eBV(Ut);const ci=r.XpG();return r.DH7(ci.slotNameEditBox.activeSlotName,Wn)||(ci.slotNameEditBox.activeSlotName=Wn),r.Njj(Wn)}),r.bIt("textChange",function(Wn){r.eBV(Ut);const ci=r.XpG();return r.Njj(ci.slotNameEditBox.onEditboxChanged(Wn))}),r.k0s(),r.DNE(6,Gn,3,3,"div",20),r.j41(7,"nv-input",21),r.mxI("textChange",function(Wn){r.eBV(Ut);const ci=r.XpG();return r.DH7(ci.hotKeyEditBox.slotHK,Wn)||(ci.hotKeyEditBox.slotHK=Wn),r.Njj(Wn)}),r.bIt("textChange",function(Wn){r.eBV(Ut);const ci=r.XpG();return r.Njj(ci.hotKeyEditBox.onEditboxChanged(Wn))})("click",function(){r.eBV(Ut);const Wn=r.XpG();return r.Njj(Wn.changeHotKey())})("keydown.enter",function(){r.eBV(Ut);const Wn=r.XpG();return r.Njj(Wn.changeHotKey())}),r.k0s()()()}if(2&Vn){const Ut=r.XpG();r.R7$(3),r.JRh(r.bMT(4,11,"nvcamera.EditFieldTitleGameName")),r.R7$(2),r.R50("text",Ut.slotNameEditBox.activeSlotName),r.Y8G("placeholderText",Ut.slotNameEditBox.placeHolder)("disabled",Ut.slotNameEditBox.disabled)("characterCounter",Ut.slotNameEditBox.characterCounter)("textMaxLength",Ut.slotNameEditBox.slotTextMaxLen),r.R7$(),r.Y8G("ngIf",!Ut.isNewFilterUI||!Ut.isNewFilterUI&&0!==Ut.activeSlotIndex),r.R7$(),r.R50("text",Ut.hotKeyEditBox.slotHK),r.Y8G("disabled",Ut.hotKeyEditBox.disabled)("readonly",!0)("textMaxLength",Ut.hotKeyEditBox.slotTextMaxLen)}}function ln(Vn,rr){1&Vn&&r.nrm(0,"nv-divider")}function bi(Vn,rr){if(1&Vn&&(r.j41(0,"div",23),r.nrm(1,"app-filter-section",24),r.k0s()),2&Vn){const Ut=r.XpG();r.R7$(),r.Y8G("setUseCase",!1)("currentSlotIndex",Ut.activeSlotIndex)("filterStack",Ut.getFilterStack())}}let Zi=(()=>{class Vn{constructor(Ut,qn,Wn,ci,Tr,Jr,oo,Qo,fo,Xr,Go,Ss){this.loggingService=Ut,this.router=qn,this.route=Wn,this.translateService=ci,this.nvCameraService=Tr,this.ppeService=Jr,this.navigationService=oo,this.oscDisplayService=Qo,this.keyboardService=fo,this.appBarService=Xr,this.telemetryService=Go,this.igoConfig=Ss,this.destroy$=new O.B7,this.currentGameName="PUBG Lowlight",this.slotHotkey="Alt + F1",this.panelOpenState=!1,this.activeSlotIndex=null,this.positionEnum=i.SIx,this.slotNameEditBox={activeSlotName:"",title:"Name",placeHolder:{text:"nvcamera.Style",arg:0},slotTextMaxLen:30,disabled:!1,characterCounter:!0,onEditboxChanged:kr=>{this.nvCameraService.setCurrentModSlotName(kr)}},this.hotKeyEditBox={slotHK:"Alt+3",slotTextMaxLen:100,disabled:!1,onEditboxChanged:kr=>{this.logger.info("In progress")}},this.previewRefreshDelay=1e3,this.previewImgWidth=116,this.previewImgHeight=116,this.showError=!1,this.captureEnhanceSwitch=this.nvCameraService.statusOfCaptureEnhance,this.restartGame=!1,this.isNewFilterUI=!1,this.isPPEEnabled=!1,this.isAppStartedReceived=!1,this.isPpeSupportedGame=!1,this.isPpeFiltersVisible=!1,this.isNvCameraReady=!1,this.isNis2Enabled=!1,this.disabledDueToGlobalToggle=!1,this.slotsName="",this.hotkeyEnum=[i.g8X.OpenFreestyle],this.logger=this.loggingService.getLogger("GameFilter"),this.isNewFilterUI=!this.igoConfig.GFNCefClient,this.slotsName=this.isNewFilterUI?"nvcamera.Profiles":"nvcamera.Styles",this.appBarService.setAll({title:i.sT2,navButtonArrow:!0,icons:[{id:"closeIgo",icon:"close",tooltip:"tooltips.Close"}]}),this.appBarService.actionClicked$.pipe((0,_.Q)(this.destroy$)).subscribe(kr=>{"nav"===kr&&this.onBackClicked()})}ngOnInit(){return this.logger.info("Game filter INIT"),this.nvCameraService.changeUIRunning(!0),this.telemetryInit(),this.navigationService.escapeEvent().pipe((0,_.Q)(this.destroy$)).subscribe(()=>{"UI"===this.nvCameraService.sourceTrigger?(this.logger.info("Return to Main Menu"),this.onBackClicked()):"HK"===this.nvCameraService.sourceTrigger&&this.oscDisplayService.closeOSC()}),this.isGFNClient=this.igoConfig.GFNCefClient,this.isGFNClient||(this.nvCameraService.getHotkeyNum(i.g8X.OpenFreestyle).pipe((0,_.Q)(this.destroy$)).subscribe(Ut=>{this.freestyleHotkey=Ut}),this.nvCameraService.isInDesktopMode().subscribe(Ut=>{this.oscFullscreen=!Ut,this.oscFullscreen&&this.nvCameraService.setDynamicHotkey(!1,this.hotkeyEnum)})),this.isAppStartedReceived=this.nvCameraService.isAppStartedReceived,this.isPpeSupportedGame=this.ppeService.isPpeSupportedGame,this.isPpeFiltersVisible=this.ppeService.isPpeFiltersVisible,this.showError="true"===this.route.snapshot.params.showError,this.errorType=this.route.snapshot.params.errorType,this.nvCameraSessionExists=this.route.snapshot.params.nvCameraSessionExists,this.isPPEEnabled=this.ppeService.isPpeFeaturesEnabled,this.isNvCameraReady=this.nvCameraService.isNvCameraReady,this.isNis2Enabled=this.ppeService.isNIS2Enabled,this.restartGame=this.nvCameraService.restartRequired,this.ppeService.getAllStaticFilterList(),!this.isAppStartedReceived&&this.isGFNClient?this.showErrorMessage():this.nvCameraService.getGlobalToggle().subscribe(Ut=>{this.disabledDueToGlobalToggle=!Ut||this.nvCameraService.getIsGameRestartRequestedfromCTA()}),this.showError?this.isPPEEnabled?(this.emptySlots=new i.naB,this.slots=this.emptySlots.modsSlotsInfo.slots,this.showError=!1,this.restartGame=!1,this.activeSlotIndex=this.nvCameraService.currentGameSlots?this.nvCameraService.currentGameSlots.modsSlotsInfo.lastSlotIdx:this.ppeService.currentGameSlotIndex,this.previewEnabled=!!this.isNewFilterUI,this.nvCameraService.setPreviewDetails(this.slots,this.previewImgWidth,this.previewImgHeight),this.triggerPreview(),this.slotsPreview=this.nvCameraService.slotsPreviewInfo,void this.sendGameFilterErrorTelemetry()):void this.showErrorMessage():this.restartGame?(this.emptySlots=new i.naB,void(this.slots=this.emptySlots.modsSlotsInfo.slots)):void(this.nvCameraSessionExists?this.initializeSlots():this.nvCameraService.startNvCameraSession().subscribe(Ut=>{this.nvCameraSessionExists=!!Ut,this.initializeSlots()}))}initializeSlots(){this.slots=this.nvCameraService.currentGameSlots?.modsSlotsInfo.slots,this.activeSlotIndex=this.isPPEEnabled?this.nvCameraService.isAnyGameFilterSlotSelected()?this.nvCameraService.currentGameSlots?.modsSlotsInfo.lastSlotIdx:this.ppeService.currentGameSlotIndex:this.nvCameraService.currentGameSlots?.modsSlotsInfo.lastSlotIdx,this.slotNameEditBox.activeSlotName=this.nvCameraService.getCurrentModSlotName(),this.slotNameEditBox.placeHolder.arg=this.activeSlotIndex,this.previewEnabled=!!this.isNewFilterUI||this.nvCameraService.checkPreviewEnabled(),this.logger.info("current active slot = ",this.activeSlotIndex),this.nvCameraService.setPreviewDetails(this.slots,this.previewImgWidth,this.previewImgHeight),this.triggerPreview(),this.slotsPreview=this.nvCameraService.slotsPreviewInfo,this.nvCameraService.currentGameSlots&&null!=this.activeSlotIndex?this.nvCameraService.applySlot(this.activeSlotIndex).subscribe(Ut=>{this.logger.info("initialized successfully: ",Ut)},Ut=>{this.logger.error("error during init: ",Ut)}):this.logger.warn("Cannot apply slot: currentGameSlots is undefined or activeSlotIndex is invalid"),this.nvCameraService.getHotkeyStringForSlot(this.activeSlotIndex).pipe((0,_.Q)(this.destroy$)).subscribe(Ut=>{this.hotKeyEditBox.slotHK=Ut})}ngOnDestroy(){this.logger.info("Game filter destroying");let Ut=!1;this.nvCameraService.resetPreviewStatus(),this.destroy$.next(!0),this.destroy$.unsubscribe(),this.nvCameraService.isFreestyleSupportedGame()&&!this.disabledDueToGlobalToggle&&(this.nvCameraService.filterAppliedTelemetry(this.activeSlotIndex),this.nvCameraService.processingControlSettingsTelemetry(this.activeSlotIndex)),this.showError||this.nvCameraService.restartRequired?this.nvCameraService.changeUIRunning(!1):(this.slots&&this.activeSlotIndex&&this.slots[this.activeSlotIndex].filterStack.filters.length>0&&(Ut=!0),this.nvCameraService.closeGameFilterMenu({isleaveFilters:Ut})),this.nvCameraService.gameFilterMenu=!1}showErrorMessage(){switch(this.errorType){case i.VuP.ERROR_TIMEOUT:this.nvCameraService.nvCameraTimedOut=!0,this.errorMsg="notification.WarningGameRequired",this.nvCameraService.sendAnselFreestyleErrorTelemetry(i.T7s.anselFreestyleUnsupportedGameError,i.O5.GameFilter);break;case i.VuP.ERROR_SUPPORTED_GAME:this.errorMsg="notification.WarningGameRequired",this.nvCameraService.sendAnselFreestyleErrorTelemetry(i.T7s.anselFreestyleUnsupportedGameError,i.O5.GameFilter);break;case i.VuP.ERROR_RESTART:this.errorMsg="notification.ErrorRestartGame",this.nvCameraService.sendAnselFreestyleErrorTelemetry(i.T7s.anselFreestyleMenuLaunchError,i.O5.GameFilter);break;default:this.logger.error("Unknown error msg type: "+this.errorType),this.errorMsg="notification.WarningGameRequired",this.nvCameraService.sendAnselFreestyleErrorTelemetry(i.T7s.anselFreestyleGeneralFailure,i.O5.GameFilter)}}sendGameFilterErrorTelemetry(){switch(this.errorType){case i.VuP.ERROR_TIMEOUT:this.nvCameraService.anselFreestyleErrorTelemetry(i.T7s.anselFreestyleUnsupportedGameError,i.O5.GameFilter,"Nvcamera timed out");break;case i.VuP.ERROR_SUPPORTED_GAME:this.nvCameraService.anselFreestyleErrorTelemetry(i.T7s.anselFreestyleUnsupportedGameError,i.O5.GameFilter,"Unsupported game");break;case i.VuP.ERROR_RESTART:this.nvCameraService.anselFreestyleErrorTelemetry(i.T7s.anselFreestyleMenuLaunchError,i.O5.GameFilter,"Game restart required");break;default:this.logger.error("Unknown error msg type: "+this.errorType),this.nvCameraService.anselFreestyleErrorTelemetry(i.T7s.anselFreestyleGeneralFailure,i.O5.GameFilter,"Unknown error")}}triggerPreview(){this.nvCameraService.updatePreview(this.previewImgWidth,this.previewImgHeight,this.ppeService.currentGameSlotIndex),(0,P.Y)(this.previewRefreshDelay).pipe((0,_.Q)(this.destroy$)).subscribe(qn=>{this.nvCameraService.updatePreview(this.previewImgWidth,this.previewImgHeight,this.ppeService.currentGameSlotIndex)})}checkPreviewForSlot(Ut){return!this.restartGame&&!!this.slotsPreview&&this.previewEnabled&&this.slotsPreview[Ut]?.previewAvailable}onBackClicked(){this.logger.info("Back clicked"),this.navigationService.navigate(["../main-menu"],{relativeTo:this.route.parent,skipLocationChange:!0},i.jby.mainMenu),this.nvCameraService.setNavigationInputDevice([i.uk.Mouse],[i.O67.yes])}onSlotSelection(Ut){if(!this.restartGame&&this.isAppStartedReceived){if(this.logger.info("slot switching : ",JSON.stringify(Ut)),this.logger.info(" : this.nvCameraSessionExists : ",this.nvCameraSessionExists),this.isPPEEnabled&&this.ppeService.isPpeSupportedGame&&(this.nvCameraService.triggerPpeFilterSlotChange(Ut.id),!this.nvCameraSessionExists))return this.emptySlots=new i.naB,this.slots=this.emptySlots.modsSlotsInfo.slots,this.showError=!1,this.restartGame=!1,this.activeSlotIndex=Ut.id,this.slotNameEditBox.activeSlotName=Ut.altText,this.slotNameEditBox.placeHolder.arg=this.activeSlotIndex,void this.nvCameraService.updatePreview(this.previewImgWidth,this.previewImgHeight,Ut.id);this.nvCameraSessionExists&&this.nvCameraService.applySlot(Ut.id).subscribe(qn=>{this.nvCameraService.updatePreview(this.previewImgWidth,this.previewImgHeight,Ut.id),this.logger.info("slot switched successfully: ",qn)},qn=>{this.logger.error("slot switch failed with error: ",qn),this.nvCameraService.showSnack(i.BO6.ApplyStyleFail)}),this.activeSlotIndex=this.nvCameraService.currentGameSlots?.modsSlotsInfo.lastSlotIdx,this.slotNameEditBox.activeSlotName=this.nvCameraService.getCurrentModSlotName(),this.slotNameEditBox.placeHolder.arg=this.activeSlotIndex,this.nvCameraService.getHotkeyStringForSlot(Ut.id).pipe((0,_.Q)(this.destroy$)).subscribe(qn=>{this.hotKeyEditBox.slotHK=qn})}}isSlotActive(Ut){return this.restartGame?0===Ut.id:!(this.isPPEEnabled&&!this.isAppStartedReceived)&&this.activeSlotIndex===Ut.id}onKeyDown(Ut,qn){this.oscFullscreen&&this.nvCameraService.monitorHotKey(Ut,this.freestyleHotkey)?this.oscDisplayService.closeOSC():("Tab"===Ut.code&&this.nvCameraService.setNavigationInputDevice([i.uk.Keyboard],[i.O67.yes]),this.keyboardService.onKeyDown(Ut,qn))}onMouseDown(){this.nvCameraService.setNavigationInputDevice([i.uk.Mouse],[i.O67.yes])}changeHotKey(){this.navigationService.navigate(["../settings/shortcuts",{caller:"../nvcamera/game-filters"}],{relativeTo:this.route.parent,skipLocationChange:!0},i.jby.mainMenu)}setToggleState(Ut){this.captureEnhanceSwitch=Ut.captureEnhanceState,this.captureEnhanceSwitch&&this.nvCameraService.restartRequired&&(this.restartGame=!0)}telemetryInit(){this.nvCameraService.navigationInputDevice.KEYBOARD=!1,this.nvCameraService.navigationInputDevice.MOUSE=!1,this.nvCameraService.panningUsed=!1,this.nvCameraService.panningWithKB=!1,this.nvCameraService.panningWithMouse=!1}getFilterStack(){return this.slots&&this.activeSlotIndex?this.slots[this.activeSlotIndex].filterStack:null}static{this.\u0275fac=function(qn){return new(qn||Vn)(r.rXU(S.J6),r.rXU(l.Ix),r.rXU(l.nX),r.rXU(a.c$),r.rXU(i.h8x),r.rXU(i.Vlf),r.rXU(i.o_p),r.rXU(i.Bqk),r.rXU(i.rMY),r.rXU(i.gZv),r.rXU(i.xRl),r.rXU(i.k$F))}}static{this.\u0275cmp=r.VBU({type:Vn,selectors:[["app-game-filters"]],decls:15,vars:14,consts:[["fxLayout","column","fxFlex","",3,"keydown","mousedown"],["fxFlex","none",1,"font-sub2","font-color-tertiary","section-titles-padding"],["fxFlex","","fxLayout","column",1,"game-filters-layout"],["fxFlex","none",1,"preview-panel","side-padding"],[4,"ngIf"],["class","game-info-section","fxFlex","none",4,"ngIf"],["class","filter-section-embed","fxFlex","none","fxLayout","column",4,"ngIf"],["fxFlex","none",1,"nv-gap-24"],["fxFlex","","fxLayoutAlign","center center",3,"ngClass","tabindex",4,"ngFor","ngForOf"],["fxFlex","","fxLayoutAlign","center center",3,"ngClass","tabindex"],["fxFlex","","fxLayoutAlign","center center",3,"ngClass","nvAutoFocus","tabindex","click","keydown.enter",4,"ngFor","ngForOf"],["fxFlex","","fxLayoutAlign","center center",3,"click","keydown.enter","ngClass","nvAutoFocus","tabindex"],[3,"src",4,"ngIf"],["class","font-body2",4,"ngIf"],[3,"src"],[1,"font-body2"],["fxFlex","none",1,"game-info-section"],["fxLayout","column"],[1,"font-body2","side-padding"],[1,"side-padding",3,"textChange","text","placeholderText","disabled","characterCounter","textMaxLength"],["class","font-body2 nv-label side-padding",4,"ngIf"],[1,"side-padding",3,"textChange","click","keydown.enter","text","disabled","readonly","textMaxLength"],[1,"font-body2","nv-label","side-padding"],["fxFlex","none","fxLayout","column",1,"filter-section-embed"],[3,"setUseCase","currentSlotIndex","filterStack"]],template:function(qn,Wn){1&qn&&(r.j41(0,"div",0),r.bIt("keydown",function(Tr){return Wn.onKeyDown(Tr)})("mousedown",function(){return Wn.onMouseDown()}),r.qex(1),r.j41(2,"div",1),r.EFF(3),r.nI1(4,"translate"),r.k0s(),r.j41(5,"div",2)(6,"div",3),r.DNE(7,pi,2,1,"div",4)(8,An,2,1,"div",4)(9,xn,2,1,"div",4),r.k0s(),r.DNE(10,Yn,1,0,"nv-divider",4)(11,Ci,8,13,"div",5)(12,ln,1,0,"nv-divider",4)(13,bi,2,3,"div",6),r.k0s(),r.nrm(14,"div",7),r.bVm(),r.k0s()),2&qn&&(r.R7$(2),r.AVh("disabled-opacity",Wn.restartGame||!Wn.isAppStartedReceived||Wn.disabledDueToGlobalToggle||Wn.isAppStartedReceived&&!Wn.isNvCameraReady&&!Wn.isPpeFiltersVisible),r.R7$(),r.SpI(" ",r.bMT(4,12,Wn.slotsName)," "),r.R7$(2),r.AVh("disabled-opacity",Wn.restartGame||!Wn.isAppStartedReceived||Wn.isAppStartedReceived&&!Wn.isNvCameraReady&&!Wn.isPpeFiltersVisible||Wn.disabledDueToGlobalToggle),r.R7$(2),r.Y8G("ngIf",Wn.isNewFilterUI&&!Wn.isAppStartedReceived),r.R7$(),r.Y8G("ngIf",Wn.isNewFilterUI&&Wn.isAppStartedReceived&&(!Wn.isPpeFiltersVisible&&!Wn.isNvCameraReady||Wn.disabledDueToGlobalToggle)),r.R7$(),r.Y8G("ngIf",Wn.isAppStartedReceived&&(Wn.isPpeSupportedGame&&Wn.isPpeFiltersVisible||Wn.isNvCameraReady)&&!Wn.disabledDueToGlobalToggle),r.R7$(),r.Y8G("ngIf",Wn.isAppStartedReceived&&(Wn.isNvCameraReady||Wn.isPpeFiltersVisible)&&!Wn.disabledDueToGlobalToggle),r.R7$(),r.Y8G("ngIf",!Wn.restartGame&&!Wn.isNewFilterUI&&0!==Wn.activeSlotIndex),r.R7$(),r.Y8G("ngIf",!Wn.restartGame&&!Wn.isNewFilterUI&&0!==Wn.activeSlotIndex),r.R7$(),r.Y8G("ngIf",!Wn.restartGame&&(Wn.isNewFilterUI||0!==Wn.activeSlotIndex)))},dependencies:[c.$,m.I,M.Q,n.YU,n.Sq,n.bT,D.DJ,D.sA,D.UI,I.PW,U.N,zr,a.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}[_nghost-%COMP%]{overflow-y:auto;overflow-x:hidden;padding-top:16px;padding-bottom:16px}.isLtr [_nghost-%COMP%]{margin-right:-24px}html[dir=ltr] [_nghost-%COMP%]{--dummy4: 0;margin-right:-24px}.isRtl [_nghost-%COMP%]{margin-left:-24px}html[dir=rtl] [_nghost-%COMP%]{--dummy4: 0;margin-left:-24px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.section-titles-padding[_ngcontent-%COMP%]{padding:12px 16px}.active[_ngcontent-%COMP%]{border:1px solid var(--accent-500)!important}.preview-panel[_ngcontent-%COMP%]{width:100%;max-width:116px;min-width:116px;height:116px}.preview-panel__preview-pane[_ngcontent-%COMP%], .preview-panel__preview-pane-basic[_ngcontent-%COMP%]{width:116px;height:116px;min-width:116px;border:1px solid var(--primary-contrast-700);display:inline-block;text-align:center;vertical-align:middle;background:var(--game-filters-preview-pane-basic-bg-color)}.isLtr[_nghost-%COMP%] .preview-panel__preview-pane[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .preview-panel__preview-pane[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .preview-panel__preview-pane-basic[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .preview-panel__preview-pane-basic[_ngcontent-%COMP%]{margin:0 5px 0 0}html[dir=ltr][_ngcontent-%COMP%] .preview-panel__preview-pane[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .preview-panel__preview-pane-basic[_ngcontent-%COMP%]{--dummy: 0;margin:0 5px 0 0}.isRtl[_nghost-%COMP%] .preview-panel__preview-pane[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .preview-panel__preview-pane[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .preview-panel__preview-pane-basic[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .preview-panel__preview-pane-basic[_ngcontent-%COMP%]{margin:0 0 0 5px}html[dir=rtl][_ngcontent-%COMP%] .preview-panel__preview-pane[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .preview-panel__preview-pane-basic[_ngcontent-%COMP%]{--dummy: 0;margin:0 0 0 5px}.preview-panel__preview-pane[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:114px;border:inherit}.preview-panel__preview-pane[_ngcontent-%COMP%]:hover{border:1px solid var(--accent-500);cursor:pointer}.preview-panel__preview-pane[_ngcontent-%COMP%]:focus{border:1px solid var(--accent-500);cursor:pointer}.preview-panel__preview-pane--selected[_ngcontent-%COMP%]{background-color:var(--accent-500)}.game-info-section[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:24px;height:24px;font-size:24px}.filter-section-embed[_ngcontent-%COMP%]{box-sizing:border-box;background-clip:content-box}.max-warning-area[_ngcontent-%COMP%]{margin:16px 0 0}.limit-padding[_ngcontent-%COMP%]{padding:8px 0}"]})}}return Vn})();var Mr=s(36877),$r=s(73180),_o=s(18880),bo=s(57307),Kn=s(47973);const gi=Vn=>({"camera-helper-empty-state-margin":Vn});function Pi(Vn,rr){1&Vn&&r.nrm(0,"div",14)}function ji(Vn,rr){if(1&Vn){const Ut=r.RV6();r.j41(0,"div")(1,"nv-item-button",15),r.bIt("clicked",function(){r.eBV(Ut);const Wn=r.XpG(2);return r.Njj(Wn.hideUI())}),r.k0s()()}if(2&Vn){const Ut=r.XpG(2);r.R7$(),r.Y8G("subTitle",Ut.getHidePanelSubTitle())("disabled",Ut.snapDisabled)}}function Qi(Vn,rr){if(1&Vn){const Ut=r.RV6();r.j41(0,"div")(1,"div",16),r.EFF(2),r.nI1(3,"translate"),r.k0s(),r.j41(4,"nv-dropdown",17),r.bIt("selectionChanged",function(Wn){r.eBV(Ut);const ci=r.XpG(3);return r.Njj(ci.methodChanged(Wn))}),r.k0s()()}if(2&Vn){const Ut=r.XpG(3);r.R7$(2),r.JRh(r.bMT(3,4,Ut.methodTitle)),r.R7$(2),r.Y8G("selection",Ut.methodSelection)("disabled",!1)("input",Ut.methodInput)}}function ar(Vn,rr){if(1&Vn){const Ut=r.RV6();r.j41(0,"div",21)(1,"div",22),r.EFF(2),r.nI1(3,"translate"),r.k0s(),r.j41(4,"mat-slide-toggle",23),r.mxI("ngModelChange",function(Wn){r.eBV(Ut);const ci=r.XpG(3);return r.DH7(ci.hdrSwitch,Wn)||(ci.hdrSwitch=Wn),r.Njj(Wn)}),r.bIt("change",function(Wn){r.eBV(Ut);const ci=r.XpG(3);return r.Njj(ci.hdrSwitchChange(Wn))}),r.k0s()()}if(2&Vn){const Ut=r.XpG(3);r.R7$(2),r.SpI(" ",r.bMT(3,3,"nvcamera.SaveAsHDR")," "),r.R7$(2),r.R50("ngModel",Ut.hdrSwitch),r.Y8G("disabled",Ut.restartGame)}}function jr(Vn,rr){if(1&Vn){const Ut=r.RV6();r.j41(0,"div")(1,"div",16),r.EFF(2),r.nI1(3,"translate"),r.k0s(),r.j41(4,"nv-dropdown",17),r.bIt("selectionChanged",function(Wn){r.eBV(Ut);const ci=r.XpG(2);return r.Njj(ci.captureChanged(Wn))}),r.k0s(),r.nrm(5,"div",18),r.DNE(6,Qi,5,6,"div",1),r.nrm(7,"div",18),r.j41(8,"div",16),r.EFF(9),r.nI1(10,"translate"),r.k0s(),r.j41(11,"nv-dropdown",17),r.bIt("selectionChanged",function(Wn){r.eBV(Ut);const ci=r.XpG(2);return r.Njj(ci.resolutionChanged(Wn))}),r.k0s(),r.nrm(12,"div",19),r.DNE(13,ar,5,5,"div",20),r.nrm(14,"div",18),r.k0s()}if(2&Vn){const Ut=r.XpG(2);r.R7$(2),r.JRh(r.bMT(3,12,Ut.captureTitle)),r.R7$(2),r.Y8G("selection",Ut.captureTypeSelection)("disabled",!1)("input",Ut.captureTypeInput)("disabled",Ut.restartGame),r.R7$(2),r.Y8G("ngIf",!Ut.methodDisabled),r.R7$(3),r.JRh(r.bMT(10,14,Ut.resolutionTitle)),r.R7$(2),r.Y8G("selection",Ut.resolutionSelection)("disabled",!1)("input",Ut.resolutionInput)("disabled",Ut.restartGame),r.R7$(2),r.Y8G("ngIf",Ut.isHDRCaptureSupported)}}function ho(Vn,rr){if(1&Vn){const Ut=r.RV6();r.j41(0,"div")(1,"div",24)(2,"div",25)(3,"div",26),r.EFF(4),r.nI1(5,"translate"),r.k0s()(),r.j41(6,"nv-hig-slider",27),r.bIt("input",function(Wn){r.eBV(Ut);const ci=r.XpG(2);return r.Njj(ci.onResolutionSliderChange(Wn.value))})("valueChange",function(Wn){r.eBV(Ut);const ci=r.XpG(2);return r.Njj(ci.onResolutionSliderChange(Wn))}),r.k0s(),r.j41(7,"div",28),r.EFF(8),r.k0s()()()}if(2&Vn){const Ut=r.XpG(2);r.R7$(3),r.AVh("nvapp-side-padding",!Ut.isGFNClient),r.R7$(),r.SpI(" ",r.bMT(5,11,Ut.resolutionTitle)," "),r.R7$(2),r.AVh("nvapp-slider-padding",!Ut.isGFNClient),r.Y8G("min",Ut.resolutionSlider.min)("max",Ut.resolutionSlider.max)("step",Ut.resolutionSlider.step)("value",Ut.resolutionSlider.value)("disabled",Ut.showError||Ut.restartGame||Ut.resolutionSlider.max===Ut.resolutionSlider.min),r.R7$(2),r.SpI(" ",Ut.resolutionSlider.label," ")}}function Fo(Vn,rr){if(1&Vn){const Ut=r.RV6();r.j41(0,"div",29)(1,"div",30),r.EFF(2),r.nI1(3,"translate"),r.k0s(),r.j41(4,"mat-slide-toggle",31),r.mxI("ngModelChange",function(Wn){r.eBV(Ut);const ci=r.XpG(2);return r.DH7(ci.gridSwitch,Wn)||(ci.gridSwitch=Wn),r.Njj(Wn)}),r.bIt("change",function(Wn){r.eBV(Ut);const ci=r.XpG(2);return r.Njj(ci.gridSwitchChange(Wn))}),r.k0s()()}if(2&Vn){const Ut=r.XpG(2);r.R7$(2),r.SpI(" ",r.bMT(3,3,"nvcamera.ShowGrid")," "),r.R7$(2),r.R50("ngModel",Ut.gridSwitch),r.Y8G("disabled",Ut.showError||Ut.restartGame)}}function no(Vn,rr){if(1&Vn){const Ut=r.RV6();r.j41(0,"mat-accordion")(1,"mat-expansion-panel",32)(2,"mat-expansion-panel-header",33)(3,"div",34)(4,"div",35),r.EFF(5),r.nI1(6,"translate"),r.k0s(),r.j41(7,"button",36),r.nrm(8,"mat-icon",37),r.k0s()()(),r.j41(9,"div",24)(10,"div",38)(11,"div",39),r.EFF(12),r.nI1(13,"translate"),r.k0s()(),r.j41(14,"nv-hig-slider",40),r.bIt("input",function(Wn){r.eBV(Ut);const ci=r.XpG(2);return r.Njj(ci.onRotationSliderChange(Wn.value))})("valueChange",function(Wn){r.eBV(Ut);const ci=r.XpG(2);return r.Njj(ci.onRotationSliderChange(Wn))}),r.k0s()(),r.nrm(15,"div",18),r.j41(16,"div",24)(17,"div",25)(18,"div",41),r.EFF(19),r.nI1(20,"translate"),r.k0s()(),r.j41(21,"nv-hig-slider",40),r.bIt("input",function(Wn){r.eBV(Ut);const ci=r.XpG(2);return r.Njj(ci.onFOVSliderChange(Wn.value))})("valueChange",function(Wn){r.eBV(Ut);const ci=r.XpG(2);return r.Njj(ci.onFOVSliderChange(Wn))}),r.k0s()()()()}if(2&Vn){const Ut=r.XpG(2);r.Y8G("@.disabled",Ut.disableAnimation),r.R7$(),r.Y8G("expanded",!Ut.isGFNClient),r.R7$(4),r.SpI(" ",r.bMT(6,16,"mainMenu.Webcam")," "),r.R7$(2),r.Y8G("disabled",Ut.showError||Ut.restartGame),r.R7$(5),r.SpI(" ",r.bMT(13,18,"nvcamera.Roll")," "),r.R7$(2),r.Y8G("min",Ut.rollSlider.min)("max",Ut.rollSlider.max)("step",Ut.rollSlider.step)("value",Ut.rollSlider.value)("disabled",Ut.showError||Ut.restartGame),r.R7$(5),r.SpI(" ",r.bMT(20,20,"nvcamera.FOV")," "),r.R7$(2),r.Y8G("min",Ut.fovSlider.min)("max",Ut.fovSlider.max)("step",Ut.fovSlider.step)("value",Ut.fovSlider.value)("disabled",Ut.showError||Ut.restartGame)}}function yo(Vn,rr){if(1&Vn&&(r.j41(0,"div",42)(1,"mat-icon",43),r.EFF(2,"info"),r.k0s(),r.j41(3,"span"),r.EFF(4),r.nI1(5,"translate"),r.k0s()()),2&Vn){const Ut=r.XpG(2);r.Y8G("ngClass",r.eq3(4,gi,Ut.showError||Ut.restartGame)),r.R7$(4),r.JRh(r.bMT(5,2,"nvcamera.CameraHelper"))}}function Zr(Vn,rr){1&Vn&&r.nrm(0,"nv-divider")}function Yr(Vn,rr){1&Vn&&(r.j41(0,"div",44)(1,"div",25)(2,"div",45),r.EFF(3),r.nI1(4,"translate"),r.k0s(),r.j41(5,"div",46),r.nrm(6,"nv-item-button",47),r.k0s()()()),2&Vn&&(r.R7$(3),r.SpI(" ",r.bMT(4,2,"nvcamera.HeaderTitleFilters")," "),r.R7$(3),r.Y8G("disabled",!0))}function go(Vn,rr){1&Vn&&r.nrm(0,"nv-divider",48)}function zo(Vn,rr){if(1&Vn){const Ut=r.RV6();r.j41(0,"div",49)(1,"nv-item-button",50),r.bIt("clicked",function(){r.eBV(Ut);const Wn=r.XpG(2);return r.Njj(Wn.hideUI())}),r.k0s(),r.j41(2,"p",51),r.EFF(3),r.nI1(4,"translate"),r.k0s()()}if(2&Vn){const Ut=r.XpG(2);r.R7$(),r.Y8G("disabled",Ut.snapDisabled),r.R7$(2),r.SpI(" ",r.bMT(4,2,"nvcamera.HideShowPanel")," ")}}function si(Vn,rr){if(1&Vn){const Ut=r.RV6();r.j41(0,"div",52)(1,"button",53),r.bIt("click",function(){r.eBV(Ut);const Wn=r.XpG(2);return r.Njj(Wn.onSnapClicked())}),r.j41(2,"div",54),r.EFF(3),r.nI1(4,"translate"),r.k0s()()()}if(2&Vn){const Ut=r.XpG(2);r.R7$(),r.Y8G("disabled",Ut.snapDisabled),r.R7$(2),r.SpI(" ",r.bMT(4,2,"nvcamera.Snap")," ")}}function to(Vn,rr){if(1&Vn&&(r.qex(0),r.j41(1,"div",2),r.DNE(2,Pi,1,0,"div",3),r.j41(3,"div",4),r.DNE(4,ji,2,2,"div",1)(5,jr,15,16,"div",1)(6,ho,9,13,"div",1)(7,Fo,5,5,"div",5),r.nrm(8,"nv-divider"),r.DNE(9,no,22,22,"mat-accordion",1)(10,yo,6,6,"div",6)(11,Zr,1,0,"nv-divider",1),r.j41(12,"div",7),r.nrm(13,"app-filter-section",8),r.k0s()(),r.DNE(14,Yr,7,4,"div",9)(15,go,1,0,"nv-divider",10),r.j41(16,"div",11),r.DNE(17,zo,5,4,"div",12)(18,si,5,4,"div",13),r.k0s()(),r.bVm()),2&Vn){const Ut=r.XpG();r.R7$(),r.AVh("disabled-opacity",!Ut.isGFNClient&&(Ut.showError||Ut.restartGame)),r.R7$(),r.Y8G("ngIf",Ut.isGFNClient),r.R7$(),r.AVh("disabled-opacity",Ut.restartGame),r.R7$(),r.Y8G("ngIf",Ut.isGFNClient),r.R7$(),r.Y8G("ngIf",!1),r.R7$(),r.Y8G("ngIf",!Ut.isGFNClient&&(Ut.isAIUpresEnabled||Ut.showError||Ut.restartGame)),r.R7$(),r.Y8G("ngIf",Ut.isGridSupported),r.R7$(2),r.Y8G("ngIf",!Ut.isAnselLite),r.R7$(),r.Y8G("ngIf",!Ut.isGFNClient),r.R7$(),r.Y8G("ngIf",!Ut.isAnselLite&&!(Ut.showError||Ut.restartGame)),r.R7$(2),r.Y8G("setUseCase",!0)("currentSlotIndex",1)("filterStack",Ut.slots[Ut.activeSlotIndex].filterStack),r.R7$(),r.Y8G("ngIf",Ut.restartGame&&Ut.isGFNClient),r.R7$(),r.Y8G("ngIf",!Ut.isGFNClient),r.R7$(2),r.Y8G("ngIf",!Ut.isGFNClient),r.R7$(),r.Y8G("ngIf",!Ut.captureInProgress)}}const Vt=["clientdiv"],Sn={0:1,1:16,2:2,3:32,4:64},Bn={ShiftLeft:16,ShiftRight:16,ControlLeft:17,ControlRight:17,Digit1:49,KeyA:65,KeyD:68,KeyE:69,KeyQ:81,KeyR:82,KeyS:83,KeyW:87,KeyX:88,KeyZ:90},Fr=[{path:"game-filters",component:Zi,data:{level:1}},{path:"photo-mode",component:(()=>{class Vn{constructor(Ut,qn,Wn,ci,Tr,Jr,oo,Qo,fo,Xr,Go,Ss){this.loggingService=Ut,this.oscNotificationService=qn,this.nvcameraService=Wn,this.galleryService=ci,this.route=Tr,this.navigationService=Jr,this.oscDisplayService=oo,this.keyboardService=Qo,this.nvIgoComponent=fo,this.appBarService=Xr,this.igoConfig=Go,this.ppeService=Ss,this.destroy$=new O.B7,this.rollValEmitter$=new O.B7,this.fovValEmitter$=new O.B7,this.sliderThrottleDurationGFN=200,this.sliderThrottleDurationGFE=0,this.isHDRCaptureSupported=!1,this.isGridSupported=!0,this.snapDisabled=!1,this.methodDisabled=!0,this.hdrSwitch=!1,this.gridSwitch=!1,this.captureTypeSelection=0,this.resolutionSelection=0,this.methodSelection=0,this.captureTitle="nvcamera.Capture",this.captureTypeInput=[],this.methodTitle="nvcamera.Method",this.methodInput=[],this.resolutionTitle="nvcamera.Resolution",this.resolutionInput=["2560 x 1440"],this.enableFOV=!1,this.activeSlotIndex=null,this.ngxSrcFilePathArray=[],this.captureInProgress=!1,this.captureProgress=0,this.positionEnum=i.SIx,this.restartGame=!1,this.showError=!1,this.disableAnimation=!0,this.oscFullscreen=!1,this.hotkeyEnum=[i.g8X.OpenAnsel,i.g8X.Screenshot],this.fovSlider={min:0,max:0,step:1,default:0,value:0},this.rollSlider={min:0,max:0,step:1,default:0,value:0},this.resolutionSlider={min:0,max:0,step:1,default:0,value:0,label:""},this.uiMode=i.O5.PhotoModeLight,this.isAnselLite=!1,this.currentCapture=null,this.currentMethod=void 0,this.shouldReenableAiDvc=!1,this.shouldReenableAiHdr=!1,this.captureMenuMap=new Map([[Z.Or.Common.Nvcamera.CaptureTypes.regular,{type:Z.Or.Common.Nvcamera.CaptureTypes.regular,title:"nvcamera.screenshot",resolutionsAvailable:[],supported:!0}],[Z.Or.Common.Nvcamera.CaptureTypes.highRes,{type:Z.Or.Common.Nvcamera.CaptureTypes.highRes,title:"nvcamera.highResolutionPhoto",resolutionsAvailable:[],supported:!0}],[Z.Or.Common.Nvcamera.CaptureTypes.sphericalPanorama,{type:Z.Or.Common.Nvcamera.CaptureTypes.sphericalPanorama,title:"nvcamera.360PhotoSphere",resolutionsAvailable:[],supported:!1}],[Z.Or.Common.Nvcamera.CaptureTypes.stereoRegular,{type:Z.Or.Common.Nvcamera.CaptureTypes.stereoRegular,title:"nvcamera.screenshot3D",resolutionsAvailable:[],supported:!1}],[Z.Or.Common.Nvcamera.CaptureTypes.stereoSphericalPanorama,{type:Z.Or.Common.Nvcamera.CaptureTypes.stereoSphericalPanorama,title:"nvcamera.360PhotoSphere3D",resolutionsAvailable:[],supported:!1}]]),this.HighResMethod=[{id:"nvcamera.MethodStandard",supported:!1},{id:"nvcamera.MethodEnhanced",supported:!1},{id:"nvcamera.MethodAIUpRes",supported:!1}],this.getRollText=function(){const kr=this.rollSlider.value;return 0===kr?kr+"\xb0":this.translateService.instant(kr<0?"nvcamera.degreeLeft":"nvcamera.degreeRight",{arg1:Math.abs(kr)})},this.getFOVText=function(){return(Math.round(1e3*this.fovSlider.value)/1e3).toFixed()+"\xb0"},this.logger=this.loggingService.getLogger("PhotoMode"),this.uiMode=this.route.snapshot.params.UIMode,this.isGFNClient=this.igoConfig.GFNCefClient,this.isAIUpresEnabled="true"===this.route.snapshot.params.isAIUpresEnabled&&!this.isGFNClient,this.isAnselLite=this.uiMode===i.O5.PhotoModeLight,this.logger.info("isAnselLite",this.isAnselLite),this.logger.info("isRTXEnable",this.isAIUpresEnabled),this.appBarService.setAll({title:i.jyV,navButtonArrow:!0,icons:[{id:"closeIgo",icon:"close",tooltip:"tooltips.Close"}]}),this.appBarService.actionClicked$.pipe((0,_.Q)(this.destroy$)).subscribe(kr=>{"nav"===kr&&this.onBackClicked()})}onKeyDownEvent(Ut){if(this.checkHideUIKey(Ut.key))this.hideUI();else if(this.oscFullscreen){if(this.nvcameraService.monitorHotKey(Ut,this.anselHotkey))return void this.oscDisplayService.closeOSC();if(this.nvcameraService.monitorHotKey(Ut,this.screenshotHotkey,!0))return void this.nvcameraService.captureNormalScreenshot()}"Tab"===Ut.code&&this.nvcameraService.setNavigationInputDevice([i.uk.Keyboard],[i.O67.yes]),this.nvcameraService.getRedirectionState()&&Ut.code in i.R8Z&&(this.nvcameraService.panningWithKB=!0)}hideUI(){const Ut=!this.oscDisplayService.getHideSidebar();this.oscDisplayService.setHideSidebar(Ut),this.logger.info("Hide UI",Ut)}setupHighResMethodInput(){this.methodInput=[],this.HighResMethod.forEach(Ut=>{Ut.supported&&(this.methodInput.push(Ut.id),void 0===this.currentMethod&&(this.currentMethod=Ut))})}checkHideUIKey(Ut){return this.isMacPlatform||!this.isGFNClient?"h"===Ut||"H"===Ut:"Insert"===Ut}setupcaptureTypeInput(){const Ut=[];this.isGFNClient?(this.captureTypeInput.push(this.captureMenuMap.get(Z.Or.Common.Nvcamera.CaptureTypes.regular).title),this.currentCapture=this.captureMenuMap.get(Z.Or.Common.Nvcamera.CaptureTypes.regular),this.setResolutionAvailable(this.currentCapture.type),this.logger.info("valid captures: ",this.captureTypeInput)):this.nvcameraService.getCaptureTypes().subscribe(qn=>{this.captureMenuMap.forEach(Wn=>{Wn.supported=Wn.supported&&qn.captureTypesList.captures.includes(Wn.type),Wn.type===Z.Or.Common.Nvcamera.CaptureTypes.highRes&&(this.HighResMethod.forEach(ci=>{"nvcamera.MethodAIUpRes"===ci.id&&(ci.supported=ci.supported&&this.isAIUpresEnabled,Wn.supported=Wn.supported||ci.supported),Wn.supported||(ci.supported=!1)}),this.setupHighResMethodInput()),Wn.supported&&(null===this.currentCapture&&(this.currentCapture=Wn),Ut.push(Wn.title))}),this.captureTypeInput=Ut,this.nvcameraService.getCaptureResolutions(this.currentCapture.type).subscribe(Wn=>{this.currentCapture.resolutionsAvailable.push({width:Wn.screenResolution.width,height:Wn.screenResolution.height,multiplier:void 0}),this.currentMethod=this.HighResMethod[2];const Tr=this.captureMenuMap.get(Z.Or.Common.Nvcamera.CaptureTypes.highRes);this.setResolutionAvailable(Tr.type),this.resolutionSlider={min:0,max:Tr.resolutionsAvailable.length,step:1,default:0,value:0,label:this.getResolutionSliderLabel(this.currentCapture.resolutionsAvailable[0])}})})}getResolutionSliderLabel(Ut){return Ut?Ut.width+" x "+Ut.height:""}captureChanged(Ut){let qn;this.logger.info("capture changed",Ut),this.captureTypeSelection=Ut,this.captureMenuMap.forEach(Wn=>{Wn.title===this.captureTypeInput[Ut]&&(qn=Wn)}),this.currentCapture=qn,this.currentMethod=void 0,this.methodDisabled=this.currentCapture.type!==Z.Or.Common.Nvcamera.CaptureTypes.highRes,this.methodDisabled||this.setupHighResMethodInput(),this.logger.info("capture changed, current capture",this.currentCapture),this.setResolutionAvailable(this.currentCapture.type)}methodChanged(Ut){this.logger.info("method changed ",Ut),this.methodSelection=Ut,this.HighResMethod.forEach(qn=>{qn.id!==this.methodInput[Ut]||(this.currentMethod=qn)}),this.setResolutionAvailable(this.currentCapture.type)}setResolutionAvailable(Ut){this.logger.info("setResolutionAvailable",Ut,this.currentMethod);const qn=this.captureMenuMap.get(Ut);if(qn){if(qn.type===Z.Or.Common.Nvcamera.CaptureTypes.highRes&&"nvcamera.MethodAIUpRes"===this.currentMethod.id)return this.fillRTXHighResResolutionSlider(qn),this.logger.info("super res ",qn.resolutionsAvailable),void this.updateResolution(qn.type);this.nvcameraService.getCaptureResolutions(qn.type).subscribe(Wn=>{switch(this.logger.info("response",qn.type),qn.resolutionsAvailable=[],qn.type){case Z.Or.Common.Nvcamera.CaptureTypes.regular:case Z.Or.Common.Nvcamera.CaptureTypes.stereoRegular:qn.resolutionsAvailable.push({width:Wn.screenResolution.width,height:Wn.screenResolution.height,multiplier:void 0}),this.logger.info("regular res ",qn);break;case Z.Or.Common.Nvcamera.CaptureTypes.highRes:qn.resolutionsAvailable=Wn.highResResolutions.resolutionArray,this.logger.info("super resolution ",qn.resolutionsAvailable);break;case Z.Or.Common.Nvcamera.CaptureTypes.sphericalPanorama:case Z.Or.Common.Nvcamera.CaptureTypes.stereoSphericalPanorama:const Tr=8,Jr=Ut===Z.Or.Common.Nvcamera.CaptureTypes.sphericalPanorama?2:1;this.logger.info("paranoma res",Wn);const oo=Wn.panoramaResolutions.minX,fo=(Wn.panoramaResolutions.maxX-oo)/8;for(let Xr=0;Xr<=Tr;Xr++)qn.resolutionsAvailable.push({width:oo+fo*Xr,height:(oo+fo*Xr)/Jr,multiplier:void 0});this.logger.info("Panaroma res ",qn.resolutionsAvailable)}this.currentCaptureResolution=qn.resolutionsAvailable[0],this.updateResolution(qn.type)},Wn=>{this.logger.error("getCaptureResolutions error: ",Wn)})}}fillRTXHighResResolutionSlider(Ut){let oo=1;Ut.resolutionsAvailable=[];const Qo=this.captureMenuMap.get(Z.Or.Common.Nvcamera.CaptureTypes.regular).resolutionsAvailable[0];Qo.width*Qo.height>3686400&&(oo=0);for(let fo=0;fo<=oo;fo++){const Xr={multiplier:0,width:0,height:0};if(Xr.multiplier=fo>0?2*Ut.resolutionsAvailable[fo-1].multiplier:fo+2,Xr.width=Qo.width*Xr.multiplier,Xr.height=Qo.height*Xr.multiplier,!this.isGFNClient&&Xr.width*Xr.height>33177600)return this.logger.info("Max resolution allowed is 8k"),void(this.currentCaptureResolution={multiplier:0,width:Qo.width,height:Qo.height});Ut.resolutionsAvailable.push(Xr)}this.currentCaptureResolution=Ut.resolutionsAvailable[0]}setUpCameraControls(){this.nvcameraService.getCameraRange(!0,!1).subscribe(Ut=>{this.rollSlider.min=Ut.rollRange.min,this.rollSlider.max=Ut.rollRange.max},Ut=>{this.logger.error("getCameraRange error: ",Ut)}),this.nvcameraService.getCameraRange(!1,!0).subscribe(Ut=>{this.fovSlider.min=Ut.fovRange.min,this.fovSlider.max=Ut.fovRange.max},Ut=>{this.logger.error("getCameraRange error: ",Ut)}),this.nvcameraService.GetCameraControlFov(!1).subscribe(Ut=>{this.fovSlider.default=Math.round(Ut.fovValue.fov),this.fovSlider.value=this.fovSlider.default,this.enableFOV=!0},Ut=>{this.logger.error("GetCameraControlFov error: ",Ut)})}ngOnInit(){if(this.logger.info("Initializing photo mode component"),this.nvcameraService.changeUIRunning(!0),this.isMacPlatform=navigator.platform.toUpperCase().indexOf("MAC")>=0,this.telemetryInit(),this.navigationService.escapeEvent().pipe((0,_.Q)(this.destroy$)).subscribe(()=>{"UI"===this.nvcameraService.sourceTrigger?(this.logger.info("Return to Main Menu"),this.onBackClicked()):"HK"===this.nvcameraService.sourceTrigger&&this.oscDisplayService.closeOSC()}),this.isGFNClient||(this.nvcameraService.getHotkeyNum(i.g8X.OpenAnsel).pipe((0,_.Q)(this.destroy$)).subscribe(Wn=>{this.anselHotkey=Wn}),this.nvcameraService.getHotkeyNum(i.g8X.Screenshot).pipe((0,_.Q)(this.destroy$)).subscribe(Wn=>{this.screenshotHotkey=Wn}),this.nvcameraService.isInDesktopMode().subscribe(Wn=>{this.oscFullscreen=!Wn,this.oscFullscreen&&this.nvcameraService.setDynamicHotkey(!1,this.hotkeyEnum)})),this.showError="true"===this.route.snapshot.params.showError,this.errorType=this.route.snapshot.params.errorType,this.showError)return this.snapDisabled=!0,this.showErrorMessage(),void this.createEmptySlots();if(this.restartGame=this.nvcameraService.restartRequired,this.restartGame)return this.snapDisabled=!0,void this.createEmptySlots();!this.showError&&!this.isGFNClient&&this.nvcameraService.getGlobalToggle().subscribe(Wn=>{this.showError=!Wn||this.nvcameraService.getIsGameRestartRequestedfromCTA()||this.restartGame}),this.nvcameraService.setNvcameraCmsInfo(),this.slots=this.nvcameraService.currentGameSlots.anselSlotsInfo.slots,this.activeSlotIndex=this.nvcameraService.currentGameSlots.anselSlotsInfo.lastSlotIdx,this.setupcaptureTypeInput(),this.handlePPEFilterState(),this.isAnselLite||(this.logger.info("Setting cameracontrols"),this.setUpCameraControls()),this.nvcameraService.applySlot(this.activeSlotIndex,!0,this.uiMode).pipe((0,H.s)(1)).subscribe(Wn=>{this.logger.info("initialized successfully: ",Wn)},Wn=>{this.logger.error("error during init: ",Wn)}),this.navigationService.navigate([{outlets:{centerPane:"client-area"}}],{relativeTo:this.route.parent,skipLocationChange:!0}),(0,Mr.R)(document,"keydown").pipe((0,_.Q)(this.destroy$)).subscribe(Wn=>{this.onKeyDownEvent(Wn)});const qn=this.isGFNClient?this.sliderThrottleDurationGFN:this.sliderThrottleDurationGFE;this.fovValEmitter$.pipe((0,$r.c)(qn),(0,_.Q)(this.destroy$)).subscribe(Wn=>{this.nvcameraService.SetCameraControlFovRoll(!0,void 0,Wn).subscribe()}),this.rollValEmitter$.pipe((0,$r.c)(qn),(0,_.Q)(this.destroy$)).subscribe(Wn=>{this.nvcameraService.SetCameraControlFovRoll(!0,Wn,void 0).subscribe()}),this.oscDisplayService.setOutsideClickState(!1),this.logger.info("Initialization done")}ngAfterViewInit(){setTimeout(()=>this.disableAnimation=!1)}handlePPEFilterState(){this.shouldReenableAiDvc=this.ppeService.isAIDVCEnabled,this.shouldReenableAiHdr=this.ppeService.isAIHDREnabled;const Ut=this.ppeService.isAIDVCEnabled?this.ppeService.disableAIDVC(null):(0,T.of)(null),qn=this.ppeService.isAIHDREnabled?this.ppeService.disableAIHDR(null):(0,T.of)(null);(0,L.p)([Ut,qn]).pipe((0,_.Q)(this.destroy$)).subscribe({next:Wn=>this.logger.info("Disabled PPE service filters"),error:Wn=>this.logger.info("Error disabling PPE service filters:",Wn)})}createEmptySlots(){const Ut=new i.naB;this.slots=Ut.modsSlotsInfo.slots,this.activeSlotIndex=0,this.ppeService.getAllStaticFilterList()}updateResolution(Ut){let qn,Wn;this.resolutionInput=[];for(let ci=0;ci<this.currentCapture.resolutionsAvailable.length;ci++)switch(this.currentCapture.type){case Z.Or.Common.Nvcamera.CaptureTypes.regular:case Z.Or.Common.Nvcamera.CaptureTypes.sphericalPanorama:case Z.Or.Common.Nvcamera.CaptureTypes.stereoRegular:case Z.Or.Common.Nvcamera.CaptureTypes.stereoSphericalPanorama:qn=this.currentCapture.resolutionsAvailable[ci],Wn=qn.width+"x"+qn.height,this.resolutionInput.push(Wn);break;case Z.Or.Common.Nvcamera.CaptureTypes.highRes:qn=this.currentCapture.resolutionsAvailable[ci],Wn=qn.multiplier+"X - "+qn.width+"x"+qn.height,this.resolutionInput.push(Wn)}this.resolutionSelection=0}resolutionChanged(Ut){this.logger.info(" resolution changed",Ut),this.resolutionSelection=Ut,this.currentCaptureResolution=this.currentCapture.resolutionsAvailable[Ut],this.logger.info("currentCaptureResolution changed",this.currentCaptureResolution)}close(){return this.logger.info("close"),this.navigationService.navigate([{outlets:{centerPane:null}}],{relativeTo:this.route.parent,skipLocationChange:!0})}ngOnDestroy(){this.logger.info("ngOnDestroy"),this.destroy$.next(!0),this.destroy$.complete(),(this.shouldReenableAiDvc||this.shouldReenableAiHdr)&&(this.shouldReenableAiDvc=!1,this.shouldReenableAiHdr=!1,this.ppeService.restorePPEFilters(),this.logger.info("Restoring PPE filters")),this.nvcameraService.isFreestyleSupportedGame()&&!this.showError&&(this.nvcameraService.filterAppliedTelemetry(),this.nvcameraService.processingControlSettingsTelemetry()),this.captureInProgress&&this.onCaptureCancel(),this.nvcameraService.closeAlert(),this.nvcameraService.enableAnselRedirection(!1),this.oscDisplayService.setHideSidebar(!1),this.nvIgoComponent.setShowGrid(!1),this.logger.info("Before closePhotoModeMenu");const Ut={isAnselLite:this.isAnselLite,isShowError:this.showError};this.oscDisplayService.setOutsideClickState(!0),this.nvcameraService.closePhotoModeMenu(Ut)}gridSwitchChange(Ut){this.logger.info("grid of thirds changed",this.gridSwitch),this.isAnselLite||this.igoConfig.GFNCefClient?this.nvIgoComponent.setShowGrid(this.gridSwitch):this.nvcameraService.setGridOfThirds(this.gridSwitch).subscribe()}hdrSwitchChange(Ut){this.logger.info("inside hdrSwitchChange",Ut)}onRotationSliderChange(Ut){this.rollSlider.value!==Ut&&(this.rollSlider.value=Ut,this.rollValEmitter$.next(this.rollSlider.value))}onFOVSliderChange(Ut){!this.enableFOV||this.fovSlider.value===Ut||(this.fovSlider.value=Ut,this.fovValEmitter$.next(this.fovSlider.value))}onCaptureDone(Ut){this.logger.info("Capture Done"),this.captureInProgress=!1,Ut?this.nvcameraService.closeAlert():this.nvcameraService.dialogRef&&(this.nvcameraService.dialogRef.componentInstance.dialogData.progressMode="indeterminate",this.nvcameraService.dialogRef.componentInstance.dialogData.query="nvcamera.FinalizingScene",this.nvcameraService.dialogRef.componentInstance.dialogData.progressPercentage=!1)}onCaptureFinished(){this.logger.info("Capture Finished"),this.captureInProgress=!1,this.nvcameraService.closeAlert()}onCaptureCancel(){this.nvcameraService.cancelCurrentCapture().subscribe(),this.captureInProgress=!1,this.nvcameraService.closeAlert(),this.screenshotFinishTime=Date.now(),this.sendAnselScreenshotTelemetry(i.J7_.cancelled)}startNGXCapture(){if(this.logger.info("startNGXCapture",this.ngxSrcFilePathArray),this.ngxSrcFilePathArray.length>0){const Ut=this.captureMenuMap.get(Z.Or.Common.Nvcamera.CaptureTypes.regular);let qn=this.ngxSrcFilePathArray[0];return"png"!==qn.slice(qn.length-3,qn.length)&&(qn=this.ngxSrcFilePathArray[0].slice(0,qn.length-4),qn=qn.concat(".png"),this.ngxSrcFilePathArray.push(qn)),this.nvcameraService.captureScreenshot(!0,{inputFile:qn,upResEffect:2,upResScale:this.currentCaptureResolution.multiplier,width:Ut.resolutionsAvailable[0].width,height:Ut.resolutionsAvailable[0].height})}return(0,T.of)(void 0)}processNGXNotification(Ut,qn){Ut.ngxAIUpResProgress?(this.logger.info("progress: ",Ut.ngxAIUpResProgress.progress),this.captureProgress=Ut.ngxAIUpResProgress.progress,this.nvcameraService.dialogRef&&(this.nvcameraService.dialogRef.componentInstance.value=Math.round(this.captureProgress))):Ut.ngxAIUpResCaptureDone&&(this.captureProgress=100,this.nvcameraService.dialogRef&&(this.nvcameraService.dialogRef.componentInstance.value=this.captureProgress),setTimeout(()=>{this.galleryService.removeItem(this.ngxSrcFilePathArray.pop()).subscribe(Wn=>{this.logger.info("NGX shot src file deleted",Wn)})},2e3),setTimeout(()=>{this.onCaptureDone(!0)},500),qn.unsubscribe())}processNvCameraCaptureNotification(Ut,qn,Wn){Ut.captureShotProgress?(this.captureProgress=Ut.captureShotProgress.currentShot/qn*100,this.nvcameraService.dialogRef&&(this.nvcameraService.dialogRef.componentInstance.value=Math.round(this.captureProgress))):(Ut.captureShotFinished||Ut.captureShotProcessingFinished)&&(this.captureProgress=100,this.nvcameraService.dialogRef&&(this.nvcameraService.dialogRef.componentInstance.value=this.captureProgress),Ut.captureShotFinished?setTimeout(()=>{this.onCaptureDone(!1)},500):(setTimeout(()=>{this.onCaptureFinished()},500),Wn.unsubscribe()))}gfnSnap(){this.logger.info("Capturing GFN Ansel snap"),this.captureProgress=0,this.captureInProgress=!0,this.nvcameraService.showAlert("nvcamera.PhotoMode","nvcamera.PhotographingScene",void 0,"confirmation.cancel",void 0,!1,!0,"determinate",this.destroy$,{next:Wn=>{Wn===_o.SF.Action1&&(this.logger.info("User cancelled current capture"),this.onCaptureCancel())},error:Wn=>{},complete:()=>{}}),this.screenshotStartTime=Date.now(),this.sendAnselScreenshotTelemetry(i.J7_.started),this.nvcameraService.captureScreenshot(!1,void 0).subscribe(Wn=>{},Wn=>{this.logger.info("GFN screenshot capture failed"),this.onCaptureFinished(),this.nvcameraService.showSnack(i.BO6.CaptureFailed),this.screenshotFinishTime=Date.now(),this.sendAnselScreenshotTelemetry(i.J7_.failed,i.Ng.anselScreenshotTimeoutFailure,Wn)},()=>{this.logger.info("GFN screenshot capture successful"),this.captureProgress=100,this.nvcameraService.dialogRef&&(this.nvcameraService.dialogRef.componentInstance.value=this.captureProgress),setTimeout(()=>{this.onCaptureFinished()},500),this.screenshotFinishTime=Date.now(),this.sendAnselScreenshotTelemetry(i.J7_.completed)})}onSnapClicked(){if(this.isGFNClient)return void this.gfnSnap();if(null===this.currentCapture||void 0===this.currentCaptureResolution)return void this.logger.info("failed to request capture");this.logger.info("Capturing snap: ",this.currentCapture.type);const Ut=!(this.currentCapture.type===Z.Or.Common.Nvcamera.CaptureTypes.sphericalPanorama||this.currentCapture.type===Z.Or.Common.Nvcamera.CaptureTypes.stereoSphericalPanorama),qn=this.currentCapture.type===Z.Or.Common.Nvcamera.CaptureTypes.highRes&&"nvcamera.MethodAIUpRes"===this.currentMethod.id;let Wn=Object(),ci=0;if(qn){const Jr=this.captureMenuMap.get(Z.Or.Common.Nvcamera.CaptureTypes.regular);Wn={captureType:Jr.type,resolutionMultiplier:Jr.resolutionsAvailable[0].multiplier,width:Jr.resolutionsAvailable[0].width,height:Jr.resolutionsAvailable[0].height,panoramaWidth:void 0,panoramaHeight:void 0,saveAsExr:!1,enhance:!1}}else Wn={captureType:this.currentCapture.type,resolutionMultiplier:this.currentCaptureResolution.multiplier,width:Ut?this.currentCaptureResolution.width:void 0,height:Ut?this.currentCaptureResolution.height:void 0,panoramaWidth:Ut?void 0:this.currentCaptureResolution.width,panoramaHeight:Ut?void 0:this.currentCaptureResolution.height,saveAsExr:this.hdrSwitch,enhance:this.currentMethod?"nvcamera.MethodEnhance"===this.currentMethod.id:void 0};const Tr=this.nvcameraService.captureScreenshot(!1,Wn).pipe((0,g.p)(Jr=>!qn||!!Jr.captureShotProcessingFinished||!!Jr.captureShotStarted),(0,B.ZZ)(Jr=>{if(Jr.captureShotStarted)this.captureProgress=0,this.captureInProgress=!0,ci=Jr.captureShotStarted.shotCount,this.nvcameraService.showAlert("nvcamera.PhotoMode","nvcamera.PhotographingScene",void 0,"confirmation.cancel",void 0,!1,!0,"determinate",this.destroy$,{next:fo=>{fo===_o.SF.Action1&&(this.logger.info("User cancelled current capture"),this.onCaptureCancel())},error:fo=>{},complete:()=>{}});else if(qn&&Jr&&Jr.captureShotProcessingFinished)return this.logger.info("captureShotProcessingFinished",Jr.captureShotProcessingFinished.path),this.ngxSrcFilePathArray.push(Jr.captureShotProcessingFinished.path),this.startNGXCapture();return(0,T.of)(Jr)})).subscribe(Jr=>{qn?this.processNGXNotification(Jr,Tr):this.processNvCameraCaptureNotification(Jr,ci,Tr)},Jr=>{this.logger.error("error occured",Jr),Tr.unsubscribe()})}onBackClicked(){this.logger.info("Back clicked"),this.close().then(function(){this.navigationService.navigate(["../main-menu"],{relativeTo:this.route.parent,skipLocationChange:!0},i.jby.mainMenu)}.bind(this))}onMouseDown(Ut){0===Ut.button&&(this.logger.info("Disable Ansel redirection"),window.document.body.style.cursor="auto",this.nvcameraService.enableAnselRedirection(!1),this.nvcameraService.setNavigationInputDevice([i.uk.Mouse],[i.O67.yes]))}onKeyDown(Ut,qn){this.keyboardService.onKeyDown(Ut,qn)}telemetryInit(){this.nvcameraService.navigationInputDevice.KEYBOARD=!1,this.nvcameraService.navigationInputDevice.MOUSE=!1,this.nvcameraService.panningUsed=!1,this.nvcameraService.panningWithKB=!1,this.nvcameraService.panningWithMouse=!1}sendAnselScreenshotTelemetry(Ut,qn,Wn){let ci=Object();ci={roll:Math.round(this.rollSlider.value),fov:Math.round(this.fovSlider.value),gridUsed:this.gridSwitch,screenshotResolution:this.currentCaptureResolution?.width.toString()+"x"+this.currentCaptureResolution?.height.toString(),screenshotType:this.currentCapture.type[0].toUpperCase()+this.currentCapture.type.slice(1),mode:i.O5.PhotoMode,errorType:i.Ng.anselScreenshotNoFailure,errorString:"",totalMs:0},Ut!==i.J7_.started&&(ci.totalMs=this.screenshotFinishTime-this.screenshotStartTime),Ut===i.J7_.failed&&(ci.errorType=qn,ci.errorString=Wn||"Unknown error"),this.nvcameraService.sendAnselScreenshotTelemetry(Ut,ci)}showErrorMessage(){switch(this.errorType){case i.VuP.ERROR_TIMEOUT:this.nvcameraService.nvCameraTimedOut=!0,this.errorMsg="notification.WarningGameRequired",this.nvcameraService.sendAnselFreestyleErrorTelemetry(i.T7s.anselFreestyleUnsupportedGameError,i.O5.PhotoMode),this.nvcameraService.anselFreestyleErrorTelemetry(i.T7s.anselFreestyleUnsupportedGameError,i.O5.PhotoMode,"Nvcamera timed out");break;case i.VuP.ERROR_SUPPORTED_GAME:this.errorMsg="notification.WarningGameRequired",this.nvcameraService.sendAnselFreestyleErrorTelemetry(i.T7s.anselFreestyleUnsupportedGameError,i.O5.PhotoMode),this.nvcameraService.anselFreestyleErrorTelemetry(i.T7s.anselFreestyleUnsupportedGameError,i.O5.PhotoMode,"Unsupported game");break;case i.VuP.ERROR_RESTART:this.errorMsg="notification.ErrorRestartGame",this.nvcameraService.sendAnselFreestyleErrorTelemetry(i.T7s.anselFreestyleMenuLaunchError,i.O5.PhotoMode),this.nvcameraService.anselFreestyleErrorTelemetry(i.T7s.anselFreestyleMenuLaunchError,i.O5.PhotoMode,"Game restart required");break;default:this.logger.error("Unknown error msg type: "+this.errorType),this.errorMsg="",this.nvcameraService.sendAnselFreestyleErrorTelemetry(i.T7s.anselFreestyleGeneralFailure,i.O5.PhotoMode),this.nvcameraService.anselFreestyleErrorTelemetry(i.T7s.anselFreestyleGeneralFailure,i.O5.PhotoMode,"Unknown error")}}getHidePanelSubTitle(){return this.isMacPlatform?"H":"nvcamera.Insert"}onResolutionSliderChange(Ut){Ut>0?(this.currentCapture=this.captureMenuMap.get(Z.Or.Common.Nvcamera.CaptureTypes.highRes),this.currentCaptureResolution=this.currentCapture.resolutionsAvailable[Ut-1]):(this.currentCapture=this.captureMenuMap.get(Z.Or.Common.Nvcamera.CaptureTypes.regular),this.currentCaptureResolution=this.currentCapture.resolutionsAvailable[0]),this.resolutionSlider.label=this.getResolutionSliderLabel(this.currentCaptureResolution)}static{this.\u0275fac=function(qn){return new(qn||Vn)(r.rXU(S.J6),r.rXU(i.mbZ),r.rXU(i.h8x),r.rXU(i.AFS),r.rXU(l.nX),r.rXU(i.o_p),r.rXU(i.Bqk),r.rXU(i.rMY),r.rXU(bo.h),r.rXU(i.gZv),r.rXU(i.k$F),r.rXU(i.Vlf))}}static{this.\u0275cmp=r.VBU({type:Vn,selectors:[["app-photo-mode"]],decls:2,vars:1,consts:[["fxLayout","column","fxFlex","",3,"mousedown","keydown"],[4,"ngIf"],["fxLayout","column","fxFlex",""],["fxFlex","none","class","nv-gap-16",4,"ngIf"],["fxFlex","grow",1,"photo-mode-layout","photo-mode-layout-maxwidth"],["fxLayout","row","fxLayoutAlign","start center","class","section-padding",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","class","font-body2 font-color-tertiary nvapp-side-padding camera-helper-padding",3,"ngClass",4,"ngIf"],["fxLayout","column",1,"nv-item","filter_section"],[3,"setUseCase","currentSlotIndex","filterStack"],["fxLayout","column","class","disabled-opacity",4,"ngIf"],["class","divider_fixed",4,"ngIf"],["fxFlex","none","fxLayout","row","fxLayoutAlign","space-between center",1,"snap_fixed","photo-mode-layout-maxwidth"],["fxLayout","row","fxLayoutAlign","start center","fxLayout","row",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","class","nvapp-side-padding",4,"ngIf"],["fxFlex","none",1,"nv-gap-16"],["svgIcon","eye_off","titleString","nvcamera.HidePanel",3,"clicked","subTitle","disabled"],[1,"font-body2","nv-label","font-color-primary"],[3,"selectionChanged","selection","disabled","input"],[1,"nv-gap-8"],[1,"nv-gap-16"],["fxLayout","row","fxLayoutAlign","start center","class","toggle-height",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"toggle-height"],["fxFlex","grow",1,"font-body2","font-color-primary"],["fxFlex","none",3,"ngModelChange","change","ngModel","disabled"],["fxLayout","column"],["fxLayout","row"],["fxFlex","grow",1,"font-body2","section-padding","font-color-primary"],["fxFlex","",3,"input","valueChange","min","max","step","value","disabled"],["fxLayoutAlign","center center",1,"font-body2"],["fxLayout","row","fxLayoutAlign","start center",1,"section-padding"],["fxFlex","grow",1,"font-body1","font-color-primary","nvapp-left-side-padding"],["fxFlex","none",1,"nvapp-right-side-padding",3,"ngModelChange","change","ngModel","disabled"],["hideToggle","true",1,"matExpansionPanel",3,"expanded"],["collapsedHeight","40px","expandedHeight","40px",1,"font-sub1"],["fxLayout","row","fxLayoutAlign","start center","fxFlexFill","",1,"nvapp-side-padding"],["fxFlex","",1,"font-sub1","font-color-primary"],["mat-button","","fxFlex","none","fxLayout","row","fxLayoutAlign","center center",1,"nv-item-icon","complex-button","camera-button",3,"disabled"],["svgIcon","chevron_down",1,"accordion-chevron"],["fxLayout","row",1,"nvapp-side-padding"],["fxFlex","grow",1,"font-body1","section-padding","font-color-primary"],["fxFlex","","valueEntry","true","formatTextAs","Decimal",1,"nvapp-slider-padding",3,"input","valueChange","min","max","step","value","disabled"],["fxFlex","grow",1,"font-body1","section-padding","nvapp-side-padding","font-color-primary"],["fxLayout","row","fxLayoutAlign","start center",1,"font-body2","font-color-tertiary","nvapp-side-padding","camera-helper-padding",3,"ngClass"],["mat-font-set","material-icons",1,"nv-custom-icons","icon-alert-circle_reg","icon-padding"],["fxLayout","column",1,"disabled-opacity"],["fxFlex","grow",1,"font-sub1","nv-label","font-color-primary"],[1,"filter-add-margin"],["fxFlex","none","svgIcon","add",1,"filter-add-margin",3,"disabled"],[1,"divider_fixed"],["fxLayout","row","fxLayoutAlign","start center","fxLayout","row"],["svgIcon","eye_off",1,"eye_off_button",3,"clicked","disabled"],[1,"font-body1","section-padding","message-text","font-color-tertiary"],["fxLayout","row","fxLayoutAlign","end center",1,"nvapp-side-padding"],["mat-button","",1,"font-button2","hig-button","snap-button","snap-button-nvapp",3,"click","disabled"],[1,"snap-text"]],template:function(qn,Wn){1&qn&&(r.j41(0,"div",0),r.bIt("mousedown",function(Tr){return Wn.onMouseDown(Tr)})("keydown",function(Tr){return Wn.onKeyDown(Tr)}),r.DNE(1,to,19,19,"ng-container",1),r.k0s()),2&qn&&(r.R7$(),r.Y8G("ngIf",!Wn.isGFNClient||!Wn.showError))},dependencies:[c.$,Xe.T,ne.j,m.I,n.YU,n.bT,D.DJ,D.sA,D.G2,D.UI,I.PW,He.BC,He.vS,Kn.iV,W.An,$.P2,le.BS,le.GK,le.Z2,Fe.t,Q.tG,zr,a.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}[_nghost-%COMP%]{overflow-x:hidden}.photo-mode-layout[_ngcontent-%COMP%]{box-sizing:border-box;background-clip:content-box;scrollbar-gutter:auto}.isLtr[_nghost-%COMP%] .photo-mode-layout[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .photo-mode-layout[_ngcontent-%COMP%]{margin-right:-24px}html[dir=ltr][_ngcontent-%COMP%] .photo-mode-layout[_ngcontent-%COMP%]{--dummy4: 0;margin-right:-24px}.isRtl[_nghost-%COMP%] .photo-mode-layout[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .photo-mode-layout[_ngcontent-%COMP%]{margin-left:-24px}html[dir=rtl][_ngcontent-%COMP%] .photo-mode-layout[_ngcontent-%COMP%]{--dummy4: 0;margin-left:-24px}.photo-mode-layout-maxwidth[_ngcontent-%COMP%]{max-width:512px}.camera-button[_ngcontent-%COMP%]{height:24px;width:24px}.section-padding[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}[_nghost-%COMP%]{padding:16px 0;overflow-y:auto}.isLtr[_nghost-%COMP%] div.filter-add-margin[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] div.filter-add-margin[_ngcontent-%COMP%]{padding-right:32px!important}html[dir=ltr][_ngcontent-%COMP%] div.filter-add-margin[_ngcontent-%COMP%]{--dummy2: 0;padding-right:32px!important}.isRtl[_nghost-%COMP%] div.filter-add-margin[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] div.filter-add-margin[_ngcontent-%COMP%]{padding-left:32px!important}html[dir=rtl][_ngcontent-%COMP%] div.filter-add-margin[_ngcontent-%COMP%]{--dummy2: 0;padding-left:32px!important}.isLtr[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.isLtr[_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.nvapp-igo-view[_nghost-%COMP%], .nvapp-igo-view [_nghost-%COMP%]{padding:16px 0}.nvapp-igo-view[_nghost-%COMP%] .filter_section[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .filter_section[_ngcontent-%COMP%]{padding-bottom:97px}.nvapp-igo-view[_nghost-%COMP%] .snap_fixed[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .snap_fixed[_ngcontent-%COMP%]{position:fixed;bottom:0;width:512px;height:64px;background-color:var(--photo-mode-snap-fixed-bg-color);z-index:1}.nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px;margin-bottom:16px}.isLtr.nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isLtr.nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isLtr .nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isLtr .nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view .isLtr[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view .isLtr [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%]{margin-left:16px}html[dir=ltr] .nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%]{--dummy3: 0;margin-left:16px}.isRtl.nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isRtl.nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isRtl .nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isRtl .nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view .isRtl[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view .isRtl [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%]{margin-right:16px}html[dir=rtl] .nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%]{--dummy3: 0;margin-right:16px}.isLtr.nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isLtr.nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isLtr .nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isLtr .nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view .isLtr[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view .isLtr [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr] .nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl.nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isRtl.nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isRtl .nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isRtl .nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view .isRtl[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view .isRtl [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl] .nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.nvapp-igo-view[_nghost-%COMP%] .message-text[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .message-text[_ngcontent-%COMP%]{margin-top:0;margin-bottom:16px;width:-moz-fit-content;width:fit-content}.nvapp-igo-view[_nghost-%COMP%] .divider_fixed[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .divider_fixed[_ngcontent-%COMP%]{position:fixed;bottom:64px;background-color:var(--photo-mode-divider-fixed-bg-color);width:512px;z-index:1}.nvapp-igo-view[_nghost-%COMP%] .snap-button-nvapp[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .snap-button-nvapp[_ngcontent-%COMP%]{margin-bottom:16px;min-height:32px;height:-moz-fit-content;height:fit-content}.nvapp-igo-view[_nghost-%COMP%] .snap-text[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .snap-text[_ngcontent-%COMP%]{max-width:160px}.limit-padding[_ngcontent-%COMP%]{padding:8px 0}.max-warning-area[_ngcontent-%COMP%]{margin:16px 0 0}.toggle-height[_ngcontent-%COMP%]{height:36px}.snap-button[_ngcontent-%COMP%]{background-color:var(--accent-500)}.matExpansionPanel[_ngcontent-%COMP%]{overflow:visible}.isLtr[_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%]{padding-right:8px}html[dir=ltr][_ngcontent-%COMP%] .icon-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:8px}.isRtl[_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%]{padding-left:8px}html[dir=rtl][_ngcontent-%COMP%] .icon-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:8px}.isLtr[_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%]{padding-left:0}html[dir=ltr][_ngcontent-%COMP%] .icon-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:0}.isRtl[_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%]{padding-right:0}html[dir=rtl][_ngcontent-%COMP%] .icon-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:0}.icon-alert-circle_reg[_ngcontent-%COMP%]{line-height:inherit;font-style:normal}.camera-helper-empty-state-margin[_ngcontent-%COMP%]{margin-bottom:-16px}.camera-helper-padding[_ngcontent-%COMP%]{padding-top:16px}"]})}}return Vn})(),data:{level:1}},{path:"client-area",component:(()=>{class Vn{constructor(Ut,qn,Wn){this.loggingService=Ut,this.nvcameraService=qn,this.igoConfig=Wn,this.destroy$=new O.B7,this.dragX=0,this.dragY=0,this.logger=this.loggingService.getLogger("client-area")}onMouseDown(Ut){this.nvcameraService.getCurrentUIMode()===i.O5.PhotoMode&&0===Ut.button&&(this.logger.info("Ansel SDK redirection toggle"),window.document.body.style.cursor="none",this.nvcameraService.enableAnselRedirection(!0),this.nvcameraService.panningUsed=!0,this.nvcameraService.panningWithMouse=!0)}onMouseUp(Ut){0===Ut.button&&(window.document.body.style.cursor="auto")}onMouseClick(Ut){this.nvcameraService.getCurrentUIMode()===i.O5.PhotoModeLight&&0===Ut.button&&(this.logger.info("Ansel NoSDK redirection toggle"),window.document.body.style.cursor="none",this.nvcameraService.togglePanning())}ngOnInit(){this.logger.info("Ansel ClientArea initialized")}ngAfterViewInit(){if(this.igoConfig.GFNCefClient){const Ut=(0,Mr.R)(document,"keydown").pipe((0,$r.c)(200),(0,_.Q)(this.destroy$)),qn=(0,Mr.R)(document,"keyup").pipe((0,_.Q)(this.destroy$)),Wn=(0,Mr.R)(this.clientRef.nativeElement,"mousedown").pipe((0,_.Q)(this.destroy$)),ci=(0,Mr.R)(this.clientRef.nativeElement,"mouseup").pipe((0,_.Q)(this.destroy$)),Tr=(0,Mr.R)(this.clientRef.nativeElement,"mousemove").pipe((0,_.Q)(this.destroy$)),Jr=Wn.pipe((0,B.ZZ)((oo,Qo)=>0===oo.button?Tr.pipe((0,_.Q)(ci)):(0,T.of)(oo)));Ut.subscribe(oo=>{Bn[oo.code]&&this.nvcameraService.gfnKBEvent("keyDown",Bn[oo.code],oo.code,oo.shiftKey)}),qn.subscribe(oo=>{Bn[oo.code]&&this.nvcameraService.gfnKBEvent("keyUp",Bn[oo.code],oo.code,oo.shiftKey)}),Jr.pipe((0,R.M)(oo=>{this.dragX+=oo.movementX,this.dragY+=oo.movementY}),(0,$r.c)(100)).subscribe(oo=>{this.nvcameraService.gfnMouseEvent("drag",Sn[oo.button],this.dragX,this.dragY),this.dragX=0,this.dragY=0}),ci.subscribe(oo=>{this.dragX=0,this.dragY=0,this.nvcameraService.gfnMouseEvent("up",Sn[oo.button],0,0)}),Wn.subscribe(oo=>{this.dragX=0,this.dragY=0,this.nvcameraService.gfnMouseEvent("down",Sn[oo.button],oo.movementX,oo.movementY)})}}ngOnDestroy(){this.logger.info("Ansel ClientArea destroyed"),this.destroy$.next(!0),this.destroy$.unsubscribe(),this.nvcameraService.enableAnselRedirection(!1)}static{this.\u0275fac=function(qn){return new(qn||Vn)(r.rXU(S.J6),r.rXU(i.h8x),r.rXU(i.k$F))}}static{this.\u0275cmp=r.VBU({type:Vn,selectors:[["nv-client-area"]],viewQuery:function(qn,Wn){if(1&qn&&r.GBs(Vt,5),2&qn){let ci;r.mGM(ci=r.lsd())&&(Wn.clientRef=ci.first)}},decls:2,vars:0,consts:[["clientdiv",""],[1,"client-area",3,"mousedown","mouseup","click"]],template:function(qn,Wn){if(1&qn){const ci=r.RV6();r.j41(0,"div",1,0),r.bIt("mousedown",function(Jr){return r.eBV(ci),r.Njj(Wn.onMouseDown(Jr))})("mouseup",function(Jr){return r.eBV(ci),r.Njj(Wn.onMouseUp(Jr))})("click",function(Jr){return r.eBV(ci),r.Njj(Wn.onMouseClick(Jr))}),r.k0s()}},styles:[".client-area[_ngcontent-%COMP%]{position:fixed;width:100vw;height:100vh;overflow:auto}"]})}}return Vn})(),outlet:"centerPane"}];let br=(()=>{class Vn{static{this.\u0275fac=function(qn){return new(qn||Vn)}}static{this.\u0275mod=r.$C({type:Vn})}static{this.\u0275inj=r.G2t({imports:[y.G,n.MD,v.YF,d.PO,f.i,l.iI.forChild(Fr),(0,S.BU)()]})}}return Vn})()},39216:(Bt,z,s)=>{"use strict";s.r(z),s.d(z,{SettingsModule:()=>To});var n=s(61142),l=s(14354),d=s(51006),v=s(99469),S=s(23812),y=s(17617),f=s(1229),O=s(80583),P=s(4208),_=s(59002),i=s(58527);let r=(()=>{class rn{constructor(Te,Jt,Rt,ei=null,tr=null){this.navigationService=Te,this.route=Jt,this.appBarService=Rt,this.dialog=ei,this.gfnInfoService=tr,this.destroy$=new O.B7,this.caller="../settings/settings",this.disableRecordSpecialCase=_.Fm.RECORD_SPECIAL_CASE_NONE}bar(Te=""){this.appBarService.setAll({title:Te,navButtonArrow:!0,icons:[{id:"closeIgo",icon:"close",tooltip:"tooltips.Close"}]}),this.appBarService.actionClicked$.pipe((0,P.Q)(this.destroy$)).subscribe(Jt=>{"nav"===Jt&&this.onBackClicked()})}ngOnInit(){this.navigationService.escapeEvent().pipe((0,P.Q)(this.destroy$)).subscribe(()=>{this.onBackClicked()}),this.caller=this.route.snapshot.paramMap.get("caller")||this.caller,this.gfnInfoService&&this.gfnInfoService.getRecordSpecialCase().pipe((0,P.Q)(this.destroy$)).subscribe(Te=>{this.disableRecordSpecialCase=Te})}ngOnDestroy(){this.dialog&&this.dialog.closeSnackBar(),this.destroy$.next(!0),this.destroy$.unsubscribe()}onBackClicked(){this.navigationService.navigate([this.caller],{relativeTo:this.route.parent,skipLocationChange:!0})}static{this.\u0275fac=function(Jt){return new(Jt||rn)(i.rXU(f.o_p),i.rXU(l.nX),i.rXU(f.gZv),i.rXU(f.eo6),i.rXU(f.x_y))}}static{this.\u0275cmp=i.VBU({type:rn,selectors:[["igo-settings-base"]],decls:0,vars:0,template:function(Jt,Rt){},encapsulation:2})}}return rn})();var a=s(43664),c=s(43822),m=s(3457);function M(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"nv-item-button",13),i.bIt("clicked",function(){i.eBV(Te);const Rt=i.XpG();return i.Njj(Rt.generalClicked())}),i.k0s()}2&rn&&i.Y8G("chevron",!0)("tvRightIconExtraPadding",!1)}function D(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"nv-item-button",14),i.bIt("clicked",function(){i.eBV(Te);const Rt=i.XpG();return i.Njj(Rt.gameplayClicked())}),i.k0s()}2&rn&&i.Y8G("chevron",!0)("tvRightIconExtraPadding",!1)}function I(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"nv-item-button",15),i.bIt("clicked",function(){i.eBV(Te);const Rt=i.XpG();return i.Njj(Rt.systemClicked())}),i.k0s()}2&rn&&i.Y8G("chevron",!0)("tvRightIconExtraPadding",!1)}function U(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"nv-item-button",16),i.bIt("clicked",function(){i.eBV(Te);const Rt=i.XpG();return i.Njj(Rt.shortcutsClicked())}),i.k0s()}2&rn&&i.Y8G("chevron",!0)("tvRightIconExtraPadding",!1)}function V(rn,Di){1&rn&&i.nrm(0,"nv-divider")}function T(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"nv-item-button",17),i.bIt("clicked",function(){i.eBV(Te);const Rt=i.XpG();return i.Njj(Rt.highlightsClicked())}),i.k0s()}2&rn&&i.Y8G("chevron",!0)}function N(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"nv-item-button",18),i.bIt("clicked",function(){i.eBV(Te);const Rt=i.XpG();return i.Njj(Rt.audioCaptureClicked())}),i.k0s()}2&rn&&i.Y8G("chevron",!0)}function L(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"nv-item-button",19),i.bIt("clicked",function(){i.eBV(Te);const Rt=i.XpG();return i.Njj(Rt.videoCaptureClicked())}),i.k0s()}2&rn&&i.Y8G("chevron",!0)}function E(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"nv-item-button",20),i.bIt("clicked",function(){i.eBV(Te);const Rt=i.XpG();return i.Njj(Rt.storageClicked())}),i.k0s()}2&rn&&i.Y8G("chevron",!0)}function g(rn,Di){1&rn&&i.nrm(0,"nv-divider")}function R(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"nv-item-button",21),i.bIt("clicked",function(){i.eBV(Te);const Rt=i.XpG();return i.Njj(Rt.debugClicked())}),i.k0s()}2&rn&&i.Y8G("chevron",!0)}let B=(()=>{class rn extends r{constructor(Te,Jt,Rt,ei,tr,Ur,lo){super(Jt,Rt,ei),this.loggingService=Te,this.igoConfig=tr,this.featureSupportService=Ur,this.injector=lo,this.showGFEExtensions=!1,this.showAudio=!1,this.showSystem=!1,this.shadowPlayEnable=!1,this.sdkGalleryEnable=!1,this.galleryEnabled=!1,this.showGeneral=!1,this.showGameplay=!1,this.showGraphics=!1,this.showDebug=!1,this.showShortcutControls=!1,this.tvMode=!1,this.isGfn=!1,super.bar("settings.Settings"),this.logger=this.loggingService.getLogger("Settings"),this.logger.info("Constructor"),this.shadowPlayEnable=this.featureSupportService.isShadowPlayEnabled(),this.galleryEnabled=this.featureSupportService.isGalleryEnabled(),this.sdkGalleryEnable=this.featureSupportService.isSdkGalleryEnabled(),this.showShortcutControls=!this.featureSupportService.shouldHideKeyboardShortcuts(),this.tvMode=this.featureSupportService.isTVMode(),this.isGfn="GFN"===this.igoConfig.branding}ngOnInit(){super.ngOnInit(),"GFE"===this.igoConfig.branding&&(this.showAudio=!0,this.showGFEExtensions=!0),"GFN"===this.igoConfig.branding&&(this.showGeneral=!0,this.showSystem=!0,this.showGameplay=this.featureSupportService.isGameplaySupported(),this.featureSupportService.isSystemEnabled().pipe((0,P.Q)(this.destroy$)).subscribe(Te=>this.showSystem=Te))}ngOnDestroy(){super.ngOnDestroy(),this.backCallback$&&this.backCallback$.unsubscribe()}generalClicked(){this.logger.info("General clicked"),this.navigationService.navigate(["../settings/general"],{relativeTo:this.route.parent,skipLocationChange:!0},f.jby.general)}systemClicked(){this.logger.info("System clicked"),this.navigationService.navigate(["../settings/system"],{relativeTo:this.route.parent,skipLocationChange:!0},f.jby.system)}gameplayClicked(){this.logger.info("Gameplay clicked"),this.navigationService.navigate(["../settings/gameplay"],{relativeTo:this.route.parent,skipLocationChange:!0},f.jby.gameplay)}debugClicked(){this.logger.info("Debug clicked"),this.navigationService.navigate(["../settings/debug"],{relativeTo:this.route.parent,skipLocationChange:!0},f.jby.debug)}highlightsClicked(){this.logger.info("highlights clicked"),this.navigationService.navigate(["../settings/highlights"],{relativeTo:this.route.parent,skipLocationChange:!0},f.jby.highlights)}videoCaptureClicked(){this.logger.info("video capture clicked"),this.navigationService.navigate(["../settings/video"],{relativeTo:this.route.parent,skipLocationChange:!0},f.jby.videoCapture)}audioCaptureClicked(){this.logger.info("audio capture clicked"),this.navigationService.navigate(["../settings/audio"],{relativeTo:this.route.parent,skipLocationChange:!0},f.jby.audioCapture)}storageClicked(){this.logger.info("storage clicked"),this.navigationService.navigate(["../settings/storage"],{relativeTo:this.route.parent,skipLocationChange:!0},f.jby.storage)}shortcutsClicked(){this.logger.info("shortcuts clicked"),this.navigationService.navigate(["../settings/shortcuts"],{relativeTo:this.route.parent,skipLocationChange:!0},f.jby.shortcuts)}headsupClicked(){this.logger.info("headsup clicked"),this.navigationService.navigate(["../settings/hud"],{relativeTo:this.route.parent,skipLocationChange:!0},f.jby.headsup)}notificationsClicked(){this.logger.info("notifications clicked"),this.navigationService.navigate(["../settings/notifications"],{relativeTo:this.route.parent,skipLocationChange:!0},f.jby.notifications)}onBackClicked(){this.logger.info("Back clicked"),this.navigationService.navigate(["../main-menu"],{relativeTo:this.route.parent,skipLocationChange:!0},f.jby.mainMenu)}static{this.\u0275fac=function(Jt){return new(Jt||rn)(i.rXU(v.J6),i.rXU(f.o_p),i.rXU(l.nX),i.rXU(f.gZv),i.rXU(f.k$F),i.rXU(f.Rvq),i.rXU(i.zZn))}}static{this.\u0275cmp=i.VBU({type:rn,selectors:[["igo-settings"]],features:[i.Vt3],decls:14,vars:16,consts:[["fxLayout","column","fxFlex","",3,"fxLayoutGap"],["svgIcon","info","titleString","settings.General",3,"chevron","tvRightIconExtraPadding","clicked",4,"ngIf"],["svgIcon","gameplay","titleString","settings.Gameplay",3,"chevron","tvRightIconExtraPadding","clicked",4,"ngIf"],["svgIcon","desktop","titleString","settings.System",3,"chevron","tvRightIconExtraPadding","clicked",4,"ngIf"],["svgIcon","keyboard","titleString","settings.KeyboardShortcuts",3,"chevron","tvRightIconExtraPadding","clicked",4,"ngIf"],["svgIcon","heads_up_display","titleString","settings.HeadsUpDisplay",3,"clicked","chevron","tvRightIconExtraPadding"],["svgIcon","bell","titleString","settings.Notifications",3,"clicked","chevron","tvRightIconExtraPadding"],[4,"ngIf"],["svgIcon","highlights","titleString","commonLabels.Highlights",3,"chevron","clicked",4,"ngIf"],["svgIcon","audio","titleString","audio.Audio",3,"chevron","clicked",4,"ngIf"],["svgIcon","videocam","titleString","settings.VideoCapture",3,"chevron","clicked",4,"ngIf"],["svgIcon","storage","titleString","settings.FilesAndDiskSpace",3,"chevron","clicked",4,"ngIf"],["svgIcon","wrench","titleString","settings.Debug",3,"chevron","clicked",4,"ngIf"],["svgIcon","info","titleString","settings.General",3,"clicked","chevron","tvRightIconExtraPadding"],["svgIcon","gameplay","titleString","settings.Gameplay",3,"clicked","chevron","tvRightIconExtraPadding"],["svgIcon","desktop","titleString","settings.System",3,"clicked","chevron","tvRightIconExtraPadding"],["svgIcon","keyboard","titleString","settings.KeyboardShortcuts",3,"clicked","chevron","tvRightIconExtraPadding"],["svgIcon","highlights","titleString","commonLabels.Highlights",3,"clicked","chevron"],["svgIcon","audio","titleString","audio.Audio",3,"clicked","chevron"],["svgIcon","videocam","titleString","settings.VideoCapture",3,"clicked","chevron"],["svgIcon","storage","titleString","settings.FilesAndDiskSpace",3,"clicked","chevron"],["svgIcon","wrench","titleString","settings.Debug",3,"clicked","chevron"]],template:function(Jt,Rt){1&Jt&&(i.j41(0,"div",0),i.DNE(1,M,1,2,"nv-item-button",1)(2,D,1,2,"nv-item-button",2)(3,I,1,2,"nv-item-button",3)(4,U,1,2,"nv-item-button",4),i.j41(5,"nv-item-button",5),i.bIt("clicked",function(){return Rt.headsupClicked()}),i.k0s(),i.j41(6,"nv-item-button",6),i.bIt("clicked",function(){return Rt.notificationsClicked()}),i.k0s(),i.DNE(7,V,1,0,"nv-divider",7)(8,T,1,1,"nv-item-button",8)(9,N,1,1,"nv-item-button",9)(10,L,1,1,"nv-item-button",10)(11,E,1,1,"nv-item-button",11)(12,g,1,0,"nv-divider",7)(13,R,1,1,"nv-item-button",12),i.k0s()),2&Jt&&(i.Y8G("fxLayoutGap",Rt.tvMode?"24px":"8px"),i.R7$(),i.Y8G("ngIf",Rt.showGeneral),i.R7$(),i.Y8G("ngIf",Rt.showGameplay),i.R7$(),i.Y8G("ngIf",Rt.showSystem),i.R7$(),i.Y8G("ngIf",Rt.showShortcutControls),i.R7$(),i.Y8G("chevron",!0)("tvRightIconExtraPadding",!1),i.R7$(),i.Y8G("chevron",!0)("tvRightIconExtraPadding",!1),i.R7$(),i.Y8G("ngIf",Rt.galleryEnabled||Rt.shadowPlayEnable),i.R7$(),i.Y8G("ngIf",Rt.galleryEnabled&&Rt.isGfn),i.R7$(),i.Y8G("ngIf",Rt.showAudio&&Rt.shadowPlayEnable),i.R7$(),i.Y8G("ngIf",Rt.shadowPlayEnable),i.R7$(),i.Y8G("ngIf",Rt.shadowPlayEnable),i.R7$(),i.Y8G("ngIf",Rt.showDebug),i.R7$(),i.Y8G("ngIf",Rt.showDebug))},dependencies:[n.bT,a.$,c.j,m.DJ,m.BO,m.UI],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}[_nghost-%COMP%]{padding:16px 0}.isLtr[_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%]{padding-right:10px}html[dir=ltr][_ngcontent-%COMP%] .settings-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:10px}.isRtl[_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%]{padding-left:10px}html[dir=rtl][_ngcontent-%COMP%] .settings-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:10px}.toggle-height[_ngcontent-%COMP%]{height:36px}.tv-view[_nghost-%COMP%], .tv-view [_nghost-%COMP%]{padding:32px}"]})}}return rn})();var X=s(65706),H=s(89284),J=s(78812),re=s(20924),ie=s(29370),ve=s(40996),ue=s(56785),se=s(56106),Z=s(4418),Se=s(54676),Ce=s(98504),Be=s(96542);function Xe(rn,Di){1&rn&&i.nrm(0,"div",13)}function He(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"nv-item-button",20),i.bIt("clicked",function(){i.eBV(Te);const Rt=i.XpG(2);return i.Njj(Rt.onShowReleaseHighlight())}),i.k0s()}}function Me(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"div",14),i.DNE(1,He,1,0,"nv-item-button",15),i.j41(2,"nv-item-button",16),i.bIt("clicked",function(){i.eBV(Te);const Rt=i.XpG();return i.Njj(Rt.openURL(Rt.termsConditions,Rt.termsConditionsShortUrl))}),i.k0s(),i.j41(3,"nv-item-button",17),i.bIt("clicked",function(){i.eBV(Te);const Rt=i.XpG();return i.Njj(Rt.openURL(Rt.accountTerms,Rt.accountTermsShortUrl))}),i.k0s(),i.j41(4,"nv-item-button",18),i.bIt("clicked",function(){i.eBV(Te);const Rt=i.XpG();return i.Njj(Rt.openURL(Rt.privacyPolicy,Rt.privacyPolicyShortUrl))}),i.k0s(),i.j41(5,"nv-item-button",19),i.bIt("clicked",function(){i.eBV(Te);const Rt=i.XpG();return i.Njj(Rt.openURL(Rt.ossLicense,Rt.ossLicensesShortUrl))}),i.k0s()()}if(2&rn){const Te=i.XpG();i.Y8G("fxLayoutGap",Te.tvMode?"32px":""),i.R7$(),i.Y8G("ngIf",Te.enableReleaseHighlights)}}function Q(rn,Di){if(1&rn&&i.nrm(0,"nv-divider",21),2&rn){const Te=i.XpG();i.Y8G("marginNotReq",Te.tvMode)}}function A(rn,Di){if(1&rn&&(i.j41(0,"span",7),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn){const Te=i.XpG(2);i.AVh("font-body2",!Te.enlargeFontMode)("font-body-largefont1",!Te.tvMode&&Te.enlargeFontMode),i.R7$(),i.JRh(i.i5U(2,5,"settings.general.nextBillingDate",Te.currentMembership))}}function me(rn,Di){if(1&rn&&(i.j41(0,"div",22)(1,"span",6),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.DNE(4,A,3,8,"span",23),i.k0s()),2&rn){const Te=i.XpG();i.AVh("side-padding",!Te.tvMode),i.R7$(),i.AVh("font-body2",Te.tvMode)("font-body1",!Te.tvMode&&!Te.enlargeFontMode)("font-body-largefont0",!Te.tvMode&&Te.enlargeFontMode),i.R7$(),i.JRh(i.bMT(3,10,Te.membership)),i.R7$(2),i.Y8G("ngIf",Te.validMembership)}}function ne(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"div"),i.nrm(1,"nv-divider"),i.j41(2,"div",24),i.EFF(3),i.nI1(4,"translate"),i.nI1(5,"translate"),i.k0s(),i.j41(6,"div",5)(7,"mat-checkbox",25),i.mxI("ngModelChange",function(Rt){i.eBV(Te);const ei=i.XpG();return i.DH7(ei.technicalConsentModel,Rt)||(ei.technicalConsentModel=Rt),i.Njj(Rt)}),i.bIt("change",function(){i.eBV(Te);const Rt=i.XpG();return i.Njj(Rt.technicalConsentCheckboxChange())}),i.j41(8,"span",26),i.EFF(9),i.nI1(10,"translate"),i.k0s()()()()}if(2&rn){const Te=i.XpG();i.R7$(3),i.SpI(" ",i.bMT(5,11,i.bMT(4,9,"settings.Privacy"))," "),i.R7$(4),i.R50("ngModel",Te.technicalConsentModel),i.R7$(),i.AVh("font-body3",Te.tvMode)("font-body2",!Te.tvMode&&!Te.enlargeFontMode)("font-body-largefont1",!Te.tvMode&&Te.enlargeFontMode),i.R7$(),i.JRh(i.bMT(10,13,"settings.privacy.ShareData"))}}let G=(()=>{class rn extends r{constructor(Te,Jt,Rt,ei,tr,Ur,lo,wo,Lr,ns,Io,da,_a,Mt,Dn,qt,Pn){super(Rt,ei,tr,null,Ur),this.injector=Te,this.loggingService=Jt,this.localeService=lo,this.appConfig=wo,this.oscDisplayService=Lr,this.bridgeService=ns,this.telemetryUtilService=Io,this.matIconRegistry=da,this.userConsentService=_a,this.gfnSdkService=Mt,this.dateHandlerService=Dn,this.featureSupportService=qt,this.offDeviceLinkService=Pn,this.validMembership=!1,this.showLinksAndMembershipDetails=!0,this.tvMode=!1,this.enlargeFontMode=!1,this.termsConditionsShortUrl=H.lph[H.r7g.TermsConditions],this.accountTermsShortUrl=H.lph[H.r7g.AccountTerms],this.ossLicensesShortUrl=H.lph[H.r7g.OssLicenses],this.privacyPolicyShortUrl=H.lph[H.r7g.PrivacyPolicy],super.bar("commonLabels.General"),this.logger=this.loggingService.getLogger("General"),this.isAnonUser$=this.gfnSdkService.getIsAnonymousUser(),this.tvMode=!!wo?.featureEnablement?.tvMode,this.enlargeFontMode=this.featureSupportService.enlargeIGOTextFont()}ngOnInit(){this.logger.info("Entered General"),super.ngOnInit(),this.settingsService=this.injector.get(H.h$Q),this.ecommerceService=this.injector.get(H.yJU),this.showLinksAndMembershipDetails=!this.featureSupportService.isGuestAppFlowWrapper(),this.productName=this.featureSupportService.isGuestAppFlowWrapper()?"product.NVIDIAGDN":"product.NVIDIAGFN",this.nvSettingsParams={version:this.appConfig.build.version,variant:this.appConfig.build.variant,type:this.appConfig.build.type};let ei="",tr="";this.nvSettingsParams.variant.length>0&&(ei=this.nvSettingsParams.variant.charAt(0)),this.nvSettingsParams.type.length>0&&(tr=this.nvSettingsParams.type.charAt(0)),this.translateValues={versionValue:this.nvSettingsParams.version+"/"+ei+tr},this.currentYear={year:(new Date).getFullYear()},this.enableReleaseHighlights=this.appConfig.featureEnablement.releaseHighlights,this.localeSubscription=this.localeService.localeChanged.subscribe(Ur=>{this.termsConditions=this.settingsService.getLinksUrl(H.niw.TERMS_CONDITIONS,Ur),this.accountTerms=this.settingsService.getLinksUrl(H.niw.ACCOUNT_TERMS,Ur),this.ossLicense=this.settingsService.getLinksUrl(H.niw.OSS_LICENSES,Ur),this.privacyPolicy=this.settingsService.getLinksUrl(H.niw.PRIVACY_POLICY,Ur)}),this.getUserMembershipInfo(),this.userConsentService.getAnonUserConsentData().pipe((0,P.Q)(this.destroy$)).subscribe(Ur=>{this.technicalConsentModel=Ur.userConsent?.technical===J.Rg.Full})}ngOnDestroy(){this.localeSubscription&&(this.localeSubscription.unsubscribe(),this.localeSubscription=null),this.ecommerceSubscription&&(this.ecommerceSubscription.unsubscribe(),this.ecommerceSubscription=null),super.ngOnDestroy()}openURL(Te,Jt){this.logger.info("Open URL: ",Te),this.oscDisplayService.closeOSC(),this.bridgeService.executeCommand(re.Ts.Common.Windowcontrol.Minimize).pipe((0,P.Q)(this.destroy$)).subscribe(),this.offDeviceLinkService.open(Te,{shortUrl:Jt})}onShowReleaseHighlight(){this.gfnInfoService.showReleaseHighlight(this.appConfig.build.version),this.sendReleaseHighlightsClickedTelemetry()}sendReleaseHighlightsClickedTelemetry(){this.telemetryUtilService.sendClickEvent(H.EBD.ReleaseHighlights,"","General section",!0)}getUserMembershipInfo(){this.ecommerceSubscription=this.ecommerceService.getUserMembership(!0).subscribe(Te=>{if(this.logger.info("User membership: ",Te),this.membership=Te?.product?.longDescription??"settings.general.membershipStatus",Te.subscription?.renewalDateTime){this.validMembership=!0;const Jt=Te.subscription?.renewalDateTime;if(v.Nq.isValidDate(Jt)){const Rt=Jt.toString();this.dateHandlerService.getLocalizedDate(Rt).pipe((0,X.s)(1),(0,P.Q)(this.destroy$)).subscribe(ei=>{this.currentMembership={date:ei}},ei=>{this.logger.info("Error while getting localized date ",ei),this.currentMembership={date:this.dateHandlerService.formatDate(Jt,"PPP")}})}else this.logger.error("Invalid date or date format",Jt)}else this.validMembership=!1},Te=>{this.logger.error("GetUserMembership error - ",Te.toString())})}technicalConsentCheckboxChange(){this.userConsentService.setAnonUserConsentData(this.technicalConsentModel?J.Xj:J.bC).pipe((0,P.Q)(this.destroy$)).subscribe(()=>this.logger.info("Successfully set consent data"),Jt=>this.logger.error("Failed to set consent data",Jt)),this.settingsService.sendTelemetry({settingType:"GaaSTechnicalConsent",selectedOption:this.technicalConsentModel})}static{this.\u0275fac=function(Jt){return new(Jt||rn)(i.rXU(i.zZn),i.rXU(v.J6),i.rXU(f.o_p),i.rXU(l.nX),i.rXU(f.gZv),i.rXU(f.x_y),i.rXU(v.iH),i.rXU(H.Vk6),i.rXU(f.Bqk),i.rXU(v.NZ),i.rXU(H.jgD),i.rXU(ie.tp),i.rXU(H.FX3),i.rXU(ve.DL),i.rXU(v.I_),i.rXU(f.Rvq),i.rXU(ue.nO))}}static{this.\u0275cmp=i.VBU({type:rn,selectors:[["igo-general"]],features:[i.Vt3],decls:21,vars:39,consts:[["fxLayout","column","fxFlex","",1,"settings-general"],[1,"settings-container"],["fxLayout","row",1,"release-info-container",3,"fxLayoutAlign"],[1,"setting-about-icon"],["svgIcon","nvidia_symbol","tabindex","-1","fxFlex","grow"],["fxLayout","column"],[1,"font-color-primary"],[1,"font-color-tertiary"],["fxFlex","",4,"ngIf"],["fxLayout","column",3,"fxLayoutGap",4,"ngIf"],[3,"marginNotReq",4,"ngIf"],["fxLayout","column","class","settings-data1","fxLayoutAlign","start start",3,"side-padding",4,"ngIf"],[4,"ngIf"],["fxFlex",""],["fxLayout","column",3,"fxLayoutGap"],["titleString","common.releaseHighlights","urlIcon","launch",3,"clicked",4,"ngIf"],["titleString","settings.general.terms","urlIcon","launch",3,"clicked"],["titleString","settings.general.accountTerms","urlIcon","launch",3,"clicked"],["titleString","settings.general.privacyPolicy","urlIcon","launch",3,"clicked"],["titleString","settings.general.osslicense","urlIcon","launch",3,"clicked"],["titleString","common.releaseHighlights","urlIcon","launch",3,"clicked"],[3,"marginNotReq"],["fxLayout","column","fxLayoutAlign","start start",1,"settings-data1"],["class","font-color-tertiary",3,"font-body2","font-body-largefont1",4,"ngIf"],[1,"settings-privacy-gfn-heading","font-body1","label-color"],[3,"ngModelChange","change","ngModel"],[1,"settings-privacy-consent-label"]],template:function(Jt,Rt){1&Jt&&(i.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),i.nrm(4,"mat-icon",4),i.k0s(),i.j41(5,"div",5)(6,"div",6),i.EFF(7),i.nI1(8,"translate"),i.k0s(),i.j41(9,"div",7),i.EFF(10),i.nI1(11,"translate"),i.k0s(),i.j41(12,"div",7),i.EFF(13),i.nI1(14,"translate"),i.k0s()(),i.DNE(15,Xe,1,0,"div",8),i.k0s(),i.DNE(16,Me,6,2,"div",9)(17,Q,1,1,"nv-divider",10)(18,me,5,12,"div",11)(19,ne,11,15,"div",12),i.nI1(20,"async"),i.k0s()()),2&Jt&&(i.R7$(2),i.AVh("side-padding",!Rt.tvMode),i.Y8G("fxLayoutAlign",Rt.tvMode?"center start":"center center"),i.R7$(4),i.AVh("font-body2",Rt.tvMode)("font-body-largefont0",!Rt.tvMode&&Rt.enlargeFontMode)("font-body1",!Rt.tvMode&&!Rt.enlargeFontMode),i.R7$(),i.SpI(" ",i.bMT(8,29,Rt.productName)," "),i.R7$(2),i.AVh("font-body3",Rt.tvMode)("font-body-largefont1",!Rt.tvMode&&Rt.enlargeFontMode)("font-body2",!Rt.tvMode&&!Rt.enlargeFontMode),i.R7$(),i.SpI(" ",i.i5U(11,31,"settings.general.version",Rt.translateValues)," "),i.R7$(2),i.AVh("font-body3",Rt.tvMode)("font-body-largefont1",!Rt.tvMode&&Rt.enlargeFontMode)("font-body2",!Rt.tvMode&&!Rt.enlargeFontMode),i.R7$(),i.SpI(" ",i.i5U(14,34,"settings.general.nvidiaRightsReserved",Rt.currentYear)," "),i.R7$(2),i.Y8G("ngIf",!Rt.tvMode),i.R7$(),i.Y8G("ngIf",Rt.showLinksAndMembershipDetails),i.R7$(),i.Y8G("ngIf",Rt.showLinksAndMembershipDetails),i.R7$(),i.Y8G("ngIf",Rt.showLinksAndMembershipDetails),i.R7$(),i.Y8G("ngIf",i.bMT(20,37,Rt.showLinksAndMembershipDetails&&Rt.isAnonUser$)))},dependencies:[n.bT,a.$,c.j,m.DJ,m.BO,m.sA,m.UI,se.BC,se.vS,ie.An,Z.So,Se.tG,Ce.nM,n.Jj,Be.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.settings-general[_ngcontent-%COMP%]{max-width:100%;padding:16px 0;overflow-y:overlay}.isLtr[_nghost-%COMP%] .settings-general[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-general[_ngcontent-%COMP%]{margin-right:-24px}html[dir=ltr][_ngcontent-%COMP%] .settings-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:-24px}.isRtl[_nghost-%COMP%] .settings-general[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-general[_ngcontent-%COMP%]{margin-left:-24px}html[dir=rtl][_ngcontent-%COMP%] .settings-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:-24px}.settings-data1[_ngcontent-%COMP%]{padding:8px 0 14px}.settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{background:#76b900;color:#fff;width:60px;height:60px}.isLtr[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin:16px 16px 16px 0}html[dir=ltr][_ngcontent-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy: 0;margin:16px 16px 16px 0}.isRtl[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin:16px 0 16px 16px}html[dir=rtl][_ngcontent-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy: 0;margin:16px 0 16px 16px}.settings-privacy-consent-label[_ngcontent-%COMP%]{white-space:normal}.isLtr[_nghost-%COMP%] .settings-privacy-gfn-heading[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-privacy-gfn-heading[_ngcontent-%COMP%]{margin:12px 0 8px}html[dir=ltr][_ngcontent-%COMP%] .settings-privacy-gfn-heading[_ngcontent-%COMP%]{--dummy: 0;margin:12px 0 8px}.isRtl[_nghost-%COMP%] .settings-privacy-gfn-heading[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-privacy-gfn-heading[_ngcontent-%COMP%]{margin:12px 0 8px}html[dir=rtl][_ngcontent-%COMP%] .settings-privacy-gfn-heading[_ngcontent-%COMP%]{--dummy: 0;margin:12px 0 8px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr.tv-view[_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%]{margin:16px 0 32px}html[dir=ltr] .tv-view[_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%]{--dummy: 0;margin:16px 0 32px}.isRtl.tv-view[_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%]{margin:16px 0 32px}html[dir=rtl] .tv-view[_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%]{--dummy: 0;margin:16px 0 32px}.tv-view[_nghost-%COMP%] .settings-general[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .settings-general[_ngcontent-%COMP%]{padding:32px}.tv-view[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{background:#76b900;color:#fff;width:96px;height:96px}.isLtr.tv-view[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin:0 24px 0 0}html[dir=ltr] .tv-view[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px 0 0}.isRtl.tv-view[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin:0 0 0 24px}html[dir=rtl] .tv-view[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy: 0;margin:0 0 0 24px}"]})}}return rn})();var W=s(27211),$=s(12137),le=s(81616),Pe=s(52834),Fe=s(47973),At=s(51394),Le=s(26945);function Et(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"div",13)(1,"div",14)(2,"mat-checkbox",15),i.mxI("ngModelChange",function(Rt){const ei=i.eBV(Te).$implicit;return i.DH7(ei.value,Rt)||(ei.value=Rt),i.Njj(Rt)}),i.bIt("change",function(){const Rt=i.eBV(Te).index,ei=i.XpG().index,tr=i.XpG();return i.Njj(tr.checkChanged(ei,Rt))}),i.k0s(),i.j41(3,"span",16),i.bIt("click",function(Rt){const ei=i.eBV(Te).index,tr=i.XpG().index,Ur=i.XpG();return i.Njj(Ur.entryClicked(Rt,tr,ei))}),i.EFF(4),i.nI1(5,"translate"),i.k0s()()()}if(2&rn){const Te=Di.$implicit;i.R7$(2),i.R50("ngModel",Te.value),i.R7$(2),i.JRh(i.bMT(5,2,Te.label))}}function $e(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"div",2)(1,"mat-accordion",3)(2,"mat-expansion-panel",4)(3,"mat-expansion-panel-header",5)(4,"div",6)(5,"div",7),i.bIt("click",function(Rt){const ei=i.eBV(Te).index,tr=i.XpG();return i.Njj(tr.entryClicked(Rt,ei,-1))}),i.EFF(6),i.k0s(),i.j41(7,"button",8),i.nrm(8,"mat-icon",9),i.k0s()()(),i.DNE(9,Et,6,4,"div",10),i.k0s()(),i.j41(10,"div",11)(11,"mat-checkbox",12),i.mxI("ngModelChange",function(Rt){const ei=i.eBV(Te).$implicit;return i.DH7(ei.value,Rt)||(ei.value=Rt),i.Njj(Rt)}),i.bIt("click",function(Rt){return i.eBV(Te),i.Njj(Rt.stopPropagation())})("change",function(){const Rt=i.eBV(Te).index,ei=i.XpG();return i.Njj(ei.checkChanged(Rt,-1))}),i.k0s()()()}if(2&rn){const Te=Di.$implicit,Jt=Di.index,Rt=i.XpG();i.R7$(6),i.SpI(" ",Te.item," "),i.R7$(3),i.Y8G("ngForOf",Te.subitems),i.R7$(2),i.R50("ngModel",Te.value),i.Y8G("indeterminate",Rt.checkIndeterminate(Jt))}}let Ze=(()=>{class rn{constructor(){this.changed=new i.bkB}emitChanged(Te,Jt,Rt){this.changed.emit({index:Te,subindex:Jt,value:Rt})}checkChanged(Te,Jt){const Rt=-1!==Jt?this.list[Te].subitems[Jt].value:this.list[Te].value;-1===Jt?(this.list[Te].subitems.forEach(ei=>{ei.value!==Rt&&(ei.value=Rt)}),this.emitChanged(Te,-1,Rt)):this.checkIndeterminate(Te)?this.emitChanged(Te,Jt,Rt):(this.list[Te].value!==Rt&&(this.list[Te].value=Rt),this.emitChanged(Te,-1,Rt))}entryClicked(Te,Jt,Rt){Te.stopPropagation();const ei=this.list[Jt];if(-1!==Rt){const tr=ei.subitems[Rt];tr.value=!tr.value}else ei.value=!ei.value;this.checkChanged(Jt,Rt)}checkIndeterminate(Te){if(0===this.list[Te].subitems.length)return!1;let Jt=!1;const Rt=this.list[Te].subitems[0].value;return this.list[Te].subitems.forEach(ei=>{ei.value!==Rt&&(Jt=!0)}),Jt}static{this.\u0275fac=function(Jt){return new(Jt||rn)}}static{this.\u0275cmp=i.VBU({type:rn,selectors:[["nv-accordion"]],inputs:{list:"list"},outputs:{changed:"changed"},decls:2,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start start"],["class","accordion-item","fxFlex","grow",4,"ngFor","ngForOf"],["fxFlex","grow",1,"accordion-item"],["multi","","displayMode","flat"],["hideToggle","true"],["collapsedHeight","48px","expandedHeight","48px"],["fxLayout","row","fxLayoutAlign","start center","fxFlexFill",""],["dir","auto","fxFlex","grow",1,"font-body1","accordion-label","accordion-header-label",3,"click"],["mat-button","","fxFlex","none","fxLayout","row","fxLayoutAlign","center center",1,"nv-item-icon","complex-button"],["svgIcon","chevron_down",1,"accordion-chevron"],["class","accordion-subitem","fxLayout","column","fxLayoutAlign","space-between center",4,"ngFor","ngForOf"],[1,"checkbox-overlay"],["fxFlex","none",1,"igo-notification-mat",3,"ngModelChange","click","change","ngModel","indeterminate"],["fxLayout","column","fxLayoutAlign","space-between center",1,"accordion-subitem"],["fxLayout","row","fxLayoutAlign","start center",1,"checkbox-item"],["fxFlex","none",1,"igo-notification-mat",3,"ngModelChange","change","ngModel"],["fxFlex","shrink",1,"font-body1","accordion-label",3,"click"]],template:function(Jt,Rt){1&Jt&&(i.j41(0,"div",0),i.DNE(1,$e,12,4,"div",1),i.k0s()),2&Jt&&(i.R7$(),i.Y8G("ngForOf",Rt.list))},dependencies:[n.Sq,m.DJ,m.sA,m.G2,m.UI,se.BC,se.vS,Fe.iV,At.ig,ie.An,Le.BS,Le.GK,Le.Z2,Z.So,Se.tG,Ce.nM,Be.D9],styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}.checkbox-item[_ngcontent-%COMP%]{min-width:0}.accordion-label[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;min-width:0;width:0;padding-top:12px;padding-bottom:12px}.isLtr[_nghost-%COMP%] .accordion-label[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .accordion-label[_ngcontent-%COMP%]{text-align:left}html[dir=ltr][_ngcontent-%COMP%] .accordion-label[_ngcontent-%COMP%]{--dummy0: 0;text-align:left}.isRtl[_nghost-%COMP%] .accordion-label[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .accordion-label[_ngcontent-%COMP%]{text-align:right}html[dir=rtl][_ngcontent-%COMP%] .accordion-label[_ngcontent-%COMP%]{--dummy0: 0;text-align:right}.isLtr[_nghost-%COMP%] .accordion-header-label[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .accordion-header-label[_ngcontent-%COMP%]{padding-left:40px}html[dir=ltr][_ngcontent-%COMP%] .accordion-header-label[_ngcontent-%COMP%]{--dummy1: 0;padding-left:40px}.isRtl[_nghost-%COMP%] .accordion-header-label[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .accordion-header-label[_ngcontent-%COMP%]{padding-right:40px}html[dir=rtl][_ngcontent-%COMP%] .accordion-header-label[_ngcontent-%COMP%]{--dummy1: 0;padding-right:40px}.accordion-item[_ngcontent-%COMP%]{width:100%;padding:0;position:relative}.checkbox-overlay[_ngcontent-%COMP%]{position:absolute;top:0}.isLtr[_nghost-%COMP%] .checkbox-overlay[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .checkbox-overlay[_ngcontent-%COMP%]{left:0}html[dir=ltr][_ngcontent-%COMP%] .checkbox-overlay[_ngcontent-%COMP%]{--dummy5: 0;left:0}.isRtl[_nghost-%COMP%] .checkbox-overlay[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .checkbox-overlay[_ngcontent-%COMP%]{right:0}html[dir=rtl][_ngcontent-%COMP%] .checkbox-overlay[_ngcontent-%COMP%]{--dummy5: 0;right:0}.accordion-subitem[_ngcontent-%COMP%]{display:flex;flex-direction:row}.isLtr[_nghost-%COMP%] .accordion-subitem[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .accordion-subitem[_ngcontent-%COMP%]{padding:0 0 0 16px}html[dir=ltr][_ngcontent-%COMP%] .accordion-subitem[_ngcontent-%COMP%]{--dummy: 0;padding:0 0 0 16px}.isRtl[_nghost-%COMP%] .accordion-subitem[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .accordion-subitem[_ngcontent-%COMP%]{padding:0 16px 0 0}html[dir=rtl][_ngcontent-%COMP%] .accordion-subitem[_ngcontent-%COMP%]{--dummy: 0;padding:0 16px 0 0}.accordion-subitem[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}"]})}}return rn})();var Qe=s(28139),Ve=s(62141);const nt=rn=>({"toggle-height":rn});function Ot(rn,Di){1&rn&&(i.j41(0,"span",7),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn&&(i.R7$(),i.JRh(i.bMT(2,1,"mainMenu.DisableRecord")))}function at(rn,Di){1&rn&&(i.j41(0,"span",7),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn&&(i.R7$(),i.JRh(i.bMT(2,1,"mainMenu.DisabledForPlaytest")))}function It(rn,Di){1&rn&&(i.j41(0,"span",7),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn&&(i.R7$(),i.JRh(i.bMT(2,1,"mainMenu.DisableRecord10bit")))}function We(rn,Di){1&rn&&(i.j41(0,"div",9),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn&&(i.R7$(),i.SpI(" ",i.bMT(2,1,"settings.HighlightsHelper1")," "))}function xe(rn,Di){if(1&rn&&(i.qex(0),i.DNE(1,We,3,3,"div",8),i.bVm()),2&rn){const Te=i.XpG(),Jt=i.sdS(12);i.R7$(),i.Y8G("ngIf",!Te.hlCaptureSwitchModel&&!Te.disableRecordSpecialCase)("ngIfElse",Jt)}}function lt(rn,Di){1&rn&&(i.j41(0,"span",14),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn&&(i.R7$(),i.SpI("",i.bMT(2,1,"settings.SupportedGames")," "))}function ft(rn,Di){1&rn&&(i.j41(0,"div",15)(1,"mat-icon",16),i.EFF(2,"info"),i.k0s(),i.j41(3,"div",17),i.EFF(4),i.nI1(5,"translate"),i.k0s()()),2&rn&&(i.R7$(4),i.SpI(" ",i.bMT(5,1,"settings.SupportedGamesRequired")," "))}function ht(rn,Di){if(1&rn){const Te=i.RV6();i.qex(0)(1),i.j41(2,"div",10),i.EFF(3),i.nI1(4,"translate"),i.k0s(),i.bVm(),i.j41(5,"nv-item-button",11),i.bIt("clicked",function(){i.eBV(Te);const Rt=i.XpG();return i.Njj(Rt.onVideoCapureClicked())}),i.k0s(),i.nrm(6,"nv-divider"),i.DNE(7,lt,3,3,"span",12)(8,ft,6,3,"div",13),i.bVm()}if(2&rn){const Te=i.XpG(),Jt=i.sdS(12);i.R7$(3),i.SpI(" ",i.bMT(4,4,Te.hlL1Text)," "),i.R7$(4),i.Y8G("ngIf",Te.hlCaptureSwitchModel),i.R7$(),i.Y8G("ngIf",Te.hlCaptureSwitchModel&&!Te.disableRecordSpecialCase&&!Te.highlightGamesPresent)("ngIfElse",Jt)}}function Xt(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"nv-accordion",20),i.bIt("changed",function(Rt){i.eBV(Te);const ei=i.XpG(3);return i.Njj(ei.accordionChanged(Rt))}),i.k0s()}if(2&rn){const Te=i.XpG(3);i.Y8G("list",Te.gamesInfo)}}function Ht(rn,Di){if(1&rn&&(i.j41(0,"div")(1,"div",18),i.DNE(2,Xt,1,1,"nv-accordion",19),i.k0s()()),2&rn){const Te=i.XpG(2);i.R7$(2),i.Y8G("ngIf",Te.hlCaptureSwitchModel&&Te.highlightGamesPresent)}}function Je(rn,Di){if(1&rn&&i.DNE(0,Ht,3,1,"div",6),2&rn){const Te=i.XpG();i.Y8G("ngIf",!Te.disableRecordSpecialCase)}}let tt=(()=>{class rn extends r{constructor(Te,Jt,Rt,ei,tr,Ur,lo,wo,Lr,ns,Io,da,_a){super(Rt,ei,Lr,null,Io.GFNCefClient?Te.get(f.x_y):null),this.injector=Te,this.loggingService=Jt,this.bridgeService=tr,this.sdkHighlightsService=Ur,this.telemetry=lo,this.telemetryIgo=wo,this.translateService=ns,this.igoConfig=Io,this.shadowPlayService=da,this.galleryService=_a,this.highlightGamesPresent=!1,this.highlightsHelper="",this.gamesInfo=[],this.recordSpecialCase=_.Fm,this.highlightsOnL0=!1,this.isNvAPP=!1,super.bar("commonLabels.Highlights"),this.logger=this.loggingService.getLogger("Highlights"),this.highlightsOnL0=!0!==Io.GFNCefClient,this.isNvAPP="GFE"===this.igoConfig.branding}ngOnInit(){super.ngOnInit(),this.highlightsOnL0&&this.nonGfnOverwrides(),this.bridgeService.executeCommand(re.Ts.Share.Shareserver.GetHighlightsEnable,{}).pipe((0,P.Q)(this.destroy$)).subscribe(Te=>{this.hlCaptureSwitchModel=Te.enable&&!this.disableRecordSpecialCase,this.logger.info("Highlights enabled: ",this.hlCaptureSwitchModel),this.hlL1Text=Te.enable?"settings.HighlightsHelper3":"settings.HighlightsHelper1"}),this.bridgeService.executeCommand(re.Ts.Share.Shareserver.GetApplicationConfigs,{}).pipe((0,P.Q)(this.destroy$)).subscribe(Te=>{Te&&0!==Te.apps.length?(this.highlightGamesPresent=!0,this.gameData=Te,this.loadHighlightsLists()):this.logger.info("No game data to initialize")})}nonGfnOverwrides(){this.caller="../main-menu"}onVideoCapureClicked(){this.shadowPlayService.videoCaptureReturnLocation="../settings/highlights",this.navigationService.navigate(["../settings/video"],{relativeTo:this.route.parent,skipLocationChange:!0},f.jby.videoCapture)}loadHighlightsLists(){this.gamesInfo.length=0,this.gameData.apps.forEach(Te=>{if(0!==Te.permissions.length){if(this.sdkHighlightsService.overrideHighlightSettings()&&this.sdkHighlightsService.cachedAHLGameShortName()===Te.app.appShortName)return void this.logger.info("Highlights settings not shown for: ",Te.app.appShortName);const Jt=[];let Rt=!1;for(let tr=0;tr<Te.permissions.length;tr++)Rt=Te.permissions[tr].permission===re.Or.Share.Shareserver.SdkPermissions.granted||Rt;Te.highlights.forEach(tr=>{const Ur=`highlightLabels.${tr.name}`;let lo=this.translateService.instant(Ur);lo===Ur&&(lo=tr.name),Jt.push({label:lo,value:tr.userEnabled&&Rt})}),this.gamesInfo.push({item:Te.app.profileName||Te.app.name,value:Rt,subitems:Jt})}})}accordionChanged(Te){const Jt=this.gamesInfo[Te.index];-1!==Te.subindex?this.highlightStateChanged(Jt,Jt.subitems[Te.subindex],Te.value,!1):this.highlightStateChanged(Jt,void 0,Te.value,!0)}hlCaptureSwitchChange(Te){this.logger.info("hlCapture switch changed: ",this.hlCaptureSwitchModel),this.galleryService.setHighlightsCaptureToggle(this.hlCaptureSwitchModel);const Jt={enable:this.hlCaptureSwitchModel};this.hlL1Text=this.hlCaptureSwitchModel?"settings.HighlightsHelper3":"settings.HighlightsHelper1",this.bridgeService.executeCommand(re.Ts.Share.Shareserver.SetHighlightsEnable,Jt).pipe((0,P.Q)(this.destroy$)).subscribe(Rt=>{this.logger.info("Highlights capture enabled: ",Rt)}),this.telemetry.sendHighlightsGameSetting({shortName:"None",cmsId:"None"},this.hlCaptureSwitchModel,f.Btx.settings,null,f.f2G.featureToggle)}gameStateChanged(Te,Jt){let Rt,ei;this.gameData.apps.forEach(wo=>{wo.app.profileName===Te.item&&(Rt=wo.permissions.slice(),ei=wo.app)});const lo=this.sdkHighlightsService.setStateOfCurrentGame({permissionParams:{permissions:Rt,app:ei},state:Jt}).subscribe(()=>{lo.unsubscribe()})}highlightStateChanged(Te,Jt,Rt,ei){let tr,Ur;this.gameData.apps.forEach(Lr=>{Lr.app.profileName===Te.item&&(tr=Lr.highlights.slice(),Ur=Lr.app)});const lo={app:Ur,highlightDefinitions:tr};let wo=!1;lo.highlightDefinitions.forEach(Lr=>{(ei||Lr.name===Jt.label||this.translateService.instant(`highlightLabels.${Lr.name}`)===Jt.label)&&(this.logger.info(`Highlight state updated ${Lr.name} to: ${Rt}`),Lr.userEnabled=Rt),Lr.userEnabled&&(wo=!0)}),this.bridgeService.executeCommand(re.Ts.Share.Shareserver.SetHighlightsConfig,lo).pipe((0,P.Q)(this.destroy$)).subscribe(()=>{this.isNvAPP?this.telemetry.sendHighlightsGameSetting({shortName:Ur.appShortName},ei?Rt:Jt.value,f.Btx.settings,ei?null:Jt.label,ei?f.f2G.gameToggle:f.f2G.individualToggle):ei?this.logger.info("Highlight state updated ALL to: "+Rt):(this.logger.info("Highlight state updated: "+Jt.label+" to: "+Rt),this.telemetryIgo.sendHighlightsIndividualGameToggle({shortName:Ur.appShortName},Jt.label,Jt.value)),this.gameStateChanged(Te,wo)})}static{this.\u0275fac=function(Jt){return new(Jt||rn)(i.rXU(i.zZn),i.rXU(v.J6),i.rXU(f.o_p),i.rXU(l.nX),i.rXU(v.NZ),i.rXU(f.P15),i.rXU(f.xRl),i.rXU(W.S),i.rXU(f.gZv),i.rXU(Be.c$),i.rXU($.k),i.rXU(f.W1J),i.rXU(f.AFS))}}static{this.\u0275cmp=i.VBU({type:rn,selectors:[["igo-highlights"]],features:[i.Vt3],decls:13,vars:13,consts:[["showHighlights",""],["fxLayout","column","fxFlex","",1,"settings-highlights","nv-hig"],["fxFlex","none","fxLayout","row","fxLayoutAlign","start center",1,"padding-nvapp","title-padding-top",3,"ngClass"],["fxFlex","grow",1,"font-sub1","font-color-primary"],["fxFlex","none","md-invert","","nvHoverFocus","",1,"settings-padding",3,"ngModelChange","change","ngModel","disabled"],["class","font-body2 disabled-opacity padding-nvapp",4,"ngIf"],[4,"ngIf"],[1,"font-body2","disabled-opacity","padding-nvapp"],["class","helper-text-div font-body2",4,"ngIf","ngIfElse"],[1,"helper-text-div","font-body2"],[1,"font-body2","font-color-tertiary","padding-nvapp","title-padding-bottom"],["urlIcon","settings","titleString","mainMenu.VideoCaptureShortcut","subTitle","mainMenu.VideoCaptureShortcutSub","mainMenuUse","true",3,"clicked"],["class","font-body2 padding-nvapp nv-sub-text-padding font-color-tertiary",4,"ngIf"],["fxLayout","row","class","padding-nvapp nv-sub-text-padding",4,"ngIf","ngIfElse"],[1,"font-body2","padding-nvapp","nv-sub-text-padding","font-color-tertiary"],["fxLayout","row",1,"padding-nvapp","nv-sub-text-padding"],["mat-font-set","material-icons",1,"nv-custom-icons","icon-alert-circle_reg"],[1,"font-body2","gameRequirement-alignment-padding","font-color-tertiary"],["fxFlex","","fxLayout","row","fxLayoutAlign","start start",1,"settings-layout"],[3,"list","changed",4,"ngIf"],[3,"changed","list"]],template:function(Jt,Rt){if(1&Jt){const ei=i.RV6();i.j41(0,"div",1)(1,"div",2)(2,"div",3),i.EFF(3),i.nI1(4,"translate"),i.k0s(),i.j41(5,"mat-slide-toggle",4),i.mxI("ngModelChange",function(Ur){return i.eBV(ei),i.DH7(Rt.hlCaptureSwitchModel,Ur)||(Rt.hlCaptureSwitchModel=Ur),i.Njj(Ur)}),i.bIt("change",function(Ur){return i.eBV(ei),i.Njj(Rt.hlCaptureSwitchChange(Ur))}),i.k0s()(),i.DNE(6,Ot,3,3,"span",5)(7,at,3,3,"span",5)(8,It,3,3,"span",5)(9,xe,2,2,"ng-container",6)(10,ht,9,6,"ng-container",6)(11,Je,1,1,"ng-template",null,0,i.C5r),i.k0s()}2&Jt&&(i.R7$(),i.Y8G("ngClass",i.eq3(11,nt,!Rt.highlightsOnL0)),i.R7$(2),i.SpI(" ",i.bMT(4,9,"settings.CaptureHighlights")," "),i.R7$(2),i.R50("ngModel",Rt.hlCaptureSwitchModel),i.Y8G("disabled",Rt.recordSpecialCase.RECORD_SPECIAL_CASE_NONE!==Rt.disableRecordSpecialCase),i.R7$(),i.Y8G("ngIf",Rt.recordSpecialCase.RECORD_SPECIAL_CASE_4K===Rt.disableRecordSpecialCase),i.R7$(),i.Y8G("ngIf",Rt.recordSpecialCase.RECORD_SPECIAL_CASE_PLAYTEST===Rt.disableRecordSpecialCase),i.R7$(),i.Y8G("ngIf",Rt.recordSpecialCase.RECORD_SPECIAL_CASE_10bit===Rt.disableRecordSpecialCase),i.R7$(),i.Y8G("ngIf",!Rt.highlightsOnL0),i.R7$(),i.Y8G("ngIf",Rt.highlightsOnL0))},dependencies:[n.YU,n.bT,a.$,c.j,le.U,Pe.I,Ze,m.DJ,m.sA,m.UI,Qe.PW,se.BC,se.vS,ie.An,Ve.P2,Se.tG,Be.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.settings-highlights[_ngcontent-%COMP%]{max-width:100%;padding:16px 0;overflow-y:overlay}.isLtr[_nghost-%COMP%] .settings-highlights[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-highlights[_ngcontent-%COMP%]{margin-right:-24px}html[dir=ltr][_ngcontent-%COMP%] .settings-highlights[_ngcontent-%COMP%]{--dummy4: 0;margin-right:-24px}.isRtl[_nghost-%COMP%] .settings-highlights[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-highlights[_ngcontent-%COMP%]{margin-left:-24px}html[dir=rtl][_ngcontent-%COMP%] .settings-highlights[_ngcontent-%COMP%]{--dummy4: 0;margin-left:-24px}.settings-layout[_ngcontent-%COMP%] nv-accordion[_ngcontent-%COMP%]{width:480px}.isLtr[_nghost-%COMP%] .settings-layout[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-layout[_ngcontent-%COMP%]{margin-left:16px}html[dir=ltr][_ngcontent-%COMP%] .settings-layout[_ngcontent-%COMP%]{--dummy3: 0;margin-left:16px}.isRtl[_nghost-%COMP%] .settings-layout[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-layout[_ngcontent-%COMP%]{margin-right:16px}html[dir=rtl][_ngcontent-%COMP%] .settings-layout[_ngcontent-%COMP%]{--dummy3: 0;margin-right:16px}.nv-sub-text-padding[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.isLtr[_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%]{padding-right:10px}html[dir=ltr][_ngcontent-%COMP%] .settings-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:10px}.isRtl[_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%]{padding-left:10px}html[dir=rtl][_ngcontent-%COMP%] .settings-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:10px}.helper-text-div[_ngcontent-%COMP%]{height:60px;padding:0 16px}.toggle-height[_ngcontent-%COMP%]{height:40px}.hlTitleNvAppColor[_ngcontent-%COMP%]{color:#ffffffb3}.isLtr[_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.title-padding-top[_ngcontent-%COMP%]{padding-top:14px}.title-padding-bottom[_ngcontent-%COMP%]{padding-bottom:14px}.icon-alert-circle_reg[_ngcontent-%COMP%]{line-height:inherit;font-style:normal}.isLtr[_nghost-%COMP%] .icon-alert-circle_reg[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .icon-alert-circle_reg[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .icon-alert-circle_reg[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .icon-alert-circle_reg[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .icon-alert-circle_reg[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .icon-alert-circle_reg[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.nv-custom-icons[_ngcontent-%COMP%]{color:#242424}.gameRequirement-alignment-padding[_ngcontent-%COMP%]{padding-top:2px;padding-bottom:2px}"]})}}return rn})();var rt=s(93662),et=s(21254),St=s(5428);const Gt=(rn,Di,Te)=>({"font-body3 nv-label":rn,"font-sub2":Di,"font-sub-largefont1":Te}),yt=(rn,Di,Te)=>({"font-body3":rn,"font-sub2":Di,"font-sub-largefont1":Te}),Wt=(rn,Di)=>({"padding-left.px":rn,"padding-right.px":Di}),ke=(rn,Di)=>({"stats-small":rn,"stats-large":Di});function be(rn,Di){if(1&rn){const Te=i.RV6();i.qex(0,21),i.j41(1,"div",22)(2,"span",23),i.EFF(3),i.nI1(4,"translate"),i.k0s(),i.j41(5,"nv-input",24),i.mxI("textChange",function(Rt){i.eBV(Te);const ei=i.XpG(2);return i.DH7(ei.performanceCustomFontColor,Rt)||(ei.performanceCustomFontColor=Rt),i.Njj(Rt)}),i.bIt("textChange",function(Rt){i.eBV(Te);const ei=i.XpG(2);return i.Njj(ei.perfMonCustomFontColorChanged(Rt))}),i.k0s()(),i.bVm()}if(2&rn){const Te=i.XpG(2);i.R7$(3),i.JRh(i.bMT(4,6,"perfmon.customColorCode")),i.R7$(2),i.Y8G("readonly",!1)("textMaxLength",7),i.R50("text",Te.performanceCustomFontColor),i.Y8G("isColorCode",!0)("defaultColorCode",Te.getCustomFontColorText())}}function Ae(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"div",9)(1,"div",10),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.qex(4),i.j41(5,"nv-rotary",11),i.bIt("selectionChanged",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.rotaryChanged(ei.indicators.Performance,Rt))}),i.k0s(),i.bVm(),i.qex(6),i.j41(7,"div",12),i.EFF(8),i.nI1(9,"translate"),i.k0s(),i.j41(10,"nv-hig-slider",13),i.bIt("input",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.performanceHorizontalSliderChanged(Rt.value))}),i.k0s(),i.bVm(),i.qex(11),i.j41(12,"div",12),i.EFF(13),i.nI1(14,"translate"),i.k0s(),i.j41(15,"nv-hig-slider",13),i.bIt("input",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.performanceVerticalSliderChanged(Rt.value))}),i.k0s(),i.bVm(),i.nrm(16,"div",14),i.qex(17,15),i.j41(18,"nv-rotary",16),i.bIt("selectionChanged",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.perfMonLayoutRotaryChanged(Rt))}),i.k0s(),i.bVm(),i.qex(19),i.j41(20,"div",12),i.EFF(21),i.nI1(22,"translate"),i.k0s(),i.j41(23,"nv-hig-slider",13),i.bIt("input",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.perfMonBackgroundOpacitySliderChanged(Rt.value))}),i.k0s(),i.bVm(),i.nrm(24,"div",14),i.qex(25,17),i.j41(26,"nv-rotary",18),i.bIt("selectionChanged",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.perfMonFontSizeRotaryChanged(Rt))}),i.k0s(),i.bVm(),i.qex(27,17),i.j41(28,"nv-rotary",19),i.bIt("selectionChanged",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.perfMonFontColorRotaryChanged(Rt))}),i.k0s(),i.bVm(),i.DNE(29,be,6,8,"ng-container",20),i.nrm(30,"nv-divider"),i.k0s()}if(2&rn){const Te=i.XpG();i.R7$(2),i.SpI(" ",i.bMT(3,30,"perfmon.performance")," "),i.R7$(3),i.AVh("rotary-side-padding",!Te.tvMode),i.Y8G("input",Te.rotaryOptionsPerformance)("initialState",Te.rotaryInit.Performance),i.R7$(3),i.SpI(" ",i.bMT(9,32,"perfmon.horizontalPosition")," "),i.R7$(2),i.Y8G("min",0)("max",100)("step",1)("tickInterval",50)("value",Te.performancePosition.x),i.R7$(3),i.SpI(" ",i.bMT(14,34,"perfmon.verticalPosition")," "),i.R7$(2),i.Y8G("min",0)("max",100)("step",1)("tickInterval",50)("value",Te.performancePosition.y),i.R7$(3),i.Y8G("input",Te.layoutRotaryOptions)("initialState",Te.performanceLayout),i.R7$(3),i.SpI(" ",i.bMT(22,36,"perfmon.backgroundOpacity")," "),i.R7$(2),i.Y8G("min",0)("max",100)("step",1)("tickInterval",50)("value",Te.performanceBackgroundOpacity),i.R7$(3),i.Y8G("input",Te.fontSizeRotaryOptions)("initialState",Te.performanceFontSize),i.R7$(2),i.Y8G("input",Te.fontColorRotaryOptions)("initialState",Te.performanceFontColor),i.R7$(),i.Y8G("ngIf",Te.showCustomColorSection())}}function qe(rn,Di){1&rn&&(i.j41(0,"div",31),i.nrm(1,"mat-icon",32),i.k0s())}function Lt(rn,Di){1&rn&&(i.j41(0,"div",31),i.nrm(1,"mat-icon",33),i.k0s())}function Zt(rn,Di){1&rn&&(i.j41(0,"div",31),i.nrm(1,"mat-icon",34),i.k0s())}function fn(rn,Di){1&rn&&(i.j41(0,"div",31),i.nrm(1,"mat-icon",35),i.k0s())}function hn(rn,Di){1&rn&&(i.j41(0,"div",31),i.nrm(1,"mat-icon",36),i.k0s())}function On(rn,Di){1&rn&&(i.j41(0,"div",31),i.nrm(1,"mat-icon",36),i.k0s())}function fi(rn,Di){1&rn&&(i.j41(0,"div",31),i.nrm(1,"mat-icon",37),i.k0s())}function Ji(rn,Di){if(1&rn&&(i.j41(0,"div")(1,"div",28)(2,"div",29),i.DNE(3,qe,2,0,"div",30)(4,Lt,2,0,"div",30)(5,Zt,2,0,"div",30)(6,fn,2,0,"div",30)(7,hn,2,0,"div",30)(8,On,2,0,"div",30)(9,fi,2,0,"div",30),i.k0s()()()),2&rn){const Te=Di.$implicit,Jt=i.XpG(2);i.R7$(),i.Y8G("ngClass",Te.value),i.R7$(2),i.Y8G("ngIf",Jt.isPerfOverlaySupported&&Jt.visibility.Performance===Te.key),i.R7$(),i.Y8G("ngIf",Jt.shadowPlayEnabled&&Jt.visibility.Recording===Te.key),i.R7$(),i.Y8G("ngIf",Jt.galleryEnabled&&Jt.visibility.IR===Te.key),i.R7$(),i.Y8G("ngIf",Jt.galleryEnabled&&Jt.visibility.Highlights===Te.key),i.R7$(),i.Y8G("ngIf",Jt.micEnabled&&Jt.visibility.Mic===Te.key),i.R7$(),i.Y8G("ngIf",Jt.gfnMicEnabled&&Jt.visibility.GfnMic===Te.key),i.R7$(),i.Y8G("ngIf",Jt.showConnectionStatus&&Jt.visibility.Network===Te.key)}}function Fi(rn,Di){if(1&rn&&(i.j41(0,"div",40)(1,"div",41),i.nrm(2,"mat-icon",32),i.k0s()()),2&rn){const Te=i.XpG(3);i.Y8G("ngClass",i.l_i(1,ke,Te.statSize===Te.statsSizes[0],Te.statSize===Te.statsSizes[1]))}}function bt(rn,Di){if(1&rn&&(i.j41(0,"div")(1,"div",38),i.DNE(2,Fi,3,4,"div",39),i.k0s()()),2&rn){const Te=Di.$implicit,Jt=i.XpG(2);i.R7$(),i.Y8G("ngClass",Te.value)("ngStyle",i.l_i(3,Wt,Jt.statsOffset,Jt.statsOffset)),i.R7$(),i.Y8G("ngIf",Jt.showStats&&Jt.visibility.Statistics===Te.key)}}function bn(rn,Di){if(1&rn&&(i.j41(0,"div")(1,"div",25),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.j41(4,"div",26),i.DNE(5,Ji,10,8,"div",27),i.nI1(6,"keyvalue"),i.DNE(7,bt,3,6,"div",27),i.nI1(8,"keyvalue"),i.k0s(),i.nrm(9,"div"),i.k0s()),2&rn){const Te=i.XpG();i.AVh("side-padding",!Te.tvMode),i.R7$(),i.Y8G("ngClass",i.sMw(16,yt,Te.tvMode,!Te.tvMode&&!Te.enlargeFontMode,!Te.tvMode&&Te.enlargeFontMode)),i.R7$(),i.SpI(" ",i.bMT(3,10,"settings.Layout")," "),i.R7$(3),i.Y8G("ngForOf",i.bMT(6,12,Te.quadrants)),i.R7$(2),i.Y8G("ngForOf",i.bMT(8,14,Te.statsQuadrants)),i.R7$(2),i.AVh("nv-gap-16",Te.tvMode)("nv-gap-8",!Te.tvMode)}}function Pt(rn,Di){if(1&rn){const Te=i.RV6();i.qex(0),i.j41(1,"div")(2,"nv-rotary",42),i.bIt("selectionChanged",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.rotaryChanged(ei.indicators.Recording,Rt))}),i.k0s()(),i.bVm()}if(2&rn){const Te=i.XpG();i.R7$(),i.AVh("rotary-side-padding",!Te.tvMode),i.R7$(),i.Y8G("input",Te.rotaryOptions)("initialState",Te.rotaryInit.Recording)}}function jt(rn,Di){if(1&rn){const Te=i.RV6();i.qex(0),i.j41(1,"div",43)(2,"nv-rotary",44),i.bIt("selectionChanged",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.rotaryChanged(ei.indicators.IR,Rt))}),i.k0s(),i.j41(3,"nv-rotary",45),i.bIt("selectionChanged",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.rotaryChanged(ei.indicators.Highlights,Rt))}),i.k0s()(),i.bVm()}if(2&rn){const Te=i.XpG();i.R7$(2),i.Y8G("input",Te.rotaryOptions)("initialState",Te.rotaryInit.IR),i.R7$(),i.Y8G("input",Te.rotaryOptions)("initialState",Te.rotaryInit.Highlights)}}function gn(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"nv-rotary",46),i.bIt("selectionChanged",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.rotaryChanged(ei.indicators.Mic,Rt))}),i.k0s()}if(2&rn){const Te=i.XpG();i.Y8G("input",Te.rotaryOptions)("initialState",Te.rotaryInit.Mic)}}function ui(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"nv-rotary",46),i.bIt("selectionChanged",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.rotaryChanged(ei.indicators.GfnMic,Rt))}),i.k0s()}if(2&rn){const Te=i.XpG();i.Y8G("input",Te.rotaryOptions)("initialState",Te.rotaryInit.GfnMic)}}function Ii(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"nv-rotary",47),i.bIt("selectionChanged",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.rotaryChanged(ei.indicators.PerfLogging,Rt))}),i.k0s()}if(2&rn){const Te=i.XpG();i.Y8G("input",Te.rotaryOptions)("initialState",Te.rotaryInit.PerfLogging)}}function pr(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"div"),i.nrm(1,"div"),i.j41(2,"div",48),i.EFF(3),i.nI1(4,"translate"),i.k0s(),i.j41(5,"nv-rotary",49),i.bIt("selectionChanged",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.rotaryChanged(ei.indicators.Network,Rt))}),i.k0s()()}if(2&rn){const Te=i.XpG();i.AVh("rotary-side-padding",!Te.tvMode),i.R7$(),i.AVh("nv-gap-16",Te.tvMode)("nv-gap-8",!Te.tvMode),i.R7$(),i.Y8G("ngClass",i.sMw(12,Gt,Te.tvMode,!Te.tvMode&&!Te.enlargeFontMode,!Te.tvMode&&Te.enlargeFontMode)),i.R7$(),i.SpI(" ",i.bMT(4,10,"settings.Network")," "),i.R7$(2),i.Y8G("input",Te.rotaryOptions)("initialState",Te.rotaryInit.Network)}}function zr(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"div"),i.nrm(1,"div"),i.j41(2,"div",48),i.EFF(3),i.nI1(4,"translate"),i.k0s(),i.j41(5,"nv-rotary",50),i.bIt("selectionChanged",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.rotaryChanged(ei.indicators.Statistics,Rt))}),i.k0s()()}if(2&rn){const Te=i.XpG();i.AVh("rotary-side-padding",!Te.tvMode),i.R7$(),i.AVh("nv-gap-16",Te.tvMode)("nv-gap-8",!Te.tvMode),i.R7$(),i.Y8G("ngClass",i.sMw(12,Gt,Te.tvMode,!Te.tvMode&&!Te.enlargeFontMode,!Te.tvMode&&Te.enlargeFontMode)),i.R7$(),i.SpI(" ",i.bMT(4,10,"settings.stats.Statistics")," "),i.R7$(2),i.Y8G("input",Te.rotaryStatsOptions)("initialState",Te.rotaryInit.Statistics)}}function Cn(rn,Di){1&rn&&(i.j41(0,"div",31),i.nrm(1,"mat-icon",33),i.k0s())}function pn(rn,Di){1&rn&&(i.j41(0,"div",31),i.nrm(1,"mat-icon",34),i.k0s())}function ti(rn,Di){1&rn&&(i.j41(0,"div",31),i.nrm(1,"mat-icon",35),i.k0s())}function pi(rn,Di){1&rn&&(i.j41(0,"div",31),i.nrm(1,"mat-icon",36),i.k0s())}function cn(rn,Di){1&rn&&(i.j41(0,"div",31),i.nrm(1,"mat-icon",36),i.k0s())}function An(rn,Di){1&rn&&(i.j41(0,"div",31),i.nrm(1,"mat-icon",37),i.k0s())}function Jn(rn,Di){1&rn&&(i.j41(0,"div",31),i.nrm(1,"mat-icon",53),i.k0s())}function hi(rn,Di){if(1&rn&&(i.j41(0,"div")(1,"div",28)(2,"div",29),i.DNE(3,Cn,2,0,"div",30)(4,pn,2,0,"div",30)(5,ti,2,0,"div",30)(6,pi,2,0,"div",30)(7,cn,2,0,"div",30)(8,An,2,0,"div",30)(9,Jn,2,0,"div",30),i.k0s()()()),2&rn){const Te=Di.$implicit,Jt=i.XpG(2);i.R7$(),i.Y8G("ngClass",Te.value),i.R7$(2),i.Y8G("ngIf",Jt.shadowPlayEnabled&&Jt.visibility.Recording===Te.key),i.R7$(),i.Y8G("ngIf",Jt.galleryEnabled&&Jt.visibility.IR===Te.key),i.R7$(),i.Y8G("ngIf",Jt.galleryEnabled&&Jt.visibility.Highlights===Te.key),i.R7$(),i.Y8G("ngIf",Jt.micEnabled&&Jt.visibility.Mic===Te.key),i.R7$(),i.Y8G("ngIf",Jt.gfnMicEnabled&&Jt.visibility.GfnMic===Te.key),i.R7$(),i.Y8G("ngIf",Jt.showConnectionStatus&&Jt.visibility.Network===Te.key),i.R7$(),i.Y8G("ngIf",Jt.showPerfLogging&&Jt.visibility.PerfLogging===Te.key)}}function xi(rn,Di){1&rn&&(i.j41(0,"div",31),i.nrm(1,"mat-icon",32),i.k0s())}function xn(rn,Di){if(1&rn&&(i.j41(0,"div")(1,"div",38),i.DNE(2,xi,2,0,"div",30),i.k0s()()),2&rn){const Te=Di.$implicit,Jt=i.XpG(2);i.R7$(),i.Y8G("ngClass",Te.value)("ngStyle",i.l_i(3,Wt,Jt.statsOffset,Jt.statsOffset)),i.R7$(),i.Y8G("ngIf",Jt.isPerfOverlaySupported&&Jt.visibility.Performance===Te.key)}}function Yn(rn,Di){if(1&rn&&(i.j41(0,"div",40)(1,"div",41),i.nrm(2,"mat-icon",32),i.k0s()()),2&rn){const Te=i.XpG(3);i.Y8G("ngClass",i.l_i(1,ke,Te.statSize===Te.statsSizes[0],Te.statSize===Te.statsSizes[1]))}}function Gn(rn,Di){if(1&rn&&(i.j41(0,"div")(1,"div",38),i.DNE(2,Yn,3,4,"div",39),i.k0s()()),2&rn){const Te=Di.$implicit,Jt=i.XpG(2);i.R7$(),i.Y8G("ngClass",Te.value)("ngStyle",i.l_i(3,Wt,Jt.statsOffset,Jt.statsOffset)),i.R7$(),i.Y8G("ngIf",Jt.showStats&&Jt.visibility.Statistics===Te.key)}}function Ci(rn,Di){if(1&rn&&(i.qex(0),i.j41(1,"div",51),i.nrm(2,"div",14),i.j41(3,"div",52),i.EFF(4),i.nI1(5,"translate"),i.k0s(),i.j41(6,"div",26),i.DNE(7,hi,10,8,"div",27),i.nI1(8,"keyvalue"),i.DNE(9,xn,3,6,"div",27),i.nI1(10,"keyvalue"),i.DNE(11,Gn,3,6,"div",27),i.nI1(12,"keyvalue"),i.k0s()(),i.bVm()),2&rn){const Te=i.XpG();i.R7$(4),i.SpI(" ",i.bMT(5,4,"settings.Preview")," "),i.R7$(3),i.Y8G("ngForOf",i.bMT(8,6,Te.quadrants)),i.R7$(2),i.Y8G("ngForOf",i.bMT(10,8,Te.quadrants)),i.R7$(2),i.Y8G("ngForOf",i.bMT(12,10,Te.statsQuadrants))}}let bi=(()=>{class rn extends r{constructor(Te,Jt,Rt,ei,tr,Ur,lo,wo,Lr,ns){super(Rt,ei,Ur),this.injector=Te,this.loggingService=Jt,this.osdService=tr,this.featureSupportService=lo,this.telemetryService=wo,this.oscDisplayService=Lr,this.hotkeyService=ns,this.showStats=!1,this.showConnectionStatus=!1,this.quadrants={},this.rotaryOptionsGFN=["settings.UpperRight","settings.LowerRight","settings.LowerLeft","settings.UpperLeft","settings.None"],this.rotaryOptionsNvApp=["settings.UpperRight","settings.CenterRight","settings.LowerRight","settings.LowerCenter","settings.LowerLeft","settings.CenterLeft","settings.UpperLeft","settings.UpperCenter","settings.None"],this.rotaryStatsOptions=["settings.UpperRight","settings.LowerRight","settings.LowerLeft","settings.UpperLeft"],this.layoutRotaryOptions=["perfmon.linear","perfmon.double","perfmon.stacked"],this.visibilityRotaryOptions=["settings.gameplay.Standard","settings.gameplay.Enhanced"],this.rotarySizeOptions=["settings.Small","settings.Medium","settings.Large"],this.rotarySizeSpOptions=[re.Or.Share.Shareserver.OverlaySizeEnum.small,re.Or.Share.Shareserver.OverlaySizeEnum.medium,re.Or.Share.Shareserver.OverlaySizeEnum.large],this.fontSizeRotaryOptions=["perfmon.standard","perfmon.large"],this.fontColorRotaryOptions=["perfmon.white","perfmon.red","perfmon.green","perfmon.blue","perfmon.black","perfmon.custom"],this.visibility={Recording:f.VHt.none,IR:f.VHt.none,Highlights:f.VHt.none,Mic:f.VHt.none,ViewerCount:f.VHt.none,Comments:f.VHt.none,GfnMic:f.VHt.none,Statistics:f.VHt.none,Network:f.VHt.none,Performance:f.VHt.none,PerfLogging:f.VHt.none},this.active={Recording:!0,IR:!0,Highlights:!0,Mic:!0,ViewerCount:!1,Comments:!1,GfnMic:!0,Statistics:!1,StatsSize:!1,Network:!1,Performance:!0,PerfLogging:!0},this.quadrantsGFN={rightTop:"hud-topright",rightBottom:"hud-bottomright",leftBottom:"hud-bottomleft",leftTop:"hud-topleft"},this.quadrantsNvApp={rightTop:"hud-topright",rightCenter:"hud-centerright",rightBottom:"hud-bottomright",centerBottom:"hud-bottomcenter",leftBottom:"hud-bottomleft",leftCenter:"hud-centerleft",leftTop:"hud-topleft",centerTop:"hud-topcenter"},this.statsQuadrants={rightTop:"stats-topright",rightBottom:"stats-bottomright",leftBottom:"stats-bottomleft",leftTop:"stats-topleft"},this.rotaryInit={Recording:0,IR:0,Highlights:0,Mic:0,ViewerCount:0,Comments:0,GfnMic:0,Statistics:0,StatsSize:0,Network:0,Performance:0,PerfLogging:0,PerfFontSize:0,PerfFontColor:0},this.initRotaryPosition={Recording:f.VHt.none,IR:f.VHt.none,Highlights:f.VHt.none,Mic:f.VHt.none,ViewerCount:f.VHt.none,Comments:f.VHt.none,BrowserMic:f.VHt.none,Statistics:f.VHt.none,StatsSize:f.VHt.none,Network:f.VHt.none},this.positionGFN=[f.VHt.rightTop,f.VHt.rightBottom,f.VHt.leftBottom,f.VHt.leftTop,f.VHt.none],this.positionNvApp=[f.VHt.rightTop,f.VHt.rightCenter,f.VHt.rightBottom,f.VHt.centerBottom,f.VHt.leftBottom,f.VHt.leftCenter,f.VHt.leftTop,f.VHt.centerTop,f.VHt.none],this.size=[f.hc_.small,f.hc_.medium,f.hc_.large],this.indicators=f.lb6,this.shadowPlayEnabled=!1,this.galleryEnabled=!1,this.micEnabled=!1,this.gfnMicEnabled=!1,this.statisticsEnabled=!1,this.showPerfLogging=!1,this.connectionStatusEnabled=!1,this.isPerfOverlaySupported=!1,this.widgetsChanged=!1,this.statsSizes=[f.QYS.compact,f.QYS.standard],this.statSize=f.QYS.compact,this.statsOffset=5,this.statsChanged=!1,this.initNetworkOverlay={position:f.VHt.none,size:f.QYS.compact},this.previewTitle="",this.isNvApp=!1,this.performancePosition={x:void 0,y:void 0},this.toggleVisibilityHotkeyParam={},this.performanceBackgroundOpacity=f.Azv,this.performanceFontSize=f.NXI,this.performanceFontColor=f.XBk,this.performanceCustomFontColor=f.eCB,super.bar("settings.HeadsUpDisplay"),this.featureSupportService.isPerfOverlayEnabled()?(this.perfMonService=this.injector.get(f.zET),this.isPerfOverlaySupported=!0):this.featureSupportService.isStatisticsEnabled()&&(this.statisticsService=this.injector.get(f.rJX),this.statisticsEnabled=!0),this.logger=this.loggingService.getLogger("HUD"),this.galleryEnabled=this.featureSupportService.isGalleryEnabled(),this.shadowPlayEnabled=this.featureSupportService.isShadowPlayEnabled(),this.micEnabled=this.featureSupportService.isMicrophoneEnabled(),this.showPerfLogging=this.featureSupportService.showPerfLogging(),this.connectionStatusEnabled=this.featureSupportService.isConnectionStatusEnabled(),this.tvMode=this.featureSupportService.isTVMode(),this.isNvApp=this.featureSupportService.isGFEMode(),this.position=this.positionGFN,this.positionPerformance=this.positionNvApp,this.rotaryOptions=this.rotaryOptionsGFN,this.rotaryOptionsPerformance=this.rotaryOptionsNvApp.filter(Io=>"settings.None"!==Io),this.quadrants=this.isNvApp?this.quadrantsNvApp:this.quadrantsGFN,this.previewTitle=this.isNvApp?"settings.Preview":"settings.Layout",this.cornerNotInUseOffset=this.isNvApp?0:8,this.enlargeFontMode=this.featureSupportService.enlargeIGOTextFont(),this.logger.info("Constructor")}onBackClicked(){this.oscDisplayService.openOSC(this.route.snapshot.params?.caller||"sidebar/settings/settings")}ngOnInit(){super.ngOnInit(),this.featureSupportService.isGfnMicrophoneEnabled().pipe((0,P.Q)(this.destroy$),(0,X.s)(1)).subscribe(Te=>{this.gfnMicEnabled=Te}),this.showStats=this.statisticsEnabled,this.active.Statistics=this.statisticsEnabled,this.active.StatsSize=this.statisticsEnabled,this.showConnectionStatus=this.connectionStatusEnabled,this.active.Network=this.connectionStatusEnabled,this.featureSupportService.isPerfOverlayEnabled()&&(this.performanceLayout=this.perfMonService?.getActiveLayout(),this.performanceVisibilityMode=this.perfMonService?.getVisibilityMode(),this.performanceBackgroundOpacity=this.perfMonService?.getOverlayBackgroundOpacity(),this.performanceFontSize=this.perfMonService?.getOverlayFontSize(),this.performanceFontColor=this.perfMonService?.getOverlayFontColor(),this.performanceCustomFontColor=this.perfMonService?.getOverlayCustomFontColor(),this.perfMonService?.checkPerformancePositionCoordinates(),this.hotkeyService.getHotkeyString(f.g8X.PMOCOverlayVisibility).subscribe(Te=>{this.toggleVisibilityHotkeyParam={hotkey:Te}}),this.logger.info("performanceVisibilityMode:",this.performanceVisibilityMode)),Object.keys(f.lb6).forEach(Te=>{if(this.active[Te]){const Jt=f.lb6[Te],Rt=this.osdService.getPosition(Jt),ei=Te===f.lb6.Performance?this.positionPerformance.findIndex(tr=>tr===Rt):this.position.findIndex(tr=>tr===Rt);this.logger.info("key: "+Te+" type: "+Jt+" pos: "+Rt+" index: "+ei),-1!==ei?(this.rotaryInit[Te]=ei,this.visibility[Te]=Rt,this.initRotaryPosition[Te]=Rt,Te===f.lb6.Statistics&&(this.initNetworkOverlay.position=Rt,this.anyWidgetsInCorner())):("StatsSize"===Te&&this.showStats?(this.visibility[Te]=this.visibility[f.lb6.Statistics],this.statSize=this.osdService.getStatsSize(),this.rotaryInit[Te]=this.statsSizes.findIndex(tr=>tr===this.statSize),this.initNetworkOverlay.size=this.statSize):(this.visibility[Te]=f.VHt.none,this.rotaryInit[Te]=this.position.findIndex(tr=>tr===f.VHt.none),this.logger.error("unsupported position: ",Rt)),this.initRotaryPosition[Te]=this.visibility[Te])}Te===f.lb6.Performance&&(this.performancePosition=this.perfMonService?.getPerfOverlayAbsolutePosition(),this.anyWidgetsInCorner())}),this.statisticsService?.statisticsHotkeyPressed().pipe((0,P.Q)(this.destroy$)).subscribe(()=>{this.visibility.StatsSize=this.visibility[f.lb6.Statistics],this.statSize=this.osdService.getStatsSize(),this.rotaryInit.StatsSize=this.statsSizes.findIndex(Te=>Te===this.statSize),this.initNetworkOverlay.size=this.statSize})}perfMonLayoutRotaryChanged(Te){this.logger.info("perfMonLayoutRotaryChanged:",Te),this.performanceLayout=Te,this.perfMonService?.setActiveLayout(Te)}perfMonVisibilityRotaryChanged(Te){this.logger.info("perfMonVisibilityRotaryChanged:",Te),this.performanceVisibilityMode=Te,this.perfMonService?.setVisibilityMode(Te)}perfMonBackgroundOpacitySliderChanged(Te){this.logger.info("perfMonBackgroundOpacitySliderChanged:",Te/100),this.perfMonService?.setOverlayBackgroundOpacity(Te)}perfMonFontSizeRotaryChanged(Te){this.logger.info("perfMonFontSizeRotaryChanged:",Te),this.perfMonService?.setOverlayFontSize(Te)}perfMonFontColorRotaryChanged(Te){this.logger.info("perfMonFontColorRotaryChanged:",Te),this.performanceFontColor=Te,this.perfMonService?.setOverlayFontColor(Te)}perfMonCustomFontColorChanged(Te){if(this.logger.info("perfMonCustomFontColorChanged:",Te),this.perfMonService.validateCustomFontColorInput(Te))this.performanceCustomFontColor=Te,this.perfMonService?.setOverlayCustomFontColor(Te);else{this.logger.error("Invalid custom color input : ",Te);const Jt=this.perfMonService?.getOverlayCustomFontColor();this.performanceCustomFontColor=Jt}}showCustomColorSection(){return 5===this.performanceFontColor}ngOnDestroy(){this.processHudTelemetry(),super.ngOnDestroy()}anyWidgetsInCorner(){let Te;Te=this.isNvApp?this.visibility[f.lb6.Performance]:this.visibility[f.lb6.Statistics];let Jt=!1;Te===f.VHt.none?Jt=!1:(this.visibility[f.lb6.Recording]===Te||this.visibility[f.lb6.IR]===Te||this.visibility[f.lb6.Highlights]===Te||this.visibility[this.gfnMicEnabled?f.lb6.GfnMic:f.lb6.Mic]===Te||this.visibility[f.lb6.Network]===Te||this.visibility[f.lb6.PerfLogging]===Te)&&(Jt=!0),this.statsOffset=Jt?this.tvMode?66:40:this.cornerNotInUseOffset}rotaryChanged(Te,Jt,Rt=!1){this.logger.info("Rotary changed: ",Te,this.rotaryOptions[Jt],Rt);const ei=Te===f.lb6.Performance?this.positionPerformance[Jt]:this.position[Jt];this.osdService.setPosition(Te,ei),this.visibility[Te]=ei,Te===f.lb6.Statistics?(this.statisticsService?.statisticsLayoutChanged(),this.statsChanged=!0):Te===f.lb6.Performance?Rt||(this.perfMonService?.setIsPerfOverlayEnabled(ei!==f.VHt.none),this.perfMonService?.updatePerformancePositionCoordinates(ei,this.performancePosition),this.perfMonService?.setPerfOverlayAbsolutePosition(this.performancePosition,!0)):this.widgetsChanged=!0,this.osdService.saveOverlaySettings(Rt).subscribe(),this.anyWidgetsInCorner()}performanceHorizontalSliderChanged(Te){this.logger.info("performanceHorizontalSliderChanged",this.performancePosition,Te);const Jt=this.performancePosition.x;if(Jt===Te)return;const ei=this.osdService.getPosition(f.lb6.Performance);let tr;if(this.logger.info("oldValue",Jt),this.logger.info("oldQuadrant",ei),50!==Te||-1===ei.indexOf("Center")){if(50===Jt?Te>50?tr=ei.replace("center","right"):Te<50&&(tr=ei.replace("center","left")):Jt<50?Te>50?tr=ei.replace("left","right"):50===Te&&(tr=ei.replace("left","center")):Jt>50&&(Te<50?tr=ei.replace("right","left"):50===Te&&(tr=ei.replace("right","center"))),tr){const Ur=this.positionPerformance.findIndex(lo=>tr===lo);this.rotaryInit.Performance=Ur,this.rotaryChanged(f.lb6.Performance,Ur,!0)}this.performancePosition.x=Te,this.perfMonService?.setPerfOverlayAbsolutePosition(this.performancePosition)}}performanceVerticalSliderChanged(Te){this.logger.info("performanceVerticalSliderChanged",this.performancePosition,Te);const Jt=this.performancePosition.y;if(Jt===Te)return;const ei=this.osdService.getPosition(f.lb6.Performance);let tr;if(this.logger.info("oldValue",Jt),this.logger.info("oldQuadrant",ei),50!==Te||-1===ei.indexOf("center")){if(50===Jt?Te>50?tr=ei.replace("Center","Bottom"):Te<50&&(tr=ei.replace("Center","Top")):Jt<50?Te>50?tr=ei.replace("Top","Bottom"):50===Te&&(tr=ei.replace("Top","Center")):Jt>=50&&(Te<50?tr=ei.replace("Bottom","Top"):50===Te&&(tr=ei.replace("Bottom","Center"))),tr){const Ur=this.positionPerformance.findIndex(lo=>tr===lo);this.rotaryInit.Performance=Ur,this.rotaryChanged(f.lb6.Performance,Ur,!0)}this.performancePosition.y=Te,this.perfMonService?.setPerfOverlayAbsolutePosition(this.performancePosition)}}sanitizePositionCoordinate(Te){return Te<0?Te=0:Te>100&&(Te=100),Te}processHudTelemetry(){if(this.statsChanged){const Te=this.osdService.getStatsSize(),Jt=this.osdService.getPosition(f.lb6.Statistics);if(this.initNetworkOverlay.position!==Jt||this.initNetworkOverlay.size!==Te){const ei=this.statisticsService?.getStatsState()!==f.BKk.Off;this.telemetryService.sendStatsViewChanged(ei,Te,Jt)}}if(this.widgetsChanged){this.initRotaryPosition[f.lb6.Network]!==this.visibility[f.lb6.Network]&&this.telemetryService.sendWidgetViewChanged(f.lb6.Network,this.visibility[f.lb6.Network]),this.initRotaryPosition[f.lb6.IR]!==this.visibility[f.lb6.IR]&&this.telemetryService.sendWidgetViewChanged(f.lb6.IR,this.visibility[f.lb6.IR]),this.initRotaryPosition[f.lb6.Recording]!==this.visibility[f.lb6.Recording]&&this.telemetryService.sendWidgetViewChanged(f.lb6.Recording,this.visibility[f.lb6.Recording]),this.initRotaryPosition[f.lb6.Highlights]!==this.visibility[f.lb6.Highlights]&&this.telemetryService.sendWidgetViewChanged(f.lb6.Highlights,this.visibility[f.lb6.Highlights]);const Te=this.gfnMicEnabled?f.lb6.GfnMic:f.lb6.Mic;this.initRotaryPosition[Te]!==this.visibility[Te]&&this.telemetryService.sendWidgetViewChanged(Te,this.visibility[Te])}}getCustomFontColorText(){return this.perfMonService?.getOverlayCustomFontColor()}static{this.\u0275fac=function(Jt){return new(Jt||rn)(i.rXU(i.zZn),i.rXU(v.J6),i.rXU(f.o_p),i.rXU(l.nX),i.rXU(f.auo),i.rXU(f.gZv),i.rXU(f.Rvq),i.rXU(f.xRl),i.rXU(f.Bqk),i.rXU(f.QSC))}}static{this.\u0275cmp=i.VBU({type:rn,selectors:[["igo-hud"]],features:[i.Vt3],decls:16,vars:22,consts:[["fxLayout","column","fxFlex",""],["fxFlex","grow",1,"hud-scroll"],["fxLayout","column",4,"ngIf"],[3,"side-padding",4,"ngIf"],[1,"font-color-tertiary","gfn-section-head-padding",3,"ngClass"],[4,"ngIf"],["title","settings.Microphone",3,"input","initialState","selectionChanged",4,"ngIf"],["title","settings.PerfLogging",3,"input","initialState","selectionChanged",4,"ngIf"],[3,"rotary-side-padding",4,"ngIf"],["fxLayout","column"],[1,"font-sub2","font-color-tertiary","section-lable-padding","side-padding"],["title","perfmon.performanceOverlay",3,"selectionChanged","input","initialState"],[1,"font-body1","font-color-primary","nvapp-slider-header-padding","side-padding"],["valueEntry","true",1,"slider-side-padding",3,"input","min","max","step","tickInterval","value"],[1,"nv-gap-16"],[1,"font-body2","font-color-tertiary","margin-gap"],["title","settings.Layout",1,"rotary-side-padding",3,"selectionChanged","input","initialState"],[1,"font-body2","font-color-tertiary"],["title","perfmon.fontSize",1,"rotary-side-padding",3,"selectionChanged","input","initialState"],["title","perfmon.fontColor",1,"rotary-side-padding",3,"selectionChanged","input","initialState"],["class","font-body1 font-color-tertiary margin-gap","fxflex","column",4,"ngIf"],["fxflex","column",1,"font-body1","font-color-tertiary","margin-gap"],["fxflex","column",1,"input-side-padding"],[1,"font-body1","font-color-tertiary","nvapp-slider-header-padding","custom-color-input"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","auto",3,"textChange","readonly","textMaxLength","text","isColorCode","defaultColorCode"],[1,"gfn-section-head-padding","font-color-tertiary",3,"ngClass"],[1,"hud-window"],[4,"ngFor","ngForOf"],["fxLayout","column",3,"ngClass"],["fxLayout","column","fxFlex","none"],["class","hud-icons","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center",1,"hud-icons"],["svgIcon","analytics"],["svgIcon","record"],["svgIcon","replay"],["svgIcon","highlights"],["svgIcon","mic"],["svgIcon","network_signal"],["fxFlex","none",3,"ngClass","ngStyle"],["fxLayout","row","fxLayoutAlign","center center",3,"ngClass",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center",3,"ngClass"],["fxLayoutAlign","center center",1,"hud-icons"],["title","settings.Record",3,"selectionChanged","input","initialState"],[1,"rotary-side-padding"],["title","settings.InstantReplay",3,"selectionChanged","input","initialState"],["title","commonLabels.Highlights",3,"selectionChanged","input","initialState"],["title","settings.Microphone",3,"selectionChanged","input","initialState"],["title","settings.PerfLogging",3,"selectionChanged","input","initialState"],[1,"font-color-tertiary","nv-label",3,"ngClass"],["title","settings.ConnectionStatus",3,"selectionChanged","input","initialState"],["title","settings.stats.Position",3,"selectionChanged","input","initialState"],[1,"side-padding"],[1,"font-sub2","font-color-tertiary","section-lable-padding"],["svgIcon","text_snippet"]],template:function(Jt,Rt){1&Jt&&(i.j41(0,"div",0)(1,"div",1),i.DNE(2,Ae,31,38,"div",2)(3,bn,10,20,"div",3),i.j41(4,"div",4),i.EFF(5),i.nI1(6,"translate"),i.k0s(),i.DNE(7,Pt,3,4,"ng-container",5)(8,jt,4,4,"ng-container",5),i.j41(9,"div"),i.DNE(10,gn,1,2,"nv-rotary",6)(11,ui,1,2,"nv-rotary",6)(12,Ii,1,2,"nv-rotary",7),i.k0s(),i.DNE(13,pr,6,16,"div",8)(14,zr,6,16,"div",8)(15,Ci,13,12,"ng-container",5),i.k0s()()),2&Jt&&(i.R7$(2),i.Y8G("ngIf",Rt.isNvApp),i.R7$(),i.Y8G("ngIf",!Rt.isNvApp),i.R7$(),i.AVh("side-padding",!Rt.tvMode),i.Y8G("ngClass",i.sMw(18,Gt,Rt.tvMode,!Rt.tvMode&&!Rt.enlargeFontMode,!Rt.tvMode&&Rt.enlargeFontMode)),i.R7$(),i.SpI(" ",i.bMT(6,16,"settings.StatusIndicators")," "),i.R7$(2),i.Y8G("ngIf",Rt.shadowPlayEnabled),i.R7$(),i.Y8G("ngIf",Rt.galleryEnabled),i.R7$(),i.AVh("rotary-side-padding",!Rt.tvMode),i.R7$(),i.Y8G("ngIf",Rt.micEnabled),i.R7$(),i.Y8G("ngIf",Rt.gfnMicEnabled),i.R7$(),i.Y8G("ngIf",Rt.showPerfLogging),i.R7$(),i.Y8G("ngIf",Rt.showConnectionStatus),i.R7$(),i.Y8G("ngIf",Rt.showStats),i.R7$(),i.Y8G("ngIf",Rt.isNvApp))},dependencies:[n.YU,n.Sq,n.bT,n.B3,a.$,rt.X,et.Q,m.DJ,m.sA,m.UI,Qe.PW,Qe.eI,ie.An,St.t,n.lG,Be.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.hud-window[_ngcontent-%COMP%]{position:relative;height:264px;width:100%;background-color:var(--hud-window-bg-color)}.hud-icons[_ngcontent-%COMP%]{width:24px;height:24px;background-color:var(--secondary-700)}.hud-icons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:14px;height:14px;font-size:14px;color:#fff}.hud-topleft[_ngcontent-%COMP%]{left:0;top:0;position:absolute;transform-origin:left top}.hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-top:8px}.isLtr[_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.hud-topright[_ngcontent-%COMP%]{right:0;top:0;position:absolute;transform-origin:right top}.hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-top:8px}.isLtr[_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.hud-topcenter[_ngcontent-%COMP%]{right:50%;top:0;position:absolute;transform-origin:center top}.hud-topcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-top:8px}.isLtr[_nghost-%COMP%] .hud-topcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hud-topcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .hud-topcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .hud-topcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hud-topcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .hud-topcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.hud-centerright[_ngcontent-%COMP%]{right:0;top:50%;position:absolute;transform:translateY(-50%);transform-origin:right center}.hud-centerright[_ngcontent-%COMP%] .first[_ngcontent-%COMP%]{margin-top:0}.hud-centerright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-top:8px}.isLtr[_nghost-%COMP%] .hud-centerright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hud-centerright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .hud-centerright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .hud-centerright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hud-centerright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .hud-centerright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.hud-centerleft[_ngcontent-%COMP%]{left:0;top:50%;position:absolute;transform:translateY(-50%);transform-origin:left center}.hud-centerleft[_ngcontent-%COMP%] .first[_ngcontent-%COMP%]{margin-top:0}.hud-centerleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-top:8px}.isLtr[_nghost-%COMP%] .hud-centerleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hud-centerleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .hud-centerleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .hud-centerleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hud-centerleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .hud-centerleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.gfn-section-head-padding[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.hud-bottomleft[_ngcontent-%COMP%]{left:0;bottom:0;position:absolute;flex-direction:column-reverse!important;transform-origin:left bottom}.hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-bottom:8px}.isLtr[_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.hud-bottomright[_ngcontent-%COMP%]{right:0;bottom:0;position:absolute;flex-direction:column-reverse!important;transform-origin:right bottom}.hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-bottom:8px}.isLtr[_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.hud-bottomcenter[_ngcontent-%COMP%]{right:50%;bottom:0;position:absolute;flex-direction:column-reverse!important;transform:translate(50%);transform-origin:center bottom}.hud-bottomcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-bottom:8px}.isLtr[_nghost-%COMP%] .hud-bottomcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hud-bottomcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .hud-bottomcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .hud-bottomcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hud-bottomcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .hud-bottomcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.hud-bottomright[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .hud-bottomleft[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .hud-bottomcenter[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-direction:column-reverse!important}[_nghost-%COMP%]{padding:16px 0}.hud-scroll[_ngcontent-%COMP%]{scrollbar-gutter:stable;overflow-y:auto}.nvapp-slider-header-padding[_ngcontent-%COMP%], .section-lable-padding[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.stats-small[_ngcontent-%COMP%]{width:49px;height:24px;background-color:var(--secondary-1000)}.stats-large[_ngcontent-%COMP%]{width:49px;height:88px;background-color:var(--secondary-1000)}.layout-text-font[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 14px;--font-body-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .layout-text-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%]{--font-body-size: 28px;--font-body-line-height: 40px;--font-body-color: rgba(255, 255, 255, .85)}.stats-topleft[_ngcontent-%COMP%]{left:0;top:0;padding-top:8px;position:absolute;transform-origin:left top}.stats-topright[_ngcontent-%COMP%]{right:0;top:0;padding-top:8px;position:absolute;transform-origin:right top}.stats-bottomleft[_ngcontent-%COMP%]{left:0;bottom:0;padding-bottom:8px;position:absolute;flex-direction:column-reverse!important;transform-origin:left bottom}.stats-bottomright[_ngcontent-%COMP%]{right:0;bottom:0;padding-bottom:8px;position:absolute;flex-direction:column-reverse!important;transform-origin:right bottom}.tv-view[_nghost-%COMP%], .tv-view [_nghost-%COMP%]{padding:24px}.tv-view[_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 12px;--font-body-line-height: 16px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%]{--font-body-size: 24px;--font-body-line-height: 32px;--font-body-color: rgba(255, 255, 255, .85)}.tv-view[_nghost-%COMP%] .hud-window[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-window[_ngcontent-%COMP%]{height:358px}.tv-view[_nghost-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-icons[_ngcontent-%COMP%]{width:48px;height:48px}.tv-view[_nghost-%COMP%] .hud-icons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-icons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .hud-icons[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-icons[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}.tv-view[_nghost-%COMP%] .stats-small[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stats-small[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .stats-large[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stats-large[_ngcontent-%COMP%]{height:48px;width:88px}.tv-view[_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-top:12px}.isLtr.tv-view[_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:12px}html[dir=ltr] .tv-view[_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:12px}.isRtl.tv-view[_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:12px}html[dir=rtl] .tv-view[_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:12px}.tv-view[_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-top:12px}.isLtr.tv-view[_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:12px}html[dir=ltr] .tv-view[_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:12px}.isRtl.tv-view[_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:12px}html[dir=rtl] .tv-view[_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:12px}.tv-view[_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-bottom:12px}.isLtr.tv-view[_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:12px}html[dir=ltr] .tv-view[_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:12px}.isRtl.tv-view[_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:12px}html[dir=rtl] .tv-view[_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:12px}.tv-view[_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-bottom:12px}.isLtr.tv-view[_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:12px}html[dir=ltr] .tv-view[_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:12px}.isRtl.tv-view[_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:12px}html[dir=rtl] .tv-view[_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:12px}.tv-view[_nghost-%COMP%] .stats-topleft[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stats-topleft[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .stats-topright[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stats-topright[_ngcontent-%COMP%]{padding-top:12px}.tv-view[_nghost-%COMP%] .stats-bottomleft[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stats-bottomleft[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .stats-bottomright[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stats-bottomright[_ngcontent-%COMP%]{padding-bottom:12px}.tv-view[_nghost-%COMP%] .gfn-section-head-padding[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .gfn-section-head-padding[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.margin-gap[_ngcontent-%COMP%]{margin-top:15px}.visibility-subtitle[_ngcontent-%COMP%]{margin-top:-8px;margin-bottom:15px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-right:4px}html[dir=ltr][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:4px}.isRtl[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-left:4px}html[dir=rtl][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:4px}.isLtr[_nghost-%COMP%] .slider-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .slider-side-padding[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .slider-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .slider-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .slider-side-padding[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .slider-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .slider-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .slider-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .slider-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .slider-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .slider-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .slider-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.custom-color-input[_ngcontent-%COMP%]{width:317px;height:24px;color:var(--primary-contrast-1000)}.isLtr[_nghost-%COMP%] .input-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .input-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .input-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .input-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .input-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .input-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .input-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .input-side-padding[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .input-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .input-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .input-side-padding[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .input-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.text-color[_ngcontent-%COMP%]{color:#242424}"]})}}return rn})();var Zi=s(19724);const Mr=(rn,Di,Te)=>({"font-body2":rn,"font-body1":Di,"font-body-largefont0":Te}),$r=(rn,Di)=>({"font-body2":rn,"font-body-largefont1":Di}),_o=(rn,Di,Te)=>({"font-body3":rn,"font-body2":Di,"font-body-largefont1":Te});function bo(rn,Di){1&rn&&i.nrm(0,"div",9)}function Kn(rn,Di){if(1&rn&&(i.j41(0,"div",10),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn){const Te=i.XpG(2);i.Y8G("ngClass",i.l_i(4,$r,!Te.tvMode&&!Te.enlargeFontMode,!Te.tvMode&&Te.enlargeFontMode)),i.R7$(),i.SpI(" ",i.bMT(2,2,"settings.NotificationsEnable")," ")}}function gi(rn,Di){1&rn&&(i.j41(0,"div",11),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn&&(i.R7$(),i.SpI(" ",i.bMT(2,1,"settings.NotificationsEnableNvApp")," "))}function Pi(rn,Di){if(1&rn&&(i.qex(0),i.DNE(1,bo,1,0,"div",6)(2,Kn,3,7,"div",7)(3,gi,3,3,"div",8),i.bVm()),2&rn){const Te=i.XpG();i.R7$(),i.Y8G("ngIf",Te.tvMode),i.R7$(),i.Y8G("ngIf",!Te.isNvApp),i.R7$(),i.Y8G("ngIf",Te.isNvApp)}}function ji(rn,Di){1&rn&&(i.j41(0,"div",16),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn&&(i.R7$(),i.SpI(" ",i.bMT(2,1,"settings.NotificationsDisable")," "))}function Qi(rn,Di){1&rn&&i.nrm(0,"div",20)}function ar(rn,Di){if(1&rn&&(i.j41(0,"div",21),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn){const Te=i.XpG(2).$implicit,Jt=i.XpG(2);i.AVh("font-color-tertiary",Jt.tvMode),i.Y8G("ngClass",i.sMw(6,_o,Jt.tvMode,!Jt.tvMode&&!Jt.enlargeFontMode,!Jt.tvMode&&Jt.enlargeFontMode)),i.R7$(),i.SpI(" ",i.bMT(2,4,Te.header)," ")}}function jr(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"div")(1,"mat-checkbox",22),i.mxI("ngModelChange",function(Rt){i.eBV(Te);const ei=i.XpG(2).$implicit;return i.DH7(ei.state,Rt)||(ei.state=Rt),i.Njj(Rt)}),i.bIt("change",function(){i.eBV(Te);const Rt=i.XpG(2).index,ei=i.XpG(2);return i.Njj(ei.onStateChanged(Rt))}),i.j41(2,"span",23),i.EFF(3),i.nI1(4,"translate"),i.k0s()()()}if(2&rn){const Te=i.XpG(2).$implicit,Jt=i.XpG(2);i.R7$(),i.AVh("igo-notification-mat",Jt.isNvApp&&!Jt.tvMode),i.R50("ngModel",Te.state),i.R7$(),i.Y8G("ngClass",i.sMw(7,Mr,Jt.tvMode,!Jt.tvMode&&!Jt.enlargeFontMode,!Jt.tvMode&&Jt.enlargeFontMode)),i.R7$(),i.SpI(" ",i.bMT(4,5,Te.text)," ")}}function ho(rn,Di){if(1&rn&&(i.qex(0),i.DNE(1,Qi,1,0,"div",18)(2,ar,3,10,"div",19)(3,jr,5,11,"div",17),i.bVm()),2&rn){const Te=i.XpG(),Jt=Te.$implicit,Rt=Te.index,ei=i.XpG(2);i.R7$(),i.Y8G("ngIf",Jt.header&&Rt>0&&ei.tvMode),i.R7$(),i.Y8G("ngIf",Jt.header),i.R7$(),i.Y8G("ngIf",Jt.text)}}function Fo(rn,Di){if(1&rn&&(i.j41(0,"div"),i.DNE(1,ho,4,3,"ng-container",17),i.k0s()),2&rn){const Te=Di.$implicit;i.R7$(),i.Y8G("ngIf",Te.enable)}}function no(rn,Di){if(1&rn&&(i.DNE(0,ji,3,3,"div",12),i.nrm(1,"nv-divider",13),i.j41(2,"div",14),i.DNE(3,Fo,2,1,"div",15),i.k0s()),2&rn){const Te=i.XpG();i.Y8G("ngIf",Te.isNvApp),i.R7$(3),i.Y8G("ngForOf",Te.notifications)}}let yo=(()=>{class rn extends r{constructor(Te,Jt,Rt,ei,tr,Ur,lo,wo,Lr,ns){super(Jt,Rt,tr,null,ns),this.loggingService=Te,this.notificationService=ei,this.featureSupportService=lo,this.telemetryService=wo,this.telemetryIgoService=Lr,this.notificationSettingChanged=!1,this.initialState=void 0,this.showNotifications=void 0,this.notifications=[{header:"commonLabels.General",enable:!0},{control:f.Jkt.OpenOverlay,text:this.featureSupportService.isGuestAppFlowWrapper()?"settings.guestApp.IngameOverlayNoThe":"settings.IngameOverlayNoThe",state:this.initialState,enable:!0},{header:"settings.Network",enable:this.featureSupportService.isConnectionStatusEnabled()},{control:f.Jkt.ConnectionStatus,text:"settings.ConnectionStatus",state:this.initialState,enable:this.featureSupportService.isConnectionStatusEnabled()},{header:"gallery.Gallery",enable:this.featureSupportService.isGalleryEnabled()},{control:f.Jkt.SaveHLToGallery,text:"notification.HighlightSaved",state:this.initialState,enable:this.featureSupportService.isGalleryEnabled()},{control:f.Jkt.SaveMRToGallery,text:"notification.ManualRecordStopped",state:this.initialState,enable:this.featureSupportService.isGalleryEnabled()},{control:f.Jkt.SaveIRToGallery,text:"notification.InstantReplaySaved",state:this.initialState,enable:this.featureSupportService.isGalleryEnabled()},{control:f.Jkt.SaveSSToGallery,text:"notification.ScreenshotSaved",state:this.initialState,enable:this.featureSupportService.isGalleryEnabled()},{header:"settings.RecordAndIR",enable:this.featureSupportService.isGalleryEnabled()},{control:f.Jkt.IROnOff,text:"settings.IRStatus",state:this.initialState,enable:this.featureSupportService.isGalleryEnabled()},{control:f.Jkt.MROn,text:"settings.MRStatus",state:this.initialState,enable:this.featureSupportService.isGalleryEnabled()},{header:"settings.HDR",enable:this.featureSupportService.isGFEMode()&&this.featureSupportService.isShadowPlayEnabled()},{control:f.Jkt.HighlightHDRError,text:"settings.HDRHighlight",state:this.initialState,enable:this.featureSupportService.isGFEMode()&&this.featureSupportService.isShadowPlayEnabled()},{control:f.Jkt.RecordHDRError,text:"settings.HDRRecord",state:this.initialState,enable:this.featureSupportService.isGFEMode()&&this.featureSupportService.isShadowPlayEnabled()},{control:f.Jkt.ScreenshotHDRError,text:"settings.HDRScreenshot",state:this.initialState,enable:this.featureSupportService.isGFEMode()&&this.featureSupportService.isShadowPlayEnabled()}],this.shadowplayEnable=!1,this.tvMode=!1,this.isNvApp=!1,this.enlargeFontMode=!1,super.bar("settings.Notifications"),this.logger=this.loggingService.getLogger("Notifications"),this.shadowplayEnable=this.featureSupportService.isShadowPlayEnabled(),this.init(),this.isNvApp=this.featureSupportService.isNvApp(),this.enlargeFontMode=this.featureSupportService.enlargeIGOTextFont(),this.notifications=this.notifications.filter(Io=>!Io.productFilter||Io.productFilter===Ur.branding)}ngOnDestroy(){this.isNvApp&&this.notificationSettingChanged?this.sendNotificationSettingsChangeTelemetry():this.logger.info("Notification settings telemetry will not be sent")}init(){let Te=[];Te=this.notificationService.getNotificationControls(),this.notifications.forEach(Jt=>{if(Jt.control){const Rt=Te.find(ei=>ei.control===Jt.control);Rt&&(Jt.state=Rt.enable)}}),this.showNotifications=this.notificationService.getGlobalToggle(),this.gfnInfoService.settingsService?.networkWarningsEnabled$.pipe((0,P.Q)(this.destroy$)).subscribe(Jt=>{this.logger.info("Connection Status Indicator is: "+(Jt?"On":"Off"));const Rt=this.notifications.find(ei=>ei.control===f.Jkt.ConnectionStatus);Rt&&(Rt.state=Jt)}),this.tvMode=this.featureSupportService.isTVMode()}onStateChanged(Te){this.notificationSettingChanged=!0;const Jt=this.notifications[Te].state,Rt=this.notifications[Te].control;this.logger.info("Notification Control Changed, Index: "+Te+" State: "+Jt),Rt===f.Jkt.ConnectionStatus&&this.gfnInfoService.settingsService?.setNetworkWarningsEnabled(Jt),this.notificationService.setNotificationControl(Rt,Jt),this.telemetryService.sendNotificationChanged(Rt,Jt)}notificationsToggleEvent(Te){this.notificationSettingChanged=!0,this.notificationService.setGlobalToggle(Te.checked),this.telemetryService.sendNotificationChanged(f.Jkt.Empty,Te.checked)}sendNotificationSettingsChangeTelemetry(){const Te=this.notificationService.getNotificationControls(),Jt={showNotifications:Zi.T8.FALSE,openIGO:Zi.T8.FALSE,savedHL:Zi.T8.FALSE,savedMR:Zi.T8.FALSE,savedIR:Zi.T8.FALSE,savedSS:Zi.T8.FALSE,irOnOff:Zi.T8.FALSE,mrStarted:Zi.T8.FALSE,hdrHighlight:Zi.T8.FALSE,hdrRecord:Zi.T8.FALSE,hdrScreenshot:Zi.T8.FALSE};Te.forEach(Rt=>{switch(Rt?.control){case f.Jkt.IROnOff:Jt.irOnOff=Rt.enable?Zi.T8.TRUE:Zi.T8.FALSE;break;case f.Jkt.MROn:Jt.mrStarted=Rt.enable?Zi.T8.TRUE:Zi.T8.FALSE;break;case f.Jkt.OpenOverlay:Jt.openIGO=Rt.enable?Zi.T8.TRUE:Zi.T8.FALSE;break;case f.Jkt.SaveHLToGallery:Jt.savedHL=Rt.enable?Zi.T8.TRUE:Zi.T8.FALSE;break;case f.Jkt.SaveMRToGallery:Jt.savedMR=Rt.enable?Zi.T8.TRUE:Zi.T8.FALSE;break;case f.Jkt.SaveIRToGallery:Jt.savedIR=Rt.enable?Zi.T8.TRUE:Zi.T8.FALSE;break;case f.Jkt.SaveSSToGallery:Jt.savedSS=Rt.enable?Zi.T8.TRUE:Zi.T8.FALSE;break;case f.Jkt.HighlightHDRError:Jt.hdrHighlight=Rt.enable?Zi.T8.TRUE:Zi.T8.FALSE;break;case f.Jkt.RecordHDRError:Jt.hdrRecord=Rt.enable?Zi.T8.TRUE:Zi.T8.FALSE;break;case f.Jkt.ScreenshotHDRError:Jt.hdrScreenshot=Rt.enable?Zi.T8.TRUE:Zi.T8.FALSE;break;default:this.logger.info("Notification control missing ",Rt?.control)}}),Jt.showNotifications=this.notificationService.getGlobalToggle()?Zi.T8.TRUE:Zi.T8.FALSE,this.telemetryIgoService.sendNotificationSettingsTelemetry(Jt)}static{this.\u0275fac=function(Jt){return new(Jt||rn)(i.rXU(v.J6),i.rXU(f.o_p),i.rXU(l.nX),i.rXU(f.mbZ),i.rXU(f.gZv),i.rXU(f.k$F),i.rXU(f.Rvq),i.rXU(f.xRl),i.rXU(W.S),i.rXU(f.x_y))}}static{this.\u0275cmp=i.VBU({type:rn,selectors:[["igo-notifications"]],features:[i.Vt3],decls:9,vars:13,consts:[["notificationson",""],["fxLayout","column","fxFlex","",1,"nv-hig"],["fxFlex","none","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","grow",1,"font-color-primary",3,"ngClass"],["fxFlex","none",1,"settings-padding",3,"ngModelChange","change","ngModel"],[4,"ngIf","ngIfElse"],["class","nv-gap-8",4,"ngIf"],["class","font-color-secondary notification-label",3,"ngClass",4,"ngIf"],["class","font-color-secondary notification-label font-body2",4,"ngIf"],[1,"nv-gap-8"],[1,"font-color-secondary","notification-label",3,"ngClass"],[1,"font-color-secondary","notification-label","font-body2"],["class","font-color-secondary notification-label",4,"ngIf"],["marginNotReq","true"],["fxFlex","grow"],[4,"ngFor","ngForOf"],[1,"font-color-secondary","notification-label"],[4,"ngIf"],["class","nv-gap-16",4,"ngIf"],["class","notification-label font-color-primary",3,"font-color-tertiary","ngClass",4,"ngIf"],[1,"nv-gap-16"],[1,"notification-label","font-color-primary",3,"ngClass"],[1,"font-color-primary",3,"ngModelChange","change","ngModel"],[1,"font-color-primary",3,"ngClass"]],template:function(Jt,Rt){if(1&Jt){const ei=i.RV6();i.j41(0,"div",1)(1,"div",2)(2,"div",3),i.EFF(3),i.nI1(4,"translate"),i.k0s(),i.j41(5,"mat-slide-toggle",4),i.mxI("ngModelChange",function(Ur){return i.eBV(ei),i.DH7(Rt.showNotifications,Ur)||(Rt.showNotifications=Ur),i.Njj(Ur)}),i.bIt("change",function(Ur){return i.eBV(ei),i.Njj(Rt.notificationsToggleEvent(Ur))}),i.k0s()(),i.DNE(6,Pi,4,3,"ng-container",5)(7,no,4,2,"ng-template",null,0,i.C5r),i.k0s()}if(2&Jt){const ei=i.sdS(8);i.R7$(),i.AVh("toggle-height",!Rt.tvMode),i.R7$(),i.Y8G("ngClass",i.sMw(9,Mr,Rt.tvMode,!Rt.tvMode&&!Rt.enlargeFontMode,!Rt.tvMode&&Rt.enlargeFontMode)),i.R7$(),i.SpI(" ",i.bMT(4,7,"settings.ShowNotifications")," "),i.R7$(2),i.R50("ngModel",Rt.showNotifications),i.R7$(),i.Y8G("ngIf",!Rt.showNotifications)("ngIfElse",ei)}},dependencies:[n.YU,n.Sq,n.bT,a.$,m.DJ,m.sA,m.UI,Qe.PW,se.BC,se.vS,Ve.P2,Z.So,Se.tG,Ce.nM,Be.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.notification-label[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.isLtr[_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%]{padding-right:10px}html[dir=ltr][_ngcontent-%COMP%] .settings-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:10px}.isRtl[_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%]{padding-left:10px}html[dir=rtl][_ngcontent-%COMP%] .settings-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:10px}.toggle-height[_ngcontent-%COMP%]{padding-top:14px}[_nghost-%COMP%]{padding:16px}.tv-view[_nghost-%COMP%], .tv-view [_nghost-%COMP%]{padding:32px}.tv-view[_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 12px;--font-body-line-height: 16px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%]{--font-body-size: 24px;--font-body-line-height: 32px;--font-body-color: rgba(255, 255, 255, .85)}.tv-view[_nghost-%COMP%] .toggle-height[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .toggle-height[_ngcontent-%COMP%]{height:40px}.tv-view[_nghost-%COMP%] .notification-label[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .notification-label[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}"]})}}return rn})();var Zr=s(75707),Yr=s(8619),go=s(91384),zo=s(26875);const si=["shortcutDiv"],to=["shortcutSpan"],ot=rn=>({"shortcut-hover-selected":rn}),Vt=(rn,Di)=>({"shortcut-scroll":rn,"shortcut-noscroll":Di});let Sn=(()=>{class rn{set shortcutString(Te){Te&&(this.scString=Te,setTimeout(()=>{this.enableScrolling=this.shortcutspan.nativeElement.offsetWidth>this.shortcutdiv.nativeElement.offsetWidth}))}set deviceOS(Te){this._deviceOS=Te}constructor(Te,Jt){this.loggingService=Te,this.featureSupportService=Jt,this.dimmed=!1,this.selected=!1,this.id=void 0,this.shortcutData=new i.bkB,this.enableScrolling=!1,this.tvMode=!1,this.logger=this.loggingService.getLogger("NvShortcut"),this.destroy$=new O.B7,this.tvMode=this.featureSupportService.isTVMode()}ngOnInit(){this.comboKeyHelper=new v.Qv(this.loggingService,this._deviceOS,!!v.zk.isBrowserPlatform())}selectShortcut(){this.logger.info("Select shortcut: ",this.scString),this.comboKeyHelper.resetCurrentKeyCombo()}isShortcutSelected(){return this.selected}processKeyUpEvent(Te){this.comboKeyHelper.isMetaKey(Te)||this.comboKeyHelper.isEscapeKey(Te)||this.comboKeyHelper.shouldIgnore(Te)||this.comboKeyHelper.isKeyDownOnly||(this.comboKeyHelper.isDownSet?(this.comboKeyHelper.resetDownStatus(),this.comboKeyHelper.logEvent(Te,!0),this.comboKeyHelper.loadKey(Te),this.logger.info("CurrentKeyCombo: ",this.comboKeyHelper.loadedKeyCombo),this.shortcutData.emit(this.comboKeyHelper.loadedKeyCombo.slice()),this.selectShortcut()):this.comboKeyHelper.isResetKey(Te)&&(this.logger.info("Resetting key"),this.comboKeyHelper.loadKey(Te),this.shortcutData.emit(this.comboKeyHelper.loadedKeyCombo.slice()),this.selectShortcut()))}processKeyDownEvent(Te){this.comboKeyHelper.setDown(),this.comboKeyHelper.processKeyDownEvent(Te),this.comboKeyHelper.isKeyDownOnly&&this.comboKeyHelper.shortcutData.pipe((0,X.s)(1)).subscribe(Jt=>{const Rt=this.getModifierKeys(Jt);Jt.length!==Rt&&this.shortcutData.emit(this.rearrangeShortcutKeys(Jt))})}rearrangeShortcutKeys(Te=[]){let Jt=[];return Jt=Te.sort((Rt,ei)=>Rt-ei),this.cmdKeyIsPresent(Te)&&(Jt=Jt.slice(0,Te.length-1),Jt.unshift(v.SV.Cmd)),Jt}cmdKeyIsPresent(Te){return-1!==Te.indexOf(v.SV.Cmd)}getModifierKeys(Te){let Jt=0;return Te.forEach(Rt=>{this.checkIfModifierKey(Rt)&&Jt++}),Jt}checkIfModifierKey(Te){let Jt=!1;return v.$f.forEach(Rt=>{Rt===Te&&(Jt=!0)}),Jt}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(Jt){return new(Jt||rn)(i.rXU(v.J6),i.rXU(f.Rvq))}}static{this.\u0275cmp=i.VBU({type:rn,selectors:[["nv-shortcut"]],viewQuery:function(Jt,Rt){if(1&Jt&&(i.GBs(si,7),i.GBs(to,7)),2&Jt){let ei;i.mGM(ei=i.lsd())&&(Rt.shortcutdiv=ei.first),i.mGM(ei=i.lsd())&&(Rt.shortcutspan=ei.first)}},inputs:{shortcutName:"shortcutName",shortcutNameParams:"shortcutNameParams",dimmed:"dimmed",shortcutString:"shortcutString",deviceOS:"deviceOS"},outputs:{shortcutData:"shortcutData"},decls:11,vars:17,consts:[["shortcutDiv",""],["shortcutSpan",""],[1,"shortcut-container"],[1,"shortcut-name-container"],[1,"font-body1","font-color-primary"],["tabindex","0",1,"shortcut-box","shortcut-hover",3,"click","keydown","keyup","ngClass"],[1,"shortcut-box-nested",3,"ngClass"],[1,"shortcut-span","font-body2",3,"ngClass"]],template:function(Jt,Rt){if(1&Jt){const ei=i.RV6();i.j41(0,"div",2)(1,"div",3)(2,"span",4),i.EFF(3),i.nI1(4,"translate"),i.k0s()(),i.j41(5,"div",5),i.bIt("click",function(){return i.eBV(ei),i.Njj(Rt.selectShortcut())})("keydown",function(Ur){return i.eBV(ei),i.Njj(Rt.processKeyDownEvent(Ur))})("keyup",function(Ur){return i.eBV(ei),i.Njj(Rt.processKeyUpEvent(Ur))}),i.j41(6,"div",6,0)(8,"span",7,1),i.EFF(10),i.k0s()()()()}2&Jt&&(i.AVh("list-padding",!Rt.tvMode),i.R7$(3),i.JRh(i.i5U(4,9,Rt.shortcutName,Rt.shortcutNameParams)),i.R7$(2),i.Y8G("ngClass",i.eq3(12,ot,Rt.isShortcutSelected())),i.R7$(),i.Y8G("ngClass",i.l_i(14,Vt,Rt.enableScrolling,!Rt.enableScrolling)),i.R7$(2),i.AVh("disabled-opacity",Rt.dimmed),i.Y8G("ngClass",Rt.tvMode?"font-color-secondary":"shortcut-keys-color"),i.R7$(2),i.JRh(Rt.scString))},dependencies:[n.YU,Qe.PW,Be.D9],styles:[".shortcut-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:16px}.shortcut-name-container[_ngcontent-%COMP%]{flex:1 1 auto}.shortcut-span[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center}.shortcut-box[_ngcontent-%COMP%]{width:120px;height:40px;box-sizing:border-box;border-bottom:1px solid var(--nv-shortcut-box-border-bottom-color);padding-bottom:1px;background:var(--nv-shortcut-box-bg-color);flex:0 0 auto}.shortcut-box[_ngcontent-%COMP%]:focus:not([disabled]){border-bottom:2px solid #76b900;padding-bottom:0;cursor:pointer}.shortcut-box[_ngcontent-%COMP%]:hover:not([disabled]){cursor:pointer}.shortcut-box-nested[_ngcontent-%COMP%]{margin-top:10px;display:flex;align-items:center;justify-content:flex-start}.isLtr[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{margin-left:12px}html[dir=ltr][_ngcontent-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{--dummy3: 0;margin-left:12px}.isRtl[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{margin-right:12px}html[dir=rtl][_ngcontent-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{--dummy3: 0;margin-right:12px}.isLtr[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{margin-right:12px}html[dir=ltr][_ngcontent-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{--dummy4: 0;margin-right:12px}.isRtl[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{margin-left:12px}html[dir=rtl][_ngcontent-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{--dummy4: 0;margin-left:12px}.shortcut-noscroll[_ngcontent-%COMP%], .shortcut-scroll[_ngcontent-%COMP%]{position:relative;overflow:hidden;width:96px;height:24px}.shortcut-scroll[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;top:0;left:0;white-space:nowrap;transform:translate(0);transition:1s}.list-padding[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.shortcut-scroll[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%]{transform:translate(calc(96px - 100%))}.shortcut-keys-color[_ngcontent-%COMP%]{color:var(--nv-shortcut-box-keys-text-color)}.tv-view[_nghost-%COMP%] .shortcut-box[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .shortcut-box[_ngcontent-%COMP%]{height:72px;width:140px;display:flex;justify-content:center}.tv-view[_nghost-%COMP%] .shortcut-noscroll[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .shortcut-noscroll[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .shortcut-scroll[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .shortcut-scroll[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}.isLtr.tv-view[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{margin:16px 8px 16px 16px}html[dir=ltr] .tv-view[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{--dummy: 0;margin:16px 8px 16px 16px}.isRtl.tv-view[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{margin:16px 16px 16px 8px}html[dir=rtl] .tv-view[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{--dummy: 0;margin:16px 16px 16px 8px}.nvapp-igo-view[_nghost-%COMP%] .list-padding[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .list-padding[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}"]})}}return rn})();var Bn=re.Or.Share.Shareserver.HotkeyEnum;function Ti(rn,Di){if(1&rn&&(i.j41(0,"div",12),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn){const Te=i.XpG(2).$implicit,Jt=i.XpG(2);i.AVh("font-body3",Jt.tvMode)("font-sub2",!Jt.tvMode),i.R7$(),i.SpI(" ",i.bMT(2,5,Te.header)," ")}}function Li(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"nv-shortcut",13),i.bIt("shortcutData",function(Rt){i.eBV(Te);const ei=i.XpG(2).index,tr=i.XpG(2);return i.Njj(tr.onShortcutChanged(Rt,ei))})("focusin",function(){i.eBV(Te);const Rt=i.XpG(4);return i.Njj(Rt.itemToggled())})("focusout",function(){i.eBV(Te);const Rt=i.XpG(4);return i.Njj(Rt.itemToggled())}),i.k0s()}if(2&rn){const Te=i.XpG(2).$implicit,Jt=i.XpG(2);i.Y8G("shortcutName",Te.description)("shortcutNameParams",Te.descriptionParams)("shortcutString",Te.key)("deviceOS",Jt.deviceOS)("dimmed",Te.disabled)}}function dr(rn,Di){1&rn&&i.nrm(0,"div",14)}function Fr(rn,Di){if(1&rn&&(i.qex(0),i.DNE(1,Ti,3,7,"div",9)(2,Li,1,5,"nv-shortcut",10)(3,dr,1,0,"div",11),i.bVm()),2&rn){const Te=i.XpG().$implicit,Jt=i.XpG(2);i.R7$(),i.Y8G("ngIf",Te.header),i.R7$(),i.Y8G("ngIf",Te.name),i.R7$(),i.Y8G("ngIf",Te.name&&Jt.tvMode)}}function br(rn,Di){if(1&rn&&(i.j41(0,"div"),i.DNE(1,Fr,4,3,"ng-container",8),i.k0s()),2&rn){const Te=Di.$implicit;i.R7$(),i.Y8G("ngIf",!Te.hide)}}function Vn(rn,Di){1&rn&&i.nrm(0,"div",15)}function rr(rn,Di){1&rn&&i.nrm(0,"div",16)}function Ut(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"div",1)(1,"div",2)(2,"div",3),i.DNE(3,br,2,1,"div",4),i.k0s(),i.nrm(4,"nv-divider"),i.j41(5,"nv-item-button",5),i.bIt("clicked",function(){i.eBV(Te);const Rt=i.XpG();return i.Njj(Rt.resetClicked())}),i.k0s(),i.DNE(6,Vn,1,0,"div",6)(7,rr,1,0,"div",7),i.k0s()()}if(2&rn){const Te=i.XpG();i.R7$(3),i.Y8G("ngForOf",Te.hotkeys),i.R7$(3),i.Y8G("ngIf",Te.tvMode),i.R7$(),i.Y8G("ngIf",!Te.tvMode)}}let qn=(()=>{class rn extends r{constructor(Te,Jt,Rt,ei,tr,Ur,lo,wo,Lr,ns,Io,da,_a,Mt,Dn,qt,Pn){super(Jt,Rt,Io),this.loggingService=Te,this.bridgeService=ei,this.hotkeyService=tr,this.shadowplayService=Ur,this.translate=lo,this.dialogHelperService=wo,this.igoConfig=Lr,this.osService=ns,this.dialogHelper=da,this.featureSupportService=_a,this.hotKeyHelper=Mt,this.hotkeyShareService=Dn,this.systemInfoService=qt,this.clientInputService=Pn,this.blocking=!1,this.snackBarRef=void 0,this.renderTemplate=!1,this.tvMode=!1,this.isNvApp=!1,this.hotkeys=[{header:"settings.General"},{name:Bn.OpenIGO,description:this.featureSupportService.isGuestAppFlowWrapper()?"settings.guestApp.IngameOverlay":"settings.IngameOverlay",key:"",protect:!0},{name:Bn.MicToggle,description:"settings.ToggleMic",key:""},{name:Bn.PTT,description:"settings.ActivatePushToTalkNoArg",key:"",hide:!this.featureSupportService.isGFEMode()||!this.featureSupportService.isIgoWithoutBrowserPlatform()},{name:Bn.NativeKeyboardInputDialog,description:"settings.NativeKeyboardInputDialog",key:"",hide:this.featureSupportService.isGFEMode()},{name:Bn.QuitGame,description:this.featureSupportService.isGuestAppFlowWrapper()?"settings.guestApp.QuitGameHotKey":"settings.QuitGameHotKey",key:"",hide:this.featureSupportService.isGFEMode()},{header:"gAssist.gAssist",hide:!this.isGAssistInstalled()},{name:Bn.ChatUIToggle,description:"gAssist.toggleAndSwitchModes",key:"",hide:!this.isGAssistInstalled()},{name:Bn.ChatPTT,description:"gAssist.toStartStopSpeaking",key:"",hide:!this.isGAssistInstalled()},{header:"settings.Statistics",hide:!this.featureSupportService.isStatisticsEnabled()},{name:Bn.StatisticsToggle,description:"settings.StatisticsChangeFormat",key:"",hide:!this.featureSupportService.isStatisticsEnabled()},{header:"perfmon.performanceMonitor",hide:!this.featureSupportService.isPerfOverlayEnabled()},{name:Bn.PMOCOverlay,description:"perfmon.performanceMonitorDescription",key:"",hide:!this.featureSupportService.isPerfOverlayEnabled()},{name:Bn.PMOCOverlayCycle,description:"perfmon.cycleMetricsDescription",key:"",hide:!this.featureSupportService.isPerfOverlayEnabled()},{name:Bn.PMOCOverlayVisibility,description:"perfmon.toggleVisibilityDescription",key:"",hide:!this.featureSupportService.isPerfOverlayEnabled()},{name:Bn.PMOCLoggingToggle,description:"perfmon.startStopLogging",key:"",hide:!this.featureSupportService.isPerfOverlayEnabled()},{name:Bn.PMOCResetAverageMetrics,description:"reflexAnalyzer.resetAverage",key:"",hide:!this.featureSupportService.isPerfOverlayEnabled()},{header:"settings.Record",hide:!this.featureSupportService.isShadowPlayEnabled()},{name:Bn.RecordToggle,description:"settings.ToggleManualRecord",key:"",hide:!this.featureSupportService.isShadowPlayEnabled()},{name:Bn.DVRToggle,description:"settings.ToggleIROnOff",key:"",hide:!this.featureSupportService.isShadowPlayEnabled()},{name:Bn.DVRSave,description:"settings.SaveLastNMins",key:"",hide:!this.featureSupportService.isShadowPlayEnabled()},{header:"settings.Capture",hide:!this.featureSupportService.isGalleryEnabled()},{name:Bn.Screenshot,description:"settings.SaveAScreenshot",key:"",hide:!this.featureSupportService.isGalleryEnabled()},{header:"nvcamera.GameFilters",hide:!this.featureSupportService.isNvcameraEnabled()},{name:Bn.OpenFreestyle,description:"settings.EditFilters",key:"",hide:!this.featureSupportService.isNvcameraEnabled()||!this.featureSupportService.isGFEMode()},{name:Bn.FreeStyleToggleStyle1,description:this.featureSupportService.isPpeEnabled()?"settings.ToggleProfileInGF":"settings.ToggleStyleInGF",descriptionParams:{styleNo:1},key:"",hide:!this.featureSupportService.isNvcameraEnabled()},{name:Bn.FreeStyleToggleStyle2,description:this.featureSupportService.isPpeEnabled()?"settings.ToggleProfileInGF":"settings.ToggleStyleInGF",descriptionParams:{styleNo:2},key:"",hide:!this.featureSupportService.isNvcameraEnabled()},{name:Bn.FreeStyleToggleStyle3,description:this.featureSupportService.isPpeEnabled()?"settings.ToggleProfileInGF":"settings.ToggleStyleInGF",descriptionParams:{styleNo:3},key:"",hide:!this.featureSupportService.isNvcameraEnabled()},{header:"nvcamera.PhotoMode",hide:!this.featureSupportService.isNvcameraEnabled()},{name:Bn.OpenAnsel,description:"settings.PhotographTheScene",key:"",hide:!this.featureSupportService.isNvcameraEnabled()}],super.bar("settings.KeyboardShortcuts"),this.logger=this.loggingService.getLogger("Shortcuts"),this.logger.info("Constructor to be deleted"),this.tvMode=this.featureSupportService.isTVMode(),this.isNvApp=this.featureSupportService.isNvApp()}ngOnInit(){this.hotkeyService.blockAllHotkeys(!0).subscribe(()=>{super.ngOnInit(),this.init()})}init(){if(this.systemInfoService.getDeviceOSType().pipe((0,P.Q)(this.destroy$),(0,X.s)(1)).subscribe(Jt=>{this.deviceOS=Jt,this.renderTemplate=!0}),"GFN"===this.igoConfig.branding&&this.featureSupportService.isGfnMicrophoneEnabled().pipe((0,P.Q)(this.destroy$),(0,X.s)(1)).subscribe(Jt=>{this.hotkeys.find(ei=>ei.name===Bn.MicToggle).hide=!Jt&&!this.featureSupportService.isShadowPlayEnabled()}),this.igoConfig.GFNCefClient){const Jt=this.hotkeys.find(Rt=>Rt.name===Bn.NativeKeyboardInputDialog);this.clientInputService.isImeEnabled$.pipe((0,P.Q)(this.destroy$)).subscribe(Rt=>{this.logger.info("Checking ClientIME enablement value ",Rt),Jt.hide=v.zk.isBrowserPlatform()&&!Rt,Rt?(this.hotkeyShareService.removeFromIgnoredHotkeysSet(Bn.NativeKeyboardInputDialog),this.hotkeyService.startListeningToHotkey(Bn.NativeKeyboardInputDialog).pipe((0,P.Q)(this.destroy$)).subscribe(ei=>{ei&&this.getAllHotkeys()}),""===Jt.key&&this.hotkeyService.getHotkeyString(Jt.name).subscribe(ei=>{Jt.key=ei})):(this.hotkeyService.stopListeningToHotkey(Bn.NativeKeyboardInputDialog),this.getAllHotkeys())},Rt=>{this.logger.info("Error getting ClientIME enablement value, hiding the setting",Rt),this.hotkeyService.stopListeningToHotkey(Bn.NativeKeyboardInputDialog)})}else this.hotkeyService.stopListeningToHotkey(Bn.NativeKeyboardInputDialog),this.getAllHotkeys();const Te=this.hotkeys.find(Jt=>Jt.name===Bn.DVRSave);if(Te&&!Te.hide)if("en_US"===this.translate.currentLang){const Jt=this.shadowplayService.maxIRTime;if(Jt<60){const Rt=Jt.toString();Te.description="settings.SaveLastXSecs",Te.descriptionParams={arg1:Rt}}else{const Rt=Math.floor(Jt/60).toString(),ei=(Jt%60).toString();Te.description="settings.SaveLastXMins",Te.descriptionParams={arg1:Rt,arg2:ei}}}else{const Jt=(this.shadowplayService.maxIRTime/60).toFixed(2).replace(".00","");Te.description="settings.SaveLastNMins",Te.descriptionParams={args:Jt}}}getAllHotkeys(){this.hotkeys.forEach(Te=>{Te.name&&!Te.hide&&this.hotkeyService.getHotkeyString(Te.name).pipe((0,P.Q)(this.destroy$)).subscribe(Jt=>{Jt&&Jt.length&&(this.logger.info("Hotkey: ",Jt),"None"===Jt?this.translate.get("settings.None").subscribe(Rt=>{Te.key=Rt,Te.disabled=!0}):(Te.key=Jt,Te.disabled=!1))})})}isGAssistInstalled(){return this.shadowplayService.isGAssistInstalled()}ngOnDestroy(){this.hotkeyService.blockAllHotkeys(!1).subscribe(()=>{super.ngOnDestroy()})}isResetKey(Te){return 1===Te.length&&(Te[0]===v.SV.Space||Te[0]===v.SV.Backspace||Te[0]===v.SV.Delete)}itemToggled(){this.blocking=!this.blocking,this.logger.info(this.blocking?"Item Clicked - Block":"Item Unclicked - Unblock"),this.hotkeyService.blockAllHotkeys(this.blocking).pipe((0,P.Q)(this.destroy$)).subscribe()}onShortcutChanged(Te,Jt){if(!Te.length||this.hotkeyService.checkIdenticalEntry(Te,this.hotkeys[Jt].name))return;if(this.isResetKey(Te)){if(this.hotkeys[Jt].protect)return;Te.length=0,Te[0]=0;const lo=(0,zo.cloneDeep)(this.hotkeys[Jt]);return lo.disabled=!0,this.translate.get("settings.None").subscribe(wo=>{lo.key=wo}),void this.setHotkeyString(Te,Jt,lo)}let Rt=0;Te.forEach(lo=>{this.hotkeyService.checkIfModifierKey(lo)&&Rt++});let ei=!1;if(this.osService.getOSType()===v.aI.Windows&&Te.forEach(lo=>{this.hotkeyService.checkIfWinKey(lo)&&(ei=!0)}),ei||Te.length-Rt>1)return void this.translate.get("snacks.HotkeyInvalid").subscribe(lo=>{this.snackBarRef=this.dialogHelperService.openSnackBar(lo)});const tr=[];if(this.hotkeys.forEach(lo=>{lo.name&&!lo.hide&&tr.push(lo.name)}),this.hotkeyService.checkForDup(Te,tr))return void this.translate.get("snacks.HotkeyInUseInternal").subscribe(lo=>{this.snackBarRef=this.dialogHelperService.openSnackBar(lo)});this.snackBarRef&&(this.snackBarRef.dismiss(),this.snackBarRef=void 0);const Ur=(0,zo.cloneDeep)(this.hotkeys[Jt]);Ur.key=this.hotKeyHelper.shortcutToString(Te),Ur.disabled=!1,this.setHotkeyString(Te,Jt,Ur)}setHotkeyString(Te,Jt,Rt){this.hotkeyService.setHotkeyString(Rt.name,Te).pipe((0,P.Q)(this.destroy$)).subscribe(ei=>{ei!==f.DXY.Valid?ei===f.DXY.Invalid?this.translate.get("snacks.HotkeyInvalid").subscribe(tr=>{this.snackBarRef=this.dialogHelperService.openSnackBar(tr)}):ei===f.DXY.InUse?this.translate.get("snacks.HotkeyInUseInternal").subscribe(tr=>{this.snackBarRef=this.dialogHelperService.openSnackBar(tr)}):ei===f.DXY.Error&&this.logger.error("setHotkeyString failed, should not get here"):setTimeout(()=>{this.hotkeys[Jt]=Rt,this.itemToggled()})})}resetClicked(){this.dialogHelper.openAlertDialog({title:"confirmation.resetToDefaultsTitle",query:"confirmation.resetToDefaultsDescription",queryParam:"",action1:"confirmation.NotRightNow",action2:"confirmation.yes"}).pipe((0,P.Q)(this.destroy$),(0,Zr.ZZ)(Jt=>Jt.afterClosed()),(0,Yr.p)(Jt=>Jt===f.SFy.Action2),(0,Zr.ZZ)(()=>this.hotkeyService.resetToDefaults()),(0,go.M)(()=>this.init())).subscribe()}static{this.\u0275fac=function(Jt){return new(Jt||rn)(i.rXU(v.J6),i.rXU(f.o_p),i.rXU(l.nX),i.rXU(v.NZ),i.rXU(f.QSC),i.rXU(f.W1J),i.rXU(Be.c$),i.rXU(f.eo6),i.rXU(f.k$F),i.rXU(f.aTF),i.rXU(f.gZv),i.rXU(f.eo6),i.rXU(f.Rvq),i.rXU(v.Ho),i.rXU(f.fvX),i.rXU(v.zW),i.rXU(f.$jZ))}}static{this.\u0275cmp=i.VBU({type:rn,selectors:[["igo-shortcuts"]],features:[i.Vt3],decls:1,vars:1,consts:[["fxFlex","grow",4,"ngIf"],["fxFlex","grow"],["fxLayout","column","fxFlex",""],["fxFlex","grow",1,"shortcut-list"],[4,"ngFor","ngForOf"],["svgIcon","reset","titleString","settings.ResetToDefaults",3,"clicked"],["fxFlex","none","class","nv-gap-24",4,"ngIf"],["fxFlex","none","class","nv-gap-16",4,"ngIf"],[4,"ngIf"],["class","font-color-tertiary header-padding",3,"font-body3","font-sub2",4,"ngIf"],[3,"shortcutName","shortcutNameParams","shortcutString","deviceOS","dimmed","shortcutData","focusin","focusout",4,"ngIf"],["class","nv-gap-8",4,"ngIf"],[1,"font-color-tertiary","header-padding"],[3,"shortcutData","focusin","focusout","shortcutName","shortcutNameParams","shortcutString","deviceOS","dimmed"],[1,"nv-gap-8"],["fxFlex","none",1,"nv-gap-24"],["fxFlex","none",1,"nv-gap-16"]],template:function(Jt,Rt){1&Jt&&i.DNE(0,Ut,8,3,"div",0),2&Jt&&i.Y8G("ngIf",Rt.renderTemplate)},dependencies:[n.Sq,n.bT,a.$,c.j,Sn,m.DJ,m.UI,Be.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.header-padding[_ngcontent-%COMP%]{padding:8px 0}[_nghost-%COMP%]{overflow-y:auto;box-sizing:border-box}.isLtr [_nghost-%COMP%]{margin-right:-24px}html[dir=ltr] [_nghost-%COMP%]{--dummy4: 0;margin-right:-24px}.isRtl [_nghost-%COMP%]{margin-left:-24px}html[dir=rtl] [_nghost-%COMP%]{--dummy4: 0;margin-left:-24px}.shortcut-list[_ngcontent-%COMP%]{padding:8px 16px;overflow-y:overlay}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.nvapp-igo-view[_nghost-%COMP%], .nvapp-igo-view [_nghost-%COMP%]{padding:0}.nvapp-igo-view[_nghost-%COMP%] .header-padding[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .header-padding[_ngcontent-%COMP%]{padding-top:8px}.nvapp-igo-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{padding:16px 0 0;overflow-y:overlay}.isLtr.nvapp-igo-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isLtr.nvapp-igo-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isLtr .nvapp-igo-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isLtr .nvapp-igo-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .nvapp-igo-view .isLtr[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .nvapp-igo-view .isLtr [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr] .nvapp-igo-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl.nvapp-igo-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isRtl.nvapp-igo-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isRtl .nvapp-igo-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isRtl .nvapp-igo-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .nvapp-igo-view .isRtl[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .nvapp-igo-view .isRtl [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl] .nvapp-igo-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.tv-view[_nghost-%COMP%], .tv-view [_nghost-%COMP%]{padding:0 24px}.tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{padding-top:24px;overflow-y:overlay}.isLtr.tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr] .tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl.tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl] .tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.isLtr.tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{margin-right:-24px}html[dir=ltr] .tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{--dummy4: 0;margin-right:-24px}.isRtl.tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{margin-left:-24px}html[dir=rtl] .tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{--dummy4: 0;margin-left:-24px}"]})}}return rn})();var Wn=s(93181),ci=s(55962);function Tr(rn,Di){1&rn&&(i.j41(0,"div",12)(1,"div",13),i.EFF(2),i.nI1(3,"translate"),i.k0s()()),2&rn&&(i.R7$(2),i.JRh(i.bMT(3,1,"settings.DiskSpaceHelper")))}function Jr(rn,Di){1&rn&&(i.j41(0,"div",12)(1,"div",14),i.EFF(2),i.nI1(3,"translate"),i.k0s()()),2&rn&&(i.R7$(2),i.SpI(" ",i.bMT(3,1,"settings.DiskSpaceLimitGeneric")," "))}function oo(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"div",15)(1,"nv-hig-slider",16),i.mxI("valueChange",function(Rt){i.eBV(Te);const ei=i.XpG();return i.DH7(ei.diskSpaceSliderValue,Rt)||(ei.diskSpaceSliderValue=Rt),i.Njj(Rt)}),i.bIt("valueChange",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.onDiskSpaceSliderChanged(Rt))}),i.k0s(),i.j41(2,"span",17),i.EFF(3),i.nI1(4,"translate"),i.k0s()()}if(2&rn){const Te=i.XpG();i.R7$(),i.Y8G("min",Te.diskSpaceSliderStep)("max",Te.diskSpaceSliderMax),i.R50("value",Te.diskSpaceSliderValue),i.Y8G("step",Te.diskSpaceSliderStep),i.R7$(2),i.JRh(i.i5U(4,5,Te.diskSpaceString,Te.diskSpaceParams))}}function Qo(rn,Di){1&rn&&(i.j41(0,"div",18),i.nrm(1,"mat-icon",19),i.j41(2,"div",20),i.EFF(3),i.nI1(4,"translate"),i.k0s()()),2&rn&&(i.R7$(3),i.SpI(" ",i.bMT(4,1,"settings.IncreaseDiskSpaceLimit")," "))}let fo=(()=>{class rn extends r{constructor(Te,Jt,Rt,ei,tr,Ur,lo,wo,Lr,ns,Io,da){super(lo,wo,ns,Lr),this.loggingService=Te,this.bridgeService=Jt,this.osService=Rt,this.galleryService=ei,this.sdkHighlightsService=tr,this.shadowPlayService=Ur,this.translate=Io,this.igoConfig=da,this.initializing=!0,this.highlightsActive=!1,this.disableFolders=!1,this.irInProgress=!1,this.mrInProgress=!1,this.availDiskSpaceSwitchModel=!1,this.diskSpaceSliderValue=100,this.prevDiskSpaceSliderValue=this.diskSpaceSliderValue,this.diskSpaceSliderMax=100,this.diskSpaceSliderStep=10,this.diskSpaceSliderValueDefault=100,this.totalMB=10,this.diskSpaceWarning=!1,this.tickValues=[10,20,30,40,50,60,70,80,90,100],this.sliderInitComplete=!1,this.diskSpaceParams={},this.currentStorageLocation=void 0,this.tempStorageLocation=void 0,this.originalStorageLocation=void 0,this.externalDrivesValid=!1,this.cancelDisabled=!1,this.dialogRef=void 0,this.isGfn=!0,super.bar("settings.FilesAndDiskSpace"),this.logger=this.loggingService.getLogger("Storage"),this.logger.info("Constructor"),this.myRoute=wo,this.isGfn="GFE"!==this.igoConfig.branding}ngOnInit(){super.ngOnInit(),this.sdkHighlightsService.isHighlightsActive().pipe((0,P.Q)(this.destroy$)).subscribe(Te=>{this.highlightsActive=Te,this.checkFolderState()}),this.shadowPlayService.getMRState().pipe((0,P.Q)(this.destroy$)).subscribe(Te=>{this.mrInProgress=Te,this.checkFolderState()}),this.shadowPlayService.getIRState().pipe((0,P.Q)(this.destroy$)).subscribe(Te=>{this.irInProgress=Te===f.xT8.recording,this.checkFolderState()}),this.startupInit()}startupInit(){const Te=this.myRoute.snapshot.paramMap.get("folder"),Jt=this.myRoute.snapshot.paramMap.get("source");if(this.dirSeparator=this.osService.getDirSeparator(),this.fileBaseSize=this.osService.getFileBaseSize(),"GFE"===this.igoConfig.branding&&(this.externalDrivesValid=!0),this.galleryService.listenForTrackerEvents().pipe((0,P.Q)(this.destroy$)).subscribe(Rt=>{this.trackEventProgress(Rt)}),this.galleryService.updatingTracker)this.originalStorageLocation=this.galleryService.getVideoFolder(),this.currentStorageLocation=this.galleryService.getCurrentLocation(),this.dialog.openAlertDialog({title:"confirmation.confirmFileLocationTitle",query:"confirmation.changingLocation",queryParam:{arg:this.currentStorageLocation},action1:"confirmation.cancel",spinner:!0}).pipe((0,P.Q)(this.destroy$),(0,go.M)(ei=>this.dialogRef=ei),(0,Zr.ZZ)(ei=>ei.afterClosed())).subscribe(ei=>{ei===f.SFy.Action1&&this.onCancelClicked()});else if(Te&&Jt){let Rt="";Jt===f.QAj.Highlights?(this.originalStorageLocation=this.galleryService.getVideoFolder(),this.currentStorageLocation=Te,this.galleryService.saveCurrentLocation(Te),Rt=this.currentStorageLocation):Jt===f.QAj.Temporary&&(this.originalStorageLocation=void 0,this.tempStorageLocation=Te,Rt=Te),this.dialog.openAlertDialog({title:"confirmation.confirmFileLocationTitle",query:"confirmation.changingLocation",queryParam:{arg:Rt},action1:"confirmation.cancel",spinner:!0}).pipe((0,P.Q)(this.destroy$),(0,go.M)(tr=>this.dialogRef=tr),(0,Zr.ZZ)(tr=>tr.afterClosed())).subscribe(tr=>{tr===f.SFy.Action1&&this.onCancelClicked()}),this.galleryService.updateFolderSync(Rt,Jt).pipe((0,P.Q)(this.destroy$)).subscribe(()=>{Jt===f.QAj.Temporary&&(this.dialogRef&&this.dialogRef.close(),this.init(),this.initializing=!1)})}else this.initializing=!1,this.init()}init(){(0,Wn.p)([this.bridgeService.executeCommand(re.Ts.Common.Gallery.GetSettings),this.shadowPlayService.getIRState().pipe((0,X.s)(1)),this.shadowPlayService.getMRState().pipe((0,X.s)(1))]).pipe((0,P.Q)(this.destroy$)).subscribe(([Te,Jt,Rt])=>{this.settingsParams=Te,this.availDiskSpaceSwitchModel=Te.settings.capacity.enabled,this.totalMB=Te.settings.capacity.totalDiskSpaceMB,this.diskSpaceSliderValue=Te.settings.capacity.capacityPercent,this.diskSpaceUsage=Math.floor(Te.settings.capacity.usageMB),this.prevDiskSpaceSliderValue=this.diskSpaceSliderValue,this.setSliderValue(),void 0===this.currentStorageLocation&&(this.currentStorageLocation=Te.settings.path),void 0===this.tempStorageLocation&&(this.tempStorageLocation=Te.settings.tempFolderPath),this.sliderInitComplete=!0,this.mrInProgress=Rt,this.irInProgress=Jt===f.xT8.recording,this.checkFolderState()})}checkFolderState(){this.disableFolders=this.highlightsActive||this.mrInProgress||this.irInProgress,this.disableFolders&&this.translate.get("snacks.StopRecording").subscribe(Te=>{this.dialog.openSnackBar(Te)})}availDiskSpaceSwitchChange(Te){this.logger.info("availDiskSpace switch changed: ",this.availDiskSpaceSwitchModel),this.setSliderValue(),this.settingsParams.settings.capacity.enabled=this.availDiskSpaceSwitchModel,this.bridgeService.executeCommand(re.Ts.Common.Gallery.SetSettings,this.settingsParams).pipe((0,P.Q)(this.destroy$)).subscribe(()=>{this.prevDiskSpaceSliderValue=this.diskSpaceSliderValue}),this.galleryService.sendDiskSpaceChangedTelemetry(this.availDiskSpaceSwitchModel)}formatDiskSpaceString(Te){const Jt=this.fileBaseSize*this.fileBaseSize;return Te<this.fileBaseSize?`\u2066${Te.toFixed(1)} MB\u2069`:Te<Jt?`\u2066${(Te/this.fileBaseSize).toFixed(1)} GB\u2069`:`\u2066${(Te/Jt).toFixed(1)} TB\u2069`}setSliderValue(){if(this.availDiskSpaceSwitchModel){const Te=this.diskSpaceSliderValue/100*this.totalMB;this.diskSpaceString="settings.DiskSpaceUsage",this.diskSpaceParams={arg1:this.formatDiskSpaceString(this.diskSpaceUsage),arg2:this.formatDiskSpaceString(Te)},this.diskSpaceWarning=!(this.diskSpaceUsage<Te)}else this.diskSpaceString="settings.NoMax",this.diskSpaceWarning=!1}onDiskSpaceSliderChanged(Te){if(this.sliderInitComplete&&(this.logger.info("Disk Space slider changed to: ",this.diskSpaceSliderValue),this.setSliderValue(),this.prevDiskSpaceSliderValue!==this.diskSpaceSliderValue)){this.settingsParams.settings.capacity.capacityPercent=this.diskSpaceSliderValue;const Jt=this.settingsParams;this.logger.info("New disk space settings: ",this.settingsParams),this.bridgeService.executeCommand(re.Ts.Common.Gallery.SetSettings,Jt).pipe((0,P.Q)(this.destroy$)).subscribe(()=>{this.prevDiskSpaceSliderValue=this.diskSpaceSliderValue}),this.galleryService.sendDiskSpaceSliderChangedTelemetry(this.diskSpaceSliderValue)}}terminateLocationChange(Te){this.logger.info("Terminating location change"),Te&&(this.logger.info("Undoing location change"),this.currentStorageLocation=this.originalStorageLocation),this.dialogRef&&(this.dialogRef.close(),this.dialogRef=void 0);const Jt=this.galleryService.galleryTrackerChangePath().subscribe(()=>{this.init(),this.initializing=!1,this.cancelDisabled=!1,Jt.unsubscribe()})}onCancelClicked(){this.cancelDisabled=!0,void 0!==this.originalStorageLocation&&this.bridgeService.executeCommand(re.Ts.Common.Gallery.CancelPathUpdate).pipe((0,P.Q)(this.destroy$)).subscribe(()=>{this.logger.info("Cancel command complete")})}trackEventProgress(Te){switch(Te.trackerEvent){case re.Or.Common.Gallery.GalleryPathUpdateStatus.TrackerUpdateComplete:this.cancelDisabled=!0,this.terminateLocationChange(!1);break;case re.Or.Common.Gallery.GalleryPathUpdateStatus.CancelUpdateComplete:this.terminateLocationChange(!0)}}keyUpEvent(Te){"Control"===Te.key&&"GFN"===this.igoConfig.branding&&(this.externalDrivesValid=!1)}keyDownEvent(Te){"Control"===Te.key&&"GFN"===this.igoConfig.branding&&(this.externalDrivesValid=!0)}static{this.\u0275fac=function(Jt){return new(Jt||rn)(i.rXU(v.J6),i.rXU(v.NZ),i.rXU(f.aTF),i.rXU(f.AFS),i.rXU(f.P15),i.rXU(f.W1J),i.rXU(f.o_p),i.rXU(l.nX),i.rXU(f.eo6),i.rXU(f.gZv),i.rXU(Be.c$),i.rXU(f.k$F))}}static{this.\u0275cmp=i.VBU({type:rn,selectors:[["igo-storage"]],features:[i.Vt3],decls:15,vars:16,consts:[["fxLayout","column","fxFlex",""],["fxFlex","grow"],[1,"limit-padding"],["fxLayout","row","fxLayoutAlign","start center"],["fxFlex","grow",1,"font-body1","font-color-primary"],["fxFlex","none",3,"ngModelChange","change","ngModel"],["fxLayout","column","fxLayoutAlign","start start",4,"ngIf"],[1,"slider-area"],["fxLayout","column","fxLayoutAlign","start center",4,"ngIf"],["class","max-warning-area","fxLayout","row","fxLayoutGap","8px","fxLayoutAlign","center center",4,"ngIf"],["title","settings.TemporaryFilesLocation","showTitle","true","source","temporary","caller","storage",3,"keydown","keyup","pathLocation","disabled","external"],["title","settings.FilesLocation","showTitle","true","source","highlights","caller","storage",3,"keydown","keyup","pathLocation","disabled","external"],["fxLayout","column","fxLayoutAlign","start start"],[1,"font-sub2","font-color-tertiary"],[1,"font-sub2","font-color-tertiary","limit-subtext-padding"],["fxLayout","column","fxLayoutAlign","start center"],["fxFlexFill","",1,"nvapp-slider-padding",3,"valueChange","min","max","value","step"],[1,"font-body2","font-color-primary","slider-subtext-padding"],["fxLayout","row","fxLayoutGap","8px","fxLayoutAlign","center center",1,"max-warning-area"],["svgIcon","warning",1,"mat-icon","icon-warning","max-warning-icon"],[1,"font-body2","font-color-primary","limit-padding"]],template:function(Jt,Rt){1&Jt&&(i.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),i.EFF(5),i.nI1(6,"translate"),i.k0s(),i.j41(7,"mat-slide-toggle",5),i.mxI("ngModelChange",function(tr){return i.DH7(Rt.availDiskSpaceSwitchModel,tr)||(Rt.availDiskSpaceSwitchModel=tr),tr}),i.bIt("change",function(tr){return Rt.availDiskSpaceSwitchChange(tr)}),i.k0s()(),i.DNE(8,Tr,4,3,"div",6)(9,Jr,4,3,"div",6),i.j41(10,"div",7),i.DNE(11,oo,5,8,"div",8),i.k0s(),i.DNE(12,Qo,5,3,"div",9),i.k0s(),i.j41(13,"nv-folder-browser",10),i.bIt("keydown",function(tr){return Rt.keyDownEvent(tr)})("keyup",function(tr){return Rt.keyUpEvent(tr)}),i.k0s(),i.j41(14,"nv-folder-browser",11),i.bIt("keydown",function(tr){return Rt.keyDownEvent(tr)})("keyup",function(tr){return Rt.keyUpEvent(tr)}),i.k0s()()()),2&Jt&&(i.R7$(4),i.AVh("nvapp-title-bottom-padding",Rt.availDiskSpaceSwitchModel&&Rt.isGfn),i.R7$(),i.SpI(" ",i.bMT(6,14,"settings.SetDiskSpaceLimit")," "),i.R7$(2),i.R50("ngModel",Rt.availDiskSpaceSwitchModel),i.R7$(),i.Y8G("ngIf",!Rt.availDiskSpaceSwitchModel&&Rt.isGfn),i.R7$(),i.Y8G("ngIf",!Rt.isGfn),i.R7$(2),i.Y8G("ngIf",Rt.availDiskSpaceSwitchModel),i.R7$(),i.Y8G("ngIf",Rt.availDiskSpaceSwitchModel&&Rt.diskSpaceWarning),i.R7$(),i.Y8G("pathLocation",Rt.tempStorageLocation)("disabled",Rt.disableFolders)("external",Rt.externalDrivesValid),i.R7$(),i.Y8G("pathLocation",Rt.currentStorageLocation)("disabled",Rt.disableFolders)("external",Rt.externalDrivesValid))},dependencies:[n.bT,Pe.I,ci.e,m.DJ,m.BO,m.sA,m.G2,m.UI,se.BC,se.vS,ie.An,Ve.P2,St.t,Se.tG,Be.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.limit-padding[_ngcontent-%COMP%]{padding:14px 16px}.max-warning-area[_ngcontent-%COMP%]{margin:16px 0 0}.slider-subtext-padding[_ngcontent-%COMP%]{padding-bottom:8px}.max-warning-icon[_ngcontent-%COMP%]{width:24px;height:24px;font-size:24px}[_nghost-%COMP%]{padding:16px 0}.isLtr[_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.isLtr[_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{padding-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:8px}.isRtl[_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{padding-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:8px}.nvapp-igo-view[_nghost-%COMP%] .limit-padding[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .limit-padding[_ngcontent-%COMP%]{padding:14px 16px 0}.limit-subtext-padding[_ngcontent-%COMP%], .nvapp-title-bottom-padding[_ngcontent-%COMP%]{padding-bottom:14px}"]})}}return rn})();var Xr=s(43848),Go=s(14714);const Ss=rn=>({"disabled-opacity":rn});function kr(rn,Di){1&rn&&(i.j41(0,"div",15),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn&&(i.R7$(),i.SpI(" ",i.bMT(2,1,"capture.DesktopHelp1")," "))}function pa(rn,Di){1&rn&&(i.j41(0,"div",15),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn&&(i.R7$(),i.SpI(" ",i.bMT(2,1,"capture.DesktopHelp2")," "))}function ka(rn,Di){1&rn&&(i.j41(0,"div",16)(1,"div",17)(2,"div",18)(3,"mat-icon",19),i.EFF(4,"info"),i.k0s()(),i.j41(5,"div",20),i.EFF(6),i.nI1(7,"translate"),i.k0s()()()),2&rn&&(i.R7$(6),i.SpI(" ",i.bMT(7,1,"audio.StopToChange")," "))}function Xs(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"div",7)(1,"div",8)(2,"div",9),i.EFF(3),i.nI1(4,"translate"),i.k0s(),i.j41(5,"mat-slide-toggle",10),i.mxI("ngModelChange",function(Rt){i.eBV(Te);const ei=i.XpG();return i.DH7(ei.dtCaptureState,Rt)||(ei.dtCaptureState=Rt),i.Njj(Rt)}),i.bIt("change",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.dtCaptureChanged(Rt))}),i.k0s(),i.nrm(6,"div",11),i.k0s(),i.DNE(7,kr,3,3,"div",12)(8,pa,3,3,"div",12)(9,ka,8,3,"div",13),i.nrm(10,"nv-divider",14),i.k0s()}if(2&rn){const Te=i.XpG();i.R7$(2),i.AVh("disabled-opacity",!Te.enableDTCapture),i.R7$(),i.SpI(" ",i.bMT(4,8,"settings.DesktopCapture")," "),i.R7$(2),i.Y8G("disabled",!Te.enableDTCapture),i.R50("ngModel",Te.dtCaptureState),i.R7$(2),i.Y8G("ngIf",!Te.dtCaptureState),i.R7$(),i.Y8G("ngIf",Te.dtCaptureState),i.R7$(),i.Y8G("ngIf",!Te.enableDTCapture)}}function ys(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"div",21)(1,"div",22),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.j41(4,"mat-slide-toggle",23),i.mxI("ngModelChange",function(Rt){i.eBV(Te);const ei=i.XpG();return i.DH7(ei.irEnabled,Rt)||(ei.irEnabled=Rt),i.Njj(Rt)}),i.bIt("change",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.irToggleEvent(Rt))}),i.k0s()()}if(2&rn){const Te=i.XpG();i.R7$(2),i.SpI(" ",i.bMT(3,3,"mainMenu.InstantReplay")," "),i.R7$(2),i.R50("ngModel",Te.irEnabled),i.Y8G("disabled",Te.recordSpecialCase.RECORD_SPECIAL_CASE_NONE!==Te.disableRecordSpecialCase)}}function ma(rn,Di){1&rn&&(i.j41(0,"span",24),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn&&(i.R7$(),i.JRh(i.bMT(2,1,"mainMenu.DisableRecord")))}function fs(rn,Di){1&rn&&(i.j41(0,"span",24),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn&&(i.R7$(),i.JRh(i.bMT(2,1,"mainMenu.DisabledForPlaytest")))}function Oa(rn,Di){1&rn&&(i.j41(0,"div",29),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn&&(i.R7$(),i.SpI(" ",i.bMT(2,1,"settings.IRTurnOn")," "))}function Ms(rn,Di){if(1&rn){const Te=i.RV6();i.qex(0),i.j41(1,"div",30),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.j41(4,"nv-hig-slider",31),i.mxI("valueChange",function(Rt){i.eBV(Te);const ei=i.XpG(3);return i.DH7(ei.seconds,Rt)||(ei.seconds=Rt),i.Njj(Rt)}),i.bIt("valueChange",function(){i.eBV(Te);const Rt=i.XpG(3);return i.Njj(Rt.updateIRMaxLength())}),i.k0s(),i.bVm()}if(2&rn){const Te=i.XpG(3);i.R7$(2),i.SpI(" ",i.i5U(3,5,"settings.IRMaxHelp",Te.irMaxLenString)," "),i.R7$(2),i.Y8G("min",Te.minSeconds)("max",Te.maxSeconds)("step",Te.step),i.R50("value",Te.seconds)}}function Ua(rn,Di){if(1&rn&&(i.j41(0,"div",26),i.DNE(1,Oa,3,3,"div",27)(2,Ms,5,8,"ng-container",28),i.k0s()),2&rn){const Te=i.XpG(2);i.R7$(),i.Y8G("ngIf",!Te.irEnabled&&!Te.disableRecordSpecialCase),i.R7$(),i.Y8G("ngIf",Te.irEnabled&&!Te.disableRecordSpecialCase)}}function Zs(rn,Di){if(1&rn){const Te=i.RV6();i.qex(0),i.j41(1,"div",34),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.j41(4,"nv-hig-slider",35),i.mxI("valueChange",function(Rt){i.eBV(Te);const ei=i.XpG(3);return i.DH7(ei.seconds,Rt)||(ei.seconds=Rt),i.Njj(Rt)}),i.bIt("valueChange",function(){i.eBV(Te);const Rt=i.XpG(3);return i.Njj(Rt.updateIRMaxLength())}),i.k0s(),i.bVm()}if(2&rn){const Te=i.XpG(3);i.R7$(),i.Y8G("ngClass",i.eq3(10,Ss,Te.irEnabled)),i.R7$(),i.SpI(" ",i.i5U(3,7,"settings.IRMaxHelpNvApp",Te.irMaxLenString)," "),i.R7$(2),i.Y8G("min",Te.minSeconds)("max",Te.maxSeconds)("step",Te.step)("disabled",Te.irEnabled),i.R50("value",Te.seconds)}}function qo(rn,Di){1&rn&&(i.j41(0,"div",17)(1,"div",18)(2,"mat-icon",19),i.EFF(3,"info"),i.k0s()(),i.j41(4,"div",36),i.EFF(5),i.nI1(6,"translate"),i.k0s()()),2&rn&&(i.R7$(5),i.SpI(" ",i.bMT(6,1,"settings.IRDisabledHelp")," "))}function js(rn,Di){if(1&rn&&(i.j41(0,"div",26)(1,"div",32),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.DNE(4,Zs,5,12,"ng-container",28)(5,qo,7,3,"div",33),i.k0s()),2&rn){const Te=i.XpG(2);i.R7$(2),i.SpI(" ",i.bMT(3,3,"settings.IRLength")," "),i.R7$(2),i.Y8G("ngIf",Te.sliderVisible),i.R7$(),i.Y8G("ngIf",Te.irEnabled)}}function Ia(rn,Di){if(1&rn&&(i.j41(0,"div",3),i.DNE(1,Ua,3,2,"div",25)(2,js,6,5,"div",25),i.k0s()),2&rn){const Te=i.XpG();i.R7$(),i.Y8G("ngIf",!Te.gfeMode),i.R7$(),i.Y8G("ngIf",Te.gfeMode)}}function Ds(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"nv-rotary",49),i.bIt("selectionChanged",function(Rt){i.eBV(Te);const ei=i.XpG(2);return i.Njj(ei.codecChanged(Rt))}),i.k0s()}if(2&rn){const Te=i.XpG(2);i.Y8G("input",Te.codecOptions)("initialState",Te.codecInitState)("disabled",Te.disableUI)}}function Js(rn,Di){1&rn&&(i.j41(0,"div",52),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn&&(i.R7$(),i.SpI(" ",i.bMT(2,1,"capture.CodecHelp1HEVC")," "))}function fa(rn,Di){1&rn&&(i.j41(0,"div",52),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn&&(i.R7$(),i.SpI(" ",i.bMT(2,1,"capture.CodecHelp1AV1")," "))}function Ga(rn,Di){if(1&rn&&(i.j41(0,"div",50),i.DNE(1,Js,3,3,"div",51)(2,fa,3,3,"div",51),i.k0s()),2&rn){const Te=i.XpG(2);i.R7$(),i.Y8G("ngIf",Te.hevcSupported),i.R7$(),i.Y8G("ngIf",!Te.hevcSupported)}}function cs(rn,Di){1&rn&&(i.j41(0,"div",53)(1,"div",54)(2,"mat-icon",19),i.EFF(3,"info"),i.k0s()(),i.j41(4,"div",52),i.EFF(5),i.nI1(6,"translate"),i.k0s()()),2&rn&&(i.R7$(5),i.SpI(" ",i.bMT(6,1,"capture.CodecHelp2HEVC")," "))}function $s(rn,Di){1&rn&&(i.j41(0,"div",53)(1,"div",52),i.EFF(2),i.nI1(3,"translate"),i.k0s()()),2&rn&&(i.R7$(2),i.SpI(" ",i.bMT(3,1,"capture.CodecHelpAV1")," "))}function Vo(rn,Di){1&rn&&(i.j41(0,"div",3)(1,"div",53)(2,"div",54)(3,"mat-icon",55),i.EFF(4,"info"),i.k0s()(),i.j41(5,"div",56),i.EFF(6),i.nI1(7,"translate"),i.k0s()()()),2&rn&&(i.R7$(6),i.SpI(" ",i.bMT(7,1,"settings.StopRecording")," "))}function Hn(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"div",3),i.nrm(1,"nv-divider"),i.j41(2,"span",37),i.EFF(3),i.nI1(4,"translate"),i.k0s(),i.j41(5,"span",38),i.EFF(6),i.nI1(7,"translate"),i.k0s(),i.j41(8,"nv-rotary",39),i.bIt("selectionChanged",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.qualityChanged(Rt))}),i.k0s(),i.j41(9,"nv-rotary",40),i.bIt("selectionChanged",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.resolutionChanged(Rt))}),i.k0s(),i.j41(10,"nv-rotary",41),i.bIt("selectionChanged",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.frameRateChanged(Rt))}),i.k0s(),i.DNE(11,Ds,1,3,"nv-rotary",42)(12,Ga,3,2,"div",43)(13,cs,7,3,"div",44)(14,$s,4,3,"div",44),i.j41(15,"span",45),i.EFF(16),i.nI1(17,"translate"),i.k0s(),i.j41(18,"div",46)(19,"div",47)(20,"nv-hig-slider",48),i.mxI("valueChange",function(Rt){i.eBV(Te);const ei=i.XpG();return i.DH7(ei.bitrate,Rt)||(ei.bitrate=Rt),i.Njj(Rt)}),i.bIt("valueChange",function(){i.eBV(Te);const Rt=i.XpG();return i.Njj(Rt.bitrateChanged())}),i.k0s()()(),i.DNE(21,Vo,8,3,"div",6),i.k0s()}if(2&rn){const Te=i.XpG();i.R7$(3),i.JRh(i.bMT(4,24,"capture.OutputFormat")),i.R7$(3),i.JRh(i.bMT(7,26,"capture.OutputFormatHelp")),i.R7$(2),i.Y8G("input",Te.qualityOptions)("initialState",Te.qualityInitState)("disabled",Te.disableUI),i.R7$(),i.Y8G("input",Te.resolutionOptions)("initialState",Te.resolutionInitState)("disabled",Te.disableUI),i.R7$(),i.Y8G("input",Te.frameRateOptions)("initialState",Te.frameRateInitState)("disabled",Te.disableFrameRateRotary||Te.disableUI),i.R7$(),i.Y8G("ngIf",Te.showCodecRotary),i.R7$(),i.Y8G("ngIf",Te.showCodecRotary&&Te.isLegacyCodec),i.R7$(),i.Y8G("ngIf",Te.showCodecRotary&&Te.isLegacyCodec),i.R7$(),i.Y8G("ngIf",Te.showCodecRotary&&!Te.isLegacyCodec),i.R7$(),i.AVh("disabled-opacity",Te.disableUI),i.R7$(),i.JRh(i.bMT(17,28,"capture.BitRateMbps")),i.R7$(4),i.Y8G("min",Te.minBitrate)("max",Te.maxBitrate),i.R50("value",Te.bitrate),i.Y8G("step",Te.stepBitrate)("disabled",Te.disableUI),i.R7$(),i.Y8G("ngIf",Te.disableUI)}}let la=(()=>{class rn extends r{constructor(Te,Jt,Rt,ei,tr,Ur,lo,wo,Lr,ns){super(Jt,Rt,ei,tr,Ur),this.loggingService=Te,this.shadowPlayService=lo,this.igoConfig=wo,this.sdkHighlightsService=Lr,this.translateService=ns,this.minSeconds=15,this.maxSeconds=1200,this.step=5,this.seconds=this.minSeconds,this.irEnabled=!1,this.irRunning=!1,this.irMaxLenString={arg:""},this.irStatusString="",this.mrInProgress=!1,this.highlightsActive=!1,this.disableUI=!1,this.sliderVisible=!1,this.recordSpecialCase=_.Fm,this.disableFrameRateRotary=!1,this.showCodecRotary=!1,this.isLegacyCodec=!1,this.qualityOptions=["capture.Low","capture.Medium","capture.High","capture.Custom"],this.hevcSupported=!1,this.qualityValuesIgo=[f.xT0.low,f.xT0.medium,f.xT0.high,f.xT0.custom],this.qualityInitState=0,this.customConfigured=!1,this.lastNonCustomQuality=0,this.resolutionOptions=["No data!"],this.resolutionInitState=0,this.frameRateOptions=["No data!"],this.frameRateInitState=0,this.codecOptions=["No data!"],this.codecInitState=0,this.disableFrameRateWhenRes8k=!1,this.minBitrate=10,this.maxBitrate=130,this.stepBitrate=5,this.bitrate=50,this.bitrateMaxString={},this.bitrateMinString={},this.videoSpecs={resolutions:void 0,codecs:void 0,codecDefault:void 0,frameRates:void 0,frameRatesDefault:void 0,bitRatesMin:void 0,bitRatesMax:void 0,bitRatesDefault:void 0,recQualitySP:void 0,recQualityIgo:void 0,recResolution:void 0,recFramerate:void 0,recBitrate:void 0,recReplayLength:void 0,recCodec:void 0},this.gfeMode=!1,this.showVideoSpecs=!1,this.showDTCapture=!1,this.dcSupported=!1,this.dtCaptureState=!1,this.enableDTCapture=!1,super.bar("settings.VideoCapture"),this.logger=this.loggingService.getLogger("Video"),this.shadowPlayService.videoCaptureReturnLocation&&(this.caller=this.shadowPlayService.videoCaptureReturnLocation,this.shadowPlayService.videoCaptureReturnLocation=null)}ngOnInit(){super.ngOnInit(),this.init()}ngOnDestroy(){this.gfeMode&&this.menuClosed(),super.ngOnDestroy()}init(){this.gfeMode="GFE"===this.igoConfig.branding,this.gfeMode&&(this.showVideoSpecs=!0,this.showDTCapture=!this.shadowPlayService.isNotebookCoProcSystem()),this.maxSeconds=this.gfeMode?1200:300,this.irMaxLenString.arg=this.maxSeconds/60+"",this.hevcSupported=this.shadowPlayService.hevcSupported,(0,Wn.p)([this.shadowPlayService.getDesktopCaptureSupported(),this.shadowPlayService.getDesktopCaptureEnabled(),this.shadowPlayService.getInstantReplayEnableStatus(),this.shadowPlayService.getInstantReplayRunningStatus(),this.shadowPlayService.getInstantReplayMaxLength(),this.shadowPlayService.getMRState().pipe((0,X.s)(1))]).pipe((0,P.Q)(this.destroy$)).subscribe(([Te,Jt,Rt,ei,tr,Ur])=>{this.logger.info("IR Enabled: "+Rt+" Running: "+ei),this.irEnabled=Rt,this.irStatusString=this.irEnabled?"settings.IRTurnOff":"settings.IRTurnOn",this.irRunning=ei,this.mrInProgress=Ur,this.sliderVisible=this.gfeMode||this.irEnabled,this.checkCurrentState(),this.seconds=void 0===tr?this.minSeconds:tr,this.logger.info("IR Length: "+this.seconds),this.dcSupported=!0,this.checkDTCapture(),this.logger.info("DT Supported: "+Te+" DT Enabled: "+Jt),this.logger.info("Running IR: "+Rt+" MR: "+Ur),Te&&(this.dtCaptureState=Jt)}),this.shadowPlayService.getIRState().pipe((0,P.Q)(this.destroy$)).subscribe(Te=>{this.irEnabled=Te!==f.xT8.off,this.irStatusString=this.irEnabled?"settings.IRTurnOff":"settings.IRTurnOn",this.irRunning=Te===f.xT8.recording,this.sliderVisible=this.gfeMode||this.irEnabled,this.logger.info("ir state: ",this.irEnabled),this.checkCurrentState(),this.checkDTCapture()}),this.shadowPlayService.getMRState().pipe((0,P.Q)(this.destroy$)).subscribe(Te=>{this.mrInProgress=Te,this.checkCurrentState(),this.checkDTCapture()}),this.sdkHighlightsService.isHighlightsActive().pipe((0,P.Q)(this.destroy$)).subscribe(Te=>{this.highlightsActive=Te,this.checkCurrentState(),this.checkDTCapture()}),this.gfeMode&&this.initializeVideoSpecs(!0,!0,!0,!0,!0)}checkCurrentState(){this.gfeMode&&(this.disableUI=this.irRunning||this.mrInProgress||this.highlightsActive)}updateIRMaxLength(){this.seconds<this.minSeconds||this.seconds>this.maxSeconds||(this.logger.info("New IR Length: ",this.seconds),this.videoSpecs.recReplayLength=this.seconds,this.updateVideoSpecs())}irToggleEvent(Te){this.logger.info("on toggle IR: ",Te.checked),Te.checked?this.shadowPlayService.enableInstantReplay():this.shadowPlayService.disableInstantReplay()}setQualityMode(Te){const Jt=this.qualityValuesIgo.findIndex(Rt=>Rt===Te);this.videoSpecs.recQualityIgo=Te,this.qualityInitState=Jt}updateVideoSpecs(Te=!1,Jt=!1,Rt=!1,ei=!0,tr=!1){this.shadowPlayService.setVideoSpecs(this.videoSpecs,this.gfeMode).pipe((0,P.Q)(this.destroy$),(0,go.M)(Ur=>{Ur&&this.gfeMode&&this.initializeVideoSpecs(Te,Jt,Rt,ei,tr)}),(0,Go.W)(Ur=>(this.logger.error("Error in updateVideoSpecs: ",Ur),(0,Xr.of)(!1)))).subscribe()}qualityChanged(Te){this.videoSpecs.recQualityIgo=this.qualityValuesIgo[Te],this.logger.info("Quality changed to: "+this.videoSpecs.recQualityIgo),this.qualityInitState=Te,this.videoSpecs.recQualityIgo!==f.xT0.custom&&(this.lastNonCustomQuality=Te),this.updateVideoSpecs(!1,!1,!1,!0,!1)}resolutionChanged(Te){this.videoSpecs.resolutions&&Te<this.videoSpecs.resolutions.length?(this.logger.info("Resolution changed to: "+this.videoSpecs.resolutions[Te]),this.videoSpecs.recResolution=this.videoSpecs.resolutions[Te],this.videoSpecs.recBitrate=0,this.resolutionInitState=Te,!0===this.customConfigured&&(this.setQualityMode(this.qualityValuesIgo[this.lastNonCustomQuality]),this.customConfigured=!1),this.updateVideoSpecs(!0,!1,!0)):this.logger.error("Issue with changing resolution: ",Te)}frameRateChanged(Te){this.videoSpecs.frameRates&&Te<this.videoSpecs.frameRates.length?(this.videoSpecs.recFramerate=this.videoSpecs.frameRates[Te],this.frameRateInitState=Te,this.videoSpecs.recBitrate=0,!0===this.customConfigured&&(this.setQualityMode(this.qualityValuesIgo[this.lastNonCustomQuality]),this.customConfigured=!1),this.updateVideoSpecs(!0,!1,!1)):this.logger.error("Issue with changing frame rate: ",Te)}bitrateChanged(){this.bitrate<this.minBitrate||this.bitrate>this.maxBitrate||(this.videoSpecs.recBitrate=1e5*Math.round(10*this.bitrate),this.setQualityMode(f.xT0.custom),this.customConfigured=!0,this.updateVideoSpecs(!1,!1,!1,!1))}codecChanged(Te){this.videoSpecs?.codecs&&Te<this.videoSpecs.codecs.length?(this.logger.info("Codec changed to: "+this.videoSpecs.codecs[Te]),this.shadowPlayService.getShowCodecMessage()&&this.shadowPlayService.dismissShowCodecMessage(),this.videoSpecs.recCodec=this.videoSpecs.codecs[Te],this.videoSpecs.recBitrate=0,this.codecInitState=Te,this.isLegacyCodec=this.videoSpecs.codecs[Te]===f.m_A.H264_HEVC,!0===this.customConfigured&&(this.setQualityMode(this.qualityValuesIgo[this.lastNonCustomQuality]),this.customConfigured=!1),this.updateVideoSpecs(!0,!1,!1,!0,!1)):this.logger.error("Issue with changing codec: ",Te)}initializeVideoSpecs(Te=!1,Jt=!1,Rt=!1,ei=!0,tr=!1){return this.shadowPlayService.getVideoSpecs().pipe((0,P.Q)(this.destroy$),(0,go.M)(Ur=>{if(this.videoSpecs={...Ur},this.logger.info("init VideoSpecs:",this.videoSpecs),this.minBitrate=Math.floor(this.videoSpecs.bitRatesMin/1e5)/10,this.maxBitrate=Math.floor(this.videoSpecs.bitRatesMax/1e5)/10,this.stepBitrate=this.maxBitrate-this.minBitrate<10?.1:this.maxBitrate-this.minBitrate<50?1:5,ei&&(this.bitrate=this.videoSpecs.recQualityIgo===f.xT0.custom&&this.videoSpecs.recBitrate?Math.floor(this.videoSpecs.recBitrate/1e5)/10:Math.floor(this.videoSpecs.bitRatesDefault/1e5)/10,this.bitrate>this.maxBitrate&&(this.bitrate=this.maxBitrate),this.bitrate<this.minBitrate&&(this.bitrate=this.minBitrate)),this.logger.info(" BR:"+this.bitrate+" BRMin:"+this.minBitrate+" BRMax:"+this.maxBitrate+" step:"+this.stepBitrate),this.bitrateMinString=this.minBitrate+"",this.bitrateMaxString=this.maxBitrate+"",Te&&(this.qualityValuesIgo.forEach((lo,wo)=>{lo===this.videoSpecs.recQualityIgo&&(this.qualityInitState=wo)}),this.videoSpecs.recQualityIgo!==f.xT0.custom&&(this.lastNonCustomQuality=this.qualityInitState)),Jt){const lo=[];let wo=0;this.videoSpecs.resolutions.forEach((Lr,ns)=>{const Io="In-game"===Lr?this.translateService.instant("capture.InGame"):Lr;lo.push(Io),Lr===this.videoSpecs.recResolution&&(wo=ns)}),this.resolutionOptions.length=0,this.resolutionOptions=lo,this.resolutionInitState=wo}if(Rt){const lo=[];let wo;this.videoSpecs.frameRates.length||this.videoSpecs.frameRates.push(30),this.videoSpecs.frameRates.forEach((ns,Io)=>{lo.push(ns+" FPS"),this.videoSpecs.recQualityIgo===f.xT0.custom?ns===this.videoSpecs.recFramerate&&(wo=Io):ns===this.videoSpecs.frameRatesDefault&&(wo=Io)}),this.frameRateOptions=[...lo],this.frameRateInitState=wo,this.disableFrameRateRotary=this.videoSpecs.frameRates.length<=1}if(tr){const lo=[];let wo=0;this.videoSpecs.codecs.forEach((Lr,ns)=>{let Io=Lr;"H264/HEVC"===Lr&&(Io=this.translateService.instant(this.hevcSupported?"capture.CodecH264HEVC":"capture.CodecH264AV1")),lo.push(Io),Lr===this.videoSpecs.recCodec&&(wo=ns)}),this.codecOptions.length=0,this.codecOptions=lo,this.codecInitState=wo,this.showCodecRotary=!!this.videoSpecs.codecs.length,this.isLegacyCodec=this.videoSpecs.codecs[wo]===f.m_A.H264_HEVC}}),(0,Go.W)(Ur=>(this.logger.error("Error in initializeVideoSpecs: ",Ur),(0,Xr.of)(this.videoSpecs)))).subscribe()}dtCaptureChanged(Te){this.logger.info("DT Capture changed: ",Te.checked),this.shadowPlayService.SetDesktopCaptureEnabled(Te.checked).pipe((0,P.Q)(this.destroy$)).subscribe()}checkDTCapture(){this.enableDTCapture=this.dcSupported&&!this.irRunning&&!this.irEnabled&&!this.mrInProgress&&!this.highlightsActive}menuClosed(){this.updateVideoSpecs(!1,!1,!1)}static{this.\u0275fac=function(Jt){return new(Jt||rn)(i.rXU(v.J6),i.rXU(f.o_p),i.rXU(l.nX),i.rXU(f.gZv),i.rXU(f.eo6),i.rXU(f.x_y),i.rXU(f.W1J),i.rXU(f.k$F),i.rXU(f.P15),i.rXU(Be.c$))}}static{this.\u0275cmp=i.VBU({type:rn,selectors:[["igo-video"]],features:[i.Vt3],decls:9,vars:6,consts:[["fxLayout","column","fxFlex",""],["fxFlex","grow","fxLayout","column"],["class","side-padding","fxLayout","column",4,"ngIf"],["fxLayout","column"],["fxFlex","none","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["class","font-body3 font-color-tertiary disabled-opacity side-padding",4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxLayout","column",1,"side-padding"],["fxFlex","none","fxLayout","row","fxLayoutAlign","start center",1,"desktop-capture-padding-top"],["fxFlex","grow",1,"font-body1","font-color-primary"],["fxFlex","none",1,"settings-padding",3,"ngModelChange","change","disabled","ngModel"],[1,"nv-gap-8"],["class","font-body2 font-color-tertiary desktop-capture-padding-bottom",4,"ngIf"],["fxLayout","column","class","desktop-capture-help-padding",4,"ngIf"],["marginNotReq","true"],[1,"font-body2","font-color-tertiary","desktop-capture-padding-bottom"],["fxLayout","column",1,"desktop-capture-help-padding"],["fxLayout","row","fxLayoutAlign","start center"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","none",1,"alert-icon-deatils"],[1,"icon-disabled"],[1,"font-body2","font-color-tertiary","irenabled-disable-help"],["fxFlex","none","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","grow",1,"font-sub1","side-padding","font-color-primary","gfn-ir-title-padding"],["fxFlex","none",1,"settings-padding","side-padding","gfn-ir-title-padding",3,"ngModelChange","change","ngModel","disabled"],[1,"font-body3","font-color-tertiary","disabled-opacity","side-padding"],["class","side-padding",4,"ngIf"],[1,"side-padding"],["class","font-body2 font-color-primary gfn-ir-sutitle-padding",4,"ngIf"],[4,"ngIf"],[1,"font-body2","font-color-primary","gfn-ir-sutitle-padding"],[1,"font-body2","font-color-tertiary","gfn-ir-subtitle-padding"],["valueEntry","true","formatTextAs","Time",1,"slider-left-padding",3,"valueChange","min","max","step","value"],[1,"font-body1","font-color-primary","instant-replay-length-padding-top"],["fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[1,"font-body2","font-color-tertiary","instant-replay-length-padding-bottom",3,"ngClass"],["valueEntry","true","formatTextAs","Time",1,"slider-left-padding",3,"valueChange","min","max","step","disabled","value"],[1,"font-body2","font-color-secondary","irenabled-disable-help"],[1,"font-body1","font-color-primary","instant-replay-length-padding-top","side-padding"],[1,"font-body2","font-color-tertiary","instant-replay-length-padding-bottom","side-padding"],["title","capture.Quality",1,"rotary-side-padding",3,"selectionChanged","input","initialState","disabled"],["title","capture.Resolution",1,"rotary-side-padding",3,"selectionChanged","input","initialState","disabled"],["title","capture.FrameRate",1,"rotary-side-padding",3,"selectionChanged","input","initialState","disabled"],["class","rotary-side-padding","title","capture.Codec",3,"input","initialState","disabled","selectionChanged",4,"ngIf"],["class","bitrate-header side-padding",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","class","bitrate-header side-padding",4,"ngIf"],[1,"font-body1","font-color-primary","bitrate-header","side-padding"],["fxLayout","column",1,"font-body2","font-color-primary","side-padding"],["fxFlex","grow","fxLayoutAlign","space-between center"],["fxFlexFill","","valueEntry","true","formatTextAs","Decimal",1,"slider-left-padding",3,"valueChange","min","max","value","step","disabled"],["title","capture.Codec",1,"rotary-side-padding",3,"selectionChanged","input","initialState","disabled"],[1,"bitrate-header","side-padding"],["class","font-body2 font-color-tertiary",4,"ngIf"],[1,"font-body2","font-color-tertiary"],["fxLayout","row","fxLayoutAlign","start center",1,"bitrate-header","side-padding"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","none",1,"warning-icon"],[1,"icon-disabled","font-color-primary"],[1,"font-body2","recording-disable-msg","font-color-tertiary"]],template:function(Jt,Rt){1&Jt&&(i.j41(0,"div",0)(1,"div",1),i.DNE(2,Xs,11,10,"div",2),i.j41(3,"div",3),i.DNE(4,ys,5,5,"div",4)(5,ma,3,3,"span",5)(6,fs,3,3,"span",5)(7,Ia,3,2,"div",6)(8,Hn,22,30,"div",6),i.k0s()()()),2&Jt&&(i.R7$(2),i.Y8G("ngIf",Rt.showDTCapture),i.R7$(2),i.Y8G("ngIf",!Rt.gfeMode),i.R7$(),i.Y8G("ngIf",Rt.recordSpecialCase.RECORD_SPECIAL_CASE_4K===Rt.disableRecordSpecialCase&&!Rt.gfeMode),i.R7$(),i.Y8G("ngIf",Rt.recordSpecialCase.RECORD_SPECIAL_CASE_PLAYTEST===Rt.disableRecordSpecialCase&&!Rt.gfeMode),i.R7$(),i.Y8G("ngIf",Rt.recordSpecialCase.RECORD_SPECIAL_CASE_NONE===Rt.disableRecordSpecialCase),i.R7$(),i.Y8G("ngIf",Rt.showVideoSpecs))},dependencies:[n.YU,n.bT,a.$,rt.X,Pe.I,m.DJ,m.sA,m.G2,m.UI,Qe.PW,se.BC,se.vS,ie.An,Ve.P2,St.t,Se.tG,Be.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.warning-icon[_ngcontent-%COMP%]{height:24px;width:24px}.isLtr[_nghost-%COMP%] .warning-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .warning-icon[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .warning-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .warning-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .warning-icon[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .warning-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%]{padding-right:10px}html[dir=ltr][_ngcontent-%COMP%] .settings-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:10px}.isRtl[_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%]{padding-left:10px}html[dir=rtl][_ngcontent-%COMP%] .settings-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:10px}.isLtr[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-right:4px}html[dir=ltr][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:4px}.isRtl[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-left:4px}html[dir=rtl][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:4px}.desktop-capture-padding-top[_ngcontent-%COMP%]{padding-top:14px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.irenabled-disable-help[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px;height:24px}.desktop-capture-help-padding[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.instant-replay-length-padding-top[_ngcontent-%COMP%]{padding-top:10px}.instant-replay-length-padding-bottom[_ngcontent-%COMP%]{padding-bottom:10px}.desktop-capture-padding-bottom[_ngcontent-%COMP%]{padding-bottom:14px}.dt-help-height[_ngcontent-%COMP%]{height:24px}.codec-rotary-padding-bottom[_ngcontent-%COMP%]{padding-bottom:10px}.bitrate-header[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.warning-icon[_ngcontent-%COMP%] mat-icon.icon-disabled[_ngcontent-%COMP%]{color:#fff9}.slider-left-padding[_ngcontent-%COMP%]{padding-top:2.5px;padding-bottom:2.5px}.isLtr[_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.alert-icon-deatils[_ngcontent-%COMP%]{width:24px;height:24px}.isLtr[_nghost-%COMP%] .alert-icon-deatils[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .alert-icon-deatils[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .alert-icon-deatils[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .alert-icon-deatils[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .alert-icon-deatils[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .alert-icon-deatils[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}[_nghost-%COMP%]{padding-top:16px}.gfn-ir-title-padding[_ngcontent-%COMP%]{padding-top:14px}.gfn-ir-subtitle-padding[_ngcontent-%COMP%]{padding-bottom:14px}"]})}}return rn})();var ra=s(83486);function $o(rn,Di){1&rn&&(i.j41(0,"div",15)(1,"div",16),i.nrm(2,"mat-icon",17),i.k0s(),i.j41(3,"span",18),i.EFF(4),i.nI1(5,"translate"),i.k0s()()),2&rn&&(i.R7$(4),i.JRh(i.bMT(5,1,"capture.StopToChange")))}function rs(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"div"),i.nrm(1,"nv-divider",10),i.j41(2,"div",11)(3,"span"),i.EFF(4),i.nI1(5,"translate"),i.k0s()(),i.j41(6,"div",12)(7,"nv-rotary",13),i.bIt("selectionChanged",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.audioTracksChanged(Rt))}),i.k0s()(),i.DNE(8,$o,6,3,"div",14),i.k0s()}if(2&rn){const Te=i.XpG();i.R7$(2),i.AVh("disabled-opacity",Te.audioTracksDisabled),i.R7$(2),i.JRh(i.bMT(5,8,"audio.AudioTracks")),i.R7$(3),i.Y8G("input",Te.audioTracks)("initialState",Te.audioTracksInitState)("subTitle",Te.audioTrackDescription)("disabled",Te.audioTracksDisabled),i.R7$(),i.Y8G("ngIf",Te.audioTracksDisabled)}}let oa=(()=>{class rn extends r{constructor(Te,Jt,Rt,ei,tr,Ur,lo,wo){super(Jt,Rt,wo),this.loggingService=Te,this.shadowPlayService=ei,this.sdkHighlightsService=tr,this.translateService=Ur,this.telemetryService=lo,this.minVolume=0,this.maxVolume=100,this.stepVolume=1,this.systemVolume=100,this.volume=100,this.volumeDisabled=!1,this.boost=0,this.boostDisabled=!0,this.audioTracks=["audio.SingleTrack","audio.SeparateTrack"],this.audioTracksInitState=0,this.micSelection=0,this.microphone=[],this.dropdownDisabled=!1,this.mrInProgress=!1,this.irInProgress=!1,this.highlightsActive=!1,this.audioTracksDisabled=!1,this.noMicStr="",this.audioDisabledStr="",this.multiTrackAudioAvailable=!0,this.audioTrackDescription="",this.audioSpecs={systemVolumePercent:0,separateTracks:!1},super.bar("audio.Audio"),this.logger=this.loggingService.getLogger("Audio"),this.logger.info("Constructor"),this.translateService.get("audio.NoMic").subscribe(Lr=>{this.noMicStr=Lr}),this.translateService.get("audio.Disabled").subscribe(Lr=>{this.audioDisabledStr=Lr})}ngOnInit(){super.ngOnInit(),this.initializeMicData(),this.shadowPlayService.getMICDeviceState().pipe((0,P.Q)(this.destroy$)).subscribe(Te=>{this.logger.info("MicDeviceState: ",Te),(Te===f.gXb.plugged_in||Te===f.gXb.plugged_out)&&this.initializeMicData()}),this.shadowPlayService.getAudioSettings().pipe((0,P.Q)(this.destroy$)).subscribe(Te=>{this.logger.info("AudioSettings: ",Te),this.audioSpecs=Te,this.systemVolume=Te.systemVolumePercent,this.audioTracksInitState=Te.separateTracks?1:0,this.audioTrackDescription=this.audioTracksInitState?"audio.TwoTrackDescription":"audio.OneTrackDescription"}),(0,Wn.p)([this.shadowPlayService.getMRState().pipe((0,X.s)(1)),this.shadowPlayService.getInstantReplayRunningStatus(),this.sdkHighlightsService.isHighlightsActive().pipe((0,X.s)(1))]).pipe((0,P.Q)(this.destroy$)).subscribe(([Te,Jt,Rt])=>{this.mrInProgress=Te,this.irInProgress=Jt,this.highlightsActive=Rt,this.logger.info("InUse MR: "+this.mrInProgress+" IR: "+this.irInProgress+" HL: "+this.highlightsActive),this.audioTracksDisabled=this.mrInProgress||this.irInProgress||this.highlightsActive})}ngOnDestroy(){this.telemetryService.sendAudioTelemetry({systemVolume:this.systemVolume||0,micVolume:this.volume||0,micBoost:this.boost||0,micSrc:(this.micSelection>this.microphone.length||-1===this.micSelection?J.oX.Undefined:this.microphone[this.micSelection])||J.oX.Undefined,isMultiTrack:this.audioSpecs?.separateTracks?Zi.T8.TRUE:Zi.T8.FALSE}),this.destroy$.next(!0)}initializeMicData(){this.shadowPlayService.getMicrophoneData().pipe((0,P.Q)(this.destroy$)).subscribe(Te=>{this.logger.info("MicrophoneData: ",Te),this.allMicSpecs=Te;const Jt=Te.index,Rt=[];if(-1===Jt||0===this.allMicSpecs.micSpecs.length)this.boostDisabled=!0,this.volumeDisabled=!0,this.dropdownDisabled=!0,Rt.push(this.noMicStr),this.micSelection=0;else{let ei=-1;if(this.allMicSpecs.micSpecs.forEach((tr,Ur)=>{tr.enabled&&Rt.push(tr.name),Ur===Jt&&(ei=Ur)}),-1===ei)this.boostDisabled=!0,this.volumeDisabled=!0,this.dropdownDisabled=!0,Rt.push(this.noMicStr);else{this.volume=Te.micSpecs[ei]?.volumePercent??0,this.boost=Te.micSpecs[ei]?.boostPercent??0,this.boostDisabled=this.volume<this.maxVolume;const tr=Rt.findIndex(Ur=>Ur===this.allMicSpecs.micSpecs[ei].name);this.micSelection=tr,this.volumeDisabled=!1,this.dropdownDisabled=!1,this.boostDisabled=this.volume<this.maxVolume}}this.microphone=Rt,this.logger.info("Mics avail: ",this.microphone),this.logger.info("MicSelection: ",this.micSelection)})}systemVolumeChanged(){this.logger.info("System Volume Changed: ",this.systemVolume),this.audioSpecs.systemVolumePercent=this.systemVolume,this.shadowPlayService.setAudioSettings(this.audioSpecs).pipe((0,P.Q)(this.destroy$)).subscribe()}audioTracksChanged(Te){this.logger.info("Audio Tracks Changed: ",Te),this.audioSpecs.separateTracks=!!Te,this.audioTrackDescription=this.audioSpecs.separateTracks?"audio.TwoTrackDescription":"audio.OneTrackDescription",this.shadowPlayService.setAudioSettings(this.audioSpecs).pipe((0,P.Q)(this.destroy$)).subscribe()}micChanged(Te){this.logger.info("Microphone Changed : ",Te);const Jt=this.allMicSpecs.micSpecs.findIndex(Rt=>Rt?.name===this.microphone[Te]);this.allMicSpecs.index=Jt,this.volume=this.allMicSpecs.micSpecs[Jt]?.volumePercent??0,this.boost=this.allMicSpecs.micSpecs[Jt]?.boostPercent??0,this.boostDisabled=this.volume<this.maxVolume,this.allMicSpecs.micSpecs[Jt]&&(this.allMicSpecs.micSpecs[Jt].muted=!1),this.shadowPlayService.setMicSettings(this.allMicSpecs).pipe((0,P.Q)(this.destroy$)).subscribe()}volumeChanged(){this.logger.info("Volume Changed: ",this.volume);const Te=this.allMicSpecs.index;this.allMicSpecs.micSpecs[Te]?(this.allMicSpecs.micSpecs[Te].volumePercent=this.volume,this.boostDisabled=this.volume<this.maxVolume,this.shadowPlayService.setMicSettings(this.allMicSpecs).pipe((0,P.Q)(this.destroy$)).subscribe()):this.logger.error("No data initialized for selected mic, data:",this.allMicSpecs)}boostChanged(){this.logger.info("Boost Changed: ",this.boost),this.allMicSpecs.micSpecs.forEach(Te=>{Te.boostPercent=this.boost}),this.shadowPlayService.setMicSettings(this.allMicSpecs).pipe((0,P.Q)(this.destroy$)).subscribe()}static{this.\u0275fac=function(Jt){return new(Jt||rn)(i.rXU(v.J6),i.rXU(f.o_p),i.rXU(l.nX),i.rXU(f.W1J),i.rXU(f.P15),i.rXU(Be.c$),i.rXU(W.S),i.rXU(f.gZv))}}static{this.\u0275cmp=i.VBU({type:rn,selectors:[["igo-audio"]],features:[i.Vt3],decls:27,vars:40,consts:[["fxLayout","column","fxFlex",""],[1,"font-sub2","font-color-tertiary","left-data","side-padding"],[1,"font-body1","header1","side-padding","text-color"],["valueEntry","true","formatTextAs","Percent",1,"slider-left-padding",3,"valueChange","min","max","step","value"],[1,"font-body2","font-color-tertiary","left-data","side-padding"],[1,"font-body1","font-color-primary","header1","side-padding"],[1,"dropdown-extra-padding",3,"selectionChanged","selection","input","disabled"],["fxFlex","none",1,"nv-gap-8"],["valueEntry","true","formatTextAs","Percent",1,"slider-left-padding",3,"valueChange","min","max","step","value","disabled"],[4,"ngIf"],["marginNotReq","true"],[1,"left-data","font-sub2","font-color-tertiary","side-padding"],[1,"rotary-side-padding"],["title","audio.Format",3,"selectionChanged","input","initialState","subTitle","disabled"],["class","side-padding","fxLayout","row","fxLayoutAlign","start start",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start start",1,"side-padding"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","none",1,"nv-item-icon"],["svgIcon","alert_circle",1,"icon-normal","font-color-primary"],["fxFlexAlign","center",1,"font-body2","font-color-primary"]],template:function(Jt,Rt){1&Jt&&(i.j41(0,"div",0)(1,"span",1),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.j41(4,"span",2),i.EFF(5),i.nI1(6,"translate"),i.k0s(),i.j41(7,"nv-hig-slider",3),i.mxI("valueChange",function(tr){return i.DH7(Rt.systemVolume,tr)||(Rt.systemVolume=tr),tr}),i.bIt("valueChange",function(){return Rt.systemVolumeChanged()}),i.k0s(),i.nrm(8,"nv-divider"),i.j41(9,"span",4),i.EFF(10),i.nI1(11,"translate"),i.k0s(),i.j41(12,"span",5),i.EFF(13),i.nI1(14,"translate"),i.k0s(),i.j41(15,"nv-dropdown",6),i.bIt("selectionChanged",function(tr){return Rt.micChanged(tr)}),i.k0s(),i.nrm(16,"div",7),i.j41(17,"span",5),i.EFF(18),i.nI1(19,"translate"),i.k0s(),i.j41(20,"nv-hig-slider",8),i.mxI("valueChange",function(tr){return i.DH7(Rt.volume,tr)||(Rt.volume=tr),tr}),i.bIt("valueChange",function(){return Rt.volumeChanged()}),i.k0s(),i.nrm(21,"div",7),i.j41(22,"span",5),i.EFF(23),i.nI1(24,"translate"),i.k0s(),i.j41(25,"nv-hig-slider",8),i.mxI("valueChange",function(tr){return i.DH7(Rt.boost,tr)||(Rt.boost=tr),tr}),i.bIt("valueChange",function(){return Rt.boostChanged()}),i.k0s(),i.DNE(26,rs,9,10,"div",9),i.k0s()),2&Jt&&(i.R7$(2),i.JRh(i.bMT(3,28,"audio.SystemSounds")),i.R7$(3),i.JRh(i.bMT(6,30,"audio.Volume")),i.R7$(2),i.Y8G("min",Rt.minVolume)("max",Rt.maxVolume)("step",Rt.stepVolume),i.R50("value",Rt.systemVolume),i.R7$(3),i.JRh(i.bMT(11,32,"settings.Microphone")),i.R7$(3),i.JRh(i.bMT(14,34,"audio.Source")),i.R7$(2),i.Y8G("selection",Rt.micSelection)("input",Rt.microphone)("disabled",Rt.dropdownDisabled),i.R7$(2),i.AVh("disabled-opacity",Rt.volumeDisabled),i.R7$(),i.JRh(i.bMT(19,36,"audio.Volume")),i.R7$(2),i.Y8G("min",Rt.minVolume)("max",Rt.maxVolume)("step",Rt.stepVolume),i.R50("value",Rt.volume),i.Y8G("disabled",Rt.volumeDisabled),i.R7$(2),i.AVh("disabled-opacity",Rt.boostDisabled),i.R7$(),i.JRh(i.bMT(24,38,"audio.Boost")),i.R7$(2),i.Y8G("min",Rt.minVolume)("max",Rt.maxVolume)("step",Rt.stepVolume),i.R50("value",Rt.boost),i.Y8G("disabled",Rt.boostDisabled),i.R7$(),i.Y8G("ngIf",Rt.multiTrackAudioAvailable))},dependencies:[n.bT,a.$,ra.T,rt.X,Pe.I,m.DJ,m.sA,m.R$,m.UI,ie.An,St.t,Be.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}[_nghost-%COMP%]{padding:16px 0}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.left-data[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.slider-left-padding[_ngcontent-%COMP%]{padding-top:2.5px;padding-bottom:2.5px}.isLtr[_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.dropdown-extra-padding[_ngcontent-%COMP%]{padding-top:2px;padding-bottom:2px}.header1[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.header2[_ngcontent-%COMP%]{margin-top:0;margin-bottom:4px}.isLtr[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-right:4px}html[dir=ltr][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:4px}.isRtl[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-left:4px}html[dir=rtl][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:4px}"]})}}return rn})();var Yo=s(56784),Bs=s(60990),Va=s(40514);const La=(rn,Di,Te,Jt)=>({"clipboard-title":rn,"font-sub2 nv-lable":Di,"font-body1 font-color-primary clipboard-title-font":Te,"font-body-largefont0 font-primary-color-enlargefont":Jt}),qs=rn=>({"side-padding font-body1 font-color-primary":rn}),ks=rn=>({"icon-padding side-padding":rn}),ea=rn=>({shortcutKey:rn});function ts(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"nv-item-button",9),i.bIt("clicked",function(){i.eBV(Te);const Rt=i.XpG(2);return i.Njj(Rt.openURL(Rt.learnMoreUrl))}),i.k0s()}}function $a(rn,Di){1&rn&&i.nrm(0,"nv-divider")}function va(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"div")(1,"div",3)(2,"div",4)(3,"div",5),i.EFF(4),i.nI1(5,"translate"),i.k0s(),i.nrm(6,"div",6),i.nI1(7,"translate"),i.k0s(),i.j41(8,"mat-slide-toggle",7),i.mxI("ngModelChange",function(Rt){i.eBV(Te);const ei=i.XpG();return i.DH7(ei.isClipboardPasteOn,Rt)||(ei.isClipboardPasteOn=Rt),i.Njj(Rt)}),i.bIt("change",function(){i.eBV(Te);const Rt=i.XpG();return i.Njj(Rt.onSettingsChanged())}),i.k0s()(),i.DNE(9,ts,1,0,"nv-item-button",8)(10,$a,1,0,"nv-divider",1),i.k0s()}if(2&rn){const Te=i.XpG();i.R7$(),i.AVh("side-padding",!Te.tvMode),i.R7$(2),i.Y8G("ngClass",i.ziG(19,La,!Te.tvMode,Te.tvMode,!Te.tvMode&&!Te.enlargeFontMode,!Te.tvMode&&Te.enlargeFontMode)),i.R7$(),i.SpI(" ",i.bMT(5,14,"clipboardPaste.title")," "),i.R7$(2),i.AVh("font-body2",!Te.tvMode&&!Te.enlargeFontMode)("font-body-largefont1",!Te.tvMode&&Te.enlargeFontMode)("description-padding",!Te.tvMode),i.Y8G("innerHtml",i.i5U(7,16,Te.clipboardPasteDescription,Te.hotkey),i.npT),i.R7$(2),i.R50("ngModel",Te.isClipboardPasteOn),i.R7$(),i.Y8G("ngIf",!Te.learnMoreCustomizationNeeded),i.R7$(),i.Y8G("ngIf",Te.isKeyboardLayoutEnabled)}}function Mn(rn,Di){if(1&rn&&(i.qex(0),i.j41(1,"div",14),i.nrm(2,"mat-icon",15),i.k0s(),i.nrm(3,"span",16),i.nI1(4,"translate"),i.bVm()),2&rn){const Te=i.XpG(2);i.R7$(),i.AVh("nv-item-icon",Te.tvMode),i.Y8G("ngClass",i.eq3(7,ks,!Te.tvMode)),i.R7$(2),i.Y8G("innerHTML",i.i5U(4,4,Te.otherLayoutDescription,i.eq3(9,ea,Te.imeHotkeyCombo)),i.npT)}}function Tn(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"div",10)(1,"div",11),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.j41(4,"nv-dropdown",12),i.bIt("selectionChanged",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.onKBLayoutSelect(Rt))}),i.k0s(),i.j41(5,"div",13),i.DNE(6,Mn,5,11,"ng-container",1),i.k0s()()}if(2&rn){const Te=i.XpG();i.R7$(),i.Y8G("ngClass",i.eq3(13,qs,!Te.tvMode)),i.R7$(),i.SpI(" ",i.bMT(3,11,"settings.KeyboardLayout")," "),i.R7$(2),i.Y8G("isBackgroundColorReq",Te.tvMode)("selection",Te.kbLayoutSelection)("disabled",Te.kbLayoutDisabled)("input",Te.nvKeyboardLayouts)("dividerIndex",1)("maxHeight",350),i.R7$(),i.AVh("other-kb-layout",!Te.tvMode),i.R7$(),i.Y8G("ngIf",Te.isOtherKBLayoutSelected)}}let tn=(()=>{class rn extends r{constructor(Te,Jt,Rt,ei,tr,Ur,lo,wo,Lr,ns,Io,da,_a){super(Rt,ei,Ur,tr),this.loggingService=Te,this.bridgeService=Jt,this.keyboardLayoutService=lo,this.clipboardService=wo,this.settingsService=Lr,this.oscDisplayService=ns,this.appConfig=Io,this.localeService=da,this.featureSupportService=_a,this.kbLayoutDisabled=!1,this.isOtherKBLayoutSelected=!1,this.nvPlaceholderIndex=-1,this.isPlatformBrowser=v.zk.isBrowserPlatform(),this.learnMoreUrl="",this.learnMoreCustomizationNeeded=!1,this.hotkey={},this.tvMode=!1,this.enlargeFontMode=!1,this.isKeyboardLayoutEnabled=!0,this.deviceType="",super.bar("settings.System"),this.logger=this.loggingService.getLogger("System"),this.logger.info("Constructor"),this.myRoute=ei,this.clipboardConfig=this.appConfig?.client?.clipboardConfig,this.isClipboardPasteEnable=!!this.clipboardConfig?.isClipboardEnabled,this.hotkey={pasteHotkey:this.clipboardConfig?.hotkey},this.tvMode=this.featureSupportService.isTVMode(),this.enlargeFontMode=this.featureSupportService.enlargeIGOTextFont()}ngOnInit(){super.ngOnInit(),this.settingsService.getClientPlatform().pipe((0,X.s)(1)).subscribe(Rt=>{this.isKeyboardLayoutEnabled=this.keyboardLayoutService.getKeyboardLayoutEnabled(Rt),this.logger.info("Keyboard layout enabled check",this.isKeyboardLayoutEnabled,Rt)}),this.learnMoreCustomizationNeeded=this.featureSupportService.isGuestAppFlowWrapper(),this.otherLayoutDescription="settings.keyboardLayout.otherLayoutDescription",this.keyboardLayoutService.fetchClientIMEHotkeys.pipe((0,P.Q)(this.destroy$)).subscribe(Rt=>{this.imeHotkeyCombo=`<b> ${Rt} </b>`}),this.keyboardLayoutService.readCachedKeyboardLayout().pipe((0,P.Q)(this.destroy$)).subscribe(Rt=>this.onKBLayoutChange(Rt)),this.initialize(),this.logger.info("Clipboard paste enable: ",this.isClipboardPasteEnable),this.settingsService.getSettingsData().pipe((0,X.s)(1),(0,P.Q)(this.destroy$)).subscribe(Rt=>{this.isClipboardPasteOn=Rt?.clipboardPaste||!1,this.clipboardPasteDescription=this.getClipboardPasteDescription(this.isClipboardPasteOn,this.learnMoreCustomizationNeeded?"guestApp.":"")});const Te=this.appConfig.redirect.serverUrl,Jt=H.niw.GFN_PC_HELP_PASTE;this.localeService.localeChanged.pipe((0,P.Q)(this.destroy$)).subscribe(Rt=>{this.learnMoreUrl=`${Te}${Rt}&page=${Jt}`},Rt=>{this.logger.error("Locale info errored out",Rt)})}getClipboardPasteDescription(Te,Jt=""){return"gamepad"===this.clipboardConfig?.clipboardHintStringType?Te?`clipboardPaste.${Jt}turnOffHMD`:`clipboardPaste.${Jt}turnOnHMD`:Te?`clipboardPaste.${Jt}turnOff`:`clipboardPaste.${Jt}turnOn`}openURL(Te){this.logger.info("Open URL: ",Te),this.oscDisplayService.closeOSC(),this.bridgeService.executeCommand(re.Ts.Common.Windowcontrol.Minimize).pipe((0,P.Q)(this.destroy$)).subscribe(),window.open(Te)}initialize(){this.keyboardLayoutService.getKeyboardLayoutsList().pipe((0,P.Q)(this.destroy$)).subscribe(Te=>{this.keyboardLayouts=Te,this.setDataForNvDropdown(),this.isPlatformBrowser?this.addPlaceholderOption(this.keyboardLayoutService.getBrowserPlaceholder()):this.initializeNativePlaceholder(),this.initializeSelectionFromCache()},Te=>{this.logger.info("Error getting the list of keyboard layouts : ",Te)})}onSettingsChanged(){this.clipboardPasteDescription=this.getClipboardPasteDescription(this.isClipboardPasteOn,this.learnMoreCustomizationNeeded?"guestApp.":""),this.isClipboardPasteOn?this.clipboardService.detectClipboardChange?.next(!0):this.clipboardService.sendClientDataAvailable(!1).pipe((0,X.s)(1)).subscribe(),this.saveClipboardConfigToSharedStorage(this.isClipboardPasteOn)}saveClipboardConfigToSharedStorage(Te){this.settingsService.storeChangedSettings({settingType:H.oY8.ClipboardPaste,selectedOption:Te})}onKBLayoutChange(Te){this.logger.info("IGO Keyboard layout changed to: "+(Te?.code||"Auto/Default"));const Jt={};Te?.code?(Jt.kbLayout=Te.code,Jt.allowKeyboardLayoutChange=!1):v.zk.isBrowserPlatform()?Jt.kbLayout=this.keyboardLayoutService.getDefaultKBLayoutCode():(Jt.kbLayout="",Jt.allowKeyboardLayoutChange=!0),this.logger.info(`Params: kbLayout:${Jt.kbLayout}, allowKeyboardLayoutChange:${Jt.allowKeyboardLayoutChange}`),(0,zo.isEmpty)(Jt)||this.bridgeService.executeCommand(re.Ts.Gfn.Streaming.SetKeyboardLayout,Jt).pipe((0,P.Q)(this.destroy$)).subscribe(Rt=>{this.logger.info("Keyboard layout changed from IGO response: "+Rt)},Rt=>{this.logger.info("Some error while changing keyboard layout from IGO : "+Rt)})}onKBLayoutSelect(Te){if(this.logger.info("Keyboard layout changed from IGO selectedIndex: "+Te),Te>=0){const Jt=this.nvKeyboardLayouts.filter((Rt,ei)=>ei===Te)[0];if(this.logger.info("selectedVal: "+Jt),Jt){const Rt=this.getKeyboardLayoutByName(Jt);this.logger.info("selectedKeyboardLayout: "+Rt),this.selectKeyboardLayout(Rt)}}}addPlaceholderOption(Te){if(this.logger.info("adding Auto/Default option: "+Te),Te)if(-1!==this.nvPlaceholderIndex&&this.nvKeyboardLayouts[this.nvPlaceholderIndex]){const Jt=this.nvKeyboardLayouts.slice();Jt[this.nvPlaceholderIndex]=Te,this.nvKeyboardLayouts=Jt.slice()}else this.nvKeyboardLayouts=[Te,...this.nvKeyboardLayouts],this.nvPlaceholderIndex=0,this.kbLayoutSelection>0&&this.kbLayoutSelection++}getKeyboardLayoutByName(Te){return this.keyboardLayouts?.filter(Jt=>Jt.name===Te)[0]}setDataForNvDropdown(){const Te=this.keyboardLayouts;Te&&Te.length>0&&(this.nvKeyboardLayouts=Te.map(Jt=>Jt.name))}setKBLayoutSelection(Te){Te?.name?(this.logger.info(`Selecting ${Te.name} option in nv-dropdown.`),this.kbLayoutSelection=this.nvKeyboardLayouts.indexOf(Te.name)):Te||(this.logger.info("Selecting Auto/Default option in nv-dropdown."),this.nvPlaceholderIndex>=0&&(this.kbLayoutSelection=this.nvPlaceholderIndex))}selectKeyboardLayout(Te){this.logger.info("Keyboard layout override event triggered"),this.keyboardLayoutService.selectKeyboardLayout(Te,this.previousKeyboardLayout,this.detectedKeyboardLayout),Te?(this.setOtherKBLayoutFlag(Te.params?.isOtherLayout),this.previousKeyboardLayout=Te):v.zk.isBrowserPlatform()?(this.setOtherKBLayoutFlag(this.keyboardLayoutService.isOtherDefaultLayout),this.previousKeyboardLayout=this.keyboardLayoutService.getDefaultKBLayout(),this.logger.info(`Default (${this.previousKeyboardLayout?.name}) ${this.previousKeyboardLayout?.code} keyboard layout selected.`)):(this.previousKeyboardLayout=this.detectedKeyboardLayout,this.logger.info("Auto keyboard layout selected."),this.keyboardLayoutService.isAutoOtherKBLayout(this.keyboardLayouts).pipe((0,P.Q)(this.destroy$)).subscribe(Jt=>{this.setOtherKBLayoutFlag(Jt)})),this.setKBLayoutSelection(Te)}initializeNativePlaceholder(){this.keyboardLayoutService.onKBLayoutChange$.pipe((0,P.Q)(this.destroy$)).subscribe(Te=>{this.logger.info("Detected Keyboard Layout from OS: ",Te),this.detectedKeyboardLayout=this.keyboardLayouts.find(Jt=>Jt.code===Te&&!Jt.params?.isOtherLayout),this.logger.info("detectedKeyboardLayout: ",this.detectedKeyboardLayout),null!=this.detectedKeyboardLayout?this.addPlaceholderOption(this.keyboardLayoutService.getNativePlaceholder(this.detectedKeyboardLayout)):(this.addPlaceholderOption(this.keyboardLayoutService.getNativePlaceholder(null)),this.detectedKeyboardLayout={name:"",code:Te}),this.previousKeyboardLayout=this.detectedKeyboardLayout},Te=>{this.logger.info("Failed to detect Keyboard Layout from OS. Defaulting to fallback placeholder.",Te),this.addPlaceholderOption(this.keyboardLayoutService.getNativePlaceholder(this.detectedKeyboardLayout))})}setOtherKBLayoutFlag(Te){this.isOtherKBLayoutSelected=Te}initializeSelectionFromCache(){this.keyboardLayoutService.readCachedKeyboardLayout().pipe((0,X.s)(1)).subscribe(Te=>{let Jt;if(this.logger.info("Keyboard layout cache read response : ",Te),Te&&Object.keys(Te).length>0){const Rt=Te.params?.isOtherLayout;this.setOtherKBLayoutFlag(Rt),Jt=this.keyboardLayouts.find(Rt?ei=>ei.code===Te.code&&ei.params?.isOtherLayout:ei=>ei.code===Te.code&&!ei.params?.isOtherLayout),Jt?this.previousKeyboardLayout=Jt:this.isPlatformBrowser?(this.setOtherKBLayoutFlag(this.keyboardLayoutService.isOtherDefaultLayout),this.logger.info(`Browser Platform - cached ${Te.code} keyboardLayout not found in keyboardLayouts list. Applying Default keyboard layout.`),this.keyboardLayoutService.removeCachedKeyboardLayout().pipe((0,P.Q)(this.destroy$)).subscribe(ei=>this.logger.info("Keyboard layout cache cleared : ",ei),ei=>this.logger.info("Keyboard layout cache clear failed : ",ei)),this.previousKeyboardLayout=this.keyboardLayoutService.getDefaultKBLayout()):this.previousKeyboardLayout=this.detectedKeyboardLayout}else this.isPlatformBrowser?(this.setOtherKBLayoutFlag(this.keyboardLayoutService.isOtherDefaultLayout),this.logger.info("Browser Platform detected with empty cache."),this.previousKeyboardLayout=this.keyboardLayoutService.getDefaultKBLayout()):this.keyboardLayoutService.isAutoOtherKBLayout(this.keyboardLayouts).pipe((0,P.Q)(this.destroy$)).subscribe(Rt=>{this.setOtherKBLayoutFlag(Rt)});this.setKBLayoutSelection(Jt)},Te=>this.logger.info("Keyboard layout cache read error : ",Te))}static{this.\u0275fac=function(Jt){return new(Jt||rn)(i.rXU(v.J6),i.rXU(v.NZ),i.rXU(f.o_p),i.rXU(l.nX),i.rXU(f.eo6),i.rXU(f.gZv),i.rXU(Yo.Fw),i.rXU(H.WWE),i.rXU(H.h$Q),i.rXU(f.Bqk),i.rXU(H.Vk6),i.rXU(v.iH),i.rXU(f.Rvq))}}static{this.\u0275cmp=i.VBU({type:rn,selectors:[["igo-system"]],features:[i.Vt3],decls:3,vars:2,consts:[["fxLayout","column","fxFlex","",1,"settings-system","nv-hig"],[4,"ngIf"],["class","igo-keyboard-layout-container",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start",1,"clipboard-option-container"],["fxLayout","column"],[3,"ngClass"],[1,"clipboard-description",3,"innerHtml"],[1,"clipboard-toggle",3,"ngModelChange","change","ngModel"],["titleString","common.learnMore","urlIcon","launch",3,"clicked",4,"ngIf"],["titleString","common.learnMore","urlIcon","launch",3,"clicked"],[1,"igo-keyboard-layout-container"],[1,"nv-label",3,"ngClass"],[3,"selectionChanged","isBackgroundColorReq","selection","disabled","input","dividerIndex","maxHeight"],["fxLayout","row",1,"settings-desc","nv-label"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","none",3,"ngClass"],["svgIcon","info",1,"icon-info"],[3,"innerHTML"]],template:function(Jt,Rt){1&Jt&&(i.j41(0,"div",0),i.DNE(1,va,11,24,"div",1)(2,Tn,7,15,"div",2),i.k0s()),2&Jt&&(i.R7$(),i.Y8G("ngIf",Rt.isClipboardPasteEnable),i.R7$(),i.Y8G("ngIf",Rt.isKeyboardLayoutEnabled))},dependencies:[n.YU,n.bT,a.$,ra.T,c.j,Pe.I,m.DJ,m.sA,m.UI,Qe.PW,se.BC,se.vS,ie.An,Ve.P2,Bs.r,Se.tG,Va.e,Be.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.clipboard-title[_ngcontent-%COMP%]{text-transform:uppercase}.learn-more[_ngcontent-%COMP%]{margin-top:16px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16x}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16x}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16x}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16x}.clipboard-title-font[_ngcontent-%COMP%]{color:#ffffffe6;padding-top:14px;padding-bottom:0}.settings-system[_ngcontent-%COMP%]{max-width:100%;padding:16px 0;overflow-y:overlay}.isLtr[_nghost-%COMP%] .settings-system[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-system[_ngcontent-%COMP%]{margin-right:-24px}html[dir=ltr][_ngcontent-%COMP%] .settings-system[_ngcontent-%COMP%]{--dummy4: 0;margin-right:-24px}.isRtl[_nghost-%COMP%] .settings-system[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-system[_ngcontent-%COMP%]{margin-left:-24px}html[dir=rtl][_ngcontent-%COMP%] .settings-system[_ngcontent-%COMP%]{--dummy4: 0;margin-left:-24px}.settings-system[_ngcontent-%COMP%] .mat-button[_ngcontent-%COMP%]{color:#ffffffb3}.clipboard-toggle[_ngcontent-%COMP%]{padding-top:10px}.isLtr[_nghost-%COMP%] .clipboard-toggle[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .clipboard-toggle[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .clipboard-toggle[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .clipboard-toggle[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .clipboard-toggle[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .clipboard-toggle[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.settings-desc[_ngcontent-%COMP%] .icon-info[_ngcontent-%COMP%]{color:#fff9!important}.clipboard-description[_ngcontent-%COMP%]{color:#fff9}.isLtr[_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .icon-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .icon-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.other-kb-layout[_ngcontent-%COMP%]{padding-top:14px;padding-bottom:14px}.description-padding[_ngcontent-%COMP%]{padding-bottom:14px}.nv-label[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 14px;--font-body-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .nv-label[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-label[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-label[_ngcontent-%COMP%]{--font-body-size: 28px;--font-body-line-height: 40px;--font-body-color: rgba(255, 255, 255, .85)}.tv-view[_nghost-%COMP%] .settings-system[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .settings-system[_ngcontent-%COMP%]{padding:32px}.tv-view[_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%]{margin-bottom:16px}.tv-view[_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 12px;--font-body-line-height: 16px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%]{--font-body-size: 24px;--font-body-line-height: 32px;--font-body-color: rgba(255, 255, 255, .85)}.tv-view[_nghost-%COMP%] div.nv-label[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.nv-label[_ngcontent-%COMP%]{--font-sub-shared-font-size: 14px;--font-sub-shared-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] div.nv-label[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.nv-label[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] div.nv-label[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] div.nv-label[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.nv-label[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.nv-label[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.nv-label[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.nv-label[_ngcontent-%COMP%]{--font-sub-shared-font-size: 28px;--font-sub-shared-line-height: 40px}"]})}}return rn})();var In=s(31315),Ai=s(83915),So=s(2688);const Rn=(rn,Di)=>({"font-sub2":rn,"font-sub-largefont1":Di}),Xn=(rn,Di)=>({"font-body1":rn,"font-body-largefont0":Di}),ae=(rn,Di)=>({"font-body2 profile-description-font":rn,"font-body-largefont1 profile-description-font":Di}),st=(rn,Di,Te)=>({"font-color-primary":rn,"font-body1":Di,"font-body-largefont0":Te}),Ct=(rn,Di)=>({"profile-description-font font-sub2":rn,"profile-description-font font-sub-largefont1":Di}),$n=rn=>({arg:rn}),Gi=rn=>({"standard-holder24 standard-holder24-margin":rn}),Sr=(rn,Di,Te)=>({"font-color-secondary":rn,"profile-description-font font-body2":Di,"profile-description-font font-body-largefont1":Te}),Wr=(rn,Di)=>({"toggle-padding header3":rn,"toggle-padding-top":Di}),ao=(rn,Di,Te)=>({"font-color-tertiary header4":rn,"font-color-tertiary setting-subname-padding-bottom":Di,"font-body-largefont1 setting-subname-padding-bottom":Te}),Ir=(rn,Di,Te)=>({"font-color-tertiary slider-text":rn,"slider-value-text font-sub2":Di,"slider-value-text font-sub-largefont1":Te}),Cr=rn=>({bitRateValue:rn}),Po=rn=>({bitDepth:rn}),Ki=rn=>({"font-sub3":rn});function el(rn,Di){if(1&rn&&(i.j41(0,"span",25),i.EFF(1),i.k0s()),2&rn){const Te=i.XpG();i.Y8G("ngClass",i.l_i(2,Ct,!Te.tvMode&&!Te.enlargeFontMode,!Te.tvMode&&Te.enlargeFontMode)),i.R7$(),i.JRh(Te.bitRateString)}}function ca(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"mat-slide-toggle",26),i.mxI("ngModelChange",function(Rt){i.eBV(Te);const ei=i.XpG();return i.DH7(ei.enableBitRateSlider,Rt)||(ei.enableBitRateSlider=Rt),i.Njj(Rt)}),i.bIt("change",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.maxBitRateToggleEvent(Rt))}),i.k0s()}if(2&rn){const Te=i.XpG();i.Y8G("ngClass",i.l_i(2,Wr,Te.tvMode,!Te.tvMode)),i.R50("ngModel",Te.enableBitRateSlider)}}function Zo(rn,Di){if(1&rn&&(i.j41(0,"div",27),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn){const Te=i.XpG();i.Y8G("ngClass",i.sMw(4,ao,Te.tvMode,!Te.tvMode&&!Te.enlargeFontMode,!Te.tvMode&&Te.enlargeFontMode)),i.R7$(),i.SpI(" ",i.bMT(2,2,"settings.gameplay.MaxBitRateHelp")," ")}}function Ha(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"div",28)(1,"div",29)(2,"nv-hig-slider",30),i.mxI("valueChange",function(Rt){i.eBV(Te);const ei=i.XpG();return i.DH7(ei.bitRate,Rt)||(ei.bitRate=Rt),i.Njj(Rt)}),i.bIt("input",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.onBitRateSliderChanged(Rt))}),i.k0s()(),i.j41(3,"span",31),i.EFF(4),i.nI1(5,"translate"),i.k0s()()}if(2&rn){const Te=i.XpG();i.AVh("slider_padding",Te.tvMode),i.R7$(2),i.AVh("slider-padding",!Te.tvMode),i.Y8G("min",Te.BitRateValues.bitRateMin)("max",Te.BitRateValues.bitRateMax),i.R50("value",Te.bitRate),i.Y8G("step",Te.bitRateStep),i.R7$(),i.Y8G("ngClass",i.sMw(13,Ir,Te.tvMode,!Te.tvMode&&!Te.enlargeFontMode,!Te.tvMode&&Te.enlargeFontMode)),i.R7$(),i.JRh(i.i5U(5,10,"settings.gameplay.bitRateValue",i.eq3(17,Cr,Te.bitRate)))}}function vo(rn,Di){if(1&rn&&(i.j41(0,"span",32),i.EFF(1),i.k0s()),2&rn){const Te=i.XpG();i.AVh("resolution-label-margin-top-steamdeck",!Te.tvMode&&Te.enlargeFontMode)("resolution-label-margin-top",!Te.tvMode&&!Te.enlargeFontMode),i.R7$(),i.JRh(Te.resolutionLabel)}}function ta(rn,Di){if(1&rn&&(i.j41(0,"div",35)(1,"span",36),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.j41(4,"div",7)(5,"span",37),i.EFF(6),i.nI1(7,"translate"),i.k0s()()()),2&rn){const Te=i.XpG(2);i.R7$(),i.AVh("font-body1",!Te.enlargeFontMode)("font-body-largefont0",Te.enlargeFontMode),i.R7$(),i.JRh(i.bMT(3,8,"settings.gameplay.VSync")),i.R7$(3),i.AVh("font-body-largefont1",Te.enlargeFontMode),i.R7$(),i.JRh(i.bMT(7,10,Te.vsyncString))}}function tl(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"div",38)(1,"nv-rotary",39),i.bIt("selectionChanged",function(Rt){i.eBV(Te);const ei=i.XpG(2);return i.Njj(ei.rotaryVSyncChanged(Rt))}),i.k0s()()}if(2&rn){const Te=i.XpG(2);i.R7$(),i.Y8G("input",Te.rotaryVSyncOptions)("initialState",Te.vSyncSelection)("disabled",Te.vsyncDisabled1||Te.vsyncDisabled2||Te.cloudGsyncDisablingVsync)}}function Ie(rn,Di){if(1&rn&&(i.j41(0,"div"),i.DNE(1,ta,8,12,"div",33)(2,tl,2,3,"div",34),i.k0s()),2&rn){const Te=i.XpG();i.R7$(),i.Y8G("ngIf",!Te.custom),i.R7$(),i.Y8G("ngIf",Te.custom)}}function Ei(rn,Di){if(1&rn&&(i.j41(0,"span",36),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn){const Te=i.XpG(2);i.AVh("font-body1",!Te.tvMode&&!Te.enlargeFontMode)("font-body-largefont0",!Te.tvMode&&Te.enlargeFontMode),i.R7$(),i.JRh(i.bMT(2,5,"settings.streamingProfiles.vrrDisplay"))}}function Ls(rn,Di){if(1&rn&&(i.j41(0,"span",36),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn){const Te=i.XpG(2);i.AVh("font-body1",!Te.tvMode&&!Te.enlargeFontMode)("font-body-largefont0",!Te.tvMode&&Te.enlargeFontMode),i.R7$(),i.JRh(i.bMT(2,5,"settings.streamingProfiles.vrrGsyncDisplay"))}}function Ns(rn,Di){if(1&rn&&(i.j41(0,"div",5),i.DNE(1,Ei,3,7,"span",40)(2,Ls,3,7,"span",40),i.j41(3,"div",7)(4,"span",41),i.EFF(5),i.nI1(6,"translate"),i.k0s()()()),2&rn){const Te=i.XpG();i.AVh("side-padding",!Te.tvMode),i.R7$(),i.Y8G("ngIf",!Te.isGsyncDisplay),i.R7$(),i.Y8G("ngIf",Te.isGsyncDisplay),i.R7$(2),i.AVh("font-body2",!Te.tvMode&&!Te.enlargeFontMode)("font-body-largefont1",!Te.tvMode&&Te.enlargeFontMode),i.R7$(),i.JRh(i.bMT(6,9,Te.cloudGsyncStatus))}}function Ps(rn,Di){if(1&rn&&(i.j41(0,"div",5)(1,"span",36),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.j41(4,"div",7)(5,"span",41),i.EFF(6),i.nI1(7,"translate"),i.k0s()()()),2&rn){const Te=i.XpG();i.AVh("side-padding",!Te.tvMode),i.R7$(),i.AVh("font-body1",!Te.tvMode&&!Te.enlargeFontMode)("font-body-largefont1",!Te.tvMode&&Te.enlargeFontMode),i.R7$(),i.JRh(i.bMT(3,12,"settings.streamingProfiles.reflex")),i.R7$(3),i.AVh("font-body2",!Te.tvMode&&!Te.enlargeFontMode)("font-body-largefont1",!Te.tvMode&&Te.enlargeFontMode),i.R7$(),i.JRh(i.bMT(7,14,Te.reflexStatus))}}function ja(rn,Di){if(1&rn&&(i.j41(0,"div",5)(1,"span",42),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.j41(4,"div",7)(5,"span",18),i.EFF(6),i.nI1(7,"translate"),i.k0s()()()),2&rn){const Te=i.XpG();i.AVh("side-padding",!Te.tvMode),i.R7$(),i.AVh("streaming-setting-name-font",!Te.tvMode)("font-color-primary",Te.tvMode)("font-body1",!Te.tvMode&&!Te.enlargeFontMode)("font-body-largefont0",!Te.tvMode&&Te.enlargeFontMode),i.R7$(),i.JRh(i.bMT(3,20,"settings.streamingProfiles.hdrStreaming")),i.R7$(2),i.AVh("font-color-secondary",Te.tvMode),i.R7$(),i.AVh("profile-description-font",!Te.tvMode)("font-body2",!Te.tvMode&&!Te.enlargeFontMode)("font-body-largefont1",!Te.tvMode&&Te.enlargeFontMode),i.R7$(),i.JRh(i.bMT(7,22,Te.hdrStatus))}}function Ja(rn,Di){if(1&rn&&(i.j41(0,"div",5)(1,"span",36),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.j41(4,"div",7)(5,"span",41),i.EFF(6),i.nI1(7,"translate"),i.k0s()()()),2&rn){const Te=i.XpG();i.AVh("side-padding",!Te.tvMode),i.R7$(),i.AVh("font-body1",!Te.enlargeFontMode)("font-body-largefont0",!Te.tvMode&&Te.enlargeFontMode),i.R7$(),i.JRh(i.bMT(3,12,"settings.streamingProfiles.colorPrecision")),i.R7$(3),i.AVh("font-body2",!Te.tvMode&&!Te.enlargeFontMode)("font-body-largefont1",!Te.tvMode&&Te.enlargeFontMode),i.R7$(),i.JRh(i.i5U(7,14,"settings.streamingProfiles.colorPrecisionValue",i.eq3(17,Po,Te.bitDepthValue)))}}function Wa(rn,Di){if(1&rn&&(i.j41(0,"span",19),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn){const Te=i.XpG(2);i.AVh("font-color-secondary",Te.tvMode)("font-body2",!Te.tvMode&&!Te.enlargeFontMode)("font-body-largefont1",!Te.tvMode&&Te.enlargeFontMode),i.R7$(),i.JRh(i.bMT(2,7,Te.drcString))}}function Ea(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"mat-slide-toggle",47),i.mxI("ngModelChange",function(Rt){i.eBV(Te);const ei=i.XpG(2);return i.DH7(ei.adjustPoorNetwork,Rt)||(ei.adjustPoorNetwork=Rt),i.Njj(Rt)}),i.bIt("change",function(Rt){i.eBV(Te);const ei=i.XpG(2);return i.Njj(ei.adjustPoorNetworkToggleEvent(Rt))}),i.k0s()}if(2&rn){const Te=i.XpG(2);i.R50("ngModel",Te.adjustPoorNetwork)}}function Ks(rn,Di){if(1&rn&&(i.j41(0,"div",43)(1,"div",44),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.DNE(4,Wa,3,9,"span",45)(5,Ea,1,1,"mat-slide-toggle",46),i.k0s()),2&rn){const Te=i.XpG();i.AVh("side-padding",!Te.tvMode),i.R7$(),i.AVh("streaming-setting-name-font",!Te.tvMode)("font-color-primary",Te.tvMode)("font-sub1",!Te.tvMode&&!Te.enlargeFontMode)("font-sub-largefont0",!Te.tvMode&&Te.enlargeFontMode),i.R7$(),i.SpI(" ",i.bMT(3,13,"settings.gameplay.AdjustPoorNetwork")," "),i.R7$(2),i.Y8G("ngIf",!Te.enableDrcSlider),i.R7$(),i.Y8G("ngIf",Te.enableDrcSlider)}}function na(rn,Di){if(1&rn&&(i.j41(0,"span",18),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn){const Te=i.XpG(2);i.AVh("profile-description-font",!Te.tvMode)("font-body2",!Te.tvMode&&!Te.enlargeFontMode)("font-body-largefont1",!Te.tvMode&&Te.enlargeFontMode),i.R7$(),i.JRh(i.bMT(2,7,Te.l4sStatus))}}function zi(rn,Di){if(1&rn&&(i.j41(0,"span",18),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn){const Te=i.XpG(2);i.AVh("profile-description-font",!Te.tvMode)("font-body2",!Te.tvMode&&!Te.enlargeFontMode)("font-body1",!Te.tvMode&&Te.enlargeFontMode),i.R7$(),i.JRh(i.bMT(2,7,"settings.streamingProfiles.l4sTipText"))}}function mr(rn,Di){if(1&rn&&(i.j41(0,"div",5)(1,"span",42),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.j41(4,"div",7),i.DNE(5,na,3,9,"span",48)(6,zi,3,9,"span",49),i.k0s()()),2&rn){const Te=i.XpG();i.AVh("side-padding",!Te.tvMode),i.R7$(),i.AVh("streaming-setting-name-font",!Te.tvMode)("font-color-primary",Te.tvMode)("font-body1",!Te.tvMode&&!Te.enlargeFontMode)("font-body-largefont0",!Te.tvMode&&Te.enlargeFontMode),i.R7$(),i.JRh(i.bMT(3,15,"settings.streamingProfiles.l4sSetting")),i.R7$(2),i.AVh("font-color-secondary",Te.tvMode),i.R7$(),i.Y8G("ngIf",!Te.showl4sTipText),i.R7$(),i.Y8G("ngIf",Te.showl4sTipText)}}function lr(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"nv-rotary",53),i.bIt("selectionChanged",function(Rt){i.eBV(Te);const ei=i.XpG(2);return i.Njj(ei.rotaryDetailEnhancementChanged(Rt,!0))}),i.k0s()}if(2&rn){const Te=i.XpG(2);i.Y8G("input",Te.detailEnhancementOptions)("initialState",Te.activeSharpnessSetting.id)}}function je(rn,Di){if(1&rn){const Te=i.RV6();i.j41(0,"div",50),i.nrm(1,"nv-divider"),i.j41(2,"span",2),i.EFF(3),i.nI1(4,"translate"),i.k0s(),i.j41(5,"nv-rotary",51),i.bIt("selectionChanged",function(Rt){i.eBV(Te);const ei=i.XpG();return i.Njj(ei.rotaryUpscaleModeChanged(Rt,!0))}),i.k0s(),i.DNE(6,lr,1,2,"nv-rotary",52),i.k0s()}if(2&rn){const Te=i.XpG();i.R7$(2),i.AVh("font-color-tertiary",Te.tvMode)("section-title-font",!Te.tvMode)("side-padding",!Te.tvMode),i.Y8G("ngClass",i.l_i(13,Rn,!Te.tvMode&&!Te.enlargeFontMode,!Te.tvMode&&Te.enlargeFontMode)),i.R7$(),i.JRh(i.bMT(4,11,"settings.gameplay.ResolutionUpscaling")),i.R7$(2),i.Y8G("input",Te.upscaleModeRotaryOptions)("initialState",Te.upscaleMode.id),i.R7$(),i.Y8G("ngIf",Te.showSharpnessEnhanced||Te.isAiSelected)}}function Ft(rn,Di){1&rn&&(i.j41(0,"span"),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn&&(i.R7$(),i.JRh(i.bMT(2,1,"commonLabels.On")))}function un(rn,Di){1&rn&&(i.j41(0,"span"),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn&&(i.R7$(),i.JRh(i.bMT(2,1,"commonLabels.Off")))}function wn(rn,Di){if(1&rn&&(i.j41(0,"span",60),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn){const Te=i.XpG(2);i.AVh("profile-description-font",!Te.tvMode)("font-color-tertiary",Te.tvMode)("font-body2",!Te.tvMode&&!Te.enlargeFontMode)("font-body-largefont1",!Te.tvMode&&Te.enlargeFontMode),i.R7$(),i.JRh(i.bMT(2,9,"settings.gameplay.IggsDescription"))}}function zn(rn,Di){if(1&rn&&(i.j41(0,"span",60),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&rn){const Te=i.XpG(2);i.AVh("profile-description-font",!Te.tvMode)("font-color-tertiary",Te.tvMode)("font-body2",!Te.tvMode&&!Te.enlargeFontMode)("font-body-largefont1",!Te.tvMode&&Te.enlargeFontMode),i.R7$(),i.JRh(i.bMT(2,9,"settings.gameplay.IggsDescriptionOff"))}}function vi(rn,Di){if(1&rn&&(i.j41(0,"div",54),i.nrm(1,"nv-divider",55),i.j41(2,"div",56)(3,"span",57),i.EFF(4),i.nI1(5,"translate"),i.k0s(),i.j41(6,"div",58),i.DNE(7,Ft,3,3,"span",20)(8,un,3,3,"span",20),i.k0s()(),i.DNE(9,wn,3,11,"span",59)(10,zn,3,11,"span",59),i.k0s()),2&rn){const Te=i.XpG();i.AVh("side-padding",!Te.tvMode),i.R7$(3),i.AVh("streaming-setting-name-font",!Te.tvMode)("font-color-primary",Te.tvMode)("font-body1",!Te.tvMode&&!Te.enlargeFontMode)("font-body-largefont0",!Te.tvMode&&Te.enlargeFontMode),i.R7$(),i.JRh(i.bMT(5,22,"settings.gameplay.InGameGraphicsSettings")),i.R7$(2),i.AVh("profile-description-font",!Te.tvMode)("font-body2",!Te.tvMode&&!Te.enlargeFontMode)("font-body-largefont1",!Te.tvMode&&Te.enlargeFontMode),i.Y8G("ngClass",i.eq3(24,Ki,Te.tvMode)),i.R7$(),i.Y8G("ngIf",Te.saveInGameGraphics),i.R7$(),i.Y8G("ngIf",!Te.saveInGameGraphics),i.R7$(),i.Y8G("ngIf",Te.saveInGameGraphics),i.R7$(),i.Y8G("ngIf",!Te.saveInGameGraphics)}}let Si=(()=>{class rn extends r{get bitRate(){return this._bitRate}set bitRate(Te){Te!==this._bitRate&&(this._bitRate=Te,this.logger.info("BitRate Slider value: ",Te),this.bitRateChange.emit(this._bitRate))}constructor(Te,Jt,Rt,ei,tr,Ur,lo,wo,Lr,ns,Io,da){super(Rt,ei,tr,null,Ur),this.injector=Te,this.loggingService=Jt,this.translateService=lo,this.bridgeService=wo,this.ecommerceService=Lr,this.telemetryHelperService=ns,this.resolutionUpscaleService=Io,this.featureSupportService=da,this.custom=!1,this.qualityHeader="",this.qualityHelper="",this.gbPerHour=0,this.enableBitRateSlider=!1,this.hideBitRateSlider=!1,this.bitRateString="",this.bitRateStep=1,this.resolution="",this.resolutionLabel="",this.frameRate="",this.adjustPoorNetwork=void 0,this.vsyncString="",this.vSyncSelection=0,this.rotaryVSyncOptions=[],this.rotaryVSyncOptionsVal=[],this.vsyncDisabled1=!1,this.vsyncDisabled2=!1,this.cloudGsyncDisablingVsync=!1,this.showVsync=!0,this.showDrc=!0,this.hdrStatus="",this.showReflex=!1,this.reflexStatus="",this.showCloudGsync=!1,this.cloudGsyncStatus="",this.isCloudGsyncEnabled=!1,this.isGsyncDisplay=!1,this.l4sStatus="",this.showl4sTipText=!1,this.showBitDepth=!1,this.showInGameGraphicsSection=!1,this.upscalingShow=!1,this.showSharpnessEnhanced=!1,this.isAiSelected=!1,this.upscaleFilters=[],this.upscaleModeRotaryOptions=[],this.telemetryUpscalingData={upscaleMode:0,detailEnhancement:0},this.telemetryUpscalingDataUponEntry={upscaleMode:0,detailEnhancement:0},this.detailEnhancementOptions=[],this.sharpnessTurnedOff=!1,this.enableDrcSlider=!1,this.drcString="commonLabels.On",this.tvMode=!1,this.bitRateChange=new i.bkB,this._bitRate=0,this.maxBitRateFont="",super.bar("settings.Gameplay"),this.logger=this.loggingService.getLogger("Gameplay"),this.showDrc=this.featureSupportService.isRunTimeAdjustPoorNetworkToggleSupported(),this.showVsync=this.featureSupportService.isRunTimeVSYNCConfigSupported(),this.tvMode=this.featureSupportService.isTVMode(),this.enlargeFontMode=this.featureSupportService.enlargeIGOTextFont()}ngOnInit(){super.ngOnInit(),this.streamingProfileService=this.injector.get(H.xfC),this.settingsService=this.injector.get(H.h$Q),(0,In.zV)([this.ecommerceService.getUserMembership(),this.streamingProfileService.initializeStreamingProfiles$()]).pipe((0,P.Q)(this.destroy$)).subscribe(([Te,Jt])=>{this.ecommerceService.isFeatureAvailableToUser(H.N1D.IN_GAME_SETTINGS_PERSISTENCE_ENABLED,H.q3U.SUPPORT_IN_GAME_SETTINGS_PERSISTENCE)&&this.detectInGameGraphics(Te),this.showHDR=this.gfnInfoService.isUserHDREntitled(),this.getSettingsData(),this.BitRateValues=this.streamingProfileService.getBitRateValues()}),this.isHdrUpsell=this.ecommerceService.featureUpsellAvailable(H.q3U.SUPPORT_HDR)}ngOnDestroy(){this.streamingQualityCheckExitTelemetry(),this.resolutionUpscalingCheckExitTelemetry(),super.ngOnDestroy()}getMaxBitRateFont(){this.tvMode?this.maxBitRateFont+=this.hideBitRateSlider?" left-data":" header_max_bit":(this.custom&&!this.enableBitRateSlider&&!this.hideBitRateSlider||(this.maxBitRateFont+=" streaming-setting-name-padding"),this.custom&&!this.enableBitRateSlider&&!this.hideBitRateSlider&&(this.maxBitRateFont+=" setting-name-padding-top"),this.maxBitRateFont+=this.enlargeFontMode?" font-body-largefont0":" font-body1")}getSettingsData(){(0,In.zV)([this.settingsService.getSettingsData(),this.streamingProfileService.getStreamingProfile(),this.gfnInfoService.isIgssEnabledInConfig(),this.streamingProfileService.readCustomProfileData()]).pipe((0,P.Q)(this.destroy$)).subscribe(([Te,Jt,Rt,ei])=>{this.logger.info("Shared Settings: ",Te),this.logger.info("Current Profile: ",Jt);const tr={...Jt};tr.maxBitrate/=1e3,this.gameLaunchedWithL4S=tr?.l4sEnabled,this.selectedProfile=(0,zo.isNil)(Te.streamingProfiles)?H.SBM.Balanced:Te.streamingProfiles,this.selectedProfile!==H.SBM.Custom?(this.custom=!1,this.presetProfileData=tr,this.logger.info("Preset Profile Data: ",this.presetProfileData),this.streamingProfileService.calculateDataUsage(this.presetProfileData.width,this.presetProfileData.height,this.presetProfileData.fps,this.presetProfileData.maxBitrate).subscribe(Ur=>{this.presetProfileData.dataUsage=Ur,this.processPresetData()}),this.telemetryHelperService.sendGameplayEntrySetting(this.selectedProfile),this.queryUpscalingFilters(Te.upScalingResolutionId,Te.aiSharpnessValue)):(this.custom=!0,this.presetProfileData=null,this.isIgssEnabled=Rt,this.getCustomData(ei??tr),this.telemetryHelperService.sendGameplayEntrySetting(this.selectedProfile),this.queryUpscalingFilters(Te.upScalingResolutionId,Te.aiSharpnessValue)),this.getMaxBitRateFont()})}processPresetData(){this.selectedProfile===H.SBM.Balanced?(this.qualityHeader="settings.gameplay.Balanced",this.qualityHelper="settings.gameplay.BalancedHelp",this.vsyncString="settings.gameplay.Adaptive",this.translateService.get("commonLabels.Auto").subscribe(Rt=>{this.bitRateString=Rt})):this.selectedProfile===H.SBM.DataSaver?(this.qualityHeader="settings.gameplay.DataSaver",this.qualityHelper="settings.gameplay.DataSaverHelp",this.vsyncString="settings.gameplay.Adaptive",this.translateService.get("settings.gameplay.bitRateValue",{bitRateValue:this.presetProfileData.maxBitrate}).subscribe(Rt=>{this.bitRateString=Rt})):this.selectedProfile===H.SBM.Competitive&&(this.qualityHeader="settings.gameplay.Competitive",this.qualityHelper="settings.gameplay.CompetitiveHelp",this.vsyncString="commonLabels.Off",this.translateService.get("commonLabels.Auto").subscribe(Rt=>{this.bitRateString=Rt})),this.gbPerHour=this.presetProfileData.dataUsage;const Te=this.getResolution(this.presetProfileData.width,this.presetProfileData.height);this.setResolution(Te),this.frameRate=this.presetProfileData.fps.toString(),this.hdrStatus=this.streamingProfileService.getHdrLabel(this.presetProfileData),this.checkifCloudGsyncEnabled(this.presetProfileData.cloudGsync),this.checkifReflexEnabled(this.presetProfileData.reflex),this.checkifL4SEnabled(this.presetProfileData.l4sEnabled),this.checkIfBitDepthEnabled(this.presetProfileData.bitDepth)}getCustomData(Te){this.customData=Te,this.logger.info("Custom Data: ",this.customData),this.customDataUponEntry=(0,zo.cloneDeep)(this.customData),this.processCustomData()}storeCustomProfileData(){return this.logger.info("StoreCustomProfileData: ",this.customData),this.streamingProfileService.storeCustomProfileData(this.customData).pipe((0,go.M)(Te=>Te))}updateDataUsage(){return this.streamingProfileService.calculateDataUsage(this.customData.width,this.customData.height,this.customData.fps,this.customData.maxBitrateAuto?0:this.customData.maxBitrate).pipe((0,P.Q)(this.destroy$),(0,Zr.ZZ)(Te=>(this.customData.dataUsage=Te,this.gbPerHour=this.customData.dataUsage,this.storeCustomProfileData().pipe((0,X.s)(1),(0,go.M)(()=>this.logger.info("Custom profile data stored successfully")),(0,Go.W)(Jt=>(this.logger.error("Error storing custom profile data: ",Jt),(0,Xr.of)(!1)))))))}storeVSyncInStreamerConfig(Te){this.settingsService.setVsyncValue(Te)}getResolution(Te,Jt){const ei={width:Te,height:Jt,ratio:this.streamingProfileService.calculateAspectRatio(Te,Jt),enabled:!0};return this.resolutionLabel=this.streamingProfileService.getResolutionBadgeText(Te,Jt),ei}setResolution(Te){this.translateService.get("settings.gameplay.ResView",{resWidth:Te.width,resHeight:Te.height,aspectRatio:Te.ratio}).subscribe(Jt=>{this.resolution=Jt}),this.logger.info("Resolution String: ",this.resolution)}onCustomProfileFieldChange(Te){let Jt=!0;switch(Te){case H.M0g.maxBitrateValue:Jt=!1,this.streamingProfileService.getAutoMaxBitrateValue(this.customData.width,this.customData.height,this.customData.fps).pipe((0,P.Q)(this.destroy$),(0,Zr.ZZ)(Rt=>(this.customData.maxBitrate=Rt,this.bitRate=this.customData.maxBitrate,this.customData.maxBitrateAuto?this.bridgeService.executeCommand(re.Ts.Gfn.Streaming.SetStreamingMaxBitrate,{streamIdx:0,kbps:1e3*this.customData.maxBitrate}):(0,Xr.of)(!0))),(0,Zr.ZZ)(()=>(this.customData.maxBitrateAuto&&(this.customData.maxBitrate=0,this.bitRate=0),this.updateDataUsage()))).subscribe();break;case H.M0g.vSync:this.storeVSyncInStreamerConfig(this.customData.vSync);break;case H.M0g.drc:this.gfnInfoService.drcToggleStatus=this.customData.drc,this.gameLaunchedWithL4S&&(this.showl4sTipText=!this.customData.drc,this.logger.info("Updating L4s state on drc toggle",this.customData.drc),this.bridgeService.executeCommand(re.Ts.Gfn.Streaming.SetStreamingL4sState,{streamIdx:0,enabled:this.customData.drc}).subscribe(()=>this.logger.info("Updated L4s state on drc toggle"),ei=>this.logger.error("Failed to set L4s state on drc toggle",ei)))}Jt&&this.updateDataUsage().pipe((0,P.Q)(this.destroy$)).subscribe()}intializeRotaryVsyncOption(){this.vsyncString="commonLabels.Off",this.streamingProfileService.getSupportedVsyncList$().pipe((0,P.Q)(this.destroy$)).subscribe(Te=>{this.logger.info("vsynclist before sorting is ",Te),Te?.sort(function(Jt,Rt){const ei=Jt.value,tr=Rt.value;return ei<tr?-1:ei>tr?1:0}),this.logger.info("vsynclist after sorting is ",Te);for(const Jt of Te)this.rotaryVSyncOptions.push(Jt.displayName),this.rotaryVSyncOptionsVal.push(Jt.value);this.vSyncSelection=this.rotaryVSyncOptionsVal.findIndex(Jt=>Jt===this.customData.vSync),this.logger.info("Final compiled Vsync list is ",this.vSyncSelection,this.rotaryVSyncOptions,this.rotaryVSyncOptionsVal)})}processCustomData(){this.qualityHeader="settings.gameplay.Custom",this.qualityHelper="settings.gameplay.CustomHelp",this.gbPerHour=this.customData.dataUsage,this.bitRate=this.customData.maxBitrate;const Te=this.getResolution(this.customData.width,this.customData.height);this.setResolution(Te);const Jt=this.customData.fps;this.frameRate=Jt.toString(),this.featureSupportService.isRunTimeMaxBitRateConfigSupported()&&this.isIgssEnabled?this.enableBitRateSlider=!this.customData.maxBitrateAuto&&!this.hideBitRateSlider:(this.hideBitRateSlider=!0,0===this.bitRate&&this.translateService.get("commonLabels.Auto").subscribe(Rt=>this.bitRateString=Rt)),this.showVsync&&(this.bridgeService.executeCommand(re.Ts.Gfn.Streaming.VsyncToggle).pipe((0,P.Q)(this.destroy$)).subscribe(Rt=>{this.vsyncDisabled1=!Rt,this.logger.info("VsyncDisabled1 is: ",this.vsyncDisabled1)},Rt=>{this.logger.error("vSyncToggle failed: "+Rt)}),(0,In.zV)([this.bridgeService.executeCommand(re.Ts.Gfn.Streaming.GetDisplayMode),this.bridgeService.executeCommand(re.Ts.Gfn.Streaming.GetVSyncAutoDisableThresholdStreamingFPS),this.bridgeService.executeCommand(re.Ts.Gfn.Streaming.GetVSyncAutoDisableThresholdDisplayHz)]).pipe((0,P.Q)(this.destroy$)).subscribe(([Rt,ei,tr])=>{this.logger.info("GetVSyncAutoDisableThresholdStreamingFPS: ",ei),this.logger.info("GetVSyncAutoDisableThresholdDisplayHz: ",tr),this.logger.info("RefreshRate: ",Rt.logical.refreshRate),this.vsyncDisabled2=Jt===ei&&Rt.logical.refreshRate<tr,this.logger.info("VsyncDisabled2 is: ",this.vsyncDisabled2)}),this.intializeRotaryVsyncOption()),this.showDrc&&(this.isIgssEnabled?(this.enableDrcSlider=!0,this.adjustPoorNetwork=this.customData.drc):this.drcString=this.customData.drc?"commonLabels.On":"commonLabels.Off"),this.hideBitRateSlider&&0!==this.bitRate&&this.translateService.get("settings.gameplay.bitRateValue",{bitRateValue:this.bitRate}).subscribe(Rt=>{this.bitRateString=Rt}),this.hdrStatus=this.streamingProfileService.getHdrLabel(this.customData),this.checkifCloudGsyncEnabled(this.customData.cloudGsync),this.cloudGsyncDisablingVsync=!!this.customData.cloudGsync,this.checkifReflexEnabled(this.customData.reflex),this.checkifL4SEnabled(this.gameLaunchedWithL4S,!0),this.checkIfBitDepthEnabled(this.customData.bitDepth)}queryUpscalingFilters(Te,Jt){this.upscaleFilters=[H.DNU.STANDARD,H.DNU.ENHANCED],(0,In.zV)([this.resolutionUpscaleService.getUpscalingVisibility(),this.resolutionUpscaleService.getAiSupport(),this.resolutionUpscaleService.getUpScaleDisplaySetting(),this.resolutionUpscaleService.getAiSharpnessSetting(),this.resolutionUpscaleService.getEnhSharpnessSetting()]).pipe((0,X.s)(1),(0,P.Q)(this.destroy$)).subscribe(([Rt,ei,tr,Ur,lo])=>{if(this.upscaleModeRotaryOptions=[],this.detailEnhancementOptions=[],tr){switch(this.upscalingShow=Rt,this.upscaleMode=tr,this.aiSharpnessId=Ur?.id,this.enhancedSharpnessId=lo?.id,ei?.isAiSupported&&this.upscaleFilters.push(H.DNU.AI_ENHANCED),this.upscaleModeRotaryOptions=this.upscaleFilters.map(Lr=>Lr.displayName),this.telemetryUpscalingData.upscaleMode=this.upscaleModeRotaryOptions.findIndex(Lr=>Lr===this.upscaleMode.displayName),this.detailEnhancementOptions=[],H.SCF.getSharpnessList().forEach(Lr=>{this.detailEnhancementOptions.push(Lr.label)}),this.upscaleMode.id){case H.DNU.AI_ENHANCED.id:this.telemetryUpscalingData.detailEnhancement=this.aiSharpnessId,this.activeSharpnessSetting=H.SCF.getSharpnessbyId(this.aiSharpnessId);break;case H.DNU.ENHANCED.id:case H.DNU.NV_SCALER.id:case H.DNU.NV_SHARP.id:this.telemetryUpscalingData.detailEnhancement=this.enhancedSharpnessId,this.activeSharpnessSetting=H.SCF.getSharpnessbyId(this.enhancedSharpnessId)}this.telemetryUpscalingDataUponEntry=(0,zo.cloneDeep)(this.telemetryUpscalingData),this.rotaryUpscaleModeChanged(this.upscaleMode.id,!1)}else this.upscalingShow=!1},Rt=>{this.logger.error("Failed to get resolution upscale information ",Rt)})}maxBitRateToggleEvent(Te){this.logger.info("Max Bit Rate changed: ",Te.checked),this.customData.maxBitrateAuto=!Te.checked,this.onCustomProfileFieldChange(H.M0g.maxBitrateValue)}onBitRateSliderChanged(Te){Te.value!==this.customData.maxBitrate&&(this.logger.info("BitRate slider changed to: ",Te.value),this.customData.maxBitrate=this.bitRate=Te.value,this.bridgeService.executeCommand(re.Ts.Gfn.Streaming.SetStreamingMaxBitrate,{streamIdx:0,kbps:1e3*Te.value}).pipe((0,P.Q)(this.destroy$)).subscribe(()=>{this.logger.info("Set Max BitRate: ",this.customData.maxBitrate),this.onCustomProfileFieldChange()},ei=>{this.logger.error("Failed to change Max Bitrate : "+ei)}))}rotaryVSyncChanged(Te){this.logger.info("VSync Rotary changed: ",this.rotaryVSyncOptions[Te]);const Jt=this.vSyncSelection;this.vSyncSelection=Te,this.customData.vSync=this.rotaryVSyncOptionsVal[Te],this.onCustomProfileFieldChange(H.M0g.vSync);const Rt=0===this.rotaryVSyncOptionsVal[Jt]||0===this.rotaryVSyncOptionsVal[Te],ei=0===this.rotaryVSyncOptionsVal[Jt],tr=0!==this.rotaryVSyncOptionsVal[Te];this.logger.info("CurrentState: "+this.rotaryVSyncOptionsVal[Jt]+" RotaryValue: "+Te),this.logger.info("ChangeEnable: ",Rt+" NewEnable: "+ei),this.logger.info("ChangeState: "+tr+" NewState: "+this.rotaryVSyncOptionsVal[Te]),Rt?this.setVsyncEnabled(ei).pipe((0,P.Q)(this.destroy$)).subscribe(()=>{tr&&this.controlVsyncState(this.rotaryVSyncOptionsVal[Te])}):this.controlVsyncState(this.rotaryVSyncOptionsVal[Te]),this.isCloudGsyncEnabled&&(this.customData.cloudGsync=!1,this.onCustomProfileFieldChange(H.M0g.cloudGsync),this.checkifCloudGsyncEnabled(this.customData.cloudGsync))}controlVsyncState(Te){this.toggleVsyncOnAdaptive(Te).pipe((0,P.Q)(this.destroy$)).subscribe(()=>{})}setVsyncEnabled(Te){return this.bridgeService.executeCommand(re.Ts.Gfn.Streaming.SetVsyncEnabled,{enabled:Te}).pipe((0,Ai.T)(()=>(this.logger.info("Enable Vsync: ",Te),!0)))}toggleVsyncOnAdaptive(Te){return this.bridgeService.executeCommand(re.Ts.Gfn.Streaming.SetAdaptiveFramePacingEnabled,{enabled:"settings.gameplay.Adaptive"===this.rotaryVSyncOptions[Te]}).pipe((0,Ai.T)(()=>(this.logger.info("Set Vsync to: ",this.rotaryVSyncOptions[Te]),!0)))}adjustPoorNetworkToggleEvent(Te){this.logger.info("Adjust Poor Network changed: ",Te.checked),this.customData.drc=Te.checked,this.bridgeService.executeCommand(re.Ts.Gfn.Streaming.SetDrcDfcState,{streamIdx:0,enabled:Te.checked}).pipe((0,P.Q)(this.destroy$)).subscribe(()=>{this.logger.info("AdjustPoorNetwork: ",this.customData.drc),this.onCustomProfileFieldChange(H.M0g.drc)},ei=>{this.logger.error("Failed to change Adjust Poor Network Conditions : "+ei)})}rotaryUpscaleModeChanged(Te,Jt,Rt){this.logger.info("Upscale Mode Rotary changed index: ",Te),this.telemetryUpscalingData.upscaleMode=Te,this.upscaleMode=this.upscaleFilters.find(ei=>ei.displayName===this.upscaleModeRotaryOptions[Te]),this.resolutionUpscaleService.setMagnificationFilter(this.upscaleMode.id),Rt||this.resolutionUpscaleService.saveSetting(H.L4P.Resolution,this.upscaleMode.id,Jt),this.showSharpnessEnhanced=!1,this.isAiSelected=!1,H.SCF.isEnhanced(this.upscaleMode.id)&&this.resolutionUpscaleService.getNvScalerNvSharpSupport().pipe((0,X.s)(1),(0,P.Q)(this.destroy$)).subscribe(ei=>{this.showSharpnessEnhanced=ei.isNvScalerSupported||ei.isNvSharpenSupported,this.showSharpnessEnhanced&&this.rotaryDetailEnhancementChanged(this.enhancedSharpnessId,!1)}),H.SCF.isAiEnhanced(this.upscaleMode.id)&&(this.rotaryDetailEnhancementChanged(this.aiSharpnessId,!1),this.isAiSelected=!0)}rotaryDetailEnhancementChanged(Te,Jt,Rt){let ei;switch(this.logger.info("Detail Enhancement Rotary changed, index: ",Te),this.telemetryUpscalingData.detailEnhancement=Te,this.activeSharpnessSetting=H.SCF.getSharpnessbyId(Te),this.sharpnessTurnedOff=H.SCF.isSharpnessOff(this.activeSharpnessSetting),this.upscaleMode.id){case H.DNU.AI_ENHANCED.id:this.aiSharpnessId=this.activeSharpnessSetting.id,this.resolutionUpscaleService.setAiSharpnessSetting(this.activeSharpnessSetting),ei=H.L4P.AiSharpness;break;case H.DNU.ENHANCED.id:case H.DNU.NV_SCALER.id:case H.DNU.NV_SHARP.id:this.enhancedSharpnessId=this.activeSharpnessSetting.id,this.resolutionUpscaleService.setEnhSharpnessSetting(this.activeSharpnessSetting),ei=H.L4P.EnhSharpness,this.showSharpnessEnhanced&&this.resolutionUpscaleService.setMagnificationFilter(this.sharpnessTurnedOff?H.DNU.ENHANCED.id:this.upscaleMode.id)}this.resolutionUpscaleService.setSharpnessFilter(this.activeSharpnessSetting),Rt||this.resolutionUpscaleService.saveSetting(ei,this.activeSharpnessSetting.value,!0)}detectInGameGraphics(Te){this.saveInGameGraphics=!1,this.saveInGameGraphicsEnabled=this.ecommerceService.featureEntitled(H.N1D.IN_GAME_SETTINGS_PERSISTENCE_ENABLED),this.logger.info("Setting availability received from subscrption: ",this.saveInGameGraphicsEnabled),this.showInGameGraphicsSection=Te.membershipStatus===H.OON.Entitled,this.saveInGameGraphicsEnabled&&this.settingsService.persistInGameGraphicsEnabled().pipe((0,P.Q)(this.destroy$)).subscribe(Jt=>{this.logger.info("Setting updated from storage: ",Jt),this.saveInGameGraphics=Jt})}streamingQualityCheckExitTelemetry(){if(!(0,zo.isEqual)(this.customData,this.customDataUponEntry)){this.logger.info("Streaming Quality Changed!");const Te={maxBitrateAuto:this.customData.maxBitrateAuto,maxBitrateAutoChanged:!1,maxBitrate:this.customData.maxBitrate,MaxBitrateChanged:!1,vSync:this.customData.vSync,vSyncChanged:!1,drc:this.customData.drc,drcChanged:!1};this.customData.drc!==this.customDataUponEntry.drc&&(Te.drcChanged=!0),this.customData.vSync!==this.customDataUponEntry.vSync&&(Te.vSyncChanged=!0),this.customData.maxBitrateAuto!==this.customDataUponEntry.maxBitrateAuto&&(Te.maxBitrateAutoChanged=!0),this.customData.maxBitrate!==this.customDataUponEntry.maxBitrate&&(Te.MaxBitrateChanged=!0),this.telemetryHelperService.sendStreamingQualityChanged(Te)}}resolutionUpscalingCheckExitTelemetry(){this.upscalingShow&&!(0,zo.isEqual)(this.telemetryUpscalingData,this.telemetryUpscalingDataUponEntry)&&(this.logger.info("Resolution Upscaling Changed!"),this.telemetryUpscalingData.upscaleMode!==this.telemetryUpscalingDataUponEntry.upscaleMode&&this.logger.info("Upscale Selection Changed: ",this.telemetryUpscalingData.upscaleMode),this.telemetryUpscalingData.detailEnhancement!==this.telemetryUpscalingDataUponEntry.detailEnhancement&&this.logger.info("Upscale Detail Enhancement Changed: ",this.telemetryUpscalingData.detailEnhancement),this.telemetryHelperService.sendResolutionUpscalingChanged(this.telemetryUpscalingData))}checkifReflexEnabled(Te){if(!this.ecommerceService.isFeatureAvailableToUser(H.N1D.ENABLED_REFLEX,H.q3U.SUPPORT_REFLEX))return;const Jt=Te&&this.ecommerceService.featureEntitled(H.N1D.ENABLED_REFLEX);this.logger.info("Checking Reflex status tobe shown ",Te,Jt),this.showReflex=!0,this.reflexStatus=this.streamingProfileService.getReflexLabel(Jt,!1)}checkifCloudGsyncEnabled(Te){this.ecommerceService.isFeatureAvailableToUser(H.N1D.CLOUD_GSYNC,H.q3U.SUPPORT_CLOUD_GSYNC)?(this.isCloudGsyncEnabled=Te&&this.ecommerceService.featureEntitled(H.N1D.CLOUD_GSYNC),this.logger.info("Checking cloud gsync status to be shown: (value, enabled): ",Te,this.isCloudGsyncEnabled),this.showCloudGsync=!0,this.cloudGsynLabelSubscription$&&this.cloudGsynLabelSubscription$.unsubscribe(),this.cloudGsynLabelSubscription$=this.streamingProfileService.getCloudGsyncLabel(this.isCloudGsyncEnabled,!1).pipe((0,P.Q)(this.destroy$)).subscribe(Jt=>{this.isGsyncDisplay=this.streamingProfileService.isGsyncDisplay,this.cloudGsyncStatus=Jt})):this.logger.info("VRR display not available to user/platform.")}checkifL4SEnabled(Te,Jt=!1){if(!this.gfnInfoService.checkL4SUserEntitlement())return;const Rt=Te&&this.ecommerceService.featureEntitled(H.N1D.ENABLED_L4S);this.logger.info("Checking L4S state to be shown: ",Te,Rt),this.showL4S=!0,this.l4sStatus=Te?"settings.streamingProfiles.on":"common.off",Jt&&(this.showl4sTipText=!this.customData.drc&&this.gameLaunchedWithL4S)}checkIfBitDepthEnabled(Te){this.gfnInfoService.checkIfBitDepthAvailable()&&(this.logger.info("BitDepth value to be shown: ",Te),this.showBitDepth=!0,this.bitDepthValue=Te)}static{this.\u0275fac=function(Jt){return new(Jt||rn)(i.rXU(i.zZn),i.rXU(v.J6),i.rXU(f.o_p),i.rXU(l.nX),i.rXU(f.gZv),i.rXU(f.x_y),i.rXU(Be.c$),i.rXU(v.NZ),i.rXU(H.yJU),i.rXU(f.xRl),i.rXU(H.d5b),i.rXU(So.R))}}static{this.\u0275cmp=i.VBU({type:rn,selectors:[["igo-gameplay"]],inputs:{bitRate:"bitRate"},outputs:{bitRateChange:"bitRateChange"},features:[i.Vt3],decls:55,vars:141,consts:[["fxLayout","column","fxFlex","",1,"settings-gameplay"],["fxLayout","column",1,"settings-container",3,"fxLayoutGap"],[1,"left-data",3,"ngClass"],[1,"header1",3,"ngClass"],[1,"header2",3,"ngClass"],["fxLayout","row",1,"standard-holder24"],["fxFlex","",1,"left-data",3,"ngClass"],["fxLayoutAlign","end start",1,"standard-data"],[1,"standard-base","font-color-secondary","right-data",3,"ngClass"],["fxFlex","","fxLayout","column"],["fxFlex","","fxLayout","row",3,"ngClass"],["fxFlex","",3,"ngClass"],["class","font-color-secondary right-data","fxLayoutAlign","center",3,"ngClass",4,"ngIf"],["fxFlex","none",3,"ngClass","ngModel","ngModelChange","change",4,"ngIf"],["fxFlex","grow",3,"ngClass",4,"ngIf"],["fxLayout","column","fxFlex","grow","class","font-color-tertiary",3,"slider_padding",4,"ngIf"],[1,"standard-base","right-data",3,"ngClass"],["class","standard-base right-data inline-badge",3,"resolution-label-margin-top-steamdeck","resolution-label-margin-top",4,"ngIf"],[1,"standard-base","right-data"],[1,"standard-post","right-data"],[4,"ngIf"],["class","standard-holder24","fxLayout","row",3,"side-padding",4,"ngIf"],["fxFlex","none","fxLayoutAlign","start center",3,"side-padding",4,"ngIf"],["fxFlex","none","fxLayout","column",4,"ngIf"],["fxLayout","column",3,"side-padding",4,"ngIf"],["fxLayoutAlign","center",1,"font-color-secondary","right-data",3,"ngClass"],["fxFlex","none",3,"ngModelChange","change","ngClass","ngModel"],["fxFlex","grow",3,"ngClass"],["fxLayout","column","fxFlex","grow",1,"font-color-tertiary"],["fxFlex","grow","fxLayoutAlign","space-between center"],["fxFlexFill","",3,"valueChange","input","min","max","value","step"],["fxLayoutAlign","center",3,"ngClass"],[1,"standard-base","right-data","inline-badge"],["class","font-color-primary standard-holder24 side-padding","fxLayout","row",4,"ngIf"],["class","standard-holder24 rotary-side-padding","fxFlex","grow",4,"ngIf"],["fxLayout","row",1,"font-color-primary","standard-holder24","side-padding"],["fxFlex","",1,"streaming-setting-name-font","left-data"],[1,"standard-post","left-data"],["fxFlex","grow",1,"standard-holder24","rotary-side-padding"],["title","settings.gameplay.VSync",3,"selectionChanged","input","initialState","disabled"],["fxFlex","","class","streaming-setting-name-font left-data",3,"font-body1","font-body-largefont0",4,"ngIf"],[1,"standard-base","right-data","profile-description-font"],["fxFlex","",1,"left-data"],["fxFlex","none","fxLayoutAlign","start center"],["fxFlex","grow",1,"left-data"],["class","standard-post right-data",3,"font-color-secondary","font-body2","font-body-largefont1",4,"ngIf"],["fxFlex","none","class","toggle-padding",3,"ngModel","ngModelChange","change",4,"ngIf"],["fxFlex","none",1,"toggle-padding",3,"ngModelChange","change","ngModel"],["class","standard-base right-data",3,"profile-description-font","font-body2","font-body-largefont1",4,"ngIf"],["class","standard-base right-data",3,"profile-description-font","font-body2","font-body1",4,"ngIf"],["fxFlex","none","fxLayout","column"],["title","settings.gameplay.UpscaleMode",1,"rotary-side-padding",3,"selectionChanged","input","initialState"],["class","rotary-side-padding","title","settings.gameplay.DetailEnhancement",3,"input","initialState","selectionChanged",4,"ngIf"],["title","settings.gameplay.DetailEnhancement",1,"rotary-side-padding",3,"selectionChanged","input","initialState"],["fxLayout","column"],["marginNotReq","true"],["fxLayout","row"],["fxFlex","",1,"header1"],["fxFlex","none","fxLayoutAlign","end start",1,"standard-base","font-color-secondary","header1a",3,"ngClass"],["class","header2",3,"profile-description-font","font-color-tertiary","font-body2","font-body-largefont1",4,"ngIf"],[1,"header2"]],template:function(Jt,Rt){1&Jt&&(i.j41(0,"div",0)(1,"div",1)(2,"span",2),i.EFF(3),i.nI1(4,"translate"),i.k0s(),i.j41(5,"span",3),i.EFF(6),i.nI1(7,"translate"),i.k0s(),i.j41(8,"span",4),i.EFF(9),i.nI1(10,"translate"),i.k0s(),i.j41(11,"div",5)(12,"span",6),i.EFF(13),i.nI1(14,"translate"),i.k0s(),i.j41(15,"div",7)(16,"span",8),i.EFF(17),i.nI1(18,"translate"),i.k0s()()(),i.j41(19,"div",9)(20,"div",10)(21,"span",11),i.EFF(22),i.nI1(23,"translate"),i.k0s(),i.DNE(24,el,2,5,"span",12)(25,ca,1,5,"mat-slide-toggle",13),i.k0s(),i.DNE(26,Zo,3,8,"div",14)(27,Ha,6,19,"div",15),i.k0s(),i.j41(28,"div",5)(29,"span",6),i.EFF(30),i.nI1(31,"translate"),i.k0s(),i.j41(32,"div",7)(33,"span",16),i.EFF(34),i.k0s(),i.DNE(35,vo,2,5,"span",17),i.k0s()(),i.j41(36,"div",5)(37,"span",6),i.EFF(38),i.nI1(39,"translate"),i.k0s(),i.j41(40,"div",7)(41,"span",18),i.EFF(42),i.k0s(),i.j41(43,"span",19),i.EFF(44),i.nI1(45,"translate"),i.k0s()()(),i.DNE(46,Ie,3,2,"div",20)(47,Ns,7,11,"div",21)(48,Ps,8,16,"div",21)(49,ja,8,24,"div",21)(50,Ja,8,19,"div",21)(51,Ks,6,15,"div",22)(52,mr,7,17,"div",21),i.k0s(),i.DNE(53,je,7,16,"div",23)(54,vi,11,26,"div",24),i.k0s()),2&Jt&&(i.R7$(),i.Y8G("fxLayoutGap",Rt.tvMode?"16px":""),i.R7$(),i.AVh("font-color-tertiary",Rt.tvMode)("side-padding",!Rt.tvMode)("section-title-font",!Rt.tvMode),i.Y8G("ngClass",i.l_i(109,Rn,!Rt.tvMode&&!Rt.enlargeFontMode,!Rt.tvMode&&Rt.enlargeFontMode)),i.R7$(),i.JRh(i.bMT(4,90,"settings.gameplay.StreamingQuality")),i.R7$(2),i.AVh("font-color-primary",Rt.tvMode)("side-padding",!Rt.tvMode)("profile-name-font",!Rt.tvMode),i.Y8G("ngClass",i.l_i(112,Xn,!Rt.tvMode&&!Rt.enlargeFontMode,!Rt.tvMode&&Rt.enlargeFontMode)),i.R7$(),i.JRh(i.bMT(7,92,Rt.qualityHeader)),i.R7$(2),i.AVh("font-color-tertiary",Rt.tvMode)("side-padding",!Rt.tvMode),i.Y8G("ngClass",i.l_i(115,ae,!Rt.tvMode&&!Rt.enlargeFontMode,!Rt.tvMode&&Rt.enlargeFontMode)),i.R7$(),i.JRh(i.bMT(10,94,Rt.qualityHelper)),i.R7$(2),i.AVh("standard-holder24-margin",Rt.tvMode)("side-padding",!Rt.tvMode),i.R7$(),i.AVh("streaming-setting-name-font",!Rt.tvMode),i.Y8G("ngClass",i.sMw(118,st,Rt.tvMode,!Rt.tvMode&&!Rt.enlargeFontMode,!Rt.tvMode&&Rt.enlargeFontMode)),i.R7$(),i.JRh(i.bMT(14,96,"settings.gameplay.GameplayData")),i.R7$(3),i.Y8G("ngClass",i.l_i(122,Ct,!Rt.tvMode&&!Rt.enlargeFontMode,!Rt.tvMode&&Rt.enlargeFontMode)),i.R7$(),i.JRh(i.i5U(18,98,"settings.gameplay.GBPerHour",i.eq3(125,$n,Rt.gbPerHour))),i.R7$(2),i.AVh("side-padding",!Rt.tvMode),i.R7$(),i.Y8G("ngClass",i.eq3(127,Gi,Rt.hideBitRateSlider&&Rt.tvMode)),i.R7$(),i.AVh("streaming-setting-name-font",!Rt.tvMode)("font-color-primary",Rt.tvMode),i.Y8G("ngClass",Rt.maxBitRateFont),i.R7$(),i.SpI(" ",i.bMT(23,101,"settings.gameplay.MaxBitRate")," "),i.R7$(2),i.Y8G("ngIf",!Rt.custom||Rt.hideBitRateSlider),i.R7$(),i.Y8G("ngIf",Rt.custom&&!Rt.hideBitRateSlider),i.R7$(),i.Y8G("ngIf",Rt.custom&&!Rt.enableBitRateSlider&&!Rt.hideBitRateSlider),i.R7$(),i.Y8G("ngIf",Rt.enableBitRateSlider&&!Rt.hideBitRateSlider),i.R7$(),i.AVh("standard-holder24-margin",Rt.tvMode)("side-padding",!Rt.tvMode),i.R7$(),i.AVh("streaming-setting-name-font",!Rt.tvMode),i.Y8G("ngClass",i.sMw(129,st,Rt.tvMode,!Rt.tvMode&&!Rt.enlargeFontMode,!Rt.tvMode&&Rt.enlargeFontMode)),i.R7$(),i.JRh(i.bMT(31,103,"settings.gameplay.Resolution")),i.R7$(3),i.Y8G("ngClass",i.sMw(133,Sr,Rt.tvMode,!Rt.tvMode&&!Rt.enlargeFontMode,!Rt.tvMode&&Rt.enlargeFontMode)),i.R7$(),i.JRh(Rt.resolution),i.R7$(),i.Y8G("ngIf",Rt.resolutionLabel),i.R7$(),i.AVh("side-padding",!Rt.tvMode)("standard-holder24-margin",Rt.tvMode),i.R7$(),i.AVh("streaming-setting-name-font",!Rt.tvMode),i.Y8G("ngClass",i.sMw(137,st,Rt.tvMode,!Rt.tvMode&&!Rt.enlargeFontMode,!Rt.tvMode&&Rt.enlargeFontMode)),i.R7$(),i.JRh(i.bMT(39,105,"settings.gameplay.FrameRate")),i.R7$(2),i.AVh("font-color-secondary",Rt.tvMode),i.R7$(),i.AVh("profile-description-font",!Rt.tvMode)("font-body2",!Rt.tvMode&&!Rt.enlargeFontMode)("font-body-largefont1",!Rt.tvMode&&Rt.enlargeFontMode),i.R7$(),i.SpI(" ",Rt.frameRate,""),i.R7$(),i.AVh("profile-description-font",!Rt.tvMode)("font-body2",!Rt.tvMode&&!Rt.enlargeFontMode)("font-body-largefont1",!Rt.tvMode&&Rt.enlargeFontMode),i.R7$(),i.JRh(i.bMT(45,107,"settings.gameplay.FPS")),i.R7$(2),i.Y8G("ngIf",Rt.showVsync),i.R7$(),i.Y8G("ngIf",Rt.showCloudGsync),i.R7$(),i.Y8G("ngIf",Rt.showReflex),i.R7$(),i.Y8G("ngIf",Rt.showHDR),i.R7$(),i.Y8G("ngIf",Rt.showBitDepth),i.R7$(),i.Y8G("ngIf",Rt.showDrc),i.R7$(),i.Y8G("ngIf",Rt.showL4S),i.R7$(),i.Y8G("ngIf",Rt.upscalingShow),i.R7$(),i.Y8G("ngIf",Rt.showInGameGraphicsSection))},styles:['.nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.settings-gameplay[_ngcontent-%COMP%]{max-width:100%;padding:16px 0;overflow-y:overlay}.isLtr[_nghost-%COMP%] .settings-gameplay[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-gameplay[_ngcontent-%COMP%]{margin-right:-24px}html[dir=ltr][_ngcontent-%COMP%] .settings-gameplay[_ngcontent-%COMP%]{--dummy4: 0;margin-right:-24px}.isRtl[_nghost-%COMP%] .settings-gameplay[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-gameplay[_ngcontent-%COMP%]{margin-left:-24px}html[dir=rtl][_ngcontent-%COMP%] .settings-gameplay[_ngcontent-%COMP%]{--dummy4: 0;margin-left:-24px}.settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:60px}.isLtr[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.right-data[_ngcontent-%COMP%]{margin-top:14px;margin-bottom:14px}.isLtr[_nghost-%COMP%] .rotary-right-margin[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rotary-right-margin[_ngcontent-%COMP%]{margin-right:-16px}html[dir=ltr][_ngcontent-%COMP%] .rotary-right-margin[_ngcontent-%COMP%]{--dummy4: 0;margin-right:-16px}.isRtl[_nghost-%COMP%] .rotary-right-margin[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rotary-right-margin[_ngcontent-%COMP%]{margin-left:-16px}html[dir=rtl][_ngcontent-%COMP%] .rotary-right-margin[_ngcontent-%COMP%]{--dummy4: 0;margin-left:-16px}.left-data[_ngcontent-%COMP%]{margin-top:12px;margin-bottom:12px}.slider-padding[_ngcontent-%COMP%]{padding-top:4px;padding-bottom:4px}.isLtr[_nghost-%COMP%] .slider-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .slider-padding[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .slider-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .slider-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .slider-padding[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .slider-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.streaming-setting-name-padding[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.bit-rate-helper-title[_ngcontent-%COMP%]{--font-sub-shared-font-size: 16px;--font-sub-shared-line-height: 24px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0;margin-top:12px;margin-bottom:12px}.tv-view[_ngcontent-%COMP%] .bit-rate-helper-title[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .bit-rate-helper-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .bit-rate-helper-title[_ngcontent-%COMP%]{--font-sub-shared-font-size: 32px;--font-sub-shared-line-height: 48px}.toggle-padding-top[_ngcontent-%COMP%]{padding-top:12px}.slider-text[_ngcontent-%COMP%]{margin-top:0;margin-bottom:8px}.slider-value-text[_ngcontent-%COMP%]{color:#ffffffb3;padding-top:8px;padding-bottom:8px}.header1[_ngcontent-%COMP%], .header1a[_ngcontent-%COMP%]{margin-top:14px}.header2[_ngcontent-%COMP%]{margin-top:0;margin-bottom:14px}.header3[_ngcontent-%COMP%]{margin-top:12px;margin-bottom:4px}.header_max_bit[_ngcontent-%COMP%]{margin-top:4px;margin-bottom:4px}.slider_padding[_ngcontent-%COMP%]{margin-top:8px}.header4[_ngcontent-%COMP%]{margin-bottom:14px}.standard-holder24[_ngcontent-%COMP%]{line-height:24px!important}.standard-holder24-margin[_ngcontent-%COMP%]{margin-bottom:9px}.isLtr[_nghost-%COMP%] .standard-data[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .standard-data[_ngcontent-%COMP%]{margin-left:26px}html[dir=ltr][_ngcontent-%COMP%] .standard-data[_ngcontent-%COMP%]{--dummy3: 0;margin-left:26px}.isRtl[_nghost-%COMP%] .standard-data[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .standard-data[_ngcontent-%COMP%]{margin-right:26px}html[dir=rtl][_ngcontent-%COMP%] .standard-data[_ngcontent-%COMP%]{--dummy3: 0;margin-right:26px}.isLtr[_nghost-%COMP%] .standard-base[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .standard-base[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .standard-post[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .standard-post[_ngcontent-%COMP%]{text-align:right}html[dir=ltr][_ngcontent-%COMP%] .standard-base[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .standard-post[_ngcontent-%COMP%]{--dummy0: 0;text-align:right}.isRtl[_nghost-%COMP%] .standard-base[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .standard-base[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .standard-post[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .standard-post[_ngcontent-%COMP%]{text-align:left}html[dir=rtl][_ngcontent-%COMP%] .standard-base[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .standard-post[_ngcontent-%COMP%]{--dummy0: 0;text-align:left}.setting-name-padding-top[_ngcontent-%COMP%]{padding-top:12px}.setting-subname-padding-bottom[_ngcontent-%COMP%]{padding-bottom:12px}.isLtr[_nghost-%COMP%] .standard-post[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .standard-post[_ngcontent-%COMP%]{padding-left:3px}html[dir=ltr][_ngcontent-%COMP%] .standard-post[_ngcontent-%COMP%]{--dummy1: 0;padding-left:3px}.isRtl[_nghost-%COMP%] .standard-post[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .standard-post[_ngcontent-%COMP%]{padding-right:3px}html[dir=rtl][_ngcontent-%COMP%] .standard-post[_ngcontent-%COMP%]{--dummy1: 0;padding-right:3px}.isLtr[_nghost-%COMP%] .toggle-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .toggle-padding[_ngcontent-%COMP%]{padding-right:10px}html[dir=ltr][_ngcontent-%COMP%] .toggle-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:10px}.isRtl[_nghost-%COMP%] .toggle-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .toggle-padding[_ngcontent-%COMP%]{padding-left:10px}html[dir=rtl][_ngcontent-%COMP%] .toggle-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:10px}.resolution-label[_ngcontent-%COMP%]{height:16px}.isLtr[_nghost-%COMP%] .resolution-label[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .resolution-label[_ngcontent-%COMP%]{margin-left:7px}html[dir=ltr][_ngcontent-%COMP%] .resolution-label[_ngcontent-%COMP%]{--dummy3: 0;margin-left:7px}.isRtl[_nghost-%COMP%] .resolution-label[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .resolution-label[_ngcontent-%COMP%]{margin-right:7px}html[dir=rtl][_ngcontent-%COMP%] .resolution-label[_ngcontent-%COMP%]{--dummy3: 0;margin-right:7px}.resolution-label-margin-top[_ngcontent-%COMP%]{margin-top:16px}.resolution-label-margin-top-steamdeck[_ngcontent-%COMP%]{margin-top:18px}.section-title-font[_ngcontent-%COMP%]{color:#fff9}.profile-name-font[_ngcontent-%COMP%]{color:#ffffffe6}.profile-description-font[_ngcontent-%COMP%]{color:#ffffffb3}.streaming-setting-name-font[_ngcontent-%COMP%]{color:#ffffffe6}.streaming-setting-value-font[_ngcontent-%COMP%]{--font-sub-shared-font-size: 16px;--font-sub-shared-line-height: 24px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0;color:#ffffffe6}.tv-view[_ngcontent-%COMP%] .streaming-setting-value-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .streaming-setting-value-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .streaming-setting-value-font[_ngcontent-%COMP%]{--font-sub-shared-font-size: 32px;--font-sub-shared-line-height: 48px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-right:4px}html[dir=ltr][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:4px}.isRtl[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-left:4px}html[dir=rtl][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:4px}.font-color-tertiary[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 14px;--font-body-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .font-color-tertiary[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-color-tertiary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-color-tertiary[_ngcontent-%COMP%]{--font-body-size: 28px;--font-body-line-height: 40px;--font-body-color: rgba(255, 255, 255, .85)}.font-color-tertiary.left-data[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 12px;--font-body-line-height: 16px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .font-color-tertiary.left-data[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-color-tertiary.left-data[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-color-tertiary.left-data[_ngcontent-%COMP%]{--font-body-size: 24px;--font-body-line-height: 32px;--font-body-color: rgba(255, 255, 255, .85)}.inline-badge[_ngcontent-%COMP%]{position:relative;display:inline-flex;align-items:center;justify-content:center;font-weight:700!important;color:#afafaf!important;box-sizing:border-box;white-space:nowrap;font-size:12px;line-height:16px;padding:0 3px}.isLtr[_nghost-%COMP%] .inline-badge[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .inline-badge[_ngcontent-%COMP%]{margin-left:7px}html[dir=ltr][_ngcontent-%COMP%] .inline-badge[_ngcontent-%COMP%]{--dummy3: 0;margin-left:7px}.isRtl[_nghost-%COMP%] .inline-badge[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .inline-badge[_ngcontent-%COMP%]{margin-right:7px}html[dir=rtl][_ngcontent-%COMP%] .inline-badge[_ngcontent-%COMP%]{--dummy3: 0;margin-right:7px}.inline-badge[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;border:1px solid #afafaf;opacity:.6}.tv-view[_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 14px;--font-body-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%]{--font-body-size: 28px;--font-body-line-height: 40px;--font-body-color: rgba(255, 255, 255, .85)}.tv-view[_nghost-%COMP%] div.font-color-primary.header1[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.font-color-primary.header1[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] span.font-color-primary.header1[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.font-color-primary.header1[_ngcontent-%COMP%]{margin-top:12px;--font-sub-shared-font-size: 14px;--font-sub-shared-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] div.font-color-primary.header1[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.font-color-primary.header1[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] div.font-color-primary.header1[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] div.font-color-primary.header1[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.font-color-primary.header1[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.font-color-primary.header1[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.font-color-primary.header1[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.font-color-primary.header1[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.font-color-primary.header1[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.font-color-primary.header1[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] span.font-color-primary.header1[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] span.font-color-primary.header1[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.font-color-primary.header1[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.font-color-primary.header1[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.font-color-primary.header1[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.font-color-primary.header1[_ngcontent-%COMP%]{--font-sub-shared-font-size: 28px;--font-sub-shared-line-height: 40px}.tv-view[_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 12px;--font-body-line-height: 16px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%]{--font-body-size: 24px;--font-body-line-height: 32px;--font-body-color: rgba(255, 255, 255, .85)}.tv-view[_nghost-%COMP%] span.right-data[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.right-data[_ngcontent-%COMP%]{--font-sub-shared-font-size: 12px;--font-sub-shared-line-height: 16px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] span.right-data[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.right-data[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] span.right-data[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] span.right-data[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.right-data[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.right-data[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.right-data[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.right-data[_ngcontent-%COMP%]{--font-sub-shared-font-size: 24px;--font-sub-shared-line-height: 32px}.tv-view[_nghost-%COMP%] .header2[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .header2[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:4px}.tv-view[_nghost-%COMP%] .settings-gameplay[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .settings-gameplay[_ngcontent-%COMP%]{padding:40px}']})}}return rn})();var Ri=s(29326);const _r=[{LCID:[1026],code:"bg_BG",name:"\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 (Bulgerian)",isoThreeLetter:"bgr",countryCode:"BG"},{LCID:[1029],code:"cs_CZ",name:"\u010de\u0161tina (Czech)",isoThreeLetter:"ces",countryCode:"CZ"},{LCID:[1030],code:"da_DK",name:"Dansk (Danish)",isoThreeLetter:"dan",countryCode:"DK"},{LCID:[1031,3079,5127,4103,2055],code:"de_DE",name:"Deutsch (German)",isoThreeLetter:"deu",countryCode:"DE"},{LCID:[1032],code:"el_GR",name:"\u03b5\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac (Greek)",isoThreeLetter:"ell",countryCode:"GR"},{LCID:[1033],code:"en_US",name:"English (United States)",isoThreeLetter:"eng",countryCode:"US"},{LCID:[2057,1078,1052,1118,1067,1101,1068,5146,1026,1109,1050,4122,1125,2067,1126,3081,10249,6153,5129,7177,12297,1061,1127,1071,2108,1084,1079,1129,1039,1136,1137,2144,1120,1087,1153,2128,2068,1048,2074,1091,1093,2117,16393,1081,1121,2145,1094,2118,1113,2137,1115,2080,3081,15369,14345,17417,5129,13321,18441],code:"en_GB",name:"English (United Kingdom)",isoThreeLetter:"eng",countryCode:"GB"},{LCID:[3082,1069,1027,1034],code:"es_ES",name:"Espa\xf1ol (Spanish - Spain)",isoThreeLetter:"spa",countryCode:"ES"},{LCID:[3082,11274,16394,13322,9226,5130,7178,12298,17418,4106,18442,58378,2058,19466,6154,15370,10250,20490,21514,14346,8202],code:"es_MX",name:"Espa\xf1ol (Spanish - Mexico)",isoThreeLetter:"spa",countryCode:"MX"},{LCID:[1035],code:"fi_FI",name:"Suomi (Finnish)",isoThreeLetter:"fin",countryCode:"FI"},{LCID:[1036,2060,11276,3084,9228,12300,15372,5132,13324,6156,14348,58380,8204,10252,4108,7180,1122],code:"fr_FR",name:"Fran\xe7ais (French)",isoThreeLetter:"fra",countryCode:"FR"},{LCID:[1050],code:"hr_HR",name:"Hrvatski (Croatian)",isoThreeLetter:"hrv",countryCode:"HR"},{LCID:[1038],code:"hu_HU",name:"Magyar (Hungarian)",isoThreeLetter:"hun",countryCode:"HU"},{LCID:[1040,2064],code:"it_IT",name:"Italiano (Italian - Italy)",isoThreeLetter:"ita",countryCode:"IT"},{LCID:[1041],code:"ja_JP",name:"\u65e5\u672c\u8a9e (Japanese)",isoThreeLetter:"jpn",countryCode:"JP"},{LCID:[1042],code:"ko_KR",name:"\ud55c\uad6d\uc5b4 (Korean)",isoThreeLetter:"kor",countryCode:"KR"},{LCID:[1043],code:"nl_NL",name:"Nederlands (Dutch - Netherlands)",isoThreeLetter:"nld",countryCode:"NL"},{LCID:[1044,14],code:"nb_NO",name:"Norsk (Norwegian)",isoThreeLetter:"nor",countryCode:"NO"},{LCID:[1045],code:"pl_PL",name:"Polski (Polish)",isoThreeLetter:"pol",countryCode:"PL"},{LCID:[2070],code:"pt_PT",name:"Portugu\xeas (Portuguese - Portugal)",isoThreeLetter:"por",countryCode:"PT"},{LCID:[1046,2070],code:"pt_BR",name:"Portugu\xeas-Brasil (Portuguese - Brazil)",isoThreeLetter:"por",countryCode:"BR"},{LCID:[1048],code:"ro_RO",name:"Rom\xe2n\u0103 (Romanian)",isoThreeLetter:"rou",countryCode:"RO"},{LCID:[1049,2092,1059,1088,1104,2073,3098,2115,1058],code:"ru_RU",name:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439 (Russian)",isoThreeLetter:"rus",countryCode:"RU"},{LCID:[1051],code:"sk_SK",name:"slovensk\xfdch (Slovak)",isoThreeLetter:"slk",countryCode:"SK"},{LCID:[1060],code:"sl_SI",name:"slovenski (Slovenian)",isoThreeLetter:"slv",countryCode:"SI"},{LCID:[1053],code:"sv_SE",name:"Svenska (Swedish)",isoThreeLetter:"swe",countryCode:"SE"},{LCID:[1054],code:"th_TH",name:"\u0e44\u0e17\u0e22 (Thai)",isoThreeLetter:"tha",countryCode:"TH"},{LCID:[1055],code:"tr_TR",name:"T\xfcrk\xe7e (Turkish)",isoThreeLetter:"tur",countryCode:"TR"},{LCID:[1058],code:"uk_UA",name:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430 (Ukrainian)",isoThreeLetter:"ukr",countryCode:"UA"},{LCID:[2052,804,4],code:"zh_CN",cmsCode:"zh_CN",name:"\u7b80\u4f53\u4e2d\u6587 (Chinese - Simplified)",isoThreeLetter:"zho",countryCode:"CN"},{LCID:[3076,1028,4100,404,5124,31748],code:"zh_TW",cmsCode:"zh_TW",name:"\u7e41\u9ad4\u4e2d\u6587 (Chinese - Traditional)",isoThreeLetter:"zho",countryCode:"CN"}],po=[{path:"settings",component:B,data:{level:1}},{path:"general",component:G,data:{level:2}},{path:"system",component:tn,data:{level:2}},{path:"gameplay",component:Si,data:{level:2}},{path:"debug",component:(()=>{class rn extends r{constructor(Te,Jt,Rt,ei,tr){super(Jt,Rt,ei),this.loggingService=Te,this.localeService=tr,this.languages=Ri.l.supportedLang,this.languageNames=[],this.initialLangIndex=5,super.bar("settings.Debug"),this.logger=this.loggingService.getLogger("Debug")}ngOnInit(){super.ngOnInit(),this.clientLocales=_r,this.processLanguage()}processLanguage(){this.languages.forEach((Te,Jt)=>{const Rt=this.getLanguageName(Jt);this.logger.info("Language: "+Te+" name: "+Rt),this.languageNames.push(Rt)}),this.localeService.localeChanged.pipe((0,X.s)(1)).subscribe(Te=>{this.logger.info("Current Locale: ",Te),this.languages.forEach((Jt,Rt)=>{Jt===Te&&(this.initialLangIndex=Rt)})})}getLanguageName(Te){return this.clientLocales.find(Jt=>Jt.code===this.languages[Te]).name}languageChanged(Te){this.logger.info("Language changed to: "+this.languages[Te]+" name: "+this.languageNames[Te]),this.localeService.setLocale(this.languages[Te])}static{this.\u0275fac=function(Jt){return new(Jt||rn)(i.rXU(v.J6),i.rXU(f.o_p),i.rXU(l.nX),i.rXU(f.gZv),i.rXU(v.iH))}}static{this.\u0275cmp=i.VBU({type:rn,selectors:[["igo-debug"]],features:[i.Vt3],decls:6,vars:6,consts:[["fxLayout","column","fxFlex","",1,"settings-debug"],[1,"settings-container"],[1,"font-body1","nv-label","label-color"],[3,"selectionChanged","maxHeight","selection","input"]],template:function(Jt,Rt){1&Jt&&(i.j41(0,"div",0)(1,"div",1)(2,"div",2),i.EFF(3),i.nI1(4,"translate"),i.k0s(),i.j41(5,"nv-dropdown",3),i.bIt("selectionChanged",function(tr){return Rt.languageChanged(tr)}),i.k0s()()()),2&Jt&&(i.R7$(3),i.JRh(i.bMT(4,4,"settings.general.displayLanguage")),i.R7$(2),i.Y8G("maxHeight",300)("selection",Rt.initialLangIndex)("input",Rt.languageNames))},dependencies:[ra.T,m.DJ,m.UI,Be.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.settings-debug[_ngcontent-%COMP%]{max-width:100%;padding:24px;overflow-y:overlay}.isLtr[_nghost-%COMP%] .settings-debug[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-debug[_ngcontent-%COMP%]{margin-right:-24px}html[dir=ltr][_ngcontent-%COMP%] .settings-debug[_ngcontent-%COMP%]{--dummy4: 0;margin-right:-24px}.isRtl[_nghost-%COMP%] .settings-debug[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-debug[_ngcontent-%COMP%]{margin-left:-24px}html[dir=rtl][_ngcontent-%COMP%] .settings-debug[_ngcontent-%COMP%]{--dummy4: 0;margin-left:-24px}.label-color[_ngcontent-%COMP%]{color:#ffffffe6}.settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:60px}.isLtr[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}"]})}}return rn})(),data:{level:2}},{path:"highlights",component:tt,data:{level:2}},{path:"hud",component:bi,data:{level:2}},{path:"notifications",component:yo,data:{level:2}},{path:"shortcuts",component:qn,data:{level:2}},{path:"storage",component:fo,data:{level:2}},{path:"video",component:la,data:{level:2}},{path:"audio",component:oa,data:{level:2}},{path:"system",component:tn,data:{level:2}}];let To=(()=>{class rn{static{this.\u0275fac=function(Jt){return new(Jt||rn)}}static{this.\u0275mod=i.$C({type:rn})}static{this.\u0275inj=i.G2t({imports:[n.MD,S.G,d.YF,y.i,l.iI.forChild(po),(0,v.BU)()]})}}return rn})();i.wjB(Si,function(){return[n.YU,n.bT,a.$,rt.X,Pe.I,m.DJ,m.BO,m.sA,m.G2,m.UI,Qe.PW,se.BC,se.vS,Ve.P2,St.t,Se.tG]},function(){return[Be.D9]})},76560:(Bt,z,s)=>{"use strict";s.d(z,{Gj:()=>f,Hu:()=>S,kO:()=>y,oO:()=>v,vO:()=>d});const l=s(20924).Or.Share.Shareserver.HotkeyEnum,d=new Map([[l.OpenIGO,[17,71]],[l.Screenshot,[17,49]],[l.OpenAnsel,[17,50]],[l.RecordToggle,[17,57]],[l.DVRSave,[17,48]],[l.DVRToggle,[17,16,48]],[l.MicToggle,[17,77]],[l.FreeStyleToggleStyle1,[]],[l.FreeStyleToggleStyle2,[]],[l.FreeStyleToggleStyle3,[]],[l.NativeKeyboardInputDialog,[17,75]],[l.ConnectGfnBroadcastToggle,[]],[l.QuitGame,[18,115]],[l.StatisticsToggle,[17,78]]]),v=new Map([[l.OpenIGO,[65335,71]],[l.Screenshot,[65335,49]],[l.OpenAnsel,[65335,50]],[l.RecordToggle,[65335,57]],[l.DVRSave,[65335,48]],[l.DVRToggle,[65335,16,48]],[l.MicToggle,[65335,77]],[l.FreeStyleToggleStyle1,[]],[l.FreeStyleToggleStyle2,[]],[l.FreeStyleToggleStyle3,[]],[l.NativeKeyboardInputDialog,[65335,75]],[l.ConnectGfnBroadcastToggle,[]],[l.QuitGame,[65335,81]],[l.StatisticsToggle,[65335,78]],[l.InStreamPaste,[65335,86]]]),S=new Map([[l.StatisticsToggle,[17,16,69]]]),y=new Map([[l.StatisticsToggle,[65335,16,69]]]),f=new Map([[l.MicToggle,[65335,16,77]],[l.QuitGame,[65335,16,88]]])},67904:(Bt,z,s)=>{"use strict";s.d(z,{v:()=>N});var n=s(65726),l=s(99047),d=s(75707),v=s(58527),S=s(1229),y=s(96542),f=s(61142),O=s(3457),P=s(28139),_=s(97979),i=s(99204),r=s(29370);const a=(L,E)=>({"gallery-item":L,"gallery-item-nvapp":E}),c=(L,E)=>({"width.px":L,"height.px":E});function m(L,E){if(1&L&&(v.j41(0,"div",10)(1,"span",11),v.EFF(2),v.k0s()()),2&L){const g=v.XpG();v.R7$(2),v.JRh(g.highlightName)}}function M(L,E){if(1&L&&(v.j41(0,"div",12)(1,"span",11),v.EFF(2),v.k0s()()),2&L){const g=v.XpG();v.R7$(2),v.JRh(g.duration)}}function D(L,E){if(1&L&&v.nrm(0,"img",13),2&L){const g=v.XpG();v.Y8G("src",g.item.data,v.B4B)("ngStyle",v.l_i(2,c,g.thumbSize,g.thumbSize))}}function I(L,E){1&L&&v.nrm(0,"mat-spinner",14)}function U(L,E){if(1&L){const g=v.RV6();v.j41(0,"mat-icon",15),v.bIt("click",function(B){return v.eBV(g),v.Njj(B.stopPropagation())}),v.k0s()}}function V(L,E){1&L&&v.nrm(0,"mat-icon",16)}function T(L,E){1&L&&v.nrm(0,"div",17)}let N=(()=>{class L{constructor(g,R,B){this.galleryService=g,this.translateService=R,this.igoConfig=B,this.initialDelay=!1,this.isGFNClient=this.igoConfig.GFNCefClient}ngAfterViewInit(){this.item&&!this.item.data&&this.scrolling&&(this.metadataReq$=this.scrolling.pipe((0,n.c)(this.initialDelay?300:0),(0,l.$)(g=>!1===g),(0,d.ZZ)(()=>this.galleryService.fillInFileData(this.item))).subscribe())}ngOnDestroy(){this.metadataReq$&&this.metadataReq$.unsubscribe()}get highlightName(){const g=`highlightLabels.${this.item.hlName}`;let R=this.translateService.instant(g);return R===g&&(R=this.item.hlName),R}get duration(){let g="";return void 0!==this.item.duration&&(g="00:"===this.item.duration.slice(0,3)?this.item.duration.slice(3):this.item.duration.slice(0)),g}static{this.\u0275fac=function(R){return new(R||L)(v.rXU(S.AFS),v.rXU(y.c$),v.rXU(S.k$F))}}static{this.\u0275cmp=v.VBU({type:L,selectors:[["nv-gallery-item"]],inputs:{item:"item",scrolling:"scrolling",activeItem:"activeItem",thumbSize:"thumbSize",initialDelay:"initialDelay"},decls:11,vars:15,consts:[[3,"ngClass","ngStyle"],["class","gallery-overlay-hlname-div gallery-overlay",4,"ngIf"],["class","gallery-overlay-duration-div gallery-overlay",4,"ngIf"],[3,"src","ngStyle",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center",1,"gallery-overlay"],["diameter","32","tabindex","-1","color","accent",4,"ngIf"],["svgIcon","gallery",3,"click",4,"ngIf"],["svgIcon","alert_circle","class","icon-normal gallery-overlay-play-icon","tabindex","-1",4,"ngIf"],["class","gallery-active",4,"ngIf"],[1,"gallery-image"],[1,"gallery-overlay-hlname-div","gallery-overlay"],[1,"font-body2"],[1,"gallery-overlay-duration-div","gallery-overlay"],[3,"src","ngStyle"],["diameter","32","tabindex","-1","color","accent"],["svgIcon","gallery",3,"click"],["svgIcon","alert_circle","tabindex","-1",1,"icon-normal","gallery-overlay-play-icon"],[1,"gallery-active"]],template:function(R,B){1&R&&(v.j41(0,"mat-card",0)(1,"mat-card-content"),v.DNE(2,m,3,1,"div",1)(3,M,3,1,"div",2)(4,D,1,5,"img",3),v.j41(5,"div",4),v.DNE(6,I,1,0,"mat-spinner",5)(7,U,1,0,"mat-icon",6)(8,V,1,0,"mat-icon",7),v.k0s(),v.DNE(9,T,1,0,"div",8),v.nrm(10,"div",9),v.k0s()()),2&R&&(v.Y8G("ngClass",v.l_i(9,a,B.isGFNClient,!B.isGFNClient))("ngStyle",v.l_i(12,c,B.thumbSize,B.thumbSize)),v.R7$(2),v.Y8G("ngIf",B.item.hlName),v.R7$(),v.Y8G("ngIf",B.item.duration),v.R7$(),v.Y8G("ngIf",B.item.data),v.R7$(2),v.Y8G("ngIf",B.isGFNClient&&!B.item.data&&!B.item.cancel),v.R7$(),v.Y8G("ngIf",!B.isGFNClient&&!B.item.data&&!B.item.cancel),v.R7$(),v.Y8G("ngIf",B.item.cancel),v.R7$(),v.Y8G("ngIf",B.item===B.activeItem))},dependencies:[f.YU,f.bT,f.B3,O.DJ,O.sA,P.PW,P.eI,_._m,_.Rm,i.LG,r.An],styles:[".gallery-item[_ngcontent-%COMP%]{padding:0;box-sizing:border-box;background-color:var(--primary-900);box-shadow:none;border-radius:0}.gallery-item-nvapp[_ngcontent-%COMP%]{padding:0;box-sizing:border-box;background-color:var(--gallery-item-bg-color);color:var(--gallery-item-text-color);box-shadow:none;border-radius:0}[_nghost-%COMP%]:hover .gallery-image[_ngcontent-%COMP%]{border-color:var(--gallery-item-image-hover-border-color);border-width:1px;border-style:solid;background-color:var(--gallery-item-image-hover-bg-color)}[_nghost-%COMP%]:active .gallery-image[_ngcontent-%COMP%]{background-color:var(--gallery-item-image-active-bg-color)}.gallery-overlay[_ngcontent-%COMP%], .gallery-active[_ngcontent-%COMP%], .gallery-image[_ngcontent-%COMP%]{box-sizing:border-box;position:absolute;top:0;left:0;height:100%;width:100%;pointer-events:none}.gallery-inprogress[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;z-index:99;height:100%;width:100%;box-sizing:border-box;border-style:dashed;border-width:2px;color:transparent}.gallery-overlay-play-icon[_ngcontent-%COMP%]{width:33px;height:33px;font-size:33px;margin:0;opacity:.95}.gallery-overlay-common[_ngcontent-%COMP%], .gallery-overlay-duration-div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .gallery-overlay-hlname-div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{position:absolute;color:var(--gallery-item-overlay-common-text-color);white-space:normal;background-color:var(--gallery-item-overlay-bg-color);padding:0}.gallery-active[_ngcontent-%COMP%]{border:2px solid var(--accent-500);z-index:1}.gallery-overlay-hlname-div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin:0 2px 2px;padding:0 5px;max-width:calc(100% - 14px);bottom:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.gallery-overlay-duration-div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{padding:0 5px}.isLtr[_nghost-%COMP%] .gallery-overlay-duration-div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .gallery-overlay-duration-div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin:2px 0 0 2px}html[dir=ltr][_ngcontent-%COMP%] .gallery-overlay-duration-div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{--dummy: 0;margin:2px 0 0 2px}.isRtl[_nghost-%COMP%] .gallery-overlay-duration-div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .gallery-overlay-duration-div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin:2px 2px 0 0}html[dir=rtl][_ngcontent-%COMP%] .gallery-overlay-duration-div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{--dummy: 0;margin:2px 2px 0 0}"]})}}return L})()},43664:(Bt,z,s)=>{"use strict";s.d(z,{$:()=>d});var n=s(58527),l=s(44224);let d=(()=>{class v{constructor(){this.marginNotReq=!1}static{this.\u0275fac=function(f){return new(f||v)}}static{this.\u0275cmp=n.VBU({type:v,selectors:[["nv-divider"]],inputs:{marginNotReq:"marginNotReq"},decls:1,vars:2,consts:[[1,"nv-divider"]],template:function(f,O){1&f&&n.nrm(0,"mat-divider",0),2&f&&n.AVh("nv-divider-side-margin",O.marginNotReq)},dependencies:[l.q],styles:[".nv-divider[_ngcontent-%COMP%]{margin:16px;background-color:var(--nv-divider-bg-color)}.isLtr[_nghost-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%]{margin-left:0}html[dir=ltr][_ngcontent-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%]{--dummy3: 0;margin-left:0}.isRtl[_nghost-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%]{margin-right:0}html[dir=rtl][_ngcontent-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%]{--dummy3: 0;margin-right:0}.isLtr[_nghost-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%]{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%]{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%]{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%]{--dummy4: 0;margin-left:0}"]})}}return v})()},83486:(Bt,z,s)=>{"use strict";s.d(z,{T:()=>V});var n=s(58527),l=s(44296),d=s(1229),v=s(61142),S=s(3457),y=s(28139),f=s(51394),O=s(44224),P=s(29370),_=s(51635),i=s(31308),r=s(98504),a=s(52834),c=s(96542);const m=["dropdownContainer"],M=T=>({"max-height.px":T}),D=(T,N)=>({"subitem-left-padding-gfn":T,"subitem-left-padding-nvapp":N});function I(T,N){1&T&&n.nrm(0,"mat-divider")}function U(T,N){if(1&T){const L=n.RV6();n.qex(0),n.j41(1,"button",10),n.bIt("click",function(){const g=n.eBV(L).index,R=n.XpG();return n.Njj(R.itemSelect(g))}),n.j41(2,"div",11),n.EFF(3),n.nI1(4,"translate"),n.k0s()(),n.DNE(5,I,1,0,"mat-divider",12),n.bVm()}if(2&T){const L=N.$implicit,E=N.index,g=n.XpG();n.R7$(),n.AVh("active",E==g.selection),n.Y8G("ngClass",n.l_i(8,D,!g.tvMode&&!g.isNvapp,!g.tvMode&&g.isNvapp)),n.R7$(),n.Y8G("ngClass",g.tvMode?"font-body2":"font-body1 font-color-primary subitem-left-padding"),n.R7$(),n.SpI(" ",n.bMT(4,6,L)," "),n.R7$(2),n.Y8G("ngIf",E===g.dividerIndex)}}let V=(()=>{class T{set disabled(L){this.disabledState=L,this.disable=L||!!(this.input&&this.input.length<2)}get input(){return this._input}set input(L){this._input=L,this.setEntry()}set dividerIndex(L){this._dividerIndex=L}get dividerIndex(){return this._dividerIndex}set selection(L){this._selection=L,this.setEntry()}get selection(){return this._selection}constructor(L,E){this.navigationService=L,this.featureSupportService=E,this.disabledState=void 0,this.disable=!1,this.menuOpen=!1,this._input=[],this.isBackgroundColorReq=!0,this._dividerIndex=-1,this._selection=0,this.tvMode=!1,this.isNvapp=!1,this.selectionChanged=new n.bkB,this.tvMode=this.featureSupportService.isTVMode(),this.isNvapp=this.featureSupportService.isNvApp()}setEntry(){this.input&&this.input.length>0?((this.selection<0||this.selection>=this.input.length)&&(this.selection=0),this.entry=this.input[this.selection],this.disable=!!this.disabledState||this.input.length<2):(this.entry="",this.disable=!0)}ngOnInit(){this.setEntry()}itemSelect(L){this.selection!==L&&(this.selection=L,this.selectionChanged.emit(L),this.navigationService.disableEscapeEvent(!1),this.setEntry())}buttonToggle(L){setTimeout(()=>{if(this.menuOpen=L,this.navigationService.disableEscapeEvent(L),L){const E=this.dropdownContainer.nativeElement.offsetWidth;this.menuItems.forEach((g,R)=>{g._getHostElement().style.width=E+"px",this.selection===R&&g.focus()})}})}static{this.\u0275fac=function(E){return new(E||T)(n.rXU(d.o_p),n.rXU(d.Rvq))}}static{this.\u0275cmp=n.VBU({type:T,selectors:[["nv-dropdown"]],viewQuery:function(E,g){if(1&E&&(n.GBs(m,5),n.GBs(l.gy,5)),2&E){let R;n.mGM(R=n.lsd())&&(g.dropdownContainer=R.first),n.mGM(R=n.lsd())&&(g.menuItems=R)}},inputs:{maxHeight:"maxHeight",disabled:"disabled",input:"input",textFont16:"textFont16",isBackgroundColorReq:"isBackgroundColorReq",dividerIndex:"dividerIndex",selection:"selection"},outputs:{selectionChanged:"selectionChanged"},decls:12,vars:17,consts:[["dropdownContainer",""],["menu","matMenu"],["fxFlex","grow",1,"nv-dropdown"],["fxFlex","","matRipple","","fxLayout","row","fxLayoutAlign","start center","cdkMonitorElementFocus","",1,"nv-dropdown-label","hig-button-overlay",3,"menuOpened","menuClosed","matMenuTriggerFor","ngClass","disabled"],["dir","auto","fxFlex","",1,"menu-text",3,"ngClass"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","none",1,"nv-item-icon","arrow-icon"],["svgIcon","chevron_down",1,"icon-normal","osc-item-icon","arrow-icon"],["xPosition","after","yPosition","below","overlapTrigger","false",1,"nv-igo","mat-menu-max-height","font-color-primary"],[3,"ngStyle"],[4,"ngFor","ngForOf"],["mat-menu-item","","fxLayout","row","fxLayoutAlign","start center",1,"nv-dropdown-menu","hig-button-overlay",3,"click","ngClass"],["dir","auto",3,"ngClass"],[4,"ngIf"]],template:function(E,g){if(1&E){const R=n.RV6();n.j41(0,"div",2,0)(2,"button",3),n.bIt("menuOpened",function(){return n.eBV(R),n.Njj(g.buttonToggle(!0))})("menuClosed",function(){return n.eBV(R),n.Njj(g.buttonToggle(!1))}),n.j41(3,"div",4),n.EFF(4),n.nI1(5,"translate"),n.k0s(),n.j41(6,"div",5),n.nrm(7,"mat-icon",6),n.k0s()(),n.j41(8,"mat-menu",7,1)(10,"div",8),n.DNE(11,U,6,11,"ng-container",9),n.k0s()()()}if(2&E){const R=n.sdS(9);n.AVh("nv-dropdown-z",g.menuOpen),n.R7$(2),n.AVh("nv-dropdown-background-color",g.isBackgroundColorReq),n.Y8G("matMenuTriggerFor",R)("ngClass",g.tvMode?"font-body3":"nvapp-padding")("disabled",g.disable),n.R7$(),n.AVh("font-color-primary",!g.tvMode),n.Y8G("ngClass",g.textFont16?"font-body1":"font-body2"),n.R7$(),n.SpI(" ",n.bMT(5,13,g.entry)," "),n.R7$(6),n.Y8G("ngStyle",n.eq3(15,M,g.maxHeight)),n.R7$(),n.Y8G("ngForOf",g.input)}},dependencies:[v.YU,v.Sq,v.bT,v.B3,S.DJ,S.sA,S.UI,y.PW,y.eI,f.ig,l.pI,l.gy,l.fS,O.q,P.An,_.r6,i.vR,r.tH,a.I,c.D9],styles:[":host-context(.isRtl) .flip-rtl-element{transform:scaleX(-1)}html[dir=rtl] .flip-rtl-element{--dummy: 0;transform:scaleX(-1)}.hotkey-border{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}:host[disabled] .nv-item *{cursor:default}.nv-item-icon{width:36px;height:36px}.nv-item-icon mat-icon{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row{padding:0 24px}.nv-item-labels{padding:8px 0;height:100%}.nv-label{padding:8px 0}.default-cursor{cursor:default}.disabled-opacity{opacity:.38}:host-context(.tv-view) .nv-item-icon{width:40px;height:40px}:host-context(.tv-view) .nv-item-icon mat-icon,:host-context(.tv-view) .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}.nv-dropdown{width:100%;height:100%}:host-context(.isLtr) .nvapp-padding{padding-right:16px}html[dir=ltr] .nvapp-padding{--dummy2: 0;padding-right:16px}:host-context(.isRtl) .nvapp-padding{padding-left:16px}html[dir=rtl] .nvapp-padding{--dummy2: 0;padding-left:16px}:host-context(.isLtr) .nvapp-padding{padding-left:16px}html[dir=ltr] .nvapp-padding{--dummy1: 0;padding-left:16px}:host-context(.isRtl) .nvapp-padding{padding-right:16px}html[dir=rtl] .nvapp-padding{--dummy1: 0;padding-right:16px}.nv-dropdown-background-color{background-color:var(--nv-dropdown-bg-color)}.nv-dropdown-label .menu-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:456px}:host-context(.isLtr) .nv-dropdown-label .menu-text{text-align:left}html[dir=ltr] .nv-dropdown-label .menu-text{--dummy0: 0;text-align:left}:host-context(.isRtl) .nv-dropdown-label .menu-text{text-align:right}html[dir=rtl] .nv-dropdown-label .menu-text{--dummy0: 0;text-align:right}:host-context(.isLtr) .nv-dropdown-label .menu-text{padding:12px 0}html[dir=ltr] .nv-dropdown-label .menu-text{--dummy: 0;padding:12px 0}:host-context(.isRtl) .nv-dropdown-label .menu-text{padding:12px 0}html[dir=rtl] .nv-dropdown-label .menu-text{--dummy: 0;padding:12px 0}.tv-view .nv-dropdown-label .menu-text{max-width:100%}:host-context(.isLtr) .tv-view .nv-dropdown-label .menu-text{padding:16px 0 16px 8px}html[dir=ltr] .tv-view .nv-dropdown-label .menu-text{--dummy: 0;padding:16px 0 16px 8px}:host-context(.isRtl) .tv-view .nv-dropdown-label .menu-text{padding:16px 8px 16px 0}html[dir=rtl] .tv-view .nv-dropdown-label .menu-text{--dummy: 0;padding:16px 8px 16px 0}.nv-dropdown-z{z-index:9999}button.nv-dropdown-menu{box-sizing:border-box;margin:0;width:100%;height:unset}button.nv-dropdown-menu div{padding:8px 16px;overflow:hidden;text-overflow:ellipsis}:host-context(.isLtr) button.nv-dropdown-menu div{text-align:left}html[dir=ltr] button.nv-dropdown-menu div{--dummy0: 0;text-align:left}:host-context(.isRtl) button.nv-dropdown-menu div{text-align:right}html[dir=rtl] button.nv-dropdown-menu div{--dummy0: 0;text-align:right}button.nv-dropdown-menu.active div{color:var(--accent-500)}.nv-igo.mat-menu-max-height{max-height:872px}.nv-igo.mat-menu-max-height .mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}:host-context(.isLtr) .subitem-left-padding-gfn{padding-left:16px}html[dir=ltr] .subitem-left-padding-gfn{--dummy1: 0;padding-left:16px}:host-context(.isRtl) .subitem-left-padding-gfn{padding-right:16px}html[dir=rtl] .subitem-left-padding-gfn{--dummy1: 0;padding-right:16px}:host-context(.isLtr) .subitem-left-padding-nvapp{padding-left:32px}html[dir=ltr] .subitem-left-padding-nvapp{--dummy1: 0;padding-left:32px}:host-context(.isRtl) .subitem-left-padding-nvapp{padding-right:32px}html[dir=rtl] .subitem-left-padding-nvapp{--dummy1: 0;padding-right:32px}\n"],encapsulation:2})}}return T})()},55962:(Bt,z,s)=>{"use strict";s.d(z,{e:()=>a});var n=s(58527),l=s(1229),d=s(14354),v=s(99469);const S=["browser"],y=["locspan"],f=["entireItem"];function O(c,m){1&c&&(n.j41(0,"button",13),n.nI1(1,"translate"),n.nrm(2,"mat-icon",14),n.k0s()),2&c&&n.Y8G("matTooltip",n.bMT(1,1,"tooltips.ChangeLocation"))}function P(c,m){if(1&c&&(n.j41(0,"div",10)(1,"div",11),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.DNE(4,O,3,3,"button",12),n.k0s()),2&c){const M=n.XpG();n.R7$(2),n.SpI(" ",n.bMT(3,2,M.title)," "),n.R7$(2),n.Y8G("ngIf",M.openFunction)}}function _(c,m){if(1&c){const M=n.RV6();n.j41(0,"button",15,2),n.nI1(2,"translate"),n.bIt("click",function(){n.eBV(M);const I=n.XpG();return n.Njj(I.goUpOneLevel())}),n.nrm(3,"mat-icon",16),n.k0s()}2&c&&n.Y8G("matTooltip",n.bMT(2,1,"tooltips.ParentFolder"))}function i(c,m){if(1&c){const M=n.RV6();n.j41(0,"nv-item-button",23),n.bIt("clicked",function(){n.eBV(M);const I=n.XpG(2);return n.Njj(I.clearEntry())}),n.k0s()}}function r(c,m){if(1&c){const M=n.RV6();n.j41(0,"div",17),n.nrm(1,"div",18),n.DNE(2,i,1,0,"nv-item-button",19),n.j41(3,"div",20),n.nrm(4,"div",18),n.j41(5,"div",21)(6,"nv-item-button",22),n.bIt("clicked",function(){n.eBV(M);const I=n.XpG();return n.Njj(I.openBrowser())}),n.k0s()()()()}if(2&c){const M=n.XpG();n.R7$(2),n.Y8G("ngIf",M.showClose),n.R7$(4),n.Y8G("disabled",M.disabled)}}let a=(()=>{class c{constructor(M,D,I,U,V){this.route=M,this.navigationService=D,this.renderer=I,this.loggingService=U,this.featureSupportService=V,this.enableScrolling=!1,this.useIcon="folder",this.validEntry=!1,this.fileMode=!1,this.showClose=!1,this.textLarge=!0,this.textMedium=!1,this.textSmall=!1,this.titleClass="",this.isNvApp=!1,this._openFunction=!0,this._files="",this.clicked=new n.bkB,this.selected=new n.bkB,this.goUpOneLevel=function(){this.clicked.emit()},this.logger=this.loggingService.getLogger("NvFolderBrowser"),this.isNvApp=this.featureSupportService.isNvApp()}get showTitle(){return this._showTitle}set showTitle(M){this._showTitle=M,this.checkOverrides()}get openFunction(){return this._openFunction}set openFunction(M){this._openFunction=M,this.checkOverrides()}get files(){return this._files}set files(M){this._files=M,this.useIcon="true"===M?"file":"folder",this.fileMode="true"===M}set pathLocation(M){M&&setTimeout(()=>{this.location=M,this.validEntry=""!==M,this.showClose=this.validEntry&&this.openFunction&&this.fileMode,this.checkOverrides();const D=this.getWidthOfText(this.location,"NVIDIA","14px"),U=this.locspan.nativeElement.offsetWidth-(this.entireItem.nativeElement.offsetWidth-this.locspan.nativeElement.offsetWidth)-8;this.enableScrolling=D.valueOf()>U,this.logger.info("Text Width: "+D+" Element Width: "+U+" Enable scroll: "+this.enableScrolling)})}get pathLocation(){return this.location}checkOverrides(){this.textMedium=this.showClose||!this._openFunction||this._openFunction&&!this._showTitle,this.textSmall=this.showClose&&(!this._openFunction||this._openFunction&&!this._showTitle),this.textLarge=!this.textMedium&&!this.textSmall,this.logger.info("Large: "+this.textLarge+" Medium: "+this.textMedium+" Small: "+this.textSmall),this.titleClass="font-body1 font-color-primary"}getFormat(){switch(this.caller){case"storage":case"perfmon":return"font-body2 font-color-tertiary";case"browser":return"font-body1 font-color-primary";case"broadcast":return"text-pad font-body2 disabled-opacity"}}openBrowser(){this.logger.info("Folder Browser source:",this.source),this.logger.info("Folder Browser caller:",this.caller),this.navigationService.navigate(["../browser",{title:this.title,location:this.pathLocation,source:this.source,external:this.external,caller:this.caller,files:this.files}],{relativeTo:this.route.parent,skipLocationChange:!0},l.jby.browser)}clearEntry(){setTimeout(()=>{this.location="",this.validEntry=!1,this.showClose=!1,this.enableScrolling=!1,this.checkOverrides(),this.selected.emit(this.source)})}focus(){this.element.nativeElement.focus()}getWidthOfText(M,D,I){const V=this.renderer.createElement("canvas").getContext("2d");return V.font=I+" "+D,V.measureText(M).width}static{this.\u0275fac=function(D){return new(D||c)(n.rXU(d.nX),n.rXU(l.o_p),n.rXU(n.sFG),n.rXU(v.J6),n.rXU(l.Rvq))}}static{this.\u0275cmp=n.VBU({type:c,selectors:[["nv-folder-browser"]],viewQuery:function(D,I){if(1&D&&(n.GBs(S,5),n.GBs(y,7),n.GBs(f,7)),2&D){let U;n.mGM(U=n.lsd())&&(I.element=U.first),n.mGM(U=n.lsd())&&(I.locspan=U.first),n.mGM(U=n.lsd())&&(I.entireItem=U.first)}},inputs:{title:"title",source:"source",placeholder:"placeholder",caller:"caller",disabled:"disabled",external:"external",showTitle:"showTitle",openFunction:"openFunction",files:"files",pathLocation:"pathLocation"},outputs:{clicked:"clicked",selected:"selected"},decls:10,vars:20,consts:[["entireItem",""],["locspan",""],["browser",""],["fxLayout","column","fxLayoutAlign","start center",1,"nv-folder-title",3,"click","ngClass"],["class","title","fxFlexFill","","fxFlex","grow","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFlex","grow","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","none",3,"click","ngClass"],["tabindex","-1"],["class","nv-item-icon browse-btn icon-normal folder-icon-height","matTooltipClass","nv-igo igo-tooltip",3,"matTooltip","click",4,"ngIf"],["fxLayoutAlign","start center",4,"ngIf"],["fxFlexFill","","fxFlex","grow","fxLayout","row","fxLayoutAlign","start center",1,"title"],["fxFlex","grow",1,"title-font","title-padding-left"],["class","folder-icon-height","matTooltipClass","nv-igo igo-tooltip",3,"matTooltip",4,"ngIf"],["matTooltipClass","nv-igo igo-tooltip",1,"folder-icon-height",3,"matTooltip"],["svgIcon","folder",1,"icon-normal","button-icon-color","title-padding-right"],["matTooltipClass","nv-igo igo-tooltip",1,"nv-item-icon","browse-btn","icon-normal","folder-icon-height",3,"click","matTooltip"],["svgIcon","browser_nav_up",1,"button-icon-color"],["fxLayoutAlign","start center"],["fxFlex","none",1,"nv-horizontal-gap-8"],["svgIcon","close",3,"clicked",4,"ngIf"],[1,"open-btn-area"],[1,"open-btn-hover"],["svgIcon","image","tooltip","tooltips.SelectImage",3,"clicked","disabled"],["svgIcon","close",3,"clicked"]],template:function(D,I){if(1&D){const U=n.RV6();n.j41(0,"div",3),n.bIt("click",function(){return n.eBV(U),n.Njj(I.openBrowser())}),n.DNE(1,P,5,4,"div",4),n.j41(2,"div",5,0)(4,"div",6,1),n.bIt("click",function(){return n.eBV(U),n.Njj(I.openFunction?I.openBrowser():I.goUpOneLevel())}),n.j41(6,"span",7),n.EFF(7),n.k0s()(),n.DNE(8,_,4,3,"button",8)(9,r,7,2,"div",9),n.k0s()()}2&D&&(n.AVh("disable-hover",I.disabled),n.Y8G("ngClass",I.showTitle?"padding-top-with-title":"padding-top-without-title"),n.R7$(),n.Y8G("ngIf",I.showTitle),n.R7$(),n.AVh("nv-folder-browser-selector","broadcast"===I.caller),n.R7$(2),n.AVh("nv-folder-text",I.enableScrolling)("nv-folder-text-noscroll",!I.enableScrolling)("nv-folder-text-large",I.textLarge)("nv-folder-text-medium",I.textMedium)("nv-folder-text-small",I.textSmall),n.Y8G("ngClass",I.getFormat()),n.R7$(3),n.JRh(I.location?I.location:I.placeholder),n.R7$(),n.Y8G("ngIf",!I.openFunction),n.R7$(),n.Y8G("ngIf","broadcast"===I.caller))},styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}.nv-folder-title[_ngcontent-%COMP%]:hover{background:var(--nv-folder-title-hover-text-color);cursor:pointer}.disable-hover[_ngcontent-%COMP%]{pointer-events:none}.nv-folder-browser-selector[_ngcontent-%COMP%]{background-color:var(--nv-folder-browser-selector-bg-color);height:52px}.isLtr[_nghost-%COMP%] .nv-folder-browser-selector[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-folder-browser-selector[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-folder-browser-selector[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .nv-folder-browser-selector[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-folder-browser-selector[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-folder-browser-selector[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.padding-top-with-title[_ngcontent-%COMP%]{padding-top:14px;padding-bottom:14px}.folder-icon-height[_ngcontent-%COMP%]{height:24px}.padding-top-without-title[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.nv-folder-text-noscroll[_ngcontent-%COMP%], .nv-folder-text[_ngcontent-%COMP%]{border:0;margin:0;height:24px;box-sizing:border-box;overflow:hidden;position:relative}.nv-folder-text-noscroll[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .nv-folder-text[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{white-space:nowrap}.nv-folder-text-noscroll.nv-folder-text-large[_ngcontent-%COMP%], .nv-folder-text.nv-folder-text-large[_ngcontent-%COMP%]{width:480px}.nv-folder-text-noscroll.nv-folder-text-medium[_ngcontent-%COMP%], .nv-folder-text.nv-folder-text-medium[_ngcontent-%COMP%]{width:436px}.nv-folder-text-noscroll.nv-folder-text-small[_ngcontent-%COMP%], .nv-folder-text.nv-folder-text-small[_ngcontent-%COMP%]{width:360px}.nv-folder-text[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;transform:translate(0);transition:1s;top:0;left:0}.nv-folder-text[_ngcontent-%COMP%]:hover.nv-folder-text-large span[_ngcontent-%COMP%]{transform:translate(calc(480px - 100%))}.nv-folder-text[_ngcontent-%COMP%]:hover.nv-folder-text-medium span[_ngcontent-%COMP%]{transform:translate(calc(436px - 100%))}.nv-folder-text[_ngcontent-%COMP%]:hover.nv-folder-text-small span[_ngcontent-%COMP%]{transform:translate(calc(360px - 100%))}.isLtr[_nghost-%COMP%] .browse-btn[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .browse-btn[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .browse-btn[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .browse-btn[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .browse-btn[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .browse-btn[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.browse-btn[disabled][_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]{opacity:.38}.open-btn-area[_ngcontent-%COMP%]{background-color:var(--nv-folder-browser-open-btn-bg-color);height:52px}.open-btn-hover[_ngcontent-%COMP%]{margin-top:8px;height:36px}.isLtr[_nghost-%COMP%] .title-padding-left[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .title-padding-left[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .title-padding-left[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .title-padding-left[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .title-padding-left[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .title-padding-left[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .title-padding-right[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .title-padding-right[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .title-padding-right[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .title-padding-right[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .title-padding-right[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .title-padding-right[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.title-padding-top[_ngcontent-%COMP%]{padding-top:14px}.title-padding-bottom[_ngcontent-%COMP%]{padding-bottom:14px}.title-font[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 16px;--font-body-line-height: 24px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0;color:var(--hig-ui-text-primary-color)}.tv-view[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .title-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .title-font[_ngcontent-%COMP%]{--font-body-size: 32px;--font-body-line-height: 48px;--font-body-color: rgba(255, 255, 255, .85)}.path-padding[_ngcontent-%COMP%]{padding:12px 16px}.isLtr[_nghost-%COMP%] .path-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .path-padding[_ngcontent-%COMP%]{padding-right:0}html[dir=ltr][_ngcontent-%COMP%] .path-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:0}.isRtl[_nghost-%COMP%] .path-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .path-padding[_ngcontent-%COMP%]{padding-left:0}html[dir=rtl][_ngcontent-%COMP%] .path-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:0}.nvapp-igo-view[_nghost-%COMP%] .nv-folder-text.nv-folder-text-medium[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .nv-folder-text.nv-folder-text-medium[_ngcontent-%COMP%]{width:436px}.button-icon-color[_ngcontent-%COMP%]{color:var(--hig-button-mat-icon-color)}"]})}}return c})()},21254:(Bt,z,s)=>{"use strict";s.d(z,{Q:()=>r});var n=s(58527),l=s(61142),d=s(3457),v=s(56106),S=s(74292),y=s(50599),f=s(52834),O=s(96542);const P=a=>({arg:a});function _(a,c){if(1&a&&(n.j41(0,"div",5)(1,"mat-hint"),n.EFF(2),n.k0s()()),2&a){const m=n.XpG(),M=n.sdS(3);n.R7$(2),n.Lme("",(null==M.value?null:M.value.length)||0,"/",m.textMaxLength,"")}}let r=(()=>{class a{constructor(){this.characterCounter=!1,this.isColorCode=!1,this.textChange=new n.bkB,this.stringChange=new n.bkB,this.focus=new n.bkB,this.blur=new n.bkB}updateSource(){this.isColorCode&&!this.validateCustomFontColorInput(this.text)&&(this.text=this.defaultColorCode),this.textChange.emit(this.text)}textInput(m){const M=m.target;M&&this.textMaxLength<=M.value.length?M.value=this.text=M.value.slice(0,this.textMaxLength):this.text=M.value,this.stringChange.emit(this.text)}onFocus(){this.focus.emit()}onBlur(){this.blur.emit()}validateCustomFontColorInput(m){return new RegExp("^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$").test(m)}static{this.\u0275fac=function(M){return new(M||a)}}static{this.\u0275cmp=n.VBU({type:a,selectors:[["nv-input"]],inputs:{textMaxLength:"textMaxLength",text:"text",disabled:"disabled",characterCounter:"characterCounter",readonly:"readonly",tabindex:"tabindex",placeholderText:"placeholderText",isColorCode:"isColorCode",defaultColorCode:"defaultColorCode"},outputs:{textChange:"textChange",stringChange:"stringChange",focus:"focus",blur:"blur"},decls:6,vars:11,consts:[["input",""],["fxLayout","row","fxLayoutAlign","start center"],["fxLayout","column","fxFlex",""],["type","text","fxLayoutAlign","center center","matInput","","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"font-body2","nv-input",3,"ngModelChange","change","input","focus","blur","placeholder","ngModel","disabled","readonly","tabindex"],["fxLayoutAlign","end","class","font-body2",4,"ngIf"],["fxLayoutAlign","end",1,"font-body2"]],template:function(M,D){if(1&M){const I=n.RV6();n.j41(0,"div",1)(1,"div",2)(2,"input",3,0),n.nI1(4,"translate"),n.mxI("ngModelChange",function(V){return n.eBV(I),n.DH7(D.text,V)||(D.text=V),n.Njj(V)}),n.bIt("change",function(){return n.eBV(I),n.Njj(D.updateSource())})("input",function(V){return n.eBV(I),n.Njj(D.textInput(V))})("focus",function(){return n.eBV(I),n.Njj(D.onFocus())})("blur",function(){return n.eBV(I),n.Njj(D.onBlur())}),n.k0s(),n.DNE(5,_,3,2,"div",4),n.k0s()()}2&M&&(n.R7$(2),n.Y8G("placeholder",n.i5U(4,6,null==D.placeholderText?null:D.placeholderText.text,n.eq3(9,P,null==D.placeholderText?null:D.placeholderText.arg))),n.R50("ngModel",D.text),n.Y8G("disabled",D.disabled)("readonly",D.readonly)("tabindex",D.tabindex),n.R7$(3),n.Y8G("ngIf",D.characterCounter))},dependencies:[l.bT,d.DJ,d.sA,d.UI,v.me,v.BC,v.vS,S.MV,y.fg,f.I,O.D9],styles:[".nv-input[_ngcontent-%COMP%]{height:52px;width:100%;margin:8px 0;background-color:var(--nv-input-bg-color);border:0;caret-color:#76b900;box-sizing:border-box;padding:16px 16px 15px;border-bottom:1px solid rgba(255,255,255,.3);color:var(--nv-input-text-color)}.nv-input[_ngcontent-%COMP%]:disabled{color:#ffffff61;cursor:default}.nv-input[_ngcontent-%COMP%]:focus{padding-bottom:14px;border-bottom:2px solid #76b900}[_ngcontent-%COMP%]::placeholder{color:#ffffff61}input[_ngcontent-%COMP%]:focus::-webkit-input-placeholder{color:transparent}"]})}}return a})()},43822:(Bt,z,s)=>{"use strict";s.d(z,{j:()=>L});var n=s(58527),l=s(1229),d=s(61142),v=s(3457),S=s(28139),y=s(47973),f=s(29370),O=s(44186),P=s(96542),_=s(52834);const i=["button"],r=E=>({"default-cursor":E}),a=E=>({"nv-last-icon":E});function c(E,g){if(1&E&&(n.j41(0,"div",10),n.nrm(1,"mat-icon",11),n.k0s()),2&E){const R=n.XpG();n.AVh("svg-icon-right-margin",(R.titleString||R.subTitle)&&!R.tvMode)("single-icon-top-padding",!R.titleString&&!R.tvMode)("svg-icon-details",R.titleString&&!R.tvMode)("svg-icon-top-padding",R.titleString&&R.subTitle&&!R.tvMode)("svg-icon-top-padding-no-subtitle",R.titleString&&!R.subTitle&&!R.tvMode),n.R7$(),n.AVh("icon-padding-enlargeFont",R.enlargeFontMode&&R.alignEnlargeFont),n.FS9("svgIcon",R.svgIcon)}}function m(E,g){if(1&E&&n.nrm(0,"span",15),2&E){const R=n.XpG(2);n.Y8G("ngClass",R.titleStringFont)("translate",R.titleString)("translateParams",R.titleArg)}}function M(E,g){if(1&E&&n.nrm(0,"span",16),2&E){const R=n.XpG(2);n.AVh("disabled-opacity",R.tvMode&&!R.disabled),n.Y8G("ngClass",R.subTitleStringFont)("translate",R.subTitle)("translateParams",R.subTitleArg)}}function D(E,g){if(1&E&&(n.j41(0,"div",12),n.DNE(1,m,1,3,"span",13)(2,M,1,5,"span",14),n.k0s()),2&E){const R=n.XpG();n.AVh("nv-item-labels",R.tvMode&&R.svgIcon)("nv-button-top-padding-no-subtitle",!R.subTitle&&!R.tvMode)("nv-button-top-padding",R.subTitle&&!R.tvMode),n.R7$(),n.Y8G("ngIf",R.titleString),n.R7$(),n.Y8G("ngIf",R.subTitle&&R.subtitleVisible)}}function I(E,g){if(1&E&&(n.j41(0,"div",17),n.nrm(1,"mat-icon",11),n.k0s()),2&E){const R=n.XpG();n.AVh("svg-icon-right-margin",R.titleString||R.subTitle),n.R7$(),n.FS9("svgIcon",R.svgIcon)}}function U(E,g){if(1&E){const R=n.RV6();n.j41(0,"div",18)(1,"button",19),n.bIt("click",function(X){n.eBV(R);const H=n.XpG();return n.Njj(H.onSecondButtonClick(X))}),n.j41(2,"div",20),n.nrm(3,"mat-icon",21),n.k0s()()()}}function V(E,g){if(1&E&&(n.j41(0,"div",22),n.EFF(1),n.k0s()),2&E){const R=n.XpG();n.R7$(),n.SpI(" ",R.subText," ")}}function T(E,g){if(1&E&&(n.j41(0,"div",23),n.nrm(1,"mat-icon",24),n.k0s()),2&E){const R=n.XpG();n.AVh("single-icon-top-padding",!R.titleString&&!R.tvMode)("svg-icon-details",R.titleString&&!R.tvMode)("svg-icon-top-padding",R.titleString&&R.subTitle&&!R.tvMode)("svg-icon-top-padding-no-subtitle",R.titleString&&!R.subTitle&&!R.tvMode)("nv-url-icon-right",R.tvMode&&R.tvRightIconExtraPadding),n.Y8G("ngClass",n.eq3(13,a,R.titleString)),n.R7$(),n.AVh("icon-padding-enlargeFont",R.enlargeFontMode)}}function N(E,g){if(1&E&&(n.j41(0,"div",23),n.nrm(1,"mat-icon",11),n.k0s()),2&E){const R=n.XpG();n.AVh("single-icon-top-padding",!R.titleString&&!R.tvMode)("svg-icon-details",R.titleString&&!R.tvMode)("svg-icon-top-padding",R.titleString&&R.subTitle&&!R.tvMode)("svg-icon-top-padding-no-subtitle",R.titleString&&!R.subTitle&&!R.tvMode)("nv-url-icon-right",R.tvMode&&R.tvRightIconExtraPadding),n.Y8G("ngClass",n.eq3(12,a,R.titleString)),n.R7$(),n.FS9("svgIcon",R.urlIcon)}}let L=(()=>{class E{constructor(R){this.featureSupportService=R,this.svgIcon=void 0,this.urlIcon=void 0,this.iconOnRight=!1,this.disabled=!1,this.focusEnabled=!0,this.titleString=void 0,this.titleArg=void 0,this.tooltip=void 0,this.subTitle=void 0,this.subTitleArg=void 0,this.chevron=!1,this.subtitleVisible=!0,this.secondButton=!1,this.mainMenuUse=!1,this.subText=void 0,this.titleFontBold=!1,this.rotaryButtonSub=!1,this.tvRightIconExtraPadding=!0,this.tabindex=0,this.alignEnlargeFont=!0,this.applyGeometry=!1,this.useItemLableForClass=!1,this.tvMode=!1,this.enlargeFontMode=!1,this.clicked=new n.bkB,this.secondButtonclicked=new n.bkB,this.onClick=function(){this.clicked.emit()},this.onSecondButtonClick=function(B){B.stopPropagation(),this.secondButtonclicked.emit()},this.tvMode=this.featureSupportService.isTVMode(),this.enlargeFontMode=this.featureSupportService.enlargeIGOTextFont()}ngOnInit(){this.useItemLableForClass=this.urlIcon&&!this.mainMenuUse}ngAfterContentInit(){this.getTitleStringFont(),this.getSubTitleStringFont()}focus(){this.element.nativeElement.focus()}getTitleStringFont(){this.titleStringFont=this.titleFontBold?"font-sub1":this.tvMode&&!this.titleFontBold?"nv-url-main-title":!this.enlargeFontMode||this.tvMode||this.titleFontBold?"font-body1 font-color-primary":"font-body-largefont0 font-primary-color-enlargefont"}getSubTitleStringFont(){this.subTitleStringFont=this.tvMode?"font-body3":this.enlargeFontMode?"font-body-largefont1":"font-body2"}static{this.\u0275fac=function(B){return new(B||E)(n.rXU(l.Rvq))}}static{this.\u0275cmp=n.VBU({type:E,selectors:[["nv-item-button"]],viewQuery:function(B,X){if(1&B&&n.GBs(i,7),2&B){let H;n.mGM(H=n.lsd())&&(X.element=H.first)}},inputs:{svgIcon:"svgIcon",urlIcon:"urlIcon",iconOnRight:"iconOnRight",disabled:"disabled",focusEnabled:"focusEnabled",titleString:"titleString",titleArg:"titleArg",tooltip:"tooltip",subTitle:"subTitle",subTitleArg:"subTitleArg",chevron:"chevron",subtitleVisible:"subtitleVisible",secondButton:"secondButton",mainMenuUse:"mainMenuUse",subText:"subText",titleFontBold:"titleFontBold",rotaryButtonSub:"rotaryButtonSub",tvRightIconExtraPadding:"tvRightIconExtraPadding",tabindex:"tabindex",alignEnlargeFont:"alignEnlargeFont",applyGeometry:"applyGeometry"},outputs:{clicked:"clicked",secondButtonclicked:"secondButtonclicked"},decls:11,vars:23,consts:[["button",""],["mat-button","","fxFlex","","matTooltipClass","nv-igo igo-tooltip",1,"nv-item-button-container","complex-button","font-body2",3,"click","disabled","tabindex","ngClass","matTooltip"],["fxFlex","","fxLayout","row","fxLayoutAlign","start start",1,"nv-url-width"],["class","nv-item-icon","fxLayout","row","fxLayoutAlign","center center","fxFlex","none",3,"svg-icon-right-margin","single-icon-top-padding","svg-icon-details","svg-icon-top-padding","svg-icon-top-padding-no-subtitle",4,"ngIf"],["class","nv-url-titles","fxFlexAlign","center","fxLayout","column","fxLayoutAlign","start start","fxFlex","",3,"nv-item-labels","nv-button-top-padding-no-subtitle","nv-button-top-padding",4,"ngIf"],["class","nv-item-icon font-color-primary","fxLayout","row","fxLayoutAlign","center center","fxFlex","none",3,"svg-icon-right-margin",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","none",4,"ngIf"],["class","nv-url-icon nv-subtext font-color-secondary","fxLayout","column","fxLayoutAlign","center center","fxFlex","none",4,"ngIf"],["class","nv-url-icon font-color-primary","fxLayout","row","fxLayoutAlign","center center","fxFlex","none",3,"ngClass","single-icon-top-padding","svg-icon-details","svg-icon-top-padding","svg-icon-top-padding-no-subtitle","nv-url-icon-right",4,"ngIf"],["class","nv-url-icon font-color-primary","fxLayout","row","fxLayoutAlign","center center","fxFlex","none",3,"single-icon-top-padding","svg-icon-details","svg-icon-top-padding","svg-icon-top-padding-no-subtitle","nv-url-icon-right","ngClass",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","none",1,"nv-item-icon"],[3,"svgIcon"],["fxFlexAlign","center","fxLayout","column","fxLayoutAlign","start start","fxFlex","",1,"nv-url-titles"],["class","font-color-primary",3,"ngClass","translate","translateParams",4,"ngIf"],["class","font-color-tertiary font-color-primary",3,"ngClass","disabled-opacity","translate","translateParams",4,"ngIf"],[1,"font-color-primary",3,"ngClass","translate","translateParams"],[1,"font-color-tertiary","font-color-primary",3,"ngClass","translate","translateParams"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","none",1,"nv-item-icon","font-color-primary"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","none"],["mat-button","",1,"nv-item-button-container","complex-button","font-body2","second-button-padding",3,"click"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","none",1,"nv-url-icon","font-color-primary"],["svgIcon","save"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","none",1,"nv-url-icon","nv-subtext","font-color-secondary"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","none",1,"nv-url-icon","font-color-primary",3,"ngClass"],["svgIcon","chevron_right"]],template:function(B,X){if(1&B){const H=n.RV6();n.j41(0,"button",1,0),n.nI1(2,"translate"),n.bIt("click",function(){return n.eBV(H),n.Njj(X.onClick())}),n.j41(3,"div",2),n.DNE(4,c,2,13,"div",3)(5,D,3,8,"div",4)(6,I,2,3,"div",5)(7,U,4,0,"div",6)(8,V,2,1,"div",7)(9,T,2,15,"div",8)(10,N,2,14,"div",9),n.k0s()()}2&B&&(n.AVh("padding-nvapp",X.titleString&&!X.tvMode)("disabled-opacity",X.disabled)("rounded-button-sub",X.rotaryButtonSub)("igo-geometry",X.applyGeometry),n.Y8G("disabled",X.disabled)("tabindex",X.tabindex)("ngClass",n.eq3(21,r,!X.focusEnabled))("matTooltip",n.bMT(2,19,X.tooltip)),n.R7$(4),n.Y8G("ngIf",X.svgIcon&&!X.iconOnRight),n.R7$(),n.Y8G("ngIf",X.titleString||X.subTitle),n.R7$(),n.Y8G("ngIf",X.svgIcon&&X.iconOnRight),n.R7$(),n.Y8G("ngIf",X.secondButton),n.R7$(),n.Y8G("ngIf",X.subText),n.R7$(),n.Y8G("ngIf",X.chevron),n.R7$(),n.Y8G("ngIf",X.urlIcon))},dependencies:[d.YU,d.bT,v.DJ,v.sA,v.R$,v.UI,S.PW,y.iV,f.An,O.oV,P.Mm,_.I,P.D9],styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}.nv-item-button-container[_ngcontent-%COMP%]{max-width:512px}.icon-padding-enlargeFont[_ngcontent-%COMP%]{padding-top:10px}.isLtr[_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%]{margin-left:0}html[dir=ltr][_ngcontent-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%]{--dummy3: 0;margin-left:0}.isRtl[_nghost-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%]{margin-right:0}html[dir=rtl][_ngcontent-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%]{--dummy3: 0;margin-right:0}.single-icon-top-padding[_ngcontent-%COMP%]{padding-top:0;width:24px;height:24px}.second-button-padding[_ngcontent-%COMP%]{width:24px;height:24px;margin-top:14px}.isLtr[_nghost-%COMP%] .second-button-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .second-button-padding[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .second-button-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .second-button-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .second-button-padding[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .second-button-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.rounded-button-sub[_ngcontent-%COMP%]{padding:14px;border-radius:50%!important}.svg-icon-top-padding[_ngcontent-%COMP%]{margin-top:14px}.svg-icon-top-padding-no-subtitle[_ngcontent-%COMP%]{margin-top:12px}.nv-item-button-container[disabled][_ngcontent-%COMP%]{opacity:.38}.nv-url-color[_ngcontent-%COMP%]{color:var(--nv-item-button-url-color)}.nv-button-top-padding-no-subtitle[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.nv-button-top-padding[_ngcontent-%COMP%]{padding-top:14px;padding-bottom:14px}.isLtr[_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-url-labels[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-url-labels[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.url-icon-margin-top[_ngcontent-%COMP%]{margin-top:14px}.svg-icon-details[_ngcontent-%COMP%]{width:24px;height:24px}.nv-url-icon[_ngcontent-%COMP%]{width:24px;height:24px;box-sizing:border-box mat-icon;box-sizing-color:var(--nv-item-button-url-icon-color);box-sizing-width:24px;box-sizing-height:24px;box-sizing-font-size:24px}.nv-subtext[_ngcontent-%COMP%]{margin-top:14px}.isLtr[_nghost-%COMP%] .nv-subtext[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-subtext[_ngcontent-%COMP%]{margin-right:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-subtext[_ngcontent-%COMP%]{--dummy4: 0;margin-right:24px}.isRtl[_nghost-%COMP%] .nv-subtext[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-subtext[_ngcontent-%COMP%]{margin-left:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-subtext[_ngcontent-%COMP%]{--dummy4: 0;margin-left:24px}.nv-url-width[_ngcontent-%COMP%]{max-width:100%}.width-nvapp[_ngcontent-%COMP%]{width:412px}.isLtr[_nghost-%COMP%] .nv-first-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-first-icon[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-first-icon[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nv-first-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-first-icon[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-first-icon[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nv-last-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-last-icon[_ngcontent-%COMP%]{padding-left:0}html[dir=ltr][_ngcontent-%COMP%] .nv-last-icon[_ngcontent-%COMP%]{--dummy1: 0;padding-left:0}.isRtl[_nghost-%COMP%] .nv-last-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-last-icon[_ngcontent-%COMP%]{padding-right:0}html[dir=rtl][_ngcontent-%COMP%] .nv-last-icon[_ngcontent-%COMP%]{--dummy1: 0;padding-right:0}.nv-url-titles[_ngcontent-%COMP%]{white-space:normal}.isLtr[_nghost-%COMP%] .nv-url-titles[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-url-titles[_ngcontent-%COMP%]{text-align:left}html[dir=ltr][_ngcontent-%COMP%] .nv-url-titles[_ngcontent-%COMP%]{--dummy0: 0;text-align:left}.isRtl[_nghost-%COMP%] .nv-url-titles[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-url-titles[_ngcontent-%COMP%]{text-align:right}html[dir=rtl][_ngcontent-%COMP%] .nv-url-titles[_ngcontent-%COMP%]{--dummy0: 0;text-align:right}.nv-url-main-title[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 16px;--font-body-line-height: 24px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .nv-url-main-title[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-url-main-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-url-main-title[_ngcontent-%COMP%]{--font-body-size: 32px;--font-body-line-height: 48px;--font-body-color: rgba(255, 255, 255, .85)}.nv-url-main-title.nv-url-color[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 16px;--font-body-line-height: 24px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-url-main-title.nv-url-color[_ngcontent-%COMP%]{--font-body-size: 32px;--font-body-line-height: 48px;--font-body-color: rgba(255, 255, 255, .85)}.tv-view[_nghost-%COMP%] .nv-item-button-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-button-container[_ngcontent-%COMP%]{max-width:690px}.isLtr.tv-view[_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%]{padding-left:0}html[dir=ltr] .tv-view[_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%]{--dummy1: 0;padding-left:0}.isRtl.tv-view[_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%]{padding-right:0}html[dir=rtl] .tv-view[_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%]{--dummy1: 0;padding-right:0}.tv-view[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%]{padding:0;height:-moz-fit-content;height:fit-content}.isLtr.tv-view[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr] .tv-view[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl.tv-view[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl] .tv-view[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.tv-view[_nghost-%COMP%] .nv-url-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-url-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-url-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-url-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-url-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-url-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}.tv-view[_nghost-%COMP%] .nv-url-icon-right[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-url-icon-right[_ngcontent-%COMP%]{margin:6px 0}.tv-view[_nghost-%COMP%] span.nv-url-main-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.nv-url-main-title[_ngcontent-%COMP%]{--font-sub-shared-font-size: 14px;--font-sub-shared-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] span.nv-url-main-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.nv-url-main-title[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] span.nv-url-main-title[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] span.nv-url-main-title[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.nv-url-main-title[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.nv-url-main-title[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.nv-url-main-title[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.nv-url-main-title[_ngcontent-%COMP%]{--font-sub-shared-font-size: 28px;--font-sub-shared-line-height: 40px}.tv-view[_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 14px;--font-body-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%]{--font-body-size: 28px;--font-body-line-height: 40px;--font-body-color: rgba(255, 255, 255, .85)}.igo-geometry.nv-item-button-container[_ngcontent-%COMP%]{border-radius:var(--geometry-border-radius-md) var(--geometry-border-radius-md) var(--geometry-border-radius-md) var(--geometry-border-radius-md)!important}"]})}}return E})()},93662:(Bt,z,s)=>{"use strict";s.d(z,{X:()=>r});var n=s(58527),l=s(40262),d=s(1229),v=s(99469);const S=["button"],y=["container"],f=["items"];function O(a,c){if(1&a&&(n.j41(0,"div",12),n.nrm(1,"mat-icon",13),n.k0s()),2&a){const m=n.XpG();n.AVh("nv-icon-padding-subtitle",m.title&&m.subTitle)("nv-icon-padding-nosubtitle",m.title&&!m.subTitle),n.R7$(),n.FS9("svgIcon",m.svgIcon)}}function P(a,c){if(1&a&&n.nrm(0,"span",17),2&a){const m=n.XpG(2);n.AVh("font-color-tertiary",!m.tvMode)("font-body2",!m.tvMode&&!m.enlargeFontMode)("font-body-largefont1",!m.tvMode&&m.enlargeFontMode),n.Y8G("translate",m.subTitle)("translateParams",m.subTitleArg)}}function _(a,c){if(1&a&&(n.j41(0,"div",14),n.nrm(1,"span",15),n.DNE(2,P,1,8,"span",16),n.k0s()),2&a){const m=n.XpG();n.AVh("disabled-opacity",m.disabled)("nv-item-rotary-padding-subtitle",m.title&&m.subTitle)("nv-item-rotary-padding-nosubtitle",m.title&&!m.subTitle),n.R7$(),n.AVh("font-color-primary",!m.tvMode)("font-body1",!m.tvMode&&!m.enlargeFontMode)("font-body-largefont0",!m.tvMode&&m.enlargeFontMode),n.Y8G("translate",m.title),n.R7$(),n.Y8G("ngIf",m.subTitle)}}function i(a,c){if(1&a&&(n.j41(0,"div",18),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&a){const m=c.$implicit,M=n.XpG();n.xc7("width",M.tvMode?M.tvModeWidth:M.width,"px"),n.AVh("font-body2",!M.tvMode&&!M.enlargeFontMode)("font-body-largefont1",!M.tvMode&&M.enlargeFontMode)("disabled-opacity",M.disabled),n.R7$(),n.SpI(" ",n.bMT(2,9,m)," ")}}let r=(()=>{class a{set input(m){this._input=m,this.displayList=m.slice()}get input(){return this._input}set initialState(m){this._initialState=m,this.initialized&&m!==this.selectedIndex&&(this.ngOnInit(),this.ngAfterViewInit())}get initialState(){return this._initialState}constructor(m,M,D){this.animationBuilder=m,this.subTitle=void 0,this.subTitleArg=void 0,this.disabled=!1,this.width=d.xkq,this.title=void 0,this._initialState=0,this.continuous=!0,this.svgIcon=void 0,this.selectionChanged=new n.bkB,this.displayIndex=0,this.selectedIndex=-1,this.initialized=!1,this.isRTLLayout=!1,this.tvModeWidth=180,this.tvMode=!1,this.enlargeFontMode=!1,this.isRTLLayout=M.isRTLLayoutEnabled,this.tvMode=D.isTVMode(),this.enlargeFontMode=D.enlargeIGOTextFont()}moveToLeft(){if(!(!1===this.continuous&&0===this.selectedIndex||this.disabled||0===this.input.length)){if(0===this.displayIndex){const m=this.displayList.pop();this.displayList.unshift(m),this.displayIndex=1,this.animateTo(this.displayIndex,!0)}this.displayIndex--,this.selectedIndex=(this.input.length+this.selectedIndex-1)%this.input.length,this.selectionChanged.emit(this.selectedIndex),this.animateTo(this.displayIndex,!1)}}moveToRight(){if(!(!1===this.continuous&&this.selectedIndex===this.input.length-1||this.disabled||0===this.input.length)){if(this.displayIndex+1===this.displayList.length){const m=this.displayList.shift();this.displayList.push(m),this.displayIndex--,this.animateTo(this.displayIndex,!0)}this.displayIndex++,this.selectedIndex=(this.selectedIndex+1)%this.input.length,this.selectionChanged.emit(this.selectedIndex),this.animateTo(this.displayIndex,!1)}}goLeft(m){m?.preventDefault(),this.isRTLLayout?this.moveToRight():this.moveToLeft()}goRight(m){m?.preventDefault(),this.isRTLLayout?this.moveToLeft():this.moveToRight()}ngOnChanges(m){for(const M of Object.keys(m))"input"===M&&(m[M].currentValue.length-1<this.initialState&&(this.initialState=0),(0===this.initialState||this.initialState===this.input.length-1)&&(this.ngOnInit(),this.ngAfterViewInit()))}ngOnInit(){this.displayIndex=this.selectedIndex=this.initialState,this.displayList=this.input?this.input.slice():void 0}ngAfterViewInit(){this.animateTo(this.displayIndex,!0),this.initialized=!0,this.width=this.width?this.width:d.xkq}animateTo(m,M){let D=m*this.container.nativeElement.offsetWidth;this.isRTLLayout||(D*=-1),this.animationBuilder.build([(0,l.i0)(M?0:"250ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,l.iF)({transform:`translateX(${D}px)`}))]).create(this.itemContainer.nativeElement).play()}focus(){this.element.nativeElement.focus()}static{this.\u0275fac=function(M){return new(M||a)(n.rXU(l.S6),n.rXU(v.iH),n.rXU(d.Rvq))}}static{this.\u0275cmp=n.VBU({type:a,selectors:[["nv-rotary"]],viewQuery:function(M,D){if(1&M&&(n.GBs(S,5),n.GBs(y,7),n.GBs(f,7)),2&M){let I;n.mGM(I=n.lsd())&&(D.element=I.first),n.mGM(I=n.lsd())&&(D.container=I.first),n.mGM(I=n.lsd())&&(D.itemContainer=I.first)}},inputs:{input:"input",subTitle:"subTitle",subTitleArg:"subTitleArg",disabled:"disabled",width:"width",title:"title",initialState:"initialState",continuous:"continuous",svgIcon:"svgIcon"},outputs:{selectionChanged:"selectionChanged"},features:[n.OA$],decls:12,vars:14,consts:[["container",""],["items",""],["fxLFlex","","fxLayout","column",1,"nv-item-rotary",3,"keydown.arrowleft","keydown.arrowright"],["fxFlex","","fxLayout","row","fxLayoutAlign","start start"],["class","nv-item-icon nv-icon-dimensions","fxLayout","row","fxLayoutAlign","center center","fxFlex","none",3,"nv-icon-padding-subtitle","nv-icon-padding-nosubtitle",4,"ngIf"],["class","font-color-primary","fxFlex","grow","fxLayout","column","fxLayoutAlign","start start",3,"disabled-opacity","nv-item-rotary-padding-subtitle","nv-item-rotary-padding-nosubtitle",4,"ngIf"],["cdkMonitorElementFocus","","fxLayout","row","fxLayoutAlign","start center",1,"nv-rotary-buttons-container"],["svgIcon","chevron_left",3,"clicked","rotaryButtonSub","disabled","tabindex","alignEnlargeFont"],[1,"nv-rotary-data-container"],["fxLayout","row","fxLayoutAlign","start center"],["class","font-color-primary nv-item-rotary-position","fxFlex","none",3,"font-body2","font-body-largefont1","disabled-opacity","width",4,"ngFor","ngForOf"],["fxLayout","row","svgIcon","chevron_right",3,"clicked","rotaryButtonSub","disabled","tabindex","alignEnlargeFont"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","none",1,"nv-item-icon","nv-icon-dimensions"],[3,"svgIcon"],["fxFlex","grow","fxLayout","column","fxLayoutAlign","start start",1,"font-color-primary"],[3,"translate"],[3,"font-color-tertiary","font-body2","font-body-largefont1","translate","translateParams",4,"ngIf"],[3,"translate","translateParams"],["fxFlex","none",1,"font-color-primary","nv-item-rotary-position"]],template:function(M,D){if(1&M){const I=n.RV6();n.j41(0,"div",2),n.bIt("keydown.arrowleft",function(V){return n.eBV(I),n.Njj(D.goLeft(V))})("keydown.arrowright",function(V){return n.eBV(I),n.Njj(D.goRight(V))}),n.j41(1,"div",3),n.DNE(2,O,2,5,"div",4)(3,_,3,14,"div",5),n.j41(4,"div",6)(5,"nv-item-button",7),n.bIt("clicked",function(V){return n.eBV(I),n.Njj(D.goLeft(V))}),n.k0s(),n.j41(6,"div",8,0)(8,"div",9,1),n.DNE(10,i,3,11,"div",10),n.k0s()(),n.j41(11,"nv-item-button",11),n.bIt("clicked",function(V){return n.eBV(I),n.Njj(D.goRight(V))}),n.k0s()()()()}2&M&&(n.R7$(2),n.Y8G("ngIf",D.svgIcon),n.R7$(),n.Y8G("ngIf",D.title),n.R7$(),n.BMQ("tabindex",0),n.R7$(),n.Y8G("rotaryButtonSub",!D.tvMode)("disabled",D.disabled)("tabindex",-1)("alignEnlargeFont",!1),n.R7$(),n.xc7("width",D.tvMode?D.tvModeWidth:D.width,"px"),n.R7$(4),n.Y8G("ngForOf",D.displayList),n.R7$(),n.Y8G("rotaryButtonSub",!D.tvMode)("disabled",D.disabled)("tabindex",-1)("alignEnlargeFont",!1))},styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}.nv-rotary-buttons-container.cdk-keyboard-focused[_ngcontent-%COMP%], .nv-rotary-buttons-container.cdk-program-focused[_ngcontent-%COMP%]{background:#ffffff52;transition:background-color .75s ease}.nv-rotary-data-container[_ngcontent-%COMP%]{text-align:center;display:block;overflow:hidden}.nv-rotary-data-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:6000px}.nv-item-rotary[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 16px;--font-body-line-height: 24px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .nv-item-rotary[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-rotary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-rotary[_ngcontent-%COMP%]{--font-body-size: 32px;--font-body-line-height: 48px;--font-body-color: rgba(255, 255, 255, .85)}.nv-icon-padding-subtitle[_ngcontent-%COMP%]{margin-top:14px}.isLtr[_nghost-%COMP%] .nv-icon-padding-subtitle[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-icon-padding-subtitle[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-icon-padding-subtitle[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .nv-icon-padding-subtitle[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-icon-padding-subtitle[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-icon-padding-subtitle[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.nv-icon-padding-nosubtitle[_ngcontent-%COMP%]{margin-top:12px}.isLtr[_nghost-%COMP%] .nv-icon-padding-nosubtitle[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-icon-padding-nosubtitle[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-icon-padding-nosubtitle[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .nv-icon-padding-nosubtitle[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-icon-padding-nosubtitle[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-icon-padding-nosubtitle[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.nv-icon-dimensions[_ngcontent-%COMP%]{width:24px;height:24px}.nv-item-rotary-padding-subtitle[_ngcontent-%COMP%]{padding-top:14px;padding-bottom:14px}.nv-item-rotary-padding-nosubtitle[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.nv-item-rotary-botpadding-subtitle[_ngcontent-%COMP%]{padding-top:14px}.tv-view[_nghost-%COMP%] div.nv-item-rotary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.nv-item-rotary[_ngcontent-%COMP%]{--font-sub-shared-font-size: 14px;--font-sub-shared-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] div.nv-item-rotary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.nv-item-rotary[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] div.nv-item-rotary[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] div.nv-item-rotary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.nv-item-rotary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.nv-item-rotary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.nv-item-rotary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.nv-item-rotary[_ngcontent-%COMP%]{--font-sub-shared-font-size: 28px;--font-sub-shared-line-height: 40px}.tv-view[_nghost-%COMP%] div.nv-item-rotary-position[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.nv-item-rotary-position[_ngcontent-%COMP%]{--font-sub-shared-font-size: 12px;--font-sub-shared-line-height: 16px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] div.nv-item-rotary-position[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.nv-item-rotary-position[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] div.nv-item-rotary-position[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] div.nv-item-rotary-position[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.nv-item-rotary-position[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.nv-item-rotary-position[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.nv-item-rotary-position[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.nv-item-rotary-position[_ngcontent-%COMP%]{--font-sub-shared-font-size: 24px;--font-sub-shared-line-height: 32px}.tv-view[_nghost-%COMP%] div.nv-item-rotary-padding-nosubtitle[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.nv-item-rotary-padding-nosubtitle[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}"]})}}return a})()},36842:(Bt,z,s)=>{"use strict";s.d(z,{xN:()=>D});var n=s(58527),l=s(51635),d=s(72653),v=s(61142),S=s(3457),y=s(28139);const f=["thumb"],O=["trackContainer"],P=["ticksContainer"],_=(V,T)=>({position:"absolute",width:V,left:T});function i(V,T){if(1&V&&(n.j41(0,"div"),n.EFF(1),n.k0s()),2&V){const N=n.XpG().$implicit;n.R7$(),n.JRh(N)}}function r(V,T){if(1&V&&(n.j41(0,"div",11)(1,"div"),n.EFF(2,"|"),n.k0s(),n.DNE(3,i,2,1,"div",12),n.k0s()),2&V){const N=T.index,L=n.XpG();n.Y8G("ngStyle",n.l_i(2,_,L.tickWidth+"px",L.ticksOffset[N])),n.R7$(3),n.Y8G("ngIf",!L.noTickText)}}const a=(0,d.BQ)({passive:!1}),c=-4294967295,M=(0,l.BF)((0,l.Ob)(class m{constructor(T){this.el=T}}));let D=(()=>{class V extends M{get tabIndexReal(){return this.tabIndex.toString()}onFocus(){this.sliderDimensions=this.getSliderDimensions()}onmouseenter(){this.disabled||this.el.nativeElement.focus()}onclick(N){if(this.disabled)return;this.el.nativeElement.focus(),this.sliderDimensions=this.getSliderDimensions();const L=this.percentToValue(this.positionToPercent(N.clientX)),E=this.minMaxValidator(this.stepValidator(L));this.setValue(E)}onkeydown(N){if(this.disabled)return;if("."===N.key&&this.defaultValue!==c)return N.preventDefault(),N.stopPropagation(),void this.setValue(this.defaultValue);let L;"ArrowLeft"===N.key?L=-this.step:"ArrowRight"===N.key&&(L=this.step),L&&((N.metaKey||N.ctrlKey||N.altKey)&&(L*=4),N.preventDefault(),N.stopPropagation(),this.setValue(this.value+L,this.skipSnapWhenKbInput))}get activeTrackStyle(){return this.colorLeftActive?{left:"0",width:100*this.clamp(this.sliderPercent)+"%"}:this.activeTrackHidden||!this.isRangeSlider?{width:"0"}:{left:100*(this.clamp((this.rangeMin-this.min)/(this.max-this.min))||0)+"%",width:100*(this.clamp((this.rangeMax-this.rangeMin)/(this.max-this.min))||0)+"%"}}get thumbContainerStyle(){let N=this.sliderPercent;return N=this.clamp(N),{left:100*N+"%"}}get ticksStyle(){return{left:0-this.tickWidth/2+"px",width:this.tickWidth*this.trackTicks.length+"px"}}updateValue(){!this.initialized||this.isBeingDestroyed||(this.sanitizeMinMax(),this.sliderDimensions=this.getSliderDimensions(),this.setWidthOnMin&&(this.hostWidth=100-this.min+"%"),this.setValue(this.value),this.changeDetector.detectChanges())}constructor(N,L,E,g,R){super(N),this.renderer=L,this.changeDetector=E,this._ngZone=R,this.min=c,this.max=c,this.value=c,this.valueChange=new n.bkB,this.lastValue=c,this.sliderPercent=0,this.isBeingDestroyed=!1,this.step=1,this.defaultValue=c,this.rangeMin=c,this.rangeMax=c,this.isRangeSlider=!1,this.ticks=[],this.activeTrackHidden=!1,this.onlyThumbs=!1,this.snapToDefault=!1,this.skipSnapWhenKbInput=!1,this.setWidthOnMin=!1,this.noTickText=!1,this.colorLeftActive=!1,this.sliderDimensions=null,this.initialized=!1,this.isSliding=!1,this.trackTicks=[],this.ticksOffset=[],this.tickWidth=0,this.padLeft="0",this.padRight="0",this.pointerMove=B=>{if(this.isSliding){B.preventDefault();const X=U(B);this.setSliderFromPosition(X.x)}},this.pointerUp=B=>{this.isSliding&&(B.preventDefault(),this.removeGlobalEvents(),this.isSliding=!1)},this.pointerDown=B=>{this.disabled||this.isSliding||!I(B)&&0!==B.button||this.runInsideZone(()=>{this.isSliding=!0,B.preventDefault(),this.onmouseenter(),this.bindGlobalEvents(B);const X=U(B);this.setSliderFromPosition(X.x)})},this.tabIndex=parseInt(g,10)||0,this.changeDetector.detach(),this.runOutsizeZone(()=>{const B=this.el.nativeElement;B.addEventListener("mousedown",this.pointerDown,a),B.addEventListener("touchstart",this.pointerDown,a)})}ngOnInit(){this.initialized=!0,this.updateValue(),this.redrawTicks(),this.isBeingDestroyed=!1}ngOnDestroy(){this.isBeingDestroyed=!0;const N=this.el.nativeElement;N.removeEventListener("mousedown",this.pointerDown,a),N.removeEventListener("touchstart",this.pointerDown,a),this.removeGlobalEvents()}ngOnChanges(N){for(const L of Object.keys(N))"rangeMin"===L&&(this.isRangeSlider=!0),this.initialized&&(("min"===L||"max"===L||"ticks"===L||"step"===L)&&this.redrawTicks(),("min"===L||"max"===L||"value"===L||"rangeMin"===L||"rangeMax"===L)&&setTimeout(()=>this.updateValue(),0))}clamp(N){return Math.max(0,Math.min(N||0,1))}getSliderDimensions(){return this.trackContainer?this.trackContainer.nativeElement.getBoundingClientRect():null}positionToPercent(N){return this.sliderDimensions?Math.max(0,Math.min(1,(N-this.sliderDimensions.left)/this.sliderDimensions.width)):0}percentToValue(N){return this.min+N*(this.max-this.min)}valueToPercent(N){return this.min===this.max?1:(N-this.min)/(this.max-this.min)||0}minMaxValidator(N){return Math.max(this.rangeMin,Math.min(this.rangeMax,N))}stepValidator(N){const L=Math.round((N-this.min)/this.step)*this.step+this.min;return Math.round(1e3*L)/1e3}endSetValue(N){this.value=N,this.sliderPercent=this.valueToPercent(this.value),this.initialized&&this.value!==this.lastValue&&(this.lastValue!==c&&(this.valueChange.emit(this.value),this.changeDetector.detectChanges()),this.lastValue=this.value)}setValue(N,L=!1){if(N=this.minMaxValidator(this.stepValidator(N)),this.snapToDefault&&!L&&this.defaultValue!==c&&this.max!==c&&this.min!==c){if(this.defaultValue===this.min||this.defaultValue===this.max)return void this.endSetValue(N);const E=(this.max-this.min)/20;N>this.defaultValue-E&&N<this.defaultValue+E&&(N=this.minMaxValidator(this.stepValidator(this.defaultValue)))}this.endSetValue(N)}setSliderFromPosition(N){this.setValue(this.percentToValue(this.positionToPercent(N)))}sanitizeMinMax(){this.min!==c&&this.max!==c&&(this.rangeMin!==c&&(this.rangeMin=Math.max(this.min,Math.min(this.max,this.rangeMin))),this.rangeMax!==c&&(this.rangeMax=Math.max(this.min,Math.min(this.max,this.rangeMax))),this.isRangeSlider||(this.rangeMin=this.min,this.rangeMax=this.max),this.rangeMin>this.value&&this.setValue(this.rangeMin),this.rangeMax<this.value&&this.setValue(this.rangeMax))}getWidthOfText(N,L){const g=this.renderer.createElement("canvas").getContext("2d");return g.font=L,g.measureText(N).width}redrawTicks(){if(this.min===c||this.max===c||0===this.ticks.length||this.step===c||!this.thumb||!this.ticksContainer)return;const N=Math.floor((this.max-this.min)/this.step);this.trackTicks=[];for(let re=0;re<=N;re++){const ie=re*this.step+this.min;this.ticks.indexOf(ie)<0||this.trackTicks.push(ie)}const L=this.thumb.nativeElement.offsetWidth/2,g=window.getComputedStyle(this.ticksContainer.nativeElement).font||"12px NVIDIA",B=Math.max(this.getWidthOfText(this.trackTicks[0]+"",g)/2,L);this.padLeft=B+"px";const H=Math.max(this.getWidthOfText(this.trackTicks[this.trackTicks.length-1]+"",g)/2,L);this.padRight=H+"px";const J=this.getSliderDimensions().width-B-H;this.tickWidth=J/(this.trackTicks.length-1);for(let re=0;re<this.trackTicks.length;re++)this.ticksOffset[re]=(this.trackTicks[re]-this.min)/(this.max-this.min)*J+"px";this.changeDetector.detectChanges()}bindGlobalEvents(N){if(typeof document<"u"&&document){const L=document.body,E=I(N),R=E?"touchend":"mouseup";L.addEventListener(E?"touchmove":"mousemove",this.pointerMove,a),L.addEventListener(R,this.pointerUp,a),E&&L.addEventListener("touchcancel",this.pointerUp,a)}}removeGlobalEvents(){if(typeof document<"u"&&document){const N=document.body;N.removeEventListener("mousemove",this.pointerMove,a),N.removeEventListener("mouseup",this.pointerUp,a),N.removeEventListener("touchmove",this.pointerMove,a),N.removeEventListener("touchend",this.pointerUp,a),N.removeEventListener("touchcancel",this.pointerUp,a)}}runInsideZone(N){this._ngZone?this._ngZone.run(N):N()}runOutsizeZone(N){this._ngZone?this._ngZone.runOutsideAngular(N):N()}static{this.\u0275fac=function(L){return new(L||V)(n.rXU(n.aKT),n.rXU(n.sFG),n.rXU(n.gRc),n.kS0("tabindex"),n.rXU(n.SKi))}}static{this.\u0275cmp=n.VBU({type:V,selectors:[["nv-slider"]],viewQuery:function(L,E){if(1&L&&(n.GBs(f,7),n.GBs(O,7),n.GBs(P,7)),2&L){let g;n.mGM(g=n.lsd())&&(E.thumb=g.first),n.mGM(g=n.lsd())&&(E.trackContainer=g.first),n.mGM(g=n.lsd())&&(E.ticksContainer=g.first)}},hostVars:7,hostBindings:function(L,E){1&L&&n.bIt("focus",function(){return E.onFocus()})("mouseenter",function(){return E.onmouseenter()})("click",function(R){return E.onclick(R)})("keydown",function(R){return E.onkeydown(R)}),2&L&&(n.Mr5("tabIndex",E.tabIndexReal),n.xc7("width",E.hostWidth)("padding-left",E.padLeft)("padding-right",E.padRight))},inputs:{min:"min",max:"max",value:"value",step:"step",defaultValue:"defaultValue",rangeMin:"rangeMin",rangeMax:"rangeMax",ticks:"ticks",activeTrackHidden:"activeTrackHidden",onlyThumbs:"onlyThumbs",snapToDefault:"snapToDefault",skipSnapWhenKbInput:"skipSnapWhenKbInput",setWidthOnMin:"setWidthOnMin",noTickText:"noTickText",colorLeftActive:"colorLeftActive",disabled:"disabled"},outputs:{valueChange:"valueChange"},features:[n.Vt3,n.OA$],decls:11,vars:4,consts:[["trackContainer",""],["ticksContainer",""],["thumb",""],[1,"nv-slider-wrapper"],[1,"nv-track-container"],[1,"nv-track"],[1,"nv-track-fill",3,"ngStyle"],["fxLayout","row","fxLayoutAlign","start start",1,"nv-track-ticks",3,"ngStyle"],["fxLayout","column","fxLayoutAlign","start center",3,"ngStyle",4,"ngFor","ngForOf"],[1,"nv-thumb-container",3,"ngStyle"],[1,"nv-thumb"],["fxLayout","column","fxLayoutAlign","start center",3,"ngStyle"],[4,"ngIf"]],template:function(L,E){1&L&&(n.j41(0,"div",3)(1,"div",4,0),n.nrm(3,"div",5)(4,"div",6),n.j41(5,"div",7,1),n.DNE(7,r,4,5,"div",8),n.k0s()(),n.j41(8,"div",9),n.nrm(9,"div",10,2),n.k0s()()),2&L&&(n.R7$(4),n.Y8G("ngStyle",E.activeTrackStyle),n.R7$(),n.Y8G("ngStyle",E.ticksStyle),n.R7$(2),n.Y8G("ngForOf",E.trackTicks),n.R7$(),n.Y8G("ngStyle",E.thumbContainerStyle))},dependencies:[v.Sq,v.bT,v.B3,S.DJ,S.sA,y.eI],styles:['[_nghost-%COMP%]{min-height:24px;min-width:14px;position:relative;display:block;cursor:pointer}[_nghost-%COMP%] *[_ngcontent-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%]:after{box-sizing:border-box}[_nghost-%COMP%] .nv-slider-wrapper[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .nv-track-container[_ngcontent-%COMP%]{width:100%;position:absolute;top:10px;height:4px}[_nghost-%COMP%] .nv-track[_ngcontent-%COMP%], [_nghost-%COMP%] .nv-track-fill[_ngcontent-%COMP%]{position:absolute;left:0;right:0;height:100%;background-color:var(--primary-700)}[_nghost-%COMP%] .nv-track-fill[_ngcontent-%COMP%]{background-color:var(--primary-contrast-1000)}[_nghost-%COMP%] .nv-track-ticks[_ngcontent-%COMP%]{position:absolute;height:32px;top:0;font-size:14px;font-weight:400;line-height:16px;color:var(--primary-700);text-align:center}[_nghost-%COMP%] .nv-thumb-container[_ngcontent-%COMP%]{position:absolute;left:0;top:50%;transform:translate3d(-50%,-50%,0);border-radius:50%}[_nghost-%COMP%] .nv-thumb[_ngcontent-%COMP%]{z-index:1;position:absolute;left:-8px;top:4px;box-sizing:border-box;width:16px;height:16px;border:1px solid var(--secondary-1000);background-color:var(--primary-contrast-1000);border-radius:50%}[_nghost-%COMP%]:focus .nv-thumb[_ngcontent-%COMP%]{background-color:#76b900}.gif-right-bar[_nghost-%COMP%] .nv-thumb[_ngcontent-%COMP%]{width:0}.gif-right-bar[_nghost-%COMP%] .nv-thumb[_ngcontent-%COMP%]:before{top:-17px;left:4px;border-bottom:4px solid var(--accent-500);border-right:1px solid var(--accent-500);border-left:1px solid var(--accent-500);border-top:4px solid var(--accent-500)}.trim-slider[_nghost-%COMP%]{cursor:default}.trim-slider[_nghost-%COMP%] .nv-track[_ngcontent-%COMP%], .trim-slider[_nghost-%COMP%] .nv-track-fill[_ngcontent-%COMP%]{background-color:transparent}.trim-slider[_nghost-%COMP%] .nv-thumb[_ngcontent-%COMP%]{border:none}.trim-slider[_nghost-%COMP%] .nv-thumb[_ngcontent-%COMP%]:before{content:"";display:block;position:absolute;top:-5px;height:0;left:3px;box-sizing:border-box;border-bottom:5px solid var(--primary-700);border-right:5px solid transparent;border-left:5px solid transparent}.trim-slider[_nghost-%COMP%]:focus .nv-thumb[_ngcontent-%COMP%]:before{border-bottom:5px solid var(--accent-500)}[_nghost-%COMP%]:not([disabled]) .nv-thumb[_ngcontent-%COMP%]{cursor:pointer}[disabled][_nghost-%COMP%]{cursor:default;opacity:.35}[disabled][_nghost-%COMP%] .nv-thumb[_ngcontent-%COMP%]{background-color:var(--primary-700)}'],changeDetection:0})}}return V})();function I(V){return"t"===V.type[0]}function U(V){const T=I(V)?V.touches[0]||V.changedTouches[0]:V;return{x:T.clientX,y:T.clientY}}},15332:(Bt,z,s)=>{"use strict";s.d(z,{O:()=>T});var n=s(58527),l=s(26875),v=s(26513),S=s(16229),y=s(62931),f=s(10174),O=s(99469);const P=["scroller"],_=["labeloverlay"],i=(N,L)=>({$implicit:N,scroll:L});function r(N,L){if(1&N&&(n.j41(0,"div",11),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&N){const E=n.XpG(),g=E.$implicit,R=E.first,B=n.XpG();n.AVh("divider-pad-chunk",B.chunkFileMetadata&&!R)("divider-pad",R||!B.chunkFileMetadata),n.R7$(),n.SpI(" ",n.bMT(2,5,g[0].divider)," ")}}function a(N,L){1&N&&n.nrm(0,"mat-divider",9)}function c(N,L){}function m(N,L){if(1&N&&(n.j41(0,"nv-virtual-grid-item",14),n.DNE(1,c,0,0,"ng-template",15),n.k0s()),2&N){const E=L.$implicit,g=n.XpG(3);n.Y8G("useOutline",g.useFocusOutline)("showFocusAlways",g.showFocusAlways)("item",E)("selectedItemIndex",g.selectedItemIndex)("itemWidth",g.itemWidth)("itemHeight",g.itemHeight)("multiSelectAvailable",g.multiSelect)("multiSelectModeOn",g.multiSelectModeOn),n.R7$(),n.Y8G("ngTemplateOutlet",g.template)("ngTemplateOutletContext",n.l_i(10,i,E.item,g.scrolling$.asObservable()))}}function M(N,L){if(1&N&&(n.j41(0,"div",12),n.DNE(1,m,2,13,"nv-virtual-grid-item",13),n.k0s()),2&N){const E=n.XpG().$implicit,g=n.XpG();n.Y8G("fxLayoutGap",g.marginRight+"px"),n.R7$(),n.Y8G("ngForOf",E)}}function D(N,L){if(1&N&&n.nrm(0,"div"),2&N){const E=n.XpG(2);n.xc7("padding-bottom",E.topBottomPad,"px")("width","100%")}}function I(N,L){if(1&N&&(n.j41(0,"div"),n.DNE(1,r,3,7,"div",6)(2,a,1,0,"mat-divider",7)(3,M,2,2,"div",8),n.nrm(4,"mat-divider",9),n.DNE(5,D,1,4,"div",10),n.k0s()),2&N){const E=L.$implicit,g=L.last,R=L.first,B=n.XpG();n.xc7("margin-bottom",g||E[0].divider?0:B.marginBottom,"px"),n.R7$(),n.Y8G("ngIf",E[0].divider),n.R7$(),n.Y8G("ngIf",R),n.R7$(),n.Y8G("ngIf",!E[0].divider),n.R7$(2),n.Y8G("ngIf",g)}}function U(N,L){if(1&N&&n.nrm(0,"div"),2&N){const E=n.XpG(2);n.xc7("height",E.topBottomPad,"px")}}function V(N,L){if(1&N&&(n.j41(0,"div")(1,"div",16),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.nrm(4,"div"),n.DNE(5,U,1,2,"div",17),n.k0s()),2&N){const E=L.$implicit,g=L.first,R=L.last,B=n.XpG();n.R7$(),n.AVh("divider-pad-chunk",B.chunkFileMetadata&&!g)("divider-pad",g||!B.chunkFileMetadata),n.R7$(),n.SpI(" ",n.bMT(3,8,E.text)," "),n.R7$(2),n.xc7("height",E.contentHeight,"px"),n.R7$(),n.Y8G("ngIf",R)}}let T=(()=>{class N{get selectedItem(){return this._selectedItem}set selectedItem(E){const g=this._selectedItem;if(this._selectedItem=E,this.initialized&&g!==this._selectedItem){const R=this.list.findIndex(B=>B.item===E);R>=0&&(this.setCurrentItem(this.list[R]),this.ensureItemVisible(R))}}set items(E){E&&this.list&&0===E.length&&0===this.list.length||(this.list=E?E.map((g,R)=>(g===this._selectedItem&&(this.selectedItemIndex=R),{index:R,selected:g===this._selectedItem,element:void 0,divider:void 0,item:g})):E,this.refresh())}onkeydown(E){this.handleKeyPress(E)}onFocus(){if(!this.list||this.list.length<=0)return;let E=this.selectedItemIndex;E<0&&(E=0),this.setCurrentItem(this.list[E])}setContent(E,g){this.list=E,this.itemsPerRow=g}setTopIndex(E){this.topIndex=E}setCurrentItem(E){const g=this._multiSelectList.length>0,R=this.getItem(this.selectedItemIndex);if(!g){if(R){if(R.index===E.index)return;R.selected=!1}E&&(E.selected=!0)}this._selectedItem=E.item,this.selectedItemIndex=E.index,this.selectedItemChange.emit(this._selectedItem)}multiSelectClick(E){if(!E)return;if(!this.multiSelectModeOn){const R=this.getItem(this.selectedItemIndex);R&&(R.selected=!1)}this._multiSelectList.includes(E)?((0,l.pull)(this._multiSelectList,E),E.selected=!1):(E.selected=!0,E.element&&(this._selectedItem=E.item,this.selectedItemIndex=E.index),this._multiSelectList.push(E));const g=this.multiSelectModeOn;this.multiSelectModeOn=this._multiSelectList.length>0,g!==this.multiSelectModeOn&&this.multiSelectMode.emit(this.multiSelectModeOn),this.multiSelectList.emit(this._multiSelectList.map(R=>R.item))}cancelMultiSelect(){this._multiSelectList.slice(0).forEach(E=>this.multiSelectClick(E)),this.selectedItem&&(this.selectedItem.selected=!0)}selectAllItems(E){E&&(this._multiSelectList=[]),this.list.forEach(g=>this.multiSelectClick(g)),this.multiSelectList.emit(this._multiSelectList.map(g=>g.item))}constructor(E,g,R){this.element=E,this.renderer=g,this.dateHandlerService=R,this.itemsPerRow=1,this.topIndex=0,this.initialized=!1,this.scrolling$=new v.t(!1),this.maxRows=6,this.marginBottom=0,this.marginRight=0,this.multiSelect=!1,this.useFocusOutline=!0,this.showFocusAlways=!1,this.chunkFileMetadata=!1,this.stickyHeaders=!0,this.topBottomPad=0,this.rightMarginReq=!0,this.headerSizeChunk=55,this.headerSize=44,this._selectedItem=void 0,this.selectedItemIndex=-1,this.selectedItemChange=new n.bkB,this._multiSelectList=[],this.multiSelectModeOn=!1,this.multiSelectMode=new n.bkB,this.multiSelectList=new n.bkB,this.handleKeyPress=void 0,this.handleKeyPress=(0,l.throttle)(this._handleKeyPress,100)}getStringForDay(E){let g=O.Nq.getStartOfDay(new Date);if(O.Nq.isSame(E,g,O.O$.DAY))return"commonLabels.Today";if(g=O.Nq.subtractTime(g,1,O.yr.DAYS),O.Nq.isSame(E,g,O.O$.DAY))return"commonLabels.Yesterday";g=O.Nq.addTime(g,1,O.yr.DAYS);const R=O.Nq.subtractTime(O.Nq.getStartOfMonth(new Date),1,O.yr.MONTHS);return O.Nq.isSameOrAfter(E,R,O.O$.MONTH)?O.Nq.isSame(E,g,O.O$.YEAR)?this.dateHandlerService.formatDate(E,"eeee, MMMM d"):this.dateHandlerService.formatDate(E,"eeee, PPP"):O.Nq.isSame(E,g,O.O$.YEAR)?this.dateHandlerService.formatDate(E,"MMMM"):this.dateHandlerService.formatDate(E,"MMMM yyyy")}newHeader(E){return{index:-1,selected:!1,element:void 0,divider:E,item:void 0}}isSameRow(E,g){const R=O.Nq.subtractTime(O.Nq.getStartOfMonth(new Date),1,O.yr.MONTHS);return O.Nq.isSameOrAfter(E,R,O.O$.MONTH)?O.Nq.isSame(E,g,O.O$.DAY):O.Nq.isSame(E,g,O.O$.MONTH)}pushRow(E,g,R=!1){const B=this.itemHeight+this.marginBottom;return this.rows.push(E),this.itemOffsets.push(g+=B),this.stickyHeaders&&(this.dividers[this.dividers.length-1].contentHeight+=B),g}chunkFiles(){let E=O.Nq.addTime(O.Nq.getStartOfDay(new Date),1,O.yr.YEARS),g=[],R=0;this.itemOffsets=[0],this.rows=[],this.dividers=[],this.list.sort((B,X)=>new Date(X.item.date).getTime()-new Date(B.item.date).getTime()),this.list.map((B,X)=>(B.index=X,B)),this.list.forEach((B,X)=>{if(!B.item)return;(0===X||X===this.list.length-1)&&(R+=this.topBottomPad);const J=new Date(B.item.date);this.isSameRow(J,E)?(g.push(B),g.length>=this.itemsPerRow&&(R=this.pushRow(g,R),g=[])):(g.length>0&&(R=this.pushRow(g,R),g=[]),this.stickyHeaders?(this.dividers.push({text:this.getStringForDay(J),contentHeight:0}),this.rows.push([this.newHeader(" ")])):this.rows.push([this.newHeader(this.getStringForDay(J))]),R+=1!==this.itemOffsets.length&&this.chunkFileMetadata?this.headerSizeChunk:this.headerSize,this.itemOffsets.push(R),E=J,g.push(B))}),g.length>0&&(R=this.pushRow(g,R,!0)),this.rows=this.rows.slice(),this.itemOffsets=this.itemOffsets.slice()}refresh(){if(!this.initialized)return;const E=this.element.nativeElement.offsetWidth;this.itemsPerRow=Math.floor(E/this.itemWidth),this.itemsPerRow*this.itemWidth+(this.itemsPerRow-1)*this.marginRight>E&&(this.itemsPerRow-=1),this.maxRows=Math.floor(this.element.nativeElement.offsetHeight/(this.itemHeight+this.marginBottom)),setTimeout(()=>{if(this.chunkFileMetadata)this.chunkFiles();else{this.rows=(0,l.chunk)(this.list,this.itemsPerRow),this.itemOffsets=[0];let R=0;this.rows.forEach((B,X)=>{R+=this.itemHeight+this.marginBottom,(X===this.rows.length-1||0===X)&&(R+=this.topBottomPad),this.itemOffsets.push(R)})}this.list&&this.list.length>0?(this.selectedItemIndex=this.list.findIndex(R=>R.item===this._selectedItem),!this.selectedItemIndex&&this.list&&this.setCurrentItem(this.list[0])):this.selectedItemIndex=0,setTimeout(()=>this.ensureItemVisible(this.selectedItemIndex),0)},0)}getNewIndexRow(E,g,R){let B=g+E;for(;B>0&&B<this.rows.length&&this.rows[B][0].divider;)B+=E;return B<0?0:B>=this.rows.length?this.list.length-1:(R=Math.min(this.rows[B].length-1,R),this.rows[B][R].index)}_handleKeyPress(E){if(!this.list)return;let g=this.list.findIndex(H=>H.item===this._selectedItem);const R=this.rows.findIndex(H=>H.findIndex(J=>J.item===this._selectedItem)>=0),B=this.rows[R].findIndex(H=>H.item===this._selectedItem);g=-1===g?0:g;const X=this.list.length-1;if("ArrowLeft"===E.key)g-=1;else if("ArrowRight"===E.key)g+=1;else if("ArrowUp"===E.key)g=this.getNewIndexRow(-1,R,B);else if("ArrowDown"===E.key)g=this.getNewIndexRow(1,R,B);else if("Home"===E.key)g=0;else if("End"===E.key)g=X;else if("PageDown"===E.key)g+=this.itemsPerRow*this.maxRows;else if("PageUp"===E.key)g-=this.itemsPerRow*this.maxRows;else if(" "===E.key)return void this.multiSelectClick(this.list[g]);g=Math.max(0,Math.min(g,X)),this.selectedItemIndex!==g&&(this.setCurrentItem(this.list[g]),this.ensureItemVisible(g))}ensureItemVisible(E,g="auto"){if(null==E||E<0||E>=this.list.length)return;const R=this.rows.findIndex(J=>J.findIndex(re=>re.item===this._selectedItem)>=0);this.maxRows=Math.floor(this.element.nativeElement.offsetHeight/(this.itemHeight+this.marginBottom));const H=R-Math.round(this.maxRows/2);if(this.topIndex<H||this.topIndex>R-2*this.maxRows){const re=Math.max(0,Math.min(H,this.rows.length-this.maxRows+1));this.scroller.scrollToOffset(this.itemOffsets[re],g)}}getItem(E=this.selectedItemIndex){return null!=E&&E>=0&&E<this.list.length?this.list[E]:null}ngAfterViewInit(){this.initialized=!0;const E=this.scroller.elementScrolled().pipe((0,y.B)(250),(0,f.u)(!1)),g=this.scroller.elementScrolled().pipe((0,f.u)(!0));this.scrollingSub$=(0,S.h)(g,E).subscribe(B=>this.scrolling$.next(B));const R=this.element?.nativeElement?.querySelector(".cdk-virtual-scroll-spacer");setTimeout(()=>{this.renderer.appendChild(R,this.labelElement.nativeElement),this.refresh()},0)}ngOnDestroy(){this.scrollingSub$&&this.scrollingSub$.unsubscribe()}static{this.\u0275fac=function(g){return new(g||N)(n.rXU(n.aKT),n.rXU(n.sFG),n.rXU(O.I_))}}static{this.\u0275cmp=n.VBU({type:N,selectors:[["nv-virtual-grid-container"]],viewQuery:function(g,R){if(1&g&&(n.GBs(P,7),n.GBs(P,7,n.aKT),n.GBs(_,7,n.aKT)),2&g){let B;n.mGM(B=n.lsd())&&(R.scroller=B.first),n.mGM(B=n.lsd())&&(R.viewportElement=B.first),n.mGM(B=n.lsd())&&(R.labelElement=B.first)}},hostBindings:function(g,R){1&g&&n.bIt("keydown",function(X){return R.onkeydown(X)})("focus",function(){return R.onFocus()})},inputs:{itemHeight:"itemHeight",itemWidth:"itemWidth",marginBottom:"marginBottom",marginRight:"marginRight",multiSelect:"multiSelect",template:"template",useFocusOutline:"useFocusOutline",showFocusAlways:"showFocusAlways",chunkFileMetadata:"chunkFileMetadata",stickyHeaders:"stickyHeaders",topBottomPad:"topBottomPad",rightMarginReq:"rightMarginReq",selectedItem:"selectedItem",items:"items"},outputs:{selectedItemChange:"selectedItemChange",multiSelectMode:"multiSelectMode",multiSelectList:"multiSelectList"},decls:7,vars:5,consts:[["scroller",""],["labeloverlay",""],["fxFlex","",1,"scroll-container",3,"scrolledIndexChange","itemOffsets"],[3,"margin-bottom",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"labels"],[4,"ngFor","ngForOf"],["class","font-sub2 font-color-tertiary",3,"divider-pad-chunk","divider-pad",4,"ngIf"],["class","folder-divider",4,"ngIf"],["fxLayout","row",3,"fxLayoutGap",4,"ngIf"],[1,"folder-divider"],[3,"paddingBottom","width",4,"ngIf"],[1,"font-sub2","font-color-tertiary"],["fxLayout","row",3,"fxLayoutGap"],[3,"useOutline","showFocusAlways","item","selectedItemIndex","itemWidth","itemHeight","multiSelectAvailable","multiSelectModeOn",4,"ngFor","ngForOf"],[3,"useOutline","showFocusAlways","item","selectedItemIndex","itemWidth","itemHeight","multiSelectAvailable","multiSelectModeOn"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"font-body2","divider-sticky","font-color-tertiary"],[3,"height",4,"ngIf"]],template:function(g,R){if(1&g){const B=n.RV6();n.j41(0,"cdk-virtual-scroll-viewport",2,0),n.bIt("scrolledIndexChange",function(H){return n.eBV(B),n.Njj(R.setTopIndex(H))}),n.DNE(2,I,6,6,"div",3),n.k0s(),n.j41(3,"div",null,1)(5,"div",4),n.DNE(6,V,6,10,"div",5),n.k0s()()}2&g&&(n.AVh("scroll-container-right-margin",R.rightMarginReq),n.Y8G("itemOffsets",R.itemOffsets),n.R7$(2),n.Y8G("cdkVirtualForOf",R.rows),n.R7$(4),n.Y8G("ngForOf",R.dividers))},styles:[".scroll-container[_ngcontent-%COMP%], .scroll-container[_ngcontent-%COMP%] .cdk-virtual-scroll-content-wrapper[_ngcontent-%COMP%]{height:100%}.isLtr[_nghost-%COMP%] .scroll-container-right-margin[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .scroll-container-right-margin[_ngcontent-%COMP%]{margin-right:-16px}html[dir=ltr][_ngcontent-%COMP%] .scroll-container-right-margin[_ngcontent-%COMP%]{--dummy4: 0;margin-right:-16px}.isRtl[_nghost-%COMP%] .scroll-container-right-margin[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .scroll-container-right-margin[_ngcontent-%COMP%]{margin-left:-16px}html[dir=rtl][_ngcontent-%COMP%] .scroll-container-right-margin[_ngcontent-%COMP%]{--dummy4: 0;margin-left:-16px}.labels[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;pointer-events:none}.divider-pad[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px;height:20px}.divider-sticky[_ngcontent-%COMP%]{position:sticky;padding-top:12px;padding-bottom:12px;height:20px;background-color:var(--nv-virtual-grid-container-divider-sticky-bg-color)}.divider-pad-chunk[_ngcontent-%COMP%]{padding-top:23px;padding-bottom:12px;height:20px}.folder-divider[_ngcontent-%COMP%]{margin:1px;background-color:var(--nv-divider-bg-color)}.isLtr[_nghost-%COMP%] .folder-divider[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .folder-divider[_ngcontent-%COMP%]{margin-left:0}html[dir=ltr][_ngcontent-%COMP%] .folder-divider[_ngcontent-%COMP%]{--dummy3: 0;margin-left:0}.isRtl[_nghost-%COMP%] .folder-divider[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .folder-divider[_ngcontent-%COMP%]{margin-right:0}html[dir=rtl][_ngcontent-%COMP%] .folder-divider[_ngcontent-%COMP%]{--dummy3: 0;margin-right:0}.isLtr[_nghost-%COMP%] .folder-divider[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .folder-divider[_ngcontent-%COMP%]{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .folder-divider[_ngcontent-%COMP%]{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .folder-divider[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .folder-divider[_ngcontent-%COMP%]{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .folder-divider[_ngcontent-%COMP%]{--dummy4: 0;margin-left:0}"]})}}return N})()},6754:(Bt,z,s)=>{"use strict";s.d(z,{m:()=>i});var n=s(58527),l=s(15332),d=s(61142),v=s(3457),S=s(28139),y=s(29370);const f=["*"],O=(r,a)=>({"width.px":r,"height.px":a,position:"relative"});function P(r,a){if(1&r&&n.nrm(0,"div",3),2&r){const c=n.XpG();n.AVh("selected",c.item.index==c.selectedItemIndex)("showFocusAlways",c.showFocusAlways)}}function _(r,a){if(1&r){const c=n.RV6();n.j41(0,"div",4)(1,"mat-icon",5),n.bIt("click",function(M){n.eBV(c);const D=n.XpG();return n.Njj(D.onMultiSelectClick(M))}),n.k0s()()}if(2&r){const c=n.XpG();n.AVh("checked",c.multiSelectModeOn&&c.item.selected)("multiOn",c.multiSelectModeOn)("multiFocus",c.item.index==c.selectedItemIndex)}}let i=(()=>{class r{get item(){return this._item}set item(c){this._item=c,this._item.element=this.el}onMouseDown(){this.parent&&this.parent.setCurrentItem(this.item)}onClick(c){this.parent&&this.multiSelectModeOn&&this.parent.multiSelectClick(this.item)}onMultiSelectClick(c){this.parent&&this.parent.multiSelectClick(this.item),c.stopImmediatePropagation(),c.preventDefault()}constructor(c,m){this.el=c,this.parent=m,this.multiSelectAvailable=!1,this.multiSelectModeOn=!1,this.useOutline=!0,this.selectedItemIndex=-1,this.showFocusAlways=!1}static{this.\u0275fac=function(m){return new(m||r)(n.rXU(n.aKT),n.rXU(l.O,8))}}static{this.\u0275cmp=n.VBU({type:r,selectors:[["nv-virtual-grid-item"]],inputs:{itemWidth:"itemWidth",itemHeight:"itemHeight",multiSelectAvailable:"multiSelectAvailable",multiSelectModeOn:"multiSelectModeOn",useOutline:"useOutline",selectedItemIndex:"selectedItemIndex",showFocusAlways:"showFocusAlways",item:"item"},ngContentSelectors:f,decls:4,vars:6,consts:[[3,"mousedown","click","ngStyle"],["class","overlay selected-overlay",3,"selected","showFocusAlways",4,"ngIf"],["class","overlay hover-overlay hover-highlight","fxLayout","row","fxLayoutAlign","end start",3,"checked","multiOn","multiFocus",4,"ngIf"],[1,"overlay","selected-overlay"],["fxLayout","row","fxLayoutAlign","end start",1,"overlay","hover-overlay","hover-highlight"],[1,"multi-select-circle",3,"click"]],template:function(m,M){1&m&&(n.NAR(),n.j41(0,"div",0),n.bIt("mousedown",function(){return M.onMouseDown()})("click",function(I){return M.onClick(I)}),n.SdG(1),n.DNE(2,P,1,4,"div",1)(3,_,2,6,"div",2),n.k0s()),2&m&&(n.Y8G("ngStyle",n.l_i(3,O,M.itemWidth,M.itemHeight)),n.R7$(2),n.Y8G("ngIf",M.useOutline),n.R7$(),n.Y8G("ngIf",M.multiSelectAvailable))},dependencies:[d.bT,d.B3,v.DJ,v.sA,S.eI,y.An],styles:['.overlay[_ngcontent-%COMP%]{box-sizing:border-box;position:absolute;top:0;left:0;height:100%;width:100%;pointer-events:none}:focus[_nghost-%COMP%] .selected[_ngcontent-%COMP%], :focus [_nghost-%COMP%] .selected[_ngcontent-%COMP%], .showFocusAlways.selected[_ngcontent-%COMP%]{background:transparent}.hover-overlay[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]{color:transparent;width:20px;height:20px;font-size:20px;pointer-events:auto}.isLtr[_nghost-%COMP%] .hover-overlay[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hover-overlay[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]{margin:5px 5px 0 0}html[dir=ltr][_ngcontent-%COMP%] .hover-overlay[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]{--dummy: 0;margin:5px 5px 0 0}.isRtl[_nghost-%COMP%] .hover-overlay[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hover-overlay[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]{margin:5px 0 0 5px}html[dir=rtl][_ngcontent-%COMP%] .hover-overlay[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]{--dummy: 0;margin:5px 0 0 5px}.hover-overlay[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]:before{content:"radio_button_unchecked"}.hover-overlay.checked[_ngcontent-%COMP%]{background:var(--nv-virtual-grid-checked-color)!important}.hover-overlay.checked[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]:before{color:var(--nv-virtual-grid-multi-select-before-text-color)!important;content:"check_circle"!important}.hover-overlay.multiOn[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%], :focus[_nghost-%COMP%] .hover-overlay.multiFocus[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%], :focus [_nghost-%COMP%] .hover-overlay.multiFocus[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%], [_nghost-%COMP%]:hover .hover-overlay[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]{color:var(--nv-virtual-grid-multi-select-text-color)}.hover-overlay.multiOn[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]:hover:before, .hover-overlay.multiOn[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]:focus:before, :focus[_nghost-%COMP%] .hover-overlay.multiFocus[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]:hover:before, :focus [_nghost-%COMP%] .hover-overlay.multiFocus[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]:hover:before, :focus[_nghost-%COMP%] .hover-overlay.multiFocus[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]:focus:before, :focus [_nghost-%COMP%] .hover-overlay.multiFocus[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]:focus:before, [_nghost-%COMP%]:hover .hover-overlay[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]:hover:before, [_nghost-%COMP%]:hover .hover-overlay[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]:focus:before{color:var(--nv-virtual-grid-multi-select-before-text-color)}[_nghost-%COMP%]:hover .hover-highlight[_ngcontent-%COMP%]{background:var(--nv-virtual-grid-hover-color)}']})}}return r})()},70410:(Bt,z,s)=>{"use strict";s.d(z,{M:()=>Je});var n=s(80583),l=s(43848),d=s(4208),v=s(91384),S=s(75707),y=s(14714),f=s(83915),O=s(99469),P=s(20924),_=s(1229),i=s(58527),r=s(14354),a=s(96542),c=s(27211);const m=["image"],M=["video"],D=["previewMeme"],I=tt=>({"igo-geometry":tt}),U=(tt,rt)=>({"width.px":tt,"height.px":rt}),V=(tt,rt)=>({"viewer-video-counter-short":tt,"viewer-video-counter-long":rt});function T(tt,rt){if(1&tt&&(i.j41(0,"div",19),i.EFF(1),i.k0s()),2&tt){const et=i.XpG();i.R7$(),i.SpI(" ",et.description," ")}}function N(tt,rt){if(1&tt&&(i.j41(0,"div",20),i.EFF(1),i.k0s()),2&tt){const et=i.XpG();i.R7$(),i.SpI(" ",et.description," ")}}function L(tt,rt){if(1&tt&&(i.j41(0,"div",20),i.EFF(1),i.k0s()),2&tt){const et=i.XpG();i.R7$(),i.SpI(" ",et.appName," ")}}function E(tt,rt){if(1&tt){const et=i.RV6();i.j41(0,"nv-item-button",21),i.bIt("clicked",function(){i.eBV(et);const Gt=i.XpG();return i.Njj(Gt.closePreview())}),i.k0s()}if(2&tt){const et=i.XpG();i.Y8G("applyGeometry",et.isNvApp)}}function g(tt,rt){if(1&tt&&(i.j41(0,"span",22),i.EFF(1),i.k0s()),2&tt){const et=i.XpG();i.R7$(),i.JRh(et.description)}}function R(tt,rt){if(1&tt&&(i.j41(0,"span",22),i.EFF(1),i.k0s()),2&tt){const et=i.XpG();i.R7$(),i.JRh(et.fileName)}}function B(tt,rt){if(1&tt&&(i.j41(0,"span",22),i.EFF(1),i.k0s()),2&tt){const et=i.XpG();i.R7$(),i.JRh(et.fileName)}}function X(tt,rt){if(1&tt&&(i.j41(0,"span",16),i.EFF(1),i.k0s()),2&tt){const et=i.XpG();i.R7$(),i.JRh(et.dimensions)}}function H(tt,rt){1&tt&&(i.j41(0,"span",23),i.EFF(1),i.k0s()),2&tt&&(i.R7$(),i.JRh("|"))}function J(tt,rt){1&tt&&i.nrm(0,"mat-icon",34)}function re(tt,rt){1&tt&&i.nrm(0,"mat-icon",35)}function ie(tt,rt){if(1&tt){const et=i.RV6();i.j41(0,"div",29)(1,"button",30),i.bIt("click",function(){i.eBV(et);const Gt=i.XpG(2);return i.Njj(Gt.navLeft())}),i.DNE(2,J,1,0,"mat-icon",31),i.k0s(),i.j41(3,"button",32),i.bIt("click",function(){i.eBV(et);const Gt=i.XpG(2);return i.Njj(Gt.navRight())}),i.DNE(4,re,1,0,"mat-icon",33),i.k0s()()}if(2&tt){const et=i.XpG(2);i.R7$(2),i.Y8G("ngIf",et.chevronVisible),i.R7$(2),i.Y8G("ngIf",et.chevronVisible)}}function ve(tt,rt){if(1&tt){const et=i.RV6();i.j41(0,"nv-item-button",40),i.bIt("clicked",function(){i.eBV(et);const Gt=i.XpG(3);return i.Njj(Gt.editMeme())}),i.k0s()}if(2&tt){const et=i.XpG(3);i.Y8G("applyGeometry",et.isNvApp)}}function ue(tt,rt){if(1&tt){const et=i.RV6();i.j41(0,"nv-item-button",41),i.bIt("clicked",function(){i.eBV(et);const Gt=i.XpG(3);return i.Njj(Gt.openInFolder())}),i.k0s()}if(2&tt){const et=i.XpG(3);i.Y8G("applyGeometry",et.isNvApp)}}function se(tt,rt){if(1&tt){const et=i.RV6();i.j41(0,"div",36),i.DNE(1,ve,1,1,"nv-item-button",37)(2,ue,1,1,"nv-item-button",38),i.j41(3,"nv-item-button",39),i.bIt("clicked",function(){i.eBV(et);const Gt=i.XpG(2);return i.Njj(Gt.deleteItem())}),i.k0s()()}if(2&tt){const et=i.XpG(2);i.R7$(),i.Y8G("ngIf",et.showEditControls),i.R7$(),i.Y8G("ngIf",!et.isNvApp||et.isNvApp&&!et.highlightSummaryIsOpen),i.R7$(),i.Y8G("applyGeometry",et.isNvApp)}}function Z(tt,rt){if(1&tt){const et=i.RV6();i.j41(0,"button",45),i.bIt("click",function(){i.eBV(et);const Gt=i.XpG(3);return i.Njj(Gt.cancelEdit())}),i.EFF(1),i.nI1(2,"translate"),i.k0s()}2&tt&&(i.R7$(),i.SpI(" ",i.bMT(2,1,"confirmation.cancel")," "))}function Se(tt,rt){if(1&tt){const et=i.RV6();i.j41(0,"button",46),i.bIt("click",function(){i.eBV(et);const Gt=i.XpG(3);return i.Njj(Gt.save())}),i.EFF(1),i.nI1(2,"translate"),i.k0s()}if(2&tt){const et=i.XpG(3);i.Y8G("disabled",!et.enableSaveButton),i.R7$(),i.SpI(" ",i.bMT(2,2,"confirmation.save")," ")}}function Ce(tt,rt){if(1&tt){const et=i.RV6();i.j41(0,"button",45),i.bIt("click",function(){i.eBV(et);const Gt=i.XpG(3);return i.Njj(Gt.previewDone())}),i.EFF(1),i.nI1(2,"translate"),i.k0s()}2&tt&&(i.R7$(),i.SpI(" ",i.bMT(2,1,"confirmation.done")," "))}function Be(tt,rt){if(1&tt&&(i.j41(0,"div",42),i.DNE(1,Z,3,3,"button",43)(2,Se,3,4,"button",44)(3,Ce,3,3,"button",43),i.k0s()),2&tt){const et=i.XpG(2);i.R7$(),i.Y8G("ngIf",et.memeOn),i.R7$(),i.Y8G("ngIf",et.memeOn),i.R7$(),i.Y8G("ngIf",!et.memeOn)}}function Xe(tt,rt){if(1&tt){const et=i.RV6();i.qex(0),i.j41(1,"div",24),i.bIt("mouseenter",function(){i.eBV(et);const Gt=i.XpG();return i.Njj(Gt.mouseInPreview(!0))})("mouseleave",function(){i.eBV(et);const Gt=i.XpG();return i.Njj(Gt.mouseInPreview(!1))}),i.nrm(2,"img",25,0)(4,"nv-preview-meme",null,1),i.DNE(6,ie,5,2,"div",26),i.k0s(),i.DNE(7,se,4,3,"div",27)(8,Be,4,3,"div",28),i.bVm()}if(2&tt){const et=i.XpG();i.R7$(2),i.xc7("width",et.contentDimensions.width,"px")("height",et.contentDimensions.height,"px"),i.Y8G("src",et.fileSrc,i.B4B),i.R7$(4),i.Y8G("ngIf",!et.memeOn),i.R7$(),i.Y8G("ngIf",!et.memeOn),i.R7$(),i.Y8G("ngIf",et.showEditControls)}}function He(tt,rt){1&tt&&i.nrm(0,"mat-icon",34)}function Me(tt,rt){if(1&tt){const et=i.RV6();i.j41(0,"div",52)(1,"span",50),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.j41(4,"nv-item-button",53),i.bIt("clicked",function(){i.eBV(et);const Gt=i.XpG(3);return i.Njj(Gt.openInFolder())}),i.k0s()()}if(2&tt){const et=i.XpG(3);i.R7$(2),i.JRh(i.bMT(3,2,"tooltips.OpenFileLocation")),i.R7$(2),i.Y8G("applyGeometry",et.isNvApp)}}function Q(tt,rt){1&tt&&i.nrm(0,"mat-icon",35)}function A(tt,rt){if(1&tt){const et=i.RV6();i.j41(0,"div",29)(1,"button",30),i.bIt("click",function(){i.eBV(et);const Gt=i.XpG(2);return i.Njj(Gt.navLeft())}),i.DNE(2,He,1,0,"mat-icon",31),i.k0s(),i.j41(3,"div",48),i.nrm(4,"mat-icon",49),i.j41(5,"span",50),i.EFF(6),i.nI1(7,"translate"),i.k0s(),i.DNE(8,Me,5,4,"div",51),i.k0s(),i.j41(9,"button",32),i.bIt("click",function(){i.eBV(et);const Gt=i.XpG(2);return i.Njj(Gt.navRight())}),i.DNE(10,Q,1,0,"mat-icon",33),i.k0s()()}if(2&tt){const et=i.XpG(2);i.R7$(2),i.Y8G("ngIf",et.chevronVisible),i.R7$(4),i.JRh(i.bMT(7,4,"tooltips.PreviewImageError")),i.R7$(2),i.Y8G("ngIf",!et.highlightSummaryIsOpen),i.R7$(2),i.Y8G("ngIf",et.chevronVisible)}}function me(tt,rt){if(1&tt){const et=i.RV6();i.j41(0,"div",36)(1,"nv-item-button",41),i.bIt("clicked",function(){i.eBV(et);const Gt=i.XpG(2);return i.Njj(Gt.openInFolder())}),i.k0s(),i.j41(2,"nv-item-button",39),i.bIt("clicked",function(){i.eBV(et);const Gt=i.XpG(2);return i.Njj(Gt.deleteItem())}),i.k0s()()}if(2&tt){const et=i.XpG(2);i.R7$(),i.Y8G("applyGeometry",et.isNvApp),i.R7$(),i.Y8G("applyGeometry",et.isNvApp)}}function ne(tt,rt){if(1&tt){const et=i.RV6();i.qex(0),i.j41(1,"div",24),i.bIt("mouseenter",function(){i.eBV(et);const Gt=i.XpG();return i.Njj(Gt.mouseInPreview(!0))})("mouseleave",function(){i.eBV(et);const Gt=i.XpG();return i.Njj(Gt.mouseInPreview(!1))}),i.nrm(2,"video",47,2),i.DNE(4,A,11,6,"div",26),i.k0s(),i.DNE(5,me,3,2,"div",27),i.bVm()}if(2&tt){const et=i.XpG();i.R7$(2),i.Y8G("ngStyle",i.l_i(3,U,et.contentDimensions.width,et.contentDimensions.height)),i.R7$(2),i.Y8G("ngIf",!et.memeOn),i.R7$(),i.Y8G("ngIf",!et.memeOn&&!et.highlightSummaryIsOpen)}}function G(tt,rt){1&tt&&i.nrm(0,"mat-icon",34)}function W(tt,rt){1&tt&&i.nrm(0,"mat-icon",72)}function $(tt,rt){1&tt&&i.nrm(0,"mat-progress-spinner",73)}function le(tt,rt){if(1&tt){const et=i.RV6();i.j41(0,"div",52)(1,"span",50),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.j41(4,"nv-item-button",53),i.bIt("clicked",function(){i.eBV(et);const Gt=i.XpG(4);return i.Njj(Gt.openInFolder())}),i.k0s()()}if(2&tt){const et=i.XpG(4);i.R7$(2),i.JRh(i.bMT(3,2,"tooltips.OpenFileLocation")),i.R7$(2),i.Y8G("applyGeometry",et.isNvApp)}}function Pe(tt,rt){if(1&tt&&(i.j41(0,"div",48),i.nrm(1,"mat-icon",74),i.j41(2,"span",50),i.EFF(3),i.nI1(4,"translate"),i.k0s(),i.DNE(5,le,5,4,"div",51),i.k0s()),2&tt){const et=i.XpG(3);i.R7$(3),i.JRh(i.bMT(4,2,"tooltips.PlaybackError")),i.R7$(2),i.Y8G("ngIf",!et.highlightSummaryIsOpen)}}function Fe(tt,rt){1&tt&&i.nrm(0,"mat-icon",35)}function At(tt,rt){if(1&tt){const et=i.RV6();i.qex(0),i.j41(1,"div",66),i.bIt("click",function(){i.eBV(et);const Gt=i.XpG(2);return i.Njj(Gt.toggleMediaPlay())}),i.j41(2,"button",67),i.bIt("click",function(Gt){i.eBV(et);const yt=i.XpG(2);return Gt.stopPropagation(),i.Njj(yt.navLeft())})("keydown",function(Gt){return i.eBV(et),i.Njj(Gt.stopPropagation())}),i.DNE(3,G,1,0,"mat-icon",31),i.k0s(),i.DNE(4,W,1,0,"mat-icon",68)(5,$,1,0,"mat-progress-spinner",69)(6,Pe,6,4,"div",70),i.j41(7,"button",71),i.bIt("click",function(Gt){i.eBV(et);const yt=i.XpG(2);return Gt.stopPropagation(),i.Njj(yt.navRight())})("keydown",function(Gt){return i.eBV(et),i.Njj(Gt.stopPropagation())}),i.DNE(8,Fe,1,0,"mat-icon",33),i.k0s()(),i.bVm()}if(2&tt){const et=i.XpG(2);i.R7$(3),i.Y8G("ngIf",et.chevronVisible),i.R7$(),i.Y8G("ngIf",et.isPaused&&et.useDisplay===et.displayTypes.NORMAL&&!et.sliderMoving&&et.isVideoPlayable),i.R7$(),i.Y8G("ngIf",et.useDisplay===et.displayTypes.SPINNER),i.R7$(),i.Y8G("ngIf",!et.isVideoPlayable||et.useDisplay===et.displayTypes.ERROR),i.R7$(2),i.Y8G("ngIf",et.chevronVisible)}}function Le(tt,rt){if(1&tt){const et=i.RV6();i.j41(0,"nv-hig-slider",75),i.mxI("valueChange",function(Gt){i.eBV(et);const yt=i.XpG(2);return i.DH7(yt.sliderPosition,Gt)||(yt.sliderPosition=Gt),i.Njj(Gt)}),i.bIt("input",function(Gt){i.eBV(et);const yt=i.XpG(2);return i.Njj(yt.sliderChanged(Gt))})("mousedown",function(){i.eBV(et);const Gt=i.XpG(2);return i.Njj(Gt.sliderInteraction(!0))})("mouseup",function(){i.eBV(et);const Gt=i.XpG(2);return i.Njj(Gt.sliderInteraction(!1))},!1,i.tSv),i.k0s()}if(2&tt){const et=i.XpG(2);i.Y8G("step",et.step),i.R50("value",et.sliderPosition),i.Y8G("animating",!et.isPaused)("disabled",!et.isVideoPlayable||et.useDisplay===et.displayTypes.ERROR)}}function Et(tt,rt){if(1&tt){const et=i.RV6();i.j41(0,"nv-ranged-slider",76),i.mxI("valueChange",function(Gt){i.eBV(et);const yt=i.XpG(2);return i.DH7(yt.sliderPosition,Gt)||(yt.sliderPosition=Gt),i.Njj(Gt)})("leftPositionChange",function(Gt){i.eBV(et);const yt=i.XpG(2);return i.DH7(yt.sliderTrimLeft,Gt)||(yt.sliderTrimLeft=Gt),i.Njj(Gt)})("rightPositionChange",function(Gt){i.eBV(et);const yt=i.XpG(2);return i.DH7(yt.sliderTrimRight,Gt)||(yt.sliderTrimRight=Gt),i.Njj(Gt)}),i.bIt("leftPositionChange",function(Gt){i.eBV(et);const yt=i.XpG(2);return i.Njj(yt.onLeftSliderChange(Gt))})("rightPositionChange",function(Gt){i.eBV(et);const yt=i.XpG(2);return i.Njj(yt.onRightSliderChange(Gt))})("valueChange",function(Gt){i.eBV(et);const yt=i.XpG(2);return i.Njj(yt.sliderChanged(Gt))}),i.k0s()}if(2&tt){const et=i.XpG(2);i.R50("value",et.sliderPosition)("leftPosition",et.sliderTrimLeft)("rightPosition",et.sliderTrimRight),i.Y8G("disableTrim",et.disableTrimSliders)}}function $e(tt,rt){1&tt&&i.nrm(0,"div",77)}function Ze(tt,rt){if(1&tt){const et=i.RV6();i.j41(0,"nv-item-button",82),i.bIt("clicked",function(){i.eBV(et);const Gt=i.XpG(4);return i.Njj(Gt.deleteItem())}),i.k0s()}}function Qe(tt,rt){if(1&tt&&(i.j41(0,"div",79),i.DNE(1,Ze,1,0,"nv-item-button",81),i.k0s()),2&tt){const et=i.XpG(3);i.R7$(),i.Y8G("ngIf",!et.showShareButton)}}function Ve(tt,rt){if(1&tt&&(i.qex(0),i.nrm(1,"div",78),i.j41(2,"div",79),i.DNE(3,Qe,2,1,"div",80),i.k0s(),i.bVm()),2&tt){const et=i.XpG(2);i.R7$(3),i.Y8G("ngIf",et.highlightSummaryIsOpen)}}function nt(tt,rt){if(1&tt){const et=i.RV6();i.j41(0,"nv-item-button",40),i.bIt("clicked",function(){i.eBV(et);const Gt=i.XpG(4);return i.Njj(Gt.editMeme())}),i.k0s()}if(2&tt){const et=i.XpG(4);i.Y8G("applyGeometry",et.isNvApp)}}function Ot(tt,rt){if(1&tt){const et=i.RV6();i.j41(0,"nv-item-button",41),i.bIt("clicked",function(){i.eBV(et);const Gt=i.XpG(4);return i.Njj(Gt.openInFolder())}),i.k0s()}if(2&tt){const et=i.XpG(4);i.Y8G("applyGeometry",et.isNvApp)}}function at(tt,rt){if(1&tt){const et=i.RV6();i.j41(0,"nv-item-button",39),i.bIt("clicked",function(){i.eBV(et);const Gt=i.XpG(4);return i.Njj(Gt.deleteItem())}),i.k0s()}if(2&tt){const et=i.XpG(4);i.Y8G("applyGeometry",et.isNvApp)}}function It(tt,rt){if(1&tt&&(i.j41(0,"div",79),i.DNE(1,nt,1,1,"nv-item-button",37)(2,Ot,1,1,"nv-item-button",38)(3,at,1,1,"nv-item-button",84),i.k0s()),2&tt){const et=i.XpG(3);i.R7$(),i.Y8G("ngIf",et.showEditControls),i.R7$(),i.Y8G("ngIf",!et.showShareButton),i.R7$(),i.Y8G("ngIf",!et.showShareButton)}}function We(tt,rt){if(1&tt&&(i.qex(0),i.nrm(1,"div",78),i.j41(2,"div",79),i.nrm(3,"div",83),i.DNE(4,It,4,3,"div",80),i.k0s(),i.bVm()),2&tt){const et=i.XpG(2);i.R7$(4),i.Y8G("ngIf",!et.isNvApp||et.isNvApp&&!et.highlightSummaryIsOpen)}}function xe(tt,rt){if(1&tt){const et=i.RV6();i.j41(0,"button",45),i.bIt("click",function(){i.eBV(et);const Gt=i.XpG(3);return i.Njj(Gt.cancelEdit())}),i.EFF(1),i.nI1(2,"translate"),i.k0s()}2&tt&&(i.R7$(),i.SpI(" ",i.bMT(2,1,"confirmation.cancel")," "))}function lt(tt,rt){if(1&tt){const et=i.RV6();i.j41(0,"button",46),i.bIt("click",function(){i.eBV(et);const Gt=i.XpG(3);return i.Njj(Gt.save())}),i.EFF(1),i.nI1(2,"translate"),i.k0s()}if(2&tt){const et=i.XpG(3);i.Y8G("disabled",!et.enableSaveButton),i.R7$(),i.SpI(" ",i.bMT(2,2,"confirmation.save")," ")}}function ft(tt,rt){if(1&tt){const et=i.RV6();i.j41(0,"button",45),i.bIt("click",function(){i.eBV(et);const Gt=i.XpG(3);return i.Njj(Gt.previewDone())}),i.EFF(1),i.nI1(2,"translate"),i.k0s()}2&tt&&(i.R7$(),i.SpI(" ",i.bMT(2,1,"confirmation.done")," "))}function ht(tt,rt){if(1&tt&&(i.j41(0,"div",42),i.DNE(1,xe,3,3,"button",43)(2,lt,3,4,"button",44)(3,ft,3,3,"button",43),i.k0s()),2&tt){const et=i.XpG(2);i.R7$(),i.Y8G("ngIf",et.memeOn),i.R7$(),i.Y8G("ngIf",et.memeOn),i.R7$(),i.Y8G("ngIf",!et.memeOn)}}function Xt(tt,rt){if(1&tt){const et=i.RV6();i.j41(0,"div",54)(1,"div",55),i.bIt("keydown",function(Gt){i.eBV(et);const yt=i.XpG();return i.Njj(yt.processToggleMedia(Gt))})("mouseenter",function(){i.eBV(et);const Gt=i.XpG();return i.Njj(Gt.mouseInPreview(!0))})("mouseleave",function(){i.eBV(et);const Gt=i.XpG();return i.Njj(Gt.mouseInPreview(!1))}),i.j41(2,"video",56,2),i.bIt("loadeddata",function(){i.eBV(et);const Gt=i.XpG();return i.Njj(Gt.onLoadedData())})("error",function(){i.eBV(et);const Gt=i.XpG();return i.Njj(Gt.loadFromDragNDrop())}),i.k0s(),i.nrm(4,"nv-preview-meme",null,1),i.DNE(6,At,9,5,"ng-container",17),i.k0s(),i.j41(7,"div",57)(8,"nv-item-button",58),i.bIt("clicked",function(){i.eBV(et);const Gt=i.XpG();return i.Njj(Gt.toggleMediaPlay())}),i.k0s(),i.DNE(9,Le,1,4,"nv-hig-slider",59)(10,Et,1,4,"nv-ranged-slider",60),i.j41(11,"div",61)(12,"span",62),i.EFF(13),i.k0s()(),i.j41(14,"nv-item-button",63),i.bIt("clicked",function(){i.eBV(et);const Gt=i.XpG();return i.Njj(Gt.muteUnmute())}),i.k0s(),i.j41(15,"nv-hig-slider",64),i.mxI("valueChange",function(Gt){i.eBV(et);const yt=i.XpG();return i.DH7(yt.volume,Gt)||(yt.volume=Gt),i.Njj(Gt)}),i.bIt("valueChange",function(){i.eBV(et);const Gt=i.XpG();return i.Njj(Gt.volumeChanged())}),i.k0s(),i.DNE(16,$e,1,0,"div",65)(17,Ve,4,1,"ng-container",17)(18,We,5,1,"ng-container",17),i.k0s(),i.DNE(19,ht,4,3,"div",28),i.k0s()}if(2&tt){const et=i.XpG();i.R7$(2),i.Y8G("src",et.fileSrc,i.B4B)("ngStyle",i.l_i(22,U,et.contentDimensions.width,et.contentDimensions.height)),i.R7$(4),i.Y8G("ngIf",!et.memeOn),i.R7$(2),i.Y8G("svgIcon",et.isPaused?"play_arrow":"pause")("tooltip",et.isPaused?"tooltips.Play":"tooltips.Pause")("disabled",!et.isVideoPlayable||et.useDisplay===et.displayTypes.ERROR),i.R7$(),i.Y8G("ngIf",!et.memeOn),i.R7$(),i.Y8G("ngIf",et.memeOn),i.R7$(),i.Y8G("ngClass",i.l_i(25,V,!et.longDuration,et.longDuration)),i.R7$(),i.AVh("disabled-opacity",!et.isVideoPlayable||et.useDisplay===et.displayTypes.ERROR),i.R7$(),i.JRh(et.videoTime),i.R7$(),i.Y8G("svgIcon",0===et.volume?"volume_off":"volume")("tooltip",0===et.volume?"tooltips.Unmute":"tooltips.Mute")("disabled",!et.isVideoPlayable||et.useDisplay===et.displayTypes.ERROR)("applyGeometry",et.isNvApp),i.R7$(),i.R50("value",et.volume),i.Y8G("disabled",!et.isVideoPlayable||et.useDisplay===et.displayTypes.ERROR),i.R7$(),i.Y8G("ngIf",et.memeOn&&et.showEditControls),i.R7$(),i.Y8G("ngIf",et.highlightSummaryIsOpen&&et.isNvApp),i.R7$(),i.Y8G("ngIf",!et.memeOn),i.R7$(),i.Y8G("ngIf",et.showEditControls)}}let Je=(()=>{class tt{set imageRef(et){this.image=et?et.nativeElement:null}set videoRef(et){this.video&&""!==this.video.src&&(!et||this.video!==et.nativeElement)&&(this.video.src="",this.hasPlayedVideo=!1,this.video.load()),et?(this.video=et.nativeElement,this.video.focus()):this.video=null}constructor(et,St,Gt,yt,Wt,ke,be,Ae,qe,Lt,Zt,fn,hn,On,fi){this.loggingService=et,this.galleryService=St,this.bridgeService=Gt,this.renderer=yt,this.route=Wt,this.telemetry=ke,this.navigationService=be,this.osService=Ae,this.oscDisplayService=qe,this.igoConfig=Lt,this.trimService=Zt,this.dialogHelper=fn,this.translateService=hn,this.telemetryIgo=On,this.featureSupportService=fi,this.destroy$=new n.B7,this.fileMetaData=void 0,this.videoParams={trimmed:!1,startMs:0,durationMs:0,sliderPosition:0,sliderTrimRight:100,sliderTrimLeft:0,start:0,stop:0,volumeChanged:!1,volume:100,mute:!1},this.description="",this.fileName="",this.fullFilename="",this.dimensions="",this.contentDimensions={width:1280,height:720},this.fileSize="",this.volume=100,this.savedVolume=100,this.step=.1,this.sliderTrimLeft=0,this.sliderTrimRight=100,this.sliderPosition=0,this.spaceBetween=4,this.sliderTrimLeftMax=100-this.spaceBetween,this.sliderTrimRightMin=this.spaceBetween,this.trimmed=!1,this.trimCounter=0,this.isPaused=!0,this.playbackTimer=null,this.displayTypes={NORMAL:0,SPINNER:1,ERROR:2},this.useDisplay=this.displayTypes.SPINNER,this.sliderMoving=!1,this.longDuration=!1,this.appName="",this.hasPlayedVideo=!1,this.storedStreamVolume=1,this.showEditControls=!1,this.showShareButton=!1,this.enableShareButton=!1,this.enableSaveButton=!1,this.disableTrimSliders=!1,this.memeOn=!1,this.memed=!1,this.chevronVisible=!1,this.openViaSDK=!1,this.highlightSummaryIsOpen=!1,this.isNvApp=!1,this.dialogRef=void 0,this.logger=this.loggingService.getLogger("Gallery/Preview")}ngOnInit(){this.logger.info("Initializing Preview Component"),this.highlightSummaryIsOpen=this.galleryService.highlightSummaryIsOpen,this.isNvApp=this.featureSupportService.isNvApp(),this.showShareButton?this.navigationService.disableCenterPaneCallback():this.navigationService.centerPaneClosedEvent().pipe((0,d.Q)(this.destroy$)).subscribe(()=>{this.closePreview()}),this.galleryService.fileDataChangeListener.pipe((0,d.Q)(this.destroy$)).subscribe(et=>{this.initializeData(et),this.checkIfDataIsEdited()}),this.oscDisplayService.setOutsideClickState(!1),this.galleryService.previewWindowCloseNotify.pipe((0,d.Q)(this.destroy$)).subscribe(et=>{this.closePreview()})}ngOnDestroy(){this.logger.info("Destroying view!"),this.destroy$.next(!0),this.destroy$.complete(),this.navigationService.openCenterPane(!1),this.restoreVolume(),this.playbackTimer&&(clearInterval(this.playbackTimer),this.playbackTimer=null),this.video&&""!==this.video.src&&(this.video.src="",this.video.load()),this.oscDisplayService.setOutsideClickState(!0)}rampVolumeDown(et=1){this.igoConfig.GFNCefClient&&this.bridgeService.executeCommand(P.Ts.Gfn.Streaming.GetStreamVolume).pipe((0,v.M)(St=>{this.storedStreamVolume=St}),(0,S.ZZ)(()=>this.bridgeService.executeCommand(P.Ts.Gfn.Streaming.SetStreamVolume,{volume:.1,rampDurationSeconds:et})),(0,y.W)(()=>(0,l.of)("Error ramping volume down"))).subscribe()}restoreVolume(et=1){this.igoConfig.GFNCefClient&&this.bridgeService.executeCommand(P.Ts.Gfn.Streaming.SetStreamVolume,{volume:this.storedStreamVolume,rampDurationSeconds:et}).pipe((0,y.W)(()=>(0,l.of)("Error restoring volume"))).subscribe()}formatFilesizeString(et){return et<1e3?et+" KB":et<1e6?(et/1e3).toFixed(2)+" MB":(et/1e6).toFixed(2)+" GB"}initializeData(et){if(et){if(this.logger.info("Loading preview file"),(void 0===this.fileMetaData||et.fullFilename!==this.fileMetaData.fullFilename)&&(this.useDisplay=this.displayTypes.SPINNER,this.isVideoPlayable=!0),this.video&&!this.isPaused&&this.pauseMedia(),et.file.type===_.Wro.Image){const St=et.fullFilename.split(".").pop();this.isImageJXR="jxr"===St}else this.isImageJXR=!1;if(this.fileMetaData=et,this.isVideo=et.file.type===_.Wro.Video,this.fileName=et.file.name,et.hlName){const St=`highlightLabels.${et.hlName}`,Gt=this.translateService.instant(St),yt=Gt===St?et.hlName:Gt;this.description=this.isNvApp?yt:et.folder+" - "+yt}else this.description=et.folder;this.fileSize=this.formatFilesizeString(parseInt(et.fileSize,10)),this.fileSrc=O.fg+et.fullFilename,this.fullFilename=et.fullFilename,this.appName=et.folder,this.isVideo?this.updateContentDimensions(this.galleryService.mostLikelyResolution):this.galleryService.getImageFileDimensions(et.fullFilename).subscribe(St=>{St&&St.width&&St.height?(this.dimensions=St.width+"x"+St.height,this.galleryService.mostLikelyResolution.width=St.width,this.galleryService.mostLikelyResolution.height=St.height,this.updateContentDimensions({width:St.width,height:St.height})):this.dimensions="",this.onLoadedMeme()}),this.playbackTimer&&(clearInterval(this.playbackTimer),this.playbackTimer=null),this.restoreVolume(),this.isPaused=!0,this.sliderPosition=this.sliderTrimLeft=0,this.sliderTrimRight=100,this.contextIcon=this.isVideo?"video":"image"}}loadFromDragNDrop(){if(this.logger.info("Loading via dragNdrop"),!this.galleryService.currentFileData)return void this.logger.error("Loading a file after gallery moved on");const et=this.renderer.listen("document","dragover",Gt=>{Gt.stopPropagation(),Gt.preventDefault(),Gt.dataTransfer.dropEffect="copy"}),St=this.renderer.listen("document","drop",Gt=>{if(Gt.stopPropagation(),Gt.preventDefault(),!Gt.dataTransfer.files||!Gt.dataTransfer.files[0])return void this.logger.error("bad drop, no file list");if(!this.galleryService.currentFileData)return this.logger.error("Loading a file after gallery moved on"),et(),void St();const yt=Gt.dataTransfer.files[0];if(yt.name===this.galleryService.currentFileData.fullFilename){this.logger.info("Loading file");const Wt=URL.createObjectURL(yt);this.isVideo?(this.video.src=Wt,this.video.onerror=ke=>{this.logger.error("A video error occured",ke),this.useDisplay=this.displayTypes.ERROR,this.isVideoPlayable=!1},this.video.load()):this.image.src=Wt}else this.logger.error("bad drag file: "+this.galleryService.currentFileData.fullFilename+"-"+yt.name);et(),St()});this.bridgeService.executeCommand(P.Ts.Share.Osc.DropUrl,{url:this.galleryService.currentFileData.fullFilename}).subscribe()}updateContentDimensions(et){const St=et.width/et.height,Gt=this.contentDimensions.width/this.contentDimensions.height;Math.round(1e3*St)!==Math.round(1e3*Gt)&&(St>=Math.round(1.7777777777777777)?(this.contentDimensions.width=1280,this.contentDimensions.height=Math.round(this.contentDimensions.width/St)):(this.contentDimensions.height=720,this.contentDimensions.width=Math.round(this.contentDimensions.height*St)),this.logger.info("Updating content dimensions to ",this.contentDimensions))}onLoadedData(){this.logger.info("Video ready"),this.isVideoPlayable=!(!this.video.videoWidth||!this.video.videoHeight||this.useDisplay===this.displayTypes.ERROR),this.volume=100*this.video.volume,this.useDisplay=this.displayTypes.NORMAL,this.dimensions=this.video.videoWidth+"x"+this.video.videoHeight,this.galleryService.mostLikelyResolution.width=this.video.videoWidth,this.galleryService.mostLikelyResolution.height=this.video.videoHeight,this.setVideoTime(),this.updateContentDimensions(this.galleryService.mostLikelyResolution),this.onLoadedMeme()}onLoadedMeme(){this.showMeme({filename:this.fullFilename,contentWidth:this.contentDimensions.width,contentHeight:this.contentDimensions.height,duration:this.isVideo?this.video.duration:0,videoWidth:this.isVideo?this.video.videoWidth:this.contentDimensions.width,videoHeight:this.isVideo?this.video.videoHeight:this.contentDimensions.height})}sliderChanged(et){this.video&&this.useDisplay===this.displayTypes.NORMAL&&(et&&et.value&&(this.sliderPosition=et.value),this.sliderPosition!==this.lastPosition&&Math.round(this.sliderPosition/this.step)!==Math.round(this.lastPosition/this.step)&&(this.calculateVideoTime(this.sliderPosition),this.setVideoTime()),this.sliderTrimRight<=this.sliderPosition&&!this.isPaused&&setTimeout(()=>{this.logger.info("Video end reached, pausing"),this.pauseMedia()}))}toggleMediaPlay(){if(this.video&&this.isVideoPlayable&&this.useDisplay===this.displayTypes.NORMAL)if(this.video.paused){this.hasPlayedVideo||(this.hasPlayedVideo=!0,this.telemetryIgo.sendGalleryPlayedVideo(this.galleryService.currentFileData.fullFilename,this.galleryService.currentFileData.hlName)),Math.ceil(this.video.currentTime/this.video.duration*100/this.step)>=this.sliderTrimRight/this.step&&(this.logger.info("Restarting video..."),this.calculateVideoTime(this.sliderTrimLeft)),this.logger.info("Starting video"),this.rampVolumeDown(),this.video.play(),this.isPaused=!1,this.setEditPlayState();const et=this.getTrimStopPosition();this.playbackTimer=setInterval(()=>{this.video?(this.sliderMoving||(this.sliderPosition=this.lastPosition=this.video.currentTime/this.video.duration*100),this.setVideoTime(),(this.trimmed&&this.video.currentTime>=et||!this.trimmed&&this.video.currentTime>=this.video.duration)&&this.pauseMedia()):this.pauseMedia()})}else this.pauseMedia()}pauseMedia(){this.logger.info("Pausing video"),this.video?.pause(),this.isPaused=!0,this.setEditPlayState(),this.restoreVolume(),this.playbackTimer&&(this.logger.info("Clearing Interval on pause"),clearInterval(this.playbackTimer),this.playbackTimer=null)}processToggleMedia(et){this.memeOn||("Enter"===et.key||" "===et.key)&&this.toggleMediaPlay()}setEditPlayState(){this.memeOn&&this.previewMeme&&(this.previewMeme.editMeme(),this.disableTrimSliders=!this.isPaused)}setVideoTime(){this.longDuration=!(this.video.duration<3600);const et=Math.floor(this.video.duration),St=et*(this.sliderTrimRight-this.sliderTrimLeft)/100,Gt=Math.floor(St/3600),yt=Math.floor(St/60-60*Gt),Wt=Math.floor(St-3600*Gt-60*yt),ke=("00"+Gt).slice(-2).toString(),be=("00"+yt).slice(-2).toString(),Ae=("00"+Wt).slice(-2).toString(),qe=Math.abs(this.sliderPosition-this.sliderTrimLeft)*et/100,Lt=Math.floor(qe/3600),Zt=Math.floor(qe/60-60*Lt),fn=Math.floor(qe-3600*Lt-60*Zt);if(this.longDuration){const hn=ke+":"+be+":"+Ae,On=("00"+Lt).slice(-2).toString()+":"+("00"+Zt).slice(-2).toString()+":"+("00"+fn).slice(-2).toString();this.videoTime=On+" / "+hn}else{const hn=be+":"+Ae,On=("00"+Zt).slice(-2).toString()+":"+("00"+fn).slice(-2).toString();this.videoTime=On+" / "+hn}}volumeChanged(){this.video&&(this.logger.info("Volume changed to "+this.volume),this.video.volume=this.volume/100)}processToggleMute(et){("Enter"===et.key||" "===et.key)&&this.muteUnmute()}muteUnmute(){this.video&&(this.volume?(this.logger.info("Muting video"),this.savedVolume=this.volume,this.volume=0):(this.logger.info("UnMuting video"),this.volume=this.savedVolume||50),this.volumeChanged())}sliderInteraction(et){et&&this.video&&!this.isPaused?this.sliderMoving=!0:!et&&this.sliderMoving&&(this.sliderMoving=!1,this.isPaused&&this.toggleMediaPlay())}closePreview(){this.navigationService.navigate([{outlets:{centerPane:null}}],{relativeTo:this.route.parent.parent,skipLocationChange:!0},_.jby.galleryMain)}openInFolder(){let et=this.fullFilename;const St=this.osService.getDirSeparator(),Gt=et.lastIndexOf(St);if(-1!==Gt&&(et=et.slice(0,Gt)),""!==et){this.oscDisplayService.closeOSC();const yt=this.bridgeService.executeCommand(P.Ts.Common.Applicationinfo.OpenDirectoryBrowser,{name:et}).subscribe(()=>{yt.unsubscribe()});this.telemetryIgo.sendGalleryOpenedFileLocation()}}editMeme(){this.logger.info("Editing Open"),!this.memeOn&&!this.isPaused&&this.isVideo&&this.toggleMediaPlay(),this.showEditControls&&this.previewMeme&&(this.memeOn=!0,this.previewMeme.editMeme(),this.checkIfDataIsEdited())}checkIfDataIsEdited(){this.trimmed=0!==this.sliderTrimLeft||100!==this.sliderTrimRight,this.enableSaveButton=this.trimmed||this.memed,this.previewMeme&&this.previewMeme.editStartedEvent().pipe((0,d.Q)(this.destroy$)).subscribe(et=>{this.memed=et,this.enableSaveButton=this.trimmed||this.memed})}showMeme(et){this.logger.info("Show Meme"),(this.showEditControls||this.showShareButton)&&this.previewMeme&&setTimeout(()=>{this.memeOn=!1,this.previewMeme.displayMeme(et),this.checkIfDataIsEdited()})}cancelEdit(){this.logger.info("Cancel Editing"),this.memed=this.memeOn=!1,this.previewMeme.cancelMeme(),this.sliderPosition=this.sliderTrimLeft=0,this.sliderTrimRight=100,this.trimmed=!1}previewDone(){this.logger.info("Preview Done"),this.closePreview()}navLeft(){this.galleryService.previewPaneSendEvent(_.Pev.BackNav)}navRight(){this.galleryService.previewPaneSendEvent(_.Pev.ForwardNav)}deleteItem(){this.galleryService.previewPaneSendEvent(_.Pev.DeleteFile)}trim(et,St){return this.trimService.trim({input:this.fileMetaData.fullFilename,output:et,headTrimMs:this.videoParams.startMs,lengthMs:this.videoParams.durationMs}).pipe((0,S.ZZ)(()=>(this.logger.info("Trim complete!"),this.trimService.getMetaData(this.fileMetaData.fullFilename))),(0,f.T)(yt=>(this.logger.info("Return Data: ",yt),St&&(this.fileMetaData.date=yt.date,this.fileMetaData.fileSize=yt.fileSizeKB.toString(),this.fileMetaData.duration=yt.duration.slice(yt.duration.indexOf(":")+1)),this.logger.info("Trim post processing complete!"),this.initializeData(this.fileMetaData),this.checkIfDataIsEdited(),this.useDisplay=this.displayTypes.NORMAL,this.sliderPosition=0,this.calculateVideoTime(this.sliderPosition),this.setVideoTime(),St&&setTimeout(()=>{this.video.src="",this.video.load(),this.trimCounter++,this.video.src=this.fileSrc+"?"+this.trimCounter.toString(),this.video.load()},10),setTimeout(()=>{this.galleryService.updateAfterFileCreation(this.fileMetaData.folder)},10),!0)))}save(){if(0===this.sliderTrimLeft&&100===this.sliderTrimRight)return this.memed=this.memeOn=!1,void this.previewMeme.editMeme();this.dialogHelper.openAlertDialog({title:"confirmation.TrimVideo",query:"confirmation.ConfirmSaveChanges",queryParam:"",action1:"confirmation.cancel",action2:"confirmation.TrimOriginal",action3:"confirmation.SaveANewClip"},!1).pipe((0,d.Q)(this.destroy$),(0,v.M)(St=>this.dialogRef=St),(0,S.ZZ)(St=>St.afterClosed())).subscribe(St=>{if(St===_.SFy.Action2||St===_.SFy.Action3){this.useDisplay=this.displayTypes.SPINNER;const Gt=St===_.SFy.Action2;this.memed=this.memeOn=!1,this.setVideoTrimParams(!0);let yt=this.fileMetaData.fullFilename;Gt||(yt=this.createOutputFilename(this.fileMetaData.fullFilename,this.videoParams.start,this.videoParams.stop)),this.previewMeme.editMeme(Gt?void 0:yt,!0),this.trim(yt,Gt).pipe((0,d.Q)(this.destroy$)).subscribe()}})}sliderUpdate(et){setTimeout(()=>{this.sliderPosition=et,this.checkIfDataIsEdited(),this.calculateVideoTime(et),this.setVideoTime()})}calculateVideoTime(et){isNaN(et)&&(et=0);const St=et/100*this.video.duration;this.video.currentTime=isFinite(St)?St:0}onLeftSliderChange(et){this.logger.info("L-SliderChange: ",et),this.sliderUpdate(et)}onRightSliderChange(et){this.logger.info("R-SliderChange: ",et),this.sliderUpdate(et)}setVideoTrimParams(et){const St=this.sliderTrimLeft*this.video.duration*10,Gt=St/1e3,yt=(this.sliderTrimRight-this.sliderTrimLeft)*this.video.duration*10;this.videoParams={trimmed:et,startMs:St,durationMs:yt,sliderPosition:this.sliderPosition,sliderTrimRight:this.sliderTrimRight,sliderTrimLeft:this.sliderTrimLeft,start:Gt,stop:Gt+yt/1e3,volume:this.volume,mute:0===this.volume,volumeChanged:100!==this.volume},this.logger.info("Video Parameters for Trim: ",this.videoParams)}getTrimStopPosition(){return(this.sliderTrimLeft*this.video.duration*10+(this.sliderTrimRight-this.sliderTrimLeft)*this.video.duration*10)/1e3}createOutputFilename(et,St,Gt){let yt="";const Wt=et.lastIndexOf(".");return Wt>=0&&(yt=et.slice(0,Wt)),yt+="-"+Math.floor(St)+"-"+Math.floor(Gt)+"-"+Date.now()+".mp4",yt}mouseInPreview(et){this.chevronVisible=et}getHighlightSummaryOpenState(){return this.galleryService.highlightSummaryIsOpen}static{this.\u0275fac=function(St){return new(St||tt)(i.rXU(O.J6),i.rXU(_.AFS),i.rXU(O.NZ),i.rXU(i.sFG),i.rXU(r.nX),i.rXU(_.xRl),i.rXU(_.o_p),i.rXU(_.aTF),i.rXU(_.Bqk),i.rXU(_.k$F),i.rXU(_.g7b),i.rXU(_.eo6),i.rXU(a.c$),i.rXU(c.S),i.rXU(_.Rvq))}}static{this.\u0275cmp=i.VBU({type:tt,selectors:[["igo-preview"]],viewQuery:function(St,Gt){if(1&St&&(i.GBs(m,5),i.GBs(M,5),i.GBs(D,5)),2&St){let yt;i.mGM(yt=i.lsd())&&(Gt.imageRef=yt.first),i.mGM(yt=i.lsd())&&(Gt.videoRef=yt.first),i.mGM(yt=i.lsd())&&(Gt.previewMeme=yt.first)}},decls:21,vars:17,consts:[["image",""],["previewMeme",""],["video",""],["fxLayout","row","fxFill","","fxLayoutAlign","center center",1,"right-half"],["fxLayout","column","fxLayoutAlign","start start","cdkTrapFocus","",1,"center-pane",3,"ngClass"],["fxLayout","column","fxLayoutAlign","start stretch",1,"infopanel"],["fxLayout","row","fxLayoutAlign","start center"],["fxFlex","none","fxLayout","row","fxLayoutAlign","center center",1,"nv-item-icon"],[3,"svgIcon"],["fxFlex","grow","class","font-body1 font-color-primary",4,"ngIf"],["fxFlex","grow","class","preview-info-title font-body1",4,"ngIf"],["svgIcon","close",3,"applyGeometry","clicked",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start start","fxLayoutGap","24px",1,"info-subtext"],["class","font-body2 font-color-secondary","fxFlex","",4,"ngIf"],["class","font-body2 font-color-secondary","fxFlex","none",4,"ngIf"],["class","info-divider",4,"ngIf"],["fxFlex","none",1,"font-body2","font-color-secondary"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start start",4,"ngIf"],["fxFlex","grow",1,"font-body1","font-color-primary"],["fxFlex","grow",1,"preview-info-title","font-body1"],["svgIcon","close",3,"clicked","applyGeometry"],["fxFlex","",1,"font-body2","font-color-secondary"],[1,"info-divider"],[1,"preview-container",3,"mouseenter","mouseleave"],["alt","","tabIndex","-1",1,"preview-content",3,"src"],["class","navigation-buttons","fxLayout","row","fxLayoutAlign","space-between center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxLayoutGap","8px","class","viewer-media-toolbar",4,"ngIf"],["class","viewer-bottom-toolbar","fxFlexFill","","fxLayout","row","fxLayoutAlign","end end",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"navigation-buttons"],["fxFlex","none","mat-button","",1,"complex-button","button-left",3,"click"],["svgIcon","chevron_left","class","nav-button",4,"ngIf"],["fxFlex","none","mat-button","",1,"complex-button","button-right",3,"click"],["svgIcon","chevron_right","class","nav-button",4,"ngIf"],["svgIcon","chevron_left",1,"nav-button"],["svgIcon","chevron_right",1,"nav-button"],["fxLayout","row","fxLayoutAlign","end center","fxLayoutGap","8px",1,"viewer-media-toolbar"],["fxFlex","none","svgIcon","edit","tooltip","tooltips.Edit",3,"applyGeometry","clicked",4,"ngIf"],["fxFlex","none","svgIcon","folder_open","tooltip","tooltips.OpenLocation",3,"applyGeometry","clicked",4,"ngIf"],["fxFlex","none","svgIcon","delete_forever","tooltip","tooltips.Remove",3,"clicked","applyGeometry"],["fxFlex","none","svgIcon","edit","tooltip","tooltips.Edit",3,"clicked","applyGeometry"],["fxFlex","none","svgIcon","folder_open","tooltip","tooltips.OpenLocation",3,"clicked","applyGeometry"],["fxFlexFill","","fxLayout","row","fxLayoutAlign","end end",1,"viewer-bottom-toolbar"],["mat-button","","class","font-button2 hig-button",3,"click",4,"ngIf"],["mat-button","","class","font-button2 hig-button",3,"disabled","click",4,"ngIf"],["mat-button","",1,"font-button2","hig-button",3,"click"],["mat-button","",1,"font-button2","hig-button",3,"click","disabled"],["tabIndex","-1",1,"preview-content",3,"ngStyle"],["fxLayout","column","fxLayoutAlign","start center","fxLayoutGap","8px",1,"video_box_error"],["svgIcon","image_off",1,"icon-normal","icon64"],[1,"video-text-error","font-body1"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","2px",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","2px"],["svgIcon","open_in_new","tooltip","tooltips.OpenLocation",1,"font-body1",3,"clicked","applyGeometry"],["fxLayout","column","fxLayoutAlign","start start"],[1,"preview-container",3,"keydown","mouseenter","mouseleave"],["type","video/mp4","tabIndex","-1",1,"preview-content",3,"loadeddata","error","src","ngStyle"],["dir","ltr","fxFlexFill","","fxLayout","row","fxLayoutAlign","start center",1,"viewer-media-toolbar"],["fxFlex","none",1,"viewer-playpause-button",3,"clicked","svgIcon","tooltip","disabled"],["fxFlex","grow","min","0","max","100",3,"step","value","animating","disabled","valueChange","input","mousedown","mouseup",4,"ngIf"],["fxFlex","grow",3,"value","leftPosition","rightPosition","disableTrim","valueChange","leftPositionChange","rightPositionChange",4,"ngIf"],["fxLayout","","fxLayoutAlign","center center",3,"ngClass"],[1,"font-body2"],["fxFlex","none",1,"viewer-video-volume-button",3,"clicked","svgIcon","tooltip","disabled","applyGeometry"],["min","0","max","100",1,"viewer-video-volume-slider",3,"valueChange","value","disabled"],["fxFlex","none","class","nv-horizontal-gap-24",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"video-overlay-button",3,"click"],["fxFlex","none","mat-button","",1,"complex-button","button-left",3,"click","keydown"],["svgIcon","play_arrow","class","icon-preview video-overlay-button-icon circle-play",4,"ngIf"],["id","progressIndicator","class","md-accent","mode","indeterminate",4,"ngIf"],["class","video_box_error","fxLayout","column","fxLayoutAlign","start center","fxLayoutGap","8px",4,"ngIf"],["fxFlex","none","mat-button","",1,"complex-button","button-right",3,"click","keydown"],["svgIcon","play_arrow",1,"icon-preview","video-overlay-button-icon","circle-play"],["id","progressIndicator","mode","indeterminate",1,"md-accent"],["svgIcon","video_off",1,"icon-normal","icon64"],["fxFlex","grow","min","0","max","100",3,"valueChange","input","mousedown","mouseup","step","value","animating","disabled"],["fxFlex","grow",3,"valueChange","leftPositionChange","rightPositionChange","value","leftPosition","rightPosition","disableTrim"],["fxFlex","none",1,"nv-horizontal-gap-24"],["fxFlex","none",1,"padding-left","nv-horizontal-gap-32"],["fxLayout","row","fxLayoutAlign","end center","fxLayoutGap","8px"],["fxLayout","row","fxLayoutAlign","end center","fxLayoutGap","8px",4,"ngIf"],["fxFlex","none","svgIcon","delete_forever","tooltip","tooltips.Remove",3,"clicked",4,"ngIf"],["fxFlex","none","svgIcon","delete_forever","tooltip","tooltips.Remove",3,"clicked"],["fxFlex","none",1,"nv-horizontal-gap-32"],["fxFlex","none","svgIcon","delete_forever","tooltip","tooltips.Remove",3,"applyGeometry","clicked",4,"ngIf"]],template:function(St,Gt){1&St&&(i.j41(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7),i.nrm(5,"mat-icon",8),i.k0s(),i.DNE(6,T,2,1,"div",9)(7,N,2,1,"div",10)(8,L,2,1,"div",10)(9,E,1,1,"nv-item-button",11),i.k0s(),i.j41(10,"div",12),i.DNE(11,g,2,1,"span",13)(12,R,2,1,"span",13)(13,B,2,1,"span",13)(14,X,2,1,"span",14)(15,H,2,1,"span",15),i.j41(16,"span",16),i.EFF(17),i.k0s()()(),i.DNE(18,Xe,9,8,"ng-container",17)(19,ne,6,6,"ng-container",17)(20,Xt,20,28,"div",18),i.k0s()()),2&St&&(i.R7$(),i.Y8G("ngClass",i.eq3(15,I,Gt.isNvApp)),i.R7$(4),i.Y8G("svgIcon",Gt.contextIcon),i.R7$(),i.Y8G("ngIf",!Gt.isNvApp),i.R7$(),i.Y8G("ngIf",Gt.isNvApp&&!Gt.highlightSummaryIsOpen),i.R7$(),i.Y8G("ngIf",Gt.isNvApp&&Gt.highlightSummaryIsOpen),i.R7$(),i.Y8G("ngIf",!Gt.showShareButton),i.R7$(2),i.Y8G("ngIf",Gt.isNvApp&&Gt.highlightSummaryIsOpen),i.R7$(),i.Y8G("ngIf",Gt.isNvApp&&!Gt.highlightSummaryIsOpen),i.R7$(),i.Y8G("ngIf",!Gt.isNvApp),i.R7$(),i.Y8G("ngIf",Gt.isVideoPlayable&&Gt.useDisplay!==Gt.displayTypes.ERROR||!Gt.isVideo&&!Gt.isImageJXR),i.R7$(),i.Y8G("ngIf",Gt.fileSize),i.R7$(2),i.JRh(Gt.fileSize),i.R7$(),i.Y8G("ngIf",!Gt.isVideo&&!Gt.isImageJXR),i.R7$(),i.Y8G("ngIf",Gt.isImageJXR),i.R7$(),i.Y8G("ngIf",Gt.isVideo))},styles:[".isLtr[_nghost-%COMP%] .right-half[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .right-half[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .right-half[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .right-half[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .right-half[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .right-half[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .padding-left[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .padding-left[_ngcontent-%COMP%]{padding-left:2%}html[dir=ltr][_ngcontent-%COMP%] .padding-left[_ngcontent-%COMP%]{--dummy1: 0;padding-left:2%}.isRtl[_nghost-%COMP%] .padding-left[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .padding-left[_ngcontent-%COMP%]{padding-right:2%}html[dir=rtl][_ngcontent-%COMP%] .padding-left[_ngcontent-%COMP%]{--dummy1: 0;padding-right:2%}.center-pane[_ngcontent-%COMP%]{min-width:768px;max-width:1328px;min-height:656px;max-height:960px;display:inline-block;background:var(--preview-component-center-pane-bg-color)}.infopanel[_ngcontent-%COMP%]{margin:16px 16px 0;width:calc(100% - 32px)}.info-subtext[_ngcontent-%COMP%]{margin:0 8px}.preview-content[_ngcontent-%COMP%]{max-width:1280px;min-width:960px;max-height:720px;min-height:536px;margin:24px 24px 0;object-fit:contain!important;transition:width .15s ease-out,height .15s ease-out}.preview-container[_ngcontent-%COMP%]{position:relative}.navigation-buttons[_ngcontent-%COMP%]{position:absolute;inset:0;margin:24px 24px 0}.video-overlay-button[_ngcontent-%COMP%]{position:absolute;inset:24px 24px 4px;opacity:.95}.video-overlay-button-icon[_ngcontent-%COMP%]{width:16px;height:16px;font-size:16px;padding:16px}.circle-play[_ngcontent-%COMP%]{width:48px;height:48px;border-radius:50%;color:var(--gallery-video-overlay-play-button-color);background-color:var(--gallery-video-overlay-play-button-bg-color)}.button-left[_ngcontent-%COMP%]{border-radius:50%!important}.isLtr[_nghost-%COMP%] .button-left[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .button-left[_ngcontent-%COMP%]{margin-left:16px}html[dir=ltr][_ngcontent-%COMP%] .button-left[_ngcontent-%COMP%]{--dummy3: 0;margin-left:16px}.isRtl[_nghost-%COMP%] .button-left[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .button-left[_ngcontent-%COMP%]{margin-right:16px}html[dir=rtl][_ngcontent-%COMP%] .button-left[_ngcontent-%COMP%]{--dummy3: 0;margin-right:16px}.button-right[_ngcontent-%COMP%]{border-radius:50%!important}.isLtr[_nghost-%COMP%] .button-right[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .button-right[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .button-right[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .button-right[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .button-right[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .button-right[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.icon48[_ngcontent-%COMP%]{width:48px;height:48px;font-size:48px}.icon64[_ngcontent-%COMP%]{width:64px;height:64px;font-size:64px;color:#fff}.nav-button[_ngcontent-%COMP%]{color:var(--gallery-video-overlay-nav-button-color);padding:6px;font-size:32px;width:36px;height:36px;border-radius:50%;background-color:var(--gallery-video-overlay-nav-button-bg-color)}.video-moment-error[_ngcontent-%COMP%]{position:absolute;text-align:center;vertical-align:middle}.video-box-error[_ngcontent-%COMP%]{margin-top:80px;text-align:center;display:table}.video-box-error[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle!important}.viewer-media-toolbar[_ngcontent-%COMP%]{width:100%;max-height:68px;padding:16px 24px}.viewer-bottom-toolbar[_ngcontent-%COMP%]{width:100%;height:40px;padding:0 8px 8px 24px}.viewer-playpause-button[_ngcontent-%COMP%]{margin:0 8px 0 0}.isLtr[_nghost-%COMP%] .viewer-playpause-button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .viewer-playpause-button[_ngcontent-%COMP%]{padding-right:1%}html[dir=ltr][_ngcontent-%COMP%] .viewer-playpause-button[_ngcontent-%COMP%]{--dummy2: 0;padding-right:1%}.isRtl[_nghost-%COMP%] .viewer-playpause-button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .viewer-playpause-button[_ngcontent-%COMP%]{padding-left:1%}html[dir=rtl][_ngcontent-%COMP%] .viewer-playpause-button[_ngcontent-%COMP%]{--dummy2: 0;padding-left:1%}.viewer-video-counter-short[_ngcontent-%COMP%]{min-width:100px;margin:0 0 0 16px}.viewer-video-counter-long[_ngcontent-%COMP%]{min-width:130px;margin:0 0 0 16px}.viewer-video-volume-slider[_ngcontent-%COMP%]{min-width:80px}.viewer-video-volume-button[_ngcontent-%COMP%]{margin:0 0 0 16px}.isLtr[_nghost-%COMP%] .viewer-video-volume-button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .viewer-video-volume-button[_ngcontent-%COMP%]{padding-right:1%}html[dir=ltr][_ngcontent-%COMP%] .viewer-video-volume-button[_ngcontent-%COMP%]{--dummy2: 0;padding-right:1%}.isRtl[_nghost-%COMP%] .viewer-video-volume-button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .viewer-video-volume-button[_ngcontent-%COMP%]{padding-left:1%}html[dir=rtl][_ngcontent-%COMP%] .viewer-video-volume-button[_ngcontent-%COMP%]{--dummy2: 0;padding-left:1%}.info-divider[_ngcontent-%COMP%]{color:var(--primary-100)}.igo-geometry[_ngcontent-%COMP%]{border-radius:var(--geometry-border-radius-lg) var(--geometry-border-radius-lg) var(--geometry-border-radius-lg) var(--geometry-border-radius-lg)}.igo-geometry[_ngcontent-%COMP%] .preview-content[_ngcontent-%COMP%]{border-radius:var(--geometry-border-radius-md) var(--geometry-border-radius-md) var(--geometry-border-radius-md) var(--geometry-border-radius-md)}"]})}}return tt})()},40418:(Bt,z,s)=>{"use strict";s.d(z,{k:()=>a});var n=s(58527),l=s(40262),d=s(14354),v=s(80583),S=s(8619),y=s(65706),f=s(4208),O=s(99469),P=s(56785),_=s(1229);const i=["content"],r=(c,m)=>({"sidebar-color-rtxhdr":c,"sidebar-color-nativehdr":m});let a=(()=>{class c{getHideSidebar(){return this.oscDisplayService.getHideSidebar()}constructor(M,D,I,U,V,T){this.spatialNavigationService=D,this.focusManager=I,this.router=U,this.oscDisplayService=V,this.igoConfig=T,this.isRTLLayout=!1,this.destroy$=new v.B7,this.isGfn=!1,this.rtxHdrMode=!1,this.nativeHdrMode=!1,this.isRTLLayout=M.isRTLLayoutEnabled}ngOnInit(){this.oscDisplayService.setHideSidebar(!1),this.isGfn=this.igoConfig.GFNCefClient,this.isGfn||this.oscDisplayService.isDisplayStateCheckComplete().pipe((0,S.p)(Boolean),(0,y.s)(1)).subscribe(()=>{this.rtxHdrMode=this.oscDisplayService.getRtxHdrEnable(),this.nativeHdrMode=!this.rtxHdrMode&&this.oscDisplayService.getNativeHdrEnable()})}ngAfterViewInit(){this.isGfn||this.oscDisplayService.getRtxHdrStatus$().pipe((0,f.Q)(this.destroy$)).subscribe(M=>{this.rtxHdrMode=!this.oscDisplayService.getCurrentDesktopModeImmediate()&&M,this.rtxHdrMode&&(this.nativeHdrMode=!1)}),this.spatialNavigationService.enabled&&(this.oscDisplayService.getSidebarVisibilityChange$().pipe((0,S.p)(M=>M),(0,f.Q)(this.destroy$)).subscribe(()=>{this.focusManager.focusViaLastOrigin(this.focusManager.getInitialFocusable(this.content.nativeElement))}),this.router.events.pipe((0,f.Q)(this.destroy$)).subscribe(M=>{if(M instanceof d.wF){const D=Array.from(this.content.nativeElement.children).reverse().find(I=>I instanceof HTMLElement&&I.tagName.includes("IGO-"));D instanceof HTMLElement&&this.focusManager.focusChild(D,"initial")}}))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}prepareRoute(M){return!this.isRTLLayout&&M&&M.activatedRouteData&&M.activatedRouteData.level}prepareRouteRtl(M){return this.isRTLLayout&&M&&M.activatedRouteData&&M.activatedRouteData.level}onMouseDown(M){0===M.button&&!this.isGfn&&this.oscDisplayService.getOutsideClickState()&&M.clientX>this.content?.nativeElement.offsetWidth&&this.oscDisplayService.closeOSC()}static{this.\u0275fac=function(D){return new(D||c)(n.rXU(O.iH),n.rXU(P.ED),n.rXU(P.c_),n.rXU(d.Ix),n.rXU(_.Bqk),n.rXU(_.k$F))}}static{this.\u0275cmp=n.VBU({type:c,selectors:[["nv-sidebar"]],viewQuery:function(D,I){if(1&D&&n.GBs(i,5,n.aKT),2&D){let U;n.mGM(U=n.lsd())&&(I.content=U.first)}},decls:8,vars:8,consts:[["content",""],["outlet","outlet"],["fxLayout","row","fxFill","",3,"mousedown"],["fxLayout","column","nvSpatialNavigationContainer","","captureFocusForChild","true",1,"sidebar"],["fxFlex","","fxLayout","column",1,"sidebar-content",3,"ngClass"],["name","centerPane"]],template:function(D,I){if(1&D){const U=n.RV6();n.j41(0,"div",2),n.bIt("mousedown",function(T){return n.eBV(U),n.Njj(I.onMouseDown(T))}),n.j41(1,"div",3),n.nrm(2,"nv-app-bar"),n.j41(3,"div",4,0),n.nrm(5,"router-outlet",null,1),n.k0s()(),n.nrm(7,"router-outlet",5),n.k0s()}if(2&D){const U=n.sdS(6);n.R7$(),n.xc7("display",I.getHideSidebar()?"none":"inherit"),n.R7$(2),n.Y8G("ngClass",n.l_i(5,r,I.rtxHdrMode,I.nativeHdrMode))("@slideFadeAnimation",I.prepareRoute(U))("@slideFadeAnimationRtl",I.prepareRouteRtl(U))}},styles:["[_nghost-%COMP%]{pointer-events:auto;position:absolute;width:100%;height:100%}.sidebar[_ngcontent-%COMP%]{display:inline-block;height:100%;width:512px;min-width:512px;filter:drop-shadow(0px 5px 22px rgba(0,0,0,.12)) drop-shadow(0px 12px 17px rgba(0,0,0,.14)) drop-shadow(0px 7px 8px rgba(0,0,0,.2));z-index:999}.sidebar-content[_ngcontent-%COMP%]{background:var(--sidebar-content-bg-color);overflow:hidden;position:relative}.sidebar-color-rtxhdr[_ngcontent-%COMP%]{background:var(--sidebar-content-rtxhdr-bg-color)}.sidebar-color-nativehdr[_ngcontent-%COMP%]{background:var(--sidebar-content-nativehdr-bg-color)}.tv-view[_nghost-%COMP%] .sidebar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .sidebar[_ngcontent-%COMP%]{width:690px}"],data:{animation:[(0,l.hZ)("slideFadeAnimation",[(0,l.kY)("void => 0, 0 => void",[]),(0,l.kY)(":increment",[(0,l.P)(":leave",[(0,l.iF)({opacity:1})]),(0,l.P)(":enter",[(0,l.iF)({opacity:1,left:"-100%","background-color":"inherit","z-index":999,"box-shadow":"2px 0 8px 1px rgba(0, 0, 0, 0.75)"}),(0,l.i0)("300ms cubic-bezier(0.0, 0.0, 0.2, 1)",(0,l.iF)({left:"0"}))]),(0,l.P)(":leave",[(0,l.iF)({opacity:"0"})]),(0,l.P)(":enter",[(0,l.iF)({"background-color":"unset","z-index":"unset","box-shadow":"unset"})])]),(0,l.kY)(":decrement",[(0,l.P)(":leave",[(0,l.iF)({opacity:1,left:"0","background-color":"inherit","z-index":999,"box-shadow":"2px 0 8px 1px rgba(0, 0, 0, 0.75)"}),(0,l.i0)("300ms cubic-bezier(0.4, 0.0, 1, 1)",(0,l.iF)({left:"-100%"})),(0,l.iF)({"background-color":"unset"})],{optional:!0})])]),(0,l.hZ)("slideFadeAnimationRtl",[(0,l.kY)("void => 0, 0 => void",[]),(0,l.kY)(":increment",[(0,l.P)(":leave",[(0,l.iF)({opacity:1})]),(0,l.P)(":enter",[(0,l.iF)({opacity:1,right:"-100%","background-color":"inherit","z-index":999,"box-shadow":"2px 0 8px 1px rgba(0, 0, 0, 0.75)"}),(0,l.i0)("300ms cubic-bezier(0.0, 0.0, 0.2, 1)",(0,l.iF)({right:"0"}))]),(0,l.P)(":leave",[(0,l.iF)({opacity:"0"})]),(0,l.P)(":enter",[(0,l.iF)({"background-color":"unset","z-index":"unset","box-shadow":"unset"})])]),(0,l.kY)(":decrement",[(0,l.P)(":leave",[(0,l.iF)({opacity:1,right:"0","background-color":"inherit","z-index":999,"box-shadow":"2px 0 8px 1px rgba(0, 0, 0, 0.75)"}),(0,l.i0)("300ms cubic-bezier(0.4, 0.0, 1, 1)",(0,l.iF)({right:"-100%"})),(0,l.iF)({"background-color":"unset"})],{optional:!0})])])]}})}}return c})()},52834:(Bt,z,s)=>{"use strict";s.d(z,{I:()=>d});var n=s(6364),l=s(58527);let d=(()=>{class v{get disabled(){return this._disabled}set disabled(y){this._disabled=(0,n.he)(y),this._disabled?this.el.nativeElement.setAttribute("disabled",""):this.el.nativeElement.removeAttribute("disabled")}constructor(y){this.el=y,this._disabled=!1}static{this.\u0275fac=function(f){return new(f||v)(l.rXU(l.aKT))}}static{this.\u0275dir=l.FsC({type:v,selectors:[["disabled"],["","disabled",""]],inputs:{disabled:"disabled"}})}}return v})()},81616:(Bt,z,s)=>{"use strict";s.d(z,{U:()=>l});var n=s(58527);let l=(()=>{class d{constructor(S){this.element=S,this.focusEnabled=!0}onmouseenter(){!1!==this.focusEnabled&&this.element.nativeElement.focus()}onmouseleave(){!1!==this.focusEnabled&&this.element.nativeElement.blur()}static{this.\u0275fac=function(y){return new(y||d)(n.rXU(n.aKT))}}static{this.\u0275dir=n.FsC({type:d,selectors:[["","nvHoverFocus",""]],hostBindings:function(y,f){1&y&&n.bIt("mouseenter",function(){return f.onmouseenter()})("mouseleave",function(){return f.onmouseleave()})},inputs:{focusEnabled:[n.Mj6.None,"nvHoverFocus","focusEnabled"]}})}}return d})()},27216:(Bt,z,s)=>{"use strict";s.d(z,{VI:()=>S,MG:()=>i.M,kc:()=>l.k}),s(23812);var l=s(40418),d=s(58527),v=s(14354);let S=(()=>{class m{constructor(){}static{this.\u0275fac=function(I){return new(I||m)}}static{this.\u0275cmp=d.VBU({type:m,selectors:[["nv-center-pane"]],decls:1,vars:0,template:function(I,U){1&I&&d.nrm(0,"router-outlet")},dependencies:[v.n3],encapsulation:2})}}return m})();s(83486),s(43822),s(36842),s(93662),s(55962);var i=s(70410);s(15332),s(45152),s(43827)},23812:(Bt,z,s)=>{"use strict";s.d(z,{G:()=>ft});var n=s(61142),l=s(14354),d=s(51006),v=s(17617),S=s(56785),y=s(40418),f=s(43822),O=s(93662),P=s(58527),_=s(36842),i=s(52834);let r=(()=>{class ht{get leftPosition(){return this._leftPosition}set leftPosition(Ht){this._leftPosition!==Ht&&(this._leftPosition=Ht,this.trimChanged(),this.leftPositionChange.emit(this._leftPosition))}get rightPosition(){return this._rightPosition}set rightPosition(Ht){this._rightPosition!==Ht&&(this._rightPosition=Ht,this.trimChanged(),this.rightPositionChange.emit(this._rightPosition))}get value(){return this._value}set value(Ht){Ht!==this._value&&(this._value=Ht,this.valueChange.emit(this._value))}constructor(){this._leftPosition=0,this.leftPositionChange=new P.bkB,this._rightPosition=100,this.rightPositionChange=new P.bkB,this.valueChange=new P.bkB,this._value=0,this.step=1,this.disabled=!1,this.disableTrim=!1,this.spaceBetween=4,this.leftMax=100-this.spaceBetween,this.rightMin=this.spaceBetween}trimChanged(){this.leftMax=this.rightPosition-this.spaceBetween,this.rightMin=this.leftPosition+this.spaceBetween}static{this.\u0275fac=function(Je){return new(Je||ht)}}static{this.\u0275cmp=P.VBU({type:ht,selectors:[["nv-ranged-slider"]],inputs:{leftPosition:"leftPosition",rightPosition:"rightPosition",value:"value",step:"step",disabled:"disabled",disableTrim:"disableTrim"},outputs:{leftPositionChange:"leftPositionChange",rightPositionChange:"rightPositionChange",valueChange:"valueChange"},decls:5,vars:22,consts:[[1,"ranged-slider-padding"],[1,"ranged-slider-wrapper"],[3,"valueChange","disabled","min","max","step","value","rangeMin","rangeMax"],[1,"trim-slider","left-slider",3,"valueChange","disabled","onlyThumbs","min","max","step","rangeMin","rangeMax","value"],[1,"trim-slider","right-slider",3,"valueChange","setWidthOnMin","disabled","onlyThumbs","min","max","step","value"]],template:function(Je,tt){1&Je&&(P.j41(0,"div",0)(1,"div",1)(2,"nv-slider",2),P.mxI("valueChange",function(et){return P.DH7(tt.value,et)||(tt.value=et),et}),P.k0s(),P.j41(3,"nv-slider",3),P.mxI("valueChange",function(et){return P.DH7(tt.leftPosition,et)||(tt.leftPosition=et),et}),P.bIt("valueChange",function(){return tt.trimChanged()}),P.k0s(),P.j41(4,"nv-slider",4),P.mxI("valueChange",function(et){return P.DH7(tt.rightPosition,et)||(tt.rightPosition=et),et}),P.bIt("valueChange",function(){return tt.trimChanged()}),P.k0s()()()),2&Je&&(P.R7$(2),P.Y8G("disabled",tt.disabled)("min",0)("max",100)("step",tt.step),P.R50("value",tt.value),P.Y8G("rangeMin",tt.leftPosition)("rangeMax",tt.rightPosition),P.R7$(),P.Y8G("disabled",tt.disableTrim)("onlyThumbs",!0)("min",0)("max",100)("step",tt.step)("rangeMin",0)("rangeMax",tt.leftMax),P.R50("value",tt.leftPosition),P.R7$(),P.Y8G("setWidthOnMin",!0)("disabled",tt.disableTrim)("onlyThumbs",!0)("min",tt.rightMin)("max",100)("step",tt.step),P.R50("value",tt.rightPosition))},dependencies:[_.xN,i.I],styles:[".ranged-slider-padding[_ngcontent-%COMP%]{padding:0 5px}.ranged-slider-wrapper[_ngcontent-%COMP%]{text-align:center;vertical-align:middle;position:relative}.ranged-slider-wrapper[_ngcontent-%COMP%] nv-slider[_ngcontent-%COMP%]{padding:0!important}.ranged-slider-wrapper[_ngcontent-%COMP%] .left-slider[_ngcontent-%COMP%], .ranged-slider-wrapper[_ngcontent-%COMP%] .right-slider[_ngcontent-%COMP%]{position:absolute;top:20px;width:100%}.ranged-slider-wrapper[_ngcontent-%COMP%] .left-slider[_ngcontent-%COMP%]{left:0}.ranged-slider-wrapper[_ngcontent-%COMP%] .right-slider[_ngcontent-%COMP%]{min-width:14px;right:0}"]})}}return ht})();var a=s(55962),c=s(15332),m=s(6754),M=s(99469),D=s(1229),I=s(80583),U=s(4208),V=s(3457),T=s(28139),N=s(21254);const L=["memeTopString"],E=["memeBottomString"],g=["memeTopSpan"],R=["memeBottomSpan"],B=ht=>({top:ht});function X(ht,Xt){if(1&ht&&(P.j41(0,"div",6)(1,"div",7,0)(3,"span",null,1),P.EFF(5),P.k0s()(),P.j41(6,"div",8,2)(8,"span",null,3),P.EFF(10),P.k0s()()()),2&ht){const Ht=P.XpG();P.R7$(),P.Y8G("ngStyle",P.eq3(4,B,Ht.topOffset)),P.R7$(4),P.JRh(Ht.upperMeme),P.R7$(),P.Y8G("ngStyle",P.eq3(6,B,Ht.bottomOffset)),P.R7$(4),P.JRh(Ht.lowerMeme)}}function H(ht,Xt){if(1&ht){const Ht=P.RV6();P.j41(0,"div",9)(1,"div",10)(2,"nv-input",11),P.mxI("textChange",function(tt){P.eBV(Ht);const rt=P.XpG();return P.DH7(rt.upperMeme,tt)||(rt.upperMeme=tt),P.Njj(tt)}),P.bIt("stringChange",function(tt){P.eBV(Ht);const rt=P.XpG();return P.Njj(rt.upperMemeChanged(tt))}),P.k0s(),P.j41(3,"nv-input",11),P.mxI("textChange",function(tt){P.eBV(Ht);const rt=P.XpG();return P.DH7(rt.lowerMeme,tt)||(rt.lowerMeme=tt),P.Njj(tt)}),P.bIt("stringChange",function(tt){P.eBV(Ht);const rt=P.XpG();return P.Njj(rt.lowerMemeChanged(tt))}),P.k0s()()()}if(2&ht){const Ht=P.XpG();P.R7$(2),P.R50("text",Ht.upperMeme),P.Y8G("placeholderText",Ht.upperPlaceHolder)("disabled",!1)("textMaxLength",Ht.topMeme.maxLength),P.R7$(),P.R50("text",Ht.lowerMeme),P.Y8G("placeholderText",Ht.lowerPlaceHolder)("disabled",!1)("textMaxLength",Ht.bottomMeme.maxLength)}}let ie=(()=>{class ht{editStartedEvent(){return this.editStartedEvent$.asObservable()}constructor(Ht,Je,tt){this.loggingService=Ht,this.renderer=Je,this.memeService=tt,this.destroy$=new I.B7,this.memeData={filename:"",duration:0,videoWidth:0,videoHeight:0,contentWidth:0,contentHeight:0},this.memeStringsOnOpenUpper="",this.memeStringsOnOpenLower="",this.memeChanged=!1,this.memeOn=!1,this.memesValid=!1,this.DefaultMemeMaxLength=80,this.upperMeme="",this.lowerMeme="",this.upperPlaceHolder={text:"gallery.TopTextHere",arg:""},this.lowerPlaceHolder={text:"gallery.BottomTextHere",arg:""},this.topOffset="",this.bottomOffset="",this.maxFontSizeUI=65,this.minFontSizeUI=40,this.topOffsetDefault=0,this.bottomOffsetDefault=640,this.totalLRMargin=80,this.usableWidth=0,this.memeColor="white",this.strokeColor="black",this.topMeme=void 0,this.bottomMeme=void 0,this.editStartedEvent$=new I.B7,this.logger=this.loggingService.getLogger("Gallery/Preview-Meme")}ngOnInit(){this.logger.info("Initializing Preview-Meme Component")}ngOnDestroy(){this.logger.info("Destroying view!"),this.destroy$.next(!0),this.destroy$.complete()}ngAfterViewInit(){this.topMeme={string:this.upperMeme,fontSize:this.maxFontSizeUI,previousWidth:0,maxLength:this.DefaultMemeMaxLength,id:this.upperString},this.bottomMeme={string:this.lowerMeme,fontSize:this.maxFontSizeUI,previousWidth:0,maxLength:this.DefaultMemeMaxLength,id:this.lowerString}}editMeme(Ht,Je){this.memeOn=!this.memeOn,this.memeOn?this.setupMemeUI():(this.memeChanged||Ht)&&(Je?this.memeService.queueToUpdateMeme(Ht||this.memeData.filename,this.topMeme.string,this.bottomMeme.string):this.saveMeme(this.memeData.filename))}share(Ht,Je){this.destination=Ht,this.metaData=Je,this.memesValid?this.processMeme(Je.file.type===D.Wro.Image):this.processGIF()}displayMeme(Ht){this.memeOn=!1,this.memeData=Ht,this.setupMemeUI()}cancelMeme(){this.memeOn=!1,this.topMeme.string=this.upperMeme=this.memeStringsOnOpenUpper,this.bottomMeme.string=this.lowerMeme=this.memeStringsOnOpenLower,this.setMemeDataTop(),this.setMemeDataBottom(),this.checkMemeValidity()}upperMemeChanged(Ht){this.logger.info("Upper Meme changed: ",Ht),this.topMeme.string=this.upperMeme=Ht,this.setMemeDataTop(),this.checkMemeValidity(),this.editingStarted()}lowerMemeChanged(Ht){this.logger.info("Lower Meme changed: ",Ht),this.bottomMeme.string=this.lowerMeme=Ht,this.setMemeDataBottom(),this.checkMemeValidity(),this.editingStarted()}editingStarted(){this.memeChanged=this.topMeme.string!==this.memeStringsOnOpenUpper||this.bottomMeme.string!==this.memeStringsOnOpenLower,this.editStartedEvent$.next(this.memeChanged)}checkMemeValidity(){this.memesValid=0!==this.upperMeme.length||0!==this.lowerMeme.length}saveMeme(Ht){if(""===this.topMeme.string&&""===this.bottomMeme.string)return void this.memeService.clearMemeStrings(Ht);const Je={top:this.topMeme.string,bottom:this.bottomMeme.string,source:Ht,color:this.memeColor};this.logger.info("Saving meme data: ",Je),this.memeService.saveMemeStrings(Je).pipe((0,U.Q)(this.destroy$)).subscribe()}processMeme(Ht){let Je=this.memeData.contentWidth,tt=this.memeData.contentHeight;this.logger.info("Meme max height: ",720),Je>720&&(Je=720,tt=Je*(this.memeData.contentWidth/this.memeData.contentHeight)),this.logger.info("Meme size: "+tt+"x"+Je),this.memeService.createMeme({file:this.memeData.filename,duration:Ht?1:this.memeData.duration,width:tt,height:Je,clientWidth:this.memeData.videoWidth,clientHeight:this.memeData.videoHeight,topString:this.upperMeme,topFontSize:this.topMeme.fontSize,bottomString:this.lowerMeme,bottomFontSize:this.bottomMeme.fontSize,fillColor:this.memeColor,strokeColor:this.strokeColor,destination:this.destination,metaData:this.metaData})}processGIF(){let Ht=this.memeData.contentWidth,Je=this.memeData.contentHeight;this.logger.info("GIF max height: ",720),Ht>720&&(Ht=720,Je=Ht*(this.memeData.contentWidth/this.memeData.contentHeight)),this.logger.info("Meme size: "+Je+"x"+Ht),this.memeService.createGIF({file:this.memeData.filename,duration:this.memeData.duration,width:Je,height:Ht,clientWidth:this.memeData.videoWidth,clientHeight:this.memeData.videoHeight,destination:this.destination,metaData:this.metaData})}setMemeDataTop(){if(this.logger.info("MemeTop: ",this.upperMeme),""===this.upperMeme)return;this.topMeme.fontSize=this.adjustFontSize(this.topMeme,!0);const Ht=this.upperString.nativeElement;null!==Ht&&(Ht.style.fontSize=this.topMeme.fontSize+"px"),this.upperMeme=this.topMeme.string,this.logger.info("MemeTop Processed: ",this.upperMeme),this.logger.info("MemeTop Offset: ",this.topOffset)}setMemeDataBottom(){if(this.logger.info("MemeBottom: ",this.lowerMeme),""===this.lowerMeme)return;this.bottomMeme.fontSize=this.adjustFontSize(this.bottomMeme,!1);const Ht=this.lowerString.nativeElement;null!==Ht&&(Ht.style.fontSize=this.bottomMeme.fontSize+"px",this.bottomOffset=this.bottomOffsetDefault+(this.maxFontSizeUI-this.bottomMeme.fontSize)+"px"),this.lowerMeme=this.bottomMeme.string,this.logger.info("MemeBottom Processed: ",this.lowerMeme),this.logger.info("MemeBottom Offset: ",this.bottomOffset)}adjustFontSize(Ht,Je){let tt=Ht.fontSize,rt=this.getWidthOfText(Ht.string,tt);const et=tt;if(this.logger.info("length: "+rt+" UsableWidth: "+this.usableWidth+" fontSize: "+tt+" minFontSize: "+this.minFontSizeUI),rt>this.usableWidth&&tt===this.minFontSizeUI)return this.truncateString(Ht),this.setMax(Ht,Je),tt;if(Ht.maxLength=this.DefaultMemeMaxLength,this.setMax(Ht,Je),rt>this.usableWidth&&tt>this.minFontSizeUI){for(;rt>this.usableWidth&&tt>this.minFontSizeUI;)tt--,rt=this.getWidthOfText(Ht.string,tt);et!==tt&&this.logger.info("shrink meme font from: "+et+"px to: "+tt+"px"),rt>this.usableWidth&&tt===this.minFontSizeUI&&(this.logger.info("Special case. Length: "+rt+" usableWidth: "+this.usableWidth),rt=this.truncateString(Ht))}else if(rt<Ht.previousWidth&&tt<this.maxFontSizeUI){for(;rt<this.usableWidth&&tt<this.maxFontSizeUI;)tt++,rt=this.getWidthOfText(Ht.string,tt);tt=rt>this.usableWidth?tt-1:tt,et!==tt&&this.logger.info("Grow meme font from: "+et+"px to: "+tt+"px")}return Ht.previousWidth=rt,tt}setupMemeUI(){this.initViewer(),this.memeService.getMemeStrings(this.memeData.filename).pipe((0,U.Q)(this.destroy$)).subscribe(Ht=>{this.memeStringsOnOpenUpper=Ht.top,this.memeStringsOnOpenLower=Ht.bottom,void 0!==Ht.source&&Ht.source===this.memeData.filename&&(""!==Ht.top||""!==Ht.bottom?(this.logger.info("Using previous meme strings: ",Ht),this.upperMeme=this.topMeme.string=Ht.top,this.lowerMeme=this.bottomMeme.string=Ht.bottom,this.initViewer(),this.checkMemeValidity()):this.memeReset())})}initViewer(){this.usableWidth=this.memeData.contentWidth-this.totalLRMargin-100,this.logger.info("Video Width: "+this.memeData.contentWidth+" Height: "+this.memeData.contentHeight),this.logger.info("Usable Width: ",this.usableWidth),setTimeout(()=>{this.setMemeDataTop(),this.setMemeDataBottom(),this.setupMemeColor()})}memeReset(){this.topMeme.string=this.upperMeme="",this.bottomMeme.string=this.lowerMeme="",this.memeService.createMeme({file:"",duration:0,width:0,height:0,clientWidth:0,clientHeight:0,topString:"",topFontSize:0,bottomString:"",bottomFontSize:0,fillColor:"",strokeColor:"",destination:"",metaData:void 0})}getWidthOfText(Ht,Je){const rt=this.renderer.createElement("canvas").getContext("2d");return rt.font=Je+"px NVIDIA",rt.measureText(Ht).width}truncateString(Ht){let Je=this.getWidthOfText(Ht.string,this.minFontSizeUI);for(;Je>this.usableWidth;)Ht.string=Ht.string.substring(0,Ht.string.length-1),Je=this.getWidthOfText(Ht.string,this.minFontSizeUI),this.logger.info("Trunc meme chars: "+Ht.string.length+" width: "+Je+" String: "+Ht.string);return Ht.maxLength=Ht.string.length,Je}setMax(Ht,Je){Je?this.memeService.setUpperMemeMaxed(Ht.maxLength):this.memeService.setLowerMemeMaxed(Ht.maxLength)}setupMemeColor(){if(void 0===this.upperSpan||void 0===this.lowerSpan)return;const Ht=this.memeColor,Je=[];Je[0]=this.upperSpan.nativeElement,Je[1]=this.lowerSpan.nativeElement,Je.forEach(function(tt){null!==tt&&("white"===Ht?(tt.style.textShadow="-3px -3px 0 black, 3px -3px 0 black, -3px 3px 0 black, 3px 3px 0 black",tt.style.color="white"):(tt.style.textShadow="-3px -3px 0 white, 3px -3px 0 white, -3px 3px 0 white, 3px 3px 0 white",tt.style.color="black"))})}static{this.\u0275fac=function(Je){return new(Je||ht)(P.rXU(M.J6),P.rXU(P.sFG),P.rXU(D.iuc))}}static{this.\u0275cmp=P.VBU({type:ht,selectors:[["nv-preview-meme"]],viewQuery:function(Je,tt){if(1&Je&&(P.GBs(L,5),P.GBs(E,5),P.GBs(g,5),P.GBs(R,5)),2&Je){let rt;P.mGM(rt=P.lsd())&&(tt.upperString=rt.first),P.mGM(rt=P.lsd())&&(tt.lowerString=rt.first),P.mGM(rt=P.lsd())&&(tt.upperSpan=rt.first),P.mGM(rt=P.lsd())&&(tt.lowerSpan=rt.first)}},decls:2,vars:2,consts:[["memeTopString",""],["memeTopSpan",""],["memeBottomString",""],["memeBottomSpan",""],["class","video-overlay-button","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["class","video-overlay-button","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center",1,"video-overlay-button"],[1,"meme-text","meme-top",3,"ngStyle"],[1,"meme-text","meme-bottom",3,"ngStyle"],["fxLayoutAlign","center center",1,"video-overlay-button"],["fxLayout","column",1,"meme-overlay"],[3,"textChange","stringChange","text","placeholderText","disabled","textMaxLength"]],template:function(Je,tt){1&Je&&P.DNE(0,X,11,8,"div",4)(1,H,4,8,"div",5),2&Je&&(P.Y8G("ngIf",tt.memeOn||tt.memesValid),P.R7$(),P.Y8G("ngIf",tt.memeOn))},dependencies:[n.bT,n.B3,V.DJ,V.sA,T.eI,i.I,N.Q],styles:[".video-overlay-button[_ngcontent-%COMP%]{position:absolute;inset:24px 24px 4px;opacity:.95}.meme-overlay[_ngcontent-%COMP%]{position:absolute;width:800px;z-index:9999}.meme-text[_ngcontent-%COMP%], .meme-text[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{white-space:pre;overflow:hidden;text-align:center}.meme-top[_ngcontent-%COMP%]{top:0;position:absolute}.meme-bottom[_ngcontent-%COMP%]{top:640px;position:absolute}"]})}}return ht})();var ve=s(70410),ue=s(40262),se=s(43848),Z=s(72147),Se=s(91384),Ce=s(8619),Be=s(65706),Xe=s(47973),He=s(29370),Me=s(44186),Q=s(6006),A=s(96542);const me=["activecolor"],ne=["defaultcolor"],G=(ht,Xt)=>({"default-color-rtxhdr":ht,"default-color-nativehdr":Xt}),W=(ht,Xt)=>({active_color:ht,default_color:Xt}),$=(ht,Xt)=>({value:ht,params:Xt}),le=ht=>({navButton_margin:ht});function Pe(ht,Xt){if(1&ht){const Ht=P.RV6();P.j41(0,"button",11),P.nI1(1,"translate"),P.bIt("click",function(){P.eBV(Ht);const tt=P.XpG().$implicit,rt=P.XpG();return P.Njj(rt.iconClicked(tt))}),P.nrm(2,"mat-icon",6),P.k0s()}if(2&ht){const Ht=P.XpG().$implicit,Je=P.XpG();P.AVh("icon-details",!Je.tvMode),P.Y8G("@icon",void 0)("nvTooltipDisabled",!Ht.tooltip)("matTooltip",P.bMT(1,7,Ht.tooltip))("matTooltipClass",Je.isGfn?"nv-igo igo-tooltip":"nv-igo igo-tooltip igo-geometry"),P.R7$(2),P.Y8G("svgIcon",Ht.icon)}}function Fe(ht,Xt){if(1&ht&&(P.qex(0),P.DNE(1,Pe,3,9,"button",10),P.bVm()),2&ht){const Ht=Xt.$implicit;P.R7$(),P.Y8G("ngIf",Ht.icon)}}function At(ht,Xt){1&ht&&(P.j41(0,"div",16)(1,"mat-icon",17),P.EFF(2,"info"),P.k0s(),P.j41(3,"span",18),P.EFF(4),P.nI1(5,"translate"),P.k0s()()),2&ht&&(P.R7$(4),P.JRh(P.bMT(5,1,"nvcamera.SupportedGameWarning")))}function Le(ht,Xt){if(1&ht&&(P.j41(0,"div",19)(1,"span",20),P.EFF(2),P.nI1(3,"translate"),P.k0s()()),2&ht){const Ht=P.XpG(2);P.R7$(2),P.Lme("",P.bMT(3,2,"nvcamera.CurrentlyPlaying")," ",Ht.gameName,"")}}function Et(ht,Xt){if(1&ht){const Ht=P.RV6();P.qex(0),P.j41(1,"button",25),P.bIt("click",function(){P.eBV(Ht);const tt=P.XpG(3);return P.Njj(tt.onNvCameraToggleAction())}),P.j41(2,"span",26),P.EFF(3),P.nI1(4,"translate"),P.k0s()(),P.bVm()}2&ht&&(P.R7$(3),P.JRh(P.bMT(4,1,"nvcamera.GameFiltersDisabledCTA")))}function $e(ht,Xt){if(1&ht&&(P.j41(0,"div",21)(1,"div",22)(2,"mat-icon",17),P.EFF(3,"info"),P.k0s(),P.j41(4,"span",23),P.EFF(5),P.nI1(6,"translate"),P.k0s()(),P.DNE(7,Et,5,3,"ng-container",24),P.k0s()),2&ht){const Ht=P.XpG(2);P.R7$(5),P.JRh(P.bMT(6,2,Ht.nvCameraToggleCTAText)),P.R7$(2),P.Y8G("ngIf",Ht.showNvCameraToggleCTAButton)}}function Ze(ht,Xt){if(1&ht&&(P.j41(0,"div",12),P.DNE(1,At,6,3,"div",13)(2,Le,4,4,"div",14)(3,$e,8,4,"div",15),P.k0s()),2&ht){const Ht=P.XpG();P.Y8G("ngClass",P.l_i(4,G,Ht.rtxHdrMode,Ht.nativeHdrMode)),P.R7$(),P.Y8G("ngIf",Ht.showSupportedGameRequired),P.R7$(),P.Y8G("ngIf",Ht.showGameName),P.R7$(),P.Y8G("ngIf",Ht.showNvCameraToggleCTA)}}let Qe=(()=>{class ht{constructor(Ht,Je,tt,rt,et,St,Gt,yt,Wt){this.appBarService=Je,this.localeService=tt,this.featureSupportService=rt,this.ppeService=et,this.nvCameraService=St,this.oscDisplayService=Gt,this.igoConfig=yt,this.ngxService=Wt,this.destroy$=new I.B7,this.tvMode=!1,this.isGfn=!1,this.icons=[{},{},{},{},{}],this.title="",this.titleParams={},this.navButton="",this.showNavButton=!1,this.activeColor="",this.defaultColor="",this.navButtonMarginValue="",this.isAppStartedReceived=!1,this.gameName="Unknown",this.isPPEEnabled=!1,this.isPpeSupportedGame=!1,this.isPpeFiltersVisible=!1,this.isNvCameraReady=!1,this.isFreestyleSupportedGame=!1,this.showGameName=!1,this.showSupportedGameRequired=!1,this.showNvCameraToggleCTA=!1,this.nvCameraToggleCTAText="",this.showNvCameraToggleCTAButton=!1,this.isGameRestartRequestedFromCTA=!1,this.showGameFilterPhotoModeSection=!1,this.rtxHdrMode=!1,this.nativeHdrMode=!1,this.tvMode=this.featureSupportService.isTVMode(),this.marginValue=this.tvMode?"38px":"8px",this.isGfn=this.igoConfig?.GFNCefClient,this.logger=Ht.getLogger("NvAppBarComponent")}setupListeners(){this.appBarService.icons$.pipe((0,U.Q)(this.destroy$)).subscribe(Ht=>{let Je=4;for(Ht.forEach(tt=>{Je>=0&&(this.icons[Je--]=tt)});Je>=0;)this.icons[Je--]={}}),this.igoConfig.GFNCefClient||this.oscDisplayService.getRtxHdrStatus$().pipe((0,U.Q)(this.destroy$)).subscribe(Ht=>{this.rtxHdrMode=!this.oscDisplayService.getCurrentDesktopModeImmediate()&&Ht,this.rtxHdrMode&&(this.nativeHdrMode=!1)}),this.appBarService.title$.pipe((0,U.Q)(this.destroy$)).subscribe(Ht=>{this.title=Ht.title,this.titleParams=Ht.params}),this.appBarService.title$.pipe((0,U.Q)(this.destroy$),(0,Z.n)(Ht=>(this.title=Ht.title,this.titleParams=Ht.params,this.title===D.sT2||this.title===D.jyV?this.nvCameraService.getGlobalToggle():(0,se.of)(void 0))),(0,Se.M)(Ht=>{if(this.nvcameraToggle=Ht,void 0!==this.nvcameraToggle){if(this.isAppStartedReceived=this.ppeService.isAppStartedReceived,this.isAppStartedReceived){const Je=this.nvCameraService.getCurrentGameChromaInfo();Je&&Je.title?this.gameName=Je.title:this.ppeService.currentGameInfo&&(this.gameName=this.ppeService.currentGameInfo.drsProfileName)}this.isPPEEnabled=this.featureSupportService.isPpeEnabled(),this.isPpeSupportedGame=this.ppeService.isPpeSupportedGame,this.isPpeFiltersVisible=this.ppeService.isPpeFiltersVisible,this.isNvCameraReady=this.nvCameraService.isNvCameraReady,this.isFreestyleSupportedGame=this.nvCameraService.isFreestyleSupportedGame(),this.isGameRestartRequestedFromCTA=this.nvCameraService.getIsGameRestartRequestedfromCTA(),this.title===D.sT2?(this.showSupportedGameRequired=!this.isAppStartedReceived||!this.isFreestyleSupportedGame&&!this.isPpeFiltersVisible,this.showGameName=!this.showSupportedGameRequired&&this.nvcameraToggle&&!this.isGameRestartRequestedFromCTA,this.nvCameraToggleCTAText=this.isGameRestartRequestedFromCTA?"nvcamera.GameFIltersEnabledOnFly":"nvcamera.TurnOnGameFilters"):(this.showGameName=!1,this.showSupportedGameRequired=!this.isAppStartedReceived||!this.isFreestyleSupportedGame&&!this.isNvCameraReady,this.nvCameraToggleCTAText=this.isGameRestartRequestedFromCTA?"nvcamera.PhotoModeEnabledOnFly":"nvcamera.TurnOnPhotoMode",this.showGameFilterPhotoModeSection=this.isPPEEnabled&&this.showSupportedGameRequired),this.showNvCameraToggleCTA=!this.showSupportedGameRequired&&(!this.nvcameraToggle||this.isGameRestartRequestedFromCTA),this.showNvCameraToggleCTA&&(this.showNvCameraToggleCTAButton=!this.isGameRestartRequestedFromCTA),this.showGameFilterPhotoModeSection=this.title===D.sT2?this.isPPEEnabled:this.isPPEEnabled&&(this.showSupportedGameRequired||this.showNvCameraToggleCTA)}else this.title===D.p56?(this.ngxService.isValidGameRunning&&(this.gameName=this.ngxService.currentGameInfo?.drsProfileName),this.showSupportedGameRequired=!this.ngxService.isValidGameRunning,this.showGameName=!this.showSupportedGameRequired,this.showGameFilterPhotoModeSection=!0):(this.showGameFilterPhotoModeSection=!1,this.showGameName=!1,this.showSupportedGameRequired=!1,this.showNvCameraToggleCTA=!1)})).subscribe(),this.appBarService.navButton$.pipe((0,U.Q)(this.destroy$)).subscribe(Ht=>{this.navButton=Ht,this.showNavButton=""!==this.navButton}),this.appBarService.active$.pipe((0,U.Q)(this.destroy$)).subscribe(Ht=>{this.active=Ht})}ngOnInit(){this.igoConfig.GFNCefClient||this.oscDisplayService.isDisplayStateCheckComplete().pipe((0,Ce.p)(Boolean),(0,Be.s)(1)).subscribe(()=>{this.rtxHdrMode=this.oscDisplayService.getRtxHdrEnable(),this.nativeHdrMode=!this.rtxHdrMode&&this.oscDisplayService.getNativeHdrEnable()})}ngAfterViewInit(){setTimeout(()=>{this.activeColor=getComputedStyle(this.activeElement.nativeElement).backgroundColor,this.defaultColor=getComputedStyle(this.defaultElement.nativeElement).backgroundColor,this.navButtonMarginValue=this.localeService.isRTLLayoutEnabled?`0 0 0 ${this.marginValue}`:`0 ${this.marginValue} 0 0`,this.setupListeners()},0)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}backClicked(){this.appBarService.clickBack()}iconClicked(Ht){this.appBarService.clickIcon(Ht.id)}iconTrack(Ht,Je){return Ht}onNvCameraToggleAction(){this.logger.info("onNvCameraToggleAction"),this.nvCameraService.setGlobalToggle(!0).subscribe(),this.showNvCameraToggleCTAButton=!1,this.nvCameraToggleCTAText=this.title===D.sT2?"nvcamera.GameFIltersEnabledOnFly":"nvcamera.PhotoModeEnabledOnFly",this.nvCameraService.setIsGameRestartRequestedfromCTA(!0)}static{this.\u0275fac=function(Je){return new(Je||ht)(P.rXU(M.J6),P.rXU(D.gZv),P.rXU(M.iH),P.rXU(D.Rvq),P.rXU(D.Vlf),P.rXU(D.h8x),P.rXU(D.Bqk),P.rXU(D.k$F),P.rXU(D.zX$))}}static{this.\u0275cmp=P.VBU({type:ht,selectors:[["nv-app-bar"]],viewQuery:function(Je,tt){if(1&Je&&(P.GBs(me,7),P.GBs(ne,7)),2&Je){let rt;P.mGM(rt=P.lsd())&&(tt.activeElement=rt.first),P.mGM(rt=P.lsd())&&(tt.defaultElement=rt.first)}},decls:12,vars:36,consts:[["activecolor",""],["defaultcolor",""],[1,"dummy-color-getter"],[1,"default-color",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"appbar","default-color","mat-elevation-z4",3,"ngClass"],["mat-button","","fxLayout","row","fxLayoutAlign","center center",1,"item-empty","nv-item-icon","font-body1","complex-button",3,"click","tabIndex"],[1,"flip-rtl-element",3,"svgIcon"],["fxFlex","",1,"title"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","appbar default-color mat-elevation-z4 ppe-extra-tab",3,"ngClass",4,"ngIf"],["mat-button","","class","app-bar-icons font-body1 nv-item-icon complex-button","fxLayout","row","fxLayoutAlign","center center","fxFlex","none",3,"nvTooltipDisabled","matTooltip","matTooltipClass","icon-details","click",4,"ngIf"],["mat-button","","fxLayout","row","fxLayoutAlign","center center","fxFlex","none",1,"app-bar-icons","font-body1","nv-item-icon","complex-button",3,"click","nvTooltipDisabled","matTooltip","matTooltipClass"],[1,"appbar","default-color","mat-elevation-z4","ppe-extra-tab",3,"ngClass"],["class","font-sub3","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["class","gamename",4,"ngIf"],["class","font-sub3","fxLayout","row","fxLayoutAlign","space-between center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"font-sub3"],["mat-font-set","material-icons",1,"nv-custom-icons","icon-alert-circle_reg","icon-padding-right"],[1,"font-body2","unsupported-game-section"],[1,"gamename"],[1,"font-body2","supported-game-section"],["fxLayout","row","fxLayoutAlign","space-between center",1,"font-sub3"],["fxLayout","row","fxLayoutAlign","start center"],[1,"font-body2","cta-text"],[4,"ngIf"],["mat-button","",3,"click"],[1,"font-body1"]],template:function(Je,tt){if(1&Je){const rt=P.RV6();P.nrm(0,"div",2,0)(2,"div",3,1),P.j41(4,"div",4)(5,"button",5),P.bIt("click",function(){return P.eBV(rt),P.Njj(tt.backClicked())}),P.nrm(6,"mat-icon",6),P.k0s(),P.j41(7,"div",7),P.EFF(8),P.nI1(9,"translate"),P.k0s(),P.DNE(10,Fe,2,1,"ng-container",8),P.k0s(),P.DNE(11,Ze,4,7,"div",9)}2&Je&&(P.R7$(2),P.Y8G("ngClass",P.l_i(19,G,tt.rtxHdrMode,tt.nativeHdrMode)),P.R7$(2),P.AVh("active",tt.active),P.Y8G("@active",P.l_i(25,$,tt.active,P.l_i(22,W,tt.activeColor,tt.defaultColor)))("ngClass",P.l_i(28,G,tt.rtxHdrMode,tt.nativeHdrMode)),P.R7$(),P.AVh("icon-details",!tt.tvMode),P.Y8G("@navButton",P.l_i(33,$,tt.showNavButton,P.eq3(31,le,tt.navButtonMarginValue)))("tabIndex",tt.showNavButton?"0":"-1"),P.R7$(),P.Y8G("svgIcon",tt.navButton),P.R7$(),P.AVh("text-padding",!tt.tvMode&&tt.showNavButton),P.R7$(),P.JRh(P.i5U(9,16,tt.title,tt.titleParams)),P.R7$(2),P.Y8G("ngForOf",tt.icons)("ngForTrackBy",tt.iconTrack),P.R7$(),P.Y8G("ngIf",tt.showGameFilterPhotoModeSection))},dependencies:[n.YU,n.Sq,n.bT,V.DJ,V.sA,V.UI,T.PW,Xe.iV,He.An,Me.oV,Q.F,A.D9],styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--nv-igo-item-icon-color);width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}.appbar[_ngcontent-%COMP%]{padding:8px 16px;transition:background-color .15s linear;height:56px;box-shadow:2px 0 8px 1px #0000001f}.appbar[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{--font-header-font-size: 20px;--font-header-line-height: 28px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .appbar[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{--font-header-font-size: 40px;--font-header-line-height: 56px}.isLtr[_nghost-%COMP%] .text-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .text-padding[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .text-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .text-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .text-padding[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .text-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.game-name-height[_ngcontent-%COMP%]{height:36px}.dummy-color-getter[_ngcontent-%COMP%]{background:var(--accent-500)}.default-color[_ngcontent-%COMP%]{background:var(--nv-app-bar-default-bg-color)}.default-color-rtxhdr[_ngcontent-%COMP%]{background:var(--nv-app-bar-rtxhdr-bg-color)}.default-color-nativehdr[_ngcontent-%COMP%]{background:var(--nv-app-bar-nativehdr-bg-color)}.item-empty[_ngcontent-%COMP%]{width:0;max-width:24px}.isLtr[_nghost-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.icon-details[_ngcontent-%COMP%]{height:24px;width:24px}.appbar.active[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{color:var(--nv-app-bar-active-text-color)}.isLtr[_nghost-%COMP%] .icon-padding-right[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .icon-padding-right[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .icon-padding-right[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .icon-padding-right[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .icon-padding-right[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .icon-padding-right[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.ppe-extra-tab[_ngcontent-%COMP%]{border-top:1px solid;border-color:var(--primary-1000);height:-moz-fit-content;height:fit-content}.tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%]{padding:30px 32px;height:90px}.tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}.isLtr.tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{margin-right:0}html[dir=ltr] .tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:0}.isRtl.tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{margin-left:0}html[dir=rtl] .tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:0}.isLtr.tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{margin-left:16px}html[dir=ltr] .tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:16px}.isRtl.tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{margin-right:16px}html[dir=rtl] .tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:16px}.tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .item-empty[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .item-empty[_ngcontent-%COMP%]{width:0;max-width:40px}.gamename[_ngcontent-%COMP%]{display:flex;justify-content:space-between;text-align:center;height:36px;align-items:center}.default-color-game[_ngcontent-%COMP%]{color:var(--nv-app-bar-default-color-game)}.cta-text[_ngcontent-%COMP%]{text-align:start;overflow-wrap:break-word}.unsupported-game-section[_ngcontent-%COMP%]{width:440px;color:var(--nv-app-bar-unsupported-game-text-color)}.isLtr[_nghost-%COMP%] .unsupported-game-section[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .unsupported-game-section[_ngcontent-%COMP%]{text-align:left}html[dir=ltr][_ngcontent-%COMP%] .unsupported-game-section[_ngcontent-%COMP%]{--dummy0: 0;text-align:left}.isRtl[_nghost-%COMP%] .unsupported-game-section[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .unsupported-game-section[_ngcontent-%COMP%]{text-align:right}html[dir=rtl][_ngcontent-%COMP%] .unsupported-game-section[_ngcontent-%COMP%]{--dummy0: 0;text-align:right}.supported-game-section[_ngcontent-%COMP%]{width:480px;color:var(--nv-app-bar-supported-game-text-color)}.isLtr[_nghost-%COMP%] .supported-game-section[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .supported-game-section[_ngcontent-%COMP%]{text-align:left}html[dir=ltr][_ngcontent-%COMP%] .supported-game-section[_ngcontent-%COMP%]{--dummy0: 0;text-align:left}.isRtl[_nghost-%COMP%] .supported-game-section[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .supported-game-section[_ngcontent-%COMP%]{text-align:right}html[dir=rtl][_ngcontent-%COMP%] .supported-game-section[_ngcontent-%COMP%]{--dummy0: 0;text-align:right}"],data:{animation:[(0,ue.hZ)("navButton",[(0,ue.wk)("true",(0,ue.iF)({"flex-basis":"36px",margin:"{{ navButton_margin }}",opacity:1}),{params:{navButton_margin:"0 8px 0 0"}}),(0,ue.wk)("false",(0,ue.iF)({"flex-basis":"0",margin:"0 0 0 0",opacity:0})),(0,ue.kY)("true <=> false",(0,ue.i0)(150))]),(0,ue.hZ)("icon",[(0,ue.kY)(":enter",[(0,ue.iF)({opacity:0}),(0,ue.i0)(150,(0,ue.iF)({opacity:1}))]),(0,ue.kY)(":leave",[(0,ue.i0)(150,(0,ue.iF)({opacity:0}))])]),(0,ue.hZ)("active",[(0,ue.wk)("true",(0,ue.iF)({"background-color":"{{active_color}}"}),{params:{active_color:"transparent"}}),(0,ue.wk)("false",(0,ue.iF)({"background-color":"{{default_color}}"}),{params:{default_color:"transparent"}}),(0,ue.kY)("true <=> false",[(0,ue.Os)([(0,ue.P)("@*",[(0,ue.MA)()]),(0,ue.i0)(150)])])])]}})}}return ht})();var Ve=s(2218),nt=s(31308),Ot=s(44224),at=s(64409),It=s(80362),We=s(51394),xe=s(99204),lt=s(5428);let ft=(()=>{class ht{static{this.\u0275fac=function(Je){return new(Je||ht)}}static{this.\u0275mod=P.$C({type:ht})}static{this.\u0275inj=P.G2t({imports:[n.MD,l.iI,d.YF,v.i,M._N,S.bm,(0,M.BU)()]})}}return ht})();P.wjB(y.k,function(){return[n.YU,l.n3,V.DJ,V.G2,V.UI,T.PW,Ve.R,Qe]},[]),P.wjB(O.X,function(){return[n.Sq,n.bT,V.DJ,V.sA,V.UI,He.An,nt.vR,A.Mm,f.j,i.I]},function(){return[A.D9]}),P.wjB(c.O,function(){return[n.Sq,n.bT,n.T3,V.DJ,V.BO,V.UI,Ot.q,at.E$,at.d6,It.i4,m.m]},function(){return[A.D9]}),P.wjB(a.e,function(){return[n.YU,n.bT,V.DJ,V.sA,V.G2,V.UI,T.PW,He.An,Me.oV,f.j,i.I]},function(){return[A.D9]}),P.wjB(ve.M,function(){return[n.YU,n.bT,n.B3,V.DJ,V.BO,V.sA,V.G2,V.UI,T.PW,T.eI,Xe.iV,We.ig,xe.LG,He.An,nt.kB,lt.t,f.j,r,i.I,ie]},function(){return[A.D9]})},29326:(Bt,z,s)=>{"use strict";s.d(z,{l:()=>n});const n={supportedLang:["bg_BG","cs_CZ","da_DK","de_DE","el_GR","en_GB","en_US","es_ES","es_MX","fi_FI","fr_FR","hr_HR","hu_HU","it_IT","ja_JP","ko_KR","nb_NO","nl_NL","pl_PL","pt_BR","pt_PT","ro_RO","ru_RU","sk_SK","sl_SI","sv_SE","th_TH","tr_TR","uk_UA","zh_CN","zh_TW"]}},37045:(Bt,z,s)=>{"use strict";var n=s(74150),l=s(58527),d=s(40262);function S(ct){return new l.wOt(3e3,!1)}function Me(ct){switch(ct.length){case 0:return new d.sf;case 1:return ct[0];default:return new d.ui(ct)}}function Q(ct,De,pe=new Map,Ge=new Map){const xt=[],sn=[];let En=-1,Un=null;if(De.forEach(ri=>{const Mi=ri.get("offset"),Xi=Mi==En,Ui=Xi&&Un||new Map;ri.forEach((fr,xr)=>{let yr=xr,Rr=fr;if("offset"!==xr)switch(yr=ct.normalizePropertyName(yr,xt),Rr){case d.FX:Rr=pe.get(xr);break;case d.kp:Rr=Ge.get(xr);break;default:Rr=ct.normalizeStyleValue(xr,yr,Rr,xt)}Ui.set(yr,Rr)}),Xi||sn.push(Ui),Un=Ui,En=Mi}),xt.length)throw function H(ct){return new l.wOt(3502,!1)}();return sn}function A(ct,De,pe,Ge){switch(De){case"start":ct.onStart(()=>Ge(pe&&me(pe,"start",ct)));break;case"done":ct.onDone(()=>Ge(pe&&me(pe,"done",ct)));break;case"destroy":ct.onDestroy(()=>Ge(pe&&me(pe,"destroy",ct)))}}function me(ct,De,pe){const sn=ne(ct.element,ct.triggerName,ct.fromState,ct.toState,De||ct.phaseName,pe.totalTime??ct.totalTime,!!pe.disabled),En=ct._data;return null!=En&&(sn._data=En),sn}function ne(ct,De,pe,Ge,xt="",sn=0,En){return{element:ct,triggerName:De,fromState:pe,toState:Ge,phaseName:xt,totalTime:sn,disabled:!!En}}function G(ct,De,pe){let Ge=ct.get(De);return Ge||ct.set(De,Ge=pe),Ge}function W(ct){const De=ct.indexOf(":");return[ct.substring(1,De),ct.slice(De+1)]}const $=typeof document>"u"?null:document.documentElement;function le(ct){const De=ct.parentNode||ct.host||null;return De===$?null:De}let Fe=null,At=!1;function Ze(ct,De){for(;De;){if(De===ct)return!0;De=le(De)}return!1}function Qe(ct,De,pe){if(pe)return Array.from(ct.querySelectorAll(De));const Ge=ct.querySelector(De);return Ge?[Ge]:[]}let nt=(()=>{class ct{validateStyleProperty(pe){return function Le(ct){Fe||(Fe=function $e(){return typeof document<"u"?document.body:null}()||{},At=!!Fe.style&&"WebkitAppearance"in Fe.style);let De=!0;return Fe.style&&!function Pe(ct){return"ebkit"==ct.substring(1,6)}(ct)&&(De=ct in Fe.style,!De&&At&&(De="Webkit"+ct.charAt(0).toUpperCase()+ct.slice(1)in Fe.style)),De}(pe)}matchesElement(pe,Ge){return!1}containsElement(pe,Ge){return Ze(pe,Ge)}getParentElement(pe){return le(pe)}query(pe,Ge,xt){return Qe(pe,Ge,xt)}computeStyle(pe,Ge,xt){return xt||""}animate(pe,Ge,xt,sn,En,Un=[],ri){return new d.sf(xt,sn)}static{this.\u0275fac=function(Ge){return new(Ge||ct)}}static{this.\u0275prov=l.jDH({token:ct,factory:ct.\u0275fac})}}return ct})();class Ot{static{this.NOOP=new nt}}class at{}const We=1e3,ft="ng-enter",ht="ng-leave",Xt="ng-trigger",Ht=".ng-trigger",Je="ng-animating",tt=".ng-animating";function rt(ct){if("number"==typeof ct)return ct;const De=ct.match(/^(-?[\.\d]+)(m?s)/);return!De||De.length<2?0:et(parseFloat(De[1]),De[2])}function et(ct,De){return"s"===De?ct*We:ct}function St(ct,De,pe){return ct.hasOwnProperty("duration")?ct:function Gt(ct,De,pe){let xt,sn=0,En="";if("string"==typeof ct){const Un=ct.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Un)return De.push(S()),{duration:0,delay:0,easing:""};xt=et(parseFloat(Un[1]),Un[2]);const ri=Un[3];null!=ri&&(sn=et(parseFloat(ri),Un[4]));const Mi=Un[5];Mi&&(En=Mi)}else xt=ct;if(!pe){let Un=!1,ri=De.length;xt<0&&(De.push(function y(){return new l.wOt(3100,!1)}()),Un=!0),sn<0&&(De.push(function f(){return new l.wOt(3101,!1)}()),Un=!0),Un&&De.splice(ri,0,S())}return{duration:xt,delay:sn,easing:En}}(ct,De,pe)}function ke(ct,De,pe){De.forEach((Ge,xt)=>{const sn=On(xt);pe&&!pe.has(xt)&&pe.set(xt,ct.style[sn]),ct.style[sn]=Ge})}function be(ct,De){De.forEach((pe,Ge)=>{const xt=On(Ge);ct.style[xt]=""})}function Ae(ct){return Array.isArray(ct)?1==ct.length?ct[0]:(0,d.K2)(ct):ct}const Lt=new RegExp("{{\\s*(.+?)\\s*}}","g");function Zt(ct){let De=[];if("string"==typeof ct){let pe;for(;pe=Lt.exec(ct);)De.push(pe[1]);Lt.lastIndex=0}return De}function fn(ct,De,pe){const Ge=`${ct}`,xt=Ge.replace(Lt,(sn,En)=>{let Un=De[En];return null==Un&&(pe.push(function P(ct){return new l.wOt(3003,!1)}()),Un=""),Un.toString()});return xt==Ge?ct:xt}const hn=/-+([a-z0-9])/g;function On(ct){return ct.replace(hn,(...De)=>De[1].toUpperCase())}function bt(ct,De,pe){switch(De.type){case d.If.Trigger:return ct.visitTrigger(De,pe);case d.If.State:return ct.visitState(De,pe);case d.If.Transition:return ct.visitTransition(De,pe);case d.If.Sequence:return ct.visitSequence(De,pe);case d.If.Group:return ct.visitGroup(De,pe);case d.If.Animate:return ct.visitAnimate(De,pe);case d.If.Keyframes:return ct.visitKeyframes(De,pe);case d.If.Style:return ct.visitStyle(De,pe);case d.If.Reference:return ct.visitReference(De,pe);case d.If.AnimateChild:return ct.visitAnimateChild(De,pe);case d.If.AnimateRef:return ct.visitAnimateRef(De,pe);case d.If.Query:return ct.visitQuery(De,pe);case d.If.Stagger:return ct.visitStagger(De,pe);default:throw function _(ct){return new l.wOt(3004,!1)}()}}function bn(ct,De){return window.getComputedStyle(ct)[De]}const Pt=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class jt extends at{normalizePropertyName(De,pe){return On(De)}normalizeStyleValue(De,pe,Ge,xt){let sn="";const En=Ge.toString().trim();if(Pt.has(pe)&&0!==Ge&&"0"!==Ge)if("number"==typeof Ge)sn="px";else{const Un=Ge.match(/^[+-]?[\d\.]+([a-z]*)$/);Un&&0==Un[1].length&&xt.push(function i(ct,De){return new l.wOt(3005,!1)}())}return En+sn}}const pn="*";const An=new Set(["true","1"]),Jn=new Set(["false","0"]);function hi(ct,De){const pe=An.has(ct)||Jn.has(ct),Ge=An.has(De)||Jn.has(De);return(xt,sn)=>{let En=ct==pn||ct==xt,Un=De==pn||De==sn;return!En&&pe&&"boolean"==typeof xt&&(En=xt?An.has(ct):Jn.has(ct)),!Un&&Ge&&"boolean"==typeof sn&&(Un=sn?An.has(De):Jn.has(De)),En&&Un}}const xn=new RegExp("s*:selfs*,?","g");function Yn(ct,De,pe,Ge){return new Ci(ct).build(De,pe,Ge)}class Ci{constructor(De){this._driver=De}build(De,pe,Ge){const xt=new Zi(pe);return this._resetContextStyleTimingState(xt),bt(this,Ae(De),xt)}_resetContextStyleTimingState(De){De.currentQuerySelector="",De.collectedStyles=new Map,De.collectedStyles.set("",new Map),De.currentTime=0}visitTrigger(De,pe){let Ge=pe.queryCount=0,xt=pe.depCount=0;const sn=[],En=[];return"@"==De.name.charAt(0)&&pe.errors.push(function r(){return new l.wOt(3006,!1)}()),De.definitions.forEach(Un=>{if(this._resetContextStyleTimingState(pe),Un.type==d.If.State){const ri=Un,Mi=ri.name;Mi.toString().split(/\s*,\s*/).forEach(Xi=>{ri.name=Xi,sn.push(this.visitState(ri,pe))}),ri.name=Mi}else if(Un.type==d.If.Transition){const ri=this.visitTransition(Un,pe);Ge+=ri.queryCount,xt+=ri.depCount,En.push(ri)}else pe.errors.push(function a(){return new l.wOt(3007,!1)}())}),{type:d.If.Trigger,name:De.name,states:sn,transitions:En,queryCount:Ge,depCount:xt,options:null}}visitState(De,pe){const Ge=this.visitStyle(De.styles,pe),xt=De.options&&De.options.params||null;if(Ge.containsDynamicStyles){const sn=new Set,En=xt||{};Ge.styles.forEach(Un=>{Un instanceof Map&&Un.forEach(ri=>{Zt(ri).forEach(Mi=>{En.hasOwnProperty(Mi)||sn.add(Mi)})})}),sn.size&&pe.errors.push(function c(ct,De){return new l.wOt(3008,!1)}(0,sn.values()))}return{type:d.If.State,name:De.name,style:Ge,options:xt?{params:xt}:null}}visitTransition(De,pe){pe.queryCount=0,pe.depCount=0;const Ge=bt(this,Ae(De.animation),pe),xt=function ti(ct,De){const pe=[];return"string"==typeof ct?ct.split(/\s*,\s*/).forEach(Ge=>function pi(ct,De,pe){if(":"==ct[0]){const ri=function cn(ct,De){switch(ct){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(pe,Ge)=>parseFloat(Ge)>parseFloat(pe);case":decrement":return(pe,Ge)=>parseFloat(Ge)<parseFloat(pe);default:return De.push(function g(ct){return new l.wOt(3016,!1)}()),"* => *"}}(ct,pe);if("function"==typeof ri)return void De.push(ri);ct=ri}const Ge=ct.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==Ge||Ge.length<4)return pe.push(function E(ct){return new l.wOt(3015,!1)}()),De;const xt=Ge[1],sn=Ge[2],En=Ge[3];De.push(hi(xt,En)),"<"==sn[0]&&(xt!=pn||En!=pn)&&De.push(hi(En,xt))}(Ge,pe,De)):pe.push(ct),pe}(De.expr,pe.errors);return{type:d.If.Transition,matchers:xt,animation:Ge,queryCount:pe.queryCount,depCount:pe.depCount,options:_o(De.options)}}visitSequence(De,pe){return{type:d.If.Sequence,steps:De.steps.map(Ge=>bt(this,Ge,pe)),options:_o(De.options)}}visitGroup(De,pe){const Ge=pe.currentTime;let xt=0;const sn=De.steps.map(En=>{pe.currentTime=Ge;const Un=bt(this,En,pe);return xt=Math.max(xt,pe.currentTime),Un});return pe.currentTime=xt,{type:d.If.Group,steps:sn,options:_o(De.options)}}visitAnimate(De,pe){const Ge=function $r(ct,De){if(ct.hasOwnProperty("duration"))return ct;if("number"==typeof ct)return bo(St(ct,De).duration,0,"");const pe=ct;if(pe.split(/\s+/).some(sn=>"{"==sn.charAt(0)&&"{"==sn.charAt(1))){const sn=bo(0,0,"");return sn.dynamic=!0,sn.strValue=pe,sn}const xt=St(pe,De);return bo(xt.duration,xt.delay,xt.easing)}(De.timings,pe.errors);pe.currentAnimateTimings=Ge;let xt,sn=De.styles?De.styles:(0,d.iF)({});if(sn.type==d.If.Keyframes)xt=this.visitKeyframes(sn,pe);else{let En=De.styles,Un=!1;if(!En){Un=!0;const Mi={};Ge.easing&&(Mi.easing=Ge.easing),En=(0,d.iF)(Mi)}pe.currentTime+=Ge.duration+Ge.delay;const ri=this.visitStyle(En,pe);ri.isEmptyStep=Un,xt=ri}return pe.currentAnimateTimings=null,{type:d.If.Animate,timings:Ge,style:xt,options:null}}visitStyle(De,pe){const Ge=this._makeStyleAst(De,pe);return this._validateStyleAst(Ge,pe),Ge}_makeStyleAst(De,pe){const Ge=[],xt=Array.isArray(De.styles)?De.styles:[De.styles];for(let Un of xt)"string"==typeof Un?Un===d.kp?Ge.push(Un):pe.errors.push(new l.wOt(3002,!1)):Ge.push(new Map(Object.entries(Un)));let sn=!1,En=null;return Ge.forEach(Un=>{if(Un instanceof Map&&(Un.has("easing")&&(En=Un.get("easing"),Un.delete("easing")),!sn))for(let ri of Un.values())if(ri.toString().indexOf("{{")>=0){sn=!0;break}}),{type:d.If.Style,styles:Ge,easing:En,offset:De.offset,containsDynamicStyles:sn,options:null}}_validateStyleAst(De,pe){const Ge=pe.currentAnimateTimings;let xt=pe.currentTime,sn=pe.currentTime;Ge&&sn>0&&(sn-=Ge.duration+Ge.delay),De.styles.forEach(En=>{"string"!=typeof En&&En.forEach((Un,ri)=>{const Mi=pe.collectedStyles.get(pe.currentQuerySelector),Xi=Mi.get(ri);let Ui=!0;Xi&&(sn!=xt&&sn>=Xi.startTime&&xt<=Xi.endTime&&(pe.errors.push(function D(ct,De,pe,Ge,xt){return new l.wOt(3010,!1)}()),Ui=!1),sn=Xi.startTime),Ui&&Mi.set(ri,{startTime:sn,endTime:xt}),pe.options&&function qe(ct,De,pe){const Ge=De.params||{},xt=Zt(ct);xt.length&&xt.forEach(sn=>{Ge.hasOwnProperty(sn)||pe.push(function O(ct){return new l.wOt(3001,!1)}())})}(Un,pe.options,pe.errors)})})}visitKeyframes(De,pe){const Ge={type:d.If.Keyframes,styles:[],options:null};if(!pe.currentAnimateTimings)return pe.errors.push(function I(){return new l.wOt(3011,!1)}()),Ge;let sn=0;const En=[];let Un=!1,ri=!1,Mi=0;const Xi=De.steps.map(Bo=>{const os=this._makeStyleAst(Bo,pe);let Es=null!=os.offset?os.offset:function Mr(ct){if("string"==typeof ct)return null;let De=null;if(Array.isArray(ct))ct.forEach(pe=>{if(pe instanceof Map&&pe.has("offset")){const Ge=pe;De=parseFloat(Ge.get("offset")),Ge.delete("offset")}});else if(ct instanceof Map&&ct.has("offset")){const pe=ct;De=parseFloat(pe.get("offset")),pe.delete("offset")}return De}(os.styles),Fs=0;return null!=Es&&(sn++,Fs=os.offset=Es),ri=ri||Fs<0||Fs>1,Un=Un||Fs<Mi,Mi=Fs,En.push(Fs),os});ri&&pe.errors.push(function U(){return new l.wOt(3012,!1)}()),Un&&pe.errors.push(function V(){return new l.wOt(3200,!1)}());const Ui=De.steps.length;let fr=0;sn>0&&sn<Ui?pe.errors.push(function T(){return new l.wOt(3202,!1)}()):0==sn&&(fr=1/(Ui-1));const xr=Ui-1,yr=pe.currentTime,Rr=pe.currentAnimateTimings,co=Rr.duration;return Xi.forEach((Bo,os)=>{const Es=fr>0?os==xr?1:fr*os:En[os],Fs=Es*co;pe.currentTime=yr+Rr.delay+Fs,Rr.duration=Fs,this._validateStyleAst(Bo,pe),Bo.offset=Es,Ge.styles.push(Bo)}),Ge}visitReference(De,pe){return{type:d.If.Reference,animation:bt(this,Ae(De.animation),pe),options:_o(De.options)}}visitAnimateChild(De,pe){return pe.depCount++,{type:d.If.AnimateChild,options:_o(De.options)}}visitAnimateRef(De,pe){return{type:d.If.AnimateRef,animation:this.visitReference(De.animation,pe),options:_o(De.options)}}visitQuery(De,pe){const Ge=pe.currentQuerySelector,xt=De.options||{};pe.queryCount++,pe.currentQuery=De;const[sn,En]=function ln(ct){const De=!!ct.split(/\s*,\s*/).find(pe=>":self"==pe);return De&&(ct=ct.replace(xn,"")),ct=ct.replace(/@\*/g,Ht).replace(/@\w+/g,pe=>Ht+"-"+pe.slice(1)).replace(/:animating/g,tt),[ct,De]}(De.selector);pe.currentQuerySelector=Ge.length?Ge+" "+sn:sn,G(pe.collectedStyles,pe.currentQuerySelector,new Map);const Un=bt(this,Ae(De.animation),pe);return pe.currentQuery=null,pe.currentQuerySelector=Ge,{type:d.If.Query,selector:sn,limit:xt.limit||0,optional:!!xt.optional,includeSelf:En,animation:Un,originalSelector:De.selector,options:_o(De.options)}}visitStagger(De,pe){pe.currentQuery||pe.errors.push(function N(){return new l.wOt(3013,!1)}());const Ge="full"===De.timings?{duration:0,delay:0,easing:"full"}:St(De.timings,pe.errors,!0);return{type:d.If.Stagger,animation:bt(this,Ae(De.animation),pe),timings:Ge,options:null}}}class Zi{constructor(De){this.errors=De,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function _o(ct){return ct?(ct={...ct}).params&&(ct.params=function bi(ct){return ct?{...ct}:null}(ct.params)):ct={},ct}function bo(ct,De,pe){return{duration:ct,delay:De,easing:pe}}function Kn(ct,De,pe,Ge,xt,sn,En=null,Un=!1){return{type:1,element:ct,keyframes:De,preStyleProps:pe,postStyleProps:Ge,duration:xt,delay:sn,totalTime:xt+sn,easing:En,subTimeline:Un}}class gi{constructor(){this._map=new Map}get(De){return this._map.get(De)||[]}append(De,pe){let Ge=this._map.get(De);Ge||this._map.set(De,Ge=[]),Ge.push(...pe)}has(De){return this._map.has(De)}clear(){this._map.clear()}}const Qi=new RegExp(":enter","g"),jr=new RegExp(":leave","g");function ho(ct,De,pe,Ge,xt,sn=new Map,En=new Map,Un,ri,Mi=[]){return(new Fo).buildKeyframes(ct,De,pe,Ge,xt,sn,En,Un,ri,Mi)}class Fo{buildKeyframes(De,pe,Ge,xt,sn,En,Un,ri,Mi,Xi=[]){Mi=Mi||new gi;const Ui=new yo(De,pe,Mi,xt,sn,Xi,[]);Ui.options=ri;const fr=ri.delay?rt(ri.delay):0;Ui.currentTimeline.delayNextStep(fr),Ui.currentTimeline.setStyles([En],null,Ui.errors,ri),bt(this,Ge,Ui);const xr=Ui.timelines.filter(yr=>yr.containsAnimation());if(xr.length&&Un.size){let yr;for(let Rr=xr.length-1;Rr>=0;Rr--){const co=xr[Rr];if(co.element===pe){yr=co;break}}yr&&!yr.allowOnlyTimelineStyles()&&yr.setStyles([Un],null,Ui.errors,ri)}return xr.length?xr.map(yr=>yr.buildKeyframes()):[Kn(pe,[],[],[],0,fr,"",!1)]}visitTrigger(De,pe){}visitState(De,pe){}visitTransition(De,pe){}visitAnimateChild(De,pe){const Ge=pe.subInstructions.get(pe.element);if(Ge){const xt=pe.createSubContext(De.options),sn=pe.currentTimeline.currentTime,En=this._visitSubInstructions(Ge,xt,xt.options);sn!=En&&pe.transformIntoNewTimeline(En)}pe.previousNode=De}visitAnimateRef(De,pe){const Ge=pe.createSubContext(De.options);Ge.transformIntoNewTimeline(),this._applyAnimationRefDelays([De.options,De.animation.options],pe,Ge),this.visitReference(De.animation,Ge),pe.transformIntoNewTimeline(Ge.currentTimeline.currentTime),pe.previousNode=De}_applyAnimationRefDelays(De,pe,Ge){for(const xt of De){const sn=xt?.delay;if(sn){const En="number"==typeof sn?sn:rt(fn(sn,xt?.params??{},pe.errors));Ge.delayNextStep(En)}}}_visitSubInstructions(De,pe,Ge){let sn=pe.currentTimeline.currentTime;const En=null!=Ge.duration?rt(Ge.duration):null,Un=null!=Ge.delay?rt(Ge.delay):null;return 0!==En&&De.forEach(ri=>{const Mi=pe.appendInstructionToTimeline(ri,En,Un);sn=Math.max(sn,Mi.duration+Mi.delay)}),sn}visitReference(De,pe){pe.updateOptions(De.options,!0),bt(this,De.animation,pe),pe.previousNode=De}visitSequence(De,pe){const Ge=pe.subContextCount;let xt=pe;const sn=De.options;if(sn&&(sn.params||sn.delay)&&(xt=pe.createSubContext(sn),xt.transformIntoNewTimeline(),null!=sn.delay)){xt.previousNode.type==d.If.Style&&(xt.currentTimeline.snapshotCurrentStyles(),xt.previousNode=no);const En=rt(sn.delay);xt.delayNextStep(En)}De.steps.length&&(De.steps.forEach(En=>bt(this,En,xt)),xt.currentTimeline.applyStylesToKeyframe(),xt.subContextCount>Ge&&xt.transformIntoNewTimeline()),pe.previousNode=De}visitGroup(De,pe){const Ge=[];let xt=pe.currentTimeline.currentTime;const sn=De.options&&De.options.delay?rt(De.options.delay):0;De.steps.forEach(En=>{const Un=pe.createSubContext(De.options);sn&&Un.delayNextStep(sn),bt(this,En,Un),xt=Math.max(xt,Un.currentTimeline.currentTime),Ge.push(Un.currentTimeline)}),Ge.forEach(En=>pe.currentTimeline.mergeTimelineCollectedStyles(En)),pe.transformIntoNewTimeline(xt),pe.previousNode=De}_visitTiming(De,pe){if(De.dynamic){const Ge=De.strValue;return St(pe.params?fn(Ge,pe.params,pe.errors):Ge,pe.errors)}return{duration:De.duration,delay:De.delay,easing:De.easing}}visitAnimate(De,pe){const Ge=pe.currentAnimateTimings=this._visitTiming(De.timings,pe),xt=pe.currentTimeline;Ge.delay&&(pe.incrementTime(Ge.delay),xt.snapshotCurrentStyles());const sn=De.style;sn.type==d.If.Keyframes?this.visitKeyframes(sn,pe):(pe.incrementTime(Ge.duration),this.visitStyle(sn,pe),xt.applyStylesToKeyframe()),pe.currentAnimateTimings=null,pe.previousNode=De}visitStyle(De,pe){const Ge=pe.currentTimeline,xt=pe.currentAnimateTimings;!xt&&Ge.hasCurrentStyleProperties()&&Ge.forwardFrame();const sn=xt&&xt.easing||De.easing;De.isEmptyStep?Ge.applyEmptyStep(sn):Ge.setStyles(De.styles,sn,pe.errors,pe.options),pe.previousNode=De}visitKeyframes(De,pe){const Ge=pe.currentAnimateTimings,xt=pe.currentTimeline.duration,sn=Ge.duration,Un=pe.createSubContext().currentTimeline;Un.easing=Ge.easing,De.styles.forEach(ri=>{Un.forwardTime((ri.offset||0)*sn),Un.setStyles(ri.styles,ri.easing,pe.errors,pe.options),Un.applyStylesToKeyframe()}),pe.currentTimeline.mergeTimelineCollectedStyles(Un),pe.transformIntoNewTimeline(xt+sn),pe.previousNode=De}visitQuery(De,pe){const Ge=pe.currentTimeline.currentTime,xt=De.options||{},sn=xt.delay?rt(xt.delay):0;sn&&(pe.previousNode.type===d.If.Style||0==Ge&&pe.currentTimeline.hasCurrentStyleProperties())&&(pe.currentTimeline.snapshotCurrentStyles(),pe.previousNode=no);let En=Ge;const Un=pe.invokeQuery(De.selector,De.originalSelector,De.limit,De.includeSelf,!!xt.optional,pe.errors);pe.currentQueryTotal=Un.length;let ri=null;Un.forEach((Mi,Xi)=>{pe.currentQueryIndex=Xi;const Ui=pe.createSubContext(De.options,Mi);sn&&Ui.delayNextStep(sn),Mi===pe.element&&(ri=Ui.currentTimeline),bt(this,De.animation,Ui),Ui.currentTimeline.applyStylesToKeyframe(),En=Math.max(En,Ui.currentTimeline.currentTime)}),pe.currentQueryIndex=0,pe.currentQueryTotal=0,pe.transformIntoNewTimeline(En),ri&&(pe.currentTimeline.mergeTimelineCollectedStyles(ri),pe.currentTimeline.snapshotCurrentStyles()),pe.previousNode=De}visitStagger(De,pe){const Ge=pe.parentContext,xt=pe.currentTimeline,sn=De.timings,En=Math.abs(sn.duration),Un=En*(pe.currentQueryTotal-1);let ri=En*pe.currentQueryIndex;switch(sn.duration<0?"reverse":sn.easing){case"reverse":ri=Un-ri;break;case"full":ri=Ge.currentStaggerTime}const Xi=pe.currentTimeline;ri&&Xi.delayNextStep(ri);const Ui=Xi.currentTime;bt(this,De.animation,pe),pe.previousNode=De,Ge.currentStaggerTime=xt.currentTime-Ui+(xt.startTime-Ge.currentTimeline.startTime)}}const no={};class yo{constructor(De,pe,Ge,xt,sn,En,Un,ri){this._driver=De,this.element=pe,this.subInstructions=Ge,this._enterClassName=xt,this._leaveClassName=sn,this.errors=En,this.timelines=Un,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=no,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=ri||new Zr(this._driver,pe,0),Un.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(De,pe){if(!De)return;const Ge=De;let xt=this.options;null!=Ge.duration&&(xt.duration=rt(Ge.duration)),null!=Ge.delay&&(xt.delay=rt(Ge.delay));const sn=Ge.params;if(sn){let En=xt.params;En||(En=this.options.params={}),Object.keys(sn).forEach(Un=>{(!pe||!En.hasOwnProperty(Un))&&(En[Un]=fn(sn[Un],En,this.errors))})}}_copyOptions(){const De={};if(this.options){const pe=this.options.params;if(pe){const Ge=De.params={};Object.keys(pe).forEach(xt=>{Ge[xt]=pe[xt]})}}return De}createSubContext(De=null,pe,Ge){const xt=pe||this.element,sn=new yo(this._driver,xt,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(xt,Ge||0));return sn.previousNode=this.previousNode,sn.currentAnimateTimings=this.currentAnimateTimings,sn.options=this._copyOptions(),sn.updateOptions(De),sn.currentQueryIndex=this.currentQueryIndex,sn.currentQueryTotal=this.currentQueryTotal,sn.parentContext=this,this.subContextCount++,sn}transformIntoNewTimeline(De){return this.previousNode=no,this.currentTimeline=this.currentTimeline.fork(this.element,De),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(De,pe,Ge){const xt={duration:pe??De.duration,delay:this.currentTimeline.currentTime+(Ge??0)+De.delay,easing:""},sn=new Yr(this._driver,De.element,De.keyframes,De.preStyleProps,De.postStyleProps,xt,De.stretchStartingKeyframe);return this.timelines.push(sn),xt}incrementTime(De){this.currentTimeline.forwardTime(this.currentTimeline.duration+De)}delayNextStep(De){De>0&&this.currentTimeline.delayNextStep(De)}invokeQuery(De,pe,Ge,xt,sn,En){let Un=[];if(xt&&Un.push(this.element),De.length>0){De=(De=De.replace(Qi,"."+this._enterClassName)).replace(jr,"."+this._leaveClassName);let Mi=this._driver.query(this.element,De,1!=Ge);0!==Ge&&(Mi=Ge<0?Mi.slice(Mi.length+Ge,Mi.length):Mi.slice(0,Ge)),Un.push(...Mi)}return!sn&&0==Un.length&&En.push(function L(ct){return new l.wOt(3014,!1)}()),Un}}class Zr{constructor(De,pe,Ge,xt){this._driver=De,this.element=pe,this.startTime=Ge,this._elementTimelineStylesLookup=xt,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(pe),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(pe,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(De){const pe=1===this._keyframes.size&&this._pendingStyles.size;this.duration||pe?(this.forwardTime(this.currentTime+De),pe&&this.snapshotCurrentStyles()):this.startTime+=De}fork(De,pe){return this.applyStylesToKeyframe(),new Zr(this._driver,De,pe||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(De){this.applyStylesToKeyframe(),this.duration=De,this._loadKeyframe()}_updateStyle(De,pe){this._localTimelineStyles.set(De,pe),this._globalTimelineStyles.set(De,pe),this._styleSummary.set(De,{time:this.currentTime,value:pe})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(De){De&&this._previousKeyframe.set("easing",De);for(let[pe,Ge]of this._globalTimelineStyles)this._backFill.set(pe,Ge||d.kp),this._currentKeyframe.set(pe,d.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(De,pe,Ge,xt){pe&&this._previousKeyframe.set("easing",pe);const sn=xt&&xt.params||{},En=function zo(ct,De){const pe=new Map;let Ge;return ct.forEach(xt=>{if("*"===xt){Ge??=De.keys();for(let sn of Ge)pe.set(sn,d.kp)}else for(let[sn,En]of xt)pe.set(sn,En)}),pe}(De,this._globalTimelineStyles);for(let[Un,ri]of En){const Mi=fn(ri,sn,Ge);this._pendingStyles.set(Un,Mi),this._localTimelineStyles.has(Un)||this._backFill.set(Un,this._globalTimelineStyles.get(Un)??d.kp),this._updateStyle(Un,Mi)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((De,pe)=>{this._currentKeyframe.set(pe,De)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((De,pe)=>{this._currentKeyframe.has(pe)||this._currentKeyframe.set(pe,De)}))}snapshotCurrentStyles(){for(let[De,pe]of this._localTimelineStyles)this._pendingStyles.set(De,pe),this._updateStyle(De,pe)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const De=[];for(let pe in this._currentKeyframe)De.push(pe);return De}mergeTimelineCollectedStyles(De){De._styleSummary.forEach((pe,Ge)=>{const xt=this._styleSummary.get(Ge);(!xt||pe.time>xt.time)&&this._updateStyle(Ge,pe.value)})}buildKeyframes(){this.applyStylesToKeyframe();const De=new Set,pe=new Set,Ge=1===this._keyframes.size&&0===this.duration;let xt=[];this._keyframes.forEach((Un,ri)=>{const Mi=new Map([...this._backFill,...Un]);Mi.forEach((Xi,Ui)=>{Xi===d.FX?De.add(Ui):Xi===d.kp&&pe.add(Ui)}),Ge||Mi.set("offset",ri/this.duration),xt.push(Mi)});const sn=[...De.values()],En=[...pe.values()];if(Ge){const Un=xt[0],ri=new Map(Un);Un.set("offset",0),ri.set("offset",1),xt=[Un,ri]}return Kn(this.element,xt,sn,En,this.duration,this.startTime,this.easing,!1)}}class Yr extends Zr{constructor(De,pe,Ge,xt,sn,En,Un=!1){super(De,pe,En.delay),this.keyframes=Ge,this.preStyleProps=xt,this.postStyleProps=sn,this._stretchStartingKeyframe=Un,this.timings={duration:En.duration,delay:En.delay,easing:En.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let De=this.keyframes,{delay:pe,duration:Ge,easing:xt}=this.timings;if(this._stretchStartingKeyframe&&pe){const sn=[],En=Ge+pe,Un=pe/En,ri=new Map(De[0]);ri.set("offset",0),sn.push(ri);const Mi=new Map(De[0]);Mi.set("offset",go(Un)),sn.push(Mi);const Xi=De.length-1;for(let Ui=1;Ui<=Xi;Ui++){let fr=new Map(De[Ui]);const xr=fr.get("offset");fr.set("offset",go((pe+xr*Ge)/En)),sn.push(fr)}Ge=En,pe=0,xt="",De=sn}return Kn(this.element,De,this.preStyleProps,this.postStyleProps,Ge,pe,xt,!0)}}function go(ct,De=3){const pe=Math.pow(10,De-1);return Math.round(ct*pe)/pe}function si(ct,De,pe,Ge,xt,sn,En,Un,ri,Mi,Xi,Ui,fr){return{type:0,element:ct,triggerName:De,isRemovalTransition:xt,fromState:pe,fromStyles:sn,toState:Ge,toStyles:En,timelines:Un,queriedElements:ri,preStyleProps:Mi,postStyleProps:Xi,totalTime:Ui,errors:fr}}const to={};class ot{constructor(De,pe,Ge){this._triggerName=De,this.ast=pe,this._stateStyles=Ge}match(De,pe,Ge,xt){return function Sn(ct,De,pe,Ge,xt){return ct.some(sn=>sn(De,pe,Ge,xt))}(this.ast.matchers,De,pe,Ge,xt)}buildStyles(De,pe,Ge){let xt=this._stateStyles.get("*");return void 0!==De&&(xt=this._stateStyles.get(De?.toString())||xt),xt?xt.buildStyles(pe,Ge):new Map}build(De,pe,Ge,xt,sn,En,Un,ri,Mi,Xi){const Ui=[],fr=this.ast.options&&this.ast.options.params||to,yr=this.buildStyles(Ge,Un&&Un.params||to,Ui),Rr=ri&&ri.params||to,co=this.buildStyles(xt,Rr,Ui),Bo=new Set,os=new Map,Es=new Map,Fs="void"===xt,Qs={params:Bn(Rr,fr),delay:this.ast.options?.delay},io=Xi?[]:ho(De,pe,this.ast.animation,sn,En,yr,co,Qs,Mi,Ui);let Us=0;return io.forEach(Na=>{Us=Math.max(Na.duration+Na.delay,Us)}),Ui.length?si(pe,this._triggerName,Ge,xt,Fs,yr,co,[],[],os,Es,Us,Ui):(io.forEach(Na=>{const Is=Na.element,yl=G(os,Is,new Set);Na.preStyleProps.forEach(h=>yl.add(h));const x=G(Es,Is,new Set);Na.postStyleProps.forEach(h=>x.add(h)),Is!==pe&&Bo.add(Is)}),si(pe,this._triggerName,Ge,xt,Fs,yr,co,io,[...Bo.values()],os,Es,Us))}}function Bn(ct,De){const pe={...De};return Object.entries(ct).forEach(([Ge,xt])=>{null!=xt&&(pe[Ge]=xt)}),pe}class Ti{constructor(De,pe,Ge){this.styles=De,this.defaultParams=pe,this.normalizer=Ge}buildStyles(De,pe){const Ge=new Map,xt=Bn(De,this.defaultParams);return this.styles.styles.forEach(sn=>{"string"!=typeof sn&&sn.forEach((En,Un)=>{En&&(En=fn(En,xt,pe));const ri=this.normalizer.normalizePropertyName(Un,pe);En=this.normalizer.normalizeStyleValue(Un,ri,En,pe),Ge.set(Un,En)})}),Ge}}class dr{constructor(De,pe,Ge){this.name=De,this.ast=pe,this._normalizer=Ge,this.transitionFactories=[],this.states=new Map,pe.states.forEach(xt=>{this.states.set(xt.name,new Ti(xt.style,xt.options&&xt.options.params||{},Ge))}),br(this.states,"true","1"),br(this.states,"false","0"),pe.transitions.forEach(xt=>{this.transitionFactories.push(new ot(De,xt,this.states))}),this.fallbackTransition=function Fr(ct,De,pe){return new ot(ct,{type:d.If.Transition,animation:{type:d.If.Sequence,steps:[],options:null},matchers:[(En,Un)=>!0],options:null,queryCount:0,depCount:0},De)}(De,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(De,pe,Ge,xt){return this.transitionFactories.find(En=>En.match(De,pe,Ge,xt))||null}matchStyles(De,pe,Ge){return this.fallbackTransition.buildStyles(De,pe,Ge)}}function br(ct,De,pe){ct.has(De)?ct.has(pe)||ct.set(pe,ct.get(De)):ct.has(pe)&&ct.set(De,ct.get(pe))}const Vn=new gi;class rr{constructor(De,pe,Ge){this.bodyNode=De,this._driver=pe,this._normalizer=Ge,this._animations=new Map,this._playersById=new Map,this.players=[]}register(De,pe){const Ge=[],sn=Yn(this._driver,pe,Ge,[]);if(Ge.length)throw function J(ct){return new l.wOt(3503,!1)}();this._animations.set(De,sn)}_buildPlayer(De,pe,Ge){const xt=De.element,sn=Q(this._normalizer,De.keyframes,pe,Ge);return this._driver.animate(xt,sn,De.duration,De.delay,De.easing,[],!0)}create(De,pe,Ge={}){const xt=[],sn=this._animations.get(De);let En;const Un=new Map;if(sn?(En=ho(this._driver,pe,sn,ft,ht,new Map,new Map,Ge,Vn,xt),En.forEach(Xi=>{const Ui=G(Un,Xi.element,new Map);Xi.postStyleProps.forEach(fr=>Ui.set(fr,null))})):(xt.push(function re(){return new l.wOt(3300,!1)}()),En=[]),xt.length)throw function ie(ct){return new l.wOt(3504,!1)}();Un.forEach((Xi,Ui)=>{Xi.forEach((fr,xr)=>{Xi.set(xr,this._driver.computeStyle(Ui,xr,d.kp))})});const Mi=Me(En.map(Xi=>{const Ui=Un.get(Xi.element);return this._buildPlayer(Xi,new Map,Ui)}));return this._playersById.set(De,Mi),Mi.onDestroy(()=>this.destroy(De)),this.players.push(Mi),Mi}destroy(De){const pe=this._getPlayer(De);pe.destroy(),this._playersById.delete(De);const Ge=this.players.indexOf(pe);Ge>=0&&this.players.splice(Ge,1)}_getPlayer(De){const pe=this._playersById.get(De);if(!pe)throw function ve(ct){return new l.wOt(3301,!1)}();return pe}listen(De,pe,Ge,xt){const sn=ne(pe,"","","");return A(this._getPlayer(De),Ge,sn,xt),()=>{}}command(De,pe,Ge,xt){if("register"==Ge)return void this.register(De,xt[0]);if("create"==Ge)return void this.create(De,pe,xt[0]||{});const sn=this._getPlayer(De);switch(Ge){case"play":sn.play();break;case"pause":sn.pause();break;case"reset":sn.reset();break;case"restart":sn.restart();break;case"finish":sn.finish();break;case"init":sn.init();break;case"setPosition":sn.setPosition(parseFloat(xt[0]));break;case"destroy":this.destroy(De)}}}const Ut="ng-animate-queued",Wn="ng-animate-disabled",oo=[],Qo={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},fo={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Xr="__ng_removed";class Go{get params(){return this.options.params}constructor(De,pe=""){this.namespaceId=pe;const Ge=De&&De.hasOwnProperty("value");if(this.value=function ma(ct){return ct??null}(Ge?De.value:De),Ge){const{value:sn,...En}=De;this.options=En}else this.options={};this.options.params||(this.options.params={})}absorbOptions(De){const pe=De.params;if(pe){const Ge=this.options.params;Object.keys(pe).forEach(xt=>{null==Ge[xt]&&(Ge[xt]=pe[xt])})}}}const Ss="void",kr=new Go(Ss);class pa{constructor(De,pe,Ge){this.id=De,this.hostElement=pe,this._engine=Ge,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+De,qo(pe,this._hostClassName)}listen(De,pe,Ge,xt){if(!this._triggers.has(pe))throw function ue(ct,De){return new l.wOt(3302,!1)}();if(null==Ge||0==Ge.length)throw function se(ct){return new l.wOt(3303,!1)}();if(!function Oa(ct){return"start"==ct||"done"==ct}(Ge))throw function Z(ct,De){return new l.wOt(3400,!1)}();const sn=G(this._elementListeners,De,[]),En={name:pe,phase:Ge,callback:xt};sn.push(En);const Un=G(this._engine.statesByElement,De,new Map);return Un.has(pe)||(qo(De,Xt),qo(De,Xt+"-"+pe),Un.set(pe,kr)),()=>{this._engine.afterFlush(()=>{const ri=sn.indexOf(En);ri>=0&&sn.splice(ri,1),this._triggers.has(pe)||Un.delete(pe)})}}register(De,pe){return!this._triggers.has(De)&&(this._triggers.set(De,pe),!0)}_getTrigger(De){const pe=this._triggers.get(De);if(!pe)throw function Se(ct){return new l.wOt(3401,!1)}();return pe}trigger(De,pe,Ge,xt=!0){const sn=this._getTrigger(pe),En=new Xs(this.id,pe,De);let Un=this._engine.statesByElement.get(De);Un||(qo(De,Xt),qo(De,Xt+"-"+pe),this._engine.statesByElement.set(De,Un=new Map));let ri=Un.get(pe);const Mi=new Go(Ge,this.id);if(!(Ge&&Ge.hasOwnProperty("value"))&&ri&&Mi.absorbOptions(ri.options),Un.set(pe,Mi),ri||(ri=kr),Mi.value!==Ss&&ri.value===Mi.value){if(!function fa(ct,De){const pe=Object.keys(ct),Ge=Object.keys(De);if(pe.length!=Ge.length)return!1;for(let xt=0;xt<pe.length;xt++){const sn=pe[xt];if(!De.hasOwnProperty(sn)||ct[sn]!==De[sn])return!1}return!0}(ri.params,Mi.params)){const Rr=[],co=sn.matchStyles(ri.value,ri.params,Rr),Bo=sn.matchStyles(Mi.value,Mi.params,Rr);Rr.length?this._engine.reportError(Rr):this._engine.afterFlush(()=>{be(De,co),ke(De,Bo)})}return}const fr=G(this._engine.playersByElement,De,[]);fr.forEach(Rr=>{Rr.namespaceId==this.id&&Rr.triggerName==pe&&Rr.queued&&Rr.destroy()});let xr=sn.matchTransition(ri.value,Mi.value,De,Mi.params),yr=!1;if(!xr){if(!xt)return;xr=sn.fallbackTransition,yr=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:De,triggerName:pe,transition:xr,fromState:ri,toState:Mi,player:En,isFallbackTransition:yr}),yr||(qo(De,Ut),En.onStart(()=>{js(De,Ut)})),En.onDone(()=>{let Rr=this.players.indexOf(En);Rr>=0&&this.players.splice(Rr,1);const co=this._engine.playersByElement.get(De);if(co){let Bo=co.indexOf(En);Bo>=0&&co.splice(Bo,1)}}),this.players.push(En),fr.push(En),En}deregister(De){this._triggers.delete(De),this._engine.statesByElement.forEach(pe=>pe.delete(De)),this._elementListeners.forEach((pe,Ge)=>{this._elementListeners.set(Ge,pe.filter(xt=>xt.name!=De))})}clearElementCache(De){this._engine.statesByElement.delete(De),this._elementListeners.delete(De);const pe=this._engine.playersByElement.get(De);pe&&(pe.forEach(Ge=>Ge.destroy()),this._engine.playersByElement.delete(De))}_signalRemovalForInnerTriggers(De,pe){const Ge=this._engine.driver.query(De,Ht,!0);Ge.forEach(xt=>{if(xt[Xr])return;const sn=this._engine.fetchNamespacesByElement(xt);sn.size?sn.forEach(En=>En.triggerLeaveAnimation(xt,pe,!1,!0)):this.clearElementCache(xt)}),this._engine.afterFlushAnimationsDone(()=>Ge.forEach(xt=>this.clearElementCache(xt)))}triggerLeaveAnimation(De,pe,Ge,xt){const sn=this._engine.statesByElement.get(De),En=new Map;if(sn){const Un=[];if(sn.forEach((ri,Mi)=>{if(En.set(Mi,ri.value),this._triggers.has(Mi)){const Xi=this.trigger(De,Mi,Ss,xt);Xi&&Un.push(Xi)}}),Un.length)return this._engine.markElementAsRemoved(this.id,De,!0,pe,En),Ge&&Me(Un).onDone(()=>this._engine.processLeaveNode(De)),!0}return!1}prepareLeaveAnimationListeners(De){const pe=this._elementListeners.get(De),Ge=this._engine.statesByElement.get(De);if(pe&&Ge){const xt=new Set;pe.forEach(sn=>{const En=sn.name;if(xt.has(En))return;xt.add(En);const ri=this._triggers.get(En).fallbackTransition,Mi=Ge.get(En)||kr,Xi=new Go(Ss),Ui=new Xs(this.id,En,De);this._engine.totalQueuedPlayers++,this._queue.push({element:De,triggerName:En,transition:ri,fromState:Mi,toState:Xi,player:Ui,isFallbackTransition:!0})})}}removeNode(De,pe){const Ge=this._engine;if(De.childElementCount&&this._signalRemovalForInnerTriggers(De,pe),this.triggerLeaveAnimation(De,pe,!0))return;let xt=!1;if(Ge.totalAnimations){const sn=Ge.players.length?Ge.playersByQueriedElement.get(De):[];if(sn&&sn.length)xt=!0;else{let En=De;for(;En=En.parentNode;)if(Ge.statesByElement.get(En)){xt=!0;break}}}if(this.prepareLeaveAnimationListeners(De),xt)Ge.markElementAsRemoved(this.id,De,!1,pe);else{const sn=De[Xr];(!sn||sn===Qo)&&(Ge.afterFlush(()=>this.clearElementCache(De)),Ge.destroyInnerAnimations(De),Ge._onRemovalComplete(De,pe))}}insertNode(De,pe){qo(De,this._hostClassName)}drainQueuedTransitions(De){const pe=[];return this._queue.forEach(Ge=>{const xt=Ge.player;if(xt.destroyed)return;const sn=Ge.element,En=this._elementListeners.get(sn);En&&En.forEach(Un=>{if(Un.name==Ge.triggerName){const ri=ne(sn,Ge.triggerName,Ge.fromState.value,Ge.toState.value);ri._data=De,A(Ge.player,Un.phase,ri,Un.callback)}}),xt.markedForDestroy?this._engine.afterFlush(()=>{xt.destroy()}):pe.push(Ge)}),this._queue=[],pe.sort((Ge,xt)=>{const sn=Ge.transition.ast.depCount,En=xt.transition.ast.depCount;return 0==sn||0==En?sn-En:this._engine.driver.containsElement(Ge.element,xt.element)?1:-1})}destroy(De){this.players.forEach(pe=>pe.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,De)}}class ka{_onRemovalComplete(De,pe){this.onRemovalComplete(De,pe)}constructor(De,pe,Ge,xt){this.bodyNode=De,this.driver=pe,this._normalizer=Ge,this.scheduler=xt,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(sn,En)=>{}}get queuedPlayers(){const De=[];return this._namespaceList.forEach(pe=>{pe.players.forEach(Ge=>{Ge.queued&&De.push(Ge)})}),De}createNamespace(De,pe){const Ge=new pa(De,pe,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,pe)?this._balanceNamespaceList(Ge,pe):(this.newHostElements.set(pe,Ge),this.collectEnterElement(pe)),this._namespaceLookup[De]=Ge}_balanceNamespaceList(De,pe){const Ge=this._namespaceList,xt=this.namespacesByHostElement;if(Ge.length-1>=0){let En=!1,Un=this.driver.getParentElement(pe);for(;Un;){const ri=xt.get(Un);if(ri){const Mi=Ge.indexOf(ri);Ge.splice(Mi+1,0,De),En=!0;break}Un=this.driver.getParentElement(Un)}En||Ge.unshift(De)}else Ge.push(De);return xt.set(pe,De),De}register(De,pe){let Ge=this._namespaceLookup[De];return Ge||(Ge=this.createNamespace(De,pe)),Ge}registerTrigger(De,pe,Ge){let xt=this._namespaceLookup[De];xt&&xt.register(pe,Ge)&&this.totalAnimations++}destroy(De,pe){De&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const Ge=this._fetchNamespace(De);this.namespacesByHostElement.delete(Ge.hostElement);const xt=this._namespaceList.indexOf(Ge);xt>=0&&this._namespaceList.splice(xt,1),Ge.destroy(pe),delete this._namespaceLookup[De]}))}_fetchNamespace(De){return this._namespaceLookup[De]}fetchNamespacesByElement(De){const pe=new Set,Ge=this.statesByElement.get(De);if(Ge)for(let xt of Ge.values())if(xt.namespaceId){const sn=this._fetchNamespace(xt.namespaceId);sn&&pe.add(sn)}return pe}trigger(De,pe,Ge,xt){if(fs(pe)){const sn=this._fetchNamespace(De);if(sn)return sn.trigger(pe,Ge,xt),!0}return!1}insertNode(De,pe,Ge,xt){if(!fs(pe))return;const sn=pe[Xr];if(sn&&sn.setForRemoval){sn.setForRemoval=!1,sn.setForMove=!0;const En=this.collectedLeaveElements.indexOf(pe);En>=0&&this.collectedLeaveElements.splice(En,1)}if(De){const En=this._fetchNamespace(De);En&&En.insertNode(pe,Ge)}xt&&this.collectEnterElement(pe)}collectEnterElement(De){this.collectedEnterElements.push(De)}markElementAsDisabled(De,pe){pe?this.disabledNodes.has(De)||(this.disabledNodes.add(De),qo(De,Wn)):this.disabledNodes.has(De)&&(this.disabledNodes.delete(De),js(De,Wn))}removeNode(De,pe,Ge){if(fs(pe)){this.scheduler?.notify();const xt=De?this._fetchNamespace(De):null;xt?xt.removeNode(pe,Ge):this.markElementAsRemoved(De,pe,!1,Ge);const sn=this.namespacesByHostElement.get(pe);sn&&sn.id!==De&&sn.removeNode(pe,Ge)}else this._onRemovalComplete(pe,Ge)}markElementAsRemoved(De,pe,Ge,xt,sn){this.collectedLeaveElements.push(pe),pe[Xr]={namespaceId:De,setForRemoval:xt,hasAnimation:Ge,removedBeforeQueried:!1,previousTriggersValues:sn}}listen(De,pe,Ge,xt,sn){return fs(pe)?this._fetchNamespace(De).listen(pe,Ge,xt,sn):()=>{}}_buildInstruction(De,pe,Ge,xt,sn){return De.transition.build(this.driver,De.element,De.fromState.value,De.toState.value,Ge,xt,De.fromState.options,De.toState.options,pe,sn)}destroyInnerAnimations(De){let pe=this.driver.query(De,Ht,!0);pe.forEach(Ge=>this.destroyActiveAnimationsForElement(Ge)),0!=this.playersByQueriedElement.size&&(pe=this.driver.query(De,tt,!0),pe.forEach(Ge=>this.finishActiveQueriedAnimationOnElement(Ge)))}destroyActiveAnimationsForElement(De){const pe=this.playersByElement.get(De);pe&&pe.forEach(Ge=>{Ge.queued?Ge.markedForDestroy=!0:Ge.destroy()})}finishActiveQueriedAnimationOnElement(De){const pe=this.playersByQueriedElement.get(De);pe&&pe.forEach(Ge=>Ge.finish())}whenRenderingDone(){return new Promise(De=>{if(this.players.length)return Me(this.players).onDone(()=>De());De()})}processLeaveNode(De){const pe=De[Xr];if(pe&&pe.setForRemoval){if(De[Xr]=Qo,pe.namespaceId){this.destroyInnerAnimations(De);const Ge=this._fetchNamespace(pe.namespaceId);Ge&&Ge.clearElementCache(De)}this._onRemovalComplete(De,pe.setForRemoval)}De.classList?.contains(Wn)&&this.markElementAsDisabled(De,!1),this.driver.query(De,".ng-animate-disabled",!0).forEach(Ge=>{this.markElementAsDisabled(Ge,!1)})}flush(De=-1){let pe=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Ge,xt)=>this._balanceNamespaceList(Ge,xt)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Ge=0;Ge<this.collectedEnterElements.length;Ge++)qo(this.collectedEnterElements[Ge],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const Ge=[];try{pe=this._flushAnimations(Ge,De)}finally{for(let xt=0;xt<Ge.length;xt++)Ge[xt]()}}else for(let Ge=0;Ge<this.collectedLeaveElements.length;Ge++)this.processLeaveNode(this.collectedLeaveElements[Ge]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(Ge=>Ge()),this._flushFns=[],this._whenQuietFns.length){const Ge=this._whenQuietFns;this._whenQuietFns=[],pe.length?Me(pe).onDone(()=>{Ge.forEach(xt=>xt())}):Ge.forEach(xt=>xt())}}reportError(De){throw function Ce(ct){return new l.wOt(3402,!1)}()}_flushAnimations(De,pe){const Ge=new gi,xt=[],sn=new Map,En=[],Un=new Map,ri=new Map,Mi=new Map,Xi=new Set;this.disabledNodes.forEach(he=>{Xi.add(he);const we=this.driver.query(he,".ng-animate-queued",!0);for(let ze=0;ze<we.length;ze++)Xi.add(we[ze])});const Ui=this.bodyNode,fr=Array.from(this.statesByElement.keys()),xr=Zs(fr,this.collectedEnterElements),yr=new Map;let Rr=0;xr.forEach((he,we)=>{const ze=ft+Rr++;yr.set(we,ze),he.forEach(pt=>qo(pt,ze))});const co=[],Bo=new Set,os=new Set;for(let he=0;he<this.collectedLeaveElements.length;he++){const we=this.collectedLeaveElements[he],ze=we[Xr];ze&&ze.setForRemoval&&(co.push(we),Bo.add(we),ze.hasAnimation?this.driver.query(we,".ng-star-inserted",!0).forEach(pt=>Bo.add(pt)):os.add(we))}const Es=new Map,Fs=Zs(fr,Array.from(Bo));Fs.forEach((he,we)=>{const ze=ht+Rr++;Es.set(we,ze),he.forEach(pt=>qo(pt,ze))}),De.push(()=>{xr.forEach((he,we)=>{const ze=yr.get(we);he.forEach(pt=>js(pt,ze))}),Fs.forEach((he,we)=>{const ze=Es.get(we);he.forEach(pt=>js(pt,ze))}),co.forEach(he=>{this.processLeaveNode(he)})});const Qs=[],io=[];for(let he=this._namespaceList.length-1;he>=0;he--)this._namespaceList[he].drainQueuedTransitions(pe).forEach(ze=>{const pt=ze.player,wt=ze.element;if(Qs.push(pt),this.collectedEnterElements.length){const Qn=wt[Xr];if(Qn&&Qn.setForMove){if(Qn.previousTriggersValues&&Qn.previousTriggersValues.has(ze.triggerName)){const li=Qn.previousTriggersValues.get(ze.triggerName),wi=this.statesByElement.get(ze.element);if(wi&&wi.has(ze.triggerName)){const mi=wi.get(ze.triggerName);mi.value=li,wi.set(ze.triggerName,mi)}}return void pt.destroy()}}const $t=!Ui||!this.driver.containsElement(Ui,wt),an=Es.get(wt),zt=yr.get(wt),mn=this._buildInstruction(ze,Ge,zt,an,$t);if(mn.errors&&mn.errors.length)return void io.push(mn);if($t)return pt.onStart(()=>be(wt,mn.fromStyles)),pt.onDestroy(()=>ke(wt,mn.toStyles)),void xt.push(pt);if(ze.isFallbackTransition)return pt.onStart(()=>be(wt,mn.fromStyles)),pt.onDestroy(()=>ke(wt,mn.toStyles)),void xt.push(pt);const kn=[];mn.timelines.forEach(Qn=>{Qn.stretchStartingKeyframe=!0,this.disabledNodes.has(Qn.element)||kn.push(Qn)}),mn.timelines=kn,Ge.append(wt,mn.timelines),En.push({instruction:mn,player:pt,element:wt}),mn.queriedElements.forEach(Qn=>G(Un,Qn,[]).push(pt)),mn.preStyleProps.forEach((Qn,li)=>{if(Qn.size){let wi=ri.get(li);wi||ri.set(li,wi=new Set),Qn.forEach((mi,Bi)=>wi.add(Bi))}}),mn.postStyleProps.forEach((Qn,li)=>{let wi=Mi.get(li);wi||Mi.set(li,wi=new Set),Qn.forEach((mi,Bi)=>wi.add(Bi))})});if(io.length){const he=[];io.forEach(we=>{he.push(function Xe(ct,De){return new l.wOt(3505,!1)}())}),Qs.forEach(we=>we.destroy()),this.reportError(he)}const Us=new Map,Na=new Map;En.forEach(he=>{const we=he.element;Ge.has(we)&&(Na.set(we,we),this._beforeAnimationBuild(he.player.namespaceId,he.instruction,Us))}),xt.forEach(he=>{const we=he.element;this._getPreviousPlayers(we,!1,he.namespaceId,he.triggerName,null).forEach(pt=>{G(Us,we,[]).push(pt),pt.destroy()})});const Is=co.filter(he=>Ga(he,ri,Mi)),yl=new Map;Ua(yl,this.driver,os,Mi,d.kp).forEach(he=>{Ga(he,ri,Mi)&&Is.push(he)});const h=new Map;xr.forEach((he,we)=>{Ua(h,this.driver,new Set(he),ri,d.FX)}),Is.forEach(he=>{const we=yl.get(he),ze=h.get(he);yl.set(he,new Map([...we?.entries()??[],...ze?.entries()??[]]))});const b=[],k=[],ee={};En.forEach(he=>{const{element:we,player:ze,instruction:pt}=he;if(Ge.has(we)){if(Xi.has(we))return ze.onDestroy(()=>ke(we,pt.toStyles)),ze.disabled=!0,ze.overrideTotalTime(pt.totalTime),void xt.push(ze);let wt=ee;if(Na.size>1){let an=we;const zt=[];for(;an=an.parentNode;){const mn=Na.get(an);if(mn){wt=mn;break}zt.push(an)}zt.forEach(mn=>Na.set(mn,wt))}const $t=this._buildAnimation(ze.namespaceId,pt,Us,sn,h,yl);if(ze.setRealPlayer($t),wt===ee)b.push(ze);else{const an=this.playersByElement.get(wt);an&&an.length&&(ze.parentPlayer=Me(an)),xt.push(ze)}}else be(we,pt.fromStyles),ze.onDestroy(()=>ke(we,pt.toStyles)),k.push(ze),Xi.has(we)&&xt.push(ze)}),k.forEach(he=>{const we=sn.get(he.element);if(we&&we.length){const ze=Me(we);he.setRealPlayer(ze)}}),xt.forEach(he=>{he.parentPlayer?he.syncPlayerEvents(he.parentPlayer):he.destroy()});for(let he=0;he<co.length;he++){const we=co[he],ze=we[Xr];if(js(we,ht),ze&&ze.hasAnimation)continue;let pt=[];if(Un.size){let $t=Un.get(we);$t&&$t.length&&pt.push(...$t);let an=this.driver.query(we,tt,!0);for(let zt=0;zt<an.length;zt++){let mn=Un.get(an[zt]);mn&&mn.length&&pt.push(...mn)}}const wt=pt.filter($t=>!$t.destroyed);wt.length?Ia(this,we,wt):this.processLeaveNode(we)}return co.length=0,b.forEach(he=>{this.players.push(he),he.onDone(()=>{he.destroy();const we=this.players.indexOf(he);this.players.splice(we,1)}),he.play()}),b}afterFlush(De){this._flushFns.push(De)}afterFlushAnimationsDone(De){this._whenQuietFns.push(De)}_getPreviousPlayers(De,pe,Ge,xt,sn){let En=[];if(pe){const Un=this.playersByQueriedElement.get(De);Un&&(En=Un)}else{const Un=this.playersByElement.get(De);if(Un){const ri=!sn||sn==Ss;Un.forEach(Mi=>{Mi.queued||!ri&&Mi.triggerName!=xt||En.push(Mi)})}}return(Ge||xt)&&(En=En.filter(Un=>!(Ge&&Ge!=Un.namespaceId||xt&&xt!=Un.triggerName))),En}_beforeAnimationBuild(De,pe,Ge){const sn=pe.element,En=pe.isRemovalTransition?void 0:De,Un=pe.isRemovalTransition?void 0:pe.triggerName;for(const ri of pe.timelines){const Mi=ri.element,Xi=Mi!==sn,Ui=G(Ge,Mi,[]);this._getPreviousPlayers(Mi,Xi,En,Un,pe.toState).forEach(xr=>{const yr=xr.getRealPlayer();yr.beforeDestroy&&yr.beforeDestroy(),xr.destroy(),Ui.push(xr)})}be(sn,pe.fromStyles)}_buildAnimation(De,pe,Ge,xt,sn,En){const Un=pe.triggerName,ri=pe.element,Mi=[],Xi=new Set,Ui=new Set,fr=pe.timelines.map(yr=>{const Rr=yr.element;Xi.add(Rr);const co=Rr[Xr];if(co&&co.removedBeforeQueried)return new d.sf(yr.duration,yr.delay);const Bo=Rr!==ri,os=function Ds(ct){const De=[];return Js(ct,De),De}((Ge.get(Rr)||oo).map(Us=>Us.getRealPlayer())).filter(Us=>!!Us.element&&Us.element===Rr),Es=sn.get(Rr),Fs=En.get(Rr),Qs=Q(this._normalizer,yr.keyframes,Es,Fs),io=this._buildPlayer(yr,Qs,os);if(yr.subTimeline&&xt&&Ui.add(Rr),Bo){const Us=new Xs(De,Un,Rr);Us.setRealPlayer(io),Mi.push(Us)}return io});Mi.forEach(yr=>{G(this.playersByQueriedElement,yr.element,[]).push(yr),yr.onDone(()=>function ys(ct,De,pe){let Ge=ct.get(De);if(Ge){if(Ge.length){const xt=Ge.indexOf(pe);Ge.splice(xt,1)}0==Ge.length&&ct.delete(De)}return Ge}(this.playersByQueriedElement,yr.element,yr))}),Xi.forEach(yr=>qo(yr,Je));const xr=Me(fr);return xr.onDestroy(()=>{Xi.forEach(yr=>js(yr,Je)),ke(ri,pe.toStyles)}),Ui.forEach(yr=>{G(xt,yr,[]).push(xr)}),xr}_buildPlayer(De,pe,Ge){return pe.length>0?this.driver.animate(De.element,pe,De.duration,De.delay,De.easing,Ge):new d.sf(De.duration,De.delay)}}class Xs{constructor(De,pe,Ge){this.namespaceId=De,this.triggerName=pe,this.element=Ge,this._player=new d.sf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(De){this._containsRealPlayer||(this._player=De,this._queuedCallbacks.forEach((pe,Ge)=>{pe.forEach(xt=>A(De,Ge,void 0,xt))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(De.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(De){this.totalTime=De}syncPlayerEvents(De){const pe=this._player;pe.triggerCallback&&De.onStart(()=>pe.triggerCallback("start")),De.onDone(()=>this.finish()),De.onDestroy(()=>this.destroy())}_queueEvent(De,pe){G(this._queuedCallbacks,De,[]).push(pe)}onDone(De){this.queued&&this._queueEvent("done",De),this._player.onDone(De)}onStart(De){this.queued&&this._queueEvent("start",De),this._player.onStart(De)}onDestroy(De){this.queued&&this._queueEvent("destroy",De),this._player.onDestroy(De)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(De){this.queued||this._player.setPosition(De)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(De){const pe=this._player;pe.triggerCallback&&pe.triggerCallback(De)}}function fs(ct){return ct&&1===ct.nodeType}function Ms(ct,De){const pe=ct.style.display;return ct.style.display=De??"none",pe}function Ua(ct,De,pe,Ge,xt){const sn=[];pe.forEach(ri=>sn.push(Ms(ri)));const En=[];Ge.forEach((ri,Mi)=>{const Xi=new Map;ri.forEach(Ui=>{const fr=De.computeStyle(Mi,Ui,xt);Xi.set(Ui,fr),(!fr||0==fr.length)&&(Mi[Xr]=fo,En.push(Mi))}),ct.set(Mi,Xi)});let Un=0;return pe.forEach(ri=>Ms(ri,sn[Un++])),En}function Zs(ct,De){const pe=new Map;if(ct.forEach(Un=>pe.set(Un,[])),0==De.length)return pe;const xt=new Set(De),sn=new Map;function En(Un){if(!Un)return 1;let ri=sn.get(Un);if(ri)return ri;const Mi=Un.parentNode;return ri=pe.has(Mi)?Mi:xt.has(Mi)?1:En(Mi),sn.set(Un,ri),ri}return De.forEach(Un=>{const ri=En(Un);1!==ri&&pe.get(ri).push(Un)}),pe}function qo(ct,De){ct.classList?.add(De)}function js(ct,De){ct.classList?.remove(De)}function Ia(ct,De,pe){Me(pe).onDone(()=>ct.processLeaveNode(De))}function Js(ct,De){for(let pe=0;pe<ct.length;pe++){const Ge=ct[pe];Ge instanceof d.ui?Js(Ge.players,De):De.push(Ge)}}function Ga(ct,De,pe){const Ge=pe.get(ct);if(!Ge)return!1;let xt=De.get(ct);return xt?Ge.forEach(sn=>xt.add(sn)):De.set(ct,Ge),pe.delete(ct),!0}class cs{constructor(De,pe,Ge,xt){this._driver=pe,this._normalizer=Ge,this._triggerCache={},this.onRemovalComplete=(sn,En)=>{},this._transitionEngine=new ka(De.body,pe,Ge,xt),this._timelineEngine=new rr(De.body,pe,Ge),this._transitionEngine.onRemovalComplete=(sn,En)=>this.onRemovalComplete(sn,En)}registerTrigger(De,pe,Ge,xt,sn){const En=De+"-"+xt;let Un=this._triggerCache[En];if(!Un){const ri=[],Xi=Yn(this._driver,sn,ri,[]);if(ri.length)throw function X(ct,De){return new l.wOt(3404,!1)}();Un=function Li(ct,De,pe){return new dr(ct,De,pe)}(xt,Xi,this._normalizer),this._triggerCache[En]=Un}this._transitionEngine.registerTrigger(pe,xt,Un)}register(De,pe){this._transitionEngine.register(De,pe)}destroy(De,pe){this._transitionEngine.destroy(De,pe)}onInsert(De,pe,Ge,xt){this._transitionEngine.insertNode(De,pe,Ge,xt)}onRemove(De,pe,Ge){this._transitionEngine.removeNode(De,pe,Ge)}disableAnimations(De,pe){this._transitionEngine.markElementAsDisabled(De,pe)}process(De,pe,Ge,xt){if("@"==Ge.charAt(0)){const[sn,En]=W(Ge);this._timelineEngine.command(sn,pe,En,xt)}else this._transitionEngine.trigger(De,pe,Ge,xt)}listen(De,pe,Ge,xt,sn){if("@"==Ge.charAt(0)){const[En,Un]=W(Ge);return this._timelineEngine.listen(En,pe,Un,sn)}return this._transitionEngine.listen(De,pe,Ge,xt,sn)}flush(De=-1){this._transitionEngine.flush(De)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(De){this._transitionEngine.afterFlushAnimationsDone(De)}}class Vo{static{this.initialStylesByElement=new WeakMap}constructor(De,pe,Ge){this._element=De,this._startStyles=pe,this._endStyles=Ge,this._state=0;let xt=Vo.initialStylesByElement.get(De);xt||Vo.initialStylesByElement.set(De,xt=new Map),this._initialStyles=xt}start(){this._state<1&&(this._startStyles&&ke(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ke(this._element,this._initialStyles),this._endStyles&&(ke(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Vo.initialStylesByElement.delete(this._element),this._startStyles&&(be(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(be(this._element,this._endStyles),this._endStyles=null),ke(this._element,this._initialStyles),this._state=3)}}function Hn(ct){let De=null;return ct.forEach((pe,Ge)=>{(function Ba(ct){return"display"===ct||"position"===ct})(Ge)&&(De=De||new Map,De.set(Ge,pe))}),De}class ds{constructor(De,pe,Ge,xt){this.element=De,this.keyframes=pe,this.options=Ge,this._specialStyles=xt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=Ge.duration,this._delay=Ge.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(De=>De()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const De=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,De,this.options),this._finalKeyframe=De.length?De[De.length-1]:new Map;const pe=()=>this._onFinish();this.domPlayer.addEventListener("finish",pe),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",pe)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(De){const pe=[];return De.forEach(Ge=>{pe.push(Object.fromEntries(Ge))}),pe}_triggerWebAnimation(De,pe,Ge){return De.animate(this._convertKeyframesToObject(pe),Ge)}onStart(De){this._originalOnStartFns.push(De),this._onStartFns.push(De)}onDone(De){this._originalOnDoneFns.push(De),this._onDoneFns.push(De)}onDestroy(De){this._onDestroyFns.push(De)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(De=>De()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(De=>De()),this._onDestroyFns=[])}setPosition(De){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=De*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const De=new Map;this.hasStarted()&&this._finalKeyframe.forEach((Ge,xt)=>{"offset"!==xt&&De.set(xt,this._finished?Ge:bn(this.element,xt))}),this.currentSnapshot=De}triggerCallback(De){const pe="start"===De?this._onStartFns:this._onDoneFns;pe.forEach(Ge=>Ge()),pe.length=0}}class la{validateStyleProperty(De){return!0}validateAnimatableStyleProperty(De){return!0}matchesElement(De,pe){return!1}containsElement(De,pe){return Ze(De,pe)}getParentElement(De){return le(De)}query(De,pe,Ge){return Qe(De,pe,Ge)}computeStyle(De,pe,Ge){return bn(De,pe)}animate(De,pe,Ge,xt,sn,En=[]){const ri={duration:Ge,delay:xt,fill:0==xt?"both":"forwards"};sn&&(ri.easing=sn);const Mi=new Map,Xi=En.filter(xr=>xr instanceof ds);(function Ji(ct,De){return 0===ct||0===De})(Ge,xt)&&Xi.forEach(xr=>{xr.currentSnapshot.forEach((yr,Rr)=>Mi.set(Rr,yr))});let Ui=function yt(ct){return ct.length?ct[0]instanceof Map?ct:ct.map(De=>new Map(Object.entries(De))):[]}(pe).map(xr=>new Map(xr));Ui=function Fi(ct,De,pe){if(pe.size&&De.length){let Ge=De[0],xt=[];if(pe.forEach((sn,En)=>{Ge.has(En)||xt.push(En),Ge.set(En,sn)}),xt.length)for(let sn=1;sn<De.length;sn++){let En=De[sn];xt.forEach(Un=>En.set(Un,bn(ct,Un)))}}return De}(De,Ui,Mi);const fr=function $s(ct,De){let pe=null,Ge=null;return Array.isArray(De)&&De.length?(pe=Hn(De[0]),De.length>1&&(Ge=Hn(De[De.length-1]))):De instanceof Map&&(pe=Hn(De)),pe||Ge?new Vo(ct,pe,Ge):null}(De,Ui);return new ds(De,Ui,ri,fr)}}const oa="@.disabled";class Yo{constructor(De,pe,Ge,xt){this.namespaceId=De,this.delegate=pe,this.engine=Ge,this._onDestroy=xt,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(De){this.delegate.destroyNode?.(De)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(De,pe){return this.delegate.createElement(De,pe)}createComment(De){return this.delegate.createComment(De)}createText(De){return this.delegate.createText(De)}appendChild(De,pe){this.delegate.appendChild(De,pe),this.engine.onInsert(this.namespaceId,pe,De,!1)}insertBefore(De,pe,Ge,xt=!0){this.delegate.insertBefore(De,pe,Ge),this.engine.onInsert(this.namespaceId,pe,De,xt)}removeChild(De,pe,Ge){this.engine.onRemove(this.namespaceId,pe,this.delegate)}selectRootElement(De,pe){return this.delegate.selectRootElement(De,pe)}parentNode(De){return this.delegate.parentNode(De)}nextSibling(De){return this.delegate.nextSibling(De)}setAttribute(De,pe,Ge,xt){this.delegate.setAttribute(De,pe,Ge,xt)}removeAttribute(De,pe,Ge){this.delegate.removeAttribute(De,pe,Ge)}addClass(De,pe){this.delegate.addClass(De,pe)}removeClass(De,pe){this.delegate.removeClass(De,pe)}setStyle(De,pe,Ge,xt){this.delegate.setStyle(De,pe,Ge,xt)}removeStyle(De,pe,Ge){this.delegate.removeStyle(De,pe,Ge)}setProperty(De,pe,Ge){"@"==pe.charAt(0)&&pe==oa?this.disableAnimations(De,!!Ge):this.delegate.setProperty(De,pe,Ge)}setValue(De,pe){this.delegate.setValue(De,pe)}listen(De,pe,Ge){return this.delegate.listen(De,pe,Ge)}disableAnimations(De,pe){this.engine.disableAnimations(De,pe)}}class Bs extends Yo{constructor(De,pe,Ge,xt,sn){super(pe,Ge,xt,sn),this.factory=De,this.namespaceId=pe}setProperty(De,pe,Ge){"@"==pe.charAt(0)?"."==pe.charAt(1)&&pe==oa?this.disableAnimations(De,Ge=void 0===Ge||!!Ge):this.engine.process(this.namespaceId,De,pe.slice(1),Ge):this.delegate.setProperty(De,pe,Ge)}listen(De,pe,Ge){if("@"==pe.charAt(0)){const xt=function Va(ct){switch(ct){case"body":return document.body;case"document":return document;case"window":return window;default:return ct}}(De);let sn=pe.slice(1),En="";return"@"!=sn.charAt(0)&&([sn,En]=function La(ct){const De=ct.indexOf(".");return[ct.substring(0,De),ct.slice(De+1)]}(sn)),this.engine.listen(this.namespaceId,xt,sn,En,Un=>{this.factory.scheduleListenerCallback(Un._data||-1,Ge,Un)})}return this.delegate.listen(De,pe,Ge)}}class qs{constructor(De,pe,Ge){this.delegate=De,this.engine=pe,this._zone=Ge,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,pe.onRemovalComplete=(xt,sn)=>{const En=sn?.parentNode(xt);En&&sn.removeChild(En,xt)}}createRenderer(De,pe){const xt=this.delegate.createRenderer(De,pe);if(!De||!pe?.data?.animation){const Mi=this._rendererCache;let Xi=Mi.get(xt);return Xi||(Xi=new Yo("",xt,this.engine,()=>Mi.delete(xt)),Mi.set(xt,Xi)),Xi}const sn=pe.id,En=pe.id+"-"+this._currentId;this._currentId++,this.engine.register(En,De);const Un=Mi=>{Array.isArray(Mi)?Mi.forEach(Un):this.engine.registerTrigger(sn,En,De,Mi.name,Mi)};return pe.data.animation.forEach(Un),new Bs(this,En,xt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(De,pe,Ge){if(De>=0&&De<this._microtaskId)return void this._zone.run(()=>pe(Ge));const xt=this._animationCallbacksBuffer;0==xt.length&&queueMicrotask(()=>{this._zone.run(()=>{xt.forEach(sn=>{const[En,Un]=sn;En(Un)}),this._animationCallbacksBuffer=[]})}),xt.push([pe,Ge])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}var ks=s(61142);const va=[{provide:at,useFactory:function ts(){return new jt}},{provide:cs,useClass:(()=>{class ct extends cs{constructor(pe,Ge,xt){super(pe,Ge,xt,(0,l.WQX)(l.An2,{optional:!0}))}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(Ge){return new(Ge||ct)(l.KVO(ks.qQ),l.KVO(Ot),l.KVO(at))}}static{this.\u0275prov=l.jDH({token:ct,factory:ct.\u0275fac})}}return ct})()},{provide:l._9s,useFactory:function $a(ct,De,pe){return new qs(ct,De,pe)},deps:[n.B7,cs,l.SKi]}],Mn=[{provide:Ot,useFactory:()=>new la},{provide:l.bc$,useValue:"BrowserAnimations"},...va],Tn=[{provide:Ot,useClass:nt},{provide:l.bc$,useValue:"NoopAnimations"},...va];let tn=(()=>{class ct{static withConfig(pe){return{ngModule:ct,providers:pe.disableAnimations?Tn:Mn}}static{this.\u0275fac=function(Ge){return new(Ge||ct)}}static{this.\u0275mod=l.$C({type:ct})}static{this.\u0275inj=l.G2t({providers:Mn,imports:[n.Bb]})}}return ct})();var Rn=s(94485),Xn=s(17617),ae=s(99469),st=s(20924),Ct=s(43848),$n=s(75707),Gi=s(14714),Sr=s(91384),Wr=s(20381),ao=s(31315),Ir=s(26875),Cr=s(78812),Po=s(85735),Ki=s(83915);const Zo={userId:"",core:{displayName:"",primaryEmail:"",birthdate:"",preferredLocale:"",primaryEmailVerified:"",created:"",lastLogin:"",passwordLastChanged:"",linkedAccounts:{}},privacySettings:{},isAuthenticated:!1};class Ha{constructor(){}}class vo{static encode(De){const pe=new vo;return pe.data=window.btoa(encodeURIComponent(JSON.stringify(De))),pe}static decode(De){return JSON.parse(decodeURIComponent(window.atob(De.data)))}}class ta{static loadFrom(De,pe){const Ge=(0,Ir.isEmpty)(pe)?"session":`sdk/${pe}/session`;return De.readBlock(Ge).pipe((0,$n.ZZ)(xt=>(0,Ct.of)(new ta(vo.decode(xt)))))}constructor(De){this.data=(0,Ir.isNil)(De)?{userToken:null,user:Zo}:De}get user(){return this.data.user}set user(De){this.data.user=De}get sessionToken(){return this.sessionTokenString}set sessionToken(De){this.sessionTokenString=De}get userToken(){return this.data.userToken}set userToken(De){this.data.userToken=De}hasUserToken(){return!(0,Ir.isNil)(this.data.userToken)}hasSessionToken(){return!(0,Ir.isNil)(this.sessionToken)}writeTo(De,pe){const Ge=(0,Ir.isEmpty)(pe)?"session":`sdk/${pe}/session`;return De.writeBlock(Ge,vo.encode(this.data))}get affiliateStatus(){return this.data.isAffiliated}set affiliateStatus(De){this.data.isAffiliated=De}get expiry(){return this.data.expiry}set expiry(De){this.data.expiry=De}}var Ps=function(ct){return ct.ShowLoginDialogStarted="Showing Login Dialog",ct.ShowLoginDialogCompleted="Login Dialog Shown",ct.LoginStarted="Login Started",ct.LoginCompleted="Login Completed",ct.LoginAbortedByUser="Login Aborted: User Cancelled Login",ct.LoginAbortedAlreadyLoggedIn="Login Aborted: Already Logged In",ct.LoginFailed="Login Failed",ct.LogoutStarted="Logout Started",ct.LogoutCompleted="Logout Complted",ct.LogoutFailed="Logout Failed",ct}(Ps||{});let ja=(()=>{class ct{static{this.\u0275fac=function(Ge){return new(Ge||ct)}}static{this.\u0275prov=l.jDH({token:ct,factory:ct.\u0275fac})}}return ct})();var Ja=function(ct){return ct.Browser="Browser",ct.Cef="Cef",ct.Android="Android",ct}(Ja||{}),Wa=s(35146),Ea=s(59859),Ks=s(99047),na=s(10174),zi=s(8619),mr=s(43615),lr=s(81834),je=s(92262);class Ft extends je.yN{constructor(De){super("Could not fetch delegate token",De)}}class un extends je.yN{constructor(){super("invalid or missing userSession parameter",null)}}var wn=s(40996),zn=s(27731),vi=s(15652),Si=s(93181),Ri=s(65706),nr=s(5798),_r=s(6478),Er=s(14709);const po="JARVIS",To=".com",Di=3e4,Jt=2,Rt=1e3;let ei=(()=>{class ct{constructor(pe,Ge,xt,sn,En,Un,ri,Mi){this.jarvisConfig=pe,this.endpointFactory=Ge,this.bridgeService=xt,this.systemInfoService=sn,this.distributedtracingUtilService=En,this.appConfig=Un;const{defaultRetries:Xi=Jt,defaultTimeBetweenRetries:Ui=Rt,defaultTimeout:fr=Di}=pe,Rr={config:{maxRetries:Xi,timeout:fr,timeBetweenRetries:Ui}},co={config:{timeout:1e4,maxRetries:Xi,timeBetweenRetries:Ui}};this.endpointDelegateRequest=this.endpointFactory.createEndpoint(Rr),this.endpointDelegateRedeem=this.endpointFactory.createEndpoint(Rr),this.endpointUserLogin=this.endpointFactory.createEndpoint(Rr),this.endpointClientLogin=this.endpointFactory.createEndpoint(Rr),this.endpointClientChain=this.endpointFactory.createEndpoint(Rr),this.endpointProfileUser=this.endpointFactory.createEndpoint(Rr),this.endpointThirdPartyProvider=this.endpointFactory.createEndpoint(Rr),this.endpointRequestVerify=this.endpointFactory.createEndpoint(Rr),this.endpointProxyCall=this.endpointFactory.createEndpoint(Rr),this.endpointPingServer=this.endpointFactory.createEndpoint(co),this.logger=ri.getLogger("libraries/jarvis-http.service"),this.fastestDomainStream=Mi.createStream(this.getFastestJarvisDomain.bind(this))}get accountsUrl$(){return this.fastestDomainStream.get$().pipe((0,Ri.s)(1),(0,Ki.T)(pe=>this.jarvisConfig.accountsUrl.replace(To,pe)))}get serverUrl$(){return this.fastestDomainStream.get$().pipe((0,Ri.s)(1),(0,Ki.T)(pe=>this.jarvisConfig.url.replace(To,pe)))}getFastestJarvisDomain(){const pe={reportRequestData:{originalService:po,serviceUseCase:"JARVIS_Ping"}};let Ge=0;const xt=this.distributedtracingUtilService.startSpan(_r.pB.GetFastestDomain),sn=[],En=Date.now();return this.jarvisConfig.urlDomains.forEach(Un=>{const ri=this.jarvisConfig.url.replace(`${To}/api/1`,`${Un}/ping`),Mi=this.endpointPingServer.get(ri,pe).pipe((0,Sr.M)(()=>this.logger.info("url",ri,"response time",Date.now()-En)));sn.push(this.distributedtracingUtilService.handleHttpEndpointSpan(Mi,pe,_r.pB.JarvisPing,xt).pipe((0,na.u)(Un),(0,Sr.M)(()=>{this.logger.info(`Jarvis domain set to ${Un}`),xt&&this.distributedtracingUtilService.setSpanAttribute(xt,_r.NS.Error,!1)}),(0,Gi.W)(Xi=>(this.logger.error(`Ping request to ${ri} failed with error ${Xi}`),Ge++,Ge>=this.jarvisConfig.urlDomains.length?(this.logger.error("All pings to jarvis servers failed, selecting default"),xt&&this.distributedtracingUtilService.setSpanAttribute(xt,_r.NS.Error,!0),(0,Ct.of)(To)):zn.t))))}),(0,vi.O4)(sn).pipe((0,Sr.M)(Un=>{xt&&this.distributedtracingUtilService.setSpanAttribute(xt,_r.NS.FastestJarvisDomain,Un),this.distributedtracingUtilService.closeSpan(xt)}))}getLoginToken(pe){if((0,Ir.isNil)(pe)||0===pe.trim().length)throw new Error("invalid or missing accessCode parameter");const xt={body:{grant_type:"authorization_code",scope:"Any",code:pe,redirect_uri:this.jarvisConfig.redirectUrl,client_id:this.jarvisConfig.clientId},reportRequestData:{originalService:po,serviceUseCase:"JARVIS_Get_Login_Token"}};return this.serverUrl$.pipe((0,$n.ZZ)(sn=>this.endpointDelegateRequest.post(`${sn}/oauth/resource`,xt)))}getDelegateToken(pe,Ge,xt){if((0,Ir.isNil)(pe)||0===pe.trim().length)return(0,Ea.$)(new un);const En={body:{clientId:Ge},headers:this.getJarvisAuthorizeHeaders(`${pe}:`),reportRequestData:{originalService:po,serviceUseCase:"JARVIS_Get_Delegate_Token"}},Un=this.serverUrl$.pipe((0,$n.ZZ)(ri=>this.endpointUserLogin.post(`${ri}/authentication/delegate/request`,En)));return this.distributedtracingUtilService.handleHttpEndpointSpan(Un,En,_r.pB.DelegateToken,xt)}proxyPost(pe,Ge,xt,sn){const En={body:sn,headers:this.getJarvisAuthorizeHeaders(`${pe}:`),params:xt};return this.serverUrl$.pipe((0,$n.ZZ)(Un=>this.endpointProxyCall.post(`${Un}/proxy/${Ge}`,En)))}redeemDelegateToken(pe,Ge){if((0,Ir.isNil)(pe)||0===pe.trim().length)throw new Error("invalid or missing delegateToken parameter");return(0,Si.p)([this.systemInfoService.getSystemInfo([ae.Lu.DeviceId]),this.serverUrl$]).pipe((0,$n.ZZ)(([xt,sn])=>{const Un={body:{clientId:this.jarvisConfig.clientId,clientDescription:this.jarvisConfig.clientDescription,deviceId:xt.DeviceId,scope:Ge||"session_token"},headers:this.getJarvisAuthorizeHeaders(`${pe}:`),reportRequestData:{originalService:po,serviceUseCase:"JARVIS_Redeem_Delegate_Token"}};return this.endpointDelegateRedeem.post(`${sn}/authentication/delegate/redeem`,Un)}))}getUserToken(pe){if((0,Ir.isNil)(pe)||0===pe.trim().length)throw new Error("invalid or missing loginToken parameter");return(0,Si.p)([this.systemInfoService.getSystemInfo([ae.Lu.SystemName,ae.Lu.DeviceId]),this.serverUrl$]).pipe((0,$n.ZZ)(([Ge,xt])=>{const En={body:{clientId:this.jarvisConfig.clientId,clientDescription:this.jarvisConfig.clientDescription,deviceDescription:Ge.SystemName,deviceId:Ge.DeviceId},headers:this.getJarvisAuthorizeHeaders(`${pe}:`),reportRequestData:{originalService:po,serviceUseCase:"JARVIS_Get_User_Token"}};return this.endpointUserLogin.post(`${xt}/authentication/user/login`,En)}),(0,Gi.W)(Ge=>(this.logger.error("Error while accessing the endpoint",Ge),(0,Ea.$)(Ge))))}getSessionToken(pe){if((0,Ir.isNil)(pe)||0===pe.trim().length)throw new Error("invalid or missing userToken parameter");return(0,Si.p)([this.systemInfoService.getSystemInfo([ae.Lu.DeviceId]),this.serverUrl$]).pipe((0,$n.ZZ)(([Ge,xt])=>{const En={body:{clientCapabilities:["OAuthPortal"],clientId:this.jarvisConfig.clientId,clientDescription:this.jarvisConfig.clientDescription.replace("{VERSION}",this.appConfig.get().build.version),deviceId:Ge.DeviceId},headers:this.getJarvisAuthorizeHeaders(`${pe}:`),reportRequestData:{originalService:po,serviceUseCase:"JARVIS_Get_Session_Token"}};return this.endpointClientLogin.post(`${xt}/authentication/client/login`,En)}))}chainSession(pe){if((0,Ir.isNil)(pe)||0===pe.trim().length)throw new Error("invalid or missing userSession parameter");return(0,Si.p)([this.systemInfoService.getSystemInfo([ae.Lu.DeviceId]),this.serverUrl$]).pipe((0,$n.ZZ)(([Ge,xt])=>{const En={body:{clientId:this.jarvisConfig.clientId,deviceId:Ge.DeviceId},headers:this.getJarvisAuthorizeHeaders(`${pe}:`),reportRequestData:{originalService:po,serviceUseCase:"JARVIS_Chain_Session"}};return this.endpointClientChain.post(`${xt}/authentication/client/chain`,En)}))}getUserInfo(pe){if((0,Ir.isNil)(pe)||0===pe.trim().length)throw new Error("invalid or missing sessionToken parameter");const Ge={headers:this.getJarvisAuthorizeHeaders(`${pe}:`),reportRequestData:{originalService:po,serviceUseCase:"JARVIS_Get_User_Info"}};return this.serverUrl$.pipe((0,$n.ZZ)(xt=>this.endpointProfileUser.get(`${xt}/profile/user`,Ge)))}getProviderInfo(pe){if((0,Ir.isNil)(pe)||0===pe.trim().length)throw new Error("invalid or missing sessionToken parameter");const Ge={headers:this.getJarvisAuthorizeHeaders(`${pe}:`),reportRequestData:{originalService:po,serviceUseCase:"JARVIS_Get_Third_Party_Provider_Info"}};return this.serverUrl$.pipe((0,$n.ZZ)(xt=>this.endpointThirdPartyProvider.get(`${xt}/authentication/hints/token/linkedaccount`,Ge)))}requestEmailVerify(pe){if((0,Ir.isNil)(pe)||0===pe.trim().length)throw new Error("invalid or missing emailAddress parameter");const Ge={body:{email:pe},reportRequestData:{originalService:po,serviceUseCase:"JARVIS_Request_Email_Verify"}};return this.serverUrl$.pipe((0,$n.ZZ)(xt=>this.endpointRequestVerify.post(`${xt}/profile/user/email/requestverify`,Ge)))}getJarvisAuthorizeHeaders(pe){const Ge=window.btoa(pe);return{[nr.SA.authorization]:`Basic ${Ge}`}}getDeviceId(){return this.bridgeService.executeCommand(st.Od.GenericCommand("QUERY_DEVICE_ID","",""),{})}getSharedUserData(pe,Ge,xt){if((0,Ir.isNil)(pe)||0===pe.trim().length)throw new Error("invalid or missing userSession parameter");const sn={headers:this.getJarvisAuthorizeHeaders(`${pe}:`)};return this.serverUrl$.pipe((0,$n.ZZ)(En=>this.endpointUserLogin.get(`${En}/datastore/user/shared/${Ge}/client/${xt}`,sn)))}static{this.\u0275fac=function(Ge){return new(Ge||ct)(l.KVO(ja),l.KVO(nr.t),l.KVO(ae.NZ),l.KVO(ae.zW),l.KVO(_r.Z1),l.KVO(Er.oO),l.KVO(ae.J6),l.KVO(lr.mZ))}}static{this.\u0275prov=l.jDH({token:ct,factory:ct.\u0275fac,providedIn:"root"})}}return ct})();var tr=s(26513),Ur=s(36877),lo=s(892),wo=s(72147),Lr=s(28653),ns=s(25590),Io=s(34593);let _a=(()=>{class ct{constructor(pe,Ge,xt,sn){this.bridgeService=pe,this.nativeEventService=xt,this.distributedTracingUtilService=sn,this.checkWindowOpenInterval=200,this.loginWindow=null,this.isWindowOpen=new tr.t(!1),this.logger=Ge.getLogger("jarvis/o-auth")}oAuthLogin(pe,Ge){if(!pe||0===pe.trim().length)throw new Error("invalid or missing Login Url");if(!Ge)throw new Error("invalid or missing OAuth Config");const xt=this.getWindowParamsString(Ge.windowParams),sn=this.distributedTracingUtilService.startSpan(_r.pB.JarvisOAuth);pe=this.distributedTracingUtilService.getFormattedUrlForHttpPopupSpan(pe,sn);const En=(0,Ur.R)(window,"message").pipe((0,zi.p)(ri=>this.validateMessageEvent(ri)),(0,Ki.T)(ri=>(this.logger.info("Captured OAuth data via post message:",ri.data),ri.data.error?this.distributedTracingUtilService.closeHttpPopupSpan(sn,!0,ri.data.error):this.distributedTracingUtilService.closeHttpPopupSpan(sn,!1,{failedUrl:pe,errorCode:"",errorText:""}),this.loginWindow.close(),this.isWindowOpen.next(!1),this.getMessageAccessCode(ri))),(0,Ks.$)());this.loginWindow=window.open(pe,Ge.popUpWindowName,xt),this.logger.info("login window opened with url",pe),this.isWindowOpen.next(!0);const Un=(0,Ur.R)(window,"focus").pipe((0,wo.n)(ri=>(ri&&ri.preventDefault(),this.bridgeService.executeCommand(st.Ts.Common.Windowcontrol.Focus,{name:"app_oauth_window_with_back_button"})))).subscribe(ri=>{},ri=>{this.logger.error("Failed to set focus with error: ",ri)});if(Ge.useAppUrl){const ri=(0,lo.Y)(this.checkWindowOpenInterval).pipe((0,Lr.j)(()=>!this.loginWindow.closed),(0,Ki.T)(Xi=>(this.isWindowOpen.next(!1),Un.unsubscribe(),null)),(0,Ks.$)()),Mi=this.nativeEventService.getNativeEvent$(ae.D4.RouteChange).pipe((0,zi.p)(Xi=>Xi.newRoute.startsWith("oauth/")),(0,Ki.T)(Xi=>(this.isWindowOpen.next(!1),Un.unsubscribe(),this.loginWindow.close(),this.getUrlAccessCode(Xi.newRoute))),(0,Ks.$)());return(0,vi.O4)(ri,Mi)}return(0,lo.Y)(this.checkWindowOpenInterval).pipe((0,Lr.j)(()=>!this.loginWindow.closed),(0,ns.E)(En.pipe((0,Io.Z)(null))),(0,Ki.T)(([ri,Mi])=>(this.isWindowOpen.next(!1),Un.unsubscribe(),Mi)),(0,Ks.$)())}checkIsWindowOpen(){return this.isWindowOpen.asObservable()}tryCloseOAuthWindow(){null!==this.loginWindow&&!this.loginWindow.closed&&this.loginWindow.close()}getWindowParamsString(pe={}){let Ge="";pe.toolbar&&(Ge+=`toolbar=${pe.toolbar},`),pe.location&&(Ge+=`location=${pe.location},`),pe.menubar&&(Ge+=`menubar=${pe.menubar},`),pe.fullscreen&&(Ge+=`fullscreen=${pe.fullscreen},`),pe.resizable&&(Ge+=`resizable=${pe.resizable},`),pe.scrollbars&&(Ge+=`scrollbars=${pe.scrollbars},`);const xt=pe.width?pe.width:window.innerWidth,sn=pe.height?pe.height:window.innerHeight,En=pe.top?pe.top:window.screenY+window.innerHeight/2-sn/2;return Ge+=`width=${xt},`,Ge+=`height=${sn},`,Ge+=`left=${pe.left?pe.left:window.screenX+window.innerWidth/2-xt/2},`,Ge+=`top=${En},`,Ge}validateMessageEvent(pe){let Ge=pe&&pe.data;return ae.zk.isBrowserPlatform()&&(Ge=Ge&&pe.origin===window.location.origin&&"oauth"===pe.data.key),!!Ge}getCodeFromLocalStorage(pe){const Ge=window.localStorage.getItem(pe);window.localStorage.removeItem(pe);try{return JSON.parse(Ge)}catch{return this.logger.error("malformed access code object",Ge),null}}getMessageAccessCode(pe){let Ge;return Ge=ae.zk.isBrowserPlatform()?this.getCodeFromLocalStorage((0,Ir.get)(pe,"data.key")):pe.data,(0,Ir.get)(Ge,"code")}getUrlAccessCode(pe){const Ge=pe.indexOf("?")>-1?pe.split("?"):pe.split("#/");if(Ge.length>1){let xt=new URLSearchParams(Ge[1]).get("code");const sn=new URLSearchParams(Ge[1]).get("access_token");return xt?xt=xt.split("#/")[0]:sn&&(xt=sn),xt}return""}static{this.\u0275fac=function(Ge){return new(Ge||ct)(l.KVO(ae.NZ),l.KVO(ae.J6),l.KVO(ae.dU),l.KVO(_r.Z1))}}static{this.\u0275prov=l.jDH({token:ct,factory:ct.\u0275fac,providedIn:"root"})}}return ct})();var Mt=s(72945),Dn=function(ct){return ct.ALREADY_LOGGED_IN="Already logged in",ct.USER_ABORTED_LOGIN="User aborted login",ct}(Dn||{});let qt=(()=>{class ct extends Ha{constructor(pe,Ge,xt,sn,En,Un,ri,Mi,Xi,Ui){super(),this.config=pe,this.jarvisHttpService=xt,this.oAuthService=sn,this.sharedStorage=En,this.bridgeService=Un,this.localeService=ri,this.networkStatus=Xi,this.gfnSdkService=Ui,this.SAFE_RETRY_COUNT=5,this.activelyRenewingsession=!1,this.loginTransitionSubject=new Po.m(1),this.logger=Ge.getLogger("jarvis/desktop"),this.logger.info("initialize"),pe.sdkClient&&this.logger.info("Running in GFN SDK mode for SDK client",pe.sdkClient),window.name!==pe.appWindowName&&(window.name=pe.appWindowName),this.sessionTokenSubscription=Mi.createStream(this.getSession.bind(this)),this.jarvisUserSubscription=Mi.createStream(this.getCurrentUser.bind(this)),this.refreshUser()}get sessionToken(){return this.sessionTokenSubscription.get$().pipe((0,Ks.$)())}handleError(pe,Ge){this.logger.error(pe),Ge.next(!1),Ge.complete()}clearCookies(){const pe=this.bridgeService.executeCommand(st.Ts.Common.Applicationcontrol.DeleteCookies,{url:".facebook.com",cookiename:""}),Ge=this.bridgeService.executeCommand(st.Ts.Common.Applicationcontrol.DeleteCookies,{url:".google.com",cookiename:""});return(0,Wa.yU)(pe,Ge)}updateTransitionState(pe,Ge,xt){const sn=pe?"loading":"not loading";(0,Ir.isNil)(xt)?(this.logger.info(`Jarvis state has changed to [${Ge}] and is now ${sn}`),this.loginTransitionSubject.next({state:Ge,isLoading:pe})):(this.logger.error(`Jarvis state has changed to [${Ge}] and is now ${sn} with error: ${xt}`),this.loginTransitionSubject.next({state:Ge,isLoading:pe,error:xt}))}login(pe=!1,Ge){this.updateTransitionState(!0,Ps.ShowLoginDialogStarted);const xt=new Po.m(1);return(0,Wa.yU)(this.jarvisUserSubscription.get$(),this.localeService.localeChanged).pipe((0,Ks.$)(),(0,$n.ZZ)(([sn,En])=>sn.userId===Zo.userId||pe?(this.authServiceSubscription&&this.authServiceSubscription.unsubscribe(),this.buildJarvisUrl(this.config,En,Ge)):(this.updateTransitionState(!1,Ps.ShowLoginDialogCompleted),(0,Ea.$)(Dn.ALREADY_LOGGED_IN))),(0,$n.ZZ)(sn=>this.clearCookies().pipe((0,na.u)(sn))),(0,Sr.M)(()=>this.updateTransitionState(!1,Ps.ShowLoginDialogCompleted)),(0,$n.ZZ)(sn=>this.oAuthService.oAuthLogin(sn,this.config.oAuthConfig)),(0,$n.ZZ)(sn=>(0,Ir.isNil)(sn)?(0,Ea.$)(Dn.USER_ABORTED_LOGIN):(0,Ct.of)(sn)),(0,Sr.M)(()=>this.updateTransitionState(!0,Ps.LoginStarted)),(0,$n.ZZ)(sn=>this.attemptLogin(sn))).subscribe(()=>{xt.next(!0),xt.complete(),this.updateTransitionState(!1,Ps.LoginCompleted)},sn=>{switch(sn){case Dn.ALREADY_LOGGED_IN:xt.next(!0),xt.complete(),this.updateTransitionState(!1,Ps.LoginAbortedAlreadyLoggedIn);break;case Dn.USER_ABORTED_LOGIN:xt.next(!0),xt.complete(),this.updateTransitionState(!1,Ps.LoginAbortedByUser);break;default:this.updateTransitionState(!1,Ps.LoginFailed,sn),this.handleError(sn,xt)}}),xt.asObservable()}logout(){this.updateTransitionState(!0,Ps.LogoutStarted);const pe=new Po.m(1);return this.storeSession(new ta).subscribe(Ge=>{this.sessionTokenSubscription.refresh().pipe((0,$n.ZZ)(()=>this.jarvisUserSubscription.refresh())).subscribe(()=>{this.logger.info("Logging out user."),pe.next(!0),pe.complete(),this.updateTransitionState(!1,Ps.LogoutCompleted)})},Ge=>(this.updateTransitionState(!1,Ps.LogoutFailed,Ge),this.handleError(Ge,pe))),pe.asObservable()}refreshUser(){return this.refreshSession().pipe((0,$n.ZZ)(pe=>this.jarvisUserSubscription.refresh()))}refreshSession(){return this.activelyRenewingsession?this.sessionToken:(this.activelyRenewingsession=!0,this.sessionTokenSubscription.refresh().pipe((0,Sr.M)(()=>this.activelyRenewingsession=!1)))}requestVerificationEmail(pe){return this.jarvisHttpService.requestEmailVerify(pe).pipe((0,na.u)(!0),(0,Gi.W)(Ge=>(this.logger.error(Ge),(0,Ct.of)(!1))))}getDelegateToken(pe,Ge=!1,xt){return this.safelyFetchData(sn=>sn.hasSessionToken()?this.jarvisHttpService.getDelegateToken(sn.sessionToken,pe,xt).pipe((0,Ki.T)(En=>({delegateToken:En.delegateToken,expiration:new Date(En.expiration)})),(0,Gi.W)((En,Un)=>(this.logger.warn("Could not get delegate token.",En),(0,Ea.$)(En)))):(0,Ct.of)(null),null,Ge).pipe((0,Gi.W)(sn=>(0,Ea.$)(sn instanceof un?sn:new Ft(sn))))}proxyPost(pe,Ge,xt,sn){return this.safelyFetchData(En=>En.hasSessionToken()?this.jarvisHttpService.proxyPost(En.sessionToken,pe+"/"+Ge,xt,sn):(0,Ct.of)(null),null,!0)}get accountsUrl$(){return this.jarvisHttpService.accountsUrl$}get accountStatusChanged(){let pe;return this.jarvisUserSubscription.get$().pipe((0,zi.p)(Ge=>(0,Ir.isNil)(pe)||!(0,Ir.isEqual)(pe.userId,Ge.userId)||!(0,Ir.isEqual)(pe.core.primaryEmailVerified,Ge.core.primaryEmailVerified)),(0,Sr.M)(Ge=>{pe=Ge}))}getThirdPartyProviderInfo(){return this.safelyFetchData(pe=>pe.hasSessionToken()?this.jarvisHttpService.getProviderInfo(pe.sessionToken).pipe((0,Ki.T)(Ge=>(this.logger.info("Provider received: ",Ge),Ge)),(0,Gi.W)(Ge=>(this.logger.error("Error to fetch Provider: ",Ge),404===Ge.status?(this.logger.info("Handling as user logged in through native provider"),(0,Ct.of)(null)):(0,Ea.$)(Ge)))):(0,Ea.$)("Has no session token"),null,!0)}get jarvisUserDataChanged(){let pe;return this.jarvisUserSubscription.get$().pipe((0,zi.p)(Ge=>!(0,Ir.isEqual)(pe,Ge)),(0,Ki.T)(Ge=>(pe=Ge,{newJarvisUser:Ge,oldJarvisUser:pe})))}get loginTransitionState(){return this.loginTransitionSubject.asObservable()}get isUserTokenAvailable(){return(0,Ir.isNil)(this.session)?(this.logger.info("Loading session object from shared storage to check if user token is present"),ta.loadFrom(this.sharedStorage,this.config.sdkClient).pipe((0,Ki.T)(pe=>pe.hasUserToken()),(0,Gi.W)(()=>(0,Ct.of)(!1)))):(0,Ct.of)(this.session.hasUserToken())}getSharedUserData(pe,Ge,xt=!1){return this.safelyFetchData(sn=>sn.hasSessionToken()?this.jarvisHttpService.getSharedUserData(sn.sessionToken,pe,Ge):(0,Ct.of)(null),null,xt)}getStoredSessionProperty(pe){let Ge;return(0,Ir.isNil)(this.session)?(this.logger.info("Reading session from sharedstorage"),Ge=ta.loadFrom(this.sharedStorage,this.config.sdkClient).pipe((0,Gi.W)(()=>(0,Ct.of)(new ta)))):(this.logger.info("Session Info available in memory"),Ge=(0,Ct.of)(this.session)),Ge.pipe((0,Ki.T)(xt=>{const sn=pe(xt);let En=!1;const Un=new Date;return En=!(!(0,Ir.isNil)(xt.expiry)&&!(0,Ir.isNil)(sn))||new Date(xt.expiry)<=Un,{data:sn,expired:En}}))}get cachedUser(){return this.logger.info("Fetching the cached user"),this.getStoredSessionProperty(pe=>pe.user)}get cachedUserAndAffiliateStatus(){return this.logger.info("Fetching the cached user and affiliate status"),this.getStoredSessionProperty(pe=>[pe.user,pe.affiliateStatus])}get cachedAffiliateStatus(){return this.logger.info("Fetching cached affiliate status"),this.getStoredSessionProperty(pe=>pe.affiliateStatus)}setCachedAffiliateStatus(pe){return pe!==this.session.affiliateStatus?(this.logger.info("Updating the affiliate status to:",pe),this.session.affiliateStatus=pe,this.storeSession(this.session).pipe((0,na.u)(pe))):(this.logger.info("Skipping the affiliate status update shared storage"),(0,Ct.of)(pe))}attemptLogin(pe){const Ge=new ta;return this.jarvisHttpService.getLoginToken(pe).pipe((0,$n.ZZ)(xt=>this.jarvisHttpService.getUserToken(xt.loginToken)),(0,$n.ZZ)(xt=>(Ge.userToken=xt.userToken,this.logger.info("Storing session containing only userToken to sharedStorage"),this.storeSession(Ge))),(0,$n.ZZ)(xt=>this.sessionTokenSubscription.refresh()),(0,$n.ZZ)(xt=>(Ge.sessionToken=xt.sessionToken,Ge.expiry=xt.expiry,this.session=Ge,this.jarvisUserSubscription.refresh())),(0,$n.ZZ)(xt=>(Ge.user=xt,this.logger.info("Storing complete session to sharedStorage"),this.storeSession(Ge))))}fetchSession(){return this.activelyRenewingsession=!0,this.jarvisHttpService.getSessionToken(this.session.userToken).pipe((0,Sr.M)(()=>this.activelyRenewingsession=!1),(0,$n.ZZ)(pe=>(this.session.sessionToken=pe.sessionToken,this.session.expiry=pe.expiration,(0,Ct.of)(this.session))),(0,Gi.W)(pe=>(this.logger.info("Error refreshing session with jarvis:",pe),(0,lr.gX)(pe)?(this.logger.info("The session refresh failed due to timeout or connection issues. So, will not log out the user"),(0,Ct.of)(this.session)):(this.logger.info("Error thrown from server. Hence, logging the user out"),(0,Ct.of)(new ta)))))}buildJarvisUrl(pe,Ge,xt){return this.jarvisHttpService.serverUrl$.pipe((0,Ki.T)(sn=>{let En=":server/oauth/authorize?response_type=code&scope=user_token&client_id=:clientId&redirect_uri=:redirectUri&prompt=login&locale=:locale";return En=En.replace(":server",sn),En=En.replace(":clientId",pe.clientId),En=En.replace(":redirectUri",encodeURIComponent(pe.redirectUrl)),En=En.replace(":locale",Ge),!(0,Ir.isNil)(xt)&&!(0,Ir.isEmpty)(xt)&&(En+="&preferred_auth=:preferredAuth",En=En.replace(":preferredAuth",xt.toString())),En}))}safelyFetchData(pe,Ge,xt=!1){return this.sessionToken.pipe((0,$n.ZZ)(sn=>(0,Ir.isNil)(this.session)||this.session.hasSessionToken()||!this.session.hasUserToken()?(0,Ct.of)(sn):this.sessionTokenSubscription.refresh()),(0,$n.ZZ)(sn=>pe(sn)),(0,Gi.W)(sn=>401===sn.status?this.refreshSession().pipe((0,Gi.W)(En=>(this.logger.error("Failed to fetchSession",En),this.logoutAndReturnObservable(Ge))),(0,$n.ZZ)(En=>this.safelyFetchData(pe,Ge,xt))):xt?(0,Ea.$)(sn):(this.logger.error(sn),(0,Ct.of)(Ge))))}logoutAndReturnObservable(pe){return this.logout(),(0,Ct.of)(pe)}getCurrentUser(){return this.safelyFetchData(pe=>{if(this.logger.info("Getting current user"),this.logger.info(`hasSessionToken: ${pe.hasSessionToken()}, hasUserToken: ${pe.hasUserToken()}`),!this.networkStatus.isOnline&&pe.hasUserToken())return this.logger.info("User is offline and session has user token. So returning cached user"),(0,Ct.of)(pe.user);if(pe.hasSessionToken()){const Ge=!(0,Ir.isNil)(pe.user)&&!(0,Ir.isNil)(pe.user.core.primaryEmailVerified);return this.jarvisHttpService.getUserInfo(pe.sessionToken).pipe((0,Ki.T)(xt=>(xt.isAuthenticated=!0,xt)),(0,$n.ZZ)(xt=>(pe.user=xt,(0,Ir.isNil)(xt.core.primaryEmailVerified)||Ge?(0,Ct.of)(pe):(this.logger.info("Primary Email Verified Info Updated. Hence saving userInfo to shared storage"),this.storeSession(pe)))),(0,Gi.W)(xt=>(this.logger.info("Error fetching userInfo from jarvis:",xt),(0,lr.gX)(xt)?(this.logger.info("UserInfo refresh failed due to timeout or connection issue. So, will not log out the user"),(0,Ct.of)(pe.user)):(this.logger.info("Error to is thrown by jarvis server. Will rethrow this error"),(0,Ea.$)(xt)))),(0,Ki.T)(xt=>pe.user))}return pe.hasUserToken()&&!(0,Ir.isNil)(pe.user)?(this.logger.info("Session fetch failed due to timeout or connection issue, not logging out the user"),(0,Ct.of)(pe.user)):(0,Ct.of)(Zo)},Zo)}getSession(){return!this.config.sdkClient||!(0,Ir.isNil)(this.session)&&this.session.hasUserToken()?this.networkStatus.isOnline?this.renewSession():this.loadSessionFromSharedStorage():this.getSessionFromSdk()}renewSession(){return this.activelyRenewingsession=!0,this.loadSessionFromSharedStorage().pipe((0,$n.ZZ)(pe=>pe.hasUserToken()?this.fetchSession():(0,Ct.of)(pe)),(0,$n.ZZ)(pe=>this.storeSession(pe)),(0,Gi.W)(pe=>(this.logger.info("Error saving session to shared storage:",pe),(0,Ct.of)(new ta))),(0,mr.j)(()=>this.activelyRenewingsession=!1))}loadSessionFromSharedStorage(pe){return ta.loadFrom(this.sharedStorage,pe?void 0:this.config.sdkClient).pipe((0,$n.ZZ)(Ge=>(this.logger.info("Loaded session successfully from shared storage"),this.session=Ge,Ge.hasUserToken()?(0,Ct.of)(Ge):pe||(0,Ir.isEmpty)(this.config.sdkClient)?(this.logger.info("Stored session does not have user token. Hence, logging the user out"),(0,Ct.of)(new ta)):this.loadSessionFromSharedStorage(!0))),(0,Gi.W)(Ge=>(this.logger.info("Error loading session from shared storage. Hence logging out the user.",Ge),this.session=new ta,(0,Ct.of)(this.session))))}storeSession(pe){return this.session=pe,this.session.writeTo(this.sharedStorage,this.config.sdkClient).pipe((0,$n.ZZ)(Ge=>(0,Ct.of)(this.session)),(0,Gi.W)(Ge=>(this.logger.info("Error saving session to shared storage:",Ge),(0,Ea.$)(Ge))))}getSessionFromSdk(){if(!this.networkStatus.isOnline||!(0,Ir.isNil)(this.session)&&this.session.hasSessionToken())return(0,Ct.of)(this.session);this.activelyRenewingsession=!0;const pe="sdk/"+this.config.sdkClient;return this.sharedStorage.removeBlock(`${pe}/session`).pipe((0,$n.ZZ)(Ge=>(this.logger.info("Cleared the stored session for SDK node",pe,Ge),this.gfnSdkService.getAuthInfo())),(0,$n.ZZ)(Ge=>(this.logger.info("Reading delegate token passed by SDK client",this.config.sdkClient),Ge.authType===wn.hT.IDM?this.jarvisHttpService.redeemDelegateToken(Ge.authToken):(0,Ea.$)("Token was an authN JWT, could not redeem"))),(0,$n.ZZ)(Ge=>(this.session=new ta,this.session.sessionToken=Ge.sessionToken,this.storeSession(this.session))),(0,Gi.W)(()=>(this.logger.error("Unable to redeem delegate token from SDK client",this.config.sdkClient),this.renewSession())),(0,mr.j)(()=>{this.activelyRenewingsession=!1}))}static{this.\u0275fac=function(Ge){return new(Ge||ct)(l.KVO(ja),l.KVO(ae.J6),l.KVO(ei),l.KVO(_a),l.KVO(Mt.yQ),l.KVO(ae.NZ),l.KVO(ae.iH),l.KVO(lr.mZ),l.KVO(ae.CF),l.KVO(wn.DL))}}static{this.\u0275prov=l.jDH({token:ct,factory:ct.\u0275fac,providedIn:"root"})}}return ct})();const yi={provide:Ha,useFactory:function Pn(ct,De,pe,Ge,xt,sn,En,Un,ri,Mi){switch(ct.platformType){case Ja.Browser:case Ja.Cef:return ct.redirectUrl=ct.redirectUrlIsRelative?window.location.origin+ct.redirectUrl:ct.redirectUrl,new qt(ct,De,Ge,xt,sn,pe,Un,En,ri,Mi);default:return void De.getLogger("jarvisServiceCreator").error("Cannot create JarvisService for unknown platform type: "+ct.platformType)}},deps:[ja,ae.J6,ae.NZ,ei,_a,Mt.yQ,lr.mZ,ae.iH,ae.CF,wn.DL]};var ur=s(99204);function Pr(ct,De){1&ct&&l.nrm(0,"mat-progress-spinner",3)}function uo(ct,De){if(1&ct&&(l.j41(0,"div",1),l.DNE(1,Pr,1,0,"mat-progress-spinner",2),l.k0s()),2&ct){const pe=l.XpG();l.R7$(),l.Y8G("ngIf",pe.isLoginTransitioning)}}let vs=(()=>{class ct{get showOverlay(){return this.isWindowOpen||this.isLoginTransitioning}constructor(pe,Ge){this.oAuthService=pe,this.jarvisService=Ge,this.isWindowOpen=!1,this.isLoginTransitioning=!1}ngOnInit(){this.windowSub=this.oAuthService.checkIsWindowOpen().subscribe(pe=>this.isWindowOpen=pe),this.loginSub=this.jarvisService.loginTransitionState.subscribe(pe=>{this.isLoginTransitioning=pe.isLoading})}ngOnDestroy(){this.windowSub&&this.windowSub.unsubscribe(),this.loginSub&&this.loginSub.unsubscribe()}static{this.\u0275fac=function(Ge){return new(Ge||ct)(l.rXU(_a),l.rXU(Ha))}}static{this.\u0275cmp=l.VBU({type:ct,selectors:[["lib-oauth-overlay"]],standalone:!0,features:[l.aNF],decls:1,vars:1,consts:[["class","oauth-blocker-overlay",4,"ngIf"],[1,"oauth-blocker-overlay"],["mode","indeterminate","color","accent","diameter","48","strokeWidth","4","class","progress",4,"ngIf"],["mode","indeterminate","color","accent","diameter","48","strokeWidth","4",1,"progress"]],template:function(Ge,xt){1&Ge&&l.DNE(0,uo,2,1,"div",0),2&Ge&&l.Y8G("ngIf",xt.showOverlay)},dependencies:[ks.bT,ur.D6,ur.LG],styles:[".oauth-blocker-overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;top:0;left:0;z-index:1000;background-color:#00000080;display:flex}.progress[_ngcontent-%COMP%]{margin:auto}"]})}}return ct})(),ss=(()=>{class ct{static configure(pe){return{ngModule:ct,providers:[{provide:ja,useValue:pe},yi,_a]}}static{this.\u0275fac=function(Ge){return new(Ge||ct)}}static{this.\u0275mod=l.$C({type:ct})}static{this.\u0275inj=l.G2t({providers:[yi],imports:[Rn.q1,vs]})}}return ct})();var Ts=s(50801),Ro=s(1229);const es={defaultLoggingLevel:ae.q_.Info};var Jo=s(29326);const Vs={bridge:{mocks:[]},logger:es,window:{name:ae.Sg.Igo},locale:Jo.l,configFileName:"../www/assets/config/config.json",production:!0};var Ca=s(48852),sa=function(ct){return ct.dev="Dev",ct.GenerateException="GeneralException",ct}(sa||{});class Xa{}class vl{}const Pl={build:{version:"0.0.0.1",type:"dev",branch:"",hash:"",variant:"dev"},cloudVariables:{server:"https://gx-target-experiments-frontend-api.gx.nvidia.com",featureRolloutAPIVersion:"v3",defaultRetries:2,defaultTimeout:3e4,defaultTimeBetweenRetries:1e4,networkTimeoutForCacheFallback:500,allCvNetworkTimeoutForCacheFallback:2e3,cacheMaxAge:1440,clientId:"37592259939409600",experiences:{nvappFeatureToggle:"appRemoteConfig"},denyListExperiences:[],deviceIdActivatedExperiences:[]},jsEvents:{server:"",version:"v1.0",schemaVersion:"3.1",defaultRetries:2,defaultTimeBetweenRetries:1e3,defaultTimeout:3e4,msBetweenSendRequest:5e3,maxEventsPerRequest:128,clientId:"12546161697959406",systemInfoEventDelay:1e4,productName:"NvApp"},tracer:{accessToken:"EEdnetVL0JJ5Wt2/hZor1SAIprMQ926Zyyh3fCATtlc8ZDzAx7EE/fsS93UhoPWXQgsorfkTApfopEuLYbQ=",collectorUrl:"https://prod.otel.kaizen.nvidia.com/traces/otlp/v0.9",componentName:"nvapp-prod"},lcars:{serverUrl:"",serverUrlCDN:"",clientId:"",defaultRetries:2,defaultTimeout:3e3,defaultTimeBetweenRetries:1e3},features:{gAssist:!1},exception:{exceptionTimeLimiter:6e4,clientName:"NVAPP_OSC_UI",isExceptionEnabled:!0,devMode:!1}};let Hs,wl;const ii=[{provide:Ro.k$F,useFactory:function as(){return(0,Ir.merge)({IGOFeatureEnabled:!0,branding:"GFE",GFNCefClient:!1,OSDEnabled:!0,NvCameraFeaturesEnabled:!0,PhotoModeEnabled:!0,GameFilterEnabled:!0,LanguageSelectionEnabled:!1,RecordingFeaturesDisabled:!1,StatisticsEnabled:!0,ControlUGCEnabled:!1,handleGamepadShortcutForInternalStats:!1,handleGamepadShortcutForExternalStats:!1,HideKeyboardShortcuts:!1,SmallScreenEnlargeFont:!1},((0,l.naY)(),{}))}},{provide:Er.aT,useValue:{filePath:Vs.configFileName}},Er.LV,(0,Er.XR)(Xa),{provide:vl,useFactory:function _l(ct,De,pe){const Ge=pe.getLogger("appConfig/loadIgoAppConfiguration");let xt=Pl;return xt.build.version=ct?.build?.version,xt.lcars.serverUrl=ct?.lcars?.serverUrl,xt.lcars.serverUrlCDN=ct?.lcars?.serverUrlCDN,xt.lcars.clientId=ct?.lcars?.clientId,xt.features.gAssist=ct?.featureEnablement?.gAssist,xt.exception.devMode=ct?.exception?.devMode,xt=(0,Ir.merge)((0,Ir.merge)(xt,wl),Hs),De.setServerURL(xt.jsEvents.server),xt?.build?.variant===sa.GenerateException&&(Ge.info("Setting Exception flag"),De.generateException()),xt},deps:[Xa,Ro.AHe,ae.J6]},{provide:l.hnV,useFactory:function Oo(ct,De){const pe=De.getLogger("appConfig/loadOverrides");return()=>(0,ao.zV)([ct.getLocaleOverride(),ct.readOverrides()]).pipe((0,Sr.M)(([Ge,xt])=>{pe.info("localeOverrides:",Ge),pe.info("toolOverrides:",xt),Hs=xt||{},wl=Ge||{}}),(0,Gi.W)(Ge=>(pe.error("Failed to fetch overrides",Ge),(0,Ct.of)(!0)))).toPromise()},multi:!0,deps:[Ro.AHe,ae.J6]},{provide:ja,useFactory:function Uo(){return(0,Ir.merge)({platformType:Ja.Cef,oAuthConfig:{popUpWindowName:"app_oauth_window_with_back_button",windowParams:{width:500,height:600,top:264,left:710},useAppUrl:!0},appWindowName:"igoclient",url:"https://accounts.nvgs.nvidia.com/api/1",urlDomains:[".com",".cn"],clientId:"144326972728672375",deviceId:"igoclient",redirectUrl:"https://rds-assets.nvidia.com/main/redirect/redirect-gfe-share-oauth.html",clientDescription:"GFE In-Game Overlay v{VERSION}",accountsUrl:"https://accounts.nvidia.com",sdkClient:void 0,defaultTimeout:3e4,pingTimeout:1e4,defaultRetries:2,defaultTimeBetweenRetries:1e4},(0,l.naY)()?{url:"https://partner.nvgs.nvidia.com/api/1",accountsUrl:"https://partner.nvgs.nvidia.com"}:{})},deps:[vl]},{provide:Cr.i1,useFactory:function za(ct,De){const pe=De.getServerURL();return(0,Ir.merge)({...ct.jsEvents,server:pe})},deps:[vl,Ro.AHe]},{provide:Wr.y2,useFactory:function rl(ct){return{appWindowName:ae.Sg.Gfe,storage:Cr.P6.IndexedDb,clientVersion:ct.build.version,clientVariant:ct.build.variant,openTracingConfig:{exportConfig:ct.tracer},piplExemption:!0,...ct.cloudVariables}},deps:[vl]},{provide:Ts.j6,useFactory:function al(){return{waitForDialogClose:!1}}},{provide:je.sT,useFactory:function jo(ct){return{exceptionTimeLimiter:ct.exception.exceptionTimeLimiter,clientName:"NVAPP_OSC_UI",isExceptionEnabled:ct.exception.isExceptionEnabled,devMode:ct.exception.devMode}},deps:[vl]},{provide:Ca.GJ,useFactory:function il(){return{implementationType:"no-op"}}},Ca.Oz];var Sl=s(57412),oi=s(57307);let Oi=(()=>{class ct{constructor(pe,Ge,xt,sn,En,Un,ri,Mi){this.localeService=pe,this.experienceControlService=Ge,this.appConfig=xt,this.bridgeService=sn,this.igoPiplLocaleConfigService=Un,this.lcarsService=ri,this.dateHandlerService=Mi,this.logger=En.getLogger("igo/AppComponent"),this.lcarsService.populateIgoAppConfig(this.appConfig),this.updateLocaleAndRegisterForUpdates()}ngOnInit(){this.experienceControlService.initialize(Wr.sK.NvAppClient,(0,Ct.of)("")),this.experienceControlService.setUserInfo({userId:ae.Qe,idpId:ae.Qe}),this.experienceControlService.setCvList(Object.values(this.appConfig.cloudVariables.experiences)),this.experienceControlService.refreshCloudVariables(),this.experienceControlService.getCloudVariable(this.appConfig.cloudVariables.experiences.nvappFeatureToggle,{},{useCache:!1,useNetworkTimeoutForCacheFallback:!0},Wr.Ky.GxTargetGetCloudVariable,Wr.Id.Other).subscribe(pe=>{const Ge={processCountReduction:pe?.value?.processCountReduction,hevcRecording:pe?.value?.hevcRecording,lightstepToggle:pe?.value?.lightstepToggle};this.logger.info("Received response for ",pe,Ge),this.writeToOverrideJson(Ge.processCountReduction)},pe=>{this.logger.info("GX CV fetch failed ",pe),this.writeToOverrideJson(!1)}),this.igoPiplLocaleConfigService.getGenerateExceptionFlag()&&(this.logger.info("Generating Exception for QA testing"),setTimeout(()=>{throw new Error("Software Testing: Generating exception for QA verification IGO")},1e3))}ngAfterViewInit(){this.dateHandlerService.initialize()}updateLocaleAndRegisterForUpdates(){this.updateLocale(),this.handleLocalChangedUpdates()}updateLocale(){this.localeService.isRTLLocaleSupported=!0,this.bridgeService.executeCommand(st.Ts.Share.Graphicssetting.GetUserPreferredLanguage).pipe((0,$n.ZZ)(pe=>{const Ge=pe.languageCode.replace("-","_");return this.logger.info("Fetched saved language code:",Ge),this.localeService.setLocale(Ge)}),(0,Gi.W)(pe=>(this.logger.error("Error while fetching saved language, using system language, error:",pe),this.localeService.useDefaultLocale()))).subscribe(pe=>{this.logger.info("locale saved to:",pe)})}handleLocalChangedUpdates(){this.bridgeService.executeCommand(st.Ts.Share.Graphicssetting.RegisterUserPreferredLanguageChangeNotification).pipe((0,Sr.M)(()=>{this.logger.info("Registered for locale changed updates")}),(0,Gi.W)(pe=>(this.logger.error("Failed to registered for locale changed updates:",pe),(0,Ct.of)()))).subscribe(),this.bridgeService.executeCommand(st.Ts.Share.Graphicssetting.UserPreferredLanguageChangeNotification).pipe((0,$n.ZZ)(pe=>{if(this.logger.info("Locale changed by the user, new locale:",pe.languageCode),!pe.languageCode)return(0,Ct.of)(null);const Ge=pe.languageCode.replace("-","_");return this.localeService.setLocale(Ge)}),(0,Gi.W)(pe=>(this.logger.error("Error while setting language, error:",pe),(0,Ct.of)(null)))).subscribe(pe=>{this.logger.info("locale saved to:",pe)})}writeToOverrideJson(pe){const Ge={appname:"Nvidia Overlay",data:["nv-combine-processes="+pe.toString()]};this.bridgeService.executeCommand(st.Ts.Common.Applicationcontrol.WriteConfig,Ge).subscribe(xt=>{this.logger.info("Write to override succesfull ",xt)},xt=>{this.logger.info("Write to override failed with error ",xt)})}static{this.\u0275fac=function(Ge){return new(Ge||ct)(l.rXU(ae.iH),l.rXU(Wr.BW),l.rXU(vl),l.rXU(ae.NZ),l.rXU(ae.J6),l.rXU(Ro.AHe),l.rXU(Sl.B),l.rXU(ae.I_))}}static{this.\u0275cmp=l.VBU({type:ct,selectors:[["app-root"]],decls:1,vars:0,template:function(Ge,xt){1&Ge&&l.nrm(0,"nv-igo")},dependencies:[oi.h],styles:["[_nghost-%COMP%] ::-webkit-scrollbar-track{background:var(--primary-contrast-80)}[_nghost-%COMP%] ::-webkit-scrollbar-thumb{background:var(--primary-contrast-160)}[_nghost-%COMP%] ::-webkit-scrollbar-thumb:hover{background:var(--primary-contrast-320)}[_nghost-%COMP%] ::-webkit-scrollbar-thumb:active{background:var(--primary-contrast-480)}"]})}}return ct})();var ki=s(14354);const is=[{path:"sidebar",component:s(27216).kc,outlet:"igo",children:[{path:"main-menu",loadChildren:()=>Promise.resolve().then(s.bind(s,23540)).then(ct=>ct.MainMenuModule)},{path:"gallery",loadChildren:()=>Promise.resolve().then(s.bind(s,47629)).then(ct=>ct.GalleryModule)},{path:"settings",loadChildren:()=>Promise.resolve().then(s.bind(s,39216)).then(ct=>ct.SettingsModule)},{path:"browser",loadChildren:()=>Promise.resolve().then(s.bind(s,90851)).then(ct=>ct.BrowserModule)},{path:"nvcamera",loadChildren:()=>Promise.resolve().then(s.bind(s,95843)).then(ct=>ct.NvcameraModule)},{path:"performance",loadChildren:()=>s.e(137).then(s.bind(s,46137)).then(ct=>ct.PerformanceModule)},{path:"instantReplay",loadChildren:()=>s.e(832).then(s.bind(s,87832)).then(ct=>ct.InstantReplayModule)},{path:"ngx",loadChildren:()=>s.e(177).then(s.bind(s,82177)).then(ct=>ct.NgxModule)},{path:"gassist",loadChildren:()=>Promise.resolve().then(s.bind(s,39248)).then(ct=>ct.GAssistModule)}]}];let Os=(()=>{class ct{static{this.\u0275fac=function(Ge){return new(Ge||ct)}}static{this.\u0275mod=l.$C({type:ct})}static{this.\u0275inj=l.G2t({imports:[ki.iI.forRoot(is,{useHash:!0,preloadingStrategy:ki.Kp}),ki.iI]})}}return ct})();var Ho=s(28138),Ko=s(51006),xa=s(96542),Ws=s(23812),ws=s(39248);let Nl=(()=>{class ct{static{this.\u0275fac=function(Ge){return new(Ge||ct)}}static{this.\u0275mod=l.$C({type:ct})}static{this.\u0275inj=l.G2t({imports:[ks.MD,Ko.YF,Xn.i,Ws.G,ws.GAssistModule,(0,ae.BU)()]})}}return ct})();var Ka=s(29370),Il=s(56315);let Cl=(()=>{class ct{static{this.\u0275fac=function(Ge){return new(Ge||ct)}}static{this.\u0275mod=l.$C({type:ct})}static{this.\u0275inj=l.G2t({imports:[ks.MD,Ka.m_,Ko.YF,Il.me,(0,ae.BU)()]})}}return ct})();var ac=s(39216);let lc=(()=>{class ct{static{this.\u0275fac=function(Ge){return new(Ge||ct)}}static{this.\u0275mod=l.$C({type:ct})}static{this.\u0275inj=l.G2t({imports:[ks.MD,ki.iI,Ko.YF,Xn.i,xa.h.forChild(),Nl,Cl,ac.SettingsModule]})}}return ct})();s(90851),s(47629),s(23540),s(95843);var Kt=s(27211),mt=s(19724),Yt=s(53914),_n=s(10132);let de=(()=>{class ct extends Kt.S{constructor(pe,Ge,xt,sn,En){super(),this.loggingService=pe,this.telemetryService=Ge,this.igoAppConfig=xt,this.systemInfoService=sn,this.bridgeService=En,this.logger=this.loggingService.getLogger("TelemetryHelperNVAPPService")}init(){}sendHighlightCapture(pe,Ge,xt,sn,En,Un,ri,Mi){const Ui=new mt._5({result:ri||Cr.oX.Undefined,sessionId:Cr.oX.Undefined,cmsId:pe?.cmsId||Cr.oX.Undefined,drsName:Un?.drsName||Cr.oX.Undefined,drsProfileName:Un?.drsProfileName||Cr.oX.Undefined,sdkVersion:Ge||Cr.oX.Undefined,contentType:En===Yt.cM.image?mt.cM.Image:mt.cM.Video,highlightType:sn||Cr.oX.Undefined,videoLengthMs:xt||0,modsActive:Mi?mt.T8.TRUE:mt.T8.FALSE,highlightAction:mt.rP.New});this.telemetryService.push(Ui)}sendHighlightsGameSetting(pe,Ge,xt,sn,En,Un){const ri={cmsId:Cr.oX.Undefined,drsName:pe.shortName||Cr.oX.Undefined,drsProfileName:Un||Cr.oX.Undefined,permissionSource:xt||Cr.oX.Undefined,highlightType:sn||Cr.oX.Undefined,settingName:En||Cr.oX.Undefined,settingValue:Ge?.toString()||Cr.oX.Undefined},Mi=new mt.l4(ri);this.telemetryService.push(Mi)}sendProcessingFilter(pe,Ge,xt,sn,En,Un,ri,Mi,Xi){const fr=new mt.jQ({cmsId:pe?.cmsId||Cr.oX.Undefined,drsName:pe?.drsName||Cr.oX.Undefined,drsProfileName:pe?.drsProfileName||Cr.oX.Undefined,installedDDVersion:Ge||Cr.oX.Undefined,action:xt,slotID:sn||0,slotFilters:En||Cr.oX.Undefined,newSlotID:Un||0,newSlotFilters:ri||Cr.oX.Undefined,persistedFilters:Mi||Cr.oX.Undefined,usedMenu:Xi?mt.T8.TRUE:mt.T8.FALSE});this.logger.info("NewProcessingFilterData : ",fr),this.telemetryService.push(fr)}sendProcessingControlSettings(pe,Ge,xt,sn,En){const ri=new mt.bH({cmsId:pe?.cmsId||Cr.oX.Undefined,drsName:pe?.drsName||Cr.oX.Undefined,drsProfileName:pe.drsProfileName||Cr.oX.Undefined,processingFilter:Ge,processingFilterAttribute:xt,processingFilterAttributeValue:sn,gameLaunchMode:En});this.telemetryService.push(ri)}sendAnselFreestyleError(pe,Ge,xt,sn,En,Un,ri,Mi,Xi,Ui,fr){const yr=new mt.Ef({cmsId:pe?.cmsId||Cr.oX.Undefined,drsName:pe?.drsName||Cr.oX.Undefined,drsProfileName:pe?.drsProfileName||Cr.oX.Undefined,errorType:Ge||Cr.oX.Undefined,errorSubType:xt||Cr.oX.Undefined,errorString:sn||Cr.oX.Undefined,sessionId:En||Cr.oX.Undefined,captureMode:Un,usedMenu:ri?mt.T8.TRUE:mt.T8.FALSE,gpuName:Mi||Cr.oX.Undefined,installedDDVersion:Xi||Cr.oX.Undefined,isOptimus:Ui?mt.T8.TRUE:mt.T8.FALSE,systemType:fr||Cr.oX.Undefined});this.telemetryService.push(yr)}sendStatsSession(pe,Ge,xt,sn,En,Un,ri,Mi,Xi){const fr=new mt.Bl({cmsId:pe?.cmsId||Cr.oX.Undefined,drsName:pe?.drsName||Cr.oX.Undefined,drsProfileName:pe?.drsProfileName||Cr.oX.Undefined,sessionType:Ge,triggerMode:xt,totalMs:sn||0,view:En,positionX:Un||0,positionY:ri||0,visibilityMode:Mi,layout:Xi});this.logger.info("statsSessionEventData: ",fr),this.telemetryService.push(fr)}sendIGOSettings(pe,Ge,xt){const En=new mt.aR({cmsId:pe?.cmsId||"",drsName:pe.drsName||"",drsProfileName:pe.drsProfileName,settingName:Ge,settingValue:xt});this.logger.info("statsSessionEventData: ",En),this.telemetryService.push(En)}setGalleryAccessCached(pe){this.galleryAccessCached=pe}sendUIPerfEvent(pe,Ge,xt,sn,En,Un){const ri=this.galleryAccessCached?mt.Pm.Cached:mt.Pm.FullLoad,Xi=new mt.RT({cmsId:pe?.cmsId,drsName:pe.drsName,drsProfileName:pe.drsProfileName,perfEnum:Ge,averageMs:xt,totalMs:sn,numItems:En,screenState:Un,galleryAccessType:ri});this.logger.info("uiPerfEventData: ",Xi),this.telemetryService.push(Xi)}getClientVariantType(pe){switch(pe){case"ibeta":return Yt.zg.IBeta;case"release":return Yt.zg.Release;default:return Yt.zg.Undefined}}setDeviceConsent(pe){this.telemetryService.setDeviceConsent(pe),this.currentDeviceConsent=pe}translateConsent(pe){return{functional:pe?.hasFunctionalConsent?Cr.Rg.Full:Cr.Rg.None,technical:pe?.hasTechnicalConsent?Cr.Rg.Full:Cr.Rg.None,behavioral:pe?.hasBehavioralConsent?Cr.Rg.Full:Cr.Rg.None,required:pe?.hasRequiredConsent?Cr.Rg.Full:Cr.Rg.None}}registerForConsentChangeNotification(){this.bridgeService.executeCommand(st.Ts.Common.Nvaccount.PrivacySettingsConsentInformationChangedNotification).subscribe(pe=>{if(this.logger.info("Updated device consent received ",pe),pe?.deviceConsent){const Ge=this.translateConsent(pe?.deviceConsent);this.setDeviceConsent(Ge)}else this.logger.error("Empty device consent received",pe)},pe=>this.logger.error("PrivacySettingsConsentInformationChangedNotification failed with ",pe)),this.bridgeService.executeCommand(st.Ts.Common.Nvaccount.UserConsentChangedNotification).pipe((0,Ki.T)(pe=>{if(pe&&pe?.userId){this.logger.info("Received User consent change notification ");const Ge={userId:pe.userId?.userId||"undefined",externalUserId:pe?.userId?.externalUserId||"undefined",idpId:pe?.userId?.identityProviderId||"undefined"},sn={userConsent:this.translateConsent(pe?.consentLevel),userId:pe?.userId?.userId||"undefined",externalUserId:pe?.userId?.externalUserId||"undefined",idpId:pe?.userId?.identityProviderId||"undefined"};this.telemetryService.setEventsCommonData(Ge,!0),this.telemetryService.setUserConsent([sn])}else this.logger.error("Empty UserId ");return pe},pe=>{this.logger.info("UserConsentChange Error ",pe)}),(0,Sr.M)(pe=>{pe.userId?this.setTelemtryInfoToShadowPlayParameters({userId:pe.userId.userId,externalUserId:pe.userId.externalUserId,idpId:pe.userId.identityProviderId}):this.logger.info("Empty user id received")})).subscribe(),this.bridgeService.executeCommand(st.Ts.Common.Nvaccount.UserIdChangedNotification).pipe((0,Ki.T)(pe=>{pe&&!pe.userId?(this.logger.info("Logout detected, clearing the user ID ",pe),this.resetUserId()):pe?this.logger.info("Login Detected "):(this.logger.info("Logout detected, clearing the user ID, empty Object ",pe),this.resetUserId())},pe=>{this.logger.error("UserIdChange Error ",pe)})).subscribe()}resetUserId(){this.telemetryService.setEventsCommonData({userId:"undefined"},!0),this.setTelemtryInfoToShadowPlayParameters({userId:"undefined",externalUserId:"undefined",idpId:"undefined"})}getConsentDetails(){return this.bridgeService.executeCommand(st.Ts.Common.Nvaccount.GetUserAccountAndDeviceConsent)}startStatsLoggingSession(pe){this.statsLoggingSessionStartTime=Date.now(),this.statsLoggingSessionTrigger=pe}sendStatsLoggingSession(pe){this.statsLoggingSessionStartTime?(this.sendStatsSession(pe,mt.Qz.Logging,this.statsLoggingSessionTrigger,Date.now()-this.statsLoggingSessionStartTime,mt.B_.Basic,0,0,mt.Om.Standard,mt.Eq.Linear),this.statsLoggingSessionStartTime=void 0):this.logger.error("Cannot send stats logging telemetry, timer was never started")}startStatsOverlaySession(pe){this.statsOverlaySessionStartTime=Date.now(),this.statsOverlaySessionTrigger=pe}sendStatsOverlaySession(pe,Ge,xt,sn,En,Un,ri=!1){this.statsOverlaySessionStartTime?(this.sendStatsSession(pe,mt.Qz.Overlay,this.statsOverlaySessionTrigger,ri?0:Date.now()-this.statsOverlaySessionStartTime,Ge,xt,sn,En,Un),ri||(this.statsOverlaySessionStartTime=void 0)):this.logger.error("Cannot send stats overlay telemetry, timer was never started")}initCommonData(){return this.registerForConsentChangeNotification(),(0,Si.p)([this.getConsentDetails(),this.systemInfoService.getSystemInfo([ae.Lu.DeviceId,ae.Lu.Platform,ae.Lu.OSVersion,ae.Lu.VendorName,ae.Lu.SystemName,ae.Lu.DeviceType,ae.Lu.BrowserName]),this.systemInfoService.getDeviceOSType()]).pipe((0,Ki.T)(([pe,Ge,xt])=>{this.logger.info("Setting events common data. userId and deviceId ");const sn=this.translateConsent(pe?.deviceConsent);this.setDeviceConsent(sn);const En={deviceId:Ge.DeviceId,clientType:Yt.Vd.Native,clientVer:this.igoAppConfig.build.version||Cr.oX.Undefined,deviceOSVersion:Ge.OSVersion,deviceMake:Ge.VendorName||Cr.oX.Undefined,deviceModel:Ge.SystemName||Cr.oX.Undefined,deviceType:Ge.DeviceType,browserType:Ge.BrowserName,productName:this.igoAppConfig.jsEvents.productName||Cr.oX.Undefined,productVersion:this.igoAppConfig.build.version||Cr.oX.Undefined,deviceOS:xt,userId:pe?.userAccount?.userId?.userId||Cr.oX.Undefined,externalUserId:pe?.userAccount?.userId?.externalUserId||Cr.oX.Undefined,idpId:pe?.userAccount?.userId?.identityProviderId||Cr.oX.Undefined};if(this.telemetryService.setEventsCommonData(En,!!pe?.userAccount?.userId),pe?.userAccount?.userId){const ri={userConsent:this.translateConsent(pe?.userAccount?.consentLevel),userId:pe.userAccount?.userId?.userId||Cr.oX.Undefined,externalUserId:pe.userAccount?.userId?.externalUserId||Cr.oX.Undefined,idpId:pe?.userAccount?.userId?.identityProviderId||Cr.oX.Undefined};this.telemetryService.setUserConsent([ri])}else this.logger.info("User Not logged in by default and userConsent will not be set");return En}),(0,Sr.M)(pe=>{pe?.userId&&pe?.userId!==Cr.oX.Undefined?this.setTelemtryInfoToShadowPlayParameters({userId:pe.userId,externalUserId:pe.externalUserId,idpId:pe.idpId}):(this.logger.info("IGO launched with user logged out"),this.setTelemtryInfoToShadowPlayParameters({userId:"undefined",externalUserId:"undefined",idpId:"undefined"}))}))}sendAudioTelemetry(pe){const Ge=new mt.jG(pe);this.telemetryService.push(Ge)}setTelemtryInfoToShadowPlayParameters(pe){this.bridgeService.executeCommand(st.Ts.Share.Shareserver.SetTelemtryInfoToShadowPlay,pe).subscribe(Ge=>this.logger.info("Succefully passed user id to Shadowplay",Ge),Ge=>this.logger.info("User ID pass to Shadowplay failed ",Ge))}captureActionTranslate(pe){switch(pe){case Yt.db.instantReplaySaved:return mt.db.IRSave;case Yt.db.screenshotSaved:return mt.db.ScreenshotCaptured;case Yt.db.stopAndSaveManualCapture:return mt.db.MRSave;case Yt.db.startManualCapture:return mt.db.MRStart;case Yt.db.turnOffInstantReplay:return mt.db.IRStop;case Yt.db.turnOnInstantReplay:return mt.db.IRStart;default:return mt.db.DetectValidGame}}micModeTranslate(pe){switch(pe){case st.Or.Share.Shareserver.MicModeEnum.on:case st.Or.Share.Shareserver.MicModeEnum.alwayson:return mt.T_.alwayson;case st.Or.Share.Shareserver.MicModeEnum.off:return mt.T_.off;case st.Or.Share.Shareserver.MicModeEnum.ptt:return mt.T_.ptt;default:return mt.T_.unknown}}videoQualityTranslate(pe){switch(pe){case st.Or.Share.Shareserver.Quality.GamecastAverage:case st.Or.Share.Shareserver.Quality.GamecastFBLAverage:case st.Or.Share.Shareserver.Quality.GamecastYTLAverage:case st.Or.Share.Shareserver.Quality.Average:return mt.Jt.Average;case st.Or.Share.Shareserver.Quality.GamecastFBLGood:case st.Or.Share.Shareserver.Quality.GamecastYTLGood:case st.Or.Share.Shareserver.Quality.GamecastGood:case st.Or.Share.Shareserver.Quality.Good:return mt.Jt.Good;case st.Or.Share.Shareserver.Quality.VeryGood:case st.Or.Share.Shareserver.Quality.GamecastFBLVeryGood:case st.Or.Share.Shareserver.Quality.GamecastVeryGood:case st.Or.Share.Shareserver.Quality.GamecastYTLVeryGood:return mt.Jt.VeryGood;case st.Or.Share.Shareserver.Quality.Custom:return mt.Jt.Custom;case st.Or.Share.Shareserver.Quality.UltraGood:case st.Or.Share.Shareserver.Quality.GamecastUltraGood:case st.Or.Share.Shareserver.Quality.GamecastYTLUltraGood:return mt.Jt.UltraGood;default:return mt.Jt.Average}}indicatorPositionTranslate(pe){switch(pe){case _n.VH.rightTop:return mt.MB.RightTop;case _n.VH.rightCenter:return mt.MB.RightCenter;case _n.VH.rightBottom:return mt.MB.RightBottom;case _n.VH.centerBottom:return mt.MB.CenterBottom;case _n.VH.leftBottom:return mt.MB.LeftBottom;case _n.VH.leftCenter:return mt.MB.LeftCenter;case _n.VH.leftTop:return mt.MB.LeftTop;case _n.VH.centerTop:return mt.MB.CenterTop;case _n.VH.none:return mt.MB.Nowhere;default:return mt.MB.NA}}sendNotificationSettingsTelemetry(pe){const Ge=new mt.Kl(pe);this.telemetryService.push(Ge)}updateVideoSpecSettings(pe){this.videoSpec=pe}updateMicMode(pe){this.micMode=pe}sendCaptureEvent(pe,Ge,xt,sn,En,Un,ri,Mi,Xi,Ui,fr,xr,yr,Rr,co){const Bo={cmsId:xr?.cmsId||Cr.oX.Undefined,drsName:xr?.drsName||Cr.oX.Undefined,drsProfileName:xr?.drsProfileName||Cr.oX.Undefined,captureAction:this.captureActionTranslate(pe),totalMs:fr||0,micModeType:this.micModeTranslate(this.micMode),qualityType:this.videoQualityTranslate(this.videoSpec?.recQualitySP),resolution:Cr.oX.Undefined,recordCodec:Cr.oX.Undefined,colorSpaceRange:Cr.oX.Undefined,bitRate:this.videoSpec?.recBitrate||0,frameRate:this.videoSpec?.recFramerate||0,fpsOverlayPos:this.indicatorPositionTranslate(Rr),statusOverlayPos:this.indicatorPositionTranslate(yr),freestyleActive:co?mt.T8.TRUE:mt.T8.FALSE,result:Mi?Mi.toString():Cr.oX.Undefined},os=new mt.sI(Bo);this.telemetryService.push(os)}sendSessionEvent(pe,Ge,xt,sn,En,Un,ri,Mi){const Ui=new mt.E5({action:pe,screenState:Ge||Cr.oX.Undefined,totalMs:xt||0,menuName:sn||Cr.oX.Undefined,installedDDVersion:En||Cr.oX.Undefined,triggerMode:Un,hotkeyID:ri||Cr.oX.Undefined,hotkey:ri||Cr.oX.Undefined});this.telemetryService.push(Ui)}startAnselScreenshot(){this.anselScreenshotStartTime=Date.now()}sendAnselFreestyleCaptureEvent(pe,Ge,xt,sn,En,Un,ri,Mi,Xi,Ui,fr,xr){if(!this.anselScreenshotStartTime)return void this.logger.error("Cannot send Ansel Screenshot telemetry, timer was never started");const yr={cmsId:pe?.cmsId||Cr.oX.Undefined,drsName:pe?.drsName||Cr.oX.Undefined,drsProfileName:pe?.drsProfileName||Cr.oX.Undefined,dliSRVersion:Ge||Cr.oX.Undefined,installedDDVersion:xt||Cr.oX.Undefined,gpuName:sn||Cr.oX.Undefined,captureAction:En,totalMs:Date.now()-this.anselScreenshotStartTime||0,captureMode:Un,gameLaunchMode:ri||Cr.oX.Undefined,screenshotResolution:Mi||Cr.oX.Undefined,superResolutionFactor:Xi||0,stackedFilters:Ui||Cr.oX.Undefined,gridUsed:fr?mt.T8.TRUE:mt.T8.FALSE,panningUsed:xr?mt.T8.TRUE:mt.T8.FALSE},Rr=new mt.cB(yr);this.telemetryService.push(Rr),this.anselScreenshotStartTime=void 0}sendGAssistChatBoxSession(pe){const Ge=new mt.xN(pe);this.telemetryService.push(Ge)}sendGAssistSettingsMenuSession(pe){const Ge=new mt.qM(pe);this.telemetryService.push(Ge)}sendGAssistQueryData(pe){const Ge=new mt.Ym(pe);this.telemetryService.push(Ge)}sendGAssistASRSetupData(pe){const Ge=new mt.zV(pe);this.telemetryService.push(Ge)}sendGAssistASRQueryData(pe){const Ge=new mt.gM(pe);this.telemetryService.push(Ge)}sendGAssistFunctionCallData(pe){if(this.currentDeviceConsent?.technical===Cr.Rg.None){const{functionParams:Ge,...xt}=pe,sn=new mt.oF(xt);this.telemetryService.push(sn)}else{const Ge=new mt.Dk(pe);this.telemetryService.push(Ge)}}static{this.\u0275fac=function(Ge){return new(Ge||ct)(l.KVO(ae.J6),l.KVO(Cr.H0),l.KVO(vl),l.KVO(ae.zW),l.KVO(ae.NZ))}}static{this.\u0275prov=l.jDH({token:ct,factory:ct.\u0275fac,providedIn:null})}}return ct})();var q=s(80583),j=s(3496),te=s(65726),fe=s(10749),Ne=s(26537);let Ye=(()=>{class ct extends je.tg{constructor(pe,Ge,xt,sn){super(pe.getLogger("ExceptionIgoService"),Ge,sn),this.exceptionInfoService=xt,this.exceptionDataList=new Map,this.exceptionEvent$=new q.B7,this.unsubscribeDelayTimer=3e5}handleClientSideException(pe,Ge){this.registerExceptionLimiter(),this.timeLimiter=Ge.exceptionTimeLimiter,this.exceptionEvent$.next(pe)}registerExceptionLimiter(){let pe;this.exceptionEvent$.pipe((0,zi.p)(Ge=>(pe={message:Ge.message,fileName:"",stackFrameSource:"",exceptionTrace:Ge.exceptionString},!this.exceptionMatchFound(Ge.name,pe))),(0,$n.ZZ)(Ge=>"UnsubscriptionError"===Ge?.name?(this.logger.info("Unsubscription error received, delayed",this.unsubscribeDelayTimer),(0,Ct.of)(Ge).pipe((0,te.c)(this.unsubscribeDelayTimer))):(this.logger.info("Not a Unsubscription error received"),(0,Ct.of)(Ge))),(0,Sr.M)(Ge=>{this.exceptionDataList.set(Ge.name,pe),this.sendExceptionInfo(Ge)}),(0,fe.p)(()=>(this.logger.info("Exception rate limit timer started: ",this.timeLimiter),(0,j.O)(this.timeLimiter)))).subscribe(()=>{this.clearExceptionDataList()})}exceptionMatchFound(pe,Ge){let xt=!1;return!(0,Ir.isNil)(this.exceptionDataList)&&!(0,Ir.isEmpty)(this.exceptionDataList)&&this.exceptionDataList.has(pe)&&(xt=(0,Ir.isEqual)(Ge,this.exceptionDataList.get(pe))),xt}clearExceptionDataList(){this.logger.info("clearing exception data list"),this.exceptionDataList.clear()}sendExceptionInfo(pe){this.igoAppConfiguration=this.injector.get(vl),this.exceptionInfoService.sendExceptionInfo(ae.T6.OSC,this.igoAppConfiguration?.build?.version||ae.Qe,pe.name,pe.message,pe.exceptionString).pipe((0,Ri.s)(1)).subscribe(Ge=>{Ge&&this.logger.info("Send Exception Info service called with response:",Ge)},Ge=>{this.logger.error("Error sending Exception Params with error: ",Ge)})}static{this.\u0275fac=function(Ge){return new(Ge||ct)(l.KVO(ae.J6),l.KVO(l.zZn),l.KVO(ae.FK),l.KVO(Ne.bZ))}}static{this.\u0275prov=l.jDH({token:ct,factory:ct.\u0275fac})}}return ct})();var gt=s(25172);s(88058);let on=(()=>{class ct{static{this.\u0275fac=function(Ge){return new(Ge||ct)}}static{this.\u0275mod=l.$C({type:ct,bootstrap:[Oi]})}static{this.\u0275inj=l.G2t({providers:[{provide:l.zcH,useClass:Ye},{provide:Kt.S,useClass:de},{provide:gt.ry,useValue:{mandatoryModuleNames:[],optionalModulesNames:[]}},ii],imports:[n.Bb,tn,Rn.q1,Xn.i,(0,ae.BY)(),ae._N.configure(Vs),Ho.U,lc,Ws.G,Os,[ss]]})}}return ct})();Vs.production&&(0,l.SmG)(),n.sG().bootstrapModule(on).catch(ct=>console.log(ct))},50961:function(Bt,z,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(Be,Xe,He,Me){void 0===Me&&(Me=He);var Q=Object.getOwnPropertyDescriptor(Xe,He);(!Q||("get"in Q?!Xe.__esModule:Q.writable||Q.configurable))&&(Q={enumerable:!0,get:function(){return Xe[He]}}),Object.defineProperty(Be,Me,Q)}:function(Be,Xe,He,Me){void 0===Me&&(Me=He),Be[Me]=Xe[He]}),l=this&&this.__exportStar||function(Be,Xe){for(var He in Be)"default"!==He&&!Object.prototype.hasOwnProperty.call(Xe,He)&&n(Xe,Be,He)};Object.defineProperty(z,"__esModule",{value:!0}),z.ClientModeSelection=z.LogLevel=z.ModeSupport=z.VsyncType=z.SelectKind=z.NetworkType=z.Profile=void 0;const d=s(20701),v=s(20124);l(s(20701),z);var Be,S=s(20124);Object.defineProperty(z,"Profile",{enumerable:!0,get:function(){return S.Profile}}),(Be=z.NetworkType||(z.NetworkType={}))[Be.OTHER=0]="OTHER",Be[Be.ETHERNET=1]="ETHERNET",Be[Be.WIFI2_4=2]="WIFI2_4",Be[Be.WIFI5_0=3]="WIFI5_0",function(Be){Be[Be.STREAM=0]="STREAM",Be[Be.DISPLAY=1]="DISPLAY"}(z.SelectKind||(z.SelectKind={})),function(Be){Be[Be.OFF=0]="OFF",Be[Be.ON=1]="ON",Be[Be.ADAPTIVE=2]="ADAPTIVE"}(z.VsyncType||(z.VsyncType={})),function(Be){Be[Be.UNSUPPORTED=0]="UNSUPPORTED",Be[Be.PARTIALLY_SUPPORTED=1]="PARTIALLY_SUPPORTED",Be[Be.SUPPORTED=2]="SUPPORTED"}(z.ModeSupport||(z.ModeSupport={})),function(Be){Be.DEBUG="d",Be.INFO="i",Be.WARNING="w"}(z.LogLevel||(z.LogLevel={}));const a=1;function m(Be,Xe,He){return{width:Be,height:Xe,fps:He}}function M(Be,Xe,He){return He.map(Me=>m(Be,Xe,Me))}function D(Be){return Be.width*Be.height}function V(Be,Xe){const He={...Xe};if(!Be.scaleFactor)return He;const A=Math.min(Be.width/Xe.width,Be.height/Xe.height);return He.scaleFactor=Math.max(100,Math.round(Be.scaleFactor/A)),He}function N(Be){return void 0!==Be&&!!Be.width&&!!Be.height&&!!Be.fps}function L(Be,Xe){var He;return!!Xe.features.hdr&&!(null===(He=Be.desiredFeatures)||void 0===He||!He.hdr)}function g(Be){var Xe,He;if(null!==(Xe=Be.features.vsyncTypes)&&void 0!==Xe&&Xe.length)return Be.features.vsyncTypes;switch(null!==(He=Be.features.vsync)&&void 0!==He?He:0){case 0:return[1];case 1:return[0,1];case 2:return[0,1,2];default:return[a]}}function ie(Be,Xe,He,Me,Q){var A,me;const ne=function E(Be,Xe){var He,Me,Q;const A=g(Xe);return null!==(Q=function R(Be){switch(Be){case 0:return[0,2,1];case 1:return[1,2,0];case 2:return[2,1,0];default:return[a]}}(null!==(Me=null===(He=Be.desiredFeatures)||void 0===He?void 0:He.vsync)&&void 0!==Me?Me:a).find(ne=>A.includes(ne)))&&void 0!==Q?Q:a}(Be,Xe),G=function B(Be,Xe){var He,Me;const Q=Xe.features.audioChannelCount||2,A=null!==(Me=null===(He=Be.desiredFeatures)||void 0===He?void 0:He.audioChannelCount)&&void 0!==Me?Me:Q;return Math.min(Q,A)}(Be,Xe),W=function X(Be,Xe){var He,Me;const Q=Xe.features.sdrBitDepth||Xe.features.bitDepth||8,A=null!==(Me=null===(He=Be.desiredFeatures)||void 0===He?void 0:He.bitDepth)&&void 0!==Me?Me:Q;return Math.min(Q,A)}(Be,Xe),$=function H(Be,Xe,He){var Me;return!!Xe.features.cloudGsync&&He.fps>=(Xe.features.minimumFpsForCloudGsync||0)&&!(null===(Me=Be.desiredFeatures)||void 0===Me||!Me.cloudGsync)}(Be,Xe,He),le=function J(Be,Xe,He){var Me,Q,A;const me=!(null!==(Q=null===(Me=Be.desiredFeatures)||void 0===Me?void 0:Me.hdr10PlusGaming)&&void 0!==Q&&!Q);return He&&!(null===(A=Xe.features.hdr10PlusGamingData)||void 0===A||!A.version)&&me}(Be,Xe,Me),Pe=function re(Be,Xe,He,Me){var Q;return(Me||He.fps>=(Xe.features.minimumFpsForReflexWithoutVrr||240))&&!!Xe.features.reflex&&!(null===(Q=Be.desiredFeatures)||void 0===Q||!Q.reflex)}(Be,Xe,He,$);return{vsync:ne,vvsync:!!Xe.features.vvsync&&!(null===(A=Be.desiredFeatures)||void 0===A||!A.vvsync),hdr:Me,reflex:Pe,audioChannelCount:G,bitDepth:W,cloudGsync:$,l4s:!!Xe.features.l4s&&!(null===(me=Be.desiredFeatures)||void 0===me||!me.l4s),hdr10PlusGaming:le,profile:Q}}function ve(Be){return Be.map(ue).join(", ")}function ue(Be){return`${Be.width}x${Be.height}@${Be.fps}`}function se(Be){switch(Be){case d.ClientStreamingQualityMode.BALANCED:return 1;case d.ClientStreamingQualityMode.COMPETITIVE:return 2;case d.ClientStreamingQualityMode.DATA_SAVER:return 3;default:return}}function Z(Be){return m(Be.widthInPixels,Be.heightInPixels,Be.framesPerSecond)}function Se(Be){switch(Be){case"STEREO":default:return 2;case"UP_TO_5_1_SURROUND_PCM":return 6;case"UP_TO_7_1_SURROUND_PCM":return 8}}z.ClientModeSelection=class c{constructor(Xe){if(this.config={},Xe.length){const{params:He}=JSON.parse(Xe);if(He)for(const Me of He.filter(Q=>"clientModeSelection"===Q.name))this.config=Object.assign(this.config,Me.value),this.config.profileOverrides&&(this.config.profileOverrides=new Map(Object.entries(this.config.profileOverrides).filter(([Q])=>void 0!==(0,v.parseProfile)(Q)).map(([Q,A])=>[(0,v.parseProfile)(Q),A])))}}selectModeWithProfile(Xe,He,Me,Q){if(Me=this.fillDefaults(Me,Q),Xe=m(Xe.width,Xe.height,Xe.fps),0===Q){const me=L(Me,He);let ne=Xe;return Me.enableDpiScaling&&(ne=V(He.displayMode,Xe)),{selectedVideoMode:ne,selectedEncodeMode:this.selectEncodeMode(He,Xe),selectedFeatures:ie(Me,He,Xe,me,Q)}}let A;return A=2!==Q?[{field:"aspect",dir:"asc"},{field:Me.preferFpsOverResolution?"fps":"pixel-count",dir:"asc"},{field:Me.preferFpsOverResolution?"pixel-count":"fps",dir:"asc"}]:[{field:"fps-abs",dir:"desc"},{field:"aspect",dir:"asc"},{field:"pixel-count",dir:"asc"}],this.selectModeWithPriorityImpl(Xe,He,Me,A,Q)}selectModeWithPriority(Xe,He,Me,Q){return Me=this.fillDefaults(Me),this.selectModeWithPriorityImpl(Xe,He,Me,Q)}filterModes(Xe,He,Me){const Q=[];for(const A of Xe)for(const me of He)if(Me??1){if(D(A)<=D(me)&&A.fps<=me.fps){Q.push(A);break}}else if(A.width<=me.width&&A.height<=me.height&&A.fps<=me.fps){Q.push(A);break}return Q}sortModes(Xe,He,Me,Q){const A=D(He),me=He.width/He.height,ne=Q??this.getConfigOrDefault("aspectRatioDiffThreshold",.05);return Xe.map(W=>W).sort((W,$)=>{for(const le of Me)switch(le.field){case"aspect":{const Pe=Math.abs(W.width/W.height-me)-Math.abs($.width/$.height-me);if(Math.abs(Pe)>ne)return"asc"===le.dir?Pe:-Pe;break}case"fps-abs":{const Pe=W.fps-$.fps;if(0!==Pe)return"asc"===le.dir?Pe:-Pe;break}case"fps":{const Pe=Math.abs(W.fps-He.fps)-Math.abs($.fps-He.fps);if(0!==Pe)return"asc"===le.dir?Pe:-Pe;break}case"pixel-count-abs":{const Pe=D(W)-D($);if(0!==Pe)return"asc"===le.dir?Pe:-Pe;break}case"pixel-count":{const Pe=Math.abs(D(W)-A)-Math.abs(D($)-A);if(0!==Pe)return"asc"===le.dir?Pe:-Pe;break}}return 0})}parseSubscription(Xe,He){var Me,Q;const A=Xe.resolutions.filter(G=>G.isEntitled).map(Z),me={bitDepth:8,audioChannelCount:2};for(const G of Xe.features)switch(G.key){case d.SubscriptionFeatureMetadataKey.HDR_ENABLED:me.hdr="true"===G.textValue;break;case d.SubscriptionFeatureMetadataKey.SUPPORTED_AUDIO_FORMATS:me.audioChannelCount=Se(G.textValue);break;case d.SubscriptionFeatureMetadataKey.ENABLED_REFLEX:me.reflex="true"===G.textValue;break;case d.SubscriptionFeatureMetadataKey.BIT_DEPTH:break;case d.SubscriptionFeatureMetadataKey.CLOUD_GSYNC:me.cloudGsync="true"===G.textValue;break;case d.SubscriptionFeatureMetadataKey.ENABLED_L4S:me.l4s="true"===G.textValue}const ne=new Map;for(const G of He){const W=se(G.clientStreamingQualityMode);if(void 0===W)continue;let $=Z(G.resolution);(3===W||2===W)&&this.getConfigOrDefault("fixDataSaverCompetitive1280",!0)&&1280===$.width&&720===$.height&&(this.log("i","Overriding competitive and data saver desired resolutions to 1280x800"),$=m(1280,800,$.fps));const le={...me};for(const Pe of G.features)switch(Pe.key){case d.StreamingQualityModeFeatureMetadataKey.PROFILE_HDR:le.hdr="true"===Pe.textValue;break;case d.StreamingQualityModeFeatureMetadataKey.PROFILE_REFLEX:le.reflex="true"===Pe.textValue;break;case d.StreamingQualityModeFeatureMetadataKey.PROFILE_VSYNC:le.vsync=parseInt(null!==(Me=Pe.textValue)&&void 0!==Me?Me:"0",10);break;case d.StreamingQualityModeFeatureMetadataKey.PROFILE_CLOUD_GSYNC:le.cloudGsync="true"===Pe.textValue;break;case d.StreamingQualityModeFeatureMetadataKey.PROFILE_L4S:le.l4s="true"===Pe.textValue;break;case d.StreamingQualityModeFeatureMetadataKey.PROFILE_BIT_DEPTH:le.bitDepth=parseInt(null!==(Q=Pe.textValue)&&void 0!==Q?Q:"8",10)}ne.set(W,{options:{supportedModes:A,desiredFeatures:le},desired:$}),1===W&&ne.set(0,{options:{supportedModes:A,desiredFeatures:{...le}},desired:{...$}})}return ne.has(0)||ne.set(0,{options:{supportedModes:A,desiredFeatures:me}}),ne}getDefaultModes(){return[M(3840,2160,[120,60,30]),M(3456,2160,[120,60,30]),M(3840,1600,[120,60,30]),M(3440,1440,[120,60,30]),M(3840,1080,[120,60,30]),M(2560,1600,[120,60,30]),M(2560,1440,[120,60,30]),M(2560,1080,[120,60,30]),M(1920,1200,[240,120,60,30]),M(1920,1080,[240,120,60,30]),M(1600,1200,[120,60,30]),M(1680,1050,[120,60,30]),M(1600,900,[120,60,30]),M(1280,1024,[120,60,30]),M(1440,900,[120,60,30]),M(1680,720,[120,60,30]),M(1366,768,[120,60,30]),M(1280,800,[120,60,30]),M(1112,834,[120,60,30]),M(1280,720,[120,60,30]),M(1376,640,[120,60,30]),M(1024,768,[120,60,30])].flat(1)}deserializeDeviceCapabilities(Xe){return JSON.parse(Xe)}serializeSelectResult(Xe){var He;const{selectedVideoMode:Me,selectedFeatures:Q}=Xe,A=[{widthInPixels:Me.width,heightInPixels:Me.height,framesPerSecond:Me.fps,sdrHdrMode:Q.hdr?1:0,dpi:null!==(He=Me.scaleFactor)&&void 0!==He?He:0}],me=Q.bitDepth<=8?0:1,ne=function Ce(Be){switch(Be){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return}}(Q.profile),G={bitDepth:me,cloudGsync:Q.cloudGsync,reflex:Q.reflex,enabledL4S:Q.l4s,profile:ne};let W;W=Q.audioChannelCount>=8?3:Q.audioChannelCount>=6?2:1;const $={...Xe,clientRequestMonitorSettings:A,requestedStreamingFeatures:G,requestedAudioFormat:W};return JSON.stringify($)}getModeSupport(Xe,He){var Me,Q;return Xe.maxSupportedModes||Xe.maxPartiallySupportedModes?this.isModeInSupportedList(null!==(Me=Xe.maxSupportedModes)&&void 0!==Me?Me:[],He)?2:this.isModeInSupportedList(null!==(Q=Xe.maxPartiallySupportedModes)&&void 0!==Q?Q:[],He)?1:0:(this.log("w","getModeSupport: Max supported modes weren't provided, assuming mode isn't supported"),0)}isModeSupported(Xe,He){return 0!==this.getModeSupport(Xe,He)}isResolutionSupported(Xe,He,Me){return this.isModeSupported(Xe,m(He,Me,1))}isFpsSupported(Xe,He){return this.isModeSupported(Xe,m(1,1,He))}getSupportedVsyncTypes(Xe){return g(Xe)}setLogCallback(Xe){this.logCallback=Xe}setTelemetryCallback(Xe){this.telemetryCallback=Xe}selectModeWithPriorityImpl(Xe,He,Me,Q,A){var me,ne,G;let W=Me.networkMaxMode;if(1===A&&this.getConfigOrDefault("overrideBalanced240fps",!0)){const Pe=D(m(3440,1440,0));D(Xe)>=Pe&&Xe.fps>=120&&(Xe=m(Xe.width,Xe.height,240),this.log("i","Overrode desired fps to 240"),W&&120===W.fps&&(W=m(W.width,W.height,240),this.log("i","Overrode network max fps to 240")))}2!==A&&this.getConfigOrDefault("useNetworkType",!0,A)&&(2===Me.networkType||3===Me.networkType)&&(Xe=m(Xe.width,Xe.height,Math.min(Xe.fps,60)),this.log("d","Limited mode to 60fps because of WIFI"));const $=L(Me,He);let le;if(null!==(me=Me.supportedModes)&&void 0!==me&&me.length){this.log("d",`Selecting mode based on supported modes: ${ve(Me.supportedModes)}`);let Pe=this.getTargetMode(He,Me);2===A&&(Pe=function T(Be,Xe,He,Me){let Q=function I(Be,Xe){const He=D(Be),Me=D(Xe);return Math.sqrt(Me/He)}(Be,Xe);return He&&(Q=Math.max(He,Q)),Me&&(Q=Math.min(Me,Q)),m(Be.width*Q,Be.height*Q,Xe.fps)}(Pe,Xe));let Fe=this.sortModes(Me.supportedModes,Pe,Q,Me.aspectRatioDiffThreshold);const At=(Ze,Qe,Ve)=>{const nt=Fe;Fe=this.filterModes(nt,Qe,Ve);const Ot=nt.length-Fe.length;Ot>0&&this.log("d",`Filtered out ${Ot} modes because of ${Ze} (${ve(Qe)})`)},Le=null===(ne=He.maxSupportedModes)||void 0===ne?void 0:ne.filter(Ze=>void 0===Ze.hdr||Ze.hdr===$);if(Le?.length&&At("device max supported modes",Le,this.getUseMaxSupportedModesPixelCount(A)),At("desired mode",[Xe]),1===A&&1!==Me.selectKind&&W&&this.getConfigOrDefault("useNetworkMaxMode",!0,A)&&At("network max mode",[W]),(!Me.preferLargerResolutionIfCloser||N(He.maxAutoMode))&&At("device target resolution",[m(Pe.width,Pe.height,1/0)]),At("device target fps",[m(1/0,1/0,Pe.fps+(null!==(G=Me.largerFpsThreshold)&&void 0!==G?G:1))]),Fe.length)le=Fe[0];else{this.log("i","No modes fit the filtering criteria, falling back to the nearest supported mode");const Ze=Q.map(Qe=>{switch(Qe.field){case"aspect":return Qe;case"pixel-count":return{field:"pixel-count-abs",dir:"asc"};case"fps":return{field:"fps-abs",dir:"asc"};case"pixel-count-abs":case"fps-abs":return{field:Qe.field,dir:"asc"}}});Fe=this.sortModes(Me.supportedModes,Pe,Ze),le=Fe[0]}this.log("i",`Selected mode: ${ue(le)}`)}else le=Xe,this.log("i",`No supported modes provided, selected mode: ${ue(le)}`);return A=A??0,Me.enableDpiScaling&&(le=V(He.displayMode,le)),{selectedVideoMode:le,selectedEncodeMode:this.selectEncodeMode(He,le),selectedFeatures:ie(Me,He,le,$,A)}}selectEncodeMode(Xe,He){var Me;if(null===(Me=Xe.maxEncodeModes)||void 0===Me||!Me.length)return m(0,0,0);const Q=[m(3440,1440,120),m(0,0,240)];for(const ne of Q)if(D(He)>=D(ne)&&He.fps>=ne.fps)return this.log("i",`Disabling encode because selected video mode is larger than ${ue(ne)}`),m(0,0,0);const me=Xe.maxEncodeModes.map(ne=>{const $=Math.max(He.width/ne.width,He.height/ne.height,1);return{width:Math.round(He.width/$),height:Math.round(He.height/$),fps:Math.min(He.fps,ne.fps),scale:$}}).sort((ne,G)=>{const W=G.fps-ne.fps;return 0!==W?W:ne.scale-G.scale})[0];return m(me.width,me.height,me.fps)}fillDefaults(Xe,He){var Me,Q,A,me,ne,G;He=He??0;const W=Object.assign({},this.config);return Object.assign(W,null!==(Q=null===(Me=this.config.profileOverrides)||void 0===Me?void 0:Me.get(He))&&void 0!==Q?Q:{}),{preferFpsOverResolution:null!==(A=W.preferFpsOverResolution)&&void 0!==A&&A,preferLargerResolutionIfCloser:null===(me=W.preferLargerResolutionIfCloser)||void 0===me||me,largerFpsThreshold:W.largerFpsThreshold,usePhysicalResolution:null!==(ne=W.usePhysicalResolution)&&void 0!==ne&&ne,enableDpiScaling:null!==(G=W.enableDpiScaling)&&void 0!==G&&G,selectKind:0,...Xe}}getTargetMode(Xe,He){return N(Xe.maxAutoMode)?Xe.maxAutoMode:He.usePhysicalResolution?Xe.displayMode:function U(Be){const Xe={...Be};return Be.scaleFactor&&100!==Be.scaleFactor&&(Xe.width/=Be.scaleFactor/100,Xe.height/=Be.scaleFactor/100,Xe.scaleFactor=void 0),Xe}(Xe.displayMode)}isModeInSupportedList(Xe,He){return this.getUseMaxSupportedModesPixelCount()?Xe.some(Me=>D(Me)>=D(He)&&Me.fps>=He.fps):Xe.some(Me=>Me.width>=He.width&&Me.height>=He.height&&Me.fps>=He.fps)}getUseMaxSupportedModesPixelCount(Xe){return this.getConfigOrDefault("useMaxSupportedModesPixelCount",!0,Xe)}getConfigOrDefault(Xe,He,Me){var Q,A;const me=null!==(Q=this.config[Xe])&&void 0!==Q?Q:He;return Me&&null!==(A=this.getProfileConfigOverride(Me,Xe))&&void 0!==A?A:me}getProfileConfigOverride(Xe,He){var Me,Q;return null===(Q=null===(Me=this.config.profileOverrides)||void 0===Me?void 0:Me.get(Xe))||void 0===Q?void 0:Q[He]}log(Xe,He){var Me;null===(Me=this.logCallback)||void 0===Me||Me.call(this,{level:Xe,tag:"mode-selection",message:He})}}},20701:(Bt,z)=>{"use strict";var d;Object.defineProperty(z,"__esModule",{value:!0}),z.SubscriptionFeatureMetadataKey=z.StreamingQualityModeFeatureMetadataKey=z.ClientStreamingQualityMode=void 0,(d=z.ClientStreamingQualityMode||(z.ClientStreamingQualityMode={})).UNKNOWN="UNKNOWN",d.BALANCED="BALANCED",d.DATA_SAVER="DATA_SAVER",d.COMPETITIVE="COMPETITIVE",function(d){d.UNKNOWN="UNKNOWN",d.PROFILE_VSYNC="PROFILE_VSYNC",d.PROFILE_ADJUST_FOR_NETWORK="PROFILE_ADJUST_FOR_NETWORK",d.PROFILE_HDR="PROFILE_HDR",d.PROFILE_REFLEX="PROFILE_REFLEX",d.PROFILE_CLOUD_GSYNC="PROFILE_CLOUD_GSYNC",d.PROFILE_L4S="PROFILE_L4S",d.PROFILE_BIT_DEPTH="PROFILE_BIT_DEPTH"}(z.StreamingQualityModeFeatureMetadataKey||(z.StreamingQualityModeFeatureMetadataKey={})),function(d){d.UNKNOWN="UNKNOWN",d.RTX_ENABLED="RTX_ENABLED",d.HDR_ENABLED="HDR_ENABLED",d.SUPPORTED_AUDIO_FORMATS="SUPPORTED_AUDIO_FORMATS",d.IN_GAME_SETTINGS_PERSISTENCE_ENABLED="IN_GAME_SETTINGS_PERSISTENCE_ENABLED",d.ENABLED_FPS="ENABLED_FPS",d.ENABLED_DEBUG_TOOLS="ENABLED_DEBUG_TOOLS",d.ENABLED_REFLEX="ENABLED_REFLEX",d.BIT_DEPTH="BIT_DEPTH",d.CLOUD_GSYNC="CLOUD_GSYNC",d.ENABLED_L4S="ENABLED_L4S"}(z.SubscriptionFeatureMetadataKey||(z.SubscriptionFeatureMetadataKey={}))},20124:(Bt,z)=>{"use strict";var l;Object.defineProperty(z,"__esModule",{value:!0}),z.parseProfile=z.Profile=void 0,(l=z.Profile||(z.Profile={}))[l.CUSTOM=0]="CUSTOM",l[l.BALANCED=1]="BALANCED",l[l.COMPETITIVE=2]="COMPETITIVE",l[l.DATA_SAVER=3]="DATA_SAVER",l[l.CINEMATIC=4]="CINEMATIC",z.parseProfile=function n(l){switch(l){case"BALANCED":return 1;case"CUSTOM":return 0;case"COMPETITIVE":return 2;case"DATASAVER":return 3;case"CINEMATIC":return 4;default:return}}},62879:Bt=>{(()=>{var z={306:
/*!***********************************************!*\
!*** ../networktest-core/dist/networktest.js ***!
\***********************************************/()=>{var d={V:"NetworkTest_Http_Event",U:"NetworkTest_Exception_Event"};function v(G,W,$,le,Pe,Fe,At,Le,Et){return{name:d.U,W:"technical",networkSessionId:G,message:W,stacktrace:$,filename:le,lineno:Pe,colno:Fe,handled:At?"TRUE":"FALSE",category:Et,zoneAddress:Le}}function S(G,W,$){return{name:d.V,W:"functional",url:G,verb:W,statusCode:"0",requestStatusCode:"",networkSessionId:$,requestId:"",serverId:"",callDuration:0}}var y={u:{},O:{type:"UNKNOWN"},T:!1,X:!1,B:!0,F:!1};function f(G,W,$,le,Pe){le=`${le}${function _(...G){return G.length?`##${JSON.stringify(G)}`:""}(...Pe)}`,W={timeStamp:P(),logLevel:W,logtag:$,logstr:le},G.commit(W)}function P(){var G=new Date;const W=(le,Pe,Fe)=>{if(0<(Pe-=le.length)){let At="";for(let Le=0;Le<Pe;Le++)At+=Fe;return At+le}return le};return W(G.getFullYear().toString(),4,"0")+"-"+W((G.getMonth()+1).toString(),2,"0")+"-"+W(G.getDate().toString(),2,"0")+" "+W(G.getHours().toString(),2,"0")+":"+W(G.getMinutes().toString(),2,"0")+":"+W(G.getSeconds().toString(),2,"0")+"."+W(G.getMilliseconds().toString(),3,"0")}var i=new class{constructor(){this.h=null,this.i=()=>{},this.j=(G,W,...$)=>f(this,"DEBUG",G,W,$),this.o=(G,W,...$)=>f(this,"INFO",G,W,$),this.s=(G,W,...$)=>f(this,"WARN",G,W,$),this.l=(G,W,...$)=>f(this,"ERROR",G,W,$),this.m=(G,...W)=>function O(G,...W){return G.replace(/{(\d+)}/g,function($,le){return typeof W[le]<"u"?W[le]:$})}(G,...W)}get d(){return y.F?console.debug.bind(console,"%s DEBUG [%s] %s@@",P()):y.B?this.j:this.i}get w(){return y.F?console.warn.bind(console,"%s WARN [%s] %s@@",P()):y.B?this.s:this.i}get g(){return y.F?console.info.bind(console,"%s INFO [%s] %s@@",P()):y.B?this.o:this.i}get e(){return y.F?console.error.bind(console,"%s ERROR [%s] %s@@",P()):this.l}get format(){return this.m}commit(G){this.h&&this.h.emit("Log",G)}};function r(G){return!!/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(G)}function a(G){var W=1;for(let $=1;$<G;$++)W*=10;return(W=""+Math.floor(Math.random()*W)).padEnd(G,"0")}function c(){return!!window.chrome}function m(){const G=c(),W=window.navigator,$=W.vendor,le=-1<W.userAgent.indexOf("OPR"),Pe=-1<W.userAgent.indexOf("Edge");return!!W.userAgent.match("CriOS")||null!==G&&typeof G<"u"&&"Google Inc."===$&&!1===le&&!1===Pe}function M(){return/^(?!.*chrome).*safari/i.test(navigator.userAgent)}var D={method:"GET",headers:{},body:"",G:0,timeout:0};function I(G,W=D,$){let le=void 0===W.G?1:W.G+1;const Pe=le;let At,Fe=!1,Le=500;const Et=new Promise(($e,Ze)=>{const Qe=nt=>{At=void 0,Ze(nt)},Ve=()=>{if(Fe)Qe({aborted:!0,I:Pe-le-1});else{var nt=new XMLHttpRequest;nt.onreadystatechange=()=>{if(Fe){var It={aborted:!0,I:Pe-le-1};At=void 0,Ze(It)}else 4==nt.readyState&&(le--,0==nt.status?0<le?(i.d("utils","Network error, retries left: "+le),window.setTimeout(Ve,Le),Le+=500):(At=void 0,Ze(It={code:2001,I:Pe-le-1})):0<le&&(504==nt.status||502==nt.status||408==nt.status)?(i.d("utils","Server timeout error, retries left: "+le),window.setTimeout(Ve,Le),Le+=500):(At=void 0,$e(It={status:nt.status,data:nt.responseText,I:Pe-le-1})))};var Ot=()=>{var It,We;nt.open(null!==(It=W.method)&&void 0!==It?It:"GET",G,!0),W.timeout&&(nt.timeout=W.timeout),void 0!==W.headers&&Object.keys(W.headers).forEach(xe=>{nt.setRequestHeader(xe,W.headers[xe])}),navigator.onLine?(At=()=>nt.abort(),nt.send(null!==(We=W.body)&&void 0!==We?We:"")):Qe({code:2002,description:"No network",I:Pe-le-1})},at=(It,We)=>{We&&(W.headers=W.headers||{},W.headers.Authorization=It+We),Ot()};if($)switch($.type){case 0:void 0!==$.authTokenCallback&&$.authTokenCallback?$.authTokenCallback().then(It=>{at("Basic ",It)},()=>{At=void 0,Ze({code:2003,description:"Auth token not updated",I:Pe-le-1})}):Ot();break;case 1:at("GFNJWT ",$.token);break;case 2:at("GFNPartnerJWT ",$.token);break;default:Qe({code:2004,description:"Invalid Auth type provided"})}else Ot()}};Ve()});return Object.assign(Et,{abort:()=>{Fe=!0,At?.()}})}let U,T;function V(){if(!U){let G="Unknown",W="Unknown";try{if(navigator.platform.includes("Win")){G="Windows";let $=navigator.userAgent;switch($.substring($.indexOf("(")+1,$.indexOf(";"))){case"Win16":W="3.11";break;case"Windows 95":case"Win95":case"Windows_95":W="95";break;case"Windows 98":case"Win98":W="98";break;case"Windows NT 5.0":case"Windows 2000":W="2000";break;case"Windows NT 5.1":case"Windows XP":W="XP";break;case"Windows NT 5.2":W="Server 2003";break;case"Windows NT 6.0":W="Vista";break;case"Windows NT 6.1":W="7";break;case"Windows NT 6.2":case"WOW64":W="8";break;case"Windows 10.0":case"Windows NT 10.0":W="10";break;case"Windows NT 4.0":case"WinNT4.0":case"WinNT":case"Windows NT":W="NT 4.0";break;case"Windows ME":W="ME"}}else if(navigator.platform.includes("Mac")){G="MacOSX";let $=navigator.userAgent,le=$.substring(0,$.indexOf(")"));W=le.substring(le.lastIndexOf(" ")+1)}else if(navigator.userAgent.includes("CrOS")){G="ChromeOS";let $=navigator.userAgent,le=$.substring(0,$.indexOf(")"));W=le.substring(le.lastIndexOf(" ")+1)}else navigator.platform.includes("Linux")&&(G="Linux")}catch($){i.e("utils","Exception in getting useragent: ",$)}U={name:G,version:W}}return U}function N(){if(!T)e:{let G="Unknown",W="Unknown";try{if(m()){G="Chrome";const $=navigator.userAgent.match(/Chrome\/([^ ]*)/);$&&(W=$[1])}else if(M()){G="Safari";const $=navigator.userAgent.match(/Version\/([^ ]*).*?Safari\/([^ ]*)/);if($){W=$[1],T={name:G,version:W,webkit:$[2]};break e}}}catch($){i.e("utils","Exception in getting browser: ",$)}T={name:G,version:W}}return T}function L(){const G=V(),W=N();return"GFN-PC/1.0 (WebRTC) NetworkTest/0.0.51 "+G.name+"/"+G.version+" "+W.name+"/"+W.version+" (master-8926289)"}function E(G,W){for(let $=0;$<W.length&&$<G.length;++$){const le=G[$],Pe=W[$];if(le>Pe)break;if(le<Pe)return!1}return!0}function g(G){let W=1e3;return 0<G&&4095>G&&(W=1e3+G),W}function R(G,W,$,le,Pe,Fe,At,Le){G.g.emit("NetworkTestAnalytics",v(G.sessionId,W,$,le,Pe,Fe,At,G.zone,Le??""))}var B=class{constructor(G,W,$){this.sessionId=G,this.g=W,this.zone=$}};function H(G,W){if(!m())return G;let $=G.split("\r\n"),le=-1;for(let Pe=0;Pe<$.length;Pe++)if(0===$[Pe].indexOf("m=video")){le=Pe;break}if(-1===le)return console.debug("Could not find m=","video"),G;for(console.debug("Found m=","video"," at line:",le),le++;0===$[le].indexOf("i=")||0===$[le].indexOf("c=");)le++;return 0===$[le].indexOf("b")&&le++,(G=$.slice(0,le)).push("a=fmtp:96 x-google-max-bitrate="+W),G.push("a=fmtp:96 x-google-min-bitrate=3000"),G.push("a=fmtp:96 x-google-start-bitrate=3000"),G.concat($.slice(le,$.length)).join("\r\n")}function re(G){let W=G.v+"/sign_in?peer_id="+G.name;i.g("ntrtcclient","sign in url: "+W);let $=S(W,"GET",G.h.sessionId);$.serverId=G.h.zone;let Pe,le=performance.now();const Fe=Et=>{G.D=void 0,$.statusCode=String(Et),Pe=performance.now(),$.callDuration=Math.round(Pe-le),G.m.emit("NetworkTestAnalytics",$)},At=(Et,$e,Ze)=>{Fe(Et),i.e("ntrtcclient","Sign in request failed. status:"+Et+" errorCode "+$e),ue(G,{code:$e,description:"Netsession sign in request failed with error",errorDetail:Ze??"SIGNIN_FAILED"})};let Le=1e4;y.u.signInTimeout&&0<y.u.signInTimeout&&(Le=y.u.signInTimeout,i.g("ntrtcclient","Sign in timeout changed to: "+Le)),G.D=I(W,{method:"GET",headers:G.A,G:3,timeout:Le/4}),G.D.then(Et=>{200===Et.status?(Fe(Et.status),i.d("ntrtcclient","Sign in response: ["+Et.data+"]"),G.id=parseInt(Et.data.split("\n")[0].split(",")[1]),i.d("ntrtcclient","server provided client id: "+G.id),function se(G){G.s=window.setTimeout(()=>{if(G.s=0,!G.H){let W=4e3,$="SIGNALING_TIMEOUT";G.P?G.R?G.S&&(W=4010,$="FIN_FAILED"):(W=4008,$="PEERCONNECTION_FAILED"):(W=4007,$="PEERCONNECTION_FAILED"),ue(G,{code:W,description:"Fail with timeout to run network test",errorDetail:$}),i.e("ntrtcclient","iceCandidateFlag "+G.i)}},3e4)}(G),Z(G)):At(Et.status,g(Et.status))}).catch(Et=>{var $e;(null==Et||!Et.aborted)&&(Et.code?(i.e("ntrtcclient","Sigin request failed with "+Et.code),At(0,Et.code)):(At(0,2005),null!=Et&&Et.stack&&(i.e("ntrtcclient","exception while performing streamer sign in request: "+Et),null===($e=G.j)||void 0===$e||R($e,"exception while performing streamer sign in request",Et.stack,"ntrtcclient.ts",0,0,!0))))})}function ie(G){if(G.H=!0,G.h&&(G.D&&(G.D.abort(),G.D=void 0),G.J&&(G.J.abort(),G.J=null),G.g&&G.g.close(),0!==G.s&&(window.clearTimeout(G.s),G.s=0),0!=G.id)){let W=G.v+"/sign_out?peer_id="+G.id,$=S(W,"GET",G.h.sessionId);$.serverId=G.h.zone;let Pe,le=performance.now();I(W,{headers:G.A}).then(Fe=>{void 0!==Fe.status&&($.statusCode=String(Fe.status)),Pe=performance.now(),$.callDuration=Math.round(Pe-le),G.m.emit("NetworkTestAnalytics",$),200==Fe.status?i.g("ntrtcclient","Successfully signed out from streaming server"):i.e("ntrtcclient","Error during signout from streaming server: "+Fe.status)}).catch(()=>{Pe=performance.now(),$.callDuration=Math.round(Pe-le),G.m.emit("NetworkTestAnalytics",$),i.e("ntrtcclient","Network error while sending the singout request")})}}function ve(G,W){Object.keys(G.A).forEach($=>{W.setRequestHeader($,G.A[$])})}function ue(G,W){G.H||(window.clearInterval(G.N),G.H=!0,0!==G.s&&(window.clearTimeout(G.s),G.s=0),G.m.emit("NetworkTestCompleted",{sessionId:G.h.sessionId,error:W,zone:G.h.zone}),i.e("ntrtcclient","Stopping Stream with error "+W.code))}function Z(G){let W=S("","GET",G.h.sessionId);W.serverId=G.h.zone;let $=performance.now(),le=!1,Pe=!1;const Fe=new XMLHttpRequest;G.J=Fe,Fe.onloadend=()=>{if(!le){if(200==Fe.status){i.d("ntrtcclient","hanging get request succeeded response:\n"+Fe.responseText);var Le=Fe.getResponseHeader("Pragma");i.d("ntrtcclient","peer Id header"+Le),null!=Le&&Le.length?(Le=parseInt(Le))!=G.id&&(i.d("ntrtcclient","* message from remote peer:"+Le),function Se(G,W,$){var le;i.d("ntrtcclient","* handlePeerMessage from remote peer "+W),i.d("ntrtcclient","*[Message] <\n"+$+"\n>");const Pe=Fe=>{i.e("ntrtcclient","handlePeerMessage: failed with errorCode "+Fe.code),Fe.errorDetail="PEERCONNECTION_FAILED",ue(G,Fe)};try{let Fe=JSON.parse($);if(void 0!==Fe.type&&"offer"===Fe.type)(function Xe(G,W){var $;i.d("ntrtcclient","attempting peer connection to: "+W);try{let le={iceServers:[{urls:"stun:stun.gamestream.nvidia.com:19302"}]};i.d("ntrtcclient","* configuration:"+JSON.stringify(le)),i.d("ntrtcclient","* options :"+JSON.stringify({optional:[{DtlsSrtpKeyAgreement:!0},{ha:!0},{fa:!0}]})),G.g=new RTCPeerConnection(le);const Pe=()=>{G.i|=16,!(4&G.i)&&ue(G,{code:4004,errorDetail:"PEERCONNECTION_FAILED"})};G.g.onconnectionstatechange=()=>{if(G.g)switch(i.d("ntrtcclient","pc state: "+G.g.connectionState),G.g.connectionState){case"disconnected":case"failed":Pe()}else i.e("ntrtcclient","pc is null")},G.g.oniceconnectionstatechange=()=>{if(G.g)switch(i.d("ntrtcclient","peer iceConnectionState state: "+G.g.iceConnectionState),G.g.iceConnectionState){case"new":G.i|=1;break;case"checking":G.i|=2;break;case"connected":G.i|=4;break;case"completed":G.i|=8;break;case"failed":Pe();break;case"disconnected":G.i|=32;break;case"closed":G.i|=64,32&G.i&&ue(G,{code:4005,errorDetail:"PEERCONNECTION_FAILED"})}else i.e("ntrtcclient","pc is null")},G.g.ondatachannel=Fe=>{i.d("ntrtcclient","Server created a DataChannel: "+Fe.channel.label),"control_channel"==Fe.channel.label&&(Fe.channel.onopen=()=>{i.g("ntrtcclient","ntrtcclient","Control channel opened"),G.L=Fe.channel;let At=5e3;y.u.finTimeout&&0<y.u.finTimeout&&(At=y.u.finTimeout,i.g("ntrtcclient","fin timeout changed to: "+At)),window.setTimeout(()=>{var Et,$e,Le={fin:{sessionId:G.h.sessionId,packetsLost:G.o,packetsReceived:G.C}};try{"open"===(null===(Et=G.L)||void 0===Et?void 0:Et.readyState)?G.L.send(JSON.stringify(Le)):(i.w("ntrtcclient","Couldn't send control channel message"),ue(G,{code:4009,errorDetail:"FIN_FAILED"}))}catch(Ze){i.e("ntrtcclient","sendControlMessage exception: "+Ze),G.j&&R(G.j,"sendControlMessage exception",null!==($e=Ze.stack)&&void 0!==$e?$e:"","ntrtcclient.ts",0,0,!0),ue(G,{code:2005,errorDetail:"FIN_FAILED"})}G.S=!0},At),G.N=window.setInterval(()=>function Ce(G){G.g.getReceivers().forEach(function(W){W.getStats().then(function($){$.forEach(function(le){"inbound-rtp"===le.type&&"video"===le.kind&&"inbound-rtp"===le.type&&"video"===le.kind&&(G.o=le.packetsLost,G.C=le.packetsReceived,i.g("ntrtcclient","PLCalc: "+100*G.o/(G.C+G.o)+",L:"+G.o+", R:"+G.C))})})})}(G),500)},Fe.channel.onerror=()=>{G.H||(i.e("ntrtcclient","ntrtcclient","Control channel error"),ue(G,{code:4006,errorDetail:"FIN_FAILED"}))},Fe.channel.onclose=()=>{i.g("ntrtcclient","ntrtcclient","Control channel closed")},Fe.channel.onmessage=At=>{var Le;try{let Et=JSON.parse(At.data);i.d("ntrtcclient","Received message on control channel: "+JSON.stringify(Et)),Et.finAck?(At=Et).finAck&&(G.l.downlinkBandwidth=Math.round(1.15*At.finAck.downlinkBandwidth*100)/100,52428800<G.l.downlinkBandwidth&&(i.g("ntrtcclient","actual downlinkBandwidth: "+G.l.downlinkBandwidth+"ceiled to 52428800"),G.l.downlinkBandwidth=52428800),G.l.packetLoss=100*At.finAck.packetLoss/100,-1!=G.o&&0!=G.C&&(G.l.packetLoss=100*G.o/(G.o+G.C),i.g("ntrtcclient","(PL v1.0) server Reported PL is "+At.finAck.packetLoss+"client reported PL is:"+G.l.packetLoss)),G.l.latency=Math.round(100*At.finAck.latency)/100,G.l.networkTestThreshold=G.h.networkTestThreshold,i.g("ntrtcclient","NetworkTest result: "+JSON.stringify(G.l)),G.m.emit("NetworkTestCompleted",{sessionId:G.h.sessionId,testResult:G.l,zone:G.h.zone}),window.clearInterval(G.N)):i.e("ntrtcclient","Unhandled Message")}catch(Et){i.e("ntrtcclient","ntrtcclient","Error in control_channel message handling: "+Et),G.j&&R(G.j,"Error in control_channel message handling",null!==(Le=Et.stack)&&void 0!==Le?Le:"","ntrtcclient.ts",0,0,!0)}})},m()||G.g.addEventListener("icecandidate",Fe=>{console.trace("* event: icecandidate ----\x3e "),G.g&&G.g.canTrickleIceCandidates&&G.g.onicecandidate&&G.g.onicecandidate(Fe)}),G.g.onicecandidate=Fe=>{i.g("ntrtcclient","* pc.onicecandidate event="+Fe),Fe.candidate?(i.g("ntrtcclient","# pc.onicecandidate "+Fe.candidate.candidate),Be(G,W,JSON.stringify({sdpMLineIndex:Fe.candidate.sdpMLineIndex,sdpMid:Fe.candidate.sdpMid,candidate:Fe.candidate.candidate})),G.P=!0):i.d("ntrtcclient","# End of candidates.")},G.g.ga=()=>{i.g("ntrtcclient","streaming session connecting")},G.g.onopen=()=>{i.g("ntrtcclient","streaming session connected")},G.g.ontrack=Fe=>{i.g("ntrtcclient","Received remote stream:"+Fe.streams[0].id)}}catch(le){i.e("ntrtcclient","Exception in creating peer connection: "+le),G.j&&R(G.j,"Exception in creating peer connection",null!==($=le.stack)&&void 0!==$?$:"","ntrtcclient.ts",0,0,!0)}})(G,W),G.g.setRemoteDescription(new RTCSessionDescription(Fe)).then(()=>{i.d("ntrtcclient","onRemoteSdpSuccess");let At={mandatory:{OfferToReceiveAudio:!0,OfferToReceiveVideo:!0,audio:!0,video:{width:{min:""},height:{min:""},frameRate:{min:""}}}};At.mandatory.video.width.min=G.K.networkTestProfile[0].width.toString(),At.mandatory.video.height.min=G.K.networkTestProfile[0].height.toString(),At.mandatory.video.frameRate.min=G.K.networkTestProfile[0].frameRate.toString(),i.d("ntrtcclient","* mediaConstraints >>> "+JSON.stringify(At)),G.g.createAnswer(At).then(Le=>{i.d("ntrtcclient","* respond to remote peer with an ANSWER");let Et="50000";i.d("ntrtcclient","* setLocalDescription >>> : \n"+Le.sdp),void 0!==Le.sdp&&(Le.sdp=function X(G,W){let $=G.split("\r\n"),le=-1;for(let Pe=0;Pe<$.length;Pe++)if(0===$[Pe].indexOf("m=video")){le=Pe;break}if(-1===le)return console.debug("Could not find m=","video"),G;for(console.debug("Found m=","video"," at line:",le),le++;0===$[le].indexOf("i=")||0===$[le].indexOf("c=");)le++;return 0===$[le].indexOf("b")?(console.debug("Override b=AS: line at line",le),$[le]="b=AS:"+W,$.join("\r\n")):(console.debug("Adding new b line before line",le),(G=$.slice(0,le)).push("b=AS:"+W),(G=G.concat($.slice(le,$.length))).join("\r\n"))}(Le.sdp,Et),m()&&(Le.sdp=H(Le.sdp,Et)),Le.sdp=function J(G){let W=G.split("\r\n"),$=-1;for(var le=0;le<W.length;le++)if(0===W[le].indexOf("m=audio")){$=le;break}if(-1===$)return console.debug("Could not find m=","audio"),G;console.debug("Found m=","audio"," at line:",$),le=W[$].split(" ")[3];for(let Pe=$;Pe<W.length;Pe++)if(0===W[Pe].indexOf("a=fmtp:"+le+" ")){$=Pe;break}return $===W.length?(console.debug("Could not find fmtp for m=","audio",": ",le),G):(G=W[$],console.debug("Found fmtp=",G),G+=";stereo=1",console.debug("Modified fmtp = "+G),(le=W.slice(0,$-1)).push(G),(le=le.concat(W.slice($))).join("\r\n"))}(Le.sdp),i.d("ntrtcclient","* >>> MODIFIED SDP : \n"+Le.sdp)),G.g.setLocalDescription(Le).then(()=>{i.d("ntrtcclient","setLocalDescription succeeded"),void 0===Le.sdp||m()||(Le.sdp=H(Le.sdp,Et));let $e=JSON.stringify(Le);Be(G,W,$e)}).catch($e=>{i.e("ntrtcclient","setLocalDescription failed. Error: "+$e),Pe({code:4001})})}).catch(Le=>{i.d("ntrtcclient","Create answer error:",Le)})}).catch(At=>{i.e("ntrtcclient","onRemoteSdpError: ",At),Pe({code:4002})});else if(Fe.candidate){i.d("ntrtcclient","Adding ICE candidate ");let At=function He(G,W){if(i.d("ntrtcclient","checking for ice candidate update"),""!=G.M){for((W=W.split(" "))[0]="candidate:"+a(10),W[3]=W[3].slice(0,4)+a(6),W[4]=G.M,G=6;G<W.length-1;G++)"network-id"===W[G]&&(W[G+1]+="1");return G=W.join(" "),i.g("ntrtcclient","Ice candidate overridden to: "+G),G}return i.d("ntrtcclient","using server provided ice candidates"),W}(G,Fe.candidate);i.d("ntrtcclient","updated ice candidate: "+At);let Le=new RTCIceCandidate({sdpMLineIndex:Fe.sdpMLineIndex,candidate:At});G.g.addIceCandidate(Le).then(()=>{i.d("ntrtcclient","add ice candidate succeeded"),G.R=!0}).catch(Et=>{i.e("ntrtcclient","add ice candidate failed "+Et)}),i.d("ntrtcclient","add ice candidate --")}}catch(Fe){"BYE"===$?Pe({code:4003}):(i.e("ntrtcclient","Invalid handlePeerMessage Response: "+Fe),G.j&&R(G.j,"Invalid handlePeerMessage Response",null!==(le=Fe.stack)&&void 0!==le?le:"","ntrtcclient.ts",0,0,!0))}}(G,Le,Fe.responseText)):i.e("ntrtcclient","hanging get response doesnt have peer id")}else Pe||504===Fe.status||(i.e("ntrtcclient",0===Fe.status?"hanging get request failed without a response":"hanging get request failed. status: "+Fe.status),W.statusCode=String(Fe.status),W.callDuration=Math.round(performance.now()-$),G.m.emit("NetworkTestAnalytics",W));window.setTimeout(()=>Z(G),Pe||200===Fe.status||504===Fe.status?0:2e3)}},Fe.onabort=()=>{le=!0},Fe.ontimeout=()=>{Pe=!0};let At=G.v+"/wait?peer_id="+G.id;W.url=At,i.d("ntrtcclient","performing hanging get: "+At),Fe.open("GET",At),Fe.timeout=1e4,ve(G,Fe),Fe.send()}function Be(G,W,$){var le;i.d("ntrtcclient","* sendDataToPeer - remote peer "+W+" data to send <\n"+$+"\n>");let Pe=S("","POST",G.h.sessionId);Pe.serverId=G.h.zone;let At,Fe=performance.now();try{let Le=G.v+"/message?peer_id="+G.id+"&to="+W;Pe.url=Le;let Et=new XMLHttpRequest;Et.onreadystatechange=()=>{4==Et.readyState&&(Pe.statusCode=String(Et.status),At=performance.now(),Pe.callDuration=Math.round(At-Fe),G.m.emit("NetworkTestAnalytics",Pe),200==Et.status?i.g("ntrtcclient","successfully sent message to peer: "+W):i.e("ntrtcclient","failed to send message to peer: "+W))},Et.open("POST",Le,!0),Et.setRequestHeader("Content-Type","text/plain"),ve(G,Et),Et.send($)}catch(Le){i.e("ntrtcclient","send to peer error: "+Le),G.j&&R(G.j,"send to peer error",null!==(le=Le.stack)&&void 0!==le?le:"","ntrtcclient.ts",0,0,!0)}}var Me=class{constructor(G){this.S=this.P=this.R=!1,this.m=G,this.name="peer-"+a(10),i.d("ntrtcclient","Generated stream client name is: "+this.name),this.id=0,this.h=null,this.D=void 0,this.J=null,this.v="",this.L=this.g=null,this.H=!1,this.i=0,this.A={},this.j=null,this.l={downlinkBandwidth:0,packetLoss:0,latency:0,networkTestThreshold:{latencyLimit:0,latencyRecommended:0,packetLossLimit:0,packetLossRecommended:0,bandwidthLimit:0,bandwidthRecommended:0}},this.s=0,this.M="",this.N=0,this.o=-1,this.C=0}start(G,W){this.j=new B(G.sessionId,this.m,G.serverId),this.h=G,this.K=W,L(),i.g("ntrtcclient","NetworkTestRtcClient: serialized session : "+JSON.stringify(G)),"https"==G.protocol&&(this.A["nv-sessionid"]=G.sessionId,this.A["nv-serverId"]=G.serverId),0==W.serverAddress.indexOf("prod.")&&(W.serverAddress=G.zone+W.serverAddress.substr(4),i.d("ntrtcclient","serverAddress adjusted to Zone value: "+W.serverAddress)),this.v=G.protocol+"://"+W.serverAddress+":"+G.port,"PassThruSessionId"==G.sessionId&&(this.v=G.protocol+"://"+G.address+":"+G.port),this.M=G.address,re(this)}abort(){this.m.emit("NetworkTestCompleted",{sessionId:this.h.sessionId,error:{code:2007,description:"Network test Aborted",errorDetail:"USER_CANCELLED"},zone:this.h.zone})}},Q=class{constructor(G){this.protocol="https://",this.j=G,this.g=D,this.g.timeout=8e3,this.g.G=3,L(),this.g.headers["Content-Type"]="application/json",this.g.headers["x-nv-client-identity"]=L(),this.g.headers["nv-client-identity"]=L(),this.g.headers["x-nv-client-version"]="1.0",this.zone=""}i(G){let W={netTestRequestData:{clientPlatformName:G.platformId,netTestProfile:{widthInPixels:G.networkTestProfile[0].width,heightInPixels:G.networkTestProfile[0].height,framesPerSecond:G.networkTestProfile[0].frameRate}}};this.zone=G.serverAddress;let $={method:"POST",headers:this.g.headers,body:JSON.stringify(W),G:this.g.G,timeout:this.g.timeout};i.d("ntsessionrequest"," The serialized POST request object : "+$.body);let le=this.protocol+G.serverAddress+"/v2/nettestsession";return new Promise((Pe,Fe)=>{let Et,At=S(le,"POST",""),Le=performance.now();const $e=()=>{Et=performance.now(),At.callDuration=Math.round(Et-Le),this.j.emit("NetworkTestAnalytics",At)},Ze=Qe=>{var Ve;return $e(),{error:{code:Qe,description:2007==Qe?"Netsession aborted":"Netsession post request failed with error",errorDetail:2007==Qe?"USER_CANCELLED":"POST_FAILED"},sessionId:null!==(Ve=this.sessionId)&&void 0!==Ve?Ve:"undefined",zone:this.zone}};this.h=I(le,$,G.authInfo),this.h.then(Qe=>{if(i.d("ntsessionrequest","post session request completed with status code: "+Qe.status+"data: "+Qe.data),Et=performance.now(),void 0===Qe.status)return i.e("ntsessionrequest","Failed to get status from response"),At.statusCode="1701",Fe(Ze(2e3));if(At.statusCode=String(Qe.status),void 0!==Qe.data){var Ve=JSON.parse(Qe.data);Ve.requestStatus&&(At.requestId=Ve.requestStatus.requestId,At.serverId=Ve.requestStatus.serverId,At.requestStatusCode=String(Ve.requestStatus.statusCode),this.zone=Ve.requestStatus.serverId,i.d("ntsessionrequest","now we have Zone info from nettestsession as:"+this.zone))}let nt;if(void 0!==Ve.netTestSession){if(this.sessionId=At.networkSessionId=Ve.netTestSession.sessionId,i.d("ntsessionrequest","Network test session Id: "+this.sessionId),!(0<Ve.netTestSession.connectionInfo.length))return i.e("ntsessionrequest","Connection Info is not valid"),Fe(Ze(2e3));nt={address:(Ve=Ve.netTestSession).connectionInfo[0].ip,port:Ve.connectionInfo[0].port,sessionId:Ve.sessionId,networkTestThreshold:{bandwidthRecommended:Ve.netTestThresholds.recommendedBandwidthMBPS,bandwidthLimit:Ve.netTestThresholds.requiredBandwidthMBPS,latencyRecommended:Ve.netTestThresholds.recommendedLatencyMS,latencyLimit:Ve.netTestThresholds.requiredLatencyMS,packetLossRecommended:Ve.netTestThresholds.recommendedPacketLossPct,packetLossLimit:Ve.netTestThresholds.requiredPacketLossPct},protocol:5==Ve.connectionInfo[0].appLevelProtocol?"https":"http",serverId:Ve.serverId}}return 200!==Qe.status?1401==(Qe=g(Qe.status))||1403==Qe?(i.e("ntsessionrequest","Failed with unauthorize error"),Fe(Ze(1401))):Fe(Ze(Qe)):void 0===nt?(i.e("ntsessionrequest","Failed to parse netTestSession"),Fe(Ze(2e3))):(nt.zone=this.zone,$e(),void Pe(nt))}).catch(Qe=>{let Ve;Qe instanceof SyntaxError?(i.e("ntsessionrequest","Session Response: "+Qe+": "+JSON.stringify(Qe)),Ve=2e3):Qe.code?(i.e("ntsessionrequest","session request failed with "+Qe.code),Ve=Qe.code):Qe.aborted?(Ve=2007,i.e("ntsessionrequest","Session Fail with UserCancelled:"+JSON.stringify(Qe))):(Ve=2001,i.e("ntsessionrequest","Session Fail with network error"+Qe+":"+JSON.stringify(Qe))),Fe(Ze(Ve))})})}},A=class extends Q{i(G){return i.d("ntsessionrequest","Passthrough network test session"),new Promise(W=>{window.setTimeout(()=>{let $={sessionId:"PassThruSessionId",address:G.serverAddress,port:49100,networkTestThreshold:{bandwidthLimit:25,bandwidthRecommended:50,latencyLimit:80,latencyRecommended:40,packetLossRecommended:1,packetLossLimit:3,percentile99thFrameJitterRecommended:40,percentile99thFrameJitterLimit:80},protocol:"http",serverId:""};i.d("ntsessionrequest","Passthru: returning a fake session: "+$.sessionId),W($)},1)})}},me=class{constructor(){this.i=new Map}addListener(G,W){let $=this.i.get(G);void 0!==$?$.push(W):this.i.set(G,[W])}removeListener(G,W){if((G=this.i.get(G))&&G.length){let $=0;for(;$<G.length;$++)if(G[$]===W){G.splice($,1);break}}}hasListener(G){return void 0!==(G=this.i.get(G))&&0<G.length}emit(G,...W){try{let $=this.i.get(G);$&&$.forEach(function(le){window.setTimeout(le,0,...W)})}catch($){i.e("eventemitter","Exception in emit: "+$)}}};window.NetworkTest=window.NetworkTest||{},window.NetworkTest.getNetworkTestExceptionTelemetryEvent=v,window.NetworkTest.getNetworkTestHttpTelemetryEvent=S,window.NetworkTest.GdprLevel={aa:"functional",ba:"technical",Z:"behavioral"},window.NetworkTest.BooleanType={ca:"TRUE",$:"FALSE",da:"UNDEFINED"},window.NetworkTest.EventName=d,window.NetworkTest.NetworkTestApp=class extends me{constructor(){super(),this.j=this.h=null,this.A=this.v.bind(this),this.s=this.o.bind(this),this.sessionId="undefined",this.zone="",this.g={platformId:"gfn_browser_client",deviceId:"",serverAddress:"",networkTestProfile:[{width:1920,height:1080,frameRate:60}]},this.l=new B(this.sessionId,this,this.g.serverAddress),this.addListener("NetworkTestCompleted",this.m.bind(this)),window.addEventListener("error",this.s)}o(G){return i.e("networktestapp","window unhandled error at "+G.filename+" "+G.lineno+":"+G.colno),this.emit("NetworkTestCompleted",{sessionId:this.sessionId,error:{code:2005,description:"Quitting due to Unhandled exception",errorDetail:"UNKNOWN"},zone:this.zone}),R(this.l,G.error&&G.error.message?G.error.message:G.message,G.error&&G.error.stack?G.error.stack:"No Stack",G.filename,G.lineno,G.colno,!1,"UnhandledException"),!1}v(){this.h&&(ie(this.h),this.h=null)}m(){i.d("networktestapp","Network Test Completed."),window.removeEventListener("unload",this.A),this.h&&(ie(this.h),this.h=null)}startNetworkTest(G){if(i.h=this,!G)return i.e("networktestapp","Network test param is not valid"),!1;if(!G.serverAddress||!G.serverAddress.length)return i.e("networktestapp","Server address is not valid"),!1;if(this.l.zone=G.serverAddress,!G.networkTestProfile||1>G.networkTestProfile.length)return i.e("networktestapp","Invalid network test profile"),!1;if(Object.keys(G).forEach(W=>{this.g[W]=G[W]||this.g[W]}),r(this.g.serverAddress))i.d("networktestapp","creating passthru server"),this.j=new A(this);else{if(this.g.serverAddress.startsWith("mock://"))i.d("networktestapp","Creating Mock server"),this.g.serverAddress=this.g.serverAddress.replace("mock://","");else if(!G.authInfo||!G.authInfo.authTokenCallback&&!G.authInfo.token)return i.e("networktestapp","Auth Info is not provided"),!1;this.j=new Q(this)}return this.zone=this.g.serverAddress,i.d("networktestapp","Initiating networkSession request"),this.j.i(this.g).then(W=>{var $;this.sessionId=W.sessionId,this.zone=null!==($=W.zone)&&void 0!==$?$:this.zone,i.d("networktestapp","Received session: "+this.sessionId),this.l.sessionId=this.sessionId,this.h=new Me(this),this.h.start(W,this.g)}).catch(W=>{var $,le,Pe,Fe;W.sessionId&&(this.sessionId=W.sessionId),W.zone=this.zone,W.error&&W.error.code?(i.e("networktestapp","session request failed. error: "+W.error.code),this.emit("NetworkTestCompleted",W)):(this.emit("NetworkTestCompleted",{sessionId:this.sessionId,error:{code:2005,description:"Quitting due to exception",errorDetail:"UNKNOWN"}}),i.e("networktestapp","Exception happened in session call: "+W),R(this.l,"Exception happened in session call",null!==($=W.stack)&&void 0!==$?$:"No Stack",null!==(le=W.filename)&&void 0!==le?le:"",null!==(Pe=W.lineno)&&void 0!==Pe?Pe:0,null!==(Fe=W.colno)&&void 0!==Fe?Fe:0,!0))}),!0}stopNetworkTest(){i.d("networktestapp","stopNetworkTest called.");var G=!1;return this.h?(this.h.abort(),G=!0):this.j&&((G=this.j).h&&(G.h.abort(),G.h=void 0),G=!0),G}},window.NetworkTest.ConfigureNetworkTestSettings=function(G){var W,$,le;if(console.log(G),y.O.type="OTHER",G.gxtOverrideData){const Pe=JSON.parse(G.gxtOverrideData);if(y.O={type:"GXT",version:null===(W=Pe.ea)||void 0===W?void 0:W.ia},Pe.Y)for(const Fe of Pe.Y)"rtcNetworkTest"==Fe.name&&(y.u=Fe.value)}else G.remoteConfigData&&(y.O={type:"RCONFIG",version:G.remoteConfigData.version},G.remoteConfigData.rtcnetworktest&&(y.u=JSON.parse(G.remoteConfigData.rtcnetworktest)));if(G.overrideData){const Pe=new URLSearchParams(G.overrideData.toLowerCase());"lean"===Pe.get("mode")?(y.X=!0,y.B=!1,y.T=!0):"dev"===Pe.get("mode")&&(y.T=!0),y.B=null!==($=(G=Fe=>{if(Fe=Pe.get(Fe))switch(Fe){case"enable":case"on":case"1":case"true":return!0;case"disable":case"off":case"0":case"false":return!1}})("log"))&&void 0!==$?$:y.B,y.F=y.B&&(null!==(le=G("console"))&&void 0!==le?le:y.F)}},window.NetworkTest.NetworkTestSettings=y,window.NetworkTest.IsValidIPv4=r,window.NetworkTest.GetRandNumericString=a,window.NetworkTest.IsChromium=c,window.NetworkTest.IsChrome=m,window.NetworkTest.IsSafari=M,window.NetworkTest.performHttpRequest=I,window.NetworkTest.getPlatform=V,window.NetworkTest.getBrowser=N,window.NetworkTest.getAppUserAgent=L,window.NetworkTest.IsTouchDevice=function(){return window.matchMedia("(pointer:coarse)").matches},window.NetworkTest.getNewGuid=function(){let G=new Uint8Array(36);window.crypto.getRandomValues(G);let W="";for(let $=0;36>$;$++){let le=G[$]%16;8==$||13==$||18==$||23==$?W+="-":14==$?W+="4":(19==$&&(le=3&le|8),W+=le.toString(16))}return W},window.NetworkTest.isChromeVersionAtLeast=function(G,W,$,le,Pe){if("Chrome"!=G.name)return!1;W=[W,$??0,le??0,Pe??0];try{return E(G.version.split(".").map(At=>Number.parseInt(At)),W)}catch{i.w("utils","Failed to parse Chrome version")}return!0},window.NetworkTest.isSafariVersionAtLeast=function(G,W,$,le){if("Safari"!=G.name)return!1;W=[W,$??0,le??0];try{return E(G.version.split(".").map(Fe=>Number.parseInt(Fe)),W)}catch{i.w("utils","Failed to parse Safari application version")}return!0},window.NetworkTest.isSafariWebKitVersionAtLeast=function(G,W,$,le){if("Safari"!=G.name||!G.webkit)return!1;W=[W,$??0,le??0];try{return E(G.webkit.split(".").map(Fe=>Number.parseInt(Fe)),W)}catch{i.w("utils","Failed to parse Safari WebKit version")}return!0},window.NetworkTest.getHttpNtErrorCode=g,window.NetworkTest.CLIENT_IDENTIFICATION="GFN-PC",window.NetworkTest.CLIENT_VERSION="1.0",window.NetworkTest.DEFAULT_PORT=49100,window.NetworkTest.UNDEFINED_SESSION_ID="undefined",window.NetworkTest.DefaultHttpRequestOptions=D,window.NetworkTest.CHANGELIST="master-8926289"},134:
/*!******************************************************************!*\
!*** ./node_modules/rtcpeerconnection-shim/rtcpeerconnection.js ***!
\******************************************************************/(d,v,S)=>{"use strict";var y=S(
/*! sdp */
985);function O(c,m,M,D,I){var U=y.writeRtpDescription(c.kind,m);if(U+=y.writeIceParameters(c.iceGatherer.getLocalParameters()),U+=y.writeDtlsParameters(c.dtlsTransport.getLocalParameters(),"offer"===M?"actpass":I||"active"),U+="a=mid:"+c.mid+"\r\n",U+=c.rtpSender&&c.rtpReceiver?"a=sendrecv\r\n":c.rtpSender?"a=sendonly\r\n":c.rtpReceiver?"a=recvonly\r\n":"a=inactive\r\n",c.rtpSender){var V=c.rtpSender._initialTrackId||c.rtpSender.track.id;c.rtpSender._initialTrackId=V;var T="msid:"+(D?D.id:"-")+" "+V+"\r\n";U+="a="+T,U+="a=ssrc:"+c.sendEncodingParameters[0].ssrc+" "+T,c.sendEncodingParameters[0].rtx&&(U+="a=ssrc:"+c.sendEncodingParameters[0].rtx.ssrc+" "+T,U+="a=ssrc-group:FID "+c.sendEncodingParameters[0].ssrc+" "+c.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return U+="a=ssrc:"+c.sendEncodingParameters[0].ssrc+" cname:"+y.localCName+"\r\n",c.rtpSender&&c.sendEncodingParameters[0].rtx&&(U+="a=ssrc:"+c.sendEncodingParameters[0].rtx.ssrc+" cname:"+y.localCName+"\r\n"),U}function _(c,m){var M={codecs:[],headerExtensions:[],fecMechanisms:[]},D=function(U,V){U=parseInt(U,10);for(var T=0;T<V.length;T++)if(V[T].payloadType===U||V[T].preferredPayloadType===U)return V[T]},I=function(U,V,T,N){var L=D(U.parameters.apt,T),E=D(V.parameters.apt,N);return L&&E&&L.name.toLowerCase()===E.name.toLowerCase()};return c.codecs.forEach(function(U){for(var V=0;V<m.codecs.length;V++){var T=m.codecs[V];if(U.name.toLowerCase()===T.name.toLowerCase()&&U.clockRate===T.clockRate){if("rtx"===U.name.toLowerCase()&&U.parameters&&T.parameters.apt&&!I(U,T,c.codecs,m.codecs))continue;(T=JSON.parse(JSON.stringify(T))).numChannels=Math.min(U.numChannels,T.numChannels),M.codecs.push(T),T.rtcpFeedback=T.rtcpFeedback.filter(function(N){for(var L=0;L<U.rtcpFeedback.length;L++)if(U.rtcpFeedback[L].type===N.type&&U.rtcpFeedback[L].parameter===N.parameter)return!0;return!1});break}}}),c.headerExtensions.forEach(function(U){for(var V=0;V<m.headerExtensions.length;V++){var T=m.headerExtensions[V];if(U.uri===T.uri){M.headerExtensions.push(T);break}}}),M}function i(c,m,M){return-1!=={offer:{setLocalDescription:["stable","have-local-offer"],setRemoteDescription:["stable","have-remote-offer"]},answer:{setLocalDescription:["have-remote-offer","have-local-pranswer"],setRemoteDescription:["have-local-offer","have-remote-pranswer"]}}[m][c].indexOf(M)}function r(c,m){var M=c.getRemoteCandidates().find(function(D){return m.foundation===D.foundation&&m.ip===D.ip&&m.port===D.port&&m.priority===D.priority&&m.protocol===D.protocol&&m.type===D.type});return M||c.addRemoteCandidate(m),!M}function a(c,m){var M=new Error(m);return M.name=c,M.code={NotSupportedError:9,InvalidStateError:11,InvalidAccessError:15,TypeError:void 0,OperationError:void 0}[c],M}d.exports=function(c,m){function M(N,L){L.addTrack(N),L.dispatchEvent(new c.MediaStreamTrackEvent("addtrack",{track:N}))}function I(N,L,E,g){var R=new Event("track");R.track=L,R.receiver=E,R.transceiver={receiver:E},R.streams=g,c.setTimeout(function(){N._dispatchEvent("track",R)})}var U=function(N){var L=this,E=document.createDocumentFragment();if(["addEventListener","removeEventListener","dispatchEvent"].forEach(function(R){L[R]=E[R].bind(E)}),this.canTrickleIceCandidates=null,this.needNegotiation=!1,this.localStreams=[],this.remoteStreams=[],this._localDescription=null,this._remoteDescription=null,this.signalingState="stable",this.iceConnectionState="new",this.connectionState="new",this.iceGatheringState="new",N=JSON.parse(JSON.stringify(N||{})),this.usingBundle="max-bundle"===N.bundlePolicy,"negotiate"===N.rtcpMuxPolicy)throw a("NotSupportedError","rtcpMuxPolicy 'negotiate' is not supported");switch(N.rtcpMuxPolicy||(N.rtcpMuxPolicy="require"),N.iceTransportPolicy){case"all":case"relay":break;default:N.iceTransportPolicy="all"}switch(N.bundlePolicy){case"balanced":case"max-compat":case"max-bundle":break;default:N.bundlePolicy="balanced"}if(N.iceServers=function P(c,m){var M=!1;return(c=JSON.parse(JSON.stringify(c))).filter(function(D){if(D&&(D.urls||D.url)){var I=D.urls||D.url;D.url&&!D.urls&&console.warn("RTCIceServer.url is deprecated! Use urls instead.");var U="string"==typeof I;return U&&(I=[I]),I=I.filter(function(V){return 0!==V.indexOf("turn:")||-1===V.indexOf("transport=udp")||-1!==V.indexOf("turn:[")||M?0===V.indexOf("stun:")&&m>=14393&&-1===V.indexOf("?transport=udp"):(M=!0,!0)}),delete D.url,D.urls=U?I[0]:I,!!I.length}})}(N.iceServers||[],m),this._iceGatherers=[],N.iceCandidatePoolSize)for(var g=N.iceCandidatePoolSize;g>0;g--)this._iceGatherers.push(new c.RTCIceGatherer({iceServers:N.iceServers,gatherPolicy:N.iceTransportPolicy}));else N.iceCandidatePoolSize=0;this._config=N,this.transceivers=[],this._sdpSessionId=y.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};Object.defineProperty(U.prototype,"localDescription",{configurable:!0,get:function(){return this._localDescription}}),Object.defineProperty(U.prototype,"remoteDescription",{configurable:!0,get:function(){return this._remoteDescription}}),U.prototype.onicecandidate=null,U.prototype.onaddstream=null,U.prototype.ontrack=null,U.prototype.onremovestream=null,U.prototype.onsignalingstatechange=null,U.prototype.oniceconnectionstatechange=null,U.prototype.onconnectionstatechange=null,U.prototype.onicegatheringstatechange=null,U.prototype.onnegotiationneeded=null,U.prototype.ondatachannel=null,U.prototype._dispatchEvent=function(N,L){this._isClosed||(this.dispatchEvent(L),"function"==typeof this["on"+N]&&this["on"+N](L))},U.prototype._emitGatheringStateChange=function(){var N=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",N)},U.prototype.getConfiguration=function(){return this._config},U.prototype.getLocalStreams=function(){return this.localStreams},U.prototype.getRemoteStreams=function(){return this.remoteStreams},U.prototype._createTransceiver=function(N,L){var g={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:N,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&this.transceivers.length>0)g.iceTransport=this.transceivers[0].iceTransport,g.dtlsTransport=this.transceivers[0].dtlsTransport;else{var R=this._createIceAndDtlsTransports();g.iceTransport=R.iceTransport,g.dtlsTransport=R.dtlsTransport}return L||this.transceivers.push(g),g},U.prototype.addTrack=function(N,L){if(this._isClosed)throw a("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");if(this.transceivers.find(function(B){return B.track===N}))throw a("InvalidAccessError","Track already exists.");for(var g,R=0;R<this.transceivers.length;R++)!this.transceivers[R].track&&this.transceivers[R].kind===N.kind&&(g=this.transceivers[R]);return g||(g=this._createTransceiver(N.kind)),this._maybeFireNegotiationNeeded(),-1===this.localStreams.indexOf(L)&&this.localStreams.push(L),g.track=N,g.stream=L,g.rtpSender=new c.RTCRtpSender(N,g.dtlsTransport),g.rtpSender},U.prototype.addStream=function(N){var L=this;if(m>=15025)N.getTracks().forEach(function(g){L.addTrack(g,N)});else{var E=N.clone();N.getTracks().forEach(function(g,R){var B=E.getTracks()[R];g.addEventListener("enabled",function(X){B.enabled=X.enabled})}),E.getTracks().forEach(function(g){L.addTrack(g,E)})}},U.prototype.removeTrack=function(N){if(this._isClosed)throw a("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(N instanceof c.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var L=this.transceivers.find(function(R){return R.rtpSender===N});if(!L)throw a("InvalidAccessError","Sender was not created by this connection.");var E=L.stream;L.rtpSender.stop(),L.rtpSender=null,L.track=null,L.stream=null,-1===this.transceivers.map(function(R){return R.stream}).indexOf(E)&&this.localStreams.indexOf(E)>-1&&this.localStreams.splice(this.localStreams.indexOf(E),1),this._maybeFireNegotiationNeeded()},U.prototype.removeStream=function(N){var L=this;N.getTracks().forEach(function(E){var g=L.getSenders().find(function(R){return R.track===E});g&&L.removeTrack(g)})},U.prototype.getSenders=function(){return this.transceivers.filter(function(N){return!!N.rtpSender}).map(function(N){return N.rtpSender})},U.prototype.getReceivers=function(){return this.transceivers.filter(function(N){return!!N.rtpReceiver}).map(function(N){return N.rtpReceiver})},U.prototype._createIceGatherer=function(N,L){var E=this;if(L&&N>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var g=new c.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(g,"state",{value:"new",writable:!0}),this.transceivers[N].bufferedCandidateEvents=[],this.transceivers[N].bufferCandidates=function(R){var B=!R.candidate||0===Object.keys(R.candidate).length;g.state=B?"completed":"gathering",null!==E.transceivers[N].bufferedCandidateEvents&&E.transceivers[N].bufferedCandidateEvents.push(R)},g.addEventListener("localcandidate",this.transceivers[N].bufferCandidates),g},U.prototype._gather=function(N,L){var E=this,g=this.transceivers[L].iceGatherer;if(!g.onlocalcandidate){var R=this.transceivers[L].bufferedCandidateEvents;this.transceivers[L].bufferedCandidateEvents=null,g.removeEventListener("localcandidate",this.transceivers[L].bufferCandidates),g.onlocalcandidate=function(B){if(!(E.usingBundle&&L>0)){var X=new Event("icecandidate");X.candidate={sdpMid:N,sdpMLineIndex:L};var H=B.candidate,J=!H||0===Object.keys(H).length;if(J)("new"===g.state||"gathering"===g.state)&&(g.state="completed");else{"new"===g.state&&(g.state="gathering"),H.component=1,H.ufrag=g.getLocalParameters().usernameFragment;var re=y.writeCandidate(H);X.candidate=Object.assign(X.candidate,y.parseCandidate(re)),X.candidate.candidate=re,X.candidate.toJSON=function(){return{candidate:X.candidate.candidate,sdpMid:X.candidate.sdpMid,sdpMLineIndex:X.candidate.sdpMLineIndex,usernameFragment:X.candidate.usernameFragment}}}var ie=y.getMediaSections(E._localDescription.sdp);ie[X.candidate.sdpMLineIndex]+=J?"a=end-of-candidates\r\n":"a="+X.candidate.candidate+"\r\n",E._localDescription.sdp=y.getDescription(E._localDescription.sdp)+ie.join("");var ve=E.transceivers.every(function(ue){return ue.iceGatherer&&"completed"===ue.iceGatherer.state});"gathering"!==E.iceGatheringState&&(E.iceGatheringState="gathering",E._emitGatheringStateChange()),J||E._dispatchEvent("icecandidate",X),ve&&(E._dispatchEvent("icecandidate",new Event("icecandidate")),E.iceGatheringState="complete",E._emitGatheringStateChange())}},c.setTimeout(function(){R.forEach(function(B){g.onlocalcandidate(B)})},0)}},U.prototype._createIceAndDtlsTransports=function(){var N=this,L=new c.RTCIceTransport(null);L.onicestatechange=function(){N._updateIceConnectionState(),N._updateConnectionState()};var E=new c.RTCDtlsTransport(L);return E.ondtlsstatechange=function(){N._updateConnectionState()},E.onerror=function(){Object.defineProperty(E,"state",{value:"failed",writable:!0}),N._updateConnectionState()},{iceTransport:L,dtlsTransport:E}},U.prototype._disposeIceAndDtlsTransports=function(N){var L=this.transceivers[N].iceGatherer;L&&(delete L.onlocalcandidate,delete this.transceivers[N].iceGatherer);var E=this.transceivers[N].iceTransport;E&&(delete E.onicestatechange,delete this.transceivers[N].iceTransport);var g=this.transceivers[N].dtlsTransport;g&&(delete g.ondtlsstatechange,delete g.onerror,delete this.transceivers[N].dtlsTransport)},U.prototype._transceive=function(N,L,E){var g=_(N.localCapabilities,N.remoteCapabilities);L&&N.rtpSender&&(g.encodings=N.sendEncodingParameters,g.rtcp={cname:y.localCName,compound:N.rtcpParameters.compound},N.recvEncodingParameters.length&&(g.rtcp.ssrc=N.recvEncodingParameters[0].ssrc),N.rtpSender.send(g)),E&&N.rtpReceiver&&g.codecs.length>0&&("video"===N.kind&&N.recvEncodingParameters&&m<15019&&N.recvEncodingParameters.forEach(function(R){delete R.rtx}),g.encodings=N.recvEncodingParameters.length?N.recvEncodingParameters:[{}],g.rtcp={compound:N.rtcpParameters.compound},N.rtcpParameters.cname&&(g.rtcp.cname=N.rtcpParameters.cname),N.sendEncodingParameters.length&&(g.rtcp.ssrc=N.sendEncodingParameters[0].ssrc),N.rtpReceiver.receive(g))},U.prototype.setLocalDescription=function(N){var E,g,L=this;if(-1===["offer","answer"].indexOf(N.type))return Promise.reject(a("TypeError",'Unsupported type "'+N.type+'"'));if(!i("setLocalDescription",N.type,L.signalingState)||L._isClosed)return Promise.reject(a("InvalidStateError","Can not set local "+N.type+" in state "+L.signalingState));if("offer"===N.type)E=y.splitSections(N.sdp),g=E.shift(),E.forEach(function(B,X){var H=y.parseRtpParameters(B);L.transceivers[X].localCapabilities=H}),L.transceivers.forEach(function(B,X){L._gather(B.mid,X)});else if("answer"===N.type){E=y.splitSections(L._remoteDescription.sdp),g=E.shift();var R=y.matchPrefix(g,"a=ice-lite").length>0;E.forEach(function(B,X){var H=L.transceivers[X],J=H.iceGatherer,re=H.iceTransport,ie=H.dtlsTransport,ve=H.localCapabilities,ue=H.remoteCapabilities;if(!(y.isRejected(B)&&0===y.matchPrefix(B,"a=bundle-only").length||H.rejected)){var Z=y.getIceParameters(B,g),Se=y.getDtlsParameters(B,g);R&&(Se.role="server"),(!L.usingBundle||0===X)&&(L._gather(H.mid,X),"new"===re.state&&re.start(J,Z,R?"controlling":"controlled"),"new"===ie.state&&ie.start(Se));var Ce=_(ve,ue);L._transceive(H,Ce.codecs.length>0,!1)}})}return L._localDescription={type:N.type,sdp:N.sdp},L._updateSignalingState("offer"===N.type?"have-local-offer":"stable"),Promise.resolve()},U.prototype.setRemoteDescription=function(N){var L=this;if(-1===["offer","answer"].indexOf(N.type))return Promise.reject(a("TypeError",'Unsupported type "'+N.type+'"'));if(!i("setRemoteDescription",N.type,L.signalingState)||L._isClosed)return Promise.reject(a("InvalidStateError","Can not set remote "+N.type+" in state "+L.signalingState));var E={};L.remoteStreams.forEach(function(re){E[re.id]=re});var g=[],R=y.splitSections(N.sdp),B=R.shift(),X=y.matchPrefix(B,"a=ice-lite").length>0,H=y.matchPrefix(B,"a=group:BUNDLE ").length>0;L.usingBundle=H;var J=y.matchPrefix(B,"a=ice-options:")[0];return L.canTrickleIceCandidates=!!J&&J.substr(14).split(" ").indexOf("trickle")>=0,R.forEach(function(re,ie){var ve=y.splitLines(re),ue=y.getKind(re),se=y.isRejected(re)&&0===y.matchPrefix(re,"a=bundle-only").length,Z=ve[0].substr(2).split(" ")[2],Se=y.getDirection(re,B),Ce=y.parseMsid(re),Be=y.getMid(re)||y.generateIdentifier();if(se||"application"===ue&&("DTLS/SCTP"===Z||"UDP/DTLS/SCTP"===Z))L.transceivers[ie]={mid:Be,kind:ue,protocol:Z,rejected:!0};else{!se&&L.transceivers[ie]&&L.transceivers[ie].rejected&&(L.transceivers[ie]=L._createTransceiver(ue,!0));var Xe,He,Me,Q,A,me,ne,G,W,le,Pe,$=y.parseRtpParameters(re);se||(le=y.getIceParameters(re,B),(Pe=y.getDtlsParameters(re,B)).role="client"),ne=y.parseRtpEncodingParameters(re);var Fe=y.parseRtcpParameters(re),At=y.matchPrefix(re,"a=end-of-candidates",B).length>0,Le=y.matchPrefix(re,"a=candidate:").map(function(Ve){return y.parseCandidate(Ve)}).filter(function(Ve){return 1===Ve.component});if(("offer"===N.type||"answer"===N.type)&&!se&&H&&ie>0&&L.transceivers[ie]&&(L._disposeIceAndDtlsTransports(ie),L.transceivers[ie].iceGatherer=L.transceivers[0].iceGatherer,L.transceivers[ie].iceTransport=L.transceivers[0].iceTransport,L.transceivers[ie].dtlsTransport=L.transceivers[0].dtlsTransport,L.transceivers[ie].rtpSender&&L.transceivers[ie].rtpSender.setTransport(L.transceivers[0].dtlsTransport),L.transceivers[ie].rtpReceiver&&L.transceivers[ie].rtpReceiver.setTransport(L.transceivers[0].dtlsTransport)),"offer"!==N.type||se)"answer"!==N.type||se||(He=(Xe=L.transceivers[ie]).iceGatherer,Me=Xe.iceTransport,Q=Xe.dtlsTransport,A=Xe.rtpReceiver,me=Xe.sendEncodingParameters,G=Xe.localCapabilities,L.transceivers[ie].recvEncodingParameters=ne,L.transceivers[ie].remoteCapabilities=$,L.transceivers[ie].rtcpParameters=Fe,Le.length&&"new"===Me.state&&(!X&&!At||H&&0!==ie?Le.forEach(function(Ve){r(Xe.iceTransport,Ve)}):Me.setRemoteCandidates(Le)),(!H||0===ie)&&("new"===Me.state&&Me.start(He,le,"controlling"),"new"===Q.state&&Q.start(Pe)),!_(Xe.localCapabilities,Xe.remoteCapabilities).codecs.filter(function(Ve){return"rtx"===Ve.name.toLowerCase()}).length&&Xe.sendEncodingParameters[0].rtx&&delete Xe.sendEncodingParameters[0].rtx,L._transceive(Xe,"sendrecv"===Se||"recvonly"===Se,"sendrecv"===Se||"sendonly"===Se),!A||"sendrecv"!==Se&&"sendonly"!==Se?delete Xe.rtpReceiver:(W=A.track,Ce?(E[Ce.stream]||(E[Ce.stream]=new c.MediaStream),M(W,E[Ce.stream]),g.push([W,A,E[Ce.stream]])):(E.default||(E.default=new c.MediaStream),M(W,E.default),g.push([W,A,E.default]))));else{(Xe=L.transceivers[ie]||L._createTransceiver(ue)).mid=Be,Xe.iceGatherer||(Xe.iceGatherer=L._createIceGatherer(ie,H)),Le.length&&"new"===Xe.iceTransport.state&&(!At||H&&0!==ie?Le.forEach(function(Ve){r(Xe.iceTransport,Ve)}):Xe.iceTransport.setRemoteCandidates(Le)),G=c.RTCRtpReceiver.getCapabilities(ue),m<15019&&(G.codecs=G.codecs.filter(function(Ve){return"rtx"!==Ve.name})),me=Xe.sendEncodingParameters||[{ssrc:1001*(2*ie+2)}];var $e,Et=!1;"sendrecv"===Se||"sendonly"===Se?(Et=!Xe.rtpReceiver,A=Xe.rtpReceiver||new c.RTCRtpReceiver(Xe.dtlsTransport,ue),Et&&(W=A.track,Ce&&"-"===Ce.stream||(Ce?(E[Ce.stream]||(E[Ce.stream]=new c.MediaStream,Object.defineProperty(E[Ce.stream],"id",{get:function(){return Ce.stream}})),Object.defineProperty(W,"id",{get:function(){return Ce.track}}),$e=E[Ce.stream]):(E.default||(E.default=new c.MediaStream),$e=E.default)),$e&&(M(W,$e),Xe.associatedRemoteMediaStreams.push($e)),g.push([W,A,$e]))):Xe.rtpReceiver&&Xe.rtpReceiver.track&&(Xe.associatedRemoteMediaStreams.forEach(function(Ve){var nt=Ve.getTracks().find(function(Ot){return Ot.id===Xe.rtpReceiver.track.id});nt&&function D(N,L){L.removeTrack(N),L.dispatchEvent(new c.MediaStreamTrackEvent("removetrack",{track:N}))}(nt,Ve)}),Xe.associatedRemoteMediaStreams=[]),Xe.localCapabilities=G,Xe.remoteCapabilities=$,Xe.rtpReceiver=A,Xe.rtcpParameters=Fe,Xe.sendEncodingParameters=me,Xe.recvEncodingParameters=ne,L._transceive(L.transceivers[ie],!1,Et)}}}),void 0===L._dtlsRole&&(L._dtlsRole="offer"===N.type?"active":"passive"),L._remoteDescription={type:N.type,sdp:N.sdp},L._updateSignalingState("offer"===N.type?"have-remote-offer":"stable"),Object.keys(E).forEach(function(re){var ie=E[re];if(ie.getTracks().length){if(-1===L.remoteStreams.indexOf(ie)){L.remoteStreams.push(ie);var ve=new Event("addstream");ve.stream=ie,c.setTimeout(function(){L._dispatchEvent("addstream",ve)})}g.forEach(function(ue){ie.id===ue[2].id&&I(L,ue[0],ue[1],[ie])})}}),g.forEach(function(re){re[2]||I(L,re[0],re[1],[])}),c.setTimeout(function(){L&&L.transceivers&&L.transceivers.forEach(function(re){re.iceTransport&&"new"===re.iceTransport.state&&re.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),re.iceTransport.addRemoteCandidate({}))})},4e3),Promise.resolve()},U.prototype.close=function(){this.transceivers.forEach(function(N){N.iceTransport&&N.iceTransport.stop(),N.dtlsTransport&&N.dtlsTransport.stop(),N.rtpSender&&N.rtpSender.stop(),N.rtpReceiver&&N.rtpReceiver.stop()}),this._isClosed=!0,this._updateSignalingState("closed")},U.prototype._updateSignalingState=function(N){this.signalingState=N;var L=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",L)},U.prototype._maybeFireNegotiationNeeded=function(){var N=this;"stable"!==this.signalingState||!0===this.needNegotiation||(this.needNegotiation=!0,c.setTimeout(function(){if(N.needNegotiation){N.needNegotiation=!1;var L=new Event("negotiationneeded");N._dispatchEvent("negotiationneeded",L)}},0))},U.prototype._updateIceConnectionState=function(){var N,L={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(g){g.iceTransport&&!g.rejected&&L[g.iceTransport.state]++}),N="new",L.failed>0?N="failed":L.checking>0?N="checking":L.disconnected>0?N="disconnected":L.new>0?N="new":L.connected>0?N="connected":L.completed>0&&(N="completed"),N!==this.iceConnectionState){this.iceConnectionState=N;var E=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",E)}},U.prototype._updateConnectionState=function(){var N,L={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(g){g.iceTransport&&g.dtlsTransport&&!g.rejected&&(L[g.iceTransport.state]++,L[g.dtlsTransport.state]++)}),L.connected+=L.completed,N="new",L.failed>0?N="failed":L.connecting>0?N="connecting":L.disconnected>0?N="disconnected":L.new>0?N="new":L.connected>0&&(N="connected"),N!==this.connectionState){this.connectionState=N;var E=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",E)}},U.prototype.createOffer=function(){var N=this;if(N._isClosed)return Promise.reject(a("InvalidStateError","Can not call createOffer after close"));var L=N.transceivers.filter(function(X){return"audio"===X.kind}).length,E=N.transceivers.filter(function(X){return"video"===X.kind}).length,g=arguments[0];if(g){if(g.mandatory||g.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==g.offerToReceiveAudio&&(L=!0===g.offerToReceiveAudio?1:!1===g.offerToReceiveAudio?0:g.offerToReceiveAudio),void 0!==g.offerToReceiveVideo&&(E=!0===g.offerToReceiveVideo?1:!1===g.offerToReceiveVideo?0:g.offerToReceiveVideo)}for(N.transceivers.forEach(function(X){"audio"===X.kind?--L<0&&(X.wantReceive=!1):"video"===X.kind&&--E<0&&(X.wantReceive=!1)});L>0||E>0;)L>0&&(N._createTransceiver("audio"),L--),E>0&&(N._createTransceiver("video"),E--);var R=y.writeSessionBoilerplate(N._sdpSessionId,N._sdpSessionVersion++);N.transceivers.forEach(function(X,H){var J=X.track,re=X.kind,ie=X.mid||y.generateIdentifier();X.mid=ie,X.iceGatherer||(X.iceGatherer=N._createIceGatherer(H,N.usingBundle));var ve=c.RTCRtpSender.getCapabilities(re);m<15019&&(ve.codecs=ve.codecs.filter(function(se){return"rtx"!==se.name})),ve.codecs.forEach(function(se){"H264"===se.name&&void 0===se.parameters["level-asymmetry-allowed"]&&(se.parameters["level-asymmetry-allowed"]="1"),X.remoteCapabilities&&X.remoteCapabilities.codecs&&X.remoteCapabilities.codecs.forEach(function(Z){se.name.toLowerCase()===Z.name.toLowerCase()&&se.clockRate===Z.clockRate&&(se.preferredPayloadType=Z.payloadType)})}),ve.headerExtensions.forEach(function(se){(X.remoteCapabilities&&X.remoteCapabilities.headerExtensions||[]).forEach(function(Se){se.uri===Se.uri&&(se.id=Se.id)})});var ue=X.sendEncodingParameters||[{ssrc:1001*(2*H+1)}];J&&m>=15019&&"video"===re&&!ue[0].rtx&&(ue[0].rtx={ssrc:ue[0].ssrc+1}),X.wantReceive&&(X.rtpReceiver=new c.RTCRtpReceiver(X.dtlsTransport,re)),X.localCapabilities=ve,X.sendEncodingParameters=ue}),"max-compat"!==N._config.bundlePolicy&&(R+="a=group:BUNDLE "+N.transceivers.map(function(X){return X.mid}).join(" ")+"\r\n"),R+="a=ice-options:trickle\r\n",N.transceivers.forEach(function(X,H){R+=O(X,X.localCapabilities,"offer",X.stream,N._dtlsRole),R+="a=rtcp-rsize\r\n",X.iceGatherer&&"new"!==N.iceGatheringState&&(0===H||!N.usingBundle)&&(X.iceGatherer.getLocalCandidates().forEach(function(J){J.component=1,R+="a="+y.writeCandidate(J)+"\r\n"}),"completed"===X.iceGatherer.state&&(R+="a=end-of-candidates\r\n"))});var B=new c.RTCSessionDescription({type:"offer",sdp:R});return Promise.resolve(B)},U.prototype.createAnswer=function(){var N=this;if(N._isClosed)return Promise.reject(a("InvalidStateError","Can not call createAnswer after close"));if("have-remote-offer"!==N.signalingState&&"have-local-pranswer"!==N.signalingState)return Promise.reject(a("InvalidStateError","Can not call createAnswer in signalingState "+N.signalingState));var L=y.writeSessionBoilerplate(N._sdpSessionId,N._sdpSessionVersion++);N.usingBundle&&(L+="a=group:BUNDLE "+N.transceivers.map(function(R){return R.mid}).join(" ")+"\r\n"),L+="a=ice-options:trickle\r\n";var E=y.getMediaSections(N._remoteDescription.sdp).length;N.transceivers.forEach(function(R,B){if(!(B+1>E)){if(R.rejected)return"application"===R.kind?L+="DTLS/SCTP"===R.protocol?"m=application 0 DTLS/SCTP 5000\r\n":"m=application 0 "+R.protocol+" webrtc-datachannel\r\n":"audio"===R.kind?L+="m=audio 0 UDP/TLS/RTP/SAVPF 0\r\na=rtpmap:0 PCMU/8000\r\n":"video"===R.kind&&(L+="m=video 0 UDP/TLS/RTP/SAVPF 120\r\na=rtpmap:120 VP8/90000\r\n"),void(L+="c=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:"+R.mid+"\r\n");var X;R.stream&&("audio"===R.kind?X=R.stream.getAudioTracks()[0]:"video"===R.kind&&(X=R.stream.getVideoTracks()[0]),X&&m>=15019&&"video"===R.kind&&!R.sendEncodingParameters[0].rtx&&(R.sendEncodingParameters[0].rtx={ssrc:R.sendEncodingParameters[0].ssrc+1}));var H=_(R.localCapabilities,R.remoteCapabilities);!H.codecs.filter(function(re){return"rtx"===re.name.toLowerCase()}).length&&R.sendEncodingParameters[0].rtx&&delete R.sendEncodingParameters[0].rtx,L+=O(R,H,"answer",R.stream,N._dtlsRole),R.rtcpParameters&&R.rtcpParameters.reducedSize&&(L+="a=rtcp-rsize\r\n")}});var g=new c.RTCSessionDescription({type:"answer",sdp:L});return Promise.resolve(g)},U.prototype.addIceCandidate=function(N){var E,L=this;return N&&void 0===N.sdpMLineIndex&&!N.sdpMid?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise(function(g,R){if(!L._remoteDescription)return R(a("InvalidStateError","Can not add ICE candidate without a remote description"));if(N&&""!==N.candidate){var X=N.sdpMLineIndex;if(N.sdpMid)for(var H=0;H<L.transceivers.length;H++)if(L.transceivers[H].mid===N.sdpMid){X=H;break}var J=L.transceivers[X];if(!J)return R(a("OperationError","Can not add ICE candidate"));if(J.rejected)return g();var re=Object.keys(N.candidate).length>0?y.parseCandidate(N.candidate):{};if("tcp"===re.protocol&&(0===re.port||9===re.port)||re.component&&1!==re.component)return g();if((0===X||X>0&&J.iceTransport!==L.transceivers[0].iceTransport)&&!r(J.iceTransport,re))return R(a("OperationError","Can not add ICE candidate"));var ie=N.candidate.trim();0===ie.indexOf("a=")&&(ie=ie.substr(2)),(E=y.getMediaSections(L._remoteDescription.sdp))[X]+="a="+(re.type?ie:"end-of-candidates")+"\r\n",L._remoteDescription.sdp=y.getDescription(L._remoteDescription.sdp)+E.join("")}else for(var B=0;B<L.transceivers.length&&(L.transceivers[B].rejected||(L.transceivers[B].iceTransport.addRemoteCandidate({}),(E=y.getMediaSections(L._remoteDescription.sdp))[B]+="a=end-of-candidates\r\n",L._remoteDescription.sdp=y.getDescription(L._remoteDescription.sdp)+E.join(""),!L.usingBundle));B++);g()})},U.prototype.getStats=function(N){if(N&&N instanceof c.MediaStreamTrack){var L=null;if(this.transceivers.forEach(function(g){g.rtpSender&&g.rtpSender.track===N?L=g.rtpSender:g.rtpReceiver&&g.rtpReceiver.track===N&&(L=g.rtpReceiver)}),!L)throw a("InvalidAccessError","Invalid selector.");return L.getStats()}var E=[];return this.transceivers.forEach(function(g){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach(function(R){g[R]&&E.push(g[R].getStats())})}),Promise.all(E).then(function(g){var R=new Map;return g.forEach(function(B){B.forEach(function(X){R.set(X.id,X)})}),R})},["RTCRtpSender","RTCRtpReceiver","RTCIceGatherer","RTCIceTransport","RTCDtlsTransport"].forEach(function(N){var L=c[N];if(L&&L.prototype&&L.prototype.getStats){var E=L.prototype.getStats;L.prototype.getStats=function(){return E.apply(this).then(function(g){var R=new Map;return Object.keys(g).forEach(function(B){g[B].type=function f(c){return{inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[c.type]||c.type}(g[B]),R.set(B,g[B])}),R})}}});var T=["createOffer","createAnswer"];return T.forEach(function(N){var L=U.prototype[N];U.prototype[N]=function(){var E=arguments;return"function"==typeof E[0]||"function"==typeof E[1]?L.apply(this,[arguments[2]]).then(function(g){"function"==typeof E[0]&&E[0].apply(null,[g])},function(g){"function"==typeof E[1]&&E[1].apply(null,[g])}):L.apply(this,arguments)}}),(T=["setLocalDescription","setRemoteDescription","addIceCandidate"]).forEach(function(N){var L=U.prototype[N];U.prototype[N]=function(){var E=arguments;return"function"==typeof E[1]||"function"==typeof E[2]?L.apply(this,arguments).then(function(){"function"==typeof E[1]&&E[1].apply(null)},function(g){"function"==typeof E[2]&&E[2].apply(null,[g])}):L.apply(this,arguments)}}),["getStats"].forEach(function(N){var L=U.prototype[N];U.prototype[N]=function(){var E=arguments;return"function"==typeof E[1]?L.apply(this,arguments).then(function(){"function"==typeof E[1]&&E[1].apply(null)}):L.apply(this,arguments)}}),U}},985:
/*!*********************************!*\
!*** ./node_modules/sdp/sdp.js ***!
\*********************************/d=>{"use strict";var v={generateIdentifier:function(){return Math.random().toString(36).substr(2,10)}};v.localCName=v.generateIdentifier(),v.splitLines=function(S){return S.trim().split("\n").map(function(y){return y.trim()})},v.splitSections=function(S){return S.split("\nm=").map(function(f,O){return(O>0?"m="+f:f).trim()+"\r\n"})},v.getDescription=function(S){var y=v.splitSections(S);return y&&y[0]},v.getMediaSections=function(S){var y=v.splitSections(S);return y.shift(),y},v.matchPrefix=function(S,y){return v.splitLines(S).filter(function(f){return 0===f.indexOf(y)})},v.parseCandidate=function(S){for(var y,f={foundation:(y=0===S.indexOf("a=candidate:")?S.substring(12).split(" "):S.substring(10).split(" "))[0],component:parseInt(y[1],10),protocol:y[2].toLowerCase(),priority:parseInt(y[3],10),ip:y[4],address:y[4],port:parseInt(y[5],10),type:y[7]},O=8;O<y.length;O+=2)switch(y[O]){case"raddr":f.relatedAddress=y[O+1];break;case"rport":f.relatedPort=parseInt(y[O+1],10);break;case"tcptype":f.tcpType=y[O+1];break;case"ufrag":f.ufrag=y[O+1],f.usernameFragment=y[O+1];break;default:f[y[O]]=y[O+1]}return f},v.writeCandidate=function(S){var y=[];y.push(S.foundation),y.push(S.component),y.push(S.protocol.toUpperCase()),y.push(S.priority),y.push(S.address||S.ip),y.push(S.port);var f=S.type;return y.push("typ"),y.push(f),"host"!==f&&S.relatedAddress&&S.relatedPort&&(y.push("raddr"),y.push(S.relatedAddress),y.push("rport"),y.push(S.relatedPort)),S.tcpType&&"tcp"===S.protocol.toLowerCase()&&(y.push("tcptype"),y.push(S.tcpType)),(S.usernameFragment||S.ufrag)&&(y.push("ufrag"),y.push(S.usernameFragment||S.ufrag)),"candidate:"+y.join(" ")},v.parseIceOptions=function(S){return S.substr(14).split(" ")},v.parseRtpMap=function(S){var y=S.substr(9).split(" "),f={payloadType:parseInt(y.shift(),10)};return y=y[0].split("/"),f.name=y[0],f.clockRate=parseInt(y[1],10),f.channels=3===y.length?parseInt(y[2],10):1,f.numChannels=f.channels,f},v.writeRtpMap=function(S){var y=S.payloadType;void 0!==S.preferredPayloadType&&(y=S.preferredPayloadType);var f=S.channels||S.numChannels||1;return"a=rtpmap:"+y+" "+S.name+"/"+S.clockRate+(1!==f?"/"+f:"")+"\r\n"},v.parseExtmap=function(S){var y=S.substr(9).split(" ");return{id:parseInt(y[0],10),direction:y[0].indexOf("/")>0?y[0].split("/")[1]:"sendrecv",uri:y[1]}},v.writeExtmap=function(S){return"a=extmap:"+(S.id||S.preferredId)+(S.direction&&"sendrecv"!==S.direction?"/"+S.direction:"")+" "+S.uri+"\r\n"},v.parseFmtp=function(S){for(var f,y={},O=S.substr(S.indexOf(" ")+1).split(";"),P=0;P<O.length;P++)y[(f=O[P].trim().split("="))[0].trim()]=f[1];return y},v.writeFmtp=function(S){var y="",f=S.payloadType;if(void 0!==S.preferredPayloadType&&(f=S.preferredPayloadType),S.parameters&&Object.keys(S.parameters).length){var O=[];Object.keys(S.parameters).forEach(function(P){O.push(S.parameters[P]?P+"="+S.parameters[P]:P)}),y+="a=fmtp:"+f+" "+O.join(";")+"\r\n"}return y},v.parseRtcpFb=function(S){var y=S.substr(S.indexOf(" ")+1).split(" ");return{type:y.shift(),parameter:y.join(" ")}},v.writeRtcpFb=function(S){var y="",f=S.payloadType;return void 0!==S.preferredPayloadType&&(f=S.preferredPayloadType),S.rtcpFeedback&&S.rtcpFeedback.length&&S.rtcpFeedback.forEach(function(O){y+="a=rtcp-fb:"+f+" "+O.type+(O.parameter&&O.parameter.length?" "+O.parameter:"")+"\r\n"}),y},v.parseSsrcMedia=function(S){var y=S.indexOf(" "),f={ssrc:parseInt(S.substr(7,y-7),10)},O=S.indexOf(":",y);return O>-1?(f.attribute=S.substr(y+1,O-y-1),f.value=S.substr(O+1)):f.attribute=S.substr(y+1),f},v.parseSsrcGroup=function(S){var y=S.substr(13).split(" ");return{semantics:y.shift(),ssrcs:y.map(function(f){return parseInt(f,10)})}},v.getMid=function(S){var y=v.matchPrefix(S,"a=mid:")[0];if(y)return y.substr(6)},v.parseFingerprint=function(S){var y=S.substr(14).split(" ");return{algorithm:y[0].toLowerCase(),value:y[1]}},v.getDtlsParameters=function(S,y){return{role:"auto",fingerprints:v.matchPrefix(S+y,"a=fingerprint:").map(v.parseFingerprint)}},v.writeDtlsParameters=function(S,y){var f="a=setup:"+y+"\r\n";return S.fingerprints.forEach(function(O){f+="a=fingerprint:"+O.algorithm+" "+O.value+"\r\n"}),f},v.parseCryptoLine=function(S){var y=S.substr(9).split(" ");return{tag:parseInt(y[0],10),cryptoSuite:y[1],keyParams:y[2],sessionParams:y.slice(3)}},v.writeCryptoLine=function(S){return"a=crypto:"+S.tag+" "+S.cryptoSuite+" "+("object"==typeof S.keyParams?v.writeCryptoKeyParams(S.keyParams):S.keyParams)+(S.sessionParams?" "+S.sessionParams.join(" "):"")+"\r\n"},v.parseCryptoKeyParams=function(S){if(0!==S.indexOf("inline:"))return null;var y=S.substr(7).split("|");return{keyMethod:"inline",keySalt:y[0],lifeTime:y[1],mkiValue:y[2]?y[2].split(":")[0]:void 0,mkiLength:y[2]?y[2].split(":")[1]:void 0}},v.writeCryptoKeyParams=function(S){return S.keyMethod+":"+S.keySalt+(S.lifeTime?"|"+S.lifeTime:"")+(S.mkiValue&&S.mkiLength?"|"+S.mkiValue+":"+S.mkiLength:"")},v.getCryptoParameters=function(S,y){return v.matchPrefix(S+y,"a=crypto:").map(v.parseCryptoLine)},v.getIceParameters=function(S,y){var f=v.matchPrefix(S+y,"a=ice-ufrag:")[0],O=v.matchPrefix(S+y,"a=ice-pwd:")[0];return f&&O?{usernameFragment:f.substr(12),password:O.substr(10)}:null},v.writeIceParameters=function(S){return"a=ice-ufrag:"+S.usernameFragment+"\r\na=ice-pwd:"+S.password+"\r\n"},v.parseRtpParameters=function(S){for(var y={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},O=v.splitLines(S)[0].split(" "),P=3;P<O.length;P++){var _=O[P],i=v.matchPrefix(S,"a=rtpmap:"+_+" ")[0];if(i){var r=v.parseRtpMap(i),a=v.matchPrefix(S,"a=fmtp:"+_+" ");switch(r.parameters=a.length?v.parseFmtp(a[0]):{},r.rtcpFeedback=v.matchPrefix(S,"a=rtcp-fb:"+_+" ").map(v.parseRtcpFb),y.codecs.push(r),r.name.toUpperCase()){case"RED":case"ULPFEC":y.fecMechanisms.push(r.name.toUpperCase())}}}return v.matchPrefix(S,"a=extmap:").forEach(function(c){y.headerExtensions.push(v.parseExtmap(c))}),y},v.writeRtpDescription=function(S,y){var f="";f+="m="+S+" ",f+=y.codecs.length>0?"9":"0",f+=" UDP/TLS/RTP/SAVPF ",f+=y.codecs.map(function(P){return void 0!==P.preferredPayloadType?P.preferredPayloadType:P.payloadType}).join(" ")+"\r\n",f+="c=IN IP4 0.0.0.0\r\n",f+="a=rtcp:9 IN IP4 0.0.0.0\r\n",y.codecs.forEach(function(P){f+=v.writeRtpMap(P),f+=v.writeFmtp(P),f+=v.writeRtcpFb(P)});var O=0;return y.codecs.forEach(function(P){P.maxptime>O&&(O=P.maxptime)}),O>0&&(f+="a=maxptime:"+O+"\r\n"),f+="a=rtcp-mux\r\n",y.headerExtensions&&y.headerExtensions.forEach(function(P){f+=v.writeExtmap(P)}),f},v.parseRtpEncodingParameters=function(S){var r,y=[],f=v.parseRtpParameters(S),O=-1!==f.fecMechanisms.indexOf("RED"),P=-1!==f.fecMechanisms.indexOf("ULPFEC"),_=v.matchPrefix(S,"a=ssrc:").map(function(m){return v.parseSsrcMedia(m)}).filter(function(m){return"cname"===m.attribute}),i=_.length>0&&_[0].ssrc,a=v.matchPrefix(S,"a=ssrc-group:FID").map(function(m){return m.substr(17).split(" ").map(function(D){return parseInt(D,10)})});a.length>0&&a[0].length>1&&a[0][0]===i&&(r=a[0][1]),f.codecs.forEach(function(m){if("RTX"===m.name.toUpperCase()&&m.parameters.apt){var M={ssrc:i,codecPayloadType:parseInt(m.parameters.apt,10)};i&&r&&(M.rtx={ssrc:r}),y.push(M),O&&((M=JSON.parse(JSON.stringify(M))).fec={ssrc:i,mechanism:P?"red+ulpfec":"red"},y.push(M))}}),0===y.length&&i&&y.push({ssrc:i});var c=v.matchPrefix(S,"b=");return c.length&&(c=0===c[0].indexOf("b=TIAS:")?parseInt(c[0].substr(7),10):0===c[0].indexOf("b=AS:")?1e3*parseInt(c[0].substr(5),10)*.95-16e3:void 0,y.forEach(function(m){m.maxBitrate=c})),y},v.parseRtcpParameters=function(S){var y={},f=v.matchPrefix(S,"a=ssrc:").map(function(_){return v.parseSsrcMedia(_)}).filter(function(_){return"cname"===_.attribute})[0];f&&(y.cname=f.value,y.ssrc=f.ssrc);var O=v.matchPrefix(S,"a=rtcp-rsize");y.reducedSize=O.length>0,y.compound=0===O.length;var P=v.matchPrefix(S,"a=rtcp-mux");return y.mux=P.length>0,y},v.parseMsid=function(S){var y,f=v.matchPrefix(S,"a=msid:");if(1===f.length)return{stream:(y=f[0].substr(7).split(" "))[0],track:y[1]};var O=v.matchPrefix(S,"a=ssrc:").map(function(P){return v.parseSsrcMedia(P)}).filter(function(P){return"msid"===P.attribute});return O.length>0?{stream:(y=O[0].value.split(" "))[0],track:y[1]}:void 0},v.parseSctpDescription=function(S){var O,y=v.parseMLine(S),f=v.matchPrefix(S,"a=max-message-size:");f.length>0&&(O=parseInt(f[0].substr(19),10)),isNaN(O)&&(O=65536);var P=v.matchPrefix(S,"a=sctp-port:");if(P.length>0)return{port:parseInt(P[0].substr(12),10),protocol:y.fmt,maxMessageSize:O};if(v.matchPrefix(S,"a=sctpmap:").length>0){var i=v.matchPrefix(S,"a=sctpmap:")[0].substr(10).split(" ");return{port:parseInt(i[0],10),protocol:i[1],maxMessageSize:O}}},v.writeSctpDescription=function(S,y){var f=[];return f="DTLS/SCTP"!==S.protocol?["m="+S.kind+" 9 "+S.protocol+" "+y.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+y.port+"\r\n"]:["m="+S.kind+" 9 "+S.protocol+" "+y.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+y.port+" "+y.protocol+" 65535\r\n"],void 0!==y.maxMessageSize&&f.push("a=max-message-size:"+y.maxMessageSize+"\r\n"),f.join("")},v.generateSessionId=function(){return Math.random().toString().substr(2,21)},v.writeSessionBoilerplate=function(S,y,f){var P=void 0!==y?y:2;return"v=0\r\no="+(f||"thisisadapterortc")+" "+(S||v.generateSessionId())+" "+P+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},v.writeMediaSection=function(S,y,f,O){var P=v.writeRtpDescription(S.kind,y);if(P+=v.writeIceParameters(S.iceGatherer.getLocalParameters()),P+=v.writeDtlsParameters(S.dtlsTransport.getLocalParameters(),"offer"===f?"actpass":"active"),P+="a=mid:"+S.mid+"\r\n",P+=S.direction?"a="+S.direction+"\r\n":S.rtpSender&&S.rtpReceiver?"a=sendrecv\r\n":S.rtpSender?"a=sendonly\r\n":S.rtpReceiver?"a=recvonly\r\n":"a=inactive\r\n",S.rtpSender){var _="msid:"+O.id+" "+S.rtpSender.track.id+"\r\n";P+="a="+_,P+="a=ssrc:"+S.sendEncodingParameters[0].ssrc+" "+_,S.sendEncodingParameters[0].rtx&&(P+="a=ssrc:"+S.sendEncodingParameters[0].rtx.ssrc+" "+_,P+="a=ssrc-group:FID "+S.sendEncodingParameters[0].ssrc+" "+S.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return P+="a=ssrc:"+S.sendEncodingParameters[0].ssrc+" cname:"+v.localCName+"\r\n",S.rtpSender&&S.sendEncodingParameters[0].rtx&&(P+="a=ssrc:"+S.sendEncodingParameters[0].rtx.ssrc+" cname:"+v.localCName+"\r\n"),P},v.getDirection=function(S,y){for(var f=v.splitLines(S),O=0;O<f.length;O++)switch(f[O]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return f[O].substr(2)}return y?v.getDirection(y):"sendrecv"},v.getKind=function(S){return v.splitLines(S)[0].split(" ")[0].substr(2)},v.isRejected=function(S){return"0"===S.split(" ",2)[1]},v.parseMLine=function(S){var f=v.splitLines(S)[0].substr(2).split(" ");return{kind:f[0],port:parseInt(f[1],10),protocol:f[2],fmt:f.slice(3).join(" ")}},v.parseOLine=function(S){var f=v.matchPrefix(S,"o=")[0].substr(2).split(" ");return{username:f[0],sessionId:f[1],sessionVersion:parseInt(f[2],10),netType:f[3],addressType:f[4],address:f[5]}},v.isValidSDP=function(S){if("string"!=typeof S||0===S.length)return!1;for(var y=v.splitLines(S),f=0;f<y.length;f++)if(y[f].length<2||"="!==y[f].charAt(1))return!1;return!0},d.exports=v}},s={};function n(d){var v=s[d];if(void 0!==v)return v.exports;var S=s[d]={exports:{}};return z[d](S,S.exports,n),S.exports}n.n=d=>{var v=d&&d.__esModule?()=>d.default:()=>d;return n.d(v,{a:v}),v},n.d=(d,v)=>{for(var S in v)n.o(v,S)&&!n.o(d,S)&&Object.defineProperty(d,S,{enumerable:!0,get:v[S]})},n.o=(d,v)=>Object.prototype.hasOwnProperty.call(d,v),n.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var l={};(()=>{"use strict";n.r(l),n.d(l,{BooleanType:()=>St,CHANGELIST:()=>Cn,CLIENT_IDENTIFICATION:()=>gn,CLIENT_VERSION:()=>ui,ConfigureNetworkTestSettings:()=>Wt,DEFAULT_PORT:()=>Ii,DefaultHttpRequestOptions:()=>zr,EventName:()=>Gt,GdprLevel:()=>et,GetRandNumericString:()=>Ae,IsChrome:()=>Lt,IsChromium:()=>qe,IsSafari:()=>Zt,IsTouchDevice:()=>Ji,IsValidIPv4:()=>be,NetworkTestApp:()=>yt,NetworkTestSettings:()=>ke,UNDEFINED_SESSION_ID:()=>pr,getAppUserAgent:()=>fi,getBrowser:()=>On,getHttpNtErrorCode:()=>jt,getNetworkTestExceptionTelemetryEvent:()=>tt,getNetworkTestHttpTelemetryEvent:()=>rt,getNewGuid:()=>Fi,getPlatform:()=>hn,isChromeVersionAtLeast:()=>bt,isSafariVersionAtLeast:()=>bn,isSafariWebKitVersionAtLeast:()=>Pt,performHttpRequest:()=>fn});var d={};n.r(d),n.d(d,{fixNegotiationNeeded:()=>ie,shimAddTrackRemoveTrack:()=>J,shimAddTrackRemoveTrackWithNative:()=>H,shimGetDisplayMedia:()=>L,shimGetSendersWithDtmf:()=>R,shimGetStats:()=>B,shimGetUserMedia:()=>N,shimMediaStream:()=>E,shimOnTrack:()=>g,shimPeerConnection:()=>re,shimSenderReceiverGetStats:()=>X});var v={};n.r(v),n.d(v,{shimGetDisplayMedia:()=>Se,shimGetUserMedia:()=>Z,shimPeerConnection:()=>Ce,shimReplaceTrack:()=>Be});var S={};n.r(S),n.d(S,{shimAddTransceiver:()=>W,shimCreateAnswer:()=>Pe,shimCreateOffer:()=>le,shimGetDisplayMedia:()=>He,shimGetParameters:()=>$,shimGetUserMedia:()=>Xe,shimOnTrack:()=>Me,shimPeerConnection:()=>Q,shimRTCDataChannel:()=>G,shimReceiverGetStats:()=>me,shimRemoveStream:()=>ne,shimSenderGetStats:()=>A});var y={};n.r(y),n.d(y,{shimAudioContext:()=>nt,shimCallbacksAPI:()=>Le,shimConstraints:()=>$e,shimCreateOfferLegacy:()=>Ve,shimGetUserMedia:()=>Et,shimLocalStreamsAPI:()=>Fe,shimRTCIceServerUrls:()=>Ze,shimRemoteStreamsAPI:()=>At,shimTrackEventTransceiver:()=>Qe});var f={};n.r(f),n.d(f,{removeAllowExtmapMixed:()=>ft,shimConnectionState:()=>lt,shimMaxMessageSize:()=>We,shimRTCIceCandidate:()=>It,shimSendThrowTypeError:()=>xe});let O=!0,P=!0;function _(pn,ti,pi){const cn=pn.match(ti);return cn&&cn.length>=pi&&parseInt(cn[pi],10)}function i(pn,ti,pi){if(!pn.RTCPeerConnection)return;const cn=pn.RTCPeerConnection.prototype,An=cn.addEventListener;cn.addEventListener=function(hi,xi){if(hi!==ti)return An.apply(this,arguments);const xn=Yn=>{const Gn=pi(Yn);Gn&&(xi.handleEvent?xi.handleEvent(Gn):xi(Gn))};return this._eventMap=this._eventMap||{},this._eventMap[ti]||(this._eventMap[ti]=new Map),this._eventMap[ti].set(xi,xn),An.apply(this,[hi,xn])};const Jn=cn.removeEventListener;cn.removeEventListener=function(hi,xi){if(hi!==ti||!this._eventMap||!this._eventMap[ti])return Jn.apply(this,arguments);if(!this._eventMap[ti].has(xi))return Jn.apply(this,arguments);const xn=this._eventMap[ti].get(xi);return this._eventMap[ti].delete(xi),0===this._eventMap[ti].size&&delete this._eventMap[ti],0===Object.keys(this._eventMap).length&&delete this._eventMap,Jn.apply(this,[hi,xn])},Object.defineProperty(cn,"on"+ti,{get(){return this["_on"+ti]},set(hi){this["_on"+ti]&&(this.removeEventListener(ti,this["_on"+ti]),delete this["_on"+ti]),hi&&this.addEventListener(ti,this["_on"+ti]=hi)},enumerable:!0,configurable:!0})}function r(pn){return"boolean"!=typeof pn?new Error("Argument type: "+typeof pn+". Please use a boolean."):(O=pn,pn?"adapter.js logging disabled":"adapter.js logging enabled")}function a(pn){return"boolean"!=typeof pn?new Error("Argument type: "+typeof pn+". Please use a boolean."):(P=!pn,"adapter.js deprecation warnings "+(pn?"disabled":"enabled"))}function c(){if("object"==typeof window){if(O)return;typeof console<"u"&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function m(pn,ti){P&&console.warn(pn+" is deprecated, please use "+ti+" instead.")}function M(pn){const{navigator:ti}=pn,pi={browser:null,version:null};if(typeof pn>"u"||!pn.navigator)return pi.browser="Not a browser.",pi;if(ti.mozGetUserMedia)pi.browser="firefox",pi.version=_(ti.userAgent,/Firefox\/(\d+)\./,1);else if(ti.webkitGetUserMedia||!1===pn.isSecureContext&&pn.webkitRTCPeerConnection&&!pn.RTCIceGatherer)pi.browser="chrome",pi.version=_(ti.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(ti.mediaDevices&&ti.userAgent.match(/Edge\/(\d+).(\d+)$/))pi.browser="edge",pi.version=_(ti.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!pn.RTCPeerConnection||!ti.userAgent.match(/AppleWebKit\/(\d+)\./))return pi.browser="Not a supported browser.",pi;pi.browser="safari",pi.version=_(ti.userAgent,/AppleWebKit\/(\d+)\./,1),pi.supportsUnifiedPlan=pn.RTCRtpTransceiver&&"currentDirection"in pn.RTCRtpTransceiver.prototype}return pi}function D(pn){return"[object Object]"===Object.prototype.toString.call(pn)}function I(pn){return D(pn)?Object.keys(pn).reduce(function(ti,pi){const cn=D(pn[pi]),An=cn?I(pn[pi]):pn[pi],Jn=cn&&!Object.keys(An).length;return void 0===An||Jn?ti:Object.assign(ti,{[pi]:An})},{}):pn}function U(pn,ti,pi){!ti||pi.has(ti.id)||(pi.set(ti.id,ti),Object.keys(ti).forEach(cn=>{cn.endsWith("Id")?U(pn,pn.get(ti[cn]),pi):cn.endsWith("Ids")&&ti[cn].forEach(An=>{U(pn,pn.get(An),pi)})}))}function V(pn,ti,pi){const cn=pi?"outbound-rtp":"inbound-rtp",An=new Map;if(null===ti)return An;const Jn=[];return pn.forEach(hi=>{"track"===hi.type&&hi.trackIdentifier===ti.id&&Jn.push(hi)}),Jn.forEach(hi=>{pn.forEach(xi=>{xi.type===cn&&xi.trackId===hi.id&&U(pn,xi,An)})}),An}const T=c;function N(pn){const ti=pn&&pn.navigator;if(!ti.mediaDevices)return;const pi=M(pn),cn=function(xi){if("object"!=typeof xi||xi.mandatory||xi.optional)return xi;const xn={};return Object.keys(xi).forEach(Yn=>{if("require"===Yn||"advanced"===Yn||"mediaSource"===Yn)return;const Gn="object"==typeof xi[Yn]?xi[Yn]:{ideal:xi[Yn]};void 0!==Gn.exact&&"number"==typeof Gn.exact&&(Gn.min=Gn.max=Gn.exact);const Ci=function(ln,bi){return ln?ln+bi.charAt(0).toUpperCase()+bi.slice(1):"deviceId"===bi?"sourceId":bi};if(void 0!==Gn.ideal){xn.optional=xn.optional||[];let ln={};"number"==typeof Gn.ideal?(ln[Ci("min",Yn)]=Gn.ideal,xn.optional.push(ln),ln={},ln[Ci("max",Yn)]=Gn.ideal,xn.optional.push(ln)):(ln[Ci("",Yn)]=Gn.ideal,xn.optional.push(ln))}void 0!==Gn.exact&&"number"!=typeof Gn.exact?(xn.mandatory=xn.mandatory||{},xn.mandatory[Ci("",Yn)]=Gn.exact):["min","max"].forEach(ln=>{void 0!==Gn[ln]&&(xn.mandatory=xn.mandatory||{},xn.mandatory[Ci(ln,Yn)]=Gn[ln])})}),xi.advanced&&(xn.optional=(xn.optional||[]).concat(xi.advanced)),xn},An=function(xi,xn){if(pi.version>=61)return xn(xi);if((xi=JSON.parse(JSON.stringify(xi)))&&"object"==typeof xi.audio){const Yn=function(Gn,Ci,ln){Ci in Gn&&!(ln in Gn)&&(Gn[ln]=Gn[Ci],delete Gn[Ci])};Yn((xi=JSON.parse(JSON.stringify(xi))).audio,"autoGainControl","googAutoGainControl"),Yn(xi.audio,"noiseSuppression","googNoiseSuppression"),xi.audio=cn(xi.audio)}if(xi&&"object"==typeof xi.video){let Yn=xi.video.facingMode;Yn=Yn&&("object"==typeof Yn?Yn:{ideal:Yn});const Gn=pi.version<66;if(Yn&&("user"===Yn.exact||"environment"===Yn.exact||"user"===Yn.ideal||"environment"===Yn.ideal)&&(!ti.mediaDevices.getSupportedConstraints||!ti.mediaDevices.getSupportedConstraints().facingMode||Gn)){let Ci;if(delete xi.video.facingMode,"environment"===Yn.exact||"environment"===Yn.ideal?Ci=["back","rear"]:("user"===Yn.exact||"user"===Yn.ideal)&&(Ci=["front"]),Ci)return ti.mediaDevices.enumerateDevices().then(ln=>{let bi=(ln=ln.filter(Zi=>"videoinput"===Zi.kind)).find(Zi=>Ci.some(Mr=>Zi.label.toLowerCase().includes(Mr)));return!bi&&ln.length&&Ci.includes("back")&&(bi=ln[ln.length-1]),bi&&(xi.video.deviceId=Yn.exact?{exact:bi.deviceId}:{ideal:bi.deviceId}),xi.video=cn(xi.video),T("chrome: "+JSON.stringify(xi)),xn(xi)})}xi.video=cn(xi.video)}return T("chrome: "+JSON.stringify(xi)),xn(xi)},Jn=function(xi){return pi.version>=64?xi:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[xi.name]||xi.name,message:xi.message,constraint:xi.constraint||xi.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}};if(ti.getUserMedia=function(xi,xn,Yn){An(xi,Gn=>{ti.webkitGetUserMedia(Gn,xn,Ci=>{Yn&&Yn(Jn(Ci))})})}.bind(ti),ti.mediaDevices.getUserMedia){const xi=ti.mediaDevices.getUserMedia.bind(ti.mediaDevices);ti.mediaDevices.getUserMedia=function(xn){return An(xn,Yn=>xi(Yn).then(Gn=>{if(Yn.audio&&!Gn.getAudioTracks().length||Yn.video&&!Gn.getVideoTracks().length)throw Gn.getTracks().forEach(Ci=>{Ci.stop()}),new DOMException("","NotFoundError");return Gn},Gn=>Promise.reject(Jn(Gn))))}}}function L(pn,ti){if((!pn.navigator.mediaDevices||!("getDisplayMedia"in pn.navigator.mediaDevices))&&pn.navigator.mediaDevices){if("function"!=typeof ti)return void console.error("shimGetDisplayMedia: getSourceId argument is not a function");pn.navigator.mediaDevices.getDisplayMedia=function(cn){return ti(cn).then(An=>{const Jn=cn.video&&cn.video.width,hi=cn.video&&cn.video.height;return cn.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:An,maxFrameRate:cn.video&&cn.video.frameRate||3}},Jn&&(cn.video.mandatory.maxWidth=Jn),hi&&(cn.video.mandatory.maxHeight=hi),pn.navigator.mediaDevices.getUserMedia(cn)})}}}function E(pn){pn.MediaStream=pn.MediaStream||pn.webkitMediaStream}function g(pn){if("object"==typeof pn&&pn.RTCPeerConnection&&!("ontrack"in pn.RTCPeerConnection.prototype)){Object.defineProperty(pn.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(pi){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=pi)},enumerable:!0,configurable:!0});const ti=pn.RTCPeerConnection.prototype.setRemoteDescription;pn.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=cn=>{cn.stream.addEventListener("addtrack",An=>{let Jn;Jn=pn.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(xi=>xi.track&&xi.track.id===An.track.id):{track:An.track};const hi=new Event("track");hi.track=An.track,hi.receiver=Jn,hi.transceiver={receiver:Jn},hi.streams=[cn.stream],this.dispatchEvent(hi)}),cn.stream.getTracks().forEach(An=>{let Jn;Jn=pn.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(xi=>xi.track&&xi.track.id===An.id):{track:An};const hi=new Event("track");hi.track=An,hi.receiver=Jn,hi.transceiver={receiver:Jn},hi.streams=[cn.stream],this.dispatchEvent(hi)})},this.addEventListener("addstream",this._ontrackpoly)),ti.apply(this,arguments)}}else i(pn,"track",ti=>(ti.transceiver||Object.defineProperty(ti,"transceiver",{value:{receiver:ti.receiver}}),ti))}function R(pn){if("object"==typeof pn&&pn.RTCPeerConnection&&!("getSenders"in pn.RTCPeerConnection.prototype)&&"createDTMFSender"in pn.RTCPeerConnection.prototype){const ti=function(An,Jn){return{track:Jn,get dtmf(){return void 0===this._dtmf&&(this._dtmf="audio"===Jn.kind?An.createDTMFSender(Jn):null),this._dtmf},_pc:An}};if(!pn.RTCPeerConnection.prototype.getSenders){pn.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const An=pn.RTCPeerConnection.prototype.addTrack;pn.RTCPeerConnection.prototype.addTrack=function(xi,xn){let Yn=An.apply(this,arguments);return Yn||(Yn=ti(this,xi),this._senders.push(Yn)),Yn};const Jn=pn.RTCPeerConnection.prototype.removeTrack;pn.RTCPeerConnection.prototype.removeTrack=function(xi){Jn.apply(this,arguments);const xn=this._senders.indexOf(xi);-1!==xn&&this._senders.splice(xn,1)}}const pi=pn.RTCPeerConnection.prototype.addStream;pn.RTCPeerConnection.prototype.addStream=function(Jn){this._senders=this._senders||[],pi.apply(this,[Jn]),Jn.getTracks().forEach(hi=>{this._senders.push(ti(this,hi))})};const cn=pn.RTCPeerConnection.prototype.removeStream;pn.RTCPeerConnection.prototype.removeStream=function(Jn){this._senders=this._senders||[],cn.apply(this,[Jn]),Jn.getTracks().forEach(hi=>{const xi=this._senders.find(xn=>xn.track===hi);xi&&this._senders.splice(this._senders.indexOf(xi),1)})}}else if("object"==typeof pn&&pn.RTCPeerConnection&&"getSenders"in pn.RTCPeerConnection.prototype&&"createDTMFSender"in pn.RTCPeerConnection.prototype&&pn.RTCRtpSender&&!("dtmf"in pn.RTCRtpSender.prototype)){const ti=pn.RTCPeerConnection.prototype.getSenders;pn.RTCPeerConnection.prototype.getSenders=function(){const cn=ti.apply(this,[]);return cn.forEach(An=>An._pc=this),cn},Object.defineProperty(pn.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&(this._dtmf="audio"===this.track.kind?this._pc.createDTMFSender(this.track):null),this._dtmf}})}}function B(pn){if(!pn.RTCPeerConnection)return;const ti=pn.RTCPeerConnection.prototype.getStats;pn.RTCPeerConnection.prototype.getStats=function(){const[cn,An,Jn]=arguments;if(arguments.length>0&&"function"==typeof cn)return ti.apply(this,arguments);if(0===ti.length&&(0===arguments.length||"function"!=typeof cn))return ti.apply(this,[]);const hi=function(xn){const Yn={};return xn.result().forEach(Ci=>{const ln={id:Ci.id,timestamp:Ci.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[Ci.type]||Ci.type};Ci.names().forEach(bi=>{ln[bi]=Ci.stat(bi)}),Yn[ln.id]=ln}),Yn},xi=function(xn){return new Map(Object.keys(xn).map(Yn=>[Yn,xn[Yn]]))};return arguments.length>=2?ti.apply(this,[function(Yn){An(xi(hi(Yn)))},cn]):new Promise((xn,Yn)=>{ti.apply(this,[function(Gn){xn(xi(hi(Gn)))},Yn])}).then(An,Jn)}}function X(pn){if(!("object"==typeof pn&&pn.RTCPeerConnection&&pn.RTCRtpSender&&pn.RTCRtpReceiver))return;if(!("getStats"in pn.RTCRtpSender.prototype)){const pi=pn.RTCPeerConnection.prototype.getSenders;pi&&(pn.RTCPeerConnection.prototype.getSenders=function(){const Jn=pi.apply(this,[]);return Jn.forEach(hi=>hi._pc=this),Jn});const cn=pn.RTCPeerConnection.prototype.addTrack;cn&&(pn.RTCPeerConnection.prototype.addTrack=function(){const Jn=cn.apply(this,arguments);return Jn._pc=this,Jn}),pn.RTCRtpSender.prototype.getStats=function(){const Jn=this;return this._pc.getStats().then(hi=>V(hi,Jn.track,!0))}}if(!("getStats"in pn.RTCRtpReceiver.prototype)){const pi=pn.RTCPeerConnection.prototype.getReceivers;pi&&(pn.RTCPeerConnection.prototype.getReceivers=function(){const An=pi.apply(this,[]);return An.forEach(Jn=>Jn._pc=this),An}),i(pn,"track",cn=>(cn.receiver._pc=cn.srcElement,cn)),pn.RTCRtpReceiver.prototype.getStats=function(){const An=this;return this._pc.getStats().then(Jn=>V(Jn,An.track,!1))}}if(!("getStats"in pn.RTCRtpSender.prototype)||!("getStats"in pn.RTCRtpReceiver.prototype))return;const ti=pn.RTCPeerConnection.prototype.getStats;pn.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof pn.MediaStreamTrack){const cn=arguments[0];let An,Jn,hi;return this.getSenders().forEach(xi=>{xi.track===cn&&(An?hi=!0:An=xi)}),this.getReceivers().forEach(xi=>(xi.track===cn&&(Jn?hi=!0:Jn=xi),xi.track===cn)),hi||An&&Jn?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):An?An.getStats():Jn?Jn.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return ti.apply(this,arguments)}}function H(pn){pn.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(hi=>this._shimmedLocalStreams[hi][0])};const ti=pn.RTCPeerConnection.prototype.addTrack;pn.RTCPeerConnection.prototype.addTrack=function(hi,xi){if(!xi)return ti.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const xn=ti.apply(this,arguments);return this._shimmedLocalStreams[xi.id]?-1===this._shimmedLocalStreams[xi.id].indexOf(xn)&&this._shimmedLocalStreams[xi.id].push(xn):this._shimmedLocalStreams[xi.id]=[xi,xn],xn};const pi=pn.RTCPeerConnection.prototype.addStream;pn.RTCPeerConnection.prototype.addStream=function(hi){this._shimmedLocalStreams=this._shimmedLocalStreams||{},hi.getTracks().forEach(Yn=>{if(this.getSenders().find(Ci=>Ci.track===Yn))throw new DOMException("Track already exists.","InvalidAccessError")});const xi=this.getSenders();pi.apply(this,arguments);const xn=this.getSenders().filter(Yn=>-1===xi.indexOf(Yn));this._shimmedLocalStreams[hi.id]=[hi].concat(xn)};const cn=pn.RTCPeerConnection.prototype.removeStream;pn.RTCPeerConnection.prototype.removeStream=function(hi){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[hi.id],cn.apply(this,arguments)};const An=pn.RTCPeerConnection.prototype.removeTrack;pn.RTCPeerConnection.prototype.removeTrack=function(hi){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},hi&&Object.keys(this._shimmedLocalStreams).forEach(xi=>{const xn=this._shimmedLocalStreams[xi].indexOf(hi);-1!==xn&&this._shimmedLocalStreams[xi].splice(xn,1),1===this._shimmedLocalStreams[xi].length&&delete this._shimmedLocalStreams[xi]}),An.apply(this,arguments)}}function J(pn){if(!pn.RTCPeerConnection)return;const ti=M(pn);if(pn.RTCPeerConnection.prototype.addTrack&&ti.version>=65)return H(pn);const pi=pn.RTCPeerConnection.prototype.getLocalStreams;pn.RTCPeerConnection.prototype.getLocalStreams=function(){const Gn=pi.apply(this);return this._reverseStreams=this._reverseStreams||{},Gn.map(Ci=>this._reverseStreams[Ci.id])};const cn=pn.RTCPeerConnection.prototype.addStream;pn.RTCPeerConnection.prototype.addStream=function(Gn){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},Gn.getTracks().forEach(Ci=>{if(this.getSenders().find(bi=>bi.track===Ci))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[Gn.id]){const Ci=new pn.MediaStream(Gn.getTracks());this._streams[Gn.id]=Ci,this._reverseStreams[Ci.id]=Gn,Gn=Ci}cn.apply(this,[Gn])};const An=pn.RTCPeerConnection.prototype.removeStream;function Jn(Yn,Gn){let Ci=Gn.sdp;return Object.keys(Yn._reverseStreams||[]).forEach(ln=>{const bi=Yn._reverseStreams[ln];Ci=Ci.replace(new RegExp(Yn._streams[bi.id].id,"g"),bi.id)}),new RTCSessionDescription({type:Gn.type,sdp:Ci})}pn.RTCPeerConnection.prototype.removeStream=function(Gn){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},An.apply(this,[this._streams[Gn.id]||Gn]),delete this._reverseStreams[this._streams[Gn.id]?this._streams[Gn.id].id:Gn.id],delete this._streams[Gn.id]},pn.RTCPeerConnection.prototype.addTrack=function(Gn,Ci){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const ln=[].slice.call(arguments,1);if(1!==ln.length||!ln[0].getTracks().find(Mr=>Mr===Gn))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(Mr=>Mr.track===Gn))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const Zi=this._streams[Ci.id];if(Zi)Zi.addTrack(Gn),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const Mr=new pn.MediaStream([Gn]);this._streams[Ci.id]=Mr,this._reverseStreams[Mr.id]=Ci,this.addStream(Mr)}return this.getSenders().find(Mr=>Mr.track===Gn)},["createOffer","createAnswer"].forEach(function(Yn){const Gn=pn.RTCPeerConnection.prototype[Yn],Ci={[Yn](){const ln=arguments;return arguments.length&&"function"==typeof arguments[0]?Gn.apply(this,[Zi=>{const Mr=Jn(this,Zi);ln[0].apply(null,[Mr])},Zi=>{ln[1]&&ln[1].apply(null,Zi)},arguments[2]]):Gn.apply(this,arguments).then(Zi=>Jn(this,Zi))}};pn.RTCPeerConnection.prototype[Yn]=Ci[Yn]});const xi=pn.RTCPeerConnection.prototype.setLocalDescription;pn.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=function hi(Yn,Gn){let Ci=Gn.sdp;return Object.keys(Yn._reverseStreams||[]).forEach(ln=>{const bi=Yn._reverseStreams[ln],Zi=Yn._streams[bi.id];Ci=Ci.replace(new RegExp(bi.id,"g"),Zi.id)}),new RTCSessionDescription({type:Gn.type,sdp:Ci})}(this,arguments[0]),xi.apply(this,arguments)):xi.apply(this,arguments)};const xn=Object.getOwnPropertyDescriptor(pn.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(pn.RTCPeerConnection.prototype,"localDescription",{get(){const Yn=xn.get.apply(this);return""===Yn.type?Yn:Jn(this,Yn)}}),pn.RTCPeerConnection.prototype.removeTrack=function(Gn){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!Gn._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(Gn._pc!==this)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");let ln;this._streams=this._streams||{},Object.keys(this._streams).forEach(bi=>{this._streams[bi].getTracks().find(Mr=>Gn.track===Mr)&&(ln=this._streams[bi])}),ln&&(1===ln.getTracks().length?this.removeStream(this._reverseStreams[ln.id]):ln.removeTrack(Gn.track),this.dispatchEvent(new Event("negotiationneeded")))}}function re(pn){const ti=M(pn);if(!pn.RTCPeerConnection&&pn.webkitRTCPeerConnection&&(pn.RTCPeerConnection=pn.webkitRTCPeerConnection),!pn.RTCPeerConnection)return;const pi=0===pn.RTCPeerConnection.prototype.addIceCandidate.length;ti.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(An){const Jn=pn.RTCPeerConnection.prototype[An],hi={[An](){return arguments[0]=new("addIceCandidate"===An?pn.RTCIceCandidate:pn.RTCSessionDescription)(arguments[0]),Jn.apply(this,arguments)}};pn.RTCPeerConnection.prototype[An]=hi[An]});const cn=pn.RTCPeerConnection.prototype.addIceCandidate;pn.RTCPeerConnection.prototype.addIceCandidate=function(){return pi||arguments[0]?ti.version<78&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():cn.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}function ie(pn){const ti=M(pn);i(pn,"negotiationneeded",pi=>{const cn=pi.target;if(!(ti.version<72||cn.getConfiguration&&"plan-b"===cn.getConfiguration().sdpSemantics)||"stable"===cn.signalingState)return pi})}var ue=n(134),se=n.n(ue);function Z(pn){const ti=pn&&pn.navigator,cn=ti.mediaDevices.getUserMedia.bind(ti.mediaDevices);ti.mediaDevices.getUserMedia=function(An){return cn(An).catch(Jn=>Promise.reject(function(An){return{name:{PermissionDeniedError:"NotAllowedError"}[An.name]||An.name,message:An.message,constraint:An.constraint,toString(){return this.name}}}(Jn)))}}function Se(pn){"getDisplayMedia"in pn.navigator&&pn.navigator.mediaDevices&&(pn.navigator.mediaDevices&&"getDisplayMedia"in pn.navigator.mediaDevices||(pn.navigator.mediaDevices.getDisplayMedia=pn.navigator.getDisplayMedia.bind(pn.navigator)))}function Ce(pn){const ti=M(pn);if(pn.RTCIceGatherer&&(pn.RTCIceCandidate||(pn.RTCIceCandidate=function(An){return An}),pn.RTCSessionDescription||(pn.RTCSessionDescription=function(An){return An}),ti.version<15025)){const cn=Object.getOwnPropertyDescriptor(pn.MediaStreamTrack.prototype,"enabled");Object.defineProperty(pn.MediaStreamTrack.prototype,"enabled",{set(An){cn.set.call(this,An);const Jn=new Event("enabled");Jn.enabled=An,this.dispatchEvent(Jn)}})}pn.RTCRtpSender&&!("dtmf"in pn.RTCRtpSender.prototype)&&Object.defineProperty(pn.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new pn.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null)),this._dtmf}}),pn.RTCDtmfSender&&!pn.RTCDTMFSender&&(pn.RTCDTMFSender=pn.RTCDtmfSender);const pi=se()(pn,ti.version);pn.RTCPeerConnection=function(An){return An&&An.iceServers&&(An.iceServers=function ve(pn,ti){let pi=!1;return(pn=JSON.parse(JSON.stringify(pn))).filter(cn=>{if(cn&&(cn.urls||cn.url)){var An=cn.urls||cn.url;cn.url&&!cn.urls&&m("RTCIceServer.url","RTCIceServer.urls");const Jn="string"==typeof An;return Jn&&(An=[An]),An=An.filter(hi=>{if(0===hi.indexOf("stun:"))return!1;const xi=hi.startsWith("turn")&&!hi.startsWith("turn:[")&&hi.includes("transport=udp");return xi&&!pi?(pi=!0,!0):xi&&!pi}),delete cn.url,cn.urls=Jn?An[0]:An,!!An.length}})}(An.iceServers),c("ICE servers after filtering:",An.iceServers)),new pi(An)},pn.RTCPeerConnection.prototype=pi.prototype}function Be(pn){pn.RTCRtpSender&&!("replaceTrack"in pn.RTCRtpSender.prototype)&&(pn.RTCRtpSender.prototype.replaceTrack=pn.RTCRtpSender.prototype.setTrack)}function Xe(pn){const ti=M(pn),pi=pn&&pn.navigator,cn=pn&&pn.MediaStreamTrack;if(pi.getUserMedia=function(An,Jn,hi){m("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),pi.mediaDevices.getUserMedia(An).then(Jn,hi)},!(ti.version>55&&"autoGainControl"in pi.mediaDevices.getSupportedConstraints())){const An=function(hi,xi,xn){xi in hi&&!(xn in hi)&&(hi[xn]=hi[xi],delete hi[xi])},Jn=pi.mediaDevices.getUserMedia.bind(pi.mediaDevices);if(pi.mediaDevices.getUserMedia=function(hi){return"object"==typeof hi&&"object"==typeof hi.audio&&(hi=JSON.parse(JSON.stringify(hi)),An(hi.audio,"autoGainControl","mozAutoGainControl"),An(hi.audio,"noiseSuppression","mozNoiseSuppression")),Jn(hi)},cn&&cn.prototype.getSettings){const hi=cn.prototype.getSettings;cn.prototype.getSettings=function(){const xi=hi.apply(this,arguments);return An(xi,"mozAutoGainControl","autoGainControl"),An(xi,"mozNoiseSuppression","noiseSuppression"),xi}}if(cn&&cn.prototype.applyConstraints){const hi=cn.prototype.applyConstraints;cn.prototype.applyConstraints=function(xi){return"audio"===this.kind&&"object"==typeof xi&&(xi=JSON.parse(JSON.stringify(xi)),An(xi,"autoGainControl","mozAutoGainControl"),An(xi,"noiseSuppression","mozNoiseSuppression")),hi.apply(this,[xi])}}}}function He(pn,ti){pn.navigator.mediaDevices&&"getDisplayMedia"in pn.navigator.mediaDevices||pn.navigator.mediaDevices&&(pn.navigator.mediaDevices.getDisplayMedia=function(cn){if(!cn||!cn.video){const An=new DOMException("getDisplayMedia without video constraints is undefined");return An.name="NotFoundError",An.code=8,Promise.reject(An)}return!0===cn.video?cn.video={mediaSource:ti}:cn.video.mediaSource=ti,pn.navigator.mediaDevices.getUserMedia(cn)})}function Me(pn){"object"==typeof pn&&pn.RTCTrackEvent&&"receiver"in pn.RTCTrackEvent.prototype&&!("transceiver"in pn.RTCTrackEvent.prototype)&&Object.defineProperty(pn.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Q(pn){const ti=M(pn);if("object"!=typeof pn||!pn.RTCPeerConnection&&!pn.mozRTCPeerConnection)return;if(!pn.RTCPeerConnection&&pn.mozRTCPeerConnection&&(pn.RTCPeerConnection=pn.mozRTCPeerConnection),ti.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(An){const Jn=pn.RTCPeerConnection.prototype[An],hi={[An](){return arguments[0]=new("addIceCandidate"===An?pn.RTCIceCandidate:pn.RTCSessionDescription)(arguments[0]),Jn.apply(this,arguments)}};pn.RTCPeerConnection.prototype[An]=hi[An]}),ti.version<68){const An=pn.RTCPeerConnection.prototype.addIceCandidate;pn.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?arguments[0]&&""===arguments[0].candidate?Promise.resolve():An.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}const pi={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},cn=pn.RTCPeerConnection.prototype.getStats;pn.RTCPeerConnection.prototype.getStats=function(){const[Jn,hi,xi]=arguments;return cn.apply(this,[Jn||null]).then(xn=>{if(ti.version<53&&!hi)try{xn.forEach(Yn=>{Yn.type=pi[Yn.type]||Yn.type})}catch(Yn){if("TypeError"!==Yn.name)throw Yn;xn.forEach((Gn,Ci)=>{xn.set(Ci,Object.assign({},Gn,{type:pi[Gn.type]||Gn.type}))})}return xn}).then(hi,xi)}}function A(pn){if("object"!=typeof pn||!pn.RTCPeerConnection||!pn.RTCRtpSender||pn.RTCRtpSender&&"getStats"in pn.RTCRtpSender.prototype)return;const ti=pn.RTCPeerConnection.prototype.getSenders;ti&&(pn.RTCPeerConnection.prototype.getSenders=function(){const An=ti.apply(this,[]);return An.forEach(Jn=>Jn._pc=this),An});const pi=pn.RTCPeerConnection.prototype.addTrack;pi&&(pn.RTCPeerConnection.prototype.addTrack=function(){const An=pi.apply(this,arguments);return An._pc=this,An}),pn.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function me(pn){if("object"!=typeof pn||!pn.RTCPeerConnection||!pn.RTCRtpSender||pn.RTCRtpSender&&"getStats"in pn.RTCRtpReceiver.prototype)return;const ti=pn.RTCPeerConnection.prototype.getReceivers;ti&&(pn.RTCPeerConnection.prototype.getReceivers=function(){const cn=ti.apply(this,[]);return cn.forEach(An=>An._pc=this),cn}),i(pn,"track",pi=>(pi.receiver._pc=pi.srcElement,pi)),pn.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function ne(pn){!pn.RTCPeerConnection||"removeStream"in pn.RTCPeerConnection.prototype||(pn.RTCPeerConnection.prototype.removeStream=function(pi){m("removeStream","removeTrack"),this.getSenders().forEach(cn=>{cn.track&&pi.getTracks().includes(cn.track)&&this.removeTrack(cn)})})}function G(pn){pn.DataChannel&&!pn.RTCDataChannel&&(pn.RTCDataChannel=pn.DataChannel)}function W(pn){if("object"!=typeof pn||!pn.RTCPeerConnection)return;const ti=pn.RTCPeerConnection.prototype.addTransceiver;ti&&(pn.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];const cn=arguments[1],An=cn&&"sendEncodings"in cn;An&&cn.sendEncodings.forEach(hi=>{if("rid"in hi&&!/^[a-z0-9]{0,16}$/i.test(hi.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in hi&&!(parseFloat(hi.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in hi&&!(parseFloat(hi.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const Jn=ti.apply(this,arguments);if(An){const{sender:hi}=Jn,xi=hi.getParameters();"encodings"in xi||(xi.encodings=cn.sendEncodings,hi.sendEncodings=cn.sendEncodings,this.setParametersPromises.push(hi.setParameters(xi).then(()=>{delete hi.sendEncodings}).catch(()=>{delete hi.sendEncodings})))}return Jn})}function $(pn){if("object"!=typeof pn||!pn.RTCRtpSender)return;const ti=pn.RTCRtpSender.prototype.getParameters;ti&&(pn.RTCRtpSender.prototype.getParameters=function(){var cn=ti.apply(this,arguments);return"sendEncodings"in this?Object.assign({},{encodings:this.sendEncodings},cn):cn})}function le(pn){if("object"!=typeof pn||!pn.RTCPeerConnection)return;const ti=pn.RTCPeerConnection.prototype.createOffer;pn.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>ti.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):ti.apply(this,arguments)}}function Pe(pn){if("object"!=typeof pn||!pn.RTCPeerConnection)return;const ti=pn.RTCPeerConnection.prototype.createAnswer;pn.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>ti.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):ti.apply(this,arguments)}}function Fe(pn){if("object"==typeof pn&&pn.RTCPeerConnection){if("getLocalStreams"in pn.RTCPeerConnection.prototype||(pn.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in pn.RTCPeerConnection.prototype)){const ti=pn.RTCPeerConnection.prototype.addTrack;pn.RTCPeerConnection.prototype.addStream=function(cn){this._localStreams||(this._localStreams=[]),this._localStreams.includes(cn)||this._localStreams.push(cn),cn.getAudioTracks().forEach(An=>ti.call(this,An,cn)),cn.getVideoTracks().forEach(An=>ti.call(this,An,cn))},pn.RTCPeerConnection.prototype.addTrack=function(cn,...An){return An&&An.forEach(Jn=>{this._localStreams?this._localStreams.includes(Jn)||this._localStreams.push(Jn):this._localStreams=[Jn]}),ti.apply(this,arguments)}}"removeStream"in pn.RTCPeerConnection.prototype||(pn.RTCPeerConnection.prototype.removeStream=function(pi){this._localStreams||(this._localStreams=[]);const cn=this._localStreams.indexOf(pi);if(-1===cn)return;this._localStreams.splice(cn,1);const An=pi.getTracks();this.getSenders().forEach(Jn=>{An.includes(Jn.track)&&this.removeTrack(Jn)})})}}function At(pn){if("object"==typeof pn&&pn.RTCPeerConnection&&("getRemoteStreams"in pn.RTCPeerConnection.prototype||(pn.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in pn.RTCPeerConnection.prototype))){Object.defineProperty(pn.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(pi){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=pi),this.addEventListener("track",this._onaddstreampoly=cn=>{cn.streams.forEach(An=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(An))return;this._remoteStreams.push(An);const Jn=new Event("addstream");Jn.stream=An,this.dispatchEvent(Jn)})})}});const ti=pn.RTCPeerConnection.prototype.setRemoteDescription;pn.RTCPeerConnection.prototype.setRemoteDescription=function(){const cn=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(An){An.streams.forEach(Jn=>{if(cn._remoteStreams||(cn._remoteStreams=[]),cn._remoteStreams.indexOf(Jn)>=0)return;cn._remoteStreams.push(Jn);const hi=new Event("addstream");hi.stream=Jn,cn.dispatchEvent(hi)})}),ti.apply(cn,arguments)}}}function Le(pn){if("object"!=typeof pn||!pn.RTCPeerConnection)return;const ti=pn.RTCPeerConnection.prototype,pi=ti.createOffer,cn=ti.createAnswer,An=ti.setLocalDescription,Jn=ti.setRemoteDescription,hi=ti.addIceCandidate;ti.createOffer=function(Yn,Gn){const ln=pi.apply(this,[arguments.length>=2?arguments[2]:arguments[0]]);return Gn?(ln.then(Yn,Gn),Promise.resolve()):ln},ti.createAnswer=function(Yn,Gn){const ln=cn.apply(this,[arguments.length>=2?arguments[2]:arguments[0]]);return Gn?(ln.then(Yn,Gn),Promise.resolve()):ln};let xi=function(xn,Yn,Gn){const Ci=An.apply(this,[xn]);return Gn?(Ci.then(Yn,Gn),Promise.resolve()):Ci};ti.setLocalDescription=xi,xi=function(xn,Yn,Gn){const Ci=Jn.apply(this,[xn]);return Gn?(Ci.then(Yn,Gn),Promise.resolve()):Ci},ti.setRemoteDescription=xi,xi=function(xn,Yn,Gn){const Ci=hi.apply(this,[xn]);return Gn?(Ci.then(Yn,Gn),Promise.resolve()):Ci},ti.addIceCandidate=xi}function Et(pn){const ti=pn&&pn.navigator;if(ti.mediaDevices&&ti.mediaDevices.getUserMedia){const pi=ti.mediaDevices,cn=pi.getUserMedia.bind(pi);ti.mediaDevices.getUserMedia=An=>cn($e(An))}!ti.getUserMedia&&ti.mediaDevices&&ti.mediaDevices.getUserMedia&&(ti.getUserMedia=function(cn,An,Jn){ti.mediaDevices.getUserMedia(cn).then(An,Jn)}.bind(ti))}function $e(pn){return pn&&void 0!==pn.video?Object.assign({},pn,{video:I(pn.video)}):pn}function Ze(pn){if(!pn.RTCPeerConnection)return;const ti=pn.RTCPeerConnection;pn.RTCPeerConnection=function(cn,An){if(cn&&cn.iceServers){const Jn=[];for(let hi=0;hi<cn.iceServers.length;hi++){let xi=cn.iceServers[hi];!xi.hasOwnProperty("urls")&&xi.hasOwnProperty("url")?(m("RTCIceServer.url","RTCIceServer.urls"),xi=JSON.parse(JSON.stringify(xi)),xi.urls=xi.url,delete xi.url,Jn.push(xi)):Jn.push(cn.iceServers[hi])}cn.iceServers=Jn}return new ti(cn,An)},pn.RTCPeerConnection.prototype=ti.prototype,"generateCertificate"in ti&&Object.defineProperty(pn.RTCPeerConnection,"generateCertificate",{get:()=>ti.generateCertificate})}function Qe(pn){"object"==typeof pn&&pn.RTCTrackEvent&&"receiver"in pn.RTCTrackEvent.prototype&&!("transceiver"in pn.RTCTrackEvent.prototype)&&Object.defineProperty(pn.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Ve(pn){const ti=pn.RTCPeerConnection.prototype.createOffer;pn.RTCPeerConnection.prototype.createOffer=function(cn){if(cn){typeof cn.offerToReceiveAudio<"u"&&(cn.offerToReceiveAudio=!!cn.offerToReceiveAudio);const An=this.getTransceivers().find(hi=>"audio"===hi.receiver.track.kind);!1===cn.offerToReceiveAudio&&An?"sendrecv"===An.direction?An.setDirection?An.setDirection("sendonly"):An.direction="sendonly":"recvonly"===An.direction&&(An.setDirection?An.setDirection("inactive"):An.direction="inactive"):!0===cn.offerToReceiveAudio&&!An&&this.addTransceiver("audio"),typeof cn.offerToReceiveVideo<"u"&&(cn.offerToReceiveVideo=!!cn.offerToReceiveVideo);const Jn=this.getTransceivers().find(hi=>"video"===hi.receiver.track.kind);!1===cn.offerToReceiveVideo&&Jn?"sendrecv"===Jn.direction?Jn.setDirection?Jn.setDirection("sendonly"):Jn.direction="sendonly":"recvonly"===Jn.direction&&(Jn.setDirection?Jn.setDirection("inactive"):Jn.direction="inactive"):!0===cn.offerToReceiveVideo&&!Jn&&this.addTransceiver("video")}return ti.apply(this,arguments)}}function nt(pn){"object"!=typeof pn||pn.AudioContext||(pn.AudioContext=pn.webkitAudioContext)}var Ot=n(985),at=n.n(Ot);function It(pn){if(!pn.RTCIceCandidate||pn.RTCIceCandidate&&"foundation"in pn.RTCIceCandidate.prototype)return;const ti=pn.RTCIceCandidate;pn.RTCIceCandidate=function(cn){if("object"==typeof cn&&cn.candidate&&0===cn.candidate.indexOf("a=")&&((cn=JSON.parse(JSON.stringify(cn))).candidate=cn.candidate.substr(2)),cn.candidate&&cn.candidate.length){const An=new ti(cn),Jn=at().parseCandidate(cn.candidate),hi=Object.assign(An,Jn);return hi.toJSON=function(){return{candidate:hi.candidate,sdpMid:hi.sdpMid,sdpMLineIndex:hi.sdpMLineIndex,usernameFragment:hi.usernameFragment}},hi}return new ti(cn)},pn.RTCIceCandidate.prototype=ti.prototype,i(pn,"icecandidate",pi=>(pi.candidate&&Object.defineProperty(pi,"candidate",{value:new pn.RTCIceCandidate(pi.candidate),writable:"false"}),pi))}function We(pn){if(!pn.RTCPeerConnection)return;const ti=M(pn);"sctp"in pn.RTCPeerConnection.prototype||Object.defineProperty(pn.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});const hi=pn.RTCPeerConnection.prototype.setRemoteDescription;pn.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===ti.browser&&ti.version>=76){const{sdpSemantics:xn}=this.getConfiguration();"plan-b"===xn&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(function(xi){if(!xi||!xi.sdp)return!1;const xn=at().splitSections(xi.sdp);return xn.shift(),xn.some(Yn=>{const Gn=at().parseMLine(Yn);return Gn&&"application"===Gn.kind&&-1!==Gn.protocol.indexOf("SCTP")})}(arguments[0])){const xn=function(xi){const xn=xi.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===xn||xn.length<2)return-1;const Yn=parseInt(xn[1],10);return Yn!=Yn?-1:Yn}(arguments[0]),Yn=function(xi){let xn=65536;return"firefox"===ti.browser&&(xn=ti.version<57?-1===xi?16384:2147483637:ti.version<60?57===ti.version?65535:65536:2147483637),xn}(xn),Gn=function(xi,xn){let Yn=65536;"firefox"===ti.browser&&57===ti.version&&(Yn=65535);const Gn=at().matchPrefix(xi.sdp,"a=max-message-size:");return Gn.length>0?Yn=parseInt(Gn[0].substr(19),10):"firefox"===ti.browser&&-1!==xn&&(Yn=2147483637),Yn}(arguments[0],xn);let Ci;Ci=0===Yn&&0===Gn?Number.POSITIVE_INFINITY:0===Yn||0===Gn?Math.max(Yn,Gn):Math.min(Yn,Gn);const ln={};Object.defineProperty(ln,"maxMessageSize",{get:()=>Ci}),this._sctp=ln}return hi.apply(this,arguments)}}function xe(pn){if(!pn.RTCPeerConnection||!("createDataChannel"in pn.RTCPeerConnection.prototype))return;function ti(cn,An){const Jn=cn.send;cn.send=function(){const xi=arguments[0];if("open"===cn.readyState&&An.sctp&&(xi.length||xi.size||xi.byteLength)>An.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+An.sctp.maxMessageSize+" bytes)");return Jn.apply(cn,arguments)}}const pi=pn.RTCPeerConnection.prototype.createDataChannel;pn.RTCPeerConnection.prototype.createDataChannel=function(){const An=pi.apply(this,arguments);return ti(An,this),An},i(pn,"datachannel",cn=>(ti(cn.channel,cn.target),cn))}function lt(pn){if(!pn.RTCPeerConnection||"connectionState"in pn.RTCPeerConnection.prototype)return;const ti=pn.RTCPeerConnection.prototype;Object.defineProperty(ti,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(ti,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(pi){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),pi&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=pi)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(pi=>{const cn=ti[pi];ti[pi]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=An=>{const Jn=An.target;if(Jn._lastConnectionState!==Jn.connectionState){Jn._lastConnectionState=Jn.connectionState;const hi=new Event("connectionstatechange",An);Jn.dispatchEvent(hi)}return An},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),cn.apply(this,arguments)}})}function ft(pn){if(!pn.RTCPeerConnection)return;const ti=M(pn);if("chrome"===ti.browser&&ti.version>=71||"safari"===ti.browser&&ti.version>=605)return;const pi=pn.RTCPeerConnection.prototype.setRemoteDescription;pn.RTCPeerConnection.prototype.setRemoteDescription=function(An){return An&&An.sdp&&-1!==An.sdp.indexOf("\na=extmap-allow-mixed")&&(An.sdp=An.sdp.split("\n").filter(Jn=>"a=extmap-allow-mixed"!==Jn.trim()).join("\n")),pi.apply(this,arguments)}}!function ht({window:pn}={},ti={shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0}){const pi=c,cn=M(pn),An={browserDetails:cn,commonShim:f,extractVersion:_,disableLog:r,disableWarnings:a};switch(cn.browser){case"chrome":if(!d||!re||!ti.shimChrome)return pi("Chrome shim is not included in this adapter release."),An;if(null===cn.version)return pi("Chrome shim can not determine version, not shimming."),An;pi("adapter.js shimming chrome."),An.browserShim=d,N(pn),E(pn),re(pn),g(pn),J(pn),R(pn),B(pn),X(pn),ie(pn),It(pn),lt(pn),We(pn),xe(pn),ft(pn);break;case"firefox":if(!S||!Q||!ti.shimFirefox)return pi("Firefox shim is not included in this adapter release."),An;pi("adapter.js shimming firefox."),An.browserShim=S,Xe(pn),Q(pn),Me(pn),ne(pn),A(pn),me(pn),G(pn),W(pn),$(pn),le(pn),Pe(pn),It(pn),lt(pn),We(pn),xe(pn);break;case"edge":if(!v||!Ce||!ti.shimEdge)return pi("MS edge shim is not included in this adapter release."),An;pi("adapter.js shimming edge."),An.browserShim=v,Z(pn),Se(pn),Ce(pn),Be(pn),We(pn),xe(pn);break;case"safari":if(!y||!ti.shimSafari)return pi("Safari shim is not included in this adapter release."),An;pi("adapter.js shimming safari."),An.browserShim=y,Ze(pn),Ve(pn),Le(pn),Fe(pn),At(pn),Qe(pn),Et(pn),nt(pn),It(pn),We(pn),xe(pn),ft(pn);break;default:pi("Unsupported browser!")}}({window}),n(306);var tt=NetworkTest.getNetworkTestExceptionTelemetryEvent,rt=NetworkTest.getNetworkTestHttpTelemetryEvent,et=NetworkTest.GdprLevel,St=NetworkTest.BooleanType,Gt=NetworkTest.EventName,yt=NetworkTest.NetworkTestApp,Wt=NetworkTest.ConfigureNetworkTestSettings,ke=NetworkTest.NetworkTestSettings,be=NetworkTest.IsValidIPv4,Ae=NetworkTest.GetRandNumericString,qe=NetworkTest.IsChromium,Lt=NetworkTest.IsChrome,Zt=NetworkTest.IsSafari,fn=NetworkTest.performHttpRequest,hn=NetworkTest.getPlatform,On=NetworkTest.getBrowser,fi=NetworkTest.getAppUserAgent,Ji=NetworkTest.IsTouchDevice,Fi=NetworkTest.getNewGuid,bt=NetworkTest.isChromeVersionAtLeast,bn=NetworkTest.isSafariVersionAtLeast,Pt=NetworkTest.isSafariWebKitVersionAtLeast,jt=NetworkTest.getHttpNtErrorCode,gn=NetworkTest.CLIENT_IDENTIFICATION,ui=NetworkTest.CLIENT_VERSION,Ii=NetworkTest.DEFAULT_PORT,pr=NetworkTest.UNDEFINED_SESSION_ID,zr=NetworkTest.DefaultHttpRequestOptions,Cn=NetworkTest.CHANGELIST})(),Bt.exports=l})()},56123:(Bt,z,s)=>{"use strict";var n=s(8536).default;Object.defineProperty(z,Symbol.toStringTag,{value:"Module"});const l=s(352),d=s(55561);let v=!0,S=!0;function y(x,h,b){const k=x.match(h);return k&&k.length>=b&&parseInt(k[b],10)}function f(x,h,b){if(!x.RTCPeerConnection)return;const k=x.RTCPeerConnection.prototype,ee=k.addEventListener;k.addEventListener=function(we,ze){if(we!==h)return ee.apply(this,arguments);const pt=wt=>{const $t=b(wt);$t&&(ze.handleEvent?ze.handleEvent($t):ze($t))};return this._eventMap=this._eventMap||{},this._eventMap[h]||(this._eventMap[h]=new Map),this._eventMap[h].set(ze,pt),ee.apply(this,[we,pt])};const he=k.removeEventListener;k.removeEventListener=function(we,ze){if(we!==h||!this._eventMap||!this._eventMap[h])return he.apply(this,arguments);if(!this._eventMap[h].has(ze))return he.apply(this,arguments);const pt=this._eventMap[h].get(ze);return this._eventMap[h].delete(ze),0===this._eventMap[h].size&&delete this._eventMap[h],0===Object.keys(this._eventMap).length&&delete this._eventMap,he.apply(this,[we,pt])},Object.defineProperty(k,"on"+h,{get(){return this["_on"+h]},set(we){this["_on"+h]&&(this.removeEventListener(h,this["_on"+h]),delete this["_on"+h]),we&&this.addEventListener(h,this["_on"+h]=we)},enumerable:!0,configurable:!0})}function O(x){return"boolean"!=typeof x?new Error("Argument type: "+typeof x+". Please use a boolean."):(v=x,x?"adapter.js logging disabled":"adapter.js logging enabled")}function P(x){return"boolean"!=typeof x?new Error("Argument type: "+typeof x+". Please use a boolean."):(S=!x,"adapter.js deprecation warnings "+(x?"disabled":"enabled"))}function _(){if("object"==typeof window){if(v)return;typeof console<"u"&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function i(x,h){S&&console.warn(x+" is deprecated, please use "+h+" instead.")}function r(x){const{navigator:h}=x,b={browser:null,version:null};if(void 0===x||!x.navigator)return b.browser="Not a browser.",b;if(h.mozGetUserMedia)b.browser="firefox",b.version=y(h.userAgent,/Firefox\/(\d+)\./,1);else if(h.webkitGetUserMedia||!1===x.isSecureContext&&x.webkitRTCPeerConnection&&!x.RTCIceGatherer)b.browser="chrome",b.version=y(h.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(h.mediaDevices&&h.userAgent.match(/Edge\/(\d+).(\d+)$/))b.browser="edge",b.version=y(h.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!x.RTCPeerConnection||!h.userAgent.match(/AppleWebKit\/(\d+)\./))return b.browser="Not a supported browser.",b;b.browser="safari",b.version=y(h.userAgent,/AppleWebKit\/(\d+)\./,1),b.supportsUnifiedPlan=x.RTCRtpTransceiver&&"currentDirection"in x.RTCRtpTransceiver.prototype}return b}function a(x){return"[object Object]"===Object.prototype.toString.call(x)}function c(x){return a(x)?Object.keys(x).reduce(function(h,b){const k=a(x[b]),ee=k?c(x[b]):x[b],he=k&&!Object.keys(ee).length;return void 0===ee||he?h:Object.assign(h,{[b]:ee})},{}):x}function m(x,h,b){h&&!b.has(h.id)&&(b.set(h.id,h),Object.keys(h).forEach(k=>{k.endsWith("Id")?m(x,x.get(h[k]),b):k.endsWith("Ids")&&h[k].forEach(ee=>{m(x,x.get(ee),b)})}))}function M(x,h,b){const k=b?"outbound-rtp":"inbound-rtp",ee=new Map;if(null===h)return ee;const he=[];return x.forEach(we=>{"track"===we.type&&we.trackIdentifier===h.id&&he.push(we)}),he.forEach(we=>{x.forEach(ze=>{ze.type===k&&ze.trackId===we.id&&m(x,ze,ee)})}),ee}const D=_;function I(x){const h=x&&x.navigator;if(!h.mediaDevices)return;const b=r(x),k=function(we){if("object"!=typeof we||we.mandatory||we.optional)return we;const ze={};return Object.keys(we).forEach(pt=>{if("require"===pt||"advanced"===pt||"mediaSource"===pt)return;const wt="object"==typeof we[pt]?we[pt]:{ideal:we[pt]};void 0!==wt.exact&&"number"==typeof wt.exact&&(wt.min=wt.max=wt.exact);const $t=function(an,zt){return an?an+zt.charAt(0).toUpperCase()+zt.slice(1):"deviceId"===zt?"sourceId":zt};if(void 0!==wt.ideal){ze.optional=ze.optional||[];let an={};"number"==typeof wt.ideal?(an[$t("min",pt)]=wt.ideal,ze.optional.push(an),an={},an[$t("max",pt)]=wt.ideal,ze.optional.push(an)):(an[$t("",pt)]=wt.ideal,ze.optional.push(an))}void 0!==wt.exact&&"number"!=typeof wt.exact?(ze.mandatory=ze.mandatory||{},ze.mandatory[$t("",pt)]=wt.exact):["min","max"].forEach(an=>{void 0!==wt[an]&&(ze.mandatory=ze.mandatory||{},ze.mandatory[$t(an,pt)]=wt[an])})}),we.advanced&&(ze.optional=(ze.optional||[]).concat(we.advanced)),ze},ee=function(we,ze){if(b.version>=61)return ze(we);if((we=JSON.parse(JSON.stringify(we)))&&"object"==typeof we.audio){const pt=function(wt,$t,an){$t in wt&&!(an in wt)&&(wt[an]=wt[$t],delete wt[$t])};pt((we=JSON.parse(JSON.stringify(we))).audio,"autoGainControl","googAutoGainControl"),pt(we.audio,"noiseSuppression","googNoiseSuppression"),we.audio=k(we.audio)}if(we&&"object"==typeof we.video){let pt=we.video.facingMode;pt=pt&&("object"==typeof pt?pt:{ideal:pt});const wt=b.version<66;if(pt&&("user"===pt.exact||"environment"===pt.exact||"user"===pt.ideal||"environment"===pt.ideal)&&(!h.mediaDevices.getSupportedConstraints||!h.mediaDevices.getSupportedConstraints().facingMode||wt)){let $t;if(delete we.video.facingMode,"environment"===pt.exact||"environment"===pt.ideal?$t=["back","rear"]:"user"!==pt.exact&&"user"!==pt.ideal||($t=["front"]),$t)return h.mediaDevices.enumerateDevices().then(an=>{let zt=(an=an.filter(mn=>"videoinput"===mn.kind)).find(mn=>$t.some(kn=>mn.label.toLowerCase().includes(kn)));return!zt&&an.length&&$t.includes("back")&&(zt=an[an.length-1]),zt&&(we.video.deviceId=pt.exact?{exact:zt.deviceId}:{ideal:zt.deviceId}),we.video=k(we.video),D("chrome: "+JSON.stringify(we)),ze(we)})}we.video=k(we.video)}return D("chrome: "+JSON.stringify(we)),ze(we)},he=function(we){return b.version>=64?we:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[we.name]||we.name,message:we.message,constraint:we.constraint||we.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}};if(h.getUserMedia=function(we,ze,pt){ee(we,wt=>{h.webkitGetUserMedia(wt,ze,$t=>{pt&&pt(he($t))})})}.bind(h),h.mediaDevices.getUserMedia){const we=h.mediaDevices.getUserMedia.bind(h.mediaDevices);h.mediaDevices.getUserMedia=function(ze){return ee(ze,pt=>we(pt).then(wt=>{if(pt.audio&&!wt.getAudioTracks().length||pt.video&&!wt.getVideoTracks().length)throw wt.getTracks().forEach($t=>{$t.stop()}),new DOMException("","NotFoundError");return wt},wt=>Promise.reject(he(wt))))}}}function U(x){x.MediaStream=x.MediaStream||x.webkitMediaStream}function V(x){if("object"==typeof x&&x.RTCPeerConnection&&!("ontrack"in x.RTCPeerConnection.prototype)){Object.defineProperty(x.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(b){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=b)},enumerable:!0,configurable:!0});const h=x.RTCPeerConnection.prototype.setRemoteDescription;x.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=b=>{b.stream.addEventListener("addtrack",k=>{let ee;ee=x.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(we=>we.track&&we.track.id===k.track.id):{track:k.track};const he=new Event("track");he.track=k.track,he.receiver=ee,he.transceiver={receiver:ee},he.streams=[b.stream],this.dispatchEvent(he)}),b.stream.getTracks().forEach(k=>{let ee;ee=x.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(we=>we.track&&we.track.id===k.id):{track:k};const he=new Event("track");he.track=k,he.receiver=ee,he.transceiver={receiver:ee},he.streams=[b.stream],this.dispatchEvent(he)})},this.addEventListener("addstream",this._ontrackpoly)),h.apply(this,arguments)}}else f(x,"track",h=>(h.transceiver||Object.defineProperty(h,"transceiver",{value:{receiver:h.receiver}}),h))}function T(x){if("object"==typeof x&&x.RTCPeerConnection&&!("getSenders"in x.RTCPeerConnection.prototype)&&"createDTMFSender"in x.RTCPeerConnection.prototype){const h=function(ee,he){return{track:he,get dtmf(){return void 0===this._dtmf&&(this._dtmf="audio"===he.kind?ee.createDTMFSender(he):null),this._dtmf},_pc:ee}};if(!x.RTCPeerConnection.prototype.getSenders){x.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const ee=x.RTCPeerConnection.prototype.addTrack;x.RTCPeerConnection.prototype.addTrack=function(we,ze){let pt=ee.apply(this,arguments);return pt||(pt=h(this,we),this._senders.push(pt)),pt};const he=x.RTCPeerConnection.prototype.removeTrack;x.RTCPeerConnection.prototype.removeTrack=function(we){he.apply(this,arguments);const ze=this._senders.indexOf(we);-1!==ze&&this._senders.splice(ze,1)}}const b=x.RTCPeerConnection.prototype.addStream;x.RTCPeerConnection.prototype.addStream=function(ee){this._senders=this._senders||[],b.apply(this,[ee]),ee.getTracks().forEach(he=>{this._senders.push(h(this,he))})};const k=x.RTCPeerConnection.prototype.removeStream;x.RTCPeerConnection.prototype.removeStream=function(ee){this._senders=this._senders||[],k.apply(this,[ee]),ee.getTracks().forEach(he=>{const we=this._senders.find(ze=>ze.track===he);we&&this._senders.splice(this._senders.indexOf(we),1)})}}else if("object"==typeof x&&x.RTCPeerConnection&&"getSenders"in x.RTCPeerConnection.prototype&&"createDTMFSender"in x.RTCPeerConnection.prototype&&x.RTCRtpSender&&!("dtmf"in x.RTCRtpSender.prototype)){const h=x.RTCPeerConnection.prototype.getSenders;x.RTCPeerConnection.prototype.getSenders=function(){const b=h.apply(this,[]);return b.forEach(k=>k._pc=this),b},Object.defineProperty(x.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&(this._dtmf="audio"===this.track.kind?this._pc.createDTMFSender(this.track):null),this._dtmf}})}}function N(x){if(!x.RTCPeerConnection)return;const h=x.RTCPeerConnection.prototype.getStats;x.RTCPeerConnection.prototype.getStats=function(){const[b,k,ee]=arguments;if(arguments.length>0&&"function"==typeof b)return h.apply(this,arguments);if(0===h.length&&(0===arguments.length||"function"!=typeof b))return h.apply(this,[]);const he=function(ze){const pt={};return ze.result().forEach(wt=>{const $t={id:wt.id,timestamp:wt.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[wt.type]||wt.type};wt.names().forEach(an=>{$t[an]=wt.stat(an)}),pt[$t.id]=$t}),pt},we=function(ze){return new Map(Object.keys(ze).map(pt=>[pt,ze[pt]]))};return arguments.length>=2?h.apply(this,[function(pt){k(we(he(pt)))},b]):new Promise((ze,pt)=>{h.apply(this,[function(wt){ze(we(he(wt)))},pt])}).then(k,ee)}}function L(x){if(!("object"==typeof x&&x.RTCPeerConnection&&x.RTCRtpSender&&x.RTCRtpReceiver))return;if(!("getStats"in x.RTCRtpSender.prototype)){const b=x.RTCPeerConnection.prototype.getSenders;b&&(x.RTCPeerConnection.prototype.getSenders=function(){const ee=b.apply(this,[]);return ee.forEach(he=>he._pc=this),ee});const k=x.RTCPeerConnection.prototype.addTrack;k&&(x.RTCPeerConnection.prototype.addTrack=function(){const ee=k.apply(this,arguments);return ee._pc=this,ee}),x.RTCRtpSender.prototype.getStats=function(){const ee=this;return this._pc.getStats().then(he=>M(he,ee.track,!0))}}if(!("getStats"in x.RTCRtpReceiver.prototype)){const b=x.RTCPeerConnection.prototype.getReceivers;b&&(x.RTCPeerConnection.prototype.getReceivers=function(){const k=b.apply(this,[]);return k.forEach(ee=>ee._pc=this),k}),f(x,"track",k=>(k.receiver._pc=k.srcElement,k)),x.RTCRtpReceiver.prototype.getStats=function(){const k=this;return this._pc.getStats().then(ee=>M(ee,k.track,!1))}}if(!("getStats"in x.RTCRtpSender.prototype)||!("getStats"in x.RTCRtpReceiver.prototype))return;const h=x.RTCPeerConnection.prototype.getStats;x.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof x.MediaStreamTrack){const b=arguments[0];let k,ee,he;return this.getSenders().forEach(we=>{we.track===b&&(k?he=!0:k=we)}),this.getReceivers().forEach(we=>(we.track===b&&(ee?he=!0:ee=we),we.track===b)),he||k&&ee?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):k?k.getStats():ee?ee.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return h.apply(this,arguments)}}function E(x){x.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(he=>this._shimmedLocalStreams[he][0])};const h=x.RTCPeerConnection.prototype.addTrack;x.RTCPeerConnection.prototype.addTrack=function(he,we){if(!we)return h.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const ze=h.apply(this,arguments);return this._shimmedLocalStreams[we.id]?-1===this._shimmedLocalStreams[we.id].indexOf(ze)&&this._shimmedLocalStreams[we.id].push(ze):this._shimmedLocalStreams[we.id]=[we,ze],ze};const b=x.RTCPeerConnection.prototype.addStream;x.RTCPeerConnection.prototype.addStream=function(he){this._shimmedLocalStreams=this._shimmedLocalStreams||{},he.getTracks().forEach(pt=>{if(this.getSenders().find(wt=>wt.track===pt))throw new DOMException("Track already exists.","InvalidAccessError")});const we=this.getSenders();b.apply(this,arguments);const ze=this.getSenders().filter(pt=>-1===we.indexOf(pt));this._shimmedLocalStreams[he.id]=[he].concat(ze)};const k=x.RTCPeerConnection.prototype.removeStream;x.RTCPeerConnection.prototype.removeStream=function(he){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[he.id],k.apply(this,arguments)};const ee=x.RTCPeerConnection.prototype.removeTrack;x.RTCPeerConnection.prototype.removeTrack=function(he){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},he&&Object.keys(this._shimmedLocalStreams).forEach(we=>{const ze=this._shimmedLocalStreams[we].indexOf(he);-1!==ze&&this._shimmedLocalStreams[we].splice(ze,1),1===this._shimmedLocalStreams[we].length&&delete this._shimmedLocalStreams[we]}),ee.apply(this,arguments)}}function g(x){if(!x.RTCPeerConnection)return;const h=r(x);if(x.RTCPeerConnection.prototype.addTrack&&h.version>=65)return E(x);const b=x.RTCPeerConnection.prototype.getLocalStreams;x.RTCPeerConnection.prototype.getLocalStreams=function(){const pt=b.apply(this);return this._reverseStreams=this._reverseStreams||{},pt.map(wt=>this._reverseStreams[wt.id])};const k=x.RTCPeerConnection.prototype.addStream;x.RTCPeerConnection.prototype.addStream=function(pt){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},pt.getTracks().forEach(wt=>{if(this.getSenders().find($t=>$t.track===wt))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[pt.id]){const wt=new x.MediaStream(pt.getTracks());this._streams[pt.id]=wt,this._reverseStreams[wt.id]=pt,pt=wt}k.apply(this,[pt])};const ee=x.RTCPeerConnection.prototype.removeStream;function he(pt,wt){let $t=wt.sdp;return Object.keys(pt._reverseStreams||[]).forEach(an=>{const zt=pt._reverseStreams[an];$t=$t.replace(new RegExp(pt._streams[zt.id].id,"g"),zt.id)}),new RTCSessionDescription({type:wt.type,sdp:$t})}x.RTCPeerConnection.prototype.removeStream=function(pt){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},ee.apply(this,[this._streams[pt.id]||pt]),delete this._reverseStreams[this._streams[pt.id]?this._streams[pt.id].id:pt.id],delete this._streams[pt.id]},x.RTCPeerConnection.prototype.addTrack=function(pt,wt){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const $t=[].slice.call(arguments,1);if(1!==$t.length||!$t[0].getTracks().find(zt=>zt===pt))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(zt=>zt.track===pt))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const an=this._streams[wt.id];if(an)an.addTrack(pt),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const zt=new x.MediaStream([pt]);this._streams[wt.id]=zt,this._reverseStreams[zt.id]=wt,this.addStream(zt)}return this.getSenders().find(zt=>zt.track===pt)},["createOffer","createAnswer"].forEach(function(pt){const wt=x.RTCPeerConnection.prototype[pt],$t={[pt](){const an=arguments;return arguments.length&&"function"==typeof arguments[0]?wt.apply(this,[zt=>{const mn=he(this,zt);an[0].apply(null,[mn])},zt=>{an[1]&&an[1].apply(null,zt)},arguments[2]]):wt.apply(this,arguments).then(zt=>he(this,zt))}};x.RTCPeerConnection.prototype[pt]=$t[pt]});const we=x.RTCPeerConnection.prototype.setLocalDescription;x.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=function(pt,wt){let $t=wt.sdp;return Object.keys(pt._reverseStreams||[]).forEach(an=>{const zt=pt._reverseStreams[an],mn=pt._streams[zt.id];$t=$t.replace(new RegExp(zt.id,"g"),mn.id)}),new RTCSessionDescription({type:wt.type,sdp:$t})}(this,arguments[0]),we.apply(this,arguments)):we.apply(this,arguments)};const ze=Object.getOwnPropertyDescriptor(x.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(x.RTCPeerConnection.prototype,"localDescription",{get(){const pt=ze.get.apply(this);return""===pt.type?pt:he(this,pt)}}),x.RTCPeerConnection.prototype.removeTrack=function(pt){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!pt._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(pt._pc!==this)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");let wt;this._streams=this._streams||{},Object.keys(this._streams).forEach($t=>{this._streams[$t].getTracks().find(an=>pt.track===an)&&(wt=this._streams[$t])}),wt&&(1===wt.getTracks().length?this.removeStream(this._reverseStreams[wt.id]):wt.removeTrack(pt.track),this.dispatchEvent(new Event("negotiationneeded")))}}function R(x){const h=r(x);if(!x.RTCPeerConnection&&x.webkitRTCPeerConnection&&(x.RTCPeerConnection=x.webkitRTCPeerConnection),!x.RTCPeerConnection)return;const b=0===x.RTCPeerConnection.prototype.addIceCandidate.length;h.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(ee){const he=x.RTCPeerConnection.prototype[ee],we={[ee](){return arguments[0]=new("addIceCandidate"===ee?x.RTCIceCandidate:x.RTCSessionDescription)(arguments[0]),he.apply(this,arguments)}};x.RTCPeerConnection.prototype[ee]=we[ee]});const k=x.RTCPeerConnection.prototype.addIceCandidate;x.RTCPeerConnection.prototype.addIceCandidate=function(){return b||arguments[0]?h.version<78&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():k.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}function B(x){const h=r(x);f(x,"negotiationneeded",b=>{const k=b.target;if(!(h.version<72||k.getConfiguration&&"plan-b"===k.getConfiguration().sdpSemantics)||"stable"===k.signalingState)return b})}const X=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:B,shimAddTrackRemoveTrack:g,shimAddTrackRemoveTrackWithNative:E,shimGetDisplayMedia:function(x,h){x.navigator.mediaDevices&&"getDisplayMedia"in x.navigator.mediaDevices||x.navigator.mediaDevices&&("function"==typeof h?x.navigator.mediaDevices.getDisplayMedia=function(b){return h(b).then(k=>{const ee=b.video&&b.video.width,he=b.video&&b.video.height;return b.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:k,maxFrameRate:b.video&&b.video.frameRate||3}},ee&&(b.video.mandatory.maxWidth=ee),he&&(b.video.mandatory.maxHeight=he),x.navigator.mediaDevices.getUserMedia(b)})}:console.error("shimGetDisplayMedia: getSourceId argument is not a function"))},shimGetSendersWithDtmf:T,shimGetStats:N,shimGetUserMedia:I,shimMediaStream:U,shimOnTrack:V,shimPeerConnection:R,shimSenderReceiverGetStats:L},Symbol.toStringTag,{value:"Module"}));function H(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}var J,re,ie,ve={exports:{}};function ue(){return J||(J=1,x=ve,(h={generateIdentifier:function(){return Math.random().toString(36).substr(2,10)}}).localCName=h.generateIdentifier(),h.splitLines=function(b){return b.trim().split("\n").map(function(k){return k.trim()})},h.splitSections=function(b){return b.split("\nm=").map(function(k,ee){return(ee>0?"m="+k:k).trim()+"\r\n"})},h.getDescription=function(b){var k=h.splitSections(b);return k&&k[0]},h.getMediaSections=function(b){var k=h.splitSections(b);return k.shift(),k},h.matchPrefix=function(b,k){return h.splitLines(b).filter(function(ee){return 0===ee.indexOf(k)})},h.parseCandidate=function(b){for(var k,ee={foundation:(k=0===b.indexOf("a=candidate:")?b.substring(12).split(" "):b.substring(10).split(" "))[0],component:parseInt(k[1],10),protocol:k[2].toLowerCase(),priority:parseInt(k[3],10),ip:k[4],address:k[4],port:parseInt(k[5],10),type:k[7]},he=8;he<k.length;he+=2)switch(k[he]){case"raddr":ee.relatedAddress=k[he+1];break;case"rport":ee.relatedPort=parseInt(k[he+1],10);break;case"tcptype":ee.tcpType=k[he+1];break;case"ufrag":ee.ufrag=k[he+1],ee.usernameFragment=k[he+1];break;default:ee[k[he]]=k[he+1]}return ee},h.writeCandidate=function(b){var k=[];k.push(b.foundation),k.push(b.component),k.push(b.protocol.toUpperCase()),k.push(b.priority),k.push(b.address||b.ip),k.push(b.port);var ee=b.type;return k.push("typ"),k.push(ee),"host"!==ee&&b.relatedAddress&&b.relatedPort&&(k.push("raddr"),k.push(b.relatedAddress),k.push("rport"),k.push(b.relatedPort)),b.tcpType&&"tcp"===b.protocol.toLowerCase()&&(k.push("tcptype"),k.push(b.tcpType)),(b.usernameFragment||b.ufrag)&&(k.push("ufrag"),k.push(b.usernameFragment||b.ufrag)),"candidate:"+k.join(" ")},h.parseIceOptions=function(b){return b.substr(14).split(" ")},h.parseRtpMap=function(b){var k=b.substr(9).split(" "),ee={payloadType:parseInt(k.shift(),10)};return k=k[0].split("/"),ee.name=k[0],ee.clockRate=parseInt(k[1],10),ee.channels=3===k.length?parseInt(k[2],10):1,ee.numChannels=ee.channels,ee},h.writeRtpMap=function(b){var k=b.payloadType;void 0!==b.preferredPayloadType&&(k=b.preferredPayloadType);var ee=b.channels||b.numChannels||1;return"a=rtpmap:"+k+" "+b.name+"/"+b.clockRate+(1!==ee?"/"+ee:"")+"\r\n"},h.parseExtmap=function(b){var k=b.substr(9).split(" ");return{id:parseInt(k[0],10),direction:k[0].indexOf("/")>0?k[0].split("/")[1]:"sendrecv",uri:k[1]}},h.writeExtmap=function(b){return"a=extmap:"+(b.id||b.preferredId)+(b.direction&&"sendrecv"!==b.direction?"/"+b.direction:"")+" "+b.uri+"\r\n"},h.parseFmtp=function(b){for(var k,ee={},he=b.substr(b.indexOf(" ")+1).split(";"),we=0;we<he.length;we++)ee[(k=he[we].trim().split("="))[0].trim()]=k[1];return ee},h.writeFmtp=function(b){var k="",ee=b.payloadType;if(void 0!==b.preferredPayloadType&&(ee=b.preferredPayloadType),b.parameters&&Object.keys(b.parameters).length){var he=[];Object.keys(b.parameters).forEach(function(we){he.push(b.parameters[we]?we+"="+b.parameters[we]:we)}),k+="a=fmtp:"+ee+" "+he.join(";")+"\r\n"}return k},h.parseRtcpFb=function(b){var k=b.substr(b.indexOf(" ")+1).split(" ");return{type:k.shift(),parameter:k.join(" ")}},h.writeRtcpFb=function(b){var k="",ee=b.payloadType;return void 0!==b.preferredPayloadType&&(ee=b.preferredPayloadType),b.rtcpFeedback&&b.rtcpFeedback.length&&b.rtcpFeedback.forEach(function(he){k+="a=rtcp-fb:"+ee+" "+he.type+(he.parameter&&he.parameter.length?" "+he.parameter:"")+"\r\n"}),k},h.parseSsrcMedia=function(b){var k=b.indexOf(" "),ee={ssrc:parseInt(b.substr(7,k-7),10)},he=b.indexOf(":",k);return he>-1?(ee.attribute=b.substr(k+1,he-k-1),ee.value=b.substr(he+1)):ee.attribute=b.substr(k+1),ee},h.parseSsrcGroup=function(b){var k=b.substr(13).split(" ");return{semantics:k.shift(),ssrcs:k.map(function(ee){return parseInt(ee,10)})}},h.getMid=function(b){var k=h.matchPrefix(b,"a=mid:")[0];if(k)return k.substr(6)},h.parseFingerprint=function(b){var k=b.substr(14).split(" ");return{algorithm:k[0].toLowerCase(),value:k[1]}},h.getDtlsParameters=function(b,k){return{role:"auto",fingerprints:h.matchPrefix(b+k,"a=fingerprint:").map(h.parseFingerprint)}},h.writeDtlsParameters=function(b,k){var ee="a=setup:"+k+"\r\n";return b.fingerprints.forEach(function(he){ee+="a=fingerprint:"+he.algorithm+" "+he.value+"\r\n"}),ee},h.parseCryptoLine=function(b){var k=b.substr(9).split(" ");return{tag:parseInt(k[0],10),cryptoSuite:k[1],keyParams:k[2],sessionParams:k.slice(3)}},h.writeCryptoLine=function(b){return"a=crypto:"+b.tag+" "+b.cryptoSuite+" "+("object"==typeof b.keyParams?h.writeCryptoKeyParams(b.keyParams):b.keyParams)+(b.sessionParams?" "+b.sessionParams.join(" "):"")+"\r\n"},h.parseCryptoKeyParams=function(b){if(0!==b.indexOf("inline:"))return null;var k=b.substr(7).split("|");return{keyMethod:"inline",keySalt:k[0],lifeTime:k[1],mkiValue:k[2]?k[2].split(":")[0]:void 0,mkiLength:k[2]?k[2].split(":")[1]:void 0}},h.writeCryptoKeyParams=function(b){return b.keyMethod+":"+b.keySalt+(b.lifeTime?"|"+b.lifeTime:"")+(b.mkiValue&&b.mkiLength?"|"+b.mkiValue+":"+b.mkiLength:"")},h.getCryptoParameters=function(b,k){return h.matchPrefix(b+k,"a=crypto:").map(h.parseCryptoLine)},h.getIceParameters=function(b,k){var ee=h.matchPrefix(b+k,"a=ice-ufrag:")[0],he=h.matchPrefix(b+k,"a=ice-pwd:")[0];return ee&&he?{usernameFragment:ee.substr(12),password:he.substr(10)}:null},h.writeIceParameters=function(b){return"a=ice-ufrag:"+b.usernameFragment+"\r\na=ice-pwd:"+b.password+"\r\n"},h.parseRtpParameters=function(b){for(var k={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},ee=h.splitLines(b)[0].split(" "),he=3;he<ee.length;he++){var we=ee[he],ze=h.matchPrefix(b,"a=rtpmap:"+we+" ")[0];if(ze){var pt=h.parseRtpMap(ze),wt=h.matchPrefix(b,"a=fmtp:"+we+" ");switch(pt.parameters=wt.length?h.parseFmtp(wt[0]):{},pt.rtcpFeedback=h.matchPrefix(b,"a=rtcp-fb:"+we+" ").map(h.parseRtcpFb),k.codecs.push(pt),pt.name.toUpperCase()){case"RED":case"ULPFEC":k.fecMechanisms.push(pt.name.toUpperCase())}}}return h.matchPrefix(b,"a=extmap:").forEach(function($t){k.headerExtensions.push(h.parseExtmap($t))}),k},h.writeRtpDescription=function(b,k){var ee="";ee+="m="+b+" ",ee+=k.codecs.length>0?"9":"0",ee+=" UDP/TLS/RTP/SAVPF ",ee+=k.codecs.map(function(we){return void 0!==we.preferredPayloadType?we.preferredPayloadType:we.payloadType}).join(" ")+"\r\n",ee+="c=IN IP4 0.0.0.0\r\n",ee+="a=rtcp:9 IN IP4 0.0.0.0\r\n",k.codecs.forEach(function(we){ee+=h.writeRtpMap(we),ee+=h.writeFmtp(we),ee+=h.writeRtcpFb(we)});var he=0;return k.codecs.forEach(function(we){we.maxptime>he&&(he=we.maxptime)}),he>0&&(ee+="a=maxptime:"+he+"\r\n"),ee+="a=rtcp-mux\r\n",k.headerExtensions&&k.headerExtensions.forEach(function(we){ee+=h.writeExtmap(we)}),ee},h.parseRtpEncodingParameters=function(b){var k,ee=[],he=h.parseRtpParameters(b),we=-1!==he.fecMechanisms.indexOf("RED"),ze=-1!==he.fecMechanisms.indexOf("ULPFEC"),pt=h.matchPrefix(b,"a=ssrc:").map(function(zt){return h.parseSsrcMedia(zt)}).filter(function(zt){return"cname"===zt.attribute}),wt=pt.length>0&&pt[0].ssrc,$t=h.matchPrefix(b,"a=ssrc-group:FID").map(function(zt){return zt.substr(17).split(" ").map(function(mn){return parseInt(mn,10)})});$t.length>0&&$t[0].length>1&&$t[0][0]===wt&&(k=$t[0][1]),he.codecs.forEach(function(zt){if("RTX"===zt.name.toUpperCase()&&zt.parameters.apt){var mn={ssrc:wt,codecPayloadType:parseInt(zt.parameters.apt,10)};wt&&k&&(mn.rtx={ssrc:k}),ee.push(mn),we&&((mn=JSON.parse(JSON.stringify(mn))).fec={ssrc:wt,mechanism:ze?"red+ulpfec":"red"},ee.push(mn))}}),0===ee.length&&wt&&ee.push({ssrc:wt});var an=h.matchPrefix(b,"b=");return an.length&&(an=0===an[0].indexOf("b=TIAS:")?parseInt(an[0].substr(7),10):0===an[0].indexOf("b=AS:")?1e3*parseInt(an[0].substr(5),10)*.95-16e3:void 0,ee.forEach(function(zt){zt.maxBitrate=an})),ee},h.parseRtcpParameters=function(b){var k={},ee=h.matchPrefix(b,"a=ssrc:").map(function(ze){return h.parseSsrcMedia(ze)}).filter(function(ze){return"cname"===ze.attribute})[0];ee&&(k.cname=ee.value,k.ssrc=ee.ssrc);var he=h.matchPrefix(b,"a=rtcp-rsize");k.reducedSize=he.length>0,k.compound=0===he.length;var we=h.matchPrefix(b,"a=rtcp-mux");return k.mux=we.length>0,k},h.parseMsid=function(b){var k,ee=h.matchPrefix(b,"a=msid:");if(1===ee.length)return{stream:(k=ee[0].substr(7).split(" "))[0],track:k[1]};var he=h.matchPrefix(b,"a=ssrc:").map(function(we){return h.parseSsrcMedia(we)}).filter(function(we){return"msid"===we.attribute});return he.length>0?{stream:(k=he[0].value.split(" "))[0],track:k[1]}:void 0},h.parseSctpDescription=function(b){var k,ee=h.parseMLine(b),he=h.matchPrefix(b,"a=max-message-size:");he.length>0&&(k=parseInt(he[0].substr(19),10)),isNaN(k)&&(k=65536);var we=h.matchPrefix(b,"a=sctp-port:");if(we.length>0)return{port:parseInt(we[0].substr(12),10),protocol:ee.fmt,maxMessageSize:k};if(h.matchPrefix(b,"a=sctpmap:").length>0){var ze=h.matchPrefix(b,"a=sctpmap:")[0].substr(10).split(" ");return{port:parseInt(ze[0],10),protocol:ze[1],maxMessageSize:k}}},h.writeSctpDescription=function(b,k){var ee=[];return ee="DTLS/SCTP"!==b.protocol?["m="+b.kind+" 9 "+b.protocol+" "+k.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+k.port+"\r\n"]:["m="+b.kind+" 9 "+b.protocol+" "+k.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+k.port+" "+k.protocol+" 65535\r\n"],void 0!==k.maxMessageSize&&ee.push("a=max-message-size:"+k.maxMessageSize+"\r\n"),ee.join("")},h.generateSessionId=function(){return Math.random().toString().substr(2,21)},h.writeSessionBoilerplate=function(b,k,ee){var he=void 0!==k?k:2;return"v=0\r\no="+(ee||"thisisadapterortc")+" "+(b||h.generateSessionId())+" "+he+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},h.writeMediaSection=function(b,k,ee,he){var we=h.writeRtpDescription(b.kind,k);if(we+=h.writeIceParameters(b.iceGatherer.getLocalParameters()),we+=h.writeDtlsParameters(b.dtlsTransport.getLocalParameters(),"offer"===ee?"actpass":"active"),we+="a=mid:"+b.mid+"\r\n",we+=b.direction?"a="+b.direction+"\r\n":b.rtpSender&&b.rtpReceiver?"a=sendrecv\r\n":b.rtpSender?"a=sendonly\r\n":b.rtpReceiver?"a=recvonly\r\n":"a=inactive\r\n",b.rtpSender){var ze="msid:"+he.id+" "+b.rtpSender.track.id+"\r\n";we+="a="+ze,we+="a=ssrc:"+b.sendEncodingParameters[0].ssrc+" "+ze,b.sendEncodingParameters[0].rtx&&(we+="a=ssrc:"+b.sendEncodingParameters[0].rtx.ssrc+" "+ze,we+="a=ssrc-group:FID "+b.sendEncodingParameters[0].ssrc+" "+b.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return we+="a=ssrc:"+b.sendEncodingParameters[0].ssrc+" cname:"+h.localCName+"\r\n",b.rtpSender&&b.sendEncodingParameters[0].rtx&&(we+="a=ssrc:"+b.sendEncodingParameters[0].rtx.ssrc+" cname:"+h.localCName+"\r\n"),we},h.getDirection=function(b,k){for(var ee=h.splitLines(b),he=0;he<ee.length;he++)switch(ee[he]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return ee[he].substr(2)}return k?h.getDirection(k):"sendrecv"},h.getKind=function(b){return h.splitLines(b)[0].split(" ")[0].substr(2)},h.isRejected=function(b){return"0"===b.split(" ",2)[1]},h.parseMLine=function(b){var k=h.splitLines(b)[0].substr(2).split(" ");return{kind:k[0],port:parseInt(k[1],10),protocol:k[2],fmt:k.slice(3).join(" ")}},h.parseOLine=function(b){var k=h.matchPrefix(b,"o=")[0].substr(2).split(" ");return{username:k[0],sessionId:k[1],sessionVersion:parseInt(k[2],10),netType:k[3],addressType:k[4],address:k[5]}},h.isValidSDP=function(b){if("string"!=typeof b||0===b.length)return!1;for(var k=h.splitLines(b),ee=0;ee<k.length;ee++)if(k[ee].length<2||"="!==k[ee].charAt(1))return!1;return!0},x.exports=h),ve.exports;var x,h}var se=function(){if(ie)return re;ie=1;var x=ue();function h(we,ze,pt,wt,$t){var an=x.writeRtpDescription(we.kind,ze);if(an+=x.writeIceParameters(we.iceGatherer.getLocalParameters()),an+=x.writeDtlsParameters(we.dtlsTransport.getLocalParameters(),"offer"===pt?"actpass":$t||"active"),an+="a=mid:"+we.mid+"\r\n",an+=we.rtpSender&&we.rtpReceiver?"a=sendrecv\r\n":we.rtpSender?"a=sendonly\r\n":we.rtpReceiver?"a=recvonly\r\n":"a=inactive\r\n",we.rtpSender){var zt=we.rtpSender._initialTrackId||we.rtpSender.track.id;we.rtpSender._initialTrackId=zt;var mn="msid:"+(wt?wt.id:"-")+" "+zt+"\r\n";an+="a="+mn,an+="a=ssrc:"+we.sendEncodingParameters[0].ssrc+" "+mn,we.sendEncodingParameters[0].rtx&&(an+="a=ssrc:"+we.sendEncodingParameters[0].rtx.ssrc+" "+mn,an+="a=ssrc-group:FID "+we.sendEncodingParameters[0].ssrc+" "+we.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return an+="a=ssrc:"+we.sendEncodingParameters[0].ssrc+" cname:"+x.localCName+"\r\n",we.rtpSender&&we.sendEncodingParameters[0].rtx&&(an+="a=ssrc:"+we.sendEncodingParameters[0].rtx.ssrc+" cname:"+x.localCName+"\r\n"),an}function b(we,ze){var pt={codecs:[],headerExtensions:[],fecMechanisms:[]},wt=function(an,zt){an=parseInt(an,10);for(var mn=0;mn<zt.length;mn++)if(zt[mn].payloadType===an||zt[mn].preferredPayloadType===an)return zt[mn]},$t=function(an,zt,mn,kn){var yn=wt(an.parameters.apt,mn),Qn=wt(zt.parameters.apt,kn);return yn&&Qn&&yn.name.toLowerCase()===Qn.name.toLowerCase()};return we.codecs.forEach(function(an){for(var zt=0;zt<ze.codecs.length;zt++){var mn=ze.codecs[zt];if(an.name.toLowerCase()===mn.name.toLowerCase()&&an.clockRate===mn.clockRate){if("rtx"===an.name.toLowerCase()&&an.parameters&&mn.parameters.apt&&!$t(an,mn,we.codecs,ze.codecs))continue;(mn=JSON.parse(JSON.stringify(mn))).numChannels=Math.min(an.numChannels,mn.numChannels),pt.codecs.push(mn),mn.rtcpFeedback=mn.rtcpFeedback.filter(function(kn){for(var yn=0;yn<an.rtcpFeedback.length;yn++)if(an.rtcpFeedback[yn].type===kn.type&&an.rtcpFeedback[yn].parameter===kn.parameter)return!0;return!1});break}}}),we.headerExtensions.forEach(function(an){for(var zt=0;zt<ze.headerExtensions.length;zt++){var mn=ze.headerExtensions[zt];if(an.uri===mn.uri){pt.headerExtensions.push(mn);break}}}),pt}function k(we,ze,pt){return-1!=={offer:{setLocalDescription:["stable","have-local-offer"],setRemoteDescription:["stable","have-remote-offer"]},answer:{setLocalDescription:["have-remote-offer","have-local-pranswer"],setRemoteDescription:["have-local-offer","have-remote-pranswer"]}}[ze][we].indexOf(pt)}function ee(we,ze){var pt=we.getRemoteCandidates().find(function(wt){return ze.foundation===wt.foundation&&ze.ip===wt.ip&&ze.port===wt.port&&ze.priority===wt.priority&&ze.protocol===wt.protocol&&ze.type===wt.type});return pt||we.addRemoteCandidate(ze),!pt}function he(we,ze){var pt=new Error(ze);return pt.name=we,pt.code={NotSupportedError:9,InvalidStateError:11,InvalidAccessError:15,TypeError:void 0,OperationError:void 0}[we],pt}return re=function(we,ze){function pt(zt,mn){mn.addTrack(zt),mn.dispatchEvent(new we.MediaStreamTrackEvent("addtrack",{track:zt}))}function wt(zt,mn,kn,yn){var Qn=new Event("track");Qn.track=mn,Qn.receiver=kn,Qn.transceiver={receiver:kn},Qn.streams=yn,we.setTimeout(function(){zt._dispatchEvent("track",Qn)})}var $t=function(zt){var Qn,li,wi,mn=this,kn=document.createDocumentFragment();if(["addEventListener","removeEventListener","dispatchEvent"].forEach(function(Qn){mn[Qn]=kn[Qn].bind(kn)}),this.canTrickleIceCandidates=null,this.needNegotiation=!1,this.localStreams=[],this.remoteStreams=[],this._localDescription=null,this._remoteDescription=null,this.signalingState="stable",this.iceConnectionState="new",this.connectionState="new",this.iceGatheringState="new",zt=JSON.parse(JSON.stringify(zt||{})),this.usingBundle="max-bundle"===zt.bundlePolicy,"negotiate"===zt.rtcpMuxPolicy)throw he("NotSupportedError","rtcpMuxPolicy 'negotiate' is not supported");switch(zt.rtcpMuxPolicy||(zt.rtcpMuxPolicy="require"),zt.iceTransportPolicy){case"all":case"relay":break;default:zt.iceTransportPolicy="all"}switch(zt.bundlePolicy){case"balanced":case"max-compat":case"max-bundle":break;default:zt.bundlePolicy="balanced"}if(zt.iceServers=(Qn=zt.iceServers||[],li=ze,wi=!1,(Qn=JSON.parse(JSON.stringify(Qn))).filter(function(mi){if(mi&&(mi.urls||mi.url)){var Bi=mi.urls||mi.url;mi.url&&!mi.urls&&console.warn("RTCIceServer.url is deprecated! Use urls instead.");var qi="string"==typeof Bi;return qi&&(Bi=[Bi]),Bi=Bi.filter(function(sr){return 0!==sr.indexOf("turn:")||-1===sr.indexOf("transport=udp")||-1!==sr.indexOf("turn:[")||wi?0===sr.indexOf("stun:")&&li>=14393&&-1===sr.indexOf("?transport=udp"):(wi=!0,!0)}),delete mi.url,mi.urls=qi?Bi[0]:Bi,!!Bi.length}})),this._iceGatherers=[],zt.iceCandidatePoolSize)for(var yn=zt.iceCandidatePoolSize;yn>0;yn--)this._iceGatherers.push(new we.RTCIceGatherer({iceServers:zt.iceServers,gatherPolicy:zt.iceTransportPolicy}));else zt.iceCandidatePoolSize=0;this._config=zt,this.transceivers=[],this._sdpSessionId=x.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};Object.defineProperty($t.prototype,"localDescription",{configurable:!0,get:function(){return this._localDescription}}),Object.defineProperty($t.prototype,"remoteDescription",{configurable:!0,get:function(){return this._remoteDescription}}),$t.prototype.onicecandidate=null,$t.prototype.onaddstream=null,$t.prototype.ontrack=null,$t.prototype.onremovestream=null,$t.prototype.onsignalingstatechange=null,$t.prototype.oniceconnectionstatechange=null,$t.prototype.onconnectionstatechange=null,$t.prototype.onicegatheringstatechange=null,$t.prototype.onnegotiationneeded=null,$t.prototype.ondatachannel=null,$t.prototype._dispatchEvent=function(zt,mn){this._isClosed||(this.dispatchEvent(mn),"function"==typeof this["on"+zt]&&this["on"+zt](mn))},$t.prototype._emitGatheringStateChange=function(){var zt=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",zt)},$t.prototype.getConfiguration=function(){return this._config},$t.prototype.getLocalStreams=function(){return this.localStreams},$t.prototype.getRemoteStreams=function(){return this.remoteStreams},$t.prototype._createTransceiver=function(zt,mn){var yn={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:zt,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&this.transceivers.length>0)yn.iceTransport=this.transceivers[0].iceTransport,yn.dtlsTransport=this.transceivers[0].dtlsTransport;else{var Qn=this._createIceAndDtlsTransports();yn.iceTransport=Qn.iceTransport,yn.dtlsTransport=Qn.dtlsTransport}return mn||this.transceivers.push(yn),yn},$t.prototype.addTrack=function(zt,mn){if(this._isClosed)throw he("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");var kn;if(this.transceivers.find(function(Qn){return Qn.track===zt}))throw he("InvalidAccessError","Track already exists.");for(var yn=0;yn<this.transceivers.length;yn++)this.transceivers[yn].track||this.transceivers[yn].kind!==zt.kind||(kn=this.transceivers[yn]);return kn||(kn=this._createTransceiver(zt.kind)),this._maybeFireNegotiationNeeded(),-1===this.localStreams.indexOf(mn)&&this.localStreams.push(mn),kn.track=zt,kn.stream=mn,kn.rtpSender=new we.RTCRtpSender(zt,kn.dtlsTransport),kn.rtpSender},$t.prototype.addStream=function(zt){var mn=this;if(ze>=15025)zt.getTracks().forEach(function(yn){mn.addTrack(yn,zt)});else{var kn=zt.clone();zt.getTracks().forEach(function(yn,Qn){var li=kn.getTracks()[Qn];yn.addEventListener("enabled",function(wi){li.enabled=wi.enabled})}),kn.getTracks().forEach(function(yn){mn.addTrack(yn,kn)})}},$t.prototype.removeTrack=function(zt){if(this._isClosed)throw he("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(zt instanceof we.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var mn=this.transceivers.find(function(yn){return yn.rtpSender===zt});if(!mn)throw he("InvalidAccessError","Sender was not created by this connection.");var kn=mn.stream;mn.rtpSender.stop(),mn.rtpSender=null,mn.track=null,mn.stream=null,-1===this.transceivers.map(function(yn){return yn.stream}).indexOf(kn)&&this.localStreams.indexOf(kn)>-1&&this.localStreams.splice(this.localStreams.indexOf(kn),1),this._maybeFireNegotiationNeeded()},$t.prototype.removeStream=function(zt){var mn=this;zt.getTracks().forEach(function(kn){var yn=mn.getSenders().find(function(Qn){return Qn.track===kn});yn&&mn.removeTrack(yn)})},$t.prototype.getSenders=function(){return this.transceivers.filter(function(zt){return!!zt.rtpSender}).map(function(zt){return zt.rtpSender})},$t.prototype.getReceivers=function(){return this.transceivers.filter(function(zt){return!!zt.rtpReceiver}).map(function(zt){return zt.rtpReceiver})},$t.prototype._createIceGatherer=function(zt,mn){var kn=this;if(mn&&zt>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var yn=new we.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(yn,"state",{value:"new",writable:!0}),this.transceivers[zt].bufferedCandidateEvents=[],this.transceivers[zt].bufferCandidates=function(Qn){var li=!Qn.candidate||0===Object.keys(Qn.candidate).length;yn.state=li?"completed":"gathering",null!==kn.transceivers[zt].bufferedCandidateEvents&&kn.transceivers[zt].bufferedCandidateEvents.push(Qn)},yn.addEventListener("localcandidate",this.transceivers[zt].bufferCandidates),yn},$t.prototype._gather=function(zt,mn){var kn=this,yn=this.transceivers[mn].iceGatherer;if(!yn.onlocalcandidate){var Qn=this.transceivers[mn].bufferedCandidateEvents;this.transceivers[mn].bufferedCandidateEvents=null,yn.removeEventListener("localcandidate",this.transceivers[mn].bufferCandidates),yn.onlocalcandidate=function(li){if(!(kn.usingBundle&&mn>0)){var wi=new Event("icecandidate");wi.candidate={sdpMid:zt,sdpMLineIndex:mn};var mi=li.candidate,Bi=!mi||0===Object.keys(mi).length;if(Bi)"new"!==yn.state&&"gathering"!==yn.state||(yn.state="completed");else{"new"===yn.state&&(yn.state="gathering"),mi.component=1,mi.ufrag=yn.getLocalParameters().usernameFragment;var qi=x.writeCandidate(mi);wi.candidate=Object.assign(wi.candidate,x.parseCandidate(qi)),wi.candidate.candidate=qi,wi.candidate.toJSON=function(){return{candidate:wi.candidate.candidate,sdpMid:wi.candidate.sdpMid,sdpMLineIndex:wi.candidate.sdpMLineIndex,usernameFragment:wi.candidate.usernameFragment}}}var sr=x.getMediaSections(kn._localDescription.sdp);sr[wi.candidate.sdpMLineIndex]+=Bi?"a=end-of-candidates\r\n":"a="+wi.candidate.candidate+"\r\n",kn._localDescription.sdp=x.getDescription(kn._localDescription.sdp)+sr.join("");var Ar=kn.transceivers.every(function(Vr){return Vr.iceGatherer&&"completed"===Vr.iceGatherer.state});"gathering"!==kn.iceGatheringState&&(kn.iceGatheringState="gathering",kn._emitGatheringStateChange()),Bi||kn._dispatchEvent("icecandidate",wi),Ar&&(kn._dispatchEvent("icecandidate",new Event("icecandidate")),kn.iceGatheringState="complete",kn._emitGatheringStateChange())}},we.setTimeout(function(){Qn.forEach(function(li){yn.onlocalcandidate(li)})},0)}},$t.prototype._createIceAndDtlsTransports=function(){var zt=this,mn=new we.RTCIceTransport(null);mn.onicestatechange=function(){zt._updateIceConnectionState(),zt._updateConnectionState()};var kn=new we.RTCDtlsTransport(mn);return kn.ondtlsstatechange=function(){zt._updateConnectionState()},kn.onerror=function(){Object.defineProperty(kn,"state",{value:"failed",writable:!0}),zt._updateConnectionState()},{iceTransport:mn,dtlsTransport:kn}},$t.prototype._disposeIceAndDtlsTransports=function(zt){var mn=this.transceivers[zt].iceGatherer;mn&&(delete mn.onlocalcandidate,delete this.transceivers[zt].iceGatherer);var kn=this.transceivers[zt].iceTransport;kn&&(delete kn.onicestatechange,delete this.transceivers[zt].iceTransport);var yn=this.transceivers[zt].dtlsTransport;yn&&(delete yn.ondtlsstatechange,delete yn.onerror,delete this.transceivers[zt].dtlsTransport)},$t.prototype._transceive=function(zt,mn,kn){var yn=b(zt.localCapabilities,zt.remoteCapabilities);mn&&zt.rtpSender&&(yn.encodings=zt.sendEncodingParameters,yn.rtcp={cname:x.localCName,compound:zt.rtcpParameters.compound},zt.recvEncodingParameters.length&&(yn.rtcp.ssrc=zt.recvEncodingParameters[0].ssrc),zt.rtpSender.send(yn)),kn&&zt.rtpReceiver&&yn.codecs.length>0&&("video"===zt.kind&&zt.recvEncodingParameters&&ze<15019&&zt.recvEncodingParameters.forEach(function(Qn){delete Qn.rtx}),yn.encodings=zt.recvEncodingParameters.length?zt.recvEncodingParameters:[{}],yn.rtcp={compound:zt.rtcpParameters.compound},zt.rtcpParameters.cname&&(yn.rtcp.cname=zt.rtcpParameters.cname),zt.sendEncodingParameters.length&&(yn.rtcp.ssrc=zt.sendEncodingParameters[0].ssrc),zt.rtpReceiver.receive(yn))},$t.prototype.setLocalDescription=function(zt){var mn,kn,yn=this;if(-1===["offer","answer"].indexOf(zt.type))return Promise.reject(he("TypeError",'Unsupported type "'+zt.type+'"'));if(!k("setLocalDescription",zt.type,yn.signalingState)||yn._isClosed)return Promise.reject(he("InvalidStateError","Can not set local "+zt.type+" in state "+yn.signalingState));if("offer"===zt.type)mn=x.splitSections(zt.sdp),kn=mn.shift(),mn.forEach(function(li,wi){var mi=x.parseRtpParameters(li);yn.transceivers[wi].localCapabilities=mi}),yn.transceivers.forEach(function(li,wi){yn._gather(li.mid,wi)});else if("answer"===zt.type){mn=x.splitSections(yn._remoteDescription.sdp),kn=mn.shift();var Qn=x.matchPrefix(kn,"a=ice-lite").length>0;mn.forEach(function(li,wi){var mi=yn.transceivers[wi],Bi=mi.iceGatherer,qi=mi.iceTransport,sr=mi.dtlsTransport,Ar=mi.localCapabilities,Vr=mi.remoteCapabilities;if(!(x.isRejected(li)&&0===x.matchPrefix(li,"a=bundle-only").length||mi.rejected)){var Br=x.getIceParameters(li,kn),Xo=x.getDtlsParameters(li,kn);Qn&&(Xo.role="server"),yn.usingBundle&&0!==wi||(yn._gather(mi.mid,wi),"new"===qi.state&&qi.start(Bi,Br,Qn?"controlling":"controlled"),"new"===sr.state&&sr.start(Xo));var Do=b(Ar,Vr);yn._transceive(mi,Do.codecs.length>0,!1)}})}return yn._localDescription={type:zt.type,sdp:zt.sdp},yn._updateSignalingState("offer"===zt.type?"have-local-offer":"stable"),Promise.resolve()},$t.prototype.setRemoteDescription=function(zt){var mn=this;if(-1===["offer","answer"].indexOf(zt.type))return Promise.reject(he("TypeError",'Unsupported type "'+zt.type+'"'));if(!k("setRemoteDescription",zt.type,mn.signalingState)||mn._isClosed)return Promise.reject(he("InvalidStateError","Can not set remote "+zt.type+" in state "+mn.signalingState));var kn={};mn.remoteStreams.forEach(function(qi){kn[qi.id]=qi});var yn=[],Qn=x.splitSections(zt.sdp),li=Qn.shift(),wi=x.matchPrefix(li,"a=ice-lite").length>0,mi=x.matchPrefix(li,"a=group:BUNDLE ").length>0;mn.usingBundle=mi;var Bi=x.matchPrefix(li,"a=ice-options:")[0];return mn.canTrickleIceCandidates=!!Bi&&Bi.substr(14).split(" ").indexOf("trickle")>=0,Qn.forEach(function(qi,sr){var Ar=x.splitLines(qi),Vr=x.getKind(qi),Br=x.isRejected(qi)&&0===x.matchPrefix(qi,"a=bundle-only").length,Xo=Ar[0].substr(2).split(" ")[2],Do=x.getDirection(qi,li),Lo=x.parseMsid(qi),ir=x.getMid(qi)||x.generateIdentifier();if(Br||"application"===Vr&&("DTLS/SCTP"===Xo||"UDP/DTLS/SCTP"===Xo))mn.transceivers[sr]={mid:ir,kind:Vr,protocol:Xo,rejected:!0};else{var wr,_s,Ta,ls,zs,ia,ga,nl,ua;!Br&&mn.transceivers[sr]&&mn.transceivers[sr].rejected&&(mn.transceivers[sr]=mn._createTransceiver(Vr,!0));var Wl,Xl,xs=x.parseRtpParameters(qi);Br||(Wl=x.getIceParameters(qi,li),(Xl=x.getDtlsParameters(qi,li)).role="client"),ga=x.parseRtpEncodingParameters(qi);var qa=x.parseRtcpParameters(qi),ll=x.matchPrefix(qi,"a=end-of-candidates",li).length>0,dl=x.matchPrefix(qi,"a=candidate:").map(function(ml){return x.parseCandidate(ml)}).filter(function(ml){return 1===ml.component});if(("offer"===zt.type||"answer"===zt.type)&&!Br&&mi&&sr>0&&mn.transceivers[sr]&&(mn._disposeIceAndDtlsTransports(sr),mn.transceivers[sr].iceGatherer=mn.transceivers[0].iceGatherer,mn.transceivers[sr].iceTransport=mn.transceivers[0].iceTransport,mn.transceivers[sr].dtlsTransport=mn.transceivers[0].dtlsTransport,mn.transceivers[sr].rtpSender&&mn.transceivers[sr].rtpSender.setTransport(mn.transceivers[0].dtlsTransport),mn.transceivers[sr].rtpReceiver&&mn.transceivers[sr].rtpReceiver.setTransport(mn.transceivers[0].dtlsTransport)),"offer"!==zt.type||Br)"answer"!==zt.type||Br||(_s=(wr=mn.transceivers[sr]).iceGatherer,Ta=wr.iceTransport,ls=wr.dtlsTransport,zs=wr.rtpReceiver,ia=wr.sendEncodingParameters,nl=wr.localCapabilities,mn.transceivers[sr].recvEncodingParameters=ga,mn.transceivers[sr].remoteCapabilities=xs,mn.transceivers[sr].rtcpParameters=qa,dl.length&&"new"===Ta.state&&(!wi&&!ll||mi&&0!==sr?dl.forEach(function(ml){ee(wr.iceTransport,ml)}):Ta.setRemoteCandidates(dl)),mi&&0!==sr||("new"===Ta.state&&Ta.start(_s,Wl,"controlling"),"new"===ls.state&&ls.start(Xl)),!b(wr.localCapabilities,wr.remoteCapabilities).codecs.filter(function(ml){return"rtx"===ml.name.toLowerCase()}).length&&wr.sendEncodingParameters[0].rtx&&delete wr.sendEncodingParameters[0].rtx,mn._transceive(wr,"sendrecv"===Do||"recvonly"===Do,"sendrecv"===Do||"sendonly"===Do),!zs||"sendrecv"!==Do&&"sendonly"!==Do?delete wr.rtpReceiver:(ua=zs.track,Lo?(kn[Lo.stream]||(kn[Lo.stream]=new we.MediaStream),pt(ua,kn[Lo.stream]),yn.push([ua,zs,kn[Lo.stream]])):(kn.default||(kn.default=new we.MediaStream),pt(ua,kn.default),yn.push([ua,zs,kn.default]))));else{(wr=mn.transceivers[sr]||mn._createTransceiver(Vr)).mid=ir,wr.iceGatherer||(wr.iceGatherer=mn._createIceGatherer(sr,mi)),dl.length&&"new"===wr.iceTransport.state&&(!ll||mi&&0!==sr?dl.forEach(function(ml){ee(wr.iceTransport,ml)}):wr.iceTransport.setRemoteCandidates(dl)),nl=we.RTCRtpReceiver.getCapabilities(Vr),ze<15019&&(nl.codecs=nl.codecs.filter(function(ml){return"rtx"!==ml.name})),ia=wr.sendEncodingParameters||[{ssrc:1001*(2*sr+2)}];var pl,Ol=!1;"sendrecv"===Do||"sendonly"===Do?(Ol=!wr.rtpReceiver,zs=wr.rtpReceiver||new we.RTCRtpReceiver(wr.dtlsTransport,Vr),Ol&&(ua=zs.track,Lo&&"-"===Lo.stream||(Lo?(kn[Lo.stream]||(kn[Lo.stream]=new we.MediaStream,Object.defineProperty(kn[Lo.stream],"id",{get:function(){return Lo.stream}})),Object.defineProperty(ua,"id",{get:function(){return Lo.track}}),pl=kn[Lo.stream]):(kn.default||(kn.default=new we.MediaStream),pl=kn.default)),pl&&(pt(ua,pl),wr.associatedRemoteMediaStreams.push(pl)),yn.push([ua,zs,pl]))):wr.rtpReceiver&&wr.rtpReceiver.track&&(wr.associatedRemoteMediaStreams.forEach(function(ml){var vc,Zl,El=ml.getTracks().find(function(vc){return vc.id===wr.rtpReceiver.track.id});El&&((Zl=ml).removeTrack(vc=El),Zl.dispatchEvent(new we.MediaStreamTrackEvent("removetrack",{track:vc})))}),wr.associatedRemoteMediaStreams=[]),wr.localCapabilities=nl,wr.remoteCapabilities=xs,wr.rtpReceiver=zs,wr.rtcpParameters=qa,wr.sendEncodingParameters=ia,wr.recvEncodingParameters=ga,mn._transceive(mn.transceivers[sr],!1,Ol)}}}),void 0===mn._dtlsRole&&(mn._dtlsRole="offer"===zt.type?"active":"passive"),mn._remoteDescription={type:zt.type,sdp:zt.sdp},mn._updateSignalingState("offer"===zt.type?"have-remote-offer":"stable"),Object.keys(kn).forEach(function(qi){var sr=kn[qi];if(sr.getTracks().length){if(-1===mn.remoteStreams.indexOf(sr)){mn.remoteStreams.push(sr);var Ar=new Event("addstream");Ar.stream=sr,we.setTimeout(function(){mn._dispatchEvent("addstream",Ar)})}yn.forEach(function(Vr){sr.id===Vr[2].id&&wt(mn,Vr[0],Vr[1],[sr])})}}),yn.forEach(function(qi){qi[2]||wt(mn,qi[0],qi[1],[])}),we.setTimeout(function(){mn&&mn.transceivers&&mn.transceivers.forEach(function(qi){qi.iceTransport&&"new"===qi.iceTransport.state&&qi.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),qi.iceTransport.addRemoteCandidate({}))})},4e3),Promise.resolve()},$t.prototype.close=function(){this.transceivers.forEach(function(zt){zt.iceTransport&&zt.iceTransport.stop(),zt.dtlsTransport&&zt.dtlsTransport.stop(),zt.rtpSender&&zt.rtpSender.stop(),zt.rtpReceiver&&zt.rtpReceiver.stop()}),this._isClosed=!0,this._updateSignalingState("closed")},$t.prototype._updateSignalingState=function(zt){this.signalingState=zt;var mn=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",mn)},$t.prototype._maybeFireNegotiationNeeded=function(){var zt=this;"stable"===this.signalingState&&!0!==this.needNegotiation&&(this.needNegotiation=!0,we.setTimeout(function(){if(zt.needNegotiation){zt.needNegotiation=!1;var mn=new Event("negotiationneeded");zt._dispatchEvent("negotiationneeded",mn)}},0))},$t.prototype._updateIceConnectionState=function(){var zt,mn={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(yn){yn.iceTransport&&!yn.rejected&&mn[yn.iceTransport.state]++}),zt="new",mn.failed>0?zt="failed":mn.checking>0?zt="checking":mn.disconnected>0?zt="disconnected":mn.new>0?zt="new":mn.connected>0?zt="connected":mn.completed>0&&(zt="completed"),zt!==this.iceConnectionState){this.iceConnectionState=zt;var kn=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",kn)}},$t.prototype._updateConnectionState=function(){var zt,mn={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(yn){yn.iceTransport&&yn.dtlsTransport&&!yn.rejected&&(mn[yn.iceTransport.state]++,mn[yn.dtlsTransport.state]++)}),mn.connected+=mn.completed,zt="new",mn.failed>0?zt="failed":mn.connecting>0?zt="connecting":mn.disconnected>0?zt="disconnected":mn.new>0?zt="new":mn.connected>0&&(zt="connected"),zt!==this.connectionState){this.connectionState=zt;var kn=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",kn)}},$t.prototype.createOffer=function(){var zt=this;if(zt._isClosed)return Promise.reject(he("InvalidStateError","Can not call createOffer after close"));var mn=zt.transceivers.filter(function(wi){return"audio"===wi.kind}).length,kn=zt.transceivers.filter(function(wi){return"video"===wi.kind}).length,yn=arguments[0];if(yn){if(yn.mandatory||yn.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==yn.offerToReceiveAudio&&(mn=!0===yn.offerToReceiveAudio?1:!1===yn.offerToReceiveAudio?0:yn.offerToReceiveAudio),void 0!==yn.offerToReceiveVideo&&(kn=!0===yn.offerToReceiveVideo?1:!1===yn.offerToReceiveVideo?0:yn.offerToReceiveVideo)}for(zt.transceivers.forEach(function(wi){"audio"===wi.kind?--mn<0&&(wi.wantReceive=!1):"video"===wi.kind&&--kn<0&&(wi.wantReceive=!1)});mn>0||kn>0;)mn>0&&(zt._createTransceiver("audio"),mn--),kn>0&&(zt._createTransceiver("video"),kn--);var Qn=x.writeSessionBoilerplate(zt._sdpSessionId,zt._sdpSessionVersion++);zt.transceivers.forEach(function(wi,mi){var Bi=wi.track,qi=wi.kind,sr=wi.mid||x.generateIdentifier();wi.mid=sr,wi.iceGatherer||(wi.iceGatherer=zt._createIceGatherer(mi,zt.usingBundle));var Ar=we.RTCRtpSender.getCapabilities(qi);ze<15019&&(Ar.codecs=Ar.codecs.filter(function(Br){return"rtx"!==Br.name})),Ar.codecs.forEach(function(Br){"H264"===Br.name&&void 0===Br.parameters["level-asymmetry-allowed"]&&(Br.parameters["level-asymmetry-allowed"]="1"),wi.remoteCapabilities&&wi.remoteCapabilities.codecs&&wi.remoteCapabilities.codecs.forEach(function(Xo){Br.name.toLowerCase()===Xo.name.toLowerCase()&&Br.clockRate===Xo.clockRate&&(Br.preferredPayloadType=Xo.payloadType)})}),Ar.headerExtensions.forEach(function(Br){(wi.remoteCapabilities&&wi.remoteCapabilities.headerExtensions||[]).forEach(function(Xo){Br.uri===Xo.uri&&(Br.id=Xo.id)})});var Vr=wi.sendEncodingParameters||[{ssrc:1001*(2*mi+1)}];Bi&&ze>=15019&&"video"===qi&&!Vr[0].rtx&&(Vr[0].rtx={ssrc:Vr[0].ssrc+1}),wi.wantReceive&&(wi.rtpReceiver=new we.RTCRtpReceiver(wi.dtlsTransport,qi)),wi.localCapabilities=Ar,wi.sendEncodingParameters=Vr}),"max-compat"!==zt._config.bundlePolicy&&(Qn+="a=group:BUNDLE "+zt.transceivers.map(function(wi){return wi.mid}).join(" ")+"\r\n"),Qn+="a=ice-options:trickle\r\n",zt.transceivers.forEach(function(wi,mi){Qn+=h(wi,wi.localCapabilities,"offer",wi.stream,zt._dtlsRole),Qn+="a=rtcp-rsize\r\n",!wi.iceGatherer||"new"===zt.iceGatheringState||0!==mi&&zt.usingBundle||(wi.iceGatherer.getLocalCandidates().forEach(function(Bi){Bi.component=1,Qn+="a="+x.writeCandidate(Bi)+"\r\n"}),"completed"===wi.iceGatherer.state&&(Qn+="a=end-of-candidates\r\n"))});var li=new we.RTCSessionDescription({type:"offer",sdp:Qn});return Promise.resolve(li)},$t.prototype.createAnswer=function(){var zt=this;if(zt._isClosed)return Promise.reject(he("InvalidStateError","Can not call createAnswer after close"));if("have-remote-offer"!==zt.signalingState&&"have-local-pranswer"!==zt.signalingState)return Promise.reject(he("InvalidStateError","Can not call createAnswer in signalingState "+zt.signalingState));var mn=x.writeSessionBoilerplate(zt._sdpSessionId,zt._sdpSessionVersion++);zt.usingBundle&&(mn+="a=group:BUNDLE "+zt.transceivers.map(function(Qn){return Qn.mid}).join(" ")+"\r\n"),mn+="a=ice-options:trickle\r\n";var kn=x.getMediaSections(zt._remoteDescription.sdp).length;zt.transceivers.forEach(function(Qn,li){if(!(li+1>kn)){if(Qn.rejected)return"application"===Qn.kind?mn+="DTLS/SCTP"===Qn.protocol?"m=application 0 DTLS/SCTP 5000\r\n":"m=application 0 "+Qn.protocol+" webrtc-datachannel\r\n":"audio"===Qn.kind?mn+="m=audio 0 UDP/TLS/RTP/SAVPF 0\r\na=rtpmap:0 PCMU/8000\r\n":"video"===Qn.kind&&(mn+="m=video 0 UDP/TLS/RTP/SAVPF 120\r\na=rtpmap:120 VP8/90000\r\n"),void(mn+="c=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:"+Qn.mid+"\r\n");var wi;Qn.stream&&("audio"===Qn.kind?wi=Qn.stream.getAudioTracks()[0]:"video"===Qn.kind&&(wi=Qn.stream.getVideoTracks()[0]),wi&&ze>=15019&&"video"===Qn.kind&&!Qn.sendEncodingParameters[0].rtx&&(Qn.sendEncodingParameters[0].rtx={ssrc:Qn.sendEncodingParameters[0].ssrc+1}));var mi=b(Qn.localCapabilities,Qn.remoteCapabilities);!mi.codecs.filter(function(Bi){return"rtx"===Bi.name.toLowerCase()}).length&&Qn.sendEncodingParameters[0].rtx&&delete Qn.sendEncodingParameters[0].rtx,mn+=h(Qn,mi,"answer",Qn.stream,zt._dtlsRole),Qn.rtcpParameters&&Qn.rtcpParameters.reducedSize&&(mn+="a=rtcp-rsize\r\n")}});var yn=new we.RTCSessionDescription({type:"answer",sdp:mn});return Promise.resolve(yn)},$t.prototype.addIceCandidate=function(zt){var mn,kn=this;return zt&&void 0===zt.sdpMLineIndex&&!zt.sdpMid?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise(function(yn,Qn){if(!kn._remoteDescription)return Qn(he("InvalidStateError","Can not add ICE candidate without a remote description"));if(zt&&""!==zt.candidate){var li=zt.sdpMLineIndex;if(zt.sdpMid)for(var wi=0;wi<kn.transceivers.length;wi++)if(kn.transceivers[wi].mid===zt.sdpMid){li=wi;break}var mi=kn.transceivers[li];if(!mi)return Qn(he("OperationError","Can not add ICE candidate"));if(mi.rejected)return yn();var Bi=Object.keys(zt.candidate).length>0?x.parseCandidate(zt.candidate):{};if("tcp"===Bi.protocol&&(0===Bi.port||9===Bi.port)||Bi.component&&1!==Bi.component)return yn();if((0===li||li>0&&mi.iceTransport!==kn.transceivers[0].iceTransport)&&!ee(mi.iceTransport,Bi))return Qn(he("OperationError","Can not add ICE candidate"));var qi=zt.candidate.trim();0===qi.indexOf("a=")&&(qi=qi.substr(2)),(mn=x.getMediaSections(kn._remoteDescription.sdp))[li]+="a="+(Bi.type?qi:"end-of-candidates")+"\r\n",kn._remoteDescription.sdp=x.getDescription(kn._remoteDescription.sdp)+mn.join("")}else for(var sr=0;sr<kn.transceivers.length&&(kn.transceivers[sr].rejected||(kn.transceivers[sr].iceTransport.addRemoteCandidate({}),(mn=x.getMediaSections(kn._remoteDescription.sdp))[sr]+="a=end-of-candidates\r\n",kn._remoteDescription.sdp=x.getDescription(kn._remoteDescription.sdp)+mn.join(""),!kn.usingBundle));sr++);yn()})},$t.prototype.getStats=function(zt){if(zt&&zt instanceof we.MediaStreamTrack){var mn=null;if(this.transceivers.forEach(function(yn){yn.rtpSender&&yn.rtpSender.track===zt?mn=yn.rtpSender:yn.rtpReceiver&&yn.rtpReceiver.track===zt&&(mn=yn.rtpReceiver)}),!mn)throw he("InvalidAccessError","Invalid selector.");return mn.getStats()}var kn=[];return this.transceivers.forEach(function(yn){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach(function(Qn){yn[Qn]&&kn.push(yn[Qn].getStats())})}),Promise.all(kn).then(function(yn){var Qn=new Map;return yn.forEach(function(li){li.forEach(function(wi){Qn.set(wi.id,wi)})}),Qn})},["RTCRtpSender","RTCRtpReceiver","RTCIceGatherer","RTCIceTransport","RTCDtlsTransport"].forEach(function(zt){var mn=we[zt];if(mn&&mn.prototype&&mn.prototype.getStats){var kn=mn.prototype.getStats;mn.prototype.getStats=function(){return kn.apply(this).then(function(yn){var Qn=new Map;return Object.keys(yn).forEach(function(li){var wi;yn[li].type={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[(wi=yn[li]).type]||wi.type,Qn.set(li,yn[li])}),Qn})}}});var an=["createOffer","createAnswer"];return an.forEach(function(zt){var mn=$t.prototype[zt];$t.prototype[zt]=function(){var kn=arguments;return"function"==typeof kn[0]||"function"==typeof kn[1]?mn.apply(this,[arguments[2]]).then(function(yn){"function"==typeof kn[0]&&kn[0].apply(null,[yn])},function(yn){"function"==typeof kn[1]&&kn[1].apply(null,[yn])}):mn.apply(this,arguments)}}),(an=["setLocalDescription","setRemoteDescription","addIceCandidate"]).forEach(function(zt){var mn=$t.prototype[zt];$t.prototype[zt]=function(){var kn=arguments;return"function"==typeof kn[1]||"function"==typeof kn[2]?mn.apply(this,arguments).then(function(){"function"==typeof kn[1]&&kn[1].apply(null)},function(yn){"function"==typeof kn[2]&&kn[2].apply(null,[yn])}):mn.apply(this,arguments)}}),["getStats"].forEach(function(zt){var mn=$t.prototype[zt];$t.prototype[zt]=function(){var kn=arguments;return"function"==typeof kn[1]?mn.apply(this,arguments).then(function(){"function"==typeof kn[1]&&kn[1].apply(null)}):mn.apply(this,arguments)}}),$t},re}();const Z=H(se);function Se(x){const h=x&&x.navigator,b=h.mediaDevices.getUserMedia.bind(h.mediaDevices);h.mediaDevices.getUserMedia=function(k){return b(k).catch(ee=>{return Promise.reject({name:{PermissionDeniedError:"NotAllowedError"}[(he=ee).name]||he.name,message:he.message,constraint:he.constraint,toString(){return this.name}});var he})}}function Ce(x){"getDisplayMedia"in x.navigator&&x.navigator.mediaDevices&&(x.navigator.mediaDevices&&"getDisplayMedia"in x.navigator.mediaDevices||(x.navigator.mediaDevices.getDisplayMedia=x.navigator.getDisplayMedia.bind(x.navigator)))}function Be(x){const h=r(x);if(x.RTCIceGatherer&&(x.RTCIceCandidate||(x.RTCIceCandidate=function(k){return k}),x.RTCSessionDescription||(x.RTCSessionDescription=function(k){return k}),h.version<15025)){const k=Object.getOwnPropertyDescriptor(x.MediaStreamTrack.prototype,"enabled");Object.defineProperty(x.MediaStreamTrack.prototype,"enabled",{set(ee){k.set.call(this,ee);const he=new Event("enabled");he.enabled=ee,this.dispatchEvent(he)}})}x.RTCRtpSender&&!("dtmf"in x.RTCRtpSender.prototype)&&Object.defineProperty(x.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new x.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null)),this._dtmf}}),x.RTCDtmfSender&&!x.RTCDTMFSender&&(x.RTCDTMFSender=x.RTCDtmfSender);const b=Z(x,h.version);x.RTCPeerConnection=function(k){return k&&k.iceServers&&(k.iceServers=function(ee){let he=!1;return(ee=JSON.parse(JSON.stringify(ee))).filter(we=>{if(we&&(we.urls||we.url)){var ze=we.urls||we.url;we.url&&!we.urls&&i("RTCIceServer.url","RTCIceServer.urls");const pt="string"==typeof ze;return pt&&(ze=[ze]),ze=ze.filter(wt=>{if(0===wt.indexOf("stun:"))return!1;const $t=wt.startsWith("turn")&&!wt.startsWith("turn:[")&&wt.includes("transport=udp");return $t&&!he?(he=!0,!0):$t&&!he}),delete we.url,we.urls=pt?ze[0]:ze,!!ze.length}})}(k.iceServers),_("ICE servers after filtering:",k.iceServers)),new b(k)},x.RTCPeerConnection.prototype=b.prototype}function Xe(x){x.RTCRtpSender&&!("replaceTrack"in x.RTCRtpSender.prototype)&&(x.RTCRtpSender.prototype.replaceTrack=x.RTCRtpSender.prototype.setTrack)}const He=Object.freeze(Object.defineProperty({__proto__:null,shimGetDisplayMedia:Ce,shimGetUserMedia:Se,shimPeerConnection:Be,shimReplaceTrack:Xe},Symbol.toStringTag,{value:"Module"}));function Me(x){const h=r(x),b=x&&x.navigator,k=x&&x.MediaStreamTrack;if(b.getUserMedia=function(ee,he,we){i("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),b.mediaDevices.getUserMedia(ee).then(he,we)},!(h.version>55&&"autoGainControl"in b.mediaDevices.getSupportedConstraints())){const ee=function(we,ze,pt){ze in we&&!(pt in we)&&(we[pt]=we[ze],delete we[ze])},he=b.mediaDevices.getUserMedia.bind(b.mediaDevices);if(b.mediaDevices.getUserMedia=function(we){return"object"==typeof we&&"object"==typeof we.audio&&(we=JSON.parse(JSON.stringify(we)),ee(we.audio,"autoGainControl","mozAutoGainControl"),ee(we.audio,"noiseSuppression","mozNoiseSuppression")),he(we)},k&&k.prototype.getSettings){const we=k.prototype.getSettings;k.prototype.getSettings=function(){const ze=we.apply(this,arguments);return ee(ze,"mozAutoGainControl","autoGainControl"),ee(ze,"mozNoiseSuppression","noiseSuppression"),ze}}if(k&&k.prototype.applyConstraints){const we=k.prototype.applyConstraints;k.prototype.applyConstraints=function(ze){return"audio"===this.kind&&"object"==typeof ze&&(ze=JSON.parse(JSON.stringify(ze)),ee(ze,"autoGainControl","mozAutoGainControl"),ee(ze,"noiseSuppression","mozNoiseSuppression")),we.apply(this,[ze])}}}}function Q(x){"object"==typeof x&&x.RTCTrackEvent&&"receiver"in x.RTCTrackEvent.prototype&&!("transceiver"in x.RTCTrackEvent.prototype)&&Object.defineProperty(x.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function A(x){const h=r(x);if("object"!=typeof x||!x.RTCPeerConnection&&!x.mozRTCPeerConnection)return;if(!x.RTCPeerConnection&&x.mozRTCPeerConnection&&(x.RTCPeerConnection=x.mozRTCPeerConnection),h.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(ee){const he=x.RTCPeerConnection.prototype[ee],we={[ee](){return arguments[0]=new("addIceCandidate"===ee?x.RTCIceCandidate:x.RTCSessionDescription)(arguments[0]),he.apply(this,arguments)}};x.RTCPeerConnection.prototype[ee]=we[ee]}),h.version<68){const ee=x.RTCPeerConnection.prototype.addIceCandidate;x.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?arguments[0]&&""===arguments[0].candidate?Promise.resolve():ee.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}const b={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},k=x.RTCPeerConnection.prototype.getStats;x.RTCPeerConnection.prototype.getStats=function(){const[ee,he,we]=arguments;return k.apply(this,[ee||null]).then(ze=>{if(h.version<53&&!he)try{ze.forEach(pt=>{pt.type=b[pt.type]||pt.type})}catch(pt){if("TypeError"!==pt.name)throw pt;ze.forEach((wt,$t)=>{ze.set($t,Object.assign({},wt,{type:b[wt.type]||wt.type}))})}return ze}).then(he,we)}}function me(x){if("object"!=typeof x||!x.RTCPeerConnection||!x.RTCRtpSender||x.RTCRtpSender&&"getStats"in x.RTCRtpSender.prototype)return;const h=x.RTCPeerConnection.prototype.getSenders;h&&(x.RTCPeerConnection.prototype.getSenders=function(){const k=h.apply(this,[]);return k.forEach(ee=>ee._pc=this),k});const b=x.RTCPeerConnection.prototype.addTrack;b&&(x.RTCPeerConnection.prototype.addTrack=function(){const k=b.apply(this,arguments);return k._pc=this,k}),x.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function ne(x){if("object"!=typeof x||!x.RTCPeerConnection||!x.RTCRtpSender||x.RTCRtpSender&&"getStats"in x.RTCRtpReceiver.prototype)return;const h=x.RTCPeerConnection.prototype.getReceivers;h&&(x.RTCPeerConnection.prototype.getReceivers=function(){const b=h.apply(this,[]);return b.forEach(k=>k._pc=this),b}),f(x,"track",b=>(b.receiver._pc=b.srcElement,b)),x.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function G(x){x.RTCPeerConnection&&!("removeStream"in x.RTCPeerConnection.prototype)&&(x.RTCPeerConnection.prototype.removeStream=function(h){i("removeStream","removeTrack"),this.getSenders().forEach(b=>{b.track&&h.getTracks().includes(b.track)&&this.removeTrack(b)})})}function W(x){x.DataChannel&&!x.RTCDataChannel&&(x.RTCDataChannel=x.DataChannel)}function $(x){if("object"!=typeof x||!x.RTCPeerConnection)return;const h=x.RTCPeerConnection.prototype.addTransceiver;h&&(x.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];const b=arguments[1],k=b&&"sendEncodings"in b;k&&b.sendEncodings.forEach(he=>{if("rid"in he&&!/^[a-z0-9]{0,16}$/i.test(he.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in he&&!(parseFloat(he.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in he&&!(parseFloat(he.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const ee=h.apply(this,arguments);if(k){const{sender:he}=ee,we=he.getParameters();"encodings"in we||(we.encodings=b.sendEncodings,he.sendEncodings=b.sendEncodings,this.setParametersPromises.push(he.setParameters(we).then(()=>{delete he.sendEncodings}).catch(()=>{delete he.sendEncodings})))}return ee})}function le(x){if("object"!=typeof x||!x.RTCRtpSender)return;const h=x.RTCRtpSender.prototype.getParameters;h&&(x.RTCRtpSender.prototype.getParameters=function(){var b=h.apply(this,arguments);return"sendEncodings"in this?Object.assign({},{encodings:this.sendEncodings},b):b})}function Pe(x){if("object"!=typeof x||!x.RTCPeerConnection)return;const h=x.RTCPeerConnection.prototype.createOffer;x.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>h.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):h.apply(this,arguments)}}function Fe(x){if("object"!=typeof x||!x.RTCPeerConnection)return;const h=x.RTCPeerConnection.prototype.createAnswer;x.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>h.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):h.apply(this,arguments)}}const At=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:$,shimCreateAnswer:Fe,shimCreateOffer:Pe,shimGetDisplayMedia:function(x,h){x.navigator.mediaDevices&&"getDisplayMedia"in x.navigator.mediaDevices||x.navigator.mediaDevices&&(x.navigator.mediaDevices.getDisplayMedia=function(b){if(!b||!b.video){const k=new DOMException("getDisplayMedia without video constraints is undefined");return k.name="NotFoundError",k.code=8,Promise.reject(k)}return!0===b.video?b.video={mediaSource:h}:b.video.mediaSource=h,x.navigator.mediaDevices.getUserMedia(b)})},shimGetParameters:le,shimGetUserMedia:Me,shimOnTrack:Q,shimPeerConnection:A,shimRTCDataChannel:W,shimReceiverGetStats:ne,shimRemoveStream:G,shimSenderGetStats:me},Symbol.toStringTag,{value:"Module"}));function Le(x){if("object"==typeof x&&x.RTCPeerConnection){if("getLocalStreams"in x.RTCPeerConnection.prototype||(x.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in x.RTCPeerConnection.prototype)){const h=x.RTCPeerConnection.prototype.addTrack;x.RTCPeerConnection.prototype.addStream=function(b){this._localStreams||(this._localStreams=[]),this._localStreams.includes(b)||this._localStreams.push(b),b.getAudioTracks().forEach(k=>h.call(this,k,b)),b.getVideoTracks().forEach(k=>h.call(this,k,b))},x.RTCPeerConnection.prototype.addTrack=function(b,...k){return k&&k.forEach(ee=>{this._localStreams?this._localStreams.includes(ee)||this._localStreams.push(ee):this._localStreams=[ee]}),h.apply(this,arguments)}}"removeStream"in x.RTCPeerConnection.prototype||(x.RTCPeerConnection.prototype.removeStream=function(h){this._localStreams||(this._localStreams=[]);const b=this._localStreams.indexOf(h);if(-1===b)return;this._localStreams.splice(b,1);const k=h.getTracks();this.getSenders().forEach(ee=>{k.includes(ee.track)&&this.removeTrack(ee)})})}}function Et(x){if("object"==typeof x&&x.RTCPeerConnection&&("getRemoteStreams"in x.RTCPeerConnection.prototype||(x.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in x.RTCPeerConnection.prototype))){Object.defineProperty(x.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(b){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=b),this.addEventListener("track",this._onaddstreampoly=k=>{k.streams.forEach(ee=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(ee))return;this._remoteStreams.push(ee);const he=new Event("addstream");he.stream=ee,this.dispatchEvent(he)})})}});const h=x.RTCPeerConnection.prototype.setRemoteDescription;x.RTCPeerConnection.prototype.setRemoteDescription=function(){const b=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(k){k.streams.forEach(ee=>{if(b._remoteStreams||(b._remoteStreams=[]),b._remoteStreams.indexOf(ee)>=0)return;b._remoteStreams.push(ee);const he=new Event("addstream");he.stream=ee,b.dispatchEvent(he)})}),h.apply(b,arguments)}}}function $e(x){if("object"!=typeof x||!x.RTCPeerConnection)return;const h=x.RTCPeerConnection.prototype,b=h.createOffer,k=h.createAnswer,ee=h.setLocalDescription,he=h.setRemoteDescription,we=h.addIceCandidate;h.createOffer=function(pt,wt){const an=b.apply(this,[arguments.length>=2?arguments[2]:arguments[0]]);return wt?(an.then(pt,wt),Promise.resolve()):an},h.createAnswer=function(pt,wt){const an=k.apply(this,[arguments.length>=2?arguments[2]:arguments[0]]);return wt?(an.then(pt,wt),Promise.resolve()):an};let ze=function(pt,wt,$t){const an=ee.apply(this,[pt]);return $t?(an.then(wt,$t),Promise.resolve()):an};h.setLocalDescription=ze,ze=function(pt,wt,$t){const an=he.apply(this,[pt]);return $t?(an.then(wt,$t),Promise.resolve()):an},h.setRemoteDescription=ze,ze=function(pt,wt,$t){const an=we.apply(this,[pt]);return $t?(an.then(wt,$t),Promise.resolve()):an},h.addIceCandidate=ze}function Ze(x){const h=x&&x.navigator;if(h.mediaDevices&&h.mediaDevices.getUserMedia){const b=h.mediaDevices,k=b.getUserMedia.bind(b);h.mediaDevices.getUserMedia=ee=>k(Qe(ee))}!h.getUserMedia&&h.mediaDevices&&h.mediaDevices.getUserMedia&&(h.getUserMedia=function(b,k,ee){h.mediaDevices.getUserMedia(b).then(k,ee)}.bind(h))}function Qe(x){return x&&void 0!==x.video?Object.assign({},x,{video:c(x.video)}):x}function Ve(x){if(!x.RTCPeerConnection)return;const h=x.RTCPeerConnection;x.RTCPeerConnection=function(b,k){if(b&&b.iceServers){const ee=[];for(let he=0;he<b.iceServers.length;he++){let we=b.iceServers[he];!we.hasOwnProperty("urls")&&we.hasOwnProperty("url")?(i("RTCIceServer.url","RTCIceServer.urls"),we=JSON.parse(JSON.stringify(we)),we.urls=we.url,delete we.url,ee.push(we)):ee.push(b.iceServers[he])}b.iceServers=ee}return new h(b,k)},x.RTCPeerConnection.prototype=h.prototype,"generateCertificate"in h&&Object.defineProperty(x.RTCPeerConnection,"generateCertificate",{get:()=>h.generateCertificate})}function nt(x){"object"==typeof x&&x.RTCTrackEvent&&"receiver"in x.RTCTrackEvent.prototype&&!("transceiver"in x.RTCTrackEvent.prototype)&&Object.defineProperty(x.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Ot(x){const h=x.RTCPeerConnection.prototype.createOffer;x.RTCPeerConnection.prototype.createOffer=function(b){if(b){void 0!==b.offerToReceiveAudio&&(b.offerToReceiveAudio=!!b.offerToReceiveAudio);const k=this.getTransceivers().find(he=>"audio"===he.receiver.track.kind);!1===b.offerToReceiveAudio&&k?"sendrecv"===k.direction?k.setDirection?k.setDirection("sendonly"):k.direction="sendonly":"recvonly"===k.direction&&(k.setDirection?k.setDirection("inactive"):k.direction="inactive"):!0!==b.offerToReceiveAudio||k||this.addTransceiver("audio"),void 0!==b.offerToReceiveVideo&&(b.offerToReceiveVideo=!!b.offerToReceiveVideo);const ee=this.getTransceivers().find(he=>"video"===he.receiver.track.kind);!1===b.offerToReceiveVideo&&ee?"sendrecv"===ee.direction?ee.setDirection?ee.setDirection("sendonly"):ee.direction="sendonly":"recvonly"===ee.direction&&(ee.setDirection?ee.setDirection("inactive"):ee.direction="inactive"):!0!==b.offerToReceiveVideo||ee||this.addTransceiver("video")}return h.apply(this,arguments)}}function at(x){"object"!=typeof x||x.AudioContext||(x.AudioContext=x.webkitAudioContext)}const It=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:at,shimCallbacksAPI:$e,shimConstraints:Qe,shimCreateOfferLegacy:Ot,shimGetUserMedia:Ze,shimLocalStreamsAPI:Le,shimRTCIceServerUrls:Ve,shimRemoteStreamsAPI:Et,shimTrackEventTransceiver:nt},Symbol.toStringTag,{value:"Module"})),We=H(ue());function xe(x){if(!x.RTCIceCandidate||x.RTCIceCandidate&&"foundation"in x.RTCIceCandidate.prototype)return;const h=x.RTCIceCandidate;x.RTCIceCandidate=function(b){if("object"==typeof b&&b.candidate&&0===b.candidate.indexOf("a=")&&((b=JSON.parse(JSON.stringify(b))).candidate=b.candidate.substr(2)),b.candidate&&b.candidate.length){const k=new h(b),ee=We.parseCandidate(b.candidate),he=Object.assign(k,ee);return he.toJSON=function(){return{candidate:he.candidate,sdpMid:he.sdpMid,sdpMLineIndex:he.sdpMLineIndex,usernameFragment:he.usernameFragment}},he}return new h(b)},x.RTCIceCandidate.prototype=h.prototype,f(x,"icecandidate",b=>(b.candidate&&Object.defineProperty(b,"candidate",{value:new x.RTCIceCandidate(b.candidate),writable:"false"}),b))}function lt(x){if(!x.RTCPeerConnection)return;const h=r(x);"sctp"in x.RTCPeerConnection.prototype||Object.defineProperty(x.RTCPeerConnection.prototype,"sctp",{get(){return void 0===this._sctp?null:this._sctp}});const b=x.RTCPeerConnection.prototype.setRemoteDescription;x.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===h.browser&&h.version>=76){const{sdpSemantics:k}=this.getConfiguration();"plan-b"===k&&Object.defineProperty(this,"sctp",{get(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(function(k){if(!k||!k.sdp)return!1;const ee=We.splitSections(k.sdp);return ee.shift(),ee.some(he=>{const we=We.parseMLine(he);return we&&"application"===we.kind&&-1!==we.protocol.indexOf("SCTP")})}(arguments[0])){const k=function(pt){const wt=pt.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===wt||wt.length<2)return-1;const $t=parseInt(wt[1],10);return $t!=$t?-1:$t}(arguments[0]),ee=function(pt){let wt=65536;return"firefox"===h.browser&&(wt=h.version<57?-1===pt?16384:2147483637:h.version<60?57===h.version?65535:65536:2147483637),wt}(k),he=function(pt,wt){let $t=65536;"firefox"===h.browser&&57===h.version&&($t=65535);const an=We.matchPrefix(pt.sdp,"a=max-message-size:");return an.length>0?$t=parseInt(an[0].substr(19),10):"firefox"===h.browser&&-1!==wt&&($t=2147483637),$t}(arguments[0],k);let we;we=0===ee&&0===he?Number.POSITIVE_INFINITY:0===ee||0===he?Math.max(ee,he):Math.min(ee,he);const ze={};Object.defineProperty(ze,"maxMessageSize",{get:()=>we}),this._sctp=ze}return b.apply(this,arguments)}}function ft(x){if(!x.RTCPeerConnection||!("createDataChannel"in x.RTCPeerConnection.prototype))return;function h(k,ee){const he=k.send;k.send=function(){const we=arguments[0];if("open"===k.readyState&&ee.sctp&&(we.length||we.size||we.byteLength)>ee.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+ee.sctp.maxMessageSize+" bytes)");return he.apply(k,arguments)}}const b=x.RTCPeerConnection.prototype.createDataChannel;x.RTCPeerConnection.prototype.createDataChannel=function(){const k=b.apply(this,arguments);return h(k,this),k},f(x,"datachannel",k=>(h(k.channel,k.target),k))}function ht(x){if(!x.RTCPeerConnection||"connectionState"in x.RTCPeerConnection.prototype)return;const h=x.RTCPeerConnection.prototype;Object.defineProperty(h,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(h,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(b){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),b&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=b)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(b=>{const k=h[b];h[b]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=ee=>{const he=ee.target;if(he._lastConnectionState!==he.connectionState){he._lastConnectionState=he.connectionState;const we=new Event("connectionstatechange",ee);he.dispatchEvent(we)}return ee},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),k.apply(this,arguments)}})}function Xt(x){if(!x.RTCPeerConnection)return;const h=r(x);if("chrome"===h.browser&&h.version>=71||"safari"===h.browser&&h.version>=605)return;const b=x.RTCPeerConnection.prototype.setRemoteDescription;x.RTCPeerConnection.prototype.setRemoteDescription=function(k){return k&&k.sdp&&-1!==k.sdp.indexOf("\na=extmap-allow-mixed")&&(k.sdp=k.sdp.split("\n").filter(ee=>"a=extmap-allow-mixed"!==ee.trim()).join("\n")),b.apply(this,arguments)}}const Ht=Object.freeze(Object.defineProperty({__proto__:null,removeAllowExtmapMixed:Xt,shimConnectionState:ht,shimMaxMessageSize:lt,shimRTCIceCandidate:xe,shimSendThrowTypeError:ft},Symbol.toStringTag,{value:"Module"}));!function({window:x}={},h={shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0}){const b=_,k=r(x),ee={browserDetails:k,commonShim:Ht,extractVersion:y,disableLog:O,disableWarnings:P};switch(k.browser){case"chrome":if(!X||!R||!h.shimChrome)return b("Chrome shim is not included in this adapter release."),ee;if(null===k.version)return b("Chrome shim can not determine version, not shimming."),ee;b("adapter.js shimming chrome."),ee.browserShim=X,I(x),U(x),R(x),V(x),g(x),T(x),N(x),L(x),B(x),xe(x),ht(x),lt(x),ft(x),Xt(x);break;case"firefox":if(!At||!A||!h.shimFirefox)return b("Firefox shim is not included in this adapter release."),ee;b("adapter.js shimming firefox."),ee.browserShim=At,Me(x),A(x),Q(x),G(x),me(x),ne(x),W(x),$(x),le(x),Pe(x),Fe(x),xe(x),ht(x),lt(x),ft(x);break;case"edge":if(!He||!Be||!h.shimEdge)return b("MS edge shim is not included in this adapter release."),ee;b("adapter.js shimming edge."),ee.browserShim=He,Se(x),Ce(x),Be(x),Xe(x),lt(x),ft(x);break;case"safari":if(!It||!h.shimSafari)return b("Safari shim is not included in this adapter release."),ee;b("adapter.js shimming safari."),ee.browserShim=It,Ve(x),Ot(x),$e(x),Le(x),Et(x),nt(x),Ze(x),at(x),xe(x),lt(x),ft(x),Xt(x);break;default:b("Unsupported browser!")}}({window});const Je={ALL:"all",h:"relay"},tt="Local";function rt(x){return x.os===l.PlatformOS.XBOX}function et(x){return x.browser===l.PlatformBrowser.EDGE}function St(x){return rt(x)&&et(x)}function Gt(x){return x.os===l.PlatformOS.IPADOS}function yt(x){return x.os===l.PlatformOS.IOS||Gt(x)||Wt(x)}function Wt(x){return"VISIONPRO"===(x.model||x.deviceModel)}function ke(x){var h,b;return null!==(b=null===(h=x.model||x.deviceModel)||void 0===h?void 0:h.toUpperCase().startsWith("QUEST"))&&void 0!==b&&b}function be(x){return!!/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(x)}function Ae(x){return"0x"+("00000000"+(h=x,x=h>>>0).toString(16).toUpperCase()).slice(-8);var h}function qe(){return!!window.chrome}function Lt(x){return x.browser===l.PlatformBrowser.SAFARI}function Zt(x){return x.browser===l.PlatformBrowser.OPERAGX}function fn(x){return x?x.os===l.PlatformOS.IOS:/iPhone|iPod/.test(navigator.userAgent)}function hn(x){return x.os===l.PlatformOS.WEBOS}function On(x){return x.os===l.PlatformOS.CHROME_OS}function fi(x){return x.os===l.PlatformOS.WINDOWS}function Ji(x){return x.os===l.PlatformOS.MAC}function Fi(x){return x.os===l.PlatformOS.TIZEN}function bt(x){return x.os===l.PlatformOS.LINUX}function bn(x){return x.os===l.PlatformOS.ANDROID}function Pt(){var x,h;return null===(h=null===(x=window.matchMedia)||void 0===x?void 0:x.call(window,"(pointer:coarse)"))||void 0===h?void 0:h.matches}function jt(){var x,h;return!!window.TouchEvent&&(null===(h=null===(x=window.matchMedia)||void 0===x?void 0:x.call(window,"(any-pointer:coarse)"))||void 0===h?void 0:h.matches)}function gn(x){return x.os===l.PlatformOS.TIZEN||x.os===l.PlatformOS.WEBOS}function ui(){let x=new Uint8Array(36);window.crypto.getRandomValues(x);let h="";for(let b=0;b<36;b++){let k=x[b]%16;8==b||13==b||18==b||23==b?h+="-":14==b?h+="4":(19==b&&(k=3&k|8),h+=k.toString(16))}return l.Log.i("{d988e7f}","{534eaf4}",h),h}function Ii(x,h){for(let b=0;b<h.length&&b<x.length;++b){const k=x[b],ee=h[b];if(k>ee)return!0;if(k<ee)return!1}if(x.length<h.length)for(let b=x.length;b<h.length;++b)if(h[b]>0)return!1;return!0}function pr(x){return x.browser==l.PlatformBrowser.CHROME}function zr(x,h,b,k,ee){if(x.browser!=l.PlatformBrowser.CHROME)return!1;const he=[h,b??0,k??0,ee??0];try{return Ii(x.browserBestVer.split(".").map(we=>Number.parseInt(we)),he)}catch{l.Log.w("{d988e7f}","{bcd8f94}")}return!0}function Cn(x,h,b,k){var ee;if(!yt(x))return!1;try{return pn(null!==(ee=x.osVersion)&&void 0!==ee?ee:x.osVer,h,b,k)}catch{l.Log.w("{d988e7f}","{cf4149f}")}return!h}function pn(x,h,b,k){const ee=x.replace(/[^0-9.]/,"").split(".").map(we=>Number.parseInt(we)),he=[b,k??0];return 1===ee.length&&ee.push(0),h?ee.every((we,ze)=>we===he[ze]):Ii(ee,he)}function ti(x,h,b){return Cn(x,!0,h,b)}function pi(x,h,b){return Cn(x,!1,h,b)}function cn(x,h,b){return{code:x,description:h,error:null!==b?b:void 0}}function An(x){switch(x){case l.NetworkType.ETHERNET:return"ETHERNET";case l.NetworkType.WIFI:return"WIFI";case l.NetworkType.WIFI_2_4:return"WIFI_2_4";case l.NetworkType.WIFI_5_0:return"WIFI_5_0";case l.NetworkType.MOBILE:return"MOBILE";case l.NetworkType.MOBILE_2G:return"MOBILE_2G";case l.NetworkType.MOBILE_3G:return"MOBILE_3G";case l.NetworkType.MOBILE_4G:return"MOBILE_4G";case l.NetworkType.MOBILE_5G:return"MOBILE_5G";case l.NetworkType.OTHER:case l.NetworkType.BLUETOOTH:case l.NetworkType.WIMAX:return"OTHER";default:return"UNKNOWN"}}function Jn(x){return x.replace(/(partnerCustomData" *: *")((\\"|[^"])*)(?=")/g,"$1***")}function hi(x){const h=Object.values(Je);return x.iceTransportPolicy&&!h.includes(x.iceTransportPolicy)&&(l.Log.w("{d988e7f}","{5776afe}",JSON.stringify(x??"undefined",null,2)),x.iceTransportPolicy=void 0),x}let xi={o:!0,l:!1};function xn(x){if(x)switch(x){case"enable":case"on":case"1":case"true":return!0;case"disable":case"off":case"0":case"false":return!1}}class Yn{constructor(h){this.u=new Map,this.v=h}addListener(h,b){const k=this.u.get(h);if(void 0!==k)k.add(b);else{const ee=new Set;ee.add(b),this.u.set(h,ee)}}removeListener(h,b){let k=this.u.get(h);k?.delete(b)}removeAllListenersOfEvent(h){this.u.delete(h)}removeAllListeners(){this.u.clear()}hasListener(h){const b=this.u.get(h);return void 0!==b&&b.size>0}emit(h,...b){try{let k=this.u.get(h);if(k)for(const ee of k)this.v?ee(...b):window.setTimeout(ee,0,...b)}catch(k){console.log("Exception in emit: "+k)}}}function Gn(x,h,b,k){let ee=[];(function(ze,pt){let wt=[];do{wt.push(ze),ze=Object.getPrototypeOf(ze)}while(""!=ze.name);wt.reverse();for(let $t of wt)pt.push($t.toString().replace(/(extends )[^ {]*\.([^ ]*[ {])/,"$1$2"))})(x,ee),ee.push(`${h.toString()}`),k?(ee.push(`${k.toString()}`),ee.push(`onconnect = (event) => { ${k.name}(${x.name}, event, ${h.name}); };`)):ee.push(`onmessage = (event) => { ${h.name}(${x.name}, event); };`),ee.push(`${b.toString()}`),ee.push(`onerror = (event) => { ${b.name}(event); };`);const we=new Blob(ee,{type:"text/javascript"});return URL.createObjectURL(we)}function Ci(x,h,b){if(!x.prototype.m)throw new Error("Invalid Worker class provided");const k=Gn(x,Kn,gi),ee=new Worker(k);return URL.revokeObjectURL(k),_o(ee,h,b),ee}function ln(x,h,b){const k=window;if(void 0===k.SharedWorker)throw new Error("SharedWorker not supported");if(!x.prototype.m)throw new Error("Invalid Worker class provided");const ee=Gn(x,Kn,gi,bo),he=new k.SharedWorker(ee);return URL.revokeObjectURL(ee),_o(he,h,b),he}xi.o||l.Logger.setLogLevel(l.LogLevel.ERROR),xi.l&&l.Logger.setLogMechanism(l.LogMechanism.Console);const bi=new Map;function Zi(x){return"port"in x?x.port:x}function Mr(x){x&&$r(Zi(x))}function $r(x){if(bi.has(x))return;x.postMessage.bind(x)({S:2,data:null});const b=window.setTimeout(()=>{const k=bi.get(x);k&&(clearTimeout(k),bi.delete(x)),x instanceof Worker?x.terminate():x instanceof MessagePort&&x.close()},150);bi.set(x,b)}function _o(x,h,b){const k=Zi(x),ee=k.postMessage.bind(k);let he=!1;const we=ze=>{he||(he=!0,l.Log.e("{10ca8e2}","{03baf25}",ze,typeof ze),$r(k),b(ze))};k.onmessage=ze=>{const pt=ze.data;let $t=pt.data;switch(pt.S){case 1:ee({S:3,data:null});break;case 4:h($t),$r(k);break;case 5:we($t)}},"onmessageerror"in k&&(k.onmessageerror=we),x.onerror=we,ee({S:0,data:null})}function bo(x,h,b){const k=globalThis;k.port=h.ports[0],k.port.onmessage=b.bind(self,x)}function Kn(x,h){var b,k;const ee=globalThis;ee.I=null!==(b=ee.I)&&void 0!==b?b:{};const he=h.data;let we=he.S,ze=he.data,pt="port"in ee?ee.port:self;switch(we){case 0:const wt=new x;ee.I[x.name]=wt,pt.postMessage({S:1,data:null});break;case 2:null===(k=self?.close)||void 0===k||k.call(self);break;case 3:Promise.resolve(ee.I[x.name].m()).then(an=>{pt.postMessage({S:4,data:an})});break;default:throw new Error(`Unknown message: ${we}:${ze}`)}}function gi(x){const h=globalThis;("port"in h?h.port:self).postMessage({S:5,data:x})}const Pi="0";class ji{constructor(){}C(){return this.T(this.M())}M(){return self.OffscreenCanvas?new OffscreenCanvas(1,1):document.createElement("canvas")}T(h){const b=h.getContext("webgl"),k=b&&b.getExtension("WEBGL_debug_renderer_info");return k?{P:b&&b.getParameter(k.UNMASKED_VENDOR_WEBGL),D:b&&b.getParameter(k.UNMASKED_RENDERER_WEBGL),R:!0}:{P:"",D:"",R:!1}}m(){return this.C()}}class Qi{constructor(){}m(){const h=navigator.userAgentData;return h?h.getHighEntropyValues(["platform","architecture","uaFullVersion","platformVersion","model","bitness","fullVersionList"]).then(b=>(b||(b={}),b.brands||(b.brands=h.brands),b.mobile||(b.mobile=h.mobile),b)):Promise.resolve(void 0)}}class ar{constructor(){}m(){let h={N:!1,O:"",P:""};if(navigator.userAgent){const b=navigator.userAgent.toUpperCase(),k=["BRAVIA","TIZEN","PHILIPSTV","GOOGLETV","CRKEY","CHROMECAST","SHIELDTV"],ee=["SONY","SAMSUNG","PHILIPS","GOOGLE","GOOGLE","GOOGLE","NVIDIA"];if(new RegExp(["BRAVIA","SMARTTV","SMART-TV","PHILIPSTV","GOOGLETV","CRKEY","CHROMECAST","SHIELD Android TV"].join("|"),"i").test(b)){h.N=!0;const he=b.match(k.join("|"));if(he)for(let we=0;we<k.length;we++)he[0]==k[we]&&(h.O=k[we],h.P=ee[we],"CRKEY"==he[0]&&(h.O="CHROMECAST"))}}return Promise.resolve(h)}}class jr{constructor(){}m(){return{platform:navigator.platform}}}const ho=new class{constructor(){this.start=0,this.finish=0,this.F=!1,this.L=!1,this.U=!1,this.G=!1,this.H=!1,this.V=!1,this.W=!1,this._=!1,this.$=!1,this.K=!0,this.j=!1,this.J=!1,this.Z=!1,this.tt=!1,this.it=!1,this.st=!1,this.et=!1,this.nt=!1,this.ht=!1,this.ot=!1,this.rt=!1,this.dt=!1,this.ct=!1,this.lt=!1,this.ut=!1,this.At=!1,this.vt=!1,this.ft=!1,this.gt=!1,this.wt=!1,this.St=!1,this.bt=!1,this.kt=!1,this.yt=!1,this.It=!1,this.Ct=!1,this.Et=!1,this.Tt=!1,this.Mt=!1,this.Pt=!1,this.Dt=!1,this.Rt=!1,this.Nt=!1,this.xt=!1,this.Ot=!1,this.Bt=!1,this.Ft=!1,this.Lt=!1,this.Ut=!1,this.Gt=!1,this.Ht=!1,this.Vt=!1,this.Wt=!1,this._t=!1,this.qt=!1,this.$t=!1,this.zt=!1,this.Kt=!1,this.Qt=!1,this.Yt=!1,this.Xt=!1,this.jt=!1,this.Jt=!1,this.Zt=!1,this.ti=!1,this.ii=!1,this.si=!1,this.ei=!1,this.ni=!1,this.hi=!1,this.oi=!1,this.ri=!1,this.ai=!1,this.di=!1,this.ci=!1,this.li=!1,this.ui=!1,this.Ai=!1,this.fi=!1,this.pi=!1,this.mi=!1,this.gi=!1,this.wi=!1,this.Si=!1,this.bi=!1,this.ki=!1,this.yi=!1,this.Ii=!1,this.Ci=!1,this.Ei=!1,this.Ti=!1,this.Mi=!1,this.Pi=!1,this.Di=!1,this.Ri=!1,this.Ni=!1,this.xi=!1,this.Oi=!1,this.Bi=!1,this.Fi=!1,this.Li=!1,this.Ui=!1,this.Gi=!1,this.Hi=!1,this.Vi=!1,this.Wi=!1,this._i=!1,this.$i=!1,this.zi=!1,this.Ki=!1,this.Qi=!1,this.Yi=!1,this.Xi=!1,this.ji=!1,this.Ji=!1,this.Zi=!1,this.ss=!1,this.es=!1,this.ns=!1,this.hs=!1,this.rs=!1,this.ds=!1,this.cs=!1,this.ls=!1,this.us=!1,this.As=!1,this.vs=!1,this.fs=!1,this.ps=!1,this.gs=!1,this.ws=!1,this.Ss=!1,this.bs=!1,this.ks=!1,this.ys=!1,this.Is=0,this.Cs=0,this.Es=0,this.Ts=0,this.Ms=0,this.Ps=0,this.Ds=0,this.gpuDetail="",this.Rs={os:l.PlatformOS.UNKNOWN,osRawVer:Pi,osVer:Pi,osVersion:Pi,browser:l.PlatformBrowser.UNKNOWN,browserVer:Pi,browserFullVer:Pi,chromiumFullVer:Pi,browserBestVer:Pi,forging:!0,spoofing:!0,confidence:0,totalTime:0,vendor:"",make:"",gpuDetail:""},this.Ns=[],this.xs=/Chrome\/(([0-9]+)\.[0-9]+\.[0-9]+\.[0-9]+)/}Os(){return this.Bs||(this.Bs=this.Fs()),this.Bs}Fs(){return this.start=performance.now(),new Promise((x,h)=>{this.ws?x(this.Rs):this.Ls().then(()=>{this.ws=!0,x(this.Rs)})})}Us(){const x=window.speechSynthesis;if(x){const h=x.getVoices;let b=h?.call(x)||[];return new Promise((k,ee)=>{if(!h||b.length)this.Gs(b),k();else{let he=0;const we=()=>{b=h.call(x);const ze=performance.now();if(0==b.length&&(0==he||ze-he<600))return this.Is&&clearTimeout(this.Is),void(this.Is=window.setTimeout(we,150));this.Is&&(clearTimeout(this.Is),this.Is=0),this.Gs(b),k()};void 0!==x.onvoiceschanged&&(x.onvoiceschanged=we),this.Hs(()=>{b=h.call(x),b.length?we():(this.Is=window.setTimeout(we,150),he=performance.now())})}})}return new Promise(h=>{h()})}Gs(x){if(!this.Ss){for(const h of x){const b=h.voiceURI||"";b.startsWith("Chrome OS")?this.F=!0:b.startsWith("Google")?this.L=!0:b.includes("moz-tts")?(b.includes("android")&&(this.G=!0,this.It=!0),this.U=!0):"English United States"==b&&(this.H=!0),b.includes("Microsoft")?(this.V=!0,b.includes("Online")?this._=!0:this.$=!0):b.includes("com.apple")?(this.W=!0,b.includes("Ellen")&&(this.K=!0)):"Zuzana"==b&&(this.W=!0)}this.j=this.W||this.V||this.L||this.F||this.U||this.H,this.Ss=!0}}Ls(){var x=this;return n(function*(){yield Promise.all([x.Vs(),x.Ws(),x._s(),x.Us(),x.qs(),x.$s(),x.zs(),x.Ks(),x.Qs(),x.Ys(),x.Xs(),x.js(),x.Js()]).then(()=>{x.Zs(),x.te()})})()}$s(){var x,h,b,k,ee,he,we,ze,pt,wt,$t;const an=window,zt=an.hasOwnProperty,mn=an.navigator,kn=an.Intl,yn=an.CSS,Qn=yn?.supports,li=an.Promise;zt.call(an,"MSMediaKeys")?this.Z=!0:zt.call(an,"_firefoxTV_cachedScrollPosition")?this.ot=!0:void 0!==an.__edgeActiveElement||an.__edgeTrackingPreventionStatistics?this.tt=!0:an.safari?this.it=!0:an.opr?this.rt=!0:an.oprt?this.dt=!0:mn.brave?this.ut=!0:void 0!==an.OperaTouch||an.ethereum?(this.lt=!0,this.It=!0):an.OperaGXDownloads||an.OperaGXGames?(this.ct=!0,this.It=!0):an.yandex?this.At=!0:an.QuickAccess?this.vt=!0:an.chrome?this.st=!0:an.netscape?this.nt=!0:an.__firefox__?this.ht=!0:an.__gCrWeb?this.et=!0:an.ReactNativeWebView&&(this.ft=!0),void 0!==an.contacts||void 0!==an.ContactsManager?this.It=!0:zt.call(an,"onwebOSAccessibilityAlertDone")||an.webOSSystem||zt.call(an,"onwebosaccessibilityalertdone")?this.Ct=!0:an.tizen||an.TizenTVApiInfo||an.addEdgeEffectONSCROLLTizenUIF||an.tizentvwasm?this.Et=!0:an.HardkeyEvent&&(this.Tt=!0),!(null===(x=mn.mediaCapabilities)||void 0===x)&&x.decodingInfo&&(this.wi=!0),an.BigInt&&(this.mi=!0,an.BigInt64Array&&(this.gi=!0)),an.PerformanceNavigationTiming&&(this.Si=!0),an.WebAssembly&&an.WebAssembly.Exception&&(this.bi=!0),an.BroadcastChannel&&(this.ki=!0),an.GPUBuffer&&(this.yi=!0),an.SharedWorker&&(this.xi=!0),an.MediaRecorder&&(this.Ii=!0),an.CSSCounterStyleRule&&(this.Oi=!0);const wi=null===(h=an.ArrayBuffer)||void 0===h?void 0:h.prototype;if(wi?.hasOwnProperty("transfer")&&(this.Bi=!0),zt.call(an,"ondevicelight")&&(this.Ci=!0),!(null===(b=an.AbortSignal)||void 0===b)&&b.abort&&(this.Ei=!0),zt.call(an,"onbeforeinput")&&(this.Ti=!0),kn){kn.DisplayNames&&(this.Mi=!0);const Vr=new kn.Collator("zh",{se:"pinyin"});this.Pi="pinyin"==(null===(k=Vr.resolvedOptions())||void 0===k?void 0:k.se)}an.Credential&&(this.Ri=!0),!(null===(ee=an.browser)||void 0===ee)&&ee.runtime&&(this.Ni=!0),an.LargestContentfulPaint&&(this.Fi=!0),yn?.registerProperty&&(this.Li=!0);const mi=null===(he=an.HTMLElement)||void 0===he?void 0:he.prototype;mi?.hasOwnProperty("autofocus")&&(this.Ui=!0),mn.contacts&&(this.Gi=!0),an.TrustedHTML&&(this.Hi=!0),an.WakeLock&&(this.Vi=!0),li?.any&&(this.Wi=!0),an.FileSystemHandle&&(this._i=!0),!(null===(we=an.Atomics)||void 0===we)&&we.waitAsync&&(this.$i=!0),Qn?.call(yn,"aspect-ratio: auto")&&(this.zi=!0),an.ReadableStreamBYOBReader&&(this.Ki=!0),Qn?.call(yn,"overflow: clip")&&(this.Qi=!0),Qn?.call(yn,"content-visibility: auto")&&(this.Xi=!0),an.CSSStartingStyleRule&&(this.ji=!0),li?.withResolvers&&(this.Ji=!0);const Bi=null===(ze=an.CanvasRenderingContext2D)||void 0===ze?void 0:ze.prototype;Bi?.hasOwnProperty("reset")&&(this.Zi=!0);const qi=null===(pt=an.Set)||void 0===pt?void 0:pt.prototype;qi?.hasOwnProperty("difference")&&(this.ss=!0),Qn?.call(yn,"selector(:user-valid)")&&(this.es=!0);const sr=null===(wt=an.InputEvent)||void 0===wt?void 0:wt.prototype;sr?.hasOwnProperty("isComposing")&&(this.ns=!0),an.VRDisplay&&(this.hs=!0);const Ar=null===($t=an.HTMLVideoElement)||void 0===$t?void 0:$t.prototype;this.Yi=Ar?.hasOwnProperty("webkitSupportsPresentationMode")}Ks(){return new Promise((x,h)=>{const b="Plat",k=an=>{if(this.ys)return;const zt=an.platform;"MacIntel"===zt?this.gt=!0:"iPhone"===zt?this.wt=!0:"Win32"===zt?this.St=!0:"iPad"===zt?this.bt=!0:"FreeBSD amd64"===zt?this.yt=!0:"Windows"===zt&&(this.St=!0,this.ee=!0),zt.startsWith("Linux")&&(this.kt=!0),this.ys=!0};let ee=!1;const he=an=>{if(this.Ms)clearTimeout(this.Ms),this.Ms=0;else if(ee)return l.Log.w("{3c72abb}","{b02109c}"),void this.ne(b,this.Ds-performance.now());k(an),x()};let we=!1,ze=!1;const pt=an=>{"string"==typeof an?this.he(b,an):"data"in an?this.oe(b,an):this.re(b,an),ze=!0,l.Log.e("{3c72abb}","{6350135}",an)};let wt,$t=0;try{we=!0,wt=Ci(jr,he,pt),$t=150}catch(an){ze=!0,this.ae(b,an),l.Log.w("{3c72abb}","{79668e5}",an)}this.Hs(()=>{this.ys||(this.Ms=window.setTimeout(()=>{this.Ms=0,this.Ds=performance.now(),ze?l.Log.w("{3c72abb}","{d9e1e01}"):we?(l.Log.w("{3c72abb}","{a8d68cb}"),this.de(b)):(l.Log.i("{3c72abb}","{53e2225}"),this.ce(b));const an=(new jr).m();he(an),ee=!0},$t))})})}Qs(){const x=window;x.ApplePaySession&&x.ApplePaySession.canMakePayments&&(this.Di=!0)}Vs(){return new Promise((x,h)=>{const b="GL",k=an=>{if(this.bs)return;const zt=an.D;if(zt.startsWith("ANGLE")){let kn=zt.split(",");kn?.length>1&&(this.gpuDetail=kn[1].trim())}else this.gpuDetail=zt;const mn=zt.toLowerCase();if(zt.includes("SraKmd")){this.Qt=!0,zt.includes("SraKmd_arden")&&(this.Yt=!0);const kn=/D3D11-(\d{2,}\.\d{1,}\.\d{5,}\.\d{4,})/.exec(zt);kn&&kn.length>1&&(this.osVersion=kn[1])}else zt.includes("AMD")&&mn.includes("vangogh")&&(this.Xt=!0);this.us=an.R,this.bs=!0};let ee=!1;const he=an=>{if(this.Cs)clearTimeout(this.Cs),this.Cs=0;else if(ee)return l.Log.w("{3c72abb}","{c1bb269}"),void this.ne(b,this.Ps-performance.now());k(an),x()};let we=!1,ze=!1;const pt=an=>{"string"==typeof an?this.he(b,an):"data"in an?this.oe(b,an):this.re(b,an),ze=!0,l.Log.e("{3c72abb}","{9e45306}",an)};let wt,$t=0;try{self.OffscreenCanvas&&(we=!0,wt=Ci(ji,he,pt),$t=150)}catch(an){ze=!0,this.ae(b,an),l.Log.w("{3c72abb}","{caf8cd7}",an)}this.Hs(()=>{this.bs||(this.Cs=window.setTimeout(()=>{this.Cs=0,this.Ps=performance.now(),ze?l.Log.w("{3c72abb}","{fbe663c}"):we?(l.Log.w("{3c72abb}","{2577061}"),this.de(b)):(l.Log.i("{3c72abb}","{95c252e}"),this.ce(b));const an=(new ji).m();he(an),ee=!0},$t))})})}le(x){var h,b,k;this.As=!0,x.mobile&&(this.qt=!0);const ee=x.brands||[],he=x.fullVersionList;let we=0;for(let ze=0;ze<ee.length;++ze){const pt=ee[ze],wt=pt.brand,$t=pt.version,an=null===(h=he?.[ze])||void 0===h?void 0:h.version;"Google Chrome"===wt?(this.xt=!0,this.browserVersion=$t,this.browserFullVer=an):"Microsoft Edge"===wt?(this.Ot=!0,this.browserVersion=$t,this.browserFullVer=an):"OperaMobile"===wt?this.Ft||(this.Bt=!0,this.browserVersion=$t,this.browserFullVer=an):"Opera"===wt?this.Bt||this.Ft||(this.Bt=!0,this.browserVersion=$t,this.browserFullVer=an):"Opera GX"===wt?(this.Ft=!0,this.browserVersion=$t,this.browserFullVer=an):"Yandex"===wt||"YaBrowser"===wt?(this.Lt=!0,this.browserVersion=$t,this.browserFullVer=an):"Brave"===wt?(this.Ut=!0,this.browserVersion=$t,this.browserFullVer=an):"Samsung Internet"===wt?(this.Gt=!0,this.browserVersion=$t,this.browserFullVer=an):"Oculus Browser"==wt?(this.Ht=!0,this.Ai=!0,this.deviceName="QUEST",this.browserVersion=$t,this.browserFullVer=an):"Chromium"===wt?(this.Vt=!0,this.browserVersion=null!==(b=this.browserVersion)&&void 0!==b?b:$t,this.browserFullVer=null!==(k=this.browserFullVer)&&void 0!==k?k:an,this.ue=$t,this.Ae=an):"Android WebView"===wt?(this.Wt=!0,this.browserVersion=$t,this.browserFullVer=an):we++}we>2&&(this._t=!0)}Js(){return new Promise((x,h)=>{const b=$t=>{$t.N&&(this.fi=$t.N,this.ve=$t.P,this.fe=$t.O)},k=$t=>{this.Ts&&(clearTimeout(this.Ts),this.Ts=0),b($t),x()};let ee=!1,he=!1;const we="TV",ze=$t=>{"string"==typeof $t?this.he(we,$t):"data"in $t?this.oe(we,$t):this.re(we,$t),he=!0,l.Log.e("{3c72abb}","{f49e1b4}",$t)};let pt,wt=0;try{self.SharedWorker&&(ee=!0,pt=ln(ar,k,ze),wt=150)}catch($t){he=!0,l.Log.w("{3c72abb}","{2066dd6}",$t),this.ae(we,$t)}this.Ts=window.setTimeout(()=>{Mr(pt),he?l.Log.w("{3c72abb}","{cdb3848}"):ee?(l.Log.w("{3c72abb}","{f01188c}"),this.de(we)):(l.Log.i("{3c72abb}","{db9e3f4}"),this.ce(we)),(new ar).m().then($t=>{k($t)})},wt)})}Xs(){navigator.maxTouchPoints&&navigator.maxTouchPoints>0&&(this.Kt=!0)}js(){const x=window;this.rs=x.matchMedia("(hover: hover)").matches,this.ds=x.matchMedia("(hover: none)").matches,this.cs=x.matchMedia("(pointer: coarse)").matches,this.ls=x.matchMedia("(pointer: fine)").matches}Ys(){const x=navigator.plugins;for(const h of x){const b=h.name;"Native Client"===b?this.Mt=!0:b.startsWith("Microsoft Edge PDF")?(this.Rt=!0,this.J=!0):b.startsWith("Chrome PDF")?this.Pt=!0:b.startsWith("Chromium PDF")?this.Dt=!0:b.startsWith("PPAPI SAMSUNGHEALTH")&&(this.Nt=!0,this.Et=!0)}}pe(){return n(function*(){if(!window.createImageBitmap)return!1;const x=yield fetch("data:image/avif;base64,AAAAGGZ0eXBhdmlmAAAAAGF2aWZtaWYxAAADm21ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAHBpY3QAAAAAAAAAAAAAAAAAAAAADnBpdG0AAAAAAAEAAAAiaWxvYwAAAABEQAABAAEAAAAAA7sAAQAAAAAAAAAjAAAAI2lpbmYAAAAAAAEAAAAVaW5mZQIAAAAAAQAAYXYwMQAAAAMbaXBycAAAAvxpcGNvAAACrGNvbHJwcm9mAAACoGxjbXMEMAAAbW50clJHQiBYWVogB+UACAAJAAsAEAAFYWNzcE1TRlQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPbWAAEAAAAA0y1sY21zAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANZGVzYwAAASAAAABAY3BydAAAAWAAAAA2d3RwdAAAAZgAAAAUY2hhZAAAAawAAAAsclhZWgAAAdgAAAAUYlhZWgAAAewAAAAUZ1hZWgAAAgAAAAAUclRSQwAAAhQAAAAgZ1RSQwAAAhQAAAAgYlRSQwAAAhQAAAAgY2hybQAAAjQAAAAkZG1uZAAAAlgAAAAkZG1kZAAAAnwAAAAkbWx1YwAAAAAAAAABAAAADGVuVVMAAAAkAAAAHABHAEkATQBQACAAYgB1AGkAbAB0AC0AaQBuACAAcwBSAEcAQm1sdWMAAAAAAAAAAQAAAAxlblVTAAAAGgAAABwAUAB1AGIAbABpAGMAIABEAG8AbQBhAGkAbgAAWFlaIAAAAAAAAPbWAAEAAAAA0y1zZjMyAAAAAAABDEIAAAXe///zJQAAB5MAAP2Q///7of///aIAAAPcAADAblhZWiAAAAAAAABvoAAAOPUAAAOQWFlaIAAAAAAAACSfAAAPhAAAtsRYWVogAAAAAAAAYpcAALeHAAAY2XBhcmEAAAAAAAMAAAACZmYAAPKnAAANWQAAE9AAAApbY2hybQAAAAAAAwAAAACj1wAAVHwAAEzNAACZmgAAJmcAAA9cbWx1YwAAAAAAAAABAAAADGVuVVMAAAAIAAAAHABHAEkATQBQbWx1YwAAAAAAAAABAAAADGVuVVMAAAAIAAAAHABzAFIARwBCAAAADGF2MUOBDQwAAAAAFGlzcGUAAAAAAAAAEAAAABAAAAAoY2xhcAAAAAEAAAABAAAAAQAAAAH////xAAAAAv////EAAAACAAAAF2lwbWEAAAAAAAAAAQABBIGCA4QAAAArbWRhdBIACgkfzP/IIEBA0oAyFGW+OwPr0bIHHHHBATZPtaQ3RWTA").then(h=>h.blob());return createImageBitmap(x).then(()=>!0,()=>!1)})()}_s(){var x=this;return n(function*(){const h=window;x.pi=!!h.chrome&&(yield x.pe())})()}Ws(){return new Promise((x,h)=>{if(!navigator.userAgentData)return void x();const b=$t=>{var an,zt;if(this.ks)return;const mn=$t.model,kn=$t.platform,yn=$t.platformVersion,Qn=$t.uaFullVersion,li=$t.bitness;this.$t=$t.mobile,this.zt=navigator.userAgentData.mobile,""==mn&&""==kn&&""==yn&&""==Qn?this.lt&&this.It||this.Et||null==li||this.It&&!this.st||(this.vs=!0):""==li&&("Android"==kn||(this.vs=!0)),mn&&("Xbox"===mn?this.jt=!0:mn.startsWith("AFT")?(this.Jt=!0,this.ui=!0):mn.includes("BRAVIA")?(this.ui=!0,this.Zt=!0):"Chromecast"===mn?(this.ui=!0,this.ti=!0,this.deviceName="CHROMECAST"):"SHIELD Android TV"===mn?(this.ui=!0,this.ii=!0,this.deviceName="SHIELDTV"):mn.startsWith("MiTV")?(this.ui=!0,this.si=!0,this.deviceName="MITV"):mn.startsWith("TVision")?(this.ui=!0,this.ei=!0,this.deviceName="TVISION"):mn.startsWith("Quest")&&(this.Ai=!0,this.ni=!0,this.me=mn,this.deviceName="QUEST")),"Windows"===kn?this.hi=!0:"macOS"===kn?this.oi=!0:"Chrome OS"===kn||"ChromeOS"===kn?this.ri=!0:"Chromium OS"===kn?this.ai=!0:"Android"===kn?this.di=!0:"Linux"===kn&&(""==yn?(this.di=!0,this.li=!0):this.ci=!0);const wi=Bi=>{if(Bi&&"string"==typeof Bi)return Bi.replace(/[-._,:;|#@]/g,".")},mi=Bi=>{if(!Bi||!this.ue||+this.ue<95)return Bi;switch(Bi.split(".").map(qi=>Number.parseInt(qi))[0]){case 0:return"8-";case 1:return"10.0.10240";case 2:return"10.0.10586";case 3:return"10.0.14393";case 4:return"10.0.15063";case 5:return"10.0.16299";case 6:return"10.0.17134";case 7:return"10.0.17763";case 8:return"10.0.18362+";case 9:return"10.0.9";case 10:return"10.0.19041+";case 11:return"10.0.11";case 12:return"10.0.12";case 13:return"11.0.0";case 14:return"11.0.22000.0";case 15:return"11.0.22621.0";default:return"11.0.22621.0+"}};$t.brands&&$t.brands.length>0&&this.le($t),this.browserFullVer=null!==(an=wi(this.browserFullVer))&&void 0!==an?an:wi(Qn),this.ge=yn,this.osVersion=null!==(zt=this.osVersion)&&void 0!==zt?zt:(Bi=>this.hi&&!this.jt?mi(Bi):Bi)(wi(yn)),this.ks=!0},k=$t=>{$t&&(this.Es&&(clearTimeout(this.Es),this.Es=0),b($t),x())};let ee=!1,he=!1;const we="HE",ze=$t=>{"string"==typeof $t?this.he(we,$t):"data"in $t?this.oe(we,$t):this.re(we,$t),he=!0,l.Log.e("{3c72abb}","{217e106}",$t)};let pt,wt=0;try{self.SharedWorker&&(ee=!0,pt=ln(Qi,k,ze),wt=300)}catch($t){he=!0,l.Log.w("{3c72abb}","{a583546}",$t),this.ae(we,$t)}this.Es=window.setTimeout(()=>{Mr(pt),he?l.Log.w("{3c72abb}","{dbf4b42}"):ee?(l.Log.w("{3c72abb}","{0bf7a38}"),this.de(we),this.gs=!0):(l.Log.i("{3c72abb}","{7a82b59}"),this.ce(we)),(new Qi).m().then($t=>{k($t)})},wt)})}qs(){return new Promise(x=>{const h=navigator.userAgent;if(h){const b=h.match(this.xs);b&&(this.we=b?.[1],this.Se=b?.[2])}x()})}zs(){var x,h,b,k;const ee=window.RequestCrowNativeApi;if(ee){let he=0;const we=new Promise((zt,mn)=>{he=window.setTimeout(()=>{mn("timeout")},100)}),ze=window.zoneless,pt=null!==(h=null===(x=ze?.windowAddEventListener)||void 0===x?void 0:x.bind(window))&&void 0!==h?h:window.addEventListener.bind(window),wt=null!==(k=null===(b=ze?.windowRemoveEventListener)||void 0===b?void 0:b.bind(window))&&void 0!==k?k:window.removeEventListener.bind(window);let $t;const an=new Promise(zt=>{$t=mn=>{zt(mn.detail)},pt("CrowNativeApiEvent",$t),ee(JSON.stringify({be:"RequestBrowserVersion"}))}).then(zt=>{var mn;const kn=null===(mn=zt.browserVersion)||void 0===mn?void 0:mn.match(this.xs);kn&&(this.browserFullVer=kn?.[1],this.browserVersion=kn?.[2])});return Promise.race([an,we]).catch(()=>{l.Log.d("{3c72abb}","{841bf6f}")}).finally(()=>{window.clearTimeout(he),wt("CrowNativeApiEvent",$t)})}return Promise.resolve()}ke(x,h){if(x==h)return!1;let b=/^(\d+)[.]?(.*)/,k=b.exec(x),ee=b.exec(h);return null==k?null==ee:null!=ee&&k[1]==ee[1]&&(""==k[2]||k[2].length<ee[2].length)}Zs(){this.As&&(this.gt==this.oi&&this.St==this.hi||(this.vs=!0),(this.ri||this.ai||this.di||this.ci)&&!this.kt&&(this.vs=!0),this.browserVersion&&this.browserFullVer&&!this.ke(this.browserVersion,this.browserFullVer)&&(this.Bt||this.Ft?this.ue&&!this.ke(this.ue,this.browserFullVer)&&(this.vs=!0):this.vs=!0),(this.ri&&!this.xt||this.ai&&!this.Vt)&&(this.vs=!0),this.L?(this.V&&!this.hi||this.W&&!this.oi)&&(this.vs=!0):this.F?this.ri||(this.vs=!0):this.U?this.vs=!0:this.V||this.W&&(this.oi||(this.vs=!0)),this.fs=this.As&&!this.vs,this.ps=this.As&&this.vs)}te(){var x,h,b,k,ee,he,we,ze,pt,wt,$t,an,zt,mn,kn,yn,Qn,li,wi,mi;this.ye(),this.finish=performance.now(),this.Rs.os=null!==(x=this.Ie)&&void 0!==x?x:l.PlatformOS.UNKNOWN,this.Rs.browser=null!==(h=this.Ce)&&void 0!==h?h:l.PlatformBrowser.UNKNOWN,this.Rs.osRawVer=null!==(b=this.ge)&&void 0!==b?b:Pi,this.Rs.osVersion=null!==(k=this.osVersion)&&void 0!==k?k:Pi,this.Rs.osVer=this.Rs.osVersion,this.Rs.browserVer=null!==(ee=this.browserVersion)&&void 0!==ee?ee:Pi;let Bi=null!==(he=this.browserFullVer)&&void 0!==he?he:void 0;this.Rs.browserFullVer=Bi??Pi,this.Rs.browserBestVer=null!==(we=Bi??this.Rs.browserVer)&&void 0!==we?we:Pi;let qi=null!==(ze=this.Ae)&&void 0!==ze?ze:void 0;this.Rs.chromiumFullVer=null!==(pt=qi??this.ue)&&void 0!==pt?pt:Pi,this.Rs.confidence=null!==(mn=null!==(zt=null!==(an=null!==($t=null!==(wt=this.Ee)&&void 0!==wt?wt:this.Ie===l.PlatformOS.UNKNOWN?0:void 0)&&void 0!==$t?$t:this.Ce===l.PlatformBrowser.UNKNOWN?5:void 0)&&void 0!==an?an:this.gs?6:void 0)&&void 0!==zt?zt:this.ps?8:void 0)&&void 0!==mn?mn:10,this.Rs.forging=null!==(kn=this.ee)&&void 0!==kn&&kn,this.Rs.spoofing=null!==(yn=this.ps)&&void 0!==yn&&yn,this.Rs.make=null!==(Qn=this.Te)&&void 0!==Qn?Qn:"",this.Rs.vendor=this.Rs.make,this.Rs.vendorFull=null!==(li=this.Me)&&void 0!==li?li:this.Rs.make,this.Rs.deviceOS=function(Ar){let Vr;switch(Ar){case l.PlatformOS.CHROME_OS:Vr="CHROMEOS";break;case l.PlatformOS.WINDOWS:Vr="WINDOWS";break;case l.PlatformOS.MAC:Vr="MACOS";break;case l.PlatformOS.LINUX:Vr="LINUX";break;case l.PlatformOS.IOS:Vr="IOS";break;case l.PlatformOS.IPADOS:Vr="IPADOS";break;case l.PlatformOS.TIZEN:Vr="TIZEN";break;case l.PlatformOS.WEBOS:Vr="WEBOS";break;case l.PlatformOS.ANDROID:Vr="ANDROID";break;case l.PlatformOS.XBOX:Vr="XBOX";break;case l.PlatformOS.STEAMOS:Vr="STEAMOS";break;case l.PlatformOS.CCOS:Vr="CCOS";break;case l.PlatformOS.VISIONOS:Vr="VISIONOS"}return Vr}(this.Rs.os),this.Rs.os===l.PlatformOS.VISIONOS?this.Rs.model="VISIONPRO":this.Xt?this.Rs.model="STEAMDECK":this.ni?this.Rs.model=null!==(wi=this.me)&&void 0!==wi?wi:"QUEST":this.me&&(this.Rs.model=this.me),this.Rs.deviceModel=this.Rs.model;const sr=null!==(mi=this.Pe)&&void 0!==mi?mi:function(Ar,Vr){if("STEAMDECK"===Vr)return l.PlatformType.CONSOLE;switch(Ar){case l.PlatformOS.IOS:return l.PlatformType.PHONE;case l.PlatformOS.IPADOS:return l.PlatformType.TABLET;case l.PlatformOS.XBOX:return l.PlatformType.CONSOLE;case l.PlatformOS.WEBOS:case l.PlatformOS.TIZEN:return l.PlatformType.TV;case l.PlatformOS.VISIONOS:return l.PlatformType.HMD;default:return l.PlatformType.DESKTOP}}(this.Rs.os,this.Rs.model);this.Rs.platformType=sr,this.Rs.deviceType=sr,this.Rs.totalTime=this.finish-this.start,this.Rs.gpuDetail=this.gpuDetail}ye(){var x,h,b;if(!this.us&&this.st)this.Ie=l.PlatformOS.UNKNOWN,this.Ce=l.PlatformBrowser.UNKNOWN,this.ee=!0,this.Ee=3,this.osVersion=Pi,this.browserVersion=Pi,this.browserFullVer=Pi,l.Log.d("{3c72abb}","{049d298}");else if(this.F)this.Ie=l.PlatformOS.CHROME_OS,this.De();else if(this.L)this.De(),this.V?this.Ie=l.PlatformOS.WINDOWS:this.W?(this.Ie=l.PlatformOS.MAC,this.Te="APPLE"):this.fs?this.hi?this.Ie=l.PlatformOS.WINDOWS:this.oi?(this.Ie=l.PlatformOS.MAC,this.Te="APPLE"):this.ri||this.ai?(this.Ie=l.PlatformOS.CHROME_OS,this.ee=!0,this.Ee=7):this.ci&&(this.Ie=this.Re()):this.St?this.Ie=l.PlatformOS.WINDOWS:this.gt?(this.Ie=l.PlatformOS.MAC,this.Te="APPLE"):this.kt?this.Ie=this.Re():this.yt?this.Ie=l.PlatformOS.FREEBSD:(this.Ie=l.PlatformOS.UNKNOWN,this.Ee=5,l.Log.d("{3c72abb}","{101497c}"));else if(this.U)this.Ne(),this.V?this.Ie=l.PlatformOS.WINDOWS:this.W?(this.Ie=l.PlatformOS.MAC,this.Te="APPLE"):this.G?(this.Ie=l.PlatformOS.ANDROID,this.xe()):this.kt?this.Ie=this.Re():this.yt?this.Ie=l.PlatformOS.FREEBSD:(this.Ie=l.PlatformOS.UNKNOWN,this.Ee=5,l.Log.d("{3c72abb}","{49fcccb}"));else if(this._)this.Ce=l.PlatformBrowser.EDGE,this.$?this.fs&&this.jt||this.Qt?(this.Ie=l.PlatformOS.XBOX,this.Te="MICROSOFT",this.Yt?this.me="XBOXSERIES":this.Qt&&(this.me="XBOXONE")):this.fs?this.hi?this.Ie=l.PlatformOS.WINDOWS:(this.Ie=l.PlatformOS.UNKNOWN,this.Ee=7):this.Ie=l.PlatformOS.UNKNOWN:this.W?(this.Ie=l.PlatformOS.MAC,this.Te="APPLE"):this.H?(this.Ie=l.PlatformOS.ANDROID,this.xe()):this.fs?this.jt?(this.Ie=l.PlatformOS.XBOX,this.Te="MICROSOFT",this.Yt?this.me="XBOXSERIES":this.Qt&&(this.me="XBOXONE")):this.hi?this.Ie=l.PlatformOS.WINDOWS:this.oi?(this.Ie=l.PlatformOS.MAC,this.Te="APPLE"):this.ri||this.ai?(this.Ie=l.PlatformOS.CHROME_OS,this.ee=!0,this.Ee=7):this.di?(this.Ie=l.PlatformOS.ANDROID,this.xe()):this.ci&&(this.Ie=this.Re()):this.St?this.Ie=l.PlatformOS.WINDOWS:this.gt?(this.Ie=l.PlatformOS.MAC,this.Te="APPLE"):this.It?(this.Ie=l.PlatformOS.ANDROID,this.xe()):this.kt?this.Ie=this.Re():this.yt?this.Ie=l.PlatformOS.FREEBSD:(this.Ie=l.PlatformOS.UNKNOWN,this.Ee=5);else if(this.V)this.$?this.Oe():(this.Oe(),this.ee=!0,this.Ee=5);else if(this.W)this.Be();else if(this.H)this.Fe();else if(this.fs&&(this.jt||this.hi)||this.St||this.Qt)this.Oe();else if(this.fs&&this.oi||this.bt||this.wt||this.gt)this.Be();else if(this.fs&&(this.ri||this.ai))this.Ie=l.PlatformOS.CHROME_OS,this.De();else if(this.Tt)this.Ie=l.PlatformOS.CCOS,this.Te="HKMC",this.Ce=l.PlatformBrowser.CHROMIUM;else if(this.fs&&this.di||this.It)this.Fe();else if(this.fs&&this.ci)this.Le();else if(this.Ct)this.Ie=l.PlatformOS.WEBOS,this.Te="LG",this.Ce=l.PlatformBrowser.CHROMIUM,this.browserFullVer=null!==(x=this.browserFullVer)&&void 0!==x?x:this.we,this.browserVersion=null!==(h=this.browserVersion)&&void 0!==h?h:this.Se,this.ps=!1;else if(this.Et){if(this.Ie=l.PlatformOS.TIZEN,this.Ce=l.PlatformBrowser.SAMSUNG,null===(b=window.webapis)||void 0===b?void 0:b.productinfo)try{this.osVersion=window.webapis.productinfo.getFirmware(),this.deviceName=window.webapis.productinfo.getRealModel(),this.Me=window.webapis.productinfo.getLicensedVendor()}catch{l.Log.e("{3c72abb}","{bc7dd9b}")}else l.Log.e("{3c72abb}","{844af47}"),this.osVersion=Pi,this.deviceName="";this.Te="Samsung"!==this.Me&&this.Me?"TIZENLICENSED":"SAMSUNG",this.Ue()}else this.kt?this.Ge():this.yt?this.He():this.et||this.ht||this.tt?(this.wt=!0,this.Be(),this.Ee=7):this.vt?(this.Fe(),this.Ee=7):(this.Ie=l.PlatformOS.UNKNOWN,this.Ce=l.PlatformBrowser.UNKNOWN,this.Ee=0,l.Log.d("{3c72abb}","{f2eecc9}"));this.ps&&(this.osVersion=Pi,this.browserVersion=Pi,this.browserFullVer=Pi)}Ge(){this.ot?(this.Ie=l.PlatformOS.ANDROID,this.Te="AMAZON",this.Ne(),this.Pe=l.PlatformType.TV):this.vt?(this.Ie=l.PlatformOS.ANDROID,this.Te="SAMSUNG",this.Ce=l.PlatformBrowser.SAMSUNG,this.xe()):this.Ve()?this.ps?this.Ie=this.Re():!this.Dt||this.Pt||this.Rt?this.hs?(this.Ie=l.PlatformOS.ANDROID,this.Ce=l.PlatformBrowser.PICO,this.xe()):this.Ie=l.PlatformOS.LINUX:(this.Ie=this.Re(),this.Ce=l.PlatformBrowser.CHROMIUM,this.Ee=7):(this.Ie=l.PlatformOS.UNKNOWN,this.Ce=l.PlatformBrowser.UNKNOWN,this.Ee=0,l.Log.d("{3c72abb}","{be86380}"))}Ue(){const h=navigator.userAgent;if(h){const b=h.match(/(([0-9]+\.)*[0-9]+)\/(([0-9]+\.)*[0-9]+)/);this.browserFullVer=b?.[0];const k=b?.[1];if(k){const ee=k.split(".");this.browserVersion=ee?.[0]}}}Le(){this.Ie=this.Re(),this.fs&&(this.zt||this.qt)||!this.fs&&this.Kt?(this.Ce=l.PlatformBrowser.UNKNOWN,this.Ee=3):this.Ve()||(this.Ce=l.PlatformBrowser.UNKNOWN,this.Ee=5,l.Log.d("{3c72abb}","{54c6569}"))}He(){this.Ie=l.PlatformOS.FREEBSD,this.st?this.Ce=l.PlatformBrowser.CHROME:this.nt?this.Ne():(this.Ce=l.PlatformBrowser.UNKNOWN,this.Ee=3,l.Log.d("{3c72abb}","{a2c16e4}"))}We(){this.Jt?(this.Te="AMAZON",this.Vt&&(this.Ce=l.PlatformBrowser.SILK)):this.Zt?this.Te="SONY":this.ti?this.Te="GOOGLE":this.ii?this.Te="NVIDIA":this.si?this.Te="XIAOMI":this.ei&&(this.Te="TVISION")}Fe(){this.Ie=l.PlatformOS.ANDROID,this.fs?this.Ot?this.Ce=l.PlatformBrowser.EDGE:this.Ft?this.Ce=l.PlatformBrowser.OPERAGX:this.Bt?this.Ce=l.PlatformBrowser.OPERA:this.Lt?this.Ce=l.PlatformBrowser.YANDEX:this.Ut?this.Ce=l.PlatformBrowser.BRAVE:this.Gt?this.Ce=l.PlatformBrowser.SAMSUNG:this.xt?(this.De(),this.We()):this.Ht?this.Ce=l.PlatformBrowser.CHROMIUM:this.Wt?this.ct?this.Ce=l.PlatformBrowser.OPERAGX:(this.De(),this.We()):this.Vt&&(this.Ce=l.PlatformBrowser.CHROMIUM,this.We()):this.nt?this.Ne():this.vt?(this.Ce=l.PlatformBrowser.SAMSUNG,this.Te="SAMSUNG"):this.ut?this.Ce=l.PlatformBrowser.BRAVE:this.At?this.Ce=l.PlatformBrowser.YANDEX:this.lt?this.Ce=l.PlatformBrowser.OPERA:this.ct?this.Ce=l.PlatformBrowser.OPERAGX:this.st?this.pi?this.hs?this.Ce=l.PlatformBrowser.PICO:this.De():this.Ce=this.Kt?l.PlatformBrowser.EDGE:l.PlatformBrowser.SILK:(this.De(),this.Ee=7),this.xe()}xe(){var x,h,b,k;if(this.fs&&this.ui?this.Pe=l.PlatformType.TV:this.fs&&this.Ai||this.hs?this.Pe=l.PlatformType.HMD:this.qt||this.Kt||!this.fi?this.rs&&!this.ls||(this.di?this.li?this.ds&&this.cs||(this.Pe=l.PlatformType.DESKTOP):this.rs&&this.ls&&(this.Pe=l.PlatformType.DESKTOP):this.ds&&this.cs||(this.Pe=l.PlatformType.DESKTOP)):(this.Pe=l.PlatformType.TV,this.Te=null!==(h=null!==(x=this.Te)&&void 0!==x?x:this.ve)&&void 0!==h?h:"",this.deviceName=null!==(k=null!==(b=this.deviceName)&&void 0!==b?b:this.fe)&&void 0!==k?k:"UNKNOWN",this.Ee=7),!this.Pe){const ee=screen.width<screen.height?screen.width:screen.height;this.Pe=ee>=600?l.PlatformType.TABLET:l.PlatformType.PHONE}}Oe(){this.Ie=l.PlatformOS.WINDOWS,this.Ve()||(this.Ce=l.PlatformBrowser.UNKNOWN,this.Ee=5,l.Log.d("{3c72abb}","{44ce1e0}"))}Be(){this.Te="APPLE";const x=()=>{this.Ie=this.Yi?l.PlatformOS.IPADOS:l.PlatformOS.VISIONOS};this.fs&&this.oi?(this.Ie=l.PlatformOS.MAC,this.Ve()||(this.Ce=l.PlatformBrowser.UNKNOWN,this.Ee=5,l.Log.d("{3c72abb}","{b80b712}"))):this.gt?this.Kt?(x(),this._e()):(this.Ie=l.PlatformOS.MAC,this.Ve()||(this.Ce=l.PlatformBrowser.UNKNOWN,this.Ee=5,l.Log.d("{3c72abb}","{0f3296f}")),this.Ce==l.PlatformBrowser.SAFARI&&this.qe()):this.wt?(this.Ie=l.PlatformOS.IOS,this._e()):this.bt?(x(),this._e()):(this.ee=!0,this.Ee=5,this.Kt?(this.Ie=l.PlatformOS.IOS,this._e(),l.Log.d("{3c72abb}","{cf1c572}")):(this.Ie=l.PlatformOS.MAC,this.Ce=l.PlatformBrowser.UNKNOWN,l.Log.d("{3c72abb}","{1eb1815}")))}Re(){return this.Xt?l.PlatformOS.STEAMOS:l.PlatformOS.LINUX}$e(){this.osVersion=this.mi?this.Mi?this.gi?this.Oi?this.Bi?"17.4+":"17+":this.xi?"16+":this.yi?this.K?"15.6+":"15.5+":this.ki?"15.4+":this.bi?"15.2+":this.Si?"15.1+":"15+":"14.5+":this.Ii?"14.3+":"14+":this.wi?"13+":"12-"}_e(){this.$e();const x=this.osVersion,h=!this.Ri&&!(x.startsWith("12")||x.startsWith("13"));this.ht?this.Ce=l.PlatformBrowser.FIREFOX:this.dt?this.Ce=l.PlatformBrowser.OPERA:this.ut?this.Ce=l.PlatformBrowser.BRAVE:this.At?this.Ce=l.PlatformBrowser.YANDEX:this.tt?this.Ce=l.PlatformBrowser.EDGE:this.et?this.Ce=l.PlatformBrowser.CHROME:this.Di&&!h?this.Ce=l.PlatformBrowser.SAFARI:this.ft?this.Ce=l.PlatformBrowser.REACT:h?(this.Ce=l.PlatformBrowser.UNKNOWN,this.Ee=7,l.Log.d("{3c72abb}","{5a39f60}")):(this.Ce=l.PlatformBrowser.UNKNOWN,this.Ee=5,l.Log.d("{3c72abb}","{147d6b4}"))}Ne(){this.Ce=l.PlatformBrowser.FIREFOX,this.browserVersion=this.Pi?this.Mi?this.Ti?this.Ei?this.Ci?"88":"89+":"87":"86":"85":"84-"}De(){this.Ce=l.PlatformBrowser.CHROME,this.browserVersion||this.Fi&&(this.browserVersion=this.Li?this.Ui?this.Gi?this.Mi?this.Hi?this.Vi?this.Wi?this._i?this.$i?this.zi?this.Ki?this.Qi?"90+":"89":"88":"87":"86":"85":"84":"83":"81":"80":"79":"78":"77")}qe(){this.browserVersion=this.Xi?"18+":this.ji?"17.5+":this.Ji?"17.4":this.Zi?"17.2+":this.ss?"17+":this.es?"16.5+":this.ns?"16.4":"16.3-"}Ve(){var x;if(this.Qt)this.Ie=l.PlatformOS.XBOX,this.Te="MICROSOFT",this.Ce=l.PlatformBrowser.EDGE,this.Yt?this.me="XBOXSERIES":this.Qt&&(this.me="XBOXONE");else if(this.fs)this.jt?(this.Ie=l.PlatformOS.XBOX,this.Te="MICROSOFT",this.Ce=l.PlatformBrowser.EDGE):this.Ot?this.Ce=l.PlatformBrowser.EDGE:this.Ft?this.Ce=l.PlatformBrowser.OPERAGX:this.Bt?this.Ce=l.PlatformBrowser.OPERA:this.Lt?this.Ce=l.PlatformBrowser.YANDEX:this.Ut?this.Ce=l.PlatformBrowser.BRAVE:this.xt?this.De():(this.Ht||this.Vt&&!this._t)&&(this.Ce=l.PlatformBrowser.CHROMIUM);else if(this.nt)this.Ne();else if(this.rt)this.Ce=l.PlatformBrowser.OPERA;else if(this.ut)this.Ce=l.PlatformBrowser.BRAVE;else if(this.At)this.Ce=l.PlatformBrowser.YANDEX;else if(this.st)this.pi?this.fs&&this.Vt?(this.Ce=l.PlatformBrowser.CHROMIUM,this.Ee=9):this.j?this.Ce=l.PlatformBrowser.CHROMIUM:(this.Ce=l.PlatformBrowser.CHROMIUM,this.Ee=7):(this.Ce=l.PlatformBrowser.EDGE,this.Ie=null!==(x=this.Ie)&&void 0!==x?x:l.PlatformOS.UNKNOWN,this.Ee=7);else if(this.it||this.Di)this.Ce=l.PlatformBrowser.SAFARI;else{if(!this.Z)return!1;this.Qt?(this.Ie=l.PlatformOS.XBOX,this.Te="MICROSOFT",this.Ce=l.PlatformBrowser.EDGE_LEGACY):this.Ce=l.PlatformBrowser.EDGE_LEGACY}return!0}Hs(x){window.setTimeout(x,0)}ze(x){var h;null===(h=this.telemetry)||void 0===h||h.Ke("TelemetryHandlerChanged"),this.telemetry=x;for(const b of this.Ns){const k=b.name,ee=b.data;switch(b.type){case"ErrorEvent":this.re(k,ee);break;case"MessageEvent":this.oe(k,ee);break;case"WorkerUnused":this.ce(k);break;case"WorkerTimeout":this.de(k);break;case"WorkerCreateFailure":this.ae(k,ee);break;case"ErrorString":this.he(k,ee);break;case"WorkerOverlongDelay":this.ne(k,ee)}}this.Ns=[]}re(x,h){this.telemetry?this.telemetry.Ke("WorkerProblem",x,`${h.message} in ${h.filename}@${h.lineno}:${h.colno}`,JSON.stringify(h.error)):this.Ns.push({type:"ErrorEvent",name:x,data:h})}he(x,h){this.telemetry?this.telemetry.Ke("WebWorkerProblem",x,h):this.Ns.push({type:"ErrorString",name:x,data:h})}oe(x,h){this.telemetry?this.telemetry.Ke("WorkerMessageProblem",JSON.stringify(h)):this.Ns.push({type:"MessageEvent",name:x,data:h})}ce(x){this.telemetry?this.telemetry.Ke("WorkerUnused",x):this.Ns.push({type:"WorkerUnused",name:x})}de(x){this.telemetry?this.telemetry.Ke("WorkerTimeout",x):this.Ns.push({type:"WorkerTimeout",name:x})}ae(x,h){var b;this.telemetry?this.telemetry.Ke("WorkerCreateFailure",x,null!==(b=h?.stack)&&void 0!==b?b:"",JSON.stringify(h)):this.Ns.push({type:"WorkerCreateFailure",name:x,data:h})}ne(x,h){this.telemetry?this.telemetry.Ke("WorkerOverlongDelay",x,h.toString()):this.Ns.push({type:"WorkerOverlongDelay",name:x,data:h})}};function Fo(){return performance.mark("platformBegin"),ho.Os()}function no(x){ho.ze(x)}var yo,Zr,x;z.DeviceOS=void 0,z.DeviceType=void 0,z.DeviceVendor=void 0,z.DeviceModel=void 0,(Zr=z.DeviceOS||(z.DeviceOS={})).WINDOWS="WINDOWS",Zr.MACOS="MACOS",Zr.SHIELD="SHIELD",Zr.ANDROID="ANDROID",Zr.IOS="IOS",Zr.IPADOS="IPADOS",Zr.CHROMEOS="CHROMEOS",Zr.LINUX="LINUX",Zr.TIZEN="TIZEN",Zr.WEBOS="WEBOS",Zr.TVOS="TVOS",Zr.XBOX="XBOX",Zr.STEAMOS="STEAMOS",Zr.CCOS="CCOS",Zr.VISIONOS="VISIONOS",(x=z.DeviceType||(z.DeviceType={})).DESKTOP="DESKTOP",x.LAPTOP="LAPTOP",x.TV="TV",x.PHONE="PHONE",x.TABLET="TABLET",x.CONSOLE="CONSOLE",x.HMD="HMD",function(x){x.APPLE="APPLE",x.LG="LG",x.SAMSUNG="SAMSUNG",x.TIZEN_LICENSED="TIZENLICENSED",x.MICROSOFT="MICROSOFT",x.AMAZON="AMAZON",x.HKMC="HKMC",x.SONY="SONY",x.PHILIPS="PHILIPS",x.GOOGLE="GOOGLE",x.NVIDIA="NVIDIA",x.XIAOMI="XIAOMI",x.TVISION="TVISION",x.UNKNOWN=""}(z.DeviceVendor||(z.DeviceVendor={})),function(x){x.STEAMDECK="STEAMDECK",x.XBOX_ONE="XBOXONE",x.XBOX_SERIES="XBOXSERIES",x.VISION_PRO="VISIONPRO",x.QUEST="QUEST"}(z.DeviceModel||(z.DeviceModel={}));class Yr extends Yn{constructor(h,b){super(b),this.Qe=[],this.Ye=h}Xe(h){const b={logModule:"R",timeStamp:h.timestamp,logLevel:h.level,logtag:h.tag,logstr:h.message};this.hasListener(this.Ye)?this.emit(this.Ye,b):this.Qe.push(b)}addListener(h,b){if(super.addListener(h,b),h==this.Ye&&this.Qe.length>0){for(const k of this.Qe)this.emit(this.Ye,k);this.Qe=[]}}}class go extends Array{constructor(){super(),this.push=this.je}Je(h,b){this.Ze=b}clear(){this.splice(0,this.length)}je(...h){let b=Array.prototype.push.apply(this,h);return this.Ze&&this.Ze(),b}}!function(x){x.UNKNOWN="UNKNOWN",x.RCONFIG="RCONFIG",x.GXT="GXT",x.LOCAL="LOCAL",x.OTHER="OTHER"}(yo||(yo={}));const zo={GridServer_GameLaunch_Request:{name:"GridServer_GameLaunch_Request",gdprLevel:l.GdprLevel.FUNCTIONAL},GS_Feature:{name:"GS_Feature",gdprLevel:l.GdprLevel.FUNCTIONAL},GS_SystemAPICallResult:{name:"GS_SystemAPICallResult",gdprLevel:l.GdprLevel.FUNCTIONAL},GS_DebugInfo:{name:"GS_DebugInfo",gdprLevel:l.GdprLevel.TECHNICAL},GS_ExceptionInfo:{name:"GS_ExceptionInfo",gdprLevel:l.GdprLevel.TECHNICAL},GS_ClientMetricEvent:{name:"GS_ClientMetricEvent",gdprLevel:l.GdprLevel.FUNCTIONAL},GS_ConnectivityCheck:{name:"GS_ConnectivityCheck",gdprLevel:l.GdprLevel.FUNCTIONAL},GS_Sleep_Event:{name:"GS_Sleep_Event",gdprLevel:l.GdprLevel.TECHNICAL},GS_WsCallResult:{name:"GS_WsCallResult",gdprLevel:l.GdprLevel.FUNCTIONAL},GS_HttpCallResult:{name:"GS_HttpCallResult",gdprLevel:l.GdprLevel.FUNCTIONAL},GS_PropertyChange_Event:{name:"GS_PropertyChange_Event",gdprLevel:l.GdprLevel.FUNCTIONAL},GS_CodecError_Event:{name:"GS_CodecError_Event",gdprLevel:l.GdprLevel.FUNCTIONAL}};class si{constructor(h){this.name="",this.gdprLevel=l.GdprLevel.BEHAVIORAL,this.priority=!1,this.parameters=h,this.ts=(new Date).toISOString()}}class to extends si{constructor(h){super(h),this.name=zo.GS_Feature.name,this.gdprLevel=zo.GS_Feature.gdprLevel}}class ot extends si{constructor(h){super(h),this.name=zo.GS_DebugInfo.name,this.gdprLevel=zo.GS_DebugInfo.gdprLevel}}class Vt extends si{constructor(h){super(h),this.name=zo.GS_ExceptionInfo.name,this.gdprLevel=zo.GS_ExceptionInfo.gdprLevel}}class Sn extends si{constructor(h){super(h),this.name=zo.GS_ClientMetricEvent.name,this.gdprLevel=zo.GS_ClientMetricEvent.gdprLevel}}class Bn extends si{constructor(h){super(h),this.name=zo.GS_Sleep_Event.name,this.gdprLevel=zo.GS_Sleep_Event.gdprLevel}}class Ti extends si{constructor(h){super(h),this.name=zo.GS_WsCallResult.name,this.gdprLevel=zo.GS_WsCallResult.gdprLevel}}class Li extends si{constructor(h){super(h),this.name=zo.GS_HttpCallResult.name,this.gdprLevel=zo.GS_HttpCallResult.gdprLevel}}class dr{constructor(h,b,k){this.tn=0,this.sn=0,this.en=0,this.nn=0,this.hn=0,this.rn="",this.an=0,this.dn=!1,this.cn=4,this.listener=h,this.frequency=b??1e4,this.ln=k??1e4,this.un=this.An()}vn(){this.fn(!1),this.tn=(new Date).getTime(),this.sn=0,this.en=0,this.nn=0,this.un=this.An(),this.rn="",this.dn=!1,l.Log.d("{0f7a7d0}","{456f7b1}"),this.hn=window.setInterval(()=>this.pn(),this.frequency)}fn(h){l.Log.d("{0f7a7d0}","{1d02c0d}"),this.mn();const b=()=>{this.hn&&(window.clearInterval(this.hn),this.hn=0)};h?this.an=window.setTimeout(()=>b(),this.un):b()}gn(){if(!this.hn)return;const h=(new Date).getTime();this.nn=h,this.wn(h),this.Sn("e"),this.dn=this.bn(),this.kn()}yn(h){this.un=h??this.An()}pn(){const h=(new Date).getTime();this.wn(h),this.Sn("p"),this.dn||(this.dn=this.bn()),this.tn=h}Sn(h){this.rn.endsWith(h)||(this.rn.length>=this.cn&&(this.rn=this.rn.substring(1)),this.rn+=h)}bn(){let h=!1,b=!1,k=!1;for(let ee=0;ee<this.rn.length;ee++)"s"===this.rn.charAt(ee)?b=!0:"e"===this.rn.charAt(ee)&&(k=!0);return b&&k&&this.In()&&(h=!0,this.listener.Cn({En:this.nn,Tn:this.en,duration:this.sn,rn:this.rn})),h}wn(h){const b=this.Mn(h);b>this.ln&&(this.en=h,this.sn=b,this.Sn("s"),this.kn())}Mn(h){return Math.max(0,h-this.tn-this.frequency)}An(){return 2*this.frequency+500}In(){return Math.min(Math.abs(this.nn-this.en),Math.abs(this.nn-this.en+this.sn))<this.un}mn(){this.an&&(window.clearTimeout(this.an),this.an=0)}kn(){let h="n/a";this.en&&(h=new Date(this.en).toISOString()),l.Log.i("{0f7a7d0}","{e4526ad}",this.sn,h)}}function Fr(x,h,b){return{Pn:"online"===x,description:b?`${x}(${b.name}: ${b.message})`:h?`${x}(${h})`:x}}class br{constructor(h,b,k=1500,ee=!1){this.timeout=k,this.Dn=ee,this.url=("http:"===window.location.protocol?"http://":"https://")+h,this.Rn=b??fetch,l.Log.i("{0ce6b17}","{dda0527}",this.url,this.timeout)}run(){var h=this;return n(function*(){if(h.Dn)return Fr("online");const b=performance.now();try{const k=new AbortController;window.setTimeout(()=>k.abort(),h.timeout);const ee=yield h.Rn(h.url,{method:"OPTIONS",signal:k.signal}),he=ee.status,we=ee.status>=200&&ee.status<300||403==ee.status?"online":"offline_wrong_status",ze=performance.now(),pt=Math.round(ze-b);return l.Log.i("{0ce6b17}","{b7012d7}",we,pt),Fr(we,he)}catch(k){return Fr("AbortError"===k.name?"timeout":"offline",void 0,k)}})()}}const Vn="30.0",rr="GFN-PC";let Ut={Nn:{},xn:{type:"UNKNOWN",version:""},o:!0,l:!1,On:!0,Bn:!1};function qn(x){var h,b,k,ee;if(l.Log.i("{11b33a0}","{e65e133}",JSON.stringify(x)),function(he){var we,ze;if(he.overrideData){const pt=he.overrideData.toLowerCase(),wt=new URLSearchParams(pt);"lean"===wt.get("mode")&&(xi.o=!1);const $t=an=>xn(wt.get(an));xi.o=null!==(we=$t("log"))&&void 0!==we?we:xi.o,xi.l=xi.o&&(null!==(ze=$t("console"))&&void 0!==ze?ze:xi.l)}}(x),x.gxtOverrideData){const he=JSON.parse(x.gxtOverrideData);if(he.params)for(const we of he.params)"pmCommunication"===we.name&&(Ut.Nn.pmCommunication=we.value,Ut.xn={type:"GXT",version:we.version})}if(x.overrideData){const he=x.overrideData.toLowerCase(),we=new URLSearchParams(he),ze=pt=>xn(we.get(pt));Ut.o=null!==(h=ze("log"))&&void 0!==h?h:Ut.o,Ut.l=Ut.o&&(null!==(b=ze("console"))&&void 0!==b?b:Ut.l),Ut.On=null!==(k=ze("websocketsignaling"))&&void 0!==k?k:Ut.On,Ut.Bn=null!==(ee=ze("webrtcstreamer"))&&void 0!==ee?ee:Ut.Bn}}class Wn extends si{constructor(h){super(h),this.name="GridServer_GameLaunch_Request",this.gdprLevel=l.GdprLevel.FUNCTIONAL}}const ci={Fn:"GFN_GridServer",clientId:"93289439828086895",eventSchemaVer:"2.2"};class Tr{constructor(){this.networkType="UNKNOWN",this.cmsId="",this.sessionId="",this.subSessionId="",this.Ln=new Map,this.Un=0,this.provider=l.TelemetryModule.createTelemetryProvider(ci)}Je(h){this.Gn=h}Hn(h,b,k){return{url:h,verb:b,statusCode:"0",requestStatusCode:"",sessionId:k??"",subSessionId:this.subSessionId,requestId:"",serverId:"",callDuration:0,response:"None",extendedError:""}}Vn(h,b,k){var ee,he,we;const ze=l.TelemetryModule.getTelemetryEventIds();return{requestedZoneAddress:h,zoneName:"",networkSessionId:null!==(ee=ze.networkSessionId)&&void 0!==ee?ee:"",sessionId:k??"",subSessionId:"",resumeType:b?"MANUAL":"NONE",overrideConfigType:Ut.xn.type,overrideConfigVersion:Ut.xn.version,result:"",codec:"UNKNOWN",ipVersion:"UNKNOWN",launchDuration:0,networkType:this.networkType,streamingProfileGuid:null!==(he=ze.streamingProfileGuid)&&void 0!==he?he:"",systemInfoGuid:null!==(we=ze.systemInfoGuid)&&void 0!==we?we:"",cmsId:this.cmsId}}Wn(h){const b=new Li({callDuration:h.callDuration,verb:h.verb,sessionId:h.sessionId,subSessionId:h.subSessionId,serverId:h.serverId,url:h.url,overrideConfigType:Ut.xn.type,overrideConfigVersion:Ut.xn.version,requestStatusCode:h.requestStatusCode,requestId:h.requestId,networkType:this.networkType,statusCode:h.statusCode,cmsId:this.cmsId,moduleName:"GRID_SERVER",response:h.response,extendedError:h.extendedError});this.processEvent(b)}_n(h){var b,k,ee;h.launchDuration=Math.round(h.launchDuration);const he=new Wn(h);he.parameters.sessionId||(he.parameters.sessionId=this.sessionId),he.parameters.subSessionId||(he.parameters.subSessionId=this.subSessionId);const we=l.TelemetryModule.getTelemetryEventIds();he.parameters.networkSessionId=null!==(b=we.networkSessionId)&&void 0!==b?b:"",he.parameters.systemInfoGuid=null!==(k=we.systemInfoGuid)&&void 0!==k?k:"",he.parameters.streamingProfileGuid=null!==(ee=we.streamingProfileGuid)&&void 0!==ee?ee:"",this.processEvent(he)}qn(h,b,k,ee,he){const we=new ot({key1:h??"",key2:b??"",key3:k??"",key4:ee??"",key5:he??"",moduleName:"GRID_SERVER",networkType:this.networkType,overrideConfigType:Ut.xn.type,overrideConfigVersion:Ut.xn.version,cmsId:this.cmsId,sessionId:this.sessionId,subSessionId:this.subSessionId});this.processEvent(we)}$n(h,b,k,ee,he,we,ze){var pt;if(!this.zn(b))return;!ze&&h&&(ze=h.name+": "+h.message);const wt=new Vt({filename:k,lineno:ee,stacktrace:null!==(pt=h?.stack)&&void 0!==pt?pt:"",colno:he,handled:we?"TRUE":"FALSE",category:ze??"",message:b,moduleName:"GRID_SERVER",sessionId:this.sessionId,subSessionId:this.subSessionId});this.processEvent(wt)}Kn(h,b,k,ee){const he=new Bn({eventSequence:k,sleepTime:h,error:ee,timeToSleep:b,moduleName:"GRID_SERVER",cmsId:this.cmsId,sessionId:this.sessionId,subSessionId:this.subSessionId});this.processEvent(he)}Qn(h){this.sessionId=h}Yn(h){this.subSessionId=h,this.Ln.clear(),this.Un=0}Xn(h){this.cmsId=h}setNetworkType(h){this.networkType=An(h)}jn(){this.sessionId="",this.subSessionId="",this.cmsId=""}processEvent(h){this.Gn?this.Gn({name:h.name,parameters:h.parameters,gdprLevel:h.gdprLevel,ts:h.ts,clientConfig:ci}):this.provider.processEvent(h)}zn(h){var b;if(this.Un>=50)return!1;const k=null!==(b=this.Ln.get(h))&&void 0!==b?b:0;return!(k>=10||(this.Un++,this.Ln.set(h,k+1),0))}}function Jr(x){switch(x){case 15867905:case 15867906:case 15867907:return!0;default:return!1}}function oo(x){switch(x){case"ready_for_connection":case"streaming":case"paused":return!0;default:return!1}}function Qo(x){return[3237089282,3237101581,3237101582,3237101584,3237101585,3237101586,3237101588,3237101589,3237101592].includes(x)}const fo="sessioncontrolimpl";function Xr(x){let h=3237093632;if(void 0!==x.statusCode){let b=x.statusCode;1==b?h=15859712:b>0&&b<255&&(h=3237093632+b)}if(x.unifiedErrorCode)switch(l.Log.i("{1daeef1}","{d2c9cc8}",Ae(x.unifiedErrorCode)),h){case 3237093632:case 3237093636:case 3237093381:h=x.unifiedErrorCode}return h}function Go(x){switch(x){case 1:return"initializing";case 2:return"ready_for_connection";case 3:return"streaming";case 4:case 5:return"paused";case 6:return"resuming";case 7:return"finished";default:return"unknown"}}function Ss(x){switch(x){case 3237085186:return"invalid operation";case 15859712:return"success";case 3237093379:case 3237093381:return"Invalid server response";case 3237093384:return"Exception";case 15867907:case 15867905:case 15867906:return"cancelled";case 15868417:return"no network";case 3237089282:return"network error";default:return"server error"}}var kr;!function(x){x[x.CREATE_SESSION=0]="CREATE_SESSION",x[x.RESUME_SESSION=1]="RESUME_SESSION",x[x.DELETE_SESSION=2]="DELETE_SESSION",x[x.GET_SESSIONINFO=3]="GET_SESSIONINFO",x[x.AD_UPDATE=4]="AD_UPDATE",x[x.GET_ACTIVE_SESSIONS=5]="GET_ACTIVE_SESSIONS"}(kr||(kr={}));const pa="browser",ka="/v2/session";class Xs{constructor(){var h,b,k,ee,he,we,ze,pt,wt,$t,an,zt,mn,kn,yn,Qn,li,wi,mi,Bi,qi,sr;this.Jn=new Map,this.Zn={method:"GET",headers:Object.create(null),body:""},this.th={type:l.AuthType.JWT_GFN},this.ih=new Map,this.protocol="https://",this.sh=new go,this.eh=new Map,this.serverAddress="",this.nh=!1,this.deviceId="",this.clientPlatformName="";let Ar=0;Ar+=null!==(b=null===(h=Ut.Nn.pmCommunication)||void 0===h?void 0:h.httpConnectionTimeout)&&void 0!==b?b:0,Ar+=null!==(ee=null===(k=Ut.Nn.pmCommunication)||void 0===k?void 0:k.httpDataReceiveTimeout)&&void 0!==ee?ee:0,this.Zn.timeout=Ar?1e3*Ar:13e3,this.Zn.retryCount=null!==(we=null===(he=Ut.Nn.pmCommunication)||void 0===he?void 0:he.httpRetryCount)&&void 0!==we?we:3,this.Zn.backOffDelay=null!==(pt=null===(ze=Ut.Nn.pmCommunication)||void 0===ze?void 0:ze.httpBackOffDelay)&&void 0!==pt?pt:500,this.hh={oh:null!==($t=null===(wt=Ut.Nn.pmCommunication)||void 0===wt?void 0:wt.pollingIntervalMin)&&void 0!==$t?$t:1e3,rh:null!==(zt=null===(an=Ut.Nn.pmCommunication)||void 0===an?void 0:an.pollingIntervalMax)&&void 0!==zt?zt:1e4,step:null!==(kn=null===(mn=Ut.Nn.pmCommunication)||void 0===mn?void 0:mn.pollingIntervalStep)&&void 0!==kn?kn:1e3,ah:null!==(Qn=null===(yn=Ut.Nn.pmCommunication)||void 0===yn?void 0:yn.pollingQueueSizePerStep)&&void 0!==Qn?Qn:50,adsPollingIntervalMinMS:null!==(wi=null===(li=Ut.Nn.pmCommunication)||void 0===li?void 0:li.adsPollingIntervalMinMS)&&void 0!==wi?wi:3e3,adsThrottleIntervalMS:null!==(Bi=null===(mi=Ut.Nn.pmCommunication)||void 0===mi?void 0:mi.adsThrottleIntervalMS)&&void 0!==Bi?Bi:2e3,adsWaitTimeoutS:null!==(sr=null===(qi=Ut.Nn.pmCommunication)||void 0===qi?void 0:qi.adsWaitTimeoutS)&&void 0!==sr?sr:600},this.dh=new Tr,this.uh=new dr({Cn:Vr=>{var Br;this.dh.Kn(Math.round(Vr.duration/1e3),Math.round((Vr.En-Vr.Tn)/1e3),Vr.rn,Ae(null!==(Br=this.Ah)&&void 0!==Br?Br:0)),this.nh=!0,this.uh.fn(!1)}})}init(h){var b,k;return function(ee,he){const ze=l.translatePlatformInfoForClientHeader({os:he.deviceOs,osVersion:he.deviceOsVer,platformType:he.deviceType,model:he.deviceModel,make:he.deviceMake,browser:he.browserType});if(ee["content-type"]="application/json",ee["nv-client-type"]=he.clientType,ee["x-device-id"]=he.deviceId,ee["nv-browser-type"]=ze.browser,ee["nv-client-streamer"]=he.clientStreamer,ze.os===l.ClientHeaderOSType.UNKNOWN?he.deviceOs&&(ee["nv-device-os"]=he.deviceOs):ee["nv-device-os"]=ze.os,void 0!==ze.deviceType&&(ee["nv-device-type"]=ze.deviceType),void 0!==he.deviceMake&&(ee["nv-device-make"]=he.deviceMake),void 0!==he.deviceModel&&(ee["nv-device-model"]=he.deviceModel),void 0!==he.clientAppVersion&&(ee["nv-client-version"]=he.clientAppVersion),void 0!==he.clientId&&(ee["nv-client-id"]=he.clientId),he.clientHeaders)for(const[pt,wt]of he.clientHeaders)"x-nv-client-identity"!==pt.toLowerCase()&&(ee[pt.toLowerCase()]=wt)}(this.Zn.headers,h),this.ih.set("component","sessioncontrol"),this.ih.set("component.version","2.0"),this.ih.set("client.name",rr),this.ih.set("client.version",Vn),this.ih.set("client.os",null!==(b=h.deviceOs)&&void 0!==b?b:""),this.ih.set("client.os.version",null!==(k=h.deviceOsVer)&&void 0!==k?k:""),this.setDefaultServerAddress(h.serverAddress),this.clientPlatformName=h.clientPlatformName,this.deviceId=h.deviceId,this.Rs||this.clientPlatformName!==pa||Fo().then(ee=>{this.Rs=ee}),this.fh=h.authenticationProvider,this.customFetch=h.customFetch,!0}setAuthInfo(h){this.th=h}setNetworkType(h){this.dh.setNetworkType(h)}setDefaultServerAddress(h){this.serverAddress!=h&&(this.serverAddress=h,(this.serverAddress.startsWith("mockpm://")||"mockpm.com"===this.serverAddress.toLocaleLowerCase())&&(this.serverAddress=this.serverAddress.replace("mockpm://",""),this.protocol="http://"))}startSession(h,b,k){var ee=this;return n(function*(){return yield l.TracingManager.getInstance().createSpan("StartSession",()=>(ee.ph(),ee.mh(h,b,k)))})()}resumeSession(h,b,k,ee){var he=this;return n(function*(){return yield l.TracingManager.getInstance().createSpan("ResumeSession",()=>(he.ph(),he.mh(b,k,ee,h)))})()}deleteSession(h,b){var k=this;return n(function*(){return yield l.TracingManager.getInstance().createSpan("DeleteSession",()=>{if(k.ph(),!k.gh()){l.Log.e("{1daeef1}","{4fed44a}");const he=3237085186;return k.wh(he),Promise.resolve(he)}const ee=k.Sh(h);return k.bh(kr.DELETE_SESSION,ee,"",b,h).then(he=>(15859712==he.result?(k.Jn.delete(h),l.Log.d("{1daeef1}","{6206c13}",h)):l.Log.e("{1daeef1}","{4de47e3}",h,Ae(he.result)),k.wh(he.result),he.result)).catch(he=>{k.kh(he,"deleteSession");const we=3237093384;return k.wh(we),we})})})()}getActiveSessions(h){var b=this;return n(function*(){return yield l.TracingManager.getInstance().createSpan("GetSessionList",()=>{if(b.ph(),!b.gh()){l.Log.e("{1daeef1}","{dc27839}");const ee=3237085186;return b.wh(ee),Promise.resolve({code:ee})}return b.bh(kr.GET_ACTIVE_SESSIONS,b.protocol+b.serverAddress+ka,"",h).then(ee=>{const he={code:ee.result,activeSessions:ee.activeSessions,zoneName:ee.serverId};return b.wh(he.code),15859712!==he.code?l.Log.e("{1daeef1}","{9d2bb75}",Ae(he.code)):l.Log.d("{1daeef1}","{081857f}"),he}).catch(ee=>{b.kh(ee,"getActiveSessions");const he={code:3237093384};return b.wh(he.code),he})})})()}getSessionInfo(h,b){var k=this;return n(function*(){return yield l.TracingManager.getInstance().createSpan("GetSession",()=>{if(!k.gh()){l.Log.e("{1daeef1}","{603fbab}");const he=3237085186;return k.wh(he),Promise.resolve({code:he})}const ee=k.Sh(h);return k.bh(kr.GET_SESSIONINFO,ee,"",b,h).then(he=>{const we={code:he.result,session:he.session,zoneName:he.serverId};return 15859712!==we.code?l.Log.e("{1daeef1}","{021d0f4}",Ae(we.code)):l.Log.d("{1daeef1}","{fa53c7c}"),we}).catch(he=>{k.kh(he,"getSessionInfo");const we={code:3237093384};return k.wh(we.code),we})})})()}yh(){return!!this.Ih}ph(){const h=d.trace.getActiveSpan();if(h)for(const[b,k]of this.ih)h.setAttribute(b,k)}wh(h,b){const k=d.trace.getActiveSpan();k&&(Jr(h)?(k.setAttribute("error",!1),k.setAttribute("error.description",Ss(h))):15859712==h?k.setAttribute("error",!1):(k.setAttribute("error",!0),k.setAttribute("error.description",b??Ss(h))))}Ch(h){var b;const k=d.trace.getActiveSpan();k?.setAttribute("session.status",null!==(b=h.status)&&void 0!==b?b:"")}Eh(h){var b,k,ee;const he=d.trace.getActiveSpan();if(!he)return;const we=new Map([["host.dc",null!==(b=h.serverId)&&void 0!==b?b:""],["request.id",null!==(k=h.requestId)&&void 0!==k?k:""],["request.status",null!==(ee=h.statusDescription)&&void 0!==ee?ee:""]]);for(const[ze,pt]of we)he.setAttribute(ze,pt)}Th(h){var b;let k={sessionId:h.sessionId,subSessionId:"",appId:0,appLaunchMode:0,state:Go(h.status),zoneAddress:"",zoneName:"",deviceId:"",gpuType:"",monitorSettings:[],connectionInfo:[],finalizedStreamingFeatures:h.finalizedStreamingFeatures};if(k.appId=h.sessionRequestData?h.sessionRequestData.appId:0,h.connectionInfo){const ee=h.connectionInfo;if(this.clientPlatformName===pa){let he=!1;for(const we of ee)if(2===we.usage){if(!we.ip){l.Log.e("{1daeef1}","{93ef357}",JSON.stringify(we));continue}he=!0,k.connectionInfo.push(we);const ze={ip:"",port:49100,appLevelProtocol:5,protocol:1,usage:14};let pt=we.ip.split(".");ze.ip=pt[0]+"-"+pt[1]+"-"+pt[2]+"-"+pt[3];let wt=h.sessionControlInfo.ip.indexOf(".");ze.ip+=h.sessionControlInfo.ip.substring(wt),l.Log.d("{1daeef1}","{cf7d7ea}",ze.ip),k.connectionInfo.push(ze);break}he||(k.connectionInfo=ee)}else k.connectionInfo=ee}switch(h.monitorSettings&&(k.monitorSettings=h.monitorSettings),h.gpuType&&(k.gpuType=h.gpuType),null===(b=h.sessionRequestData)||void 0===b?void 0:b.appLaunchMode){case 3:k.appLaunchMode=2;break;case 2:k.appLaunchMode=1}if(h.sessionControlInfo){const ee=h.sessionControlInfo.ip,he=h.sessionControlInfo.port;if(ee&&he){if(this.Jn.has(k.sessionId)){const we=this.Jn.get(k.sessionId);we?.server===ee&&we?.port===he||l.Log.i("{1daeef1}","{f09f5be}",k.sessionId,we?.server,we?.port,ee,he)}this.Jn.set(k.sessionId,{server:ee,port:he})}ee&&(k.zoneAddress=ee,k.zoneName=ee.split(".")[0].toUpperCase())}return k}Mh(h){return h.map(b=>this.Th(b))}Ph(h,b,k,ee,he,we){const ze=()=>{this.ph();let mn=this.Sh(h),kn={action:6,adUpdates:Array.from(this.sh)};l.Log.d("{1daeef1}","{dbca4b1}",JSON.stringify(kn)),this.sh.clear(),this.bh(kr.AD_UPDATE,mn,JSON.stringify(kn),b,h).then(yn=>{k(yn)}).catch(yn=>ee(yn))};let pt=this.sh.length-1,wt=0;for(;pt>=1;)3===this.sh[pt].adAction&&2===this.sh[pt-1].adAction?(this.sh.splice(pt-1,2),wt++,pt-=2):3===this.sh[pt-1].adAction?pt--:pt-=2;wt&&l.Log.d("{1daeef1}","{98a2816}",wt);let $t=!1,an=1e3*this.hh.adsWaitTimeoutS;const zt=this.sh.length;if(zt&&(4===this.sh[zt-1].adAction&&this.eh.size>1||2===this.sh[zt-1].adAction?an=this.hh.adsThrottleIntervalMS:$t=!0),$t)l.TracingManager.getInstance().createSpan("AdUpdateRequest",ze);else{const mn=new Promise((yn,Qn)=>{this.sh.Je("push",yn)}),kn=new l.CancellableWait(an,b.signal);Promise.race([kn.getPromise(),mn]).then(yn=>{this.sh.Je("push",void 0),kn.cancel(),this.sh.length?this.sh.length==zt?l.TracingManager.getInstance().createSpan("AdUpdateRequest",ze):this.Ph(h,b,k,ee,he,we):(l.Log.w("{1daeef1}","{5e1dfd0}"),we())}).catch(yn=>{this.sh.Je("push",void 0),kn.isAborted()?(l.Log.i("{1daeef1}","{d7114d7}"),he()):ee(yn)})}}updateAdState(h){if(!this.yh())return l.Log.e("{1daeef1}","{20d9281}"),3237085186;const b=this.eh.get(h.adId);if(!b)return l.Log.e("{1daeef1}","{74daa9c}",h.adId),3237093386;const k=function(ee){switch(ee){case 1:return 2;case 2:return 3;case 3:return 4;case 4:return 5;case 5:return 6;default:return 0}}(h.adAction);if(!function(ee,he){switch(he){case 2:return 1==ee||0==ee;case 3:case 5:return 2==ee||4==ee;case 4:return 3==ee;case 6:return 5!=ee;default:return!1}}(b.Dh,k))return l.Log.e("{1daeef1}","{09d8184}",h.adAction,h.adId,b.Dh),3237093386;if(this.sh.length){const ee=this.sh[this.sh.length-1].adId;if(ee!==h.adId){const he=this.sh[this.sh.length-1].adAction;if(4!=he&&5!=he)return l.Log.e("{1daeef1}","{c161587}",ee),3237093386}}return h.clientTimestamp||(h.clientTimestamp=Math.round(Date.now()/1e3)),this.sh.push(h),b.Dh=k,this.eh.set(h.adId,b),15859712}Sh(h){let b=this.protocol;if(h&&this.Jn.has(h)){let k=this.Jn.get(h);void 0!==k&&(b+=k.server,0!=k.port&&(b+=":"+k.port))}else b+=this.serverAddress;return b+=ka+"/"+h,b}Rh(h,b){var k,ee,he;let we="";if(b)we=this.Sh(b);else{const ze=null!==(k=h.serverAddress)&&void 0!==k?k:this.serverAddress;we=this.protocol+ze+ka}return we+="?keyboardLayout="+(null!==(ee=h.keyboardLayout)&&void 0!==ee?ee:"en_US"),we+="&languageCode="+(null!==(he=h.clientLocale)&&void 0!==he?he:"en_US"),we}Nh(h,b,k){var ee,he,we,ze,pt,wt,$t,an;let zt=1;switch(h.appLaunchMode){case 2:l.Log.d("{1daeef1}","{6d5cf87}"),zt=3;break;case 1:zt=2;break;default:zt=1}const mn=null!==(he=null===(ee=h.monitorSettings[0])||void 0===ee?void 0:ee.sdrHdrMode)&&void 0!==he?he:l.SdrHdrMode.SDR;let kn,yn={audioMode:2,remoteControllersBitmap:null!==(we=h.remoteControllersBitmap)&&void 0!==we?we:0,sdrHdrMode:mn,networkTestSessionId:null,availableSupportedControllers:[],clientVersion:Vn,deviceHashId:this.deviceId,internalTitle:null,clientPlatformName:this.clientPlatformName,metaData:[{key:"SubSessionId",value:k},{key:"wssignaling",value:Ut.On?"1":"0"}],surroundAudioInfo:0,clientTimezoneOffset:null!==(ze=h.clientTimeZoneOffset)&&void 0!==ze?ze:60*(new Date).getTimezoneOffset()*1e3*-1,clientIdentification:rr,parentSessionId:null,appId:h.appId,streamerVersion:1,clientRequestMonitorSettings:h.monitorSettings,appLaunchMode:zt,sdkVersion:"1.0",enhancedStreamMode:1,useOps:!0,clientDisplayHdrCapabilities:null,accountLinked:null!==(pt=h.accountLinked)&&void 0!==pt&&pt,partnerCustomData:null!==(wt=h.partnerCustomData)&&void 0!==wt?wt:"",enablePersistingInGameSettings:null!==($t=h.enablePersistingInGameSettings)&&void 0!==$t&&$t,secureRTSPSupported:!1,userAge:null!==(an=h.userAge)&&void 0!==an?an:0,requestedStreamingFeatures:h.streamingFeatures};Ut.Bn||this.clientPlatformName===pa?yn.metaData.push({key:"GSStreamerType",value:"WebRTC"}):yn.secureRTSPSupported=!0;for(const Qn in h.metaData)yn.metaData.push({key:Qn,value:h.metaData[Qn]});return kn=b?JSON.stringify({action:2,data:"RESUME",sessionRequestData:yn,metaData:[]}):JSON.stringify({sessionRequestData:yn}),l.Log.i("{1daeef1}","{c6c3ed4}",b?"PUT":"POST",Jn(kn)),kn}bh(h,b,k,ee,he,we){var ze=this;return n(function*(){var pt;const wt=yn=>!Jr(yn)&&(15859712!==yn||h!==kr.GET_SESSIONINFO);let $t={method:(()=>{switch(h){case kr.CREATE_SESSION:return"POST";case kr.DELETE_SESSION:return"DELETE";case kr.RESUME_SESSION:case kr.AD_UPDATE:return"PUT";default:return"GET"}})(),headers:{},body:k,retryCount:ze.Zn.retryCount,timeout:ze.Zn.timeout};Object.keys(ze.Zn.headers).forEach(yn=>{$t.headers[yn]=ze.Zn.headers[yn]}),h!==kr.DELETE_SESSION&&h!==kr.AD_UPDATE||($t.keepalive=!0,ze.Rs&&pr(ze.Rs)&&!zr(ze.Rs,81)&&($t.keepalive=!1));const an=new l.CancellableWait(12e4,ee?.signal);try{const yn=ze.getAuthHeader(we),Qn=yield Promise.race([yn,an.getPromise()]);if(!("string"==typeof Qn&&Qn.length>0)){let li=3237093377;return an.isTimedOut()?(li=3237093387,l.Log.e("{1daeef1}","{86436d3}")):l.Log.e("{1daeef1}","{cfb6326}"),{result:li}}$t.headers.authorization=Qn}catch{let Qn=3237093377;return an.isAborted()?Qn=15867907:l.Log.e("{1daeef1}","{cfb6326}"),{result:Qn}}finally{an.cancel()}const zt=performance.now();let mn=ze.dh.Hn(b,null!==(pt=$t.method)&&void 0!==pt?pt:"",he);mn.statusCode="0";let kn="";return l.performHttpRequest(b,$t,void 0,ee,ze.customFetch).then(yn=>{kn=yn.data;const Qn=performance.now();if(mn.statusCode=yn.status.toString(),mn.callDuration=Math.round(Qn-zt),!yn.data)throw l.Log.e("{1daeef1}","{ea40865}"),new SyntaxError("The response from server does not contain any data");let li;try{li=JSON.parse(yn.data)}catch(Bi){throw mn.response=yn.data,Bi}if(!li.requestStatus)throw l.Log.e("{1daeef1}","{862f264}",ys(yn.data)),new SyntaxError("RequestStatus missing in response");const wi=li.requestStatus.serverId.toUpperCase();mn.requestId=li.requestStatus.requestId,mn.serverId=wi,mn.requestStatusCode=li.requestStatus.statusDescription;const mi={result:Xr(li.requestStatus),xh:li,serverId:wi};if(ze.Eh(li.requestStatus),h===kr.GET_ACTIVE_SESSIONS){const Bi=li.sessions;Bi&&(mi.activeSessions=ze.Mh(Bi))}else if(h!==kr.DELETE_SESSION){const Bi=li.session;Bi&&(mi.session=ze.Th(Bi),ze.Ch(Bi),mn.sessionId=mi.session.sessionId);const qi=li.otherUserSessions;qi&&(mi.activeSessions=ze.Mh(qi),mi.activeSessions.length&&l.Log.d("{1daeef1}","{ba4be1c}",mi.activeSessions.length))}return mn&&wt(mi.result)&&(mn.extendedError=Ae(mi.result),ze.dh.Wn(mn),mn=void 0),function(Bi){switch(Bi){case 3237093646:case 3237093648:case 3237093669:return!0;default:return!1}}(mi.result)&&!we&&ze.fh?ze.bh(h,b,k,ee,he,mi.result):mi}).catch(yn=>{let Qn={result:3237089282};const li=performance.now();return yn.Oh?Qn.result=function(wi){switch(wi){case l.NativeNetworkError.NetworkError:return 3237089282;case l.NativeNetworkError.SocketError:return 3237101580;case l.NativeNetworkError.AddressResolveFailed:return 3237101581;case l.NativeNetworkError.ConnectFailed:return 3237101582;case l.NativeNetworkError.SslError:return 3237101583;case l.NativeNetworkError.ConnectionTimeout:return 3237101584;case l.NativeNetworkError.DataReceiveTimeout:return 3237101585;case l.NativeNetworkError.PeerNoResponse:return 3237101586;case l.NativeNetworkError.UnexpectedHttpRedirect:return 3237101587;case l.NativeNetworkError.DataSendFailure:return 3237101588;case l.NativeNetworkError.DataReceiveFailure:return 3237101589;case l.NativeNetworkError.CertificateRejected:return 3237101590;case l.NativeNetworkError.DataNotAllowed:return 3237101591;default:return 3237101592}}(yn.Oh):yn.code?Qn.result=function(wi){switch(wi){case l.HttpErrorCode.NoNetwork:return 15868417;case l.HttpErrorCode.NetworkError:return 3237089282;case l.HttpErrorCode.ResponseParseFailure:return 3237093379;case 3237089283:return 3237089283;case l.HttpErrorCode.UserAborted:return 15867907;default:return 3237093384}}(yn.code):function(wi){let mi=!1;return(wi instanceof SyntaxError||wi instanceof TypeError&&wi.message&&wi.message.includes("Cannot read property"))&&(mi=!0,l.Log.e("{1daeef1}","{d8979bb}",wi.name,wi.message)),mi}(yn)?(Qn.result=3237093379,l.Log.e("{1daeef1}","{04bcd6f}",ys(kn))):(Qn.result=3237093384,l.Log.e("{1daeef1}","{94d55bb}",yn,yn.stack),ze.dh.$n(yn,"performSessionRequest",fo+".ts",0,0,!0)),mn&&wt(Qn.result)&&(mn.extendedError=Ae(Qn.result),mn.callDuration=Math.round(li-zt),ze.dh.Wn(mn)),l.Log.e("{1daeef1}","{9c647aa}",$t.method,b),l.Log.e("{1daeef1}","{200d7ba}",Qn.result,yn.message||Ss(Qn.result)),Qn})})()}Bh(h,b,k){var ee,he,we,ze,pt,wt;let $t="Configuring",an=0;if(h.seatSetupInfo)switch(h.seatSetupInfo.seatSetupStep){case 0:$t="Connecting";break;case 1:$t="InQueue",an=h.seatSetupInfo.queuePosition<b?h.seatSetupInfo.queuePosition:b;break;case 5:$t="PreviousSessionCleanup";break;default:an=0}const zt={sessionId:h.sessionId,subSessionId:k,queuePosition:an,eta:null!==(he=null===(ee=h.seatSetupInfo)||void 0===ee?void 0:ee.seatSetupEta)&&void 0!==he?he:0,progressState:$t,isAdsRequired:h.sessionAdsRequired,ads:[]},mn=new Map(this.eh);if(this.eh.clear(),h.sessionAds){const kn=h.sessionAds.length;for(let yn=0;yn<kn;yn++){const Qn=h.sessionAds[yn];if(5==Qn.adState||6==Qn.adState)continue;const li=Qn.adId;this.eh.set(li,{Fh:Qn.adState,Dh:null!==(ze=null===(we=mn.get(li))||void 0===we?void 0:we.Dh)&&void 0!==ze?ze:0});const wi={adId:li,adState:Qn.adState,adUrl:Qn.adUrl,adLengthInSeconds:Qn.adLengthInSeconds,adMediaFiles:[]},mi=null!==(wt=null===(pt=Qn.adMediaFiles)||void 0===pt?void 0:pt.length)&&void 0!==wt?wt:0;for(let Bi=0;Bi<mi;Bi++){const qi=Qn.adMediaFiles[Bi];wi.adMediaFiles.push({mediaFileUrl:qi.mediaFileUrl,encodingProfile:qi.encodingProfile})}zt.ads.push(wi)}}return zt}Lh(h){let b=this.hh.oh;return 1===h.seatSetupInfo.seatSetupStep&&0!=this.hh.ah&&(b+=Math.floor(h.seatSetupInfo.queuePosition/this.hh.ah)*this.hh.step),h.sessionAdsRequired&&(b=Math.max(b,this.hh.adsPollingIntervalMinMS)),Math.min(b,this.hh.rh)}gh(){return!!this.fh||this.th.type===l.AuthType.NONE||!!this.th.token}getAuthHeader(h){var b=this;return n(function*(){if(b.fh)return b.fh.getAuthHeader(h);if(h)return Promise.reject();{let k="";switch(b.th.type){case l.AuthType.JWT_GFN:b.th.token&&(k="GFNJWT "+b.th.token);break;case l.AuthType.JWT_PARTNER:b.th.token&&(k="GFNPartnerJWT auth="+b.th.token)}return Promise.resolve(k)}})()}mh(h,b,k,ee){this.nh=!1,this.uh.vn();const he=ui();return new Promise((we,ze)=>{const pt=!!ee,wt=()=>{var kn;const yn={code:3237085186,subSessionId:he};this.wh(yn.code);const Qn=this.dh.Vn(null!==(kn=h.serverAddress)&&void 0!==kn?kn:"",pt,ee);Qn.result=Ae(yn.code),Qn.subSessionId=he,this.dh._n(Qn),we(yn)};if(!this.gh())return l.Log.e("{1daeef1}","{3781843}"),void wt();if(this.yh())return l.Log.e("{1daeef1}","{3753849}"),void wt();this.dh.Xn(h.appId),this.dh.Yn(he);const $t=this.Rh(h,ee),an=new URL($t).hostname,zt=this.dh.Vn(an,pt);this.Ih={resolve:we,reject:ze,sessionId:ee,subSessionId:he,Uh:k,Gh:Number.MAX_VALUE,Hh:!1,Vh:b,Wh:zt,startTime:performance.now()};const mn=this.Nh(h,pt,he);this.bh(pt?kr.RESUME_SESSION:kr.CREATE_SESSION,$t,mn,b).then(kn=>{!pt&&15859712===kn.result&&kn.session&&l.Log.i("{1daeef1}","{7c01bce}",kn.session.sessionId),this._h(kn)}).catch(kn=>{this.qh(kn)})}).catch(we=>(this.eh.clear(),this.sh.clear(),this.Ih=void 0,this.kh(we,"startOrResumeSession"),this.wh(3237093384),{code:3237093384,subSessionId:he}))}$h(){var h,b;if(!this.Ih)return;const ee=this.Sh(null!==(h=this.Ih.sessionId)&&void 0!==h?h:"");this.bh(kr.GET_SESSIONINFO,ee,"",this.Ih.Vh,null!==(b=this.Ih.sessionId)&&void 0!==b?b:"").then(he=>{this._h(he)}).catch(he=>{this.qh(he)})}qh(h){l.Log.e("{1daeef1}","{e3be7ea}",h.message),this.dh.$n(h,"processSessionSetupException",fo+".ts",0,0,!0),this.zh(3237093384)}zh(h,b,k){var ee=this;return n(function*(){var he,we,ze;if(ee.Ah=h,ee.Ih)try{ee.uh.gn(),ee.nh?(h=function($t){let an=$t;switch($t){case 3237093701:case 3237093654:an=15867909}return an!==$t&&l.Log.i("{fda9cda}","{49e2182}",Ae($t),Ae(an)),an}(h),ee.uh.fn(!1)):ee.uh.fn(!0),Qo(h)&&((yield new br(ee.serverAddress,ee.customFetch).run()).Pn||(h=function($t){let an=$t;return 3237089282===$t&&(an=15868417),an!==$t&&l.Log.i("{fda9cda}","{b84d4c8}",Ae($t),Ae(an)),an}(h)));const pt={code:h,subSessionId:null!==(he=ee.Ih.subSessionId)&&void 0!==he?he:"",session:ee.Ih.Kh,zoneName:b,activeSessions:k},wt=ee.Ih.Wh;wt.result=Ae(h),wt.zoneName=b??"",wt.sessionId=null!==(we=ee.Ih.sessionId)&&void 0!==we?we:"",wt.launchDuration+=performance.now()-ee.Ih.startTime,ee.dh._n(ee.Ih.Wh),ee.wh(h),l.Log.d("{1daeef1}","{c4902fa}",Ae(h),null!==(ze=ee.Ih.sessionId)&&void 0!==ze?ze:""),ee.Ih.resolve(pt),ee.Ih=void 0,ee.eh.clear(),ee.sh.clear()}catch(pt){ee.Ih&&(ee.Ih.reject(pt),ee.Ih=void 0)}})()}_h(h){var b,k,ee;if(!this.Ih)return;const he=()=>{this.zh(we.Hh?15867906:15867905)},we=this.Ih;if(h.session&&(h.session.subSessionId=this.Ih.subSessionId,this.Ih.Kh=h.session,this.Ih.sessionId=h.session.sessionId,we.Hh=1==h.xh.session.seatSetupInfo.seatSetupStep),15859712===h.result&&h.session){const ze=h.session;if("ready_for_connection"===ze.state||"streaming"===ze.state)"streaming"==ze.state&&this.dh.qn("InvalidSessionStateTransition","Streaming"),l.Log.i("{1daeef1}","{30d6f44}",null!==(b=this.Ih.sessionId)&&void 0!==b?b:""),this.zh(15859712,h.serverId);else if("initializing"==ze.state||"resuming"==ze.state){const pt=this.Bh(h.xh.session,this.Ih.Gh,this.Ih.subSessionId);this.Ih.Uh(pt),we.Hh&&(this.Ih.Gh=pt.queuePosition),pt.ads.length?(this.uh.yn(1e3*pt.ads[0].adLengthInSeconds),this.Ph(null!==(k=we.sessionId)&&void 0!==k?k:"",we.Vh,this._h.bind(this),this.qh.bind(this),he,this.$h.bind(this))):(this.uh.yn(),new l.CancellableWait(this.Lh(h.xh.session),null===(ee=this.Ih.Vh)||void 0===ee?void 0:ee.signal).getPromise().then(this.$h.bind(this)).catch(he))}else l.Log.e("{1daeef1}","{ce47cd1}",ys(JSON.stringify(h.xh))),this.zh(3237093378,h.serverId)}else 15867907===h.result?he():this.zh(h.result,h.serverId,h.activeSessions)}kh(h,b){l.Log.e("{1daeef1}","{32f1296}",b,h.message),l.Log.e("{1daeef1}","{94d55bb}",h,h.stack),this.dh.$n(h,b,fo+".ts",0,0,!0)}}function ys(x){return Jn(x).replace(/("clientIp" *: *")(\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b)(?=")/g,"$1***")}z.AudioFormat=void 0,z.Protocol=void 0,z.AppLevelProtocol=void 0,z.Usage=void 0,z.AdState=void 0,z.SESSIONMODIFY_ACTION=void 0,z.AdAction=void 0,z.ClientType=void 0,z.SessionState=void 0,z.SessionProgressState=void 0,z.AppLaunchMode=void 0,z.ScErrorCode=void 0,function(x){x[x.UNKNOWN=0]="UNKNOWN",x[x.STEREO=1]="STEREO",x[x.UP_TO_5_1_SURROUND_PCM=2]="UP_TO_5_1_SURROUND_PCM",x[x.UP_TO_7_1_SURROUND_PCM=3]="UP_TO_7_1_SURROUND_PCM"}(z.AudioFormat||(z.AudioFormat={})),function(x){x[x.UNKNOWN=0]="UNKNOWN",x[x.TCP=1]="TCP",x[x.UDP=2]="UDP"}(z.Protocol||(z.Protocol={})),function(x){x[x.UNKNOWN=0]="UNKNOWN",x[x.RTSP=1]="RTSP",x[x.HTTP=2]="HTTP",x[x.RTSPRU=3]="RTSPRU",x[x.SOCKET=4]="SOCKET",x[x.HTTPS=5]="HTTPS",x[x.RTSPS=6]="RTSPS"}(z.AppLevelProtocol||(z.AppLevelProtocol={})),function(x){x[x.UNKNOWN=0]="UNKNOWN",x[x.CONTROL=1]="CONTROL",x[x.VIDEO=2]="VIDEO",x[x.AUDIO=3]="AUDIO",x[x.INPUT=4]="INPUT",x[x.CUSTOM=5]="CUSTOM",x[x.USB=6]="USB",x[x.RTSP=7]="RTSP",x[x.GAMESTREAM_CONTROL=8]="GAMESTREAM_CONTROL",x[x.GAMESTREAM_SECURE_CONTROL=9]="GAMESTREAM_SECURE_CONTROL",x[x.SESSION_CONTROL=10]="SESSION_CONTROL",x[x.NETWORK_TEST_CONTROL=11]="NETWORK_TEST_CONTROL",x[x.RTSPRU=12]="RTSPRU",x[x.AUDIO_INPUT=13]="AUDIO_INPUT",x[x.SIGNALING=14]="SIGNALING",x[x.MEDIA=15]="MEDIA",x[x.RTSPS=16]="RTSPS",x[x.BUNDLE=17]="BUNDLE"}(z.Usage||(z.Usage={})),function(x){x[x.UNKNOWN=0]="UNKNOWN",x[x.NOT_STARTED=1]="NOT_STARTED",x[x.STARTED=2]="STARTED",x[x.PAUSED=3]="PAUSED",x[x.RESUMED=4]="RESUMED",x[x.FINISHED=5]="FINISHED",x[x.CANCELED=6]="CANCELED"}(z.AdState||(z.AdState={})),function(x){x[x.UNKNOWN=0]="UNKNOWN",x[x.PAUSE=1]="PAUSE",x[x.RESUME=2]="RESUME",x[x.SESSION_RATING=3]="SESSION_RATING",x[x.JOIN=4]="JOIN",x[x.FORWARD=5]="FORWARD",x[x.AD_UPDATE=6]="AD_UPDATE",x[x.TRANSFER=7]="TRANSFER"}(z.SESSIONMODIFY_ACTION||(z.SESSIONMODIFY_ACTION={})),function(x){x[x.UNKNOWN=0]="UNKNOWN",x[x.START=1]="START",x[x.PAUSE=2]="PAUSE",x[x.RESUME=3]="RESUME",x[x.FINISH=4]="FINISH",x[x.CANCEL=5]="CANCEL"}(z.AdAction||(z.AdAction={})),function(x){x.BROWSER="BROWSER",x.GFNSDK="GFNSDK",x.NATIVE="NATIVE"}(z.ClientType||(z.ClientType={})),function(x){x.INITIALIZING="initializing",x.READY_FOR_CONNECTION="ready_for_connection",x.STREAMING="streaming",x.PAUSED="paused",x.RESUMING="resuming",x.FINISHED="finished",x.UNKNOWN="unknown"}(z.SessionState||(z.SessionState={})),function(x){x.CONNECTING="Connecting",x.IN_QUEUE="InQueue",x.CONFIGURING="Configuring",x.PREVIOUS_SESSION_CLEANUP="PreviousSessionCleanup",x.STARTING_STREAMER="StartingStreamer"}(z.SessionProgressState||(z.SessionProgressState={})),function(x){x[x.Default=0]="Default",x[x.GamepadFriendly=1]="GamepadFriendly",x[x.TouchFriendly=2]="TouchFriendly"}(z.AppLaunchMode||(z.AppLaunchMode={})),function(x){x[x.Success=15859712]="Success",x[x.InvalidOperation=3237085186]="InvalidOperation",x[x.NetworkError=3237089282]="NetworkError",x[x.GetActiveSessionServerError=3237089283]="GetActiveSessionServerError",x[x.AuthTokenNotUpdated=3237093377]="AuthTokenNotUpdated",x[x.SessionFinishedState=3237093378]="SessionFinishedState",x[x.ResponseParseFailure=3237093379]="ResponseParseFailure",x[x.InvalidServerResponse=3237093381]="InvalidServerResponse",x[x.PutOrPostInProgress=3237093382]="PutOrPostInProgress",x[x.GridServerNotInitialized=3237093383]="GridServerNotInitialized",x[x.DOMExceptionInSessionControl=3237093384]="DOMExceptionInSessionControl",x[x.InvalidAdStateTransition=3237093386]="InvalidAdStateTransition",x[x.AuthTokenUpdateTimeout=3237093387]="AuthTokenUpdateTimeout",x[x.SessionServerErrorBegin=3237093632]="SessionServerErrorBegin",x[x.RequestForbidden=3237093634]="RequestForbidden",x[x.ServerInternalTimeout=3237093635]="ServerInternalTimeout",x[x.ServerInternalError=3237093636]="ServerInternalError",x[x.ServerInvalidRequest=3237093637]="ServerInvalidRequest",x[x.ServerInvalidRequestVersion=3237093638]="ServerInvalidRequestVersion",x[x.SessionListLimitExceeded=3237093639]="SessionListLimitExceeded",x[x.InvalidRequestDataMalformed=3237093640]="InvalidRequestDataMalformed",x[x.InvalidRequestDataMissing=3237093641]="InvalidRequestDataMissing",x[x.RequestLimitExceeded=3237093642]="RequestLimitExceeded",x[x.SessionLimitExceeded=3237093643]="SessionLimitExceeded",x[x.InvalidRequestVersionOutOfDate=3237093644]="InvalidRequestVersionOutOfDate",x[x.SessionEntitledTimeExceeded=3237093645]="SessionEntitledTimeExceeded",x[x.AuthFailure=3237093646]="AuthFailure",x[x.InvalidAuthenticationMalformed=3237093647]="InvalidAuthenticationMalformed",x[x.InvalidAuthenticationExpired=3237093648]="InvalidAuthenticationExpired",x[x.InvalidAuthenticationNotFound=3237093649]="InvalidAuthenticationNotFound",x[x.EntitlementFailure=3237093650]="EntitlementFailure",x[x.InvalidAppIdNotAvailable=3237093651]="InvalidAppIdNotAvailable",x[x.InvalidAppIdNotFound=3237093652]="InvalidAppIdNotFound",x[x.InvalidSessionIdMalformed=3237093653]="InvalidSessionIdMalformed",x[x.InvalidSessionIdNotFound=3237093654]="InvalidSessionIdNotFound",x[x.EulaUnAccepted=3237093655]="EulaUnAccepted",x[x.MaintenanceStatus=3237093656]="MaintenanceStatus",x[x.ServiceUnAvailable=3237093657]="ServiceUnAvailable",x[x.SteamGuardRequired=3237093658]="SteamGuardRequired",x[x.SteamLoginRequired=3237093659]="SteamLoginRequired",x[x.SteamGuardInvalid=3237093660]="SteamGuardInvalid",x[x.SteamProfilePrivate=3237093661]="SteamProfilePrivate",x[x.InvalidCountryCode=3237093662]="InvalidCountryCode",x[x.InvalidLanguageCode=3237093663]="InvalidLanguageCode",x[x.MissingCountryCode=3237093664]="MissingCountryCode",x[x.MissingLanguageCode=3237093665]="MissingLanguageCode",x[x.SessionNotPaused=3237093666]="SessionNotPaused",x[x.EmailNotVerified=3237093667]="EmailNotVerified",x[x.InvalidAuthenticationUnsupportedProtocol=3237093668]="InvalidAuthenticationUnsupportedProtocol",x[x.InvalidAuthenticationUnknownToken=3237093669]="InvalidAuthenticationUnknownToken",x[x.InvalidAuthenticationCredentials=3237093670]="InvalidAuthenticationCredentials",x[x.SessionNotPlaying=3237093671]="SessionNotPlaying",x[x.InvalidServiceResponse=3237093672]="InvalidServiceResponse",x[x.AppPatching=3237093673]="AppPatching",x[x.GameNotFound=3237093674]="GameNotFound",x[x.NotEnoughCredits=3237093675]="NotEnoughCredits",x[x.InvitationOnlyRegistration=3237093676]="InvitationOnlyRegistration",x[x.RegionNotSupportedForRegistration=3237093677]="RegionNotSupportedForRegistration",x[x.SessionTerminatedByAnotherClient=3237093678]="SessionTerminatedByAnotherClient",x[x.DeviceIdAlreadyUsed=3237093679]="DeviceIdAlreadyUsed",x[x.ServiceNotExist=3237093680]="ServiceNotExist",x[x.SessionExpired=3237093681]="SessionExpired",x[x.SessionLimitPerDeviceReached=3237093682]="SessionLimitPerDeviceReached",x[x.ForwardingZoneOutOfCapacity=3237093683]="ForwardingZoneOutOfCapacity",x[x.RegionNotSupportedIndefinitely=3237093684]="RegionNotSupportedIndefinitely",x[x.RegionBanned=3237093685]="RegionBanned",x[x.RegionOnHoldForFree=3237093686]="RegionOnHoldForFree",x[x.RegionOnHoldForPaid=3237093687]="RegionOnHoldForPaid",x[x.AppMaintenanceStatus=3237093688]="AppMaintenanceStatus",x[x.ResourcePoolNotConfigured=3237093689]="ResourcePoolNotConfigured",x[x.InsufficientVmCapacity=3237093690]="InsufficientVmCapacity",x[x.InsufficientRouteCapacity=3237093691]="InsufficientRouteCapacity",x[x.InsufficientScratchSpaceCapacity=3237093692]="InsufficientScratchSpaceCapacity",x[x.RequiredSeatInstanceTypeNotSupported=3237093693]="RequiredSeatInstanceTypeNotSupported",x[x.ServerSessionQueueLengthExceeded=3237093694]="ServerSessionQueueLengthExceeded",x[x.RegionNotSupportedForStreaming=3237093695]="RegionNotSupportedForStreaming",x[x.SessionForwardRequestAllocationTimeExpired=3237093696]="SessionForwardRequestAllocationTimeExpired",x[x.SessionForwardGameBinariesNotAvailable=3237093697]="SessionForwardGameBinariesNotAvailable",x[x.GameBinariesNotAvailableInRegion=3237093698]="GameBinariesNotAvailableInRegion",x[x.UekRetrievalFailed=3237093699]="UekRetrievalFailed",x[x.EntitlementFailureForResource=3237093700]="EntitlementFailureForResource",x[x.SessionInQueueAbandoned=3237093701]="SessionInQueueAbandoned",x[x.MemberTerminated=3237093702]="MemberTerminated",x[x.SessionRemovedFromQueueMaintenance=3237093703]="SessionRemovedFromQueueMaintenance",x[x.ZoneMaintenanceStatus=3237093704]="ZoneMaintenanceStatus",x[x.GuestModeCampaignDisabled=3237093705]="GuestModeCampaignDisabled",x[x.RegionNotSupportedAnonymousAccess=3237093706]="RegionNotSupportedAnonymousAccess",x[x.InstanceTypeNotSupportedInSingleRegion=3237093707]="InstanceTypeNotSupportedInSingleRegion",x[x.InvalidZoneForQueuedSession=3237093710]="InvalidZoneForQueuedSession",x[x.SessionWaitingAdsTimeExpired=3237093711]="SessionWaitingAdsTimeExpired",x[x.UserCancelledWatchingAds=3237093712]="UserCancelledWatchingAds",x[x.StreamingNotAllowedInLimitedMode=3237093713]="StreamingNotAllowedInLimitedMode",x[x.ForwardRequestJPMFailed=3237093714]="ForwardRequestJPMFailed",x[x.MaxSessionNumberLimitExceeded=3237093715]="MaxSessionNumberLimitExceeded",x[x.GuestModePartnerCapacityDisabled=3237093716]="GuestModePartnerCapacityDisabled",x[x.SessionRejectedNoCapacity=3237093717]="SessionRejectedNoCapacity",x[x.SessionInsufficientPlayabilityLevel=3237093718]="SessionInsufficientPlayabilityLevel",x[x.SessionServerErrorEnd=3237093887]="SessionServerErrorEnd",x[x.SessionSetupCancelled=15867905]="SessionSetupCancelled",x[x.SessionSetupCancelledDuringQueuing=15867906]="SessionSetupCancelledDuringQueuing",x[x.RequestCancelled=15867907]="RequestCancelled",x[x.SystemSleepDuringSessionSetup=15867909]="SystemSleepDuringSessionSetup",x[x.NoInternetDuringSessionSetup=15868417]="NoInternetDuringSessionSetup",x[x.SessionControlErrorBegin=3237101568]="SessionControlErrorBegin",x[x.SocketError=3237101580]="SocketError",x[x.AddressResolveFailed=3237101581]="AddressResolveFailed",x[x.ConnectFailed=3237101582]="ConnectFailed",x[x.SslError=3237101583]="SslError",x[x.ConnectionTimeout=3237101584]="ConnectionTimeout",x[x.DataReceiveTimeout=3237101585]="DataReceiveTimeout",x[x.PeerNoResponse=3237101586]="PeerNoResponse",x[x.UnexpectedHttpRedirect=3237101587]="UnexpectedHttpRedirect",x[x.DataSendFailure=3237101588]="DataSendFailure",x[x.DataReceiveFailure=3237101589]="DataReceiveFailure",x[x.CertificateRejected=3237101590]="CertificateRejected",x[x.DataNotAllowed=3237101591]="DataNotAllowed",x[x.NetworkErrorUnknown=3237101592]="NetworkErrorUnknown",x[x.SessionControlErrorEnd=3237105663]="SessionControlErrorEnd"}(z.ScErrorCode||(z.ScErrorCode={}));const ma="gridserver";function fs(x){const h={ip:"",port:0,protocol:""};for(const k of x.connectionInfo)if(14===k.usage){h.ip=k.ip,h.port=k.port,h.protocol=5===k.appLevelProtocol?"https":"http",h.resourcePath=k.resourcePath;break}const b={signalConnectionInfo:h,mediaConnectionInfo:x.connectionInfo,streamInfo:[],clientLocale:"",...x};for(const k of x.monitorSettings)b.streamInfo.push({width:k.widthInPixels,height:k.heightInPixels,fps:k.framesPerSecond,sdrHdrMode:k.sdrHdrMode});return b}function Oa(x){let h=[];if(x)for(const b of x)h.push({sessionId:b.sessionId,appId:b.appId,state:b.state,appLaunchMode:b.appLaunchMode});return h}z.ClientStreamer=void 0,z.GS_EVENTS=void 0,function(x){x.CLASSIC="NVIDIA-CLASSIC",x.WEBRTC="WEBRTC"}(z.ClientStreamer||(z.ClientStreamer={})),function(x){x.ACTIVE_SESSIONS_RESULT="ActiveSessionsResult",x.PROGRESS_UPDATE="ProgressUpdate",x.SESSION_UPDATE="SessionUpdate",x.TELEMETRY_EVENT="TelemetryEvent",x.LOG_EVENT="Log"}(z.GS_EVENTS||(z.GS_EVENTS={}));class Ms extends Xs{constructor(h,b){super(),this.subSessionId="",this.Qh=new Map,this.Yh=!1,this.Xh=new Map,this.jh=k=>{this.Jh.emit("TelemetryEvent",k)},this.Zh=k=>{this.io(k)},this.Rs=h,this.Jh=new Yr("Log",b),l.Logger.isCallbackRegistered()||(this.Yh=!0,l.Logger.register(this.Jh.Xe.bind(this.Jh))),this.dh.Je(this.jh)}initialize(h){var b;l.Log.i("{6bae601}","{6802390}",tt);const k={deviceId:null!==(b=h.deviceHashId)&&void 0!==b?b:"",...h,clientStreamer:h.clientStreamer.toString()};super.init(k),this.dh.jn(),l.Log.d("{6bae601}","{5af3344}")}uninitialize(){this.cancelSessionSetup(),this.Yh&&l.Logger.unregister(),this.Jh.removeAllListeners()}addListener(h,b){this.Jh.addListener(h,b)}removeListener(h,b){this.Jh.removeListener(h,b)}updateTelemetryEventIds(h){l.TelemetryModule.setTelemetryEventIds(h)}getAllActiveSessions(){l.TracingManager.getInstance().createSpan("GetSessionList",()=>(this.ph(),this.so()))}so(){var h=this;return n(function*(){if(l.Log.d("{6bae601}","{1aef200}"),!h.serverAddress)return h.Jh.emit("ActiveSessionsResult",{sessionList:[],error:{code:3237093383,description:"GridServer not initialized"}}),void h.wh(3237093383);let b=h.protocol+h.serverAddress+"/v2/session";yield h.bh(kr.GET_ACTIVE_SESSIONS,b,"").then(k=>{let ee={sessionList:Oa(k.activeSessions)};if(15859712!=k.result){let he={code:k.result,description:Ss(k.result)};ee.error=he,l.Log.e("{6bae601}","{9d2bb75}",Ae(he.code))}else l.Log.d("{6bae601}","{081857f}");h.wh(k.result),h.Jh.emit("ActiveSessionsResult",ee)}).catch(k=>{l.Log.e("{6bae601}","{63f9b57}",k.message),l.Log.e("{6bae601}","{94d55bb}",k,k.stack),h.dh.$n(k,"getAllActiveSessions",ma+".ts",0,0,!0);let ee={sessionList:[],error:{code:3237093384,description:Ss(3237093384)}};h.wh(3237093384),h.Jh.emit("ActiveSessionsResult",ee)}),l.Log.d("{6bae601}","{a9e5439}")})()}eo(h,b=""){l.Log.d("{6bae601}","{1e04fe6}",b,h),this.subSessionId=h,this.dh.Qn(b),this.dh.Yn(h);const k=this.Qh.get(h);void 0===k||""===k?this.Qh.set(h,b):l.Log.w("{6bae601}","{7dd264b}",b)}getSessionId(){var h;return null!==(h=this.Qh.get(this.subSessionId))&&void 0!==h?h:""}getSubSessionId(){return this.subSessionId}putOrPostSession(h,b,k){return l.TracingManager.getInstance().createSpan(k?"PutSession":"PostSession",()=>(this.ph(),this.no(h,b,k)))}no(h,b,k){var ee;const he=!!k;if(this.eo(ui(),k),!this.serverAddress)return this.ho({code:3237093383,description:"GridServer not initialized"});if(this.oo)return this.ho({code:3237093382,description:"Previous PutOrPost call is still in progress"});this.dh.Xn(h.appId),this.zoneName=void 0,this.zoneAddress=void 0,this.gpuType=void 0;const we=this.dh.Vn(this.serverAddress,he,k);we.networkSessionId=null!==(ee=h.networkSessionId)&&void 0!==ee?ee:"";const ze=function(an){var zt;const mn={monitorSettings:[],...an};if(0===mn.monitorSettings.length)for(const kn of null!==(zt=an.streamParams)&&void 0!==zt?zt:[])mn.monitorSettings.push({heightInPixels:kn.height,framesPerSecond:kn.fps,widthInPixels:kn.width});return mn}(h);let pt=this.Rh(ze,k),wt=this.Nh(ze,he,this.subSessionId),$t=performance.now();return new Promise((an,zt)=>{const mn=new AbortController;this.oo=mn,this.bh(he?kr.RESUME_SESSION:kr.CREATE_SESSION,pt,wt,mn,k).then(kn=>{var yn,Qn,li,wi,mi;let Bi;if(we.launchDuration=Math.round(performance.now()-$t),!(null===(yn=kn.session)||void 0===yn)&&yn.sessionId&&(we.sessionId=null===(Qn=kn.session)||void 0===Qn?void 0:Qn.sessionId,k=null===(li=kn.session)||void 0===li?void 0:li.sessionId),this.zoneName=kn.serverId||this.zoneName,kn.session&&(Bi=fs(kn.session),Bi.subSessionId=this.subSessionId,this.ro(Bi)),we.zoneName=null!==(wi=this.zoneName)&&void 0!==wi?wi:"",mn.signal.aborted&&!Jr(kn.result)&&(kn.result=15867905,l.Log.d("{6bae601}","{3ec0e11}")),15859712==kn.result)l.Log.d("{6bae601}","{30536f4}",k),this.eo(this.getSubSessionId(),k),"ready_for_connection"==(null===(mi=kn.session)||void 0===mi?void 0:mi.state)?(we.result=Ae(15859712),this.dh._n(we)):this.Xh.set(we.sessionId,we),this.wh(kn.result),an(Bi);else{15867907===kn.result&&(kn.result=15867905);const qi={code:kn.result,sessionId:k,description:Ss(kn.result),sessionList:Oa(kn.activeSessions)};l.Log.e("{6bae601}","{17f93f3}",Ae(qi.code)),we.result=Ae(qi.code),this.dh._n(we),this.wh(qi.code),zt(qi)}}).catch(kn=>{let yn={code:3237093384,sessionId:k,description:Ss(3237093384)};l.Log.e("{6bae601}","{4318505}",kn.message),l.Log.e("{6bae601}","{94d55bb}",kn,kn.stack),this.dh.$n(kn,"putOrPostSession",ma+".ts",0,0,!0),we.result=Ae(yn.code),this.dh._n(we),this.wh(yn.code),zt(yn)})}).finally(()=>{this.oo=void 0})}getSession(h,b){return l.TracingManager.getInstance().createSpan("GetSession",()=>(this.ph(),this.ao(h,b)))}ao(h,b){if(!this.serverAddress)return this.ho({code:3237093383,description:"GridServer not initialized"});if(b)return new Promise((k,ee)=>{const he=this.Sh(h),we=new URL(he).hostname;let ze=this.Xh.get(h);ze?this.Xh.delete(h):(l.Log.e("{6bae601}","{bb9b2e3}",h),ze=this.dh.Vn(we,!1,h));const pt=new AbortController;this.do=pt,this.Ih={resolve:k,reject:ee,sessionId:h,subSessionId:this.subSessionId,Uh:this.Zh,Gh:Number.MAX_VALUE,Hh:!1,Vh:pt,startTime:performance.now(),Wh:ze},this.$h()}).then(k=>{let ee;if(k.session&&(ee=fs(k.session),this.ro(ee)),15859712===k.code&&ee)return ee;throw{code:k.code,description:Ss(k.code)}}).finally(()=>{this.eh.clear(),this.sh.clear(),this.Ih=void 0});{const k=this.Sh(h);return this.bh(kr.GET_SESSIONINFO,k,"",void 0,h).then(ee=>{if(this.wh(ee.result),15859712===ee.result&&ee.session)return fs(ee.session);throw{code:ee.result,description:Ss(ee.result)}})}}sendDeleteRequest(h){return l.TracingManager.getInstance().createSpan("DeleteSession",()=>(this.ph(),this.co(h)))}co(h){if(!this.serverAddress)return this.ho({code:3237093383,description:"Gridserver not initialized"});let b=this.Sh(h);return new Promise((k,ee)=>{l.Log.d("{6bae601}","{bbad3ce}",h),this.bh(kr.DELETE_SESSION,b,"",void 0,h).then(he=>{if(15859712==he.result)l.Log.d("{6bae601}","{6206c13}",h),k();else{let we={code:he.result,description:Ss(he.result),sessionId:h};l.Log.e("{6bae601}","{4de47e3}",h,Ae(he.result)),ee(we)}this.wh(he.result)}).catch(he=>{const we={code:3237093384,description:Ss(3237093384)};l.Log.e("{6bae601}","{c4f620c}",he.message),l.Log.e("{6bae601}","{94d55bb}",he,he.stack),this.dh.$n(he,"sendDeleteRequestImpl",ma+".ts",0,0,!0),ee(we)})})}cancelSessionSetup(){var h,b;l.Log.i("{6bae601}","{c73e640}"),null===(h=this.oo)||void 0===h||h.abort(),null===(b=this.do)||void 0===b||b.abort(),this.oo=void 0,this.do=void 0}getZoneName(){var h;return null!==(h=this.zoneName)&&void 0!==h?h:""}getZoneAddress(){var h;return null!==(h=this.zoneAddress)&&void 0!==h?h:""}getGpuType(){var h;return null!==(h=this.gpuType)&&void 0!==h?h:""}ho(h){return this.wh(h.code,h.description),Promise.reject(h)}ro(h){this.zoneAddress=h.zoneAddress||this.zoneAddress,this.zoneName=h.zoneName||this.zoneName,this.gpuType=h.gpuType||this.gpuType}yh(){return!!this.do}io(h){this.Jh.emit("SessionUpdate",h),this.Jh.emit("ProgressUpdate",{sessionId:h.sessionId,subSessionId:h.subSessionId,queuePosition:h.queuePosition,eta:h.eta,state:h.progressState})}}class Ua extends Ms{constructor(){super()}getAllActiveSessions(){window.setTimeout(()=>{l.Log.d("{6bae601}","{b575263}"),this.Jh.emit("ActiveSessionsResult",{sessionList:[]})},1)}putOrPostSession(h,b,k){var ee;return l.Log.d("{6bae601}","{71c010f}"),this.eo(ui(),null!==(ee=h.sessionId)&&void 0!==ee?ee:"PassThruSessionId"),new Promise((he,we)=>{window.setTimeout(()=>{var ze;let pt={sessionId:this.getSessionId(),subSessionId:this.getSubSessionId(),appId:parseInt(h.appId),state:"ready_for_connection",signalConnectionInfo:{ip:"",port:49100,protocol:"http"},mediaConnectionInfo:[],streamInfo:[],appLaunchMode:h.appLaunchMode?h.appLaunchMode:0,zoneName:this.getZoneName(),zoneAddress:this.getZoneAddress(),gpuType:this.getGpuType(),clientLocale:"",finalizedStreamingFeatures:null!==(ze=h.streamingFeatures)&&void 0!==ze?ze:{}};if(this.serverAddress&&(pt.signalConnectionInfo.ip=this.serverAddress),h.connectionInfo){pt.mediaConnectionInfo=h.connectionInfo;for(const wt of pt.mediaConnectionInfo)14===wt.usage&&(pt.signalConnectionInfo.ip=wt.ip,pt.signalConnectionInfo.port=wt.port,pt.signalConnectionInfo.protocol=5===wt.appLevelProtocol?"https":"http",pt.signalConnectionInfo.resourcePath=wt.resourcePath,l.Log.d("{6bae601}","{c6b8e0f}",wt.ip,wt.port))}if(pt.signalConnectionInfo.ip||l.Log.e("{6bae601}","{a43f57e}"),h.monitorSettings)for(const wt of h.monitorSettings)pt.streamInfo.push({width:wt.widthInPixels,height:wt.heightInPixels,fps:wt.framesPerSecond,sdrHdrMode:wt.sdrHdrMode});else for(const wt of h.streamParams)pt.streamInfo.push({width:wt.width,height:wt.height,fps:wt.fps});l.Log.d("{6bae601}","{07dc276}",pt.sessionId),he(pt)},1)})}getSession(h,b){return new Promise((k,ee)=>{ee({code:-1,description:"PassthruPollingNotSupported"})})}sendDeleteRequest(h){return new Promise((b,k)=>{b()})}updateAdState(h){return-1}}const Zs={Fn:"Ragnarok",clientId:"62677554106929725",eventSchemaVer:"3.2"},qo={Streamer_Start:{name:"Streamer_Start",gdprLevel:l.GdprLevel.FUNCTIONAL},Streamer_Exit:{name:"Streamer_Exit",gdprLevel:l.GdprLevel.FUNCTIONAL},Streamer_InputDevice:{name:"Streamer_InputDevice",gdprLevel:l.GdprLevel.FUNCTIONAL},Streamer_HotPlugEvent:{name:"Streamer_HotPlugEvent",gdprLevel:l.GdprLevel.FUNCTIONAL},Streamer_DecoderCaps:{name:"Streamer_DecoderCaps",gdprLevel:l.GdprLevel.FUNCTIONAL},Streamer_DisplayCaps:{name:"Streamer_DisplayCaps",gdprLevel:l.GdprLevel.FUNCTIONAL},Streamer_EncoderCaps:{name:"Streamer_EncoderCaps",gdprLevel:l.GdprLevel.FUNCTIONAL}};class js extends si{constructor(h){super(h),this.name=qo.Streamer_Start.name,this.gdprLevel=qo.Streamer_Start.gdprLevel}}class Ia extends si{constructor(h){super(h),this.name=qo.Streamer_Exit.name,this.gdprLevel=qo.Streamer_Exit.gdprLevel,this.priority=!0}}class Ds extends si{constructor(h){super(h),this.name=qo.Streamer_InputDevice.name,this.gdprLevel=qo.Streamer_InputDevice.gdprLevel}}z.HidType=void 0,z.InputType=void 0,z.VideoCodecType=void 0,z.MicState=void 0,z.DynamicStreamingMode=void 0,z.EditBoxActionType=void 0,z.TrackType=void 0,z.StreamStopReason=void 0,z.StreamWarningType=void 0,z.CursorType=void 0,z.StreamingState=void 0,z.EVENTS=void 0,z.HotkeyModifier=void 0,function(x){x[x.NONE=0]="NONE",x[x.DS4=1]="DS4",x[x.DS5=2]="DS5"}(z.HidType||(z.HidType={})),function(x){x[x.None=0]="None",x[x.Mouse=1]="Mouse",x[x.Keyboard=2]="Keyboard",x[x.Gamepad=4]="Gamepad",x[x.Touch=8]="Touch",x[x.All=15]="All"}(z.InputType||(z.InputType={})),function(x){x.H264="H264",x.H265="H265",x.AV1="AV1",x.UNKNOWN="UNKNOWN"}(z.VideoCodecType||(z.VideoCodecType={})),function(x){x[x.UNINITIALIZED=0]="UNINITIALIZED",x[x.PERMISSION_PENDING=1]="PERMISSION_PENDING",x[x.PERMISSION_DENIED=2]="PERMISSION_DENIED",x[x.STARTED=3]="STARTED",x[x.NO_SUITABLE_DEVICE=4]="NO_SUITABLE_DEVICE",x[x.STOPPED=5]="STOPPED",x[x.UNSUPPORTED=6]="UNSUPPORTED",x[x.ERROR=7]="ERROR"}(z.MicState||(z.MicState={})),function(x){x[x.NONE=0]="NONE",x[x.DRC=1]="DRC",x[x.DFC=2]="DFC",x[x.ALL=3]="ALL"}(z.DynamicStreamingMode||(z.DynamicStreamingMode={})),function(x){x[x.OPEN_KEYBOARD=0]="OPEN_KEYBOARD",x[x.CLOSE_KEYBOARD=1]="CLOSE_KEYBOARD",x[x.PASTE_CLIPBOARD=2]="PASTE_CLIPBOARD"}(z.EditBoxActionType||(z.EditBoxActionType={})),function(x){x.VIDEO="video",x.AUDIO="audio"}(z.TrackType||(z.TrackType={})),function(x){x[x.CLIENT_DISCONNECTED=0]="CLIENT_DISCONNECTED",x[x.SERVER_DISCONNECTED=1]="SERVER_DISCONNECTED",x[x.NETWORK_ERROR=2]="NETWORK_ERROR",x[x.ERROR=3]="ERROR"}(z.StreamStopReason||(z.StreamStopReason={})),function(x){x[x.Unknown=0]="Unknown",x[x.ApproachingEntitlementTimeout=1]="ApproachingEntitlementTimeout",x[x.ApproachingIdleTimeout=2]="ApproachingIdleTimeout",x[x.ApproachingSessionMaxTimeLimit=3]="ApproachingSessionMaxTimeLimit",x[x.ClearUserIdleTimeOut=4]="ClearUserIdleTimeOut"}(z.StreamWarningType||(z.StreamWarningType={})),function(x){x[x.SOFTWARE=0]="SOFTWARE",x[x.HARDWARE=1]="HARDWARE",x[x.FREE=2]="FREE"}(z.CursorType||(z.CursorType={})),function(x){x[x.NONE=0]="NONE",x[x.STARTING_STREAM=1]="STARTING_STREAM",x[x.STREAMING=2]="STREAMING",x[x.STOPPING_STREAM=3]="STOPPING_STREAM",x[x.STOPPED=4]="STOPPED"}(z.StreamingState||(z.StreamingState={})),function(x){x.SESSION_START_RESULT="SessionStartResult",x.SESSION_STOP_RESULT="SessionStopResult",x.ACTIVE_SESSIONS_RESULT="ActiveSessionsResult",x.PROGRESS_UPDATE="ProgressUpdate",x.SESSION_UPDATE="SessionUpdate",x.STREAM_STOPPED="StreamStopped",x.STREAMING_EVENT="StreamingEvent",x.GETSESSIONRESULT="GetSessionResult",x.GET_SESSION_RESULT="GetSessionResult",x.LOG_EVENT="Log",x.STREAMING_QUALITY="StreamingQuality",x.MIC_CAPTURE="MicCapture",x.CUSTOM_MESSAGE="CustomMessage",x.TEXT_COMPOSITION="TextComposition",x.STREAM_STATS_UPDATE="StreamStatsUpdate",x.TELEMETRY_EVENT="TelemetryEvent",x.STREAM_QUALITY_REPORT="StreamQualityReport",x.EDIT_BOX_EVENT="EditBoxEvent"}(z.EVENTS||(z.EVENTS={})),function(x){x[x.None=0]="None",x[x.Ctrl=1]="Ctrl",x[x.Alt=2]="Alt",x[x.Meta=4]="Meta",x[x.Shift=8]="Shift",x[x.Default=128]="Default"}(z.HotkeyModifier||(z.HotkeyModifier={}));const Js={allowUnconfined:!1,preventNavigation:!1};z.StreamingProfilePreset=void 0,z.STREAMING_STATE=void 0,function(x){x[x.BALANCED=0]="BALANCED",x[x.DATASAVER=1]="DATASAVER",x[x.COMPETITIVE=2]="COMPETITIVE"}(z.StreamingProfilePreset||(z.StreamingProfilePreset={})),function(x){x.RECONNECTING="reconnecting",x.RECONNECTED="reconnected"}(z.STREAMING_STATE||(z.STREAMING_STATE={}));class fa{constructor(){this.lo=1}uo(){return this.lo++}}function Ga(x){if(!((15868672^x)>>8))return 256;let h=32769;switch(x){case 15859712:case 15867908:case 15868418:h=0;break;case 3237093894:case 3237093899:h=32776;break;case 3237093898:h=32772;break;case 3237093900:h=32773;break;case 3237093901:h=32770;break;case 15867910:h=1;break;default:l.Log.d("{c00be32}","{233ad08}",Ae(x))}return h}function cs(x){let h=15868672;switch(x){case 256:h=15868704;break;case 257:h=15868705;break;case 258:h=15868706;break;case 259:h=15868707;break;case 260:h=15868708;break;case 261:h=15868709;break;case 262:h=15868710;break;case 263:h=15868711;break;case 264:h=15868712;break;case 265:h=15868713;break;case 266:h=15868714;break;case 267:h=15868715;break;case 268:h=15868716;break;case 269:h=15868719;break;case 270:h=15868688;break;case 512:h=15868736;break;case 513:h=15868737;break;case 514:h=15868738;break;case 515:h=15868739;break;case 516:h=15868740;break;case 517:h=15868741;break;case 518:h=15868742;break;case 519:h=15868743;break;case 520:h=15868744;break;case 521:h=15868745;break;case 33025:h=3237094145;break;case 33026:h=3237094146;break;case 33027:h=3237094147;break;case 33028:h=3237094148;break;case 33029:h=3237094149;break;case 33030:h=3237094150;break;case 33031:h=3237094151;break;case 33032:h=3237094152;break;case 33034:h=3237094153;break;case 33035:h=3237094154;break;case 33040:h=3237094155;break;case 33041:h=3237094156;break;case 33042:h=3237094157;break;case 37634:h=15868718;break;case 32768:h=3237094158;break;case 768:h=15868717;break;case 0:h=15868752;break;default:l.Log.d("{c00be32}","{1be40ed}",Ae(x))}return h}const $s="streamkit-latency-indicator";class Vo{constructor(){this.Ao=null,this.vo=""}static getInstance(){return Vo.fo||(Vo.fo=new Vo),Vo.fo}initialize(h,b){this.Rs=b,this.po=this.mo(h),this.po.style.display="block",this.Ao=this.po.getContext("webgl"),this.wo()}wo(){"white"===this.vo?this.So():this.bo()}mo(h){let b=$s,k=document.getElementById(b);if(k&&k instanceof HTMLCanvasElement&&k.parentElement===h.parentElement)return k;{if(k)do{b=$s+Math.round(1e4*Math.random()),k=document.getElementById(b)}while(k);let ee=document.createElement("canvas");return ee.id=b,ee.style.position="fixed",yt(this.Rs)?(ee.style.bottom="env(safe-area-inset-bottom, 0)",ee.style.right="max(24px, env(safe-area-inset-right, 0))"):(ee.style.bottom="0",ee.style.right="0"),ee.style.width="40px",ee.style.height="40px",ee.style.zIndex="300",ee.style.pointerEvents="none",h.insertAdjacentElement("afterend",ee),ee}}bo(){this.Ao&&(this.Ao.clearColor(1,1,1,1),this.Ao.clear(this.Ao.COLOR_BUFFER_BIT),this.vo="white")}So(){this.Ao&&(this.Ao.clearColor(1,0,0,1),this.Ao.clear(this.Ao.COLOR_BUFFER_BIT),this.vo="red")}}let Hn={ko:{},clientConfigOverride:"",xn:{type:"UNKNOWN",version:""},yo:!1,o:!0,l:!1,Io:!0,Co:!0,Eo:!0,maxBitrate:0,To:0,Mo:0,Po:!1,Do:!0,Ro:!1,No:!0,xo:!1,Oo:!1,Bo:!1,Fo:!1,Lo:!0,Uo:!1,Go:!0,Ho:!0,Vo:!0,Wo:!0,_o:!0,fps:0,qo:!0,enableComputePressure:!0,$o:!1,zo:"",iceTransportPolicy:""},Ba=[];function ds(x){if(x){const h=Number.parseInt(x);if(!Number.isNaN(h))return h}}function la(x){var h,b,k,ee,he,we,ze,pt,wt,$t,an,zt,mn,kn,yn,Qn,li,wi,mi,Bi,qi,sr,Ar,Vr,Br,Xo,Do,Lo,ir,wr,_s,Ta,ls,zs,ia,ga,nl,ua,Wl,Xl,xs,qa,ll,dl,pl,Ol,ml,El,vc,Zl,bc,_c,Jl,xl,ic,vt,en,Ee,kt,Qt,Zn;if(l.Log.i("{a112b01}","{db6044f}",JSON.stringify(x)),x.clientConfigOverride&&(Hn.clientConfigOverride=x.clientConfigOverride),x.gxtOverrideData){const Vi=JSON.parse(x.gxtOverrideData);if(Vi.params)for(const vr of Vi.params)"ragnarok"===vr.name&&(Hn.ko=vr.value,Hn.xn={type:"GXT",version:vr.version})}else x.remoteConfigData&&x.remoteConfigData.ragnarok&&(Hn.ko=JSON.parse(x.remoteConfigData.ragnarok),Hn.xn={type:"RCONFIG",version:null!==(h=x.remoteConfigData.version)&&void 0!==h?h:""});if(x.isInternalUser&&(Hn.isInternalUser=x.isInternalUser),x.overrideData){const Vi=new URLSearchParams(x.overrideData);let vr=new URLSearchParams;for(const[Sa,ya]of Vi.entries())vr.append(Sa.toLowerCase(),ya);"lean"===(null===(b=vr.get("mode"))||void 0===b?void 0:b.toLowerCase())?(Hn.yo=!0,Hn.o=!1,Hn.Io=!1,Hn.Co=!1,Hn.Eo=!1,Hn.Ko=!1,Hn.stutterIndicator=!0,Hn.isInternalUser=!0):"dev"===(null===(k=vr.get("mode"))||void 0===k?void 0:k.toLowerCase())&&(Hn.stutterIndicator=!0,Hn.isInternalUser=!0);const hr=Sa=>function(ya){if(ya)switch(ya.toLowerCase()){case"enable":case"on":case"1":case"true":return!0;case"disable":case"off":case"0":case"false":return!1}}(vr.get(Sa)),qr=Sa=>ds(vr.get(Sa)),so=Sa=>function(ya){if(ya){const bl=Number.parseFloat(ya);if(!Number.isNaN(bl))return bl}}(vr.get(Sa)),Cs=Sa=>function(ya){if(ya)return ya.split(",")}(vr.get(Sa)),ba=(Sa,ya)=>{const bl=vr.get(Sa);return null===bl?ya:bl||void 0};Hn.o=null!==(ee=hr("log"))&&void 0!==ee?ee:Hn.o,Hn.l=Hn.o&&(null!==(he=hr("console"))&&void 0!==he?he:Hn.l),Hn.Io=null!==(we=hr("gamepad"))&&void 0!==we?we:Hn.Io,Hn.Co=null!==(ze=hr("webrtcstats"))&&void 0!==ze?ze:Hn.Co,Hn.Eo=null!==(pt=hr("statsupload"))&&void 0!==pt?pt:Hn.Eo,Hn.Ko=null!==(wt=hr("mic"))&&void 0!==wt?wt:Hn.Ko,Hn.Qo=null!==($t=hr("mousefilter"))&&void 0!==$t?$t:Hn.Qo,Hn.unadjustedMovement=null!==(an=hr("unadjustedmovement"))&&void 0!==an?an:Hn.unadjustedMovement,Hn.maxBitrate=null!==(zt=qr("bitrate"))&&void 0!==zt?zt:Hn.maxBitrate,Hn.maxBitrate>0&&Hn.maxBitrate<=100&&(Hn.maxBitrate*=1e3),Hn.Fo=null!==(mn=hr("gamepadtest"))&&void 0!==mn?mn:Hn.Fo;const As=vr.get("resolution");if(As){const Sa=As.toLowerCase().split("x");if(2==Sa.length){const ya=parseInt(Sa[0]),bl=parseInt(Sa[1]);ya&&bl?(Hn.To=ya,Hn.Mo=bl):l.Log.e("{a112b01}","{c87835d}",As)}else l.Log.e("{a112b01}","{c87835d}",As)}Hn.fps=null!==(kn=qr("fps"))&&void 0!==kn?kn:Hn.fps,Hn.Po=null!==(yn=hr("gamepadraf"))&&void 0!==yn?yn:Hn.Po,Hn.gamepadPollInterval=null!==(Qn=qr("gamepadpoll"))&&void 0!==Qn?Qn:Hn.gamepadPollInterval,Hn.Do=null!==(li=hr("advancedgestures"))&&void 0!==li?li:Hn.Do,Hn.Ro=null!==(wi=hr("forcetouchdevice"))&&void 0!==wi?wi:Hn.Ro;let ol=hr("touch");void 0!==ol&&(Hn.appLaunchMode=ol?2:0,Hn.Ro=ol),Hn.xo=null!==(mi=hr("storetouch"))&&void 0!==mi?mi:Hn.xo,Hn.Oo=null!==(Bi=hr("storetouchgesture"))&&void 0!==Bi?Bi:Hn.Oo,Hn.No=null!==(qi=hr("touchwarp"))&&void 0!==qi?qi:Hn.No,Hn.Bo=null!==(sr=hr("latency"))&&void 0!==sr?sr:Hn.Bo,Hn.deviceOs=ba("deviceos",Hn.deviceOs),Hn.deviceType=ba("devicetype",Hn.deviceType),Hn.clientStreamer=ba("clientstreamer",Hn.clientStreamer),Hn.clientType=ba("clienttype",Hn.clientType),Hn.clientPlatformName=ba("clientplatformname",Hn.clientPlatformName),Hn.clientId=ba("clientid",Hn.clientId);const cl=vr.get("applaunchmode");if(null!==cl&&(Hn.appLaunchMode=ds(cl)),Hn.Lo=null!==(Ar=hr("rsdmm"))&&void 0!==Ar?Ar:Hn.Lo,Hn.Uo=null!==(Vr=hr("rsdmmtoggle"))&&void 0!==Vr?Vr:Hn.Uo,null===(Br=hr("ioswars"))||void 0===Br||Br||(Hn.Ho=!1,Hn.Vo=!1,Hn.Go=!1,Hn.Wo=!1,Hn._o=!1),Hn.Ho=null!==(Xo=hr("audioreset"))&&void 0!==Xo?Xo:Hn.Ho,Hn.Go=null!==(Do=hr("sourcereset"))&&void 0!==Do?Do:Hn.Go,Hn.Vo=null!==(Lo=hr("autoplaychange"))&&void 0!==Lo?Lo:Hn.Vo,Hn.bitsPerPixel=null!==(ir=so("bitsperpixel"))&&void 0!==ir?ir:Hn.bitsPerPixel,Hn.bitsPerPixel1440p=null!==(wr=so("bitsperpixel1440p"))&&void 0!==wr?wr:Hn.bitsPerPixel1440p,Hn.Yo=null!==(_s=hr("1440p"))&&void 0!==_s?_s:Hn.Yo,Hn.stutterIndicator=null!==(Ta=hr("stutter"))&&void 0!==Ta?Ta:Hn.stutterIndicator,vr.has("meta")){Hn.Xo={};for(const Sa of vr.getAll("meta")){const ya=Sa.split("~");2===ya.length&&(Hn.Xo[ya[0]]=ya[1])}}Hn.allowHaptics=null!==(ls=hr("haptics"))&&void 0!==ls?ls:Hn.allowHaptics,Hn.enableAv1Support=null!==(zs=hr("av1"))&&void 0!==zs?zs:Hn.enableAv1Support,Hn.enableH265Support=null!==(ia=hr("h265"))&&void 0!==ia?ia:Hn.enableH265Support,Hn.codecList=null!==(ga=Cs("codeclist"))&&void 0!==ga?ga:Hn.codecList,Hn.isInternalUser=null!==(nl=hr("internaluser"))&&void 0!==nl?nl:Hn.isInternalUser,Hn.hdr=null!==(ua=hr("hdr"))&&void 0!==ua?ua:Hn.hdr,Hn.hdr10gParams=null!==(Wl=vr.get("hdr10gparams"))&&void 0!==Wl?Wl:Hn.hdr10gParams,Hn.jo=null!==(Xl=hr("sdr10"))&&void 0!==Xl?Xl:Hn.jo,Hn.qo=null!==(xs=hr("hotkeys"))&&void 0!==xs?xs:Hn.qo,Hn.Jo=null!==(qa=hr("forcehotkeys"))&&void 0!==qa?qa:Hn.Jo,Hn.synthesizeGamepadHid=null!==(ll=hr("synthesizegamepadhid"))&&void 0!==ll?ll:Hn.synthesizeGamepadHid,Hn.Zo=null!==(dl=hr("synthesizedds4disabled"))&&void 0!==dl?dl:Hn.Zo,Hn.tr=null!==(pl=hr("synthesizedds5disabled"))&&void 0!==pl?pl:Hn.tr,Hn.ir=null!==(Ol=hr("synthesizedds4fromds5disabled"))&&void 0!==Ol?Ol:Hn.ir,Hn.sr=null!==(ml=hr("synthesizedds5fromds4disabled"))&&void 0!==ml?ml:Hn.sr,Hn.er=null!==(El=hr("synthesizedds4fromgenericenabled"))&&void 0!==El?El:Hn.er,Hn.nr=null!==(vc=hr("synthesizedds5fromgenericenabled"))&&void 0!==vc?vc:Hn.nr,Hn.hr=null!==(Zl=hr("synthesizedds4allgamesenabled"))&&void 0!==Zl?Zl:Hn.hr,Hn.rr=null!==(bc=hr("synthesizedds5allgamesenabled"))&&void 0!==bc?bc:Hn.rr,Hn.ar=null!==(_c=hr("forceserverds4"))&&void 0!==_c?_c:Hn.ar,Hn.dr=null!==(Jl=hr("forceserverds5"))&&void 0!==Jl?Jl:Hn.dr,Hn.cursor=null!==(xl=vr.get("cursor"))&&void 0!==xl?xl:Hn.cursor,Hn.pointerLockEscape=null!==(ic=hr("pointerlockescape"))&&void 0!==ic?ic:Hn.pointerLockEscape,Hn.enableComputePressure=null!==(vt=hr("computepressure"))&&void 0!==vt?vt:Hn.enableComputePressure,Hn.cr=null!==(en=hr("disableworkerws"))&&void 0!==en?en:Hn.cr,Hn.ko.useTelemetryV2=null!==(Ee=hr("usetelemetryv2"))&&void 0!==Ee?Ee:Hn.ko.useTelemetryV2,Hn.$o=null!==(kt=hr("rirecorder"))&&void 0!==kt?kt:Hn.$o,Hn.zo=null!==(Qt=vr.get("turn"))&&void 0!==Qt?Qt:Hn.zo,Hn.iceTransportPolicy=null!==(Zn=vr.get("icetransportpolicy"))&&void 0!==Zn?Zn:Hn.iceTransportPolicy}qn(x);for(const Vi of Ba)Vi()}function ra(){const x=Xn();if(x){const h=x.destination.maxChannelCount;return x.close(),l.Log.i("{d988e7f}","{fa78e0a}",h),h}return l.Log.w("{d988e7f}","{d018fac}"),2}function $o(x){return x[0]<x[1]?[x[1],x[0]]:x}function rs(x,h,b,k,ee){const he=!!(1&b),we=!!(2&b),ze=!!(4&b);if((ze||8&b)&&(k=3840,ee=2160),h&&h.length>0){[k,ee]=$o([k,ee]),we&&k>=1366&&0===x&&(k=1600,ee=1200);const pt=k/ee,wt=k*ee;{const an=h.filter(zt=>zt.frameRate<120);an.length&&(h=an)}return h.sort((an,zt)=>{const mn=an.resolution,kn=zt.resolution,yn=Math.abs(mn.width/mn.height-pt)-Math.abs(kn.width/kn.height-pt);if(Math.abs(yn)>.05)return yn;const li=(1===x?1:-1)*(an.frameRate-zt.frameRate),wi=mn.width*mn.height,mi=kn.width*kn.height,Bi=wi-mi;return wi<=wt?mi<=wt?an.frameRate!==zt.frameRate?li:(0===x?-1:1)*Bi:-1:mi<=wt?1:Bi||li}),h[0]}{let pt={resolution:{width:1280,height:720},frameRate:60};if(he){let[wt,$t]=$o([k,ee]);wt/$t>2&&(pt.resolution={width:1376,height:640})}else if(we)if(0!=x)pt.resolution={width:1024,height:768};else{let[wt,$t]=$o([k,ee]);pt.resolution=wt<=1024?{width:1024,height:768}:wt<1366?{width:1112,height:834}:{width:1600,height:1200}}else{const wt=[[1920,1200],[1920,1080],[1280,1024],[1600,1200]];ze&&wt.unshift([3840,2160]);let $t=[k,ee];$t=function(an,zt){if(0==zt.length)return an;class mn{constructor(mi,Bi){this.w=mi,this.lr=Bi,this.a=mi/Bi}clip(mi){return Math.abs(mi.a-this.a)<.05?mi:mi.a>this.a?new mn(Math.floor(mi.w*(this.a/mi.a)),mi.lr):new mn(mi.w,Math.floor(mi.lr*(mi.a/this.a)))}ur(){return[this.w,this.lr]}}const kn=zt.map(wi=>new mn(wi[0],wi[1])),yn=new mn(an[0],an[1]);let Qn=kn[0];for(let wi=1;wi<kn.length;wi++){let mi=kn[wi];Math.abs(yn.a-mi.a)<Math.abs(yn.a-Qn.a)&&(Qn=mi)}const li=Qn.clip(yn);return li.w>Qn.w?Qn.ur():li.ur()}($t,0==x?wt:[[1280,800],[1280,720],[1280,1024],[1024,768]]),pt.resolution={width:$t[0],height:$t[1]}}return pt}}function oa(x){var h;let b=0;return fn(x)&&(b|=1),((k=x)?k.os===l.PlatformOS.IPADOS:/^(?!.*chrome).*safari/i.test(navigator.userAgent)&&!fn()&&Pt())&&(b|=2),!(null===(h=window.webapis)||void 0===h)&&h.productinfo&&window.webapis.productinfo.isUdPanelSupported()&&(b|=4),window.lge_webrtc_hevc_support&&(b|=8),b;var k}function Yo(){return getComputedStyle(document.documentElement)?(getComputedStyle(document.documentElement).getPropertyValue("--sat")||(document.documentElement.style.setProperty("--sat","env(safe-area-inset-top)"),document.documentElement.style.setProperty("--sar","env(safe-area-inset-right)"),document.documentElement.style.setProperty("--sab","env(safe-area-inset-bottom)"),document.documentElement.style.setProperty("--sal","env(safe-area-inset-left)")),{top:parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sat")),left:parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sal")),bottom:parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sab")),right:parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sar"))}):{top:0,left:0,bottom:0,right:0}}function Bs(x,h,b){return x<h?h:x>b?b:x}function Va(x){let h=Yo();h.top=Math.max(h.top,21),h.bottom=Bs(h.bottom,0,10);let b={x:x.clientX,y:x.clientY},k=.5;if(h.top>0&&x.clientY-x.radiusY<h.top){const ee=x.clientY-Math.min(x.radiusY,21);let he=(h.top-ee)/x.radiusY;he=Bs(he,0,1),k-=he*he*.5}else if(h.bottom>0&&x.clientY+x.radiusY>window.innerHeight-h.bottom){let ee=(x.clientY+Math.min(x.radiusY,10)-(window.innerHeight-h.bottom))/x.radiusY;ee=Bs(ee,0,1),k+=ee*ee*.5}return b.y=Bs(b.y-x.radiusY+2*k*x.radiusY,0,window.innerHeight),b}function La(x,h){let b=x;if(!h.Pn)if(Hn.ko.offlineErrorsStreaming&&Hn.ko.offlineErrorsStreaming.includes(Ae(x)))b=15868418;else if(Hn.ko.offlineErrorsSessionSetup&&Hn.ko.offlineErrorsSessionSetup.includes(Ae(x)))b=15868417;else switch(x){case 3237093906:case 3237093899:b=15868418;break;case 3237089282:b=15868417}return b!==x&&l.Log.i("{d988e7f}","{b84d4c8}",Ae(x),Ae(b)),b}function qs(x,h){let b=x;if(Hn.ko.sleepErrorsStreaming&&Hn.ko.sleepErrorsStreaming.includes(Ae(x)))b=15867908;else if(Hn.ko.sleepErrorsSessionSetup&&Hn.ko.sleepErrorsSessionSetup.includes(Ae(x)))b=15867909;else switch(x){case 3237093906:(yt(h)||Lt(h))&&(b=15867908);break;case 3237094159:b=15867908;break;case 3237093701:case 3237093654:b=15867909}return b!==x&&l.Log.i("{d988e7f}","{49e2182}",Ae(x),Ae(b)),b}function ks(x,h){let b=!1;switch(x){case 3237093896:case 3237093897:case 3237093898:case 3237093906:case 3237093899:case 3237093901:case 15868418:case 3237094159:b=!0;break;case 15867908:yt(h)&&(b=!0)}return b}function ea(x,h){if(h)return!0;switch(x){case 15868706:case 15868714:case 15868742:case 15868744:case 15867910:return!0;default:return!1}}function ts(x,h){const b=x*h;return b>=2764800&&b<4953600}function $a(x,h){return x*h>=4953600}function va(x){switch(x){case"H264":return"H264";case"H265":return"HEVC";case"AV1":return"AV1";default:return"UNKNOWN"}}function Mn(x){var h;const b=On(x)||fi(x)||Ji(x)||bt(x)||yt(x);return null!==(h=Hn.ko.enableCpm)&&void 0!==h?h:b}function Tn(x){const h=Hn.ko.disableUnadjustedMovementForAppIds;return h&&-1!==h.indexOf(x)?(l.Log.i("{d988e7f}","{265cfdc}",x),!1):Hn.unadjustedMovement}function tn(x){return void 0!==x?x?"TRUE":"FALSE":"UNDEFINED"}function In(x){return x?"MANUAL":"NONE"}function Ai(x){return`${x.width.toFixed()}x${x.height.toFixed()}`}function So(){return{width:screen.width,height:screen.height}}function Rn(x,h,b){try{const k=document.createElement("a");k.style.display="none";const ee=new Blob(x,{type:b}),he=URL.createObjectURL(ee);return k.href=he,k.download=h,document.body.appendChild(k),k.click(),URL.revokeObjectURL(he),document.body.removeChild(k),!0}catch(k){return l.Log.e("{d988e7f}","{8d57ba9}",k),!1}}function Xn(x){const h=window.AudioContext||window.webkitAudioContext||void 0;if(h){let b;return b=x?new h({sampleRate:x}):new h,b}l.Log.w("{d988e7f}","{b74c037}")}function ae(){var x;return!(null===(x=globalThis.PointerEvent)||void 0===x||!x.prototype)}function st(x,h,b){return Ct.apply(this,arguments)}function Ct(){return Ct=n(function*(x,h,b){var k;const ee=new RTCPeerConnection;try{yield ee.setRemoteDescription({type:"offer",sdp:h}).catch(pt=>{throw new Error("Audio munging setRemoteDescription failed. "+pt)});const he=yield ee.createAnswer();yield ee.setLocalDescription({type:"answer",sdp:null===(k=he.sdp)||void 0===k?void 0:k.replace("opus/48000/2","multiopus/48000/"+x).replace("useinbandfec=1",b)}).catch(pt=>{throw new Error("Audio munging setLocalDescription failed. "+pt)});const we=ee.getReceivers()[0];if(!we.getParameters)return l.Log.w("{d988e7f}","{4be0bf6}"),2;const{codecs:ze}=we.getParameters();if(1!==ze.length||"audio/multiopus"!==ze[0].mimeType||ze[0].channels!==x)throw new Error("Audio munging failed "+ze[0]);return l.Log.i("{d988e7f}","{8919816}",x,ze[0]),x}catch(he){return l.Log.e("{d988e7f}","{4984c00}",x,he),2}finally{ee.close()}}),Ct.apply(this,arguments)}function $n(x){if(!x)return 8;switch(x?.bitDepth){case l.BitDepth.BIT_DEPTH_10:return 10;case l.BitDepth.BIT_DEPTH_8:return 8;default:return l.Log.w("{d988e7f}","{6f291f9}",x.bitDepth),8}}function Gi(x){switch(x){case 1e3:return 3237101567;case 1001:return 3237101566;case 1002:return 3237101565;case 1003:return 3237101564;case 1005:return 3237101562;case 1006:return 3237093890;case 1007:return 3237101560;case 1008:return 3237101559;case 1009:return 3237101558;case 1010:return 3237101557;case 1011:return 3237101556;case 1012:return 3237101555;case 1013:return 3237101554;case 1014:return 3237101553;case 1015:return 3237101552;case 3e3:return 3237101551;case 3003:return 3237101550;case 3008:return 3237101549}return x>=4100&&x<=4999?x-4e3+3237097472:3237093890}function Sr(x,h){return new br(x,void 0,Hn.ko.connectivityCheckTimeout,!(!((3237093888^h)>>8)||3237089282===h)).run()}function Wr(x){return x.getTransceivers().filter(h=>{var b;return"video"===(null===(b=h.receiver.track)||void 0===b?void 0:b.kind)&&("recvonly"===h.direction||"sendrecv"===h.direction)})}function ao(x,h=!1){let b=h?Va(x):{x:x.clientX,y:x.clientY};return{identifier:x.identifier,clientX:b.x,clientY:b.y,deltaX:0,deltaY:0}}class Ir{constructor(h,b,k,ee,he){this.target=h,this.videoAddEventListener=b,this.videoRemoveEventListener=k,this.Ar=ee,this.vr=he,this.pr=10,this.mr=[],this.gr=0,this.wr=0,this.Sr=0,this.br=we=>{let ze=!1;const pt=we.changedTouches,wt=this.vr.kr(we.timeStamp);for(let $t=0;$t<pt.length;$t++){const an=pt[$t];an.target===this.target&&(ze=!0,Vo.getInstance().wo(),0===this.mr.length?(this.Sr=1,this.gr=window.setTimeout(()=>{this.gr=0,1===this.wr&&(this.Sr=2,Hn.Do&&this.Ar.yr(this.target,wt,ao(an)))},500)):1!==this.Sr&&(Hn.Do?4!==this.Sr&&2!==this.Sr||this.Ar.Ir(this.target,we.timeStamp,ao(an),2===this.Sr):6===this.Sr&&Hn.Do&&this.Ar.Cr(this.target,wt),this.Sr=0),this.mr.push(ao(an)),this.mr.length>this.wr&&(this.wr=this.mr.length))}this.Ar.Er()&&ze&&we.preventDefault()},this.Tr=we=>{let ze=!1;for(let an of this.mr)an.deltaX=0,an.deltaY=0;const pt=we.changedTouches,wt=this.vr.kr(we.timeStamp);let $t=[];for(let an=0;an<pt.length;an++){const zt=pt[an],mn=this.mr.findIndex(kn=>kn.identifier==zt.identifier);if(-1!=mn){ze=!0;const kn=this.mr[mn],yn=zt.clientX-kn.clientX,Qn=zt.clientY-kn.clientY;let li=!1;if(0!==this.gr?(Math.abs(yn)>this.pr||Math.abs(Qn)>this.pr)&&(window.clearTimeout(this.gr),this.gr=0,li=!0):li=!0,li){const wi={identifier:zt.identifier,clientX:zt.clientX,clientY:zt.clientY,deltaX:yn,deltaY:Qn};$t.push(mn),this.mr[mn]=wi}}}$t.length>0&&0===this.gr&&0!==this.Sr&&(1===this.mr.length?(1===this.Sr?this.Sr=3:2===this.Sr&&(this.Sr=4),Hn.Do&&this.Ar.Mr(this.target,wt,this.mr[0])):2===this.mr.length?5===this.Sr?Hn.Do&&this.Ar.scroll(this.target,wt,this.mr):6===this.Sr?Hn.Do&&this.Ar.Pr(this.target,wt,this.mr):1===this.Sr&&(this.mr[0].deltaY*this.mr[1].deltaY>0&&(Math.sign(this.mr[0].deltaX)===Math.sign(this.mr[1].deltaX)||Math.abs(this.mr[0].deltaX)<this.pr&&Math.abs(this.mr[1].deltaX)<this.pr)?(this.Sr=5,Hn.Do&&this.Ar.scroll(this.target,wt,this.mr)):(this.Sr=6,Hn.Do&&this.Ar.Pr(this.target,wt,this.mr))):this.Sr=0),this.Ar.Er()&&ze&&we.preventDefault()},this.Dr=we=>{this.Rr(we,!1)},this.Nr=we=>{this.Rr(we,!0)}}static isSupported(){return Hn.Ro||jt()}Rr(h,b){let k=!1;const ee=h.changedTouches,he=this.vr.kr(h.timeStamp);for(let we=0;we<ee.length;we++){const ze=ee[we],pt=this.mr.findIndex(wt=>wt.identifier==ze.identifier);-1!=pt&&(k=!0,Vo.getInstance().wo(),this.mr.splice(pt,1),0===this.mr.length?(0!==this.gr?(window.clearTimeout(this.gr),this.gr=0,b&&this.Ar.Or(this.target,he,ao(ze,!0),this.wr)):Hn.Do&&(4!==this.Sr&&2!==this.Sr||this.Ar.Ir(this.target,h.timeStamp,ao(ze),2===this.Sr)),this.wr=0,this.Sr=0):5===this.Sr?this.Sr=0:6===this.Sr&&(Hn.Do&&this.Ar.Cr(this.target,he),this.Sr=0))}this.Ar.Er()&&k&&h.preventDefault()}start(){const h={passive:!Hn.Do};this.videoAddEventListener("touchstart",this.br,h),this.videoAddEventListener("touchmove",this.Tr,h),this.videoAddEventListener("touchcancel",this.Dr,h),this.videoAddEventListener("touchend",this.Nr,h)}stop(){if(this.videoRemoveEventListener("touchstart",this.br),this.videoRemoveEventListener("touchmove",this.Tr),this.videoRemoveEventListener("touchcancel",this.Dr),this.videoRemoveEventListener("touchend",this.Nr),this.mr=[],0!==this.gr&&(window.clearTimeout(this.gr),this.gr=0),this.wr=0,Hn.Do)switch(this.Sr){case 6:this.Ar.Cr(this.target,performance.now());break;case 2:case 4:this.Ar.Ir(this.target,performance.now())}this.Sr=0}}const Cr=65535;class Po{constructor(h,b,k){this.clientX=0,this.clientY=0,this.radiusX=0,this.radiusY=0,this.Br=!1,this.identifier=h.identifier,this.Fr=b,this.Lr=k,this.Ur(h),Hn.No&&navigator.standalone?this.Gr():this.Br=!1}update(h){this.Ur(h),this.Br&&this.Gr()}Ur(h){this.clientX=h.pageX-this.Lr.Hr,this.clientY=h.pageY-this.Lr.vertical,this.radiusX=h.radiusX,this.radiusY=h.radiusY}Gr(){const h=Va(this);this.Br=Math.abs(h.y-this.clientY)>.01,this.clientX=h.x,this.clientY=h.y}}class Ki{constructor(h,b,k,ee,he){this.Fr=b,this.id=h.identifier,this.touchType=k,this.Vr=h.pageX,this.Wr=h.pageY,this._r=h.radiusX,this.qr=h.radiusY,this.$r=ee,this.captureTs=he}}class el{constructor(h,b,k,ee,he,we,ze){this.target=h,this.videoAddEventListener=b,this.videoRemoveEventListener=k,this.zr=ee,this.Ar=he,this.vr=ze,this.Kr=0,this.Qr=0,this.Lr={Hr:1,vertical:1},this.Yr=new Map,this.Xr=new Set,this.jr=0,this.Jr=[],this.Zr=0,this.ta=!0,this.br=pt=>{const wt=performance.now(),$t=this.vr.kr(pt.timeStamp);let an=!1;this.Ar.ia(!1);const zt=pt.changedTouches;let mn=[];for(let kn=0;kn<zt.length;kn++){const yn=zt[kn];if(this.sa(yn)){an=!0,Vo.getInstance().wo();let Qn=this.ea(yn);mn.push(Qn),this.xo(yn,Qn,1,wt,pt)}}this.na(mn,1,$t),Hn.xo&&Hn.Oo&&8==this.Yr.size&&this.ta&&(this.ha(),this.oa()),this.Ar.Er()&&an&&pt.preventDefault()},this.Tr=pt=>{const wt=performance.now(),$t=this.vr.kr(pt.timeStamp);let an=!1;const zt=pt.changedTouches;let mn=[];for(let kn=0;kn<zt.length;kn++){const yn=zt[kn];if(this.sa(yn)){let Qn=this.Yr.get(yn.identifier);Qn&&(an=!0,Qn.update(yn),mn.push(Qn),this.xo(yn,Qn,4,wt,pt))}}this.na(mn,4,$t),this.Ar.Er()&&an&&pt.preventDefault()},this.Dr=pt=>{this.ra(pt,8)},this.Nr=pt=>{this.ra(pt,2)},this.ha=this.aa.bind(this),this.oa=this.da.bind(this),this.ca=Lt(we)}static isSupported(){return Hn.Ro||jt()}xo(h,b,k,ee,he){if(!Hn.xo)return;let we=new Ki(h,b.Fr,k,ee,he.timeStamp);this.Jr.push(we)}aa(){const h=this.Jr.length;if(!h)return;let b=this.Jr[h-1].$r-3e4,k=-1;for(let ee=0;ee<h&&this.Jr[ee].$r<b;ee++)k=ee;this.Jr.splice(0,k+1)}da(){for(let h of this.Jr)l.Log.d("{ec05004}","{3c6a946}",h.captureTs.toFixed(2),h.$r.toFixed(2),h.id,h.Fr,h.touchType,h.Vr.toFixed(2),h.Wr.toFixed(2),h._r.toFixed(0),h.qr.toFixed(0));this.Jr=[]}ea(h){let b=0;for(;this.Xr.has(b);)b++;let k=new Po(h,b,this.Lr);return this.Yr.set(h.identifier,k),this.Xr.add(b),k}la(h){let b=this.Yr.get(h);b&&(this.Yr.delete(h),this.Xr.delete(b.Fr))}sa(h){return h.target===this.target}na(h,b,k){var ee;let he=0;for(let we of h){if(he>40)return void l.Log.e("{ec05004}","{2faaf33}",h.length-he);const ze=null===(ee=this.Yr.get(we.identifier))||void 0===ee?void 0:ee.Fr;if(void 0===ze){l.Log.e("{ec05004}","{960ee4f}",we.identifier);continue}let pt=this.Kr*we.clientX,wt=this.Qr*we.clientY;const $t=this.Kr*we.radiusX,an=this.Qr*we.radiusY;if(pt<0-$t||pt>Cr+$t||wt<0-an||wt>Cr+an)switch(b){case 2:case 8:break;default:continue}if(pt=Math.min(Math.max(pt,0),Cr),wt=Math.min(Math.max(wt,0),Cr),!this.zr.ua(he,ze,b,pt,wt,we.radiusX,we.radiusY,k)){this.jr+=h.length-he;break}he++}0!=he&&(he>h.length?l.Log.w("{ec05004}","{4e60a66}",he,h.length):this.zr.Aa(he)||l.Log.e("{ec05004}","{56a8404}"))}ra(h,b){const k=performance.now(),ee=this.vr.kr(h.timeStamp);let he=!1,we=[];const ze=h.changedTouches;let pt=[];for(let wt=0;wt<ze.length;wt++){const $t=ze[wt];if(this.sa($t)){let an=this.Yr.get($t.identifier);we.push($t.identifier),an&&(he=!0,Vo.getInstance().wo(),an.update($t),pt.push(an),this.xo($t,an,b,k,h))}}this.na(pt,b,ee);for(const wt of we)this.la(wt);Hn.xo&&(this.ta=0==this.Yr.size),this.Ar.Er()&&he&&h.preventDefault()}start(){this.jr=0;const h={passive:!1};this.videoAddEventListener("touchstart",this.br,h),this.videoAddEventListener("touchmove",this.Tr,h),this.videoAddEventListener("touchcancel",this.Dr,h),this.videoAddEventListener("touchend",this.Nr,h),Hn.xo&&(l.Log.d("{ec05004}","{72764d2}",performance.now()),this.Jr=[],this.Zr=window.setInterval(this.ha,6e4)),this.Ar.ia(!1)}stop(){Hn.xo&&(this.Zr&&clearTimeout(this.Zr),this.ha(),this.oa()),this.Yr.size&&(this.na(Array.from(this.Yr.values()),8,performance.now()),this.Yr.clear(),this.Xr.clear()),this.jr&&l.Log.w("{ec05004}","{10858ae}",this.jr);const h={passive:!1};this.videoRemoveEventListener("touchstart",this.br,h),this.videoRemoveEventListener("touchmove",this.Tr,h),this.videoRemoveEventListener("touchcancel",this.Dr,h),this.videoRemoveEventListener("touchend",this.Nr,h)}va(h,b,k){this.Lr=b,this.Kr=65535/h.fa,this.Qr=65535/h.pa,this.Kr/=k,this.Qr/=k}}const ca=new Map([["Escape",27],["Digit0",48],["Digit1",49],["Digit2",50],["Digit3",51],["Digit4",52],["Digit5",53],["Digit6",54],["Digit7",55],["Digit8",56],["Digit9",57],["Minus",189],["Equal",187],["Backspace",8],["Tab",9],["KeyQ",81],["KeyW",87],["KeyE",69],["KeyR",82],["KeyT",84],["KeyY",89],["KeyU",85],["KeyI",73],["KeyO",79],["KeyP",80],["BracketLeft",219],["BracketRight",221],["Enter",13],["ControlLeft",162],["KeyA",65],["KeyS",83],["KeyD",68],["KeyF",70],["KeyG",71],["KeyH",72],["KeyJ",74],["KeyK",75],["KeyL",76],["Semicolon",186],["Quote",222],["Backquote",192],["ShiftLeft",160],["Backslash",220],["KeyZ",90],["KeyX",88],["KeyC",67],["KeyV",86],["KeyB",66],["KeyN",78],["KeyM",77],["Comma",188],["Period",190],["Slash",191],["ShiftRight",161],["NumpadMultiply",106],["AltLeft",164],["Space",32],["CapsLock",20],["F1",112],["F2",113],["F3",114],["F4",115],["F5",116],["F6",117],["F7",118],["F8",119],["F9",120],["F10",121],["Pause",19],["ScrollLock",145],["Numpad7",103],["Numpad8",104],["Numpad9",105],["NumpadSubtract",109],["Numpad4",100],["Numpad5",101],["Numpad6",102],["NumpadAdd",107],["Numpad1",97],["Numpad2",98],["Numpad3",99],["Numpad0",96],["NumpadDecimal",110],["PrintScreen",42],["IntlBackslash",226],["F11",122],["F12",123],["NumpadEqual",187],["F13",124],["F14",125],["F15",126],["F16",127],["F17",128],["F18",129],["F19",130],["F20",131],["F21",132],["F22",133],["F23",134],["F24",135],["KanaMode",233],["Lang2",25],["Lang1",21],["IntlRo",194],["Convert",234],["NonConvert",235],["IntlYen",193],["NumpadComma",188],["NumpadEnter",13],["ControlRight",163],["NumpadDivide",111],["PrintScreen",42],["AltRight",165],["NumLock",144],["Pause",19],["Home",36],["ArrowUp",38],["PageUp",33],["ArrowLeft",37],["ArrowRight",39],["End",35],["ArrowDown",40],["PageDown",34],["Insert",45],["Delete",46],["MetaLeft",91],["OSLeft",91],["MetaRight",92],["OSRight",92],["Lang2",25],["Lang1",21],["NumpadClear",12],["NumpadClearEntry",12]]),Zo=new Map([["HanjaMode",25],["HangulMode",21]]),Ha=new Map([["1",{vkCode:49,shift:!1}],["2",{vkCode:50,shift:!1}],["3",{vkCode:51,shift:!1}],["4",{vkCode:52,shift:!1}],["5",{vkCode:53,shift:!1}],["6",{vkCode:54,shift:!1}],["7",{vkCode:55,shift:!1}],["8",{vkCode:56,shift:!1}],["9",{vkCode:57,shift:!1}],["0",{vkCode:48,shift:!1}],["!",{vkCode:49,shift:!0}],["@",{vkCode:50,shift:!0}],["#",{vkCode:51,shift:!0}],["$",{vkCode:52,shift:!0}],["%",{vkCode:53,shift:!0}],["^",{vkCode:54,shift:!0}],["&",{vkCode:55,shift:!0}],["*",{vkCode:56,shift:!0}],["(",{vkCode:57,shift:!0}],[")",{vkCode:48,shift:!0}],["-",{vkCode:189,shift:!1}],["_",{vkCode:189,shift:!0}],["=",{vkCode:187,shift:!1}],["+",{vkCode:187,shift:!0}],[",",{vkCode:188,shift:!1}],["<",{vkCode:188,shift:!0}],[".",{vkCode:190,shift:!1}],[">",{vkCode:190,shift:!0}],[";",{vkCode:186,shift:!1}],[":",{vkCode:186,shift:!0}],["/",{vkCode:191,shift:!1}],["?",{vkCode:191,shift:!0}],["`",{vkCode:192,shift:!1}],["~",{vkCode:192,shift:!0}],["[",{vkCode:219,shift:!1}],["{",{vkCode:219,shift:!0}],["\\",{vkCode:220,shift:!1}],["|",{vkCode:220,shift:!0}],["]",{vkCode:221,shift:!1}],["}",{vkCode:221,shift:!0}],["'",{vkCode:222,shift:!1}],['"',{vkCode:222,shift:!0}],[" ",{vkCode:32,shift:!1}],["A",{vkCode:65,shift:!0}],["B",{vkCode:66,shift:!0}],["C",{vkCode:67,shift:!0}],["D",{vkCode:68,shift:!0}],["E",{vkCode:69,shift:!0}],["F",{vkCode:70,shift:!0}],["G",{vkCode:71,shift:!0}],["H",{vkCode:72,shift:!0}],["I",{vkCode:73,shift:!0}],["J",{vkCode:74,shift:!0}],["K",{vkCode:75,shift:!0}],["L",{vkCode:76,shift:!0}],["M",{vkCode:77,shift:!0}],["N",{vkCode:78,shift:!0}],["O",{vkCode:79,shift:!0}],["P",{vkCode:80,shift:!0}],["Q",{vkCode:81,shift:!0}],["R",{vkCode:82,shift:!0}],["S",{vkCode:83,shift:!0}],["T",{vkCode:84,shift:!0}],["U",{vkCode:85,shift:!0}],["V",{vkCode:86,shift:!0}],["W",{vkCode:87,shift:!0}],["X",{vkCode:88,shift:!0}],["Y",{vkCode:89,shift:!0}],["Z",{vkCode:90,shift:!0}],["a",{vkCode:65,shift:!1}],["b",{vkCode:66,shift:!1}],["c",{vkCode:67,shift:!1}],["d",{vkCode:68,shift:!1}],["e",{vkCode:69,shift:!1}],["f",{vkCode:70,shift:!1}],["g",{vkCode:71,shift:!1}],["h",{vkCode:72,shift:!1}],["i",{vkCode:73,shift:!1}],["j",{vkCode:74,shift:!1}],["k",{vkCode:75,shift:!1}],["l",{vkCode:76,shift:!1}],["m",{vkCode:77,shift:!1}],["n",{vkCode:78,shift:!1}],["o",{vkCode:79,shift:!1}],["p",{vkCode:80,shift:!1}],["q",{vkCode:81,shift:!1}],["r",{vkCode:82,shift:!1}],["s",{vkCode:83,shift:!1}],["t",{vkCode:84,shift:!1}],["u",{vkCode:85,shift:!1}],["v",{vkCode:86,shift:!1}],["w",{vkCode:87,shift:!1}],["x",{vkCode:88,shift:!1}],["y",{vkCode:89,shift:!1}],["z",{vkCode:90,shift:!1}]]);function vo(x,h,b,k,ee=1){const he=4294967295&Math.floor(x*ee),we=Math.floor(x/4294967296*ee);k?(h.setUint32(b,he,!0),h.setUint32(b+4,we,!0)):(h.setUint32(b,we,!1),h.setUint32(b+4,he,!1))}class ta{constructor(h){this.ma=0,this.ga=h}wa(){return this.ga.getUint8(this.ma)}getUint8(){const h=this.wa();return this.ma++,h}Sa(h=!1){return this.ga.getUint16(this.ma,h=null!=h&&h)}getUint16(h=!1){const b=this.Sa(h);return this.ma+=2,b}ba(h=!1){return this.ga.getInt16(this.ma,h=null!=h&&h)}getInt16(h=!1){const b=this.ba(h);return this.ma+=2,b}ka(h=!1){return this.ga.getUint32(this.ma,h=null!=h&&h)}getUint32(h=!1){const b=this.ka(h);return this.ma+=4,b}ya(h=!1){return function(b,k,ee){let he=0,we=0;return ee?(he=b.getUint32(k,!0),we=b.getUint32(k+4,!0)):(we=b.getUint32(k,!1),he=b.getUint32(k+4,!1)),4294967296*we+he}(this.ga,this.ma,h)}Ia(h=!1){const b=this.ya(h);return this.ma+=8,b}reset(){this.ma=0}get Ca(){return this.ma}done(){return this.ma===this.ga.byteLength}left(){return this.ga.byteLength-this.ma}Ea(h){h>=0&&h<=this.ga.byteLength&&(this.ma=h)}Ta(h){this.Ea(this.ma+h)}Ma(h){if(h>this.left())return;const b=new ta(new DataView(this.ga.buffer,this.ga.byteOffset+this.ma,h));return this.Ta(h),b}}class tl{constructor(h){this.Pa=0,this.ga=h,this.Pa=0}get offset(){return this.Pa}reset(){this.Pa=0}Da(h){this.Pa+=h}Ra(){return this.ga.byteLength-this.Pa}Na(h){this.ga.setUint8(this.Pa,h),this.Pa+=1}xa(h,b){this.ga.setUint16(this.Pa,h,b),this.Pa+=2}Oa(h,b){this.ga.setUint32(this.Pa,h,b),this.Pa+=4}Ba(h){this.ga.setInt8(this.Pa,h),this.Pa+=1}Fa(h,b){this.ga.setInt16(this.Pa,h,b),this.Pa+=2}La(h,b){this.ga.setInt32(this.Pa,h,b),this.Pa+=4}Ua(h,b){this.ga.setFloat32(this.Pa,h,b),this.Pa+=4}Ga(h,b){this.ga.setFloat64(this.Pa,h,b),this.Pa+=8}Ha(h,b,k=1){vo(h,this.ga,this.Pa,b,k),this.Pa+=8}}function Ie(x,h,b){var k,ee;let he;if(x.length>h.length+22)he=x;else{let $t="";const an=null!==(ee=null===(k=document.currentScript)||void 0===k?void 0:k.src)&&void 0!==ee?ee:b;if(an){const zt=an.lastIndexOf("/");-1!==zt&&($t+=an.substring(0,zt+1))}$t+=h,he="importScripts('"+$t+"');"}const ze=new Blob([he],{type:"text/javascript"}),pt=URL.createObjectURL(ze),wt=new Worker(pt);return URL.revokeObjectURL(pt),wt}function Ei(x){return Math.floor(1e3*x)}function Ls(x){return x>=6&&x<=9}var Ns;const Ps=1314280009,ja=null===(Ns=document.currentScript)||void 0===Ns?void 0:Ns.src;function Ja(x,h){switch(x){case 3:case 4:return 14;case 8:case 9:case 10:case 5:case 7:return 26;case 12:return 24;case 18:return 2;case 17:return function(b){let k=1;return Ls(b.id)&&(k+=9),k}(h);default:return 0}}class Wa{constructor(h){this.vr=h,this.Va=0,this.buffer=new ArrayBuffer(8388608),this.Wa=new tl(new DataView(this.buffer)),this.initialized=!1,this._a=[],this.vr=h}initialize(h){this.qa(),this.params=h,this.Va=this.vr.$a(),this.initialized=!0,l.Log.d("{5eeca93}","{46ee72b}")}za(h){return h>this.Va?h-this.Va:0}qa(){this.Wa.Oa(Ps),this.Wa.Na(1),this.Wa.Na(0),this.Wa.Fa(0)}Ka(h){this.Wa.Ha(h.recordedTs,!1,1e3),this.Wa.Oa(h.packetId),this.Wa.Oa(h.size)}Qa(h){this.Wa.xa(h.keycode),this.Wa.xa(h.flags),this.Wa.xa(h.scancode),this.Wa.Ha(h.captureTs,!1,1e3)}Ya(h){this.Wa.xa(h.flags),this.Wa.xa(h.xpos),this.Wa.xa(h.ypos),this.Wa.xa(h.data1),this.Wa.xa(h.data2),this.Wa.Oa(h.windowHandle),this.Wa.xa(h.vwheel),this.Wa.xa(h.hwheel),this.Wa.Ha(h.captureTs,!1,1e3)}Xa(h){this.Wa.xa(h.index),this.Wa.xa(h.bitmap),this.Wa.xa(h.buttons),this.Wa.xa(h.trigger);for(let b=0;b<4;b++)this.Wa.Fa(h.axes[b]);this.Wa.Ha(h.captureTs,!1,1e3)}ja(h){this.Wa.Na(h.id),this.Wa.Na(h.control)}Ja(h){for(let b=0;b<4;b++)this.Wa.Na(h.axes[b]);this.Wa.Na(h.ds4Btns[0]),this.Wa.Na(h.ds4Btns[1]),this.Wa.Na(h.ds4Btns[2]),this.Wa.Na(h.triggers[0]),this.Wa.Na(h.triggers[1])}Za(h){this.Wa.Na(h.id),Ls(h.id)&&this.Ja(h.data)}td(h){const b={keycode:0,flags:0,scancode:0,captureTs:0};return b.keycode=h.getUint16(),b.flags=h.getUint16(),b.scancode=h.getUint16(),b.captureTs=this.za(h.Ia()/1e3),b}sd(h){const b={flags:0,xpos:0,ypos:0,data1:0,data2:0,windowHandle:0,vwheel:0,hwheel:0,captureTs:0};return b.data1=h.getUint8(),b.flags=h.getUint8(),b.windowHandle=h.getUint32(),b.captureTs=this.za(h.Ia()/1e3),b}ed(h){const b={flags:0,xpos:0,ypos:0,data1:0,data2:0,windowHandle:0,vwheel:0,hwheel:0,captureTs:0};return b.hwheel=h.getUint16(),b.vwheel=h.getUint16(),b.flags=h.getUint16(),b.windowHandle=h.getUint32(),b.captureTs=this.za(h.Ia()/1e3),b}nd(h,b){const k={flags:0,xpos:0,ypos:0,data1:0,data2:0,windowHandle:0,vwheel:0,hwheel:0,captureTs:0};return k.xpos=h.getUint16(),k.ypos=h.getUint16(),k.flags=h.getUint16(),b&&(k.data1=h.getUint16(),k.data2=h.getUint16()),k.windowHandle=h.getUint32(),k.captureTs=this.za(h.Ia()/1e3),k}hd(h){const b={index:0,bitmap:0,buttons:0,trigger:0,axes:[0,0,0,0],captureTs:0};h.getUint16(!0),b.index=h.getUint16(!0),b.bitmap=h.getUint16(!0),h.getUint16(!0),b.buttons=h.getUint16(!0),b.trigger=h.getUint16(!0);for(let k=0;k<4;k++)b.axes[k]=h.getInt16(!0);return h.getUint16(!0),h.getUint16(!0),h.getUint16(!0),b.captureTs=this.za(h.Ia(!0)/1e3),b}od(h){return{id:h.getUint8(),control:h.getUint8()}}rd(h){let b;const k=h.getUint8();return Ls(k)&&(b={id:k,data:this.ad(h)}),b}ad(h){const b={ds4Btns:[0,0,0],triggers:[0,0],axes:[0,0,0,0]};h.getUint8(),h.getUint8(),h.getUint8();for(let k=0;k<4;k++)b.axes[k]=h.getUint8();return b.ds4Btns[0]=h.getUint8(),b.ds4Btns[1]=h.getUint8(),b.ds4Btns[2]=h.getUint8(),b.triggers[0]=h.getUint8(),b.triggers[1]=h.getUint8(),b}dd(h,b){let k;const ee=h.getUint32(!0);switch(ee){case 3:case 4:k=this.td(h);break;case 8:case 9:k=this.sd(h);break;case 10:k=this.ed(h);break;case 5:case 7:k=this.nd(h,5==ee);break;case 12:k=this.hd(h);break;case 13:h.getUint16();break;case 18:k=this.od(h);break;case 17:k=this.rd(h)}if(void 0!==k)return{header:{recordedTs:b,size:Ja(ee,k),packetId:ee},data:k};l.Log.d("{5eeca93}","{e255bfc}",ee)}ld(h){const b=new ta(h),k=this.za(this.vr.$a());for(;!b.done();){const ee=b.getUint8();switch(ee){case 36:b.Ia();break;case 33:case 34:const he=33==ee?b.getUint16():b.left(),we=b.Ma(he);if(void 0===we)return void l.Log.e("{5eeca93}","{8400b62}",he,b.left());const ze=this.dd(we,k);if(void 0===ze)break;this.ud(ze);break;default:return void l.Log.e("{5eeca93}","{0028fe1}",ee)}}}ud(h){switch(this.Ka(h.header),h.header.packetId){case 4:case 3:this.Qa(h.data);break;case 8:case 9:case 7:case 5:case 10:this.Ya(h.data);break;case 12:this.Xa(h.data);break;case 18:this.ja(h.data);break;case 17:this.Za(h.data)}this._a.push(h)}Ad(h){this.initialized&&this.ld(h)}vd(h){for(const b of h)b.header.recordedTs=Ei(b.header.recordedTs),b.data.captureTs&&(b.data.captureTs=Ei(b.data.captureTs))}fd(){var h,b,k;try{const ee=null!==(b=null===(h=this.params)||void 0===h?void 0:h.fileName)&&void 0!==b?b:"inputrecordfile";Rn([this.buffer.slice(0,this.Wa.offset)],`${ee}.dat`,"application/octet-stream"),null!==(k=this.params)&&void 0!==k&&k.pd&&(this.vd(this._a),Rn([JSON.stringify(this._a)],`${ee}-events.json`,"application/json"))}catch(ee){l.Log.e("{5eeca93}","{45fa32c}",ee)}}}class Ea{constructor(h,b){this.vr=b,this.md=!0,this.gd=h,this.vr=b}wd(h){const b=h.data;b.input?this.gd.Sd(b.input):b.result?l.Log.d("{5eeca93}","{6ab9f7d}",b.result):b.log&&l.Log.d("{59381ac}","{0b0c6f9}",b.log)}bd(h){}stop(){var h;null===(h=this.kd)||void 0===h||h.terminate()}start(){var h;if(!this.playbackBuffer)return;const b={start:{playbackBuffer:this.playbackBuffer,loop:this.md,absStreamBeginTs:performance.timeOrigin+this.vr.yd()}};l.Log.d("{5eeca93}","{8a97b19}"),null===(h=this.kd)||void 0===h||h.postMessage(b)}Id(h){const b=h.getUint32(0),k=h.getInt8(4),ee=h.getInt8(5);return b==Ps&&1==k&&0==ee}initialize(h){if(h.buffer.byteLength<8)return l.Log.e("{5eeca93}","{fbe135e}"),!1;const b=new DataView(h.buffer,0,8);if(!this.Id(b))return l.Log.e("{5eeca93}","{9946103}"),!1;try{this.kd=Ie('class t{constructor(t){this.i=0,this.h=t}o(){return this.h.getUint8(this.i)}getUint8(){const t=this.o();return this.i++,t}u(t=!1){return t=null!=t&&t,this.h.getUint16(this.i,t)}getUint16(t=!1){const e=this.u(t);return this.i+=2,e}l(t=!1){return t=null!=t&&t,this.h.getInt16(this.i,t)}getInt16(t=!1){const e=this.l(t);return this.i+=2,e}m(t=!1){return t=null!=t&&t,this.h.getUint32(this.i,t)}getUint32(t=!1){const e=this.m(t);return this.i+=4,e}T(t=!1){return function(t,e,s){let i=0,r=0;return s?(i=t.getUint32(e,!0),r=t.getUint32(e+4,!0)):(r=t.getUint32(e,!1),i=t.getUint32(e+4,!1)),4294967296*r+i}(this.h,this.i,t)}D(t=!1){const e=this.T(t);return this.i+=8,e}reset(){this.i=0}get U(){return this.i}done(){return this.i===this.h.byteLength}left(){return this.h.byteLength-this.i}I(t){t>=0&&t<=this.h.byteLength&&(this.i=t)}v(t){this.I(this.i+t)}B(e){if(e>this.left())return;const s=new t(new DataView(this.h.buffer,this.h.byteOffset+this.i,e));return this.v(e),s}}const e=self;function s(t){const s={log:t};e.postMessage(s)}let i=new class{constructor(){this.absStreamBeginTs=0,this.H=0}S(t){return this.H+t}M(t){return t>0?this.S(t):0}P(){return performance.timeOrigin+performance.now()-this.absStreamBeginTs}C(t){return{recordedTs:t.D()/1e3,packetId:t.getUint32(),size:t.getUint32()}}G(t){return{keycode:t.getUint16(),flags:t.getUint16(),scancode:t.getUint16(),captureTs:this.M(t.D()/1e3)}}K(t){return{flags:t.getUint16(),xpos:t.getUint16(),ypos:t.getUint16(),data1:t.getUint16(),data2:t.getUint16(),windowHandle:t.getUint32(),vwheel:t.getUint16(),hwheel:t.getUint16(),captureTs:this.M(t.D()/1e3)}}L(t){const e=t.getUint16(),s=t.getUint16(),i=t.getUint16(),r=t.getUint16(),n=[0,0,0,0];for(let e=0;e<4;e++)n[e]=t.getInt16();return{index:e,bitmap:s,buttons:i,trigger:r,axes:n,captureTs:this.M(t.D()/1e3)}}R(t){return{id:t.getUint8(),control:t.getUint8()}}V(t){const e=[0,0,0,0];for(let s=0;s<4;s++)e[s]=t.getUint8();const s=[0,0,0];s[0]=t.getUint8(),s[1]=t.getUint8(),s[2]=t.getUint8();const i=[0,0];return i[0]=t.getUint8(),i[1]=t.getUint8(),{ds4Btns:s,axes:e,triggers:i}}j(t){let e;const s=t.getUint8();return function(t){return t>=6&&t<=9}(s)&&(e={id:s,data:this.V(t)}),e}A(t,e){let s;switch(t){case 3:case 4:s=this.G(e);break;case 8:case 9:case 10:case 5:case 7:s=this.K(e);break;case 12:s=this.L(e);break;case 18:s=this.R(e);break;case 17:s=this.j(e)}return s}F(t){if(t.length>0){const s={input:t};e.postMessage(s)}}async J(t,e){const s=e-this.P();s>0&&await new Promise((t=>setTimeout(t,s))),this.F(t)}async N(e,i=!1){do{this.H=this.P();const i=new t(e);let r=[],n=0;for(;!i.done();){const t=i.B(16);if(void 0===t)return s("{76ef155}16{0da0ef8}"+i.left()),!1;const e=this.C(t),a=i.B(e.size);if(void 0===a)return s("{fbf3a80}"+e.size+"{0da0ef8}"+i.left()),!1;const h=this.A(e.packetId,a);if(!h){s("{20d711f}"+e.packetId);continue}const c=this.S(e.recordedTs);n>0&&c>n&&(await this.J(r,n),r=[]),r.push({header:e,data:h}),n=c}await this.J(r,n)}while(i);return!0}async O(t){if(t.start){const s=t.start;this.absStreamBeginTs=s.absStreamBeginTs;const i={result:await this.N(s.playbackBuffer,s.loop)};e.postMessage(i)}}};e.onmessage=async t=>{i.O(t.data)};',"inputplaybackworker.js",ja),this.kd.onmessage=this.wd.bind(this),this.kd.onerror=this.bd.bind(this)}catch(k){return l.Log.e("{5eeca93}","{cb06694}",k.message),!1}return this.playbackBuffer=new DataView(h.buffer,8,h.buffer.byteLength-8),this.md=h.loop,!0}}const Ks=9+4*(Math.max(38,72)+3),na=65535;class zi extends DataView{constructor(h,b,k,ee){super(h,b,k),this.shift=0,this.setUint8=(he,we)=>super.setUint8(he+this.shift,we),this.setUint16=(he,we,ze)=>super.setUint16(he+this.shift,we,ze),this.setUint32=(he,we,ze)=>super.setUint32(he+this.shift,we,ze),this.setInt8=(he,we)=>super.setInt8(he+this.shift,we),this.setInt16=(he,we,ze)=>super.setInt16(he+this.shift,we,ze),this.setInt32=(he,we,ze)=>super.setInt32(he+this.shift,we,ze),this.setFloat32=(he,we,ze)=>super.setFloat32(he+this.shift,we,ze),this.setFloat64=(he,we,ze)=>super.setFloat64(he+this.shift,we,ze),this.shift=ee??0}}class mr{constructor(h,b){this.Cd=new DataView(new ArrayBuffer(h)),this.Ed=new tl(this.Cd),this.Td=b,this.Md()}get writer(){return this.Ed}get channel(){return this.Td}get Pd(){return this.Ed.offset-9}Md(){this.Ed.reset(),this.Ed.Da(9)}Ra(){return this.Ed.Ra()}data(){return new DataView(this.Cd.buffer,9,this.Pd)}Dd(h){if(h>this.Ra())return;const b=new zi(this.Cd.buffer,this.Ed.offset,h);return this.Ed.Da(h),b}}function lr(x){switch(x){case 3:case 4:case 8:case 9:return 18;case 10:return 22;case 5:case 7:return Ft(5==x);case 12:return 38;case 18:return 10;case 17:return 72;default:return 0}}class je{constructor(h,b,k,ee,he,we,ze,pt,wt,$t){if(this.Rd=0,this.Nd=0,this.buffer=new ArrayBuffer(1150),this.xd=new DataView(this.buffer),this.Od=new mr(Ks,"input_channel_v1"),this.Bd=new ArrayBuffer(658),this.Fd=new DataView(this.Bd),this.Ld=new ArrayBuffer(100),this.Ud=new ArrayBuffer(1150),this.Gd=0,this.Hd=this.Vd,this.Wd=this._d,this.qd=[],this.$d=new Map,this.zd=0,this.Kd=[],this.Qd=!1,this.Yd=(an,zt)=>Math.round(na*(an/zt)),this.vr=pt,this.Xd=h,this.jd=b,this.Jd=he,this.Zd=ee,this.tc=we,this.tc.onmessage=an=>this.onMessage(an),this.sc=wt,this.telemetry=ze,this.ec=k,this.nc=this.hc.bind(this),this.Fd.setUint8(9,34),this.Fd.setUint32(10,24,!0),this.sc&&(this.$d=new Map,this.oc=new mr(Ks+16,"input_channel_partially_reliable"),$t)){this.zd=$t.rc;for(let zt=0;zt<64;zt++){const mn=BigInt(1)<<BigInt(zt);(mn&$t.ac)==mn&&(this.Kd[zt]=!0)}}this.Qd=Hn.$o,this.Qd&&(this.dc=new Wa(this.vr),this.dc.initialize({pd:!0}))}cc(h,b,k){return h.setUint32(b,19,!0),h.setUint8(b+4,k),b+5}lc(h){const b=this.Wd(5);this.cc(b,0,h);try{this.uc(b),l.Log.d("{57a6a4d}","{56c9613}",h.toString(2))}catch(k){l.Log.e("{57a6a4d}","{cbe483c}",k),this.telemetry.Ac(k,"LockKeys state synchronize exception","{57a6a4d}.ts",0,0,!0)}}onMessage(h){const b=new DataView(h.data);if(0===this.Nd){let k=b.getUint16(0,!0);526==k?(this.nc=this.vc.bind(this),this.Nd=b.getUint16(2,!0)):(this.nc=this.hc.bind(this),this.Nd=k),2==this.Nd?this.jd.fc=!0:this.Nd>2&&(this.jd.fc=!0,this.Hd=this.mc,this.Wd=this.gc),l.Log.i("{57a6a4d}","{68c4654}",this.Nd)}else this.nc(b,0)}vc(h,b){let k=h.getUint16(b,!0);if(267===k)this.hc(h,b+2);else{let ee=255&k;switch(ee){case 32:case 33:case 34:case 35:case 36:case 255:this.wc(ee,h,1);break;default:l.Log.w("{57a6a4d}","{aea35b8}",k)}}}wc(h,b,k){34===h?this.Sc(b,k):l.Log.d("{57a6a4d}","{ba4ff6a}",h)}Sc(h,b){let k=h.getUint32(b+0,!0);switch(k){case 267:this.hc(h,b+4);break;case 17:this.bc(h,b+4);break;default:l.Log.w("{57a6a4d}","{25be6a3}",k)}}bc(h,b){let k=h.getUint8(b+0);if(Ls(k)){let ee=k-6,he=h.getUint8(b+3),we=h.getUint8(b+4);if(5!==he||1&~we)l.Log.w("{57a6a4d}","{d8b7bec}",he,we,k);else{const ze=h.getUint8(b+7)<<8,pt=h.getUint8(b+8)<<8;for(const wt of this.qd)wt.kc(ee,ze,pt)}}else l.Log.w("{57a6a4d}","{6135ec1}",k)}hc(h,b){const k=h.getUint16(b+0,!0);if(1==k){const ee=h.getUint16(b+2,!0);if(ee<6)return void l.Log.e("{57a6a4d}","{1527181}",ee);ee>6&&l.Log.w("{57a6a4d}","{78db114}",ee);const he=h.getUint16(b+4,!0),we=h.getUint16(b+6,!0),ze=h.getUint16(b+8,!0);for(const pt of this.qd)pt.yc(he,we,ze)}else 0==k?(h=new DataView(h.buffer,b+2),this.Jd.Ic(h)):l.Log.w("{57a6a4d}","{c7cf6da}",k)}Cc(h,b,k,ee,he){return h.setUint32(b,k,!0),h.setUint8(b+4,ee),h.setUint8(b+5,0),h.setUint32(b+6,0),vo(he,h,b+10,!1,1e3),b+18}Ec(h,b){const k=this.Wd(18);this.Cc(k,0,8,zn(h),b);try{this.uc(k)}catch(ee){l.Log.e("{57a6a4d}","{b258856}",ee),this.telemetry.Ac(ee,"send mousedown exception","{57a6a4d}.ts",0,0,!0)}}Tc(h,b){const k=this.Wd(18);this.Cc(k,0,9,zn(h),b);try{this.uc(k)}catch(ee){l.Log.e("{57a6a4d}","{c1ae1fc}",ee),this.telemetry.Ac(ee,"send mouseup exception","{57a6a4d}.ts",0,0,!0)}}Mc(h,b,k,ee){return h.setUint32(b,10,!0),h.setUint16(b+4,0,!1),h.setUint16(b+6,k,!1),h.setUint16(b+8,0,!1),h.setUint32(b+10,0),vo(ee,h,b+14,!1,1e3),b+22}Pc(h,b){const k=this.Wd(22);var ee;this.Mc(k,0,-(ee=h),b);try{this.uc(k)}catch(ee){l.Log.e("{57a6a4d}","{3d81a57}",ee),this.telemetry.Ac(ee,"send mousewheel exception","{57a6a4d}.ts",0,0,!0)}}Dc(h,b,k,ee=0){const he=this.Wd(Ft(h));this.Rc(he,0,h,b,k,ee);try{this.Nc()&&this.uc(he)}catch(we){l.Log.e("{57a6a4d}","{dba1265}",we),this.telemetry.Ac(we,"send CursorPos exception","{57a6a4d}.ts",0,0,!0)}}xc(h,b,k,ee,he){return h.setUint8(b+0,32),h.setUint16(b+1,k,!1),vo(he,h,b+3,!1,1e3),vo(ee,h,b+11,!1,1e3),b+19}Oc(h,b,k,ee){const he=this.jd.Bc[k],we=b;b+=19;for(let pt=0;pt<he.Fc;++pt){const wt=this.jd.Bc[k+pt];h.setUint8(b,Ft(wt.Lc)),b++,b=this.Rc(h,b,wt.Lc,wt.x,wt.y,wt.Uc)}return this.xc(h,we,b-we,he.Gc,ee),b}Rc(h,b,k,ee,he,we=0,ze=!1){let pt=7,wt=this.Zd.fa,$t=this.Zd.pa;k&&(pt=5,this.Qd&&!ze?(ee=this.Yd(ee,this.Zd.fa),he=this.Yd(he,this.Zd.pa),wt=$t=na):ze&&(wt=$t=na));let an=0;return 5==pt&&(an=4),h.setUint32(b+0,pt,!0),h.setUint16(b+4,ee,!1),h.setUint16(b+6,he,!1),h.setUint16(b+8,0,!1),h.setUint32(b+10+an,0,!1),vo(we,h,b+14+an,!1,1e3),an&&(h.setUint16(b+10,wt,!1),h.setUint16(b+12,$t,!1)),b+Ft(k)}Hc(h,b,k,ee,he,we=0){return h.setUint32(b,k,!0),h.setUint16(b+4,ee,!1),h.setUint16(b+6,he,!1),h.setUint16(b+8,0,!1),vo(we,h,b+10,!1,1e3),b+18}Vc(h,b,k,ee=0){if(4!==h&&3!==h)return void l.Log.e("{57a6a4d}","{66e269d}",h);const he=this.Wd(18);this.Hc(he,0,h,b,k,ee),this.uc(he)}Wc(){const h=this.Wd(4);h.setUint32(0,2,!0);try{this.tc.send(h),l.Log.d("{57a6a4d}","{5693344}")}catch(b){l.Log.e("{57a6a4d}","{ab52f04}",b),this.telemetry.Ac(b,"heartbeat exception","{57a6a4d}.ts",0,0,!0)}}uc(h,b=!0,k="input_channel_v1"){var ee,he;if("input_channel_partially_reliable"!=k&&this._c()&&(h=this.Hd(h)),void 0===h)return!1;this.Qd&&"input_channel_v1"==k&&(null===(ee=this.dc)||void 0===ee||ee.Ad(h));const we=window.performance.now();if(!this.Xd.qc())return!1;let ze=!1;this.Nd>2&&b&&(h.byteOffset<9?l.Log.w("{57a6a4d}","{0fc6121}"):((h=new DataView(h.buffer,h.byteOffset-9,9+h.byteLength)).setUint8(0,35),vo(this.vr.$a(),h,1,!1,1e3)));try{let pt=performance.now();switch(k){case"input_channel_partially_reliable":null===(he=this.sc)||void 0===he||he.send(h);break;case"input_channel_v1":this.tc.send(h);break;default:throw new Error(`Invalid input channel ${k}`)}let wt=performance.now();this.Jd.$c(wt-pt);const $t=window.performance.now();this.ec.zc+=1;const an=$t-we;an>5&&(this.ec.Kc+=1),an>10&&(this.ec.Qc+=1),ze=!0}catch(pt){pt.stack&&!pt.stack.includes("Could not send data")&&(l.Log.e("{57a6a4d}","{7a6bf7c}",pt),this.Nc()&&this.telemetry.Ac(pt,"sendinput exception","{57a6a4d}.ts",0,0,!0))}return ze}Yc(){let h=1,b=0;for(;b<this.jd.Xc;){h+=2;const k=this.jd.Bc[b].Fc;if(k>0){h+=19;for(let ee=0;ee<k;ee++)h+=1+Ft(this.jd.Bc[b+ee].Lc);b+=k}else h+=Ft(this.jd.Bc[b].Lc),b++}return h}jc(){let h=0,b=-1;for(let k=0;k<this.jd.Xc;k++)this.jd.Bc[k].Fc>0?(h+=9,b=this.jd.Bc[k].Fc):0===b&&(h+=9),h+=3+Ft(this.jd.Bc[k].Lc),b--;return h}_c(){return this.jd.Xc>0}Jc(h){this.Gd=window.setTimeout(()=>{this.Gd=0,this.Zc()},h)}Zc(){this.uc()}Vd(h){0!==this.Gd&&(window.clearTimeout(this.Gd),this.Gd=0);const b=performance.now();this.Rd=b;const k=h?2+h.byteLength:0,ee=this.Yc()+k;let he;ee>this.buffer.byteLength?(he=new DataView(new ArrayBuffer(ee)),this.ec.tl++):he=new DataView(this.buffer,0,ee),he.setUint8(0,255);let we=1,ze=0;for(;ze<this.jd.Xc;){const pt=we;we+=2;const wt=this.jd.Bc[ze];wt.Fc>0?(we=this.Oc(he,we,ze,b),ze+=wt.Fc):(we=this.Rc(he,we,wt.Lc,wt.x,wt.y,wt.Uc),ze++),he.setUint16(pt,we-pt-2)}if(this.jd.clear(),h){he.setUint16(we,h.byteLength),we+=2;for(let pt=0;pt<h.byteLength;pt++)he.setUint8(we+pt,h.getUint8(pt));we+=h.byteLength}return he}mc(h){var b;if(h&&h.buffer!=this.buffer)return this.Zc(),h;0!==this.Gd&&(window.clearTimeout(this.Gd),this.Gd=0),this.Rd=performance.now();const k=this.jc()+(null!==(b=h?.byteLength)&&void 0!==b?b:0),ee=9+k;let he;if(ee>this.buffer.byteLength){if(he=new DataView(new ArrayBuffer(ee),ee-k,k),this.ec.tl++,h){const pt=he.byteLength-h.byteLength;for(let wt=0;wt<h.byteLength;wt++)he.setUint8(pt+wt,h.getUint8(wt))}}else he=new DataView(this.buffer,this.buffer.byteLength-k,k);let we=0,ze=-1;for(let pt=0;pt<this.jd.Xc;pt++){const wt=this.jd.Bc[pt];wt.Fc>0?(ze=wt.Fc,he.setUint8(we,36),vo(wt.Gc,he,we+1,!1,1e3),we+=9):0===ze&&(he.setUint8(we,36),vo(0,he,we+1,!1,1e3),we+=9),he.setUint8(we,33),he.setUint16(we+1,Ft(wt.Lc)),we=this.Rc(he,we+3,wt.Lc,wt.x,wt.y,wt.Uc),ze--}return this.jd.clear(),he}_d(h){return new zi(this.Ld,0,h)}gc(h){const b=this.buffer.byteLength-(h+=1);let k=new zi(this.buffer,b,h,1);return this.xd.setUint8(b,34),k}il(h){var b;const k=null!==(b=this.$d.get(h))&&void 0!==b?b:1;return this.$d.set(h,(k+1)%65536),k}sl(h,b){if(0===h.Pd)return;b=b??h.channel;const k=h.data();this.uc(k,!0,b),h.Md()}el(h,b,k=!1,ee){const he=b+(k?1:3)+(void 0===ee?0:4);if(!(he>h.Ra()&&(this.sl(h),he>h.Ra()))){if(void 0!==ee){const we=this.il(ee);h.writer.Na(38),h.writer.Na(ee),h.writer.xa(we)}return k?h.writer.Na(34):(h.writer.Na(33),h.writer.xa(b)),h.Dd(b)}}sendTextInput(h){let b=0,k=new DataView(h,0,h.byteLength),ee=new ArrayBuffer(1021);for(;b<h.byteLength;){let he=0;if(h.byteLength-b<=1016)he=h.byteLength-b;else{he=b+1016;let ze=!1;for(let pt=0;pt<4;pt++){if(128!=(192&k.getUint8(he))){ze=!0;break}he--}if(!ze){l.Log.e("{57a6a4d}","{938b0d3}");break}he-=b}let we=new DataView(ee,0,he+5);we.setUint8(0,34),we.setUint32(1,23,!0),new Uint8Array(ee).set(new Uint8Array(h,b,he),5),b+=he,this.uc(we,!1)}}nl(h,b){const k=h.byteLength;if(k>1135)return l.Log.e("{57a6a4d}","{d6be538}"),!1;const he=new DataView(this.Ud,0,13+k),we=new tl(he);we.Na(34),we.Oa(1,!0),we.Oa(0,!0),we.Oa(k,!0);const ze=new DataView(h);for(let wt=0;wt<k;wt++)we.Na(ze.getUint8(wt));let pt=!1;try{if(b)this.tc.send(he);else{if(!this.sc)return l.Log.w("{57a6a4d}","{4908850}"),!1;this.sc.send(he)}pt=!0}catch(wt){wt.stack&&!wt.stack.includes("Could not send data")&&(l.Log.e("{57a6a4d}","{f3886c1}",wt),this.Nc()&&this.telemetry.Ac(wt,"sendinput (bulk payload) exception","{57a6a4d}.ts",0,0,!0))}return pt}Nc(){return"open"===this.tc.readyState&&(!this.sc||"open"===this.sc.readyState)}stop(){var h;this.tc.bufferedAmount>0&&l.Log.w("{57a6a4d}","{5e5b9e5}",this.tc.bufferedAmount),this.sc&&this.sc.bufferedAmount>0&&l.Log.w("{57a6a4d}","{3a88bc1}",this.sc.bufferedAmount),this.Qd&&(null===(h=this.dc)||void 0===h||h.fd())}get hl(){return this.Nd}get ol(){return this.Rd}rl(h){let b=new Uint8Array(h);return Array.prototype.map.call(b,function(k){return("0"+(255&k).toString(16)).slice(-2)}).join("")}al(h){let b="";for(let k=0;k<h.byteLength;k++)b+=("0"+(255&h.getUint8(k)).toString(16)).slice(-2);return b}dl(h,b,k,ee,he,we,ze=0,pt=0){h.setUint32(b,12,!0),h.setUint16(b+4,26,!0),h.setUint16(b+6,k,!0),h.setUint16(b+8,pt,!0),h.setUint16(b+6+4,20,!0),h.setUint16(b+6+6,ee,!0),h.setUint16(b+6+8,he,!0),h.setInt16(b+6+10,we[0],!0),h.setInt16(b+6+12,we[1],!0),h.setInt16(b+6+14,we[2],!0),h.setInt16(b+6+16,we[3],!0),h.setUint16(b+6+18,0,!0),h.setUint16(b+6+20,85,!0),h.setUint16(b+6+22,0,!0),vo(ze,h,b+6+24,!0,1e3)}cl(h){const b=this.el(this.Od,38,!0);b&&(this.dl(b,0,0,0,0,wn([0,0,0,0]),0,h),this.sl(this.Od))}ll(h,b,k,ee,he,we,ze,pt){if(this.Nd<3)return;let wt;if(wt=this.ul(b)&&this.oc?this.el(this.oc,38,!1,b):this.el(this.Od,38),!wt)return;const $t=this.vr.kr(we);this.dl(wt,0,b,k,ee,wn(he),$t,ze)}Al(h,b,k,ee,he=0){const we=this.el(this.Od,38,!0);we&&(this.dl(we,0,k,h,b,wn(ee),0,he),this.sl(this.Od))}vl(){this.Nd<3||(this.Zc(),this.sl(this.Od),this.oc&&this.sl(this.oc))}fl(h){}pl(h){}ml(h){const b=this.el(this.Od,6,!0);b&&(b.setUint32(0,13,!0),b.setUint16(4,h?1:0,!1),this.sl(this.Od))}gl(h,b,k){h.setUint32(0,18,!0),h.setUint8(4,b),h.setUint8(5,k),h.setUint32(6,1)}wl(h,b){const k=this.el(this.Od,10,!0);k&&(this.gl(k,h,b),this.sl(this.Od))}Sl(h){return h<4?h+2:0}bl(h){return h<4?h+6:0}kl(h){this.wl(this.Sl(h),1)}yl(h){this.wl(this.Sl(h),3)}Il(h){this.wl(this.bl(h),1)}Cl(h){this.wl(this.bl(h),3)}El(h,b,k,ee,he,we=0){h.setUint32(0,17,!0),h.setUint8(4,b),h.setUint8(5,4),h.setUint8(6,0);let ze=7;h.setUint8(ze+0,1),h.setUint8(ze+1,he[0]),h.setUint8(ze+2,he[1]),h.setUint8(ze+3,he[2]),h.setUint8(ze+4,he[3]),h.setUint8(ze+5+0,k[0]),h.setUint8(ze+5+1,k[1]),h.setUint8(ze+5+2,k[2]),h.setUint8(ze+8,ee[0]),h.setUint8(ze+9,ee[1]),h.setUint16(ze+10,0,!0),h.setUint8(ze+12,0),h.setInt16(ze+13,0,!0),h.setInt16(ze+15,0,!0),h.setInt16(ze+17,0,!0),h.setInt16(ze+19,0,!0),h.setInt16(ze+21,0,!0),h.setInt16(ze+23,0,!0),h.setUint32(ze+25,0,!0),h.setUint8(ze+29,0),h.setUint8(ze+30,11),h.setUint8(ze+31,0),h.setUint8(ze+32,0),h.setUint8(ze+33,0),ze+=34,new Uint8Array(h.buffer,h.byteOffset+ze,72-ze).fill(0)}Tl(h,b,k,ee,he,we,ze,pt){if(this.Nd<3)return;let wt;const $t=this.bl(b);if(wt=this.Ml($t)&&this.oc?this.el(this.oc,72,!1,4+$t):this.el(this.Od,72),!wt)return;const an=this.vr.kr(we);var zt;this.El(wt,$t,function(zt,mn){let kn=0;const yn=!!(4&zt),Qn=!!(2&zt),li=!!(8&zt),wi=!!(1&zt);yn||Qn||li||wi?wi?kn=li?1:yn?7:0:Qn?kn=li?3:yn?5:4:li?kn=2:yn&&(kn=6):kn=8,kn|=16384&zt?16:0,kn|=4096&zt?32:0,kn|=8192&zt?64:0,kn|=32768&zt?128:0;let mi=0;mi|=256&zt?1:0,mi|=512&zt?2:0,mi|=255&mn?4:0,mi|=65280&mn?8:0,mi|=32&zt?16:0,mi|=16&zt?32:0,mi|=64&zt?64:0,mi|=128&zt?128:0;let Bi=0;return Bi|=0,Bi|=65536&zt?1:0,Bi|=131072&zt?2:0,[kn,mi,Bi]}(k,ee),[255&(zt=ee),(65280&zt)>>8],function(zt){const mn=kn=>127.5*(kn+1);return[mn(zt[0]),mn(zt[1]),mn(zt[2]),mn(zt[3])]}(he),an)}ua(h,b,k,ee,he,we,ze,pt){if(h>=40)return!1;const wt=18+16*h;return this.Fd.setUint8(wt+0,b),this.Fd.setUint8(wt+1,k),this.Fd.setUint16(wt+2,ee,!1),this.Fd.setUint16(wt+4,he,!1),this.Fd.setUint8(wt+6,we),this.Fd.setUint8(wt+7,ze),vo(pt,this.Fd,wt+8,!1,1e3),!0}Aa(h){let b=8+16*h;this.Fd.setUint16(14,b,!1),this.Fd.setUint16(16,h,!1);let k=10;this.Nd>=3&&(b++,k--);const ee=new DataView(this.Fd.buffer,k,b);return this.Zc(),this.uc(ee)}Pl(h){this.qd.push(h)}Dl(h){const b=this.qd.indexOf(h);b>-1&&this.qd.splice(b,1)}ul(h){if(!this.sc)return!1;const b=1<<h;return(b&this.zd)==b}Ml(h){var b;return!!this.sc&&null!==(b=this.Kd[h])&&void 0!==b&&b}Rl(h){let b;switch(h.header.packetId){case 12:const k=h.data.index;this.ul(k)&&(b=k);break;case 17:const ee=h.data.id;this.Ml(ee)&&(b=ee)}return b}Sd(h){void 0===this.playbackBuffer&&(this.playbackBuffer=new mr(1150,"input_channel_v1"));let b="input_channel_v1";for(let k=0;k<h.length;k++){const ee=h[k],he=ee.header.packetId,we=this.Rl(ee);void 0!==we&&(b="input_channel_partially_reliable");const ze=this.el(this.playbackBuffer,lr(he),!1,we);if(!ze)return;switch(he){case 4:case 3:{let pt=ee.data;this.Hc(ze,0,he,pt.keycode,pt.flags,pt.captureTs);break}case 8:case 9:{let pt=ee.data;this.Cc(ze,0,he,pt.data1,pt.captureTs);break}case 7:case 5:{let pt=ee.data;this.Rc(ze,0,5==ee.header.packetId,pt.xpos,pt.ypos,pt.captureTs,!0);break}case 10:{let pt=ee.data;this.Mc(ze,0,pt.vwheel,pt.captureTs);break}case 12:{let pt=ee.data;this.dl(ze,0,pt.index,pt.buttons,pt.trigger,pt.axes,pt.captureTs,pt.bitmap);break}case 18:{let pt=ee.data;this.gl(ze,pt.id,pt.control);break}case 17:{let pt=ee.data;if(Ls(pt.id)){const wt=pt.data;this.El(ze,pt.id,wt.ds4Btns,wt.triggers,wt.axes,0)}break}}}this.sl(this.playbackBuffer,b)}}function Ft(x){return x?26:22}class un{constructor(h){this.fc=!1,this.Nl=0,this.xl=new Array(h);for(let b=0;b<this.Bc.length;b++)this.xl[b]={Lc:!1,x:0,y:0,Uc:0,Fc:0,Gc:0}}get Bc(){return this.xl}get Xc(){return this.Nl}clear(){this.Nl=0}Ol(h,b){this.xl[h].Fc=b}Bl(h,b,k,ee,he,we,ze){if(ze&&this.Nl>0){const wt=this.xl[this.Nl-1];if(wt.Lc===h&&wt.Gc===we)return void(h?(wt.x=b,wt.y=k):(wt.x+=b,wt.y+=k))}const pt=this.fc?he:0;if(this.Nl==this.xl.length)this.xl.push({Lc:h,x:b,y:k,Uc:ee,Fc:pt,Gc:we}),this.Nl++;else{const wt=this.xl[this.Nl++];wt.Lc=h,wt.x=b,wt.y=k,wt.Uc=ee,wt.Fc=pt,wt.Gc=we}}}function wn(x){const h=b=>Math.round(32767.5*(b+1))-32768;return[h(x[0]),h(-x[1]),h(x[2]),h(-x[3])]}function zn(x){return x+1}z.VirtualButton=void 0,function(x){x[x.A=4096]="A",x[x.B=8192]="B",x[x.X=16384]="X",x[x.Y=32768]="Y",x[x.LB=256]="LB",x[x.RB=512]="RB",x[x.LT=255]="LT",x[x.RT=65280]="RT",x[x.BACK=32]="BACK",x[x.START=16]="START",x[x.STICK_LEFT=64]="STICK_LEFT",x[x.STICK_RIGHT=128]="STICK_RIGHT",x[x.DPAD_UP=1]="DPAD_UP",x[x.DPAD_DOWN=2]="DPAD_DOWN",x[x.DPAD_LEFT=4]="DPAD_LEFT",x[x.DPAD_RIGHT=8]="DPAD_RIGHT"}(z.VirtualButton||(z.VirtualButton={}));class vi{constructor(h){this.Fl=h}enable(){this.Fl.Ll=!0}disable(){this.Fl.Ll=!1}updateInput(h,b,k){this.Fl.Ll&&(Vo.getInstance().wo(),this.Fl.Ul=h,this.Fl.Gl=b,this.Fl.Hl=k,this.Fl.Vl=!0)}}class Si{constructor(h){this.buttons=h.Wl(h.device),this.axes=h._l(h.device),this.triggers=h.ql(h.device),this.timestamp=performance.now()}$l(h,b){for(let k=0;k<h.length;k++)if(Math.abs(h[k]-b[k])>.01)return!0;return!1}zl(h){return this.buttons==h.buttons&&this.triggers==h.triggers&&!this.$l(this.axes,h.axes)}}const Ri={startDelay:0,duration:0,weakMagnitude:0,strongMagnitude:0};class nr{constructor(h,b){var k,ee;this.Kl=new Set,this.telemetry=new Set,this.Ql=!1,this.Yl=0,this.Xl=0,this.jl=0,this.gamepadPollInterval=100,this.Jl=4,this.Zl=[],this.tu=[],this.iu=[],this.hapticsSupported=!1,this.su=!1,this.eu=!1,this.allowHaptics=!0,this.nu=!1,this.hu=new Set,this.ou=!1,this.ru=!1,this.au=!1,this.du=!1,this.cu=!1,this.lu=!1,this.uu=!1,this.Au=!1,this.vu=!1,this.maxSchedulingDelay=0,this.fu=[],this.pu=!1,this.mu=!1,this.gu=!1,this.wu=!0,this.Su=!1,this.bu=!1,this.ku=new Map,this.yu=new Map,this.windowAddEventListener=b&&b.windowAddEventListener?b.windowAddEventListener.bind(window):window.addEventListener.bind(window),this.windowRemoveEventListener=b&&b.windowRemoveEventListener?b.windowRemoveEventListener.bind(window):window.removeEventListener.bind(window),window.GamepadEvent&&(this.Ql=!0),this.Iu(),this.Cu=this.Eu.bind(this),this.Tu=this.Mu.bind(this),this.Pu=this.Du.bind(this),this.Ru=[],this.Nu=[],this.xu=[];const he=h.os,we=null!==(ee=null!==(k=h.osVersion)&&void 0!==k?k:h.osVer)&&void 0!==ee?ee:"",ze=(he==l.PlatformOS.IOS||he==l.PlatformOS.IPADOS)&&h.browser==l.PlatformBrowser.SAFARI;this.ru=ze&&we.startsWith("13"),this.au=ze&&we.startsWith("14"),this.ou=ze&&"12-"==we,this.du=he==l.PlatformOS.CHROME_OS,this.cu=he==l.PlatformOS.WEBOS,this.lu=he==l.PlatformOS.TIZEN,this.uu=he==l.PlatformOS.ANDROID,this.Au=Wt(h),this.Fl={Ou:0,Ll:!1,Bu:!1,Ul:0,Gl:0,Hl:[],Vl:!1},this.Fu=new vi(this.Fl),this.Lu(),this.Uu=!Hn.Zo,this.Gu=!1,this.Hu(void 0),l.Log.d("{515a922}","{b0c674b}")}Lu(){this.Jl=this.Vu(),this.allowHaptics=this.Wu(),this.pu=this._u()}Vu(){var h,b;return null!==(b=null!==(h=Hn.gamepadPollInterval)&&void 0!==h?h:Hn.ko.gamepadPollInterval)&&void 0!==b?b:4}Wu(){var h,b;return null===(b=null!==(h=Hn.allowHaptics)&&void 0!==h?h:Hn.ko.allowHaptics)||void 0===b||b}_u(){var h,b;return null===(b=null!==(h=Hn.synthesizeGamepadHid)&&void 0!==h?h:Hn.ko.synthesizeGamepadHid)||void 0===b||b}qu(h){this.Lu();const k=2&h;this.wu=Hn.ar||!!(4&h),this.Su=Hn.dr||0!=k,this.$u(!0)}zu(){this.Lu(),this.bu=!0,this.$u(!0)}Ku(){return!this.Fl.Bu&&(l.Log.i("{515a922}","{132d93a}",this.Fl.Ou),this.Fl.Bu=!0,this.Qu={Yu:"Nvidia Virtual Gamepad",state:0,buttons:0,triggers:0,axes:[]},this.Xu(this.Fl.Ou,!1),!0)}ju(){if(this.Qu){for(const h of this.telemetry)h.Ju(this.Qu.Yu,"0","0",0,!1,0,!0,this.Qu.state,this.Zu(this.Qu));this.Qu=void 0}}tA(){if(this.Fl.Bu){l.Log.i("{515a922}","{98ac7c2}",this.Fl.Ou),this.Fl.Bu=!1,this.ju();const h=this.Fl.Ou;for(const b of this.Ru)if(b&&1==b.iA&&b.sA===h)return!1;return this.eA(h)}return!1}nA(h){return h<4?1<<h:0}hA(h){return h<4?1<<h+8:0}oA(h){let b=[];for(let ee of this.Ru)ee&&ee.iA==h&&(b[ee.sA]=!0);let k=0;for(;b[k];)k++;return k}Xu(h,b){let k;k=this.Fl.Bu&&h===this.Fl.Ou?this.Fl.Ou:this.Ru[h].sA,this.Yl|=this.nA(k);const ee=this.hA(k);b?this.Yl|=ee:this.Yl&=~ee}eA(h){return!(h===this.Fl.Ou&&this.Fl.Bu||(this.Yl&=~this.nA(h),this.Yl&=~this.hA(h),0))}rA(h){this.aA=h}dA(h){this.cA(h),this.Kl.delete(h),0==this.Kl.size&&this.lA()}uA(h){this.Kl.add(h),1==this.Kl.size&&this.AA()}cA(h){var b;for(let k of this.Ru){if(!k)continue;let ee=k.device;this.vA(ee)&&(1===k.iA?h.ll(ee.index,k.sA,0,0,[0,0,0,0],performance.now(),this.Yl,ee.id):null===(b=h.Tl)||void 0===b||b.call(h,ee.index,k.sA,0,0,[0,0,0,0],performance.now(),this.Yl,ee.id))}h.vl()}fA(h){this.telemetry.add(h)}pA(h){this.telemetry.delete(h)}mA(h,b=!1){return this.vu||(h|=2),b&&(h|=1),h}gA(h,b){return{Yu:b,state:this.Ru[h.index]?this.Ru[h.index].wA.state:this.mA(0),buttons:this.Ru[h.index]?this.Ru[h.index].wA.buttons:0,triggers:this.Ru[h.index]?this.Ru[h.index].wA.triggers:0,axes:this.Ru[h.index]?this.Ru[h.index].wA.axes:[]}}SA(h){if(!this.pu)return 1;const b=this.Uu&&this.mu&&this.wu&&!this.bu,k=this.Gu&&this.gu&&this.Su&&!this.bu;if(b||k){const ee=Hn.er,he=Hn.nr;if(!(h.id.includes("Vendor: 054c")||h.id.includes("Wireless Controller")&&h.id.includes("054c")||ee||he)||!(h.buttons.length>=18)||ee||he)return 1;const we=h.id.includes("Product: 09cc")||h.id.includes("Product: 05c4")||h.id.includes("Product: 0ba0")||h.id.includes("Wireless Controller")&&h.id.includes("09cc"),ze=h.id.includes("Product: 0ce6")||h.id.includes("Product: 0df2");return k&&(ze||(we||ee)&&!Hn.sr||he)?3:b&&(we||(ze||he)&&!Hn.ir||ee)?2:1}return 1}bA(h){const b=this.SA(h);return{device:h,kA:!0,iA:b,Wl:this.yA,ql:this.IA,_l:this.CA,wA:this.gA(h,"Standard Gamepad"),sA:this.oA(b)}}EA(h){const b=this.SA(h);return{device:h,kA:!0,iA:b,Wl:this.yA,ql:this.IA,_l:this.CA,wA:this.gA(h,"Standard Gamepad"),TA:!0,sA:this.oA(b)}}MA(h){const b=this.SA(h);return{device:h,kA:!0,iA:b,Wl:this.yA,ql:this.PA,_l:this.CA,wA:this.gA(h,"Nvidia Shield Gamepad"),sA:this.oA(b)}}DA(h){const b=this.SA(h);return{device:h,kA:!0,iA:b,Wl:this.RA,ql:this.IA,_l:this.NA,wA:this.gA(h,"Standard Gamepad"),sA:this.oA(b)}}xA(h){const b=this.SA(h);return{device:h,kA:!1,iA:b,Wl:this.OA.bind(this),ql:this.BA.bind(this,3,4),_l:this.FA,wA:this.gA(h,"Dual Sense Gamepad"),sA:this.oA(b)}}LA(h){const b=this.SA(h);return{device:h,kA:!1,iA:b,Wl:this.UA.bind(this),ql:this.BA.bind(this,3,4),_l:this.FA,wA:this.gA(h,"Xbox Series Gamepad"),sA:this.oA(b)}}GA(h){const b=this.SA(h);return{device:h,kA:!1,iA:b,Wl:this.HA.bind(this),ql:this.BA.bind(this,2,5),_l:this.VA,wA:this.gA(h,"Xbox Series Wired Gamepad"),sA:this.oA(b)}}WA(h){return this.au?this.bA(h):this.ru?this.DA(h):this.ou?null:!this._A(h)||this.cu||this.lu?this.qA(h)?this.EA(h):this.$A(h)?this.bA(h):this.zA(h)?this.xA(h):this.KA(h)?this.LA(h):this.QA(h)?this.GA(h):(l.Log.e("{515a922}","{be4bfd9}",h),null):this.MA(h)}cl(h,b){const k=(ee,he)=>{ee.cl(he)};if(h)k(h,b??this.Yl);else for(const ee of this.Kl)k(ee,b??this.Yl)}Eu(h){this.YA(h.gamepad,h.gamepad.index)&&this.cl()}Mu(h){this.XA(h.gamepad.index,!0)&&this.cl()}jA(){0!=this.jl&&(clearInterval(this.jl),this.jl=0),this.jl=this.nu&&!Hn.Po?window.setInterval(this.Pu,this.gamepadPollInterval):0}JA(h){let b=["-1","-1"];const k=/Vendor:[ ]+([\w\d]+).+Product:[ ]+([\w\d]+)/.exec(h);return k&&k.length>=3&&(b=[k[1],k[2]]),b}ZA(h){if(this.Xl&&(this.cl(h,0),this.hu.size<=1)){let b=!0;for(let k of this.Ru)k&&(k.wA.state=this.mA(k.wA.state,!0),this.XA(k.device.index,!0,b),b=!1);this.ju(),this.Yl=0,this.Xl=0,this.Fl.Bu=!1,this.Iu(),this.jA(),this.Ru=[],this.vu=!1}}vA(h){return!!("standard"==h.mapping||this.au||this.ru||this.zA(h)||this.KA(h)||this.QA(h))}$A(h){return"standard"==h.mapping}qA(h){return h.id.includes("Vendor: 045e")&&(h.id.includes("Product: 0b13")||h.id.includes("Product: 0b20")||h.id.includes("Product: 0b05")||h.id.includes("Product: 02e0")||h.id.includes("Product: 02fd"))}_A(h){return"standard"==h.mapping&&h.id.includes("Vendor: 0955")}zA(h){return!this.uu&&"standard"!=h.mapping&&h.id.includes("Vendor: 054c")&&h.id.includes("Product: 0ce6")}KA(h){return"standard"!=h.mapping&&h.id.includes("Vendor: 045e")&&h.id.includes("Product: 0b13")}QA(h){return this.du&&"standard"!=h.mapping&&h.id.includes("Vendor: 045e")&&h.id.includes("Product: 0b12")}tv(h){return h.id.includes("Xbox")||h.id.includes("xinput")}YA(h,b){if(this.vA(h)){const k=this.WA(h);if(k){this.hapticsSupported=this.hapticsSupported||this.sv(k.device),this.ev();const ee=this.Yl,he=this.Ru[b],we=this.Xl,ze=this.tv(h);this.Ru[b]=k,void 0===this.xu[b]&&(this.xu[b]=0),he&&this.nv(h,b)?this.Ru[b].sA=he.sA:(0==this.Xl&&(this.gamepadPollInterval=this.Jl,this.jA()),this.Xl++,2===k.iA?(this.hv(k),this.yu.set(k.sA,b)):(this.Xu(b,ze),this.ku.set(k.sA,b)));const pt=ee!==this.Yl,wt=he?"Changing":"Adding";return pt?l.Log.i("{515a922}","{96051ae}",wt,b,ze,k.device.id):we!=this.Xl&&l.Log.i("{515a922}","{98be0dd}",wt,b,k.device.id),pt}for(const ee of this.Kl)ee.fl(h);return this.XA(b)}for(const k of this.Kl)k.fl(h);return this.XA(b)}ov(h,b){this.Ru[b].device=h,this.hapticsSupported=this.hapticsSupported||this.sv(h),this.ev()}rv(h){let b=!1;for(const k of this.Ru)if(k){h===k.device.index&&(b=!0);break}return b}XA(h,b=!1,k=void 0){let ee=this.Ru[h];if(ee){l.Log.i("{515a922}","{1b26b8a}",h,ee.device.id);const he=ee.iA,we=this.Nu[h];if(we){const ze=performance.now()-we.timestamp;if(ze>=3e3&&we.axes.some(pt=>Math.abs(pt)>.5)){l.Log.w("{515a922}","{fde5612}",ze,we.axes.join());for(const pt of this.telemetry)pt.Ke("GamepadStuck",ee.device.id,ze.toString(),we.axes.join())}}if(b){const[ze,pt]=this.JA(ee.device.id);for(const wt of this.telemetry)wt.Ju(ee.wA.Yu,ze,pt,ee.device.index,!!ee.device.hapticActuators&&ee.device.hapticActuators.length>0,0,k??this.rv(ee.device.index),ee.wA.state,this.Zu(ee.wA))}return delete this.Ru[h],delete this.xu[h],delete this.Nu[h],this.hapticsSupported=this.av(),this.ev(),this.Xl--,0==this.Xl&&(this.Iu(),this.jA()),2===he?(this.dv(ee),this.yu.delete(ee.sA),!1):(this.ku.delete(ee.sA),this.eA(ee.sA))}return!1}Iu(){this.gamepadPollInterval=100}nv(h,b){var k,ee;return null!=h.id&&h.id==(null===(ee=null===(k=this.Ru[b])||void 0===k?void 0:k.device)||void 0===ee?void 0:ee.id)}hv(h){var b;switch(h.iA){case 3:l.Log.e("{515a922}","{ea001a4}",h.device.id);break;case 2:for(const k of this.Kl)null===(b=k.Il)||void 0===b||b.call(k,h.sA);break;default:l.Log.e("{515a922}","{36eeed4}",h.device.id)}}dv(h){var b;switch(h.iA){case 3:l.Log.e("{515a922}","{2b2d286}",h.device.id);break;case 2:for(const k of this.Kl)null===(b=k.Cl)||void 0===b||b.call(k,h.sA);break;default:l.Log.e("{515a922}","{fafe5f9}",h.device.id)}}$u(h=!1){let b=!1;this.Fl.Ll&&!this.Fl.Bu?b=this.Ku():!this.Fl.Ll&&this.Fl.Bu&&(b=this.tA());let k=navigator.getGamepads();for(var ee=0;ee<k.length;ee++){let he=k[ee];if(he)if(this.nv(he,ee)){if(this.ov(he,ee),h){let we=this.Ru[ee];const ze=we.iA,pt=this.SA(he);ze!==pt&&(1===ze?(this.eA(we.sA),we.iA=pt,we.sA=this.oA(pt),this.hv(we)):(this.dv(we),we.iA=pt,we.sA=this.oA(pt),this.Xu(ee,this.tv(he)))),b=!0}}else this.XA(ee,!0),this.YA(he,ee)&&(b=!0);else this.XA(ee,!0)&&(b=!0)}if(b){this.cl();for(const he of this.Ru)2==he?.iA&&this.hv(he)}this.vu=!0}yA(h){let b=h.buttons;return(b[0].value?4096:0)|(b[1].value?8192:0)|(b[2].value?16384:0)|(b[3].value?32768:0)|(b[4].value?256:0)|(b[5].value?512:0)|(b[8]&&b[8].value?32:0)|(b[9]&&b[9].value?16:0)|(b[10]&&b[10].value?64:0)|(b[11]&&b[11].value?128:0)|(b[12]&&b[12].value?1:0)|(b[13]&&b[13].value?2:0)|(b[14]&&b[14].value?4:0)|(b[15]&&b[15].value?8:0)|(b[16]&&b[16].value?65536:0)|(b[17]&&b[17].value?131072:0)}Zu(h){const b=h.buttons,k=h.triggers,ee=h.axes;return"A:"+(4096&b?"1":"0")+"_B:"+(8192&b?"1":"0")+"_X:"+(16384&b?"1":"0")+"_Y:"+(32768&b?"1":"0")+"_LB:"+(256&b?"1":"0")+"_LSB:"+(64&b?"1":"0")+"_RB:"+(512&b?"1":"0")+"_RSB:"+(128&b?"1":"0")+"_LT:"+(255&k?"1":"0")+"_RT:"+(65280&k?"1":"0")+"_DU:"+(1&b?"1":"0")+"_DD:"+(2&b?"1":"0")+"_DL:"+(4&b?"1":"0")+"_DR:"+(8&b?"1":"0")+"_ST:"+(16&b?"1":"0")+"_BA:"+(32&b?"1":"0")+"_LS:"+(ee.length>=2&&(2===ee[0]||2===ee[1])?"1":"0")+"_RS:"+(4!==ee.length||2!==ee[2]&&2!==ee[3]?"0":"1")}IA(h){var b,k;let ee=h.buttons,he=Math.round(255*(null===(b=ee[6])||void 0===b?void 0:b.value));return(255&Math.round(255*(null===(k=ee[7])||void 0===k?void 0:k.value)))<<8|255&he}PA(h){var b,k;let ee=h.buttons,he=Math.round(255*(null===(b=ee[7])||void 0===b?void 0:b.value));return(255&Math.round(255*(null===(k=ee[6])||void 0===k?void 0:k.value)))<<8|255&he}BA(h,b,k){let ee=Math.round(127.5*(k.axes[h]+1));return(255&Math.round(127.5*(k.axes[b]+1)))<<8|255&ee}CA(h){return h.axes}NA(h){return[h.axes[0],-h.axes[1],h.axes[2],-h.axes[3]]}FA(h){return[h.axes[0],h.axes[1],h.axes[2],h.axes[5]]}VA(h){return[h.axes[0],h.axes[1],h.axes[3],h.axes[4]]}RA(h){var b,k,ee,he,we,ze;let pt=h.buttons,wt=h.axes;return(null!==(b=pt[0])&&void 0!==b&&b.value?4096:0)|(null!==(k=pt[1])&&void 0!==k&&k.value?8192:0)|(null!==(ee=pt[2])&&void 0!==ee&&ee.value?16384:0)|(null!==(he=pt[3])&&void 0!==he&&he.value?32768:0)|(null!==(we=pt[4])&&void 0!==we&&we.value?256:0)|(null!==(ze=pt[5])&&void 0!==ze&&ze.value?512:0)|(wt[5]>0?1:0)|(wt[5]<0?2:0)|(wt[4]<0?4:0)|(wt[4]>0?8:0)}cv(h){switch(Number.parseFloat((h??0).toFixed(5))){case.71429:return 4;case-.42857:return 8;case-1:return 1;case.14286:return 2;case 1.28571:return 0;case 1:return 5;case-.71429:return 9;case.42857:return 6;case-.14286:return 10;default:return 0}}lv(h,b){return(b<0?1:0)|(b>0?2:0)|(h<0?4:0)|(h>0?8:0)}OA(h){var b,k,ee,he,we,ze,pt,wt,$t,an;let zt=h.buttons;const mn=this.du?this.lv(h.axes[6],h.axes[7]):this.cv(h.axes[9]);return(null!==(b=zt[1])&&void 0!==b&&b.value?4096:0)|(null!==(k=zt[2])&&void 0!==k&&k.value?8192:0)|(null!==(ee=zt[0])&&void 0!==ee&&ee.value?16384:0)|(null!==(he=zt[3])&&void 0!==he&&he.value?32768:0)|(null!==(we=zt[4])&&void 0!==we&&we.value?256:0)|(null!==(ze=zt[5])&&void 0!==ze&&ze.value?512:0)|(null!==(pt=zt[8])&&void 0!==pt&&pt.value?32:0)|(null!==(wt=zt[9])&&void 0!==wt&&wt.value?16:0)|(null!==($t=zt[10])&&void 0!==$t&&$t.value?64:0)|(null!==(an=zt[11])&&void 0!==an&&an.value?128:0)|mn}UA(h){var b,k,ee,he,we,ze,pt,wt,$t,an;let zt=h.buttons;const mn=this.cv(h.axes[9]);return(null!==(b=zt[0])&&void 0!==b&&b.value?4096:0)|(null!==(k=zt[1])&&void 0!==k&&k.value?8192:0)|(null!==(ee=zt[3])&&void 0!==ee&&ee.value?16384:0)|(null!==(he=zt[4])&&void 0!==he&&he.value?32768:0)|(null!==(we=zt[6])&&void 0!==we&&we.value?256:0)|(null!==(ze=zt[7])&&void 0!==ze&&ze.value?512:0)|(null!==(pt=zt[10])&&void 0!==pt&&pt.value?32:0)|(null!==(wt=zt[11])&&void 0!==wt&&wt.value?16:0)|(null!==($t=zt[13])&&void 0!==$t&&$t.value?64:0)|(null!==(an=zt[14])&&void 0!==an&&an.value?128:0)|mn}HA(h){var b,k,ee,he,we,ze,pt,wt,$t,an;let zt=h.buttons;const mn=this.lv(h.axes[6],h.axes[7]);return(null!==(b=zt[0])&&void 0!==b&&b.value?4096:0)|(null!==(k=zt[1])&&void 0!==k&&k.value?8192:0)|(null!==(ee=zt[2])&&void 0!==ee&&ee.value?16384:0)|(null!==(he=zt[3])&&void 0!==he&&he.value?32768:0)|(null!==(we=zt[4])&&void 0!==we&&we.value?256:0)|(null!==(ze=zt[5])&&void 0!==ze&&ze.value?512:0)|(null!==(pt=zt[6])&&void 0!==pt&&pt.value?32:0)|(null!==(wt=zt[7])&&void 0!==wt&&wt.value?16:0)|(null!==($t=zt[9])&&void 0!==$t&&$t.value?64:0)|(null!==(an=zt[10])&&void 0!==an&&an.value?128:0)|mn}uv(){Hn.Io&&Hn.Po&&this.Du()}Al(){for(const h of this.Kl)h.Al(this.Fl.Ul,this.Fl.Gl,this.Fl.Ou,this.Fl.Hl,this.Yl)}Av(){return this.maxSchedulingDelay}vv(){this.maxSchedulingDelay=0}fv(){const h=performance.now();this.pv&&(this.maxSchedulingDelay=Math.max(this.maxSchedulingDelay,h-this.pv-this.gamepadPollInterval)),this.pv=h}Du(){var h;this.fv(),this.$u();let b=0;for(let k of this.Ru){if(!k)continue;const ee=k.device.timestamp;let he=k.device;if(!this.vA(he))continue;if(k.device.timestamp<=this.xu[he.index]){this.aA&&performance.now()-k.device.timestamp>=5e3&&this.aA();continue}this.xu[he.index]=k.device.timestamp;const we=this.Nu[he.index],ze=new Si(k);if(we&&we.zl(ze))continue;this.Nu[he.index]=ze;let pt=k.ql(he),wt=k.Wl(he),$t=k._l(he);const an=(zt,mn,kn)=>{var yn;const Qn=(mn|zt)===wt,li=Er(pt,kn,255)&&Er(pt,kn,65280),wi=!((null!==(yn=we?.buttons)&&void 0!==yn?yn:0)&zt||!(wt&zt));return Qn&&li&&wi};for(let zt of this.fu)an(zt.mv,zt.gv,zt.wv)&&zt.Gn();switch(k.iA){case 1:for(const zt of this.Kl)zt.ll(he.index,k.sA,wt,pt,$t,ee,this.Yl,he.id);break;case 2:for(const zt of this.Kl)null===(h=zt.Tl)||void 0===h||h.call(zt,he.index,k.sA,wt,pt,$t,k.device.timestamp,this.Yl,he.id)}b++,this.Sv(k.wA,wt,pt,$t)}if(b){Vo.getInstance().wo();for(const k of this.Kl)k.vl()}this.Fl.Bu&&this.Fl.Vl&&(this.Al(),this.Fl.Vl=!1,this.Qu&&this.Sv(this.Qu,this.Fl.Ul,this.Fl.Gl,this.Fl.Hl))}bv(h){for(let b=0;b<this.fu.length;b++){const k=this.fu[b];if(k.mv===h.mv&&k.gv===h.gv&&k.wv===h.wv&&k.Gn===h.Gn)return b}return-1}kv(h){this.fu.push(h)}yv(h){const b=this.bv(h);-1!==b&&this.fu.splice(b,1)}Sv(h,b,k,ee){h.buttons|=b,h.triggers|=k,0===h.axes.length?h.axes=[ee[0],ee[1],ee[2],ee[3]]:(h.axes[0]=2==h.axes[0]||h.axes[0]!==ee[0]?2:h.axes[0],h.axes[1]=2==h.axes[1]||h.axes[1]!==ee[1]?2:h.axes[1],h.axes[2]=2==h.axes[2]||h.axes[2]!==ee[2]?2:h.axes[2],h.axes[3]=2==h.axes[3]||h.axes[3]!==ee[3]?2:h.axes[3])}Iv(h){var b;if(this.eu!=h&&(this.eu=h,this.allowHaptics))for(const k of this.Kl)null===(b=k.ml)||void 0===b||b.call(k,h)}AA(){this.nu=!0,this.Lu(),this.ev(),Hn.Io&&(this.windowAddEventListener("gamepadconnected",this.Cu),this.windowAddEventListener("gamepaddisconnected",this.Tu),this.jA(),this.$u(!0))}lA(){this.nu=!1,this.Lu(),this.ev(),Hn.Io&&(this.Cv(),this.windowRemoveEventListener("gamepadconnected",this.Cu),this.windowRemoveEventListener("gamepaddisconnected",this.Tu),this.jA())}Cv(){for(const h of this.Kl)this.cA(h)}getVirtualGamepadHandler(){return this.Fu}av(){let h=!1;for(let b of this.Ru)b&&(h=h||this.sv(b.device));return h}ev(){var h,b;if(this.su=this.nu&&this.hapticsSupported,this.Iv(this.su),!this.su){let k=navigator.getGamepads();for(let ee of k)ee&&(this.Zl[ee.index]=0,this.tu[ee.index]=0,null===(b=null===(h=ee.vibrationActuator)||void 0===h?void 0:h.playEffect)||void 0===b||b.call(h,"dual-rumble",Ri))}}sv(h){var b;return"dual-rumble"==(null===(b=h.vibrationActuator)||void 0===b?void 0:b.type)}yc(h,b,k){const ee=this.ku.get(h);void 0!==ee&&this.Ev(ee,b,k)}kc(h,b,k){const ee=this.yu.get(h);void 0!==ee&&this.Ev(ee,b,k)}Ev(h,b,k){var ee,he;if(!this.su)return;let we=this.Ru[h];if(we){let ze=we.device;if(ze)if(0!=b||0!=k){const pt=b/65535,wt=k/65535,$t=performance.now();let an=$t-this.iu[h];this.Zl[h]=pt,this.tu[h]=wt,(!we.TA||an>500)&&(this.iu[h]=$t,(()=>{var mn,kn;null===(kn=null===(mn=ze.vibrationActuator)||void 0===mn?void 0:mn.playEffect)||void 0===kn||kn.call(mn,"dual-rumble",{startDelay:0,duration:1e3,weakMagnitude:this.tu[h],strongMagnitude:this.Zl[h]})})())}else this.iu[h]=performance.now(),this.Zl[h]=0,this.tu[h]=0,null===(he=null===(ee=ze.vibrationActuator)||void 0===ee?void 0:ee.playEffect)||void 0===he||he.call(ee,"dual-rumble",Ri)}}Tv(){return this.Lu(),this.$u(),this.Yl}Hu(h){var b,k;this.Lu();let ee=h??0;return Hn.hr&&(ee|=1),Hn.rr&&(ee|=2),this.pu&&ee?(this.mu=null!==(b=Hn.hr)&&void 0!==b?b:!!(1&ee),this.gu=null!==(k=Hn.rr)&&void 0!==k?k:!!(2&ee),void this.$u(!0)):(this.mu=!1,void(this.gu=!1))}static getInstance(h,b){return nr.Mv||(nr.Mv=new nr(h,b)),nr.Mv}}function _r(x,h){return(x&h)>=.9*h}function Er(x,h,b){return!!(b&h)===_r(x,b)}nr.Mv=void 0;class po{constructor(h,b){this.Pv=0,this.Dv=8,this.Rv=0,this.Nv=0,this.xv=0,this.Ov=0,this.Bv=!1,this.Fv=!1,this.scale=12,this.Lv="mousemove",this.Uv="mousedown",this.Gv="mouseup",this.Hv=2,this.Vv=3,this.Rs=b,this.Wv=h,this._v=this.qv.bind(this),St(this.Rs)&&(this.Hv=0,this.Vv=1)}ll(h,b,k,ee,he,we,ze,pt){this.$v(k,ee,he)}Tl(h,b,k,ee,he,we,ze,pt){this.$v(k,ee,he)}$v(h,b,k){const ee=(zt=>{const mn=yn=>-.1<zt[yn]&&zt[yn]<.1?0:zt[yn],kn=[];return kn[0]=mn(0),kn[1]=mn(1),kn[2]=mn(2),kn[3]=mn(3),kn})(k),he=ee[this.Hv],we=ee[this.Vv],ze=4-3*Math.min(1,Math.sqrt(he*he+we*we));this.Rv=he*this.scale/ze,this.Nv=we*this.scale/ze;const pt=!!(4224&h)||_r(b,65280),wt=_r(b,255),$t=this.Bv,an=this.Fv;this.Bv=pt,this.Fv=wt,!pt&&$t&&this.zv(0,!1),!wt&&an&&this.zv(2,!1),pt&&!$t&&this.zv(0,!0),wt&&!an&&this.zv(2,!0)}qv(){this.xv=Math.sign(this.xv)!=Math.sign(this.Rv)?this.Rv:this.xv+this.Rv,this.Ov=Math.sign(this.Ov)!=Math.sign(this.Nv)?this.Nv:this.Ov+this.Nv;let h=0,b=0;if((this.xv>=1||this.xv<=-1)&&(h=Math.trunc(this.xv),this.xv-=h),(this.Ov>=1||this.Ov<=-1)&&(b=Math.trunc(this.Ov),this.Ov-=b),0!=h||0!=b){const k={movementX:h,movementY:b,isPrimary:!0};let ee;ee="pointerrawupdate"==this.Lv||"pointermove"==this.Lv?new PointerEvent(this.Lv,k):new MouseEvent("mousemove",k),this.Wv.dispatchEvent(ee)}}Kv(){return(this.Bv?1:0)|(this.Fv?2:0)}zv(h,b){let k={button:h,buttons:this.Kv()};const ee=new MouseEvent(b?this.Uv:this.Gv,k);this.Wv.dispatchEvent(ee)}start(){this.Pv&&this.stop(),this.Pv=window.setInterval(this._v,this.Dv)}stop(){this.Pv&&(clearInterval(this.Pv),this.Pv=0)}Qv(h){this.Lv=h}Yv(h,b){this.Uv=h,this.Gv=b}reset(){this.Bv&&this.zv(0,!1),this.Fv&&this.zv(2,!1),this.Rv=this.Nv=0,this.xv=this.Ov=0,this.Bv=this.Fv=!1}cl(h){}vl(){}Al(h,b,k,ee,he){}fl(h){}pl(h){}}class To{constructor(){this.x=0,this.y=0}Xv(){return this.x}jv(){return this.y}update(h,b,k){return this.x=h,this.y=b,!0}}class rn{constructor(){this.Jv=0,this.Zv=0,this.tf=0,this.if=0,this.sf=0,this.ef=0,this.nf=0,this.hf=0,this.rf=0,this.af=!1}Xv(){return this.Jv}jv(){return this.Zv}update(h,b,k){if(0===h&&0===b)return this.af?(this.hf=0,this.rf=0):this.af=!0,!1;if(this.af=!1,0===this.hf&&0===this.rf){if(k<this.tf)return this.hf=h,this.rf=b,!1}else h+=this.hf,b+=this.rf,this.hf=0,this.rf=0;const ee=h*this.Jv+b*this.Zv,he=h*h+b*b,we=this.Jv*this.Jv+this.Zv*this.Zv;let ze=!0;if(k-this.tf<.95&&ee<0&&0!==we&&ee*ee>.81*he*we){const an=Math.sqrt(he)/Math.sqrt(we);let zt=Math.abs(an-Math.trunc(an));zt>.5&&(zt=1-zt),zt<.1&&(ze=!1)}const pt=h-this.Jv,wt=b-this.Zv,$t=pt*pt+wt*wt;if(ze){const an=1+.1*Math.max(1,Math.min(16,k-this.tf)),zt=2*an*Math.abs(this.if),mn=2*an*Math.abs(this.sf),kn=Math.max(8100,zt*zt+mn*mn);if(ze=$t<kn,!ze&&(this.ef||this.nf)){const yn=h-this.ef,Qn=b-this.nf;ze=yn*yn+Qn*Qn<kn}}return ze?(this.if=.4*this.if+.6*pt,this.sf=.4*this.sf+.6*wt,this.Jv=h,this.Zv=b,this.tf=k,this.ef=0,this.nf=0,!0):(this.ef=h,this.nf=b,!1)}}function Di(x){return{df:"image/x-icon",scale:1,...x}}const Te={style:"default",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAOAAAADAAAABwAAAAYAAAAOAAABDAAAAZwAAAHYAAAB4AAAAf+AAAH/AAAB/gAAAfwAAAH4AAAB8AAAAeAAAAHAAAABgAAAAQAAAAAAAAAAAAAAAAAAAA////////////////////////////////////////////5////8P///+D////h////wf//98P///OD///xh///8Af///AP///wAH//8AD///AB///wA///8Af///AP///wH///8D////B////w////8f////P////3/////////8=",lf:2,uf:1},Jt=[{style:"none",cf:"",lf:0,uf:0},Te,{style:"text",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAfvwAAAAAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAfPwAAAAAAAAAAAAAAAAAA/////////////////////////////////////+BA///Agf///z////8/////P////z////8/////P////z////8/////P////z////8/////P////z////8/////P////z////8/////P////z///+BA///Agf////////////8=",lf:8,uf:13},{style:"wait",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/8AAAzzAAAHDgAABfoAAAb2AAADbAAAAfgAAABgAAAAYAAAAGAAAABgAAAAYAAAAGAAAABgAAAB+AAAA/wAAAaWAAAH/gAABWoAAA//AAAP/wAAAAAAAAAAAAA//////////////////////////////////////////+AAf//gAH//4AB//+AAf//wAP//8AD///gB///8A////gf///8P////D////w////8P////D////gf///wD///4Af//8AD///AA///gAH//4AB//+AAf//gAH///////8=",lf:7,uf:12},{style:"crosshair",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAABjAAABgMAAAQBAAAIAIAACACAABAAQAAAIAAAEABAAAgAgAAIAIAABgMAAAICAAABjAAAAFAAAAAAAAA//////////////////////////////////////////////////////////////////////////////////////4////5T///53P//+97///fff//333//79+//+AAP//v37//999///fff//53P///d3///5T////j////////8=",lf:8,uf:8},{style:"progress",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD4AAAAiAAAAPgAAABwAAAYIAAAOCAAADAgAABwcAAAYNgAAOCoABDA+AAZwAAAHYAAAB4AAAAf+AAAH/AAAB/gAAAfwAAAH4AAAB8AAAAeAAAAHAAAABgAAAAQAAAAAAAAAAAAAAAAAAAA///////////////////////+A////gP///4D///+A///5wf//8OP//+Dj///h4///wcH/98OA//ODgP/xh4D/8AeA//AP///wAH//8AD///AB///wA///8Af///AP///wH///8D////B////w////8f////P////3/////////8=",lf:2,uf:1},{style:"nwse-resize",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP4AAAB+AAAAPgAAAB4AAABuAAAA5gAAAcIAAEOAAABnAAAAdgAAAHgAAAB8AAAAfgAAAH8AAAAAAAAAAAAAA/////////////////////////////////////////////////////////////////////////////////wA///+AP///wD///+A////gP///wD//34A//88GP//GDz//wB+//8A////Af///wH///8A////AH///wA////////8=",lf:9,uf:8},{style:"nesw-resize",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAfwAAAH4AAAB8AAAAeAAAAHYAAABnAAAAQ4AAAAHCAAAA5gAAAG4AAAAeAAAAPgAAAH4AAAD+AAAAAAAAAAAAA////////////////////////////////////////////////////////////////////////////////wA///8Af///AP///wH///8B////AP///wB+//8YPP//PBj//34A////AP///4D///+A////AP///gD///wA///////8=",lf:9,uf:9},{style:"ew-resize",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAEAABgBgAA4AcAAeAHgAPv98AH7/fgA+/3wAHgB4AA4AcAAGAGAAAgBAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////////////////////////////////////////+/3///P8///j/H//w/w//4P8H/8AAA/+AAAH/AAAA/4AAAf/AAAP/4P8H//D/D//4/x///P8///7/f//////8=",lf:13,uf:8},{style:"ns-resize",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAADgAAAB8AAAA/gAAAf8AAAP/gAAAAAAAADgAAAA4AAAAOAAAADgAAAA4AAAAOAAAADgAAAA4AAAAAAAAA/+AAAH/AAAA/gAAAHwAAAA4AAAAEAAAAAAAAAAAAAA//////////////////////////////////////+/////H////g////wH///4A///8AH//+AA///AAH///g////4P///+D////g////4P///+D////g////4P///AAH//4AD///AB///4A////Af///4P////H////7////////8=",lf:9,uf:12},{style:"move",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAABwAAAA+AAAAHAAAABwAAAAcAAAAHAAAABwAAAgACAAf3fwAP93+AB/d/AAIAAgAABwAAAAcAAAAHAAAABwAAAAcAAAAPgAAABwAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////////////////////f////j////wf///4D///8Af///wf///8H///vB7//zwef/4AAD/8AAAf+AAAD/wAAB/+AAA//zwef/+8Hv///B////wf///wB///+A////wf///+P////3///////////////////////8=",lf:13,uf:12},Te,{style:"pointer",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH+AAAB/gAAA/4AAAP/AAAH/wAAB/8AAA//gAAP/4AAH/+AADttgABzbYAAY2wAAANsAAADYAAAAwAAAAMAAAAAAAAAAAAAA//////////////////////////////////////////////////////////////////////+Af///AD///wA///4AP//+AB///AAf//wAH//4AA//+AAP//AAD//gAA//wAAP/8IAH//mAH///gD///4H///+H////z////////8=",lf:8,uf:3},{style:"help",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAABgAAAAYAAAYHAAAOAYAADADAABwwwAAYMMAAODDABDAZgAZwDwAHYAAAB4AAAAf+AAAH/AAAB/gAAAfwAAAH4AAAB8AAAAeAAAAHAAAABgAAAAQAAAAAAAAAAAAAAAAAAAA/////////////+f////D////5//////////n////w///58P//8PB//+D4P//hzB//wYYf98OGH/ODhh/xh8A/8Afgf/AP8P/wAH//8AD///AB///wA///8Af///AP///wH///8D////B////w////8f////P////3/////////8=",lf:2,uf:1}];class Rt{constructor(h,b,k,ee,he,we,ze,pt,wt,$t,an,zt){var mn,kn,yn,Qn,li,wi,mi,Bi,qi,sr,Ar,Vr,Br,Xo,Do,Lo,ir,wr;this.Xd=h,this.Jd=b,this.Af=k,this.vf=he,this.Rs=we,this.ff=ze,this.ec=pt,this.jd=wt,this.gd=$t,this.pf=an,this.vr=zt,this.mf=new Map,this.gf=Jt.map(Di),this.wf=0,this.Sf=0,this.bf=!1,this.kf=new Set,this.yf=!1,this.If=!1,this.Cf=!1,this.Ef=!1,this.Tf=!1,this.Mf=!1,this.Pf=0,this.Df=0,this.Rf=!1,this.Nf={passive:!1},this.xf=!0,this.nu=!1,this.Of=0,this.Bf=0,this.Ff=null,this.Lf=void 0,this.Uf=()=>{this.Bf=0,this.Gf()&&!this.Hf()&&(this.bf=!0,this.Vf())},ee.onmessage=zs=>this.Wf(zs),this.Zd={fa:k.clientWidth||window.screen.width,pa:k.clientHeight||window.screen.height,_f:1,qf:0,$f:0,videoWidth:0,videoHeight:0,zf:0,offsetX:0,offsetY:0,Kf:1};const _s=window.zoneless;if(this.documentAddEventListener=null!==(kn=null===(mn=_s?.documentAddEventListener)||void 0===mn?void 0:mn.bind(document))&&void 0!==kn?kn:document.addEventListener.bind(document),this.documentRemoveEventListener=null!==(Qn=null===(yn=_s?.documentRemoveEventListener)||void 0===yn?void 0:yn.bind(document))&&void 0!==Qn?Qn:document.removeEventListener.bind(document),this.videoAddEventListener=null!==(Bi=null!==(wi=null===(li=_s?.videoAddEventListener)||void 0===li?void 0:li.bind(k))&&void 0!==wi?wi:null===(mi=_s?.documentAddEventListener)||void 0===mi?void 0:mi.bind(document))&&void 0!==Bi?Bi:k.addEventListener.bind(k),this.videoRemoveEventListener=null!==(Vr=null!==(sr=null===(qi=_s?.videoRemoveEventListener)||void 0===qi?void 0:qi.bind(k))&&void 0!==sr?sr:null===(Ar=_s?.documentRemoveEventListener)||void 0===Ar?void 0:Ar.bind(document))&&void 0!==Vr?Vr:k.removeEventListener.bind(k),this.Qf=this.Yf.bind(this),this.Xf=this.jf.bind(this),this.Jf=this.Zf.bind(this),this.tp=this.sp.bind(this),this.ep=this.np.bind(this),this.hp=this.op.bind(this),this.ap=this.cp.bind(this),this.lp=this.up.bind(this),this.Ap=this.vp.bind(this),this.fp=this.pp.bind(this),this.mp=this.gp.bind(this),this.wp=this.Sp.bind(this),this.bp=this.kp.bind(this),this.yp=!!he.windowedStreaming,this.cursorType=null!==(Xo=null!==(Br=function(){switch(Hn.cursor){case"hw":return 1;case"sw":return 0;case"free":return 2;default:return}}())&&void 0!==Br?Br:he.cursorType)&&void 0!==Xo?Xo:this.yp?2:0,l.Log.i("{70cc40b}","{3277c0e}",this.cursorType),this.Ip={Cp:!1,Ep:0===this.cursorType&&!he.allowUnconfined,Tp:0,Mp:0,Pp:0,Dp:0,style:"",cursor:this.gf[0]},this.Rp={Np:1,xp:!1,Op:!1,Bp:!1},this.Fp=["image-set","-webkit-image-set"].find(zs=>CSS.supports("cursor",`${zs}(url(image.bmp) 2x) 0 0, auto`)),0===this.cursorType?(this.Lp=this.Up(this.Af),this.Lp.style.visibility="hidden",this.Lp.style.display="none"):this.Lp=document.createElement("canvas"),this.Gp(),this.Hp(),this.yf="onpointerrawupdate"in this.Af,this.If=ae(),this.Cf=this.If&&"getCoalescedEvents"in PointerEvent.prototype&&!(we.browser===l.PlatformBrowser.FIREFOX),l.Log.i("{70cc40b}","{f30b8ee}",this.Cf?"supported":"not supported"),this.yf){const zs=function(){const ga=Hn.ko.mouseCoalesceInterval;if(void 0!==ga)return new Map([[0,0],[4,1],[8,2],[16,3]]).get(ga)}();void 0!==zs?this.Vp(zs):On(we)?this.Vp(3):this.Vp(1),l.Log.i("{70cc40b}","{20be0c0}",this.Df,void 0!==zs?" (overridden)":"")}this.Ef=null!==(Do=he.unadjustedMovement)&&void 0!==Do?Do:this.Wp();const Ta=On(we)&&zr(this.Rs,84,0,4147,94)&&!zr(this.Rs,88,0,4324,139),ls=fi(this.Rs)||!Ta||!zr(this.Rs,84,0,4147,94);this.Qo=(null!==(Lo=Hn.Qo)&&void 0!==Lo?Lo:ls)?new rn:new To,["pointerlockchange","mozpointerlockchange"].forEach(zs=>this.documentAddEventListener(zs,this.fp)),["pointerlockerror","mozpointerlockerror"].forEach(zs=>this.documentAddEventListener(zs,this.mp)),this.pf._p(0,this.wp),this.pf._p(2,this.bp),this.qp=!(!hn(this.Rs)&&!Fi(this.Rs)&&(!pr(we)||zr(we,99,0,4844,44)||Ji(we))&&(!Zt(we)||!Ji(we))),1===this.cursorType&&this.$p(1),this.zp=1===this.cursorType&&(null===(wr=null!==(ir=Hn.pointerLockEscape)&&void 0!==ir?ir:Hn.ko.pointerLockEscape)||void 0===wr||wr),this.Kp=1===this.cursorType&&Lt(we),l.Log.d("{70cc40b}","{ec7c4c5}")}uninitialize(){["pointerlockerror","mozpointerlockerror"].forEach(h=>this.documentRemoveEventListener(h,this.mp)),["pointerlockchange","mozpointerlockchange"].forEach(h=>this.documentRemoveEventListener(h,this.fp)),this.pf.Qp(0,this.wp),this.pf.Qp(2,this.bp),this.Yp(),this.Lp.remove()}Xp(h){this.Rp.xp&&(this.Rp.xp=!1,this.jp(this.Ip.Cp,this.Ip.Tp,this.Ip.Mp))}uv(){0===this.Pf&&this.gd.Zc()}jf(h){ei(h)||(h.preventDefault(),this.Yf(h),2===this.cursorType&&this.Af.setPointerCapture(h.pointerId))}Yf(h){this.Jd.Jp(),this.pf.Zp(!0),this.bf=!0;const b=this.vr.kr(h.timeStamp);!this.Gf()||this.Hf()?(this.Kp&&this.Ip.Cp&&(this.Yp(),this.Bf=window.setTimeout(this.Uf,500)),Vo.getInstance().wo(),this.Ec(h.button,b)):(this.Vf(),this.Ip.Cp&&(this.tm(h.offsetX,h.offsetY),this.im(),this.gd.Dc(!0,this.Ip.Tp,this.Ip.Mp,b)))}Yp(){this.Bf&&(window.clearTimeout(this.Bf),this.Bf=0)}sp(h){ei(h)||(h.preventDefault(),this.Zf(h))}Zf(h){Vo.getInstance().wo(),this.Tc(h.button,this.vr.kr(h.timeStamp))}np(h){this.yp&&h.target!==this.Af||(this.gd.Pc(h.deltaY,this.vr.kr(h.timeStamp)),h.preventDefault())}vp(h){if(!ei(h)){if(h.preventDefault(),-1!==h.button){let b;switch(h.button){case 1:b=2;break;case 2:b=1;break;default:b=h.button}const k=this.vr.kr(h.timeStamp);h.buttons&1<<b?this.Ec(h.button,k):this.Tc(h.button,k)}this.up(h)}}up(h){this.tm(h.offsetX,h.offsetY),this.gd.Dc(!0,this.Ip.Tp,this.Ip.Mp,this.vr.kr(h.timeStamp))}sm(h){if(h instanceof PointerEvent){if(ei(h))return;h.preventDefault()}let b=performance.now();if(!this.pf.nm()||this.Gf()&&!this.Hf()||0===h.movementX&&0===h.movementY)return;this.ia(!0);let k=1,ee=0;const he=this.Ip.Cp,we=this.jd.Xc,ze=pt=>{if(!this.Qo.update(pt.movementX,pt.movementY,pt.timeStamp))return;let wt=this.Qo.Xv(),$t=this.Qo.jv();if(he)this.Ip.Ep?this.hm(wt,$t):this.tm(pt.offsetX,pt.offsetY),this.Rp.xp=!0,wt=this.Ip.Tp,$t=this.Ip.Mp;else if(this.qp){let zt=this.Rp.Np;wt+=this.Ip.Pp,$t+=this.Ip.Dp,this.Ip.Pp=wt%zt,this.Ip.Dp=$t%zt,wt/=zt,$t/=zt}const an=ee%k!=0;this.jd.Bl(he,wt,$t,this.vr.kr(pt.timeStamp),0,b,an),ee++};if(h instanceof PointerEvent&&this.Cf){const pt=h.getCoalescedEvents();if(0==pt.length)ze(h);else{const wt=this.jd.Bc.length,$t=pt.length>2*wt?1:Math.max(wt-this.jd.Xc-4,1);pt.length>$t&&(k=Math.ceil(pt.length/$t),this.ec.om+=pt.length);for(let an of pt)ze(an)}}else ze(h);this.gd.hl>1&&0===we&&this.jd.Xc>we&&this.jd.Ol(we,this.jd.Xc-we)}op(h){this.sm(h)}cp(h){const b=this.gd._c();if(this.sm(h),!b&&this.gd._c()){const k=performance.now()-this.gd.ol;k>=this.Df?this.gd.Zc():this.gd.Jc(this.Df-k)}}tm(h,b){this.rm(h-this.Zd.qf,b-this.Zd.$f)}hm(h,b){const k=this.qp?this.Rp.Np:1;this.rm(this.Ip.Tp+h/k,this.Ip.Mp+b/k)}am(h,b){this.rm(h*this.Zd.fa/na,b*this.Zd.pa/na)}rm(h,b){this.Ip.Tp=Math.min(Math.max(h,0),this.Zd.fa),this.Ip.Mp=Math.min(Math.max(b,0),this.Zd.pa),this.im()}Up(h){let b=document.createElement("canvas");return b.style.touchAction="none",b.style.pointerEvents="none",b.style.willChange="transform",h.insertAdjacentElement("afterend",b),b}Gp(){var h,b;if(0!==this.cursorType)return;const k=this.Af.getBoundingClientRect(),ee=null!==(b=null===(h=this.Af.parentElement)||void 0===h?void 0:h.getBoundingClientRect())&&void 0!==b?b:new DOMRect(0,0,0,0),he=k.left-ee.left+this.Zd.Kf*this.Zd.qf,we=k.top-ee.top+this.Zd.Kf*this.Zd.$f;this.Lp.style.position="absolute",this.Lp.style.left=he+"px",this.Lp.style.top=we+"px",this.Lp.style.zIndex="200"}va(h){if(this.Zd.fa&&this.Zd.pa){const k=h.pa/this.Zd.pa;this.Ip.Tp*=h.fa/this.Zd.fa,this.Ip.Mp*=k}this.Zd=h,this.Gp(),this.Hp()}Hp(){const h=this.Lp.getContext("2d");if(h){this.Rp.dm=h;const b=window.devicePixelRatio;if(this.Rp.Np!=b){l.Log.i("{70cc40b}","{b786ba9}",b),this.Rp.Np=b,this.Rp.Op=!0;for(const k of this.mf.values())k.style=void 0;this.im()}}}lm(h){return h>=1.499&&h<1.999?2:Math.max(1,Math.floor(h+.001))}jp(h,b,k){if(0===this.cursorType)if(this.xf&&h){const ee=this.lm(this.Rp.Np/this.Ip.cursor.scale);this.Rp.Op&&(this.Rp.Op=!1,this.um(ee)),this.Am(b,k,ee),this.vm()}else this.fm()}pm(h){const b=()=>{if(this.Ip.gm=void 0,this.Ip.cursor=h,this.Rp.Op=!0,0===this.cursorType)this.im();else{if(!h.style){const k=this.Rp.Np;let ee=1,he=1;this.wm()&&(ee=this.lm(k/h.scale),he=ee/k),this.um(ee),h.style=this.Sm(this.Lp.toDataURL("image/bmp"),h.lf*he,h.uf*he)}this.Ip.style=h.style,this.bm()}};if(0!==this.cursorType&&h.style)b();else if(tr(h))if(h.image)0!==h.image.width||0!==h.image.height?b():this.Ip.gm=h.image;else{const k=new Image;h.image=k,!k.decode&&k.decoding&&(k.decoding="sync"),k.src=this.km(h.cf,h.df),k.decode?(this.Ip.gm=k,k.decode().then(()=>{this.Ip.gm===k&&b()}).catch(ee=>{this.Ip.gm===k&&(this.Ip.gm=void 0,this.pm(this.gf[1]))})):b()}else this.Ip.cursor=h,this.fm()}um(h){const b=this.Ip.cursor;if(!b.image)return void l.Log.e("{70cc40b}","{bc9bdcd}");const k=this.Rp.Np,ee=this.Rp.dm,he=b.image.width*h,we=b.image.height*h,ze=Math.ceil(he),pt=Math.ceil(we);ze!==this.Lp.width||pt!==this.Lp.height?(this.Lp.style.width=he/k+"px",this.Lp.style.height=we/k+"px",this.Lp.width=ze,this.Lp.height=pt,ee.scale(1,1),ee.imageSmoothingEnabled=!1):ee.clearRect(0,0,this.Lp.width,this.Lp.height),ee.drawImage(b.image,0,0,he,we)}Am(h,b,k){const ee=this.Ip.cursor,he=this.Rp.Np,we=k/he;let ze=(h*this.Zd.Kf-ee.lf*we)*he,pt=(b*this.Zd.Kf-ee.uf*we)*he;this.Rf||(ze=Math.round(ze),pt=Math.round(pt)),ze/=he,pt/=he,this.Lp.style.transform="translate("+ze+"px, "+pt+"px)"}vm(){this.Rp.Bp||(this.Rp.Bp=!0,this.Lp.style.visibility="visible")}fm(){this.Rp.Bp&&(this.Rp.Bp=!1,this.Lp.style.visibility="hidden")}Wf(h){let b=new Uint8Array(h.data);switch(b[0]){case 0:case 1:let k=b[1],ee=b[2],he=b[3],we=b[4],ze=5,pt=()=>{const yn=b[ze]+(b[ze+1]<<8);return ze+=2,yn},wt="";if(0!=we){let yn=b.subarray(ze,ze+we);ze+=we,wt=new TextDecoder("utf-8").decode(yn)}const $t=pt();let an,zt,mn,kn="";if(0!=$t){let yn=b.subarray(ze,ze+$t);ze+=$t,kn=new TextDecoder("utf-8").decode(yn)}ze+4<=b.byteLength&&(an=pt(),zt=pt()),ze+2<=b.byteLength&&(mn=pt()/100),0==b[0]?this.$p(k,an,zt):this.ym(k,ee,he,wt,kn,an,zt,mn);break;case 10:this.vf.allowUnconfined&&this.Im(1==b[1])}}$p(h,b,k){h>=this.gf.length?l.Log.e("{70cc40b}","{de8eabe}",h):this.Cm(this.gf[h],b,k)}ym(h,b,k,ee,he,we,ze,pt){let wt;if(he.length>0)wt={cf:he,lf:b,uf:k,df:ee,scale:pt||1},this.mf.set(h,wt);else if(wt=this.mf.get(h),void 0===wt)return void l.Log.e("{70cc40b}","{0196577}",h);this.Cm(wt,we,ze)}Cm(h,b,k){const ee=tr(h);!this.Ip.Cp&&ee&&void 0!==b&&void 0!==k&&this.am(b,k),this.Em(ee),this.Vf(),this.pm(h),this.bm()}Sm(h,b,k){const he=this.Fp;return he?`${he}(url(${h}) ${this.Rp.Np}x) ${b} ${k}, auto`:`url(${h}) ${b} ${k}, auto`}wm(){return void 0!==this.Fp}km(h,b){return`data:${b};base64,${h}`}bm(){this.Af.style.cursor=!this.Tm()||this.Gf()&&!this.Hf()||2==this.cursorType?"default":0===this.cursorType?"none":this.Ip.style}im(){this.Rp.xp=!0}Em(h){this.Ip.Cp=h,h||(this.Ip.Pp=0,this.Ip.Dp=0)}Im(h){this.Ip.Ep=h,this.Vf()}kp(h){this.bf=h,this.Vf(),this.bm()}pp(h){if(document.pointerLockElement instanceof HTMLElement)return this.Ff=null,this.Lf=void 0,this.wf=2,void this.Xd.Mm();const b=2===this.wf;this.wf=0,this.Pm();const k=()=>{l.Log.i("{70cc40b}","{d4b3de3}"),this.bf=!1,this.bm()},ee=this.Xd.Dm();if(!this.zp||!b||ee)return b&&k(),void this.Xd.Rm(!1);this.Of=window.setTimeout(()=>{k(),this.Nm(!0)},50)}Nm(h){0!==this.Of&&(this.Pm(),this.Xd.Rm(h))}Pm(){0!==this.Of&&(window.clearTimeout(this.Of),this.Of=0)}gp(h){this.Mf||(this.wf=0,this.Ef?(this.Ef=!1,l.Log.e("{70cc40b}","{7599808}"),this.Vf()):(l.Log.e("{70cc40b}","{d633cd1}"),this.xm()))}xm(){this.bm()}Gf(){var h,b;return!ke(this.Rs)&&this.Tm()&&2!=this.cursorType&&this.pf.nm()&&(!this.Ip.Cp||this.Ip.Ep)&&(null===(b=null===(h=this.Jd.Om())||void 0===h?void 0:h.bf())||void 0===b||b)}Hf(){return 1===this.wf||2===this.wf}Vf(){const h=this.Gf(),b=this.Hf(),k=this.Ef&&!this.Ip.Cp;if(!this.bf||!h||b&&k===this.Tf)1==this.wf||!h&&b&&(document.exitPointerLock?(this.wf=3,document.exitPointerLock()):this.wf=0);else{const he=this.Af;if(he.requestPointerLock&&this.Sf<3){if(1===this.wf){if(k===this.Ff)return;if(this.Lf)return void this.Lf.then(()=>{this.Vf()});l.Log.e("{70cc40b}",this.Mf?"{d70c0a5}":"{da98287}")}this.wf=1,this.Ff=k;const ze=he.requestPointerLock({unadjustedMovement:k});this.Lf=ze,ze&&(this.Mf=!0,ze.then(()=>{this.wf=2,this.Ff=null,this.Lf=void 0,this.Tf=k,this.Sf=0}).catch(pt=>{this.wf=0,"NotSupportedError"===pt.name&&k?(l.Log.i("{70cc40b}","{08fd91e}"),this.Ef=!1,this.Vf()):("UnknownError"==pt.name?(this.Sf++,l.Log.w("{70cc40b}","{9f2ba9f}",this.Sf)):l.Log.e("{70cc40b}","{4cdd98f}",pt.name,pt.message),this.xm())}))}else this.wf=2}}AA(){this.nu||(this.nu=!0,yt(this.Rs)||this.Bm(),this.documentAddEventListener("wheel",this.ep,this.Nf),this.Fm(),0===this.cursorType&&(this.Lp.style.display="block"),this.Vf(),this.bm())}lA(){this.nu&&(this.Lm(),this.nu=!1,yt(this.Rs)||this.Um(),this.documentRemoveEventListener("wheel",this.ep,this.Nf),this.Gm(),0===this.cursorType&&(this.Lp.style.display="none"),this.Vf(),this.bm(),this.Pm())}Tm(){return this.nu}Vp(h){if(this.yf&&this.Pf!==h)switch(this.nu&&this.Gm(),this.Pf=h,this.nu&&this.Fm(),h){case 1:this.Df=4;break;case 2:this.Df=8;break;case 3:this.Df=16;break;default:this.Df=0}}Fm(){2==this.cursorType?(this.ff.Qv(this.Hm()),this.videoAddEventListener(this.Hm(),this.Vm())):0!==this.Pf?(this.ff.Qv("pointerrawupdate"),this.videoAddEventListener("pointerrawupdate",this.ap)):(this.ff.Qv(this.Hm()),this.videoAddEventListener(this.Hm(),this.hp))}Gm(){2==this.cursorType?this.videoRemoveEventListener(this.Hm(),this.Vm()):0!==this.Pf?this.videoRemoveEventListener("pointerrawupdate",this.ap):this.videoRemoveEventListener(this.Hm(),this.hp)}static Wm(h){h.preventDefault()}Bm(){2==this.cursorType&&this.If?(this.ff.Yv("pointerdown","pointerup"),this.videoAddEventListener("pointerdown",this.Xf),this.videoAddEventListener("pointerup",this.tp)):(this.ff.Yv("mousedown","mouseup"),this.videoAddEventListener("mousedown",this.Qf),this.videoAddEventListener("mouseup",this.Jf)),rt(this.Rs)||this.videoAddEventListener("contextmenu",Rt.Wm)}Um(){2==this.cursorType&&this.If?(this.videoRemoveEventListener("pointerdown",this.Xf),this.videoRemoveEventListener("pointerup",this.tp)):(this.videoRemoveEventListener("mousedown",this.Qf),this.videoRemoveEventListener("mouseup",this.Jf)),rt(this.Rs)||this.videoRemoveEventListener("contextmenu",Rt.Wm)}Sp(h){h?(this.pf._m()&&(this.bf=!0,this.Vf()),this.Hp()):(this.Vf(),this.Nm(!1))}Lm(){if(this.kf.size>0){l.Log.i("{70cc40b}","{041c67f}",this.kf.size);for(const h of this.kf)this.Tc(h,0)}}Hm(){return this.If?"pointermove":"mousemove"}Vm(){return this.If?this.Ap:this.lp}Ec(h,b){this.kf.has(h)||(this.kf.add(h),this.gd.Ec(h,b))}Tc(h,b){this.kf.has(h)&&(this.kf.delete(h),this.gd.Tc(h,b))}ia(h){this.xf!=h&&(this.im(),this.xf=h)}qm(h){this.Rf=h,this.im()}$m(){return this.Ip}zm(){this.Ef=!this.Ef,this.Jd.Km("UnadjustedMovement: "+(this.Ef?"ON":"OFF")),l.Log.i("{70cc40b}","{796c5cb}",this.Ef?"ON":"OFF")}Qm(){let h="UNSUPPORTED";if(this.yf)switch(this.Vp((this.Pf+1)%4),this.Pf){case 1:h="4ms";break;case 2:h="8ms";break;case 3:h="16ms";break;default:h="OFF"}this.Jd.Km("Non-vsync mouse events: "+h),l.Log.i("{70cc40b}","{bac28ff}",h)}Wp(){return!(pr(this.Rs)&&(fi(this.Rs)&&(this.yp||!zr(this.Rs,84,0,4147,78))||(On(this.Rs)||Ji(this.Rs))&&!zr(this.Rs,86,0,4240,198)))}Ym(){return`${this.Ip.Cp?"local":"alt"} ${this.Hf()?"locked":"unlocked"}`}}function ei(x){return!x.isPrimary||"touch"===x.pointerType||"pen"===x.pointerType}function tr(x){return"none"!==x.style}const Ur=65535;class lo{constructor(h,b,k,ee){if(this.Xm=!1,this.id=h.id,this.jm=h.rect,h.flags)for(const he of h.flags)1&he&&(this.Xm=!0);this.Jm(b,k,ee)}Zm(h,b){return this.clientRect.left<=h&&this.clientRect.right>=h&&this.clientRect.top<=b&&this.clientRect.bottom>=b}Jm(h,b,k){this.clientRect={left:this.jm.left*h.fa*k/Ur+b.Hr,top:this.jm.top*h.pa*k/Ur+b.vertical,right:this.jm.right*h.fa*k/Ur+b.Hr,bottom:this.jm.bottom*h.pa*k/Ur+b.vertical}}getClientRect(){return this.clientRect}}class wo{constructor(h,b,k){this.tg=h,this.Jh=b,this.telemetry=k,this.regions=[],this.ig=-1,this.sg=!1}va(h){if(this.eg=h,0===this.regions.length||!this.eg)return;const b=this.tg.ng();for(const k of this.regions)k.Jm(this.eg,b,this.eg.Kf)}hg(h){if(this.sg===h||(this.sg=h,!this.eg))return!1;const b=this.tg.ng();if(h){if(this.regions.length>0){for(const k of this.regions)k.Jm(this.eg,b,this.eg.Kf);if(-1===this.ig)return this.ig=0,!0;-1!==this.ig&&this.og()}}else if(-1!==this.ig)return this.rg(),!0;return!1}ag(h){const b=JSON.stringify(h);l.Log.d("{b61561f}","{012742b}",b),this.telemetry.Ke("EditBoxList",b);const k=this.tg.ng();this.regions=[];for(const ee of h)this.regions.push(new lo(ee,this.eg,k,this.eg.Kf));0===h.length&&this.sg&&(this.dg(1),this.rg()),this.sg&&this.cg()&&this.og()}lg(h,b){if(0===this.regions.length)return;const k=this.ig;this.ug(h,b),-1!==this.ig?this.ig===k?this.dg(2):(this.dg(0),-1!==k?(l.Log.d("{b61561f}","{28b6a30}"),this.og(!0)):this.og()):-1!==k&&this.dg(1)}og(h=!1){if(-1===this.ig||!this.eg)return;const b=this.regions[this.ig].getClientRect();if(!b)return;const k=window.innerHeight-b.bottom;!h&&k<0&&Math.abs(this.eg.offsetY-k)>5||k<0&&this.tg.Ag(this.eg.offsetX,k,this.eg.Kf)}vg(){return this.regions.length>0}cg(){return-1!==this.ig}rg(){this.ig=-1}ug(h,b){this.ig=this.regions.findIndex(k=>k.Zm(h,b))}dg(h){this.Jh.emit("EditBoxEvent",{action:h})}fg(h,b){if(0===this.regions.length)return;const k=this.ig;this.ug(h,b),-1!==this.ig?this.regions[this.ig].Xm?l.Log.d("{b61561f}","{ced563b}"):this.dg(2):-1!==k&&this.dg(1)}}const Lr=[{pg:8,mg:128,gg:da(),wg:27,Sg:[]},{pg:46,mg:128,gg:da(),wg:27,Sg:[]}];class ns{constructor(h,b,k,ee,he,we,ze,pt,wt,$t,an,zt,mn,kn,yn,Qn,li,wi,mi){var Bi,qi,sr,Ar,Vr,Br,Xo,Do,Lo,ir,wr,_s,Ta,ls,zs,ia,ga,nl;this.Jd=h,this.bg=b,this.telemetry=he,this.Jh=we,this.kg=wt,this.yg=$t,this.Rs=an,this.Xd=zt,this.Ig=mn,this.pf=kn,this.vr=Qn,this.Cg=!1,this.Eg=0,this.Tg=new Set,this.Mg=0,this.sg=!1,this.Pg=!1,this.Dg=!1,this.Rg=!0,this.Ng=!1,this.xg=0,this.Og=new Io,this.Fo=!1,this.Bg=0,this.Fg=!1,this.Lg=!0,this.Ug=!1,this.Gg=0,this.Hg=0,this.Vg=0,this.Wg="off",this._g="off",this.qg=new Map,this.$g=new Map,this.zg=!1,this.Kg=0,this.Qg=!1,this.Yg=dl=>{l.Log.d("{8bacfa5}","{9c2578a}"),this.Xg()},this.jg=()=>{this.zg=!0},this.Jg=()=>{this.zg=!1},this.Zd={fa:this.bg.clientWidth||window.screen.width,pa:this.bg.clientHeight||window.screen.height,_f:1,qf:0,$f:0,videoWidth:0,videoHeight:0,zf:0,offsetX:0,offsetY:0,Kf:1};const ua=window.zoneless;this.windowAddEventListener=null!==(qi=null===(Bi=ua?.windowAddEventListener)||void 0===Bi?void 0:Bi.bind(window))&&void 0!==qi?qi:window.addEventListener.bind(window),this.windowRemoveEventListener=null!==(Ar=null===(sr=ua?.windowRemoveEventListener)||void 0===sr?void 0:sr.bind(window))&&void 0!==Ar?Ar:window.removeEventListener.bind(window),this.documentAddEventListener=null!==(Br=null===(Vr=ua?.documentAddEventListener)||void 0===Vr?void 0:Vr.bind(document))&&void 0!==Br?Br:document.addEventListener.bind(document),this.documentRemoveEventListener=null!==(Do=null===(Xo=ua?.documentRemoveEventListener)||void 0===Xo?void 0:Xo.bind(document))&&void 0!==Do?Do:document.removeEventListener.bind(document),this.videoAddEventListener=null!==(ir=null===(Lo=ua?.videoAddEventListener)||void 0===Lo?void 0:Lo.bind(this.bg))&&void 0!==ir?ir:this.bg.addEventListener.bind(this.bg),this.videoRemoveEventListener=null!==(_s=null===(wr=ua?.videoRemoveEventListener)||void 0===wr?void 0:wr.bind(this.bg))&&void 0!==_s?_s:this.bg.removeEventListener.bind(this.bg),this.Zg=this.tw.bind(this),this.iw=this.sw.bind(this),this.ew=this.nw.bind(this),this.wp=this.Sp.bind(this),this.hw=this.ow.bind(this),this.rw=this.aw.bind(this),this.dw=this.cw.bind(this),this.lw=this.uw.bind(this),this.Aw=this.fw.bind(this),this.pw=this.mw.bind(this),this.preventNavigation=!!ze.preventNavigation;const Wl=St(this.Rs);this.gw={mv:Wl?64:128,gv:0,wv:255,Gn:this.ww.bind(this)};const Xl=new un(36);this.gd=new je(this,Xl,yn,this.Zd,this.Jd,k,this.telemetry,this.vr,wi,li),this.ff=new po(this.bg,this.Rs),this.Sw=new Rt(this,h,this.bg,ee,ze,an,this.ff,yn,Xl,this.gd,this.pf,this.vr),this.bw=new wo(this,this.Jh,this.telemetry),pt?el.isSupported()?(this.kw=this.yw(),l.Log.i("{8bacfa5}","{60f3637}")):l.Log.w("{8bacfa5}","{32104d3}"):l.Log.i("{8bacfa5}","{6be89bf}"),Ir.isSupported()&&!gn(this.Rs)&&(this.Iw=this.Cw()),this.Ew=fi(this.Rs),this.du=On(this.Rs),this.Tw=Ji(this.Rs),this.Mw=bn(this.Rs),this.Au=Wt(this.Rs);const xs=Lt(this.Rs),qa=!!ze.windowedStreaming;l.Log.i("{8bacfa5}","{fa2e72c}",qa?"on":"off"),this.Ew?(l.Log.d("{8bacfa5}","{da5ae1d}"),this.Pw=[20,144,145]):this.du||bt(this.Rs)?(l.Log.d("{8bacfa5}","{b7becf9}"),this.Pw=[]):(l.Log.d("{8bacfa5}","{098ce9c}"),this.Pw=[20]),this.pf._p(2,this.ew),window.ResizeObserver?(this.Dw=new ResizeObserver(dl=>{this.ow()}),this.Dw.observe(this.bg)):this.windowAddEventListener("resize",this.hw),(yt(an)||Fi(an))&&window.IntersectionObserver&&(this.Rw=new IntersectionObserver(dl=>{this.ow()},{threshold:[1]}),this.Rw.observe(this.bg)),this.videoAddEventListener("resize",this.hw),this.windowAddEventListener("orientationchange",this.Yg);const ll=window.visualViewport;ll&&(this.Zd.zf=ll.height,ll.addEventListener("resize",this.rw)),this.gd.Pl(this.yg),this.yg.fA(this.telemetry),Hn.Uo&&this.yg.kv(this.gw),this.nw(this.pf._m()),this.Nw(!0),Hn.Bo&&Vo.getInstance().initialize(this.bg,this.Rs),(gn(this.Rs)||this.Mw||yt(this.Rs))&&(this.textInputElement=mi,this.Mw&&(this.Wg=null!==(ls=null===(Ta=this.textInputElement)||void 0===Ta?void 0:Ta.getAttribute("autocapitalize"))&&void 0!==ls?ls:"off",this._g=null!==(ia=null===(zs=this.textInputElement)||void 0===zs?void 0:zs.getAttribute("autocorrect"))&&void 0!==ia?ia:"off",null===(ga=this.textInputElement)||void 0===ga||ga.setAttribute("autocapitalize","off"),null===(nl=this.textInputElement)||void 0===nl||nl.setAttribute("autocorrect","off"))),(Hn.Jo||Hn.qo&&(xs||qa))&&(this.xw(ze.streamingHotkeys),this.Ow()),l.Log.d("{8bacfa5}","{cc9c05b}")}uninitialize(){var h,b,k,ee,he,we;Hn.Uo&&this.yg.yv(this.gw),this.Bw(!1);const ze=this.bg.paused,pt=void 0!==ze?ze?"paused":"playing":"unknown",wt=this.bg.currentTime;(ze||(wt??1)<1)&&this.telemetry.Ke("VideoPaused",pt,wt?.toFixed(2)),l.Log.i("{8bacfa5}","{fdc8bf7}",pt,wt),null===(h=this.Rw)||void 0===h||h.disconnect(),null===(b=this.Dw)||void 0===b||b.disconnect(),this.yg.ZA(this.gd),this.gd.Dl(this.yg),this.toggleRsdmm(!1),this.yg.pA(this.telemetry),this.toggleUserInput(!1),this.gd.stop(),this.windowRemoveEventListener("resize",this.hw),this.windowRemoveEventListener("orientationchange",this.Yg),this.videoRemoveEventListener("resize",this.hw),null===(k=window.visualViewport)||void 0===k||k.removeEventListener("resize",this.rw),this.pf.Qp(2,this.ew),this.Fo&&(this.yg.dA(this.kg),this.kg.Fw(this.bg)),this.Sw.uninitialize(),null===(ee=this.Lw)||void 0===ee||ee.stop(),this.Nw(!1),this.Uw(),null===(he=this.textInputElement)||void 0===he||he.setAttribute("autocapitalize",this.Wg),null===(we=this.textInputElement)||void 0===we||we.setAttribute("autocorrect",this._g),l.Log.d("{8bacfa5}","{b6b2756}")}Cw(){return new Ir(this.bg,this.videoAddEventListener,this.videoRemoveEventListener,this,this.vr)}yw(){return new el(this.bg,this.videoAddEventListener,this.videoRemoveEventListener,this.gd,this,this.Rs,this.vr)}Nw(h){h?this.pf._p(0,this.wp):this.pf.Qp(0,this.wp)}Gw(h){if(this.du&&20===h.keyCode||yt(this.Rs)&&20!==h.keyCode)return;let b=0;b|=16,!this.Hw()&&h.getModifierState("CapsLock")&&(b|=1),this.Ew&&(b|=32,b|=64,h.getModifierState("NumLock")&&(b|=2),h.getModifierState("ScrollLock")&&(b|=4)),b!=this.Eg&&(this.Eg=b,this.gd.lc(b))}Xp(h){this.Sw.Xp(h)}uv(){this.Sw.uv(),this.yg.uv()}Al(){this.gd.Nc()&&this.yg.Al()}ow(h){this.va(this.bg)}aw(h){this.Zd.zf=window.visualViewport.height,this.Vw(this.Zd.offsetX,this.Zd.offsetY,this.Zd.Kf)}cw(h){l.Log.d("{8bacfa5}","{b6fbd34}"),history.pushState(null,document.title,location.href)}Ww(h){var b;return this.Rg?this.Mw?(null!==(b=h.code)&&void 0!==b&&b.length?ca.get(h.code):ca.get(h.key))??0:(h.code?ca.get(h.code):Zo.get(h.key))??0:h.keyCode}_w(h){return"CapsLock"==h.code&&("Alphanumeric"==h.key||"Katakana"==h.key||"Hiragana"==h.key)||"KanaMode"==h.code&&("Hiragana"==(b=h.key)||"Katakana"==b||"Romaji"==b||"KanaMode"==b);var b}qw(h){return"Lang1"==h.code||"HangulMode"==h.key}Hw(){return this.Lg&&this.Tw&&this.Ug}$w(h){return!!this.Hw()&&"CapsLock"==h.code}tw(h){var b,k;let ee=this.zg;this.Fg=!1;const he=this.vr.kr(h.timeStamp);if(!this.pf.nm())return;this.zw(h)&&h.preventDefault();let we=this.$w(h);we&&(ee=ee||we),this.Gw(h);const ze=this._w(h);ee=ee||ze;const pt=this.qw(h);if(ee=ee||pt,this.Pw.includes(h.keyCode)&&!ze&&!we)return;const wt=we?160:this.Ww(h);if(0===wt)return this.Cg=!0,void this.Jh.emit("TextComposition",{compositionText:h.key,imeRecommendation:!0});if(this.Cg&&(this.Cg=!1,this.Jh.emit("TextComposition",{compositionText:""})),this.Tg.has(wt))return;this.Tg.add(wt);let $t=!1;const an=this.Jd.Om();let zt;if(187==wt)$t=!this.Jd.Kw();else if(h.ctrlKey&&h.altKey)if(!Hn.isInternalUser&&!Hn.stutterIndicator||119!=wt&&219!=wt)if(Hn.isInternalUser)switch(wt){case 48:this.Sw.Qm();break;case 49:this.Jd.Qw();break;case 56:this.Jd.Yw();break;case 68:this.Jd.Xw();break;case 71:this.Fw();break;case 76:an?.jw(),this.Sw.Vf();break;case 83:this.Ig.Jw();break;case 115:this.Jd.Zw();break;case 116:this.Jd.tS();break;case 117:this.Jd.toggleOnScreenStats(h.shiftKey);break;case 118:case 192:this.Jd.iS();break;case 120:this.Sw.zm();break;case 189:this.Rg=!this.Rg,this.Jd.Km("Position dependent keys: "+(this.Rg?"ON":"OFF")),l.Log.i("{8bacfa5}","{61d2ab5}",this.Rg?"ON":"OFF");break;case 77:this.Jd.sS();break;case 81:h.shiftKey&&this.Jd.eS();break;default:$t=!0}else $t=!0;else this.Jd.toggleStutterIndicator();else if(zt=this.nS(h,wt)){let mn=this.hS(h);for(const kn of zt.gg){const yn=mn&~Mt(kn);mn!=yn&&(mn=yn,this.gd.Vc(4,kn,mn,he)),this.Tg.delete(kn)}for(const kn of zt.Sg)mn|=Mt(kn),this.gd.Vc(3,kn,mn,he);this.gd.Vc(3,zt.wg,mn,he),this.gd.Vc(4,zt.wg,mn,he);for(const kn of zt.Sg)mn&=~Mt(kn),this.gd.Vc(4,kn,mn,he);this.Tg.delete(wt)}else an?.isVisible()?13==wt?(an.toggle(),this.Sw.Vf()):82==wt?(an.reset(),this.Sw.Vf()):65==wt?an.oS():83==wt?an.rS():67==wt?an.aS():77==wt?an.dS():$t=!0:$t=!0;if($t&&(Vo.getInstance().wo(),this.gd.Vc(3,wt,this.hS(h),he)),"Hankaku"!=h.key&&"Zenkaku"!=h.key||192==wt&&(ee=!0),this.Tw&&h.metaKey&&!zt&&(ee=!0),this.Mw&&("Backspace"==h.code&&(ee=!0),""==h.code&&"Enter"==h.key)){const mn=new CompositionEvent("compositionend",{data:null===(b=this.textInputElement)||void 0===b?void 0:b.value});null===(k=this.textInputElement)||void 0===k||k.dispatchEvent(mn)}ee&&(this.gd.Vc(4,wt,this.hS(h),he),this.Tg.delete(wt))}Ow(){var h,b,k,ee,he,we,ze;for(const pt of this.$g.values())l.Log.i("{8bacfa5}","{e7c6e9b}",null===(h=pt.pg)||void 0===h?void 0:h.toString(16),null===(b=pt.mg)||void 0===b?void 0:b.toString(16),null===(k=pt.wg)||void 0===k?void 0:k.toString(16),null===(ee=pt.Sg)||void 0===ee?void 0:ee.map(wt=>wt.toString(16)));for(const pt of this.qg.values())l.Log.i("{8bacfa5}","{b5e3a31}",pt.cS,null===(he=pt.mg)||void 0===he?void 0:he.toString(16),null===(we=pt.wg)||void 0===we?void 0:we.toString(16),null===(ze=pt.Sg)||void 0===ze?void 0:ze.map(wt=>wt.toString(16)))}xw(h){if(h)for(const b of h){const k=b.remote.code;if(!k)continue;const ee=ca.get(k);if(!ee)continue;const he=_a(b.remote.modifiers),we=b.local.key,ze=b.local.code;if(ze){const pt=ca.get(ze);if(!pt)continue;this.$g.set(pt,{pg:pt,mg:b.local.modifiers,gg:da(),wg:ee,Sg:he})}else we&&this.qg.set(we,{cS:we,mg:b.local.modifiers,gg:da(),wg:ee,Sg:he})}else for(const b of Lr)b.cS?this.qg.set(b.cS,b):b.pg&&this.$g.set(b.pg,b)}nS(h,b){if(!(h.ctrlKey||h.shiftKey||h.metaKey||h.altKey))return;let k=this.$g.get(b);if(k||(k=this.qg.get(h.key)),k){let ee=k.mg;128==ee&&(ee=this.Tw?4:1);const he=h.ctrlKey,we=h.altKey,ze=h.metaKey,pt=h.shiftKey;if((1&ee?he:!he)&&(2&ee?we:!we)&&(4&ee?ze:!ze)&&(8&ee?pt:!pt))return k}}sw(h){let b=!1;const k=this.vr.kr(h.timeStamp);if(this.Mw&&""==h.code&&"Unidentified"==h.key&&!this.Fg)return this.gd.Vc(3,8,0,k),void this.gd.Vc(4,8,0,k);let ee=this.$w(h);if(ee&&(b=b||ee),this.Gw(h),this.Pw.includes(h.keyCode)&&!ee)return;const he=ee?160:this.Ww(h);b&&(this.gd.Vc(3,he,this.hS(h),k),this.Tg.add(he)),this.Tg.has(he)&&(this.Tg.delete(he),Vo.getInstance().wo(),this.gd.Vc(4,he,this.hS(h),k))}va(h){var b;if(h.videoWidth<=0||h.videoHeight<=0)return;let k,ee,he=1,we=0,ze=0;h.clientWidth/h.clientHeight>h.videoWidth/h.videoHeight?(he=h.clientHeight/h.videoHeight,k=h.videoWidth*he,ee=h.videoHeight*he,ze=(h.clientWidth-k)/2):(he=h.clientWidth/h.videoWidth,k=h.videoWidth*he,ee=h.videoHeight*he,we=(h.clientHeight-ee)/2);let wt=1,$t=1;this.Zd.fa&&this.Zd.pa&&(wt=k/this.Zd.fa,$t=ee/this.Zd.pa),this.Zd.fa=k,this.Zd.pa=ee,this.Zd._f=he,this.Zd.$f=we,this.Zd.qf=ze,this.Zd.videoWidth=h.videoWidth,this.Zd.videoHeight=h.videoHeight,this.Vw(this.Zd.offsetX*wt,this.Zd.offsetY*$t,this.Zd.Kf),this.Sw.va(this.Zd),null===(b=this.kw)||void 0===b||b.va(this.Zd,this.ng(),this.Zd.Kf),this.Ig.va(this.Zd.$f,this.Zd.qf),this.bw.va(this.Zd),this.Xg()}nw(h){if(l.Log.d("{8bacfa5}","{77df54c}",h?"fullscreen":"not fullscreen"),this.ow({}),h){if(window.isSecureContext){const b=window.navigator.keyboard;b&&b.lock&&b.lock(["Escape","F11","BrowserBack","BrowserForward","BrowserRefresh","BrowserHome","BrowserFavorites","BrowserSearch","BrowserStop","Sleep","Power","WakeUp","KeyT","KeyZ","Slash","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","KeyM","KeyD","KeyN","KeyS","KeyK","KeyL","Space","PrintScreen","LaunchApp1","LaunchApp2","LaunchMail","Comma","Semicolon","ArrowLeft","ArrowRight","BracketLeft","BracketRight","KeyW","KeyQ","KeyR","KeyY","KeyO","KeyP","KeyF","KeyG"])}this.bg.onclick=null,this.bg.removeAttribute("controls")}else if(this.lS(),window.isSecureContext){const b=window.navigator.keyboard;b&&b.unlock&&b.unlock()}}uS(){this.Dg||(this.Dg=!0,history.pushState(null,document.title,location.href),this.windowAddEventListener("popstate",this.dw))}AS(){this.Dg&&(this.windowRemoveEventListener("popstate",this.dw),history.back(),this.Dg=!1)}vS(){return this.kw&&!this.sg}AA(h){var b,k,ee,he,we,ze,pt;const wt=!this.Tm(),$t=(this.Mg^h)&h;return!!$t&&(this.Mg|=$t,4&$t&&(this.fS()?(this.yg.uA(this.ff),this.ff.start()):(this.ff.stop(),this.ff.reset(),this.yg.uA(this.gd))),1&$t&&this.Sw.AA(),2&$t&&(this.documentAddEventListener("keydown",this.Zg),this.documentAddEventListener("keyup",this.iw),null===(b=this.textInputElement)||void 0===b||b.addEventListener("input",this.Aw),null===(k=this.textInputElement)||void 0===k||k.addEventListener("compositionstart",this.pw),null===(ee=this.textInputElement)||void 0===ee||ee.addEventListener("compositionupdate",this.pw),null===(he=this.textInputElement)||void 0===he||he.addEventListener("compositionend",this.pw),this.Bg=0,this.Au&&(null===(we=this.textInputElement)||void 0===we||we.addEventListener("focus",this.jg),null===(ze=this.textInputElement)||void 0===ze||ze.addEventListener("blur",this.Jg))),8&$t&&(this.vS()?this.kw.start():null===(pt=this.Iw)||void 0===pt||pt.start()),wt&&this.preventNavigation&&this.uS(),!0)}lA(h){var b,k,ee,he,we,ze,pt,wt;const $t=this.Mg&h;if(!$t)return!1;this.Mg^=$t;const an=!this.Tm();return 4&$t&&(this.fS()?(this.yg.dA(this.ff),this.ff.stop(),this.ff.reset()):this.yg.dA(this.gd)),1&$t&&this.Sw.lA(),2&$t&&(this.pS(),this.documentRemoveEventListener("keydown",this.Zg),this.documentRemoveEventListener("keyup",this.iw),null===(b=this.textInputElement)||void 0===b||b.removeEventListener("input",this.Aw),null===(k=this.textInputElement)||void 0===k||k.removeEventListener("compositionstart",this.pw),null===(ee=this.textInputElement)||void 0===ee||ee.removeEventListener("compositionupdate",this.pw),null===(he=this.textInputElement)||void 0===he||he.removeEventListener("compositionend",this.pw),this.Au&&(null===(we=this.textInputElement)||void 0===we||we.removeEventListener("focus",this.jg),null===(ze=this.textInputElement)||void 0===ze||ze.removeEventListener("blur",this.Jg))),8&$t&&(null===(pt=this.Iw)||void 0===pt||pt.stop(),null===(wt=this.kw)||void 0===wt||wt.stop(),0!==this.xg&&this.mS(),this.Og.clear()),an&&this.preventNavigation&&this.AS(),!0}toggleUserInput(h,b){if(this.Qg)return;l.Log.d("{8bacfa5}","{2424824}",h,b);const k=b??15;this.Qg=!0,h?this.AA(k):this.lA(k),this.Qg=!1}Tm(){return 0!==this.Mg}ww(){const h=performance.now();h<this.Kg+500?(this.Kg=0,this.toggleRsdmm(!this.Ng)):this.Kg=h}toggleRsdmm(h){Hn.Lo&&h!=this.Ng&&(h?(this.yg.uA(this.ff),this.yg.dA(this.gd),this.ff.start()):(this.ff.stop(),this.ff.reset(),this.yg.uA(this.gd),this.yg.dA(this.ff)),this.Ng=h)}fS(){return this.Ng}Sp(h){h?(this.Xg(),l.Log.d("{8bacfa5}","{cb19d31}")):(l.Log.d("{8bacfa5}","{8744dbe}"),this.lS())}Mm(){}Rm(h){h&&(this.pS(),l.Log.i("{8bacfa5}","{f46c4da}"),this.gd.Vc(3,27,0),this.gd.Vc(4,27,0))}Dm(){return this.Tg.has(27)}gS(h){let b;return yt(this.Rs)&&1===h.key.length&&('!@#$%^&*()~_+{}|:"<>?'.includes(h.key)?b=1:"1234567890`-=[]\\;',./".includes(h.key)&&(b=0)),void 0===b&&h.shiftKey&&!h.code.startsWith("Shift")&&(b=1),b??0}hS(h){let b=0;return h.ctrlKey&&!h.code.startsWith("Control")&&(b|=2),h.altKey&&!h.code.startsWith("Alt")&&(b|=4),h.metaKey&&!h.code.startsWith("Meta")&&(b|=8),b|=this.gS(h),b}wS(){void 0!==this.SS&&(this.toggleUserInput(!1,15&~this.SS),this.SS=void 0),this.Bw(!1),this.Jh.emit("StreamingEvent",{streamingWarnings:{code:4}}),this.gd.Wc(),this.Xd.bS()}kS(){return[this.Sw.Hm(),"pointerdown","touchstart"]}uw(){this.Pg&&this.wS()}Bw(h){this.Pg=h,h&&15!==this.Mg&&(this.SS=this.Mg,this.toggleUserInput(!0)),h?this.kS().forEach(b=>this.documentAddEventListener(b,this.lw)):this.kS().forEach(b=>this.documentRemoveEventListener(b,this.lw))}pS(){if(this.Tg.size>0){l.Log.i("{8bacfa5}","{7998ee8}",this.Tg.size);for(const h of this.Tg)this.gd.Vc(4,h,0);this.Tg.clear()}}lS(){this.pS(),this.Sw.Lm()}getVirtualGamepadHandler(){return this.yg.getVirtualGamepadHandler()}sendTextInput(h){this.gd.sendTextInput(h)}nl(h,b){this.gd.Nc()?this.gd.nl(h,b):l.Log.e("{8bacfa5}","{97db405}")}yS(h){const b=(new TextEncoder).encode(h);this.sendTextInput(b.buffer),this.textInputElement.value=""}IS(h){for(let b=h.length-1;b>=0;b--)if(void 0===Ha.get(h.charAt(b)))return!1;return!0}CS(h){let b=!1;16&this.Eg&&(b=!!(1&this.Eg));for(let k=0;k<h.length;k++){const ee=Ha.get(h.charAt(k));if(!ee)return void l.Log.e("{8bacfa5}","{67554be}",h.charAt(k));const he=ee.vkCode;let we=ee.shift?1:0;he>=65&&he<=90&&b&&(we=~we),we&&this.gd.Vc(3,160,0,performance.now()),this.gd.Vc(3,he,we,performance.now()),this.gd.Vc(4,he,we,performance.now()),we&&this.gd.Vc(4,160,0,performance.now())}this.textInputElement.value=""}mw(h){switch(h.type){case"compositionstart":this.Bg=1;break;case"compositionupdate":!yt(this.Rs)&&this.IS(h.data)||this.Jh.emit("TextComposition",{compositionText:h.data,imeRecommendation:!0});break;case"compositionend":const b=this.Mw?h.data.trim():h.data;if(b.length){const k=yt(this.Rs)||!this.IS(h.data);this.Mw&&!k?this.CS(b):this.yS(b),k&&this.Jh.emit("TextComposition",{compositionText:""})}this.Bg=0}}fw(){this.Fg=!0;let h=this.textInputElement.value;if(1==this.Bg&&(this.Mw&&h.length>1&&(h=h.charAt(h.length-1)),this.Bg=2),this.Mw&&this.IS(h))return this.CS(h),void(this.Bg=0);2!=this.Bg&&this.yS(h)}setVirtualKeyboardState(h){l.Log.i("{8bacfa5}","{60b2d45}",h),this.sg!==h&&(this.sg=h,this.Iw&&this.kw&&(this.sg?(this.kw.stop(),this.Iw.start(),this.bw.hg(!0)):(this.Iw.stop(),1!==this.Zd.Kf&&this.Vw(0,0,1),this.bw.hg(!1),this.kw.start())))}ES(){return this.sg}setKeyboardLayout(h){this.Ug="zh-TW"==h}MS(){return{Hr:this.Zd.fa*(this.Zd.Kf-1)/2,vertical:this.Zd.pa*(this.Zd.Kf-1)/2}}PS(h,b,k){this.Og.DS();const ee=h.getBoundingClientRect(),he=(b.clientX-ee.left)/this.Zd.Kf,we=(b.clientY-ee.top)/this.Zd.Kf;this.ia(!0),this.Sw.tm(he,we);const{Tp:ze,Mp:pt}=this.Sw.$m();this.gd.Dc(!0,ze,pt,k)}Vw(h,b,k){this.Zd.Kf=k;const ee=this.MS();ee.Hr=Math.max(ee.Hr-this.Zd.qf,0),ee.vertical=Math.max(ee.vertical-this.Zd.$f,0);const he=Math.max(0,this.Zd.pa-this.Zd.zf+2*this.Zd.$f);let we=Math.max(ee.vertical+he,0),ze=Math.max(ee.vertical,0);ee.Hr=Math.max(ee.Hr,0),h=Math.min(Math.max(h,-1*ee.Hr),ee.Hr),b=Math.min(Math.max(b,-1*we),ze),this.bg.style.transform=`translate3d(${h}px,${b}px,0px) scale3d(${k},${k},1)`,this.Zd.offsetX=h,this.Zd.offsetY=b,this.Sw.va(this.Zd),this.bw.va(this.Zd)}Ag(h,b,k){const ee=window.visualViewport;ee&&(this.Zd.zf=ee.height),this.Vw(h,b,k)}Er(){return this.Pg?(this.wS(),!1):this.pf.nm()}zw(h){var b;if(null!==(b=this.Jd.Om())&&void 0!==b&&b.isVisible())return!1;if(this.du)switch(h.code){case"Tab":return!h.altKey;case"ZoomToggle":case"SelectTask":case"BrightnessDown":case"BrightnessUp":case"AudioVolumeMute":case"AudioVolumeDown":case"AudioVolumeUp":return!1}return!0}mS(){window.clearTimeout(this.xg),this.xg=0,this.Gg=0,this.Hg=0}Or(h,b,k,ee){switch(this.Og.DS(),ee){case 1:this.bw.lg(k.clientX,k.clientY),this.PS(h,k,b),this.Og.delay(()=>{this.RS(0,b)});break;case 2:this.Gg++,Hn.isInternalUser&&0===this.xg&&(this.xg=window.setTimeout(()=>{2===this.Gg?this.Jd.toggleOnScreenStats():3===this.Gg&&this.Jd.toggleOnScreenStats(!0),this.mS()},300)),this.RS(2,b);break;case 3:this.Hg++,Hn.isInternalUser&&0===this.xg&&(this.xg=window.setTimeout(()=>{2===this.Hg?this.Jd.sS():3===this.Hg&&this.Ig.Jw(),this.mS()},300)),this.RS(1,b);break;case 4:this.RS(3,b);break;case 5:this.RS(4,b)}}RS(h,b){this.Ec(h,b),this.Og.delay(()=>{this.Tc(h,b)})}yr(h,b,k){1===this.Zd.Kf&&(this.PS(h,k,b),this.Og.delay(()=>{this.Ec(0,b)}))}Ir(h,b,k,ee){k&&ee&&this.bw.fg(k.clientX,k.clientY),1===this.Zd.Kf&&(this.Og.DS(),this.Tc(0,b))}Mr(h,b,k){1!==this.Zd.Kf||this.sg||void 0!==this.kw?this.Vw(this.Zd.offsetX+k.deltaX,this.Zd.offsetY+k.deltaY,this.Zd.Kf):this.PS(h,k,b)}scroll(h,b,k){k.length>0&&this.gd.Pc(Math.sign(k[0].deltaY),b)}Pr(h,b,k){if(2===k.length){this.Sw.qm(!0);const ee=k[0],he=k[1],we=Math.hypot(ee.clientX-he.clientX,ee.clientY-he.clientY),ze=Math.hypot(ee.clientX-ee.deltaX-(he.clientX-he.deltaX),ee.clientY-ee.deltaY-(he.clientY-he.deltaY)),pt=this.bg.getBoundingClientRect(),wt=this.MS();let $t=this.Zd.Kf*(we/ze);$t=Math.min(Math.max($t,1),3);let an=(ee.clientX+he.clientX)/2-pt.left;an+=this.Zd.offsetX-wt.Hr-(pt.width-an)/this.Zd.Kf,an=($t/this.Zd.Kf-1)*an*-1,an+=this.Zd.offsetX+(ee.deltaX+he.deltaX)/2;let zt=(ee.clientY+he.clientY)/2-pt.top;zt+=this.Zd.offsetY-wt.vertical-(pt.height-zt)/this.Zd.Kf,zt=($t/this.Zd.Kf-1)*zt*-1,zt+=this.Zd.offsetY+(ee.deltaY+he.deltaY)/2,this.Vw(an,zt,$t)}}Cr(h,b){this.Sw.qm(!1),this.Zd.Kf<1.1&&this.Vw(this.Zd.offsetX,this.Zd.offsetY,1)}ng(){const h=this.bg.getBoundingClientRect();return{Hr:h.left+window.pageXOffset+this.Zd.qf*this.Zd.Kf,vertical:h.top+window.pageYOffset+this.Zd.$f*this.Zd.Kf}}sendKeyEvent(h){if(this.gd.Nc())if(this.Ww(h))"keydown"===h.type?this.tw(h):"keyup"===h.type&&this.sw(h);else if("keydown"===h.type&&1===h.key.length){const b=(new TextEncoder).encode(h.key);this.sendTextInput(b.buffer)}}Xg(){this.Uw(),this.Vg=window.setTimeout(()=>{this.Ig.send()},350)}Uw(){0!==this.Vg&&(window.clearTimeout(this.Vg),this.Vg=0)}Ec(h,b){this.Sw.Ec(h,b)}Tc(h,b){this.Sw.Tc(h,b)}qc(){return!this.Pg||(this.wS(),!1)}NS(){return this.Sw.Ym()}ia(h){this.Sw.ia(h)}Fw(){Hn.isInternalUser&&(this.Fo=!this.Fo,this.kg.Fw(this.bg),this.Fo?this.yg.uA(this.kg):this.yg.dA(this.kg))}startInputPlayback(h){var b;this.Lw||(this.Lw=new Ea(this.gd,this.vr)),null!==(b=this.Lw)&&void 0!==b&&b.initialize(h)&&this.Lw.start()}xS(h){this.bw.ag(h)}}class Io{constructor(){this.hn=0,this.OS=!1}DS(){this.OS=!0,this.BS(),this.FS(),this.OS=!1}clear(){this.Gn=void 0,this.BS()}delay(h){this.OS?h():(this.DS(),this.Gn=h,this.hn=window.setTimeout(()=>{this.hn=0,this.FS()},Io.LS))}FS(){const h=this.Gn;h&&(this.Gn=void 0,h())}BS(){0!==this.hn&&(window.clearTimeout(this.hn),this.hn=0)}}function da(x){let h=[];return h.push(162),h.push(163),h.push(164),h.push(165),h.push(91),h.push(92),h.push(160),h.push(161),h}function _a(x){let h=[];return 1&x&&h.push(162),2&x&&h.push(164),4&x&&h.push(91),8&x&&h.push(160),h}function Mt(x){switch(x){case 162:case 163:return 2;case 164:case 165:return 4;case 91:case 92:return 8;case 160:case 161:return 1}return 0}Io.LS=30;class Dn{constructor(h=0,b=0){this.maxBitrate=h/1e3,this.US=b/1e3,this.GS=250,this.HS=10,this.VS=16,this.qualityScore=100,this.latencyScore=100,this.bandwidthScore=100,this.networkLossScore=100,this.WS=100,this._S=25}qS(h){if(h.currentRoundTripTime>this.GS)this.latencyScore=0;else{const k=100*(this.GS-1e3*h.currentRoundTripTime)/(this.GS-this.HS);if(void 0===k||isNaN(k))return;this.latencyScore=this.$S(this.latencyScore,k,this.VS),this.latencyScore=Math.min(this.latencyScore,this.WS)}}zS(h){let b=0;h<this.GS&&(b=100*(this.GS-h)/(this.GS-this.HS),(void 0===b||isNaN(b))&&(b=0)),this.latencyScore=this.$S(this.latencyScore,b,this.VS),this.latencyScore=Math.min(this.latencyScore,this.WS)}KS(h,b){if(!this.maxBitrate||!this.US)return;let k=100;b>=this._S&&(k=(h-this.US)/(this.maxBitrate-this.US)*100),k>100&&(k=100),void 0===k||isNaN(k)||k<0||(this.bandwidthScore=this.$S(this.bandwidthScore,k,this.VS),this.bandwidthScore=Math.min(this.bandwidthScore,this.WS))}QS(h,b){if(void 0===h.packetsReceived||void 0===h.packetsLost||void 0===b.packetsReceived||void 0===b.packetsLost||void 0===b.pliCount||void 0===h.pliCount)return;const we=h.packetsLost-b.packetsLost;let ze=100-we/(h.packetsReceived-b.packetsReceived+we)*100;(isNaN(ze)||void 0===ze)&&(ze=0);const wt=h.pliCount-b.pliCount;wt>0&&we&&(ze=0);for(let $t=0;$t<wt+1;$t++)this.networkLossScore=this.$S(this.networkLossScore,ze,this.VS/2)}YS(){const h=Math.min(this.latencyScore,this.networkLossScore,this.bandwidthScore);return this.qualityScore=this.$S(this.qualityScore,h,this.VS/4),{latencyScore:this.latencyScore,networkLossScore:this.networkLossScore,bandwidthScore:this.bandwidthScore,qualityScore:this.qualityScore}}$S(h,b,k){return h*(k-1)/k+b/k}reset(){this.qualityScore=100,this.latencyScore=100,this.bandwidthScore=100,this.networkLossScore=100,this.WS=100}}class qt{constructor(h,b){this.Jh=null,this.currentState=0,this.Ko=!1,this.XS=new Set,this.jS=!1,this.initialized=!1,this.JS=0,this.ZS=!1,this.tb=!1,this.ib=!1,this.sb={eb:0,nb:0,ob:0},this.rb=new Map([["permissionDenied",0],["visibilityChange",0],["deviceChange",0]]),this.ab=!1,this.Rs=h,this.telemetry=b,this.cb=null,this.lb=null,this.ub=!1,this.paused=!1,pi(h,15)&&(this.jS=!0)}Ab(h){let b=2;return"granted"==h?b=5:"prompt"==h&&(b=1),b}fb(){return!1===Hn.Ko?Promise.resolve(0):window.navigator.permissions?window.navigator.permissions.query({name:"microphone"}).then(h=>this.Ab(h.state)).catch(h=>0):Promise.resolve(0)}pb(){!1!==Hn.Ko&&(this.ub||3==this.currentState||2==this.currentState||6==this.currentState||7==this.currentState?this.mb(this.currentState):this.fb().then(h=>{0!==h&&this.mb(h)}))}static isMicSupported(){return qt.gb}mb(h,b=!0){this.currentState=h,3===this.currentState&&(this.ab=!0),this.Jh&&b&&this.Jh.emit("MicCapture",{state:this.currentState})}getUserMedia(h){var b=this;return n(function*(){return b.ub=!0,navigator.mediaDevices.getUserMedia({audio:h}).then(k=>{if(l.Log.d("{223689a}","{b204737}"),b.mb(5,!1),b.ub=!1,b.lb=k,yt(b.Rs)&&(k.getTracks()[0].onended=()=>{b.JS=performance.now(),l.Log.i("{223689a}","{6b60d82}"),b.wb()}),b.lb.oninactive=()=>{l.Log.d("{223689a}","{eee54f1}"),b.XS.clear(),b.lb=null},b.paused)l.Log.d("{223689a}","{21e76e1}"),b.lb=null,b.mb(7);else{var ee=b.cb.getSenders()[0];ee?ee.replaceTrack(k.getTracks()[0]).then(()=>{var he;l.Log.i("{223689a}","{6c92139}");const we=null!==(he=b.Sb)&&void 0!==he?he:b.Af;if(yt(b.Rs)&&!pi(b.Rs,15,4)&&we&&!we.muted){let ze;we.srcObject&&(ze=we.play(),l.Log.i("{223689a}","{23a6493}",we.tagName)),ze?ze.then(()=>{l.Log.d("{223689a}","{5593cbe}"),b.bb()}).catch(pt=>{b.bb();try{b.telemetry.Ke("WAR: Play Error",pt?.name,pt?.message),l.Log.e("{223689a}","{69aae72}",pt?.name,pt?.message)}catch{}}):l.Log.e("{223689a}","{b6a6508}")}b.mb(3),b.ib=!1,pi(b.Rs,15,4)&&(b.ZS=!1,b.kb(!1))}).catch(he=>{l.Log.e("{223689a}","{5c42246}",he),b.lb=null,b.mb(7)}):(l.Log.e("{223689a}","{f7f0250}"),b.lb=null)}}).catch(k=>{var ee,he;yt(b.Rs)&&!pi(b.Rs,15,4)&&b.bb(),b.ub=!1,k instanceof DOMException&&"NotAllowedError"===k.name?(l.Log.e("{223689a}","{3f9bd66}"),b.mb(2),b.tb&&!b.ZS&&b.yb("permissionDenied")):k instanceof DOMException&&"NotFoundError"===k.name?(l.Log.e("{223689a}","{7f04869}"),b.mb(4)):k instanceof DOMException&&"NotReadableError"===k.name?(b.XS.add(null!==(ee=h.deviceId)&&void 0!==ee?ee:"default"),l.Log.e("{223689a}","{af7e08c}",null!==(he=h.deviceId)&&void 0!==he?he:"default",k.name,k.message),navigator.mediaDevices.enumerateDevices().then(we=>{for(const ze of we)if("audioinput"===ze.kind&&"default"!==ze.deviceId&&!b.XS.has(ze.deviceId)){l.Log.d("{223689a}","{655d8b0}",ze.deviceId,ze.label),h.deviceId=ze.deviceId,b.getUserMedia(h);break}}).catch(we=>{l.Log.e("{223689a}","{930e826}",we.name,we.message)}),b.mb(7)):(l.Log.e("{223689a}","{c361fc5}",k.name,k.message),b.mb(7))})})()}Ib(h){var b=this;return n(function*(){var k,ee;if(!b.initialized)return;if(!qt.gb)return l.Log.e("{223689a}","{999b07b}"),void b.mb(6);if(b.Ko=!0,null!=b.lb||b.ub)return;l.Log.d("{223689a}","{981c872}",null!==(k=h?.deviceId)&&void 0!==k?k:"default"),b.Cb=h,b.paused=!1,b.mb(1,!1);let he={sampleRate:48e3,deviceId:null===(ee=b.Cb)||void 0===ee?void 0:ee.deviceId};On(b.Rs)&&(he.googAutoGainControl2=!1),navigator.mediaDevices.ondevicechange=we=>{l.Log.i("{223689a}","{50d0169}",!!b.lb,b.ub),null!=b.lb||b.ub||(l.Log.d("{223689a}","{c849290}"),b.Ib(b.Cb))},yield b.getUserMedia(he),b.Eb||b.Tb()})()}Mb(){let h=Xn(48e3);if(h){let b=h.createMediaStreamDestination().stream.getAudioTracks()[0];return h.close(),b.enabled=!0,new MediaStream([b])}throw new Error("Mic stream is not supported")}initialize(h,b,k,ee){if(!1!==Hn.Ko){if(this.cb=h,this.Jh=b,this.Af=k,this.Sb=ee,qt.gb){let he=this.Mb();if(null==he)return void l.Log.w("{223689a}","{360f38b}");this.cb.addTrack(he.getAudioTracks()[0],he),this.Ko&&this.Ib(this.Cb)}else l.Log.w("{223689a}","{5813c2b}");this.initialized=!0}}wb(){if(!this.initialized)return;if(!qt.gb)return void this.mb(6);this.Ko=!1,this.paused=!0,this.Cb=void 0;const h=this.currentState;if(navigator.mediaDevices.ondevicechange=()=>{},this.cb){l.Log.d("{223689a}","{6faf5bb}");let k=this.Mb();var b=this.cb.getSenders()[0];b?b.replaceTrack(k.getTracks()[0]).then(()=>{l.Log.d("{223689a}","{797fa55}"),this.mb(5,!1),3===h&&(this.ib=!0)}).catch(ee=>{l.Log.e("{223689a}","{79f26cc}",ee),this.mb(7,!1)}).finally(()=>{let ee=this.lb;this.lb=null,ee&&ee.getTracks().forEach(he=>{he.stop()}),this.mb(this.currentState),yt(this.Rs)&&!pi(this.Rs,15,4)&&this.bb()}):(l.Log.e("{223689a}","{f7f0250}"),this.lb=null)}else l.Log.e("{223689a}","{9e75fa2}"),this.mb(0)}Pb(){if(!1!==Hn.Ko){if(null!=this.lb){let h=this.lb;this.XS.clear(),this.lb=null,navigator.mediaDevices&&(navigator.mediaDevices.ondevicechange=()=>{}),h.getTracks().forEach(b=>{b.stop()})}this.Ko=!1,this.mb(5),this.telemetry.Db("AudioInputType",this.ab?"started":"not started",0,this.sb.eb,this.sb.nb,this.sb.ob),pi(this.Rs,15,4)&&this.telemetry.Db("LowAudioVolume","",0,this.rb.get("permissionDenied"),this.rb.get("visibilityChange"),this.rb.get("deviceChange")),this.cb=null,this.Jh=null,this.Af=void 0,this.Sb=void 0,this.initialized=!1,this.sb={eb:0,nb:0,ob:0};for(const[h,b]of this.rb)this.rb.set(h,0);this.ZS=!1,this.ib=!1,this.kb(!1),this.ab=!1}}bb(){var h,b,k;if(!Hn.Ho||!this.jS)return;const ee=null!==(b=null===(h=this.Sb)||void 0===h?void 0:h.srcObject)&&void 0!==b?b:null===(k=this.Af)||void 0===k?void 0:k.srcObject;if(!ee)return;l.Log.i("{223689a}","{ad4b8c2}");const he=ee.getAudioTracks()[0];he.enabled=!1,setTimeout(()=>{he.enabled=!0},0)}getMicState(){return this.currentState}Rb(){return this.JS}kb(h){this.tb=h}Nb(){return this.ZS}xb(){return this.ib}Tb(){return navigator.mediaDevices.enumerateDevices().then(h=>{let b=0;l.Log.d("{223689a}","{fa1ec18}",JSON.stringify(h));for(const k of h)"audioinput"==k.kind&&b++;switch(b){case 0:this.Eb="No Audio Input",this.sb.eb++;break;case 1:this.Eb="Built-in Microphone",this.sb.nb++;break;default:this.Eb="Headset Microphone",this.sb.ob++}l.Log.d("{223689a}","{0d14ab6}",this.Eb)}).catch(h=>{l.Log.e("{223689a}","{21131d5}")})}Ob(){return"Built-in Microphone"===this.Eb}yb(h){var b;this.ZS=!0,this.rb.set(h,(null!==(b=this.rb.get(h))&&void 0!==b?b:0)+1),l.Log.d("{223689a}","{30f8637}",h)}Bb(h){this.Tb().then(()=>{0!==h&&pi(this.Rs,15,4)&&!this.Nb()&&this.Ob()&&(this.Ko||this.xb())&&this.yb("deviceChange")})}}function Pn(x,h){switch(x){case 0:return function(b){var k;const ee=window.RTCPeerConnection;if(!ee)return!1;if(yt(b))return pi(b,14,3);let he=!0;switch(qe()&&pr(b)&&(zr(b,77)||(he=!1)),b.browser){case l.PlatformBrowser.CHROME:zr(b,77)||(he=!1);break;case l.PlatformBrowser.EDGE_LEGACY:he=!1;break;case l.PlatformBrowser.SAFARI:const we=ee?.prototype;we&&null!==(k=we.hasOwnProperty)&&void 0!==k&&k.call(we,"canTrickleIceCandidates")&&function(ze){if(ze.browser!=l.PlatformBrowser.SAFARI)return!1;try{return pn(ze.browserVer,!1,16,4)}catch{l.Log.w("{d988e7f}","{07fd1dd}")}return!0}(b)||(he=!1)}return he}(h);case 1:return qt.isMicSupported();default:return!1}}function yi(x){return!(hn(x)||Fi(x)||yt(x))}function ur(x,h,b){var k,ee,he,we;const ze=ts(x,h),pt=$a(x,h),wt=30===b?1.25*b:Math.min(b,60);let $t=0,an=x*h*wt;if(ze||pt){$t=null!==(ee=null!==(k=Hn.bitsPerPixel1440p)&&void 0!==k?k:Hn.ko.bitsPerPixel1440p)&&void 0!==ee?ee:.325;let zt=2073600*wt,mn=3686400*wt;mn=zt+(mn-zt)/3,an=pt?mn+(an-mn)/12:zt+(an-zt)/3}else $t=null!==(we=null!==(he=Hn.bitsPerPixel)&&void 0!==he?he:Hn.ko.bitsPerPixel)&&void 0!==we?we:.3;return an=an*$t/1200,b>=120&&!pt&&(an=Math.min(5e4,Math.round(1.15*an))),[Math.round(an),5e4]}function Pr(x,h){const b=1e3*h;let k=3600*(120===x?.916*b+293098:.678*b+910569)/1e9/8;return 30===x&&(k*=.625),k*=.95,k=Math.round(k),k}z.BrowserFeature=void 0,qt.gb=!(!navigator.mediaDevices||!window.AudioContext&&!window.webkitAudioContext),function(x){x[x.Streaming=0]="Streaming",x[x.MicCapture=1]="MicCapture"}(z.BrowserFeature||(z.BrowserFeature={}));const uo=new class{Fb(){this.Lb(),this.Ub()}Lb(){return this.Gb=this.Hb("av1").then(x=>(this.Vb=x,this.Vb)),this.Gb}Wb(){return this.Vb?Promise.resolve(this.Vb):this.Gb?this.Gb:this.Lb()}_b(){return this.Vb}Ub(){return this.qb=this.Hb("h265").then(x=>(this.$b=x,this.$b)),this.qb}zb(){return this.$b?Promise.resolve(this.$b):this.qb?this.qb:this.Ub()}Kb(){return this.$b}Hb(x,h=1920,b=1080,k=60){const ee=navigator.mediaCapabilities;if(!ee)return Promise.resolve(void 0);const he={type:"webrtc",video:{contentType:"video/"+x,width:h,height:b,framerate:k,bitrate:1e3*ur(h,b,k)[0]}};return ee.decodingInfo(he).catch(we=>{l.Log.w("{2bbf952}","{f5c2155}",x,we)})}};function vs(x){var h;if(RTCRtpReceiver.getCapabilities){const b=null===(h=RTCRtpReceiver.getCapabilities("video"))||void 0===h?void 0:h.codecs;if(b)return!!b.filter(k=>k.mimeType==="video/"+x).length}return!0}function ss(x,h){return h&&($a(h.width,h.height)&&!(4&x)||ts(h.width,h.height)&&!(2&x)||120===h.fps&&!(1&x))}function Ts(x,h){return Ro.apply(this,arguments)}function Ro(){return Ro=n(function*(x,h){var b;let k=[];const ee=null!==(b=Hn.codecList)&&void 0!==b?b:Hn.ko.codecList;if(ee)for(const he of ee)k.push(he);else{const he=(ze=n(function*(pt,wt){var $t,an,zt;const mn=null!==(an=null!==($t=Hn.enableAv1Support)&&void 0!==$t?$t:Hn.ko.enableAv1Support)&&void 0!==an?an:On(Qn=pt)?pr(Qn):!!fi(Qn)&&(pr(Qn)||et(Qn)||Zt(Qn)),kn=null!==(zt=Hn.ko.enableAv1ByResolutionAndFps)&&void 0!==zt?zt:7;var Qn;if(!mn||ss(kn,wt))return!1;if(hn(pt)&&null!=window.lge_webrtc_av1_support)return window.lge_webrtc_av1_support;if(!vs("AV1"))return!1;const yn=yield uo.Wb();return!!yn?.powerEfficient}),function(pt,wt){return ze.apply(this,arguments)})(x,h),we=function(){var ze=n(function*(pt){var wt,$t,an;const zt=null!==($t=null!==(wt=Hn.enableH265Support)&&void 0!==wt?wt:Hn.ko.enableH265Support)&&void 0!==$t?$t:Fi(yn=pt)||hn(yn)||Wt(yn),mn=null!==(an=Hn.ko.enableH265ByResolutionAndFps)&&void 0!==an?an:7;var yn;if(!zt||ss(mn,void 0))return!1;if(hn(pt))return function(yn){if(!hn(yn))return!1;const Qn=window.lge_webrtc_hevc_support;return l.Log.i("{2bbf952}","{afaf4f3}",Qn,typeof Qn),"string"==typeof Qn?"true"===Qn:!!Qn}(pt);if(Fi(pt))return function(yn){var Qn,li,wi;if(!Fi(yn))return!1;const mi=null===(wi=null===(li=null===(Qn=window.webapis)||void 0===Qn?void 0:Qn.productinfo)||void 0===li?void 0:li.getSmartTVServerVersion)||void 0===wi?void 0:wi.call(li),Bi=function(Ar){if(!Ar)return;const Vr=Ar.match(/T-INFOLINK(\d+)-(\d+)/);return Vr?{Qb:parseInt(Vr[1],10),version:parseInt(Vr[2],10)}:void 0}(mi);if(!Bi)return l.Log.e("{2bbf952}","{e227976}",mi),!1;const{Qb:qi,version:sr}=Bi;return l.Log.i("{2bbf952}","{fc40a4b}",qi,sr),2021===qi||qi>=2023||2022===qi&&sr>=1008}(pt);if(!vs("H265"))return!1;const kn=yield uo.zb();return!!kn?.powerEfficient});return function(pt){return ze.apply(this,arguments)}}()(x);(yield he)&&k.push("AV1"),(yield we)&&k.push("H265"),k.push("H264")}var ze;return k}),Ro.apply(this,arguments)}function Gs(x,h){return es.apply(this,arguments)}function es(){return es=n(function*(x,h){return Ca.Xb(x)}),es.apply(this,arguments)}const hs=Gs;function Jo(x){var h,b,k,ee,he,we,ze,pt;const{Rs:wt,Zb:$t,tk:an,ik:zt}=x,mn=Gt(wt),kn=ke(wt),yn=(ir=an,wr=zt,!!Fi(wt)&&!navigator.userAgent.includes("SamsungBrowser")&&!(!wr||wr.panelWidth<3840||wr.panelHeight<2160)&&ir.includes("H265")||function(Lo,ir){return!!hn(Lo)&&!!navigator.userAgent.includes("PWA")&&ir.includes("H265")}(wt,an)||Wt(wt)),Qn=yn,li=null!==(h=Hn.hdr)&&void 0!==h?h:Hn.ko.forceHdrSupport,wi=li??(!!(null!==(b=Hn.ko.enableHdrSupport)&&void 0!==b?b:Fi(wt)||hn(wt))&&function(Lo,ir){return!(!Fi(Lo)&&!hn(Lo))&&Vs(Lo,ir)}(wt,an)),mi=null!==(ee=null!==(k=Hn.jo)&&void 0!==k?k:Hn.ko.forceSdr10Support)&&void 0!==ee?ee:!(null!==(he=Hn.ko.enableSdr10Support)&&void 0!==he&&!he)&&Vs(wt,an),[Bi,qi]=$o([x.sk,x.ek]),sr={width:Math.round(Bi*$t),height:Math.round(qi*$t),fps:60,scaleFactor:Math.round(100*$t)};var ir,wr;let Ar;yn?Ar={width:3840,height:2160,fps:sr.fps}:mn&&Bi>=1366?Ar={width:1600,height:1200,fps:sr.fps}:kn?Ar={width:2560,height:1440,fps:sr.fps}:il(wt,zt)?Ar={width:1920,height:1080,fps:sr.fps}:jo(wt,zt)&&(Ar={width:1280,height:720,fps:sr.fps});let Vr=[{width:2560,height:1600,fps:120},{width:3840,height:1080,fps:120}];Qn?Vr.push({width:3840,height:2160,fps:60}):il(wt,zt)?Vr=[{width:1920,height:1080,fps:sr.fps}]:jo(wt,zt)&&(Vr=[{width:1280,height:720,fps:sr.fps}]);let Br,Xo=!1;if(wi){const Lo=null===(we=window.matchMedia)||void 0===we?void 0:we.call(window,"(dynamic-range: high)").matches,ir=null===(ze=window.matchMedia)||void 0===ze?void 0:ze.call(window,"(video-dynamic-range: high)").matches,wr=null===(pt=window.matchMedia)||void 0===pt?void 0:pt.call(window,"(color-gamut: p3)").matches;l.Log.i("{5083445}","{f9f1c3b}",Lo,ir,wr),Xo=hn(wt)?Lo||ir:(Lo||ir)&&wr,Br=function(_s){var Ta,ls;const zs=null!==(Ta=Hn.hdr10gParams)&&void 0!==Ta?Ta:Hn.ko.hdr10gParams;if(zs){const ia=zs.split(",").map(ga=>parseInt(ga,10));if(l.Log.i("{5083445}","{4c54116}",ia.join(", ")),ia.length>=3&&!ia.some(ga=>isNaN(ga))){const[ga,nl,ua]=ia;return{version:ga,peakLuminanceIndex:nl,peakFullFrameLuminanceIndex:ua}}}if(Fi(_s))try{const ia=window.webapis.hdr10pluscloud;if(!ia)return void l.Log.i("{5083445}","{e293b13}");if(null===(ls=ia?.isHdr10plusGamingSupported())||void 0===ls||!ls)return void l.Log.i("{5083445}","{c91f105}");const ga=1,nl=ia?.getPeakLuminanceIndex(),ua=ia?.getFullFramePeakLuminanceIndex();return l.Log.i("{5083445}","{a5dcb3f}",ga,nl,ua),void 0===ga||void 0===nl||void 0===ua?void 0:{version:ga,peakLuminanceIndex:nl,peakFullFrameLuminanceIndex:ua}}catch(ia){return void l.Log.w("{5083445}","{b510204}",ia)}}(wt),!Xo&&Br&&(l.Log.w("{5083445}","{e13aa38}"),Xo=!0)}li&&(Xo=!0);const Do=ra();return Gr={displayMode:sr,maxAutoMode:Ar,maxSupportedModes:Vr,features:{vsync:0,vvsync:!1,hdr:Xo,reflex:!1,audioChannelCount:Do,bitDepth:wi?10:8,sdrBitDepth:mi?10:8,hdr10PlusGamingData:Br}},Gr}let Gr;function No(){return Gr}function Vs(x,h){return Fi(x)||hn(x)||yt(x)?h.includes("H265"):h.includes("AV1")}z.VsyncType=void 0,function(x){x[x.OFF=0]="OFF",x[x.ON=1]="ON",x[x.ADAPTIVE=2]="ADAPTIVE"}(z.VsyncType||(z.VsyncType={}));const Ca=new class{constructor(){var x=this;this.nk=[],this.hk=!1,this.ak=()=>{if(!this.dk)return;const h=window.screen.width,b=window.screen.height,k=window.devicePixelRatio;if(h===this.dk.sk&&b===this.dk.ek&&k===this.dk.Zb)return;this.dk.sk=h,this.dk.ek=b,this.dk.Zb=k;const ee=Jo(this.dk);this.ck(ee)},this.lk=n(function*(){if(!x.dk)return;x.dk.tk=yield Ts(x.dk.Rs);const h=Jo(x.dk);x.ck(h)})}Yb(){this.hk||(this.hk=!0,this.uk(),uo.Fb())}Xb(x){var h=this;return n(function*(){h.dk={Rs:x,tk:yield Ts(x),sk:window.screen.width,ek:window.screen.height,Zb:window.devicePixelRatio,ik:yield as(x)};const b=Jo(h.dk);return h.ck(b),b})()}jb(x){this.nk.push(x),this.nk.length>0&&this.Ak()}Jb(x){this.nk=this.nk.filter(h=>h!==x),0===this.nk.length&&this.vk()}ck(x){for(const h of this.nk)h(x)}Ak(){var x;const h=window.screen;null===(x=h.addEventListener)||void 0===x||x.call(h,"change",this.ak),window.addEventListener("focus",this.ak),window.addEventListener("resize",this.ak),Ba.push(this.lk)}vk(){var x,h;h=this.lk,Ba=Ba.filter(k=>k!==h),window.removeEventListener("resize",this.ak),window.removeEventListener("focus",this.ak);const b=window.screen;null===(x=b.removeEventListener)||void 0===x||x.call(b,"change",this.ak)}uk(){var x=this;return n(function*(){const h=yield x.fk(!0);return x.pk(h)})()}mk(){var x=this;return n(function*(){const h=yield x.fk(!1);return x.pk(h)})()}fk(x){return x&&(this.refreshRate=void 0),this.refreshRate?Promise.resolve(this.refreshRate):this.gk?this.gk:this.wk()}pk(x){return x>=117}wk(){return this.gk=this.Sk(2e3,4e3).then(x=>(this.refreshRate=x,this.refreshRate),()=>{var x;return null!==(x=this.refreshRate)&&void 0!==x?x:0}),this.gk}Sk(x,h){return new Promise((b,k)=>{let ee=!1;const he=window.setTimeout(()=>{ee=!0},h),we=kn=>{l.Log.w("{5083445}","{0b0c6f9}",kn),window.clearTimeout(he),k()};x>h&&we("Specified timeout less than the scan interval");const ze=[];let pt,wt=window.innerWidth,$t=window.innerHeight,an=window.screenX,zt=window.screenY;const mn=()=>{window.requestAnimationFrame(()=>{if(ee)we("Timed out during the refreshRate loop");else if(window.innerWidth==wt&&window.innerHeight==$t&&an==window.screenX&&zt==window.screenY||(wt=window.innerWidth,$t=window.innerHeight,an=window.screenX,zt=window.screenY,0)){const yn=performance.now();ze.length&&ze[0]<=yn-x?(pt=Math.floor(ze.length/(x/1e3)),l.Log.d("{5083445}","{8c3d290}",pt,ze[ze.length-1]-ze[0]),kn=pt,window.clearTimeout(he),b(kn)):(ze.push(yn),mn())}else l.Log.w("{5083445}","{824b461}"),ze.length=0,mn();var kn})};mn()})}},sa="PANEL";function as(x){const h={panelWidth:3840,panelHeight:2160};return new Promise((b,k)=>{var ee,he,we;Fi(x)?null!==(ee=window.tizen)&&void 0!==ee&&ee.systeminfo?window.tizen.systeminfo.getPropertyValue(sa,ze=>b(ze)):(l.Log.w("{5083445}","{c258be7}"),null!==(we=null===(he=window.webapis)||void 0===he?void 0:he.productinfo)&&void 0!==we&&we.isUdPanelSupported()?b(h):(l.Log.w("{5083445}","{ef1d74b}"),b(void 0))):b(void 0)}).catch(b=>{var k,ee;return l.Log.w("{5083445}","{82c980c}",b),null!==(ee=null===(k=window.webapis)||void 0===k?void 0:k.productinfo)&&void 0!==ee&&ee.isUdPanelSupported()?h:void l.Log.w("{5083445}","{ef1d74b}")})}function il(x,h){return!!Fi(x)&&!!h&&1920===h.panelWidth&&1080===h.panelHeight}function jo(x,h){return!!Fi(x)&&!!h&&h.panelWidth<1920&&h.panelHeight<1080}function Oo(x){let h=0;return x?.supported&&(h|=1),x?.smooth&&(h|=2),x?.powerEfficient&&(h|=4),h}function za(x,h,b,k,ee){var he;h=Math.max(4e3,h);const ze=Math.max(4e3,Math.round(h/4));return{bk:x.width,kk:x.height,yk:x.fps,dynamicStreamingMode:ee,Ik:h,Ck:ze,Ek:ze,Tk:b,Mk:4e3,Pk:gl(null!==(he=x.sdrHdrMode)&&void 0!==he?he:l.SdrHdrMode.SDR),bitDepth:$n(k),Dk:"UNKNOWN"}}function Uo(x){return x.split(/\r?\n/)}function Xa(x,h,b,k){const ee=/^([^[.]+)(?:\[(\d+)\])?\.([^:]+): *(.+)$/;let he=!0;for(const we of Uo(x)){const ze=ee.exec(we);if(ze){const pt=ze[1],wt=void 0!==ze[2]?Number.parseInt(ze[2]):void 0,an=ze[4],zt=pt+"."+ze[3],mn=vl(pt),kn=rl(h,mn,wt),yn=rl(b,mn,wt);if(!kn||!yn){l.Log.w("{eb7c2d0}","{a649ad8}",k,mn,wt),he=!1;continue}if(!yn.has(zt)){l.Log.w("{eb7c2d0}","{cc4fdef}",k,zt,an),he=!1;continue}l.Log.d("{eb7c2d0}","{2beb68f}",k,zt,an),kn.set(zt,an)}}return he}function vl(x){switch(x){case"video":case"vqos":case"qscore":case"bwe":case"clientPerfBr":case"packetPacing":return"video";case"audio":case"aqos":case"audioBitrate":return"audio";case"ri":return"application";case"mic":return"mic";default:return}}function Pl(x,h,b,k){var ee;const he=b.Dk;x.set("vqos.fec.rateDropWindow","10"),x.set("vqos.fec.minRequiredFecPackets","2"),x.set("vqos.drc.minRequiredBitrateCheckEnabled","1"),x.set("video.dx9EnableNv12","1"),x.set("video.dx9EnableHdr","1"),x.set("vqos.qpg.enable","1"),x.set("vqos.resControl.qp.qpg.featureSetting","7"),x.set("bwe.useOwdCongestionControl","1"),x.set("video.enableRtpNack","1"),x.set("vqos.bw.txRxLag.minFeedbackTxDeltaMs","200"),x.set("vqos.fec.repairMinPercent","5"),x.set("vqos.fec.repairPercent","5"),x.set("vqos.fec.repairMaxPercent","35"),x.set("vqos.drc.bitrateIirFilterFactor","18"),x.set("video.packetSize","1140"),x.set("packetPacing.minNumPacketsPerGroup","15"),x.set("vqos.bllFec.enable","0"),function(li){var wi;const mi=fi(li)||Ji(li);return null!==(wi=Hn.ko.enableOOFQosEnhancements)&&void 0!==wi?wi:mi}(k)&&(x.set("vqos.adjustStreamingFpsDuringOutOfFocus","1"),x.set("vqos.resControl.cpmRtc.ignoreOutOfFocusWindowState","1"),x.set("vqos.resControl.perfHistory.rtcIgnoreOutOfFocusWindowState","1"));const we=b.yk>=120,ze=120===b.yk,pt=240===b.yk,wt=ts(b.bk,b.kk),$t=$a(b.bk,b.kk),an=wt||$t,zt=b.bk*b.kk>=2764800,mn=Mn(k);if(mn&&x.set("vqos.resControl.cpmRtc.featureMask","3"),we&&(x.set("bwe.iirFilterFactor","8"),x.set("video.encoderFeatureSetting","47"),x.set("video.encoderPreset","6"),x.set("vqos.resControl.cpmRtc.badNwSkipFramesCount"," 600"),x.set("vqos.resControl.cpmRtc.decodeTimeThresholdMs","9"),ze?(x.set("video.fbcDynamicFpsGrabTimeoutMs","6"),x.set("vqos.resControl.cpmRtc.serverResolutionUpdateCoolDownCount","6000")):pt&&(x.set("video.fbcDynamicFpsGrabTimeoutMs","18"),x.set("vqos.resControl.cpmRtc.serverResolutionUpdateCoolDownCount","12000"),x.set("video.enableNextCaptureMode","1"),x.set("vqos.maxStreamFpsEstimate","240"),x.set("video.videoSplitEncodeStripsPerFrame","3"),x.set("video.updateSplitEncodeStateDynamically","1"))),(an||b.Ik>=42e3)&&(x.set("packetPacing.numGroups",ze?"3":"5"),x.set("packetPacing.maxDelayUs","1000"),x.set("packetPacing.minNumPacketsFrame","10"),x.set("video.rtpNackQueueLength","1024"),x.set("video.rtpNackQueueMaxPackets","512"),x.set("video.rtpNackMaxPacketCount","25"),x.set("vqos.drc.qpMaxResThresholdAdj","4"),x.set("vqos.grc.qpMaxResThresholdAdj","4"),x.set("vqos.drc.iirFilterFactor","100"),an&&(x.set("video.videoSplitEncodeStripsPerFrame","3"),x.set("video.updateSplitEncodeStateDynamically","1")),$t&&(x.set("video.encoderPreset","6"),x.set("vqos.drc.add1440pResLevelFor4kDrcTable","1"),x.set("vqos.drc.minAdaptiveQpThreshold","40"),x.set("vqos.grc.minAdaptiveQpThreshold","40"),x.set("vqos.drc.upperQpThreshold","40"),x.set("vqos.grc.upperQpThreshold","40"),x.set("vqos.drc.qpMaxResThresholdAdj","5"),x.set("vqos.grc.qpMaxResThresholdAdj","5"),x.set("vqos.drc.iirFilterFactor","100"),x.set("vqos.fec.repairMinPercent","0"))),"AV1"===he&&function(li,wi,mi){var Bi,qi,sr,Ar,Vr,Br,Xo,Do,Lo,ir,wr,_s,Ta,ls,zs;li.set("vqos.drc.minQpHeadroom","20"),li.set("vqos.drc.lowerQpThreshold","100"),li.set("vqos.drc.upperQpThreshold","200"),li.set("vqos.drc.minAdaptiveQpThreshold","180");let ia=Number(null!==(Bi=li.get("vqos.drc.qpMaxResThresholdAdj"))&&void 0!==Bi?Bi:"0");li.set("vqos.drc.qpMaxResThresholdAdj",(5*ia).toString()),li.set("vqos.drc.qpCodecThresholdAdj","0"),li.set("vqos.dfc.minQpHeadroom",null!==(qi=li.get("vqos.drc.minQpHeadroom"))&&void 0!==qi?qi:"0"),li.set("vqos.dfc.qpLowerLimit",null!==(sr=li.get("vqos.drc.lowerQpThreshold"))&&void 0!==sr?sr:"0"),li.set("vqos.dfc.qpMaxUpperLimit",null!==(Ar=li.get("vqos.drc.upperQpThreshold"))&&void 0!==Ar?Ar:"0"),li.set("vqos.dfc.qpMinUpperLimit",null!==(Vr=li.get("vqos.drc.minAdaptiveQpThreshold"))&&void 0!==Vr?Vr:"0"),li.set("vqos.dfc.qpMaxResThresholdAdj",null!==(Br=li.get("vqos.drc.qpMaxResThresholdAdj"))&&void 0!==Br?Br:"0"),li.set("vqos.dfc.qpCodecThresholdAdj",null!==(Xo=li.get("vqos.drc.qpCodecThresholdAdj"))&&void 0!==Xo?Xo:"0"),wi&&(li.set("vqos.drc.minAdaptiveQpThreshold",null!==(Do=li.get("vqos.drc.upperQpThreshold"))&&void 0!==Do?Do:"0"),li.set("vqos.dfc.qpMinUpperLimit",null!==(Lo=li.get("vqos.dfc.qpMaxUpperLimit"))&&void 0!==Lo?Lo:"0")),li.set("vqos.grc.minQpHeadroom",null!==(ir=li.get("vqos.drc.minQpHeadroom"))&&void 0!==ir?ir:"0"),li.set("vqos.grc.lowerQpThreshold",null!==(wr=li.get("vqos.drc.lowerQpThreshold"))&&void 0!==wr?wr:"0"),li.set("vqos.grc.upperQpThreshold",null!==(_s=li.get("vqos.drc.upperQpThreshold"))&&void 0!==_s?_s:"0"),li.set("vqos.grc.minAdaptiveQpThreshold",null!==(Ta=li.get("vqos.drc.minAdaptiveQpThreshold"))&&void 0!==Ta?Ta:"0"),li.set("vqos.grc.qpMaxResThresholdAdj",null!==(ls=li.get("vqos.drc.qpMaxResThresholdAdj"))&&void 0!==ls?ls:"0"),li.set("vqos.grc.qpCodecThresholdAdj",null!==(zs=li.get("vqos.drc.qpCodecThresholdAdj"))&&void 0!==zs?zs:"0"),mi&&(li.set("video.videoSplitEncodeStripsPerFrame","63"),li.set("video.enableAv1RcPrecisionFactor","1")),li.set("video.minQp","25")}(x,$t,zt),x.set("video.clientViewportWd",b.bk.toString()),x.set("video.clientViewportHt",b.kk.toString()),x.set("video.maxFPS",b.yk.toString()),x.set("video.initialBitrateKbps",b.Ck.toString()),x.set("video.initialPeakBitrateKbps",b.Ek.toString()),x.set("vqos.bw.maximumBitrateKbps",b.Ik.toString()),x.set("vqos.bw.minimumBitrateKbps",b.Mk.toString()),x.set("video.maxNumReferenceFrames","4"),x.set("video.mapRtpTimestampsToFrames",b.Tk?"1":"0"),fn()&&(x.set("vqos.drc.stepDownMinHeight","480"),!pi(k,14,5))){const li=b.bk/b.kk*100;x.set("vqos.drc.stepDownResolutionAlignment","16"),x.set("vqos.drc.stepDownTargetAspectRatioX100",li.toFixed(0))}!function(li,wi,mi,Bi){if((wi||2===Bi)&&(1!==Bi&&(li.set("vqos.drc.enable","0"),li.set("vqos.dfc.enable","1")),li.set("vqos.dfc.decodeFpsAdjPercent","85"),li.set("vqos.dfc.targetDownCooldownMs","250"),li.set("vqos.dfc.dfcAlgoVersion","1"),li.set("vqos.dfc.minTargetFps","60"),mi&&li.set("vqos.cpm.flags","1"),li.set("vqos.resControl.dfc.useClientFpsPerf","0")),void 0!==Bi)switch(Bi){case 3:Hs(li,!0,wi);break;case 2:Hs(li,!0,!0);break;case 1:Hs(li,!0,!1);break;case 0:Hs(li,!1,wi)}}(x,we,mn,b.dynamicStreamingMode);let kn=Fi(k)?2:3,yn=0,Qn=8;if("H265"===he||"AV1"===he){const li=No();null!==(ee=li?.features.hdr)&&void 0!==ee&&ee&&1===b.Pk?(h.has("video.encoderHdrCscMode")||(kn=4),yn=b.Pk,Qn=Math.max(10,Math.min(li?.features.bitDepth||10,b.bitDepth))):Qn=Math.max(8,Math.min(li?.features.sdrBitDepth||8,b.bitDepth))}10===Qn&&"H265"===he&&x.set("video.minQp","14"),x.set("video.encoderCscMode",kn.toString()),x.set("video.encoderHdrCscMode","4"),x.set("video.dynamicRangeMode",yn.toString()),x.set("video.bitDepth",Qn.toString())}function Hs(x,h,b){x.set(b?"vqos.dfc.adjustResAndFps":"vqos.drc.enable",h?"1":"0")}function wl(x,h){var b,k,ee,he;x.set("ri.partialReliableThresholdMs",null!==(b=h.attributes.get("ri.partialReliableThresholdMs"))&&void 0!==b?b:"0"),x.set("ri.hidDeviceMask",null!==(k=h.attributes.get("ri.hidDeviceMask"))&&void 0!==k?k:"0"),x.set("ri.enablePartiallyReliableTransferGamepad",null!==(ee=h.attributes.get("ri.enablePartiallyReliableTransferGamepad"))&&void 0!==ee?ee:"0xff"),x.set("ri.enablePartiallyReliableTransferHid",null!==(he=h.attributes.get("ri.enablePartiallyReliableTransferHid"))&&void 0!==he?he:"0xffffffffffffffff")}function rl(x,h,b){var k;return void 0===h?x.Rk:null===(k=x.media.filter(ee=>ee.Nk===h)[b??0])||void 0===k?void 0:k.attributes}function al(x,h){let b=`v=0\no=${x.origin}\ns=-\nt=${x.time}\n`;const k=(ee,he)=>{for(const[we,ze]of ee)ze!==he.get(we)&&(b+=`a=${we}:${ze}\n`)};k(x.Rk,h.Rk);for(const ee of x.media){b+=`m=${ee.Nk} 0 RTP/AVP\n`,b+=`a=msid:${ee.xk}\n`;const he=h.media.find(we=>we.xk===ee.xk);k(ee.attributes,he.attributes)}return b}function gl(x){switch(x){case l.SdrHdrMode.SDR:return 0;case l.SdrHdrMode.HDR:return 1;case l.SdrHdrMode.EDR:return l.Log.w("{eb7c2d0}","{30c875c}"),0;default:return l.Log.w("{eb7c2d0}","{7cd5754}",x),0}}class _l{constructor(){this.Ok=0,this.Bk=0,this.Fk=0,this.Lk=0}update(h,b){if(0==this.Ok&&0==this.Fk)return this.Ok=h,void(this.Fk=b);this.Lk=b,this.Bk=h}Uk(){const h=this.Lk-this.Fk;return 0!=h?(this.Bk-this.Ok)/h:0}reset(){this.Ok=this.Bk,this.Fk=this.Lk}}class ii{constructor(h,b,k){this.Rs=b,this.Gk=k,this.fps=0,this.Hk=0,this.Vk=4,this.Wk=0,this._k=0,this.qk=0,this.$k=0,this.zk=0,this.Kk=0,this.rtd=0,this.Qk=0,this.streamingResolution={width:0,height:0},this.Yk=0,this.Xk=0,this.jk={count:0,max:0,value:0},this.Jk={count:0,max:0,value:0},this.Zk=new _l,this.ty=0,this.iy=0,this.sy=0,this.codec="UNKNOWN",this.hdr=!1,this.ey=!1,this.ny=!1,this.bitDepth=8,this.hy=!1,this.oy="",this.markers=0,this.ly={qualityScore:0,bandwidthScore:0,networkLossScore:0,latencyScore:0};const ee=this.uy();h.insertAdjacentElement("afterend",ee),this.Ay=ee,this.vy={py:!1,my:!1,Tm:!1,sg:!1,gy:0,fS:!1,keyboardLayout:"",appLaunchMode:0,inputMode:""},this.saScores={gpuPerfScore:-1,serverPerfScore:-1,visualScore:-1,decoderScore:-1,downlinkLag:-1,downlinkCongestion:-1,uplink:-1,overall:-1}}wy(h,b){var k,ee,he,we;const ze=null!==(k=h.bytesReceived)&&void 0!==k?k:0,pt=null!==(ee=b.bytesReceived)&&void 0!==ee?ee:0,wt=null!==(he=h.timestamp)&&void 0!==he?he:0,$t=null!==(we=b.timestamp)&&void 0!==we?we:0;wt!=$t&&(this.Hk=(ze-pt)/(125*(wt-$t)))}Sy(h){return h&&this.Hk<=h&&(this.Vk=this.Hk/h*100),this.Wk=h,this.Vk}by(h){if(h.frameWidth&&h.frameHeight&&(this.streamingResolution={width:h.frameWidth,height:h.frameHeight}),h.framesDecoded){const b=this._k,k=h.timestamp;b!==k&&(this.fps=Math.floor((h.framesDecoded-this.qk)/(k-b)*1e3)),this.qk=h.framesDecoded,h.totalDecodeTime&&(this.Zk.update(h.totalDecodeTime,h.framesDecoded),this.ty=1e3*h.totalDecodeTime/h.framesDecoded)}h.framesReceived&&(this.$k=h.framesReceived,h.totalInterFrameDelay)&&(this.Yk=1e3*h.totalInterFrameDelay/(h.framesReceived-1)),h.framesDropped&&(this.zk=h.framesDropped),h.packetsLost&&(this.Qk=h.packetsLost),h.pliCount&&(this.iy=h.pliCount),this._k=h.timestamp}ky(h){this.ly=h}yy(h){this.rtd=h}Iy(h){this.Kk=h}Cy(h){this.avgGameFps=h}Ey(h){this.saScores=h}Ty(){return{fps:this.fps,ty:this.ty,avgDecodeTime:1e3*this.Zk.Uk(),My:this.Wk,Vk:this.Vk,width:this.streamingResolution.width,height:this.streamingResolution.height}}Py(){return this.qk}Dy(h){const b=(1e3*this.Zk.Uk()).toFixed(2);l.Log.i("{4155ac9}","{9a6628a}",h,this.qk,b,this.zk,this.Kk.toFixed(2),this.iy,this.rtd,this.Hk.toFixed(2),this.Vk.toFixed(2))}Ry(){var h;const b={avgGameFps:null!==(h=this.avgGameFps)&&void 0!==h?h:0,fps:this.fps,rtd:this.rtd,avgDecodeTime:1e3*this.Zk.Uk(),frameLoss:this.iy-this.sy,packetLoss:this.Qk,totalBandwidth:this.Wk,currentBitrateMbps:this.Hk,utilizedBandwidth:this.Vk,streamingResolution:this.streamingResolution,codec:this.codec,bitDepth:this.bitDepth,sdrHdrMode:this.hdr?l.SdrHdrMode.HDR:l.SdrHdrMode.SDR,hdr10PlusGaming:this.hdr&&this.ny&&this.ey};return this.sy=this.iy,b}Ny(h){this.xy(h),this.jk={value:0,count:0,max:0},this.Jk={value:0,count:0,max:0},this.Zk.reset()}xy(h){this.Ay.innerText=this.Oy(h)}By(h){this.Ay.style.display=h?"block":"none"}uy(){const h=document.createElement("div");return h.style.display="none",h.style.position="fixed",yt(this.Rs)?(h.style.top="env(safe-area-inset-top, 0)",h.style.left="max(24px, env(safe-area-inset-left, 0))"):(h.style.top="0",h.style.left="0"),h.style.padding="0.5em",h.style.backgroundColor="rgba(0,0,0,0.5)",h.style.zIndex="300",h.style.fontSize="12px",h.style.fontFamily="monospace",h.style.color="white",h.style.whiteSpace="pre",h.style.lineHeight="100%",h.style.pointerEvents="none",h}Fy(h){this.jk.value+=h,this.jk.count+=1,this.jk.max=Math.max(h,this.jk.max)}Ly(h){this.Jk.value+=h,this.Jk.count+=1,this.Jk.max=Math.max(h,this.Jk.max)}Uy(h){this.Xk=Math.max(h,this.Xk)}Gy(h){this.vy=h}Hy(h){this.codec=h}Vy(){return this.codec}Wy(h){const b=h!==this.hdr;return this.hdr=h,b}_y(){return this.hdr}qy(h,b){return(this.ey!==h||this.ny!==b)&&(l.Log.i("{4155ac9}","{417fbf6}",Oi(h),Oi(b)),this.ey=h,this.ny=b,!0)}$y(h){this.bitDepth=h}zy(){return this.bitDepth}Ky(){this.markers++}Qy(h){this.hy=h}Yy(h){this.oy=h}Oy(h){const b=`Seat: ${this.Gk.zoneName} (${this.Gk.Xy}) / ${this.Gk.gpuType}\n`;let k=`Game: CMS ${this.Gk.appId}`;void 0!==this.avgGameFps&&(k+=` / fps ${this.avgGameFps.toFixed()}`),k+="\n";let ee=b+k+`Stream: Current ${Ai(this.streamingResolution)}@${this.fps} / Default: ${this.Gk.streamInfo.width}x${this.Gk.streamInfo.height}@${this.Gk.streamInfo.fps} / Codec ${this.codec}${this.jy()} ${this.bitDepth} bpc\nNetwork: RTD ${this.rtd}ms / FL ${this.iy} / PL ${this.Qk} / J ${this.Kk.toFixed(2)}ms / Bitrate ${this.Hk.toFixed(2)}Mbps / BWU ${this.Vk.toFixed(2)}%\nQOS: frame ${this.qk} / FT ${this.Yk.toFixed(2)} / D ${(1e3*this.Zk.Uk()).toFixed(2)} / Q ${Math.floor(this.ly.qualityScore)} / Marker ${this.markers}\nClient: ${this.Rs.os} ${this.Gk.clientAppVersion} ${this.Gk.clientLocale} Resolution ${Ai({width:window.innerWidth*window.devicePixelRatio,height:window.innerHeight*window.devicePixelRatio})}\nInput ${this.vy.inputMode}\nSA: dec ${this.saScores.decoderScore.toFixed(2)} / lag ${this.saScores.downlinkLag.toFixed(2)} / cong ${this.saScores.downlinkCongestion.toFixed(2)} / up ${this.saScores.uplink.toFixed(2)} / gpu ${this.saScores.gpuPerfScore.toFixed(2)} / srv ${this.saScores.serverPerfScore.toFixed(2)} / vis ${this.saScores.visualScore.toFixed(2)} / ovr ${this.saScores.overall.toFixed(2)}\n`;const he=`DC ${Sl(this.jk)}ms (${oi(this.jk)}ms) / Blocked ${this.Xk}\n`,we=`Stats ${Sl(this.Jk)}ms (${oi(this.Jk)}ms) / FR ${this.$k} / FDR ${this.zk}\n`,ze=`Latency ${this.ly.latencyScore.toFixed(1)} / Network ${this.ly.networkLossScore.toFixed(1)} / Bandwidth ${this.ly.bandwidthScore.toFixed(1)}\n`,pt=`VP ${Oi(this.vy.py)} / AP ${Oi(this.vy.my)} / UI ${Oi(this.vy.Tm)} / VKB ${Oi(this.vy.sg)} / MS ${this.vy.gy} / RSDMM ${+this.vy.fS}\n`,wt=`KBL ${this.vy.keyboardLayout} / ALM ${+this.vy.appLaunchMode} / SWD ${Oi(this.hy)} / ${this.oy}`;return h&&(ee+=he+we+ze+pt+wt),ee}jy(){return this.hdr?this.ny?` HDR10+G (${this.ey?"C":"_"}${this.ny?"S":"_"})`:" HDR":""}uninitialize(){this.Ay.remove()}}function Sl(x){let h=0;return x.count>0&&(h=x.value/x.count),h.toFixed(2)}function oi(x){return x.max.toFixed(2)}function Oi(x){return x?"y":"n"}class ki{constructor(h,b,k,ee=120){this.vr=h,this.Jy=b,this.index=k,this.Zy=ee,this.tI=0,this.iI=0,this.sI=0,this.eI=0,this.nI=0,this.framesDecoded=0,this.pliCount=0,this.hI=0,this.framesDropped=0,this.oI=0,this.rI=new Array,this.aI=-1}dI(h){return void 0!==h?h-this.vr.yd():0}za(){return this.vr.$a()}cI(h){const b=new ArrayBuffer(88),k=new DataView(b);k.setFloat64(0,Or(h.audioLevel),!0),vo(Or(h.concealedSamples),k,8,!0),vo(Or(h.concealmentEvents),k,16,!0),vo(Or(h.insertedSamplesForDeceleration),k,24,!0),k.setFloat64(32,Or(h.jitterBufferDelay),!0),vo(Or(h.jitterBufferEmittedCount),k,40,!0),vo(Or(h.removedSamplesForAcceleration),k,48,!0),vo(Or(h.silentConcealedSamples),k,56,!0),k.setFloat64(64,Or(h.totalSamplesReceived),!0),k.setFloat64(72,Or(h.totalSamplesDuration),!0),k.setFloat64(80,this.za(),!0),this.Jy.lI([b],4)}sendVideoTrack(h){const b=Or(h.framesDropped);b>=this.oI&&(this.framesDropped=b-this.oI,this.oI=b);const k=new ArrayBuffer(44),ee=new DataView(k);ee.setUint32(0,Or(h.framesDecoded),!0),ee.setUint32(4,b,!0),ee.setUint32(8,Or(h.frameHeight),!0),ee.setUint32(12,Or(h.frameWidth),!0),ee.setUint32(16,Or(h.framesReceived),!0),ee.setFloat64(20,Or(h.jitterBufferDelay),!0),vo(Or(h.jitterBufferEmittedCount),ee,28,!0),ee.setFloat64(36,this.za(),!0),this.Jy.lI([k],3)}uI(h){"audio"===h.kind?(this.AI(h),this.cI(h)):(this.vI(h),this.sendVideoTrack(h),this.fI(h))}AI(h){const b=new ArrayBuffer(48),k=new DataView(b);vo(Or(h.packetsReceived),k,0,!0),vo(Or(h.bytesReceived),k,8,!0),vo(Or(h.packetsLost),k,16,!0),k.setFloat64(24,Or(h.lastPacketReceivedTimestamp),!0),k.setFloat64(32,Or(h.jitter),!0),k.setFloat64(40,this.za(),!0),this.Jy.lI([b],2)}pI(){return this.tI}mI(){return Math.round(this.iI)}gI(){return this.framesDecoded}wI(){return this.pliCount}SI(){return this.framesDropped}bI(h,b,k,ee){h>=this.sI&&(this.tI=h-this.sI,this.sI=h),ee>=this.hI&&(this.pliCount=ee-this.hI,this.hI=ee),this.framesDecoded=b-this.eI,this.framesDecoded>0&&k>this.nI&&(this.iI=1e3*(k-this.nI)/this.framesDecoded,this.eI=b,this.nI=k)}vI(h){const b=Or(h.packetsLost),k=Or(h.framesDecoded),ee=Or(h.totalDecodeTime),he=Or(h.pliCount);this.bI(b,k,ee,he);const we=new ArrayBuffer(80),ze=new DataView(we);ze.setUint32(0,k,!0),ze.setUint32(4,Or(h.keyFramesDecoded),!0),ze.setUint32(8,Or(h.nackCount),!0),ze.setInt32(12,b,!0),ze.setInt32(16,he,!0),vo(Or(h.bytesReceived),ze,20,!0),vo(Or(h.packetsReceived),ze,28,!0),ze.setFloat64(36,ee,!0),ze.setFloat64(44,Or(h.totalInterFrameDelay),!0),ze.setFloat64(52,Or(h.totalSquaredInterFrameDelay),!0),ze.setFloat64(60,Or(h.totalAssemblyTime),!0),ze.setUint32(68,Or(h.framesAssembledFromMultiplePackets),!0),ze.setFloat64(72,this.za(),!0),this.Jy.lI([we],1)}fI(h){if(h.perFrameEntries){const b=JSON.parse(h.perFrameEntries),k=[];let ee=this.aI;for(let he=0;he<b.length;he++){if(b[he].frameNumber>this.aI){const we=new ArrayBuffer(20),ze=new DataView(we);ze.setUint32(0,b[he].frameNumber,!0),ze.setFloat64(4,b[he].decodeTime,!0),ze.setFloat64(12,b[he].assemblyTime,!0),k.push(we)}ee=Math.max(ee,b[he].frameNumber)}this.aI=ee,k.length>0&&this.Jy.lI(k,6)}}kI(h){const b=h.timingFrameInfo.split(",",15);if(b.length<15)return;const k=new ArrayBuffer(70),ee=new DataView(k);ee.setUint32(0,Or(h.targetDelayMs),!0),ee.setUint32(4,Or(h.minPlayoutDelayMs),!0),ee.setUint32(8,Or(h.currentDelayMs),!0),ee.setFloat64(12,this.za(),!0),ee.setFloat64(20,Or(parseFloat(b[3])),!0),ee.setFloat64(28,Or(parseFloat(b[4])),!0),ee.setFloat64(36,Or(parseFloat(b[8])),!0),ee.setFloat64(44,Or(parseFloat(b[9])),!0),ee.setFloat64(52,Or(parseFloat(b[10])),!0),ee.setFloat64(60,Or(parseFloat(b[11])),!0),ee.setUint8(68,Or(parseFloat(b[13]))),ee.setUint8(69,Or(parseFloat(b[14]))),this.Jy.lI([k],0)}yI(h){var b,k,ee;const he=null!==(b=h.receiveTime)&&void 0!==b?b:0,we=h.presentationTime-he,ze=1e3*(null!==(k=h.processingDuration)&&void 0!==k?k:0),pt=this.dI(h.presentationTime),wt=new ArrayBuffer(16),$t=new DataView(wt);$t.setFloat64(0,pt,!0),$t.setUint16(8,Math.min(100*we,65535),!0),$t.setUint16(10,Math.min(100*ze,65535),!0),$t.setUint32(12,null!==(ee=h.rtpTimestamp)&&void 0!==ee?ee:0,!0),this.rI.push(wt),this.rI.length==this.Zy&&this.II()}II(){this.rI.length>0&&(this.Jy.lI(this.rI,5),this.rI=[])}}function Or(x){return x||0}class is{constructor(h){this.active=!1,this.CI=.06,this.EI=new DOMRect(0,0,0,0),this.TI=[],this.MI=[],this.Af=h,this.Qf=this.onmousedown.bind(this)}setActive(h){this.active!==h&&(this.active=h,h?(l.Log.i("{0c7ed7c}","{b56e30d}"),this.Af.dispatchEvent(new Event("focus",{bubbles:!0})),this.Af.addEventListener("pointerdown",this.Qf),this.Af.addEventListener("mousedown",this.Qf)):(l.Log.i("{0c7ed7c}","{00425c2}"),this.Af.removeEventListener("pointerdown",this.Qf),this.Af.removeEventListener("mousedown",this.Qf),this.TI=[],this.MI=[]))}isActive(){return this.active}DI(h){h<=0||h>=1?l.Log.e("{0c7ed7c}","{1cbd879}",h.toFixed(2)):this.CI=h}RI(){return this.CI}NI(h){h.width<=0||h.height<=0?l.Log.e("{0c7ed7c}","{3e0eb8f}",h.width,h.height):this.EI=h}xI(){return this.EI}OI(h){this.BI=h}FI(h,b){this.TI.push({presentedFrames:b.presentedFrames,LI:h,presentationTime:b.presentationTime,receiveTime:b.receiveTime,processingDuration:b.processingDuration});const k=this.UI(this.EI);is.GI(this.Af,k.x,k.y,k.width,k.height).then(ee=>this.HI(ee,b.presentedFrames))}onmousedown(h){if(this.TI.length){if(!(this.MI.length&&h.timeStamp-this.MI[this.MI.length-1].VI<100))for(this.MI.push({VI:h.timeStamp,WI:performance.now()});this.MI.length>32;)this.MI.shift()}else l.Log.w("{0c7ed7c}","{fe08a50}")}static GI(h,b,k,ee,he){return new Promise((we,ze)=>{window.setTimeout(()=>{const pt=is._I(h,b,k,ee,he);-1===pt&&ze(-1),we(pt)},0)})}static _I(h,b,k,ee,he){if(ee<=0||he<=0)return-1;const we=new OffscreenCanvas(ee,he).getContext("2d");if(!we)return l.Log.e("{0c7ed7c}","{b72639c}"),-1;let ze;try{we.drawImage(h,b,k,ee,he,0,0,ee,he),ze=we.getImageData(0,0,ee,he).data}catch($t){return l.Log.e("{0c7ed7c}","{b16b792}",$t),-1}let pt=0,wt=0;for(let $t=0;$t<ze.length-3;$t+=4)pt+=.2126*ze[$t]+.7152*ze[$t+1]+.0722*ze[$t+2],wt++;return pt/wt/255}HI(h,b){var k;if(!this.TI.length)return;const ee=this.TI[this.TI.length-1];if(b!==ee.presentedFrames)return void l.Log.d("{0c7ed7c}","{06323ea}",b);for(ee.qI=h;this.TI.length>32;)this.TI.shift();if(1==this.TI.length)return;const he=this.TI[this.TI.length-2];if(!(he.presentedFrames<b-2||void 0===he.qI||-1===he.qI)&&ee.qI-he.qI>this.CI){let we,ze=0;const pt={presentedFrames:b,LI:ee.LI,presentationTime:ee.presentationTime,receiveTime:ee.receiveTime,processingDuration:ee.processingDuration,VI:0,WI:0};for(;this.MI.length&&this.MI[0].VI<(null!==(k=ee.receiveTime)&&void 0!==k?k:ee.presentationTime);)ze++,we=this.MI.shift();if(!we)return;ze>1&&l.Log.d("{0c7ed7c}","{a4b8c55}",b,ze),pt.VI=we.VI,pt.WI=we.WI,this.BI&&this.BI(pt)}}$I(){const h=this.UI(this.EI);return!(h.x<0||h.y<0||h.x+h.width>this.Af.videoWidth||h.y+h.height>this.Af.videoHeight)}UI(h){const b=this.Af.videoWidth,k=this.Af.videoHeight;return new DOMRect(h.x*b,h.y*k,h.width*b,h.height*k)}zI(){const h={isPrimary:!0,pointerId:1,button:0};this.Af.dispatchEvent(new PointerEvent("pointerdown",h)),this.Af.dispatchEvent(new MouseEvent("mousedown")),window.setTimeout(()=>{this.Af.dispatchEvent(new PointerEvent("pointerup",h)),this.Af.dispatchEvent(new MouseEvent("mouseup"))},100)}}const Os="Show hotkeys";class Ho{constructor(h,b){this.pf=b,this.visible=!1,this.KI=[],this.QI=!1,this.YI=0,this.XI=0,this.jI={x:0,y:0},this.JI=0,this.Af=h,this.controller=new is(h),this.bp=this.onfullscreenchange.bind(this),this.ZI=this.onmousedown.bind(this),this.tC=this.onmousemove.bind(this),this.iC=this.sC(),this.eC=this.nC(),this.hC=this.oC(),this.rC=this.aC(),this.dC=this.createNotification(),h.insertAdjacentElement("afterend",this.iC),this.iC.insertAdjacentElement("afterend",this.eC),this.eC.insertAdjacentElement("afterend",this.hC),this.iC.insertAdjacentElement("beforebegin",this.rC),this.rC.insertAdjacentElement("beforebegin",this.dC),this.controller.OI(this.BI.bind(this)),this.cC(!1),this.lC(!1),this.uC(!0)}stop(){this.iC.remove(),this.eC.remove(),this.hC.remove(),this.rC.remove(),this.dC.remove(),this.AC(!1),this.KI=[]}reset(){this.setActive(!1),this.vC(this.fC,.06),this.vC(this.pC,20),this.vC(this.mC,1e3),this.cC(!1),this.lC(!1),this.uC(!0),this.gC(!1),this.wC.value="",this.SC.value="",this.KI=[]}jw(){this.AC(!this.isVisible())}AC(h){if(h!==this.visible){l.Log.i("{50c79eb}","{5595c14}",h),this.visible=h;for(const he of[this.iC,this.eC,this.rC])he===this.rC&&h?this.gC(this.bC.value!==Os):he.style.display=h?"block":"none";const b=ae(),k=b?"pointerdown":"mousedown",ee=b?"pointermove":"mousemove";if(h){this.kC(),this.yC(this.eC,this.IC),this.fC.oninput=we=>{const ze=parseFloat(we.target.value);this.controller.DI(ze),this.CC.innerHTML=this.EC(ze)},this.TC.oninput=we=>{this.cC(we.target.checked)},this.pC.oninput=we=>{this.MC.innerHTML=we.target.value},this.mC.oninput=we=>{this.PC.innerHTML=this.DC(we.target.value)},this.RC.oninput=we=>{this.lC(we.target.checked)};const he=(we,ze)=>{const pt=parseInt(we.target.value);ze.value=Math.max(Math.min(pt,100),0).toFixed(0),this.NC()};this.wC.oninput=we=>he(we,this.wC),this.SC.oninput=we=>he(we,this.SC),this.xC.onclick=we=>this.setActive("Start"===this.xC.value),this.bC.onclick=we=>this.gC(this.bC.value===Os),this.eC.onmouseup=this.kC.bind(this),this.eC.onmousedown=we=>{this.isActive()&&this.controller.zI()},this.pf._p(2,this.bp),this.Af.addEventListener(k,this.ZI),this.Af.addEventListener(ee,this.tC)}else this.setActive(!1),this.fC.oninput=null,this.TC.oninput=null,this.pC.oninput=null,this.mC.oninput=null,this.RC.oninput=null,this.wC.oninput=null,this.SC.oninput=null,this.xC.onclick=null,this.bC.onclick=null,this.eC.onmouseup=null,this.eC.onmousedown=null,this.IC.onmousedown=null,this.pf.Qp(2,this.bp),this.Af.removeEventListener(k,this.ZI),this.Af.removeEventListener(ee,this.tC)}}isVisible(){return this.visible}toggle(){this.setActive(!this.isActive())}setActive(h){if(!h||this.controller.$I())if(h&&this.QI)l.Log.e("{50c79eb}","{89742e9}");else if(this.controller.setActive(h),this.uC(),h){if(this.xC.value="Stop",this.OC()){l.Log.i("{50c79eb}","{5974b2c}"),this.QI=!0,this.XI=parseInt(this.pC.value);const b=parseInt(this.mC.value);this.YI=window.setInterval(()=>this.BC(),b)}}else this.xC.value="Start",this.QI&&(this.YI?(l.Log.i("{50c79eb}","{d340c50}"),this.FC()):l.Log.w("{50c79eb}","{6d8948b}")),this.LC(),this.UC();else this.GC()}isActive(){return this.controller.isActive()}bf(){return!this.isVisible()||this.isActive()}oS(){this.cC(!this.OC())}HC(h){var b;const k=null!==(b=h.processingDuration)&&void 0!==b?b:0;return{VC:h.WI-h.VI,WC:h.receiveTime?h.receiveTime-h.WI:0,_C:h.receiveTime&&h.processingDuration?h.presentationTime-h.processingDuration-h.receiveTime:0,decode:k,qC:h.LI-h.presentationTime,total:h.LI-h.VI}}OC(){return this.TC.checked}rS(){if(!this.KI.length)return void l.Log.w("{50c79eb}","{2884507}");const h=`LDAT_${(new Date).toISOString()}.csv`,b=[["Sample #","Total","Render","Decode","Begin","Server + Rtd + Receive","Input Callback"].join(",")];for(let k=0;k<this.KI.length;k++){const he=this.HC(this.KI[k]);b.push([k,he.total,he.qC,he.decode,he._C,he.WC,he.VC].join(","))}Rn([b.join("\n")],h,"text/plain")&&l.Log.i("{50c79eb}","{690879e}",h)}aS(){l.Log.i("{50c79eb}","{d2811a7}"),this.wC.value="50",this.SC.value="50",this.$C(.5,.5)}dS(){this.lC(!this.RC.checked)}FI(h,b){this.controller.FI(h,b)}zC(){const h=document.createElement("div");return h.style.display="none",h.style.position="absolute",h.style.color="white",h.style.backgroundColor="rgb(105, 105, 105, 0.7)",h.style.padding="2px",h}KC(h){const b=document.createElement("div");return b.style.width="100%",b.style.borderBottom="1px dashed darkgray",b.style.paddingBottom="2px",b.innerHTML=h,b}QC(h){const b=document.createElement("input");return b.type="button",b.value=h,b.style.margin="5px",b.style.backgroundColor="rgb(132, 130, 143, .7)",b.style.color="white",b.style.padding="8px 40px",b.style.border="none",b.style.borderRadius="4px",b.style.cursor="pointer",b}YC(){const h=document.createElement("input");return h.type="checkbox",h}XC(h){const b=document.createElement("label");return b.innerHTML=h,b}jC(h,b,k,ee=1){const he=document.createElement("input");return he.type="range",he.min=b.toString(),he.max=k.toString(),he.step=ee.toString(),he.value=h.toString(),he}sC(){const h=this.zC(),b=this.KC("Latency Display Analysis Tool (LDAT)");this.xC=this.QC("Start"),this.bC=this.QC(Os),h.style.bottom="0px",h.style.left="0px",h.style.margin="5px",this.bC.style.border="1px solid white",this.bC.style.fontSize="10px",this.bC.style.padding="5px",this.bC.style.position="absolute",this.bC.style.right="0px",h.appendChild(b),h.appendChild(this.xC),h.appendChild(this.bC),h.appendChild(this.JC()),h.appendChild(this.ZC()),h.appendChild(this.tE()),this.RC=this.YC();const k=document.createElement("span");return k.title="Simulate mouse move event whenever a mouse click is detected. Introduces two 300 ms delays between move events and requires a minimum shot delay of 1 sec.",k.innerHTML="<sup> i </sup>",h.appendChild(this.XC("Move On Click")),h.appendChild(k),h.appendChild(this.RC),h}JC(){const h=document.createElement("div"),b=this.controller.RI();this.fC=this.jC(b,.01,.2,.01),this.CC=document.createElement("span");const k=this.XC("Activation Level"),ee=document.createElement("span");return this.CC.innerHTML=this.EC(b),ee.style.paddingRight="2px",ee.title="% increase in luminance used to determine whether a flash occurred",ee.innerHTML="<sup> i </sup>",h.appendChild(k),h.appendChild(ee),h.appendChild(this.fC),h.appendChild(this.CC),h}ZC(){const h=document.createElement("div");this.iE=document.createElement("div"),this.TC=this.YC(),this.pC=this.jC(20,5,100,5),this.mC=this.jC(1e3,500,5e3,100);const b=this.XC("Autofire"),k=this.XC("# Shots"),ee=this.XC("Shot Delay");return this.MC=document.createElement("span"),this.PC=document.createElement("span"),this.MC.innerHTML=this.pC.value,this.PC.innerHTML=this.DC(this.mC.value),this.pC.id="shot-count-slider",this.iE.appendChild(k),this.iE.appendChild(this.pC),this.iE.appendChild(this.MC),this.iE.appendChild(document.createElement("br")),this.iE.appendChild(ee),this.iE.appendChild(this.mC),this.iE.appendChild(this.PC),h.appendChild(b),h.appendChild(this.TC),h.appendChild(this.iE),h}cC(h){this.TC.checked=h,this.pC.disabled=!h,this.mC.disabled=!h,this.iE.style.color=h?"white":"gray"}tE(){const h=document.createElement("div"),b=this.XC("Loupe Position:"),k=this.XC("X"),ee=this.XC("Y");k.style.paddingLeft="10px",ee.style.paddingLeft="10px",k.style.paddingRight="2px",ee.style.paddingRight="2px";const he=()=>{const we=document.createElement("input");return we.type="number",we.min="0",we.max="100",we.step="1",we.placeholder="Int",we.style.width="40px",we};return this.wC=he(),this.SC=he(),h.appendChild(b),h.appendChild(k),h.appendChild(this.wC),h.appendChild(this.XC("%")),h.appendChild(ee),h.appendChild(this.SC),h.appendChild(this.XC("%")),h}nC(){const h=this.zC(),b=this.KC("Loupe");return this.IC=document.createElement("div"),this.IC.style.cursor="move",this.IC.style.width="100%",this.IC.style.height="100%",this.IC.innerHTML="Click here to drag the loupe to the area of the screen where flashes will occur. Then, press start.",h.appendChild(b),h.appendChild(this.IC),h}$C(h,b){const k=this.Af.getBoundingClientRect(),ee=this.eC.getBoundingClientRect(),{paddingTop:he,paddingRight:we,paddingBottom:ze,paddingLeft:pt}=this.sE(this.Af),zt=k.left+pt+(k.width-pt-we)*h-ee.width*h;this.eC.style.top=(k.top+he+(k.height-he-ze)*b-ee.height*b).toString()+"px",this.eC.style.left=zt.toString()+"px",this.kC()}NC(){const h=b=>parseInt(b||"50")/100;this.$C(h(this.wC.value),h(this.SC.value))}uC(h=!1){h&&(this.eC.style.bottom="5px",this.eC.style.left="300px",this.eC.style.top="",this.eC.style.right="",this.eC.style.width="150px",this.eC.style.height="150px"),this.isActive()?(this.IC.style.display="none",this.eC.style.border="2px rgb(76, 175, 80) solid",this.eC.style.backgroundColor="transparent"):(this.IC.style.display="block",this.eC.style.border="none",this.eC.style.backgroundColor="rgb(105, 105, 105, 0.7)")}lC(h){this.RC.checked=h}onmousedown(h){if(this.RC.checked&&this.isActive()&&!h.eE){const k=(ze,pt)=>{switch(ze){case 0:this.Af.dispatchEvent(new PointerEvent("pointerup",pt)),this.Af.dispatchEvent(new MouseEvent("mouseup",pt));break;case 1:const wt=new PointerEvent("pointerdown",pt),$t=new MouseEvent("mousedown",pt);wt.eE=!0,$t.eE=!0,this.Af.dispatchEvent(wt),this.Af.dispatchEvent($t);break;case 2:this.Af.dispatchEvent(new PointerEvent("pointerrawupdate",pt)),this.Af.dispatchEvent(new PointerEvent("pointermove",pt)),this.Af.dispatchEvent(new MouseEvent("mousemove",pt))}},ee={button:2,isPrimary:!0,pointerId:1},he={clientX:(Math.max(h.clientX,0)||this.jI.x)+64,clientY:Math.max(h.clientY,0)||this.jI.y,movementX:64,isPrimary:!0};k(1,ee);const we=300;window.setTimeout(()=>{k(2,he),window.setTimeout(()=>{he.clientX-=64,he.movementX=-64,k(2,he),window.setTimeout(()=>k(0,ee),we)},we)},we)}}onmousemove(h){this.jI={x:h.clientX,y:h.clientY}}oC(){const h=this.zC();return h.style.position="relative",h.style.backgroundColor="gray",h.style.textAlign="center",h.innerHTML="Warning: Must place loupe over video element to activate the LDAT. Please reposition the loupe and then click start.",h}aC(){const h=this.zC(),b=this.KC("LDAT Hot Keys"),k=document.createElement("ul");h.style.bottom="195px",h.style.left="0px",h.style.margin="5px",k.style.listStyle="none",k.style.paddingLeft="2px",k.style.margin="5px";for(const ee of["Enter - Start/Stop","R - Reset","A - Turn On/Off Auto-Fire Mode","S - Save Log File","C - Center Loupe on Screen"]){const he=document.createElement("li");he.innerHTML=ee,k.append(he)}return h.appendChild(b),h.appendChild(k),h}gC(h){h?(this.bC.value="Hide hotkeys",this.rC.style.display="block"):(this.bC.value=Os,this.rC.style.display="none")}createNotification(){const h=this.zC();return h.style.bottom="325px",h.style.left="0px",h.style.margin="5px",h}kC(){const h=this.Af.getBoundingClientRect(),b=this.eC.getBoundingClientRect();if(this.Af.style.paddingTop||this.Af.style.paddingRight||this.Af.style.paddingBottom||this.Af.style.paddingLeft){const{paddingTop:k,paddingRight:ee,paddingBottom:he,paddingLeft:we}=this.sE(this.Af);h.x+=we,h.y+=k,h.width-=we+ee,h.height-=k+he}b.x=(b.x-h.x)/h.width,b.y=(b.y-h.y)/h.height,b.width/=h.width,b.height/=h.height,this.controller.NI(b)}GC(){this.hC.style.display="block",window.setTimeout(()=>this.hC.style.display="none",5e3)}onfullscreenchange(h){this.kC()}LC(){0!==this.JI&&(window.clearTimeout(this.JI),this.JI=0)}UC(){this.dC.innerHTML="",this.dC.style.display="none"}BI(h){this.LC(),this.KI.push(h);const b=this.HC(h),k=b.total.toFixed(),ee=`Flash occurred at frame ${h.presentedFrames}. Latency: ${k} ms.`;l.Log.i("{50c79eb}","{78905f8}",h.presentedFrames,k),b.VC.toFixed(),b.WC.toFixed(),b._C.toFixed(),b.decode.toFixed(),b.qC.toFixed(),l.Log.d("{50c79eb}","{d3d4a0c}",k,b.VC.toFixed(),b.WC.toFixed(),b._C.toFixed(),b.decode.toFixed(),b.qC.toFixed()),this.dC.innerHTML=ee,this.dC.style.display="block",this.JI=window.setTimeout(()=>{this.UC(),this.JI=0},5e3)}BC(){this.XI-- >0?this.controller.zI():(l.Log.i("{50c79eb}","{d37e51d}"),this.FC(),this.setActive(!1))}FC(){window.clearInterval(this.YI),this.YI=0,this.QI=!1}yC(h,b){let k=0,ee=0,he=0,we=0;const ze=document.onmouseup,pt=document.onmousemove;b.onmousedown=wt=>{wt.preventDefault(),k=wt.clientX,ee=wt.clientY,document.onmouseup=()=>{document.onmouseup=ze,document.onmousemove=pt},document.onmousemove=$t=>{$t.preventDefault(),he=k-$t.clientX,we=ee-$t.clientY,k=$t.clientX,ee=$t.clientY,h.style.top=h.offsetTop-we+"px",h.style.left=h.offsetLeft-he+"px"}}}EC(h){return(100*h).toFixed()+"%"}DC(h){return h+" ms"}vC(h,b){h.value=b.toString(),h.dispatchEvent(new Event("input"))}sE(h){const b=k=>{if(!k)return 0;const ee=k.length;return"%"===k.substring(ee-1)?parseInt(k.substring(0,ee-1)):"px"===k.substring(ee-2)?parseInt(k.substring(0,ee-2)):(l.Log.w("{50c79eb}","{3351f27}",k),0)};return{paddingTop:b(h.style.paddingTop),paddingRight:b(h.style.paddingRight),paddingBottom:b(h.style.paddingBottom),paddingLeft:b(h.style.paddingLeft)}}}class Ko{constructor(h){this.Rs=h,this.extraData=new Map,this.nE=65535,this.hE=new Array,this.oE=1,this.saScores={gpuPerfScore:-1,serverPerfScore:-1,visualScore:-1,decoderScore:-1,downlinkLag:-1,downlinkCongestion:-1,uplink:-1,overall:-1}}Ey(h,b,k){this.saScores=h,this.extraData.set("WiFiScanScore",100*b),this.extraData.set("ThrottlingScore",100*k)}rE(h){let b=0;fi(this.Rs)?b=1:Ji(this.Rs)?b=2:bt(this.Rs)&&(b=3),this.extraData.set("Platform",b);const k=this.aE(h);k&&this.extraData.set("AvgTotalCPUUsage",k),this.extraData.set("DecodeType",this.oE);let ee={saScores:this.saScores,extraData:this.extraData};l.Log.i("{240ae89}","{d1eda5e}",ee.saScores.overall,ee.saScores.gpuPerfScore,ee.saScores.serverPerfScore,ee.saScores.visualScore,ee.saScores.decoderScore,ee.saScores.downlinkLag,ee.saScores.downlinkCongestion,ee.saScores.uplink);for(const he of ee.extraData.entries())l.Log.i("{240ae89}","{4d3c418}",he[0],he[1]);return ee}yy(h){h&&(this.nE=Math.min(this.nE,h),this.extraData.set("Rtd",this.nE))}dE(h){this.extraData.set("Power",h)}cE(h){this.extraData.set("Display",h)}lE(h,b){this.extraData.set("MaxStreamingWidth",h),this.extraData.set("MaxStreamingHeight",b)}uE(h){this.extraData.set("MaxStreamingFps",h)}aE(h){if(0===this.hE.length||0===h)return 0;let b=0,k=0,ee=0;for(const{frameNumber:he,cpuUsage:we}of this.hE)b+=ee*(he-k-1),b+=we,k=he,ee=we;return h>k&&(b+=ee*(h-k)),b/h}AE(h,b){0==h&&(h=1),this.hE.push({frameNumber:h,cpuUsage:b})}vE(h){this.oE=h}}class xa extends Map{constructor(){super([["TCP",0],["MDNS",0],["IPV6",0],["IPV4",0],["UNKNOWN",0]])}}const Ws=["transport","inbound-rtp","candidate-pair","local-candidate"];class ws{constructor(h,b,k,ee,he,we,ze,pt,wt,$t,an,zt){this.Jh=h,this.Xd=b,this.cb=ee,this.telemetry=we,this.Rs=ze,this.Gk=pt,this.pf=wt,this.ec=$t,this.vr=an,this.Jy=zt,this.fE=!0,this.pE=0,this.mE=0,this.gE=[],this.wE="",this.SE=new Map,this.bE=!1,this.kE=new Map,this.yE=new Map,this.IE=0,this.CE=0,this.EE=0,this.TE=0,this.ME=[],this.PE={width:0,height:0},this.DE={width:0,height:0},this.RE=!1,this.NE=!1,this.xE=!1,this.OE=0,this.BE=0,this.FE=0,this.LE=!1,this.UE=(mn,kn,yn)=>{var Qn,li,wi;const mi=this.gE[mn];0===mn&&mi.GE.yI(yn),!(null===(Qn=this.HE)||void 0===Qn)&&Qn.isActive()&&0===mn&&this.HE.FI(kn,yn),mi.Tk&&yn.rtpTimestamp&&yn.receiveTime&&(mi.VE={WE:yn.rtpTimestamp,_E:yn.receiveTime-this.vr.yd()}),this.isEnabled()&&mi.UE&&(null===(wi=null===(li=mi.Af)||void 0===li?void 0:li.requestVideoFrameCallback)||void 0===wi||wi.call(li,mi.UE))},this.qE={$E:0,droppedVideoFrames:[],totalVideoFrames:[]},k.length!==he.length&&l.Log.w("{5cea617}","{c443e77}");for(let mn=0;mn<k.length&&mn<he.length;mn++){const kn=he[mn],yn=k[mn],Qn=new ii(yn,this.Rs,pt);Qn.$y(kn.bitDepth),Qn.Wy(1===kn.Pk);const li={zE:{KE:0,QE:0,YE:0},oy:"",XE:-1},wi=new Dn(kn.Ik,kn.Mk),mi=new Ko(this.Rs);mi.lE(kn.bk,kn.kk),mi.uE(kn.yk);const Bi={Tk:kn.Tk,jE:0,JE:Qn,ZE:wi,tT:li,packetsReceived:0,iT:mi,GE:new ki(this.vr,this.Jy,mn),Af:yn,UE:this.UE.bind(this,mn),sT:0};this.gE[mn]=Bi,this.qE.droppedVideoFrames.push(0),this.qE.totalVideoFrames.push(0)}if(!this.gE.length){const mn={JE:new ii(document.body,this.Rs,pt),packetsReceived:0,iT:new Ko(this.Rs),GE:new ki(this.vr,this.Jy,0),ZE:new Dn,sT:0};this.gE.push(mn)}Hn.isInternalUser&&k[0]&&(this.HE=new Ho(k[0],wt)),this.eT={ts:0,timingFrameInfo:"",targetDelayMs:0,minPlayoutDelayMs:0,currentDelayMs:0},this.nT(),this.hT=this.Jh.hasListener("StreamingStats"),this.oT(),this.LE=-1!==this.Rs.gpuDetail.indexOf("SwiftShader"),this.rT(),this.yE.set("audio",!1),this.yE.set("video",!1)}rT(){var h=this;return n(function*(){if(h.aT=yield n(function*(){const b=yield uo.Hb("h264");if(void 0!==b)return!!b?.powerEfficient})(),void 0===h.aT)for(const b of h.gE)b.iT.vE(0)})()}dT(){const h=performance.now();this.cb.getStats(null).then(b=>{let k=!1;for(let ee of b.values())if("track"===ee.type&&(k=!0),this.cT(ee.type)){this.yE.has(ee.kind)&&(this.yE.set(ee.kind,!0),"video"!==ee.kind&&this.Nk||(this.Nk=ee.kind));const he=this.kE.get(ee.type);he?he.includes(ee.id)?l.Log.e("{5cea617}","{76f5968}",ee.id):he.push(ee.id):this.kE.set(ee.type,[ee.id])}this.xE=!k,l.Log.i("{5cea617}","{1317761}",this.xE?"yes":"no"),this.bE=!0,this.lT(b),this.uT(b,h),this.AT(b,h)}).catch(b=>this.vT(b,"init")).finally(()=>this.fT())}nT(){this.pT=this.cb.createDataChannel("stats_channel",{ordered:!1,reliable:!1,maxRetransmits:0}),this.pT.binaryType="arraybuffer",this.Xd.mT(this.pT,{open:()=>{this.OE=1},close:()=>{this.gT(),this.OE=2}}),this.pT.onmessage=h=>{var b=new DataView(h.data);let k=b.getUint8(0);const ee=this.gE[0];if(k>=2){const he=b.getFloat64(1,!0)/1e6,we=1e3*b.getFloat64(9,!0),ze=b.getFloat64(17,!0);if(ee.JE.Iy(we),ee.JE.yy(ze),ee.iT.yy(ze),k>=3){const wt=b.getFloat64(25,!0);if(ee.JE.Cy(wt),k>=4){let $t=b.getFloat32(33,!0),an=b.getFloat32(37,!0),zt=b.getFloat32(41,!0),mn=b.getFloat32(45,!0),kn=b.getFloat32(49,!0),yn=b.getFloat32(53,!0),Qn=b.getFloat32(57,!0),li=b.getFloat32(61,!0),wi=b.getFloat32(65,!0),mi=b.getFloat32(69,!0),Bi={gpuPerfScore:an,serverPerfScore:zt,visualScore:mn,decoderScore:kn,downlinkLag:yn,downlinkCongestion:Qn,uplink:li,overall:$t};ee.JE.Ey(Bi),ee.iT.Ey(Bi,wi,mi)}}const pt=ee.JE.Sy(he);ee.ZE.KS(he,pt),ee.ZE.zS(ze)}else l.Log.e("{5cea617}","{4f9f4b7}",k)}}oT(){var h,b,k,ee;this.pE=window.setInterval(()=>{this.wT()},null!==(h=Hn.ko.getStatsInterval)&&void 0!==h?h:96),qe()&&(this.mE=window.setInterval(()=>{this.ST()},null!==(b=Hn.ko.getDeprecatedStatsInterval)&&void 0!==b?b:201));for(const he of this.gE)he.UE&&(null===(ee=null===(k=he.Af)||void 0===k?void 0:k.requestVideoFrameCallback)||void 0===ee||ee.call(k,he.UE))}Xp(h){if(this.Jy.bT(h),!Hn.yo){const b=window.performance.now();for(let k=0;k<this.gE.length;k++){const ee=this.gE[k].Af;if(!ee)continue;const he=Nl(ee);if(he){const we=he.kT,ze=we-this.qE.droppedVideoFrames[k],pt=he.yT-this.qE.totalVideoFrames[k];this.qE.droppedVideoFrames[k]=we,this.qE.totalVideoFrames[k]=he.yT,1==ze?this.ec.IT[k]++:ze>1&&(this.ec.CT[k]+=ze),this.Jy.ET(pt,ze)}}this.qE.$E=b}}uv(){Hn.yo||this.TT()}TT(){const h=window.performance.now();h>this.ec.MT+1e4?(0!==this.ec.MT&&l.Log.i("{5cea617}","{5fa9066}",this.ec.PT,this.ec.zc,this.ec.Kc,this.ec.Qc,this.qE.totalVideoFrames.map((b,k)=>b-this.ec.DT[k]),this.ec.IT,this.ec.CT,this.ec.om,this.ec.tl),this.ec.MT=h,this.ec.DT=this.qE.totalVideoFrames,this.ec.PT=1,this.ec.zc=0,this.ec.Kc=0,this.ec.Qc=0,this.ec.IT.fill(0),this.ec.CT.fill(0),this.ec.om=0,this.ec.tl=0):this.ec.PT+=1}gT(){this.pE&&(clearInterval(this.pE),this.pE=0),this.mE&&(clearInterval(this.mE),this.mE=0);for(const h of this.gE)h.GE.II()}reset(){var h;this.gT();for(const b of this.gE)b.ZE.reset(),b.JE.uninitialize(),b.JE=new ii(null!==(h=b.Af)&&void 0!==h?h:document.body,this.Rs,this.Gk);this.SE.clear()}isEnabled(){return 0!=this.pE}NT(){this.isEnabled()&&(this.gT(),this.xT(!1))}OT(){this.isEnabled()||this.oT()}stop(){var h;if(!this.fE)return;this.fE=!1;let b=!1;for(const he of this.gE)he.JE.uninitialize(),!b&&he.tT&&(this.telemetry.Db("InboundVideoStats",he.tT.oy,he.tT.zE.YE,he.tT.zE.KE,he.tT.XE,he.tT.zE.QE),b=!0);const k=this.cb.getConfiguration(),ee=(k.iceServers||[]).map(he=>(Array.isArray(he.urls)?he.urls:[he.urls]).filter(we=>we.startsWith("turn:")||we.startsWith("turns:")).map(we=>he.username?`${we},${he.username}`:we)).reduce((he,we)=>he.concat(we),[]).join(" | ")||void 0;if(ee){const he=this.BT(this.SE);this.telemetry.Ke("TURN Server Details",`${he?.url||""}`,`${he?.protocol||""}`,`${ee}`,`${k.iceTransportPolicy||"default"}`)}this.NT(),null===(h=this.HE)||void 0===h||h.stop()}cT(h){return Ws.includes(h)}FT(){this.bE=!1}UT(h,b){for(const k of h.values())b.includes(k.type)&&this.SE.set(k.id,k)}lT(h){this.UT(h,Ws)}GT(h){this.lT(h)}HT(){return"video"===this.Nk||!this.yE.get("video")}VT(h){return h>=this.CE&&this.HT()}AT(h,b){const k=performance.now();if(this.VT(b)){if(this.WT(),this._T(h),this.qT()){const he=2===this.IE;for(const we of this.gE)we.JE.Ny(he)}this.CE=b+1e3}if(this.$T(),this.Xd.zT(),this.KT(b)&&(this.BE=b+5e3),this.Nk){const he="video"===this.Nk?"audio":"video";this.yE.get(he)&&(this.Nk=he)}const ee=performance.now()-k;for(const[he,we]of this.gE.entries()){const ze=ee+we.sT;0===he&&this.Jy.QT(ze),we.JE.Ly(ze),we.sT=0}}getSelectedCandidatePair(h){for(const[b,k]of h)if("transport"===k.type&&k.selectedCandidatePairId){const we=h.get(k.selectedCandidatePairId);if(we)return we;break}for(const[b,k]of h)if("candidate-pair"===k.type&&k.selected)return k}BT(h){let b,k;const ee=this.getSelectedCandidatePair(h);if(ee)for(const[he,we]of h)if((he===ee.localCandidateId||he===ee.remoteCandidateId)&&("relay"===we.candidateType||we.relayProtocol)){if(b=we.url,k=we.relayProtocol,void 0===b||void 0===k)continue;return l.Log.i("{5cea617}","{5f36af2}",b,k),{url:b,protocol:k}}l.Log.i("{5cea617}","{265646b}")}uT(h,b,k){var ee;const he=performance.now();if(void 0===k&&1===this.gE.length&&(k=0),void 0===k)return;this.VT(b)&&(this.YT(h,k),this.XT(k)),this.jT(h,k);const we=this.gE[k],ze=we.VE;b>=(null!==(ee=we.jE)&&void 0!==ee?ee:0)&&ze&&(this.JT(ze,k),we.VE=void 0,we.jE=b+1e3);const pt=we.JE;if(this.HT()){Mn(this.Rs)&&this.ZT(k);const wt=we.ZE.YS();pt.ky(wt),0===k&&(this.Jh.emit("StreamingQuality",wt),this.hT&&this.Jh.emit("StreamingStats",pt.Ty()),this.Jy.tM(wt))}this.KT(b)&&pt.Dy(k),we.sT=performance.now()-he}KT(h){return h>=this.BE}jT(h,b){if(0===b)for(const[k,ee]of this.kE.entries())for(const he of ee){const we=h.get(he);we&&"inbound-rtp"===k&&this.gE[b].GE.uI(this.iM(h,we))}}Fy(h){for(const b of this.gE)b.JE.Fy(h)}sM(h){for(const b of this.gE)b.JE.Uy(h)}Wy(h,b){this.gE[b].JE.Wy(h)&&(l.Log.i("{5cea617}","{3cc6c54}",h?"on":"off"),this.XT(b))}qy(h,b,k){this.gE[k].JE.qy(h,b)&&this.XT(k)}wT(){if(!this.RE)if(this.RE=!0,0===this.OE)this.cb.getStats().then(h=>this.GT(h)).catch(h=>this.vT(h,"early")).finally(()=>this.fT());else if(1===this.OE)if(this.bE){let h=[];const b=performance.now();switch(this.Nk){case"audio":case"video":h=this.cb.getTransceivers().filter(ee=>{var he,we;return(null===(he=ee.receiver.track)||void 0===he?void 0:he.kind)===this.Nk&&(null===(we=ee.receiver.track)||void 0===we?void 0:we.enabled)}).map((ee,he)=>ee.receiver.getStats().then(we=>(this.uT(we,b,he),we)));break;default:h.push(this.cb.getStats().then(ee=>(this.uT(ee,b,0),ee)))}if(0===h.length)return void(this.RE=!1);Promise.all(h).then(k=>k[0]).then(k=>this.AT(k,b)).catch(k=>this.vT(k,"standard")).finally(()=>this.fT())}else this.dT();else this.RE=!1}qT(){return 0!==this.IE}toggleOnScreenStats(h,b){this.xT(b??!this.qT(),h)}sS(h){const b=this.gE[h].JE;this.Jy.eM(),b.Ky(),b.xy(2===this.IE)}xT(h,b=!1){for(const k of this.gE)k.JE.By(h),h&&k.JE.Ny(b);h?(this.CE=performance.now(),this.IE=b?2:1):this.IE=0}YT(h,b){"video"===this.Nk?this.nM(h,b):this.yE.get("video")||this.hM(h),this.gE[b].JE.Gy(this.Xd.oM())}hM(h){var b;const k=this.kE.get("inbound-rtp");if(!k)return;let ee=k.map(we=>h.get(we)).find(we=>"audio"===we?.kind||"audio"===we?.Nk);if(!ee)return;ee=this.iM(h,ee);const he=this.gE[0];he.JE.by(ee),he.packetsReceived=null!==(b=ee.packetsReceived)&&void 0!==b?b:0,this.UT(h,["inbound-rtp"])}nM(h,b){var k,ee;const he=this.kE.get("inbound-rtp");if(!he)return;const we=this.gE[b],ze=we.tT,pt=we.JE;if(!ze)return;let wt=he.map(kn=>h.get(kn)).find(kn=>"video"===kn?.kind||"video"===kn?.Nk);if(!wt)return void ze.zE.KE++;wt=this.iM(h,wt);const $t=wt.decoderImplementation;let an=!1;if($t?.indexOf&&($t!==ze.oy&&"unknown"!==$t&&(ze.oy=$t,pt.Yy($t)),an=-1!==$t.indexOf("fallback")),(an||"FFmpeg"===$t||this.LE||!1===this.aT)&&-1===ze.XE){ze.XE=null!==(k=wt.framesDecoded)&&void 0!==k?k:this.gI(b),this.Jy.rM("SoftwareDecodeFallback");const kn="Fallback to software decode at frame "+String(ze.XE);l.Log.i("{5cea617}","{953d211}",String(ze.XE)),pt.Qy(!0),this.Xd.aM(kn);const yn=we.iT;an?yn.vE(3):(this.LE||"FFmpeg"===$t||!1===this.aT)&&yn.vE(2)}const zt=this.SE.get(wt.id);if(!zt)return void ze.zE.QE++;ze.zE.YE++;const mn=wt.codecId;if(mn){const kn=h.get(mn).mimeType.toUpperCase();let yn="UNKNOWN";kn.includes("H265")?yn="H265":kn.includes("AV1")?yn="AV1":kn.includes("H264")?yn="H264":l.Log.d("{5cea617}","{4b31535}",kn),pt.Hy(yn)}we.ZE.QS(wt,zt),pt.by(wt),we.packetsReceived=null!==(ee=wt.packetsReceived)&&void 0!==ee?ee:0,this.UT(h,["inbound-rtp"])}iM(h,b){if(!this.xE){const k=h.get(b.trackId);k&&(b=Object.assign(k,b))}return b}_T(h){var b;const k=this.kE.get("candidate-pair");if(!k?.length)return;const ee=k.map(ze=>h.get(ze));if(!ee.length)return;let he=this.getSelectedCandidatePair(h);he||(he=ee[0]),this.ME.length>=6&&this.ME.splice(0,1),this.ME.push(he);const we=null===(b=this.SE)||void 0===b?void 0:b.get(he.id);if(we)for(const ze of this.gE)ze.JE.wy(he,we);this.UT(h,["candidate-pair","transport"])}ST(){if(this.NE)return;this.NE=!0;const h=()=>{l.Log.i("{5cea617}","{cf8b53f}"),this.NE=!1,clearInterval(this.mE),this.mE=0};this.cb.getStats(b=>{for(let k of b.result())if("ssrc"==k.type)for(let ee of k.names()){"video"===k.stat("mediaType")&&(this.eT.ts=this.vr.$a(),this.eT.timingFrameInfo=k.stat("googTimingFrameInfo"),this.eT.targetDelayMs=+k.stat("googTargetDelayMs"),this.eT.minPlayoutDelayMs=+k.stat("googMinPlayoutDelayMs"),this.eT.currentDelayMs=+k.stat("googCurrentDelayMs"));break}this.gE[0].GE.kI(this.eT),this.NE=!1},h).catch(h)}ZT(h){if(0!==h)return;const b=new ArrayBuffer(12),k=new DataView(b),ee=this.gE[h].GE;k.setUint8(0,1),k.setUint8(1,1),k.setUint16(2,ee.pI(),!0),k.setUint16(4,ee.mI(),!0),k.setUint16(6,ee.gI(),!0),k.setUint16(8,ee.wI(),!0),k.setUint16(10,ee.SI(),!0),this.dM(b,"clientperf")}JT(h,b){if(0!==b)return;const k=new ArrayBuffer(15),ee=new DataView(k);ee.setUint8(0,2),ee.setUint8(1,1),ee.setUint8(2,1),ee.setUint32(3,h.WE,!0),ee.setFloat64(7,h._E,!0),this.dM(k,"rtpmapping")}dM(h,b){try{"open"===this.pT.readyState&&this.pT.send(h)}catch(k){l.Log.e("{5cea617}","{78e74c5}",k),this.vT(k,b)}}vT(h,b){this.telemetry.Ac(h,`Exception in ${b} getStats`,"{5cea617}.ts",0,0,!0,"getStats")}fT(){this.RE=!1}$T(){const h=performance.memory;if(!h)return;const b=h.usedJSHeapSize,k=h.totalJSHeapSize,ee=b-this.EE,he=k-this.TE;this.EE=b,this.TE=k,ee>=0&&he>=0||this.Jy.cM(ee,he)}lM(){return this.gE.reduce((h,b)=>h+b.JE.Py(),0)}gI(h){return this.gE[h].JE.Py()}Vy(h){return this.gE[h].JE.Vy()}uM(){return this.wE}zy(h){return this.gE[h].JE.zy()}_y(h){return this.gE[h].JE._y()}AM(){return this.gE.reduce((h,b)=>h+b.packetsReceived,0)}vM(){const h=ee=>isNaN(ee)?-1:ee;if(this.ME.length<2)return;const b=this.ME[0],k=this.ME[this.ME.length-1];return{fM:h(k.requestsSent-b.requestsSent+k.consentRequestsSent-b.consentRequestsSent),pM:h(k.responsesReceived-b.responsesReceived),mM:h(k.packetsReceived-b.packetsReceived)}}gM(){let h=0,b=0,k=0,ee=0,he=0,we=0;for(const ze of this.SE.values())"candidate-pair"===ze.type&&(h+=ze.requestsSent+ze.consentRequestsSent,b+=ze.responsesReceived,k+=ze.requestsReceived,ee+=ze.responsesSent,ze.nominated&&he++,"succeeded"===ze.state&&we++);return l.Log.i("{5cea617}","{47c0ce7}",h,b),h>0&&0===b?3237093926:he?we?void 0:3237093928:3237093927}wM(){const h=this.kE.get("local-candidate");return h?.map(b=>{var k;return null===(k=this.SE)||void 0===k?void 0:k.get(b)})}SM(){let h=new xa;const b=this.wM();if(!b)return h;for(const k of b){const ee=Ka(k);h.set(ee,h.get(ee)+1)}return h}bM(){let h=new Set;const b=this.wM();if(!b)return h;for(const k of b)if("IPV4"===Ka(k)){const ee=Il(k);"UNKNOWN"!==ee&&h.add(ee)}return h}WT(){var h=this;return n(function*(){const b={width:screen.width*window.devicePixelRatio,height:screen.height*window.devicePixelRatio},k=So(),ee=h.pf.kM(),he=(ze,pt)=>ze.width===pt.width&&ze.height===pt.height;if(he(b,h.DE)&&he(k,h.PE)&&ee===h.FE)return;h.DE=b,h.PE=k;const we=yield Ca.fk();h.FE=ee;for(let ze=0;ze<h.gE.length;ze++){const pt=h.gE[ze].JE.Py(),wt=`Stream[${ze}]: Client display[-1] resolution : {physical : ${Ai(b)}@${we}, logical : ${Ai(k)}@${we}} at frame#${pt} topology: ${ee}`;l.Log.i("{5cea617}","{7b74aa7}",ze,Ai(b),we,Ai(k),we,pt,ee),h.Xd.aM(wt)}})()}Om(){return this.HE}XT(h){if(0!==h)return;const b=this.gE[h].JE.Ry();this.Jh.emit("StreamStatsUpdate",b)}dE(h){for(const b of this.gE)b.iT.dE(h)}cE(h){for(const b of this.gE)b.iT.cE(h)}AE(h){for(const[b,k]of this.gE.entries()){const ee=this.gI(b);k.iT.AE(ee,h)}}rE(h){return this.gE[h].iT.rE(this.gI(h))}}function Nl(x){var h;if(x.getVideoPlaybackQuality){const b=x.getVideoPlaybackQuality();return{yT:b.totalVideoFrames,kT:b.droppedVideoFrames}}if(void 0!==x.webkitDecodedFrameCount)return{yT:x.webkitDecodedFrameCount,kT:null!==(h=x.webkitDroppedFrameCount)&&void 0!==h?h:0}}function Ka(x){if("tcp"===x.protocol)return"TCP";const h=x.address||x.relatedAddress;return h?h.endsWith(".local")?"MDNS":-1!==h.indexOf(":")?"IPV6":"IPV4":"UNKNOWN"}function Il(x){const h=x.address||x.relatedAddress,b=h?.split(".");if(4===b?.length){const k=parseInt(b[0]),ee=parseInt(b[1]);if(!isNaN(k)&&!isNaN(ee)){let he="UNKNOWN";return 10===k?he="10/8":192===k&&168===ee?he="192.168/16":172===k&&16==(240&ee)&&(he="172.16/12"),"UNKNOWN"!==he&&l.Log.d("{5cea617}","{343589d}",he),he}}return l.Log.i("{5cea617}","{fa2d6b9}"),"UNKNOWN"}class Cl{constructor(h,b,k,ee,he,we){this.instanceId=h,this.telemetry=k,this.yM=ee,this.vr=he,this.IM=we,this.CM=!1,this.EM=!1,this.TM=0,this.perf={RAFTS:0,DCSend:0,GetStats:0,FrameInfo:0,VSyncDelta:0},this.IM?(this.IM.postMessage({initMessage:{sessionId:b},instanceId:this.instanceId}),l.Log.d("{1f5ec29}","{404f264}")):l.Log.e("{1f5ec29}","{c62bf29}")}MM(){return this.instanceId}bd(h){ac(this.telemetry,h)}wd(h){h.initialized?(l.Log.i("{1f5ec29}","{6ccab8d}"),this.EM=!0):h.statsStarted?(this.CM=!0,l.Log.d("{1f5ec29}","{e98d45f}")):h.log?l.Log.i("{cbf9f59}","{0b0c6f9}",h.log):h.exception?l.Log.i("{cbf9f59}","{0b0c6f9}",h.exception):h.wsClose?this.PM?this.PM.DM(h.wsClose):l.Log.e("{1f5ec29}","{900a6f2}"):h.wsMessage?this.PM?this.PM.RM(h.wsMessage):l.Log.e("{1f5ec29}","{900a6f2}"):h.wsOpening?this.PM?this.PM.NM():l.Log.e("{1f5ec29}","{900a6f2}"):h.wsOpen?this.PM?this.PM.xM():l.Log.e("{1f5ec29}","{900a6f2}"):h.uninitialized&&l.Log.i("{1f5ec29}","{22b6f70}")}startWebSocket(h,b,k,ee){this.PM=k,this.IM&&(this.IM.postMessage({startWebSocket:{signInURL:h,maxReceivedAckId:b,reconnect:ee},instanceId:this.instanceId}),l.Log.d("{1f5ec29}","{b3f6faa}"))}stopWebSocket(){if(this.IM){const h={stopWebSocket:!0,instanceId:this.instanceId};l.Log.d("{1f5ec29}","{7ac815d}"),this.IM.postMessage(h)}this.PM=void 0}uninitialize(){var h;if(this.EM||null===(h=this.telemetry)||void 0===h||h.Ke("Worker Thread Creation Failed"),this.IM){const b={uninitialize:!0,instanceId:this.instanceId};l.Log.d("{1f5ec29}","{9212ec5}",this.instanceId),this.IM.postMessage(b)}}startProfiling(h){if(this.CM=!1,this.IM){const b={startStats:{statsHeader:h},instanceId:this.instanceId};l.Log.d("{1f5ec29}","{6897d5e}"),this.IM.postMessage(b)}}stopProfiling(){if(this.CM=!1,this.IM){const h={stopStats:!0,instanceId:this.instanceId};l.Log.d("{1f5ec29}","{76b05dd}"),this.IM.postMessage(h)}}OM(){this.perf.RAFTS=0,this.perf.DCSend=0,this.perf.GetStats=0,this.perf.FrameInfo=0,this.perf.VSyncDelta=0}BM(h){this.IM&&this.IM.postMessage({send:h,instanceId:this.instanceId})}bT(h){var b;this.CM&&(this.perf.VSyncDelta=h-this.TM,0!=this.perf.RAFTS&&(this.IM&&this.IM.postMessage({perf:this.perf,instanceId:this.instanceId}),this.OM()),this.perf.RAFTS=null!==(b=this.vr.$a())&&void 0!==b?b:0,this.TM=h)}FM(h){this.CM&&(this.perf.DCSend+=h)}QT(h){this.CM&&(this.perf.GetStats+=h)}lI(h,b){var k;if(!this.CM||!this.IM)return;const ee={webrtcStats:{type:b,stats:h},ackid:null===(k=this.yM)||void 0===k?void 0:k.uo(),instanceId:this.instanceId};this.IM.postMessage(ee,h)}tM(h){var b;if(!this.CM||!this.IM)return;const k={sq:{latencyScore:h.latencyScore,bandwidthScore:h.bandwidthScore,qualityScore:h.qualityScore,networkLossScore:h.networkLossScore,timestamp:null!==(b=this.vr.$a())&&void 0!==b?b:0},instanceId:this.instanceId};this.IM.postMessage(k)}LM(h,b){var k;if(!this.CM||!this.IM)return;const ee={duration:{timestamp:b-(null!==(k=this.vr.yd())&&void 0!==k?k:0),duration:h},instanceId:this.instanceId};this.IM.postMessage(ee)}UM(h,b){var k;if(!this.CM||!this.IM)return;const ee={inputChannelStats:{timestamp:null!==(k=this.vr.$a())&&void 0!==k?k:0,bufferedAmount:h,maxSchedulingDelay:b},instanceId:this.instanceId};this.IM.postMessage(ee)}cM(h,b){var k;if(!this.CM||!this.IM)return;const ee={garbageCollectionStats:{timestamp:null!==(k=this.vr.$a())&&void 0!==k?k:0,deltaUsedHeapSize:h,deltaTotalHeapSize:b},instanceId:this.instanceId};this.IM.postMessage(ee)}eM(){if(!this.CM||!this.IM)return;const h={qosMarker:this.vr.$a(),instanceId:this.instanceId};this.IM.postMessage(h)}ET(h,b){if(this.CM){let k=Math.min(h,15)<<4,ee=Math.min(b,15);this.perf.FrameInfo=k|ee}}rM(h){var b;if(!this.CM||!this.IM)return;const k={clientEvent:{TS:null!==(b=this.vr.$a())&&void 0!==b?b:0,eventtype:h},instanceId:this.instanceId};this.IM.postMessage(k)}}function ac(x,h){var b,k,ee,he;x.Ac(void 0,null!==(b=h?.message)&&void 0!==b?b:"",null!==(k=h?.filename)&&void 0!==k?k:"",null!==(ee=h?.lineno)&&void 0!==ee?ee:0,null!==(he=h?.colno)&&void 0!==he?he:0,!0,"WorkerError")}const lc=new class{constructor(){this.GM=new Map,this.HM=[],this.VM=[],this.WM=0,this.wd=x=>{const h=x.data,b=this.GM.get(h.instanceId);b?b.wd(h):l.Log.w("{1f5ec29}","{3a7e49f}",h.instanceId)},this.bd=x=>{this.GM.size?this.GM.forEach(h=>h.bd(x)):this.VM.push(x)},l.Log.i("{1f5ec29}","{139da36}");try{this.IM=Ie('const t={size:70,version:1,name:"DEPR"},s={size:80,version:3,name:"RTPV"},i={size:48,version:1,name:"RTPA"},h={size:88,version:1,name:"TRAA"},e={size:44,version:1,name:"TRAV"},n={size:16,version:2,name:"VFMD"},r={size:20,version:1,name:"PFDA"},o={size:0,version:1,name:""};class a{constructor(t){this.i=t,this.h=new Map,this.o=0,this.l()}size(){let t=0;for(let[s,i]of this.h)for(let s of i)t+=s.byteLength;return t+=9*this.h.size,t}u(t){let s=this.h.get(t.type);s||(s=new Array,this.h.set(t.type,s));for(const i of t.stats)s.push(i)}write(t,s){let i=s;for(let[s,h]of this.h)i+=this.v(t,i,s,h.length),i+=this.S(t,h,i),1===s&&this.o++;return i}l(){this.o&&(this.i("{890d3ae}"+this.o),this.o=0),this.h.clear()}v(t,s,i,h){let e=this.M(i),n=e.name,r=new DataView(t.buffer);for(let t=0;t<4;t++)r.setUint8(s+t,n.charCodeAt(t));return r.setUint8(s+4,e.version),r.setUint16(s+5,h,!0),r.setUint16(s+7,e.size,!0),9}M(a){switch(a){case 0:return t;case 1:return s;case 2:return i;case 3:return e;case 4:return h;case 5:return n;case 6:return r;default:return o}}S(t,s,i){let h=0;for(let e of s){let s=new Uint8Array(e);t.set(s,i+h),h+=e.byteLength}return h}}class c{constructor(t,s){this.sessionId=t,this.A=!1,this.m=[],this.I=[],this.T=0,this.maxReceivedAckId=0,this.url="",this.C=0,this.i=s.info,this.D=s.exception}initialize(t,s,i,h=!1){this.url=t,this.maxReceivedAckId=s,this.P=i,this.R(h),this.i("{fcf6f89}"+this.C)}uninitialize(t){var s;this.maxReceivedAckId=0,this.m=[],this.I=[],this.P=void 0,this.B(),null===(s=this.W)||void 0===s||s.close(t),this.H(),this.i("{986b258}"+t+"{754f60b}"+this.C)}H(){this.W&&(this.W.onclose=null,this.W.onerror=null,this.W.onmessage=null,this.W.onopen=null,this.W=void 0)}N(){var t;this.i("{6c3505a}"+(null===(t=this.W)||void 0===t?void 0:t.readyState)+"{754f60b}"+this.C),this.W||this.R(!0),this.O()}B(){0!==this.T&&(self.clearTimeout(this.T),this.T=0)}O(){this.B(),this.T=self.setTimeout((()=>this.N()),3e3)}V(t){for(let s=this.m.length-1;s>=0;s--)this.m[s].ackid<=t&&this.m.splice(s,1)}F(t){void 0!==t.ackid&&this.m.push(t)}J(t){void 0!==t.ackid&&this.F(t),this.W&&(t.stats?this.W.send(t.stats):this.W.send(JSON.stringify(t)))}send(t){this.P&&(this.W||this.R(!0),this.W&&this.W.readyState===WebSocket.OPEN?this.J(t):this.I.push(t))}U(){if(this.W){let t={ack:this.maxReceivedAckId},s=JSON.stringify(t);this.i("{903be10}"+s),this.W.send(s)}}R(t=!1){const s=this.C+1;try{let i;this.sessionId&&(i="x-nv-sessionid."+this.sessionId);let h=this.url;t&&(h+="&reconnect=1");let e=new WebSocket(h,i);e.onopen=t=>{var i;if(this.i("{48fa30b}"+s),e===this.W){null===(i=this.P)||void 0===i||i.G();for(const t of this.m)t.stats?e.send(t.stats):e.send(JSON.stringify(t));for(const t of this.I)this.J(t);this.I=[]}},e.onclose=t=>{var i;this.i("{6406bff}"+s),e===this.W&&(null===(i=this.P)||void 0===i||i.K({error:this.A,code:t.code,reason:t.reason,wasClean:t.wasClean}),this.H(),this.A=!1)},e.onerror=t=>{this.i("{7605058}"+s),e===this.W&&(this.A=!0)},e.onmessage=t=>{if(this.P)try{let s=JSON.parse(t.data);if(this.T||this.i("{523f5b9}"),this.O(),s.hb)return;void 0!==s.ack&&this.V(s.ack),void 0!==s.ackid?(this.maxReceivedAckId<s.ackid&&(this.P.L(s),this.maxReceivedAckId=s.ackid),this.U()):void 0===s.ack&&this.P.L(s)}catch(s){const i="Error in local websocket message handling";this.D(i+": "+s+\' "\'+t.data+\'"\')}},this.W=e}catch(t){this.W=void 0,this.D("WebSocket creation exception: "+t+" for socket "+this.C)}this.C=s}}const l=self;class f{constructor(t,s){this.instanceId=t,this.sessionId=s,this.j=[],this.X=[],this.url="",this.Y=0,this.Z=[],this.$=[],this.inputChannelStats=[],this.garbageCollectionStats=[],this._=[],this.tt=0,this.st=t=>{w(t,this.instanceId)},this.it=t=>{const s={wsMessage:t,instanceId:this.instanceId};l.postMessage(s)},this.ht=t=>{const s={wsClose:t,instanceId:this.instanceId};l.postMessage(s)},this.et=()=>{const t={wsOpen:!0,instanceId:this.instanceId};l.postMessage(t)},this.nt=()=>{const t={wsOpening:!0,instanceId:this.instanceId};l.postMessage(t)},this.rt=t=>{u(t,this.instanceId)},this.ot=new a(this.rt);const i={initialized:!0,instanceId:t};l.postMessage(i)}ct(){this.j=[],this.X=[],this.ot.l(),this.Z=[],this.$=[],this.inputChannelStats=[],this.garbageCollectionStats=[],this._=[]}lt(t,s,i,h,e,n){for(let h=0;h<4;h++)t.setUint8(s+h,i.charCodeAt(h));t.setUint8(s+4,h),t.setUint16(s+5,e,!0),t.setUint16(s+7,n,!0)}ft(t,s){for(let i=0;i<this.j.length;i++)t.setFloat64(s,this.j[i].RAFTS,!0),t.setUint16(s+8,Math.min(1e3*this.j[i].DCSend,65535),!0),t.setUint16(s+10,Math.min(1e3*this.j[i].GetStats,65535),!0),t.setUint8(s+12,this.j[i].FrameInfo),t.setUint16(s+13,Math.min(100*this.j[i].VSyncDelta,65535),!0),s+=15}dt(t,s){for(let i=0;i<this.Z.length;i++)t.setUint8(s,this.Z[i].qualityScore),t.setUint8(s+1,this.Z[i].bandwidthScore),t.setUint8(s+2,this.Z[i].latencyScore),t.setUint8(s+3,this.Z[i].networkLossScore),t.setFloat64(s+4,this.Z[i].timestamp,!0),s+=12}ut(t,s){for(let i=0;i<this.X.length;i++){t.setFloat64(s,this.X[i].TS,!0),s+=8;const h=this.X[i].eventtype;let e=0;for(;e<h.length&&e<63;e++)t.setUint8(s+e,h.charCodeAt(e));t.setUint8(s+e,0),s+=64}}wt(t,s){for(let i=0;i<this.$.length;i++)t.setFloat64(s,this.$[i].timestamp,!0),t.setUint16(s+8,Math.min(this.$[i].duration,65535),!0),s+=10}vt(t,s){for(let i=0;i<this._.length;i++)t.setFloat64(s,this._[i],!0),s+=8}bt(t,s){for(let i=0;i<this.inputChannelStats.length;i++)t.setFloat64(s,this.inputChannelStats[i].timestamp,!0),t.setUint16(s+8,Math.min(this.inputChannelStats[i].bufferedAmount,65535),!0),t.setUint16(s+10,Math.min(this.inputChannelStats[i].maxSchedulingDelay,65535),!0),s+=12}kt(t,s){for(let i=0;i<this.garbageCollectionStats.length;i++)t.setFloat64(s,this.garbageCollectionStats[i].timestamp,!0),t.setInt32(s+8,d(this.garbageCollectionStats[i].deltaUsedHeapSize),!0),t.setInt32(s+12,d(this.garbageCollectionStats[i].deltaTotalHeapSize),!0),s+=16}St(){var t;if((this.j.length||this.X.length||this.ot.size())&&this.Mt)try{this.Mt.ackid=this.tt;const i=JSON.stringify(this.Mt),h=i.length,e=h+2,n=new ArrayBuffer(e),r=new DataView(n);r.setUint16(0,h);for(var s=2;s<e;++s)r.setUint8(s,i.charCodeAt(s-2));const o=new Uint8Array(n),a=15*this.j.length,c=72*this.X.length,l=12*this.Z.length,f=10*this.$.length,d=12*this.inputChannelStats.length,u=16*this.garbageCollectionStats.length,w=8*this._.length;let v=9+o.length;a&&(v+=9+a),c&&(v+=9+c),l&&(v+=9+l),f&&(v+=9+f),d&&(v+=9+d),u&&(v+=9+u),w&&(v+=9+w),v+=this.ot.size();const b=new ArrayBuffer(v),k=new DataView(b);let S=0;new Uint8Array(b).set(o),S+=o.length,this.lt(k,S,"BPRF",1,0,0),S+=9,a&&(this.lt(k,S,"PERF",3,this.j.length,15),S+=9,this.ft(k,S),S+=a),c&&(this.lt(k,S,"EVNT",1,this.X.length,72),S+=9,this.ut(k,S),S+=c),l&&(this.lt(k,S,"SQEV",1,this.Z.length,12),S+=9,this.dt(k,S),S+=l),f&&(this.lt(k,S,"MTBD",1,this.$.length,10),S+=9,this.wt(k,S),S+=f),d&&(this.lt(k,S,"INPT",1,this.inputChannelStats.length,12),S+=9,this.bt(k,S),S+=d),u&&(this.lt(k,S,"GRBG",1,this.garbageCollectionStats.length,16),S+=9,this.kt(k,S),S+=u),w&&(this.lt(k,S,"MKPT",1,this._.length,8),S+=9,this.vt(k,S),S+=w);const p=new Uint8Array(b);this.ot.write(p,S),null===(t=this.At)||void 0===t||t.send({stats:b,ackid:this.tt})}catch(t){this.st("Exception in perf/stats upload. Error : "+t.message+" stack: "+t.stack)}this.ct()}R(t,s){this.At=new c(this.sessionId,{info:this.rt,exception:this.st}),this.At.initialize(this.url,t,{L:this.it,G:this.et,K:this.ht,yt:this.nt},s),this.nt()}zt(t){var s,i;if(t.perf)this.j.push(t.perf);else if(t.clientEvent)this.X.push(t.clientEvent);else if(t.startStats){this.Mt=t.startStats.statsHeader;const s={statsStarted:!0,instanceId:this.instanceId};this.Y=self.setInterval((()=>this.St()),5e3),l.postMessage(s),this.rt("{5209d98}")}else t.stopStats?(self.clearInterval(this.Y),this.St(),this.ct(),this.rt("{b58b6ad}")):t.webrtcStats?(t.ackid&&(this.tt=t.ackid),t.webrtcStats.stats&&this.ot.u(t.webrtcStats)):t.sq?this.Z.push(t.sq):t.startWebSocket?(this.url=t.startWebSocket.signInURL,this.R(t.startWebSocket.maxReceivedAckId,t.startWebSocket.reconnect)):t.stopWebSocket?(null===(s=this.At)||void 0===s||s.uninitialize(),this.At=void 0):t.send?null===(i=this.At)||void 0===i||i.send(t.send):t.duration?this.$.push(t.duration):t.inputChannelStats?this.inputChannelStats.push(t.inputChannelStats):t.garbageCollectionStats?this.garbageCollectionStats.push(t.garbageCollectionStats):t.qosMarker&&this._.push(t.qosMarker)}}function d(t){return t<0?Math.max(t,-2147483648):Math.min(t,4294967295)}function u(t,s){const i={log:t,instanceId:s};l.postMessage(i)}function w(t,s=0){const i={exception:t,instanceId:s};l.postMessage(i)}const v=new Map;l.onmessage=function(t){try{const s=t.data,i=s.instanceId;if(s.initMessage)v.set(i,new f(i,s.initMessage.sessionId));else if(s.uninitialize){v.delete(i);const t={uninitialized:!0,instanceId:i};l.postMessage(t)}else{const t=v.get(i);t?t.zt(s):u("{d710be2}"+i,i)}}catch(t){w("Worker onmessage exception: "+t)}};',"ragnarokworker.js"),this.IM.onmessage=this.wd.bind(this),this.IM.onerror=this.bd.bind(this),l.Log.i("{1f5ec29}","{62dee75}")}catch(x){l.Log.e("{1f5ec29}","{50fa2e5}",x.message),this.HM.push({name:"RagnarokWorkerProblem",error:JSON.stringify(x)})}}_M(x,h,b,k){if(this.HM.length>0){for(const we of this.HM)h.Ke(we.name,we.error);this.HM=[]}if(this.VM.length>0){for(const we of this.VM)ac(h,we);this.VM=[]}const ee=this.WM++;l.Log.i("{1f5ec29}","{c194458}",ee,x);const he=new Cl(ee,x,h,b,k,this.IM);return this.GM.set(ee,he),he}qM(x){x.uninitialize(),this.GM.delete(x.MM())}};class Vc{constructor(h,b){this.sessionId=h,this.$M=!1,this.zM=[],this.KM=[],this.QM=0,this.maxReceivedAckId=0,this.url="",this.YM=0,this.XM=b.info,this.jM=b.exception}initialize(h,b,k,ee=!1){this.url=h,this.maxReceivedAckId=b,this.JM=k,this.ZM(ee),this.XM("{fcf6f89}"+this.YM)}uninitialize(h){var b;this.maxReceivedAckId=0,this.zM=[],this.KM=[],this.JM=void 0,this.tP(),null===(b=this.iP)||void 0===b||b.close(h),this.sP(),this.XM("{986b258}"+h+"{754f60b}"+this.YM)}sP(){this.iP&&(this.iP.onclose=null,this.iP.onerror=null,this.iP.onmessage=null,this.iP.onopen=null,this.iP=void 0)}eP(){var h;this.XM("{6c3505a}"+(null===(h=this.iP)||void 0===h?void 0:h.readyState)+"{754f60b}"+this.YM),this.iP||this.ZM(!0),this.nP()}tP(){0!==this.QM&&(self.clearTimeout(this.QM),this.QM=0)}nP(){this.tP(),this.QM=self.setTimeout(()=>this.eP(),3e3)}hP(h){for(let b=this.zM.length-1;b>=0;b--)this.zM[b].ackid<=h&&this.zM.splice(b,1)}oP(h){void 0!==h.ackid&&this.zM.push(h)}rP(h){void 0!==h.ackid&&this.oP(h),this.iP&&this.iP.send(h.stats?h.stats:JSON.stringify(h))}send(h){this.JM&&(this.iP||this.ZM(!0),this.iP&&this.iP.readyState===WebSocket.OPEN?this.rP(h):this.KM.push(h))}aP(){if(this.iP){let b=JSON.stringify({ack:this.maxReceivedAckId});this.XM("{903be10}"+b),this.iP.send(b)}}ZM(h=!1){const b=this.YM+1;try{let k;this.sessionId&&(k="x-nv-sessionid."+this.sessionId);let ee=this.url;h&&(ee+="&reconnect=1");let he=new WebSocket(ee,k);he.onopen=we=>{var ze;if(this.XM("{48fa30b}"+b),he===this.iP){null===(ze=this.JM)||void 0===ze||ze.xM();for(const pt of this.zM)he.send(pt.stats?pt.stats:JSON.stringify(pt));for(const pt of this.KM)this.rP(pt);this.KM=[]}},he.onclose=we=>{var ze;this.XM("{6406bff}"+b),he===this.iP&&(null===(ze=this.JM)||void 0===ze||ze.DM({error:this.$M,code:we.code,reason:we.reason,wasClean:we.wasClean}),this.sP(),this.$M=!1)},he.onerror=we=>{this.XM("{7605058}"+b),he===this.iP&&(this.$M=!0)},he.onmessage=we=>{if(this.JM)try{let ze=JSON.parse(we.data);if(this.QM||this.XM("{523f5b9}"),this.nP(),ze.hb)return;void 0!==ze.ack&&this.hP(ze.ack),void 0!==ze.ackid?(this.maxReceivedAckId<ze.ackid&&(this.JM.RM(ze),this.maxReceivedAckId=ze.ackid),this.aP()):void 0===ze.ack&&this.JM.RM(ze)}catch(ze){this.jM("Error in local websocket message handling: "+ze+' "'+we.data+'"')}},this.iP=he}catch(k){this.iP=void 0,this.jM("WebSocket creation exception: "+k+" for socket "+this.YM)}this.YM=b}}function Al(x){switch(x){case"H264":return"h264";case"H265":return"hevc";case"AV1":return"av1";default:return"video"}}class cc{constructor(h){this.dP=h,this.streams=[]}cP(h){this.dP.lP&&(h.encodedInsertableStreams=!0)}start(h){if(1&this.dP.lP){const b=Wr(h);for(let k=0;k<b.length;k++){const ee={data:new DataView(new ArrayBuffer(209715200)),size:0,uP:"video",extension:Al(this.dP.video[k].Dk),AP:!1};this.vP(b[k].receiver,ee)}}}save(){for(const h of this.streams){const b=(new Date).toISOString(),k=`streamkit-${h.uP}-${b}.${h.extension}`;Rn([new DataView(h.data.buffer,0,h.size)],k,"text/plain")&&l.Log.i("{d7392d2}","{4b3378a}",k)}this.streams=[]}vP(h,b){const{readable:k,writable:ee}=h.createEncodedStreams(),he=new TransformStream({start:()=>{l.Log.i("{d7392d2}","{b96b3ec}",b.uP)},flush:()=>{},transform:(we,ze)=>{if(!b.AP){const pt=new Uint8Array(we.data);b.size+pt.byteLength<=b.data.byteLength?(function(wt,$t,an){const zt=an.byteLength;for(let mn=0;mn<zt;++mn)wt.setUint8($t+mn,an[mn])}(b.data,b.size,pt),b.size+=pt.byteLength):(b.AP=!0,l.Log.w("{d7392d2}","{f35b2f4}",b.size,b.uP))}ze.enqueue(we)}});k.pipeThrough(he).pipeTo(ee),this.streams.push(b)}}class _t{constructor(h,b,k,ee){this.sender=h,this.Af=b,this.Rs=k,this.telemetry=ee,this.fP={top:-1,left:-1,bottom:-1,right:-1},this.$f=0,this.qf=0,this.pP=!1,this.mP=0,Hn.isInternalUser&&(this.gP=this.wP(),b.insertAdjacentElement("afterend",this.gP))}uninitialize(){this.gP&&this.gP.remove()}va(h,b){this.$f=h,this.qf=b}send(){var h,b,k;if(this.Af.videoHeight<=0||this.Af.videoWidth<=0)return;const ee=Yo(),he=this.SP(ee);if(function(wt,$t){const an=Object.keys(wt),zt=Object.keys($t);if(an.length!==zt.length)return!1;for(const mn of an)if(wt[mn]!==$t[mn])return!1;return!0}(he,this.fP))return;const we=JSON.stringify(he,(wt,$t)=>$t.toFixed?Number($t.toFixed(2)):$t);if(l.Log.d("{48f82fd}","{054b8b0}",JSON.stringify(ee),we),null!==(h=Hn.ko.sendInsetValueUpdateEvents)&&void 0!==h&&h&&this.mP++<2){const wt=(zt,mn=1)=>{for(const kn of Object.keys(zt)){const yn=Math.round(zt[kn]*mn);zt[kn]=isNaN(yn)?-1:yn}return zt},$t=wt(Object.assign({},ee)),an=wt(Object.assign({},he),1e3);null===(b=this.telemetry)||void 0===b||b.Db("InsetValueUpdate","Original",$t.top,$t.left,$t.bottom,$t.right),null===(k=this.telemetry)||void 0===k||k.Db("InsetValueUpdate","Normalized",an.top,an.left,an.bottom,an.right)}this.fP=Object.assign({},he);for(const wt of Object.keys(he))he[wt]=isNaN(he[wt])?0:he[wt];const pt={messageType:"SAFE_ZONE",messageRecipient:"NvGridSvc:NGS",data:JSON.stringify({safeZoneData:{type:"InsetValueUpdate",rect:he}})};this.sender.sendCustomMessage(pt),Hn.isInternalUser&&this.bP()}Jw(){this.gP&&(this.pP=!this.pP,this.gP.style.display=this.pP?"block":"none")}SP(h){let{width:b,height:k}=So();if(yt(this.Rs)&&(h.top=Math.max(h.top,20),!(()=>{let ze;switch(void 0!==window.orientation?ze=window.orientation:screen.orientation&&(ze=screen.orientation.angle),ze){case 90:case-90:case 270:return!1;default:return!0}})())){const ze=b;b=k,k=ze}const ee=(ze=>{let pt=ze.offsetTop,wt=ze.offsetLeft,$t=ze.offsetParent;for(;$t;)pt+=$t.offsetTop,wt+=$t.offsetLeft,$t=$t.offsetParent;let an=ze.clientHeight,zt=ze.clientWidth;return bn(this.Rs)&&(window.innerHeight>window.innerWidth&&ze.clientHeight<ze.clientWidth||window.innerHeight<window.innerWidth&&ze.clientHeight>ze.clientWidth)&&(l.Log.w("{48f82fd}","{c9d343e}"),an=ze.clientWidth,zt=ze.clientHeight),{top:pt,left:wt,bottom:Math.max(window.innerHeight-pt-an,0),right:Math.max(window.innerWidth-wt-zt,0)}})(this.Af),he=Math.max(k-window.innerHeight,0)/2,we=Math.max(b-window.innerWidth,0)/2;return{top:Math.max(h.top-he-ee.top-this.$f,0)/(this.Af.clientHeight-2*this.$f),left:Math.max(h.left-we-ee.left-this.qf,0)/(this.Af.clientWidth-2*this.qf),bottom:Math.max(h.bottom-he-ee.bottom-this.$f,0)/(this.Af.clientHeight-2*this.$f),right:Math.max(h.right-we-ee.right-this.qf,0)/(this.Af.clientWidth-2*this.qf)}}wP(){const h=document.createElement("div");return h.style.display="none",h.style.position="absolute",h.style.color="white",h.style.backgroundColor="rgb(105, 105, 105, 0.7)",h.style.padding="2px",h.style.bottom="0px",h.style.left="0px",h.style.margin="5px",h}bP(){this.gP&&(this.gP.innerText="Safe Zone: \nTop: "+(100*Math.max(this.fP.top,0)).toFixed()+"%\nRight: "+(100*Math.max(this.fP.right,0)).toFixed()+"%\nBottom: "+(100*Math.max(this.fP.bottom,0)).toFixed()+"%\nLeft: "+(100*Math.max(this.fP.left,0)).toFixed()+"%")}}class Kt{constructor(h){var b,k,ee,he;this.kP=new Map,this.fullscreen=!1,this.yP=!1,this.IP=!1,this.CP=void 0,this.kP.set(0,[]),this.kP.set(2,[]),this.kP.set(1,[]),this.kP.set(3,[]),this.kP.set(4,[]),this.kP.set(5,[]),this.kP.set(6,[]),this.EP=function(wt){var $t;switch(null!==($t=wt.platformType)&&void 0!==$t?$t:wt.deviceType){case l.PlatformType.PHONE:case l.PlatformType.TABLET:return!0;default:return!1}}(h),this.TP=fn(h),this.MP=Gt(h),this.PP=Ji(h),this.Au=Wt(h),this.DP=ke(h),this.RP=this.NP=document.hasFocus(),this.FE=0;const we=window.zoneless,ze=null!==(k=null===(b=we?.windowAddEventListener)||void 0===b?void 0:b.bind(window))&&void 0!==k?k:window.addEventListener.bind(window),pt=null!==(he=null===(ee=we?.documentAddEventListener)||void 0===ee?void 0:ee.bind(document))&&void 0!==he?he:document.addEventListener.bind(document);this.xP=this.OP.bind(this),this.BP=this.FP.bind(this),this.LP=this.kp.bind(this),this.UP=this.GP.bind(this),this.HP=this.VP.bind(this),this.WP=this._P.bind(this),this.qP=this.$P.bind(this),this.zP=this.KP.bind(this),ze("focus",this.xP),ze("blur",this.BP),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","msfullscreenchange"].forEach(wt=>pt(wt,this.LP)),pt("mouseenter",this.UP),pt("mouseleave",this.HP),this.QP()&&navigator.getBattery().then(wt=>{this.YP(!wt.charging),this.XP(this.jP(wt)),wt.addEventListener("chargingchange",this.WP),wt.addEventListener("levelchange",this.qP)}),this.JP()&&(this.KP(),window.screen.addEventListener("change",this.zP)),this.ZP()?(this.tD=new PressureObserver(wt=>{if(wt.length>0){const $t=this.iD(wt);if(this.CP!=$t){this.CP=$t;for(const an of this.kP.get(5))an()}}}),this.tD.observe("cpu")):l.Log.i("{0c4eeb2}","{c70b747}"),this.kp()}uninitialize(){var h,b,k,ee,he,we,ze;const pt=window.zoneless,wt=null!==(b=null===(h=pt?.windowRemoveEventListener)||void 0===h?void 0:h.bind(window))&&void 0!==b?b:window.removeEventListener.bind(window),$t=null!==(ee=null===(k=pt?.documentRemoveEventListener)||void 0===k?void 0:k.bind(document))&&void 0!==ee?ee:document.removeEventListener.bind(document);wt("focus",this.xP),wt("blur",this.BP),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","msfullscreenchange"].forEach(zt=>$t(zt,this.LP)),$t("mouseenter",this.UP),$t("mouseleave",this.HP),this.QP()&&navigator.getBattery().then(zt=>{zt.removeEventListener("chargingchange",this.WP),zt.removeEventListener("levelchange",this.qP)}),this.JP()&&window.screen.removeEventListener("change",this.zP);const an=null===(he=this.tD)||void 0===he?void 0:he.takeRecords();an?.map(zt=>l.Log.i("{0c4eeb2}","{4f27ba0}",JSON.stringify(zt))),null===(we=this.tD)||void 0===we||we.unobserve("cpu"),null===(ze=this.tD)||void 0===ze||ze.disconnect();for(const zt of this.kP.values())zt.splice(0)}iD(h){let b="nominal";for(const k of h)this.sD(k.state)>this.sD(b)&&(b=k.state);return b}sD(h){switch(h){case"nominal":default:return 0;case"fair":return 1;case"serious":return 2;case"critical":return 3}}nm(){return this.RP}Zp(h){if((this.EP||this.Au)&&this.eD(h),this.RP!==h){this.RP=h;for(const b of this.kP.get(0))b(h)}}_m(){return this.fullscreen}nD(h){if(this.fullscreen!==h){this.fullscreen=h;for(const b of this.kP.get(2))b(h)}}hD(){return this.NP}eD(h){if(this.NP!==h){this.NP=h;for(const b of this.kP.get(1))b(h)}}oD(){return this.yP}XP(h){if(this.yP!==h){this.yP=h;for(const b of this.kP.get(4))b(h)}}rD(){return this.IP}YP(h){if(this.IP!==h){this.IP=h;for(const b of this.kP.get(3))b(h)}}kM(){return this.FE}aD(){switch(this.CP){case"nominal":return 60;case"fair":return 75;case"serious":return 90;case"critical":return 100}return-1}_p(h,b){this.kP.get(h).push(b)}Qp(h,b){const k=this.kP.get(h),ee=k.indexOf(b);-1!==ee&&k.splice(ee,1)}QP(){return navigator.getBattery}JP(){return!this.DP&&void 0!==window.screen.isExtended}ZP(){var h,b;return Hn.enableComputePressure&&(null===(h=Hn.ko.enableComputePressure)||void 0===h||h)&&(null===(b=globalThis.PressureObserver)||void 0===b?void 0:b.prototype)&&PressureObserver.knownSources instanceof Array&&PressureObserver.knownSources.includes("cpu")}OP(){this.Zp(!0)}FP(){this.Zp(!1)}kp(){const h=window.document,b=!!(document.fullscreen||1==h.webkitIsFullScreen||h.mozFullScreen||h.msFullscreenElement);this.nD(b)}GP(){this.eD(!0)}VP(){this.eD(!1)}_P(){navigator.getBattery().then(h=>{this.YP(!h.charging)})}$P(){navigator.getBattery().then(h=>{this.XP(this.jP(h))})}jP(h){return this.PP?h.level<=.22:this.TP||this.Au?h.level<=.2:this.MP?h.level<=.1:h.level<=.33}KP(){let h=0;if(h=window.screen.isExtended?3:0,l.Log.i("{0c4eeb2}","{ee99c72}",h),this.FE!==h){this.FE=h;for(const b of this.kP.get(6))b(h)}}}class mt{static dD(h){return h.trim().split("\n").map(b=>b.trim())}static cD(h){return h.split("\nm=").map((b,k)=>(k>0?"m="+b:b).trim()+"\r\n")}static lD(h){const b=mt.cD(h);return b&&b[0]}static uD(h){const b=mt.cD(h);return b.shift(),b}static AD(h,b){return mt.dD(h).filter(k=>0===k.indexOf(b))}static vD(h){const b=h.substr(14).split(" ");return{algorithm:b[0].toLowerCase(),value:b[1].toUpperCase()}}static fD(h,b){return{role:"auto",pD:mt.AD(h+b,"a=fingerprint:").map(mt.vD)}}static mD(h,b){const k=mt.AD(h+b,"a=ice-ufrag:")[0],ee=mt.AD(h+b,"a=ice-pwd:")[0];return{usernameFragment:k.substr(12),password:ee.substr(10)}}}class Yt{constructor(h){this.index=h,this.hdr=!1,this.ey=!0,this.ny=!1}gD(h){this.wD=h}SD(h){var b;const k=null===(b=No())||void 0===b?void 0:b.features.hdr10PlusGamingData;var ee,he;k?.version?h.isSupported?(h.isOn?(he=h).version===(ee=k).version&&he.peakLuminanceIndex===ee.peakLuminanceIndex&&he.peakFullFrameLuminanceIndex===ee.peakFullFrameLuminanceIndex?(this.ny=!0,l.Log.i("{a5dd7ef}","{09b4301}")):(this.ny=!1,l.Log.i("{a5dd7ef}","{6aed760}")):(this.ny=!1,l.Log.i("{a5dd7ef}","{a358edc}")),this.bD()):l.Log.i("{a5dd7ef}","{15eb580}"):l.Log.i("{a5dd7ef}","{0eae5fd}",JSON.stringify(h))}kD(h){var b;this.hdr=h,null===(b=this.wD)||void 0===b||b.Wy(h,this.index),this.bD()}yD(h){this.ey=h,this.bD()}bD(){var h,b,k;if(null===(h=this.wD)||void 0===h||h.qy(this.ey,this.ny,this.index),null===(b=window.webapis)||void 0===b||!b.hdr10pluscloud)return;let ee,he;if(this.hdr?this.ey&&this.ny?(ee=2,he="HDR10+G"):(ee=1,he="HDR"):(ee=0,he="SDR"),ee!==(null!==(k=window.webapis.hdr10pluscloud.isHdr10plusGamingModeEnabled())&&void 0!==k?k:0)){const we=window.webapis.hdr10pluscloud.enableHdr10plusGamingMode(ee);l.Log.i("{a5dd7ef}","{fc86642}",he,we)}}}const _n="app_video_stream",de="app_audio_stream",q="app_media_stream",j="stream_id",te="second_stream_id",fe="sendrecv";class Ne{constructor(h,b,k,ee,he,we,ze,pt,wt,$t,an,zt,mn,kn,yn,Qn,li,wi,mi,Bi){var qi,sr,Ar;let Vr;this.ID=b,this.CD=k,this.kg=he,this.yg=we,this.telemetry=ze,this.Rs=pt,this.session=wt,this.vr=$t,this.isResume=an,this.ED=zt,this.Sb=kn,this.textInputElement=yn,this.clientAppVersion=Qn,this.Xy=li,this.signalingUrlQueryParameters=mi,this.enableMicUpstream=Bi,this.name="",this.id=0,this.dP={video:[],lP:0,TD:{MD:0,PD:0,rc:0,ac:BigInt("0")}},this.DD=-1,this.RD=!1,this.ND=!1,this.xD=0,this.OD=0,this.BD=0,this.FD=!1,this.LD=0,this.UD=0,this.GD=!1,this.HD=!1,this.VD=!1,this.WD=!0,this.perfIndicator=!1,this.stutterIndicator=!1,this._D=0,this.qD=[],this.$D=[],this.zD="",this.KD=0,this.yM=new fa,this.QD=0,this.YD=0,this.XD=0,this.jD=0,this.JD=Date.now(),this.ZD=0,this.tR=0,this.iR=0,this.sR=!1,this.keyboardLayout="",this.maxReceivedAckId=0,this.videoStreamProgress=0,this.eR=[],this.nR="",this.hR=this.oR.bind(this),this.rR=this.aR.bind(this),this.dR=this.cR.bind(this),this.zP=this.KP.bind(this),this.lR=0,this.uR=new xa,this.AR=this.vR.bind(this),this.fR=new Set,this.pR=[],this.mR=Lo=>{Lo.getEntriesByType("longtask").forEach(ir=>{let wr=Math.round(ir.duration);this.Jy.LM(wr,ir.startTime),this.sM(wr),l.Log.i("{93c7910}","{7071359}",wr)})},this.Jh=h,l.Log.d("{93c7910}","{e1ca54d}",JSON.stringify(wt)),wt.finalizedStreamingFeatures||l.Log.w("{93c7910}","{6f17ef5}"),Hn.maxBitrate&&(l.Log.d("{93c7910}","{55e5b30}",Hn.maxBitrate),Vr=Hn.maxBitrate);for(let Lo=0;Lo<wt.streamInfo.length&&Lo<this.ID.length;Lo++){const ir=wt.streamInfo[Lo],_s=(Vr??mn[Lo].maxBitrateKbps)||(()=>{const ls=ur(ir.width,ir.height,ir.fps)[0];return l.Log.d("{93c7910}","{aff4184}",ls),ls})(),Ta=!(null!==(sr=null===(qi=this.ID[Lo])||void 0===qi?void 0:qi.requestVideoFrameCallback)&&void 0!==sr&&!sr);this.dP.video.push(za(ir,_s,Ta,wt.finalizedStreamingFeatures,mn[Lo].dynamicStreamingMode)),this.pR.push(new Yt(Lo))}if(this.gR=Ts(this.Rs,this.session.streamInfo[0]),this.wR=n(function*(){let Lo=2;const ir="v=0\no=- 0 3 IN IP4 127.0.0.1\ns=-\nt=0 0\na=fingerprint:sha-256 A7:24:72:CA:6E:02:55:39:BA:66:DF:6E:CC:4C:D8:B0:1A:BF:1A:56:65:7D:F4:03:AD:7E:77:43:2A:29:EC:93\nm=audio 9 UDP/TLS/RTP/SAVPF 100 101\nc=IN IP4 0.0.0.0\na=rtcp-mux\na=sendonly\na=mid:audio\na=setup:actpass\na=ice-ufrag:ETEn\na=ice-pwd:OtSK0WpNtpUjkY4+86js7Z/l\r\n",wr="\r\na=rtpmap:101 opus/48000/2\na=fmtp:101 minptime=10;useinbandfec=1\n";let _s="minptime=10;useinbandfec=1;channel_mapping=0,4,1,2,3,5;num_streams=4;coupled_streams=2",Ta=ir+"a=rtpmap:100 multiopus/48000/6\r\na=fmtp:100 "+_s+wr;const ls=st(6,Ta,_s);_s="minptime=10;useinbandfec=1;channel_mapping=0,6,1,2,3,4,5,7;num_streams=5;coupled_streams=3",Ta=ir+"a=rtpmap:100 multiopus/48000/8\r\na=fmtp:100 "+_s+wr;const zs=st(8,Ta,_s);return yield Promise.all([ls,zs]).then(ia=>{Lo=Math.max(Number(ia[0]),Number(ia[1]))}),l.Log.i("{d988e7f}","{dc7ee29}",Lo),Lo})(),this.vf={unadjustedMovement:Tn(wt.appId),...ee},this.Xd=h,this.appLaunchMode=wt.appLaunchMode,wi)for(const Lo of wi)if(Lo.track instanceof MediaStreamTrack&&"video"===Lo.track.kind){this.sendVideoTrack=Lo.track;break}let Br=this.session.signalConnectionInfo.protocol;Br=Br.replace("http","ws"),this.SR=Br+"://"+this.session.signalConnectionInfo.ip+":"+this.session.signalConnectionInfo.port;const Xo=this.session.signalConnectionInfo.resourcePath;Xo&&(this.SR+=("/"===Xo.charAt(0)?"":"/")+Xo,"/"===this.SR.charAt(this.SR.length-1)&&(this.SR=this.SR.slice(0,-1))),this.Jy=lc._M(this.session.sessionId,this.telemetry,this.yM,this.vr),this.vr.bR(),this.ID.length&&(this.Ig=new _t(this,this.ID[0],this.Rs,this.telemetry)),this.pf=new Kt(pt);const Do=document.createElement("div");Do.style.position="absolute",Do.style.zIndex="300",Do.style.left="0",Do.style.top="0",Do.style.width="100%",Do.style.display="none",Do.style.fontSize="3em",Do.style.color="white",Do.style.backgroundColor="gray",Do.style.textAlign="center",(null!==(Ar=this.ID[0])&&void 0!==Ar?Ar:document.body).insertAdjacentElement("afterend",Do),this.kR=Do,this.yR={mv:32768,gv:256,wv:255,Gn:this.sS.bind(this)},this.IR={mv:16384,gv:512,wv:65280,Gn:this.Qw.bind(this)},this.CR={mv:16384,gv:512,wv:255,Gn:this.ER.bind(this)},this.TR={mv:8192,gv:256,wv:255,Gn:this.toggleOnScreenStats.bind(this)},this.MR={mv:4096,gv:256,wv:255,Gn:this.toggleStutterIndicator.bind(this)},this.ec={MT:0,DT:[0],PT:0,zc:0,Kc:0,Qc:0,IT:[0],CT:[0],om:0,tl:0},this.PR=this.Xp.bind(this),function(Lo){const ir="MediaCapabilities2";if(!navigator.mediaCapabilities)return void Lo.Db(ir,"API unsupported",-1,-1,-1,-1);const wr=performance.now();uo.Hb("h264").then(function(){var _s=n(function*(Ta){if(Ta){const ls=uo.Hb("h265; level-id=153;profile-id=1;tier-flag=1"),zs=uo.Hb("h265; level-id=153;profile-id=2;tier-flag=1"),ia=uo.Wb(),ga=uo.zb(),nl=Oo(yield ls),ua=Oo(yield zs),Wl=Oo(yield ia),Xl=Oo(yield ga),xs=Oo(Ta);Lo.Db(ir,`AV1: ${Wl}`,xs,Xl,nl,ua);const qa=yield Ca.fk(),ll=yield Ca.mk();l.Log.d("{5083445}","{1efbc27}",qa,ll),Lo.Db("DisplayCaps","Is120FpsSupported: "+ll,qa,0,0,0)}else Lo.Db(ir,"webrtc or h264 unsupported",performance.now()-wr,-1,-1,-1)});return function(Ta){return _s.apply(this,arguments)}}())}(this.telemetry)}start(){this.DR(),this.vr.bR(),this.RR(),Hn.isInternalUser&&(this.yg.kv(this.yR),this.yg.kv(this.IR),this.yg.kv(this.CR),this.yg.kv(this.TR),this.yg.kv(this.MR))}NR(){this.name="peer-"+function(){let h=1;for(let k=1;k<10;k++)h*=10;let b=""+Math.floor(Math.random()*h);return b=b.padEnd(10,"0"),b}(),l.Log.d("{93c7910}","{f2b789d}",this.name),this.zD=this.SR+"/sign_in?peer_id="+this.name+"&version=2",this.signalingUrlQueryParameters&&(this.zD+="&"+this.signalingUrlQueryParameters),l.Log.d("{93c7910}","{05b8afd}",this.zD)}stop(h){var b,k,ee,he,we,ze;this.telemetry.Db("StreamTimersAndReconnects",Ae(h),0,this.ZD,this.tR,this.iR);const pt=wt=>{l.Log.i("{93c7910}","{a848987}",wt),this.telemetry.Db("PeerAPIDurationsAndMic",Ae(h),this.XD,this.QD,this.YD,wt)};this.CD.fb().then(wt=>{pt(wt)}),this.xR({code:h,description:"Session stopped before stream connected"}),this.OD&&(clearTimeout(this.OD),this.OD=0),this.kR.remove(),this.RD=!0;try{this.OR({exitMessage:{code:Ga(h)}})}catch(wt){l.Log.e("{93c7910}","{d337883}",wt)}this.BR(),this.tc&&this.tc.close(),null===(b=this.sc)||void 0===b||b.close(),this.FR(),null===(k=this.pc)||void 0===k||k.removeEventListener("icecandidate",this.AR),this.pc&&this.pc.close(),this.LR(),0!==this.BD&&(window.clearTimeout(this.BD),this.BD=0),0!==this.UD&&(window.clearTimeout(this.UD),this.UD=0),this.Jy.stopProfiling(),null===(ee=this.UR)||void 0===ee||ee.uninitialize(),this.Jy.stopWebSocket(),this.RR(),lc.qM(this.Jy),this.nR&&this.WD&&(l.Log.e("{93c7910}","{283a180}"),this.telemetry.Ke("Audio track muted")),this.LD>0&&this.telemetry.Db("WebSocketClose","",0,this.LD,0,0),null===(he=this.ED)||void 0===he||he.uninitialize(),null===(we=this.Ig)||void 0===we||we.uninitialize(),this.pf.Qp(0,this.hR),this.pf.Qp(1,this.hR),this.pf.Qp(2,this.hR),this.pf.Qp(4,this.rR),this.pf.Qp(3,this.rR),this.pf.Qp(5,this.dR),this.pf.Qp(6,this.zP),this.pf.uninitialize(),this.yg.yv(this.yR),this.yg.yv(this.IR),this.yg.yv(this.CR),this.yg.yv(this.TR);for(const wt of this.ID)wt.srcObject=null;this.Sb&&(this.Sb.srcObject=null),null===(ze=this.perf)||void 0===ze||ze.disconnect()}RM(h){var b;if(l.Log.i("{93c7910}","{39024c3}",ct(JSON.stringify(h))),h.ackid&&this.maxReceivedAckId<h.ackid&&(this.maxReceivedAckId=h.ackid),h.peer_info)h.peer_info.name!==this.name&&0!==this.id||(this.id=h.peer_info.id,l.Log.d("{93c7910}","{c5faf27}",this.id));else if(h.peer_msg)this.GR(h.peer_msg.from,h.peer_msg.msg);else if(h.error)if("peerRemoved"===h.error){let k;0!==this.BD?(k=null!==(b=this.HR())&&void 0!==b?b:3237094161,l.Log.w("{93c7910}","{cbb35d3}")):k=3237094159,this.VR(k)}else this.VR(3237094160)}signInTimeout(){var h,b;this.UD=0,l.Log.i("{93c7910}","{6d6b337}"),this.telemetry.WR(this.zD,0,null!==(b=null===(h=this.session)||void 0===h?void 0:h.signalConnectionInfo.ip)&&void 0!==b?b:"","signInTimeout",this.KD,!1),this.xR({code:3237093907})}DM(h){const b=()=>{var k,ee,he,we,ze;const pt=null!==(k=h.code)&&void 0!==k?k:1005;l.Log.i("{93c7910}","{0a06f78}",pt,null!==(ee=h.error)&&void 0!==ee&&ee),this.telemetry.WR(this.zD,pt,null!==(we=null===(he=this.session)||void 0===he?void 0:he.signalConnectionInfo.ip)&&void 0!==we?we:"",null!==(ze=h.reason)&&void 0!==ze?ze:"",this.KD,h.wasClean),window.clearTimeout(this.UD),this.UD=0,this.xR({code:Gi(pt),description:h.reason})};0!==this.UD&&(h.error||h.code&&h.code>=1002&&h.code<=1015?(this.KD++,this.KD<=3?(this.NR(),this._R()):b()):b()),h.wasClean||this.LD++}NM(){l.Log.i("{93c7910}","{6423101}")}xM(){0!==this.UD&&(window.clearTimeout(this.UD),this.UD=0,this.ZD=Date.now()-this.jD),this.ND||0!==this.BD||this.qR()}$R(h){l.Log.i("{8ba4138}","{0b0c6f9}",h)}zR(h){this.telemetry.Ac(void 0,h,"{8ba4138}.ts",0,0,!0),l.Log.e("{8ba4138}","{0b0c6f9}",h)}_R(){this.UR=new Vc(this.session.sessionId,{info:this.$R.bind(this),exception:this.zR.bind(this)}),this.UR.initialize(this.zD,this.maxReceivedAckId,this)}DR(){this.NR();let h=1e4;Hn.ko.signInTimeout&&0!==Hn.ko.signInTimeout&&(h=Hn.ko.signInTimeout,l.Log.i("{93c7910}","{4f2f101}",h)),this.UD=window.setTimeout(()=>this.signInTimeout(),h),this.jD=Date.now(),this._R()}qR(){this.BD=window.setTimeout(()=>this.KR(),3e4),this.JD=Date.now()}KR(){var h;this.BD=0,l.Log.i("{93c7910}","{d22df91}"),this.VR(null!==(h=this.HR())&&void 0!==h?h:3237093895)}HR(){var h;const b=this.QR();let k;switch(this.videoStreamProgress){case 0:case 2:break;case 3:k=3237093922;break;case 5:k=3237093923;break;case 7:k=3237093924;break;default:k=3237093925}const ee=null===(h=this.wD)||void 0===h?void 0:h.gM();return this.id?this.GD?15859712!==b?k=b:this.VD?this.HD?ee?k=ee:4&this.xD&&("connecting"===on(this.tc)?k=3237093919:"connecting"===on(this.YR)?k=3237093920:"connecting"===on(this.XR)?k=3237093921:this.sc&&"connecting"===on(this.sc)&&(k=3237093936)):k=3237093903:k=3237093904:k=3237093913:k=3237093912,k}jR(){let h=!1;return qe()&&"closed"===this.pc.signalingState&&(h=!0,this.VR(15867908)),h}JR(){this.jR()||this.VR(15867907)}ZR(){var h,b,k,ee,he,we,ze,pt,wt;const $t=Bi=>{var qi,sr;return(null!==(qi=Bi?.get("TCP"))&&void 0!==qi?qi:0)+(null!==(sr=Bi?.get("IPV6"))&&void 0!==sr?sr:0)},an=(Bi,qi)=>{let sr=0;if(qi){let Ar=`${Bi} local candidates:`;for(const[Vr,Br]of qi)sr+=Br,Ar+=` ${Vr}: ${Br}`;l.Log.i("{93c7910}","{0b0c6f9}",Ar)}return sr},zt=null===(h=this.wD)||void 0===h?void 0:h.SM(),mn=an("event",this.uR),kn=an("stats",zt),yn=mn-this.lR;let Qn="";const li=null===(b=this.pc)||void 0===b?void 0:b.getReceivers().find(Bi=>"video"===Bi.track.kind&&Bi.track.enabled),wi=null===(we=null===(he=null===(ee=null===(k=li?.transport)||void 0===k?void 0:k.iceTransport)||void 0===ee?void 0:ee.getSelectedCandidatePair)||void 0===he?void 0:he.call(ee))||void 0===we?void 0:we.local;wi&&(Qn=`category: ${Ka(wi)}, type: ${wi.type}`),this.telemetry.Db("LocalCandidatesCategories",Qn,mn,mn-$t(this.uR),kn,kn-$t(zt));const mi=null!==(pt=null===(ze=this.wD)||void 0===ze?void 0:ze.bM())&&void 0!==pt?pt:new Set;this.telemetry.Db("LocalCandidateRanges",`${null===(wt=this.pc)||void 0===wt?void 0:wt.iceGatheringState}`,yn,mi?.size,this.fR.size,new Set([...mi,...this.fR]).size)}VR(h,b){var k;if(!this.RD){if(this.RD=!0,this.BR(),this.FR(),this.ND){const ee={sessionId:this.session.sessionId,subSessionId:this.session.subSessionId,error:{code:h,description:b},zoneName:this.session.zoneName,zoneAddress:this.session.zoneAddress,isSessionAlive:ea(h)};this.telemetry.Ke("SignalingState",Ae(h),null===(k=this.pc)||void 0===k?void 0:k.signalingState),l.Log.i("{93c7910}","{89d3ea6}",this.pc.signalingState),this.Xd.tN(ee)}else this.xR({code:h});l.Log.e("{93c7910}","{573fb24}",Ae(h))}}iN(){for(const h of this.$D)h.streamId===j&&2===this.$D.length?h.streamId=_n:h.streamId===j?h.streamId=q:h.streamId===te&&(h.streamId=de)}sN(){const h=this.$D.find(he=>he.streamId===q),b=this.$D.find(he=>he.streamId===_n),k=this.$D.find(he=>he.streamId===de),ee=!(!b||!k);if(h)l.Log.i("{93c7910}","{a5e354c}");else if(ee){const he={streamId:q,tracks:b.tracks.concat(k.tracks)};this.$D.splice(this.$D.indexOf(b),1),this.$D.splice(this.$D.indexOf(k),1),this.$D.push(he),l.Log.i("{93c7910}","{e2dc4ec}")}else l.Log.i("{93c7910}",b?"{07f3411}":k?"{243a50b}":"{7388213}")}eN(){var h;this.sN();const b=null===(h=this.pc)||void 0===h?void 0:h.getTransceivers();if(!b)return;const k=new Map,ee=new Map;for(const we of this.$D){for(const ze of we.tracks)ze.trackId&&k.set(ze.trackId,we.streamId);ee.set(we.streamId,[])}let he=0;for(const we of b){const ze=we.receiver.track,pt=k.get(ze.id);if(void 0===pt)continue;const wt=ee.get(pt);if(wt){if("video"===ze.kind){const $t=this.ID[he++];if(!$t)return l.Log.e("{93c7910}","{85759dc}"),3237093939;const an=wt.find(zt=>!zt.nN);an?(an.nN=ze,an.Af=$t):wt.push({nN:ze,Af:$t})}else if("audio"===ze.kind){const $t=wt.find(an=>!an.hN);$t?$t.hN=ze:wt.push({hN:ze})}}else l.Log.w("{93c7910}","{4c622c1}",pt)}return this.oN(ee)}setUpstreamMedia(h,b){return Promise.resolve(!1)}unsetUpstreamMedia(h){return Promise.resolve(!1)}stopUpstreamMedia(h){return Promise.resolve(!1)}yD(h,b){var k;null===(k=this.pR[b])||void 0===k||k.yD(h)}rN(){try{if(this.pc&&this.sendVideoTrack){const h=Wr(this.pc)[0];if(h){let b="",k=h.direction;h.direction!==fe&&(h.direction=fe,b=" ("+k+" direction is overridden by "+fe+")"),h.sender.replaceTrack(this.sendVideoTrack).then(()=>{l.Log.i("{93c7910}","{b54f651}",b)}).catch(ee=>{h.direction!==k&&(h.direction=k),l.Log.w("{93c7910}","{d225159}",ee)})}else l.Log.w("{93c7910}","{8272b59}")}}catch(h){l.Log.w("{93c7910}","{66082ec}",h)}}aN(h,b){l.Log.w("{93c7910}","{4d3c418}",h,b),this.telemetry.Ac(b,h,"{93c7910}.ts",0,0,!0)}setCodecPreferences(h){var b,k,ee;let he=0;const we=Wr(this.pc);if(!we.length)return he;if(!RTCRtpReceiver.getCapabilities||!RTCRtpSender.getCapabilities||!we[0].setCodecPreferences)return l.Log.w("{93c7910}","{274c489}"),he;const ze=null===(b=RTCRtpReceiver.getCapabilities("video"))||void 0===b?void 0:b.codecs;if(!ze)return he;let pt=!1,wt=!1;const $t=["flexfec-03","rtx"];for(let an=0;an<we.length&&an<h.length;an++){const zt=h[an],mn=we[an];let kn=[];const yn=Qn=>{const li=ze.filter(wi=>wi.mimeType==="video/"+Qn);return kn=kn.concat(li),!!li.length};if(!yn(zt.Dk)&&"H264"!==zt.Dk){if(1===zt.Pk){l.Log.e("{93c7910}","{a3e8d28}",zt.Dk),he=2;break}l.Log.w("{93c7910}","{d1d0397}",zt.Dk),zt.Dk="H264",yn(zt.Dk),he=1}for(const Qn of $t)yn(Qn);try{mn.setCodecPreferences(kn)}catch(Qn){pt||(pt=!0,this.aN("Failed to set codec preferences to receiver capabilities",Qn));try{kn=kn.concat(null!==(ee=null===(k=RTCRtpSender.getCapabilities("video"))||void 0===k?void 0:k.codecs)&&void 0!==ee?ee:[]),mn.setCodecPreferences(kn)}catch(li){wt||(wt=!0,this.aN("Failed to set codec preferences to sender and receiver capabilities",li))}}}return he}dN(){var h;null===(h=this.UR)||void 0===h||h.uninitialize(4001),this.UR=void 0,this.Jy.startWebSocket(this.zD,this.maxReceivedAckId,this,!0)}xR(h){var b,k,ee,he,we,ze,pt;if(!this.ND){this.tR=Date.now()-this.JD,void 0===h?Hn.cr||(this.dN(),Hn.Eo&&this.cN()):this.ZR(),this.ND=!0,0!==this.BD&&(window.clearTimeout(this.BD),this.BD=0);for(const[$t,an]of this.session.streamInfo.entries())an.bitDepth=null!==(ee=null!==(b=an.bitDepth)&&void 0!==b?b:null===(k=this.wD)||void 0===k?void 0:k.zy($t))&&void 0!==ee?ee:8;let wt={sessionId:this.session.sessionId,subSessionId:this.session.subSessionId,streams:this.$D,streamInfo:this.session.streamInfo,error:h,zoneName:this.session.zoneName,zoneAddress:this.session.zoneAddress,gpuType:this.session.gpuType,isResume:null!==(he=this.isResume)&&void 0!==he&&he,bitDepth:null!==(ze=null===(we=this.wD)||void 0===we?void 0:we.zy(0))&&void 0!==ze?ze:8};this.Xd.lN(wt),null===(pt=this.Ig)||void 0===pt||pt.send()}}uN(){return this.ND}oN(h){let b=!1;for(const k of h.values())for(const ee of k)if(ee.nN&&ee.Af){const he=[ee.nN];ee.hN&&he.push(ee.hN),ee.Af.srcObject=new MediaStream(he)}else if(ee.hN){if(!this.Sb)return l.Log.e("{93c7910}","{a2fe53c}"),3237093937;if(b){l.Log.w("{93c7910}","{1376fbe}");continue}this.Sb.srcObject=new MediaStream([ee.hN]),b=!0}}OR(h){var b;try{if("open"===(null===(b=this.XR)||void 0===b?void 0:b.readyState)){let k=performance.now();this.XR.send(JSON.stringify(h));let ee=performance.now()-k;this.$c(ee)}else l.Log.w("{93c7910}","{593db1b}")}catch(k){l.Log.e("{93c7910}","{a585a6e}",k),this.telemetry.Ac(k,"sendControlMessage exception","{93c7910}.ts",0,0,!0)}}AN(h){"connecting"===on(this.XR)?this.eR.push(h):this.OR(h)}$c(h){var b;this.Jy.FM(h),null===(b=this.wD)||void 0===b||b.Fy(h)}sM(h){var b;null===(b=this.wD)||void 0===b||b.sM(h)}vN(h,b){var k;l.Log.d("{93c7910}","{5ba6173}",h,b),this.Jh.emit("StreamingEvent",{streamingWarnings:{code:h,secondsLeft:b}}),2===h&&(null===(k=this.tg)||void 0===k||k.Bw(!0))}fN(h){let b=function(k){let ee=0;switch(l.Log.d("{c00be32}","{44bd2b6}",k),k){case 1:case 2:ee=1;break;case 3:case 5:break;case 4:ee=2;break;case 6:ee=3}return ee}(h.timerNotification.code);0!==b?this.vN(b,h.timerNotification.secondsLeft):l.Log.e("{93c7910}","{de37ac5}",h.timerNotification.code)}pN(h){var b;if("Hdr10PlusGaming"===h.messageRecipient){if("Hdr10PlusGamingChange"===h.messageType&&h.data){const k=JSON.parse(h.data);null===(b=this.pR[0])||void 0===b||b.SD(k)}}else if("EDIT_BOX_LIST"===h.messageType&&h.data)try{const k=JSON.parse(h.data);this.tg&&this.tg.xS(k)}catch(k){l.Log.e("{93c7910}","{cb5b85e}",k.message)}else this.Jh.emit("CustomMessage",h)}mN(h,b){this.telemetry.Db("IceStats",h,0,b.fM,b.pM,b.mM)}gN(){var h;null===(h=this.wN)||void 0===h||h.start(this.pc)}LR(){var h;null===(h=this.wN)||void 0===h||h.save(),this.wN=void 0}vR(h){l.Log.d("{93c7910}","{4742d5e}"),h.candidate&&this.lR++,qe()||this.pc&&this.pc.canTrickleIceCandidates&&this.pc.onicecandidate&&this.SN(h,!0)}SN(h,b){if(h.candidate){if(!b){const ee=Ka(h.candidate);if(this.uR.set(ee,this.uR.get(ee)+1),"IPV4"===ee){const he=Il(h.candidate);"UNKNOWN"!==he&&this.fR.add(he)}}if("tcp"===h.candidate.protocol)return void l.Log.d("{93c7910}","{6f19d1e}");l.Log.d("{93c7910}","{ac052fa}",h.candidate.port,h.candidate.protocol),this.bN(this.DD,{sdpMLineIndex:h.candidate.sdpMLineIndex,sdpMid:h.candidate.sdpMid,candidate:h.candidate.candidate}),this.HD=!0}else l.Log.d("{93c7910}","{a759d16}")}kN(h){var b,k,ee,he,we,ze,pt,wt,$t,an,qi;l.Log.d("{93c7910}","{d79ed0a}",h);try{let zt,mn={},kn=[];if(Hn.ko.enableStunServer&&kn.push({urls:"stun:s1.stun.gamestream.nvidia.com:19308"}),Hn.zo){kn=[];const mi=Hn.zo.split("|");for(let Bi=0;Bi<mi.length;Bi++){const[qi,sr,Ar]=mi[Bi].split(",").map(Vr=>Vr.trim());qi&&sr&&Ar?kn.push({urls:qi,username:sr,credential:Ar}):l.Log.w("{93c7910}","{cdc808b}",qi,sr,Ar)}zt=Hn.iceTransportPolicy}else null!==(k=null===(b=this.session.iceServerConfiguration)||void 0===b?void 0:b.iceServers)&&void 0!==k&&k.length?(kn=kn.concat(this.session.iceServerConfiguration.iceServers),zt=this.session.iceServerConfiguration.iceTransportPolicy):null!==(he=null===(ee=this.dP.yN)||void 0===ee?void 0:ee.iceServers)&&void 0!==he&&he.length&&(kn=kn.concat(this.dP.yN.iceServers),zt=this.dP.yN.iceTransportPolicy,kn.length&&kn.map(mi=>`${mi.urls} ${mi.username}`).join(" | "),l.Log.i("{93c7910}","{5d756ff}",kn.length?kn.map(mi=>`${mi.urls} ${mi.username}`).join(" | "):"None"));kn.length&&(mn.iceServers=kn,mn.iceTransportPolicy=zt),null===(we=this.wN)||void 0===we||we.cP(mn),l.Log.d("{93c7910}","{93106c2}",JSON.stringify(mn)),this.DD=h,this.pc=new RTCPeerConnection(mn);const yn=mi=>{var Bi,qi,sr,Ar;this.IN&&(this.mN("disconnected",this.IN),this.IN=void 0);const Vr=null===(Bi=this.wD)||void 0===Bi?void 0:Bi.vM();Vr&&this.mN("failed",Vr),this.xD|=16,4&this.xD?0===(null===(sr=this.wD)||void 0===sr?void 0:sr.AM())?this.VR(3237093900):0===(null===(Ar=this.wD)||void 0===Ar?void 0:Ar.lM())?this.VR(3237093901):this.VR(mi?3237093906:3237093899):this.VR(null!==(qi=this.HR())&&void 0!==qi?qi:3237093894)};this.pc.onconnectionstatechange=mi=>{if(this.pc)switch(l.Log.d("{93c7910}","{4ced155}",this.pc.connectionState),this.pc.connectionState){case"connected":case"disconnected":case"closed":break;case"failed":this.jR()||yn(!1)}else l.Log.e("{93c7910}","{648f784}")},this.pc.oniceconnectionstatechange=mi=>{var Bi;if(this.pc)switch(l.Log.d("{93c7910}","{3a3143a}",this.pc.iceConnectionState),this.pc.iceConnectionState){case"new":this.xD|=1;break;case"checking":this.xD|=2;break;case"connected":this.IN=void 0,32&this.xD&&(this.Jh.emit("StreamingEvent",{streamingState:{state:"reconnected"}}),this.iR++),this.xD|=4;break;case"completed":this.IN=void 0,this.xD|=12;break;case"failed":yn(!0);break;case"disconnected":this.IN=null===(Bi=this.wD)||void 0===Bi?void 0:Bi.vM(),4&this.xD&&this.Jh.emit("StreamingEvent",{streamingState:{state:"reconnecting"}}),this.xD|=32;break;case"closed":this.xD|=64,32&this.xD&&this.VR(3237093892)}else l.Log.e("{93c7910}","{648f784}")},this.pc.ondatachannel=mi=>{l.Log.d("{93c7910}","{b364db9}",mi.channel.label),"control_channel"==mi.channel.label&&(this.mT(mi.channel,{errorCode:3237093898,open:()=>{this.XR=mi.channel;for(const qi of this.eR)this.OR(qi);l.Log.d("{93c7910}","{038895c}",this.eR.length),this.eR=[],this.aM(`NvRtcClient Browser name: ${this.Rs.browser}, Browser version: ${this.Rs.browserFullVer}`),this.CN("GPU Detail",this.Rs.gpuDetail),this.EN(),this.pf._p(0,this.hR),this.pf._p(1,this.hR),this.pf._p(2,this.hR),this.pf.QP()&&(this.TN(),this.pf._p(4,this.rR),this.pf._p(3,this.rR)),this.pf.ZP()&&(this.aM("ClientGenericMapping: {ProcCpuUsage, TotalCpuUsage}"),this.MN(),this.pf._p(5,this.dR)),this.pf.JP()&&(this.KP(this.pf.kM()),this.pf._p(6,this.zP)),window.requestAnimationFrame(this.PR)}}),mi.channel.onmessage=Bi=>{var qi;try{let sr=JSON.parse(Bi.data);if(l.Log.d("{93c7910}","{9371373}"),sr.exitMessage)this.VR(function(Ar){if(Ar.stopData){const Vr=function(Br){if(Br.length<2)return null;const Xo=atob(Br);let Do=0;const Lo=()=>{const ir=256*Xo.charCodeAt(Do)+Xo.charCodeAt(Do+1);return Do+=2,ir};return 0==Lo()?Br.length<Do+2?null:Lo():null}(Ar.stopData);if(Vr||0===Vr)return l.Log.d("{c00be32}","{921626d}",Vr),cs(Vr)}return Ar.nvstResult?(l.Log.d("{c00be32}","{f30bc33}",Ar.nvstResult),function(Vr){let Br=15868672;switch(Vr){case 2147680256:case 2147680291:Br=15868704;break;case 2147680257:Br=15868705;break;case 2147680258:Br=3237093635;break;case 2147680259:Br=3237094152;break;case 2147680260:Br=15868706;break;case 2147680262:Br=15868707;break;case 2147680263:Br=15868708;break;case 2147680264:Br=15868736;break;case 2147680265:Br=15868737;break;case 2147680266:Br=15868738;break;case 2147680267:Br=15868739;break;case 2147680268:Br=15868741;break;case 2147680269:Br=15868740;break;case 2147680270:Br=15868742;break;case 2147680271:Br=3237094147;break;case 2147680275:Br=15868743;break;case 2147680277:Br=15868709;break;case 2147680278:Br=15868744;break;case 2147680279:Br=15868710;break;case 2147680280:Br=15868711;break;case 2147680281:Br=15868712;break;case 2147680283:Br=3237094155;break;case 2147680284:Br=3237094156;break;case 2147680285:Br=3237094157;break;case 2147680286:Br=3237093678;break;case 2147680287:Br=15868715;break;case 2147680288:Br=15868716;break;case 2147680289:Br=15868719;break;case 2147680300:Br=15868688;break;case 2147745794:case 2147745797:case 2147745803:Br=3237093892;break;case 2147745796:Br=3237094158;break;case 2147745804:Br=3237094146;break;case 2147745805:Br=3237094148;break;case 2147745806:Br=3237094149;break;case 2147745807:Br=3237094150;break;case 2148438786:Br=15868718;break;default:l.Log.d("{c00be32}","{094c45e}",Ae(Vr))}return Br}(Ar.nvstResult)):Ar.code?(l.Log.d("{c00be32}","{6210ab0}",Ar.code),cs(Ar.code)):15868672}(sr.exitMessage));else if(sr.timerNotification)this.fN(sr);else if(sr.debugMessage)this.Km(sr.debugMessage.message);else if(sr.customMessage)this.pN(JSON.parse(sr.customMessage));else if(sr.videoStreamProgressEvent)this.videoStreamProgress=sr.videoStreamProgressEvent.videoStreamProgress;else if(sr.gameSessionHdrMode)null===(qi=this.pR[sr.gameSessionHdrMode.streamIndex])||void 0===qi||qi.kD(sr.gameSessionHdrMode.hdrMode>0);else if(sr.videoQualitySnapshotResponse){let Ar="unknown";switch(sr.videoQualitySnapshotResponse.messageType){case 0:Ar="success";break;case 1:Ar="not enabled";break;case 2:Ar="too many snapshots"}l.Log.i("{93c7910}","{cc428fc}",Ar,sr.videoQualitySnapshotResponse.snapshotsTaken)}else l.Log.d("{93c7910}","{d14e0fd}")}catch(sr){l.Log.e("{93c7910}","{a40734a}",sr),this.telemetry.Ac(sr,"Error in control_channel message handling","{93c7910}.ts",0,0,!0)}})},l.Log.d("{93c7910}","{d9ffda2}");const Qn={ordered:!0,reliable:!0};if(l.Log.d("{93c7910}","{2bd4728}"),this.tc=this.pc.createDataChannel("input_channel_v1",Qn),this.tc.binaryType="arraybuffer",this.mT(this.tc,{errorCode:3237093896}),this.dP.TD.MD>0){l.Log.d("{93c7910}","{860d2d7}");let mi={ordered:!1,maxPacketLifeTime:this.dP.TD.MD};l.Log.d("{93c7910}","{25e5dc3}",JSON.stringify(mi)),this.sc=this.pc.createDataChannel("input_channel_partially_reliable",mi),this.sc.binaryType="arraybuffer",this.mT(this.sc,{errorCode:3237093929})}if(this.YR=this.pc.createDataChannel("cursor_channel",{ordered:!0,reliable:!0}),this.YR.binaryType="arraybuffer",this.mT(this.YR,{errorCode:3237093897}),-1!==(null!==(qi=Hn.ko.requireDS4TrackpadForAppIds)&&void 0!==qi?qi:[]).indexOf(this.session.appId)&&this.yg.zu(),this.yg.qu(this.dP.TD.PD),this.ID.length&&(this.tg=new ns(this,this.ID[0],this.tc,this.YR,this.telemetry,this.Jh,this.vf,2===this.appLaunchMode,this.kg,this.yg,this.Rs,this.Xd,this.Ig,this.pf,this.ec,this.vr,this.dP.TD,this.sc,this.textInputElement)),this.sR&&(this.setKeyboardLayout(this.keyboardLayout),this.sR=!1),Hn.Co){l.Log.d("{93c7910}","{9ae428b}");const mi={zoneName:this.session.zoneName,clientAppVersion:null!==(ze=this.clientAppVersion)&&void 0!==ze?ze:"",appId:this.session.appId,Xy:null!==(pt=this.Xy)&&void 0!==pt?pt:"",gpuType:this.session.gpuType,streamInfo:null!==(wt=this.session.streamInfo[0])&&void 0!==wt?wt:{width:0,height:0,fps:0},clientLocale:this.session.clientLocale};this.wD=new ws(this.Jh,this,this.ID,this.pc,this.dP.video,this.telemetry,this.Rs,mi,this.pf,this.ec,this.vr,this.Jy);for(const Bi of this.pR)Bi.gD(this.wD);PerformanceObserver&&(this.perf=new PerformanceObserver(Bi=>this.mR(Bi)))}this.pc.addEventListener("icecandidate",this.AR),this.pc.onsignalingstatechange=mi=>{l.Log.i("{93c7910}","{3236227}",this.pc.signalingState)},this.pc.onicecandidate=mi=>this.SN(mi),this.pc.onicecandidateerror=mi=>{l.Log.w("{93c7910}","{9871b05}",mi.port,mi.url,mi.errorCode,mi.errorText)};const wi=!hn(this.Rs)&&(null===($t=this.enableMicUpstream)||void 0===$t||$t);(null!==(an=Hn.Ko)&&void 0!==an?an:wi)&&this.CD.initialize(this.pc,this.Jh,this.ID[0],this.Sb),this.pc.ontrack=mi=>{var Bi,qi,sr;const Ar=mi.streams[0];l.Log.d("{93c7910}","{47359d4}",Ar.id,mi.track.kind,mi.track.id,mi.streams.length,Ae(this.xD));let Vr={kind:"video"===mi.track.kind?"video":"audio",trackId:mi.track.id};null===(qi=null===(Bi=this.Xd)||void 0===Bi?void 0:Bi.onRtcRtpReceiver)||void 0===qi||qi.call(Bi,mi.receiver),"audio"!==mi.track.kind||Ar.id!==j&&Ar.id!==q&&Ar.id!==te&&Ar.id!==de||(this.nR=mi.track.id,this.PN(Ar),null===(sr=this.ED)||void 0===sr||sr.initialize(new MediaStream(Ar.getAudioTracks())));let Br=this.$D.find(Xo=>Xo.streamId===Ar.id);Br?Br.tracks.push(Vr):this.$D.push({streamId:Ar.id,tracks:[Vr]}),this.DN()}}catch(zt){l.Log.e("{93c7910}","{ff11182}",zt),this.telemetry.Ac(zt,"Exception in creating peer connection","{93c7910}.ts",0,0,!0)}}BR(){this.tg&&(this.tg.uninitialize(),this.tg=void 0)}FR(){var h;null===(h=this.wD)||void 0===h||h.stop()}RN(h){const b=k=>k.startsWith("a=candidate:")?(this.VD=!0,"a="+this.NN(k.substr(2))):k;h.xN=h.xN.map(b);for(const k of h.BN)k.lines=k.lines.map(b)}NN(h){l.Log.d("{93c7910}","{2dd62a2}");const b=this.session.mediaConnectionInfo.find(k=>2===k.usage||17===k.usage);if(b){let k=h.split(" ");b.ip&&(k[4]=b.ip),b.port&&(k[5]=""+b.port);let ee=k.join(" ");return l.Log.d("{93c7910}","{1fbcd88}",ee),ee}return l.Log.d("{93c7910}","{aee7283}"),h}QR(){const h=this.$D.flatMap(b=>b.tracks);for(const b of this.qD)if(!h.find(k=>k.trackId===b.trackId))return"audio"===b.kind?3237093914:3237093905;return l.Log.d("{93c7910}","{4fef10b}"),h.length>this.qD.length&&l.Log.w("{93c7910}","{7861bb3}"),15859712}FN(){let h=this.pc.getTransceivers();if(0===h.length)return l.Log.d("{93c7910}","{3399d9d}"),void this.xR({code:3237093909});for(const b of h)"3"===b.mid&&b.receiver.track.id!==this.nR?(l.Log.i("{93c7910}","{981392f}"),b.receiver.track.enabled=!1):this.qD.push({trackId:b.receiver.track.id,kind:b.receiver.track.kind});l.Log.d("{93c7910}","{648ae93}",JSON.stringify(this.qD))}GR(h,b){var k=this;return n(function*(){var ee,kn;l.Log.d("{93c7910}","{9978507}",h);try{const he=JSON.parse(b);if("offer"===he.type){let we,ze;k.GD=!0;let pt=he.sdp||"";const wt=null!==(ee=he.nvstServerOverrides)&&void 0!==ee?ee:"";l.Log.d("{93c7910}","{ca9a155}",ct(pt));const $t=yield k.gR,an=Ye(pt);if(Ne.LN(an,$t,k.dP.video),he.nvstSdp){if(ze=function(kn){let yn,Qn,li={origin:"",time:"",Rk:new Map,media:[]},wi=new Map,mi=!1;const Bi=()=>{if(mi){if(!Qn||!yn)return l.Log.e("{eb7c2d0}","{adc37a7}"),!1;li.media.push({Nk:Qn,xk:yn,attributes:wi}),Qn=void 0,yn=void 0}else li.Rk=wi,mi=!0;return wi=new Map,!0};for(const qi of Uo(kn)){if(qi.length<2||"="!==qi[1])continue;const sr=qi[0],Ar=qi.substr(2);if("m"==sr){if(!Bi())return;Qn=Ar.split(" ")[0]}else if("a"==sr){const Vr=Ar.indexOf(":");if(-1===Vr)continue;const Br=Ar.slice(0,Vr),Xo=Ar.slice(Vr+1);if("msid"===Br){if(void 0!==yn)return void l.Log.e("{eb7c2d0}","{dc7fbec}",Xo);yn=Xo}else wi.set(Br,Xo)}else if("t"==sr){if(mi)return void l.Log.e("{eb7c2d0}","{14fc069}");li.time=Ar}else if("o"==sr){if(mi)return void l.Log.e("{eb7c2d0}","{eb0287a}");li.origin=Ar}}if(Bi()){if(""!==li.time&&""!==li.origin)return li;l.Log.e("{eb7c2d0}","{8e7e486}")}}(he.nvstSdp),!ze)return void k.xR({code:3237093911});if(we=k.UN(ze,wt),!we)return}k.wN=new cc(k.dP),k.kN(h);let zt=Date.now();k.RN(an),Ne.GN(an,k.dP.video.map(kn=>({minWidth:960,maxWidth:kn.bk,minHeight:540,maxHeight:kn.kk,HN:30,yk:kn.yk}))),(null===(kn=Hn.ko.allowUpdateH265Tier)||void 0===kn||kn)&&function(kn){var yn,Qn,li,wi;if(null!==(Qn=null===(yn=RTCRtpReceiver?.getCapabilities("video"))||void 0===yn?void 0:yn.codecs)&&void 0!==Qn&&Qn.some(qi=>{var sr;return"video/H265"===qi.mimeType&&(null===(sr=qi.sdpFmtpLine)||void 0===sr?void 0:sr.includes("tier-flag=1"))}))return void l.Log.i("{93c7910}","{9da2c0f}");const mi=/^a=fmtp:([0-9]+)/;let Bi=!1;for(const qi of kn.BN)if(null!==(li=qi.lines[0])&&void 0!==li&&li.startsWith("m=video"))for(const[sr,Ar]of qi.lines.entries()){const Vr=Ar.match(mi);Vr&&("H265"===(null===(wi=qi.VN.get(Vr[1]))||void 0===wi?void 0:wi.codec)&&(qi.lines[sr]=Ar.replace("tier-flag=1","tier-flag=0"),Bi=!0))}Bi&&l.Log.i("{93c7910}","{c656b20}")}(an);const mn=Ne.WN(an);mn&&Ne._N(an,mn),pt=gt(an),l.Log.d("{93c7910}","{542f9d5}",ct(pt)),k.pc.setRemoteDescription({type:he.type,sdp:pt}).then(()=>{k.QD=Date.now()-zt,k.FN(),l.Log.d("{93c7910}","{ab7b3af}",k.QD),k.iN();const kn=k.eN();if(kn)return void k.VR(kn);k.rN();const yn=k.setCodecPreferences(k.dP.video);2!==yn?1===yn&&ze&&(we=k.UN(ze,wt),!we)||(k.gN(),zt=Date.now(),k.pc.createAnswer().then(Qn=>{var li;k.XD=Date.now()-zt,l.Log.d("{93c7910}","{2984003}",k.XD);const wi=k.dP.video.map(mi=>({max:mi.Ik.toString(),min:mi.Mk.toString(),qN:mi.Ck.toString()}));if(l.Log.d("{93c7910}","{b535c15}",ct(De(null!==(li=Qn.sdp)&&void 0!==li?li:""))),Qn.sdp){const mi=Ye(Qn.sdp);Ne.$N(mi,wi),qe()&&Ne.zN(mi,wi),Ne.KN(mi),mn&&Ne.QN(mi,mn),Qn.sdp=gt(mi),l.Log.d("{93c7910}","{1a048a7}",ct(De(Qn.sdp)))}zt=Date.now(),k.pc.setLocalDescription(Qn).then(()=>{if(k.YD=Date.now()-zt,l.Log.d("{93c7910}","{de86c01}",k.YD),Qn.sdp&&!qe()){const Bi=Ye(Qn.sdp);Ne.zN(Bi,wi),Qn.sdp=gt(Bi)}if(Qn.sdp&&we){const Bi=mt.cD(Qn.sdp),qi=Bi.shift(),sr=mt.mD(Bi[0],qi),Ar=mt.fD(Bi[0],qi),Vr=mt.cD(we);Vr[0]+="a=general.icePassword:"+sr.password+"\r\n",Vr[0]+="a=general.iceUserNameFragment:"+sr.usernameFragment+"\r\n",Vr[0]+="a=general.dtlsFingerprint:"+Ar.pD[0].value+"\r\n",we=Vr.join("")}k.bN(h,{type:Qn.type,sdp:Qn.sdp,nvstSdp:we}),l.Log.i("{93c7910}","{bd70666}",JSON.stringify(k.$D)),k.DN()}).catch(mi=>{l.Log.e("{93c7910}","{ba2deaa}",mi),k.VR(3237093902)})}).catch(Qn=>{l.Log.d("{93c7910}","{40c0f69}",Qn)})):k.VR(3237093938)}).catch(kn=>{l.Log.e("{93c7910}","{ec2853e}",kn),k.VR(3237093902)})}else if(he.candidate){l.Log.d("{93c7910}","{cf4c103}");let we=k.NN(he.candidate);l.Log.d("{93c7910}","{43e80e0}",we),k.pc.addIceCandidate({sdpMLineIndex:he.sdpMLineIndex,sdpMid:he.sdpMid,candidate:we}).then(()=>{l.Log.d("{93c7910}","{db0ae14}"),k.VD=!0}).catch(ze=>{l.Log.e("{93c7910}","{62f207e}",ze),k.telemetry.Ke("AddCandidateFailed",ze?.name,ze?.message)}),l.Log.d("{93c7910}","{9454009}")}}catch(he){"BYE"===b?k.VR(15868672):(l.Log.e("{93c7910}","{93367fc}",he),k.telemetry.Ac(he,"Invalid handlePeerMessage Response","{93c7910}.ts",0,0,!0))}})()}UN(h,b){var k;const ee=function(he,we,ze,pt){const wt=function($t,an,zt){var mn,kn,yn;const Qn={origin:$t.origin,time:$t.time,Rk:new Map,media:[]};Qn.Rk.set("general.clientSupportsIntraRefresh",Lt(zt)?"0":"1"),Qn.Rk.set("general.clientCapture",null!==(mn=$t.Rk.get("general.clientCapture"))&&void 0!==mn?mn:"0"),Qn.Rk.set("runtime.serverTraceCapture","2");let li=0;for(const wi of $t.media){const mi=new Map;"video"===wi.Nk&&li<an.video.length&&(Pl(mi,wi.attributes,an.video[li],zt),li++),"application"===wi.Nk&&wl(mi,wi),Qn.media.push({Nk:wi.Nk,xk:wi.xk,attributes:mi})}return Qn.Rk.set("general.turnInfo",null!==(kn=$t.Rk.get("general.turnInfo"))&&void 0!==kn?kn:""),Qn.Rk.set("general.iceTransportPolicy",null!==(yn=$t.Rk.get("general.iceTransportPolicy"))&&void 0!==yn?yn:""),Qn}(we,he,pt);return Xa(null!==(an=null===($t=Hn.ko.nvscClientConfigFields)||void 0===$t?void 0:$t.join("\n"))&&void 0!==an?an:"",wt,we,"remoteconfig"),Xa(ze,wt,we,"server"),Hn.isInternalUser&&!Xa(Hn.clientConfigOverride,wt,we,"client")?{error:3237093917}:function($t,an){let zt=!0;const mn=(mi,Bi)=>{const qi=mi.get(Bi);if(qi){const sr=parseInt(qi);if(!Number.isNaN(sr))return sr}return l.Log.e("{eb7c2d0}","{0a60213}",Bi),zt=!1,0},kn=(mi,Bi)=>mn(mi,Bi)>0,yn=(mi,Bi)=>{const qi=mi.get(Bi);if(qi)try{return BigInt(qi)}catch{l.Log.e("{eb7c2d0}","{66a68eb}",qi)}return l.Log.e("{eb7c2d0}","{0a60213}",Bi),zt=!1,BigInt(0)};$t.lP=mn(an.Rk,"general.clientCapture");let Qn=0;for(const mi of an.media){if("video"===mi.Nk&&Qn<$t.video.length){const Bi=$t.video[Qn],qi=mi.attributes;Bi.bk=mn(qi,"video.clientViewportWd"),Bi.kk=mn(qi,"video.clientViewportHt"),Bi.yk=mn(qi,"video.maxFPS"),Bi.Ck=mn(qi,"video.initialBitrateKbps"),Bi.Ek=mn(qi,"video.initialPeakBitrateKbps"),Bi.Ik=mn(qi,"vqos.bw.maximumBitrateKbps"),Bi.Mk=mn(qi,"vqos.bw.minimumBitrateKbps"),Bi.Tk=kn(qi,"video.mapRtpTimestampsToFrames"),Bi.Pk=mn(qi,"video.dynamicRangeMode"),Bi.bitDepth=mn(qi,"video.bitDepth"),Qn++}"application"===mi.Nk&&($t.TD.MD=mn(mi.attributes,"ri.partialReliableThresholdMs"),$t.TD.PD=mn(mi.attributes,"ri.hidDeviceMask"),$t.TD.rc=mn(mi.attributes,"ri.enablePartiallyReliableTransferGamepad"),$t.TD.ac=yn(mi.attributes,"ri.enablePartiallyReliableTransferHid"))}let li=an.Rk.get("general.turnInfo"),wi=an.Rk.get("general.iceTransportPolicy");return li.length&&wi.length&&(l.Log.i("{eb7c2d0}","{3cd9339}",li.split("|").map(mi=>{const[Bi,qi,,sr]=mi.split(",");return`${Bi} (${sr})`}).join(" | ")),l.Log.i("{eb7c2d0}","{f32ebdb}",wi),$t.yN=function(mi,Bi){const qi=[];for(const sr of mi.split("|")){const[Ar,Vr,Br]=sr.split(",").map(Xo=>Xo.trim());Ar&&Vr&&Br?qi.push({urls:Ar,username:Vr,credential:Br}):l.Log.w("{eb7c2d0}","{d516cac}",sr)}return{iceServers:qi,iceTransportPolicy:"0"==Bi?"all":"relay"}}(li,wi)),zt}(he,wt)?{config:he,YN:al(wt,we)}:{error:3237093918};var $t,an}(this.dP,h,b,this.Rs);return ee.config&&ee.YN?this.dP=ee.config:this.xR({code:null!==(k=ee.error)&&void 0!==k?k:3237093910}),ee.YN}Xp(h){var b,k;null===(b=this.wD)||void 0===b||b.Xp(h),window.setTimeout(()=>this.uv()),null===(k=this.tg)||void 0===k||k.Xp(h)}uv(){var h,b;this.RD||window.requestAnimationFrame(this.PR),null===(h=this.tg)||void 0===h||h.uv(),null===(b=this.wD)||void 0===b||b.uv()}toggleOnScreenStats(h=!1,b){Hn.isInternalUser&&(this.XN()?this.wD.toggleOnScreenStats(h,b):this.Km("Stats is OFF. Please enable by ctrl+alt+F5/F6"))}Om(){if(this.XN())return this.wD.Om()}Zw(){this.FD?(this.Jy.stopProfiling(),this.FD=!1,this.jN(),this.Km("Profiler: OFF, Stats: OFF")):(this.cN(),this.JN(),this.Km("Profiler: ON, Stats: ON"))}tS(){this.XN()?(this.jN(),this.Km("Stats: OFF")):(this.JN(),this.Km("Stats: ON"))}sS(){var h;null===(h=this.wD)||void 0===h||h.sS(0),this.Km("User marker added")}eS(){this.AN({videoQualitySnapshot:{}})}XN(){var h;return!(null===(h=this.wD)||void 0===h||!h.isEnabled())}JN(){var h;null===(h=this.wD)||void 0===h||h.OT()}jN(){var h;null===(h=this.wD)||void 0===h||h.NT()}bN(h,b){const k=JSON.stringify(b),ee={peer_msg:{from:this.id,to:h,msg:k},ackid:this.yM.uo()};l.Log.d("{93c7910}","{7ecb902}",h,k.length,ct(De(JSON.stringify(ee)))),this.UR?this.UR.send(ee):this.Jy.BM(ee)}lM(){return this.wD?this.wD.lM():0}Vy(h){var b,k;let ee=null===(b=this.wD)||void 0===b?void 0:b.Vy(h);return void 0!==ee&&"UNKNOWN"!==ee||(ee=null===(k=this.dP.video[h])||void 0===k?void 0:k.Dk),ee}toggleUserInput(h,b){this.tg?this.tg.toggleUserInput(h,b):l.Log.e("{93c7910}","{5a0e299}",h)}toggleRsdmm(h){var b;null===(b=this.tg)||void 0===b||b.toggleRsdmm(h)}Km(h){this.kR.innerHTML=h,this.kR.style.display="block",this.OD&&clearTimeout(this.OD),this.OD=window.setTimeout(()=>{this.kR.style.display="none"},1e3)}cN(){this.Jy.startProfiling({stats:{from:this.id,to:this.DD}}),this.FD=!0}static $N(h,b){const k=pe(h);for(let ee=0;ee<k.length&&ee<b.length;ee++){const he=k[ee],we="b=AS:"+b[ee].max;let ze=he.lines.length;for(const[pt,wt]of he.lines.entries())if(!(wt.startsWith("m=")||wt.startsWith("i=")||wt.startsWith("c="))){if(wt.startsWith("b=")){l.Log.d("{93c7910}","{e77177e}",pt),he.lines[pt]=we,ze=-1;break}ze=pt;break}-1!==ze&&(l.Log.d("{93c7910}","{3dfc348}",ze),he.lines.splice(ze,0,we))}}static WN(h){const b=h.BN.find(an=>{var zt;return null===(zt=an.lines[0])||void 0===zt?void 0:zt.startsWith("m=audio")});if(!b)return;let k,ee,he,we;for(const[an,zt]of b.VN)"multiopus"===zt.codec?(k=an,he=zt.channels,l.Log.i("{93c7910}","{898cad9}",k,he)):"red"===zt.codec&&(ee=an,we=zt.channels,l.Log.i("{93c7910}","{8c08358}",ee,we));if(!k)return void l.Log.d("{93c7910}","{b49e215}");let ze=[],pt=[],wt="";const $t=/^a=(?:rtpmap|rtcp-fb|fmtp):([0-9]+)/;for(const an of b.lines){const zt=an.match($t);if(!zt)continue;const mn=zt[1];mn===k?(ze.push(an),an.includes("fmtp")&&(wt=an.split(" ")[1])):mn===ee&&pt.push(an)}return{ZN:ee,tx:k,ix:pt,sx:ze,nx:he??"",hx:we??"",ox:wt}}static _N(h,b){const k=h.BN.find(we=>{var ze;return null===(ze=we.lines[0])||void 0===ze?void 0:ze.startsWith("m=audio")});if(!k)return;if(b.hx&&b.hx!==b.nx){l.Log.w("{93c7910}","{ad53601}",b.hx,b.nx);const we=k.lines[0].split(" ");for(let pt=3;pt<we.length;++pt)if(we[pt]===b.ZN){we.splice(pt,1);break}k.lines[0]=we.join(" ");const ze=/^a=(?:rtpmap|rtcp-fb|fmtp):([0-9]+)/;k.lines=k.lines.filter(pt=>{const wt=pt.match(ze);return!wt||wt[1]!==b.ZN})}const ee=/^a=rtpmap:([0-9]+)/,he=/^a=fmtp:([0-9]+)/;for(const[we,ze]of k.lines.entries()){const pt=ze.match(ee);if(pt){const $t=pt[1];$t===b.tx?k.lines[we]=Nt(ze,"opus","2"):$t===b.ZN&&(k.lines[we]=Nt(ze,void 0,"2"))}const wt=ze.match(he);if(wt&&wt[1]===b.tx){const $t=ze.split(" "),an=$t[1].split(";").filter(zt=>!zt.startsWith("channel_mapping")&&!zt.startsWith("num_streams")&&!zt.startsWith("coupled_streams"));k.lines[we]=$t[0]+" "+an.join(";")}}}static QN(h,b){const k=h.BN.find(we=>{var ze;return null===(ze=we.lines[0])||void 0===ze?void 0:ze.startsWith("m=audio")});if(!k)return;const ee=/^a=rtpmap:([0-9]+)/,he=/^a=fmtp:([0-9]+)/;for(const[we,ze]of k.lines.entries()){const pt=ze.match(ee);if(pt){const $t=pt[1];$t===b.tx?k.lines[we]=Nt(ze,"multiopus",b.nx):$t===b.ZN&&(k.lines[we]=Nt(ze,void 0,b.hx))}const wt=ze.match(he);if(wt&&wt[1]===b.tx){const $t=ze.split(" ");k.lines[we]=$t[0]+" "+b.ox}}}static KN(h){var b,k;const ee=/^a=fmtp:([0-9]+)/;for(const he of h.BN)if(null!==(b=he.lines[0])&&void 0!==b&&b.startsWith("m=audio"))for(const[we,ze]of he.lines.entries()){const pt=ze.match(ee);pt&&"opus"===(null===(k=he.VN.get(pt[1]))||void 0===k?void 0:k.codec)&&(he.lines[we]=ze+";stereo=1",l.Log.d("{93c7910}","{6540768}",he.lines[we]))}}static GN(h,b){var k;const ee=pe(h);for(let he=0;he<ee.length&&he<b.length;he++){const we=ee[he],ze=b[he];if(we.lines.some(pt=>pt.startsWith("a=imageattr")))l.Log.d("{93c7910}","{b38bf22}");else for(const[pt,wt]of we.lines.entries())if(wt.startsWith("a=rtpmap:")){const $t=wt.slice(9,wt.indexOf(" ")),an=null===(k=we.VN.get($t))||void 0===k?void 0:k.codec;"H264"!==an&&"H265"!==an&&"AV1"!==an||(we.lines[pt]=wt+`\r\na=imageattr:${$t} send [x=[${ze.minWidth}:${ze.maxWidth}],y=[${ze.minHeight}:${ze.maxHeight}],fps=[${ze.HN}:${ze.yk}]]`)}}}static zN(h,b){var k;const ee=pe(h);for(let he=0;he<ee.length&&he<b.length;he++){const we=ee[he],ze=b[he];let pt="";pt+=";x-google-max-bitrate="+ze.max,pt+=";x-google-min-bitrate="+ze.min,pt+=";x-google-start-bitrate="+ze.qN;const wt=/^a=fmtp:([0-9]+)/;for(const[$t,an]of we.lines.entries()){const zt=an.match(wt);zt&&"H264"===(null===(k=we.VN.get(zt[1]))||void 0===k?void 0:k.codec)&&(we.lines[$t]+=pt)}}}static LN(h,b,k){const ee=pe(h);for(let he=0;he<k.length;he++){const we=ee[he],ze=k[he];let pt;if(we){const wt=new Set;for(const $t of we.VN.values()){const an=$t.codec;"H264"!==an&&"H265"!==an&&"AV1"!==an||wt.add(an)}for(const $t of b)if(wt.has($t)){l.Log.i("{93c7910}","{304c3b1}",$t),pt=$t;break}}void 0!==pt?ze.Dk=pt:(l.Log.i("{93c7910}","{81357e4}"),ze.Dk="H264")}}getVirtualGamepadHandler(){var h;return null===(h=this.tg)||void 0===h?void 0:h.getVirtualGamepadHandler()}oM(){var h,b,k,ee,he,we,ze,pt,wt,$t,an,zt;return{py:null!==(b=null===(h=this.ID[0])||void 0===h?void 0:h.paused)&&void 0!==b&&b,my:null!==(ee=null===(k=this.Sb)||void 0===k?void 0:k.paused)&&void 0!==ee&&ee,Tm:null!==(we=null===(he=this.tg)||void 0===he?void 0:he.Tm())&&void 0!==we&&we,sg:null!==(pt=null===(ze=this.tg)||void 0===ze?void 0:ze.ES())&&void 0!==pt&&pt,gy:this.CD.getMicState(),fS:null!==($t=null===(wt=this.tg)||void 0===wt?void 0:wt.fS())&&void 0!==$t&&$t,keyboardLayout:this.keyboardLayout,appLaunchMode:this.appLaunchMode,inputMode:null!==(zt=null===(an=this.tg)||void 0===an?void 0:an.NS())&&void 0!==zt?zt:""}}iS(){this.perfIndicator=!this.perfIndicator,this.AN({perfIndicator:{on:this.perfIndicator}})}toggleStutterIndicator(h){this.stutterIndicator=h??!this.stutterIndicator,this.AN({stutterIndicator:{on:this.stutterIndicator}})}Qw(){this._D^=1,this.AN({riDeviceOverlay:{bitmap:this._D}})}ER(){var h;null===(h=this.tg)||void 0===h||h.Fw()}Kw(){var h;return!(null===(h=this.ED)||void 0===h||!h.lx())&&(this.AN({latencyTrigger:!0}),!0)}Xw(){var h;null!==(h=this.ED)&&void 0!==h&&h.ux()&&this.AN({pcmDumpTrigger:!0})}Jp(){var h;null===(h=this.ED)||void 0===h||h.Ax()}Yw(){this.sendCustomMessage({messageType:"GpuViewStartRequest",messageRecipient:"GPUViewTraceControl",data:"GpuView"}),l.Log.i("{93c7910}","{0915cd3}")}sendTextInput(h){var b;null===(b=this.tg)||void 0===b||b.sendTextInput(h)}sendBulkPayload(h,b){var k;null===(k=this.tg)||void 0===k||k.nl(h,b)}setVirtualKeyboardState(h){var b;null===(b=this.tg)||void 0===b||b.setVirtualKeyboardState(h)}setVideoTransforms(h,b,k){var ee;null===(ee=this.tg)||void 0===ee||ee.Ag(h,b,k)}sendCustomMessage(h){const b={customMessage:JSON.stringify(h)};this.AN(b)}setStreamingMaxBitrate(h,b,k){k||(this.AN({setMaxBitrate:{streamIndex:h,maxBitrate:b}}),l.Log.d("{93c7910}","{6bbc1a2}",b))}setDrcDfcState(h,b,k){k||(this.AN({setDrcState:{streamIndex:h,state:!!(1&b)}}),this.AN({setDfcState:{streamIndex:h,state:!!(2&b)}}),l.Log.d("{93c7910}","{0ed76f3}",b))}startInputPlayback(h){var b;null===(b=this.tg)||void 0===b||b.startInputPlayback(h)}aM(h){this.AN({etwPrint:h})}CN(h,b){this.AN({etwPrintPair:{key:h,value:b}})}vx(h,b,k){const ee=b?.error;this.RD||this.telemetry.Ke("ChannelError",h,ee?.name,ee?.message,k?.toString()),l.Log.e("{93c7910}","{db7ae96}",h,ee?.name,ee?.message)}zT(){this.Jy.UM(this.tc.bufferedAmount,this.yg.Av()),this.yg.vv()}sendKeyEvent(h){var b;null===(b=this.tg)||void 0===b||b.sendKeyEvent(h)}Ic(h){this.Xd.onBulkPayload&&this.Xd.onBulkPayload(h)}DN(){this.qD.length>0&&"connecting"!==on(this.XR)&&"connecting"!==on(this.YR)&&"connecting"!==on(this.tc)&&(!this.sc||"connecting"!==on(this.sc))&&15859712===this.QR()&&this.xR()}PN(h){let b=function(k){let ee;const he=k.getAudioTracks();return he.length&&(ee=he[0]),ee}(h);b&&(b.onunmute=()=>{this.WD=!1})}setKeyboardLayout(h){this.keyboardLayout=h,this.tg?(this.sendCustomMessage({messageType:"kbLayout",messageRecipient:"KBLayoutChange",data:h}),this.tg.setKeyboardLayout(h)):this.sR=!0}RR(){l.Log.d("{93c7910}","{440d709}",this.vr.yd(),performance.timeOrigin)}mT(h,b){const k=h.label;let ee=!1;h.onopen=()=>{var he;l.Log.d("{93c7910}","{8e9ee5d}",k),null===(he=b.open)||void 0===he||he.call(b),b.errorCode&&this.DN()},h.onclosing=()=>{l.Log.d("{93c7910}","{d0c8ae7}",k),ee=!0},h.onclose=()=>{var he;l.Log.d("{93c7910}","{a3c9826}",k),null===(he=b.close)||void 0===he||he.call(b),b.errorCode&&this.jR()},h.onerror=he=>{l.Log.e("{93c7910}","{fcd64bb}",k),ee&&b.errorCode?this.JR():(this.vx(k,he,h.bufferedAmount),b.errorCode&&this.VR(b.errorCode))}}EN(){var h,b;let k=0;this.pf.nm()&&(k|=2),this.pf.hD()&&(k|=1),this.pf._m()&&(k|=16);for(let ee=0;ee<this.dP.video.length;ee++){const he=null!==(b=null===(h=this.wD)||void 0===h?void 0:h.gI(ee))&&void 0!==b?b:0,we={windowState:{streamIndex:ee,frameNumber:he,windowStateFlags:k}};l.Log.i("{93c7910}","{ca317d5}",k.toString(16),he),this.AN(we)}}TN(){var h,b,k;let ee=0;this.pf.oD()&&(ee|=4),this.pf.rD()&&(ee|=1),null===(h=this.wD)||void 0===h||h.dE(ee);for(let he=0;he<this.dP.video.length;he++){const we=null!==(k=null===(b=this.wD)||void 0===b?void 0:b.gI(he))&&void 0!==k?k:0;this.AN({systemState:{streamIndex:he,frameNumber:we,systemStateFlags:ee}}),l.Log.i("{93c7910}","{455ccc0}",ee.toString(16),we)}}MN(){var h,b,k;const ee=this.pf.aD();if(-1!=ee){null===(h=this.wD)||void 0===h||h.AE(ee);for(let he=0;he<this.dP.video.length;he++){const we=null!==(k=null===(b=this.wD)||void 0===b?void 0:b.gI(he))&&void 0!==k?k:0;this.AN({cpuUsage:{streamIndex:he,frameNumber:we,procCpuUsage:0,totalCpuUsage:ee}}),l.Log.i("{93c7910}","{9bb3298}",ee.toString(),we)}}}oR(){this.XN()?this.EN():l.Log.w("{93c7910}","{76bcede}")}aR(){this.XN()?this.TN():l.Log.w("{93c7910}","{20ab5a1}")}cR(){this.XN()?this.MN():l.Log.w("{93c7910}","{7b1f129}")}KP(h){var b;this.XN()?null===(b=this.wD)||void 0===b||b.cE(h):l.Log.w("{93c7910}","{1b4b74e}")}rE(h){var b;return null===(b=this.wD)||void 0===b?void 0:b.rE(h)}}function Ye(x){const h=mt.cD(x);let b={xN:[],BN:[]};const k=new RegExp("^a=rtpmap:([0-9]+) ([^/]+)/([0-9]+)(?:/([0-9]+))?","gm");for(const ee of h)if(ee.startsWith("m=")){const he=new Map;for(const ze of ee.matchAll(k))he.set(ze[1],{codec:ze[2],clockRate:ze[3],channels:ze[4]});const we={lines:mt.dD(ee),VN:he};b.BN.push(we)}else b.xN=mt.dD(ee);return b}function gt(x){return[...x.xN,...x.BN.flatMap(h=>h.lines)].join("\r\n")+"\r\n"}function Nt(x,h,b){const k=x.split(" "),ee=k[1].split("/");return h&&(ee[0]=h),b&&(ee[2]=b),k[0]+" "+ee.join("/")}function on(x){var h;return null!==(h=x?.readyState)&&void 0!==h?h:"connecting"}function ct(x){return(x=x.replace(/((ice-pwd|ufrag)(:|\s))((?!(\\|\s)).)*/g,"$1***")).replace(/(turn:[^,]+,[^,]+),[^,]+/g,"$1,***")}function De(x){const h=new RegExp('(candidate:[^"\\r\\n\\\\]+)(\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\b)',"g");let b="";for(;b!==x;)b=x,x=x.replace(h,"$1***");return x}function pe(x){return x.BN.filter(h=>{var b;return null===(b=h.lines[0])||void 0===b?void 0:b.startsWith("m=video")})}class Ge{constructor(h,b){this.mx=window.indexedDB,this.version=2,this.gx=!1,this.wx=!1,this.name=h,this.Sx=b}open(){return new Promise((h,b)=>{try{if(this.mx){let k=this.mx.open(this.name,this.version);k.onerror=ee=>{b(cn(18,`${this.name} db opening failed`,k.error))},k.onsuccess=ee=>{this.bx(k.result),h()},k.onupgradeneeded=ee=>{l.Log.i("{10dc2cc}","{1f70767}",ee.oldVersion,ee.newVersion),this.bx(k.result);const he=we=>{var ze;const pt=null===(ze=this.kx)||void 0===ze?void 0:ze.createObjectStore(we.yx,we.Ix);we.Ix.keyPath&&pt?.createIndex(we.Cx,we.Ix.keyPath,{unique:!0})};switch(ee.oldVersion){case 0:he(this.Sx[0]);case 1:he(this.Sx[1])}},k.onblocked=ee=>{b(cn(19,`${this.name} db blocked during opening`,k.error))}}else b(cn(17,"Indexdb object not found"))}catch(k){b(cn(20,"Unexpected Exception in open",k))}})}Ex(){if(!this.mx)return cn(17,"Indexdb object not found");if(!this.kx)return cn(1,"Db not yet open");if(this.gx){const h="hidden"===document.visibilityState;return cn(2,"Db is closing, unexpectedly: "+this.wx+", visibility state hidden: "+h)}}get(h,b){const k=this.Ex();return k?Promise.reject(k):new Promise((ee,he)=>{try{const we=this.kx.transaction(h,"readonly"),ze=we.objectStore(h);we.oncomplete=wt=>{l.Log.i("{10dc2cc}","{82638ba}")};const pt=ze.get(b);pt.onsuccess=()=>{ee(pt.result)},pt.onerror=wt=>{he(cn(32,"get method failed",we.error))}}catch(we){he(cn(33,"Unexpected Exception happened in get",we))}})}set(h,b){const k=this.Ex();return k?Promise.reject(k):new Promise((ee,he)=>{try{const we=this.kx.transaction(h,"readwrite"),ze=we.objectStore(h);we.oncomplete=wt=>{l.Log.i("{10dc2cc}","{f993875}")};const pt=ze.put(b);pt.onsuccess=()=>{ee()},pt.onerror=wt=>{he(cn(48,"put method failed",we.error))}}catch(we){he(cn(49,"Unexpected Exception happened in set",we))}})}delete(h,b){const k=this.Ex();return k?Promise.reject(k):new Promise((ee,he)=>{try{const we=this.kx.transaction(h,"readwrite"),ze=we.objectStore(h);we.oncomplete=wt=>{l.Log.i("{10dc2cc}","{bc32bd7}")};const pt=ze.delete(b);pt.onsuccess=()=>{ee()},pt.onerror=wt=>{he(cn(64,"delete method failed",we.error))}}catch(we){he(cn(65,"Unexpected Exception in delete",we))}})}clear(h){const b=this.Ex();return b?Promise.reject(b):new Promise((k,ee)=>{try{const he=this.kx.transaction(h,"readwrite"),we=he.objectStore(h);he.oncomplete=pt=>{l.Log.i("{10dc2cc}","{30f23d1}")};const ze=we.clear();ze.onsuccess=()=>{k()},ze.onerror=pt=>{ee(cn(80,"clear method failed)",he.error))}}catch(he){ee(cn(81,"Unexpected Exception happened in clear",he))}})}getAll(h){const b=this.Ex();return b?Promise.reject(b):new Promise((k,ee)=>{try{const he=this.kx.transaction(h,"readonly"),we=he.objectStore(h);he.oncomplete=pt=>{l.Log.i("{10dc2cc}","{59d1f78}")};const ze=we.getAll();ze.onsuccess=()=>{k(ze.result)},ze.onerror=pt=>{ee(cn(96,"getAll method failed",he.error))}}catch(he){ee(cn(97,"Unexpected Exception in getAll",he))}})}close(){var h;this.gx=!0,null===(h=this.kx)||void 0===h||h.close()}bx(h){this.gx=!1,this.wx=!1,this.kx=h,this.kx.onversionchange=b=>{l.Log.w("{10dc2cc}","{65276d8}"),this.close(),this.kx=void 0},this.kx.onclose=b=>{l.Log.w("{10dc2cc}","{342f7f8}"),this.gx=!0,this.wx=!0}}}const xt=new class{constructor(){var x;this.Tx=new Map([["Ethernet",l.NetworkType.ETHERNET],["5GHz_WiFi",l.NetworkType.WIFI_5_0],["2.4GHz_WiFi",l.NetworkType.WIFI_2_4],["Others",l.NetworkType.OTHER],["disconnected",l.NetworkType.UNKNOWN],["wifi",l.NetworkType.WIFI],["ethernet",l.NetworkType.ETHERNET],["none",l.NetworkType.UNKNOWN],["bluetooth",l.NetworkType.BLUETOOTH],["wimax",l.NetworkType.WIMAX],["other",l.NetworkType.OTHER],["mobile",l.NetworkType.MOBILE],["unknown",l.NetworkType.UNKNOWN],["NONE",l.NetworkType.UNKNOWN],["UNKNOWN",l.NetworkType.UNKNOWN],["ETHERNET",l.NetworkType.ETHERNET],["WIFI",l.NetworkType.WIFI],["NET_PROXY",l.NetworkType.OTHER],["2G",l.NetworkType.MOBILE_2G],["2.5G",l.NetworkType.MOBILE_2G],["3G",l.NetworkType.MOBILE_3G],["4G",l.NetworkType.MOBILE_4G]]),this.Mx=l.NetworkType.UNKNOWN,this.Px=[],window.addEventListener("GFNNetworkInfo",b=>{const k=b;l.Log.d("{aac1655}","{2925c9d}",k.detail.state),this.Dx(k.detail.state)});const h=navigator.connection;if(h?.type&&(this.Dx(h.type),h.addEventListener("change",b=>{var k;const ee=null===(k=navigator.connection)||void 0===k?void 0:k.type;ee&&(l.Log.d("{aac1655}","{4a9e05b}",ee),this.Dx(ee))})),null===(x=window.tizen)||void 0===x?void 0:x.systeminfo){const b="NETWORK",k=ee=>{const he=ee.networkType;he&&(l.Log.d("{aac1655}","{e9b5f27}",he),this.Dx(he))};try{window.tizen.systeminfo.getPropertyValue(b,k),window.tizen.systeminfo.addPropertyValueChangeListener(b,k)}catch(ee){l.Log.w("{aac1655}","{7d035ae}",ee)}}}Dx(x){const h=this.Tx.get(x);if(h){this.Mx=h;for(const b of this.Px)b(this.getCurrentNetworkType())}else l.Log.d("{aac1655}","{1e3c13d}",x)}registerCallback(x){this.Px.push(x)}unregisterCallback(x){const h=this.Px.findIndex(b=>b==x);-1!==h&&this.Px.splice(h,1)}getCurrentNetworkType(){return this.Mx}},sn="exit-events",En="telemetry-events";class Un{constructor(){this.Rx={userId:"",sessionId:"",eventPayload:void 0,name:""},this.Nx={},this.xx=!1,this.Ox=!1,this.Bx=!1,this.Fx=!1,this.Lx="",this.Ux="",this.HM=[],this.Gx=!1,this.Hx=new Ge("ragnarok",[{yx:sn,Ix:{keyPath:["userId","sessionId","name"]},Cx:"exit-event-index"},{yx:En,Ix:{keyPath:["userId","sessionId","name","eventPayload.ts"]},Cx:"telemetry-event-index"}]),this.Vx=this.Hx.open().catch(b=>{this.Gx=!0,this.Wx(b,"TelemetryEventProcessorConstruction",!0)})}_x(h){this.qx=h}$x(h){let b=!1;return this.Nx.commonData&&(h!==l.GdprLevel.FUNCTIONAL||"Full"!==this.Nx.commonData.deviceGdprFuncOptIn&&"Temp"!==this.Nx.commonData.deviceGdprFuncOptIn?(h===l.GdprLevel.TECHNICAL&&"Full"===this.Nx.commonData.gdprTechOptIn||h===l.GdprLevel.BEHAVIORAL&&"Full"===this.Nx.commonData.gdprBehOptIn)&&(b=!0):b=!0),b}zx(h){this.Nx.commonData?this.$x(h.gdprLevel)&&(window.navigator.onLine?this.Kx(this.Qx(h)):this.Yx({userId:this.Nx.commonData.userId,sessionId:this.Nx.commonData.sessionId,name:h.name,eventPayload:h})):this.HM.push(h)}Qx(h){let b={};if(!this.Nx.commonData)return b;const k={name:h.name,ts:h.ts,parameters:h.parameters};this.Xx(b,this.Nx);const ee=b.commonData;return ee.clientId=h.clientConfig.clientId,ee.eventSchemaVer=h.clientConfig.eventSchemaVer,ee.sentTs=(new Date).toISOString(),ee.events=[k],b}Kx(h){var b,k,ee,he;if(null!==(b=h.config)&&void 0!==b&&b.server&&null!==(k=h.config)&&void 0!==k&&k.version){const we={method:"POST",headers:{"Content-Type":"application/json","X-Event-Protocol":null!==(he=null===(ee=h.commonData)||void 0===ee?void 0:ee.eventProtocol)&&void 0!==he?he:"1.5"},body:JSON.stringify(h.commonData),retryCount:3,timeout:2e3};l.Log.i("{f7c1592}","{056661f}",we.body),l.performHttpRequest(this.jx(h.config),we).then(ze=>{}).catch(ze=>{})}}Jx(h,b){this.Ux=h,this.Lx=b}Zx(h){var b;l.Log.d("{f7c1592}","{01dcfe5}",null===(b=h.parameters)||void 0===b?void 0:b.sessionId),this.tO(h),this.iO(this.Qx(this.Rx.eventPayload))}sO(h){l.Log.d("{f7c1592}","{badefed}",h),this.eO(h),this.Rx.eventPayload=void 0}Xx(h,b){h.commonData=b.commonData?Object.assign({},b.commonData):void 0,h.experiments=[],h.config=b.config,h.telemetryEventIds=b.telemetryEventIds}updateEventDataElements(h){var b;if(this.Xx(this.Nx,h),this.Nx.commonData){l.Log.d("{f7c1592}","{66f209c}");for(let k of this.HM)this.zx(k);this.HM=[]}this.Rx.userId=null===(b=this.Nx.commonData)||void 0===b?void 0:b.userId}tO(h){var b,k,ee;this.Rx.userId=null!==(k=null===(b=this.Nx.commonData)||void 0===b?void 0:b.userId)&&void 0!==k?k:"",this.Rx.sessionId=null!==(ee=h.parameters.sessionId)&&void 0!==ee?ee:"",this.Rx.name=h.name,this.Rx.eventPayload=h}nO(h,b,k,ee,he,we,ze,pt){const $t=this.hO({exitErrorCode:h,sessionId:b,subSessionId:k,zoneAddress:ee,streamDuration:he,frameCount:we,codec:ze,isResume:pt,sleep:!1,networkTestSessionId:""});return this.tO($t),$t}hO(h){var b;const k=new Ia({zoneAddress:h.zoneAddress,networkSessionId:null!==(b=h.networkTestSessionId)&&void 0!==b?b:"",sessionId:h.sessionId,subSessionId:h.subSessionId,resumeType:In(h.isResume),overrideConfigType:Hn.xn.type,overrideConfigVersion:Hn.xn.version,exitReason:ri(h.connectivityInfo,h.sleep),result:h.exitErrorCode,frameCount:h.frameCount,codec:va(h.codec),ipVersion:"UNKNOWN",streamDuration:Math.round(h.streamDuration),networkType:An(xt.getCurrentNetworkType()),streamingProfileGuid:this.oO(),systemInfoGuid:this.rO(),cmsId:String(this.Ux)});return{name:k.name,gdprLevel:k.gdprLevel,parameters:k.parameters,ts:k.ts,clientConfig:Zs}}Wx(h,b,k){var ee,he,we,ze;if(l.Log.e("{f7c1592}","{146ec91}",b,Ae(h.code),h.description),k){const pt=null!==(we=null!==(he=null===(ee=h.error)||void 0===ee?void 0:ee.message)&&void 0!==he?he:h.description)&&void 0!==we?we:`Exception in ${b}`;this.qx?this.qx(h.error,pt,"telemetryeventprocessor.ts",h.code,0,!0,null===(ze=h.error)||void 0===ze?void 0:ze.name):l.Log.w("{f7c1592}","{12e0846}")}}aO(h){return!!h.userId&&!!h.sessionId&&!!h.name}Yx(h){!this.Gx&&this.aO(h)&&this.Vx.then(()=>this.Hx.set(En,h)).then(()=>{l.Log.i("{f7c1592}","{f03d70b}")}).catch(b=>{const k=!this.Bx;this.Bx=!0,this.Wx(b,"cacheTelemetryEventInDb",k)})}dO(){return this.Gx||!this.aO(this.Rx)?Promise.resolve():this.Vx.then(()=>this.Hx.set(sn,this.Rx)).then(()=>{l.Log.i("{f7c1592}","{5d026f8}")}).catch(h=>{this.Wx(h,"cacheExitEventInDb",!this.xx),this.xx||(this.xx=!0)})}jx(h){return h.server+"/"+h.version+"/events/json"}iO(h){var b,k;if(null!==(b=h.config)&&void 0!==b&&b.server&&null!==(k=h.config)&&void 0!==k&&k.version&&h.experiments){h.commonData&&(h.commonData.sentTs=(new Date).toISOString());const ee=JSON.stringify(h.commonData),he=new Blob([ee],{type:"text/plain"});let we=!1;we=navigator.sendBeacon(this.jx(h.config),he),l.Log.i("{f7c1592}","{b9367c5}",we,ee)}}eO(h){this.Gx||h&&this.Vx.then(()=>this.Hx.clear(sn)).then(()=>{l.Log.i("{f7c1592}","{1b8f127}")}).catch(b=>{this.Wx(b,"clearExitEventStoreInDb",!this.Ox),this.Ox||(this.Ox=!0)})}cO(){return this.Gx?Promise.resolve([]):this.Vx.then(()=>this.Hx.getAll(sn)).then(h=>{l.Log.i("{f7c1592}","{d938300}",h.length);let b=[];if(h.length>0)for(const k of h)k.eventPayload&&b.push(k.eventPayload);return b}).catch(h=>(this.Wx(h,"getCachedExitEvents",!0),Promise.reject()))}lO(h){return this.Gx?Promise.resolve():this.Vx.then(()=>this.Hx.getAll(sn)).then(b=>{if(l.Log.i("{f7c1592}","{ca568ff}",b.length),b.length>0){for(const k of b)k.eventPayload&&this.iO(this.Qx(k.eventPayload));this.sO(h)}}).catch(b=>{this.Wx(b,"sendCachedExitEvent",!0)})}uO(){this.Gx||this.Vx.then(()=>this.Hx.clear(En)).then(()=>{l.Log.i("{f7c1592}","{8f62936}")}).catch(h=>{this.Wx(h,"clearEventStoreInDb",!this.Fx),this.Fx||(this.Fx=!0)})}AO(){this.Gx||window.navigator.onLine&&this.Vx.then(()=>this.Hx.getAll(En)).then(h=>{if(l.Log.i("{f7c1592}","{d4e574c}",h.length),h.length>0){this.uO();for(const b of h)b.eventPayload&&this.zx(b.eventPayload)}}).catch(h=>{l.Log.e("{f7c1592}","{aaaa3de}",h.code,h.description)})}vO(h,b){this.xx=!1,this.Ox=!1,this.Bx=!1,this.Fx=!1}oO(){var h,b,k;return null!==(k=null===(b=null===(h=this.Nx)||void 0===h?void 0:h.telemetryEventIds)||void 0===b?void 0:b.streamingProfileGuid)&&void 0!==k?k:""}rO(){var h,b,k;return null!==(k=null===(b=null===(h=this.Nx)||void 0===h?void 0:h.telemetryEventIds)||void 0===b?void 0:b.systemInfoGuid)&&void 0!==k?k:""}fO(){return this.Ux}}function ri(x,h){var b;return h?"SleepExit":null!==(b=x?.description)&&void 0!==b?b:"undefined"}class Mi{constructor(){this.sessionId="",this.subSessionId="",this.cmsId="",this.isResume=!1,this.zoneAddress="",this.pO=0,this.Ln=new Map,this.Un=0,this.mO=0,this.gO=0,this.wO=l.TelemetryModule.createTelemetryProvider(Zs)}SO(h,b,k,ee,he){this.subSessionId=h,this.sessionId=b,this.cmsId=k,this.isResume=ee,this.zoneAddress=he}bO(){this.subSessionId="",this.sessionId="",this.cmsId="",this.isResume=!1,this.zoneAddress="",this.pO=0,this.Ln.clear(),this.Un=0}kO(h,b,k){var ee,he,we;const ze=l.TelemetryModule.getTelemetryEventIds(),pt=new js({zoneAddress:this.zoneAddress,networkSessionId:null!==(ee=ze.networkSessionId)&&void 0!==ee?ee:"",sessionId:this.sessionId,subSessionId:this.subSessionId,resumeType:In(this.isResume),overrideConfigType:Hn.xn.type,overrideConfigVersion:Hn.xn.version,result:b,codec:va(k),ipVersion:"UNKNOWN",launchDuration:Math.round(h),networkType:An(xt.getCurrentNetworkType()),streamingProfileGuid:null!==(he=ze.streamingProfileGuid)&&void 0!==he?he:"",systemInfoGuid:null!==(we=ze.systemInfoGuid)&&void 0!==we?we:"",cmsId:this.cmsId});this.processEvent(pt)}yO(h,b,k,ee,he,we){const ze=ri(he,we);this.nO(h,ze,b,k,ee),he.Pn?this.IO():l.Log.d("{9838627}","{30029be}",h,ze)}nO(h,b,k,ee,he){var we,ze,pt;const wt=l.TelemetryModule.getTelemetryEventIds(),$t=new Ia({zoneAddress:this.zoneAddress,sessionId:this.sessionId,subSessionId:this.subSessionId,resumeType:In(this.isResume),cmsId:this.cmsId,overrideConfigType:Hn.xn.type,overrideConfigVersion:Hn.xn.version,exitReason:b,result:h,frameCount:he,codec:va(ee),ipVersion:"UNKNOWN",streamDuration:Math.round(k),networkType:An(xt.getCurrentNetworkType()),streamingProfileGuid:null!==(we=wt.streamingProfileGuid)&&void 0!==we?we:"",systemInfoGuid:null!==(ze=wt.systemInfoGuid)&&void 0!==ze?ze:"",networkSessionId:null!==(pt=wt.networkSessionId)&&void 0!==pt?pt:""});this.mO=this.wO.cacheEvent($t,this.mO)}Ac(h,b,k,ee,he,we,ze){var pt;if(!this.zn(b))return;h instanceof DOMException&&(h={name:h.name,message:h.message});const wt=new Vt({filename:k,lineno:ee,stacktrace:null!==(pt=h?.stack)&&void 0!==pt?pt:"",colno:he,handled:tn(we),category:ze??"",message:b,moduleName:"RAGNAROK",sessionId:this.sessionId,subSessionId:this.subSessionId});this.processEvent(wt)}WR(h,b,k,ee,he,we){const ze=new Ti({retryCount:he,sessionId:this.sessionId,subSessionId:this.subSessionId,serverId:k,url:h,overrideConfigType:Hn.xn.type,overrideConfigVersion:Hn.xn.version,disconnectionReason:ee,cleanDisconnection:tn(we),networkType:An(xt.getCurrentNetworkType()),statusCode:b?b.toString():"",cmsId:this.fO(),moduleName:"RAGNAROK"});this.processEvent(ze)}CO(h,b,k,ee,he){const we=new to({featureName:h,supported:b?"SUPPORTED":"UNSUPPORTED",defaultEnabled:tn(k),enabled:tn(ee),reason:he,moduleName:"RAGNAROK",networkType:An(xt.getCurrentNetworkType()),overrideConfigType:Hn.xn.type,overrideConfigVersion:Hn.xn.version,sessionId:this.sessionId,subSessionId:this.subSessionId});this.processEvent(we)}Ke(h,b,k,ee,he){const we=new ot({key1:h??"",key2:b??"",key3:k??"",key4:ee??"",key5:he??"",moduleName:"RAGNAROK",networkType:An(xt.getCurrentNetworkType()),overrideConfigType:Hn.xn.type,overrideConfigVersion:Hn.xn.version,cmsId:this.fO(),sessionId:this.sessionId,subSessionId:this.subSessionId});this.processEvent(we)}Db(h,b,k,ee,he,we){const ze=new Sn({metricName:h,moduleName:"RAGNAROK",valueInt1:ee,valueInt2:he,valueInt3:we,valueString:b,valueDouble:k,networkType:An(xt.getCurrentNetworkType()),cmsId:this.fO(),sessionId:this.sessionId,subSessionId:this.subSessionId});this.processEvent(ze)}Ju(h,b,k,ee,he,we,ze,pt,wt){if(this.pO>=50)return;this.pO++;const $t=new Ds({deviceName:h,deviceType:"GAMEPAD",vendorId:b,productId:k,deviceIndex:ee,reportIndex:ze?0:ee,hapticsSupported:tn(he),hapticsFeedbackCount:we,state:pt,eventMapReceived:wt,eventMapProcessed:wt,sessionId:this.sessionId,subSessionId:this.subSessionId,cmsId:this.fO()});this.processEvent($t)}EO(h,b,k,ee,he,we){const ze=new Bn({eventSequence:k,sleepTime:h,error:ee,timeToSleep:b,moduleName:"RAGNAROK",cmsId:this.fO(),sessionId:he,subSessionId:we});this.processEvent(ze)}TO(h){if(!this.gO){this.IO();const b=()=>{const k=Ae(h.MO());this.nO(k,k,h.PO(),h.Vy(),h.gI())};b(),this.gO=window.setInterval(b,12e4)}}DO(){this.gO&&(window.clearInterval(this.gO),this.gO=0)}processEvent(h){this.wO.processEvent(h)}IO(){this.wO.processCachedEvent(this.mO),this.mO=0}zn(h){var b;if(this.Un>=50)return!1;const k=null!==(b=this.Ln.get(h))&&void 0!==b?b:0;return!(k>=10||(this.Un++,this.Ln.set(h,k+1),0))}fO(){return this.cmsId}}class Xi extends Mi{constructor(h,b){super(),this.Jh=h,this.RO=b,this.RO._x(this.Ac.bind(this))}NO(h){this.clientShutDownCallback=h}Qn(h){this.sessionId=h,this.pO=0}Yn(h){this.subSessionId=h,this.Ln.clear(),this.Un=0}Jx(h,b){this.RO.Jx(h,b)}xO(h,b,k,ee,he,we,ze,pt,wt){var $t,an;const zt=this.getTelemetryEventIds(),mn=new js({zoneAddress:ee,networkSessionId:wt,sessionId:h,subSessionId:b,resumeType:In(k),overrideConfigType:Hn.xn.type,overrideConfigVersion:Hn.xn.version,result:we,codec:va(ze),ipVersion:"UNKNOWN",launchDuration:Math.round(he),networkType:An(xt.getCurrentNetworkType()),streamingProfileGuid:null!==($t=zt.streamingProfileGuid)&&void 0!==$t?$t:"",systemInfoGuid:null!==(an=zt.systemInfoGuid)&&void 0!==an?an:"",cmsId:pt});this.dispatchEvent({name:mn.name,gdprLevel:mn.gdprLevel,parameters:mn.parameters,ts:mn.ts,clientConfig:Zs})}processEvent(h){this.dispatchEvent({name:h.name,gdprLevel:h.gdprLevel,parameters:h.parameters,ts:h.ts,clientConfig:Zs})}OO(h,b){let k;k=this.RO.hO(h),this.BO(k),this.RO.sO(b)}lO(h){return this.clientShutDownCallback?(l.Log.d("{9838627}","{c7dcc4e}"),this.RO.cO().then(b=>{for(const k of b)this.BO(k);this.RO.sO(h)}).catch(()=>{l.Log.d("{9838627}","{41cf828}")})):(l.Log.d("{9838627}","{77df598}"),this.RO.lO(h))}FO(h,b){let k=!1;this.clientShutDownCallback&&(k=this.clientShutDownCallback(h),l.Log.d("{9838627}","{caf81d9}",k)),k||(l.Log.d("{9838627}","{e939db1}"),b(h))}LO(h,b){this.Jh.hasListener("TelemetryEvent")?this.Jh.emit("TelemetryEvent",h):b(h)}fO(){return this.RO.fO()}}class Ui extends Xi{dispatchEvent(h){this.LO(h,()=>{this.RO.zx(h)})}BO(h){this.FO(h,()=>{this.RO.Zx(h)})}getTelemetryEventIds(){return{streamingProfileGuid:this.RO.oO(),systemInfoGuid:this.RO.rO()}}}class fr extends Xi{constructor(h,b){super(h,b),this.wO=l.TelemetryModule.createTelemetryProvider(Zs)}dispatchEvent(h){this.LO(h,()=>{this.UO(h,!1)})}BO(h){this.FO(h,()=>{this.UO(h,!0)})}getTelemetryEventIds(){return l.TelemetryModule.getTelemetryEventIds()}UO(h,b){const k={name:(we=h).name,gdprLevel:we.gdprLevel,priority:b,ts:we.ts,parameters:we.parameters},ee=h.clientConfig;var we;let he;ee.clientId===Zs.clientId?he=this.wO:(this.GO||(this.GO=l.TelemetryModule.createTelemetryProvider(ee)),he=this.GO),he.processEvent(k)}}const xr="#006FCD",yr="#0e7a0d";class Rr{constructor(){this.HO="gamepadTester",this.visible=!1,this.VO=[],this.WO=[],this.ku=new Map,Hn.Fo&&(document.body.appendChild(this._O()),this.start())}cl(h){for(let b=0;b<4;b++){const k=this.ku.get(b);void 0!==k&&(h&1<<b||(this.VO[k]=null,this.ku.delete(b)))}}Cl(h){for(let b=0;b<this.VO.length;b++){let k=this.VO[b];k&&k.qO&&k.sA==h&&(this.VO[b]=null)}}ll(h,b,k,ee,he,we,ze,pt){this.ku.set(b,h),this.VO[h]={index:h,sA:b,buttons:k,trigger:ee,axes:he,name:pt,qO:!1}}Tl(h,b,k,ee,he,we,ze,pt){this.VO[h]={index:h,sA:b,buttons:k,trigger:ee,axes:he,name:pt,qO:!0}}fl(h){h.index<4&&(this.WO[h.index]={index:h.index,sA:h.index,buttons:-1,trigger:-1,axes:[-1],name:h.id,qO:!1})}pl(h){h<4&&(this.WO[h]=null)}_O(){let h=document.createElement("div");h.id=this.HO,h.className="genericdiv",h.style.display="grid",h.style.gridTemplateColumns="1fr 1fr",h.style.gridTemplateRows="1fr 1fr",this.visible=!0;let b=document.createElement("p");return b.id="instruction",b.style.color="white",b.style.position="fixed",b.innerHTML="Connect GamePads",b.style.top="0",h.appendChild(b),h}Fw(h){let b=document.getElementById(this.HO);b?(b.remove(),this.VO=[],this.visible=!1):(h.insertAdjacentElement("afterend",this._O()),this.start())}start(){let h,b=document.getElementById(this.HO);if(null==b)return void l.Log.e("{e13a879}","{0c955af}");let k=.49*window.innerWidth,ee=.4*window.innerHeight,he=.3*k,we=.7*k,ze=.8*ee,pt=.8*ee,wt=.07*k;const $t=yn=>{yn.style.position="absolute",yn.style.width="2%",yn.style.height="3.5%",yn.style.backgroundColor="red",yn.style.borderRadius="50%",yn.style.transform="translate(-50%, -50%)"},an=yn=>{let Qn=(li=yn)?{left:{X:li.axes[0],Y:li.axes[1]},right:{X:li.axes[2],Y:li.axes[3]}}:null;var li;if(null===b.querySelector(`.gamepad${yn.index}`).querySelector(".leftStick")){let li=document.createElement("div");li.className="gamepadJoystickPointer leftStick",$t(li),li.style.left=`${he+Qn.left.X*wt}px`,li.style.top=`${ze+Qn.left.Y*wt}px`,b.querySelector(`.gamepad${yn.index}`).querySelector(".gamepadContainer").appendChild(li)}else{let li=b.querySelector(`.gamepad${yn.index}`).querySelector(".leftStick");li.style.opacity="1",li.style.left=`${he+wt*Qn.left.X}px`,li.style.top=`${ze+Qn.left.Y*wt}px`}if(null===b.querySelector(`.gamepad${yn.index}`).querySelector(".rightStick")){let li=document.createElement("div");li.className="gamepadJoystickPointer rightStick",$t(li),li.style.left=`${we+Qn.right.X*wt}px`,li.style.top=`${pt+Qn.right.Y*wt}px`,b.querySelector(`.gamepad${yn.index}`).querySelector(".gamepadContainer").appendChild(li)}else{let li=b.querySelector(`.gamepad${yn.index}`).querySelector(".rightStick");li.style.opacity="1",li.style.left=(we+Qn.right.X*wt).toString()+"px",li.style.top=(pt+Qn.right.Y*wt).toString()+"px"}},zt=(yn,Qn,li,wi)=>{var mi=yn.getContext("2d");if(!mi)return;mi.beginPath();const Bi=!0===li?1:!1===li?0:li;mi.fillStyle=li?wi?xr:yr:"grey";const qi=sr=>{if(!mi)return;const Ar=.12*Bi;mi.rect(yn.width*sr,yn.height*(.12-Ar+.07),.02*yn.width,yn.height*Ar),mi.closePath(),mi.fill(),mi.beginPath(),mi.fillStyle="grey",mi.rect(yn.width*sr,.07*yn.height,.02*yn.width,yn.height*(.12-Ar))};switch(Qn){case 0:mi.moveTo(.14*yn.width,.48*yn.height),mi.lineTo(.19*yn.width,.48*yn.height),mi.lineTo(.165*yn.width,.54*yn.height),mi.lineTo(.14*yn.width,.48*yn.height);break;case 1:mi.moveTo(.14*yn.width,.66*yn.height),mi.lineTo(.19*yn.width,.66*yn.height),mi.lineTo(.165*yn.width,.61*yn.height),mi.lineTo(.14*yn.width,.66*yn.height);break;case 2:mi.moveTo(.09*yn.width,.55*yn.height),mi.lineTo(.09*yn.width,.61*yn.height),mi.lineTo(.135*yn.width,.57*yn.height),mi.lineTo(.09*yn.width,.55*yn.height);break;case 3:mi.moveTo(.24*yn.width,.55*yn.height),mi.lineTo(.24*yn.width,.61*yn.height),mi.lineTo(.195*yn.width,.57*yn.height),mi.lineTo(.24*yn.width,.55*yn.height);break;case 4:mi.arc(.7*yn.width,.4*yn.height,.02*yn.width,0,2*Math.PI);break;case 5:mi.arc(.3*yn.width,.4*yn.height,.02*yn.width,0,2*Math.PI);break;case 6:mi.arc(.3*yn.width,.8*yn.height,.07*yn.width,0,2*Math.PI);break;case 7:mi.arc(.7*yn.width,.8*yn.height,.07*yn.width,0,2*Math.PI);break;case 8:mi.rect(.13*yn.width,.23*yn.height,.07*yn.width,.05*yn.height);break;case 9:mi.rect(.815*yn.width,.23*yn.height,.07*yn.width,.05*yn.height);break;case 12:mi.arc(.85*yn.width,.65*yn.height,.02*yn.width,0,2*Math.PI);break;case 13:mi.arc(.9*yn.width,.55*yn.height,.02*yn.width,0,2*Math.PI);break;case 14:mi.arc(.8*yn.width,.55*yn.height,.02*yn.width,0,2*Math.PI);break;case 15:mi.arc(.85*yn.width,.45*yn.height,.02*yn.width,0,2*Math.PI);break;case-1:qi(.155);break;case-2:qi(.84);break;case 16:if(!wi)break;mi.arc(.5*yn.width,.5*yn.height,.02*yn.width,0,2*Math.PI);break;case 17:if(!wi)break;mi.roundRect?mi.roundRect(.395*yn.width,.085*yn.height,.21*yn.width,.18*yn.height,.02*yn.width):mi.arc(.5*yn.width,.175*yn.height,.02*yn.width,0,2*Math.PI)}mi.closePath(),mi.fill()},mn=yn=>{if(null===b.querySelector(`.gamepad${yn.index}`)){let Qn=document.createElement("div");Qn.className=`gamepad gamepad${yn.index}`,Qn.style.display="flex",Qn.style.flexDirection="column",Qn.style.justifyContent="space-between",Qn.style.height="98%";let li=document.createElement("p");li.className="active",li.style.margin="0px";let wi=document.createElement("span");wi.className="gamepadPlayerNumber",wi.style.color="white",wi.style.background=yn.qO?xr:yr,wi.style.position="relative",wi.style.marginRight="0.5vw",wi.innerHTML=yn.qO?"S":"X",wi.style.fontSize="1.5vw",li.appendChild(wi);let mi=document.createElement("span");mi.className="gamepadPlayerNumber",mi.style.color="white",mi.style.position="relative",mi.innerHTML=`P${yn.index+1}|${yn.name}`,mi.style.fontSize="1.5vw",li.appendChild(mi),Qn.appendChild(li);let Bi=document.createElement("div");Bi.className="gamepadContainer",Bi.style.position="relative",Bi.style.width=`${k+2}px`,Bi.style.height=`${ee}px`;let qi=document.createElement("canvas");qi.className="canvas",qi.width=k,qi.height=ee,qi.style.width=`${k}px`,qi.style.height=`${ee}px`,qi.style.border="1px solid white",Bi.appendChild(qi),Qn.appendChild(Bi),b.appendChild(Qn);let sr=b.querySelector("#instruction");sr&&(sr.style.display="none")}},kn=()=>{if(this.visible){for(let yn=0;yn<this.VO.length;yn++){const Qn=this.VO[yn];if(Qn){const li=Qn.qO;b.querySelector(`.gamepad${Qn.index}`)||mn(Qn),an(Qn);let wi=b.querySelector(`.gamepad${Qn.index}`).querySelector("canvas"),mi=li?2:0;for(let sr=0;sr<16;sr++)zt(wi,sr,!!(Qn.buttons&1<<sr),li);mi>=1&&zt(wi,16,65536&Qn.buttons,li),mi>=2&&zt(wi,17,131072&Qn.buttons,li),zt(wi,-1,(255&Qn.trigger)/255,li),zt(wi,-2,(Qn.trigger>>8&255)/255,li)}else if(this.WO[yn]){if(!b.querySelector(`.gamepad${yn}`)){mn(this.WO[yn]);let li=b.querySelector(`.gamepad${yn}`).querySelector("canvas"),wi=li.getContext("2d");wi&&(wi.font="20px Arial",wi.fillStyle="white",wi.textAlign="center",wi.fillText("Unsupported Gamepad",li.width/2,li.height/2))}}else{let li=b.querySelector(`.gamepad${yn}`);if(li&&b.removeChild(li),b.childNodes.length<=1){let wi=b.querySelector("#instruction");wi&&(wi.style.display="block")}}}h=window.requestAnimationFrame(kn)}else window.cancelAnimationFrame(h)};kn()}Al(h,b,k,ee,he){}vl(){}}class co{constructor(){this.$O=!1,this.zO=[],this.KO=[],this.QO=0,this.YO=0,this.XO=0}jO(){if(l.Log.i("{4c846ba}","{b11cb24}"),this.JO){try{this.ZO=new MediaRecorder(this.JO)}catch(h){return void l.Log.e("{4c846ba}","{0d1420e}",h)}this.ZO&&(this.ZO.onstart=()=>{},this.ZO.onstop=()=>{l.Log.i("{4c846ba}","{7a944b4}")},this.ZO.ondataavailable=h=>{h.data&&h.data.size>0&&(this.zO.push(h.data),this.KO.push(this.zO),++this.YO,this.zO=[])},l.Log.i("{4c846ba}","{ffb713f}",this.ZO)),this.$O=!1}else l.Log.e("{4c846ba}","{74475ae}")}tB(){let h;if(1==this.XO)h=18e5;else{if(2!=this.XO)return;h=3e3}this.ZO&&!this.$O&&(this.ZO.start(),this.$O=!0,this.QO=window.setTimeout(()=>{l.Log.i("{4c846ba}","{2282d21}"),this.iB()},h),l.Log.i("{4c846ba}","{4f438e3}"))}sB(){this.iB(),this.jO(),this.tB()}iB(){var h;null===(h=this.ZO)||void 0===h||h.stop(),this.ZO=void 0,0!==this.QO&&(window.clearTimeout(this.QO),this.QO=0)}initialize(h){this.JO=h}uninitialize(){this.iB(),this.downloadAudio(),this.JO=void 0,this.XO=0}downloadAudio(){if(0!=this.XO){for(let h=0;h<this.YO;++h)Rn(this.KO[h],"audioCapture_"+h+".wmv","audio/webm")&&l.Log.i("{4c846ba}","{c24ed3b}");this.YO=0,this.KO=[]}}ux(){return 0==this.XO&&(this.XO=1,l.Log.i("{4c846ba}","{008dc86}"),this.jO(),this.tB(),!0)}lx(){return 1==this.XO&&(l.Log.i("{4c846ba}","{1f67b97}"),this.XO=2,!0)}Ax(){2==this.XO&&(l.Log.i("{4c846ba}","{89b1a9f}"),this.sB())}}class Bo{constructor(h){this.sessionId="",this.subSessionId="",this.eB=0,this.nB=!1,this.telemetry=h,this.uh=new dr(this,1e4,1e4)}hB(){this.uh.vn()}oB(){this.uh.fn(!1)}rB(h){return this.eB=h,15868704===this.eB||15859712===this.eB?(this.uh.fn(!1),!1):(this.uh.fn(!0),this.uh.gn(),this.nB)}Cn(h){15867909!==this.eB&&15867908!==this.eB||(h.rn="other"),this.aB(h.duration,h.En-h.Tn,h.rn)}reset(h,b){this.sessionId=h,this.subSessionId=b,this.eB=0,this.nB=!1}aB(h,b,k){const ee=Math.round(h/1e3),he=Math.round(b/1e3);this.telemetry.EO(ee,he,k,Ae(this.eB),this.sessionId,this.subSessionId),this.oB(),this.nB=!0}}class os{constructor(){this.dB=0}bR(){this.dB=performance.now()}$a(){return performance.now()-this.dB}yd(){return this.dB}}class Es extends os{kr(h){var b;return(null!==(b=Hn.ko.usePerfNowCaptureTimestamp)&&void 0!==b?b:!qe())?this.$a():h-this.dB}}const Fs="ios15AudioContext",Qs="ios15AudioStream";performance.mark("GfnRBegin");class io{constructor(h,b){this.module=h,this.enabled=!0,this.kF=!1,this.queue=[],b&&(void 0!==b.enable&&(this.enabled=b.enable),void 0!==b.yF&&(this.kF=b.yF)),this.IF=(k,ee,...he)=>{},this.CF=(k,ee,...he)=>this.EF(l.LogLevel.DEBUG,k,ee,he),this.TF=(k,ee,...he)=>this.EF(l.LogLevel.INFO,k,ee,he),this.MF=(k,ee,...he)=>this.EF(l.LogLevel.WARN,k,ee,he),this.PF=(k,ee,...he)=>this.EF(l.LogLevel.ERROR,k,ee,he)}get d(){return this.enabled?this.kF?console.debug.bind(console,"%s DEBUG [%s] %s@@",this.DF(new Date)):this.CF:this.IF}get w(){return this.enabled?this.kF?console.warn.bind(console,"%s WARN [%s] %s@@",this.DF(new Date)):this.MF:this.IF}get i(){return this.enabled?this.kF?console.info.bind(console,"%s INFO [%s] %s@@",this.DF(new Date)):this.TF:this.IF}get e(){return this.kF?console.error.bind(console,"%s ERROR [%s] %s@@",this.DF(new Date)):this.PF}setLogCallback(h){this.Gn=h,this.Gn&&this.queue.length&&window.setTimeout(()=>{this.RF(!0)})}isCallbackRegistered(){return!!this.Gn}NF(...h){return h.length?`##${JSON.stringify(h)}`:""}RF(h){this.Gn&&this.queue.length&&(this.Gn(this.queue[0]),this.queue.shift(),h&&this.queue.length&&window.setTimeout(()=>{this.RF(!0)}))}EF(h,b,k,ee){let he=`${k}${this.NF(...ee)}`,we={timestamp:this.DF(new Date),level:h,tag:this.module+"/"+b,message:he};this.queue.push(we),this.Gn?window.setTimeout(()=>{this.RF(!1)}):this.queue.length>io.xF&&this.queue.shift()}DF(h){const b=(ee,he,we)=>{const ze=he-ee.length;if(ze>0){let pt="";for(let wt=0;wt<ze;wt++)pt+=we;return pt+=ee,pt}return ee};let k="";return k=b(h.getFullYear().toString(),4,"0")+"-"+b((h.getMonth()+1).toString(),2,"0")+"-"+b(h.getDate().toString(),2,"0")+" "+(b(h.getHours().toString(),2,"0")+":")+(ee=>b(ee.getMinutes().toString(),2,"0"))(h)+":"+(ee=>b(ee.getSeconds().toString(),2,"0"))(h)+"."+(ee=>b(ee.getMilliseconds().toString(),3,"0"))(h),k}}z.RErrorCode=void 0,io.xF=50,function(x){x[x.Success=15859712]="Success",x[x.AuthProviderError=3237085185]="AuthProviderError",x[x.InvalidOperation=3237085186]="InvalidOperation",x[x.NoNetwork=3237089281]="NoNetwork",x[x.NetworkError=3237089282]="NetworkError",x[x.GetActiveSessionServerError=3237089283]="GetActiveSessionServerError",x[x.ExceptionHappened=3237089284]="ExceptionHappened",x[x.AuthTokenNotUpdated=3237093377]="AuthTokenNotUpdated",x[x.SessionFinishedState=3237093378]="SessionFinishedState",x[x.ResponseParseFailure=3237093379]="ResponseParseFailure",x[x.GridAppNotInitialized=3237093380]="GridAppNotInitialized",x[x.InvalidServerResponse=3237093381]="InvalidServerResponse",x[x.PutOrPostInProgress=3237093382]="PutOrPostInProgress",x[x.GridServerNotInitialized=3237093383]="GridServerNotInitialized",x[x.DOMExceptionInGridServer=3237093384]="DOMExceptionInGridServer",x[x.InvalidAdStateTransition=3237093386]="InvalidAdStateTransition",x[x.SessionServerErrorBegin=3237093632]="SessionServerErrorBegin",x[x.RequestForbidden=3237093634]="RequestForbidden",x[x.ServerInternalTimeout=3237093635]="ServerInternalTimeout",x[x.ServerInternalError=3237093636]="ServerInternalError",x[x.ServerInvalidRequest=3237093637]="ServerInvalidRequest",x[x.ServerInvalidRequestVersion=3237093638]="ServerInvalidRequestVersion",x[x.SessionListLimitExceeded=3237093639]="SessionListLimitExceeded",x[x.InvalidRequestDataMalformed=3237093640]="InvalidRequestDataMalformed",x[x.InvalidRequestDataMissing=3237093641]="InvalidRequestDataMissing",x[x.RequestLimitExceeded=3237093642]="RequestLimitExceeded",x[x.SessionLimitExceeded=3237093643]="SessionLimitExceeded",x[x.InvalidRequestVersionOutOfDate=3237093644]="InvalidRequestVersionOutOfDate",x[x.SessionEntitledTimeExceeded=3237093645]="SessionEntitledTimeExceeded",x[x.AuthFailure=3237093646]="AuthFailure",x[x.InvalidAuthenticationMalformed=3237093647]="InvalidAuthenticationMalformed",x[x.InvalidAuthenticationExpired=3237093648]="InvalidAuthenticationExpired",x[x.InvalidAuthenticationNotFound=3237093649]="InvalidAuthenticationNotFound",x[x.EntitlementFailure=3237093650]="EntitlementFailure",x[x.InvalidAppIdNotAvailable=3237093651]="InvalidAppIdNotAvailable",x[x.InvalidAppIdNotFound=3237093652]="InvalidAppIdNotFound",x[x.InvalidSessionIdMalformed=3237093653]="InvalidSessionIdMalformed",x[x.InvalidSessionIdNotFound=3237093654]="InvalidSessionIdNotFound",x[x.EulaUnAccepted=3237093655]="EulaUnAccepted",x[x.MaintenanceStatus=3237093656]="MaintenanceStatus",x[x.ServiceUnAvailable=3237093657]="ServiceUnAvailable",x[x.SteamGuardRequired=3237093658]="SteamGuardRequired",x[x.SteamLoginRequired=3237093659]="SteamLoginRequired",x[x.SteamGuardInvalid=3237093660]="SteamGuardInvalid",x[x.SteamProfilePrivate=3237093661]="SteamProfilePrivate",x[x.InvalidCountryCode=3237093662]="InvalidCountryCode",x[x.InvalidLanguageCode=3237093663]="InvalidLanguageCode",x[x.MissingCountryCode=3237093664]="MissingCountryCode",x[x.MissingLanguageCode=3237093665]="MissingLanguageCode",x[x.SessionNotPaused=3237093666]="SessionNotPaused",x[x.EmailNotVerified=3237093667]="EmailNotVerified",x[x.InvalidAuthenticationUnsupportedProtocol=3237093668]="InvalidAuthenticationUnsupportedProtocol",x[x.InvalidAuthenticationUnknownToken=3237093669]="InvalidAuthenticationUnknownToken",x[x.InvalidAuthenticationCredentials=3237093670]="InvalidAuthenticationCredentials",x[x.SessionNotPlaying=3237093671]="SessionNotPlaying",x[x.InvalidServiceResponse=3237093672]="InvalidServiceResponse",x[x.AppPatching=3237093673]="AppPatching",x[x.GameNotFound=3237093674]="GameNotFound",x[x.NotEnoughCredits=3237093675]="NotEnoughCredits",x[x.InvitationOnlyRegistration=3237093676]="InvitationOnlyRegistration",x[x.RegionNotSupportedForRegistration=3237093677]="RegionNotSupportedForRegistration",x[x.SessionTerminatedByAnotherClient=3237093678]="SessionTerminatedByAnotherClient",x[x.DeviceIdAlreadyUsed=3237093679]="DeviceIdAlreadyUsed",x[x.ServiceNotExist=3237093680]="ServiceNotExist",x[x.SessionExpired=3237093681]="SessionExpired",x[x.SessionLimitPerDeviceReached=3237093682]="SessionLimitPerDeviceReached",x[x.ForwardingZoneOutOfCapacity=3237093683]="ForwardingZoneOutOfCapacity",x[x.RegionNotSupportedIndefinitely=3237093684]="RegionNotSupportedIndefinitely",x[x.RegionBanned=3237093685]="RegionBanned",x[x.RegionOnHoldForFree=3237093686]="RegionOnHoldForFree",x[x.RegionOnHoldForPaid=3237093687]="RegionOnHoldForPaid",x[x.AppMaintenanceStatus=3237093688]="AppMaintenanceStatus",x[x.ResourcePoolNotConfigured=3237093689]="ResourcePoolNotConfigured",x[x.InsufficientVmCapacity=3237093690]="InsufficientVmCapacity",x[x.InsufficientRouteCapacity=3237093691]="InsufficientRouteCapacity",x[x.InsufficientScratchSpaceCapacity=3237093692]="InsufficientScratchSpaceCapacity",x[x.RequiredSeatInstanceTypeNotSupported=3237093693]="RequiredSeatInstanceTypeNotSupported",x[x.ServerSessionQueueLengthExceeded=3237093694]="ServerSessionQueueLengthExceeded",x[x.RegionNotSupportedForStreaming=3237093695]="RegionNotSupportedForStreaming",x[x.SessionForwardRequestAllocationTimeExpired=3237093696]="SessionForwardRequestAllocationTimeExpired",x[x.SessionForwardGameBinariesNotAvailable=3237093697]="SessionForwardGameBinariesNotAvailable",x[x.GameBinariesNotAvailableInRegion=3237093698]="GameBinariesNotAvailableInRegion",x[x.UekRetrievalFailed=3237093699]="UekRetrievalFailed",x[x.EntitlementFailureForResource=3237093700]="EntitlementFailureForResource",x[x.SessionInQueueAbandoned=3237093701]="SessionInQueueAbandoned",x[x.MemberTerminated=3237093702]="MemberTerminated",x[x.SessionRemovedFromQueueMaintenance=3237093703]="SessionRemovedFromQueueMaintenance",x[x.ZoneMaintenanceStatus=3237093704]="ZoneMaintenanceStatus",x[x.GuestModeCampaignDisabled=3237093705]="GuestModeCampaignDisabled",x[x.RegionNotSupportedAnonymousAccess=3237093706]="RegionNotSupportedAnonymousAccess",x[x.InstanceTypeNotSupportedInSingleRegion=3237093707]="InstanceTypeNotSupportedInSingleRegion",x[x.InvalidZoneForQueuedSession=3237093710]="InvalidZoneForQueuedSession",x[x.SessionWaitingAdsTimeExpired=3237093711]="SessionWaitingAdsTimeExpired",x[x.UserCancelledWatchingAds=3237093712]="UserCancelledWatchingAds",x[x.StreamingNotAllowedInLimitedMode=3237093713]="StreamingNotAllowedInLimitedMode",x[x.ForwardRequestJPMFailed=3237093714]="ForwardRequestJPMFailed",x[x.MaxSessionNumberLimitExceeded=3237093715]="MaxSessionNumberLimitExceeded",x[x.GuestModePartnerCapacityDisabled=3237093716]="GuestModePartnerCapacityDisabled",x[x.SessionRejectedNoCapacity=3237093717]="SessionRejectedNoCapacity",x[x.SessionInsufficientPlayabilityLevel=3237093718]="SessionInsufficientPlayabilityLevel",x[x.SessionServerErrorEnd=3237093887]="SessionServerErrorEnd",x[x.StreamerErrorCategory=3237093888]="StreamerErrorCategory",x[x.StreamErrorGeneric=3237093889]="StreamErrorGeneric",x[x.StreamerSignInFailure=3237093890]="StreamerSignInFailure",x[x.StreamerHangingGetFailure=3237093891]="StreamerHangingGetFailure",x[x.StreamerNetworkError=3237093892]="StreamerNetworkError",x[x.StreamerVideoPlayError=3237093893]="StreamerVideoPlayError",x[x.StreamerIceConnectionFailed=3237093894]="StreamerIceConnectionFailed",x[x.StreamerGetRemotePeerTimedOut=3237093895]="StreamerGetRemotePeerTimedOut",x[x.StreamInputChannelError=3237093896]="StreamInputChannelError",x[x.StreamCursorChannelError=3237093897]="StreamCursorChannelError",x[x.StreamControlChannelError=3237093898]="StreamControlChannelError",x[x.StreamerReConnectionFailed=3237093899]="StreamerReConnectionFailed",x[x.StreamerNoVideoPacketsReceivedEver=3237093900]="StreamerNoVideoPacketsReceivedEver",x[x.StreamerNoVideoFramesLossyNetwork=3237093901]="StreamerNoVideoFramesLossyNetwork",x[x.StreamerSetSDPFailure=3237093902]="StreamerSetSDPFailure",x[x.StreamerNoLocalCandidates=3237093903]="StreamerNoLocalCandidates",x[x.StreamerNoRemoteCandidates=3237093904]="StreamerNoRemoteCandidates",x[x.StreamerNoVideoTrack=3237093905]="StreamerNoVideoTrack",x[x.StreamerIceReConnectionFailed=3237093906]="StreamerIceReConnectionFailed",x[x.StreamerSignInTimeout=3237093907]="StreamerSignInTimeout",x[x.StreamerSignInWorkerFailure=3237093908]="StreamerSignInWorkerFailure",x[x.StreamerNoTracksReceivedInSdp=3237093909]="StreamerNoTracksReceivedInSdp",x[x.StreamerNvstSdpFailure=3237093910]="StreamerNvstSdpFailure",x[x.StreamerNvstSdpParseFailure=3237093911]="StreamerNvstSdpParseFailure",x[x.StreamerNoPeerInfo=3237093912]="StreamerNoPeerInfo",x[x.StreamerNoOffer=3237093913]="StreamerNoOffer",x[x.StreamerNoAudioTrack=3237093914]="StreamerNoAudioTrack",x[x.StreamerInvalidRemoteConfigOverride=3237093915]="StreamerInvalidRemoteConfigOverride",x[x.StreamerInvalidServerOverride=3237093916]="StreamerInvalidServerOverride",x[x.StreamerInvalidClientOverride=3237093917]="StreamerInvalidClientOverride",x[x.StreamerConfigUpdateFailure=3237093918]="StreamerConfigUpdateFailure",x[x.StreamerInputChannelNotOpen=3237093919]="StreamerInputChannelNotOpen",x[x.StreamerCursorChannelNotOpen=3237093920]="StreamerCursorChannelNotOpen",x[x.StreamerControlChannelNotOpen=3237093921]="StreamerControlChannelNotOpen",x[x.StreamerVideoAdapterInitTimeOut=3237093922]="StreamerVideoAdapterInitTimeOut",x[x.StreamerVideoFrameProviderInitTimeOut=3237093923]="StreamerVideoFrameProviderInitTimeOut",x[x.StreamerVideoEncoderInitTimeOut=3237093924]="StreamerVideoEncoderInitTimeOut",x[x.StreamerVideoSetupTimeOut=3237093925]="StreamerVideoSetupTimeOut",x[x.StreamerNoStunResponsesReceived=3237093926]="StreamerNoStunResponsesReceived",x[x.StreamerNoNominatedCandidatePairs=3237093927]="StreamerNoNominatedCandidatePairs",x[x.StreamerNoSucceededCandidatePairs=3237093928]="StreamerNoSucceededCandidatePairs",x[x.StreamPartiallyReliableInputChannelError=3237093929]="StreamPartiallyReliableInputChannelError",x[x.StreamerPartiallyReliableInputChannelNotOpen=3237093936]="StreamerPartiallyReliableInputChannelNotOpen",x[x.StreamerNeedAudioElement=3237093937]="StreamerNeedAudioElement",x[x.StreamerInvalidVideoSettings=3237093938]="StreamerInvalidVideoSettings",x[x.StreamerNeedVideoElement=3237093939]="StreamerNeedVideoElement",x[x.SessionSetupCancelled=15867905]="SessionSetupCancelled",x[x.SessionSetupCancelledDuringQueuing=15867906]="SessionSetupCancelledDuringQueuing",x[x.StreamerDataChannelClosing=15867907]="StreamerDataChannelClosing",x[x.SystemSleepDuringStreaming=15867908]="SystemSleepDuringStreaming",x[x.SystemSleepDuringSessionSetup=15867909]="SystemSleepDuringSessionSetup",x[x.PauseSession=15867910]="PauseSession",x[x.DelayedSessionError=15867911]="DelayedSessionError",x[x.WebPageClosed=15867912]="WebPageClosed",x[x.ClientDisconnectedUserIdle=15867913]="ClientDisconnectedUserIdle",x[x.UnhandledException=3237093392]="UnhandledException",x[x.NoInternetDuringSessionSetup=15868417]="NoInternetDuringSessionSetup",x[x.NoInternetDuringStreaming=15868418]="NoInternetDuringStreaming",x[x.StreamDisconnectedFromServer=15868672]="StreamDisconnectedFromServer",x[x.ServerDisconnectedNoResponse=3237094145]="ServerDisconnectedNoResponse",x[x.ServerDisconnectedRemoteInputError=3237094146]="ServerDisconnectedRemoteInputError",x[x.ServerDisconnectedFrameGrabFailed=3237094147]="ServerDisconnectedFrameGrabFailed",x[x.ServerDisconnectedConfigUnAvailable=3237094148]="ServerDisconnectedConfigUnAvailable",x[x.ServerDisconnectedInvalidCommand=3237094149]="ServerDisconnectedInvalidCommand",x[x.ServerDisconnectedInvalidMouseState=3237094150]="ServerDisconnectedInvalidMouseState",x[x.ServerDisconnectedNetworkError=3237094151]="ServerDisconnectedNetworkError",x[x.ServerDisconnectedGameLaunchFailed=3237094152]="ServerDisconnectedGameLaunchFailed",x[x.ServerDisconnectedVideoFirstFrameSendFailed=3237094153]="ServerDisconnectedVideoFirstFrameSendFailed",x[x.ServerDisconnectedVideoNextFrameSendFailed=3237094154]="ServerDisconnectedVideoNextFrameSendFailed",x[x.ServerDisconnectedFrameGrabTimedOut=3237094155]="ServerDisconnectedFrameGrabTimedOut",x[x.ServerDisconnectedFrameEncodeTimedOut=3237094156]="ServerDisconnectedFrameEncodeTimedOut",x[x.ServerDisconnectedFrameSendTimedOut=3237094157]="ServerDisconnectedFrameSendTimedOut",x[x.ServerDisconnectedNetworkTimedOut=3237094158]="ServerDisconnectedNetworkTimedOut",x[x.ServerDisconnectedPeerRemovedByServer=3237094159]="ServerDisconnectedPeerRemovedByServer",x[x.ServerDisconnectedUnknownError=3237094160]="ServerDisconnectedUnknownError",x[x.ServerDisconnectedPeerRemovedBeforeStream=3237094161]="ServerDisconnectedPeerRemovedBeforeStream",x[x.ServerDisconnectedIntended=15868704]="ServerDisconnectedIntended",x[x.ServerDisconnectedHotKey=15868705]="ServerDisconnectedHotKey",x[x.ServerDisconnectedUserLoggedInDifferentAccount=15868706]="ServerDisconnectedUserLoggedInDifferentAccount",x[x.ServerDisconnectedWindowedMode=15868707]="ServerDisconnectedWindowedMode",x[x.ServerDisconnectedUserIdle=15868708]="ServerDisconnectedUserIdle",x[x.ServerDisconnectedUnAuthorizedProcessDetected=15868709]="ServerDisconnectedUnAuthorizedProcessDetected",x[x.ServerDisconnectedMaliciousProcessDetected=15868710]="ServerDisconnectedMaliciousProcessDetected",x[x.ServerDisconnectedUnKnownProcessDetected=15868711]="ServerDisconnectedUnKnownProcessDetected",x[x.ServerDisconnectedMinerProcessDetected=15868712]="ServerDisconnectedMinerProcessDetected",x[x.ServerDisconnectedStreamingUnsupported=15868713]="ServerDisconnectedStreamingUnsupported",x[x.ServerDisconnectedAnotherClient=15868714]="ServerDisconnectedAnotherClient",x[x.ServerDisconnectedCodeIntegrityViolation=15868715]="ServerDisconnectedCodeIntegrityViolation",x[x.ServerDisconnectedUnauthorizedActivityDetected=15868716]="ServerDisconnectedUnauthorizedActivityDetected",x[x.ServerDisconnectedGameNotOwnedByUser=15868717]="ServerDisconnectedGameNotOwnedByUser",x[x.ServerDisconnectedProtectedContent=15868718]="ServerDisconnectedProtectedContent",x[x.ServerDisconnectedDisplayTopologyChanged=15868719]="ServerDisconnectedDisplayTopologyChanged",x[x.ServerDisconnectedAbruptly=15868688]="ServerDisconnectedAbruptly",x[x.ServerDisconnectedUnknownFromPm=15868736]="ServerDisconnectedUnknownFromPm",x[x.ServerDisconnectedUserEntitledMinutesExceeded=15868737]="ServerDisconnectedUserEntitledMinutesExceeded",x[x.ServerDisconnectedClientReconnectTimeLimitExceeded=15868738]="ServerDisconnectedClientReconnectTimeLimitExceeded",x[x.ServerDisconnectedOperatorCommandedTermination=15868739]="ServerDisconnectedOperatorCommandedTermination",x[x.ServerDisconnectedConcurrentSessionLimitExceeded=15868740]="ServerDisconnectedConcurrentSessionLimitExceeded",x[x.ServerDisconnectedMaxSessionTimeLimitExceeded=15868741]="ServerDisconnectedMaxSessionTimeLimitExceeded",x[x.ServerDisconnectedBifrostInitiatedSessionPause=15868742]="ServerDisconnectedBifrostInitiatedSessionPause",x[x.ServerDisconnectedSystemCommandTermination=15868743]="ServerDisconnectedSystemCommandTermination",x[x.ServerDisconnectedMultipleLogin=15868744]="ServerDisconnectedMultipleLogin",x[x.ServerDisconnectedMaintenanceMode=15868745]="ServerDisconnectedMaintenanceMode",x[x.ServerDisconnectedMultipleTab=15868752]="ServerDisconnectedMultipleTab",x[x.InvalidVideoElement=3237094400]="InvalidVideoElement",x[x.InvalidAudioElement=3237094401]="InvalidAudioElement",x[x.WebSocketClosed=3237097472]="WebSocketClosed",x[x.WebSocketNormalClosure=3237101567]="WebSocketNormalClosure",x[x.WebSocketGoingAway=3237101566]="WebSocketGoingAway",x[x.WebSocketProtocolError=3237101565]="WebSocketProtocolError",x[x.WebSocketUnsupportedData=3237101564]="WebSocketUnsupportedData",x[x.WebSocketNoStatusRcvd=3237101562]="WebSocketNoStatusRcvd",x[x.WebSocketInvalidFramePayloadData=3237101560]="WebSocketInvalidFramePayloadData",x[x.WebSocketPolicyViolation=3237101559]="WebSocketPolicyViolation",x[x.WebSocketMessageTooBig=3237101558]="WebSocketMessageTooBig",x[x.WebSocketMandatoryExt=3237101557]="WebSocketMandatoryExt",x[x.WebSocketInternalError=3237101556]="WebSocketInternalError",x[x.WebSocketServiceRestart=3237101555]="WebSocketServiceRestart",x[x.WebSocketTryAgainLater=3237101554]="WebSocketTryAgainLater",x[x.WebSocketBadGateway=3237101553]="WebSocketBadGateway",x[x.WebSocketTLSHandshakeFailure=3237101552]="WebSocketTLSHandshakeFailure",x[x.WebSocketUnauthorized=3237101551]="WebSocketUnauthorized",x[x.WebSocketForbidden=3237101550]="WebSocketForbidden",x[x.WebSocketTimeout=3237101549]="WebSocketTimeout"}(z.RErrorCode||(z.RErrorCode={}));const Us="ios15AudioContext",Na="ios15AudioStream";performance.mark("GfnNskBegin");class Is{constructor(h,b,k){this.Rs=h,this.delegate=b,this.OF=k,this.kg=new Rr,this.ED=new co,this.streamingState=0,this.startTime=0,this.isResume=!1,this.pB=0,this.BF=0,this.gB=0,this.sessionId="",this.subSessionId="",this.zoneAddress="",this.zoneName="",this.ID=[],this.FF=!1,this.appId=0,this.PB=he=>(l.Log.e("{0a9be04}","{8516485}",he.filename,he.lineno,he.colno),this.telemetry.Ac(he.error,he.error&&he.error.message?he.error.message:he.message,he.filename,he.lineno,he.colno,!1),Hn.ko.terminateUnhandledException&&this.LF(3237093392),!1),this.UF=()=>{var he;if(l.Log.i("{0a9be04}","{478a408}",document.visibilityState,!!this.Jd),!this.Jd)return;const we=this.ID.find($t=>{const an=$t.srcObject;return an instanceof MediaStream&&an.getAudioTracks().length}),ze=this.Sb,pt=we&&ze&&pi(this.Rs,15,4)&&Hn._o,wt=pi(this.Rs,15,4)&&this.FF&&Hn.Wo;if("hidden"===document.visibilityState)this.BF=performance.now(),pt&&(l.Log.i("{0a9be04}","{cbd3b6e}"),we.muted=!0,ze.muted=!0);else if("visible"===document.visibilityState)if(pt&&(l.Log.i("{0a9be04}","{05deefa}"),we.muted=!1,ze.muted=!1),wt){const $t=null!==(he=Hn.ko.userTerminatedMicRecorderThreshold)&&void 0!==he?he:2e3;this.BF-this.CD.Rb()<$t?(l.Log.i("{0a9be04}","{862bd20}"),this.CD.kb(!0),this.captureMic(!0,this.jB)):(this.FF=!1,this.jB=void 0)}else pi(this.Rs,15,4)&&!this.CD.Nb()&&this.CD.Ob()&&this.CD.xb()&&this.CD.yb("visibilityChange")},this.IB=()=>{var he,we;this.LF((null!==(he=this.QB)&&void 0!==he?he:null!==(we=this.Jd)&&void 0!==we&&we.uN())?15867912:15867905)},this.xB=()=>{this.CD.Bb(this.gB),this.gB++},this.BB=he=>{var we;he.detail.idle&&(this.pB=window.setTimeout(()=>{var ze;null===(ze=this.Jd)||void 0===ze||ze.VR(15867913)},6e4),null===(we=this.Jd)||void 0===we||we.vN(2,60))},this.bb=()=>{this.CD.bb()};const ee=window.zoneless;this.vr=new Es,this.yg=nr.getInstance(this.Rs,ee),this.telemetry=new Mi,this.CD=new qt(this.Rs,this.telemetry),this.DB=new Bo(this.telemetry),Hn.Fo&&this.yg.uA(this.kg),no(this.telemetry),this.FB(),Hn.ko.sendNonEssentialMetricEvents&&this.telemetry.Db("PlatformDetailsExecutionTime","",this.Rs.totalTime,0,0,0),l.Log.i("{0a9be04}","{16f11e6}",tt),l.Log.d("{0a9be04}","{e85ad66}",navigator.userAgent)}startStreaming(h){var b,k,ee,he,we,ze,pt,wt,$t,an,zt,mn,kn,yn,Qn,li,wi,mi;if(4!==this.streamingState&&0!==this.streamingState)return l.Log.w("{0a9be04}","{60a7ff5}"),this.telemetry.Ke("SessionSetupInProgressError",h.resume?"resume":"start"),3237085186;const Bi=this.GF(h);if(15859712!==Bi)return Bi;if(this.isResume=null!==(b=h.resume)&&void 0!==b&&b,this.sessionId=h.sessionId,this.subSessionId=null!==(k=h.subSessionId)&&void 0!==k?k:"",this.zoneAddress=null!==(ee=h.zoneAddress)&&void 0!==ee?ee:"",this.zoneName=null!==(we=null===(he=h.statTelemetryInfo)||void 0===he?void 0:he.zoneName)&&void 0!==we?we:"",this.appId=null!==(pt=null===(ze=h.statTelemetryInfo)||void 0===ze?void 0:ze.appId)&&void 0!==pt?pt:0,this.telemetry.SO(this.subSessionId,this.sessionId,this.appId.toString(),this.isResume,this.zoneAddress),this.DB.reset(this.sessionId,this.subSessionId),pi(this.Rs,15)){const Br="streamKitOldPlay";for(const Xo of this.ID){const Do=Xo;Do[Br]||(Do[Br]=Xo.play);const Lo=Hn.Go&&ti(this.Rs,15,1);Xo.play=()=>{if(Hn.Ho&&(l.Log.i("{0a9be04}","{4a5b360}"),this.gF(),this.wF(),this.CD.bb()),Lo){l.Log.i("{0a9be04}","{8f5cd77}");const ir=Xo.srcObject;Xo.srcObject&&(Xo.srcObject=null,Xo.srcObject=ir)}return Do[Br].apply(Xo)}}}if(Hn.Vo&&(ti(this.Rs,15,0)||ti(this.Rs,15,1))){const Br="data-shouldautoplay",Xo="autoplay";for(const Do of this.ID)Do.hasAttribute(Br)?Do.setAttribute(Xo,""):(Do.setAttribute(Br,""),Do.removeAttribute(Xo))}let qi={ip:"",port:0,appLevelProtocol:0,usage:0,protocol:0};h.mediaConnectionInfo&&(qi.ip=h.mediaConnectionInfo.address,qi.port=h.mediaConnectionInfo.port,qi.usage=2);const sr={ip:h.signalConnectionInfo.address,port:h.signalConnectionInfo.port,protocol:(null!==(wt=h.signalConnectionInfo.secure)&&void 0!==wt?wt:!be(h.signalConnectionInfo.address))?"wss":"ws",resourcePath:h.signalConnectionInfo.resourcePath},Ar={appId:this.appId,appLaunchMode:h.enableTouchInput?2:0,clientLocale:null!==(an=null===($t=h.statTelemetryInfo)||void 0===$t?void 0:$t.clientLocale)&&void 0!==an?an:"",gpuType:null!==(mn=null===(zt=h.statTelemetryInfo)||void 0===zt?void 0:zt.gpuType)&&void 0!==mn?mn:"",mediaConnectionInfo:[qi],sessionId:this.sessionId,signalConnectionInfo:sr,state:"ready_for_connection",streamInfo:h.downstreamParams,subSessionId:this.subSessionId,zoneAddress:this.zoneAddress,zoneName:this.zoneName,finalizedStreamingFeatures:h.streamingFeatures,iceServerConfiguration:h.iceServerConfiguration},Vr={...Js};return null!==(kn=Vr.windowedStreaming)&&void 0!==kn||(Vr.windowedStreaming=h.windowedStreaming),null!==(yn=Vr.cursorType)&&void 0!==yn||(Vr.cursorType=h.cursorType),this.Jd=new Ne(this,this.ID,this.CD,Vr,this.kg,this.yg,this.telemetry,this.Rs,Ar,this.vr,this.isResume,this.ED,h.downstreamParams,this.Sb,null!==(Qn=h.textInputElement)&&void 0!==Qn?Qn:null===(li=this.OF)||void 0===li?void 0:li.textInputElement,null===(wi=h.statTelemetryInfo)||void 0===wi?void 0:wi.clientAppVersion,null===(mi=h.statTelemetryInfo)||void 0===mi?void 0:mi.region,h.upstreamParams,h.signalConnectionInfo.queryParameters,h.enableMicUpstream),this.lF(),this.streamingState=1,this.DB.hB(),this.startTime=performance.now(),this.Jd.start(),h.keyboardLayout&&this.Jd.setKeyboardLayout(h.keyboardLayout),15859712}stopStreaming(h){this.Jd&&(1!==this.streamingState&&2!==this.streamingState||(l.Log.i("{0a9be04}","{ae7f61b}",Ae(h=h??15859712)),this.streamingState=3,this.LF(h,!0)))}getStreamingState(){return this.streamingState}sendCustomMessage(h){var b;return null===(b=this.Jd)||void 0===b||b.sendCustomMessage(h),!!this.Jd}setStreamingMaxBitrate(h,b,k){var ee;return null===(ee=this.Jd)||void 0===ee||ee.setStreamingMaxBitrate(b??0,h,k),!!this.Jd}setDynamicStreamingMode(h,b,k){var ee;return null===(ee=this.Jd)||void 0===ee||ee.setDrcDfcState(b??0,h,k),!!this.Jd}setHdr10PlusGaming(h,b){var k;return null===(k=this.Jd)||void 0===k||k.yD(h,b??0),!!this.Jd}setKeyboardLayout(h){var b;return null===(b=this.Jd)||void 0===b||b.setKeyboardLayout(h),!!this.Jd}setSupportedHidTypes(h){this.yg.Hu(h)}setGamepadRsdmm(h){var b;return!!this.Jd&&(null===(b=this.Jd)||void 0===b||b.toggleRsdmm(h),!0)}getVirtualInputController(){return this}getGamepadBitmap(){return this.yg.Tv()}captureUserInput(h,b){var k;return null===(k=this.Jd)||void 0===k||k.toggleUserInput(h,b),!!this.Jd}sendTextInput(h){var b;return null===(b=this.Jd)||void 0===b||b.sendTextInput(h),!!this.Jd}sendBulkPayload(h,b){var k;return null===(k=this.Jd)||void 0===k||k.sendBulkPayload(h,b),!!this.Jd}getMicState(){return this.CD.fb()}captureMic(h,b){return!!this.Jd&&(this.FF=h,this.jB=h?b:void 0,this.FF?this.CD.Ib(b):this.CD.wb(),!0)}setVideoTransforms(h,b,k,ee){var he;return null===(he=this.Jd)||void 0===he||he.setVideoTransforms(h,b,k),!!this.Jd}setUpstreamMedia(h,b){var k;return this.Jd?null===(k=this.Jd)||void 0===k?void 0:k.setUpstreamMedia(h,b):Promise.resolve(!1)}unsetUpstreamMedia(h){var b;return this.Jd?null===(b=this.Jd)||void 0===b?void 0:b.unsetUpstreamMedia(h):Promise.resolve(!1)}stopUpstreamMedia(h){var b;return this.Jd?null===(b=this.Jd)||void 0===b?void 0:b.stopUpstreamMedia(h):Promise.resolve(!1)}startInputPlayback(h){var b;null===(b=this.Jd)||void 0===b||b.startInputPlayback(h)}lN(h){var b,k,ee,he,we,ze,pt;let wt=15859712;if(h.error)wt=h.error.code,this.delegate.onStreamStartFailed(wt),this.LF(wt);else{this.streamingState=2;const $t={streams:[],separateAudioStream:!(null===(b=h.streams)||void 0===b||!b.find(an=>{const zt=an.tracks.find(kn=>"video"===kn.kind),mn=an.tracks.find(kn=>"audio"===kn.kind);return!zt&&mn}))};for(let an=0;an<(null!==(ee=null===(k=h.streamInfo)||void 0===k?void 0:k.length)&&void 0!==ee?ee:0);an++){const zt=h.streamInfo[an],mn={width:zt.width,height:zt.height,fps:zt.fps,sdrHdrMode:zt.sdrHdrMode,bitDepth:null!==(he=zt.bitDepth)&&void 0!==he?he:8,codec:null===(we=this.Jd)||void 0===we?void 0:we.Vy(an),videoTagId:this.ID[an].id};$t.streams.push(mn)}this.delegate.onStreamStarted($t),this.isResume&&this.FF&&this.captureMic(!0,this.jB)}this.telemetry.kO(Math.round(performance.now()-this.startTime),Ae(wt),null!==(pt=null===(ze=this.Jd)||void 0===ze?void 0:ze.Vy(0))&&void 0!==pt?pt:"UNKNOWN"),15859712===wt&&this.telemetry.TO({gI:()=>{var $t,an;return null!==(an=null===($t=this.Jd)||void 0===$t?void 0:$t.lM())&&void 0!==an?an:0},MO:()=>{var $t;return null!==($t=this.QB)&&void 0!==$t?$t:15867911},Vy:()=>{var $t,an;return null!==(an=null===($t=this.Jd)||void 0===$t?void 0:$t.Vy(0))&&void 0!==an?an:"UNKNOWN"},PO:()=>performance.now()-this.startTime}),this.startTime=performance.now()}tN(h){this.LF(h.error.code)}onBulkPayload(h){this.delegate.onBulkPayload&&this.delegate.onBulkPayload(h)}bS(){this.AF()}onRtcRtpReceiver(h){"onRtcRtpReceiver"in this.delegate&&this.delegate.onRtcRtpReceiver(h)}emit(h,...b){var k,ee,he,we,ze,pt,wt,$t,an,zt;if(b.length)switch(h){case"StreamingEvent":b[0].streamingWarnings&&(null===(ee=(k=this.delegate).onStreamWarning)||void 0===ee||ee.call(k,b[0].streamingWarnings));break;case"StreamingQuality":null===(we=(he=this.delegate).onStreamQuality)||void 0===we||we.call(he,b[0]);break;case"MicCapture":this.delegate.onMicStateUpdate&&void 0!==b[0].state&&this.delegate.onMicStateUpdate(b[0].state);break;case"TextComposition":null===(pt=(ze=this.delegate).onTextComposition)||void 0===pt||pt.call(ze,b[0]);break;case"CustomMessage":this.delegate.onCustomMessage&&this.delegate.onCustomMessage(b[0]);break;case"StreamStatsUpdate":null===($t=(wt=this.delegate).onStreamStatistics)||void 0===$t||$t.call(wt,b[0]);break;case"EditBoxEvent":null===(zt=(an=this.delegate).onEditBoxEvent)||void 0===zt||zt.call(an,b[0])}}addListener(h,b){}removeListener(h,b){}removeAllListeners(){}removeAllListenersOfEvent(h){}hasListener(h){return!0}setClientSupportsVirtualGamepad(h){this.yg.getVirtualGamepadHandler().enable()}handleVirtualGamepadState(h,b,k){this.yg.getVirtualGamepadHandler().updateInput(h,b,k)}setVirtualKeyboardState(h){var b;return null===(b=this.Jd)||void 0===b||b.setVirtualKeyboardState(h),!!this.Jd}handleVirtualKeyInput(h){var b;return null===(b=this.Jd)||void 0===b||b.sendKeyEvent(h),!!this.Jd}HF(){this.AF(),this.Jd=void 0,this.startTime=0,this.isResume=!1,this.QB=void 0,this.BF=0,this.gB=0,this.sessionId="",this.subSessionId="",this.zoneAddress="",this.zoneName="",this.ID=[],this.Sb=void 0,this.FF=!1,this.jB=void 0,this.appId=0,this.setSupportedHidTypes(0),this.setGamepadRsdmm(!1)}FB(){var h,b,k;if(Hn.ko.sendNonEssentialMetricEvents){const ee="PerformanceTiming",he=performance.getEntriesByName("GfnJsInitStart")[0],we=performance.getEntriesByName("platformBegin")[0],ze=performance.getEntriesByName("GfnNskBegin")[0],pt=performance.getEntriesByType("navigation"),wt=Math.round(null!==(h=he?.startTime)&&void 0!==h?h:-1),$t=Math.round(null!==(b=we?.startTime)&&void 0!==b?b:-1);if(this.telemetry.Db(ee,"application timings",wt,$t,Math.round(null!==(k=ze?.startTime)&&void 0!==k?k:-1),$t-wt),!pt.length)return void this.telemetry.Db(ee,"navigation timings unsupported",0,0,0,0);const an=pt[pt.length-1];this.telemetry.Db(ee,"load timings",Math.round(an.loadEventStart),Math.round(an.loadEventEnd),Math.round(an.domContentLoadedEventStart),Math.round(an.domContentLoadedEventEnd))}}LF(h,b){var k;if(4===this.streamingState||0===this.streamingState)return;const ee=this.streamingState;this.streamingState=4,this.telemetry.DO(),this.telemetry.Db("HotPlug","",0,this.gB,0,0),yt(this.Rs)&&this.FF&&(l.Log.d("{0a9be04}","{b9b1288}"),this.captureMic(!1)),this.CD.Pb(),null===(k=this.Jd)||void 0===k||k.stop(h);const he=this.DB.rB(h);he&&(h=qs(h,this.Rs)),Sr(this.zoneAddress,h).then(we=>{var ze;if(h=La(h,we),1!==ee){const pt=ks(h,this.Rs);let wt={code:h,isResumable:pt,isSessionAlive:ea(h,pt),reason:3};b?wt.reason=0:new Set([3237093892,15867907,3237093896,3237093897,3237093898,3237093899,3237093900,3237093895,3237093901,3237093906,3237093929,15867908,15868418,3237094151,3237094158]).has(h)?wt.reason=2:15868672==(268435200&h)&&(wt.reason=1);const an=null===(ze=this.Jd)||void 0===ze?void 0:ze.rE(0);an&&this.delegate.onStreamQualityReport&&this.delegate.onStreamQualityReport(an),this.delegate.onStreamStopped(wt),this.Zx(h,we,he)}this.gF(),this.HF(),this.uF()})}Zx(h,b,k){var ee,he,we,ze;const pt=Ae(h),wt=performance.now()-this.startTime,$t=null!==(he=null===(ee=this.Jd)||void 0===ee?void 0:ee.Vy(0))&&void 0!==he?he:"UNKNOWN",an=null!==(ze=null===(we=this.Jd)||void 0===we?void 0:we.lM())&&void 0!==ze?ze:0;this.telemetry.yO(pt,wt,$t,an,b,k)}AF(){this.pB&&(window.clearTimeout(this.pB),this.pB=0)}lF(){var h,b,k,ee;const he=window.zoneless,we=null!==(b=null===(h=he?.windowAddEventListener)||void 0===h?void 0:h.bind(window))&&void 0!==b?b:window.addEventListener.bind(window),ze=null!==(ee=null===(k=he?.documentAddEventListener)||void 0===k?void 0:k.bind(document))&&void 0!==ee?ee:document.addEventListener.bind(document);we("pagehide",this.IB),we("error",this.PB),ze("visibilitychange",this.UF),navigator.mediaDevices&&navigator.mediaDevices.addEventListener("devicechange",this.xB),hn(this.Rs)&&ze("SystemIdle",this.BB)}uF(){var h,b,k,ee;const he=window.zoneless,we=null!==(b=null===(h=he?.windowRemoveEventListener)||void 0===h?void 0:h.bind(window))&&void 0!==b?b:window.removeEventListener.bind(window),ze=null!==(ee=null===(k=he?.documentRemoveEventListener)||void 0===k?void 0:k.bind(document))&&void 0!==ee?ee:document.removeEventListener.bind(document);we("pagehide",this.IB),we("error",this.PB),ze("visibilitychange",this.UF),navigator.mediaDevices&&navigator.mediaDevices.removeEventListener("devicechange",this.xB),hn(this.Rs)&&(ze("SystemIdle",this.BB),this.AF())}gF(){Hn.Ho&&(window[Us]&&(window[Us].close(),window[Us]=void 0,l.Log.i("{0a9be04}","{0ac2a42}")),window[Na]=void 0,navigator.mediaDevices&&this.bb&&navigator.mediaDevices.removeEventListener("devicechange",this.bb))}wF(){if(!Hn.Ho)return;if(window[Us])return void l.Log.i("{0a9be04}","{e2aba64}");const h=new(window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive",sampleRate:48e3});h.onstatechange=()=>{"suspended"===h.state&&(h.resume(),this.CD.bb(),l.Log.i("{0a9be04}","{faee684}"))},window[Us]=h,window[Na]=h.createMediaStreamDestination(),navigator.mediaDevices&&this.bb&&navigator.mediaDevices.addEventListener("devicechange",this.bb),l.Log.i("{0a9be04}","{b5f7b9b}")}GF(h){if(h.downstreamParams.length)for(const ee of h.downstreamParams){const he=ee.videoTagId,we=document.getElementById(he);if(!(we&&we instanceof HTMLVideoElement))return l.Log.e("{0a9be04}","{543aef4}",he),3237094400;this.ID.push(we)}else if(h.audioTagId){const ee=document.getElementById(h.audioTagId);if(!(ee&&ee instanceof HTMLAudioElement))return 3237094401;this.Sb=ee}const b=!!Hn.To&&!!Hn.Mo,k=!!Hn.fps;if(b||k){for(const ee of h.downstreamParams)b&&(ee.width=Hn.To,ee.height=Hn.Mo),k&&(ee.fps=Hn.fps);b&&l.Log.i("{0a9be04}","{92a6b38}",Hn.To,Hn.Mo),k&&l.Log.d("{0a9be04}","{6618bcd}",Hn.fps)}return h.iceServerConfiguration&&(h.iceServerConfiguration=hi(h.iceServerConfiguration)),15859712}}function yl(x,h,b){return new Is(x,h,b)}z.AuthType=l.AuthType,z.BitDepth=l.BitDepth,z.BrowserName=l.PlatformBrowser,z.ClientHeaderBrowserType=l.ClientHeaderBrowserType,z.ClientHeaderDeviceType=l.ClientHeaderDeviceType,z.ClientHeaderOSType=l.ClientHeaderOSType,z.LogLevel=l.LogLevel,z.NetworkType=l.NetworkType,z.PayloadBrowserType=l.PayloadBrowserType,z.PayloadDeviceType=l.PayloadDeviceType,z.PayloadOSType=l.PayloadOSType,z.PlatformName=l.PlatformOS,z.Profile=l.Profile,z.SdrHdrMode=l.SdrHdrMode,z.performHttpRequest=l.performHttpRequest,z.translatePlatformDetailsForClientHeader=l.translatePlatformInfoForClientHeader,z.translatePlatformDetailsForPayload=l.translatePlatformInfoForPayload,z.AddPlatformTelemetry=no,z.CHANGELIST="master-29265474",z.CLIENT_IDENTIFICATION=rr,z.CLIENT_VERSION=Vn,z.CalculateDataUsage=function(x,h){return Pr(x,h)},z.CalculateMaxBitrateKbps=function(x,h,b){return ur(x,h,b)[0]},z.ChooseStreamingResolution=function(x=0,h){return rs(x,h?.map(b=>({resolution:b,frameRate:60})),oa(),screen.width,screen.height).resolution},z.ChooseStreamingSettings=function(x=0,h,b){return rs(x,h,oa(b),screen.width,screen.height)},z.ConfigureGridServerSettings=function(x){qn(x)},z.ConfigureRagnarokSettings=la,z.GetDeviceCapabilities=hs,z.GetSupportedAudioChannelCount=ra,z.GridApp=class extends Yr{constructor(x){var h,k;super("Log"),this.Rs=x,this.cB=!1,this.Ko=!1,this.kg=new Rr,this.lB=!1,this.uB=void 0,this.AB=void 0,this.vB=!1,this.fB=0,this.pB=0,this.mB=0,this.gB=0,this.wB=!1,this.SB=!1,this.bB=0,this.mO=0,this.useTelemetryV2=!1,l.Logger.isCallbackRegistered()||l.Logger.register(this.Xe.bind(this)),this.kB={clientIdentification:rr,clientVersion:Vn,deviceHashId:"",serverAddress:""},this.startTime=performance.now(),this.yB=this.IB.bind(this),this.CB=this.Pn.bind(this),this.EB=this.TB.bind(this),this.MB=this.PB.bind(this),this.framesDecoded=0,this.RO=new Un,this.useTelemetryV2=null===(h=Hn.ko.useTelemetryV2)||void 0===h||h,this.telemetry=(k=this.RO,this.useTelemetryV2?new fr(this,k):new Ui(this,k)),this.useTelemetryV2&&(this.wO=l.TelemetryModule.createTelemetryProvider(Zs)),this.DB=new Bo(this.telemetry),this.isResume=!1,this.NB=Js,this.ED=new co,window.addEventListener("error",this.MB);const ee=window.zoneless;this.CD=new qt(this.Rs,this.telemetry),this.AB=this.CD.bb.bind(this.CD),this.uB=this.xB.bind(this),this.vr=new Es,this.yg=nr.getInstance(this.Rs,ee),Hn.Fo&&this.yg.uA(this.kg),this.OB=this.BB.bind(this),no(this.telemetry),this.FB(),Hn.ko.sendNonEssentialMetricEvents&&this.telemetry.Db("PlatformDetailsExecutionTime","",this.Rs.totalTime,0,0,0),xt.registerCallback(he=>{var we;null===(we=this.UB)||void 0===we||we.setNetworkType(he)})}GB(){if(this.UB){const x=this.UB.getSessionId(),h=this.UB.getSubSessionId();l.Log.d("{9d1820c}","{2fd42df}",x,h),this.telemetry.Yn(h),this.telemetry.Qn(x),this.DB.reset(x,h),this.RO.vO(x,h)}}PB(x){return l.Log.e("{9d1820c}","{8516485}",x.filename,x.lineno,x.colno),this.telemetry.Ac(x.error,x.error&&x.error.message?x.error.message:x.message,x.filename,x.lineno,x.colno,!1),Hn.ko.terminateUnhandledException&&this.HB(3237093392),!1}VB(){this.bB=this.bB+(performance.now()-this.mB)}WB(x){"hidden"===document.visibilityState&&this.VB();let h=0;x&&(h=Math.max(0,100*(x-this.bB)/x)),this.telemetry.Db("sessionVisibilityMetrics","",h,Math.round(x),Math.round(this.bB),0),this.bB=0,this.mB=0}OO(x){var h;this._B(),this.telemetry.OO(x,!0),this.mO&&(null===(h=this.wO)||void 0===h||h.dropCachedEvent(this.mO),this.mO=0),this.WB(x.streamDuration)}qB(x,h,b,k){var ee,he,we,ze;return{exitErrorCode:Ae(x.error?x.error.code:15859712),sessionId:x.sessionId,subSessionId:x.subSessionId,zoneAddress:x.zoneAddress,streamDuration:h,frameCount:this.framesDecoded,codec:null!==(he=null===(ee=this.Jd)||void 0===ee?void 0:ee.Vy(0))&&void 0!==he?he:"UNKNOWN",isResume:this.isResume,connectivityInfo:b,sleep:null!=k&&k,networkTestSessionId:null!==(ze=null===(we=this.$B)||void 0===we?void 0:we.zB.networkSessionId)&&void 0!==ze?ze:""}}KB(){var x,h;this.vB||(this.vB=!0,this.HB((null!==(x=this.QB)&&void 0!==x?x:null!==(h=this.Jd)&&void 0!==h&&h.uN())?15867912:15867905))}IB(x){this.KB()}Pn(x){l.Log.i("{9d1820c}","{a9a135f}"),this.RO.AO()}TB(x){var h;if(l.Log.i("{9d1820c}","{478a408}",document.visibilityState,!!this.Jd),!this.Jd)return;const b=this.$B.YB[0].Af,k=pi(this.Rs,15,4)&&Hn._o,ee=pi(this.Rs,15,4)&&this.Ko&&Hn.Wo;if("hidden"===document.visibilityState)this.mB=performance.now(),k&&(l.Log.i("{9d1820c}","{cbd3b6e}"),b.muted=!0),this.XB();else if("visible"===document.visibilityState)if(this.VB(),k&&(l.Log.i("{9d1820c}","{05deefa}"),b.muted=!1),ee){const he=null!==(h=Hn.ko.userTerminatedMicRecorderThreshold)&&void 0!==h?h:2e3;this.mB-this.CD.Rb()<he?(l.Log.i("{9d1820c}","{862bd20}"),this.CD.kb(!0),this.setMicRecordingEnabled(!0,this.jB)):(this.Ko=!1,this.jB=void 0)}else pi(this.Rs,15,4)&&!this.CD.Nb()&&this.CD.Ob()&&this.CD.xb()&&this.CD.yb("visibilityChange")}JB(x){l.Log.d("{9d1820c}","{972bb72}",JSON.stringify(x)),this.telemetry.dispatchEvent(x)}ZB(x){this.emit("ActiveSessionsResult",x)}tF(x){this.emit("ProgressUpdate",x)}iF(x){this.emit("SessionUpdate",x)}sF(x){var h,b,k,ee,he,we,ze,pt,wt,$t,an;l.Log.d("{9d1820c}","{3c652b7}"),this.GB(),x.addListener("TelemetryEvent",this.JB.bind(this)),x.addListener("Log",this.Xe.bind(this)),x.addListener("ActiveSessionsResult",this.ZB.bind(this)),x.addListener("ProgressUpdate",this.tF.bind(this)),x.addListener("SessionUpdate",this.iF.bind(this)),this.kB.clientHeaders=null!==(h=this.kB.clientHeaders)&&void 0!==h?h:new Map;const zt=Hn.clientType||this.kB.clientType||"BROWSER",mn="NATIVE"!==zt;mn&&this.kB.clientHeaders.set("nv-browser-version",this.Rs.browserFullVer),function(yn){for(const[Qn,li]of yn)Hn.deviceOs&&"nv-device-os"===Qn.toLowerCase()&&yn.set(Qn,Hn.deviceOs),Hn.deviceType&&"nv-device-type"===Qn.toLowerCase()&&yn.set(Qn,Hn.deviceType),Hn.deviceModel&&"nv-device-model"===Qn.toLowerCase()&&yn.set(Qn,Hn.deviceModel),Hn.clientStreamer&&"nv-client-streamer"===Qn.toLowerCase()&&yn.set(Qn,Hn.clientStreamer),Hn.clientId&&"nv-client-id"===Qn.toLowerCase()&&yn.set(Qn,Hn.clientId)}(this.kB.clientHeaders);const kn={deviceOs:null!==(k=null!==(b=Hn.deviceOs)&&void 0!==b?b:this.Rs.os)&&void 0!==k?k:this.Rs.deviceOS,deviceOsVer:null!==(ee=this.Rs.osVersion)&&void 0!==ee?ee:this.Rs.osVer,deviceType:null!==(we=null!==(he=Hn.deviceType)&&void 0!==he?he:this.Rs.platformType)&&void 0!==we?we:this.Rs.deviceType,deviceModel:null!==(pt=null!==(ze=Hn.deviceModel)&&void 0!==ze?ze:this.Rs.model)&&void 0!==pt?pt:this.Rs.deviceModel,clientIdentification:null!==(wt=this.kB.clientIdentification)&&void 0!==wt?wt:rr,clientVersion:null!==($t=this.kB.clientVersion)&&void 0!==$t?$t:Vn,clientAppVersion:this.kB.clientAppVersion,clientStreamer:null!==(an=Hn.clientStreamer)&&void 0!==an?an:"WEBRTC",clientId:Hn.clientId||this.kB.clientId,browserType:mn?this.Rs.browser:void 0,clientPlatformName:Hn.clientPlatformName||"browser",clientType:zt,deviceHashId:this.kB.deviceHashId,serverAddress:this.kB.serverAddress,authTokenCallback:this.kB.authTokenCallback,clientHeaders:this.kB.clientHeaders};x.initialize(kn),x.setNetworkType(xt.getCurrentNetworkType())}initialize(x,h=Js){var b,k,ee,he,we,ze,pt;return l.Log.i("{9d1820c}","{2569364}",tt),l.Log.d("{9d1820c}","{e85ad66}",navigator.userAgent),x?(Object.assign(this.kB,x),null===(b=this.UB)||void 0===b||b.uninitialize(),!this.kB.serverAddress||be(this.kB.serverAddress)?(l.Log.d("{9d1820c}","{e2d9a04}"),this.UB=new Ua):this.UB=new Ms(this.Rs,!0),this.sF(this.UB),this.NB={...h},null!==(k=(we=this.NB).windowedStreaming)&&void 0!==k||(we.windowedStreaming=this.kB.windowedStreaming),null!==(ee=(ze=this.NB).windowedStreaming)&&void 0!==ee||(ze.windowedStreaming=2===h.cursorType),null!==(he=(pt=this.NB).cursorType)&&void 0!==he||(pt.cursorType=this.kB.cursorType),this.telemetry.NO(this.kB.clientShutDownCallback),!0):(l.Log.e("{9d1820c}","{a98b177}"),!1)}downloadAudio(){this.ED.downloadAudio()}updateEventDataElements(x){var h,b,k,ee,$t,an,zt,mn,li,wi,mi,Bi,qi,sr;if(l.Log.i("{9d1820c}","{4008dc4}",JSON.stringify(x)),this.useTelemetryV2){const he=x.commonData,we=x.config;if(we){const $t=this.RO.jx(we),an=(li=he,{clientVariant:null!==(wi=li?.clientVariant)&&void 0!==wi?wi:"undefined",clientType:null!==(mi=li?.clientType)&&void 0!==mi?mi:"undefined",clientVer:null!==(Bi=li?.clientVer)&&void 0!==Bi?Bi:"undefined",productName:null!==(qi=li?.productName)&&void 0!==qi?qi:"undefined",productVersion:null!==(sr=li?.productVersion)&&void 0!==sr?sr:"undefined"}),zt=l.translatePlatformInfoForPayload(this.Rs),mn=he?.deviceModel||this.Rs.model||this.Rs.deviceModel,kn=he?.deviceMake||this.Rs.make||this.Rs.vendor,yn=(null!==(h=he?.deviceOSVersion)&&void 0!==h?h:"")||this.Rs.osVersion||this.Rs.osVer,Qn={...this.Rs,deviceId:null!==(b=he?.deviceId)&&void 0!==b?b:"",deviceOS:zt.os,deviceOSVersion:yn,osVersion:yn,deviceType:zt.deviceType,deviceModel:mn,model:mn,deviceMake:kn,make:kn,browserType:zt.browser};l.TelemetryModule.configure(an,Qn,$t??l.UploadEnvironment.STAGING)}const ze={userId:null==(ee=he)?void 0:ee.userId,externalUserId:ee?.externalUserId,idpId:ee?.idpId},pt=($t=he,{gdprFuncOptIn:null!==(an=$t?.gdprFuncOptIn)&&void 0!==an?an:l.ConsentLevel.NONE,gdprTechOptIn:null!==(zt=$t?.gdprTechOptIn)&&void 0!==zt?zt:l.ConsentLevel.NONE,gdprBehOptIn:null!==(mn=$t?.gdprBehOptIn)&&void 0!==mn?mn:l.ConsentLevel.NONE}),wt=function($t){var an,zt,mn;return{deviceGdprFuncOptIn:null!==(an=$t?.deviceGdprFuncOptIn)&&void 0!==an?an:l.ConsentLevel.NONE,deviceGdprTechOptIn:null!==(zt=$t?.deviceGdprTechOptIn)&&void 0!==zt?zt:l.ConsentLevel.NONE,deviceGdprBehOptIn:null!==(mn=$t?.deviceGdprBehOptIn)&&void 0!==mn?mn:l.ConsentLevel.NONE}}(he);l.TelemetryModule.updateClientCommonData(ze,wt,pt,he?.integrationId)}this.RO.updateEventDataElements(x),x.telemetryEventIds&&(l.TelemetryModule.setTelemetryEventIds(x.telemetryEventIds),null===(k=this.UB)||void 0===k||k.updateTelemetryEventIds(x.telemetryEventIds)),this.Jd&&!this.lB&&this.XB()}getActiveSessions(){if(this.UB)this.UB.getAllActiveSessions();else{const x={sessionList:[],error:this.eF("ActiveSessions")};this.emit("ActiveSessionsResult",x)}}nF(x){var h,b,k,ee,he,we,ze,pt,wt,$t,an;let zt={sessionId:null!==(b=null===(h=this.UB)||void 0===h?void 0:h.getSessionId())&&void 0!==b?b:"",subSessionId:null!==(ee=null===(k=this.UB)||void 0===k?void 0:k.getSubSessionId())&&void 0!==ee?ee:"",error:{code:3237089284,description:"Quitting due to exception"},streamInfo:null===(he=this.hF)||void 0===he?void 0:he.streamInfo,zoneName:null!==(ze=null===(we=this.UB)||void 0===we?void 0:we.getZoneName())&&void 0!==ze?ze:"",zoneAddress:null!==(wt=null===(pt=this.UB)||void 0===pt?void 0:pt.getZoneAddress())&&void 0!==wt?wt:"",gpuType:null!==(an=null===($t=this.UB)||void 0===$t?void 0:$t.getGpuType())&&void 0!==an?an:"",isResume:this.isResume};this.lN(zt,!0),l.Log.e("{9d1820c}","{90f98fb}",x),this.telemetry.Ac(x,"Exception happened in session call","{9d1820c}.ts",0,0,!0)}oF(x,h,b){this.lN({sessionId:h,subSessionId:b,error:x,zoneName:"",zoneAddress:"",gpuType:"",isResume:this.isResume},!0)}rF(x,h,b){var k;if(this.hF=void 0,this.SB=!1,this.UB){this.yg.Hu(h.zB.additionalInputDevices),h.zB.remoteControllersBitmap=this.yg.Tv();try{this.telemetry.Jx(h.zB.appId,null!==(k=h.zB.shortName)&&void 0!==k?k:""),this.startTime=performance.now(),this.DB.hB(),l.Log.d("{9d1820c}","{892168d}",Jn(JSON.stringify(h.zB)));const ee=this.UB;ee.putOrPostSession(h.zB,x,b).then(he=>{if(!he)throw{code:3237093381,message:"Server response does not contain session information"};return this.GB(),l.Log.d("{9d1820c}","{92a2573}",he.sessionId,he.subSessionId),"ready_for_connection"===he.state?(l.Log.d("{9d1820c}","{2042e0a}"),this.hF=he,this.hF.iceServerConfiguration=h.zB.iceServerConfiguration,new Promise((we,ze)=>{we(he)})):ee.getSession(he.sessionId,!0)}).then(he=>{this.hF=he,this.hF&&(this.hF.iceServerConfiguration=h.zB.iceServerConfiguration),l.Log.d("{9d1820c}","{315afdc}",he?.sessionId),this.startStreaming(h)}).catch(he=>{var we,ze,pt,wt,$t,an;if(this.GB(),he.code){15867905!=he.code&&15867906!=he.code||ee.getSessionId()&&!this.SB&&this.sendDeleteRequest(ee.getSessionId(),ee),l.Log.e("{9d1820c}","{09efe49}",Ae(he.code));let zt={sessionId:null!==(we=ee.getSessionId())&&void 0!==we?we:"",subSessionId:null!==(ze=ee.getSubSessionId())&&void 0!==ze?ze:"",error:he,sessionList:he.sessionList,streamInfo:null===(pt=this.hF)||void 0===pt?void 0:pt.streamInfo,zoneName:null!==(wt=ee.getZoneName())&&void 0!==wt?wt:"",zoneAddress:null!==($t=ee.getZoneAddress())&&void 0!==$t?$t:"",gpuType:null!==(an=ee.getGpuType())&&void 0!==an?an:"",isResume:this.isResume};this.lN(zt,!0)}else this.nF(he)})}catch(ee){this.nF(ee)}}else{const ee={sessionId:"",subSessionId:"",zoneName:"",zoneAddress:"",gpuType:"",isResume:this.isResume,error:this.eF(this.isResume?"Resume":"Start")};this.emit("SessionStartResult",ee)}}aF(x){this.telemetry.Ke("SessionSetupInProgressError",x?"resume":"start")}dF(x){var h,b,k,ee,he,we,ze,pt,wt;return this.RO.nO(x,null!==(b=null===(h=this.UB)||void 0===h?void 0:h.getSessionId())&&void 0!==b?b:"",null!==(ee=null===(k=this.UB)||void 0===k?void 0:k.getSubSessionId())&&void 0!==ee?ee:"",(null===(he=this.UB)||void 0===he?void 0:he.getZoneAddress())||this.kB.serverAddress,performance.now()-this.startTime,null!==(ze=null===(we=this.Jd)||void 0===we?void 0:we.lM())&&void 0!==ze?ze:0,null!==(wt=null===(pt=this.Jd)||void 0===pt?void 0:pt.Vy(0))&&void 0!==wt?wt:"UNKNOWN",this.isResume)}_B(){0!==this.fB&&(window.clearTimeout(this.fB),this.fB=0)}XB(){var x,h,b;const k=this.dF(Ae(null!==(x=this.QB)&&void 0!==x?x:15867911)),ee=this.fB;let he;this.useTelemetryV2?(this.mO=null!==(b=null===(h=this.wO)||void 0===h?void 0:h.cacheEvent({name:k.name,gdprLevel:k.gdprLevel,priority:!0,ts:k.ts,parameters:k.parameters},this.mO))&&void 0!==b?b:0,he=Promise.resolve()):he=this.RO.dO(),he.then(()=>{ee===this.fB&&this.cF()}).catch(()=>{l.Log.e("{9d1820c}","{204a7ac}")})}cF(){this._B(),this.fB=window.setTimeout(()=>this.XB(),12e4)}lF(){window.addEventListener("pagehide",this.yB),window.addEventListener("online",this.CB),document.addEventListener("visibilitychange",this.EB),navigator.mediaDevices&&navigator.mediaDevices.addEventListener("devicechange",this.uB)}FB(){var x,h,b;if(Hn.ko.sendNonEssentialMetricEvents){const k="PerformanceTiming",ee=performance.getEntriesByName("GfnJsInitStart")[0],he=performance.getEntriesByName("platformBegin")[0],we=performance.getEntriesByName("GfnRBegin")[0],ze=performance.getEntriesByType("navigation"),pt=Math.round(null!==(x=ee?.startTime)&&void 0!==x?x:-1),wt=Math.round(null!==(h=he?.startTime)&&void 0!==h?h:-1);if(this.telemetry.Db(k,"application timings",pt,wt,Math.round(null!==(b=we?.startTime)&&void 0!==b?b:-1),wt-pt),!ze.length)return void this.telemetry.Db(k,"navigation timings unsupported",0,0,0,0);const $t=ze[ze.length-1];this.telemetry.Db(k,"load timings",Math.round($t.loadEventStart),Math.round($t.loadEventEnd),Math.round($t.domContentLoadedEventStart),Math.round($t.domContentLoadedEventEnd))}}uF(){window.removeEventListener("pagehide",this.yB),window.removeEventListener("online",this.CB),document.removeEventListener("visibilitychange",this.EB),navigator.mediaDevices&&navigator.mediaDevices.removeEventListener("devicechange",this.uB),hn(this.Rs)&&(document.removeEventListener("SystemIdle",this.OB),this.AF())}vF(x){this.QB=void 0,this.RO.AO(),this.wB=!0,this.lF(),this.isResume=x,this.lB&&this.aF(this.isResume),this.lB=!0}startSession(x){this.vF(!1);const h=this.fF(x);h&&this.rF(0,h)}updateAdState(x){var h;return this.UB?null===(h=this.UB)||void 0===h?void 0:h.updateAdState(x):3237093380}getSession(x){if(this.UB)this.UB.getSession(x,!1).then(h=>{var b,k;let ee={sessionId:null!==(b=h?.sessionId)&&void 0!==b?b:"",appId:h?.appId,subSessionId:null!==(k=h?.subSessionId)&&void 0!==k?k:"",state:h?.state,status:h?.state};this.emit("GetSessionResult",ee)}).catch(h=>{var b,k;let ee={sessionId:x,subSessionId:null!==(k=null===(b=this.UB)||void 0===b?void 0:b.getSubSessionId())&&void 0!==k?k:"",error:h};this.emit("GetSessionResult",ee)});else{const h={sessionId:"",subSessionId:"",error:this.eF("GetSession")};this.emit("GetSessionResult",h)}}resume(){this.resumeSession(this.$B.zB,this.UB.getSessionId())}resumeSession(x,h){this.vF(!0);const b=this.fF(x);b&&this.rF(2,b,h)}stopSession(x,h){var b,k,ee,he,we,ze,pt;if(this.UB)if(void 0!==h&&l.Log.i("{9d1820c}","{ae7f61b}",Ae(h)),x===this.UB.getSessionId()||void 0===x){15867910===h?this.SB=!0:this.cB=!1,this.CD.Pb(),this.framesDecoded=null!==(k=null===(b=this.Jd)||void 0===b?void 0:b.lM())&&void 0!==k?k:0,this.DB.oB();const wt=this.qB({sessionId:null!==(ee=this.UB.getSessionId())&&void 0!==ee?ee:"",subSessionId:null!==(he=this.UB.getSubSessionId())&&void 0!==he?he:"",error:h?{code:h}:void 0,zoneName:null!==(we=this.UB.getZoneName())&&void 0!==we?we:"",zoneAddress:this.UB.getZoneAddress()||this.kB.serverAddress,gpuType:null!==(ze=this.UB.getGpuType())&&void 0!==ze?ze:"",isResume:this.isResume},performance.now()-this.startTime);x=null!==(pt=this.UB.getSessionId())&&void 0!==pt?pt:"",this.Jd?(this.wB=!1,this.uF(),this.Jd.uN()&&this.OO(wt),this.pF(h??(this.Jd.uN()?15859712:15867905)),15867910===h?(l.Log.d("{9d1820c}","{12bc45e}",x),this.mF(x)):this.sendDeleteRequest(x,this.UB)):this.hF?this.mF(x):this.cancelSessionSetup()}else x&&this.sendDeleteRequest(x,this.UB);else{const wt={sessionId:"",subSessionId:"",error:this.eF("StopSession")};this.emit("SessionStopResult",wt)}}pauseSession(x){this.stopSession(x,15867910)}startStreaming(x){var h,b,k,ee,he;const we={sessionId:null!==(b=null===(h=this.UB)||void 0===h?void 0:h.getSessionId())&&void 0!==b?b:"",subSessionId:null!==(ee=null===(k=this.UB)||void 0===k?void 0:k.getSubSessionId())&&void 0!==ee?ee:"",progressState:"StartingStreamer",queuePosition:0,eta:0,ads:[],isAdsRequired:!1};this.emit("SessionUpdate",we);const ze={...we,state:we.progressState};this.emit("ProgressUpdate",ze);const pt=be(this.kB.serverAddress)?"":this.kB.serverAddress.split(".")[0],{Af:wt}=x.YB[0];if(pi(this.Rs,15)){const kn="streamKitOldPlay",yn=wt;yn[kn]||(yn[kn]=wt.play);const Qn=Hn.Go&&ti(this.Rs,15,1);wt.play=()=>{if(Hn.Ho&&(l.Log.i("{9d1820c}","{4a5b360}"),this.gF(),this.wF(),this.CD.bb()),Qn){l.Log.i("{9d1820c}","{8f5cd77}");const li=wt.srcObject;wt.srcObject=null,wt.srcObject=li}return yn[kn].apply(wt)}}if(Hn.Vo&&(ti(this.Rs,15,0)||ti(this.Rs,15,1))){const kn="data-shouldautoplay",yn="autoplay";wt.hasAttribute(kn)?wt.setAttribute(yn,""):(wt.setAttribute(kn,""),wt.removeAttribute(yn))}const $t=x.zB.streamParams[0];let mn;this.Jd=new Ne(this,[wt],this.CD,this.NB,this.kg,this.yg,this.telemetry,this.Rs,this.hF,this.vr,this.isResume,this.ED,[{width:$t.width,height:$t.height,fps:$t.fps,videoTagId:$t.videoTagId,dynamicStreamingMode:$t.drc?3:!1===$t.drc?0:void 0,maxBitrateKbps:$t.maxBitrateKbps}],void 0,this.kB.textInputElement,this.kB.clientAppVersion,pt,$t.sendVideoTrack?[{track:$t.sendVideoTrack}]:void 0,x.zB.signalingUrlQueryParameters),this.Jd.start(),x.zB.keyboardLayout&&this.Jd.setKeyboardLayout(x.zB.keyboardLayout),this.useTelemetryV2?(null===(he=this.wO)||void 0===he||he.processCachedEvent(this.mO),mn=Promise.resolve()):mn=this.telemetry.lO(!0),mn.then(()=>{this.XB()}).catch(()=>{l.Log.e("{9d1820c}","{c761bfd}")})}SF(x){this.lB=!1,x.error&&(this.wB=!1,this.uF()),this.emit("SessionStartResult",x)}bF(x,h,b){var k,ee,he,we,ze;if(this.gF(),b){const pt=b.connectivityInfo;if(pt&&!pt.Pn){this._B();const wt=this.dF(Ae(null!==(ee=null===(k=x.error)||void 0===k?void 0:k.code)&&void 0!==ee?ee:15867911));this.useTelemetryV2?this.mO=null!==(we=null===(he=this.wO)||void 0===he?void 0:he.cacheEvent({name:wt.name,gdprLevel:wt.gdprLevel,priority:!0,ts:wt.ts,parameters:wt.parameters},this.mO))&&void 0!==we?we:0:this.RO.dO().catch(()=>{l.Log.e("{9d1820c}","{0c2de99}")})}else this.OO(b)}if(this.pF(x.error?x.error.code:15859712),h)this.SF(x);else{if(x.error){const pt=ks(x.error.code,this.Rs),wt=x;wt.isResumable=pt,wt.isSessionAlive=ea(x.error.code,pt),l.Log.i("{9d1820c}","{723f7be}",pt)}if(this.wB=!1,this.lB=!1,this.uF(),this.Jd){const pt=null===(ze=this.Jd)||void 0===ze?void 0:ze.rE(0);pt&&this.emit("StreamQualityReport",pt)}this.emit("StreamStopped",x)}}pF(x){this.Jd&&(this.Jd.stop(x),this.Jd=void 0)}mF(x,h){var b,k;const ee={sessionId:x,subSessionId:null!==(k=null===(b=this.UB)||void 0===b?void 0:b.getSubSessionId())&&void 0!==k?k:"",framesDecoded:this.framesDecoded,error:h};this.gF(),yt(this.Rs)&&this.Ko&&(l.Log.d("{9d1820c}","{b9b1288}"),this.setMicRecordingEnabled(!1)),this.emit("SessionStopResult",ee)}lN(x,h){var b,k,ee,he,we,ze;if(x.error){const pt=this.DB.rB(x.error.code);pt&&(x.error.code=qs(x.error.code,this.Rs)),Sr(this.kB.serverAddress,x.error.code).then(wt=>{var $t,an,zt;let mn;this.framesDecoded=null!==(an=null===($t=this.Jd)||void 0===$t?void 0:$t.lM())&&void 0!==an?an:0,x.zoneAddress||(x.zoneAddress=this.kB.serverAddress),x.error&&(x.error.code=La(x.error.code,wt)),h||(mn=this.qB(x,0,wt,pt),this.QB=null===(zt=x.error)||void 0===zt?void 0:zt.code),this.bF(x,!0,mn)})}else this.telemetry.xO(x.sessionId,x.subSessionId,this.isResume,x.zoneAddress||this.kB.serverAddress,Math.round(performance.now()-this.startTime),Ae(15859712),null!==(k=null===(b=this.Jd)||void 0===b?void 0:b.Vy(0))&&void 0!==k?k:"UNKNOWN",this.$B?String(null===(ee=this.$B)||void 0===ee?void 0:ee.zB.appId):"",null!==(we=null===(he=this.$B)||void 0===he?void 0:he.zB.networkSessionId)&&void 0!==we?we:""),this.startTime=performance.now(),"hidden"===document.visibilityState&&(this.mB=this.startTime),this.bB=0,this.isResume&&this.Ko&&this.setMicRecordingEnabled(!0,this.jB),this.SF(x),this.cB&&(null===(ze=this.Jd)||void 0===ze||ze.toggleUserInput(!0,this.inputs)),hn(this.Rs)&&document.addEventListener("SystemIdle",this.OB)}tN(x){var h,b;this.CD.Pb(),l.Log.d("{9d1820c}","{a94b484}");let k=this.DB.rB(x.error.code);k&&(x.error.code=qs(x.error.code,this.Rs)),this.framesDecoded=null!==(b=null===(h=this.Jd)||void 0===h?void 0:h.lM())&&void 0!==b?b:0,x.zoneAddress||(x.zoneAddress=this.kB.serverAddress),Sr(this.kB.serverAddress,x.error.code).then(ee=>{x.error.code=La(x.error.code,ee);const he=this.qB(x,performance.now()-this.startTime,ee,k);this.QB=x.error.code,this.telemetry.Db("HotPlug","",0,this.gB,0,0),this.gB=0,this.bF(x,!1,he)})}bS(){this.AF()}fF(x){var h,b,k;let ee={zB:Object.assign({},x),YB:[]};if(ee.zB.streamParams)for(const pt of ee.zB.streamParams){const wt=document.getElementById(pt.videoTagId);if(null==wt||!(wt instanceof HTMLVideoElement))return void this.oF({code:3237094400,description:"Didn't find video element for videoTagId: "+pt.videoTagId},"",ui());ee.YB.push({Af:wt})}var he;if(ee.zB.keyboardLayout=null!==(h=ee.zB.keyboardLayout)&&void 0!==h?h:Ji(this.Rs)?"m-us":"en_US",void 0!==ee.zB.appLaunchMode&&0!==ee.zB.appLaunchMode||(ee.zB.appLaunchMode=Pt()||gn(this.Rs)||rt(this.Rs)||((he=this.Rs).platformType||he.deviceType)===l.PlatformType.HMD?1:0),Hn.Xo)if(ee.zB.metaData)for(const pt in Hn.Xo)ee.zB.metaData[pt]=Hn.Xo[pt];else ee.zB.metaData=Hn.Xo;void 0!==Hn.appLaunchMode&&(ee.zB.appLaunchMode=Hn.appLaunchMode,l.Log.d("{9d1820c}","{c4969b1}",Hn.appLaunchMode));const we=!!Hn.To&&!!Hn.Mo,ze=!!Hn.fps;return(we||ze)&&(null===(b=ee.zB.streamParams)||void 0===b||b.forEach(pt=>{we&&(pt.width=Hn.To,pt.height=Hn.Mo),ze&&(pt.fps=Hn.fps)}),null===(k=ee.zB.monitorSettings)||void 0===k||k.forEach(pt=>{we&&(pt.widthInPixels=Hn.To,pt.heightInPixels=Hn.Mo),ze&&(pt.framesPerSecond=Hn.fps)}),we&&l.Log.i("{9d1820c}","{92a6b38}",Hn.To,Hn.Mo),ze&&l.Log.d("{9d1820c}","{6618bcd}",Hn.fps)),ee.zB.iceServerConfiguration&&(ee.zB.iceServerConfiguration=hi(ee.zB.iceServerConfiguration)),this.$B=ee,this.$B}sendDeleteRequest(x,h){h.sendDeleteRequest(x).then(()=>{l.Log.d("{9d1820c}","{fee1eea}",x),this.mF(x)},b=>{l.Log.e("{9d1820c}","{50e2a6e}",x),this.mF(x,b)})}isMicSupported(){return qt.isMicSupported()}setMicRecordingEnabled(x,h){l.Log.i("{9d1820c}","{f5b2f30}",x),x?(this.Ko=!0,this.jB=h,this.CD.Ib(this.jB)):(this.Ko=!1,this.jB=void 0,this.CD.wb())}getMicState(){this.CD.pb()}shouldDefaultEnableMic(){return yi(this.Rs)}sendCustomMessage(x){var h;null===(h=this.Jd)||void 0===h||h.sendCustomMessage(x)}toggleUserInput(x,h){var b;null===(b=this.Jd)||void 0===b||b.toggleUserInput(x,h),this.cB=x,this.inputs=h}toggleRsdmm(x){var h;null===(h=this.Jd)||void 0===h||h.toggleRsdmm(x)}getVirtualGamepadHandler(){var x;return null===(x=this.Jd)||void 0===x?void 0:x.getVirtualGamepadHandler()}setAuthInfo(x){var h;null===(h=this.UB)||void 0===h||h.setAuthInfo(x)}sendTextInput(x){var h;null===(h=this.Jd)||void 0===h||h.sendTextInput(x)}setVirtualKeyboardState(x){var h;null===(h=this.Jd)||void 0===h||h.setVirtualKeyboardState(x)}setVideoTransforms(x,h,b){var k;null===(k=this.Jd)||void 0===k||k.setVideoTransforms(x,h,b)}toggleOnScreenStats(){var x;Hn.isInternalUser&&(null===(x=this.Jd)||void 0===x||x.toggleOnScreenStats())}toggleStutterIndicator(){var x;null===(x=this.Jd)||void 0===x||x.toggleStutterIndicator()}setKeyboardLayout(x){var h;l.Log.i("{9d1820c}","{10717a6}",x),null===(h=this.Jd)||void 0===h||h.setKeyboardLayout(x)}sendKeyEvent(x){var h;null===(h=this.Jd)||void 0===h||h.sendKeyEvent(x)}setStreamingMaxBitrate(x,h=0){var b;null===(b=this.Jd)||void 0===b||b.setStreamingMaxBitrate(h,x)}setDrcDfcState(x,h=0){var b;null===(b=this.Jd)||void 0===b||b.setDrcDfcState(h,x?3:0)}setHdr10PlusGaming(x,h){var b;null===(b=this.Jd)||void 0===b||b.yD(x,h??0)}startInputPlayback(x){var h;null===(h=this.Jd)||void 0===h||h.startInputPlayback(x)}wF(){if(!Hn.Ho)return;if(window[Fs])return void l.Log.i("{9d1820c}","{e2aba64}");const x=new(window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive",sampleRate:48e3});x.onstatechange=()=>{"suspended"===x.state&&(x.resume(),this.CD.bb(),l.Log.i("{9d1820c}","{faee684}"))},window[Fs]=x,window[Qs]=x.createMediaStreamDestination(),navigator.mediaDevices&&this.AB&&navigator.mediaDevices.addEventListener("devicechange",this.AB),l.Log.i("{9d1820c}","{b5f7b9b}")}gF(){Hn.Ho&&(window[Fs]&&(window[Fs].close(),window[Fs]=void 0,l.Log.i("{9d1820c}","{0ac2a42}")),window[Qs]=void 0,navigator.mediaDevices&&this.AB&&navigator.mediaDevices.removeEventListener("devicechange",this.AB))}BB(x){var h;x.detail.idle&&(null===(h=this.Jd)||void 0===h||h.vN(2,60),this.pB=window.setTimeout(()=>{var b;null===(b=this.Jd)||void 0===b||b.VR(15867913)},6e4))}AF(){this.pB&&(window.clearTimeout(this.pB),this.pB=0)}xB(){this.CD.Bb(this.gB),this.gB++}HB(x){var h,b,k,ee,he,we,ze,pt,wt,$t;if(!this.wB)return;this.wB=!1,this.framesDecoded=null!==(b=null===(h=this.Jd)||void 0===h?void 0:h.lM())&&void 0!==b?b:0;const an={sessionId:null!==(ee=null===(k=this.UB)||void 0===k?void 0:k.getSessionId())&&void 0!==ee?ee:"",subSessionId:null!==(we=null===(he=this.UB)||void 0===he?void 0:he.getSubSessionId())&&void 0!==we?we:"",zoneName:null!==(pt=null===(ze=this.UB)||void 0===ze?void 0:ze.getZoneName())&&void 0!==pt?pt:"",zoneAddress:(null===(wt=this.UB)||void 0===wt?void 0:wt.getZoneAddress())||this.kB.serverAddress,error:{code:x}},zt=this.qB(an,performance.now()-this.startTime);this.CD.Pb(),this.Jd&&!(null!==($t=this.Jd)&&void 0!==$t&&$t.uN())||this.OO(zt),this.pF(x),this.cancelSessionSetup()}cancelSessionSetup(){!this.Jd&&this.UB&&this.UB.cancelSessionSetup()}eF(x){return{code:3237093380,description:x+" called before initialize"}}},z.GridServer=Ms,z.GridServerSettings=Ut,z.GsErrorCode=z.ScErrorCode,z.InitializeUtils=function(){},z.IsFeatureSupported=Pn,z.LogImpl=io,z.MediaTrackKind=z.TrackType,z.PassThruServer=Ua,z.RNotificationCode=z.StreamWarningType,z.VirtualGamepadHandler=vi,z.configureSessionControlSettings=qn,z.configureStreamKitSettings=la,z.createNskStreamClient=yl,z.createSessionControl=function(x){const h=new Xs;if(h.init(x))return h;throw new Error("Session Control initialization failure.")},z.createStreamClient=yl,z.decodeWsErrorCodes=function(x){switch(x){case 3237101567:return 1e3;case 3237101566:return 1001;case 3237101565:return 1002;case 3237101564:return 1003;case 3237101562:return 1005;case 3237093890:return 1006;case 3237101560:return 1007;case 3237101559:return 1008;case 3237101558:return 1009;case 3237101557:return 1010;case 3237101556:return 1011;case 3237101555:return 1012;case 3237101554:return 1013;case 3237101553:return 1014;case 3237101552:return 1015;case 3237101551:return 3e3;case 3237101550:return 3003;case 3237101549:return 3008}if(x>=3237097472&&x<=3237101567)return x-3237097472+4e3},z.defaultInputConfigFlags=Js,z.estimateDataUsage=Pr,z.getDeviceCapabilities=Gs,z.getNetworkTypeDetector=function(){return xt},z.getPlatformDetails=Fo,z.getRecommendedBitrate=ur,z.getResumableSession=function(x,h){for(const b of x)if(b.appId===h&&oo(b.state))return b},z.getStreamStartParameters=function(x){const h=JSON.parse(x),b={downstreamParams:[],signalConnectionInfo:{address:"",port:0},enableTouchInput:2===h.appLaunchMode,sessionId:h.sessionId,subSessionId:h.subSessionId,audioTagId:"",zoneAddress:h.zoneAddress,statTelemetryInfo:{appId:h.appId,zoneName:h.zoneName,gpuType:h.gpuType},streamingFeatures:h.finalizedStreamingFeatures};for(const k of h.monitorSettings)b.downstreamParams.push({width:k.widthInPixels,height:k.heightInPixels,fps:k.framesPerSecond,videoTagId:"",sdrHdrMode:k.sdrHdrMode});for(const k of h.connectionInfo)switch(k.usage){case 14:b.signalConnectionInfo.address=k.ip,b.signalConnectionInfo.port=k.port,b.signalConnectionInfo.secure=5===k.appLevelProtocol,b.signalConnectionInfo.resourcePath=k.resourcePath;break;case 2:case 17:b.mediaConnectionInfo={address:k.ip,port:k.port}}return b},z.getStreamerType=function(){return"WEBRTC"},z.getSupportedCodecs=Ts,z.isCancelCode=Jr,z.isFeatureSupported=Pn,z.isNetworkCode=Qo,z.isResumableSessionState=oo,z.prefetchDeviceCapabilities=function(){Ca.Yb()},z.registerDeviceCapabilitiesChanged=function(x){Ca.jb(x)},z.registerLogCallback=function(x){x?l.Logger.register(x):l.Logger.unregister()},z.serializeDeviceCapabilities=function(x){return JSON.stringify(x)},z.shouldDefaultEnableMic=yi,z.unregisterDeviceCapabilitiesChanged=function(x){Ca.Jb(x)},z.updateSessionParameters=function(x,h){var b;const k=JSON.parse(h);x.monitorSettings=null!==(b=k.clientRequestMonitorSettings)&&void 0!==b?b:[],x.streamingFeatures=k.requestedStreamingFeatures}},352:(Bt,z,s)=>{var n=s(8536).default;(()=>{"use strict";var l={36:(y,f,O)=>{Object.defineProperty(f,"__esModule",{value:!0}),f.LogUploader=void 0;const P=O(623),_=O(596),i=O(614),r=O(492),a="loguploader";f.LogUploader=class{constructor(c,m,M,D,I,U,V=P.UploadEnvironment.PROD){var T=this;this.buffer=new _.LogBuffer(512e3),this.loggingIntervalId=0,this.isUploadInProgress=!1,this.finishRequested=!1,this.uploadChunk=n(function*(N=!1){if(T.isUploadInProgress)return;T.isUploadInProgress=!0;const L=T.buffer.getData();T.buffer.clear(),yield T.loggingService.sendChunk(L,N),T.isUploadInProgress=!1,T.finishRequested&&!N&&(i.Log.i(a,"Initiating final chunk upload because finish request received during pending upload"),T.finishRequested=!1,yield T.uploadChunk(!0))}),this.loggingService=new r.RemoteLoggingService(c,m,M,D,I,U,V)}start(c){i.Log.i(a,"Starting log upload"),this.clearInterval(),this.finishRequested=!1,this.loggingService.startUpload(c).then(m=>{m?this.loggingIntervalId=window.setInterval(this.uploadChunk,1e4):i.Log.e(a,"Failed to start log upload")})}clearInterval(){0!==this.loggingIntervalId&&(window.clearInterval(this.loggingIntervalId),this.loggingIntervalId=0)}finish(){i.Log.i(a,"Requesting to finish log upload"),this.clearInterval(),this.isUploadInProgress?(this.finishRequested=!0,i.Log.i(a,"Upload in progress. Will finish upload after pending upload completes")):(i.Log.i(a,"No upload in progress. Uploading final chunk"),this.uploadChunk(!0))}log(c){this.buffer.log(c)}}},121:(y,f,O)=>{Object.defineProperty(f,"__esModule",{value:!0}),f.performHttpRequest=f.NativeNetworkError=f.HttpErrorCode=void 0;const P=O(673),_=O(614),i=O(367),r=O(379),a=O(714),c="httprequest";f.HttpErrorCode=(0,a.defineEnum)({NoNetwork:3237089281,NetworkError:3237089282,ResponseParseFailure:3237093379,UserAborted:15867905,ExceptionHappened:3237089284}),f.NativeNetworkError=(0,a.defineEnum)({NetworkError:151,SocketError:152,AddressResolveFailed:153,ConnectFailed:154,SslError:155,ConnectionTimeout:156,DataReceiveTimeout:157,PeerNoResponse:158,UnexpectedHttpRedirect:159,DataSendFailure:160,DataReceiveFailure:161,CertificateRejected:162,DataNotAllowed:163,NetworkErrorUnknown:199,NetworkErrorMax:200});const m={method:"GET",headers:{},body:"",retryCount:0,timeout:0,keepalive:!1};function D(I,U,V){var T,N;let L,E="",g="";const R=(B,X,H)=>{var J,re,ie;L=H??f.HttpErrorCode.NetworkError,g=null!==(re=null!==(J=I?.message)&&void 0!==J?J:I?.reason)&&void 0!==re?re:X,E=null!==(ie=I?.name)&&void 0!==ie?ie:B,_.Log.w(c,`Fetch failing with ${E}: ${g}`)};switch(U){case 0:R("GenericError","Generic fetch error.");break;case DOMException.NETWORK_ERR:R("NetworkError","A network error occurred.");break;case DOMException.TIMEOUT_ERR:R("TimeoutError","The operation timed out.");break;case DOMException.ABORT_ERR:R("AbortError","The operation was aborted.",f.HttpErrorCode.UserAborted);break;default:R("ExceptionHappened",`Unknown Exception: ${U}`,f.HttpErrorCode.ExceptionHappened)}return{code:L,message:g,name:E,retries:V,extendedCode:I?.extendedCode,stack:null!==(N=null!==(T=I.stack)&&void 0!==T?T:I.exception)&&void 0!==N?N:I}}f.performHttpRequest=function(I,U=m,V,T,N){var L;const E=null!==(L=U.method)&&void 0!==L?L:"GET";return i.TracingManager.getInstance().createSpan(E,()=>(function(g,R,B){const X=P.trace.getActiveSpan();if(!X)return;let H=new Map([["component",i.TracingComponent.name],["component.version",i.TracingComponent.version],["http.method",g],["http.url",R],["type",""],["http.hostname",""],["http.path",""]]);try{const J=new URL(R);H.set("type",J.protocol),H.set("http.hostname",J.hostname),H.set("http.path",J.pathname)}catch{_.Log.e(c,"Failed to extract http request attributes")}for(const[J,re]of H)X.setAttribute(J,re);X.setAttributes(B)}(E,I,U.headers),function(g,R=m,B,X){var H,J;let re=void 0===R.retryCount?1:R.retryCount+1;const ie=re,ve=null!==(H=R.backOffDelay)&&void 0!==H?H:500;let ue=ve;const se=null!==(J=R.method)&&void 0!==J?J:"GET";let Z=new Headers;const Se=B??new AbortController;void 0!==R.headers&&Object.keys(R.headers).forEach(Xe=>{Z.set(Xe,R.headers[Xe])});const Ce={};P.propagation.inject(P.context.active(),Ce);for(const[Xe,He]of Object.entries(Ce))Z.set(Xe,He);return new Promise((Xe,He)=>{const Q=me=>{(function(){const ne=P.trace.getActiveSpan();ne&&ne.setAttribute("error","true")})(),He(me)},A=()=>{if(navigator.onLine){let ne,G={method:se,headers:Z,mode:"cors",keepalive:R.keepalive,signal:Se.signal,cache:"no-store"};"GET"!==se&&"HEAD"!==se&&(G.body=R.body);const W=0,$=[W,DOMException.NETWORK_ERR,DOMException.TIMEOUT_ERR,503],le=R.timeout?new r.CancellableWait(R.timeout):void 0,Pe=[],Fe=X??window.fetch;Pe.push(Fe(g,G)),le&&Pe.push(le.getPromise()),Promise.race(Pe).then(At=>{if(le?.isTimedOut())throw _.Log.w(c,`Timeout while performing HTTP request for Url: ${g}`),{code:DOMException.TIMEOUT_ERR,message:"Timeout while performing HTTP request",name:"TimeoutError"};if(At)return ne=At.status,At.text();throw{code:DOMException.TYPE_MISMATCH_ERR,message:"Impossible condition. Response type cannot be void.",name:"ExceptionHappened"}}).then(At=>{if(!At&&$.includes(ne)){if(re>1)throw{code:ne,message:"Internal server error."};_.Log.w(c,`Failing with ${ne} even after ${ie} retries`)}var me;(function(ne){const G=P.trace.getActiveSpan();G&&(G.setAttribute("error","false"),G.setAttribute("http.status_code",ne.toString()))})((me={status:ne,data:At??"",retries:ie-re}).status),Xe(me)}).catch(At=>{At instanceof Error?_.Log.d(c,`Error in Fetch: ${At.message}`):_.Log.d(c,`Error in Fetch: ${JSON.stringify(At)}, ${At}`);const Le=function M(I){let U=0;return I?.code?U=I.code:I?.name&&("AbortError"===I.name?U=DOMException.ABORT_ERR:"NetworkError"===I.name?U=DOMException.NETWORK_ERR:"TimeoutError"===I.name&&(U=DOMException.TIMEOUT_ERR)),U}(At);Le==W&&R.keepalive&&(R.keepalive=!1);const Et=ie-re;$.includes(Le)?(ne=>{if(re>1){re--,_.Log.d(c,`Failing with ${ne}, retries left ${re}`);const G=new r.CancellableWait(ue,Se.signal);return G.getPromise().then(A).catch(W=>{var $,le;if(G.isAborted())Q({code:f.HttpErrorCode.UserAborted,retries:ie-re,message:"User aborted",name:"AbortError"});else{const Pe=JSON.stringify(W);_.Log.w(c,`Unhandled exception caught: ${Pe}`),Q({code:f.HttpErrorCode.ExceptionHappened,retries:ie-re,message:null!==($=W?.message)&&void 0!==$?$:Pe,name:null!==(le=W?.name)&&void 0!==le?le:"ExceptionHappened"})}}),ue+=ve,!0}return!1})(Le)||(_.Log.w(c,`Fetch failing even after ${ie} retries. Error: ${Le}`),Q(D(At,Le,Et))):Q(D(At,Le,Et))}).finally(()=>{le?.cancel()})}else Q({code:f.HttpErrorCode.NoNetwork,message:"No network",retries:ie-re,name:"NetworkError"})};A()})}(I,U,T,N)))}},185:(y,f,O)=>{Object.defineProperty(f,"__esModule",{value:!0}),f.pageSessionId=f.computeSha256Checksum=f.GetHexString=f.convertToUnsignedInt=f.getNewGuid=void 0;const P=O(614),_="utils";function i(){let a=new Uint8Array(36);window.crypto.getRandomValues(a);let c="";for(let m=0;m<36;m++){let M=a[m]%16;8==m||13==m||18==m||23==m?c+="-":14==m?c+="4":(19==m&&(M=3&M|8),c+=M.toString(16))}return P.Log.i(_,"new guid "+c),c}function r(a){return a>>>0}f.getNewGuid=i,f.convertToUnsignedInt=r,f.GetHexString=function(a){return"0x"+("00000000"+(a=r(a)).toString(16).toUpperCase()).slice(-8)},f.computeSha256Checksum=function(){var a=n(function*(c){var m;if(null===(m=crypto.subtle)||void 0===m||!m.digest){const D="Crypto.subtle.digest is not available";throw P.Log.e(_,D),new Error(D)}const M=yield crypto.subtle.digest("SHA-256",c);return Array.from(new Uint8Array(M)).map(D=>D.toString(16).padStart(2,"0")).join("")});return function(c){return a.apply(this,arguments)}}(),f.pageSessionId=i()},250:(y,f,O)=>{Object.defineProperty(f,"__esModule",{value:!0}),f.AuthType=f.authInfoToHeader=void 0;const P=O(714);f.authInfoToHeader=function(_){if(!_.token)return"";switch(_.type){case f.AuthType.JWT_GFN:return`GFNJWT ${_.token}`;case f.AuthType.JWT_PARTNER:return`GFNPartnerJWT auth=${_.token}`;default:return""}},f.AuthType=(0,P.defineEnum)({NONE:-1,JARVIS:0,JWT_GFN:1,JWT_PARTNER:2})},297:(y,f,O)=>{Object.defineProperty(f,"__esModule",{value:!0}),f.Profile=f.BitDepth=f.SdrHdrMode=void 0;const P=O(714);f.SdrHdrMode=(0,P.defineEnum)({SDR:0,HDR:1,EDR:2}),f.BitDepth=(0,P.defineEnum)({BIT_DEPTH_8:0,BIT_DEPTH_10:1}),f.Profile=(0,P.defineEnum)({CUSTOM:0,BALANCED:1,COMPETITIVE:2,DATA_SAVER:3,CINEMATIC:4})},367:(y,f,O)=>{Object.defineProperty(f,"__esModule",{value:!0}),f.TracingManager=f.TracingComponent=void 0;const P=O(673);f.TracingComponent={name:"@gamestream/utils",version:"1.0"};class _{constructor(){this.tracer=P.trace.getTracer("gfn-web-gamestream","2.0")}static getInstance(){return _.instance||(_.instance=new _),_.instance}createSpan(r,a){const c=this.tracer.startSpan(r);return P.context.with(P.trace.setSpan(P.context.active(),c),n(function*(){try{const m=a();return m instanceof Promise?yield m:m}finally{c.end()}}))}}f.TracingManager=_},379:(y,f)=>{Object.defineProperty(f,"__esModule",{value:!0}),f.CancellableWait=void 0,f.CancellableWait=class{constructor(O,P){var _;this.timerId=0,this.timedOut=!1,this.aborted=!1,this.promise=new Promise((i,r)=>{this.promiseResolve=i,this.promiseReject=r}),P?.aborted?(this.aborted=!0,this.promiseReject()):(this.abortSignal=P,this.onAbortFunc=this.onAbort.bind(this),null===(_=this.abortSignal)||void 0===_||_.addEventListener("abort",this.onAbortFunc),this.timerId=window.setTimeout(this.onTimeout.bind(this),O))}cancel(){var O;null===(O=this.abortSignal)||void 0===O||O.removeEventListener("abort",this.onAbortFunc),this.timerId&&(window.clearTimeout(this.timerId),this.timerId=0),this.abortSignal=void 0}getPromise(){return this.promise}isTimedOut(){return this.timedOut}isAborted(){return this.aborted}onAbort(){this.aborted=!0,this.promiseReject(),this.cancel()}onTimeout(){this.timedOut=!0,this.promiseResolve(),this.timerId=0,this.cancel()}}},386:(y,f,O)=>{Object.defineProperty(f,"__esModule",{value:!0}),f.IndexedDb=void 0;const P=O(614),_="indexdb";function i(r,a,c){return{code:r,description:a,error:null!==c?c:void 0}}f.IndexedDb=class{constructor(r,a){this.indexedDb=window.indexedDB,this.version=2,this.isDbClosing=!1,this.didDbCloseUnexpectedly=!1,this.name=r,this.storeDetails=a}open(){return new Promise((r,a)=>{try{if(this.indexedDb){let c=this.indexedDb.open(this.name,this.version);c.onerror=m=>{a(i(18,`${this.name} db opening failed`,c.error))},c.onsuccess=m=>{this.createDbInstance(c.result),r()},c.onupgradeneeded=m=>{P.Log.i(_,`Upgrading from version ${m.oldVersion} to ${m.newVersion}`),this.createDbInstance(c.result);const M=D=>{var I;const U=null===(I=this.dbInstance)||void 0===I?void 0:I.createObjectStore(D.storeName,D.storeOptions);D.storeOptions.keyPath&&U?.createIndex(D.storeIndexName,D.storeOptions.keyPath,{unique:!0})};switch(m.oldVersion){case 0:M(this.storeDetails[0]);case 1:M(this.storeDetails[1])}},c.onblocked=m=>{a(i(19,`${this.name} db blocked during opening`,c.error))}}else a(i(17,"Indexdb object not found"))}catch(c){a(i(20,"Unexpected Exception in open",c))}})}getDbStateError(){if(!this.indexedDb)return i(17,"Indexdb object not found");if(!this.dbInstance)return i(1,"Db not yet open");if(this.isDbClosing){const r="hidden"===document.visibilityState;return i(2,"Db is closing, unexpectedly: "+this.didDbCloseUnexpectedly+", visibility state hidden: "+r)}}get(r,a){const c=this.getDbStateError();return c?Promise.reject(c):new Promise((m,M)=>{try{const D=this.dbInstance.transaction(r,"readonly"),I=D.objectStore(r);D.oncomplete=V=>{P.Log.i(_,"transaction complete in get")};const U=I.get(a);U.onsuccess=()=>{m(U.result)},U.onerror=V=>{M(i(32,"get method failed",D.error))}}catch(D){M(i(33,"Unexpected Exception happened in get",D))}})}set(r,a){const c=this.getDbStateError();return c?Promise.reject(c):new Promise((m,M)=>{try{const D=this.dbInstance.transaction(r,"readwrite"),I=D.objectStore(r);D.oncomplete=V=>{P.Log.i(_,"transaction complete in set")};const U=I.put(a);U.onsuccess=()=>{m()},U.onerror=V=>{M(i(48,"put method failed",D.error))}}catch(D){M(i(49,"Unexpected Exception happened in set",D))}})}delete(r,a){const c=this.getDbStateError();return c?Promise.reject(c):new Promise((m,M)=>{try{const D=this.dbInstance.transaction(r,"readwrite"),I=D.objectStore(r);D.oncomplete=V=>{P.Log.i(_,"transaction complete in delete")};const U=I.delete(a);U.onsuccess=()=>{m()},U.onerror=V=>{M(i(64,"delete method failed",D.error))}}catch(D){M(i(65,"Unexpected Exception in delete",D))}})}clear(r){const a=this.getDbStateError();return a?Promise.reject(a):new Promise((c,m)=>{try{const M=this.dbInstance.transaction(r,"readwrite"),D=M.objectStore(r);M.oncomplete=U=>{P.Log.i(_,"transaction complete in clear")};const I=D.clear();I.onsuccess=()=>{c()},I.onerror=U=>{m(i(80,"clear method failed)",M.error))}}catch(M){m(i(81,"Unexpected Exception happened in clear",M))}})}getAll(r){const a=this.getDbStateError();return a?Promise.reject(a):new Promise((c,m)=>{try{const M=this.dbInstance.transaction(r,"readonly"),D=M.objectStore(r);M.oncomplete=U=>{P.Log.i(_,"transaction complete in getAll")};const I=D.getAll();I.onsuccess=()=>{c(I.result)},I.onerror=U=>{m(i(96,"getAll method failed",M.error))}}catch(M){m(i(97,"Unexpected Exception in getAll",M))}})}close(){var r;this.isDbClosing=!0,null===(r=this.dbInstance)||void 0===r||r.close()}createDbInstance(r){this.isDbClosing=!1,this.didDbCloseUnexpectedly=!1,this.dbInstance=r,this.dbInstance.onversionchange=a=>{P.Log.w(_,"closing db to unblock other tabs"),this.close(),this.dbInstance=void 0},this.dbInstance.onclose=a=>{P.Log.w(_,"Db connection unexpectedly closed"),this.isDbClosing=!0,this.didDbCloseUnexpectedly=!0}}}},419:(y,f,O)=>{Object.defineProperty(f,"__esModule",{value:!0}),f.TelemetryModule=f.CLIENT_STORE=f.OFFLINE_STORE=f.STORAGE_NAME=f.GdprLevel=void 0;const P=O(386),_=O(185),i=O(614),r=O(121),a=O(623),c=O(537),m=O(714),M="telemetry";f.GdprLevel=(0,m.defineEnum)({FUNCTIONAL:"functional",TECHNICAL:"technical",BEHAVIORAL:"behavioral"});const D="https://events.gfe.nvidia.com/v1.1/events/json";f.STORAGE_NAME="telemetry",f.OFFLINE_STORE="offline-events-cache",f.CLIENT_STORE="client-events-cache",f.TelemetryModule=new class{constructor(){var I=this;this.commonDataSet=!1,this.telemetryEventIds={},this.uploadToServerTimerId=0,this.requestPending=!1,this.eventIdGenerator=0,this.exceptionHandled=new Set,this.clientEvents=new Map,this.pendingEvents=new Map,this.missingConsentEvents=[],this.dbPromises=new Map,this.dbInitialized=!1,this.serverUrl=D,this.httpConfiguration={method:"POST",headers:{"Content-Type":"application/json"},body:"",retryCount:3,timeout:15e3},this.eventSysVer="2.0",this.eventProtocol="1.5",this.maxEventsInStore=256,this.maxEventsInRequest=128,this.requestDelay=2e3,this.idb=new P.IndexedDb(f.STORAGE_NAME,[{storeName:f.OFFLINE_STORE,storeOptions:{keyPath:["clientId"]},storeIndexName:"offline-events-index"},{storeName:f.CLIENT_STORE,storeOptions:{keyPath:["clientId"]},storeIndexName:"client-events-index"}]),this.idb.open().then(n(function*(){I.dbInitialized=!0;const U=yield Promise.all([I.idb.getAll(f.OFFLINE_STORE),I.idb.getAll(f.CLIENT_STORE)]);U[0].forEach(V=>{i.Log.d(M,`Process offline events from previous sessions: ${V.payloads.length}`),V.payloads.forEach(T=>I.processEventPayload(T))}),U[1].forEach(V=>{i.Log.d(M,`Process client events from previous sessions: ${V.payloads.length}`),V.payloads.filter(T=>T.sessionId!==_.pageSessionId).forEach(T=>I.processEventPayload(T)),I.clientEvents.has(V.clientId)||I.clientEvents.set(V.clientId,[])}),I.saveEvents(f.OFFLINE_STORE,I.pendingEvents),I.saveEvents(f.CLIENT_STORE,I.clientEvents)})).catch(U=>{this.handleException("dbOpen",U)})}configure(I,U,V){var T,N,L,E,g,R,B,X,H,J,re;try{switch(typeof V){case"function":this.callback=V;break;case"number":this.serverUrl=V===a.UploadEnvironment.STAGING?"https://events.gfestage.nvidia.com/v1.1/events/json":D;break;case"string":this.serverUrl=new URL(V).toString()}this.appInfo=Object.assign({},I),this.deviceInfo=Object.assign({},U),this.platformPayload=(0,c.translatePlatformInfoForPayload)(U),void 0===U.os&&U.deviceOS&&(this.platformPayload.os=U.deviceOS),void 0===U.browser&&U.browserType&&(this.platformPayload.browser=U.browserType),void 0===U.platformType&&U.deviceType&&(this.platformPayload.deviceType=U.deviceType),null!==(T=(H=this.deviceInfo).osVersion)&&void 0!==T||(H.osVersion=null!==(N=this.deviceInfo.deviceOSVersion)&&void 0!==N?N:"");const ie="undefined";null!==(L=(J=this.deviceInfo).model)&&void 0!==L||(J.model=null!==(g=null===(E=this.deviceInfo)||void 0===E?void 0:E.deviceModel)&&void 0!==g?g:ie),null!==(R=(re=this.deviceInfo).make)&&void 0!==R||(re.make=null!==(X=null===(B=this.deviceInfo)||void 0===B?void 0:B.deviceMake)&&void 0!==X?X:ie),"function"==typeof V?(this.pendingEvents.forEach((ve,ue)=>{ve.forEach(se=>{V(se)}),this.pendingEvents.set(ue,[])}),this.saveEvents(f.OFFLINE_STORE,this.pendingEvents)):this.cacheAndMaybeUploadTelemetry()}catch(ie){return i.Log.e(M,`configure failed: ${JSON.stringify(ie)}`),!1}return!0}createTelemetryProvider(I){return{processEvent:this.processEvent.bind(this,I),cacheEvent:this.cacheEvent.bind(this,I),processCachedEvent:this.processCachedEvent.bind(this),dropCachedEvent:this.dropCachedEvent.bind(this)}}updateClientCommonData(I,U,V,T){if(this.commonDataSet=!0,this.userInfo&&(this.userInfo.userId!==I.userId||this.userInfo.externalUserId!==I.externalUserId||this.userInfo.idpId!==I.idpId)&&this.sendOldUserRelatedEvents(),this.userInfo=Object.assign({},I),V){this.userConsent=Object.assign({},V);const L=JSON.stringify(V);i.Log.d(M,`User consent has been synced: ${L}`)}this.deviceConsent=Object.assign({},U);const N=JSON.stringify(U);i.Log.d(M,`Device consent has been synced: ${N}`),this.integrationId=T,i.Log.d(M,`Common data updated, sending ${this.missingConsentEvents.length} events`),this.sendMissingConsentEvents()}sendOldUserRelatedEvents(){this.clientEvents.forEach((U,V)=>{U.forEach(T=>{0===this.hasConsented(T)&&(this.callback?this.callback(T):T.priority&&this.appInfo?this.sendBeacon(T):this.bufferEvent(this.pendingEvents,T))}),this.clientEvents.set(V,[])});let I=0;if(this.appInfo){let U=Promise.resolve();for(;this.getPendingEventsCount();)this.sendEvents(U).forEach(V=>{I+=V.events.length,this.dropSentEvents(V.events)}),U=U.then(()=>{new Promise(V=>window.setTimeout(V,this.requestDelay))})}else Array.from(this.pendingEvents.keys()).forEach(U=>{this.pendingEvents.set(U,[])});this.missingConsentEvents=[],this.saveEvents(f.OFFLINE_STORE,this.pendingEvents),this.saveEvents(f.CLIENT_STORE,this.clientEvents),i.Log.i(M,`User is switched, send ${I} events in buffer`)}sendMissingConsentEvents(){const I=this.missingConsentEvents;this.missingConsentEvents=[],I.forEach(U=>this.processEventPayload(U))}getTelemetryEventIds(){return Object.assign({},this.telemetryEventIds)}setTelemetryEventIds(I){I.networkSessionId&&(this.telemetryEventIds.networkSessionId=I.networkSessionId),I.streamingProfileGuid&&(this.telemetryEventIds.streamingProfileGuid=I.streamingProfileGuid),I.systemInfoGuid&&(this.telemetryEventIds.systemInfoGuid=I.systemInfoGuid)}processEvent(I,U){var V,T,N,L;if(this.callback)this.callback(U);else try{const E={name:U.name,eventId:++this.eventIdGenerator,parameters:JSON.parse(JSON.stringify(U.parameters)),gdprLevel:U.gdprLevel,ts:U.ts,sessionId:_.pageSessionId,userId:null!==(L=null!==(T=null===(V=this.userInfo)||void 0===V?void 0:V.userId)&&void 0!==T?T:null===(N=this.userInfo)||void 0===N?void 0:N.externalUserId)&&void 0!==L?L:"",priority:U.priority,config:Object.assign({},I)};this.processEventPayload(E)}catch(E){this.handleClientException(I,E,`JSON error occurred on processing event: ${U.name}`)}}hasConsented(I){if(!this.commonDataSet)return 2;const U=N=>{var L,E;return null!==(L=this.userInfo)&&void 0!==L&&L.userId||null!==(E=this.userInfo)&&void 0!==E&&E.externalUserId?N===a.ConsentLevel.FULL?0:1:N===a.ConsentLevel.TEMP?0:1};let V=1;switch(I.gdprLevel){case f.GdprLevel.FUNCTIONAL:this.userConsent?V=U(this.userConsent.gdprFuncOptIn):this.deviceConsent&&(V=(T=this.deviceConsent.deviceGdprFuncOptIn)===a.ConsentLevel.FULL||T===a.ConsentLevel.TEMP?0:1);break;case f.GdprLevel.TECHNICAL:this.userConsent&&(V=U(this.userConsent.gdprTechOptIn));break;case f.GdprLevel.BEHAVIORAL:this.userConsent&&(V=U(this.userConsent.gdprBehOptIn))}var T;return V}getDebugEventName(I){return`${I.name} ${_.pageSessionId===I.sessionId?"":"from previous session"}`}processEventPayload(I){switch(this.hasConsented(I)){case 0:this.appInfo?I.priority?this.sendBeacon(I):(this.bufferEvent(this.pendingEvents,I),this.cacheAndMaybeUploadTelemetry()):(i.Log.d(M,`No config, buffer event: ${this.getDebugEventName(I)}`),this.bufferEvent(this.pendingEvents,I));break;case 2:this.dropOldestEventIfNeeded(),i.Log.d(M,`Missing consent event: ${this.getDebugEventName(I)}`),this.missingConsentEvents.push(I);break;case 1:i.Log.d(M,`Drop event: ${this.getDebugEventName(I)}`)}}sendBeacon(I){const U=this.createTelemetryRequestData([I]),V=new Blob([U],{type:"text/plain"}),T=navigator.sendBeacon(this.serverUrl,V);i.Log.i(M,`telemetry upload sendBeacon result : ${T} event: ${this.getDebugEventName(I)}`)}cacheAndMaybeUploadTelemetry(){var I=this;this.appInfo&&!this.uploadToServerTimerId&&(this.uploadToServerTimerId=window.setInterval(n(function*(){if(0===I.getPendingEventsCount())return window.clearInterval(I.uploadToServerTimerId),void(I.uploadToServerTimerId=0);if(I.saveEvents(f.OFFLINE_STORE,I.pendingEvents),!I.requestPending){I.requestPending=!0;const U=I.sendEvents();(yield Promise.all(U.map(V=>V.retry))).forEach((V,T)=>{V||I.dropSentEvents(U[T].events)}),I.saveEvents(f.OFFLINE_STORE,I.pendingEvents),I.requestPending=!1}}),this.requestDelay))}makeRequestBatches(){const I=[];return this.pendingEvents.forEach(U=>{if(U.length>0){const V=U[0],T=U.filter(N=>N.sessionId===V.sessionId&&N.config.eventSchemaVer===V.config.eventSchemaVer);I.push(T)}}),I}dropSentEvents(I){let U=this.pendingEvents.get(I[0].config.clientId);const V=new Set(I.map(T=>`${T.sessionId}|${T.eventId}`));U&&(U=U.filter(T=>!V.has(`${T.sessionId}|${T.eventId}`)),this.pendingEvents.set(I[0].config.clientId,U))}sendEvents(I){const U=I??Promise.resolve(),V=[];return this.makeRequestBatches().forEach(T=>{const N=T.splice(0,this.maxEventsInRequest);V.push({events:N,retry:U.then(()=>this.sendHttp(N))})}),V}sendHttp(I){var U=this;return n(function*(){if(0===I.length)return!1;let V=!1;const T=U.createTelemetryRequestData(I),N=I[0].config.clientId;try{const L=yield(0,r.performHttpRequest)(U.serverUrl,{...U.httpConfiguration,body:T}),g=`Telemetry http request status: ${N} ${L.status} ${L.data}`;[408,500,503].includes(L.status)?(i.Log.e(M,`${g} Retry ${I.length} events.`),V=!0):L.status>=200&&L.status<300?i.Log.i(M,`${g} Uploaded ${I.length} events.`):i.Log.e(M,`${g} Drop ${I.length} events.`)}catch(L){i.Log.e(M,`Client ${N} telemetry http request failed. Error: ${L}`)}return V})()}cacheEvent(I,U,V){var T,N,L;try{if(V){const E=this.clientEvents.get(I.clientId);if(E){const g=E.findIndex(R=>R.eventId===V);if(-1!==g){const R=E.splice(g,1),B={eventId:R[0].eventId,sessionId:R[0].sessionId,userId:R[0].userId,config:Object.assign({},I),name:U.name,gdprLevel:U.gdprLevel,priority:U.priority,ts:U.ts,parameters:JSON.parse(JSON.stringify(U.parameters))};E.push(B)}}}else{V=++this.eventIdGenerator;const E={name:U.name,eventId:V,parameters:JSON.parse(JSON.stringify(U.parameters)),gdprLevel:U.gdprLevel,ts:U.ts,sessionId:_.pageSessionId,userId:null!==(N=null===(T=this.userInfo)||void 0===T?void 0:T.userId)&&void 0!==N?N:"",priority:null!==(L=U.priority)&&void 0!==L&&L,config:Object.assign({},I)};this.bufferEvent(this.clientEvents,E)}this.saveEvents(f.CLIENT_STORE,this.clientEvents)}catch(E){this.handleClientException(I,E,`JSON error occurred on caching event: ${U.name}`)}return V??0}processCachedEvent(I){this.removeEventHelper(I,!0)}dropCachedEvent(I){this.removeEventHelper(I,!1)}removeEventHelper(I,U){for(let V of this.clientEvents){const T=V[1].findIndex(N=>N.eventId===I);if(-1!==T){const N=V[1].splice(T,1);this.saveEvents(f.CLIENT_STORE,this.clientEvents),U&&(this.callback?this.callback({name:N[0].name,gdprLevel:N[0].gdprLevel,priority:N[0].priority,ts:N[0].ts,parameters:N[0].parameters}):this.processEventPayload(N[0]));break}}}createTelemetryRequestData(I){var U,V,T,N,L,E,g,R,B,X,H,J,re,ie,ve,ue,se,Z,Se,Ce,Be,Xe,He,Me,Q,A,me,ne,G,W,$,le,Pe,Fe,At,Le;const Et="undefined",$e={clientId:(null===(U=I[0])||void 0===U?void 0:U.config.clientId)||Et,clientVer:(null===(V=this.appInfo)||void 0===V?void 0:V.clientVer)||Et,eventSchemaVer:(null===(T=I[0])||void 0===T?void 0:T.config.eventSchemaVer)||Et,eventSysVer:this.eventSysVer,eventProtocol:this.eventProtocol,deviceId:(null===(N=this.deviceInfo)||void 0===N?void 0:N.deviceId)||Et,userId:(null===(L=this.userInfo)||void 0===L?void 0:L.userId)||Et,externalUserId:null===(E=this.userInfo)||void 0===E?void 0:E.externalUserId,idpId:null===(g=this.userInfo)||void 0===g?void 0:g.idpId,sessionId:(null===(R=I[0])||void 0===R?void 0:R.sessionId)||Et,events:[],gdprFuncOptIn:null!==(X=null===(B=this.userConsent)||void 0===B?void 0:B.gdprFuncOptIn)&&void 0!==X?X:Et,gdprTechOptIn:null!==(J=null===(H=this.userConsent)||void 0===H?void 0:H.gdprTechOptIn)&&void 0!==J?J:Et,gdprBehOptIn:null!==(ie=null===(re=this.userConsent)||void 0===re?void 0:re.gdprBehOptIn)&&void 0!==ie?ie:Et,deviceGdprFuncOptIn:null!==(ue=null===(ve=this.deviceConsent)||void 0===ve?void 0:ve.deviceGdprFuncOptIn)&&void 0!==ue?ue:Et,deviceGdprTechOptIn:null!==(Z=null===(se=this.deviceConsent)||void 0===se?void 0:se.deviceGdprTechOptIn)&&void 0!==Z?Z:Et,deviceGdprBehOptIn:null!==(Ce=null===(Se=this.deviceConsent)||void 0===Se?void 0:Se.deviceGdprBehOptIn)&&void 0!==Ce?Ce:Et,deviceOS:null!==(Xe=null===(Be=this.platformPayload)||void 0===Be?void 0:Be.os)&&void 0!==Xe?Xe:Et,deviceOSVersion:(null===(He=this.deviceInfo)||void 0===He?void 0:He.osVersion)||Et,deviceType:null!==(Q=null===(Me=this.platformPayload)||void 0===Me?void 0:Me.deviceType)&&void 0!==Q?Q:Et,deviceModel:(null===(A=this.deviceInfo)||void 0===A?void 0:A.model)||Et,deviceMake:(null===(me=this.deviceInfo)||void 0===me?void 0:me.make)||Et,clientType:null!==(G=null===(ne=this.appInfo)||void 0===ne?void 0:ne.clientType)&&void 0!==G?G:Et,clientVariant:null!==($=null===(W=this.appInfo)||void 0===W?void 0:W.clientVariant)&&void 0!==$?$:Et,integrationId:this.integrationId||Et,browserType:null!==(Pe=null===(le=this.platformPayload)||void 0===le?void 0:le.browser)&&void 0!==Pe?Pe:Et,productName:null===(Fe=this.appInfo)||void 0===Fe?void 0:Fe.productName,productVersion:null===(At=this.appInfo)||void 0===At?void 0:At.productVersion,sentTs:""};$e.sentTs=(new Date).toISOString();for(const Ze of I)null===(Le=$e.events)||void 0===Le||Le.push({name:Ze.name,ts:Ze.ts,parameters:Ze.parameters});return JSON.stringify($e)}getPendingEventsCount(){let I=0;return this.pendingEvents.forEach(U=>I+=U.length),I}dropOldestEventIfNeeded(){if(this.getPendingEventsCount()+this.missingConsentEvents.length<this.maxEventsInStore)return;let I="";if(this.missingConsentEvents.length)I=this.missingConsentEvents.splice(0,1)[0].name;else{let U,V="";this.pendingEvents.forEach((N,L)=>{U?N[0].ts<U.ts&&(V=L,U=N[0]):(V=L,U=N[0])});const T=this.pendingEvents.get(V);T&&(I=T.splice(0,1)[0].name)}i.Log.i(M,`Too many events under pending, drop ${I}`)}bufferEvent(I,U){var V;I===this.pendingEvents&&this.dropOldestEventIfNeeded();const T=U.config.clientId;I.has(T)?null===(V=I.get(T))||void 0===V||V.push(U):I.set(T,[U])}saveEvents(I,U){this.dbInitialized&&U.forEach((V,T)=>{var N;const L={clientId:T,payloads:V},E=`${I}|${T}`;let g=null!==(N=this.dbPromises.get(E))&&void 0!==N?N:Promise.resolve();g=g.then(()=>this.idb.set(I,L)).catch(R=>{this.handleException(`saveEvents(${I})`,R)}),this.dbPromises.set(E,g)})}handleException(I,U){var V,T,N;const L=null!==(N=null!==(T=null===(V=U.error)||void 0===V?void 0:V.message)&&void 0!==T?T:U.description)&&void 0!==N?N:`Exception in ${I}`;i.Log.e(M,`${I} failed: ${(0,_.GetHexString)(U.code)} ${L}`),this.exceptionHandled.has(I)||this.exceptionHandled.add(I)}handleClientException(I,U,V){i.Log.e(M,V),I.exceptionHandler&&I.exceptionHandler({error:U,description:V})}}},422:(y,f,O)=>{Object.defineProperty(f,"__esModule",{value:!0}),f.NetworkType=void 0;const P=O(714);f.NetworkType=(0,P.defineEnum)({OTHER:"OTHER",ETHERNET:"ETHERNET",UNKNOWN:"UNKNOWN",WIFI:"WIFI",WIFI_2_4:"WIFI_2_4",WIFI_5_0:"WIFI_5_0",MOBILE:"MOBILE",MOBILE_2G:"MOBILE_2G",MOBILE_3G:"MOBILE_3G",MOBILE_4G:"MOBILE_4G",MOBILE_5G:"MOBILE_5G",WIMAX:"WIMAX",BLUETOOTH:"BLUETOOTH"})},492:(y,f,O)=>{Object.defineProperty(f,"__esModule",{value:!0}),f.RemoteLoggingService=void 0;const P=O(623),_=O(921),i=O(121),r=O(614),a=O(537),c=O(185),m="https://telemetry.gfe.nvidia.com/gfc/v4.0",M="remoteloggingservice";f.RemoteLoggingService=class{constructor(D,I,U,V,T,N,L){var E,g,R,B,X,H;this.chunkOffset=0,this.url=m;const J=(0,a.translatePlatformInfoForPayload)(I);switch(void 0===I.os&&I.deviceOS&&(J.os=I.deviceOS),void 0===I.browser&&I.browserType&&(J.browser=I.browserType),void 0===I.platformType&&I.deviceType&&(J.deviceType=I.deviceType),this.headPayload={browserType:J.browser,clientId:_.CLIENT_ID,clientTs:"",clientType:U.clientType,clientVariant:U.clientVariant,clientVer:U.clientVer,deviceGdprBehOptIn:T.deviceGdprBehOptIn,deviceGdprFuncOptIn:T.deviceGdprFuncOptIn,deviceGdprTechOptIn:T.deviceGdprTechOptIn,deviceId:I.deviceId,deviceOS:J.os,deviceOSVersion:null!==(E=I.osVersion)&&void 0!==E?E:I.deviceOSVersion,deviceMake:null!==(R=null!==(g=I.make)&&void 0!==g?g:I.deviceMake)&&void 0!==R?R:"",deviceModel:null!==(X=null!==(B=I.model)&&void 0!==B?B:I.deviceModel)&&void 0!==X?X:"",deviceType:J.deviceType,feedbackId:"",feedbackName:"GS_Log_Event",feedbackProtocol:"4.4",feedbackSchemaVer:"3.2",feedbackSysVer:"v4.3",fileList:[{name:N}],gdprBehOptIn:V.gdprBehOptIn,gdprFuncOptIn:V.gdprFuncOptIn,gdprTechOptIn:V.gdprTechOptIn,parameters:{streamSessionId:"",streamSubSessionIds:[]},sentTs:"",sessionId:c.pageSessionId,userId:null!==(H=D.userId)&&void 0!==H?H:""},L){case P.UploadEnvironment.PROD:this.url=m;break;case P.UploadEnvironment.STAGING:this.url="https://telemetry.gfestage.nvidia.com/gfc/v4.0";break;default:this.url=L}}startUpload(D){var I=this;return n(function*(){I.chunkOffset=0,I.headPayload.feedbackId=crypto.randomUUID(),I.headPayload.parameters.streamSessionId=D??"",I.headPayload.clientTs=(new Date).toISOString(),I.headPayload.sentTs=(new Date).toISOString();const U={method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(I.headPayload)},V=`${I.url}/head`,T=yield(0,i.performHttpRequest)(V,U);if(200!==T.status)return r.Log.e(M,`Head request failed with ${T.status}`),!1;let N=`Initiated feedback session ${I.headPayload.feedbackId}`;return D&&(N+=` for stream session ${D}`),r.Log.i(M,N),!0})()}sendChunk(D,I=!1){var U=this;return n(function*(){const V=new Blob([D]),T=new FormData;try{T.append("feedbackId",U.headPayload.feedbackId),T.append("offset",U.chunkOffset.toString()),T.append("checksum",yield(0,c.computeSha256Checksum)(D)),T.append("data2",V),T.append("size",V.size.toString()),T.append("parameters",JSON.stringify(U.headPayload.parameters))}catch(g){return r.Log.e(M,`Cannot send chunk: ${g}`),!1}I&&T.append("eob","true");const N={method:"POST",headers:{},body:T},L=`${U.url}/attachment`,E=yield(0,i.performHttpRequest)(L,N);switch(E.status){case 200:return r.Log.i(M,`Feedback session ${U.headPayload.feedbackId} closed.`),U.headPayload.feedbackId="",U.chunkOffset=0,!0;case 206:return U.chunkOffset+=V.size,!0;case 462:return r.Log.e(M,"Cannot send attachment request with invalid feedback id"),!1;case 463:return r.Log.e(M,"Incorrect data offset provided in attachment request"),!1;default:return r.Log.e(M,`Attachment request failed with ${E.status}`),!1}})()}}},537:(y,f,O)=>{Object.defineProperty(f,"__esModule",{value:!0}),f.translatePlatformInfoForClientHeader=f.translatePlatformInfoForPayload=void 0;const P=O(865);class _{static getMappedDeviceType(a){switch(a){case P.PlatformType.CONSOLE:return P.PayloadDeviceType.CONSOLE;case P.PlatformType.TABLET:return P.PayloadDeviceType.TABLET;case P.PlatformType.PHONE:return P.PayloadDeviceType.PHONE;case P.PlatformType.TV:return P.PayloadDeviceType.TV;case P.PlatformType.LAPTOP:return P.PayloadDeviceType.LAPTOP;case P.PlatformType.DESKTOP:return P.PayloadDeviceType.DESKTOP;case P.PlatformType.HMD:return P.PayloadDeviceType.HMD;default:return P.PayloadDeviceType.UNDEFINED}}static getMappedBrowserName(a){switch(a){case P.PlatformBrowser.CHROME:return P.PayloadBrowserType.CHROME;case P.PlatformBrowser.SAFARI:return P.PayloadBrowserType.SAFARI;case P.PlatformBrowser.YANDEX:return P.PayloadBrowserType.YANDEX;case P.PlatformBrowser.EDGE:return P.PayloadBrowserType.EDGE;case P.PlatformBrowser.EDGE_LEGACY:return P.PayloadBrowserType.EDGE_LEGACY;case P.PlatformBrowser.FIREFOX:return P.PayloadBrowserType.FIREFOX;case P.PlatformBrowser.SAMSUNG:return P.PayloadBrowserType.SAMSUNG;case P.PlatformBrowser.CHROMIUM:return P.PayloadBrowserType.CHROMIUM;case P.PlatformBrowser.OPERA:return P.PayloadBrowserType.OPERA;case P.PlatformBrowser.OPERAGX:return P.PayloadBrowserType.OPERAGX;case P.PlatformBrowser.BRAVE:return P.PayloadBrowserType.BRAVE;case P.PlatformBrowser.SILK:return P.PayloadBrowserType.SILK;default:return P.PayloadBrowserType.UNDEFINED}}static getMappedDeviceOS(a){switch(a){case P.PlatformOS.WINDOWS:return P.PayloadOSType.WINDOWS;case P.PlatformOS.MAC:return P.PayloadOSType.MACOS;case P.PlatformOS.CHROME_OS:return P.PayloadOSType.CHROMEOS;case P.PlatformOS.LINUX:return P.PayloadOSType.LINUX;case P.PlatformOS.IOS:return P.PayloadOSType.IOS;case P.PlatformOS.IPADOS:return P.PayloadOSType.IPADOS;case P.PlatformOS.TIZEN:return P.PayloadOSType.TIZEN;case P.PlatformOS.WEBOS:return P.PayloadOSType.WEBOS;case P.PlatformOS.XBOX:return P.PayloadOSType.XBOX;case P.PlatformOS.ANDROID:return P.PayloadOSType.ANDROID;case P.PlatformOS.STEAMOS:return P.PayloadOSType.STEAMOS;case P.PlatformOS.VISIONOS:return P.PayloadOSType.VISIONOS;default:return P.PayloadOSType.UNDEFINED}}constructor(a){this._platformInfo=a,this._gxtDetails=this.translateForPayload(),this._lcarsDetails=this.translateForClientHeaders()}translateForPayload(){var a;const c=this._platformInfo,m=_.getMappedDeviceType(c.platformType),M=_.getMappedBrowserName(c.browser);return{os:_.getMappedDeviceOS(null!==(a=c.os)&&void 0!==a?a:P.PlatformOS.UNKNOWN),browser:M,deviceType:m}}translateForClientHeaders(){var a;const c=this._platformInfo,m=_.extractDeviceTypeForBrowserClient(_.getMappedDeviceType(c.platformType)),M=_.extractBrowserTypeForBrowserClient(_.getMappedBrowserName(c.browser));return{os:_.mapOSPlatformNameToSupportedDeviceOs(_.getMappedDeviceOS(null!==(a=c.os)&&void 0!==a?a:P.PlatformOS.UNKNOWN)),browser:M,deviceType:m}}get gxtDetails(){return this._gxtDetails}get lcarsDetails(){return this._lcarsDetails}get info(){return this._platformInfo}}let i;_.mapOSPlatformNameToSupportedDeviceOs=r=>{switch(r){case P.PayloadOSType.WINDOWS:return P.ClientHeaderOSType.WINDOWS;case P.PayloadOSType.MACOS:return P.ClientHeaderOSType.MACOS;case P.PayloadOSType.LINUX:return P.ClientHeaderOSType.LINUX;case P.PayloadOSType.CHROMEOS:return P.ClientHeaderOSType.CHROMEOS;case P.PayloadOSType.IOS:return P.ClientHeaderOSType.IOS;case P.PayloadOSType.IPADOS:return P.ClientHeaderOSType.IPADOS;case P.PayloadOSType.WEBOS:return P.ClientHeaderOSType.WEBOS;case P.PayloadOSType.TIZEN:return P.ClientHeaderOSType.TIZEN;case P.PayloadOSType.XBOX:return P.ClientHeaderOSType.XBOX;case P.PayloadOSType.ANDROID:return P.ClientHeaderOSType.ANDROID;case P.PayloadOSType.STEAMOS:return P.ClientHeaderOSType.STEAMOS;case P.PayloadOSType.SHIELD:return P.ClientHeaderOSType.SHIELD;case P.PayloadOSType.VISIONOS:return P.ClientHeaderOSType.VISIONOS;default:return P.ClientHeaderOSType.UNKNOWN}},_.extractDeviceTypeForBrowserClient=r=>{switch(r){case P.PayloadDeviceType.DESKTOP:return P.ClientHeaderDeviceType.DESKTOP;case P.PayloadDeviceType.LAPTOP:return P.ClientHeaderDeviceType.LAPTOP;case P.PayloadDeviceType.TV:return P.ClientHeaderDeviceType.TV;case P.PayloadDeviceType.PHONE:return P.ClientHeaderDeviceType.PHONE;case P.PayloadDeviceType.TABLET:return P.ClientHeaderDeviceType.TABLET;case P.PayloadDeviceType.CONSOLE:return P.ClientHeaderDeviceType.CONSOLE;case P.PayloadDeviceType.HMD:return P.ClientHeaderDeviceType.HMD;default:return P.ClientHeaderDeviceType.DESKTOP}},_.extractBrowserTypeForBrowserClient=r=>{switch(r){case P.PayloadBrowserType.CHROME:return P.ClientHeaderBrowserType.CHROME;case P.PayloadBrowserType.SAFARI:return P.ClientHeaderBrowserType.SAFARI;case P.PayloadBrowserType.YANDEX:return P.ClientHeaderBrowserType.YANDEX;case P.PayloadBrowserType.EDGE:return P.ClientHeaderBrowserType.EDGE;case P.PayloadBrowserType.EDGE_LEGACY:return P.ClientHeaderBrowserType.EDGE_LEGACY;case P.PayloadBrowserType.FIREFOX:return P.ClientHeaderBrowserType.FIREFOX;case P.PayloadBrowserType.SAMSUNG:return P.ClientHeaderBrowserType.SAMSUNG;case P.PayloadBrowserType.CHROMIUM:return P.ClientHeaderBrowserType.CHROMIUM;case P.PayloadBrowserType.OPERA:return P.ClientHeaderBrowserType.OPERA;case P.PayloadBrowserType.OPERAGX:return P.ClientHeaderBrowserType.OPERAGX;case P.PayloadBrowserType.BRAVE:return P.ClientHeaderBrowserType.BRAVE;case P.PayloadBrowserType.SILK:return P.ClientHeaderBrowserType.SILK;default:return P.ClientHeaderBrowserType.UNKNOWN}},f.translatePlatformInfoForPayload=function(r){return i&&i.info==r||(i=new _(r)),i.gxtDetails},f.translatePlatformInfoForClientHeader=function(r){return i&&i.info==r||(i=new _(r)),i.lcarsDetails}},596:(y,f)=>{Object.defineProperty(f,"__esModule",{value:!0}),f.LogBuffer=void 0;class O{constructor(_){this.encoder=new TextEncoder,this.logIndex=0,this.full=!1,this.buffer=new Uint8Array(_+O.FULL_MESSAGE.length),this.maxLength=_}clear(){this.encoder=new TextEncoder,this.logIndex=0,this.full=!1}log(_){if(this.full)return;let i=this.encoder.encode(_+"\n");this.logIndex+i.byteLength>this.maxLength&&(this.full=!0,i=this.encoder.encode(O.FULL_MESSAGE)),this.buffer.set(i,this.logIndex),this.logIndex+=i.byteLength}getData(){return this.buffer.slice(0,this.logIndex)}}f.LogBuffer=O,O.FULL_MESSAGE="Log is full\n"},614:(y,f,O)=>{Object.defineProperty(f,"__esModule",{value:!0}),f.Logger=f.Log=f.LogMechanism=f.LogLevel=void 0;const P=O(714);f.LogLevel=(0,P.defineEnum)({INFO:"INFO",WARN:"WARN",DEBUG:"DEBUG",ERROR:"ERROR",NONE:"NONE"});const _={[f.LogLevel.NONE]:0,[f.LogLevel.ERROR]:1,[f.LogLevel.WARN]:2,[f.LogLevel.INFO]:3,[f.LogLevel.DEBUG]:4};f.LogMechanism=(0,P.defineEnum)({Default:0,Console:1});const r=new((()=>{class a{constructor(){this.queue=[],this.logMechanism=f.LogMechanism.Default,this.logLevel=f.LogLevel.DEBUG,this._nop=(m,M,...D)=>{},this._d=(m,M,...D)=>this.handleLog(f.LogLevel.DEBUG,m,M,D),this._i=(m,M,...D)=>this.handleLog(f.LogLevel.INFO,m,M,D),this._w=(m,M,...D)=>this.handleLog(f.LogLevel.WARN,m,M,D),this._e=(m,M,...D)=>this.handleLog(f.LogLevel.ERROR,m,M,D)}setLogMechanism(m){this.logMechanism=m}setLogLevel(m){this.logLevel=m}get d(){return _[this.logLevel]<_[f.LogLevel.DEBUG]?this._nop:this.logMechanism===f.LogMechanism.Console?console.debug.bind(console,"%s DEBUG [%s] %s@@",this.renderDate(new Date)):this._d}get w(){return _[this.logLevel]<_[f.LogLevel.WARN]?this._nop:this.logMechanism===f.LogMechanism.Console?console.warn.bind(console,"%s WARN [%s] %s@@",this.renderDate(new Date)):this._w}get i(){return _[this.logLevel]<_[f.LogLevel.INFO]?this._nop:this.logMechanism===f.LogMechanism.Console?console.info.bind(console,"%s INFO [%s] %s@@",this.renderDate(new Date)):this._i}get e(){return _[this.logLevel]<_[f.LogLevel.ERROR]?this._nop:this.logMechanism===f.LogMechanism.Console?console.error.bind(console,"%s ERROR [%s] %s@@",this.renderDate(new Date)):this._e}register(m){this.callback=m,this.queue.length&&window.setTimeout(()=>{this.executeLogCallback(!0)})}isCallbackRegistered(){return!!this.callback}stringifyArgs(...m){return m.length?`##${JSON.stringify(m)}`:""}executeLogCallback(m){this.callback&&this.queue.length&&(this.callback(this.queue[0]),this.queue.shift(),m&&this.queue.length&&window.setTimeout(()=>{this.executeLogCallback(!0)}))}unregister(){this.callback=void 0}handleLog(m,M,D,I){let U=`${D}${this.stringifyArgs(...I)}`,V={timestamp:this.renderDate(new Date),level:m,tag:M,message:U};this.queue.push(V),this.callback?window.setTimeout(()=>{this.executeLogCallback(!1)}):this.queue.length>a.MAX_QUEUE_SIZE&&this.queue.shift()}renderDate(m){const M=(I,U,V)=>{const T=U-I.length;if(T>0){let N="";for(let L=0;L<T;L++)N+=V;return N+=I,N}return I};let D="";return D=M(m.getFullYear().toString(),4,"0")+"-"+M((m.getMonth()+1).toString(),2,"0")+"-"+(M(m.getDate().toString(),2,"0")+" ")+(I=>M(I.getHours().toString(),2,"0"))(m)+":"+(I=>M(I.getMinutes().toString(),2,"0"))(m)+":"+(I=>M(I.getSeconds().toString(),2,"0"))(m)+"."+(I=>M(I.getMilliseconds().toString(),3,"0"))(m),D}}return a.MAX_QUEUE_SIZE=50,a})());f.Log=r,f.Logger=r},623:(y,f,O)=>{Object.defineProperty(f,"__esModule",{value:!0}),f.ProductName=f.ClientVariant=f.PayloadClientType=f.UploadEnvironment=f.ConsentLevel=void 0;const P=O(714);f.ConsentLevel=(0,P.defineEnum)({FULL:"Full",NONE:"None",TEMP:"Temp"}),f.UploadEnvironment=(0,P.defineEnum)({PROD:0,STAGING:1}),f.PayloadClientType=(0,P.defineEnum)({NATIVE:"Native",BROWSER:"Browser",GFNSDK:"GFNSDK",GFNSDK_BROWSER:"GFNSDK-Browser",UNDEFINED:"undefined"}),f.ClientVariant=(0,P.defineEnum)({BETA:"iBeta",RELEASE:"Release",UNDEFINED:"undefined"}),f.ProductName=(0,P.defineEnum)({GFN:"GFN",GFE:"GFE",NVAPP:"NvApp",DISPLAY_DRIVER:"DisplayDriver",UNDEFINED:"undefined"})},673:(y,f,O)=>{O.r(f),O.d(f,{DiagConsoleLogger:()=>Xe,DiagLogLevel:()=>U,INVALID_SPANID:()=>Ht,INVALID_SPAN_CONTEXT:()=>tt,INVALID_TRACEID:()=>Je,ProxyTracer:()=>Pt,ProxyTracerProvider:()=>gn,ROOT_CONTEXT:()=>Ce,SamplingDecision:()=>Ji,SpanKind:()=>Fi,SpanStatusCode:()=>bt,TraceFlags:()=>Ve,ValueType:()=>Z,baggageEntryMetadataFromString:()=>ve,context:()=>ti,createContextKey:()=>ue,createNoopMeter:()=>Qe,createTraceState:()=>pn,default:()=>bo,defaultTextMapGetter:()=>nt,defaultTextMapSetter:()=>Ot,diag:()=>pi,isSpanContextValid:()=>fn,isValidSpanId:()=>Zt,isValidTraceId:()=>Lt,metrics:()=>Jn,propagation:()=>Mr,trace:()=>_o});var P="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof O.g?O.g:{},_="1.4.1",i=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,r=function(Kn){var gi=new Set([Kn]),Pi=new Set,ji=Kn.match(i);if(!ji)return function(){return!1};var Qi=+ji[1],ar=+ji[2],jr=+ji[3];if(null!=ji[4])return function(no){return no===Kn};function ho(no){return Pi.add(no),!1}function Fo(no){return gi.add(no),!0}return function(no){if(gi.has(no))return!0;if(Pi.has(no))return!1;var yo=no.match(i);if(!yo)return ho(no);var Yr=+yo[2],go=+yo[3];return null!=yo[4]||Qi!==+yo[1]?ho(no):0===Qi?ar===Yr&&jr<=go?Fo(no):ho(no):ar<=Yr?Fo(no):ho(no)}}(_),a=_.split(".")[0],c=Symbol.for("opentelemetry.js.api."+a),m=P;function M(Kn,gi,Pi,ji){var Qi;void 0===ji&&(ji=!1);var ar=m[c]=null!==(Qi=m[c])&&void 0!==Qi?Qi:{version:_};if(!ji&&ar[Kn]){var jr=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+Kn);return Pi.error(jr.stack||jr.message),!1}return ar.version!==_?(jr=new Error("@opentelemetry/api: Registration of version v"+ar.version+" for "+Kn+" does not match previously registered API v"+_),Pi.error(jr.stack||jr.message),!1):(ar[Kn]=gi,Pi.debug("@opentelemetry/api: Registered a global for "+Kn+" v"+_+"."),!0)}function D(Kn){var gi,Pi,ji=null===(gi=m[c])||void 0===gi?void 0:gi.version;if(ji&&r(ji))return null===(Pi=m[c])||void 0===Pi?void 0:Pi[Kn]}function I(Kn,gi){gi.debug("@opentelemetry/api: Unregistering a global for "+Kn+" v"+_+".");var Pi=m[c];Pi&&delete Pi[Kn]}var U,Kn,N=function(){function Kn(gi){this._namespace=gi.namespace||"DiagComponentLogger"}return Kn.prototype.debug=function(){for(var gi=[],Pi=0;Pi<arguments.length;Pi++)gi[Pi]=arguments[Pi];return L("debug",this._namespace,gi)},Kn.prototype.error=function(){for(var gi=[],Pi=0;Pi<arguments.length;Pi++)gi[Pi]=arguments[Pi];return L("error",this._namespace,gi)},Kn.prototype.info=function(){for(var gi=[],Pi=0;Pi<arguments.length;Pi++)gi[Pi]=arguments[Pi];return L("info",this._namespace,gi)},Kn.prototype.warn=function(){for(var gi=[],Pi=0;Pi<arguments.length;Pi++)gi[Pi]=arguments[Pi];return L("warn",this._namespace,gi)},Kn.prototype.verbose=function(){for(var gi=[],Pi=0;Pi<arguments.length;Pi++)gi[Pi]=arguments[Pi];return L("verbose",this._namespace,gi)},Kn}();function L(Kn,gi,Pi){var ji=D("diag");if(ji)return Pi.unshift(gi),ji[Kn].apply(ji,function(Kn,gi,Pi){if(Pi||2===arguments.length)for(var ji,Qi=0,ar=gi.length;Qi<ar;Qi++)!ji&&Qi in gi||(ji||(ji=Array.prototype.slice.call(gi,0,Qi)),ji[Qi]=gi[Qi]);return Kn.concat(ji||Array.prototype.slice.call(gi))}([],function(Kn,gi){var Pi="function"==typeof Symbol&&Kn[Symbol.iterator];if(!Pi)return Kn;var ji,Qi,ar=Pi.call(Kn),jr=[];try{for(;(void 0===gi||gi-- >0)&&!(ji=ar.next()).done;)jr.push(ji.value)}catch(ho){Qi={error:ho}}finally{try{ji&&!ji.done&&(Pi=ar.return)&&Pi.call(ar)}finally{if(Qi)throw Qi.error}}return jr}(Pi),!1))}(Kn=U||(U={}))[Kn.NONE=0]="NONE",Kn[Kn.ERROR=30]="ERROR",Kn[Kn.WARN=50]="WARN",Kn[Kn.INFO=60]="INFO",Kn[Kn.DEBUG=70]="DEBUG",Kn[Kn.VERBOSE=80]="VERBOSE",Kn[Kn.ALL=9999]="ALL";var R=function(){function Kn(){function gi(ji){return function(){for(var Qi=[],ar=0;ar<arguments.length;ar++)Qi[ar]=arguments[ar];var jr=D("diag");if(jr)return jr[ji].apply(jr,function(Kn,gi,Pi){if(Pi||2===arguments.length)for(var ji,Qi=0,ar=gi.length;Qi<ar;Qi++)!ji&&Qi in gi||(ji||(ji=Array.prototype.slice.call(gi,0,Qi)),ji[Qi]=gi[Qi]);return Kn.concat(ji||Array.prototype.slice.call(gi))}([],function(Kn,gi){var Pi="function"==typeof Symbol&&Kn[Symbol.iterator];if(!Pi)return Kn;var ji,Qi,ar=Pi.call(Kn),jr=[];try{for(;(void 0===gi||gi-- >0)&&!(ji=ar.next()).done;)jr.push(ji.value)}catch(ho){Qi={error:ho}}finally{try{ji&&!ji.done&&(Pi=ar.return)&&Pi.call(ar)}finally{if(Qi)throw Qi.error}}return jr}(Qi),!1))}}var Pi=this;Pi.setLogger=function(ji,Qi){var ar,jr,ho;if(void 0===Qi&&(Qi={logLevel:U.INFO}),ji===Pi){var Fo=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return Pi.error(null!==(ar=Fo.stack)&&void 0!==ar?ar:Fo.message),!1}"number"==typeof Qi&&(Qi={logLevel:Qi});var no=D("diag"),yo=function(Yr,go){function zo(si,to){var ot=go[si];return"function"==typeof ot&&Yr>=to?ot.bind(go):function(){}}return Yr<U.NONE?Yr=U.NONE:Yr>U.ALL&&(Yr=U.ALL),go=go||{},{error:zo("error",U.ERROR),warn:zo("warn",U.WARN),info:zo("info",U.INFO),debug:zo("debug",U.DEBUG),verbose:zo("verbose",U.VERBOSE)}}(null!==(jr=Qi.logLevel)&&void 0!==jr?jr:U.INFO,ji);if(no&&!Qi.suppressOverrideMessage){var Zr=null!==(ho=(new Error).stack)&&void 0!==ho?ho:"<failed to generate stacktrace>";no.warn("Current logger will be overwritten from "+Zr),yo.warn("Current logger will overwrite one already registered from "+Zr)}return M("diag",yo,Pi,!0)},Pi.disable=function(){I("diag",Pi)},Pi.createComponentLogger=function(ji){return new N(ji)},Pi.verbose=gi("verbose"),Pi.debug=gi("debug"),Pi.info=gi("info"),Pi.warn=gi("warn"),Pi.error=gi("error")}return Kn.instance=function(){return this._instance||(this._instance=new Kn),this._instance},Kn}(),H=function(){function Kn(gi){this._entries=gi?new Map(gi):new Map}return Kn.prototype.getEntry=function(gi){var Pi=this._entries.get(gi);if(Pi)return Object.assign({},Pi)},Kn.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(gi){var Pi=function(Kn,gi){var Pi="function"==typeof Symbol&&Kn[Symbol.iterator];if(!Pi)return Kn;var ji,Qi,ar=Pi.call(Kn),jr=[];try{for(;(void 0===gi||gi-- >0)&&!(ji=ar.next()).done;)jr.push(ji.value)}catch(ho){Qi={error:ho}}finally{try{ji&&!ji.done&&(Pi=ar.return)&&Pi.call(ar)}finally{if(Qi)throw Qi.error}}return jr}(gi,2);return[Pi[0],Pi[1]]})},Kn.prototype.setEntry=function(gi,Pi){var ji=new Kn(this._entries);return ji._entries.set(gi,Pi),ji},Kn.prototype.removeEntry=function(gi){var Pi=new Kn(this._entries);return Pi._entries.delete(gi),Pi},Kn.prototype.removeEntries=function(){for(var gi,Pi,ji=[],Qi=0;Qi<arguments.length;Qi++)ji[Qi]=arguments[Qi];var ar=new Kn(this._entries);try{for(var jr=function(Kn){var gi="function"==typeof Symbol&&Symbol.iterator,Pi=gi&&Kn[gi],ji=0;if(Pi)return Pi.call(Kn);if(Kn&&"number"==typeof Kn.length)return{next:function(){return Kn&&ji>=Kn.length&&(Kn=void 0),{value:Kn&&Kn[ji++],done:!Kn}}};throw new TypeError(gi?"Object is not iterable.":"Symbol.iterator is not defined.")}(ji),ho=jr.next();!ho.done;ho=jr.next())ar._entries.delete(ho.value)}catch(no){gi={error:no}}finally{try{ho&&!ho.done&&(Pi=jr.return)&&Pi.call(jr)}finally{if(gi)throw gi.error}}return ar},Kn.prototype.clear=function(){return new Kn},Kn}(),J=Symbol("BaggageEntryMetadata"),re=R.instance();function ie(Kn){return void 0===Kn&&(Kn={}),new H(new Map(Object.entries(Kn)))}function ve(Kn){return"string"!=typeof Kn&&(re.error("Cannot create baggage metadata from unknown type: "+typeof Kn),Kn=""),{__TYPE__:J,toString:function(){return Kn}}}function ue(Kn){return Symbol.for(Kn)}var se,Z,Ce=new function Kn(gi){var Pi=this;Pi._currentContext=gi?new Map(gi):new Map,Pi.getValue=function(ji){return Pi._currentContext.get(ji)},Pi.setValue=function(ji,Qi){var ar=new Kn(Pi._currentContext);return ar._currentContext.set(ji,Qi),ar},Pi.deleteValue=function(ji){var Qi=new Kn(Pi._currentContext);return Qi._currentContext.delete(ji),Qi}},Be=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],Xe=function(){function Kn(Pi){return function(){for(var ji=[],Qi=0;Qi<arguments.length;Qi++)ji[Qi]=arguments[Qi];if(console){var ar=console[Pi];if("function"!=typeof ar&&(ar=console.log),"function"==typeof ar)return ar.apply(console,ji)}}}for(var gi=0;gi<Be.length;gi++)this[Be[gi].n]=Kn(Be[gi].c)},He=(se=function(Kn,gi){return(se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pi,ji){Pi.__proto__=ji}||function(Pi,ji){for(var Qi in ji)Object.prototype.hasOwnProperty.call(ji,Qi)&&(Pi[Qi]=ji[Qi])})(Kn,gi)},function(Kn,gi){if("function"!=typeof gi&&null!==gi)throw new TypeError("Class extends value "+String(gi)+" is not a constructor or null");function Pi(){this.constructor=Kn}se(Kn,gi),Kn.prototype=null===gi?Object.create(gi):(Pi.prototype=gi.prototype,new Pi)}),Me=function(){function Kn(){}return Kn.prototype.createHistogram=function(gi,Pi){return At},Kn.prototype.createCounter=function(gi,Pi){return Fe},Kn.prototype.createUpDownCounter=function(gi,Pi){return Le},Kn.prototype.createObservableGauge=function(gi,Pi){return $e},Kn.prototype.createObservableCounter=function(gi,Pi){return Et},Kn.prototype.createObservableUpDownCounter=function(gi,Pi){return Ze},Kn.prototype.addBatchObservableCallback=function(gi,Pi){},Kn.prototype.removeBatchObservableCallback=function(gi){},Kn}(),Q=function(){},A=function(Kn){function gi(){return null!==Kn&&Kn.apply(this,arguments)||this}return He(gi,Kn),gi.prototype.add=function(Pi,ji){},gi}(Q),me=function(Kn){function gi(){return null!==Kn&&Kn.apply(this,arguments)||this}return He(gi,Kn),gi.prototype.add=function(Pi,ji){},gi}(Q),ne=function(Kn){function gi(){return null!==Kn&&Kn.apply(this,arguments)||this}return He(gi,Kn),gi.prototype.record=function(Pi,ji){},gi}(Q),G=function(){function Kn(){}return Kn.prototype.addCallback=function(gi){},Kn.prototype.removeCallback=function(gi){},Kn}(),W=function(Kn){function gi(){return null!==Kn&&Kn.apply(this,arguments)||this}return He(gi,Kn),gi}(G),$=function(Kn){function gi(){return null!==Kn&&Kn.apply(this,arguments)||this}return He(gi,Kn),gi}(G),le=function(Kn){function gi(){return null!==Kn&&Kn.apply(this,arguments)||this}return He(gi,Kn),gi}(G),Pe=new Me,Fe=new A,At=new ne,Le=new me,Et=new W,$e=new $,Ze=new le;function Qe(){return Pe}!function(Kn){Kn[Kn.INT=0]="INT",Kn[Kn.DOUBLE=1]="DOUBLE"}(Z||(Z={}));var Ve,nt={get:function(Kn,gi){if(null!=Kn)return Kn[gi]},keys:function(Kn){return null==Kn?[]:Object.keys(Kn)}},Ot={set:function(Kn,gi,Pi){null!=Kn&&(Kn[gi]=Pi)}},We=function(){function Kn(){}return Kn.prototype.active=function(){return Ce},Kn.prototype.with=function(gi,Pi,ji){for(var Qi=[],ar=3;ar<arguments.length;ar++)Qi[ar-3]=arguments[ar];return Pi.call.apply(Pi,function(Kn,gi,Pi){if(Pi||2===arguments.length)for(var ji,Qi=0,ar=gi.length;Qi<ar;Qi++)!ji&&Qi in gi||(ji||(ji=Array.prototype.slice.call(gi,0,Qi)),ji[Qi]=gi[Qi]);return Kn.concat(ji||Array.prototype.slice.call(gi))}([ji],function(Kn,gi){var Pi="function"==typeof Symbol&&Kn[Symbol.iterator];if(!Pi)return Kn;var ji,Qi,ar=Pi.call(Kn),jr=[];try{for(;(void 0===gi||gi-- >0)&&!(ji=ar.next()).done;)jr.push(ji.value)}catch(ho){Qi={error:ho}}finally{try{ji&&!ji.done&&(Pi=ar.return)&&Pi.call(ar)}finally{if(Qi)throw Qi.error}}return jr}(Qi),!1))},Kn.prototype.bind=function(gi,Pi){return Pi},Kn.prototype.enable=function(){return this},Kn.prototype.disable=function(){return this},Kn}(),ft="context",ht=new We,Xt=function(){function Kn(){}return Kn.getInstance=function(){return this._instance||(this._instance=new Kn),this._instance},Kn.prototype.setGlobalContextManager=function(gi){return M(ft,gi,R.instance())},Kn.prototype.active=function(){return this._getContextManager().active()},Kn.prototype.with=function(gi,Pi,ji){for(var Qi,ar=[],jr=3;jr<arguments.length;jr++)ar[jr-3]=arguments[jr];return(Qi=this._getContextManager()).with.apply(Qi,function(Kn,gi,Pi){if(Pi||2===arguments.length)for(var ji,Qi=0,ar=gi.length;Qi<ar;Qi++)!ji&&Qi in gi||(ji||(ji=Array.prototype.slice.call(gi,0,Qi)),ji[Qi]=gi[Qi]);return Kn.concat(ji||Array.prototype.slice.call(gi))}([gi,Pi,ji],function(Kn,gi){var Pi="function"==typeof Symbol&&Kn[Symbol.iterator];if(!Pi)return Kn;var ji,Qi,ar=Pi.call(Kn),jr=[];try{for(;(void 0===gi||gi-- >0)&&!(ji=ar.next()).done;)jr.push(ji.value)}catch(ho){Qi={error:ho}}finally{try{ji&&!ji.done&&(Pi=ar.return)&&Pi.call(ar)}finally{if(Qi)throw Qi.error}}return jr}(ar),!1))},Kn.prototype.bind=function(gi,Pi){return this._getContextManager().bind(gi,Pi)},Kn.prototype._getContextManager=function(){return D(ft)||ht},Kn.prototype.disable=function(){this._getContextManager().disable(),I(ft,R.instance())},Kn}();!function(Kn){Kn[Kn.NONE=0]="NONE",Kn[Kn.SAMPLED=1]="SAMPLED"}(Ve||(Ve={}));var Ht="0000000000000000",Je="00000000000000000000000000000000",tt={traceId:Je,spanId:Ht,traceFlags:Ve.NONE},rt=function(){function Kn(gi){void 0===gi&&(gi=tt),this._spanContext=gi}return Kn.prototype.spanContext=function(){return this._spanContext},Kn.prototype.setAttribute=function(gi,Pi){return this},Kn.prototype.setAttributes=function(gi){return this},Kn.prototype.addEvent=function(gi,Pi){return this},Kn.prototype.setStatus=function(gi){return this},Kn.prototype.updateName=function(gi){return this},Kn.prototype.end=function(gi){},Kn.prototype.isRecording=function(){return!1},Kn.prototype.recordException=function(gi,Pi){},Kn}(),et=ue("OpenTelemetry Context Key SPAN");function St(Kn){return Kn.getValue(et)||void 0}function Gt(){return St(Xt.getInstance().active())}function yt(Kn,gi){return Kn.setValue(et,gi)}function Wt(Kn){return Kn.deleteValue(et)}function ke(Kn,gi){return yt(Kn,new rt(gi))}function be(Kn){var gi;return null===(gi=St(Kn))||void 0===gi?void 0:gi.spanContext()}var Ae=/^([0-9a-f]{32})$/i,qe=/^[0-9a-f]{16}$/i;function Lt(Kn){return Ae.test(Kn)&&Kn!==Je}function Zt(Kn){return qe.test(Kn)&&Kn!==Ht}function fn(Kn){return Lt(Kn.traceId)&&Zt(Kn.spanId)}function hn(Kn){return new rt(Kn)}var Ji,Fi,bt,On=Xt.getInstance(),fi=function(){function Kn(){}return Kn.prototype.startSpan=function(gi,Pi,ji){if(void 0===ji&&(ji=On.active()),Pi?.root)return new rt;var Qi,ar=ji&&be(ji);return"object"==typeof(Qi=ar)&&"string"==typeof Qi.spanId&&"string"==typeof Qi.traceId&&"number"==typeof Qi.traceFlags&&fn(ar)?new rt(ar):new rt},Kn.prototype.startActiveSpan=function(gi,Pi,ji,Qi){var ar,jr,ho;if(!(arguments.length<2)){2===arguments.length?ho=Pi:3===arguments.length?(ar=Pi,ho=ji):(ar=Pi,jr=ji,ho=Qi);var Fo=jr??On.active(),no=this.startSpan(gi,ar,Fo),yo=yt(Fo,no);return On.with(yo,ho,void 0,no)}},Kn}(),bn=new fi,Pt=function(){function Kn(gi,Pi,ji,Qi){this._provider=gi,this.name=Pi,this.version=ji,this.options=Qi}return Kn.prototype.startSpan=function(gi,Pi,ji){return this._getTracer().startSpan(gi,Pi,ji)},Kn.prototype.startActiveSpan=function(gi,Pi,ji,Qi){var ar=this._getTracer();return Reflect.apply(ar.startActiveSpan,ar,arguments)},Kn.prototype._getTracer=function(){if(this._delegate)return this._delegate;var gi=this._provider.getDelegateTracer(this.name,this.version,this.options);return gi?(this._delegate=gi,this._delegate):bn},Kn}(),jt=new(function(){function Kn(){}return Kn.prototype.getTracer=function(gi,Pi,ji){return new fi},Kn}()),gn=function(){function Kn(){}return Kn.prototype.getTracer=function(gi,Pi,ji){var Qi;return null!==(Qi=this.getDelegateTracer(gi,Pi,ji))&&void 0!==Qi?Qi:new Pt(this,gi,Pi,ji)},Kn.prototype.getDelegate=function(){var gi;return null!==(gi=this._delegate)&&void 0!==gi?gi:jt},Kn.prototype.setDelegate=function(gi){this._delegate=gi},Kn.prototype.getDelegateTracer=function(gi,Pi,ji){var Qi;return null===(Qi=this._delegate)||void 0===Qi?void 0:Qi.getTracer(gi,Pi,ji)},Kn}();(function(Kn){Kn[Kn.NOT_RECORD=0]="NOT_RECORD",Kn[Kn.RECORD=1]="RECORD",Kn[Kn.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Ji||(Ji={})),function(Kn){Kn[Kn.INTERNAL=0]="INTERNAL",Kn[Kn.SERVER=1]="SERVER",Kn[Kn.CLIENT=2]="CLIENT",Kn[Kn.PRODUCER=3]="PRODUCER",Kn[Kn.CONSUMER=4]="CONSUMER"}(Fi||(Fi={})),function(Kn){Kn[Kn.UNSET=0]="UNSET",Kn[Kn.OK=1]="OK",Kn[Kn.ERROR=2]="ERROR"}(bt||(bt={}));var ui="[_0-9a-z-*/]",Ii=new RegExp("^(?:[a-z]"+ui+"{0,255}|[a-z0-9]"+ui+"{0,240}@[a-z]"+ui+"{0,13})$"),pr=/^[ -~]{0,255}[!-~]$/,zr=/,|=/,Cn=function(){function Kn(gi){this._internalState=new Map,gi&&this._parse(gi)}return Kn.prototype.set=function(gi,Pi){var ji=this._clone();return ji._internalState.has(gi)&&ji._internalState.delete(gi),ji._internalState.set(gi,Pi),ji},Kn.prototype.unset=function(gi){var Pi=this._clone();return Pi._internalState.delete(gi),Pi},Kn.prototype.get=function(gi){return this._internalState.get(gi)},Kn.prototype.serialize=function(){var gi=this;return this._keys().reduce(function(Pi,ji){return Pi.push(ji+"="+gi.get(ji)),Pi},[]).join(",")},Kn.prototype._parse=function(gi){gi.length>512||(this._internalState=gi.split(",").reverse().reduce(function(Pi,ji){var Fo,Qi=ji.trim(),ar=Qi.indexOf("=");if(-1!==ar){var jr=Qi.slice(0,ar),ho=Qi.slice(ar+1,ji.length);Ii.test(jr)&&(pr.test(Fo=ho)&&!zr.test(Fo))&&Pi.set(jr,ho)}return Pi},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},Kn.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},Kn.prototype._clone=function(){var gi=new Kn;return gi._internalState=new Map(this._internalState),gi},Kn}();function pn(Kn){return new Cn(Kn)}var ti=Xt.getInstance(),pi=R.instance(),cn=new(function(){function Kn(){}return Kn.prototype.getMeter=function(gi,Pi,ji){return Pe},Kn}()),An="metrics",Jn=function(){function Kn(){}return Kn.getInstance=function(){return this._instance||(this._instance=new Kn),this._instance},Kn.prototype.setGlobalMeterProvider=function(gi){return M(An,gi,R.instance())},Kn.prototype.getMeterProvider=function(){return D(An)||cn},Kn.prototype.getMeter=function(gi,Pi,ji){return this.getMeterProvider().getMeter(gi,Pi,ji)},Kn.prototype.disable=function(){I(An,R.instance())},Kn}().getInstance(),hi=function(){function Kn(){}return Kn.prototype.inject=function(gi,Pi){},Kn.prototype.extract=function(gi,Pi){return gi},Kn.prototype.fields=function(){return[]},Kn}(),xi=ue("OpenTelemetry Baggage Key");function xn(Kn){return Kn.getValue(xi)||void 0}function Yn(){return xn(Xt.getInstance().active())}function Gn(Kn,gi){return Kn.setValue(xi,gi)}function Ci(Kn){return Kn.deleteValue(xi)}var ln="propagation",bi=new hi,Zi=function(){function Kn(){this.createBaggage=ie,this.getBaggage=xn,this.getActiveBaggage=Yn,this.setBaggage=Gn,this.deleteBaggage=Ci}return Kn.getInstance=function(){return this._instance||(this._instance=new Kn),this._instance},Kn.prototype.setGlobalPropagator=function(gi){return M(ln,gi,R.instance())},Kn.prototype.inject=function(gi,Pi,ji){return void 0===ji&&(ji=Ot),this._getGlobalPropagator().inject(gi,Pi,ji)},Kn.prototype.extract=function(gi,Pi,ji){return void 0===ji&&(ji=nt),this._getGlobalPropagator().extract(gi,Pi,ji)},Kn.prototype.fields=function(){return this._getGlobalPropagator().fields()},Kn.prototype.disable=function(){I(ln,R.instance())},Kn.prototype._getGlobalPropagator=function(){return D(ln)||bi},Kn}(),Mr=Zi.getInstance(),$r="trace",_o=function(){function Kn(){this._proxyTracerProvider=new gn,this.wrapSpanContext=hn,this.isSpanContextValid=fn,this.deleteSpan=Wt,this.getSpan=St,this.getActiveSpan=Gt,this.getSpanContext=be,this.setSpan=yt,this.setSpanContext=ke}return Kn.getInstance=function(){return this._instance||(this._instance=new Kn),this._instance},Kn.prototype.setGlobalTracerProvider=function(gi){var Pi=M($r,this._proxyTracerProvider,R.instance());return Pi&&this._proxyTracerProvider.setDelegate(gi),Pi},Kn.prototype.getTracerProvider=function(){return D($r)||this._proxyTracerProvider},Kn.prototype.getTracer=function(gi,Pi){return this.getTracerProvider().getTracer(gi,Pi)},Kn.prototype.disable=function(){I($r,R.instance()),this._proxyTracerProvider=new gn},Kn}().getInstance();const bo={context:ti,diag:pi,metrics:Jn,propagation:Mr,trace:_o}},714:(y,f)=>{Object.defineProperty(f,"__esModule",{value:!0}),f.defineEnum=void 0,f.defineEnum=function(O){return O}},865:(y,f,O)=>{Object.defineProperty(f,"__esModule",{value:!0}),f.PlatformOS=f.PlatformType=f.PlatformBrowser=f.ClientHeaderDeviceType=f.ClientHeaderBrowserType=f.ClientHeaderOSType=f.PayloadOSType=f.PayloadBrowserType=f.PayloadDeviceType=void 0;const P=O(714);f.PayloadDeviceType=(0,P.defineEnum)({DESKTOP:"Desktop",LAPTOP:"Laptop",TV:"TV",PHONE:"Phone",TABLET:"Tablet",SERVER:"Server",CONSOLE:"Console",HMD:"HMD",UNDEFINED:"undefined"}),f.PayloadBrowserType=(0,P.defineEnum)({CHROME:"Chrome",SAFARI:"Safari",YANDEX:"Yandex",EDGE:"Edge",EDGE_LEGACY:"Edge_legacy",FIREFOX:"Firefox",SAMSUNG:"Samsung",CHROMIUM:"Chromium",OPERA:"Opera",OPERAGX:"OperaGX",BRAVE:"Brave",SILK:"Silk",UNDEFINED:"undefined"}),f.PayloadOSType=(0,P.defineEnum)({WINDOWS:"Windows",MACOS:"MacOS",SHIELD:"Shield",ANDROID:"Android",IOS:"iOS",IPADOS:"iPadOS",CHROMEOS:"ChromeOS",LINUX:"Linux",TIZEN:"Tizen",WEBOS:"WebOS",TVOS:"tvOS",XBOX:"Xbox",STEAMOS:"SteamOS",VISIONOS:"visionOS",UNDEFINED:"undefined"}),f.ClientHeaderOSType=(0,P.defineEnum)({WINDOWS:"WINDOWS",MACOS:"MACOS",SHIELD:"SHIELD",ANDROID:"ANDROID",IOS:"IOS",IPADOS:"IPADOS",CHROMEOS:"CHROMEOS",LINUX:"LINUX",TIZEN:"TIZEN",WEBOS:"WEBOS",XBOX:"XBOX",STEAMOS:"STEAMOS",VISIONOS:"VISIONOS",UNKNOWN:"UNKNOWN"}),f.ClientHeaderBrowserType=(0,P.defineEnum)({CHROME:"CHROME",SAFARI:"SAFARI",YANDEX:"YANDEX",EDGE:"EDGE",EDGE_LEGACY:"EDGE_LEGACY",FIREFOX:"FIREFOX",SAMSUNG:"SAMSUNG",CHROMIUM:"CHROMIUM",OPERA:"OPERA",OPERAGX:"OPERAGX",BRAVE:"BRAVE",SILK:"SILK",UNKNOWN:"UNKNOWN"}),f.ClientHeaderDeviceType=(0,P.defineEnum)({DESKTOP:"DESKTOP",LAPTOP:"LAPTOP",TV:"TV",PHONE:"PHONE",TABLET:"TABLET",CONSOLE:"CONSOLE",HMD:"HMD",UNKNOWN:"UNKNOWN"}),f.PlatformBrowser=(0,P.defineEnum)({UNKNOWN:"Unknown",CHROME:"Chrome",SAFARI:"Safari",YANDEX:"Yandex",EDGE:"Edge",EDGE_LEGACY:"Edge_Legacy",FIREFOX:"Firefox",SAMSUNG:"Samsung",CHROMIUM:"Chromium",OPERA:"Opera",OPERAGX:"OperaGX",BRAVE:"Brave",SILK:"Silk",REACT:"ReactNative",PICO:"Pico"}),f.PlatformType=(0,P.defineEnum)({UNKNOWN:"UNKNOWN",DESKTOP:"DESKTOP",LAPTOP:"LAPTOP",TV:"TV",PHONE:"PHONE",TABLET:"TABLET",CONSOLE:"CONSOLE",HMD:"HMD"}),f.PlatformOS=(0,P.defineEnum)({UNKNOWN:"Unknown",CHROME_OS:"ChromeOS",WINDOWS:"Windows",MAC:"macOS",LINUX:"Linux",IOS:"iOS",IPADOS:"iPadOS",WEBOS:"WebOS",TIZEN:"Tizen",ANDROID:"Android",FIRETV:"FireTV",XBOX:"Xbox",FREEBSD:"FreeBSD",STEAMOS:"SteamOS",CCOS:"ccOS",VISIONOS:"visionOS"})},921:(y,f)=>{Object.defineProperty(f,"__esModule",{value:!0}),f.CLIENT_ID=void 0,f.CLIENT_ID="62677554106929725"}},d={};function v(y){var f=d[y];if(void 0!==f)return f.exports;var O=d[y]={exports:{}};return l[y](O,O.exports,v),O.exports}v.d=(y,f)=>{for(var O in f)v.o(f,O)&&!v.o(y,O)&&Object.defineProperty(y,O,{enumerable:!0,get:f[O]})},v.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch{if("object"==typeof window)return window}}(),v.o=(y,f)=>Object.prototype.hasOwnProperty.call(y,f),v.r=y=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})};var S={};(()=>{var y=S;Object.defineProperty(y,"__esModule",{value:!0}),y.Profile=y.BitDepth=y.SdrHdrMode=y.translatePlatformInfoForClientHeader=y.translatePlatformInfoForPayload=y.TracingManager=y.LogUploader=y.Logger=y.Log=y.LogMechanism=y.LogLevel=y.LogBuffer=y.NativeNetworkError=y.performHttpRequest=y.HttpErrorCode=y.CancellableWait=y.authInfoToHeader=y.AuthType=y.PlatformType=y.PlatformOS=y.PlatformBrowser=y.ClientHeaderDeviceType=y.ClientHeaderBrowserType=y.ClientHeaderOSType=y.PayloadOSType=y.PayloadBrowserType=y.PayloadDeviceType=y.TelemetryModule=y.GdprLevel=y.NetworkType=y.ProductName=y.ClientVariant=y.PayloadClientType=y.UploadEnvironment=y.ConsentLevel=void 0;var f=v(623);Object.defineProperty(y,"ConsentLevel",{enumerable:!0,get:function(){return f.ConsentLevel}}),Object.defineProperty(y,"UploadEnvironment",{enumerable:!0,get:function(){return f.UploadEnvironment}}),Object.defineProperty(y,"PayloadClientType",{enumerable:!0,get:function(){return f.PayloadClientType}}),Object.defineProperty(y,"ClientVariant",{enumerable:!0,get:function(){return f.ClientVariant}}),Object.defineProperty(y,"ProductName",{enumerable:!0,get:function(){return f.ProductName}});var O=v(422);Object.defineProperty(y,"NetworkType",{enumerable:!0,get:function(){return O.NetworkType}});var P=v(419);Object.defineProperty(y,"GdprLevel",{enumerable:!0,get:function(){return P.GdprLevel}}),Object.defineProperty(y,"TelemetryModule",{enumerable:!0,get:function(){return P.TelemetryModule}});var _=v(865);Object.defineProperty(y,"PayloadDeviceType",{enumerable:!0,get:function(){return _.PayloadDeviceType}}),Object.defineProperty(y,"PayloadBrowserType",{enumerable:!0,get:function(){return _.PayloadBrowserType}}),Object.defineProperty(y,"PayloadOSType",{enumerable:!0,get:function(){return _.PayloadOSType}}),Object.defineProperty(y,"ClientHeaderOSType",{enumerable:!0,get:function(){return _.ClientHeaderOSType}}),Object.defineProperty(y,"ClientHeaderBrowserType",{enumerable:!0,get:function(){return _.ClientHeaderBrowserType}}),Object.defineProperty(y,"ClientHeaderDeviceType",{enumerable:!0,get:function(){return _.ClientHeaderDeviceType}}),Object.defineProperty(y,"PlatformBrowser",{enumerable:!0,get:function(){return _.PlatformBrowser}}),Object.defineProperty(y,"PlatformOS",{enumerable:!0,get:function(){return _.PlatformOS}}),Object.defineProperty(y,"PlatformType",{enumerable:!0,get:function(){return _.PlatformType}});var i=v(250);Object.defineProperty(y,"AuthType",{enumerable:!0,get:function(){return i.AuthType}}),Object.defineProperty(y,"authInfoToHeader",{enumerable:!0,get:function(){return i.authInfoToHeader}});var r=v(379);Object.defineProperty(y,"CancellableWait",{enumerable:!0,get:function(){return r.CancellableWait}});var a=v(121);Object.defineProperty(y,"HttpErrorCode",{enumerable:!0,get:function(){return a.HttpErrorCode}}),Object.defineProperty(y,"performHttpRequest",{enumerable:!0,get:function(){return a.performHttpRequest}}),Object.defineProperty(y,"NativeNetworkError",{enumerable:!0,get:function(){return a.NativeNetworkError}});var c=v(596);Object.defineProperty(y,"LogBuffer",{enumerable:!0,get:function(){return c.LogBuffer}});var m=v(614);Object.defineProperty(y,"LogLevel",{enumerable:!0,get:function(){return m.LogLevel}}),Object.defineProperty(y,"LogMechanism",{enumerable:!0,get:function(){return m.LogMechanism}}),Object.defineProperty(y,"Log",{enumerable:!0,get:function(){return m.Log}}),Object.defineProperty(y,"Logger",{enumerable:!0,get:function(){return m.Logger}});var M=v(36);Object.defineProperty(y,"LogUploader",{enumerable:!0,get:function(){return M.LogUploader}});var D=v(367);Object.defineProperty(y,"TracingManager",{enumerable:!0,get:function(){return D.TracingManager}});var I=v(537);Object.defineProperty(y,"translatePlatformInfoForPayload",{enumerable:!0,get:function(){return I.translatePlatformInfoForPayload}}),Object.defineProperty(y,"translatePlatformInfoForClientHeader",{enumerable:!0,get:function(){return I.translatePlatformInfoForClientHeader}});var U=v(297);Object.defineProperty(y,"SdrHdrMode",{enumerable:!0,get:function(){return U.SdrHdrMode}}),Object.defineProperty(y,"BitDepth",{enumerable:!0,get:function(){return U.BitDepth}}),Object.defineProperty(y,"Profile",{enumerable:!0,get:function(){return U.Profile}})})(),Bt.exports=S})()},72271:function(Bt,z,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(d,v,S,y){void 0===y&&(y=S);var f=Object.getOwnPropertyDescriptor(v,S);(!f||("get"in f?!v.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return v[S]}}),Object.defineProperty(d,y,f)}:function(d,v,S,y){void 0===y&&(y=S),d[y]=v[S]}),l=this&&this.__exportStar||function(d,v){for(var S in d)"default"!==S&&!Object.prototype.hasOwnProperty.call(v,S)&&n(v,d,S)};Object.defineProperty(z,"__esModule",{value:!0}),l(s(27621),z),l(s(51814),z),l(s(78564),z),l(s(24538),z)},78564:(Bt,z,s)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.Logger=void 0;const n=s(51814);z.Logger=class l{constructor(v){this.loggingLevel=v}info(...v){this.logEntry(n.LoggingLevel.Info,v,console.log.bind(console))}error(...v){this.logEntry(n.LoggingLevel.Error,v,console.error.bind(console))}warn(...v){this.logEntry(n.LoggingLevel.Warning,v,console.warn.bind(console))}verbose(...v){this.logEntry(n.LoggingLevel.Verbose,v,console.log.bind(console))}event(...v){this.logEntry(n.LoggingLevel.Event,v,console.log.bind(console))}logEntry(v,S,y){y("[Cloud Variable SDK] "+S)}}},51814:(Bt,z)=>{"use strict";var i;Object.defineProperty(z,"__esModule",{value:!0}),z.openTracingConfig=z.SpanNames=z.CachePolicy=z.ActivityType=z.ExperimentActivationType=z.ActivityExperienceType=z.CommonClientVariant=z.CommonClientType=z.DeviceType=z.CloudVariableStatus=z.StorageType=z.LoggingLevel=void 0,(i=z.LoggingLevel||(z.LoggingLevel={}))[i.None=-1]="None",i[i.Error=1]="Error",i[i.Warning=2]="Warning",i[i.Info=3]="Info",i[i.Verbose=4]="Verbose",i[i.Event=5]="Event",function(i){i.IndexedDB="IndexedDB",i.SharedStorage="SharedStoage",i.LocalStorage="LocalStorage",i.AbHub="AbHub"}(z.StorageType||(z.StorageType={})),function(i){i.Created="Created",i.Updated="Updated",i.Deleted="Deleted",i.Unknown="Unknown"}(z.CloudVariableStatus||(z.CloudVariableStatus={})),function(i){i.Desktop="Desktop",i.Laptop="Laptop",i.TV="TV",i.Phone="Phone",i.Tablet="Tablet",i.Server="Server",i.Undefined="undefined"}(z.DeviceType||(z.DeviceType={})),function(i){i.Native="Native",i.Browser="Browser",i.GFNSDK="GFNSDK",i.Undefined="undefined"}(z.CommonClientType||(z.CommonClientType={})),function(i){i.iBeta="iBeta",i.Release="Release",i.Undefined="undefined"}(z.CommonClientVariant||(z.CommonClientVariant={})),function(i){i.Variant="Variant",i.Control="Control",i.Default="Default",i.Alternate="Alternate"}(z.ActivityExperienceType||(z.ActivityExperienceType={})),function(i){i.USER_ID="USER_ID",i.DEVICE_ID="DEVICE_ID",i.SESSION_ID="SESSION_ID"}(z.ExperimentActivationType||(z.ExperimentActivationType={})),function(i){i.AB="AB",i.Unknown="Unknown",i.XT="XT",i.FR="FR"}(z.ActivityType||(z.ActivityType={})),function(i){i.CACHE="CACHE",i.LIVE="LIVE",i.CACHE_WITH_SILENT_UPDATE="CACHE_WITH_SILENT_UPDATE"}(z.CachePolicy||(z.CachePolicy={})),function(i){i.GxTargetGetCloudVariable="GxTargetGetCloudVariable",i.AxiosGetCloudVariable="AxiosGetCloudVariable"}(z.SpanNames||(z.SpanNames={})),z.openTracingConfig={accessToken:"zpdR5rGHUKaUny6FJUZZkEfSVhzkdRSIz6dCpsjvRtQ0TSQOXZdZlbcUOSaugWHyZnMUe6PGmK60Wi59/rk=",collectorUrl:"https://prod.otel.kaizen.nvidia.com/traces/otlp/v0.9",componentName:"gfn-web-client"}},27621:(Bt,z,s)=>{"use strict";var n=s(8536).default;Object.defineProperty(z,"__esModule",{value:!0}),z.CloudVariableSdkService=void 0;const l=s(26875),d=s(73162),v=s(54326),S=s(51814),y=s(24538),f=s(78564);z.CloudVariableSdkService=class O{constructor(_,i,r,a,c,m){this.sdkConfig=_,this.url=this.url=_.url,this.cvChangeListenersByName=new Map,this.cvNameToResult=new Map,this.logger=new f.Logger(_.loggingLevel),this.readFromStorage=a||this.getIndexedDBCloudVariable,this.writeToStorage=c||this.setIndexedDBCloudVariable,this.buildClientStorageKeyForCv=m,this.cvChangeListeners=[],this.nvOpenTracing=new v.NvOTELTracingService,this.initializeOpenTracing(i,r),!a&&!c&&(this.idbName="gfnclient",this.storeName="kodiakSdkCacheStore",this.openDbInstance())}configureRequestApi(_,i){let r={};const a=this.startSpanUsingContext(_,i);return a&&this.nvOpenTracing.injectSpanHttpHeaders(a,r),[r,a||void 0]}subscribeToAllCloudVariables(_){var i=this;return n(function*(){i.cvChangeListeners.push(_)})()}subscribeToSingleCloudVariable(_,i){let r=this.cvChangeListenersByName.get(_);r?r.push(i):r=[i],this.cvChangeListenersByName.set(_,r)}getCloudVariables(_,i,r,a){if(i===S.CachePolicy.CACHE)return this.getCloudVariablesFromCache(_);let c=new Map,m=this.callGetCloudVariableApi(_,r,a).then(M=>{c=(0,y.formatCloudVariableResponse)(M);let D=this.detectGlobalDifferentCloudVariables(c,_);this.triggerCallbackFuncs(D),this.updateIDB(D)});if(i===S.CachePolicy.CACHE_WITH_SILENT_UPDATE){const M=this.getCloudVariablesFromMap(_);if(M.size>0)return Promise.resolve(M);this.logger.info("no cached cloud variable, sending live")}return m.then(M=>c)}getCloudVariable(_,i,r,a){var c=this;return n(function*(){if(_){const m=yield c.getCloudVariables([_],i,r,a);return m.has(_)?m.get(_):null}return c.logger.error("Cannot request empty cloud variable"),null})()}initializeOpenTracing(_,i){this.tracer=this.nvOpenTracing.getOTELTracer(_,i)}updateGlobalTags(_){this.nvOpenTracing.setGlobalTags(_)}updateServerUrl(_){this.url=_}startSpan(_,i){return this.nvOpenTracing.startSpan(_,i)}startSpanUsingContext(_,i){return this.nvOpenTracing.startSpanUsingContext(_,i)}closeSpan(_){this.nvOpenTracing.closeSpan(_)}callGetCloudVariableApi(_,i,r){var a=this;return n(function*(){const[c,m]=a.configureRequestApi(S.SpanNames.GxTargetGetCloudVariable,r),M=a.sdkConfig.clientInfo,D={cvName:_.join(","),...M,clientParams:JSON.stringify(i)},I=new URL(a.url+"/cloudvariables/v3");Object.keys(D).forEach(V=>I.searchParams.append(V,D[V]));const U=a.fetchWithExponentialBackoff(I,{method:"GET",headers:{"Content-type":"application/json",...c}}).then(V=>V.json().then(T=>T));return a.nvOpenTracing.handleHttpEndpointSpan(U,m)})()}getCloudVariablesFromCache(_){let i=new Map;const r=_.map(a=>this.readFromStorageWrapper(a).then(c=>{c&&i.set(a,c)}).catch(c=>{this.logger.error(`Error while reading cache for ${a}: ${c}`)}));return Promise.all(r).then(a=>i)}getCloudVariablesFromMap(_){let i=new Map;for(const r of _){const a=this.cvNameToResult.get(r);a&&i.set(r,a)}return i}detectGlobalDifferentCloudVariables(_,i){const r=new Map;return _.forEach((a,c)=>{const m=this.cvNameToResult.get(c);m?(0,l.isEqual)(a,m)&&(r.set(a.name,(0,y.formatCloudVariableClientResponse)(a,!1,S.CloudVariableStatus.Updated)),this.cvNameToResult.set(c,a)):(r.set(a.name,(0,y.formatCloudVariableClientResponse)(a,!1,S.CloudVariableStatus.Created)),this.cvNameToResult.set(c,a))}),this.cvNameToResult.forEach((a,c)=>{i.includes(c)&&!_.has(c)&&a.activity&&(r.set(c,(0,y.formatCloudVariableClientResponse)({activity:{id:a.activity.id}},!1,S.CloudVariableStatus.Deleted)),this.cvNameToResult.set(c,{}),this.writeToStorageWrapper(c,{}))}),r}triggerCallbackFuncs(_){this.cvChangeListeners.forEach(i=>{i(_)}),_.forEach((i,r)=>{const a=this.cvChangeListenersByName.get(r);a&&a.forEach(c=>c(_))})}updateIDB(_){_.forEach((i,r)=>{this.writeToStorageWrapper(r,{activity:i.activity,result:i.variation,name:i.name,metadata:i.metadata,value:i.value})})}readFromStorageWrapper(_){var i=this;return n(function*(){const r=(0,y.generateUserIdStorageKey)(_,i.sdkConfig.clientInfo.userId);let a=yield i.readFromStorage(r);if(a)return a;const c=(0,y.generateDeviceIdStorageKey)(_,i.sdkConfig.clientInfo.deviceId);return a=yield i.readFromStorage(c),a||null})()}writeToStorageWrapper(_,i){if((0,l.isEmpty)(i)||void 0===i.name)return;let r;r=this.buildClientStorageKeyForCv?this.buildClientStorageKeyForCv(i.activity.activationType):this.generateIndexedDBKey(i),this.writeToStorage(r,i)}openDbInstance(){var _=this;return n(function*(){const i=yield(0,d.openDB)(_.idbName),r=i.version,a=_.storeName;i.objectStoreNames.contains(a)||(0,d.openDB)(_.idbName,r+1,{upgrade(c){c.createObjectStore(a)}}),i.close()})()}generateIndexedDBKey(_){const i=_.name;let r;switch(_.activity.activationType){case S.ExperimentActivationType.USER_ID:r=(0,y.generateUserIdStorageKey)(i,this.sdkConfig.clientInfo.userId);break;case S.ExperimentActivationType.DEVICE_ID:r=(0,y.generateDeviceIdStorageKey)(i,this.sdkConfig.clientInfo.deviceId);break;default:r=i+"-undefined"}return r}getIndexedDBCloudVariable(_){var i=this;return n(function*(){const r=_.split("-")[0],a=yield(0,d.openDB)(i.idbName),c=yield a.get(i.storeName,_);if(a.close(),c){const m=c.cloudVariables.filter(M=>M.name===r);return 0===m.length?null:m[0]}return null})()}setIndexedDBCloudVariable(_,i){var r=this;return n(function*(){let a=yield(0,d.openDB)(r.idbName);const c=r.storeName,m=a.version;if((0,l.isEmpty)(i)||void 0===i.name)return yield a.delete(r.storeName,_),void a.close();a.objectStoreNames.contains(c)||(a=yield(0,d.openDB)(r.idbName,m+1,{upgrade(M){M.createObjectStore(c)}})),yield a.put(r.storeName,i,_),a.close()})()}fetchWithExponentialBackoff(_,i={}){let r=0;const a=()=>fetch(_,i).then(c=>{if(c.ok)return c;throw new Error(`Request failed with status: ${c.status}`)}).catch(c=>{if(r>=this.sdkConfig.defaultRetries)throw new Error(`Max retries reached. Last error: ${c.message}`);const m=this.sdkConfig.defaultTimeBetweenRetries*Math.pow(2,r);return r++,new Promise(M=>{setTimeout(()=>{M(a())},m)})});return a()}}},24538:(Bt,z,s)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.getCommonClientVariant=z.generateDeviceIdStorageKey=z.generateUserIdStorageKey=z.formatCloudVariableClientResponse=z.formatCloudVariableResponse=void 0;const n=s(51814);z.formatCloudVariableResponse=function l(f){const O=f,P=new Map;return O.cloudVariables.forEach(_=>{P.set(_.name,{name:_.name,result:_.result,value:_.value,activity:_.activity,metadata:_.metadata})}),P},z.formatCloudVariableClientResponse=function d(f,O,P){return{name:f.name,variation:f.result,value:f.value,activity:f.activity,metadata:f.metadata,isCachedResult:O,state:P}},z.generateUserIdStorageKey=function v(f,O){return f+"-"+O},z.generateDeviceIdStorageKey=function S(f,O){return f+"-"+O},z.getCommonClientVariant=function y(f){switch(f){case"ibeta":return n.CommonClientVariant.iBeta;case"release":return n.CommonClientVariant.Release;default:return n.CommonClientVariant.Undefined}}},73162:(Bt,z,s)=>{"use strict";s.r(z),s.d(z,{deleteDB:()=>T,openDB:()=>V,unwrap:()=>U,wrap:()=>I});var n=s(70650);const l=(R,B)=>B.some(X=>R instanceof X);let d,v;const f=new WeakMap,O=new WeakMap,P=new WeakMap,_=new WeakMap,i=new WeakMap;let c={get(R,B,X){if(R instanceof IDBTransaction){if("done"===B)return O.get(R);if("objectStoreNames"===B)return R.objectStoreNames||P.get(R);if("store"===B)return X.objectStoreNames[1]?void 0:X.objectStore(X.objectStoreNames[0])}return I(R[B])},set:(R,B,X)=>(R[B]=X,!0),has:(R,B)=>R instanceof IDBTransaction&&("done"===B||"store"===B)||B in R};function D(R){return"function"==typeof R?function M(R){return R!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function y(){return v||(v=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(R)?function(...B){return R.apply(U(this),B),I(f.get(this))}:function(...B){return I(R.apply(U(this),B))}:function(B,...X){const H=R.call(U(this),B,...X);return P.set(H,B.sort?B.sort():[B]),I(H)}}(R):(R instanceof IDBTransaction&&function a(R){if(O.has(R))return;const B=new Promise((X,H)=>{const J=()=>{R.removeEventListener("complete",re),R.removeEventListener("error",ie),R.removeEventListener("abort",ie)},re=()=>{X(),J()},ie=()=>{H(R.error||new DOMException("AbortError","AbortError")),J()};R.addEventListener("complete",re),R.addEventListener("error",ie),R.addEventListener("abort",ie)});O.set(R,B)}(R),l(R,function S(){return d||(d=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(R,c):R)}function I(R){if(R instanceof IDBRequest)return function r(R){const B=new Promise((X,H)=>{const J=()=>{R.removeEventListener("success",re),R.removeEventListener("error",ie)},re=()=>{X(I(R.result)),J()},ie=()=>{H(R.error),J()};R.addEventListener("success",re),R.addEventListener("error",ie)});return B.then(X=>{X instanceof IDBCursor&&f.set(X,R)}).catch(()=>{}),i.set(B,R),B}(R);if(_.has(R))return _.get(R);const B=D(R);return B!==R&&(_.set(R,B),i.set(B,R)),B}const U=R=>i.get(R);function V(R,B,{blocked:X,upgrade:H,blocking:J,terminated:re}={}){const ie=indexedDB.open(R,B),ve=I(ie);return H&&ie.addEventListener("upgradeneeded",ue=>{H(I(ie.result),ue.oldVersion,ue.newVersion,I(ie.transaction))}),X&&ie.addEventListener("blocked",()=>X()),ve.then(ue=>{re&&ue.addEventListener("close",()=>re()),J&&ue.addEventListener("versionchange",()=>J())}).catch(()=>{}),ve}function T(R,{blocked:B}={}){const X=indexedDB.deleteDatabase(R);return B&&X.addEventListener("blocked",()=>B()),I(X).then(()=>{})}const N=["get","getKey","getAll","getAllKeys","count"],L=["put","add","delete","clear"],E=new Map;function g(R,B){if(!(R instanceof IDBDatabase)||B in R||"string"!=typeof B)return;if(E.get(B))return E.get(B);const X=B.replace(/FromIndex$/,""),H=B!==X,J=L.includes(X);if(!(X in(H?IDBIndex:IDBObjectStore).prototype)||!J&&!N.includes(X))return;const re=function(){var ie=(0,n.A)(function*(ve,...ue){const se=this.transaction(ve,J?"readwrite":"readonly");let Z=se.store;return H&&(Z=Z.index(ue.shift())),(yield Promise.all([Z[X](...ue),J&&se.done]))[0]});return function(ue){return ie.apply(this,arguments)}}();return E.set(B,re),re}!function m(R){c=R(c)}(R=>({...R,get:(B,X,H)=>g(B,X)||R.get(B,X,H),has:(B,X)=>!!g(B,X)||R.has(B,X)}))},54326:function(Bt,z,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(d,v,S,y){void 0===y&&(y=S);var f=Object.getOwnPropertyDescriptor(v,S);(!f||("get"in f?!v.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return v[S]}}),Object.defineProperty(d,y,f)}:function(d,v,S,y){void 0===y&&(y=S),d[y]=v[S]}),l=this&&this.__exportStar||function(d,v){for(var S in d)"default"!==S&&!Object.prototype.hasOwnProperty.call(v,S)&&n(v,d,S)};z.__esModule=!0,l(s(22909),z),l(s(51086),z)},51086:function(Bt,z,s){"use strict";var n=this&&this.__extends||function(){var S=function(y,f){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,P){O.__proto__=P}||function(O,P){for(var _ in P)Object.prototype.hasOwnProperty.call(P,_)&&(O[_]=P[_])})(y,f)};return function(y,f){if("function"!=typeof f&&null!==f)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function O(){this.constructor=y}S(y,f),y.prototype=null===f?Object.create(f):(O.prototype=f.prototype,new O)}}();z.__esModule=!0,z.CustomOTLPExporter=void 0;var l=s(25154),d=s(79848),v=function(S){function y(f,O){var P=S.call(this,f)||this;return P._isTracingDisabledReplaySubject=O,P}return n(y,S),y.prototype.export=function(f,O){var P=this;this._isTracingDisabledReplaySubject.asObservable().pipe((0,d.take)(1)).subscribe(function(_){_||S.prototype.export.call(P,f,O)})},y}(l.OTLPTraceExporter);z.CustomOTLPExporter=v},22909:function(Bt,z,s){"use strict";var n=this&&this.__spreadArray||function(a,c,m){if(m||2===arguments.length)for(var I,M=0,D=c.length;M<D;M++)(I||!(M in c))&&(I||(I=Array.prototype.slice.call(c,0,M)),I[M]=c[M]);return a.concat(I||Array.prototype.slice.call(c))};z.__esModule=!0,z.NvOTELTracingService=z.SpanNames=z.SpanTagNames=z.LightStepTokenHeader=void 0;var _,a,l=s(81116),d=s(14656),v=s(76431),S=s(55561),y=s(98685),f=s(21902),O=s(51086),P=s(21902);z.LightStepTokenHeader="Lightstep-Access-Token",(a=_=z.SpanTagNames||(z.SpanTagNames={})).HttpUrl="http.url",a.HttpStatusCode="http.status_code",a.Error="error",a.SpanKind="span.kind",a.ClientOs="client.os",a.ClientOsName="client.os.name",a.ClientOsVersion="client.os.version",a.ServiceVersion="service.version",a.ServiceType="service.type",a.DeviceId="deviceId",a.AppName="appName",a.CountryCode="countryCode",function(a){a.GxTargetGetSurvey="GxTargetGetSurvey",a.GxTargetPutSurvey="GxTargetPutSurvey"}(z.SpanNames||(z.SpanNames={}));var r=function(){function a(){this.initializationMap=new Map}return a.prototype.initialize=function(c,m){var M,D;if(!this.initializationMap.get(c.componentName)){var I=new d.Resource(((M={})[v.SemanticResourceAttributes.SERVICE_NAME]=c.componentName,M));this.provider=new l.WebTracerProvider({resource:I});var V=new f.W3CTraceContextPropagator;S.propagation.setGlobalPropagator(V);var T=new y.ZoneContextManager;T.enable(),this.provider.register({propagator:V,contextManager:T});var N={headers:(D={},D[z.LightStepTokenHeader]=c.accessToken,D),url:c.collectorUrl};this.exporter=new O.CustomOTLPExporter(N,m),(0,P.setGlobalErrorHandler)(function(g){console.error("Error while tracing sdk",g)}),this.provider.addSpanProcessor(new l.BatchSpanProcessor(this.exporter,{disableAutoFlushOnDocumentHide:!0})),this.initializationMap.set(c.componentName,!0)}},a.prototype.getOTELTracer=function(c,m){return this.initialize(c,m),this.tracer=this.provider.getTracer("nv-open-tracing","1.0"),this.tracer},a.prototype.getSpanContextInfo=function(c){if(!this.tracer)return null;var m={},M=S.trace.setSpanContext(S.context.active(),c.spanContext());return S.propagation.inject(M,m,S.defaultTextMapSetter),m},a.prototype.createSpanUsingContextInfo=function(c,m){if(!this.tracer)return null;var M=S.propagation.extract(S.context.active(),m),D=this.tracer.startSpan(c,{},M);return this.getSpanContextInfo(D),D},a.prototype.createSpan=function(c,m){if(!this.tracer)return null;if(!m)return this.tracer.startSpan(c);var M=S.trace.setSpan(S.context.active(),m);return this.tracer.startSpan(c,{},M)},a.prototype.extractContext=function(c,m,M){var D=m||S.context.active();return S.propagation.extract(D,c,M)},a.prototype.runWithContext=function(c,m,M){for(var D=[],I=3;I<arguments.length;I++)D[I-3]=arguments[I];return S.context.with.apply(S.context,n([c,m,M],D,!1))},a.prototype.setTracer=function(c){this.tracer=c},a.prototype.setSpanAttribute=function(c,m,M){c.setAttribute(m,M)},a.prototype.setSpanAttributes=function(c,m){c.setAttributes(m)},a.prototype.setGlobalTags=function(c){this.commonTags=c},a.prototype.startSpan=function(c,m){return this.createSpan(c,m)},a.prototype.startSpanUsingContext=function(c,m){return this.createSpanUsingContextInfo(c,m)},a.prototype.inject=function(c){return this.getSpanContextInfo(c)},a.prototype.injectSpanHttpHeaders=function(c,m){var M=this.getSpanContextInfo(c);if(M)for(var I=0,U=Object.keys(M);I<U.length;I++){var V=U[I];m[V]=M[V]}},a.prototype.handleHttpSuccess=function(c,m){this.setSpanAttribute(c,_.Error,!1),m&&this.setSpanAttribute(c,_.HttpUrl,m)},a.prototype.handleHttpError=function(c,m){this.setSpanAttribute(c,_.Error,!0),this.setSpanAttribute(c,_.HttpStatusCode,m&&m.status||0)},a.prototype.handleHttpEndpointSpan=function(c,m,M){var D=this;return m?c.then(function(I){return D.handleHttpSuccess(m),D.closeSpan(m),I}).catch(function(I){throw D.handleHttpError(m,I),D.closeSpan(m),I}):c},a.prototype.closeSpan=function(c){c&&(this.setSpanAttributes(c,this.commonTags),c.end())},a}();z.NvOTELTracingService=r},1794:function(Bt,z,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(d,v,S,y){void 0===y&&(y=S);var f=Object.getOwnPropertyDescriptor(v,S);(!f||("get"in f?!v.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return v[S]}}),Object.defineProperty(d,y,f)}:function(d,v,S,y){void 0===y&&(y=S),d[y]=v[S]}),l=this&&this.__exportStar||function(d,v){for(var S in d)"default"!==S&&!Object.prototype.hasOwnProperty.call(v,S)&&n(v,d,S)};Object.defineProperty(z,"__esModule",{value:!0}),l(s(85270),z),l(s(93761),z)},93761:(Bt,z)=>{"use strict";var s,P,n;Object.defineProperty(z,"__esModule",{value:!0}),z.isValidEvent=z.subscribeToIFrameEvents=z.initIFrameCommsChannel=z.LogLevel=z.SurveyEventType=void 0,(P=s=z.SurveyEventType||(z.SurveyEventType={})).Submitted="SURVEY_SUBMITTED",P.Dismissed="SURVEY_DISMISSED",P.Deferred="SURVEY_DEFERRED",P.Minimized="SURVEY_MINIMIZED",P.Errored="SURVEY_ERRORED",P.SubmissionErrored="SURVEY_SUBMISSION_ERRORED",P.Timeout="SURVEY_TIMEOUT",P.CloseDialog="SURVEY_CLOSE_DIALOG",P.LoadComplete="LOAD_COMPLETE",P.ScreenChanged="SCREEN_CHANGED",P.Log="SURVEY_LOG",function(P){P.INFO="INFO",P.WARN="WARN",P.DEBUG="DEBUG",P.ERROR="ERROR"}(n=z.LogLevel||(z.LogLevel={}));const l={logModule:"gxt-survey-app",timeStamp:(new Date).toISOString().replace("T"," ").replace("Z",""),logLevel:n.DEBUG,logTag:"gxt/surveyService",logStr:"Log message couldn't be fetched."};function d(P){return`${P.type}-${P.surveyId}`}const v={};z.initIFrameCommsChannel=()=>{const P=_=>{const i=_.data;if(i.hasOwnProperty("type")&&(0,z.isValidEvent)(i.type)){const r=v[d(i)];r&&r.forEach(a=>{if(i.type===s.Log){let c;c=i.hasOwnProperty("log")?i.log:l,a(c)}else a()})}};return window.addEventListener("message",P,!1),{unsubscribe:()=>window.removeEventListener("message",P)}},z.subscribeToIFrameEvents=function y(P,_){const i=d(P);return v.hasOwnProperty(i)||(v[i]=[]),v[i].push(_),{unsubscribe:f(P,_)}};const f=(P,_)=>()=>{const i=d(P);v[i]=v[i].filter(r=>r!==_)};z.isValidEvent=P=>Object.values(s).includes(P)},85270:(Bt,z,s)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.SurveySdkService=z.ThemeType=z.TriggerType=z.SurveyStatus=z.SurveySdkSpanTagNames=void 0;const n=s(54326),l=s(93761);var d,O,y;(O=d=z.SurveySdkSpanTagNames||(z.SurveySdkSpanTagNames={})).ReadOnly="http.readOnly",O.ClientVariant="clientVariant",O.ClientVersion="clientVersion",O.Environment="env",O.UserId="userId",O.IdpId="idpId",O.SurveyId="surveyId",function(O){O.Progress="Progress",O.Completed="Completed",O.Timeout="Timeout"}(z.SurveyStatus||(z.SurveyStatus={})),function(O){O.UXTestBanner="UXTEST_BANNER",O.SurveyBanner="SURVEY_BANNER",O.CommunicationBanner="COMMUNICATION_BANNER",O.PostGame="POST_GAME",O.Feedback="FEEDBACK",O.NotificationBanner="NOTIFICATION_BANNER",O.BugReport="BUG_REPORT"}(z.TriggerType||(z.TriggerType={})),function(O){O.Light="lightTheme",O.Dark="darkTheme"}(y=z.ThemeType||(z.ThemeType={})),z.SurveySdkService=class f{constructor(){this.nvOpenTracing=new n.NvOTELTracingService,(0,l.initIFrameCommsChannel)()}initializeOpenTracing(P,_){this.tracer=this.nvOpenTracing.getOTELTracer(P,_)}getFullSurveyUrl(P,_){const i=Object.keys(_);if(i.length>0){P+="/?";for(const r of i)P+=`${r}=${_[r]}&`;P=P.substring(0,P.length-1)}return P}initializeClientConfig(P,_,i){this.clientConfig=P,this.initializeOpenTracing(_,i)}updateGlobalTags(P){this.nvOpenTracing.setGlobalTags(P)}updateServerUrl(P){this.clientConfig.url=P}startSpan(P,_){return this.nvOpenTracing.startSpan(P,_)}startSpanUsingContext(P,_){return this.nvOpenTracing.startSpanUsingContext(P,_)}closeSpan(P){this.nvOpenTracing.closeSpan(P)}set surveyStatus(P){this.activeSurveyStatus=P}get surveyStatus(){return this.activeSurveyStatus}getUserSurvey(P,_,i,r,a,c,m,M,D,I,U,V,T,N,L,E="2"){return this.getSurveyApi(P,_,i,!1,c,a,M,D,I,U,V,T,N,L).then(g=>{const R=this.clientConfig.surveyContainerBaseUrl;let B=null;const X=g;if(Object.keys(X).length){B={surveyContainerUrl:this.getFullSurveyUrl(R,{userid:P,idpId:_,locale:m,surveyid:X.sid,clientid:this.clientConfig.clientId,deviceId:i,clientVersion:this.clientConfig.clientVersion,clientVariant:this.clientConfig.clientVariant||"",env:this.clientConfig.env||"",surveyTimeout:r[X.triggerType]||600,triggerType:X.triggerType,surveyVisited:X.surveyVisited||!1,version:E,applicationType:a.application||"GFN",themeType:a.currentAppTheme||y.Dark,...X.configuration||{}}),surveyId:X.sid,triggerType:X.triggerType,bannerText:X.bannerText||"",notificationUrl:X.notificationUrl||"",surveyVisited:X.surveyVisited||!1};const H=X.debugInfo;return H&&H.surveySessionId&&(B.surveySessionId=H.surveySessionId),B}return B})}isCurrentSurveyCompleted(P,_,i,r,a,c,m,M,D,I,U,V,T){return this.getSurveyApi(P,_,i,!0,r,a,c,m,M,D,I,U,V,T).then(N=>!Object.keys(N).length)}configureRequestApi(P,_){let i={};const r=this.startSpanUsingContext(P,_);return r&&this.nvOpenTracing.injectSpanHttpHeaders(r,i),[i,r||void 0]}declineUserSurvey(P,_,i,r){const[a,c]=this.configureRequestApi(n.SpanNames.GxTargetPutSurvey,r);c&&this.nvOpenTracing.setSpanAttributes(c,{[d.SurveyId]:_});const M=new URLSearchParams({userId:P,sid:_,hasDeclined:!0,isPreview:i}),D=new URL(`${this.clientConfig.url}/survey/v1?${M}`),I=this.fetchWithExponentialBackoff(D,{method:"PUT",headers:{"Content-Type":"application/json",...a},body:JSON.stringify({})}).then(()=>!0);return this.nvOpenTracing.handleHttpEndpointSpan(I,c)}submitSurveyPage(P,_,i,r,a,c,m,M){return this.putSurveyDetails(P,_,r,i,a,c,m,M)}getFirstSurveyPage(P,_,i,r,a,c){return this.putSurveyDetails(P,_,i,void 0,void 0,r,a,c)}putSurveyDetails(P,_,i,r,a,c,m,M){const[D,I]=this.configureRequestApi(n.SpanNames.GxTargetPutSurvey,m);I&&this.nvOpenTracing.setSpanAttributes(I,{[d.SurveyId]:_});let U={};U=void 0===r?{userId:P,sid:_,isPreview:c,locale:i,deviceId:M}:{userId:P,sid:_,pid:r,isPreview:c,locale:i,deviceId:M};const V=a?{answers:a}:{},T=new URLSearchParams(U),N=new URL(`${this.clientConfig.url}/survey/v1?${T}`),L=this.fetchWithExponentialBackoff(N,{method:"PUT",body:JSON.stringify(V),headers:{"Content-Type":"application/json",...D}}).then(E=>E.json().then(g=>{let B={surveyId:g.sid,page:g.page,isLastPage:g.is_last_page,error:g.error};return I&&console.log(E),B}));return this.nvOpenTracing.handleHttpEndpointSpan(L,I)}getSurveyApi(P,_,i,r=!1,a,c,m,M,D,I,U,V,T,N){const[L,E]=this.configureRequestApi(n.SpanNames.GxTargetGetSurvey,N);E&&this.nvOpenTracing.setSpanAttributes(E,{[d.ReadOnly]:r});const g={clientId:this.clientConfig.clientId,deviceId:i,userId:P,idpId:_,clientVer:this.clientConfig.clientVersion,clientVariant:this.clientConfig.clientVariant,clientParams:JSON.stringify(c),deviceOS:m,deviceType:M,deviceMake:D,deviceModel:I,deviceOSVersion:U,clientType:V,browserType:T,triggerType:a.join(","),readOnly:r},R=new URLSearchParams(g),B=new URL(`${this.clientConfig.url}/survey/v2?${R}`),X=this.fetchWithExponentialBackoff(B,{method:"GET",headers:{...L}}).then(H=>H.json().then(J=>{if(E){const re=J;console.log("fetch api data: "+JSON.stringify(re)),Object.keys(re).length&&this.nvOpenTracing.setSpanAttributes(E,{[d.SurveyId]:re.sid})}return J})).catch(H=>{console.log("fetch error"+H)});return this.nvOpenTracing.handleHttpEndpointSpan(X,E)}fetchWithExponentialBackoff(P,_={}){let i=0;const r=()=>fetch(P,_).then(a=>{if(a.ok)return a;throw new Error(`Request failed with status: ${a.status}`)}).catch(a=>{if(i>=this.clientConfig.defaultRetries)throw new Error(`Max retries reached. Last error: ${a.message}`);const c=this.clientConfig.defaultTimeBetweenRetries*Math.pow(2,i);return i++,new Promise(m=>{setTimeout(()=>{m(r())},c)})});return r()}}},18839:(Bt,z,s)=>{"use strict";s.d(z,{_:()=>i});var n=s(24773),v=function(){function r(){}return r.prototype.active=function(){return n.l},r.prototype.with=function(a,c,m){for(var M=[],D=3;D<arguments.length;D++)M[D-3]=arguments[D];return c.call.apply(c,function(r,a,c){if(c||2===arguments.length)for(var D,m=0,M=a.length;m<M;m++)(D||!(m in a))&&(D||(D=Array.prototype.slice.call(a,0,m)),D[m]=a[m]);return r.concat(D||Array.prototype.slice.call(a))}([m],function(r,a){var c="function"==typeof Symbol&&r[Symbol.iterator];if(!c)return r;var M,I,m=c.call(r),D=[];try{for(;(void 0===a||a-- >0)&&!(M=m.next()).done;)D.push(M.value)}catch(U){I={error:U}}finally{try{M&&!M.done&&(c=m.return)&&c.call(m)}finally{if(I)throw I.error}}return D}(M),!1))},r.prototype.bind=function(a,c){return c},r.prototype.enable=function(){return this},r.prototype.disable=function(){return this},r}(),S=s(95727),y=s(14051),P="context",_=new v,i=function(){function r(){}return r.getInstance=function(){return this._instance||(this._instance=new r),this._instance},r.prototype.setGlobalContextManager=function(a){return(0,S.$G)(P,a,y.K.instance())},r.prototype.active=function(){return this._getContextManager().active()},r.prototype.with=function(a,c,m){for(var M,D=[],I=3;I<arguments.length;I++)D[I-3]=arguments[I];return(M=this._getContextManager()).with.apply(M,function(r,a,c){if(c||2===arguments.length)for(var D,m=0,M=a.length;m<M;m++)(D||!(m in a))&&(D||(D=Array.prototype.slice.call(a,0,m)),D[m]=a[m]);return r.concat(D||Array.prototype.slice.call(a))}([a,c,m],function(r,a){var c="function"==typeof Symbol&&r[Symbol.iterator];if(!c)return r;var M,I,m=c.call(r),D=[];try{for(;(void 0===a||a-- >0)&&!(M=m.next()).done;)D.push(M.value)}catch(U){I={error:U}}finally{try{M&&!M.done&&(c=m.return)&&c.call(m)}finally{if(I)throw I.error}}return D}(D),!1))},r.prototype.bind=function(a,c){return this._getContextManager().bind(a,c)},r.prototype._getContextManager=function(){return(0,S.mS)(P)||_},r.prototype.disable=function(){this._getContextManager().disable(),(0,S.kv)(P,y.K.instance())},r}()},14051:(Bt,z,s)=>{"use strict";s.d(z,{K:()=>i});var n=s(95727),v=function(){function r(a){this._namespace=a.namespace||"DiagComponentLogger"}return r.prototype.debug=function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];return S("debug",this._namespace,a)},r.prototype.error=function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];return S("error",this._namespace,a)},r.prototype.info=function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];return S("info",this._namespace,a)},r.prototype.warn=function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];return S("warn",this._namespace,a)},r.prototype.verbose=function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];return S("verbose",this._namespace,a)},r}();function S(r,a,c){var m=(0,n.mS)("diag");if(m)return c.unshift(a),m[r].apply(m,function(r,a,c){if(c||2===arguments.length)for(var D,m=0,M=a.length;m<M;m++)(D||!(m in a))&&(D||(D=Array.prototype.slice.call(a,0,m)),D[m]=a[m]);return r.concat(D||Array.prototype.slice.call(a))}([],function(r,a){var c="function"==typeof Symbol&&r[Symbol.iterator];if(!c)return r;var M,I,m=c.call(r),D=[];try{for(;(void 0===a||a-- >0)&&!(M=m.next()).done;)D.push(M.value)}catch(U){I={error:U}}finally{try{M&&!M.done&&(c=m.return)&&c.call(m)}finally{if(I)throw I.error}}return D}(c),!1))}var y=s(56737),i=function(){function r(){function a(M){return function(){for(var D=[],I=0;I<arguments.length;I++)D[I]=arguments[I];var U=(0,n.mS)("diag");if(U)return U[M].apply(U,function(r,a,c){if(c||2===arguments.length)for(var D,m=0,M=a.length;m<M;m++)(D||!(m in a))&&(D||(D=Array.prototype.slice.call(a,0,m)),D[m]=a[m]);return r.concat(D||Array.prototype.slice.call(a))}([],function(r,a){var c="function"==typeof Symbol&&r[Symbol.iterator];if(!c)return r;var M,I,m=c.call(r),D=[];try{for(;(void 0===a||a-- >0)&&!(M=m.next()).done;)D.push(M.value)}catch(U){I={error:U}}finally{try{M&&!M.done&&(c=m.return)&&c.call(m)}finally{if(I)throw I.error}}return D}(D),!1))}}var c=this;c.setLogger=function(M,D){var I,U,V;if(void 0===D&&(D={logLevel:y.u.INFO}),M===c){var T=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return c.error(null!==(I=T.stack)&&void 0!==I?I:T.message),!1}"number"==typeof D&&(D={logLevel:D});var N=(0,n.mS)("diag"),L=function f(r,a){function c(m,M){var D=a[m];return"function"==typeof D&&r>=M?D.bind(a):function(){}}return r<y.u.NONE?r=y.u.NONE:r>y.u.ALL&&(r=y.u.ALL),a=a||{},{error:c("error",y.u.ERROR),warn:c("warn",y.u.WARN),info:c("info",y.u.INFO),debug:c("debug",y.u.DEBUG),verbose:c("verbose",y.u.VERBOSE)}}(null!==(U=D.logLevel)&&void 0!==U?U:y.u.INFO,M);if(N&&!D.suppressOverrideMessage){var E=null!==(V=(new Error).stack)&&void 0!==V?V:"<failed to generate stacktrace>";N.warn("Current logger will be overwritten from "+E),L.warn("Current logger will overwrite one already registered from "+E)}return(0,n.$G)("diag",L,c,!0)},c.disable=function(){(0,n.kv)("diag",c)},c.createComponentLogger=function(M){return new v(M)},c.verbose=a("verbose"),c.debug=a("debug"),c.info=a("info"),c.warn=a("warn"),c.error=a("error")}return r.instance=function(){return this._instance||(this._instance=new r),this._instance},r}()},44588:(Bt,z,s)=>{"use strict";s.d(z,{B:()=>O,L:()=>f});var n=s(14051),v=function(){function P(_){this._entries=_?new Map(_):new Map}return P.prototype.getEntry=function(_){var i=this._entries.get(_);if(i)return Object.assign({},i)},P.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(_){var i=function(P,_){var i="function"==typeof Symbol&&P[Symbol.iterator];if(!i)return P;var a,m,r=i.call(P),c=[];try{for(;(void 0===_||_-- >0)&&!(a=r.next()).done;)c.push(a.value)}catch(M){m={error:M}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(m)throw m.error}}return c}(_,2);return[i[0],i[1]]})},P.prototype.setEntry=function(_,i){var r=new P(this._entries);return r._entries.set(_,i),r},P.prototype.removeEntry=function(_){var i=new P(this._entries);return i._entries.delete(_),i},P.prototype.removeEntries=function(){for(var _,i,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var c=new P(this._entries);try{for(var m=function(P){var _="function"==typeof Symbol&&Symbol.iterator,i=_&&P[_],r=0;if(i)return i.call(P);if(P&&"number"==typeof P.length)return{next:function(){return P&&r>=P.length&&(P=void 0),{value:P&&P[r++],done:!P}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),M=m.next();!M.done;M=m.next())c._entries.delete(M.value)}catch(I){_={error:I}}finally{try{M&&!M.done&&(i=m.return)&&i.call(m)}finally{if(_)throw _.error}}return c},P.prototype.clear=function(){return new P},P}(),S=Symbol("BaggageEntryMetadata"),y=n.K.instance();function f(P){return void 0===P&&(P={}),new v(new Map(Object.entries(P)))}function O(P){return"string"!=typeof P&&(y.error("Cannot create baggage metadata from unknown type: "+typeof P),P=""),{__TYPE__:S,toString:function(){return P}}}},33784:(Bt,z,s)=>{"use strict";s.d(z,{_:()=>l});var l=s(18839)._.getInstance()},24773:(Bt,z,s)=>{"use strict";function n(v){return Symbol.for(v)}s.d(z,{l:()=>d,n:()=>n});var d=new(function(){return function v(S){var y=this;y._currentContext=S?new Map(S):new Map,y.getValue=function(f){return y._currentContext.get(f)},y.setValue=function(f,O){var P=new v(y._currentContext);return P._currentContext.set(f,O),P},y.deleteValue=function(f){var O=new v(y._currentContext);return O._currentContext.delete(f),O}}}())},40698:(Bt,z,s)=>{"use strict";s.d(z,{s:()=>l});var l=s(14051).K.instance()},56737:(Bt,z,s)=>{"use strict";s.d(z,{u:()=>n});var n=function(l){return l[l.NONE=0]="NONE",l[l.ERROR=30]="ERROR",l[l.WARN=50]="WARN",l[l.INFO=60]="INFO",l[l.DEBUG=70]="DEBUG",l[l.VERBOSE=80]="VERBOSE",l[l.ALL=9999]="ALL",l}(n||{})},55561:(Bt,z,s)=>{"use strict";s.r(z),s.d(z,{DiagConsoleLogger:()=>v,DiagLogLevel:()=>S.u,INVALID_SPANID:()=>G.w9,INVALID_SPAN_CONTEXT:()=>G.dM,INVALID_TRACEID:()=>G.RH,ProxyTracer:()=>R.y,ProxyTracerProvider:()=>B.n,ROOT_CONTEXT:()=>l.l,SamplingDecision:()=>X.i,SpanKind:()=>H.v,SpanStatusCode:()=>J.s,TraceFlags:()=>re.X,ValueType:()=>E,baggageEntryMetadataFromString:()=>n.B,context:()=>W._,createContextKey:()=>l.n,createNoopMeter:()=>L,createTraceState:()=>me,default:()=>Ve,defaultTextMapGetter:()=>g.q,defaultTextMapSetter:()=>g.U,diag:()=>$.s,isSpanContextValid:()=>ne.YA,isValidSpanId:()=>ne.wN,isValidTraceId:()=>ne.hX,metrics:()=>$e,propagation:()=>Ze.$,trace:()=>Qe.u});var n=s(44588),l=s(24773),d=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],v=function(){return function nt(){function Ot(It){return function(){for(var We=[],xe=0;xe<arguments.length;xe++)We[xe]=arguments[xe];if(console){var lt=console[It];if("function"!=typeof lt&&(lt=console.log),"function"==typeof lt)return lt.apply(console,We)}}}for(var at=0;at<d.length;at++)this[d[at].n]=Ot(d[at].c)}}(),S=s(56737),y=function(){var nt=function(Ot,at){return(nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,We){It.__proto__=We}||function(It,We){for(var xe in We)Object.prototype.hasOwnProperty.call(We,xe)&&(It[xe]=We[xe])})(Ot,at)};return function(Ot,at){if("function"!=typeof at&&null!==at)throw new TypeError("Class extends value "+String(at)+" is not a constructor or null");function It(){this.constructor=Ot}nt(Ot,at),Ot.prototype=null===at?Object.create(at):(It.prototype=at.prototype,new It)}}(),f=function(){function nt(){}return nt.prototype.createHistogram=function(Ot,at){return I},nt.prototype.createCounter=function(Ot,at){return D},nt.prototype.createUpDownCounter=function(Ot,at){return U},nt.prototype.createObservableGauge=function(Ot,at){return T},nt.prototype.createObservableCounter=function(Ot,at){return V},nt.prototype.createObservableUpDownCounter=function(Ot,at){return N},nt.prototype.addBatchObservableCallback=function(Ot,at){},nt.prototype.removeBatchObservableCallback=function(Ot){},nt}(),O=function(){return function nt(){}}(),P=function(nt){function Ot(){return null!==nt&&nt.apply(this,arguments)||this}return y(Ot,nt),Ot.prototype.add=function(at,It){},Ot}(O),_=function(nt){function Ot(){return null!==nt&&nt.apply(this,arguments)||this}return y(Ot,nt),Ot.prototype.add=function(at,It){},Ot}(O),i=function(nt){function Ot(){return null!==nt&&nt.apply(this,arguments)||this}return y(Ot,nt),Ot.prototype.record=function(at,It){},Ot}(O),r=function(){function nt(){}return nt.prototype.addCallback=function(Ot){},nt.prototype.removeCallback=function(Ot){},nt}(),a=function(nt){function Ot(){return null!==nt&&nt.apply(this,arguments)||this}return y(Ot,nt),Ot}(r),c=function(nt){function Ot(){return null!==nt&&nt.apply(this,arguments)||this}return y(Ot,nt),Ot}(r),m=function(nt){function Ot(){return null!==nt&&nt.apply(this,arguments)||this}return y(Ot,nt),Ot}(r),M=new f,D=new P,I=new i,U=new _,V=new a,T=new c,N=new m;function L(){return M}var E=function(nt){return nt[nt.INT=0]="INT",nt[nt.DOUBLE=1]="DOUBLE",nt}(E||{}),g=s(84877),R=s(62069),B=s(17409),X=s(42710),H=s(23431),J=s(75376),re=s(57585),ie="[_0-9a-z-*/]",se=new RegExp("^(?:[a-z]"+ie+"{0,255}|[a-z0-9]"+ie+"{0,240}@[a-z]"+ie+"{0,13})$"),Z=/^[ -~]{0,255}[!-~]$/,Se=/,|=/,A=function(){function nt(Ot){this._internalState=new Map,Ot&&this._parse(Ot)}return nt.prototype.set=function(Ot,at){var It=this._clone();return It._internalState.has(Ot)&&It._internalState.delete(Ot),It._internalState.set(Ot,at),It},nt.prototype.unset=function(Ot){var at=this._clone();return at._internalState.delete(Ot),at},nt.prototype.get=function(Ot){return this._internalState.get(Ot)},nt.prototype.serialize=function(){var Ot=this;return this._keys().reduce(function(at,It){return at.push(It+"="+Ot.get(It)),at},[]).join(",")},nt.prototype._parse=function(Ot){Ot.length>512||(this._internalState=Ot.split(",").reverse().reduce(function(at,It){var We=It.trim(),xe=We.indexOf("=");if(-1!==xe){var lt=We.slice(0,xe),ft=We.slice(xe+1,It.length);(function Ce(nt){return se.test(nt)})(lt)&&function Be(nt){return Z.test(nt)&&!Se.test(nt)}(ft)&&at.set(lt,ft)}return at},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},nt.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},nt.prototype._clone=function(){var Ot=new nt;return Ot._internalState=new Map(this._internalState),Ot},nt}();function me(nt){return new A(nt)}var ne=s(63051),G=s(99652),W=s(33784),$=s(40698),Pe=new(function(){function nt(){}return nt.prototype.getMeter=function(Ot,at,It){return M},nt}()),Fe=s(95727),At=s(14051),Le="metrics",$e=function(){function nt(){}return nt.getInstance=function(){return this._instance||(this._instance=new nt),this._instance},nt.prototype.setGlobalMeterProvider=function(Ot){return(0,Fe.$G)(Le,Ot,At.K.instance())},nt.prototype.getMeterProvider=function(){return(0,Fe.mS)(Le)||Pe},nt.prototype.getMeter=function(Ot,at,It){return this.getMeterProvider().getMeter(Ot,at,It)},nt.prototype.disable=function(){(0,Fe.kv)(Le,At.K.instance())},nt}().getInstance(),Ze=s(35475),Qe=s(92414);const Ve={context:W._,diag:$.s,metrics:$e,propagation:Ze.$,trace:Qe.u}},95727:(Bt,z,s)=>{"use strict";s.d(z,{mS:()=>_,$G:()=>P,kv:()=>i});var n="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},l="1.4.1",d=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,S=function v(r){var a=new Set([r]),c=new Set,m=r.match(d);if(!m)return function(){return!1};var M_major=+m[1],M_minor=+m[2],M_patch=+m[3];if(null!=m[4])return function(V){return V===r};function D(U){return c.add(U),!1}function I(U){return a.add(U),!0}return function(V){if(a.has(V))return!0;if(c.has(V))return!1;var T=V.match(d);if(!T)return D(V);var N_minor=+T[2],N_patch=+T[3];return null!=T[4]||M_major!==+T[1]?D(V):0===M_major?M_minor===N_minor&&M_patch<=N_patch?I(V):D(V):M_minor<=N_minor?I(V):D(V)}}(l),y=l.split(".")[0],f=Symbol.for("opentelemetry.js.api."+y),O=n;function P(r,a,c,m){var M;void 0===m&&(m=!1);var D=O[f]=null!==(M=O[f])&&void 0!==M?M:{version:l};if(!m&&D[r]){var I=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+r);return c.error(I.stack||I.message),!1}return D.version!==l?(I=new Error("@opentelemetry/api: Registration of version v"+D.version+" for "+r+" does not match previously registered API v"+l),c.error(I.stack||I.message),!1):(D[r]=a,c.debug("@opentelemetry/api: Registered a global for "+r+" v"+l+"."),!0)}function _(r){var a,c,m=null===(a=O[f])||void 0===a?void 0:a.version;if(m&&S(m))return null===(c=O[f])||void 0===c?void 0:c[r]}function i(r,a){a.debug("@opentelemetry/api: Unregistering a global for "+r+" v"+l+".");var c=O[f];c&&delete c[r]}},35475:(Bt,z,s)=>{"use strict";s.d(z,{$:()=>M});var n=s(95727),l=function(){function D(){}return D.prototype.inject=function(I,U){},D.prototype.extract=function(I,U){return I},D.prototype.fields=function(){return[]},D}(),d=s(84877),v=s(18839),y=(0,s(24773).n)("OpenTelemetry Baggage Key");function f(D){return D.getValue(y)||void 0}function O(){return f(v._.getInstance().active())}function P(D,I){return D.setValue(y,I)}function _(D){return D.deleteValue(y)}var i=s(44588),r=s(14051),a="propagation",c=new l,M=function(){function D(){this.createBaggage=i.L,this.getBaggage=f,this.getActiveBaggage=O,this.setBaggage=P,this.deleteBaggage=_}return D.getInstance=function(){return this._instance||(this._instance=new D),this._instance},D.prototype.setGlobalPropagator=function(I){return(0,n.$G)(a,I,r.K.instance())},D.prototype.inject=function(I,U,V){return void 0===V&&(V=d.U),this._getGlobalPropagator().inject(I,U,V)},D.prototype.extract=function(I,U,V){return void 0===V&&(V=d.q),this._getGlobalPropagator().extract(I,U,V)},D.prototype.fields=function(){return this._getGlobalPropagator().fields()},D.prototype.disable=function(){(0,n.kv)(a,r.K.instance())},D.prototype._getGlobalPropagator=function(){return(0,n.mS)(a)||c},D}().getInstance()},84877:(Bt,z,s)=>{"use strict";s.d(z,{U:()=>l,q:()=>n});var n={get:function(d,v){if(null!=d)return d[v]},keys:function(d){return null==d?[]:Object.keys(d)}},l={set:function(d,v,S){null!=d&&(d[v]=S)}}},92414:(Bt,z,s)=>{"use strict";s.d(z,{u:()=>O});var n=s(95727),l=s(17409),d=s(63051),v=s(54551),S=s(14051),y="trace",O=function(){function P(){this._proxyTracerProvider=new l.n,this.wrapSpanContext=d.IP,this.isSpanContextValid=d.YA,this.deleteSpan=v.EW,this.getSpan=v.fU,this.getActiveSpan=v.Bk,this.getSpanContext=v.w8,this.setSpan=v.Bx,this.setSpanContext=v.g_}return P.getInstance=function(){return this._instance||(this._instance=new P),this._instance},P.prototype.setGlobalTracerProvider=function(_){var i=(0,n.$G)(y,this._proxyTracerProvider,S.K.instance());return i&&this._proxyTracerProvider.setDelegate(_),i},P.prototype.getTracerProvider=function(){return(0,n.mS)(y)||this._proxyTracerProvider},P.prototype.getTracer=function(_,i){return this.getTracerProvider().getTracer(_,i)},P.prototype.disable=function(){(0,n.kv)(y,S.K.instance()),this._proxyTracerProvider=new l.n},P}().getInstance()},38252:(Bt,z,s)=>{"use strict";s.d(z,{d:()=>l});var n=s(99652),l=function(){function d(v){void 0===v&&(v=n.dM),this._spanContext=v}return d.prototype.spanContext=function(){return this._spanContext},d.prototype.setAttribute=function(v,S){return this},d.prototype.setAttributes=function(v){return this},d.prototype.addEvent=function(v,S){return this},d.prototype.setStatus=function(v){return this},d.prototype.updateName=function(v){return this},d.prototype.end=function(v){},d.prototype.isRecording=function(){return!1},d.prototype.recordException=function(v,S){},d}()},31799:(Bt,z,s)=>{"use strict";s.d(z,{o:()=>y});var n=s(18839),l=s(54551),d=s(38252),v=s(63051),S=n._.getInstance(),y=function(){function O(){}return O.prototype.startSpan=function(P,_,i){if(void 0===i&&(i=S.active()),_?.root)return new d.d;var a=i&&(0,l.w8)(i);return function f(O){return"object"==typeof O&&"string"==typeof O.spanId&&"string"==typeof O.traceId&&"number"==typeof O.traceFlags}(a)&&(0,v.YA)(a)?new d.d(a):new d.d},O.prototype.startActiveSpan=function(P,_,i,r){var a,c,m;if(!(arguments.length<2)){2===arguments.length?m=_:3===arguments.length?(a=_,m=i):(a=_,c=i,m=r);var M=c??S.active(),D=this.startSpan(P,a,M),I=(0,l.Bx)(M,D);return S.with(I,m,void 0,D)}},O}()},62069:(Bt,z,s)=>{"use strict";s.d(z,{y:()=>d});var l=new(s(31799).o),d=function(){function v(S,y,f,O){this._provider=S,this.name=y,this.version=f,this.options=O}return v.prototype.startSpan=function(S,y,f){return this._getTracer().startSpan(S,y,f)},v.prototype.startActiveSpan=function(S,y,f,O){var P=this._getTracer();return Reflect.apply(P.startActiveSpan,P,arguments)},v.prototype._getTracer=function(){if(this._delegate)return this._delegate;var S=this._provider.getDelegateTracer(this.name,this.version,this.options);return S?(this._delegate=S,this._delegate):l},v}()},17409:(Bt,z,s)=>{"use strict";s.d(z,{n:()=>S});var n=s(62069),l=s(31799),v=new(function(){function y(){}return y.prototype.getTracer=function(f,O,P){return new l.o},y}()),S=function(){function y(){}return y.prototype.getTracer=function(f,O,P){var _;return null!==(_=this.getDelegateTracer(f,O,P))&&void 0!==_?_:new n.y(this,f,O,P)},y.prototype.getDelegate=function(){var f;return null!==(f=this._delegate)&&void 0!==f?f:v},y.prototype.setDelegate=function(f){this._delegate=f},y.prototype.getDelegateTracer=function(f,O,P){var _;return null===(_=this._delegate)||void 0===_?void 0:_.getTracer(f,O,P)},y}()},42710:(Bt,z,s)=>{"use strict";s.d(z,{i:()=>n});var n=function(l){return l[l.NOT_RECORD=0]="NOT_RECORD",l[l.RECORD=1]="RECORD",l[l.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED",l}(n||{})},54551:(Bt,z,s)=>{"use strict";s.d(z,{Bk:()=>y,Bx:()=>f,EW:()=>O,fU:()=>S,g_:()=>P,w8:()=>_});var n=s(24773),l=s(38252),d=s(18839),v=(0,n.n)("OpenTelemetry Context Key SPAN");function S(i){return i.getValue(v)||void 0}function y(){return S(d._.getInstance().active())}function f(i,r){return i.setValue(v,r)}function O(i){return i.deleteValue(v)}function P(i,r){return f(i,new l.d(r))}function _(i){var r;return null===(r=S(i))||void 0===r?void 0:r.spanContext()}},99652:(Bt,z,s)=>{"use strict";s.d(z,{RH:()=>d,dM:()=>v,w9:()=>l});var n=s(57585),l="0000000000000000",d="00000000000000000000000000000000",v={traceId:d,spanId:l,traceFlags:n.X.NONE}},23431:(Bt,z,s)=>{"use strict";s.d(z,{v:()=>n});var n=function(l){return l[l.INTERNAL=0]="INTERNAL",l[l.SERVER=1]="SERVER",l[l.CLIENT=2]="CLIENT",l[l.PRODUCER=3]="PRODUCER",l[l.CONSUMER=4]="CONSUMER",l}(n||{})},63051:(Bt,z,s)=>{"use strict";s.d(z,{IP:()=>O,YA:()=>f,hX:()=>S,wN:()=>y});var n=s(99652),l=s(38252),d=/^([0-9a-f]{32})$/i,v=/^[0-9a-f]{16}$/i;function S(P){return d.test(P)&&P!==n.RH}function y(P){return v.test(P)&&P!==n.w9}function f(P){return S(P.traceId)&&y(P.spanId)}function O(P){return new l.d(P)}},75376:(Bt,z,s)=>{"use strict";s.d(z,{s:()=>n});var n=function(l){return l[l.UNSET=0]="UNSET",l[l.OK=1]="OK",l[l.ERROR=2]="ERROR",l}(n||{})},57585:(Bt,z,s)=>{"use strict";s.d(z,{X:()=>n});var n=function(l){return l[l.NONE=0]="NONE",l[l.SAMPLED=1]="SAMPLED",l}(n||{})},14525:(Bt,z,s)=>{"use strict";s.d(z,{T:()=>v});var n=s(24773),d="OT_ZONE_CONTEXT",v=function(){function S(){this._enabled=!1,this._zoneCounter=0}return S.prototype._activeContextFromZone=function(y){return y&&y.get(d)||n.l},S.prototype._bindFunction=function(y,f){var O=this,P=function(){for(var _=this,i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];return O.with(y,function(){return f.apply(_,i)})};return Object.defineProperty(P,"length",{enumerable:!1,configurable:!0,writable:!1,value:f.length}),P},S.prototype._bindListener=function(y,f){var O=f;return void 0!==O.__ot_listeners||(O.__ot_listeners={},"function"==typeof O.addEventListener&&(O.addEventListener=this._patchAddEventListener(O,O.addEventListener,y)),"function"==typeof O.removeEventListener&&(O.removeEventListener=this._patchRemoveEventListener(O,O.removeEventListener))),f},S.prototype._createZoneName=function(){this._zoneCounter++;var y=Math.random();return this._zoneCounter+"-"+y},S.prototype._createZone=function(y,f){var O;return Zone.current.fork({name:y,properties:(O={},O[d]=f,O)})},S.prototype._getActiveZone=function(){return Zone.current},S.prototype._patchAddEventListener=function(y,f,O){var P=this;return function(_,i,r){void 0===y.__ot_listeners&&(y.__ot_listeners={});var a=y.__ot_listeners[_];void 0===a&&(y.__ot_listeners[_]=a=new WeakMap);var c=P.bind(O,i);return a.set(i,c),f.call(this,_,c,r)}},S.prototype._patchRemoveEventListener=function(y,f){return function(O,P){if(void 0===y.__ot_listeners||void 0===y.__ot_listeners[O])return f.call(this,O,P);var _=y.__ot_listeners[O],i=_.get(P);return _.delete(P),f.call(this,O,i||P)}},S.prototype.active=function(){if(!this._enabled)return n.l;var y=this._getActiveZone();return this._activeContextFromZone(y)||n.l},S.prototype.bind=function(y,f){return void 0===y&&(y=this.active()),"function"==typeof f?this._bindFunction(y,f):(function l(S){return void 0===S&&(S={}),"function"==typeof S.addEventListener&&"function"==typeof S.removeEventListener}(f)&&this._bindListener(y,f),f)},S.prototype.disable=function(){return this._enabled=!1,this},S.prototype.enable=function(){return this._enabled=!0,this},S.prototype.with=function(y,f,O){for(var P=[],_=3;_<arguments.length;_++)P[_-3]=arguments[_];var i=this._createZoneName();return this._createZone(i,y).run(f,O,P)},S}()},98685:(Bt,z,s)=>{"use strict";s.r(z),s.d(z,{ZoneContextManager:()=>n.T});var n=s(14525)},99200:(Bt,z,s)=>{"use strict";s.d(z,{V:()=>n});var n=function(l){return l[l.SUCCESS=0]="SUCCESS",l[l.FAILED=1]="FAILED",l}(n||{})},93267:(Bt,z,s)=>{"use strict";s.d(z,{EC:()=>d,KV:()=>y,QC:()=>S,hN:()=>l,kI:()=>f,r_:()=>v,un:()=>n});var n="=",l=";",d=",",v="baggage",S=180,y=4096,f=8192},9113:(Bt,z,s)=>{"use strict";s.d(z,{t:()=>S});var n=s(35475),l=s(10857),d=s(93267),v=s(11907),S=function(){function y(){}return y.prototype.inject=function(f,O,P){var _=n.$.getBaggage(f);if(_&&!(0,l.Zf)(f)){var i=(0,v.getKeyPairs)(_).filter(function(a){return a.length<=d.KV}).slice(0,d.QC),r=(0,v.serializeKeyPairs)(i);r.length>0&&P.set(O,d.r_,r)}},y.prototype.extract=function(f,O,P){var _=P.get(O,d.r_),i=Array.isArray(_)?_.join(d.EC):_;if(!i)return f;var r={};return 0===i.length?f:(i.split(d.EC).forEach(function(c){var m=(0,v.parsePairKeyValue)(c);if(m){var M={value:m.value};m.metadata&&(M.metadata=m.metadata),r[m.key]=M}}),0===Object.entries(r).length?f:n.$.setBaggage(f,n.$.createBaggage(r)))},y.prototype.fields=function(){return[d.r_]},y}()},11907:(Bt,z,s)=>{"use strict";s.r(z),s.d(z,{getKeyPairs:()=>S,parseKeyPairsIntoRecord:()=>f,parsePairKeyValue:()=>y,serializeKeyPairs:()=>v});var n=s(44588),l=s(93267),d=function(O,P){var _="function"==typeof Symbol&&O[Symbol.iterator];if(!_)return O;var r,c,i=_.call(O),a=[];try{for(;(void 0===P||P-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(m){c={error:m}}finally{try{r&&!r.done&&(_=i.return)&&_.call(i)}finally{if(c)throw c.error}}return a};function v(O){return O.reduce(function(P,_){var i=""+P+(""!==P?l.EC:"")+_;return i.length>l.kI?P:i},"")}function S(O){return O.getAllEntries().map(function(P){var _=d(P,2),r=_[1],a=encodeURIComponent(_[0])+"="+encodeURIComponent(r.value);return void 0!==r.metadata&&(a+=l.hN+r.metadata.toString()),a})}function y(O){var P=O.split(l.hN);if(!(P.length<=0)){var _=P.shift();if(_){var i=_.indexOf(l.un);if(!(i<=0)){var c,r=decodeURIComponent(_.substring(0,i).trim()),a=decodeURIComponent(_.substring(i+1).trim());return P.length>0&&(c=(0,n.B)(P.join(l.hN))),{key:r,value:a,metadata:c}}}}}function f(O){return"string"!=typeof O||0===O.length?{}:O.split(l.EC).map(function(P){return y(P)}).filter(function(P){return void 0!==P&&P.value.length>0}).reduce(function(P,_){return P[_.key]=_.value,P},{})}},58312:(Bt,z,s)=>{"use strict";s.d(z,{L:()=>v,m:()=>y,oU:()=>S});var n=s(40698),l=function(P){var _="function"==typeof Symbol&&Symbol.iterator,i=_&&P[_],r=0;if(i)return i.call(P);if(P&&"number"==typeof P.length)return{next:function(){return P&&r>=P.length&&(P=void 0),{value:P&&P[r++],done:!P}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")},d=function(P,_){var i="function"==typeof Symbol&&P[Symbol.iterator];if(!i)return P;var a,m,r=i.call(P),c=[];try{for(;(void 0===_||_-- >0)&&!(a=r.next()).done;)c.push(a.value)}catch(M){m={error:M}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(m)throw m.error}}return c};function v(P){var _,i,r={};if("object"!=typeof P||null==P)return r;try{for(var a=l(Object.entries(P)),c=a.next();!c.done;c=a.next()){var m=d(c.value,2),M=m[0],D=m[1];S(M)?y(D)?r[M]=Array.isArray(D)?D.slice():D:n.s.warn("Invalid attribute value set for key: "+M):n.s.warn("Invalid attribute key: "+M)}}catch(I){_={error:I}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(_)throw _.error}}return r}function S(P){return"string"==typeof P&&P.length>0}function y(P){return null==P||(Array.isArray(P)?function f(P){var _,i,r;try{for(var a=l(P),c=a.next();!c.done;c=a.next()){var m=c.value;if(null!=m){if(!r){if(O(m)){r=typeof m;continue}return!1}if(typeof m!==r)return!1}}}catch(M){_={error:M}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(_)throw _.error}}return!0}(P):O(P))}function O(P){switch(typeof P){case"number":case"boolean":case"string":return!0}return!1}},70440:(Bt,z,s)=>{"use strict";s.d(z,{s:()=>v,u:()=>d});var l=(0,s(106).o)();function d(S){l=S}function v(S){try{l(S)}catch{}}},2776:(Bt,z,s)=>{"use strict";function n(d){return d>=48&&d<=57?d-48:d>=97&&d<=102?d-87:d-55}function l(d){for(var v=new Uint8Array(d.length/2),S=0,y=0;y<d.length;y+=2){var f=n(d.charCodeAt(y)),O=n(d.charCodeAt(y+1));v[S++]=f<<4|O}return v}s.d(z,{Q:()=>l})},106:(Bt,z,s)=>{"use strict";s.d(z,{o:()=>l});var n=s(40698);function l(){return function(S){n.s.error(function d(S){return"string"==typeof S?S:JSON.stringify(function v(S){for(var y={},f=S;null!==f;)Object.getOwnPropertyNames(f).forEach(function(O){if(!y[O]){var P=f[O];P&&(y[O]=String(P))}}),f=Object.getPrototypeOf(f);return y}(S))}(S))}}},23500:(Bt,z,s)=>{"use strict";s.d(z,{Ir:()=>M,JU:()=>a,KJ:()=>P,VL:()=>m,W5:()=>_,_5:()=>O,lg:()=>y,mw:()=>D,tq:()=>i,u5:()=>r,uc:()=>f,w_:()=>c});var n=s(52246),l=9,v=Math.pow(10,6),S=Math.pow(10,l);function y(I){return[Math.trunc(I/1e3),Math.round(I%1e3*v)]}function f(){var I=n.u.timeOrigin;if("number"!=typeof I){var U=n.u;I=U.timing&&U.timing.fetchStart}return I}function O(I){return D(y(f()),y("number"==typeof I?I:n.u.now()))}function P(I){if(m(I))return I;if("number"==typeof I)return I<f()?O(I):y(I);if(I instanceof Date)return y(I.getTime());throw TypeError("Invalid input type")}function _(I,U){var V=U[0]-I[0],T=U[1]-I[1];return T<0&&(V-=1,T+=S),[V,T]}function i(I){var U=l,V=""+"0".repeat(U)+I[1]+"Z",T=V.substr(V.length-U-1);return new Date(1e3*I[0]).toISOString().replace("000Z",T)}function r(I){return I[0]*S+I[1]}function a(I){return 1e3*I[0]+I[1]/1e6}function c(I){return 1e6*I[0]+I[1]/1e3}function m(I){return Array.isArray(I)&&2===I.length&&"number"==typeof I[0]&&"number"==typeof I[1]}function M(I){return m(I)||"number"==typeof I||I instanceof Date}function D(I,U){var V=[I[0]+U[0],I[1]+U[1]];return V[1]>=S&&(V[1]-=S,V[0]+=1),V}},21902:(Bt,z,s)=>{"use strict";s.r(z),s.d(z,{AlwaysOffSampler:()=>ie,AlwaysOnSampler:()=>ve,AnchoredClock:()=>l,BindOnceFuture:()=>$.I,CompositePropagator:()=>L.n,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>He.fv,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>He.aE,DEFAULT_ENVIRONMENT:()=>He.Uz,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>He.h9,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>He.V,ExportResultCode:()=>O.V,ParentBasedSampler:()=>Se,RPCType:()=>B,RandomIdGenerator:()=>D,SDK_INFO:()=>T.q,TRACE_PARENT_HEADER:()=>E.ZS,TRACE_STATE_HEADER:()=>E.UD,TimeoutError:()=>me,TraceIdRatioBasedSampler:()=>Ce,TraceState:()=>Xe.n,TracesSamplerValues:()=>Q.R,VERSION:()=>le.x,W3CBaggagePropagator:()=>n.t,W3CTraceContextPropagator:()=>E.lm,_globalThis:()=>i.X,addHrTimes:()=>y.mw,baggageUtils:()=>P,callWithTimeout:()=>ne,deleteRPCMetadata:()=>H,getEnv:()=>_._,getEnvWithoutDefaults:()=>_.w,getRPCMetadata:()=>J,getTimeOrigin:()=>y.uc,globalErrorHandler:()=>v.s,hexToBase64:()=>c,hexToBinary:()=>f.Q,hrTime:()=>y._5,hrTimeDuration:()=>y.W5,hrTimeToMicroseconds:()=>y.w_,hrTimeToMilliseconds:()=>y.JU,hrTimeToNanoseconds:()=>y.u5,hrTimeToTimeStamp:()=>y.tq,internal:()=>At,isAttributeKey:()=>d.oU,isAttributeValue:()=>d.m,isTimeInput:()=>y.Ir,isTimeInputHrTime:()=>y.VL,isTracingSuppressed:()=>Be.Zf,isUrlIgnored:()=>G.K,isWrapped:()=>W,loggingErrorHandler:()=>S.o,merge:()=>Me.h,millisToHrTime:()=>y.lg,otperformance:()=>V.u,parseEnvironment:()=>He.Nq,parseTraceParent:()=>E.ZI,sanitizeAttributes:()=>d.L,setGlobalErrorHandler:()=>v.u,setRPCMetadata:()=>X,suppressTracing:()=>Be.M1,timeInputToHrTime:()=>y.KJ,unrefTimer:()=>N.K,unsuppressTracing:()=>Be.FU,urlMatches:()=>G.f});var n=s(9113),l=function(){function Le(Et,$e){this._monotonicClock=$e,this._epochMillis=Et.now(),this._performanceMillis=$e.now()}return Le.prototype.now=function(){var Et=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+Et},Le}(),d=s(58312),v=s(70440),S=s(106),y=s(23500),f=s(2776),O=s(99200),P=s(11907),_=s(75701),i=s(321),r=function(Le,Et){var $e="function"==typeof Symbol&&Le[Symbol.iterator];if(!$e)return Le;var Qe,nt,Ze=$e.call(Le),Ve=[];try{for(;(void 0===Et||Et-- >0)&&!(Qe=Ze.next()).done;)Ve.push(Qe.value)}catch(Ot){nt={error:Ot}}finally{try{Qe&&!Qe.done&&($e=Ze.return)&&$e.call(Ze)}finally{if(nt)throw nt.error}}return Ve},a=function(Le,Et,$e){if($e||2===arguments.length)for(var Ve,Ze=0,Qe=Et.length;Ze<Qe;Ze++)(Ve||!(Ze in Et))&&(Ve||(Ve=Array.prototype.slice.call(Et,0,Ze)),Ve[Ze]=Et[Ze]);return Le.concat(Ve||Array.prototype.slice.call(Et))};function c(Le){return btoa(String.fromCharCode.apply(String,a([],r((0,f.Q)(Le)),!1)))}var D=function(){return function Le(){this.generateTraceId=U(16),this.generateSpanId=U(8)}}(),I=Array(32);function U(Le){return function(){for(var $e=0;$e<2*Le;$e++)I[$e]=Math.floor(16*Math.random())+48,I[$e]>=58&&(I[$e]+=39);return String.fromCharCode.apply(null,I.slice(0,2*Le))}}var V=s(52246),T=s(91085),N=s(60554),L=s(76181),E=s(90775),R=(0,s(24773).n)("OpenTelemetry SDK Context Key RPC_METADATA"),B=function(Le){return Le.HTTP="http",Le}(B||{});function X(Le,Et){return Le.setValue(R,Et)}function H(Le){return Le.deleteValue(R)}function J(Le){return Le.getValue(R)}var re=s(42710),ie=function(){function Le(){}return Le.prototype.shouldSample=function(){return{decision:re.i.NOT_RECORD}},Le.prototype.toString=function(){return"AlwaysOffSampler"},Le}(),ve=function(){function Le(){}return Le.prototype.shouldSample=function(){return{decision:re.i.RECORD_AND_SAMPLED}},Le.prototype.toString=function(){return"AlwaysOnSampler"},Le}(),ue=s(92414),se=s(63051),Z=s(57585),Se=function(){function Le(Et){var $e,Ze,Qe,Ve;this._root=Et.root,this._root||((0,v.s)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new ve),this._remoteParentSampled=null!==($e=Et.remoteParentSampled)&&void 0!==$e?$e:new ve,this._remoteParentNotSampled=null!==(Ze=Et.remoteParentNotSampled)&&void 0!==Ze?Ze:new ie,this._localParentSampled=null!==(Qe=Et.localParentSampled)&&void 0!==Qe?Qe:new ve,this._localParentNotSampled=null!==(Ve=Et.localParentNotSampled)&&void 0!==Ve?Ve:new ie}return Le.prototype.shouldSample=function(Et,$e,Ze,Qe,Ve,nt){var Ot=ue.u.getSpanContext(Et);return Ot&&(0,se.YA)(Ot)?Ot.isRemote?Ot.traceFlags&Z.X.SAMPLED?this._remoteParentSampled.shouldSample(Et,$e,Ze,Qe,Ve,nt):this._remoteParentNotSampled.shouldSample(Et,$e,Ze,Qe,Ve,nt):Ot.traceFlags&Z.X.SAMPLED?this._localParentSampled.shouldSample(Et,$e,Ze,Qe,Ve,nt):this._localParentNotSampled.shouldSample(Et,$e,Ze,Qe,Ve,nt):this._root.shouldSample(Et,$e,Ze,Qe,Ve,nt)},Le.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},Le}(),Ce=function(){function Le(Et){void 0===Et&&(Et=0),this._ratio=Et,this._ratio=this._normalize(Et),this._upperBound=Math.floor(4294967295*this._ratio)}return Le.prototype.shouldSample=function(Et,$e){return{decision:(0,se.hX)($e)&&this._accumulate($e)<this._upperBound?re.i.RECORD_AND_SAMPLED:re.i.NOT_RECORD}},Le.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},Le.prototype._normalize=function(Et){return"number"!=typeof Et||isNaN(Et)?0:Et>=1?1:Et<=0?0:Et},Le.prototype._accumulate=function(Et){for(var $e=0,Ze=0;Ze<Et.length/8;Ze++){var Qe=8*Ze;$e=($e^parseInt(Et.slice(Qe,Qe+8),16))>>>0}return $e},Le}(),Be=s(10857),Xe=s(36542),He=s(98828),Me=s(92848),Q=s(26056),A=function(){var Le=function(Et,$e){return(Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ze,Qe){Ze.__proto__=Qe}||function(Ze,Qe){for(var Ve in Qe)Object.prototype.hasOwnProperty.call(Qe,Ve)&&(Ze[Ve]=Qe[Ve])})(Et,$e)};return function(Et,$e){if("function"!=typeof $e&&null!==$e)throw new TypeError("Class extends value "+String($e)+" is not a constructor or null");function Ze(){this.constructor=Et}Le(Et,$e),Et.prototype=null===$e?Object.create($e):(Ze.prototype=$e.prototype,new Ze)}}(),me=function(Le){function Et($e){var Ze=Le.call(this,$e)||this;return Object.setPrototypeOf(Ze,Et.prototype),Ze}return A(Et,Le),Et}(Error);function ne(Le,Et){var $e,Ze=new Promise(function(Ve,nt){$e=setTimeout(function(){nt(new me("Operation timed out."))},Et)});return Promise.race([Le,Ze]).then(function(Qe){return clearTimeout($e),Qe},function(Qe){throw clearTimeout($e),Qe})}var G=s(28280);function W(Le){return"function"==typeof Le&&"function"==typeof Le.__original&&"function"==typeof Le.__unwrap&&!0===Le.__wrapped}var $=s(25578),le=s(37079),Pe=s(33784),At={_export:function Fe(Le,Et){return new Promise(function($e){Pe._.with((0,Be.M1)(Pe._.active()),function(){Le.export(Et,function(Ze){$e(Ze)})})})}}},75701:(Bt,z,s)=>{"use strict";s.d(z,{_:()=>d,w:()=>v});var n=s(98828),l=s(321);function d(){var S=(0,n.Nq)(l.X);return Object.assign({},n.Uz,S)}function v(){return(0,n.Nq)(l.X)}},321:(Bt,z,s)=>{"use strict";s.d(z,{X:()=>n});var n="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{}},52246:(Bt,z,s)=>{"use strict";s.d(z,{u:()=>n});var n=performance},91085:(Bt,z,s)=>{"use strict";s.d(z,{q:()=>v});var d,n=s(37079),l=s(23413),v=((d={})[l._2.TELEMETRY_SDK_NAME]="opentelemetry",d[l._2.PROCESS_RUNTIME_NAME]="browser",d[l._2.TELEMETRY_SDK_LANGUAGE]=l.wP.WEBJS,d[l._2.TELEMETRY_SDK_VERSION]=n.x,d)},60554:(Bt,z,s)=>{"use strict";function n(l){}s.d(z,{K:()=>n})},76181:(Bt,z,s)=>{"use strict";s.d(z,{n:()=>d});var n=s(40698),d=function(){function v(S){var y;void 0===S&&(S={}),this._propagators=null!==(y=S.propagators)&&void 0!==y?y:[],this._fields=Array.from(new Set(this._propagators.map(function(f){return"function"==typeof f.fields?f.fields():[]}).reduce(function(f,O){return f.concat(O)},[])))}return v.prototype.inject=function(S,y,f){var O,P;try{for(var _=function(v){var S="function"==typeof Symbol&&Symbol.iterator,y=S&&v[S],f=0;if(y)return y.call(v);if(v&&"number"==typeof v.length)return{next:function(){return v&&f>=v.length&&(v=void 0),{value:v&&v[f++],done:!v}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")}(this._propagators),i=_.next();!i.done;i=_.next()){var r=i.value;try{r.inject(S,y,f)}catch(a){n.s.warn("Failed to inject with "+r.constructor.name+". Err: "+a.message)}}}catch(a){O={error:a}}finally{try{i&&!i.done&&(P=_.return)&&P.call(_)}finally{if(O)throw O.error}}},v.prototype.extract=function(S,y,f){return this._propagators.reduce(function(O,P){try{return P.extract(O,y,f)}catch(_){n.s.warn("Failed to inject with "+P.constructor.name+". Err: "+_.message)}return O},S)},v.prototype.fields=function(){return this._fields.slice()},v}()},36542:(Bt,z,s)=>{"use strict";s.d(z,{n:()=>a});var n="[_0-9a-z-*/]",v=new RegExp("^(?:[a-z]"+n+"{0,255}|[a-z0-9]"+n+"{0,240}@[a-z]"+n+"{0,13})$"),S=/^[ -~]{0,255}[!-~]$/,y=/,|=/,a=function(){function c(m){this._internalState=new Map,m&&this._parse(m)}return c.prototype.set=function(m,M){var D=this._clone();return D._internalState.has(m)&&D._internalState.delete(m),D._internalState.set(m,M),D},c.prototype.unset=function(m){var M=this._clone();return M._internalState.delete(m),M},c.prototype.get=function(m){return this._internalState.get(m)},c.prototype.serialize=function(){var m=this;return this._keys().reduce(function(M,D){return M.push(D+"="+m.get(D)),M},[]).join(",")},c.prototype._parse=function(m){m.length>512||(this._internalState=m.split(",").reverse().reduce(function(M,D){var I=D.trim(),U=I.indexOf("=");if(-1!==U){var V=I.slice(0,U),T=I.slice(U+1,D.length);(function f(c){return v.test(c)})(V)&&function O(c){return S.test(c)&&!y.test(c)}(T)&&M.set(V,T)}return M},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},c.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},c.prototype._clone=function(){var m=new c;return m._internalState=new Map(this._internalState),m},c}()},90775:(Bt,z,s)=>{"use strict";s.d(z,{UD:()=>f,ZI:()=>c,ZS:()=>y,lm:()=>m});var n=s(92414),l=s(63051),d=s(57585),v=s(10857),S=s(36542),y="traceparent",f="tracestate",a=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function c(M){var D=a.exec(M);return!D||"00"===D[1]&&D[5]?null:{traceId:D[2],spanId:D[3],traceFlags:parseInt(D[4],16)}}var m=function(){function M(){}return M.prototype.inject=function(D,I,U){var V=n.u.getSpanContext(D);if(V&&!(0,v.Zf)(D)&&(0,l.YA)(V)){var T="00-"+V.traceId+"-"+V.spanId+"-0"+Number(V.traceFlags||d.X.NONE).toString(16);U.set(I,y,T),V.traceState&&U.set(I,f,V.traceState.serialize())}},M.prototype.extract=function(D,I,U){var V=U.get(I,y);if(!V)return D;var T=Array.isArray(V)?V[0]:V;if("string"!=typeof T)return D;var N=c(T);if(!N)return D;N.isRemote=!0;var L=U.get(I,f);if(L){var E=Array.isArray(L)?L.join(","):L;N.traceState=new S.n("string"==typeof E?E:void 0)}return n.u.setSpanContext(D,N)},M.prototype.fields=function(){return[y,f]},M}()},10857:(Bt,z,s)=>{"use strict";s.d(z,{FU:()=>v,M1:()=>d,Zf:()=>S});var l=(0,s(24773).n)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function d(y){return y.setValue(l,!0)}function v(y){return y.deleteValue(l)}function S(y){return!0===y.getValue(l)}},25578:(Bt,z,s)=>{"use strict";s.d(z,{I:()=>v});var n=function(){function S(){var y=this;this._promise=new Promise(function(f,O){y._resolve=f,y._reject=O})}return Object.defineProperty(S.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),S.prototype.resolve=function(y){this._resolve(y)},S.prototype.reject=function(y){this._reject(y)},S}(),v=function(){function S(y,f){this._callback=y,this._that=f,this._isCalled=!1,this._deferred=new n}return Object.defineProperty(S.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),S.prototype.call=function(){for(var y,f=this,O=[],P=0;P<arguments.length;P++)O[P]=arguments[P];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((y=this._callback).call.apply(y,function(S,y,f){if(f||2===arguments.length)for(var _,O=0,P=y.length;O<P;O++)(_||!(O in y))&&(_||(_=Array.prototype.slice.call(y,0,O)),_[O]=y[O]);return S.concat(_||Array.prototype.slice.call(y))}([this._that],function(S,y){var f="function"==typeof Symbol&&S[Symbol.iterator];if(!f)return S;var P,i,O=f.call(S),_=[];try{for(;(void 0===y||y-- >0)&&!(P=O.next()).done;)_.push(P.value)}catch(r){i={error:r}}finally{try{P&&!P.done&&(f=O.return)&&f.call(O)}finally{if(i)throw i.error}}return _}(O),!1))).then(function(_){return f._deferred.resolve(_)},function(_){return f._deferred.reject(_)})}catch(_){this._deferred.reject(_)}}return this._deferred.promise},S}()},98828:(Bt,z,s)=>{"use strict";s.d(z,{Nq:()=>V,Uz:()=>c,V:()=>a,aE:()=>_,fv:()=>i,h9:()=>r});var n=s(56737),l=s(26056),d=",",v=["OTEL_SDK_DISABLED"];function S(T){return v.indexOf(T)>-1}var y=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function f(T){return y.indexOf(T)>-1}var O=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function P(T){return O.indexOf(T)>-1}var _=1/0,i=128,r=128,a=128,c={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:n.u.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:_,OTEL_ATTRIBUTE_COUNT_LIMIT:i,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:_,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:i,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:_,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:i,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:r,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:a,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:l.R.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function m(T,N,L){if(!(typeof L[T]>"u")){var E=String(L[T]);N[T]="true"===E.toLowerCase()}}function M(T,N,L,E,g){if(void 0===E&&(E=-1/0),void 0===g&&(g=1/0),typeof L[T]<"u"){var R=Number(L[T]);isNaN(R)||(N[T]=R<E?E:R>g?g:R)}}function D(T,N,L,E){void 0===E&&(E=d);var g=L[T];"string"==typeof g&&(N[T]=g.split(E).map(function(R){return R.trim()}))}var I={ALL:n.u.ALL,VERBOSE:n.u.VERBOSE,DEBUG:n.u.DEBUG,INFO:n.u.INFO,WARN:n.u.WARN,ERROR:n.u.ERROR,NONE:n.u.NONE};function U(T,N,L){var E=L[T];if("string"==typeof E){var g=I[E.toUpperCase()];null!=g&&(N[T]=g)}}function V(T){var N={};for(var L in c){var E=L;if("OTEL_LOG_LEVEL"===E)U(E,N,T);else if(S(E))m(E,N,T);else if(f(E))M(E,N,T);else if(P(E))D(E,N,T);else{var g=T[E];typeof g<"u"&&null!==g&&(N[E]=String(g))}}return N}},92848:(Bt,z,s)=>{"use strict";s.d(z,{h:()=>U});var n="[object Object]",l="[object Null]",d="[object Undefined]",S=Function.prototype.toString,y=S.call(Object),f=function r(X,H){return function(J){return X(H(J))}}(Object.getPrototypeOf,Object),O=Object.prototype,P=O.hasOwnProperty,_=Symbol?Symbol.toStringTag:void 0,i=O.toString;function a(X){if(!function c(X){return null!=X&&"object"==typeof X}(X)||function m(X){return null==X?void 0===X?d:l:_&&_ in Object(X)?function M(X){var H=P.call(X,_),J=X[_],re=!1;try{X[_]=void 0,re=!0}catch{}var ie=i.call(X);return re&&(H?X[_]=J:delete X[_]),ie}(X):function D(X){return i.call(X)}(X)}(X)!==n)return!1;var H=f(X);if(null===H)return!0;var J=P.call(H,"constructor")&&H.constructor;return"function"==typeof J&&J instanceof J&&S.call(J)===y}var I=20;function U(){for(var X=[],H=0;H<arguments.length;H++)X[H]=arguments[H];for(var J=X.shift(),re=new WeakMap;X.length>0;)J=T(J,X.shift(),0,re);return J}function V(X){return L(X)?X.slice():X}function T(X,H,J,re){var ie;if(void 0===J&&(J=0),!(J>I)){if(J++,R(X)||R(H)||E(H))ie=V(H);else if(L(X)){if(ie=X.slice(),L(H))for(var ve=0,ue=H.length;ve<ue;ve++)ie.push(V(H[ve]));else if(g(H))for(ve=0,ue=(se=Object.keys(H)).length;ve<ue;ve++)ie[Z=se[ve]]=V(H[Z])}else if(g(X))if(g(H)){if(!function B(X,H){return!(!a(X)||!a(H))}(X,H))return H;var se;for(ie=Object.assign({},X),ve=0,ue=(se=Object.keys(H)).length;ve<ue;ve++){var Z,Se=H[Z=se[ve]];if(R(Se))typeof Se>"u"?delete ie[Z]:ie[Z]=Se;else{var Ce=ie[Z],Be=Se;if(N(X,Z,re)||N(H,Z,re))delete ie[Z];else{if(g(Ce)&&g(Be)){var Xe=re.get(Ce)||[],He=re.get(Be)||[];Xe.push({obj:X,key:Z}),He.push({obj:H,key:Z}),re.set(Ce,Xe),re.set(Be,He)}ie[Z]=T(ie[Z],Se,J,re)}}}}else ie=H;return ie}}function N(X,H,J){for(var re=J.get(X[H])||[],ie=0,ve=re.length;ie<ve;ie++){var ue=re[ie];if(ue.key===H&&ue.obj===X)return!0}return!1}function L(X){return Array.isArray(X)}function E(X){return"function"==typeof X}function g(X){return!R(X)&&!L(X)&&!E(X)&&"object"==typeof X}function R(X){return"string"==typeof X||"number"==typeof X||"boolean"==typeof X||typeof X>"u"||X instanceof Date||X instanceof RegExp||null===X}},26056:(Bt,z,s)=>{"use strict";s.d(z,{R:()=>n});var n=function(l){return l.AlwaysOff="always_off",l.AlwaysOn="always_on",l.ParentBasedAlwaysOff="parentbased_always_off",l.ParentBasedAlwaysOn="parentbased_always_on",l.ParentBasedTraceIdRatio="parentbased_traceidratio",l.TraceIdRatio="traceidratio",l}(n||{})},28280:(Bt,z,s)=>{"use strict";s.d(z,{K:()=>d,f:()=>l});var n=function(v){var S="function"==typeof Symbol&&Symbol.iterator,y=S&&v[S],f=0;if(y)return y.call(v);if(v&&"number"==typeof v.length)return{next:function(){return v&&f>=v.length&&(v=void 0),{value:v&&v[f++],done:!v}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")};function l(v,S){return"string"==typeof S?v===S:!!v.match(S)}function d(v,S){var y,f;if(!S)return!1;try{for(var O=n(S),P=O.next();!P.done;P=O.next())if(l(v,P.value))return!0}catch(i){y={error:i}}finally{try{P&&!P.done&&(f=O.return)&&f.call(O)}finally{if(y)throw y.error}}return!1}},37079:(Bt,z,s)=>{"use strict";s.d(z,{x:()=>n});var n="1.24.1"},25154:(Bt,z,s)=>{"use strict";s.r(z),s.d(z,{OTLPTraceExporter:()=>n.Q});var n=s(83594)},83594:(Bt,z,s)=>{"use strict";s.d(z,{Q:()=>It});var n=s(11907),l=s(75701),d=s(40698);function m(We,xe){return d.s.warn("Timeout must be greater than 0",We),xe}var I=function(We){return We[We.SPANS=0]="SPANS",We[We.METRICS=1]="METRICS",We[We.LOGS=2]="LOGS",We}(I||{}),U=function(){var We=function(xe,lt){return(We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ft,ht){ft.__proto__=ht}||function(ft,ht){for(var Xt in ht)Object.prototype.hasOwnProperty.call(ht,Xt)&&(ft[Xt]=ht[Xt])})(xe,lt)};return function(xe,lt){if("function"!=typeof lt&&null!==lt)throw new TypeError("Class extends value "+String(lt)+" is not a constructor or null");function ft(){this.constructor=xe}We(xe,lt),xe.prototype=null===lt?Object.create(lt):(ft.prototype=lt.prototype,new ft)}}(),V=function(We){function xe(lt,ft,ht){var Xt=We.call(this,lt)||this;return Xt.name="OTLPExporterError",Xt.data=ht,Xt.code=ft,Xt}return U(xe,We),xe}(Error),T=function(){return T=Object.assign||function(We){for(var xe,lt=1,ft=arguments.length;lt<ft;lt++)for(var ht in xe=arguments[lt])Object.prototype.hasOwnProperty.call(xe,ht)&&(We[ht]=xe[ht]);return We},T.apply(this,arguments)};function E(We,xe,lt,ft,ht,Xt){var Ht,Je,tt=!1,rt=setTimeout(function(){if(clearTimeout(Ht),tt=!0,Je.readyState===XMLHttpRequest.DONE){var St=new V("Request Timeout");Xt(St)}else Je.abort()},ft),et=function(St,Gt){void 0===St&&(St=5),void 0===Gt&&(Gt=1e3),(Je=new XMLHttpRequest).open("POST",xe),Object.entries(T(T({},{Accept:"application/json","Content-Type":"application/json"}),lt)).forEach(function(Wt){var ke=function(We,xe){var lt="function"==typeof Symbol&&We[Symbol.iterator];if(!lt)return We;var ht,Ht,ft=lt.call(We),Xt=[];try{for(;(void 0===xe||xe-- >0)&&!(ht=ft.next()).done;)Xt.push(ht.value)}catch(Je){Ht={error:Je}}finally{try{ht&&!ht.done&&(lt=ft.return)&<.call(ft)}finally{if(Ht)throw Ht.error}}return Xt}(Wt,2);Je.setRequestHeader(ke[0],ke[1])}),Je.send(We),Je.onreadystatechange=function(){if(Je.readyState===XMLHttpRequest.DONE&&!1===tt)if(Je.status>=200&&Je.status<=299)d.s.debug("xhr success",We),ht(),clearTimeout(rt),clearTimeout(Ht);else if(Je.status&&function M(We){return[429,502,503,504].includes(We)}(Je.status)&&St>0){var Wt;Gt*=1.5,Wt=Je.getResponseHeader("Retry-After")?function D(We){if(null==We)return-1;var xe=Number.parseInt(We,10);if(Number.isInteger(xe))return xe>0?1e3*xe:-1;var lt=new Date(We).getTime()-Date.now();return lt>=0?lt:0}(Je.getResponseHeader("Retry-After")):Math.round(Math.random()*(5e3-Gt)+Gt),Ht=setTimeout(function(){et(St-1,Gt)},Wt)}else{var ke=new V("Failed to export with XHR (status: "+Je.status+")",Je.status);Xt(ke),clearTimeout(rt),clearTimeout(Ht)}},Je.onabort=function(){if(tt){var Wt=new V("Request Timeout");Xt(Wt)}clearTimeout(rt),clearTimeout(Ht)},Je.onerror=function(){if(tt){var Wt=new V("Request Timeout");Xt(Wt)}clearTimeout(rt),clearTimeout(Ht)}};et()}var g=s(25578),R=s(99200),B=function(){function We(xe){void 0===xe&&(xe={}),this._sendingPromises=[],this.url=this.getDefaultUrl(xe),"string"==typeof xe.hostname&&(this.hostname=xe.hostname),this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new g.I(this._shutdown,this),this._concurrencyLimit="number"==typeof xe.concurrencyLimit?xe.concurrencyLimit:30,this.timeoutMillis=function a(We){return"number"==typeof We?We<=0?m(We,1e4):We:function c(){var We,xe=Number(null!==(We=(0,l._)().OTEL_EXPORTER_OTLP_TRACES_TIMEOUT)&&void 0!==We?We:(0,l._)().OTEL_EXPORTER_OTLP_TIMEOUT);return xe<=0?m(xe,1e4):xe}()}(xe.timeoutMillis),this.onInit(xe)}return We.prototype.export=function(xe,lt){this._shutdownOnce.isCalled?lt({code:R.V.FAILED,error:new Error("Exporter has been shutdown")}):this._sendingPromises.length>=this._concurrencyLimit?lt({code:R.V.FAILED,error:new Error("Concurrent export limit reached")}):this._export(xe).then(function(){lt({code:R.V.SUCCESS})}).catch(function(ft){lt({code:R.V.FAILED,error:ft})})},We.prototype._export=function(xe){var lt=this;return new Promise(function(ft,ht){try{d.s.debug("items to be sent",xe),lt.send(xe,ft,ht)}catch(Xt){ht(Xt)}})},We.prototype.shutdown=function(){return this._shutdownOnce.call()},We.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then(function(){})},We.prototype._shutdown=function(){return d.s.debug("shutdown started"),this.onShutdown(),this.forceFlush()},We}(),X=function(){var We=function(xe,lt){return(We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ft,ht){ft.__proto__=ht}||function(ft,ht){for(var Xt in ht)Object.prototype.hasOwnProperty.call(ht,Xt)&&(ft[Xt]=ht[Xt])})(xe,lt)};return function(xe,lt){if("function"!=typeof lt&&null!==lt)throw new TypeError("Class extends value "+String(lt)+" is not a constructor or null");function ft(){this.constructor=xe}We(xe,lt),xe.prototype=null===lt?Object.create(lt):(ft.prototype=lt.prototype,new ft)}}(),H=function(We){function xe(lt){void 0===lt&&(lt={});var ft=We.call(this,lt)||this;return ft._useXHR=!1,ft._useXHR=!!lt.headers||"function"!=typeof navigator.sendBeacon,ft._headers=ft._useXHR?Object.assign({},function _(We){void 0===We&&(We={});var xe={};return Object.entries(We).forEach(function(lt){var ft=function(We,xe){var lt="function"==typeof Symbol&&We[Symbol.iterator];if(!lt)return We;var ht,Ht,ft=lt.call(We),Xt=[];try{for(;(void 0===xe||xe-- >0)&&!(ht=ft.next()).done;)Xt.push(ht.value)}catch(Je){Ht={error:Je}}finally{try{ht&&!ht.done&&(lt=ft.return)&<.call(ft)}finally{if(Ht)throw Ht.error}}return Xt}(lt,2),ht=ft[0],Xt=ft[1];typeof Xt<"u"?xe[ht]=String(Xt):d.s.warn('Header "'+ht+'" has invalid value ('+Xt+") and will be ignored")}),xe}(lt.headers),n.parseKeyPairsIntoRecord((0,l._)().OTEL_EXPORTER_OTLP_HEADERS)):{},ft}return X(xe,We),xe.prototype.onInit=function(){},xe.prototype.onShutdown=function(){},xe.prototype.send=function(lt,ft,ht){var Xt=this;if(this._shutdownOnce.isCalled)d.s.debug("Shutdown already started. Cannot send objects");else{var Ht=this.convert(lt),Je=JSON.stringify(Ht),tt=new Promise(function(et,St){Xt._useXHR?E(Je,Xt.url,Xt._headers,Xt.timeoutMillis,et,St):function L(We,xe,lt,ft,ht){navigator.sendBeacon(xe,new Blob([We],lt))?(d.s.debug("sendBeacon - can send",We),ft()):ht(new V("sendBeacon - cannot send "+We))}(Je,Xt.url,{type:"application/json"},et,St)}).then(ft,ht);this._sendingPromises.push(tt);var rt=function(){var et=Xt._sendingPromises.indexOf(tt);Xt._sendingPromises.splice(et,1)};tt.then(rt,rt)}},xe}(B),J=s(89304),ie=function(){var We=function(xe,lt){return(We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ft,ht){ft.__proto__=ht}||function(ft,ht){for(var Xt in ht)Object.prototype.hasOwnProperty.call(ht,Xt)&&(ft[Xt]=ht[Xt])})(xe,lt)};return function(xe,lt){if("function"!=typeof lt&&null!==lt)throw new TypeError("Class extends value "+String(lt)+" is not a constructor or null");function ft(){this.constructor=xe}We(xe,lt),xe.prototype=null===lt?Object.create(lt):(ft.prototype=lt.prototype,new ft)}}(),ve=function(){return ve=Object.assign||function(We){for(var xe,lt=1,ft=arguments.length;lt<ft;lt++)for(var ht in xe=arguments[lt])Object.prototype.hasOwnProperty.call(xe,ht)&&(We[ht]=xe[ht]);return We},ve.apply(this,arguments)},ue=function(We){function xe(lt){return void 0===lt&&(lt={}),We.call(this,lt)||this}return ie(xe,We),xe.prototype.send=function(lt,ft,ht){if(this._shutdownOnce.isCalled)d.s.debug("Shutdown already started. Cannot send objects");else{var Xt=this.convert(lt),Ht=function re(We){return We===I.SPANS?J.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest:We===I.LOGS?J.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest:J.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest}(this.getServiceClientType()),Je=Ht.create(Xt);if(Je){var tt=Ht.encode(Je).finish();tt&&E(new Blob([tt],{type:"application/x-protobuf"}),this.url,ve(ve({},this._headers),{"Content-Type":"application/x-protobuf",Accept:"application/x-protobuf"}),this.timeoutMillis,ft,ht)}else ht(new V("No proto"))}},xe}(H),se=function(We,xe){var lt="function"==typeof Symbol&&We[Symbol.iterator];if(!lt)return We;var ht,Ht,ft=lt.call(We),Xt=[];try{for(;(void 0===xe||xe-- >0)&&!(ht=ft.next()).done;)Xt.push(ht.value)}catch(Je){Ht={error:Je}}finally{try{ht&&!ht.done&&(lt=ft.return)&<.call(ft)}finally{if(Ht)throw Ht.error}}return Xt};function Z(We){return{name:We.name,version:We.version}}function Se(We){return Object.keys(We).map(function(xe){return Ce(xe,We[xe])})}function Ce(We,xe){return{key:We,value:Be(xe)}}function Be(We){var xe=typeof We;return"string"===xe?{stringValue:We}:"number"===xe?Number.isInteger(We)?{intValue:We}:{doubleValue:We}:"boolean"===xe?{boolValue:We}:We instanceof Uint8Array?{bytesValue:We}:Array.isArray(We)?{arrayValue:{values:We.map(Be)}}:"object"===xe&&null!=We?{kvlistValue:{values:Object.entries(We).map(function(lt){var ft=se(lt,2);return Ce(ft[0],ft[1])})}}:{}}function Xe(We,xe){var lt,ft=We.spanContext(),ht=We.status;return{traceId:xe.encodeSpanContext(ft.traceId),spanId:xe.encodeSpanContext(ft.spanId),parentSpanId:xe.encodeOptionalSpanContext(We.parentSpanId),traceState:null===(lt=ft.traceState)||void 0===lt?void 0:lt.serialize(),name:We.name,kind:null==We.kind?0:We.kind+1,startTimeUnixNano:xe.encodeHrTime(We.startTime),endTimeUnixNano:xe.encodeHrTime(We.endTime),attributes:Se(We.attributes),droppedAttributesCount:We.droppedAttributesCount,events:We.events.map(function(Xt){return function Me(We,xe){return{attributes:We.attributes?Se(We.attributes):[],name:We.name,timeUnixNano:xe.encodeHrTime(We.time),droppedAttributesCount:We.droppedAttributesCount||0}}(Xt,xe)}),droppedEventsCount:We.droppedEventsCount,status:{code:ht.code,message:ht.message},links:We.links.map(function(Xt){return function He(We,xe){var lt;return{attributes:We.attributes?Se(We.attributes):[],spanId:xe.encodeSpanContext(We.context.spanId),traceId:xe.encodeSpanContext(We.context.traceId),traceState:null===(lt=We.context.traceState)||void 0===lt?void 0:lt.serialize(),droppedAttributesCount:We.droppedAttributesCount||0}}(Xt,xe)}),droppedLinksCount:We.droppedLinksCount}}var Q=s(23500),A=s(2776);function me(We){var xe=BigInt(1e9);return BigInt(We[0])*xe+BigInt(We[1])}function G(We){return function ne(We){return{low:Number(BigInt.asUintN(32,We)),high:Number(BigInt.asUintN(32,We>>BigInt(32)))}}(me(We))}var $=typeof BigInt<"u"?function W(We){return me(We).toString()}:Q.u5;function le(We){return We}function Pe(We){if(void 0!==We)return(0,A.Q)(We)}var Fe={encodeHrTime:G,encodeSpanContext:A.Q,encodeOptionalSpanContext:Pe};function Le(We){return{attributes:Se(We.attributes),droppedAttributesCount:0}}var Et=function(We){var xe="function"==typeof Symbol&&Symbol.iterator,lt=xe&&We[xe],ft=0;if(lt)return lt.call(We);if(We&&"number"==typeof We.length)return{next:function(){return We&&ft>=We.length&&(We=void 0),{value:We&&We[ft++],done:!We}}};throw new TypeError(xe?"Object is not iterable.":"Symbol.iterator is not defined.")},$e=function(We,xe){var lt="function"==typeof Symbol&&We[Symbol.iterator];if(!lt)return We;var ht,Ht,ft=lt.call(We),Xt=[];try{for(;(void 0===xe||xe-- >0)&&!(ht=ft.next()).done;)Xt.push(ht.value)}catch(Je){Ht={error:Je}}finally{try{ht&&!ht.done&&(lt=ft.return)&<.call(ft)}finally{if(Ht)throw Ht.error}}return Xt};function Ve(We,xe){for(var lt=function Qe(We){var xe,lt,ft=new Map;try{for(var ht=Et(We),Xt=ht.next();!Xt.done;Xt=ht.next()){var Ht=Xt.value,Je=ft.get(Ht.resource);Je||ft.set(Ht.resource,Je=new Map);var tt=Ht.instrumentationLibrary.name+"@"+(Ht.instrumentationLibrary.version||"")+":"+(Ht.instrumentationLibrary.schemaUrl||""),rt=Je.get(tt);rt||Je.set(tt,rt=[]),rt.push(Ht)}}catch(et){xe={error:et}}finally{try{Xt&&!Xt.done&&(lt=ht.return)&<.call(ht)}finally{if(xe)throw xe.error}}return ft}(We),ft=[],ht=lt.entries(),Xt=ht.next();!Xt.done;){for(var Ht=$e(Xt.value,2),Je=Ht[0],rt=[],et=Ht[1].values(),St=et.next();!St.done;){var Gt=St.value;if(Gt.length>0){var yt=Gt.map(function(ke){return Xe(ke,xe)});rt.push({scope:Z(Gt[0].instrumentationLibrary),spans:yt,schemaUrl:Gt[0].instrumentationLibrary.schemaUrl})}St=et.next()}var Wt={resource:Le(Je),scopeSpans:rt,schemaUrl:void 0};ft.push(Wt),Xt=ht.next()}return ft}var nt=function(){var We=function(xe,lt){return(We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ft,ht){ft.__proto__=ht}||function(ft,ht){for(var Xt in ht)Object.prototype.hasOwnProperty.call(ht,Xt)&&(ft[Xt]=ht[Xt])})(xe,lt)};return function(xe,lt){if("function"!=typeof lt&&null!==lt)throw new TypeError("Class extends value "+String(lt)+" is not a constructor or null");function ft(){this.constructor=xe}We(xe,lt),xe.prototype=null===lt?Object.create(lt):(ft.prototype=lt.prototype,new ft)}}(),Ot="v1/traces",at="http://localhost:4318/"+Ot,It=function(We){function xe(lt){void 0===lt&&(lt={});var ft=We.call(this,lt)||this;return ft._headers=Object.assign(ft._headers,n.parseKeyPairsIntoRecord((0,l._)().OTEL_EXPORTER_OTLP_TRACES_HEADERS)),ft}return nt(xe,We),xe.prototype.convert=function(lt){return function Ze(We,xe){var lt=function At(We){var xe,lt;if(void 0===We)return Fe;var ft=null===(xe=We.useLongBits)||void 0===xe||xe,ht=null!==(lt=We.useHex)&&void 0!==lt&<return{encodeHrTime:ft?G:$,encodeSpanContext:ht?le:A.Q,encodeOptionalSpanContext:ht?le:Pe}}(xe);return{resourceSpans:Ve(We,lt)}}(lt)},xe.prototype.getDefaultUrl=function(lt){return"string"==typeof lt.url?lt.url:(0,l._)().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length>0?function r(We){try{var xe=new URL(We);return""===xe.pathname&&(xe.pathname=xe.pathname+"/"),xe.toString()}catch{return d.s.warn("Could not parse export URL: '"+We+"'"),We}}((0,l._)().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT):(0,l._)().OTEL_EXPORTER_OTLP_ENDPOINT.length>0?function i(We,xe){return We.endsWith("/")||(We+="/"),We+xe}((0,l._)().OTEL_EXPORTER_OTLP_ENDPOINT,Ot):at},xe.prototype.getServiceClientType=function(){return I.SPANS},xe}(ue)},89304:(Bt,z,s)=>{"use strict";var P,O,f,y,n=s(6350),l=n.Reader,d=n.Writer,v=n.util,S=n.roots.default||(n.roots.default={});S.opentelemetry=((y={}).proto=((f={}).common=((O={}).v1=((P={}).AnyValue=function(){function _(r){if(r)for(var a=Object.keys(r),c=0;c<a.length;++c)null!=r[a[c]]&&(this[a[c]]=r[a[c]])}var i;return _.prototype.stringValue=null,_.prototype.boolValue=null,_.prototype.intValue=null,_.prototype.doubleValue=null,_.prototype.arrayValue=null,_.prototype.kvlistValue=null,_.prototype.bytesValue=null,Object.defineProperty(_.prototype,"value",{get:v.oneOfGetter(i=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:v.oneOfSetter(i)}),_.create=function(a){return new _(a)},_.encode=function(a,c){return c||(c=d.create()),null!=a.stringValue&&Object.hasOwnProperty.call(a,"stringValue")&&c.uint32(10).string(a.stringValue),null!=a.boolValue&&Object.hasOwnProperty.call(a,"boolValue")&&c.uint32(16).bool(a.boolValue),null!=a.intValue&&Object.hasOwnProperty.call(a,"intValue")&&c.uint32(24).int64(a.intValue),null!=a.doubleValue&&Object.hasOwnProperty.call(a,"doubleValue")&&c.uint32(33).double(a.doubleValue),null!=a.arrayValue&&Object.hasOwnProperty.call(a,"arrayValue")&&S.opentelemetry.proto.common.v1.ArrayValue.encode(a.arrayValue,c.uint32(42).fork()).ldelim(),null!=a.kvlistValue&&Object.hasOwnProperty.call(a,"kvlistValue")&&S.opentelemetry.proto.common.v1.KeyValueList.encode(a.kvlistValue,c.uint32(50).fork()).ldelim(),null!=a.bytesValue&&Object.hasOwnProperty.call(a,"bytesValue")&&c.uint32(58).bytes(a.bytesValue),c},_.encodeDelimited=function(a,c){return this.encode(a,c).ldelim()},_.decode=function(a,c){a instanceof l||(a=l.create(a));for(var m=void 0===c?a.len:a.pos+c,M=new S.opentelemetry.proto.common.v1.AnyValue;a.pos<m;){var D=a.uint32();switch(D>>>3){case 1:M.stringValue=a.string();break;case 2:M.boolValue=a.bool();break;case 3:M.intValue=a.int64();break;case 4:M.doubleValue=a.double();break;case 5:M.arrayValue=S.opentelemetry.proto.common.v1.ArrayValue.decode(a,a.uint32());break;case 6:M.kvlistValue=S.opentelemetry.proto.common.v1.KeyValueList.decode(a,a.uint32());break;case 7:M.bytesValue=a.bytes();break;default:a.skipType(7&D)}}return M},_.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},_.verify=function(a){if("object"!=typeof a||null===a)return"object expected";var c={};if(null!=a.stringValue&&a.hasOwnProperty("stringValue")&&(c.value=1,!v.isString(a.stringValue)))return"stringValue: string expected";if(null!=a.boolValue&&a.hasOwnProperty("boolValue")){if(1===c.value)return"value: multiple values";if(c.value=1,"boolean"!=typeof a.boolValue)return"boolValue: boolean expected"}if(null!=a.intValue&&a.hasOwnProperty("intValue")){if(1===c.value)return"value: multiple values";if(c.value=1,!(v.isInteger(a.intValue)||a.intValue&&v.isInteger(a.intValue.low)&&v.isInteger(a.intValue.high)))return"intValue: integer|Long expected"}if(null!=a.doubleValue&&a.hasOwnProperty("doubleValue")){if(1===c.value)return"value: multiple values";if(c.value=1,"number"!=typeof a.doubleValue)return"doubleValue: number expected"}if(null!=a.arrayValue&&a.hasOwnProperty("arrayValue")){if(1===c.value)return"value: multiple values";if(c.value=1,m=S.opentelemetry.proto.common.v1.ArrayValue.verify(a.arrayValue))return"arrayValue."+m}if(null!=a.kvlistValue&&a.hasOwnProperty("kvlistValue")){if(1===c.value)return"value: multiple values";var m;if(c.value=1,m=S.opentelemetry.proto.common.v1.KeyValueList.verify(a.kvlistValue))return"kvlistValue."+m}if(null!=a.bytesValue&&a.hasOwnProperty("bytesValue")){if(1===c.value)return"value: multiple values";if(c.value=1,!(a.bytesValue&&"number"==typeof a.bytesValue.length||v.isString(a.bytesValue)))return"bytesValue: buffer expected"}return null},_.fromObject=function(a){if(a instanceof S.opentelemetry.proto.common.v1.AnyValue)return a;var c=new S.opentelemetry.proto.common.v1.AnyValue;if(null!=a.stringValue&&(c.stringValue=String(a.stringValue)),null!=a.boolValue&&(c.boolValue=!!a.boolValue),null!=a.intValue&&(v.Long?(c.intValue=v.Long.fromValue(a.intValue)).unsigned=!1:"string"==typeof a.intValue?c.intValue=parseInt(a.intValue,10):"number"==typeof a.intValue?c.intValue=a.intValue:"object"==typeof a.intValue&&(c.intValue=new v.LongBits(a.intValue.low>>>0,a.intValue.high>>>0).toNumber())),null!=a.doubleValue&&(c.doubleValue=Number(a.doubleValue)),null!=a.arrayValue){if("object"!=typeof a.arrayValue)throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");c.arrayValue=S.opentelemetry.proto.common.v1.ArrayValue.fromObject(a.arrayValue)}if(null!=a.kvlistValue){if("object"!=typeof a.kvlistValue)throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");c.kvlistValue=S.opentelemetry.proto.common.v1.KeyValueList.fromObject(a.kvlistValue)}return null!=a.bytesValue&&("string"==typeof a.bytesValue?v.base64.decode(a.bytesValue,c.bytesValue=v.newBuffer(v.base64.length(a.bytesValue)),0):a.bytesValue.length>=0&&(c.bytesValue=a.bytesValue)),c},_.toObject=function(a,c){c||(c={});var m={};return null!=a.stringValue&&a.hasOwnProperty("stringValue")&&(m.stringValue=a.stringValue,c.oneofs&&(m.value="stringValue")),null!=a.boolValue&&a.hasOwnProperty("boolValue")&&(m.boolValue=a.boolValue,c.oneofs&&(m.value="boolValue")),null!=a.intValue&&a.hasOwnProperty("intValue")&&(m.intValue="number"==typeof a.intValue?c.longs===String?String(a.intValue):a.intValue:c.longs===String?v.Long.prototype.toString.call(a.intValue):c.longs===Number?new v.LongBits(a.intValue.low>>>0,a.intValue.high>>>0).toNumber():a.intValue,c.oneofs&&(m.value="intValue")),null!=a.doubleValue&&a.hasOwnProperty("doubleValue")&&(m.doubleValue=c.json&&!isFinite(a.doubleValue)?String(a.doubleValue):a.doubleValue,c.oneofs&&(m.value="doubleValue")),null!=a.arrayValue&&a.hasOwnProperty("arrayValue")&&(m.arrayValue=S.opentelemetry.proto.common.v1.ArrayValue.toObject(a.arrayValue,c),c.oneofs&&(m.value="arrayValue")),null!=a.kvlistValue&&a.hasOwnProperty("kvlistValue")&&(m.kvlistValue=S.opentelemetry.proto.common.v1.KeyValueList.toObject(a.kvlistValue,c),c.oneofs&&(m.value="kvlistValue")),null!=a.bytesValue&&a.hasOwnProperty("bytesValue")&&(m.bytesValue=c.bytes===String?v.base64.encode(a.bytesValue,0,a.bytesValue.length):c.bytes===Array?Array.prototype.slice.call(a.bytesValue):a.bytesValue,c.oneofs&&(m.value="bytesValue")),m},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.common.v1.AnyValue"},_}(),P.ArrayValue=function(){function _(i){if(this.values=[],i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.values=v.emptyArray,_.create=function(r){return new _(r)},_.encode=function(r,a){if(a||(a=d.create()),null!=r.values&&r.values.length)for(var c=0;c<r.values.length;++c)S.opentelemetry.proto.common.v1.AnyValue.encode(r.values[c],a.uint32(10).fork()).ldelim();return a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.common.v1.ArrayValue;r.pos<c;){var M=r.uint32();M>>>3==1?(m.values&&m.values.length||(m.values=[]),m.values.push(S.opentelemetry.proto.common.v1.AnyValue.decode(r,r.uint32()))):r.skipType(7&M)}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.values&&r.hasOwnProperty("values")){if(!Array.isArray(r.values))return"values: array expected";for(var a=0;a<r.values.length;++a){var c=S.opentelemetry.proto.common.v1.AnyValue.verify(r.values[a]);if(c)return"values."+c}}return null},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.common.v1.ArrayValue)return r;var a=new S.opentelemetry.proto.common.v1.ArrayValue;if(r.values){if(!Array.isArray(r.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");a.values=[];for(var c=0;c<r.values.length;++c){if("object"!=typeof r.values[c])throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");a.values[c]=S.opentelemetry.proto.common.v1.AnyValue.fromObject(r.values[c])}}return a},_.toObject=function(r,a){a||(a={});var c={};if((a.arrays||a.defaults)&&(c.values=[]),r.values&&r.values.length){c.values=[];for(var m=0;m<r.values.length;++m)c.values[m]=S.opentelemetry.proto.common.v1.AnyValue.toObject(r.values[m],a)}return c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.common.v1.ArrayValue"},_}(),P.KeyValueList=function(){function _(i){if(this.values=[],i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.values=v.emptyArray,_.create=function(r){return new _(r)},_.encode=function(r,a){if(a||(a=d.create()),null!=r.values&&r.values.length)for(var c=0;c<r.values.length;++c)S.opentelemetry.proto.common.v1.KeyValue.encode(r.values[c],a.uint32(10).fork()).ldelim();return a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.common.v1.KeyValueList;r.pos<c;){var M=r.uint32();M>>>3==1?(m.values&&m.values.length||(m.values=[]),m.values.push(S.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()))):r.skipType(7&M)}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.values&&r.hasOwnProperty("values")){if(!Array.isArray(r.values))return"values: array expected";for(var a=0;a<r.values.length;++a){var c=S.opentelemetry.proto.common.v1.KeyValue.verify(r.values[a]);if(c)return"values."+c}}return null},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.common.v1.KeyValueList)return r;var a=new S.opentelemetry.proto.common.v1.KeyValueList;if(r.values){if(!Array.isArray(r.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");a.values=[];for(var c=0;c<r.values.length;++c){if("object"!=typeof r.values[c])throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");a.values[c]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(r.values[c])}}return a},_.toObject=function(r,a){a||(a={});var c={};if((a.arrays||a.defaults)&&(c.values=[]),r.values&&r.values.length){c.values=[];for(var m=0;m<r.values.length;++m)c.values[m]=S.opentelemetry.proto.common.v1.KeyValue.toObject(r.values[m],a)}return c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.common.v1.KeyValueList"},_}(),P.KeyValue=function(){function _(i){if(i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.key=null,_.prototype.value=null,_.create=function(r){return new _(r)},_.encode=function(r,a){return a||(a=d.create()),null!=r.key&&Object.hasOwnProperty.call(r,"key")&&a.uint32(10).string(r.key),null!=r.value&&Object.hasOwnProperty.call(r,"value")&&S.opentelemetry.proto.common.v1.AnyValue.encode(r.value,a.uint32(18).fork()).ldelim(),a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.common.v1.KeyValue;r.pos<c;){var M=r.uint32();switch(M>>>3){case 1:m.key=r.string();break;case 2:m.value=S.opentelemetry.proto.common.v1.AnyValue.decode(r,r.uint32());break;default:r.skipType(7&M)}}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.key&&r.hasOwnProperty("key")&&!v.isString(r.key))return"key: string expected";if(null!=r.value&&r.hasOwnProperty("value")){var a=S.opentelemetry.proto.common.v1.AnyValue.verify(r.value);if(a)return"value."+a}return null},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.common.v1.KeyValue)return r;var a=new S.opentelemetry.proto.common.v1.KeyValue;if(null!=r.key&&(a.key=String(r.key)),null!=r.value){if("object"!=typeof r.value)throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");a.value=S.opentelemetry.proto.common.v1.AnyValue.fromObject(r.value)}return a},_.toObject=function(r,a){a||(a={});var c={};return a.defaults&&(c.key="",c.value=null),null!=r.key&&r.hasOwnProperty("key")&&(c.key=r.key),null!=r.value&&r.hasOwnProperty("value")&&(c.value=S.opentelemetry.proto.common.v1.AnyValue.toObject(r.value,a)),c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.common.v1.KeyValue"},_}(),P.InstrumentationScope=function(){function _(i){if(this.attributes=[],i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.name=null,_.prototype.version=null,_.prototype.attributes=v.emptyArray,_.prototype.droppedAttributesCount=null,_.create=function(r){return new _(r)},_.encode=function(r,a){if(a||(a=d.create()),null!=r.name&&Object.hasOwnProperty.call(r,"name")&&a.uint32(10).string(r.name),null!=r.version&&Object.hasOwnProperty.call(r,"version")&&a.uint32(18).string(r.version),null!=r.attributes&&r.attributes.length)for(var c=0;c<r.attributes.length;++c)S.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[c],a.uint32(26).fork()).ldelim();return null!=r.droppedAttributesCount&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&a.uint32(32).uint32(r.droppedAttributesCount),a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.common.v1.InstrumentationScope;r.pos<c;){var M=r.uint32();switch(M>>>3){case 1:m.name=r.string();break;case 2:m.version=r.string();break;case 3:m.attributes&&m.attributes.length||(m.attributes=[]),m.attributes.push(S.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break;case 4:m.droppedAttributesCount=r.uint32();break;default:r.skipType(7&M)}}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.name&&r.hasOwnProperty("name")&&!v.isString(r.name))return"name: string expected";if(null!=r.version&&r.hasOwnProperty("version")&&!v.isString(r.version))return"version: string expected";if(null!=r.attributes&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var a=0;a<r.attributes.length;++a){var c=S.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[a]);if(c)return"attributes."+c}}return null!=r.droppedAttributesCount&&r.hasOwnProperty("droppedAttributesCount")&&!v.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.common.v1.InstrumentationScope)return r;var a=new S.opentelemetry.proto.common.v1.InstrumentationScope;if(null!=r.name&&(a.name=String(r.name)),null!=r.version&&(a.version=String(r.version)),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");a.attributes=[];for(var c=0;c<r.attributes.length;++c){if("object"!=typeof r.attributes[c])throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");a.attributes[c]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[c])}}return null!=r.droppedAttributesCount&&(a.droppedAttributesCount=r.droppedAttributesCount>>>0),a},_.toObject=function(r,a){a||(a={});var c={};if((a.arrays||a.defaults)&&(c.attributes=[]),a.defaults&&(c.name="",c.version="",c.droppedAttributesCount=0),null!=r.name&&r.hasOwnProperty("name")&&(c.name=r.name),null!=r.version&&r.hasOwnProperty("version")&&(c.version=r.version),r.attributes&&r.attributes.length){c.attributes=[];for(var m=0;m<r.attributes.length;++m)c.attributes[m]=S.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[m],a)}return null!=r.droppedAttributesCount&&r.hasOwnProperty("droppedAttributesCount")&&(c.droppedAttributesCount=r.droppedAttributesCount),c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.common.v1.InstrumentationScope"},_}(),P),O),f.resource=function(){var O={};return O.v1=function(){var P={};return P.Resource=function(){function _(i){if(this.attributes=[],i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.attributes=v.emptyArray,_.prototype.droppedAttributesCount=null,_.create=function(r){return new _(r)},_.encode=function(r,a){if(a||(a=d.create()),null!=r.attributes&&r.attributes.length)for(var c=0;c<r.attributes.length;++c)S.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[c],a.uint32(10).fork()).ldelim();return null!=r.droppedAttributesCount&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&a.uint32(16).uint32(r.droppedAttributesCount),a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.resource.v1.Resource;r.pos<c;){var M=r.uint32();switch(M>>>3){case 1:m.attributes&&m.attributes.length||(m.attributes=[]),m.attributes.push(S.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break;case 2:m.droppedAttributesCount=r.uint32();break;default:r.skipType(7&M)}}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.attributes&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var a=0;a<r.attributes.length;++a){var c=S.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[a]);if(c)return"attributes."+c}}return null!=r.droppedAttributesCount&&r.hasOwnProperty("droppedAttributesCount")&&!v.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.resource.v1.Resource)return r;var a=new S.opentelemetry.proto.resource.v1.Resource;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");a.attributes=[];for(var c=0;c<r.attributes.length;++c){if("object"!=typeof r.attributes[c])throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");a.attributes[c]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[c])}}return null!=r.droppedAttributesCount&&(a.droppedAttributesCount=r.droppedAttributesCount>>>0),a},_.toObject=function(r,a){a||(a={});var c={};if((a.arrays||a.defaults)&&(c.attributes=[]),a.defaults&&(c.droppedAttributesCount=0),r.attributes&&r.attributes.length){c.attributes=[];for(var m=0;m<r.attributes.length;++m)c.attributes[m]=S.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[m],a)}return null!=r.droppedAttributesCount&&r.hasOwnProperty("droppedAttributesCount")&&(c.droppedAttributesCount=r.droppedAttributesCount),c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.resource.v1.Resource"},_}(),P}(),O}(),f.trace=function(){var O={};return O.v1=function(){var P={};return P.TracesData=function(){function _(i){if(this.resourceSpans=[],i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.resourceSpans=v.emptyArray,_.create=function(r){return new _(r)},_.encode=function(r,a){if(a||(a=d.create()),null!=r.resourceSpans&&r.resourceSpans.length)for(var c=0;c<r.resourceSpans.length;++c)S.opentelemetry.proto.trace.v1.ResourceSpans.encode(r.resourceSpans[c],a.uint32(10).fork()).ldelim();return a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.trace.v1.TracesData;r.pos<c;){var M=r.uint32();M>>>3==1?(m.resourceSpans&&m.resourceSpans.length||(m.resourceSpans=[]),m.resourceSpans.push(S.opentelemetry.proto.trace.v1.ResourceSpans.decode(r,r.uint32()))):r.skipType(7&M)}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.resourceSpans&&r.hasOwnProperty("resourceSpans")){if(!Array.isArray(r.resourceSpans))return"resourceSpans: array expected";for(var a=0;a<r.resourceSpans.length;++a){var c=S.opentelemetry.proto.trace.v1.ResourceSpans.verify(r.resourceSpans[a]);if(c)return"resourceSpans."+c}}return null},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.trace.v1.TracesData)return r;var a=new S.opentelemetry.proto.trace.v1.TracesData;if(r.resourceSpans){if(!Array.isArray(r.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");a.resourceSpans=[];for(var c=0;c<r.resourceSpans.length;++c){if("object"!=typeof r.resourceSpans[c])throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");a.resourceSpans[c]=S.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(r.resourceSpans[c])}}return a},_.toObject=function(r,a){a||(a={});var c={};if((a.arrays||a.defaults)&&(c.resourceSpans=[]),r.resourceSpans&&r.resourceSpans.length){c.resourceSpans=[];for(var m=0;m<r.resourceSpans.length;++m)c.resourceSpans[m]=S.opentelemetry.proto.trace.v1.ResourceSpans.toObject(r.resourceSpans[m],a)}return c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.TracesData"},_}(),P.ResourceSpans=function(){function _(i){if(this.scopeSpans=[],i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.resource=null,_.prototype.scopeSpans=v.emptyArray,_.prototype.schemaUrl=null,_.create=function(r){return new _(r)},_.encode=function(r,a){if(a||(a=d.create()),null!=r.resource&&Object.hasOwnProperty.call(r,"resource")&&S.opentelemetry.proto.resource.v1.Resource.encode(r.resource,a.uint32(10).fork()).ldelim(),null!=r.scopeSpans&&r.scopeSpans.length)for(var c=0;c<r.scopeSpans.length;++c)S.opentelemetry.proto.trace.v1.ScopeSpans.encode(r.scopeSpans[c],a.uint32(18).fork()).ldelim();return null!=r.schemaUrl&&Object.hasOwnProperty.call(r,"schemaUrl")&&a.uint32(26).string(r.schemaUrl),a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.trace.v1.ResourceSpans;r.pos<c;){var M=r.uint32();switch(M>>>3){case 1:m.resource=S.opentelemetry.proto.resource.v1.Resource.decode(r,r.uint32());break;case 2:m.scopeSpans&&m.scopeSpans.length||(m.scopeSpans=[]),m.scopeSpans.push(S.opentelemetry.proto.trace.v1.ScopeSpans.decode(r,r.uint32()));break;case 3:m.schemaUrl=r.string();break;default:r.skipType(7&M)}}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.resource&&r.hasOwnProperty("resource")&&(a=S.opentelemetry.proto.resource.v1.Resource.verify(r.resource)))return"resource."+a;if(null!=r.scopeSpans&&r.hasOwnProperty("scopeSpans")){if(!Array.isArray(r.scopeSpans))return"scopeSpans: array expected";for(var c=0;c<r.scopeSpans.length;++c){var a;if(a=S.opentelemetry.proto.trace.v1.ScopeSpans.verify(r.scopeSpans[c]))return"scopeSpans."+a}}return null!=r.schemaUrl&&r.hasOwnProperty("schemaUrl")&&!v.isString(r.schemaUrl)?"schemaUrl: string expected":null},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.trace.v1.ResourceSpans)return r;var a=new S.opentelemetry.proto.trace.v1.ResourceSpans;if(null!=r.resource){if("object"!=typeof r.resource)throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");a.resource=S.opentelemetry.proto.resource.v1.Resource.fromObject(r.resource)}if(r.scopeSpans){if(!Array.isArray(r.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");a.scopeSpans=[];for(var c=0;c<r.scopeSpans.length;++c){if("object"!=typeof r.scopeSpans[c])throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");a.scopeSpans[c]=S.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(r.scopeSpans[c])}}return null!=r.schemaUrl&&(a.schemaUrl=String(r.schemaUrl)),a},_.toObject=function(r,a){a||(a={});var c={};if((a.arrays||a.defaults)&&(c.scopeSpans=[]),a.defaults&&(c.resource=null,c.schemaUrl=""),null!=r.resource&&r.hasOwnProperty("resource")&&(c.resource=S.opentelemetry.proto.resource.v1.Resource.toObject(r.resource,a)),r.scopeSpans&&r.scopeSpans.length){c.scopeSpans=[];for(var m=0;m<r.scopeSpans.length;++m)c.scopeSpans[m]=S.opentelemetry.proto.trace.v1.ScopeSpans.toObject(r.scopeSpans[m],a)}return null!=r.schemaUrl&&r.hasOwnProperty("schemaUrl")&&(c.schemaUrl=r.schemaUrl),c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.ResourceSpans"},_}(),P.ScopeSpans=function(){function _(i){if(this.spans=[],i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.scope=null,_.prototype.spans=v.emptyArray,_.prototype.schemaUrl=null,_.create=function(r){return new _(r)},_.encode=function(r,a){if(a||(a=d.create()),null!=r.scope&&Object.hasOwnProperty.call(r,"scope")&&S.opentelemetry.proto.common.v1.InstrumentationScope.encode(r.scope,a.uint32(10).fork()).ldelim(),null!=r.spans&&r.spans.length)for(var c=0;c<r.spans.length;++c)S.opentelemetry.proto.trace.v1.Span.encode(r.spans[c],a.uint32(18).fork()).ldelim();return null!=r.schemaUrl&&Object.hasOwnProperty.call(r,"schemaUrl")&&a.uint32(26).string(r.schemaUrl),a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.trace.v1.ScopeSpans;r.pos<c;){var M=r.uint32();switch(M>>>3){case 1:m.scope=S.opentelemetry.proto.common.v1.InstrumentationScope.decode(r,r.uint32());break;case 2:m.spans&&m.spans.length||(m.spans=[]),m.spans.push(S.opentelemetry.proto.trace.v1.Span.decode(r,r.uint32()));break;case 3:m.schemaUrl=r.string();break;default:r.skipType(7&M)}}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.scope&&r.hasOwnProperty("scope")&&(a=S.opentelemetry.proto.common.v1.InstrumentationScope.verify(r.scope)))return"scope."+a;if(null!=r.spans&&r.hasOwnProperty("spans")){if(!Array.isArray(r.spans))return"spans: array expected";for(var c=0;c<r.spans.length;++c){var a;if(a=S.opentelemetry.proto.trace.v1.Span.verify(r.spans[c]))return"spans."+a}}return null!=r.schemaUrl&&r.hasOwnProperty("schemaUrl")&&!v.isString(r.schemaUrl)?"schemaUrl: string expected":null},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.trace.v1.ScopeSpans)return r;var a=new S.opentelemetry.proto.trace.v1.ScopeSpans;if(null!=r.scope){if("object"!=typeof r.scope)throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");a.scope=S.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(r.scope)}if(r.spans){if(!Array.isArray(r.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");a.spans=[];for(var c=0;c<r.spans.length;++c){if("object"!=typeof r.spans[c])throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");a.spans[c]=S.opentelemetry.proto.trace.v1.Span.fromObject(r.spans[c])}}return null!=r.schemaUrl&&(a.schemaUrl=String(r.schemaUrl)),a},_.toObject=function(r,a){a||(a={});var c={};if((a.arrays||a.defaults)&&(c.spans=[]),a.defaults&&(c.scope=null,c.schemaUrl=""),null!=r.scope&&r.hasOwnProperty("scope")&&(c.scope=S.opentelemetry.proto.common.v1.InstrumentationScope.toObject(r.scope,a)),r.spans&&r.spans.length){c.spans=[];for(var m=0;m<r.spans.length;++m)c.spans[m]=S.opentelemetry.proto.trace.v1.Span.toObject(r.spans[m],a)}return null!=r.schemaUrl&&r.hasOwnProperty("schemaUrl")&&(c.schemaUrl=r.schemaUrl),c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.ScopeSpans"},_}(),P.Span=function(){function _(i){if(this.attributes=[],this.events=[],this.links=[],i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.traceId=null,_.prototype.spanId=null,_.prototype.traceState=null,_.prototype.parentSpanId=null,_.prototype.name=null,_.prototype.kind=null,_.prototype.startTimeUnixNano=null,_.prototype.endTimeUnixNano=null,_.prototype.attributes=v.emptyArray,_.prototype.droppedAttributesCount=null,_.prototype.events=v.emptyArray,_.prototype.droppedEventsCount=null,_.prototype.links=v.emptyArray,_.prototype.droppedLinksCount=null,_.prototype.status=null,_.create=function(r){return new _(r)},_.encode=function(r,a){if(a||(a=d.create()),null!=r.traceId&&Object.hasOwnProperty.call(r,"traceId")&&a.uint32(10).bytes(r.traceId),null!=r.spanId&&Object.hasOwnProperty.call(r,"spanId")&&a.uint32(18).bytes(r.spanId),null!=r.traceState&&Object.hasOwnProperty.call(r,"traceState")&&a.uint32(26).string(r.traceState),null!=r.parentSpanId&&Object.hasOwnProperty.call(r,"parentSpanId")&&a.uint32(34).bytes(r.parentSpanId),null!=r.name&&Object.hasOwnProperty.call(r,"name")&&a.uint32(42).string(r.name),null!=r.kind&&Object.hasOwnProperty.call(r,"kind")&&a.uint32(48).int32(r.kind),null!=r.startTimeUnixNano&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&a.uint32(57).fixed64(r.startTimeUnixNano),null!=r.endTimeUnixNano&&Object.hasOwnProperty.call(r,"endTimeUnixNano")&&a.uint32(65).fixed64(r.endTimeUnixNano),null!=r.attributes&&r.attributes.length)for(var c=0;c<r.attributes.length;++c)S.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[c],a.uint32(74).fork()).ldelim();if(null!=r.droppedAttributesCount&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&a.uint32(80).uint32(r.droppedAttributesCount),null!=r.events&&r.events.length)for(c=0;c<r.events.length;++c)S.opentelemetry.proto.trace.v1.Span.Event.encode(r.events[c],a.uint32(90).fork()).ldelim();if(null!=r.droppedEventsCount&&Object.hasOwnProperty.call(r,"droppedEventsCount")&&a.uint32(96).uint32(r.droppedEventsCount),null!=r.links&&r.links.length)for(c=0;c<r.links.length;++c)S.opentelemetry.proto.trace.v1.Span.Link.encode(r.links[c],a.uint32(106).fork()).ldelim();return null!=r.droppedLinksCount&&Object.hasOwnProperty.call(r,"droppedLinksCount")&&a.uint32(112).uint32(r.droppedLinksCount),null!=r.status&&Object.hasOwnProperty.call(r,"status")&&S.opentelemetry.proto.trace.v1.Status.encode(r.status,a.uint32(122).fork()).ldelim(),a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.trace.v1.Span;r.pos<c;){var M=r.uint32();switch(M>>>3){case 1:m.traceId=r.bytes();break;case 2:m.spanId=r.bytes();break;case 3:m.traceState=r.string();break;case 4:m.parentSpanId=r.bytes();break;case 5:m.name=r.string();break;case 6:m.kind=r.int32();break;case 7:m.startTimeUnixNano=r.fixed64();break;case 8:m.endTimeUnixNano=r.fixed64();break;case 9:m.attributes&&m.attributes.length||(m.attributes=[]),m.attributes.push(S.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break;case 10:m.droppedAttributesCount=r.uint32();break;case 11:m.events&&m.events.length||(m.events=[]),m.events.push(S.opentelemetry.proto.trace.v1.Span.Event.decode(r,r.uint32()));break;case 12:m.droppedEventsCount=r.uint32();break;case 13:m.links&&m.links.length||(m.links=[]),m.links.push(S.opentelemetry.proto.trace.v1.Span.Link.decode(r,r.uint32()));break;case 14:m.droppedLinksCount=r.uint32();break;case 15:m.status=S.opentelemetry.proto.trace.v1.Status.decode(r,r.uint32());break;default:r.skipType(7&M)}}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.traceId&&r.hasOwnProperty("traceId")&&!(r.traceId&&"number"==typeof r.traceId.length||v.isString(r.traceId)))return"traceId: buffer expected";if(null!=r.spanId&&r.hasOwnProperty("spanId")&&!(r.spanId&&"number"==typeof r.spanId.length||v.isString(r.spanId)))return"spanId: buffer expected";if(null!=r.traceState&&r.hasOwnProperty("traceState")&&!v.isString(r.traceState))return"traceState: string expected";if(null!=r.parentSpanId&&r.hasOwnProperty("parentSpanId")&&!(r.parentSpanId&&"number"==typeof r.parentSpanId.length||v.isString(r.parentSpanId)))return"parentSpanId: buffer expected";if(null!=r.name&&r.hasOwnProperty("name")&&!v.isString(r.name))return"name: string expected";if(null!=r.kind&&r.hasOwnProperty("kind"))switch(r.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:}if(null!=r.startTimeUnixNano&&r.hasOwnProperty("startTimeUnixNano")&&!v.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&v.isInteger(r.startTimeUnixNano.low)&&v.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(null!=r.endTimeUnixNano&&r.hasOwnProperty("endTimeUnixNano")&&!v.isInteger(r.endTimeUnixNano)&&!(r.endTimeUnixNano&&v.isInteger(r.endTimeUnixNano.low)&&v.isInteger(r.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(null!=r.attributes&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var a=0;a<r.attributes.length;++a)if(c=S.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[a]))return"attributes."+c}if(null!=r.droppedAttributesCount&&r.hasOwnProperty("droppedAttributesCount")&&!v.isInteger(r.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(null!=r.events&&r.hasOwnProperty("events")){if(!Array.isArray(r.events))return"events: array expected";for(a=0;a<r.events.length;++a)if(c=S.opentelemetry.proto.trace.v1.Span.Event.verify(r.events[a]))return"events."+c}if(null!=r.droppedEventsCount&&r.hasOwnProperty("droppedEventsCount")&&!v.isInteger(r.droppedEventsCount))return"droppedEventsCount: integer expected";if(null!=r.links&&r.hasOwnProperty("links")){if(!Array.isArray(r.links))return"links: array expected";for(a=0;a<r.links.length;++a)if(c=S.opentelemetry.proto.trace.v1.Span.Link.verify(r.links[a]))return"links."+c}return null!=r.droppedLinksCount&&r.hasOwnProperty("droppedLinksCount")&&!v.isInteger(r.droppedLinksCount)?"droppedLinksCount: integer expected":null!=r.status&&r.hasOwnProperty("status")&&(c=S.opentelemetry.proto.trace.v1.Status.verify(r.status))?"status."+c:null;var c},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.trace.v1.Span)return r;var a=new S.opentelemetry.proto.trace.v1.Span;switch(null!=r.traceId&&("string"==typeof r.traceId?v.base64.decode(r.traceId,a.traceId=v.newBuffer(v.base64.length(r.traceId)),0):r.traceId.length>=0&&(a.traceId=r.traceId)),null!=r.spanId&&("string"==typeof r.spanId?v.base64.decode(r.spanId,a.spanId=v.newBuffer(v.base64.length(r.spanId)),0):r.spanId.length>=0&&(a.spanId=r.spanId)),null!=r.traceState&&(a.traceState=String(r.traceState)),null!=r.parentSpanId&&("string"==typeof r.parentSpanId?v.base64.decode(r.parentSpanId,a.parentSpanId=v.newBuffer(v.base64.length(r.parentSpanId)),0):r.parentSpanId.length>=0&&(a.parentSpanId=r.parentSpanId)),null!=r.name&&(a.name=String(r.name)),r.kind){default:if("number"==typeof r.kind){a.kind=r.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:a.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:a.kind=1;break;case"SPAN_KIND_SERVER":case 2:a.kind=2;break;case"SPAN_KIND_CLIENT":case 3:a.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:a.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:a.kind=5}if(null!=r.startTimeUnixNano&&(v.Long?(a.startTimeUnixNano=v.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:"string"==typeof r.startTimeUnixNano?a.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):"number"==typeof r.startTimeUnixNano?a.startTimeUnixNano=r.startTimeUnixNano:"object"==typeof r.startTimeUnixNano&&(a.startTimeUnixNano=new v.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),null!=r.endTimeUnixNano&&(v.Long?(a.endTimeUnixNano=v.Long.fromValue(r.endTimeUnixNano)).unsigned=!1:"string"==typeof r.endTimeUnixNano?a.endTimeUnixNano=parseInt(r.endTimeUnixNano,10):"number"==typeof r.endTimeUnixNano?a.endTimeUnixNano=r.endTimeUnixNano:"object"==typeof r.endTimeUnixNano&&(a.endTimeUnixNano=new v.LongBits(r.endTimeUnixNano.low>>>0,r.endTimeUnixNano.high>>>0).toNumber())),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");a.attributes=[];for(var c=0;c<r.attributes.length;++c){if("object"!=typeof r.attributes[c])throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");a.attributes[c]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[c])}}if(null!=r.droppedAttributesCount&&(a.droppedAttributesCount=r.droppedAttributesCount>>>0),r.events){if(!Array.isArray(r.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");for(a.events=[],c=0;c<r.events.length;++c){if("object"!=typeof r.events[c])throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");a.events[c]=S.opentelemetry.proto.trace.v1.Span.Event.fromObject(r.events[c])}}if(null!=r.droppedEventsCount&&(a.droppedEventsCount=r.droppedEventsCount>>>0),r.links){if(!Array.isArray(r.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");for(a.links=[],c=0;c<r.links.length;++c){if("object"!=typeof r.links[c])throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");a.links[c]=S.opentelemetry.proto.trace.v1.Span.Link.fromObject(r.links[c])}}if(null!=r.droppedLinksCount&&(a.droppedLinksCount=r.droppedLinksCount>>>0),null!=r.status){if("object"!=typeof r.status)throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");a.status=S.opentelemetry.proto.trace.v1.Status.fromObject(r.status)}return a},_.toObject=function(r,a){a||(a={});var c={};if((a.arrays||a.defaults)&&(c.attributes=[],c.events=[],c.links=[]),a.defaults){if(a.bytes===String?c.traceId="":(c.traceId=[],a.bytes!==Array&&(c.traceId=v.newBuffer(c.traceId))),a.bytes===String?c.spanId="":(c.spanId=[],a.bytes!==Array&&(c.spanId=v.newBuffer(c.spanId))),c.traceState="",a.bytes===String?c.parentSpanId="":(c.parentSpanId=[],a.bytes!==Array&&(c.parentSpanId=v.newBuffer(c.parentSpanId))),c.name="",c.kind=a.enums===String?"SPAN_KIND_UNSPECIFIED":0,v.Long){var m=new v.Long(0,0,!1);c.startTimeUnixNano=a.longs===String?m.toString():a.longs===Number?m.toNumber():m}else c.startTimeUnixNano=a.longs===String?"0":0;v.Long?(m=new v.Long(0,0,!1),c.endTimeUnixNano=a.longs===String?m.toString():a.longs===Number?m.toNumber():m):c.endTimeUnixNano=a.longs===String?"0":0,c.droppedAttributesCount=0,c.droppedEventsCount=0,c.droppedLinksCount=0,c.status=null}if(null!=r.traceId&&r.hasOwnProperty("traceId")&&(c.traceId=a.bytes===String?v.base64.encode(r.traceId,0,r.traceId.length):a.bytes===Array?Array.prototype.slice.call(r.traceId):r.traceId),null!=r.spanId&&r.hasOwnProperty("spanId")&&(c.spanId=a.bytes===String?v.base64.encode(r.spanId,0,r.spanId.length):a.bytes===Array?Array.prototype.slice.call(r.spanId):r.spanId),null!=r.traceState&&r.hasOwnProperty("traceState")&&(c.traceState=r.traceState),null!=r.parentSpanId&&r.hasOwnProperty("parentSpanId")&&(c.parentSpanId=a.bytes===String?v.base64.encode(r.parentSpanId,0,r.parentSpanId.length):a.bytes===Array?Array.prototype.slice.call(r.parentSpanId):r.parentSpanId),null!=r.name&&r.hasOwnProperty("name")&&(c.name=r.name),null!=r.kind&&r.hasOwnProperty("kind")&&(c.kind=a.enums===String?void 0===S.opentelemetry.proto.trace.v1.Span.SpanKind[r.kind]?r.kind:S.opentelemetry.proto.trace.v1.Span.SpanKind[r.kind]:r.kind),null!=r.startTimeUnixNano&&r.hasOwnProperty("startTimeUnixNano")&&(c.startTimeUnixNano="number"==typeof r.startTimeUnixNano?a.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:a.longs===String?v.Long.prototype.toString.call(r.startTimeUnixNano):a.longs===Number?new v.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),null!=r.endTimeUnixNano&&r.hasOwnProperty("endTimeUnixNano")&&(c.endTimeUnixNano="number"==typeof r.endTimeUnixNano?a.longs===String?String(r.endTimeUnixNano):r.endTimeUnixNano:a.longs===String?v.Long.prototype.toString.call(r.endTimeUnixNano):a.longs===Number?new v.LongBits(r.endTimeUnixNano.low>>>0,r.endTimeUnixNano.high>>>0).toNumber():r.endTimeUnixNano),r.attributes&&r.attributes.length){c.attributes=[];for(var M=0;M<r.attributes.length;++M)c.attributes[M]=S.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[M],a)}if(null!=r.droppedAttributesCount&&r.hasOwnProperty("droppedAttributesCount")&&(c.droppedAttributesCount=r.droppedAttributesCount),r.events&&r.events.length)for(c.events=[],M=0;M<r.events.length;++M)c.events[M]=S.opentelemetry.proto.trace.v1.Span.Event.toObject(r.events[M],a);if(null!=r.droppedEventsCount&&r.hasOwnProperty("droppedEventsCount")&&(c.droppedEventsCount=r.droppedEventsCount),r.links&&r.links.length)for(c.links=[],M=0;M<r.links.length;++M)c.links[M]=S.opentelemetry.proto.trace.v1.Span.Link.toObject(r.links[M],a);return null!=r.droppedLinksCount&&r.hasOwnProperty("droppedLinksCount")&&(c.droppedLinksCount=r.droppedLinksCount),null!=r.status&&r.hasOwnProperty("status")&&(c.status=S.opentelemetry.proto.trace.v1.Status.toObject(r.status,a)),c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.Span"},_.SpanKind=(i={},(r=Object.create(i))[i[0]="SPAN_KIND_UNSPECIFIED"]=0,r[i[1]="SPAN_KIND_INTERNAL"]=1,r[i[2]="SPAN_KIND_SERVER"]=2,r[i[3]="SPAN_KIND_CLIENT"]=3,r[i[4]="SPAN_KIND_PRODUCER"]=4,r[i[5]="SPAN_KIND_CONSUMER"]=5,r),_.Event=function(){function i(r){if(this.attributes=[],r)for(var a=Object.keys(r),c=0;c<a.length;++c)null!=r[a[c]]&&(this[a[c]]=r[a[c]])}return i.prototype.timeUnixNano=null,i.prototype.name=null,i.prototype.attributes=v.emptyArray,i.prototype.droppedAttributesCount=null,i.create=function(a){return new i(a)},i.encode=function(a,c){if(c||(c=d.create()),null!=a.timeUnixNano&&Object.hasOwnProperty.call(a,"timeUnixNano")&&c.uint32(9).fixed64(a.timeUnixNano),null!=a.name&&Object.hasOwnProperty.call(a,"name")&&c.uint32(18).string(a.name),null!=a.attributes&&a.attributes.length)for(var m=0;m<a.attributes.length;++m)S.opentelemetry.proto.common.v1.KeyValue.encode(a.attributes[m],c.uint32(26).fork()).ldelim();return null!=a.droppedAttributesCount&&Object.hasOwnProperty.call(a,"droppedAttributesCount")&&c.uint32(32).uint32(a.droppedAttributesCount),c},i.encodeDelimited=function(a,c){return this.encode(a,c).ldelim()},i.decode=function(a,c){a instanceof l||(a=l.create(a));for(var m=void 0===c?a.len:a.pos+c,M=new S.opentelemetry.proto.trace.v1.Span.Event;a.pos<m;){var D=a.uint32();switch(D>>>3){case 1:M.timeUnixNano=a.fixed64();break;case 2:M.name=a.string();break;case 3:M.attributes&&M.attributes.length||(M.attributes=[]),M.attributes.push(S.opentelemetry.proto.common.v1.KeyValue.decode(a,a.uint32()));break;case 4:M.droppedAttributesCount=a.uint32();break;default:a.skipType(7&D)}}return M},i.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},i.verify=function(a){if("object"!=typeof a||null===a)return"object expected";if(null!=a.timeUnixNano&&a.hasOwnProperty("timeUnixNano")&&!v.isInteger(a.timeUnixNano)&&!(a.timeUnixNano&&v.isInteger(a.timeUnixNano.low)&&v.isInteger(a.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=a.name&&a.hasOwnProperty("name")&&!v.isString(a.name))return"name: string expected";if(null!=a.attributes&&a.hasOwnProperty("attributes")){if(!Array.isArray(a.attributes))return"attributes: array expected";for(var c=0;c<a.attributes.length;++c){var m=S.opentelemetry.proto.common.v1.KeyValue.verify(a.attributes[c]);if(m)return"attributes."+m}}return null!=a.droppedAttributesCount&&a.hasOwnProperty("droppedAttributesCount")&&!v.isInteger(a.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},i.fromObject=function(a){if(a instanceof S.opentelemetry.proto.trace.v1.Span.Event)return a;var c=new S.opentelemetry.proto.trace.v1.Span.Event;if(null!=a.timeUnixNano&&(v.Long?(c.timeUnixNano=v.Long.fromValue(a.timeUnixNano)).unsigned=!1:"string"==typeof a.timeUnixNano?c.timeUnixNano=parseInt(a.timeUnixNano,10):"number"==typeof a.timeUnixNano?c.timeUnixNano=a.timeUnixNano:"object"==typeof a.timeUnixNano&&(c.timeUnixNano=new v.LongBits(a.timeUnixNano.low>>>0,a.timeUnixNano.high>>>0).toNumber())),null!=a.name&&(c.name=String(a.name)),a.attributes){if(!Array.isArray(a.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");c.attributes=[];for(var m=0;m<a.attributes.length;++m){if("object"!=typeof a.attributes[m])throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");c.attributes[m]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(a.attributes[m])}}return null!=a.droppedAttributesCount&&(c.droppedAttributesCount=a.droppedAttributesCount>>>0),c},i.toObject=function(a,c){c||(c={});var m={};if((c.arrays||c.defaults)&&(m.attributes=[]),c.defaults){if(v.Long){var M=new v.Long(0,0,!1);m.timeUnixNano=c.longs===String?M.toString():c.longs===Number?M.toNumber():M}else m.timeUnixNano=c.longs===String?"0":0;m.name="",m.droppedAttributesCount=0}if(null!=a.timeUnixNano&&a.hasOwnProperty("timeUnixNano")&&(m.timeUnixNano="number"==typeof a.timeUnixNano?c.longs===String?String(a.timeUnixNano):a.timeUnixNano:c.longs===String?v.Long.prototype.toString.call(a.timeUnixNano):c.longs===Number?new v.LongBits(a.timeUnixNano.low>>>0,a.timeUnixNano.high>>>0).toNumber():a.timeUnixNano),null!=a.name&&a.hasOwnProperty("name")&&(m.name=a.name),a.attributes&&a.attributes.length){m.attributes=[];for(var D=0;D<a.attributes.length;++D)m.attributes[D]=S.opentelemetry.proto.common.v1.KeyValue.toObject(a.attributes[D],c)}return null!=a.droppedAttributesCount&&a.hasOwnProperty("droppedAttributesCount")&&(m.droppedAttributesCount=a.droppedAttributesCount),m},i.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},i.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.trace.v1.Span.Event"},i}(),_.Link=function(){function i(r){if(this.attributes=[],r)for(var a=Object.keys(r),c=0;c<a.length;++c)null!=r[a[c]]&&(this[a[c]]=r[a[c]])}return i.prototype.traceId=null,i.prototype.spanId=null,i.prototype.traceState=null,i.prototype.attributes=v.emptyArray,i.prototype.droppedAttributesCount=null,i.create=function(a){return new i(a)},i.encode=function(a,c){if(c||(c=d.create()),null!=a.traceId&&Object.hasOwnProperty.call(a,"traceId")&&c.uint32(10).bytes(a.traceId),null!=a.spanId&&Object.hasOwnProperty.call(a,"spanId")&&c.uint32(18).bytes(a.spanId),null!=a.traceState&&Object.hasOwnProperty.call(a,"traceState")&&c.uint32(26).string(a.traceState),null!=a.attributes&&a.attributes.length)for(var m=0;m<a.attributes.length;++m)S.opentelemetry.proto.common.v1.KeyValue.encode(a.attributes[m],c.uint32(34).fork()).ldelim();return null!=a.droppedAttributesCount&&Object.hasOwnProperty.call(a,"droppedAttributesCount")&&c.uint32(40).uint32(a.droppedAttributesCount),c},i.encodeDelimited=function(a,c){return this.encode(a,c).ldelim()},i.decode=function(a,c){a instanceof l||(a=l.create(a));for(var m=void 0===c?a.len:a.pos+c,M=new S.opentelemetry.proto.trace.v1.Span.Link;a.pos<m;){var D=a.uint32();switch(D>>>3){case 1:M.traceId=a.bytes();break;case 2:M.spanId=a.bytes();break;case 3:M.traceState=a.string();break;case 4:M.attributes&&M.attributes.length||(M.attributes=[]),M.attributes.push(S.opentelemetry.proto.common.v1.KeyValue.decode(a,a.uint32()));break;case 5:M.droppedAttributesCount=a.uint32();break;default:a.skipType(7&D)}}return M},i.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},i.verify=function(a){if("object"!=typeof a||null===a)return"object expected";if(null!=a.traceId&&a.hasOwnProperty("traceId")&&!(a.traceId&&"number"==typeof a.traceId.length||v.isString(a.traceId)))return"traceId: buffer expected";if(null!=a.spanId&&a.hasOwnProperty("spanId")&&!(a.spanId&&"number"==typeof a.spanId.length||v.isString(a.spanId)))return"spanId: buffer expected";if(null!=a.traceState&&a.hasOwnProperty("traceState")&&!v.isString(a.traceState))return"traceState: string expected";if(null!=a.attributes&&a.hasOwnProperty("attributes")){if(!Array.isArray(a.attributes))return"attributes: array expected";for(var c=0;c<a.attributes.length;++c){var m=S.opentelemetry.proto.common.v1.KeyValue.verify(a.attributes[c]);if(m)return"attributes."+m}}return null!=a.droppedAttributesCount&&a.hasOwnProperty("droppedAttributesCount")&&!v.isInteger(a.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},i.fromObject=function(a){if(a instanceof S.opentelemetry.proto.trace.v1.Span.Link)return a;var c=new S.opentelemetry.proto.trace.v1.Span.Link;if(null!=a.traceId&&("string"==typeof a.traceId?v.base64.decode(a.traceId,c.traceId=v.newBuffer(v.base64.length(a.traceId)),0):a.traceId.length>=0&&(c.traceId=a.traceId)),null!=a.spanId&&("string"==typeof a.spanId?v.base64.decode(a.spanId,c.spanId=v.newBuffer(v.base64.length(a.spanId)),0):a.spanId.length>=0&&(c.spanId=a.spanId)),null!=a.traceState&&(c.traceState=String(a.traceState)),a.attributes){if(!Array.isArray(a.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");c.attributes=[];for(var m=0;m<a.attributes.length;++m){if("object"!=typeof a.attributes[m])throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");c.attributes[m]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(a.attributes[m])}}return null!=a.droppedAttributesCount&&(c.droppedAttributesCount=a.droppedAttributesCount>>>0),c},i.toObject=function(a,c){c||(c={});var m={};if((c.arrays||c.defaults)&&(m.attributes=[]),c.defaults&&(c.bytes===String?m.traceId="":(m.traceId=[],c.bytes!==Array&&(m.traceId=v.newBuffer(m.traceId))),c.bytes===String?m.spanId="":(m.spanId=[],c.bytes!==Array&&(m.spanId=v.newBuffer(m.spanId))),m.traceState="",m.droppedAttributesCount=0),null!=a.traceId&&a.hasOwnProperty("traceId")&&(m.traceId=c.bytes===String?v.base64.encode(a.traceId,0,a.traceId.length):c.bytes===Array?Array.prototype.slice.call(a.traceId):a.traceId),null!=a.spanId&&a.hasOwnProperty("spanId")&&(m.spanId=c.bytes===String?v.base64.encode(a.spanId,0,a.spanId.length):c.bytes===Array?Array.prototype.slice.call(a.spanId):a.spanId),null!=a.traceState&&a.hasOwnProperty("traceState")&&(m.traceState=a.traceState),a.attributes&&a.attributes.length){m.attributes=[];for(var M=0;M<a.attributes.length;++M)m.attributes[M]=S.opentelemetry.proto.common.v1.KeyValue.toObject(a.attributes[M],c)}return null!=a.droppedAttributesCount&&a.hasOwnProperty("droppedAttributesCount")&&(m.droppedAttributesCount=a.droppedAttributesCount),m},i.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},i.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.trace.v1.Span.Link"},i}(),_;var i,r}(),P.Status=function(){function _(i){if(i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.message=null,_.prototype.code=null,_.create=function(r){return new _(r)},_.encode=function(r,a){return a||(a=d.create()),null!=r.message&&Object.hasOwnProperty.call(r,"message")&&a.uint32(18).string(r.message),null!=r.code&&Object.hasOwnProperty.call(r,"code")&&a.uint32(24).int32(r.code),a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.trace.v1.Status;r.pos<c;){var M=r.uint32();switch(M>>>3){case 2:m.message=r.string();break;case 3:m.code=r.int32();break;default:r.skipType(7&M)}}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.message&&r.hasOwnProperty("message")&&!v.isString(r.message))return"message: string expected";if(null!=r.code&&r.hasOwnProperty("code"))switch(r.code){default:return"code: enum value expected";case 0:case 1:case 2:}return null},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.trace.v1.Status)return r;var a=new S.opentelemetry.proto.trace.v1.Status;switch(null!=r.message&&(a.message=String(r.message)),r.code){default:if("number"==typeof r.code){a.code=r.code;break}break;case"STATUS_CODE_UNSET":case 0:a.code=0;break;case"STATUS_CODE_OK":case 1:a.code=1;break;case"STATUS_CODE_ERROR":case 2:a.code=2}return a},_.toObject=function(r,a){a||(a={});var c={};return a.defaults&&(c.message="",c.code=a.enums===String?"STATUS_CODE_UNSET":0),null!=r.message&&r.hasOwnProperty("message")&&(c.message=r.message),null!=r.code&&r.hasOwnProperty("code")&&(c.code=a.enums===String?void 0===S.opentelemetry.proto.trace.v1.Status.StatusCode[r.code]?r.code:S.opentelemetry.proto.trace.v1.Status.StatusCode[r.code]:r.code),c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.Status"},_.StatusCode=(i={},(r=Object.create(i))[i[0]="STATUS_CODE_UNSET"]=0,r[i[1]="STATUS_CODE_OK"]=1,r[i[2]="STATUS_CODE_ERROR"]=2,r),_;var i,r}(),P}(),O}(),f.collector=function(){var O={};return O.trace=function(){var _,P={};return P.v1=((_={}).TraceService=function(){function i(r,a,c){n.rpc.Service.call(this,r,a,c)}return(i.prototype=Object.create(n.rpc.Service.prototype)).constructor=i,i.create=function(a,c,m){return new this(a,c,m)},Object.defineProperty(i.prototype.export=function r(a,c){return this.rpcCall(r,S.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,S.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,a,c)},"name",{value:"Export"}),i}(),_.ExportTraceServiceRequest=function(){function i(r){if(this.resourceSpans=[],r)for(var a=Object.keys(r),c=0;c<a.length;++c)null!=r[a[c]]&&(this[a[c]]=r[a[c]])}return i.prototype.resourceSpans=v.emptyArray,i.create=function(a){return new i(a)},i.encode=function(a,c){if(c||(c=d.create()),null!=a.resourceSpans&&a.resourceSpans.length)for(var m=0;m<a.resourceSpans.length;++m)S.opentelemetry.proto.trace.v1.ResourceSpans.encode(a.resourceSpans[m],c.uint32(10).fork()).ldelim();return c},i.encodeDelimited=function(a,c){return this.encode(a,c).ldelim()},i.decode=function(a,c){a instanceof l||(a=l.create(a));for(var m=void 0===c?a.len:a.pos+c,M=new S.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;a.pos<m;){var D=a.uint32();D>>>3==1?(M.resourceSpans&&M.resourceSpans.length||(M.resourceSpans=[]),M.resourceSpans.push(S.opentelemetry.proto.trace.v1.ResourceSpans.decode(a,a.uint32()))):a.skipType(7&D)}return M},i.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},i.verify=function(a){if("object"!=typeof a||null===a)return"object expected";if(null!=a.resourceSpans&&a.hasOwnProperty("resourceSpans")){if(!Array.isArray(a.resourceSpans))return"resourceSpans: array expected";for(var c=0;c<a.resourceSpans.length;++c){var m=S.opentelemetry.proto.trace.v1.ResourceSpans.verify(a.resourceSpans[c]);if(m)return"resourceSpans."+m}}return null},i.fromObject=function(a){if(a instanceof S.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return a;var c=new S.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(a.resourceSpans){if(!Array.isArray(a.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");c.resourceSpans=[];for(var m=0;m<a.resourceSpans.length;++m){if("object"!=typeof a.resourceSpans[m])throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");c.resourceSpans[m]=S.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(a.resourceSpans[m])}}return c},i.toObject=function(a,c){c||(c={});var m={};if((c.arrays||c.defaults)&&(m.resourceSpans=[]),a.resourceSpans&&a.resourceSpans.length){m.resourceSpans=[];for(var M=0;M<a.resourceSpans.length;++M)m.resourceSpans[M]=S.opentelemetry.proto.trace.v1.ResourceSpans.toObject(a.resourceSpans[M],c)}return m},i.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},i.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},i}(),_.ExportTraceServiceResponse=function(){function i(r){if(r)for(var a=Object.keys(r),c=0;c<a.length;++c)null!=r[a[c]]&&(this[a[c]]=r[a[c]])}return i.prototype.partialSuccess=null,i.create=function(a){return new i(a)},i.encode=function(a,c){return c||(c=d.create()),null!=a.partialSuccess&&Object.hasOwnProperty.call(a,"partialSuccess")&&S.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(a.partialSuccess,c.uint32(10).fork()).ldelim(),c},i.encodeDelimited=function(a,c){return this.encode(a,c).ldelim()},i.decode=function(a,c){a instanceof l||(a=l.create(a));for(var m=void 0===c?a.len:a.pos+c,M=new S.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;a.pos<m;){var D=a.uint32();D>>>3==1?M.partialSuccess=S.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(a,a.uint32()):a.skipType(7&D)}return M},i.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},i.verify=function(a){if("object"!=typeof a||null===a)return"object expected";if(null!=a.partialSuccess&&a.hasOwnProperty("partialSuccess")){var c=S.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(a.partialSuccess);if(c)return"partialSuccess."+c}return null},i.fromObject=function(a){if(a instanceof S.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return a;var c=new S.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(null!=a.partialSuccess){if("object"!=typeof a.partialSuccess)throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");c.partialSuccess=S.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(a.partialSuccess)}return c},i.toObject=function(a,c){c||(c={});var m={};return c.defaults&&(m.partialSuccess=null),null!=a.partialSuccess&&a.hasOwnProperty("partialSuccess")&&(m.partialSuccess=S.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(a.partialSuccess,c)),m},i.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},i.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},i}(),_.ExportTracePartialSuccess=function(){function i(r){if(r)for(var a=Object.keys(r),c=0;c<a.length;++c)null!=r[a[c]]&&(this[a[c]]=r[a[c]])}return i.prototype.rejectedSpans=null,i.prototype.errorMessage=null,i.create=function(a){return new i(a)},i.encode=function(a,c){return c||(c=d.create()),null!=a.rejectedSpans&&Object.hasOwnProperty.call(a,"rejectedSpans")&&c.uint32(8).int64(a.rejectedSpans),null!=a.errorMessage&&Object.hasOwnProperty.call(a,"errorMessage")&&c.uint32(18).string(a.errorMessage),c},i.encodeDelimited=function(a,c){return this.encode(a,c).ldelim()},i.decode=function(a,c){a instanceof l||(a=l.create(a));for(var m=void 0===c?a.len:a.pos+c,M=new S.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;a.pos<m;){var D=a.uint32();switch(D>>>3){case 1:M.rejectedSpans=a.int64();break;case 2:M.errorMessage=a.string();break;default:a.skipType(7&D)}}return M},i.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},i.verify=function(a){return"object"!=typeof a||null===a?"object expected":null==a.rejectedSpans||!a.hasOwnProperty("rejectedSpans")||v.isInteger(a.rejectedSpans)||a.rejectedSpans&&v.isInteger(a.rejectedSpans.low)&&v.isInteger(a.rejectedSpans.high)?null!=a.errorMessage&&a.hasOwnProperty("errorMessage")&&!v.isString(a.errorMessage)?"errorMessage: string expected":null:"rejectedSpans: integer|Long expected"},i.fromObject=function(a){if(a instanceof S.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return a;var c=new S.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return null!=a.rejectedSpans&&(v.Long?(c.rejectedSpans=v.Long.fromValue(a.rejectedSpans)).unsigned=!1:"string"==typeof a.rejectedSpans?c.rejectedSpans=parseInt(a.rejectedSpans,10):"number"==typeof a.rejectedSpans?c.rejectedSpans=a.rejectedSpans:"object"==typeof a.rejectedSpans&&(c.rejectedSpans=new v.LongBits(a.rejectedSpans.low>>>0,a.rejectedSpans.high>>>0).toNumber())),null!=a.errorMessage&&(c.errorMessage=String(a.errorMessage)),c},i.toObject=function(a,c){c||(c={});var m={};if(c.defaults){if(v.Long){var M=new v.Long(0,0,!1);m.rejectedSpans=c.longs===String?M.toString():c.longs===Number?M.toNumber():M}else m.rejectedSpans=c.longs===String?"0":0;m.errorMessage=""}return null!=a.rejectedSpans&&a.hasOwnProperty("rejectedSpans")&&(m.rejectedSpans="number"==typeof a.rejectedSpans?c.longs===String?String(a.rejectedSpans):a.rejectedSpans:c.longs===String?v.Long.prototype.toString.call(a.rejectedSpans):c.longs===Number?new v.LongBits(a.rejectedSpans.low>>>0,a.rejectedSpans.high>>>0).toNumber():a.rejectedSpans),null!=a.errorMessage&&a.hasOwnProperty("errorMessage")&&(m.errorMessage=a.errorMessage),m},i.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},i.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},i}(),_),P}(),O.metrics=function(){var _,P={};return P.v1=((_={}).MetricsService=function(){function i(r,a,c){n.rpc.Service.call(this,r,a,c)}return(i.prototype=Object.create(n.rpc.Service.prototype)).constructor=i,i.create=function(a,c,m){return new this(a,c,m)},Object.defineProperty(i.prototype.export=function r(a,c){return this.rpcCall(r,S.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,S.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,a,c)},"name",{value:"Export"}),i}(),_.ExportMetricsServiceRequest=function(){function i(r){if(this.resourceMetrics=[],r)for(var a=Object.keys(r),c=0;c<a.length;++c)null!=r[a[c]]&&(this[a[c]]=r[a[c]])}return i.prototype.resourceMetrics=v.emptyArray,i.create=function(a){return new i(a)},i.encode=function(a,c){if(c||(c=d.create()),null!=a.resourceMetrics&&a.resourceMetrics.length)for(var m=0;m<a.resourceMetrics.length;++m)S.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(a.resourceMetrics[m],c.uint32(10).fork()).ldelim();return c},i.encodeDelimited=function(a,c){return this.encode(a,c).ldelim()},i.decode=function(a,c){a instanceof l||(a=l.create(a));for(var m=void 0===c?a.len:a.pos+c,M=new S.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;a.pos<m;){var D=a.uint32();D>>>3==1?(M.resourceMetrics&&M.resourceMetrics.length||(M.resourceMetrics=[]),M.resourceMetrics.push(S.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(a,a.uint32()))):a.skipType(7&D)}return M},i.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},i.verify=function(a){if("object"!=typeof a||null===a)return"object expected";if(null!=a.resourceMetrics&&a.hasOwnProperty("resourceMetrics")){if(!Array.isArray(a.resourceMetrics))return"resourceMetrics: array expected";for(var c=0;c<a.resourceMetrics.length;++c){var m=S.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(a.resourceMetrics[c]);if(m)return"resourceMetrics."+m}}return null},i.fromObject=function(a){if(a instanceof S.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return a;var c=new S.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(a.resourceMetrics){if(!Array.isArray(a.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");c.resourceMetrics=[];for(var m=0;m<a.resourceMetrics.length;++m){if("object"!=typeof a.resourceMetrics[m])throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");c.resourceMetrics[m]=S.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(a.resourceMetrics[m])}}return c},i.toObject=function(a,c){c||(c={});var m={};if((c.arrays||c.defaults)&&(m.resourceMetrics=[]),a.resourceMetrics&&a.resourceMetrics.length){m.resourceMetrics=[];for(var M=0;M<a.resourceMetrics.length;++M)m.resourceMetrics[M]=S.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(a.resourceMetrics[M],c)}return m},i.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},i.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},i}(),_.ExportMetricsServiceResponse=function(){function i(r){if(r)for(var a=Object.keys(r),c=0;c<a.length;++c)null!=r[a[c]]&&(this[a[c]]=r[a[c]])}return i.prototype.partialSuccess=null,i.create=function(a){return new i(a)},i.encode=function(a,c){return c||(c=d.create()),null!=a.partialSuccess&&Object.hasOwnProperty.call(a,"partialSuccess")&&S.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(a.partialSuccess,c.uint32(10).fork()).ldelim(),c},i.encodeDelimited=function(a,c){return this.encode(a,c).ldelim()},i.decode=function(a,c){a instanceof l||(a=l.create(a));for(var m=void 0===c?a.len:a.pos+c,M=new S.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;a.pos<m;){var D=a.uint32();D>>>3==1?M.partialSuccess=S.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(a,a.uint32()):a.skipType(7&D)}return M},i.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},i.verify=function(a){if("object"!=typeof a||null===a)return"object expected";if(null!=a.partialSuccess&&a.hasOwnProperty("partialSuccess")){var c=S.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(a.partialSuccess);if(c)return"partialSuccess."+c}return null},i.fromObject=function(a){if(a instanceof S.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return a;var c=new S.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(null!=a.partialSuccess){if("object"!=typeof a.partialSuccess)throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");c.partialSuccess=S.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(a.partialSuccess)}return c},i.toObject=function(a,c){c||(c={});var m={};return c.defaults&&(m.partialSuccess=null),null!=a.partialSuccess&&a.hasOwnProperty("partialSuccess")&&(m.partialSuccess=S.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(a.partialSuccess,c)),m},i.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},i.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},i}(),_.ExportMetricsPartialSuccess=function(){function i(r){if(r)for(var a=Object.keys(r),c=0;c<a.length;++c)null!=r[a[c]]&&(this[a[c]]=r[a[c]])}return i.prototype.rejectedDataPoints=null,i.prototype.errorMessage=null,i.create=function(a){return new i(a)},i.encode=function(a,c){return c||(c=d.create()),null!=a.rejectedDataPoints&&Object.hasOwnProperty.call(a,"rejectedDataPoints")&&c.uint32(8).int64(a.rejectedDataPoints),null!=a.errorMessage&&Object.hasOwnProperty.call(a,"errorMessage")&&c.uint32(18).string(a.errorMessage),c},i.encodeDelimited=function(a,c){return this.encode(a,c).ldelim()},i.decode=function(a,c){a instanceof l||(a=l.create(a));for(var m=void 0===c?a.len:a.pos+c,M=new S.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;a.pos<m;){var D=a.uint32();switch(D>>>3){case 1:M.rejectedDataPoints=a.int64();break;case 2:M.errorMessage=a.string();break;default:a.skipType(7&D)}}return M},i.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},i.verify=function(a){return"object"!=typeof a||null===a?"object expected":null==a.rejectedDataPoints||!a.hasOwnProperty("rejectedDataPoints")||v.isInteger(a.rejectedDataPoints)||a.rejectedDataPoints&&v.isInteger(a.rejectedDataPoints.low)&&v.isInteger(a.rejectedDataPoints.high)?null!=a.errorMessage&&a.hasOwnProperty("errorMessage")&&!v.isString(a.errorMessage)?"errorMessage: string expected":null:"rejectedDataPoints: integer|Long expected"},i.fromObject=function(a){if(a instanceof S.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return a;var c=new S.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return null!=a.rejectedDataPoints&&(v.Long?(c.rejectedDataPoints=v.Long.fromValue(a.rejectedDataPoints)).unsigned=!1:"string"==typeof a.rejectedDataPoints?c.rejectedDataPoints=parseInt(a.rejectedDataPoints,10):"number"==typeof a.rejectedDataPoints?c.rejectedDataPoints=a.rejectedDataPoints:"object"==typeof a.rejectedDataPoints&&(c.rejectedDataPoints=new v.LongBits(a.rejectedDataPoints.low>>>0,a.rejectedDataPoints.high>>>0).toNumber())),null!=a.errorMessage&&(c.errorMessage=String(a.errorMessage)),c},i.toObject=function(a,c){c||(c={});var m={};if(c.defaults){if(v.Long){var M=new v.Long(0,0,!1);m.rejectedDataPoints=c.longs===String?M.toString():c.longs===Number?M.toNumber():M}else m.rejectedDataPoints=c.longs===String?"0":0;m.errorMessage=""}return null!=a.rejectedDataPoints&&a.hasOwnProperty("rejectedDataPoints")&&(m.rejectedDataPoints="number"==typeof a.rejectedDataPoints?c.longs===String?String(a.rejectedDataPoints):a.rejectedDataPoints:c.longs===String?v.Long.prototype.toString.call(a.rejectedDataPoints):c.longs===Number?new v.LongBits(a.rejectedDataPoints.low>>>0,a.rejectedDataPoints.high>>>0).toNumber():a.rejectedDataPoints),null!=a.errorMessage&&a.hasOwnProperty("errorMessage")&&(m.errorMessage=a.errorMessage),m},i.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},i.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},i}(),_),P}(),O.logs=function(){var _,P={};return P.v1=((_={}).LogsService=function(){function i(r,a,c){n.rpc.Service.call(this,r,a,c)}return(i.prototype=Object.create(n.rpc.Service.prototype)).constructor=i,i.create=function(a,c,m){return new this(a,c,m)},Object.defineProperty(i.prototype.export=function r(a,c){return this.rpcCall(r,S.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,S.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,a,c)},"name",{value:"Export"}),i}(),_.ExportLogsServiceRequest=function(){function i(r){if(this.resourceLogs=[],r)for(var a=Object.keys(r),c=0;c<a.length;++c)null!=r[a[c]]&&(this[a[c]]=r[a[c]])}return i.prototype.resourceLogs=v.emptyArray,i.create=function(a){return new i(a)},i.encode=function(a,c){if(c||(c=d.create()),null!=a.resourceLogs&&a.resourceLogs.length)for(var m=0;m<a.resourceLogs.length;++m)S.opentelemetry.proto.logs.v1.ResourceLogs.encode(a.resourceLogs[m],c.uint32(10).fork()).ldelim();return c},i.encodeDelimited=function(a,c){return this.encode(a,c).ldelim()},i.decode=function(a,c){a instanceof l||(a=l.create(a));for(var m=void 0===c?a.len:a.pos+c,M=new S.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;a.pos<m;){var D=a.uint32();D>>>3==1?(M.resourceLogs&&M.resourceLogs.length||(M.resourceLogs=[]),M.resourceLogs.push(S.opentelemetry.proto.logs.v1.ResourceLogs.decode(a,a.uint32()))):a.skipType(7&D)}return M},i.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},i.verify=function(a){if("object"!=typeof a||null===a)return"object expected";if(null!=a.resourceLogs&&a.hasOwnProperty("resourceLogs")){if(!Array.isArray(a.resourceLogs))return"resourceLogs: array expected";for(var c=0;c<a.resourceLogs.length;++c){var m=S.opentelemetry.proto.logs.v1.ResourceLogs.verify(a.resourceLogs[c]);if(m)return"resourceLogs."+m}}return null},i.fromObject=function(a){if(a instanceof S.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return a;var c=new S.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(a.resourceLogs){if(!Array.isArray(a.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");c.resourceLogs=[];for(var m=0;m<a.resourceLogs.length;++m){if("object"!=typeof a.resourceLogs[m])throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");c.resourceLogs[m]=S.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(a.resourceLogs[m])}}return c},i.toObject=function(a,c){c||(c={});var m={};if((c.arrays||c.defaults)&&(m.resourceLogs=[]),a.resourceLogs&&a.resourceLogs.length){m.resourceLogs=[];for(var M=0;M<a.resourceLogs.length;++M)m.resourceLogs[M]=S.opentelemetry.proto.logs.v1.ResourceLogs.toObject(a.resourceLogs[M],c)}return m},i.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},i.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},i}(),_.ExportLogsServiceResponse=function(){function i(r){if(r)for(var a=Object.keys(r),c=0;c<a.length;++c)null!=r[a[c]]&&(this[a[c]]=r[a[c]])}return i.prototype.partialSuccess=null,i.create=function(a){return new i(a)},i.encode=function(a,c){return c||(c=d.create()),null!=a.partialSuccess&&Object.hasOwnProperty.call(a,"partialSuccess")&&S.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(a.partialSuccess,c.uint32(10).fork()).ldelim(),c},i.encodeDelimited=function(a,c){return this.encode(a,c).ldelim()},i.decode=function(a,c){a instanceof l||(a=l.create(a));for(var m=void 0===c?a.len:a.pos+c,M=new S.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;a.pos<m;){var D=a.uint32();D>>>3==1?M.partialSuccess=S.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(a,a.uint32()):a.skipType(7&D)}return M},i.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},i.verify=function(a){if("object"!=typeof a||null===a)return"object expected";if(null!=a.partialSuccess&&a.hasOwnProperty("partialSuccess")){var c=S.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(a.partialSuccess);if(c)return"partialSuccess."+c}return null},i.fromObject=function(a){if(a instanceof S.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return a;var c=new S.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(null!=a.partialSuccess){if("object"!=typeof a.partialSuccess)throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");c.partialSuccess=S.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(a.partialSuccess)}return c},i.toObject=function(a,c){c||(c={});var m={};return c.defaults&&(m.partialSuccess=null),null!=a.partialSuccess&&a.hasOwnProperty("partialSuccess")&&(m.partialSuccess=S.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(a.partialSuccess,c)),m},i.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},i.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},i}(),_.ExportLogsPartialSuccess=function(){function i(r){if(r)for(var a=Object.keys(r),c=0;c<a.length;++c)null!=r[a[c]]&&(this[a[c]]=r[a[c]])}return i.prototype.rejectedLogRecords=null,i.prototype.errorMessage=null,i.create=function(a){return new i(a)},i.encode=function(a,c){return c||(c=d.create()),null!=a.rejectedLogRecords&&Object.hasOwnProperty.call(a,"rejectedLogRecords")&&c.uint32(8).int64(a.rejectedLogRecords),null!=a.errorMessage&&Object.hasOwnProperty.call(a,"errorMessage")&&c.uint32(18).string(a.errorMessage),c},i.encodeDelimited=function(a,c){return this.encode(a,c).ldelim()},i.decode=function(a,c){a instanceof l||(a=l.create(a));for(var m=void 0===c?a.len:a.pos+c,M=new S.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;a.pos<m;){var D=a.uint32();switch(D>>>3){case 1:M.rejectedLogRecords=a.int64();break;case 2:M.errorMessage=a.string();break;default:a.skipType(7&D)}}return M},i.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},i.verify=function(a){return"object"!=typeof a||null===a?"object expected":null==a.rejectedLogRecords||!a.hasOwnProperty("rejectedLogRecords")||v.isInteger(a.rejectedLogRecords)||a.rejectedLogRecords&&v.isInteger(a.rejectedLogRecords.low)&&v.isInteger(a.rejectedLogRecords.high)?null!=a.errorMessage&&a.hasOwnProperty("errorMessage")&&!v.isString(a.errorMessage)?"errorMessage: string expected":null:"rejectedLogRecords: integer|Long expected"},i.fromObject=function(a){if(a instanceof S.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return a;var c=new S.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return null!=a.rejectedLogRecords&&(v.Long?(c.rejectedLogRecords=v.Long.fromValue(a.rejectedLogRecords)).unsigned=!1:"string"==typeof a.rejectedLogRecords?c.rejectedLogRecords=parseInt(a.rejectedLogRecords,10):"number"==typeof a.rejectedLogRecords?c.rejectedLogRecords=a.rejectedLogRecords:"object"==typeof a.rejectedLogRecords&&(c.rejectedLogRecords=new v.LongBits(a.rejectedLogRecords.low>>>0,a.rejectedLogRecords.high>>>0).toNumber())),null!=a.errorMessage&&(c.errorMessage=String(a.errorMessage)),c},i.toObject=function(a,c){c||(c={});var m={};if(c.defaults){if(v.Long){var M=new v.Long(0,0,!1);m.rejectedLogRecords=c.longs===String?M.toString():c.longs===Number?M.toNumber():M}else m.rejectedLogRecords=c.longs===String?"0":0;m.errorMessage=""}return null!=a.rejectedLogRecords&&a.hasOwnProperty("rejectedLogRecords")&&(m.rejectedLogRecords="number"==typeof a.rejectedLogRecords?c.longs===String?String(a.rejectedLogRecords):a.rejectedLogRecords:c.longs===String?v.Long.prototype.toString.call(a.rejectedLogRecords):c.longs===Number?new v.LongBits(a.rejectedLogRecords.low>>>0,a.rejectedLogRecords.high>>>0).toNumber():a.rejectedLogRecords),null!=a.errorMessage&&a.hasOwnProperty("errorMessage")&&(m.errorMessage=a.errorMessage),m},i.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},i.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},i}(),_),P}(),O}(),f.metrics=function(){var O={};return O.v1=function(){var _,i,P={};return P.MetricsData=function(){function _(i){if(this.resourceMetrics=[],i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.resourceMetrics=v.emptyArray,_.create=function(r){return new _(r)},_.encode=function(r,a){if(a||(a=d.create()),null!=r.resourceMetrics&&r.resourceMetrics.length)for(var c=0;c<r.resourceMetrics.length;++c)S.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(r.resourceMetrics[c],a.uint32(10).fork()).ldelim();return a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.metrics.v1.MetricsData;r.pos<c;){var M=r.uint32();M>>>3==1?(m.resourceMetrics&&m.resourceMetrics.length||(m.resourceMetrics=[]),m.resourceMetrics.push(S.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(r,r.uint32()))):r.skipType(7&M)}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.resourceMetrics&&r.hasOwnProperty("resourceMetrics")){if(!Array.isArray(r.resourceMetrics))return"resourceMetrics: array expected";for(var a=0;a<r.resourceMetrics.length;++a){var c=S.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(r.resourceMetrics[a]);if(c)return"resourceMetrics."+c}}return null},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.metrics.v1.MetricsData)return r;var a=new S.opentelemetry.proto.metrics.v1.MetricsData;if(r.resourceMetrics){if(!Array.isArray(r.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");a.resourceMetrics=[];for(var c=0;c<r.resourceMetrics.length;++c){if("object"!=typeof r.resourceMetrics[c])throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");a.resourceMetrics[c]=S.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(r.resourceMetrics[c])}}return a},_.toObject=function(r,a){a||(a={});var c={};if((a.arrays||a.defaults)&&(c.resourceMetrics=[]),r.resourceMetrics&&r.resourceMetrics.length){c.resourceMetrics=[];for(var m=0;m<r.resourceMetrics.length;++m)c.resourceMetrics[m]=S.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(r.resourceMetrics[m],a)}return c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.MetricsData"},_}(),P.ResourceMetrics=function(){function _(i){if(this.scopeMetrics=[],i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.resource=null,_.prototype.scopeMetrics=v.emptyArray,_.prototype.schemaUrl=null,_.create=function(r){return new _(r)},_.encode=function(r,a){if(a||(a=d.create()),null!=r.resource&&Object.hasOwnProperty.call(r,"resource")&&S.opentelemetry.proto.resource.v1.Resource.encode(r.resource,a.uint32(10).fork()).ldelim(),null!=r.scopeMetrics&&r.scopeMetrics.length)for(var c=0;c<r.scopeMetrics.length;++c)S.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(r.scopeMetrics[c],a.uint32(18).fork()).ldelim();return null!=r.schemaUrl&&Object.hasOwnProperty.call(r,"schemaUrl")&&a.uint32(26).string(r.schemaUrl),a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.metrics.v1.ResourceMetrics;r.pos<c;){var M=r.uint32();switch(M>>>3){case 1:m.resource=S.opentelemetry.proto.resource.v1.Resource.decode(r,r.uint32());break;case 2:m.scopeMetrics&&m.scopeMetrics.length||(m.scopeMetrics=[]),m.scopeMetrics.push(S.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(r,r.uint32()));break;case 3:m.schemaUrl=r.string();break;default:r.skipType(7&M)}}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.resource&&r.hasOwnProperty("resource")&&(a=S.opentelemetry.proto.resource.v1.Resource.verify(r.resource)))return"resource."+a;if(null!=r.scopeMetrics&&r.hasOwnProperty("scopeMetrics")){if(!Array.isArray(r.scopeMetrics))return"scopeMetrics: array expected";for(var c=0;c<r.scopeMetrics.length;++c){var a;if(a=S.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(r.scopeMetrics[c]))return"scopeMetrics."+a}}return null!=r.schemaUrl&&r.hasOwnProperty("schemaUrl")&&!v.isString(r.schemaUrl)?"schemaUrl: string expected":null},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.metrics.v1.ResourceMetrics)return r;var a=new S.opentelemetry.proto.metrics.v1.ResourceMetrics;if(null!=r.resource){if("object"!=typeof r.resource)throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");a.resource=S.opentelemetry.proto.resource.v1.Resource.fromObject(r.resource)}if(r.scopeMetrics){if(!Array.isArray(r.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");a.scopeMetrics=[];for(var c=0;c<r.scopeMetrics.length;++c){if("object"!=typeof r.scopeMetrics[c])throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");a.scopeMetrics[c]=S.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(r.scopeMetrics[c])}}return null!=r.schemaUrl&&(a.schemaUrl=String(r.schemaUrl)),a},_.toObject=function(r,a){a||(a={});var c={};if((a.arrays||a.defaults)&&(c.scopeMetrics=[]),a.defaults&&(c.resource=null,c.schemaUrl=""),null!=r.resource&&r.hasOwnProperty("resource")&&(c.resource=S.opentelemetry.proto.resource.v1.Resource.toObject(r.resource,a)),r.scopeMetrics&&r.scopeMetrics.length){c.scopeMetrics=[];for(var m=0;m<r.scopeMetrics.length;++m)c.scopeMetrics[m]=S.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(r.scopeMetrics[m],a)}return null!=r.schemaUrl&&r.hasOwnProperty("schemaUrl")&&(c.schemaUrl=r.schemaUrl),c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},_}(),P.ScopeMetrics=function(){function _(i){if(this.metrics=[],i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.scope=null,_.prototype.metrics=v.emptyArray,_.prototype.schemaUrl=null,_.create=function(r){return new _(r)},_.encode=function(r,a){if(a||(a=d.create()),null!=r.scope&&Object.hasOwnProperty.call(r,"scope")&&S.opentelemetry.proto.common.v1.InstrumentationScope.encode(r.scope,a.uint32(10).fork()).ldelim(),null!=r.metrics&&r.metrics.length)for(var c=0;c<r.metrics.length;++c)S.opentelemetry.proto.metrics.v1.Metric.encode(r.metrics[c],a.uint32(18).fork()).ldelim();return null!=r.schemaUrl&&Object.hasOwnProperty.call(r,"schemaUrl")&&a.uint32(26).string(r.schemaUrl),a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.metrics.v1.ScopeMetrics;r.pos<c;){var M=r.uint32();switch(M>>>3){case 1:m.scope=S.opentelemetry.proto.common.v1.InstrumentationScope.decode(r,r.uint32());break;case 2:m.metrics&&m.metrics.length||(m.metrics=[]),m.metrics.push(S.opentelemetry.proto.metrics.v1.Metric.decode(r,r.uint32()));break;case 3:m.schemaUrl=r.string();break;default:r.skipType(7&M)}}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.scope&&r.hasOwnProperty("scope")&&(a=S.opentelemetry.proto.common.v1.InstrumentationScope.verify(r.scope)))return"scope."+a;if(null!=r.metrics&&r.hasOwnProperty("metrics")){if(!Array.isArray(r.metrics))return"metrics: array expected";for(var c=0;c<r.metrics.length;++c){var a;if(a=S.opentelemetry.proto.metrics.v1.Metric.verify(r.metrics[c]))return"metrics."+a}}return null!=r.schemaUrl&&r.hasOwnProperty("schemaUrl")&&!v.isString(r.schemaUrl)?"schemaUrl: string expected":null},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.metrics.v1.ScopeMetrics)return r;var a=new S.opentelemetry.proto.metrics.v1.ScopeMetrics;if(null!=r.scope){if("object"!=typeof r.scope)throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");a.scope=S.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(r.scope)}if(r.metrics){if(!Array.isArray(r.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");a.metrics=[];for(var c=0;c<r.metrics.length;++c){if("object"!=typeof r.metrics[c])throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");a.metrics[c]=S.opentelemetry.proto.metrics.v1.Metric.fromObject(r.metrics[c])}}return null!=r.schemaUrl&&(a.schemaUrl=String(r.schemaUrl)),a},_.toObject=function(r,a){a||(a={});var c={};if((a.arrays||a.defaults)&&(c.metrics=[]),a.defaults&&(c.scope=null,c.schemaUrl=""),null!=r.scope&&r.hasOwnProperty("scope")&&(c.scope=S.opentelemetry.proto.common.v1.InstrumentationScope.toObject(r.scope,a)),r.metrics&&r.metrics.length){c.metrics=[];for(var m=0;m<r.metrics.length;++m)c.metrics[m]=S.opentelemetry.proto.metrics.v1.Metric.toObject(r.metrics[m],a)}return null!=r.schemaUrl&&r.hasOwnProperty("schemaUrl")&&(c.schemaUrl=r.schemaUrl),c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},_}(),P.Metric=function(){function _(r){if(r)for(var a=Object.keys(r),c=0;c<a.length;++c)null!=r[a[c]]&&(this[a[c]]=r[a[c]])}var i;return _.prototype.name=null,_.prototype.description=null,_.prototype.unit=null,_.prototype.gauge=null,_.prototype.sum=null,_.prototype.histogram=null,_.prototype.exponentialHistogram=null,_.prototype.summary=null,Object.defineProperty(_.prototype,"data",{get:v.oneOfGetter(i=["gauge","sum","histogram","exponentialHistogram","summary"]),set:v.oneOfSetter(i)}),_.create=function(a){return new _(a)},_.encode=function(a,c){return c||(c=d.create()),null!=a.name&&Object.hasOwnProperty.call(a,"name")&&c.uint32(10).string(a.name),null!=a.description&&Object.hasOwnProperty.call(a,"description")&&c.uint32(18).string(a.description),null!=a.unit&&Object.hasOwnProperty.call(a,"unit")&&c.uint32(26).string(a.unit),null!=a.gauge&&Object.hasOwnProperty.call(a,"gauge")&&S.opentelemetry.proto.metrics.v1.Gauge.encode(a.gauge,c.uint32(42).fork()).ldelim(),null!=a.sum&&Object.hasOwnProperty.call(a,"sum")&&S.opentelemetry.proto.metrics.v1.Sum.encode(a.sum,c.uint32(58).fork()).ldelim(),null!=a.histogram&&Object.hasOwnProperty.call(a,"histogram")&&S.opentelemetry.proto.metrics.v1.Histogram.encode(a.histogram,c.uint32(74).fork()).ldelim(),null!=a.exponentialHistogram&&Object.hasOwnProperty.call(a,"exponentialHistogram")&&S.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(a.exponentialHistogram,c.uint32(82).fork()).ldelim(),null!=a.summary&&Object.hasOwnProperty.call(a,"summary")&&S.opentelemetry.proto.metrics.v1.Summary.encode(a.summary,c.uint32(90).fork()).ldelim(),c},_.encodeDelimited=function(a,c){return this.encode(a,c).ldelim()},_.decode=function(a,c){a instanceof l||(a=l.create(a));for(var m=void 0===c?a.len:a.pos+c,M=new S.opentelemetry.proto.metrics.v1.Metric;a.pos<m;){var D=a.uint32();switch(D>>>3){case 1:M.name=a.string();break;case 2:M.description=a.string();break;case 3:M.unit=a.string();break;case 5:M.gauge=S.opentelemetry.proto.metrics.v1.Gauge.decode(a,a.uint32());break;case 7:M.sum=S.opentelemetry.proto.metrics.v1.Sum.decode(a,a.uint32());break;case 9:M.histogram=S.opentelemetry.proto.metrics.v1.Histogram.decode(a,a.uint32());break;case 10:M.exponentialHistogram=S.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(a,a.uint32());break;case 11:M.summary=S.opentelemetry.proto.metrics.v1.Summary.decode(a,a.uint32());break;default:a.skipType(7&D)}}return M},_.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},_.verify=function(a){if("object"!=typeof a||null===a)return"object expected";var c={};if(null!=a.name&&a.hasOwnProperty("name")&&!v.isString(a.name))return"name: string expected";if(null!=a.description&&a.hasOwnProperty("description")&&!v.isString(a.description))return"description: string expected";if(null!=a.unit&&a.hasOwnProperty("unit")&&!v.isString(a.unit))return"unit: string expected";if(null!=a.gauge&&a.hasOwnProperty("gauge")&&(c.data=1,m=S.opentelemetry.proto.metrics.v1.Gauge.verify(a.gauge)))return"gauge."+m;if(null!=a.sum&&a.hasOwnProperty("sum")){if(1===c.data)return"data: multiple values";if(c.data=1,m=S.opentelemetry.proto.metrics.v1.Sum.verify(a.sum))return"sum."+m}if(null!=a.histogram&&a.hasOwnProperty("histogram")){if(1===c.data)return"data: multiple values";if(c.data=1,m=S.opentelemetry.proto.metrics.v1.Histogram.verify(a.histogram))return"histogram."+m}if(null!=a.exponentialHistogram&&a.hasOwnProperty("exponentialHistogram")){if(1===c.data)return"data: multiple values";if(c.data=1,m=S.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(a.exponentialHistogram))return"exponentialHistogram."+m}if(null!=a.summary&&a.hasOwnProperty("summary")){if(1===c.data)return"data: multiple values";var m;if(c.data=1,m=S.opentelemetry.proto.metrics.v1.Summary.verify(a.summary))return"summary."+m}return null},_.fromObject=function(a){if(a instanceof S.opentelemetry.proto.metrics.v1.Metric)return a;var c=new S.opentelemetry.proto.metrics.v1.Metric;if(null!=a.name&&(c.name=String(a.name)),null!=a.description&&(c.description=String(a.description)),null!=a.unit&&(c.unit=String(a.unit)),null!=a.gauge){if("object"!=typeof a.gauge)throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");c.gauge=S.opentelemetry.proto.metrics.v1.Gauge.fromObject(a.gauge)}if(null!=a.sum){if("object"!=typeof a.sum)throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");c.sum=S.opentelemetry.proto.metrics.v1.Sum.fromObject(a.sum)}if(null!=a.histogram){if("object"!=typeof a.histogram)throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");c.histogram=S.opentelemetry.proto.metrics.v1.Histogram.fromObject(a.histogram)}if(null!=a.exponentialHistogram){if("object"!=typeof a.exponentialHistogram)throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");c.exponentialHistogram=S.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(a.exponentialHistogram)}if(null!=a.summary){if("object"!=typeof a.summary)throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");c.summary=S.opentelemetry.proto.metrics.v1.Summary.fromObject(a.summary)}return c},_.toObject=function(a,c){c||(c={});var m={};return c.defaults&&(m.name="",m.description="",m.unit=""),null!=a.name&&a.hasOwnProperty("name")&&(m.name=a.name),null!=a.description&&a.hasOwnProperty("description")&&(m.description=a.description),null!=a.unit&&a.hasOwnProperty("unit")&&(m.unit=a.unit),null!=a.gauge&&a.hasOwnProperty("gauge")&&(m.gauge=S.opentelemetry.proto.metrics.v1.Gauge.toObject(a.gauge,c),c.oneofs&&(m.data="gauge")),null!=a.sum&&a.hasOwnProperty("sum")&&(m.sum=S.opentelemetry.proto.metrics.v1.Sum.toObject(a.sum,c),c.oneofs&&(m.data="sum")),null!=a.histogram&&a.hasOwnProperty("histogram")&&(m.histogram=S.opentelemetry.proto.metrics.v1.Histogram.toObject(a.histogram,c),c.oneofs&&(m.data="histogram")),null!=a.exponentialHistogram&&a.hasOwnProperty("exponentialHistogram")&&(m.exponentialHistogram=S.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(a.exponentialHistogram,c),c.oneofs&&(m.data="exponentialHistogram")),null!=a.summary&&a.hasOwnProperty("summary")&&(m.summary=S.opentelemetry.proto.metrics.v1.Summary.toObject(a.summary,c),c.oneofs&&(m.data="summary")),m},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.metrics.v1.Metric"},_}(),P.Gauge=function(){function _(i){if(this.dataPoints=[],i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.dataPoints=v.emptyArray,_.create=function(r){return new _(r)},_.encode=function(r,a){if(a||(a=d.create()),null!=r.dataPoints&&r.dataPoints.length)for(var c=0;c<r.dataPoints.length;++c)S.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(r.dataPoints[c],a.uint32(10).fork()).ldelim();return a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.metrics.v1.Gauge;r.pos<c;){var M=r.uint32();M>>>3==1?(m.dataPoints&&m.dataPoints.length||(m.dataPoints=[]),m.dataPoints.push(S.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(r,r.uint32()))):r.skipType(7&M)}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.dataPoints&&r.hasOwnProperty("dataPoints")){if(!Array.isArray(r.dataPoints))return"dataPoints: array expected";for(var a=0;a<r.dataPoints.length;++a){var c=S.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(r.dataPoints[a]);if(c)return"dataPoints."+c}}return null},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.metrics.v1.Gauge)return r;var a=new S.opentelemetry.proto.metrics.v1.Gauge;if(r.dataPoints){if(!Array.isArray(r.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");a.dataPoints=[];for(var c=0;c<r.dataPoints.length;++c){if("object"!=typeof r.dataPoints[c])throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");a.dataPoints[c]=S.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(r.dataPoints[c])}}return a},_.toObject=function(r,a){a||(a={});var c={};if((a.arrays||a.defaults)&&(c.dataPoints=[]),r.dataPoints&&r.dataPoints.length){c.dataPoints=[];for(var m=0;m<r.dataPoints.length;++m)c.dataPoints[m]=S.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(r.dataPoints[m],a)}return c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Gauge"},_}(),P.Sum=function(){function _(i){if(this.dataPoints=[],i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.dataPoints=v.emptyArray,_.prototype.aggregationTemporality=null,_.prototype.isMonotonic=null,_.create=function(r){return new _(r)},_.encode=function(r,a){if(a||(a=d.create()),null!=r.dataPoints&&r.dataPoints.length)for(var c=0;c<r.dataPoints.length;++c)S.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(r.dataPoints[c],a.uint32(10).fork()).ldelim();return null!=r.aggregationTemporality&&Object.hasOwnProperty.call(r,"aggregationTemporality")&&a.uint32(16).int32(r.aggregationTemporality),null!=r.isMonotonic&&Object.hasOwnProperty.call(r,"isMonotonic")&&a.uint32(24).bool(r.isMonotonic),a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.metrics.v1.Sum;r.pos<c;){var M=r.uint32();switch(M>>>3){case 1:m.dataPoints&&m.dataPoints.length||(m.dataPoints=[]),m.dataPoints.push(S.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(r,r.uint32()));break;case 2:m.aggregationTemporality=r.int32();break;case 3:m.isMonotonic=r.bool();break;default:r.skipType(7&M)}}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.dataPoints&&r.hasOwnProperty("dataPoints")){if(!Array.isArray(r.dataPoints))return"dataPoints: array expected";for(var a=0;a<r.dataPoints.length;++a){var c=S.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(r.dataPoints[a]);if(c)return"dataPoints."+c}}if(null!=r.aggregationTemporality&&r.hasOwnProperty("aggregationTemporality"))switch(r.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:}return null!=r.isMonotonic&&r.hasOwnProperty("isMonotonic")&&"boolean"!=typeof r.isMonotonic?"isMonotonic: boolean expected":null},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.metrics.v1.Sum)return r;var a=new S.opentelemetry.proto.metrics.v1.Sum;if(r.dataPoints){if(!Array.isArray(r.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");a.dataPoints=[];for(var c=0;c<r.dataPoints.length;++c){if("object"!=typeof r.dataPoints[c])throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");a.dataPoints[c]=S.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(r.dataPoints[c])}}switch(r.aggregationTemporality){default:if("number"==typeof r.aggregationTemporality){a.aggregationTemporality=r.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:a.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:a.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:a.aggregationTemporality=2}return null!=r.isMonotonic&&(a.isMonotonic=!!r.isMonotonic),a},_.toObject=function(r,a){a||(a={});var c={};if((a.arrays||a.defaults)&&(c.dataPoints=[]),a.defaults&&(c.aggregationTemporality=a.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,c.isMonotonic=!1),r.dataPoints&&r.dataPoints.length){c.dataPoints=[];for(var m=0;m<r.dataPoints.length;++m)c.dataPoints[m]=S.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(r.dataPoints[m],a)}return null!=r.aggregationTemporality&&r.hasOwnProperty("aggregationTemporality")&&(c.aggregationTemporality=a.enums===String?void 0===S.opentelemetry.proto.metrics.v1.AggregationTemporality[r.aggregationTemporality]?r.aggregationTemporality:S.opentelemetry.proto.metrics.v1.AggregationTemporality[r.aggregationTemporality]:r.aggregationTemporality),null!=r.isMonotonic&&r.hasOwnProperty("isMonotonic")&&(c.isMonotonic=r.isMonotonic),c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Sum"},_}(),P.Histogram=function(){function _(i){if(this.dataPoints=[],i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.dataPoints=v.emptyArray,_.prototype.aggregationTemporality=null,_.create=function(r){return new _(r)},_.encode=function(r,a){if(a||(a=d.create()),null!=r.dataPoints&&r.dataPoints.length)for(var c=0;c<r.dataPoints.length;++c)S.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(r.dataPoints[c],a.uint32(10).fork()).ldelim();return null!=r.aggregationTemporality&&Object.hasOwnProperty.call(r,"aggregationTemporality")&&a.uint32(16).int32(r.aggregationTemporality),a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.metrics.v1.Histogram;r.pos<c;){var M=r.uint32();switch(M>>>3){case 1:m.dataPoints&&m.dataPoints.length||(m.dataPoints=[]),m.dataPoints.push(S.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(r,r.uint32()));break;case 2:m.aggregationTemporality=r.int32();break;default:r.skipType(7&M)}}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.dataPoints&&r.hasOwnProperty("dataPoints")){if(!Array.isArray(r.dataPoints))return"dataPoints: array expected";for(var a=0;a<r.dataPoints.length;++a){var c=S.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(r.dataPoints[a]);if(c)return"dataPoints."+c}}if(null!=r.aggregationTemporality&&r.hasOwnProperty("aggregationTemporality"))switch(r.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:}return null},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.metrics.v1.Histogram)return r;var a=new S.opentelemetry.proto.metrics.v1.Histogram;if(r.dataPoints){if(!Array.isArray(r.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");a.dataPoints=[];for(var c=0;c<r.dataPoints.length;++c){if("object"!=typeof r.dataPoints[c])throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");a.dataPoints[c]=S.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(r.dataPoints[c])}}switch(r.aggregationTemporality){default:if("number"==typeof r.aggregationTemporality){a.aggregationTemporality=r.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:a.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:a.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:a.aggregationTemporality=2}return a},_.toObject=function(r,a){a||(a={});var c={};if((a.arrays||a.defaults)&&(c.dataPoints=[]),a.defaults&&(c.aggregationTemporality=a.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),r.dataPoints&&r.dataPoints.length){c.dataPoints=[];for(var m=0;m<r.dataPoints.length;++m)c.dataPoints[m]=S.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(r.dataPoints[m],a)}return null!=r.aggregationTemporality&&r.hasOwnProperty("aggregationTemporality")&&(c.aggregationTemporality=a.enums===String?void 0===S.opentelemetry.proto.metrics.v1.AggregationTemporality[r.aggregationTemporality]?r.aggregationTemporality:S.opentelemetry.proto.metrics.v1.AggregationTemporality[r.aggregationTemporality]:r.aggregationTemporality),c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Histogram"},_}(),P.ExponentialHistogram=function(){function _(i){if(this.dataPoints=[],i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.dataPoints=v.emptyArray,_.prototype.aggregationTemporality=null,_.create=function(r){return new _(r)},_.encode=function(r,a){if(a||(a=d.create()),null!=r.dataPoints&&r.dataPoints.length)for(var c=0;c<r.dataPoints.length;++c)S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(r.dataPoints[c],a.uint32(10).fork()).ldelim();return null!=r.aggregationTemporality&&Object.hasOwnProperty.call(r,"aggregationTemporality")&&a.uint32(16).int32(r.aggregationTemporality),a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.metrics.v1.ExponentialHistogram;r.pos<c;){var M=r.uint32();switch(M>>>3){case 1:m.dataPoints&&m.dataPoints.length||(m.dataPoints=[]),m.dataPoints.push(S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(r,r.uint32()));break;case 2:m.aggregationTemporality=r.int32();break;default:r.skipType(7&M)}}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.dataPoints&&r.hasOwnProperty("dataPoints")){if(!Array.isArray(r.dataPoints))return"dataPoints: array expected";for(var a=0;a<r.dataPoints.length;++a){var c=S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(r.dataPoints[a]);if(c)return"dataPoints."+c}}if(null!=r.aggregationTemporality&&r.hasOwnProperty("aggregationTemporality"))switch(r.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:}return null},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.metrics.v1.ExponentialHistogram)return r;var a=new S.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(r.dataPoints){if(!Array.isArray(r.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");a.dataPoints=[];for(var c=0;c<r.dataPoints.length;++c){if("object"!=typeof r.dataPoints[c])throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");a.dataPoints[c]=S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(r.dataPoints[c])}}switch(r.aggregationTemporality){default:if("number"==typeof r.aggregationTemporality){a.aggregationTemporality=r.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:a.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:a.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:a.aggregationTemporality=2}return a},_.toObject=function(r,a){a||(a={});var c={};if((a.arrays||a.defaults)&&(c.dataPoints=[]),a.defaults&&(c.aggregationTemporality=a.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),r.dataPoints&&r.dataPoints.length){c.dataPoints=[];for(var m=0;m<r.dataPoints.length;++m)c.dataPoints[m]=S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(r.dataPoints[m],a)}return null!=r.aggregationTemporality&&r.hasOwnProperty("aggregationTemporality")&&(c.aggregationTemporality=a.enums===String?void 0===S.opentelemetry.proto.metrics.v1.AggregationTemporality[r.aggregationTemporality]?r.aggregationTemporality:S.opentelemetry.proto.metrics.v1.AggregationTemporality[r.aggregationTemporality]:r.aggregationTemporality),c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},_}(),P.Summary=function(){function _(i){if(this.dataPoints=[],i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.dataPoints=v.emptyArray,_.create=function(r){return new _(r)},_.encode=function(r,a){if(a||(a=d.create()),null!=r.dataPoints&&r.dataPoints.length)for(var c=0;c<r.dataPoints.length;++c)S.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(r.dataPoints[c],a.uint32(10).fork()).ldelim();return a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.metrics.v1.Summary;r.pos<c;){var M=r.uint32();M>>>3==1?(m.dataPoints&&m.dataPoints.length||(m.dataPoints=[]),m.dataPoints.push(S.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(r,r.uint32()))):r.skipType(7&M)}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.dataPoints&&r.hasOwnProperty("dataPoints")){if(!Array.isArray(r.dataPoints))return"dataPoints: array expected";for(var a=0;a<r.dataPoints.length;++a){var c=S.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(r.dataPoints[a]);if(c)return"dataPoints."+c}}return null},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.metrics.v1.Summary)return r;var a=new S.opentelemetry.proto.metrics.v1.Summary;if(r.dataPoints){if(!Array.isArray(r.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");a.dataPoints=[];for(var c=0;c<r.dataPoints.length;++c){if("object"!=typeof r.dataPoints[c])throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");a.dataPoints[c]=S.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(r.dataPoints[c])}}return a},_.toObject=function(r,a){a||(a={});var c={};if((a.arrays||a.defaults)&&(c.dataPoints=[]),r.dataPoints&&r.dataPoints.length){c.dataPoints=[];for(var m=0;m<r.dataPoints.length;++m)c.dataPoints[m]=S.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(r.dataPoints[m],a)}return c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Summary"},_}(),P.AggregationTemporality=(_={},(i=Object.create(_))[_[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,i[_[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,i[_[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,i),P.DataPointFlags=function(){var _={},i=Object.create(_);return i[_[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,i[_[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,i}(),P.NumberDataPoint=function(){function _(r){if(this.attributes=[],this.exemplars=[],r)for(var a=Object.keys(r),c=0;c<a.length;++c)null!=r[a[c]]&&(this[a[c]]=r[a[c]])}var i;return _.prototype.attributes=v.emptyArray,_.prototype.startTimeUnixNano=null,_.prototype.timeUnixNano=null,_.prototype.asDouble=null,_.prototype.asInt=null,_.prototype.exemplars=v.emptyArray,_.prototype.flags=null,Object.defineProperty(_.prototype,"value",{get:v.oneOfGetter(i=["asDouble","asInt"]),set:v.oneOfSetter(i)}),_.create=function(a){return new _(a)},_.encode=function(a,c){if(c||(c=d.create()),null!=a.startTimeUnixNano&&Object.hasOwnProperty.call(a,"startTimeUnixNano")&&c.uint32(17).fixed64(a.startTimeUnixNano),null!=a.timeUnixNano&&Object.hasOwnProperty.call(a,"timeUnixNano")&&c.uint32(25).fixed64(a.timeUnixNano),null!=a.asDouble&&Object.hasOwnProperty.call(a,"asDouble")&&c.uint32(33).double(a.asDouble),null!=a.exemplars&&a.exemplars.length)for(var m=0;m<a.exemplars.length;++m)S.opentelemetry.proto.metrics.v1.Exemplar.encode(a.exemplars[m],c.uint32(42).fork()).ldelim();if(null!=a.asInt&&Object.hasOwnProperty.call(a,"asInt")&&c.uint32(49).sfixed64(a.asInt),null!=a.attributes&&a.attributes.length)for(m=0;m<a.attributes.length;++m)S.opentelemetry.proto.common.v1.KeyValue.encode(a.attributes[m],c.uint32(58).fork()).ldelim();return null!=a.flags&&Object.hasOwnProperty.call(a,"flags")&&c.uint32(64).uint32(a.flags),c},_.encodeDelimited=function(a,c){return this.encode(a,c).ldelim()},_.decode=function(a,c){a instanceof l||(a=l.create(a));for(var m=void 0===c?a.len:a.pos+c,M=new S.opentelemetry.proto.metrics.v1.NumberDataPoint;a.pos<m;){var D=a.uint32();switch(D>>>3){case 7:M.attributes&&M.attributes.length||(M.attributes=[]),M.attributes.push(S.opentelemetry.proto.common.v1.KeyValue.decode(a,a.uint32()));break;case 2:M.startTimeUnixNano=a.fixed64();break;case 3:M.timeUnixNano=a.fixed64();break;case 4:M.asDouble=a.double();break;case 6:M.asInt=a.sfixed64();break;case 5:M.exemplars&&M.exemplars.length||(M.exemplars=[]),M.exemplars.push(S.opentelemetry.proto.metrics.v1.Exemplar.decode(a,a.uint32()));break;case 8:M.flags=a.uint32();break;default:a.skipType(7&D)}}return M},_.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},_.verify=function(a){if("object"!=typeof a||null===a)return"object expected";var c={};if(null!=a.attributes&&a.hasOwnProperty("attributes")){if(!Array.isArray(a.attributes))return"attributes: array expected";for(var m=0;m<a.attributes.length;++m)if(M=S.opentelemetry.proto.common.v1.KeyValue.verify(a.attributes[m]))return"attributes."+M}if(null!=a.startTimeUnixNano&&a.hasOwnProperty("startTimeUnixNano")&&!v.isInteger(a.startTimeUnixNano)&&!(a.startTimeUnixNano&&v.isInteger(a.startTimeUnixNano.low)&&v.isInteger(a.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(null!=a.timeUnixNano&&a.hasOwnProperty("timeUnixNano")&&!v.isInteger(a.timeUnixNano)&&!(a.timeUnixNano&&v.isInteger(a.timeUnixNano.low)&&v.isInteger(a.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=a.asDouble&&a.hasOwnProperty("asDouble")&&(c.value=1,"number"!=typeof a.asDouble))return"asDouble: number expected";if(null!=a.asInt&&a.hasOwnProperty("asInt")){if(1===c.value)return"value: multiple values";if(c.value=1,!(v.isInteger(a.asInt)||a.asInt&&v.isInteger(a.asInt.low)&&v.isInteger(a.asInt.high)))return"asInt: integer|Long expected"}if(null!=a.exemplars&&a.hasOwnProperty("exemplars")){if(!Array.isArray(a.exemplars))return"exemplars: array expected";for(m=0;m<a.exemplars.length;++m){var M;if(M=S.opentelemetry.proto.metrics.v1.Exemplar.verify(a.exemplars[m]))return"exemplars."+M}}return null!=a.flags&&a.hasOwnProperty("flags")&&!v.isInteger(a.flags)?"flags: integer expected":null},_.fromObject=function(a){if(a instanceof S.opentelemetry.proto.metrics.v1.NumberDataPoint)return a;var c=new S.opentelemetry.proto.metrics.v1.NumberDataPoint;if(a.attributes){if(!Array.isArray(a.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");c.attributes=[];for(var m=0;m<a.attributes.length;++m){if("object"!=typeof a.attributes[m])throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");c.attributes[m]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(a.attributes[m])}}if(null!=a.startTimeUnixNano&&(v.Long?(c.startTimeUnixNano=v.Long.fromValue(a.startTimeUnixNano)).unsigned=!1:"string"==typeof a.startTimeUnixNano?c.startTimeUnixNano=parseInt(a.startTimeUnixNano,10):"number"==typeof a.startTimeUnixNano?c.startTimeUnixNano=a.startTimeUnixNano:"object"==typeof a.startTimeUnixNano&&(c.startTimeUnixNano=new v.LongBits(a.startTimeUnixNano.low>>>0,a.startTimeUnixNano.high>>>0).toNumber())),null!=a.timeUnixNano&&(v.Long?(c.timeUnixNano=v.Long.fromValue(a.timeUnixNano)).unsigned=!1:"string"==typeof a.timeUnixNano?c.timeUnixNano=parseInt(a.timeUnixNano,10):"number"==typeof a.timeUnixNano?c.timeUnixNano=a.timeUnixNano:"object"==typeof a.timeUnixNano&&(c.timeUnixNano=new v.LongBits(a.timeUnixNano.low>>>0,a.timeUnixNano.high>>>0).toNumber())),null!=a.asDouble&&(c.asDouble=Number(a.asDouble)),null!=a.asInt&&(v.Long?(c.asInt=v.Long.fromValue(a.asInt)).unsigned=!1:"string"==typeof a.asInt?c.asInt=parseInt(a.asInt,10):"number"==typeof a.asInt?c.asInt=a.asInt:"object"==typeof a.asInt&&(c.asInt=new v.LongBits(a.asInt.low>>>0,a.asInt.high>>>0).toNumber())),a.exemplars){if(!Array.isArray(a.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");for(c.exemplars=[],m=0;m<a.exemplars.length;++m){if("object"!=typeof a.exemplars[m])throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");c.exemplars[m]=S.opentelemetry.proto.metrics.v1.Exemplar.fromObject(a.exemplars[m])}}return null!=a.flags&&(c.flags=a.flags>>>0),c},_.toObject=function(a,c){c||(c={});var m={};if((c.arrays||c.defaults)&&(m.exemplars=[],m.attributes=[]),c.defaults){if(v.Long){var M=new v.Long(0,0,!1);m.startTimeUnixNano=c.longs===String?M.toString():c.longs===Number?M.toNumber():M}else m.startTimeUnixNano=c.longs===String?"0":0;v.Long?(M=new v.Long(0,0,!1),m.timeUnixNano=c.longs===String?M.toString():c.longs===Number?M.toNumber():M):m.timeUnixNano=c.longs===String?"0":0,m.flags=0}if(null!=a.startTimeUnixNano&&a.hasOwnProperty("startTimeUnixNano")&&(m.startTimeUnixNano="number"==typeof a.startTimeUnixNano?c.longs===String?String(a.startTimeUnixNano):a.startTimeUnixNano:c.longs===String?v.Long.prototype.toString.call(a.startTimeUnixNano):c.longs===Number?new v.LongBits(a.startTimeUnixNano.low>>>0,a.startTimeUnixNano.high>>>0).toNumber():a.startTimeUnixNano),null!=a.timeUnixNano&&a.hasOwnProperty("timeUnixNano")&&(m.timeUnixNano="number"==typeof a.timeUnixNano?c.longs===String?String(a.timeUnixNano):a.timeUnixNano:c.longs===String?v.Long.prototype.toString.call(a.timeUnixNano):c.longs===Number?new v.LongBits(a.timeUnixNano.low>>>0,a.timeUnixNano.high>>>0).toNumber():a.timeUnixNano),null!=a.asDouble&&a.hasOwnProperty("asDouble")&&(m.asDouble=c.json&&!isFinite(a.asDouble)?String(a.asDouble):a.asDouble,c.oneofs&&(m.value="asDouble")),a.exemplars&&a.exemplars.length){m.exemplars=[];for(var D=0;D<a.exemplars.length;++D)m.exemplars[D]=S.opentelemetry.proto.metrics.v1.Exemplar.toObject(a.exemplars[D],c)}if(null!=a.asInt&&a.hasOwnProperty("asInt")&&(m.asInt="number"==typeof a.asInt?c.longs===String?String(a.asInt):a.asInt:c.longs===String?v.Long.prototype.toString.call(a.asInt):c.longs===Number?new v.LongBits(a.asInt.low>>>0,a.asInt.high>>>0).toNumber():a.asInt,c.oneofs&&(m.value="asInt")),a.attributes&&a.attributes.length)for(m.attributes=[],D=0;D<a.attributes.length;++D)m.attributes[D]=S.opentelemetry.proto.common.v1.KeyValue.toObject(a.attributes[D],c);return null!=a.flags&&a.hasOwnProperty("flags")&&(m.flags=a.flags),m},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},_}(),P.HistogramDataPoint=function(){function _(r){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],r)for(var a=Object.keys(r),c=0;c<a.length;++c)null!=r[a[c]]&&(this[a[c]]=r[a[c]])}var i;return _.prototype.attributes=v.emptyArray,_.prototype.startTimeUnixNano=null,_.prototype.timeUnixNano=null,_.prototype.count=null,_.prototype.sum=null,_.prototype.bucketCounts=v.emptyArray,_.prototype.explicitBounds=v.emptyArray,_.prototype.exemplars=v.emptyArray,_.prototype.flags=null,_.prototype.min=null,_.prototype.max=null,Object.defineProperty(_.prototype,"_sum",{get:v.oneOfGetter(i=["sum"]),set:v.oneOfSetter(i)}),Object.defineProperty(_.prototype,"_min",{get:v.oneOfGetter(i=["min"]),set:v.oneOfSetter(i)}),Object.defineProperty(_.prototype,"_max",{get:v.oneOfGetter(i=["max"]),set:v.oneOfSetter(i)}),_.create=function(a){return new _(a)},_.encode=function(a,c){if(c||(c=d.create()),null!=a.startTimeUnixNano&&Object.hasOwnProperty.call(a,"startTimeUnixNano")&&c.uint32(17).fixed64(a.startTimeUnixNano),null!=a.timeUnixNano&&Object.hasOwnProperty.call(a,"timeUnixNano")&&c.uint32(25).fixed64(a.timeUnixNano),null!=a.count&&Object.hasOwnProperty.call(a,"count")&&c.uint32(33).fixed64(a.count),null!=a.sum&&Object.hasOwnProperty.call(a,"sum")&&c.uint32(41).double(a.sum),null!=a.bucketCounts&&a.bucketCounts.length){c.uint32(50).fork();for(var m=0;m<a.bucketCounts.length;++m)c.fixed64(a.bucketCounts[m]);c.ldelim()}if(null!=a.explicitBounds&&a.explicitBounds.length){for(c.uint32(58).fork(),m=0;m<a.explicitBounds.length;++m)c.double(a.explicitBounds[m]);c.ldelim()}if(null!=a.exemplars&&a.exemplars.length)for(m=0;m<a.exemplars.length;++m)S.opentelemetry.proto.metrics.v1.Exemplar.encode(a.exemplars[m],c.uint32(66).fork()).ldelim();if(null!=a.attributes&&a.attributes.length)for(m=0;m<a.attributes.length;++m)S.opentelemetry.proto.common.v1.KeyValue.encode(a.attributes[m],c.uint32(74).fork()).ldelim();return null!=a.flags&&Object.hasOwnProperty.call(a,"flags")&&c.uint32(80).uint32(a.flags),null!=a.min&&Object.hasOwnProperty.call(a,"min")&&c.uint32(89).double(a.min),null!=a.max&&Object.hasOwnProperty.call(a,"max")&&c.uint32(97).double(a.max),c},_.encodeDelimited=function(a,c){return this.encode(a,c).ldelim()},_.decode=function(a,c){a instanceof l||(a=l.create(a));for(var m=void 0===c?a.len:a.pos+c,M=new S.opentelemetry.proto.metrics.v1.HistogramDataPoint;a.pos<m;){var D=a.uint32();switch(D>>>3){case 9:M.attributes&&M.attributes.length||(M.attributes=[]),M.attributes.push(S.opentelemetry.proto.common.v1.KeyValue.decode(a,a.uint32()));break;case 2:M.startTimeUnixNano=a.fixed64();break;case 3:M.timeUnixNano=a.fixed64();break;case 4:M.count=a.fixed64();break;case 5:M.sum=a.double();break;case 6:if(M.bucketCounts&&M.bucketCounts.length||(M.bucketCounts=[]),2==(7&D))for(var I=a.uint32()+a.pos;a.pos<I;)M.bucketCounts.push(a.fixed64());else M.bucketCounts.push(a.fixed64());break;case 7:if(M.explicitBounds&&M.explicitBounds.length||(M.explicitBounds=[]),2==(7&D))for(I=a.uint32()+a.pos;a.pos<I;)M.explicitBounds.push(a.double());else M.explicitBounds.push(a.double());break;case 8:M.exemplars&&M.exemplars.length||(M.exemplars=[]),M.exemplars.push(S.opentelemetry.proto.metrics.v1.Exemplar.decode(a,a.uint32()));break;case 10:M.flags=a.uint32();break;case 11:M.min=a.double();break;case 12:M.max=a.double();break;default:a.skipType(7&D)}}return M},_.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},_.verify=function(a){if("object"!=typeof a||null===a)return"object expected";var c={};if(null!=a.attributes&&a.hasOwnProperty("attributes")){if(!Array.isArray(a.attributes))return"attributes: array expected";for(var m=0;m<a.attributes.length;++m)if(M=S.opentelemetry.proto.common.v1.KeyValue.verify(a.attributes[m]))return"attributes."+M}if(null!=a.startTimeUnixNano&&a.hasOwnProperty("startTimeUnixNano")&&!v.isInteger(a.startTimeUnixNano)&&!(a.startTimeUnixNano&&v.isInteger(a.startTimeUnixNano.low)&&v.isInteger(a.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(null!=a.timeUnixNano&&a.hasOwnProperty("timeUnixNano")&&!v.isInteger(a.timeUnixNano)&&!(a.timeUnixNano&&v.isInteger(a.timeUnixNano.low)&&v.isInteger(a.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=a.count&&a.hasOwnProperty("count")&&!v.isInteger(a.count)&&!(a.count&&v.isInteger(a.count.low)&&v.isInteger(a.count.high)))return"count: integer|Long expected";if(null!=a.sum&&a.hasOwnProperty("sum")&&(c._sum=1,"number"!=typeof a.sum))return"sum: number expected";if(null!=a.bucketCounts&&a.hasOwnProperty("bucketCounts")){if(!Array.isArray(a.bucketCounts))return"bucketCounts: array expected";for(m=0;m<a.bucketCounts.length;++m)if(!(v.isInteger(a.bucketCounts[m])||a.bucketCounts[m]&&v.isInteger(a.bucketCounts[m].low)&&v.isInteger(a.bucketCounts[m].high)))return"bucketCounts: integer|Long[] expected"}if(null!=a.explicitBounds&&a.hasOwnProperty("explicitBounds")){if(!Array.isArray(a.explicitBounds))return"explicitBounds: array expected";for(m=0;m<a.explicitBounds.length;++m)if("number"!=typeof a.explicitBounds[m])return"explicitBounds: number[] expected"}if(null!=a.exemplars&&a.hasOwnProperty("exemplars")){if(!Array.isArray(a.exemplars))return"exemplars: array expected";for(m=0;m<a.exemplars.length;++m){var M;if(M=S.opentelemetry.proto.metrics.v1.Exemplar.verify(a.exemplars[m]))return"exemplars."+M}}return null!=a.flags&&a.hasOwnProperty("flags")&&!v.isInteger(a.flags)?"flags: integer expected":null!=a.min&&a.hasOwnProperty("min")&&(c._min=1,"number"!=typeof a.min)?"min: number expected":null!=a.max&&a.hasOwnProperty("max")&&(c._max=1,"number"!=typeof a.max)?"max: number expected":null},_.fromObject=function(a){if(a instanceof S.opentelemetry.proto.metrics.v1.HistogramDataPoint)return a;var c=new S.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(a.attributes){if(!Array.isArray(a.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");c.attributes=[];for(var m=0;m<a.attributes.length;++m){if("object"!=typeof a.attributes[m])throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");c.attributes[m]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(a.attributes[m])}}if(null!=a.startTimeUnixNano&&(v.Long?(c.startTimeUnixNano=v.Long.fromValue(a.startTimeUnixNano)).unsigned=!1:"string"==typeof a.startTimeUnixNano?c.startTimeUnixNano=parseInt(a.startTimeUnixNano,10):"number"==typeof a.startTimeUnixNano?c.startTimeUnixNano=a.startTimeUnixNano:"object"==typeof a.startTimeUnixNano&&(c.startTimeUnixNano=new v.LongBits(a.startTimeUnixNano.low>>>0,a.startTimeUnixNano.high>>>0).toNumber())),null!=a.timeUnixNano&&(v.Long?(c.timeUnixNano=v.Long.fromValue(a.timeUnixNano)).unsigned=!1:"string"==typeof a.timeUnixNano?c.timeUnixNano=parseInt(a.timeUnixNano,10):"number"==typeof a.timeUnixNano?c.timeUnixNano=a.timeUnixNano:"object"==typeof a.timeUnixNano&&(c.timeUnixNano=new v.LongBits(a.timeUnixNano.low>>>0,a.timeUnixNano.high>>>0).toNumber())),null!=a.count&&(v.Long?(c.count=v.Long.fromValue(a.count)).unsigned=!1:"string"==typeof a.count?c.count=parseInt(a.count,10):"number"==typeof a.count?c.count=a.count:"object"==typeof a.count&&(c.count=new v.LongBits(a.count.low>>>0,a.count.high>>>0).toNumber())),null!=a.sum&&(c.sum=Number(a.sum)),a.bucketCounts){if(!Array.isArray(a.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");for(c.bucketCounts=[],m=0;m<a.bucketCounts.length;++m)v.Long?(c.bucketCounts[m]=v.Long.fromValue(a.bucketCounts[m])).unsigned=!1:"string"==typeof a.bucketCounts[m]?c.bucketCounts[m]=parseInt(a.bucketCounts[m],10):"number"==typeof a.bucketCounts[m]?c.bucketCounts[m]=a.bucketCounts[m]:"object"==typeof a.bucketCounts[m]&&(c.bucketCounts[m]=new v.LongBits(a.bucketCounts[m].low>>>0,a.bucketCounts[m].high>>>0).toNumber())}if(a.explicitBounds){if(!Array.isArray(a.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");for(c.explicitBounds=[],m=0;m<a.explicitBounds.length;++m)c.explicitBounds[m]=Number(a.explicitBounds[m])}if(a.exemplars){if(!Array.isArray(a.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");for(c.exemplars=[],m=0;m<a.exemplars.length;++m){if("object"!=typeof a.exemplars[m])throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");c.exemplars[m]=S.opentelemetry.proto.metrics.v1.Exemplar.fromObject(a.exemplars[m])}}return null!=a.flags&&(c.flags=a.flags>>>0),null!=a.min&&(c.min=Number(a.min)),null!=a.max&&(c.max=Number(a.max)),c},_.toObject=function(a,c){c||(c={});var m={};if((c.arrays||c.defaults)&&(m.bucketCounts=[],m.explicitBounds=[],m.exemplars=[],m.attributes=[]),c.defaults){if(v.Long){var M=new v.Long(0,0,!1);m.startTimeUnixNano=c.longs===String?M.toString():c.longs===Number?M.toNumber():M}else m.startTimeUnixNano=c.longs===String?"0":0;v.Long?(M=new v.Long(0,0,!1),m.timeUnixNano=c.longs===String?M.toString():c.longs===Number?M.toNumber():M):m.timeUnixNano=c.longs===String?"0":0,v.Long?(M=new v.Long(0,0,!1),m.count=c.longs===String?M.toString():c.longs===Number?M.toNumber():M):m.count=c.longs===String?"0":0,m.flags=0}if(null!=a.startTimeUnixNano&&a.hasOwnProperty("startTimeUnixNano")&&(m.startTimeUnixNano="number"==typeof a.startTimeUnixNano?c.longs===String?String(a.startTimeUnixNano):a.startTimeUnixNano:c.longs===String?v.Long.prototype.toString.call(a.startTimeUnixNano):c.longs===Number?new v.LongBits(a.startTimeUnixNano.low>>>0,a.startTimeUnixNano.high>>>0).toNumber():a.startTimeUnixNano),null!=a.timeUnixNano&&a.hasOwnProperty("timeUnixNano")&&(m.timeUnixNano="number"==typeof a.timeUnixNano?c.longs===String?String(a.timeUnixNano):a.timeUnixNano:c.longs===String?v.Long.prototype.toString.call(a.timeUnixNano):c.longs===Number?new v.LongBits(a.timeUnixNano.low>>>0,a.timeUnixNano.high>>>0).toNumber():a.timeUnixNano),null!=a.count&&a.hasOwnProperty("count")&&(m.count="number"==typeof a.count?c.longs===String?String(a.count):a.count:c.longs===String?v.Long.prototype.toString.call(a.count):c.longs===Number?new v.LongBits(a.count.low>>>0,a.count.high>>>0).toNumber():a.count),null!=a.sum&&a.hasOwnProperty("sum")&&(m.sum=c.json&&!isFinite(a.sum)?String(a.sum):a.sum,c.oneofs&&(m._sum="sum")),a.bucketCounts&&a.bucketCounts.length){m.bucketCounts=[];for(var D=0;D<a.bucketCounts.length;++D)m.bucketCounts[D]="number"==typeof a.bucketCounts[D]?c.longs===String?String(a.bucketCounts[D]):a.bucketCounts[D]:c.longs===String?v.Long.prototype.toString.call(a.bucketCounts[D]):c.longs===Number?new v.LongBits(a.bucketCounts[D].low>>>0,a.bucketCounts[D].high>>>0).toNumber():a.bucketCounts[D]}if(a.explicitBounds&&a.explicitBounds.length)for(m.explicitBounds=[],D=0;D<a.explicitBounds.length;++D)m.explicitBounds[D]=c.json&&!isFinite(a.explicitBounds[D])?String(a.explicitBounds[D]):a.explicitBounds[D];if(a.exemplars&&a.exemplars.length)for(m.exemplars=[],D=0;D<a.exemplars.length;++D)m.exemplars[D]=S.opentelemetry.proto.metrics.v1.Exemplar.toObject(a.exemplars[D],c);if(a.attributes&&a.attributes.length)for(m.attributes=[],D=0;D<a.attributes.length;++D)m.attributes[D]=S.opentelemetry.proto.common.v1.KeyValue.toObject(a.attributes[D],c);return null!=a.flags&&a.hasOwnProperty("flags")&&(m.flags=a.flags),null!=a.min&&a.hasOwnProperty("min")&&(m.min=c.json&&!isFinite(a.min)?String(a.min):a.min,c.oneofs&&(m._min="min")),null!=a.max&&a.hasOwnProperty("max")&&(m.max=c.json&&!isFinite(a.max)?String(a.max):a.max,c.oneofs&&(m._max="max")),m},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},_}(),P.ExponentialHistogramDataPoint=function(){function _(r){if(this.attributes=[],this.exemplars=[],r)for(var a=Object.keys(r),c=0;c<a.length;++c)null!=r[a[c]]&&(this[a[c]]=r[a[c]])}var i;return _.prototype.attributes=v.emptyArray,_.prototype.startTimeUnixNano=null,_.prototype.timeUnixNano=null,_.prototype.count=null,_.prototype.sum=null,_.prototype.scale=null,_.prototype.zeroCount=null,_.prototype.positive=null,_.prototype.negative=null,_.prototype.flags=null,_.prototype.exemplars=v.emptyArray,_.prototype.min=null,_.prototype.max=null,_.prototype.zeroThreshold=null,Object.defineProperty(_.prototype,"_sum",{get:v.oneOfGetter(i=["sum"]),set:v.oneOfSetter(i)}),Object.defineProperty(_.prototype,"_min",{get:v.oneOfGetter(i=["min"]),set:v.oneOfSetter(i)}),Object.defineProperty(_.prototype,"_max",{get:v.oneOfGetter(i=["max"]),set:v.oneOfSetter(i)}),_.create=function(a){return new _(a)},_.encode=function(a,c){if(c||(c=d.create()),null!=a.attributes&&a.attributes.length)for(var m=0;m<a.attributes.length;++m)S.opentelemetry.proto.common.v1.KeyValue.encode(a.attributes[m],c.uint32(10).fork()).ldelim();if(null!=a.startTimeUnixNano&&Object.hasOwnProperty.call(a,"startTimeUnixNano")&&c.uint32(17).fixed64(a.startTimeUnixNano),null!=a.timeUnixNano&&Object.hasOwnProperty.call(a,"timeUnixNano")&&c.uint32(25).fixed64(a.timeUnixNano),null!=a.count&&Object.hasOwnProperty.call(a,"count")&&c.uint32(33).fixed64(a.count),null!=a.sum&&Object.hasOwnProperty.call(a,"sum")&&c.uint32(41).double(a.sum),null!=a.scale&&Object.hasOwnProperty.call(a,"scale")&&c.uint32(48).sint32(a.scale),null!=a.zeroCount&&Object.hasOwnProperty.call(a,"zeroCount")&&c.uint32(57).fixed64(a.zeroCount),null!=a.positive&&Object.hasOwnProperty.call(a,"positive")&&S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(a.positive,c.uint32(66).fork()).ldelim(),null!=a.negative&&Object.hasOwnProperty.call(a,"negative")&&S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(a.negative,c.uint32(74).fork()).ldelim(),null!=a.flags&&Object.hasOwnProperty.call(a,"flags")&&c.uint32(80).uint32(a.flags),null!=a.exemplars&&a.exemplars.length)for(m=0;m<a.exemplars.length;++m)S.opentelemetry.proto.metrics.v1.Exemplar.encode(a.exemplars[m],c.uint32(90).fork()).ldelim();return null!=a.min&&Object.hasOwnProperty.call(a,"min")&&c.uint32(97).double(a.min),null!=a.max&&Object.hasOwnProperty.call(a,"max")&&c.uint32(105).double(a.max),null!=a.zeroThreshold&&Object.hasOwnProperty.call(a,"zeroThreshold")&&c.uint32(113).double(a.zeroThreshold),c},_.encodeDelimited=function(a,c){return this.encode(a,c).ldelim()},_.decode=function(a,c){a instanceof l||(a=l.create(a));for(var m=void 0===c?a.len:a.pos+c,M=new S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;a.pos<m;){var D=a.uint32();switch(D>>>3){case 1:M.attributes&&M.attributes.length||(M.attributes=[]),M.attributes.push(S.opentelemetry.proto.common.v1.KeyValue.decode(a,a.uint32()));break;case 2:M.startTimeUnixNano=a.fixed64();break;case 3:M.timeUnixNano=a.fixed64();break;case 4:M.count=a.fixed64();break;case 5:M.sum=a.double();break;case 6:M.scale=a.sint32();break;case 7:M.zeroCount=a.fixed64();break;case 8:M.positive=S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(a,a.uint32());break;case 9:M.negative=S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(a,a.uint32());break;case 10:M.flags=a.uint32();break;case 11:M.exemplars&&M.exemplars.length||(M.exemplars=[]),M.exemplars.push(S.opentelemetry.proto.metrics.v1.Exemplar.decode(a,a.uint32()));break;case 12:M.min=a.double();break;case 13:M.max=a.double();break;case 14:M.zeroThreshold=a.double();break;default:a.skipType(7&D)}}return M},_.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},_.verify=function(a){if("object"!=typeof a||null===a)return"object expected";var c={};if(null!=a.attributes&&a.hasOwnProperty("attributes")){if(!Array.isArray(a.attributes))return"attributes: array expected";for(var m=0;m<a.attributes.length;++m)if(M=S.opentelemetry.proto.common.v1.KeyValue.verify(a.attributes[m]))return"attributes."+M}if(null!=a.startTimeUnixNano&&a.hasOwnProperty("startTimeUnixNano")&&!v.isInteger(a.startTimeUnixNano)&&!(a.startTimeUnixNano&&v.isInteger(a.startTimeUnixNano.low)&&v.isInteger(a.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(null!=a.timeUnixNano&&a.hasOwnProperty("timeUnixNano")&&!v.isInteger(a.timeUnixNano)&&!(a.timeUnixNano&&v.isInteger(a.timeUnixNano.low)&&v.isInteger(a.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=a.count&&a.hasOwnProperty("count")&&!v.isInteger(a.count)&&!(a.count&&v.isInteger(a.count.low)&&v.isInteger(a.count.high)))return"count: integer|Long expected";if(null!=a.sum&&a.hasOwnProperty("sum")&&(c._sum=1,"number"!=typeof a.sum))return"sum: number expected";if(null!=a.scale&&a.hasOwnProperty("scale")&&!v.isInteger(a.scale))return"scale: integer expected";if(null!=a.zeroCount&&a.hasOwnProperty("zeroCount")&&!v.isInteger(a.zeroCount)&&!(a.zeroCount&&v.isInteger(a.zeroCount.low)&&v.isInteger(a.zeroCount.high)))return"zeroCount: integer|Long expected";if(null!=a.positive&&a.hasOwnProperty("positive")&&(M=S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(a.positive)))return"positive."+M;if(null!=a.negative&&a.hasOwnProperty("negative")&&(M=S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(a.negative)))return"negative."+M;if(null!=a.flags&&a.hasOwnProperty("flags")&&!v.isInteger(a.flags))return"flags: integer expected";if(null!=a.exemplars&&a.hasOwnProperty("exemplars")){if(!Array.isArray(a.exemplars))return"exemplars: array expected";for(m=0;m<a.exemplars.length;++m){var M;if(M=S.opentelemetry.proto.metrics.v1.Exemplar.verify(a.exemplars[m]))return"exemplars."+M}}return null!=a.min&&a.hasOwnProperty("min")&&(c._min=1,"number"!=typeof a.min)?"min: number expected":null!=a.max&&a.hasOwnProperty("max")&&(c._max=1,"number"!=typeof a.max)?"max: number expected":null!=a.zeroThreshold&&a.hasOwnProperty("zeroThreshold")&&"number"!=typeof a.zeroThreshold?"zeroThreshold: number expected":null},_.fromObject=function(a){if(a instanceof S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return a;var c=new S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(a.attributes){if(!Array.isArray(a.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");c.attributes=[];for(var m=0;m<a.attributes.length;++m){if("object"!=typeof a.attributes[m])throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");c.attributes[m]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(a.attributes[m])}}if(null!=a.startTimeUnixNano&&(v.Long?(c.startTimeUnixNano=v.Long.fromValue(a.startTimeUnixNano)).unsigned=!1:"string"==typeof a.startTimeUnixNano?c.startTimeUnixNano=parseInt(a.startTimeUnixNano,10):"number"==typeof a.startTimeUnixNano?c.startTimeUnixNano=a.startTimeUnixNano:"object"==typeof a.startTimeUnixNano&&(c.startTimeUnixNano=new v.LongBits(a.startTimeUnixNano.low>>>0,a.startTimeUnixNano.high>>>0).toNumber())),null!=a.timeUnixNano&&(v.Long?(c.timeUnixNano=v.Long.fromValue(a.timeUnixNano)).unsigned=!1:"string"==typeof a.timeUnixNano?c.timeUnixNano=parseInt(a.timeUnixNano,10):"number"==typeof a.timeUnixNano?c.timeUnixNano=a.timeUnixNano:"object"==typeof a.timeUnixNano&&(c.timeUnixNano=new v.LongBits(a.timeUnixNano.low>>>0,a.timeUnixNano.high>>>0).toNumber())),null!=a.count&&(v.Long?(c.count=v.Long.fromValue(a.count)).unsigned=!1:"string"==typeof a.count?c.count=parseInt(a.count,10):"number"==typeof a.count?c.count=a.count:"object"==typeof a.count&&(c.count=new v.LongBits(a.count.low>>>0,a.count.high>>>0).toNumber())),null!=a.sum&&(c.sum=Number(a.sum)),null!=a.scale&&(c.scale=0|a.scale),null!=a.zeroCount&&(v.Long?(c.zeroCount=v.Long.fromValue(a.zeroCount)).unsigned=!1:"string"==typeof a.zeroCount?c.zeroCount=parseInt(a.zeroCount,10):"number"==typeof a.zeroCount?c.zeroCount=a.zeroCount:"object"==typeof a.zeroCount&&(c.zeroCount=new v.LongBits(a.zeroCount.low>>>0,a.zeroCount.high>>>0).toNumber())),null!=a.positive){if("object"!=typeof a.positive)throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");c.positive=S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(a.positive)}if(null!=a.negative){if("object"!=typeof a.negative)throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");c.negative=S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(a.negative)}if(null!=a.flags&&(c.flags=a.flags>>>0),a.exemplars){if(!Array.isArray(a.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");for(c.exemplars=[],m=0;m<a.exemplars.length;++m){if("object"!=typeof a.exemplars[m])throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");c.exemplars[m]=S.opentelemetry.proto.metrics.v1.Exemplar.fromObject(a.exemplars[m])}}return null!=a.min&&(c.min=Number(a.min)),null!=a.max&&(c.max=Number(a.max)),null!=a.zeroThreshold&&(c.zeroThreshold=Number(a.zeroThreshold)),c},_.toObject=function(a,c){c||(c={});var m={};if((c.arrays||c.defaults)&&(m.attributes=[],m.exemplars=[]),c.defaults){if(v.Long){var M=new v.Long(0,0,!1);m.startTimeUnixNano=c.longs===String?M.toString():c.longs===Number?M.toNumber():M}else m.startTimeUnixNano=c.longs===String?"0":0;v.Long?(M=new v.Long(0,0,!1),m.timeUnixNano=c.longs===String?M.toString():c.longs===Number?M.toNumber():M):m.timeUnixNano=c.longs===String?"0":0,v.Long?(M=new v.Long(0,0,!1),m.count=c.longs===String?M.toString():c.longs===Number?M.toNumber():M):m.count=c.longs===String?"0":0,m.scale=0,v.Long?(M=new v.Long(0,0,!1),m.zeroCount=c.longs===String?M.toString():c.longs===Number?M.toNumber():M):m.zeroCount=c.longs===String?"0":0,m.positive=null,m.negative=null,m.flags=0,m.zeroThreshold=0}if(a.attributes&&a.attributes.length){m.attributes=[];for(var D=0;D<a.attributes.length;++D)m.attributes[D]=S.opentelemetry.proto.common.v1.KeyValue.toObject(a.attributes[D],c)}if(null!=a.startTimeUnixNano&&a.hasOwnProperty("startTimeUnixNano")&&(m.startTimeUnixNano="number"==typeof a.startTimeUnixNano?c.longs===String?String(a.startTimeUnixNano):a.startTimeUnixNano:c.longs===String?v.Long.prototype.toString.call(a.startTimeUnixNano):c.longs===Number?new v.LongBits(a.startTimeUnixNano.low>>>0,a.startTimeUnixNano.high>>>0).toNumber():a.startTimeUnixNano),null!=a.timeUnixNano&&a.hasOwnProperty("timeUnixNano")&&(m.timeUnixNano="number"==typeof a.timeUnixNano?c.longs===String?String(a.timeUnixNano):a.timeUnixNano:c.longs===String?v.Long.prototype.toString.call(a.timeUnixNano):c.longs===Number?new v.LongBits(a.timeUnixNano.low>>>0,a.timeUnixNano.high>>>0).toNumber():a.timeUnixNano),null!=a.count&&a.hasOwnProperty("count")&&(m.count="number"==typeof a.count?c.longs===String?String(a.count):a.count:c.longs===String?v.Long.prototype.toString.call(a.count):c.longs===Number?new v.LongBits(a.count.low>>>0,a.count.high>>>0).toNumber():a.count),null!=a.sum&&a.hasOwnProperty("sum")&&(m.sum=c.json&&!isFinite(a.sum)?String(a.sum):a.sum,c.oneofs&&(m._sum="sum")),null!=a.scale&&a.hasOwnProperty("scale")&&(m.scale=a.scale),null!=a.zeroCount&&a.hasOwnProperty("zeroCount")&&(m.zeroCount="number"==typeof a.zeroCount?c.longs===String?String(a.zeroCount):a.zeroCount:c.longs===String?v.Long.prototype.toString.call(a.zeroCount):c.longs===Number?new v.LongBits(a.zeroCount.low>>>0,a.zeroCount.high>>>0).toNumber():a.zeroCount),null!=a.positive&&a.hasOwnProperty("positive")&&(m.positive=S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(a.positive,c)),null!=a.negative&&a.hasOwnProperty("negative")&&(m.negative=S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(a.negative,c)),null!=a.flags&&a.hasOwnProperty("flags")&&(m.flags=a.flags),a.exemplars&&a.exemplars.length)for(m.exemplars=[],D=0;D<a.exemplars.length;++D)m.exemplars[D]=S.opentelemetry.proto.metrics.v1.Exemplar.toObject(a.exemplars[D],c);return null!=a.min&&a.hasOwnProperty("min")&&(m.min=c.json&&!isFinite(a.min)?String(a.min):a.min,c.oneofs&&(m._min="min")),null!=a.max&&a.hasOwnProperty("max")&&(m.max=c.json&&!isFinite(a.max)?String(a.max):a.max,c.oneofs&&(m._max="max")),null!=a.zeroThreshold&&a.hasOwnProperty("zeroThreshold")&&(m.zeroThreshold=c.json&&!isFinite(a.zeroThreshold)?String(a.zeroThreshold):a.zeroThreshold),m},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},_.Buckets=function(){function r(a){if(this.bucketCounts=[],a)for(var c=Object.keys(a),m=0;m<c.length;++m)null!=a[c[m]]&&(this[c[m]]=a[c[m]])}return r.prototype.offset=null,r.prototype.bucketCounts=v.emptyArray,r.create=function(c){return new r(c)},r.encode=function(c,m){if(m||(m=d.create()),null!=c.offset&&Object.hasOwnProperty.call(c,"offset")&&m.uint32(8).sint32(c.offset),null!=c.bucketCounts&&c.bucketCounts.length){m.uint32(18).fork();for(var M=0;M<c.bucketCounts.length;++M)m.uint64(c.bucketCounts[M]);m.ldelim()}return m},r.encodeDelimited=function(c,m){return this.encode(c,m).ldelim()},r.decode=function(c,m){c instanceof l||(c=l.create(c));for(var M=void 0===m?c.len:c.pos+m,D=new S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;c.pos<M;){var I=c.uint32();switch(I>>>3){case 1:D.offset=c.sint32();break;case 2:if(D.bucketCounts&&D.bucketCounts.length||(D.bucketCounts=[]),2==(7&I))for(var U=c.uint32()+c.pos;c.pos<U;)D.bucketCounts.push(c.uint64());else D.bucketCounts.push(c.uint64());break;default:c.skipType(7&I)}}return D},r.decodeDelimited=function(c){return c instanceof l||(c=new l(c)),this.decode(c,c.uint32())},r.verify=function(c){if("object"!=typeof c||null===c)return"object expected";if(null!=c.offset&&c.hasOwnProperty("offset")&&!v.isInteger(c.offset))return"offset: integer expected";if(null!=c.bucketCounts&&c.hasOwnProperty("bucketCounts")){if(!Array.isArray(c.bucketCounts))return"bucketCounts: array expected";for(var m=0;m<c.bucketCounts.length;++m)if(!(v.isInteger(c.bucketCounts[m])||c.bucketCounts[m]&&v.isInteger(c.bucketCounts[m].low)&&v.isInteger(c.bucketCounts[m].high)))return"bucketCounts: integer|Long[] expected"}return null},r.fromObject=function(c){if(c instanceof S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return c;var m=new S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(null!=c.offset&&(m.offset=0|c.offset),c.bucketCounts){if(!Array.isArray(c.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");m.bucketCounts=[];for(var M=0;M<c.bucketCounts.length;++M)v.Long?(m.bucketCounts[M]=v.Long.fromValue(c.bucketCounts[M])).unsigned=!0:"string"==typeof c.bucketCounts[M]?m.bucketCounts[M]=parseInt(c.bucketCounts[M],10):"number"==typeof c.bucketCounts[M]?m.bucketCounts[M]=c.bucketCounts[M]:"object"==typeof c.bucketCounts[M]&&(m.bucketCounts[M]=new v.LongBits(c.bucketCounts[M].low>>>0,c.bucketCounts[M].high>>>0).toNumber(!0))}return m},r.toObject=function(c,m){m||(m={});var M={};if((m.arrays||m.defaults)&&(M.bucketCounts=[]),m.defaults&&(M.offset=0),null!=c.offset&&c.hasOwnProperty("offset")&&(M.offset=c.offset),c.bucketCounts&&c.bucketCounts.length){M.bucketCounts=[];for(var D=0;D<c.bucketCounts.length;++D)M.bucketCounts[D]="number"==typeof c.bucketCounts[D]?m.longs===String?String(c.bucketCounts[D]):c.bucketCounts[D]:m.longs===String?v.Long.prototype.toString.call(c.bucketCounts[D]):m.longs===Number?new v.LongBits(c.bucketCounts[D].low>>>0,c.bucketCounts[D].high>>>0).toNumber(!0):c.bucketCounts[D]}return M},r.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},r.getTypeUrl=function(c){return void 0===c&&(c="type.googleapis.com"),c+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},r}(),_}(),P.SummaryDataPoint=function(){function _(i){if(this.attributes=[],this.quantileValues=[],i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.attributes=v.emptyArray,_.prototype.startTimeUnixNano=null,_.prototype.timeUnixNano=null,_.prototype.count=null,_.prototype.sum=null,_.prototype.quantileValues=v.emptyArray,_.prototype.flags=null,_.create=function(r){return new _(r)},_.encode=function(r,a){if(a||(a=d.create()),null!=r.startTimeUnixNano&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&a.uint32(17).fixed64(r.startTimeUnixNano),null!=r.timeUnixNano&&Object.hasOwnProperty.call(r,"timeUnixNano")&&a.uint32(25).fixed64(r.timeUnixNano),null!=r.count&&Object.hasOwnProperty.call(r,"count")&&a.uint32(33).fixed64(r.count),null!=r.sum&&Object.hasOwnProperty.call(r,"sum")&&a.uint32(41).double(r.sum),null!=r.quantileValues&&r.quantileValues.length)for(var c=0;c<r.quantileValues.length;++c)S.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(r.quantileValues[c],a.uint32(50).fork()).ldelim();if(null!=r.attributes&&r.attributes.length)for(c=0;c<r.attributes.length;++c)S.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[c],a.uint32(58).fork()).ldelim();return null!=r.flags&&Object.hasOwnProperty.call(r,"flags")&&a.uint32(64).uint32(r.flags),a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.metrics.v1.SummaryDataPoint;r.pos<c;){var M=r.uint32();switch(M>>>3){case 7:m.attributes&&m.attributes.length||(m.attributes=[]),m.attributes.push(S.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break;case 2:m.startTimeUnixNano=r.fixed64();break;case 3:m.timeUnixNano=r.fixed64();break;case 4:m.count=r.fixed64();break;case 5:m.sum=r.double();break;case 6:m.quantileValues&&m.quantileValues.length||(m.quantileValues=[]),m.quantileValues.push(S.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(r,r.uint32()));break;case 8:m.flags=r.uint32();break;default:r.skipType(7&M)}}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.attributes&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var a=0;a<r.attributes.length;++a)if(c=S.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[a]))return"attributes."+c}if(null!=r.startTimeUnixNano&&r.hasOwnProperty("startTimeUnixNano")&&!v.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&v.isInteger(r.startTimeUnixNano.low)&&v.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(null!=r.timeUnixNano&&r.hasOwnProperty("timeUnixNano")&&!v.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&v.isInteger(r.timeUnixNano.low)&&v.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=r.count&&r.hasOwnProperty("count")&&!v.isInteger(r.count)&&!(r.count&&v.isInteger(r.count.low)&&v.isInteger(r.count.high)))return"count: integer|Long expected";if(null!=r.sum&&r.hasOwnProperty("sum")&&"number"!=typeof r.sum)return"sum: number expected";if(null!=r.quantileValues&&r.hasOwnProperty("quantileValues")){if(!Array.isArray(r.quantileValues))return"quantileValues: array expected";for(a=0;a<r.quantileValues.length;++a){var c;if(c=S.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(r.quantileValues[a]))return"quantileValues."+c}}return null!=r.flags&&r.hasOwnProperty("flags")&&!v.isInteger(r.flags)?"flags: integer expected":null},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.metrics.v1.SummaryDataPoint)return r;var a=new S.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");a.attributes=[];for(var c=0;c<r.attributes.length;++c){if("object"!=typeof r.attributes[c])throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");a.attributes[c]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[c])}}if(null!=r.startTimeUnixNano&&(v.Long?(a.startTimeUnixNano=v.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:"string"==typeof r.startTimeUnixNano?a.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):"number"==typeof r.startTimeUnixNano?a.startTimeUnixNano=r.startTimeUnixNano:"object"==typeof r.startTimeUnixNano&&(a.startTimeUnixNano=new v.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),null!=r.timeUnixNano&&(v.Long?(a.timeUnixNano=v.Long.fromValue(r.timeUnixNano)).unsigned=!1:"string"==typeof r.timeUnixNano?a.timeUnixNano=parseInt(r.timeUnixNano,10):"number"==typeof r.timeUnixNano?a.timeUnixNano=r.timeUnixNano:"object"==typeof r.timeUnixNano&&(a.timeUnixNano=new v.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),null!=r.count&&(v.Long?(a.count=v.Long.fromValue(r.count)).unsigned=!1:"string"==typeof r.count?a.count=parseInt(r.count,10):"number"==typeof r.count?a.count=r.count:"object"==typeof r.count&&(a.count=new v.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber())),null!=r.sum&&(a.sum=Number(r.sum)),r.quantileValues){if(!Array.isArray(r.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");for(a.quantileValues=[],c=0;c<r.quantileValues.length;++c){if("object"!=typeof r.quantileValues[c])throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");a.quantileValues[c]=S.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(r.quantileValues[c])}}return null!=r.flags&&(a.flags=r.flags>>>0),a},_.toObject=function(r,a){a||(a={});var c={};if((a.arrays||a.defaults)&&(c.quantileValues=[],c.attributes=[]),a.defaults){if(v.Long){var m=new v.Long(0,0,!1);c.startTimeUnixNano=a.longs===String?m.toString():a.longs===Number?m.toNumber():m}else c.startTimeUnixNano=a.longs===String?"0":0;v.Long?(m=new v.Long(0,0,!1),c.timeUnixNano=a.longs===String?m.toString():a.longs===Number?m.toNumber():m):c.timeUnixNano=a.longs===String?"0":0,v.Long?(m=new v.Long(0,0,!1),c.count=a.longs===String?m.toString():a.longs===Number?m.toNumber():m):c.count=a.longs===String?"0":0,c.sum=0,c.flags=0}if(null!=r.startTimeUnixNano&&r.hasOwnProperty("startTimeUnixNano")&&(c.startTimeUnixNano="number"==typeof r.startTimeUnixNano?a.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:a.longs===String?v.Long.prototype.toString.call(r.startTimeUnixNano):a.longs===Number?new v.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),null!=r.timeUnixNano&&r.hasOwnProperty("timeUnixNano")&&(c.timeUnixNano="number"==typeof r.timeUnixNano?a.longs===String?String(r.timeUnixNano):r.timeUnixNano:a.longs===String?v.Long.prototype.toString.call(r.timeUnixNano):a.longs===Number?new v.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),null!=r.count&&r.hasOwnProperty("count")&&(c.count="number"==typeof r.count?a.longs===String?String(r.count):r.count:a.longs===String?v.Long.prototype.toString.call(r.count):a.longs===Number?new v.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber():r.count),null!=r.sum&&r.hasOwnProperty("sum")&&(c.sum=a.json&&!isFinite(r.sum)?String(r.sum):r.sum),r.quantileValues&&r.quantileValues.length){c.quantileValues=[];for(var M=0;M<r.quantileValues.length;++M)c.quantileValues[M]=S.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(r.quantileValues[M],a)}if(r.attributes&&r.attributes.length)for(c.attributes=[],M=0;M<r.attributes.length;++M)c.attributes[M]=S.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[M],a);return null!=r.flags&&r.hasOwnProperty("flags")&&(c.flags=r.flags),c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},_.ValueAtQuantile=function(){function i(r){if(r)for(var a=Object.keys(r),c=0;c<a.length;++c)null!=r[a[c]]&&(this[a[c]]=r[a[c]])}return i.prototype.quantile=null,i.prototype.value=null,i.create=function(a){return new i(a)},i.encode=function(a,c){return c||(c=d.create()),null!=a.quantile&&Object.hasOwnProperty.call(a,"quantile")&&c.uint32(9).double(a.quantile),null!=a.value&&Object.hasOwnProperty.call(a,"value")&&c.uint32(17).double(a.value),c},i.encodeDelimited=function(a,c){return this.encode(a,c).ldelim()},i.decode=function(a,c){a instanceof l||(a=l.create(a));for(var m=void 0===c?a.len:a.pos+c,M=new S.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;a.pos<m;){var D=a.uint32();switch(D>>>3){case 1:M.quantile=a.double();break;case 2:M.value=a.double();break;default:a.skipType(7&D)}}return M},i.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},i.verify=function(a){return"object"!=typeof a||null===a?"object expected":null!=a.quantile&&a.hasOwnProperty("quantile")&&"number"!=typeof a.quantile?"quantile: number expected":null!=a.value&&a.hasOwnProperty("value")&&"number"!=typeof a.value?"value: number expected":null},i.fromObject=function(a){if(a instanceof S.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return a;var c=new S.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return null!=a.quantile&&(c.quantile=Number(a.quantile)),null!=a.value&&(c.value=Number(a.value)),c},i.toObject=function(a,c){c||(c={});var m={};return c.defaults&&(m.quantile=0,m.value=0),null!=a.quantile&&a.hasOwnProperty("quantile")&&(m.quantile=c.json&&!isFinite(a.quantile)?String(a.quantile):a.quantile),null!=a.value&&a.hasOwnProperty("value")&&(m.value=c.json&&!isFinite(a.value)?String(a.value):a.value),m},i.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},i.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},i}(),_}(),P.Exemplar=function(){function _(r){if(this.filteredAttributes=[],r)for(var a=Object.keys(r),c=0;c<a.length;++c)null!=r[a[c]]&&(this[a[c]]=r[a[c]])}var i;return _.prototype.filteredAttributes=v.emptyArray,_.prototype.timeUnixNano=null,_.prototype.asDouble=null,_.prototype.asInt=null,_.prototype.spanId=null,_.prototype.traceId=null,Object.defineProperty(_.prototype,"value",{get:v.oneOfGetter(i=["asDouble","asInt"]),set:v.oneOfSetter(i)}),_.create=function(a){return new _(a)},_.encode=function(a,c){if(c||(c=d.create()),null!=a.timeUnixNano&&Object.hasOwnProperty.call(a,"timeUnixNano")&&c.uint32(17).fixed64(a.timeUnixNano),null!=a.asDouble&&Object.hasOwnProperty.call(a,"asDouble")&&c.uint32(25).double(a.asDouble),null!=a.spanId&&Object.hasOwnProperty.call(a,"spanId")&&c.uint32(34).bytes(a.spanId),null!=a.traceId&&Object.hasOwnProperty.call(a,"traceId")&&c.uint32(42).bytes(a.traceId),null!=a.asInt&&Object.hasOwnProperty.call(a,"asInt")&&c.uint32(49).sfixed64(a.asInt),null!=a.filteredAttributes&&a.filteredAttributes.length)for(var m=0;m<a.filteredAttributes.length;++m)S.opentelemetry.proto.common.v1.KeyValue.encode(a.filteredAttributes[m],c.uint32(58).fork()).ldelim();return c},_.encodeDelimited=function(a,c){return this.encode(a,c).ldelim()},_.decode=function(a,c){a instanceof l||(a=l.create(a));for(var m=void 0===c?a.len:a.pos+c,M=new S.opentelemetry.proto.metrics.v1.Exemplar;a.pos<m;){var D=a.uint32();switch(D>>>3){case 7:M.filteredAttributes&&M.filteredAttributes.length||(M.filteredAttributes=[]),M.filteredAttributes.push(S.opentelemetry.proto.common.v1.KeyValue.decode(a,a.uint32()));break;case 2:M.timeUnixNano=a.fixed64();break;case 3:M.asDouble=a.double();break;case 6:M.asInt=a.sfixed64();break;case 4:M.spanId=a.bytes();break;case 5:M.traceId=a.bytes();break;default:a.skipType(7&D)}}return M},_.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},_.verify=function(a){if("object"!=typeof a||null===a)return"object expected";var c={};if(null!=a.filteredAttributes&&a.hasOwnProperty("filteredAttributes")){if(!Array.isArray(a.filteredAttributes))return"filteredAttributes: array expected";for(var m=0;m<a.filteredAttributes.length;++m){var M=S.opentelemetry.proto.common.v1.KeyValue.verify(a.filteredAttributes[m]);if(M)return"filteredAttributes."+M}}if(null!=a.timeUnixNano&&a.hasOwnProperty("timeUnixNano")&&!v.isInteger(a.timeUnixNano)&&!(a.timeUnixNano&&v.isInteger(a.timeUnixNano.low)&&v.isInteger(a.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=a.asDouble&&a.hasOwnProperty("asDouble")&&(c.value=1,"number"!=typeof a.asDouble))return"asDouble: number expected";if(null!=a.asInt&&a.hasOwnProperty("asInt")){if(1===c.value)return"value: multiple values";if(c.value=1,!(v.isInteger(a.asInt)||a.asInt&&v.isInteger(a.asInt.low)&&v.isInteger(a.asInt.high)))return"asInt: integer|Long expected"}return null!=a.spanId&&a.hasOwnProperty("spanId")&&!(a.spanId&&"number"==typeof a.spanId.length||v.isString(a.spanId))?"spanId: buffer expected":null!=a.traceId&&a.hasOwnProperty("traceId")&&!(a.traceId&&"number"==typeof a.traceId.length||v.isString(a.traceId))?"traceId: buffer expected":null},_.fromObject=function(a){if(a instanceof S.opentelemetry.proto.metrics.v1.Exemplar)return a;var c=new S.opentelemetry.proto.metrics.v1.Exemplar;if(a.filteredAttributes){if(!Array.isArray(a.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");c.filteredAttributes=[];for(var m=0;m<a.filteredAttributes.length;++m){if("object"!=typeof a.filteredAttributes[m])throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");c.filteredAttributes[m]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(a.filteredAttributes[m])}}return null!=a.timeUnixNano&&(v.Long?(c.timeUnixNano=v.Long.fromValue(a.timeUnixNano)).unsigned=!1:"string"==typeof a.timeUnixNano?c.timeUnixNano=parseInt(a.timeUnixNano,10):"number"==typeof a.timeUnixNano?c.timeUnixNano=a.timeUnixNano:"object"==typeof a.timeUnixNano&&(c.timeUnixNano=new v.LongBits(a.timeUnixNano.low>>>0,a.timeUnixNano.high>>>0).toNumber())),null!=a.asDouble&&(c.asDouble=Number(a.asDouble)),null!=a.asInt&&(v.Long?(c.asInt=v.Long.fromValue(a.asInt)).unsigned=!1:"string"==typeof a.asInt?c.asInt=parseInt(a.asInt,10):"number"==typeof a.asInt?c.asInt=a.asInt:"object"==typeof a.asInt&&(c.asInt=new v.LongBits(a.asInt.low>>>0,a.asInt.high>>>0).toNumber())),null!=a.spanId&&("string"==typeof a.spanId?v.base64.decode(a.spanId,c.spanId=v.newBuffer(v.base64.length(a.spanId)),0):a.spanId.length>=0&&(c.spanId=a.spanId)),null!=a.traceId&&("string"==typeof a.traceId?v.base64.decode(a.traceId,c.traceId=v.newBuffer(v.base64.length(a.traceId)),0):a.traceId.length>=0&&(c.traceId=a.traceId)),c},_.toObject=function(a,c){c||(c={});var m={};if((c.arrays||c.defaults)&&(m.filteredAttributes=[]),c.defaults){if(v.Long){var M=new v.Long(0,0,!1);m.timeUnixNano=c.longs===String?M.toString():c.longs===Number?M.toNumber():M}else m.timeUnixNano=c.longs===String?"0":0;c.bytes===String?m.spanId="":(m.spanId=[],c.bytes!==Array&&(m.spanId=v.newBuffer(m.spanId))),c.bytes===String?m.traceId="":(m.traceId=[],c.bytes!==Array&&(m.traceId=v.newBuffer(m.traceId)))}if(null!=a.timeUnixNano&&a.hasOwnProperty("timeUnixNano")&&(m.timeUnixNano="number"==typeof a.timeUnixNano?c.longs===String?String(a.timeUnixNano):a.timeUnixNano:c.longs===String?v.Long.prototype.toString.call(a.timeUnixNano):c.longs===Number?new v.LongBits(a.timeUnixNano.low>>>0,a.timeUnixNano.high>>>0).toNumber():a.timeUnixNano),null!=a.asDouble&&a.hasOwnProperty("asDouble")&&(m.asDouble=c.json&&!isFinite(a.asDouble)?String(a.asDouble):a.asDouble,c.oneofs&&(m.value="asDouble")),null!=a.spanId&&a.hasOwnProperty("spanId")&&(m.spanId=c.bytes===String?v.base64.encode(a.spanId,0,a.spanId.length):c.bytes===Array?Array.prototype.slice.call(a.spanId):a.spanId),null!=a.traceId&&a.hasOwnProperty("traceId")&&(m.traceId=c.bytes===String?v.base64.encode(a.traceId,0,a.traceId.length):c.bytes===Array?Array.prototype.slice.call(a.traceId):a.traceId),null!=a.asInt&&a.hasOwnProperty("asInt")&&(m.asInt="number"==typeof a.asInt?c.longs===String?String(a.asInt):a.asInt:c.longs===String?v.Long.prototype.toString.call(a.asInt):c.longs===Number?new v.LongBits(a.asInt.low>>>0,a.asInt.high>>>0).toNumber():a.asInt,c.oneofs&&(m.value="asInt")),a.filteredAttributes&&a.filteredAttributes.length){m.filteredAttributes=[];for(var D=0;D<a.filteredAttributes.length;++D)m.filteredAttributes[D]=S.opentelemetry.proto.common.v1.KeyValue.toObject(a.filteredAttributes[D],c)}return m},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.metrics.v1.Exemplar"},_}(),P}(),O}(),f.logs=function(){var O={};return O.v1=function(){var _,i,P={};return P.LogsData=function(){function _(i){if(this.resourceLogs=[],i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.resourceLogs=v.emptyArray,_.create=function(r){return new _(r)},_.encode=function(r,a){if(a||(a=d.create()),null!=r.resourceLogs&&r.resourceLogs.length)for(var c=0;c<r.resourceLogs.length;++c)S.opentelemetry.proto.logs.v1.ResourceLogs.encode(r.resourceLogs[c],a.uint32(10).fork()).ldelim();return a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.logs.v1.LogsData;r.pos<c;){var M=r.uint32();M>>>3==1?(m.resourceLogs&&m.resourceLogs.length||(m.resourceLogs=[]),m.resourceLogs.push(S.opentelemetry.proto.logs.v1.ResourceLogs.decode(r,r.uint32()))):r.skipType(7&M)}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.resourceLogs&&r.hasOwnProperty("resourceLogs")){if(!Array.isArray(r.resourceLogs))return"resourceLogs: array expected";for(var a=0;a<r.resourceLogs.length;++a){var c=S.opentelemetry.proto.logs.v1.ResourceLogs.verify(r.resourceLogs[a]);if(c)return"resourceLogs."+c}}return null},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.logs.v1.LogsData)return r;var a=new S.opentelemetry.proto.logs.v1.LogsData;if(r.resourceLogs){if(!Array.isArray(r.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");a.resourceLogs=[];for(var c=0;c<r.resourceLogs.length;++c){if("object"!=typeof r.resourceLogs[c])throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");a.resourceLogs[c]=S.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(r.resourceLogs[c])}}return a},_.toObject=function(r,a){a||(a={});var c={};if((a.arrays||a.defaults)&&(c.resourceLogs=[]),r.resourceLogs&&r.resourceLogs.length){c.resourceLogs=[];for(var m=0;m<r.resourceLogs.length;++m)c.resourceLogs[m]=S.opentelemetry.proto.logs.v1.ResourceLogs.toObject(r.resourceLogs[m],a)}return c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.logs.v1.LogsData"},_}(),P.ResourceLogs=function(){function _(i){if(this.scopeLogs=[],i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.resource=null,_.prototype.scopeLogs=v.emptyArray,_.prototype.schemaUrl=null,_.create=function(r){return new _(r)},_.encode=function(r,a){if(a||(a=d.create()),null!=r.resource&&Object.hasOwnProperty.call(r,"resource")&&S.opentelemetry.proto.resource.v1.Resource.encode(r.resource,a.uint32(10).fork()).ldelim(),null!=r.scopeLogs&&r.scopeLogs.length)for(var c=0;c<r.scopeLogs.length;++c)S.opentelemetry.proto.logs.v1.ScopeLogs.encode(r.scopeLogs[c],a.uint32(18).fork()).ldelim();return null!=r.schemaUrl&&Object.hasOwnProperty.call(r,"schemaUrl")&&a.uint32(26).string(r.schemaUrl),a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.logs.v1.ResourceLogs;r.pos<c;){var M=r.uint32();switch(M>>>3){case 1:m.resource=S.opentelemetry.proto.resource.v1.Resource.decode(r,r.uint32());break;case 2:m.scopeLogs&&m.scopeLogs.length||(m.scopeLogs=[]),m.scopeLogs.push(S.opentelemetry.proto.logs.v1.ScopeLogs.decode(r,r.uint32()));break;case 3:m.schemaUrl=r.string();break;default:r.skipType(7&M)}}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.resource&&r.hasOwnProperty("resource")&&(a=S.opentelemetry.proto.resource.v1.Resource.verify(r.resource)))return"resource."+a;if(null!=r.scopeLogs&&r.hasOwnProperty("scopeLogs")){if(!Array.isArray(r.scopeLogs))return"scopeLogs: array expected";for(var c=0;c<r.scopeLogs.length;++c){var a;if(a=S.opentelemetry.proto.logs.v1.ScopeLogs.verify(r.scopeLogs[c]))return"scopeLogs."+a}}return null!=r.schemaUrl&&r.hasOwnProperty("schemaUrl")&&!v.isString(r.schemaUrl)?"schemaUrl: string expected":null},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.logs.v1.ResourceLogs)return r;var a=new S.opentelemetry.proto.logs.v1.ResourceLogs;if(null!=r.resource){if("object"!=typeof r.resource)throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");a.resource=S.opentelemetry.proto.resource.v1.Resource.fromObject(r.resource)}if(r.scopeLogs){if(!Array.isArray(r.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");a.scopeLogs=[];for(var c=0;c<r.scopeLogs.length;++c){if("object"!=typeof r.scopeLogs[c])throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");a.scopeLogs[c]=S.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(r.scopeLogs[c])}}return null!=r.schemaUrl&&(a.schemaUrl=String(r.schemaUrl)),a},_.toObject=function(r,a){a||(a={});var c={};if((a.arrays||a.defaults)&&(c.scopeLogs=[]),a.defaults&&(c.resource=null,c.schemaUrl=""),null!=r.resource&&r.hasOwnProperty("resource")&&(c.resource=S.opentelemetry.proto.resource.v1.Resource.toObject(r.resource,a)),r.scopeLogs&&r.scopeLogs.length){c.scopeLogs=[];for(var m=0;m<r.scopeLogs.length;++m)c.scopeLogs[m]=S.opentelemetry.proto.logs.v1.ScopeLogs.toObject(r.scopeLogs[m],a)}return null!=r.schemaUrl&&r.hasOwnProperty("schemaUrl")&&(c.schemaUrl=r.schemaUrl),c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.logs.v1.ResourceLogs"},_}(),P.ScopeLogs=function(){function _(i){if(this.logRecords=[],i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.scope=null,_.prototype.logRecords=v.emptyArray,_.prototype.schemaUrl=null,_.create=function(r){return new _(r)},_.encode=function(r,a){if(a||(a=d.create()),null!=r.scope&&Object.hasOwnProperty.call(r,"scope")&&S.opentelemetry.proto.common.v1.InstrumentationScope.encode(r.scope,a.uint32(10).fork()).ldelim(),null!=r.logRecords&&r.logRecords.length)for(var c=0;c<r.logRecords.length;++c)S.opentelemetry.proto.logs.v1.LogRecord.encode(r.logRecords[c],a.uint32(18).fork()).ldelim();return null!=r.schemaUrl&&Object.hasOwnProperty.call(r,"schemaUrl")&&a.uint32(26).string(r.schemaUrl),a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.logs.v1.ScopeLogs;r.pos<c;){var M=r.uint32();switch(M>>>3){case 1:m.scope=S.opentelemetry.proto.common.v1.InstrumentationScope.decode(r,r.uint32());break;case 2:m.logRecords&&m.logRecords.length||(m.logRecords=[]),m.logRecords.push(S.opentelemetry.proto.logs.v1.LogRecord.decode(r,r.uint32()));break;case 3:m.schemaUrl=r.string();break;default:r.skipType(7&M)}}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.scope&&r.hasOwnProperty("scope")&&(a=S.opentelemetry.proto.common.v1.InstrumentationScope.verify(r.scope)))return"scope."+a;if(null!=r.logRecords&&r.hasOwnProperty("logRecords")){if(!Array.isArray(r.logRecords))return"logRecords: array expected";for(var c=0;c<r.logRecords.length;++c){var a;if(a=S.opentelemetry.proto.logs.v1.LogRecord.verify(r.logRecords[c]))return"logRecords."+a}}return null!=r.schemaUrl&&r.hasOwnProperty("schemaUrl")&&!v.isString(r.schemaUrl)?"schemaUrl: string expected":null},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.logs.v1.ScopeLogs)return r;var a=new S.opentelemetry.proto.logs.v1.ScopeLogs;if(null!=r.scope){if("object"!=typeof r.scope)throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");a.scope=S.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(r.scope)}if(r.logRecords){if(!Array.isArray(r.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");a.logRecords=[];for(var c=0;c<r.logRecords.length;++c){if("object"!=typeof r.logRecords[c])throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");a.logRecords[c]=S.opentelemetry.proto.logs.v1.LogRecord.fromObject(r.logRecords[c])}}return null!=r.schemaUrl&&(a.schemaUrl=String(r.schemaUrl)),a},_.toObject=function(r,a){a||(a={});var c={};if((a.arrays||a.defaults)&&(c.logRecords=[]),a.defaults&&(c.scope=null,c.schemaUrl=""),null!=r.scope&&r.hasOwnProperty("scope")&&(c.scope=S.opentelemetry.proto.common.v1.InstrumentationScope.toObject(r.scope,a)),r.logRecords&&r.logRecords.length){c.logRecords=[];for(var m=0;m<r.logRecords.length;++m)c.logRecords[m]=S.opentelemetry.proto.logs.v1.LogRecord.toObject(r.logRecords[m],a)}return null!=r.schemaUrl&&r.hasOwnProperty("schemaUrl")&&(c.schemaUrl=r.schemaUrl),c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.logs.v1.ScopeLogs"},_}(),P.SeverityNumber=(_={},(i=Object.create(_))[_[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,i[_[1]="SEVERITY_NUMBER_TRACE"]=1,i[_[2]="SEVERITY_NUMBER_TRACE2"]=2,i[_[3]="SEVERITY_NUMBER_TRACE3"]=3,i[_[4]="SEVERITY_NUMBER_TRACE4"]=4,i[_[5]="SEVERITY_NUMBER_DEBUG"]=5,i[_[6]="SEVERITY_NUMBER_DEBUG2"]=6,i[_[7]="SEVERITY_NUMBER_DEBUG3"]=7,i[_[8]="SEVERITY_NUMBER_DEBUG4"]=8,i[_[9]="SEVERITY_NUMBER_INFO"]=9,i[_[10]="SEVERITY_NUMBER_INFO2"]=10,i[_[11]="SEVERITY_NUMBER_INFO3"]=11,i[_[12]="SEVERITY_NUMBER_INFO4"]=12,i[_[13]="SEVERITY_NUMBER_WARN"]=13,i[_[14]="SEVERITY_NUMBER_WARN2"]=14,i[_[15]="SEVERITY_NUMBER_WARN3"]=15,i[_[16]="SEVERITY_NUMBER_WARN4"]=16,i[_[17]="SEVERITY_NUMBER_ERROR"]=17,i[_[18]="SEVERITY_NUMBER_ERROR2"]=18,i[_[19]="SEVERITY_NUMBER_ERROR3"]=19,i[_[20]="SEVERITY_NUMBER_ERROR4"]=20,i[_[21]="SEVERITY_NUMBER_FATAL"]=21,i[_[22]="SEVERITY_NUMBER_FATAL2"]=22,i[_[23]="SEVERITY_NUMBER_FATAL3"]=23,i[_[24]="SEVERITY_NUMBER_FATAL4"]=24,i),P.LogRecordFlags=function(){var _={},i=Object.create(_);return i[_[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,i[_[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,i}(),P.LogRecord=function(){function _(i){if(this.attributes=[],i)for(var r=Object.keys(i),a=0;a<r.length;++a)null!=i[r[a]]&&(this[r[a]]=i[r[a]])}return _.prototype.timeUnixNano=null,_.prototype.observedTimeUnixNano=null,_.prototype.severityNumber=null,_.prototype.severityText=null,_.prototype.body=null,_.prototype.attributes=v.emptyArray,_.prototype.droppedAttributesCount=null,_.prototype.flags=null,_.prototype.traceId=null,_.prototype.spanId=null,_.create=function(r){return new _(r)},_.encode=function(r,a){if(a||(a=d.create()),null!=r.timeUnixNano&&Object.hasOwnProperty.call(r,"timeUnixNano")&&a.uint32(9).fixed64(r.timeUnixNano),null!=r.severityNumber&&Object.hasOwnProperty.call(r,"severityNumber")&&a.uint32(16).int32(r.severityNumber),null!=r.severityText&&Object.hasOwnProperty.call(r,"severityText")&&a.uint32(26).string(r.severityText),null!=r.body&&Object.hasOwnProperty.call(r,"body")&&S.opentelemetry.proto.common.v1.AnyValue.encode(r.body,a.uint32(42).fork()).ldelim(),null!=r.attributes&&r.attributes.length)for(var c=0;c<r.attributes.length;++c)S.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[c],a.uint32(50).fork()).ldelim();return null!=r.droppedAttributesCount&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&a.uint32(56).uint32(r.droppedAttributesCount),null!=r.flags&&Object.hasOwnProperty.call(r,"flags")&&a.uint32(69).fixed32(r.flags),null!=r.traceId&&Object.hasOwnProperty.call(r,"traceId")&&a.uint32(74).bytes(r.traceId),null!=r.spanId&&Object.hasOwnProperty.call(r,"spanId")&&a.uint32(82).bytes(r.spanId),null!=r.observedTimeUnixNano&&Object.hasOwnProperty.call(r,"observedTimeUnixNano")&&a.uint32(89).fixed64(r.observedTimeUnixNano),a},_.encodeDelimited=function(r,a){return this.encode(r,a).ldelim()},_.decode=function(r,a){r instanceof l||(r=l.create(r));for(var c=void 0===a?r.len:r.pos+a,m=new S.opentelemetry.proto.logs.v1.LogRecord;r.pos<c;){var M=r.uint32();switch(M>>>3){case 1:m.timeUnixNano=r.fixed64();break;case 11:m.observedTimeUnixNano=r.fixed64();break;case 2:m.severityNumber=r.int32();break;case 3:m.severityText=r.string();break;case 5:m.body=S.opentelemetry.proto.common.v1.AnyValue.decode(r,r.uint32());break;case 6:m.attributes&&m.attributes.length||(m.attributes=[]),m.attributes.push(S.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break;case 7:m.droppedAttributesCount=r.uint32();break;case 8:m.flags=r.fixed32();break;case 9:m.traceId=r.bytes();break;case 10:m.spanId=r.bytes();break;default:r.skipType(7&M)}}return m},_.decodeDelimited=function(r){return r instanceof l||(r=new l(r)),this.decode(r,r.uint32())},_.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.timeUnixNano&&r.hasOwnProperty("timeUnixNano")&&!v.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&v.isInteger(r.timeUnixNano.low)&&v.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=r.observedTimeUnixNano&&r.hasOwnProperty("observedTimeUnixNano")&&!v.isInteger(r.observedTimeUnixNano)&&!(r.observedTimeUnixNano&&v.isInteger(r.observedTimeUnixNano.low)&&v.isInteger(r.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(null!=r.severityNumber&&r.hasOwnProperty("severityNumber"))switch(r.severityNumber){default:return"severityNumber: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:}if(null!=r.severityText&&r.hasOwnProperty("severityText")&&!v.isString(r.severityText))return"severityText: string expected";if(null!=r.body&&r.hasOwnProperty("body")&&(a=S.opentelemetry.proto.common.v1.AnyValue.verify(r.body)))return"body."+a;if(null!=r.attributes&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var c=0;c<r.attributes.length;++c){var a;if(a=S.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[c]))return"attributes."+a}}return null!=r.droppedAttributesCount&&r.hasOwnProperty("droppedAttributesCount")&&!v.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null!=r.flags&&r.hasOwnProperty("flags")&&!v.isInteger(r.flags)?"flags: integer expected":null!=r.traceId&&r.hasOwnProperty("traceId")&&!(r.traceId&&"number"==typeof r.traceId.length||v.isString(r.traceId))?"traceId: buffer expected":null!=r.spanId&&r.hasOwnProperty("spanId")&&!(r.spanId&&"number"==typeof r.spanId.length||v.isString(r.spanId))?"spanId: buffer expected":null},_.fromObject=function(r){if(r instanceof S.opentelemetry.proto.logs.v1.LogRecord)return r;var a=new S.opentelemetry.proto.logs.v1.LogRecord;switch(null!=r.timeUnixNano&&(v.Long?(a.timeUnixNano=v.Long.fromValue(r.timeUnixNano)).unsigned=!1:"string"==typeof r.timeUnixNano?a.timeUnixNano=parseInt(r.timeUnixNano,10):"number"==typeof r.timeUnixNano?a.timeUnixNano=r.timeUnixNano:"object"==typeof r.timeUnixNano&&(a.timeUnixNano=new v.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),null!=r.observedTimeUnixNano&&(v.Long?(a.observedTimeUnixNano=v.Long.fromValue(r.observedTimeUnixNano)).unsigned=!1:"string"==typeof r.observedTimeUnixNano?a.observedTimeUnixNano=parseInt(r.observedTimeUnixNano,10):"number"==typeof r.observedTimeUnixNano?a.observedTimeUnixNano=r.observedTimeUnixNano:"object"==typeof r.observedTimeUnixNano&&(a.observedTimeUnixNano=new v.LongBits(r.observedTimeUnixNano.low>>>0,r.observedTimeUnixNano.high>>>0).toNumber())),r.severityNumber){default:if("number"==typeof r.severityNumber){a.severityNumber=r.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:a.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:a.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:a.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:a.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:a.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:a.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:a.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:a.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:a.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:a.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:a.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:a.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:a.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:a.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:a.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:a.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:a.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:a.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:a.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:a.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:a.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:a.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:a.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:a.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:a.severityNumber=24}if(null!=r.severityText&&(a.severityText=String(r.severityText)),null!=r.body){if("object"!=typeof r.body)throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");a.body=S.opentelemetry.proto.common.v1.AnyValue.fromObject(r.body)}if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");a.attributes=[];for(var c=0;c<r.attributes.length;++c){if("object"!=typeof r.attributes[c])throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");a.attributes[c]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[c])}}return null!=r.droppedAttributesCount&&(a.droppedAttributesCount=r.droppedAttributesCount>>>0),null!=r.flags&&(a.flags=r.flags>>>0),null!=r.traceId&&("string"==typeof r.traceId?v.base64.decode(r.traceId,a.traceId=v.newBuffer(v.base64.length(r.traceId)),0):r.traceId.length>=0&&(a.traceId=r.traceId)),null!=r.spanId&&("string"==typeof r.spanId?v.base64.decode(r.spanId,a.spanId=v.newBuffer(v.base64.length(r.spanId)),0):r.spanId.length>=0&&(a.spanId=r.spanId)),a},_.toObject=function(r,a){a||(a={});var c={};if((a.arrays||a.defaults)&&(c.attributes=[]),a.defaults){if(v.Long){var m=new v.Long(0,0,!1);c.timeUnixNano=a.longs===String?m.toString():a.longs===Number?m.toNumber():m}else c.timeUnixNano=a.longs===String?"0":0;c.severityNumber=a.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,c.severityText="",c.body=null,c.droppedAttributesCount=0,c.flags=0,a.bytes===String?c.traceId="":(c.traceId=[],a.bytes!==Array&&(c.traceId=v.newBuffer(c.traceId))),a.bytes===String?c.spanId="":(c.spanId=[],a.bytes!==Array&&(c.spanId=v.newBuffer(c.spanId))),v.Long?(m=new v.Long(0,0,!1),c.observedTimeUnixNano=a.longs===String?m.toString():a.longs===Number?m.toNumber():m):c.observedTimeUnixNano=a.longs===String?"0":0}if(null!=r.timeUnixNano&&r.hasOwnProperty("timeUnixNano")&&(c.timeUnixNano="number"==typeof r.timeUnixNano?a.longs===String?String(r.timeUnixNano):r.timeUnixNano:a.longs===String?v.Long.prototype.toString.call(r.timeUnixNano):a.longs===Number?new v.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),null!=r.severityNumber&&r.hasOwnProperty("severityNumber")&&(c.severityNumber=a.enums===String?void 0===S.opentelemetry.proto.logs.v1.SeverityNumber[r.severityNumber]?r.severityNumber:S.opentelemetry.proto.logs.v1.SeverityNumber[r.severityNumber]:r.severityNumber),null!=r.severityText&&r.hasOwnProperty("severityText")&&(c.severityText=r.severityText),null!=r.body&&r.hasOwnProperty("body")&&(c.body=S.opentelemetry.proto.common.v1.AnyValue.toObject(r.body,a)),r.attributes&&r.attributes.length){c.attributes=[];for(var M=0;M<r.attributes.length;++M)c.attributes[M]=S.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[M],a)}return null!=r.droppedAttributesCount&&r.hasOwnProperty("droppedAttributesCount")&&(c.droppedAttributesCount=r.droppedAttributesCount),null!=r.flags&&r.hasOwnProperty("flags")&&(c.flags=r.flags),null!=r.traceId&&r.hasOwnProperty("traceId")&&(c.traceId=a.bytes===String?v.base64.encode(r.traceId,0,r.traceId.length):a.bytes===Array?Array.prototype.slice.call(r.traceId):r.traceId),null!=r.spanId&&r.hasOwnProperty("spanId")&&(c.spanId=a.bytes===String?v.base64.encode(r.spanId,0,r.spanId.length):a.bytes===Array?Array.prototype.slice.call(r.spanId):r.spanId),null!=r.observedTimeUnixNano&&r.hasOwnProperty("observedTimeUnixNano")&&(c.observedTimeUnixNano="number"==typeof r.observedTimeUnixNano?a.longs===String?String(r.observedTimeUnixNano):r.observedTimeUnixNano:a.longs===String?v.Long.prototype.toString.call(r.observedTimeUnixNano):a.longs===Number?new v.LongBits(r.observedTimeUnixNano.low>>>0,r.observedTimeUnixNano.high>>>0).toNumber():r.observedTimeUnixNano),c},_.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},_.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.logs.v1.LogRecord"},_}(),P}(),O}(),f),y),Bt.exports=S},23403:(Bt,z,s)=>{"use strict";s.d(z,{F:()=>P});var n=s(40698),l=s(23413),d=s(91085),v=s(99583),S=function(){return S=Object.assign||function(_){for(var i,r=1,a=arguments.length;r<a;r++)for(var c in i=arguments[r])Object.prototype.hasOwnProperty.call(i,c)&&(_[c]=i[c]);return _},S.apply(this,arguments)},P=function(){function _(i,r){var c,a=this;this._attributes=i,this.asyncAttributesPending=null!=r,this._syncAttributes=null!==(c=this._attributes)&&void 0!==c?c:{},this._asyncAttributesPromise=r?.then(function(m){return a._attributes=Object.assign({},a._attributes,m),a.asyncAttributesPending=!1,m},function(m){return n.s.debug("a resource's async attributes promise rejected: %s",m),a.asyncAttributesPending=!1,{}})}return _.empty=function(){return _.EMPTY},_.default=function(){var i;return new _(((i={})[l.AV]=(0,v.m)(),i[l.Pl]=d.q[l.Pl],i[l.$L]=d.q[l.$L],i[l.y$]=d.q[l.y$],i))},Object.defineProperty(_.prototype,"attributes",{get:function(){var i;return this.asyncAttributesPending&&n.s.error("Accessing resource attributes before async attributes settled"),null!==(i=this._attributes)&&void 0!==i?i:{}},enumerable:!1,configurable:!0}),_.prototype.waitForAsyncAttributes=function(){return function(_,i,r,a){return new(r||(r=Promise))(function(m,M){function D(V){try{U(a.next(V))}catch(T){M(T)}}function I(V){try{U(a.throw(V))}catch(T){M(T)}}function U(V){V.done?m(V.value):function c(m){return m instanceof r?m:new r(function(M){M(m)})}(V.value).then(D,I)}U((a=a.apply(_,i||[])).next())})}(this,void 0,void 0,function(){return function(_,i){var a,c,m,M,r={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return M={next:D(0),throw:D(1),return:D(2)},"function"==typeof Symbol&&(M[Symbol.iterator]=function(){return this}),M;function D(U){return function(V){return function I(U){if(a)throw new TypeError("Generator is already executing.");for(;r;)try{if(a=1,c&&(m=2&U[0]?c.return:U[0]?c.throw||((m=c.return)&&m.call(c),0):c.next)&&!(m=m.call(c,U[1])).done)return m;switch(c=0,m&&(U=[2&U[0],m.value]),U[0]){case 0:case 1:m=U;break;case 4:return r.label++,{value:U[1],done:!1};case 5:r.label++,c=U[1],U=[0];continue;case 7:U=r.ops.pop(),r.trys.pop();continue;default:if(!(m=(m=r.trys).length>0&&m[m.length-1])&&(6===U[0]||2===U[0])){r=0;continue}if(3===U[0]&&(!m||U[1]>m[0]&&U[1]<m[3])){r.label=U[1];break}if(6===U[0]&&r.label<m[1]){r.label=m[1],m=U;break}if(m&&r.label<m[2]){r.label=m[2],r.ops.push(U);break}m[2]&&r.ops.pop(),r.trys.pop();continue}U=i.call(_,r)}catch(V){U=[6,V],c=0}finally{a=m=0}if(5&U[0])throw U[1];return{value:U[0]?U[1]:void 0,done:!0}}([U,V])}}}(this,function(i){switch(i.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})},_.prototype.merge=function(i){var a,r=this;if(!i)return this;var c=S(S({},this._syncAttributes),null!==(a=i._syncAttributes)&&void 0!==a?a:i.attributes);if(!this._asyncAttributesPromise&&!i._asyncAttributesPromise)return new _(c);var m=Promise.all([this._asyncAttributesPromise,i._asyncAttributesPromise]).then(function(M){var D,I=function(_,i){var r="function"==typeof Symbol&&_[Symbol.iterator];if(!r)return _;var c,M,a=r.call(_),m=[];try{for(;(void 0===i||i-- >0)&&!(c=a.next()).done;)m.push(c.value)}catch(D){M={error:D}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(M)throw M.error}}return m}(M,2),U=I[0],V=I[1];return S(S(S(S({},r._syncAttributes),U),null!==(D=i._syncAttributes)&&void 0!==D?D:i.attributes),V)});return new _(c,m)},_.EMPTY=new _({}),_}()},14656:(Bt,z,s)=>{"use strict";s.r(z),s.d(z,{Resource:()=>n.F,browserDetector:()=>P,browserDetectorSync:()=>f,defaultServiceName:()=>l.m,detectResources:()=>re,detectResourcesSync:()=>ie,envDetector:()=>M,envDetectorSync:()=>c,hostDetector:()=>T,hostDetectorSync:()=>N,osDetector:()=>L,osDetectorSync:()=>E,processDetector:()=>g,processDetectorSync:()=>R,serviceInstanceIdDetectorSync:()=>B});var n=s(23403),l=s(99583),d=s(23413),v=s(40698),S=function(){return S=Object.assign||function(ue){for(var se,Z=1,Se=arguments.length;Z<Se;Z++)for(var Ce in se=arguments[Z])Object.prototype.hasOwnProperty.call(se,Ce)&&(ue[Ce]=se[Ce]);return ue},S.apply(this,arguments)},f=new(function(){function ue(){}return ue.prototype.detect=function(se){var Z,Se,Ce,Be;if(!(typeof navigator<"u"&&void 0===(null===(Ce=null===(Se=global.process)||void 0===Se?void 0:Se.versions)||void 0===Ce?void 0:Ce.node)&&void 0===(null===(Be=global.Bun)||void 0===Be?void 0:Be.version)))return n.F.empty();var He=((Z={})[d._2.PROCESS_RUNTIME_NAME]="browser",Z[d._2.PROCESS_RUNTIME_DESCRIPTION]="Web Browser",Z[d._2.PROCESS_RUNTIME_VERSION]=navigator.userAgent,Z);return this._getResourceAttributes(He,se)},ue.prototype._getResourceAttributes=function(se,Z){return""===se[d._2.PROCESS_RUNTIME_VERSION]?(v.s.debug("BrowserDetector failed: Unable to find required browser resources. "),n.F.empty()):new n.F(S({},se))},ue}()),P=new(function(){function ue(){}return ue.prototype.detect=function(se){return Promise.resolve(f.detect(se))},ue}()),_=s(75701),r=function(ue,se){var Z="function"==typeof Symbol&&ue[Symbol.iterator];if(!Z)return ue;var Ce,Xe,Se=Z.call(ue),Be=[];try{for(;(void 0===se||se-- >0)&&!(Ce=Se.next()).done;)Be.push(Ce.value)}catch(He){Xe={error:He}}finally{try{Ce&&!Ce.done&&(Z=Se.return)&&Z.call(Se)}finally{if(Xe)throw Xe.error}}return Be},c=new(function(){function ue(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return ue.prototype.detect=function(se){var Z={},Se=(0,_._)(),Ce=Se.OTEL_RESOURCE_ATTRIBUTES,Be=Se.OTEL_SERVICE_NAME;if(Ce)try{var Xe=this._parseResourceAttributes(Ce);Object.assign(Z,Xe)}catch(He){v.s.debug("EnvDetector failed: "+He.message)}return Be&&(Z[d.AV]=Be),new n.F(Z)},ue.prototype._parseResourceAttributes=function(se){var Z,Se;if(!se)return{};var Ce={},Be=se.split(this._COMMA_SEPARATOR,-1);try{for(var Xe=function(ue){var se="function"==typeof Symbol&&Symbol.iterator,Z=se&&ue[se],Se=0;if(Z)return Z.call(ue);if(ue&&"number"==typeof ue.length)return{next:function(){return ue&&Se>=ue.length&&(ue=void 0),{value:ue&&ue[Se++],done:!ue}}};throw new TypeError(se?"Object is not iterable.":"Symbol.iterator is not defined.")}(Be),He=Xe.next();!He.done;He=Xe.next()){var Q=He.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===Q.length){var A=r(Q,2),me=A[0],ne=A[1];if(me=me.trim(),ne=ne.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(me))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(ne))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);Ce[me]=decodeURIComponent(ne)}}}catch(G){Z={error:G}}finally{try{He&&!He.done&&(Se=Xe.return)&&Se.call(Xe)}finally{if(Z)throw Z.error}}return Ce},ue.prototype._isValid=function(se){return se.length<=this._MAX_LENGTH&&this._isBaggageOctetString(se)},ue.prototype._isBaggageOctetString=function(se){for(var Z=0;Z<se.length;Z++){var Se=se.charCodeAt(Z);if(Se<33||44===Se||59===Se||92===Se||Se>126)return!1}return!0},ue.prototype._isValidAndNotEmpty=function(se){return se.length>0&&this._isValid(se)},ue}()),M=new(function(){function ue(){}return ue.prototype.detect=function(se){return Promise.resolve(c.detect(se))},ue}()),I=new(function(){function ue(){}return ue.prototype.detect=function(){return new n.F({})},ue}()),V=new(function(){function ue(){}return ue.prototype.detect=function(){return Promise.resolve(I.detect())},ue}()),T=V,N=I,L=V,E=I,g=V,R=V,B=I,H=function(ue,se,Z,Se){return new(Z||(Z=Promise))(function(Be,Xe){function He(A){try{Q(Se.next(A))}catch(me){Xe(me)}}function Me(A){try{Q(Se.throw(A))}catch(me){Xe(me)}}function Q(A){A.done?Be(A.value):function Ce(Be){return Be instanceof Z?Be:new Z(function(Xe){Xe(Be)})}(A.value).then(He,Me)}Q((Se=Se.apply(ue,se||[])).next())})},J=function(ue,se){var Se,Ce,Be,Xe,Z={label:0,sent:function(){if(1&Be[0])throw Be[1];return Be[1]},trys:[],ops:[]};return Xe={next:He(0),throw:He(1),return:He(2)},"function"==typeof Symbol&&(Xe[Symbol.iterator]=function(){return this}),Xe;function He(Q){return function(A){return function Me(Q){if(Se)throw new TypeError("Generator is already executing.");for(;Z;)try{if(Se=1,Ce&&(Be=2&Q[0]?Ce.return:Q[0]?Ce.throw||((Be=Ce.return)&&Be.call(Ce),0):Ce.next)&&!(Be=Be.call(Ce,Q[1])).done)return Be;switch(Ce=0,Be&&(Q=[2&Q[0],Be.value]),Q[0]){case 0:case 1:Be=Q;break;case 4:return Z.label++,{value:Q[1],done:!1};case 5:Z.label++,Ce=Q[1],Q=[0];continue;case 7:Q=Z.ops.pop(),Z.trys.pop();continue;default:if(!(Be=(Be=Z.trys).length>0&&Be[Be.length-1])&&(6===Q[0]||2===Q[0])){Z=0;continue}if(3===Q[0]&&(!Be||Q[1]>Be[0]&&Q[1]<Be[3])){Z.label=Q[1];break}if(6===Q[0]&&Z.label<Be[1]){Z.label=Be[1],Be=Q;break}if(Be&&Z.label<Be[2]){Z.label=Be[2],Z.ops.push(Q);break}Be[2]&&Z.ops.pop(),Z.trys.pop();continue}Q=se.call(ue,Z)}catch(A){Q=[6,A],Ce=0}finally{Se=Be=0}if(5&Q[0])throw Q[1];return{value:Q[0]?Q[1]:void 0,done:!0}}([Q,A])}}},re=function(ue){return void 0===ue&&(ue={}),H(void 0,void 0,void 0,function(){var se;return J(this,function(Z){switch(Z.label){case 0:return[4,Promise.all((ue.detectors||[]).map(function(Se){return H(void 0,void 0,void 0,function(){var Ce,Be;return J(this,function(Xe){switch(Xe.label){case 0:return Xe.trys.push([0,2,,3]),[4,Se.detect(ue)];case 1:return Ce=Xe.sent(),v.s.debug(Se.constructor.name+" found resource.",Ce),[2,Ce];case 2:return Be=Xe.sent(),v.s.debug(Se.constructor.name+" failed: "+Be.message),[2,n.F.empty()];case 3:return[2]}})})}))];case 1:return se=Z.sent(),ve(se),[2,se.reduce(function(Se,Ce){return Se.merge(Ce)},n.F.empty())]}})})},ie=function(ue){var se;void 0===ue&&(ue={});var Z=(null!==(se=ue.detectors)&&void 0!==se?se:[]).map(function(Ce){try{var Xe,Be=Ce.detect(ue);return Xe=function(ue){return null!==ue&&"object"==typeof ue&&"function"==typeof ue.then}(Be)?new n.F({},H(void 0,void 0,void 0,function(){return J(this,function(Q){switch(Q.label){case 0:return[4,Be];case 1:return[2,Q.sent().attributes]}})})):Be,Xe.waitForAsyncAttributes?Xe.waitForAsyncAttributes().then(function(){return v.s.debug(Ce.constructor.name+" found resource.",Xe)}):v.s.debug(Ce.constructor.name+" found resource.",Xe),Xe}catch(Me){return v.s.error(Ce.constructor.name+" failed: "+Me.message),n.F.empty()}}),Se=Z.reduce(function(Ce,Be){return Ce.merge(Be)},n.F.empty());return Se.waitForAsyncAttributes&&Se.waitForAsyncAttributes().then(function(){ve(Z)}),Se},ve=function(ue){ue.forEach(function(se){if(Object.keys(se.attributes).length>0){var Z=JSON.stringify(se.attributes,null,4);v.s.verbose(Z)}})}},99583:(Bt,z,s)=>{"use strict";function n(){return"unknown_service"}s.d(z,{m:()=>n})},19553:(Bt,z,s)=>{"use strict";s.d(z,{l:()=>V,d:()=>U});var n=s(40698),l=s(92414),d=s(33784),v=s(35475),S=s(92848),y=s(75701),f=s(76181),O=s(90775),P=s(9113),_=s(23403),i=s(31661),r=s(87390),a=s(70440),c=function(T){var N="function"==typeof Symbol&&Symbol.iterator,L=N&&T[N],E=0;if(L)return L.call(T);if(T&&"number"==typeof T.length)return{next:function(){return T&&E>=T.length&&(T=void 0),{value:T&&T[E++],done:!T}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(){function T(N){this._spanProcessors=N}return T.prototype.forceFlush=function(){var N,L,E=[];try{for(var g=c(this._spanProcessors),R=g.next();!R.done;R=g.next())E.push(R.value.forceFlush())}catch(X){N={error:X}}finally{try{R&&!R.done&&(L=g.return)&&L.call(g)}finally{if(N)throw N.error}}return new Promise(function(X){Promise.all(E).then(function(){X()}).catch(function(H){(0,a.s)(H||new Error("MultiSpanProcessor: forceFlush failed")),X()})})},T.prototype.onStart=function(N,L){var E,g;try{for(var R=c(this._spanProcessors),B=R.next();!B.done;B=R.next())B.value.onStart(N,L)}catch(H){E={error:H}}finally{try{B&&!B.done&&(g=R.return)&&g.call(R)}finally{if(E)throw E.error}}},T.prototype.onEnd=function(N){var L,E;try{for(var g=c(this._spanProcessors),R=g.next();!R.done;R=g.next())R.value.onEnd(N)}catch(X){L={error:X}}finally{try{R&&!R.done&&(E=g.return)&&E.call(g)}finally{if(L)throw L.error}}},T.prototype.shutdown=function(){var N,L,E=[];try{for(var g=c(this._spanProcessors),R=g.next();!R.done;R=g.next())E.push(R.value.shutdown())}catch(X){N={error:X}}finally{try{R&&!R.done&&(L=g.return)&&L.call(g)}finally{if(N)throw N.error}}return new Promise(function(X,H){Promise.all(E).then(function(){X()},H)})},T}(),M=s(18225),D=s(44748),I=s(77686),U=function(T){return T[T.resolved=0]="resolved",T[T.timeout=1]="timeout",T[T.error=2]="error",T[T.unresolved=3]="unresolved",T}(U||{}),V=function(){function T(N){var L;void 0===N&&(N={}),this._registeredSpanProcessors=[],this._tracers=new Map;var E=(0,S.h)({},(0,r.S)(),(0,I.W)(N));this.resource=null!==(L=E.resource)&&void 0!==L?L:_.F.empty(),this.resource=_.F.default().merge(this.resource),this._config=Object.assign({},E,{resource:this.resource});var g=this._buildExporterFromEnv();if(void 0!==g){var R=new D.J(g);this.activeSpanProcessor=R}else this.activeSpanProcessor=new M.N}return T.prototype.getTracer=function(N,L,E){var g=N+"@"+(L||"")+":"+(E?.schemaUrl||"");return this._tracers.has(g)||this._tracers.set(g,new i.s({name:N,version:L,schemaUrl:E?.schemaUrl},this._config,this)),this._tracers.get(g)},T.prototype.addSpanProcessor=function(N){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch(function(L){return n.s.error("Error while trying to shutdown current span processor",L)}),this._registeredSpanProcessors.push(N),this.activeSpanProcessor=new m(this._registeredSpanProcessors)},T.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},T.prototype.register=function(N){void 0===N&&(N={}),l.u.setGlobalTracerProvider(this),void 0===N.propagator&&(N.propagator=this._buildPropagatorFromEnv()),N.contextManager&&d._.setGlobalContextManager(N.contextManager),N.propagator&&v.$.setGlobalPropagator(N.propagator)},T.prototype.forceFlush=function(){var N=this._config.forceFlushTimeoutMillis,L=this._registeredSpanProcessors.map(function(E){return new Promise(function(g){var R,B=setTimeout(function(){g(new Error("Span processor did not completed within timeout period of "+N+" ms")),R=U.timeout},N);E.forceFlush().then(function(){clearTimeout(B),R!==U.timeout&&g(R=U.resolved)}).catch(function(X){clearTimeout(B),R=U.error,g(X)})})});return new Promise(function(E,g){Promise.all(L).then(function(R){var B=R.filter(function(X){return X!==U.resolved});B.length>0?g(B):E()}).catch(function(R){return g([R])})})},T.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},T.prototype._getPropagator=function(N){var L;return null===(L=this.constructor._registeredPropagators.get(N))||void 0===L?void 0:L()},T.prototype._getSpanExporter=function(N){var L;return null===(L=this.constructor._registeredExporters.get(N))||void 0===L?void 0:L()},T.prototype._buildPropagatorFromEnv=function(){var N=this,L=Array.from(new Set((0,y._)().OTEL_PROPAGATORS)),g=L.map(function(R){var B=N._getPropagator(R);return B||n.s.warn('Propagator "'+R+'" requested through environment variable is unavailable.'),B}).reduce(function(R,B){return B&&R.push(B),R},[]);if(0!==g.length)return 1===L.length?g[0]:new f.n({propagators:g})},T.prototype._buildExporterFromEnv=function(){var N=(0,y._)().OTEL_TRACES_EXPORTER;if("none"!==N&&""!==N){var L=this._getSpanExporter(N);return L||n.s.error('Exporter "'+N+'" requested through environment variable is unavailable.'),L}},T._registeredPropagators=new Map([["tracecontext",function(){return new O.lm}],["baggage",function(){return new P.t}]]),T._registeredExporters=new Map,T}()},45198:(Bt,z,s)=>{"use strict";s.d(z,{i:()=>n});var n=function(l){return l[l.NOT_RECORD=0]="NOT_RECORD",l[l.RECORD=1]="RECORD",l[l.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED",l}(n||{})},73569:(Bt,z,s)=>{"use strict";s.d(z,{L:()=>_});var n=s(75376),l=s(40698),d=s(52246),v=s(23500),S=s(58312),y=s(52666),P=function(i,r){var a="function"==typeof Symbol&&i[Symbol.iterator];if(!a)return i;var m,D,c=a.call(i),M=[];try{for(;(void 0===r||r-- >0)&&!(m=c.next()).done;)M.push(m.value)}catch(I){D={error:I}}finally{try{m&&!m.done&&(a=c.return)&&a.call(c)}finally{if(D)throw D.error}}return M},_=function(){function i(r,a,c,m,M,D,I,U,V,T){void 0===I&&(I=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:n.s.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=c,this._spanContext=m,this.parentSpanId=D,this.kind=M,this.links=I;var N=Date.now();this._performanceStartTime=d.u.now(),this._performanceOffset=N-(this._performanceStartTime+(0,v.uc)()),this._startTimeProvided=null!=U,this.startTime=this._getTime(U??N),this.resource=r.resource,this.instrumentationLibrary=r.instrumentationLibrary,this._spanLimits=r.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,null!=T&&this.setAttributes(T),this._spanProcessor=r.getActiveSpanProcessor(),this._spanProcessor.onStart(this,a)}return i.prototype.spanContext=function(){return this._spanContext},i.prototype.setAttribute=function(r,a){return null==a||this._isSpanEnded()?this:0===r.length?(l.s.warn("Invalid attribute key: "+r),this):(0,S.m)(a)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,r)?(this._droppedAttributesCount++,this):(this.attributes[r]=this._truncateToSize(a),this):(l.s.warn("Invalid attribute value set for key: "+r),this)},i.prototype.setAttributes=function(r){var a,c;try{for(var m=function(i){var r="function"==typeof Symbol&&Symbol.iterator,a=r&&i[r],c=0;if(a)return a.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&c>=i.length&&(i=void 0),{value:i&&i[c++],done:!i}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.entries(r)),M=m.next();!M.done;M=m.next()){var D=P(M.value,2);this.setAttribute(D[0],D[1])}}catch(V){a={error:V}}finally{try{M&&!M.done&&(c=m.return)&&c.call(m)}finally{if(a)throw a.error}}return this},i.prototype.addEvent=function(r,a,c){if(this._isSpanEnded())return this;if(0===this._spanLimits.eventCountLimit)return l.s.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(0===this._droppedEventsCount&&l.s.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,v.Ir)(a)&&((0,v.Ir)(c)||(c=a),a=void 0);var m=(0,S.L)(a);return this.events.push({name:r,attributes:m,time:this._getTime(c),droppedAttributesCount:0}),this},i.prototype.setStatus=function(r){return this._isSpanEnded()||(this.status=r),this},i.prototype.updateName=function(r){return this._isSpanEnded()||(this.name=r),this},i.prototype.end=function(r){this._isSpanEnded()?l.s.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once."):(this._ended=!0,this.endTime=this._getTime(r),this._duration=(0,v.W5)(this.startTime,this.endTime),this._duration[0]<0&&(l.s.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&l.s.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this))},i.prototype._getTime=function(r){if("number"==typeof r&&r<d.u.now())return(0,v._5)(r+this._performanceOffset);if("number"==typeof r)return(0,v.lg)(r);if(r instanceof Date)return(0,v.lg)(r.getTime());if((0,v.VL)(r))return r;if(this._startTimeProvided)return(0,v.lg)(Date.now());var a=d.u.now()-this._performanceStartTime;return(0,v.mw)(this.startTime,(0,v.lg)(a))},i.prototype.isRecording=function(){return!1===this._ended},i.prototype.recordException=function(r,a){var c={};"string"==typeof r?c[y.IXq.EXCEPTION_MESSAGE]=r:r&&(r.code?c[y.IXq.EXCEPTION_TYPE]=r.code.toString():r.name&&(c[y.IXq.EXCEPTION_TYPE]=r.name),r.message&&(c[y.IXq.EXCEPTION_MESSAGE]=r.message),r.stack&&(c[y.IXq.EXCEPTION_STACKTRACE]=r.stack)),c[y.IXq.EXCEPTION_TYPE]||c[y.IXq.EXCEPTION_MESSAGE]?this.addEvent("exception",c,a):l.s.warn("Failed to record an exception "+r)},Object.defineProperty(i.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),i.prototype._isSpanEnded=function(){return this._ended&&l.s.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},i.prototype._truncateToLimitUtil=function(r,a){return r.length<=a?r:r.substr(0,a)},i.prototype._truncateToSize=function(r){var a=this,c=this._attributeValueLengthLimit;return c<=0?(l.s.warn("Attribute value limit must be positive, got "+c),r):"string"==typeof r?this._truncateToLimitUtil(r,c):Array.isArray(r)?r.map(function(m){return"string"==typeof m?a._truncateToLimitUtil(m,c):m}):r},i}()},31661:(Bt,z,s)=>{"use strict";s.d(z,{s:()=>a});var n=s(33784),l=s(92414),d=s(40698),v=s(99652),S=s(23431),y=s(42710),f=s(57585),O=s(10857),P=s(58312),_=s(73569),i=s(77686),r=s(73348),a=function(){function c(m,M,D){this._tracerProvider=D;var I=(0,i.R)(M);this._sampler=I.sampler,this._generalLimits=I.generalLimits,this._spanLimits=I.spanLimits,this._idGenerator=M.idGenerator||new r.s,this.resource=D.resource,this.instrumentationLibrary=m}return c.prototype.startSpan=function(m,M,D){var I,U,V;void 0===M&&(M={}),void 0===D&&(D=n._.active()),M.root&&(D=l.u.deleteSpan(D));var T=l.u.getSpan(D);if((0,O.Zf)(D))return d.s.debug("Instrumentation suppressed, returning Noop Span"),l.u.wrapSpanContext(v.dM);var g,R,B,L=T?.spanContext(),E=this._idGenerator.generateSpanId();L&&l.u.isSpanContextValid(L)?(g=L.traceId,R=L.traceState,B=L.spanId):g=this._idGenerator.generateTraceId();var X=null!==(I=M.kind)&&void 0!==I?I:S.v.INTERNAL,H=(null!==(U=M.links)&&void 0!==U?U:[]).map(function(Z){return{context:Z.context,attributes:(0,P.L)(Z.attributes)}}),J=(0,P.L)(M.attributes),re=this._sampler.shouldSample(D,g,m,X,J,H);R=null!==(V=re.traceState)&&void 0!==V?V:R;var ve={traceId:g,spanId:E,traceFlags:re.decision===y.i.RECORD_AND_SAMPLED?f.X.SAMPLED:f.X.NONE,traceState:R};if(re.decision===y.i.NOT_RECORD)return d.s.debug("Recording is off, propagating context in a non-recording span"),l.u.wrapSpanContext(ve);var ue=(0,P.L)(Object.assign(J,re.attributes));return new _.L(this,D,m,ve,X,B,H,M.startTime,void 0,ue)},c.prototype.startActiveSpan=function(m,M,D,I){var U,V,T;if(!(arguments.length<2)){2===arguments.length?T=M:3===arguments.length?(U=M,T=D):(U=M,V=D,T=I);var N=V??n._.active(),L=this.startSpan(m,U,N),E=l.u.setSpan(N,L);return n._.with(E,T,void 0,L)}},c.prototype.getGeneralLimits=function(){return this._generalLimits},c.prototype.getSpanLimits=function(){return this._spanLimits},c.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},c}()},87390:(Bt,z,s)=>{"use strict";s.d(z,{S:()=>i,m:()=>r});var n=s(40698),l=s(75701),d=s(26056),v=s(3183),S=s(6221),y=s(80548),f=s(48211),O=(0,l._)(),P=d.R.AlwaysOn,_=1;function i(){return{sampler:r(O),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(0,l._)().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:(0,l._)().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:(0,l._)().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:(0,l._)().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:(0,l._)().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:(0,l._)().OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:(0,l._)().OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:(0,l._)().OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function r(c){switch(void 0===c&&(c=(0,l._)()),c.OTEL_TRACES_SAMPLER){case d.R.AlwaysOn:return new S.f;case d.R.AlwaysOff:return new v.t;case d.R.ParentBasedAlwaysOn:return new y.e({root:new S.f});case d.R.ParentBasedAlwaysOff:return new y.e({root:new v.t});case d.R.TraceIdRatio:return new f.h(a(c));case d.R.ParentBasedTraceIdRatio:return new y.e({root:new f.h(a(c))});default:return n.s.error('OTEL_TRACES_SAMPLER value "'+c.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+P+'".'),new S.f}}function a(c){if(void 0===c.OTEL_TRACES_SAMPLER_ARG||""===c.OTEL_TRACES_SAMPLER_ARG)return n.s.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+_+"."),_;var m=Number(c.OTEL_TRACES_SAMPLER_ARG);return isNaN(m)?(n.s.error("OTEL_TRACES_SAMPLER_ARG="+c.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+_+"."),_):m<0||m>1?(n.s.error("OTEL_TRACES_SAMPLER_ARG="+c.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+_+"."),_):m}},18225:(Bt,z,s)=>{"use strict";s.d(z,{N:()=>n});var n=function(){function l(){}return l.prototype.onStart=function(d,v){},l.prototype.onEnd=function(d){},l.prototype.shutdown=function(){return Promise.resolve()},l.prototype.forceFlush=function(){return Promise.resolve()},l}()},73348:(Bt,z,s)=>{"use strict";s.d(z,{s:()=>d});var d=function(){return function y(){this.generateTraceId=S(16),this.generateSpanId=S(8)}}(),v=Array(32);function S(y){return function(){for(var O=0;O<2*y;O++)v[O]=Math.floor(16*Math.random())+48,v[O]>=58&&(v[O]+=39);return String.fromCharCode.apply(null,v.slice(0,2*y))}}},44748:(Bt,z,s)=>{"use strict";s.d(z,{J:()=>r});var n=s(40698),l=s(57585),d=s(33784),v=s(75701),S=s(25578),y=s(10857),f=s(99200),O=s(70440),P=s(60554),_=function(){function a(c,m){this._exporter=c,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var M=(0,v._)();this._maxExportBatchSize="number"==typeof m?.maxExportBatchSize?m.maxExportBatchSize:M.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof m?.maxQueueSize?m.maxQueueSize:M.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof m?.scheduledDelayMillis?m.scheduledDelayMillis:M.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof m?.exportTimeoutMillis?m.exportTimeoutMillis:M.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new S.I(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(n.s.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return a.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},a.prototype.onStart=function(c,m){},a.prototype.onEnd=function(c){this._shutdownOnce.isCalled||c.spanContext().traceFlags&l.X.SAMPLED&&this._addToBuffer(c)},a.prototype.shutdown=function(){return this._shutdownOnce.call()},a.prototype._shutdown=function(){var c=this;return Promise.resolve().then(function(){return c.onShutdown()}).then(function(){return c._flushAll()}).then(function(){return c._exporter.shutdown()})},a.prototype._addToBuffer=function(c){if(this._finishedSpans.length>=this._maxQueueSize)return 0===this._droppedSpansCount&&n.s.debug("maxQueueSize reached, dropping spans"),void this._droppedSpansCount++;this._droppedSpansCount>0&&(n.s.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(c),this._maybeStartTimer()},a.prototype._flushAll=function(){var c=this;return new Promise(function(m,M){for(var D=[],U=0,V=Math.ceil(c._finishedSpans.length/c._maxExportBatchSize);U<V;U++)D.push(c._flushOneBatch());Promise.all(D).then(function(){m()}).catch(M)})},a.prototype._flushOneBatch=function(){var c=this;return this._clearTimer(),0===this._finishedSpans.length?Promise.resolve():new Promise(function(m,M){var D=setTimeout(function(){M(new Error("Timeout"))},c._exportTimeoutMillis);d._.with((0,y.M1)(d._.active()),function(){var I;c._finishedSpans.length<=c._maxExportBatchSize?(I=c._finishedSpans,c._finishedSpans=[]):I=c._finishedSpans.splice(0,c._maxExportBatchSize);for(var U=function(){return c._exporter.export(I,function(E){var g;clearTimeout(D),E.code===f.V.SUCCESS?m():M(null!==(g=E.error)&&void 0!==g?g:new Error("BatchSpanProcessor: span export failed"))})},V=null,T=0,N=I.length;T<N;T++){var L=I[T];L.resource.asyncAttributesPending&&L.resource.waitForAsyncAttributes&&(V??(V=[]),V.push(L.resource.waitForAsyncAttributes()))}null===V?U():Promise.all(V).then(U,function(E){(0,O.s)(E),M(E)})})})},a.prototype._maybeStartTimer=function(){var c=this;if(!this._isExporting){var m=function(){c._isExporting=!0,c._flushOneBatch().finally(function(){c._isExporting=!1,c._finishedSpans.length>0&&(c._clearTimer(),c._maybeStartTimer())}).catch(function(M){c._isExporting=!1,(0,O.s)(M)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return m();void 0===this._timer&&(this._timer=setTimeout(function(){return m()},this._scheduledDelayMillis),(0,P.K)(this._timer))}},a.prototype._clearTimer=function(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)},a}(),i=function(){var a=function(c,m){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,D){M.__proto__=D}||function(M,D){for(var I in D)Object.prototype.hasOwnProperty.call(D,I)&&(M[I]=D[I])})(c,m)};return function(c,m){if("function"!=typeof m&&null!==m)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function M(){this.constructor=c}a(c,m),c.prototype=null===m?Object.create(m):(M.prototype=m.prototype,new M)}}(),r=function(a){function c(m,M){var D=a.call(this,m,M)||this;return D.onInit(M),D}return i(c,a),c.prototype.onInit=function(m){var M=this;!0!==m?.disableAutoFlushOnDocumentHide&&typeof document<"u"&&(this._visibilityChangeListener=function(){"hidden"===document.visibilityState&&M.forceFlush()},this._pageHideListener=function(){M.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},c.prototype.onShutdown=function(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},c}(_)},3183:(Bt,z,s)=>{"use strict";s.d(z,{t:()=>l});var n=s(45198),l=function(){function d(){}return d.prototype.shouldSample=function(){return{decision:n.i.NOT_RECORD}},d.prototype.toString=function(){return"AlwaysOffSampler"},d}()},6221:(Bt,z,s)=>{"use strict";s.d(z,{f:()=>l});var n=s(45198),l=function(){function d(){}return d.prototype.shouldSample=function(){return{decision:n.i.RECORD_AND_SAMPLED}},d.prototype.toString=function(){return"AlwaysOnSampler"},d}()},80548:(Bt,z,s)=>{"use strict";s.d(z,{e:()=>f});var n=s(92414),l=s(63051),d=s(57585),v=s(70440),S=s(3183),y=s(6221),f=function(){function O(P){var _,i,r,a;this._root=P.root,this._root||((0,v.s)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new y.f),this._remoteParentSampled=null!==(_=P.remoteParentSampled)&&void 0!==_?_:new y.f,this._remoteParentNotSampled=null!==(i=P.remoteParentNotSampled)&&void 0!==i?i:new S.t,this._localParentSampled=null!==(r=P.localParentSampled)&&void 0!==r?r:new y.f,this._localParentNotSampled=null!==(a=P.localParentNotSampled)&&void 0!==a?a:new S.t}return O.prototype.shouldSample=function(P,_,i,r,a,c){var m=n.u.getSpanContext(P);return m&&(0,l.YA)(m)?m.isRemote?m.traceFlags&d.X.SAMPLED?this._remoteParentSampled.shouldSample(P,_,i,r,a,c):this._remoteParentNotSampled.shouldSample(P,_,i,r,a,c):m.traceFlags&d.X.SAMPLED?this._localParentSampled.shouldSample(P,_,i,r,a,c):this._localParentNotSampled.shouldSample(P,_,i,r,a,c):this._root.shouldSample(P,_,i,r,a,c)},O.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},O}()},48211:(Bt,z,s)=>{"use strict";s.d(z,{h:()=>d});var n=s(63051),l=s(45198),d=function(){function v(S){void 0===S&&(S=0),this._ratio=S,this._ratio=this._normalize(S),this._upperBound=Math.floor(4294967295*this._ratio)}return v.prototype.shouldSample=function(S,y){return{decision:(0,n.hX)(y)&&this._accumulate(y)<this._upperBound?l.i.RECORD_AND_SAMPLED:l.i.NOT_RECORD}},v.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},v.prototype._normalize=function(S){return"number"!=typeof S||isNaN(S)?0:S>=1?1:S<=0?0:S},v.prototype._accumulate=function(S){for(var y=0,f=0;f<S.length/8;f++){var O=8*f;y=(y^parseInt(S.slice(O,O+8),16))>>>0}return y},v}()},77686:(Bt,z,s)=>{"use strict";s.d(z,{R:()=>v,W:()=>S});var n=s(87390),l=s(75701),d=s(98828);function v(y){var f={sampler:(0,n.m)()},O=(0,n.S)(),P=Object.assign({},O,f,y);return P.generalLimits=Object.assign({},O.generalLimits,y.generalLimits||{}),P.spanLimits=Object.assign({},O.spanLimits,y.spanLimits||{}),P}function S(y){var f,O,P,_,i,r,a,c,m,M,D,I,U=Object.assign({},y.spanLimits),V=(0,l.w)();return U.attributeCountLimit=null!==(r=null!==(i=null!==(_=null!==(O=null===(f=y.spanLimits)||void 0===f?void 0:f.attributeCountLimit)&&void 0!==O?O:null===(P=y.generalLimits)||void 0===P?void 0:P.attributeCountLimit)&&void 0!==_?_:V.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)&&void 0!==i?i:V.OTEL_ATTRIBUTE_COUNT_LIMIT)&&void 0!==r?r:d.fv,U.attributeValueLengthLimit=null!==(I=null!==(D=null!==(M=null!==(c=null===(a=y.spanLimits)||void 0===a?void 0:a.attributeValueLengthLimit)&&void 0!==c?c:null===(m=y.generalLimits)||void 0===m?void 0:m.attributeValueLengthLimit)&&void 0!==M?M:V.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)&&void 0!==D?D:V.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)&&void 0!==I?I:d.aE,Object.assign({},y,{spanLimits:U})}},86215:(Bt,z,s)=>{"use strict";s.d(z,{D:()=>v});var n=s(24773),v=function(){function S(){this._enabled=!1,this._currentContext=n.l}return S.prototype._bindFunction=function(y,f){void 0===y&&(y=n.l);var O=this,P=function(){for(var _=this,i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];return O.with(y,function(){return f.apply(_,i)})};return Object.defineProperty(P,"length",{enumerable:!1,configurable:!0,writable:!1,value:f.length}),P},S.prototype.active=function(){return this._currentContext},S.prototype.bind=function(y,f){return void 0===y&&(y=this.active()),"function"==typeof f?this._bindFunction(y,f):f},S.prototype.disable=function(){return this._currentContext=n.l,this._enabled=!1,this},S.prototype.enable=function(){return this._enabled||(this._enabled=!0,this._currentContext=n.l),this},S.prototype.with=function(y,f,O){for(var P=[],_=3;_<arguments.length;_++)P[_-3]=arguments[_];var i=this._currentContext;this._currentContext=y||n.l;try{return f.call.apply(f,function(S,y,f){if(f||2===arguments.length)for(var _,O=0,P=y.length;O<P;O++)(_||!(O in y))&&(_||(_=Array.prototype.slice.call(y,0,O)),_[O]=y[O]);return S.concat(_||Array.prototype.slice.call(y))}([O],function(S,y){var f="function"==typeof Symbol&&S[Symbol.iterator];if(!f)return S;var P,i,O=f.call(S),_=[];try{for(;(void 0===y||y-- >0)&&!(P=O.next()).done;)_.push(P.value)}catch(r){i={error:r}}finally{try{P&&!P.done&&(f=O.return)&&f.call(O)}finally{if(i)throw i.error}}return _}(P),!1))}finally{this._currentContext=i}},S}()},77855:(Bt,z,s)=>{"use strict";s.d(z,{Z:()=>v});var n=s(19553),l=s(86215),d=function(){var S=function(y,f){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,P){O.__proto__=P}||function(O,P){for(var _ in P)Object.prototype.hasOwnProperty.call(P,_)&&(O[_]=P[_])})(y,f)};return function(y,f){if("function"!=typeof f&&null!==f)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function O(){this.constructor=y}S(y,f),y.prototype=null===f?Object.create(f):(O.prototype=f.prototype,new O)}}(),v=function(S){function y(f){void 0===f&&(f={});var O=S.call(this,f)||this;if(f.contextManager)throw"contextManager should be defined in register method not in constructor";if(f.propagator)throw"propagator should be defined in register method not in constructor";return O}return d(y,S),y.prototype.register=function(f){void 0===f&&(f={}),void 0===f.contextManager&&(f.contextManager=new l.D),f.contextManager&&f.contextManager.enable(),S.prototype.register.call(this,f)},y}(n.l)},81116:(Bt,z,s)=>{"use strict";s.r(z),s.d(z,{AlwaysOffSampler:()=>He.t,AlwaysOnSampler:()=>Me.f,BasicTracerProvider:()=>E.l,BatchSpanProcessor:()=>g.J,ConsoleSpanExporter:()=>H,ForceFlushState:()=>E.d,InMemorySpanExporter:()=>ie,NoopSpanProcessor:()=>Xe.N,ParentBasedSampler:()=>Q.e,PerformanceTimingNames:()=>d,RandomIdGenerator:()=>R.s,SamplingDecision:()=>me.i,SimpleSpanProcessor:()=>Be,Span:()=>ne.L,StackContextManager:()=>l.D,TraceIdRatioBasedSampler:()=>A.h,Tracer:()=>L.s,WebTracerProvider:()=>n.Z,addSpanNetworkEvent:()=>_,addSpanNetworkEvents:()=>i,getElementXPath:()=>U,getResource:()=>c,hasKey:()=>P,normalizeUrl:()=>I,parseUrl:()=>D,shouldPropagateTraceHeaders:()=>N,sortResources:()=>r});var f,n=s(77855),l=s(86215),d=function(G){return G.CONNECT_END="connectEnd",G.CONNECT_START="connectStart",G.DECODED_BODY_SIZE="decodedBodySize",G.DOM_COMPLETE="domComplete",G.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",G.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",G.DOM_INTERACTIVE="domInteractive",G.DOMAIN_LOOKUP_END="domainLookupEnd",G.DOMAIN_LOOKUP_START="domainLookupStart",G.ENCODED_BODY_SIZE="encodedBodySize",G.FETCH_START="fetchStart",G.LOAD_EVENT_END="loadEventEnd",G.LOAD_EVENT_START="loadEventStart",G.NAVIGATION_START="navigationStart",G.REDIRECT_END="redirectEnd",G.REDIRECT_START="redirectStart",G.REQUEST_START="requestStart",G.RESPONSE_END="responseEnd",G.RESPONSE_START="responseStart",G.SECURE_CONNECTION_START="secureConnectionStart",G.UNLOAD_EVENT_END="unloadEventEnd",G.UNLOAD_EVENT_START="unloadEventStart",G}(d||{}),v=s(23500),S=s(28280),y=s(52666);function P(G,W){return W in G}function _(G,W,$,le){var Pe=void 0,Fe=void 0;P($,W)&&"number"==typeof $[W]&&(Pe=$[W]);var At=le||d.FETCH_START;if(P($,At)&&"number"==typeof $[At]&&(Fe=$[At]),void 0!==Pe&&void 0!==Fe&&Pe>=Fe)return G.addEvent(W,Pe),G}function i(G,W){_(G,d.FETCH_START,W),_(G,d.DOMAIN_LOOKUP_START,W),_(G,d.DOMAIN_LOOKUP_END,W),_(G,d.CONNECT_START,W),P(W,"name")&&W.name.startsWith("https:")&&_(G,d.SECURE_CONNECTION_START,W),_(G,d.CONNECT_END,W),_(G,d.REQUEST_START,W),_(G,d.RESPONSE_START,W),_(G,d.RESPONSE_END,W);var $=W[d.ENCODED_BODY_SIZE];void 0!==$&&G.setAttribute(y.IXq.HTTP_RESPONSE_CONTENT_LENGTH,$);var le=W[d.DECODED_BODY_SIZE];void 0!==le&&$!==le&&G.setAttribute(y.IXq.HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,le)}function r(G){return G.slice().sort(function(W,$){var le=W[d.FETCH_START],Pe=$[d.FETCH_START];return le>Pe?1:le<Pe?-1:0})}function a(){return typeof location<"u"?location.origin:void 0}function c(G,W,$,le,Pe,Fe){void 0===Pe&&(Pe=new WeakSet);var At=D(G),Le=function M(G,W,$,le,Pe,Fe){var At=(0,v.u5)(W),Le=(0,v.u5)($),Et=le.filter(function($e){var Ze=(0,v.u5)((0,v.KJ)($e[d.FETCH_START])),Qe=(0,v.u5)((0,v.KJ)($e[d.RESPONSE_END]));return $e.initiatorType.toLowerCase()===(Fe||"xmlhttprequest")&&$e.name===G&&Ze>=At&&Qe<=Le});return Et.length>0&&(Et=Et.filter(function($e){return!Pe.has($e)})),Et}(G=At.toString(),W,$,le,Pe,Fe);if(0===Le.length)return{mainRequest:void 0};if(1===Le.length)return{mainRequest:Le[0]};var Et=r(Le);if(At.origin!==a()&&Et.length>1){var $e=Et[0],Ze=function m(G,W,$){for(var At,le=(0,v.u5)($),Pe=(0,v.u5)((0,v.KJ)(W)),Fe=G[1],Le=G.length,Et=1;Et<Le;Et++){var $e=G[Et],Ze=(0,v.u5)((0,v.KJ)($e[d.FETCH_START])),Ve=le-(0,v.u5)((0,v.KJ)($e[d.RESPONSE_END]));Ze>=Pe&&(!At||Ve<At)&&(At=Ve,Fe=$e)}return Fe}(Et,$e[d.RESPONSE_END],$);return Ze[d.FETCH_START]<$e[d.RESPONSE_END]&&(Ze=$e,$e=void 0),{corsPreFlightRequest:$e,mainRequest:Ze}}return{mainRequest:Le[0]}}function D(G){if("function"==typeof URL)return new URL(G,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);var W=function O(){return f||(f=document.createElement("a")),f}();return W.href=G,W}function I(G){return D(G).href}function U(G,W){if(G.nodeType===Node.DOCUMENT_NODE)return"/";var $=function T(G,W){var $=G.nodeType,le=function V(G){if(!G.parentNode)return 0;var W=[G.nodeType];G.nodeType===Node.CDATA_SECTION_NODE&&W.push(Node.TEXT_NODE);var $=Array.from(G.parentNode.childNodes);return $=$.filter(function(le){var Pe=le.localName;return W.indexOf(le.nodeType)>=0&&Pe===G.localName}),$.length>=1?$.indexOf(G)+1:0}(G),Pe="";if($===Node.ELEMENT_NODE){var Fe=G.getAttribute("id");if(W&&Fe)return'//*[@id="'+Fe+'"]';Pe=G.localName}else if($===Node.TEXT_NODE||$===Node.CDATA_SECTION_NODE)Pe="text()";else{if($!==Node.COMMENT_NODE)return"";Pe="comment()"}return Pe&&le>1?"/"+Pe+"["+le+"]":"/"+Pe}(G,W);if(W&&$.indexOf("@id")>0)return $;var le="";return G.parentNode&&(le+=U(G.parentNode,!1)),le+$}function N(G,W){var $=W||[];return("string"==typeof $||$ instanceof RegExp)&&($=[$]),D(G).origin===a()||$.some(function(Pe){return(0,S.f)(G,Pe)})}var L=s(31661),E=s(19553),g=s(44748),R=s(73348),B=s(99200),H=function(){function G(){}return G.prototype.export=function(W,$){return this._sendSpans(W,$)},G.prototype.shutdown=function(){return this._sendSpans([]),this.forceFlush()},G.prototype.forceFlush=function(){return Promise.resolve()},G.prototype._exportInfo=function(W){var $;return{resource:{attributes:W.resource.attributes},traceId:W.spanContext().traceId,parentId:W.parentSpanId,traceState:null===($=W.spanContext().traceState)||void 0===$?void 0:$.serialize(),name:W.name,id:W.spanContext().spanId,kind:W.kind,timestamp:(0,v.w_)(W.startTime),duration:(0,v.w_)(W.duration),attributes:W.attributes,status:W.status,events:W.events,links:W.links}},G.prototype._sendSpans=function(W,$){var le,Pe;try{for(var Fe=function(G){var W="function"==typeof Symbol&&Symbol.iterator,$=W&&G[W],le=0;if($)return $.call(G);if(G&&"number"==typeof G.length)return{next:function(){return G&&le>=G.length&&(G=void 0),{value:G&&G[le++],done:!G}}};throw new TypeError(W?"Object is not iterable.":"Symbol.iterator is not defined.")}(W),At=Fe.next();!At.done;At=Fe.next())console.dir(this._exportInfo(At.value),{depth:3})}catch(Et){le={error:Et}}finally{try{At&&!At.done&&(Pe=Fe.return)&&Pe.call(Fe)}finally{if(le)throw le.error}}if($)return $({code:B.V.SUCCESS})},G}(),ie=function(){function G(){this._finishedSpans=[],this._stopped=!1}return G.prototype.export=function(W,$){var le;if(this._stopped)return $({code:B.V.FAILED,error:new Error("Exporter has been stopped")});(le=this._finishedSpans).push.apply(le,function(G,W,$){if($||2===arguments.length)for(var Fe,le=0,Pe=W.length;le<Pe;le++)(Fe||!(le in W))&&(Fe||(Fe=Array.prototype.slice.call(W,0,le)),Fe[le]=W[le]);return G.concat(Fe||Array.prototype.slice.call(W))}([],function(G,W){var $="function"==typeof Symbol&&G[Symbol.iterator];if(!$)return G;var Pe,At,le=$.call(G),Fe=[];try{for(;(void 0===W||W-- >0)&&!(Pe=le.next()).done;)Fe.push(Pe.value)}catch(Le){At={error:Le}}finally{try{Pe&&!Pe.done&&($=le.return)&&$.call(le)}finally{if(At)throw At.error}}return Fe}(W),!1)),setTimeout(function(){return $({code:B.V.SUCCESS})},0)},G.prototype.shutdown=function(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()},G.prototype.forceFlush=function(){return Promise.resolve()},G.prototype.reset=function(){this._finishedSpans=[]},G.prototype.getFinishedSpans=function(){return this._finishedSpans},G}(),ve=s(57585),ue=s(25578),se=s(21902),Z=s(70440),Be=function(){function G(W){this._exporter=W,this._shutdownOnce=new ue.I(this._shutdown,this),this._unresolvedExports=new Set}return G.prototype.forceFlush=function(){return function(G,W,$,le){return new($||($=Promise))(function(Fe,At){function Le(Ze){try{$e(le.next(Ze))}catch(Qe){At(Qe)}}function Et(Ze){try{$e(le.throw(Ze))}catch(Qe){At(Qe)}}function $e(Ze){Ze.done?Fe(Ze.value):function Pe(Fe){return Fe instanceof $?Fe:new $(function(At){At(Fe)})}(Ze.value).then(Le,Et)}$e((le=le.apply(G,W||[])).next())})}(this,void 0,void 0,function(){return function(G,W){var le,Pe,Fe,At,$={label:0,sent:function(){if(1&Fe[0])throw Fe[1];return Fe[1]},trys:[],ops:[]};return At={next:Le(0),throw:Le(1),return:Le(2)},"function"==typeof Symbol&&(At[Symbol.iterator]=function(){return this}),At;function Le($e){return function(Ze){return function Et($e){if(le)throw new TypeError("Generator is already executing.");for(;$;)try{if(le=1,Pe&&(Fe=2&$e[0]?Pe.return:$e[0]?Pe.throw||((Fe=Pe.return)&&Fe.call(Pe),0):Pe.next)&&!(Fe=Fe.call(Pe,$e[1])).done)return Fe;switch(Pe=0,Fe&&($e=[2&$e[0],Fe.value]),$e[0]){case 0:case 1:Fe=$e;break;case 4:return $.label++,{value:$e[1],done:!1};case 5:$.label++,Pe=$e[1],$e=[0];continue;case 7:$e=$.ops.pop(),$.trys.pop();continue;default:if(!(Fe=(Fe=$.trys).length>0&&Fe[Fe.length-1])&&(6===$e[0]||2===$e[0])){$=0;continue}if(3===$e[0]&&(!Fe||$e[1]>Fe[0]&&$e[1]<Fe[3])){$.label=$e[1];break}if(6===$e[0]&&$.label<Fe[1]){$.label=Fe[1],Fe=$e;break}if(Fe&&$.label<Fe[2]){$.label=Fe[2],$.ops.push($e);break}Fe[2]&&$.ops.pop(),$.trys.pop();continue}$e=W.call(G,$)}catch(Ze){$e=[6,Ze],Pe=0}finally{le=Fe=0}if(5&$e[0])throw $e[1];return{value:$e[0]?$e[1]:void 0,done:!0}}([$e,Ze])}}}(this,function(W){switch(W.label){case 0:return[4,Promise.all(Array.from(this._unresolvedExports))];case 1:return W.sent(),this._exporter.forceFlush?[4,this._exporter.forceFlush()]:[3,3];case 2:W.sent(),W.label=3;case 3:return[2]}})})},G.prototype.onStart=function(W,$){},G.prototype.onEnd=function(W){var le,Pe,$=this;if(!this._shutdownOnce.isCalled&&W.spanContext().traceFlags&ve.X.SAMPLED){var Fe=function(){return se.internal._export($._exporter,[W]).then(function(Le){var Et;Le.code!==B.V.SUCCESS&&(0,Z.s)(null!==(Et=Le.error)&&void 0!==Et?Et:new Error("SimpleSpanProcessor: span export failed (status "+Le+")"))}).catch(function(Le){(0,Z.s)(Le)})};if(W.resource.asyncAttributesPending){var At=null===(Pe=(le=W.resource).waitForAsyncAttributes)||void 0===Pe?void 0:Pe.call(le).then(function(){return null!=At&&$._unresolvedExports.delete(At),Fe()},function(Le){return(0,Z.s)(Le)});null!=At&&this._unresolvedExports.add(At)}else Fe()}},G.prototype.shutdown=function(){return this._shutdownOnce.call()},G.prototype._shutdown=function(){return this._exporter.shutdown()},G}(),Xe=s(18225),He=s(3183),Me=s(6221),Q=s(80548),A=s(48211),me=s(45198),ne=s(73569)},76431:(Bt,z,s)=>{"use strict";s.r(z),s.d(z,{AWSECSLAUNCHTYPEVALUES_EC2:()=>l.Jn,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>l.Fz,AwsEcsLaunchtypeValues:()=>l.AS,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>l.WE,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>l.op,CLOUDPLATFORMVALUES_AWS_EC2:()=>l.WC,CLOUDPLATFORMVALUES_AWS_ECS:()=>l.p7,CLOUDPLATFORMVALUES_AWS_EKS:()=>l.Vx,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>l.Vf,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>l.JO,CLOUDPLATFORMVALUES_AZURE_AKS:()=>l.Vm,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>l.L6,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>l.oH,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>l.$R,CLOUDPLATFORMVALUES_AZURE_VM:()=>l.zF,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>l.$T,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>l.a1,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>l.qB,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>l.Tg,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>l.qN,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>l.Eh,CLOUDPROVIDERVALUES_AWS:()=>l.Xm,CLOUDPROVIDERVALUES_AZURE:()=>l.BY,CLOUDPROVIDERVALUES_GCP:()=>l.ov,CloudPlatformValues:()=>l.ns,CloudProviderValues:()=>l.jV,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>n.Bh9,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>n.Eo2,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>n.$8v,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>n.slN,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>n.VMk,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>n.g9x,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>n.G49,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>n.vhy,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>n.OSW,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>n.O2W,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>n.WJJ,DBSYSTEMVALUES_ADABAS:()=>n.nWK,DBSYSTEMVALUES_CACHE:()=>n.V02,DBSYSTEMVALUES_CASSANDRA:()=>n.Rk0,DBSYSTEMVALUES_CLOUDSCAPE:()=>n.CQB,DBSYSTEMVALUES_COCKROACHDB:()=>n.y__,DBSYSTEMVALUES_COLDFUSION:()=>n.TKU,DBSYSTEMVALUES_COSMOSDB:()=>n.zmF,DBSYSTEMVALUES_COUCHBASE:()=>n.oBD,DBSYSTEMVALUES_COUCHDB:()=>n.hV,DBSYSTEMVALUES_DB2:()=>n.xhJ,DBSYSTEMVALUES_DERBY:()=>n.XTF,DBSYSTEMVALUES_DYNAMODB:()=>n.poY,DBSYSTEMVALUES_EDB:()=>n.ynC,DBSYSTEMVALUES_ELASTICSEARCH:()=>n.Ylk,DBSYSTEMVALUES_FILEMAKER:()=>n.Xdf,DBSYSTEMVALUES_FIREBIRD:()=>n.IOi,DBSYSTEMVALUES_FIRSTSQL:()=>n.$wW,DBSYSTEMVALUES_GEODE:()=>n.N4Y,DBSYSTEMVALUES_H2:()=>n.JZz,DBSYSTEMVALUES_HANADB:()=>n.Dzx,DBSYSTEMVALUES_HBASE:()=>n.Spc,DBSYSTEMVALUES_HIVE:()=>n.nwz,DBSYSTEMVALUES_HSQLDB:()=>n.pfp,DBSYSTEMVALUES_INFORMIX:()=>n.L5D,DBSYSTEMVALUES_INGRES:()=>n.L2R,DBSYSTEMVALUES_INSTANTDB:()=>n.K2_,DBSYSTEMVALUES_INTERBASE:()=>n.y6V,DBSYSTEMVALUES_MARIADB:()=>n.ngE,DBSYSTEMVALUES_MAXDB:()=>n.XER,DBSYSTEMVALUES_MEMCACHED:()=>n.Oe4,DBSYSTEMVALUES_MONGODB:()=>n.X36,DBSYSTEMVALUES_MSSQL:()=>n.Vp5,DBSYSTEMVALUES_MYSQL:()=>n.bfK,DBSYSTEMVALUES_NEO4J:()=>n.BJ_,DBSYSTEMVALUES_NETEZZA:()=>n.irN,DBSYSTEMVALUES_ORACLE:()=>n.PU4,DBSYSTEMVALUES_OTHER_SQL:()=>n.Wb_,DBSYSTEMVALUES_PERVASIVE:()=>n.mc2,DBSYSTEMVALUES_POINTBASE:()=>n.Y$v,DBSYSTEMVALUES_POSTGRESQL:()=>n.jCw,DBSYSTEMVALUES_PROGRESS:()=>n.KjL,DBSYSTEMVALUES_REDIS:()=>n.W_f,DBSYSTEMVALUES_REDSHIFT:()=>n.MpS,DBSYSTEMVALUES_SQLITE:()=>n.vl2,DBSYSTEMVALUES_SYBASE:()=>n.K0$,DBSYSTEMVALUES_TERADATA:()=>n.Xuz,DBSYSTEMVALUES_VERTICA:()=>n.lcm,DbCassandraConsistencyLevelValues:()=>n.Nxd,DbSystemValues:()=>n.Q5s,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>n.mlL,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>n.VEl,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>n.oF4,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>n.y3W,FAASINVOKEDPROVIDERVALUES_AWS:()=>n.Tl5,FAASINVOKEDPROVIDERVALUES_AZURE:()=>n.d3j,FAASINVOKEDPROVIDERVALUES_GCP:()=>n.kOl,FAASTRIGGERVALUES_DATASOURCE:()=>n.uZf,FAASTRIGGERVALUES_HTTP:()=>n.v8K,FAASTRIGGERVALUES_OTHER:()=>n.ToY,FAASTRIGGERVALUES_PUBSUB:()=>n.CK9,FAASTRIGGERVALUES_TIMER:()=>n.IxL,FaasDocumentOperationValues:()=>n.Ijl,FaasInvokedProviderValues:()=>n.zI8,FaasTriggerValues:()=>n.iPC,HOSTARCHVALUES_AMD64:()=>l.so,HOSTARCHVALUES_ARM32:()=>l.hi,HOSTARCHVALUES_ARM64:()=>l.UQ,HOSTARCHVALUES_IA64:()=>l.av,HOSTARCHVALUES_PPC32:()=>l.OZ,HOSTARCHVALUES_PPC64:()=>l.DL,HOSTARCHVALUES_X86:()=>l.ig,HTTPFLAVORVALUES_HTTP_1_0:()=>n.dbJ,HTTPFLAVORVALUES_HTTP_1_1:()=>n.kPW,HTTPFLAVORVALUES_HTTP_2_0:()=>n.gGD,HTTPFLAVORVALUES_QUIC:()=>n.iFX,HTTPFLAVORVALUES_SPDY:()=>n.QhH,HostArchValues:()=>l.Cg,HttpFlavorValues:()=>n.dNH,MESSAGETYPEVALUES_RECEIVED:()=>n.sr7,MESSAGETYPEVALUES_SENT:()=>n.bZN,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>n.npt,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>n.HXm,MESSAGINGOPERATIONVALUES_PROCESS:()=>n.AVC,MESSAGINGOPERATIONVALUES_RECEIVE:()=>n.mO,MessageTypeValues:()=>n.Ywq,MessagingDestinationKindValues:()=>n.b7t,MessagingOperationValues:()=>n.Qgf,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>n.i9b,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>n.mN_,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>n.Q_6,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>n.EPu,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>n.uzh,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>n.Bez,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>n.uwh,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>n.Rpt,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>n.AdO,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>n.hu9,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>n.x0j,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>n.hze,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>n.kgK,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>n.rBh,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>n.IMI,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>n.wYf,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>n.bWQ,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>n.JPM,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>n.ddb,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>n._28,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>n.yIV,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>n.j7z,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>n.D3U,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>n.Vur,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>n.CGC,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>n.c1V,NETTRANSPORTVALUES_INPROC:()=>n.JjG,NETTRANSPORTVALUES_IP:()=>n.fN3,NETTRANSPORTVALUES_IP_TCP:()=>n.x85,NETTRANSPORTVALUES_IP_UDP:()=>n.ZUK,NETTRANSPORTVALUES_OTHER:()=>n.EUV,NETTRANSPORTVALUES_PIPE:()=>n.cjY,NETTRANSPORTVALUES_UNIX:()=>n.GR7,NetHostConnectionSubtypeValues:()=>n.cAF,NetHostConnectionTypeValues:()=>n.KSs,NetTransportValues:()=>n.z4S,OSTYPEVALUES_AIX:()=>l.cJ,OSTYPEVALUES_DARWIN:()=>l.JW,OSTYPEVALUES_DRAGONFLYBSD:()=>l.tD,OSTYPEVALUES_FREEBSD:()=>l.xG,OSTYPEVALUES_HPUX:()=>l.BT,OSTYPEVALUES_LINUX:()=>l.Yh,OSTYPEVALUES_NETBSD:()=>l.sS,OSTYPEVALUES_OPENBSD:()=>l.h7,OSTYPEVALUES_SOLARIS:()=>l.l9,OSTYPEVALUES_WINDOWS:()=>l.xR,OSTYPEVALUES_Z_OS:()=>l.Pi,OsTypeValues:()=>l.h0,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>n.$5b,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>n.TiO,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>n.Ryq,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>n.ueJ,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>n.wAY,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>n._pX,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>n.dXK,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>n.njt,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>n.ay9,RPCGRPCSTATUSCODEVALUES_OK:()=>n.wJ,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>n.GY$,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>n.nXs,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>n.KNN,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>n._Q_,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>n.gFG,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>n.p1q,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>n.ch2,RpcGrpcStatusCodeValues:()=>n.f3T,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>n.wpU,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>n.fhG,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>n.tGA,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>n.byW,SEMATTRS_AWS_DYNAMODB_COUNT:()=>n.F7w,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>n.Wif,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>n.TVZ,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>n.Ouu,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>n.gUJ,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>n.Wx7,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>n.La$,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>n.ti,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>n.frU,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>n.a4d,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>n.p30,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>n.sxk,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>n.r0m,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>n.F0K,SEMATTRS_AWS_DYNAMODB_SELECT:()=>n.u4L,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>n.mGg,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>n.Ta3,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>n.DBy,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>n.TCh,SEMATTRS_CODE_FILEPATH:()=>n.cvh,SEMATTRS_CODE_FUNCTION:()=>n.jrL,SEMATTRS_CODE_LINENO:()=>n.usz,SEMATTRS_CODE_NAMESPACE:()=>n.klU,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>n.Qt9,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>n.DNX,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>n.xq_,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>n._iR,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>n.Unu,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>n.Itx,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>n.NlD,SEMATTRS_DB_CASSANDRA_TABLE:()=>n.zri,SEMATTRS_DB_CONNECTION_STRING:()=>n.cd9,SEMATTRS_DB_HBASE_NAMESPACE:()=>n.bd4,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>n.qGX,SEMATTRS_DB_MONGODB_COLLECTION:()=>n.NlA,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>n.Eh5,SEMATTRS_DB_NAME:()=>n.Rt6,SEMATTRS_DB_OPERATION:()=>n.l60,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>n.wy2,SEMATTRS_DB_SQL_TABLE:()=>n.pHC,SEMATTRS_DB_STATEMENT:()=>n.FoJ,SEMATTRS_DB_SYSTEM:()=>n.V0Q,SEMATTRS_DB_USER:()=>n.N9D,SEMATTRS_ENDUSER_ID:()=>n.RHQ,SEMATTRS_ENDUSER_ROLE:()=>n.cSi,SEMATTRS_ENDUSER_SCOPE:()=>n.MWE,SEMATTRS_EXCEPTION_ESCAPED:()=>n.GKr,SEMATTRS_EXCEPTION_MESSAGE:()=>n.aP6,SEMATTRS_EXCEPTION_STACKTRACE:()=>n.ipG,SEMATTRS_EXCEPTION_TYPE:()=>n.P4J,SEMATTRS_FAAS_COLDSTART:()=>n.TRX,SEMATTRS_FAAS_CRON:()=>n.HVV,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>n.LxM,SEMATTRS_FAAS_DOCUMENT_NAME:()=>n.aTe,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>n.abe,SEMATTRS_FAAS_DOCUMENT_TIME:()=>n.aKn,SEMATTRS_FAAS_EXECUTION:()=>n.dsp,SEMATTRS_FAAS_INVOKED_NAME:()=>n.PIi,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>n.XNY,SEMATTRS_FAAS_INVOKED_REGION:()=>n.imY,SEMATTRS_FAAS_TIME:()=>n.cFk,SEMATTRS_FAAS_TRIGGER:()=>n.bes,SEMATTRS_HTTP_CLIENT_IP:()=>n.nS0,SEMATTRS_HTTP_FLAVOR:()=>n.o8O,SEMATTRS_HTTP_HOST:()=>n.Qv9,SEMATTRS_HTTP_METHOD:()=>n.vof,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>n.OdI,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>n.Plv,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>n.crS,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>n.XyR,SEMATTRS_HTTP_ROUTE:()=>n.tto,SEMATTRS_HTTP_SCHEME:()=>n.zPu,SEMATTRS_HTTP_SERVER_NAME:()=>n.H35,SEMATTRS_HTTP_STATUS_CODE:()=>n.W_O,SEMATTRS_HTTP_TARGET:()=>n.fub,SEMATTRS_HTTP_URL:()=>n.vSt,SEMATTRS_HTTP_USER_AGENT:()=>n.Nz$,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>n.U5o,SEMATTRS_MESSAGE_ID:()=>n.Gsd,SEMATTRS_MESSAGE_TYPE:()=>n.$58,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>n.LfK,SEMATTRS_MESSAGING_CONSUMER_ID:()=>n.w54,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>n.nN_,SEMATTRS_MESSAGING_DESTINATION:()=>n.Yjy,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>n.lDI,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>n.cZl,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>n.rsL,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>n.yRs,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>n.tNm,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>n.E__,SEMATTRS_MESSAGING_MESSAGE_ID:()=>n.XH7,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>n.CdG,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>n._Zr,SEMATTRS_MESSAGING_OPERATION:()=>n.zpg,SEMATTRS_MESSAGING_PROTOCOL:()=>n._af,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>n.DA0,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>n.Zl1,SEMATTRS_MESSAGING_SYSTEM:()=>n.zBy,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>n.JK9,SEMATTRS_MESSAGING_URL:()=>n.t8j,SEMATTRS_NET_HOST_CARRIER_ICC:()=>n.wgx,SEMATTRS_NET_HOST_CARRIER_MCC:()=>n.cA3,SEMATTRS_NET_HOST_CARRIER_MNC:()=>n.hXS,SEMATTRS_NET_HOST_CARRIER_NAME:()=>n.ynP,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>n.Ltc,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>n.PfM,SEMATTRS_NET_HOST_IP:()=>n.j$y,SEMATTRS_NET_HOST_NAME:()=>n.h70,SEMATTRS_NET_HOST_PORT:()=>n.Puv,SEMATTRS_NET_PEER_IP:()=>n.RvY,SEMATTRS_NET_PEER_NAME:()=>n.nvt,SEMATTRS_NET_PEER_PORT:()=>n.ZUg,SEMATTRS_NET_TRANSPORT:()=>n.Ac3,SEMATTRS_PEER_SERVICE:()=>n.RyT,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>n.C2y,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>n.Zwr,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>n.z_u,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>n.yew,SEMATTRS_RPC_JSONRPC_VERSION:()=>n.ZSz,SEMATTRS_RPC_METHOD:()=>n.Y3v,SEMATTRS_RPC_SERVICE:()=>n.GOV,SEMATTRS_RPC_SYSTEM:()=>n.sLO,SEMATTRS_THREAD_ID:()=>n.lpz,SEMATTRS_THREAD_NAME:()=>n.taz,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>l.VH,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>l.SV,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>l.SA,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>l.yB,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>l.Zf,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>l.MK,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>l.v0,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>l.an,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>l.qF,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>l.ZZ,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>l.Dn,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>l.E3,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>l.xC,SEMRESATTRS_CLOUD_PLATFORM:()=>l.Iq,SEMRESATTRS_CLOUD_PROVIDER:()=>l.mA,SEMRESATTRS_CLOUD_REGION:()=>l.Nw,SEMRESATTRS_CONTAINER_ID:()=>l.ux,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>l.uB,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>l.RB,SEMRESATTRS_CONTAINER_NAME:()=>l.aA,SEMRESATTRS_CONTAINER_RUNTIME:()=>l.PZ,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>l.I2,SEMRESATTRS_DEVICE_ID:()=>l.tn,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>l.BF,SEMRESATTRS_DEVICE_MODEL_NAME:()=>l.Bt,SEMRESATTRS_FAAS_ID:()=>l.Mm,SEMRESATTRS_FAAS_INSTANCE:()=>l.uu,SEMRESATTRS_FAAS_MAX_MEMORY:()=>l.PO,SEMRESATTRS_FAAS_NAME:()=>l.Uf,SEMRESATTRS_FAAS_VERSION:()=>l.lO,SEMRESATTRS_HOST_ARCH:()=>l.yT,SEMRESATTRS_HOST_ID:()=>l.zs,SEMRESATTRS_HOST_IMAGE_ID:()=>l.HP,SEMRESATTRS_HOST_IMAGE_NAME:()=>l.be,SEMRESATTRS_HOST_IMAGE_VERSION:()=>l.g9,SEMRESATTRS_HOST_NAME:()=>l.RK,SEMRESATTRS_HOST_TYPE:()=>l.kE,SEMRESATTRS_K8S_CLUSTER_NAME:()=>l.IG,SEMRESATTRS_K8S_CONTAINER_NAME:()=>l.Pb,SEMRESATTRS_K8S_CRONJOB_NAME:()=>l.Vy,SEMRESATTRS_K8S_CRONJOB_UID:()=>l.gT,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>l.Su,SEMRESATTRS_K8S_DAEMONSET_UID:()=>l.rK,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>l.do,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>l.k7,SEMRESATTRS_K8S_JOB_NAME:()=>l.z3,SEMRESATTRS_K8S_JOB_UID:()=>l.mc,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>l.Tl,SEMRESATTRS_K8S_NODE_NAME:()=>l.Ky,SEMRESATTRS_K8S_NODE_UID:()=>l.pV,SEMRESATTRS_K8S_POD_NAME:()=>l.TH,SEMRESATTRS_K8S_POD_UID:()=>l.gJ,SEMRESATTRS_K8S_REPLICASET_NAME:()=>l.kv,SEMRESATTRS_K8S_REPLICASET_UID:()=>l.PU,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>l.kn,SEMRESATTRS_K8S_STATEFULSET_UID:()=>l.f8,SEMRESATTRS_OS_DESCRIPTION:()=>l.ik,SEMRESATTRS_OS_NAME:()=>l.hQ,SEMRESATTRS_OS_TYPE:()=>l.ko,SEMRESATTRS_OS_VERSION:()=>l.AC,SEMRESATTRS_PROCESS_COMMAND:()=>l.Cn,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>l.U2,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>l.x2,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>l.fP,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>l.xQ,SEMRESATTRS_PROCESS_OWNER:()=>l.Yb,SEMRESATTRS_PROCESS_PID:()=>l.ky,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>l.C3,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>l.lb,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>l.cV,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>l.PL,SEMRESATTRS_SERVICE_NAME:()=>l.AV,SEMRESATTRS_SERVICE_NAMESPACE:()=>l.ar,SEMRESATTRS_SERVICE_VERSION:()=>l.xs,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>l.nA,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>l.Pl,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>l.$L,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>l.y$,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>l.U1,SEMRESATTRS_WEBENGINE_NAME:()=>l.HF,SEMRESATTRS_WEBENGINE_VERSION:()=>l.WN,SemanticAttributes:()=>n.IXq,SemanticResourceAttributes:()=>l._2,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>l.S5,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>l.XE,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>l.o2,TELEMETRYSDKLANGUAGEVALUES_GO:()=>l.HE,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>l.du,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>l.wE,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>l.tP,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>l.$c,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>l.jN,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>l.uh,TelemetrySdkLanguageValues:()=>l.wP});var n=s(52666),l=s(23413)},32610:(Bt,z,s)=>{"use strict";function n(l){for(var d={},v=l.length,S=0;S<v;S++){var y=l[S];y&&(d[String(y).toUpperCase().replace(/[-.]/g,"_")]=y)}return d}s.d(z,{O:()=>n})},23413:(Bt,z,s)=>{"use strict";s.d(z,{$L:()=>Xr,$R:()=>tn,$T:()=>ae,$c:()=>Dn,AC:()=>Li,AS:()=>Wr,AV:()=>Jr,BF:()=>Jn,BT:()=>Ri,BY:()=>qo,Bt:()=>hi,C3:()=>Tr,Cg:()=>Ls,Cn:()=>Vn,DL:()=>Ie,Dn:()=>Ii,E3:()=>Zt,Eh:()=>Ua,Fz:()=>Sr,HE:()=>Io,HF:()=>pa,HP:()=>_o,I2:()=>cn,IG:()=>Kn,Iq:()=>On,JO:()=>ts,JW:()=>un,Jn:()=>Gi,Ky:()=>gi,L6:()=>In,MK:()=>Pt,Mm:()=>xn,Nw:()=>fn,OZ:()=>tl,PL:()=>Qo,PO:()=>Ci,PU:()=>ho,PZ:()=>pn,Pb:()=>jr,Pi:()=>Er,Pl:()=>Go,RB:()=>pi,RK:()=>bi,S5:()=>wo,SA:()=>Fi,SV:()=>fi,Su:()=>zo,TH:()=>ar,Tg:()=>Ai,Tl:()=>ji,U1:()=>Xs,U2:()=>Ut,UQ:()=>vo,Uf:()=>xi,VH:()=>Ji,Vf:()=>$a,Vm:()=>Tn,Vx:()=>ea,Vy:()=>Vt,WC:()=>qs,WE:()=>Va,WN:()=>ka,XE:()=>Lr,Xm:()=>Zs,Yb:()=>qn,Yh:()=>Ft,ZZ:()=>pr,Zf:()=>bn,_2:()=>ys,a1:()=>Xn,aA:()=>zr,an:()=>ui,ar:()=>oo,av:()=>ta,be:()=>$r,cJ:()=>nr,cV:()=>ci,do:()=>yo,du:()=>da,f8:()=>Zr,fP:()=>Fr,g9:()=>bo,gJ:()=>Qi,gT:()=>ot,h0:()=>po,h7:()=>vi,hQ:()=>Ti,hi:()=>Ha,ig:()=>Ei,ik:()=>Bn,jN:()=>qt,jV:()=>Ia,k7:()=>no,kE:()=>Zi,kn:()=>Yr,ko:()=>Sn,kv:()=>Fo,ky:()=>dr,l9:()=>_r,lO:()=>Yn,lb:()=>Wn,mA:()=>Lt,mc:()=>si,nA:()=>kr,ns:()=>st,o2:()=>ns,oH:()=>Mn,op:()=>La,ov:()=>js,p7:()=>ks,pV:()=>Pi,qB:()=>So,qF:()=>gn,qN:()=>Rn,rK:()=>go,sS:()=>zn,so:()=>Zo,tD:()=>Si,tP:()=>Mt,tn:()=>An,uB:()=>ti,uh:()=>Pn,uu:()=>Gn,ux:()=>Cn,v0:()=>jt,wE:()=>_a,wP:()=>yi,x2:()=>rr,xC:()=>hn,xG:()=>wn,xQ:()=>br,xR:()=>je,xs:()=>fo,y$:()=>Ss,yB:()=>bt,yT:()=>Mr,z3:()=>to,zF:()=>va,zs:()=>ln});var n=s(32610),l="cloud.provider",d="cloud.account.id",v="cloud.region",S="cloud.availability_zone",y="cloud.platform",f="aws.ecs.container.arn",O="aws.ecs.cluster.arn",P="aws.ecs.launchtype",_="aws.ecs.task.arn",i="aws.ecs.task.family",r="aws.ecs.task.revision",a="aws.eks.cluster.arn",c="aws.log.group.names",m="aws.log.group.arns",M="aws.log.stream.names",D="aws.log.stream.arns",I="container.name",U="container.id",V="container.runtime",T="container.image.name",N="container.image.tag",L="deployment.environment",E="device.id",g="device.model.identifier",R="device.model.name",B="faas.name",X="faas.id",H="faas.version",J="faas.instance",re="faas.max_memory",ie="host.id",ve="host.name",ue="host.type",se="host.arch",Z="host.image.name",Se="host.image.id",Ce="host.image.version",Be="k8s.cluster.name",Xe="k8s.node.name",He="k8s.node.uid",Me="k8s.namespace.name",Q="k8s.pod.uid",A="k8s.pod.name",me="k8s.container.name",ne="k8s.replicaset.uid",G="k8s.replicaset.name",W="k8s.deployment.uid",$="k8s.deployment.name",le="k8s.statefulset.uid",Pe="k8s.statefulset.name",Fe="k8s.daemonset.uid",At="k8s.daemonset.name",Le="k8s.job.uid",Et="k8s.job.name",$e="k8s.cronjob.uid",Ze="k8s.cronjob.name",Qe="os.type",Ve="os.description",nt="os.name",Ot="os.version",at="process.pid",It="process.executable.name",We="process.executable.path",xe="process.command",lt="process.command_line",ft="process.command_args",ht="process.owner",Xt="process.runtime.name",Ht="process.runtime.version",Je="process.runtime.description",tt="service.name",rt="service.namespace",et="service.instance.id",St="service.version",Gt="telemetry.sdk.name",yt="telemetry.sdk.language",Wt="telemetry.sdk.version",ke="telemetry.auto.version",be="webengine.name",Ae="webengine.version",qe="webengine.description",Lt=l,Zt=d,fn=v,hn=S,On=y,fi=f,Ji=O,Fi=P,bt=_,bn=i,Pt=r,jt=a,gn=c,ui=m,Ii=M,pr=D,zr=I,Cn=U,pn=V,ti=T,pi=N,cn=L,An=E,Jn=g,hi=R,xi=B,xn=X,Yn=H,Gn=J,Ci=re,ln=ie,bi=ve,Zi=ue,Mr=se,$r=Z,_o=Se,bo=Ce,Kn=Be,gi=Xe,Pi=He,ji=Me,Qi=Q,ar=A,jr=me,ho=ne,Fo=G,no=W,yo=$,Zr=le,Yr=Pe,go=Fe,zo=At,si=Le,to=Et,ot=$e,Vt=Ze,Sn=Qe,Bn=Ve,Ti=nt,Li=Ot,dr=at,Fr=It,br=We,Vn=xe,rr=lt,Ut=ft,qn=ht,Wn=Xt,ci=Ht,Tr=Je,Jr=tt,oo=rt,Qo=et,fo=St,Xr=Gt,Go=yt,Ss=Wt,kr=ke,pa=be,ka=Ae,Xs=qe,ys=(0,n.O)([l,d,v,S,y,f,O,P,_,i,r,a,c,m,M,D,I,U,V,T,N,L,E,g,R,B,X,H,J,re,ie,ve,ue,se,Z,Se,Ce,Be,Xe,He,Me,Q,A,me,ne,G,W,$,le,Pe,Fe,At,Le,Et,$e,Ze,Qe,Ve,nt,Ot,at,It,We,xe,lt,ft,ht,Xt,Ht,Je,tt,rt,et,St,Gt,yt,Wt,ke,be,Ae,qe]),ma="alibaba_cloud",Ua=ma,Zs="aws",qo="azure",js="gcp",Ia=(0,n.O)([ma,"aws","azure","gcp"]),Ds="alibaba_cloud_ecs",Js="alibaba_cloud_fc",fa="aws_ec2",Ga="aws_ecs",cs="aws_eks",$s="aws_lambda",Vo="aws_elastic_beanstalk",Hn="azure_vm",Ba="azure_container_instances",ds="azure_aks",la="azure_functions",ra="azure_app_service",$o="gcp_compute_engine",rs="gcp_cloud_run",oa="gcp_kubernetes_engine",Yo="gcp_cloud_functions",Bs="gcp_app_engine",Va=Ds,La=Js,qs=fa,ks=Ga,ea=cs,ts=$s,$a=Vo,va=Hn,Mn=Ba,Tn=ds,tn=la,In=ra,Ai=$o,So=rs,Rn=oa,Xn=Yo,ae=Bs,st=(0,n.O)([Ds,Js,fa,Ga,cs,$s,Vo,Hn,Ba,ds,la,ra,$o,rs,oa,Yo,Bs]),$n="fargate",Gi="ec2",Sr=$n,Wr=(0,n.O)(["ec2",$n]),Zo="amd64",Ha="arm32",vo="arm64",ta="ia64",tl="ppc32",Ie="ppc64",Ei="x86",Ls=(0,n.O)(["amd64","arm32","arm64","ia64","ppc32","ppc64","x86"]),Ns="windows",Ja="freebsd",Ea="openbsd",Ks="dragonflybsd",mr="solaris",je=Ns,Ft="linux",un="darwin",wn=Ja,zn="netbsd",vi=Ea,Si=Ks,Ri="hpux",nr="aix",_r=mr,Er="z_os",po=(0,n.O)([Ns,"linux","darwin",Ja,"netbsd",Ea,Ks,"hpux","aix",mr,"z_os"]),wo="cpp",Lr="dotnet",ns="erlang",Io="go",da="java",_a="nodejs",Mt="php",Dn="python",qt="ruby",Pn="webjs",yi=(0,n.O)(["cpp","dotnet","erlang","go","java","nodejs","php","python","ruby","webjs"])},52666:(Bt,z,s)=>{"use strict";s.d(z,{$58:()=>Di,$5b:()=>Ad,$8v:()=>Is,$wW:()=>Cl,AVC:()=>fu,Ac3:()=>Oa,AdO:()=>Tp,BJ_:()=>Un,Bez:()=>Hc,Bh9:()=>Na,C2y:()=>_r,CGC:()=>vt,CK9:()=>Qn,CQB:()=>xa,CdG:()=>zi,D3U:()=>kt,DA0:()=>Ja,DBy:()=>Ha,DNX:()=>Vn,Dzx:()=>Ka,EPu:()=>td,EUV:()=>vc,E__:()=>vi,Eh5:()=>Vt,Eo2:()=>he,F0K:()=>Zo,F7w:()=>vo,FoJ:()=>to,G49:()=>h,GKr:()=>oo,GOV:()=>Ri,GR7:()=>Ol,GY$:()=>Su,Gsd:()=>Te,H35:()=>In,HVV:()=>ka,HXm:()=>Bl,IMI:()=>Pd,IOi:()=>Al,IXq:()=>ei,Ijl:()=>Xo,Itx:()=>Bn,IxL:()=>li,JK9:()=>Ps,JPM:()=>Wd,JZz:()=>gt,JjG:()=>El,K0$:()=>fe,K2_:()=>mt,KNN:()=>Id,KSs:()=>Zn,KjL:()=>ws,L2R:()=>Il,L5D:()=>Kt,La$:()=>Sr,LfK:()=>Rt,Ltc:()=>Js,LxM:()=>Xr,MWE:()=>ds,MpS:()=>Ho,N4Y:()=>ri,N9D:()=>go,NlA:()=>qn,NlD:()=>Fr,Nxd:()=>pt,Nz$:()=>$a,O2W:()=>k,OSW:()=>we,OdI:()=>va,Oe4:()=>Xi,Ouu:()=>Ie,P4J:()=>ci,PIi:()=>ys,PU4:()=>Or,PfM:()=>Ds,Plv:()=>Mn,Puv:()=>js,Q5s:()=>fr,Q_6:()=>ed,Qgf:()=>Gl,QhH:()=>xd,Qt9:()=>Ti,Qv9:()=>qs,RHQ:()=>Hn,Rk0:()=>on,Rpt:()=>dc,Rt6:()=>si,RvY:()=>Ms,RyT:()=>Vo,Ryq:()=>bu,Spc:()=>ct,TCh:()=>yo,TKU:()=>Nt,TRX:()=>Xs,TVZ:()=>Cr,Ta3:()=>Rn,TiO:()=>wd,Tl5:()=>Ta,ToY:()=>wi,U5o:()=>Jt,Unu:()=>Sn,V02:()=>lc,V0Q:()=>Zr,VEl:()=>Vr,VMk:()=>x,Vp5:()=>Oi,Vur:()=>Qt,WJJ:()=>b,W_O:()=>ea,W_f:()=>pe,Wb_:()=>oi,Wif:()=>Ki,Wx7:()=>ae,X36:()=>De,XER:()=>Nl,XH7:()=>Ea,XNY:()=>ma,XTF:()=>cc,Xdf:()=>_t,Xuz:()=>Ne,XyR:()=>tn,Y$v:()=>j,Y3v:()=>nr,Yjy:()=>Ls,Ylk:()=>Mi,Ywq:()=>Qd,ZSz:()=>Er,ZUK:()=>dl,ZUg:()=>Ua,Zl1:()=>je,Zwr:()=>To,_28:()=>jd,_Q_:()=>zc,_Zr:()=>na,_af:()=>ja,_iR:()=>dr,_pX:()=>od,a4d:()=>st,aKn:()=>Ss,aP6:()=>Tr,aTe:()=>kr,abe:()=>Go,ay9:()=>ph,b7t:()=>Eo,bWQ:()=>Lu,bZN:()=>gs,bd4:()=>rr,bes:()=>Qo,bfK:()=>ki,byW:()=>Xn,c1V:()=>en,cA3:()=>Ga,cAF:()=>nd,cFk:()=>pa,cSi:()=>Ba,cZl:()=>wn,cd9:()=>Yr,ch2:()=>hc,cjY:()=>ml,crS:()=>Tn,cvh:()=>oa,d3j:()=>ls,dNH:()=>rd,dXK:()=>Rd,dbJ:()=>Nu,ddb:()=>Rl,dsp:()=>fo,f3T:()=>fd,fN3:()=>pl,fhG:()=>tl,frU:()=>Gi,fub:()=>La,g9x:()=>ze,gFG:()=>Sc,gGD:()=>Ic,gUJ:()=>ao,h70:()=>Ia,hV:()=>xt,hXS:()=>cs,hu9:()=>eg,hze:()=>Xc,i9b:()=>Md,iFX:()=>mu,iPC:()=>mi,imY:()=>fs,ipG:()=>Jr,irN:()=>de,j$y:()=>qo,j7z:()=>Ee,jCw:()=>Os,jrL:()=>$o,kOl:()=>zs,kPW:()=>$d,kgK:()=>pu,klU:()=>rs,l60:()=>ot,lDI:()=>Ns,lcm:()=>Ye,lpz:()=>la,mGg:()=>el,mN_:()=>Yc,mO:()=>Td,mc2:()=>q,mlL:()=>Br,nN_:()=>Ks,nS0:()=>So,nWK:()=>Vc,nXs:()=>Rc,ngE:()=>_n,njt:()=>wp,npt:()=>Rs,nvt:()=>Zs,nwz:()=>Ko,o8O:()=>ts,oBD:()=>Ge,oF4:()=>Ar,p1q:()=>gc,p30:()=>Ct,pHC:()=>Wn,pfp:()=>Ws,poY:()=>En,qGX:()=>zo,r0m:()=>ca,rBh:()=>kl,rsL:()=>un,sLO:()=>Si,slN:()=>ee,sr7:()=>vd,sxk:()=>ta,t8j:()=>Wa,tGA:()=>$n,tNm:()=>zn,taz:()=>ra,ti:()=>Po,tto:()=>Ai,u4L:()=>Ir,uZf:()=>kn,ueJ:()=>tg,usz:()=>Yo,uwh:()=>hh,uzh:()=>Co,v8K:()=>yn,vSt:()=>Va,vhy:()=>yl,vl2:()=>te,vof:()=>Bs,w54:()=>lr,wAY:()=>gh,wJ:()=>Cu,wYf:()=>jc,wgx:()=>$s,wpU:()=>Wr,wy2:()=>Ut,x0j:()=>Hd,x85:()=>ll,xhJ:()=>is,xq_:()=>br,y3W:()=>_s,y6V:()=>Yt,yIV:()=>wc,yRs:()=>Ft,y__:()=>Ui,yew:()=>po,ynC:()=>ac,ynP:()=>fa,z4S:()=>Zl,zBy:()=>Ei,zI8:()=>ia,zPu:()=>ks,z_u:()=>rn,zmF:()=>sn,zpg:()=>mr,zri:()=>Li});var n=s(32610),l="aws.lambda.invoked_arn",d="db.system",v="db.connection_string",S="db.user",y="db.jdbc.driver_classname",f="db.name",O="db.statement",P="db.operation",_="db.mssql.instance_name",i="db.cassandra.keyspace",r="db.cassandra.page_size",a="db.cassandra.consistency_level",c="db.cassandra.table",m="db.cassandra.idempotence",M="db.cassandra.speculative_execution_count",D="db.cassandra.coordinator.id",I="db.cassandra.coordinator.dc",U="db.hbase.namespace",V="db.redis.database_index",T="db.mongodb.collection",N="db.sql.table",L="exception.type",E="exception.message",g="exception.stacktrace",R="exception.escaped",B="faas.trigger",X="faas.execution",H="faas.document.collection",J="faas.document.operation",re="faas.document.time",ie="faas.document.name",ve="faas.time",ue="faas.cron",se="faas.coldstart",Z="faas.invoked_name",Se="faas.invoked_provider",Ce="faas.invoked_region",Be="net.transport",Xe="net.peer.ip",He="net.peer.port",Me="net.peer.name",Q="net.host.ip",A="net.host.port",me="net.host.name",ne="net.host.connection.type",G="net.host.connection.subtype",W="net.host.carrier.name",$="net.host.carrier.mcc",le="net.host.carrier.mnc",Pe="net.host.carrier.icc",Fe="peer.service",At="enduser.id",Le="enduser.role",Et="enduser.scope",$e="thread.id",Ze="thread.name",Qe="code.function",Ve="code.namespace",nt="code.filepath",Ot="code.lineno",at="http.method",It="http.url",We="http.target",xe="http.host",lt="http.scheme",ft="http.status_code",ht="http.flavor",Xt="http.user_agent",Ht="http.request_content_length",Je="http.request_content_length_uncompressed",tt="http.response_content_length",rt="http.response_content_length_uncompressed",et="http.server_name",St="http.route",Gt="http.client_ip",yt="aws.dynamodb.table_names",Wt="aws.dynamodb.consumed_capacity",ke="aws.dynamodb.item_collection_metrics",be="aws.dynamodb.provisioned_read_capacity",Ae="aws.dynamodb.provisioned_write_capacity",qe="aws.dynamodb.consistent_read",Lt="aws.dynamodb.projection",Zt="aws.dynamodb.limit",fn="aws.dynamodb.attributes_to_get",hn="aws.dynamodb.index_name",On="aws.dynamodb.select",fi="aws.dynamodb.global_secondary_indexes",Ji="aws.dynamodb.local_secondary_indexes",Fi="aws.dynamodb.exclusive_start_table",bt="aws.dynamodb.table_count",bn="aws.dynamodb.scan_forward",Pt="aws.dynamodb.segment",jt="aws.dynamodb.total_segments",gn="aws.dynamodb.count",ui="aws.dynamodb.scanned_count",Ii="aws.dynamodb.attribute_definitions",pr="aws.dynamodb.global_secondary_index_updates",zr="messaging.system",Cn="messaging.destination",pn="messaging.destination_kind",ti="messaging.temp_destination",pi="messaging.protocol",cn="messaging.protocol_version",An="messaging.url",Jn="messaging.message_id",hi="messaging.conversation_id",xi="messaging.message_payload_size_bytes",xn="messaging.message_payload_compressed_size_bytes",Yn="messaging.operation",Gn="messaging.consumer_id",Ci="messaging.rabbitmq.routing_key",ln="messaging.kafka.message_key",bi="messaging.kafka.consumer_group",Zi="messaging.kafka.client_id",Mr="messaging.kafka.partition",$r="messaging.kafka.tombstone",_o="rpc.system",bo="rpc.service",Kn="rpc.method",gi="rpc.grpc.status_code",Pi="rpc.jsonrpc.version",ji="rpc.jsonrpc.request_id",Qi="rpc.jsonrpc.error_code",ar="rpc.jsonrpc.error_message",jr="message.type",ho="message.id",Fo="message.compressed_size",no="message.uncompressed_size",yo=l,Zr=d,Yr=v,go=S,zo=y,si=f,to=O,ot=P,Vt=_,Sn=i,Bn=r,Ti=a,Li=c,dr=m,Fr=M,br=D,Vn=I,rr=U,Ut=V,qn=T,Wn=N,ci=L,Tr=E,Jr=g,oo=R,Qo=B,fo=X,Xr=H,Go=J,Ss=re,kr=ie,pa=ve,ka=ue,Xs=se,ys=Z,ma=Se,fs=Ce,Oa=Be,Ms=Xe,Ua=He,Zs=Me,qo=Q,js=A,Ia=me,Ds=ne,Js=G,fa=W,Ga=$,cs=le,$s=Pe,Vo=Fe,Hn=At,Ba=Le,ds=Et,la=$e,ra=Ze,$o=Qe,rs=Ve,oa=nt,Yo=Ot,Bs=at,Va=It,La=We,qs=xe,ks=lt,ea=ft,ts=ht,$a=Xt,va=Ht,Mn=Je,Tn=tt,tn=rt,In=et,Ai=St,So=Gt,Rn=yt,Xn=Wt,ae=ke,st=be,Ct=Ae,$n=qe,Gi=Lt,Sr=Zt,Wr=fn,ao=hn,Ir=On,Cr=fi,Po=Ji,Ki=Fi,el=bt,ca=bn,Zo=Pt,Ha=jt,vo=gn,ta=ui,tl=Ii,Ie=pr,Ei=zr,Ls=Cn,Ns=pn,Ps=ti,ja=pi,Ja=cn,Wa=An,Ea=Jn,Ks=hi,na=xi,zi=xn,mr=Yn,lr=Gn,je=Ci,Ft=ln,un=bi,wn=Zi,zn=Mr,vi=$r,Si=_o,Ri=bo,nr=Kn,_r=gi,Er=Pi,po=ji,To=Qi,rn=ar,Di=jr,Te=ho,Jt=Fo,Rt=no,ei=(0,n.O)([l,d,v,S,y,f,O,P,_,i,r,a,c,m,M,D,I,U,V,T,N,L,E,g,R,B,X,H,J,re,ie,ve,ue,se,Z,Se,Ce,Be,Xe,He,Me,Q,A,me,ne,G,W,$,le,Pe,Fe,At,Le,Et,$e,Ze,Qe,Ve,nt,Ot,at,It,We,xe,lt,ft,ht,Xt,Ht,Je,tt,rt,et,St,Gt,yt,Wt,ke,be,Ae,qe,Lt,Zt,fn,hn,On,fi,Ji,Fi,bt,bn,Pt,jt,gn,ui,Ii,pr,zr,Cn,pn,ti,pi,cn,An,Jn,hi,xi,xn,Yn,Gn,Ci,ln,bi,Zi,Mr,$r,_o,bo,Kn,gi,Pi,ji,Qi,ar,jr,ho,Fo,no]),tr="other_sql",ns="postgresql",Io="redshift",_a="cloudscape",Dn="progress",ur="firstsql",ss="firebird",Ro="filemaker",Gs="informix",es="instantdb",hs="interbase",Jo="mariadb",Gr="netezza",No="pervasive",Vs="pointbase",as="teradata",il="vertica",Oo="coldfusion",za="cassandra",Xa="mongodb",Pl="couchbase",Hs="couchdb",wl="cosmosdb",rl="dynamodb",_l="elasticsearch",ii="memcached",Sl="cockroachdb",oi=tr,Oi="mssql",ki="mysql",Or="oracle",is="db2",Os=ns,Ho=Io,Ko="hive",xa=_a,Ws="hsqldb",ws=Dn,Nl="maxdb",Ka="hanadb",Il="ingres",Cl=ur,ac="edb",lc="cache",Vc="adabas",Al=ss,cc="derby",_t=Ro,Kt=Gs,mt=es,Yt=hs,_n=Jo,de=Gr,q=No,j=Vs,te="sqlite",fe="sybase",Ne=as,Ye=il,gt="h2",Nt=Oo,on=za,ct="hbase",De=Xa,pe="redis",Ge=Pl,xt=Hs,sn=wl,En=rl,Un="neo4j",ri="geode",Mi=_l,Xi=ii,Ui=Sl,fr=(0,n.O)([tr,"mssql","mysql","oracle","db2",ns,Io,"hive",_a,"hsqldb",Dn,"maxdb","hanadb","ingres",ur,"edb","cache","adabas",ss,"derby",Ro,Gs,es,hs,Jo,Gr,No,Vs,"sqlite","sybase",as,il,"h2",Oo,za,"hbase",Xa,"redis",Pl,Hs,wl,rl,"neo4j","geode",_l,ii,Sl]),yr="each_quorum",co="local_quorum",Fs="local_one",Us="local_serial",Na="all",Is=yr,yl="quorum",x=co,h="one",b="two",k="three",ee=Fs,he="any",we="serial",ze=Us,pt=(0,n.O)(["all",yr,"quorum",co,"one","two","three",Fs,"any","serial",Us]),wt="datasource",kn=wt,yn="http",Qn="pubsub",li="timer",wi="other",mi=(0,n.O)([wt,"http","pubsub","timer","other"]),Ar="insert",Vr="edit",Br="delete",Xo=(0,n.O)(["insert","edit","delete"]),Do="alibaba_cloud",_s=Do,Ta="aws",ls="azure",zs="gcp",ia=(0,n.O)([Do,"aws","azure","gcp"]),ll="ip_tcp",dl="ip_udp",pl="ip",Ol="unix",ml="pipe",El="inproc",vc="other",Zl=(0,n.O)(["ip_tcp","ip_udp","ip","unix","pipe","inproc","other"]),xl="unavailable",ic="unknown",vt="wifi",en="wired",Ee="cell",kt=xl,Qt=ic,Zn=(0,n.O)(["wifi","wired","cell",xl,ic]),ba="cdma2000_1xrtt",zl="td_scdma",dc="gprs",ed="edge",wc="umts",Md="cdma",Co="evdo_0",Hc="evdo_a",Yc=ba,eg="hsdpa",pu="hsupa",Hd="hspa",kl="iden",hh="evdo_b",jc="lte",td="ehrpd",Xc="hspap",Tp="gsm",jd=zl,Pd="iwlan",Wd="nr",Rl="nrnsa",Lu="lte_ca",nd=(0,n.O)(["gprs","edge","umts","cdma","evdo_0","evdo_a",ba,"hsdpa","hsupa","hspa","iden","evdo_b","lte","ehrpd","hspap","gsm",zl,"iwlan","nr","nrnsa","lte_ca"]),Nu="1.0",$d="1.1",Ic="2.0",xd="SPDY",mu="QUIC",rd={HTTP_1_0:"1.0",HTTP_1_1:"1.1",HTTP_2_0:"2.0",SPDY:"SPDY",QUIC:"QUIC"},Rs="queue",Bl="topic",Eo=(0,n.O)(["queue","topic"]),ql="receive",Fl="process",Td=ql,fu=Fl,Gl=(0,n.O)([ql,Fl]),Cu=0,bu=1,hc=2,wp=3,gh=4,ph=5,wd=6,Rc=7,Id=8,od=9,Ad=10,Su=11,gc=12,Rd=13,Sc=14,tg=15,zc=16,fd={OK:0,CANCELLED:1,UNKNOWN:2,INVALID_ARGUMENT:3,DEADLINE_EXCEEDED:4,NOT_FOUND:5,ALREADY_EXISTS:6,PERMISSION_DENIED:7,RESOURCE_EXHAUSTED:8,FAILED_PRECONDITION:9,ABORTED:10,OUT_OF_RANGE:11,UNIMPLEMENTED:12,INTERNAL:13,UNAVAILABLE:14,DATA_LOSS:15,UNAUTHENTICATED:16},Zc="RECEIVED",gs="SENT",vd=Zc,Qd=(0,n.O)(["SENT",Zc])},69753:Bt=>{"use strict";Bt.exports=function z(s,n){for(var l=new Array(arguments.length-1),d=0,v=2,S=!0;v<arguments.length;)l[d++]=arguments[v++];return new Promise(function(f,O){l[d]=function(_){if(S)if(S=!1,_)O(_);else{for(var i=new Array(arguments.length-1),r=0;r<i.length;)i[r++]=arguments[r];f.apply(null,i)}};try{s.apply(n||null,l)}catch(P){S&&(S=!1,O(P))}})}},5275:(Bt,z)=>{"use strict";var s=z;s.length=function(y){var f=y.length;if(!f)return 0;for(var O=0;--f%4>1&&"="===y.charAt(f);)++O;return Math.ceil(3*y.length)/4-O};for(var n=new Array(64),l=new Array(123),d=0;d<64;)l[n[d]=d<26?d+65:d<52?d+71:d<62?d-4:d-59|43]=d++;s.encode=function(y,f,O){for(var a,P=null,_=[],i=0,r=0;f<O;){var c=y[f++];switch(r){case 0:_[i++]=n[c>>2],a=(3&c)<<4,r=1;break;case 1:_[i++]=n[a|c>>4],a=(15&c)<<2,r=2;break;case 2:_[i++]=n[a|c>>6],_[i++]=n[63&c],r=0}i>8191&&((P||(P=[])).push(String.fromCharCode.apply(String,_)),i=0)}return r&&(_[i++]=n[a],_[i++]=61,1===r&&(_[i++]=61)),P?(i&&P.push(String.fromCharCode.apply(String,_.slice(0,i))),P.join("")):String.fromCharCode.apply(String,_.slice(0,i))};var v="invalid encoding";s.decode=function(y,f,O){for(var i,P=O,_=0,r=0;r<y.length;){var a=y.charCodeAt(r++);if(61===a&&_>1)break;if(void 0===(a=l[a]))throw Error(v);switch(_){case 0:i=a,_=1;break;case 1:f[O++]=i<<2|(48&a)>>4,i=a,_=2;break;case 2:f[O++]=(15&i)<<4|(60&a)>>2,i=a,_=3;break;case 3:f[O++]=(3&i)<<6|a,_=0}}if(1===_)throw Error(v);return O-P},s.test=function(y){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(y)}},84978:Bt=>{"use strict";function z(){this._listeners={}}Bt.exports=z,z.prototype.on=function(n,l,d){return(this._listeners[n]||(this._listeners[n]=[])).push({fn:l,ctx:d||this}),this},z.prototype.off=function(n,l){if(void 0===n)this._listeners={};else if(void 0===l)this._listeners[n]=[];else for(var d=this._listeners[n],v=0;v<d.length;)d[v].fn===l?d.splice(v,1):++v;return this},z.prototype.emit=function(n){var l=this._listeners[n];if(l){for(var d=[],v=1;v<arguments.length;)d.push(arguments[v++]);for(v=0;v<l.length;)l[v].fn.apply(l[v++].ctx,d)}return this}},8982:Bt=>{"use strict";function z(v){return typeof Float32Array<"u"?function(){var S=new Float32Array([-0]),y=new Uint8Array(S.buffer),f=128===y[3];function O(r,a,c){S[0]=r,a[c]=y[0],a[c+1]=y[1],a[c+2]=y[2],a[c+3]=y[3]}function P(r,a,c){S[0]=r,a[c]=y[3],a[c+1]=y[2],a[c+2]=y[1],a[c+3]=y[0]}function _(r,a){return y[0]=r[a],y[1]=r[a+1],y[2]=r[a+2],y[3]=r[a+3],S[0]}function i(r,a){return y[3]=r[a],y[2]=r[a+1],y[1]=r[a+2],y[0]=r[a+3],S[0]}v.writeFloatLE=f?O:P,v.writeFloatBE=f?P:O,v.readFloatLE=f?_:i,v.readFloatBE=f?i:_}():function(){function S(f,O,P,_){var i=O<0?1:0;if(i&&(O=-O),0===O)f(1/O>0?0:2147483648,P,_);else if(isNaN(O))f(2143289344,P,_);else if(O>34028234663852886e22)f((i<<31|2139095040)>>>0,P,_);else if(O<11754943508222875e-54)f((i<<31|Math.round(O/1401298464324817e-60))>>>0,P,_);else{var r=Math.floor(Math.log(O)/Math.LN2);f((i<<31|r+127<<23|8388607&Math.round(O*Math.pow(2,-r)*8388608))>>>0,P,_)}}function y(f,O,P){var _=f(O,P),i=2*(_>>31)+1,r=_>>>23&255,a=8388607&_;return 255===r?a?NaN:i*(1/0):0===r?1401298464324817e-60*i*a:i*Math.pow(2,r-150)*(a+8388608)}v.writeFloatLE=S.bind(null,s),v.writeFloatBE=S.bind(null,n),v.readFloatLE=y.bind(null,l),v.readFloatBE=y.bind(null,d)}(),typeof Float64Array<"u"?function(){var S=new Float64Array([-0]),y=new Uint8Array(S.buffer),f=128===y[7];function O(r,a,c){S[0]=r,a[c]=y[0],a[c+1]=y[1],a[c+2]=y[2],a[c+3]=y[3],a[c+4]=y[4],a[c+5]=y[5],a[c+6]=y[6],a[c+7]=y[7]}function P(r,a,c){S[0]=r,a[c]=y[7],a[c+1]=y[6],a[c+2]=y[5],a[c+3]=y[4],a[c+4]=y[3],a[c+5]=y[2],a[c+6]=y[1],a[c+7]=y[0]}function _(r,a){return y[0]=r[a],y[1]=r[a+1],y[2]=r[a+2],y[3]=r[a+3],y[4]=r[a+4],y[5]=r[a+5],y[6]=r[a+6],y[7]=r[a+7],S[0]}function i(r,a){return y[7]=r[a],y[6]=r[a+1],y[5]=r[a+2],y[4]=r[a+3],y[3]=r[a+4],y[2]=r[a+5],y[1]=r[a+6],y[0]=r[a+7],S[0]}v.writeDoubleLE=f?O:P,v.writeDoubleBE=f?P:O,v.readDoubleLE=f?_:i,v.readDoubleBE=f?i:_}():function(){function S(f,O,P,_,i,r){var a=_<0?1:0;if(a&&(_=-_),0===_)f(0,i,r+O),f(1/_>0?0:2147483648,i,r+P);else if(isNaN(_))f(0,i,r+O),f(2146959360,i,r+P);else if(_>17976931348623157e292)f(0,i,r+O),f((a<<31|2146435072)>>>0,i,r+P);else{var c;if(_<22250738585072014e-324)f((c=_/5e-324)>>>0,i,r+O),f((a<<31|c/4294967296)>>>0,i,r+P);else{var m=Math.floor(Math.log(_)/Math.LN2);1024===m&&(m=1023),f(4503599627370496*(c=_*Math.pow(2,-m))>>>0,i,r+O),f((a<<31|m+1023<<20|1048576*c&1048575)>>>0,i,r+P)}}}function y(f,O,P,_,i){var r=f(_,i+O),a=f(_,i+P),c=2*(a>>31)+1,m=a>>>20&2047,M=4294967296*(1048575&a)+r;return 2047===m?M?NaN:c*(1/0):0===m?5e-324*c*M:c*Math.pow(2,m-1075)*(M+4503599627370496)}v.writeDoubleLE=S.bind(null,s,0,4),v.writeDoubleBE=S.bind(null,n,4,0),v.readDoubleLE=y.bind(null,l,0,4),v.readDoubleBE=y.bind(null,d,4,0)}(),v}function s(v,S,y){S[y]=255&v,S[y+1]=v>>>8&255,S[y+2]=v>>>16&255,S[y+3]=v>>>24}function n(v,S,y){S[y]=v>>>24,S[y+1]=v>>>16&255,S[y+2]=v>>>8&255,S[y+3]=255&v}function l(v,S){return(v[S]|v[S+1]<<8|v[S+2]<<16|v[S+3]<<24)>>>0}function d(v,S){return(v[S]<<24|v[S+1]<<16|v[S+2]<<8|v[S+3])>>>0}Bt.exports=z(z)},46469:module=>{"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(Bt){}return null}module.exports=inquire},74722:Bt=>{"use strict";Bt.exports=function z(s,n,l){var d=l||8192,v=d>>>1,S=null,y=d;return function(O){if(O<1||O>v)return s(O);y+O>d&&(S=s(d),y=0);var P=n.call(S,y,y+=O);return 7&y&&(y=1+(7|y)),P}}},61755:(Bt,z)=>{"use strict";var s=z;s.length=function(l){for(var d=0,v=0,S=0;S<l.length;++S)(v=l.charCodeAt(S))<128?d+=1:v<2048?d+=2:55296==(64512&v)&&56320==(64512&l.charCodeAt(S+1))?(++S,d+=4):d+=3;return d},s.read=function(l,d,v){if(v-d<1)return"";for(var P,y=null,f=[],O=0;d<v;)(P=l[d++])<128?f[O++]=P:P>191&&P<224?f[O++]=(31&P)<<6|63&l[d++]:P>239&&P<365?(P=((7&P)<<18|(63&l[d++])<<12|(63&l[d++])<<6|63&l[d++])-65536,f[O++]=55296+(P>>10),f[O++]=56320+(1023&P)):f[O++]=(15&P)<<12|(63&l[d++])<<6|63&l[d++],O>8191&&((y||(y=[])).push(String.fromCharCode.apply(String,f)),O=0);return y?(O&&y.push(String.fromCharCode.apply(String,f.slice(0,O))),y.join("")):String.fromCharCode.apply(String,f.slice(0,O))},s.write=function(l,d,v){for(var y,f,S=v,O=0;O<l.length;++O)(y=l.charCodeAt(O))<128?d[v++]=y:y<2048?(d[v++]=y>>6|192,d[v++]=63&y|128):55296==(64512&y)&&56320==(64512&(f=l.charCodeAt(O+1)))?(++O,d[v++]=(y=65536+((1023&y)<<10)+(1023&f))>>18|240,d[v++]=y>>12&63|128,d[v++]=y>>6&63|128,d[v++]=63&y|128):(d[v++]=y>>12|224,d[v++]=y>>6&63|128,d[v++]=63&y|128);return v-S}},94329:Bt=>{var v=.1,S="function"==typeof Float32Array;function y(c,m){return 1-3*m+3*c}function f(c,m){return 3*m-6*c}function O(c){return 3*c}function P(c,m,M){return((y(m,M)*c+f(m,M))*c+O(m))*c}function _(c,m,M){return 3*y(m,M)*c*c+2*f(m,M)*c+O(m)}function a(c){return c}Bt.exports=function(m,M,D,I){if(!(0<=m&&m<=1&&0<=D&&D<=1))throw new Error("bezier x values must be in [0, 1] range");if(m===M&&D===I)return a;for(var U=S?new Float32Array(11):new Array(11),V=0;V<11;++V)U[V]=P(V*v,m,D);return function(L){return 0===L?0:1===L?1:P(function T(N){for(var L=0,E=1;10!==E&&U[E]<=N;++E)L+=v;--E;var B=L+(N-U[E])/(U[E+1]-U[E])*v,X=_(B,m,D);return X>=.001?function r(c,m,M,D){for(var I=0;I<4;++I){var U=_(m,M,D);if(0===U)return m;m-=(P(m,M,D)-c)/U}return m}(N,B,m,D):0===X?B:function i(c,m,M,D,I){var U,V,T=0;do{(U=P(V=m+(M-m)/2,D,I)-c)>0?M=V:m=V}while(Math.abs(U)>1e-7&&++T<10);return V}(N,L,L+v,m,D)}(L),M,I)}}},19884:Bt=>{"use strict";var z={single_source_shortest_paths:function(s,n,l){var d={},v={};v[n]=0;var y,f,O,P,_,r,S=z.PriorityQueue.make();for(S.push(n,0);!S.empty();)for(O in P=(y=S.pop()).cost,_=s[f=y.value]||{})_.hasOwnProperty(O)&&(r=P+_[O],(typeof v[O]>"u"||v[O]>r)&&(v[O]=r,S.push(O,r),d[O]=f));if(typeof l<"u"&&typeof v[l]>"u"){var m=["Could not find a path from ",n," to ",l,"."].join("");throw new Error(m)}return d},extract_shortest_path_from_predecessor_list:function(s,n){for(var l=[],d=n;d;)l.push(d),d=s[d];return l.reverse(),l},find_path:function(s,n,l){var d=z.single_source_shortest_paths(s,n,l);return z.extract_shortest_path_from_predecessor_list(d,l)},PriorityQueue:{make:function(s){var d,n=z.PriorityQueue,l={};for(d in s=s||{},n)n.hasOwnProperty(d)&&(l[d]=n[d]);return l.queue=[],l.sorter=s.sorter||n.default_sorter,l},default_sorter:function(s,n){return s.cost-n.cost},push:function(s,n){this.queue.push({value:s,cost:n}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Bt.exports=z},30741:Bt=>{"use strict";Bt.exports=function(s){for(var n=[],l=s.length,d=0;d<l;d++){var v=s.charCodeAt(d);if(v>=55296&&v<=56319&&l>d+1){var S=s.charCodeAt(d+1);S>=56320&&S<=57343&&(v=1024*(v-55296)+S-56320+65536,d+=1)}v<128?n.push(v):v<2048?(n.push(v>>6|192),n.push(63&v|128)):v<55296||v>=57344&&v<65536?(n.push(v>>12|224),n.push(v>>6&63|128),n.push(63&v|128)):v>=65536&&v<=1114111?(n.push(v>>18|240),n.push(v>>12&63|128),n.push(v>>6&63|128),n.push(63&v|128)):n.push(239,191,189)}return new Uint8Array(n).buffer}},20468:(Bt,z,s)=>{var n;!function(){"use strict";var l="input is invalid type",d="object"==typeof window,v=d?window:{};v.JS_SHA256_NO_WINDOW&&(d=!1);var S=!d&&"object"==typeof self,y=!v.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;y?v=global:S&&(v=self);var f=!v.JS_SHA256_NO_COMMON_JS&&Bt.exports,O=s.amdO,P=!v.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",_="0123456789abcdef".split(""),i=[-2147483648,8388608,32768,128],r=[24,16,8,0],a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],c=["hex","array","digest","arrayBuffer"],m=[];(v.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(E){return"[object Array]"===Object.prototype.toString.call(E)}),P&&(v.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(E){return"object"==typeof E&&E.buffer&&E.buffer.constructor===ArrayBuffer});var M=function(E,g){return function(R){return new T(g,!0).update(R)[E]()}},D=function(E){var g=M("hex",E);y&&(g=I(g,E)),g.create=function(){return new T(E)},g.update=function(X){return g.create().update(X)};for(var R=0;R<c.length;++R){var B=c[R];g[B]=M(B,E)}return g},I=function(E,g){var H,R=s(24394),B=s(91903).Buffer,X=g?"sha224":"sha256";return H=B.from&&!v.JS_SHA256_NO_BUFFER_FROM?B.from:function(re){return new B(re)},function(re){if("string"==typeof re)return R.createHash(X).update(re,"utf8").digest("hex");if(null==re)throw new Error(l);return re.constructor===ArrayBuffer&&(re=new Uint8Array(re)),Array.isArray(re)||ArrayBuffer.isView(re)||re.constructor===B?R.createHash(X).update(H(re)).digest("hex"):E(re)}},U=function(E,g){return function(R,B){return new N(R,g,!0).update(B)[E]()}},V=function(E){var g=U("hex",E);g.create=function(X){return new N(X,E)},g.update=function(X,H){return g.create(X).update(H)};for(var R=0;R<c.length;++R){var B=c[R];g[B]=U(B,E)}return g};function T(E,g){g?(m[0]=m[16]=m[1]=m[2]=m[3]=m[4]=m[5]=m[6]=m[7]=m[8]=m[9]=m[10]=m[11]=m[12]=m[13]=m[14]=m[15]=0,this.blocks=m):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],E?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=E}function N(E,g,R){var B,X=typeof E;if("string"===X){var ie,H=[],J=E.length,re=0;for(B=0;B<J;++B)(ie=E.charCodeAt(B))<128?H[re++]=ie:ie<2048?(H[re++]=192|ie>>>6,H[re++]=128|63&ie):ie<55296||ie>=57344?(H[re++]=224|ie>>>12,H[re++]=128|ie>>>6&63,H[re++]=128|63&ie):(ie=65536+((1023&ie)<<10|1023&E.charCodeAt(++B)),H[re++]=240|ie>>>18,H[re++]=128|ie>>>12&63,H[re++]=128|ie>>>6&63,H[re++]=128|63&ie);E=H}else{if("object"!==X)throw new Error(l);if(null===E)throw new Error(l);if(P&&E.constructor===ArrayBuffer)E=new Uint8Array(E);else if(!(Array.isArray(E)||P&&ArrayBuffer.isView(E)))throw new Error(l)}E.length>64&&(E=new T(g,!0).update(E).array());var ve=[],ue=[];for(B=0;B<64;++B){var se=E[B]||0;ve[B]=92^se,ue[B]=54^se}T.call(this,g,R),this.update(ue),this.oKeyPad=ve,this.inner=!0,this.sharedMemory=R}T.prototype.update=function(E){if(!this.finalized){var g,R=typeof E;if("string"!==R){if("object"!==R)throw new Error(l);if(null===E)throw new Error(l);if(P&&E.constructor===ArrayBuffer)E=new Uint8Array(E);else if(!(Array.isArray(E)||P&&ArrayBuffer.isView(E)))throw new Error(l);g=!0}for(var B,H,X=0,J=E.length,re=this.blocks;X<J;){if(this.hashed&&(this.hashed=!1,re[0]=this.block,this.block=re[16]=re[1]=re[2]=re[3]=re[4]=re[5]=re[6]=re[7]=re[8]=re[9]=re[10]=re[11]=re[12]=re[13]=re[14]=re[15]=0),g)for(H=this.start;X<J&&H<64;++X)re[H>>>2]|=E[X]<<r[3&H++];else for(H=this.start;X<J&&H<64;++X)(B=E.charCodeAt(X))<128?re[H>>>2]|=B<<r[3&H++]:B<2048?(re[H>>>2]|=(192|B>>>6)<<r[3&H++],re[H>>>2]|=(128|63&B)<<r[3&H++]):B<55296||B>=57344?(re[H>>>2]|=(224|B>>>12)<<r[3&H++],re[H>>>2]|=(128|B>>>6&63)<<r[3&H++],re[H>>>2]|=(128|63&B)<<r[3&H++]):(B=65536+((1023&B)<<10|1023&E.charCodeAt(++X)),re[H>>>2]|=(240|B>>>18)<<r[3&H++],re[H>>>2]|=(128|B>>>12&63)<<r[3&H++],re[H>>>2]|=(128|B>>>6&63)<<r[3&H++],re[H>>>2]|=(128|63&B)<<r[3&H++]);this.lastByteIndex=H,this.bytes+=H-this.start,H>=64?(this.block=re[16],this.start=H-64,this.hash(),this.hashed=!0):this.start=H}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this}},T.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var E=this.blocks,g=this.lastByteIndex;E[16]=this.block,E[g>>>2]|=i[3&g],this.block=E[16],g>=56&&(this.hashed||this.hash(),E[0]=this.block,E[16]=E[1]=E[2]=E[3]=E[4]=E[5]=E[6]=E[7]=E[8]=E[9]=E[10]=E[11]=E[12]=E[13]=E[14]=E[15]=0),E[14]=this.hBytes<<3|this.bytes>>>29,E[15]=this.bytes<<3,this.hash()}},T.prototype.hash=function(){var ve,Se,Xe,He,Me,Q,E=this.h0,g=this.h1,R=this.h2,B=this.h3,X=this.h4,H=this.h5,J=this.h6,re=this.h7,ie=this.blocks;for(ve=16;ve<64;++ve)ie[ve]=ie[ve-16]+(((Se=ie[ve-15])>>>7|Se<<25)^(Se>>>18|Se<<14)^Se>>>3)+ie[ve-7]+(((Se=ie[ve-2])>>>17|Se<<15)^(Se>>>19|Se<<13)^Se>>>10)|0;for(Q=g&R,ve=0;ve<64;ve+=4)this.first?(this.is224?(Xe=300032,re=(Se=ie[0]-1413257819)-150054599|0,B=Se+24177077|0):(Xe=704751109,re=(Se=ie[0]-210244248)-1521486534|0,B=Se+143694565|0),this.first=!1):(re=B+(Se=re+((X>>>6|X<<26)^(X>>>11|X<<21)^(X>>>25|X<<7))+(X&H^~X&J)+a[ve]+ie[ve])|0,B=Se+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((Xe=E&g)^E&R^Q))|0),J=R+(Se=J+((re>>>6|re<<26)^(re>>>11|re<<21)^(re>>>25|re<<7))+(re&X^~re&H)+a[ve+1]+ie[ve+1])|0,R=Se+(((B>>>2|B<<30)^(B>>>13|B<<19)^(B>>>22|B<<10))+((He=B&E)^B&g^Xe))|0,H=g+(Se=H+((J>>>6|J<<26)^(J>>>11|J<<21)^(J>>>25|J<<7))+(J&re^~J&X)+a[ve+2]+ie[ve+2])|0,g=Se+(((R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10))+((Me=R&B)^R&E^He))|0,X=E+(Se=X+((H>>>6|H<<26)^(H>>>11|H<<21)^(H>>>25|H<<7))+(H&J^~H&re)+a[ve+3]+ie[ve+3])|0,E=Se+(((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((Q=g&R)^g&B^Me))|0,this.chromeBugWorkAround=!0;this.h0=this.h0+E|0,this.h1=this.h1+g|0,this.h2=this.h2+R|0,this.h3=this.h3+B|0,this.h4=this.h4+X|0,this.h5=this.h5+H|0,this.h6=this.h6+J|0,this.h7=this.h7+re|0},T.prototype.toString=T.prototype.hex=function(){this.finalize();var E=this.h0,g=this.h1,R=this.h2,B=this.h3,X=this.h4,H=this.h5,J=this.h6,re=this.h7,ie=_[E>>>28&15]+_[E>>>24&15]+_[E>>>20&15]+_[E>>>16&15]+_[E>>>12&15]+_[E>>>8&15]+_[E>>>4&15]+_[15&E]+_[g>>>28&15]+_[g>>>24&15]+_[g>>>20&15]+_[g>>>16&15]+_[g>>>12&15]+_[g>>>8&15]+_[g>>>4&15]+_[15&g]+_[R>>>28&15]+_[R>>>24&15]+_[R>>>20&15]+_[R>>>16&15]+_[R>>>12&15]+_[R>>>8&15]+_[R>>>4&15]+_[15&R]+_[B>>>28&15]+_[B>>>24&15]+_[B>>>20&15]+_[B>>>16&15]+_[B>>>12&15]+_[B>>>8&15]+_[B>>>4&15]+_[15&B]+_[X>>>28&15]+_[X>>>24&15]+_[X>>>20&15]+_[X>>>16&15]+_[X>>>12&15]+_[X>>>8&15]+_[X>>>4&15]+_[15&X]+_[H>>>28&15]+_[H>>>24&15]+_[H>>>20&15]+_[H>>>16&15]+_[H>>>12&15]+_[H>>>8&15]+_[H>>>4&15]+_[15&H]+_[J>>>28&15]+_[J>>>24&15]+_[J>>>20&15]+_[J>>>16&15]+_[J>>>12&15]+_[J>>>8&15]+_[J>>>4&15]+_[15&J];return this.is224||(ie+=_[re>>>28&15]+_[re>>>24&15]+_[re>>>20&15]+_[re>>>16&15]+_[re>>>12&15]+_[re>>>8&15]+_[re>>>4&15]+_[15&re]),ie},T.prototype.array=T.prototype.digest=function(){this.finalize();var E=this.h0,g=this.h1,R=this.h2,B=this.h3,X=this.h4,H=this.h5,J=this.h6,re=this.h7,ie=[E>>>24&255,E>>>16&255,E>>>8&255,255&E,g>>>24&255,g>>>16&255,g>>>8&255,255&g,R>>>24&255,R>>>16&255,R>>>8&255,255&R,B>>>24&255,B>>>16&255,B>>>8&255,255&B,X>>>24&255,X>>>16&255,X>>>8&255,255&X,H>>>24&255,H>>>16&255,H>>>8&255,255&H,J>>>24&255,J>>>16&255,J>>>8&255,255&J];return this.is224||ie.push(re>>>24&255,re>>>16&255,re>>>8&255,255&re),ie},T.prototype.arrayBuffer=function(){this.finalize();var E=new ArrayBuffer(this.is224?28:32),g=new DataView(E);return g.setUint32(0,this.h0),g.setUint32(4,this.h1),g.setUint32(8,this.h2),g.setUint32(12,this.h3),g.setUint32(16,this.h4),g.setUint32(20,this.h5),g.setUint32(24,this.h6),this.is224||g.setUint32(28,this.h7),E},(N.prototype=new T).finalize=function(){if(T.prototype.finalize.call(this),this.inner){this.inner=!1;var E=this.array();T.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(E),T.prototype.finalize.call(this)}};var L=D();L.sha256=L,L.sha224=D(!0),L.sha256.hmac=V(),L.sha224.hmac=V(!0),f?Bt.exports=L:(v.sha256=L.sha256,v.sha224=L.sha224,O&&void 0!==(n=function(){return L}.call(L,s,L,Bt))&&(Bt.exports=n))}()},26875:function(Bt,z,s){var n;Bt=s.nmd(Bt),function(){var l,y="Expected a function",O="__lodash_hash_undefined__",_="__lodash_placeholder__",T=32,L=128,ve=1/0,ue=9007199254740991,Z=NaN,Se=4294967295,Xe=[["ary",L],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",T],["partialRight",64],["rearg",256]],He="[object Arguments]",Me="[object Array]",A="[object Boolean]",me="[object Date]",G="[object Error]",W="[object Function]",$="[object GeneratorFunction]",le="[object Map]",Pe="[object Number]",At="[object Object]",Le="[object Promise]",$e="[object RegExp]",Ze="[object Set]",Qe="[object String]",Ve="[object Symbol]",Ot="[object WeakMap]",It="[object ArrayBuffer]",We="[object DataView]",xe="[object Float32Array]",lt="[object Float64Array]",ft="[object Int8Array]",ht="[object Int16Array]",Xt="[object Int32Array]",Ht="[object Uint8Array]",Je="[object Uint8ClampedArray]",tt="[object Uint16Array]",rt="[object Uint32Array]",et=/\b__p \+= '';/g,St=/\b(__p \+=) '' \+/g,Gt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,yt=/&(?:amp|lt|gt|quot|#39);/g,Wt=/[&<>"']/g,ke=RegExp(yt.source),be=RegExp(Wt.source),Ae=/<%-([\s\S]+?)%>/g,qe=/<%([\s\S]+?)%>/g,Lt=/<%=([\s\S]+?)%>/g,Zt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fn=/^\w*$/,hn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,On=/[\\^$.*+?()[\]{}|]/g,fi=RegExp(On.source),Ji=/^\s+/,Fi=/\s/,bt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,bn=/\{\n\/\* \[wrapped with (.+)\] \*/,Pt=/,? & /,jt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,gn=/[()=,{}\[\]\/\s]/,ui=/\\(\\)?/g,Ii=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pr=/\w*$/,zr=/^[-+]0x[0-9a-f]+$/i,Cn=/^0b[01]+$/i,pn=/^\[object .+?Constructor\]$/,ti=/^0o[0-7]+$/i,pi=/^(?:0|[1-9]\d*)$/,cn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,An=/($^)/,Jn=/['\n\r\u2028\u2029\\]/g,hi="\\ud800-\\udfff",Gn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ci="\\u2700-\\u27bf",ln="a-z\\xdf-\\xf6\\xf8-\\xff",_o="A-Z\\xc0-\\xd6\\xd8-\\xde",bo="\\ufe0e\\ufe0f",Kn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pi="["+hi+"]",ji="["+Kn+"]",Qi="["+Gn+"]",ar="\\d+",jr="["+Ci+"]",ho="["+ln+"]",Fo="[^"+hi+Kn+ar+Ci+ln+_o+"]",no="\\ud83c[\\udffb-\\udfff]",Zr="[^"+hi+"]",Yr="(?:\\ud83c[\\udde6-\\uddff]){2}",go="[\\ud800-\\udbff][\\udc00-\\udfff]",zo="["+_o+"]",to="(?:"+ho+"|"+Fo+")",ot="(?:"+zo+"|"+Fo+")",Vt="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Sn="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Bn="(?:"+Qi+"|"+no+")?",Ti="["+bo+"]?",br=Ti+Bn+"(?:\\u200d(?:"+[Zr,Yr,go].join("|")+")"+Ti+Bn+")*",Vn="(?:"+[jr,Yr,go].join("|")+")"+br,rr="(?:"+[Zr+Qi+"?",Qi,Yr,go,Pi].join("|")+")",Ut=RegExp("['\u2019]","g"),qn=RegExp(Qi,"g"),Wn=RegExp(no+"(?="+no+")|"+rr+br,"g"),ci=RegExp([zo+"?"+ho+"+"+Vt+"(?="+[ji,zo,"$"].join("|")+")",ot+"+"+Sn+"(?="+[ji,zo+to,"$"].join("|")+")",zo+"?"+to+"+"+Vt,zo+"+"+Sn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ar,Vn].join("|"),"g"),Tr=RegExp("[\\u200d"+hi+Gn+bo+"]"),Jr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,oo=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Qo=-1,fo={};fo[xe]=fo[lt]=fo[ft]=fo[ht]=fo[Xt]=fo[Ht]=fo[Je]=fo[tt]=fo[rt]=!0,fo[He]=fo[Me]=fo[It]=fo[A]=fo[We]=fo[me]=fo[G]=fo[W]=fo[le]=fo[Pe]=fo[At]=fo[$e]=fo[Ze]=fo[Qe]=fo[Ot]=!1;var Xr={};Xr[He]=Xr[Me]=Xr[It]=Xr[We]=Xr[A]=Xr[me]=Xr[xe]=Xr[lt]=Xr[ft]=Xr[ht]=Xr[Xt]=Xr[le]=Xr[Pe]=Xr[At]=Xr[$e]=Xr[Ze]=Xr[Qe]=Xr[Ve]=Xr[Ht]=Xr[Je]=Xr[tt]=Xr[rt]=!0,Xr[G]=Xr[W]=Xr[Ot]=!1;var pa={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ka=parseFloat,Xs=parseInt,ys="object"==typeof global&&global&&global.Object===Object&&global,ma="object"==typeof self&&self&&self.Object===Object&&self,fs=ys||ma||Function("return this")(),Oa=z&&!z.nodeType&&z,Ms=Oa&&Bt&&!Bt.nodeType&&Bt,Ua=Ms&&Ms.exports===Oa,Zs=Ua&&ys.process,qo=function(){try{return Ms&&Ms.require&&Ms.require("util").types||Zs&&Zs.binding&&Zs.binding("util")}catch{}}(),js=qo&&qo.isArrayBuffer,Ia=qo&&qo.isDate,Ds=qo&&qo.isMap,Js=qo&&qo.isRegExp,fa=qo&&qo.isSet,Ga=qo&&qo.isTypedArray;function cs(zi,mr,lr){switch(lr.length){case 0:return zi.call(mr);case 1:return zi.call(mr,lr[0]);case 2:return zi.call(mr,lr[0],lr[1]);case 3:return zi.call(mr,lr[0],lr[1],lr[2])}return zi.apply(mr,lr)}function $s(zi,mr,lr,je){for(var Ft=-1,un=null==zi?0:zi.length;++Ft<un;){var wn=zi[Ft];mr(je,wn,lr(wn),zi)}return je}function Vo(zi,mr){for(var lr=-1,je=null==zi?0:zi.length;++lr<je&&!1!==mr(zi[lr],lr,zi););return zi}function Hn(zi,mr){for(var lr=null==zi?0:zi.length;lr--&&!1!==mr(zi[lr],lr,zi););return zi}function Ba(zi,mr){for(var lr=-1,je=null==zi?0:zi.length;++lr<je;)if(!mr(zi[lr],lr,zi))return!1;return!0}function ds(zi,mr){for(var lr=-1,je=null==zi?0:zi.length,Ft=0,un=[];++lr<je;){var wn=zi[lr];mr(wn,lr,zi)&&(un[Ft++]=wn)}return un}function la(zi,mr){return!(null==zi||!zi.length)&&ts(zi,mr,0)>-1}function ra(zi,mr,lr){for(var je=-1,Ft=null==zi?0:zi.length;++je<Ft;)if(lr(mr,zi[je]))return!0;return!1}function $o(zi,mr){for(var lr=-1,je=null==zi?0:zi.length,Ft=Array(je);++lr<je;)Ft[lr]=mr(zi[lr],lr,zi);return Ft}function rs(zi,mr){for(var lr=-1,je=mr.length,Ft=zi.length;++lr<je;)zi[Ft+lr]=mr[lr];return zi}function oa(zi,mr,lr,je){var Ft=-1,un=null==zi?0:zi.length;for(je&&un&&(lr=zi[++Ft]);++Ft<un;)lr=mr(lr,zi[Ft],Ft,zi);return lr}function Yo(zi,mr,lr,je){var Ft=null==zi?0:zi.length;for(je&&Ft&&(lr=zi[--Ft]);Ft--;)lr=mr(lr,zi[Ft],Ft,zi);return lr}function Bs(zi,mr){for(var lr=-1,je=null==zi?0:zi.length;++lr<je;)if(mr(zi[lr],lr,zi))return!0;return!1}var Va=Tn("length");function ks(zi,mr,lr){var je;return lr(zi,function(Ft,un,wn){if(mr(Ft,un,wn))return je=un,!1}),je}function ea(zi,mr,lr,je){for(var Ft=zi.length,un=lr+(je?1:-1);je?un--:++un<Ft;)if(mr(zi[un],un,zi))return un;return-1}function ts(zi,mr,lr){return mr==mr?function Ie(zi,mr,lr){for(var je=lr-1,Ft=zi.length;++je<Ft;)if(zi[je]===mr)return je;return-1}(zi,mr,lr):ea(zi,va,lr)}function $a(zi,mr,lr,je){for(var Ft=lr-1,un=zi.length;++Ft<un;)if(je(zi[Ft],mr))return Ft;return-1}function va(zi){return zi!=zi}function Mn(zi,mr){var lr=null==zi?0:zi.length;return lr?So(zi,mr)/lr:Z}function Tn(zi){return function(mr){return null==mr?l:mr[zi]}}function tn(zi){return function(mr){return null==zi?l:zi[mr]}}function In(zi,mr,lr,je,Ft){return Ft(zi,function(un,wn,zn){lr=je?(je=!1,un):mr(lr,un,wn,zn)}),lr}function So(zi,mr){for(var lr,je=-1,Ft=zi.length;++je<Ft;){var un=mr(zi[je]);un!==l&&(lr=lr===l?un:lr+un)}return lr}function Rn(zi,mr){for(var lr=-1,je=Array(zi);++lr<zi;)je[lr]=mr(lr);return je}function ae(zi){return zi&&zi.slice(0,Ps(zi)+1).replace(Ji,"")}function st(zi){return function(mr){return zi(mr)}}function Ct(zi,mr){return $o(mr,function(lr){return zi[lr]})}function $n(zi,mr){return zi.has(mr)}function Gi(zi,mr){for(var lr=-1,je=zi.length;++lr<je&&ts(mr,zi[lr],0)>-1;);return lr}function Sr(zi,mr){for(var lr=zi.length;lr--&&ts(mr,zi[lr],0)>-1;);return lr}var ao=tn({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"}),Ir=tn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Cr(zi){return"\\"+pa[zi]}function Ki(zi){return Tr.test(zi)}function Zo(zi){var mr=-1,lr=Array(zi.size);return zi.forEach(function(je,Ft){lr[++mr]=[Ft,je]}),lr}function Ha(zi,mr){return function(lr){return zi(mr(lr))}}function vo(zi,mr){for(var lr=-1,je=zi.length,Ft=0,un=[];++lr<je;){var wn=zi[lr];(wn===mr||wn===_)&&(zi[lr]=_,un[Ft++]=lr)}return un}function ta(zi){var mr=-1,lr=Array(zi.size);return zi.forEach(function(je){lr[++mr]=je}),lr}function Ls(zi){return Ki(zi)?function Ja(zi){for(var mr=Wn.lastIndex=0;Wn.test(zi);)++mr;return mr}(zi):Va(zi)}function Ns(zi){return Ki(zi)?function Wa(zi){return zi.match(Wn)||[]}(zi):function La(zi){return zi.split("")}(zi)}function Ps(zi){for(var mr=zi.length;mr--&&Fi.test(zi.charAt(mr)););return mr}var ja=tn({"&":"&","<":"<",">":">",""":'"',"'":"'"}),na=function zi(mr){var Y,lr=(mr=null==mr?fs:na.defaults(fs.Object(),mr,na.pick(fs,oo))).Array,je=mr.Date,Ft=mr.Error,un=mr.Function,wn=mr.Math,zn=mr.Object,vi=mr.RegExp,Si=mr.String,Ri=mr.TypeError,nr=lr.prototype,Er=zn.prototype,po=mr["__core-js_shared__"],To=un.prototype.toString,rn=Er.hasOwnProperty,Di=0,Te=(Y=/[^.]+$/.exec(po&&po.keys&&po.keys.IE_PROTO||""))?"Symbol(src)_1."+Y:"",Jt=Er.toString,Rt=To.call(zn),ei=fs._,tr=vi("^"+To.call(rn).replace(On,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ur=Ua?mr.Buffer:l,lo=mr.Symbol,wo=mr.Uint8Array,Lr=Ur?Ur.allocUnsafe:l,ns=Ha(zn.getPrototypeOf,zn),Io=zn.create,da=Er.propertyIsEnumerable,_a=nr.splice,Mt=lo?lo.isConcatSpreadable:l,Dn=lo?lo.iterator:l,qt=lo?lo.toStringTag:l,Pn=function(){try{var Y=ql(zn,"defineProperty");return Y({},"",{}),Y}catch{}}(),yi=mr.clearTimeout!==fs.clearTimeout&&mr.clearTimeout,ur=je&&je.now!==fs.Date.now&&je.now,Pr=mr.setTimeout!==fs.setTimeout&&mr.setTimeout,uo=wn.ceil,vs=wn.floor,ss=zn.getOwnPropertySymbols,Ts=Ur?Ur.isBuffer:l,Ro=mr.isFinite,Gs=nr.join,es=Ha(zn.keys,zn),hs=wn.max,Jo=wn.min,Gr=je.now,No=mr.parseInt,Vs=wn.random,Ca=nr.reverse,sa=ql(mr,"DataView"),as=ql(mr,"Map"),il=ql(mr,"Promise"),jo=ql(mr,"Set"),Oo=ql(mr,"WeakMap"),za=ql(zn,"create"),Uo=Oo&&new Oo,Xa={},vl=fd(sa),Pl=fd(as),Hs=fd(il),wl=fd(jo),rl=fd(Oo),al=lo?lo.prototype:l,gl=al?al.valueOf:l,_l=al?al.toString:l;function ii(Y){if($l(Y)&&!wa(Y)&&!(Y instanceof ki)){if(Y instanceof Oi)return Y;if(rn.call(Y,"__wrapped__"))return Zc(Y)}return new Oi(Y)}var Sl=function(){function Y(){}return function(_e){if(!Hl(_e))return{};if(Io)return Io(_e);Y.prototype=_e;var ut=new Y;return Y.prototype=l,ut}}();function oi(){}function Oi(Y,_e){this.__wrapped__=Y,this.__actions__=[],this.__chain__=!!_e,this.__index__=0,this.__values__=l}function ki(Y){this.__wrapped__=Y,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Se,this.__views__=[]}function Ho(Y){var _e=-1,ut=null==Y?0:Y.length;for(this.clear();++_e<ut;){var dn=Y[_e];this.set(dn[0],dn[1])}}function Ka(Y){var _e=-1,ut=null==Y?0:Y.length;for(this.clear();++_e<ut;){var dn=Y[_e];this.set(dn[0],dn[1])}}function Al(Y){var _e=-1,ut=null==Y?0:Y.length;for(this.clear();++_e<ut;){var dn=Y[_e];this.set(dn[0],dn[1])}}function _n(Y){var _e=-1,ut=null==Y?0:Y.length;for(this.__data__=new Al;++_e<ut;)this.add(Y[_e])}function j(Y){var _e=this.__data__=new Ka(Y);this.size=_e.size}function Nt(Y,_e){var ut=wa(Y),dn=!ut&&tu(Y),jn=!ut&&!dn&&Nd(Y),di=!ut&&!dn&&!jn&&iu(Y),Ni=ut||dn||jn||di,Yi=Ni?Rn(Y.length,Si):[],cr=Yi.length;for(var Qr in Y)(_e||rn.call(Y,Qr))&&(!Ni||!("length"==Qr||jn&&("offset"==Qr||"parent"==Qr)||di&&("buffer"==Qr||"byteLength"==Qr||"byteOffset"==Qr)||rc(Qr,cr)))&&Yi.push(Qr);return Yi}function on(Y){var _e=Y.length;return _e?Y[ua(0,_e-1)]:l}function ct(Y,_e){return Sc(zl(Y),Xi(_e,0,Y.length))}function De(Y){return Sc(zl(Y))}function pe(Y,_e,ut){(ut!==l&&!Ql(Y[_e],ut)||ut===l&&!(_e in Y))&&ri(Y,_e,ut)}function Ge(Y,_e,ut){var dn=Y[_e];(!rn.call(Y,_e)||!Ql(dn,ut)||ut===l&&!(_e in Y))&&ri(Y,_e,ut)}function xt(Y,_e){for(var ut=Y.length;ut--;)if(Ql(Y[ut][0],_e))return ut;return-1}function sn(Y,_e,ut,dn){return co(Y,function(jn,di,Ni){_e(dn,jn,ut(jn),Ni)}),dn}function En(Y,_e){return Y&&Tl(_e,oc(_e),Y)}function ri(Y,_e,ut){"__proto__"==_e&&Pn?Pn(Y,_e,{configurable:!0,enumerable:!0,value:ut,writable:!0}):Y[_e]=ut}function Mi(Y,_e){for(var ut=-1,dn=_e.length,jn=lr(dn),di=null==Y;++ut<dn;)jn[ut]=di?l:em(Y,_e[ut]);return jn}function Xi(Y,_e,ut){return Y==Y&&(ut!==l&&(Y=Y<=ut?Y:ut),_e!==l&&(Y=Y>=_e?Y:_e)),Y}function Ui(Y,_e,ut,dn,jn,di){var Ni,Yi=1&_e,cr=2&_e,Qr=4&_e;if(ut&&(Ni=jn?ut(Y,dn,jn,di):ut(Y)),Ni!==l)return Ni;if(!Hl(Y))return Y;var Kr=wa(Y);if(Kr){if(Ni=function Kd(Y){var _e=Y.length,ut=new Y.constructor(_e);return _e&&"string"==typeof Y[0]&&rn.call(Y,"index")&&(ut.index=Y.index,ut.input=Y.input),ut}(Y),!Yi)return zl(Y,Ni)}else{var ro=Gl(Y),Wo=ro==W||ro==$;if(Nd(Y))return ba(Y,Yi);if(ro==At||ro==He||Wo&&!jn){if(Ni=cr||Wo?{}:Yd(Y),!Yi)return cr?function Gd(Y,_e){return Tl(Y,fu(Y),_e)}(Y,function Un(Y,_e){return Y&&Tl(_e,Mc(_e),Y)}(Ni,Y)):function gu(Y,_e){return Tl(Y,Td(Y),_e)}(Y,En(Ni,Y))}else{if(!Xr[ro])return jn?Y:{};Ni=function sl(Y,_e,ut){var dn=Y.constructor;switch(_e){case It:return As(Y);case A:case me:return new dn(+Y);case We:return function ol(Y,_e){var ut=_e?As(Y.buffer):Y.buffer;return new Y.constructor(ut,Y.byteOffset,Y.byteLength)}(Y,ut);case xe:case lt:case ft:case ht:case Xt:case Ht:case Je:case tt:case rt:return ya(Y,ut);case le:return new dn;case Pe:case Qe:return new dn(Y);case $e:return function cl(Y){var _e=new Y.constructor(Y.source,pr.exec(Y));return _e.lastIndex=Y.lastIndex,_e}(Y);case Ze:return new dn;case Ve:return function Sa(Y){return gl?zn(gl.call(Y)):{}}(Y)}}(Y,ro,Yi)}}di||(di=new j);var ps=di.get(Y);if(ps)return ps;di.set(Y,Ni),Eg(Y)?Y.forEach(function(bs){Ni.add(Ui(bs,_e,ut,bs,Y,di))}):Ih(Y)&&Y.forEach(function(bs,Fa){Ni.set(Fa,Ui(bs,_e,ut,Fa,Y,di))});var Da=Kr?l:(Qr?cr?mu:xd:cr?Mc:oc)(Y);return Vo(Da||Y,function(bs,Fa){Da&&(bs=Y[Fa=bs]),Ge(Ni,Fa,Ui(bs,_e,ut,Fa,Y,di))}),Ni}function xr(Y,_e,ut){var dn=ut.length;if(null==Y)return!dn;for(Y=zn(Y);dn--;){var jn=ut[dn],Ni=Y[jn];if(Ni===l&&!(jn in Y)||!(0,_e[jn])(Ni))return!1}return!0}function yr(Y,_e,ut){if("function"!=typeof Y)throw new Ri(y);return Ad(function(){Y.apply(l,ut)},_e)}function Rr(Y,_e,ut,dn){var jn=-1,di=la,Ni=!0,Yi=Y.length,cr=[],Qr=_e.length;if(!Yi)return cr;ut&&(_e=$o(_e,st(ut))),dn?(di=ra,Ni=!1):_e.length>=200&&(di=$n,Ni=!1,_e=new _n(_e));e:for(;++jn<Yi;){var Kr=Y[jn],ro=null==ut?Kr:ut(Kr);if(Kr=dn||0!==Kr?Kr:0,Ni&&ro==ro){for(var Wo=Qr;Wo--;)if(_e[Wo]===ro)continue e;cr.push(Kr)}else di(_e,ro,dn)||cr.push(Kr)}return cr}ii.templateSettings={escape:Ae,evaluate:qe,interpolate:Lt,variable:"",imports:{_:ii}},(ii.prototype=oi.prototype).constructor=ii,(Oi.prototype=Sl(oi.prototype)).constructor=Oi,(ki.prototype=Sl(oi.prototype)).constructor=ki,Ho.prototype.clear=function Ko(){this.__data__=za?za(null):{},this.size=0},Ho.prototype.delete=function xa(Y){var _e=this.has(Y)&&delete this.__data__[Y];return this.size-=_e?1:0,_e},Ho.prototype.get=function Ws(Y){var _e=this.__data__;if(za){var ut=_e[Y];return ut===O?l:ut}return rn.call(_e,Y)?_e[Y]:l},Ho.prototype.has=function ws(Y){var _e=this.__data__;return za?_e[Y]!==l:rn.call(_e,Y)},Ho.prototype.set=function Nl(Y,_e){var ut=this.__data__;return this.size+=this.has(Y)?0:1,ut[Y]=za&&_e===l?O:_e,this},Ka.prototype.clear=function Il(){this.__data__=[],this.size=0},Ka.prototype.delete=function Cl(Y){var _e=this.__data__,ut=xt(_e,Y);return!(ut<0||(ut==_e.length-1?_e.pop():_a.call(_e,ut,1),--this.size,0))},Ka.prototype.get=function ac(Y){var _e=this.__data__,ut=xt(_e,Y);return ut<0?l:_e[ut][1]},Ka.prototype.has=function lc(Y){return xt(this.__data__,Y)>-1},Ka.prototype.set=function Vc(Y,_e){var ut=this.__data__,dn=xt(ut,Y);return dn<0?(++this.size,ut.push([Y,_e])):ut[dn][1]=_e,this},Al.prototype.clear=function cc(){this.size=0,this.__data__={hash:new Ho,map:new(as||Ka),string:new Ho}},Al.prototype.delete=function _t(Y){var _e=Bl(this,Y).delete(Y);return this.size-=_e?1:0,_e},Al.prototype.get=function Kt(Y){return Bl(this,Y).get(Y)},Al.prototype.has=function mt(Y){return Bl(this,Y).has(Y)},Al.prototype.set=function Yt(Y,_e){var ut=Bl(this,Y),dn=ut.size;return ut.set(Y,_e),this.size+=ut.size==dn?0:1,this},_n.prototype.add=_n.prototype.push=function de(Y){return this.__data__.set(Y,O),this},_n.prototype.has=function q(Y){return this.__data__.has(Y)},j.prototype.clear=function te(){this.__data__=new Ka,this.size=0},j.prototype.delete=function fe(Y){var _e=this.__data__,ut=_e.delete(Y);return this.size=_e.size,ut},j.prototype.get=function Ne(Y){return this.__data__.get(Y)},j.prototype.has=function Ye(Y){return this.__data__.has(Y)},j.prototype.set=function gt(Y,_e){var ut=this.__data__;if(ut instanceof Ka){var dn=ut.__data__;if(!as||dn.length<199)return dn.push([Y,_e]),this.size=++ut.size,this;ut=this.__data__=new Al(dn)}return ut.set(Y,_e),this.size=ut.size,this};var co=ed(Is),Bo=ed(yl,!0);function os(Y,_e){var ut=!0;return co(Y,function(dn,jn,di){return ut=!!_e(dn,jn,di)}),ut}function Es(Y,_e,ut){for(var dn=-1,jn=Y.length;++dn<jn;){var di=Y[dn],Ni=_e(di);if(null!=Ni&&(Yi===l?Ni==Ni&&!Nc(Ni):ut(Ni,Yi)))var Yi=Ni,cr=di}return cr}function Qs(Y,_e){var ut=[];return co(Y,function(dn,jn,di){_e(dn,jn,di)&&ut.push(dn)}),ut}function io(Y,_e,ut,dn,jn){var di=-1,Ni=Y.length;for(ut||(ut=Wc),jn||(jn=[]);++di<Ni;){var Yi=Y[di];_e>0&&ut(Yi)?_e>1?io(Yi,_e-1,ut,dn,jn):rs(jn,Yi):dn||(jn[jn.length]=Yi)}return jn}var Us=wc(),Na=wc(!0);function Is(Y,_e){return Y&&Us(Y,_e,oc)}function yl(Y,_e){return Y&&Na(Y,_e,oc)}function x(Y,_e){return ds(_e,function(ut){return sd(Y[ut])})}function h(Y,_e){for(var ut=0,dn=(_e=hr(_e,Y)).length;null!=Y&&ut<dn;)Y=Y[zc(_e[ut++])];return ut&&ut==dn?Y:l}function b(Y,_e,ut){var dn=_e(Y);return wa(Y)?dn:rs(dn,ut(Y))}function k(Y){return null==Y?Y===l?"[object Undefined]":"[object Null]":qt&&qt in zn(Y)?function Fl(Y){var _e=rn.call(Y,qt),ut=Y[qt];try{Y[qt]=l;var dn=!0}catch{}var jn=Jt.call(Y);return dn&&(_e?Y[qt]=ut:delete Y[qt]),jn}(Y):function gh(Y){return Jt.call(Y)}(Y)}function ee(Y,_e){return Y>_e}function he(Y,_e){return null!=Y&&rn.call(Y,_e)}function we(Y,_e){return null!=Y&&_e in zn(Y)}function pt(Y,_e,ut){for(var dn=ut?ra:la,jn=Y[0].length,di=Y.length,Ni=di,Yi=lr(di),cr=1/0,Qr=[];Ni--;){var Kr=Y[Ni];Ni&&_e&&(Kr=$o(Kr,st(_e))),cr=Jo(Kr.length,cr),Yi[Ni]=!ut&&(_e||jn>=120&&Kr.length>=120)?new _n(Ni&&Kr):l}Kr=Y[0];var ro=-1,Wo=Yi[0];e:for(;++ro<jn&&Qr.length<cr;){var ps=Kr[ro],Ys=_e?_e(ps):ps;if(ps=ut||0!==ps?ps:0,!(Wo?$n(Wo,Ys):dn(Qr,Ys,ut))){for(Ni=di;--Ni;){var Da=Yi[Ni];if(!(Da?$n(Da,Ys):dn(Y[Ni],Ys,ut)))continue e}Wo&&Wo.push(Ys),Qr.push(ps)}}return Qr}function $t(Y,_e,ut){var dn=null==(Y=wd(Y,_e=hr(_e,Y)))?Y:Y[zc(ko(_e))];return null==dn?l:cs(dn,Y,ut)}function an(Y){return $l(Y)&&k(Y)==He}function kn(Y,_e,ut,dn,jn){return Y===_e||(null==Y||null==_e||!$l(Y)&&!$l(_e)?Y!=Y&&_e!=_e:function yn(Y,_e,ut,dn,jn,di){var Ni=wa(Y),Yi=wa(_e),cr=Ni?Me:Gl(Y),Qr=Yi?Me:Gl(_e),Kr=(cr=cr==He?At:cr)==At,ro=(Qr=Qr==He?At:Qr)==At,Wo=cr==Qr;if(Wo&&Nd(Y)){if(!Nd(_e))return!1;Ni=!0,Kr=!1}if(Wo&&!Kr)return di||(di=new j),Ni||iu(Y)?Ed(Y,_e,ut,dn,jn,di):function Nu(Y,_e,ut,dn,jn,di,Ni){switch(ut){case We:if(Y.byteLength!=_e.byteLength||Y.byteOffset!=_e.byteOffset)return!1;Y=Y.buffer,_e=_e.buffer;case It:return!(Y.byteLength!=_e.byteLength||!di(new wo(Y),new wo(_e)));case A:case me:case Pe:return Ql(+Y,+_e);case G:return Y.name==_e.name&&Y.message==_e.message;case $e:case Qe:return Y==_e+"";case le:var Yi=Zo;case Ze:if(Yi||(Yi=ta),Y.size!=_e.size&&!(1&dn))return!1;var Qr=Ni.get(Y);if(Qr)return Qr==_e;dn|=2,Ni.set(Y,_e);var Kr=Ed(Yi(Y),Yi(_e),dn,jn,di,Ni);return Ni.delete(Y),Kr;case Ve:if(gl)return gl.call(Y)==gl.call(_e)}return!1}(Y,_e,cr,ut,dn,jn,di);if(!(1&ut)){var ps=Kr&&rn.call(Y,"__wrapped__"),Ys=ro&&rn.call(_e,"__wrapped__");if(ps||Ys){var Da=ps?Y.value():Y,bs=Ys?_e.value():_e;return di||(di=new j),jn(Da,bs,ut,dn,di)}}return!!Wo&&(di||(di=new j),function $d(Y,_e,ut,dn,jn,di){var Ni=1&ut,Yi=xd(Y),cr=Yi.length;if(cr!=xd(_e).length&&!Ni)return!1;for(var ro=cr;ro--;){var Wo=Yi[ro];if(!(Ni?Wo in _e:rn.call(_e,Wo)))return!1}var ps=di.get(Y),Ys=di.get(_e);if(ps&&Ys)return ps==_e&&Ys==Y;var Da=!0;di.set(Y,_e),di.set(_e,Y);for(var bs=Ni;++ro<cr;){var Fa=Y[Wo=Yi[ro]],Za=_e[Wo];if(dn)var Uc=Ni?dn(Za,Fa,Wo,_e,Y,di):dn(Fa,Za,Wo,Y,_e,di);if(!(Uc===l?Fa===Za||jn(Fa,Za,ut,dn,di):Uc)){Da=!1;break}bs||(bs="constructor"==Wo)}if(Da&&!bs){var mc=Y.constructor,Oc=_e.constructor;mc!=Oc&&"constructor"in Y&&"constructor"in _e&&!("function"==typeof mc&&mc instanceof mc&&"function"==typeof Oc&&Oc instanceof Oc)&&(Da=!1)}return di.delete(Y),di.delete(_e),Da}(Y,_e,ut,dn,jn,di))}(Y,_e,ut,dn,kn,jn))}function li(Y,_e,ut,dn){var jn=ut.length,di=jn,Ni=!dn;if(null==Y)return!di;for(Y=zn(Y);jn--;){var Yi=ut[jn];if(Ni&&Yi[2]?Yi[1]!==Y[Yi[0]]:!(Yi[0]in Y))return!1}for(;++jn<di;){var cr=(Yi=ut[jn])[0],Qr=Y[cr],Kr=Yi[1];if(Ni&&Yi[2]){if(Qr===l&&!(cr in Y))return!1}else{var ro=new j;if(dn)var Wo=dn(Qr,Kr,cr,Y,_e,ro);if(!(Wo===l?kn(Kr,Qr,3,dn,ro):Wo))return!1}}return!0}function wi(Y){return!(!Hl(Y)||function _u(Y){return!!Te&&Te in Y}(Y))&&(sd(Y)?tr:pn).test(fd(Y))}function sr(Y){return"function"==typeof Y?Y:null==Y?pc:"object"==typeof Y?wa(Y)?Lo(Y[0],Y[1]):Do(Y):_m(Y)}function Ar(Y){if(!md(Y))return es(Y);var _e=[];for(var ut in zn(Y))rn.call(Y,ut)&&"constructor"!=ut&&_e.push(ut);return _e}function Br(Y,_e){return Y<_e}function Xo(Y,_e){var ut=-1,dn=yc(Y)?lr(Y.length):[];return co(Y,function(jn,di,Ni){dn[++ut]=_e(jn,di,Ni)}),dn}function Do(Y){var _e=Eo(Y);return 1==_e.length&&_e[0][2]?Cu(_e[0][0],_e[0][1]):function(ut){return ut===Y||li(ut,Y,_e)}}function Lo(Y,_e){return gd(Y)&&Xd(_e)?Cu(zc(Y),_e):function(ut){var dn=em(ut,Y);return dn===l&&dn===_e?Hf(ut,Y):kn(_e,dn,3)}}function ir(Y,_e,ut,dn,jn){Y!==_e&&Us(_e,function(di,Ni){if(jn||(jn=new j),Hl(di))!function wr(Y,_e,ut,dn,jn,di,Ni){var Yi=Id(Y,ut),cr=Id(_e,ut),Qr=Ni.get(cr);if(Qr)pe(Y,ut,Qr);else{var Kr=di?di(Yi,cr,ut+"",Y,_e,Ni):l,ro=Kr===l;if(ro){var Wo=wa(cr),ps=!Wo&&Nd(cr),Ys=!Wo&&!ps&&iu(cr);Kr=cr,Wo||ps||Ys?wa(Yi)?Kr=Yi:Yl(Yi)?Kr=zl(Yi):ps?(ro=!1,Kr=ba(cr,!0)):Ys?(ro=!1,Kr=ya(cr,!0)):Kr=[]:qu(cr)||tu(cr)?(Kr=Yi,tu(Yi)?Kr=Ig(Yi):(!Hl(Yi)||sd(Yi))&&(Kr=Yd(cr))):ro=!1}ro&&(Ni.set(cr,Kr),jn(Kr,cr,dn,di,Ni),Ni.delete(cr)),pe(Y,ut,Kr)}}(Y,_e,Ni,ut,ir,dn,jn);else{var Yi=dn?dn(Id(Y,Ni),di,Ni+"",Y,_e,jn):l;Yi===l&&(Yi=di),pe(Y,Ni,Yi)}},Mc)}function _s(Y,_e){var ut=Y.length;if(ut)return rc(_e+=_e<0?ut:0,ut)?Y[_e]:l}function Ta(Y,_e,ut){_e=_e.length?$o(_e,function(di){return wa(di)?function(Ni){return h(Ni,1===di.length?di[0]:di)}:di}):[pc];var dn=-1;return _e=$o(_e,st(Rs())),function Ai(zi,mr){var lr=zi.length;for(zi.sort(mr);lr--;)zi[lr]=zi[lr].value;return zi}(Xo(Y,function(di,Ni,Yi){return{criteria:$o(_e,function(Qr){return Qr(di)}),index:++dn,value:di}}),function(di,Ni){return function Du(Y,_e,ut){for(var dn=-1,jn=Y.criteria,di=_e.criteria,Ni=jn.length,Yi=ut.length;++dn<Ni;){var cr=bl(jn[dn],di[dn]);if(cr)return dn>=Yi?cr:cr*("desc"==ut[dn]?-1:1)}return Y.index-_e.index}(di,Ni,ut)})}function zs(Y,_e,ut){for(var dn=-1,jn=_e.length,di={};++dn<jn;){var Ni=_e[dn],Yi=h(Y,Ni);ut(Yi,Ni)&&dl(di,hr(Ni,Y),Yi)}return di}function ga(Y,_e,ut,dn){var jn=dn?$a:ts,di=-1,Ni=_e.length,Yi=Y;for(Y===_e&&(_e=zl(_e)),ut&&(Yi=$o(Y,st(ut)));++di<Ni;)for(var cr=0,Qr=_e[di],Kr=ut?ut(Qr):Qr;(cr=jn(Yi,Kr,cr,dn))>-1;)Yi!==Y&&_a.call(Yi,cr,1),_a.call(Y,cr,1);return Y}function nl(Y,_e){for(var ut=Y?_e.length:0,dn=ut-1;ut--;){var jn=_e[ut];if(ut==dn||jn!==di){var di=jn;rc(jn)?_a.call(Y,jn,1):vt(Y,jn)}}return Y}function ua(Y,_e){return Y+vs(Vs()*(_e-Y+1))}function Xl(Y,_e){var ut="";if(!Y||_e<1||_e>ue)return ut;do{_e%2&&(ut+=Y),(_e=vs(_e/2))&&(Y+=Y)}while(_e);return ut}function xs(Y,_e){return Su(ph(Y,_e,pc),Y+"")}function qa(Y){return on(ou(Y))}function ll(Y,_e){var ut=ou(Y);return Sc(ut,Xi(_e,0,ut.length))}function dl(Y,_e,ut,dn){if(!Hl(Y))return Y;for(var jn=-1,di=(_e=hr(_e,Y)).length,Ni=di-1,Yi=Y;null!=Yi&&++jn<di;){var cr=zc(_e[jn]),Qr=ut;if("__proto__"===cr||"constructor"===cr||"prototype"===cr)return Y;if(jn!=Ni){var Kr=Yi[cr];(Qr=dn?dn(Kr,cr,Yi):l)===l&&(Qr=Hl(Kr)?Kr:rc(_e[jn+1])?[]:{})}Ge(Yi,cr,Qr),Yi=Yi[cr]}return Y}var pl=Uo?function(Y,_e){return Uo.set(Y,_e),Y}:pc,Ol=Pn?function(Y,_e){return Pn(Y,"toString",{configurable:!0,enumerable:!1,value:jh(_e),writable:!0})}:pc;function ml(Y){return Sc(ou(Y))}function El(Y,_e,ut){var dn=-1,jn=Y.length;_e<0&&(_e=-_e>jn?0:jn+_e),(ut=ut>jn?jn:ut)<0&&(ut+=jn),jn=_e>ut?0:ut-_e>>>0,_e>>>=0;for(var di=lr(jn);++dn<jn;)di[dn]=Y[dn+_e];return di}function vc(Y,_e){var ut;return co(Y,function(dn,jn,di){return!(ut=_e(dn,jn,di))}),!!ut}function Zl(Y,_e,ut){var dn=0,jn=null==Y?dn:Y.length;if("number"==typeof _e&&_e==_e&&jn<=2147483647){for(;dn<jn;){var di=dn+jn>>>1,Ni=Y[di];null!==Ni&&!Nc(Ni)&&(ut?Ni<=_e:Ni<_e)?dn=di+1:jn=di}return jn}return bc(Y,_e,pc,ut)}function bc(Y,_e,ut,dn){var jn=0,di=null==Y?0:Y.length;if(0===di)return 0;for(var Ni=(_e=ut(_e))!=_e,Yi=null===_e,cr=Nc(_e),Qr=_e===l;jn<di;){var Kr=vs((jn+di)/2),ro=ut(Y[Kr]),Wo=ro!==l,ps=null===ro,Ys=ro==ro,Da=Nc(ro);if(Ni)var bs=dn||Ys;else bs=Qr?Ys&&(dn||Wo):Yi?Ys&&Wo&&(dn||!ps):cr?Ys&&Wo&&!ps&&(dn||!Da):!ps&&!Da&&(dn?ro<=_e:ro<_e);bs?jn=Kr+1:di=Kr}return Jo(di,4294967294)}function _c(Y,_e){for(var ut=-1,dn=Y.length,jn=0,di=[];++ut<dn;){var Ni=Y[ut],Yi=_e?_e(Ni):Ni;if(!ut||!Ql(Yi,cr)){var cr=Yi;di[jn++]=0===Ni?0:Ni}}return di}function Jl(Y){return"number"==typeof Y?Y:Nc(Y)?Z:+Y}function xl(Y){if("string"==typeof Y)return Y;if(wa(Y))return $o(Y,xl)+"";if(Nc(Y))return _l?_l.call(Y):"";var _e=Y+"";return"0"==_e&&1/Y==-ve?"-0":_e}function ic(Y,_e,ut){var dn=-1,jn=la,di=Y.length,Ni=!0,Yi=[],cr=Yi;if(ut)Ni=!1,jn=ra;else if(di>=200){var Qr=_e?null:Lu(Y);if(Qr)return ta(Qr);Ni=!1,jn=$n,cr=new _n}else cr=_e?[]:Yi;e:for(;++dn<di;){var Kr=Y[dn],ro=_e?_e(Kr):Kr;if(Kr=ut||0!==Kr?Kr:0,Ni&&ro==ro){for(var Wo=cr.length;Wo--;)if(cr[Wo]===ro)continue e;_e&&cr.push(ro),Yi.push(Kr)}else jn(cr,ro,ut)||(cr!==Yi&&cr.push(ro),Yi.push(Kr))}return Yi}function vt(Y,_e){return null==(Y=wd(Y,_e=hr(_e,Y)))||delete Y[zc(ko(_e))]}function en(Y,_e,ut,dn){return dl(Y,_e,ut(h(Y,_e)),dn)}function Ee(Y,_e,ut,dn){for(var jn=Y.length,di=dn?jn:-1;(dn?di--:++di<jn)&&_e(Y[di],di,Y););return ut?El(Y,dn?0:di,dn?di+1:jn):El(Y,dn?di+1:0,dn?jn:di)}function kt(Y,_e){var ut=Y;return ut instanceof ki&&(ut=ut.value()),oa(_e,function(dn,jn){return jn.func.apply(jn.thisArg,rs([dn],jn.args))},ut)}function Qt(Y,_e,ut){var dn=Y.length;if(dn<2)return dn?ic(Y[0]):[];for(var jn=-1,di=lr(dn);++jn<dn;)for(var Ni=Y[jn],Yi=-1;++Yi<dn;)Yi!=jn&&(di[jn]=Rr(di[jn]||Ni,Y[Yi],_e,ut));return ic(io(di,1),_e,ut)}function Zn(Y,_e,ut){for(var dn=-1,jn=Y.length,di=_e.length,Ni={};++dn<jn;)ut(Ni,Y[dn],dn<di?_e[dn]:l);return Ni}function Vi(Y){return Yl(Y)?Y:[]}function vr(Y){return"function"==typeof Y?Y:pc}function hr(Y,_e){return wa(Y)?Y:gd(Y,_e)?[Y]:tg(ul(Y))}var qr=xs;function so(Y,_e,ut){var dn=Y.length;return ut=ut===l?dn:ut,!_e&&ut>=dn?Y:El(Y,_e,ut)}var Cs=yi||function(Y){return fs.clearTimeout(Y)};function ba(Y,_e){if(_e)return Y.slice();var ut=Y.length,dn=Lr?Lr(ut):new Y.constructor(ut);return Y.copy(dn),dn}function As(Y){var _e=new Y.constructor(Y.byteLength);return new wo(_e).set(new wo(Y)),_e}function ya(Y,_e){var ut=_e?As(Y.buffer):Y.buffer;return new Y.constructor(ut,Y.byteOffset,Y.length)}function bl(Y,_e){if(Y!==_e){var ut=Y!==l,dn=null===Y,jn=Y==Y,di=Nc(Y),Ni=_e!==l,Yi=null===_e,cr=_e==_e,Qr=Nc(_e);if(!Yi&&!Qr&&!di&&Y>_e||di&&Ni&&cr&&!Yi&&!Qr||dn&&Ni&&cr||!ut&&cr||!jn)return 1;if(!dn&&!di&&!Qr&&Y<_e||Qr&&ut&&jn&&!dn&&!di||Yi&&ut&&jn||!Ni&&jn||!cr)return-1}return 0}function ud(Y,_e,ut,dn){for(var jn=-1,di=Y.length,Ni=ut.length,Yi=-1,cr=_e.length,Qr=hs(di-Ni,0),Kr=lr(cr+Qr),ro=!dn;++Yi<cr;)Kr[Yi]=_e[Yi];for(;++jn<Ni;)(ro||jn<di)&&(Kr[ut[jn]]=Y[jn]);for(;Qr--;)Kr[Yi++]=Y[jn++];return Kr}function Kc(Y,_e,ut,dn){for(var jn=-1,di=Y.length,Ni=-1,Yi=ut.length,cr=-1,Qr=_e.length,Kr=hs(di-Yi,0),ro=lr(Kr+Qr),Wo=!dn;++jn<Kr;)ro[jn]=Y[jn];for(var ps=jn;++cr<Qr;)ro[ps+cr]=_e[cr];for(;++Ni<Yi;)(Wo||jn<di)&&(ro[ps+ut[Ni]]=Y[jn++]);return ro}function zl(Y,_e){var ut=-1,dn=Y.length;for(_e||(_e=lr(dn));++ut<dn;)_e[ut]=Y[ut];return _e}function Tl(Y,_e,ut,dn){var jn=!ut;ut||(ut={});for(var di=-1,Ni=_e.length;++di<Ni;){var Yi=_e[di],cr=dn?dn(ut[Yi],Y[Yi],Yi,ut,Y):l;cr===l&&(cr=Y[Yi]),jn?ri(ut,Yi,cr):Ge(ut,Yi,cr)}return ut}function Vd(Y,_e){return function(ut,dn){var jn=wa(ut)?$s:sn,di=_e?_e():{};return jn(ut,Y,Rs(dn,2),di)}}function dc(Y){return xs(function(_e,ut){var dn=-1,jn=ut.length,di=jn>1?ut[jn-1]:l,Ni=jn>2?ut[2]:l;for(di=Y.length>3&&"function"==typeof di?(jn--,di):l,Ni&&Kl(ut[0],ut[1],Ni)&&(di=jn<3?l:di,jn=1),_e=zn(_e);++dn<jn;){var Yi=ut[dn];Yi&&Y(_e,Yi,dn,di)}return _e})}function ed(Y,_e){return function(ut,dn){if(null==ut)return ut;if(!yc(ut))return Y(ut,dn);for(var jn=ut.length,di=_e?jn:-1,Ni=zn(ut);(_e?di--:++di<jn)&&!1!==dn(Ni[di],di,Ni););return ut}}function wc(Y){return function(_e,ut,dn){for(var jn=-1,di=zn(_e),Ni=dn(_e),Yi=Ni.length;Yi--;){var cr=Ni[Y?Yi:++jn];if(!1===ut(di[cr],cr,di))break}return _e}}function Co(Y){return function(_e){var ut=Ki(_e=ul(_e))?Ns(_e):l,dn=ut?ut[0]:_e.charAt(0),jn=ut?so(ut,1).join(""):_e.slice(1);return dn[Y]()+jn}}function Hc(Y){return function(_e){return oa(zg(kh(_e).replace(Ut,"")),Y,"")}}function Yc(Y){return function(){var _e=arguments;switch(_e.length){case 0:return new Y;case 1:return new Y(_e[0]);case 2:return new Y(_e[0],_e[1]);case 3:return new Y(_e[0],_e[1],_e[2]);case 4:return new Y(_e[0],_e[1],_e[2],_e[3]);case 5:return new Y(_e[0],_e[1],_e[2],_e[3],_e[4]);case 6:return new Y(_e[0],_e[1],_e[2],_e[3],_e[4],_e[5]);case 7:return new Y(_e[0],_e[1],_e[2],_e[3],_e[4],_e[5],_e[6])}var ut=Sl(Y.prototype),dn=Y.apply(ut,_e);return Hl(dn)?dn:ut}}function pu(Y){return function(_e,ut,dn){var jn=zn(_e);if(!yc(_e)){var di=Rs(ut,3);_e=oc(_e),ut=function(Yi){return di(jn[Yi],Yi,jn)}}var Ni=Y(_e,ut,dn);return Ni>-1?jn[di?_e[Ni]:Ni]:l}}function Hd(Y){return Ic(function(_e){var ut=_e.length,dn=ut,jn=Oi.prototype.thru;for(Y&&_e.reverse();dn--;){var di=_e[dn];if("function"!=typeof di)throw new Ri(y);if(jn&&!Ni&&"wrapper"==Cc(di))var Ni=new Oi([],!0)}for(dn=Ni?dn:ut;++dn<ut;){var Yi=Cc(di=_e[dn]),cr="wrapper"==Yi?rd(di):l;Ni=cr&&pd(cr[0])&&424==cr[1]&&!cr[4].length&&1==cr[9]?Ni[Cc(cr[0])].apply(Ni,cr[3]):1==di.length&&pd(di)?Ni[Yi]():Ni.thru(di)}return function(){var Qr=arguments,Kr=Qr[0];if(Ni&&1==Qr.length&&wa(Kr))return Ni.plant(Kr).value();for(var ro=0,Wo=ut?_e[ro].apply(this,Qr):Kr;++ro<ut;)Wo=_e[ro].call(this,Wo);return Wo}})}function kl(Y,_e,ut,dn,jn,di,Ni,Yi,cr,Qr){var Kr=_e&L,ro=1&_e,Wo=2&_e,ps=24&_e,Ys=512&_e,Da=Wo?l:Yc(Y);return function bs(){for(var Fa=arguments.length,Za=lr(Fa),Uc=Fa;Uc--;)Za[Uc]=arguments[Uc];if(ps)var mc=Qc(bs),Oc=function Wr(zi,mr){for(var lr=zi.length,je=0;lr--;)zi[lr]===mr&&++je;return je}(Za,mc);if(dn&&(Za=ud(Za,dn,jn,ps)),di&&(Za=Kc(Za,di,Ni,ps)),Fa-=Oc,ps&&Fa<Qr){var Dl=vo(Za,mc);return Wd(Y,_e,kl,bs.placeholder,ut,Za,Dl,Yi,cr,Qr-Fa)}var Bc=ro?ut:this,Fd=Wo?Bc[Y]:Y;return Fa=Za.length,Yi?Za=function Rc(Y,_e){for(var ut=Y.length,dn=Jo(_e.length,ut),jn=zl(Y);dn--;){var di=_e[dn];Y[dn]=rc(di,ut)?jn[di]:l}return Y}(Za,Yi):Ys&&Fa>1&&Za.reverse(),Kr&&cr<Fa&&(Za.length=cr),this&&this!==fs&&this instanceof bs&&(Fd=Da||Yc(Fd)),Fd.apply(Bc,Za)}}function hh(Y,_e){return function(ut,dn){return function wt(Y,_e,ut,dn){return Is(Y,function(jn,di,Ni){_e(dn,ut(jn),di,Ni)}),dn}(ut,Y,_e(dn),{})}}function jc(Y,_e){return function(ut,dn){var jn;if(ut===l&&dn===l)return _e;if(ut!==l&&(jn=ut),dn!==l){if(jn===l)return dn;"string"==typeof ut||"string"==typeof dn?(ut=xl(ut),dn=xl(dn)):(ut=Jl(ut),dn=Jl(dn)),jn=Y(ut,dn)}return jn}}function td(Y){return Ic(function(_e){return _e=$o(_e,st(Rs())),xs(function(ut){var dn=this;return Y(_e,function(jn){return cs(jn,dn,ut)})})})}function Xc(Y,_e){var ut=(_e=_e===l?" ":xl(_e)).length;if(ut<2)return ut?Xl(_e,Y):_e;var dn=Xl(_e,uo(Y/Ls(_e)));return Ki(_e)?so(Ns(dn),0,Y).join(""):dn.slice(0,Y)}function jd(Y){return function(_e,ut,dn){return dn&&"number"!=typeof dn&&Kl(_e,ut,dn)&&(ut=dn=l),_e=Cd(_e),ut===l?(ut=_e,_e=0):ut=Cd(ut),function Wl(Y,_e,ut,dn){for(var jn=-1,di=hs(uo((_e-Y)/(ut||1)),0),Ni=lr(di);di--;)Ni[dn?di:++jn]=Y,Y+=ut;return Ni}(_e,ut,dn=dn===l?_e<ut?1:-1:Cd(dn),Y)}}function Pd(Y){return function(_e,ut){return"string"==typeof _e&&"string"==typeof ut||(_e=kc(_e),ut=kc(ut)),Y(_e,ut)}}function Wd(Y,_e,ut,dn,jn,di,Ni,Yi,cr,Qr){var Kr=8&_e;_e|=Kr?T:64,4&(_e&=~(Kr?64:T))||(_e&=-4);var Da=[Y,_e,jn,Kr?di:l,Kr?Ni:l,Kr?l:di,Kr?l:Ni,Yi,cr,Qr],bs=ut.apply(l,Da);return pd(Y)&&od(bs,Da),bs.placeholder=dn,gc(bs,Y,_e)}function Rl(Y){var _e=wn[Y];return function(ut,dn){if(ut=kc(ut),(dn=null==dn?0:Jo(Ma(dn),292))&&Ro(ut)){var jn=(ul(ut)+"e").split("e");return+((jn=(ul(_e(jn[0]+"e"+(+jn[1]+dn)))+"e").split("e"))[0]+"e"+(+jn[1]-dn))}return _e(ut)}}var Lu=jo&&1/ta(new jo([,-0]))[1]==ve?function(Y){return new jo(Y)}:Wh;function nd(Y){return function(_e){var ut=Gl(_e);return ut==le?Zo(_e):ut==Ze?function tl(zi){var mr=-1,lr=Array(zi.size);return zi.forEach(function(je){lr[++mr]=[je,je]}),lr}(_e):function Xn(zi,mr){return $o(mr,function(lr){return[lr,zi[lr]]})}(_e,Y(_e))}}function uc(Y,_e,ut,dn,jn,di,Ni,Yi){var cr=2&_e;if(!cr&&"function"!=typeof Y)throw new Ri(y);var Qr=dn?dn.length:0;if(Qr||(_e&=-97,dn=jn=l),Ni=Ni===l?Ni:hs(Ma(Ni),0),Yi=Yi===l?Yi:Ma(Yi),Qr-=jn?jn.length:0,64&_e){var Kr=dn,ro=jn;dn=jn=l}var Wo=cr?l:rd(Y),ps=[Y,_e,ut,dn,jn,Kr,ro,di,Ni,Yi];if(Wo&&function hc(Y,_e){var ut=Y[1],dn=_e[1],jn=ut|dn;if(!(jn<131)&&!(dn==L&&8==ut||dn==L&&256==ut&&Y[7].length<=_e[8]||384==dn&&_e[7].length<=_e[8]&&8==ut))return Y;1&dn&&(Y[2]=_e[2],jn|=1&ut?0:4);var Yi=_e[3];if(Yi){var cr=Y[3];Y[3]=cr?ud(cr,Yi,_e[4]):Yi,Y[4]=cr?vo(Y[3],_):_e[4]}(Yi=_e[5])&&(Y[5]=(cr=Y[5])?Kc(cr,Yi,_e[6]):Yi,Y[6]=cr?vo(Y[5],_):_e[6]),(Yi=_e[7])&&(Y[7]=Yi),dn&L&&(Y[8]=null==Y[8]?_e[8]:Jo(Y[8],_e[8])),null==Y[9]&&(Y[9]=_e[9]),Y[0]=_e[0],Y[1]=jn}(ps,Wo),Y=ps[0],_e=ps[1],ut=ps[2],dn=ps[3],jn=ps[4],!(Yi=ps[9]=ps[9]===l?cr?0:Y.length:hs(ps[9]-Qr,0))&&24&_e&&(_e&=-25),_e&&1!=_e)Ys=8==_e||16==_e?function eg(Y,_e,ut){var dn=Yc(Y);return function jn(){for(var di=arguments.length,Ni=lr(di),Yi=di,cr=Qc(jn);Yi--;)Ni[Yi]=arguments[Yi];var Qr=di<3&&Ni[0]!==cr&&Ni[di-1]!==cr?[]:vo(Ni,cr);return(di-=Qr.length)<ut?Wd(Y,_e,kl,jn.placeholder,l,Ni,Qr,l,l,ut-di):cs(this&&this!==fs&&this instanceof jn?dn:Y,this,Ni)}}(Y,_e,Yi):_e!=T&&33!=_e||jn.length?kl.apply(l,ps):function Tp(Y,_e,ut,dn){var jn=1&_e,di=Yc(Y);return function Ni(){for(var Yi=-1,cr=arguments.length,Qr=-1,Kr=dn.length,ro=lr(Kr+cr),Wo=this&&this!==fs&&this instanceof Ni?di:Y;++Qr<Kr;)ro[Qr]=dn[Qr];for(;cr--;)ro[Qr++]=arguments[++Yi];return cs(Wo,jn?ut:this,ro)}}(Y,_e,ut,dn);else var Ys=function Md(Y,_e,ut){var dn=1&_e,jn=Yc(Y);return function di(){return(this&&this!==fs&&this instanceof di?jn:Y).apply(dn?ut:this,arguments)}}(Y,_e,ut);return gc((Wo?pl:od)(Ys,ps),Y,_e)}function zd(Y,_e,ut,dn){return Y===l||Ql(Y,Er[ut])&&!rn.call(dn,ut)?_e:Y}function id(Y,_e,ut,dn,jn,di){return Hl(Y)&&Hl(_e)&&(di.set(_e,Y),ir(Y,_e,l,id,di),di.delete(_e)),Y}function Od(Y){return qu(Y)?l:Y}function Ed(Y,_e,ut,dn,jn,di){var Ni=1&ut,Yi=Y.length,cr=_e.length;if(Yi!=cr&&!(Ni&&cr>Yi))return!1;var Qr=di.get(Y),Kr=di.get(_e);if(Qr&&Kr)return Qr==_e&&Kr==Y;var ro=-1,Wo=!0,ps=2&ut?new _n:l;for(di.set(Y,_e),di.set(_e,Y);++ro<Yi;){var Ys=Y[ro],Da=_e[ro];if(dn)var bs=Ni?dn(Da,Ys,ro,_e,Y,di):dn(Ys,Da,ro,Y,_e,di);if(bs!==l){if(bs)continue;Wo=!1;break}if(ps){if(!Bs(_e,function(Fa,Za){if(!$n(ps,Za)&&(Ys===Fa||jn(Ys,Fa,ut,dn,di)))return ps.push(Za)})){Wo=!1;break}}else if(Ys!==Da&&!jn(Ys,Da,ut,dn,di)){Wo=!1;break}}return di.delete(Y),di.delete(_e),Wo}function Ic(Y){return Su(ph(Y,l,F),Y+"")}function xd(Y){return b(Y,oc,Td)}function mu(Y){return b(Y,Mc,fu)}var rd=Uo?function(Y){return Uo.get(Y)}:Wh;function Cc(Y){for(var _e=Y.name+"",ut=Xa[_e],dn=rn.call(Xa,_e)?ut.length:0;dn--;){var jn=ut[dn],di=jn.func;if(null==di||di==Y)return jn.name}return _e}function Qc(Y){return(rn.call(ii,"placeholder")?ii:Y).placeholder}function Rs(){var Y=ii.iteratee||Au;return Y=Y===Au?sr:Y,arguments.length?Y(arguments[0],arguments[1]):Y}function Bl(Y,_e){var ut=Y.__data__;return function vu(Y){var _e=typeof Y;return"string"==_e||"number"==_e||"symbol"==_e||"boolean"==_e?"__proto__"!==Y:null===Y}(_e)?ut["string"==typeof _e?"string":"hash"]:ut.map}function Eo(Y){for(var _e=oc(Y),ut=_e.length;ut--;){var dn=_e[ut],jn=Y[dn];_e[ut]=[dn,jn,Xd(jn)]}return _e}function ql(Y,_e){var ut=function Po(zi,mr){return null==zi?l:zi[mr]}(Y,_e);return wi(ut)?ut:l}var Td=ss?function(Y){return null==Y?[]:(Y=zn(Y),ds(ss(Y),function(_e){return da.call(Y,_e)}))}:kd,fu=ss?function(Y){for(var _e=[];Y;)rs(_e,Td(Y)),Y=ns(Y);return _e}:kd,Gl=k;function hd(Y,_e,ut){for(var dn=-1,jn=(_e=hr(_e,Y)).length,di=!1;++dn<jn;){var Ni=zc(_e[dn]);if(!(di=null!=Y&&ut(Y,Ni)))break;Y=Y[Ni]}return di||++dn!=jn?di:!!(jn=null==Y?0:Y.length)&&Mg(jn)&&rc(Ni,jn)&&(wa(Y)||tu(Y))}function Yd(Y){return"function"!=typeof Y.constructor||md(Y)?{}:Sl(ns(Y))}function Wc(Y){return wa(Y)||tu(Y)||!!(Mt&&Y&&Y[Mt])}function rc(Y,_e){var ut=typeof Y;return!!(_e=_e??ue)&&("number"==ut||"symbol"!=ut&&pi.test(Y))&&Y>-1&&Y%1==0&&Y<_e}function Kl(Y,_e,ut){if(!Hl(ut))return!1;var dn=typeof _e;return!!("number"==dn?yc(ut)&&rc(_e,ut.length):"string"==dn&&_e in ut)&&Ql(ut[_e],Y)}function gd(Y,_e){if(wa(Y))return!1;var ut=typeof Y;return!("number"!=ut&&"symbol"!=ut&&"boolean"!=ut&&null!=Y&&!Nc(Y))||fn.test(Y)||!Zt.test(Y)||null!=_e&&Y in zn(_e)}function pd(Y){var _e=Cc(Y),ut=ii[_e];if("function"!=typeof ut||!(_e in ki.prototype))return!1;if(Y===ut)return!0;var dn=rd(ut);return!!dn&&Y===dn[0]}(sa&&Gl(new sa(new ArrayBuffer(1)))!=We||as&&Gl(new as)!=le||il&&Gl(il.resolve())!=Le||jo&&Gl(new jo)!=Ze||Oo&&Gl(new Oo)!=Ot)&&(Gl=function(Y){var _e=k(Y),ut=_e==At?Y.constructor:l,dn=ut?fd(ut):"";if(dn)switch(dn){case vl:return We;case Pl:return le;case Hs:return Le;case wl:return Ze;case rl:return Ot}return _e});var Fu=po?sd:rh;function md(Y){var _e=Y&&Y.constructor;return Y===("function"==typeof _e&&_e.prototype||Er)}function Xd(Y){return Y==Y&&!Hl(Y)}function Cu(Y,_e){return function(ut){return null!=ut&&ut[Y]===_e&&(_e!==l||Y in zn(ut))}}function ph(Y,_e,ut){return _e=hs(_e===l?Y.length-1:_e,0),function(){for(var dn=arguments,jn=-1,di=hs(dn.length-_e,0),Ni=lr(di);++jn<di;)Ni[jn]=dn[_e+jn];jn=-1;for(var Yi=lr(_e+1);++jn<_e;)Yi[jn]=dn[jn];return Yi[_e]=ut(Ni),cs(Y,this,Yi)}}function wd(Y,_e){return _e.length<2?Y:h(Y,El(_e,0,-1))}function Id(Y,_e){if(("constructor"!==_e||"function"!=typeof Y[_e])&&"__proto__"!=_e)return Y[_e]}var od=Rd(pl),Ad=Pr||function(Y,_e){return fs.setTimeout(Y,_e)},Su=Rd(Ol);function gc(Y,_e,ut){var dn=_e+"";return Su(Y,function Vl(Y,_e){var ut=_e.length;if(!ut)return Y;var dn=ut-1;return _e[dn]=(ut>1?"& ":"")+_e[dn],_e=_e.join(ut>2?", ":" "),Y.replace(bt,"{\n/* [wrapped with "+_e+"] */\n")}(dn,function Uu(Y,_e){return Vo(Xe,function(ut){var dn="_."+ut[0];_e&ut[1]&&!la(Y,dn)&&Y.push(dn)}),Y.sort()}(function Ac(Y){var _e=Y.match(bn);return _e?_e[1].split(Pt):[]}(dn),ut)))}function Rd(Y){var _e=0,ut=0;return function(){var dn=Gr(),jn=16-(dn-ut);if(ut=dn,jn>0){if(++_e>=800)return arguments[0]}else _e=0;return Y.apply(l,arguments)}}function Sc(Y,_e){var ut=-1,dn=Y.length,jn=dn-1;for(_e=_e===l?dn:_e;++ut<_e;){var di=ua(ut,jn),Ni=Y[di];Y[di]=Y[ut],Y[ut]=Ni}return Y.length=_e,Y}var tg=function bu(Y){var _e=Ju(Y,function(dn){return 500===ut.size&&ut.clear(),dn}),ut=_e.cache;return _e}(function(Y){var _e=[];return 46===Y.charCodeAt(0)&&_e.push(""),Y.replace(hn,function(ut,dn,jn,di){_e.push(jn?di.replace(ui,"$1"):dn||ut)}),_e});function zc(Y){if("string"==typeof Y||Nc(Y))return Y;var _e=Y+"";return"0"==_e&&1/Y==-ve?"-0":_e}function fd(Y){if(null!=Y){try{return To.call(Y)}catch{}try{return Y+""}catch{}}return""}function Zc(Y){if(Y instanceof ki)return Y.clone();var _e=new Oi(Y.__wrapped__,Y.__chain__);return _e.__actions__=zl(Y.__actions__),_e.__index__=Y.__index__,_e.__values__=Y.__values__,_e}var yu=xs(function(Y,_e){return Yl(Y)?Rr(Y,io(_e,1,Yl,!0)):[]}),Dc=xs(function(Y,_e){var ut=ko(_e);return Yl(ut)&&(ut=l),Yl(Y)?Rr(Y,io(_e,1,Yl,!0),Rs(ut,2)):[]}),mh=xs(function(Y,_e){var ut=ko(_e);return Yl(ut)&&(ut=l),Yl(Y)?Rr(Y,io(_e,1,Yl,!0),l,ut):[]});function it(Y,_e,ut){var dn=null==Y?0:Y.length;if(!dn)return-1;var jn=null==ut?0:Ma(ut);return jn<0&&(jn=hs(dn+jn,0)),ea(Y,Rs(_e,3),jn)}function Ln(Y,_e,ut){var dn=null==Y?0:Y.length;if(!dn)return-1;var jn=dn-1;return ut!==l&&(jn=Ma(ut),jn=ut<0?hs(dn+jn,0):Jo(jn,dn-1)),ea(Y,Rs(_e,3),jn,!0)}function F(Y){return null!=Y&&Y.length?io(Y,1):[]}function Nn(Y){return Y&&Y.length?Y[0]:l}var or=xs(function(Y){var _e=$o(Y,Vi);return _e.length&&_e[0]===Y[0]?pt(_e):[]}),Hr=xs(function(Y){var _e=ko(Y),ut=$o(Y,Vi);return _e===ko(ut)?_e=l:ut.pop(),ut.length&&ut[0]===Y[0]?pt(ut,Rs(_e,2)):[]}),Mo=xs(function(Y){var _e=ko(Y),ut=$o(Y,Vi);return(_e="function"==typeof _e?_e:l)&&ut.pop(),ut.length&&ut[0]===Y[0]?pt(ut,l,_e):[]});function ko(Y){var _e=null==Y?0:Y.length;return _e?Y[_e-1]:l}var Ml=xs(Qa);function Qa(Y,_e){return Y&&Y.length&&_e&&_e.length?ga(Y,_e):Y}var Pu=Ic(function(Y,_e){var ut=null==Y?0:Y.length,dn=Mi(Y,_e);return nl(Y,$o(_e,function(jn){return rc(jn,ut)?+jn:jn}).sort(bl)),dn});function Dd(Y){return null==Y?Y:Ca.call(Y)}var nf=xs(function(Y){return ic(io(Y,1,Yl,!0))}),rf=xs(function(Y){var _e=ko(Y);return Yl(_e)&&(_e=l),ic(io(Y,1,Yl,!0),Rs(_e,2))}),Ip=xs(function(Y){var _e=ko(Y);return _e="function"==typeof _e?_e:l,ic(io(Y,1,Yl,!0),l,_e)});function cg(Y){if(!Y||!Y.length)return[];var _e=0;return Y=ds(Y,function(ut){if(Yl(ut))return _e=hs(ut.length,_e),!0}),Rn(_e,function(ut){return $o(Y,Tn(ut))})}function af(Y,_e){if(!Y||!Y.length)return[];var ut=cg(Y);return null==_e?ut:$o(ut,function(dn){return cs(_e,l,dn)})}var lf=xs(function(Y,_e){return Yl(Y)?Rr(Y,_e):[]}),Rp=xs(function(Y){return Qt(ds(Y,Yl))}),dg=xs(function(Y){var _e=ko(Y);return Yl(_e)&&(_e=l),Qt(ds(Y,Yl),Rs(_e,2))}),e_=xs(function(Y){var _e=ko(Y);return _e="function"==typeof _e?_e:l,Qt(ds(Y,Yl),l,_e)}),Ld=xs(cg),Lp=xs(function(Y){var _e=Y.length,ut=_e>1?Y[_e-1]:l;return ut="function"==typeof ut?(Y.pop(),ut):l,af(Y,ut)});function yh(Y){var _e=ii(Y);return _e.__chain__=!0,_e}function Mh(Y,_e){return _e(Y)}var df=Ic(function(Y){var _e=Y.length,ut=_e?Y[0]:0,dn=this.__wrapped__,jn=function(di){return Mi(di,Y)};return!(_e>1||this.__actions__.length)&&dn instanceof ki&&rc(ut)?((dn=dn.slice(ut,+ut+(_e?1:0))).__actions__.push({func:Mh,args:[jn],thisArg:l}),new Oi(dn,this.__chain__).thru(function(di){return _e&&!di.length&&di.push(l),di})):this.thru(jn)}),Np=Vd(function(Y,_e,ut){rn.call(Y,ut)?++Y[ut]:ri(Y,ut,1)}),gg=pu(it),Hu=pu(Ln);function Eh(Y,_e){return(wa(Y)?Vo:co)(Y,Rs(_e,3))}function ju(Y,_e){return(wa(Y)?Hn:Bo)(Y,Rs(_e,3))}var r_=Vd(function(Y,_e,ut){rn.call(Y,ut)?Y[ut].push(_e):ri(Y,ut,[_e])}),zu=xs(function(Y,_e,ut){var dn=-1,jn="function"==typeof _e,di=yc(Y)?lr(Y.length):[];return co(Y,function(Ni){di[++dn]=jn?cs(_e,Ni,ut):$t(Ni,_e,ut)}),di}),pf=Vd(function(Y,_e,ut){ri(Y,ut,_e)});function $u(Y,_e){return(wa(Y)?$o:Xo)(Y,Rs(_e,3))}var o_=Vd(function(Y,_e,ut){Y[ut?0:1].push(_e)},function(){return[[],[]]}),s_=xs(function(Y,_e){if(null==Y)return[];var ut=_e.length;return ut>1&&Kl(Y,_e[0],_e[1])?_e=[]:ut>2&&Kl(_e[0],_e[1],_e[2])&&(_e=[_e[0]]),Ta(Y,io(_e,1),[])}),vg=ur||function(){return fs.Date.now()};function Up(Y,_e,ut){return _e=ut?l:_e,uc(Y,L,l,l,l,l,_e=Y&&null==_e?Y.length:_e)}function Xu(Y,_e){var ut;if("function"!=typeof _e)throw new Ri(y);return Y=Ma(Y),function(){return--Y>0&&(ut=_e.apply(this,arguments)),Y<=1&&(_e=l),ut}}var Qu=xs(function(Y,_e,ut){var dn=1;if(ut.length){var jn=vo(ut,Qc(Qu));dn|=T}return uc(Y,dn,_e,ut,jn)}),Bp=xs(function(Y,_e,ut){var dn=3;if(ut.length){var jn=vo(ut,Qc(Bp));dn|=T}return uc(_e,dn,Y,ut,jn)});function Zu(Y,_e,ut){var dn,jn,di,Ni,Yi,cr,Qr=0,Kr=!1,ro=!1,Wo=!0;if("function"!=typeof Y)throw new Ri(y);function ps(Dl){var Bc=dn,Fd=jn;return dn=jn=l,Qr=Dl,Ni=Y.apply(Fd,Bc)}function bs(Dl){var Bc=Dl-cr;return cr===l||Bc>=_e||Bc<0||ro&&Dl-Qr>=di}function Fa(){var Dl=vg();if(bs(Dl))return Za(Dl);Yi=Ad(Fa,function Da(Dl){var Qg=_e-(Dl-cr);return ro?Jo(Qg,di-(Dl-Qr)):Qg}(Dl))}function Za(Dl){return Yi=l,Wo&&dn?ps(Dl):(dn=jn=l,Ni)}function Oc(){var Dl=vg(),Bc=bs(Dl);if(dn=arguments,jn=this,cr=Dl,Bc){if(Yi===l)return function Ys(Dl){return Qr=Dl,Yi=Ad(Fa,_e),Kr?ps(Dl):Ni}(cr);if(ro)return Cs(Yi),Yi=Ad(Fa,_e),ps(cr)}return Yi===l&&(Yi=Ad(Fa,_e)),Ni}return _e=kc(_e)||0,Hl(ut)&&(Kr=!!ut.leading,di=(ro="maxWait"in ut)?hs(kc(ut.maxWait)||0,_e):di,Wo="trailing"in ut?!!ut.trailing:Wo),Oc.cancel=function Uc(){Yi!==l&&Cs(Yi),Qr=0,dn=cr=jn=Yi=l},Oc.flush=function mc(){return Yi===l?Ni:Za(vg())},Oc}var Th=xs(function(Y,_e){return yr(Y,1,_e)}),Vp=xs(function(Y,_e,ut){return yr(Y,kc(_e)||0,ut)});function Ju(Y,_e){if("function"!=typeof Y||null!=_e&&"function"!=typeof _e)throw new Ri(y);var ut=function(){var dn=arguments,jn=_e?_e.apply(this,dn):dn[0],di=ut.cache;if(di.has(jn))return di.get(jn);var Ni=Y.apply(this,dn);return ut.cache=di.set(jn,Ni)||di,Ni};return ut.cache=new(Ju.Cache||Al),ut}function qd(Y){if("function"!=typeof Y)throw new Ri(y);return function(){var _e=arguments;switch(_e.length){case 0:return!Y.call(this);case 1:return!Y.call(this,_e[0]);case 2:return!Y.call(this,_e[0],_e[1]);case 3:return!Y.call(this,_e[0],_e[1],_e[2])}return!Y.apply(this,_e)}}Ju.Cache=Al;var xu=qr(function(Y,_e){var ut=(_e=1==_e.length&&wa(_e[0])?$o(_e[0],st(Rs())):$o(io(_e,1),st(Rs()))).length;return xs(function(dn){for(var jn=-1,di=Jo(dn.length,ut);++jn<di;)dn[jn]=_e[jn].call(this,dn[jn]);return cs(Y,this,dn)})}),Cg=xs(function(Y,_e){var ut=vo(_e,Qc(Cg));return uc(Y,T,l,_e,ut)}),jp=xs(function(Y,_e){var ut=vo(_e,Qc(jp));return uc(Y,64,l,_e,ut)}),a_=Ic(function(Y,_e){return uc(Y,256,l,l,l,_e)});function Ql(Y,_e){return Y===_e||Y!=Y&&_e!=_e}var Tu=Pd(ee),Of=Pd(function(Y,_e){return Y>=_e}),tu=an(function(){return arguments}())?an:function(Y){return $l(Y)&&rn.call(Y,"callee")&&!da.call(Y,"callee")},wa=lr.isArray,Ef=js?st(js):function zt(Y){return $l(Y)&&k(Y)==It};function yc(Y){return null!=Y&&Mg(Y.length)&&!sd(Y)}function Yl(Y){return $l(Y)&&yc(Y)}var Nd=Ts||rh,xf=Ia?st(Ia):function mn(Y){return $l(Y)&&k(Y)==me};function nu(Y){if(!$l(Y))return!1;var _e=k(Y);return _e==G||"[object DOMException]"==_e||"string"==typeof Y.message&&"string"==typeof Y.name&&!qu(Y)}function sd(Y){if(!Hl(Y))return!1;var _e=k(Y);return _e==W||_e==$||"[object AsyncFunction]"==_e||"[object Proxy]"==_e}function yg(Y){return"number"==typeof Y&&Y==Ma(Y)}function Mg(Y){return"number"==typeof Y&&Y>-1&&Y%1==0&&Y<=ue}function Hl(Y){var _e=typeof Y;return null!=Y&&("object"==_e||"function"==_e)}function $l(Y){return null!=Y&&"object"==typeof Y}var Ih=Ds?st(Ds):function Qn(Y){return $l(Y)&&Gl(Y)==le};function Rf(Y){return"number"==typeof Y||$l(Y)&&k(Y)==Pe}function qu(Y){if(!$l(Y)||k(Y)!=At)return!1;var _e=ns(Y);if(null===_e)return!0;var ut=rn.call(_e,"constructor")&&_e.constructor;return"function"==typeof ut&&ut instanceof ut&&To.call(ut)==Rt}var Og=Js?st(Js):function mi(Y){return $l(Y)&&k(Y)==$e},Eg=fa?st(fa):function Bi(Y){return $l(Y)&&Gl(Y)==Ze};function Ah(Y){return"string"==typeof Y||!wa(Y)&&$l(Y)&&k(Y)==Qe}function Nc(Y){return"symbol"==typeof Y||$l(Y)&&k(Y)==Ve}var iu=Ga?st(Ga):function qi(Y){return $l(Y)&&Mg(Y.length)&&!!fo[k(Y)]},Df=Pd(Br),ru=Pd(function(Y,_e){return Y<=_e});function Tg(Y){if(!Y)return[];if(yc(Y))return Ah(Y)?Ns(Y):zl(Y);if(Dn&&Y[Dn])return function ca(zi){for(var mr,lr=[];!(mr=zi.next()).done;)lr.push(mr.value);return lr}(Y[Dn]());var _e=Gl(Y);return(_e==le?Zo:_e==Ze?ta:ou)(Y)}function Cd(Y){return Y?(Y=kc(Y))===ve||Y===-ve?17976931348623157e292*(Y<0?-1:1):Y==Y?Y:0:0===Y?Y:0}function Ma(Y){var _e=Cd(Y),ut=_e%1;return _e==_e?ut?_e-ut:_e:0}function wg(Y){return Y?Xi(Ma(Y),0,Se):0}function kc(Y){if("number"==typeof Y)return Y;if(Nc(Y))return Z;if(Hl(Y)){var _e="function"==typeof Y.valueOf?Y.valueOf():Y;Y=Hl(_e)?_e+"":_e}if("string"!=typeof Y)return 0===Y?Y:+Y;Y=ae(Y);var ut=Cn.test(Y);return ut||ti.test(Y)?Xs(Y.slice(2),ut?2:8):zr.test(Y)?Z:+Y}function Ig(Y){return Tl(Y,Mc(Y))}function ul(Y){return null==Y?"":xl(Y)}var Ag=dc(function(Y,_e){if(md(_e)||yc(_e))Tl(_e,oc(_e),Y);else for(var ut in _e)rn.call(_e,ut)&&Ge(Y,ut,_e[ut])}),Jp=dc(function(Y,_e){Tl(_e,Mc(_e),Y)}),wu=dc(function(Y,_e,ut,dn){Tl(_e,Mc(_e),Y,dn)}),eh=dc(function(Y,_e,ut,dn){Tl(_e,oc(_e),Y,dn)}),Lf=Ic(Mi),kf=xs(function(Y,_e){Y=zn(Y);var ut=-1,dn=_e.length,jn=dn>2?_e[2]:l;for(jn&&Kl(_e[0],_e[1],jn)&&(dn=1);++ut<dn;)for(var di=_e[ut],Ni=Mc(di),Yi=-1,cr=Ni.length;++Yi<cr;){var Qr=Ni[Yi],Kr=Y[Qr];(Kr===l||Ql(Kr,Er[Qr])&&!rn.call(Y,Qr))&&(Y[Qr]=di[Qr])}return Y}),qp=xs(function(Y){return Y.push(l,id),cs(Fg,l,Y)});function em(Y,_e,ut){var dn=null==Y?l:h(Y,_e);return dn===l?ut:dn}function Hf(Y,_e){return null!=Y&&hd(Y,_e,we)}var d_=hh(function(Y,_e,ut){null!=_e&&"function"!=typeof _e.toString&&(_e=Jt.call(_e)),Y[_e]=ut},jh(pc)),u_=hh(function(Y,_e,ut){null!=_e&&"function"!=typeof _e.toString&&(_e=Jt.call(_e)),rn.call(Y,_e)?Y[_e].push(ut):Y[_e]=[ut]},Rs),h_=xs($t);function oc(Y){return yc(Y)?Nt(Y):Ar(Y)}function Mc(Y){return yc(Y)?Nt(Y,!0):function Vr(Y){if(!Hl(Y))return function wp(Y){var _e=[];if(null!=Y)for(var ut in zn(Y))_e.push(ut);return _e}(Y);var _e=md(Y),ut=[];for(var dn in Y)"constructor"==dn&&(_e||!rn.call(Y,dn))||ut.push(dn);return ut}(Y)}var kg=dc(function(Y,_e,ut){ir(Y,_e,ut)}),Fg=dc(function(Y,_e,ut,dn){ir(Y,_e,ut,dn)}),tm=Ic(function(Y,_e){var ut={};if(null==Y)return ut;var dn=!1;_e=$o(_e,function(di){return di=hr(di,Y),dn||(dn=di.length>1),di}),Tl(Y,mu(Y),ut),dn&&(ut=Ui(ut,7,Od));for(var jn=_e.length;jn--;)vt(ut,_e[jn]);return ut}),im=Ic(function(Y,_e){return null==Y?{}:function ls(Y,_e){return zs(Y,_e,function(ut,dn){return Hf(Y,dn)})}(Y,_e)});function Ug(Y,_e){if(null==Y)return{};var ut=$o(mu(Y),function(dn){return[dn]});return _e=Rs(_e),zs(Y,ut,function(dn,jn){return _e(dn,jn[0])})}var Bg=nd(oc),jf=nd(Mc);function ou(Y){return null==Y?[]:Ct(Y,oc(Y))}var zf=Hc(function(Y,_e,ut){return _e=_e.toLowerCase(),Y+(ut?su(_e):_e)});function su(Y){return Gh(ul(Y).toLowerCase())}function kh(Y){return(Y=ul(Y))&&Y.replace(cn,ao).replace(qn,"")}var $f=Hc(function(Y,_e,ut){return Y+(ut?"-":"")+_e.toLowerCase()}),Kf=Hc(function(Y,_e,ut){return Y+(ut?" ":"")+_e.toLowerCase()}),sm=Co("toLowerCase"),jg=Hc(function(Y,_e,ut){return Y+(ut?"_":"")+_e.toLowerCase()}),Jf=Hc(function(Y,_e,ut){return Y+(ut?" ":"")+Gh(_e)}),dm=Hc(function(Y,_e,ut){return Y+(ut?" ":"")+_e.toUpperCase()}),Gh=Co("toUpperCase");function zg(Y,_e,ut){return Y=ul(Y),(_e=ut?l:_e)===l?function el(zi){return Jr.test(zi)}(Y)?function Ea(zi){return zi.match(ci)||[]}(Y):function qs(zi){return zi.match(jt)||[]}(Y):Y.match(_e)||[]}var Vh=xs(function(Y,_e){try{return cs(Y,l,_e)}catch(ut){return nu(ut)?ut:new Ft(ut)}}),um=Ic(function(Y,_e){return Vo(_e,function(ut){ut=zc(ut),ri(Y,ut,Qu(Y[ut],Y))}),Y});function jh(Y){return function(){return Y}}var ih=Hd(),gm=Hd(!0);function pc(Y){return Y}function Au(Y){return sr("function"==typeof Y?Y:Ui(Y,1))}var iv=xs(function(Y,_e){return function(ut){return $t(ut,Y,_e)}}),rv=xs(function(Y,_e){return function(ut){return $t(Y,ut,_e)}});function $g(Y,_e,ut){var dn=oc(_e),jn=x(_e,dn);null==ut&&(!Hl(_e)||!jn.length&&dn.length)&&(ut=_e,_e=Y,Y=this,jn=x(_e,oc(_e)));var di=!(Hl(ut)&&"chain"in ut&&!ut.chain),Ni=sd(Y);return Vo(jn,function(Yi){var cr=_e[Yi];Y[Yi]=cr,Ni&&(Y.prototype[Yi]=function(){var Qr=this.__chain__;if(di||Qr){var Kr=Y(this.__wrapped__);return(Kr.__actions__=zl(this.__actions__)).push({func:cr,args:arguments,thisArg:Y}),Kr.__chain__=Qr,Kr}return cr.apply(Y,rs([this.value()],arguments))})}),Y}function Wh(){}var fm=td($o),vm=td(Ba),Ru=td(Bs);function _m(Y){return gd(Y)?Tn(zc(Y)):function ia(Y){return function(_e){return h(_e,Y)}}(Y)}var ov=jd(),zh=jd(!0);function kd(){return[]}function rh(){return!1}var Xg=jc(function(Y,_e){return Y+_e},0),sv=Rl("ceil"),av=jc(function(Y,_e){return Y/_e},1),lv=Rl("floor"),Pm=jc(function(Y,_e){return Y*_e},1),hv=Rl("round"),gv=jc(function(Y,_e){return Y-_e},0);return ii.after=function Yu(Y,_e){if("function"!=typeof _e)throw new Ri(y);return Y=Ma(Y),function(){if(--Y<1)return _e.apply(this,arguments)}},ii.ary=Up,ii.assign=Ag,ii.assignIn=Jp,ii.assignInWith=wu,ii.assignWith=eh,ii.at=Lf,ii.before=Xu,ii.bind=Qu,ii.bindAll=um,ii.bindKey=Bp,ii.castArray=function eu(){if(!arguments.length)return[];var Y=arguments[0];return wa(Y)?Y:[Y]},ii.chain=yh,ii.chunk=function gs(Y,_e,ut){_e=(ut?Kl(Y,_e,ut):_e===l)?1:hs(Ma(_e),0);var dn=null==Y?0:Y.length;if(!dn||_e<1)return[];for(var jn=0,di=0,Ni=lr(uo(dn/_e));jn<dn;)Ni[di++]=El(Y,jn,jn+=_e);return Ni},ii.compact=function vd(Y){for(var _e=-1,ut=null==Y?0:Y.length,dn=0,jn=[];++_e<ut;){var di=Y[_e];di&&(jn[dn++]=di)}return jn},ii.concat=function Qd(){var Y=arguments.length;if(!Y)return[];for(var _e=lr(Y-1),ut=arguments[0],dn=Y;dn--;)_e[dn-1]=arguments[dn];return rs(wa(ut)?zl(ut):[ut],io(_e,1))},ii.cond=function Hh(Y){var _e=null==Y?0:Y.length,ut=Rs();return Y=_e?$o(Y,function(dn){if("function"!=typeof dn[1])throw new Ri(y);return[ut(dn[0]),dn[1]]}):[],xs(function(dn){for(var jn=-1;++jn<_e;){var di=Y[jn];if(cs(di[0],this,dn))return cs(di[1],this,dn)}})},ii.conforms=function nh(Y){return function fr(Y){var _e=oc(Y);return function(ut){return xr(ut,Y,_e)}}(Ui(Y,1))},ii.constant=jh,ii.countBy=Np,ii.create=function Nf(Y,_e){var ut=Sl(Y);return null==_e?ut:En(ut,_e)},ii.curry=function Gp(Y,_e,ut){var dn=uc(Y,8,l,l,l,l,l,_e=ut?l:_e);return dn.placeholder=Gp.placeholder,dn},ii.curryRight=function xh(Y,_e,ut){var dn=uc(Y,16,l,l,l,l,l,_e=ut?l:_e);return dn.placeholder=xh.placeholder,dn},ii.debounce=Zu,ii.defaults=kf,ii.defaultsDeep=qp,ii.defer=Th,ii.delay=Vp,ii.difference=yu,ii.differenceBy=Dc,ii.differenceWith=mh,ii.drop=function Mu(Y,_e,ut){var dn=null==Y?0:Y.length;return dn?El(Y,(_e=ut||_e===l?1:Ma(_e))<0?0:_e,dn):[]},ii.dropRight=function Zd(Y,_e,ut){var dn=null==Y?0:Y.length;return dn?El(Y,0,(_e=dn-(_e=ut||_e===l?1:Ma(_e)))<0?0:_e):[]},ii.dropRightWhile=function ng(Y,_e){return Y&&Y.length?Ee(Y,Rs(_e,3),!0,!0):[]},ii.dropWhile=function ig(Y,_e){return Y&&Y.length?Ee(Y,Rs(_e,3),!0):[]},ii.fill=function rg(Y,_e,ut,dn){var jn=null==Y?0:Y.length;return jn?(ut&&"number"!=typeof ut&&Kl(Y,_e,ut)&&(ut=0,dn=jn),function Fs(Y,_e,ut,dn){var jn=Y.length;for((ut=Ma(ut))<0&&(ut=-ut>jn?0:jn+ut),(dn=dn===l||dn>jn?jn:Ma(dn))<0&&(dn+=jn),dn=ut>dn?0:wg(dn);ut<dn;)Y[ut++]=_e;return Y}(Y,_e,ut,dn)):[]},ii.filter=function hg(Y,_e){return(wa(Y)?ds:Qs)(Y,Rs(_e,3))},ii.flatMap=function Oh(Y,_e){return io($u(Y,_e),1)},ii.flatMapDeep=function Eu(Y,_e){return io($u(Y,_e),ve)},ii.flatMapDepth=function pg(Y,_e,ut){return ut=ut===l?1:Ma(ut),io($u(Y,_e),ut)},ii.flatten=F,ii.flattenDeep=function Oe(Y){return null!=Y&&Y.length?io(Y,ve):[]},ii.flattenDepth=function Ke(Y,_e){return null!=Y&&Y.length?io(Y,_e=_e===l?1:Ma(_e)):[]},ii.flip=function Hp(Y){return uc(Y,512)},ii.flow=ih,ii.flowRight=gm,ii.fromPairs=function nn(Y){for(var _e=-1,ut=null==Y?0:Y.length,dn={};++_e<ut;){var jn=Y[_e];dn[jn[0]]=jn[1]}return dn},ii.functions=function Dg(Y){return null==Y?[]:x(Y,oc(Y))},ii.functionsIn=function Lg(Y){return null==Y?[]:x(Y,Mc(Y))},ii.groupBy=r_,ii.initial=function Wi(Y){return null!=Y&&Y.length?El(Y,0,-1):[]},ii.intersection=or,ii.intersectionBy=Hr,ii.intersectionWith=Mo,ii.invert=d_,ii.invertBy=u_,ii.invokeMap=zu,ii.iteratee=Au,ii.keyBy=pf,ii.keys=oc,ii.keysIn=Mc,ii.map=$u,ii.mapKeys=function Dh(Y,_e){var ut={};return _e=Rs(_e,3),Is(Y,function(dn,jn,di){ri(ut,_e(dn,jn,di),dn)}),ut},ii.mapValues=function Lh(Y,_e){var ut={};return _e=Rs(_e,3),Is(Y,function(dn,jn,di){ri(ut,jn,_e(dn,jn,di))}),ut},ii.matches=function nv(Y){return Do(Ui(Y,1))},ii.matchesProperty=function pm(Y,_e){return Lo(Y,Ui(_e,1))},ii.memoize=Ju,ii.merge=kg,ii.mergeWith=Fg,ii.method=iv,ii.methodOf=rv,ii.mixin=$g,ii.negate=qd,ii.nthArg=function Pa(Y){return Y=Ma(Y),xs(function(_e){return _s(_e,Y)})},ii.omit=tm,ii.omitBy=function nm(Y,_e){return Ug(Y,qd(Rs(_e)))},ii.once=function _g(Y){return Xu(2,Y)},ii.orderBy=function mf(Y,_e,ut,dn){return null==Y?[]:(wa(_e)||(_e=null==_e?[]:[_e]),wa(ut=dn?l:ut)||(ut=null==ut?[]:[ut]),Ta(Y,_e,ut))},ii.over=fm,ii.overArgs=xu,ii.overEvery=vm,ii.overSome=Ru,ii.partial=Cg,ii.partialRight=jp,ii.partition=o_,ii.pick=im,ii.pickBy=Ug,ii.property=_m,ii.propertyOf=function Cm(Y){return function(_e){return null==Y?l:h(Y,_e)}},ii.pull=Ml,ii.pullAll=Qa,ii.pullAllBy=function Lc(Y,_e,ut){return Y&&Y.length&&_e&&_e.length?ga(Y,_e,Rs(ut,2)):Y},ii.pullAllWith=function Bu(Y,_e,ut){return Y&&Y.length&&_e&&_e.length?ga(Y,_e,l,ut):Y},ii.pullAt=Pu,ii.range=ov,ii.rangeRight=zh,ii.rearg=a_,ii.reject=function ff(Y,_e){return(wa(Y)?ds:Qs)(Y,qd(Rs(_e,3)))},ii.remove=function Gu(Y,_e){var ut=[];if(!Y||!Y.length)return ut;var dn=-1,jn=[],di=Y.length;for(_e=Rs(_e,3);++dn<di;){var Ni=Y[dn];_e(Ni,dn,Y)&&(ut.push(Ni),jn.push(dn))}return nl(Y,jn),ut},ii.rest=function wh(Y,_e){if("function"!=typeof Y)throw new Ri(y);return xs(Y,_e=_e===l?_e:Ma(_e))},ii.reverse=Dd,ii.sampleSize=function Ku(Y,_e,ut){return _e=(ut?Kl(Y,_e,ut):_e===l)?1:Ma(_e),(wa(Y)?ct:ll)(Y,_e)},ii.set=function Fc(Y,_e,ut){return null==Y?Y:dl(Y,_e,ut)},ii.setWith=function ad(Y,_e,ut,dn){return dn="function"==typeof dn?dn:l,null==Y?Y:dl(Y,_e,ut,dn)},ii.shuffle=function Fp(Y){return(wa(Y)?De:ml)(Y)},ii.slice=function Vu(Y,_e,ut){var dn=null==Y?0:Y.length;return dn?(ut&&"number"!=typeof ut&&Kl(Y,_e,ut)?(_e=0,ut=dn):(_e=null==_e?0:Ma(_e),ut=ut===l?dn:Ma(ut)),El(Y,_e,ut)):[]},ii.sortBy=s_,ii.sortedUniq=function Ou(Y){return Y&&Y.length?_c(Y):[]},ii.sortedUniqBy=function Ch(Y,_e){return Y&&Y.length?_c(Y,Rs(_e,2)):[]},ii.split=function Zf(Y,_e,ut){return ut&&"number"!=typeof ut&&Kl(Y,_e,ut)&&(_e=ut=l),(ut=ut===l?Se:ut>>>0)?(Y=ul(Y))&&("string"==typeof _e||null!=_e&&!Og(_e))&&!(_e=xl(_e))&&Ki(Y)?so(Ns(Y),0,ut):Y.split(_e,ut):[]},ii.spread=function bg(Y,_e){if("function"!=typeof Y)throw new Ri(y);return _e=null==_e?0:hs(Ma(_e),0),xs(function(ut){var dn=ut[_e],jn=so(ut,0,_e);return dn&&rs(jn,dn),cs(Y,this,jn)})},ii.tail=function bh(Y){var _e=null==Y?0:Y.length;return _e?El(Y,1,_e):[]},ii.take=function lg(Y,_e,ut){return Y&&Y.length?El(Y,0,(_e=ut||_e===l?1:Ma(_e))<0?0:_e):[]},ii.takeRight=function Sh(Y,_e,ut){var dn=null==Y?0:Y.length;return dn?El(Y,(_e=dn-(_e=ut||_e===l?1:Ma(_e)))<0?0:_e,dn):[]},ii.takeRightWhile=function ef(Y,_e){return Y&&Y.length?Ee(Y,Rs(_e,3),!1,!0):[]},ii.takeWhile=function tf(Y,_e){return Y&&Y.length?Ee(Y,Rs(_e,3)):[]},ii.tap=function t_(Y,_e){return _e(Y),Y},ii.throttle=function Cf(Y,_e,ut){var dn=!0,jn=!0;if("function"!=typeof Y)throw new Ri(y);return Hl(ut)&&(dn="leading"in ut?!!ut.leading:dn,jn="trailing"in ut?!!ut.trailing:jn),Zu(Y,_e,{leading:dn,maxWait:_e,trailing:jn})},ii.thru=Mh,ii.toArray=Tg,ii.toPairs=Bg,ii.toPairsIn=jf,ii.toPath=function $h(Y){return wa(Y)?$o(Y,zc):Nc(Y)?[Y]:zl(tg(ul(Y)))},ii.toPlainObject=Ig,ii.transform=function Wf(Y,_e,ut){var dn=wa(Y),jn=dn||Nd(Y)||iu(Y);if(_e=Rs(_e,4),null==ut){var di=Y&&Y.constructor;ut=jn?dn?new di:[]:Hl(Y)&&sd(di)?Sl(ns(Y)):{}}return(jn?Vo:Is)(Y,function(Ni,Yi,cr){return _e(ut,Ni,Yi,cr)}),ut},ii.unary=function Wp(Y){return Up(Y,1)},ii.union=nf,ii.unionBy=rf,ii.unionWith=Ip,ii.uniq=function qv(Y){return Y&&Y.length?ic(Y):[]},ii.uniqBy=function Ap(Y,_e){return Y&&Y.length?ic(Y,Rs(_e,2)):[]},ii.uniqWith=function sf(Y,_e){return _e="function"==typeof _e?_e:l,Y&&Y.length?ic(Y,l,_e):[]},ii.unset=function g_(Y,_e){return null==Y||vt(Y,_e)},ii.unzip=cg,ii.unzipWith=af,ii.update=function p_(Y,_e,ut){return null==Y?Y:en(Y,_e,vr(ut))},ii.updateWith=function rm(Y,_e,ut,dn){return dn="function"==typeof dn?dn:l,null==Y?Y:en(Y,_e,vr(ut),dn)},ii.values=ou,ii.valuesIn=function m_(Y){return null==Y?[]:Ct(Y,Mc(Y))},ii.without=lf,ii.words=zg,ii.wrap=function zp(Y,_e){return Cg(vr(_e),Y)},ii.xor=Rp,ii.xorBy=dg,ii.xorWith=e_,ii.zip=Ld,ii.zipObject=function Dp(Y,_e){return Zn(Y||[],_e||[],Ge)},ii.zipObjectDeep=function cf(Y,_e){return Zn(Y||[],_e||[],dl)},ii.zipWith=Lp,ii.entries=Bg,ii.entriesIn=jf,ii.extend=Jp,ii.extendWith=wu,$g(ii,ii),ii.add=Xg,ii.attempt=Vh,ii.camelCase=zf,ii.capitalize=su,ii.ceil=sv,ii.clamp=function Nh(Y,_e,ut){return ut===l&&(ut=_e,_e=l),ut!==l&&(ut=(ut=kc(ut))==ut?ut:0),_e!==l&&(_e=(_e=kc(_e))==_e?_e:0),Xi(kc(Y),_e,ut)},ii.clone=function bf(Y){return Ui(Y,4)},ii.cloneDeep=function yf(Y){return Ui(Y,5)},ii.cloneDeepWith=function Mf(Y,_e){return Ui(Y,5,_e="function"==typeof _e?_e:l)},ii.cloneWith=function Sf(Y,_e){return Ui(Y,4,_e="function"==typeof _e?_e:l)},ii.conformsTo=function Pf(Y,_e){return null==_e||xr(Y,_e,oc(_e))},ii.deburr=kh,ii.defaultTo=function hm(Y,_e){return null==Y||Y!=Y?_e:Y},ii.divide=av,ii.endsWith=function om(Y,_e,ut){Y=ul(Y),_e=xl(_e);var dn=Y.length,jn=ut=ut===l?dn:Xi(Ma(ut),0,dn);return(ut-=_e.length)>=0&&Y.slice(ut,jn)==_e},ii.eq=Ql,ii.escape=function Hg(Y){return(Y=ul(Y))&&be.test(Y)?Y.replace(Wt,Ir):Y},ii.escapeRegExp=function Fh(Y){return(Y=ul(Y))&&fi.test(Y)?Y.replace(On,"\\$&"):Y},ii.every=function Jd(Y,_e,ut){var dn=wa(Y)?Ba:os;return ut&&Kl(Y,_e,ut)&&(_e=l),dn(Y,Rs(_e,3))},ii.find=gg,ii.findIndex=it,ii.findKey=function Ff(Y,_e){return ks(Y,Rs(_e,3),Is)},ii.findLast=Hu,ii.findLastIndex=Ln,ii.findLastKey=function Uf(Y,_e){return ks(Y,Rs(_e,3),yl)},ii.floor=lv,ii.forEach=Eh,ii.forEachRight=ju,ii.forIn=function Bf(Y,_e){return null==Y?Y:Us(Y,Rs(_e,3),Mc)},ii.forInRight=function Gf(Y,_e){return null==Y?Y:Na(Y,Rs(_e,3),Mc)},ii.forOwn=function Vf(Y,_e){return Y&&Is(Y,Rs(_e,3))},ii.forOwnRight=function Rg(Y,_e){return Y&&yl(Y,Rs(_e,3))},ii.get=em,ii.gt=Tu,ii.gte=Of,ii.has=function Ng(Y,_e){return null!=Y&&hd(Y,_e,he)},ii.hasIn=Hf,ii.head=Nn,ii.identity=pc,ii.includes=function Wu(Y,_e,ut,dn){Y=yc(Y)?Y:ou(Y),ut=ut&&!dn?Ma(ut):0;var jn=Y.length;return ut<0&&(ut=hs(jn+ut,0)),Ah(Y)?ut<=jn&&Y.indexOf(_e,ut)>-1:!!jn&&ts(Y,_e,ut)>-1},ii.indexOf=function _i(Y,_e,ut){var dn=null==Y?0:Y.length;if(!dn)return-1;var jn=null==ut?0:Ma(ut);return jn<0&&(jn=hs(dn+jn,0)),ts(Y,_e,jn)},ii.inRange=function Gg(Y,_e,ut){return _e=Cd(_e),ut===l?(ut=_e,_e=0):ut=Cd(ut),function ze(Y,_e,ut){return Y>=Jo(_e,ut)&&Y<hs(_e,ut)}(Y=kc(Y),_e,ut)},ii.invoke=h_,ii.isArguments=tu,ii.isArray=wa,ii.isArrayBuffer=Ef,ii.isArrayLike=yc,ii.isArrayLikeObject=Yl,ii.isBoolean=function $p(Y){return!0===Y||!1===Y||$l(Y)&&k(Y)==A},ii.isBuffer=Nd,ii.isDate=xf,ii.isElement=function Tf(Y){return $l(Y)&&1===Y.nodeType&&!qu(Y)},ii.isEmpty=function wf(Y){if(null==Y)return!0;if(yc(Y)&&(wa(Y)||"string"==typeof Y||"function"==typeof Y.splice||Nd(Y)||iu(Y)||tu(Y)))return!Y.length;var _e=Gl(Y);if(_e==le||_e==Ze)return!Y.size;if(md(Y))return!Ar(Y).length;for(var ut in Y)if(rn.call(Y,ut))return!1;return!0},ii.isEqual=function Sg(Y,_e){return kn(Y,_e)},ii.isEqualWith=function _d(Y,_e,ut){var dn=(ut="function"==typeof ut?ut:l)?ut(Y,_e):l;return dn===l?kn(Y,_e,l,ut):!!dn},ii.isError=nu,ii.isFinite=function Kp(Y){return"number"==typeof Y&&Ro(Y)},ii.isFunction=sd,ii.isInteger=yg,ii.isLength=Mg,ii.isMap=Ih,ii.isMatch=function Pg(Y,_e){return Y===_e||li(Y,_e,Eo(_e))},ii.isMatchWith=function l_(Y,_e,ut){return ut="function"==typeof ut?ut:l,li(Y,_e,Eo(_e),ut)},ii.isNaN=function c_(Y){return Rf(Y)&&Y!=+Y},ii.isNative=function Yp(Y){if(Fu(Y))throw new Ft("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return wi(Y)},ii.isNil=function Af(Y){return null==Y},ii.isNull=function If(Y){return null===Y},ii.isNumber=Rf,ii.isObject=Hl,ii.isObjectLike=$l,ii.isPlainObject=qu,ii.isRegExp=Og,ii.isSafeInteger=function Xp(Y){return yg(Y)&&Y>=-ue&&Y<=ue},ii.isSet=Eg,ii.isString=Ah,ii.isSymbol=Nc,ii.isTypedArray=iu,ii.isUndefined=function Rh(Y){return Y===l},ii.isWeakMap=function Qp(Y){return $l(Y)&&Gl(Y)==Ot},ii.isWeakSet=function xg(Y){return $l(Y)&&"[object WeakSet]"==k(Y)},ii.join=function aa(Y,_e){return null==Y?"":Gs.call(Y,_e)},ii.kebabCase=$f,ii.last=ko,ii.lastIndexOf=function Aa(Y,_e,ut){var dn=null==Y?0:Y.length;if(!dn)return-1;var jn=dn;return ut!==l&&(jn=(jn=Ma(ut))<0?hs(dn+jn,0):Jo(jn,dn-1)),_e==_e?function Ei(zi,mr,lr){for(var je=lr+1;je--;)if(zi[je]===mr)return je;return je}(Y,_e,jn):ea(Y,va,jn,!0)},ii.lowerCase=Kf,ii.lowerFirst=sm,ii.lt=Df,ii.lte=ru,ii.max=function ym(Y){return Y&&Y.length?Es(Y,pc,ee):l},ii.maxBy=function cv(Y,_e){return Y&&Y.length?Es(Y,Rs(_e,2),ee):l},ii.mean=function dv(Y){return Mn(Y,pc)},ii.meanBy=function v_(Y,_e){return Mn(Y,Rs(_e,2))},ii.min=function uv(Y){return Y&&Y.length?Es(Y,pc,Br):l},ii.minBy=function Mm(Y,_e){return Y&&Y.length?Es(Y,Rs(_e,2),Br):l},ii.stubArray=kd,ii.stubFalse=rh,ii.stubObject=function oh(){return{}},ii.stubString=function bm(){return""},ii.stubTrue=function Kg(){return!0},ii.multiply=Pm,ii.nth=function Ra(Y,_e){return Y&&Y.length?_s(Y,Ma(_e)):l},ii.noConflict=function mm(){return fs._===this&&(fs._=ei),this},ii.noop=Wh,ii.now=vg,ii.pad=function Yf(Y,_e,ut){Y=ul(Y);var dn=(_e=Ma(_e))?Ls(Y):0;if(!_e||dn>=_e)return Y;var jn=(_e-dn)/2;return Xc(vs(jn),ut)+Y+Xc(uo(jn),ut)},ii.padEnd=function Xf(Y,_e,ut){Y=ul(Y);var dn=(_e=Ma(_e))?Ls(Y):0;return _e&&dn<_e?Y+Xc(_e-dn,ut):Y},ii.padStart=function Qf(Y,_e,ut){Y=ul(Y);var dn=(_e=Ma(_e))?Ls(Y):0;return _e&&dn<_e?Xc(_e-dn,ut)+Y:Y},ii.parseInt=function am(Y,_e,ut){return ut||null==_e?_e=0:_e&&(_e=+_e),No(ul(Y).replace(Ji,""),_e||0)},ii.random=function Vg(Y,_e,ut){if(ut&&"boolean"!=typeof ut&&Kl(Y,_e,ut)&&(_e=ut=l),ut===l&&("boolean"==typeof _e?(ut=_e,_e=l):"boolean"==typeof Y&&(ut=Y,Y=l)),Y===l&&_e===l?(Y=0,_e=1):(Y=Cd(Y),_e===l?(_e=Y,Y=0):_e=Cd(_e)),Y>_e){var dn=Y;Y=_e,_e=dn}if(ut||Y%1||_e%1){var jn=Vs();return Jo(Y+jn*(_e-Y+ka("1e-"+((jn+"").length-1))),_e)}return ua(Y,_e)},ii.reduce=function mg(Y,_e,ut){var dn=wa(Y)?oa:In,jn=arguments.length<3;return dn(Y,Rs(_e,4),ut,jn,co)},ii.reduceRight=function kp(Y,_e,ut){var dn=wa(Y)?Yo:In,jn=arguments.length<3;return dn(Y,Rs(_e,4),ut,jn,Bo)},ii.repeat=function th(Y,_e,ut){return _e=(ut?Kl(Y,_e,ut):_e===l)?1:Ma(_e),Xl(ul(Y),_e)},ii.replace=function Uh(){var Y=arguments,_e=ul(Y[0]);return Y.length<3?_e:_e.replace(Y[1],Y[2])},ii.result=function Iu(Y,_e,ut){var dn=-1,jn=(_e=hr(_e,Y)).length;for(jn||(jn=1,Y=l);++dn<jn;){var di=null==Y?l:Y[zc(_e[dn])];di===l&&(dn=jn,di=ut),Y=sd(di)?di.call(Y):di}return Y},ii.round=hv,ii.runInContext=zi,ii.sample=function vf(Y){return(wa(Y)?on:qa)(Y)},ii.size=function fg(Y){if(null==Y)return 0;if(yc(Y))return Ah(Y)?Ls(Y):Y.length;var _e=Gl(Y);return _e==le||_e==Ze?Y.size:Ar(Y).length},ii.snakeCase=jg,ii.some=function _f(Y,_e,ut){var dn=wa(Y)?Bs:vc;return ut&&Kl(Y,_e,ut)&&(_e=l),dn(Y,Rs(_e,3))},ii.sortedIndex=function og(Y,_e){return Zl(Y,_e)},ii.sortedIndexBy=function sg(Y,_e,ut){return bc(Y,_e,Rs(ut,2))},ii.sortedIndexOf=function ag(Y,_e){var ut=null==Y?0:Y.length;if(ut){var dn=Zl(Y,_e);if(dn<ut&&Ql(Y[dn],_e))return dn}return-1},ii.sortedLastIndex=function fh(Y,_e){return Zl(Y,_e,!0)},ii.sortedLastIndexBy=function vh(Y,_e,ut){return bc(Y,_e,Rs(ut,2),!0)},ii.sortedLastIndexOf=function _h(Y,_e){if(null!=Y&&Y.length){var dn=Zl(Y,_e,!0)-1;if(Ql(Y[dn],_e))return dn}return-1},ii.startCase=Jf,ii.startsWith=function Wg(Y,_e,ut){return Y=ul(Y),ut=null==ut?0:Xi(Ma(ut),0,Y.length),_e=xl(_e),Y.slice(ut,ut+_e.length)==_e},ii.subtract=gv,ii.sum=function Pc(Y){return Y&&Y.length?So(Y,pc):0},ii.sumBy=function pv(Y,_e){return Y&&Y.length?So(Y,Rs(_e,2)):0},ii.template=function qf(Y,_e,ut){var dn=ii.templateSettings;ut&&Kl(Y,_e,ut)&&(_e=l),Y=ul(Y),_e=wu({},_e,dn,zd);var Yi,cr,jn=wu({},_e.imports,dn.imports,zd),di=oc(jn),Ni=Ct(jn,di),Qr=0,Kr=_e.interpolate||An,ro="__p += '",Wo=vi((_e.escape||An).source+"|"+Kr.source+"|"+(Kr===Lt?Ii:An).source+"|"+(_e.evaluate||An).source+"|$","g"),ps="//# sourceURL="+(rn.call(_e,"sourceURL")?(_e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Qo+"]")+"\n";Y.replace(Wo,function(bs,Fa,Za,Uc,mc,Oc){return Za||(Za=Uc),ro+=Y.slice(Qr,Oc).replace(Jn,Cr),Fa&&(Yi=!0,ro+="' +\n__e("+Fa+") +\n'"),mc&&(cr=!0,ro+="';\n"+mc+";\n__p += '"),Za&&(ro+="' +\n((__t = ("+Za+")) == null ? '' : __t) +\n'"),Qr=Oc+bs.length,bs}),ro+="';\n";var Ys=rn.call(_e,"variable")&&_e.variable;if(Ys){if(gn.test(Ys))throw new Ft("Invalid `variable` option passed into `_.template`")}else ro="with (obj) {\n"+ro+"\n}\n";ro=(cr?ro.replace(et,""):ro).replace(St,"$1").replace(Gt,"$1;"),ro="function("+(Ys||"obj")+") {\n"+(Ys?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(Yi?", __e = _.escape":"")+(cr?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+ro+"return __p\n}";var Da=Vh(function(){return un(di,ps+"return "+ro).apply(l,Ni)});if(Da.source=ro,nu(Da))throw Da;return Da},ii.times=function Yg(Y,_e){if((Y=Ma(Y))<1||Y>ue)return[];var ut=Se,dn=Jo(Y,Se);_e=Rs(_e),Y-=Se;for(var jn=Rn(dn,_e);++ut<Y;)_e(ut);return jn},ii.toFinite=Cd,ii.toInteger=Ma,ii.toLength=wg,ii.toLower=function au(Y){return ul(Y).toLowerCase()},ii.toNumber=kc,ii.toSafeInteger=function Zp(Y){return Y?Xi(Ma(Y),-ue,ue):0===Y?Y:0},ii.toString=ul,ii.toUpper=function lm(Y){return ul(Y).toUpperCase()},ii.trim=function cm(Y,_e,ut){if((Y=ul(Y))&&(ut||_e===l))return ae(Y);if(!Y||!(_e=xl(_e)))return Y;var dn=Ns(Y),jn=Ns(_e);return so(dn,Gi(dn,jn),Sr(dn,jn)+1).join("")},ii.trimEnd=function ev(Y,_e,ut){if((Y=ul(Y))&&(ut||_e===l))return Y.slice(0,Ps(Y)+1);if(!Y||!(_e=xl(_e)))return Y;var dn=Ns(Y);return so(dn,0,Sr(dn,Ns(_e))+1).join("")},ii.trimStart=function f_(Y,_e,ut){if((Y=ul(Y))&&(ut||_e===l))return Y.replace(Ji,"");if(!Y||!(_e=xl(_e)))return Y;var dn=Ns(Y);return so(dn,Gi(dn,Ns(_e))).join("")},ii.truncate=function Bh(Y,_e){var ut=30,dn="...";if(Hl(_e)){var jn="separator"in _e?_e.separator:jn;ut="length"in _e?Ma(_e.length):ut,dn="omission"in _e?xl(_e.omission):dn}var di=(Y=ul(Y)).length;if(Ki(Y)){var Ni=Ns(Y);di=Ni.length}if(ut>=di)return Y;var Yi=ut-Ls(dn);if(Yi<1)return dn;var cr=Ni?so(Ni,0,Yi).join(""):Y.slice(0,Yi);if(jn===l)return cr+dn;if(Ni&&(Yi+=cr.length-Yi),Og(jn)){if(Y.slice(Yi).search(jn)){var Qr,Kr=cr;for(jn.global||(jn=vi(jn.source,ul(pr.exec(jn))+"g")),jn.lastIndex=0;Qr=jn.exec(Kr);)var ro=Qr.index;cr=cr.slice(0,ro===l?Yi:ro)}}else if(Y.indexOf(xl(jn),Yi)!=Yi){var Wo=cr.lastIndexOf(jn);Wo>-1&&(cr=cr.slice(0,Wo))}return cr+dn},ii.unescape=function tv(Y){return(Y=ul(Y))&&ke.test(Y)?Y.replace(yt,ja):Y},ii.uniqueId=function Sm(Y){var _e=++Di;return ul(Y)+_e},ii.upperCase=dm,ii.upperFirst=Gh,ii.each=Eh,ii.eachRight=ju,ii.first=Nn,$g(ii,function(){var Y={};return Is(ii,function(_e,ut){rn.call(ii.prototype,ut)||(Y[ut]=_e)}),Y}(),{chain:!1}),ii.VERSION="4.17.21",Vo(["bind","bindKey","curry","curryRight","partial","partialRight"],function(Y){ii[Y].placeholder=ii}),Vo(["drop","take"],function(Y,_e){ki.prototype[Y]=function(ut){ut=ut===l?1:hs(Ma(ut),0);var dn=this.__filtered__&&!_e?new ki(this):this.clone();return dn.__filtered__?dn.__takeCount__=Jo(ut,dn.__takeCount__):dn.__views__.push({size:Jo(ut,Se),type:Y+(dn.__dir__<0?"Right":"")}),dn},ki.prototype[Y+"Right"]=function(ut){return this.reverse()[Y](ut).reverse()}}),Vo(["filter","map","takeWhile"],function(Y,_e){var ut=_e+1,dn=1==ut||3==ut;ki.prototype[Y]=function(jn){var di=this.clone();return di.__iteratees__.push({iteratee:Rs(jn,3),type:ut}),di.__filtered__=di.__filtered__||dn,di}}),Vo(["head","last"],function(Y,_e){var ut="take"+(_e?"Right":"");ki.prototype[Y]=function(){return this[ut](1).value()[0]}}),Vo(["initial","tail"],function(Y,_e){var ut="drop"+(_e?"":"Right");ki.prototype[Y]=function(){return this.__filtered__?new ki(this):this[ut](1)}}),ki.prototype.compact=function(){return this.filter(pc)},ki.prototype.find=function(Y){return this.filter(Y).head()},ki.prototype.findLast=function(Y){return this.reverse().find(Y)},ki.prototype.invokeMap=xs(function(Y,_e){return"function"==typeof Y?new ki(this):this.map(function(ut){return $t(ut,Y,_e)})}),ki.prototype.reject=function(Y){return this.filter(qd(Rs(Y)))},ki.prototype.slice=function(Y,_e){Y=Ma(Y);var ut=this;return ut.__filtered__&&(Y>0||_e<0)?new ki(ut):(Y<0?ut=ut.takeRight(-Y):Y&&(ut=ut.drop(Y)),_e!==l&&(ut=(_e=Ma(_e))<0?ut.dropRight(-_e):ut.take(_e-Y)),ut)},ki.prototype.takeRightWhile=function(Y){return this.reverse().takeWhile(Y).reverse()},ki.prototype.toArray=function(){return this.take(Se)},Is(ki.prototype,function(Y,_e){var ut=/^(?:filter|find|map|reject)|While$/.test(_e),dn=/^(?:head|last)$/.test(_e),jn=ii[dn?"take"+("last"==_e?"Right":""):_e],di=dn||/^find/.test(_e);jn&&(ii.prototype[_e]=function(){var Ni=this.__wrapped__,Yi=dn?[1]:arguments,cr=Ni instanceof ki,Qr=Yi[0],Kr=cr||wa(Ni),ro=function(Fa){var Za=jn.apply(ii,rs([Fa],Yi));return dn&&Wo?Za[0]:Za};Kr&&ut&&"function"==typeof Qr&&1!=Qr.length&&(cr=Kr=!1);var Wo=this.__chain__,Ys=di&&!Wo,Da=cr&&!this.__actions__.length;if(!di&&Kr){Ni=Da?Ni:new ki(this);var bs=Y.apply(Ni,Yi);return bs.__actions__.push({func:Mh,args:[ro],thisArg:l}),new Oi(bs,Wo)}return Ys&&Da?Y.apply(this,Yi):(bs=this.thru(ro),Ys?dn?bs.value()[0]:bs.value():bs)})}),Vo(["pop","push","shift","sort","splice","unshift"],function(Y){var _e=nr[Y],ut=/^(?:push|sort|unshift)$/.test(Y)?"tap":"thru",dn=/^(?:pop|shift)$/.test(Y);ii.prototype[Y]=function(){var jn=arguments;if(dn&&!this.__chain__){var di=this.value();return _e.apply(wa(di)?di:[],jn)}return this[ut](function(Ni){return _e.apply(wa(Ni)?Ni:[],jn)})}}),Is(ki.prototype,function(Y,_e){var ut=ii[_e];if(ut){var dn=ut.name+"";rn.call(Xa,dn)||(Xa[dn]=[]),Xa[dn].push({name:_e,func:ut})}}),Xa[kl(l,2).name]=[{name:"wrapper",func:l}],ki.prototype.clone=function Or(){var Y=new ki(this.__wrapped__);return Y.__actions__=zl(this.__actions__),Y.__dir__=this.__dir__,Y.__filtered__=this.__filtered__,Y.__iteratees__=zl(this.__iteratees__),Y.__takeCount__=this.__takeCount__,Y.__views__=zl(this.__views__),Y},ki.prototype.reverse=function is(){if(this.__filtered__){var Y=new ki(this);Y.__dir__=-1,Y.__filtered__=!0}else(Y=this.clone()).__dir__*=-1;return Y},ki.prototype.value=function Os(){var Y=this.__wrapped__.value(),_e=this.__dir__,ut=wa(Y),dn=_e<0,jn=ut?Y.length:0,di=function ku(Y,_e,ut){for(var dn=-1,jn=ut.length;++dn<jn;){var di=ut[dn],Ni=di.size;switch(di.type){case"drop":Y+=Ni;break;case"dropRight":_e-=Ni;break;case"take":_e=Jo(_e,Y+Ni);break;case"takeRight":Y=hs(Y,_e-Ni)}}return{start:Y,end:_e}}(0,jn,this.__views__),Ni=di.start,Yi=di.end,cr=Yi-Ni,Qr=dn?Yi:Ni-1,Kr=this.__iteratees__,ro=Kr.length,Wo=0,ps=Jo(cr,this.__takeCount__);if(!ut||!dn&&jn==cr&&ps==cr)return kt(Y,this.__actions__);var Ys=[];e:for(;cr--&&Wo<ps;){for(var Da=-1,bs=Y[Qr+=_e];++Da<ro;){var Fa=Kr[Da],Uc=Fa.type,mc=(0,Fa.iteratee)(bs);if(2==Uc)bs=mc;else if(!mc){if(1==Uc)continue e;break e}}Ys[Wo++]=bs}return Ys},ii.prototype.at=df,ii.prototype.chain=function uf(){return yh(this)},ii.prototype.commit=function hf(){return new Oi(this.value(),this.__chain__)},ii.prototype.next=function n_(){this.__values__===l&&(this.__values__=Tg(this.value()));var Y=this.__index__>=this.__values__.length;return{done:Y,value:Y?l:this.__values__[this.__index__++]}},ii.prototype.plant=function Ph(Y){for(var _e,ut=this;ut instanceof oi;){var dn=Zc(ut);dn.__index__=0,dn.__values__=l,_e?jn.__wrapped__=dn:_e=dn;var jn=dn;ut=ut.__wrapped__}return jn.__wrapped__=Y,_e},ii.prototype.reverse=function gf(){var Y=this.__wrapped__;if(Y instanceof ki){var _e=Y;return this.__actions__.length&&(_e=new ki(this)),(_e=_e.reverse()).__actions__.push({func:Mh,args:[Dd],thisArg:l}),new Oi(_e,this.__chain__)}return this.thru(Dd)},ii.prototype.toJSON=ii.prototype.valueOf=ii.prototype.value=function ug(){return kt(this.__wrapped__,this.__actions__)},ii.prototype.first=ii.prototype.head,Dn&&(ii.prototype[Dn]=function i_(){return this}),ii}();fs._=na,(n=function(){return na}.call(z,s,z,Bt))!==l&&(Bt.exports=n)}.call(this)},80062:Bt=>{Bt.exports=function z(s,n,l){function d(y,f){if(!n[y]){if(!s[y]){if(v)return v(y,!0);throw new Error("Cannot find module '"+y+"'")}var P=n[y]={exports:{}};s[y][0].call(P.exports,function(_){return d(s[y][1][_]||_)},P,P.exports,z,s,n,l)}return n[y].exports}for(var v=void 0,S=0;S<l.length;S++)d(l[S]);return d}({1:[function(z,s,n){(function(l,d,v,S,y,f,O,P,_){"use strict";var i=z("crypto");function r(U,V){return function(T,N){var L;if(void 0===(L="passthrough"!==N.algorithm?i.createHash(N.algorithm):new I).write&&(L.write=L.update,L.end=L.update),D(N,L).dispatch(T),L.update||L.end(""),L.digest)return L.digest("buffer"===N.encoding?void 0:N.encoding);var E=L.read();return"buffer"!==N.encoding?E.toString(N.encoding):E}(U,V=m(U,V))}(n=s.exports=r).sha1=function(U){return r(U)},n.keys=function(U){return r(U,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},n.MD5=function(U){return r(U,{algorithm:"md5",encoding:"hex"})},n.keysMD5=function(U){return r(U,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var a=i.getHashes?i.getHashes().slice():["sha1","md5"];a.push("passthrough");var c=["buffer","hex","binary","base64"];function m(U,V){var T={};if(T.algorithm=(V=V||{}).algorithm||"sha1",T.encoding=V.encoding||"hex",T.excludeValues=!!V.excludeValues,T.algorithm=T.algorithm.toLowerCase(),T.encoding=T.encoding.toLowerCase(),T.ignoreUnknown=!0===V.ignoreUnknown,T.respectType=!1!==V.respectType,T.respectFunctionNames=!1!==V.respectFunctionNames,T.respectFunctionProperties=!1!==V.respectFunctionProperties,T.unorderedArrays=!0===V.unorderedArrays,T.unorderedSets=!1!==V.unorderedSets,T.unorderedObjects=!1!==V.unorderedObjects,T.replacer=V.replacer||void 0,T.excludeKeys=V.excludeKeys||void 0,void 0===U)throw new Error("Object argument required.");for(var N=0;N<a.length;++N)a[N].toLowerCase()===T.algorithm.toLowerCase()&&(T.algorithm=a[N]);if(-1===a.indexOf(T.algorithm))throw new Error('Algorithm "'+T.algorithm+'" not supported. supported values: '+a.join(", "));if(-1===c.indexOf(T.encoding)&&"passthrough"!==T.algorithm)throw new Error('Encoding "'+T.encoding+'" not supported. supported values: '+c.join(", "));return T}function M(U){if("function"==typeof U)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(U))}function D(U,V,T){function N(L){return V.update?V.update(L,"utf8"):V.write(L,"utf8")}return T=T||[],{dispatch:function(L){U.replacer&&(L=U.replacer(L));var E=typeof L;return null===L&&(E="null"),this["_"+E](L)},_object:function(L){var R,E=Object.prototype.toString.call(L),g=/\[object (.*)\]/i.exec(E);if(g=(g=g?g[1]:"unknown:["+E+"]").toLowerCase(),0<=(R=T.indexOf(L)))return this.dispatch("[CIRCULAR:"+R+"]");if(T.push(L),void 0!==v&&v.isBuffer&&v.isBuffer(L))return N("buffer:"),N(L);if("object"===g||"function"===g||"asyncfunction"===g){var B=Object.keys(L);U.unorderedObjects&&(B=B.sort()),!1===U.respectType||M(L)||B.splice(0,0,"prototype","__proto__","constructor"),U.excludeKeys&&(B=B.filter(function(H){return!U.excludeKeys(H)})),N("object:"+B.length+":");var X=this;return B.forEach(function(H){X.dispatch(H),N(":"),U.excludeValues||X.dispatch(L[H]),N(",")})}if(!this["_"+g]){if(U.ignoreUnknown)return N("["+g+"]");throw new Error('Unknown object type "'+g+'"')}this["_"+g](L)},_array:function(L,E){E=void 0!==E?E:!1!==U.unorderedArrays;var g=this;if(N("array:"+L.length+":"),!E||L.length<=1)return L.forEach(function(X){return g.dispatch(X)});var R=[],B=L.map(function(X){var H=new I,J=T.slice();return D(U,H,J).dispatch(X),R=R.concat(J.slice(T.length)),H.read().toString()});return T=T.concat(R),B.sort(),this._array(B,!1)},_date:function(L){return N("date:"+L.toJSON())},_symbol:function(L){return N("symbol:"+L.toString())},_error:function(L){return N("error:"+L.toString())},_boolean:function(L){return N("bool:"+L.toString())},_string:function(L){N("string:"+L.length+":"),N(L.toString())},_function:function(L){N("fn:"),M(L)?this.dispatch("[native]"):this.dispatch(L.toString()),!1!==U.respectFunctionNames&&this.dispatch("function-name:"+String(L.name)),U.respectFunctionProperties&&this._object(L)},_number:function(L){return N("number:"+L.toString())},_xml:function(L){return N("xml:"+L.toString())},_null:function(){return N("Null")},_undefined:function(){return N("Undefined")},_regexp:function(L){return N("regex:"+L.toString())},_uint8array:function(L){return N("uint8array:"),this.dispatch(Array.prototype.slice.call(L))},_uint8clampedarray:function(L){return N("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(L))},_int8array:function(L){return N("uint8array:"),this.dispatch(Array.prototype.slice.call(L))},_uint16array:function(L){return N("uint16array:"),this.dispatch(Array.prototype.slice.call(L))},_int16array:function(L){return N("uint16array:"),this.dispatch(Array.prototype.slice.call(L))},_uint32array:function(L){return N("uint32array:"),this.dispatch(Array.prototype.slice.call(L))},_int32array:function(L){return N("uint32array:"),this.dispatch(Array.prototype.slice.call(L))},_float32array:function(L){return N("float32array:"),this.dispatch(Array.prototype.slice.call(L))},_float64array:function(L){return N("float64array:"),this.dispatch(Array.prototype.slice.call(L))},_arraybuffer:function(L){return N("arraybuffer:"),this.dispatch(new Uint8Array(L))},_url:function(L){return N("url:"+L.toString())},_map:function(L){N("map:");var E=Array.from(L);return this._array(E,!1!==U.unorderedSets)},_set:function(L){N("set:");var E=Array.from(L);return this._array(E,!1!==U.unorderedSets)},_blob:function(){if(U.ignoreUnknown)return N("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return N("domwindow")},_process:function(){return N("process")},_timer:function(){return N("timer")},_pipe:function(){return N("pipe")},_tcp:function(){return N("tcp")},_udp:function(){return N("udp")},_tty:function(){return N("tty")},_statwatcher:function(){return N("statwatcher")},_securecontext:function(){return N("securecontext")},_connection:function(){return N("connection")},_zlib:function(){return N("zlib")},_context:function(){return N("context")},_nodescript:function(){return N("nodescript")},_httpparser:function(){return N("httpparser")},_dataview:function(){return N("dataview")},_signal:function(){return N("signal")},_fsevent:function(){return N("fsevent")},_tlswrap:function(){return N("tlswrap")}}}function I(){return{buf:"",write:function(U){this.buf+=U},end:function(U){this.buf+=U},read:function(){return this.buf}}}n.writeToStream=function(U,V,T){return void 0===T&&(T=V,V={}),D(V=m(U,V),T).dispatch(U)}}).call(this,z("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},z("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_794fcf4d.js","/")},{buffer:3,crypto:5,lYpoI2:10}],2:[function(z,s,n){(function(l,d,v,S,y,f,O,P,_){!function(i){"use strict";var r=typeof Uint8Array<"u"?Uint8Array:Array;function V(T){var N=T.charCodeAt(0);return 43===N||45===N?62:47===N||95===N?63:N<48?-1:N<58?N-48+26+26:N<91?N-65:N<123?N-97+26:void 0}i.toByteArray=function(T){var N,L,E,g,R;if(0<T.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var B=T.length;g="="===T.charAt(B-2)?2:"="===T.charAt(B-1)?1:0,R=new r(3*T.length/4-g),L=0<g?T.length-4:T.length;var X=0;function H(J){R[X++]=J}for(N=0;N<L;N+=4,0)H((16711680&(E=V(T.charAt(N))<<18|V(T.charAt(N+1))<<12|V(T.charAt(N+2))<<6|V(T.charAt(N+3))))>>16),H((65280&E)>>8),H(255&E);return 2==g?H(255&(E=V(T.charAt(N))<<2|V(T.charAt(N+1))>>4)):1==g&&(H((E=V(T.charAt(N))<<10|V(T.charAt(N+1))<<4|V(T.charAt(N+2))>>2)>>8&255),H(255&E)),R},i.fromByteArray=function(T){var N,L,E,g,R=T.length%3,B="";function X(H){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(H)}for(N=0,E=T.length-R;N<E;N+=3)B+=X((g=L=(T[N]<<16)+(T[N+1]<<8)+T[N+2])>>18&63)+X(g>>12&63)+X(g>>6&63)+X(63&g);switch(R){case 1:B+=X((L=T[T.length-1])>>2),B+=X(L<<4&63),B+="==";break;case 2:B+=X((L=(T[T.length-2]<<8)+T[T.length-1])>>10),B+=X(L>>4&63),B+=X(L<<2&63),B+="="}return B}}(void 0===n?this.base64js={}:n)}).call(this,z("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},z("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(z,s,n){(function(l,d,a,S,y,f,O,P,_){var i=z("base64-js"),r=z("ieee754");function a(Me,Q,A){if(!(this instanceof a))return new a(Me,Q,A);var me,ne,G,W,$,le=typeof Me;if("base64"===Q&&"string"==le)for(Me=(me=Me).trim?me.trim():me.replace(/^\s+|\s+$/g,"");Me.length%4!=0;)Me+="=";if("number"==le)ne=re(Me);else if("string"==le)ne=a.byteLength(Me,Q);else{if("object"!=le)throw new Error("First argument needs to be a number, array or string.");ne=re(Me.length)}if(a._useTypedArrays?G=a._augment(new Uint8Array(ne)):((G=this).length=ne,G._isBuffer=!0),a._useTypedArrays&&"number"==typeof Me.byteLength)G._set(Me);else if(ie($=Me)||a.isBuffer($)||$&&"object"==typeof $&&"number"==typeof $.length)for(W=0;W<ne;W++)G[W]=a.isBuffer(Me)?Me.readUInt8(W):Me[W];else if("string"==le)G.write(Me,0,Q);else if("number"==le&&!a._useTypedArrays&&!A)for(W=0;W<ne;W++)G[W]=0;return G}function D(Me,Q,A,me){me||(He("boolean"==typeof A,"missing or invalid endian"),He(null!=Q,"missing offset"),He(Q+1<Me.length,"Trying to read beyond buffer length"));var ne,G=Me.length;if(!(G<=Q))return A?(ne=Me[Q],Q+1<G&&(ne|=Me[Q+1]<<8)):(ne=Me[Q]<<8,Q+1<G&&(ne|=Me[Q+1])),ne}function I(Me,Q,A,me){me||(He("boolean"==typeof A,"missing or invalid endian"),He(null!=Q,"missing offset"),He(Q+3<Me.length,"Trying to read beyond buffer length"));var ne,G=Me.length;if(!(G<=Q))return A?(Q+2<G&&(ne=Me[Q+2]<<16),Q+1<G&&(ne|=Me[Q+1]<<8),ne|=Me[Q],Q+3<G&&(ne+=Me[Q+3]<<24>>>0)):(Q+1<G&&(ne=Me[Q+1]<<16),Q+2<G&&(ne|=Me[Q+2]<<8),Q+3<G&&(ne|=Me[Q+3]),ne+=Me[Q]<<24>>>0),ne}function U(Me,Q,A,me){if(me||(He("boolean"==typeof A,"missing or invalid endian"),He(null!=Q,"missing offset"),He(Q+1<Me.length,"Trying to read beyond buffer length")),!(Me.length<=Q)){var ne=D(Me,Q,A,!0);return 32768&ne?-1*(65535-ne+1):ne}}function V(Me,Q,A,me){if(me||(He("boolean"==typeof A,"missing or invalid endian"),He(null!=Q,"missing offset"),He(Q+3<Me.length,"Trying to read beyond buffer length")),!(Me.length<=Q)){var ne=I(Me,Q,A,!0);return 2147483648&ne?-1*(4294967295-ne+1):ne}}function T(Me,Q,A,me){return me||(He("boolean"==typeof A,"missing or invalid endian"),He(Q+3<Me.length,"Trying to read beyond buffer length")),r.read(Me,Q,A,23,4)}function N(Me,Q,A,me){return me||(He("boolean"==typeof A,"missing or invalid endian"),He(Q+7<Me.length,"Trying to read beyond buffer length")),r.read(Me,Q,A,52,8)}function L(Me,Q,A,me,ne){ne||(He(null!=Q,"missing value"),He("boolean"==typeof me,"missing or invalid endian"),He(null!=A,"missing offset"),He(A+1<Me.length,"trying to write beyond buffer length"),Ce(Q,65535));var G=Me.length;if(!(G<=A))for(var W=0,$=Math.min(G-A,2);W<$;W++)Me[A+W]=(Q&255<<8*(me?W:1-W))>>>8*(me?W:1-W)}function E(Me,Q,A,me,ne){ne||(He(null!=Q,"missing value"),He("boolean"==typeof me,"missing or invalid endian"),He(null!=A,"missing offset"),He(A+3<Me.length,"trying to write beyond buffer length"),Ce(Q,4294967295));var G=Me.length;if(!(G<=A))for(var W=0,$=Math.min(G-A,4);W<$;W++)Me[A+W]=Q>>>8*(me?W:3-W)&255}function g(Me,Q,A,me,ne){ne||(He(null!=Q,"missing value"),He("boolean"==typeof me,"missing or invalid endian"),He(null!=A,"missing offset"),He(A+1<Me.length,"Trying to write beyond buffer length"),Be(Q,32767,-32768)),Me.length<=A||L(Me,0<=Q?Q:65535+Q+1,A,me,ne)}function R(Me,Q,A,me,ne){ne||(He(null!=Q,"missing value"),He("boolean"==typeof me,"missing or invalid endian"),He(null!=A,"missing offset"),He(A+3<Me.length,"Trying to write beyond buffer length"),Be(Q,2147483647,-2147483648)),Me.length<=A||E(Me,0<=Q?Q:4294967295+Q+1,A,me,ne)}function B(Me,Q,A,me,ne){ne||(He(null!=Q,"missing value"),He("boolean"==typeof me,"missing or invalid endian"),He(null!=A,"missing offset"),He(A+3<Me.length,"Trying to write beyond buffer length"),Xe(Q,34028234663852886e22,-34028234663852886e22)),Me.length<=A||r.write(Me,Q,A,me,23,4)}function X(Me,Q,A,me,ne){ne||(He(null!=Q,"missing value"),He("boolean"==typeof me,"missing or invalid endian"),He(null!=A,"missing offset"),He(A+7<Me.length,"Trying to write beyond buffer length"),Xe(Q,17976931348623157e292,-17976931348623157e292)),Me.length<=A||r.write(Me,Q,A,me,52,8)}n.Buffer=a,n.SlowBuffer=a,n.INSPECT_MAX_BYTES=50,a.poolSize=8192,a._useTypedArrays=function(){try{var Me=new ArrayBuffer(0),Q=new Uint8Array(Me);return Q.foo=function(){return 42},42===Q.foo()&&"function"==typeof Q.subarray}catch{return!1}}(),a.isEncoding=function(Me){switch(String(Me).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.isBuffer=function(Me){return!(null==Me||!Me._isBuffer)},a.byteLength=function(Me,Q){var A;switch(Me+="",Q||"utf8"){case"hex":A=Me.length/2;break;case"utf8":case"utf-8":A=ue(Me).length;break;case"ascii":case"binary":case"raw":A=Me.length;break;case"base64":A=se(Me).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":A=2*Me.length;break;default:throw new Error("Unknown encoding")}return A},a.concat=function(Me,Q){if(He(ie(Me),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===Me.length)return new a(0);if(1===Me.length)return Me[0];var A;if("number"!=typeof Q)for(A=Q=0;A<Me.length;A++)Q+=Me[A].length;var me=new a(Q),ne=0;for(A=0;A<Me.length;A++){var G=Me[A];G.copy(me,ne),ne+=G.length}return me},a.prototype.write=function(Me,Q,A,me){if(isFinite(Q))isFinite(A)||(me=A,A=void 0);else{var ne=me;me=Q,Q=A,A=ne}Q=Number(Q)||0;var G,$,le,Fe,At,Le=this.length-Q;switch((!A||Le<(A=Number(A)))&&(A=Le),me=String(me||"utf8").toLowerCase()){case"hex":G=function(Et,$e,Ze,Qe){Ze=Number(Ze)||0;var Ve=Et.length-Ze;(!Qe||Ve<(Qe=Number(Qe)))&&(Qe=Ve);var nt=$e.length;He(nt%2==0,"Invalid hex string"),nt/2<Qe&&(Qe=nt/2);for(var Ot=0;Ot<Qe;Ot++){var at=parseInt($e.substr(2*Ot,2),16);He(!isNaN(at),"Invalid hex string"),Et[Ze+Ot]=at}return a._charsWritten=2*Ot,Ot}(this,Me,Q,A);break;case"utf8":case"utf-8":this,Fe=Q,At=A,G=a._charsWritten=Z(ue(Me),this,Fe,At);break;case"ascii":case"binary":G=function c(Me,Q,A,me){return a._charsWritten=Z(function(ne){for(var G=[],W=0;W<ne.length;W++)G.push(255&ne.charCodeAt(W));return G}(Q),Me,A,me)}(this,Me,Q,A);break;case"base64":this,$=Q,le=A,G=a._charsWritten=Z(se(Me),this,$,le);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":G=function m(Me,Q,A,me){return a._charsWritten=Z(function(ne){for(var G,W,le=[],Pe=0;Pe<ne.length;Pe++)W=(G=ne.charCodeAt(Pe))>>8,le.push(G%256),le.push(W);return le}(Q),Me,A,me)}(this,Me,Q,A);break;default:throw new Error("Unknown encoding")}return G},a.prototype.toString=function(Me,Q,A){var me,ne,G,W,$=this;if(Me=String(Me||"utf8").toLowerCase(),Q=Number(Q)||0,(A=void 0!==A?Number(A):A=$.length)===Q)return"";switch(Me){case"hex":me=function(le,Pe,Fe){var At=le.length;(!Pe||Pe<0)&&(Pe=0),(!Fe||Fe<0||At<Fe)&&(Fe=At);for(var Le="",Et=Pe;Et<Fe;Et++)Le+=ve(le[Et]);return Le}($,Q,A);break;case"utf8":case"utf-8":me=function(le,Pe,Fe){var At="",Le="";Fe=Math.min(le.length,Fe);for(var Et=Pe;Et<Fe;Et++)le[Et]<=127?(At+=Se(Le)+String.fromCharCode(le[Et]),Le=""):Le+="%"+le[Et].toString(16);return At+Se(Le)}($,Q,A);break;case"ascii":case"binary":me=function M(Me,Q,A){var me="";A=Math.min(Me.length,A);for(var ne=Q;ne<A;ne++)me+=String.fromCharCode(Me[ne]);return me}($,Q,A);break;case"base64":ne=$,W=A,me=0===(G=Q)&&W===ne.length?i.fromByteArray(ne):i.fromByteArray(ne.slice(G,W));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":me=function(le,Pe,Fe){for(var At=le.slice(Pe,Fe),Le="",Et=0;Et<At.length;Et+=2)Le+=String.fromCharCode(At[Et]+256*At[Et+1]);return Le}($,Q,A);break;default:throw new Error("Unknown encoding")}return me},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.copy=function(Me,Q,A,me){if(me||0===me||(me=this.length),Q=Q||0,me!==(A=A||0)&&0!==Me.length&&0!==this.length){He(A<=me,"sourceEnd < sourceStart"),He(0<=Q&&Q<Me.length,"targetStart out of bounds"),He(0<=A&&A<this.length,"sourceStart out of bounds"),He(0<=me&&me<=this.length,"sourceEnd out of bounds"),me>this.length&&(me=this.length),Me.length-Q<me-A&&(me=Me.length-Q+A);var ne=me-A;if(ne<100||!a._useTypedArrays)for(var G=0;G<ne;G++)Me[G+Q]=this[G+A];else Me._set(this.subarray(A,A+ne),Q)}},a.prototype.slice=function(Me,Q){var A=this.length;if(Me=J(Me,A,0),Q=J(Q,A,A),a._useTypedArrays)return a._augment(this.subarray(Me,Q));for(var me=Q-Me,ne=new a(me,void 0,!0),G=0;G<me;G++)ne[G]=this[G+Me];return ne},a.prototype.get=function(Me){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(Me)},a.prototype.set=function(Me,Q){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(Me,Q)},a.prototype.readUInt8=function(Me,Q){if(Q||(He(null!=Me,"missing offset"),He(Me<this.length,"Trying to read beyond buffer length")),!(Me>=this.length))return this[Me]},a.prototype.readUInt16LE=function(Me,Q){return D(this,Me,!0,Q)},a.prototype.readUInt16BE=function(Me,Q){return D(this,Me,!1,Q)},a.prototype.readUInt32LE=function(Me,Q){return I(this,Me,!0,Q)},a.prototype.readUInt32BE=function(Me,Q){return I(this,Me,!1,Q)},a.prototype.readInt8=function(Me,Q){if(Q||(He(null!=Me,"missing offset"),He(Me<this.length,"Trying to read beyond buffer length")),!(Me>=this.length))return 128&this[Me]?-1*(255-this[Me]+1):this[Me]},a.prototype.readInt16LE=function(Me,Q){return U(this,Me,!0,Q)},a.prototype.readInt16BE=function(Me,Q){return U(this,Me,!1,Q)},a.prototype.readInt32LE=function(Me,Q){return V(this,Me,!0,Q)},a.prototype.readInt32BE=function(Me,Q){return V(this,Me,!1,Q)},a.prototype.readFloatLE=function(Me,Q){return T(this,Me,!0,Q)},a.prototype.readFloatBE=function(Me,Q){return T(this,Me,!1,Q)},a.prototype.readDoubleLE=function(Me,Q){return N(this,Me,!0,Q)},a.prototype.readDoubleBE=function(Me,Q){return N(this,Me,!1,Q)},a.prototype.writeUInt8=function(Me,Q,A){A||(He(null!=Me,"missing value"),He(null!=Q,"missing offset"),He(Q<this.length,"trying to write beyond buffer length"),Ce(Me,255)),Q>=this.length||(this[Q]=Me)},a.prototype.writeUInt16LE=function(Me,Q,A){L(this,Me,Q,!0,A)},a.prototype.writeUInt16BE=function(Me,Q,A){L(this,Me,Q,!1,A)},a.prototype.writeUInt32LE=function(Me,Q,A){E(this,Me,Q,!0,A)},a.prototype.writeUInt32BE=function(Me,Q,A){E(this,Me,Q,!1,A)},a.prototype.writeInt8=function(Me,Q,A){A||(He(null!=Me,"missing value"),He(null!=Q,"missing offset"),He(Q<this.length,"Trying to write beyond buffer length"),Be(Me,127,-128)),Q>=this.length||this.writeUInt8(0<=Me?Me:255+Me+1,Q,A)},a.prototype.writeInt16LE=function(Me,Q,A){g(this,Me,Q,!0,A)},a.prototype.writeInt16BE=function(Me,Q,A){g(this,Me,Q,!1,A)},a.prototype.writeInt32LE=function(Me,Q,A){R(this,Me,Q,!0,A)},a.prototype.writeInt32BE=function(Me,Q,A){R(this,Me,Q,!1,A)},a.prototype.writeFloatLE=function(Me,Q,A){B(this,Me,Q,!0,A)},a.prototype.writeFloatBE=function(Me,Q,A){B(this,Me,Q,!1,A)},a.prototype.writeDoubleLE=function(Me,Q,A){X(this,Me,Q,!0,A)},a.prototype.writeDoubleBE=function(Me,Q,A){X(this,Me,Q,!1,A)},a.prototype.fill=function(Me,Q,A){if(Q=Q||0,A=A||this.length,"string"==typeof(Me=Me||0)&&(Me=Me.charCodeAt(0)),He("number"==typeof Me&&!isNaN(Me),"value is not a number"),He(Q<=A,"end < start"),A!==Q&&0!==this.length){He(0<=Q&&Q<this.length,"start out of bounds"),He(0<=A&&A<=this.length,"end out of bounds");for(var me=Q;me<A;me++)this[me]=Me}},a.prototype.inspect=function(){for(var Me=[],Q=this.length,A=0;A<Q;A++)if(Me[A]=ve(this[A]),A===n.INSPECT_MAX_BYTES){Me[A+1]="...";break}return"<Buffer "+Me.join(" ")+">"},a.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(a._useTypedArrays)return new a(this).buffer;for(var Me=new Uint8Array(this.length),Q=0,A=Me.length;Q<A;Q+=1)Me[Q]=this[Q];return Me.buffer};var H=a.prototype;function J(Me,Q,A){return"number"!=typeof Me?A:Q<=(Me=~~Me)?Q:0<=Me||0<=(Me+=Q)?Me:0}function re(Me){return(Me=~~Math.ceil(+Me))<0?0:Me}function ie(Me){return(Array.isArray||function(Q){return"[object Array]"===Object.prototype.toString.call(Q)})(Me)}function ve(Me){return Me<16?"0"+Me.toString(16):Me.toString(16)}function ue(Me){for(var Q=[],A=0;A<Me.length;A++){var me=Me.charCodeAt(A);if(me<=127)Q.push(Me.charCodeAt(A));else{var ne=A;55296<=me&&me<=57343&&A++;for(var G=encodeURIComponent(Me.slice(ne,A+1)).substr(1).split("%"),W=0;W<G.length;W++)Q.push(parseInt(G[W],16))}}return Q}function se(Me){return i.toByteArray(Me)}function Z(Me,Q,A,me){for(var ne=0;ne<me&&!(ne+A>=Q.length||ne>=Me.length);ne++)Q[ne+A]=Me[ne];return ne}function Se(Me){try{return decodeURIComponent(Me)}catch{return"\ufffd"}}function Ce(Me,Q){He("number"==typeof Me,"cannot write a non-number as a number"),He(0<=Me,"specified a negative value for writing an unsigned value"),He(Me<=Q,"value is larger than maximum value for type"),He(Math.floor(Me)===Me,"value has a fractional component")}function Be(Me,Q,A){He("number"==typeof Me,"cannot write a non-number as a number"),He(Me<=Q,"value larger than maximum allowed value"),He(A<=Me,"value smaller than minimum allowed value"),He(Math.floor(Me)===Me,"value has a fractional component")}function Xe(Me,Q,A){He("number"==typeof Me,"cannot write a non-number as a number"),He(Me<=Q,"value larger than maximum allowed value"),He(A<=Me,"value smaller than minimum allowed value")}function He(Me,Q){if(!Me)throw new Error(Q||"Failed assertion")}a._augment=function(Me){return Me._isBuffer=!0,Me._get=Me.get,Me._set=Me.set,Me.get=H.get,Me.set=H.set,Me.write=H.write,Me.toString=H.toString,Me.toLocaleString=H.toString,Me.toJSON=H.toJSON,Me.copy=H.copy,Me.slice=H.slice,Me.readUInt8=H.readUInt8,Me.readUInt16LE=H.readUInt16LE,Me.readUInt16BE=H.readUInt16BE,Me.readUInt32LE=H.readUInt32LE,Me.readUInt32BE=H.readUInt32BE,Me.readInt8=H.readInt8,Me.readInt16LE=H.readInt16LE,Me.readInt16BE=H.readInt16BE,Me.readInt32LE=H.readInt32LE,Me.readInt32BE=H.readInt32BE,Me.readFloatLE=H.readFloatLE,Me.readFloatBE=H.readFloatBE,Me.readDoubleLE=H.readDoubleLE,Me.readDoubleBE=H.readDoubleBE,Me.writeUInt8=H.writeUInt8,Me.writeUInt16LE=H.writeUInt16LE,Me.writeUInt16BE=H.writeUInt16BE,Me.writeUInt32LE=H.writeUInt32LE,Me.writeUInt32BE=H.writeUInt32BE,Me.writeInt8=H.writeInt8,Me.writeInt16LE=H.writeInt16LE,Me.writeInt16BE=H.writeInt16BE,Me.writeInt32LE=H.writeInt32LE,Me.writeInt32BE=H.writeInt32BE,Me.writeFloatLE=H.writeFloatLE,Me.writeFloatBE=H.writeFloatBE,Me.writeDoubleLE=H.writeDoubleLE,Me.writeDoubleBE=H.writeDoubleBE,Me.fill=H.fill,Me.inspect=H.inspect,Me.toArrayBuffer=H.toArrayBuffer,Me}}).call(this,z("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},z("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(z,s,n){(function(l,d,v,S,y,f,O,P,_){v=z("buffer").Buffer;var r=new v(4);r.fill(0),s.exports={hash:function(a,c,m,M){return v.isBuffer(a)||(a=new v(a)),function(D,I,U){for(var V=new v(I),T=U?V.writeInt32BE:V.writeInt32LE,N=0;N<D.length;N++)T.call(V,D[N],4*N,!0);return V}(c(function(D,I){D.length%4!=0&&(D=v.concat([D,r],D.length+(4-D.length%4)));for(var V=[],T=I?D.readInt32BE:D.readInt32LE,N=0;N<D.length;N+=4)V.push(T.call(D,N));return V}(a,M),8*a.length),m,M)}}}).call(this,z("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},z("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],5:[function(z,s,n){(function(l,d,v,S,y,f,O,P,_){v=z("buffer").Buffer;var i=z("./sha"),r=z("./sha256"),a=z("./rng"),c={sha1:i,sha256:r,md5:z("./md5")},m=64,M=new v(m);function D(U,V){var T=c[U=U||"sha1"],N=[];return T||I("algorithm:",U,"is not yet supported"),{update:function(L){return v.isBuffer(L)||(L=new v(L)),N.push(L),this},digest:function(L){var E=v.concat(N),g=V?function(R,B,X){v.isBuffer(B)||(B=new v(B)),v.isBuffer(X)||(X=new v(X)),B.length>m?B=R(B):B.length<m&&(B=v.concat([B,M],m));for(var H=new v(m),J=new v(m),re=0;re<m;re++)H[re]=54^B[re],J[re]=92^B[re];var ie=R(v.concat([H,X]));return R(v.concat([J,ie]))}(T,V,E):T(E);return N=null,L?g.toString(L):g}}}function I(){var U=[].slice.call(arguments).join(" ");throw new Error([U,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}M.fill(0),n.createHash=function(U){return D(U)},n.createHmac=function(U,V){return D(U,V)},n.randomBytes=function(U,V){if(!V||!V.call)return new v(a(U));try{V.call(this,void 0,new v(a(U)))}catch(T){V(T)}},function(U,V){for(var T in U)V(U[T])}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(U){n[U]=function(){I("sorry,",U,"is not implemented yet")}})}).call(this,z("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},z("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:10}],6:[function(z,s,n){(function(l,d,v,S,y,f,O,P,_){var i=z("./helpers");function r(U,V){U[V>>5]|=128<<V%32,U[14+(V+64>>>9<<4)]=V;for(var T=1732584193,N=-271733879,L=-1732584194,E=271733878,g=0;g<U.length;g+=16){var R=T,B=N,X=L,H=E;T=c(T,N,L,E,U[g+0],7,-680876936),E=c(E,T,N,L,U[g+1],12,-389564586),L=c(L,E,T,N,U[g+2],17,606105819),N=c(N,L,E,T,U[g+3],22,-1044525330),T=c(T,N,L,E,U[g+4],7,-176418897),E=c(E,T,N,L,U[g+5],12,1200080426),L=c(L,E,T,N,U[g+6],17,-1473231341),N=c(N,L,E,T,U[g+7],22,-45705983),T=c(T,N,L,E,U[g+8],7,1770035416),E=c(E,T,N,L,U[g+9],12,-1958414417),L=c(L,E,T,N,U[g+10],17,-42063),N=c(N,L,E,T,U[g+11],22,-1990404162),T=c(T,N,L,E,U[g+12],7,1804603682),E=c(E,T,N,L,U[g+13],12,-40341101),L=c(L,E,T,N,U[g+14],17,-1502002290),T=m(T,N=c(N,L,E,T,U[g+15],22,1236535329),L,E,U[g+1],5,-165796510),E=m(E,T,N,L,U[g+6],9,-1069501632),L=m(L,E,T,N,U[g+11],14,643717713),N=m(N,L,E,T,U[g+0],20,-373897302),T=m(T,N,L,E,U[g+5],5,-701558691),E=m(E,T,N,L,U[g+10],9,38016083),L=m(L,E,T,N,U[g+15],14,-660478335),N=m(N,L,E,T,U[g+4],20,-405537848),T=m(T,N,L,E,U[g+9],5,568446438),E=m(E,T,N,L,U[g+14],9,-1019803690),L=m(L,E,T,N,U[g+3],14,-187363961),N=m(N,L,E,T,U[g+8],20,1163531501),T=m(T,N,L,E,U[g+13],5,-1444681467),E=m(E,T,N,L,U[g+2],9,-51403784),L=m(L,E,T,N,U[g+7],14,1735328473),T=M(T,N=m(N,L,E,T,U[g+12],20,-1926607734),L,E,U[g+5],4,-378558),E=M(E,T,N,L,U[g+8],11,-2022574463),L=M(L,E,T,N,U[g+11],16,1839030562),N=M(N,L,E,T,U[g+14],23,-35309556),T=M(T,N,L,E,U[g+1],4,-1530992060),E=M(E,T,N,L,U[g+4],11,1272893353),L=M(L,E,T,N,U[g+7],16,-155497632),N=M(N,L,E,T,U[g+10],23,-1094730640),T=M(T,N,L,E,U[g+13],4,681279174),E=M(E,T,N,L,U[g+0],11,-358537222),L=M(L,E,T,N,U[g+3],16,-722521979),N=M(N,L,E,T,U[g+6],23,76029189),T=M(T,N,L,E,U[g+9],4,-640364487),E=M(E,T,N,L,U[g+12],11,-421815835),L=M(L,E,T,N,U[g+15],16,530742520),T=D(T,N=M(N,L,E,T,U[g+2],23,-995338651),L,E,U[g+0],6,-198630844),E=D(E,T,N,L,U[g+7],10,1126891415),L=D(L,E,T,N,U[g+14],15,-1416354905),N=D(N,L,E,T,U[g+5],21,-57434055),T=D(T,N,L,E,U[g+12],6,1700485571),E=D(E,T,N,L,U[g+3],10,-1894986606),L=D(L,E,T,N,U[g+10],15,-1051523),N=D(N,L,E,T,U[g+1],21,-2054922799),T=D(T,N,L,E,U[g+8],6,1873313359),E=D(E,T,N,L,U[g+15],10,-30611744),L=D(L,E,T,N,U[g+6],15,-1560198380),N=D(N,L,E,T,U[g+13],21,1309151649),T=D(T,N,L,E,U[g+4],6,-145523070),E=D(E,T,N,L,U[g+11],10,-1120210379),L=D(L,E,T,N,U[g+2],15,718787259),N=D(N,L,E,T,U[g+9],21,-343485551),T=I(T,R),N=I(N,B),L=I(L,X),E=I(E,H)}return Array(T,N,L,E)}function a(U,V,T,N,L,E){return I((g=I(I(V,U),I(N,E)))<<(R=L)|g>>>32-R,T);var g,R}function c(U,V,T,N,L,E,g){return a(V&T|~V&N,U,V,L,E,g)}function m(U,V,T,N,L,E,g){return a(V&N|T&~N,U,V,L,E,g)}function M(U,V,T,N,L,E,g){return a(V^T^N,U,V,L,E,g)}function D(U,V,T,N,L,E,g){return a(T^(V|~N),U,V,L,E,g)}function I(U,V){var T=(65535&U)+(65535&V);return(U>>16)+(V>>16)+(T>>16)<<16|65535&T}s.exports=function(U){return i.hash(U,r,16)}}).call(this,z("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},z("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(z,s,n){(function(l,d,v,S,y,f,O,P,_){s.exports=function(a){for(var c,m=new Array(a),M=0;M<a;M++)!(3&M)&&(c=4294967296*Math.random()),m[M]=c>>>((3&M)<<3)&255;return m}}).call(this,z("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},z("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(z,s,n){(function(l,d,v,S,y,f,O,P,_){var i=z("./helpers");function r(M,D){M[D>>5]|=128<<24-D%32,M[15+(D+64>>9<<4)]=D;for(var I,U=Array(80),V=1732584193,T=-271733879,N=-1732584194,L=271733878,E=-1009589776,g=0;g<M.length;g+=16){for(var R=V,B=T,X=N,H=L,J=E,re=0;re<80;re++){U[re]=re<16?M[g+re]:m(U[re-3]^U[re-8]^U[re-14]^U[re-16],1);var ie=c(c(m(V,5),a(re,T,N,L)),c(c(E,U[re]),(I=re)<20?1518500249:I<40?1859775393:I<60?-1894007588:-899497514));E=L,L=N,N=m(T,30),T=V,V=ie}V=c(V,R),T=c(T,B),N=c(N,X),L=c(L,H),E=c(E,J)}return Array(V,T,N,L,E)}function a(M,D,I,U){return M<20?D&I|~D&U:!(M<40)&&M<60?D&I|D&U|I&U:D^I^U}function c(M,D){var I=(65535&M)+(65535&D);return(M>>16)+(D>>16)+(I>>16)<<16|65535&I}function m(M,D){return M<<D|M>>>32-D}s.exports=function(M){return i.hash(M,r,20,!0)}}).call(this,z("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},z("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(z,s,n){(function(l,d,v,S,y,f,O,P,_){function i(M,D){var I=(65535&M)+(65535&D);return(M>>16)+(D>>16)+(I>>16)<<16|65535&I}function r(M,D){return M>>>D|M<<32-D}function a(M,D){return M>>>D}function c(M,D){var I,U,V,T,N,L,E,g,R,B,X,H,J,re,ie,ve,ue,se,Z=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),Se=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),Ce=new Array(64);M[D>>5]|=128<<24-D%32,M[15+(D+64>>9<<4)]=D;for(var Be=0;Be<M.length;Be+=16){I=Se[0],U=Se[1],V=Se[2],T=Se[3],N=Se[4],L=Se[5],E=Se[6],g=Se[7];for(var Xe=0;Xe<64;Xe++)Ce[Xe]=Xe<16?M[Xe+Be]:i(i(i(r(se=Ce[Xe-2],17)^r(se,19)^a(se,10),Ce[Xe-7]),r(ue=Ce[Xe-15],7)^r(ue,18)^a(ue,3)),Ce[Xe-16]),R=i(i(i(i(g,r(ve=N,6)^r(ve,11)^r(ve,25)),(ie=N)&L^~ie&E),Z[Xe]),Ce[Xe]),B=i(r(re=I,2)^r(re,13)^r(re,22),(X=I)&(H=U)^X&(J=V)^H&J),g=E,E=L,L=N,N=i(T,R),T=V,V=U,U=I,I=i(R,B);Se[0]=i(I,Se[0]),Se[1]=i(U,Se[1]),Se[2]=i(V,Se[2]),Se[3]=i(T,Se[3]),Se[4]=i(N,Se[4]),Se[5]=i(L,Se[5]),Se[6]=i(E,Se[6]),Se[7]=i(g,Se[7])}return Se}var m=z("./helpers");s.exports=function(M){return m.hash(M,c,32,!0)}}).call(this,z("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},z("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],10:[function(z,s,n){(function(l,d,v,S,y,f,O,P,_){function i(){}(l=s.exports={}).nextTick=function(){var r=typeof window<"u"&&window.setImmediate,a=typeof window<"u"&&window.postMessage&&window.addEventListener;if(r)return function(m){return window.setImmediate(m)};if(a){var c=[];return window.addEventListener("message",function(m){var M=m.source;M!==window&&null!==M||"process-tick"!==m.data||(m.stopPropagation(),0<c.length&&c.shift()())},!0),function(m){c.push(m),window.postMessage("process-tick","*")}}return function(m){setTimeout(m,0)}}(),l.title="browser",l.browser=!0,l.env={},l.argv=[],l.on=i,l.addListener=i,l.once=i,l.off=i,l.removeListener=i,l.removeAllListeners=i,l.emit=i,l.binding=function(r){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(r){throw new Error("process.chdir is not supported")}}).call(this,z("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},z("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:10}],11:[function(z,s,n){(function(l,d,v,S,y,f,O,P,_){n.read=function(i,r,a,c,m){var M,D,I=8*m-c-1,U=(1<<I)-1,V=U>>1,T=-7,N=a?m-1:0,L=a?-1:1,E=i[r+N];for(N+=L,M=E&(1<<-T)-1,E>>=-T,T+=I;0<T;M=256*M+i[r+N],N+=L,T-=8);for(D=M&(1<<-T)-1,M>>=-T,T+=c;0<T;D=256*D+i[r+N],N+=L,T-=8);if(0===M)M=1-V;else{if(M===U)return D?NaN:1/0*(E?-1:1);D+=Math.pow(2,c),M-=V}return(E?-1:1)*D*Math.pow(2,M-c)},n.write=function(i,r,a,c,m,M){var D,I,U,V=8*M-m-1,T=(1<<V)-1,N=T>>1,L=23===m?Math.pow(2,-24)-Math.pow(2,-77):0,E=c?0:M-1,g=c?1:-1,R=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(I=isNaN(r)?1:0,D=T):(D=Math.floor(Math.log(r)/Math.LN2),r*(U=Math.pow(2,-D))<1&&(D--,U*=2),2<=(r+=1<=D+N?L/U:L*Math.pow(2,1-N))*U&&(D++,U/=2),T<=D+N?(I=0,D=T):1<=D+N?(I=(r*U-1)*Math.pow(2,m),D+=N):(I=r*Math.pow(2,N-1)*Math.pow(2,m),D=0));8<=m;i[a+E]=255&I,E+=g,I/=256,m-=8);for(D=D<<m|I,V+=m;0<V;i[a+E]=255&D,E+=g,D/=256,V-=8);i[a+E-g]|=128*R}}).call(this,z("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},z("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:3,lYpoI2:10}]},{},[1])(1)},6350:(Bt,z,s)=>{"use strict";Bt.exports=s(26222)},26222:(Bt,z,s)=>{"use strict";var n=z;function l(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=s(60973),n.BufferWriter=s(72038),n.Reader=s(57249),n.BufferReader=s(58),n.util=s(75014),n.rpc=s(84043),n.roots=s(60653),n.configure=l,l()},57249:(Bt,z,s)=>{"use strict";Bt.exports=y;var l,n=s(75014),d=n.LongBits,v=n.utf8;function S(r,a){return RangeError("index out of range: "+r.pos+" + "+(a||1)+" > "+r.len)}function y(r){this.buf=r,this.pos=0,this.len=r.length}var f=typeof Uint8Array<"u"?function(a){if(a instanceof Uint8Array||Array.isArray(a))return new y(a);throw Error("illegal buffer")}:function(a){if(Array.isArray(a))return new y(a);throw Error("illegal buffer")},O=function(){return n.Buffer?function(c){return(y.create=function(M){return n.Buffer.isBuffer(M)?new l(M):f(M)})(c)}:f};function P(){var r=new d(0,0),a=0;if(!(this.len-this.pos>4)){for(;a<3;++a){if(this.pos>=this.len)throw S(this);if(r.lo=(r.lo|(127&this.buf[this.pos])<<7*a)>>>0,this.buf[this.pos++]<128)return r}return r.lo=(r.lo|(127&this.buf[this.pos++])<<7*a)>>>0,r}for(;a<4;++a)if(r.lo=(r.lo|(127&this.buf[this.pos])<<7*a)>>>0,this.buf[this.pos++]<128)return r;if(r.lo=(r.lo|(127&this.buf[this.pos])<<28)>>>0,r.hi=(r.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return r;if(a=0,this.len-this.pos>4){for(;a<5;++a)if(r.hi=(r.hi|(127&this.buf[this.pos])<<7*a+3)>>>0,this.buf[this.pos++]<128)return r}else for(;a<5;++a){if(this.pos>=this.len)throw S(this);if(r.hi=(r.hi|(127&this.buf[this.pos])<<7*a+3)>>>0,this.buf[this.pos++]<128)return r}throw Error("invalid varint encoding")}function _(r,a){return(r[a-4]|r[a-3]<<8|r[a-2]<<16|r[a-1]<<24)>>>0}function i(){if(this.pos+8>this.len)throw S(this,8);return new d(_(this.buf,this.pos+=4),_(this.buf,this.pos+=4))}y.create=O(),y.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,y.prototype.uint32=function(){var a=4294967295;return function(){if(a=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(a=(a|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(a=(a|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(a=(a|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(a=(a|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return a;if((this.pos+=5)>this.len)throw this.pos=this.len,S(this,10);return a}}(),y.prototype.int32=function(){return 0|this.uint32()},y.prototype.sint32=function(){var a=this.uint32();return a>>>1^-(1&a)},y.prototype.bool=function(){return 0!==this.uint32()},y.prototype.fixed32=function(){if(this.pos+4>this.len)throw S(this,4);return _(this.buf,this.pos+=4)},y.prototype.sfixed32=function(){if(this.pos+4>this.len)throw S(this,4);return 0|_(this.buf,this.pos+=4)},y.prototype.float=function(){if(this.pos+4>this.len)throw S(this,4);var a=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,a},y.prototype.double=function(){if(this.pos+8>this.len)throw S(this,4);var a=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,a},y.prototype.bytes=function(){var a=this.uint32(),c=this.pos,m=this.pos+a;if(m>this.len)throw S(this,a);if(this.pos+=a,Array.isArray(this.buf))return this.buf.slice(c,m);if(c===m){var M=n.Buffer;return M?M.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,c,m)},y.prototype.string=function(){var a=this.bytes();return v.read(a,0,a.length)},y.prototype.skip=function(a){if("number"==typeof a){if(this.pos+a>this.len)throw S(this,a);this.pos+=a}else do{if(this.pos>=this.len)throw S(this)}while(128&this.buf[this.pos++]);return this},y.prototype.skipType=function(r){switch(r){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(r=7&this.uint32());)this.skipType(r);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+r+" at offset "+this.pos)}return this},y._configure=function(r){l=r,y.create=O(),l._configure();var a=n.Long?"toLong":"toNumber";n.merge(y.prototype,{int64:function(){return P.call(this)[a](!1)},uint64:function(){return P.call(this)[a](!0)},sint64:function(){return P.call(this).zzDecode()[a](!1)},fixed64:function(){return i.call(this)[a](!0)},sfixed64:function(){return i.call(this)[a](!1)}})}},58:(Bt,z,s)=>{"use strict";Bt.exports=d;var n=s(57249);(d.prototype=Object.create(n.prototype)).constructor=d;var l=s(75014);function d(v){n.call(this,v)}d._configure=function(){l.Buffer&&(d.prototype._slice=l.Buffer.prototype.slice)},d.prototype.string=function(){var S=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+S,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+S,this.len))},d._configure()},60653:Bt=>{"use strict";Bt.exports={}},84043:(Bt,z,s)=>{"use strict";z.Service=s(11423)},11423:(Bt,z,s)=>{"use strict";Bt.exports=l;var n=s(75014);function l(d,v,S){if("function"!=typeof d)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=d,this.requestDelimited=!!v,this.responseDelimited=!!S}(l.prototype=Object.create(n.EventEmitter.prototype)).constructor=l,l.prototype.rpcCall=function d(v,S,y,f,O){if(!f)throw TypeError("request must be specified");var P=this;if(!O)return n.asPromise(d,P,v,S,y,f);if(P.rpcImpl)try{return P.rpcImpl(v,S[P.requestDelimited?"encodeDelimited":"encode"](f).finish(),function(i,r){if(i)return P.emit("error",i,v),O(i);if(null!==r){if(!(r instanceof y))try{r=y[P.responseDelimited?"decodeDelimited":"decode"](r)}catch(a){return P.emit("error",a,v),O(a)}return P.emit("data",r,v),O(null,r)}P.end(!0)})}catch(_){return P.emit("error",_,v),void setTimeout(function(){O(_)},0)}else setTimeout(function(){O(Error("already ended"))},0)},l.prototype.end=function(v){return this.rpcImpl&&(v||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},91995:(Bt,z,s)=>{"use strict";Bt.exports=l;var n=s(75014);function l(y,f){this.lo=y>>>0,this.hi=f>>>0}var d=l.zero=new l(0,0);d.toNumber=function(){return 0},d.zzEncode=d.zzDecode=function(){return this},d.length=function(){return 1};var v=l.zeroHash="\0\0\0\0\0\0\0\0";l.fromNumber=function(f){if(0===f)return d;var O=f<0;O&&(f=-f);var P=f>>>0,_=(f-P)/4294967296>>>0;return O&&(_=~_>>>0,P=~P>>>0,++P>4294967295&&(P=0,++_>4294967295&&(_=0))),new l(P,_)},l.from=function(f){if("number"==typeof f)return l.fromNumber(f);if(n.isString(f)){if(!n.Long)return l.fromNumber(parseInt(f,10));f=n.Long.fromString(f)}return f.low||f.high?new l(f.low>>>0,f.high>>>0):d},l.prototype.toNumber=function(f){if(!f&&this.hi>>>31){var O=1+~this.lo>>>0,P=~this.hi>>>0;return O||(P=P+1>>>0),-(O+4294967296*P)}return this.lo+4294967296*this.hi},l.prototype.toLong=function(f){return n.Long?new n.Long(0|this.lo,0|this.hi,!!f):{low:0|this.lo,high:0|this.hi,unsigned:!!f}};var S=String.prototype.charCodeAt;l.fromHash=function(f){return f===v?d:new l((S.call(f,0)|S.call(f,1)<<8|S.call(f,2)<<16|S.call(f,3)<<24)>>>0,(S.call(f,4)|S.call(f,5)<<8|S.call(f,6)<<16|S.call(f,7)<<24)>>>0)},l.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},l.prototype.zzEncode=function(){var f=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^f)>>>0,this.lo=(this.lo<<1^f)>>>0,this},l.prototype.zzDecode=function(){var f=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^f)>>>0,this.hi=(this.hi>>>1^f)>>>0,this},l.prototype.length=function(){var f=this.lo,O=(this.lo>>>28|this.hi<<4)>>>0,P=this.hi>>>24;return 0===P?0===O?f<16384?f<128?1:2:f<2097152?3:4:O<16384?O<128?5:6:O<2097152?7:8:P<128?9:10}},75014:function(Bt,z,s){"use strict";var n=z;function l(v,S,y){for(var f=Object.keys(S),O=0;O<f.length;++O)(void 0===v[f[O]]||!y)&&(v[f[O]]=S[f[O]]);return v}function d(v){function S(y,f){if(!(this instanceof S))return new S(y,f);Object.defineProperty(this,"message",{get:function(){return y}}),Error.captureStackTrace?Error.captureStackTrace(this,S):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),f&&l(this,f)}return S.prototype=Object.create(Error.prototype,{constructor:{value:S,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return v},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),S}n.asPromise=s(69753),n.base64=s(5275),n.EventEmitter=s(84978),n.float=s(8982),n.inquire=s(46469),n.utf8=s(61755),n.pool=s(74722),n.LongBits=s(91995),n.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node),n.global=n.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||this,n.emptyArray=Object.freeze?Object.freeze([]):[],n.emptyObject=Object.freeze?Object.freeze({}):{},n.isInteger=Number.isInteger||function(S){return"number"==typeof S&&isFinite(S)&&Math.floor(S)===S},n.isString=function(S){return"string"==typeof S||S instanceof String},n.isObject=function(S){return S&&"object"==typeof S},n.isset=n.isSet=function(S,y){var f=S[y];return!(null==f||!S.hasOwnProperty(y))&&("object"!=typeof f||(Array.isArray(f)?f.length:Object.keys(f).length)>0)},n.Buffer=function(){try{var v=n.inquire("buffer").Buffer;return v.prototype.utf8Write?v:null}catch{return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(S){return"number"==typeof S?n.Buffer?n._Buffer_allocUnsafe(S):new n.Array(S):n.Buffer?n._Buffer_from(S):typeof Uint8Array>"u"?S:new Uint8Array(S)},n.Array=typeof Uint8Array<"u"?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(S){return S?n.LongBits.from(S).toHash():n.LongBits.zeroHash},n.longFromHash=function(S,y){var f=n.LongBits.fromHash(S);return n.Long?n.Long.fromBits(f.lo,f.hi,y):f.toNumber(!!y)},n.merge=l,n.lcFirst=function(S){return S.charAt(0).toLowerCase()+S.substring(1)},n.newError=d,n.ProtocolError=d("ProtocolError"),n.oneOfGetter=function(S){for(var y={},f=0;f<S.length;++f)y[S[f]]=1;return function(){for(var O=Object.keys(this),P=O.length-1;P>-1;--P)if(1===y[O[P]]&&null!=this[O[P]])return O[P]}},n.oneOfSetter=function(S){return function(y){for(var f=0;f<S.length;++f)S[f]!==y&&delete this[S[f]]}},n.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},n._configure=function(){var v=n.Buffer;v?(n._Buffer_from=v.from!==Uint8Array.from&&v.from||function(y,f){return new v(y,f)},n._Buffer_allocUnsafe=v.allocUnsafe||function(y){return new v(y)}):n._Buffer_from=n._Buffer_allocUnsafe=null}},60973:(Bt,z,s)=>{"use strict";Bt.exports=P;var l,n=s(75014),d=n.LongBits,v=n.base64,S=n.utf8;function y(D,I,U){this.fn=D,this.len=I,this.next=void 0,this.val=U}function f(){}function O(D){this.head=D.head,this.tail=D.tail,this.len=D.len,this.next=D.states}function P(){this.len=0,this.head=new y(f,0,0),this.tail=this.head,this.states=null}var _=function(){return n.Buffer?function(){return(P.create=function(){return new l})()}:function(){return new P}};function i(D,I,U){I[U]=255&D}function a(D,I){this.len=D,this.next=void 0,this.val=I}function c(D,I,U){for(;D.hi;)I[U++]=127&D.lo|128,D.lo=(D.lo>>>7|D.hi<<25)>>>0,D.hi>>>=7;for(;D.lo>127;)I[U++]=127&D.lo|128,D.lo=D.lo>>>7;I[U++]=D.lo}function m(D,I,U){I[U]=255&D,I[U+1]=D>>>8&255,I[U+2]=D>>>16&255,I[U+3]=D>>>24}P.create=_(),P.alloc=function(I){return new n.Array(I)},n.Array!==Array&&(P.alloc=n.pool(P.alloc,n.Array.prototype.subarray)),P.prototype._push=function(I,U,V){return this.tail=this.tail.next=new y(I,U,V),this.len+=U,this},(a.prototype=Object.create(y.prototype)).fn=function r(D,I,U){for(;D>127;)I[U++]=127&D|128,D>>>=7;I[U]=D},P.prototype.uint32=function(I){return this.len+=(this.tail=this.tail.next=new a((I>>>=0)<128?1:I<16384?2:I<2097152?3:I<268435456?4:5,I)).len,this},P.prototype.int32=function(I){return I<0?this._push(c,10,d.fromNumber(I)):this.uint32(I)},P.prototype.sint32=function(I){return this.uint32((I<<1^I>>31)>>>0)},P.prototype.int64=P.prototype.uint64=function(I){var U=d.from(I);return this._push(c,U.length(),U)},P.prototype.sint64=function(I){var U=d.from(I).zzEncode();return this._push(c,U.length(),U)},P.prototype.bool=function(I){return this._push(i,1,I?1:0)},P.prototype.sfixed32=P.prototype.fixed32=function(I){return this._push(m,4,I>>>0)},P.prototype.sfixed64=P.prototype.fixed64=function(I){var U=d.from(I);return this._push(m,4,U.lo)._push(m,4,U.hi)},P.prototype.float=function(I){return this._push(n.float.writeFloatLE,4,I)},P.prototype.double=function(I){return this._push(n.float.writeDoubleLE,8,I)};var M=n.Array.prototype.set?function(I,U,V){U.set(I,V)}:function(I,U,V){for(var T=0;T<I.length;++T)U[V+T]=I[T]};P.prototype.bytes=function(I){var U=I.length>>>0;if(!U)return this._push(i,1,0);if(n.isString(I)){var V=P.alloc(U=v.length(I));v.decode(I,V,0),I=V}return this.uint32(U)._push(M,U,I)},P.prototype.string=function(I){var U=S.length(I);return U?this.uint32(U)._push(S.write,U,I):this._push(i,1,0)},P.prototype.fork=function(){return this.states=new O(this),this.head=this.tail=new y(f,0,0),this.len=0,this},P.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new y(f,0,0),this.len=0),this},P.prototype.ldelim=function(){var I=this.head,U=this.tail,V=this.len;return this.reset().uint32(V),V&&(this.tail.next=I.next,this.tail=U,this.len+=V),this},P.prototype.finish=function(){for(var I=this.head.next,U=this.constructor.alloc(this.len),V=0;I;)I.fn(I.val,U,V),V+=I.len,I=I.next;return U},P._configure=function(D){l=D,P.create=_(),l._configure()}},72038:(Bt,z,s)=>{"use strict";Bt.exports=d;var n=s(60973);(d.prototype=Object.create(n.prototype)).constructor=d;var l=s(75014);function d(){n.call(this)}function v(S,y,f){S.length<40?l.utf8.write(S,y,f):y.utf8Write?y.utf8Write(S,f):y.write(S,f)}d._configure=function(){d.alloc=l._Buffer_allocUnsafe,d.writeBytesBuffer=l.Buffer&&l.Buffer.prototype instanceof Uint8Array&&"set"===l.Buffer.prototype.set.name?function(y,f,O){f.set(y,O)}:function(y,f,O){if(y.copy)y.copy(f,O,0,y.length);else for(var P=0;P<y.length;)f[O++]=y[P++]}},d.prototype.bytes=function(y){l.isString(y)&&(y=l._Buffer_from(y,"base64"));var f=y.length>>>0;return this.uint32(f),f&&this._push(d.writeBytesBuffer,f,y),this},d.prototype.string=function(y){var f=l.Buffer.byteLength(y);return this.uint32(f),f&&this._push(v,f,y),this},d._configure()},85667:(Bt,z,s)=>{const l=s(56281),d=s(92649),v=s(36967),S=s(66288);function y(f,O,P,_,i){const r=[].slice.call(arguments,1),a=r.length,c="function"==typeof r[a-1];if(!c&&!l())throw new Error("Callback required as last argument");if(!c){if(a<1)throw new Error("Too few arguments provided");return 1===a?(P=O,O=_=void 0):2===a&&!O.getContext&&(_=P,P=O,O=void 0),new Promise(function(m,M){try{const D=d.create(P,_);m(f(D,O,_))}catch(D){M(D)}})}if(a<2)throw new Error("Too few arguments provided");2===a?(i=P,P=O,O=_=void 0):3===a&&(O.getContext&&typeof i>"u"?(i=_,_=void 0):(i=_,_=P,P=O,O=void 0));try{const m=d.create(P,_);i(null,f(m,O,_))}catch(m){i(m)}}z.mo=y.bind(null,v.render),z.dY=y.bind(null,v.renderToDataURL),z.toString=y.bind(null,function(f,O,P){return S.render(f,P)})},56281:Bt=>{Bt.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},68817:(Bt,z,s)=>{const n=s(17610).getSymbolSize;z.getRowColCoords=function(d){if(1===d)return[];const v=Math.floor(d/7)+2,S=n(d),y=145===S?26:2*Math.ceil((S-13)/(2*v-2)),f=[S-7];for(let O=1;O<v-1;O++)f[O]=f[O-1]-y;return f.push(6),f.reverse()},z.getPositions=function(d){const v=[],S=z.getRowColCoords(d),y=S.length;for(let f=0;f<y;f++)for(let O=0;O<y;O++)0===f&&0===O||0===f&&O===y-1||f===y-1&&0===O||v.push([S[f],S[O]]);return v}},61925:(Bt,z,s)=>{const n=s(7092),l=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function d(v){this.mode=n.ALPHANUMERIC,this.data=v}d.getBitsLength=function(S){return 11*Math.floor(S/2)+S%2*6},d.prototype.getLength=function(){return this.data.length},d.prototype.getBitsLength=function(){return d.getBitsLength(this.data.length)},d.prototype.write=function(S){let y;for(y=0;y+2<=this.data.length;y+=2){let f=45*l.indexOf(this.data[y]);f+=l.indexOf(this.data[y+1]),S.put(f,11)}this.data.length%2&&S.put(l.indexOf(this.data[y]),6)},Bt.exports=d},71535:Bt=>{function z(){this.buffer=[],this.length=0}z.prototype={get:function(s){const n=Math.floor(s/8);return 1==(this.buffer[n]>>>7-s%8&1)},put:function(s,n){for(let l=0;l<n;l++)this.putBit(1==(s>>>n-l-1&1))},getLengthInBits:function(){return this.length},putBit:function(s){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),s&&(this.buffer[n]|=128>>>this.length%8),this.length++}},Bt.exports=z},37672:Bt=>{function z(s){if(!s||s<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=s,this.data=new Uint8Array(s*s),this.reservedBit=new Uint8Array(s*s)}z.prototype.set=function(s,n,l,d){const v=s*this.size+n;this.data[v]=l,d&&(this.reservedBit[v]=!0)},z.prototype.get=function(s,n){return this.data[s*this.size+n]},z.prototype.xor=function(s,n,l){this.data[s*this.size+n]^=l},z.prototype.isReserved=function(s,n){return this.reservedBit[s*this.size+n]},Bt.exports=z},19138:(Bt,z,s)=>{const n=s(30741),l=s(7092);function d(v){this.mode=l.BYTE,"string"==typeof v&&(v=n(v)),this.data=new Uint8Array(v)}d.getBitsLength=function(S){return 8*S},d.prototype.getLength=function(){return this.data.length},d.prototype.getBitsLength=function(){return d.getBitsLength(this.data.length)},d.prototype.write=function(v){for(let S=0,y=this.data.length;S<y;S++)v.put(this.data[S],8)},Bt.exports=d},16554:(Bt,z,s)=>{const n=s(89605),l=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],d=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];z.getBlocksCount=function(S,y){switch(y){case n.L:return l[4*(S-1)+0];case n.M:return l[4*(S-1)+1];case n.Q:return l[4*(S-1)+2];case n.H:return l[4*(S-1)+3];default:return}},z.getTotalCodewordsCount=function(S,y){switch(y){case n.L:return d[4*(S-1)+0];case n.M:return d[4*(S-1)+1];case n.Q:return d[4*(S-1)+2];case n.H:return d[4*(S-1)+3];default:return}}},89605:(Bt,z)=>{z.L={bit:1},z.M={bit:0},z.Q={bit:3},z.H={bit:2},z.isValid=function(l){return l&&typeof l.bit<"u"&&l.bit>=0&&l.bit<4},z.from=function(l,d){if(z.isValid(l))return l;try{return function s(n){if("string"!=typeof n)throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return z.L;case"m":case"medium":return z.M;case"q":case"quartile":return z.Q;case"h":case"high":return z.H;default:throw new Error("Unknown EC Level: "+n)}}(l)}catch{return d}}},30008:(Bt,z,s)=>{const n=s(17610).getSymbolSize;z.getPositions=function(v){const S=n(v);return[[0,0],[S-7,0],[0,S-7]]}},44321:(Bt,z,s)=>{const n=s(17610),v=n.getBCHDigit(1335);z.getEncodedBits=function(y,f){const O=y.bit<<3|f;let P=O<<10;for(;n.getBCHDigit(P)-v>=0;)P^=1335<<n.getBCHDigit(P)-v;return 21522^(O<<10|P)}},5199:(Bt,z)=>{const s=new Uint8Array(512),n=new Uint8Array(256);(function(){let d=1;for(let v=0;v<255;v++)s[v]=d,n[d]=v,d<<=1,256&d&&(d^=285);for(let v=255;v<512;v++)s[v]=s[v-255]})(),z.log=function(d){if(d<1)throw new Error("log("+d+")");return n[d]},z.exp=function(d){return s[d]},z.mul=function(d,v){return 0===d||0===v?0:s[n[d]+n[v]]}},8897:(Bt,z,s)=>{const n=s(7092),l=s(17610);function d(v){this.mode=n.KANJI,this.data=v}d.getBitsLength=function(S){return 13*S},d.prototype.getLength=function(){return this.data.length},d.prototype.getBitsLength=function(){return d.getBitsLength(this.data.length)},d.prototype.write=function(v){let S;for(S=0;S<this.data.length;S++){let y=l.toSJIS(this.data[S]);if(y>=33088&&y<=40956)y-=33088;else{if(!(y>=57408&&y<=60351))throw new Error("Invalid SJIS character: "+this.data[S]+"\nMake sure your charset is UTF-8");y-=49472}y=192*(y>>>8&255)+(255&y),v.put(y,13)}},Bt.exports=d},43800:(Bt,z)=>{z.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function n(l,d,v){switch(l){case z.Patterns.PATTERN000:return(d+v)%2==0;case z.Patterns.PATTERN001:return d%2==0;case z.Patterns.PATTERN010:return v%3==0;case z.Patterns.PATTERN011:return(d+v)%3==0;case z.Patterns.PATTERN100:return(Math.floor(d/2)+Math.floor(v/3))%2==0;case z.Patterns.PATTERN101:return d*v%2+d*v%3==0;case z.Patterns.PATTERN110:return(d*v%2+d*v%3)%2==0;case z.Patterns.PATTERN111:return(d*v%3+(d+v)%2)%2==0;default:throw new Error("bad maskPattern:"+l)}}z.isValid=function(d){return null!=d&&""!==d&&!isNaN(d)&&d>=0&&d<=7},z.from=function(d){return z.isValid(d)?parseInt(d,10):void 0},z.getPenaltyN1=function(d){const v=d.size;let S=0,y=0,f=0,O=null,P=null;for(let _=0;_<v;_++){y=f=0,O=P=null;for(let i=0;i<v;i++){let r=d.get(_,i);r===O?y++:(y>=5&&(S+=y-5+3),O=r,y=1),r=d.get(i,_),r===P?f++:(f>=5&&(S+=f-5+3),P=r,f=1)}y>=5&&(S+=y-5+3),f>=5&&(S+=f-5+3)}return S},z.getPenaltyN2=function(d){const v=d.size;let S=0;for(let y=0;y<v-1;y++)for(let f=0;f<v-1;f++){const O=d.get(y,f)+d.get(y,f+1)+d.get(y+1,f)+d.get(y+1,f+1);(4===O||0===O)&&S++}return 3*S},z.getPenaltyN3=function(d){const v=d.size;let S=0,y=0,f=0;for(let O=0;O<v;O++){y=f=0;for(let P=0;P<v;P++)y=y<<1&2047|d.get(O,P),P>=10&&(1488===y||93===y)&&S++,f=f<<1&2047|d.get(P,O),P>=10&&(1488===f||93===f)&&S++}return 40*S},z.getPenaltyN4=function(d){let v=0;const S=d.data.length;for(let f=0;f<S;f++)v+=d.data[f];return 10*Math.abs(Math.ceil(100*v/S/5)-10)},z.applyMask=function(d,v){const S=v.size;for(let y=0;y<S;y++)for(let f=0;f<S;f++)v.isReserved(f,y)||v.xor(f,y,n(d,f,y))},z.getBestMask=function(d,v){const S=Object.keys(z.Patterns).length;let y=0,f=1/0;for(let O=0;O<S;O++){v(O),z.applyMask(O,d);const P=z.getPenaltyN1(d)+z.getPenaltyN2(d)+z.getPenaltyN3(d)+z.getPenaltyN4(d);z.applyMask(O,d),P<f&&(f=P,y=O)}return y}},7092:(Bt,z,s)=>{const n=s(74242),l=s(94568);z.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},z.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},z.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},z.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},z.MIXED={bit:-1},z.getCharCountIndicator=function(S,y){if(!S.ccBits)throw new Error("Invalid mode: "+S);if(!n.isValid(y))throw new Error("Invalid version: "+y);return y>=1&&y<10?S.ccBits[0]:y<27?S.ccBits[1]:S.ccBits[2]},z.getBestModeForData=function(S){return l.testNumeric(S)?z.NUMERIC:l.testAlphanumeric(S)?z.ALPHANUMERIC:l.testKanji(S)?z.KANJI:z.BYTE},z.toString=function(S){if(S&&S.id)return S.id;throw new Error("Invalid mode")},z.isValid=function(S){return S&&S.bit&&S.ccBits},z.from=function(S,y){if(z.isValid(S))return S;try{return function d(v){if("string"!=typeof v)throw new Error("Param is not a string");switch(v.toLowerCase()){case"numeric":return z.NUMERIC;case"alphanumeric":return z.ALPHANUMERIC;case"kanji":return z.KANJI;case"byte":return z.BYTE;default:throw new Error("Unknown mode: "+v)}}(S)}catch{return y}}},69569:(Bt,z,s)=>{const n=s(7092);function l(d){this.mode=n.NUMERIC,this.data=d.toString()}l.getBitsLength=function(v){return 10*Math.floor(v/3)+(v%3?v%3*3+1:0)},l.prototype.getLength=function(){return this.data.length},l.prototype.getBitsLength=function(){return l.getBitsLength(this.data.length)},l.prototype.write=function(v){let S,y,f;for(S=0;S+3<=this.data.length;S+=3)y=this.data.substr(S,3),f=parseInt(y,10),v.put(f,10);const O=this.data.length-S;O>0&&(y=this.data.substr(S),f=parseInt(y,10),v.put(f,3*O+1))},Bt.exports=l},84333:(Bt,z,s)=>{const n=s(5199);z.mul=function(d,v){const S=new Uint8Array(d.length+v.length-1);for(let y=0;y<d.length;y++)for(let f=0;f<v.length;f++)S[y+f]^=n.mul(d[y],v[f]);return S},z.mod=function(d,v){let S=new Uint8Array(d);for(;S.length-v.length>=0;){const y=S[0];for(let O=0;O<v.length;O++)S[O]^=n.mul(v[O],y);let f=0;for(;f<S.length&&0===S[f];)f++;S=S.slice(f)}return S},z.generateECPolynomial=function(d){let v=new Uint8Array([1]);for(let S=0;S<d;S++)v=z.mul(v,new Uint8Array([1,n.exp(S)]));return v}},92649:(Bt,z,s)=>{const n=s(17610),l=s(89605),d=s(71535),v=s(37672),S=s(68817),y=s(30008),f=s(43800),O=s(16554),P=s(85968),_=s(11167),i=s(44321),r=s(7092),a=s(42765);function I(L,E,g){const R=L.size,B=i.getEncodedBits(E,g);let X,H;for(X=0;X<15;X++)H=1==(B>>X&1),L.set(X<6?X:X<8?X+1:R-15+X,8,H,!0),L.set(8,X<8?R-X-1:X<9?15-X-1+1:15-X-1,H,!0);L.set(R-8,8,1,!0)}function N(L,E,g,R){let B;if(Array.isArray(L))B=a.fromArray(L);else{if("string"!=typeof L)throw new Error("Invalid data");{let ie=E;if(!ie){const ve=a.rawSplit(L);ie=_.getBestVersionForData(ve,g)}B=a.fromString(L,ie||40)}}const X=_.getBestVersionForData(B,g);if(!X)throw new Error("The amount of data is too big to be stored in a QR Code");if(E){if(E<X)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+X+".\n")}else E=X;const H=function V(L,E,g){const R=new d;g.forEach(function(re){R.put(re.mode.bit,4),R.put(re.getLength(),r.getCharCountIndicator(re.mode,L)),re.write(R)});const H=8*(n.getSymbolTotalCodewords(L)-O.getTotalCodewordsCount(L,E));for(R.getLengthInBits()+4<=H&&R.put(0,4);R.getLengthInBits()%8!=0;)R.putBit(0);const J=(H-R.getLengthInBits())/8;for(let re=0;re<J;re++)R.put(re%2?17:236,8);return function T(L,E,g){const R=n.getSymbolTotalCodewords(E),X=R-O.getTotalCodewordsCount(E,g),H=O.getBlocksCount(E,g),re=H-R%H,ie=Math.floor(R/H),ve=Math.floor(X/H),ue=ve+1,se=ie-ve,Z=new P(se);let Se=0;const Ce=new Array(H),Be=new Array(H);let Xe=0;const He=new Uint8Array(L.buffer);for(let ne=0;ne<H;ne++){const G=ne<re?ve:ue;Ce[ne]=He.slice(Se,Se+G),Be[ne]=Z.encode(Ce[ne]),Se+=G,Xe=Math.max(Xe,G)}const Me=new Uint8Array(R);let A,me,Q=0;for(A=0;A<Xe;A++)for(me=0;me<H;me++)A<Ce[me].length&&(Me[Q++]=Ce[me][A]);for(A=0;A<se;A++)for(me=0;me<H;me++)Me[Q++]=Be[me][A];return Me}(R,L,E)}(E,g,B),J=n.getSymbolSize(E),re=new v(J);return function c(L,E){const g=L.size,R=y.getPositions(E);for(let B=0;B<R.length;B++){const X=R[B][0],H=R[B][1];for(let J=-1;J<=7;J++)if(!(X+J<=-1||g<=X+J))for(let re=-1;re<=7;re++)H+re<=-1||g<=H+re||L.set(X+J,H+re,J>=0&&J<=6&&(0===re||6===re)||re>=0&&re<=6&&(0===J||6===J)||J>=2&&J<=4&&re>=2&&re<=4,!0)}}(re,E),function m(L){const E=L.size;for(let g=8;g<E-8;g++){const R=g%2==0;L.set(g,6,R,!0),L.set(6,g,R,!0)}}(re),function M(L,E){const g=S.getPositions(E);for(let R=0;R<g.length;R++){const B=g[R][0],X=g[R][1];for(let H=-2;H<=2;H++)for(let J=-2;J<=2;J++)L.set(B+H,X+J,-2===H||2===H||-2===J||2===J||0===H&&0===J,!0)}}(re,E),I(re,g,0),E>=7&&function D(L,E){const g=L.size,R=_.getEncodedBits(E);let B,X,H;for(let J=0;J<18;J++)B=Math.floor(J/3),X=J%3+g-8-3,H=1==(R>>J&1),L.set(B,X,H,!0),L.set(X,B,H,!0)}(re,E),function U(L,E){const g=L.size;let R=-1,B=g-1,X=7,H=0;for(let J=g-1;J>0;J-=2)for(6===J&&J--;;){for(let re=0;re<2;re++)if(!L.isReserved(B,J-re)){let ie=!1;H<E.length&&(ie=1==(E[H]>>>X&1)),L.set(B,J-re,ie),X--,-1===X&&(H++,X=7)}if(B+=R,B<0||g<=B){B-=R,R=-R;break}}}(re,H),isNaN(R)&&(R=f.getBestMask(re,I.bind(null,re,g))),f.applyMask(R,re),I(re,g,R),{modules:re,version:E,errorCorrectionLevel:g,maskPattern:R,segments:B}}z.create=function(E,g){if(typeof E>"u"||""===E)throw new Error("No input text");let B,X,R=l.M;return typeof g<"u"&&(R=l.from(g.errorCorrectionLevel,l.M),B=_.from(g.version),X=f.from(g.maskPattern),g.toSJISFunc&&n.setToSJISFunction(g.toSJISFunc)),N(E,B,R,X)}},85968:(Bt,z,s)=>{const n=s(84333);function l(d){this.genPoly=void 0,this.degree=d,this.degree&&this.initialize(this.degree)}l.prototype.initialize=function(v){this.degree=v,this.genPoly=n.generateECPolynomial(this.degree)},l.prototype.encode=function(v){if(!this.genPoly)throw new Error("Encoder not initialized");const S=new Uint8Array(v.length+this.degree);S.set(v);const y=n.mod(S,this.genPoly),f=this.degree-y.length;if(f>0){const O=new Uint8Array(this.degree);return O.set(y,f),O}return y},Bt.exports=l},94568:(Bt,z)=>{const s="[0-9]+";let l="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";l=l.replace(/u/g,"\\u");const d="(?:(?![A-Z0-9 $%*+\\-./:]|"+l+")(?:.|[\r\n]))+";z.KANJI=new RegExp(l,"g"),z.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),z.BYTE=new RegExp(d,"g"),z.NUMERIC=new RegExp(s,"g"),z.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const v=new RegExp("^"+l+"$"),S=new RegExp("^"+s+"$"),y=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");z.testKanji=function(O){return v.test(O)},z.testNumeric=function(O){return S.test(O)},z.testAlphanumeric=function(O){return y.test(O)}},42765:(Bt,z,s)=>{const n=s(7092),l=s(69569),d=s(61925),v=s(19138),S=s(8897),y=s(94568),f=s(17610),O=s(19884);function P(D){return unescape(encodeURIComponent(D)).length}function _(D,I,U){const V=[];let T;for(;null!==(T=D.exec(U));)V.push({data:T[0],index:T.index,mode:I,length:T[0].length});return V}function i(D){const I=_(y.NUMERIC,n.NUMERIC,D),U=_(y.ALPHANUMERIC,n.ALPHANUMERIC,D);let V,T;return f.isKanjiModeEnabled()?(V=_(y.BYTE,n.BYTE,D),T=_(y.KANJI,n.KANJI,D)):(V=_(y.BYTE_KANJI,n.BYTE,D),T=[]),I.concat(U,V,T).sort(function(L,E){return L.index-E.index}).map(function(L){return{data:L.data,mode:L.mode,length:L.length}})}function r(D,I){switch(I){case n.NUMERIC:return l.getBitsLength(D);case n.ALPHANUMERIC:return d.getBitsLength(D);case n.KANJI:return S.getBitsLength(D);case n.BYTE:return v.getBitsLength(D)}}function M(D,I){let U;const V=n.getBestModeForData(D);if(U=n.from(I,V),U!==n.BYTE&&U.bit<V.bit)throw new Error('"'+D+'" cannot be encoded with mode '+n.toString(U)+".\n Suggested mode is: "+n.toString(V));switch(U===n.KANJI&&!f.isKanjiModeEnabled()&&(U=n.BYTE),U){case n.NUMERIC:return new l(D);case n.ALPHANUMERIC:return new d(D);case n.KANJI:return new S(D);case n.BYTE:return new v(D)}}z.fromArray=function(I){return I.reduce(function(U,V){return"string"==typeof V?U.push(M(V,null)):V.data&&U.push(M(V.data,V.mode)),U},[])},z.fromString=function(I,U){const T=function c(D){const I=[];for(let U=0;U<D.length;U++){const V=D[U];switch(V.mode){case n.NUMERIC:I.push([V,{data:V.data,mode:n.ALPHANUMERIC,length:V.length},{data:V.data,mode:n.BYTE,length:V.length}]);break;case n.ALPHANUMERIC:I.push([V,{data:V.data,mode:n.BYTE,length:V.length}]);break;case n.KANJI:I.push([V,{data:V.data,mode:n.BYTE,length:P(V.data)}]);break;case n.BYTE:I.push([{data:V.data,mode:n.BYTE,length:P(V.data)}])}}return I}(i(I,f.isKanjiModeEnabled())),N=function m(D,I){const U={},V={start:{}};let T=["start"];for(let N=0;N<D.length;N++){const L=D[N],E=[];for(let g=0;g<L.length;g++){const R=L[g],B=""+N+g;E.push(B),U[B]={node:R,lastCount:0},V[B]={};for(let X=0;X<T.length;X++){const H=T[X];U[H]&&U[H].node.mode===R.mode?(V[H][B]=r(U[H].lastCount+R.length,R.mode)-r(U[H].lastCount,R.mode),U[H].lastCount+=R.length):(U[H]&&(U[H].lastCount=R.length),V[H][B]=r(R.length,R.mode)+4+n.getCharCountIndicator(R.mode,I))}}T=E}for(let N=0;N<T.length;N++)V[T[N]].end=0;return{map:V,table:U}}(T,U),L=O.find_path(N.map,"start","end"),E=[];for(let g=1;g<L.length-1;g++)E.push(N.table[L[g]].node);return z.fromArray(function a(D){return D.reduce(function(I,U){const V=I.length-1>=0?I[I.length-1]:null;return V&&V.mode===U.mode?(I[I.length-1].data+=U.data,I):(I.push(U),I)},[])}(E))},z.rawSplit=function(I){return z.fromArray(i(I,f.isKanjiModeEnabled()))}},17610:(Bt,z)=>{let s;const n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];z.getSymbolSize=function(d){if(!d)throw new Error('"version" cannot be null or undefined');if(d<1||d>40)throw new Error('"version" should be in range from 1 to 40');return 4*d+17},z.getSymbolTotalCodewords=function(d){return n[d]},z.getBCHDigit=function(l){let d=0;for(;0!==l;)d++,l>>>=1;return d},z.setToSJISFunction=function(d){if("function"!=typeof d)throw new Error('"toSJISFunc" is not a valid function.');s=d},z.isKanjiModeEnabled=function(){return typeof s<"u"},z.toSJIS=function(d){return s(d)}},74242:(Bt,z)=>{z.isValid=function(n){return!isNaN(n)&&n>=1&&n<=40}},11167:(Bt,z,s)=>{const n=s(17610),l=s(16554),d=s(89605),v=s(7092),S=s(74242),f=n.getBCHDigit(7973);function P(r,a){return v.getCharCountIndicator(r,a)+4}function _(r,a){let c=0;return r.forEach(function(m){const M=P(m.mode,a);c+=M+m.getBitsLength()}),c}z.from=function(a,c){return S.isValid(a)?parseInt(a,10):c},z.getCapacity=function(a,c,m){if(!S.isValid(a))throw new Error("Invalid QR Code version");typeof m>"u"&&(m=v.BYTE);const I=8*(n.getSymbolTotalCodewords(a)-l.getTotalCodewordsCount(a,c));if(m===v.MIXED)return I;const U=I-P(m,a);switch(m){case v.NUMERIC:return Math.floor(U/10*3);case v.ALPHANUMERIC:return Math.floor(U/11*2);case v.KANJI:return Math.floor(U/13);default:return Math.floor(U/8)}},z.getBestVersionForData=function(a,c){let m;const M=d.from(c,d.M);if(Array.isArray(a)){if(a.length>1)return function i(r,a){for(let c=1;c<=40;c++)if(_(r,c)<=z.getCapacity(c,a,v.MIXED))return c}(a,M);if(0===a.length)return 1;m=a[0]}else m=a;return function O(r,a,c){for(let m=1;m<=40;m++)if(a<=z.getCapacity(m,c,r))return m}(m.mode,m.getLength(),M)},z.getEncodedBits=function(a){if(!S.isValid(a)||a<7)throw new Error("Invalid QR Code version");let c=a<<12;for(;n.getBCHDigit(c)-f>=0;)c^=7973<<n.getBCHDigit(c)-f;return a<<12|c}},36967:(Bt,z,s)=>{const n=s(41618);z.render=function(S,y,f){let O=f,P=y;typeof O>"u"&&(!y||!y.getContext)&&(O=y,y=void 0),y||(P=function d(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),O=n.getOptions(O);const _=n.getImageWidth(S.modules.size,O),i=P.getContext("2d"),r=i.createImageData(_,_);return n.qrToImageData(r.data,S,O),function l(v,S,y){v.clearRect(0,0,S.width,S.height),S.style||(S.style={}),S.height=y,S.width=y,S.style.height=y+"px",S.style.width=y+"px"}(i,P,_),i.putImageData(r,0,0),P},z.renderToDataURL=function(S,y,f){let O=f;return typeof O>"u"&&(!y||!y.getContext)&&(O=y,y=void 0),O||(O={}),z.render(S,y,O).toDataURL(O.type||"image/png",(O.rendererOpts||{}).quality)}},66288:(Bt,z,s)=>{const n=s(41618);function l(S,y){const f=S.a/255,O=y+'="'+S.hex+'"';return f<1?O+" "+y+'-opacity="'+f.toFixed(2).slice(1)+'"':O}function d(S,y,f){let O=S+y;return typeof f<"u"&&(O+=" "+f),O}z.render=function(y,f,O){const P=n.getOptions(f),_=y.modules.size,i=y.modules.data,r=_+2*P.margin,a=P.color.light.a?"<path "+l(P.color.light,"fill")+' d="M0 0h'+r+"v"+r+'H0z"/>':"",c="<path "+l(P.color.dark,"stroke")+' d="'+function v(S,y,f){let O="",P=0,_=!1,i=0;for(let r=0;r<S.length;r++){const a=Math.floor(r%y),c=Math.floor(r/y);!a&&!_&&(_=!0),S[r]?(i++,r>0&&a>0&&S[r-1]||(O+=_?d("M",a+f,.5+c+f):d("m",P,0),P=0,_=!1),a+1<y&&S[r+1]||(O+=d("h",i),i=0)):P++}return O}(i,_,P.margin)+'"/>',D='<svg xmlns="http://www.w3.org/2000/svg" '+(P.width?'width="'+P.width+'" height="'+P.width+'" ':"")+'viewBox="0 0 '+r+" "+r+'" shape-rendering="crispEdges">'+a+c+"</svg>\n";return"function"==typeof O&&O(null,D),D}},41618:(Bt,z)=>{function s(n){if("number"==typeof n&&(n=n.toString()),"string"!=typeof n)throw new Error("Color should be defined as hex string");let l=n.slice().replace("#","").split("");if(l.length<3||5===l.length||l.length>8)throw new Error("Invalid hex color: "+n);(3===l.length||4===l.length)&&(l=Array.prototype.concat.apply([],l.map(function(v){return[v,v]}))),6===l.length&&l.push("F","F");const d=parseInt(l.join(""),16);return{r:d>>24&255,g:d>>16&255,b:d>>8&255,a:255&d,hex:"#"+l.slice(0,6).join("")}}z.getOptions=function(l){l||(l={}),l.color||(l.color={});const v=l.width&&l.width>=21?l.width:void 0;return{width:v,scale:v?4:l.scale||4,margin:typeof l.margin>"u"||null===l.margin||l.margin<0?4:l.margin,color:{dark:s(l.color.dark||"#000000ff"),light:s(l.color.light||"#ffffffff")},type:l.type,rendererOpts:l.rendererOpts||{}}},z.getScale=function(l,d){return d.width&&d.width>=l+2*d.margin?d.width/(l+2*d.margin):d.scale},z.getImageWidth=function(l,d){const v=z.getScale(l,d);return Math.floor((l+2*d.margin)*v)},z.qrToImageData=function(l,d,v){const S=d.modules.size,y=d.modules.data,f=z.getScale(S,v),O=Math.floor((S+2*v.margin)*f),P=v.margin*f,_=[v.color.light,v.color.dark];for(let i=0;i<O;i++)for(let r=0;r<O;r++){let a=4*(i*O+r),c=v.color.light;i>=P&&r>=P&&i<O-P&&r<O-P&&(c=_[y[Math.floor((i-P)/f)*S+Math.floor((r-P)/f)]?1:0]),l[a++]=c.r,l[a++]=c.g,l[a++]=c.b,l[a]=c.a}}},21531:function(Bt){Bt.exports=function(z){function s(l){if(n[l])return n[l].exports;var d=n[l]={i:l,l:!1,exports:{}};return z[l].call(d.exports,d,d.exports,s),d.l=!0,d.exports}var n={};return s.m=z,s.c=n,s.i=function(l){return l},s.d=function(l,d,v){s.o(l,d)||Object.defineProperty(l,d,{configurable:!1,enumerable:!0,get:v})},s.n=function(l){var d=l&&l.__esModule?function(){return l.default}:function(){return l};return s.d(d,"a",d),d},s.o=function(l,d){return Object.prototype.hasOwnProperty.call(l,d)},s.p="",s(s.s=214)}([function(z,s,n){"use strict";s.__esModule=!0,s.default=function(l,d){if(!(l instanceof d))throw new TypeError("Cannot call a class as a function")}},function(z,s,n){"use strict";s.__esModule=!0;var v,d=(v=n(96))&&v.__esModule?v:{default:v};s.default=function(){function v(S,y){for(var f=0;f<y.length;f++){var O=y[f];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),(0,d.default)(S,O.key,O)}}return function(S,y,f){return y&&v(S.prototype,y),f&&v(S,f),S}}()},function(z,s,n){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.fatal=s.error=s.warn=s.debug=s.info=s.trace=s.getRecordedLogs=s.getLogger=s.establishLogger=s.LEVELS=void 0;var l=n(100),d=n(123),v=void 0,S=void 0,f=function(P){return function(_,i){v[P](function(P){return function(_){return"("+P+") "+_}}(_)(i))}},O=s.LEVELS={TRACE:"trace",INFO:"info",DEBUG:"debug",WARN:"warn",ERROR:"error",FATAL:"fatal"};s.establishLogger=function(P){var _=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=[];if(r.push({level:P,stream:new d.RawStream,type:"raw"}),i){var a=i.map(function(c){c.level=P});r=r.concat(a)}_&&(S=[],r.push({level:P,stream:{write:function(c){var m="["+c.time.toISOString()+"] "+l.nameFromLevel[c.level]+": "+c.msg;S.push(m)}}})),v=(0,l.createLogger)({level:P,name:"red5pro-sdk",streams:r})},s.getLogger=function(){return v},s.getRecordedLogs=function(){return S},s.trace=f(O.TRACE),s.info=f(O.INFO),s.debug=f(O.DEBUG),s.warn=f(O.WARN),s.error=f(O.ERROR),s.fatal=f(O.FATAL)},function(z,s,n){z.exports={default:n(163),__esModule:!0}},function(z,s){var n=z.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(z,s,n){"use strict";function l(P){return P&&P.__esModule?P:{default:P}}s.__esModule=!0;var v=l(n(146)),y=l(n(144)),O=l(n(63));s.default=function(P,_){if("function"!=typeof _&&null!==_)throw new TypeError("Super expression must either be null or a function, not "+(void 0===_?"undefined":(0,O.default)(_)));P.prototype=(0,y.default)(_&&_.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),_&&(v.default?(0,v.default)(P,_):P.__proto__=_)}},function(z,s,n){"use strict";s.__esModule=!0;var v,d=(v=n(63))&&v.__esModule?v:{default:v};s.default=function(v,S){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!S||"object"!==(void 0===S?"undefined":(0,d.default)(S))&&"function"!=typeof S?v:S}},function(z,s,n){"use strict";function d(E){var g=screen.orientation?screen.orientation.angle:void 0,R=void 0===g?window.matchMedia("(orientation: portrait)").matches?0:90:g,B=void 0,X=c.length;for((0,_.debug)("[window:onorientationchange]","orientation("+R+")."),B=0;B<X;B++)c[B]((R+90)%360)}function v(E){var g=void 0,R=m.length;for(g=0;g<R;g++)m[g]();M=!0}Object.defineProperty(s,"__esModule",{value:!0});var E,y=(E=n(63))&&E.__esModule?E:{default:E},f=n(8),O=n(118),P=n(117),_=n(2),i=[],r=[],a=!1,c=[],m=[],M=!1,I=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(g){return window.setTimeout(g,1e3)},U=window.adapter,V=!!navigator.mozGetUserMedia,T=!!document.documentMode,N=U?"edge"===window.adapter.browserDetails.browser.toLowerCase():!T&&!!window.StyleMedia,L="ontouchstart"in window||window.DocumentTouch&&window.document instanceof window.DocumentTouch;U||(navigator.getUserMedia=navigator.mediaDevices&&navigator.mediaDevices.getUserMedia||navigator.getUserMedia||navigator.mozGetUserMedia||navigator.webkitGetUserMedia||navigator.msGetUserMedia),s.default={requestFrame:I,getIsMoz:function(){return V},getIsEdge:function(){return N},isTouchEnabled:function(){return L},supportsWebSocket:function(){return!!window.WebSocket},supportsHLS:function(){var E=document.createElement("video");return E.canPlayType("application/vnd.apple.mpegURL").length>0||E.canPlayType("application/x-mpegURL").length>0||E.canPlayType("audio/mpegurl").length>0||E.canPlayType("audio/x-mpegurl").length>0},supportsFlashVersion:function(E){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".";return function(){var E="0,0,0";try{E=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch{try{navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(E=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch{}}return E.split(",")}()[0]>=E.split(g)[0]},resolveElement:function(E){try{var g=document.getElementById(E);if(!g)throw new O.NoElementFoundError("Element with id("+E+") could not be found.");return g}catch(R){throw new O.NoElementFoundError("Error in accessing element with id("+E+"). "+R.message)}},createWebSocket:function(E){return new WebSocket(E)},setVideoSource:function(E,g){var R=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{E.srcObject=g}catch(X){(0,_.warn)("[setVideoSource:obj]","Could not set srcObject: "+X.message),V?E.mozSrcObject=g:E.src=window.URL.createObjectURL(g)}if(R)try{var B=E.play();B&&B.then(function(){return(0,_.debug)("[setVideoSource:action]","play (START)")}).catch(function(X){return(0,_.warn)("[setVideoSource:action]","play (FAULT) "+(X.message?X.message:X))})}catch(X){(0,_.warn)("[setVideoSource:action]","play (CATCH::FAULT) "+X.message);try{E.setAttribute("autoplay",!1),E.pause()}catch(H){(0,_.warn)("[setVideoSource:action]","pause (CATCH::FAULT) "+H.message)}}else try{E.setAttribute("autoplay",!1),E.pause()}catch{}},injectScript:function(E){var g=new f.DeferredPromise,R=document.createElement("script");return R.type="text/javascript",R.onload=function(){g.resolve()},R.onreadystatechange=function(){"loaded"!==R.readyState&&"complete"!==R.readyState||(R.onreadystatechange=null,g.resolve())},R.src=E,document.getElementsByTagName("head")[0].appendChild(R),g.promise},gUM:function(E){return(navigator.mediaDevices||navigator).getUserMedia(E)},setGlobal:function(E,g){window[E]=g},getSwfObject:function(){return window.swfobject},getEmbedObject:function(E){return document.getElementById(E)},getElementId:function(E){return E.getAttribute("id")},addOrientationChangeHandler:function(E){var g=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];"onorientationchange"in window&&((0,_.debug)("[window:orientation]","[addOrientationChangeHandler]","adding responder."),c.push(E),g&&d()),1===c.length&&((0,_.debug)("[window:orientation]","[addOrientationChangeHandler]","onorientationchange added."),window.addEventListener("orientationchange",d))},removeOrientationChangeHandler:function(E){for(var g=c.length;--g>-1;)if(c[g]===E){c.slice(g,1);break}0===c.length&&((0,_.debug)("[window:orientation]","[removeOrientationChangeHandler]:: onorientationchange removed."),window.removeEventListener("onorientationchange",d))},addCloseHandler:function(E){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;m.splice(-1===g?m.length:g,0,E),M||window.addEventListener("unload",v)},removeCloseHandler:function(E){for(var g=m.length;--g>-1;)if(m[g]===E){m.slice(g,1);break}},invoke:function(E,g){window.hasOwnProperty(E)&&window[E].call(window,g)},toggleFullScreen:function(E){window.screenfull&&window.screenfull.enabled&&window.screenfull.toggle(E)},onFullScreenStateChange:function(E){r.push(E),function l(){!a&&window.screenfull&&window.screenfull.enabled&&(a=!0,window.screenfull.onchange(function(){var E=void 0,g=r.length;for(E=0;E<g;E++)r[E](window.screenfull.isFullscreen)}))}(window)},onOrientationMetadata:P.onOrientationMetadata,onStreamingModeMetadata:P.onStreamingModeMetadata,hasAttributeDefined:function(E,g){var R=E.getAttribute(g);return null!==R&&void 0!==(void 0===R?"undefined":(0,y.default)(R))&&"string"==typeof R&&(""===R||"true"===R||R===g)},hasClassDefined:function(E,g){return E.classList.contains(g)},createElement:function(E,g){return"text"===E?document.createTextNode(g.toString()):document.createElement(E,g)},addSubscriptionAssignmentHandler:function(E){i.push(E),void 0===window.setSubscriberId&&(window.setSubscriberId=function(g){i.shift()(g)})},getMouseXFromEvent:function(E){return E||(E=window.event),E.pageX?E.pageX:E.clientX?E.clientX+document.body.scrollLeft+document.documentElement.scrollLeft:0},getScrollX:function(){return void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft},createEvent:function(E){return document.createEvent(E)},getGlobal:function(){return window}}},function(z,s,n){"use strict";function l(P){return P&&P.__esModule?P:{default:P}}Object.defineProperty(s,"__esModule",{value:!0}),s.Future=s.DeferredPromise=void 0;var v=l(n(62)),y=l(n(0)),f=function P(){var _=this;(0,y.default)(this,P),this.resolve=void 0,this.reject=void 0,this.promise=new v.default(function(i,r){_.resolve=i,_.reject=r})},O={createIfNotExist:function(P){var _=P;return _||(_=new f),_}};s.DeferredPromise=f,s.Future=O},function(z,s,n){var l=n(75)("wks"),d=n(57),v=n(12).Symbol,S="function"==typeof v;(z.exports=function(y){return l[y]||(l[y]=S&&v[y]||(S?v:d)("Symbol."+y))}).store=l},function(z,s,n){z.exports={default:n(154),__esModule:!0}},function(z,s,n){var l=n(12),d=n(4),v=n(20),S=n(22),y=function(f,O,P){var _,i,r,a=f&y.F,c=f&y.G,m=f&y.S,M=f&y.P,D=f&y.B,I=f&y.W,U=c?d:d[O]||(d[O]={}),V=U.prototype,T=c?l:m?l[O]:(l[O]||{}).prototype;for(_ in c&&(P=O),P)(i=!a&&T&&void 0!==T[_])&&_ in U||(r=i?T[_]:P[_],U[_]=c&&"function"!=typeof T[_]?P[_]:D&&i?v(r,l):I&&T[_]==r?function(N){var L=function(E,g,R){if(this instanceof N){switch(arguments.length){case 0:return new N;case 1:return new N(E);case 2:return new N(E,g)}return new N(E,g,R)}return N.apply(this,arguments)};return L.prototype=N.prototype,L}(r):M&&"function"==typeof r?v(Function.call,r):r,M&&((U.virtual||(U.virtual={}))[_]=r,f&y.R&&V&&!V[_]&&S(V,_,r)))};y.F=1,y.G=2,y.S=4,y.P=8,y.B=16,y.W=32,y.U=64,y.R=128,z.exports=y},function(z,s){var n=z.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(z,s,n){"use strict";function l(N){return N&&N.__esModule?N:{default:N}}Object.defineProperty(s,"__esModule",{value:!0}),s.MessageTransportStateEventTypes=s.SharedObjectEventTypes=s.FailoverSubscriberEventTypes=s.RTMPSubscriberEventTypes=s.RTCSubscriberEventTypes=s.SubscriberEventTypes=s.FailoverPublisherEventTypes=s.RTMPPublisherEventTypes=s.RTCPublisherEventTypes=s.PublisherEventTypes=s.MessageTransportStateEvent=s.SharedObjectEvent=s.SubscriberEvent=s.PublisherEvent=s.Event=void 0;var v=l(n(3)),y=l(n(6)),O=l(n(5)),_=l(n(0)),r=l(n(1)),a=n(84);Object.defineProperty(s,"PublisherEventTypes",{enumerable:!0,get:function(){return a.PublisherEventTypes}}),Object.defineProperty(s,"RTCPublisherEventTypes",{enumerable:!0,get:function(){return a.RTCPublisherEventTypes}}),Object.defineProperty(s,"RTMPPublisherEventTypes",{enumerable:!0,get:function(){return a.RTMPPublisherEventTypes}}),Object.defineProperty(s,"FailoverPublisherEventTypes",{enumerable:!0,get:function(){return a.FailoverPublisherEventTypes}});var c=n(86);Object.defineProperty(s,"SubscriberEventTypes",{enumerable:!0,get:function(){return c.SubscriberEventTypes}}),Object.defineProperty(s,"RTCSubscriberEventTypes",{enumerable:!0,get:function(){return c.RTCSubscriberEventTypes}}),Object.defineProperty(s,"RTMPSubscriberEventTypes",{enumerable:!0,get:function(){return c.RTMPSubscriberEventTypes}}),Object.defineProperty(s,"FailoverSubscriberEventTypes",{enumerable:!0,get:function(){return c.FailoverSubscriberEventTypes}});var m=n(85);Object.defineProperty(s,"SharedObjectEventTypes",{enumerable:!0,get:function(){return m.SharedObjectEventTypes}});var M=n(83);Object.defineProperty(s,"MessageTransportStateEventTypes",{enumerable:!0,get:function(){return M.MessageTransportStateEventTypes}});var D=function(){function N(L){var E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;(0,_.default)(this,N),this._type=L,this._data=E}return(0,r.default)(N,[{key:"type",get:function(){return this._type}},{key:"data",get:function(){return this._data}}]),N}(),I=function(N){function L(E,g,R){(0,_.default)(this,L);var B=(0,y.default)(this,(L.__proto__||(0,v.default)(L)).call(this,E,R));return B._publisher=g,B}return(0,O.default)(L,N),(0,r.default)(L,[{key:"publisher",get:function(){return this._publisher}}]),L}(D),U=function(N){function L(E,g,R){(0,_.default)(this,L);var B=(0,y.default)(this,(L.__proto__||(0,v.default)(L)).call(this,E,R));return B._subscriber=g,B}return(0,O.default)(L,N),(0,r.default)(L,[{key:"subscriber",get:function(){return this._subscriber}}]),L}(D),V=function(N){function L(E,g,R){(0,_.default)(this,L);var B=(0,y.default)(this,(L.__proto__||(0,v.default)(L)).call(this,E,R));return B._name=g,B}return(0,O.default)(L,N),(0,r.default)(L,[{key:"name",get:function(){return this._name}}]),L}(D),T=function(N){function L(E,g,R){(0,_.default)(this,L);var B=(0,y.default)(this,(L.__proto__||(0,v.default)(L)).call(this,E,R));return B._name=g,B}return(0,O.default)(L,N),(0,r.default)(L,[{key:"name",get:function(){return this._name}}]),L}(D);s.Event=D,s.PublisherEvent=I,s.SubscriberEvent=U,s.SharedObjectEvent=V,s.MessageTransportStateEvent=T},function(z,s){z.exports=function(n){return"object"==typeof n?null!==n:"function"==typeof n}},function(z,s,n){var l=n(16),d=n(104),v=n(77),S=Object.defineProperty;s.f=n(17)?Object.defineProperty:function(y,f,O){if(l(y),f=v(f,!0),l(O),d)try{return S(y,f,O)}catch{}if("get"in O||"set"in O)throw TypeError("Accessors not supported!");return"value"in O&&(y[f]=O.value),y}},function(z,s,n){var l=n(14);z.exports=function(d){if(!l(d))throw TypeError(d+" is not an object!");return d}},function(z,s,n){z.exports=!n(26)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(z,s,n){z.exports={default:n(161),__esModule:!0}},function(z,s,n){"use strict";function l(P){return P&&P.__esModule?P:{default:P}}Object.defineProperty(s,"__esModule",{value:!0});var v=l(n(0)),y=l(n(1)),f="RED5PRO",O=function(){function P(){(0,v.default)(this,P),this._callbacks={},this._callbacks[f]=[]}return(0,y.default)(P,[{key:"_notify",value:function(_,i){var r=void 0,a=_.length;for(r=0;r<a;r++)_[r](i)}},{key:"on",value:function(_,i){if("function"==typeof i){if("*"===_)return void this._callbacks[f].push(i);void 0===this._callbacks[_]&&(this._callbacks[_]=[]),-1===this._callbacks[_].indexOf(i)&&this._callbacks[_].push(i)}}},{key:"off",value:function(_,i){var r=this._callbacks[_];if("*"===_&&(r=this._callbacks[f]),r){var a=r.indexOf(i);-1!==a&&r.splice(a,1)}}},{key:"trigger",value:function(_){var i=_.type;this._callbacks[i]&&this._notify(this._callbacks[i],_),this._notify(this._callbacks[f],_)}}]),P}();s.default=O},function(z,s,n){var l=n(64);z.exports=function(d,v,S){if(l(d),void 0===v)return d;switch(S){case 1:return function(y){return d.call(v,y)};case 2:return function(y,f){return d.call(v,y,f)};case 3:return function(y,f,O){return d.call(v,y,f,O)}}return function(){return d.apply(v,arguments)}}},function(z,s){var n={}.hasOwnProperty;z.exports=function(l,d){return n.call(l,d)}},function(z,s,n){var l=n(15),d=n(41);z.exports=n(17)?function(v,S,y){return l.f(v,S,d(1,y))}:function(v,S,y){return v[S]=y,v}},function(z,s,n){var l=n(69),d=n(50);z.exports=function(v){return l(d(v))}},function(z,s,n){"use strict";function l(R){return R&&R.__esModule?R:{default:R}}Object.defineProperty(s,"__esModule",{value:!0}),s.PlaybackControlsImpl=s.PlaybackControls=s.PlaybackController=void 0;var v=l(n(3)),y=l(n(0)),O=l(n(1)),_=l(n(6)),r=l(n(5)),c=l(n(19)),M=l(n(7)),I=l(n(131)),U=n(91),V=n(37),T=n(2),N="PlaybackControls",L=function(R){function B(){return(0,y.default)(this,B),(0,_.default)(this,(B.__proto__||(0,v.default)(B)).call(this))}return(0,r.default)(B,R),(0,O.default)(B,[{key:"play",value:function(){}},{key:"pause",value:function(){}},{key:"resume",value:function(){}},{key:"stop",value:function(){}},{key:"mute",value:function(){}},{key:"unmute",value:function(){}},{key:"setVolume",value:function(X){}},{key:"seekTo",value:function(X){}},{key:"toggleFullScreen",value:function(){}}]),B}(c.default),E=function(){function R(){(0,y.default)(this,R)}return(0,O.default)(R,[{key:"getVolume",value:function(){}},{key:"setVolume",value:function(B){}},{key:"setSeekTime",value:function(B){}},{key:"setPlaybackDuration",value:function(B){}},{key:"getState",value:function(){}},{key:"setState",value:function(B){}},{key:"setAsVOD",value:function(B){}},{key:"enable",value:function(B){}}]),R}(),g=function(R){function B(X,H){(0,y.default)(this,B);var J=(0,_.default)(this,(B.__proto__||(0,v.default)(B)).call(this));return J.player=X,J.container=H,J._controlbar=void 0,J._playPauseButton=void 0,J._muteButton=void 0,J._volumeField=void 0,J._seekTimeField=void 0,J._timeField=void 0,J._fullScreenButton=void 0,J._state=V.PlaybackState.IDLE,J._mutedState=!1,J._resumeAfterSeek=!1,J._playbackDuration=0,J._volumeValue=1,J._onPlayPauseClickBound=J._onPlayPauseClick.bind(J),J.decorate(J.container),J}return(0,r.default)(B,R),(0,O.default)(B,[{key:"decorate",value:function(X){(0,T.debug)(N,"[decorate]");var H=M.default.createElement("div");H.classList.add("red5pro-media-control-bar"),this._playPauseButton=this._createPlayPauseButton(),this._muteButton=this._createMuteButton(),this._volumeField=this._createVolumeControl(),this._seekTimeField=this._createSeekControl(),this._timeField=this._createPlaybackTime(),this._fullScreenButton=this._createFullScreenToggle(),H.appendChild(this._playPauseButton),H.appendChild(this._timeField),H.appendChild(this._seekTimeField.view),H.appendChild(this._muteButton),H.appendChild(this._volumeField.view),H.appendChild(this._fullScreenButton),X.appendChild(H),this._controlbar=H;var J=void 0,re=function(){clearTimeout(J),J=setTimeout(function(){H.classList.remove("red5pro-media-control-bar-show")},6e3)};M.default.isTouchEnabled()?(H.classList.add("red5pro-media-control-bar-show"),this.container.addEventListener("touchend",function(){H.classList.toggle("red5pro-media-control-bar-show"),re()}),re()):(this.container.addEventListener("mouseover",function(){H.classList.add("red5pro-media-control-bar-show")}),this.container.addEventListener("mouseout",function(){H.classList.remove("red5pro-media-control-bar-show")})),this.setState(V.PlaybackState.IDLE).onFullScreenChange(!1).setSeekTime(0).enable(!1)}},{key:"_onPlayPauseClick",value:function(){this.getState()===V.PlaybackState.PLAYING?this.player.pause():this.getState()===V.PlaybackState.PAUSED?this.player.resume():this.player.play()}},{key:"_createPlayPauseButton",value:function(){var X=M.default.createElement("button");return X.setAttribute("aria-label","Toggle Playback"),X.classList.add("red5pro-media-control-element"),X.classList.add("red5pro-media-element-button"),X.classList.add("red5pro-media-playpause-button"),X}},{key:"_createMuteButton",value:function(){var X=this,H=M.default.createElement("button");return H.setAttribute("aria-label","Toggle Mute Audio"),H.classList.add("red5pro-media-control-element"),H.classList.add("red5pro-media-element-button"),H.classList.add("red5pro-media-muteunmute-button"),H.addEventListener("click",function(){X.getMutedState()?(X.player.unmute(),X.setMutedState(!1)):(X.player.mute(),X.setMutedState(!0))}),H}},{key:"_createVolumeControl",value:function(){var X=this,H=new I.default("volume");return H.view.classList.add("red5pro-media-control-element"),H.view.classList.add("red5pro-media-volume-slider"),H.view.classList.add("red5pro-media-slider"),H.on(U.SliderEventTypes.CHANGE,function(J){var re=Number(J.data);X.player.setVolume(re)}),H}},{key:"_createSeekControl",value:function(){var X=this,H=new I.default("seek");return H.view.classList.add("red5pro-media-control-element"),H.view.classList.add("red5pro-media-seektime-slider"),H.view.classList.add("red5pro-media-slider"),H.on(U.SliderEventTypes.CHANGE_START,function(){X.getState()===V.PlaybackState.PLAYING&&(X._resumeAfterSeek=!0,X.player.pause())}),H.on(U.SliderEventTypes.CHANGE,function(J){var re=Number(J.data);X.player.seekTo(re,0===X._playbackDuration?void 0:X._playbackDuration),X.setSeekTime(re*X._playbackDuration,X._playbackDuration)}),H.on(U.SliderEventTypes.CHANGE_COMPLETE,function(){X._resumeAfterSeek&&X.getState()===V.PlaybackState.PAUSED&&(X._resumeAfterSeek=!1,X.player.resume())}),H}},{key:"_createPlaybackTime",value:function(){var X=M.default.createElement("span"),H=M.default.createElement("text","hello!");return X.classList.add("red5pro-media-control-element"),X.classList.add("red5pro-media-time-field"),X.appendChild(H),X}},{key:"_createFullScreenToggle",value:function(){var X=this,H=M.default.createElement("button");return H.setAttribute("aria-label","Toggle Fullscreen"),H.classList.add("red5pro-media-control-element"),H.classList.add("red5pro-media-element-button"),H.classList.add("red5pro-media-fullscreen-button"),H.addEventListener("click",function(){X.player.toggleFullScreen()}),H}},{key:"enable",value:function(X){X?(this._playPauseButton.classList.remove("red5pro-media-element-button-disabled"),this._playPauseButton.addEventListener("click",this._onPlayPauseClickBound)):(this._playPauseButton.classList.add("red5pro-media-element-button-disabled"),this._playPauseButton.removeEventListener("click",this._onPlayPauseClickBound))}},{key:"formatTime",value:function(X){var re,H=0,J=0===X?0:parseInt(X/60);J>=60&&(H=parseInt(J/60),J%=60),re=0===X?0:parseInt(X%60);var ie=H<10?["0"+H]:[H];return ie.push(J<10?["0"+J]:[J]),ie.push(re<10?["0"+re]:[re]),ie.join(":")}},{key:"getVolume",value:function(){return this._volumeValue}},{key:"setVolume",value:function(X){return this._volumeField.value=X,this._volumeValue=X,0===X?this.setMutedState(!0):this.getMutedState()&&this.setMutedState(!1),this}},{key:"setSeekTime",value:function(X){var H=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._seekTimeField.value=0===H?0:X/H,0!==this._playbackDuration&&parseInt(this._playbackDuration)<=parseInt(X)&&(this._seekTimeField.value=1),this._timeField.innerText=this.formatTime(Math.floor(X)),this}},{key:"setPlaybackDuration",value:function(X){(0,T.debug)(N,"[setplaybackduration]: "+X),this._playbackDuration=X}},{key:"getState",value:function(){return this._state}},{key:"setState",value:function(X){return(0,T.debug)(N,"[setState]: "+V.PlaybackStateReadable[X]),this._state=X,this.onStateChange(this._state),this}},{key:"getMutedState",value:function(){return"muted"in this.player?this.player.muted:this._mutedState}},{key:"setMutedState",value:function(X){return this._mutedState=X,this.onMutedStateChange(this._mutedState),this}},{key:"onStateChange",value:function(X){return X===V.PlaybackState.PLAYING?(this._playPauseButton.classList.remove("red5pro-media-play-button"),this._playPauseButton.classList.add("red5pro-media-pause-button")):(this._playPauseButton.classList.add("red5pro-media-play-button"),this._playPauseButton.classList.remove("red5pro-media-pause-button")),this}},{key:"onMutedStateChange",value:function(X){X?(this._muteButton.classList.add("red5pro-media-mute-button"),this._muteButton.classList.remove("red5pro-media-unmute-button"),this._volumeField.value=0):(this._muteButton.classList.remove("red5pro-media-mute-button"),this._muteButton.classList.add("red5pro-media-unmute-button"),this._volumeField.value=this._volumeValue)}},{key:"onFullScreenChange",value:function(X){return X?(this._fullScreenButton.classList.add("red5pro-media-exit-fullscreen-button"),this._fullScreenButton.classList.remove("red5pro-media-fullscreen-button")):(this._fullScreenButton.classList.remove("red5pro-media-exit-fullscreen-button"),this._fullScreenButton.classList.add("red5pro-media-fullscreen-button")),this}},{key:"setAsVOD",value:function(X){(0,T.debug)(N,"[setAsVOD]: "+X),X?this._seekTimeField.disabled=!1:(this._seekTimeField.value=0,this._seekTimeField.disabled=!0)}},{key:"detach",value:function(){this.enable(!1),this._controlbar&&this._controlbar.parentNode===this.container&&this.container.removeChild(this._controlbar)}}]),B}(E);s.PlaybackController=L,s.PlaybackControls=E,s.PlaybackControlsImpl=g},function(z,s,n){"use strict";function l(f){return f&&f.__esModule?f:{default:f}}Object.defineProperty(s,"__esModule",{value:!0}),s.isObjectEmpty=s.metadataResolutionToObject=s.deepCopy=s.deepDefine=void 0;var v=l(n(38)),y=l(n(10));s.deepDefine=function(f,O,P){for(var _=0,i=f,r=O.pop(),a=O.length;_<a;_++){var c=O[_];i[c]=i[c]||{},i=i[c]}i[r]=P},s.deepCopy=function(f){var O=(0,y.default)(f);return JSON.parse(O)},s.metadataResolutionToObject=function(f){if("string"==typeof f){var O=f.split(",");return{width:parseInt(O[0]),height:parseInt(O[1])}}return f},s.isObjectEmpty=function(f){return 0===(0,v.default)(f).length&&f.constructor===Object}},function(z,s){z.exports=function(n){try{return!!n()}catch{return!0}}},function(z,s,n){"use strict";var l=n(187)(!0);n(70)(String,"String",function(d){this._t=String(d),this._i=0},function(){var d,v=this._t,S=this._i;return S>=v.length?{value:void 0,done:!0}:(d=l(v,S),this._i+=d.length,{value:d,done:!1})})},function(z,s,n){n(192);for(var l=n(12),d=n(22),v=n(32),S=n(9)("toStringTag"),y=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],f=0;f<5;f++){var O=y[f],P=l[O],_=P&&P.prototype;_&&!_[S]&&d(_,S,O),v[O]=v.Array}},function(z,s,n){"use strict";function l(R){return R&&R.__esModule?R:{default:R}}Object.defineProperty(s,"__esModule",{value:!0}),s.RTCSessionDescription=s.RTCIceCandidate=s.RTCPeerConnection=s.updateBandwidth=s.forceUserMedia=s.getUserMedia=s.supportsDataChannel=s.isSupported=s.determineSupportedResolution=s.quickResolutionSupport=void 0;var v=l(n(10)),y=l(n(7)),f=n(8),O=n(93),P=n(25),_=n(2),i=[{label:"4K(UHD)",width:3840,height:2160},{label:"1080p(FHD)",width:1920,height:1080},{label:"UXGA",width:1600,height:1200},{label:"720p(HD)",width:1280,height:720},{label:"SVGA",width:800,height:600},{label:"VGA",width:640,height:480},{label:"360p(nHD)",width:640,height:360},{label:"CIF",width:352,height:288},{label:"QVGA",width:320,height:240},{label:"QCIF",width:176,height:144},{label:"QQVGA",width:160,height:120}],a=function(R){return R.exact||R.ideal||R.max||R.min||R},c=(0,O.curry)(function(R,B){if("boolean"==typeof R.video)return!0;var X=R.video.hasOwnProperty("width")?a(R.video.width):0,H=R.video.hasOwnProperty("height")?a(R.video.height):0,J=X===B.width&&H===B.height;return J&&(0,_.debug)("[gum:isExact]","Found matching resolution for "+B.width+", "+B.height+"."),J}),m=(0,O.curry)(function(R,B){var X=R.video.hasOwnProperty("width")?a(R.video.width):0,H=R.video.hasOwnProperty("height")?a(R.video.height):0;return B.width*B.height<X*H}),M=(0,O.curry)(function(R,B){var X=(0,O.filter)(c(B))(R);return(0,_.debug)("[gum:hasMatchingFormat]","Filtered list: "+(0,v.default)(X,null,2)),X.length>0}),D=(0,O.curry)(function(R,B){var X=m(B);return(0,O.filter)(X)(R)}),U=function R(B,X,H){if(0!=X.length){var J=X.shift();B.video.width={exact:J.width},B.video.height={exact:J.height},y.default.gUM(B).then(function(re){H.resolve({media:re,constraints:B})}).catch(function(re){var ie="string"==typeof re?re:[re.name,re.message].join(": ");(0,_.debug)("[gum:getUserMedia]","Failure in getUserMedia: "+ie+". Attempting other resolution tests..."),(0,_.debug)("[gUM:findformat]","Constraints declined by browser: "+(0,v.default)(B,null,2)),R(B,X,H)})}else!function(R,B){R.video=!0,y.default.gUM(R).then(function(X){B.resolve({media:X,constraints:R})}).catch(function(X){var H="string"==typeof X?X:[X.name,X.message].join(": ");(0,_.debug)("[gum:getUserMedia]","Failure in getUserMedia: "+H+". Attempting other resolution tests..."),(0,_.debug)("[gUM:findformat]","Constraints declined by browser: "+(0,v.default)(R,null,2)),B.reject("Could not find proper camera for provided constraints.")})}(B,H)},V=s.quickResolutionSupport=function(R){var B=(0,P.deepCopy)(R);return"boolean"==typeof R.video||(R.video.width&&(B.video.width={exact:a(R.video.width)}),R.video.height&&(B.video.height={exact:a(R.video.height)})),B},T=s.determineSupportedResolution=function(R){(0,_.debug)("[gum:determineSupportedResolution]","Determine next neighbor based on constraints: "+(0,v.default)(R,null,2));var B=new f.DeferredPromise,X=D(i)(R),H=(0,P.deepCopy)(R);return U(H,X,B),B.promise},N=s.isSupported=function(){return L&&E&&g},L=(s.supportsDataChannel=function(){try{var R=new L(null);return R.createDataChannel({name:"test"}).close(),R.close(),!!N()}catch(B){return(0,_.debug)("Could not detect RTCDataChannel support: "+B.message),!1}},s.getUserMedia=function(R,B){var X=new f.DeferredPromise,H=M(i);(0,_.debug)("[gum:getUserMedia]","Is Available in format listing: "+H(R));var J=function(ie){if(ie){var ve="string"==typeof ie?ie:[ie.name,ie.message].join(": ");(0,_.debug)("[gum:getUserMedia]","Failure in getUserMedia: "+ve+". Attempting other resolution tests...")}T(R).then(function(ue){X.resolve({media:ue.media,constraints:ue.constraints})}).catch(function(ue){B&&B(R),X.reject({error:ue,constraints:R})})};if(function(R){return R.hasOwnProperty("video")&&(R.video.hasOwnProperty("width")||R.video.hasOwnProperty("height"))}(R))if(H(R)){(0,_.debug)("[gum:getUserMedia]","Found constraints in list. Checking quick support for faster setup with: "+(0,v.default)(R,null,2));var re=V(R);y.default.gUM(re).then(function(ie){X.resolve({media:ie,constraints:re})}).catch(J)}else(0,_.debug)("[gum:getUserMedia]","Could not find contraints in list. Attempting failover..."),B&&B(R),J();else(0,_.debug)("[gum:getUserMedia]","Constraints were not defined properly. Attempting failover..."),y.default.gUM(R).then(function(ie){X.resolve({media:ie,constraints:R})}).catch(J);return X.promise},s.forceUserMedia=function(R){return y.default.gUM(R)},s.updateBandwidth=function(R,B){var X=B.indexOf("m=audio"),H=B.indexOf("m=video"),J=void 0,re=void 0,ie=void 0;return X>-1&&(R.audio&&(J=B.indexOf("\r\n",X),re=B.slice(0,J),ie=B.slice(J+2,B.length),B=[re,"b=AS:"+R.audio,ie].join("\r\n")),H=B.indexOf("m=video")),H>-1&&R.video&&(J=B.indexOf("\r\n",H),re=B.slice(0,J),ie=B.slice(J+2,B.length),B=[re,"b=AS:"+R.video,ie].join("\r\n")),-1===X&&-1===H&&(B=B.replace(/b=AS([^\r\n]+\r\n)/g,""),R.audio&&(B=B.replace(/a=mid:audio\r\n/g,"a=mid:audio\r\nb=AS:"+R.audio+"\r\n")),R.video&&(B=B.replace(/a=mid:video\r\n/g,"a=mid:video\r\nb=AS:"+R.video+"\r\n"))),B},window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection),E=window.RTCIceCandidate||window.mozRTCIceCandidate||window.webkitRTCIceCandidate,g=window.RTCSessionDescription||window.mozRTCSessionDescription||window.webkitRTCSessionDescription;s.RTCPeerConnection=L,s.RTCIceCandidate=E,s.RTCSessionDescription=g},function(z,s,n){"use strict";s.__esModule=!0;var v,d=(v=n(143))&&v.__esModule?v:{default:v};s.default=d.default||function(v){for(var S=1;S<arguments.length;S++){var y=arguments[S];for(var f in y)Object.prototype.hasOwnProperty.call(y,f)&&(v[f]=y[f])}return v}},function(z,s,n){"use strict";function l(f){return f&&f.__esModule?f:{default:f}}s.__esModule=!0;var v=l(n(3)),y=l(n(145));s.default=function f(O,P,_){null===O&&(O=Function.prototype);var i=(0,y.default)(O,P);if(void 0===i){var r=(0,v.default)(O);return null===r?void 0:f(r,P,_)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(_):void 0}},function(z,s){z.exports={}},function(z,s,n){var l=n(57)("meta"),d=n(14),v=n(21),S=n(15).f,y=0,f=Object.isExtensible||function(){return!0},O=!n(26)(function(){return f(Object.preventExtensions({}))}),P=function(c){S(c,l,{value:{i:"O"+ ++y,w:{}}})},a=z.exports={KEY:l,NEED:!1,fastKey:function(c,m){if(!d(c))return"symbol"==typeof c?c:("string"==typeof c?"S":"P")+c;if(!v(c,l)){if(!f(c))return"F";if(!m)return"E";P(c)}return c[l].i},getWeak:function(c,m){if(!v(c,l)){if(!f(c))return!0;if(!m)return!1;P(c)}return c[l].w},onFreeze:function(c){return O&&a.NEED&&f(c)&&!v(c,l)&&P(c),c}}},function(z,s,n){var l=n(113),d=n(68);z.exports=Object.keys||function(v){return l(v,d)}},function(z,s,n){var l=n(50);z.exports=function(d){return Object(l(d))}},function(z,s,n){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.PlaybackVideoEncoder=s.PlaybackAudioEncoder=s.PlaybackTypes=void 0;var v,d=(v=n(18))&&v.__esModule?v:{default:v};s.PlaybackTypes=(0,d.default)({RTC:"rtc",RTMP:"rtmp",HLS:"hls"}),s.PlaybackAudioEncoder=(0,d.default)({OPUS:"Opus",PCMU:"PCMU",PCMA:"PCMA",SPEEX:"Speex",NONE:"NONE"}),s.PlaybackVideoEncoder=(0,d.default)({VP8:"VP8",H264:"H264",NONE:"NONE"})},function(z,s,n){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.PlaybackStateReadable=s.PlaybackState=void 0;var v,d=(v=n(18))&&v.__esModule?v:{default:v};s.PlaybackState=(0,d.default)({UNAVAILABLE:1e3,AVAILABLE:0,IDLE:1,PLAYING:2,PAUSED:3}),s.PlaybackStateReadable=(0,d.default)({1e3:"Playback.UNAVAILABLE",0:"Playback.AVAILABLE",1:"Playback.IDLE",2:"Playback.PLAYING",3:"Playback.PAUSED"})},function(z,s,n){z.exports={default:n(164),__esModule:!0}},function(z,s){var n={}.toString;z.exports=function(l){return n.call(l).slice(8,-1)}},function(z,_,n){var l=n(20),d=n(107),v=n(105),S=n(16),y=n(56),f=n(80),O={},P={};(_=z.exports=function(i,r,a,c,m){var M,D,I,U,V=m?function(){return i}:f(i),T=l(a,c,r?2:1),N=0;if("function"!=typeof V)throw TypeError(i+" is not iterable!");if(v(V)){for(M=y(i.length);M>N;N++)if((U=r?T(S(D=i[N])[0],D[1]):T(i[N]))===O||U===P)return U}else for(I=V.call(i);!(D=I.next()).done;)if((U=d(I,T,D.value,r))===O||U===P)return U}).BREAK=O,_.RETURN=P},function(z,s){z.exports=function(n,l){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:l}}},function(z,s,n){var l=n(15).f,d=n(21),v=n(9)("toStringTag");z.exports=function(S,y,f){S&&!d(S=f?S:S.prototype,v)&&l(S,v,{configurable:!0,value:y})}},function(z,s){},function(z,s,n){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.create=s.isSupported=void 0;var v,d=(v=n(7))&&v.__esModule?v:{default:v};s.isSupported=function(){return d.default.supportsWebSocket()},s.create=function(v){return d.default.createWebSocket(v)}},function(z,s,n){"use strict";function l(g){return g&&g.__esModule?g:{default:g}}Object.defineProperty(s,"__esModule",{value:!0});var v=l(n(10)),y=l(n(3)),O=l(n(0)),_=l(n(1)),r=l(n(6)),c=l(n(5)),M=function(g){if(g&&g.__esModule)return g;var R={};if(null!=g)for(var B in g)Object.prototype.hasOwnProperty.call(g,B)&&(R[B]=g[B]);return R.default=g,R}(n(44)),I=l(n(7)),V=l(n(87)),T=n(13),N=n(2),E=function(g){function R(B,X){(0,O.default)(this,R);var H=(0,r.default)(this,(R.__proto__||(0,y.default)(R)).call(this,X||"R5ProSocketProxy"));return H._responder=B,H._pendingPostRequests=[],H._websocket=void 0,H._connectionPromise=void 0,H._responseHandlers=[],H._isTerminated=!1,H._retryCount=0,H._retryLimit=1,H._readyCheckCount=0,H._readyCheckLimit=10,H._openState=0,H._onclose=H.tearDown.bind(H),H._onopenTimeout=0,H}return(0,c.default)(R,g),(0,_.default)(R,[{key:"_resetOnopenTimeout",value:function(B,X){var H=this,J=setTimeout(function(){if(clearTimeout(J),1===B.readyState){for((0,N.info)(H._name,"[websocketopen]"),H._openState=1;H._pendingPostRequests.length>0;)H.post(H._pendingPostRequests.shift());H._responder&&H._responder.onSocketOpen&&H._responder.onSocketOpen(),H.trigger(new T.MessageTransportStateEvent(T.MessageTransportStateEventTypes.OPEN,H._name,{socket:H}))}else 0===B.readyState?++H._readyCheckCount>H._readyCheckLimit?((0,N.warn)(H._name,"WebSocket connection issue. We have waited for "+(H._readyCheckCount-1)+" samples, without any connection."),H.clearRetry(),X.reject({type:"Timeout"}),H.tearDown()):((0,N.info)(H._name,"WebSocket connection is still opening, will let it continue ("+H._readyCheckCount+")..."),H._onopenTimeout=H._resetOnopenTimeout(B,X)):(0,N.info)(H._name,"WebSocket connection attempts have ended with state ("+B.readyState+").")},500);return J}},{key:"_removeSocketHandlers",value:function(B){B&&(B.onopen=void 0,B.onmessage=void 0,B.onerror=void 0,B.onclose=void 0)}},{key:"_addSocketHandlers",value:function(B,X){var H=this;this._openState=0,this._readyCheckCount=0,clearTimeout(this._onopenTimeout),this._onopenTimeout=this._resetOnopenTimeout(B,X),B.onerror=function(J){(0,N.warn)(H._name,"[websocketerror]: Error from WebSocket. "+J.type+"."),H.clearRetry(),X.reject(J),H.trigger(new T.MessageTransportStateEvent(T.MessageTransportStateEventTypes.ERROR,H._name,{socket:H,error:J}))},B.onmessage=function(J){H.respond(J)},B.onclose=function(J){J.code>1e3?(0,N.warn)(H._name,"[websocketclose]: "+J.code):(0,N.debug)(H._name,"[websocketclose]: "+J.code),H._responder&&H._responder.onSocketClose&&H._responder.onSocketClose(J),H.clearRetry(),H._removeSocketHandlers(B||H._websocket),H._openState=0,H.trigger(new T.MessageTransportStateEvent(T.MessageTransportStateEventTypes.CLOSE,H._name,{socket:H,event:J}))}}},{key:"_onUnexpectedSocketError",value:function(B){this._responder&&this._responder.onSocketClose&&this._responder.onSocketClose(B),this.trigger(new T.MessageTransportStateEvent(T.MessageTransportStateEventTypes.CLOSE,this._name,{socket:this})),(0,N.warn)(this._name,"[websocketerror]: Possible Unexpected Error from WebSocket. "+B.type+", "+B.detail),this.clearRetry(),this._removeSocketHandlers(this._websocket)}},{key:"clearRetry",value:function(){this._retryCount=0,this._readyCheckCount=0,clearTimeout(this._onopenTimeout)}},{key:"setUp",value:function(B,X){var H=this,J=I.default.getIsMoz()||I.default.getIsEdge();if((0,N.debug)(this._name,"[websocket:setup] "+B+"."),this.tearDown(),this._isTerminated=!1,this._connectionPromise=X,I.default.addCloseHandler(this._onclose),this._websocket=M.create(B),this._addSocketHandlers(this._websocket,this._connectionPromise),J&&this._retryCount++<this._retryLimit){(0,N.debug)(this._name,"We have determined it is Firefox and are setting up a retry limit.");var re=setTimeout(function(){H._websocket&&0===H._websocket.readyState&&((0,N.debug)(H._name,"[websocket:FF-timeout]"),(0,N.debug)(H._name,"Our connection on Firefox to the wss endpoint has timed out. Let's try that again."),H._removeSocketHandlers(H._websocket),H.setUp(B,X)),clearTimeout(re)},2e3)}}},{key:"setUpWithSocket",value:function(B,X){(0,N.debug)(this._name,"[websocket:setupWithSocket] "+B.url+"."),this.tearDown(),this._isTerminated=!1,this._connectionPromise=X,I.default.addCloseHandler(this._onclose),this._websocket=B,this._addSocketHandlers(this._websocket,this._connectionPromise)}},{key:"sever",value:function(B){(0,N.debug)(this._name,"[websocket:sever]"),this._websocket&&(B&&this.post(B),this._removeSocketHandlers(this._websocket),this.tearDown())}},{key:"tearDown",value:function(){if(this._pendingPostRequests.length=0,void 0!==this._websocket&&!this._isTerminated){(0,N.debug)(this._name,"[teardown] >>"),(0,N.debug)(this._name,"[WebSocket("+this._websocket.url+")] close() >>");try{this._websocket.close()}catch(B){(0,N.warn)(this._name,"Attempt to close WebSocket failed: "+B.message+"."),this._removeSocketHandlers(this._websocket)}finally{this._websocket&&(0,N.debug)(this._name,"<< [WebSocket("+this._websocket.url+")] close()")}(0,N.debug)(this._name,"<< [teardown]")}for(this._websocket=void 0,this._isTerminated=!0,this._openState=0;this._responseHandlers.length>0;)this._responseHandlers.shift();I.default.removeCloseHandler(this._onclose)}},{key:"postEndOfCandidates",value:function(B){this.post({handleCandidate:B,data:{candidate:{type:"candidate",candidate:""}}})}},{key:"post",value:function(B){if(void 0===this._websocket||1!==this._openState)return(void 0===this._websocket||2!==this._websocket.readyState&&3!==this._websocket.readyState)&&!this._isTerminated&&(this._pendingPostRequests.push(B),!0);try{return(0,N.debug)(this._name,"[websocket-post]: "+(0,v.default)(B,null,2)),this._websocket.send((0,v.default)(B)),!0}catch(X){return(0,N.debug)(this._name,"Could not send request: "+B+". "+X),!1}}},{key:"respond",value:function(B){var X=this.handleMessageResponse(B);if(!X&&B.data){var H=this.getJsonFromSocketMessage(B);if(null===H)return(0,N.warn)(this._name,"Determined websocket response not in correct format. Aborting message handle."),!0;if((0,N.debug)(this._name,"[websocket-response]: "+(0,v.default)(H,null,2)),void 0!==H.isAvailable)return"boolean"==typeof H.isAvailable&&H.isAvailable?(this._responder&&this._responder.onStreamAvailable(H),!0):(this._responder&&this._responder.onStreamUnavailable(H),!0);if(H.async&&H.id){var re=this._asyncTickets.find(function(ve){return ve.id===H.id}).promise;re&&H.data?re.resolve(H.data):re&&H.error&&re.reject(H.error)}else if(void 0!==H.data){var ie=H.data;if(void 0!==ie.message){if("error"===ie.type&&this._responder)return this._responder.onSocketMessageError(ie.message,ie.detail),!0}else if("status"===ie.type){if("NetConnection.Connect.Success"===ie.code)return this._websocket.onerror=this._onUnexpectedSocketError.bind(this),this._connectionPromise.resolve(this),!0;if("NetConnection.DataChannel.Available"===ie.code)return this._responder.onDataChannelAvailable(ie.description),!0;if("NetConnection.Connect.Rejected"===ie.code)return this._connectionPromise.reject("NetConnection.Connect.Rejected"),!0}else if("error"===ie.type){if("NetConnection.Connect.Rejected"===ie.code)return this._connectionPromise.reject("NetConnection.Connect.Rejected"),!0;if("NetConnection.Connect.Failed"===ie.code)return this._connectionPromise.reject("NetConnection.Connect.Failed"),!0}}}return X}},{key:"isTerminated",get:function(){return this._isTerminated}}]),R}(V.default);s.default=E},function(z,s,n){"use strict";function l(P){return P&&P.__esModule?P:{default:P}}Object.defineProperty(s,"__esModule",{value:!0}),s.hlsSocketEndpointFromOptions=s.rtcSocketEndpointFromOptions=s.encodeKeyValues=void 0;var v=l(n(30)),y=l(n(38)),f=function(P){switch(P){case 8083:case"8083":return console.warn("The default WebSocket port on the server has changed from 8083 to 443 for secure connections."),443;case 8081:case"8081":return console.warn("The default WebSocket port on the server has changed from 8081 to 5080 or 80 for secure connections."),5080}return P},O=s.encodeKeyValues=function(P){var _={};return(0,y.default)(P).forEach(function(i,r){_[i]=encodeURIComponent(P[i])}),_};s.rtcSocketEndpointFromOptions=function(P){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=P.wsprotocol||P.protocol,r=f(P.wsport||P.port),a=P.context?[P.app,P.context].join("/"):P.app,c=i+"://"+P.host+":"+r+"/"+a+"/";if(void 0!==P.connectionParams){var m=O(P.connectionParams);_=(0,v.default)(_,m)}if(void 0!==_){var M=[];(0,y.default)(_).forEach(function(D,I){M.push([D,_[D]].join("="))}),M.length>0&&(c+="?"+M.join("&"))}return c},s.hlsSocketEndpointFromOptions=function(P){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=P.socketParams,r=P.connectionParams,a=i.protocol,c=f(i.port||("wss"===a?443:5080)),m=a+"://"+i.host+":"+c+"/"+i.app+"/";if(r){var M=O(P.connectionParams);_=(0,v.default)(_,M)}if(_){var D=[];(0,y.default)(_).forEach(function(I,U){D.push([I,_[I]].join("="))}),D.length>0&&(m+="?"+D.join("&"))}return m}},function(z,s,n){"use strict";function l(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(s,"__esModule",{value:!0}),s.PlaybackView=void 0;var v=l(n(0)),y=l(n(1)),O=l(n(7)),P=n(2),_="R5ProPlaybackView",r=s.PlaybackView=function(){function a(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"red5pro-subscriber";(0,v.default)(this,a);try{this._targetElement=O.default.resolveElement(c)}catch(m){throw(0,P.error)(_,"Could not instantiate a new instance of Red5ProSubscriber. Reason: "+m.message),m}}return(0,y.default)(a,[{key:"attachSubscriber",value:function(c){(0,P.debug)(_,"[attachsubscriber]"),c.setView(this,O.default.getElementId(this._targetElement))}},{key:"attachStream",value:function(c){var m=this.isAutoplay;(0,P.debug)(_,"[attachstream]"),O.default.setVideoSource(this._targetElement,c,m)}},{key:"detachStream",value:function(){(0,P.debug)(_,"[detachstream]"),O.default.setVideoSource(this._targetElement,null,this.isAutoplay)}},{key:"isAutoplay",get:function(){return O.default.hasAttributeDefined(this._targetElement,"autoplay")}},{key:"view",get:function(){return this._targetElement}}]),a}();s.default=r},function(z,s){z.exports=function(n,l,d,v){if(!(n instanceof l)||void 0!==v&&v in n)throw TypeError(d+": incorrect invocation!");return n}},function(z,s,n){var l=n(39),d=n(9)("toStringTag"),v="Arguments"==l(function(){return arguments}());z.exports=function(y){var f,O,P;return void 0===y?"Undefined":null===y?"Null":"string"==typeof(O=function(y,f){try{return y[f]}catch{}}(f=Object(y),d))?O:v?l(f):"Object"==(P=l(f))&&"function"==typeof f.callee?"Arguments":P}},function(z,s){z.exports=function(n){if(null==n)throw TypeError("Can't call method on "+n);return n}},function(z,s){z.exports=!0},function(z,s,n){var l=n(16),d=n(183),v=n(68),S=n(74)("IE_PROTO"),y=function(){},f=function(){var O,P=n(67)("iframe"),_=v.length;for(P.style.display="none",n(103).appendChild(P),P.src="javascript:",(O=P.contentWindow.document).open(),O.write("<script>document.F=Object<\/script>"),O.close(),f=O.F;_--;)delete f.prototype[v[_]];return f()};z.exports=Object.create||function(O,P){var _;return null!==O?(y.prototype=l(O),_=new y,y.prototype=null,_[S]=O):_=f(),void 0===P?_:d(_,P)}},function(z,s){s.f={}.propertyIsEnumerable},function(z,s,n){var l=n(11),d=n(4),v=n(26);z.exports=function(S,y){var f=(d.Object||{})[S]||Object[S],O={};O[S]=y(f),l(l.S+l.F*v(function(){f(1)}),"Object",O)}},function(z,s,n){var l=n(22);z.exports=function(d,v,S){for(var y in v)S&&d[y]?d[y]=v[y]:l(d,y,v[y]);return d}},function(z,s,n){var l=n(76),d=Math.min;z.exports=function(v){return v>0?d(l(v),9007199254740991):0}},function(z,s){var n=0,l=Math.random();z.exports=function(d){return"Symbol(".concat(void 0===d?"":d,")_",(++n+l).toString(36))}},function(z,s,n){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.PublishModeTypes=s.PublishTypes=void 0;var v,d=(v=n(18))&&v.__esModule?v:{default:v};s.PublishTypes=(0,d.default)({RTMP:"rtmp",RTC:"rtc"}),s.PublishModeTypes=(0,d.default)({LIVE:"live",RECORD:"record",APPEND:"append"})},function(z,s,n){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.IceTransportTypes=void 0;var v,d=(v=n(18))&&v.__esModule?v:{default:v};s.IceTransportTypes=(0,d.default)({UDP:"udp",TCP:"tcp"})},function(z,s,n){"use strict";function l(E){return E&&E.__esModule?E:{default:E}}Object.defineProperty(s,"__esModule",{value:!0});var v=l(n(10)),y=l(n(3)),O=l(n(0)),_=l(n(1)),r=l(n(6)),c=l(n(5)),M=function(E){if(E&&E.__esModule)return E;var g={};if(null!=E)for(var R in E)Object.prototype.hasOwnProperty.call(E,R)&&(g[R]=E[R]);return g.default=E,g}(n(29)),I=l(n(87)),U=n(13),V=n(8),T=n(2),N="R5ProWebRTCPeer",L=function(E){function g(R,B){(0,O.default)(this,g);var X=(0,r.default)(this,(g.__proto__||(0,y.default)(g)).call(this,B||N));return X._responder=R,X._dataChannel=void 0,X._peerConnection=void 0,X._onDataChannelMessage=X._onDataChannelMessage.bind(X),X}return(0,c.default)(g,E),(0,_.default)(g,[{key:"_removeDataChannelHandlers",value:function(R){R.onopen=void 0,R.onerror=void 0,R.onclose=void 0,R.onmessage=void 0}},{key:"_addDataChannelHandlers",value:function(R){var B=this;R.onerror=function(X){B._responder.onDataChannelError(R,X.error.message)},R.onmessage=this._onDataChannelMessage,R.onopen=function(){B._responder.onDataChannelOpen(R)},R.onclose=function(X){B._responder.onDataChannelClose(R),B.trigger(new U.MessageTransportStateEvent(U.MessageTransportStateEventTypes.CLOSE,B._name,{socket:B,event:X}))}}},{key:"_removeConnectionHandlers",value:function(R){(0,T.warn)(this._name,"_removeConnectionHandlers is abstract.")}},{key:"_addConnectionHandlers",value:function(R,B){(0,T.warn)(this._name,"_addConnectionHandlers is abstract.")}},{key:"_onDataChannelMessage",value:function(R){var B=R.data instanceof ArrayBuffer?{data:{message:String.fromCharCode.apply(null,new Uint8Array(R.data))}}:R;if(this.handleMessageResponse(B))return!0;var X=this.getJsonFromSocketMessage(B);if(null===X)return(0,T.warn)(this._name,"Determined websocket response not in correct format. Aborting message handle."),!0;(0,T.debug)(this._name,"[datachannel-response]: "+(0,v.default)(X,null,2));var H=X.data,J=X.method,re=X.type,ie=X.id;if(H&&H.message&&"error"===H.type)return this._responder.onDataChannelError(this._dataChannel,H.message),!0;if(H&&H.code&&"error"===H.type)return this._responder.onDataChannelError(this._dataChannel,H.code),!0;if(J)return this._responder.onSendReceived(J,H),!0;if("metadata"===re)return this._responder.onMetaData(H),!0;if(H&&"status"===H.type){if("NetConnection.Connect.Closed"===H.code)return this._responder.onConnectionClosed(),!0;(0,T.debug)(N,"[datachannel.message] status :: "+H.code)}else if(X.async&&ie){var ue=this._asyncTickets.find(function(se){return se.id===ie}).promise;if(ue&&X.data)return ue.resolve(X.data),!0;if(ue&&X.error)return ue.reject(X.error),!0}return!1}},{key:"setUp",value:function(R){var B=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.tearDown();var H=B||new V.DeferredPromise;try{var J={iceServers:R,iceCandidatePoolSize:2,bundlePolicy:"max-bundle"};void 0!==X&&(J.rtcpMuxPolicy=X),(0,T.debug)(N,"[peerconnection:setup]: "+(0,v.default)(J,null,2));var re=new M.RTCPeerConnection(J,{optional:[{RtpDataChannels:!1},{googCpuOveruseDetection:!0}]});this._addConnectionHandlers(re),this._peerConnection=re,H.resolve(re)}catch(ie){(0,T.warn)(N,"Could not establish a PeerConnection. "+ie.message),H.reject(ie.message)}return H.hasOwnProperty("promise")?H.promise:H}},{key:"setUpWithPeerConfiguration",value:function(R){var B=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.tearDown();var H=X||new V.DeferredPromise;try{(0,T.debug)(N,"[peerconnection:setUpWithPeerConfiguration]: "+(0,v.default)(R,null,2));var J=new M.RTCPeerConnection(R);B&&(this._dataChannel=J.createDataChannel(B.name,{ordered:!0}),this._addDataChannelHandlers(this._dataChannel)),this._addConnectionHandlers(J),this._peerConnection=J,H.resolve(J)}catch(re){(0,T.warn)(N,"Could not establish a PeerConnection. "+re.message),H.reject(re.message)}return H.hasOwnProperty("promise")?H.promise:H}},{key:"tearDown",value:function(){if(this._dataChannel){this._removeDataChannelHandlers(this._dataChannel);try{this._dataChannel.close()}catch(R){(0,T.warn)(N,"[datachannel.close] error: "+R.message)}finally{this._dataChannel=void 0}}if(this._peerConnection){(0,T.debug)(N,"[teardown]"),this._removeConnectionHandlers(this._peerConnection);try{this._peerConnection.close()}catch(R){(0,T.warn)(N,"[peerconnection.close] error: "+R.message)}finally{this._peerConnection=void 0}}}},{key:"setLocalDescription",value:function(R){return(0,T.debug)(N,"[setlocaldescription]"),this._peerConnection.setLocalDescription(R)}},{key:"setRemoteDescription",value:function(R){return(0,T.debug)(N,"[setremotedescription]"),this._peerConnection.setRemoteDescription(new M.RTCSessionDescription(R))}},{key:"addIceCandidate",value:function(R){return(0,T.debug)(N,"[addcandidate]"),this._peerConnection.addIceCandidate(R)}},{key:"post",value:function(R){if(this._dataChannel){var B="string"==typeof R?R:(0,v.default)(R,null,2);(0,T.debug)(N,"[datachannel.send] message: "+B);try{return this._dataChannel.send(B),!0}catch(X){(0,T.error)(N,X.hasOwnProperty("message")?X.message:X)}}return!1}},{key:"connection",get:function(){return this._peerConnection}},{key:"dataChannel",get:function(){return this._dataChannel}}]),g}(I.default);s.default=L},function(z,s,n){"use strict";function l(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(s,"__esModule",{value:!0});var v=l(n(0)),y=l(n(1)),O=l(n(7)),P=n(2),_="R5ProPublishView",r=function(){function a(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"red5pro-publisher";(0,v.default)(this,a);try{this._targetElement=O.default.resolveElement(c)}catch(m){throw(0,P.error)(_,"Could not instantiate a new instance of Red5ProPublisher. Reason: "+m.message),m}}return(0,y.default)(a,[{key:"attachPublisher",value:function(c){(0,P.debug)(_,"[attachpublisher]"),c.setView(this,O.default.getElementId(this._targetElement))}},{key:"preview",value:function(c){var m=this.isAutoplay;(0,P.debug)(_,"[preview]: autoplay("+m+")"),O.default.setVideoSource(this._targetElement,c,m)}},{key:"unpreview",value:function(){O.default.setVideoSource(this._targetElement,null,this.isAutoplay)}},{key:"isAutoplay",get:function(){return O.default.hasAttributeDefined(this._targetElement,"autoplay")}},{key:"view",get:function(){return this._targetElement}}]),a}();s.default=r},function(z,s,n){z.exports={default:n(166),__esModule:!0}},function(z,s,n){"use strict";function l(O){return O&&O.__esModule?O:{default:O}}s.__esModule=!0;var v=l(n(148)),y=l(n(147)),f="function"==typeof y.default&&"symbol"==typeof v.default?function(O){return typeof O}:function(O){return O&&"function"==typeof y.default&&O.constructor===y.default&&O!==y.default.prototype?"symbol":typeof O};s.default="function"==typeof y.default&&"symbol"===f(v.default)?function(O){return void 0===O?"undefined":f(O)}:function(O){return O&&"function"==typeof y.default&&O.constructor===y.default&&O!==y.default.prototype?"symbol":void 0===O?"undefined":f(O)}},function(z,s){z.exports=function(n){if("function"!=typeof n)throw TypeError(n+" is not a function!");return n}},function(z,s,n){var l=n(20),d=n(69),v=n(35),S=n(56),y=n(175);z.exports=function(f,O){var P=1==f,_=2==f,i=3==f,r=4==f,a=6==f,c=5==f||a,m=O||y;return function(M,D,I){for(var U,V,T=v(M),N=d(T),L=l(D,I,3),E=S(N.length),g=0,R=P?m(M,E):_?m(M,0):void 0;E>g;g++)if((c||g in N)&&(V=L(U=N[g],g,T),f))if(P)R[g]=V;else if(V)switch(f){case 3:return!0;case 5:return U;case 6:return g;case 2:R.push(U)}else if(r)return!1;return a?-1:i||r?r:R}}},function(z,s,n){"use strict";var l=n(12),d=n(11),v=n(33),S=n(26),y=n(22),f=n(55),O=n(40),P=n(48),_=n(14),i=n(42),r=n(15).f,a=n(65)(0),c=n(17);z.exports=function(m,M,D,I,U,V){var T=l[m],N=T,L=U?"set":"add",E=N&&N.prototype,g={};return c&&"function"==typeof N&&(V||E.forEach&&!S(function(){(new N).entries().next()}))?(N=M(function(R,B){P(R,N,m,"_c"),R._c=new T,null!=B&&O(B,U,R[L],R)}),a("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(R){var B="add"==R||"set"==R;R in E&&(!V||"clear"!=R)&&y(N.prototype,R,function(X,H){if(P(this,N,R),!B&&V&&!_(X))return"get"==R&&void 0;var J=this._c[R](0===X?0:X,H);return B?this:J})}),"size"in E&&r(N.prototype,"size",{get:function(){return this._c.size}})):(N=I.getConstructor(M,m,U,L),f(N.prototype,D),v.NEED=!0),i(N,m),g[m]=N,d(d.G+d.W+d.F,g),V||I.setStrong(N,m,U),N}},function(z,s,n){var l=n(14),d=n(12).document,v=l(d)&&l(d.createElement);z.exports=function(S){return v?d.createElement(S):{}}},function(z,s){z.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(z,s,n){var l=n(39);z.exports=Object("z").propertyIsEnumerable(0)?Object:function(d){return"String"==l(d)?d.split(""):Object(d)}},function(z,s,n){"use strict";var l=n(51),d=n(11),v=n(73),S=n(22),y=n(21),f=n(32),O=n(180),P=n(42),_=n(112),i=n(9)("iterator"),r=!([].keys&&"next"in[].keys()),a=function(){return this};z.exports=function(c,m,M,D,I,U,V){O(M,m,D);var T,N,L,E=function(ve){if(!r&&ve in X)return X[ve];switch(ve){case"keys":case"values":return function(){return new M(this,ve)}}return function(){return new M(this,ve)}},g=m+" Iterator",R="values"==I,B=!1,X=c.prototype,H=X[i]||X["@@iterator"]||I&&X[I],J=H||E(I),re=I?R?E("entries"):J:void 0,ie="Array"==m&&X.entries||H;if(ie&&(L=_(ie.call(new c)))!==Object.prototype&&(P(L,g,!0),l||y(L,i)||S(L,i,a)),R&&H&&"values"!==H.name&&(B=!0,J=function(){return H.call(this)}),l&&!V||!r&&!B&&X[i]||S(X,i,J),f[m]=J,f[g]=a,I)if(T={values:R?J:E("values"),keys:U?J:E("keys"),entries:re},V)for(N in T)N in X||v(X,N,T[N]);else d(d.P+d.F*(r||B),m,T);return T}},function(z,s,n){var l=n(53),d=n(41),v=n(23),S=n(77),y=n(21),f=n(104),O=Object.getOwnPropertyDescriptor;s.f=n(17)?O:function(P,_){if(P=v(P),_=S(_,!0),f)try{return O(P,_)}catch{}if(y(P,_))return d(!l.f.call(P,_),P[_])}},function(z,s){s.f=Object.getOwnPropertySymbols},function(z,s,n){z.exports=n(22)},function(z,s,n){var l=n(75)("keys"),d=n(57);z.exports=function(v){return l[v]||(l[v]=d(v))}},function(z,s,n){var l=n(12),d=l["__core-js_shared__"]||(l["__core-js_shared__"]={});z.exports=function(v){return d[v]||(d[v]={})}},function(z,s){var n=Math.ceil,l=Math.floor;z.exports=function(d){return isNaN(d=+d)?0:(d>0?l:n)(d)}},function(z,s,n){var l=n(14);z.exports=function(d,v){if(!l(d))return d;var S,y;if(v&&"function"==typeof(S=d.toString)&&!l(y=S.call(d))||"function"==typeof(S=d.valueOf)&&!l(y=S.call(d))||!v&&"function"==typeof(S=d.toString)&&!l(y=S.call(d)))return y;throw TypeError("Can't convert object to primitive value")}},function(z,s,n){var l=n(12),d=n(4),v=n(51),S=n(79),y=n(15).f;z.exports=function(f){var O=d.Symbol||(d.Symbol=v?{}:l.Symbol||{});"_"==f.charAt(0)||f in O||y(O,f,{value:S.f(f)})}},function(z,s,n){s.f=n(9)},function(z,s,n){var l=n(49),d=n(9)("iterator"),v=n(32);z.exports=n(4).getIteratorMethod=function(S){if(null!=S)return S[d]||S["@@iterator"]||v[l(S)]}},function(z,s,n){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.embedSwfObject=s.defineEmbedElement=void 0;var S,d=(S=n(7))&&S.__esModule?S:{default:S},v=n(8);s.defineEmbedElement=function(S,y){var f=new v.DeferredPromise,O=S.id;if("video"===S.nodeName.toLowerCase()){var P=d.default.createElement("div");P.id=O+"_rtmp",y.appendChild(P),S.parentElement&&S.parentElement.removeChild(S),f.resolve(P.id)}else f.resolve(O);return f.promise},s.embedSwfObject=function(S,y,f,O,P){var _=new v.DeferredPromise,i={quality:"high",wmode:"opaque",bgcolor:y.backgroundColor||"#000",allowscriptaccess:"always",allowfullscreen:"true",allownetworking:"all"},r={id:S,name:S,align:"middle"};return O.hasFlashPlayerVersion(y.minFlashVersion)?O.embedSWF(y.swf,P,y.embedWidth||640,y.embedHeight||480,y.minFlashVersion,y.productInstallURL,f,i,r,function(a){a.success?_.resolve():_.reject("Flash Object embed failed.")}):_.reject("Flash Player Version is not supported."),_.promise}},function(z,s,n){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.applyOrientation=void 0;var _,v=((_=n(7))&&_.__esModule?_:{default:_}).default.requestFrame,S=["webkitTransformOrigin","mozTransformOrigin","msTransformOrigin","oTransformOrigin","transformOrigin"],y=["webkitTransform","mozTransform","msTransform","oTransform","transform"],f=["webkitTransition","mozTransition","msTransition","oTransition","transition"],O={0:{origin:"center center",transform:"rotate(0deg)"},90:{origin:"left top",transform:"rotate(90deg) translateY(-100%)"},180:{origin:"center center",transform:"rotate(180deg)"},270:{origin:"top left",transform:"rotate(270deg) translateX(-100%) translateY(0%)"},"-90":{origin:"left top",transform:"rotate(-90deg) translateX(-100%)"},"-180":{origin:"center center",transform:"rotate(-180deg)"},"-270":{origin:"top left",transform:"rotate(-270deg) translateY(-100%)"}},P=function _(i,r){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){var c=i.parentNode;if(c){var m=c.clientWidth;i.style.width=a?c.clientHeight+"px":m+"px";var U=.5*(a?m-i.clientHeight:m-i.clientWidth);i.style.position="relative",i.style.left=U+"px"}r&&r(_(i,r,a))}};s.applyOrientation=function(_,i,r){var a=void 0,c=y.length,m=(i%=360)%180!=0,M=_.parentNode,D=_.width?_.width:M.clientWidth,I=_.height?_.height:M.clientHeight,U=O[i.toString()];for(a=0;a<c;a++)_.style[S[a]]=U.origin,_.style[y[a]]=U.transform,_.style[f[a]]="transform 0.0s linear";m?(_.style.width=I+"px",M.style.height=I+"px"):(_.style.width=D+"px",_.style.height=I+"px",M.style.height="unset"),document.attachEvent?M.attachEvent("resize",P(_,v,m)):P(_,v,m)()}},function(z,s,n){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.MessageTransportStateEventTypes=void 0;var v,d=(v=n(18))&&v.__esModule?v:{default:v};s.MessageTransportStateEventTypes=(0,d.default)({OPEN:"MessageTransport.Open",CLOSE:"MessageTransport.Close",CHANGE:"MessageTransport.Change",ERROR:"MessageTransport.Error"})},function(z,s,n){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.RTMPPublisherEventTypes=s.RTCPublisherEventTypes=s.FailoverPublisherEventTypes=s.PublisherEventTypes=void 0;var v,d=(v=n(18))&&v.__esModule?v:{default:v};s.PublisherEventTypes=(0,d.default)({CONNECT_SUCCESS:"Connect.Success",CONNECT_FAILURE:"Connect.Failure",PUBLISH_START:"Publish.Start",PUBLISH_FAIL:"Publish.Fail",PUBLISH_INVALID_NAME:"Publish.InvalidName",UNPUBLISH_SUCCESS:"Unpublish.Success",PUBLISH_METADATA:"Publish.Metadata",PUBLISH_STATUS:"Publish.Status",PUBLISH_AVAILABLE:"Publish.Available",PUBLISH_INSUFFICIENT_BANDWIDTH:"Publish.InsufficientBW",PUBLISH_SUFFICIENT_BANDWIDTH:"Publish.SufficientBW",PUBLISH_RECOVERING_BANDWIDTH:"Publish.RecoveringBW",PUBLISH_SEND_INVOKE:"Publish.Send.Invoke",CONNECTION_CLOSED:"Publisher.Connection.Closed",DIMENSION_CHANGE:"Publisher.Video.DimensionChange"}),s.FailoverPublisherEventTypes=(0,d.default)({PUBLISHER_REJECT:"Publisher.Reject",PUBLISHER_ACCEPT:"Publisher.Accept"}),s.RTCPublisherEventTypes=(0,d.default)({CONSTRAINTS_ACCEPTED:"WebRTC.MediaConstraints.Accepted",CONSTRAINTS_REJECTED:"WebRTC.MediaConstraints.Rejected",MEDIA_STREAM_AVAILABLE:"WebRTC.MediaStream.Available",PEER_CONNECTION_AVAILABLE:"WebRTC.PeerConnection.Available",OFFER_START:"WebRTC.Offer.Start",OFFER_END:"WebRTC.Offer.End",PEER_CANDIDATE_END:"WebRTC.PeerConnection.CandidateEnd",ICE_TRICKLE_COMPLETE:"WebRTC.IceTrickle.Complete",DATA_CHANNEL_OPEN:"WebRTC.DataChannel.Open",DATA_CHANNEL_AVAILABLE:"WebRTC.DataChannel.Available",DATA_CHANNEL_CLOSE:"WebRTC.DataChannel.Close",DATA_CHANNEL_MESSAGE:"WebRTC.DataChannel.Message",DATA_CHANNEL_ERROR:"WebRTC.DataChannel.Error",PEER_CONNECTION_OPEN:"WebRTC.PeerConnection.Open"}),s.RTMPPublisherEventTypes=(0,d.default)({EMBED_SUCCESS:"FlashPlayer.Embed.Success",EMBED_FAILURE:"FlashPlayer.Embed.Failure"})},function(z,s,n){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.SharedObjectEventTypes=void 0;var v,d=(v=n(18))&&v.__esModule?v:{default:v};s.SharedObjectEventTypes=(0,d.default)({CONNECT_SUCCESS:"Connect.Success",CONNECT_FAILURE:"Connect.Failure",PROPERTY_UPDATE:"SharedObject.PropertyUpdate",PROPERTY_REMOVE:"SharedObject.PropertyRemove",METHOD_UPDATE:"SharedObject.MethodUpdate",CONNECTION_CLOSED:"SharedObject.Connection.Closed"})},function(z,s,n){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.RTMPSubscriberEventTypes=s.RTCSubscriberEventTypes=s.FailoverSubscriberEventTypes=s.SubscriberEventTypes=void 0;var v,d=(v=n(18))&&v.__esModule?v:{default:v};s.SubscriberEventTypes=(0,d.default)({CONNECT_SUCCESS:"Connect.Success",CONNECT_FAILURE:"Connect.Failure",SUBSCRIBE_START:"Subscribe.Start",SUBSCRIBE_STOP:"Subscribe.Stop",SUBSCRIBE_FAIL:"Subscribe.Fail",SUBSCRIBE_INVALID_NAME:"Subscribe.InvalidName",SUBSCRIBE_METADATA:"Subscribe.Metadata",SUBSCRIBE_STATUS:"Subscribe.Status",SUBSCRIBE_SEND_INVOKE:"Subscribe.Send.Invoke",SUBSCRIBE_PUBLISHER_CONGESTION:"Subscribe.Publisher.NetworkCongestion",SUBSCRIBE_PUBLISHER_RECOVERY:"Subscribe.Publisher.NetworkRecovery",PLAY_UNPUBLISH:"Subscribe.Play.Unpublish",CONNECTION_CLOSED:"Subscribe.Connection.Closed",ORIENTATION_CHANGE:"Subscribe.Orientation.Change",STREAMING_MODE_CHANGE:"Subscribe.StreamingMode.Change",VIDEO_DIMENSIONS_CHANGE:"Subscribe.VideoDimensions.Change",VOLUME_CHANGE:"Subscribe.Volume.Change",PLAYBACK_TIME_UPDATE:"Subscribe.Time.Update",PLAYBACK_STATE_CHANGE:"Subscribe.Playback.Change",FULL_SCREEN_STATE_CHANGE:"Subscribe.FullScreen.Change",AUTO_PLAYBACK_FAILURE:"Subscribe.Autoplay.Failure",AUTO_PLAYBACK_MUTED:"Subscribe.Autoplay.Muted"}),s.FailoverSubscriberEventTypes=(0,d.default)({SUBSCRIBER_REJECT:"Subscriber.Reject",SUBSCRIBER_ACCEPT:"Subscriber.Accept"}),s.RTCSubscriberEventTypes=(0,d.default)({PEER_CONNECTION_AVAILABLE:"WebRTC.PeerConnection.Available",OFFER_START:"WebRTC.Offer.Start",OFFER_END:"WebRTC.Offer.End",ANSWER_START:"WebRTC.Answer.Start",ANSWER_END:"WebRTC.Answer.End",CANDIDATE_START:"WebRTC.Candidate.Start",CANDIDATE_END:"WebRTC.Candidate.End",PEER_CANDIDATE_END:"WebRTC.PeerConnection.CandidateEnd",ICE_TRICKLE_COMPLETE:"WebRTC.IceTrickle.Complete",DATA_CHANNEL_MESSAGE:"WebRTC.DataChannel.Message",DATA_CHANNEL_OPEN:"WebRTC.DataChannel.Open",DATA_CHANNEL_AVAILABLE:"WebRTC.DataChannel.Available",DATA_CHANNEL_CLOSE:"WebRTC.DataChannel.Close",DATA_CHANNEL_ERROR:"WebRTC.DataChannel.Error",PEER_CONNECTION_OPEN:"WebRTC.PeerConnection.Open",ON_ADD_STREAM:"WebRTC.Add.Stream"}),s.RTMPSubscriberEventTypes=(0,d.default)({EMBED_SUCCESS:"FlashPlayer.Embed.Success",EMBED_FAILURE:"FlashPlayer.Embed.Failure",ABR_LEVEL_CHANGE:"RTMP.AdaptiveBitrate.Level"})},function(z,s,n){"use strict";function l(U){return U&&U.__esModule?U:{default:U}}Object.defineProperty(s,"__esModule",{value:!0});var v=l(n(3)),y=l(n(0)),O=l(n(1)),_=l(n(6)),r=l(n(5)),c=l(n(19)),m=n(8),M=n(2),I=function(U){function V(T){(0,y.default)(this,V);var N=(0,_.default)(this,(V.__proto__||(0,v.default)(V)).call(this));return N._name=T||"MessageTransport",N._responseHandlers=[],N._asyncTickets=[],N}return(0,r.default)(V,U),(0,O.default)(V,[{key:"getJsonFromSocketMessage",value:function(T){try{return"string"==typeof T.data?JSON.parse(T.data):T.data}catch(N){(0,M.warn)(this._name,"Could not parse message as JSON. Message= "+T.data+". Error= "+N.message)}return null}},{key:"addResponseHandler",value:function(T){this._responseHandlers.push(T)}},{key:"respond",value:function(T){(0,M.warn)(this._name,"respond() should be overriden.")}},{key:"post",value:function(T){(0,M.warn)(this._name,"post() should be overriden.")}},{key:"postAsync",value:function(T){var N=new m.DeferredPromise,L=Math.floor(65536*Math.random()).toString(16);return T.id=L,T.async=!0,this._asyncTickets.push({id:L,promise:N}),this.post(T),N.promise}},{key:"addSharedObjectResponseHandler",value:function(T){this._responseHandlers.push(T)}},{key:"removeSharedObjectResponseHandler",value:function(T){for(var N=this._responseHandlers.length;--N>-1;)if(this._responseHandlers[N]===T)return void this._responseHandlers.splice(N,1)}},{key:"handleMessageResponse",value:function(T){var N=void 0,E=this._responseHandlers.length;for(N=0;N<E;N++)if(this._responseHandlers[N].respond(T))return!0;return!1}},{key:"getRemoteSharedObject",value:function(T){this.post({sharedObjectGetRemote:{name:T}})}},{key:"connectToSharedObject",value:function(T){this.post({sharedObjectConnect:{name:T}})}},{key:"sendToSharedObject",value:function(T,N,L){this.post({sharedObjectSend:{name:T,method:N,message:L}})}},{key:"sendPropertyToSharedObject",value:function(T,N,L){this.post({sharedObjectSetProperty:{name:T,key:N,value:L}})}},{key:"closeSharedObject",value:function(T){this.post({sharedObjectClose:{name:T}})}}]),V}(c.default);s.default=I},function(z,s,n){"use strict";function l(c){return c&&c.__esModule?c:{default:c}}Object.defineProperty(s,"__esModule",{value:!0});var v=l(n(10)),y=l(n(0)),O=l(n(1)),_=l(n(7)),i=n(2),r="R5ProRTMPSharedObjectHandler",a=function(){function c(){(0,y.default)(this,c),this._element=void 0,this._responseHandlers=[]}return(0,O.default)(c,[{key:"addResponseHandler",value:function(m){this._responseHandlers.push(m)}},{key:"removeResponseHandler",value:function(m){for(var M=this._responseHandlers.length;--M>-1;)if(this._responseHandlers[M]===m)return void this._responseHandlers.splice(M,1)}},{key:"handleSharedObjectEvent",value:function(m){(0,i.debug)(r,"[sharedobject:event]");var M=void 0,D=this._responseHandlers.length;for(M=0;M<D&&!this._responseHandlers[M].respond(JSON.parse(m));M++);}},{key:"assignSharedObjectResponder",value:function(m,M){var D=this.handleSharedObjectEvent.bind(this),I=M.id.split("-").join("_"),U=["handleSharedObjectEvent",I].join("_");(0,i.debug)(r,"[assign:sharedobject:responder] :: "+I),(0,i.debug)(r,"[sharedoject:responder] :: "+U),M.setSharedObjectResponder(m,U),_.default.setGlobal(U,D)}},{key:"connect",value:function(m){this._element=_.default.getEmbedObject(m),this._element||(0,i.warn)("Could not locate embedded Flash object for id: "+m)}},{key:"disconnect",value:function(){for(;this._responseHandlers.length>0;)this._responseHandlers.shift()}},{key:"sendToSharedObject",value:function(m,M,D){(0,i.debug)(r,"[sendToSharedObject]");try{this._element.sharedObjectSend(m,M,"string"==typeof D?D:(0,v.default)(D))}catch(I){(0,i.warn)("Could not send to shared object ("+m+"). Error: "+I.message)}}},{key:"sendPropertyToSharedObject",value:function(m,M,D){(0,i.debug)(r,"[sendPropertyToSharedObject]");try{this._element.sharedObjectSendProperty(m,M,D)}catch(I){(0,i.warn)("Could not send to shared object ("+m+"). Error: "+I.message)}}},{key:"getRemoteSharedObject",value:function(m){(0,i.debug)(r,"[getRemoteSharedObject]");try{this.assignSharedObjectResponder(m,this._element),this._element.getRemoteSharedObject(m)}catch(M){(0,i.warn)("Could not get remote shared object ("+name+"). Error: "+M.message)}}},{key:"connectToSharedObject",value:function(m){(0,i.debug)(r,"[connectToSharedObject]");try{this._element.connectToSharedObject(m)}catch(M){(0,i.warn)("Could not connect to shared object ("+name+"). Error: "+M.message)}}},{key:"closeSharedObject",value:function(m){(0,i.debug)(r,"[disconnectToSharedObject]");try{this._element.disconnectFromSharedObject(m)}catch(M){(0,i.warn)("Could not disconnect to shared object ("+name+"). Error: "+M.message)}}}]),c}();s.default=a},function(z,s,n){"use strict";function l(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(s,"__esModule",{value:!0}),s.RTMPMediaConstraint=s.RTCMediaConstraint=void 0;var v=l(n(0)),y=l(n(96)),f=function(r,a,c){(0,y.default)(r,a,{value:c,writable:!0,enumerable:!0})},O=function r(){(0,v.default)(this,r),f(this,"width",{exact:640}),f(this,"height",{exact:480})},P=function r(){(0,v.default)(this,r),f(this,"width",640),f(this,"height",480),f(this,"force",!1),f(this,"framerate",15),f(this,"bandwidth",5e4),f(this,"quality",80),f(this,"profile","baseline"),f(this,"level",3.1)};s.RTCMediaConstraint=function r(){var a=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;(0,v.default)(this,r),f(this,"audio",a),f(this,"video",c||new O)},s.RTMPMediaConstraint=function r(){var a=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;(0,v.default)(this,r),f(this,"audio",a),f(this,"video",c||new P)}},function(z,s,n){"use strict";function l(V){return V&&V.__esModule?V:{default:V}}Object.defineProperty(s,"__esModule",{value:!0});var v=l(n(3)),y=l(n(0)),O=l(n(1)),_=l(n(6)),r=l(n(31)),c=l(n(5)),M=l(n(45)),D=n(8),I=n(46),U=function(V){function T(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;(0,y.default)(this,T);var E="sharedobject-"+Math.floor(65536*Math.random()).toString(16),g=(0,_.default)(this,(T.__proto__||(0,v.default)(T)).call(this,N,E));return g.id=E,g._sharedObjectName=void 0,g}return(0,c.default)(T,V),(0,O.default)(T,[{key:"getRemoteSharedObject",value:function(N){(0,r.default)(T.prototype.__proto__||(0,v.default)(T.prototype),"getRemoteSharedObject",this).call(this,N),this._sharedObjectName=N}},{key:"init",value:function(N){var L=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,g=new D.DeferredPromise;this.id=L||this.id,this._name=this.id;var R=(0,I.rtcSocketEndpointFromOptions)(N,{id:this.id,capabilities:E});return this.setUp(R,g),g.promise}},{key:"respond",value:function(N){if(!(0,r.default)(T.prototype.__proto__||(0,v.default)(T.prototype),"respond",this).call(this,N)&&N.data){var L=this.getJsonFromSocketMessage(N);if(L&&L.data){var E=L.data;if("status"===E.type)"NetConnection.Connect.Closed"===E.code?(this.respond({data:{data:{status:"SharedObject.Status.Disconnect",message:E.code,name:this._sharedObjectName}}}),this._sharedObjectName=void 0):"NetConnection.ICE.TrickleCompleted"===E.code&&this._responder?this._responder.onIceTrickleComplete():"NetConnection.DataChannel.Available"===E.code&&this._responder?this._responder.onDataChannelAvailable(E.description):this._responder&&this._responder.onSocketStatus(E);else if(E.sdp){var g=E.sdp;"answer"===g.type&&this._responder&&this._responder.onSDPAnswer(g)}else E.candidate&&this._responder&&this._responder.onAddIceCandidate(E.candidate)}}}},{key:"close",value:function(){this._sharedObjectName=void 0,this.tearDown()}},{key:"getMessageTransport",value:function(){return this}},{key:"getConnection",value:function(){return this}}]),T}(M.default);s.default=U},function(z,s,n){"use strict";function l(I){return I&&I.__esModule?I:{default:I}}Object.defineProperty(s,"__esModule",{value:!0}),s.SliderEventTypes=s.SliderEvent=void 0;var v=l(n(18)),y=l(n(3)),O=l(n(0)),_=l(n(1)),r=l(n(6)),c=l(n(5)),M=function(I){function U(V,T,N){(0,O.default)(this,U);var L=(0,r.default)(this,(U.__proto__||(0,y.default)(U)).call(this,V,N));return L._control=T,L}return(0,c.default)(U,I),(0,_.default)(U,[{key:"control",get:function(){return this._control}}]),U}(n(13).Event),D=(0,v.default)({CHANGE_START:"changestart",CHANGE:"change",CHANGE_COMPLETE:"changecomplete"});s.SliderEvent=M,s.SliderEventTypes=D},function(z,s,n){"use strict";function l(D){return D&&D.__esModule?D:{default:D}}Object.defineProperty(s,"__esModule",{value:!0}),s.ImplFactoryOrder=void 0;var v=l(n(149)),y=l(n(150)),O=l(n(0)),_=l(n(1)),r=l(n(98)),a=n(8),c=new r.default,m=function(D){return c.has(D)||c.set(D,{}),c.get(D)},M=s.ImplFactoryOrder=function(){function D(){var I=this;(0,O.default)(this,D),this.listorder=y.default.mark(function U(V){return y.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(!(V.length>0)){T.next=5;break}return T.next=3,V.shift();case 3:T.next=0;break;case 5:case"end":return T.stop()}},U,this)}),m(this).find=function(U,V,T,N){var L=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,E=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,g=m(I).next(U,V),R=(0,v.default)(g,2),X=R[1];if(X){var J=T[R[0]];J=J||T,(L?(new X)[L](J):new X(J)).then(function(re){N.resolve(re)}).catch(function(re){E=re,m(I).find(U,V,T,N,L,E)})}else N.reject(E)},m(this).next=function(U,V){var T=void 0,N=void 0,L=U.next();return L.done||(T=V.get(N=L.value)),[N,T]}}return(0,_.default)(D,[{key:"create",value:function(I,U,V){var T=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,N=new a.DeferredPromise;return m(this).find(this.listorder(I.slice()),U,V,N,T),N.promise}}]),D}();s.default=M},function(z,s,n){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var l=s.curry=function(v){var S=v.length;return function y(){var f=Array.prototype.slice.call(arguments,0);return f.length>=S?v.apply(null,f):function(){var O=Array.prototype.slice.call(arguments,0);return y.apply(null,f.concat(O))}}},d=(s.filter=l(function(v,S){for(var y=0,f=S.length,O=[];y<f;)v(S[y])&&(O[O.length]=S[y]),y+=1;return O}),s.toInt=function(v){return"string"==typeof v?parseInt(v,10):Math.round(v)});s.getOrElse=function(v,S){return v||S},s.getIntOrElse=function(v,S){return isNaN(d(v))?S:d(v)}},function(z,s,n){z.exports={default:n(155),__esModule:!0}},function(z,s,n){z.exports={default:n(156),__esModule:!0}},function(z,s,n){z.exports={default:n(160),__esModule:!0}},function(z,s,n){z.exports={default:n(167),__esModule:!0}},function(z,s,n){z.exports={default:n(170),__esModule:!0}},function(z,s,n){"use strict";s.__esModule=!0;var v,d=(v=n(139))&&v.__esModule?v:{default:v};s.default=function(v){if(Array.isArray(v)){for(var S=0,y=Array(v.length);S<v.length;S++)y[S]=v[S];return y}return(0,d.default)(v)}},function(z,s,n){"use strict";function l(E){if(null==E)return E;if(Array.isArray(E))return E.slice();if("object"==typeof E){var g={};return Object.keys(E).forEach(function(R){g[R]=E[R]}),g}return E}function d(){var E={},g=Error.stackTraceLimit,R=Error.prepareStackTrace;return Error.stackTraceLimit=3,Error.prepareStackTrace=function(B,X){var H=X[2];E.file=H.getFileName(),E.line=H.getLineNumber();var J=H.getFunctionName();J&&(E.func=J)},Error.stackTraceLimit=g,Error.prepareStackTrace=R,E}function S(E,g){if(g){if(M[g])return;M[g]=!0}console.error(E+"\n")}function y(E){return M[E]}function f(){}function O(){}function P(E){return"string"==typeof E?N[E.toLowerCase()]:E}function _(E,g,R){if(!(this instanceof _))return new _(E,g);var B,X,H,J;if(void 0!==g&&(B=E,E=g,!(B instanceof _)))throw new TypeError("invalid Logger creation: do not pass a second arg");if(!E)throw new TypeError("options (object) is required");if(B){if(E.name)throw new TypeError("invalid options.name: child cannot set logger name")}else if(!E.name)throw new TypeError("options.name (string) is required");if(E.stream&&E.streams)throw new TypeError('cannot mix "streams" and "stream" options');if(E.streams&&!Array.isArray(E.streams))throw new TypeError("invalid options.streams: must be an array");if(E.serializers&&("object"!=typeof E.serializers||Array.isArray(E.serializers)))throw new TypeError("invalid options.serializers: must be an object");if(B&&R){this._isSimpleChild=!0,this._level=B._level,this.streams=B.streams,this.serializers=B.serializers,this.src=B.src,X=this.fields={};var re=Object.keys(B.fields);for(J=0;J<re.length;J++)X[H=re[J]]=B.fields[H];var ie=Object.keys(E);for(J=0;J<ie.length;J++)X[H=ie[J]]=E[H]}else{var ve=this;if(B){for(this._level=B._level,this.streams=[],J=0;J<B.streams.length;J++){var ue=l(B.streams[J]);ue.closeOnExit=!1,this.streams.push(ue)}this.serializers=l(B.serializers),this.src=B.src,this.fields=l(B.fields),E.level&&this.level(E.level)}else this._level=Number.POSITIVE_INFINITY,this.streams=[],this.serializers=null,this.src=!1,this.fields={};E.stream?ve.addStream({type:"stream",stream:E.stream,closeOnExit:!1,level:E.level}):E.streams?E.streams.forEach(function(se){ve.addStream(se,E.level)}):B&&E.level?this.level(E.level):B||ve.addStream({type:"raw",stream:new f,closeOnExit:!1,level:E.level}),E.serializers&&ve.addSerializers(E.serializers),E.src&&(this.src=!0),delete(X=l(E)).stream,delete X.level,delete X.streams,delete X.serializers,delete X.src,this.serializers&&this._applySerializers(X),Object.keys(X).forEach(function(se){ve.fields[se]=X[se]})}}function i(E){return function(){var g=this,R=null,B=arguments,X=null;if(this._emit){if(0===arguments.length)return this._level<=E;this._level>E||(X=function(J){var re;J[0]instanceof Error?(R={err:g.serializers&&g.serializers.err?g.serializers.err(J[0]):_.stdSerializers.err(J[0])},re={err:!0},B=1===J.length?[R.err.message]:Array.prototype.slice.call(J,1)):"object"!=typeof J[0]&&null!==J[0]||Array.isArray(J[0])?(R=null,B=Array.prototype.slice.call(J)):(R=J[0],B=Array.prototype.slice.call(J,1));var ie=l(g.fields);ie.level=E;var ve=R?l(R):null;return ve&&(g.serializers&&g._applySerializers(ve,re),Object.keys(ve).forEach(function(ue){ie[ue]=ve[ue]})),ie.levelName=L[E],ie.msg=m.apply(g,B),ie.time||(ie.time=new Date),g.src&&!ie.src&&(ie.src=d()),ie.v=c,ie}(B),this._emit(X))}else if(!y.unbound){var H=d();S(m("bunyan usage error: %s:%s: attempt to log with an unbound log method: `this` is: %s",H.file,H.line,this.toString()),"unbound")}}}function r(E){var g=E.stack||E.toString();if(E.cause&&"function"==typeof E.cause){var R=E.cause();R&&(g+="\nCaused by: "+r(R))}return g}function a(){var E=[];return function(g,R){return R&&"object"==typeof R?-1!==E.indexOf(R)?"[Circular]":(E.push(R),R):R}}var c=0,m=function(E){if(null===E)return"null";if("string"!=typeof E)return E.toString();for(var R=1,B=arguments,X=B.length,H=String(E).replace(/%[sdj%]/g,function(re){if("%%"===re)return"%";if(R>=X)return re;switch(re){case"%s":return String(B[R++]);case"%d":return Number(B[R++]);case"%j":try{return JSON.stringify(B[R++])}catch{return"[Circular]"}break;default:return re}}),J=B[R];R<X;J=B[++R])H+=" "+J;return H},M={};f.prototype.write=function(E){E.level<I?console.log(E):E.level<U?console.info(E):E.level<V?console.warn(E):console.error(E),E.err&&E.err.stack&&console.error(E.err.stack)},O.prototype.write=function(E){function g(H,J){return Array(J+1-(H+"").length).join("0")+H}var R;R=E.level<D?"color: DeepPink":E.level<I?"color: GoldenRod":E.level<U?"color: DarkTurquoise":E.level<V?"color: Purple":E.level<T?"color: Crimson":"color: Black";var B=E.childName?E.name+"/"+E.childName:E.name,X=L[E.level].toUpperCase();X=Array(6-X.length).join(" ")+X,console.log("[%s:%s:%s:%s] %c%s%c: %s: %c%s",g(E.time.getHours(),2),g(E.time.getMinutes(),2),g(E.time.getSeconds(),2),g(E.time.getMilliseconds(),4),R,X,"color: DimGray",B,"color: SteelBlue",E.msg),E.err&&E.err.stack&&console.log("%c%s,",R,E.err.stack)};var D=20,I=30,U=40,V=50,T=60,N={trace:10,debug:D,info:I,warn:U,error:V,fatal:T},L={};Object.keys(N).forEach(function(E){L[N[E]]=E}),_.prototype.addStream=function(E,g){var R=this;switch(null!=g||(g=I),!(E=l(E)).type&&E.stream&&(E.type="raw"),E.raw="raw"===E.type,E.level=P(E.level?E.level:g),E.level<R._level&&(R._level=E.level),E.type){case"stream":case"raw":E.closeOnExit||(E.closeOnExit=!1);break;default:throw new TypeError('unknown stream type "'+E.type+'"')}R.streams.push(E),delete R.haveNonRawStreams},_.prototype.addSerializers=function(E){var g=this;g.serializers||(g.serializers={}),Object.keys(E).forEach(function(R){var B=E[R];if("function"!=typeof B)throw new TypeError(m('invalid serializer for "%s" field: must be a function',R));g.serializers[R]=B})},_.prototype.child=function(E,g){return new this.constructor(this,E||{},g)},_.prototype.level=function(E){if(void 0===E)return this._level;for(var g=P(E),R=this.streams.length,B=0;B<R;B++)this.streams[B].level=g;this._level=g},_.prototype.levels=function(E,g){if(void 0===E)return this.streams.map(function(re){return re.level});var R;if("number"==typeof E){if(void 0===(R=this.streams[E]))throw new Error("invalid stream index: "+E)}else{for(var B=this.streams.length,X=0;X<B;X++){var H=this.streams[X];if(H.name===E){R=H;break}}if(!R)throw new Error(m('no stream with name "%s"',E))}if(void 0===g)return R.level;var J=P(g);R.level=J,J<this._level&&(this._level=J)},_.prototype._applySerializers=function(E,g){var R=this;Object.keys(this.serializers).forEach(function(B){if(!(void 0===E[B]||g&&g[B]))try{E[B]=R.serializers[B](E[B])}catch(X){S(m('bunyan: ERROR: Exception thrown from the "%s" Bunyan serializer. This should never happen. This is a bugin that serializer function.\n%s',B,X.stack||X)),E[B]=m('(Error in Bunyan log "%s" serializer broke field. See stderr for details.)',B)}})},_.prototype._emit=function(E,g){var R,B;if(void 0===this.haveNonRawStreams)for(this.haveNonRawStreams=!1,R=0;R<this.streams.length;R++)if(!this.streams[R].raw){this.haveNonRawStreams=!0;break}if(g||this.haveNonRawStreams)try{B=JSON.stringify(E,a())+"\n"}catch(re){var X=re.stack.split(/\n/g,2).join("\n");S('bunyan: ERROR: Exception in `JSON.stringify(rec)`. You can install the "safe-json-stringify" module to have Bunyan fallback to safer stringification. Record:\n'+function v(E,g){return g||(g=" "),g+E.split(/\r?\n/g).join("\n"+g)}(m("%s\n%s",E,re.stack)),X),B=m("(Exception in JSON.stringify(rec): %j. See stderr for details.)\n",re.message)}if(g)return B;var H=E.level;for(R=0;R<this.streams.length;R++){var J=this.streams[R];J.level<=H&&J.stream.write(J.raw?E:B)}return B},_.prototype.trace=i(10),_.prototype.debug=i(D),_.prototype.info=i(I),_.prototype.warn=i(U),_.prototype.error=i(V),_.prototype.fatal=i(T),(_.stdSerializers={}).err=function(E){return E&&E.stack?{message:E.message,name:E.name,stack:r(E),code:E.code,signal:E.signal}:E},z.exports=_,z.exports.TRACE=10,z.exports.DEBUG=D,z.exports.INFO=I,z.exports.WARN=U,z.exports.ERROR=V,z.exports.FATAL=T,z.exports.resolveLevel=P,z.exports.levelFromName=N,z.exports.nameFromLevel=L,z.exports.VERSION="0.2.3",z.exports.LOG_VERSION=c,z.exports.createLogger=function(E){return new _(E)},z.exports.safeCycles=a,z.exports.ConsoleFormattedStream=O,z.exports.ConsoleRawStream=f},function(z,s,n){"use strict";var l=n(15).f,d=n(52),v=n(55),S=n(20),y=n(48),f=n(50),O=n(40),P=n(70),_=n(109),i=n(114),r=n(17),a=n(33).fastKey,c=r?"_s":"size",m=function(M,D){var I,U=a(D);if("F"!==U)return M._i[U];for(I=M._f;I;I=I.n)if(I.k==D)return I};z.exports={getConstructor:function(M,D,I,U){var V=M(function(T,N){y(T,V,D,"_i"),T._i=d(null),T._f=void 0,T._l=void 0,T[c]=0,null!=N&&O(N,I,T[U],T)});return v(V.prototype,{clear:function(){for(var T=this,N=T._i,L=T._f;L;L=L.n)L.r=!0,L.p&&(L.p=L.p.n=void 0),delete N[L.i];T._f=T._l=void 0,T[c]=0},delete:function(T){var N=this,L=m(N,T);if(L){var E=L.n,g=L.p;delete N._i[L.i],L.r=!0,g&&(g.n=E),E&&(E.p=g),N._f==L&&(N._f=E),N._l==L&&(N._l=g),N[c]--}return!!L},forEach:function(T){y(this,V,"forEach");for(var N,L=S(T,arguments.length>1?arguments[1]:void 0,3);N=N?N.n:this._f;)for(L(N.v,N.k,this);N&&N.r;)N=N.p},has:function(T){return!!m(this,T)}}),r&&l(V.prototype,"size",{get:function(){return f(this[c])}}),V},def:function(M,D,I){var U,V,T=m(M,D);return T?T.v=I:(M._l=T={i:V=a(D,!0),k:D,v:I,p:U=M._l,n:void 0,r:!1},M._f||(M._f=T),U&&(U.n=T),M[c]++,"F"!==V&&(M._i[V]=T)),M},getEntry:m,setStrong:function(M,D,I){P(M,D,function(U,V){this._t=U,this._k=V,this._l=void 0},function(){for(var U=this,V=U._k,T=U._l;T&&T.r;)T=T.p;return U._t&&(U._l=T=T?T.n:U._t._f)?_(0,"keys"==V?T.k:"values"==V?T.v:[T.k,T.v]):(U._t=void 0,_(1))},I?"entries":"values",!I,!0),i(D)}}},function(z,s,n){var l=n(49),d=n(172);z.exports=function(v){return function(){if(l(this)!=v)throw TypeError(v+"#toJSON isn't generic");return d(this)}}},function(z,s,n){z.exports=n(12).document&&document.documentElement},function(z,s,n){z.exports=!n(17)&&!n(26)(function(){return 7!=Object.defineProperty(n(67)("div"),"a",{get:function(){return 7}}).a})},function(z,s,n){var l=n(32),d=n(9)("iterator"),v=Array.prototype;z.exports=function(S){return void 0!==S&&(l.Array===S||v[d]===S)}},function(z,s,n){var l=n(39);z.exports=Array.isArray||function(d){return"Array"==l(d)}},function(z,s,n){var l=n(16);z.exports=function(d,v,S,y){try{return y?v(l(S)[0],S[1]):v(S)}catch(O){var f=d.return;throw void 0!==f&&l(f.call(d)),O}}},function(z,s,n){var l=n(9)("iterator"),d=!1;try{var v=[7][l]();v.return=function(){d=!0},Array.from(v,function(){throw 2})}catch{}z.exports=function(S,y){if(!y&&!d)return!1;var f=!1;try{var O=[7],P=O[l]();P.next=function(){return{done:f=!0}},O[l]=function(){return P},S(O)}catch{}return f}},function(z,s){z.exports=function(n,l){return{value:l,done:!!n}}},function(z,s,n){"use strict";var l=n(34),d=n(72),v=n(53),S=n(35),y=n(69),f=Object.assign;z.exports=!f||n(26)(function(){var O={},P={},_=Symbol(),i="abcdefghijklmnopqrst";return O[_]=7,i.split("").forEach(function(r){P[r]=r}),7!=f({},O)[_]||Object.keys(f({},P)).join("")!=i})?function(O,P){for(var _=S(O),i=arguments.length,r=1,a=d.f,c=v.f;i>r;)for(var m,M=y(arguments[r++]),D=a?l(M).concat(a(M)):l(M),I=D.length,U=0;I>U;)c.call(M,m=D[U++])&&(_[m]=M[m]);return _}:f},function(z,s,n){var l=n(113),d=n(68).concat("length","prototype");s.f=Object.getOwnPropertyNames||function(v){return l(v,d)}},function(z,s,n){var l=n(21),d=n(35),v=n(74)("IE_PROTO"),S=Object.prototype;z.exports=Object.getPrototypeOf||function(y){return y=d(y),l(y,v)?y[v]:"function"==typeof y.constructor&&y instanceof y.constructor?y.constructor.prototype:y instanceof Object?S:null}},function(z,s,n){var l=n(21),d=n(23),v=n(173)(!1),S=n(74)("IE_PROTO");z.exports=function(y,f){var O,P=d(y),_=0,i=[];for(O in P)O!=S&&l(P,O)&&i.push(O);for(;f.length>_;)l(P,O=f[_++])&&(~v(i,O)||i.push(O));return i}},function(z,s,n){"use strict";var l=n(12),d=n(4),v=n(15),S=n(17),y=n(9)("species");z.exports=function(f){var O="function"==typeof d[f]?d[f]:l[f];S&&O&&!O[y]&&v.f(O,y,{configurable:!0,get:function(){return this}})}},function(z,s,n){var l,d,v,S=n(20),y=n(179),f=n(103),O=n(67),P=n(12),_=P.process,i=P.setImmediate,r=P.clearImmediate,a=P.MessageChannel,c=0,m={},M=function(){var I=+this;if(m.hasOwnProperty(I)){var U=m[I];delete m[I],U()}},D=function(I){M.call(I.data)};i&&r||(i=function(I){for(var U=[],V=1;arguments.length>V;)U.push(arguments[V++]);return m[++c]=function(){y("function"==typeof I?I:Function(I),U)},l(c),c},r=function(I){delete m[I]},"process"==n(39)(_)?l=function(I){_.nextTick(S(M,I,1))}:a?(v=(d=new a).port2,d.port1.onmessage=D,l=S(v.postMessage,v,1)):P.addEventListener&&"function"==typeof postMessage&&!P.importScripts?(l=function(I){P.postMessage(I+"","*")},P.addEventListener("message",D,!1)):l="onreadystatechange"in O("script")?function(I){f.appendChild(O("script")).onreadystatechange=function(){f.removeChild(this),M.call(I)}}:function(I){setTimeout(S(M,I,1),0)}),z.exports={set:i,clear:r}},function(z,s,n){"use strict";function l(X){return X&&X.__esModule?X:{default:X}}function d(X){if(X&&X.__esModule)return X;var H={};if(null!=X)for(var J in X)Object.prototype.hasOwnProperty.call(X,J)&&(H[J]=X[J]);return H.default=X,H}Object.defineProperty(s,"__esModule",{value:!0}),s.getLogger=s.LOG_LEVELS=s.getRecordedLogs=s.setLogLevel=s.IceTransportTypes=s.PlaybackVideoEncoder=s.PlaybackAudioEncoder=s.MessageTransportStateEventTypes=s.SharedObjectEventTypes=s.FailoverSubscriberEventTypes=s.RTMPSubscriberEventTypes=s.RTCSubscriberEventTypes=s.SubscriberEventTypes=s.FailoverPublisherEventTypes=s.RTCPublisherEventTypes=s.PublisherEventTypes=s.Red5ProSharedObjectPeerConnection=s.Red5ProSharedObjectSocket=s.Red5ProSharedObject=s.PlaybackControls=s.PublisherView=s.RTMPPublisher=s.RTCPublisher=s.Red5ProPublisher=s.PlaybackView=s.HLSSubscriber=s.RTMPSubscriber=s.RTCSubscriber=s.Red5ProSubscriber=void 0;var v=n(24);Object.defineProperty(s,"PlaybackControls",{enumerable:!0,get:function(){return v.PlaybackControls}});var S=n(2),f=d(n(132)),P=d(n(124)),i=d(n(128)),a=d(n(36)),m=d(n(59)),D=d(n(84)),U=d(n(86)),T=d(n(85)),L=d(n(83)),g=l(n(47)),B=l(n(61));s.Red5ProSubscriber=f.Red5ProSubscriber,s.RTCSubscriber=f.RTCSubscriber,s.RTMPSubscriber=f.RTMPSubscriber,s.HLSSubscriber=f.HLSSubscriber,s.PlaybackView=g.default,s.Red5ProPublisher=P.Red5ProPublisher,s.RTCPublisher=P.RTCPublisher,s.RTMPPublisher=P.RTMPPublisher,s.PublisherView=B.default,s.Red5ProSharedObject=i.Red5ProSharedObject,s.Red5ProSharedObjectSocket=i.Red5ProSharedObjectSocket,s.Red5ProSharedObjectPeerConnection=i.Red5ProSharedObjectPeerConnection,s.PublisherEventTypes=D.PublisherEventTypes,s.RTCPublisherEventTypes=D.RTCPublisherEventTypes,s.FailoverPublisherEventTypes=D.FailoverPublisherEventTypes,s.SubscriberEventTypes=U.SubscriberEventTypes,s.RTCSubscriberEventTypes=U.RTCSubscriberEventTypes,s.RTMPSubscriberEventTypes=U.RTMPSubscriberEventTypes,s.FailoverSubscriberEventTypes=U.FailoverSubscriberEventTypes,s.SharedObjectEventTypes=T.SharedObjectEventTypes,s.MessageTransportStateEventTypes=L.MessageTransportStateEventTypes,s.PlaybackAudioEncoder=a.PlaybackAudioEncoder,s.PlaybackVideoEncoder=a.PlaybackVideoEncoder,s.IceTransportTypes=m.IceTransportTypes,(0,S.establishLogger)("error"),s.setLogLevel=function(X){var H=arguments.length>1&&void 0!==arguments[1]&&arguments[1];S.LEVELS.hasOwnProperty(X.toUpperCase())&&((0,S.establishLogger)(X,H),console&&console.log("Red5 Pro SDK Version 9.1.2"))},s.getRecordedLogs=S.getRecordedLogs,s.LOG_LEVELS=S.LEVELS,s.getLogger=S.getLogger},function(z,s,n){"use strict";function l(a,c,m){var M="",D=c,I=c+m;do{M+=String.fromCharCode(a[D++])}while(D<I);return M}function d(a,c){try{return JSON.parse(a)[c]}catch{var m=O.exec(a),M=void 0;return m&&m.length>1&&(M=P.exec(a),m[1]===c&&M&&M.length>1)?M[1]:void 0}}function v(a){var c=d(a,"orientation");if(c)return{orientation:parseInt(c)}}function S(a){var c=d(a,"streamingMode");if(c)return{streamingMode:c}}Object.defineProperty(s,"__esModule",{value:!0}),s.removePlayerDelegates=s.onStreamingModeMetadata=s.onOrientationMetadata=void 0;var a,f=(a=n(98))&&a.__esModule?a:{default:a},O=/['"](.*?)['"]:/gi,P=/:['"](.*?)['"]/gi,_=new f.default,i=function(a){return _.get(a)},r=function(a){var c="function"==typeof a.textTracks?a.textTracks():a.textTracks;c&&(a.addTextTrack("metadata"),c.addEventListener("addtrack",function(m){var M=m.track;M.mode="hidden",M.addEventListener("cuechange",function(D){var I=void 0,U=void 0;for(I=(I=D&&D.currentTarget?D.currentTarget.cues:(I=M.cues)&&I.length>0?I:M.activeCues)||[],U=0;U<I.length;U++){var V=I[U];V.value&&function(){var T="string"==typeof V.value.data?V.value.data:l(V.value.data,0,V.size),N=v(T),L=S(T),E=i(a);N&&E&&E.orientation&&E.orientation.forEach(function(g){g(N)}),L&&E&&E.streamingMode&&E.streamingMode.forEach(function(g){g(L)})}()}})}))};s.onOrientationMetadata=function(a,c){var m=_.get(a);_.has(a)?m.hasOwnProperty("orientation")||(_.get(a).orientation=[]):(r(a),_.set(a,{orientation:[]})),_.get(a).orientation.push(c)},s.onStreamingModeMetadata=function(a,c){var m=_.get(a);_.has(a)?m.hasOwnProperty("streamingMode")||(_.get(a).streamingMode=[]):(r(a),_.set(a,{streamingMode:[]})),_.get(a).streamingMode.push(c)},s.removePlayerDelegates=function(a){_.has(a)&&_.delete(a)}},function(z,s,n){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.NoSupportedCameraResolutionsError=s.NoElementFoundError=void 0;var v,d=(v=n(0))&&v.__esModule?v:{default:v};s.NoElementFoundError=function v(S){(0,d.default)(this,v),this.name="NoElementFound",this.message=S},s.NoSupportedCameraResolutionsError=function v(S){(0,d.default)(this,v),this.name="NoSupportedCameraResolutionsError",this.message=S}},function(z,s,n){"use strict";function l(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(s,"__esModule",{value:!0});var v=l(n(3)),y=l(n(0)),O=l(n(1)),_=l(n(6)),r=l(n(31)),c=l(n(5)),M=l(n(45)),D=n(25),I=n(2),U="R5ProPublisherSocket",V=function(T){function N(L){return(0,y.default)(this,N),(0,_.default)(this,(N.__proto__||(0,v.default)(N)).call(this,L,U))}return(0,c.default)(N,T),(0,O.default)(N,[{key:"respond",value:function(L){if(L.data){var E=this.getJsonFromSocketMessage(L);(0,r.default)(N.prototype.__proto__||(0,v.default)(N.prototype),"respond",this).call(this,L)||void 0!==E.data&&(void 0!==E.data.sdp&&"answer"===E.data.sdp.type&&this._responder.onSDPAnswer(E.data),void 0!==E.data.candidate&&((0,D.isObjectEmpty)(E.data.candidate)?this._responder.onEmptyCandidate():this._responder.onAddIceCandidate(E.data.candidate)),"status"===E.data.type&&("NetConnection.ICE.TricleCompleted"===E.data.code||"NetConnection.ICE.TrickleCompleted"===E.data.code?this._responder.onSocketIceCandidateEnd():"NetConnection.Publish.InsufficientBW"===E.data.code?this._responder.onInsufficientBandwidth(E.data):"NetConnection.Publish.SufficientBW"===E.data.code?this._responder.onSufficientBandwidth(E.data):"NetConnection.Publish.RecoveringBW"===E.data.code?this._responder.onRecoveringBandwidth(E.data):this._responder.onPublisherStatus(E.data)),void 0!==E.type&&"metadata"===E.type.toLowerCase()&&(void 0!==E.method?this._responder.onSendReceived(E.method,E.data):this._responder.onMetaData(E.data)))}else(0,I.warn)(U,"[ws.onmessage] - No Message Data.")}},{key:"postUnpublish",value:function(L){return void 0!==this._websocket&&1===this._openState&&(this.post({unpublish:L}),!0)}}]),N}(M.default);s.default=V},function(z,s,n){"use strict";function l(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(s,"__esModule",{value:!0});var v=l(n(3)),y=l(n(0)),O=l(n(1)),_=l(n(6)),r=l(n(31)),c=l(n(5)),M=l(n(45)),D=n(25),I=n(2),U="R5ProSubscriptionSocket",V=function(T){function N(L){return(0,y.default)(this,N),(0,_.default)(this,(N.__proto__||(0,v.default)(N)).call(this,L,U))}return(0,c.default)(N,T),(0,O.default)(N,[{key:"respond",value:function(L){if(L.data){var E=this.getJsonFromSocketMessage(L);(0,r.default)(N.prototype.__proto__||(0,v.default)(N.prototype),"respond",this).call(this,L)||(void 0!==E.data?(void 0!==E.data.sdp&&"offer"===E.data.sdp.type&&this._responder.onSDPOffer(E.data),void 0!==E.data.candidate&&((0,D.isObjectEmpty)(E.data.candidate)?this._responder.onEmptyCandidate():this._responder.onAddIceCandidate(E.data.candidate)),"status"===E.data.type&&("NetConnection.ICE.TricleCompleted"===E.data.code||"NetConnection.ICE.TrickleCompleted"===E.data.code?this._responder.onSocketIceCandidateEnd():"NetStream.Play.UnpublishNotify"===E.data.code?this._responder.onUnpublish():"NetConnection.Connect.Closed"===E.data.code?this._responder.onConnectionClosed():this._responder.onSubscriberStatus(E.data)),E.data.hasOwnProperty("status")&&"NetStream.Play.UnpublishNotify"===E.data.status&&this._responder.onUnpublish(),void 0!==E.type&&"metadata"===E.type&&(void 0!==E.method?this._responder.onSendReceived(E.method,E.data):this._responder.onMetaData(E.data))):void 0!==E.type&&"metadata"===E.type&&this._responder.onMetaData(E.metadata))}else(0,I.warn)(U,"[ws.onmessage] - No Message Data.")}}]),N}(M.default);s.default=V},function(z,s,n){"use strict";function l(B){return B&&B.__esModule?B:{default:B}}Object.defineProperty(s,"__esModule",{value:!0});var v=l(n(10)),y=l(n(3)),O=l(n(0)),_=l(n(1)),r=l(n(6)),c=l(n(31)),M=l(n(5)),I=function(B){if(B&&B.__esModule)return B;var X={};if(null!=B)for(var H in B)Object.prototype.hasOwnProperty.call(B,H)&&(X[H]=B[H]);return X.default=B,X}(n(29)),V=l(n(7)),N=l(n(60)),L=n(8),E=n(2),g="R5ProPublishPeer",R=function(B){function X(H){return(0,O.default)(this,X),(0,r.default)(this,(X.__proto__||(0,y.default)(X)).call(this,H,g))}return(0,M.default)(X,B),(0,_.default)(X,[{key:"_removeConnectionHandlers",value:function(H){H.onconnectionstatechange=void 0,H.oniceconnectionstatechange=void 0,H.onicecandidate=void 0}},{key:"_addConnectionHandlers",value:function(H,J){var re=this,ie=void 0;H.onconnectionstatechange=function(){(0,E.debug)(g,"[peer.onconnectionstatechange] - State: "+H.connectionState),"connected"===H.connectionState?((0,E.debug)(g,"[peerconnection:open]"),J?J.resolve(re):re._responder.onPeerConnectionOpen()):"failed"!==H.connectionState&&"disconnected"!==H.connectionState||((0,E.warn)(g,"[peerconnection:error]"),J&&J.reject(),"failed"===H.connectionState&&re._responder.onPeerConnectionFail())},H.onicecandidate=function(ve){(0,E.debug)(g,"[peer.onicecandidate] - Peer Candidate: "+ve.candidate),ve.candidate&&re._responder.onIceCandidate(ve.candidate)},H.oniceconnectionstatechange=function(ve){var ue=H.iceConnectionState;(0,E.debug)(g,"[peer.oniceconnectionstatechange] - State: "+ue),"connected"===ue&&V.default.getIsEdge()?((0,E.debug)(g,"[edge/ortc:notify complete]"),re._responder.onPeerGatheringComplete()):"failed"===ue?(ie&&clearTimeout(ie),re._responder.onPeerConnectionClose(ve)):"disconnected"===ue?ie=setTimeout(function(){(0,E.debug)(g,"[peer.oniceconnectionstatechange] - Reconnect timeout reached. Closing PeerConnection."),clearTimeout(ie),re._responder.onPeerConnectionClose(ve)},5e3):ie&&((0,E.debug)(g,"[peer.oniceconnectionstatechange] - Clearing timeout for reconnect."),clearTimeout(ie))},H.onsignalingstatechange=function(ve){(0,E.debug)(g,"[peer.onsignalingstatechange] - State: "+H.signalingState)},H.onicegatheringstatechange=function(){var ve=H.iceGatheringState;(0,E.debug)(g,"[peer.onicegatheringstatechange] - State: "+ve),"complete"===ve&&re._responder.onPeerGatheringComplete()},H.onremovestream=function(){(0,E.debug)(g,"[peer.onremovestream]")}}},{key:"_onDataChannelMessage",value:function(H){var J=H.data instanceof ArrayBuffer?{data:{message:String.fromCharCode.apply(null,new Uint8Array(H.data))}}:H;if((0,c.default)(X.prototype.__proto__||(0,y.default)(X.prototype),"_onDataChannelMessage",this).call(this,H))return!0;var re=this.getJsonFromSocketMessage(J);if(null===re)return(0,E.warn)(this._name,"Determined websocket response not in correct format. Aborting message handle."),!0;(0,E.debug)(this._name,"[datachannel-response]: "+(0,v.default)(re,null,2));var ie=re.data;return ie&&"status"===ie.type?"NetStream.Play.UnpublishNotify"===ie.code?(this._responder.onUnpublish(),!0):((0,E.debug)(g,"[datachannel.message] status :: "+ie.code),this._responder.onPublisherStatus(ie),!0):(this._responder.onDataChannelMessage(this._dataChannel,J),!1)}},{key:"getUserMedia",value:function(H,J){return I.getUserMedia(H,J)}},{key:"forceUserMedia",value:function(H){return I.forceUserMedia(H)}},{key:"createOffer",value:function(){var H=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,J=this,re=arguments.length>1&&void 0!==arguments[1]&&arguments[1],ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,E.debug)(g,"[createoffer]");var ve=ie||new L.DeferredPromise;return this._peerConnection.createOffer().then(function(ue){J.setLocalDescription(ue,H).then(function(){H&&(ue.sdp=I.updateBandwidth(H,ue.sdp)),re&&(ue.sdp=ue.sdp.replaceAll("H264","H265"),(0,E.debug)(g,"[createoffer] FORCING VP8")),J._responder.onSDPSuccess(),ve.resolve(ue)}).catch(function(se){J._responder.onSDPError(se),ve.reject(se)})}).catch(function(ue){(0,E.debug)(g,"[createoffer:error]"),ve.reject(ue)}),ve.hasOwnProperty("promise")?ve.promise:ve}},{key:"postUnpublish",value:function(H){var J=this.post({unpublish:H});return(0,E.debug)(g,"[peerconnection:unpublish] complete: "+J),J}}]),X}(N.default);s.default=R},function(z,s,n){"use strict";function l(X){return X&&X.__esModule?X:{default:X}}Object.defineProperty(s,"__esModule",{value:!0});var v=l(n(10)),y=l(n(3)),O=l(n(0)),_=l(n(1)),r=l(n(6)),c=l(n(31)),M=l(n(5)),I=function(X){if(X&&X.__esModule)return X;var H={};if(null!=X)for(var J in X)Object.prototype.hasOwnProperty.call(X,J)&&(H[J]=X[J]);return H.default=X,H}(n(29)),V=l(n(7)),N=l(n(60)),L=n(8),E=n(2),g="R5ProSubscriptionPeer",B=function(X){function H(J){return(0,O.default)(this,H),(0,r.default)(this,(H.__proto__||(0,y.default)(H)).call(this,J,g))}return(0,M.default)(H,X),(0,_.default)(H,[{key:"_removeConnectionHandlers",value:function(J){J.onconnectionstatechange=void 0,J.oniceconnectionstatechange=void 0,J.onicecandidate=void 0,J.ontrack=void 0,J.ondatachannel=void 0}},{key:"_addConnectionHandlers",value:function(J,re){var ie=this,ve=void 0;J.onconnectionstatechange=function(){(0,E.debug)(g,"[peer.onconnectionstatechange] - State: "+J.connectionState),"connected"===J.connectionState?((0,E.debug)(g,"[peerconnection:open]"),re?re.resolve(ie):ie._responder.onPeerConnectionOpen()):"failed"!==J.connectionState&&"disconnected"!==J.connectionState||((0,E.warn)(g,"[peerconnection:error]"),re&&re.reject())},J.onicecandidate=function(ue){(0,E.debug)(g,"[peer.onicecandidate] - Peer Candidate: "+ue.candidate),ue.candidate?ie._responder.onIceCandidate(ue.candidate):null===ue.candidate&&ie._pendingMediaStream&&(ie._responder.onIceCandidateTrickleEnd(ie._pendingMediaStream),ie._pendingMediaStream=void 0)},J.ontrack=function(ue){(0,E.debug)(g,"(ontrack) Peer Add Stream: "+ue.streams),ue.streams&&ue.streams.length>0&&void 0===ie._pendingMediaStream&&(ie._pendingMediaStream=ue.streams[0],ie._responder.onAnswerMediaStream(ue.streams[0]))},J.oniceconnectionstatechange=function(ue){var se=J.iceConnectionState;(0,E.debug)(g,"[peer.oniceconnectionstatechange] - State: "+se),"connected"===se&&V.default.getIsEdge()?((0,E.debug)(g,"[edge/ortc:notify complete]"),ie._responder.onPeerGatheringComplete(),J.onicecandidate({candidate:null})):"failed"===se?(ve&&clearTimeout(ve),ie._responder.onPeerConnectionFail(),ie._responder.onPeerConnectionClose(ue)):"disconnected"===se?ve=setTimeout(function(){(0,E.debug)(g,"[peer.oniceconnectionstatechange] - Reconnect timeout reached. Closing PeerConnection."),clearTimeout(ve),ie._responder.onPeerConnectionClose(ue)},5e3):ve&&((0,E.debug)(g,"[peer.oniceconnectionstatechange] - Clearing timeout for reconnect."),clearTimeout(ve))},J.onicegatheringstatechange=function(){var ue=J.iceGatheringState;(0,E.debug)(g,"[peer.onicegatheringstatechange] - State: "+ue),"complete"===ue&&ie._responder.onPeerGatheringComplete()},J.onremovestream=function(){(0,E.debug)(g,"[peer.onremovestream]")}}},{key:"_onDataChannelMessage",value:function(J){var re=J.data instanceof ArrayBuffer?{data:{message:String.fromCharCode.apply(null,new Uint8Array(J.data))}}:J;if((0,c.default)(H.prototype.__proto__||(0,y.default)(H.prototype),"_onDataChannelMessage",this).call(this,J))return!0;var ie=this.getJsonFromSocketMessage(re);if(null===ie)return(0,E.warn)(this._name,"Determined websocket response not in correct format. Aborting message handle."),!0;(0,E.debug)(this._name,"[datachannel-response]: "+(0,v.default)(ie,null,2));var ve=ie.data;return ve&&"status"===ve.type?"NetStream.Play.UnpublishNotify"===ve.code?(this._responder.onUnpublish(),this._responder.onConnectionClosed(),!0):((0,E.debug)(g,"[datachannel.message] status :: "+ve.code),this._responder.onSubscriberStatus(ve),!0):ve.status&&"NetStream.Play.UnpublishNotify"===ve.status?(this._responder.onUnpublish(),this._responder.onConnectionClosed(),!0):(this._responder.onDataChannelMessage(this._dataChannel,re),!1)}},{key:"createAnswer",value:function(J){var re=this;(0,E.debug)(g,"[createanswer]");var ie=new L.DeferredPromise;return this._peerConnection.setRemoteDescription(J).then(this._responder.onSDPSuccess).catch(function(ve){re._responder.onSDPError(ve)}),this._peerConnection.createAnswer().then(function(ve){re._peerConnection.setLocalDescription(ve).then(re._responder.onSDPSuccess).catch(function(ue){re._responder.onSDPError(ue)}),ie.resolve(ve)}).catch(ie.reject),ie.promise}},{key:"addIceCandidate",value:function(J){if((0,E.debug)(g,"checking if empty..."),function(X){return void 0===X||"string"==typeof X&&0===X.length}(J))(0,E.debug)(g,"[addicecandidate]:: empty");else if(null!==J){(0,E.debug)(g,"[addicecandidate] :: non-empty");var re=new I.RTCIceCandidate({sdpMLineIndex:J.sdpMLineIndex,candidate:J.candidate});this._peerConnection.addIceCandidate(re).then(function(){}).catch(function(ie){(0,E.error)(g,"Error in add of ICE Candidiate + "+ie)})}else(0,E.debug)(g,"[addicecandidate] :: null"),this._peerConnection.addIceCandidate(J).then(function(){}).catch(function(ie){(0,E.error)(g,"Error in add of ICE Candidiate + "+ie)})}}]),H}(N.default);s.default=B},function(z,s,n){"use strict";function l(O){return O&&O.__esModule?O:{default:O}}Object.defineProperty(s,"__esModule",{value:!0}),s.RawStream=void 0;var v=l(n(0)),y=l(n(1)),f=n(100);s.RawStream=function(){function O(){(0,v.default)(this,O)}return(0,y.default)(O,[{key:"write",value:function(P){console.log("%s - [%s] %s: %s",P.time.toISOString(),P.name,f.nameFromLevel[P.level],P.msg)}}]),O}()},function(z,s,n){"use strict";function l(ue){return ue&&ue.__esModule?ue:{default:ue}}Object.defineProperty(s,"__esModule",{value:!0}),s.RTCPublisher=s.RTMPPublisher=s.Red5ProPublisher=void 0;var ue,v=l(n(97)),y=l(n(99)),O=l(n(3)),_=l(n(0)),r=l(n(1)),c=l(n(6)),M=l(n(5)),I=l(n(94)),V=l(n(92)),N=l(n(19)),E=l(n(127)),R=l(n(126)),B=n(8),X=n(58),H=n(2),J="Red5ProPublisher",re=new V.default,ie=((ue=new I.default).set(X.PublishTypes.RTC,R.default),ue.set(X.PublishTypes.RTMP,E.default),ue),ve=function(ue){function se(){(0,_.default)(this,se);var Z=(0,c.default)(this,(se.__proto__||(0,O.default)(se)).call(this));return Z._options=void 0,Z._order=[X.PublishTypes.RTC,X.PublishTypes.RTMP],Z}return(0,M.default)(se,ue),(0,r.default)(se,[{key:"_getPublisherFromOrder",value:function(Z,Se){return re.create(Z,ie,Se,"init")}},{key:"getPublishOrder",value:function(){return this._order}},{key:"setPublishOrder",value:function(Z){var Se=(Z="string"==typeof Z?[Z]:Z).filter(function(Ce){var Be=void 0;for(Be in X.PublishTypes)if(X.PublishTypes[Be].toLowerCase()===Ce.toLowerCase())return!0;return!1}).map(function(Ce){return Ce.toLowerCase()});return this._order=[].concat((0,y.default)(new v.default(Se))),(0,H.debug)(J,"[orderupdate]: "+this._order),this}},{key:"init",value:function(Z){var Se=new B.DeferredPromise;return(0,H.debug)(J,"[publish]"),this._options=Z,this._getPublisherFromOrder(this._order,this._options).then(function(Ce){Se.resolve(Ce)}).catch(function(Ce){(0,H.warn)(J,"[publisherror]: Could not implement a publisher: "+Ce),Se.reject(Ce)}),Se.promise}},{key:"publishTypes",get:function(){return X.PublishTypes}}]),se}(N.default);s.Red5ProPublisher=ve,s.RTMPPublisher=E.default,s.RTCPublisher=R.default},function(z,s,n){"use strict";function l(g){return g&&g.__esModule?g:{default:g}}Object.defineProperty(s,"__esModule",{value:!0});var v=l(n(142)),y=l(n(10)),O=l(n(0)),_=l(n(1)),r=function(g){if(g&&g.__esModule)return g;var R={};if(null!=g)for(var B in g)Object.prototype.hasOwnProperty.call(g,B)&&(R[B]=g[B]);return R.default=g,R}(n(81)),c=l(n(7)),M=l(n(88)),D=n(93),I=n(25),U=n(8),V=n(2),T="R5ProPublisherSourceHandler",N=function(g){return g.exact||g.ideal||g.max||g.min||g},E=function(){function g(R,B){var X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;(0,O.default)(this,g),this.video=R,this.clone=this.video.cloneNode(!0),this.holder=this.video.parentNode,this._publisherType=B,this._swfId=null,this._embedFuture=void 0,this._soResponder=X||new M.default}return(0,_.default)(g,[{key:"getEmbedOperation",value:function(){return this._embedFuture=U.Future.createIfNotExist(this._embedFuture),this._embedFuture.promise}},{key:"cleanUp",value:function(){this.video.remove(),this.video=this.clone.cloneNode(!0),this.holder.appendChild(this.video),this._embedFuture=void 0}},{key:"addSource",value:function(R,B){var X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,H=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;(0,V.debug)(T,"[addsource]");var J=this;this._swfId=R,this._embedFuture=U.Future.createIfNotExist(this._embedFuture);var re=this._embedFuture;return B.swf=X||B.swf,B.minFlashVersion=H||B.minFlashVersion,r.defineEmbedElement(this.video,this.holder).then(function(ie){(0,V.debug)(T,"[element:complete]");var ve={buffer:null!=B.buffer?B.buffer:1,streamMode:B.streamMode,streamName:B.streamName,appName:B.app,host:B.host};return B.backgroundColor&&(ve.backgroundColor=B.backgroundColor),B.context&&(ve.roomName=B.context),"100%"!==B.embedWidth&&"100%"!==B.embedHeight||(ve.autosize=!0),void 0!==B.connectionParams&&(ve.connectionParams=encodeURIComponent((0,y.default)(B.connectionParams))),ve=function(g,R){var B=(0,I.deepCopy)(R);if("boolean"==typeof g.video)B.video=g.video;else{var X=void 0;for(X in g.video)B[X]=N(g.video[X]);B.video=!0}return B.audio="boolean"!=typeof g.audio||g.audio,B}(B.mediaConstraints,ve),r.embedSwfObject(R,B,ve,c.default.getSwfObject(),ie)}).then(function(){(0,V.debug)(T,"[embed:complete]"),re.resolve(J)}).catch(function(ie){return re.reject(ie)}),re.promise}},{key:"connect",value:function(R){(0,V.debug)(T,"[connect]");var B=c.default.getEmbedObject(this._swfId);B?(B.connect(R),this._soResponder.connect(this._swfId)):(0,V.warn)(T,"Could not determine embedded element with swf id: "+this._swfId+".")}},{key:"disconnect",value:function(){(0,V.debug)(T,"[disconnect]");try{var R=c.default.getEmbedObject(this._swfId);R&&R.disconnect()}catch{}this.cleanUp(),this._soResponder.disconnect()}},{key:"send",value:function(R,B){var X=c.default.getEmbedObject(this._swfId);X&&X.send(R,B)}},{key:"addSharedObjectResponseHandler",value:function(R){this._soResponder.addResponseHandler(R)}},{key:"removeSharedObjectResponseHandler",value:function(R){this._soResponder.removeResponseHandler(R)}},{key:"sendToSharedObject",value:function(R,B,X){this._soResponder.sendToSharedObject(R,B,X)}},{key:"sendPropertyToSharedObject",value:function(R,B,X){this._soResponder.sendPropertyToSharedObject(R,B,X)}},{key:"getRemoteSharedObject",value:function(R){this._soResponder.getRemoteSharedObject(R)}},{key:"connectToSharedObject",value:function(R){this._soResponder.connectToSharedObject(R)}},{key:"closeSharedObject",value:function(R){this._soResponder.closeSharedObject(R)}},{key:"setMediaQuality",value:function(R){var B=c.default.getEmbedObject(this._swfId);if(B&&R.video&&"boolean"!=typeof R.video){var X=isNaN(R.video.width)?v.default:(0,D.toInt)(R.video.width),H=isNaN(R.video.height)?v.default:(0,D.toInt)(R.video.height);B.updateResolution(X,H)}}},{key:"getType",value:function(){return this._publisherType}}]),g}();s.default=E},function(z,s,n){"use strict";function l(Fe){if(Fe&&Fe.__esModule)return Fe;var At={};if(null!=Fe)for(var Le in Fe)Object.prototype.hasOwnProperty.call(Fe,Le)&&(At[Le]=Fe[Le]);return At.default=Fe,At}function d(Fe){return Fe&&Fe.__esModule?Fe:{default:Fe}}Object.defineProperty(s,"__esModule",{value:!0});var S=d(n(38)),f=d(n(62)),P=d(n(30)),i=d(n(10)),a=d(n(3)),m=d(n(0)),D=d(n(1)),U=d(n(6)),T=d(n(5)),L=d(n(19)),g=l(n(29)),B=l(n(44)),H=d(n(7)),re=d(n(119)),ve=d(n(121)),se=d(n(61)),Z=n(13),Se=n(58),Ce=n(59),Be=n(8),Xe=n(89),He=n(46),Me=n(2),Q=/(.*) starting/i,A=/(.*) stopping/i,me="RTCPublisher",ne=function(Fe){(0,Me.debug)(me,Fe)},G=function(Fe){(0,Me.warn)(me,Fe)},W=function(Fe){(0,Me.error)(me,Fe)},$={protocol:"wss",port:443,app:"live",streamMode:Se.PublishModeTypes.LIVE,keyFramerate:3e3,mediaElementId:"red5pro-publisher",rtcConfiguration:{iceServers:[{urls:"stun:stun2.l.google.com:19302"}],iceCandidatePoolSize:2,bundlePolicy:"max-bundle"},iceServers:void 0,iceTransport:Ce.IceTransportTypes.UDP,bandwidth:{audio:56,video:512},clearMediaOnUnpublish:!1,mediaConstraints:new Xe.RTCMediaConstraint,onGetUserMedia:void 0,signalingSocketOnly:!0,dataChannelConfiguration:void 0,forceVP8:!1,socketSwitchDelay:100},le=function(Fe){var At={audio:!1,video:!1},Le={audio:!1,video:!1};return Fe.getTracks().forEach(function(Et){"video"===Et.kind?(Le.video=Et.getSettings(),At.video=Et.getConstraints()):"audio"===Et.kind&&(Le.audio=Et.getSettings(),At.audio=Et.getConstraints())}),{requested:At,accepted:Le}},Pe=function(Fe){function At(){(0,m.default)(this,At);var Le=(0,U.default)(this,(At.__proto__||(0,a.default)(At)).call(this));return Le._options=void 0,Le._view=void 0,Le._peerHelper=void 0,Le._socketHelper=void 0,Le._messageTransport=void 0,Le._mediaStream=void 0,Le._switchChannelRequest=void 0,Le._streamFuture=void 0,Le._availableFuture=void 0,Le._peerFuture=void 0,Le._offerFuture=void 0,Le._sendOfferFuture=void 0,Le._trickleEndFuture=void 0,Le._publishFuture=void 0,Le._unpublishFuture=void 0,Le._onOrientationChange=Le._onOrientationChange.bind(Le),Le._gUMRejectionHandler=Le._onGUMRejection.bind(Le),Le}return(0,T.default)(At,Fe),(0,D.default)(At,[{key:"_getMediaStream",value:function(){return this._streamFuture=Be.Future.createIfNotExist(this._streamFuture),this._streamFuture.promise}},{key:"_getTrickleEnd",value:function(){return Be.Future.createIfNotExist(this._trickleEndFuture)}},{key:"_gum",value:function(Le){var Et=this,$e=function(Ze){if(!Ze)return!1;var Qe=Ze.getTracks();return!!(Qe&&Qe.length>1)&&"video"===Qe[0].kind};void 0!==Le.onGetUserMedia?(ne("Requesting gUM from user-defined configuration:onGetUserMedia."),Le.onGetUserMedia().then(function(Ze){if($e(Ze))return ne("We received a MediaStream with mismatching track listing. Trying again..."),void Et._gum(Le);Et.trigger(new Z.PublisherEvent(Z.RTCPublisherEventTypes.CONSTRAINTS_ACCEPTED,Et,le(Ze))),Et._streamFuture.resolve(Ze)}).catch(function(Ze){W("Could not resolve MediaStream from provided gUM. Error - "+Ze),Et.trigger(new Z.PublisherEvent(Z.RTCPublisherEventTypes.CONSTRAINTS_REJECTED,Et,{constraints:Le.mediaConstraints})),Et._streamFuture.reject(Ze)})):(ne("Requesting gUM using mediaConstraints: "+(0,i.default)(Le.mediaConstraints,null,2)),this._peerHelper.getUserMedia(Le.mediaConstraints,this._gUMRejectionHandler).then(function(Ze){if($e(Ze.media))return ne("We received a MediaStream with mismatching track listing. Trying again..."),void Et._gum(Le);ne("Found valid constraints: "+(0,i.default)(Ze.constraints,null,2)),Et.trigger(new Z.PublisherEvent(Z.RTCPublisherEventTypes.CONSTRAINTS_ACCEPTED,Et,le(Ze.media))),Et.trigger(new Z.PublisherEvent(Z.PublisherEventTypes.DIMENSION_CHANGE,Et,Ze.constraints)),Et._streamFuture.resolve(Ze.media)}).catch(function(Ze){ne("Could not find valid constraint resolutions from: "+(0,i.default)(Ze.constraints,null,2)),W("Could not resolve MediaStream from provided mediaConstraints. Error - "+Ze.error),ne("Attempting to find resolutions from original provided constraints: "+(0,i.default)(Ze.constraints,null,2)),Et.trigger(new Z.PublisherEvent(Z.RTCPublisherEventTypes.CONSTRAINTS_REJECTED,Et,{constraints:Ze.constraints})),Le.onGetUserMedia=function(){return Et._peerHelper.forceUserMedia(Ze.constraints)},Et._gum(Le)}))}},{key:"_onGUMRejection",value:function(Le){this.trigger(new Z.PublisherEvent(Z.RTCPublisherEventTypes.CONSTRAINTS_REJECTED,this,{constraints:Le}))}},{key:"_onOrientationChange",value:function(Le){this.getMessageTransport()&&this.getMessageTransport().post({send:{method:"onMetaData",data:{deviceOrientation:Le}}})}},{key:"_onMediaStreamReceived",value:function(Le){this._mediaStream=Le,this.trigger(new Z.PublisherEvent(Z.RTCPublisherEventTypes.MEDIA_STREAM_AVAILABLE,this,Le)),this._view&&this._view.preview(this._mediaStream)}},{key:"_setViewIfNotExist",value:function(Le){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;void 0===Le&&void 0!==Et&&new se.default(Et).attachPublisher(this)}},{key:"_requestAvailability",value:function(Le){return ne("[requestavailability]"),this._availableFuture=Be.Future.createIfNotExist(this._availableFuture),this._socketHelper.post({isAvailable:Le,bundle:!0}),this._availableFuture.promise}},{key:"_createPeerConnection",value:function(Le){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,$e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return ne("[createpeeer]"),this._peerFuture=void 0,this._peerFuture=Be.Future.createIfNotExist(this._peerFuture),$e&&Le&&(G("The iceServers configuration property is considered deprecated. Please use the rtcConfiguration configuration property upon which you can assign iceServers. Reference: https://www.red5pro.com/docs/streaming/migrationguide.html"),Le.iceServers=$e),void 0!==Le?this._peerHelper.setUpWithPeerConfiguration(Le,Et,this._peerFuture):this._peerHelper.setUp($e,this._peerFuture,this._options.rtcpMuxPolicy)}},{key:"_createOffer",value:function(){var Le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,Et=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return ne("[createoffer]"),this._offerFuture=void 0,this._offerFuture=Be.Future.createIfNotExist(this._offerFuture),this._peerHelper.createOffer(Le,Et,this._offerFuture),this._offerFuture.promise}},{key:"_setRemoteDescription",value:function(Le){return ne("[setremotedescription]"),this._peerHelper.setRemoteDescription(Le)}},{key:"_sendOffer",value:function(Le,Et,$e){return ne("[sendoffer]"),this._sendOfferFuture=void 0,this._sendOfferFuture=Be.Future.createIfNotExist(this._sendOffFuture),this._socketHelper.post({handleOffer:Et,transport:$e,data:{sdp:Le}}),this._sendOfferFuture.promise}},{key:"_sendCandidate",value:function(Le,Et){ne("[sendcandidate]"),this._socketHelper.post({handleCandidate:Et,data:{candidate:Le}})}},{key:"_requestPublish",value:function(Le,Et,$e){return ne("[requestpublish]"),this._publishFuture=void 0,this._publishFuture=Be.Future.createIfNotExist(this._publishFuture),this._socketHelper.post({publish:Le,mode:Et,keyFramerate:$e}),this._publishFuture.promise}},{key:"_requestUnpublish",value:function(Le){return this._unpublishFuture=void 0,this._unpublishFuture=Be.Future.createIfNotExist(this._unpublishFuture),this.getMessageTransport().postUnpublish(Le)||this._unpublishFuture.resolve(),this._unpublishFuture.promise}},{key:"init",value:function(Le){this._streamFuture=void 0;var Et=new Be.DeferredPromise;return g.isSupported()&&B.isSupported()?(this._options=(0,P.default)({},$,Le),this._peerHelper=new ve.default(this),this._socketHelper=new re.default(this),this._messageTransport=this._socketHelper,this._getMediaStream().then(this._onMediaStreamReceived.bind(this)).catch(function($e){G("[gum]: "+$e)}),this._gum(this._options),this._setViewIfNotExist(this._view,this._options.mediaElementId),Et.resolve(this)):Et.reject("Cannot create WebRTC playback instance. Your environment does not support WebRTC and/or WebSockets."),Et.promise}},{key:"initWithStream",value:function(Le,Et){ne("[initWithStream]"),this._streamFuture=void 0;var $e=new Be.DeferredPromise;return g.isSupported()&&B.isSupported()?(this._options=(0,P.default)({},$,Le),this._peerHelper=new ve.default(this),this._socketHelper=new re.default(this),this._messageTransport=this._socketHelper,this._setViewIfNotExist(this._view,this._options.mediaElementId),this._getMediaStream().then(this._onMediaStreamReceived.bind(this)).catch(function(Ze){G("[gum]: "+Ze)}),this._streamFuture.resolve(Et),$e.resolve(this)):$e.reject("Cannot create WebRTC playback instance. Your environment does not support WebRTC and/or WebSockets."),$e.promise}},{key:"setView",value:function(Le){return this._view=Le,this._mediaStream&&this._view&&this._view.preview(this._mediaStream),this}},{key:"preview",value:function(){var Le=this;ne("[preview]");var Et=new f.default(function($e){$e(Le)});return this._setViewIfNotExist(this._view,this._options.mediaElementId),Et}},{key:"unpreview",value:function(){ne("[unpreview]"),this._mediaStream&&this._mediaStream.getTracks().forEach(function(Le){Le.stop()}),this._view&&this._view.unpreview()}},{key:"publish",value:function(){var Le=this,Et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,$e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ne("[publish]"),this._options.streamName=Et||this._options.streamName;var Ze=$e||new Be.DeferredPromise,Qe=new Be.DeferredPromise,Ve=(0,He.rtcSocketEndpointFromOptions)(this._options,{id:this._options.streamName});this._trickleEndFuture=this._getTrickleEnd(),this._peerHelper||(this._peerHelper=new ve.default(this)),this._socketHelper?this._socketHelper.clearRetry():(this._socketHelper=new re.default(this),this._messageTransport=this._socketHelper),this._socketHelper.setUp(Ve,Qe);var nt=this._options,Ot=nt.rtcConfiguration,It=nt.dataChannelConfiguration,We=nt.signalingSocketOnly&&g.supportsDataChannel();return We&&!It&&(It={name:"red5pro"}),this._options.signalingSocketOnly=We,this._publishFuture=Be.Future.createIfNotExist(this._publishFuture),this._publishFuture.promise.catch(function(xe){H.default.removeOrientationChangeHandler(Le._onOrientationChange),Ze.reject(xe),Le.trigger(new Z.PublisherEvent(Z.PublisherEventTypes.CONNECT_FAILURE,Le,xe))}),Qe.promise.then(function(){return Le.trigger(new Z.PublisherEvent(Z.PublisherEventTypes.CONNECT_SUCCESS,Le)),Le._getMediaStream()}).then(function(){return Le._requestAvailability(Le._options.streamName,Le._options.streamType)}).then(function(){return Le._createPeerConnection(Ot,It,Le._options.iceServers)}).then(function(xe){return Le.trigger(new Z.PublisherEvent(Z.RTCPublisherEventTypes.PEER_CONNECTION_AVAILABLE,Le,xe)),Le._mediaStream.getTracks().forEach(function(lt){xe.addTrack(lt,Le._mediaStream)}),Le._createOffer(Le._options.bandwidth,Le._options.forceVP8)}).then(function(xe){return Le.trigger(new Z.PublisherEvent(Z.RTCPublisherEventTypes.OFFER_START,Le,xe)),Le._sendOffer(xe,Le._options.streamName,Le._options.iceTransport)}).then(function(xe){return Le._setRemoteDescription(xe.sdp)}).then(function(xe){return Le.trigger(new Z.PublisherEvent(Z.RTCPublisherEventTypes.OFFER_END,Le,xe)),Le._getTrickleEnd().promise}).then(function(){return Le.trigger(new Z.PublisherEvent(Z.RTCPublisherEventTypes.ICE_TRICKLE_COMPLETE,Le)),Le._requestPublish(Le._options.streamName,Le._options.streamMode,Le._options.keyFramerate)}).then(function(){H.default.addOrientationChangeHandler(Le._onOrientationChange),Ze.resolve(Le),Le.trigger(new Z.PublisherEvent(Z.PublisherEventTypes.PUBLISH_START,Le))}).catch(function(xe){H.default.removeOrientationChangeHandler(Le._onOrientationChange),Ze.reject(xe),Le.trigger(new Z.PublisherEvent(Z.PublisherEventTypes.CONNECT_FAILURE,Le,xe))}),Ze.hasOwnProperty("promise")?Ze.promise:Ze}},{key:"publishWithSocket",value:function(Le){var Et=this,$e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,Ze=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;ne("[publishWithSocket]"),this._options.streamName=$e||this._options.streamName;var Qe=Ze||new Be.DeferredPromise,Ve=new Be.DeferredPromise;return this._socketHelper=new re.default(this),this._socketHelper.setUpWithSocket(Le,Ve),Ve.promise.then(function(){return Et._requestPublish(Et._options.streamName,Et._options.streamMode,Et._options.keyFramerate)}).then(function(){H.default.addOrientationChangeHandler(Et._onOrientationChange),Qe.resolve(Et),Et.trigger(new Z.PublisherEvent(Z.PublisherEventTypes.PUBLISH_START,Et))}).catch(function(nt){H.default.removeOrientationChangeHandler(Et._onOrientationChange),Qe.reject(nt),Et.trigger(new Z.PublisherEvent(Z.PublisherEventTypes.CONNECT_FAILURE,Et,nt))}),Qe.hasOwnProperty("promise")?Qe.promise:Qe}},{key:"unpublish",value:function(){var Le=this,Et=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ne("[unpublish]");(this._options.clearMediaOnUnpublish||Et)&&this.unpreview(),this._availableFuture=void 0,this._peerFuture=void 0,this._offerFuture=void 0,this._sendOfferFuture=void 0,this._trickleEndFuture=void 0,this._publishFuture=void 0;var Ze=this._requestUnpublish(this._options.streamName);return Ze.then(function(){Le._unpublishFuture=void 0,Le._socketHelper&&(ne("[unpublish:teardown]"),Le._socketHelper.tearDown()),Le._peerHelper&&Le._peerHelper.tearDown(),Le._socketHelper=void 0,Le._peerHelper=void 0,Le._messageTransport=void 0,Le.trigger(new Z.PublisherEvent(Z.PublisherEventTypes.UNPUBLISH_SUCCESS,Le))}),H.default.removeOrientationChangeHandler(this._onOrientationChange),Ze}},{key:"mute",value:function(){this.muteAudio()}},{key:"unmute",value:function(){this.unmuteAudio()}},{key:"muteAudio",value:function(){this.getMessageTransport().post({mute:{muteAudio:!0}})}},{key:"unmuteAudio",value:function(){this.getMessageTransport().post({mute:{muteAudio:!1}})}},{key:"muteVideo",value:function(){this.getMessageTransport().post({mute:{muteVideo:!0}})}},{key:"unmuteVideo",value:function(){this.getMessageTransport().post({mute:{muteVideo:!1}})}},{key:"send",value:function(Le,Et){this.getMessageTransport().post({send:{method:Le,data:"string"==typeof Et?JSON.parse(Et):Et}})}},{key:"callServer",value:function(Le,Et){return this.getMessageTransport().postAsync({callAdapter:{method:Le,arguments:Et}})}},{key:"sendLog",value:function(Le,Et){try{var $e=(0,S.default)(Me.LEVELS).find(function(Qe){return Qe.toLowerCase()===Le.toLowerCase()})?Le:Me.LEVELS.DEBUG,Ze="string"==typeof Et?Et:(0,i.default)(Et);this.getMessageTransport().post({log:$e.toUpperCase(),message:Ze})}catch(Qe){W(me),W(me)}}},{key:"onStreamAvailable",value:function(Le){ne("[onstreamavailable]: "+(0,i.default)(Le,null,2)),this._availableFuture=Be.Future.createIfNotExist(this._availableFuture),this._availableFuture.reject("Stream with name "+this._options.streamName+" already has a broadcast session."),this.trigger(new Z.PublisherEvent(Z.PublisherEventTypes.PUBLISH_INVALID_NAME,this))}},{key:"onStreamUnavailable",value:function(Le){ne("Stream "+this._options.streamName+" does not exist."),ne("[onstreamunavailable]: "+(0,i.default)(Le,null,2)),this._availableFuture=Be.Future.createIfNotExist(this._availableFuture),this._availableFuture.resolve(!0)}},{key:"onSocketMessageError",value:function(Le){W("Error in stream publish: "+Le+".\n[Optional detail]: "+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)),this._publishFuture&&(this.trigger(new Z.PublisherEvent(Z.PublisherEventTypes.PUBLISH_FAIL,this)),this._publishFuture.reject(Le),this.unpublish())}},{key:"onSocketClose",value:function(Le){ne("[onsocketclose]"),this._peerHelper&&this._peerHelper.tearDown(),this.trigger(new Z.PublisherEvent(Z.PublisherEventTypes.CONNECTION_CLOSED,this,Le))}},{key:"onPeerConnectionFail",value:function(){ne("[onpeerconnectionfail]"),this.trigger(new Z.PublisherEvent(Z.PublisherEventTypes.PUBLISH_FAIL,this)),this._subscriptionResolver.reject("Peer Connection Failed.")}},{key:"onPeerConnectionClose",value:function(Le){ne("[onpeerconnectionclose]"),this._socketHelper&&(ne("[onpeerconnectionclose:teardown]"),this._socketHelper.tearDown()),this.onSocketClose(Le)}},{key:"onPeerConnectionOpen",value:function(){ne("[onpeerconnection::open]"),this.trigger(new Z.PublisherEvent(Z.RTCPublisherEventTypes.PEER_CONNECTION_OPEN))}},{key:"onSDPSuccess",value:function(Le){var Et=Le?": "+(0,i.default)(Le,null,2):"";ne("[onsdpsuccess]"+Et)}},{key:"onSDPError",value:function(Le){this.trigger(new Z.PublisherEvent(Z.PublisherEventTypes.PUBLISH_FAIL,this));var Et=Le?": "+(0,i.default)(Le,null,2):"";Et("[onsdperror]"+Et)}},{key:"onSDPAnswer",value:function(Le){ne("[sdpanswer]:: "+(0,i.default)(Le,null,2)),this._sendOfferFuture=Be.Future.createIfNotExist(this._sendOfferFuture),this._sendOfferFuture.resolve(Le)}},{key:"onAddIceCandidate",value:function(Le){ne("[addicecandidate]"),this._peerHelper.addIceCandidate(Le).then(function(){ne("[addicecandidate:success]")}).catch(function(Et){G("[addicecandidate:error] - "+Et)})}},{key:"onIceCandidate",value:function(Le){ne("[icecandidatetrickle]"),this._sendCandidate(Le,this._options.streamName)}},{key:"onIceCandidateTrickleEnd",value:function(){ne("[icecandidatetrickle:end]")}},{key:"onEmptyCandidate",value:function(){ne("[icecandidatetrickle:empty]"),this.trigger(new Z.PublisherEvent(Z.RTCPublisherEventTypes.PEER_CANDIDATE_END))}},{key:"onPeerGatheringComplete",value:function(){ne("[icecandidategathering:end]"),this._socketHelper&&this._socketHelper.postEndOfCandidates(this._options.streamName)}},{key:"onSocketIceCandidateEnd",value:function(){ne("[socketicecandidate:end]"),this._getTrickleEnd().resolve()}},{key:"onPublisherStatus",value:function(Le){ne("[publisherstatus] - "+(0,i.default)(Le,null,2));var Et=A.exec(Le.message),$e=Q.exec(Le.message);Et&&Et[1]===this._options.streamName?this._unpublishFuture.resolve():$e&&$e[1]===this._options.streamName?this._publishFuture.resolve():this.trigger(Le.code&&"NetStream.Publish.IsAvailable"===Le.code?new Z.PublisherEvent(Z.PublisherEventTypes.PUBLISH_AVAILABLE,this.status):new Z.PublisherEvent(Z.PublisherEventTypes.PUBLISH_STATUS,this,Le))}},{key:"onInsufficientBandwidth",value:function(Le){this.trigger(new Z.PublisherEvent(Z.PublisherEventTypes.PUBLISH_INSUFFICIENT_BANDWIDTH,this,Le))}},{key:"onSufficientBandwidth",value:function(Le){this.trigger(new Z.PublisherEvent(Z.PublisherEventTypes.PUBLISH_SUFFICIENT_BANDWIDTH,this,Le))}},{key:"onRecoveringBandwidth",value:function(Le){this.trigger(new Z.PublisherEvent(Z.PublisherEventTypes.PUBLISH_RECOVERING_BANDWIDTH,this,Le))}},{key:"onSendReceived",value:function(Le,Et){"onMetaData"===Le?this.onMetaData(Et):this.trigger(new Z.PublisherEvent(Z.PublisherEventTypes.PUBLISH_SEND_INVOKE,this,{methodName:Le,data:Et}))}},{key:"onDataChannelAvailable",value:function(Le){var Et=this;if(ne("[ondatachannel::available]"),this._switchChannelRequest={switchChannel:Le||"red5pro"},this._options.signalingSocketOnly)var $e=setTimeout(function(){clearTimeout($e),Et._socketHelper.sever(Et._switchChannelRequest),Et._messageTransport=Et._peerHelper,Et.trigger(new Z.MessageTransportStateEvent(Z.MessageTransportStateEventTypes.CHANGE,Et,{controller:Et,transport:Et._messageTransport}))},this._options.socketSwitchDelay);this.trigger(new Z.PublisherEvent(Z.RTCPublisherEventTypes.DATA_CHANNEL_AVAILABLE,this,{name:Le,dataChannel:this.getDataChannel()}))}},{key:"onDataChannelError",value:function(Le,Et){this.trigger(new Z.PublisherEvent(Z.RTCPublisherEventTypes.DATA_CHANNEL_ERROR,this,{dataChannel:Le,error:Et}))}},{key:"onDataChannelMessage",value:function(Le,Et){this.trigger(new Z.PublisherEvent(Z.RTCPublisherEventTypes.DATA_CHANNEL_MESSAGE,this,{dataChannel:Le,message:Et}))}},{key:"onDataChannelOpen",value:function(Le){this.trigger(new Z.PublisherEvent(Z.RTCPublisherEventTypes.DATA_CHANNEL_OPEN,this,{dataChannel:Le}))}},{key:"onDataChannelClose",value:function(Le){this.trigger(new Z.PublisherEvent(Z.RTCPublisherEventTypes.DATA_CHANNEL_CLOSE,this,{dataChannel:Le}))}},{key:"onMetaData",value:function(Le){this.trigger(new Z.PublisherEvent(Z.PublisherEventTypes.PUBLISH_METADATA,this,Le))}},{key:"overlayOptions",value:function(Le){this._options=(0,P.default)(this._options,Le)}},{key:"getMessageTransport",value:function(){return this._messageTransport}},{key:"getConnection",value:function(){return this._socketHelper}},{key:"getPeerConnection",value:function(){return this._peerHelper?this._peerHelper.connection:void 0}},{key:"getDataChannel",value:function(){return this._peerHelper?this._peerHelper.dataChannel:void 0}},{key:"getMediaStream",value:function(){return this._mediaStream}},{key:"getOptions",value:function(){return this._options}},{key:"getType",value:function(){return Se.PublishTypes.RTC.toUpperCase()}}]),At}(L.default);s.default=Pe},function(z,s,n){"use strict";function l(ve){return ve&&ve.__esModule?ve:{default:ve}}Object.defineProperty(s,"__esModule",{value:!0});var v=l(n(10)),y=l(n(30)),O=l(n(3)),_=l(n(0)),r=l(n(1)),c=l(n(6)),M=l(n(5)),I=l(n(19)),V=l(n(7)),N=l(n(125)),E=l(n(61)),g=n(13),R=n(8),B=n(58),X=n(89),H=n(2),J="RTMPPublisher",re={protocol:"rtmp",port:1935,streamMode:"live",mediaElementId:"red5pro-publisher",embedWidth:"100%",embedHeight:"100%",minFlashVersion:"10.0.0",swf:"lib/red5pro/red5pro-publisher.swf",swfobjectURL:"lib/swfobject/swfobject.js",productInstallURL:"lib/swfobject/playerProductInstall.swf",mediaConstraints:new X.RTMPMediaConstraint},ie=function(ve){function ue(){(0,_.default)(this,ue);var se=(0,c.default)(this,(ue.__proto__||(0,O.default)(ue)).call(this));return se._options=void 0,se._view=void 0,se._sourceHandler=void 0,se._elementId=void 0,se._connectFuture=void 0,se}return(0,M.default)(ue,ve),(0,r.default)(ue,[{key:"_setViewIfNotExist",value:function(se){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;void 0===se&&void 0!==Z&&new E.default(Z).attachPublisher(this)}},{key:"setView",value:function(se,Z){var Se=this;return this._view=se,this._elementId=Z,void 0!==this._sourceHandler&&(this._sourceHandler.disconnect(),this._sourceHandler=void 0),this._view&&(this._sourceHandler=new N.default(this._view.view,this.getType())),this._options&&this._sourceHandler&&this._sourceHandler.addSource(this._elementId,this._options).catch(function(Ce){(0,H.error)(J,"Could not establish proper RTMP publisher: "+Ce),Se.trigger(new g.PublisherEvent(g.RTMPPublisherEventTypes.EMBED_FAILURE,Se))}),this}},{key:"_setUpConnectCallback",value:function(se){var Z=this;window.setActiveId=function(Se){(0,H.debug)(J,"Embed and connect() complete for publisher swf. successId("+Se+")."),se.resolve(Z),Z.trigger(new g.PublisherEvent(g.RTMPPublisherEventTypes.EMBED_SUCCESS,Z)),Z._tearDownConnectCallback()}}},{key:"_tearDownConnectCallback",value:function(){window.setActiveId=void 0}},{key:"_establishExtIntHandlers",value:function(){var se=this,Z=this._options.streamName,Se=function(Ce){return["publisher",Ce,Z.split("-").join("_")].join("_")};window[Se("r5proConnectClosed")]=function(){se.trigger(new g.PublisherEvent(g.PublisherEventTypes.CONNECTION_CLOSED,se))},window[Se("r5proConnectSuccess")]=function(){return se.trigger(new g.PublisherEvent(g.PublisherEventTypes.CONNECT_SUCCESS,se))},window[Se("r5proUnpublishSuccess")]=function(){return se.trigger(new g.PublisherEvent(g.PublisherEventTypes.UNPUBLISH_SUCCESS,se))},window[Se("r5proPublishStart")]=function(){se._connectFuture.resolve(se),se.trigger(new g.PublisherEvent(g.PublisherEventTypes.PUBLISH_START,se))},window[Se("r5proPublishMetadata")]=function(Ce){return se.trigger(new g.PublisherEvent(g.PublisherEventTypes.PUBLISH_METADATA,se,Ce))},window[Se("r5proPublishInsufficientBW")]=function(Ce){return se.trigger(new g.PublisherEvent(g.PublisherEventTypes.PUBLISH_INSUFFICIENT_BANDWIDTH,se,Ce))},window[Se("r5proPublishSufficientBW")]=function(Ce){return se.trigger(new g.PublisherEvent(g.PublisherEventTypes.PUBLISH_SUFFICIENT_BANDWIDTH,se,Ce))},window[Se("r5proPublishRecoveringBW")]=function(Ce){return se.trigger(new g.PublisherEvent(g.PublisherEventTypes.PUBLISH_RECOVERING_BANDWIDTH,se,Ce))},window[Se("r5proConnectFailure")]=function(){se._connectFuture.reject(g.PublisherEventTypes.CONNECT_FAILURE),se.trigger(new g.PublisherEvent(g.PublisherEventTypes.CONNECT_FAILURE,se))},window[Se("r5proPublishFail")]=function(){se._connectFuture.reject(g.PublisherEventTypes.PUBLISH_FAIL),se.trigger(new g.PublisherEvent(g.PublisherEventTypes.PUBLISH_FAIL,se))},window[Se("r5proPublishInvalidName")]=function(){se._connectFuture.reject(g.PublisherEventTypes.PUBLISH_INVALID_NAME),se.trigger(new g.PublisherEvent(g.PublisherEventTypes.PUBLISH_INVALID_NAME,se))}}},{key:"init",value:function(se){var Z=this,Se=new R.DeferredPromise,Ce=se.minFlashVersion||re.minFlashVersion;if(V.default.supportsFlashVersion(Ce)){this._options=(0,y.default)({},re,se);try{V.default.injectScript(this._options.swfobjectURL).then(function(){return(0,H.debug)(J,"SWFObject embedded."),Z._sourceHandler?((0,H.debug)(J,"Publish handler established."),Z._sourceHandler.addSource(Z._elementId,Z._options)):((0,H.debug)(J,"Publish handler not established."),!0)}).then(function(){Z._setViewIfNotExist(Z._view,Z._options.mediaElementId),Se.resolve(Z)}).catch(function(Be){(0,H.error)(J,"Could not embed Flash-based RTMP Publisher. Reason: "+Be),Z._sourceHandler&&Z._sourceHandler.disconnect(),Se.reject(Be),Z.trigger(new g.PublisherEvent(g.RTMPPublisherEventTypes.EMBED_FAILURE,Z))})}catch(Be){Se.reject("Could not inject Flash-based Publisher into the page. Reason: "+Be.message),Z.trigger(new g.PublisherEvent(g.RTMPPublisherEventTypes.EMBED_FAILURE,Z))}}else Se.reject("Could not resolve RTMPPublisher instance. Requires minimum Flash Player install of "+Ce);return Se.promise}},{key:"publish",value:function(){var se=this,Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,Ce=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0)||new R.DeferredPromise;this._setUpConnectCallback(Ce),this._options.streamName=Z||this._options.streamName;var Be=this._options;try{var Xe=this._sourceHandler;this._sourceHandler.getEmbedOperation().then(function(){(0,H.debug)(J,"[handler:embed:complete]"),V.default.getEmbedObject(se._elementId)&&se._establishExtIntHandlers();var He=0;!function Me(){var Q=void 0;Q=setTimeout(function(){try{clearTimeout(Q),Xe.connect((0,v.default)(Be))}catch(A){if(He++>100)throw A;Me()}},300)}()}).catch(function(He){Ce.reject(He),se.trigger(new g.PublisherEvent(g.PublisherEventTypes.CONNECT_FAILURE,se))})}catch(He){(0,H.error)(J,"[handler:embed:error]"),Ce.reject("Could not initiate connection sequence. Reason: "+He.message),this.trigger(new g.PublisherEvent(g.PublisherEventTypes.CONNECT_FAILURE,this)),this._tearDownConnectCallback()}return this._connectFuture=Ce,Ce.promise}},{key:"unpublish",value:function(){var se=new R.DeferredPromise;try{V.default.getEmbedObject(this._elementId).unpublish(),se.resolve()}catch(Z){(0,H.error)(J,"Could not initiate publish sequence. Reason: "+Z.message),se.reject(Z.message)}return this._connectFuture=void 0,se.promise}},{key:"send",value:function(se,Z){this._sourceHandler.send(se,"string"==typeof Z?Z:(0,v.default)(Z))}},{key:"setMediaQuality",value:function(se){this._sourceHandler&&this._sourceHandler.setMediaQuality(se)}},{key:"overlayOptions",value:function(se){this._options=(0,y.default)(this._options,se)}},{key:"getConnection",value:function(){return this._sourceHandler}},{key:"getOptions",value:function(){return this._options}},{key:"getType",value:function(){return B.PublishTypes.RTMP.toUpperCase()}}]),ue}(I.default);s.default=ie},function(z,s,n){"use strict";function l(P){return P&&P.__esModule?P:{default:P}}Object.defineProperty(s,"__esModule",{value:!0}),s.Red5ProSharedObjectPeerConnection=s.Red5ProSharedObjectSocket=s.Red5ProSharedObject=void 0;var v=l(n(130)),y=l(n(90)),O=l(n(129));s.Red5ProSharedObject=v.default,s.Red5ProSharedObjectSocket=y.default,s.Red5ProSharedObjectPeerConnection=O.default},function(z,s,n){"use strict";function l(H){return H&&H.__esModule?H:{default:H}}Object.defineProperty(s,"__esModule",{value:!0});var v=l(n(3)),y=l(n(0)),O=l(n(1)),_=l(n(6)),r=l(n(31)),c=l(n(5)),M=function(H){if(H&&H.__esModule)return H;var J={};if(null!=H)for(var re in H)Object.prototype.hasOwnProperty.call(H,re)&&(J[re]=H[re]);return J.default=H,J}(n(29)),I=l(n(60)),V=l(n(7)),N=l(n(90)),L=n(25),E=n(13),g=n(8),R=n(2),B=/(.*) starting/i,X=function(H){function J(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;(0,y.default)(this,J);var ve="sharedobject-"+Math.floor(65536*Math.random()).toString(16),ue=(0,_.default)(this,(J.__proto__||(0,v.default)(J)).call(this,re,ve));return ue.id=ve,ue._options=void 0,ue._socket=void 0,ue._sharedObjectName=void 0,ue._connectionPromise=void 0,ue}return(0,c.default)(J,H),(0,O.default)(J,[{key:"_removeConnectionHandlers",value:function(re){re.onconnectionstatechange=void 0,re.oniceconnectionstatechange=void 0,re.onicecandidate=void 0,re.ontrack=void 0,re.ondatachannel=void 0}},{key:"_addConnectionHandlers",value:function(re,ie){var ve=this,ue=void 0;ie=ie||this._connectionPromise,re.onconnectionstatechange=function(){(0,R.debug)(ve._name,"[peer.onconnectionstatechange] - State: "+re.connectionState),"connected"===re.connectionState?((0,R.debug)(ve._name,"[peerconnection:open]"),ve.trigger(new E.MessageTransportStateEvent(E.MessageTransportStateEventTypes.OPEN,ve._name,{peerConnection:ve}))):"failed"!==re.connectionState&&"disconnected"!==re.connectionState||((0,R.warn)(ve._name,"[peerconnection:error]"),"failed"===re.connectionState&&ve.trigger(new E.MessageTransportStateEvent(E.MessageTransportStateEventTypes.ERROR,ve._name,{peerConnection:ve,error:"Connection Failed."})),ie&&ie.reject("Connection Failed."))},re.onicecandidate=function(se){(0,R.debug)(ve._name,"[peer.onicecandidate] - Peer Candidate: "+se.candidate),se.candidate?ve._socket.post({handleCandidate:ve._name,data:{candidate:se.candidate}}):null===se.candidate&&(0,R.debug)(ve._name,"[icecandidatetrickle:end]")},re.oniceconnectionstatechange=function(se){var Z=re.iceConnectionState;(0,R.debug)(ve._name,"[peer.oniceconnectionstatechange] - State: "+Z),"connected"===Z&&V.default.getIsEdge()?((0,R.debug)(ve._name,"[edge/ortc:notify complete]"),(0,R.debug)(ve._name,"[icecandidategathering:end]"),ve._socket.postEndOfCandidates(ve._name)):"failed"===Z?(ue&&clearTimeout(ue),ve.trigger(new E.MessageTransportStateEvent(E.MessageTransportStateEventTypes.ERROR,ve._name,{peerConnection:ve,error:"Connection Failed."})),ve.trigger(new E.MessageTransportStateEvent(E.MessageTransportStateEventTypes.CLOSE,ve._name,{peerConnection:ve,event:se})),ie&&ie.reject("Connection Failed.")):"disconnected"===Z?ue=setTimeout(function(){(0,R.debug)(ve._name,"[peer.oniceconnectionstatechange] - Reconnect timeout reached. Closing PeerConnection."),clearTimeout(ue),ve.trigger(new E.MessageTransportStateEvent(E.MessageTransportStateEventTypes.CLOSE,ve._name,{peerConnection:ve,event:se}))},5e3):ue&&((0,R.debug)(ve._name,"[peer.oniceconnectionstatechange] - Clearing timeout for reconnect."),clearTimeout(ue))},re.onicegatheringstatechange=function(){var se=re.iceGatheringState;(0,R.debug)(ve._name,"[peer.onicegatheringstatechange] - State: "+se),"complete"===se&&((0,R.debug)(ve._name,"[icecandidategathering:end]"),ve._socket.postEndOfCandidates(ve._name))}}},{key:"_createOffer",value:function(){var re=this,ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;(0,R.debug)(this._name,"[peer.createoffer]"),this._peerConnection.createOffer().then(function(ve){(0,R.debug)(re._name,"[peer:offer] "+ve.sdp),re._peerConnection.setLocalDescription(ve).then(function(){re._socket.post({handleOffer:re._name,transport:"udp",data:{sdp:ve}})}).catch(function(ue){ie&&ie.reject(ue)})})}},{key:"getRemoteSharedObject",value:function(re){(0,r.default)(J.prototype.__proto__||(0,v.default)(J.prototype),"getRemoteSharedObject",this).call(this,re),this._sharedObjectName=re}},{key:"init",value:function(re){var ie=this,ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,ue=new g.DeferredPromise;return this.id=ve||this.id,this._name=this.id,this._options=re,this._socket=new N.default(this),this._socket.on("MessageTransport.Open",function(se){(0,R.debug)(ie._name,"[socket:event] - "+se.type),ie._connectionPromise=ue,ie.setUpWithPeerConfiguration(re.rtcConfiguration,ie.getDataChannelConfiguration(re)).then(function(){ie._createOffer(ue)}).catch(function(Z){ie.trigger(new E.MessageTransportStateEvent(E.MessageTransportStateEventTypes.ERROR,ie._name,{peerConnection:ie,error:Z})),ue.reject(Z)})}),this._socket.init(re,this.id,4).catch(function(se){ie.trigger(new E.MessageTransportStateEvent(E.MessageTransportStateEventTypes.ERROR,ie._name,{peerConnection:ie,error:se})),ue.reject(se)}),ue.promise}},{key:"getMessageTransport",value:function(){return this._socket||this}},{key:"getDataChannelConfiguration",value:function(re){return re.dataChannelConfiguration||{name:"red5pro"}}},{key:"getDataChannelName",value:function(re){var ie=re.dataChannelConfiguration;return ie&&ie.name?ie.name:"red5pro"}},{key:"onIceTrickleComplete",value:function(){(0,R.debug)(this._name,"[peer:icetricklecomplete]"),this._socket.post({startChannel:this.getDataChannelName(this._options)})}},{key:"onAddIceCandidate",value:function(re){(0,R.debug)(this._name,"[peer:addicecandidate]"),(0,L.isObjectEmpty)(re.candidate)?(0,R.debug)(this._name,"[peer:onemptycandidate]"):this._peerConnection.addIceCandidate(re)}},{key:"onSDPAnswer",value:function(re){var ie=this;(0,R.debug)(this._name,"[peer:handleanswer]"),this._peerConnection.setRemoteDescription(new M.RTCSessionDescription(re)).then(function(){}).catch(function(ve){ie.trigger(new E.MessageTransportStateEvent(E.MessageTransportStateEventTypes.ERROR,ie._name,{peerConnection:ie,error:ve})),ie._connectionPromise.reject(ve)})}},{key:"onDataChannelAvailable",value:function(re){this._socket.sever({switchChannel:re||"red5pro"}),this._socket=void 0,this._connectionPromise.resolve(this)}},{key:"onSocketStatus",value:function(re){re.message&&(B.exec(re.message),(0,R.debug)(this._name,"[peer:status] "+re.message))}}]),J}(I.default);s.default=X},function(z,s,n){"use strict";function l(re){return re&&re.__esModule?re:{default:re}}Object.defineProperty(s,"__esModule",{value:!0});var v=l(n(10)),y=l(n(38)),O=l(n(3)),_=l(n(6)),r=l(n(5)),c=l(n(0)),M=l(n(1)),I=l(n(19)),V=l(n(7)),T=n(13),N=n(2),L="Red5ProSharedObject",E=function(re,ie){(0,N.debug)([L,re].join(":"),ie)},g=function(re,ie){(0,N.warn)([L,re].join(":"),ie)},B=function(re){return"string"==typeof re?JSON.parse(re):re},X=function(){function re(ie,ve){(0,c.default)(this,re),this.key=ie,this.value=ve}return(0,M.default)(re,[{key:"toObject",value:function(){var ie={};return ie[this.key]=this.value,ie}}]),re}(),H=function(){function re(ie,ve){(0,c.default)(this,re),this.methodName=ie;var ue=void 0;if("[object Array]"===Object.prototype.toString.call(ve)){var se=void 0,Z=void 0,Se=ve.length;for(ue=[],se=0;se<Se;se++)Z=B(ve[se]),"[object Array]"===Object.prototype.toString.call(ve)?ue=ue.concat(Z):ue.push(Z)}else ue=[B(ve)];this.message=1===ue.length?ue[0]:ue}return(0,M.default)(re,[{key:"toObject",value:function(){return{methodName:this.methodName,message:this.message}}}]),re}(),J=function(re){function ie(ve,ue){(0,c.default)(this,ie);var se=(0,_.default)(this,(ie.__proto__||(0,O.default)(ie)).call(this));return se._name=ve,se._transport=void 0,se._transportController=void 0,se._onclose=se.close.bind(se),se._handleTransportStateEvents=se._handleTransportStateEvents.bind(se),se._handleMessageTransportChange=se._handleMessageTransportChange.bind(se),se.setMessageTransportController(ue),se}return(0,r.default)(ie,re),(0,M.default)(ie,[{key:"_establishTransport",value:function(ve){ve.addSharedObjectResponseHandler(this);try{E(this._name,"[sharedobject:connect:attempt]"),ve.on("*",this._handleSocketStateEvents),ve.getRemoteSharedObject(this._name),V.default.addCloseHandler(this._onclose,0)}catch(ue){(function(re,ie){(0,N.error)([L,re].join(":"),ie)})(this._name,"[sharedobject:connect:error]: "+ue.message),this._transport=void 0,this._transportController=void 0}}},{key:"_handleMessageTransportChange",value:function(ve){var ue=this,se=ve.data.controller,Z=setTimeout(function(){clearTimeout(Z),ue.setMessageTransportController(se)},1e3)}},{key:"_handleTransportStateEvents",value:function(ve){E(this._name,ve.name+": "+ve.type),ve.type===T.MessageTransportStateEventTypes.CLOSE&&(this.trigger(new T.SharedObjectEvent(T.SharedObjectEventTypes.CONNECTION_CLOSED,this._name)),this.close())}},{key:"_getJsonFromSocketMessage",value:function(ve){try{return"string"==typeof ve.data?JSON.parse(ve.data):ve.data}catch(ue){g(this._name,"Could not parse message as JSON. Message= "+ve.data+". Error= "+ue.message)}return null}},{key:"_notifyOfPropertyValues",value:function(ve){if(0===(0,y.default)(ve).length)this.trigger(new T.SharedObjectEvent(T.SharedObjectEventTypes.PROPERTY_UPDATE,this._name,{}));else{var ue=void 0;for(ue in ve)this.trigger(new T.SharedObjectEvent(T.SharedObjectEventTypes.PROPERTY_UPDATE,this._name,new X(ue,ve[ue]).toObject()))}}},{key:"_notifyOfEvents",value:function(ve){var ue=void 0,se=void 0,Z=!1,Se=ve.length;for(ue=0;ue<Se;ue++)switch(se=ve[ue],se.subtype){case 9:this.trigger(new T.SharedObjectEvent(T.SharedObjectEventTypes.PROPERTY_REMOVE,this._name,{attribute:se.attribute})),Z=!0;break;case 4:se.attributes?this._notifyOfPropertyValues(se.attributes):this.trigger(new T.SharedObjectEvent(T.SharedObjectEventTypes.PROPERTY_UPDATE,this._name,new X(se.attribute,se.value).toObject())),Z=!0;break;case 6:this.trigger(new T.SharedObjectEvent(T.SharedObjectEventTypes.METHOD_UPDATE,this._name,new H(se.method,se.value).toObject())),Z=!0}return Z}},{key:"respond",value:function(ve){if(ve.data){var ue=this._getJsonFromSocketMessage(ve);if(null===ue)return g(this._name,"Determined message response not in correct format. Aborting message handle."),!0;if(void 0!==ue.data)if(ue.data.name===this._name){if(E(this._name,"[sharedobject-response]: "+(0,v.default)(ue,null,2)),"SharedObject.Status.GetRemote"===ue.data.status&&"Success"===ue.data.message)return this._transport.connectToSharedObject(this._name),!0;if("SharedObject.Status.GetRemote"===ue.data.status&&"Fail"===ue.data.message)return this.trigger(new T.SharedObjectEvent(T.SharedObjectEventTypes.CONNECT_FAILURE,this._name)),!0;if("SharedObject.Status.Connect"===ue.data.status&&"Success"===ue.data.message)return this.trigger(new T.SharedObjectEvent(T.SharedObjectEventTypes.CONNECT_SUCCESS,this._name)),!0;if("SharedObject.Status.Connect"===ue.data.status&&"Fail"===ue.data.message)return this.trigger(new T.SharedObjectEvent(T.SharedObjectEventTypes.CONNECT_FAILURE,this._name)),!0;if("SharedObject.Status.Disconnect"===ue.data.status)return this.trigger(new T.SharedObjectEvent(T.SharedObjectEventTypes.CONNECTION_CLOSED,this._name)),!0;if("sharedobject"===ue.data.type){if(ue.data.hasOwnProperty("events"))return this._notifyOfEvents(ue.data.events);if(ue.data.hasOwnProperty("value"))return this._notifyOfPropertyValues(ue.data.value)}}else E(this._name,"Unhandled Message exchange: "+(0,v.default)(ue,null,2))}return!1}},{key:"send",value:function(ve,ue){var se=this._transport;se?se.sendToSharedObject(this._name,ve,ue):g(this._name,"No WebSocket connection available!")}},{key:"setProperty",value:function(ve,ue){this._transport.sendPropertyToSharedObject(this._name,ve,ue)}},{key:"close",value:function(){var ve=this._transport;if(ve){try{ve.closeSharedObject(this._name)}catch{}ve.removeSharedObjectResponseHandler(this),ve.off("*",this._handleTransportStateEvents)}this._transport=void 0,this._transportController=void 0,V.default.removeCloseHandler(this._onclose)}},{key:"getMessageTransportController",value:function(){return this._transportController}},{key:"setMessageTransportController",value:function(ve){this._transport&&(this._transport.removeSharedObjectResponseHandler(this),this._transport.off("*",this._handleTransportStateEvents),V.default.removeCloseHandler(this._onclose),this._transport=void 0,this._transportController=void 0),this._transportController=ve,this._transport=this._transportController.getMessageTransport(),this._transportController&&this._transport&&(this._transportController.on(T.MessageTransportStateEventTypes.CHANGE,this._handleMessageTransportChange),this._establishTransport(this._transport))}},{key:"getName",value:function(){return this._name}}]),ie}(I.default);s.default=J},function(z,s,n){"use strict";function l(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(s,"__esModule",{value:!0});var v=l(n(3)),y=l(n(0)),O=l(n(1)),_=l(n(6)),r=l(n(5)),c=l(n(19)),M=l(n(7)),D=n(91),I=n(2),U="ControlSlider",V=function(T){function N(L){(0,y.default)(this,N);var E=(0,_.default)(this,(N.__proto__||(0,v.default)(N)).call(this));return E.name=[U,L].join("::"),(0,I.debug)(E.name,"[init]"),E._container=M.default.createElement("div"),E._button=E.createButton(),E._track=E.createTrack(),E._progressBar=E.createProgressBar(),E._container.appendChild(E._track),E._container.appendChild(E._progressBar),E._container.appendChild(E._button),E._value=0,E._disabled=!1,E._eventStartPosition=0,E._layout(),E._mouseupHandler=E._mouseup.bind(E),E._mousedownHandler=E._mousedown.bind(E),E._mousemoveHandler=E._mousemove.bind(E),E._touchupHandler=E._touchproxy.bind(E),E._touchdownHandler=E._touchproxy.bind(E),E._touchmoveHandler=E._touchproxy.bind(E),E._updateHandlers(E._disabled),E}return(0,r.default)(N,T),(0,O.default)(N,[{key:"_touchproxy",value:function(L){if(L.preventDefault(),!(L.touches.length>1||"touchend"==L.type&&L.touches.length>0)){var E=M.default.createEvent("MouseEvent"),g=void 0,R=void 0,B=L.originalTarget||L.target;switch(L.type){case"touchstart":g="mousedown",R=L.changedTouches[0];break;case"touchmove":g="mousemove",R=L.changedTouches[0];break;case"touchend":g="mouseup",R=L.changedTouches[0]}E.initMouseEvent(g,!0,!0,B.ownerDocument.defaultView,0,R.screenX,R.screenY,R.clientX,R.clientY,L.ctrlKey,L.altKey,L.shiftKey,L.metaKey,0,null),B.dispatchEvent(E)}}},{key:"_mouseup",value:function(){this._eventStartPosition=0,document.removeEventListener("mousemove",this._mousemoveHandler),document.removeEventListener("mouseup",this._mouseupHandler),document.removeEventListener("touchmove",this._touchmoveHandler),document.removeEventListener("touchup",this._touchupHandler),this.trigger(new D.SliderEvent(D.SliderEventTypes.CHANGE_COMPLETE,this))}},{key:"_mousemove",value:function(L){var E=M.default.getMouseXFromEvent(L)-this._eventStartPosition,g=this._button.parentNode.getBoundingClientRect(),R=this._eventStartPosition+E-g.left;R=Math.max(0,R),R=Math.min(R,g.width),this.trigger(new D.SliderEvent(D.SliderEventTypes.CHANGE,this,R/g.width))}},{key:"_mousedown",value:function(L){this._eventStartPosition=M.default.getMouseXFromEvent(L),this.trigger(new D.SliderEvent(D.SliderEventTypes.CHANGE_START,this)),document.addEventListener("mousemove",this._mousemoveHandler),document.addEventListener("mouseup",this._mouseupHandler),document.addEventListener("touchmove",this._touchmoveHandler),document.addEventListener("touchup",this._touchupHandler)}},{key:"_updateHandlers",value:function(L){this._eventStartPosition=0,L?(this._track.removeEventListener("click",this._mousemoveHandler),this._progressBar.removeEventListener("click",this._mousemoveHandler),this._button.removeEventListener("mousedown",this._mousedownHandler),document.removeEventListener("mousemove",this._mousemoveHandler),document.removeEventListener("mouseup",this._mouseupHandler),document.removeEventListener("touchmove",this._touchmoveHandler),document.removeEventListener("touchup",this._touchupHandler),this._track.classList.add("red5pro-media-slider-disabled"),this._progressBar.classList.add("red5pro-media-slider-disabled"),this._button.classList.add("red5pro-media-slider-disabled")):(this._track.addEventListener("click",this._mousemoveHandler),this._progressBar.addEventListener("click",this._mousemoveHandler),this._button.addEventListener("mousedown",this._mousedownHandler),this._button.addEventListener("touchstart",this._touchdownHandler),this._track.classList.remove("red5pro-media-slider-disabled"),this._progressBar.classList.remove("red5pro-media-slider-disabled"),this._button.classList.remove("red5pro-media-slider-disabled"))}},{key:"_layout",value:function(){var L=this._progressBar.parentNode.clientWidth*this._value;this._progressBar.style.width=L+"px",this._button.style.left=L-.5*this._button.clientWidth+"px"}},{key:"createButton",value:function(){var L=M.default.createElement("span");return L.classList.add("red5pro-media-slider-button"),L}},{key:"createProgressBar",value:function(){var L=M.default.createElement("span");return L.classList.add("red5pro-media-slider-progress"),L}},{key:"createTrack",value:function(){var L=M.default.createElement("span");return L.classList.add("red5pro-media-slider-track"),L}},{key:"value",get:function(){return this._value},set:function(L){this._value=L,this._layout()}},{key:"disabled",get:function(){return this._disabled},set:function(L){this._disabled=L,this._updateHandlers(L)}},{key:"view",get:function(){return this._container}}]),N}(c.default);s.default=V},function(z,s,n){"use strict";function l(Z){return Z&&Z.__esModule?Z:{default:Z}}Object.defineProperty(s,"__esModule",{value:!0}),s.RTMPSubscriber=s.HLSSubscriber=s.RTCSubscriber=s.Red5ProSubscriber=void 0;var Z,v=l(n(97)),y=l(n(99)),O=l(n(3)),_=l(n(0)),r=l(n(1)),c=l(n(6)),M=l(n(5)),I=l(n(94)),V=l(n(92)),N=l(n(19)),E=l(n(134)),R=l(n(135)),X=l(n(133)),H=n(8),J=n(36),re=n(2),ie="Red5ProSubscriber",ve=new V.default,ue=((Z=new I.default).set(J.PlaybackTypes.RTC,E.default),Z.set(J.PlaybackTypes.RTMP,R.default),Z.set(J.PlaybackTypes.HLS,X.default),Z),se=function(Z){function Se(){(0,_.default)(this,Se);var Ce=(0,c.default)(this,(Se.__proto__||(0,O.default)(Se)).call(this));return Ce._options=void 0,Ce._order=[J.PlaybackTypes.RTC,J.PlaybackTypes.RTMP,J.PlaybackTypes.HLS],Ce}return(0,M.default)(Se,Z),(0,r.default)(Se,[{key:"_getPlaybackFromOrder",value:function(Ce,Be){return ve.create(Ce,ue,Be,"init")}},{key:"getPlaybackOrder",value:function(){return this._order}},{key:"setPlaybackOrder",value:function(Ce){var Be=(Ce="string"==typeof Ce?[Ce]:Ce).filter(function(Xe){var He=void 0;for(He in J.PlaybackTypes)if(J.PlaybackTypes[He].toLowerCase()===Xe.toLowerCase())return!0;return!1}).map(function(Xe){return Xe.toLowerCase()});return this._order=[].concat((0,y.default)(new v.default(Be))),(0,re.debug)(ie,"[orderupdate]: "+this._order),this}},{key:"init",value:function(Ce){this._options=Ce;var Be=new H.DeferredPromise;return(0,re.debug)(ie,"[init]"),this._getPlaybackFromOrder(this._order,this._options).then(function(Xe){(0,re.debug)(ie,"[init:success]: subscriber found "+Xe.getType()),Be.resolve(Xe)}).catch(function(Xe){(0,re.warn)(ie,"[playerror]: Could not implement a subscriber: "+Xe),Be.reject(Xe)}),Be.promise}},{key:"playbackTypes",get:function(){return J.PlaybackTypes}}]),Se}(N.default);s.Red5ProSubscriber=se,s.RTCSubscriber=E.default,s.HLSSubscriber=X.default,s.RTMPSubscriber=R.default},function(z,s,n){"use strict";function l(Z){return Z&&Z.__esModule?Z:{default:Z}}Object.defineProperty(s,"__esModule",{value:!0});var v=l(n(30)),y=l(n(3)),O=l(n(0)),_=l(n(1)),r=l(n(6)),c=l(n(5)),M=l(n(7)),I=function(Z){if(Z&&Z.__esModule)return Z;var Se={};if(null!=Z)for(var Ce in Z)Object.prototype.hasOwnProperty.call(Z,Ce)&&(Se[Ce]=Z[Ce]);return Se.default=Z,Se}(n(44)),V=l(n(45)),N=l(n(136)),E=l(n(47)),g=n(24),R=n(13),B=n(36),X=n(8),H=n(2),J=n(46),re="HLSSubscriber",ie={protocol:"https",port:443,app:"live",mimeType:"application/x-mpegURL",mediaElementId:"red5pro-subscriber",autoLayoutOrientation:!0,muteOnAutoplayRestriction:!0,subscriptionId:"subscriber-"+Math.floor(65536*Math.random()).toString(16)},ve=/^http(|s).*\.m3u8/g,ue=function(Z){var Se=Z.hlsprotocol?Z.hlsprotocol:Z.protocol,Ce=Z.hlsport?Z.hlsport:Z.port,Be=Z.context?[Z.app,Z.context].join("/"):Z.app;return Se+"://"+Z.host+":"+Ce+"/"+Be+"/"+Z.streamName+".m3u8"},se=function(Z){function Se(){(0,O.default)(this,Se);var Ce=(0,r.default)(this,(Se.__proto__||(0,y.default)(Se)).call(this));return Ce._options=void 0,Ce._view=void 0,Ce._sourceHandler=void 0,Ce._socketHelper=void 0,Ce._viewResolver=new X.DeferredPromise,Ce._subscriptionResolver=new X.DeferredPromise,Ce._boundBubbleSubscriberEvents=Ce.bubbleSubscriberEvents.bind(Ce),Ce}return(0,c.default)(Se,Z),(0,_.default)(Se,[{key:"_getViewResolverPromise",value:function(){return this._viewResolver.promise}},{key:"_getSubscriptionResolverPromise",value:function(){return this._subscriptionResolver.promise}},{key:"bubbleSubscriberEvents",value:function(Ce){Ce.type===R.SubscriberEventTypes.SUBSCRIBE_START&&this._subscriptionResolver.resolve(this),this.trigger(new R.SubscriberEvent(Ce.type,this,Ce.data))}},{key:"_glomSourceHandlerAPI",value:function(Ce){var Be=this;this.play=Ce.play.bind(Ce),this.pause=Ce.pause.bind(Ce),this.resume=Ce.resume.bind(Ce),this.stop=Ce.stop.bind(Ce),this.mute=Ce.mute.bind(Ce),this.unmute=Ce.unmute.bind(Ce),this.setVolume=Ce.setVolume.bind(Ce),this.seekTo=Ce.seekTo.bind(Ce),this.toggleFullScreen=Ce.toggleFullScreen.bind(Ce),Ce.on("*",function(Xe){Be.trigger(new R.SubscriberEvent(Xe.type,Be,Xe.data))})}},{key:"_setViewIfNotExist",value:function(Ce){var Be=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;void 0===Ce&&void 0!==Be&&new E.default(Be).attachSubscriber(this)}},{key:"_initHandler",value:function(Ce){var Be=this,Xe=this._options,He=Xe.streamName,Me=Xe.mimeType,Q=He.match(ve)?He:ue(this._options);this._sourceHandler.on("*",this._boundBubbleSubscriberEvents),this._sourceHandler.addSource(Q,Me,Ce).then(function(){Be.trigger(new R.SubscriberEvent(R.SubscriberEventTypes.CONNECT_SUCCESS)),Be._trackStreamingModeState(Be._sourceHandler)}).catch(function(A){(0,H.error)(re,"Could not establish an HLS Subscriber: "+A),Be.trigger(new R.SubscriberEvent(R.SubscriberEventTypes.CONNECT_FAILURE))})}},{key:"_trackStreamingModeState",value:function(Ce){var Be=this;Ce.on(R.SubscriberEventTypes.STREAMING_MODE_CHANGE,function(Xe){var He=Xe.data;if("Empty"!==He.streamingMode&&"Empty"===He.previousStreamingMode){Be._sourceHandler.disconnect();var A=Be._options,me=A.streamName,ne=A.mimeType,G=me.match(ve)?me:ue(Be._options);Be._sourceHandler.addSource(G,ne,Be._options).then(function(){return Be.subscribe()}).catch(function(W){return W(re,W)})}})}},{key:"init",value:function(Ce){var Be=this,Xe=new X.DeferredPromise;if(M.default.supportsHLS())if(Ce.connectionParams&&!I.isSupported())(0,H.warn)(re,"Could not resolve HLSSubscriber instance with connection params. WebSocket support is required."),Xe.reject(re,"Could not resolve HLSSubscriber instance with connection params. WebSocket support is required.");else{this._options=(0,v.default)({},ie,Ce);var He=new X.DeferredPromise;if(this._options.connectionParams)try{this._socketHelper=new V.default(this,"HLSSubscriptionSocket");var Me=(0,J.hlsSocketEndpointFromOptions)(this._options,{id:this._options.subscriptionId});this._socketHelper.setUp(Me,He)}catch(Q){(0,H.error)(re,Q.message),Xe.reject(re,"Could not set up WebSocket for authentication with connectionParams: "+Q.message)}else He.resolve();He.promise.then(function(){Be._socketHelper&&(Be._socketHelper.tearDown(),Be._socketHelper=void 0),Be._setViewIfNotExist(Be._view,Be._options.mediaElementId),Be._getViewResolverPromise().then(function(Q){Be._sourceHandler=new N.default(Q.view,Be.getType()),Be._glomSourceHandlerAPI(Be._sourceHandler),Be._options&&Be._initHandler(Be._options)}),Xe.resolve(Be)}).catch(function(Q){Xe.reject(Q),Be.trigger(new R.SubscriberEvent(R.SubscriberEventTypes.CONNECT_FAILURE,Be,Q))})}else(0,H.warn)(re,"Could not resolve HLSSubscriber instance."),Xe.reject("Could not resolve HLSSubscriber instance.");return Xe.promise}},{key:"setView",value:function(Ce){return this._view=Ce,this._viewResolver.resolve(Ce),this}},{key:"subscribe",value:function(){return this._getSubscriptionResolverPromise()}},{key:"unsubscribe",value:function(){(0,H.debug)(re,"[unscubscribe]");var Ce=new X.DeferredPromise;this._socketHelper&&this._socketHelper.tearDown();try{this._sourceHandler.stop(),this._sourceHandler.disconnect(),Ce.resolve()}catch(Be){Ce.reject(Be.message)}return Ce.promise}},{key:"getConnection",value:function(){return this._sourceHandler}},{key:"getControls",value:function(){return this._sourceHandler?this._sourceHandler.getControls():void 0}},{key:"getOptions",value:function(){return this._options}},{key:"getPlayer",value:function(){return this._view.view}},{key:"getType",value:function(){return B.PlaybackTypes.HLS.toUpperCase()}}]),Se}(g.PlaybackController);s.default=se},function(z,s,n){"use strict";function l(W){if(W&&W.__esModule)return W;var $={};if(null!=W)for(var le in W)Object.prototype.hasOwnProperty.call(W,le)&&($[le]=W[le]);return $.default=W,$}function d(W){return W&&W.__esModule?W:{default:W}}Object.defineProperty(s,"__esModule",{value:!0});var S=d(n(38)),f=d(n(10)),P=d(n(30)),i=d(n(3)),a=d(n(0)),m=d(n(1)),D=d(n(6)),U=d(n(5)),T=d(n(7)),N=n(82),E=l(n(29)),R=l(n(44)),X=d(n(137)),J=d(n(120)),ie=d(n(122)),ue=d(n(47)),se=n(24),Z=n(25),Se=n(46),Ce=n(13),Be=n(36),Xe=n(59),He=n(8),Me=n(2),Q=/(.*) starting/i,A="RTCSubscriber",ne={protocol:"wss",port:443,app:"live",autoLayoutOrientation:!0,mediaElementId:"red5pro-subscriber",rtcConfiguration:{iceServers:[{urls:"stun:stun2.l.google.com:19302"}],iceCandidatePoolSize:2,bundlePolicy:"max-bundle"},iceServers:void 0,iceTransport:Xe.IceTransportTypes.UDP,muteOnAutoplayRestriction:!0,maintainConnectionOnSubscribeErrors:!1,signalingSocketOnly:!0,dataChannelConfiguration:void 0,socketSwitchDelay:1e3},G=function(W){function $(){(0,a.default)(this,$);var le=(0,D.default)(this,($.__proto__||(0,i.default)($)).call(this));return le._view=void 0,le._options=void 0,le._peerHelper=void 0,le._socketHelper=void 0,le._messageTransport=void 0,le._connectionClosed=!0,le._sourceHandler=void 0,le._mediaStream=void 0,le._viewResolver=new He.DeferredPromise,le._availabilityResolver=new He.DeferredPromise,le._subscriptionResolver=new He.DeferredPromise,le._orientation=0,le._streamingMode="Video/Audio",le._switchChannelRequest=void 0,le}return(0,U.default)($,W),(0,m.default)($,[{key:"_getViewResolverPromise",value:function(){return this._viewResolver.promise}},{key:"_getAvailabilityResolverPromise",value:function(){return this._availabilityResolver.promise}},{key:"_getSubscriptionResolverPromise",value:function(){return this._subscriptionResolver.promise}},{key:"_glomSourceHandlerAPI",value:function(le){var Pe=this;this.play=le.play.bind(le),this.pause=le.pause.bind(le),this.resume=le.resume.bind(le),this.stop=le.stop.bind(le),this.mute=le.mute.bind(le),this.unmute=le.unmute.bind(le),this.setVolume=le.setVolume.bind(le),this.seekTo=le.seekTo.bind(le),this.toggleFullScreen=le.toggleFullScreen.bind(le),le.on("*",function(Fe){Pe.trigger(new Ce.SubscriberEvent(Fe.type,Pe,Fe.data))})}},{key:"_setViewIfNotExist",value:function(le){var Pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;void 0===le&&void 0!==Pe&&new ue.default(Pe).attachSubscriber(this)}},{key:"_initHandler",value:function(le,Pe){le&&Pe&&(Pe.on("*",this._boundBubbleSubscriberEvents),Pe.addSource(le))}},{key:"_requestAvailability",value:function(le){(0,Me.debug)(A,"[requestavailability]"),this._socketHelper.post({isAvailable:le})}},{key:"_requestOffer",value:function(le,Pe,Fe,At){var Le=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,Et=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;(0,Me.debug)(A,"[requestoffer]");var $e={requestOffer:le,requestId:Pe,transport:Fe,datachannel:At};void 0!==Le&&Le!==Be.PlaybackVideoEncoder.NONE?$e.videoEncoding=Le:T.default.getIsEdge(),void 0!==Et&&Et!==Be.PlaybackAudioEncoder.NONE&&($e.audioEncoding=Et),this.trigger(new Ce.SubscriberEvent(Ce.RTCSubscriberEventTypes.OFFER_START,this)),this._socketHelper.post($e)}},{key:"_requestAnswer",value:function(le){var Pe=this;(0,Me.debug)(A,"[requestanswer]"),this._peerHelper.createAnswer(le).then(function(Fe){(0,Me.debug)(A,"[onanswercreated]"),(0,Me.debug)(A,"[> sendanswer]"),Pe._sendAnswer(Pe._options.streamName,Pe._options.subscriptionId,Fe)}).catch(function(Fe){Pe.onSDPError(Fe)})}},{key:"_sendAnswer",value:function(le,Pe,Fe){(0,Me.debug)(A,"[sendanswer]: streamname("+le+"), subscriptionid("+Pe+")"),this.trigger(new Ce.SubscriberEvent(Ce.RTCSubscriberEventTypes.ANSWER_START,this,Fe)),this._socketHelper.post({handleAnswer:le,requestId:Pe,data:{sdp:Fe}})}},{key:"_sendCandidate",value:function(le){(0,Me.debug)(A,"[sendcandidate]"),this.trigger(new Ce.SubscriberEvent(Ce.RTCSubscriberEventTypes.CANDIDATE_START,this,le)),this._socketHelper.post({handleCandidate:this._options.streamName,requestId:this._options.subscriptionId,data:{candidate:le}})}},{key:"_connect",value:function(le){var Pe=this,Fe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,At=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return(0,Me.debug)(A,"[connect]"),At&&le&&((0,Me.warn)("The iceServers configuration property is considered deprecated. Please use the rtcConfiguration configuration property upon which you can assign iceServers. Reference: https://www.red5pro.com/docs/streaming/migrationguide.html"),le.iceServers=At),this._options.iceServers=le?le.iceServers:At,(void 0!==le?this._peerHelper.setUpWithPeerConfiguration(le,Fe,void 0):this._peerHelper.setUp(this._options.iceServers,void 0,this._options.rtcpMuxPolicy)).then(function(Et){Pe.trigger(new Ce.SubscriberEvent(Ce.RTCSubscriberEventTypes.PEER_CONNECTION_AVAILABLE,Pe,Et)),Pe._requestOffer(Pe._options.streamName,Pe._options.subscriptionId,Pe._options.iceTransport,Pe._options.signalingSocketOnly,Pe._options.videoEncoding,Pe._options.audioEncoding)}).catch(function(){(0,Me.warn)(A,"Could not establish RTCPeerConnection."),Pe.trigger(new Ce.SubscriberEvent(Ce.SubscriberEventTypes.CONNECT_FAILURE,Pe))}),this}},{key:"_disconnect",value:function(){this._socketHelper&&((0,Me.debug)(A,"[disconnect:socket]"),this._socketHelper.tearDown()),this._peerHelper&&((0,Me.debug)(A,"[disconnect:peer]"),this._peerHelper.tearDown()),this._view&&this._view.detachStream(),this._socketHelper=void 0,this._peerHelper=void 0,this._messageTransport=void 0,this._sourceHandler&&((0,Me.debug)(A,"[disconnect:source]"),this._sourceHandler.disconnect(),this._sourceHandler=void 0),this._connectionClosed=!0}},{key:"_playIfAutoplaySet",value:function(le,Pe){le&&Pe&&(le.autoplay=T.default.hasAttributeDefined(Pe.view,"autoplay"),le.autoplay&&this._sourceHandler.attemptAutoplay(le.muteOnAutoplayRestriction))}},{key:"_sendSubscribe",value:function(){(0,Me.debug)(A,"[sendsubscribe]"),this._socketHelper.post({subscribe:this._options.streamName,requestId:this._options.subscriptionId})}},{key:"init",value:function(le){var Pe=this,Fe=new He.DeferredPromise;if(E.isSupported()&&R.isSupported()){this._disconnect(),this._options=(0,P.default)({},ne,le),this._options.subscriptionId=this._options.subscriptionId||"subscriber-"+Math.floor(65536*Math.random()).toString(16),this._peerHelper=new ie.default(this),this._socketHelper=new J.default(this),this._messageTransport=this._socketHelper;var At=new He.DeferredPromise,Le=(0,Se.rtcSocketEndpointFromOptions)(this._options,{id:this._options.subscriptionId});At.promise.then(function(){Fe.resolve(Pe),Pe._connectionClosed=!1,Pe.trigger(new Ce.SubscriberEvent(Ce.SubscriberEventTypes.CONNECT_SUCCESS,Pe))}).catch(function(Et){Fe.reject(Et),Pe.trigger(new Ce.SubscriberEvent(Ce.SubscriberEventTypes.CONNECT_FAILURE,Pe,Et))}),this._socketHelper.setUp(Le,At)}else Fe.reject("Cannot create WebRTC playback instance. Your environment does not support WebRTC and/or WebSockets.");return Fe.promise}},{key:"setView",value:function(le){return this._view=le,this._viewResolver.resolve(this._view),this}},{key:"subscribe",value:function(){var le=this,Pe=this._options,Fe=Pe.streamName,At=Pe.mediaElementId,Le=Pe.rtcConfiguration,Et=this._options,Ze=Et.dataChannelConfiguration,Qe=Et.signalingSocketOnly&&E.supportsDataChannel();return Qe&&!Ze&&(Ze={name:"red5pro"}),this._options.signalingSocketOnly=Qe,this._getViewResolverPromise().then(function(Ve){le._sourceHandler=new X.default(Ve.view,le.getType()),le._glomSourceHandlerAPI(le._sourceHandler),le._initHandler(le._options,le._sourceHandler)}).catch(function(){}),this._getAvailabilityResolverPromise().then(function(){le._connect(Le,Ze,le._options.iceServers)}).catch(function(){}),this._setViewIfNotExist(this._view,At),this._requestAvailability(Fe),this._getSubscriptionResolverPromise()}},{key:"unsubscribe",value:function(){(0,Me.debug)(A,"[unsubscribe]");var le=new He.DeferredPromise;return this.stop(),this._disconnect(),this._mediaStream=void 0,le.resolve(this),this.trigger(new Ce.SubscriberEvent(Ce.SubscriberEventTypes.SUBSCRIBE_STOP,this)),le.promise}},{key:"onStreamAvailable",value:function(le){(0,Me.debug)(A,"[onstreamavailable]: "+(0,f.default)(le,null,2)),this._availabilityResolver.resolve(this)}},{key:"onStreamUnavailable",value:function(le){(0,Me.debug)(A,"Stream "+this._options.streamName+" does not exist."),(0,Me.debug)(A,"[onstreamunavailable]: "+(0,f.default)(le,null,2)),this.trigger(new Ce.SubscriberEvent(Ce.SubscriberEventTypes.SUBSCRIBE_INVALID_NAME,this)),this._availabilityResolver.reject("Stream "+this._options.streamName+" does not exist."),this._subscriptionResolver.reject("Stream "+this._options.streamName+" does not exist."),this._options.maintainConnectionOnSubscribeErrors?(this._availabilityResolver=new He.DeferredPromise,this._subscriptionResolver=new He.DeferredPromise):this._disconnect()}},{key:"onSDPSuccess",value:function(le){(0,Me.debug)(A,"[onsdpsuccess]: "+(0,f.default)(le,null,2))}},{key:"onSDPOffer",value:function(le){(0,Me.debug)(A,"[onsdpoffer]: "+(0,f.default)(le,null,2));var Pe=new E.RTCSessionDescription(le.sdp);this.trigger(new Ce.SubscriberEvent(Ce.RTCSubscriberEventTypes.OFFER_END,this)),this._requestAnswer(Pe)}},{key:"onSDPError",value:function(le){this.trigger(new Ce.SubscriberEvent(Ce.SubscriberEventTypes.SUBSCRIBE_FAIL,this,le)),this._subscriptionResolver.reject("Invalid SDP."),(0,Me.error)(A,"[onsdperror]"),(0,Me.error)(A,le)}},{key:"onAnswerMediaStream",value:function(){this.trigger(new Ce.SubscriberEvent(Ce.RTCSubscriberEventTypes.ANSWER_END,this))}},{key:"onIceCandidate",value:function(le){(0,Me.debug)(A,"[onicecandidate]"),this.trigger(new Ce.SubscriberEvent(Ce.RTCSubscriberEventTypes.CANDIDATE_END,this)),this._sendCandidate(le)}},{key:"onIceCandidateTrickleEnd",value:function(le){var Pe=this;(0,Me.debug)(A,"[onicetrickleend]"),this._getViewResolverPromise().then(function(Fe){Fe.attachStream(le),Pe._mediaStream=le,Pe.trigger(new Ce.SubscriberEvent(Ce.RTCSubscriberEventTypes.ON_ADD_STREAM,Pe,Pe._mediaStream))})}},{key:"onAddIceCandidate",value:function(le){(0,Me.debug)(A,"[onaddicecandidate]"),this._peerHelper.addIceCandidate(le)}},{key:"onEmptyCandidate",value:function(){(0,Me.debug)(A,"[icecandidatetrickle:empty]"),this.trigger(new Ce.SubscriberEvent(Ce.RTCSubscriberEventTypes.PEER_CANDIDATE_END))}},{key:"onPeerGatheringComplete",value:function(){(0,Me.debug)(A,"[icecandidategathering:end]"),this._socketHelper&&this._socketHelper.postEndOfCandidates(this._options.streamName)}},{key:"onSocketIceCandidateEnd",value:function(){(0,Me.debug)(A,"[onsocketicecandidateend]"),this.trigger(new Ce.SubscriberEvent(Ce.RTCSubscriberEventTypes.ICE_TRICKLE_COMPLETE,this)),this._sendSubscribe()}},{key:"onSocketMessageError",value:function(le){(0,Me.error)(A,"Error in stream subscription: "+le+".\n[Optional detail]: "+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0)),this._subscriptionResolver.reject("Error in stream subscription: "+le+"."),this.trigger(new Ce.SubscriberEvent(Ce.SubscriberEventTypes.SUBSCRIBE_FAIL,this,le))}},{key:"onSocketClose",value:function(le){(0,Me.debug)(A,"[onsocketclose]"),this._peerHelper&&this._peerHelper.tearDown(),this.onConnectionClosed(le)}},{key:"onPeerConnectionFail",value:function(){(0,Me.debug)(A,"[onpeerconnectionfail]"),this.trigger(new Ce.SubscriberEvent(Ce.SubscriberEventTypes.SUBSCRIBE_FAIL,this,"fail")),this._subscriptionResolver.reject("Peer Connection Failed.")}},{key:"onPeerConnectionClose",value:function(le){(0,Me.debug)(A,"[onpeerconnectionclose]"),this._socketHelper&&this._socketHelper.tearDown(),this.onSocketClose(le)}},{key:"onPeerConnectionOpen",value:function(){(0,Me.debug)(A,"[onpeerconnectionopen]"),this.trigger(new Ce.SubscriberEvent(Ce.RTCSubscriberEventTypes.PEER_CONNECTION_OPEN))}},{key:"onUnpublish",value:function(){(0,Me.debug)(A,"[onunpublish]"),this._sourceHandler&&this._sourceHandler.unpublish(),this.trigger(new Ce.SubscriberEvent(Ce.SubscriberEventTypes.PLAY_UNPUBLISH,this)),this.unsubscribe()}},{key:"onConnectionClosed",value:function(){var le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this._connectionClosed||((0,Me.debug)(A,"[onconnectionclosed]"),this._disconnect(),this.trigger(new Ce.SubscriberEvent(Ce.SubscriberEventTypes.CONNECTION_CLOSED,this,le)))}},{key:"onSendReceived",value:function(le,Pe){"onMetaData"===le?this.onMetaData(Pe):"onPublisherNetworkCongestion"===le?this.onPublisherNetworkCongestion(Pe):"onPublisherNetworkRecovery"===le?this.onPublisherNetworkRecovery(Pe):this.trigger(new Ce.SubscriberEvent(Ce.SubscriberEventTypes.SUBSCRIBE_SEND_INVOKE,this,{methodName:le,data:Pe}))}},{key:"onSubscriberStatus",value:function(le){(0,Me.debug)(A,"[subscriberstatus] - "+(0,f.default)(le,null,2));var Pe=Q.exec(le.message);Pe&&Pe[1]===this._options.streamName?(this._subscriptionResolver.resolve(this),this.trigger(new Ce.SubscriberEvent(Ce.SubscriberEventTypes.SUBSCRIBE_START,this)),this._playIfAutoplaySet(this._options,this._view)):this.trigger(new Ce.SubscriberEvent(Ce.SubscriberEventTypes.SUBSCRIBE_STATUS,this,le))}},{key:"onDataChannelAvailable",value:function(le){var Pe=this;if((0,Me.debug)("[ondatachannel::available]"),this._switchChannelRequest={switchChannel:le||"red5pro"},this._options.signalingSocketOnly)var Fe=setTimeout(function(){clearTimeout(Fe),Pe._socketHelper.sever(Pe._switchChannelRequest),Pe._messageTransport=Pe._peerHelper,Pe.trigger(new Ce.MessageTransportStateEvent(Ce.MessageTransportStateEventTypes.CHANGE,Pe,{controller:Pe,transport:Pe._messageTransport}))},this._options.socketSwitchDelay);this.trigger(new Ce.SubscriberEvent(Ce.RTCSubscriberEventTypes.DATA_CHANNEL_AVAILABLE,this,{name:le,dataChannel:this.getDataChannel()}))}},{key:"onDataChannelError",value:function(le,Pe){this.trigger(new Ce.SubscriberEvent(Ce.RTCSubscriberEventTypes.DATA_CHANNEL_ERROR,this,{dataChannel:le,error:Pe}))}},{key:"onDataChannelMessage",value:function(le,Pe){this.trigger(new Ce.SubscriberEvent(Ce.RTCSubscriberEventTypes.DATA_CHANNEL_MESSAGE,this,{dataChannel:le,message:Pe}))}},{key:"onDataChannelOpen",value:function(le){this.trigger(new Ce.SubscriberEvent(Ce.RTCSubscriberEventTypes.DATA_CHANNEL_OPEN,this,{dataChannel:le}))}},{key:"onDataChannelClose",value:function(le){this.trigger(new Ce.SubscriberEvent(Ce.RTCSubscriberEventTypes.DATA_CHANNEL_CLOSE,this,{dataChannel:le}))}},{key:"onMetaData",value:function(le){var Pe=le.orientation,Fe=le.streamingMode,At=this._streamingMode;void 0!==Pe&&Pe!==this._orientation&&(this._orientation=Pe,this._options.autoLayoutOrientation&&((0,N.applyOrientation)(this._view.view,parseInt(Pe,10),(0,Z.metadataResolutionToObject)(le.resolution)),this._sourceHandler&&this._sourceHandler.handleOrientationChange(parseInt(Pe,10))),this.trigger(new Ce.SubscriberEvent(Ce.SubscriberEventTypes.ORIENTATION_CHANGE,this,{orientation:parseInt(Pe,10),viewElement:this._view.view}))),void 0!==Fe&&Fe!==At&&(this._streamingMode=Fe,this.trigger(new Ce.SubscriberEvent(Ce.SubscriberEventTypes.STREAMING_MODE_CHANGE,this,{streamingMode:Fe,previousStreamingMode:At,viewElement:this._view.view}))),this.trigger(new Ce.SubscriberEvent(Ce.SubscriberEventTypes.SUBSCRIBE_METADATA,this,le))}},{key:"onPublisherNetworkCongestion",value:function(le){this.trigger(new Ce.SubscriberEvent(Ce.SubscriberEventTypes.SUBSCRIBE_PUBLISHER_CONGESTION,this,le))}},{key:"onPublisherNetworkRecovery",value:function(le){this.trigger(new Ce.SubscriberEvent(Ce.SubscriberEventTypes.SUBSCRIBE_PUBLISHER_RECOVERY,this,le))}},{key:"callServer",value:function(le,Pe){return this.getMessageTransport().postAsync({callAdapter:{method:le,arguments:Pe}})}},{key:"sendLog",value:function(le,Pe){try{var Fe=(0,S.default)(Me.LEVELS).find(function(Et){return Et.toLowerCase()===le.toLowerCase()})?le:Me.LEVELS.DEBUG,At="string"==typeof Pe?Pe:(0,f.default)(Pe);this.getMessageTransport().post({log:Fe.toUpperCase(),message:At})}catch(Et){var Le=Et.message||Et;(0,Me.error)(A,"Could not send log to server. Message parameter expected to be String or JSON-serializable object."),(0,Me.error)(A,Le)}}},{key:"enableStandby",value:function(){this.getMessageTransport().post({standby:!0})}},{key:"disableStandby",value:function(){this.getMessageTransport().post({standby:!1})}},{key:"getMessageTransport",value:function(){return this._messageTransport}},{key:"getConnection",value:function(){return this._socketHelper}},{key:"getPeerConnection",value:function(){return this._peerHelper?this._peerHelper.connection:void 0}},{key:"getDataChannel",value:function(){return this._peerHelper?this._peerHelper.dataChannel:void 0}},{key:"getMediaStream",value:function(){return this._mediaStream}},{key:"getControls",value:function(){return this._sourceHandler?this._sourceHandler.getControls():void 0}},{key:"getPlayer",value:function(){return this._view.view}},{key:"getOptions",value:function(){return this._options}},{key:"getType",value:function(){return Be.PlaybackTypes.RTC.toUpperCase()}}]),$}(se.PlaybackController);s.default=G},function(z,s,n){"use strict";function l(ie){return ie&&ie.__esModule?ie:{default:ie}}Object.defineProperty(s,"__esModule",{value:!0});var v=l(n(62)),y=l(n(30)),O=l(n(3)),_=l(n(0)),r=l(n(1)),c=l(n(6)),M=l(n(5)),I=l(n(7)),V=l(n(138)),N=l(n(47)),L=n(24),E=n(13),g=n(36),R=n(37),B=n(8),X=n(2),H="RTMPSubcriber",J={protocol:"rtmp",port:1935,width:320,height:240,embedWidth:"100%",embedHeight:"100%",minFlashVersion:"10.0.0",swf:"lib/red5pro/red5pro-subscriber.swf",swfobjectURL:"lib/swfobject/swfobject.js",productInstallURL:"lib/swfobject/playerProductInstall.swf",mediaElementId:"red5pro-subscriber",useAdaptiveBitrateController:!1,abrVariants:void 0,abrVariantUpgradeSettings:{minimumDowngradePlaybackSpan:1e4,upgrade:[{level:1,retryTimeout:0},{level:2,retryTimeout:1e4},{level:3,retryTimeout:2e4}]}},re=function(ie){function ve(){(0,_.default)(this,ve);var ue=(0,c.default)(this,(ve.__proto__||(0,O.default)(ve)).call(this));return ue._options=void 0,ue._view=void 0,ue._sourceHandler=void 0,ue._elementId=void 0,ue._embedPromise=void 0,ue._getEmbedPromise().then(function(){ue.onEmbedComplete()}).catch(function(se){return ue.onEmbedFailure(se)}),ue._viewResolver=new B.DeferredPromise,ue._subscriptionResolver=new B.DeferredPromise,ue._orientation=0,ue._streamingMode="Video/Audio",ue}return(0,M.default)(ve,ie),(0,r.default)(ve,[{key:"_getViewResolverPromise",value:function(){return this._viewResolver.promise}},{key:"_getSubscriptionResolverPromise",value:function(){return this._subscriptionResolver.promise}},{key:"_getEmbedPromise",value:function(){return this._embedPromise=B.Future.createIfNotExist(this._embedPromise),this._embedPromise.promise}},{key:"_glomSourceHandlerAPI",value:function(ue){var se=this;this.pause=ue.pause.bind(ue),this.resume=ue.resume.bind(ue),this.stop=ue.stop.bind(ue),this.mute=ue.mute.bind(ue),this.unmute=ue.unmute.bind(ue),this.setVolume=ue.setVolume.bind(ue),this.seekTo=ue.seekTo.bind(ue),this.toggleFullScreen=ue.toggleFullScreen.bind(ue),this.setABRLevel=ue.setABRLevel.bind(ue),this.setABRVariants=ue.setABRVariants.bind(ue),this.stopABRController=ue.stopABRController.bind(ue),this.startABRController=ue.startABRController.bind(ue),this.setABRVariantUpgradeSettings=ue.setABRVariantUpgradeSettings.bind(ue),ue.on("*",function(Z){se.trigger(new E.SubscriberEvent(Z.type,se,Z.data))})}},{key:"_setViewIfNotExist",value:function(ue){var se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;void 0===ue&&void 0!==se&&new N.default(se).attachSubscriber(this)}},{key:"_establishExtIntHandlers",value:function(ue){var se=this;(0,X.debug)(H,"Subscriber ID provided to client: ("+ue+").");var Z=function(Se){return["subscriber",Se,ue.split("-").join("_")].join("_")};window[Z("r5proConnectClosed")]=function(){return se.trigger(new E.SubscriberEvent(E.SubscriberEventTypes.CONNECTION_CLOSED,se))},window[Z("r5proConnectSuccess")]=function(){return se.trigger(new E.SubscriberEvent(E.SubscriberEventTypes.CONNECT_SUCCESS,se))},window[Z("r5proConnectFailure")]=function(){se.trigger(new E.SubscriberEvent(E.SubscriberEventTypes.CONNECT_FAILURE,se))},window[Z("r5proSubscribeStop")]=function(){return se.trigger(new E.SubscriberEvent(E.SubscriberEventTypes.SUBSCRIBE_STOP,se))},window[Z("r5proSubscribeMetadata")]=function(Se){var Ce=JSON.parse(Se),Xe=Ce.streamingMode,He=parseInt(Ce.orientation,10),Me=se._streamingMode;se._orientation!==He&&(se._orientation=He,se.trigger(new E.SubscriberEvent(E.SubscriberEventTypes.ORIENTATION_CHANGE,se,{orientation:He}))),Me!==Xe&&(se._streamingMode=Xe,se.trigger(new E.SubscriberEvent(E.SubscriberEventTypes.STREAMING_MODE_CHANGE,se,{streamingMode:Xe,previousStreamingMode:Me}))),se.trigger(new E.SubscriberEvent(E.SubscriberEventTypes.SUBSCRIBE_METADATA,se,JSON.parse(Se)))},window[Z("r5proSubscribeUnpublish")]=function(){se.onUnpublish()},window[Z("r5proSubscribePublisherCongestion")]=function(Se){return se.trigger(new E.SubscriberEvent(E.SubscriberEventTypes.SUBSCRIBE_PUBLISHER_CONGESTION,se,JSON.parse(Se)))},window[Z("r5proSubscribePublisherRecovery")]=function(Se){return se.trigger(new E.SubscriberEvent(E.SubscriberEventTypes.SUBSCRIBE_PUBLISHER_RECOVERY,se,JSON.parse(Se)))},window[Z("r5proSubscribeSendInvoke")]=function(Se){se.trigger(new E.SubscriberEvent(E.SubscriberEventTypes.SUBSCRIBE_SEND_INVOKE,se,"string"==typeof Se?JSON.parse(Se):Se))},window[Z("r5proSubscribePlayRequest")]=function(){se.play()},window[Z("r5proSubscribeStart")]=function(){se._subscriptionResolver.resolve(se),se.trigger(new E.SubscriberEvent(E.SubscriberEventTypes.SUBSCRIBE_START,se))},window[Z("r5proSubscribeInvalidName")]=function(){se._subscriptionResolver.reject("NetStream.Play.StreamNotFound",se),se.trigger(new E.SubscriberEvent(E.SubscriberEventTypes.SUBSCRIBE_INVALID_NAME,se))},window[Z("r5proSubscribeFail")]=function(){se._subscriptionResolver.reject("NetStream.Failed",se),se.trigger(new E.SubscriberEvent(E.SubscriberEventTypes.SUBSCRIBE_FAIL,se))},window[Z("r5proSubscribeVolumeChange")]=function(Se){se.trigger(new E.SubscriberEvent(E.SubscriberEventTypes.VOLUME_CHANGE,se,{volume:JSON.parse(Se).volume}))},window[Z("r5proSubscribePlaybackStalled")]=function(){(0,X.debug)(H,"playback has stalled...")},window[Z("r5proSubscribePlaybackTimeChange")]=function(Se){var Ce=JSON.parse(Se);se.trigger(new E.SubscriberEvent(E.SubscriberEventTypes.PLAYBACK_TIME_UPDATE,se,{time:Ce.value,duration:Ce.duration}))},window[Z("r5proSubscribePlaybackStateChange")]=function(Se){var Ce=JSON.parse(Se).code;se.trigger(new E.SubscriberEvent(E.SubscriberEventTypes.PLAYBACK_STATE_CHANGE,se,{code:Ce,state:R.PlaybackStateReadable[Ce]}))},window[Z("r5proSubscribeABRLevelChange")]=function(Se){var Ce=JSON.parse(Se),Be=Ce.level,He=JSON.parse(decodeURIComponent(Ce.stream));se.trigger(new E.SubscriberEvent(E.RTMPSubscriberEventTypes.ABR_LEVEL_CHANGE,se,{level:Be,stream:He}))}}},{key:"init",value:function(ue){var se=this,Z=new B.DeferredPromise,Se=ue.minFlashVersion||J.minFlashVersion;if(I.default.supportsFlashVersion(Se)){this._options=(0,y.default)({},J,ue);try{I.default.injectScript(this._options.swfobjectURL).then(function(){var Be=se._embedPromise;return(0,X.debug)(H,"SWFObject embedded."),se._sourceHandler?(se._sourceHandler.addSource(se._elementId,se._options).then(function(Xe){se._establishExtIntHandlers(Xe),Be.resolve(se)}).catch(function(Xe){Be.reject(Xe)}),se._getEmbedPromise()):(se._getViewResolverPromise().then(function(Be){if(se._sourceHandler=new V.default(se,Be.view,se.getType()),se._glomSourceHandlerAPI(se._sourceHandler),se._options){var Xe=se._embedPromise;se._sourceHandler.addSource(se._elementId,se._options).then(function(He){se._establishExtIntHandlers(He),Xe.resolve(se)}).catch(function(He){return Xe.reject(He)})}}),!0)}).then(function(){se._setViewIfNotExist(se._view,se._options.mediaElementId),Z.resolve(se)}).catch(function(Be){(0,X.error)(H,"Could not embed Flash-based RTMP Player. Reason: "+Be),se._sourceHandler&&se._sourceHandler.disconnect(),Z.reject(Be),se.trigger(new E.SubscriberEvent(E.RTMPSubscriberEventTypes.EMBED_FAILURE,se))})}catch(Be){Z.reject("Could not inject Flash-based Player into the page. Reason: "+Be.message),this.trigger(new E.SubscriberEvent(E.RTMPSubscriberEventTypes.EMBED_FAILURE,this))}}else(0,X.warn)(H,"Could not resolve RTMPSubscriber instance. Requires minimum Flash Player install of "+Se+"."),Z.reject("Could not resolve RTMPSubscriber instance. Requires minimum Flash Player install of "+Se+".");return Z.promise}},{key:"setView",value:function(ue,se){return this._view=ue,this._elementId=se,this._viewResolver.resolve(this._view),this}},{key:"subscribe",value:function(){return this._getSubscriptionResolverPromise()}},{key:"unsubscribe",value:function(){var ue=this;return(0,X.debug)(H,"[unsubscribe]"),new v.default(function(Z,Se){try{ue._sourceHandler.disconnect(),Z()}catch(Ce){Se(Ce.message)}})}},{key:"play",value:function(){var ue=this;(0,X.debug)(H,"[play]"),this._getEmbedPromise().then(function(){ue._sourceHandler.play()})}},{key:"onEmbedComplete",value:function(){(0,X.debug)(H,"[embed:complete]"),this.trigger(new E.SubscriberEvent(E.RTMPSubscriberEventTypes.EMBED_SUCCESS,this))}},{key:"onEmbedFailure",value:function(ue){(0,X.debug)(H,"[embed:failure] - "+ue),this.trigger(new E.SubscriberEvent(E.RTMPSubscriberEventTypes.EMBED_FAILURE,this))}},{key:"onUnpublish",value:function(){(0,X.debug)(H,"[onunpublish]"),this._sourceHandler&&this._sourceHandler.unpublish(),this.trigger(new E.SubscriberEvent(E.SubscriberEventTypes.PLAY_UNPUBLISH,this)),this._sourceHandler&&this._sourceHandler.disconnect()}},{key:"getConnection",value:function(){return this._sourceHandler}},{key:"getControls",value:function(){return this._sourceHandler?this._sourceHandler.getControls():void 0}},{key:"getOptions",value:function(){return this._options}},{key:"getPlayer",value:function(){return this._sourceHandler?this._sourceHandler.getEmbeddedView():void 0}},{key:"getType",value:function(){return g.PlaybackTypes.RTMP.toUpperCase()}}]),ve}(L.PlaybackController);s.default=re},function(z,s,n){"use strict";function l(X){return X&&X.__esModule?X:{default:X}}Object.defineProperty(s,"__esModule",{value:!0});var v=l(n(10)),y=l(n(95)),O=l(n(3)),_=l(n(0)),r=l(n(1)),c=l(n(6)),M=l(n(5)),I=l(n(7)),U=n(82),V=n(25),T=n(24),N=n(37),L=n(13),E=n(8),g=n(2),R="HLSSourceHandler",B=function(X){function H(J,re){(0,_.default)(this,H);var ie=(0,c.default)(this,(H.__proto__||(0,O.default)(H)).call(this));return ie.media=J,ie.clone=ie.media.cloneNode(!0),ie.parent=ie.media.parentNode,ie.holder=ie._determineHolder(J),ie.playerType=re,ie._mediaSource=void 0,ie._isVOD=!1,ie._controls=void 0,ie._orientation=0,ie._streamingMode="Video/Audio",ie._autoLayoutOrientation=!0,ie._playbackNotificationCenter=ie.media,ie._handleOrientationChange=ie._handleOrientationChange.bind(ie),ie._onOrientationMetadata=ie._onOrientationMetadata.bind(ie),ie._onStreamingModeMetadata=ie._onStreamingModeMetadata.bind(ie),I.default.onFullScreenStateChange(ie._handleFullScreenChange.bind(ie)),ie}return(0,M.default)(H,X),(0,r.default)(H,[{key:"_determineHolder",value:function(J){if(J.parentNode.classList.contains("red5pro-media-container"))return J.parentNode;var re=J.parentNode,ie=I.default.createElement("div");return ie.classList.add("red5pro-media-container"),re.insertBefore(ie,J),re.removeChild(J),ie.appendChild(J),ie}},{key:"_cleanUp",value:function(){var J=this.media,re=this._mediaSource,ie=J.parentNode,ve=this.holder;if(re&&J.removeChild(re),ie)ie.removeChild(J),ie!==this.parent&&(ie.parentNode.removeChild(ie),ve=this.parent);else try{J.remove()}catch(ue){(0,g.warn)(R,"Issue in DOM cleanup of HLS video object: "+ue.message)}this.media=this.clone.cloneNode(!0),ve.appendChild(this.media),this._controls&&this._controls.detach(),this.media.setAttribute("autoplay",!0),this.clone=this.media.cloneNode(!0),this.parent=this.media.parentNode,this.holder=this._determineHolder(this.media),this._orientation=0,this.isVOD=!1}},{key:"_addPlaybackHandlers",value:function(J){var re=this,ie=this.getControls(),ve=void 0!==ie;J.oncanplay=function(){ie&&ie.enable(!0),re.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.PLAYBACK_STATE_CHANGE,void 0,{code:N.PlaybackState.AVAILABLE,state:N.PlaybackStateReadable[N.PlaybackState.AVAILABLE]})),re.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.VOLUME_CHANGE,void 0,{volume:J.volume}))},J.ondurationchange=function(ue){!isNaN(J.duration)&&(0,y.default)(J.duration)&&(re.isVOD=!0),ve&&ie.setPlaybackDuration(J.duration)},J.onended=function(){(0,g.debug)(R,"[videoelement:onended]"),ve&&ie.setState(N.PlaybackState.IDLE),re.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.PLAYBACK_STATE_CHANGE,void 0,{code:N.PlaybackState.IDLE,state:N.PlaybackStateReadable[N.PlaybackState.IDLE]}))},J.ontimeupdate=function(ue){ve&&ie.setSeekTime(J.currentTime,self.isVOD?J.duration:void 0),re.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.PLAYBACK_TIME_UPDATE,void 0,{time:J.currentTime,duration:J.duration}))},J.onseeked=function(ue){},J.onseeking=function(ue){},J.onplay=function(){ve&&ie.setState(N.PlaybackState.PLAYING),re.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.PLAYBACK_STATE_CHANGE,void 0,{code:N.PlaybackState.PLAYING,state:N.PlaybackStateReadable[N.PlaybackState.PLAYING]}))},J.onpause=function(){ve&&ie.setState(N.PlaybackState.PAUSED),re.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.PLAYBACK_STATE_CHANGE,void 0,{code:N.PlaybackState.PAUSED,state:N.PlaybackStateReadable[N.PlaybackState.PAUSED]}))},J.onvolumechange=function(ue){ve&&ie.getVolume()!==re.media.volume&&ie.setVolume(re.media.volume),re.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.VOLUME_CHANGE,void 0,{volume:J.muted?0:J.volume}))},J.onencrypted=function(){(0,g.debug)(R,"[videoelement:event] encrypted")},J.onemptied=function(){(0,g.debug)(R,"[videoelement:event] emptied")},J.onloadeddata=function(){(0,g.debug)(R,"[videoelement:event] loadeddata")},J.onresize=function(){(0,g.debug)(R,"[videoelement:event] resize"),re.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.VIDEO_DIMENSIONS_CHANGE,void 0,{width:re.media.videoWidth,height:re.media.videoHeight}))},J.onloadedmetadata=function(){(0,g.debug)(R,"[videoelement:event] loadedmetadata"),re.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.SUBSCRIBE_START,void 0,{}))},J.onloadstart=function(){(0,g.debug)(R,"[videoelement:event] loadedstart")},J.onstalled=function(){(0,g.debug)(R,"[videoelement:event] stalled")},J.onsuspend=function(){(0,g.debug)(R,"[videoelement:event] suspend")},J.onwaiting=function(){(0,g.debug)(R,"[videoelement:event] waiting")}}},{key:"_handleFullScreenChange",value:function(J){J?(this.holder.classList.add("red5pro-media-container-full-screen"),this.media.classList.add("red5pro-media-container-full-screen")):(this.holder.classList.remove("red5pro-media-container-full-screen"),this.media.classList.remove("red5pro-media-container-full-screen")),this.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.FULL_SCREEN_STATE_CHANGE,void 0,J))}},{key:"_embedMediaSource",value:function(J,re,ie){var ve=new E.DeferredPromise;try{var ue=I.default.createElement("source");ue.type=re,ue.src=J,this.media.type=re,this.media.firstChild?this.media.insertBefore(ue,this.media.firstChild):this.media.appendChild(ue),this._mediaSource=ue,this._autoLayoutOrientation=ie.autoLayoutOrientation,I.default.onOrientationMetadata(this.media,this._onOrientationMetadata),I.default.onStreamingModeMetadata(this.media,this._onStreamingModeMetadata),ve.resolve()}catch(se){ve.reject(se.message)}return ve.promise}},{key:"_onOrientationMetadata",value:function(J){var re=J.orientation,ie=J.resolution,ve=parseInt(re,10);re&&this._orientation!==ve&&((0,g.debug)(R,"Metadata received: "+(0,v.default)(J,null,2)),this._orientation=ve,this._autoLayoutOrientation&&((0,U.applyOrientation)(this.media,this._orientation,(0,V.metadataResolutionToObject)(ie)),this._handleOrientationChange(this._orientation)),this.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.ORIENTATION_CHANGE,void 0,{orientation:this._orientation,viewElement:this.media})),this.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.SUBSCRIBE_METADATA,void 0,J)))}},{key:"_onStreamingModeMetadata",value:function(J){var re=J.streamingMode,ie=this._streamingMode;re&&ie!==re&&((0,g.debug)(R,"Metadata received: "+(0,v.default)(J,null,2)),this._streamingMode=re,this.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.STREAMING_MODE_CHANGE,void 0,{streamingMode:this._streamingMode,previousStreamingMode:ie,viewElement:this.media})),this.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.SUBSCRIBE_METADATA,void 0,J)))}},{key:"addSource",value:function(J,re,ie){var ve=this;(0,g.debug)(R,"[addsource]"),this.holder=this._determineHolder(this.media);var ue=new E.DeferredPromise,se=ie.controls,Z=I.default.hasAttributeDefined(this.media,"muted"),Se=I.default.hasAttributeDefined(this.media,"autoplay");Z||this.media.setAttribute("autoplay",!1);var Ce=I.default.hasAttributeDefined(this.media,"controls")&&I.default.hasClassDefined(this.media,"red5pro-media");return this._embedMediaSource(J,re,ie).then(function(){(se||Ce)&&(ve._controls=se?ie.controls:new T.PlaybackControlsImpl(ve,ve.holder),ve.media.controls=!1,ve._controls.setAsVOD(ve.isVOD),ve._controls.setMutedState(Z)),ve._addPlaybackHandlers(ve._playbackNotificationCenter),Se&&ve.attemptAutoplay(ie.muteOnAutoplayRestriction),ue.resolve()}).catch(function(Be){return ue.reject(Be)}),ue.promise}},{key:"connect",value:function(){(0,g.debug)(R,"[connect]")}},{key:"attemptAutoplay",value:function(){var J=this,re=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.play().catch(function(ie){re?(J.mute(),J.play().then(function(){J.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.AUTO_PLAYBACK_MUTED,void 0,{element:J.media}))}).catch(function(ve){J.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.AUTO_PLAYBACK_FAILURE,void 0,{error:ve.message?ve.message:ve,element:J.media}))})):J.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.AUTO_PLAYBACK_FAILURE,void 0,{error:ie.message?ie.message:ie,element:J.media}))})}},{key:"play",value:function(){(0,g.debug)(R,"[videoelement:action] play");var J=new E.DeferredPromise;try{var re=this.media.play();re?re.then(function(){(0,g.debug)(R,"[videoelement:action] play (START)"),J.resolve()}).catch(J.reject):((0,g.debug)(R,"[videoelement:action] play (START)"),J.resolve())}catch(ie){(0,g.error)(R,"[videoelement:action] play (FAULT) - "+ie.message),J.reject(ie)}return J.promise}},{key:"pause",value:function(){(0,g.debug)(R,"[videoelement:action] pause");try{this.media.pause()}catch(J){(0,g.debug)(R,"[videoelement:action] pause (FAULT) - "+J.message)}}},{key:"resume",value:function(){(0,g.debug)(R,"[videoelement:action] resume");try{var J=this.media.play();J&&J.then(function(){return(0,g.debug)(R,"[videoelement:action] play (START)")}).catch(function(re){return(0,g.error)(R,"[videoelement:action] play (FAULT) "+(re.message?re.message:re))})}catch(re){(0,g.error)(R,"[videoelement:action] resume (FAULT) - "+re.message)}}},{key:"stop",value:function(){try{this.media.stop()}catch{}}},{key:"mute",value:function(){this.media.muted=!0;var J=this.getControls();J&&J.setMutedState(!0)}},{key:"unmute",value:function(){this.media.muted=!1;var J=this.getControls();J&&J.setMutedState(!1)}},{key:"setVolume",value:function(J){this.unmute(),this.media.volume=J}},{key:"seekTo",value:function(J){var re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;this.media.currentTime=re?J*re:J}},{key:"toggleFullScreen",value:function(){try{I.default.toggleFullScreen(this.holder)}catch(J){throw J}}},{key:"unpublish",value:function(){try{this.stop(),this.media.onended.call(this.media)}catch{}}},{key:"disconnect",value:function(){this._cleanUp()}},{key:"_handleOrientationChange",value:function(J){this._controls&&J%180!=0&&(this.holder.classList.add("red5pro-media-background"),this.media.classList.remove("red5pro-media-background"))}},{key:"addSharedObjectResponseHandler",value:function(J){}},{key:"removeSharedObjectResponseHandler",value:function(J){}},{key:"sendToSharedObject",value:function(J,re,ie){}},{key:"sendPropertyToSharedObject",value:function(J,re,ie){}},{key:"getRemoteSharedObject",value:function(J){}},{key:"connectToSharedObject",value:function(J){}},{key:"closeSharedObject",value:function(J){}},{key:"getControls",value:function(){return this._controls}},{key:"getType",value:function(){return this.playerType}},{key:"isVOD",get:function(){return this._isVOD},set:function(J){this._isVOD=J,this._controls&&this._controls.setAsVOD(J)}}]),H}(T.PlaybackController);s.default=B},function(z,s,n){"use strict";function l(E){return E&&E.__esModule?E:{default:E}}Object.defineProperty(s,"__esModule",{value:!0});var v=l(n(95)),y=l(n(3)),O=l(n(0)),_=l(n(1)),r=l(n(6)),c=l(n(5)),M=l(n(7)),D=n(24),I=n(37),U=n(13),V=n(8),T=n(2),N="RTCSourceHandler",L=function(E){function g(R,B){(0,O.default)(this,g);var X=(0,r.default)(this,(g.__proto__||(0,y.default)(g)).call(this));return X.media=R,M.default.hasAttributeDefined(X.media,"controls")&&M.default.hasClassDefined(X.media,"red5pro-media")&&(X.clone=X.media.cloneNode(!0),X.parent=X.media.parentNode,X.holder=X._determineHolder(X.media)),X.playerType=B,X._isVOD=!1,X._controls=void 0,X._playbackNotificationCenter=X.media,M.default.onFullScreenStateChange(X._handleFullScreenChange.bind(X)),X}return(0,c.default)(g,E),(0,_.default)(g,[{key:"_determineHolder",value:function(R){if(R.parentNode.classList.contains("red5pro-media-container"))return R.parentNode;var B=R.parentNode,X=M.default.createElement("div");return X.classList.add("red5pro-media-container"),B.insertBefore(X,R),B.removeChild(R),X.appendChild(R),X}},{key:"_cleanUp",value:function(){if(this.clone){var R=this.media,B=R.parentNode,X=this.holder;if(B)B.removeChild(R),B!==this.parent&&(B.parentNode.removeChild(B),X=this.parent);else try{R.remove()}catch(H){(0,T.warn)(N,"Issue in DOM cleanup of WebRTC video object: "+H.message)}this.media=this.clone.cloneNode(!0),X.appendChild(this.media),this._controls&&this._controls.detach()}}},{key:"_addPlaybackHandlers",value:function(R){var B=this,X=this.getControls(),H=void 0!==X;R.oncanplay=function(){(0,T.debug)(N,"[videoelement:event] canplay"),X&&X.enable(!0),B.trigger(new U.SubscriberEvent(U.SubscriberEventTypes.PLAYBACK_STATE_CHANGE,void 0,{code:I.PlaybackState.AVAILABLE,state:I.PlaybackStateReadable[I.PlaybackState.AVAILABLE]})),B.trigger(new U.SubscriberEvent(U.SubscriberEventTypes.VOLUME_CHANGE,void 0,{volume:R.volume}))},R.ondurationchange=function(J){(0,T.debug)(N,"[videoelement:event] durationchange"),!isNaN(R.duration)&&(0,v.default)(R.duration)&&(B.isVOD=!0),H&&X.setPlaybackDuration(R.duration)},R.onended=function(){(0,T.debug)(N,"[videoelement:event] ended"),H&&X.setState(I.PlaybackState.IDLE),B.trigger(new U.SubscriberEvent(U.SubscriberEventTypes.PLAYBACK_STATE_CHANGE,void 0,{code:I.PlaybackState.IDLE,state:I.PlaybackStateReadable[I.PlaybackState.IDLE]}))},R.ontimeupdate=function(J){H&&X.setSeekTime(R.currentTime,self.isVOD?R.duration:void 0),B.trigger(new U.SubscriberEvent(U.SubscriberEventTypes.PLAYBACK_TIME_UPDATE,void 0,{time:R.currentTime,duration:R.duration}))},R.onseeked=function(J){},R.onseeking=function(J){},R.onplay=function(){(0,T.debug)(N,"[videoelement:event] play"),H&&X.setState(I.PlaybackState.PLAYING),B.trigger(new U.SubscriberEvent(U.SubscriberEventTypes.PLAYBACK_STATE_CHANGE,void 0,{code:I.PlaybackState.PLAYING,state:I.PlaybackStateReadable[I.PlaybackState.PLAYING]}))},R.onpause=function(){(0,T.debug)(N,"[videoelement:event] pause"),H&&X.setState(I.PlaybackState.PAUSED),B.trigger(new U.SubscriberEvent(U.SubscriberEventTypes.PLAYBACK_STATE_CHANGE,void 0,{code:I.PlaybackState.PAUSED,state:I.PlaybackStateReadable[I.PlaybackState.PAUSED]}))},R.onvolumechange=function(J){H&&X.getVolume()!==B.media.volume&&X.setVolume(B.media.volume),B.trigger(new U.SubscriberEvent(U.SubscriberEventTypes.VOLUME_CHANGE,void 0,{volume:R.muted?0:R.volume}))},R.onencrypted=function(){(0,T.debug)(N,"[videoelement:event] encrypted")},R.onemptied=function(){(0,T.debug)(N,"[videoelement:event] emptied")},R.onloadeddata=function(){(0,T.debug)(N,"[videoelement:event] loadeddata"),B.trigger(new U.SubscriberEvent(U.SubscriberEventTypes.VIDEO_DIMENSIONS_CHANGE,void 0,{width:B.media.videoWidth,height:B.media.videoHeight}))},R.onresize=function(){(0,T.debug)(N,"[videoelement:event] resize"),B.trigger(new U.SubscriberEvent(U.SubscriberEventTypes.VIDEO_DIMENSIONS_CHANGE,void 0,{width:B.media.videoWidth,height:B.media.videoHeight}))},R.onloadedmetadata=function(){(0,T.debug)(N,"[videoelement:event] loadedmetadata")},R.onloadstart=function(){(0,T.debug)(N,"[videoelement:event] loadedstart")},R.onstalled=function(){(0,T.debug)(N,"[videoelement:event] stalled")},R.onsuspend=function(){(0,T.debug)(N,"[videoelement:event] suspend")},R.onwaiting=function(){(0,T.debug)(N,"[videoelement:event] waiting")}}},{key:"_handleFullScreenChange",value:function(R){R?(this.holder&&this.holder.classList.add("red5pro-media-container-full-screen"),this.media.classList.add("red5pro-media-container-full-screen")):(this.holder&&this.holder.classList.remove("red5pro-media-container-full-screen"),this.media.classList.remove("red5pro-media-container-full-screen")),this.trigger(new U.SubscriberEvent(U.SubscriberEventTypes.FULL_SCREEN_STATE_CHANGE,void 0,R))}},{key:"addSource",value:function(R){(0,T.debug)(N,"[addsource]");var B=M.default.hasAttributeDefined(this.media,"controls")&&M.default.hasClassDefined(this.media,"red5pro-media");B&&(this.holder=this._determineHolder(this.media));var X=new V.DeferredPromise,H=R.controls,J=M.default.hasAttributeDefined(this.media,"muted");return(H||B)&&(this._controls=H?R.controls:new D.PlaybackControlsImpl(this,this.holder),this.media.controls=!1,this._controls.setAsVOD(this.isVOD),this._controls.setMutedState(J)),this._addPlaybackHandlers(this._playbackNotificationCenter),X.resolve(),X.promise}},{key:"connect",value:function(){(0,T.debug)(N,"[connect]")}},{key:"attemptAutoplay",value:function(){var R=this,B=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.play().catch(function(X){B?(R.mute(),R.play().then(function(){R.trigger(new U.SubscriberEvent(U.SubscriberEventTypes.AUTO_PLAYBACK_MUTED,void 0,{element:R.media}))}).catch(function(H){R.trigger(new U.SubscriberEvent(U.SubscriberEventTypes.AUTO_PLAYBACK_FAILURE,void 0,{error:H.message?H.message:H,element:R.media}))})):R.trigger(new U.SubscriberEvent(U.SubscriberEventTypes.AUTO_PLAYBACK_FAILURE,void 0,{error:X.message?X.message:X,element:R.media}))})}},{key:"play",value:function(){(0,T.debug)(N,"[videoelement:action] play");var R=new V.DeferredPromise;try{var B=this.media.play();B?B.then(function(){(0,T.debug)(N,"[videoelement:action] play (START)"),R.resolve()}).catch(R.reject):((0,T.debug)(N,"[videoelement:action] play (START)"),R.resolve())}catch(X){(0,T.error)(N,"[videoelement:action] play (FAULT) - "+X.message),R.reject(X)}return R.promise}},{key:"pause",value:function(){(0,T.debug)(N,"[videoelement:action] pause");try{this.media.pause()}catch(R){(0,T.warn)(N,"[videoelement:action] pause (CATCH::FAULT) - "+R.message)}}},{key:"resume",value:function(){(0,T.debug)(N,"[videoelement:action] resume");try{var R=this.media.play();R&&R.then(function(){return(0,T.debug)(N,"[videoelement:action] play (START)")}).catch(function(B){return(0,T.warn)(N,"[videoelement:action] play (CATCH::FAULT) "+(B.message?B.message:B))})}catch(B){(0,T.warn)(N,"[videoelement:action] resume (CATCH::FAULT) - "+B.message)}}},{key:"stop",value:function(){(0,T.debug)(N,"[videoelement:action] stop");try{this.media.stop()}catch{}}},{key:"mute",value:function(){this.media.muted=!0;var R=this.getControls();R&&R.setMutedState(!0)}},{key:"unmute",value:function(){this.media.muted=!1;var R=this.getControls();R&&R.setMutedState(!1)}},{key:"setVolume",value:function(R){this.unmute(),this.media.volume=R}},{key:"seekTo",value:function(R){var B=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;this.media.currentTime=B?R*B:R}},{key:"toggleFullScreen",value:function(){try{this.holder&&M.default.toggleFullScreen(this.holder)}catch(R){throw R}}},{key:"unpublish",value:function(){try{this.stop(),this.media.onended.call(this.media)}catch{}}},{key:"disconnect",value:function(){this._cleanUp()}},{key:"handleOrientationChange",value:function(R){this._controls&&R%180!=0&&(this.holder&&this.holder.classList.add("red5pro-media-background"),this.media.classList.remove("red5pro-media-background"))}},{key:"addSharedObjectResponseHandler",value:function(R){}},{key:"removeSharedObjectResponseHandler",value:function(R){}},{key:"sendToSharedObject",value:function(R,B,X){}},{key:"sendPropertyToSharedObject",value:function(R,B,X){}},{key:"getRemoteSharedObject",value:function(R){}},{key:"connectToSharedObject",value:function(R){}},{key:"closeSharedObject",value:function(R){}},{key:"getControls",value:function(){return this._controls}},{key:"getType",value:function(){return this.playerType}},{key:"isVOD",get:function(){return this._isVOD},set:function(R){this._isVOD=R,this._controls&&this._controls.setAsVOD(R)}}]),g}(D.PlaybackController);s.default=L},function(z,s,n){"use strict";function l(J){return J&&J.__esModule?J:{default:J}}Object.defineProperty(s,"__esModule",{value:!0});var v=l(n(10)),y=l(n(3)),O=l(n(0)),_=l(n(1)),r=l(n(6)),c=l(n(5)),M=function(J){if(J&&J.__esModule)return J;var re={};if(null!=J)for(var ie in J)Object.prototype.hasOwnProperty.call(J,ie)&&(re[ie]=J[ie]);return re.default=J,re}(n(81)),I=l(n(7)),V=l(n(88)),T=n(24),N=n(37),L=n(13),E=n(8),g=n(2),R="RTMPSourceHandler",B=function(J){return"string"==typeof J?parseInt(J,10):Math.round(J)},H=function(J){function re(ie,ve,ue){var se=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;(0,O.default)(this,re);var Z=(0,r.default)(this,(re.__proto__||(0,y.default)(re)).call(this));return Z.media=ve,Z.clone=Z.media.cloneNode(!0),Z.parent=Z.media.parentNode,Z.holder=Z._determineHolder(Z.media),Z.playerType=ue,Z._swfId=void 0,Z._controls=void 0,Z._soResponder=se||new V.default,Z._playbackNotificationCenter=ie,I.default.onFullScreenStateChange(Z._handleFullScreenChange.bind(Z)),Z}return(0,c.default)(re,J),(0,_.default)(re,[{key:"_determineHolder",value:function(ie){if(ie.parentNode.classList.contains("red5pro-media-container"))return ie.parentNode;var ve=ie.parentNode,ue=I.default.createElement("div");return ue.classList.add("red5pro-media-container"),ve.insertBefore(ue,ie),ve.removeChild(ie),ue.appendChild(ie),ue}},{key:"_cleanUp",value:function(){var ie=this.getEmbeddedView(),ve=ie.parentNode,ue=this.holder;if(ve)ve.removeChild(ie),ve!==this.parent&&(ve.parentNode.removeChild(ve),ue=this.parent);else try{ie.remove()}catch(se){(0,g.warn)(R,"Issue in DOM cleanup of flash object embed: "+se.message)}this.media=this.clone.cloneNode(!0),ue.appendChild(this.media),this._controls&&this._controls.detach()}},{key:"_addPlaybackHandlers",value:function(ie){var ve=this.getControls();void 0!==ve&&(ie.on(L.SubscriberEventTypes.SUBSCRIBE_START,function(){ve.setState(N.PlaybackState.PLAYING)}),ie.on(L.SubscriberEventTypes.SUBSCRIBE_STOP,function(){ve.setState(N.PlaybackState.IDLE)}),ie.on(L.SubscriberEventTypes.PLAY_UNPUBLISH,function(){ve.setState(N.PlaybackState.IDLE)}),ie.on(L.SubscriberEventTypes.SUBSCRIBE_METADATA,function(ue){ue.data.duration&&ve.setPlaybackDuration(ue.data.duration)}),ie.on(L.SubscriberEventTypes.VOLUME_CHANGE,function(ue){ve.setVolume(ue.data.volume)}),ie.on(L.SubscriberEventTypes.PLAYBACK_STATE_CHANGE,function(ue){ue.data.code===N.PlaybackState.AVAILABLE&&ve.enable(!0),ve.setState(ue.data.code)}),ie.on(L.SubscriberEventTypes.PLAYBACK_TIME_UPDATE,function(ue){ve.setSeekTime(ue.data.time,ue.data.duration)}),ie.on(L.SubscriberEventTypes.FULL_SCREEN_STATE_CHANGE,function(ue){ve.onFullScreenChange(ue.data)}))}},{key:"_handleFullScreenChange",value:function(ie){var ve=this.getEmbeddedView();ie?(this.holder.classList.add("red5pro-media-container-full-screen"),ve.classList.add("red5pro-media-container-full-screen")):(this.holder.classList.remove("red5pro-media-container-full-screen"),ve.classList.remove("red5pro-media-container-full-screen")),this.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.FULL_SCREEN_STATE_CHANGE,void 0,ie))}},{key:"_setUpInitCallback",value:function(ie){var ve=this;I.default.addSubscriptionAssignmentHandler(function(ue){(0,g.debug)(R,"Embed and init() complete for subscriber swf. successId("+ue+")."),ie.resolve(ue),ve._tearDownInitCallback()})}},{key:"_tearDownInitCallback",value:function(){}},{key:"addSource",value:function(ie,ve){var ue=this,se=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,Z=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;(0,g.debug)(R,"[addsource]"),this._swfId=ie,this.holder=this._determineHolder(this.media);var Se=this._soResponder,Ce=new E.DeferredPromise,Be=ve.controls,Xe=I.default.hasAttributeDefined(this.media,"muted"),He=I.default.hasAttributeDefined(this.media,"controls")&&I.default.hasClassDefined(this.media,"red5pro-media");ve.swf=se||ve.swf,ve.minFlashVersion=Z||ve.minFlashVersion,this._setUpInitCallback(Ce);var Me=this.media.classList;return M.defineEmbedElement(this.media,this.holder).then(function(Q){var A={stream:ve.streamName,app:ve.context?ve.app+"/"+ve.context:ve.app,host:ve.host,muted:I.default.hasAttributeDefined(ue.media,"muted"),autoplay:I.default.hasAttributeDefined(ue.media,"autoplay"),useAdaptiveBitrateController:ve.useAdaptiveBitrateController};return ve.backgroundColor&&(A.backgroundColor=ve.backgroundColor),ve.buffer&&!isNaN(Number(ve.buffer))&&(A.buffer=ve.buffer),ve.width&&!isNaN(ve.width)&&(A.width=B(ve.width)),ve.height&&!isNaN(ve.height)&&(A.height=B(ve.height)),"100%"!==ve.embedWidth&&"100%"!==ve.embedHeight||(A.autosize=!0),ue._swfId=ie,void 0!==ve.connectionParams&&(A.connectionParams=encodeURIComponent((0,v.default)(ve.connectionParams))),void 0!==ve.abrVariants&&(A.abrVariants=encodeURIComponent((0,v.default)(ve.abrVariants))),void 0!==ve.abrVariantUpgradeSettings&&(A.abrVariantUpgradeSettings=encodeURIComponent((0,v.default)(ve.abrVariantUpgradeSettings))),M.embedSwfObject(ie,ve,A,I.default.getSwfObject(),Q)}).then(function(){if(Be||He){ue._controls=Be?ve.controls:new T.PlaybackControlsImpl(ue,ue.holder),ue.media.controls=!1,ue._controls.setAsVOD(function(J){return/^.*\.(flv|mp4|mp3)/.test(J)}(ve.streamName)),ue._controls.setMutedState(Xe);for(var Q=ue.getEmbeddedView(),A=Me.length,me=void 0;--A>-1;)me=Me.item(A),Q.classList.add(me)}return ue._addPlaybackHandlers(ue._playbackNotificationCenter),ue.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.PLAYBACK_STATE_CHANGE,void 0,{code:N.PlaybackState.AVAILABLE,state:N.PlaybackStateReadable[N.PlaybackState.AVAILABLE]})),!0}).then(function(){return Se.connect(ie),!0}).catch(function(Q){return Ce.reject(Q)}),Ce.promise}},{key:"connect",value:function(){(0,g.debug)(R,"[connect]");try{this.getEmbeddedView().connect()}catch(ie){throw ie}}},{key:"play",value:function(){try{this.getEmbeddedView().play()}catch(ie){throw ie}}},{key:"pause",value:function(){try{this.getEmbeddedView().pause()}catch(ie){throw ie}}},{key:"resume",value:function(){try{this.getEmbeddedView().resume()}catch(ie){throw ie}}},{key:"stop",value:function(){try{this.getEmbeddedView().stop()}catch(ie){throw ie}}},{key:"mute",value:function(){try{this.getEmbeddedView().mute()}catch(ie){throw ie}}},{key:"unmute",value:function(){try{this.getEmbeddedView().unmute()}catch(ie){throw ie}}},{key:"setVolume",value:function(ie){try{this.getEmbeddedView().setVolume(ie)}catch(ve){throw ve}}},{key:"seekTo",value:function(ie){var ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;try{this.getEmbeddedView().seekTo(ie,ve)}catch(ue){throw ue}}},{key:"toggleFullScreen",value:function(){try{I.default.toggleFullScreen(this.holder)}catch(ie){throw ie}}},{key:"unpublish",value:function(){this.stop()}},{key:"disconnect",value:function(){try{this.getEmbeddedView().disconnect(),(0,g.debug)(R,"[disconnect]")}catch{}this._cleanUp(),this._soResponder.disconnect()}},{key:"addSharedObjectResponseHandler",value:function(ie){this._soResponder.addResponseHandler(ie)}},{key:"removeSharedObjectResponseHandler",value:function(ie){this._soResponder.removeResponseHandler(ie)}},{key:"sendToSharedObject",value:function(ie,ve,ue){this._soResponder.sendToSharedObject(ie,ve,ue)}},{key:"sendPropertyToSharedObject",value:function(ie,ve,ue){this._soResponder.sendPropertyToSharedObject(ie,ve,ue)}},{key:"getRemoteSharedObject",value:function(ie){this._soResponder.getRemoteSharedObject(ie)}},{key:"connectToSharedObject",value:function(ie){this._soResponder.connectToSharedObject(ie)}},{key:"closeSharedObject",value:function(ie){this._soResponder.closeSharedObject(ie)}},{key:"startABRController",value:function(){try{this.getEmbeddedView().startABRController()}catch(ie){(0,g.debug)(R,"Could not start the Adaptive Bitrate Controller: "+ie.message)}}},{key:"stopABRController",value:function(){try{this.getEmbeddedView().stopABRController()}catch(ie){(0,g.debug)(R,"Could not stop the Adaptive Bitrate Controller: "+ie.message)}}},{key:"setABRVariants",value:function(ie,ve){try{var ue=encodeURIComponent("string"==typeof ie?ie:(0,v.default)(ie));this.getEmbeddedView().setABRVariants(ue,ve||1)}catch(se){(0,g.debug)(R,"Could not set ABR Variants: "+se.message)}}},{key:"setABRLevel",value:function(ie,ve){try{this.getEmbeddedView().setABRLevel(ie,!!ve)}catch(ue){(0,g.debug)(R,"Could not set ABR level: "+ue.message)}}},{key:"setABRVariantUpgradeSettings",value:function(ie){try{var ve=encodeURIComponent("string"==typeof abrVariants?ie:(0,v.default)(ie));this.getEmbeddedView().setABRVariantUpgradeSettings(ve)}catch(ue){(0,g.debug)(R,"Could not set ABR Variants: "+ue.message)}}},{key:"getEmbeddedView",value:function(){return I.default.getEmbedObject(this._swfId)}},{key:"getControls",value:function(){return this._controls}},{key:"getType",value:function(){return this.playerType}}]),re}(T.PlaybackController);s.default=H},function(z,s,n){z.exports={default:n(151),__esModule:!0}},function(z,s,n){z.exports={default:n(152),__esModule:!0}},function(z,s,n){z.exports={default:n(153),__esModule:!0}},function(z,s,n){z.exports={default:n(157),__esModule:!0}},function(z,s,n){z.exports={default:n(158),__esModule:!0}},function(z,s,n){z.exports={default:n(159),__esModule:!0}},function(z,s,n){z.exports={default:n(162),__esModule:!0}},function(z,s,n){z.exports={default:n(165),__esModule:!0}},function(z,s,n){z.exports={default:n(168),__esModule:!0}},function(z,s,n){z.exports={default:n(169),__esModule:!0}},function(z,s,n){"use strict";function l(f){return f&&f.__esModule?f:{default:f}}s.__esModule=!0;var v=l(n(141)),y=l(n(140));s.default=function(){return function(O,P){if(Array.isArray(O))return O;if((0,v.default)(Object(O)))return function f(O,P){var _=[],i=!0,r=!1,a=void 0;try{for(var c,m=(0,y.default)(O);!(i=(c=m.next()).done)&&(_.push(c.value),!P||_.length!==P);i=!0);}catch(M){r=!0,a=M}finally{try{!i&&m.return&&m.return()}finally{if(r)throw a}}return _}(O,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(z,s,n){z.exports=n(212)},function(z,s,n){n(27),n(191),z.exports=n(4).Array.from},function(z,s,n){n(28),n(27),z.exports=n(189)},function(z,s,n){n(28),n(27),z.exports=n(190)},function(z,s,n){var l=n(4),d=l.JSON||(l.JSON={stringify:JSON.stringify});z.exports=function(v){return d.stringify.apply(d,arguments)}},function(z,s,n){n(43),n(27),n(28),n(193),n(208),z.exports=n(4).Map},function(z,s,n){n(194),z.exports=n(4).Number.isFinite},function(z,s,n){n(195),z.exports=n(4).Number.isNaN},function(z,s,n){n(196),z.exports=n(4).Object.assign},function(z,s,n){n(197);var l=n(4).Object;z.exports=function(d,v){return l.create(d,v)}},function(z,s,n){n(198);var l=n(4).Object;z.exports=function(d,v,S){return l.defineProperty(d,v,S)}},function(z,s,n){n(199),z.exports=n(4).Object.freeze},function(z,s,n){n(200);var l=n(4).Object;z.exports=function(d,v){return l.getOwnPropertyDescriptor(d,v)}},function(z,s,n){n(201),z.exports=n(4).Object.getPrototypeOf},function(z,s,n){n(202),z.exports=n(4).Object.keys},function(z,s,n){n(203),z.exports=n(4).Object.setPrototypeOf},function(z,s,n){n(43),n(27),n(28),n(204),z.exports=n(4).Promise},function(z,s,n){n(43),n(27),n(28),n(205),n(209),z.exports=n(4).Set},function(z,s,n){n(206),n(43),n(210),n(211),z.exports=n(4).Symbol},function(z,s,n){n(27),n(28),z.exports=n(79).f("iterator")},function(z,s,n){n(43),n(28),n(207),z.exports=n(4).WeakMap},function(z,s){z.exports=function(){}},function(z,s,n){var l=n(40);z.exports=function(d,v){var S=[];return l(d,!1,S.push,S,v),S}},function(z,s,n){var l=n(23),d=n(56),v=n(188);z.exports=function(S){return function(y,f,O){var P,_=l(y),i=d(_.length),r=v(O,i);if(S&&f!=f){for(;i>r;)if((P=_[r++])!=P)return!0}else for(;i>r;r++)if((S||r in _)&&_[r]===f)return S||r||0;return!S&&-1}}},function(z,s,n){var l=n(14),d=n(106),v=n(9)("species");z.exports=function(S){var y;return d(S)&&("function"!=typeof(y=S.constructor)||y!==Array&&!d(y.prototype)||(y=void 0),l(y)&&null===(y=y[v])&&(y=void 0)),void 0===y?Array:y}},function(z,s,n){var l=n(174);z.exports=function(d,v){return new(l(d))(v)}},function(z,s,n){"use strict";var l=n(55),d=n(33).getWeak,v=n(16),S=n(14),y=n(48),f=n(40),O=n(65),P=n(21),_=O(5),i=O(6),r=0,a=function(M){return M._l||(M._l=new c)},c=function(){this.a=[]},m=function(M,D){return _(M.a,function(I){return I[0]===D})};c.prototype={get:function(M){var D=m(this,M);if(D)return D[1]},has:function(M){return!!m(this,M)},set:function(M,D){var I=m(this,M);I?I[1]=D:this.a.push([M,D])},delete:function(M){var D=i(this.a,function(I){return I[0]===M});return~D&&this.a.splice(D,1),!!~D}},z.exports={getConstructor:function(M,D,I,U){var V=M(function(T,N){y(T,V,D,"_i"),T._i=r++,T._l=void 0,null!=N&&f(N,I,T[U],T)});return l(V.prototype,{delete:function(T){if(!S(T))return!1;var N=d(T);return!0===N?a(this).delete(T):N&&P(N,this._i)&&delete N[this._i]},has:function(T){if(!S(T))return!1;var N=d(T);return!0===N?a(this).has(T):N&&P(N,this._i)}}),V},def:function(M,D,I){var U=d(v(D),!0);return!0===U?a(M).set(D,I):U[M._i]=I,M},ufstore:a}},function(z,s,n){"use strict";var l=n(15),d=n(41);z.exports=function(v,S,y){S in v?l.f(v,S,d(0,y)):v[S]=y}},function(z,s,n){var l=n(34),d=n(72),v=n(53);z.exports=function(S){var y=l(S),f=d.f;if(f)for(var O,P=f(S),_=v.f,i=0;P.length>i;)_.call(S,O=P[i++])&&y.push(O);return y}},function(z,s){z.exports=function(n,l,d){var v=void 0===d;switch(l.length){case 0:return v?n():n.call(d);case 1:return v?n(l[0]):n.call(d,l[0]);case 2:return v?n(l[0],l[1]):n.call(d,l[0],l[1]);case 3:return v?n(l[0],l[1],l[2]):n.call(d,l[0],l[1],l[2]);case 4:return v?n(l[0],l[1],l[2],l[3]):n.call(d,l[0],l[1],l[2],l[3])}return n.apply(d,l)}},function(z,s,n){"use strict";var l=n(52),d=n(41),v=n(42),S={};n(22)(S,n(9)("iterator"),function(){return this}),z.exports=function(y,f,O){y.prototype=l(S,{next:d(1,O)}),v(y,f+" Iterator")}},function(z,s,n){var l=n(34),d=n(23);z.exports=function(v,S){for(var y,f=d(v),O=l(f),P=O.length,_=0;P>_;)if(f[y=O[_++]]===S)return y}},function(z,s,n){var l=n(12),d=n(115).set,v=l.MutationObserver||l.WebKitMutationObserver,S=l.process,y=l.Promise,f="process"==n(39)(S);z.exports=function(){var O,P,_,i=function(){var m,M;for(f&&(m=S.domain)&&m.exit();O;){M=O.fn,O=O.next;try{M()}catch(D){throw O?_():P=void 0,D}}P=void 0,m&&m.enter()};if(f)_=function(){S.nextTick(i)};else if(v){var r=!0,a=document.createTextNode("");new v(i).observe(a,{characterData:!0}),_=function(){a.data=r=!r}}else if(y&&y.resolve){var c=y.resolve();_=function(){c.then(i)}}else _=function(){d.call(l,i)};return function(m){var M={fn:m,next:void 0};P&&(P.next=M),O||(O=M,_()),P=M}}},function(z,s,n){var l=n(15),d=n(16),v=n(34);z.exports=n(17)?Object.defineProperties:function(S,y){d(S);for(var f,O=v(y),P=O.length,_=0;P>_;)l.f(S,f=O[_++],y[f]);return S}},function(z,s,n){var l=n(23),d=n(111).f,v={}.toString,S="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];z.exports.f=function(f){return S&&"[object Window]"==v.call(f)?function(f){try{return d(f)}catch{return S.slice()}}(f):d(l(f))}},function(z,s,n){var l=n(14),d=n(16),v=function(S,y){if(d(S),!l(y)&&null!==y)throw TypeError(y+": can't set as prototype!")};z.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(S,y,f){try{(f=n(20)(Function.call,n(71).f(Object.prototype,"__proto__").set,2))(S,[]),y=!(S instanceof Array)}catch{y=!0}return function(O,P){return v(O,P),y?O.__proto__=P:f(O,P),O}}({},!1):void 0),check:v}},function(z,s,n){var l=n(16),d=n(64),v=n(9)("species");z.exports=function(S,y){var f,O=l(S).constructor;return void 0===O||null==(f=l(O)[v])?y:d(f)}},function(z,s,n){var l=n(76),d=n(50);z.exports=function(v){return function(S,y){var f,O,P=String(d(S)),_=l(y),i=P.length;return _<0||_>=i?v?"":void 0:(f=P.charCodeAt(_))<55296||f>56319||_+1===i||(O=P.charCodeAt(_+1))<56320||O>57343?v?P.charAt(_):f:v?P.slice(_,_+2):O-56320+(f-55296<<10)+65536}}},function(z,s,n){var l=n(76),d=Math.max,v=Math.min;z.exports=function(S,y){return(S=l(S))<0?d(S+y,0):v(S,y)}},function(z,s,n){var l=n(16),d=n(80);z.exports=n(4).getIterator=function(v){var S=d(v);if("function"!=typeof S)throw TypeError(v+" is not iterable!");return l(S.call(v))}},function(z,s,n){var l=n(49),d=n(9)("iterator"),v=n(32);z.exports=n(4).isIterable=function(S){var y=Object(S);return void 0!==y[d]||"@@iterator"in y||v.hasOwnProperty(l(y))}},function(z,s,n){"use strict";var l=n(20),d=n(11),v=n(35),S=n(107),y=n(105),f=n(56),O=n(177),P=n(80);d(d.S+d.F*!n(108)(function(_){Array.from(_)}),"Array",{from:function(_){var i,r,a,c,m=v(_),M="function"==typeof this?this:Array,D=arguments.length,I=D>1?arguments[1]:void 0,U=void 0!==I,V=0,T=P(m);if(U&&(I=l(I,D>2?arguments[2]:void 0,2)),null==T||M==Array&&y(T))for(r=new M(i=f(m.length));i>V;V++)O(r,V,U?I(m[V],V):m[V]);else for(c=T.call(m),r=new M;!(a=c.next()).done;V++)O(r,V,U?S(c,I,[a.value,V],!0):a.value);return r.length=V,r}})},function(z,s,n){"use strict";var l=n(171),d=n(109),v=n(32),S=n(23);z.exports=n(70)(Array,"Array",function(y,f){this._t=S(y),this._i=0,this._k=f},function(){var y=this._t,f=this._k,O=this._i++;return!y||O>=y.length?(this._t=void 0,d(1)):d(0,"keys"==f?O:"values"==f?y[O]:[O,y[O]])},"values"),v.Arguments=v.Array,l("keys"),l("values"),l("entries")},function(z,s,n){"use strict";var l=n(101);z.exports=n(66)("Map",function(d){return function(){return d(this,arguments.length>0?arguments[0]:void 0)}},{get:function(d){var v=l.getEntry(this,d);return v&&v.v},set:function(d,v){return l.def(this,0===d?0:d,v)}},l,!0)},function(z,s,n){var l=n(11),d=n(12).isFinite;l(l.S,"Number",{isFinite:function(v){return"number"==typeof v&&d(v)}})},function(z,s,n){var l=n(11);l(l.S,"Number",{isNaN:function(d){return d!=d}})},function(z,s,n){var l=n(11);l(l.S+l.F,"Object",{assign:n(110)})},function(z,s,n){var l=n(11);l(l.S,"Object",{create:n(52)})},function(z,s,n){var l=n(11);l(l.S+l.F*!n(17),"Object",{defineProperty:n(15).f})},function(z,s,n){var l=n(14),d=n(33).onFreeze;n(54)("freeze",function(v){return function(S){return v&&l(S)?v(d(S)):S}})},function(z,s,n){var l=n(23),d=n(71).f;n(54)("getOwnPropertyDescriptor",function(){return function(v,S){return d(l(v),S)}})},function(z,s,n){var l=n(35),d=n(112);n(54)("getPrototypeOf",function(){return function(v){return d(l(v))}})},function(z,s,n){var l=n(35),d=n(34);n(54)("keys",function(){return function(v){return d(l(v))}})},function(z,s,n){var l=n(11);l(l.S,"Object",{setPrototypeOf:n(185).set})},function(z,s,n){"use strict";var l,d,v,S=n(51),y=n(12),f=n(20),O=n(49),P=n(11),_=n(14),i=n(64),r=n(48),a=n(40),c=n(186),m=n(115).set,M=n(182)(),D=y.TypeError,U=y.process,I=y.Promise,V="process"==O(U=y.process),T=function(){},N=!!function(){try{var ue=I.resolve(1),se=(ue.constructor={})[n(9)("species")]=function(Z){Z(T,T)};return(V||"function"==typeof PromiseRejectionEvent)&&ue.then(T)instanceof se}catch{}}(),L=function(ue,se){return ue===se||ue===I&&se===v},E=function(ue){var se;return!(!_(ue)||"function"!=typeof(se=ue.then))&&se},g=function(ue){return L(I,ue)?new R(ue):new d(ue)},R=d=function(ue){var se,Z;this.promise=new ue(function(Se,Ce){if(void 0!==se||void 0!==Z)throw D("Bad Promise constructor");se=Se,Z=Ce}),this.resolve=i(se),this.reject=i(Z)},B=function(ue){try{ue()}catch(se){return{error:se}}},X=function(ue,se){if(!ue._n){ue._n=!0;var Z=ue._c;M(function(){for(var Se=ue._v,Ce=1==ue._s,Be=0;Z.length>Be;)!function(Xe){var He,Me,Q=Ce?Xe.ok:Xe.fail,A=Xe.resolve,me=Xe.reject,ne=Xe.domain;try{Q?(Ce||(2==ue._h&&re(ue),ue._h=1),!0===Q?He=Se:(ne&&ne.enter(),He=Q(Se),ne&&ne.exit()),He===Xe.promise?me(D("Promise-chain cycle")):(Me=E(He))?Me.call(He,A,me):A(He)):me(Se)}catch(G){me(G)}}(Z[Be++]);ue._c=[],ue._n=!1,se&&!ue._h&&H(ue)})}},H=function(ue){m.call(y,function(){var se,Z,Se,Ce=ue._v;if(J(ue)&&(se=B(function(){V?U.emit("unhandledRejection",Ce,ue):(Z=y.onunhandledrejection)?Z({promise:ue,reason:Ce}):(Se=y.console)&&Se.error&&Se.error("Unhandled promise rejection",Ce)}),ue._h=V||J(ue)?2:1),ue._a=void 0,se)throw se.error})},J=function(ue){if(1==ue._h)return!1;for(var se,Z=ue._a||ue._c,Se=0;Z.length>Se;)if((se=Z[Se++]).fail||!J(se.promise))return!1;return!0},re=function(ue){m.call(y,function(){var se;V?U.emit("rejectionHandled",ue):(se=y.onrejectionhandled)&&se({promise:ue,reason:ue._v})})},ie=function(ue){var se=this;se._d||(se._d=!0,(se=se._w||se)._v=ue,se._s=2,se._a||(se._a=se._c.slice()),X(se,!0))},ve=function(ue){var se,Z=this;if(!Z._d){Z._d=!0,Z=Z._w||Z;try{if(Z===ue)throw D("Promise can't be resolved itself");(se=E(ue))?M(function(){var Se={_w:Z,_d:!1};try{se.call(ue,f(ve,Se,1),f(ie,Se,1))}catch(Ce){ie.call(Se,Ce)}}):(Z._v=ue,Z._s=1,X(Z,!1))}catch(Se){ie.call({_w:Z,_d:!1},Se)}}};N||(I=function(ue){r(this,I,"Promise","_h"),i(ue),l.call(this);try{ue(f(ve,this,1),f(ie,this,1))}catch(se){ie.call(this,se)}},(l=function(ue){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(55)(I.prototype,{then:function(ue,se){var Z=g(c(this,I));return Z.ok="function"!=typeof ue||ue,Z.fail="function"==typeof se&&se,Z.domain=V?U.domain:void 0,this._c.push(Z),this._a&&this._a.push(Z),this._s&&X(this,!1),Z.promise},catch:function(ue){return this.then(void 0,ue)}}),R=function(){var ue=new l;this.promise=ue,this.resolve=f(ve,ue,1),this.reject=f(ie,ue,1)}),P(P.G+P.W+P.F*!N,{Promise:I}),n(42)(I,"Promise"),n(114)("Promise"),v=n(4).Promise,P(P.S+P.F*!N,"Promise",{reject:function(ue){var se=g(this);return(0,se.reject)(ue),se.promise}}),P(P.S+P.F*(S||!N),"Promise",{resolve:function(ue){if(ue instanceof I&&L(ue.constructor,this))return ue;var se=g(this);return(0,se.resolve)(ue),se.promise}}),P(P.S+P.F*!(N&&n(108)(function(ue){I.all(ue).catch(T)})),"Promise",{all:function(ue){var se=this,Z=g(se),Se=Z.resolve,Ce=Z.reject,Be=B(function(){var Xe=[],He=0,Me=1;a(ue,!1,function(Q){var A=He++,me=!1;Xe.push(void 0),Me++,se.resolve(Q).then(function(ne){me||(me=!0,Xe[A]=ne,--Me||Se(Xe))},Ce)}),--Me||Se(Xe)});return Be&&Ce(Be.error),Z.promise},race:function(ue){var se=this,Z=g(se),Se=Z.reject,Ce=B(function(){a(ue,!1,function(Be){se.resolve(Be).then(Z.resolve,Se)})});return Ce&&Se(Ce.error),Z.promise}})},function(z,s,n){"use strict";var l=n(101);z.exports=n(66)("Set",function(d){return function(){return d(this,arguments.length>0?arguments[0]:void 0)}},{add:function(d){return l.def(this,d=0===d?0:d,d)}},l)},function(z,s,n){"use strict";var l=n(12),d=n(21),v=n(17),S=n(11),y=n(73),f=n(33).KEY,O=n(26),P=n(75),_=n(42),i=n(57),r=n(9),a=n(79),c=n(78),m=n(181),M=n(178),D=n(106),I=n(16),U=n(23),V=n(77),T=n(41),N=n(52),L=n(184),E=n(71),g=n(15),R=n(34),B=E.f,X=g.f,H=L.f,J=l.Symbol,re=l.JSON,ie=re&&re.stringify,ve=r("_hidden"),ue=r("toPrimitive"),se={}.propertyIsEnumerable,Z=P("symbol-registry"),Se=P("symbols"),Ce=P("op-symbols"),Be=Object.prototype,Xe="function"==typeof J,He=l.QObject,Me=!He||!He.prototype||!He.prototype.findChild,Q=v&&O(function(){return 7!=N(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a})?function(Et,$e,Ze){var Qe=B(Be,$e);Qe&&delete Be[$e],X(Et,$e,Ze),Qe&&Et!==Be&&X(Be,$e,Qe)}:X,A=function(Et){var $e=Se[Et]=N(J.prototype);return $e._k=Et,$e},me=Xe&&"symbol"==typeof J.iterator?function(Et){return"symbol"==typeof Et}:function(Et){return Et instanceof J},ne=function(Et,$e,Ze){return Et===Be&&ne(Ce,$e,Ze),I(Et),$e=V($e,!0),I(Ze),d(Se,$e)?(Ze.enumerable?(d(Et,ve)&&Et[ve][$e]&&(Et[ve][$e]=!1),Ze=N(Ze,{enumerable:T(0,!1)})):(d(Et,ve)||X(Et,ve,T(1,{})),Et[ve][$e]=!0),Q(Et,$e,Ze)):X(Et,$e,Ze)},G=function(Et,$e){I(Et);for(var Ze,Qe=M($e=U($e)),Ve=0,nt=Qe.length;nt>Ve;)ne(Et,Ze=Qe[Ve++],$e[Ze]);return Et},$=function(Et){var $e=se.call(this,Et=V(Et,!0));return!(this===Be&&d(Se,Et)&&!d(Ce,Et))&&(!($e||!d(this,Et)||!d(Se,Et)||d(this,ve)&&this[ve][Et])||$e)},le=function(Et,$e){if(Et=U(Et),$e=V($e,!0),Et!==Be||!d(Se,$e)||d(Ce,$e)){var Ze=B(Et,$e);return!Ze||!d(Se,$e)||d(Et,ve)&&Et[ve][$e]||(Ze.enumerable=!0),Ze}},Pe=function(Et){for(var $e,Ze=H(U(Et)),Qe=[],Ve=0;Ze.length>Ve;)d(Se,$e=Ze[Ve++])||$e==ve||$e==f||Qe.push($e);return Qe},Fe=function(Et){for(var $e,Ze=Et===Be,Qe=H(Ze?Ce:U(Et)),Ve=[],nt=0;Qe.length>nt;)!d(Se,$e=Qe[nt++])||Ze&&!d(Be,$e)||Ve.push(Se[$e]);return Ve};Xe||(J=function(){if(this instanceof J)throw TypeError("Symbol is not a constructor!");var Et=i(arguments.length>0?arguments[0]:void 0),$e=function(Ze){this===Be&&$e.call(Ce,Ze),d(this,ve)&&d(this[ve],Et)&&(this[ve][Et]=!1),Q(this,Et,T(1,Ze))};return v&&Me&&Q(Be,Et,{configurable:!0,set:$e}),A(Et)},y(J.prototype,"toString",function(){return this._k}),E.f=le,g.f=ne,n(111).f=L.f=Pe,n(53).f=$,n(72).f=Fe,v&&!n(51)&&y(Be,"propertyIsEnumerable",$,!0),a.f=function(Et){return A(r(Et))}),S(S.G+S.W+S.F*!Xe,{Symbol:J});for(var At="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Le=0;At.length>Le;)r(At[Le++]);for(At=R(r.store),Le=0;At.length>Le;)c(At[Le++]);S(S.S+S.F*!Xe,"Symbol",{for:function(Et){return d(Z,Et+="")?Z[Et]:Z[Et]=J(Et)},keyFor:function(Et){if(me(Et))return m(Z,Et);throw TypeError(Et+" is not a symbol!")},useSetter:function(){Me=!0},useSimple:function(){Me=!1}}),S(S.S+S.F*!Xe,"Object",{create:function(Et,$e){return void 0===$e?N(Et):G(N(Et),$e)},defineProperty:ne,defineProperties:G,getOwnPropertyDescriptor:le,getOwnPropertyNames:Pe,getOwnPropertySymbols:Fe}),re&&S(S.S+S.F*(!Xe||O(function(){var Et=J();return"[null]"!=ie([Et])||"{}"!=ie({a:Et})||"{}"!=ie(Object(Et))})),"JSON",{stringify:function(Et){if(void 0!==Et&&!me(Et)){for(var $e,Ze,Qe=[Et],Ve=1;arguments.length>Ve;)Qe.push(arguments[Ve++]);return"function"==typeof($e=Qe[1])&&(Ze=$e),!Ze&&D($e)||($e=function(nt,Ot){if(Ze&&(Ot=Ze.call(this,nt,Ot)),!me(Ot))return Ot}),Qe[1]=$e,ie.apply(re,Qe)}}}),J.prototype[ue]||n(22)(J.prototype,ue,J.prototype.valueOf),_(J,"Symbol"),_(Math,"Math",!0),_(l.JSON,"JSON",!0)},function(z,s,n){"use strict";var l,d=n(65)(0),v=n(73),S=n(33),y=n(110),f=n(176),O=n(14),P=S.getWeak,_=Object.isExtensible,i=f.ufstore,r={},a=function(M){return function(){return M(this,arguments.length>0?arguments[0]:void 0)}},c={get:function(M){if(O(M)){var D=P(M);return!0===D?i(this).get(M):D?D[this._i]:void 0}},set:function(M,D){return f.def(this,M,D)}},m=z.exports=n(66)("WeakMap",a,c,f,!0,!0);7!=(new m).set((Object.freeze||Object)(r),7).get(r)&&(y((l=f.getConstructor(a)).prototype,c),S.NEED=!0,d(["delete","has","get","set"],function(M){var D=m.prototype,I=D[M];v(D,M,function(U,V){if(O(U)&&!_(U)){this._f||(this._f=new l);var T=this._f[M](U,V);return"set"==M?this:T}return I.call(this,U,V)})}))},function(z,s,n){var l=n(11);l(l.P+l.R,"Map",{toJSON:n(102)("Map")})},function(z,s,n){var l=n(11);l(l.P+l.R,"Set",{toJSON:n(102)("Set")})},function(z,s,n){n(78)("asyncIterator")},function(z,s,n){n(78)("observable")},function(z,s,n){var l=function(){return this}()||Function("return this")(),d=l.regeneratorRuntime&&Object.getOwnPropertyNames(l).indexOf("regeneratorRuntime")>=0,v=d&&l.regeneratorRuntime;if(l.regeneratorRuntime=void 0,z.exports=n(213),d)l.regeneratorRuntime=v;else try{delete l.regeneratorRuntime}catch{l.regeneratorRuntime=void 0}},function(z,s){!function(n){"use strict";function l(ue,se,Z,Se){var Be=Object.create((se&&se.prototype instanceof v?se:v).prototype),Xe=new a(Se||[]);return Be._invoke=function P(ue,se,Z){var Se=g;return function(Ce,Be){if(Se===B)throw new Error("Generator is already running");if(Se===X){if("throw"===Ce)throw Be;return m()}for(Z.method=Ce,Z.arg=Be;;){var Xe=Z.delegate;if(Xe){var He=_(Xe,Z);if(He){if(He===H)continue;return He}}if("next"===Z.method)Z.sent=Z._sent=Z.arg;else if("throw"===Z.method){if(Se===g)throw Se=X,Z.arg;Z.dispatchException(Z.arg)}else"return"===Z.method&&Z.abrupt("return",Z.arg);Se=B;var Me=d(ue,se,Z);if("normal"===Me.type){if(Se=Z.done?X:R,Me.arg===H)continue;return{value:Me.arg,done:Z.done}}"throw"===Me.type&&(Se=X,Z.method="throw",Z.arg=Me.arg)}}}(ue,Z,Xe),Be}function d(ue,se,Z){try{return{type:"normal",arg:ue.call(se,Z)}}catch(Se){return{type:"throw",arg:Se}}}function v(){}function S(){}function y(){}function f(ue){["next","throw","return"].forEach(function(se){ue[se]=function(Z){return this._invoke(se,Z)}})}function O(ue){function se(Ce,Be,Xe,He){var Me=d(ue[Ce],ue,Be);if("throw"!==Me.type){var Q=Me.arg,A=Q.value;return A&&"object"==typeof A&&I.call(A,"__await")?Promise.resolve(A.__await).then(function(me){se("next",me,Xe,He)},function(me){se("throw",me,Xe,He)}):Promise.resolve(A).then(function(me){Q.value=me,Xe(Q)},He)}He(Me.arg)}var Se;this._invoke=function Z(Ce,Be){function Xe(){return new Promise(function(He,Me){se(Ce,Be,He,Me)})}return Se=Se?Se.then(Xe,Xe):Xe()}}function _(ue,se){var Z=ue.iterator[se.method];if(Z===M){if(se.delegate=null,"throw"===se.method){if(ue.iterator.return&&(se.method="return",se.arg=M,_(ue,se),"throw"===se.method))return H;se.method="throw",se.arg=new TypeError("The iterator does not provide a 'throw' method")}return H}var Se=d(Z,ue.iterator,se.arg);if("throw"===Se.type)return se.method="throw",se.arg=Se.arg,se.delegate=null,H;var Ce=Se.arg;return Ce?Ce.done?(se[ue.resultName]=Ce.value,se.next=ue.nextLoc,"return"!==se.method&&(se.method="next",se.arg=M),se.delegate=null,H):Ce:(se.method="throw",se.arg=new TypeError("iterator result is not an object"),se.delegate=null,H)}function i(ue){var se={tryLoc:ue[0]};1 in ue&&(se.catchLoc=ue[1]),2 in ue&&(se.finallyLoc=ue[2],se.afterLoc=ue[3]),this.tryEntries.push(se)}function r(ue){var se=ue.completion||{};se.type="normal",delete se.arg,ue.completion=se}function a(ue){this.tryEntries=[{tryLoc:"root"}],ue.forEach(i,this),this.reset(!0)}function c(ue){if(ue){var se=ue[V];if(se)return se.call(ue);if("function"==typeof ue.next)return ue;if(!isNaN(ue.length)){var Z=-1,Se=function Ce(){for(;++Z<ue.length;)if(I.call(ue,Z))return Ce.value=ue[Z],Ce.done=!1,Ce;return Ce.value=M,Ce.done=!0,Ce};return Se.next=Se}}return{next:m}}function m(){return{value:M,done:!0}}var M,D=Object.prototype,I=D.hasOwnProperty,U="function"==typeof Symbol?Symbol:{},V=U.iterator||"@@iterator",T=U.asyncIterator||"@@asyncIterator",N=U.toStringTag||"@@toStringTag",L="object"==typeof z,E=n.regeneratorRuntime;if(E)L&&(z.exports=E);else{(E=n.regeneratorRuntime=L?z.exports:{}).wrap=l;var g="suspendedStart",R="suspendedYield",B="executing",X="completed",H={},J={};J[V]=function(){return this};var re=Object.getPrototypeOf,ie=re&&re(re(c([])));ie&&ie!==D&&I.call(ie,V)&&(J=ie);var ve=y.prototype=v.prototype=Object.create(J);S.prototype=ve.constructor=y,y.constructor=S,y[N]=S.displayName="GeneratorFunction",E.isGeneratorFunction=function(ue){var se="function"==typeof ue&&ue.constructor;return!!se&&(se===S||"GeneratorFunction"===(se.displayName||se.name))},E.mark=function(ue){return Object.setPrototypeOf?Object.setPrototypeOf(ue,y):(ue.__proto__=y,N in ue||(ue[N]="GeneratorFunction")),ue.prototype=Object.create(ve),ue},E.awrap=function(ue){return{__await:ue}},f(O.prototype),O.prototype[T]=function(){return this},E.AsyncIterator=O,E.async=function(ue,se,Z,Se){var Ce=new O(l(ue,se,Z,Se));return E.isGeneratorFunction(se)?Ce:Ce.next().then(function(Be){return Be.done?Be.value:Ce.next()})},f(ve),ve[N]="Generator",ve[V]=function(){return this},ve.toString=function(){return"[object Generator]"},E.keys=function(ue){var se=[];for(var Z in ue)se.push(Z);return se.reverse(),function Se(){for(;se.length;){var Ce=se.pop();if(Ce in ue)return Se.value=Ce,Se.done=!1,Se}return Se.done=!0,Se}},E.values=c,a.prototype={constructor:a,reset:function(ue){if(this.prev=0,this.next=0,this.sent=this._sent=M,this.done=!1,this.delegate=null,this.method="next",this.arg=M,this.tryEntries.forEach(r),!ue)for(var se in this)"t"===se.charAt(0)&&I.call(this,se)&&!isNaN(+se.slice(1))&&(this[se]=M)},stop:function(){this.done=!0;var se=this.tryEntries[0].completion;if("throw"===se.type)throw se.arg;return this.rval},dispatchException:function(ue){function se(Me,Q){return Be.type="throw",Be.arg=ue,Z.next=Me,Q&&(Z.method="next",Z.arg=M),!!Q}if(this.done)throw ue;for(var Z=this,Se=this.tryEntries.length-1;Se>=0;--Se){var Ce=this.tryEntries[Se],Be=Ce.completion;if("root"===Ce.tryLoc)return se("end");if(Ce.tryLoc<=this.prev){var Xe=I.call(Ce,"catchLoc"),He=I.call(Ce,"finallyLoc");if(Xe&&He){if(this.prev<Ce.catchLoc)return se(Ce.catchLoc,!0);if(this.prev<Ce.finallyLoc)return se(Ce.finallyLoc)}else if(Xe){if(this.prev<Ce.catchLoc)return se(Ce.catchLoc,!0)}else{if(!He)throw new Error("try statement without catch or finally");if(this.prev<Ce.finallyLoc)return se(Ce.finallyLoc)}}}},abrupt:function(ue,se){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var Se=this.tryEntries[Z];if(Se.tryLoc<=this.prev&&I.call(Se,"finallyLoc")&&this.prev<Se.finallyLoc){var Ce=Se;break}}Ce&&("break"===ue||"continue"===ue)&&Ce.tryLoc<=se&&se<=Ce.finallyLoc&&(Ce=null);var Be=Ce?Ce.completion:{};return Be.type=ue,Be.arg=se,Ce?(this.method="next",this.next=Ce.finallyLoc,H):this.complete(Be)},complete:function(ue,se){if("throw"===ue.type)throw ue.arg;return"break"===ue.type||"continue"===ue.type?this.next=ue.arg:"return"===ue.type?(this.rval=this.arg=ue.arg,this.method="return",this.next="end"):"normal"===ue.type&&se&&(this.next=se),H},finish:function(ue){for(var se=this.tryEntries.length-1;se>=0;--se){var Z=this.tryEntries[se];if(Z.finallyLoc===ue)return this.complete(Z.completion,Z.afterLoc),r(Z),H}},catch:function(ue){for(var se=this.tryEntries.length-1;se>=0;--se){var Z=this.tryEntries[se];if(Z.tryLoc===ue){var Se=Z.completion;if("throw"===Se.type){var Ce=Se.arg;r(Z)}return Ce}}throw new Error("illegal catch attempt")},delegateYield:function(ue,se,Z){return this.delegate={iterator:c(ue),resultName:se,nextLoc:Z},"next"===this.method&&(this.arg=M),H}}}}(function(){return this}()||Function("return this")())},function(z,s,n){z.exports=n(116)}])},99443:(Bt,z,s)=>{"use strict";s.d(z,{h:()=>d});var n=s(80583),l=s(10399);class d extends n.B7{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(S){return this.hasError?(S.error(this.thrownError),l.y.EMPTY):this.hasCompleted&&this.hasNext?(S.next(this.value),S.complete(),l.y.EMPTY):super._subscribe(S)}next(S){this.hasCompleted||(this.value=S,this.hasNext=!0)}error(S){this.hasCompleted||super.error(S)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}},26513:(Bt,z,s)=>{"use strict";s.d(z,{t:()=>d});var n=s(80583),l=s(38058);class d extends n.B7{constructor(S){super(),this._value=S}get value(){return this.getValue()}_subscribe(S){const y=super._subscribe(S);return y&&!y.closed&&S.next(this._value),y}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new l.P;return this._value}next(S){super.next(this._value=S)}}},75252:(Bt,z,s)=>{"use strict";s.d(z,{E:()=>S});var n=s(12532),l=s(43848),d=s(59859);class S{constructor(f,O,P){this.kind=f,this.value=O,this.error=P,this.hasValue="N"===f}observe(f){switch(this.kind){case"N":return f.next&&f.next(this.value);case"E":return f.error&&f.error(this.error);case"C":return f.complete&&f.complete()}}do(f,O,P){switch(this.kind){case"N":return f&&f(this.value);case"E":return O&&O(this.error);case"C":return P&&P()}}accept(f,O,P){return f&&"function"==typeof f.next?this.observe(f):this.do(f,O,P)}toObservable(){switch(this.kind){case"N":return(0,l.of)(this.value);case"E":return(0,d.$)(this.error);case"C":return(0,n.I)()}throw new Error("unexpected notification kind value")}static createNext(f){return typeof f<"u"?new S("N",f):S.undefinedValueNotification}static createError(f){return new S("E",void 0,f)}static createComplete(){return S.completeNotification}}S.completeNotification=new S("C"),S.undefinedValueNotification=new S("N",void 0)},17053:(Bt,z,s)=>{"use strict";s.d(z,{c:()=>P});var n=s(27721),d=s(73302),v=s(41469),y=s(15587),f=s(97462),O=s(71337);let P=(()=>{class i{constructor(a){this._isScalar=!1,a&&(this._subscribe=a)}lift(a){const c=new i;return c.source=this,c.operator=a,c}subscribe(a,c,m){const{operator:M}=this,D=function S(i,r,a){if(i){if(i instanceof n.v)return i;if(i[d.D])return i[d.D]()}return i||r||a?new n.v(i,r,a):new n.v(v.I)}(a,c,m);if(D.add(M?M.call(D,this.source):this.source||O.$.useDeprecatedSynchronousErrorHandling&&!D.syncErrorThrowable?this._subscribe(D):this._trySubscribe(D)),O.$.useDeprecatedSynchronousErrorHandling&&D.syncErrorThrowable&&(D.syncErrorThrowable=!1,D.syncErrorThrown))throw D.syncErrorValue;return D}_trySubscribe(a){try{return this._subscribe(a)}catch(c){O.$.useDeprecatedSynchronousErrorHandling&&(a.syncErrorThrown=!0,a.syncErrorValue=c),function l(i){for(;i;){const{closed:r,destination:a,isStopped:c}=i;if(r||c)return!1;i=a&&a instanceof n.v?a:null}return!0}(a)?a.error(c):console.warn(c)}}forEach(a,c){return new(c=_(c))((m,M)=>{let D;D=this.subscribe(I=>{try{a(I)}catch(U){M(U),D&&D.unsubscribe()}},M,m)})}_subscribe(a){const{source:c}=this;return c&&c.subscribe(a)}[y.s](){return this}pipe(...a){return 0===a.length?this:(0,f.m)(a)(this)}toPromise(a){return new(a=_(a))((c,m)=>{let M;this.subscribe(D=>M=D,D=>m(D),()=>c(M))})}}return i.create=r=>new i(r),i})();function _(i){if(i||(i=O.$.Promise||Promise),!i)throw new Error("no Promise impl found");return i}},41469:(Bt,z,s)=>{"use strict";s.d(z,{I:()=>d});var n=s(71337),l=s(81498);const d={closed:!0,next(v){},error(v){if(n.$.useDeprecatedSynchronousErrorHandling)throw v;(0,l.T)(v)},complete(){}}},88134:(Bt,z,s)=>{"use strict";s.d(z,{E:()=>l});var n=s(27721);class l extends n.v{notifyNext(v,S,y,f,O){this.destination.next(S)}notifyError(v,S){this.destination.error(v)}notifyComplete(v){this.destination.complete()}}},85735:(Bt,z,s)=>{"use strict";s.d(z,{m:()=>r});var n=s(80583),l=s(86369),v=s(4065);const f=new class S extends v.q{}(class d extends l.R{constructor(m,M){super(m,M),this.scheduler=m,this.work=M}schedule(m,M=0){return M>0?super.schedule(m,M):(this.delay=M,this.state=m,this.scheduler.flush(this),this)}execute(m,M){return M>0||this.closed?super.execute(m,M):this._execute(m,M)}requestAsyncId(m,M,D=0){return null!==D&&D>0||null===D&&this.delay>0?super.requestAsyncId(m,M,D):m.flush(this)}});var O=s(10399),P=s(79284),_=s(38058),i=s(29482);class r extends n.B7{constructor(m=Number.POSITIVE_INFINITY,M=Number.POSITIVE_INFINITY,D){super(),this.scheduler=D,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=m<1?1:m,this._windowTime=M<1?1:M,M===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(m){const M=this._events;M.push(m),M.length>this._bufferSize&&M.shift(),super.next(m)}nextTimeWindow(m){this._events.push(new a(this._getNow(),m)),this._trimBufferThenGetEvents(),super.next(m)}_subscribe(m){const M=this._infiniteTimeWindow,D=M?this._events:this._trimBufferThenGetEvents(),I=this.scheduler,U=D.length;let V;if(this.closed)throw new _.P;if(this.isStopped||this.hasError?V=O.y.EMPTY:(this.observers.push(m),V=new i.Y(this,m)),I&&m.add(m=new P.YZ(m,I)),M)for(let T=0;T<U&&!m.closed;T++)m.next(D[T]);else for(let T=0;T<U&&!m.closed;T++)m.next(D[T].value);return this.hasError?m.error(this.thrownError):this.isStopped&&m.complete(),V}_getNow(){return(this.scheduler||f).now()}_trimBufferThenGetEvents(){const m=this._getNow(),M=this._bufferSize,D=this._windowTime,I=this._events,U=I.length;let V=0;for(;V<U&&!(m-I[V].time<D);)V++;return U>M&&(V=Math.max(V,U-M)),V>0&&I.splice(0,V),I}}class a{constructor(m,M){this.time=m,this.value=M}}},80583:(Bt,z,s)=>{"use strict";s.d(z,{B7:()=>O,PJ:()=>f,kQ:()=>P});var n=s(17053),l=s(27721),d=s(10399),v=s(38058),S=s(29482),y=s(73302);class f extends l.v{constructor(i){super(i),this.destination=i}}let O=(()=>{class _ extends n.c{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[y.D](){return new f(this)}lift(r){const a=new P(this,this);return a.operator=r,a}next(r){if(this.closed)throw new v.P;if(!this.isStopped){const{observers:a}=this,c=a.length,m=a.slice();for(let M=0;M<c;M++)m[M].next(r)}}error(r){if(this.closed)throw new v.P;this.hasError=!0,this.thrownError=r,this.isStopped=!0;const{observers:a}=this,c=a.length,m=a.slice();for(let M=0;M<c;M++)m[M].error(r);this.observers.length=0}complete(){if(this.closed)throw new v.P;this.isStopped=!0;const{observers:r}=this,a=r.length,c=r.slice();for(let m=0;m<a;m++)c[m].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(r){if(this.closed)throw new v.P;return super._trySubscribe(r)}_subscribe(r){if(this.closed)throw new v.P;return this.hasError?(r.error(this.thrownError),d.y.EMPTY):this.isStopped?(r.complete(),d.y.EMPTY):(this.observers.push(r),new S.Y(this,r))}asObservable(){const r=new n.c;return r.source=this,r}}return _.create=(i,r)=>new P(i,r),_})();class P extends O{constructor(i,r){super(),this.destination=i,this.source=r}next(i){const{destination:r}=this;r&&r.next&&r.next(i)}error(i){const{destination:r}=this;r&&r.error&&this.destination.error(i)}complete(){const{destination:i}=this;i&&i.complete&&this.destination.complete()}_subscribe(i){const{source:r}=this;return r?this.source.subscribe(i):d.y.EMPTY}}},29482:(Bt,z,s)=>{"use strict";s.d(z,{Y:()=>l});var n=s(10399);class l extends n.y{constructor(v,S){super(),this.subject=v,this.subscriber=S,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const v=this.subject,S=v.observers;if(this.subject=null,!S||0===S.length||v.isStopped||v.closed)return;const y=S.indexOf(this.subscriber);-1!==y&&S.splice(y,1)}}},27721:(Bt,z,s)=>{"use strict";s.d(z,{v:()=>f});var n=s(50710),l=s(41469),d=s(10399),v=s(73302),S=s(71337),y=s(81498);class f extends d.y{constructor(_,i,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l.I;break;case 1:if(!_){this.destination=l.I;break}if("object"==typeof _){_ instanceof f?(this.syncErrorThrowable=_.syncErrorThrowable,this.destination=_,_.add(this)):(this.syncErrorThrowable=!0,this.destination=new O(this,_));break}default:this.syncErrorThrowable=!0,this.destination=new O(this,_,i,r)}}[v.D](){return this}static create(_,i,r){const a=new f(_,i,r);return a.syncErrorThrowable=!1,a}next(_){this.isStopped||this._next(_)}error(_){this.isStopped||(this.isStopped=!0,this._error(_))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(_){this.destination.next(_)}_error(_){this.destination.error(_),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:_}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=_,this}}class O extends f{constructor(_,i,r,a){super(),this._parentSubscriber=_;let c,m=this;(0,n.T)(i)?c=i:i&&(c=i.next,r=i.error,a=i.complete,i!==l.I&&(m=Object.create(i),(0,n.T)(m.unsubscribe)&&this.add(m.unsubscribe.bind(m)),m.unsubscribe=this.unsubscribe.bind(this))),this._context=m,this._next=c,this._error=r,this._complete=a}next(_){if(!this.isStopped&&this._next){const{_parentSubscriber:i}=this;S.$.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable?this.__tryOrSetError(i,this._next,_)&&this.unsubscribe():this.__tryOrUnsub(this._next,_)}}error(_){if(!this.isStopped){const{_parentSubscriber:i}=this,{useDeprecatedSynchronousErrorHandling:r}=S.$;if(this._error)r&&i.syncErrorThrowable?(this.__tryOrSetError(i,this._error,_),this.unsubscribe()):(this.__tryOrUnsub(this._error,_),this.unsubscribe());else if(i.syncErrorThrowable)r?(i.syncErrorValue=_,i.syncErrorThrown=!0):(0,y.T)(_),this.unsubscribe();else{if(this.unsubscribe(),r)throw _;(0,y.T)(_)}}}complete(){if(!this.isStopped){const{_parentSubscriber:_}=this;if(this._complete){const i=()=>this._complete.call(this._context);S.$.useDeprecatedSynchronousErrorHandling&&_.syncErrorThrowable?(this.__tryOrSetError(_,i),this.unsubscribe()):(this.__tryOrUnsub(i),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(_,i){try{_.call(this._context,i)}catch(r){if(this.unsubscribe(),S.$.useDeprecatedSynchronousErrorHandling)throw r;(0,y.T)(r)}}__tryOrSetError(_,i,r){if(!S.$.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{i.call(this._context,r)}catch(a){return S.$.useDeprecatedSynchronousErrorHandling?(_.syncErrorValue=a,_.syncErrorThrown=!0,!0):((0,y.T)(a),!0)}return!1}_unsubscribe(){const{_parentSubscriber:_}=this;this._context=null,this._parentSubscriber=null,_.unsubscribe()}}},10399:(Bt,z,s)=>{"use strict";s.d(z,{y:()=>y});var n=s(34277),l=s(96305),d=s(50710);const S=(()=>{function O(P){return Error.call(this),this.message=P?`${P.length} errors occurred during unsubscription:\n${P.map((_,i)=>`${i+1}) ${_.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=P,this}return O.prototype=Object.create(Error.prototype),O})();class y{constructor(P){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,P&&(this._ctorUnsubscribe=!0,this._unsubscribe=P)}unsubscribe(){let P;if(this.closed)return;let{_parentOrParents:_,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:a}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,_ instanceof y)_.remove(this);else if(null!==_)for(let c=0;c<_.length;++c)_[c].remove(this);if((0,d.T)(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(c){P=c instanceof S?f(c.errors):[c]}}if((0,n.c)(a)){let c=-1,m=a.length;for(;++c<m;){const M=a[c];if((0,l.G)(M))try{M.unsubscribe()}catch(D){P=P||[],D instanceof S?P=P.concat(f(D.errors)):P.push(D)}}}if(P)throw new S(P)}add(P){let _=P;if(!P)return y.EMPTY;switch(typeof P){case"function":_=new y(P);case"object":if(_===this||_.closed||"function"!=typeof _.unsubscribe)return _;if(this.closed)return _.unsubscribe(),_;if(!(_ instanceof y)){const a=_;_=new y,_._subscriptions=[a]}break;default:throw new Error("unrecognized teardown "+P+" added to Subscription.")}let{_parentOrParents:i}=_;if(null===i)_._parentOrParents=this;else if(i instanceof y){if(i===this)return _;_._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return _;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[_]:r.push(_),_}remove(P){const _=this._subscriptions;if(_){const i=_.indexOf(P);-1!==i&&_.splice(i,1)}}}var O;function f(O){return O.reduce((P,_)=>P.concat(_ instanceof S?_.errors:_),[])}y.EMPTY=((O=new y).closed=!0,O)},71337:(Bt,z,s)=>{"use strict";s.d(z,{$:()=>l});let n=!1;const l={Promise:void 0,set useDeprecatedSynchronousErrorHandling(d){if(d){const v=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+v.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=d},get useDeprecatedSynchronousErrorHandling(){return n}}},7583:(Bt,z,s)=>{"use strict";s.d(z,{gn:()=>y,tS:()=>O,zA:()=>v});var n=s(27721),l=s(17053),d=s(37233);class v extends n.v{constructor(_){super(),this.parent=_}_next(_){this.parent.notifyNext(_)}_error(_){this.parent.notifyError(_),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class y extends n.v{notifyNext(_){this.destination.next(_)}notifyError(_){this.destination.error(_)}notifyComplete(){this.destination.complete()}}function O(P,_){if(!_.closed)return P instanceof l.c?P.subscribe(_):(0,d.i)(P)(_)}},96090:(Bt,z,s)=>{"use strict";s.d(z,{G:()=>y,f:()=>f});var n=s(80583),l=s(17053),v=(s(27721),s(10399)),S=s(60837);class y extends l.c{constructor(r,a){super(),this.source=r,this.subjectFactory=a,this._refCount=0,this._isComplete=!1}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){const r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let r=this._connection;return r||(this._isComplete=!1,r=this._connection=new v.y,r.add(this.source.subscribe(new O(this.getSubject(),this))),r.closed&&(this._connection=null,r=v.y.EMPTY)),r}refCount(){return(0,S.B)()(this)}}const f=(()=>{const i=y.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:i._subscribe},_isComplete:{value:i._isComplete,writable:!0},getSubject:{value:i.getSubject},connect:{value:i.connect},refCount:{value:i.refCount}}})();class O extends n.PJ{constructor(r,a){super(r),this.connectable=a}_error(r){this._unsubscribe(),super._error(r)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const r=this.connectable;if(r){this.connectable=null;const a=r._connection;r._refCount=0,r._subject=null,r._connection=null,a&&a.unsubscribe()}}}},31315:(Bt,z,s)=>{"use strict";s.d(z,{ZS:()=>O,zV:()=>f});var n=s(44897),l=s(34277),d=s(88134),v=s(1447),S=s(1724);const y={};function f(..._){let i,r;return(0,n.m)(_[_.length-1])&&(r=_.pop()),"function"==typeof _[_.length-1]&&(i=_.pop()),1===_.length&&(0,l.c)(_[0])&&(_=_[0]),(0,S.c)(_,r).lift(new O(i))}class O{constructor(i){this.resultSelector=i}call(i,r){return r.subscribe(new P(i,this.resultSelector))}}class P extends d.E{constructor(i,r){super(i),this.resultSelector=r,this.active=0,this.values=[],this.observables=[]}_next(i){this.values.push(y),this.observables.push(i)}_complete(){const i=this.observables,r=i.length;if(0===r)this.destination.complete();else{this.active=r,this.toRespond=r;for(let a=0;a<r;a++)this.add((0,v.F)(this,i[a],void 0,a))}}notifyComplete(i){0==(this.active-=1)&&this.destination.complete()}notifyNext(i,r,a){const c=this.values,M=this.toRespond?c[a]===y?--this.toRespond:this.toRespond:0;c[a]=r,0===M&&(this.resultSelector?this._tryResultSelector(c):this.destination.next(c.slice()))}_tryResultSelector(i){let r;try{r=this.resultSelector.apply(this,i)}catch(a){return void this.destination.error(a)}this.destination.next(r)}}},69917:(Bt,z,s)=>{"use strict";s.d(z,{x:()=>d});var n=s(43848),l=s(45306);function d(...v){return(0,l.K)()((0,n.of)(...v))}},63997:(Bt,z,s)=>{"use strict";s.d(z,{v:()=>v});var n=s(17053),l=s(19392),d=s(12532);function v(S){return new n.c(y=>{let f;try{f=S()}catch(P){return void y.error(P)}return(f?(0,l.H)(f):(0,d.I)()).subscribe(y)})}},12532:(Bt,z,s)=>{"use strict";s.d(z,{I:()=>d,w:()=>l});var n=s(17053);const l=new n.c(S=>S.complete());function d(S){return S?function v(S){return new n.c(y=>S.schedule(()=>y.complete()))}(S):l}},93181:(Bt,z,s)=>{"use strict";s.d(z,{p:()=>y});var n=s(17053),l=s(34277),d=s(83915),v=s(96305),S=s(19392);function y(...O){if(1===O.length){const P=O[0];if((0,l.c)(P))return f(P,null);if((0,v.G)(P)&&Object.getPrototypeOf(P)===Object.prototype){const _=Object.keys(P);return f(_.map(i=>P[i]),_)}}if("function"==typeof O[O.length-1]){const P=O.pop();return f(O=1===O.length&&(0,l.c)(O[0])?O[0]:O,null).pipe((0,d.T)(_=>P(..._)))}return f(O,null)}function f(O,P){return new n.c(_=>{const i=O.length;if(0===i)return void _.complete();const r=new Array(i);let a=0,c=0;for(let m=0;m<i;m++){const M=(0,S.H)(O[m]);let D=!1;_.add(M.subscribe({next:I=>{D||(D=!0,c++),r[m]=I},error:I=>_.error(I),complete:()=>{a++,(a===i||!D)&&(c===i&&_.next(P?P.reduce((I,U,V)=>(I[U]=r[V],I),{}):r),_.complete())}}))}})}},19392:(Bt,z,s)=>{"use strict";s.d(z,{H:()=>m});var n=s(17053),l=s(37233),d=s(10399),v=s(15587),f=s(57797),O=s(63320),i=s(48089),r=s(19730);function m(M,D){return D?function c(M,D){if(null!=M){if(function _(M){return M&&"function"==typeof M[v.s]}(M))return function S(M,D){return new n.c(I=>{const U=new d.y;return U.add(D.schedule(()=>{const V=M[v.s]();U.add(V.subscribe({next(T){U.add(D.schedule(()=>I.next(T)))},error(T){U.add(D.schedule(()=>I.error(T)))},complete(){U.add(D.schedule(()=>I.complete()))}}))})),U})}(M,D);if((0,i.y)(M))return function y(M,D){return new n.c(I=>{const U=new d.y;return U.add(D.schedule(()=>M.then(V=>{U.add(D.schedule(()=>{I.next(V),U.add(D.schedule(()=>I.complete()))}))},V=>{U.add(D.schedule(()=>I.error(V)))}))),U})}(M,D);if((0,r.X)(M))return(0,f.V)(M,D);if(function a(M){return M&&"function"==typeof M[O.lJ]}(M)||"string"==typeof M)return function P(M,D){if(!M)throw new Error("Iterable cannot be null");return new n.c(I=>{const U=new d.y;let V;return U.add(()=>{V&&"function"==typeof V.return&&V.return()}),U.add(D.schedule(()=>{V=M[O.lJ](),U.add(D.schedule(function(){if(I.closed)return;let T,N;try{const L=V.next();T=L.value,N=L.done}catch(L){return void I.error(L)}N?I.complete():(I.next(T),this.schedule())}))})),U})}(M,D)}throw new TypeError((null!==M&&typeof M||M)+" is not observable")}(M,D):M instanceof n.c?M:new n.c((0,l.i)(M))}},1724:(Bt,z,s)=>{"use strict";s.d(z,{c:()=>v});var n=s(17053),l=s(46936),d=s(57797);function v(S,y){return y?(0,d.V)(S,y):new n.c((0,l.v)(S))}},36877:(Bt,z,s)=>{"use strict";s.d(z,{R:()=>y});var n=s(17053),l=s(34277),d=s(50710),v=s(83915);function y(i,r,a,c){return(0,d.T)(a)&&(c=a,a=void 0),c?y(i,r,a).pipe((0,v.T)(m=>(0,l.c)(m)?c(...m):c(m))):new n.c(m=>{f(i,r,function M(D){m.next(arguments.length>1?Array.prototype.slice.call(arguments):D)},m,a)})}function f(i,r,a,c,m){let M;if(function _(i){return i&&"function"==typeof i.addEventListener&&"function"==typeof i.removeEventListener}(i)){const D=i;i.addEventListener(r,a,m),M=()=>D.removeEventListener(r,a,m)}else if(function P(i){return i&&"function"==typeof i.on&&"function"==typeof i.off}(i)){const D=i;i.on(r,a),M=()=>D.off(r,a)}else if(function O(i){return i&&"function"==typeof i.addListener&&"function"==typeof i.removeListener}(i)){const D=i;i.addListener(r,a),M=()=>D.removeListener(r,a)}else{if(!i||!i.length)throw new TypeError("Invalid event target");for(let D=0,I=i.length;D<I;D++)f(i[D],r,a,c,m)}c.add(M)}},56237:(Bt,z,s)=>{"use strict";s.d(z,{T:()=>d});var n=s(63997),l=s(12532);function d(v,S=l.w,y=l.w){return(0,n.v)(()=>v()?S:y)}},892:(Bt,z,s)=>{"use strict";s.d(z,{Y:()=>v});var n=s(17053),l=s(90093),d=s(37803);function v(y=0,f=l.b){return(!(0,d.k)(y)||y<0)&&(y=0),(!f||"function"!=typeof f.schedule)&&(f=l.b),new n.c(O=>(O.add(f.schedule(S,y,{subscriber:O,counter:0,period:y})),O))}function S(y){const{subscriber:f,counter:O,period:P}=y;f.next(O),this.schedule({subscriber:f,counter:O+1,period:P},P)}},16229:(Bt,z,s)=>{"use strict";s.d(z,{h:()=>S});var n=s(17053),l=s(44897),d=s(40466),v=s(1724);function S(...y){let f=Number.POSITIVE_INFINITY,O=null,P=y[y.length-1];return(0,l.m)(P)?(O=y.pop(),y.length>1&&"number"==typeof y[y.length-1]&&(f=y.pop())):"number"==typeof P&&(f=y.pop()),null===O&&1===y.length&&y[0]instanceof n.c?y[0]:(0,d.U)(f)((0,v.c)(y,O))}},27731:(Bt,z,s)=>{"use strict";s.d(z,{t:()=>d});var n=s(17053),l=s(36466);const d=new n.c(l.l)},43848:(Bt,z,s)=>{"use strict";s.d(z,{of:()=>v});var n=s(44897),l=s(1724),d=s(57797);function v(...S){let y=S[S.length-1];return(0,n.m)(y)?(S.pop(),(0,d.V)(S,y)):(0,l.c)(S)}},15652:(Bt,z,s)=>{"use strict";s.d(z,{O4:()=>S});var n=s(34277),l=s(1724),d=s(88134),v=s(1447);function S(...O){if(1===O.length){if(!(0,n.c)(O[0]))return O[0];O=O[0]}return(0,l.c)(O,void 0).lift(new y)}class y{call(P,_){return _.subscribe(new f(P))}}class f extends d.E{constructor(P){super(P),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(P){this.observables.push(P)}_complete(){const P=this.observables,_=P.length;if(0===_)this.destination.complete();else{for(let i=0;i<_&&!this.hasFirst;i++){const a=(0,v.F)(this,P[i],void 0,i);this.subscriptions&&this.subscriptions.push(a),this.add(a)}this.observables=null}}notifyNext(P,_,i){if(!this.hasFirst){this.hasFirst=!0;for(let r=0;r<this.subscriptions.length;r++)if(r!==i){let a=this.subscriptions[r];a.unsubscribe(),this.remove(a)}this.subscriptions=null}this.destination.next(_)}}},59859:(Bt,z,s)=>{"use strict";s.d(z,{$:()=>l});var n=s(17053);function l(v,S){return new n.c(S?y=>S.schedule(d,0,{error:v,subscriber:y}):y=>y.error(v))}function d({error:v,subscriber:S}){S.error(v)}},3496:(Bt,z,s)=>{"use strict";s.d(z,{O:()=>S});var n=s(17053),l=s(90093),d=s(37803),v=s(44897);function S(f=0,O,P){let _=-1;return(0,d.k)(O)?_=Number(O)<1?1:Number(O):(0,v.m)(O)&&(P=O),(0,v.m)(P)||(P=l.b),new n.c(i=>{const r=(0,d.k)(f)?f:+f-P.now();return P.schedule(y,r,{index:0,period:_,subscriber:i})})}function y(f){const{index:O,period:P,subscriber:_}=f;if(_.next(O),!_.closed){if(-1===P)return _.complete();f.index=O+1,this.schedule(f,P)}}},35146:(Bt,z,s)=>{"use strict";s.d(z,{ee:()=>f,yU:()=>y});var n=s(1724),l=s(34277),d=s(27721),v=s(63320),S=s(7583);function y(...r){const a=r[r.length-1];return"function"==typeof a&&r.pop(),(0,n.c)(r,void 0).lift(new f(a))}class f{constructor(a){this.resultSelector=a}call(a,c){return c.subscribe(new O(a,this.resultSelector))}}class O extends d.v{constructor(a,c,m=Object.create(null)){super(a),this.resultSelector=c,this.iterators=[],this.active=0,this.resultSelector="function"==typeof c?c:void 0}_next(a){const c=this.iterators;(0,l.c)(a)?c.push(new _(a)):c.push("function"==typeof a[v.lJ]?new P(a[v.lJ]()):new i(this.destination,this,a))}_complete(){const a=this.iterators,c=a.length;if(this.unsubscribe(),0!==c){this.active=c;for(let m=0;m<c;m++){let M=a[m];M.stillUnsubscribed?this.destination.add(M.subscribe()):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const a=this.iterators,c=a.length,m=this.destination;for(let I=0;I<c;I++){let U=a[I];if("function"==typeof U.hasValue&&!U.hasValue())return}let M=!1;const D=[];for(let I=0;I<c;I++){let U=a[I],V=U.next();if(U.hasCompleted()&&(M=!0),V.done)return void m.complete();D.push(V.value)}this.resultSelector?this._tryresultSelector(D):m.next(D),M&&m.complete()}_tryresultSelector(a){let c;try{c=this.resultSelector.apply(this,a)}catch(m){return void this.destination.error(m)}this.destination.next(c)}}class P{constructor(a){this.iterator=a,this.nextResult=a.next()}hasValue(){return!0}next(){const a=this.nextResult;return this.nextResult=this.iterator.next(),a}hasCompleted(){const a=this.nextResult;return!(!a||!a.done)}}class _{constructor(a){this.array=a,this.index=0,this.length=0,this.length=a.length}[v.lJ](){return this}next(a){const c=this.index++;return c<this.length?{value:this.array[c],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class i extends S.gn{constructor(a,c,m){super(a),this.parent=c,this.observable=m,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[v.lJ](){return this}next(){const a=this.buffer;return 0===a.length&&this.isComplete?{value:null,done:!0}:{value:a.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(a){this.buffer.push(a),this.parent.checkIterators()}subscribe(){return(0,S.tS)(this.observable,new S.zA(this))}}},72438:(Bt,z,s)=>{"use strict";s.d(z,{s:()=>l});var n=s(7583);function l(S){return function(f){return f.lift(new d(S))}}class d{constructor(y){this.durationSelector=y}call(y,f){return f.subscribe(new v(y,this.durationSelector))}}class v extends n.gn{constructor(y,f){super(y),this.durationSelector=f,this.hasValue=!1}_next(y){if(this.value=y,this.hasValue=!0,!this.throttled){let f;try{const{durationSelector:P}=this;f=P(y)}catch(P){return this.destination.error(P)}const O=(0,n.tS)(f,new n.zA(this));!O||O.closed?this.clearThrottle():this.add(this.throttled=O)}}clearThrottle(){const{value:y,hasValue:f,throttled:O}=this;O&&(this.remove(O),this.throttled=void 0,O.unsubscribe()),f&&(this.value=void 0,this.hasValue=!1,this.destination.next(y))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}},76259:(Bt,z,s)=>{"use strict";s.d(z,{Z:()=>v});var n=s(90093),l=s(72438),d=s(3496);function v(S,y=n.b){return(0,l.s)(()=>(0,d.O)(S,y))}},98651:(Bt,z,s)=>{"use strict";s.d(z,{r:()=>l});var n=s(7583);function l(S){return function(f){return f.lift(new d(S))}}class d{constructor(y){this.closingNotifier=y}call(y,f){return f.subscribe(new v(y,this.closingNotifier))}}class v extends n.gn{constructor(y,f){super(y),this.buffer=[],this.add((0,n.tS)(f,new n.zA(this)))}_next(y){this.buffer.push(y)}notifyNext(){const y=this.buffer;this.buffer=[],this.destination.next(y)}}},48216:(Bt,z,s)=>{"use strict";s.d(z,{S:()=>l});var n=s(27721);function l(y,f=null){return function(P){return P.lift(new d(y,f))}}class d{constructor(f,O){this.bufferSize=f,this.startBufferEvery=O,this.subscriberClass=O&&f!==O?S:v}call(f,O){return O.subscribe(new this.subscriberClass(f,this.bufferSize,this.startBufferEvery))}}class v extends n.v{constructor(f,O){super(f),this.bufferSize=O,this.buffer=[]}_next(f){const O=this.buffer;O.push(f),O.length==this.bufferSize&&(this.destination.next(O),this.buffer=[])}_complete(){const f=this.buffer;f.length>0&&this.destination.next(f),super._complete()}}class S extends n.v{constructor(f,O,P){super(f),this.bufferSize=O,this.startBufferEvery=P,this.buffers=[],this.count=0}_next(f){const{bufferSize:O,startBufferEvery:P,buffers:_,count:i}=this;this.count++,i%P==0&&_.push([]);for(let r=_.length;r--;){const a=_[r];a.push(f),a.length===O&&(_.splice(r,1),this.destination.next(a))}}_complete(){const{buffers:f,destination:O}=this;for(;f.length>0;){let P=f.shift();P.length>0&&O.next(P)}super._complete()}}},14714:(Bt,z,s)=>{"use strict";s.d(z,{W:()=>l});var n=s(7583);function l(S){return function(f){const O=new d(S),P=f.lift(O);return O.caught=P}}class d{constructor(y){this.selector=y}call(y,f){return f.subscribe(new v(y,this.selector,this.caught))}}class v extends n.gn{constructor(y,f,O){super(y),this.selector=f,this.caught=O}error(y){if(!this.isStopped){let f;try{f=this.selector(y,this.caught)}catch(_){return void super.error(_)}this._unsubscribeAndRecycle();const O=new n.zA(this);this.add(O);const P=(0,n.tS)(f,O);P!==O&&this.add(P)}}}},45306:(Bt,z,s)=>{"use strict";s.d(z,{K:()=>l});var n=s(40466);function l(){return(0,n.U)(1)}},79539:(Bt,z,s)=>{"use strict";s.d(z,{H:()=>l});var n=s(75707);function l(d,v){return(0,n.ZZ)(d,v,1)}},62931:(Bt,z,s)=>{"use strict";s.d(z,{B:()=>d});var n=s(27721),l=s(90093);function d(f,O=l.b){return P=>P.lift(new v(f,O))}class v{constructor(O,P){this.dueTime=O,this.scheduler=P}call(O,P){return P.subscribe(new S(O,this.dueTime,this.scheduler))}}class S extends n.v{constructor(O,P,_){super(O),this.dueTime=P,this.scheduler=_,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(O){this.clearDebounce(),this.lastValue=O,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(y,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:O}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(O)}}clearDebounce(){const O=this.debouncedSubscription;null!==O&&(this.remove(O),O.unsubscribe(),this.debouncedSubscription=null)}}function y(f){f.debouncedNext()}},67110:(Bt,z,s)=>{"use strict";s.d(z,{U:()=>l});var n=s(27721);function l(S=null){return y=>y.lift(new d(S))}class d{constructor(y){this.defaultValue=y}call(y,f){return f.subscribe(new v(y,this.defaultValue))}}class v extends n.v{constructor(y,f){super(y),this.defaultValue=f,this.isEmpty=!0}_next(y){this.isEmpty=!1,this.destination.next(y)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},65726:(Bt,z,s)=>{"use strict";s.d(z,{c:()=>S});var n=s(90093),l=s(29734),d=s(27721),v=s(75252);function S(P,_=n.b){const r=(0,l.$)(P)?+P-_.now():Math.abs(P);return a=>a.lift(new y(r,_))}class y{constructor(_,i){this.delay=_,this.scheduler=i}call(_,i){return i.subscribe(new f(_,this.delay,this.scheduler))}}class f extends d.v{constructor(_,i,r){super(_),this.delay=i,this.scheduler=r,this.queue=[],this.active=!1,this.errored=!1}static dispatch(_){const i=_.source,r=i.queue,a=_.scheduler,c=_.destination;for(;r.length>0&&r[0].time-a.now()<=0;)r.shift().notification.observe(c);if(r.length>0){const m=Math.max(0,r[0].time-a.now());this.schedule(_,m)}else this.unsubscribe(),i.active=!1}_schedule(_){this.active=!0,this.destination.add(_.schedule(f.dispatch,this.delay,{source:this,destination:this.destination,scheduler:_}))}scheduleNotification(_){if(!0===this.errored)return;const i=this.scheduler,r=new O(i.now()+this.delay,_);this.queue.push(r),!1===this.active&&this._schedule(i)}_next(_){this.scheduleNotification(v.E.createNext(_))}_error(_){this.errored=!0,this.queue=[],this.destination.error(_),this.unsubscribe()}_complete(){this.scheduleNotification(v.E.createComplete()),this.unsubscribe()}}class O{constructor(_,i){this.time=_,this.notification=i}}},41346:(Bt,z,s)=>{"use strict";s.d(z,{o:()=>S});var n=s(27721),l=s(17053),d=s(88134),v=s(1447);function S(_,i){return i?r=>new O(r,i).lift(new y(_)):r=>r.lift(new y(_))}class y{constructor(i){this.delayDurationSelector=i}call(i,r){return r.subscribe(new f(i,this.delayDurationSelector))}}class f extends d.E{constructor(i,r){super(i),this.delayDurationSelector=r,this.completed=!1,this.delayNotifierSubscriptions=[],this.index=0}notifyNext(i,r,a,c,m){this.destination.next(i),this.removeSubscription(m),this.tryComplete()}notifyError(i,r){this._error(i)}notifyComplete(i){const r=this.removeSubscription(i);r&&this.destination.next(r),this.tryComplete()}_next(i){const r=this.index++;try{const a=this.delayDurationSelector(i,r);a&&this.tryDelay(a,i)}catch(a){this.destination.error(a)}}_complete(){this.completed=!0,this.tryComplete(),this.unsubscribe()}removeSubscription(i){i.unsubscribe();const r=this.delayNotifierSubscriptions.indexOf(i);return-1!==r&&this.delayNotifierSubscriptions.splice(r,1),i.outerValue}tryDelay(i,r){const a=(0,v.F)(this,i,r);a&&!a.closed&&(this.destination.add(a),this.delayNotifierSubscriptions.push(a))}tryComplete(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}class O extends l.c{constructor(i,r){super(),this.source=i,this.subscriptionDelay=r}_subscribe(i){this.subscriptionDelay.subscribe(new P(i,this.source))}}class P extends n.v{constructor(i,r){super(),this.parent=i,this.source=r,this.sourceSubscribed=!1}_next(i){this.subscribeToSource()}_error(i){this.unsubscribe(),this.parent.error(i)}_complete(){this.unsubscribe(),this.subscribeToSource()}subscribeToSource(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}},43153:(Bt,z,s)=>{"use strict";s.d(z,{d:()=>l});var n=s(7583);function l(S,y){return f=>f.lift(new d(S,y))}class d{constructor(y,f){this.keySelector=y,this.flushes=f}call(y,f){return f.subscribe(new v(y,this.keySelector,this.flushes))}}class v extends n.gn{constructor(y,f,O){super(y),this.keySelector=f,this.values=new Set,O&&this.add((0,n.tS)(O,new n.zA(this)))}notifyNext(){this.values.clear()}notifyError(y){this._error(y)}_next(y){this.keySelector?this._useKeySelector(y):this._finalizeNext(y,y)}_useKeySelector(y){let f;const{destination:O}=this;try{f=this.keySelector(y)}catch(P){return void O.error(P)}this._finalizeNext(f,y)}_finalizeNext(y,f){const{values:O}=this;O.has(y)||(O.add(y),this.destination.next(f))}}},53461:(Bt,z,s)=>{"use strict";s.d(z,{F:()=>l});var n=s(27721);function l(S,y){return f=>f.lift(new d(S,y))}class d{constructor(y,f){this.compare=y,this.keySelector=f}call(y,f){return f.subscribe(new v(y,this.compare,this.keySelector))}}class v extends n.v{constructor(y,f,O){super(y),this.keySelector=O,this.hasKey=!1,"function"==typeof f&&(this.compare=f)}compare(y,f){return y===f}_next(y){let f;try{const{keySelector:P}=this;f=P?P(y):y}catch(P){return this.destination.error(P)}let O=!1;if(this.hasKey)try{const{compare:P}=this;O=P(this.key,f)}catch(P){return this.destination.error(P)}else this.hasKey=!0;O||(this.key=f,this.destination.next(y))}}},80412:(Bt,z,s)=>{"use strict";s.d(z,{q:()=>d});var n=s(69917),l=s(43848);function d(...v){return S=>(0,n.x)(S,(0,l.of)(...v))}},10749:(Bt,z,s)=>{"use strict";s.d(z,{p:()=>v});var n=s(83915),l=s(19392),d=s(7583);function v(f,O){return O?P=>P.pipe(v((_,i)=>(0,l.H)(f(_,i)).pipe((0,n.T)((r,a)=>O(_,r,i,a))))):P=>P.lift(new S(f))}class S{constructor(O){this.project=O}call(O,P){return P.subscribe(new y(O,this.project))}}class y extends d.gn{constructor(O,P){super(O),this.project=P,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(O){this.hasSubscription||this.tryNext(O)}tryNext(O){let P;const _=this.index++;try{P=this.project(O,_)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(P)}_innerSub(O){const P=new d.zA(this),_=this.destination;_.add(P);const i=(0,d.tS)(O,P);i!==P&&_.add(i)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(O){this.destination.next(O)}notifyError(O){this.destination.error(O)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}},24737:(Bt,z,s)=>{"use strict";s.d(z,{fT:()=>l});var n=s(7583);function l(S,y=Number.POSITIVE_INFINITY,f){return y=(y||0)<1?Number.POSITIVE_INFINITY:y,O=>O.lift(new d(S,y,f))}class d{constructor(y,f,O){this.project=y,this.concurrent=f,this.scheduler=O}call(y,f){return f.subscribe(new v(y,this.project,this.concurrent,this.scheduler))}}class v extends n.gn{constructor(y,f,O,P){super(y),this.project=f,this.concurrent=O,this.scheduler=P,this.index=0,this.active=0,this.hasCompleted=!1,O<Number.POSITIVE_INFINITY&&(this.buffer=[])}static dispatch(y){const{subscriber:f,result:O,value:P,index:_}=y;f.subscribeToProjection(O,P,_)}_next(y){const f=this.destination;if(f.closed)return void this._complete();const O=this.index++;if(this.active<this.concurrent){f.next(y);try{const{project:P}=this,_=P(y,O);this.scheduler?this.destination.add(this.scheduler.schedule(v.dispatch,0,{subscriber:this,result:_,value:y,index:O})):this.subscribeToProjection(_,y,O)}catch(P){f.error(P)}}else this.buffer.push(y)}subscribeToProjection(y,f,O){this.active++,this.destination.add((0,n.tS)(y,new n.zA(this)))}_complete(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}notifyNext(y){this._next(y)}notifyComplete(){const y=this.buffer;this.active--,y&&y.length>0&&this._next(y.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}},8619:(Bt,z,s)=>{"use strict";s.d(z,{p:()=>l});var n=s(27721);function l(S,y){return function(O){return O.lift(new d(S,y))}}class d{constructor(y,f){this.predicate=y,this.thisArg=f}call(y,f){return f.subscribe(new v(y,this.predicate,this.thisArg))}}class v extends n.v{constructor(y,f,O){super(y),this.predicate=f,this.thisArg=O,this.count=0}_next(y){let f;try{f=this.predicate.call(this.thisArg,y,this.count++)}catch(O){return void this.destination.error(O)}f&&this.destination.next(y)}}},43615:(Bt,z,s)=>{"use strict";s.d(z,{j:()=>d});var n=s(27721),l=s(10399);function d(y){return f=>f.lift(new v(y))}class v{constructor(f){this.callback=f}call(f,O){return O.subscribe(new S(f,this.callback))}}class S extends n.v{constructor(f,O){super(f),this.add(new l.y(O))}}},30518:(Bt,z,s)=>{"use strict";s.d(z,{FF:()=>d,I6:()=>l});var n=s(27721);function l(S,y){if("function"!=typeof S)throw new TypeError("predicate is not a function");return f=>f.lift(new d(S,f,!1,y))}class d{constructor(y,f,O,P){this.predicate=y,this.source=f,this.yieldIndex=O,this.thisArg=P}call(y,f){return f.subscribe(new v(y,this.predicate,this.source,this.yieldIndex,this.thisArg))}}class v extends n.v{constructor(y,f,O,P,_){super(y),this.predicate=f,this.source=O,this.yieldIndex=P,this.thisArg=_,this.index=0}notifyComplete(y){const f=this.destination;f.next(y),f.complete(),this.unsubscribe()}_next(y){const{predicate:f,thisArg:O}=this,P=this.index++;try{f.call(O||this,y,P,this.source)&&this.notifyComplete(this.yieldIndex?P:y)}catch(_){this.destination.error(_)}}_complete(){this.notifyComplete(this.yieldIndex?-1:void 0)}}},99047:(Bt,z,s)=>{"use strict";s.d(z,{$:()=>f});var n=s(64971),l=s(8619),d=s(65706),v=s(67110),S=s(56681),y=s(92932);function f(O,P){const _=arguments.length>=2;return i=>i.pipe(O?(0,l.p)((r,a)=>O(r,a,i)):y.D,(0,d.s)(1),_?(0,v.U)(P):(0,S.v)(()=>new n.G))}},25577:(Bt,z,s)=>{"use strict";s.d(z,{H:()=>f});var n=s(64971),l=s(8619),d=s(93702),v=s(56681),S=s(67110),y=s(92932);function f(O,P){const _=arguments.length>=2;return i=>i.pipe(O?(0,l.p)((r,a)=>O(r,a,i)):y.D,(0,d.o)(1),_?(0,S.U)(P):(0,v.v)(()=>new n.G))}},83915:(Bt,z,s)=>{"use strict";s.d(z,{T:()=>l});var n=s(27721);function l(S,y){return function(O){if("function"!=typeof S)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return O.lift(new d(S,y))}}class d{constructor(y,f){this.project=y,this.thisArg=f}call(y,f){return f.subscribe(new v(y,this.project,this.thisArg))}}class v extends n.v{constructor(y,f,O){super(y),this.project=f,this.count=0,this.thisArg=O||this}_next(y){let f;try{f=this.project.call(this.thisArg,y,this.count++)}catch(O){return void this.destination.error(O)}this.destination.next(f)}}},10174:(Bt,z,s)=>{"use strict";s.d(z,{u:()=>l});var n=s(27721);function l(S){return y=>y.lift(new d(S))}class d{constructor(y){this.value=y}call(y,f){return f.subscribe(new v(y,this.value))}}class v extends n.v{constructor(y,f){super(y),this.value=f}_next(y){this.destination.next(this.value)}}},40466:(Bt,z,s)=>{"use strict";s.d(z,{U:()=>d});var n=s(75707),l=s(92932);function d(v=Number.POSITIVE_INFINITY){return(0,n.ZZ)(l.D,v)}},75707:(Bt,z,s)=>{"use strict";s.d(z,{ZZ:()=>v,qI:()=>f});var n=s(83915),l=s(19392),d=s(7583);function v(O,P,_=Number.POSITIVE_INFINITY){return"function"==typeof P?i=>i.pipe(v((r,a)=>(0,l.H)(O(r,a)).pipe((0,n.T)((c,m)=>P(r,c,a,m))),_)):("number"==typeof P&&(_=P),i=>i.lift(new S(O,_)))}class S{constructor(P,_=Number.POSITIVE_INFINITY){this.project=P,this.concurrent=_}call(P,_){return _.subscribe(new y(P,this.project,this.concurrent))}}class y extends d.gn{constructor(P,_,i=Number.POSITIVE_INFINITY){super(P),this.project=_,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(P){this.active<this.concurrent?this._tryNext(P):this.buffer.push(P)}_tryNext(P){let _;const i=this.index++;try{_=this.project(P,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(_)}_innerSub(P){const _=new d.zA(this),i=this.destination;i.add(_);const r=(0,d.tS)(P,_);r!==_&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(P){this.destination.next(P)}notifyComplete(){const P=this.buffer;this.active--,P.length>0?this._next(P.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}const f=v},43323:(Bt,z,s)=>{"use strict";s.d(z,{f:()=>l});var n=s(96090);function l(v,S){return function(f){let O;if(O="function"==typeof v?v:function(){return v},"function"==typeof S)return f.lift(new d(O,S));const P=Object.create(f,n.f);return P.source=f,P.subjectFactory=O,P}}class d{constructor(S,y){this.subjectFactory=S,this.selector=y}call(S,y){const{selector:f}=this,O=this.subjectFactory(),P=f(O).subscribe(S);return P.add(y.subscribe(O)),P}}},79284:(Bt,z,s)=>{"use strict";s.d(z,{QE:()=>d,YZ:()=>S});var n=s(27721),l=s(75252);function d(f,O=0){return function(_){return _.lift(new v(f,O))}}class v{constructor(O,P=0){this.scheduler=O,this.delay=P}call(O,P){return P.subscribe(new S(O,this.scheduler,this.delay))}}class S extends n.v{constructor(O,P,_=0){super(O),this.scheduler=P,this.delay=_}static dispatch(O){const{notification:P,destination:_}=O;P.observe(_),this.unsubscribe()}scheduleMessage(O){this.destination.add(this.scheduler.schedule(S.dispatch,this.delay,new y(O,this.destination)))}_next(O){this.scheduleMessage(l.E.createNext(O))}_error(O){this.scheduleMessage(l.E.createError(O)),this.unsubscribe()}_complete(){this.scheduleMessage(l.E.createComplete()),this.unsubscribe()}}class y{constructor(O,P){this.notification=O,this.destination=P}}},14749:(Bt,z,s)=>{"use strict";s.d(z,{J:()=>l});var n=s(27721);function l(){return S=>S.lift(new d)}class d{call(y,f){return f.subscribe(new v(y))}}class v extends n.v{constructor(y){super(y),this.hasPrev=!1}_next(y){let f;this.hasPrev?f=[this.prev,y]:this.hasPrev=!0,this.prev=y,f&&this.destination.next(f)}}},90975:(Bt,z,s)=>{"use strict";s.d(z,{T:()=>S});var n=s(18612),l=s(93702),d=s(67110),v=s(97462);function S(y,f){return arguments.length>=2?function(P){return(0,v.F)((0,n.S)(y,f),(0,l.o)(1),(0,d.U)(f))(P)}:function(P){return(0,v.F)((0,n.S)((_,i,r)=>y(_,i,r+1)),(0,l.o)(1))(P)}}},60837:(Bt,z,s)=>{"use strict";s.d(z,{B:()=>l});var n=s(27721);function l(){return function(y){return y.lift(new d(y))}}class d{constructor(y){this.connectable=y}call(y,f){const{connectable:O}=this;O._refCount++;const P=new v(y,O),_=f.subscribe(P);return P.closed||(P.connection=O.connect()),_}}class v extends n.v{constructor(y,f){super(y),this.connectable=f}_unsubscribe(){const{connectable:y}=this;if(!y)return void(this.connection=null);this.connectable=null;const f=y._refCount;if(f<=0)return void(this.connection=null);if(y._refCount=f-1,f>1)return void(this.connection=null);const{connection:O}=this,P=y._connection;this.connection=null,P&&(!O||P===O)&&P.unsubscribe()}}},81406:(Bt,z,s)=>{"use strict";s.d(z,{u:()=>d});var n=s(27721),l=s(12532);function d(y=-1){return f=>0===y?(0,l.I)():f.lift(new v(y<0?-1:y-1,f))}class v{constructor(f,O){this.count=f,this.source=O}call(f,O){return O.subscribe(new S(f,this.count,this.source))}}class S extends n.v{constructor(f,O,P){super(f),this.count=O,this.source=P}complete(){if(!this.isStopped){const{source:f,count:O}=this;if(0===O)return super.complete();O>-1&&(this.count=O-1),f.subscribe(this._unsubscribeAndRecycle())}}}},86447:(Bt,z,s)=>{"use strict";s.d(z,{l:()=>d});var n=s(80583),l=s(7583);function d(y){return f=>f.lift(new v(y,f))}class v{constructor(f,O){this.notifier=f,this.source=O}call(f,O){return O.subscribe(new S(f,this.notifier,this.source))}}class S extends l.gn{constructor(f,O,P){super(f),this.notifier=O,this.source=P}error(f){if(!this.isStopped){let O=this.errors,P=this.retries,_=this.retriesSubscription;if(P)this.errors=void 0,this.retriesSubscription=void 0;else{O=new n.B7;try{const{notifier:i}=this;P=i(O)}catch(i){return super.error(i)}_=(0,l.tS)(P,new l.zA(this))}this._unsubscribeAndRecycle(),this.errors=O,this.retries=P,this.retriesSubscription=_,O.next(f)}}_unsubscribe(){const{errors:f,retriesSubscription:O}=this;f&&(f.unsubscribe(),this.errors=void 0),O&&(O.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}notifyNext(){const{_unsubscribe:f}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=f,this.source.subscribe(this)}}},18612:(Bt,z,s)=>{"use strict";s.d(z,{S:()=>l});var n=s(27721);function l(S,y){let f=!1;return arguments.length>=2&&(f=!0),function(P){return P.lift(new d(S,y,f))}}class d{constructor(y,f,O=!1){this.accumulator=y,this.seed=f,this.hasSeed=O}call(y,f){return f.subscribe(new v(y,this.accumulator,this.seed,this.hasSeed))}}class v extends n.v{constructor(y,f,O,P){super(y),this.accumulator=f,this._seed=O,this.hasSeed=P,this.index=0}get seed(){return this._seed}set seed(y){this.hasSeed=!0,this._seed=y}_next(y){if(this.hasSeed)return this._tryNext(y);this.seed=y,this.destination.next(y)}_tryNext(y){const f=this.index++;let O;try{O=this.accumulator(this.seed,y,f)}catch(P){this.destination.error(P)}this.seed=O,this.destination.next(O)}}},65770:(Bt,z,s)=>{"use strict";s.d(z,{u:()=>S});var n=s(43323),l=s(60837),d=s(80583);function v(){return new d.B7}function S(){return y=>(0,l.B)()((0,n.f)(v)(y))}},55833:(Bt,z,s)=>{"use strict";s.d(z,{t:()=>l});var n=s(85735);function l(v,S,y){let f;return f=v&&"object"==typeof v?v:{bufferSize:v,windowTime:S,refCount:!1,scheduler:y},O=>O.lift(function d({bufferSize:v=Number.POSITIVE_INFINITY,windowTime:S=Number.POSITIVE_INFINITY,refCount:y,scheduler:f}){let O,_,P=0,i=!1,r=!1;return function(c){let m;P++,!O||i?(i=!1,O=new n.m(v,S,f),m=O.subscribe(this),_=c.subscribe({next(M){O.next(M)},error(M){i=!0,O.error(M)},complete(){r=!0,_=void 0,O.complete()}})):m=O.subscribe(this),this.add(()=>{P--,m.unsubscribe(),_&&!r&&y&&0===P&&(_.unsubscribe(),_=void 0,O=void 0)})}}(f))}},36666:(Bt,z,s)=>{"use strict";s.d(z,{i:()=>l});var n=s(27721);function l(S){return y=>y.lift(new d(S))}class d{constructor(y){this.total=y}call(y,f){return f.subscribe(new v(y,this.total))}}class v extends n.v{constructor(y,f){super(y),this.total=f,this.count=0}_next(y){++this.count>this.total&&this.destination.next(y)}}},28653:(Bt,z,s)=>{"use strict";s.d(z,{j:()=>l});var n=s(27721);function l(S){return y=>y.lift(new d(S))}class d{constructor(y){this.predicate=y}call(y,f){return f.subscribe(new v(y,this.predicate))}}class v extends n.v{constructor(y,f){super(y),this.predicate=f,this.skipping=!0,this.index=0}_next(y){const f=this.destination;this.skipping&&this.tryCallPredicate(y),this.skipping||f.next(y)}tryCallPredicate(y){try{const f=this.predicate(y,this.index++);this.skipping=!!f}catch(f){this.destination.error(f)}}}},34593:(Bt,z,s)=>{"use strict";s.d(z,{Z:()=>d});var n=s(69917),l=s(44897);function d(...v){const S=v[v.length-1];return(0,l.m)(S)?(v.pop(),y=>(0,n.x)(v,y,S)):y=>(0,n.x)(v,y)}},72147:(Bt,z,s)=>{"use strict";s.d(z,{n:()=>v});var n=s(83915),l=s(19392),d=s(7583);function v(f,O){return"function"==typeof O?P=>P.pipe(v((_,i)=>(0,l.H)(f(_,i)).pipe((0,n.T)((r,a)=>O(_,r,i,a))))):P=>P.lift(new S(f))}class S{constructor(O){this.project=O}call(O,P){return P.subscribe(new y(O,this.project))}}class y extends d.gn{constructor(O,P){super(O),this.project=P,this.index=0}_next(O){let P;const _=this.index++;try{P=this.project(O,_)}catch(i){return void this.destination.error(i)}this._innerSub(P)}_innerSub(O){const P=this.innerSubscription;P&&P.unsubscribe();const _=new d.zA(this),i=this.destination;i.add(_),this.innerSubscription=(0,d.tS)(O,_),this.innerSubscription!==_&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:O}=this;(!O||O.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(O){this.destination.next(O)}}},65706:(Bt,z,s)=>{"use strict";s.d(z,{s:()=>v});var n=s(27721),l=s(86133),d=s(12532);function v(f){return O=>0===f?(0,d.I)():O.lift(new S(f))}class S{constructor(O){if(this.total=O,this.total<0)throw new l.k}call(O,P){return P.subscribe(new y(O,this.total))}}class y extends n.v{constructor(O,P){super(O),this.total=P,this.count=0}_next(O){const P=this.total,_=++this.count;_<=P&&(this.destination.next(O),_===P&&(this.destination.complete(),this.unsubscribe()))}}},93702:(Bt,z,s)=>{"use strict";s.d(z,{o:()=>v});var n=s(27721),l=s(86133),d=s(12532);function v(f){return function(P){return 0===f?(0,d.I)():P.lift(new S(f))}}class S{constructor(O){if(this.total=O,this.total<0)throw new l.k}call(O,P){return P.subscribe(new y(O,this.total))}}class y extends n.v{constructor(O,P){super(O),this.total=P,this.ring=new Array,this.count=0}_next(O){const P=this.ring,_=this.total,i=this.count++;P.length<_?P.push(O):P[i%_]=O}_complete(){const O=this.destination;let P=this.count;if(P>0){const _=this.count>=this.total?this.total:this.count,i=this.ring;for(let r=0;r<_;r++){const a=P++%_;O.next(i[a])}}O.complete()}}},4208:(Bt,z,s)=>{"use strict";s.d(z,{Q:()=>l});var n=s(7583);function l(S){return y=>y.lift(new d(S))}class d{constructor(y){this.notifier=y}call(y,f){const O=new v(y),P=(0,n.tS)(this.notifier,new n.zA(O));return P&&!O.seenValue?(O.add(P),f.subscribe(O)):O}}class v extends n.gn{constructor(y){super(y),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},48765:(Bt,z,s)=>{"use strict";s.d(z,{v:()=>l});var n=s(27721);function l(S,y=!1){return f=>f.lift(new d(S,y))}class d{constructor(y,f){this.predicate=y,this.inclusive=f}call(y,f){return f.subscribe(new v(y,this.predicate,this.inclusive))}}class v extends n.v{constructor(y,f,O){super(y),this.predicate=f,this.inclusive=O,this.index=0}_next(y){const f=this.destination;let O;try{O=this.predicate(y,this.index++)}catch(P){return void f.error(P)}this.nextOrComplete(y,O)}nextOrComplete(y,f){const O=this.destination;f?O.next(y):(this.inclusive&&O.next(y),O.complete())}}},91384:(Bt,z,s)=>{"use strict";s.d(z,{M:()=>v});var n=s(27721),l=s(36466),d=s(50710);function v(f,O,P){return function(i){return i.lift(new S(f,O,P))}}class S{constructor(O,P,_){this.nextOrObserver=O,this.error=P,this.complete=_}call(O,P){return P.subscribe(new y(O,this.nextOrObserver,this.error,this.complete))}}class y extends n.v{constructor(O,P,_,i){super(O),this._tapNext=l.l,this._tapError=l.l,this._tapComplete=l.l,this._tapError=_||l.l,this._tapComplete=i||l.l,(0,d.T)(P)?(this._context=this,this._tapNext=P):P&&(this._context=P,this._tapNext=P.next||l.l,this._tapError=P.error||l.l,this._tapComplete=P.complete||l.l)}_next(O){try{this._tapNext.call(this._context,O)}catch(P){return void this.destination.error(P)}this.destination.next(O)}_error(O){try{this._tapError.call(this._context,O)}catch(P){return void this.destination.error(P)}this.destination.error(O)}_complete(){try{this._tapComplete.call(this._context)}catch(O){return void this.destination.error(O)}return this.destination.complete()}}},32489:(Bt,z,s)=>{"use strict";s.d(z,{Y:()=>l,n:()=>d});var n=s(7583);const l={leading:!0,trailing:!1};function d(y,f=l){return O=>O.lift(new v(y,!!f.leading,!!f.trailing))}class v{constructor(f,O,P){this.durationSelector=f,this.leading=O,this.trailing=P}call(f,O){return O.subscribe(new S(f,this.durationSelector,this.leading,this.trailing))}}class S extends n.gn{constructor(f,O,P,_){super(f),this.destination=f,this.durationSelector=O,this._leading=P,this._trailing=_,this._hasValue=!1}_next(f){this._hasValue=!0,this._sendValue=f,this._throttled||(this._leading?this.send():this.throttle(f))}send(){const{_hasValue:f,_sendValue:O}=this;f&&(this.destination.next(O),this.throttle(O)),this._hasValue=!1,this._sendValue=void 0}throttle(f){const O=this.tryDurationSelector(f);O&&this.add(this._throttled=(0,n.tS)(O,new n.zA(this)))}tryDurationSelector(f){try{return this.durationSelector(f)}catch(O){return this.destination.error(O),null}}throttlingDone(){const{_throttled:f,_trailing:O}=this;f&&f.unsubscribe(),this._throttled=void 0,O&&this.send()}notifyNext(){this.throttlingDone()}notifyComplete(){this.throttlingDone()}}},73180:(Bt,z,s)=>{"use strict";s.d(z,{c:()=>v});var n=s(27721),l=s(90093),d=s(32489);function v(O,P=l.b,_=d.Y){return i=>i.lift(new S(O,P,_.leading,_.trailing))}class S{constructor(P,_,i,r){this.duration=P,this.scheduler=_,this.leading=i,this.trailing=r}call(P,_){return _.subscribe(new y(P,this.duration,this.scheduler,this.leading,this.trailing))}}class y extends n.v{constructor(P,_,i,r,a){super(P),this.duration=_,this.scheduler=i,this.leading=r,this.trailing=a,this._hasTrailingValue=!1,this._trailingValue=null}_next(P){this.throttled?this.trailing&&(this._trailingValue=P,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(f,this.duration,{subscriber:this})),this.leading?this.destination.next(P):this.trailing&&(this._trailingValue=P,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const P=this.throttled;P&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),P.unsubscribe(),this.remove(P),this.throttled=null)}}function f(O){const{subscriber:P}=O;P.clearThrottle()}},56681:(Bt,z,s)=>{"use strict";s.d(z,{v:()=>d});var n=s(64971),l=s(27721);function d(f=y){return O=>O.lift(new v(f))}class v{constructor(O){this.errorFactory=O}call(O,P){return P.subscribe(new S(O,this.errorFactory))}}class S extends l.v{constructor(O,P){super(O),this.errorFactory=P,this.hasValue=!1}_next(O){this.hasValue=!0,this.destination.next(O)}_complete(){if(this.hasValue)return this.destination.complete();{let O;try{O=this.errorFactory()}catch(P){O=P}this.destination.error(O)}}}function y(){return new n.G}},40198:(Bt,z,s)=>{"use strict";s.d(z,{w:()=>S});var n=s(90093),l=s(99021),d=s(12962),v=s(59859);function S(y,f=n.b){return(0,d.o)(y,(0,v.$)(new l.M),f)}},12962:(Bt,z,s)=>{"use strict";s.d(z,{o:()=>v});var n=s(90093),l=s(29734),d=s(7583);function v(f,O,P=n.b){return _=>{let i=(0,l.$)(f),r=i?+f-P.now():Math.abs(f);return _.lift(new S(r,i,O,P))}}class S{constructor(O,P,_,i){this.waitFor=O,this.absoluteTimeout=P,this.withObservable=_,this.scheduler=i}call(O,P){return P.subscribe(new y(O,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class y extends d.gn{constructor(O,P,_,i,r){super(O),this.absoluteTimeout=P,this.waitFor=_,this.withObservable=i,this.scheduler=r,this.scheduleTimeout()}static dispatchTimeout(O){const{withObservable:P}=O;O._unsubscribeAndRecycle(),O.add((0,d.tS)(P,new d.zA(O)))}scheduleTimeout(){const{action:O}=this;O?this.action=O.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(y.dispatchTimeout,this.waitFor,this))}_next(O){this.absoluteTimeout||this.scheduleTimeout(),super._next(O)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}},25590:(Bt,z,s)=>{"use strict";s.d(z,{E:()=>d});var n=s(88134),l=s(1447);function d(...y){return f=>{let O;return"function"==typeof y[y.length-1]&&(O=y.pop()),f.lift(new v(y,O))}}class v{constructor(f,O){this.observables=f,this.project=O}call(f,O){return O.subscribe(new S(f,this.observables,this.project))}}class S extends n.E{constructor(f,O,P){super(f),this.observables=O,this.project=P,this.toRespond=[];const _=O.length;this.values=new Array(_);for(let i=0;i<_;i++)this.toRespond.push(i);for(let i=0;i<_;i++)this.add((0,l.F)(this,O[i],void 0,i))}notifyNext(f,O,P){this.values[P]=O;const _=this.toRespond;if(_.length>0){const i=_.indexOf(P);-1!==i&&_.splice(i,1)}}notifyComplete(){}_next(f){if(0===this.toRespond.length){const O=[f,...this.values];this.project?this._tryProject(O):this.destination.next(O)}}_tryProject(f){let O;try{O=this.project.apply(this,f)}catch(P){return void this.destination.error(P)}this.destination.next(O)}}},57797:(Bt,z,s)=>{"use strict";s.d(z,{V:()=>d});var n=s(17053),l=s(10399);function d(v,S){return new n.c(y=>{const f=new l.y;let O=0;return f.add(S.schedule(function(){O!==v.length?(y.next(v[O++]),y.closed||f.add(this.schedule())):y.complete()})),f})}},86369:(Bt,z,s)=>{"use strict";s.d(z,{R:()=>d});var n=s(10399);class l extends n.y{constructor(S,y){super()}schedule(S,y=0){return this}}class d extends l{constructor(S,y){super(S,y),this.scheduler=S,this.work=y,this.pending=!1}schedule(S,y=0){if(this.closed)return this;this.state=S;const f=this.id,O=this.scheduler;return null!=f&&(this.id=this.recycleAsyncId(O,f,y)),this.pending=!0,this.delay=y,this.id=this.id||this.requestAsyncId(O,this.id,y),this}requestAsyncId(S,y,f=0){return setInterval(S.flush.bind(S,this),f)}recycleAsyncId(S,y,f=0){if(null!==f&&this.delay===f&&!1===this.pending)return y;clearInterval(y)}execute(S,y){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const f=this._execute(S,y);if(f)return f;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(S,y){let O,f=!1;try{this.work(S)}catch(P){f=!0,O=!!P&&P||new Error(P)}if(f)return this.unsubscribe(),O}_unsubscribe(){const S=this.id,y=this.scheduler,f=y.actions,O=f.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==O&&f.splice(O,1),null!=S&&(this.id=this.recycleAsyncId(y,S,null)),this.delay=null}}},4065:(Bt,z,s)=>{"use strict";s.d(z,{q:()=>l});let n=(()=>{class d{constructor(S,y=d.now){this.SchedulerAction=S,this.now=y}schedule(S,y=0,f){return new this.SchedulerAction(this,S).schedule(f,y)}}return d.now=()=>Date.now(),d})();class l extends n{constructor(v,S=n.now){super(v,()=>l.delegate&&l.delegate!==this?l.delegate.now():S()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(v,S=0,y){return l.delegate&&l.delegate!==this?l.delegate.schedule(v,S,y):super.schedule(v,S,y)}flush(v){const{actions:S}=this;if(this.active)return void S.push(v);let y;this.active=!0;do{if(y=v.execute(v.state,v.delay))break}while(v=S.shift());if(this.active=!1,y){for(;v=S.shift();)v.unsubscribe();throw y}}}},27594:(Bt,z,s)=>{"use strict";s.d(z,{X:()=>S});var n=s(86369),d=s(4065);const S=new class v extends d.q{flush(O){this.active=!0,this.scheduled=void 0;const{actions:P}=this;let _,i=-1,r=P.length;O=O||P.shift();do{if(_=O.execute(O.state,O.delay))break}while(++i<r&&(O=P.shift()));if(this.active=!1,_){for(;++i<r&&(O=P.shift());)O.unsubscribe();throw _}}}(class l extends n.R{constructor(O,P){super(O,P),this.scheduler=O,this.work=P}requestAsyncId(O,P,_=0){return null!==_&&_>0?super.requestAsyncId(O,P,_):(O.actions.push(this),O.scheduled||(O.scheduled=requestAnimationFrame(()=>O.flush(null))))}recycleAsyncId(O,P,_=0){if(null!==_&&_>0||null===_&&this.delay>0)return super.recycleAsyncId(O,P,_);0===O.actions.length&&(cancelAnimationFrame(P),O.scheduled=void 0)}})},62366:(Bt,z,s)=>{"use strict";s.d(z,{I:()=>r,$:()=>i});let n=1;const l=Promise.resolve(),d={};function v(a){return a in d&&(delete d[a],!0)}const S={setImmediate(a){const c=n++;return d[c]=!0,l.then(()=>v(c)&&a()),c},clearImmediate(a){v(a)}};var f=s(86369),P=s(4065);const i=new class _ extends P.q{flush(c){this.active=!0,this.scheduled=void 0;const{actions:m}=this;let M,D=-1,I=m.length;c=c||m.shift();do{if(M=c.execute(c.state,c.delay))break}while(++D<I&&(c=m.shift()));if(this.active=!1,M){for(;++D<I&&(c=m.shift());)c.unsubscribe();throw M}}}(class O extends f.R{constructor(c,m){super(c,m),this.scheduler=c,this.work=m}requestAsyncId(c,m,M=0){return null!==M&&M>0?super.requestAsyncId(c,m,M):(c.actions.push(this),c.scheduled||(c.scheduled=S.setImmediate(c.flush.bind(c,null))))}recycleAsyncId(c,m,M=0){if(null!==M&&M>0||null===M&&this.delay>0)return super.recycleAsyncId(c,m,M);0===c.actions.length&&(S.clearImmediate(m),c.scheduled=void 0)}}),r=i},90093:(Bt,z,s)=>{"use strict";s.d(z,{b:()=>v});var n=s(86369);const v=new(s(4065).q)(n.R)},63320:(Bt,z,s)=>{"use strict";s.d(z,{lJ:()=>l});const l=function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},15587:(Bt,z,s)=>{"use strict";s.d(z,{s:()=>n});const n="function"==typeof Symbol&&Symbol.observable||"@@observable"},73302:(Bt,z,s)=>{"use strict";s.d(z,{D:()=>n});const n="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},86133:(Bt,z,s)=>{"use strict";s.d(z,{k:()=>l});const l=(()=>{function d(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return d.prototype=Object.create(Error.prototype),d})()},64971:(Bt,z,s)=>{"use strict";s.d(z,{G:()=>l});const l=(()=>{function d(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return d.prototype=Object.create(Error.prototype),d})()},38058:(Bt,z,s)=>{"use strict";s.d(z,{P:()=>l});const l=(()=>{function d(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return d.prototype=Object.create(Error.prototype),d})()},99021:(Bt,z,s)=>{"use strict";s.d(z,{M:()=>l});const l=(()=>{function d(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return d.prototype=Object.create(Error.prototype),d})()},81498:(Bt,z,s)=>{"use strict";function n(l){setTimeout(()=>{throw l},0)}s.d(z,{T:()=>n})},92932:(Bt,z,s)=>{"use strict";function n(l){return l}s.d(z,{D:()=>n})},34277:(Bt,z,s)=>{"use strict";s.d(z,{c:()=>n});const n=Array.isArray||(l=>l&&"number"==typeof l.length)},19730:(Bt,z,s)=>{"use strict";s.d(z,{X:()=>n});const n=l=>l&&"number"==typeof l.length&&"function"!=typeof l},29734:(Bt,z,s)=>{"use strict";function n(l){return l instanceof Date&&!isNaN(+l)}s.d(z,{$:()=>n})},50710:(Bt,z,s)=>{"use strict";function n(l){return"function"==typeof l}s.d(z,{T:()=>n})},37803:(Bt,z,s)=>{"use strict";s.d(z,{k:()=>l});var n=s(34277);function l(d){return!(0,n.c)(d)&&d-parseFloat(d)+1>=0}},96305:(Bt,z,s)=>{"use strict";function n(l){return null!==l&&"object"==typeof l}s.d(z,{G:()=>n})},39595:(Bt,z,s)=>{"use strict";s.d(z,{A:()=>l});var n=s(17053);function l(d){return!!d&&(d instanceof n.c||"function"==typeof d.lift&&"function"==typeof d.subscribe)}},48089:(Bt,z,s)=>{"use strict";function n(l){return!!l&&"function"!=typeof l.subscribe&&"function"==typeof l.then}s.d(z,{y:()=>n})},44897:(Bt,z,s)=>{"use strict";function n(l){return l&&"function"==typeof l.schedule}s.d(z,{m:()=>n})},36466:(Bt,z,s)=>{"use strict";function n(){}s.d(z,{l:()=>n})},18513:(Bt,z,s)=>{"use strict";function n(l,d){function v(){return!v.pred.apply(v.thisArg,arguments)}return v.pred=l,v.thisArg=d,v}s.d(z,{A:()=>n})},97462:(Bt,z,s)=>{"use strict";s.d(z,{F:()=>l,m:()=>d});var n=s(92932);function l(...v){return d(v)}function d(v){return 0===v.length?n.D:1===v.length?v[0]:function(y){return v.reduce((f,O)=>O(f),y)}}},37233:(Bt,z,s)=>{"use strict";s.d(z,{i:()=>i});var n=s(46936),l=s(81498),v=s(63320),y=s(15587),O=s(19730),P=s(48089),_=s(96305);const i=r=>{if(r&&"function"==typeof r[y.s])return(r=>a=>{const c=r[y.s]();if("function"!=typeof c.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return c.subscribe(a)})(r);if((0,O.X)(r))return(0,n.v)(r);if((0,P.y)(r))return(r=>a=>(r.then(c=>{a.closed||(a.next(c),a.complete())},c=>a.error(c)).then(null,l.T),a))(r);if(r&&"function"==typeof r[v.lJ])return(r=>a=>{const c=r[v.lJ]();for(;;){let m;try{m=c.next()}catch(M){return a.error(M),a}if(m.done){a.complete();break}if(a.next(m.value),a.closed)break}return"function"==typeof c.return&&a.add(()=>{c.return&&c.return()}),a})(r);{const c=`You provided ${(0,_.G)(r)?"an invalid object":`'${r}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(c)}}},46936:(Bt,z,s)=>{"use strict";s.d(z,{v:()=>n});const n=l=>d=>{for(let v=0,S=l.length;v<S&&!d.closed;v++)d.next(l[v]);d.complete()}},1447:(Bt,z,s)=>{"use strict";s.d(z,{F:()=>S});var n=s(27721);class l extends n.v{constructor(f,O,P){super(),this.parent=f,this.outerValue=O,this.outerIndex=P,this.index=0}_next(f){this.parent.notifyNext(this.outerValue,f,this.outerIndex,this.index++,this)}_error(f){this.parent.notifyError(f,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var d=s(37233),v=s(17053);function S(y,f,O,P,_=new l(y,O,P)){if(!_.closed)return f instanceof v.c?f.subscribe(_):(0,d.i)(f)(_)}},79848:(Bt,z,s)=>{"use strict";s.r(z),s.d(z,{audit:()=>n.s,auditTime:()=>l.Z,buffer:()=>d.r,bufferCount:()=>v.S,bufferTime:()=>O,bufferToggle:()=>I,bufferWhen:()=>N,catchError:()=>g.W,combineAll:()=>B,combineLatest:()=>re,concat:()=>ve,concatAll:()=>ue.K,concatMap:()=>se.H,concatMapTo:()=>Z,count:()=>Se,debounce:()=>Xe,debounceTime:()=>Q.B,defaultIfEmpty:()=>A.U,delay:()=>me.c,delayWhen:()=>ne.o,dematerialize:()=>G,distinct:()=>le.d,distinctUntilChanged:()=>Pe.F,distinctUntilKeyChanged:()=>Fe,elementAt:()=>Ze,endWith:()=>Qe.q,every:()=>Ve,exhaust:()=>at,exhaustMap:()=>xe.p,expand:()=>lt.fT,filter:()=>Le.p,finalize:()=>ft.j,find:()=>ht.I6,findIndex:()=>Xt,first:()=>Ht.$,flatMap:()=>Ii.qI,groupBy:()=>rt,ignoreElements:()=>ke,isEmpty:()=>qe,last:()=>fn.H,map:()=>hn.T,mapTo:()=>On.u,materialize:()=>Ji,max:()=>Pt,merge:()=>gn,mergeAll:()=>ui.U,mergeMap:()=>Ii.ZZ,mergeMapTo:()=>pr,mergeScan:()=>zr,min:()=>ti,multicast:()=>pi.f,observeOn:()=>cn.QE,onErrorResumeNext:()=>An,pairwise:()=>xn.J,partition:()=>Gn,pluck:()=>Ci,publish:()=>bi,publishBehavior:()=>Mr,publishLast:()=>_o,publishReplay:()=>Kn,race:()=>Pi,reduce:()=>bn.T,refCount:()=>Zr.B,repeat:()=>ji.u,repeatWhen:()=>Qi,retry:()=>ho,retryWhen:()=>yo.l,sample:()=>Yr,sampleTime:()=>si,scan:()=>Sn.S,sequenceEqual:()=>Bn,share:()=>Fr.u,shareReplay:()=>br.t,single:()=>rr,skip:()=>Wn.i,skipLast:()=>ci,skipUntil:()=>oo,skipWhile:()=>Xr.j,startWith:()=>Go.Z,subscribeOn:()=>ka,switchAll:()=>fs,switchMap:()=>ys.n,switchMapTo:()=>Oa,take:()=>$e.s,takeLast:()=>Ms.o,takeUntil:()=>Ua.Q,takeWhile:()=>Zs.v,tap:()=>qo.M,throttle:()=>js.n,throttleTime:()=>Ia.c,throwIfEmpty:()=>Et.v,timeInterval:()=>Js,timeout:()=>Ga.w,timeoutWith:()=>cs.o,timestamp:()=>$s,toArray:()=>Ba,window:()=>ds,windowCount:()=>$o,windowTime:()=>Yo,windowToggle:()=>ts,windowWhen:()=>Mn,withLatestFrom:()=>In.E,zip:()=>So,zipAll:()=>Rn});var n=s(72438),l=s(76259),d=s(98651),v=s(48216),S=s(90093),y=s(27721),f=s(44897);function O(Xn){let ae=arguments.length,st=S.b;(0,f.m)(arguments[arguments.length-1])&&(st=arguments[arguments.length-1],ae--);let Ct=null;ae>=2&&(Ct=arguments[1]);let $n=Number.POSITIVE_INFINITY;return ae>=3&&($n=arguments[2]),function(Sr){return Sr.lift(new P(Xn,Ct,$n,st))}}class P{constructor(ae,st,Ct,$n){this.bufferTimeSpan=ae,this.bufferCreationInterval=st,this.maxBufferSize=Ct,this.scheduler=$n}call(ae,st){return st.subscribe(new i(ae,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class _{constructor(){this.buffer=[]}}class i extends y.v{constructor(ae,st,Ct,$n,Gi){super(ae),this.bufferTimeSpan=st,this.bufferCreationInterval=Ct,this.maxBufferSize=$n,this.scheduler=Gi,this.contexts=[];const Sr=this.openContext();if(this.timespanOnly=null==Ct||Ct<0,this.timespanOnly)this.add(Sr.closeAction=Gi.schedule(r,st,{subscriber:this,context:Sr,bufferTimeSpan:st}));else{const ao={bufferTimeSpan:st,bufferCreationInterval:Ct,subscriber:this,scheduler:Gi};this.add(Sr.closeAction=Gi.schedule(c,st,{subscriber:this,context:Sr})),this.add(Gi.schedule(a,Ct,ao))}}_next(ae){const st=this.contexts,Ct=st.length;let $n;for(let Gi=0;Gi<Ct;Gi++){const Sr=st[Gi],Wr=Sr.buffer;Wr.push(ae),Wr.length==this.maxBufferSize&&($n=Sr)}$n&&this.onBufferFull($n)}_error(ae){this.contexts.length=0,super._error(ae)}_complete(){const{contexts:ae,destination:st}=this;for(;ae.length>0;){const Ct=ae.shift();st.next(Ct.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(ae){this.closeContext(ae);const st=ae.closeAction;if(st.unsubscribe(),this.remove(st),!this.closed&&this.timespanOnly){ae=this.openContext();const Ct=this.bufferTimeSpan;this.add(ae.closeAction=this.scheduler.schedule(r,Ct,{subscriber:this,context:ae,bufferTimeSpan:Ct}))}}openContext(){const ae=new _;return this.contexts.push(ae),ae}closeContext(ae){this.destination.next(ae.buffer);const st=this.contexts;(st?st.indexOf(ae):-1)>=0&&st.splice(st.indexOf(ae),1)}}function r(Xn){const ae=Xn.subscriber,st=Xn.context;st&&ae.closeContext(st),ae.closed||(Xn.context=ae.openContext(),Xn.context.closeAction=this.schedule(Xn,Xn.bufferTimeSpan))}function a(Xn){const{bufferCreationInterval:ae,bufferTimeSpan:st,subscriber:Ct,scheduler:$n}=Xn,Gi=Ct.openContext();Ct.closed||(Ct.add(Gi.closeAction=$n.schedule(c,st,{subscriber:Ct,context:Gi})),this.schedule(Xn,ae))}function c(Xn){const{subscriber:ae,context:st}=Xn;ae.closeContext(st)}var m=s(10399),M=s(1447),D=s(88134);function I(Xn,ae){return function(Ct){return Ct.lift(new U(Xn,ae))}}class U{constructor(ae,st){this.openings=ae,this.closingSelector=st}call(ae,st){return st.subscribe(new V(ae,this.openings,this.closingSelector))}}class V extends D.E{constructor(ae,st,Ct){super(ae),this.closingSelector=Ct,this.contexts=[],this.add((0,M.F)(this,st))}_next(ae){const st=this.contexts,Ct=st.length;for(let $n=0;$n<Ct;$n++)st[$n].buffer.push(ae)}_error(ae){const st=this.contexts;for(;st.length>0;){const Ct=st.shift();Ct.subscription.unsubscribe(),Ct.buffer=null,Ct.subscription=null}this.contexts=null,super._error(ae)}_complete(){const ae=this.contexts;for(;ae.length>0;){const st=ae.shift();this.destination.next(st.buffer),st.subscription.unsubscribe(),st.buffer=null,st.subscription=null}this.contexts=null,super._complete()}notifyNext(ae,st){ae?this.closeBuffer(ae):this.openBuffer(st)}notifyComplete(ae){this.closeBuffer(ae.context)}openBuffer(ae){try{const Ct=this.closingSelector.call(this,ae);Ct&&this.trySubscribe(Ct)}catch(st){this._error(st)}}closeBuffer(ae){const st=this.contexts;if(st&&ae){const{buffer:Ct,subscription:$n}=ae;this.destination.next(Ct),st.splice(st.indexOf(ae),1),this.remove($n),$n.unsubscribe()}}trySubscribe(ae){const st=this.contexts,$n=new m.y,Gi={buffer:[],subscription:$n};st.push(Gi);const Sr=(0,M.F)(this,ae,Gi);!Sr||Sr.closed?this.closeBuffer(Gi):(Sr.context=Gi,this.add(Sr),$n.add(Sr))}}var T=s(7583);function N(Xn){return function(ae){return ae.lift(new L(Xn))}}class L{constructor(ae){this.closingSelector=ae}call(ae,st){return st.subscribe(new E(ae,this.closingSelector))}}class E extends T.gn{constructor(ae,st){super(ae),this.closingSelector=st,this.subscribing=!1,this.openBuffer()}_next(ae){this.buffer.push(ae)}_complete(){const ae=this.buffer;ae&&this.destination.next(ae),super._complete()}_unsubscribe(){this.buffer=void 0,this.subscribing=!1}notifyNext(){this.openBuffer()}notifyComplete(){this.subscribing?this.complete():this.openBuffer()}openBuffer(){let Ct,{closingSubscription:ae}=this;ae&&(this.remove(ae),ae.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{const{closingSelector:$n}=this;Ct=$n()}catch($n){return this.error($n)}ae=new m.y,this.closingSubscription=ae,this.add(ae),this.subscribing=!0,ae.add((0,T.tS)(Ct,new T.zA(this))),this.subscribing=!1}}var g=s(14714),R=s(31315);function B(Xn){return ae=>ae.lift(new R.ZS(Xn))}var X=s(34277),H=s(19392);function re(...Xn){let ae=null;return"function"==typeof Xn[Xn.length-1]&&(ae=Xn.pop()),1===Xn.length&&(0,X.c)(Xn[0])&&(Xn=Xn[0].slice()),st=>st.lift.call((0,H.H)([st,...Xn]),new R.ZS(ae))}var ie=s(69917);function ve(...Xn){return ae=>ae.lift.call((0,ie.x)(ae,...Xn))}var ue=s(45306),se=s(79539);function Z(Xn,ae){return(0,se.H)(()=>Xn,ae)}function Se(Xn){return ae=>ae.lift(new Ce(Xn,ae))}class Ce{constructor(ae,st){this.predicate=ae,this.source=st}call(ae,st){return st.subscribe(new Be(ae,this.predicate,this.source))}}class Be extends y.v{constructor(ae,st,Ct){super(ae),this.predicate=st,this.source=Ct,this.count=0,this.index=0}_next(ae){this.predicate?this._tryPredicate(ae):this.count++}_tryPredicate(ae){let st;try{st=this.predicate(ae,this.index++,this.source)}catch(Ct){return void this.destination.error(Ct)}st&&this.count++}_complete(){this.destination.next(this.count),this.destination.complete()}}function Xe(Xn){return ae=>ae.lift(new He(Xn))}class He{constructor(ae){this.durationSelector=ae}call(ae,st){return st.subscribe(new Me(ae,this.durationSelector))}}class Me extends T.gn{constructor(ae,st){super(ae),this.durationSelector=st,this.hasValue=!1}_next(ae){try{const st=this.durationSelector.call(this,ae);st&&this._tryNext(ae,st)}catch(st){this.destination.error(st)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(ae,st){let Ct=this.durationSubscription;this.value=ae,this.hasValue=!0,Ct&&(Ct.unsubscribe(),this.remove(Ct)),Ct=(0,T.tS)(st,new T.zA(this)),Ct&&!Ct.closed&&this.add(this.durationSubscription=Ct)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const ae=this.value,st=this.durationSubscription;st&&(this.durationSubscription=void 0,st.unsubscribe(),this.remove(st)),this.value=void 0,this.hasValue=!1,super._next(ae)}}}var Q=s(62931),A=s(67110),me=s(65726),ne=s(41346);function G(){return function(ae){return ae.lift(new W)}}class W{call(ae,st){return st.subscribe(new $(ae))}}class $ extends y.v{constructor(ae){super(ae)}_next(ae){ae.observe(this.destination)}}var le=s(43153),Pe=s(53461);function Fe(Xn,ae){return(0,Pe.F)((st,Ct)=>ae?ae(st[Xn],Ct[Xn]):st[Xn]===Ct[Xn])}var At=s(86133),Le=s(8619),Et=s(56681),$e=s(65706);function Ze(Xn,ae){if(Xn<0)throw new At.k;const st=arguments.length>=2;return Ct=>Ct.pipe((0,Le.p)(($n,Gi)=>Gi===Xn),(0,$e.s)(1),st?(0,A.U)(ae):(0,Et.v)(()=>new At.k))}var Qe=s(80412);function Ve(Xn,ae){return st=>st.lift(new nt(Xn,ae,st))}class nt{constructor(ae,st,Ct){this.predicate=ae,this.thisArg=st,this.source=Ct}call(ae,st){return st.subscribe(new Ot(ae,this.predicate,this.thisArg,this.source))}}class Ot extends y.v{constructor(ae,st,Ct,$n){super(ae),this.predicate=st,this.thisArg=Ct,this.source=$n,this.index=0,this.thisArg=Ct||this}notifyComplete(ae){this.destination.next(ae),this.destination.complete()}_next(ae){let st=!1;try{st=this.predicate.call(this.thisArg,ae,this.index++,this.source)}catch(Ct){return void this.destination.error(Ct)}st||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function at(){return Xn=>Xn.lift(new It)}class It{call(ae,st){return st.subscribe(new We(ae))}}class We extends T.gn{constructor(ae){super(ae),this.hasCompleted=!1,this.hasSubscription=!1}_next(ae){this.hasSubscription||(this.hasSubscription=!0,this.add((0,T.tS)(ae,new T.zA(this))))}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}var xe=s(10749),lt=s(24737),ft=s(43615),ht=s(30518);function Xt(Xn,ae){return st=>st.lift(new ht.FF(Xn,st,!0,ae))}var Ht=s(99047),Je=s(17053),tt=s(80583);function rt(Xn,ae,st,Ct){return $n=>$n.lift(new et(Xn,ae,st,Ct))}class et{constructor(ae,st,Ct,$n){this.keySelector=ae,this.elementSelector=st,this.durationSelector=Ct,this.subjectSelector=$n}call(ae,st){return st.subscribe(new St(ae,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}class St extends y.v{constructor(ae,st,Ct,$n,Gi){super(ae),this.keySelector=st,this.elementSelector=Ct,this.durationSelector=$n,this.subjectSelector=Gi,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}_next(ae){let st;try{st=this.keySelector(ae)}catch(Ct){return void this.error(Ct)}this._group(ae,st)}_group(ae,st){let Ct=this.groups;Ct||(Ct=this.groups=new Map);let Gi,$n=Ct.get(st);if(this.elementSelector)try{Gi=this.elementSelector(ae)}catch(Sr){this.error(Sr)}else Gi=ae;if(!$n){$n=this.subjectSelector?this.subjectSelector():new tt.B7,Ct.set(st,$n);const Sr=new yt(st,$n,this);if(this.destination.next(Sr),this.durationSelector){let Wr;try{Wr=this.durationSelector(new yt(st,$n))}catch(ao){return void this.error(ao)}this.add(Wr.subscribe(new Gt(st,$n,this)))}}$n.closed||$n.next(Gi)}_error(ae){const st=this.groups;st&&(st.forEach((Ct,$n)=>{Ct.error(ae)}),st.clear()),this.destination.error(ae)}_complete(){const ae=this.groups;ae&&(ae.forEach((st,Ct)=>{st.complete()}),ae.clear()),this.destination.complete()}removeGroup(ae){this.groups.delete(ae)}unsubscribe(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&super.unsubscribe())}}class Gt extends y.v{constructor(ae,st,Ct){super(st),this.key=ae,this.group=st,this.parent=Ct}_next(ae){this.complete()}_unsubscribe(){const{parent:ae,key:st}=this;this.key=this.parent=null,ae&&ae.removeGroup(st)}}class yt extends Je.c{constructor(ae,st,Ct){super(),this.key=ae,this.groupSubject=st,this.refCountSubscription=Ct}_subscribe(ae){const st=new m.y,{refCountSubscription:Ct,groupSubject:$n}=this;return Ct&&!Ct.closed&&st.add(new Wt(Ct)),st.add($n.subscribe(ae)),st}}class Wt extends m.y{constructor(ae){super(),this.parent=ae,ae.count++}unsubscribe(){const ae=this.parent;!ae.closed&&!this.closed&&(super.unsubscribe(),ae.count-=1,0===ae.count&&ae.attemptedToUnsubscribe&&ae.unsubscribe())}}function ke(){return function(ae){return ae.lift(new be)}}class be{call(ae,st){return st.subscribe(new Ae(ae))}}class Ae extends y.v{_next(ae){}}function qe(){return Xn=>Xn.lift(new Lt)}class Lt{call(ae,st){return st.subscribe(new Zt(ae))}}class Zt extends y.v{constructor(ae){super(ae)}notifyComplete(ae){const st=this.destination;st.next(ae),st.complete()}_next(ae){this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}var fn=s(25577),hn=s(83915),On=s(10174),fi=s(75252);function Ji(){return function(ae){return ae.lift(new Fi)}}class Fi{call(ae,st){return st.subscribe(new bt(ae))}}class bt extends y.v{constructor(ae){super(ae)}_next(ae){this.destination.next(fi.E.createNext(ae))}_error(ae){const st=this.destination;st.next(fi.E.createError(ae)),st.complete()}_complete(){const ae=this.destination;ae.next(fi.E.createComplete()),ae.complete()}}var bn=s(90975);function Pt(Xn){return(0,bn.T)("function"==typeof Xn?(st,Ct)=>Xn(st,Ct)>0?st:Ct:(st,Ct)=>st>Ct?st:Ct)}var jt=s(16229);function gn(...Xn){return ae=>ae.lift.call((0,jt.h)(ae,...Xn))}var ui=s(40466),Ii=s(75707);function pr(Xn,ae,st=Number.POSITIVE_INFINITY){return"function"==typeof ae?(0,Ii.ZZ)(()=>Xn,ae,st):("number"==typeof ae&&(st=ae),(0,Ii.ZZ)(()=>Xn,st))}function zr(Xn,ae,st=Number.POSITIVE_INFINITY){return Ct=>Ct.lift(new Cn(Xn,ae,st))}class Cn{constructor(ae,st,Ct){this.accumulator=ae,this.seed=st,this.concurrent=Ct}call(ae,st){return st.subscribe(new pn(ae,this.accumulator,this.seed,this.concurrent))}}class pn extends T.gn{constructor(ae,st,Ct,$n){super(ae),this.accumulator=st,this.acc=Ct,this.concurrent=$n,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(ae){if(this.active<this.concurrent){const st=this.index++,Ct=this.destination;let $n;try{const{accumulator:Gi}=this;$n=Gi(this.acc,ae,st)}catch(Gi){return Ct.error(Gi)}this.active++,this._innerSub($n)}else this.buffer.push(ae)}_innerSub(ae){const st=new T.zA(this),Ct=this.destination;Ct.add(st);const $n=(0,T.tS)(ae,st);$n!==st&&Ct.add($n)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()}notifyNext(ae){const{destination:st}=this;this.acc=ae,this.hasValue=!0,st.next(ae)}notifyComplete(){const ae=this.buffer;this.active--,ae.length>0?this._next(ae.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}function ti(Xn){return(0,bn.T)("function"==typeof Xn?(st,Ct)=>Xn(st,Ct)<0?st:Ct:(st,Ct)=>st<Ct?st:Ct)}var pi=s(43323),cn=s(79284);function An(...Xn){return 1===Xn.length&&(0,X.c)(Xn[0])&&(Xn=Xn[0]),ae=>ae.lift(new hi(Xn))}class hi{constructor(ae){this.nextSources=ae}call(ae,st){return st.subscribe(new xi(ae,this.nextSources))}}class xi extends T.gn{constructor(ae,st){super(ae),this.destination=ae,this.nextSources=st}notifyError(){this.subscribeToNextSource()}notifyComplete(){this.subscribeToNextSource()}_error(ae){this.subscribeToNextSource(),this.unsubscribe()}_complete(){this.subscribeToNextSource(),this.unsubscribe()}subscribeToNextSource(){const ae=this.nextSources.shift();if(ae){const st=new T.zA(this),Ct=this.destination;Ct.add(st);const $n=(0,T.tS)(ae,st);$n!==st&&Ct.add($n)}else this.destination.complete()}}var xn=s(14749),Yn=s(18513);function Gn(Xn,ae){return st=>[(0,Le.p)(Xn,ae)(st),(0,Le.p)((0,Yn.A)(Xn,ae))(st)]}function Ci(...Xn){const ae=Xn.length;if(0===ae)throw new Error("list of properties cannot be empty.");return st=>(0,hn.T)(function ln(Xn,ae){return Ct=>{let $n=Ct;for(let Gi=0;Gi<ae;Gi++){const Sr=$n?.[Xn[Gi]];if(void 0===Sr)return;$n=Sr}return $n}}(Xn,ae))(st)}function bi(Xn){return Xn?(0,pi.f)(()=>new tt.B7,Xn):(0,pi.f)(new tt.B7)}var Zi=s(26513);function Mr(Xn){return ae=>(0,pi.f)(new Zi.t(Xn))(ae)}var $r=s(99443);function _o(){return Xn=>(0,pi.f)(new $r.h)(Xn)}var bo=s(85735);function Kn(Xn,ae,st,Ct){st&&"function"!=typeof st&&(Ct=st);const $n="function"==typeof st?st:void 0,Gi=new bo.m(Xn,ae,Ct);return Sr=>(0,pi.f)(()=>Gi,$n)(Sr)}var gi=s(15652);function Pi(...Xn){return function(st){return 1===Xn.length&&(0,X.c)(Xn[0])&&(Xn=Xn[0]),st.lift.call((0,gi.O4)(st,...Xn))}}var ji=s(81406);function Qi(Xn){return ae=>ae.lift(new ar(Xn))}class ar{constructor(ae){this.notifier=ae}call(ae,st){return st.subscribe(new jr(ae,this.notifier,st))}}class jr extends T.gn{constructor(ae,st,Ct){super(ae),this.notifier=st,this.source=Ct,this.sourceIsBeingSubscribedTo=!0}notifyNext(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}notifyComplete(){if(!1===this.sourceIsBeingSubscribedTo)return super.complete()}complete(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return super.complete();this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}_unsubscribe(){const{notifications:ae,retriesSubscription:st}=this;ae&&(ae.unsubscribe(),this.notifications=void 0),st&&(st.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}_unsubscribeAndRecycle(){const{_unsubscribe:ae}=this;return this._unsubscribe=null,super._unsubscribeAndRecycle(),this._unsubscribe=ae,this}subscribeToRetries(){let ae;this.notifications=new tt.B7;try{const{notifier:st}=this;ae=st(this.notifications)}catch{return super.complete()}this.retries=ae,this.retriesSubscription=(0,T.tS)(ae,new T.zA(this))}}function ho(Xn=-1){return ae=>ae.lift(new Fo(Xn,ae))}class Fo{constructor(ae,st){this.count=ae,this.source=st}call(ae,st){return st.subscribe(new no(ae,this.count,this.source))}}class no extends y.v{constructor(ae,st,Ct){super(ae),this.count=st,this.source=Ct}error(ae){if(!this.isStopped){const{source:st,count:Ct}=this;if(0===Ct)return super.error(ae);Ct>-1&&(this.count=Ct-1),st.subscribe(this._unsubscribeAndRecycle())}}}var yo=s(86447),Zr=s(60837);function Yr(Xn){return ae=>ae.lift(new go(Xn))}class go{constructor(ae){this.notifier=ae}call(ae,st){const Ct=new zo(ae),$n=st.subscribe(Ct);return $n.add((0,T.tS)(this.notifier,new T.zA(Ct))),$n}}class zo extends T.gn{constructor(){super(...arguments),this.hasValue=!1}_next(ae){this.value=ae,this.hasValue=!0}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}function si(Xn,ae=S.b){return st=>st.lift(new to(Xn,ae))}class to{constructor(ae,st){this.period=ae,this.scheduler=st}call(ae,st){return st.subscribe(new ot(ae,this.period,this.scheduler))}}class ot extends y.v{constructor(ae,st,Ct){super(ae),this.period=st,this.scheduler=Ct,this.hasValue=!1,this.add(Ct.schedule(Vt,st,{subscriber:this,period:st}))}_next(ae){this.lastValue=ae,this.hasValue=!0}notifyNext(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}function Vt(Xn){let{subscriber:ae,period:st}=Xn;ae.notifyNext(),this.schedule(Xn,st)}var Sn=s(18612);function Bn(Xn,ae){return st=>st.lift(new Ti(Xn,ae))}class Ti{constructor(ae,st){this.compareTo=ae,this.comparator=st}call(ae,st){return st.subscribe(new Li(ae,this.compareTo,this.comparator))}}class Li extends y.v{constructor(ae,st,Ct){super(ae),this.compareTo=st,this.comparator=Ct,this._a=[],this._b=[],this._oneComplete=!1,this.destination.add(st.subscribe(new dr(ae,this)))}_next(ae){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(ae),this.checkValues())}_complete(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}checkValues(){const{_a:ae,_b:st,comparator:Ct}=this;for(;ae.length>0&&st.length>0;){let $n=ae.shift(),Gi=st.shift(),Sr=!1;try{Sr=Ct?Ct($n,Gi):$n===Gi}catch(Wr){this.destination.error(Wr)}Sr||this.emit(!1)}}emit(ae){const{destination:st}=this;st.next(ae),st.complete()}nextB(ae){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(ae),this.checkValues())}completeB(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}class dr extends y.v{constructor(ae,st){super(ae),this.parent=st}_next(ae){this.parent.nextB(ae)}_error(ae){this.parent.error(ae),this.unsubscribe()}_complete(){this.parent.completeB(),this.unsubscribe()}}var Fr=s(65770),br=s(55833),Vn=s(64971);function rr(Xn){return ae=>ae.lift(new Ut(Xn,ae))}class Ut{constructor(ae,st){this.predicate=ae,this.source=st}call(ae,st){return st.subscribe(new qn(ae,this.predicate,this.source))}}class qn extends y.v{constructor(ae,st,Ct){super(ae),this.predicate=st,this.source=Ct,this.seenValue=!1,this.index=0}applySingleValue(ae){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=ae)}_next(ae){const st=this.index++;this.predicate?this.tryNext(ae,st):this.applySingleValue(ae)}tryNext(ae,st){try{this.predicate(ae,st,this.source)&&this.applySingleValue(ae)}catch(Ct){this.destination.error(Ct)}}_complete(){const ae=this.destination;this.index>0?(ae.next(this.seenValue?this.singleValue:void 0),ae.complete()):ae.error(new Vn.G)}}var Wn=s(36666);function ci(Xn){return ae=>ae.lift(new Tr(Xn))}class Tr{constructor(ae){if(this._skipCount=ae,this._skipCount<0)throw new At.k}call(ae,st){return st.subscribe(0===this._skipCount?new y.v(ae):new Jr(ae,this._skipCount))}}class Jr extends y.v{constructor(ae,st){super(ae),this._skipCount=st,this._count=0,this._ring=new Array(st)}_next(ae){const st=this._skipCount,Ct=this._count++;if(Ct<st)this._ring[Ct]=ae;else{const $n=Ct%st,Gi=this._ring,Sr=Gi[$n];Gi[$n]=ae,this.destination.next(Sr)}}}function oo(Xn){return ae=>ae.lift(new Qo(Xn))}class Qo{constructor(ae){this.notifier=ae}call(ae,st){return st.subscribe(new fo(ae,this.notifier))}}class fo extends T.gn{constructor(ae,st){super(ae),this.hasValue=!1;const Ct=new T.zA(this);this.add(Ct),this.innerSubscription=Ct;const $n=(0,T.tS)(st,Ct);$n!==Ct&&(this.add($n),this.innerSubscription=$n)}_next(ae){this.hasValue&&super._next(ae)}notifyNext(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}notifyComplete(){}}var Xr=s(28653),Go=s(34593),Ss=s(62366),kr=s(37803);class pa extends Je.c{constructor(ae,st=0,Ct=Ss.I){super(),this.source=ae,this.delayTime=st,this.scheduler=Ct,(!(0,kr.k)(st)||st<0)&&(this.delayTime=0),(!Ct||"function"!=typeof Ct.schedule)&&(this.scheduler=Ss.I)}static create(ae,st=0,Ct=Ss.I){return new pa(ae,st,Ct)}static dispatch(ae){const{source:st,subscriber:Ct}=ae;return this.add(st.subscribe(Ct))}_subscribe(ae){return this.scheduler.schedule(pa.dispatch,this.delayTime,{source:this.source,subscriber:ae})}}function ka(Xn,ae=0){return function(Ct){return Ct.lift(new Xs(Xn,ae))}}class Xs{constructor(ae,st){this.scheduler=ae,this.delay=st}call(ae,st){return new pa(st,this.delay,this.scheduler).subscribe(ae)}}var ys=s(72147),ma=s(92932);function fs(){return(0,ys.n)(ma.D)}function Oa(Xn,ae){return ae?(0,ys.n)(()=>Xn,ae):(0,ys.n)(()=>Xn)}var Ms=s(93702),Ua=s(4208),Zs=s(48765),qo=s(91384),js=s(32489),Ia=s(73180),Ds=s(63997);function Js(Xn=S.b){return ae=>(0,Ds.v)(()=>ae.pipe((0,Sn.S)(({current:st},Ct)=>({value:Ct,current:Xn.now(),last:st}),{current:Xn.now(),value:void 0,last:void 0}),(0,hn.T)(({current:st,last:Ct,value:$n})=>new fa($n,st-Ct))))}class fa{constructor(ae,st){this.value=ae,this.interval=st}}var Ga=s(40198),cs=s(12962);function $s(Xn=S.b){return(0,hn.T)(ae=>new Vo(ae,Xn.now()))}class Vo{constructor(ae,st){this.value=ae,this.timestamp=st}}function Hn(Xn,ae,st){return 0===st?[ae]:(Xn.push(ae),Xn)}function Ba(){return(0,bn.T)(Hn,[])}function ds(Xn){return function(st){return st.lift(new la(Xn))}}class la{constructor(ae){this.windowBoundaries=ae}call(ae,st){const Ct=new ra(ae),$n=st.subscribe(Ct);return $n.closed||Ct.add((0,T.tS)(this.windowBoundaries,new T.zA(Ct))),$n}}class ra extends T.gn{constructor(ae){super(ae),this.window=new tt.B7,ae.next(this.window)}notifyNext(){this.openWindow()}notifyError(ae){this._error(ae)}notifyComplete(){this._complete()}_next(ae){this.window.next(ae)}_error(ae){this.window.error(ae),this.destination.error(ae)}_complete(){this.window.complete(),this.destination.complete()}_unsubscribe(){this.window=null}openWindow(){const ae=this.window;ae&&ae.complete();const st=this.destination,Ct=this.window=new tt.B7;st.next(Ct)}}function $o(Xn,ae=0){return function(Ct){return Ct.lift(new rs(Xn,ae))}}class rs{constructor(ae,st){this.windowSize=ae,this.startWindowEvery=st}call(ae,st){return st.subscribe(new oa(ae,this.windowSize,this.startWindowEvery))}}class oa extends y.v{constructor(ae,st,Ct){super(ae),this.destination=ae,this.windowSize=st,this.startWindowEvery=Ct,this.windows=[new tt.B7],this.count=0,ae.next(this.windows[0])}_next(ae){const st=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,Ct=this.destination,$n=this.windowSize,Gi=this.windows,Sr=Gi.length;for(let ao=0;ao<Sr&&!this.closed;ao++)Gi[ao].next(ae);const Wr=this.count-$n+1;if(Wr>=0&&Wr%st==0&&!this.closed&&Gi.shift().complete(),++this.count%st==0&&!this.closed){const ao=new tt.B7;Gi.push(ao),Ct.next(ao)}}_error(ae){const st=this.windows;if(st)for(;st.length>0&&!this.closed;)st.shift().error(ae);this.destination.error(ae)}_complete(){const ae=this.windows;if(ae)for(;ae.length>0&&!this.closed;)ae.shift().complete();this.destination.complete()}_unsubscribe(){this.count=0,this.windows=null}}function Yo(Xn){let ae=S.b,st=null,Ct=Number.POSITIVE_INFINITY;return(0,f.m)(arguments[3])&&(ae=arguments[3]),(0,f.m)(arguments[2])?ae=arguments[2]:(0,kr.k)(arguments[2])&&(Ct=Number(arguments[2])),(0,f.m)(arguments[1])?ae=arguments[1]:(0,kr.k)(arguments[1])&&(st=Number(arguments[1])),function(Gi){return Gi.lift(new Bs(Xn,st,Ct,ae))}}class Bs{constructor(ae,st,Ct,$n){this.windowTimeSpan=ae,this.windowCreationInterval=st,this.maxWindowSize=Ct,this.scheduler=$n}call(ae,st){return st.subscribe(new La(ae,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}class Va extends tt.B7{constructor(){super(...arguments),this._numberOfNextedValues=0}next(ae){this._numberOfNextedValues++,super.next(ae)}get numberOfNextedValues(){return this._numberOfNextedValues}}class La extends y.v{constructor(ae,st,Ct,$n,Gi){super(ae),this.destination=ae,this.windowTimeSpan=st,this.windowCreationInterval=Ct,this.maxWindowSize=$n,this.scheduler=Gi,this.windows=[];const Sr=this.openWindow();if(null!==Ct&&Ct>=0){const ao={windowTimeSpan:st,windowCreationInterval:Ct,subscriber:this,scheduler:Gi};this.add(Gi.schedule(ea,st,{subscriber:this,window:Sr,context:null})),this.add(Gi.schedule(ks,Ct,ao))}else this.add(Gi.schedule(qs,st,{subscriber:this,window:Sr,windowTimeSpan:st}))}_next(ae){const st=this.windows,Ct=st.length;for(let $n=0;$n<Ct;$n++){const Gi=st[$n];Gi.closed||(Gi.next(ae),Gi.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(Gi))}}_error(ae){const st=this.windows;for(;st.length>0;)st.shift().error(ae);this.destination.error(ae)}_complete(){const ae=this.windows;for(;ae.length>0;){const st=ae.shift();st.closed||st.complete()}this.destination.complete()}openWindow(){const ae=new Va;return this.windows.push(ae),this.destination.next(ae),ae}closeWindow(ae){ae.complete();const st=this.windows;st.splice(st.indexOf(ae),1)}}function qs(Xn){const{subscriber:ae,windowTimeSpan:st,window:Ct}=Xn;Ct&&ae.closeWindow(Ct),Xn.window=ae.openWindow(),this.schedule(Xn,st)}function ks(Xn){const{windowTimeSpan:ae,subscriber:st,scheduler:Ct,windowCreationInterval:$n}=Xn,Gi=st.openWindow();let Wr={action:this,subscription:null};Wr.subscription=Ct.schedule(ea,ae,{subscriber:st,window:Gi,context:Wr}),this.add(Wr.subscription),this.schedule(Xn,$n)}function ea(Xn){const{subscriber:ae,window:st,context:Ct}=Xn;Ct&&Ct.action&&Ct.subscription&&Ct.action.remove(Ct.subscription),ae.closeWindow(st)}function ts(Xn,ae){return st=>st.lift(new $a(Xn,ae))}class $a{constructor(ae,st){this.openings=ae,this.closingSelector=st}call(ae,st){return st.subscribe(new va(ae,this.openings,this.closingSelector))}}class va extends D.E{constructor(ae,st,Ct){super(ae),this.openings=st,this.closingSelector=Ct,this.contexts=[],this.add(this.openSubscription=(0,M.F)(this,st,st))}_next(ae){const{contexts:st}=this;if(st){const Ct=st.length;for(let $n=0;$n<Ct;$n++)st[$n].window.next(ae)}}_error(ae){const{contexts:st}=this;if(this.contexts=null,st){const Ct=st.length;let $n=-1;for(;++$n<Ct;){const Gi=st[$n];Gi.window.error(ae),Gi.subscription.unsubscribe()}}super._error(ae)}_complete(){const{contexts:ae}=this;if(this.contexts=null,ae){const st=ae.length;let Ct=-1;for(;++Ct<st;){const $n=ae[Ct];$n.window.complete(),$n.subscription.unsubscribe()}}super._complete()}_unsubscribe(){const{contexts:ae}=this;if(this.contexts=null,ae){const st=ae.length;let Ct=-1;for(;++Ct<st;){const $n=ae[Ct];$n.window.unsubscribe(),$n.subscription.unsubscribe()}}}notifyNext(ae,st,Ct,$n,Gi){if(ae===this.openings){let Sr;try{const{closingSelector:Po}=this;Sr=Po(st)}catch(Po){return this.error(Po)}const Wr=new tt.B7,ao=new m.y,Ir={window:Wr,subscription:ao};this.contexts.push(Ir);const Cr=(0,M.F)(this,Sr,Ir);Cr.closed?this.closeWindow(this.contexts.length-1):(Cr.context=Ir,ao.add(Cr)),this.destination.next(Wr)}else this.closeWindow(this.contexts.indexOf(ae))}notifyError(ae){this.error(ae)}notifyComplete(ae){ae!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(ae.context))}closeWindow(ae){if(-1===ae)return;const{contexts:st}=this,Ct=st[ae],{window:$n,subscription:Gi}=Ct;st.splice(ae,1),$n.complete(),Gi.unsubscribe()}}function Mn(Xn){return function(st){return st.lift(new Tn(Xn))}}class Tn{constructor(ae){this.closingSelector=ae}call(ae,st){return st.subscribe(new tn(ae,this.closingSelector))}}class tn extends D.E{constructor(ae,st){super(ae),this.destination=ae,this.closingSelector=st,this.openWindow()}notifyNext(ae,st,Ct,$n,Gi){this.openWindow(Gi)}notifyError(ae){this._error(ae)}notifyComplete(ae){this.openWindow(ae)}_next(ae){this.window.next(ae)}_error(ae){this.window.error(ae),this.destination.error(ae),this.unsubscribeClosingNotification()}_complete(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()}unsubscribeClosingNotification(){this.closingNotification&&this.closingNotification.unsubscribe()}openWindow(ae=null){ae&&(this.remove(ae),ae.unsubscribe());const st=this.window;st&&st.complete();const Ct=this.window=new tt.B7;let $n;this.destination.next(Ct);try{const{closingSelector:Gi}=this;$n=Gi()}catch(Gi){return this.destination.error(Gi),void this.window.error(Gi)}this.add(this.closingNotification=(0,M.F)(this,$n))}}var In=s(25590),Ai=s(35146);function So(...Xn){return function(st){return st.lift.call((0,Ai.yU)(st,...Xn))}}function Rn(Xn){return ae=>ae.lift(new Ai.ee(Xn))}},91903:()=>{},24394:()=>{},8536:Bt=>{function z(n,l,d,v,S,y,f){try{var O=n[y](f),P=O.value}catch(_){return void d(_)}O.done?l(P):Promise.resolve(P).then(v,S)}Bt.exports=function s(n){return function(){var l=this,d=arguments;return new Promise(function(v,S){var y=n.apply(l,d);function f(P){z(y,v,S,f,O,"next",P)}function O(P){z(y,v,S,f,O,"throw",P)}f(void 0)})}},Bt.exports.__esModule=!0,Bt.exports.default=Bt.exports},70650:(Bt,z,s)=>{"use strict";function n(d,v,S,y,f,O,P){try{var _=d[O](P),i=_.value}catch(r){return void S(r)}_.done?v(i):Promise.resolve(i).then(y,f)}function l(d){return function(){var v=this,S=arguments;return new Promise(function(y,f){var O=d.apply(v,S);function P(i){n(O,y,f,P,_,"next",i)}function _(i){n(O,y,f,P,_,"throw",i)}P(void 0)})}}s.d(z,{A:()=>l})},40262:(Bt,z,s)=>{"use strict";s.d(z,{FX:()=>X,If:()=>d,K2:()=>O,MA:()=>c,Os:()=>f,P:()=>M,S6:()=>I,hZ:()=>S,i0:()=>y,i7:()=>i,iF:()=>P,kY:()=>r,kp:()=>v,sf:()=>R,ui:()=>B,wk:()=>_});var n=s(61142),l=s(58527),d=function(H){return H[H.State=0]="State",H[H.Transition=1]="Transition",H[H.Sequence=2]="Sequence",H[H.Group=3]="Group",H[H.Animate=4]="Animate",H[H.Keyframes=5]="Keyframes",H[H.Style=6]="Style",H[H.Trigger=7]="Trigger",H[H.Reference=8]="Reference",H[H.AnimateChild=9]="AnimateChild",H[H.AnimateRef=10]="AnimateRef",H[H.Query=11]="Query",H[H.Stagger=12]="Stagger",H}(d||{});const v="*";function S(H,J){return{type:d.Trigger,name:H,definitions:J,options:{}}}function y(H,J=null){return{type:d.Animate,styles:J,timings:H}}function f(H,J=null){return{type:d.Group,steps:H,options:J}}function O(H,J=null){return{type:d.Sequence,steps:H,options:J}}function P(H){return{type:d.Style,styles:H,offset:null}}function _(H,J,re){return{type:d.State,name:H,styles:J,options:re}}function i(H){return{type:d.Keyframes,steps:H}}function r(H,J,re=null){return{type:d.Transition,expr:H,animation:J,options:re}}function c(H=null){return{type:d.AnimateChild,options:H}}function M(H,J,re=null){return{type:d.Query,selector:H,animation:J,options:re}}let I=(()=>{class H{static{this.\u0275fac=function(ie){return new(ie||H)}}static{this.\u0275prov=l.jDH({token:H,factory:()=>(0,l.WQX)(V),providedIn:"root"})}}return H})();class U{}let V=(()=>{class H extends I{constructor(re,ie){if(super(),this.animationModuleType=(0,l.WQX)(l.bc$,{optional:!0}),this._nextAnimationId=0,this._renderer=re.createRenderer(ie.body,{id:"0",encapsulation:l.gXe.None,styles:[],data:{animation:[]}}),null===this.animationModuleType&&!function g(H){const J=H.\u0275type;return 0===J||1===J}(this._renderer))throw new l.wOt(3600,!1)}build(re){const ie=this._nextAnimationId;this._nextAnimationId++;const ve=Array.isArray(re)?O(re):re;return L(this._renderer,null,ie,"register",[ve]),new T(ie,this._renderer)}static{this.\u0275fac=function(ie){return new(ie||H)(l.KVO(l._9s),l.KVO(n.qQ))}}static{this.\u0275prov=l.jDH({token:H,factory:H.\u0275fac,providedIn:"root"})}}return H})();class T extends U{constructor(J,re){super(),this._id=J,this._renderer=re}create(J,re){return new N(this._id,J,re||{},this._renderer)}}class N{constructor(J,re,ie,ve){this.id=J,this.element=re,this._renderer=ve,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",ie)}_listen(J,re){return this._renderer.listen(this.element,`@@${this.id}:${J}`,re)}_command(J,...re){L(this._renderer,this.element,this.id,J,re)}onDone(J){this._listen("done",J)}onStart(J){this._listen("start",J)}onDestroy(J){this._listen("destroy",J)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(J){this._command("setPosition",J)}getPosition(){return function E(H){const J=H.\u0275type;return 0===J?H:1===J?H.animationRenderer:null}(this._renderer)?.engine?.players[this.id]?.getPosition()??0}}function L(H,J,re,ie,ve){H.setProperty(J,`@@${re}:${ie}`,ve)}class R{constructor(J=0,re=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=J+re}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(J=>J()),this._onDoneFns=[])}onStart(J){this._originalOnStartFns.push(J),this._onStartFns.push(J)}onDone(J){this._originalOnDoneFns.push(J),this._onDoneFns.push(J)}onDestroy(J){this._onDestroyFns.push(J)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(J=>J()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(J=>J()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(J){this._position=this.totalTime?J*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(J){const re="start"==J?this._onStartFns:this._onDoneFns;re.forEach(ie=>ie()),re.length=0}}class B{constructor(J){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=J;let re=0,ie=0,ve=0;const ue=this.players.length;0==ue?queueMicrotask(()=>this._onFinish()):this.players.forEach(se=>{se.onDone(()=>{++re==ue&&this._onFinish()}),se.onDestroy(()=>{++ie==ue&&this._onDestroy()}),se.onStart(()=>{++ve==ue&&this._onStart()})}),this.totalTime=this.players.reduce((se,Z)=>Math.max(se,Z.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(J=>J()),this._onDoneFns=[])}init(){this.players.forEach(J=>J.init())}onStart(J){this._onStartFns.push(J)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(J=>J()),this._onStartFns=[])}onDone(J){this._onDoneFns.push(J)}onDestroy(J){this._onDestroyFns.push(J)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(J=>J.play())}pause(){this.players.forEach(J=>J.pause())}restart(){this.players.forEach(J=>J.restart())}finish(){this._onFinish(),this.players.forEach(J=>J.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(J=>J.destroy()),this._onDestroyFns.forEach(J=>J()),this._onDestroyFns=[])}reset(){this.players.forEach(J=>J.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(J){const re=J*this.totalTime;this.players.forEach(ie=>{const ve=ie.totalTime?Math.min(1,re/ie.totalTime):1;ie.setPosition(ve)})}getPosition(){const J=this.players.reduce((re,ie)=>null===re||ie.totalTime>re.totalTime?ie:re,null);return null!=J?J.getPosition():0}beforeDestroy(){this.players.forEach(J=>{J.beforeDestroy&&J.beforeDestroy()})}triggerCallback(J){const re="start"==J?this._onStartFns:this._onDoneFns;re.forEach(ie=>ie()),re.length=0}}const X="!"},31308:(Bt,z,s)=>{"use strict";s.d(z,{Ae:()=>N,Ai:()=>ft,Au:()=>ie,Bu:()=>ve,FN:()=>Je,GX:()=>$,Pd:()=>yt,Q_:()=>Gt,Z7:()=>se,_G:()=>$e,kB:()=>le,px:()=>T,vR:()=>tt,vr:()=>X,w6:()=>Ze});var n=s(61142),l=s(58527),d=s(72653),v=s(80583),S=s(10399),y=s(26513),f=s(43848),O=s(25373),P=s(91384),_=s(62931),i=s(8619),r=s(83915),a=s(65706),c=s(36666),m=s(53461),M=s(4208),D=s(6364),I=s(26321),U=s(76706);const V=" ";function T(Wt,ke,be){const Ae=L(Wt,ke);Ae.some(qe=>qe.trim()==be.trim())||(Ae.push(be.trim()),Wt.setAttribute(ke,Ae.join(V)))}function N(Wt,ke,be){const qe=L(Wt,ke).filter(Lt=>Lt!=be.trim());qe.length?Wt.setAttribute(ke,qe.join(V)):Wt.removeAttribute(ke)}function L(Wt,ke){return(Wt.getAttribute(ke)||"").match(/\S+/g)||[]}const g="cdk-describedby-message",R="cdk-describedby-host";let B=0,X=(()=>{class Wt{constructor(be,Ae){this._platform=Ae,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+B++,this._document=be,this._id=(0,l.WQX)(l.sZ2)+"-"+B++}describe(be,Ae,qe){if(!this._canBeDescribed(be,Ae))return;const Lt=H(Ae,qe);"string"!=typeof Ae?(J(Ae,this._id),this._messageRegistry.set(Lt,{messageElement:Ae,referenceCount:0})):this._messageRegistry.has(Lt)||this._createMessageElement(Ae,qe),this._isElementDescribedByMessage(be,Lt)||this._addMessageReference(be,Lt)}removeDescription(be,Ae,qe){if(!Ae||!this._isElementNode(be))return;const Lt=H(Ae,qe);if(this._isElementDescribedByMessage(be,Lt)&&this._removeMessageReference(be,Lt),"string"==typeof Ae){const Zt=this._messageRegistry.get(Lt);Zt&&0===Zt.referenceCount&&this._deleteMessageElement(Lt)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const be=this._document.querySelectorAll(`[${R}="${this._id}"]`);for(let Ae=0;Ae<be.length;Ae++)this._removeCdkDescribedByReferenceIds(be[Ae]),be[Ae].removeAttribute(R);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(be,Ae){const qe=this._document.createElement("div");J(qe,this._id),qe.textContent=be,Ae&&qe.setAttribute("role",Ae),this._createMessagesContainer(),this._messagesContainer.appendChild(qe),this._messageRegistry.set(H(be,Ae),{messageElement:qe,referenceCount:0})}_deleteMessageElement(be){this._messageRegistry.get(be)?.messageElement?.remove(),this._messageRegistry.delete(be)}_createMessagesContainer(){if(this._messagesContainer)return;const be="cdk-describedby-message-container",Ae=this._document.querySelectorAll(`.${be}[platform="server"]`);for(let Lt=0;Lt<Ae.length;Lt++)Ae[Lt].remove();const qe=this._document.createElement("div");qe.style.visibility="hidden",qe.classList.add(be),qe.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&qe.setAttribute("platform","server"),this._document.body.appendChild(qe),this._messagesContainer=qe}_removeCdkDescribedByReferenceIds(be){const Ae=L(be,"aria-describedby").filter(qe=>0!=qe.indexOf(g));be.setAttribute("aria-describedby",Ae.join(" "))}_addMessageReference(be,Ae){const qe=this._messageRegistry.get(Ae);T(be,"aria-describedby",qe.messageElement.id),be.setAttribute(R,this._id),qe.referenceCount++}_removeMessageReference(be,Ae){const qe=this._messageRegistry.get(Ae);qe.referenceCount--,N(be,"aria-describedby",qe.messageElement.id),be.removeAttribute(R)}_isElementDescribedByMessage(be,Ae){const qe=L(be,"aria-describedby"),Lt=this._messageRegistry.get(Ae),Zt=Lt&&Lt.messageElement.id;return!!Zt&&-1!=qe.indexOf(Zt)}_canBeDescribed(be,Ae){if(!this._isElementNode(be))return!1;if(Ae&&"object"==typeof Ae)return!0;const qe=null==Ae?"":`${Ae}`.trim(),Lt=be.getAttribute("aria-label");return!(!qe||Lt&&Lt.trim()===qe)}_isElementNode(be){return be.nodeType===this._document.ELEMENT_NODE}static{this.\u0275fac=function(Ae){return new(Ae||Wt)(l.KVO(n.qQ),l.KVO(d.OD))}}static{this.\u0275prov=l.jDH({token:Wt,factory:Wt.\u0275fac,providedIn:"root"})}}return Wt})();function H(Wt,ke){return"string"==typeof Wt?`${ke||""}/${Wt}`:Wt}function J(Wt,ke){Wt.id||(Wt.id=`${g}-${ke}-${B++}`)}class re{constructor(ke){this._items=ke,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new v.B7,this._typeaheadSubscription=S.y.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=be=>be.disabled,this._pressedLetters=[],this.tabOut=new v.B7,this.change=new v.B7,ke instanceof l.rOR&&(this._itemChangesSubscription=ke.changes.subscribe(be=>{if(this._activeItem){const qe=be.toArray().indexOf(this._activeItem);qe>-1&&qe!==this._activeItemIndex&&(this._activeItemIndex=qe)}}))}skipPredicate(ke){return this._skipPredicateFn=ke,this}withWrap(ke=!0){return this._wrap=ke,this}withVerticalOrientation(ke=!0){return this._vertical=ke,this}withHorizontalOrientation(ke){return this._horizontal=ke,this}withAllowedModifierKeys(ke){return this._allowedModifierKeys=ke,this}withTypeAhead(ke=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,P.M)(be=>this._pressedLetters.push(be)),(0,_.B)(ke),(0,i.p)(()=>this._pressedLetters.length>0),(0,r.T)(()=>this._pressedLetters.join(""))).subscribe(be=>{const Ae=this._getItemsArray();for(let qe=1;qe<Ae.length+1;qe++){const Lt=(this._activeItemIndex+qe)%Ae.length,Zt=Ae[Lt];if(!this._skipPredicateFn(Zt)&&0===Zt.getLabel().toUpperCase().trim().indexOf(be)){this.setActiveItem(Lt);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(ke=!0){return this._homeAndEnd=ke,this}withPageUpDown(ke=!0,be=10){return this._pageUpAndDown={enabled:ke,delta:be},this}setActiveItem(ke){const be=this._activeItem;this.updateActiveItem(ke),this._activeItem!==be&&this.change.next(this._activeItemIndex)}onKeydown(ke){const be=ke.keyCode,qe=["altKey","ctrlKey","metaKey","shiftKey"].every(Lt=>!ke[Lt]||this._allowedModifierKeys.indexOf(Lt)>-1);switch(be){case O.wn:return void this.tabOut.next();case O.n6:if(this._vertical&&qe){this.setNextItemActive();break}return;case O.i7:if(this._vertical&&qe){this.setPreviousItemActive();break}return;case O.LE:if(this._horizontal&&qe){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case O.UQ:if(this._horizontal&&qe){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case O.yZ:if(this._homeAndEnd&&qe){this.setFirstItemActive();break}return;case O.Kp:if(this._homeAndEnd&&qe){this.setLastItemActive();break}return;case O.w_:if(this._pageUpAndDown.enabled&&qe){const Lt=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(Lt>0?Lt:0,1);break}return;case O.dB:if(this._pageUpAndDown.enabled&&qe){const Lt=this._activeItemIndex+this._pageUpAndDown.delta,Zt=this._getItemsArray().length;this._setActiveItemByIndex(Lt<Zt?Lt:Zt-1,-1);break}return;default:return void((qe||(0,O.rp)(ke,"shiftKey"))&&(ke.key&&1===ke.key.length?this._letterKeyStream.next(ke.key.toLocaleUpperCase()):(be>=O.A&&be<=O.Z||be>=O.f2&&be<=O.bn)&&this._letterKeyStream.next(String.fromCharCode(be))))}this._pressedLetters=[],ke.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(ke){const be=this._getItemsArray(),Ae="number"==typeof ke?ke:be.indexOf(ke);this._activeItem=be[Ae]??null,this._activeItemIndex=Ae}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(ke){this._wrap?this._setActiveInWrapMode(ke):this._setActiveInDefaultMode(ke)}_setActiveInWrapMode(ke){const be=this._getItemsArray();for(let Ae=1;Ae<=be.length;Ae++){const qe=(this._activeItemIndex+ke*Ae+be.length)%be.length;if(!this._skipPredicateFn(be[qe]))return void this.setActiveItem(qe)}}_setActiveInDefaultMode(ke){this._setActiveItemByIndex(this._activeItemIndex+ke,ke)}_setActiveItemByIndex(ke,be){const Ae=this._getItemsArray();if(Ae[ke]){for(;this._skipPredicateFn(Ae[ke]);)if(!Ae[ke+=be])return;this.setActiveItem(ke)}}_getItemsArray(){return this._items instanceof l.rOR?this._items.toArray():this._items}}class ie extends re{setActiveItem(ke){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(ke),this.activeItem&&this.activeItem.setActiveStyles()}}class ve extends re{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(ke){return this._origin=ke,this}setActiveItem(ke){super.setActiveItem(ke),this.activeItem&&this.activeItem.focus(this._origin)}}let se=(()=>{class Wt{constructor(be){this._platform=be}isDisabled(be){return be.hasAttribute("disabled")}isVisible(be){return function Se(Wt){return!!(Wt.offsetWidth||Wt.offsetHeight||"function"==typeof Wt.getClientRects&&Wt.getClientRects().length)}(be)&&"visible"===getComputedStyle(be).visibility}isTabbable(be){if(!this._platform.isBrowser)return!1;const Ae=function Z(Wt){try{return Wt.frameElement}catch{return null}}(function G(Wt){return Wt.ownerDocument&&Wt.ownerDocument.defaultView||window}(be));if(Ae&&(-1===A(Ae)||!this.isVisible(Ae)))return!1;let qe=be.nodeName.toLowerCase(),Lt=A(be);return be.hasAttribute("contenteditable")?-1!==Lt:!("iframe"===qe||"object"===qe||this._platform.WEBKIT&&this._platform.IOS&&!function me(Wt){let ke=Wt.nodeName.toLowerCase(),be="input"===ke&&Wt.type;return"text"===be||"password"===be||"select"===ke||"textarea"===ke}(be))&&("audio"===qe?!!be.hasAttribute("controls")&&-1!==Lt:"video"===qe?-1!==Lt&&(null!==Lt||this._platform.FIREFOX||be.hasAttribute("controls")):be.tabIndex>=0)}isFocusable(be,Ae){return function ne(Wt){return!function Be(Wt){return function He(Wt){return"input"==Wt.nodeName.toLowerCase()}(Wt)&&"hidden"==Wt.type}(Wt)&&(function Ce(Wt){let ke=Wt.nodeName.toLowerCase();return"input"===ke||"select"===ke||"button"===ke||"textarea"===ke}(Wt)||function Xe(Wt){return function Me(Wt){return"a"==Wt.nodeName.toLowerCase()}(Wt)&&Wt.hasAttribute("href")}(Wt)||Wt.hasAttribute("contenteditable")||Q(Wt))}(be)&&!this.isDisabled(be)&&(Ae?.ignoreVisibility||this.isVisible(be))}static{this.\u0275fac=function(Ae){return new(Ae||Wt)(l.KVO(d.OD))}}static{this.\u0275prov=l.jDH({token:Wt,factory:Wt.\u0275fac,providedIn:"root"})}}return Wt})();function Q(Wt){if(!Wt.hasAttribute("tabindex")||void 0===Wt.tabIndex)return!1;let ke=Wt.getAttribute("tabindex");return!(!ke||isNaN(parseInt(ke,10)))}function A(Wt){if(!Q(Wt))return null;const ke=parseInt(Wt.getAttribute("tabindex")||"",10);return isNaN(ke)?-1:ke}class W{get enabled(){return this._enabled}set enabled(ke){this._enabled=ke,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ke,this._startAnchor),this._toggleAnchorTabIndex(ke,this._endAnchor))}constructor(ke,be,Ae,qe,Lt=!1){this._element=ke,this._checker=be,this._ngZone=Ae,this._document=qe,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,Lt||this.attachAnchors()}destroy(){const ke=this._startAnchor,be=this._endAnchor;ke&&(ke.removeEventListener("focus",this.startAnchorListener),ke.remove()),be&&(be.removeEventListener("focus",this.endAnchorListener),be.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(ke){return new Promise(be=>{this._executeOnStable(()=>be(this.focusInitialElement(ke)))})}focusFirstTabbableElementWhenReady(ke){return new Promise(be=>{this._executeOnStable(()=>be(this.focusFirstTabbableElement(ke)))})}focusLastTabbableElementWhenReady(ke){return new Promise(be=>{this._executeOnStable(()=>be(this.focusLastTabbableElement(ke)))})}_getRegionBoundary(ke){const be=this._element.querySelectorAll(`[cdk-focus-region-${ke}], [cdkFocusRegion${ke}], [cdk-focus-${ke}]`);return"start"==ke?be.length?be[0]:this._getFirstTabbableElement(this._element):be.length?be[be.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(ke){const be=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(be){if(!this._checker.isFocusable(be)){const Ae=this._getFirstTabbableElement(be);return Ae?.focus(ke),!!Ae}return be.focus(ke),!0}return this.focusFirstTabbableElement(ke)}focusFirstTabbableElement(ke){const be=this._getRegionBoundary("start");return be&&be.focus(ke),!!be}focusLastTabbableElement(ke){const be=this._getRegionBoundary("end");return be&&be.focus(ke),!!be}hasAttached(){return this._hasAttached}_getFirstTabbableElement(ke){if(this._checker.isFocusable(ke)&&this._checker.isTabbable(ke))return ke;const be=ke.children;for(let Ae=0;Ae<be.length;Ae++){const qe=be[Ae].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(be[Ae]):null;if(qe)return qe}return null}_getLastTabbableElement(ke){if(this._checker.isFocusable(ke)&&this._checker.isTabbable(ke))return ke;const be=ke.children;for(let Ae=be.length-1;Ae>=0;Ae--){const qe=be[Ae].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(be[Ae]):null;if(qe)return qe}return null}_createAnchor(){const ke=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,ke),ke.classList.add("cdk-visually-hidden"),ke.classList.add("cdk-focus-trap-anchor"),ke.setAttribute("aria-hidden","true"),ke}_toggleAnchorTabIndex(ke,be){ke?be.setAttribute("tabindex","0"):be.removeAttribute("tabindex")}toggleAnchors(ke){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ke,this._startAnchor),this._toggleAnchorTabIndex(ke,this._endAnchor))}_executeOnStable(ke){this._ngZone.isStable?ke():this._ngZone.onStable.pipe((0,a.s)(1)).subscribe(ke)}}let $=(()=>{class Wt{constructor(be,Ae,qe){this._checker=be,this._ngZone=Ae,this._document=qe}create(be,Ae=!1){return new W(be,this._checker,this._ngZone,this._document,Ae)}static{this.\u0275fac=function(Ae){return new(Ae||Wt)(l.KVO(se),l.KVO(l.SKi),l.KVO(n.qQ))}}static{this.\u0275prov=l.jDH({token:Wt,factory:Wt.\u0275fac,providedIn:"root"})}}return Wt})(),le=(()=>{class Wt{get enabled(){return this.focusTrap.enabled}set enabled(be){this.focusTrap.enabled=(0,D.he)(be)}get autoCapture(){return this._autoCapture}set autoCapture(be){this._autoCapture=(0,D.he)(be)}constructor(be,Ae,qe){this._elementRef=be,this._focusTrapFactory=Ae,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(be){const Ae=be.autoCapture;Ae&&!Ae.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,d.vc)(),this.focusTrap.focusInitialElementWhenReady()}static{this.\u0275fac=function(Ae){return new(Ae||Wt)(l.rXU(l.aKT),l.rXU($),l.rXU(n.qQ))}}static{this.\u0275dir=l.FsC({type:Wt,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[l.Mj6.None,"cdkTrapFocus","enabled"],autoCapture:[l.Mj6.None,"cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[l.OA$]})}}return Wt})();function $e(Wt){return 0===Wt.buttons||0===Wt.detail}function Ze(Wt){const ke=Wt.touches&&Wt.touches[0]||Wt.changedTouches&&Wt.changedTouches[0];return!(!ke||-1!==ke.identifier||null!=ke.radiusX&&1!==ke.radiusX||null!=ke.radiusY&&1!==ke.radiusY)}const Qe=new l.nKC("cdk-input-modality-detector-options"),Ve={ignoreKeys:[O.A$,O.W3,O.eg,O.Ge,O.FX]},Ot=(0,d.BQ)({passive:!0,capture:!0});let at=(()=>{class Wt{get mostRecentModality(){return this._modality.value}constructor(be,Ae,qe,Lt){this._platform=be,this._mostRecentTarget=null,this._modality=new y.t(null),this._lastTouchMs=0,this._onKeydown=Zt=>{this._options?.ignoreKeys?.some(fn=>fn===Zt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,d.Fb)(Zt))},this._onMousedown=Zt=>{Date.now()-this._lastTouchMs<650||(this._modality.next($e(Zt)?"keyboard":"mouse"),this._mostRecentTarget=(0,d.Fb)(Zt))},this._onTouchstart=Zt=>{Ze(Zt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,d.Fb)(Zt))},this._options={...Ve,...Lt},this.modalityDetected=this._modality.pipe((0,c.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,m.F)()),be.isBrowser&&Ae.runOutsideAngular(()=>{qe.addEventListener("keydown",this._onKeydown,Ot),qe.addEventListener("mousedown",this._onMousedown,Ot),qe.addEventListener("touchstart",this._onTouchstart,Ot)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ot),document.removeEventListener("mousedown",this._onMousedown,Ot),document.removeEventListener("touchstart",this._onTouchstart,Ot))}static{this.\u0275fac=function(Ae){return new(Ae||Wt)(l.KVO(d.OD),l.KVO(l.SKi),l.KVO(n.qQ),l.KVO(Qe,8))}}static{this.\u0275prov=l.jDH({token:Wt,factory:Wt.\u0275fac,providedIn:"root"})}}return Wt})();const It=new l.nKC("liveAnnouncerElement",{providedIn:"root",factory:function We(){return null}}),xe=new l.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let lt=0,ft=(()=>{class Wt{constructor(be,Ae,qe,Lt){this._ngZone=Ae,this._defaultOptions=Lt,this._document=qe,this._liveElement=be||this._createLiveElement()}announce(be,...Ae){const qe=this._defaultOptions;let Lt,Zt;return 1===Ae.length&&"number"==typeof Ae[0]?Zt=Ae[0]:[Lt,Zt]=Ae,this.clear(),clearTimeout(this._previousTimeout),Lt||(Lt=qe&&qe.politeness?qe.politeness:"polite"),null==Zt&&qe&&(Zt=qe.duration),this._liveElement.setAttribute("aria-live",Lt),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(fn=>this._currentResolve=fn)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=be,"number"==typeof Zt&&(this._previousTimeout=setTimeout(()=>this.clear(),Zt)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const be="cdk-live-announcer-element",Ae=this._document.getElementsByClassName(be),qe=this._document.createElement("div");for(let Lt=0;Lt<Ae.length;Lt++)Ae[Lt].remove();return qe.classList.add(be),qe.classList.add("cdk-visually-hidden"),qe.setAttribute("aria-atomic","true"),qe.setAttribute("aria-live","polite"),qe.id="cdk-live-announcer-"+lt++,this._document.body.appendChild(qe),qe}_exposeAnnouncerToModals(be){const Ae=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let qe=0;qe<Ae.length;qe++){const Lt=Ae[qe],Zt=Lt.getAttribute("aria-owns");Zt?-1===Zt.indexOf(be)&&Lt.setAttribute("aria-owns",Zt+" "+be):Lt.setAttribute("aria-owns",be)}}static{this.\u0275fac=function(Ae){return new(Ae||Wt)(l.KVO(It,8),l.KVO(l.SKi),l.KVO(n.qQ),l.KVO(xe,8))}}static{this.\u0275prov=l.jDH({token:Wt,factory:Wt.\u0275fac,providedIn:"root"})}}return Wt})();const Xt=new l.nKC("cdk-focus-monitor-default-options"),Ht=(0,d.BQ)({passive:!0,capture:!0});let Je=(()=>{class Wt{constructor(be,Ae,qe,Lt,Zt){this._ngZone=be,this._platform=Ae,this._inputModalityDetector=qe,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new v.B7,this._rootNodeFocusAndBlurListener=fn=>{for(let On=(0,d.Fb)(fn);On;On=On.parentElement)"focus"===fn.type?this._onFocus(fn,On):this._onBlur(fn,On)},this._document=Lt,this._detectionMode=Zt?.detectionMode||0}monitor(be,Ae=!1){const qe=(0,D.i8)(be);if(!this._platform.isBrowser||1!==qe.nodeType)return(0,f.of)();const Lt=(0,d.KT)(qe)||this._getDocument(),Zt=this._elementInfo.get(qe);if(Zt)return Ae&&(Zt.checkChildren=!0),Zt.subject;const fn={checkChildren:Ae,subject:new v.B7,rootNode:Lt};return this._elementInfo.set(qe,fn),this._registerGlobalListeners(fn),fn.subject}stopMonitoring(be){const Ae=(0,D.i8)(be),qe=this._elementInfo.get(Ae);qe&&(qe.subject.complete(),this._setClasses(Ae),this._elementInfo.delete(Ae),this._removeGlobalListeners(qe))}focusVia(be,Ae,qe){const Lt=(0,D.i8)(be);Lt===this._getDocument().activeElement?this._getClosestElementsInfo(Lt).forEach(([fn,hn])=>this._originChanged(fn,Ae,hn)):(this._setOrigin(Ae),"function"==typeof Lt.focus&&Lt.focus(qe))}ngOnDestroy(){this._elementInfo.forEach((be,Ae)=>this.stopMonitoring(Ae))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(be){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(be)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:be&&this._isLastInteractionFromInputLabel(be)?"mouse":"program"}_shouldBeAttributedToTouch(be){return 1===this._detectionMode||!!be?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(be,Ae){be.classList.toggle("cdk-focused",!!Ae),be.classList.toggle("cdk-touch-focused","touch"===Ae),be.classList.toggle("cdk-keyboard-focused","keyboard"===Ae),be.classList.toggle("cdk-mouse-focused","mouse"===Ae),be.classList.toggle("cdk-program-focused","program"===Ae)}_setOrigin(be,Ae=!1){this._ngZone.runOutsideAngular(()=>{this._origin=be,this._originFromTouchInteraction="touch"===be&&Ae,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(be,Ae){const qe=this._elementInfo.get(Ae),Lt=(0,d.Fb)(be);!qe||!qe.checkChildren&&Ae!==Lt||this._originChanged(Ae,this._getFocusOrigin(Lt),qe)}_onBlur(be,Ae){const qe=this._elementInfo.get(Ae);!qe||qe.checkChildren&&be.relatedTarget instanceof Node&&Ae.contains(be.relatedTarget)||(this._setClasses(Ae),this._emitOrigin(qe,null))}_emitOrigin(be,Ae){be.subject.observers.length&&this._ngZone.run(()=>be.subject.next(Ae))}_registerGlobalListeners(be){if(!this._platform.isBrowser)return;const Ae=be.rootNode,qe=this._rootNodeFocusListenerCount.get(Ae)||0;qe||this._ngZone.runOutsideAngular(()=>{Ae.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ht),Ae.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ht)}),this._rootNodeFocusListenerCount.set(Ae,qe+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,M.Q)(this._stopInputModalityDetector)).subscribe(Lt=>{this._setOrigin(Lt,!0)}))}_removeGlobalListeners(be){const Ae=be.rootNode;if(this._rootNodeFocusListenerCount.has(Ae)){const qe=this._rootNodeFocusListenerCount.get(Ae);qe>1?this._rootNodeFocusListenerCount.set(Ae,qe-1):(Ae.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ht),Ae.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ht),this._rootNodeFocusListenerCount.delete(Ae))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(be,Ae,qe){this._setClasses(be,Ae),this._emitOrigin(qe,Ae),this._lastFocusOrigin=Ae}_getClosestElementsInfo(be){const Ae=[];return this._elementInfo.forEach((qe,Lt)=>{(Lt===be||qe.checkChildren&&Lt.contains(be))&&Ae.push([Lt,qe])}),Ae}_isLastInteractionFromInputLabel(be){const{_mostRecentTarget:Ae,mostRecentModality:qe}=this._inputModalityDetector;if("mouse"!==qe||!Ae||Ae===be||"INPUT"!==be.nodeName&&"TEXTAREA"!==be.nodeName||be.disabled)return!1;const Lt=be.labels;if(Lt)for(let Zt=0;Zt<Lt.length;Zt++)if(Lt[Zt].contains(Ae))return!0;return!1}static{this.\u0275fac=function(Ae){return new(Ae||Wt)(l.KVO(l.SKi),l.KVO(d.OD),l.KVO(at),l.KVO(n.qQ,8),l.KVO(Xt,8))}}static{this.\u0275prov=l.jDH({token:Wt,factory:Wt.\u0275fac,providedIn:"root"})}}return Wt})(),tt=(()=>{class Wt{constructor(be,Ae){this._elementRef=be,this._focusMonitor=Ae,this._focusOrigin=null,this.cdkFocusChange=new l.bkB}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const be=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(be,1===be.nodeType&&be.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Ae=>{this._focusOrigin=Ae,this.cdkFocusChange.emit(Ae)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static{this.\u0275fac=function(Ae){return new(Ae||Wt)(l.rXU(l.aKT),l.rXU(Je))}}static{this.\u0275dir=l.FsC({type:Wt,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}}return Wt})();const rt="cdk-high-contrast-black-on-white",et="cdk-high-contrast-white-on-black",St="cdk-high-contrast-active";let Gt=(()=>{class Wt{constructor(be,Ae){this._platform=be,this._document=Ae,this._breakpointSubscription=(0,l.WQX)(U.QP).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const be=this._document.createElement("div");be.style.backgroundColor="rgb(1,2,3)",be.style.position="absolute",this._document.body.appendChild(be);const Ae=this._document.defaultView||window,qe=Ae&&Ae.getComputedStyle?Ae.getComputedStyle(be):null,Lt=(qe&&qe.backgroundColor||"").replace(/ /g,"");switch(be.remove(),Lt){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const be=this._document.body.classList;be.remove(St,rt,et),this._hasCheckedHighContrastMode=!0;const Ae=this.getHighContrastMode();1===Ae?be.add(St,rt):2===Ae&&be.add(St,et)}}static{this.\u0275fac=function(Ae){return new(Ae||Wt)(l.KVO(d.OD),l.KVO(n.qQ))}}static{this.\u0275prov=l.jDH({token:Wt,factory:Wt.\u0275fac,providedIn:"root"})}}return Wt})(),yt=(()=>{class Wt{constructor(be){be._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(Ae){return new(Ae||Wt)(l.KVO(Gt))}}static{this.\u0275mod=l.$C({type:Wt})}static{this.\u0275inj=l.G2t({imports:[I.w5]})}}return Wt})()},51394:(Bt,z,s)=>{"use strict";s.d(z,{dS:()=>f,ig:()=>O,jI:()=>P});var n=s(58527),l=s(61142);const d=new n.nKC("cdk-dir-doc",{providedIn:"root",factory:function v(){return(0,n.WQX)(l.qQ)}}),S=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function y(_){const i=_?.toLowerCase()||"";return"auto"===i&&typeof navigator<"u"&&navigator?.language?S.test(navigator.language)?"rtl":"ltr":"rtl"===i?"rtl":"ltr"}let f=(()=>{class _{constructor(r){this.value="ltr",this.change=new n.bkB,r&&(this.value=y((r.body?r.body.dir:null)||(r.documentElement?r.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(a){return new(a||_)(n.KVO(d,8))}}static{this.\u0275prov=n.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})(),O=(()=>{class _{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new n.bkB}get dir(){return this._dir}set dir(r){const a=this._dir;this._dir=y(r),this._rawDir=r,a!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(a){return new(a||_)}}static{this.\u0275dir=n.FsC({type:_,selectors:[["","dir",""]],hostVars:1,hostBindings:function(a,c){2&a&&n.BMQ("dir",c._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[n.Jv_([{provide:f,useExisting:_}])]})}}return _})(),P=(()=>{class _{static{this.\u0275fac=function(a){return new(a||_)}}static{this.\u0275mod=n.$C({type:_})}static{this.\u0275inj=n.G2t({})}}return _})()},6364:(Bt,z,s)=>{"use strict";s.d(z,{FG:()=>S,OE:()=>d,a1:()=>y,he:()=>l,i8:()=>f});var n=s(58527);function l(P){return null!=P&&"false"!=`${P}`}function d(P,_=0){return function v(P){return!isNaN(parseFloat(P))&&!isNaN(Number(P))}(P)?Number(P):_}function S(P){return Array.isArray(P)?P:[P]}function y(P){return null==P?"":"string"==typeof P?P:`${P}px`}function f(P){return P instanceof n.aKT?P.nativeElement:P}},40567:(Bt,z,s)=>{"use strict";s.d(z,{CB:()=>i,DQ:()=>_,hx:()=>O,sL:()=>c,y4:()=>f,zP:()=>a});var n=s(96090),l=s(39595),d=s(43848),v=s(80583),S=s(58527);class y{}function f(m){return m&&"function"==typeof m.connect&&!(m instanceof n.G)}class O extends y{constructor(M){super(),this._data=M}connect(){return(0,l.A)(this._data)?this._data:(0,d.of)(this._data)}disconnect(){}}class _{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(M,D,I,U,V){M.forEachOperation((T,N,L)=>{let E,g;null==T.previousIndex?(E=this._insertView(()=>I(T,N,L),L,D,U(T)),g=E?1:0):null==L?(this._detachAndCacheView(N,D),g=3):(E=this._moveView(N,L,D,U(T)),g=2),V&&V({context:E?.context,operation:g,record:T})})}detach(){for(const M of this._viewCache)M.destroy();this._viewCache=[]}_insertView(M,D,I,U){const V=this._insertViewFromCache(D,I);if(V)return void(V.context.$implicit=U);const T=M();return I.createEmbeddedView(T.templateRef,T.context,T.index)}_detachAndCacheView(M,D){const I=D.detach(M);this._maybeCacheView(I,D)}_moveView(M,D,I,U){const V=I.get(M);return I.move(V,D),V.context.$implicit=U,V}_maybeCacheView(M,D){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(M);else{const I=D.indexOf(M);-1===I?M.destroy():D.remove(I)}}_insertViewFromCache(M,D){const I=this._viewCache.pop();return I&&D.insert(I,M),I||null}}class i{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(M=!1,D,I=!0,U){this._multiple=M,this._emitChanges=I,this.compareWith=U,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new v.B7,D&&D.length&&(M?D.forEach(V=>this._markSelected(V)):this._markSelected(D[0]),this._selectedToEmit.length=0)}select(...M){this._verifyValueAssignment(M),M.forEach(I=>this._markSelected(I));const D=this._hasQueuedChanges();return this._emitChangeEvent(),D}deselect(...M){this._verifyValueAssignment(M),M.forEach(I=>this._unmarkSelected(I));const D=this._hasQueuedChanges();return this._emitChangeEvent(),D}setSelection(...M){this._verifyValueAssignment(M);const D=this.selected,I=new Set(M);M.forEach(V=>this._markSelected(V)),D.filter(V=>!I.has(V)).forEach(V=>this._unmarkSelected(V));const U=this._hasQueuedChanges();return this._emitChangeEvent(),U}toggle(M){return this.isSelected(M)?this.deselect(M):this.select(M)}clear(M=!0){this._unmarkAll();const D=this._hasQueuedChanges();return M&&this._emitChangeEvent(),D}isSelected(M){return this._selection.has(this._getConcreteValue(M))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(M){this._multiple&&this.selected&&this._selected.sort(M)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(M){M=this._getConcreteValue(M),this.isSelected(M)||(this._multiple||this._unmarkAll(),this.isSelected(M)||this._selection.add(M),this._emitChanges&&this._selectedToEmit.push(M))}_unmarkSelected(M){M=this._getConcreteValue(M),this.isSelected(M)&&(this._selection.delete(M),this._emitChanges&&this._deselectedToEmit.push(M))}_unmarkAll(){this.isEmpty()||this._selection.forEach(M=>this._unmarkSelected(M))}_verifyValueAssignment(M){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(M){if(this.compareWith){for(let D of this._selection)if(this.compareWith(M,D))return D;return M}return M}}let a=(()=>{class m{constructor(){this._listeners=[]}notify(D,I){for(let U of this._listeners)U(D,I)}listen(D){return this._listeners.push(D),()=>{this._listeners=this._listeners.filter(I=>D!==I)}}ngOnDestroy(){this._listeners=[]}static{this.\u0275fac=function(I){return new(I||m)}}static{this.\u0275prov=S.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})();const c=new S.nKC("_ViewRepeater")},78064:(Bt,z,s)=>{"use strict";s.d(z,{Pe:()=>c,Ph:()=>R,lG:()=>E,sU:()=>M});var n=s(31308),l=s(61904),d=s(72653),v=s(76614),S=s(61142),y=s(58527),f=s(25373),O=s(80583),P=s(63997),_=s(43848),i=s(51394),r=s(34593);function a(B,X){}class c{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let M=(()=>{class B extends v.lb{constructor(H,J,re,ie,ve,ue,se,Z){super(),this._elementRef=H,this._focusTrapFactory=J,this._config=ie,this._interactivityChecker=ve,this._ngZone=ue,this._overlayRef=se,this._focusMonitor=Z,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=Se=>{this._portalOutlet.hasAttached();const Ce=this._portalOutlet.attachDomPortal(Se);return this._contentAttached(),Ce},this._document=re,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(H){this._portalOutlet.hasAttached();const J=this._portalOutlet.attachComponentPortal(H);return this._contentAttached(),J}attachTemplatePortal(H){this._portalOutlet.hasAttached();const J=this._portalOutlet.attachTemplatePortal(H);return this._contentAttached(),J}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(H,J){this._interactivityChecker.isFocusable(H)||(H.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const re=()=>{H.removeEventListener("blur",re),H.removeEventListener("mousedown",re),H.removeAttribute("tabindex")};H.addEventListener("blur",re),H.addEventListener("mousedown",re)})),H.focus(J)}_focusByCssSelector(H,J){let re=this._elementRef.nativeElement.querySelector(H);re&&this._forceFocus(re,J)}_trapFocus(){const H=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||H.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(J=>{J||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const H=this._config.restoreFocus;let J=null;if("string"==typeof H?J=this._document.querySelector(H):"boolean"==typeof H?J=H?this._elementFocusedBeforeDialogWasOpened:null:H&&(J=H),this._config.restoreFocus&&J&&"function"==typeof J.focus){const re=(0,d.vc)(),ie=this._elementRef.nativeElement;(!re||re===this._document.body||re===ie||ie.contains(re))&&(this._focusMonitor?(this._focusMonitor.focusVia(J,this._closeInteractionType),this._closeInteractionType=null):J.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const H=this._elementRef.nativeElement,J=(0,d.vc)();return H===J||H.contains(J)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,d.vc)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static{this.\u0275fac=function(J){return new(J||B)(y.rXU(y.aKT),y.rXU(n.GX),y.rXU(S.qQ,8),y.rXU(c),y.rXU(n.Z7),y.rXU(y.SKi),y.rXU(l.yY),y.rXU(n.FN))}}static{this.\u0275cmp=y.VBU({type:B,selectors:[["cdk-dialog-container"]],viewQuery:function(J,re){if(1&J&&y.GBs(v.I3,7),2&J){let ie;y.mGM(ie=y.lsd())&&(re._portalOutlet=ie.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(J,re){2&J&&y.BMQ("id",re._config.id||null)("role",re._config.role)("aria-modal",re._config.ariaModal)("aria-labelledby",re._config.ariaLabel?null:re._ariaLabelledByQueue[0])("aria-label",re._config.ariaLabel)("aria-describedby",re._config.ariaDescribedBy||null)},features:[y.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(J,re){1&J&&y.DNE(0,a,0,0,"ng-template",0)},dependencies:[v.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}}return B})();class D{constructor(X,H){this.overlayRef=X,this.config=H,this.closed=new O.B7,this.disableClose=H.disableClose,this.backdropClick=X.backdropClick(),this.keydownEvents=X.keydownEvents(),this.outsidePointerEvents=X.outsidePointerEvents(),this.id=H.id,this.keydownEvents.subscribe(J=>{J.keyCode===f._f&&!this.disableClose&&!(0,f.rp)(J)&&(J.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=X.detachments().subscribe(()=>{!1!==H.closeOnOverlayDetachments&&this.close()})}close(X,H){if(this.containerInstance){const J=this.closed;this.containerInstance._closeInteractionType=H?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),J.next(X),J.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(X="",H=""){return this.overlayRef.updateSize({width:X,height:H}),this}addPanelClass(X){return this.overlayRef.addPanelClass(X),this}removePanelClass(X){return this.overlayRef.removePanelClass(X),this}}const I=new y.nKC("DialogScrollStrategy"),U=new y.nKC("DialogData"),V=new y.nKC("DefaultDialogConfig"),N={provide:I,deps:[l.hJ],useFactory:function T(B){return()=>B.scrollStrategies.block()}};let L=0,E=(()=>{class B{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(H,J,re,ie,ve,ue){this._overlay=H,this._injector=J,this._defaultOptions=re,this._parentDialog=ie,this._overlayContainer=ve,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new O.B7,this._afterOpenedAtThisLevel=new O.B7,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,P.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,r.Z)(void 0))),this._scrollStrategy=ue}open(H,J){(J={...this._defaultOptions||new c,...J}).id=J.id||"cdk-dialog-"+L++,J.id&&this.getDialogById(J.id);const ie=this._getOverlayConfig(J),ve=this._overlay.create(ie),ue=new D(ve,J),se=this._attachContainer(ve,ue,J);return ue.containerInstance=se,this._attachDialogContent(H,ue,se,J),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(ue),ue.closed.subscribe(()=>this._removeOpenDialog(ue,!0)),this.afterOpened.next(ue),ue}closeAll(){g(this.openDialogs,H=>H.close())}getDialogById(H){return this.openDialogs.find(J=>J.id===H)}ngOnDestroy(){g(this._openDialogsAtThisLevel,H=>{!1===H.config.closeOnDestroy&&this._removeOpenDialog(H,!1)}),g(this._openDialogsAtThisLevel,H=>H.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(H){const J=new l.rR({positionStrategy:H.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:H.scrollStrategy||this._scrollStrategy(),panelClass:H.panelClass,hasBackdrop:H.hasBackdrop,direction:H.direction,minWidth:H.minWidth,minHeight:H.minHeight,maxWidth:H.maxWidth,maxHeight:H.maxHeight,width:H.width,height:H.height,disposeOnNavigation:H.closeOnNavigation});return H.backdropClass&&(J.backdropClass=H.backdropClass),J}_attachContainer(H,J,re){const ie=re.injector||re.viewContainerRef?.injector,ve=[{provide:c,useValue:re},{provide:D,useValue:J},{provide:l.yY,useValue:H}];let ue;re.container?"function"==typeof re.container?ue=re.container:(ue=re.container.type,ve.push(...re.container.providers(re))):ue=M;const se=new v.A8(ue,re.viewContainerRef,y.zZn.create({parent:ie||this._injector,providers:ve}),re.componentFactoryResolver);return H.attach(se).instance}_attachDialogContent(H,J,re,ie){if(H instanceof y.C4Q){const ve=this._createInjector(ie,J,re,void 0);let ue={$implicit:ie.data,dialogRef:J};ie.templateContext&&(ue={...ue,..."function"==typeof ie.templateContext?ie.templateContext():ie.templateContext}),re.attachTemplatePortal(new v.VA(H,null,ue,ve))}else{const ve=this._createInjector(ie,J,re,this._injector),ue=re.attachComponentPortal(new v.A8(H,ie.viewContainerRef,ve,ie.componentFactoryResolver));J.componentRef=ue,J.componentInstance=ue.instance}}_createInjector(H,J,re,ie){const ve=H.injector||H.viewContainerRef?.injector,ue=[{provide:U,useValue:H.data},{provide:D,useValue:J}];return H.providers&&("function"==typeof H.providers?ue.push(...H.providers(J,H,re)):ue.push(...H.providers)),H.direction&&(!ve||!ve.get(i.dS,null,{optional:!0}))&&ue.push({provide:i.dS,useValue:{value:H.direction,change:(0,_.of)()}}),y.zZn.create({parent:ve||ie,providers:ue})}_removeOpenDialog(H,J){const re=this.openDialogs.indexOf(H);re>-1&&(this.openDialogs.splice(re,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((ie,ve)=>{ie?ve.setAttribute("aria-hidden",ie):ve.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),J&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const H=this._overlayContainer.getContainerElement();if(H.parentElement){const J=H.parentElement.children;for(let re=J.length-1;re>-1;re--){const ie=J[re];ie!==H&&"SCRIPT"!==ie.nodeName&&"STYLE"!==ie.nodeName&&!ie.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(ie,ie.getAttribute("aria-hidden")),ie.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const H=this._parentDialog;return H?H._getAfterAllClosed():this._afterAllClosedAtThisLevel}static{this.\u0275fac=function(J){return new(J||B)(y.KVO(l.hJ),y.KVO(y.zZn),y.KVO(V,8),y.KVO(B,12),y.KVO(l.Sf),y.KVO(I))}}static{this.\u0275prov=y.jDH({token:B,factory:B.\u0275fac})}}return B})();function g(B,X){let H=B.length;for(;H--;)X(B[H])}let R=(()=>{class B{static{this.\u0275fac=function(J){return new(J||B)}}static{this.\u0275mod=y.$C({type:B})}static{this.\u0275inj=y.G2t({providers:[E,N],imports:[l.z_,v.jc,n.Pd,v.jc]})}}return B})()},24616:(Bt,z,s)=>{"use strict";s.d(z,{Fb:()=>xe,T1:()=>rt,ad:()=>ke});var n=s(58527),l=s(61142),d=s(64409),v=s(72653),S=s(6364),y=s(31308),f=s(80583),O=s(10399),P=s(892),_=s(27594),i=s(17053),r=s(16229),a=s(4208),c=s(83915),m=s(65706),M=s(34593),D=s(91384),I=s(72147),U=s(51394);function V(be,Ae,qe){for(let Lt in Ae)if(Ae.hasOwnProperty(Lt)){const Zt=Ae[Lt];Zt?be.setProperty(Lt,Zt,qe?.has(Lt)?"important":""):be.removeProperty(Lt)}return be}function T(be,Ae){const qe=Ae?"":"none";V(be.style,{"touch-action":Ae?"":"none","-webkit-user-drag":Ae?"":"none","-webkit-tap-highlight-color":Ae?"":"transparent","user-select":qe,"-ms-user-select":qe,"-webkit-user-select":qe,"-moz-user-select":qe})}function N(be,Ae,qe){V(be.style,{position:Ae?"":"fixed",top:Ae?"":"0",opacity:Ae?"":"0",left:Ae?"":"-999em"},qe)}function L(be,Ae){return Ae&&"none"!=Ae?be+" "+Ae:be}function E(be){const Ae=be.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(be)*Ae}function R(be,Ae){return be.getPropertyValue(Ae).split(",").map(Lt=>Lt.trim())}function B(be){const Ae=be.getBoundingClientRect();return{top:Ae.top,right:Ae.right,bottom:Ae.bottom,left:Ae.left,width:Ae.width,height:Ae.height,x:Ae.x,y:Ae.y}}function X(be,Ae,qe){const{top:Lt,bottom:Zt,left:fn,right:hn}=be;return qe>=Lt&&qe<=Zt&&Ae>=fn&&Ae<=hn}function H(be,Ae,qe){be.top+=Ae,be.bottom=be.top+be.height,be.left+=qe,be.right=be.left+be.width}function J(be,Ae,qe,Lt){const{top:Zt,right:fn,bottom:hn,left:On,width:fi,height:Ji}=be,Fi=fi*Ae,bt=Ji*Ae;return Lt>Zt-bt&&Lt<hn+bt&&qe>On-Fi&&qe<fn+Fi}class re{constructor(Ae){this._document=Ae,this.positions=new Map}clear(){this.positions.clear()}cache(Ae){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),Ae.forEach(qe=>{this.positions.set(qe,{scrollPosition:{top:qe.scrollTop,left:qe.scrollLeft},clientRect:B(qe)})})}handleScroll(Ae){const qe=(0,v.Fb)(Ae),Lt=this.positions.get(qe);if(!Lt)return null;const Zt=Lt.scrollPosition;let fn,hn;if(qe===this._document){const Ji=this.getViewportScrollPosition();fn=Ji.top,hn=Ji.left}else fn=qe.scrollTop,hn=qe.scrollLeft;const On=Zt.top-fn,fi=Zt.left-hn;return this.positions.forEach((Ji,Fi)=>{Ji.clientRect&&qe!==Fi&&qe.contains(Fi)&&H(Ji.clientRect,On,fi)}),Zt.top=fn,Zt.left=hn,{top:On,left:fi}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function ie(be){const Ae=be.cloneNode(!0),qe=Ae.querySelectorAll("[id]"),Lt=be.nodeName.toLowerCase();Ae.removeAttribute("id");for(let Zt=0;Zt<qe.length;Zt++)qe[Zt].removeAttribute("id");return"canvas"===Lt?Z(be,Ae):("input"===Lt||"select"===Lt||"textarea"===Lt)&&se(be,Ae),ve("canvas",be,Ae,Z),ve("input, textarea, select",be,Ae,se),Ae}function ve(be,Ae,qe,Lt){const Zt=Ae.querySelectorAll(be);if(Zt.length){const fn=qe.querySelectorAll(be);for(let hn=0;hn<Zt.length;hn++)Lt(Zt[hn],fn[hn])}}let ue=0;function se(be,Ae){"file"!==Ae.type&&(Ae.value=be.value),"radio"===Ae.type&&Ae.name&&(Ae.name=`mat-clone-${Ae.name}-${ue++}`)}function Z(be,Ae){const qe=Ae.getContext("2d");if(qe)try{qe.drawImage(be,0,0)}catch{}}const Se=(0,v.BQ)({passive:!0}),Ce=(0,v.BQ)({passive:!1}),Xe=new Set(["position"]);class He{get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(Ae){const qe=(0,S.he)(Ae);qe!==this._disabled&&(this._disabled=qe,this._toggleNativeDragInteractions(),this._handles.forEach(Lt=>T(Lt,qe)))}constructor(Ae,qe,Lt,Zt,fn,hn){this._config=qe,this._document=Lt,this._ngZone=Zt,this._viewportRuler=fn,this._dragDropRegistry=hn,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new f.B7,this._pointerMoveSubscription=O.y.EMPTY,this._pointerUpSubscription=O.y.EMPTY,this._scrollSubscription=O.y.EMPTY,this._resizeSubscription=O.y.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new f.B7,this.started=new f.B7,this.released=new f.B7,this.ended=new f.B7,this.entered=new f.B7,this.exited=new f.B7,this.dropped=new f.B7,this.moved=this._moveEvents,this._pointerDown=On=>{if(this.beforeStarted.next(),this._handles.length){const fi=this._getTargetHandle(On);fi&&!this._disabledHandles.has(fi)&&!this.disabled&&this._initializeDragSequence(fi,On)}else this.disabled||this._initializeDragSequence(this._rootElement,On)},this._pointerMove=On=>{const fi=this._getPointerPositionOnPage(On);if(!this._hasStartedDragging){if(Math.abs(fi.x-this._pickupPositionOnPage.x)+Math.abs(fi.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const Pt=Date.now()>=this._dragStartTime+this._getDragStartDelay(On),jt=this._dropContainer;if(!Pt)return void this._endDragSequence(On);(!jt||!jt.isDragging()&&!jt.isReceiving())&&(On.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(On)))}return}On.preventDefault();const Ji=this._getConstrainedPointerPosition(fi);if(this._hasMoved=!0,this._lastKnownPointerPosition=fi,this._updatePointerDirectionDelta(Ji),this._dropContainer)this._updateActiveDropContainer(Ji,fi);else{const Fi=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,bt=this._activeTransform;bt.x=Ji.x-Fi.x+this._passiveTransform.x,bt.y=Ji.y-Fi.y+this._passiveTransform.y,this._applyRootElementTransform(bt.x,bt.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:Ji,event:On,distance:this._getDragDistance(Ji),delta:this._pointerDirectionDelta})})},this._pointerUp=On=>{this._endDragSequence(On)},this._nativeDragStart=On=>{if(this._handles.length){const fi=this._getTargetHandle(On);fi&&!this._disabledHandles.has(fi)&&!this.disabled&&On.preventDefault()}else this.disabled||On.preventDefault()},this.withRootElement(Ae).withParent(qe.parentDragRef||null),this._parentPositions=new re(Lt),hn.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(Ae){this._handles=Ae.map(Lt=>(0,S.i8)(Lt)),this._handles.forEach(Lt=>T(Lt,this.disabled)),this._toggleNativeDragInteractions();const qe=new Set;return this._disabledHandles.forEach(Lt=>{this._handles.indexOf(Lt)>-1&&qe.add(Lt)}),this._disabledHandles=qe,this}withPreviewTemplate(Ae){return this._previewTemplate=Ae,this}withPlaceholderTemplate(Ae){return this._placeholderTemplate=Ae,this}withRootElement(Ae){const qe=(0,S.i8)(Ae);return qe!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{qe.addEventListener("mousedown",this._pointerDown,Ce),qe.addEventListener("touchstart",this._pointerDown,Se),qe.addEventListener("dragstart",this._nativeDragStart,Ce)}),this._initialTransform=void 0,this._rootElement=qe),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(Ae){return this._boundaryElement=Ae?(0,S.i8)(Ae):null,this._resizeSubscription.unsubscribe(),Ae&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(Ae){return this._parentDragRef=Ae,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(Ae){!this._disabledHandles.has(Ae)&&this._handles.indexOf(Ae)>-1&&(this._disabledHandles.add(Ae),T(Ae,!0))}enableHandle(Ae){this._disabledHandles.has(Ae)&&(this._disabledHandles.delete(Ae),T(Ae,this.disabled))}withDirection(Ae){return this._direction=Ae,this}_withDropContainer(Ae){this._dropContainer=Ae}getFreeDragPosition(){const Ae=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:Ae.x,y:Ae.y}}setFreeDragPosition(Ae){return this._activeTransform={x:0,y:0},this._passiveTransform.x=Ae.x,this._passiveTransform.y=Ae.y,this._dropContainer||this._applyRootElementTransform(Ae.x,Ae.y),this}withPreviewContainer(Ae){return this._previewContainer=Ae,this}_sortFromLastPointerPosition(){const Ae=this._lastKnownPointerPosition;Ae&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(Ae),Ae)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(Ae){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:Ae}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(Ae),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const qe=this._getPointerPositionOnPage(Ae);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(qe),dropPoint:qe,event:Ae})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(Ae){A(Ae)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const qe=this._dropContainer;if(qe){const Lt=this._rootElement,Zt=Lt.parentNode,fn=this._placeholder=this._createPlaceholderElement(),hn=this._anchor=this._anchor||this._document.createComment(""),On=this._getShadowRoot();Zt.insertBefore(hn,Lt),this._initialTransform=Lt.style.transform||"",this._preview=this._createPreviewElement(),N(Lt,!1,Xe),this._document.body.appendChild(Zt.replaceChild(fn,Lt)),this._getPreviewInsertionPoint(Zt,On).appendChild(this._preview),this.started.next({source:this,event:Ae}),qe.start(),this._initialContainer=qe,this._initialIndex=qe.getItemIndex(this)}else this.started.next({source:this,event:Ae}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(qe?qe.getScrollableParents():[])}_initializeDragSequence(Ae,qe){this._parentDragRef&&qe.stopPropagation();const Lt=this.isDragging(),Zt=A(qe),fn=!Zt&&0!==qe.button,hn=this._rootElement,On=(0,v.Fb)(qe),fi=!Zt&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),Ji=Zt?(0,y.w6)(qe):(0,y._G)(qe);if(On&&On.draggable&&"mousedown"===qe.type&&qe.preventDefault(),Lt||fn||fi||Ji)return;if(this._handles.length){const bn=hn.style;this._rootElementTapHighlight=bn.webkitTapHighlightColor||"",bn.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(bn=>this._updateOnScroll(bn)),this._boundaryElement&&(this._boundaryRect=B(this._boundaryElement));const Fi=this._previewTemplate;this._pickupPositionInElement=Fi&&Fi.template&&!Fi.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,Ae,qe);const bt=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(qe);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:bt.x,y:bt.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,qe)}_cleanupDragArtifacts(Ae){N(this._rootElement,!0,Xe),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const qe=this._dropContainer,Lt=qe.getItemIndex(this),Zt=this._getPointerPositionOnPage(Ae),fn=this._getDragDistance(Zt),hn=qe._isOverContainer(Zt.x,Zt.y);this.ended.next({source:this,distance:fn,dropPoint:Zt,event:Ae}),this.dropped.next({item:this,currentIndex:Lt,previousIndex:this._initialIndex,container:qe,previousContainer:this._initialContainer,isPointerOverContainer:hn,distance:fn,dropPoint:Zt,event:Ae}),qe.drop(this,Lt,this._initialIndex,this._initialContainer,hn,fn,Zt,Ae),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:Ae,y:qe},{x:Lt,y:Zt}){let fn=this._initialContainer._getSiblingContainerFromPosition(this,Ae,qe);!fn&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(Ae,qe)&&(fn=this._initialContainer),fn&&fn!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=fn,this._dropContainer.enter(this,Ae,qe,fn===this._initialContainer&&fn.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:fn,currentIndex:fn.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(Lt,Zt),this._dropContainer._sortItem(this,Ae,qe,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(Ae,qe):this._applyPreviewTransform(Ae-this._pickupPositionInElement.x,qe-this._pickupPositionInElement.y))}_createPreviewElement(){const Ae=this._previewTemplate,qe=this.previewClass,Lt=Ae?Ae.template:null;let Zt;if(Lt&&Ae){const fn=Ae.matchSize?this._initialClientRect:null,hn=Ae.viewContainer.createEmbeddedView(Lt,Ae.context);hn.detectChanges(),Zt=me(hn,this._document),this._previewRef=hn,Ae.matchSize?ne(Zt,fn):Zt.style.transform=Me(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else Zt=ie(this._rootElement),ne(Zt,this._initialClientRect),this._initialTransform&&(Zt.style.transform=this._initialTransform);return V(Zt.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Xe),T(Zt,!1),Zt.classList.add("cdk-drag-preview"),Zt.setAttribute("dir",this._direction),qe&&(Array.isArray(qe)?qe.forEach(fn=>Zt.classList.add(fn)):Zt.classList.add(qe)),Zt}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const Ae=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(Ae.left,Ae.top);const qe=function g(be){const Ae=getComputedStyle(be),qe=R(Ae,"transition-property"),Lt=qe.find(On=>"transform"===On||"all"===On);if(!Lt)return 0;const Zt=qe.indexOf(Lt),fn=R(Ae,"transition-duration"),hn=R(Ae,"transition-delay");return E(fn[Zt])+E(hn[Zt])}(this._preview);return 0===qe?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(Lt=>{const Zt=hn=>{(!hn||(0,v.Fb)(hn)===this._preview&&"transform"===hn.propertyName)&&(this._preview?.removeEventListener("transitionend",Zt),Lt(),clearTimeout(fn))},fn=setTimeout(Zt,1.5*qe);this._preview.addEventListener("transitionend",Zt)}))}_createPlaceholderElement(){const Ae=this._placeholderTemplate,qe=Ae?Ae.template:null;let Lt;return qe?(this._placeholderRef=Ae.viewContainer.createEmbeddedView(qe,Ae.context),this._placeholderRef.detectChanges(),Lt=me(this._placeholderRef,this._document)):Lt=ie(this._rootElement),Lt.style.pointerEvents="none",Lt.classList.add("cdk-drag-placeholder"),Lt}_getPointerPositionInElement(Ae,qe,Lt){const Zt=qe===this._rootElement?null:qe,fn=Zt?Zt.getBoundingClientRect():Ae,hn=A(Lt)?Lt.targetTouches[0]:Lt,On=this._getViewportScrollPosition();return{x:fn.left-Ae.left+(hn.pageX-fn.left-On.left),y:fn.top-Ae.top+(hn.pageY-fn.top-On.top)}}_getPointerPositionOnPage(Ae){const qe=this._getViewportScrollPosition(),Lt=A(Ae)?Ae.touches[0]||Ae.changedTouches[0]||{pageX:0,pageY:0}:Ae,Zt=Lt.pageX-qe.left,fn=Lt.pageY-qe.top;if(this._ownerSVGElement){const hn=this._ownerSVGElement.getScreenCTM();if(hn){const On=this._ownerSVGElement.createSVGPoint();return On.x=Zt,On.y=fn,On.matrixTransform(hn.inverse())}}return{x:Zt,y:fn}}_getConstrainedPointerPosition(Ae){const qe=this._dropContainer?this._dropContainer.lockAxis:null;let{x:Lt,y:Zt}=this.constrainPosition?this.constrainPosition(Ae,this,this._initialClientRect,this._pickupPositionInElement):Ae;if("x"===this.lockAxis||"x"===qe?Zt=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):("y"===this.lockAxis||"y"===qe)&&(Lt=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){const{x:fn,y:hn}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,On=this._boundaryRect,{width:fi,height:Ji}=this._getPreviewRect(),Fi=On.top+hn,bt=On.bottom-(Ji-hn);Lt=Q(Lt,On.left+fn,On.right-(fi-fn)),Zt=Q(Zt,Fi,bt)}return{x:Lt,y:Zt}}_updatePointerDirectionDelta(Ae){const{x:qe,y:Lt}=Ae,Zt=this._pointerDirectionDelta,fn=this._pointerPositionAtLastDirectionChange,hn=Math.abs(qe-fn.x),On=Math.abs(Lt-fn.y);return hn>this._config.pointerDirectionChangeThreshold&&(Zt.x=qe>fn.x?1:-1,fn.x=qe),On>this._config.pointerDirectionChangeThreshold&&(Zt.y=Lt>fn.y?1:-1,fn.y=Lt),Zt}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const Ae=this._handles.length>0||!this.isDragging();Ae!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=Ae,T(this._rootElement,Ae))}_removeRootElementListeners(Ae){Ae.removeEventListener("mousedown",this._pointerDown,Ce),Ae.removeEventListener("touchstart",this._pointerDown,Se),Ae.removeEventListener("dragstart",this._nativeDragStart,Ce)}_applyRootElementTransform(Ae,qe){const Lt=Me(Ae,qe),Zt=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=Zt.transform&&"none"!=Zt.transform?Zt.transform:""),Zt.transform=L(Lt,this._initialTransform)}_applyPreviewTransform(Ae,qe){const Lt=this._previewTemplate?.template?void 0:this._initialTransform,Zt=Me(Ae,qe);this._preview.style.transform=L(Zt,Lt)}_getDragDistance(Ae){const qe=this._pickupPositionOnPage;return qe?{x:Ae.x-qe.x,y:Ae.y-qe.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:Ae,y:qe}=this._passiveTransform;if(0===Ae&&0===qe||this.isDragging()||!this._boundaryElement)return;const Lt=this._rootElement.getBoundingClientRect(),Zt=this._boundaryElement.getBoundingClientRect();if(0===Zt.width&&0===Zt.height||0===Lt.width&&0===Lt.height)return;const fn=Zt.left-Lt.left,hn=Lt.right-Zt.right,On=Zt.top-Lt.top,fi=Lt.bottom-Zt.bottom;Zt.width>Lt.width?(fn>0&&(Ae+=fn),hn>0&&(Ae-=hn)):Ae=0,Zt.height>Lt.height?(On>0&&(qe+=On),fi>0&&(qe-=fi)):qe=0,(Ae!==this._passiveTransform.x||qe!==this._passiveTransform.y)&&this.setFreeDragPosition({y:qe,x:Ae})}_getDragStartDelay(Ae){const qe=this.dragStartDelay;return"number"==typeof qe?qe:A(Ae)?qe.touch:qe?qe.mouse:0}_updateOnScroll(Ae){const qe=this._parentPositions.handleScroll(Ae);if(qe){const Lt=(0,v.Fb)(Ae);this._boundaryRect&&Lt!==this._boundaryElement&&Lt.contains(this._boundaryElement)&&H(this._boundaryRect,qe.top,qe.left),this._pickupPositionOnPage.x+=qe.left,this._pickupPositionOnPage.y+=qe.top,this._dropContainer||(this._activeTransform.x-=qe.left,this._activeTransform.y-=qe.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,v.KT)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(Ae,qe){const Lt=this._previewContainer||"global";if("parent"===Lt)return Ae;if("global"===Lt){const Zt=this._document;return qe||Zt.fullscreenElement||Zt.webkitFullscreenElement||Zt.mozFullScreenElement||Zt.msFullscreenElement||Zt.body}return(0,S.i8)(Lt)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(Ae){return this._handles.find(qe=>Ae.target&&(Ae.target===qe||qe.contains(Ae.target)))}}function Me(be,Ae){return`translate3d(${Math.round(be)}px, ${Math.round(Ae)}px, 0)`}function Q(be,Ae,qe){return Math.max(Ae,Math.min(qe,be))}function A(be){return"t"===be.type[0]}function me(be,Ae){const qe=be.rootNodes;if(1===qe.length&&qe[0].nodeType===Ae.ELEMENT_NODE)return qe[0];const Lt=Ae.createElement("div");return qe.forEach(Zt=>Lt.appendChild(Zt)),Lt}function ne(be,Ae){be.style.width=`${Ae.width}px`,be.style.height=`${Ae.height}px`,be.style.transform=Me(Ae.left,Ae.top)}function le(be,Ae){return Math.max(0,Math.min(Ae,be))}class Pe{constructor(Ae,qe){this._element=Ae,this._dragDropRegistry=qe,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(Ae){this.withItems(Ae)}sort(Ae,qe,Lt,Zt){const fn=this._itemPositions,hn=this._getItemIndexFromPointerPosition(Ae,qe,Lt,Zt);if(-1===hn&&fn.length>0)return null;const On="horizontal"===this.orientation,fi=fn.findIndex(ui=>ui.drag===Ae),Ji=fn[hn],bt=Ji.clientRect,bn=fi>hn?1:-1,Pt=this._getItemOffsetPx(fn[fi].clientRect,bt,bn),jt=this._getSiblingOffsetPx(fi,fn,bn),gn=fn.slice();return function G(be,Ae,qe){const Lt=le(Ae,be.length-1),Zt=le(qe,be.length-1);if(Lt===Zt)return;const fn=be[Lt],hn=Zt<Lt?-1:1;for(let On=Lt;On!==Zt;On+=hn)be[On]=be[On+hn];be[Zt]=fn}(fn,fi,hn),fn.forEach((ui,Ii)=>{if(gn[Ii]===ui)return;const pr=ui.drag===Ae,zr=pr?Pt:jt,Cn=pr?Ae.getPlaceholderElement():ui.drag.getRootElement();ui.offset+=zr,On?(Cn.style.transform=L(`translate3d(${Math.round(ui.offset)}px, 0, 0)`,ui.initialTransform),H(ui.clientRect,0,zr)):(Cn.style.transform=L(`translate3d(0, ${Math.round(ui.offset)}px, 0)`,ui.initialTransform),H(ui.clientRect,zr,0))}),this._previousSwap.overlaps=X(bt,qe,Lt),this._previousSwap.drag=Ji.drag,this._previousSwap.delta=On?Zt.x:Zt.y,{previousIndex:fi,currentIndex:hn}}enter(Ae,qe,Lt,Zt){const fn=null==Zt||Zt<0?this._getItemIndexFromPointerPosition(Ae,qe,Lt):Zt,hn=this._activeDraggables,On=hn.indexOf(Ae),fi=Ae.getPlaceholderElement();let Ji=hn[fn];if(Ji===Ae&&(Ji=hn[fn+1]),!Ji&&(null==fn||-1===fn||fn<hn.length-1)&&this._shouldEnterAsFirstChild(qe,Lt)&&(Ji=hn[0]),On>-1&&hn.splice(On,1),Ji&&!this._dragDropRegistry.isDragging(Ji)){const Fi=Ji.getRootElement();Fi.parentElement.insertBefore(fi,Fi),hn.splice(fn,0,Ae)}else(0,S.i8)(this._element).appendChild(fi),hn.push(Ae);fi.style.transform="",this._cacheItemPositions()}withItems(Ae){this._activeDraggables=Ae.slice(),this._cacheItemPositions()}withSortPredicate(Ae){this._sortPredicate=Ae}reset(){this._activeDraggables.forEach(Ae=>{const qe=Ae.getRootElement();if(qe){const Lt=this._itemPositions.find(Zt=>Zt.drag===Ae)?.initialTransform;qe.style.transform=Lt||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(Ae){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(Lt=>Lt.drag===Ae)}updateOnScroll(Ae,qe){this._itemPositions.forEach(({clientRect:Lt})=>{H(Lt,Ae,qe)}),this._itemPositions.forEach(({drag:Lt})=>{this._dragDropRegistry.isDragging(Lt)&&Lt._sortFromLastPointerPosition()})}_cacheItemPositions(){const Ae="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(qe=>{const Lt=qe.getVisibleElement();return{drag:qe,offset:0,initialTransform:Lt.style.transform||"",clientRect:B(Lt)}}).sort((qe,Lt)=>Ae?qe.clientRect.left-Lt.clientRect.left:qe.clientRect.top-Lt.clientRect.top)}_getItemOffsetPx(Ae,qe,Lt){const Zt="horizontal"===this.orientation;let fn=Zt?qe.left-Ae.left:qe.top-Ae.top;return-1===Lt&&(fn+=Zt?qe.width-Ae.width:qe.height-Ae.height),fn}_getSiblingOffsetPx(Ae,qe,Lt){const Zt="horizontal"===this.orientation,fn=qe[Ae].clientRect,hn=qe[Ae+-1*Lt];let On=fn[Zt?"width":"height"]*Lt;if(hn){const fi=Zt?"left":"top",Ji=Zt?"right":"bottom";-1===Lt?On-=hn.clientRect[fi]-fn[Ji]:On+=fn[fi]-hn.clientRect[Ji]}return On}_shouldEnterAsFirstChild(Ae,qe){if(!this._activeDraggables.length)return!1;const Lt=this._itemPositions,Zt="horizontal"===this.orientation;if(Lt[0].drag!==this._activeDraggables[0]){const hn=Lt[Lt.length-1].clientRect;return Zt?Ae>=hn.right:qe>=hn.bottom}{const hn=Lt[0].clientRect;return Zt?Ae<=hn.left:qe<=hn.top}}_getItemIndexFromPointerPosition(Ae,qe,Lt,Zt){const fn="horizontal"===this.orientation,hn=this._itemPositions.findIndex(({drag:On,clientRect:fi})=>On!==Ae&&((!Zt||On!==this._previousSwap.drag||!this._previousSwap.overlaps||(fn?Zt.x:Zt.y)!==this._previousSwap.delta)&&(fn?qe>=Math.floor(fi.left)&&qe<Math.floor(fi.right):Lt>=Math.floor(fi.top)&&Lt<Math.floor(fi.bottom))));return-1!==hn&&this._sortPredicate(hn,Ae)?hn:-1}}class Le{constructor(Ae,qe,Lt,Zt,fn){this._dragDropRegistry=qe,this._ngZone=Zt,this._viewportRuler=fn,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new f.B7,this.entered=new f.B7,this.exited=new f.B7,this.dropped=new f.B7,this.sorted=new f.B7,this.receivingStarted=new f.B7,this.receivingStopped=new f.B7,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=O.y.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new f.B7,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,P.Y)(0,_.X).pipe((0,a.Q)(this._stopScrollTimers)).subscribe(()=>{const hn=this._scrollNode,On=this.autoScrollStep;1===this._verticalScrollDirection?hn.scrollBy(0,-On):2===this._verticalScrollDirection&&hn.scrollBy(0,On),1===this._horizontalScrollDirection?hn.scrollBy(-On,0):2===this._horizontalScrollDirection&&hn.scrollBy(On,0)})},this.element=(0,S.i8)(Ae),this._document=Lt,this.withScrollableParents([this.element]),qe.registerDropContainer(this),this._parentPositions=new re(Lt),this._sortStrategy=new Pe(this.element,qe),this._sortStrategy.withSortPredicate((hn,On)=>this.sortPredicate(hn,On,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(Ae,qe,Lt,Zt){this._draggingStarted(),null==Zt&&this.sortingDisabled&&(Zt=this._draggables.indexOf(Ae)),this._sortStrategy.enter(Ae,qe,Lt,Zt),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:Ae,container:this,currentIndex:this.getItemIndex(Ae)})}exit(Ae){this._reset(),this.exited.next({item:Ae,container:this})}drop(Ae,qe,Lt,Zt,fn,hn,On,fi={}){this._reset(),this.dropped.next({item:Ae,currentIndex:qe,previousIndex:Lt,container:this,previousContainer:Zt,isPointerOverContainer:fn,distance:hn,dropPoint:On,event:fi})}withItems(Ae){const qe=this._draggables;return this._draggables=Ae,Ae.forEach(Lt=>Lt._withDropContainer(this)),this.isDragging()&&(qe.filter(Zt=>Zt.isDragging()).every(Zt=>-1===Ae.indexOf(Zt))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(Ae){return this._sortStrategy.direction=Ae,this}connectedTo(Ae){return this._siblings=Ae.slice(),this}withOrientation(Ae){return this._sortStrategy.orientation=Ae,this}withScrollableParents(Ae){const qe=(0,S.i8)(this.element);return this._scrollableElements=-1===Ae.indexOf(qe)?[qe,...Ae]:Ae.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(Ae){return this._isDragging?this._sortStrategy.getItemIndex(Ae):this._draggables.indexOf(Ae)}isReceiving(){return this._activeSiblings.size>0}_sortItem(Ae,qe,Lt,Zt){if(this.sortingDisabled||!this._clientRect||!J(this._clientRect,.05,qe,Lt))return;const fn=this._sortStrategy.sort(Ae,qe,Lt,Zt);fn&&this.sorted.next({previousIndex:fn.previousIndex,currentIndex:fn.currentIndex,container:this,item:Ae})}_startScrollingIfNecessary(Ae,qe){if(this.autoScrollDisabled)return;let Lt,Zt=0,fn=0;if(this._parentPositions.positions.forEach((hn,On)=>{On===this._document||!hn.clientRect||Lt||J(hn.clientRect,.05,Ae,qe)&&([Zt,fn]=function Ze(be,Ae,qe,Lt){const Zt=Et(Ae,Lt),fn=$e(Ae,qe);let hn=0,On=0;if(Zt){const fi=be.scrollTop;1===Zt?fi>0&&(hn=1):be.scrollHeight-fi>be.clientHeight&&(hn=2)}if(fn){const fi=be.scrollLeft;1===fn?fi>0&&(On=1):be.scrollWidth-fi>be.clientWidth&&(On=2)}return[hn,On]}(On,hn.clientRect,Ae,qe),(Zt||fn)&&(Lt=On))}),!Zt&&!fn){const{width:hn,height:On}=this._viewportRuler.getViewportSize(),fi={width:hn,height:On,top:0,right:hn,bottom:On,left:0};Zt=Et(fi,qe),fn=$e(fi,Ae),Lt=window}Lt&&(Zt!==this._verticalScrollDirection||fn!==this._horizontalScrollDirection||Lt!==this._scrollNode)&&(this._verticalScrollDirection=Zt,this._horizontalScrollDirection=fn,this._scrollNode=Lt,(Zt||fn)&&Lt?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const Ae=(0,S.i8)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=Ae.msScrollSnapType||Ae.scrollSnapType||"",Ae.scrollSnapType=Ae.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const Ae=(0,S.i8)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(Ae).clientRect}_reset(){this._isDragging=!1;const Ae=(0,S.i8)(this.element).style;Ae.scrollSnapType=Ae.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(qe=>qe._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(Ae,qe){return null!=this._clientRect&&X(this._clientRect,Ae,qe)}_getSiblingContainerFromPosition(Ae,qe,Lt){return this._siblings.find(Zt=>Zt._canReceive(Ae,qe,Lt))}_canReceive(Ae,qe,Lt){if(!this._clientRect||!X(this._clientRect,qe,Lt)||!this.enterPredicate(Ae,this))return!1;const Zt=this._getShadowRoot().elementFromPoint(qe,Lt);if(!Zt)return!1;const fn=(0,S.i8)(this.element);return Zt===fn||fn.contains(Zt)}_startReceiving(Ae,qe){const Lt=this._activeSiblings;!Lt.has(Ae)&&qe.every(Zt=>this.enterPredicate(Zt,this)||this._draggables.indexOf(Zt)>-1)&&(Lt.add(Ae),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:Ae,receiver:this,items:qe}))}_stopReceiving(Ae){this._activeSiblings.delete(Ae),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:Ae,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Ae=>{if(this.isDragging()){const qe=this._parentPositions.handleScroll(Ae);qe&&this._sortStrategy.updateOnScroll(qe.top,qe.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const Ae=(0,v.KT)((0,S.i8)(this.element));this._cachedShadowRoot=Ae||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const Ae=this._sortStrategy.getActiveItemsSnapshot().filter(qe=>qe.isDragging());this._siblings.forEach(qe=>qe._startReceiving(this,Ae))}}function Et(be,Ae){const{top:qe,bottom:Lt,height:Zt}=be,fn=.05*Zt;return Ae>=qe-fn&&Ae<=qe+fn?1:Ae>=Lt-fn&&Ae<=Lt+fn?2:0}function $e(be,Ae){const{left:qe,right:Lt,width:Zt}=be,fn=.05*Zt;return Ae>=qe-fn&&Ae<=qe+fn?1:Ae>=Lt-fn&&Ae<=Lt+fn?2:0}const Qe=(0,v.BQ)({passive:!1,capture:!0});let Ve=(()=>{class be{constructor(qe,Lt){this._ngZone=qe,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=Zt=>Zt.isDragging(),this.pointerMove=new f.B7,this.pointerUp=new f.B7,this.scroll=new f.B7,this._preventDefaultWhileDragging=Zt=>{this._activeDragInstances.length>0&&Zt.preventDefault()},this._persistentTouchmoveListener=Zt=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&Zt.preventDefault(),this.pointerMove.next(Zt))},this._document=Lt}registerDropContainer(qe){this._dropInstances.has(qe)||this._dropInstances.add(qe)}registerDragItem(qe){this._dragInstances.add(qe),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Qe)})}removeDropContainer(qe){this._dropInstances.delete(qe)}removeDragItem(qe){this._dragInstances.delete(qe),this.stopDragging(qe),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Qe)}startDragging(qe,Lt){if(!(this._activeDragInstances.indexOf(qe)>-1)&&(this._activeDragInstances.push(qe),1===this._activeDragInstances.length)){const Zt=Lt.type.startsWith("touch");this._globalListeners.set(Zt?"touchend":"mouseup",{handler:fn=>this.pointerUp.next(fn),options:!0}).set("scroll",{handler:fn=>this.scroll.next(fn),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Qe}),Zt||this._globalListeners.set("mousemove",{handler:fn=>this.pointerMove.next(fn),options:Qe}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((fn,hn)=>{this._document.addEventListener(hn,fn.handler,fn.options)})})}}stopDragging(qe){const Lt=this._activeDragInstances.indexOf(qe);Lt>-1&&(this._activeDragInstances.splice(Lt,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(qe){return this._activeDragInstances.indexOf(qe)>-1}scrolled(qe){const Lt=[this.scroll];return qe&&qe!==this._document&&Lt.push(new i.c(Zt=>this._ngZone.runOutsideAngular(()=>{const hn=On=>{this._activeDragInstances.length&&Zt.next(On)};return qe.addEventListener("scroll",hn,!0),()=>{qe.removeEventListener("scroll",hn,!0)}}))),(0,r.h)(...Lt)}ngOnDestroy(){this._dragInstances.forEach(qe=>this.removeDragItem(qe)),this._dropInstances.forEach(qe=>this.removeDropContainer(qe)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((qe,Lt)=>{this._document.removeEventListener(Lt,qe.handler,qe.options)}),this._globalListeners.clear()}static{this.\u0275fac=function(Lt){return new(Lt||be)(n.KVO(n.SKi),n.KVO(l.qQ))}}static{this.\u0275prov=n.jDH({token:be,factory:be.\u0275fac,providedIn:"root"})}}return be})();const nt={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Ot=(()=>{class be{constructor(qe,Lt,Zt,fn){this._document=qe,this._ngZone=Lt,this._viewportRuler=Zt,this._dragDropRegistry=fn}createDrag(qe,Lt=nt){return new He(qe,Lt,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(qe){return new Le(qe,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static{this.\u0275fac=function(Lt){return new(Lt||be)(n.KVO(l.qQ),n.KVO(n.SKi),n.KVO(d.Xj),n.KVO(Ve))}}static{this.\u0275prov=n.jDH({token:be,factory:be.\u0275fac,providedIn:"root"})}}return be})();const at=new n.nKC("CDK_DRAG_PARENT"),We=new n.nKC("CdkDragHandle");let xe=(()=>{class be{get disabled(){return this._disabled}set disabled(qe){this._disabled=(0,S.he)(qe),this._stateChanges.next(this)}constructor(qe,Lt){this.element=qe,this._stateChanges=new f.B7,this._disabled=!1,this._parentDrag=Lt}ngOnDestroy(){this._stateChanges.complete()}static{this.\u0275fac=function(Lt){return new(Lt||be)(n.rXU(n.aKT),n.rXU(at,12))}}static{this.\u0275dir=n.FsC({type:be,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[n.Mj6.None,"cdkDragHandleDisabled","disabled"]},standalone:!0,features:[n.Jv_([{provide:We,useExisting:be}])]})}}return be})();const lt=new n.nKC("CdkDragPlaceholder"),ht=new n.nKC("CdkDragPreview"),Ht=new n.nKC("CDK_DRAG_CONFIG"),tt=new n.nKC("CdkDropList");let rt=(()=>{class be{static{this._dragInstances=[]}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(qe){this._disabled=(0,S.he)(qe),this._dragRef.disabled=this._disabled}constructor(qe,Lt,Zt,fn,hn,On,fi,Ji,Fi,bt,bn){this.element=qe,this.dropContainer=Lt,this._ngZone=fn,this._viewContainerRef=hn,this._dir=fi,this._changeDetectorRef=Fi,this._selfHandle=bt,this._parentDrag=bn,this._destroyed=new f.B7,this.started=new n.bkB,this.released=new n.bkB,this.ended=new n.bkB,this.entered=new n.bkB,this.exited=new n.bkB,this.dropped=new n.bkB,this.moved=new i.c(Pt=>{const jt=this._dragRef.moved.pipe((0,c.T)(gn=>({source:this,pointerPosition:gn.pointerPosition,event:gn.event,delta:gn.delta,distance:gn.distance}))).subscribe(Pt);return()=>{jt.unsubscribe()}}),this._dragRef=Ji.createDrag(qe,{dragStartThreshold:On&&null!=On.dragStartThreshold?On.dragStartThreshold:5,pointerDirectionChangeThreshold:On&&null!=On.pointerDirectionChangeThreshold?On.pointerDirectionChangeThreshold:5,zIndex:On?.zIndex}),this._dragRef.data=this,be._dragInstances.push(this),On&&this._assignDefaults(On),Lt&&(this._dragRef._withDropContainer(Lt._dropListRef),Lt.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(qe){this._dragRef.setFreeDragPosition(qe)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,m.s)(1),(0,a.Q)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(qe){const Lt=qe.rootElementSelector,Zt=qe.freeDragPosition;Lt&&!Lt.firstChange&&this._updateRootElement(),Zt&&!Zt.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const qe=be._dragInstances.indexOf(this);qe>-1&&be._dragInstances.splice(qe,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const qe=this.element.nativeElement;let Lt=qe;this.rootElementSelector&&(Lt=void 0!==qe.closest?qe.closest(this.rootElementSelector):qe.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(Lt||qe)}_getBoundaryElement(){const qe=this.boundaryElement;return qe?"string"==typeof qe?this.element.nativeElement.closest(qe):(0,S.i8)(qe):null}_syncInputs(qe){qe.beforeStarted.subscribe(()=>{if(!qe.isDragging()){const Lt=this._dir,Zt=this.dragStartDelay,fn=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,hn=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;qe.disabled=this.disabled,qe.lockAxis=this.lockAxis,qe.dragStartDelay="object"==typeof Zt&&Zt?Zt:(0,S.OE)(Zt),qe.constrainPosition=this.constrainPosition,qe.previewClass=this.previewClass,qe.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(fn).withPreviewTemplate(hn).withPreviewContainer(this.previewContainer||"global"),Lt&&qe.withDirection(Lt.value)}}),qe.beforeStarted.pipe((0,m.s)(1)).subscribe(()=>{if(this._parentDrag)return void qe.withParent(this._parentDrag._dragRef);let Lt=this.element.nativeElement.parentElement;for(;Lt;){if(Lt.classList.contains("cdk-drag")){qe.withParent(be._dragInstances.find(Zt=>Zt.element.nativeElement===Lt)?._dragRef||null);break}Lt=Lt.parentElement}})}_handleEvents(qe){qe.started.subscribe(Lt=>{this.started.emit({source:this,event:Lt.event}),this._changeDetectorRef.markForCheck()}),qe.released.subscribe(Lt=>{this.released.emit({source:this,event:Lt.event})}),qe.ended.subscribe(Lt=>{this.ended.emit({source:this,distance:Lt.distance,dropPoint:Lt.dropPoint,event:Lt.event}),this._changeDetectorRef.markForCheck()}),qe.entered.subscribe(Lt=>{this.entered.emit({container:Lt.container.data,item:this,currentIndex:Lt.currentIndex})}),qe.exited.subscribe(Lt=>{this.exited.emit({container:Lt.container.data,item:this})}),qe.dropped.subscribe(Lt=>{this.dropped.emit({previousIndex:Lt.previousIndex,currentIndex:Lt.currentIndex,previousContainer:Lt.previousContainer.data,container:Lt.container.data,isPointerOverContainer:Lt.isPointerOverContainer,item:this,distance:Lt.distance,dropPoint:Lt.dropPoint,event:Lt.event})})}_assignDefaults(qe){const{lockAxis:Lt,dragStartDelay:Zt,constrainPosition:fn,previewClass:hn,boundaryElement:On,draggingDisabled:fi,rootElementSelector:Ji,previewContainer:Fi}=qe;this.disabled=fi??!1,this.dragStartDelay=Zt||0,Lt&&(this.lockAxis=Lt),fn&&(this.constrainPosition=fn),hn&&(this.previewClass=hn),On&&(this.boundaryElement=On),Ji&&(this.rootElementSelector=Ji),Fi&&(this.previewContainer=Fi)}_setupHandlesListener(){this._handles.changes.pipe((0,M.Z)(this._handles),(0,D.M)(qe=>{const Lt=qe.filter(Zt=>Zt._parentDrag===this).map(Zt=>Zt.element);this._selfHandle&&this.rootElementSelector&&Lt.push(this.element),this._dragRef.withHandles(Lt)}),(0,I.n)(qe=>(0,r.h)(...qe.map(Lt=>Lt._stateChanges.pipe((0,M.Z)(Lt))))),(0,a.Q)(this._destroyed)).subscribe(qe=>{const Lt=this._dragRef,Zt=qe.element.nativeElement;qe.disabled?Lt.disableHandle(Zt):Lt.enableHandle(Zt)})}static{this.\u0275fac=function(Lt){return new(Lt||be)(n.rXU(n.aKT),n.rXU(tt,12),n.rXU(l.qQ),n.rXU(n.SKi),n.rXU(n.c1b),n.rXU(Ht,8),n.rXU(U.dS,8),n.rXU(Ot),n.rXU(n.gRc),n.rXU(We,10),n.rXU(at,12))}}static{this.\u0275dir=n.FsC({type:be,selectors:[["","cdkDrag",""]],contentQueries:function(Lt,Zt,fn){if(1&Lt&&(n.wni(fn,ht,5),n.wni(fn,lt,5),n.wni(fn,We,5)),2&Lt){let hn;n.mGM(hn=n.lsd())&&(Zt._previewTemplate=hn.first),n.mGM(hn=n.lsd())&&(Zt._placeholderTemplate=hn.first),n.mGM(hn=n.lsd())&&(Zt._handles=hn)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(Lt,Zt){2&Lt&&n.AVh("cdk-drag-disabled",Zt.disabled)("cdk-drag-dragging",Zt._dragRef.isDragging())},inputs:{data:[n.Mj6.None,"cdkDragData","data"],lockAxis:[n.Mj6.None,"cdkDragLockAxis","lockAxis"],rootElementSelector:[n.Mj6.None,"cdkDragRootElement","rootElementSelector"],boundaryElement:[n.Mj6.None,"cdkDragBoundary","boundaryElement"],dragStartDelay:[n.Mj6.None,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[n.Mj6.None,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[n.Mj6.None,"cdkDragDisabled","disabled"],constrainPosition:[n.Mj6.None,"cdkDragConstrainPosition","constrainPosition"],previewClass:[n.Mj6.None,"cdkDragPreviewClass","previewClass"],previewContainer:[n.Mj6.None,"cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[n.Jv_([{provide:at,useExisting:be}]),n.OA$]})}}return be})(),ke=(()=>{class be{static{this.\u0275fac=function(Lt){return new(Lt||be)}}static{this.\u0275mod=n.$C({type:be})}static{this.\u0275inj=n.G2t({providers:[Ot],imports:[d.Gj]})}}return be})()},25373:(Bt,z,s)=>{"use strict";s.d(z,{A:()=>Be,A$:()=>O,FX:()=>y,Fm:()=>S,Ge:()=>xe,Kp:()=>m,LE:()=>U,UQ:()=>D,W3:()=>f,Z:()=>We,_f:()=>i,bn:()=>ue,dB:()=>c,eg:()=>bo,f2:()=>g,i7:()=>I,n6:()=>V,rp:()=>Kn,t6:()=>r,w_:()=>a,wn:()=>d,yZ:()=>M});const d=9,S=13,y=16,f=17,O=18,i=27,r=32,a=33,c=34,m=35,M=36,D=37,I=38,U=39,V=40,g=48,ue=57,Be=65,We=90,xe=91,bo=224;function Kn(gi,...Pi){return Pi.length?Pi.some(ji=>gi[ji]):gi.altKey||gi.shiftKey||gi.ctrlKey||gi.metaKey}},76706:(Bt,z,s)=>{"use strict";s.d(z,{QP:()=>V,Rp:()=>N});var n=s(58527),l=s(6364),d=s(80583),v=s(31315),S=s(69917),y=s(17053),f=s(65706),O=s(36666),P=s(62931),_=s(83915),i=s(34593),r=s(4208),a=s(72653);const m=new Set;let M,D=(()=>{class L{constructor(g,R){this._platform=g,this._nonce=R,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):U}matchMedia(g){return(this._platform.WEBKIT||this._platform.BLINK)&&function I(L,E){if(!m.has(L))try{M||(M=document.createElement("style"),E&&(M.nonce=E),M.setAttribute("type","text/css"),document.head.appendChild(M)),M.sheet&&(M.sheet.insertRule(`@media ${L} {body{ }}`,0),m.add(L))}catch(g){console.error(g)}}(g,this._nonce),this._matchMedia(g)}static{this.\u0275fac=function(R){return new(R||L)(n.KVO(a.OD),n.KVO(n.BIS,8))}}static{this.\u0275prov=n.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}}return L})();function U(L){return{matches:"all"===L||""===L,media:L,addListener:()=>{},removeListener:()=>{}}}let V=(()=>{class L{constructor(g,R){this._mediaMatcher=g,this._zone=R,this._queries=new Map,this._destroySubject=new d.B7}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(g){return T((0,l.FG)(g)).some(B=>this._registerQuery(B).mql.matches)}observe(g){const B=T((0,l.FG)(g)).map(H=>this._registerQuery(H).observable);let X=(0,v.zV)(B);return X=(0,S.x)(X.pipe((0,f.s)(1)),X.pipe((0,O.i)(1),(0,P.B)(0))),X.pipe((0,_.T)(H=>{const J={matches:!1,breakpoints:{}};return H.forEach(({matches:re,query:ie})=>{J.matches=J.matches||re,J.breakpoints[ie]=re}),J}))}_registerQuery(g){if(this._queries.has(g))return this._queries.get(g);const R=this._mediaMatcher.matchMedia(g),X={observable:new y.c(H=>{const J=re=>this._zone.run(()=>H.next(re));return R.addListener(J),()=>{R.removeListener(J)}}).pipe((0,i.Z)(R),(0,_.T)(({matches:H})=>({query:g,matches:H})),(0,r.Q)(this._destroySubject)),mql:R};return this._queries.set(g,X),X}static{this.\u0275fac=function(R){return new(R||L)(n.KVO(D),n.KVO(n.SKi))}}static{this.\u0275prov=n.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}}return L})();function T(L){return L.map(E=>E.split(",")).reduce((E,g)=>E.concat(g)).map(E=>E.trim())}const N={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},26321:(Bt,z,s)=>{"use strict";s.d(z,{Wv:()=>O,w5:()=>P});var n=s(6364),l=s(58527),d=s(17053),v=s(80583),S=s(62931);let y=(()=>{class _{create(r){return typeof MutationObserver>"u"?null:new MutationObserver(r)}static{this.\u0275fac=function(a){return new(a||_)}}static{this.\u0275prov=l.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})(),f=(()=>{class _{constructor(r){this._mutationObserverFactory=r,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((r,a)=>this._cleanupObserver(a))}observe(r){const a=(0,n.i8)(r);return new d.c(c=>{const M=this._observeElement(a).subscribe(c);return()=>{M.unsubscribe(),this._unobserveElement(a)}})}_observeElement(r){if(this._observedElements.has(r))this._observedElements.get(r).count++;else{const a=new v.B7,c=this._mutationObserverFactory.create(m=>a.next(m));c&&c.observe(r,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(r,{observer:c,stream:a,count:1})}return this._observedElements.get(r).stream}_unobserveElement(r){this._observedElements.has(r)&&(this._observedElements.get(r).count--,this._observedElements.get(r).count||this._cleanupObserver(r))}_cleanupObserver(r){if(this._observedElements.has(r)){const{observer:a,stream:c}=this._observedElements.get(r);a&&a.disconnect(),c.complete(),this._observedElements.delete(r)}}static{this.\u0275fac=function(a){return new(a||_)(l.KVO(y))}}static{this.\u0275prov=l.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})(),O=(()=>{class _{get disabled(){return this._disabled}set disabled(r){this._disabled=(0,n.he)(r),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(r){this._debounce=(0,n.OE)(r),this._subscribe()}constructor(r,a,c){this._contentObserver=r,this._elementRef=a,this._ngZone=c,this.event=new l.bkB,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const r=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?r.pipe((0,S.B)(this.debounce)):r).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static{this.\u0275fac=function(a){return new(a||_)(l.rXU(f),l.rXU(l.aKT),l.rXU(l.SKi))}}static{this.\u0275dir=l.FsC({type:_,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[l.Mj6.None,"cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}}return _})(),P=(()=>{class _{static{this.\u0275fac=function(a){return new(a||_)}}static{this.\u0275mod=l.$C({type:_})}static{this.\u0275inj=l.G2t({providers:[y]})}}return _})()},61904:(Bt,z,s)=>{"use strict";s.d(z,{$Q:()=>Pe,Sf:()=>ue,WB:()=>Fe,hJ:()=>W,rR:()=>g,yY:()=>se,z_:()=>Et});var n=s(64409),l=s(61142),d=s(58527),v=s(6364),S=s(72653),y=s(8619),f=s(65706),O=s(4208),P=s(48765),_=s(51394),i=s(76614),r=s(80583),a=s(10399),c=s(16229),m=s(25373);const M=(0,S.CZ)();class D{constructor(Qe,Ve){this._viewportRuler=Qe,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Ve}attach(){}enable(){if(this._canBeEnabled()){const Qe=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=Qe.style.left||"",this._previousHTMLStyles.top=Qe.style.top||"",Qe.style.left=(0,v.a1)(-this._previousScrollPosition.left),Qe.style.top=(0,v.a1)(-this._previousScrollPosition.top),Qe.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const Qe=this._document.documentElement,nt=Qe.style,Ot=this._document.body.style,at=nt.scrollBehavior||"",It=Ot.scrollBehavior||"";this._isEnabled=!1,nt.left=this._previousHTMLStyles.left,nt.top=this._previousHTMLStyles.top,Qe.classList.remove("cdk-global-scrollblock"),M&&(nt.scrollBehavior=Ot.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),M&&(nt.scrollBehavior=at,Ot.scrollBehavior=It)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Ve=this._document.body,nt=this._viewportRuler.getViewportSize();return Ve.scrollHeight>nt.height||Ve.scrollWidth>nt.width}}class U{constructor(Qe,Ve,nt,Ot){this._scrollDispatcher=Qe,this._ngZone=Ve,this._viewportRuler=nt,this._config=Ot,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(Qe){this._overlayRef=Qe}enable(){if(this._scrollSubscription)return;const Qe=this._scrollDispatcher.scrolled(0).pipe((0,y.p)(Ve=>!Ve||!this._overlayRef.overlayElement.contains(Ve.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=Qe.subscribe(()=>{const Ve=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Ve-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=Qe.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class V{enable(){}disable(){}attach(){}}function T(Ze,Qe){return Qe.some(Ve=>Ze.bottom<Ve.top||Ze.top>Ve.bottom||Ze.right<Ve.left||Ze.left>Ve.right)}function N(Ze,Qe){return Qe.some(Ve=>Ze.top<Ve.top||Ze.bottom>Ve.bottom||Ze.left<Ve.left||Ze.right>Ve.right)}class L{constructor(Qe,Ve,nt,Ot){this._scrollDispatcher=Qe,this._viewportRuler=Ve,this._ngZone=nt,this._config=Ot,this._scrollSubscription=null}attach(Qe){this._overlayRef=Qe}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const Ve=this._overlayRef.overlayElement.getBoundingClientRect(),{width:nt,height:Ot}=this._viewportRuler.getViewportSize();T(Ve,[{width:nt,height:Ot,bottom:Ot,right:nt,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let E=(()=>{class Ze{constructor(Ve,nt,Ot,at){this._scrollDispatcher=Ve,this._viewportRuler=nt,this._ngZone=Ot,this.noop=()=>new V,this.close=It=>new U(this._scrollDispatcher,this._ngZone,this._viewportRuler,It),this.block=()=>new D(this._viewportRuler,this._document),this.reposition=It=>new L(this._scrollDispatcher,this._viewportRuler,this._ngZone,It),this._document=at}static{this.\u0275fac=function(nt){return new(nt||Ze)(d.KVO(n.R),d.KVO(n.Xj),d.KVO(d.SKi),d.KVO(l.qQ))}}static{this.\u0275prov=d.jDH({token:Ze,factory:Ze.\u0275fac,providedIn:"root"})}}return Ze})();class g{constructor(Qe){if(this.scrollStrategy=new V,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,Qe){const Ve=Object.keys(Qe);for(const nt of Ve)void 0!==Qe[nt]&&(this[nt]=Qe[nt])}}}class X{constructor(Qe,Ve){this.connectionPair=Qe,this.scrollableViewProperties=Ve}}let re=(()=>{class Ze{constructor(Ve){this._attachedOverlays=[],this._document=Ve}ngOnDestroy(){this.detach()}add(Ve){this.remove(Ve),this._attachedOverlays.push(Ve)}remove(Ve){const nt=this._attachedOverlays.indexOf(Ve);nt>-1&&this._attachedOverlays.splice(nt,1),0===this._attachedOverlays.length&&this.detach()}static{this.\u0275fac=function(nt){return new(nt||Ze)(d.KVO(l.qQ))}}static{this.\u0275prov=d.jDH({token:Ze,factory:Ze.\u0275fac,providedIn:"root"})}}return Ze})(),ie=(()=>{class Ze extends re{constructor(Ve,nt){super(Ve),this._ngZone=nt,this._keydownListener=Ot=>{const at=this._attachedOverlays;for(let It=at.length-1;It>-1;It--)if(at[It]._keydownEvents.observers.length>0){const We=at[It]._keydownEvents;this._ngZone?this._ngZone.run(()=>We.next(Ot)):We.next(Ot);break}}}add(Ve){super.add(Ve),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static{this.\u0275fac=function(nt){return new(nt||Ze)(d.KVO(l.qQ),d.KVO(d.SKi,8))}}static{this.\u0275prov=d.jDH({token:Ze,factory:Ze.\u0275fac,providedIn:"root"})}}return Ze})(),ve=(()=>{class Ze extends re{constructor(Ve,nt,Ot){super(Ve),this._platform=nt,this._ngZone=Ot,this._cursorStyleIsSet=!1,this._pointerDownListener=at=>{this._pointerDownEventTarget=(0,S.Fb)(at)},this._clickListener=at=>{const It=(0,S.Fb)(at),We="click"===at.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:It;this._pointerDownEventTarget=null;const xe=this._attachedOverlays.slice();for(let lt=xe.length-1;lt>-1;lt--){const ft=xe[lt];if(ft._outsidePointerEvents.observers.length<1||!ft.hasAttached())continue;if(ft.overlayElement.contains(It)||ft.overlayElement.contains(We))break;const ht=ft._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>ht.next(at)):ht.next(at)}}}add(Ve){if(super.add(Ve),!this._isAttached){const nt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(nt)):this._addEventListeners(nt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=nt.style.cursor,nt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const Ve=this._document.body;Ve.removeEventListener("pointerdown",this._pointerDownListener,!0),Ve.removeEventListener("click",this._clickListener,!0),Ve.removeEventListener("auxclick",this._clickListener,!0),Ve.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Ve.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(Ve){Ve.addEventListener("pointerdown",this._pointerDownListener,!0),Ve.addEventListener("click",this._clickListener,!0),Ve.addEventListener("auxclick",this._clickListener,!0),Ve.addEventListener("contextmenu",this._clickListener,!0)}static{this.\u0275fac=function(nt){return new(nt||Ze)(d.KVO(l.qQ),d.KVO(S.OD),d.KVO(d.SKi,8))}}static{this.\u0275prov=d.jDH({token:Ze,factory:Ze.\u0275fac,providedIn:"root"})}}return Ze})(),ue=(()=>{class Ze{constructor(Ve,nt){this._platform=nt,this._document=Ve}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Ve="cdk-overlay-container";if(this._platform.isBrowser||(0,S.v8)()){const Ot=this._document.querySelectorAll(`.${Ve}[platform="server"], .${Ve}[platform="test"]`);for(let at=0;at<Ot.length;at++)Ot[at].remove()}const nt=this._document.createElement("div");nt.classList.add(Ve),(0,S.v8)()?nt.setAttribute("platform","test"):this._platform.isBrowser||nt.setAttribute("platform","server"),this._document.body.appendChild(nt),this._containerElement=nt}static{this.\u0275fac=function(nt){return new(nt||Ze)(d.KVO(l.qQ),d.KVO(S.OD))}}static{this.\u0275prov=d.jDH({token:Ze,factory:Ze.\u0275fac,providedIn:"root"})}}return Ze})();class se{constructor(Qe,Ve,nt,Ot,at,It,We,xe,lt,ft=!1){this._portalOutlet=Qe,this._host=Ve,this._pane=nt,this._config=Ot,this._ngZone=at,this._keyboardDispatcher=It,this._document=We,this._location=xe,this._outsideClickDispatcher=lt,this._animationsDisabled=ft,this._backdropElement=null,this._backdropClick=new r.B7,this._attachments=new r.B7,this._detachments=new r.B7,this._locationChanges=a.y.EMPTY,this._backdropClickHandler=ht=>this._backdropClick.next(ht),this._backdropTransitionendHandler=ht=>{this._disposeBackdrop(ht.target)},this._keydownEvents=new r.B7,this._outsidePointerEvents=new r.B7,Ot.scrollStrategy&&(this._scrollStrategy=Ot.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Ot.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(Qe){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Ve=this._portalOutlet.attach(Qe);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,f.s)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof Ve?.onDestroy&&Ve.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Ve}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const Qe=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),Qe}dispose(){const Qe=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,Qe&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(Qe){Qe!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=Qe,this.hasAttached()&&(Qe.attach(this),this.updatePosition()))}updateSize(Qe){this._config={...this._config,...Qe},this._updateElementSize()}setDirection(Qe){this._config={...this._config,direction:Qe},this._updateElementDirection()}addPanelClass(Qe){this._pane&&this._toggleClasses(this._pane,Qe,!0)}removePanelClass(Qe){this._pane&&this._toggleClasses(this._pane,Qe,!1)}getDirection(){const Qe=this._config.direction;return Qe?"string"==typeof Qe?Qe:Qe.value:"ltr"}updateScrollStrategy(Qe){Qe!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=Qe,this.hasAttached()&&(Qe.attach(this),Qe.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const Qe=this._pane.style;Qe.width=(0,v.a1)(this._config.width),Qe.height=(0,v.a1)(this._config.height),Qe.minWidth=(0,v.a1)(this._config.minWidth),Qe.minHeight=(0,v.a1)(this._config.minHeight),Qe.maxWidth=(0,v.a1)(this._config.maxWidth),Qe.maxHeight=(0,v.a1)(this._config.maxHeight)}_togglePointerEvents(Qe){this._pane.style.pointerEvents=Qe?"":"none"}_attachBackdrop(){const Qe="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(Qe)})}):this._backdropElement.classList.add(Qe)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const Qe=this._backdropElement;if(Qe){if(this._animationsDisabled)return void this._disposeBackdrop(Qe);Qe.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{Qe.addEventListener("transitionend",this._backdropTransitionendHandler)}),Qe.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(Qe)},500))}}_toggleClasses(Qe,Ve,nt){const Ot=(0,v.FG)(Ve||[]).filter(at=>!!at);Ot.length&&(nt?Qe.classList.add(...Ot):Qe.classList.remove(...Ot))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const Qe=this._ngZone.onStable.pipe((0,O.Q)((0,c.h)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),Qe.unsubscribe())})})}_disposeScrollStrategy(){const Qe=this._scrollStrategy;Qe&&(Qe.disable(),Qe.detach&&Qe.detach())}_disposeBackdrop(Qe){Qe&&(Qe.removeEventListener("click",this._backdropClickHandler),Qe.removeEventListener("transitionend",this._backdropTransitionendHandler),Qe.remove(),this._backdropElement===Qe&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Z="cdk-overlay-connected-position-bounding-box",Se=/([A-Za-z%]+)$/;class Ce{get positions(){return this._preferredPositions}constructor(Qe,Ve,nt,Ot,at){this._viewportRuler=Ve,this._document=nt,this._platform=Ot,this._overlayContainer=at,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new r.B7,this._resizeSubscription=a.y.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(Qe)}attach(Qe){this._validatePositions(),Qe.hostElement.classList.add(Z),this._overlayRef=Qe,this._boundingBox=Qe.hostElement,this._pane=Qe.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Qe=this._originRect,Ve=this._overlayRect,nt=this._viewportRect,Ot=this._containerRect,at=[];let It;for(let We of this._preferredPositions){let xe=this._getOriginPoint(Qe,Ot,We),lt=this._getOverlayPoint(xe,Ve,We),ft=this._getOverlayFit(lt,Ve,nt,We);if(ft.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(We,xe);this._canFitWithFlexibleDimensions(ft,lt,nt)?at.push({position:We,origin:xe,overlayRect:Ve,boundingBoxRect:this._calculateBoundingBoxRect(xe,We)}):(!It||It.overlayFit.visibleArea<ft.visibleArea)&&(It={overlayFit:ft,overlayPoint:lt,originPoint:xe,position:We,overlayRect:Ve})}if(at.length){let We=null,xe=-1;for(const lt of at){const ft=lt.boundingBoxRect.width*lt.boundingBoxRect.height*(lt.position.weight||1);ft>xe&&(xe=ft,We=lt)}return this._isPushed=!1,void this._applyPosition(We.position,We.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(It.position,It.originPoint);this._applyPosition(It.position,It.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Be(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Z),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const Qe=this._lastPosition;if(Qe){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Ve=this._getOriginPoint(this._originRect,this._containerRect,Qe);this._applyPosition(Qe,Ve)}else this.apply()}withScrollableContainers(Qe){return this._scrollables=Qe,this}withPositions(Qe){return this._preferredPositions=Qe,-1===Qe.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(Qe){return this._viewportMargin=Qe,this}withFlexibleDimensions(Qe=!0){return this._hasFlexibleDimensions=Qe,this}withGrowAfterOpen(Qe=!0){return this._growAfterOpen=Qe,this}withPush(Qe=!0){return this._canPush=Qe,this}withLockedPosition(Qe=!0){return this._positionLocked=Qe,this}setOrigin(Qe){return this._origin=Qe,this}withDefaultOffsetX(Qe){return this._offsetX=Qe,this}withDefaultOffsetY(Qe){return this._offsetY=Qe,this}withTransformOriginOn(Qe){return this._transformOriginSelector=Qe,this}_getOriginPoint(Qe,Ve,nt){let Ot,at;if("center"==nt.originX)Ot=Qe.left+Qe.width/2;else{const It=this._isRtl()?Qe.right:Qe.left,We=this._isRtl()?Qe.left:Qe.right;Ot="start"==nt.originX?It:We}return Ve.left<0&&(Ot-=Ve.left),at="center"==nt.originY?Qe.top+Qe.height/2:"top"==nt.originY?Qe.top:Qe.bottom,Ve.top<0&&(at-=Ve.top),{x:Ot,y:at}}_getOverlayPoint(Qe,Ve,nt){let Ot,at;return Ot="center"==nt.overlayX?-Ve.width/2:"start"===nt.overlayX?this._isRtl()?-Ve.width:0:this._isRtl()?0:-Ve.width,at="center"==nt.overlayY?-Ve.height/2:"top"==nt.overlayY?0:-Ve.height,{x:Qe.x+Ot,y:Qe.y+at}}_getOverlayFit(Qe,Ve,nt,Ot){const at=He(Ve);let{x:It,y:We}=Qe,xe=this._getOffset(Ot,"x"),lt=this._getOffset(Ot,"y");xe&&(It+=xe),lt&&(We+=lt);let Xt=0-We,Ht=We+at.height-nt.height,Je=this._subtractOverflows(at.width,0-It,It+at.width-nt.width),tt=this._subtractOverflows(at.height,Xt,Ht),rt=Je*tt;return{visibleArea:rt,isCompletelyWithinViewport:at.width*at.height===rt,fitsInViewportVertically:tt===at.height,fitsInViewportHorizontally:Je==at.width}}_canFitWithFlexibleDimensions(Qe,Ve,nt){if(this._hasFlexibleDimensions){const Ot=nt.bottom-Ve.y,at=nt.right-Ve.x,It=Xe(this._overlayRef.getConfig().minHeight),We=Xe(this._overlayRef.getConfig().minWidth);return(Qe.fitsInViewportVertically||null!=It&&It<=Ot)&&(Qe.fitsInViewportHorizontally||null!=We&&We<=at)}return!1}_pushOverlayOnScreen(Qe,Ve,nt){if(this._previousPushAmount&&this._positionLocked)return{x:Qe.x+this._previousPushAmount.x,y:Qe.y+this._previousPushAmount.y};const Ot=He(Ve),at=this._viewportRect,It=Math.max(Qe.x+Ot.width-at.width,0),We=Math.max(Qe.y+Ot.height-at.height,0),xe=Math.max(at.top-nt.top-Qe.y,0),lt=Math.max(at.left-nt.left-Qe.x,0);let ft=0,ht=0;return ft=Ot.width<=at.width?lt||-It:Qe.x<this._viewportMargin?at.left-nt.left-Qe.x:0,ht=Ot.height<=at.height?xe||-We:Qe.y<this._viewportMargin?at.top-nt.top-Qe.y:0,this._previousPushAmount={x:ft,y:ht},{x:Qe.x+ft,y:Qe.y+ht}}_applyPosition(Qe,Ve){if(this._setTransformOrigin(Qe),this._setOverlayElementStyles(Ve,Qe),this._setBoundingBoxStyles(Ve,Qe),Qe.panelClass&&this._addPanelClasses(Qe.panelClass),this._lastPosition=Qe,this._positionChanges.observers.length){const nt=this._getScrollVisibility(),Ot=new X(Qe,nt);this._positionChanges.next(Ot)}this._isInitialRender=!1}_setTransformOrigin(Qe){if(!this._transformOriginSelector)return;const Ve=this._boundingBox.querySelectorAll(this._transformOriginSelector);let nt,Ot=Qe.overlayY;nt="center"===Qe.overlayX?"center":this._isRtl()?"start"===Qe.overlayX?"right":"left":"start"===Qe.overlayX?"left":"right";for(let at=0;at<Ve.length;at++)Ve[at].style.transformOrigin=`${nt} ${Ot}`}_calculateBoundingBoxRect(Qe,Ve){const nt=this._viewportRect,Ot=this._isRtl();let at,It,We,ft,ht,Xt;if("top"===Ve.overlayY)It=Qe.y,at=nt.height-It+this._viewportMargin;else if("bottom"===Ve.overlayY)We=nt.height-Qe.y+2*this._viewportMargin,at=nt.height-We+this._viewportMargin;else{const Ht=Math.min(nt.bottom-Qe.y+nt.top,Qe.y),Je=this._lastBoundingBoxSize.height;at=2*Ht,It=Qe.y-Ht,at>Je&&!this._isInitialRender&&!this._growAfterOpen&&(It=Qe.y-Je/2)}if("end"===Ve.overlayX&&!Ot||"start"===Ve.overlayX&&Ot)Xt=nt.width-Qe.x+this._viewportMargin,ft=Qe.x-this._viewportMargin;else if("start"===Ve.overlayX&&!Ot||"end"===Ve.overlayX&&Ot)ht=Qe.x,ft=nt.right-Qe.x;else{const Ht=Math.min(nt.right-Qe.x+nt.left,Qe.x),Je=this._lastBoundingBoxSize.width;ft=2*Ht,ht=Qe.x-Ht,ft>Je&&!this._isInitialRender&&!this._growAfterOpen&&(ht=Qe.x-Je/2)}return{top:It,left:ht,bottom:We,right:Xt,width:ft,height:at}}_setBoundingBoxStyles(Qe,Ve){const nt=this._calculateBoundingBoxRect(Qe,Ve);!this._isInitialRender&&!this._growAfterOpen&&(nt.height=Math.min(nt.height,this._lastBoundingBoxSize.height),nt.width=Math.min(nt.width,this._lastBoundingBoxSize.width));const Ot={};if(this._hasExactPosition())Ot.top=Ot.left="0",Ot.bottom=Ot.right=Ot.maxHeight=Ot.maxWidth="",Ot.width=Ot.height="100%";else{const at=this._overlayRef.getConfig().maxHeight,It=this._overlayRef.getConfig().maxWidth;Ot.height=(0,v.a1)(nt.height),Ot.top=(0,v.a1)(nt.top),Ot.bottom=(0,v.a1)(nt.bottom),Ot.width=(0,v.a1)(nt.width),Ot.left=(0,v.a1)(nt.left),Ot.right=(0,v.a1)(nt.right),Ot.alignItems="center"===Ve.overlayX?"center":"end"===Ve.overlayX?"flex-end":"flex-start",Ot.justifyContent="center"===Ve.overlayY?"center":"bottom"===Ve.overlayY?"flex-end":"flex-start",at&&(Ot.maxHeight=(0,v.a1)(at)),It&&(Ot.maxWidth=(0,v.a1)(It))}this._lastBoundingBoxSize=nt,Be(this._boundingBox.style,Ot)}_resetBoundingBoxStyles(){Be(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Be(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(Qe,Ve){const nt={},Ot=this._hasExactPosition(),at=this._hasFlexibleDimensions,It=this._overlayRef.getConfig();if(Ot){const ft=this._viewportRuler.getViewportScrollPosition();Be(nt,this._getExactOverlayY(Ve,Qe,ft)),Be(nt,this._getExactOverlayX(Ve,Qe,ft))}else nt.position="static";let We="",xe=this._getOffset(Ve,"x"),lt=this._getOffset(Ve,"y");xe&&(We+=`translateX(${xe}px) `),lt&&(We+=`translateY(${lt}px)`),nt.transform=We.trim(),It.maxHeight&&(Ot?nt.maxHeight=(0,v.a1)(It.maxHeight):at&&(nt.maxHeight="")),It.maxWidth&&(Ot?nt.maxWidth=(0,v.a1)(It.maxWidth):at&&(nt.maxWidth="")),Be(this._pane.style,nt)}_getExactOverlayY(Qe,Ve,nt){let Ot={top:"",bottom:""},at=this._getOverlayPoint(Ve,this._overlayRect,Qe);return this._isPushed&&(at=this._pushOverlayOnScreen(at,this._overlayRect,nt)),"bottom"===Qe.overlayY?Ot.bottom=this._document.documentElement.clientHeight-(at.y+this._overlayRect.height)+"px":Ot.top=(0,v.a1)(at.y),Ot}_getExactOverlayX(Qe,Ve,nt){let It,Ot={left:"",right:""},at=this._getOverlayPoint(Ve,this._overlayRect,Qe);return this._isPushed&&(at=this._pushOverlayOnScreen(at,this._overlayRect,nt)),It=this._isRtl()?"end"===Qe.overlayX?"left":"right":"end"===Qe.overlayX?"right":"left","right"===It?Ot.right=this._document.documentElement.clientWidth-(at.x+this._overlayRect.width)+"px":Ot.left=(0,v.a1)(at.x),Ot}_getScrollVisibility(){const Qe=this._getOriginRect(),Ve=this._pane.getBoundingClientRect(),nt=this._scrollables.map(Ot=>Ot.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:N(Qe,nt),isOriginOutsideView:T(Qe,nt),isOverlayClipped:N(Ve,nt),isOverlayOutsideView:T(Ve,nt)}}_subtractOverflows(Qe,...Ve){return Ve.reduce((nt,Ot)=>nt-Math.max(Ot,0),Qe)}_getNarrowedViewportRect(){const Qe=this._document.documentElement.clientWidth,Ve=this._document.documentElement.clientHeight,nt=this._viewportRuler.getViewportScrollPosition();return{top:nt.top+this._viewportMargin,left:nt.left+this._viewportMargin,right:nt.left+Qe-this._viewportMargin,bottom:nt.top+Ve-this._viewportMargin,width:Qe-2*this._viewportMargin,height:Ve-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(Qe,Ve){return"x"===Ve?null==Qe.offsetX?this._offsetX:Qe.offsetX:null==Qe.offsetY?this._offsetY:Qe.offsetY}_validatePositions(){}_addPanelClasses(Qe){this._pane&&(0,v.FG)(Qe).forEach(Ve=>{""!==Ve&&-1===this._appliedPanelClasses.indexOf(Ve)&&(this._appliedPanelClasses.push(Ve),this._pane.classList.add(Ve))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(Qe=>{this._pane.classList.remove(Qe)}),this._appliedPanelClasses=[])}_getOriginRect(){const Qe=this._origin;if(Qe instanceof d.aKT)return Qe.nativeElement.getBoundingClientRect();if(Qe instanceof Element)return Qe.getBoundingClientRect();const Ve=Qe.width||0,nt=Qe.height||0;return{top:Qe.y,bottom:Qe.y+nt,left:Qe.x,right:Qe.x+Ve,height:nt,width:Ve}}}function Be(Ze,Qe){for(let Ve in Qe)Qe.hasOwnProperty(Ve)&&(Ze[Ve]=Qe[Ve]);return Ze}function Xe(Ze){if("number"!=typeof Ze&&null!=Ze){const[Qe,Ve]=Ze.split(Se);return Ve&&"px"!==Ve?null:parseFloat(Qe)}return Ze||null}function He(Ze){return{top:Math.floor(Ze.top),right:Math.floor(Ze.right),bottom:Math.floor(Ze.bottom),left:Math.floor(Ze.left),width:Math.floor(Ze.width),height:Math.floor(Ze.height)}}const A="cdk-global-overlay-wrapper";class me{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(Qe){const Ve=Qe.getConfig();this._overlayRef=Qe,this._width&&!Ve.width&&Qe.updateSize({width:this._width}),this._height&&!Ve.height&&Qe.updateSize({height:this._height}),Qe.hostElement.classList.add(A),this._isDisposed=!1}top(Qe=""){return this._bottomOffset="",this._topOffset=Qe,this._alignItems="flex-start",this}left(Qe=""){return this._xOffset=Qe,this._xPosition="left",this}bottom(Qe=""){return this._topOffset="",this._bottomOffset=Qe,this._alignItems="flex-end",this}right(Qe=""){return this._xOffset=Qe,this._xPosition="right",this}start(Qe=""){return this._xOffset=Qe,this._xPosition="start",this}end(Qe=""){return this._xOffset=Qe,this._xPosition="end",this}width(Qe=""){return this._overlayRef?this._overlayRef.updateSize({width:Qe}):this._width=Qe,this}height(Qe=""){return this._overlayRef?this._overlayRef.updateSize({height:Qe}):this._height=Qe,this}centerHorizontally(Qe=""){return this.left(Qe),this._xPosition="center",this}centerVertically(Qe=""){return this.top(Qe),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const Qe=this._overlayRef.overlayElement.style,Ve=this._overlayRef.hostElement.style,nt=this._overlayRef.getConfig(),{width:Ot,height:at,maxWidth:It,maxHeight:We}=nt,xe=!("100%"!==Ot&&"100vw"!==Ot||It&&"100%"!==It&&"100vw"!==It),lt=!("100%"!==at&&"100vh"!==at||We&&"100%"!==We&&"100vh"!==We),ft=this._xPosition,ht=this._xOffset,Xt="rtl"===this._overlayRef.getConfig().direction;let Ht="",Je="",tt="";xe?tt="flex-start":"center"===ft?(tt="center",Xt?Je=ht:Ht=ht):Xt?"left"===ft||"end"===ft?(tt="flex-end",Ht=ht):("right"===ft||"start"===ft)&&(tt="flex-start",Je=ht):"left"===ft||"start"===ft?(tt="flex-start",Ht=ht):("right"===ft||"end"===ft)&&(tt="flex-end",Je=ht),Qe.position=this._cssPosition,Qe.marginLeft=xe?"0":Ht,Qe.marginTop=lt?"0":this._topOffset,Qe.marginBottom=this._bottomOffset,Qe.marginRight=xe?"0":Je,Ve.justifyContent=tt,Ve.alignItems=lt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const Qe=this._overlayRef.overlayElement.style,Ve=this._overlayRef.hostElement,nt=Ve.style;Ve.classList.remove(A),nt.justifyContent=nt.alignItems=Qe.marginTop=Qe.marginBottom=Qe.marginLeft=Qe.marginRight=Qe.position="",this._overlayRef=null,this._isDisposed=!0}}let ne=(()=>{class Ze{constructor(Ve,nt,Ot,at){this._viewportRuler=Ve,this._document=nt,this._platform=Ot,this._overlayContainer=at}global(){return new me}flexibleConnectedTo(Ve){return new Ce(Ve,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static{this.\u0275fac=function(nt){return new(nt||Ze)(d.KVO(n.Xj),d.KVO(l.qQ),d.KVO(S.OD),d.KVO(ue))}}static{this.\u0275prov=d.jDH({token:Ze,factory:Ze.\u0275fac,providedIn:"root"})}}return Ze})(),G=0,W=(()=>{class Ze{constructor(Ve,nt,Ot,at,It,We,xe,lt,ft,ht,Xt,Ht){this.scrollStrategies=Ve,this._overlayContainer=nt,this._componentFactoryResolver=Ot,this._positionBuilder=at,this._keyboardDispatcher=It,this._injector=We,this._ngZone=xe,this._document=lt,this._directionality=ft,this._location=ht,this._outsideClickDispatcher=Xt,this._animationsModuleType=Ht}create(Ve){const nt=this._createHostElement(),Ot=this._createPaneElement(nt),at=this._createPortalOutlet(Ot),It=new g(Ve);return It.direction=It.direction||this._directionality.value,new se(at,nt,Ot,It,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(Ve){const nt=this._document.createElement("div");return nt.id="cdk-overlay-"+G++,nt.classList.add("cdk-overlay-pane"),Ve.appendChild(nt),nt}_createHostElement(){const Ve=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(Ve),Ve}_createPortalOutlet(Ve){return this._appRef||(this._appRef=this._injector.get(d.o8S)),new i.aI(Ve,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static{this.\u0275fac=function(nt){return new(nt||Ze)(d.KVO(E),d.KVO(ue),d.KVO(d.OM3),d.KVO(ne),d.KVO(ie),d.KVO(d.zZn),d.KVO(d.SKi),d.KVO(l.qQ),d.KVO(_.dS),d.KVO(l.aZ),d.KVO(ve),d.KVO(d.bc$,8))}}static{this.\u0275prov=d.jDH({token:Ze,factory:Ze.\u0275fac,providedIn:"root"})}}return Ze})();const $=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],le=new d.nKC("cdk-connected-overlay-scroll-strategy");let Pe=(()=>{class Ze{constructor(Ve){this.elementRef=Ve}static{this.\u0275fac=function(nt){return new(nt||Ze)(d.rXU(d.aKT))}}static{this.\u0275dir=d.FsC({type:Ze,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}}return Ze})(),Fe=(()=>{class Ze{get offsetX(){return this._offsetX}set offsetX(Ve){this._offsetX=Ve,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(Ve){this._offsetY=Ve,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Ve){this._hasBackdrop=(0,v.he)(Ve)}get lockPosition(){return this._lockPosition}set lockPosition(Ve){this._lockPosition=(0,v.he)(Ve)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(Ve){this._flexibleDimensions=(0,v.he)(Ve)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(Ve){this._growAfterOpen=(0,v.he)(Ve)}get push(){return this._push}set push(Ve){this._push=(0,v.he)(Ve)}constructor(Ve,nt,Ot,at,It){this._overlay=Ve,this._dir=It,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=a.y.EMPTY,this._attachSubscription=a.y.EMPTY,this._detachSubscription=a.y.EMPTY,this._positionSubscription=a.y.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new d.bkB,this.positionChange=new d.bkB,this.attach=new d.bkB,this.detach=new d.bkB,this.overlayKeydown=new d.bkB,this.overlayOutsideClick=new d.bkB,this._templatePortal=new i.VA(nt,Ot),this._scrollStrategyFactory=at,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(Ve){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),Ve.origin&&this.open&&this._position.apply()),Ve.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=$);const Ve=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=Ve.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=Ve.detachments().subscribe(()=>this.detach.emit()),Ve.keydownEvents().subscribe(nt=>{this.overlayKeydown.next(nt),nt.keyCode===m._f&&!this.disableClose&&!(0,m.rp)(nt)&&(nt.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(nt=>{this.overlayOutsideClick.next(nt)})}_buildConfig(){const Ve=this._position=this.positionStrategy||this._createPositionStrategy(),nt=new g({direction:this._dir,positionStrategy:Ve,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(nt.width=this.width),(this.height||0===this.height)&&(nt.height=this.height),(this.minWidth||0===this.minWidth)&&(nt.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(nt.minHeight=this.minHeight),this.backdropClass&&(nt.backdropClass=this.backdropClass),this.panelClass&&(nt.panelClass=this.panelClass),nt}_updatePositionStrategy(Ve){const nt=this.positions.map(Ot=>({originX:Ot.originX,originY:Ot.originY,overlayX:Ot.overlayX,overlayY:Ot.overlayY,offsetX:Ot.offsetX||this.offsetX,offsetY:Ot.offsetY||this.offsetY,panelClass:Ot.panelClass||void 0}));return Ve.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(nt).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const Ve=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(Ve),Ve}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Pe?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(Ve=>{this.backdropClick.emit(Ve)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,P.v)(()=>this.positionChange.observers.length>0)).subscribe(Ve=>{this.positionChange.emit(Ve),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static{this.\u0275fac=function(nt){return new(nt||Ze)(d.rXU(W),d.rXU(d.C4Q),d.rXU(d.c1b),d.rXU(le),d.rXU(_.dS,8))}}static{this.\u0275dir=d.FsC({type:Ze,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[d.Mj6.None,"cdkConnectedOverlayOrigin","origin"],positions:[d.Mj6.None,"cdkConnectedOverlayPositions","positions"],positionStrategy:[d.Mj6.None,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[d.Mj6.None,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[d.Mj6.None,"cdkConnectedOverlayOffsetY","offsetY"],width:[d.Mj6.None,"cdkConnectedOverlayWidth","width"],height:[d.Mj6.None,"cdkConnectedOverlayHeight","height"],minWidth:[d.Mj6.None,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[d.Mj6.None,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[d.Mj6.None,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[d.Mj6.None,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[d.Mj6.None,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[d.Mj6.None,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[d.Mj6.None,"cdkConnectedOverlayOpen","open"],disableClose:[d.Mj6.None,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[d.Mj6.None,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[d.Mj6.None,"cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:[d.Mj6.None,"cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:[d.Mj6.None,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:[d.Mj6.None,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:[d.Mj6.None,"cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[d.OA$]})}}return Ze})();const Le={provide:le,deps:[W],useFactory:function At(Ze){return()=>Ze.scrollStrategies.reposition()}};let Et=(()=>{class Ze{static{this.\u0275fac=function(nt){return new(nt||Ze)}}static{this.\u0275mod=d.$C({type:Ze})}static{this.\u0275inj=d.G2t({providers:[W,Le],imports:[_.jI,i.jc,n.E9,n.E9]})}}return Ze})()},72653:(Bt,z,s)=>{"use strict";s.d(z,{BD:()=>m,BQ:()=>i,CZ:()=>c,Fb:()=>V,KT:()=>I,MU:()=>O,OD:()=>v,v8:()=>T,vc:()=>U});var n=s(58527),l=s(61142);let d;try{d=typeof Intl<"u"&&Intl.v8BreakIterator}catch{d=!1}let y,v=(()=>{class N{constructor(E){this._platformId=E,this.isBrowser=this._platformId?(0,l.UE)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!d)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(g){return new(g||N)(n.KVO(n.Agw))}}static{this.\u0275prov=n.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}}return N})();const f=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function O(){if(y)return y;if("object"!=typeof document||!document)return y=new Set(f),y;let N=document.createElement("input");return y=new Set(f.filter(L=>(N.setAttribute("type",L),N.type===L))),y}let P,r,a,M;function i(N){return function _(){if(null==P&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>P=!0}))}finally{P=P||!1}return P}()?N:!!N.capture}function c(){if(null==a){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return a=!1,a;if("scrollBehavior"in document.documentElement.style)a=!0;else{const N=Element.prototype.scrollTo;a=!!N&&!/\{\s*\[native code\]\s*\}/.test(N.toString())}}return a}function m(){if("object"!=typeof document||!document)return 0;if(null==r){const N=document.createElement("div"),L=N.style;N.dir="rtl",L.width="100px",L.overflow="auto",L.visibility="hidden",L.pointerEvents="none",L.position="absolute";const E=document.createElement("div"),g=E.style;g.width="200px",g.height="1px",N.appendChild(E),document.body.appendChild(N),r=0,0===N.scrollLeft&&(N.scrollLeft=1,r=0===N.scrollLeft?1:2),N.remove()}return r}function I(N){if(function D(){if(null==M){const N=typeof document<"u"?document.head:null;M=!(!N||!N.createShadowRoot&&!N.attachShadow)}return M}()){const L=N.getRootNode?N.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&L instanceof ShadowRoot)return L}return null}function U(){let N=typeof document<"u"&&document?document.activeElement:null;for(;N&&N.shadowRoot;){const L=N.shadowRoot.activeElement;if(L===N)break;N=L}return N}function V(N){return N.composedPath?N.composedPath()[0]:N.target}function T(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},76614:(Bt,z,s)=>{"use strict";s.d(z,{A8:()=>_,I3:()=>U,VA:()=>i,aI:()=>m,bV:()=>D,jc:()=>T,lb:()=>a});var n=s(58527),l=s(61142);class P{attach(E){return this._attachedHost=E,E.attach(this)}detach(){let E=this._attachedHost;null!=E&&(this._attachedHost=null,E.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(E){this._attachedHost=E}}class _ extends P{constructor(E,g,R,B,X){super(),this.component=E,this.viewContainerRef=g,this.injector=R,this.componentFactoryResolver=B,this.projectableNodes=X}}class i extends P{constructor(E,g,R,B){super(),this.templateRef=E,this.viewContainerRef=g,this.context=R,this.injector=B}get origin(){return this.templateRef.elementRef}attach(E,g=this.context){return this.context=g,super.attach(E)}detach(){return this.context=void 0,super.detach()}}class r extends P{constructor(E){super(),this.element=E instanceof n.aKT?E.nativeElement:E}}class a{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(E){return E instanceof _?(this._attachedPortal=E,this.attachComponentPortal(E)):E instanceof i?(this._attachedPortal=E,this.attachTemplatePortal(E)):this.attachDomPortal&&E instanceof r?(this._attachedPortal=E,this.attachDomPortal(E)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(E){this._disposeFn=E}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class m extends a{constructor(E,g,R,B,X){super(),this.outletElement=E,this._componentFactoryResolver=g,this._appRef=R,this._defaultInjector=B,this.attachDomPortal=H=>{const J=H.element,re=this._document.createComment("dom-portal");J.parentNode.insertBefore(re,J),this.outletElement.appendChild(J),this._attachedPortal=H,super.setDisposeFn(()=>{re.parentNode&&re.parentNode.replaceChild(J,re)})},this._document=X}attachComponentPortal(E){const R=(E.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(E.component);let B;return E.viewContainerRef?(B=E.viewContainerRef.createComponent(R,E.viewContainerRef.length,E.injector||E.viewContainerRef.injector,E.projectableNodes||void 0),this.setDisposeFn(()=>B.destroy())):(B=R.create(E.injector||this._defaultInjector||n.zZn.NULL),this._appRef.attachView(B.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(B.hostView),B.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(B)),this._attachedPortal=E,B}attachTemplatePortal(E){let g=E.viewContainerRef,R=g.createEmbeddedView(E.templateRef,E.context,{injector:E.injector});return R.rootNodes.forEach(B=>this.outletElement.appendChild(B)),R.detectChanges(),this.setDisposeFn(()=>{let B=g.indexOf(R);-1!==B&&g.remove(B)}),this._attachedPortal=E,R}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(E){return E.hostView.rootNodes[0]}}let D=(()=>{class L extends i{constructor(g,R){super(g,R)}static{this.\u0275fac=function(R){return new(R||L)(n.rXU(n.C4Q),n.rXU(n.c1b))}}static{this.\u0275dir=n.FsC({type:L,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.Vt3]})}}return L})(),U=(()=>{class L extends a{constructor(g,R,B){super(),this._componentFactoryResolver=g,this._viewContainerRef=R,this._isInitialized=!1,this.attached=new n.bkB,this.attachDomPortal=X=>{const H=X.element,J=this._document.createComment("dom-portal");X.setAttachedHost(this),H.parentNode.insertBefore(J,H),this._getRootNode().appendChild(H),this._attachedPortal=X,super.setDisposeFn(()=>{J.parentNode&&J.parentNode.replaceChild(H,J)})},this._document=B}get portal(){return this._attachedPortal}set portal(g){this.hasAttached()&&!g&&!this._isInitialized||(this.hasAttached()&&super.detach(),g&&super.attach(g),this._attachedPortal=g||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(g){g.setAttachedHost(this);const R=null!=g.viewContainerRef?g.viewContainerRef:this._viewContainerRef,X=(g.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(g.component),H=R.createComponent(X,R.length,g.injector||R.injector,g.projectableNodes||void 0);return R!==this._viewContainerRef&&this._getRootNode().appendChild(H.hostView.rootNodes[0]),super.setDisposeFn(()=>H.destroy()),this._attachedPortal=g,this._attachedRef=H,this.attached.emit(H),H}attachTemplatePortal(g){g.setAttachedHost(this);const R=this._viewContainerRef.createEmbeddedView(g.templateRef,g.context,{injector:g.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=g,this._attachedRef=R,this.attached.emit(R),R}_getRootNode(){const g=this._viewContainerRef.element.nativeElement;return g.nodeType===g.ELEMENT_NODE?g:g.parentNode}static{this.\u0275fac=function(R){return new(R||L)(n.rXU(n.OM3),n.rXU(n.c1b),n.rXU(l.qQ))}}static{this.\u0275dir=n.FsC({type:L,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[n.Mj6.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.Vt3]})}}return L})(),T=(()=>{class L{static{this.\u0275fac=function(R){return new(R||L)}}static{this.\u0275mod=n.$C({type:L})}static{this.\u0275inj=n.G2t({})}}return L})()},64409:(Bt,z,s)=>{"use strict";s.d(z,{E$:()=>Xe,E9:()=>A,Gj:()=>Q,Mr:()=>g,R:()=>J,Xj:()=>ve,d6:()=>Ce,yg:()=>X});var n=s(6364),l=s(58527),d=s(80583),v=s(43848),S=s(17053),y=s(36877),f=s(27594),O=s(62366),P=s(10399),_=s(39595),i=s(53461),r=s(76259),a=s(8619),c=s(4208),m=s(34593),M=s(14749),D=s(72147),I=s(55833),U=s(72653),V=s(61142),T=s(51394),N=s(40567);const L=["contentWrapper"],E=["*"],g=new l.nKC("VIRTUAL_SCROLL_STRATEGY");class R{constructor(ne,G,W){this._scrolledIndexChange=new d.B7,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,i.F)()),this._viewport=null,this._itemSize=ne,this._minBufferPx=G,this._maxBufferPx=W}attach(ne){this._viewport=ne,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(ne,G,W){this._itemSize=ne,this._minBufferPx=G,this._maxBufferPx=W,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(ne,G){this._viewport&&this._viewport.scrollToOffset(ne*this._itemSize,G)}_updateTotalContentSize(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const ne=this._viewport.getRenderedRange(),G={start:ne.start,end:ne.end},W=this._viewport.getViewportSize(),$=this._viewport.getDataLength();let le=this._viewport.measureScrollOffset(),Pe=this._itemSize>0?le/this._itemSize:0;if(G.end>$){const At=Math.ceil(W/this._itemSize),Le=Math.max(0,Math.min(Pe,$-At));Pe!=Le&&(Pe=Le,le=Le*this._itemSize,G.start=Math.floor(Pe)),G.end=Math.max(0,Math.min($,G.start+At))}const Fe=le-G.start*this._itemSize;if(Fe<this._minBufferPx&&0!=G.start){const At=Math.ceil((this._maxBufferPx-Fe)/this._itemSize);G.start=Math.max(0,G.start-At),G.end=Math.min($,Math.ceil(Pe+(W+this._minBufferPx)/this._itemSize))}else{const At=G.end*this._itemSize-(le+W);if(At<this._minBufferPx&&G.end!=$){const Le=Math.ceil((this._maxBufferPx-At)/this._itemSize);Le>0&&(G.end=Math.min($,G.end+Le),G.start=Math.max(0,Math.floor(Pe-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(G),this._viewport.setRenderedContentOffset(this._itemSize*G.start),this._scrolledIndexChange.next(Math.floor(Pe))}}function B(me){return me._scrollStrategy}let X=(()=>{class me{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new R(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(G){this._itemSize=(0,n.OE)(G)}get minBufferPx(){return this._minBufferPx}set minBufferPx(G){this._minBufferPx=(0,n.OE)(G)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(G){this._maxBufferPx=(0,n.OE)(G)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}static{this.\u0275fac=function(W){return new(W||me)}}static{this.\u0275dir=l.FsC({type:me,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},standalone:!0,features:[l.Jv_([{provide:g,useFactory:B,deps:[(0,l.Rfq)(()=>me)]}]),l.OA$]})}}return me})(),J=(()=>{class me{constructor(G,W,$){this._ngZone=G,this._platform=W,this._scrolled=new d.B7,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=$}register(G){this.scrollContainers.has(G)||this.scrollContainers.set(G,G.elementScrolled().subscribe(()=>this._scrolled.next(G)))}deregister(G){const W=this.scrollContainers.get(G);W&&(W.unsubscribe(),this.scrollContainers.delete(G))}scrolled(G=20){return this._platform.isBrowser?new S.c(W=>{this._globalSubscription||this._addGlobalListener();const $=G>0?this._scrolled.pipe((0,r.Z)(G)).subscribe(W):this._scrolled.subscribe(W);return this._scrolledCount++,()=>{$.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,v.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((G,W)=>this.deregister(W)),this._scrolled.complete()}ancestorScrolled(G,W){const $=this.getAncestorScrollContainers(G);return this.scrolled(W).pipe((0,a.p)(le=>!le||$.indexOf(le)>-1))}getAncestorScrollContainers(G){const W=[];return this.scrollContainers.forEach(($,le)=>{this._scrollableContainsElement(le,G)&&W.push(le)}),W}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(G,W){let $=(0,n.i8)(W),le=G.getElementRef().nativeElement;do{if($==le)return!0}while($=$.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const G=this._getWindow();return(0,y.R)(G.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static{this.\u0275fac=function(W){return new(W||me)(l.KVO(l.SKi),l.KVO(U.OD),l.KVO(V.qQ,8))}}static{this.\u0275prov=l.jDH({token:me,factory:me.\u0275fac,providedIn:"root"})}}return me})(),re=(()=>{class me{constructor(G,W,$,le){this.elementRef=G,this.scrollDispatcher=W,this.ngZone=$,this.dir=le,this._destroyed=new d.B7,this._elementScrolled=new S.c(Pe=>this.ngZone.runOutsideAngular(()=>(0,y.R)(this.elementRef.nativeElement,"scroll").pipe((0,c.Q)(this._destroyed)).subscribe(Pe)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(G){const W=this.elementRef.nativeElement,$=this.dir&&"rtl"==this.dir.value;null==G.left&&(G.left=$?G.end:G.start),null==G.right&&(G.right=$?G.start:G.end),null!=G.bottom&&(G.top=W.scrollHeight-W.clientHeight-G.bottom),$&&0!=(0,U.BD)()?(null!=G.left&&(G.right=W.scrollWidth-W.clientWidth-G.left),2==(0,U.BD)()?G.left=G.right:1==(0,U.BD)()&&(G.left=G.right?-G.right:G.right)):null!=G.right&&(G.left=W.scrollWidth-W.clientWidth-G.right),this._applyScrollToOptions(G)}_applyScrollToOptions(G){const W=this.elementRef.nativeElement;(0,U.CZ)()?W.scrollTo(G):(null!=G.top&&(W.scrollTop=G.top),null!=G.left&&(W.scrollLeft=G.left))}measureScrollOffset(G){const W="left",$="right",le=this.elementRef.nativeElement;if("top"==G)return le.scrollTop;if("bottom"==G)return le.scrollHeight-le.clientHeight-le.scrollTop;const Pe=this.dir&&"rtl"==this.dir.value;return"start"==G?G=Pe?$:W:"end"==G&&(G=Pe?W:$),Pe&&2==(0,U.BD)()?G==W?le.scrollWidth-le.clientWidth-le.scrollLeft:le.scrollLeft:Pe&&1==(0,U.BD)()?G==W?le.scrollLeft+le.scrollWidth-le.clientWidth:-le.scrollLeft:G==W?le.scrollLeft:le.scrollWidth-le.clientWidth-le.scrollLeft}static{this.\u0275fac=function(W){return new(W||me)(l.rXU(l.aKT),l.rXU(J),l.rXU(l.SKi),l.rXU(T.dS,8))}}static{this.\u0275dir=l.FsC({type:me,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}}return me})(),ve=(()=>{class me{constructor(G,W,$){this._platform=G,this._change=new d.B7,this._changeListener=le=>{this._change.next(le)},this._document=$,W.runOutsideAngular(()=>{if(G.isBrowser){const le=this._getWindow();le.addEventListener("resize",this._changeListener),le.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const G=this._getWindow();G.removeEventListener("resize",this._changeListener),G.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const G={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),G}getViewportRect(){const G=this.getViewportScrollPosition(),{width:W,height:$}=this.getViewportSize();return{top:G.top,left:G.left,bottom:G.top+$,right:G.left+W,height:$,width:W}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const G=this._document,W=this._getWindow(),$=G.documentElement,le=$.getBoundingClientRect();return{top:-le.top||G.body.scrollTop||W.scrollY||$.scrollTop||0,left:-le.left||G.body.scrollLeft||W.scrollX||$.scrollLeft||0}}change(G=20){return G>0?this._change.pipe((0,r.Z)(G)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const G=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:G.innerWidth,height:G.innerHeight}:{width:0,height:0}}static{this.\u0275fac=function(W){return new(W||me)(l.KVO(U.OD),l.KVO(l.SKi),l.KVO(V.qQ,8))}}static{this.\u0275prov=l.jDH({token:me,factory:me.\u0275fac,providedIn:"root"})}}return me})();const ue=new l.nKC("VIRTUAL_SCROLLABLE");let se=(()=>{class me extends re{constructor(G,W,$,le){super(G,W,$,le)}measureViewportSize(G){const W=this.elementRef.nativeElement;return"horizontal"===G?W.clientWidth:W.clientHeight}static{this.\u0275fac=function(W){return new(W||me)(l.rXU(l.aKT),l.rXU(J),l.rXU(l.SKi),l.rXU(T.dS,8))}}static{this.\u0275dir=l.FsC({type:me,features:[l.Vt3]})}}return me})();const Se=typeof requestAnimationFrame<"u"?f.X:O.$;let Ce=(()=>{class me extends se{get orientation(){return this._orientation}set orientation(G){this._orientation!==G&&(this._orientation=G,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(G){this._appendOnly=(0,n.he)(G)}constructor(G,W,$,le,Pe,Fe,At,Le){super(G,Fe,$,Pe),this.elementRef=G,this._changeDetectorRef=W,this._scrollStrategy=le,this.scrollable=Le,this._platform=(0,l.WQX)(U.OD),this._detachedSubject=new d.B7,this._renderedRangeSubject=new d.B7,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new S.c(Et=>this._scrollStrategy.scrolledIndexChange.subscribe($e=>Promise.resolve().then(()=>this.ngZone.run(()=>Et.next($e))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=P.y.EMPTY,this._viewportChanges=At.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,m.Z)(null),(0,r.Z)(0,Se),(0,c.Q)(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(G){this.ngZone.runOutsideAngular(()=>{this._forOf=G,this._forOf.dataStream.pipe((0,c.Q)(this._detachedSubject)).subscribe(W=>{const $=W.length;$!==this._dataLength&&(this._dataLength=$,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(G){return this.getElementRef().nativeElement.getBoundingClientRect()[G]}setTotalContentSize(G){this._totalContentSize!==G&&(this._totalContentSize=G,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(G){(function Z(me,ne){return me.start==ne.start&&me.end==ne.end})(this._renderedRange,G)||(this.appendOnly&&(G={start:0,end:Math.max(this._renderedRange.end,G.end)}),this._renderedRangeSubject.next(this._renderedRange=G),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(G,W="to-start"){G=this.appendOnly&&"to-start"===W?0:G;const le="horizontal"==this.orientation,Pe=le?"X":"Y";let At=`translate${Pe}(${Number((le&&this.dir&&"rtl"==this.dir.value?-1:1)*G)}px)`;this._renderedContentOffset=G,"to-end"===W&&(At+=` translate${Pe}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=At&&(this._renderedContentTransform=At,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(G,W="auto"){const $={behavior:W};"horizontal"===this.orientation?$.start=G:$.top=G,this.scrollable.scrollTo($)}scrollToIndex(G,W="auto"){this._scrollStrategy.scrollToIndex(G,W)}measureScrollOffset(G){let W;return W=this.scrollable==this?$=>super.measureScrollOffset($):$=>this.scrollable.measureScrollOffset($),Math.max(0,W(G??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(G){let W;const $="left",Pe="rtl"==this.dir?.value;W="start"==G?Pe?"right":$:"end"==G?Pe?$:"right":G||("horizontal"===this.orientation?"left":"top");const Fe=this.scrollable.measureBoundingClientRectWithScrollOffset(W);return this.elementRef.nativeElement.getBoundingClientRect()[W]-Fe}measureRenderedContentSize(){const G=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?G.offsetWidth:G.offsetHeight}measureRangeSize(G){return this._forOf?this._forOf.measureRangeSize(G,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(G){G&&this._runAfterChangeDetection.push(G),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const G=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const W of G)W()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}static{this.\u0275fac=function(W){return new(W||me)(l.rXU(l.aKT),l.rXU(l.gRc),l.rXU(l.SKi),l.rXU(g,8),l.rXU(T.dS,8),l.rXU(J),l.rXU(ve),l.rXU(ue,8))}}static{this.\u0275cmp=l.VBU({type:me,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(W,$){if(1&W&&l.GBs(L,7),2&W){let le;l.mGM(le=l.lsd())&&($._contentWrapper=le.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(W,$){2&W&&l.AVh("cdk-virtual-scroll-orientation-horizontal","horizontal"===$.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==$.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[l.Jv_([{provide:re,useFactory:(G,W)=>G||W,deps:[[new l.Xx1,new l.y_5(ue)],me]}]),l.Vt3,l.aNF],ngContentSelectors:E,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(W,$){1&W&&(l.NAR(),l.j41(0,"div",1,0),l.SdG(2),l.k0s(),l.nrm(3,"div",2)),2&W&&(l.R7$(3),l.xc7("width",$._totalContentWidth)("height",$._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0})}}return me})();function Be(me,ne,G){if(!G.getBoundingClientRect)return 0;const $=G.getBoundingClientRect();return"horizontal"===me?"start"===ne?$.left:$.right:"start"===ne?$.top:$.bottom}let Xe=(()=>{class me{get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(G){this._cdkVirtualForOf=G,(0,N.y4)(G)?this._dataSourceChanges.next(G):this._dataSourceChanges.next(new N.hx((0,_.A)(G)?G:Array.from(G||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(G){this._needsUpdate=!0,this._cdkVirtualForTrackBy=G?(W,$)=>G(W+(this._renderedRange?this._renderedRange.start:0),$):void 0}set cdkVirtualForTemplate(G){G&&(this._needsUpdate=!0,this._template=G)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(G){this._viewRepeater.viewCacheSize=(0,n.OE)(G)}constructor(G,W,$,le,Pe,Fe){this._viewContainerRef=G,this._template=W,this._differs=$,this._viewRepeater=le,this._viewport=Pe,this.viewChange=new d.B7,this._dataSourceChanges=new d.B7,this.dataStream=this._dataSourceChanges.pipe((0,m.Z)(null),(0,M.J)(),(0,D.n)(([At,Le])=>this._changeDataSource(At,Le)),(0,I.t)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new d.B7,this.dataStream.subscribe(At=>{this._data=At,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,c.Q)(this._destroyed)).subscribe(At=>{this._renderedRange=At,this.viewChange.observers.length&&Fe.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(G,W){if(G.start>=G.end)return 0;const $=G.start-this._renderedRange.start,le=G.end-G.start;let Pe,Fe;for(let At=0;At<le;At++){const Le=this._viewContainerRef.get(At+$);if(Le&&Le.rootNodes.length){Pe=Fe=Le.rootNodes[0];break}}for(let At=le-1;At>-1;At--){const Le=this._viewContainerRef.get(At+$);if(Le&&Le.rootNodes.length){Fe=Le.rootNodes[Le.rootNodes.length-1];break}}return Pe&&Fe?Be(W,"end",Fe)-Be(W,"start",Pe):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const G=this._differ.diff(this._renderedItems);G?this._applyChanges(G):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((G,W)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(G,W):W)),this._needsUpdate=!0)}_changeDataSource(G,W){return G&&G.disconnect(this),this._needsUpdate=!0,W?W.connect(this):(0,v.of)()}_updateContext(){const G=this._data.length;let W=this._viewContainerRef.length;for(;W--;){const $=this._viewContainerRef.get(W);$.context.index=this._renderedRange.start+W,$.context.count=G,this._updateComputedContextProperties($.context),$.detectChanges()}}_applyChanges(G){this._viewRepeater.applyChanges(G,this._viewContainerRef,(le,Pe,Fe)=>this._getEmbeddedViewArgs(le,Fe),le=>le.item),G.forEachIdentityChange(le=>{this._viewContainerRef.get(le.currentIndex).context.$implicit=le.item});const W=this._data.length;let $=this._viewContainerRef.length;for(;$--;){const le=this._viewContainerRef.get($);le.context.index=this._renderedRange.start+$,le.context.count=W,this._updateComputedContextProperties(le.context)}}_updateComputedContextProperties(G){G.first=0===G.index,G.last=G.index===G.count-1,G.even=G.index%2==0,G.odd=!G.even}_getEmbeddedViewArgs(G,W){return{templateRef:this._template,context:{$implicit:G.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:W}}static{this.\u0275fac=function(W){return new(W||me)(l.rXU(l.c1b),l.rXU(l.C4Q),l.rXU(l._q3),l.rXU(N.sL),l.rXU(Ce,4),l.rXU(l.SKi))}}static{this.\u0275dir=l.FsC({type:me,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},standalone:!0,features:[l.Jv_([{provide:N.sL,useClass:N.DQ}])]})}}return me})(),Q=(()=>{class me{static{this.\u0275fac=function(W){return new(W||me)}}static{this.\u0275mod=l.$C({type:me})}static{this.\u0275inj=l.G2t({})}}return me})(),A=(()=>{class me{static{this.\u0275fac=function(W){return new(W||me)}}static{this.\u0275mod=l.$C({type:me})}static{this.\u0275inj=l.G2t({imports:[T.jI,Q,T.jI,Q]})}}return me})()},61142:(Bt,z,s)=>{"use strict";s.d(z,{AJ:()=>ys,B3:()=>Yr,Jj:()=>Bn,MD:()=>Xs,N0:()=>Ga,Pc:()=>Fr,QT:()=>d,Sm:()=>M,Sq:()=>$r,T3:()=>go,UE:()=>Ms,VF:()=>S,Vy:()=>Ua,Xr:()=>Ia,YU:()=>ln,ZD:()=>v,_b:()=>Yn,aZ:()=>I,bT:()=>Kn,e1:()=>jr,fG:()=>ho,fw:()=>D,hb:()=>c,hj:()=>P,lG:()=>oo,pM:()=>$r,qQ:()=>f,ux:()=>ar,vh:()=>Ut});var n=s(58527);let l=null;function d(){return l}function v(Mt){l??=Mt}class S{}const f=new n.nKC("");let O=(()=>{class Mt{historyGo(qt){throw new Error("")}static{this.\u0275fac=function(Pn){return new(Pn||Mt)}}static{this.\u0275prov=n.jDH({token:Mt,factory:()=>(0,n.WQX)(_),providedIn:"platform"})}}return Mt})();const P=new n.nKC("");let _=(()=>{class Mt extends O{constructor(){super(),this._doc=(0,n.WQX)(f),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return d().getBaseHref(this._doc)}onPopState(qt){const Pn=d().getGlobalEventTarget(this._doc,"window");return Pn.addEventListener("popstate",qt,!1),()=>Pn.removeEventListener("popstate",qt)}onHashChange(qt){const Pn=d().getGlobalEventTarget(this._doc,"window");return Pn.addEventListener("hashchange",qt,!1),()=>Pn.removeEventListener("hashchange",qt)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(qt){this._location.pathname=qt}pushState(qt,Pn,yi){this._history.pushState(qt,Pn,yi)}replaceState(qt,Pn,yi){this._history.replaceState(qt,Pn,yi)}forward(){this._history.forward()}back(){this._history.back()}historyGo(qt=0){this._history.go(qt)}getState(){return this._history.state}static{this.\u0275fac=function(Pn){return new(Pn||Mt)}}static{this.\u0275prov=n.jDH({token:Mt,factory:()=>new Mt,providedIn:"platform"})}}return Mt})();function i(Mt,Dn){if(0==Mt.length)return Dn;if(0==Dn.length)return Mt;let qt=0;return Mt.endsWith("/")&&qt++,Dn.startsWith("/")&&qt++,2==qt?Mt+Dn.substring(1):1==qt?Mt+Dn:Mt+"/"+Dn}function r(Mt){const Dn=Mt.match(/#|\?|$/),qt=Dn&&Dn.index||Mt.length;return Mt.slice(0,qt-("/"===Mt[qt-1]?1:0))+Mt.slice(qt)}function a(Mt){return Mt&&"?"!==Mt[0]?"?"+Mt:Mt}let c=(()=>{class Mt{historyGo(qt){throw new Error("")}static{this.\u0275fac=function(Pn){return new(Pn||Mt)}}static{this.\u0275prov=n.jDH({token:Mt,factory:()=>(0,n.WQX)(M),providedIn:"root"})}}return Mt})();const m=new n.nKC("");let M=(()=>{class Mt extends c{constructor(qt,Pn){super(),this._platformLocation=qt,this._removeListenerFns=[],this._baseHref=Pn??this._platformLocation.getBaseHrefFromDOM()??(0,n.WQX)(f).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(qt){this._removeListenerFns.push(this._platformLocation.onPopState(qt),this._platformLocation.onHashChange(qt))}getBaseHref(){return this._baseHref}prepareExternalUrl(qt){return i(this._baseHref,qt)}path(qt=!1){const Pn=this._platformLocation.pathname+a(this._platformLocation.search),yi=this._platformLocation.hash;return yi&&qt?`${Pn}${yi}`:Pn}pushState(qt,Pn,yi,ur){const Pr=this.prepareExternalUrl(yi+a(ur));this._platformLocation.pushState(qt,Pn,Pr)}replaceState(qt,Pn,yi,ur){const Pr=this.prepareExternalUrl(yi+a(ur));this._platformLocation.replaceState(qt,Pn,Pr)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(qt=0){this._platformLocation.historyGo?.(qt)}static{this.\u0275fac=function(Pn){return new(Pn||Mt)(n.KVO(O),n.KVO(m,8))}}static{this.\u0275prov=n.jDH({token:Mt,factory:Mt.\u0275fac,providedIn:"root"})}}return Mt})(),D=(()=>{class Mt extends c{constructor(qt,Pn){super(),this._platformLocation=qt,this._baseHref="",this._removeListenerFns=[],null!=Pn&&(this._baseHref=Pn)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(qt){this._removeListenerFns.push(this._platformLocation.onPopState(qt),this._platformLocation.onHashChange(qt))}getBaseHref(){return this._baseHref}path(qt=!1){const Pn=this._platformLocation.hash??"#";return Pn.length>0?Pn.substring(1):Pn}prepareExternalUrl(qt){const Pn=i(this._baseHref,qt);return Pn.length>0?"#"+Pn:Pn}pushState(qt,Pn,yi,ur){let Pr=this.prepareExternalUrl(yi+a(ur));0==Pr.length&&(Pr=this._platformLocation.pathname),this._platformLocation.pushState(qt,Pn,Pr)}replaceState(qt,Pn,yi,ur){let Pr=this.prepareExternalUrl(yi+a(ur));0==Pr.length&&(Pr=this._platformLocation.pathname),this._platformLocation.replaceState(qt,Pn,Pr)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(qt=0){this._platformLocation.historyGo?.(qt)}static{this.\u0275fac=function(Pn){return new(Pn||Mt)(n.KVO(O),n.KVO(m,8))}}static{this.\u0275prov=n.jDH({token:Mt,factory:Mt.\u0275fac})}}return Mt})(),I=(()=>{class Mt{constructor(qt){this._subject=new n.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=qt;const Pn=this._locationStrategy.getBaseHref();this._basePath=function N(Mt){if(new RegExp("^(https?:)?//").test(Mt)){const[,qt]=Mt.split(/\/\/[^\/]+/);return qt}return Mt}(r(T(Pn))),this._locationStrategy.onPopState(yi=>{this._subject.emit({url:this.path(!0),pop:!0,state:yi.state,type:yi.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(qt=!1){return this.normalize(this._locationStrategy.path(qt))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(qt,Pn=""){return this.path()==this.normalize(qt+a(Pn))}normalize(qt){return Mt.stripTrailingSlash(function V(Mt,Dn){if(!Mt||!Dn.startsWith(Mt))return Dn;const qt=Dn.substring(Mt.length);return""===qt||["/",";","?","#"].includes(qt[0])?qt:Dn}(this._basePath,T(qt)))}prepareExternalUrl(qt){return qt&&"/"!==qt[0]&&(qt="/"+qt),this._locationStrategy.prepareExternalUrl(qt)}go(qt,Pn="",yi=null){this._locationStrategy.pushState(yi,"",qt,Pn),this._notifyUrlChangeListeners(this.prepareExternalUrl(qt+a(Pn)),yi)}replaceState(qt,Pn="",yi=null){this._locationStrategy.replaceState(yi,"",qt,Pn),this._notifyUrlChangeListeners(this.prepareExternalUrl(qt+a(Pn)),yi)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(qt=0){this._locationStrategy.historyGo?.(qt)}onUrlChange(qt){return this._urlChangeListeners.push(qt),this._urlChangeSubscription??=this.subscribe(Pn=>{this._notifyUrlChangeListeners(Pn.url,Pn.state)}),()=>{const Pn=this._urlChangeListeners.indexOf(qt);this._urlChangeListeners.splice(Pn,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(qt="",Pn){this._urlChangeListeners.forEach(yi=>yi(qt,Pn))}subscribe(qt,Pn,yi){return this._subject.subscribe({next:qt,error:Pn,complete:yi})}static{this.normalizeQueryParams=a}static{this.joinWithSlash=i}static{this.stripTrailingSlash=r}static{this.\u0275fac=function(Pn){return new(Pn||Mt)(n.KVO(c))}}static{this.\u0275prov=n.jDH({token:Mt,factory:()=>function U(){return new I((0,n.KVO)(c))}(),providedIn:"root"})}}return Mt})();function T(Mt){return Mt.replace(/\/index.html$/,"")}var R=function(Mt){return Mt[Mt.Format=0]="Format",Mt[Mt.Standalone=1]="Standalone",Mt}(R||{}),B=function(Mt){return Mt[Mt.Narrow=0]="Narrow",Mt[Mt.Abbreviated=1]="Abbreviated",Mt[Mt.Wide=2]="Wide",Mt[Mt.Short=3]="Short",Mt}(B||{}),X=function(Mt){return Mt[Mt.Short=0]="Short",Mt[Mt.Medium=1]="Medium",Mt[Mt.Long=2]="Long",Mt[Mt.Full=3]="Full",Mt}(X||{});const H={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Ce(Mt,Dn){return Fe((0,n.H5H)(Mt)[n.KH2.DateFormat],Dn)}function Be(Mt,Dn){return Fe((0,n.H5H)(Mt)[n.KH2.TimeFormat],Dn)}function Xe(Mt,Dn){return Fe((0,n.H5H)(Mt)[n.KH2.DateTimeFormat],Dn)}function He(Mt,Dn){const qt=(0,n.H5H)(Mt),Pn=qt[n.KH2.NumberSymbols][Dn];if(typeof Pn>"u"){if(Dn===H.CurrencyDecimal)return qt[n.KH2.NumberSymbols][H.Decimal];if(Dn===H.CurrencyGroup)return qt[n.KH2.NumberSymbols][H.Group]}return Pn}function W(Mt){if(!Mt[n.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${Mt[n.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Fe(Mt,Dn){for(let qt=Dn;qt>-1;qt--)if(typeof Mt[qt]<"u")return Mt[qt];throw new Error("Locale data API: locale data undefined")}function At(Mt){const[Dn,qt]=Mt.split(":");return{hours:+Dn,minutes:+qt}}const Ze=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Qe={},Ve=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var nt=function(Mt){return Mt[Mt.Short=0]="Short",Mt[Mt.ShortGMT=1]="ShortGMT",Mt[Mt.Long=2]="Long",Mt[Mt.Extended=3]="Extended",Mt}(nt||{}),Ot=function(Mt){return Mt[Mt.FullYear=0]="FullYear",Mt[Mt.Month=1]="Month",Mt[Mt.Date=2]="Date",Mt[Mt.Hours=3]="Hours",Mt[Mt.Minutes=4]="Minutes",Mt[Mt.Seconds=5]="Seconds",Mt[Mt.FractionalSeconds=6]="FractionalSeconds",Mt[Mt.Day=7]="Day",Mt}(Ot||{}),at=function(Mt){return Mt[Mt.DayPeriods=0]="DayPeriods",Mt[Mt.Days=1]="Days",Mt[Mt.Months=2]="Months",Mt[Mt.Eras=3]="Eras",Mt}(at||{});function It(Mt,Dn,qt,Pn){let yi=function fn(Mt){if(On(Mt))return Mt;if("number"==typeof Mt&&!isNaN(Mt))return new Date(Mt);if("string"==typeof Mt){if(Mt=Mt.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Mt)){const[yi,ur=1,Pr=1]=Mt.split("-").map(uo=>+uo);return We(yi,ur-1,Pr)}const qt=parseFloat(Mt);if(!isNaN(Mt-qt))return new Date(qt);let Pn;if(Pn=Mt.match(Ze))return function hn(Mt){const Dn=new Date(0);let qt=0,Pn=0;const yi=Mt[8]?Dn.setUTCFullYear:Dn.setFullYear,ur=Mt[8]?Dn.setUTCHours:Dn.setHours;Mt[9]&&(qt=Number(Mt[9]+Mt[10]),Pn=Number(Mt[9]+Mt[11])),yi.call(Dn,Number(Mt[1]),Number(Mt[2])-1,Number(Mt[3]));const Pr=Number(Mt[4]||0)-qt,uo=Number(Mt[5]||0)-Pn,vs=Number(Mt[6]||0),ss=Math.floor(1e3*parseFloat("0."+(Mt[7]||0)));return ur.call(Dn,Pr,uo,vs,ss),Dn}(Pn)}const Dn=new Date(Mt);if(!On(Dn))throw new Error(`Unable to convert "${Mt}" into a date`);return Dn}(Mt);Dn=xe(qt,Dn)||Dn;let uo,Pr=[];for(;Dn;){if(uo=Ve.exec(Dn),!uo){Pr.push(Dn);break}{Pr=Pr.concat(uo.slice(1));const Ts=Pr.pop();if(!Ts)break;Dn=Ts}}let vs=yi.getTimezoneOffset();Pn&&(vs=qe(Pn,vs),yi=function Zt(Mt,Dn,qt){const Pn=qt?-1:1,yi=Mt.getTimezoneOffset();return function Lt(Mt,Dn){return(Mt=new Date(Mt.getTime())).setMinutes(Mt.getMinutes()+Dn),Mt}(Mt,Pn*(qe(Dn,yi)-yi))}(yi,Pn,!0));let ss="";return Pr.forEach(Ts=>{const Ro=function Ae(Mt){if(be[Mt])return be[Mt];let Dn;switch(Mt){case"G":case"GG":case"GGG":Dn=Je(at.Eras,B.Abbreviated);break;case"GGGG":Dn=Je(at.Eras,B.Wide);break;case"GGGGG":Dn=Je(at.Eras,B.Narrow);break;case"y":Dn=Xt(Ot.FullYear,1,0,!1,!0);break;case"yy":Dn=Xt(Ot.FullYear,2,0,!0,!0);break;case"yyy":Dn=Xt(Ot.FullYear,3,0,!1,!0);break;case"yyyy":Dn=Xt(Ot.FullYear,4,0,!1,!0);break;case"Y":Dn=ke(1);break;case"YY":Dn=ke(2,!0);break;case"YYY":Dn=ke(3);break;case"YYYY":Dn=ke(4);break;case"M":case"L":Dn=Xt(Ot.Month,1,1);break;case"MM":case"LL":Dn=Xt(Ot.Month,2,1);break;case"MMM":Dn=Je(at.Months,B.Abbreviated);break;case"MMMM":Dn=Je(at.Months,B.Wide);break;case"MMMMM":Dn=Je(at.Months,B.Narrow);break;case"LLL":Dn=Je(at.Months,B.Abbreviated,R.Standalone);break;case"LLLL":Dn=Je(at.Months,B.Wide,R.Standalone);break;case"LLLLL":Dn=Je(at.Months,B.Narrow,R.Standalone);break;case"w":Dn=Wt(1);break;case"ww":Dn=Wt(2);break;case"W":Dn=Wt(1,!0);break;case"d":Dn=Xt(Ot.Date,1);break;case"dd":Dn=Xt(Ot.Date,2);break;case"c":case"cc":Dn=Xt(Ot.Day,1);break;case"ccc":Dn=Je(at.Days,B.Abbreviated,R.Standalone);break;case"cccc":Dn=Je(at.Days,B.Wide,R.Standalone);break;case"ccccc":Dn=Je(at.Days,B.Narrow,R.Standalone);break;case"cccccc":Dn=Je(at.Days,B.Short,R.Standalone);break;case"E":case"EE":case"EEE":Dn=Je(at.Days,B.Abbreviated);break;case"EEEE":Dn=Je(at.Days,B.Wide);break;case"EEEEE":Dn=Je(at.Days,B.Narrow);break;case"EEEEEE":Dn=Je(at.Days,B.Short);break;case"a":case"aa":case"aaa":Dn=Je(at.DayPeriods,B.Abbreviated);break;case"aaaa":Dn=Je(at.DayPeriods,B.Wide);break;case"aaaaa":Dn=Je(at.DayPeriods,B.Narrow);break;case"b":case"bb":case"bbb":Dn=Je(at.DayPeriods,B.Abbreviated,R.Standalone,!0);break;case"bbbb":Dn=Je(at.DayPeriods,B.Wide,R.Standalone,!0);break;case"bbbbb":Dn=Je(at.DayPeriods,B.Narrow,R.Standalone,!0);break;case"B":case"BB":case"BBB":Dn=Je(at.DayPeriods,B.Abbreviated,R.Format,!0);break;case"BBBB":Dn=Je(at.DayPeriods,B.Wide,R.Format,!0);break;case"BBBBB":Dn=Je(at.DayPeriods,B.Narrow,R.Format,!0);break;case"h":Dn=Xt(Ot.Hours,1,-12);break;case"hh":Dn=Xt(Ot.Hours,2,-12);break;case"H":Dn=Xt(Ot.Hours,1);break;case"HH":Dn=Xt(Ot.Hours,2);break;case"m":Dn=Xt(Ot.Minutes,1);break;case"mm":Dn=Xt(Ot.Minutes,2);break;case"s":Dn=Xt(Ot.Seconds,1);break;case"ss":Dn=Xt(Ot.Seconds,2);break;case"S":Dn=Xt(Ot.FractionalSeconds,1);break;case"SS":Dn=Xt(Ot.FractionalSeconds,2);break;case"SSS":Dn=Xt(Ot.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Dn=rt(nt.Short);break;case"ZZZZZ":Dn=rt(nt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Dn=rt(nt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Dn=rt(nt.Long);break;default:return null}return be[Mt]=Dn,Dn}(Ts);ss+=Ro?Ro(yi,qt,vs):"''"===Ts?"'":Ts.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ss}function We(Mt,Dn,qt){const Pn=new Date(0);return Pn.setFullYear(Mt,Dn,qt),Pn.setHours(0,0,0),Pn}function xe(Mt,Dn){const qt=function re(Mt){return(0,n.H5H)(Mt)[n.KH2.LocaleId]}(Mt);if(Qe[qt]??={},Qe[qt][Dn])return Qe[qt][Dn];let Pn="";switch(Dn){case"shortDate":Pn=Ce(Mt,X.Short);break;case"mediumDate":Pn=Ce(Mt,X.Medium);break;case"longDate":Pn=Ce(Mt,X.Long);break;case"fullDate":Pn=Ce(Mt,X.Full);break;case"shortTime":Pn=Be(Mt,X.Short);break;case"mediumTime":Pn=Be(Mt,X.Medium);break;case"longTime":Pn=Be(Mt,X.Long);break;case"fullTime":Pn=Be(Mt,X.Full);break;case"short":const yi=xe(Mt,"shortTime"),ur=xe(Mt,"shortDate");Pn=lt(Xe(Mt,X.Short),[yi,ur]);break;case"medium":const Pr=xe(Mt,"mediumTime"),uo=xe(Mt,"mediumDate");Pn=lt(Xe(Mt,X.Medium),[Pr,uo]);break;case"long":const vs=xe(Mt,"longTime"),ss=xe(Mt,"longDate");Pn=lt(Xe(Mt,X.Long),[vs,ss]);break;case"full":const Ts=xe(Mt,"fullTime"),Ro=xe(Mt,"fullDate");Pn=lt(Xe(Mt,X.Full),[Ts,Ro])}return Pn&&(Qe[qt][Dn]=Pn),Pn}function lt(Mt,Dn){return Dn&&(Mt=Mt.replace(/\{([^}]+)}/g,function(qt,Pn){return null!=Dn&&Pn in Dn?Dn[Pn]:qt})),Mt}function ft(Mt,Dn,qt="-",Pn,yi){let ur="";(Mt<0||yi&&Mt<=0)&&(yi?Mt=1-Mt:(Mt=-Mt,ur=qt));let Pr=String(Mt);for(;Pr.length<Dn;)Pr="0"+Pr;return Pn&&(Pr=Pr.slice(Pr.length-Dn)),ur+Pr}function Xt(Mt,Dn,qt=0,Pn=!1,yi=!1){return function(ur,Pr){let uo=function Ht(Mt,Dn){switch(Mt){case Ot.FullYear:return Dn.getFullYear();case Ot.Month:return Dn.getMonth();case Ot.Date:return Dn.getDate();case Ot.Hours:return Dn.getHours();case Ot.Minutes:return Dn.getMinutes();case Ot.Seconds:return Dn.getSeconds();case Ot.FractionalSeconds:return Dn.getMilliseconds();case Ot.Day:return Dn.getDay();default:throw new Error(`Unknown DateType value "${Mt}".`)}}(Mt,ur);if((qt>0||uo>-qt)&&(uo+=qt),Mt===Ot.Hours)0===uo&&-12===qt&&(uo=12);else if(Mt===Ot.FractionalSeconds)return function ht(Mt,Dn){return ft(Mt,3).substring(0,Dn)}(uo,Dn);const vs=He(Pr,H.MinusSign);return ft(uo,Dn,vs,Pn,yi)}}function Je(Mt,Dn,qt=R.Format,Pn=!1){return function(yi,ur){return function tt(Mt,Dn,qt,Pn,yi,ur){switch(qt){case at.Months:return function ue(Mt,Dn,qt){const Pn=(0,n.H5H)(Mt),ur=Fe([Pn[n.KH2.MonthsFormat],Pn[n.KH2.MonthsStandalone]],Dn);return Fe(ur,qt)}(Dn,yi,Pn)[Mt.getMonth()];case at.Days:return function ve(Mt,Dn,qt){const Pn=(0,n.H5H)(Mt),ur=Fe([Pn[n.KH2.DaysFormat],Pn[n.KH2.DaysStandalone]],Dn);return Fe(ur,qt)}(Dn,yi,Pn)[Mt.getDay()];case at.DayPeriods:const Pr=Mt.getHours(),uo=Mt.getMinutes();if(ur){const ss=function $(Mt){const Dn=(0,n.H5H)(Mt);return W(Dn),(Dn[n.KH2.ExtraData][2]||[]).map(Pn=>"string"==typeof Pn?At(Pn):[At(Pn[0]),At(Pn[1])])}(Dn),Ts=function le(Mt,Dn,qt){const Pn=(0,n.H5H)(Mt);W(Pn);const ur=Fe([Pn[n.KH2.ExtraData][0],Pn[n.KH2.ExtraData][1]],Dn)||[];return Fe(ur,qt)||[]}(Dn,yi,Pn),Ro=ss.findIndex(Gs=>{if(Array.isArray(Gs)){const[es,hs]=Gs,Jo=Pr>=es.hours&&uo>=es.minutes,Gr=Pr<hs.hours||Pr===hs.hours&&uo<hs.minutes;if(es.hours<hs.hours){if(Jo&&Gr)return!0}else if(Jo||Gr)return!0}else if(Gs.hours===Pr&&Gs.minutes===uo)return!0;return!1});if(-1!==Ro)return Ts[Ro]}return function ie(Mt,Dn,qt){const Pn=(0,n.H5H)(Mt),ur=Fe([Pn[n.KH2.DayPeriodsFormat],Pn[n.KH2.DayPeriodsStandalone]],Dn);return Fe(ur,qt)}(Dn,yi,Pn)[Pr<12?0:1];case at.Eras:return function se(Mt,Dn){return Fe((0,n.H5H)(Mt)[n.KH2.Eras],Dn)}(Dn,Pn)[Mt.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${qt}`)}}(yi,ur,Mt,Dn,qt,Pn)}}function rt(Mt){return function(Dn,qt,Pn){const yi=-1*Pn,ur=He(qt,H.MinusSign),Pr=yi>0?Math.floor(yi/60):Math.ceil(yi/60);switch(Mt){case nt.Short:return(yi>=0?"+":"")+ft(Pr,2,ur)+ft(Math.abs(yi%60),2,ur);case nt.ShortGMT:return"GMT"+(yi>=0?"+":"")+ft(Pr,1,ur);case nt.Long:return"GMT"+(yi>=0?"+":"")+ft(Pr,2,ur)+":"+ft(Math.abs(yi%60),2,ur);case nt.Extended:return 0===Pn?"Z":(yi>=0?"+":"")+ft(Pr,2,ur)+":"+ft(Math.abs(yi%60),2,ur);default:throw new Error(`Unknown zone width "${Mt}"`)}}}const et=0,St=4;function yt(Mt){const Dn=Mt.getDay(),qt=0===Dn?-3:St-Dn;return We(Mt.getFullYear(),Mt.getMonth(),Mt.getDate()+qt)}function Wt(Mt,Dn=!1){return function(qt,Pn){let yi;if(Dn){const ur=new Date(qt.getFullYear(),qt.getMonth(),1).getDay()-1,Pr=qt.getDate();yi=1+Math.floor((Pr+ur)/7)}else{const ur=yt(qt),Pr=function Gt(Mt){const Dn=We(Mt,et,1).getDay();return We(Mt,0,1+(Dn<=St?St:St+7)-Dn)}(ur.getFullYear()),uo=ur.getTime()-Pr.getTime();yi=1+Math.round(uo/6048e5)}return ft(yi,Mt,He(Pn,H.MinusSign))}}function ke(Mt,Dn=!1){return function(qt,Pn){return ft(yt(qt).getFullYear(),Mt,He(Pn,H.MinusSign),Dn)}}const be={};function qe(Mt,Dn){Mt=Mt.replace(/:/g,"");const qt=Date.parse("Jan 01, 1970 00:00:00 "+Mt)/6e4;return isNaN(qt)?Dn:qt}function On(Mt){return Mt instanceof Date&&!isNaN(Mt.valueOf())}function Yn(Mt,Dn){Dn=encodeURIComponent(Dn);for(const qt of Mt.split(";")){const Pn=qt.indexOf("="),[yi,ur]=-1==Pn?[qt,""]:[qt.slice(0,Pn),qt.slice(Pn+1)];if(yi.trim()===Dn)return decodeURIComponent(ur)}return null}const Gn=/\s+/,Ci=[];let ln=(()=>{class Mt{constructor(qt,Pn){this._ngEl=qt,this._renderer=Pn,this.initialClasses=Ci,this.stateMap=new Map}set klass(qt){this.initialClasses=null!=qt?qt.trim().split(Gn):Ci}set ngClass(qt){this.rawClass="string"==typeof qt?qt.trim().split(Gn):qt}ngDoCheck(){for(const Pn of this.initialClasses)this._updateState(Pn,!0);const qt=this.rawClass;if(Array.isArray(qt)||qt instanceof Set)for(const Pn of qt)this._updateState(Pn,!0);else if(null!=qt)for(const Pn of Object.keys(qt))this._updateState(Pn,!!qt[Pn]);this._applyStateDiff()}_updateState(qt,Pn){const yi=this.stateMap.get(qt);void 0!==yi?(yi.enabled!==Pn&&(yi.changed=!0,yi.enabled=Pn),yi.touched=!0):this.stateMap.set(qt,{enabled:Pn,changed:!0,touched:!0})}_applyStateDiff(){for(const qt of this.stateMap){const Pn=qt[0],yi=qt[1];yi.changed?(this._toggleClass(Pn,yi.enabled),yi.changed=!1):yi.touched||(yi.enabled&&this._toggleClass(Pn,!1),this.stateMap.delete(Pn)),yi.touched=!1}}_toggleClass(qt,Pn){(qt=qt.trim()).length>0&&qt.split(Gn).forEach(yi=>{Pn?this._renderer.addClass(this._ngEl.nativeElement,yi):this._renderer.removeClass(this._ngEl.nativeElement,yi)})}static{this.\u0275fac=function(Pn){return new(Pn||Mt)(n.rXU(n.aKT),n.rXU(n.sFG))}}static{this.\u0275dir=n.FsC({type:Mt,selectors:[["","ngClass",""]],inputs:{klass:[n.Mj6.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return Mt})();class Mr{constructor(Dn,qt,Pn,yi){this.$implicit=Dn,this.ngForOf=qt,this.index=Pn,this.count=yi}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let $r=(()=>{class Mt{set ngForOf(qt){this._ngForOf=qt,this._ngForOfDirty=!0}set ngForTrackBy(qt){this._trackByFn=qt}get ngForTrackBy(){return this._trackByFn}constructor(qt,Pn,yi){this._viewContainer=qt,this._template=Pn,this._differs=yi,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(qt){qt&&(this._template=qt)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const qt=this._ngForOf;!this._differ&&qt&&(this._differ=this._differs.find(qt).create(this.ngForTrackBy))}if(this._differ){const qt=this._differ.diff(this._ngForOf);qt&&this._applyChanges(qt)}}_applyChanges(qt){const Pn=this._viewContainer;qt.forEachOperation((yi,ur,Pr)=>{if(null==yi.previousIndex)Pn.createEmbeddedView(this._template,new Mr(yi.item,this._ngForOf,-1,-1),null===Pr?void 0:Pr);else if(null==Pr)Pn.remove(null===ur?void 0:ur);else if(null!==ur){const uo=Pn.get(ur);Pn.move(uo,Pr),_o(uo,yi)}});for(let yi=0,ur=Pn.length;yi<ur;yi++){const uo=Pn.get(yi).context;uo.index=yi,uo.count=ur,uo.ngForOf=this._ngForOf}qt.forEachIdentityChange(yi=>{_o(Pn.get(yi.currentIndex),yi)})}static ngTemplateContextGuard(qt,Pn){return!0}static{this.\u0275fac=function(Pn){return new(Pn||Mt)(n.rXU(n.c1b),n.rXU(n.C4Q),n.rXU(n._q3))}}static{this.\u0275dir=n.FsC({type:Mt,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return Mt})();function _o(Mt,Dn){Mt.context.$implicit=Dn.item}let Kn=(()=>{class Mt{constructor(qt,Pn){this._viewContainer=qt,this._context=new gi,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Pn}set ngIf(qt){this._context.$implicit=this._context.ngIf=qt,this._updateView()}set ngIfThen(qt){Pi("ngIfThen",qt),this._thenTemplateRef=qt,this._thenViewRef=null,this._updateView()}set ngIfElse(qt){Pi("ngIfElse",qt),this._elseTemplateRef=qt,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(qt,Pn){return!0}static{this.\u0275fac=function(Pn){return new(Pn||Mt)(n.rXU(n.c1b),n.rXU(n.C4Q))}}static{this.\u0275dir=n.FsC({type:Mt,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return Mt})();class gi{constructor(){this.$implicit=null,this.ngIf=null}}function Pi(Mt,Dn){if(Dn&&!Dn.createEmbeddedView)throw new Error(`${Mt} must be a TemplateRef, but received '${(0,n.Tbb)(Dn)}'.`)}class Qi{constructor(Dn,qt){this._viewContainerRef=Dn,this._templateRef=qt,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Dn){Dn&&!this._created?this.create():!Dn&&this._created&&this.destroy()}}let ar=(()=>{class Mt{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(qt){this._ngSwitch=qt,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(qt){this._defaultViews.push(qt)}_matchCase(qt){const Pn=qt===this._ngSwitch;return this._lastCasesMatched||=Pn,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Pn}_updateDefaultCases(qt){if(this._defaultViews.length>0&&qt!==this._defaultUsed){this._defaultUsed=qt;for(const Pn of this._defaultViews)Pn.enforceState(qt)}}static{this.\u0275fac=function(Pn){return new(Pn||Mt)}}static{this.\u0275dir=n.FsC({type:Mt,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}}return Mt})(),jr=(()=>{class Mt{constructor(qt,Pn,yi){this.ngSwitch=yi,yi._addCase(),this._view=new Qi(qt,Pn)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static{this.\u0275fac=function(Pn){return new(Pn||Mt)(n.rXU(n.c1b),n.rXU(n.C4Q),n.rXU(ar,9))}}static{this.\u0275dir=n.FsC({type:Mt,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}}return Mt})(),ho=(()=>{class Mt{constructor(qt,Pn,yi){yi._addDefault(new Qi(qt,Pn))}static{this.\u0275fac=function(Pn){return new(Pn||Mt)(n.rXU(n.c1b),n.rXU(n.C4Q),n.rXU(ar,9))}}static{this.\u0275dir=n.FsC({type:Mt,selectors:[["","ngSwitchDefault",""]],standalone:!0})}}return Mt})(),Yr=(()=>{class Mt{constructor(qt,Pn,yi){this._ngEl=qt,this._differs=Pn,this._renderer=yi,this._ngStyle=null,this._differ=null}set ngStyle(qt){this._ngStyle=qt,!this._differ&&qt&&(this._differ=this._differs.find(qt).create())}ngDoCheck(){if(this._differ){const qt=this._differ.diff(this._ngStyle);qt&&this._applyChanges(qt)}}_setStyle(qt,Pn){const[yi,ur]=qt.split("."),Pr=-1===yi.indexOf("-")?void 0:n.czy.DashCase;null!=Pn?this._renderer.setStyle(this._ngEl.nativeElement,yi,ur?`${Pn}${ur}`:Pn,Pr):this._renderer.removeStyle(this._ngEl.nativeElement,yi,Pr)}_applyChanges(qt){qt.forEachRemovedItem(Pn=>this._setStyle(Pn.key,null)),qt.forEachAddedItem(Pn=>this._setStyle(Pn.key,Pn.currentValue)),qt.forEachChangedItem(Pn=>this._setStyle(Pn.key,Pn.currentValue))}static{this.\u0275fac=function(Pn){return new(Pn||Mt)(n.rXU(n.aKT),n.rXU(n.MKu),n.rXU(n.sFG))}}static{this.\u0275dir=n.FsC({type:Mt,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return Mt})(),go=(()=>{class Mt{constructor(qt){this._viewContainerRef=qt,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(qt){if(this._shouldRecreateView(qt)){const Pn=this._viewContainerRef;if(this._viewRef&&Pn.remove(Pn.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const yi=this._createContextForwardProxy();this._viewRef=Pn.createEmbeddedView(this.ngTemplateOutlet,yi,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(qt){return!!qt.ngTemplateOutlet||!!qt.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(qt,Pn,yi)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,Pn,yi),get:(qt,Pn,yi)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,Pn,yi)}})}static{this.\u0275fac=function(Pn){return new(Pn||Mt)(n.rXU(n.c1b))}}static{this.\u0275dir=n.FsC({type:Mt,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[n.OA$]})}}return Mt})();function si(Mt,Dn){return new n.wOt(2100,!1)}class to{createSubscription(Dn,qt){return(0,n.O8t)(()=>Dn.subscribe({next:qt,error:Pn=>{throw Pn}}))}dispose(Dn){(0,n.O8t)(()=>Dn.unsubscribe())}}class ot{createSubscription(Dn,qt){return Dn.then(qt,Pn=>{throw Pn})}dispose(Dn){}}const Vt=new ot,Sn=new to;let Bn=(()=>{class Mt{constructor(qt){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=qt}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(qt){if(!this._obj){if(qt)try{this.markForCheckOnValueUpdate=!1,this._subscribe(qt)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return qt!==this._obj?(this._dispose(),this.transform(qt)):this._latestValue}_subscribe(qt){this._obj=qt,this._strategy=this._selectStrategy(qt),this._subscription=this._strategy.createSubscription(qt,Pn=>this._updateLatestValue(qt,Pn))}_selectStrategy(qt){if((0,n.jNT)(qt))return Vt;if((0,n.zjR)(qt))return Sn;throw si()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(qt,Pn){qt===this._obj&&(this._latestValue=Pn,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(Pn){return new(Pn||Mt)(n.rXU(n.gRc,16))}}static{this.\u0275pipe=n.EJ8({name:"async",type:Mt,pure:!1,standalone:!0})}}return Mt})(),Fr=(()=>{class Mt{transform(qt){if(null==qt)return null;if("string"!=typeof qt)throw si();return qt.toUpperCase()}static{this.\u0275fac=function(Pn){return new(Pn||Mt)}}static{this.\u0275pipe=n.EJ8({name:"uppercase",type:Mt,pure:!0,standalone:!0})}}return Mt})();const Vn=new n.nKC(""),rr=new n.nKC("");let Ut=(()=>{class Mt{constructor(qt,Pn,yi){this.locale=qt,this.defaultTimezone=Pn,this.defaultOptions=yi}transform(qt,Pn,yi,ur){if(null==qt||""===qt||qt!=qt)return null;try{return It(qt,Pn??this.defaultOptions?.dateFormat??"mediumDate",ur||this.locale,yi??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Pr){throw si()}}static{this.\u0275fac=function(Pn){return new(Pn||Mt)(n.rXU(n.xe9,16),n.rXU(Vn,24),n.rXU(rr,24))}}static{this.\u0275pipe=n.EJ8({name:"date",type:Mt,pure:!0,standalone:!0})}}return Mt})(),oo=(()=>{class Mt{constructor(qt){this.differs=qt,this.keyValues=[],this.compareFn=Qo}transform(qt,Pn=Qo){if(!qt||!(qt instanceof Map)&&"object"!=typeof qt)return null;this.differ??=this.differs.find(qt).create();const yi=this.differ.diff(qt),ur=Pn!==this.compareFn;return yi&&(this.keyValues=[],yi.forEachItem(Pr=>{this.keyValues.push(function Jr(Mt,Dn){return{key:Mt,value:Dn}}(Pr.key,Pr.currentValue))})),(yi||ur)&&(this.keyValues.sort(Pn),this.compareFn=Pn),this.keyValues}static{this.\u0275fac=function(Pn){return new(Pn||Mt)(n.rXU(n.MKu,16))}}static{this.\u0275pipe=n.EJ8({name:"keyvalue",type:Mt,pure:!1,standalone:!0})}}return Mt})();function Qo(Mt,Dn){const qt=Mt.key,Pn=Dn.key;if(qt===Pn)return 0;if(void 0===qt)return 1;if(void 0===Pn)return-1;if(null===qt)return 1;if(null===Pn)return-1;if("string"==typeof qt&&"string"==typeof Pn)return qt<Pn?-1:1;if("number"==typeof qt&&"number"==typeof Pn)return qt-Pn;if("boolean"==typeof qt&&"boolean"==typeof Pn)return qt<Pn?-1:1;const yi=String(qt),ur=String(Pn);return yi==ur?0:yi<ur?-1:1}let Xs=(()=>{class Mt{static{this.\u0275fac=function(Pn){return new(Pn||Mt)}}static{this.\u0275mod=n.$C({type:Mt})}static{this.\u0275inj=n.G2t({})}}return Mt})();const ys="browser",ma="server";function Ms(Mt){return Mt===ys}function Ua(Mt){return Mt===ma}let Ia=(()=>{class Mt{static{this.\u0275prov=(0,n.jDH)({token:Mt,providedIn:"root",factory:()=>Ms((0,n.WQX)(n.Agw))?new Ds((0,n.WQX)(f),window):new fa})}}return Mt})();class Ds{constructor(Dn,qt){this.document=Dn,this.window=qt,this.offset=()=>[0,0]}setOffset(Dn){this.offset=Array.isArray(Dn)?()=>Dn:Dn}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(Dn){this.window.scrollTo(Dn[0],Dn[1])}scrollToAnchor(Dn){const qt=function Js(Mt,Dn){const qt=Mt.getElementById(Dn)||Mt.getElementsByName(Dn)[0];if(qt)return qt;if("function"==typeof Mt.createTreeWalker&&Mt.body&&"function"==typeof Mt.body.attachShadow){const Pn=Mt.createTreeWalker(Mt.body,NodeFilter.SHOW_ELEMENT);let yi=Pn.currentNode;for(;yi;){const ur=yi.shadowRoot;if(ur){const Pr=ur.getElementById(Dn)||ur.querySelector(`[name="${Dn}"]`);if(Pr)return Pr}yi=Pn.nextNode()}}return null}(this.document,Dn);qt&&(this.scrollToElement(qt),qt.focus())}setHistoryScrollRestoration(Dn){this.window.history.scrollRestoration=Dn}scrollToElement(Dn){const qt=Dn.getBoundingClientRect(),Pn=qt.left+this.window.pageXOffset,yi=qt.top+this.window.pageYOffset,ur=this.offset();this.window.scrollTo(Pn-ur[0],yi-ur[1])}}class fa{setOffset(Dn){}getScrollPosition(){return[0,0]}scrollToPosition(Dn){}scrollToAnchor(Dn){}setHistoryScrollRestoration(Dn){}}class Ga{}},94485:(Bt,z,s)=>{"use strict";s.d(z,{JV:()=>a,Nl:()=>N,Qq:()=>Ce,cS:()=>ue,q1:()=>bn,yz:()=>se}),s(70650);var l=s(58527),d=s(43848),v=s(17053),S=s(19392),y=s(79539),f=s(8619),O=s(83915),P=s(43615),_=s(72147),i=s(61142);class r{}class a{}class c{constructor(Yn){this.normalizedNames=new Map,this.lazyUpdate=null,Yn?"string"==typeof Yn?this.lazyInit=()=>{this.headers=new Map,Yn.split("\n").forEach(Gn=>{const Ci=Gn.indexOf(":");if(Ci>0){const ln=Gn.slice(0,Ci),bi=ln.toLowerCase(),Zi=Gn.slice(Ci+1).trim();this.maybeSetNormalizedName(ln,bi),this.headers.has(bi)?this.headers.get(bi).push(Zi):this.headers.set(bi,[Zi])}})}:typeof Headers<"u"&&Yn instanceof Headers?(this.headers=new Map,Yn.forEach((Gn,Ci)=>{this.setHeaderEntries(Ci,Gn)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(Yn).forEach(([Gn,Ci])=>{this.setHeaderEntries(Gn,Ci)})}:this.headers=new Map}has(Yn){return this.init(),this.headers.has(Yn.toLowerCase())}get(Yn){this.init();const Gn=this.headers.get(Yn.toLowerCase());return Gn&&Gn.length>0?Gn[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Yn){return this.init(),this.headers.get(Yn.toLowerCase())||null}append(Yn,Gn){return this.clone({name:Yn,value:Gn,op:"a"})}set(Yn,Gn){return this.clone({name:Yn,value:Gn,op:"s"})}delete(Yn,Gn){return this.clone({name:Yn,value:Gn,op:"d"})}maybeSetNormalizedName(Yn,Gn){this.normalizedNames.has(Gn)||this.normalizedNames.set(Gn,Yn)}init(){this.lazyInit&&(this.lazyInit instanceof c?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Yn=>this.applyUpdate(Yn)),this.lazyUpdate=null))}copyFrom(Yn){Yn.init(),Array.from(Yn.headers.keys()).forEach(Gn=>{this.headers.set(Gn,Yn.headers.get(Gn)),this.normalizedNames.set(Gn,Yn.normalizedNames.get(Gn))})}clone(Yn){const Gn=new c;return Gn.lazyInit=this.lazyInit&&this.lazyInit instanceof c?this.lazyInit:this,Gn.lazyUpdate=(this.lazyUpdate||[]).concat([Yn]),Gn}applyUpdate(Yn){const Gn=Yn.name.toLowerCase();switch(Yn.op){case"a":case"s":let Ci=Yn.value;if("string"==typeof Ci&&(Ci=[Ci]),0===Ci.length)return;this.maybeSetNormalizedName(Yn.name,Gn);const ln=("a"===Yn.op?this.headers.get(Gn):void 0)||[];ln.push(...Ci),this.headers.set(Gn,ln);break;case"d":const bi=Yn.value;if(bi){let Zi=this.headers.get(Gn);if(!Zi)return;Zi=Zi.filter(Mr=>-1===bi.indexOf(Mr)),0===Zi.length?(this.headers.delete(Gn),this.normalizedNames.delete(Gn)):this.headers.set(Gn,Zi)}else this.headers.delete(Gn),this.normalizedNames.delete(Gn)}}setHeaderEntries(Yn,Gn){const Ci=(Array.isArray(Gn)?Gn:[Gn]).map(bi=>bi.toString()),ln=Yn.toLowerCase();this.headers.set(ln,Ci),this.maybeSetNormalizedName(Yn,ln)}forEach(Yn){this.init(),Array.from(this.normalizedNames.keys()).forEach(Gn=>Yn(this.normalizedNames.get(Gn),this.headers.get(Gn)))}}class M{encodeKey(Yn){return V(Yn)}encodeValue(Yn){return V(Yn)}decodeKey(Yn){return decodeURIComponent(Yn)}decodeValue(Yn){return decodeURIComponent(Yn)}}const I=/%(\d[a-f0-9])/gi,U={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function V(xn){return encodeURIComponent(xn).replace(I,(Yn,Gn)=>U[Gn]??Yn)}function T(xn){return`${xn}`}class N{constructor(Yn={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Yn.encoder||new M,Yn.fromString){if(Yn.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function D(xn,Yn){const Gn=new Map;return xn.length>0&&xn.replace(/^\?/,"").split("&").forEach(ln=>{const bi=ln.indexOf("="),[Zi,Mr]=-1==bi?[Yn.decodeKey(ln),""]:[Yn.decodeKey(ln.slice(0,bi)),Yn.decodeValue(ln.slice(bi+1))],$r=Gn.get(Zi)||[];$r.push(Mr),Gn.set(Zi,$r)}),Gn}(Yn.fromString,this.encoder)}else Yn.fromObject?(this.map=new Map,Object.keys(Yn.fromObject).forEach(Gn=>{const Ci=Yn.fromObject[Gn],ln=Array.isArray(Ci)?Ci.map(T):[T(Ci)];this.map.set(Gn,ln)})):this.map=null}has(Yn){return this.init(),this.map.has(Yn)}get(Yn){this.init();const Gn=this.map.get(Yn);return Gn?Gn[0]:null}getAll(Yn){return this.init(),this.map.get(Yn)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Yn,Gn){return this.clone({param:Yn,value:Gn,op:"a"})}appendAll(Yn){const Gn=[];return Object.keys(Yn).forEach(Ci=>{const ln=Yn[Ci];Array.isArray(ln)?ln.forEach(bi=>{Gn.push({param:Ci,value:bi,op:"a"})}):Gn.push({param:Ci,value:ln,op:"a"})}),this.clone(Gn)}set(Yn,Gn){return this.clone({param:Yn,value:Gn,op:"s"})}delete(Yn,Gn){return this.clone({param:Yn,value:Gn,op:"d"})}toString(){return this.init(),this.keys().map(Yn=>{const Gn=this.encoder.encodeKey(Yn);return this.map.get(Yn).map(Ci=>Gn+"="+this.encoder.encodeValue(Ci)).join("&")}).filter(Yn=>""!==Yn).join("&")}clone(Yn){const Gn=new N({encoder:this.encoder});return Gn.cloneFrom=this.cloneFrom||this,Gn.updates=(this.updates||[]).concat(Yn),Gn}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Yn=>this.map.set(Yn,this.cloneFrom.map.get(Yn))),this.updates.forEach(Yn=>{switch(Yn.op){case"a":case"s":const Gn=("a"===Yn.op?this.map.get(Yn.param):void 0)||[];Gn.push(T(Yn.value)),this.map.set(Yn.param,Gn);break;case"d":if(void 0===Yn.value){this.map.delete(Yn.param);break}{let Ci=this.map.get(Yn.param)||[];const ln=Ci.indexOf(T(Yn.value));-1!==ln&&Ci.splice(ln,1),Ci.length>0?this.map.set(Yn.param,Ci):this.map.delete(Yn.param)}}}),this.cloneFrom=this.updates=null)}}class E{constructor(){this.map=new Map}set(Yn,Gn){return this.map.set(Yn,Gn),this}get(Yn){return this.map.has(Yn)||this.map.set(Yn,Yn.defaultValue()),this.map.get(Yn)}delete(Yn){return this.map.delete(Yn),this}has(Yn){return this.map.has(Yn)}keys(){return this.map.keys()}}function R(xn){return typeof ArrayBuffer<"u"&&xn instanceof ArrayBuffer}function B(xn){return typeof Blob<"u"&&xn instanceof Blob}function X(xn){return typeof FormData<"u"&&xn instanceof FormData}class J{constructor(Yn,Gn,Ci,ln){let bi;if(this.url=Gn,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Yn.toUpperCase(),function g(xn){switch(xn){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ln?(this.body=void 0!==Ci?Ci:null,bi=ln):bi=Ci,bi&&(this.reportProgress=!!bi.reportProgress,this.withCredentials=!!bi.withCredentials,bi.responseType&&(this.responseType=bi.responseType),bi.headers&&(this.headers=bi.headers),bi.context&&(this.context=bi.context),bi.params&&(this.params=bi.params),this.transferCache=bi.transferCache),this.headers??=new c,this.context??=new E,this.params){const Zi=this.params.toString();if(0===Zi.length)this.urlWithParams=Gn;else{const Mr=Gn.indexOf("?");this.urlWithParams=Gn+(-1===Mr?"?":Mr<Gn.length-1?"&":"")+Zi}}else this.params=new N,this.urlWithParams=Gn}serializeBody(){return null===this.body?null:"string"==typeof this.body||R(this.body)||B(this.body)||X(this.body)||function H(xn){return typeof URLSearchParams<"u"&&xn instanceof URLSearchParams}(this.body)?this.body:this.body instanceof N?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||X(this.body)?null:B(this.body)?this.body.type||null:R(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof N?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(Yn={}){const Gn=Yn.method||this.method,Ci=Yn.url||this.url,ln=Yn.responseType||this.responseType,bi=Yn.transferCache??this.transferCache,Zi=void 0!==Yn.body?Yn.body:this.body,Mr=Yn.withCredentials??this.withCredentials,$r=Yn.reportProgress??this.reportProgress;let _o=Yn.headers||this.headers,bo=Yn.params||this.params;const Kn=Yn.context??this.context;return void 0!==Yn.setHeaders&&(_o=Object.keys(Yn.setHeaders).reduce((gi,Pi)=>gi.set(Pi,Yn.setHeaders[Pi]),_o)),Yn.setParams&&(bo=Object.keys(Yn.setParams).reduce((gi,Pi)=>gi.set(Pi,Yn.setParams[Pi]),bo)),new J(Gn,Ci,Zi,{params:bo,headers:_o,context:Kn,reportProgress:$r,responseType:ln,withCredentials:Mr,transferCache:bi})}}var re=function(xn){return xn[xn.Sent=0]="Sent",xn[xn.UploadProgress=1]="UploadProgress",xn[xn.ResponseHeader=2]="ResponseHeader",xn[xn.DownloadProgress=3]="DownloadProgress",xn[xn.Response=4]="Response",xn[xn.User=5]="User",xn}(re||{});class ie{constructor(Yn,Gn=Z.Ok,Ci="OK"){this.headers=Yn.headers||new c,this.status=void 0!==Yn.status?Yn.status:Gn,this.statusText=Yn.statusText||Ci,this.url=Yn.url||null,this.ok=this.status>=200&&this.status<300}}class ve extends ie{constructor(Yn={}){super(Yn),this.type=re.ResponseHeader}clone(Yn={}){return new ve({headers:Yn.headers||this.headers,status:void 0!==Yn.status?Yn.status:this.status,statusText:Yn.statusText||this.statusText,url:Yn.url||this.url||void 0})}}class ue extends ie{constructor(Yn={}){super(Yn),this.type=re.Response,this.body=void 0!==Yn.body?Yn.body:null}clone(Yn={}){return new ue({body:void 0!==Yn.body?Yn.body:this.body,headers:Yn.headers||this.headers,status:void 0!==Yn.status?Yn.status:this.status,statusText:Yn.statusText||this.statusText,url:Yn.url||this.url||void 0})}}class se extends ie{constructor(Yn){super(Yn,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Yn.url||"(unknown url)"}`:`Http failure response for ${Yn.url||"(unknown url)"}: ${Yn.status} ${Yn.statusText}`,this.error=Yn.error||null}}var Z=function(xn){return xn[xn.Continue=100]="Continue",xn[xn.SwitchingProtocols=101]="SwitchingProtocols",xn[xn.Processing=102]="Processing",xn[xn.EarlyHints=103]="EarlyHints",xn[xn.Ok=200]="Ok",xn[xn.Created=201]="Created",xn[xn.Accepted=202]="Accepted",xn[xn.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",xn[xn.NoContent=204]="NoContent",xn[xn.ResetContent=205]="ResetContent",xn[xn.PartialContent=206]="PartialContent",xn[xn.MultiStatus=207]="MultiStatus",xn[xn.AlreadyReported=208]="AlreadyReported",xn[xn.ImUsed=226]="ImUsed",xn[xn.MultipleChoices=300]="MultipleChoices",xn[xn.MovedPermanently=301]="MovedPermanently",xn[xn.Found=302]="Found",xn[xn.SeeOther=303]="SeeOther",xn[xn.NotModified=304]="NotModified",xn[xn.UseProxy=305]="UseProxy",xn[xn.Unused=306]="Unused",xn[xn.TemporaryRedirect=307]="TemporaryRedirect",xn[xn.PermanentRedirect=308]="PermanentRedirect",xn[xn.BadRequest=400]="BadRequest",xn[xn.Unauthorized=401]="Unauthorized",xn[xn.PaymentRequired=402]="PaymentRequired",xn[xn.Forbidden=403]="Forbidden",xn[xn.NotFound=404]="NotFound",xn[xn.MethodNotAllowed=405]="MethodNotAllowed",xn[xn.NotAcceptable=406]="NotAcceptable",xn[xn.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",xn[xn.RequestTimeout=408]="RequestTimeout",xn[xn.Conflict=409]="Conflict",xn[xn.Gone=410]="Gone",xn[xn.LengthRequired=411]="LengthRequired",xn[xn.PreconditionFailed=412]="PreconditionFailed",xn[xn.PayloadTooLarge=413]="PayloadTooLarge",xn[xn.UriTooLong=414]="UriTooLong",xn[xn.UnsupportedMediaType=415]="UnsupportedMediaType",xn[xn.RangeNotSatisfiable=416]="RangeNotSatisfiable",xn[xn.ExpectationFailed=417]="ExpectationFailed",xn[xn.ImATeapot=418]="ImATeapot",xn[xn.MisdirectedRequest=421]="MisdirectedRequest",xn[xn.UnprocessableEntity=422]="UnprocessableEntity",xn[xn.Locked=423]="Locked",xn[xn.FailedDependency=424]="FailedDependency",xn[xn.TooEarly=425]="TooEarly",xn[xn.UpgradeRequired=426]="UpgradeRequired",xn[xn.PreconditionRequired=428]="PreconditionRequired",xn[xn.TooManyRequests=429]="TooManyRequests",xn[xn.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",xn[xn.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",xn[xn.InternalServerError=500]="InternalServerError",xn[xn.NotImplemented=501]="NotImplemented",xn[xn.BadGateway=502]="BadGateway",xn[xn.ServiceUnavailable=503]="ServiceUnavailable",xn[xn.GatewayTimeout=504]="GatewayTimeout",xn[xn.HttpVersionNotSupported=505]="HttpVersionNotSupported",xn[xn.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",xn[xn.InsufficientStorage=507]="InsufficientStorage",xn[xn.LoopDetected=508]="LoopDetected",xn[xn.NotExtended=510]="NotExtended",xn[xn.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",xn}(Z||{});function Se(xn,Yn){return{body:Yn,headers:xn.headers,context:xn.context,observe:xn.observe,params:xn.params,reportProgress:xn.reportProgress,responseType:xn.responseType,withCredentials:xn.withCredentials,transferCache:xn.transferCache}}let Ce=(()=>{class xn{constructor(Gn){this.handler=Gn}request(Gn,Ci,ln={}){let bi;if(Gn instanceof J)bi=Gn;else{let $r,_o;$r=ln.headers instanceof c?ln.headers:new c(ln.headers),ln.params&&(_o=ln.params instanceof N?ln.params:new N({fromObject:ln.params})),bi=new J(Gn,Ci,void 0!==ln.body?ln.body:null,{headers:$r,context:ln.context,params:_o,reportProgress:ln.reportProgress,responseType:ln.responseType||"json",withCredentials:ln.withCredentials,transferCache:ln.transferCache})}const Zi=(0,d.of)(bi).pipe((0,y.H)($r=>this.handler.handle($r)));if(Gn instanceof J||"events"===ln.observe)return Zi;const Mr=Zi.pipe((0,f.p)($r=>$r instanceof ue));switch(ln.observe||"body"){case"body":switch(bi.responseType){case"arraybuffer":return Mr.pipe((0,O.T)($r=>{if(null!==$r.body&&!($r.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return $r.body}));case"blob":return Mr.pipe((0,O.T)($r=>{if(null!==$r.body&&!($r.body instanceof Blob))throw new Error("Response is not a Blob.");return $r.body}));case"text":return Mr.pipe((0,O.T)($r=>{if(null!==$r.body&&"string"!=typeof $r.body)throw new Error("Response is not a string.");return $r.body}));default:return Mr.pipe((0,O.T)($r=>$r.body))}case"response":return Mr;default:throw new Error(`Unreachable: unhandled observe type ${ln.observe}}`)}}delete(Gn,Ci={}){return this.request("DELETE",Gn,Ci)}get(Gn,Ci={}){return this.request("GET",Gn,Ci)}head(Gn,Ci={}){return this.request("HEAD",Gn,Ci)}jsonp(Gn,Ci){return this.request("JSONP",Gn,{params:(new N).append(Ci,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Gn,Ci={}){return this.request("OPTIONS",Gn,Ci)}patch(Gn,Ci,ln={}){return this.request("PATCH",Gn,Se(ln,Ci))}post(Gn,Ci,ln={}){return this.request("POST",Gn,Se(ln,Ci))}put(Gn,Ci,ln={}){return this.request("PUT",Gn,Se(ln,Ci))}static{this.\u0275fac=function(Ci){return new(Ci||xn)(l.KVO(r))}}static{this.\u0275prov=l.jDH({token:xn,factory:xn.\u0275fac})}}return xn})();function ne(xn,Yn){return Yn(xn)}function G(xn,Yn){return(Gn,Ci)=>Yn.intercept(Gn,{handle:ln=>xn(ln,Ci)})}const $=new l.nKC(""),le=new l.nKC(""),Pe=new l.nKC(""),Fe=new l.nKC("");function At(){let xn=null;return(Yn,Gn)=>{null===xn&&(xn=((0,l.WQX)($,{optional:!0})??[]).reduceRight(G,ne));const Ci=(0,l.WQX)(l.TgB),ln=Ci.add();return xn(Yn,Gn).pipe((0,P.j)(()=>Ci.remove(ln)))}}let $e=(()=>{class xn extends r{constructor(Gn,Ci){super(),this.backend=Gn,this.injector=Ci,this.chain=null,this.pendingTasks=(0,l.WQX)(l.TgB);const ln=(0,l.WQX)(Fe,{optional:!0});this.backend=ln??Gn}handle(Gn){if(null===this.chain){const ln=Array.from(new Set([...this.injector.get(le),...this.injector.get(Pe,[])]));this.chain=ln.reduceRight((bi,Zi)=>function W(xn,Yn,Gn){return(Ci,ln)=>(0,l.N4e)(Gn,()=>Yn(Ci,bi=>xn(bi,ln)))}(bi,Zi,this.injector),ne)}const Ci=this.pendingTasks.add();return this.chain(Gn,ln=>this.backend.handle(ln)).pipe((0,P.j)(()=>this.pendingTasks.remove(Ci)))}static{this.\u0275fac=function(Ci){return new(Ci||xn)(l.KVO(a),l.KVO(l.uvJ))}}static{this.\u0275prov=l.jDH({token:xn,factory:xn.\u0275fac})}}return xn})();const ht=/^\)\]\}',?\n/;let Ht=(()=>{class xn{constructor(Gn){this.xhrFactory=Gn}handle(Gn){if("JSONP"===Gn.method)throw new l.wOt(-2800,!1);const Ci=this.xhrFactory;return(Ci.\u0275loadImpl?(0,S.H)(Ci.\u0275loadImpl()):(0,d.of)(null)).pipe((0,_.n)(()=>new v.c(bi=>{const Zi=Ci.build();if(Zi.open(Gn.method,Gn.urlWithParams),Gn.withCredentials&&(Zi.withCredentials=!0),Gn.headers.forEach((Qi,ar)=>Zi.setRequestHeader(Qi,ar.join(","))),Gn.headers.has("Accept")||Zi.setRequestHeader("Accept","application/json, text/plain, */*"),!Gn.headers.has("Content-Type")){const Qi=Gn.detectContentTypeHeader();null!==Qi&&Zi.setRequestHeader("Content-Type",Qi)}if(Gn.responseType){const Qi=Gn.responseType.toLowerCase();Zi.responseType="json"!==Qi?Qi:"text"}const Mr=Gn.serializeBody();let $r=null;const _o=()=>{if(null!==$r)return $r;const Qi=Zi.statusText||"OK",ar=new c(Zi.getAllResponseHeaders()),jr=function Xt(xn){return"responseURL"in xn&&xn.responseURL?xn.responseURL:/^X-Request-URL:/m.test(xn.getAllResponseHeaders())?xn.getResponseHeader("X-Request-URL"):null}(Zi)||Gn.url;return $r=new ve({headers:ar,status:Zi.status,statusText:Qi,url:jr}),$r},bo=()=>{let{headers:Qi,status:ar,statusText:jr,url:ho}=_o(),Fo=null;ar!==Z.NoContent&&(Fo=typeof Zi.response>"u"?Zi.responseText:Zi.response),0===ar&&(ar=Fo?Z.Ok:0);let no=ar>=200&&ar<300;if("json"===Gn.responseType&&"string"==typeof Fo){const yo=Fo;Fo=Fo.replace(ht,"");try{Fo=""!==Fo?JSON.parse(Fo):null}catch(Zr){Fo=yo,no&&(no=!1,Fo={error:Zr,text:Fo})}}no?(bi.next(new ue({body:Fo,headers:Qi,status:ar,statusText:jr,url:ho||void 0})),bi.complete()):bi.error(new se({error:Fo,headers:Qi,status:ar,statusText:jr,url:ho||void 0}))},Kn=Qi=>{const{url:ar}=_o(),jr=new se({error:Qi,status:Zi.status||0,statusText:Zi.statusText||"Unknown Error",url:ar||void 0});bi.error(jr)};let gi=!1;const Pi=Qi=>{gi||(bi.next(_o()),gi=!0);let ar={type:re.DownloadProgress,loaded:Qi.loaded};Qi.lengthComputable&&(ar.total=Qi.total),"text"===Gn.responseType&&Zi.responseText&&(ar.partialText=Zi.responseText),bi.next(ar)},ji=Qi=>{let ar={type:re.UploadProgress,loaded:Qi.loaded};Qi.lengthComputable&&(ar.total=Qi.total),bi.next(ar)};return Zi.addEventListener("load",bo),Zi.addEventListener("error",Kn),Zi.addEventListener("timeout",Kn),Zi.addEventListener("abort",Kn),Gn.reportProgress&&(Zi.addEventListener("progress",Pi),null!==Mr&&Zi.upload&&Zi.upload.addEventListener("progress",ji)),Zi.send(Mr),bi.next({type:re.Sent}),()=>{Zi.removeEventListener("error",Kn),Zi.removeEventListener("abort",Kn),Zi.removeEventListener("load",bo),Zi.removeEventListener("timeout",Kn),Gn.reportProgress&&(Zi.removeEventListener("progress",Pi),null!==Mr&&Zi.upload&&Zi.upload.removeEventListener("progress",ji)),Zi.readyState!==Zi.DONE&&Zi.abort()}})))}static{this.\u0275fac=function(Ci){return new(Ci||xn)(l.KVO(i.N0))}}static{this.\u0275prov=l.jDH({token:xn,factory:xn.\u0275fac})}}return xn})();const Je=new l.nKC(""),rt=new l.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),St=new l.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Gt{}let yt=(()=>{class xn{constructor(Gn,Ci,ln){this.doc=Gn,this.platform=Ci,this.cookieName=ln,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Gn=this.doc.cookie||"";return Gn!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i._b)(Gn,this.cookieName),this.lastCookieString=Gn),this.lastToken}static{this.\u0275fac=function(Ci){return new(Ci||xn)(l.KVO(i.qQ),l.KVO(l.Agw),l.KVO(rt))}}static{this.\u0275prov=l.jDH({token:xn,factory:xn.\u0275fac})}}return xn})();function Wt(xn,Yn){const Gn=xn.url.toLowerCase();if(!(0,l.WQX)(Je)||"GET"===xn.method||"HEAD"===xn.method||Gn.startsWith("http://")||Gn.startsWith("https://"))return Yn(xn);const Ci=(0,l.WQX)(Gt).getToken(),ln=(0,l.WQX)(St);return null!=Ci&&!xn.headers.has(ln)&&(xn=xn.clone({headers:xn.headers.set(ln,Ci)})),Yn(xn)}var be=function(xn){return xn[xn.Interceptors=0]="Interceptors",xn[xn.LegacyInterceptors=1]="LegacyInterceptors",xn[xn.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",xn[xn.NoXsrfProtection=3]="NoXsrfProtection",xn[xn.JsonpSupport=4]="JsonpSupport",xn[xn.RequestsMadeViaParent=5]="RequestsMadeViaParent",xn[xn.Fetch=6]="Fetch",xn}(be||{});function Ae(xn,Yn){return{\u0275kind:xn,\u0275providers:Yn}}function qe(...xn){const Yn=[Ce,Ht,$e,{provide:r,useExisting:$e},{provide:a,useExisting:Ht},{provide:le,useValue:Wt,multi:!0},{provide:Je,useValue:!0},{provide:Gt,useClass:yt}];for(const Gn of xn)Yn.push(...Gn.\u0275providers);return(0,l.EmA)(Yn)}const Zt=new l.nKC("");let bn=(()=>{class xn{static{this.\u0275fac=function(Ci){return new(Ci||xn)}}static{this.\u0275mod=l.$C({type:xn})}static{this.\u0275inj=l.G2t({providers:[qe(Ae(be.LegacyInterceptors,[{provide:Zt,useFactory:At},{provide:le,useExisting:Zt,multi:!0}]))]})}}return xn})()},58527:(Bt,z,s)=>{"use strict";s.d(z,{bc$:()=>Mh,iLQ:()=>CE,sZ2:()=>Dp,hnV:()=>Ax,Hbi:()=>CI,o8S:()=>Ep,BIS:()=>df,gRc:()=>Wx,Ql9:()=>Ww,OM3:()=>Nm,Ocv:()=>Jw,Z63:()=>Bs,aKT:()=>gs,uvJ:()=>Di,zcH:()=>Rc,bkB:()=>Dc,y_5:()=>Oa,$GK:()=>Bn,nKC:()=>ln,zZn:()=>hc,_q3:()=>xE,MKu:()=>TE,xe9:()=>N0,Co$:()=>EM,Vns:()=>Xh,SKi:()=>sc,Xx1:()=>Ms,Agw:()=>yh,PLl:()=>Lp,rOR:()=>Mu,sFG:()=>yy,_9s:()=>eb,czy:()=>Nh,WPN:()=>ru,kdw:()=>Zs,C4Q:()=>Im,NYb:()=>Fw,giA:()=>wx,RxE:()=>Sx,c1b:()=>Gm,gXe:()=>ea,mal:()=>lb,L39:()=>YI,Ol2:()=>Y_,w6W:()=>xM,oH4:()=>Gx,SmG:()=>rI,Rfq:()=>Wt,WQX:()=>kr,naY:()=>iI,QuC:()=>Ns,EmA:()=>na,fpN:()=>_I,HJs:()=>nA,N4e:()=>Io,O8t:()=>QI,An2:()=>Mv,H3F:()=>yx,H8p:()=>_r,KH2:()=>Mp,TgB:()=>ip,wOt:()=>Le,WHO:()=>xx,e01:()=>Tx,lNU:()=>At,h9k:()=>Qp,$MX:()=>Sg,ZF7:()=>Tu,Kcf:()=>tu,e5t:()=>Yl,UyX:()=>Ef,cWb:()=>wa,osQ:()=>yc,H5H:()=>bC,Zy3:()=>Et,mq5:()=>jS,JZv:()=>Xt,LfX:()=>An,plB:()=>sh,jNT:()=>vE,zjR:()=>Ix,TL$:()=>e_,Tbb:()=>et,rcV:()=>Ql,Vt3:()=>W_,Mj6:()=>ts,GFd:()=>Gb,OA$:()=>Un,Jv_:()=>V1,aNF:()=>H1,R7$:()=>fm,BMQ:()=>oC,HbH:()=>ES,ZvI:()=>AS,AVh:()=>hC,vxM:()=>LS,wni:()=>x0,VBU:()=>el,FsC:()=>ta,jDH:()=>pn,G2t:()=>pi,$C:()=>Ha,EJ8:()=>tl,rXU:()=>Ru,nrm:()=>Ec,eu8:()=>CC,bVm:()=>Bv,qex:()=>Uv,k0s:()=>uh,j41:()=>_C,RV6:()=>GS,xGo:()=>fu,Mr5:()=>VS,KVO:()=>Go,kS0:()=>hd,QTQ:()=>_m,bIt:()=>yC,lsd:()=>ce,joV:()=>As,qSk:()=>Cs,XpG:()=>b0,nI1:()=>nx,bMT:()=>ix,i5U:()=>rx,SdG:()=>y0,NAR:()=>S0,Y8G:()=>cC,FS9:()=>OC,Mz_:()=>zv,lJ4:()=>z1,eq3:()=>$1,l_i:()=>K1,sMw:()=>Y1,ziG:()=>X1,zJS:()=>Q1,mGM:()=>ye,sdS:()=>$i,Dyx:()=>FS,Z7z:()=>kS,Vm6:()=>NS,Njj:()=>Ta,EBC:()=>im,tSv:()=>nm,eBV:()=>_s,npT:()=>Tg,f$h:()=>wg,B4B:()=>Ma,n$t:()=>Ag,wjB:()=>j1,xc7:()=>uC,Kam:()=>MC,zvX:()=>HS,DNE:()=>sp,C5r:()=>ox,EFF:()=>I1,JRh:()=>iE,SpI:()=>w0,Lme:()=>rE,DH7:()=>B1,mxI:()=>sE,R50:()=>oE,GBs:()=>T0}),s(70650);let d=null,S=1;const y=Symbol("SIGNAL");function f(u){const p=d;return d=u,p}function c(u){if((!E(u)||u.dirty)&&(u.dirty||u.lastCleanEpoch!==S)){if(!u.producerMustRecompute(u)&&!V(u))return u.dirty=!1,void(u.lastCleanEpoch=S);u.producerRecomputeValue(u),u.dirty=!1,u.lastCleanEpoch=S}}function V(u){g(u);for(let p=0;p<u.producerNode.length;p++){const C=u.producerNode[p],w=u.producerLastReadVersion[p];if(w!==C.version||(c(C),w!==C.version))return!0}return!1}function L(u,p){if(function R(u){u.liveConsumerNode??=[],u.liveConsumerIndexOfThis??=[]}(u),g(u),1===u.liveConsumerNode.length)for(let w=0;w<u.producerNode.length;w++)L(u.producerNode[w],u.producerIndexOfThis[w]);const C=u.liveConsumerNode.length-1;if(u.liveConsumerNode[p]=u.liveConsumerNode[C],u.liveConsumerIndexOfThis[p]=u.liveConsumerIndexOfThis[C],u.liveConsumerNode.length--,u.liveConsumerIndexOfThis.length--,p<u.liveConsumerNode.length){const w=u.liveConsumerIndexOfThis[p],K=u.liveConsumerNode[p];g(K),K.producerIndexOfThis[w]=p}}function E(u){return u.consumerIsAlwaysLive||(u?.liveConsumerNode?.length??0)>0}function g(u){u.producerNode??=[],u.producerIndexOfThis??=[],u.producerLastReadVersion??=[]}let ve=null;var W=s(80583),$=s(10399),le=s(26513),Pe=s(83915);const At="https://g.co/ng/security#xss";class Le extends Error{constructor(p,C){super(Et(p,C)),this.code=p}}function Et(u,p){return`NG0${Math.abs(u)}${p?": "+p:""}`}function Ot(u){return{toString:u}.toString()}const It="__parameters__";function ft(u,p,C){return Ot(()=>{const w=function lt(u){return function(...C){if(u){const w=u(...C);for(const K in w)this[K]=w[K]}}}(p);function K(...ge){if(this instanceof K)return w.apply(this,ge),this;const Ue=new K(...ge);return dt.annotation=Ue,dt;function dt(Tt,vn,Fn){const ai=Tt.hasOwnProperty(It)?Tt[It]:Object.defineProperty(Tt,It,{value:[]})[It];for(;ai.length<=Fn;)ai.push(null);return(ai[Fn]=ai[Fn]||[]).push(Ue),Tt}}return C&&(K.prototype=Object.create(C.prototype)),K.prototype.ngMetadataName=u,K.annotationCls=K,K})}const Xt=globalThis;function tt(u){for(let p in u)if(u[p]===tt)return p;throw Error("Could not find renamed property on target object.")}function rt(u,p){for(const C in p)p.hasOwnProperty(C)&&!u.hasOwnProperty(C)&&(u[C]=p[C])}function et(u){if("string"==typeof u)return u;if(Array.isArray(u))return"["+u.map(et).join(", ")+"]";if(null==u)return""+u;if(u.overriddenName)return`${u.overriddenName}`;if(u.name)return`${u.name}`;const p=u.toString();if(null==p)return""+p;const C=p.indexOf("\n");return-1===C?p:p.substring(0,C)}function St(u,p){return null==u||""===u?null===p?"":p:null==p||""===p?u:u+" "+p}const yt=tt({__forward_ref__:tt});function Wt(u){return u.__forward_ref__=Wt,u.toString=function(){return et(this())},u}function ke(u){return be(u)?u():u}function be(u){return"function"==typeof u&&u.hasOwnProperty(yt)&&u.__forward_ref__===Wt}function pn(u){return{token:u.token,providedIn:u.providedIn||null,factory:u.factory,value:void 0}}function pi(u){return{providers:u.providers||[],imports:u.imports||[]}}function cn(u){return Jn(u,xn)||Jn(u,Gn)}function An(u){return null!==cn(u)}function Jn(u,p){return u.hasOwnProperty(p)?u[p]:null}function xi(u){return u&&(u.hasOwnProperty(Yn)||u.hasOwnProperty(Ci))?u[Yn]:null}const xn=tt({\u0275prov:tt}),Yn=tt({\u0275inj:tt}),Gn=tt({ngInjectableDef:tt}),Ci=tt({ngInjectorDef:tt});class ln{constructor(p,C){this._desc=p,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof C?this.__NG_ELEMENT_ID__=C:void 0!==C&&(this.\u0275prov=pn({token:this,providedIn:C.providedIn||"root",factory:C.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Qi(u){return u&&!!u.\u0275providers}const ar=tt({\u0275cmp:tt}),jr=tt({\u0275dir:tt}),ho=tt({\u0275pipe:tt}),Fo=tt({\u0275mod:tt}),no=tt({\u0275fac:tt}),yo=tt({__NG_ELEMENT_ID__:tt}),Zr=tt({__NG_ENV_ID__:tt});function Yr(u){return"string"==typeof u?u:null==u?"":String(u)}function Sn(u,p){throw new Le(-201,!1)}var Bn=function(u){return u[u.Default=0]="Default",u[u.Host=1]="Host",u[u.Self=2]="Self",u[u.SkipSelf=4]="SkipSelf",u[u.Optional=8]="Optional",u}(Bn||{});let Ti;function Li(){return Ti}function dr(u){const p=Ti;return Ti=u,p}function Fr(u,p,C){const w=cn(u);return w&&"root"==w.providedIn?void 0===w.value?w.value=w.factory():w.value:C&Bn.Optional?null:void 0!==p?p:void Sn()}const rr={},Ut="__NG_DI_FLAG__",qn="ngTempTokenPath",ci=/\n/gm,Jr="__source";let oo;function fo(u){const p=oo;return oo=u,p}function Xr(u,p=Bn.Default){if(void 0===oo)throw new Le(-203,!1);return null===oo?Fr(u,void 0,p):oo.get(u,p&Bn.Optional?null:void 0,p)}function Go(u,p=Bn.Default){return(Li()||Xr)(ke(u),p)}function kr(u,p=Bn.Default){return Go(u,pa(p))}function pa(u){return typeof u>"u"||"number"==typeof u?u:(u.optional&&8)|(u.host&&1)|(u.self&&2)|(u.skipSelf&&4)}function ka(u){const p=[];for(let C=0;C<u.length;C++){const w=ke(u[C]);if(Array.isArray(w)){if(0===w.length)throw new Le(900,!1);let K,ge=Bn.Default;for(let Ue=0;Ue<w.length;Ue++){const dt=w[Ue],Tt=ys(dt);"number"==typeof Tt?-1===Tt?K=dt.token:ge|=Tt:K=dt}p.push(Go(K,ge))}else p.push(Go(w))}return p}function Xs(u,p){return u[Ut]=p,u.prototype[Ut]=p,u}function ys(u){return u[Ut]}const Oa=Xs(ft("Inject",u=>({token:u})),-1),Ms=Xs(ft("Optional"),8),Zs=Xs(ft("SkipSelf"),4);function js(u,p){return u.hasOwnProperty(no)?u[no]:null}function Js(u,p){u.forEach(C=>Array.isArray(C)?Js(C,p):p(C))}function fa(u,p,C){p>=u.length?u.push(C):u.splice(p,0,C)}function Ga(u,p){return p>=u.length-1?u.pop():u.splice(p,1)[0]}function ds(u,p,C){let w=ra(u,p);return w>=0?u[1|w]=C:(w=~w,function Hn(u,p,C,w){let K=u.length;if(K==p)u.push(C,w);else if(1===K)u.push(w,u[0]),u[0]=C;else{for(K--,u.push(u[K-1],u[K]);K>p;)u[K]=u[K-2],K--;u[p]=C,u[p+1]=w}}(u,w,p,C)),w}function la(u,p){const C=ra(u,p);if(C>=0)return u[1|C]}function ra(u,p){return function rs(u,p,C){let w=0,K=u.length>>C;for(;K!==w;){const ge=w+(K-w>>1),Ue=u[ge<<C];if(p===Ue)return ge<<C;Ue>p?K=ge:w=ge+1}return~(K<<C)}(u,p,1)}const oa={},Yo=[],Bs=new ln(""),Va=new ln("",-1),La=new ln("");class qs{get(p,C=rr){if(C===rr){const w=new Error(`NullInjectorError: No provider for ${et(p)}!`);throw w.name="NullInjectorError",w}return C}}var ks=function(u){return u[u.OnPush=0]="OnPush",u[u.Default=1]="Default",u}(ks||{}),ea=function(u){return u[u.Emulated=0]="Emulated",u[u.None=2]="None",u[u.ShadowDom=3]="ShadowDom",u}(ea||{}),ts=function(u){return u[u.None=0]="None",u[u.SignalBased=1]="SignalBased",u[u.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",u}(ts||{});function $a(u,p,C){let w=u.length;for(;;){const K=u.indexOf(p,C);if(-1===K)return K;if(0===K||u.charCodeAt(K-1)<=32){const ge=p.length;if(K+ge===w||u.charCodeAt(K+ge)<=32)return K}C=K+1}}function va(u,p,C){let w=0;for(;w<C.length;){const K=C[w];if("number"==typeof K){if(0!==K)break;w++;const ge=C[w++],Ue=C[w++],dt=C[w++];u.setAttribute(p,Ue,dt,ge)}else{const ge=K,Ue=C[++w];Tn(ge)?u.setProperty(p,ge,Ue):u.setAttribute(p,ge,Ue),w++}}return w}function Mn(u){return 3===u||4===u||6===u}function Tn(u){return 64===u.charCodeAt(0)}function tn(u,p){if(null!==p&&0!==p.length)if(null===u||0===u.length)u=p.slice();else{let C=-1;for(let w=0;w<p.length;w++){const K=p[w];"number"==typeof K?C=K:0===C||In(u,C,K,null,-1===C||2===C?p[++w]:null)}}return u}function In(u,p,C,w,K){let ge=0,Ue=u.length;if(-1===p)Ue=-1;else for(;ge<u.length;){const dt=u[ge++];if("number"==typeof dt){if(dt===p){Ue=-1;break}if(dt>p){Ue=ge-1;break}}}for(;ge<u.length;){const dt=u[ge];if("number"==typeof dt)break;if(dt===C){if(null===w)return void(null!==K&&(u[ge+1]=K));if(w===u[ge+1])return void(u[ge+2]=K)}ge++,null!==w&&ge++,null!==K&&ge++}-1!==Ue&&(u.splice(Ue,0,p),ge=Ue+1),u.splice(ge++,0,C),null!==w&&u.splice(ge++,0,w),null!==K&&u.splice(ge++,0,K)}const Ai="ng-template";function So(u,p,C,w){let K=0;if(w){for(;K<p.length&&"string"==typeof p[K];K+=2)if("class"===p[K]&&-1!==$a(p[K+1].toLowerCase(),C,0))return!0}else if(Rn(u))return!1;if(K=p.indexOf(1,K),K>-1){let ge;for(;++K<p.length&&"string"==typeof(ge=p[K]);)if(ge.toLowerCase()===C)return!0}return!1}function Rn(u){return 4===u.type&&u.value!==Ai}function Xn(u,p,C){return p===(4!==u.type||C?u.value:Ai)}function ae(u,p,C){let w=4;const K=u.attrs,ge=null!==K?function Sr(u){for(let p=0;p<u.length;p++)if(Mn(u[p]))return p;return u.length}(K):0;let Ue=!1;for(let dt=0;dt<p.length;dt++){const Tt=p[dt];if("number"!=typeof Tt){if(!Ue)if(4&w){if(w=2|1&w,""!==Tt&&!Xn(u,Tt,C)||""===Tt&&1===p.length){if(st(w))return!1;Ue=!0}}else if(8&w){if(null===K||!So(u,K,Tt,C)){if(st(w))return!1;Ue=!0}}else{const vn=p[++dt],Fn=Ct(Tt,K,Rn(u),C);if(-1===Fn){if(st(w))return!1;Ue=!0;continue}if(""!==vn){let ai;if(ai=Fn>ge?"":K[Fn+1].toLowerCase(),2&w&&vn!==ai){if(st(w))return!1;Ue=!0}}}}else{if(!Ue&&!st(w)&&!st(Tt))return!1;if(Ue&&st(Tt))continue;Ue=!1,w=Tt|1&w}}return st(w)||Ue}function st(u){return!(1&u)}function Ct(u,p,C,w){if(null===p)return-1;let K=0;if(w||!C){let ge=!1;for(;K<p.length;){const Ue=p[K];if(Ue===u)return K;if(3===Ue||6===Ue)ge=!0;else{if(1===Ue||2===Ue){let dt=p[++K];for(;"string"==typeof dt;)dt=p[++K];continue}if(4===Ue)break;if(0===Ue){K+=4;continue}}K+=ge?1:2}return-1}return function Wr(u,p){let C=u.indexOf(4);if(C>-1)for(C++;C<u.length;){const w=u[C];if("number"==typeof w)return-1;if(w===p)return C;C++}return-1}(p,u)}function $n(u,p,C=!1){for(let w=0;w<p.length;w++)if(ae(u,p[w],C))return!0;return!1}function ao(u,p){e:for(let C=0;C<p.length;C++){const w=p[C];if(u.length===w.length){for(let K=0;K<u.length;K++)if(u[K]!==w[K])continue e;return!0}}return!1}function Ir(u,p){return u?":not("+p.trim()+")":p}function Cr(u){let p=u[0],C=1,w=2,K="",ge=!1;for(;C<u.length;){let Ue=u[C];if("string"==typeof Ue)if(2&w){const dt=u[++C];K+="["+Ue+(dt.length>0?'="'+dt+'"':"")+"]"}else 8&w?K+="."+Ue:4&w&&(K+=" "+Ue);else""!==K&&!st(Ue)&&(p+=Ir(ge,K),K=""),w=Ue,ge=ge||!st(w);C++}return""!==K&&(p+=Ir(ge,K)),p}function el(u){return Ot(()=>{const p=ja(u),C={...p,decls:u.decls,vars:u.vars,template:u.template,consts:u.consts||null,ngContentSelectors:u.ngContentSelectors,onPush:u.changeDetection===ks.OnPush,directiveDefs:null,pipeDefs:null,dependencies:p.standalone&&u.dependencies||null,getStandaloneInjector:null,signals:u.signals??!1,data:u.data||{},encapsulation:u.encapsulation||ea.Emulated,styles:u.styles||Yo,_:null,schemas:u.schemas||null,tView:null,id:""};Ja(C);const w=u.dependencies;return C.directiveDefs=Wa(w,!1),C.pipeDefs=Wa(w,!0),C.id=function Ks(u){let p=0;const C=[u.selectors,u.ngContentSelectors,u.hostVars,u.hostAttrs,u.consts,u.vars,u.decls,u.encapsulation,u.standalone,u.signals,u.exportAs,JSON.stringify(u.inputs),JSON.stringify(u.outputs),Object.getOwnPropertyNames(u.type.prototype),!!u.contentQueries,!!u.viewQuery].join("|");for(const K of C)p=Math.imul(31,p)+K.charCodeAt(0)|0;return p+=2147483648,"c"+p}(C),C})}function ca(u){return Ie(u)||Ei(u)}function Zo(u){return null!==u}function Ha(u){return Ot(()=>({type:u.type,bootstrap:u.bootstrap||Yo,declarations:u.declarations||Yo,imports:u.imports||Yo,exports:u.exports||Yo,transitiveCompileScopes:null,schemas:u.schemas||null,id:u.id||null}))}function vo(u,p){if(null==u)return oa;const C={};for(const w in u)if(u.hasOwnProperty(w)){const K=u[w];let ge,Ue,dt=ts.None;Array.isArray(K)?(dt=K[0],ge=K[1],Ue=K[2]??ge):(ge=K,Ue=K),p?(C[ge]=dt!==ts.None?[w,dt]:w,p[ge]=Ue):C[ge]=w}return C}function ta(u){return Ot(()=>{const p=ja(u);return Ja(p),p})}function tl(u){return{type:u.type,name:u.name,factory:null,pure:!1!==u.pure,standalone:!0===u.standalone,onDestroy:u.type.prototype.ngOnDestroy||null}}function Ie(u){return u[ar]||null}function Ei(u){return u[jr]||null}function Ls(u){return u[ho]||null}function Ns(u){const p=Ie(u)||Ei(u)||Ls(u);return null!==p&&p.standalone}function Ps(u,p){const C=u[Fo]||null;if(!C&&!0===p)throw new Error(`Type ${et(u)} does not have '\u0275mod' property.`);return C}function ja(u){const p={};return{type:u.type,providersResolver:null,factory:null,hostBindings:u.hostBindings||null,hostVars:u.hostVars||0,hostAttrs:u.hostAttrs||null,contentQueries:u.contentQueries||null,declaredInputs:p,inputTransforms:null,inputConfig:u.inputs||oa,exportAs:u.exportAs||null,standalone:!0===u.standalone,signals:!0===u.signals,selectors:u.selectors||Yo,viewQuery:u.viewQuery||null,features:u.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:vo(u.inputs,p),outputs:vo(u.outputs),debugInfo:null}}function Ja(u){u.features?.forEach(p=>p(u))}function Wa(u,p){if(!u)return null;const C=p?Ls:ca;return()=>("function"==typeof u?u():u).map(w=>C(w)).filter(Zo)}function na(u){return{\u0275providers:u}}function zi(...u){return{\u0275providers:mr(0,u),\u0275fromNgModule:!0}}function mr(u,...p){const C=[],w=new Set;let K;const ge=Ue=>{C.push(Ue)};return Js(p,Ue=>{const dt=Ue;je(dt,ge,[],w)&&(K||=[],K.push(dt))}),void 0!==K&&lr(K,ge),C}function lr(u,p){for(let C=0;C<u.length;C++){const{ngModule:w,providers:K}=u[C];un(K,ge=>{p(ge,w)})}}function je(u,p,C,w){if(!(u=ke(u)))return!1;let K=null,ge=xi(u);const Ue=!ge&&Ie(u);if(ge||Ue){if(Ue&&!Ue.standalone)return!1;K=u}else{const Tt=u.ngModule;if(ge=xi(Tt),!ge)return!1;K=Tt}const dt=w.has(K);if(Ue){if(dt)return!1;if(w.add(K),Ue.dependencies){const Tt="function"==typeof Ue.dependencies?Ue.dependencies():Ue.dependencies;for(const vn of Tt)je(vn,p,C,w)}}else{if(!ge)return!1;{if(null!=ge.imports&&!dt){let vn;w.add(K);try{Js(ge.imports,Fn=>{je(Fn,p,C,w)&&(vn||=[],vn.push(Fn))})}finally{}void 0!==vn&&lr(vn,p)}if(!dt){const vn=js(K)||(()=>new K);p({provide:K,useFactory:vn,deps:Yo},K),p({provide:La,useValue:K,multi:!0},K),p({provide:Bs,useValue:()=>Go(K),multi:!0},K)}const Tt=ge.providers;if(null!=Tt&&!dt){const vn=u;un(Tt,Fn=>{p(Fn,vn)})}}}return K!==u&&void 0!==u.providers}function un(u,p){for(let C of u)Qi(C)&&(C=C.\u0275providers),Array.isArray(C)?un(C,p):p(C)}const wn=tt({provide:String,useValue:tt});function zn(u){return null!==u&&"object"==typeof u&&wn in u}function Ri(u){return"function"==typeof u}const _r=new ln(""),Er={},po={};let To;function rn(){return void 0===To&&(To=new qs),To}class Di{}class Te extends Di{get destroyed(){return this._destroyed}constructor(p,C,w,K){super(),this.parent=C,this.source=w,this.scopes=K,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ns(p,Ue=>this.processProvider(Ue)),this.records.set(Va,Ur(void 0,this)),K.has("environment")&&this.records.set(Di,Ur(void 0,this));const ge=this.records.get(_r);null!=ge&&"string"==typeof ge.value&&this.scopes.add(ge.value),this.injectorDefTypes=new Set(this.get(La,Yo,Bn.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const p=f(null);try{for(const w of this._ngOnDestroyHooks)w.ngOnDestroy();const C=this._onDestroyHooks;this._onDestroyHooks=[];for(const w of C)w()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),f(p)}}onDestroy(p){return this.assertNotDestroyed(),this._onDestroyHooks.push(p),()=>this.removeOnDestroy(p)}runInContext(p){this.assertNotDestroyed();const C=fo(this),w=dr(void 0);try{return p()}finally{fo(C),dr(w)}}get(p,C=rr,w=Bn.Default){if(this.assertNotDestroyed(),p.hasOwnProperty(Zr))return p[Zr](this);w=pa(w);const ge=fo(this),Ue=dr(void 0);try{if(!(w&Bn.SkipSelf)){let Tt=this.records.get(p);if(void 0===Tt){const vn=function Lr(u){return"function"==typeof u||"object"==typeof u&&u instanceof ln}(p)&&cn(p);Tt=vn&&this.injectableDefInScope(vn)?Ur(Jt(p),Er):null,this.records.set(p,Tt)}if(null!=Tt)return this.hydrate(p,Tt)}return(w&Bn.Self?rn():this.parent).get(p,C=w&Bn.Optional&&C===rr?null:C)}catch(dt){if("NullInjectorError"===dt.name){if((dt[qn]=dt[qn]||[]).unshift(et(p)),ge)throw dt;return function ma(u,p,C,w){const K=u[qn];throw p[Jr]&&K.unshift(p[Jr]),u.message=function fs(u,p,C,w=null){u=u&&"\n"===u.charAt(0)&&"\u0275"==u.charAt(1)?u.slice(2):u;let K=et(p);if(Array.isArray(p))K=p.map(et).join(" -> ");else if("object"==typeof p){let ge=[];for(let Ue in p)if(p.hasOwnProperty(Ue)){let dt=p[Ue];ge.push(Ue+":"+("string"==typeof dt?JSON.stringify(dt):et(dt)))}K=`{${ge.join(", ")}}`}return`${C}${w?"("+w+")":""}[${K}]: ${u.replace(ci,"\n ")}`}("\n"+u.message,K,C,w),u.ngTokenPath=K,u[qn]=null,u}(dt,p,"R3InjectorError",this.source)}throw dt}finally{dr(Ue),fo(ge)}}resolveInjectorInitializers(){const p=f(null),C=fo(this),w=dr(void 0);try{const ge=this.get(Bs,Yo,Bn.Self);for(const Ue of ge)Ue()}finally{fo(C),dr(w),f(p)}}toString(){const p=[],C=this.records;for(const w of C.keys())p.push(et(w));return`R3Injector[${p.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Le(205,!1)}processProvider(p){let C=Ri(p=ke(p))?p:ke(p&&p.provide);const w=function ei(u){return zn(u)?Ur(void 0,u.useValue):Ur(tr(u),Er)}(p);if(!Ri(p)&&!0===p.multi){let K=this.records.get(C);K||(K=Ur(void 0,Er,!0),K.factory=()=>ka(K.multi),this.records.set(C,K)),C=p,K.multi.push(p)}this.records.set(C,w)}hydrate(p,C){const w=f(null);try{return C.value===Er&&(C.value=po,C.value=C.factory()),"object"==typeof C.value&&C.value&&function wo(u){return null!==u&&"object"==typeof u&&"function"==typeof u.ngOnDestroy}(C.value)&&this._ngOnDestroyHooks.add(C.value),C.value}finally{f(w)}}injectableDefInScope(p){if(!p.providedIn)return!1;const C=ke(p.providedIn);return"string"==typeof C?"any"===C||this.scopes.has(C):this.injectorDefTypes.has(C)}removeOnDestroy(p){const C=this._onDestroyHooks.indexOf(p);-1!==C&&this._onDestroyHooks.splice(C,1)}}function Jt(u){const p=cn(u),C=null!==p?p.factory:js(u);if(null!==C)return C;if(u instanceof ln)throw new Le(204,!1);if(u instanceof Function)return function Rt(u){if(u.length>0)throw new Le(204,!1);const C=function hi(u){return u&&(u[xn]||u[Gn])||null}(u);return null!==C?()=>C.factory(u):()=>new u}(u);throw new Le(204,!1)}function tr(u,p,C){let w;if(Ri(u)){const K=ke(u);return js(K)||Jt(K)}if(zn(u))w=()=>ke(u.useValue);else if(function Si(u){return!(!u||!u.useFactory)}(u))w=()=>u.useFactory(...ka(u.deps||[]));else if(function vi(u){return!(!u||!u.useExisting)}(u))w=()=>Go(ke(u.useExisting));else{const K=ke(u&&(u.useClass||u.provide));if(!function lo(u){return!!u.deps}(u))return js(K)||Jt(K);w=()=>new K(...ka(u.deps))}return w}function Ur(u,p,C=!1){return{factory:u,value:p,multi:C?[]:void 0}}function ns(u,p){for(const C of u)Array.isArray(C)?ns(C,p):C&&Qi(C)?ns(C.\u0275providers,p):p(C)}function Io(u,p){u instanceof Te&&u.assertNotDestroyed();const w=fo(u),K=dr(void 0);try{return p()}finally{fo(w),dr(K)}}function da(){return void 0!==Li()||null!=function Qo(){return oo}()}const Jo=0,Gr=1,No=2,Vs=3,Ca=4,sa=5,as=6,il=7,jo=8,Oo=9,za=10,Uo=11,Xa=12,vl=13,Pl=14,Hs=15,wl=16,rl=17,al=18,gl=19,_l=20,ii=21,Sl=22,oi=23,Oi=25,ki=1,is=7,Ho=9,Ko=10;var xa=function(u){return u[u.None=0]="None",u[u.HasTransplantedViews=2]="HasTransplantedViews",u}(xa||{});function Ws(u){return Array.isArray(u)&&"object"==typeof u[ki]}function ws(u){return Array.isArray(u)&&!0===u[ki]}function Nl(u){return!!(4&u.flags)}function Ka(u){return u.componentOffset>-1}function Il(u){return!(1&~u.flags)}function Cl(u){return!!u.template}function ac(u){return!!(512&u[No])}class sn{constructor(p,C,w){this.previousValue=p,this.currentValue=C,this.firstChange=w}isFirstChange(){return this.firstChange}}function En(u,p,C,w){null!==p?p.applyValueToInputSignal(p,w):u[C]=w}function Un(){return ri}function ri(u){return u.type.prototype.ngOnChanges&&(u.setInput=Xi),Mi}function Mi(){const u=fr(this),p=u?.current;if(p){const C=u.previous;if(C===oa)u.previous=p;else for(let w in p)C[w]=p[w];u.current=null,this.ngOnChanges(p)}}function Xi(u,p,C,w,K){const ge=this.declaredInputs[w],Ue=fr(u)||function xr(u,p){return u[Ui]=p}(u,{previous:oa,current:null}),dt=Ue.current||(Ue.current={}),Tt=Ue.previous,vn=Tt[ge];dt[ge]=new sn(vn&&vn.currentValue,C,Tt===oa),En(u,p,K,C)}Un.ngInherit=!0;const Ui="__ngSimpleChanges__";function fr(u){return u[Ui]||null}const co=function(u,p,C){},Bo="svg";let Es=!1;function io(u){for(;Array.isArray(u);)u=u[Jo];return u}function Na(u,p){return io(p[u])}function Is(u,p){return io(p[u.index])}function x(u,p){return u.data[p]}function h(u,p){return u[p]}function b(u,p){const C=p[u];return Ws(C)?C:C[Jo]}function ee(u){return!(128&~u[No])}function we(u,p){return null==p?null:u[p]}function ze(u){u[rl]=0}function pt(u){1024&u[No]||(u[No]|=1024,ee(u)&&zt(u))}function $t(u){return!!(9216&u[No]||u[oi]?.dirty)}function an(u){u[za].changeDetectionScheduler?.notify(1),$t(u)?zt(u):64&u[No]&&(function Fs(){return Es}()?(u[No]|=1024,zt(u)):u[za].changeDetectionScheduler?.notify())}function zt(u){u[za].changeDetectionScheduler?.notify();let p=yn(u);for(;null!==p&&!(8192&p[No])&&(p[No]|=8192,ee(p));)p=yn(p)}function mn(u,p){if(!(256&~u[No]))throw new Le(911,!1);null===u[ii]&&(u[ii]=[]),u[ii].push(p)}function yn(u){const p=u[Vs];return ws(p)?p[Vs]:p}const Qn={lFrame:kt(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function sr(){return Qn.bindingsEnabled}function Ar(){return null!==Qn.skipHydrationRootTNode}function ir(){return Qn.lFrame.lView}function wr(){return Qn.lFrame.tView}function _s(u){return Qn.lFrame.contextLView=u,u[jo]}function Ta(u){return Qn.lFrame.contextLView=null,u}function ls(){let u=zs();for(;null!==u&&64===u.type;)u=u.parent;return u}function zs(){return Qn.lFrame.currentTNode}function ga(u,p){const C=Qn.lFrame;C.currentTNode=u,C.isParent=p}function nl(){return Qn.lFrame.isParent}function ua(){Qn.lFrame.isParent=!1}function qa(){const u=Qn.lFrame;let p=u.bindingRootIndex;return-1===p&&(p=u.bindingRootIndex=u.tView.bindingStartIndex),p}function pl(){return Qn.lFrame.bindingIndex++}function Ol(u){const p=Qn.lFrame,C=p.bindingIndex;return p.bindingIndex=p.bindingIndex+u,C}function vc(u,p){const C=Qn.lFrame;C.bindingIndex=C.bindingRootIndex=u,bc(p)}function bc(u){Qn.lFrame.currentDirectiveIndex=u}function _c(u){const p=Qn.lFrame.currentDirectiveIndex;return-1===p?null:u[p]}function Jl(){return Qn.lFrame.currentQueryIndex}function xl(u){Qn.lFrame.currentQueryIndex=u}function ic(u){const p=u[Gr];return 2===p.type?p.declTNode:1===p.type?u[sa]:null}function vt(u,p,C){if(C&Bn.SkipSelf){let K=p,ge=u;for(;!(K=K.parent,null!==K||C&Bn.Host||(K=ic(ge),null===K||(ge=ge[Pl],10&K.type))););if(null===K)return!1;p=K,u=ge}const w=Qn.lFrame=Ee();return w.currentTNode=p,w.lView=u,!0}function en(u){const p=Ee(),C=u[Gr];Qn.lFrame=p,p.currentTNode=C.firstChild,p.lView=u,p.tView=C,p.contextLView=u,p.bindingIndex=C.bindingStartIndex,p.inI18n=!1}function Ee(){const u=Qn.lFrame,p=null===u?null:u.child;return null===p?kt(u):p}function kt(u){const p={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:u,child:null,inI18n:!1};return null!==u&&(u.child=p),p}function Qt(){const u=Qn.lFrame;return Qn.lFrame=u.parent,u.currentTNode=null,u.lView=null,u}const Zn=Qt;function Vi(){const u=Qt();u.isParent=!0,u.tView=null,u.selectedIndex=-1,u.contextLView=null,u.elementDepthCount=0,u.currentDirectiveIndex=-1,u.currentNamespace=null,u.bindingRootIndex=-1,u.bindingIndex=-1,u.currentQueryIndex=0}function hr(){return Qn.lFrame.selectedIndex}function qr(u){Qn.lFrame.selectedIndex=u}function so(){const u=Qn.lFrame;return x(u.tView,u.selectedIndex)}function Cs(){Qn.lFrame.currentNamespace=Bo}function As(){!function ol(){Qn.lFrame.currentNamespace=null}()}let Sa=!0;function ya(){return Sa}function bl(u){Sa=u}function ud(u,p){for(let C=p.directiveStart,w=p.directiveEnd;C<w;C++){const ge=u.data[C].type.prototype,{ngAfterContentInit:Ue,ngAfterContentChecked:dt,ngAfterViewInit:Tt,ngAfterViewChecked:vn,ngOnDestroy:Fn}=ge;Ue&&(u.contentHooks??=[]).push(-C,Ue),dt&&((u.contentHooks??=[]).push(C,dt),(u.contentCheckHooks??=[]).push(C,dt)),Tt&&(u.viewHooks??=[]).push(-C,Tt),vn&&((u.viewHooks??=[]).push(C,vn),(u.viewCheckHooks??=[]).push(C,vn)),null!=Fn&&(u.destroyHooks??=[]).push(C,Fn)}}function Kc(u,p,C){gu(u,p,3,C)}function zl(u,p,C,w){(3&u[No])===C&&gu(u,p,C,w)}function Tl(u,p){let C=u[No];(3&C)===p&&(C&=16383,C+=1,u[No]=C)}function gu(u,p,C,w){const ge=w??-1,Ue=p.length-1;let dt=0;for(let Tt=void 0!==w?65535&u[rl]:0;Tt<Ue;Tt++)if("number"==typeof p[Tt+1]){if(dt=p[Tt],null!=w&&dt>=w)break}else p[Tt]<0&&(u[rl]+=65536),(dt<ge||-1==ge)&&(Vd(u,C,p,Tt),u[rl]=(4294901760&u[rl])+Tt+2),Tt++}function Gd(u,p){co(4,u,p);const C=f(null);try{p.call(u)}finally{f(C),co(5,u,p)}}function Vd(u,p,C,w){const K=C[w]<0,ge=C[w+1],dt=u[K?-C[w]:C[w]];K?u[No]>>14<u[rl]>>16&&(3&u[No])===p&&(u[No]+=16384,Gd(dt,ge)):Gd(dt,ge)}const dc=-1;class ed{constructor(p,C,w){this.factory=p,this.resolving=!1,this.canSeeViewProviders=C,this.injectImpl=w}}function Hd(u){return u!==dc}function kl(u){return 32767&u}function jc(u,p){let C=function hh(u){return u>>16}(u),w=p;for(;C>0;)w=w[Pl],C--;return w}let td=!0;function Xc(u){const p=td;return td=u,p}const jd=255,Pd=5;let Wd=0;const Rl={};function nd(u,p){const C=zd(u,p);if(-1!==C)return C;const w=p[Gr];w.firstCreatePass&&(u.injectorIndex=p.length,uc(w.data,u),uc(p,null),uc(w.blueprint,null));const K=id(u,p),ge=u.injectorIndex;if(Hd(K)){const Ue=kl(K),dt=jc(K,p),Tt=dt[Gr].data;for(let vn=0;vn<8;vn++)p[ge+vn]=dt[Ue+vn]|Tt[Ue+vn]}return p[ge+8]=K,ge}function uc(u,p){u.push(0,0,0,0,0,0,0,0,p)}function zd(u,p){return-1===u.injectorIndex||u.parent&&u.parent.injectorIndex===u.injectorIndex||null===p[u.injectorIndex+8]?-1:u.injectorIndex}function id(u,p){if(u.parent&&-1!==u.parent.injectorIndex)return u.parent.injectorIndex;let C=0,w=null,K=p;for(;null!==K;){if(w=Ac(K),null===w)return dc;if(C++,K=K[Pl],-1!==w.injectorIndex)return w.injectorIndex|C<<16}return dc}function Od(u,p,C){!function Lu(u,p,C){let w;"string"==typeof C?w=C.charCodeAt(0)||0:C.hasOwnProperty(yo)&&(w=C[yo]),null==w&&(w=C[yo]=Wd++);const K=w&jd;p.data[u+(K>>Pd)]|=1<<K}(u,p,C)}function Nu(u,p,C){if(C&Bn.Optional||void 0!==u)return u;Sn()}function $d(u,p,C,w){if(C&Bn.Optional&&void 0===w&&(w=null),!(C&(Bn.Self|Bn.Host))){const K=u[Oo],ge=dr(void 0);try{return K?K.get(p,w,C&Bn.Optional):Fr(p,w,C&Bn.Optional)}finally{dr(ge)}}return Nu(w,0,C)}function Ic(u,p,C,w=Bn.Default,K){if(null!==u){if(2048&p[No]&&!(w&Bn.Self)){const Ue=function ku(u,p,C,w,K){let ge=u,Ue=p;for(;null!==ge&&null!==Ue&&2048&Ue[No]&&!(512&Ue[No]);){const dt=xd(ge,Ue,C,w|Bn.Self,Rl);if(dt!==Rl)return dt;let Tt=ge.parent;if(!Tt){const vn=Ue[_l];if(vn){const Fn=vn.get(C,Rl,w);if(Fn!==Rl)return Fn}Tt=Ac(Ue),Ue=Ue[Pl]}ge=Tt}return K}(u,p,C,w,Rl);if(Ue!==Rl)return Ue}const ge=xd(u,p,C,w,Rl);if(ge!==Rl)return ge}return $d(p,C,w,K)}function xd(u,p,C,w,K){const ge=function Qc(u){if("string"==typeof u)return u.charCodeAt(0)||0;const p=u.hasOwnProperty(yo)?u[yo]:void 0;return"number"==typeof p?p>=0?p&jd:Td:p}(C);if("function"==typeof ge){if(!vt(p,u,w))return w&Bn.Host?Nu(K,0,w):$d(p,C,w,K);try{let Ue;if(Ue=ge(w),null!=Ue||w&Bn.Optional)return Ue;Sn()}finally{Zn()}}else if("number"==typeof ge){let Ue=null,dt=zd(u,p),Tt=dc,vn=w&Bn.Host?p[Hs][sa]:null;for((-1===dt||w&Bn.SkipSelf)&&(Tt=-1===dt?id(u,p):p[dt+8],Tt!==dc&&Bl(w,!1)?(Ue=p[Gr],dt=kl(Tt),p=jc(Tt,p)):dt=-1);-1!==dt;){const Fn=p[Gr];if(Rs(ge,dt,Fn.data)){const ai=mu(dt,p,C,Ue,w,vn);if(ai!==Rl)return ai}Tt=p[dt+8],Tt!==dc&&Bl(w,p[Gr].data[dt+8]===vn)&&Rs(ge,dt,p)?(Ue=Fn,dt=kl(Tt),p=jc(Tt,p)):dt=-1}}return K}function mu(u,p,C,w,K,ge){const Ue=p[Gr],dt=Ue.data[u+8],Fn=rd(dt,Ue,C,null==w?Ka(dt)&&td:w!=Ue&&!!(3&dt.type),K&Bn.Host&&ge===dt);return null!==Fn?Cc(p,Ue,Fn,dt):Rl}function rd(u,p,C,w,K){const ge=u.providerIndexes,Ue=p.data,dt=1048575&ge,Tt=u.directiveStart,Fn=ge>>20,Hi=K?dt+Fn:u.directiveEnd;for(let er=w?dt:dt+Fn;er<Hi;er++){const gr=Ue[er];if(er<Tt&&C===gr||er>=Tt&&gr.type===C)return er}if(K){const er=Ue[Tt];if(er&&Cl(er)&&er.type===C)return Tt}return null}function Cc(u,p,C,w){let K=u[C];const ge=p.data;if(function wc(u){return u instanceof ed}(K)){const Ue=K;Ue.resolving&&function to(u,p){throw p&&p.join(" > "),new Le(-200,u)}(function go(u){return"function"==typeof u?u.name||u.toString():"object"==typeof u&&null!=u&&"function"==typeof u.type?u.type.name||u.type.toString():Yr(u)}(ge[C]));const dt=Xc(Ue.canSeeViewProviders);Ue.resolving=!0;const vn=Ue.injectImpl?dr(Ue.injectImpl):null;vt(u,w,Bn.Default);try{K=u[C]=Ue.factory(void 0,ge,u,w),p.firstCreatePass&&C>=w.directiveStart&&function Du(u,p,C){const{ngOnChanges:w,ngOnInit:K,ngDoCheck:ge}=p.type.prototype;if(w){const Ue=ri(p);(C.preOrderHooks??=[]).push(u,Ue),(C.preOrderCheckHooks??=[]).push(u,Ue)}K&&(C.preOrderHooks??=[]).push(0-u,K),ge&&((C.preOrderHooks??=[]).push(u,ge),(C.preOrderCheckHooks??=[]).push(u,ge))}(C,ge[C],p)}finally{null!==vn&&dr(vn),Xc(dt),Ue.resolving=!1,Zn()}}return K}function Rs(u,p,C){return!!(C[p+(u>>Pd)]&1<<u)}function Bl(u,p){return!(u&Bn.Self||u&Bn.Host&&p)}class Fl{constructor(p,C){this._tNode=p,this._lView=C}get(p,C,w){return Ic(this._tNode,this._lView,p,pa(w),C)}}function Td(){return new Fl(ls(),ir())}function fu(u){return Ot(()=>{const p=u.prototype.constructor,C=p[no]||Gl(p),w=Object.prototype;let K=Object.getPrototypeOf(u.prototype).constructor;for(;K&&K!==w;){const ge=K[no]||Gl(K);if(ge&&ge!==C)return ge;K=Object.getPrototypeOf(K)}return ge=>new ge})}function Gl(u){return be(u)?()=>{const p=Gl(ke(u));return p&&p()}:js(u)}function Ac(u){const p=u[Gr],C=p.type;return 2===C?p.declTNode:1===C?u[sa]:null}function hd(u){return function Ed(u,p){if("class"===p)return u.classes;if("style"===p)return u.styles;const C=u.attrs;if(C){const w=C.length;let K=0;for(;K<w;){const ge=C[K];if(Mn(ge))break;if(0===ge)K+=2;else if("number"==typeof ge)for(K++;K<w&&"string"==typeof C[K];)K++;else{if(ge===p)return C[K+1];K+=2}}}return null}(ls(),u)}function Cu(u,p=null,C=null,w){const K=bu(u,p,C,w);return K.resolveInjectorInitializers(),K}function bu(u,p=null,C=null,w,K=new Set){const ge=[C||Yo,zi(u)];return w=w||("object"==typeof u?void 0:et(u)),new Te(ge,p||rn(),w||null,K)}let hc=(()=>{class u{static{this.THROW_IF_NOT_FOUND=rr}static{this.NULL=new qs}static create(C,w){if(Array.isArray(C))return Cu({name:""},w,C,"");{const K=C.name??"";return Cu({name:K},C.parent,C.providers,K)}}static{this.\u0275prov=pn({token:u,providedIn:"any",factory:()=>Go(Va)})}static{this.__NG_ELEMENT_ID__=-1}}return u})();function wd(u){return u.ngOriginalError}class Rc{constructor(){this._console=console}handleError(p){const C=this._findOriginalError(p);this._console.error("ERROR",p),C&&this._console.error("ORIGINAL ERROR",C)}_findOriginalError(p){let C=p&&wd(p);for(;C&&wd(C);)C=wd(C);return C||null}}const Id=new ln("",{providedIn:"root",factory:()=>kr(Rc).handleError.bind(void 0)});let od=(()=>{class u{static{this.__NG_ELEMENT_ID__=Su}static{this.__NG_ENV_ID__=C=>C}}return u})();class Ad extends od{constructor(p){super(),this._lView=p}onDestroy(p){return mn(this._lView,p),()=>function kn(u,p){if(null===u[ii])return;const C=u[ii].indexOf(p);-1!==C&&u[ii].splice(C,1)}(this._lView,p)}}function Su(){return new Ad(ir())}function Uu(){return Zc(ls(),ir())}function Zc(u,p){return new gs(Is(u,p))}let gs=(()=>{class u{constructor(C){this.nativeElement=C}static{this.__NG_ELEMENT_ID__=Uu}}return u})();function vd(u){return u instanceof gs?u.nativeElement:u}function yu(u){return p=>{setTimeout(u,void 0,p)}}const Dc=class Qd extends W.B7{constructor(p=!1){super(),this.destroyRef=void 0,this.__isAsync=p,da()&&(this.destroyRef=kr(od,{optional:!0})??void 0)}emit(p){const C=f(null);try{super.next(p)}finally{f(C)}}subscribe(p,C,w){let K=p,ge=C||(()=>null),Ue=w;if(p&&"object"==typeof p){const Tt=p;K=Tt.next?.bind(Tt),ge=Tt.error?.bind(Tt),Ue=Tt.complete?.bind(Tt)}this.__isAsync&&(ge=yu(ge),K&&(K=yu(K)),Ue&&(Ue=yu(Ue)));const dt=super.subscribe({next:K,error:ge,complete:Ue});return p instanceof $.y&&p.add(dt),dt}};function mh(){return this._results[Symbol.iterator]()}class Mu{get changes(){return this._changes??=new Dc}constructor(p=!1){this._emitDistinctChangesOnly=p,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const C=Mu.prototype;C[Symbol.iterator]||(C[Symbol.iterator]=mh)}get(p){return this._results[p]}map(p){return this._results.map(p)}filter(p){return this._results.filter(p)}find(p){return this._results.find(p)}reduce(p,C){return this._results.reduce(p,C)}forEach(p){this._results.forEach(p)}some(p){return this._results.some(p)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(p,C){this.dirty=!1;const w=function Ds(u){return u.flat(Number.POSITIVE_INFINITY)}(p);(this._changesDetected=!function Ia(u,p,C){if(u.length!==p.length)return!1;for(let w=0;w<u.length;w++){let K=u[w],ge=p[w];if(C&&(K=C(K),ge=C(ge)),ge!==K)return!1}return!0}(this._results,w,C))&&(this._results=w,this.length=w.length,this.last=w[this.length-1],this.first=w[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(p){this._onDirty=p}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}function it(u){return!(128&~u.flags)}const F=new Map;let Oe=0;const aa="__ngContext__";function ko(u,p){Ws(p)?(u[aa]=p[gl],function nn(u){F.set(u[gl],u)}(p)):u[aa]=p}function fh(u){return _h(u[Xa])}function vh(u){return _h(u[Ca])}function _h(u){for(;null!==u&&!ws(u);)u=u[Ca];return u}let dg;function e_(u){dg=u}function Ld(){if(void 0!==dg)return dg;if(typeof document<"u")return document;throw new Le(210,!1)}const Dp=new ln("",{providedIn:"root",factory:()=>cf}),cf="ng",Lp=new ln(""),yh=new ln("",{providedIn:"platform",factory:()=>"unknown"}),Mh=new ln(""),df=new ln("",{providedIn:"root",factory:()=>Ld().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let $u=()=>null;function mg(u,p,C=!1){return $u(u,p,C)}const Hp=new ln("",{providedIn:"root",factory:()=>!1});let qd,wh;function xu(u){return function _g(){if(void 0===qd&&(qd=null,Xt.trustedTypes))try{qd=Xt.trustedTypes.createPolicy("angular",{createHTML:u=>u,createScript:u=>u,createScriptURL:u=>u})}catch{}return qd}()?.createHTML(u)||u}function bg(){if(void 0===wh&&(wh=null,Xt.trustedTypes))try{wh=Xt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:u=>u,createScript:u=>u,createScriptURL:u=>u})}catch{}return wh}function Cf(u){return bg()?.createHTML(u)||u}function zp(u){return bg()?.createScriptURL(u)||u}class eu{constructor(p){this.changingThisBreaksApplicationSecurity=p}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${At})`}}class bf extends eu{getTypeName(){return"HTML"}}class Sf extends eu{getTypeName(){return"Style"}}class yf extends eu{getTypeName(){return"Script"}}class Mf extends eu{getTypeName(){return"URL"}}class Pf extends eu{getTypeName(){return"ResourceURL"}}function Ql(u){return u instanceof eu?u.changingThisBreaksApplicationSecurity:u}function Tu(u,p){const C=function Of(u){return u instanceof eu&&u.getTypeName()||null}(u);if(null!=C&&C!==p){if("ResourceURL"===C&&"URL"===p)return!0;throw new Error(`Required a safe ${p}, got a ${C} (see ${At})`)}return C===p}function tu(u){return new bf(u)}function wa(u){return new Sf(u)}function Ef(u){return new yf(u)}function yc(u){return new Mf(u)}function Yl(u){return new Pf(u)}class Nd{constructor(p){this.inertDocumentHelper=p}getInertBodyElement(p){p="<body><remove></remove>"+p;try{const C=(new window.DOMParser).parseFromString(xu(p),"text/html").body;return null===C?this.inertDocumentHelper.getInertBodyElement(p):(C.removeChild(C.firstChild),C)}catch{return null}}}class xf{constructor(p){this.defaultDoc=p,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(p){const C=this.inertDocument.createElement("template");return C.innerHTML=xu(p),C}}const wf=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Sg(u){return(u=String(u)).match(wf)?u:"unsafe:"+u}function _d(u){const p={};for(const C of u.split(","))p[C]=!0;return p}function nu(...u){const p={};for(const C of u)for(const w in C)C.hasOwnProperty(w)&&(p[w]=!0);return p}const Kp=_d("area,br,col,hr,img,wbr"),sd=_d("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),yg=_d("rp,rt"),Ih=nu(Kp,nu(sd,_d("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),nu(yg,_d("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),nu(yg,sd)),Pg=_d("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Yp=nu(Pg,_d("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),_d("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),If=_d("script,style,template");class Af{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(p){let C=p.firstChild,w=!0,K=[];for(;C;)if(C.nodeType===Node.ELEMENT_NODE?w=this.startElement(C):C.nodeType===Node.TEXT_NODE?this.chars(C.nodeValue):this.sanitizedSomething=!0,w&&C.firstChild)K.push(C),C=Og(C);else for(;C;){C.nodeType===Node.ELEMENT_NODE&&this.endElement(C);let ge=qu(C);if(ge){C=ge;break}C=K.pop()}return this.buf.join("")}startElement(p){const C=Xp(p).toLowerCase();if(!Ih.hasOwnProperty(C))return this.sanitizedSomething=!0,!If.hasOwnProperty(C);this.buf.push("<"),this.buf.push(C);const w=p.attributes;for(let K=0;K<w.length;K++){const ge=w.item(K),Ue=ge.name,dt=Ue.toLowerCase();if(!Yp.hasOwnProperty(dt)){this.sanitizedSomething=!0;continue}let Tt=ge.value;Pg[dt]&&(Tt=Sg(Tt)),this.buf.push(" ",Ue,'="',iu(Tt),'"')}return this.buf.push(">"),!0}endElement(p){const C=Xp(p).toLowerCase();Ih.hasOwnProperty(C)&&!Kp.hasOwnProperty(C)&&(this.buf.push("</"),this.buf.push(C),this.buf.push(">"))}chars(p){this.buf.push(iu(p))}}function qu(u){const p=u.nextSibling;if(p&&u!==p.previousSibling)throw Eg(p);return p}function Og(u){const p=u.firstChild;if(p&&function Rf(u,p){return(u.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(u,p))throw Eg(p);return p}function Xp(u){const p=u.nodeName;return"string"==typeof p?p:"FORM"}function Eg(u){return new Error(`Failed to sanitize html because the element is clobbered: ${u.outerHTML}`)}const Ah=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Nc=/([^\#-~ |!])/g;function iu(u){return u.replace(/&/g,"&").replace(Ah,function(p){return"&#"+(1024*(p.charCodeAt(0)-55296)+(p.charCodeAt(1)-56320)+65536)+";"}).replace(Nc,function(p){return"&#"+p.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Rh;function Qp(u,p){let C=null;try{Rh=Rh||function $p(u){const p=new xf(u);return function Tf(){try{return!!(new window.DOMParser).parseFromString(xu(""),"text/html")}catch{return!1}}()?new Nd(p):p}(u);let w=p?String(p):"";C=Rh.getInertBodyElement(w);let K=5,ge=w;do{if(0===K)throw new Error("Failed to sanitize html because the input is unstable");K--,w=ge,ge=C.innerHTML,C=Rh.getInertBodyElement(w)}while(w!==ge);return xu((new Af).sanitizeChildren(xg(C)||C))}finally{if(C){const w=xg(C)||C;for(;w.firstChild;)w.removeChild(w.firstChild)}}}function xg(u){return"content"in u&&function Df(u){return u.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===u.nodeName}(u)?u.content:null}var ru=function(u){return u[u.NONE=0]="NONE",u[u.HTML=1]="HTML",u[u.STYLE=2]="STYLE",u[u.SCRIPT=3]="SCRIPT",u[u.URL=4]="URL",u[u.RESOURCE_URL=5]="RESOURCE_URL",u}(ru||{});function Tg(u){const p=eh();return p?Cf(p.sanitize(ru.HTML,u)||""):Tu(u,"HTML")?Cf(Ql(u)):Qp(Ld(),Yr(u))}function Ma(u){const p=eh();return p?p.sanitize(ru.URL,u)||"":Tu(u,"URL")?Ql(u):Sg(Yr(u))}function wg(u){const p=eh();if(p)return zp(p.sanitize(ru.RESOURCE_URL,u)||"");if(Tu(u,"ResourceURL"))return zp(Ql(u));throw new Le(904,!1)}function Ag(u,p,C){return function ul(u,p){return"src"===p&&("embed"===u||"frame"===u||"iframe"===u||"media"===u||"script"===u)||"href"===p&&("base"===u||"link"===u)?wg:Ma}(p,C)(u)}function eh(){const u=ir();return u&&u[za].sanitizer}const Lf=/^>|^->|<!--|-->|--!>|<!-$/g,Nf=/(<|>)/g,kf="\u200b$1\u200b";function nm(u){return u.ownerDocument.defaultView}function im(u){return u.ownerDocument}function Fc(u){return u instanceof Function?u():u}var Nh=function(u){return u[u.Important=1]="Important",u[u.DashCase=2]="DashCase",u}(Nh||{});let Gg;function Vg(u,p){return Gg(u,p)}function su(u,p,C,w,K){if(null!=w){let ge,Ue=!1;ws(w)?ge=w:Ws(w)&&(Ue=!0,w=w[Jo]);const dt=io(w);0===u&&null!==C?null==K?lm(p,C,dt):au(p,C,dt,K||null,!0):1===u&&null!==C?au(p,C,dt,K||null,!0):2===u?function ih(u,p,C){const w=Bh(u,p);w&&function ev(u,p,C,w){u.removeChild(p,C,w)}(u,w,p,C)}(p,dt,Ue):3===u&&p.destroyNode(dt),null!=ge&&function iv(u,p,C,w,K){const ge=C[is];ge!==io(C)&&su(p,u,w,ge,K);for(let dt=Ko;dt<C.length;dt++){const Tt=C[dt];Au(Tt[Gr],Tt,u,p,w,ge)}}(p,u,ge,C,K)}}function Hg(u,p){return u.createComment(function qp(u){return u.replace(Lf,p=>p.replace(Nf,kf))}(p))}function Fh(u,p,C){return u.createElement(p,C)}function sm(u,p){p[za].changeDetectionScheduler?.notify(1),Au(u,p,p[Uo],2,null,null)}function am(u,p){const C=u[Ho],w=C.indexOf(p);C.splice(w,1)}function th(u,p){if(u.length<=Ko)return;const C=Ko+p,w=u[C];if(w){const K=w[wl];null!==K&&K!==u&&am(K,w),p>0&&(u[C-1][Ca]=w[Ca]);const ge=Ga(u,Ko+p);!function $f(u,p){sm(u,p),p[Jo]=null,p[sa]=null}(w[Gr],w);const Ue=ge[al];null!==Ue&&Ue.detachView(ge[Gr]),w[Vs]=null,w[Ca]=null,w[No]&=-129}return w}function Uh(u,p){if(!(256&p[No])){const C=p[Uo];C.destroyNode&&Au(u,p,C,3,null,null),function Yf(u){let p=u[Xa];if(!p)return jg(u[Gr],u);for(;p;){let C=null;if(Ws(p))C=p[Xa];else{const w=p[Ko];w&&(C=w)}if(!C){for(;p&&!p[Ca]&&p!==u;)Ws(p)&&jg(p[Gr],p),p=p[Vs];null===p&&(p=u),Ws(p)&&jg(p[Gr],p),C=p&&p[Ca]}p=C}}(p)}}function jg(u,p){if(256&p[No])return;const C=f(null);try{p[No]&=-129,p[No]|=256,p[oi]&&function T(u){if(g(u),E(u))for(let p=0;p<u.producerNode.length;p++)L(u.producerNode[p],u.producerIndexOfThis[p]);u.producerNode.length=u.producerLastReadVersion.length=u.producerIndexOfThis.length=0,u.liveConsumerNode&&(u.liveConsumerNode.length=u.liveConsumerIndexOfThis.length=0)}(p[oi]),function Jf(u,p){let C;if(null!=u&&null!=(C=u.destroyHooks))for(let w=0;w<C.length;w+=2){const K=p[C[w]];if(!(K instanceof ed)){const ge=C[w+1];if(Array.isArray(ge))for(let Ue=0;Ue<ge.length;Ue+=2){const dt=K[ge[Ue]],Tt=ge[Ue+1];co(4,dt,Tt);try{Tt.call(dt)}finally{co(5,dt,Tt)}}else{co(4,K,ge);try{ge.call(K)}finally{co(5,K,ge)}}}}}(u,p),function Zf(u,p){const C=u.cleanup,w=p[il];if(null!==C)for(let ge=0;ge<C.length-1;ge+=2)if("string"==typeof C[ge]){const Ue=C[ge+3];Ue>=0?w[Ue]():w[-Ue].unsubscribe(),ge+=2}else C[ge].call(w[C[ge+1]]);null!==w&&(p[il]=null);const K=p[ii];if(null!==K){p[ii]=null;for(let ge=0;ge<K.length;ge++)(0,K[ge])()}}(u,p),1===p[Gr].type&&p[Uo].destroy();const w=p[wl];if(null!==w&&ws(p[Vs])){w!==p[Vs]&&am(w,p);const K=p[al];null!==K&&K.detachView(u)}!function _i(u){F.delete(u[gl])}(p)}finally{f(C)}}function Wg(u,p,C){return function qf(u,p,C){let w=p;for(;null!==w&&40&w.type;)w=(p=w).parent;if(null===w)return C[Jo];{const{componentOffset:K}=w;if(K>-1){const{encapsulation:ge}=u.data[w.directiveStart+K];if(ge===ea.None||ge===ea.Emulated)return null}return Is(w,C)}}(u,p.parent,C)}function au(u,p,C,w,K){u.insertBefore(p,C,w,K)}function lm(u,p,C){u.appendChild(p,C)}function cm(u,p,C,w,K){null!==w?au(u,p,C,w,K):lm(u,p,C)}function Bh(u,p){return u.parentNode(p)}function dm(u,p,C){return zg(u,p,C)}let Vh,zg=function Gh(u,p,C){return 40&u.type?Is(u,C):null};function Hh(u,p,C,w){const K=Wg(u,w,p),ge=p[Uo],dt=dm(w.parent||p[sa],w,p);if(null!=K)if(Array.isArray(C))for(let Tt=0;Tt<C.length;Tt++)cm(ge,K,C[Tt],dt,!1);else cm(ge,K,C,dt,!1);void 0!==Vh&&Vh(ge,w,p,C,K)}function nh(u,p){if(null!==p){const C=p.type;if(3&C)return Is(p,u);if(4&C)return hm(-1,u[p.index]);if(8&C){const w=p.child;if(null!==w)return nh(u,w);{const K=u[p.index];return ws(K)?hm(-1,K):io(K)}}if(32&C)return Vg(p,u)()||io(u[p.index]);{const w=jh(u,p);return null!==w?Array.isArray(w)?w[0]:nh(yn(u[Hs]),w):nh(u,p.next)}}return null}function jh(u,p){return null!==p?u[Hs][sa].projection[p.projection]:null}function hm(u,p){const C=Ko+u+1;if(C<p.length){const w=p[C],K=w[Gr].firstChild;if(null!==K)return nh(w,K)}return p[is]}function pc(u,p,C,w,K,ge,Ue){for(;null!=C;){const dt=w[C.index],Tt=C.type;if(Ue&&0===p&&(dt&&ko(io(dt),w),C.flags|=2),32&~C.flags)if(8&Tt)pc(u,p,C.child,w,K,ge,!1),su(p,u,K,dt,ge);else if(32&Tt){const vn=Vg(C,w);let Fn;for(;Fn=vn();)su(p,u,K,Fn,ge);su(p,u,K,dt,ge)}else 16&Tt?pm(u,p,w,C,K,ge):su(p,u,K,dt,ge);C=Ue?C.projectionNext:C.next}}function Au(u,p,C,w,K,ge){pc(C,w,u.firstChild,p,K,ge,!1)}function pm(u,p,C,w,K,ge){const Ue=C[Hs],Tt=Ue[sa].projection[w.projection];if(Array.isArray(Tt))for(let vn=0;vn<Tt.length;vn++)su(p,u,K,Tt[vn],ge);else{let vn=Tt;const Fn=Ue[Vs];it(w)&&(vn.flags|=128),pc(u,p,vn,Fn,K,ge,!0)}}function mm(u,p,C){""===C?u.removeAttribute(p,"class"):u.setAttribute(p,"class",C)}function Wh(u,p,C){const{mergedAttrs:w,classes:K,styles:ge}=C;null!==w&&va(u,p,w),null!==K&&mm(u,p,K),null!==ge&&function $g(u,p,C){u.setAttribute(p,"style",C)}(u,p,ge)}const Pa={};function fm(u=1){vm(wr(),ir(),hr()+u,!1)}function vm(u,p,C,w){if(!w)if(3&~p[No]){const ge=u.preOrderHooks;null!==ge&&zl(p,ge,0,C)}else{const ge=u.preOrderCheckHooks;null!==ge&&Kc(p,ge,C)}qr(C)}function Ru(u,p=Bn.Default){const C=ir();return null===C?Go(u,p):Ic(ls(),C,ke(u),p)}function _m(){throw new Error("invalid")}function Cm(u,p,C,w,K,ge){const Ue=f(null);try{let dt=null;K&ts.SignalBased&&(dt=p[w][y]),null!==dt&&void 0!==dt.transformFn&&(ge=dt.transformFn(ge)),K&ts.HasDecoratorInputTransform&&(ge=u.inputTransforms[w].call(p,ge)),null!==u.setInput?u.setInput(p,dt,ge,C,w):En(p,dt,w,ge)}finally{f(Ue)}}function zh(u,p,C,w,K,ge,Ue,dt,Tt,vn,Fn){const ai=p.blueprint.slice();return ai[Jo]=K,ai[No]=204|w,(null!==vn||u&&2048&u[No])&&(ai[No]|=2048),ze(ai),ai[Vs]=ai[Pl]=u,ai[jo]=C,ai[za]=Ue||u&&u[za],ai[Uo]=dt||u&&u[Uo],ai[Oo]=Tt||u&&u[Oo]||null,ai[sa]=ge,ai[gl]=function Ke(){return Oe++}(),ai[as]=Fn,ai[_l]=vn,ai[Hs]=2==p.type?u[Hs]:ai,ai}function kd(u,p,C,w,K){let ge=u.data[p];if(null===ge)ge=function rh(u,p,C,w,K){const ge=zs(),Ue=nl(),Tt=u.data[p]=function uv(u,p,C,w,K,ge){let Ue=p?p.injectorIndex:-1,dt=0;return Ar()&&(dt|=128),{type:C,index:w,insertBeforeIndex:null,injectorIndex:Ue,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:dt,providerIndexes:0,value:K,attrs:ge,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:p,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,Ue?ge:ge&&ge.parent,C,p,w,K);return null===u.firstChild&&(u.firstChild=Tt),null!==ge&&(Ue?null==ge.child&&null!==Tt.parent&&(ge.child=Tt):null===ge.next&&(ge.next=Tt,Tt.prev=ge)),Tt}(u,p,C,w,K),function ml(){return Qn.lFrame.inI18n}()&&(ge.flags|=32);else if(64&ge.type){ge.type=C,ge.value=w,ge.attrs=K;const Ue=function ia(){const u=Qn.lFrame,p=u.currentTNode;return u.isParent?p:p.parent}();ge.injectorIndex=null===Ue?-1:Ue.injectorIndex}return ga(ge,!0),ge}function oh(u,p,C,w){if(0===C)return-1;const K=p.length;for(let ge=0;ge<C;ge++)p.push(w),u.blueprint.push(w),u.data.push(null);return K}function bm(u,p,C,w,K){const ge=hr(),Ue=2&w;try{qr(-1),Ue&&p.length>Oi&&vm(u,p,Oi,!1),co(Ue?2:0,K),C(w,K)}finally{qr(ge),co(Ue?3:1,K)}}function Kg(u,p,C){if(Nl(p)){const w=f(null);try{const ge=p.directiveEnd;for(let Ue=p.directiveStart;Ue<ge;Ue++){const dt=u.data[Ue];dt.contentQueries&&dt.contentQueries(1,C[Ue],Ue)}}finally{f(w)}}}function Yg(u,p,C){sr()&&(function Ni(u,p,C,w){const K=C.directiveStart,ge=C.directiveEnd;Ka(C)&&function Da(u,p,C){const w=Is(p,u),K=Sm(C);let Ue=16;C.signals?Ue=4096:C.onPush&&(Ue=64);const dt=Dl(u,zh(u,K,null,Ue,w,p,null,u[za].rendererFactory.createRenderer(w,C),null,null,null));u[p.index]=dt}(p,C,u.data[K+C.componentOffset]),u.firstCreatePass||nd(C,p),ko(w,p);const Ue=C.initialInputs;for(let dt=K;dt<ge;dt++){const Tt=u.data[dt],vn=Cc(p,u,dt,C);ko(vn,p),null!==Ue&&Za(0,dt-K,vn,Tt,0,Ue),Cl(Tt)&&(b(C.index,p)[jo]=Cc(p,u,dt,C))}}(u,p,C,Is(C,p)),!(64&~C.flags)&&Yi(u,p,C))}function $h(u,p,C=Is){const w=p.localNames;if(null!==w){let K=p.index+1;for(let ge=0;ge<w.length;ge+=2){const Ue=w[ge+1],dt=-1===Ue?C(p,u):u[Ue];u[K++]=dt}}}function Sm(u){const p=u.tView;return null===p||p.incompleteFirstPass?u.tView=Xg(1,null,u.template,u.decls,u.vars,u.directiveDefs,u.pipeDefs,u.viewQuery,u.schemas,u.consts,u.id):p}function Xg(u,p,C,w,K,ge,Ue,dt,Tt,vn,Fn){const ai=Oi+w,Hi=ai+K,er=function sv(u,p){const C=[];for(let w=0;w<p;w++)C.push(w<u?null:Pa);return C}(ai,Hi),gr="function"==typeof vn?vn():vn;return er[Gr]={type:u,blueprint:er,template:C,queries:null,viewQuery:dt,declTNode:p,data:er.slice().fill(null,ai),bindingStartIndex:ai,expandoStartIndex:Hi,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof ge?ge():ge,pipeRegistry:"function"==typeof Ue?Ue():Ue,firstChild:null,schemas:Tt,consts:gr,incompleteFirstPass:!1,ssrId:Fn}}let ym=()=>null;function Mm(u,p,C,w,K){for(let ge in p){if(!p.hasOwnProperty(ge))continue;const Ue=p[ge];if(void 0===Ue)continue;w??={};let dt,Tt=ts.None;Array.isArray(Ue)?(dt=Ue[0],Tt=Ue[1]):dt=Ue;let vn=ge;if(null!==K){if(!K.hasOwnProperty(ge))continue;vn=K[ge]}0===u?Pm(w,C,vn,dt,Tt):Pm(w,C,vn,dt)}return w}function Pm(u,p,C,w,K){let ge;u.hasOwnProperty(C)?(ge=u[C]).push(p,w):ge=u[C]=[p,w],void 0!==K&&ge.push(K)}function Pc(u,p,C,w,K,ge,Ue,dt){const Tt=Is(p,C);let Fn,vn=p.inputs;!dt&&null!=vn&&(Fn=vn[w])?(mv(u,C,Fn,w,K),Ka(p)&&function pv(u,p){const C=b(p,u);16&C[No]||(C[No]|=64)}(C,p.index)):3&p.type&&(w=function gv(u){return"class"===u?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u}(w),K=null!=Ue?Ue(K,p.value||"",w):K,ge.setProperty(Tt,w,K))}function ut(u,p,C,w){if(sr()){const K=null===w?null:{"":-1},ge=function Qr(u,p){const C=u.directiveRegistry;let w=null,K=null;if(C)for(let ge=0;ge<C.length;ge++){const Ue=C[ge];if($n(p,Ue.selectors,!1))if(w||(w=[]),Cl(Ue))if(null!==Ue.findHostDirectiveDefs){const dt=[];K=K||new Map,Ue.findHostDirectiveDefs(Ue,dt,K),w.unshift(...dt,Ue),Kr(u,p,dt.length)}else w.unshift(Ue),Kr(u,p,0);else K=K||new Map,Ue.findHostDirectiveDefs?.(Ue,w,K),w.push(Ue)}return null===w?null:[w,K]}(u,C);let Ue,dt;null===ge?Ue=dt=null:[Ue,dt]=ge,null!==Ue&&dn(u,p,C,Ue,K,dt),K&&function ro(u,p,C){if(p){const w=u.localNames=[];for(let K=0;K<p.length;K+=2){const ge=C[p[K+1]];if(null==ge)throw new Le(-301,!1);w.push(p[K],ge)}}}(C,w,K)}C.mergedAttrs=tn(C.mergedAttrs,C.attrs)}function dn(u,p,C,w,K,ge){for(let vn=0;vn<w.length;vn++)Od(nd(C,p),u,w[vn].type);!function ps(u,p,C){u.flags|=1,u.directiveStart=p,u.directiveEnd=p+C,u.providerIndexes=p}(C,u.data.length,w.length);for(let vn=0;vn<w.length;vn++){const Fn=w[vn];Fn.providersResolver&&Fn.providersResolver(Fn)}let Ue=!1,dt=!1,Tt=oh(u,p,w.length,null);for(let vn=0;vn<w.length;vn++){const Fn=w[vn];C.mergedAttrs=tn(C.mergedAttrs,Fn.hostAttrs),Ys(u,C,p,Tt,Fn),Wo(Tt,Fn,K),null!==Fn.contentQueries&&(C.flags|=4),(null!==Fn.hostBindings||null!==Fn.hostAttrs||0!==Fn.hostVars)&&(C.flags|=64);const ai=Fn.type.prototype;!Ue&&(ai.ngOnChanges||ai.ngOnInit||ai.ngDoCheck)&&((u.preOrderHooks??=[]).push(C.index),Ue=!0),!dt&&(ai.ngOnChanges||ai.ngDoCheck)&&((u.preOrderCheckHooks??=[]).push(C.index),dt=!0),Tt++}!function hv(u,p,C){const K=p.directiveEnd,ge=u.data,Ue=p.attrs,dt=[];let Tt=null,vn=null;for(let Fn=p.directiveStart;Fn<K;Fn++){const ai=ge[Fn],Hi=C?C.get(ai):null,gr=Hi?Hi.outputs:null;Tt=Mm(0,ai.inputs,Fn,Tt,Hi?Hi.inputs:null),vn=Mm(1,ai.outputs,Fn,vn,gr);const Nr=null===Tt||null===Ue||Rn(p)?null:Uc(Tt,Fn,Ue);dt.push(Nr)}null!==Tt&&(Tt.hasOwnProperty("class")&&(p.flags|=8),Tt.hasOwnProperty("style")&&(p.flags|=16)),p.initialInputs=dt,p.inputs=Tt,p.outputs=vn}(u,C,ge)}function Yi(u,p,C){const w=C.directiveStart,K=C.directiveEnd,ge=C.index,Ue=function Zl(){return Qn.lFrame.currentDirectiveIndex}();try{qr(ge);for(let dt=w;dt<K;dt++){const Tt=u.data[dt],vn=p[dt];bc(dt),(null!==Tt.hostBindings||0!==Tt.hostVars||null!==Tt.hostAttrs)&&cr(Tt,vn)}}finally{qr(-1),bc(Ue)}}function cr(u,p){null!==u.hostBindings&&u.hostBindings(1,p)}function Kr(u,p,C){p.componentOffset=C,(u.components??=[]).push(p.index)}function Wo(u,p,C){if(C){if(p.exportAs)for(let w=0;w<p.exportAs.length;w++)C[p.exportAs[w]]=u;Cl(p)&&(C[""]=u)}}function Ys(u,p,C,w,K){u.data[w]=K;const ge=K.factory||(K.factory=js(K.type)),Ue=new ed(ge,Cl(K),Ru);u.blueprint[w]=Ue,C[w]=Ue,function jn(u,p,C,w,K){const ge=K.hostBindings;if(ge){let Ue=u.hostBindingOpCodes;null===Ue&&(Ue=u.hostBindingOpCodes=[]);const dt=~p.index;(function di(u){let p=u.length;for(;p>0;){const C=u[--p];if("number"==typeof C&&C<0)return C}return 0})(Ue)!=dt&&Ue.push(dt),Ue.push(C,w,ge)}}(u,p,w,oh(u,C,K.hostVars,Pa),K)}function bs(u,p,C,w,K,ge){const Ue=Is(u,p);!function Fa(u,p,C,w,K,ge,Ue){if(null==ge)u.removeAttribute(p,K,C);else{const dt=null==Ue?Yr(ge):Ue(ge,w||"",K);u.setAttribute(p,K,dt,C)}}(p[Uo],Ue,ge,u.value,C,w,K)}function Za(u,p,C,w,K,ge){const Ue=ge[p];if(null!==Ue)for(let dt=0;dt<Ue.length;)Cm(w,C,Ue[dt++],Ue[dt++],Ue[dt++],Ue[dt++])}function Uc(u,p,C){let w=null,K=0;for(;K<C.length;){const ge=C[K];if(0!==ge)if(5!==ge){if("number"==typeof ge)break;if(u.hasOwnProperty(ge)){null===w&&(w=[]);const Ue=u[ge];for(let dt=0;dt<Ue.length;dt+=3)if(Ue[dt]===p){w.push(ge,Ue[dt+1],Ue[dt+2],C[K+1]);break}}K+=2}else K+=2;else K+=4}return w}function mc(u,p,C,w){return[u,!0,0,p,null,w,null,C,null,null]}function Oc(u,p){const C=u.contentQueries;if(null!==C){const w=f(null);try{for(let K=0;K<C.length;K+=2){const Ue=C[K+1];if(-1!==Ue){const dt=u.data[Ue];xl(C[K]),dt.contentQueries(2,p[Ue],Ue)}}}finally{f(w)}}}function Dl(u,p){return u[Xa]?u[vl][Ca]=p:u[Xa]=p,u[vl]=p,p}function Bc(u,p,C){xl(0);const w=f(null);try{p(u,C)}finally{f(w)}}function Qg(u){return u[il]||(u[il]=[])}function __(u){return u.cleanup||(u.cleanup=[])}function LC(u,p,C){return(null===u||Cl(u))&&(C=function Us(u){for(;Array.isArray(u);){if("object"==typeof u[ki])return u;u=u[Jo]}return null}(C[p.index])),C[Uo]}function Om(u,p){const C=u[Oo],w=C?C.get(Rc,null):null;w&&w.handleError(p)}function mv(u,p,C,w,K){for(let ge=0;ge<C.length;){const Ue=C[ge++],dt=C[ge++],Tt=C[ge++];Cm(u.data[Ue],p[Ue],w,dt,Tt,K)}}function lu(u,p,C){const w=Na(p,u);!function om(u,p,C){u.setValue(p,C)}(u[Uo],w,C)}function NC(u,p){const C=b(p,u),w=C[Gr];!function kC(u,p){for(let C=p.length;C<u.blueprint.length;C++)p.push(u.blueprint[C])}(w,C);const K=C[Jo];null!==K&&null===C[as]&&(C[as]=mg(K,C[Oo])),fv(w,C,C[jo])}function fv(u,p,C){en(p);try{const w=u.viewQuery;null!==w&&Bc(1,w,C);const K=u.template;null!==K&&bm(u,p,K,1,C),u.firstCreatePass&&(u.firstCreatePass=!1),p[al]?.finishViewCreation(u),u.staticContentQueries&&Oc(u,p),u.staticViewQueries&&Bc(2,u.viewQuery,C);const ge=u.components;null!==ge&&function FC(u,p){for(let C=0;C<p.length;C++)NC(u,p[C])}(p,ge)}catch(w){throw u.firstCreatePass&&(u.incompleteFirstPass=!0,u.firstCreatePass=!1),w}finally{p[No]&=-5,Vi()}}function Zg(u,p,C,w){const K=f(null);try{const ge=p.tView,Tt=zh(u,ge,C,4096&u[No]?4096:16,null,p,null,null,w?.injector??null,w?.embeddedViewInjector??null,w?.dehydratedView??null);Tt[wl]=u[p.index];const Fn=u[al];return null!==Fn&&(Tt[al]=Fn.createEmbeddedView(ge)),fv(ge,Tt,C),Tt}finally{f(K)}}function C_(u,p){const C=Ko+p;if(C<u.length)return u[C]}function Kh(u,p){return!p||null===p.firstChild||it(u)}function Jg(u,p,C,w=!0){const K=p[Gr];if(function Xf(u,p,C,w){const K=Ko+w,ge=C.length;w>0&&(C[K-1][Ca]=p),w<ge-Ko?(p[Ca]=C[K],fa(C,Ko+w,p)):(C.push(p),p[Ca]=null),p[Vs]=C;const Ue=p[wl];null!==Ue&&C!==Ue&&function Qf(u,p){const C=u[Ho];p[Hs]!==p[Vs][Vs][Hs]&&(u[No]|=xa.HasTransplantedViews),null===C?u[Ho]=[p]:C.push(p)}(Ue,p);const dt=p[al];null!==dt&&dt.insertView(u),an(p),p[No]|=128}(K,p,u,C),w){const Ue=hm(C,u),dt=p[Uo],Tt=Bh(dt,u[is]);null!==Tt&&function Kf(u,p,C,w,K,ge){w[Jo]=K,w[sa]=p,Au(u,w,C,1,K,ge)}(K,u[sa],dt,p,Tt,Ue)}const ge=p[as];null!==ge&&null!==ge.firstChild&&(ge.firstChild=null)}function vv(u,p){const C=th(u,p);return void 0!==C&&Uh(C[Gr],C),C}function qg(u,p,C,w,K=!1){for(;null!==C;){const ge=p[C.index];null!==ge&&w.push(io(ge)),ws(ge)&&b_(ge,w);const Ue=C.type;if(8&Ue)qg(u,p,C.child,w);else if(32&Ue){const dt=Vg(C,p);let Tt;for(;Tt=dt();)w.push(Tt)}else if(16&Ue){const dt=jh(p,C);if(Array.isArray(dt))w.push(...dt);else{const Tt=yn(p[Hs]);qg(Tt[Gr],Tt,dt,w,!0)}}C=K?C.projectionNext:C.next}return w}function b_(u,p){for(let C=Ko;C<u.length;C++){const w=u[C],K=w[Gr].firstChild;null!==K&&qg(w[Gr],w,K,p)}u[is]!==u[Jo]&&p.push(u[is])}let S_=[];const GC={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:u=>{zt(u.lView)},consumerOnSignalRead(){this.lView[oi]=this}},y_=100;function Em(u,p=!0,C=0){const w=u[za],K=w.rendererFactory;K.begin?.();try{!function VC(u,p){xm(u,p);let C=0;for(;$t(u);){if(C===y_)throw new Le(103,!1);C++,xm(u,1)}}(u,C)}catch(Ue){throw p&&Om(u,Ue),Ue}finally{K.end?.(),w.inlineEffectRunner?.flush()}}function HC(u,p,C,w){const K=p[No];if(!(256&~K))return;p[za].inlineEffectRunner?.flush(),en(p);let Ue=null,dt=null;(function jC(u){return 2!==u.type})(u)&&(dt=function j0(u){return u[oi]??function UC(u){const p=S_.pop()??Object.create(GC);return p.lView=u,p}(u)}(p),Ue=function I(u){return u&&(u.nextProducerIndex=0),f(u)}(dt));try{ze(p),function dl(u){return Qn.lFrame.bindingIndex=u}(u.bindingStartIndex),null!==C&&bm(u,p,C,2,w);const Tt=!(3&~K);if(Tt){const ai=u.preOrderCheckHooks;null!==ai&&Kc(p,ai,null)}else{const ai=u.preOrderHooks;null!==ai&&zl(p,ai,0,null),Tl(p,0)}if(function WC(u){for(let p=fh(u);null!==p;p=vh(p)){if(!(p[No]&xa.HasTransplantedViews))continue;const C=p[Ho];for(let w=0;w<C.length;w++){pt(C[w])}}}(p),M_(p,0),null!==u.contentQueries&&Oc(u,p),Tt){const ai=u.contentCheckHooks;null!==ai&&Kc(p,ai)}else{const ai=u.contentHooks;null!==ai&&zl(p,ai,1),Tl(p,1)}!function ov(u,p){const C=u.hostBindingOpCodes;if(null!==C)try{for(let w=0;w<C.length;w++){const K=C[w];if(K<0)qr(~K);else{const ge=K,Ue=C[++w],dt=C[++w];vc(Ue,ge),dt(2,p[ge])}}}finally{qr(-1)}}(u,p);const vn=u.components;null!==vn&&z0(p,vn,0);const Fn=u.viewQuery;if(null!==Fn&&Bc(2,Fn,w),Tt){const ai=u.viewCheckHooks;null!==ai&&Kc(p,ai)}else{const ai=u.viewHooks;null!==ai&&zl(p,ai,2),Tl(p,2)}if(!0===u.firstUpdatePass&&(u.firstUpdatePass=!1),p[Sl]){for(const ai of p[Sl])ai();p[Sl]=null}p[No]&=-73}catch(Tt){throw zt(p),Tt}finally{null!==dt&&(function U(u,p){if(f(p),u&&void 0!==u.producerNode&&void 0!==u.producerIndexOfThis&&void 0!==u.producerLastReadVersion){if(E(u))for(let C=u.nextProducerIndex;C<u.producerNode.length;C++)L(u.producerNode[C],u.producerIndexOfThis[C]);for(;u.producerNode.length>u.nextProducerIndex;)u.producerNode.pop(),u.producerLastReadVersion.pop(),u.producerIndexOfThis.pop()}}(dt,Ue),function BC(u){u.lView[oi]!==u&&(u.lView=null,S_.push(u))}(dt)),Vi()}}function M_(u,p){for(let C=fh(u);null!==C;C=vh(C))for(let w=Ko;w<C.length;w++)P_(C[w],p)}function zC(u,p,C){P_(b(p,u),C)}function P_(u,p){ee(u)&&xm(u,p)}function xm(u,p){const w=u[Gr],K=u[No],ge=u[oi];let Ue=!!(0===p&&16&K);if(Ue||=!!(64&K&&0===p),Ue||=!!(1024&K),Ue||=!(!ge?.dirty||!V(ge)),ge&&(ge.dirty=!1),u[No]&=-9217,Ue)HC(w,u,w.template,u[jo]);else if(8192&K){M_(u,1);const dt=w.components;null!==dt&&z0(u,dt,1)}}function z0(u,p,C){for(let w=0;w<p.length;w++)zC(u,p[w],C)}function Tm(u){for(u[za].changeDetectionScheduler?.notify();u;){u[No]|=64;const p=yn(u);if(ac(u)&&!p)return u;u=p}return null}class wm{get rootNodes(){const p=this._lView,C=p[Gr];return qg(C,p,C.firstChild,[])}constructor(p,C,w=!0){this._lView=p,this._cdRefInjectingView=C,this.notifyErrorHandler=w,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[jo]}set context(p){this._lView[jo]=p}get destroyed(){return!(256&~this._lView[No])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const p=this._lView[Vs];if(ws(p)){const C=p[8],w=C?C.indexOf(this):-1;w>-1&&(th(p,w),Ga(C,w))}this._attachedToViewContainer=!1}Uh(this._lView[Gr],this._lView)}onDestroy(p){mn(this._lView,p)}markForCheck(){Tm(this._cdRefInjectingView||this._lView)}detach(){this._lView[No]&=-129}reattach(){an(this._lView),this._lView[No]|=128}detectChanges(){this._lView[No]|=1024,Em(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Le(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,sm(this._lView[Gr],this._lView)}attachToAppRef(p){if(this._attachedToViewContainer)throw new Le(902,!1);this._appRef=p,an(this._lView)}}let Im=(()=>{class u{static{this.__NG_ELEMENT_ID__=Y0}}return u})();const $0=Im,K0=class extends $0{constructor(p,C,w){super(),this._declarationLView=p,this._declarationTContainer=C,this.elementRef=w}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(p,C){return this.createEmbeddedViewImpl(p,C)}createEmbeddedViewImpl(p,C,w){const K=Zg(this._declarationLView,this._declarationTContainer,p,{embeddedViewInjector:C,dehydratedView:w});return new wm(K)}};function Y0(){return _v(ls(),ir())}function _v(u,p){return 4&u.type?new K0(p,u,Zc(u,p)):null}let ZC=()=>null;function ep(u,p){return ZC(u,p)}class Mv{}class Cy{}class JC{}class Sy{resolveComponentFactory(p){throw function by(u){const p=Error(`No component factory found for ${et(u)}.`);return p.ngComponent=u,p}(p)}}let Nm=(()=>{class u{static{this.NULL=new Sy}}return u})();class eb{}let yy=(()=>{class u{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function My(){const u=ir(),C=b(ls().index,u);return(Ws(C)?C:u)[Uo]}()}}return u})(),Py=(()=>{class u{static{this.\u0275prov=pn({token:u,providedIn:"root",factory:()=>null})}}return u})();const w_={},tb=new Set;function cu(u){tb.has(u)||(tb.add(u),performance?.mark?.("mark_feature_usage",{detail:{feature:u}}))}function nb(...u){}class sc{constructor({enableLongStackTrace:p=!1,shouldCoalesceEventChangeDetection:C=!1,shouldCoalesceRunChangeDetection:w=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Dc(!1),this.onMicrotaskEmpty=new Dc(!1),this.onStable=new Dc(!1),this.onError=new Dc(!1),typeof Zone>"u")throw new Le(908,!1);Zone.assertZonePatched();const K=this;K._nesting=0,K._outer=K._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(K._inner=K._inner.fork(new Zone.TaskTrackingZoneSpec)),p&&Zone.longStackTraceZoneSpec&&(K._inner=K._inner.fork(Zone.longStackTraceZoneSpec)),K.shouldCoalesceEventChangeDetection=!w&&C,K.shouldCoalesceRunChangeDetection=w,K.lastRequestAnimationFrameId=-1,K.nativeRequestAnimationFrame=function Oy(){const u="function"==typeof Xt.requestAnimationFrame;let p=Xt[u?"requestAnimationFrame":"setTimeout"],C=Xt[u?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&p&&C){const w=p[Zone.__symbol__("OriginalDelegate")];w&&(p=w);const K=C[Zone.__symbol__("OriginalDelegate")];K&&(C=K)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:C}}().nativeRequestAnimationFrame,function Ty(u){const p=()=>{!function xy(u){u.isCheckStableRunning||-1!==u.lastRequestAnimationFrameId||(u.lastRequestAnimationFrameId=u.nativeRequestAnimationFrame.call(Xt,()=>{u.fakeTopEventTask||(u.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{u.lastRequestAnimationFrameId=-1,I_(u),u.isCheckStableRunning=!0,ib(u),u.isCheckStableRunning=!1},void 0,()=>{},()=>{})),u.fakeTopEventTask.invoke()}),I_(u))}(u)};u._inner=u._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(C,w,K,ge,Ue,dt)=>{if(function wy(u){return!(!Array.isArray(u)||1!==u.length)&&!0===u[0].data?.__ignore_ng_zone__}(dt))return C.invokeTask(K,ge,Ue,dt);try{return rb(u),C.invokeTask(K,ge,Ue,dt)}finally{(u.shouldCoalesceEventChangeDetection&&"eventTask"===ge.type||u.shouldCoalesceRunChangeDetection)&&p(),ob(u)}},onInvoke:(C,w,K,ge,Ue,dt,Tt)=>{try{return rb(u),C.invoke(K,ge,Ue,dt,Tt)}finally{u.shouldCoalesceRunChangeDetection&&p(),ob(u)}},onHasTask:(C,w,K,ge)=>{C.hasTask(K,ge),w===K&&("microTask"==ge.change?(u._hasPendingMicrotasks=ge.microTask,I_(u),ib(u)):"macroTask"==ge.change&&(u.hasPendingMacrotasks=ge.macroTask))},onHandleError:(C,w,K,ge)=>(C.handleError(K,ge),u.runOutsideAngular(()=>u.onError.emit(ge)),!1)})}(K)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!sc.isInAngularZone())throw new Le(909,!1)}static assertNotInAngularZone(){if(sc.isInAngularZone())throw new Le(909,!1)}run(p,C,w){return this._inner.run(p,C,w)}runTask(p,C,w,K){const ge=this._inner,Ue=ge.scheduleEventTask("NgZoneEvent: "+K,p,Ey,nb,nb);try{return ge.runTask(Ue,C,w)}finally{ge.cancelTask(Ue)}}runGuarded(p,C,w){return this._inner.runGuarded(p,C,w)}runOutsideAngular(p){return this._outer.run(p)}}const Ey={};function ib(u){if(0==u._nesting&&!u.hasPendingMicrotasks&&!u.isStable)try{u._nesting++,u.onMicrotaskEmpty.emit(null)}finally{if(u._nesting--,!u.hasPendingMicrotasks)try{u.runOutsideAngular(()=>u.onStable.emit(null))}finally{u.isStable=!0}}}function I_(u){u.hasPendingMicrotasks=!!(u._hasPendingMicrotasks||(u.shouldCoalesceEventChangeDetection||u.shouldCoalesceRunChangeDetection)&&-1!==u.lastRequestAnimationFrameId)}function rb(u){u._nesting++,u.isStable&&(u.isStable=!1,u.onUnstable.emit(null))}function ob(u){u._nesting--,ib(u)}class sb{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Dc,this.onMicrotaskEmpty=new Dc,this.onStable=new Dc,this.onError=new Dc}run(p,C,w){return p.apply(C,w)}runGuarded(p,C,w){return p.apply(C,w)}runOutsideAngular(p){return p()}runTask(p,C,w,K){return p.apply(C,w)}}var Yh=function(u){return u[u.EarlyRead=0]="EarlyRead",u[u.Write=1]="Write",u[u.MixedReadWrite=2]="MixedReadWrite",u[u.Read=3]="Read",u}(Yh||{});const ab={destroy(){}};function lb(u,p){!p&&function _a(u){if(!da())throw new Le(-203,!1)}();const C=p?.injector??kr(hc);if(!function ad(u){return"browser"===(u??kr(hc)).get(yh)}(C))return ab;cu("NgAfterNextRender");const w=C.get(km),K=w.handler??=new cb,ge=p?.phase??Yh.MixedReadWrite,Ue=()=>{K.unregister(Tt),dt()},dt=C.get(od).onDestroy(Ue),Tt=Io(C,()=>new Ry(ge,()=>{Ue(),u()}));return K.register(Tt),{destroy:Ue}}class Ry{constructor(p,C){this.phase=p,this.callbackFn=C,this.zone=kr(sc),this.errorHandler=kr(Rc,{optional:!0}),kr(Mv,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(p){this.errorHandler?.handleError(p)}}}class cb{constructor(){this.executingCallbacks=!1,this.buckets={[Yh.EarlyRead]:new Set,[Yh.Write]:new Set,[Yh.MixedReadWrite]:new Set,[Yh.Read]:new Set},this.deferredCallbacks=new Set}register(p){(this.executingCallbacks?this.deferredCallbacks:this.buckets[p.phase]).add(p)}unregister(p){this.buckets[p.phase].delete(p),this.deferredCallbacks.delete(p)}execute(){this.executingCallbacks=!0;for(const p of Object.values(this.buckets))for(const C of p)C.invoke();this.executingCallbacks=!1;for(const p of this.deferredCallbacks)this.buckets[p.phase].add(p);this.deferredCallbacks.clear()}destroy(){for(const p of Object.values(this.buckets))p.clear();this.deferredCallbacks.clear()}}let km=(()=>{class u{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const C=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const w of C)w()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=pn({token:u,providedIn:"root",factory:()=>new u})}}return u})();function sh(u){return!!Ps(u)}function Ov(u,p,C){let w=C?u.styles:null,K=C?u.classes:null,ge=0;if(null!==p)for(let Ue=0;Ue<p.length;Ue++){const dt=p[Ue];"number"==typeof dt?ge=dt:1==ge?K=St(K,dt):2==ge&&(w=St(w,dt+": "+p[++Ue]+";"))}C?u.styles=w:u.stylesWithoutHost=w,C?u.classes=K:u.classesWithoutHost=K}class Ny extends Nm{constructor(p){super(),this.ngModule=p}resolveComponentFactory(p){const C=Ie(p);return new Bm(C,this.ngModule)}}function hb(u){const p=[];for(const C in u){if(!u.hasOwnProperty(C))continue;const w=u[C];void 0!==w&&p.push({propName:Array.isArray(w)?w[0]:w,templateName:C})}return p}class tp{constructor(p,C){this.injector=p,this.parentInjector=C}get(p,C,w){w=pa(w);const K=this.injector.get(p,w_,w);return K!==w_||C===w_?K:this.parentInjector.get(p,C,w)}}class Bm extends JC{get inputs(){const p=this.componentDef,C=p.inputTransforms,w=hb(p.inputs);if(null!==C)for(const K of w)C.hasOwnProperty(K.propName)&&(K.transform=C[K.propName]);return w}get outputs(){return hb(this.componentDef.outputs)}constructor(p,C){super(),this.componentDef=p,this.ngModule=C,this.componentType=p.type,this.selector=function Po(u){return u.map(Cr).join(",")}(p.selectors),this.ngContentSelectors=p.ngContentSelectors?p.ngContentSelectors:[],this.isBoundToModule=!!C}create(p,C,w,K){const ge=f(null);try{let Ue=(K=K||this.ngModule)instanceof Di?K:K?.injector;Ue&&null!==this.componentDef.getStandaloneInjector&&(Ue=this.componentDef.getStandaloneInjector(Ue)||Ue);const dt=Ue?new tp(p,Ue):p,Tt=dt.get(eb,null);if(null===Tt)throw new Le(407,!1);const vn=dt.get(Py,null),Hi={rendererFactory:Tt,sanitizer:vn,inlineEffectRunner:null,afterRenderEventManager:dt.get(km,null),changeDetectionScheduler:dt.get(Mv,null)},er=Tt.createRenderer(null,this.componentDef),gr=this.componentDef.selectors[0][0]||"div",Nr=w?function av(u,p,C,w){const ge=w.get(Hp,!1)||C===ea.ShadowDom,Ue=u.selectRootElement(p,ge);return function lv(u){ym(u)}(Ue),Ue}(er,w,this.componentDef.encapsulation,dt):Fh(er,gr,function ky(u){const p=u.toLowerCase();return"svg"===p?Bo:"math"===p?"math":null}(gr));let mo=512;this.componentDef.signals?mo|=4096:this.componentDef.onPush||(mo|=16);let xo=null;null!==Nr&&(xo=mg(Nr,dt,!0));const eo=Xg(0,null,null,1,0,null,null,null,null,null,null),ha=zh(null,eo,null,mo,null,null,Hi,er,dt,null,xo);let fl,Ul;en(ha);try{const Tc=this.componentDef;let yd,Jv=null;Tc.findHostDirectiveDefs?(yd=[],Jv=new Map,Tc.findHostDirectiveDefs(Tc,yd,Jv),yd.push(Tc)):yd=[Tc];const ST=function Uy(u,p){const C=u[Gr],w=Oi;return u[w]=p,kd(C,w,2,"#host",null)}(ha,Nr),iA=function By(u,p,C,w,K,ge,Ue){const dt=K[Gr];!function Gy(u,p,C,w){for(const K of u)p.mergedAttrs=tn(p.mergedAttrs,K.hostAttrs);null!==p.mergedAttrs&&(Ov(p,p.mergedAttrs,!0),null!==C&&Wh(w,C,p))}(w,u,p,Ue);let Tt=null;null!==p&&(Tt=mg(p,K[Oo]));const vn=ge.rendererFactory.createRenderer(p,C);let Fn=16;C.signals?Fn=4096:C.onPush&&(Fn=64);const ai=zh(K,Sm(C),null,Fn,K[u.index],u,ge,vn,null,null,Tt);return dt.firstCreatePass&&Kr(dt,u,w.length-1),Dl(K,ai),K[u.index]=ai}(ST,Nr,Tc,yd,ha,Hi,er);Ul=x(eo,Oi),Nr&&function Hy(u,p,C,w){if(w)va(u,C,["ng-version","17.3.11"]);else{const{attrs:K,classes:ge}=function Ki(u){const p=[],C=[];let w=1,K=2;for(;w<u.length;){let ge=u[w];if("string"==typeof ge)2===K?""!==ge&&p.push(ge,u[++w]):8===K&&C.push(ge);else{if(!st(K))break;K=ge}w++}return{attrs:p,classes:C}}(p.selectors[0]);K&&va(u,C,K),ge&&ge.length>0&&mm(u,C,ge.join(" "))}}(er,Tc,Nr,w),void 0!==C&&function jy(u,p,C){const w=u.projection=[];for(let K=0;K<p.length;K++){const ge=C[K];w.push(null!=ge?Array.from(ge):null)}}(Ul,this.ngContentSelectors,C),fl=function Vy(u,p,C,w,K,ge){const Ue=ls(),dt=K[Gr],Tt=Is(Ue,K);dn(dt,K,Ue,C,null,w);for(let Fn=0;Fn<C.length;Fn++)ko(Cc(K,dt,Ue.directiveStart+Fn,Ue),K);Yi(dt,K,Ue),Tt&&ko(Tt,K);const vn=Cc(K,dt,Ue.directiveStart+Ue.componentOffset,Ue);if(u[jo]=K[jo]=vn,null!==ge)for(const Fn of ge)Fn(vn,p);return Kg(dt,Ue,K),vn}(iA,Tc,yd,Jv,ha,[Wy]),fv(eo,ha,null)}finally{Vi()}return new Fy(this.componentType,fl,Zc(Ul,ha),ha,Ul)}finally{f(ge)}}}class Fy extends Cy{constructor(p,C,w,K,ge){super(),this.location=w,this._rootLView=K,this._tNode=ge,this.previousInputValues=null,this.instance=C,this.hostView=this.changeDetectorRef=new wm(K,void 0,!1),this.componentType=p}setInput(p,C){const w=this._tNode.inputs;let K;if(null!==w&&(K=w[p])){if(this.previousInputValues??=new Map,this.previousInputValues.has(p)&&Object.is(this.previousInputValues.get(p),C))return;const ge=this._rootLView;mv(ge[Gr],ge,K,p,C),this.previousInputValues.set(p,C),Tm(b(this._tNode.index,ge))}}get injector(){return new Fl(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(p){this.hostView.onDestroy(p)}}function Wy(){const u=ls();ud(ir()[Gr],u)}let Gm=(()=>{class u{static{this.__NG_ELEMENT_ID__=zy}}return u})();function zy(){return mb(ls(),ir())}const $y=Gm,gb=class extends $y{constructor(p,C,w){super(),this._lContainer=p,this._hostTNode=C,this._hostLView=w}get element(){return Zc(this._hostTNode,this._hostLView)}get injector(){return new Fl(this._hostTNode,this._hostLView)}get parentInjector(){const p=id(this._hostTNode,this._hostLView);if(Hd(p)){const C=jc(p,this._hostLView),w=kl(p);return new Fl(C[Gr].data[w+8],C)}return new Fl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(p){const C=pb(this._lContainer);return null!==C&&C[p]||null}get length(){return this._lContainer.length-Ko}createEmbeddedView(p,C,w){let K,ge;"number"==typeof w?K=w:null!=w&&(K=w.index,ge=w.injector);const Ue=ep(this._lContainer,p.ssrId),dt=p.createEmbeddedViewImpl(C||{},ge,Ue);return this.insertImpl(dt,K,Kh(this._hostTNode,Ue)),dt}createComponent(p,C,w,K,ge){const Ue=p&&!function Pr(u){return"function"==typeof u}(p);let dt;if(Ue)dt=C;else{const gr=C||{};dt=gr.index,w=gr.injector,K=gr.projectableNodes,ge=gr.environmentInjector||gr.ngModuleRef}const Tt=Ue?p:new Bm(Ie(p)),vn=w||this.parentInjector;if(!ge&&null==Tt.ngModule){const Nr=(Ue?vn:this.parentInjector).get(Di,null);Nr&&(ge=Nr)}const Fn=Ie(Tt.componentType??{}),ai=ep(this._lContainer,Fn?.id??null),er=Tt.create(vn,K,ai?.firstChild??null,ge);return this.insertImpl(er.hostView,dt,Kh(this._hostTNode,ai)),er}insert(p,C){return this.insertImpl(p,C,!0)}insertImpl(p,C,w){const K=p._lView;if(function he(u){return ws(u[Vs])}(K)){const dt=this.indexOf(p);if(-1!==dt)this.detach(dt);else{const Tt=K[Vs],vn=new gb(Tt,Tt[sa],Tt[Vs]);vn.detach(vn.indexOf(p))}}const ge=this._adjustIndex(C),Ue=this._lContainer;return Jg(Ue,K,ge,w),p.attachToViewContainerRef(),fa(L_(Ue),ge,p),p}move(p,C){return this.insert(p,C)}indexOf(p){const C=pb(this._lContainer);return null!==C?C.indexOf(p):-1}remove(p){const C=this._adjustIndex(p,-1),w=th(this._lContainer,C);w&&(Ga(L_(this._lContainer),C),Uh(w[Gr],w))}detach(p){const C=this._adjustIndex(p,-1),w=th(this._lContainer,C);return w&&null!=Ga(L_(this._lContainer),C)?new wm(w):null}_adjustIndex(p,C=0){return p??this.length+C}};function pb(u){return u[8]}function L_(u){return u[8]||(u[8]=[])}function mb(u,p){let C;const w=p[u.index];return ws(w)?C=w:(C=mc(w,p,null,u),p[u.index]=C,Dl(p,C)),fb(C,p,u,w),new gb(C,u,p)}let fb=function Yy(u,p,C,w){if(u[is])return;let K;K=8&C.type?io(w):function Ky(u,p){const C=u[Uo],w=C.createComment(""),K=Is(p,u);return au(C,Bh(C,K),w,function tv(u,p){return u.nextSibling(p)}(C,K),!1),w}(p,C),u[is]=K},N_=()=>!1;class k_{constructor(p){this.queryList=p,this.matches=null}clone(){return new k_(this.queryList)}setDirty(){this.queryList.setDirty()}}class F_{constructor(p=[]){this.queries=p}createEmbeddedView(p){const C=p.queries;if(null!==C){const w=null!==p.contentQueries?p.contentQueries[0]:C.length,K=[];for(let ge=0;ge<w;ge++){const Ue=C.getByIndex(ge);K.push(this.queries[Ue.indexInDeclarationView].clone())}return new F_(K)}return null}insertView(p){this.dirtyQueriesWithMatches(p)}detachView(p){this.dirtyQueriesWithMatches(p)}finishViewCreation(p){this.dirtyQueriesWithMatches(p)}dirtyQueriesWithMatches(p){for(let C=0;C<this.queries.length;C++)null!==H_(p,C).matches&&this.queries[C].setDirty()}}class _b{constructor(p,C,w=null){this.flags=C,this.read=w,this.predicate="string"==typeof p?function iM(u){return u.split(",").map(p=>p.trim())}(p):p}}class U_{constructor(p=[]){this.queries=p}elementStart(p,C){for(let w=0;w<this.queries.length;w++)this.queries[w].elementStart(p,C)}elementEnd(p){for(let C=0;C<this.queries.length;C++)this.queries[C].elementEnd(p)}embeddedTView(p){let C=null;for(let w=0;w<this.length;w++){const K=null!==C?C.length:0,ge=this.getByIndex(w).embeddedTView(p,K);ge&&(ge.indexInDeclarationView=w,null!==C?C.push(ge):C=[ge])}return null!==C?new U_(C):null}template(p,C){for(let w=0;w<this.queries.length;w++)this.queries[w].template(p,C)}getByIndex(p){return this.queries[p]}get length(){return this.queries.length}track(p){this.queries.push(p)}}class B_{constructor(p,C=-1){this.metadata=p,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=C}elementStart(p,C){this.isApplyingToNode(C)&&this.matchTNode(p,C)}elementEnd(p){this._declarationNodeIndex===p.index&&(this._appliesToNextNode=!1)}template(p,C){this.elementStart(p,C)}embeddedTView(p,C){return this.isApplyingToNode(p)?(this.crossesNgTemplate=!0,this.addMatch(-p.index,C),new B_(this.metadata)):null}isApplyingToNode(p){if(this._appliesToNextNode&&1&~this.metadata.flags){const C=this._declarationNodeIndex;let w=p.parent;for(;null!==w&&8&w.type&&w.index!==C;)w=w.parent;return C===(null!==w?w.index:-1)}return this._appliesToNextNode}matchTNode(p,C){const w=this.metadata.predicate;if(Array.isArray(w))for(let K=0;K<w.length;K++){const ge=w[K];this.matchTNodeWithReadOption(p,C,Jy(C,ge)),this.matchTNodeWithReadOption(p,C,rd(C,p,ge,!1,!1))}else w===Im?4&C.type&&this.matchTNodeWithReadOption(p,C,-1):this.matchTNodeWithReadOption(p,C,rd(C,p,w,!1,!1))}matchTNodeWithReadOption(p,C,w){if(null!==w){const K=this.metadata.read;if(null!==K)if(K===gs||K===Gm||K===Im&&4&C.type)this.addMatch(C.index,-2);else{const ge=rd(C,p,K,!1,!1);null!==ge&&this.addMatch(C.index,ge)}else this.addMatch(C.index,w)}}addMatch(p,C){null===this.matches?this.matches=[p,C]:this.matches.push(p,C)}}function Jy(u,p){const C=u.localNames;if(null!==C)for(let w=0;w<C.length;w+=2)if(C[w]===p)return C[w+1];return null}function eM(u,p,C,w){return-1===C?function qy(u,p){return 11&u.type?Zc(u,p):4&u.type?_v(u,p):null}(p,u):-2===C?function tM(u,p,C){return C===gs?Zc(p,u):C===Im?_v(p,u):C===Gm?mb(p,u):void 0}(u,p,w):Cc(u,u[Gr],C,p)}function Cb(u,p,C,w){const K=p[al].queries[w];if(null===K.matches){const ge=u.data,Ue=C.matches,dt=[];for(let Tt=0;null!==Ue&&Tt<Ue.length;Tt+=2){const vn=Ue[Tt];dt.push(vn<0?null:eM(p,ge[vn],Ue[Tt+1],C.metadata.read))}K.matches=dt}return K.matches}function G_(u,p,C,w){const K=u.queries.getByIndex(C),ge=K.matches;if(null!==ge){const Ue=Cb(u,p,K,C);for(let dt=0;dt<ge.length;dt+=2){const Tt=ge[dt];if(Tt>0)w.push(Ue[dt/2]);else{const vn=ge[dt+1],Fn=p[-Tt];for(let ai=Ko;ai<Fn.length;ai++){const Hi=Fn[ai];Hi[wl]===Hi[Vs]&&G_(Hi[Gr],Hi,vn,w)}if(null!==Fn[Ho]){const ai=Fn[Ho];for(let Hi=0;Hi<ai.length;Hi++){const er=ai[Hi];G_(er[Gr],er,vn,w)}}}}}return w}function nM(u,p,C){const w=new Mu(!(4&~C));return function v_(u,p,C,w){const K=Qg(p);K.push(C),u.firstCreatePass&&__(u).push(w,K.length-1)}(u,p,w,w.destroy),(p[al]??=new F_).queries.push(new k_(w))-1}function yb(u,p,C){null===u.queries&&(u.queries=new U_),u.queries.track(new B_(p,C))}function H_(u,p){return u.queries.getByIndex(p)}function Mb(u,p){const C=u[Gr],w=H_(C,p);return w.crossesNgTemplate?G_(C,u,p,[]):Cb(C,u,w,p)}function Eb(u){return function Pb(u){return"function"==typeof u&&void 0!==u[y]}(u)&&"function"==typeof u.set}function W_(u){let p=function kb(u){return Object.getPrototypeOf(u.prototype).constructor}(u.type),C=!0;const w=[u];for(;p;){let K;if(Cl(u))K=p.\u0275cmp||p.\u0275dir;else{if(p.\u0275cmp)throw new Le(903,!1);K=p.\u0275dir}if(K){if(C){w.push(K);const Ue=u;Ue.inputs=z_(u.inputs),Ue.inputTransforms=z_(u.inputTransforms),Ue.declaredInputs=z_(u.declaredInputs),Ue.outputs=z_(u.outputs);const dt=K.hostBindings;dt&&bM(u,dt);const Tt=K.viewQuery,vn=K.contentQueries;if(Tt&&_M(u,Tt),vn&&CM(u,vn),fM(u,K),rt(u.outputs,K.outputs),Cl(K)&&K.data.animation){const Fn=u.data;Fn.animation=(Fn.animation||[]).concat(K.data.animation)}}const ge=K.features;if(ge)for(let Ue=0;Ue<ge.length;Ue++){const dt=ge[Ue];dt&&dt.ngInherit&&dt(u),dt===W_&&(C=!1)}}p=Object.getPrototypeOf(p)}!function vM(u){let p=0,C=null;for(let w=u.length-1;w>=0;w--){const K=u[w];K.hostVars=p+=K.hostVars,K.hostAttrs=tn(K.hostAttrs,C=tn(C,K.hostAttrs))}}(w)}function fM(u,p){for(const C in p.inputs){if(!p.inputs.hasOwnProperty(C)||u.inputs.hasOwnProperty(C))continue;const w=p.inputs[C];if(void 0!==w&&(u.inputs[C]=w,u.declaredInputs[C]=p.declaredInputs[C],null!==p.inputTransforms)){const K=Array.isArray(w)?w[0]:w;if(!p.inputTransforms.hasOwnProperty(K))continue;u.inputTransforms??={},u.inputTransforms[K]=p.inputTransforms[K]}}}function z_(u){return u===oa?{}:u===Yo?[]:u}function _M(u,p){const C=u.viewQuery;u.viewQuery=C?(w,K)=>{p(w,K),C(w,K)}:p}function CM(u,p){const C=u.contentQueries;u.contentQueries=C?(w,K,ge)=>{p(w,K,ge),C(w,K,ge)}:p}function bM(u,p){const C=u.hostBindings;u.hostBindings=C?(w,K)=>{p(w,K),C(w,K)}:p}function Gb(u){const p=u.inputConfig,C={};for(const w in p)if(p.hasOwnProperty(w)){const K=p[w];Array.isArray(K)&&K[3]&&(C[w]=K[3])}u.inputTransforms=C}class Xh{}class EM{}function xM(u,p){return new $_(u,p??null,[])}class $_ extends Xh{constructor(p,C,w){super(),this._parent=C,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ny(this);const K=Ps(p);this._bootstrapComponents=Fc(K.bootstrap),this._r3Injector=bu(p,C,[{provide:Xh,useValue:this},{provide:Nm,useValue:this.componentFactoryResolver},...w],et(p),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(p)}get injector(){return this._r3Injector}destroy(){const p=this._r3Injector;!p.destroyed&&p.destroy(),this.destroyCbs.forEach(C=>C()),this.destroyCbs=null}onDestroy(p){this.destroyCbs.push(p)}}class K_ extends EM{constructor(p){super(),this.moduleType=p}create(p){return new $_(this.moduleType,p,[])}}class Vb extends Xh{constructor(p){super(),this.componentFactoryResolver=new Ny(this),this.instance=null;const C=new Te([...p.providers,{provide:Xh,useValue:this},{provide:Nm,useValue:this.componentFactoryResolver}],p.parent||rn(),p.debugName,new Set(["environment"]));this.injector=C,p.runEnvironmentInitializers&&C.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(p){this.injector.onDestroy(p)}}function Y_(u,p,C=null){return new Vb({providers:u,parent:p,debugName:C,runEnvironmentInitializers:!0}).injector}let ip=(()=>{class u{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new le.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const C=this.taskId++;return this.pendingTasks.add(C),C}remove(C){this.pendingTasks.delete(C),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(w){return new(w||u)}}static{this.\u0275prov=pn({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})();function X_(u){return!!Q_(u)&&(Array.isArray(u)||!(u instanceof Map)&&Symbol.iterator in u)}function Q_(u){return null!==u&&("function"==typeof u||"object"==typeof u)}function du(u,p,C){return u[p]=C}function ec(u,p,C){return!Object.is(u[p],C)&&(u[p]=C,!0)}function Qh(u,p,C,w){const K=ec(u,p,C);return ec(u,p+1,w)||K}function sp(u,p,C,w,K,ge,Ue,dt){const Tt=ir(),vn=wr(),Fn=u+Oi,ai=vn.firstCreatePass?function RM(u,p,C,w,K,ge,Ue,dt,Tt){const vn=p.consts,Fn=kd(p,u,4,Ue||null,we(vn,dt));ut(p,C,Fn,we(vn,Tt)),ud(p,Fn);const ai=Fn.tView=Xg(2,Fn,w,K,ge,p.directiveRegistry,p.pipeRegistry,null,p.schemas,vn,null);return null!==p.queries&&(p.queries.template(p,Fn),ai.queries=p.queries.embeddedTView(Fn)),Fn}(Fn,vn,Tt,p,C,w,K,ge,Ue):vn.data[Fn];ga(ai,!1);const Hi=Hb(vn,Tt,ai,u);ya()&&Hh(vn,Tt,Hi,ai),ko(Hi,Tt);const er=mc(Hi,Tt,Hi,ai);return Tt[Fn]=er,Dl(Tt,er),function vb(u,p,C){return N_(u,p,C)}(er,ai,Tt),Il(ai)&&Yg(vn,Tt,ai),null!=Ue&&$h(Tt,ai,dt),sp}let Hb=function jb(u,p,C,w){return bl(!0),p[Uo].createComment("")};function oC(u,p,C,w){const K=ir();return ec(K,pl(),p)&&(wr(),bs(so(),K,u,p,C,w)),oC}function gp(u,p,C,w){return ec(u,pl(),C)?p+Yr(C)+w:Pa}function pp(u,p,C,w,K,ge){const dt=Qh(u,function ll(){return Qn.lFrame.bindingIndex}(),C,K);return Ol(2),dt?p+Yr(C)+w+Yr(K)+ge:Pa}function kv(u,p){return u<<17|p<<2}function dh(u){return u>>17&32767}function sC(u){return 2|u}function Jh(u){return(131068&u)>>2}function aC(u,p){return-131069&u|p<<2}function lC(u){return 1|u}function CS(u,p,C,w){const K=u[C+1],ge=null===p;let Ue=w?dh(K):Jh(K),dt=!1;for(;0!==Ue&&(!1===dt||ge);){const vn=u[Ue+1];vP(u[Ue],p)&&(dt=!0,u[Ue+1]=w?lC(vn):sC(vn)),Ue=w?dh(vn):Jh(vn)}dt&&(u[C+1]=w?sC(K):lC(K))}function vP(u,p){return null===u||null==p||(Array.isArray(u)?u[1]:u)===p||!(!Array.isArray(u)||"string"!=typeof p)&&ra(u,p)>=0}const fc={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function bS(u){return u.substring(fc.key,fc.keyEnd)}function SS(u,p){const C=fc.textEnd;return C===p?-1:(p=fc.keyEnd=function SP(u,p,C){for(;p<C&&u.charCodeAt(p)>32;)p++;return p}(u,fc.key=p,C),Sp(u,p,C))}function Sp(u,p,C){for(;p<C&&u.charCodeAt(p)<=32;)p++;return p}function cC(u,p,C){const w=ir();return ec(w,pl(),p)&&Pc(wr(),so(),w,u,p,w[Uo],C,!1),cC}function dC(u,p,C,w,K){const Ue=K?"class":"style";mv(u,C,p.inputs[Ue],Ue,w)}function uC(u,p,C){return Ud(u,p,C,!1),uC}function hC(u,p){return Ud(u,p,null,!0),hC}function ES(u){Bd(IP,hu,u,!0)}function hu(u,p){for(let C=function CP(u){return function MS(u){fc.key=0,fc.keyEnd=0,fc.value=0,fc.valueEnd=0,fc.textEnd=u.length}(u),SS(u,Sp(u,0,fc.textEnd))}(p);C>=0;C=SS(p,C))ds(u,bS(p),!0)}function Ud(u,p,C,w){const K=ir(),ge=wr(),Ue=Ol(2);ge.firstUpdatePass&&xS(ge,u,Ue,w),p!==Pa&&ec(K,Ue,p)&&wS(ge,ge.data[hr()],K,K[Uo],u,K[Ue+1]=function RP(u,p){return null==u||""===u||("string"==typeof p?u+=p:"object"==typeof u&&(u=et(Ql(u)))),u}(p,C),w,Ue)}function Bd(u,p,C,w){const K=wr(),ge=Ol(2);K.firstUpdatePass&&xS(K,null,ge,w);const Ue=ir();if(C!==Pa&&ec(Ue,ge,C)){const dt=K.data[hr()];if(DP(dt,w)&&!PP(K,ge)){let Tt=w?dt.classesWithoutHost:dt.stylesWithoutHost;null!==Tt&&(C=St(Tt,C||"")),dC(K,dt,Ue,C,w)}else!function AP(u,p,C,w,K,ge,Ue,dt){K===Pa&&(K=Yo);let Tt=0,vn=0,Fn=0<K.length?K[0]:null,ai=0<ge.length?ge[0]:null;for(;null!==Fn||null!==ai;){const Hi=Tt<K.length?K[Tt+1]:void 0,er=vn<ge.length?ge[vn+1]:void 0;let Nr,gr=null;Fn===ai?(Tt+=2,vn+=2,Hi!==er&&(gr=ai,Nr=er)):null===ai||null!==Fn&&Fn<ai?(Tt+=2,gr=Fn):(vn+=2,gr=ai,Nr=er),null!==gr&&wS(u,p,C,w,gr,Nr,Ue,dt),Fn=Tt<K.length?K[Tt]:null,ai=vn<ge.length?ge[vn]:null}}(K,dt,Ue,Ue[Uo],Ue[ge+1],Ue[ge+1]=function wP(u,p,C){if(null==C||""===C)return Yo;const w=[],K=Ql(C);if(Array.isArray(K))for(let ge=0;ge<K.length;ge++)u(w,K[ge],!0);else if("object"==typeof K)for(const ge in K)K.hasOwnProperty(ge)&&u(w,ge,K[ge]);else"string"==typeof K&&p(w,K);return w}(u,p,C),w,ge)}}function PP(u,p){return p>=u.expandoStartIndex}function xS(u,p,C,w){const K=u.data;if(null===K[C+1]){const ge=K[hr()],Ue=PP(u,C);DP(ge,w)&&null===p&&!Ue&&(p=!1),p=function OP(u,p,C,w){const K=_c(u);let ge=w?p.residualClasses:p.residualStyles;if(null===K)0===(w?p.classBindings:p.styleBindings)&&(C=$m(C=gC(null,u,p,C,w),p.attrs,w),ge=null);else{const Ue=p.directiveStylingLast;if(-1===Ue||u[Ue]!==K)if(C=gC(K,u,p,C,w),null===ge){let Tt=function EP(u,p,C){const w=C?p.classBindings:p.styleBindings;if(0!==Jh(w))return u[dh(w)]}(u,p,w);void 0!==Tt&&Array.isArray(Tt)&&(Tt=gC(null,u,p,Tt[1],w),Tt=$m(Tt,p.attrs,w),function xP(u,p,C,w){u[dh(C?p.classBindings:p.styleBindings)]=w}(u,p,w,Tt))}else ge=function TP(u,p,C){let w;const K=p.directiveEnd;for(let ge=1+p.directiveStylingLast;ge<K;ge++)w=$m(w,u[ge].hostAttrs,C);return $m(w,p.attrs,C)}(u,p,w)}return void 0!==ge&&(w?p.residualClasses=ge:p.residualStyles=ge),C}(K,ge,p,w),function mP(u,p,C,w,K,ge){let Ue=ge?p.classBindings:p.styleBindings,dt=dh(Ue),Tt=Jh(Ue);u[w]=C;let Fn,vn=!1;if(Array.isArray(C)?(Fn=C[1],(null===Fn||ra(C,Fn)>0)&&(vn=!0)):Fn=C,K)if(0!==Tt){const Hi=dh(u[dt+1]);u[w+1]=kv(Hi,dt),0!==Hi&&(u[Hi+1]=aC(u[Hi+1],w)),u[dt+1]=function gP(u,p){return 131071&u|p<<17}(u[dt+1],w)}else u[w+1]=kv(dt,0),0!==dt&&(u[dt+1]=aC(u[dt+1],w)),dt=w;else u[w+1]=kv(Tt,0),0===dt?dt=w:u[Tt+1]=aC(u[Tt+1],w),Tt=w;vn&&(u[w+1]=sC(u[w+1])),CS(u,Fn,w,!0),CS(u,Fn,w,!1),function fP(u,p,C,w,K){const ge=K?u.residualClasses:u.residualStyles;null!=ge&&"string"==typeof p&&ra(ge,p)>=0&&(C[w+1]=lC(C[w+1]))}(p,Fn,u,w,ge),Ue=kv(dt,Tt),ge?p.classBindings=Ue:p.styleBindings=Ue}(K,ge,p,C,Ue,w)}}function gC(u,p,C,w,K){let ge=null;const Ue=C.directiveEnd;let dt=C.directiveStylingLast;for(-1===dt?dt=C.directiveStart:dt++;dt<Ue&&(ge=p[dt],w=$m(w,ge.hostAttrs,K),ge!==u);)dt++;return null!==u&&(C.directiveStylingLast=dt),w}function $m(u,p,C){const w=C?1:2;let K=-1;if(null!==p)for(let ge=0;ge<p.length;ge++){const Ue=p[ge];"number"==typeof Ue?K=Ue:K===w&&(Array.isArray(u)||(u=void 0===u?[]:["",u]),ds(u,Ue,!!C||p[++ge]))}return void 0===u?null:u}function IP(u,p,C){const w=String(p);""!==w&&!w.includes(" ")&&ds(u,w,C)}function wS(u,p,C,w,K,ge,Ue,dt){if(!(3&p.type))return;const Tt=u.data,vn=Tt[dt+1],Fn=function pP(u){return!(1&~u)}(vn)?IS(Tt,p,C,K,Jh(vn),Ue):void 0;Fv(Fn)||(Fv(ge)||function hP(u){return!(2&~u)}(vn)&&(ge=IS(Tt,null,C,K,dt,Ue)),function rv(u,p,C,w,K){if(p)K?u.addClass(C,w):u.removeClass(C,w);else{let ge=-1===w.indexOf("-")?void 0:Nh.DashCase;null==K?u.removeStyle(C,w,ge):("string"==typeof K&&K.endsWith("!important")&&(K=K.slice(0,-10),ge|=Nh.Important),u.setStyle(C,w,K,ge))}}(w,Ue,Na(hr(),C),K,ge))}function IS(u,p,C,w,K,ge){const Ue=null===p;let dt;for(;K>0;){const Tt=u[K],vn=Array.isArray(Tt),Fn=vn?Tt[1]:Tt,ai=null===Fn;let Hi=C[K+1];Hi===Pa&&(Hi=ai?Yo:void 0);let er=ai?la(Hi,w):Fn===w?Hi:void 0;if(vn&&!Fv(er)&&(er=la(Tt,w)),Fv(er)&&(dt=er,Ue))return dt;const gr=u[K+1];K=Ue?dh(gr):Jh(gr)}if(null!==p){let Tt=ge?p.residualClasses:p.residualStyles;null!=Tt&&(dt=la(Tt,w))}return dt}function Fv(u){return void 0!==u}function DP(u,p){return!!(u.flags&(p?8:16))}function AS(u,p,C){Bd(ds,hu,gp(ir(),u,p,C),!0)}class jP{destroy(p){}updateValue(p,C){}swap(p,C){const w=Math.min(p,C),K=Math.max(p,C),ge=this.detach(K);if(K-w>1){const Ue=this.detach(w);this.attach(w,ge),this.attach(K,Ue)}else this.attach(w,ge)}move(p,C){this.attach(C,this.detach(p))}}function pC(u,p,C,w,K){return u===C&&Object.is(p,w)?1:Object.is(K(u,p),K(C,w))?-1:0}function mC(u,p,C,w){return!(void 0===p||!p.has(w)||(u.attach(C,p.get(w)),p.delete(w),0))}function zP(u,p,C,w,K){if(mC(u,p,w,C(w,K)))u.updateValue(w,K);else{const ge=u.create(w,K);u.attach(w,ge)}}function RS(u,p,C,w){const K=new Set;for(let ge=p;ge<=C;ge++)K.add(w(ge,u.at(ge)));return K}class DS{constructor(){this.kvMap=new Map,this._vMap=void 0}has(p){return this.kvMap.has(p)}delete(p){if(!this.has(p))return!1;const C=this.kvMap.get(p);return void 0!==this._vMap&&this._vMap.has(C)?(this.kvMap.set(p,this._vMap.get(C)),this._vMap.delete(C)):this.kvMap.delete(p),!0}get(p){return this.kvMap.get(p)}set(p,C){if(this.kvMap.has(p)){let w=this.kvMap.get(p);void 0===this._vMap&&(this._vMap=new Map);const K=this._vMap;for(;K.has(w);)w=K.get(w);K.set(w,C)}else this.kvMap.set(p,C)}forEach(p){for(let[C,w]of this.kvMap)if(p(w,C),void 0!==this._vMap){const K=this._vMap;for(;K.has(w);)w=K.get(w),p(w,C)}}}function LS(u,p,C){cu("NgControlFlow");const w=ir(),K=pl(),ge=fC(w,Oi+u);if(ec(w,K,p)){const dt=f(null);try{if(vv(ge,0),-1!==p){const Tt=vC(w[Gr],Oi+p),vn=ep(ge,Tt.tView.ssrId);Jg(ge,Zg(w,Tt,C,{dehydratedView:vn}),0,Kh(Tt,vn))}}finally{f(dt)}}else{const dt=C_(ge,0);void 0!==dt&&(dt[jo]=C)}}class $P{constructor(p,C,w){this.lContainer=p,this.$implicit=C,this.$index=w}get $count(){return this.lContainer.length-Ko}}function NS(u){return u}class YP{constructor(p,C,w){this.hasEmptyBlock=p,this.trackByFn=C,this.liveCollection=w}}function kS(u,p,C,w,K,ge,Ue,dt,Tt,vn,Fn,ai,Hi){cu("NgControlFlow");const er=void 0!==Tt,gr=ir(),Nr=dt?Ue.bind(gr[Hs][jo]):Ue,mo=new YP(er,Nr);gr[Oi+u]=mo,sp(u+1,p,C,w,K,ge),er&&sp(u+2,Tt,vn,Fn,ai,Hi)}class XP extends jP{constructor(p,C,w){super(),this.lContainer=p,this.hostLView=C,this.templateTNode=w,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Ko}at(p){return this.getLView(p)[jo].$implicit}attach(p,C){const w=C[as];this.needsIndexUpdate||=p!==this.length,Jg(this.lContainer,C,p,Kh(this.templateTNode,w))}detach(p){return this.needsIndexUpdate||=p!==this.length-1,function QP(u,p){return th(u,p)}(this.lContainer,p)}create(p,C){const w=ep(this.lContainer,this.templateTNode.tView.ssrId);return Zg(this.hostLView,this.templateTNode,new $P(this.lContainer,C,p),{dehydratedView:w})}destroy(p){Uh(p[Gr],p)}updateValue(p,C){this.getLView(p)[jo].$implicit=C}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let p=0;p<this.length;p++)this.getLView(p)[jo].$index=p}getLView(p){return function ZP(u,p){return C_(u,p)}(this.lContainer,p)}}function FS(u){const p=f(null),C=hr();try{const w=ir(),K=w[Gr],ge=w[C];if(void 0===ge.liveCollection){const dt=C+1,Tt=fC(w,dt),vn=vC(K,dt);ge.liveCollection=new XP(Tt,w,vn)}else ge.liveCollection.reset();const Ue=ge.liveCollection;if(function WP(u,p,C){let w,K,ge=0,Ue=u.length-1;if(Array.isArray(p)){let dt=p.length-1;for(;ge<=Ue&&ge<=dt;){const Tt=u.at(ge),vn=p[ge],Fn=pC(ge,Tt,ge,vn,C);if(0!==Fn){Fn<0&&u.updateValue(ge,vn),ge++;continue}const ai=u.at(Ue),Hi=p[dt],er=pC(Ue,ai,dt,Hi,C);if(0!==er){er<0&&u.updateValue(Ue,Hi),Ue--,dt--;continue}const gr=C(ge,Tt),Nr=C(Ue,ai),mo=C(ge,vn);if(Object.is(mo,Nr)){const xo=C(dt,Hi);Object.is(xo,gr)?(u.swap(ge,Ue),u.updateValue(Ue,Hi),dt--,Ue--):u.move(Ue,ge),u.updateValue(ge,vn),ge++}else if(w??=new DS,K??=RS(u,ge,Ue,C),mC(u,w,ge,mo))u.updateValue(ge,vn),ge++,Ue++;else if(K.has(mo))w.set(gr,u.detach(ge)),Ue--;else{const xo=u.create(ge,p[ge]);u.attach(ge,xo),ge++,Ue++}}for(;ge<=dt;)zP(u,w,C,ge,p[ge]),ge++}else if(null!=p){const dt=p[Symbol.iterator]();let Tt=dt.next();for(;!Tt.done&&ge<=Ue;){const vn=u.at(ge),Fn=Tt.value,ai=pC(ge,vn,ge,Fn,C);if(0!==ai)ai<0&&u.updateValue(ge,Fn),ge++,Tt=dt.next();else{w??=new DS,K??=RS(u,ge,Ue,C);const Hi=C(ge,Fn);if(mC(u,w,ge,Hi))u.updateValue(ge,Fn),ge++,Ue++,Tt=dt.next();else if(K.has(Hi)){const er=C(ge,vn);w.set(er,u.detach(ge)),Ue--}else u.attach(ge,u.create(ge,Fn)),ge++,Ue++,Tt=dt.next()}}for(;!Tt.done;)zP(u,w,C,u.length,Tt.value),Tt=dt.next()}for(;ge<=Ue;)u.destroy(u.detach(Ue--));w?.forEach(dt=>{u.destroy(dt)})}(Ue,u,ge.trackByFn),Ue.updateIndexes(),ge.hasEmptyBlock){const dt=pl(),Tt=0===Ue.length;if(ec(w,dt,Tt)){const vn=C+2,Fn=fC(w,vn);if(Tt){const ai=vC(K,vn),Hi=ep(Fn,ai.tView.ssrId);Jg(Fn,Zg(w,ai,void 0,{dehydratedView:Hi}),0,Kh(ai,Hi))}else vv(Fn,0)}}}finally{f(p)}}function fC(u,p){return u[p]}function vC(u,p){return x(u,p)}function _C(u,p,C,w){const K=ir(),ge=wr(),Ue=Oi+u,dt=K[Uo],Tt=ge.firstCreatePass?function JP(u,p,C,w,K,ge){const Ue=p.consts,Tt=kd(p,u,2,w,we(Ue,K));return ut(p,C,Tt,we(Ue,ge)),null!==Tt.attrs&&Ov(Tt,Tt.attrs,!1),null!==Tt.mergedAttrs&&Ov(Tt,Tt.mergedAttrs,!0),null!==p.queries&&p.queries.elementStart(p,Tt),Tt}(Ue,ge,K,p,C,w):ge.data[Ue],vn=US(ge,K,Tt,dt,p,u);K[Ue]=vn;const Fn=Il(Tt);return ga(Tt,!0),Wh(dt,vn,Tt),!function op(u){return!(32&~u.flags)}(Tt)&&ya()&&Hh(ge,K,vn,Tt),0===function mi(){return Qn.lFrame.elementDepthCount}()&&ko(vn,K),function Bi(){Qn.lFrame.elementDepthCount++}(),Fn&&(Yg(ge,K,Tt),Kg(ge,Tt,K)),null!==w&&$h(K,Tt),_C}function uh(){let u=ls();nl()?ua():(u=u.parent,ga(u,!1));const p=u;(function Vr(u){return Qn.skipHydrationRootTNode===u})(p)&&function Lo(){Qn.skipHydrationRootTNode=null}(),function qi(){Qn.lFrame.elementDepthCount--}();const C=wr();return C.firstCreatePass&&(ud(C,u),Nl(u)&&C.queries.elementEnd(u)),null!=p.classesWithoutHost&&function Hc(u){return!!(8&u.flags)}(p)&&dC(C,p,ir(),p.classesWithoutHost,!0),null!=p.stylesWithoutHost&&function Yc(u){return!!(16&u.flags)}(p)&&dC(C,p,ir(),p.stylesWithoutHost,!1),uh}function Ec(u,p,C,w){return _C(u,p,C,w),uh(),Ec}let US=(u,p,C,w,K,ge)=>(bl(!0),Fh(w,K,function cl(){return Qn.lFrame.currentNamespace}()));function Uv(u,p,C){const w=ir(),K=wr(),ge=u+Oi,Ue=K.firstCreatePass?function tO(u,p,C,w,K){const ge=p.consts,Ue=we(ge,w),dt=kd(p,u,8,"ng-container",Ue);return null!==Ue&&Ov(dt,Ue,!0),ut(p,C,dt,we(ge,K)),null!==p.queries&&p.queries.elementStart(p,dt),dt}(ge,K,w,p,C):K.data[ge];ga(Ue,!0);const dt=Gv(K,w,Ue,u);return w[ge]=dt,ya()&&Hh(K,w,dt,Ue),ko(dt,w),Il(Ue)&&(Yg(K,w,Ue),Kg(K,Ue,w)),null!=C&&$h(w,Ue),Uv}function Bv(){let u=ls();const p=wr();return nl()?ua():(u=u.parent,ga(u,!1)),p.firstCreatePass&&(ud(p,u),Nl(u)&&p.queries.elementEnd(u)),Bv}function CC(u,p,C){return Uv(u,p,C),Bv(),CC}let Gv=(u,p,C,w)=>(bl(!0),Hg(p[Uo],""));function GS(){return ir()}function VS(u,p,C){const w=ir();return ec(w,pl(),p)&&Pc(wr(),so(),w,u,p,w[Uo],C,!0),VS}function HS(u,p,C){const w=ir();if(ec(w,pl(),p)){const ge=wr(),Ue=so();Pc(ge,Ue,w,u,p,LC(_c(ge.data),Ue,w),C,!0)}return HS}const qh=void 0;var rO=["en",[["a","p"],["AM","PM"],qh],[["AM","PM"],qh,qh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],qh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],qh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",qh,"{1} 'at' {0}",qh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function iO(u){const C=Math.floor(Math.abs(u)),w=u.toString().replace(/^[^.]*\.?/,"").length;return 1===C&&0===w?1:5}];let yp={};function bC(u){const p=function oO(u){return u.toLowerCase().replace(/_/g,"-")}(u);let C=WS(p);if(C)return C;const w=p.split("-")[0];if(C=WS(w),C)return C;if("en"===w)return rO;throw new Le(701,!1)}function jS(u){return bC(u)[Mp.PluralCase]}function WS(u){return u in yp||(yp[u]=Xt.ng&&Xt.ng.common&&Xt.ng.common.locales&&Xt.ng.common.locales[u]),yp[u]}var Mp=function(u){return u[u.LocaleId=0]="LocaleId",u[u.DayPeriodsFormat=1]="DayPeriodsFormat",u[u.DayPeriodsStandalone=2]="DayPeriodsStandalone",u[u.DaysFormat=3]="DaysFormat",u[u.DaysStandalone=4]="DaysStandalone",u[u.MonthsFormat=5]="MonthsFormat",u[u.MonthsStandalone=6]="MonthsStandalone",u[u.Eras=7]="Eras",u[u.FirstDayOfWeek=8]="FirstDayOfWeek",u[u.WeekendRange=9]="WeekendRange",u[u.DateFormat=10]="DateFormat",u[u.TimeFormat=11]="TimeFormat",u[u.DateTimeFormat=12]="DateTimeFormat",u[u.NumberSymbols=13]="NumberSymbols",u[u.NumberFormats=14]="NumberFormats",u[u.CurrencyCode=15]="CurrencyCode",u[u.CurrencySymbol=16]="CurrencySymbol",u[u.CurrencyName=17]="CurrencyName",u[u.Currencies=18]="Currencies",u[u.Directionality=19]="Directionality",u[u.PluralCase=20]="PluralCase",u[u.ExtraData=21]="ExtraData",u}(Mp||{});const Pp="en-US";let zS=Pp;function yC(u,p,C,w){const K=ir(),ge=wr(),Ue=ls();return PC(ge,K,K[Uo],Ue,u,p,w),yC}function MC(u,p){const C=ls(),w=ir(),K=wr();return PC(K,w,LC(_c(K.data),C,w),C,u,p),MC}function PC(u,p,C,w,K,ge,Ue){const dt=Il(w),vn=u.firstCreatePass&&__(u),Fn=p[jo],ai=Qg(p);let Hi=!0;if(3&w.type||Ue){const Nr=Is(w,p),mo=Ue?Ue(Nr):Nr,xo=ai.length,eo=Ue?fl=>Ue(io(fl[w.index])):w.index;let ha=null;if(!Ue&&dt&&(ha=function eE(u,p,C,w){const K=u.cleanup;if(null!=K)for(let ge=0;ge<K.length-1;ge+=2){const Ue=K[ge];if(Ue===C&&K[ge+1]===w){const dt=p[il],Tt=K[ge+2];return dt.length>Tt?dt[Tt]:null}"string"==typeof Ue&&(ge+=2)}return null}(u,p,K,w.index)),null!==ha)(ha.__ngLastListenerFn__||ha).__ngNextListenerFn__=ge,ha.__ngLastListenerFn__=ge,Hi=!1;else{ge=C0(w,p,Fn,ge,!1);const fl=C.listen(mo,K,ge);ai.push(ge,fl),vn&&vn.push(K,eo,xo,xo+1)}}else ge=C0(w,p,Fn,ge,!1);const er=w.outputs;let gr;if(Hi&&null!==er&&(gr=er[K])){const Nr=gr.length;if(Nr)for(let mo=0;mo<Nr;mo+=2){const Ul=p[gr[mo]][gr[mo+1]].subscribe(ge),Tc=ai.length;ai.push(ge,Ul),vn&&vn.push(K,w.index,Tc,-(Tc+1))}}}function _0(u,p,C,w){const K=f(null);try{return co(6,p,C),!1!==C(w)}catch(ge){return Om(u,ge),!1}finally{co(7,p,C),f(K)}}function C0(u,p,C,w,K){return function ge(Ue){if(Ue===Function)return w;Tm(u.componentOffset>-1?b(u.index,p):p);let Tt=_0(p,C,w,Ue),vn=ge.__ngNextListenerFn__;for(;vn;)Tt=_0(p,C,vn,Ue)&&Tt,vn=vn.__ngNextListenerFn__;return K&&!1===Tt&&Ue.preventDefault(),Tt}}function b0(u=1){return function vr(u){return(Qn.lFrame.contextLView=function wt(u,p){for(;u>0;)p=p[Pl],u--;return p}(u,Qn.lFrame.contextLView))[jo]}(u)}function tE(u,p){let C=null;const w=function Gi(u){const p=u.attrs;if(null!=p){const C=p.indexOf(5);if(!(1&C))return p[C+1]}return null}(u);for(let K=0;K<p.length;K++){const ge=p[K];if("*"!==ge){if(null===w?$n(u,ge,!0):ao(w,ge))return K}else C=K}return C}function S0(u){const p=ir()[Hs][sa];if(!p.projection){const w=p.projection=function cs(u,p){const C=[];for(let w=0;w<u;w++)C.push(p);return C}(u?u.length:1,null),K=w.slice();let ge=p.child;for(;null!==ge;){const Ue=u?tE(ge,u):0;null!==Ue&&(K[Ue]?K[Ue].projectionNext=ge:w[Ue]=ge,K[Ue]=ge),ge=ge.next}}}function y0(u,p=0,C){const w=ir(),K=wr(),ge=kd(K,Oi+u,16,null,C||null);null===ge.projection&&(ge.projection=p),ua(),(!w[as]||Ar())&&32&~ge.flags&&function nv(u,p,C){pm(p[Uo],0,p,C,Wg(u,C,p),dm(C.parent||p[sa],C,p))}(K,w,ge)}function OC(u,p,C){return zv(u,"",p,"",C),OC}function zv(u,p,C,w,K){const ge=ir(),Ue=gp(ge,p,C,w);return Ue!==Pa&&Pc(wr(),so(),ge,u,Ue,ge[Uo],K,!1),zv}function x0(u,p,C,w){!function Sb(u,p,C,w){const K=wr();if(K.firstCreatePass){const ge=ls();yb(K,new _b(p,C,w),ge.index),function rM(u,p){const C=u.contentQueries||(u.contentQueries=[]);p!==(C.length?C[C.length-1]:-1)&&C.push(u.queries.length-1,p)}(K,u),!(2&~C)&&(K.staticContentQueries=!0)}return nM(K,ir(),C)}(u,p,C,w)}function T0(u,p,C){!function bb(u,p,C){const w=wr();return w.firstCreatePass&&(yb(w,new _b(u,p,C),-1),!(2&~p)&&(w.staticViewQueries=!0)),nM(w,ir(),p)}(u,p,C)}function ye(u){const p=ir(),C=wr(),w=Jl();xl(w+1);const K=H_(C,w);if(u.dirty&&function k(u){return!(4&~u[No])}(p)===!(2&~K.metadata.flags)){if(null===K.matches)u.reset([]);else{const ge=Mb(p,w);u.reset(ge,vd),u.notifyOnChanges()}return!0}return!1}function ce(){return function V_(u,p){return u[al].queries[p].queryList}(ir(),Jl())}function $i(u){return h(function Wl(){return Qn.lFrame.contextLView}(),Oi+u)}function I1(u,p=""){const C=ir(),w=wr(),K=u+Oi,ge=w.firstCreatePass?kd(w,K,1,p,null):w.data[K],Ue=A1(w,C,ge,p,u);C[K]=Ue,ya()&&Hh(w,C,Ue,ge),ga(ge,!1)}let A1=(u,p,C,w,K)=>(bl(!0),function kh(u,p){return u.createText(p)}(p[Uo],w));function iE(u){return w0("",u,""),iE}function w0(u,p,C){const w=ir(),K=gp(w,u,p,C);return K!==Pa&&lu(w,hr(),K),w0}function rE(u,p,C,w,K){const ge=ir(),Ue=pp(ge,u,p,C,w,K);return Ue!==Pa&&lu(ge,hr(),Ue),rE}function oE(u,p,C){Eb(p)&&(p=p());const w=ir();return ec(w,pl(),p)&&Pc(wr(),so(),w,u,p,w[Uo],C,!1),oE}function B1(u,p){const C=Eb(u);return C&&u.set(p),C}function sE(u,p){const C=ir(),w=wr(),K=ls();return PC(w,C,C[Uo],K,u,p),sE}function aE(u,p,C,w,K){if(u=ke(u),Array.isArray(u))for(let ge=0;ge<u.length;ge++)aE(u[ge],p,C,w,K);else{const ge=wr(),Ue=ir(),dt=ls();let Tt=Ri(u)?u:ke(u.provide);const vn=tr(u),Fn=1048575&dt.providerIndexes,ai=dt.directiveStart,Hi=dt.providerIndexes>>20;if(Ri(u)||!u.multi){const er=new ed(vn,K,Ru),gr=cE(Tt,p,K?Fn:Fn+Hi,ai);-1===gr?(Od(nd(dt,Ue),ge,Tt),lE(ge,u,p.length),p.push(Tt),dt.directiveStart++,dt.directiveEnd++,K&&(dt.providerIndexes+=1048576),C.push(er),Ue.push(er)):(C[gr]=er,Ue[gr]=er)}else{const er=cE(Tt,p,Fn+Hi,ai),gr=cE(Tt,p,Fn,Fn+Hi),mo=gr>=0&&C[gr];if(K&&!mo||!K&&!(er>=0&&C[er])){Od(nd(dt,Ue),ge,Tt);const xo=function LT(u,p,C,w,K){const ge=new ed(u,C,Ru);return ge.multi=[],ge.index=p,ge.componentProviders=0,G1(ge,K,w&&!C),ge}(K?DT:RT,C.length,K,w,vn);!K&&mo&&(C[gr].providerFactory=xo),lE(ge,u,p.length,0),p.push(Tt),dt.directiveStart++,dt.directiveEnd++,K&&(dt.providerIndexes+=1048576),C.push(xo),Ue.push(xo)}else lE(ge,u,er>-1?er:gr,G1(C[K?gr:er],vn,!K&&w));!K&&w&&mo&&C[gr].componentProviders++}}}function lE(u,p,C,w){const K=Ri(p),ge=function nr(u){return!!u.useClass}(p);if(K||ge){const Tt=(ge?ke(p.useClass):p).prototype.ngOnDestroy;if(Tt){const vn=u.destroyHooks||(u.destroyHooks=[]);if(!K&&p.multi){const Fn=vn.indexOf(C);-1===Fn?vn.push(C,[w,Tt]):vn[Fn+1].push(w,Tt)}else vn.push(C,Tt)}}}function G1(u,p,C){return C&&u.componentProviders++,u.multi.push(p)-1}function cE(u,p,C,w){for(let K=C;K<w;K++)if(p[K]===u)return K;return-1}function RT(u,p,C,w){return dE(this.multi,[])}function DT(u,p,C,w){const K=this.multi;let ge;if(this.providerFactory){const Ue=this.providerFactory.componentProviders,dt=Cc(C,C[Gr],this.providerFactory.index,w);ge=dt.slice(0,Ue),dE(K,ge);for(let Tt=Ue;Tt<dt.length;Tt++)ge.push(dt[Tt])}else ge=[],dE(K,ge);return ge}function dE(u,p){for(let C=0;C<u.length;C++)p.push((0,u[C])());return p}function V1(u,p=[]){return C=>{C.providersResolver=(w,K)=>function AT(u,p,C){const w=wr();if(w.firstCreatePass){const K=Cl(u);aE(C,w.data,w.blueprint,K,!0),aE(p,w.data,w.blueprint,K,!1)}}(w,K?K(u):u,p)}}let NT=(()=>{class u{constructor(C){this._injector=C,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(C){if(!C.standalone)return null;if(!this.cachedInjectors.has(C)){const w=mr(0,C.type),K=w.length>0?Y_([w],this._injector,`Standalone[${C.type.name}]`):null;this.cachedInjectors.set(C,K)}return this.cachedInjectors.get(C)}ngOnDestroy(){try{for(const C of this.cachedInjectors.values())null!==C&&C.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=pn({token:u,providedIn:"environment",factory:()=>new u(Go(Di))})}}return u})();function H1(u){cu("NgStandalone"),u.getStandaloneInjector=p=>p.get(NT).getOrCreateStandaloneInjector(u)}function j1(u,p,C){const w=u.\u0275cmp;w.directiveDefs=Wa(p,!1),w.pipeDefs=Wa(C,!0)}function z1(u,p,C){const w=qa()+u,K=ir();return K[w]===Pa?du(K,w,C?p.call(C):p()):function jm(u,p){return u[p]}(K,w)}function $1(u,p,C,w){return Z1(ir(),qa(),u,p,C,w)}function K1(u,p,C,w,K){return J1(ir(),qa(),u,p,C,w,K)}function Y1(u,p,C,w,K,ge){return function q1(u,p,C,w,K,ge,Ue,dt){const Tt=p+C;return function rp(u,p,C,w,K){const ge=Qh(u,p,C,w);return ec(u,p+2,K)||ge}(u,Tt,K,ge,Ue)?du(u,Tt+3,dt?w.call(dt,K,ge,Ue):w(K,ge,Ue)):TC(u,Tt+3)}(ir(),qa(),u,p,C,w,K,ge)}function X1(u,p,C,w,K,ge,Ue){return function ex(u,p,C,w,K,ge,Ue,dt,Tt){const vn=p+C;return function bd(u,p,C,w,K,ge){const Ue=Qh(u,p,C,w);return Qh(u,p+2,K,ge)||Ue}(u,vn,K,ge,Ue,dt)?du(u,vn+4,Tt?w.call(Tt,K,ge,Ue,dt):w(K,ge,Ue,dt)):TC(u,vn+4)}(ir(),qa(),u,p,C,w,K,ge,Ue)}function Q1(u,p,C,w){return function tx(u,p,C,w,K,ge){let Ue=p+C,dt=!1;for(let Tt=0;Tt<K.length;Tt++)ec(u,Ue++,K[Tt])&&(dt=!0);return dt?du(u,Ue,w.apply(ge,K)):TC(u,Ue)}(ir(),qa(),u,p,C,w)}function TC(u,p){const C=u[p];return C===Pa?void 0:C}function Z1(u,p,C,w,K,ge){const Ue=p+C;return ec(u,Ue,K)?du(u,Ue+1,ge?w.call(ge,K):w(K)):TC(u,Ue+1)}function J1(u,p,C,w,K,ge,Ue){const dt=p+C;return Qh(u,dt,K,ge)?du(u,dt+2,Ue?w.call(Ue,K,ge):w(K,ge)):TC(u,dt+2)}function nx(u,p){const C=wr();let w;const K=u+Oi;C.firstCreatePass?(w=function VT(u,p){if(p)for(let C=p.length-1;C>=0;C--){const w=p[C];if(u===w.name)return w}}(p,C.pipeRegistry),C.data[K]=w,w.onDestroy&&(C.destroyHooks??=[]).push(K,w.onDestroy)):w=C.data[K];const ge=w.factory||(w.factory=js(w.type)),dt=dr(Ru);try{const Tt=Xc(!1),vn=ge();return Xc(Tt),function ni(u,p,C,w){C>=u.data.length&&(u.data[C]=null,u.blueprint[C]=null),p[C]=w}(C,ir(),K,vn),vn}finally{dr(dt)}}function ix(u,p,C){const w=u+Oi,K=ir(),ge=h(K,w);return wC(K,w)?Z1(K,qa(),p,ge.transform,C,ge):ge.transform(C)}function rx(u,p,C,w){const K=u+Oi,ge=ir(),Ue=h(ge,K);return wC(ge,K)?J1(ge,qa(),p,Ue.transform,C,w,Ue):Ue.transform(C,w)}function wC(u,p){return u[Gr].data[p].pure}function ox(u,p){return _v(u,p)}class Sx{constructor(p){this.full=p;const C=p.split(".");this.major=C[0],this.minor=C[1],this.patch=C.slice(2).join(".")}}let yx=(()=>{class u{log(C){console.log(C)}warn(C){console.warn(C)}static{this.\u0275fac=function(w){return new(w||u)}}static{this.\u0275prov=pn({token:u,factory:u.\u0275fac,providedIn:"platform"})}}return u})();const xx=new ln(""),Tx=new ln("");let fE,Fw=(()=>{class u{constructor(C,w,K){this._ngZone=C,this.registry=w,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,fE||(function Uw(u){fE=u}(K),K.addToWindow(w)),this._watchAngularEvents(),C.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{sc.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let C=this._callbacks.pop();clearTimeout(C.timeoutId),C.doneCb()}});else{let C=this.getPendingTasks();this._callbacks=this._callbacks.filter(w=>!w.updateCb||!w.updateCb(C)||(clearTimeout(w.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(C=>({source:C.source,creationLocation:C.creationLocation,data:C.data})):[]}addCallback(C,w,K){let ge=-1;w&&w>0&&(ge=setTimeout(()=>{this._callbacks=this._callbacks.filter(Ue=>Ue.timeoutId!==ge),C()},w)),this._callbacks.push({doneCb:C,timeoutId:ge,updateCb:K})}whenStable(C,w,K){if(K&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(C,w,K),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(C){this.registry.registerApplication(C,this)}unregisterApplication(C){this.registry.unregisterApplication(C)}findProviders(C,w,K){return[]}static{this.\u0275fac=function(w){return new(w||u)(Go(sc),Go(wx),Go(Tx))}}static{this.\u0275prov=pn({token:u,factory:u.\u0275fac})}}return u})(),wx=(()=>{class u{constructor(){this._applications=new Map}registerApplication(C,w){this._applications.set(C,w)}unregisterApplication(C){this._applications.delete(C)}unregisterAllApplications(){this._applications.clear()}getTestability(C){return this._applications.get(C)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(C,w=!0){return fE?.findTestabilityInTree(this,C,w)??null}static{this.\u0275fac=function(w){return new(w||u)}}static{this.\u0275prov=pn({token:u,factory:u.\u0275fac,providedIn:"platform"})}}return u})();function vE(u){return!!u&&"function"==typeof u.then}function Ix(u){return!!u&&"function"==typeof u.subscribe}const Ax=new ln("");let _E=(()=>{class u{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((C,w)=>{this.resolve=C,this.reject=w}),this.appInits=kr(Ax,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const C=[];for(const K of this.appInits){const ge=K();if(vE(ge))C.push(ge);else if(Ix(ge)){const Ue=new Promise((dt,Tt)=>{ge.subscribe({complete:dt,error:Tt})});C.push(Ue)}}const w=()=>{this.done=!0,this.resolve()};Promise.all(C).then(()=>{w()}).catch(K=>{this.reject(K)}),0===C.length&&w(),this.initialized=!0}static{this.\u0275fac=function(w){return new(w||u)}}static{this.\u0275prov=pn({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})();const CE=new ln("");function Lx(u,p){return Array.isArray(p)?p.reduce(Lx,u):{...u,...p}}let Ep=(()=>{class u{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=kr(Id),this.afterRenderEffectManager=kr(km),this.externalTestViews=new Set,this.beforeRender=new W.B7,this.afterTick=new W.B7,this.componentTypes=[],this.components=[],this.isStable=kr(ip).hasPendingTasks.pipe((0,Pe.T)(C=>!C)),this._injector=kr(Di)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(C,w){const K=C instanceof JC;if(!this._injector.get(_E).done)throw!K&&Ns(C),new Le(405,!1);let Ue;Ue=K?C:this._injector.get(Nm).resolveComponentFactory(C),this.componentTypes.push(Ue.componentType);const dt=function Bw(u){return u.isBoundToModule}(Ue)?void 0:this._injector.get(Xh),vn=Ue.create(hc.NULL,[],w||Ue.selector,dt),Fn=vn.location.nativeElement,ai=vn.injector.get(xx,null);return ai?.registerApplication(Fn),vn.onDestroy(()=>{this.detachView(vn.hostView),D0(this.components,vn),ai?.unregisterApplication(Fn)}),this._loadComponent(vn),vn}tick(){this._tick(!0)}_tick(C){if(this._runningTick)throw new Le(101,!1);const w=f(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(C)}catch(K){this.internalErrorHandler(K)}finally{this.afterTick.next(),this._runningTick=!1,f(w)}}detectChangesInAttachedViews(C){let w=0;const K=this.afterRenderEffectManager;for(;;){if(w===y_)throw new Le(103,!1);if(C){const ge=0===w;this.beforeRender.next(ge);for(let{_lView:Ue,notifyErrorHandler:dt}of this._views)Vw(Ue,ge,dt)}if(w++,K.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:ge})=>bE(ge))&&(K.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:ge})=>bE(ge))))break}}attachView(C){const w=C;this._views.push(w),w.attachToAppRef(this)}detachView(C){const w=C;D0(this._views,w),w.detachFromAppRef()}_loadComponent(C){this.attachView(C.hostView),this.tick(),this.components.push(C);const w=this._injector.get(CE,[]);[...this._bootstrapListeners,...w].forEach(K=>K(C))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(C=>C()),this._views.slice().forEach(C=>C.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(C){return this._destroyListeners.push(C),()=>D0(this._destroyListeners,C)}destroy(){if(this._destroyed)throw new Le(406,!1);const C=this._injector;C.destroy&&!C.destroyed&&C.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(w){return new(w||u)}}static{this.\u0275prov=pn({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})();function D0(u,p){const C=u.indexOf(p);C>-1&&u.splice(C,1)}function Vw(u,p,C){!p&&!bE(u)||function Hw(u,p,C){let w;C?(w=0,u[No]|=1024):w=64&u[No]?0:1,Em(u,p,w)}(u,C,p)}function bE(u){return $t(u)}class jw{constructor(p,C){this.ngModuleFactory=p,this.componentFactories=C}}let Ww=(()=>{class u{compileModuleSync(C){return new K_(C)}compileModuleAsync(C){return Promise.resolve(this.compileModuleSync(C))}compileModuleAndAllComponentsSync(C){const w=this.compileModuleSync(C),ge=Fc(Ps(C).declarations).reduce((Ue,dt)=>{const Tt=Ie(dt);return Tt&&Ue.push(new Bm(Tt)),Ue},[]);return new jw(w,ge)}compileModuleAndAllComponentsAsync(C){return Promise.resolve(this.compileModuleAndAllComponentsSync(C))}clearCache(){}clearCacheFor(C){}getModuleId(C){}static{this.\u0275fac=function(w){return new(w||u)}}static{this.\u0275prov=pn({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})(),Kw=(()=>{class u{constructor(){this.zone=kr(sc),this.applicationRef=kr(Ep)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(w){return new(w||u)}}static{this.\u0275prov=pn({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})();function Yw(){const u=kr(sc),p=kr(Rc);return C=>u.runOutsideAngular(()=>p.handleError(C))}let Qw=(()=>{class u{constructor(){this.subscription=new $.y,this.initialized=!1,this.zone=kr(sc),this.pendingTasks=kr(ip)}initialize(){if(this.initialized)return;this.initialized=!0;let C=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(C=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{sc.assertNotInAngularZone(),queueMicrotask(()=>{null!==C&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(C),C=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{sc.assertInAngularZone(),C??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(w){return new(w||u)}}static{this.\u0275prov=pn({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})();const N0=new ln("",{providedIn:"root",factory:()=>kr(N0,Bn.Optional|Bn.SkipSelf)||function Zw(){return typeof $localize<"u"&&$localize.locale||Pp}()}),Jw=new ln("",{providedIn:"root",factory:()=>"USD"}),SE=new ln("");let Ux=(()=>{class u{constructor(C){this._injector=C,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(C,w){const K=function Iy(u="zone.js",p){return"noop"===u?new sb:"zone.js"===u?new sc(p):u}(w?.ngZone,function Fx(u){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:u?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:u?.runCoalescing??!1}}({eventCoalescing:w?.ngZoneEventCoalescing,runCoalescing:w?.ngZoneRunCoalescing}));return K.run(()=>{const ge=function TM(u,p,C){return new $_(u,p,C)}(C.moduleType,this.injector,function kx(u){return[{provide:sc,useFactory:u},{provide:Bs,multi:!0,useFactory:()=>{const p=kr(Kw,{optional:!0});return()=>p.initialize()}},{provide:Bs,multi:!0,useFactory:()=>{const p=kr(Qw);return()=>{p.initialize()}}},{provide:Id,useFactory:Yw}]}(()=>K)),Ue=ge.injector.get(Rc,null);return K.runOutsideAngular(()=>{const dt=K.onError.subscribe({next:Tt=>{Ue.handleError(Tt)}});ge.onDestroy(()=>{D0(this._modules,ge),dt.unsubscribe()})}),function Dx(u,p,C){try{const w=C();return vE(w)?w.catch(K=>{throw p.runOutsideAngular(()=>u.handleError(K)),K}):w}catch(w){throw p.runOutsideAngular(()=>u.handleError(w)),w}}(Ue,K,()=>{const dt=ge.injector.get(_E);return dt.runInitializers(),dt.donePromise.then(()=>(function $S(u){"string"==typeof u&&(zS=u.toLowerCase().replace(/_/g,"-"))}(ge.injector.get(N0,Pp)||Pp),this._moduleDoBootstrap(ge),ge))})})}bootstrapModule(C,w=[]){const K=Lx({},w);return function $w(u,p,C){const w=new K_(C);return Promise.resolve(w)}(0,0,C).then(ge=>this.bootstrapModuleFactory(ge,K))}_moduleDoBootstrap(C){const w=C.injector.get(Ep);if(C._bootstrapComponents.length>0)C._bootstrapComponents.forEach(K=>w.bootstrap(K));else{if(!C.instance.ngDoBootstrap)throw new Le(-403,!1);C.instance.ngDoBootstrap(w)}this._modules.push(C)}onDestroy(C){this._destroyListeners.push(C)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Le(404,!1);this._modules.slice().forEach(w=>w.destroy()),this._destroyListeners.forEach(w=>w());const C=this._injector.get(SE,null);C&&(C.forEach(w=>w()),C.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(w){return new(w||u)(Go(hc))}}static{this.\u0275prov=pn({token:u,factory:u.\u0275fac,providedIn:"platform"})}}return u})(),xp=null;const Bx=new ln("");function Gx(u,p,C=[]){const w=`Platform: ${p}`,K=new ln(w);return(ge=[])=>{let Ue=yE();if(!Ue||Ue.injector.get(Bx,!1)){const dt=[...C,...ge,{provide:K,useValue:!0}];u?u(dt):function eI(u){if(xp&&!xp.get(Bx,!1))throw new Le(400,!1);(function Rx(){!function se(u){ve=u}(()=>{throw new Le(600,!1)})})(),xp=u;const p=u.get(Ux);(function Hx(u){u.get(Lp,null)?.forEach(C=>C())})(u)}(function Vx(u=[],p){return hc.create({name:p,providers:[{provide:_r,useValue:"platform"},{provide:SE,useValue:new Set([()=>xp=null])},...u]})}(dt,w))}return function tI(u){const p=yE();if(!p)throw new Le(401,!1);return p}()}}function yE(){return xp?.get(Ux)??null}function iI(){return!1}function rI(){}let Wx=(()=>{class u{static{this.__NG_ELEMENT_ID__=oI}}return u})();function oI(u){return function sI(u,p,C){if(Ka(u)&&!C){const w=b(u.index,p);return new wm(w,w)}return 47&u.type?new wm(p[Hs],p):null}(ls(),ir(),!(16&~u))}class Yx{constructor(){}supports(p){return X_(p)}create(p){return new uI(p)}}const dI=(u,p)=>p;class uI{constructor(p){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=p||dI}forEachItem(p){let C;for(C=this._itHead;null!==C;C=C._next)p(C)}forEachOperation(p){let C=this._itHead,w=this._removalsHead,K=0,ge=null;for(;C||w;){const Ue=!w||C&&C.currentIndex<Qx(w,K,ge)?C:w,dt=Qx(Ue,K,ge),Tt=Ue.currentIndex;if(Ue===w)K--,w=w._nextRemoved;else if(C=C._next,null==Ue.previousIndex)K++;else{ge||(ge=[]);const vn=dt-K,Fn=Tt-K;if(vn!=Fn){for(let Hi=0;Hi<vn;Hi++){const er=Hi<ge.length?ge[Hi]:ge[Hi]=0,gr=er+Hi;Fn<=gr&&gr<vn&&(ge[Hi]=er+1)}ge[Ue.previousIndex]=Fn-vn}}dt!==Tt&&p(Ue,dt,Tt)}}forEachPreviousItem(p){let C;for(C=this._previousItHead;null!==C;C=C._nextPrevious)p(C)}forEachAddedItem(p){let C;for(C=this._additionsHead;null!==C;C=C._nextAdded)p(C)}forEachMovedItem(p){let C;for(C=this._movesHead;null!==C;C=C._nextMoved)p(C)}forEachRemovedItem(p){let C;for(C=this._removalsHead;null!==C;C=C._nextRemoved)p(C)}forEachIdentityChange(p){let C;for(C=this._identityChangesHead;null!==C;C=C._nextIdentityChange)p(C)}diff(p){if(null==p&&(p=[]),!X_(p))throw new Le(900,!1);return this.check(p)?this:null}onDestroy(){}check(p){this._reset();let K,ge,Ue,C=this._itHead,w=!1;if(Array.isArray(p)){this.length=p.length;for(let dt=0;dt<this.length;dt++)ge=p[dt],Ue=this._trackByFn(dt,ge),null!==C&&Object.is(C.trackById,Ue)?(w&&(C=this._verifyReinsertion(C,ge,Ue,dt)),Object.is(C.item,ge)||this._addIdentityChange(C,ge)):(C=this._mismatch(C,ge,Ue,dt),w=!0),C=C._next}else K=0,function $c(u,p){if(Array.isArray(u))for(let C=0;C<u.length;C++)p(u[C]);else{const C=u[Symbol.iterator]();let w;for(;!(w=C.next()).done;)p(w.value)}}(p,dt=>{Ue=this._trackByFn(K,dt),null!==C&&Object.is(C.trackById,Ue)?(w&&(C=this._verifyReinsertion(C,dt,Ue,K)),Object.is(C.item,dt)||this._addIdentityChange(C,dt)):(C=this._mismatch(C,dt,Ue,K),w=!0),C=C._next,K++}),this.length=K;return this._truncate(C),this.collection=p,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let p;for(p=this._previousItHead=this._itHead;null!==p;p=p._next)p._nextPrevious=p._next;for(p=this._additionsHead;null!==p;p=p._nextAdded)p.previousIndex=p.currentIndex;for(this._additionsHead=this._additionsTail=null,p=this._movesHead;null!==p;p=p._nextMoved)p.previousIndex=p.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(p,C,w,K){let ge;return null===p?ge=this._itTail:(ge=p._prev,this._remove(p)),null!==(p=null===this._unlinkedRecords?null:this._unlinkedRecords.get(w,null))?(Object.is(p.item,C)||this._addIdentityChange(p,C),this._reinsertAfter(p,ge,K)):null!==(p=null===this._linkedRecords?null:this._linkedRecords.get(w,K))?(Object.is(p.item,C)||this._addIdentityChange(p,C),this._moveAfter(p,ge,K)):p=this._addAfter(new hI(C,w),ge,K),p}_verifyReinsertion(p,C,w,K){let ge=null===this._unlinkedRecords?null:this._unlinkedRecords.get(w,null);return null!==ge?p=this._reinsertAfter(ge,p._prev,K):p.currentIndex!=K&&(p.currentIndex=K,this._addToMoves(p,K)),p}_truncate(p){for(;null!==p;){const C=p._next;this._addToRemovals(this._unlink(p)),p=C}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(p,C,w){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(p);const K=p._prevRemoved,ge=p._nextRemoved;return null===K?this._removalsHead=ge:K._nextRemoved=ge,null===ge?this._removalsTail=K:ge._prevRemoved=K,this._insertAfter(p,C,w),this._addToMoves(p,w),p}_moveAfter(p,C,w){return this._unlink(p),this._insertAfter(p,C,w),this._addToMoves(p,w),p}_addAfter(p,C,w){return this._insertAfter(p,C,w),this._additionsTail=null===this._additionsTail?this._additionsHead=p:this._additionsTail._nextAdded=p,p}_insertAfter(p,C,w){const K=null===C?this._itHead:C._next;return p._next=K,p._prev=C,null===K?this._itTail=p:K._prev=p,null===C?this._itHead=p:C._next=p,null===this._linkedRecords&&(this._linkedRecords=new Xx),this._linkedRecords.put(p),p.currentIndex=w,p}_remove(p){return this._addToRemovals(this._unlink(p))}_unlink(p){null!==this._linkedRecords&&this._linkedRecords.remove(p);const C=p._prev,w=p._next;return null===C?this._itHead=w:C._next=w,null===w?this._itTail=C:w._prev=C,p}_addToMoves(p,C){return p.previousIndex===C||(this._movesTail=null===this._movesTail?this._movesHead=p:this._movesTail._nextMoved=p),p}_addToRemovals(p){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Xx),this._unlinkedRecords.put(p),p.currentIndex=null,p._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=p,p._prevRemoved=null):(p._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=p),p}_addIdentityChange(p,C){return p.item=C,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=p:this._identityChangesTail._nextIdentityChange=p,p}}class hI{constructor(p,C){this.item=p,this.trackById=C,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class gI{constructor(){this._head=null,this._tail=null}add(p){null===this._head?(this._head=this._tail=p,p._nextDup=null,p._prevDup=null):(this._tail._nextDup=p,p._prevDup=this._tail,p._nextDup=null,this._tail=p)}get(p,C){let w;for(w=this._head;null!==w;w=w._nextDup)if((null===C||C<=w.currentIndex)&&Object.is(w.trackById,p))return w;return null}remove(p){const C=p._prevDup,w=p._nextDup;return null===C?this._head=w:C._nextDup=w,null===w?this._tail=C:w._prevDup=C,null===this._head}}class Xx{constructor(){this.map=new Map}put(p){const C=p.trackById;let w=this.map.get(C);w||(w=new gI,this.map.set(C,w)),w.add(p)}get(p,C){const K=this.map.get(p);return K?K.get(p,C):null}remove(p){const C=p.trackById;return this.map.get(C).remove(p)&&this.map.delete(C),p}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Qx(u,p,C){const w=u.previousIndex;if(null===w)return w;let K=0;return C&&w<C.length&&(K=C[w]),w+p+K}class Zx{constructor(){}supports(p){return p instanceof Map||Q_(p)}create(){return new pI}}class pI{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(p){let C;for(C=this._mapHead;null!==C;C=C._next)p(C)}forEachPreviousItem(p){let C;for(C=this._previousMapHead;null!==C;C=C._nextPrevious)p(C)}forEachChangedItem(p){let C;for(C=this._changesHead;null!==C;C=C._nextChanged)p(C)}forEachAddedItem(p){let C;for(C=this._additionsHead;null!==C;C=C._nextAdded)p(C)}forEachRemovedItem(p){let C;for(C=this._removalsHead;null!==C;C=C._nextRemoved)p(C)}diff(p){if(p){if(!(p instanceof Map||Q_(p)))throw new Le(900,!1)}else p=new Map;return this.check(p)?this:null}onDestroy(){}check(p){this._reset();let C=this._mapHead;if(this._appendAfter=null,this._forEach(p,(w,K)=>{if(C&&C.key===K)this._maybeAddToChanges(C,w),this._appendAfter=C,C=C._next;else{const ge=this._getOrCreateRecordForKey(K,w);C=this._insertBeforeOrAppend(C,ge)}}),C){C._prev&&(C._prev._next=null),this._removalsHead=C;for(let w=C;null!==w;w=w._nextRemoved)w===this._mapHead&&(this._mapHead=null),this._records.delete(w.key),w._nextRemoved=w._next,w.previousValue=w.currentValue,w.currentValue=null,w._prev=null,w._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(p,C){if(p){const w=p._prev;return C._next=p,C._prev=w,p._prev=C,w&&(w._next=C),p===this._mapHead&&(this._mapHead=C),this._appendAfter=p,p}return this._appendAfter?(this._appendAfter._next=C,C._prev=this._appendAfter):this._mapHead=C,this._appendAfter=C,null}_getOrCreateRecordForKey(p,C){if(this._records.has(p)){const K=this._records.get(p);this._maybeAddToChanges(K,C);const ge=K._prev,Ue=K._next;return ge&&(ge._next=Ue),Ue&&(Ue._prev=ge),K._next=null,K._prev=null,K}const w=new mI(p);return this._records.set(p,w),w.currentValue=C,this._addToAdditions(w),w}_reset(){if(this.isDirty){let p;for(this._previousMapHead=this._mapHead,p=this._previousMapHead;null!==p;p=p._next)p._nextPrevious=p._next;for(p=this._changesHead;null!==p;p=p._nextChanged)p.previousValue=p.currentValue;for(p=this._additionsHead;null!=p;p=p._nextAdded)p.previousValue=p.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(p,C){Object.is(C,p.currentValue)||(p.previousValue=p.currentValue,p.currentValue=C,this._addToChanges(p))}_addToAdditions(p){null===this._additionsHead?this._additionsHead=this._additionsTail=p:(this._additionsTail._nextAdded=p,this._additionsTail=p)}_addToChanges(p){null===this._changesHead?this._changesHead=this._changesTail=p:(this._changesTail._nextChanged=p,this._changesTail=p)}_forEach(p,C){p instanceof Map?p.forEach(C):Object.keys(p).forEach(w=>C(p[w],w))}}class mI{constructor(p){this.key=p,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Jx(){return new xE([new Yx])}let xE=(()=>{class u{static{this.\u0275prov=pn({token:u,providedIn:"root",factory:Jx})}constructor(C){this.factories=C}static create(C,w){if(null!=w){const K=w.factories.slice();C=C.concat(K)}return new u(C)}static extend(C){return{provide:u,useFactory:w=>u.create(C,w||Jx()),deps:[[u,new Zs,new Ms]]}}find(C){const w=this.factories.find(K=>K.supports(C));if(null!=w)return w;throw new Le(901,!1)}}return u})();function qx(){return new TE([new Zx])}let TE=(()=>{class u{static{this.\u0275prov=pn({token:u,providedIn:"root",factory:qx})}constructor(C){this.factories=C}static create(C,w){if(w){const K=w.factories.slice();C=C.concat(K)}return new u(C)}static extend(C){return{provide:u,useFactory:w=>u.create(C,w||qx()),deps:[[u,new Zs,new Ms]]}}find(C){const w=this.factories.find(K=>K.supports(C));if(w)return w;throw new Le(901,!1)}}return u})();const _I=Gx(null,"core",[]);let CI=(()=>{class u{constructor(C){}static{this.\u0275fac=function(w){return new(w||u)(Go(Ep))}}static{this.\u0275mod=Ha({type:u})}static{this.\u0275inj=pi({})}}return u})();function YI(u){return"boolean"==typeof u?u:null!=u&&"false"!==u}function QI(u){const p=f(null);try{return u()}finally{f(p)}}function nA(u){const p=Ie(u);if(!p)return null;const C=new Bm(p);return{get selector(){return C.selector},get type(){return C.componentType},get inputs(){return C.inputs},get outputs(){return C.outputs},get ngContentSelectors(){return C.ngContentSelectors},get isStandalone(){return p.standalone},get isSignal(){return p.signals}}}},73004:(Bt,z,s)=>{"use strict";function n(_){for(let i in _){let r=_[i]??"";switch(i){case"display":_.display="flex"===r?["-webkit-flex","flex"]:"inline-flex"===r?["-webkit-inline-flex","inline-flex"]:r;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":_["-webkit-"+i]=r;break;case"flex-direction":_["-webkit-flex-direction"]=r,_["flex-direction"]=r;break;case"order":_.order=_["-webkit-"+i]=isNaN(+r)?"0":r}}return _}s.d(z,{C5:()=>P,O5:()=>n,Uo:()=>d,Vc:()=>y,uG:()=>v});const l="inline",d=["row","column","row-reverse","column-reverse"];function v(_){let[i,r,a]=S(_);return function O(_,i=null,r=!1){return{display:r?"inline-flex":"flex","box-sizing":"border-box","flex-direction":_,"flex-wrap":i||null}}(i,r,a)}function S(_){_=_?.toLowerCase()??"";let[i,r,a]=_.split(" ");return d.find(c=>c===i)||(i=d[0]),r===l&&(r=a!==l?a:"",a=l),[i,f(r),!!a]}function y(_){let[i]=S(_);return i.indexOf("row")>-1}function f(_){if(_)switch(_.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":_="wrap-reverse";break;case"no":case"none":case"nowrap":_="nowrap";break;default:_="wrap"}return _}function P(_,...i){if(null==_)throw TypeError("Cannot convert undefined or null to object");for(let r of i)if(null!=r)for(let a in r)r.hasOwnProperty(a)&&(_[a]=r[a]);return _}},2833:(Bt,z,s)=>{"use strict";s.d(z,{Ce:()=>I,DJ:()=>Ze,EA:()=>D,PV:()=>M,SL:()=>U,Ui:()=>a,ZH:()=>N,cL:()=>Xt,hN:()=>lt,qH:()=>Et,r3:()=>T});var n=s(58527),l=s(61142),d=s(26513),v=s(17053),S=s(16229),y=s(80583),f=s(73004),O=s(8619),P=s(91384);const i={provide:n.iLQ,useFactory:function _(Ht,Je){return()=>{if((0,l.UE)(Je)){const tt=Array.from(Ht.querySelectorAll(`[class*=${r}]`)),rt=/\bflex-layout-.+?\b/g;tt.forEach(et=>{et.classList.contains(`${r}ssr`)&&et.parentNode?et.parentNode.removeChild(et):et.className.replace(rt,"")})}}},deps:[l.qQ,n.Agw],multi:!0},r="flex-layout-";let a=(()=>{class Ht{}return Ht.\u0275fac=function(tt){return new(tt||Ht)},Ht.\u0275mod=n.$C({type:Ht}),Ht.\u0275inj=n.G2t({providers:[i]}),Ht})();class c{constructor(Je=!1,tt="all",rt="",et="",St=0){this.matches=Je,this.mediaQuery=tt,this.mqAlias=rt,this.suffix=et,this.priority=St,this.property=""}clone(){return new c(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let m=(()=>{class Ht{constructor(){this.stylesheet=new Map}addStyleToElement(tt,rt,et){const St=this.stylesheet.get(tt);St?St.set(rt,et):this.stylesheet.set(tt,new Map([[rt,et]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(tt,rt){const et=this.stylesheet.get(tt);let St="";if(et){const Gt=et.get(rt);("number"==typeof Gt||"string"==typeof Gt)&&(St=Gt+"")}return St}}return Ht.\u0275fac=function(tt){return new(tt||Ht)},Ht.\u0275prov=n.jDH({token:Ht,factory:Ht.\u0275fac,providedIn:"root"}),Ht})();const M={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},D=new n.nKC("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>M}),I=new n.nKC("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),U=new n.nKC("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function V(Ht,Je){return Ht=Ht?.clone()??new c,Je&&(Ht.mqAlias=Je.alias,Ht.mediaQuery=Je.mediaQuery,Ht.suffix=Je.suffix,Ht.priority=Je.priority),Ht}class T{constructor(){this.shouldCache=!0}sideEffect(Je,tt,rt){}}let N=(()=>{class Ht{constructor(tt,rt,et,St){this._serverStylesheet=tt,this._serverModuleLoaded=rt,this._platformId=et,this.layoutConfig=St}applyStyleToElement(tt,rt,et=null){let St={};"string"==typeof rt&&(St[rt]=et,rt=St),St=this.layoutConfig.disableVendorPrefixes?rt:(0,f.O5)(rt),this._applyMultiValueStyleToElement(St,tt)}applyStyleToElements(tt,rt=[]){const et=this.layoutConfig.disableVendorPrefixes?tt:(0,f.O5)(tt);rt.forEach(St=>{this._applyMultiValueStyleToElement(et,St)})}getFlowDirection(tt){const rt="flex-direction";let et=this.lookupStyle(tt,rt);return[et||"row",this.lookupInlineStyle(tt,rt)||(0,l.Vy)(this._platformId)&&this._serverModuleLoaded?et:""]}hasWrap(tt){return"wrap"===this.lookupStyle(tt,"flex-wrap")}lookupAttributeValue(tt,rt){return tt.getAttribute(rt)??""}lookupInlineStyle(tt,rt){return(0,l.UE)(this._platformId)?tt.style.getPropertyValue(rt):function L(Ht,Je){return R(Ht)[Je]??""}(tt,rt)}lookupStyle(tt,rt,et=!1){let St="";return tt&&((St=this.lookupInlineStyle(tt,rt))||((0,l.UE)(this._platformId)?et||(St=getComputedStyle(tt).getPropertyValue(rt)):this._serverModuleLoaded&&(St=this._serverStylesheet.getStyleForElement(tt,rt)))),St?St.trim():""}_applyMultiValueStyleToElement(tt,rt){Object.keys(tt).sort().forEach(et=>{const St=tt[et],Gt=Array.isArray(St)?St:[St];Gt.sort();for(let yt of Gt)yt=yt?yt+"":"",(0,l.UE)(this._platformId)||!this._serverModuleLoaded?(0,l.UE)(this._platformId)?rt.style.setProperty(et,yt):E(rt,et,yt):this._serverStylesheet.addStyleToElement(rt,et,yt)})}}return Ht.\u0275fac=function(tt){return new(tt||Ht)(n.KVO(m),n.KVO(I),n.KVO(n.Agw),n.KVO(D))},Ht.\u0275prov=n.jDH({token:Ht,factory:Ht.\u0275fac,providedIn:"root"}),Ht})();function E(Ht,Je,tt){Je=Je.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const rt=R(Ht);rt[Je]=tt??"",function g(Ht,Je){let tt="";for(const rt in Je)Je[rt]&&(tt+=`${rt}:${Je[rt]};`);Ht.setAttribute("style",tt)}(Ht,rt)}function R(Ht){const Je={},tt=Ht.getAttribute("style");if(tt){const rt=tt.split(/;+/g);for(let et=0;et<rt.length;et++){const St=rt[et].trim();if(St.length>0){const Gt=St.indexOf(":");if(-1===Gt)throw new Error(`Invalid CSS style: ${St}`);Je[St.substr(0,Gt).trim()]=St.substr(Gt+1).trim()}}}return Je}function B(Ht,Je){return(Je&&Je.priority||0)-(Ht&&Ht.priority||0)}function X(Ht,Je){return(Ht.priority||0)-(Je.priority||0)}let H=(()=>{class Ht{constructor(tt,rt,et){this._zone=tt,this._platformId=rt,this._document=et,this.source=new d.t(new c(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const tt=[];return this.registry.forEach((rt,et)=>{rt.matches&&tt.push(et)}),tt}isActive(tt){return this.registry.get(tt)?.matches??this.registerQuery(tt).some(et=>et.matches)}observe(tt,rt=!1){if(tt&&tt.length){const et=this._observable$.pipe((0,O.p)(Gt=>!rt||tt.indexOf(Gt.mediaQuery)>-1)),St=new v.c(Gt=>{const yt=this.registerQuery(tt);if(yt.length){const Wt=yt.pop();yt.forEach(ke=>{Gt.next(ke)}),this.source.next(Wt)}Gt.complete()});return(0,S.h)(St,et)}return this._observable$}registerQuery(tt){const rt=Array.isArray(tt)?tt:[tt],et=[];return function re(Ht,Je){const tt=Ht.filter(rt=>!J[rt]);if(tt.length>0){const rt=tt.join(", ");try{const et=Je.createElement("style");et.setAttribute("type","text/css"),et.styleSheet||et.appendChild(Je.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${rt} {.fx-query-test{ }}\n`)),Je.head.appendChild(et),tt.forEach(St=>J[St]=et)}catch(et){console.error(et)}}}(rt,this._document),rt.forEach(St=>{const Gt=Wt=>{this._zone.run(()=>this.source.next(new c(Wt.matches,St)))};let yt=this.registry.get(St);yt||(yt=this.buildMQL(St),yt.addListener(Gt),this.pendingRemoveListenerFns.push(()=>yt.removeListener(Gt)),this.registry.set(St,yt)),yt.matches&&et.push(new c(!0,St))}),et}ngOnDestroy(){let tt;for(;tt=this.pendingRemoveListenerFns.pop();)tt()}buildMQL(tt){return function ve(Ht,Je){return Je&&window.matchMedia("all").addListener?window.matchMedia(Ht):function ie(Ht){const Je=new EventTarget;return Je.matches="all"===Ht||""===Ht,Je.media=Ht,Je.addListener=()=>{},Je.removeListener=()=>{},Je.addEventListener=()=>{},Je.dispatchEvent=()=>!1,Je.onchange=null,Je}(Ht)}(tt,(0,l.UE)(this._platformId))}}return Ht.\u0275fac=function(tt){return new(tt||Ht)(n.KVO(n.SKi),n.KVO(n.Agw),n.KVO(l.qQ))},Ht.\u0275prov=n.jDH({token:Ht,factory:Ht.\u0275fac,providedIn:"root"}),Ht})();const J={},ue=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],se="(orientation: portrait) and (max-width: 599.98px)",Z="(orientation: landscape) and (max-width: 959.98px)",Se="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Ce="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",Be="(orientation: portrait) and (min-width: 840px)",Xe="(orientation: landscape) and (min-width: 1280px)",He={HANDSET:`${se}, ${Z}`,TABLET:`${Se} , ${Ce}`,WEB:`${Be}, ${Xe} `,HANDSET_PORTRAIT:`${se}`,TABLET_PORTRAIT:`${Se} `,WEB_PORTRAIT:`${Be}`,HANDSET_LANDSCAPE:`${Z}`,TABLET_LANDSCAPE:`${Ce}`,WEB_LANDSCAPE:`${Xe}`},Me=[{alias:"handset",priority:2e3,mediaQuery:He.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:He.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:He.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:He.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:He.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:He.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:He.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:He.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:He.WEB_PORTRAIT,overlapping:!0}],Q=/(\.|-|_)/g;function A(Ht){let Je=Ht.length>0?Ht.charAt(0):"",tt=Ht.length>1?Ht.slice(1):"";return Je.toUpperCase()+tt}const W=new n.nKC("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const Ht=(0,n.WQX)(U),Je=(0,n.WQX)(D),tt=[].concat.apply([],(Ht||[]).map(et=>Array.isArray(et)?et:[et]));return function G(Ht,Je=[]){const tt={};return Ht.forEach(rt=>{tt[rt.alias]=rt}),Je.forEach(rt=>{tt[rt.alias]?(0,f.C5)(tt[rt.alias],rt):tt[rt.alias]=rt}),function ne(Ht){return Ht.forEach(Je=>{Je.suffix||(Je.suffix=function me(Ht){return Ht.replace(Q,"|").split("|").map(A).join("")}(Je.alias),Je.overlapping=!!Je.overlapping)}),Ht}(Object.keys(tt).map(rt=>tt[rt]))}((Je.disableDefaultBps?[]:ue).concat(Je.addOrientationBps?Me:[]),tt)}});let $=(()=>{class Ht{constructor(tt){this.findByMap=new Map,this.items=[...tt].sort(X)}findByAlias(tt){return tt?this.findWithPredicate(tt,rt=>rt.alias===tt):null}findByQuery(tt){return this.findWithPredicate(tt,rt=>rt.mediaQuery===tt)}get overlappings(){return this.items.filter(tt=>tt.overlapping)}get aliases(){return this.items.map(tt=>tt.alias)}get suffixes(){return this.items.map(tt=>tt?.suffix??"")}findWithPredicate(tt,rt){let et=this.findByMap.get(tt);return et||(et=this.items.find(rt)??null,this.findByMap.set(tt,et)),et??null}}return Ht.\u0275fac=function(tt){return new(tt||Ht)(n.KVO(W))},Ht.\u0275prov=n.jDH({token:Ht,factory:Ht.\u0275fac,providedIn:"root"}),Ht})();const le="print",Pe={alias:le,mediaQuery:le,priority:1e3};let Fe=(()=>{class Ht{constructor(tt,rt,et){this.breakpoints=tt,this.layoutConfig=rt,this._document=et,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new At,this.deactivations=[]}withPrintQuery(tt){return[...tt,le]}isPrintEvent(tt){return tt.mediaQuery.startsWith(le)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(tt=>this.breakpoints.findByAlias(tt)).filter(tt=>null!==tt)}getEventBreakpoints({mediaQuery:tt}){const rt=this.breakpoints.findByQuery(tt);return(rt?[...this.printBreakPoints,rt]:this.printBreakPoints).sort(B)}updateEvent(tt){let rt=this.breakpoints.findByQuery(tt.mediaQuery);return this.isPrintEvent(tt)&&(rt=this.getEventBreakpoints(tt)[0],tt.mediaQuery=rt?.mediaQuery??""),V(tt,rt)}registerBeforeAfterPrintHooks(tt){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const rt=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(tt,this.getEventBreakpoints(new c(!0,le))),tt.updateStyles())},et=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(tt),tt.updateStyles())};this._document.defaultView.addEventListener("beforeprint",rt),this._document.defaultView.addEventListener("afterprint",et),this.beforePrintEventListeners.push(rt),this.afterPrintEventListeners.push(et)}interceptEvents(tt){return rt=>{this.isPrintEvent(rt)?rt.matches&&!this.isPrinting?(this.startPrinting(tt,this.getEventBreakpoints(rt)),tt.updateStyles()):!rt.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(tt),tt.updateStyles()):this.collectActivations(tt,rt)}}blockPropagation(){return tt=>!(this.isPrinting||this.isPrintEvent(tt))}startPrinting(tt,rt){this.isPrinting=!0,this.formerActivations=tt.activatedBreakpoints,tt.activatedBreakpoints=this.queue.addPrintBreakpoints(rt)}stopPrinting(tt){tt.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(tt,rt){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!rt.matches){const et=this.breakpoints.findByQuery(rt.mediaQuery);if(et){const St=this.formerActivations&&this.formerActivations.includes(et),Gt=!this.formerActivations&&tt.activatedBreakpoints.includes(et);(St||Gt)&&(this.deactivations.push(et),this.deactivations.sort(B))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(tt=>this._document.defaultView.removeEventListener("beforeprint",tt)),this.afterPrintEventListeners.forEach(tt=>this._document.defaultView.removeEventListener("afterprint",tt)))}}return Ht.\u0275fac=function(tt){return new(tt||Ht)(n.KVO($),n.KVO(D),n.KVO(l.qQ))},Ht.\u0275prov=n.jDH({token:Ht,factory:Ht.\u0275fac,providedIn:"root"}),Ht})();class At{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(Je){return Je.push(Pe),Je.sort(B),Je.forEach(tt=>this.addBreakpoint(tt)),this.printBreakpoints}addBreakpoint(Je){Je&&void 0===this.printBreakpoints.find(rt=>rt.mediaQuery===Je.mediaQuery)&&(this.printBreakpoints=function Le(Ht){return Ht?.mediaQuery.startsWith(le)??!1}(Je)?[Je,...this.printBreakpoints]:[...this.printBreakpoints,Je])}clear(){this.printBreakpoints=[]}}let Et=(()=>{class Ht{constructor(tt,rt,et){this.matchMedia=tt,this.breakpoints=rt,this.hook=et,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new y.B7,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(tt){this._activatedBreakpoints=[...tt]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(tt){this._useFallbacks=tt}onMediaChange(tt){const rt=this.findByQuery(tt.mediaQuery);if(rt){tt=V(tt,rt);const et=this.activatedBreakpoints.indexOf(rt);tt.matches&&-1===et?(this._activatedBreakpoints.push(rt),this._activatedBreakpoints.sort(B),this.updateStyles()):!tt.matches&&-1!==et&&(this._activatedBreakpoints.splice(et,1),this._activatedBreakpoints.sort(B),this.updateStyles())}}init(tt,rt,et,St,Gt=[]){$e(this.updateMap,tt,rt,et),$e(this.clearMap,tt,rt,St),this.buildElementKeyMap(tt,rt),this.watchExtraTriggers(tt,rt,Gt)}getValue(tt,rt,et){const St=this.elementMap.get(tt);if(St){const Gt=void 0!==et?St.get(et):this.getActivatedValues(St,rt);if(Gt)return Gt.get(rt)}}hasValue(tt,rt){const et=this.elementMap.get(tt);if(et){const St=this.getActivatedValues(et,rt);if(St)return void 0!==St.get(rt)||!1}return!1}setValue(tt,rt,et,St){let Gt=this.elementMap.get(tt);if(Gt){const Wt=(Gt.get(St)??new Map).set(rt,et);Gt.set(St,Wt),this.elementMap.set(tt,Gt)}else Gt=(new Map).set(St,(new Map).set(rt,et)),this.elementMap.set(tt,Gt);const yt=this.getValue(tt,rt);void 0!==yt&&this.updateElement(tt,rt,yt)}trackValue(tt,rt){return this.subject.asObservable().pipe((0,O.p)(et=>et.element===tt&&et.key===rt))}updateStyles(){this.elementMap.forEach((tt,rt)=>{if(1===tt.size&&""===tt.keys().next().value)return;const et=new Set(this.elementKeyMap.get(rt));let St=this.getActivatedValues(tt);St&&St.forEach((Gt,yt)=>{this.updateElement(rt,yt,Gt),et.delete(yt)}),et.forEach(Gt=>{if(St=this.getActivatedValues(tt,Gt),St){const yt=St.get(Gt);this.updateElement(rt,Gt,yt)}else this.clearElement(rt,Gt)})})}clearElement(tt,rt){const et=this.clearMap.get(tt);if(et){const St=et.get(rt);St&&(St(),this.subject.next({element:tt,key:rt,value:""}))}}updateElement(tt,rt,et){const St=this.updateMap.get(tt);if(St){const Gt=St.get(rt);Gt&&(Gt(et),this.subject.next({element:tt,key:rt,value:et}))}}releaseElement(tt){const rt=this.watcherMap.get(tt);rt&&(rt.forEach(St=>St.unsubscribe()),this.watcherMap.delete(tt));const et=this.elementMap.get(tt);et&&(et.forEach((St,Gt)=>et.delete(Gt)),this.elementMap.delete(tt))}triggerUpdate(tt,rt){const et=this.elementMap.get(tt);if(et){const St=this.getActivatedValues(et,rt);St&&(rt?this.updateElement(tt,rt,St.get(rt)):St.forEach((Gt,yt)=>this.updateElement(tt,yt,Gt)))}}buildElementKeyMap(tt,rt){let et=this.elementKeyMap.get(tt);et||(et=new Set,this.elementKeyMap.set(tt,et)),et.add(rt)}watchExtraTriggers(tt,rt,et){if(et&&et.length){let St=this.watcherMap.get(tt);if(St||(St=new Map,this.watcherMap.set(tt,St)),!St.get(rt)){const yt=(0,S.h)(...et).subscribe(()=>{const Wt=this.getValue(tt,rt);this.updateElement(tt,rt,Wt)});St.set(rt,yt)}}}findByQuery(tt){return this.breakpoints.findByQuery(tt)}getActivatedValues(tt,rt){for(let St=0;St<this.activatedBreakpoints.length;St++){const yt=tt.get(this.activatedBreakpoints[St].alias);if(yt&&(void 0===rt||yt.has(rt)&&null!=yt.get(rt)))return yt}if(!this._useFallbacks)return;const et=tt.get("");return void 0===rt||et&&et.has(rt)?et:void 0}observeActivations(){const tt=this.breakpoints.items.map(rt=>rt.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(tt)).pipe((0,P.M)(this.hook.interceptEvents(this)),(0,O.p)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return Ht.\u0275fac=function(tt){return new(tt||Ht)(n.KVO(H),n.KVO($),n.KVO(Fe))},Ht.\u0275prov=n.jDH({token:Ht,factory:Ht.\u0275fac,providedIn:"root"}),Ht})();function $e(Ht,Je,tt,rt){if(void 0!==rt){const et=Ht.get(Je)??new Map;et.set(tt,rt),Ht.set(Je,et)}}let Ze=(()=>{class Ht{constructor(tt,rt,et,St){this.elementRef=tt,this.styleBuilder=rt,this.styler=et,this.marshal=St,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new y.B7,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(tt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,tt,this.marshal.activatedAlias)}ngOnChanges(tt){Object.keys(tt).forEach(rt=>{if(-1!==this.inputs.indexOf(rt)){const et=rt.split(".").slice(1).join(".");this.setValue(tt[rt].currentValue,et)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(tt=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),tt)}addStyles(tt,rt){const et=this.styleBuilder,St=et.shouldCache;let Gt=this.styleCache.get(tt);(!Gt||!St)&&(Gt=et.buildStyles(tt,rt),St&&this.styleCache.set(tt,Gt)),this.mru={...Gt},this.applyStyleToElement(Gt),et.sideEffect(tt,Gt,rt)}clearStyles(){Object.keys(this.mru).forEach(tt=>{this.mru[tt]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(tt,rt=!1){if(tt){const[et,St]=this.styler.getFlowDirection(tt);if(!St&&rt){const Gt=(0,f.uG)(et);this.styler.applyStyleToElements(Gt,[tt])}return et.trim()}return"row"}hasWrap(tt){return this.styler.hasWrap(tt)}applyStyleToElement(tt,rt,et=this.nativeElement){this.styler.applyStyleToElement(et,tt,rt)}setValue(tt,rt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,tt,rt)}updateWithValue(tt){this.currentValue!==tt&&(this.addStyles(tt),this.currentValue=tt)}}return Ht.\u0275fac=function(tt){return new(tt||Ht)(n.rXU(n.aKT),n.rXU(T),n.rXU(N),n.rXU(Et))},Ht.\u0275dir=n.FsC({type:Ht,features:[n.OA$]}),Ht})();function lt(Ht,Je="1",tt="1"){let rt=[Je,tt,Ht],et=Ht.indexOf("calc");if(et>0){rt[2]=ft(Ht.substring(et).trim());let St=Ht.substr(0,et).trim().split(" ");2==St.length&&(rt[0]=St[0],rt[1]=St[1])}else if(0==et)rt[2]=ft(Ht.trim());else{let St=Ht.split(" ");rt=3===St.length?St:[Je,tt,Ht]}return rt}function ft(Ht){return Ht.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}EventTarget;const ht="x";function Xt(Ht,Je){if(void 0===Je)return Ht;const tt=rt=>{const et=+rt.slice(0,-ht.length);return Ht.endsWith(ht)&&!isNaN(et)?`${et*Je.value}${Je.unit}`:Ht};return Ht.includes(" ")?Ht.split(" ").map(tt).join(" "):tt(Ht)}},28139:(Bt,z,s)=>{"use strict";s.d(z,{Cc:()=>Z,D9:()=>I,PW:()=>M,eI:()=>ve});var n=s(58527),l=s(2833),d=s(61142),v=s(6364),S=s(4208),y=s(74150);let a=(()=>{class Se extends l.DJ{constructor(Be,Xe,He,Me,Q,A,me){super(Be,null,Xe,He),this.ngClassInstance=me,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new d.YU(Me,Q,Be,A)),this.init(),this.setValue("","")}set klass(Be){this.ngClassInstance.klass=Be,this.setValue(Be,"")}updateWithValue(Be){this.ngClassInstance.ngClass=Be,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return Se.\u0275fac=function(Be){return new(Be||Se)(n.rXU(n.aKT),n.rXU(l.ZH),n.rXU(l.qH),n.rXU(n._q3),n.rXU(n.MKu),n.rXU(n.sFG),n.rXU(d.YU,10))},Se.\u0275dir=n.FsC({type:Se,inputs:{klass:[n.Mj6.None,"class","klass"]},features:[n.Vt3]}),Se})();const c=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let M=(()=>{class Se extends a{constructor(){super(...arguments),this.inputs=c}}return Se.\u0275fac=(()=>{let Ce;return function(Xe){return(Ce||(Ce=n.xGo(Se)))(Xe||Se)}})(),Se.\u0275dir=n.FsC({type:Se,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[n.Vt3]}),Se})(),D=(()=>{class Se extends l.r3{buildStyles(Be,Xe){return{display:"true"===Be?Xe.display||(Xe.isServer?"initial":""):"none"}}}return Se.\u0275fac=(()=>{let Ce;return function(Xe){return(Ce||(Ce=n.xGo(Se)))(Xe||Se)}})(),Se.\u0275prov=n.jDH({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})(),I=(()=>{class Se extends l.DJ{constructor(Be,Xe,He,Me,Q,A,me){super(Be,Xe,He,Me),this.layoutConfig=Q,this.platformId=A,this.serverModuleLoaded=me,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const Be=Array.from(this.nativeElement.children);for(let He=0;He<Be.length;He++)if(this.marshal.hasValue(Be[He],"flex")){this.hasFlexChild=!0;break}U.has(this.nativeElement)?this.display=U.get(this.nativeElement):(this.display=this.getDisplayStyle(),U.set(this.nativeElement,this.display)),this.init();const Xe=this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY,"");void 0===Xe||""===Xe?this.setValue(!0,""):this.triggerUpdate()}ngOnChanges(Be){Object.keys(Be).forEach(Xe=>{if(-1!==this.inputs.indexOf(Xe)){const He=Xe.split("."),Me=He.slice(1).join("."),Q=Be[Xe].currentValue;let A=""===Q||0!==Q&&(0,v.he)(Q);"fxHide"===He[0]&&(A=!A),this.setValue(A,Me)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(Be=>{this.marshal.trackValue(this.nativeElement,Be).pipe((0,S.Q)(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(Be=!0){if(""===Be)return;const Xe=(0,d.Vy)(this.platformId);this.addStyles(Be?"true":"false",{display:this.display,isServer:Xe}),Xe&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return Se.\u0275fac=function(Be){return new(Be||Se)(n.rXU(n.aKT),n.rXU(D),n.rXU(l.ZH),n.rXU(l.qH),n.rXU(l.EA),n.rXU(n.Agw),n.rXU(l.Ce))},Se.\u0275dir=n.FsC({type:Se,features:[n.Vt3,n.OA$]}),Se})();const U=new WeakMap;class L{constructor(Ce,Be,Xe=!0){this.key=Ce,this.value=Be,this.key=Xe?Ce.replace(/['"]/g,"").trim():Ce.trim(),this.value=Xe?Be.replace(/['"]/g,"").trim():Be.trim(),this.value=this.value.replace(/;/,"")}}function E(Se){let Ce=typeof Se;return"object"===Ce?Se.constructor===Array?"array":Se.constructor===Set?"set":"object":Ce}function X(Se){const[Ce,...Be]=Se.split(":");return new L(Ce,Be.join(":"))}function H(Se,Ce){return Ce.key&&(Se[Ce.key]=Ce.value),Se}let J=(()=>{class Se extends l.DJ{constructor(Be,Xe,He,Me,Q,A,me,ne,G){super(Be,null,Xe,He),this.sanitizer=Me,this.ngStyleInstance=me,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new d.B3(Be,Q,A)),this.init();const W=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(W),this.isServer=ne&&(0,d.Vy)(G)}updateWithValue(Be){const Xe=this.buildStyleMap(Be);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...Xe},this.isServer&&this.applyStyleToElement(Xe),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(Be){const Xe=He=>this.sanitizer.sanitize(n.WPN.STYLE,He)??"";if(Be)switch(E(Be)){case"string":return ue(function g(Se,Ce=";"){return String(Se).trim().split(Ce).map(Be=>Be.trim()).filter(Be=>""!==Be)}(Be),Xe);case"array":return ue(Be,Xe);default:return function B(Se,Ce){let Be=[];return"set"===E(Se)?Se.forEach(Xe=>Be.push(Xe)):Object.keys(Se).forEach(Xe=>{Be.push(`${Xe}:${Se[Xe]}`)}),function R(Se,Ce){return Se.map(X).filter(Xe=>!!Xe).map(Xe=>(Ce&&(Xe.value=Ce(Xe.value)),Xe)).reduce(H,{})}(Be,Ce)}(Be,Xe)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return Se.\u0275fac=function(Be){return new(Be||Se)(n.rXU(n.aKT),n.rXU(l.ZH),n.rXU(l.qH),n.rXU(y.up),n.rXU(n.MKu),n.rXU(n.sFG),n.rXU(d.B3,10),n.rXU(l.Ce),n.rXU(n.Agw))},Se.\u0275dir=n.FsC({type:Se,features:[n.Vt3]}),Se})();const re=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let ve=(()=>{class Se extends J{constructor(){super(...arguments),this.inputs=re}}return Se.\u0275fac=(()=>{let Ce;return function(Xe){return(Ce||(Ce=n.xGo(Se)))(Xe||Se)}})(),Se.\u0275dir=n.FsC({type:Se,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[n.Vt3]}),Se})();function ue(Se,Ce){return Se.map(X).filter(Xe=>!!Xe).map(Xe=>(Ce&&(Xe.value=Ce(Xe.value)),Xe)).reduce(H,{})}let Z=(()=>{class Se{}return Se.\u0275fac=function(Be){return new(Be||Se)},Se.\u0275mod=n.$C({type:Se}),Se.\u0275inj=n.G2t({imports:[l.Ui]}),Se})()},3457:(Bt,z,s)=>{"use strict";s.d(z,{BO:()=>I,DJ:()=>i,G2:()=>nt,R$:()=>Ze,UI:()=>ie,sA:()=>lt,w2:()=>Gt});var n=s(58527),l=s(51394),d=s(2833),v=s(73004),S=s(80583),y=s(4208);let f=(()=>{class yt extends d.r3{buildStyles(ke,{display:be}){const Ae=(0,v.uG)(ke);return{...Ae,display:"none"===be?be:Ae.display}}}return yt.\u0275fac=(()=>{let Wt;return function(be){return(Wt||(Wt=n.xGo(yt)))(be||yt)}})(),yt.\u0275prov=n.jDH({token:yt,factory:yt.\u0275fac,providedIn:"root"}),yt})();const O=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let _=(()=>{class yt extends d.DJ{constructor(ke,be,Ae,qe,Lt){super(ke,Ae,be,qe),this._config=Lt,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(ke){const Ae=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=r.get(Ae)??new Map,r.set(Ae,this.styleCache),this.currentValue!==ke&&(this.addStyles(ke,{display:Ae}),this.currentValue=ke)}}return yt.\u0275fac=function(ke){return new(ke||yt)(n.rXU(n.aKT),n.rXU(d.ZH),n.rXU(f),n.rXU(d.qH),n.rXU(d.EA))},yt.\u0275dir=n.FsC({type:yt,features:[n.Vt3]}),yt})(),i=(()=>{class yt extends _{constructor(){super(...arguments),this.inputs=O}}return yt.\u0275fac=(()=>{let Wt;return function(be){return(Wt||(Wt=n.xGo(yt)))(be||yt)}})(),yt.\u0275dir=n.FsC({type:yt,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[n.Vt3]}),yt})();const r=new Map,a={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let c=(()=>{class yt extends d.r3{constructor(ke,be){super(),this._styler=ke,this._config=be}buildStyles(ke,be){return ke.endsWith(L)?(ke=ke.slice(0,ke.indexOf(L)),function g(yt,Wt){const[ke,be]=yt.split(" "),qe=hn=>`-${hn}`;let Lt="0px",Zt=qe(be??ke),fn="0px";return"rtl"===Wt?fn=qe(ke):Lt=qe(ke),{margin:`0px ${Lt} ${Zt} ${fn}`}}(ke=(0,d.cL)(ke,this._config.multiplier),be.directionality)):{}}sideEffect(ke,be,Ae){const qe=Ae.items;if(ke.endsWith(L)){ke=ke.slice(0,ke.indexOf(L));const Lt=function E(yt,Wt){const[ke,be]=yt.split(" ");let qe="0px",Zt="0px";return"rtl"===Wt?Zt=ke:qe=ke,{padding:`0px ${qe} ${be??ke} ${Zt}`}}(ke=(0,d.cL)(ke,this._config.multiplier),Ae.directionality);this._styler.applyStyleToElements(Lt,Ae.items)}else{ke=(0,d.cL)(ke,this._config.multiplier),ke=this.addFallbackUnit(ke);const Lt=qe.pop(),Zt=function B(yt,Wt){const ke=R(Wt.directionality,Wt.layout),be={...a};return be[ke]=yt,be}(ke,Ae);this._styler.applyStyleToElements(Zt,qe),this._styler.applyStyleToElements(a,[Lt])}}addFallbackUnit(ke){return isNaN(+ke)?ke:`${ke}${this._config.defaultUnit}`}}return yt.\u0275fac=function(ke){return new(ke||yt)(n.KVO(d.ZH),n.KVO(d.EA))},yt.\u0275prov=n.jDH({token:yt,factory:yt.\u0275fac,providedIn:"root"}),yt})();const m=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let D=(()=>{class yt extends d.DJ{constructor(ke,be,Ae,qe,Lt,Zt){super(ke,Lt,qe,Zt),this.zone=be,this.directionality=Ae,this.styleUtils=qe,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new S.B7;const fn=[this.directionality.change,this.observerSubject.asObservable()];this.init(fn),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,y.Q)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const ke=this.nativeElement.children,be=[];for(let Ae=ke.length;Ae--;)be[Ae]=ke[Ae];return be}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(ke){const Ae=ke.value.split(" ");this.layout=Ae[0],v.Uo.find(qe=>qe===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(ke){const be=this.childrenNodes.filter(Ae=>1===Ae.nodeType&&this.willDisplay(Ae)).sort((Ae,qe)=>{const Lt=+this.styler.lookupStyle(Ae,"order"),Zt=+this.styler.lookupStyle(qe,"order");return isNaN(Lt)||isNaN(Zt)||Lt===Zt?0:Lt>Zt?1:-1});if(be.length>0){const Ae=this.directionality.value,qe=this.layout;"row"===qe&&"rtl"===Ae?this.styleCache=U:"row"===qe&&"rtl"!==Ae?this.styleCache=T:"column"===qe&&"rtl"===Ae?this.styleCache=V:"column"===qe&&"rtl"!==Ae&&(this.styleCache=N),this.addStyles(ke,{directionality:Ae,items:be,layout:qe})}}clearStyles(){const ke=Object.keys(this.mru).length>0,be=ke?"padding":R(this.directionality.value,this.layout);ke&&super.clearStyles(),this.styleUtils.applyStyleToElements({[be]:""},this.childrenNodes)}willDisplay(ke){const be=this.marshal.getValue(ke,"show-hide");return!0===be||void 0===be&&"none"!==this.styleUtils.lookupStyle(ke,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(ke=>{ke.some(Ae=>Ae.addedNodes&&Ae.addedNodes.length>0||Ae.removedNodes&&Ae.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return yt.\u0275fac=function(ke){return new(ke||yt)(n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(l.dS),n.rXU(d.ZH),n.rXU(c),n.rXU(d.qH))},yt.\u0275dir=n.FsC({type:yt,features:[n.Vt3]}),yt})(),I=(()=>{class yt extends D{constructor(){super(...arguments),this.inputs=m}}return yt.\u0275fac=(()=>{let Wt;return function(be){return(Wt||(Wt=n.xGo(yt)))(be||yt)}})(),yt.\u0275dir=n.FsC({type:yt,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[n.Vt3]}),yt})();const U=new Map,V=new Map,T=new Map,N=new Map,L=" grid";function R(yt,Wt){switch(Wt){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===yt?"margin-left":"margin-right";case"row-reverse":return"rtl"===yt?"margin-right":"margin-left"}}let X=(()=>{class yt extends d.r3{constructor(ke){super(),this.layoutConfig=ke}buildStyles(ke,be){let[Ae,qe,...Lt]=ke.split(" "),Zt=Lt.join(" ");const fn=be.direction.indexOf("column")>-1?"column":"row",hn=(0,v.Vc)(fn)?"max-width":"max-height",On=(0,v.Vc)(fn)?"min-width":"min-height",fi=String(Zt).indexOf("calc")>-1,Ji=fi||"auto"===Zt,Fi=String(Zt).indexOf("%")>-1&&!fi,bt=String(Zt).indexOf("px")>-1||String(Zt).indexOf("rem")>-1||String(Zt).indexOf("em")>-1||String(Zt).indexOf("vw")>-1||String(Zt).indexOf("vh")>-1;let bn=fi||bt;Ae="0"==Ae?0:Ae,qe="0"==qe?0:qe;const Pt=!Ae&&!qe;let jt={};const gn={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Zt||""){case"":Zt="row"===fn?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":Ae=0,Zt="auto";break;case"grow":Zt="100%";break;case"noshrink":qe=0,Zt="auto";break;case"auto":break;case"none":Ae=0,qe=0,Zt="auto";break;default:!bn&&!Fi&&!isNaN(Zt)&&(Zt+="%"),"0%"===Zt&&(bn=!0),"0px"===Zt&&(Zt="0%"),jt=(0,v.C5)(gn,fi?{"flex-grow":Ae,"flex-shrink":qe,"flex-basis":bn?Zt:"100%"}:{flex:`${Ae} ${qe} ${bn?Zt:"100%"}`})}return jt.flex||jt["flex-grow"]||(jt=(0,v.C5)(gn,fi?{"flex-grow":Ae,"flex-shrink":qe,"flex-basis":Zt}:{flex:`${Ae} ${qe} ${Zt}`})),"0%"!==Zt&&"0px"!==Zt&&"0.000000001px"!==Zt&&"auto"!==Zt&&(jt[On]=Pt||bn&&Ae?Zt:null,jt[hn]=Pt||!Ji&&qe?Zt:null),jt[On]||jt[hn]?be.hasWrap&&(jt[fi?"flex-basis":"flex"]=jt[hn]?fi?jt[hn]:`${Ae} ${qe} ${jt[hn]}`:fi?jt[On]:`${Ae} ${qe} ${jt[On]}`):jt=(0,v.C5)(gn,fi?{"flex-grow":Ae,"flex-shrink":qe,"flex-basis":Zt}:{flex:`${Ae} ${qe} ${Zt}`}),(0,v.C5)(jt,{"box-sizing":"border-box"})}}return yt.\u0275fac=function(ke){return new(ke||yt)(n.KVO(d.EA))},yt.\u0275prov=n.jDH({token:yt,factory:yt.\u0275fac,providedIn:"root"}),yt})();const H=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let re=(()=>{class yt extends d.DJ{constructor(ke,be,Ae,qe,Lt){super(ke,qe,be,Lt),this.layoutConfig=Ae,this.marshal=Lt,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(ke){this.flexShrink=ke||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(ke){this.flexGrow=ke||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,y.Q)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,y.Q)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(ke){const Ae=ke.value.split(" ");this.direction=Ae[0],this.wrap=void 0!==Ae[1]&&"wrap"===Ae[1],this.triggerUpdate()}updateWithValue(ke){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const Ae=this.direction,qe=Ae.startsWith("row"),Lt=this.wrap;qe&&Lt?this.styleCache=se:qe&&!Lt?this.styleCache=ve:!qe&&Lt?this.styleCache=Z:!qe&&!Lt&&(this.styleCache=ue);const Zt=String(ke).replace(";",""),fn=(0,d.hN)(Zt,this.flexGrow,this.flexShrink);this.addStyles(fn.join(" "),{direction:Ae,hasWrap:Lt})}triggerReflow(){const ke=this.activatedValue;if(void 0!==ke){const be=(0,d.hN)(ke+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,be.join(" "))}}}return yt.\u0275fac=function(ke){return new(ke||yt)(n.rXU(n.aKT),n.rXU(d.ZH),n.rXU(d.EA),n.rXU(X),n.rXU(d.qH))},yt.\u0275dir=n.FsC({type:yt,inputs:{shrink:[n.Mj6.None,"fxShrink","shrink"],grow:[n.Mj6.None,"fxGrow","grow"]},features:[n.Vt3]}),yt})(),ie=(()=>{class yt extends re{constructor(){super(...arguments),this.inputs=H}}return yt.\u0275fac=(()=>{let Wt;return function(be){return(Wt||(Wt=n.xGo(yt)))(be||yt)}})(),yt.\u0275dir=n.FsC({type:yt,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[n.Vt3]}),yt})();const ve=new Map,ue=new Map,se=new Map,Z=new Map;let Fe=(()=>{class yt extends d.r3{buildStyles(ke){const be={};switch(ke=ke||"stretch"){case"start":be["align-self"]="flex-start";break;case"end":be["align-self"]="flex-end";break;default:be["align-self"]=ke}return be}}return yt.\u0275fac=(()=>{let Wt;return function(be){return(Wt||(Wt=n.xGo(yt)))(be||yt)}})(),yt.\u0275prov=n.jDH({token:yt,factory:yt.\u0275fac,providedIn:"root"}),yt})();const At=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let Et=(()=>{class yt extends d.DJ{constructor(ke,be,Ae,qe){super(ke,Ae,be,qe),this.DIRECTIVE_KEY="flex-align",this.styleCache=$e,this.init()}}return yt.\u0275fac=function(ke){return new(ke||yt)(n.rXU(n.aKT),n.rXU(d.ZH),n.rXU(Fe),n.rXU(d.qH))},yt.\u0275dir=n.FsC({type:yt,features:[n.Vt3]}),yt})();const $e=new Map;let Ze=(()=>{class yt extends Et{constructor(){super(...arguments),this.inputs=At}}return yt.\u0275fac=(()=>{let Wt;return function(be){return(Wt||(Wt=n.xGo(yt)))(be||yt)}})(),yt.\u0275dir=n.FsC({type:yt,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[n.Vt3]}),yt})();const Qe={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let Ve=(()=>{class yt extends d.r3{buildStyles(ke){return Qe}}return yt.\u0275fac=(()=>{let Wt;return function(be){return(Wt||(Wt=n.xGo(yt)))(be||yt)}})(),yt.\u0275prov=n.jDH({token:yt,factory:yt.\u0275fac,providedIn:"root"}),yt})(),nt=(()=>{class yt extends d.DJ{constructor(ke,be,Ae,qe){super(ke,Ae,be,qe),this.styleCache=Ot,this.addStyles("")}}return yt.\u0275fac=function(ke){return new(ke||yt)(n.rXU(n.aKT),n.rXU(d.ZH),n.rXU(Ve),n.rXU(d.qH))},yt.\u0275dir=n.FsC({type:yt,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[n.Vt3]}),yt})();const Ot=new Map;let at=(()=>{class yt extends d.r3{buildStyles(ke,be){const Ae={},[qe,Lt]=ke.split(" ");switch(qe){case"center":Ae["justify-content"]="center";break;case"space-around":Ae["justify-content"]="space-around";break;case"space-between":Ae["justify-content"]="space-between";break;case"space-evenly":Ae["justify-content"]="space-evenly";break;case"end":case"flex-end":Ae["justify-content"]="flex-end";break;default:Ae["justify-content"]="flex-start"}switch(Lt){case"start":case"flex-start":Ae["align-items"]=Ae["align-content"]="flex-start";break;case"center":Ae["align-items"]=Ae["align-content"]="center";break;case"end":case"flex-end":Ae["align-items"]=Ae["align-content"]="flex-end";break;case"space-between":Ae["align-content"]="space-between",Ae["align-items"]="stretch";break;case"space-around":Ae["align-content"]="space-around",Ae["align-items"]="stretch";break;case"baseline":Ae["align-content"]="stretch",Ae["align-items"]="baseline";break;default:Ae["align-items"]=Ae["align-content"]="stretch"}return(0,v.C5)(Ae,{display:be.inline?"inline-flex":"flex","flex-direction":be.layout,"box-sizing":"border-box","max-width":"stretch"===Lt?(0,v.Vc)(be.layout)?null:"100%":null,"max-height":"stretch"===Lt&&(0,v.Vc)(be.layout)?"100%":null})}}return yt.\u0275fac=(()=>{let Wt;return function(be){return(Wt||(Wt=n.xGo(yt)))(be||yt)}})(),yt.\u0275prov=n.jDH({token:yt,factory:yt.\u0275fac,providedIn:"root"}),yt})();const It=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let xe=(()=>{class yt extends d.DJ{constructor(ke,be,Ae,qe){super(ke,Ae,be,qe),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,y.Q)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(ke){const be=this.layout||"row",Ae=this.inline;"row"===be&&Ae?this.styleCache=Je:"row"!==be||Ae?"row-reverse"===be&&Ae?this.styleCache=rt:"row-reverse"!==be||Ae?"column"===be&&Ae?this.styleCache=tt:"column"!==be||Ae?"column-reverse"===be&&Ae?this.styleCache=et:"column-reverse"===be&&!Ae&&(this.styleCache=Ht):this.styleCache=ht:this.styleCache=Xt:this.styleCache=ft,this.addStyles(ke,{layout:be,inline:Ae})}onLayoutChange(ke){const be=ke.value.split(" ");this.layout=be[0],this.inline=ke.value.includes("inline"),v.Uo.find(Ae=>Ae===this.layout)||(this.layout="row"),this.triggerUpdate()}}return yt.\u0275fac=function(ke){return new(ke||yt)(n.rXU(n.aKT),n.rXU(d.ZH),n.rXU(at),n.rXU(d.qH))},yt.\u0275dir=n.FsC({type:yt,features:[n.Vt3]}),yt})(),lt=(()=>{class yt extends xe{constructor(){super(...arguments),this.inputs=It}}return yt.\u0275fac=(()=>{let Wt;return function(be){return(Wt||(Wt=n.xGo(yt)))(be||yt)}})(),yt.\u0275dir=n.FsC({type:yt,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[n.Vt3]}),yt})();const ft=new Map,ht=new Map,Xt=new Map,Ht=new Map,Je=new Map,tt=new Map,rt=new Map,et=new Map;let Gt=(()=>{class yt{}return yt.\u0275fac=function(ke){return new(ke||yt)},yt.\u0275mod=n.$C({type:yt}),yt.\u0275inj=n.G2t({imports:[d.Ui,l.jI]}),yt})()},51006:(Bt,z,s)=>{"use strict";s.d(z,{YF:()=>pi});var n=s(58527),l=s(2833),d=s(28139),v=s(3457);s(6364);let Cn=(()=>{class cn{}return cn.\u0275fac=function(Jn){return new(Jn||cn)},cn.\u0275mod=n.$C({type:cn}),cn.\u0275inj=n.G2t({imports:[l.Ui]}),cn})();var pn=s(61142);let pi=(()=>{class cn{constructor(Jn,hi){(0,pn.Vy)(hi)&&!Jn&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(Jn,hi=[]){return{ngModule:cn,providers:Jn.serverLoaded?[{provide:l.EA,useValue:{...l.PV,...Jn}},{provide:l.SL,useValue:hi,multi:!0},{provide:l.Ce,useValue:!0}]:[{provide:l.EA,useValue:{...l.PV,...Jn}},{provide:l.SL,useValue:hi,multi:!0}]}}}return cn.\u0275fac=function(Jn){return new(Jn||cn)(n.KVO(l.Ce),n.KVO(n.Agw))},cn.\u0275mod=n.$C({type:cn}),cn.\u0275inj=n.G2t({imports:[v.w2,d.Cc,Cn,v.w2,d.Cc,Cn]}),cn})()},56106:(Bt,z,s)=>{"use strict";s.d(z,{BC:()=>At,YN:()=>$a,cV:()=>_o,cz:()=>D,j4:()=>rr,k0:()=>V,kq:()=>O,me:()=>c,vO:()=>$,vS:()=>go,xq:()=>fa});var n=s(58527),l=s(61142),d=s(19392),v=s(93181),S=s(83915);let y=(()=>{class Mn{constructor(tn,In){this._renderer=tn,this._elementRef=In,this.onChange=Ai=>{},this.onTouched=()=>{}}setProperty(tn,In){this._renderer.setProperty(this._elementRef.nativeElement,tn,In)}registerOnTouched(tn){this.onTouched=tn}registerOnChange(tn){this.onChange=tn}setDisabledState(tn){this.setProperty("disabled",tn)}static{this.\u0275fac=function(In){return new(In||Mn)(n.rXU(n.sFG),n.rXU(n.aKT))}}static{this.\u0275dir=n.FsC({type:Mn})}}return Mn})(),f=(()=>{class Mn extends y{static{this.\u0275fac=(()=>{let tn;return function(Ai){return(tn||(tn=n.xGo(Mn)))(Ai||Mn)}})()}static{this.\u0275dir=n.FsC({type:Mn,features:[n.Vt3]})}}return Mn})();const O=new n.nKC(""),i={provide:O,useExisting:(0,n.Rfq)(()=>c),multi:!0},a=new n.nKC("");let c=(()=>{class Mn extends y{constructor(tn,In,Ai){super(tn,In),this._compositionMode=Ai,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function r(){const Mn=(0,l.QT)()?(0,l.QT)().getUserAgent():"";return/android (\d+)/.test(Mn.toLowerCase())}())}writeValue(tn){this.setProperty("value",tn??"")}_handleInput(tn){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(tn)}_compositionStart(){this._composing=!0}_compositionEnd(tn){this._composing=!1,this._compositionMode&&this.onChange(tn)}static{this.\u0275fac=function(In){return new(In||Mn)(n.rXU(n.sFG),n.rXU(n.aKT),n.rXU(a,8))}}static{this.\u0275dir=n.FsC({type:Mn,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(In,Ai){1&In&&n.bIt("input",function(Rn){return Ai._handleInput(Rn.target.value)})("blur",function(){return Ai.onTouched()})("compositionstart",function(){return Ai._compositionStart()})("compositionend",function(Rn){return Ai._compositionEnd(Rn.target.value)})},features:[n.Jv_([i]),n.Vt3]})}}return Mn})();function m(Mn){return null==Mn||("string"==typeof Mn||Array.isArray(Mn))&&0===Mn.length}function M(Mn){return null!=Mn&&"number"==typeof Mn.length}const D=new n.nKC(""),I=new n.nKC(""),U=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class V{static min(Tn){return function T(Mn){return Tn=>{if(m(Tn.value)||m(Mn))return null;const tn=parseFloat(Tn.value);return!isNaN(tn)&&tn<Mn?{min:{min:Mn,actual:Tn.value}}:null}}(Tn)}static max(Tn){return function N(Mn){return Tn=>{if(m(Tn.value)||m(Mn))return null;const tn=parseFloat(Tn.value);return!isNaN(tn)&&tn>Mn?{max:{max:Mn,actual:Tn.value}}:null}}(Tn)}static required(Tn){return L(Tn)}static requiredTrue(Tn){return E(Tn)}static email(Tn){return function g(Mn){return m(Mn.value)||U.test(Mn.value)?null:{email:!0}}(Tn)}static minLength(Tn){return function R(Mn){return Tn=>m(Tn.value)||!M(Tn.value)?null:Tn.value.length<Mn?{minlength:{requiredLength:Mn,actualLength:Tn.value.length}}:null}(Tn)}static maxLength(Tn){return function B(Mn){return Tn=>M(Tn.value)&&Tn.value.length>Mn?{maxlength:{requiredLength:Mn,actualLength:Tn.value.length}}:null}(Tn)}static pattern(Tn){return function X(Mn){if(!Mn)return H;let Tn,tn;return"string"==typeof Mn?(tn="","^"!==Mn.charAt(0)&&(tn+="^"),tn+=Mn,"$"!==Mn.charAt(Mn.length-1)&&(tn+="$"),Tn=new RegExp(tn)):(tn=Mn.toString(),Tn=Mn),In=>{if(m(In.value))return null;const Ai=In.value;return Tn.test(Ai)?null:{pattern:{requiredPattern:tn,actualValue:Ai}}}}(Tn)}static nullValidator(Tn){return null}static compose(Tn){return Z(Tn)}static composeAsync(Tn){return Ce(Tn)}}function L(Mn){return m(Mn.value)?{required:!0}:null}function E(Mn){return!0===Mn.value?null:{required:!0}}function H(Mn){return null}function J(Mn){return null!=Mn}function re(Mn){return(0,n.jNT)(Mn)?(0,d.H)(Mn):Mn}function ie(Mn){let Tn={};return Mn.forEach(tn=>{Tn=null!=tn?{...Tn,...tn}:Tn}),0===Object.keys(Tn).length?null:Tn}function ve(Mn,Tn){return Tn.map(tn=>tn(Mn))}function se(Mn){return Mn.map(Tn=>function ue(Mn){return!Mn.validate}(Tn)?Tn:tn=>Tn.validate(tn))}function Z(Mn){if(!Mn)return null;const Tn=Mn.filter(J);return 0==Tn.length?null:function(tn){return ie(ve(tn,Tn))}}function Se(Mn){return null!=Mn?Z(se(Mn)):null}function Ce(Mn){if(!Mn)return null;const Tn=Mn.filter(J);return 0==Tn.length?null:function(tn){const In=ve(tn,Tn).map(re);return(0,v.p)(In).pipe((0,S.T)(ie))}}function Be(Mn){return null!=Mn?Ce(se(Mn)):null}function Xe(Mn,Tn){return null===Mn?[Tn]:Array.isArray(Mn)?[...Mn,Tn]:[Mn,Tn]}function He(Mn){return Mn._rawValidators}function Me(Mn){return Mn._rawAsyncValidators}function Q(Mn){return Mn?Array.isArray(Mn)?Mn:[Mn]:[]}function A(Mn,Tn){return Array.isArray(Mn)?Mn.includes(Tn):Mn===Tn}function me(Mn,Tn){const tn=Q(Tn);return Q(Mn).forEach(Ai=>{A(tn,Ai)||tn.push(Ai)}),tn}function ne(Mn,Tn){return Q(Tn).filter(tn=>!A(Mn,tn))}class G{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(Tn){this._rawValidators=Tn||[],this._composedValidatorFn=Se(this._rawValidators)}_setAsyncValidators(Tn){this._rawAsyncValidators=Tn||[],this._composedAsyncValidatorFn=Be(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Tn){this._onDestroyCallbacks.push(Tn)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Tn=>Tn()),this._onDestroyCallbacks=[]}reset(Tn=void 0){this.control&&this.control.reset(Tn)}hasError(Tn,tn){return!!this.control&&this.control.hasError(Tn,tn)}getError(Tn,tn){return this.control?this.control.getError(Tn,tn):null}}class W extends G{get formDirective(){return null}get path(){return null}}class $ extends G{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class le{constructor(Tn){this._cd=Tn}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let At=(()=>{class Mn extends le{constructor(tn){super(tn)}static{this.\u0275fac=function(In){return new(In||Mn)(n.rXU($,2))}}static{this.\u0275dir=n.FsC({type:Mn,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(In,Ai){2&In&&n.AVh("ng-untouched",Ai.isUntouched)("ng-touched",Ai.isTouched)("ng-pristine",Ai.isPristine)("ng-dirty",Ai.isDirty)("ng-valid",Ai.isValid)("ng-invalid",Ai.isInvalid)("ng-pending",Ai.isPending)},features:[n.Vt3]})}}return Mn})();const tt="VALID",rt="INVALID",et="PENDING",St="DISABLED";function Gt(Mn){return(be(Mn)?Mn.validators:Mn)||null}function Wt(Mn,Tn){return(be(Tn)?Tn.asyncValidators:Mn)||null}function be(Mn){return null!=Mn&&!Array.isArray(Mn)&&"object"==typeof Mn}class Lt{constructor(Tn,tn){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(Tn),this._assignAsyncValidators(tn)}get validator(){return this._composedValidatorFn}set validator(Tn){this._rawValidators=this._composedValidatorFn=Tn}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Tn){this._rawAsyncValidators=this._composedAsyncValidatorFn=Tn}get parent(){return this._parent}get valid(){return this.status===tt}get invalid(){return this.status===rt}get pending(){return this.status==et}get disabled(){return this.status===St}get enabled(){return this.status!==St}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Tn){this._assignValidators(Tn)}setAsyncValidators(Tn){this._assignAsyncValidators(Tn)}addValidators(Tn){this.setValidators(me(Tn,this._rawValidators))}addAsyncValidators(Tn){this.setAsyncValidators(me(Tn,this._rawAsyncValidators))}removeValidators(Tn){this.setValidators(ne(Tn,this._rawValidators))}removeAsyncValidators(Tn){this.setAsyncValidators(ne(Tn,this._rawAsyncValidators))}hasValidator(Tn){return A(this._rawValidators,Tn)}hasAsyncValidator(Tn){return A(this._rawAsyncValidators,Tn)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Tn={}){this.touched=!0,this._parent&&!Tn.onlySelf&&this._parent.markAsTouched(Tn)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Tn=>Tn.markAllAsTouched())}markAsUntouched(Tn={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(tn=>{tn.markAsUntouched({onlySelf:!0})}),this._parent&&!Tn.onlySelf&&this._parent._updateTouched(Tn)}markAsDirty(Tn={}){this.pristine=!1,this._parent&&!Tn.onlySelf&&this._parent.markAsDirty(Tn)}markAsPristine(Tn={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(tn=>{tn.markAsPristine({onlySelf:!0})}),this._parent&&!Tn.onlySelf&&this._parent._updatePristine(Tn)}markAsPending(Tn={}){this.status=et,!1!==Tn.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Tn.onlySelf&&this._parent.markAsPending(Tn)}disable(Tn={}){const tn=this._parentMarkedDirty(Tn.onlySelf);this.status=St,this.errors=null,this._forEachChild(In=>{In.disable({...Tn,onlySelf:!0})}),this._updateValue(),!1!==Tn.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Tn,skipPristineCheck:tn}),this._onDisabledChange.forEach(In=>In(!0))}enable(Tn={}){const tn=this._parentMarkedDirty(Tn.onlySelf);this.status=tt,this._forEachChild(In=>{In.enable({...Tn,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Tn.emitEvent}),this._updateAncestors({...Tn,skipPristineCheck:tn}),this._onDisabledChange.forEach(In=>In(!1))}_updateAncestors(Tn){this._parent&&!Tn.onlySelf&&(this._parent.updateValueAndValidity(Tn),Tn.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Tn){this._parent=Tn}getRawValue(){return this.value}updateValueAndValidity(Tn={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===tt||this.status===et)&&this._runAsyncValidator(Tn.emitEvent)),!1!==Tn.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Tn.onlySelf&&this._parent.updateValueAndValidity(Tn)}_updateTreeValidity(Tn={emitEvent:!0}){this._forEachChild(tn=>tn._updateTreeValidity(Tn)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Tn.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?St:tt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Tn){if(this.asyncValidator){this.status=et,this._hasOwnPendingAsyncValidator=!0;const tn=re(this.asyncValidator(this));this._asyncValidationSubscription=tn.subscribe(In=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(In,{emitEvent:Tn})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Tn,tn={}){this.errors=Tn,this._updateControlsErrors(!1!==tn.emitEvent)}get(Tn){let tn=Tn;return null==tn||(Array.isArray(tn)||(tn=tn.split(".")),0===tn.length)?null:tn.reduce((In,Ai)=>In&&In._find(Ai),this)}getError(Tn,tn){const In=tn?this.get(tn):this;return In&&In.errors?In.errors[Tn]:null}hasError(Tn,tn){return!!this.getError(Tn,tn)}get root(){let Tn=this;for(;Tn._parent;)Tn=Tn._parent;return Tn}_updateControlsErrors(Tn){this.status=this._calculateStatus(),Tn&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Tn)}_initObservables(){this.valueChanges=new n.bkB,this.statusChanges=new n.bkB}_calculateStatus(){return this._allControlsDisabled()?St:this.errors?rt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(et)?et:this._anyControlsHaveStatus(rt)?rt:tt}_anyControlsHaveStatus(Tn){return this._anyControls(tn=>tn.status===Tn)}_anyControlsDirty(){return this._anyControls(Tn=>Tn.dirty)}_anyControlsTouched(){return this._anyControls(Tn=>Tn.touched)}_updatePristine(Tn={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Tn.onlySelf&&this._parent._updatePristine(Tn)}_updateTouched(Tn={}){this.touched=this._anyControlsTouched(),this._parent&&!Tn.onlySelf&&this._parent._updateTouched(Tn)}_registerOnCollectionChange(Tn){this._onCollectionChange=Tn}_setUpdateStrategy(Tn){be(Tn)&&null!=Tn.updateOn&&(this._updateOn=Tn.updateOn)}_parentMarkedDirty(Tn){return!Tn&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Tn){return null}_assignValidators(Tn){this._rawValidators=Array.isArray(Tn)?Tn.slice():Tn,this._composedValidatorFn=function yt(Mn){return Array.isArray(Mn)?Se(Mn):Mn||null}(this._rawValidators)}_assignAsyncValidators(Tn){this._rawAsyncValidators=Array.isArray(Tn)?Tn.slice():Tn,this._composedAsyncValidatorFn=function ke(Mn){return Array.isArray(Mn)?Be(Mn):Mn||null}(this._rawAsyncValidators)}}class Zt extends Lt{constructor(Tn,tn,In){super(Gt(tn),Wt(In,tn)),this.controls=Tn,this._initObservables(),this._setUpdateStrategy(tn),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Tn,tn){return this.controls[Tn]?this.controls[Tn]:(this.controls[Tn]=tn,tn.setParent(this),tn._registerOnCollectionChange(this._onCollectionChange),tn)}addControl(Tn,tn,In={}){this.registerControl(Tn,tn),this.updateValueAndValidity({emitEvent:In.emitEvent}),this._onCollectionChange()}removeControl(Tn,tn={}){this.controls[Tn]&&this.controls[Tn]._registerOnCollectionChange(()=>{}),delete this.controls[Tn],this.updateValueAndValidity({emitEvent:tn.emitEvent}),this._onCollectionChange()}setControl(Tn,tn,In={}){this.controls[Tn]&&this.controls[Tn]._registerOnCollectionChange(()=>{}),delete this.controls[Tn],tn&&this.registerControl(Tn,tn),this.updateValueAndValidity({emitEvent:In.emitEvent}),this._onCollectionChange()}contains(Tn){return this.controls.hasOwnProperty(Tn)&&this.controls[Tn].enabled}setValue(Tn,tn={}){(function qe(Mn,Tn,tn){Mn._forEachChild((In,Ai)=>{if(void 0===tn[Ai])throw new n.wOt(1002,"")})})(this,0,Tn),Object.keys(Tn).forEach(In=>{(function Ae(Mn,Tn,tn){const In=Mn.controls;if(!(Tn?Object.keys(In):In).length)throw new n.wOt(1e3,"");if(!In[tn])throw new n.wOt(1001,"")})(this,!0,In),this.controls[In].setValue(Tn[In],{onlySelf:!0,emitEvent:tn.emitEvent})}),this.updateValueAndValidity(tn)}patchValue(Tn,tn={}){null!=Tn&&(Object.keys(Tn).forEach(In=>{const Ai=this.controls[In];Ai&&Ai.patchValue(Tn[In],{onlySelf:!0,emitEvent:tn.emitEvent})}),this.updateValueAndValidity(tn))}reset(Tn={},tn={}){this._forEachChild((In,Ai)=>{In.reset(Tn?Tn[Ai]:null,{onlySelf:!0,emitEvent:tn.emitEvent})}),this._updatePristine(tn),this._updateTouched(tn),this.updateValueAndValidity(tn)}getRawValue(){return this._reduceChildren({},(Tn,tn,In)=>(Tn[In]=tn.getRawValue(),Tn))}_syncPendingControls(){let Tn=this._reduceChildren(!1,(tn,In)=>!!In._syncPendingControls()||tn);return Tn&&this.updateValueAndValidity({onlySelf:!0}),Tn}_forEachChild(Tn){Object.keys(this.controls).forEach(tn=>{const In=this.controls[tn];In&&Tn(In,tn)})}_setUpControls(){this._forEachChild(Tn=>{Tn.setParent(this),Tn._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Tn){for(const[tn,In]of Object.entries(this.controls))if(this.contains(tn)&&Tn(In))return!0;return!1}_reduceValue(){return this._reduceChildren({},(tn,In,Ai)=>((In.enabled||this.disabled)&&(tn[Ai]=In.value),tn))}_reduceChildren(Tn,tn){let In=Tn;return this._forEachChild((Ai,So)=>{In=tn(In,Ai,So)}),In}_allControlsDisabled(){for(const Tn of Object.keys(this.controls))if(this.controls[Tn].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Tn){return this.controls.hasOwnProperty(Tn)?this.controls[Tn]:null}}const Fi=new n.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>bt}),bt="always";function Pt(Mn,Tn,tn=bt){Ii(Mn,Tn),Tn.valueAccessor.writeValue(Mn.value),(Mn.disabled||"always"===tn)&&Tn.valueAccessor.setDisabledState?.(Mn.disabled),function zr(Mn,Tn){Tn.valueAccessor.registerOnChange(tn=>{Mn._pendingValue=tn,Mn._pendingChange=!0,Mn._pendingDirty=!0,"change"===Mn.updateOn&&pn(Mn,Tn)})}(Mn,Tn),function ti(Mn,Tn){const tn=(In,Ai)=>{Tn.valueAccessor.writeValue(In),Ai&&Tn.viewToModelUpdate(In)};Mn.registerOnChange(tn),Tn._registerOnDestroy(()=>{Mn._unregisterOnChange(tn)})}(Mn,Tn),function Cn(Mn,Tn){Tn.valueAccessor.registerOnTouched(()=>{Mn._pendingTouched=!0,"blur"===Mn.updateOn&&Mn._pendingChange&&pn(Mn,Tn),"submit"!==Mn.updateOn&&Mn.markAsTouched()})}(Mn,Tn),function ui(Mn,Tn){if(Tn.valueAccessor.setDisabledState){const tn=In=>{Tn.valueAccessor.setDisabledState(In)};Mn.registerOnDisabledChange(tn),Tn._registerOnDestroy(()=>{Mn._unregisterOnDisabledChange(tn)})}}(Mn,Tn)}function jt(Mn,Tn,tn=!0){const In=()=>{};Tn.valueAccessor&&(Tn.valueAccessor.registerOnChange(In),Tn.valueAccessor.registerOnTouched(In)),pr(Mn,Tn),Mn&&(Tn._invokeOnDestroyCallbacks(),Mn._registerOnCollectionChange(()=>{}))}function gn(Mn,Tn){Mn.forEach(tn=>{tn.registerOnValidatorChange&&tn.registerOnValidatorChange(Tn)})}function Ii(Mn,Tn){const tn=He(Mn);null!==Tn.validator?Mn.setValidators(Xe(tn,Tn.validator)):"function"==typeof tn&&Mn.setValidators([tn]);const In=Me(Mn);null!==Tn.asyncValidator?Mn.setAsyncValidators(Xe(In,Tn.asyncValidator)):"function"==typeof In&&Mn.setAsyncValidators([In]);const Ai=()=>Mn.updateValueAndValidity();gn(Tn._rawValidators,Ai),gn(Tn._rawAsyncValidators,Ai)}function pr(Mn,Tn){let tn=!1;if(null!==Mn){if(null!==Tn.validator){const Ai=He(Mn);if(Array.isArray(Ai)&&Ai.length>0){const So=Ai.filter(Rn=>Rn!==Tn.validator);So.length!==Ai.length&&(tn=!0,Mn.setValidators(So))}}if(null!==Tn.asyncValidator){const Ai=Me(Mn);if(Array.isArray(Ai)&&Ai.length>0){const So=Ai.filter(Rn=>Rn!==Tn.asyncValidator);So.length!==Ai.length&&(tn=!0,Mn.setAsyncValidators(So))}}}const In=()=>{};return gn(Tn._rawValidators,In),gn(Tn._rawAsyncValidators,In),tn}function pn(Mn,Tn){Mn._pendingDirty&&Mn.markAsDirty(),Mn.setValue(Mn._pendingValue,{emitModelToViewChange:!1}),Tn.viewToModelUpdate(Mn._pendingValue),Mn._pendingChange=!1}function pi(Mn,Tn){Ii(Mn,Tn)}function Ci(Mn,Tn){Mn._syncPendingControls(),Tn.forEach(tn=>{const In=tn.control;"submit"===In.updateOn&&In._pendingChange&&(tn.viewToModelUpdate(In._pendingValue),In._pendingChange=!1)})}const Mr={provide:W,useExisting:(0,n.Rfq)(()=>_o)},$r=Promise.resolve();let _o=(()=>{class Mn extends W{constructor(tn,In,Ai){super(),this.callSetDisabledState=Ai,this.submitted=!1,this._directives=new Set,this.ngSubmit=new n.bkB,this.form=new Zt({},Se(tn),Be(In))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(tn){$r.then(()=>{const In=this._findContainer(tn.path);tn.control=In.registerControl(tn.name,tn.control),Pt(tn.control,tn,this.callSetDisabledState),tn.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(tn)})}getControl(tn){return this.form.get(tn.path)}removeControl(tn){$r.then(()=>{const In=this._findContainer(tn.path);In&&In.removeControl(tn.name),this._directives.delete(tn)})}addFormGroup(tn){$r.then(()=>{const In=this._findContainer(tn.path),Ai=new Zt({});pi(Ai,tn),In.registerControl(tn.name,Ai),Ai.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(tn){$r.then(()=>{const In=this._findContainer(tn.path);In&&In.removeControl(tn.name)})}getFormGroup(tn){return this.form.get(tn.path)}updateModel(tn,In){$r.then(()=>{this.form.get(tn.path).setValue(In)})}setValue(tn){this.control.setValue(tn)}onSubmit(tn){return this.submitted=!0,Ci(this.form,this._directives),this.ngSubmit.emit(tn),"dialog"===tn?.target?.method}onReset(){this.resetForm()}resetForm(tn=void 0){this.form.reset(tn),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(tn){return tn.pop(),tn.length?this.form.get(tn):this.form}static{this.\u0275fac=function(In){return new(In||Mn)(n.rXU(D,10),n.rXU(I,10),n.rXU(Fi,8))}}static{this.\u0275dir=n.FsC({type:Mn,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(In,Ai){1&In&&n.bIt("submit",function(Rn){return Ai.onSubmit(Rn)})("reset",function(){return Ai.onReset()})},inputs:{options:[n.Mj6.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.Jv_([Mr]),n.Vt3]})}}return Mn})();function bo(Mn,Tn){const tn=Mn.indexOf(Tn);tn>-1&&Mn.splice(tn,1)}function Kn(Mn){return"object"==typeof Mn&&null!==Mn&&2===Object.keys(Mn).length&&"value"in Mn&&"disabled"in Mn}const gi=class extends Lt{constructor(Tn=null,tn,In){super(Gt(tn),Wt(In,tn)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Tn),this._setUpdateStrategy(tn),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),be(tn)&&(tn.nonNullable||tn.initialValueIsDefault)&&(this.defaultValue=Kn(Tn)?Tn.value:Tn)}setValue(Tn,tn={}){this.value=this._pendingValue=Tn,this._onChange.length&&!1!==tn.emitModelToViewChange&&this._onChange.forEach(In=>In(this.value,!1!==tn.emitViewToModelChange)),this.updateValueAndValidity(tn)}patchValue(Tn,tn={}){this.setValue(Tn,tn)}reset(Tn=this.defaultValue,tn={}){this._applyFormState(Tn),this.markAsPristine(tn),this.markAsUntouched(tn),this.setValue(this.value,tn),this._pendingChange=!1}_updateValue(){}_anyControls(Tn){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Tn){this._onChange.push(Tn)}_unregisterOnChange(Tn){bo(this._onChange,Tn)}registerOnDisabledChange(Tn){this._onDisabledChange.push(Tn)}_unregisterOnDisabledChange(Tn){bo(this._onDisabledChange,Tn)}_forEachChild(Tn){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(Tn){Kn(Tn)?(this.value=this._pendingValue=Tn.value,Tn.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Tn}},Zr={provide:$,useExisting:(0,n.Rfq)(()=>go)},Yr=Promise.resolve();let go=(()=>{class Mn extends ${constructor(tn,In,Ai,So,Rn,Xn){super(),this._changeDetectorRef=Rn,this.callSetDisabledState=Xn,this.control=new gi,this._registered=!1,this.name="",this.update=new n.bkB,this._parent=tn,this._setValidators(In),this._setAsyncValidators(Ai),this.valueAccessor=function ln(Mn,Tn){if(!Tn)return null;let tn,In,Ai;return Array.isArray(Tn),Tn.forEach(So=>{So.constructor===c?tn=So:function Gn(Mn){return Object.getPrototypeOf(Mn.constructor)===f}(So)?In=So:Ai=So}),Ai||In||tn||null}(0,So)}ngOnChanges(tn){if(this._checkForErrors(),!this._registered||"name"in tn){if(this._registered&&(this._checkName(),this.formDirective)){const In=tn.name.previousValue;this.formDirective.removeControl({name:In,path:this._getPath(In)})}this._setUpControl()}"isDisabled"in tn&&this._updateDisabled(tn),function Yn(Mn,Tn){if(!Mn.hasOwnProperty("model"))return!1;const tn=Mn.model;return!!tn.isFirstChange()||!Object.is(Tn,tn.currentValue)}(tn,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(tn){this.viewModel=tn,this.update.emit(tn)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Pt(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(tn){Yr.then(()=>{this.control.setValue(tn,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(tn){const In=tn.isDisabled.currentValue,Ai=0!==In&&(0,n.L39)(In);Yr.then(()=>{Ai&&!this.control.disabled?this.control.disable():!Ai&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(tn){return this._parent?function bn(Mn,Tn){return[...Tn.path,Mn]}(tn,this._parent):[tn]}static{this.\u0275fac=function(In){return new(In||Mn)(n.rXU(W,9),n.rXU(D,10),n.rXU(I,10),n.rXU(O,10),n.rXU(n.gRc,8),n.rXU(Fi,8))}}static{this.\u0275dir=n.FsC({type:Mn,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[n.Mj6.None,"disabled","isDisabled"],model:[n.Mj6.None,"ngModel","model"],options:[n.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n.Jv_([Zr]),n.Vt3,n.OA$]})}}return Mn})();const Vn={provide:W,useExisting:(0,n.Rfq)(()=>rr)};let rr=(()=>{class Mn extends W{constructor(tn,In,Ai){super(),this.callSetDisabledState=Ai,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.bkB,this._setValidators(tn),this._setAsyncValidators(In)}ngOnChanges(tn){this._checkFormPresent(),tn.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(pr(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(tn){const In=this.form.get(tn.path);return Pt(In,tn,this.callSetDisabledState),In.updateValueAndValidity({emitEvent:!1}),this.directives.push(tn),In}getControl(tn){return this.form.get(tn.path)}removeControl(tn){jt(tn.control||null,tn,!1),function bi(Mn,Tn){const tn=Mn.indexOf(Tn);tn>-1&&Mn.splice(tn,1)}(this.directives,tn)}addFormGroup(tn){this._setUpFormContainer(tn)}removeFormGroup(tn){this._cleanUpFormContainer(tn)}getFormGroup(tn){return this.form.get(tn.path)}addFormArray(tn){this._setUpFormContainer(tn)}removeFormArray(tn){this._cleanUpFormContainer(tn)}getFormArray(tn){return this.form.get(tn.path)}updateModel(tn,In){this.form.get(tn.path).setValue(In)}onSubmit(tn){return this.submitted=!0,Ci(this.form,this.directives),this.ngSubmit.emit(tn),"dialog"===tn?.target?.method}onReset(){this.resetForm()}resetForm(tn=void 0){this.form.reset(tn),this.submitted=!1}_updateDomValue(){this.directives.forEach(tn=>{const In=tn.control,Ai=this.form.get(tn.path);In!==Ai&&(jt(In||null,tn),(Mn=>Mn instanceof gi)(Ai)&&(Pt(Ai,tn,this.callSetDisabledState),tn.control=Ai))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(tn){const In=this.form.get(tn.path);pi(In,tn),In.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(tn){if(this.form){const In=this.form.get(tn.path);In&&function cn(Mn,Tn){return pr(Mn,Tn)}(In,tn)&&In.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ii(this.form,this),this._oldForm&&pr(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(In){return new(In||Mn)(n.rXU(D,10),n.rXU(I,10),n.rXU(Fi,8))}}static{this.\u0275dir=n.FsC({type:Mn,selectors:[["","formGroup",""]],hostBindings:function(In,Ai){1&In&&n.bIt("submit",function(Rn){return Ai.onSubmit(Rn)})("reset",function(){return Ai.onReset()})},inputs:{form:[n.Mj6.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.Jv_([Vn]),n.Vt3,n.OA$]})}}return Mn})(),Ms=(()=>{class Mn{constructor(){this._validator=H}ngOnChanges(tn){if(this.inputName in tn){const In=this.normalizeInput(tn[this.inputName].currentValue);this._enabled=this.enabled(In),this._validator=this._enabled?this.createValidator(In):H,this._onChange&&this._onChange()}}validate(tn){return this._validator(tn)}registerOnValidatorChange(tn){this._onChange=tn}enabled(tn){return null!=tn}static{this.\u0275fac=function(In){return new(In||Mn)}}static{this.\u0275dir=n.FsC({type:Mn,features:[n.OA$]})}}return Mn})();const Ia={provide:D,useExisting:(0,n.Rfq)(()=>Js),multi:!0},Ds={provide:D,useExisting:(0,n.Rfq)(()=>fa),multi:!0};let Js=(()=>{class Mn extends Ms{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=n.L39,this.createValidator=tn=>L}enabled(tn){return tn}static{this.\u0275fac=(()=>{let tn;return function(Ai){return(tn||(tn=n.xGo(Mn)))(Ai||Mn)}})()}static{this.\u0275dir=n.FsC({type:Mn,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(In,Ai){2&In&&n.BMQ("required",Ai._enabled?"":null)},inputs:{required:"required"},features:[n.Jv_([Ia]),n.Vt3]})}}return Mn})(),fa=(()=>{class Mn extends Js{constructor(){super(...arguments),this.createValidator=tn=>E}static{this.\u0275fac=(()=>{let tn;return function(Ai){return(tn||(tn=n.xGo(Mn)))(Ai||Mn)}})()}static{this.\u0275dir=n.FsC({type:Mn,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(In,Ai){2&In&&n.BMQ("required",Ai._enabled?"":null)},features:[n.Jv_([Ds]),n.Vt3]})}}return Mn})(),oa=(()=>{class Mn{static{this.\u0275fac=function(In){return new(In||Mn)}}static{this.\u0275mod=n.$C({type:Mn})}static{this.\u0275inj=n.G2t({})}}return Mn})(),$a=(()=>{class Mn{static withConfig(tn){return{ngModule:Mn,providers:[{provide:Fi,useValue:tn.callSetDisabledState??bt}]}}static{this.\u0275fac=function(In){return new(In||Mn)}}static{this.\u0275mod=n.$C({type:Mn})}static{this.\u0275inj=n.G2t({imports:[oa]})}}return Mn})()},16490:(Bt,z,s)=>{"use strict";s.d(z,{J3:()=>V,Ox:()=>N,VK:()=>L,eN:()=>T,vF:()=>I,yj:()=>U});var n=s(78064),l=s(76614),d=s(58527),v=s(51635),S=s(31308),y=s(76706),f=s(61904),O=s(61142),P=s(40262),_=s(25373),i=s(80583),r=s(16229),a=s(8619),c=s(65706);function m(E,g){}const M={bottomSheetState:(0,P.hZ)("state",[(0,P.wk)("void, hidden",(0,P.iF)({transform:"translateY(100%)"})),(0,P.wk)("visible",(0,P.iF)({transform:"translateY(0%)"})),(0,P.kY)("visible => void, visible => hidden",(0,P.Os)([(0,P.i0)(`${v.ed.COMPLEX} ${v.r5.ACCELERATION_CURVE}`),(0,P.P)("@*",(0,P.MA)(),{optional:!0})])),(0,P.kY)("void => visible",(0,P.Os)([(0,P.i0)(`${v.ed.EXITING} ${v.r5.DECELERATION_CURVE}`),(0,P.P)("@*",(0,P.MA)(),{optional:!0})]))])};let D=(()=>{class E extends n.sU{constructor(R,B,X,H,J,re,ie,ve,ue,se){super(R,B,X,H,J,re,ie,se),this._changeDetectorRef=ue,this._animationState="void",this._animationStateChanged=new d.bkB,this._breakpointSubscription=ve.observe([y.Rp.Medium,y.Rp.Large,y.Rp.XLarge]).subscribe(()=>{this._toggleClass("mat-bottom-sheet-container-medium",ve.isMatched(y.Rp.Medium)),this._toggleClass("mat-bottom-sheet-container-large",ve.isMatched(y.Rp.Large)),this._toggleClass("mat-bottom-sheet-container-xlarge",ve.isMatched(y.Rp.XLarge))})}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}ngOnDestroy(){super.ngOnDestroy(),this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_onAnimationDone(R){"visible"===R.toState&&this._trapFocus(),this._animationStateChanged.emit(R)}_onAnimationStart(R){this._animationStateChanged.emit(R)}_captureInitialFocus(){}_toggleClass(R,B){this._elementRef.nativeElement.classList.toggle(R,B)}static{this.\u0275fac=function(B){return new(B||E)(d.rXU(d.aKT),d.rXU(S.GX),d.rXU(O.qQ,8),d.rXU(n.Pe),d.rXU(S.Z7),d.rXU(d.SKi),d.rXU(f.yY),d.rXU(y.QP),d.rXU(d.gRc),d.rXU(S.FN))}}static{this.\u0275cmp=d.VBU({type:E,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:4,hostBindings:function(B,X){1&B&&d.Kam("@state.start",function(J){return X._onAnimationStart(J)})("@state.done",function(J){return X._onAnimationDone(J)}),2&B&&(d.zvX("@state",X._animationState),d.BMQ("role",X._config.role)("aria-modal",X._config.ariaModal)("aria-label",X._config.ariaLabel))},features:[d.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(B,X){1&B&&d.DNE(0,m,0,0,"ng-template",0)},dependencies:[l.I3],styles:[".mat-bottom-sheet-container{--mat-bottom-sheet-container-shape:4px;box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto;background:var(--mat-bottom-sheet-container-background-color);color:var(--mat-bottom-sheet-container-text-color);font-family:var(--mat-bottom-sheet-container-text-font);font-size:var(--mat-bottom-sheet-container-text-size);line-height:var(--mat-bottom-sheet-container-text-line-height);font-weight:var(--mat-bottom-sheet-container-text-weight);letter-spacing:var(--mat-bottom-sheet-container-text-tracking)}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:var(--mat-bottom-sheet-container-shape);border-top-right-radius:var(--mat-bottom-sheet-container-shape)}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}"],encapsulation:2,data:{animation:[M.bottomSheetState]}})}}return E})(),I=(()=>{class E{static{this.\u0275fac=function(B){return new(B||E)}}static{this.\u0275mod=d.$C({type:E})}static{this.\u0275inj=d.G2t({imports:[n.Ph,v.yE,l.jc,v.yE]})}}return E})();const U=new d.nKC("MatBottomSheetData");class V{constructor(){this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.ariaModal=!0,this.closeOnNavigation=!0,this.autoFocus="dialog",this.restoreFocus=!0}}class T{get instance(){return this._ref.componentInstance}get componentRef(){return this._ref.componentRef}constructor(g,R,B){this._ref=g,this._afterOpened=new i.B7,this.containerInstance=B,this.disableClose=R.disableClose,B._animationStateChanged.pipe((0,a.p)(X=>"done"===X.phaseName&&"visible"===X.toState),(0,c.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),B._animationStateChanged.pipe((0,a.p)(X=>"done"===X.phaseName&&"hidden"===X.toState),(0,c.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._ref.close(this._result)}),g.overlayRef.detachments().subscribe(()=>{this._ref.close(this._result)}),(0,r.h)(this.backdropClick(),this.keydownEvents().pipe((0,a.p)(X=>X.keyCode===_._f))).subscribe(X=>{!this.disableClose&&("keydown"!==X.type||!(0,_.rp)(X))&&(X.preventDefault(),this.dismiss())})}dismiss(g){this.containerInstance&&(this.containerInstance._animationStateChanged.pipe((0,a.p)(R=>"start"===R.phaseName),(0,c.s)(1)).subscribe(R=>{this._closeFallbackTimeout=setTimeout(()=>{this._ref.close(this._result)},R.totalTime+100),this._ref.overlayRef.detachBackdrop()}),this._result=g,this.containerInstance.exit(),this.containerInstance=null)}afterDismissed(){return this._ref.closed}afterOpened(){return this._afterOpened}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}}const N=new d.nKC("mat-bottom-sheet-default-options");let L=(()=>{class E{get _openedBottomSheetRef(){const R=this._parentBottomSheet;return R?R._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(R){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=R:this._bottomSheetRefAtThisLevel=R}constructor(R,B,X,H){this._overlay=R,this._parentBottomSheet=X,this._defaultOptions=H,this._bottomSheetRefAtThisLevel=null,this._dialog=B.get(n.lG)}open(R,B){const X={...this._defaultOptions||new V,...B};let H;return this._dialog.open(R,{...X,disableClose:!0,closeOnOverlayDetachments:!1,maxWidth:"100%",container:D,scrollStrategy:X.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0"),templateContext:()=>({bottomSheetRef:H}),providers:(J,re,ie)=>(H=new T(J,X,ie),[{provide:T,useValue:H},{provide:U,useValue:X.data}])}),H.afterDismissed().subscribe(()=>{this._openedBottomSheetRef===H&&(this._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>H.containerInstance?.enter()),this._openedBottomSheetRef.dismiss()):H.containerInstance.enter(),this._openedBottomSheetRef=H,H}dismiss(R){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(R)}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}static{this.\u0275fac=function(B){return new(B||E)(d.KVO(f.hJ),d.KVO(d.zZn),d.KVO(E,12),d.KVO(N,8))}}static{this.\u0275prov=d.jDH({token:E,factory:E.\u0275fac,providedIn:I})}}return E})()},4418:(Bt,z,s)=>{"use strict";s.d(z,{So:()=>M,g7:()=>V});var n=s(58527),l=s(56106),d=s(51635),v=s(6364);const S=["input"],y=["label"],f=["*"],O=new n.nKC("mat-checkbox-default-options",{providedIn:"root",factory:P});function P(){return{color:"accent",clickAction:"check-indeterminate"}}const _={provide:l.kq,useExisting:(0,n.Rfq)(()=>M),multi:!0};class i{}let r=0;const a=P(),c=(0,d.BF)((0,d.Zc)((0,d.GG)((0,d.Ob)(class{constructor(T){this._elementRef=T}}))));let m=(()=>{class T extends c{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(L){this._required=(0,v.he)(L)}constructor(L,E,g,R,B,X,H){super(E),this._changeDetectorRef=g,this._ngZone=R,this._animationMode=X,this._options=H,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new n.bkB,this.indeterminateChange=new n.bkB,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||a,this.color=this.defaultColor=this._options.color||a.color,this.tabIndex=parseInt(B)||0,this.id=this._uniqueId=`${L}${++r}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(L){const E=(0,v.he)(L);E!=this.checked&&(this._checked=E,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(L){const E=(0,v.he)(L);E!==this.disabled&&(this._disabled=E,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(L){const E=L!=this._indeterminate;this._indeterminate=(0,v.he)(L),E&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(L){this.checked=!!L}registerOnChange(L){this._controlValueAccessorChangeFn=L}registerOnTouched(L){this._onTouched=L}setDisabledState(L){this.disabled=L}_transitionCheckState(L){let E=this._currentCheckState,g=this._getAnimationTargetElement();if(E!==L&&g&&(this._currentAnimationClass&&g.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(E,L),this._currentCheckState=L,this._currentAnimationClass.length>0)){g.classList.add(this._currentAnimationClass);const R=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{g.classList.remove(R)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const L=this._options?.clickAction;this.disabled||"noop"===L?!this.disabled&&"noop"===L&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==L&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(L){L.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(L,E){if("NoopAnimations"===this._animationMode)return"";switch(L){case 0:if(1===E)return this._animationClasses.uncheckedToChecked;if(3==E)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===E?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===E?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===E?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(L){const E=this._inputElement;E&&(E.nativeElement.indeterminate=L)}static{this.\u0275fac=function(E){n.QTQ()}}static{this.\u0275dir=n.FsC({type:T,viewQuery:function(E,g){if(1&E&&(n.GBs(S,5),n.GBs(y,5),n.GBs(d.r6,5)),2&E){let R;n.mGM(R=n.lsd())&&(g._inputElement=R.first),n.mGM(R=n.lsd())&&(g._labelElement=R.first),n.mGM(R=n.lsd())&&(g.ripple=R.first)}},inputs:{ariaLabel:[n.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[n.Mj6.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[n.Mj6.None,"aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[n.Vt3]})}}return T})(),M=(()=>{class T extends m{constructor(L,E,g,R,B,X){super("mat-mdc-checkbox-",L,E,g,R,B,X),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(L){const E=new i;return E.source=this,E.checked=L,E}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(L){L.target&&this._labelElement.nativeElement.contains(L.target)&&L.stopPropagation()}static{this.\u0275fac=function(E){return new(E||T)(n.rXU(n.aKT),n.rXU(n.gRc),n.rXU(n.SKi),n.kS0("tabindex"),n.rXU(n.bc$,8),n.rXU(O,8))}}static{this.\u0275cmp=n.VBU({type:T,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(E,g){2&E&&(n.Mr5("id",g.id),n.BMQ("tabindex",null)("aria-label",null)("aria-labelledby",null),n.AVh("_mat-animation-noopable","NoopAnimations"===g._animationMode)("mdc-checkbox--disabled",g.disabled)("mat-mdc-checkbox-disabled",g.disabled)("mat-mdc-checkbox-checked",g.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[n.Jv_([_]),n.Vt3],ngContentSelectors:f,decls:15,vars:20,consts:[["checkbox",""],["input",""],["label",""],[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(E,g){if(1&E){const R=n.RV6();n.NAR(),n.j41(0,"div",3),n.bIt("click",function(X){return n.eBV(R),n.Njj(g._preventBubblingFromLabel(X))}),n.j41(1,"div",4,0)(3,"div",5),n.bIt("click",function(){return n.eBV(R),n.Njj(g._onTouchTargetClick())}),n.k0s(),n.j41(4,"input",6,1),n.bIt("blur",function(){return n.eBV(R),n.Njj(g._onBlur())})("click",function(){return n.eBV(R),n.Njj(g._onInputClick())})("change",function(X){return n.eBV(R),n.Njj(g._onInteractionEvent(X))}),n.k0s(),n.nrm(6,"div",7),n.j41(7,"div",8),n.qSk(),n.j41(8,"svg",9),n.nrm(9,"path",10),n.k0s(),n.joV(),n.nrm(10,"div",11),n.k0s(),n.nrm(11,"div",12),n.k0s(),n.j41(12,"label",13,2),n.SdG(14),n.k0s()()}if(2&E){const R=n.sdS(2);n.AVh("mdc-form-field--align-end","before"==g.labelPosition),n.R7$(4),n.AVh("mdc-checkbox--selected",g.checked),n.Y8G("checked",g.checked)("indeterminate",g.indeterminate)("disabled",g.disabled)("id",g.inputId)("required",g.required)("tabIndex",g.tabIndex),n.BMQ("aria-label",g.ariaLabel||null)("aria-labelledby",g.ariaLabelledby)("aria-describedby",g.ariaDescribedby)("aria-checked",g.indeterminate?"mixed":null)("name",g.name)("value",g.value),n.R7$(7),n.Y8G("matRippleTrigger",R)("matRippleDisabled",g.disableRipple||g.disabled)("matRippleCentered",!0),n.R7$(),n.Y8G("for",g.inputId)}},dependencies:[d.r6],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}html{--mdc-checkbox-disabled-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-state-layer-opacity:0.16;--mdc-checkbox-selected-hover-state-layer-opacity:0.04;--mdc-checkbox-selected-pressed-state-layer-opacity:0.16;--mdc-checkbox-unselected-focus-state-layer-opacity:0.16;--mdc-checkbox-unselected-hover-state-layer-opacity:0.04;--mdc-checkbox-unselected-pressed-state-layer-opacity:0.16}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return T})(),U=(()=>{class T{static{this.\u0275fac=function(E){return new(E||T)}}static{this.\u0275mod=n.$C({type:T})}static{this.\u0275inj=n.G2t({})}}return T})(),V=(()=>{class T{static{this.\u0275fac=function(E){return new(E||T)}}static{this.\u0275mod=n.$C({type:T})}static{this.\u0275inj=n.G2t({imports:[d.yE,d.pZ,U,d.yE,U]})}}return T})()},51635:(Bt,z,s)=>{"use strict";s.d(z,{r5:()=>U,ed:()=>V,es:()=>A,QC:()=>ht,is:()=>We,yE:()=>L,wT:()=>rt,Sy:()=>Gt,r6:()=>nt,Ej:()=>Lt,pZ:()=>Ot,jb:()=>et,TL:()=>St,Zc:()=>X,GG:()=>H,Ob:()=>B,J8:()=>re,BF:()=>J});var n=s(58527),l=s(31308),d=s(51394),S=s(61142),y=s(72653),f=s(6364),O=s(80583),P=s(25373);const r=["text"],a=[[["mat-icon"]],"*"],c=["mat-icon","*"];function m(Zt,fn){if(1&Zt&&n.nrm(0,"mat-pseudo-checkbox",6),2&Zt){const hn=n.XpG();n.Y8G("disabled",hn.disabled)("state",hn.selected?"checked":"unchecked")}}function M(Zt,fn){if(1&Zt&&n.nrm(0,"mat-pseudo-checkbox",7),2&Zt){const hn=n.XpG();n.Y8G("disabled",hn.disabled)}}function D(Zt,fn){if(1&Zt&&(n.j41(0,"span",8),n.EFF(1),n.k0s()),2&Zt){const hn=n.XpG();n.R7$(),n.SpI("(",hn.group.label,")")}}let U=(()=>{class Zt{static{this.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)"}static{this.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)"}static{this.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)"}static{this.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)"}}return Zt})(),V=(()=>{class Zt{static{this.COMPLEX="375ms"}static{this.ENTERING="225ms"}static{this.EXITING="195ms"}}return Zt})();const N=new n.nKC("mat-sanity-checks",{providedIn:"root",factory:function T(){return!0}});let L=(()=>{class Zt{constructor(hn,On,fi){this._sanityChecks=On,this._document=fi,this._hasDoneGlobalChecks=!1,hn._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(hn){return!(0,y.v8)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[hn])}static{this.\u0275fac=function(On){return new(On||Zt)(n.KVO(l.Q_),n.KVO(N,8),n.KVO(S.qQ))}}static{this.\u0275mod=n.$C({type:Zt})}static{this.\u0275inj=n.G2t({imports:[d.jI,d.jI]})}}return Zt})();function B(Zt){return class extends Zt{get disabled(){return this._disabled}set disabled(fn){this._disabled=(0,f.he)(fn)}constructor(...fn){super(...fn),this._disabled=!1}}}function X(Zt,fn){return class extends Zt{get color(){return this._color}set color(hn){const On=hn||this.defaultColor;On!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),On&&this._elementRef.nativeElement.classList.add(`mat-${On}`),this._color=On)}constructor(...hn){super(...hn),this.defaultColor=fn,this.color=fn}}}function H(Zt){return class extends Zt{get disableRipple(){return this._disableRipple}set disableRipple(fn){this._disableRipple=(0,f.he)(fn)}constructor(...fn){super(...fn),this._disableRipple=!1}}}function J(Zt,fn=0){return class extends Zt{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(hn){this._tabIndex=null!=hn?(0,f.OE)(hn):this.defaultTabIndex}constructor(...hn){super(...hn),this._tabIndex=fn,this.defaultTabIndex=fn}}}function re(Zt){return class extends Zt{updateErrorState(){const fn=this.errorState,Ji=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Ji!==fn&&(this.errorState=Ji,this.stateChanges.next())}constructor(...fn){super(...fn),this.errorState=!1}}}let A=(()=>{class Zt{isErrorState(hn,On){return!!(hn&&hn.invalid&&(hn.touched||On&&On.submitted))}static{this.\u0275fac=function(On){return new(On||Zt)}}static{this.\u0275prov=n.jDH({token:Zt,factory:Zt.\u0275fac,providedIn:"root"})}}return Zt})();class ${constructor(fn,hn,On,fi=!1){this._renderer=fn,this.element=hn,this.config=On,this._animationForciblyDisabledThroughCss=fi,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const le=(0,y.BQ)({passive:!0,capture:!0});class Pe{constructor(){this._events=new Map,this._delegateEventHandler=fn=>{const hn=(0,y.Fb)(fn);hn&&this._events.get(fn.type)?.forEach((On,fi)=>{(fi===hn||fi.contains(hn))&&On.forEach(Ji=>Ji.handleEvent(fn))})}}addHandler(fn,hn,On,fi){const Ji=this._events.get(hn);if(Ji){const Fi=Ji.get(On);Fi?Fi.add(fi):Ji.set(On,new Set([fi]))}else this._events.set(hn,new Map([[On,new Set([fi])]])),fn.runOutsideAngular(()=>{document.addEventListener(hn,this._delegateEventHandler,le)})}removeHandler(fn,hn,On){const fi=this._events.get(fn);if(!fi)return;const Ji=fi.get(hn);Ji&&(Ji.delete(On),0===Ji.size&&fi.delete(hn),0===fi.size&&(this._events.delete(fn),document.removeEventListener(fn,this._delegateEventHandler,le)))}}const Fe={enterDuration:225,exitDuration:150},Le=(0,y.BQ)({passive:!0,capture:!0}),Et=["mousedown","touchstart"],$e=["mouseup","mouseleave","touchend","touchcancel"];class Ze{static{this._eventManager=new Pe}constructor(fn,hn,On,fi){this._target=fn,this._ngZone=hn,this._platform=fi,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,fi.isBrowser&&(this._containerElement=(0,f.i8)(On))}fadeInRipple(fn,hn,On={}){const fi=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Ji={...Fe,...On.animation};On.centered&&(fn=fi.left+fi.width/2,hn=fi.top+fi.height/2);const Fi=On.radius||function Qe(Zt,fn,hn){const On=Math.max(Math.abs(Zt-hn.left),Math.abs(Zt-hn.right)),fi=Math.max(Math.abs(fn-hn.top),Math.abs(fn-hn.bottom));return Math.sqrt(On*On+fi*fi)}(fn,hn,fi),bt=fn-fi.left,bn=hn-fi.top,Pt=Ji.enterDuration,jt=document.createElement("div");jt.classList.add("mat-ripple-element"),jt.style.left=bt-Fi+"px",jt.style.top=bn-Fi+"px",jt.style.height=2*Fi+"px",jt.style.width=2*Fi+"px",null!=On.color&&(jt.style.backgroundColor=On.color),jt.style.transitionDuration=`${Pt}ms`,this._containerElement.appendChild(jt);const gn=window.getComputedStyle(jt),Ii=gn.transitionDuration,pr="none"===gn.transitionProperty||"0s"===Ii||"0s, 0s"===Ii||0===fi.width&&0===fi.height,zr=new $(this,jt,On,pr);jt.style.transform="scale3d(1, 1, 1)",zr.state=0,On.persistent||(this._mostRecentTransientRipple=zr);let Cn=null;return!pr&&(Pt||Ji.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const pn=()=>this._finishRippleTransition(zr),ti=()=>this._destroyRipple(zr);jt.addEventListener("transitionend",pn),jt.addEventListener("transitioncancel",ti),Cn={onTransitionEnd:pn,onTransitionCancel:ti}}),this._activeRipples.set(zr,Cn),(pr||!Pt)&&this._finishRippleTransition(zr),zr}fadeOutRipple(fn){if(2===fn.state||3===fn.state)return;const hn=fn.element,On={...Fe,...fn.config.animation};hn.style.transitionDuration=`${On.exitDuration}ms`,hn.style.opacity="0",fn.state=2,(fn._animationForciblyDisabledThroughCss||!On.exitDuration)&&this._finishRippleTransition(fn)}fadeOutAll(){this._getActiveRipples().forEach(fn=>fn.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(fn=>{fn.config.persistent||fn.fadeOut()})}setupTriggerEvents(fn){const hn=(0,f.i8)(fn);!this._platform.isBrowser||!hn||hn===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=hn,Et.forEach(On=>{Ze._eventManager.addHandler(this._ngZone,On,hn,this)}))}handleEvent(fn){"mousedown"===fn.type?this._onMousedown(fn):"touchstart"===fn.type?this._onTouchStart(fn):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{$e.forEach(hn=>{this._triggerElement.addEventListener(hn,this,Le)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(fn){0===fn.state?this._startFadeOutTransition(fn):2===fn.state&&this._destroyRipple(fn)}_startFadeOutTransition(fn){const hn=fn===this._mostRecentTransientRipple,{persistent:On}=fn.config;fn.state=1,!On&&(!hn||!this._isPointerDown)&&fn.fadeOut()}_destroyRipple(fn){const hn=this._activeRipples.get(fn)??null;this._activeRipples.delete(fn),this._activeRipples.size||(this._containerRect=null),fn===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),fn.state=3,null!==hn&&(fn.element.removeEventListener("transitionend",hn.onTransitionEnd),fn.element.removeEventListener("transitioncancel",hn.onTransitionCancel)),fn.element.remove()}_onMousedown(fn){const hn=(0,l._G)(fn),On=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!hn&&!On&&(this._isPointerDown=!0,this.fadeInRipple(fn.clientX,fn.clientY,this._target.rippleConfig))}_onTouchStart(fn){if(!this._target.rippleDisabled&&!(0,l.w6)(fn)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const hn=fn.changedTouches;if(hn)for(let On=0;On<hn.length;On++)this.fadeInRipple(hn[On].clientX,hn[On].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(fn=>{!fn.config.persistent&&(1===fn.state||fn.config.terminateOnPointerUp&&0===fn.state)&&fn.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const fn=this._triggerElement;fn&&(Et.forEach(hn=>Ze._eventManager.removeHandler(hn,fn,this)),this._pointerUpEventsRegistered&&$e.forEach(hn=>fn.removeEventListener(hn,this,Le)))}}const Ve=new n.nKC("mat-ripple-global-options");let nt=(()=>{class Zt{get disabled(){return this._disabled}set disabled(hn){hn&&this.fadeOutAllNonPersistent(),this._disabled=hn,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(hn){this._trigger=hn,this._setupTriggerEventsIfEnabled()}constructor(hn,On,fi,Ji,Fi){this._elementRef=hn,this._animationMode=Fi,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Ji||{},this._rippleRenderer=new Ze(this,On,hn,fi)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(hn,On=0,fi){return"number"==typeof hn?this._rippleRenderer.fadeInRipple(hn,On,{...this.rippleConfig,...fi}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...hn})}static{this.\u0275fac=function(On){return new(On||Zt)(n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(y.OD),n.rXU(Ve,8),n.rXU(n.bc$,8))}}static{this.\u0275dir=n.FsC({type:Zt,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(On,fi){2&On&&n.AVh("mat-ripple-unbounded",fi.unbounded)},inputs:{color:[n.Mj6.None,"matRippleColor","color"],unbounded:[n.Mj6.None,"matRippleUnbounded","unbounded"],centered:[n.Mj6.None,"matRippleCentered","centered"],radius:[n.Mj6.None,"matRippleRadius","radius"],animation:[n.Mj6.None,"matRippleAnimation","animation"],disabled:[n.Mj6.None,"matRippleDisabled","disabled"],trigger:[n.Mj6.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}}return Zt})(),Ot=(()=>{class Zt{static{this.\u0275fac=function(On){return new(On||Zt)}}static{this.\u0275mod=n.$C({type:Zt})}static{this.\u0275inj=n.G2t({imports:[L,L]})}}return Zt})(),at=(()=>{class Zt{constructor(hn){this._animationMode=hn,this.state="unchecked",this.disabled=!1,this.appearance="full"}static{this.\u0275fac=function(On){return new(On||Zt)(n.rXU(n.bc$,8))}}static{this.\u0275cmp=n.VBU({type:Zt,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(On,fi){2&On&&n.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===fi.state)("mat-pseudo-checkbox-checked","checked"===fi.state)("mat-pseudo-checkbox-disabled",fi.disabled)("mat-pseudo-checkbox-minimal","minimal"===fi.appearance)("mat-pseudo-checkbox-full","full"===fi.appearance)("_mat-animation-noopable","NoopAnimations"===fi._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(On,fi){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}}return Zt})(),It=(()=>{class Zt{static{this.\u0275fac=function(On){return new(On||Zt)}}static{this.\u0275mod=n.$C({type:Zt})}static{this.\u0275inj=n.G2t({imports:[L]})}}return Zt})();const We=new n.nKC("MAT_OPTION_PARENT_COMPONENT"),ht=new n.nKC("MatOptgroup");let Ht=0;class Je{constructor(fn,hn=!1){this.source=fn,this.isUserInput=hn}}let tt=(()=>{class Zt{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(hn){this._disabled=(0,f.he)(hn)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(hn,On,fi,Ji){this._element=hn,this._changeDetectorRef=On,this._parent=fi,this.group=Ji,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Ht++,this.onSelectionChange=new n.bkB,this._stateChanges=new O.B7}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(hn=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),hn&&this._emitSelectionChangeEvent())}deselect(hn=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),hn&&this._emitSelectionChangeEvent())}focus(hn,On){const fi=this._getHostElement();"function"==typeof fi.focus&&fi.focus(On)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(hn){(hn.keyCode===P.Fm||hn.keyCode===P.t6)&&!(0,P.rp)(hn)&&(this._selectViaInteraction(),hn.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const hn=this.viewValue;hn!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=hn)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(hn=!1){this.onSelectionChange.emit(new Je(this,hn))}static{this.\u0275fac=function(On){n.QTQ()}}static{this.\u0275dir=n.FsC({type:Zt,viewQuery:function(On,fi){if(1&On&&n.GBs(r,7),2&On){let Ji;n.mGM(Ji=n.lsd())&&(fi._text=Ji.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}})}}return Zt})(),rt=(()=>{class Zt extends tt{constructor(hn,On,fi,Ji){super(hn,On,fi,Ji)}static{this.\u0275fac=function(On){return new(On||Zt)(n.rXU(n.aKT),n.rXU(n.gRc),n.rXU(We,8),n.rXU(ht,8))}}static{this.\u0275cmp=n.VBU({type:Zt,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(On,fi){1&On&&n.bIt("click",function(){return fi._selectViaInteraction()})("keydown",function(Fi){return fi._handleKeydown(Fi)}),2&On&&(n.Mr5("id",fi.id),n.BMQ("aria-selected",fi.selected)("aria-disabled",fi.disabled.toString()),n.AVh("mdc-list-item--selected",fi.selected)("mat-mdc-option-multiple",fi.multiple)("mat-mdc-option-active",fi.active)("mdc-list-item--disabled",fi.disabled))},exportAs:["matOption"],features:[n.Vt3],ngContentSelectors:c,decls:8,vars:5,consts:[["text",""],["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state",4,"ngIf"],[1,"mdc-list-item__primary-text"],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(On,fi){1&On&&(n.NAR(a),n.DNE(0,m,1,2,"mat-pseudo-checkbox",1),n.SdG(1),n.j41(2,"span",2,0),n.SdG(4,1),n.k0s(),n.DNE(5,M,1,1,"mat-pseudo-checkbox",3)(6,D,2,1,"span",4),n.nrm(7,"div",5)),2&On&&(n.Y8G("ngIf",fi.multiple),n.R7$(5),n.Y8G("ngIf",!fi.multiple&&fi.selected&&!fi.hideSingleSelectionIndicator),n.R7$(),n.Y8G("ngIf",fi.group&&fi.group._inert),n.R7$(),n.Y8G("matRippleTrigger",fi._getHostElement())("matRippleDisabled",fi.disabled||fi.disableRipple))},dependencies:[nt,S.bT,at],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return Zt})();function et(Zt,fn,hn){if(hn.length){let On=fn.toArray(),fi=hn.toArray(),Ji=0;for(let Fi=0;Fi<Zt+1;Fi++)On[Fi].group&&On[Fi].group===fi[Ji]&&Ji++;return Ji}return 0}function St(Zt,fn,hn,On){return Zt<hn?Zt:Zt+fn>hn+On?Math.max(0,Zt-On+fn):hn}let Gt=(()=>{class Zt{static{this.\u0275fac=function(On){return new(On||Zt)}}static{this.\u0275mod=n.$C({type:Zt})}static{this.\u0275inj=n.G2t({imports:[Ot,S.MD,L,It]})}}return Zt})();const yt={capture:!0},Wt=["focus","click","mouseenter","touchstart"],ke="mat-ripple-loader-uninitialized",be="mat-ripple-loader-class-name",Ae="mat-ripple-loader-centered",qe="mat-ripple-loader-disabled";let Lt=(()=>{class Zt{constructor(){this._document=(0,n.WQX)(S.qQ,{optional:!0}),this._animationMode=(0,n.WQX)(n.bc$,{optional:!0}),this._globalRippleOptions=(0,n.WQX)(Ve,{optional:!0}),this._platform=(0,n.WQX)(y.OD),this._ngZone=(0,n.WQX)(n.SKi),this._onInteraction=hn=>{if(!(hn.target instanceof HTMLElement))return;const fi=hn.target.closest(`[${ke}]`);fi&&this.createRipple(fi)},this._ngZone.runOutsideAngular(()=>{for(const hn of Wt)this._document?.addEventListener(hn,this._onInteraction,yt)})}ngOnDestroy(){for(const hn of Wt)this._document?.removeEventListener(hn,this._onInteraction,yt)}configureRipple(hn,On){hn.setAttribute(ke,""),(On.className||!hn.hasAttribute(be))&&hn.setAttribute(be,On.className||""),On.centered&&hn.setAttribute(Ae,""),On.disabled&&hn.setAttribute(qe,"")}getRipple(hn){return hn.matRipple?hn.matRipple:this.createRipple(hn)}setDisabled(hn,On){const fi=hn.matRipple;fi?fi.disabled=On:On?hn.setAttribute(qe,""):hn.removeAttribute(qe)}createRipple(hn){if(!this._document)return;hn.querySelector(".mat-ripple")?.remove();const On=this._document.createElement("span");On.classList.add("mat-ripple",hn.getAttribute(be)),hn.append(On);const fi=new nt(new n.aKT(On),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return fi._isInitialized=!0,fi.trigger=hn,fi.centered=hn.hasAttribute(Ae),fi.disabled=hn.hasAttribute(qe),this.attachRipple(hn,fi),fi}attachRipple(hn,On){hn.removeAttribute(ke),hn.matRipple=On}static{this.\u0275fac=function(On){return new(On||Zt)}}static{this.\u0275prov=n.jDH({token:Zt,factory:Zt.\u0275fac,providedIn:"root"})}}return Zt})()},26537:(Bt,z,s)=>{"use strict";s.d(z,{BI:()=>He,CP:()=>X,E7:()=>Q,Vh:()=>J,Yi:()=>Me,bZ:()=>Ce,di:()=>re,hM:()=>me,ru:()=>I,tx:()=>Xe});var n=s(61904),l=s(61142),d=s(58527),v=s(31308),S=s(78064),y=s(6364),f=s(76614),O=s(80583),P=s(16229),_=s(63997),i=s(8619),r=s(65706),a=s(34593),c=s(25373),m=s(51635);function D(W,$){}s(40262);class I{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const U="mdc-dialog--open",V="mdc-dialog--opening",T="mdc-dialog--closing";let E=(()=>{class W extends S.sU{constructor(le,Pe,Fe,At,Le,Et,$e,Ze){super(le,Pe,Fe,At,Le,Et,$e,Ze),this._animationStateChanged=new d.bkB}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(le){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:le})}static{this.\u0275fac=function(Pe){return new(Pe||W)(d.rXU(d.aKT),d.rXU(v.GX),d.rXU(l.qQ,8),d.rXU(I),d.rXU(v.Z7),d.rXU(d.SKi),d.rXU(n.yY),d.rXU(v.FN))}}static{this.\u0275cmp=d.VBU({type:W,selectors:[["ng-component"]],features:[d.Vt3],decls:0,vars:0,template:function(Pe,Fe){},encapsulation:2})}}return W})();const g="--mat-dialog-transition-duration";function R(W){return null==W?null:"number"==typeof W?W:W.endsWith("ms")?(0,y.OE)(W.substring(0,W.length-2)):W.endsWith("s")?1e3*(0,y.OE)(W.substring(0,W.length-1)):"0"===W?0:null}let B=(()=>{class W extends E{constructor(le,Pe,Fe,At,Le,Et,$e,Ze,Qe){super(le,Pe,Fe,At,Le,Et,$e,Qe),this._animationMode=Ze,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?R(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?R(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(g,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(V,U)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(U),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(U),this._animationsEnabled?(this._hostElement.style.setProperty(g,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(T)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(V,T)}_waitForAnimationToComplete(le,Pe){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(Pe,le)}_requestAnimationFrame(le){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(le):le()})}static{this.\u0275fac=function(Pe){return new(Pe||W)(d.rXU(d.aKT),d.rXU(v.GX),d.rXU(l.qQ,8),d.rXU(I),d.rXU(v.Z7),d.rXU(d.SKi),d.rXU(n.yY),d.rXU(d.bc$,8),d.rXU(v.FN))}}static{this.\u0275cmp=d.VBU({type:W,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(Pe,Fe){2&Pe&&(d.Mr5("id",Fe._config.id),d.BMQ("aria-modal",Fe._config.ariaModal)("role",Fe._config.role)("aria-labelledby",Fe._config.ariaLabel?null:Fe._ariaLabelledByQueue[0])("aria-label",Fe._config.ariaLabel)("aria-describedby",Fe._config.ariaDescribedBy||null),d.AVh("_mat-animation-noopable",!Fe._animationsEnabled))},features:[d.Vt3],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(Pe,Fe){1&Pe&&(d.j41(0,"div",0)(1,"div",1),d.DNE(2,D,0,0,"ng-template",2),d.k0s()())},dependencies:[f.I3],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{--mdc-dialog-container-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}}return W})();class X{constructor($,le,Pe){this._ref=$,this._containerInstance=Pe,this._afterOpened=new O.B7,this._beforeClosed=new O.B7,this._state=0,this.disableClose=le.disableClose,this.id=$.id,Pe._animationStateChanged.pipe((0,i.p)(Fe=>"opened"===Fe.state),(0,r.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Pe._animationStateChanged.pipe((0,i.p)(Fe=>"closed"===Fe.state),(0,r.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),$.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,P.h)(this.backdropClick(),this.keydownEvents().pipe((0,i.p)(Fe=>Fe.keyCode===c._f&&!this.disableClose&&!(0,c.rp)(Fe)))).subscribe(Fe=>{this.disableClose||(Fe.preventDefault(),H(this,"keydown"===Fe.type?"keyboard":"mouse"))})}close($){this._result=$,this._containerInstance._animationStateChanged.pipe((0,i.p)(le=>"closing"===le.state),(0,r.s)(1)).subscribe(le=>{this._beforeClosed.next($),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),le.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition($){let le=this._ref.config.positionStrategy;return $&&($.left||$.right)?$.left?le.left($.left):le.right($.right):le.centerHorizontally(),$&&($.top||$.bottom)?$.top?le.top($.top):le.bottom($.bottom):le.centerVertically(),this._ref.updatePosition(),this}updateSize($="",le=""){return this._ref.updateSize($,le),this}addPanelClass($){return this._ref.addPanelClass($),this}removePanelClass($){return this._ref.removePanelClass($),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function H(W,$,le){return W._closeInteractionType=$,W.close(le)}const J=new d.nKC("MatMdcDialogData"),re=new d.nKC("mat-mdc-dialog-default-options"),ie=new d.nKC("mat-mdc-dialog-scroll-strategy"),ue={provide:ie,deps:[n.hJ],useFactory:function ve(W){return()=>W.scrollStrategies.block()}};let Z=0,Se=(()=>{class W{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const le=this._parentDialog;return le?le._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(le,Pe,Fe,At,Le,Et,$e,Ze,Qe,Ve){this._overlay=le,this._defaultOptions=Fe,this._parentDialog=At,this._dialogRefConstructor=$e,this._dialogContainerType=Ze,this._dialogDataToken=Qe,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new O.B7,this._afterOpenedAtThisLevel=new O.B7,this._idPrefix="mat-dialog-",this.dialogConfigClass=I,this.afterAllClosed=(0,_.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,a.Z)(void 0))),this._scrollStrategy=Et,this._dialog=Pe.get(S.lG)}open(le,Pe){let Fe;(Pe={...this._defaultOptions||new I,...Pe}).id=Pe.id||`${this._idPrefix}${Z++}`,Pe.scrollStrategy=Pe.scrollStrategy||this._scrollStrategy();const At=this._dialog.open(le,{...Pe,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:Pe},{provide:S.Pe,useValue:Pe}]},templateContext:()=>({dialogRef:Fe}),providers:(Le,Et,$e)=>(Fe=new this._dialogRefConstructor(Le,Pe,$e),Fe.updatePosition(Pe?.position),[{provide:this._dialogContainerType,useValue:$e},{provide:this._dialogDataToken,useValue:Et.data},{provide:this._dialogRefConstructor,useValue:Fe}])});return Fe.componentRef=At.componentRef,Fe.componentInstance=At.componentInstance,this.openDialogs.push(Fe),this.afterOpened.next(Fe),Fe.afterClosed().subscribe(()=>{const Le=this.openDialogs.indexOf(Fe);Le>-1&&(this.openDialogs.splice(Le,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Fe}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(le){return this.openDialogs.find(Pe=>Pe.id===le)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(le){let Pe=le.length;for(;Pe--;)le[Pe].close()}static{this.\u0275fac=function(Pe){d.QTQ()}}static{this.\u0275prov=d.jDH({token:W,factory:W.\u0275fac})}}return W})(),Ce=(()=>{class W extends Se{constructor(le,Pe,Fe,At,Le,Et,$e,Ze){super(le,Pe,At,Et,$e,Le,X,B,J,Ze),this._idPrefix="mat-mdc-dialog-"}static{this.\u0275fac=function(Pe){return new(Pe||W)(d.KVO(n.hJ),d.KVO(d.zZn),d.KVO(l.aZ,8),d.KVO(re,8),d.KVO(ie),d.KVO(W,12),d.KVO(n.Sf),d.KVO(d.bc$,8))}}static{this.\u0275prov=d.jDH({token:W,factory:W.\u0275fac})}}return W})(),Be=0,Xe=(()=>{class W{constructor(le,Pe,Fe){this.dialogRef=le,this._elementRef=Pe,this._dialog=Fe,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=A(this._elementRef,this._dialog.openDialogs))}ngOnChanges(le){const Pe=le._matDialogClose||le._matDialogCloseResult;Pe&&(this.dialogResult=Pe.currentValue)}_onButtonClick(le){H(this.dialogRef,0===le.screenX&&0===le.screenY?"keyboard":"mouse",this.dialogResult)}static{this.\u0275fac=function(Pe){return new(Pe||W)(d.rXU(X,8),d.rXU(d.aKT),d.rXU(Ce))}}static{this.\u0275dir=d.FsC({type:W,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(Pe,Fe){1&Pe&&d.bIt("click",function(Le){return Fe._onButtonClick(Le)}),2&Pe&&d.BMQ("aria-label",Fe.ariaLabel||null)("type",Fe.type)},inputs:{ariaLabel:[d.Mj6.None,"aria-label","ariaLabel"],type:"type",dialogResult:[d.Mj6.None,"mat-dialog-close","dialogResult"],_matDialogClose:[d.Mj6.None,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[d.OA$]})}}return W})(),He=(()=>{class W{constructor(le,Pe,Fe){this._dialogRef=le,this._elementRef=Pe,this._dialog=Fe,this.id="mat-mdc-dialog-title-"+Be++}ngOnInit(){this._dialogRef||(this._dialogRef=A(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._dialogRef._containerInstance?._ariaLabelledByQueue?.push(this.id)})}ngOnDestroy(){const le=this._dialogRef?._containerInstance?._ariaLabelledByQueue;le&&Promise.resolve().then(()=>{const Pe=le.indexOf(this.id);Pe>-1&&le.splice(Pe,1)})}static{this.\u0275fac=function(Pe){return new(Pe||W)(d.rXU(X,8),d.rXU(d.aKT),d.rXU(Ce))}}static{this.\u0275dir=d.FsC({type:W,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(Pe,Fe){2&Pe&&d.Mr5("id",Fe.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]})}}return W})(),Me=(()=>{class W{static{this.\u0275fac=function(Pe){return new(Pe||W)}}static{this.\u0275dir=d.FsC({type:W,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]})}}return W})(),Q=(()=>{class W{constructor(){this.align="start"}static{this.\u0275fac=function(Pe){return new(Pe||W)}}static{this.\u0275dir=d.FsC({type:W,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(Pe,Fe){2&Pe&&d.AVh("mat-mdc-dialog-actions-align-center","center"===Fe.align)("mat-mdc-dialog-actions-align-end","end"===Fe.align)},inputs:{align:"align"}})}}return W})();function A(W,$){let le=W.nativeElement.parentElement;for(;le&&!le.classList.contains("mat-mdc-dialog-container");)le=le.parentElement;return le?$.find(Pe=>Pe.id===le.id):null}let me=(()=>{class W{static{this.\u0275fac=function(Pe){return new(Pe||W)}}static{this.\u0275mod=d.$C({type:W})}static{this.\u0275inj=d.G2t({providers:[Ce,ue],imports:[S.Ph,n.z_,f.jc,m.yE,m.yE]})}}return W})()},44224:(Bt,z,s)=>{"use strict";s.d(z,{q:()=>v,w:()=>S});var n=s(58527),l=s(6364),d=s(51635);let v=(()=>{class y{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(O){this._vertical=(0,l.he)(O)}get inset(){return this._inset}set inset(O){this._inset=(0,l.he)(O)}static{this.\u0275fac=function(P){return new(P||y)}}static{this.\u0275cmp=n.VBU({type:y,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(P,_){2&P&&(n.BMQ("aria-orientation",_.vertical?"vertical":"horizontal"),n.AVh("mat-divider-vertical",_.vertical)("mat-divider-horizontal",!_.vertical)("mat-divider-inset",_.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(P,_){},styles:[".mat-divider{--mat-divider-width:1px;display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}}return y})(),S=(()=>{class y{static{this.\u0275fac=function(P){return new(P||y)}}static{this.\u0275mod=n.$C({type:y})}static{this.\u0275inj=n.G2t({imports:[d.yE,d.yE]})}}return y})()},26945:(Bt,z,s)=>{"use strict";s.d(z,{BS:()=>me,MY:()=>ne,GK:()=>Ce,Z2:()=>Me,WN:()=>A});var n=s(58527),l=s(40567),d=s(6364),v=s(80583),S=s(10399);let y=0;const f=new n.nKC("CdkAccordion");let O=(()=>{class G{constructor(){this._stateChanges=new v.B7,this._openCloseAllActions=new v.B7,this.id="cdk-accordion-"+y++,this._multi=!1}get multi(){return this._multi}set multi($){this._multi=(0,d.he)($)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges($){this._stateChanges.next($)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static{this.\u0275fac=function(le){return new(le||G)}}static{this.\u0275dir=n.FsC({type:G,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[n.Jv_([{provide:f,useExisting:G}]),n.OA$]})}}return G})(),P=0,_=(()=>{class G{get expanded(){return this._expanded}set expanded($){$=(0,d.he)($),this._expanded!==$&&(this._expanded=$,this.expandedChange.emit($),$?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled($){this._disabled=(0,d.he)($)}constructor($,le,Pe){this.accordion=$,this._changeDetectorRef=le,this._expansionDispatcher=Pe,this._openCloseAllSubscription=S.y.EMPTY,this.closed=new n.bkB,this.opened=new n.bkB,this.destroyed=new n.bkB,this.expandedChange=new n.bkB,this.id="cdk-accordion-child-"+P++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=Pe.listen((Fe,At)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===At&&this.id!==Fe&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe($=>{this.disabled||(this.expanded=$)})}static{this.\u0275fac=function(le){return new(le||G)(n.rXU(f,12),n.rXU(n.gRc),n.rXU(l.zP))}}static{this.\u0275dir=n.FsC({type:G,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n.Jv_([{provide:f,useValue:void 0}])]})}}return G})(),i=(()=>{class G{static{this.\u0275fac=function(le){return new(le||G)}}static{this.\u0275mod=n.$C({type:G})}static{this.\u0275inj=n.G2t({})}}return G})();var r=s(76614),a=s(61142),c=s(51635),m=s(31308),M=s(53461),D=s(34593),I=s(8619),U=s(65706),V=s(25373),T=s(12532),N=s(16229),L=s(40262);const E=["body"],g=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],R=["mat-expansion-panel-header","*","mat-action-row"];function B(G,W){}const X=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],H=["mat-panel-title","mat-panel-description","*"];function J(G,W){if(1&G&&n.nrm(0,"span",2),2&G){const $=n.XpG();n.Y8G("@indicatorRotate",$._getExpandedState())}}const re=new n.nKC("MAT_ACCORDION"),ie="225ms cubic-bezier(0.4,0.0,0.2,1)",ve={indicatorRotate:(0,L.hZ)("indicatorRotate",[(0,L.wk)("collapsed, void",(0,L.iF)({transform:"rotate(0deg)"})),(0,L.wk)("expanded",(0,L.iF)({transform:"rotate(180deg)"})),(0,L.kY)("expanded <=> collapsed, void => collapsed",(0,L.i0)(ie))]),bodyExpansion:(0,L.hZ)("bodyExpansion",[(0,L.wk)("collapsed, void",(0,L.iF)({height:"0px",visibility:"hidden"})),(0,L.wk)("expanded",(0,L.iF)({height:"*",visibility:""})),(0,L.kY)("expanded <=> collapsed, void => collapsed",(0,L.i0)(ie))])},ue=new n.nKC("MAT_EXPANSION_PANEL");let se=(()=>{class G{constructor($,le){this._template=$,this._expansionPanel=le}static{this.\u0275fac=function(le){return new(le||G)(n.rXU(n.C4Q),n.rXU(ue,8))}}static{this.\u0275dir=n.FsC({type:G,selectors:[["ng-template","matExpansionPanelContent",""]]})}}return G})(),Z=0;const Se=new n.nKC("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Ce=(()=>{class G extends _{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle($){this._hideToggle=(0,d.he)($)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition($){this._togglePosition=$}constructor($,le,Pe,Fe,At,Le,Et){super($,le,Pe),this._viewContainerRef=Fe,this._animationMode=Le,this._hideToggle=!1,this.afterExpand=new n.bkB,this.afterCollapse=new n.bkB,this._inputChanges=new v.B7,this._headerId="mat-expansion-panel-header-"+Z++,this._bodyAnimationDone=new v.B7,this.accordion=$,this._document=At,this._bodyAnimationDone.pipe((0,M.F)(($e,Ze)=>$e.fromState===Ze.fromState&&$e.toState===Ze.toState)).subscribe($e=>{"void"!==$e.fromState&&("expanded"===$e.toState?this.afterExpand.emit():"collapsed"===$e.toState&&this.afterCollapse.emit())}),Et&&(this.hideToggle=Et.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,D.Z)(null),(0,I.p)(()=>this.expanded&&!this._portal),(0,U.s)(1)).subscribe(()=>{this._portal=new r.VA(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges($){this._inputChanges.next($)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const $=this._document.activeElement,le=this._body.nativeElement;return $===le||le.contains($)}return!1}static{this.\u0275fac=function(le){return new(le||G)(n.rXU(re,12),n.rXU(n.gRc),n.rXU(l.zP),n.rXU(n.c1b),n.rXU(a.qQ),n.rXU(n.bc$,8),n.rXU(Se,8))}}static{this.\u0275cmp=n.VBU({type:G,selectors:[["mat-expansion-panel"]],contentQueries:function(le,Pe,Fe){if(1&le&&n.wni(Fe,se,5),2&le){let At;n.mGM(At=n.lsd())&&(Pe._lazyContent=At.first)}},viewQuery:function(le,Pe){if(1&le&&n.GBs(E,5),2&le){let Fe;n.mGM(Fe=n.lsd())&&(Pe._body=Fe.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(le,Pe){2&le&&n.AVh("mat-expanded",Pe.expanded)("_mat-animation-noopable","NoopAnimations"===Pe._animationMode)("mat-expansion-panel-spacing",Pe._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[n.Jv_([{provide:re,useValue:void 0},{provide:ue,useExisting:G}]),n.Vt3,n.OA$],ngContentSelectors:R,decls:7,vars:4,consts:[["body",""],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(le,Pe){if(1&le){const Fe=n.RV6();n.NAR(g),n.SdG(0),n.j41(1,"div",1,0),n.bIt("@bodyExpansion.done",function(Le){return n.eBV(Fe),n.Njj(Pe._bodyAnimationDone.next(Le))}),n.j41(3,"div",2),n.SdG(4,1),n.DNE(5,B,0,0,"ng-template",3),n.k0s(),n.SdG(6,2),n.k0s()}2&le&&(n.R7$(),n.Y8G("@bodyExpansion",Pe._getExpandedState())("id",Pe.id),n.BMQ("aria-labelledby",Pe._headerId),n.R7$(4),n.Y8G("cdkPortalOutlet",Pe._portal))},dependencies:[r.I3],styles:['.mat-expansion-panel{--mat-expansion-container-shape:4px;box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[ve.bodyExpansion]},changeDetection:0})}}return G})();class Xe{}const He=(0,c.BF)(Xe);let Me=(()=>{class G extends He{constructor($,le,Pe,Fe,At,Le,Et){super(),this.panel=$,this._element=le,this._focusMonitor=Pe,this._changeDetectorRef=Fe,this._animationMode=Le,this._parentChangeSubscription=S.y.EMPTY;const $e=$.accordion?$.accordion._stateChanges.pipe((0,I.p)(Ze=>!(!Ze.hideToggle&&!Ze.togglePosition))):T.w;this.tabIndex=parseInt(Et||"")||0,this._parentChangeSubscription=(0,N.h)($.opened,$.closed,$e,$._inputChanges.pipe((0,I.p)(Ze=>!!(Ze.hideToggle||Ze.disabled||Ze.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),$.closed.pipe((0,I.p)(()=>$._containsFocus())).subscribe(()=>Pe.focusVia(le,"program")),At&&(this.expandedHeight=At.expandedHeight,this.collapsedHeight=At.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const $=this._isExpanded();return $&&this.expandedHeight?this.expandedHeight:!$&&this.collapsedHeight?this.collapsedHeight:null}_keydown($){switch($.keyCode){case V.t6:case V.Fm:(0,V.rp)($)||($.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown($))}}focus($,le){$?this._focusMonitor.focusVia(this._element,$,le):this._element.nativeElement.focus(le)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe($=>{$&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static{this.\u0275fac=function(le){return new(le||G)(n.rXU(Ce,1),n.rXU(n.aKT),n.rXU(m.FN),n.rXU(n.gRc),n.rXU(Se,8),n.rXU(n.bc$,8),n.kS0("tabindex"))}}static{this.\u0275cmp=n.VBU({type:G,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(le,Pe){1&le&&n.bIt("click",function(){return Pe._toggle()})("keydown",function(At){return Pe._keydown(At)}),2&le&&(n.BMQ("id",Pe.panel._headerId)("tabindex",Pe.tabIndex)("aria-controls",Pe._getPanelId())("aria-expanded",Pe._isExpanded())("aria-disabled",Pe.panel.disabled),n.xc7("height",Pe._getHeaderHeight()),n.AVh("mat-expanded",Pe._isExpanded())("mat-expansion-toggle-indicator-after","after"===Pe._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Pe._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Pe._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[n.Vt3],ngContentSelectors:H,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(le,Pe){1&le&&(n.NAR(X),n.j41(0,"span",0),n.SdG(1),n.SdG(2,1),n.SdG(3,2),n.k0s(),n.DNE(4,J,1,1,"span",1)),2&le&&(n.AVh("mat-content-hide-toggle",!Pe._showToggle()),n.R7$(4),n.Y8G("ngIf",Pe._showToggle()))},dependencies:[a.bT],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[ve.indicatorRotate]},changeDetection:0})}}return G})(),A=(()=>{class G{static{this.\u0275fac=function(le){return new(le||G)}}static{this.\u0275dir=n.FsC({type:G,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}}return G})(),me=(()=>{class G extends O{constructor(){super(...arguments),this._ownHeaders=new n.rOR,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle($){this._hideToggle=(0,d.he)($)}ngAfterContentInit(){this._headers.changes.pipe((0,D.Z)(this._headers)).subscribe($=>{this._ownHeaders.reset($.filter(le=>le.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new m.Bu(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown($){this._keyManager.onKeydown($)}_handleHeaderFocus($){this._keyManager.updateActiveItem($)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}static{this.\u0275fac=(()=>{let $;return function(Pe){return($||($=n.xGo(G)))(Pe||G)}})()}static{this.\u0275dir=n.FsC({type:G,selectors:[["mat-accordion"]],contentQueries:function(le,Pe,Fe){if(1&le&&n.wni(Fe,Me,5),2&le){let At;n.mGM(At=n.lsd())&&(Pe._headers=At)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(le,Pe){2&le&&n.AVh("mat-accordion-multi",Pe.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[n.Jv_([{provide:re,useExisting:G}]),n.Vt3]})}}return G})(),ne=(()=>{class G{static{this.\u0275fac=function(le){return new(le||G)}}static{this.\u0275mod=n.$C({type:G})}static{this.\u0275inj=n.G2t({imports:[a.MD,c.yE,i,r.jc]})}}return G})()},74292:(Bt,z,s)=>{"use strict";s.d(z,{MV:()=>Z,RG:()=>Ot,qT:()=>$,xb:()=>At});var n=s(58527),d=(s(40262),s(61142)),v=s(26321),S=s(51635);let se=0,Z=(()=>{class at{constructor(){this.align="start",this.id="mat-mdc-hint-"+se++}static{this.\u0275fac=function(xe){return new(xe||at)}}static{this.\u0275dir=n.FsC({type:at,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(xe,lt){2&xe&&(n.Mr5("id",lt.id),n.BMQ("align",null),n.AVh("mat-mdc-form-field-hint-end","end"===lt.align))},inputs:{align:"align",id:"id"}})}}return at})(),$=(()=>{class at{static{this.\u0275fac=function(xe){return new(xe||at)}}static{this.\u0275dir=n.FsC({type:at})}}return at})();const At=new n.nKC("MatFormField");let Ot=(()=>{class at{static{this.\u0275fac=function(xe){return new(xe||at)}}static{this.\u0275mod=n.$C({type:at})}static{this.\u0275inj=n.G2t({imports:[S.yE,d.MD,v.w5,S.yE]})}}return at})()},29370:(Bt,z,s)=>{"use strict";s.d(z,{An:()=>Be,m_:()=>Xe,tp:()=>R});var n=s(58527),l=s(51635),d=s(6364),v=s(61142),S=s(43848),y=s(59859),f=s(93181),O=s(10399),P=s(91384),_=s(83915),i=s(14714),r=s(43615),a=s(65770),c=s(65706),m=s(94485),M=s(74150);const D=["*"];let I;function V(He){return function U(){if(void 0===I&&(I=null,typeof window<"u")){const He=window;void 0!==He.trustedTypes&&(I=He.trustedTypes.createPolicy("angular#components",{createHTML:Me=>Me}))}return I}()?.createHTML(He)||He}function T(He){return Error(`Unable to find icon with the name "${He}"`)}function L(He){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${He}".`)}function E(He){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${He}".`)}class g{constructor(Me,Q,A){this.url=Me,this.svgText=Q,this.options=A}}let R=(()=>{class He{constructor(Q,A,me,ne){this._httpClient=Q,this._sanitizer=A,this._errorHandler=ne,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=me}addSvgIcon(Q,A,me){return this.addSvgIconInNamespace("",Q,A,me)}addSvgIconLiteral(Q,A,me){return this.addSvgIconLiteralInNamespace("",Q,A,me)}addSvgIconInNamespace(Q,A,me,ne){return this._addSvgIconConfig(Q,A,new g(me,null,ne))}addSvgIconResolver(Q){return this._resolvers.push(Q),this}addSvgIconLiteralInNamespace(Q,A,me,ne){const G=this._sanitizer.sanitize(n.WPN.HTML,me);if(!G)throw E(me);const W=V(G);return this._addSvgIconConfig(Q,A,new g("",W,ne))}addSvgIconSet(Q,A){return this.addSvgIconSetInNamespace("",Q,A)}addSvgIconSetLiteral(Q,A){return this.addSvgIconSetLiteralInNamespace("",Q,A)}addSvgIconSetInNamespace(Q,A,me){return this._addSvgIconSetConfig(Q,new g(A,null,me))}addSvgIconSetLiteralInNamespace(Q,A,me){const ne=this._sanitizer.sanitize(n.WPN.HTML,A);if(!ne)throw E(A);const G=V(ne);return this._addSvgIconSetConfig(Q,new g("",G,me))}registerFontClassAlias(Q,A=Q){return this._fontCssClassesByAlias.set(Q,A),this}classNameForFontAlias(Q){return this._fontCssClassesByAlias.get(Q)||Q}setDefaultFontSetClass(...Q){return this._defaultFontSetClass=Q,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Q){const A=this._sanitizer.sanitize(n.WPN.RESOURCE_URL,Q);if(!A)throw L(Q);const me=this._cachedIconsByUrl.get(A);return me?(0,S.of)(H(me)):this._loadSvgIconFromConfig(new g(Q,null)).pipe((0,P.M)(ne=>this._cachedIconsByUrl.set(A,ne)),(0,_.T)(ne=>H(ne)))}getNamedSvgIcon(Q,A=""){const me=J(A,Q);let ne=this._svgIconConfigs.get(me);if(ne)return this._getSvgFromConfig(ne);if(ne=this._getIconConfigFromResolvers(A,Q),ne)return this._svgIconConfigs.set(me,ne),this._getSvgFromConfig(ne);const G=this._iconSetConfigs.get(A);return G?this._getSvgFromIconSetConfigs(Q,G):(0,y.$)(T(me))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Q){return Q.svgText?(0,S.of)(H(this._svgElementFromConfig(Q))):this._loadSvgIconFromConfig(Q).pipe((0,_.T)(A=>H(A)))}_getSvgFromIconSetConfigs(Q,A){const me=this._extractIconWithNameFromAnySet(Q,A);if(me)return(0,S.of)(me);const ne=A.filter(G=>!G.svgText).map(G=>this._loadSvgIconSetFromConfig(G).pipe((0,i.W)(W=>{const le=`Loading icon set URL: ${this._sanitizer.sanitize(n.WPN.RESOURCE_URL,G.url)} failed: ${W.message}`;return this._errorHandler.handleError(new Error(le)),(0,S.of)(null)})));return(0,f.p)(ne).pipe((0,_.T)(()=>{const G=this._extractIconWithNameFromAnySet(Q,A);if(!G)throw T(Q);return G}))}_extractIconWithNameFromAnySet(Q,A){for(let me=A.length-1;me>=0;me--){const ne=A[me];if(ne.svgText&&ne.svgText.toString().indexOf(Q)>-1){const G=this._svgElementFromConfig(ne),W=this._extractSvgIconFromSet(G,Q,ne.options);if(W)return W}}return null}_loadSvgIconFromConfig(Q){return this._fetchIcon(Q).pipe((0,P.M)(A=>Q.svgText=A),(0,_.T)(()=>this._svgElementFromConfig(Q)))}_loadSvgIconSetFromConfig(Q){return Q.svgText?(0,S.of)(null):this._fetchIcon(Q).pipe((0,P.M)(A=>Q.svgText=A))}_extractSvgIconFromSet(Q,A,me){const ne=Q.querySelector(`[id="${A}"]`);if(!ne)return null;const G=ne.cloneNode(!0);if(G.removeAttribute("id"),"svg"===G.nodeName.toLowerCase())return this._setSvgAttributes(G,me);if("symbol"===G.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(G),me);const W=this._svgElementFromString(V("<svg></svg>"));return W.appendChild(G),this._setSvgAttributes(W,me)}_svgElementFromString(Q){const A=this._document.createElement("DIV");A.innerHTML=Q;const me=A.querySelector("svg");if(!me)throw Error("<svg> tag not found");return me}_toSvgElement(Q){const A=this._svgElementFromString(V("<svg></svg>")),me=Q.attributes;for(let ne=0;ne<me.length;ne++){const{name:G,value:W}=me[ne];"id"!==G&&A.setAttribute(G,W)}for(let ne=0;ne<Q.childNodes.length;ne++)Q.childNodes[ne].nodeType===this._document.ELEMENT_NODE&&A.appendChild(Q.childNodes[ne].cloneNode(!0));return A}_setSvgAttributes(Q,A){return Q.setAttribute("fit",""),Q.setAttribute("height","100%"),Q.setAttribute("width","100%"),Q.setAttribute("preserveAspectRatio","xMidYMid meet"),Q.setAttribute("focusable","false"),A&&A.viewBox&&Q.setAttribute("viewBox",A.viewBox),Q}_fetchIcon(Q){const{url:A,options:me}=Q,ne=me?.withCredentials??!1;if(!this._httpClient)throw function N(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==A)throw Error(`Cannot fetch icon from URL "${A}".`);const G=this._sanitizer.sanitize(n.WPN.RESOURCE_URL,A);if(!G)throw L(A);const W=this._inProgressUrlFetches.get(G);if(W)return W;const $=this._httpClient.get(G,{responseType:"text",withCredentials:ne}).pipe((0,_.T)(le=>V(le)),(0,r.j)(()=>this._inProgressUrlFetches.delete(G)),(0,a.u)());return this._inProgressUrlFetches.set(G,$),$}_addSvgIconConfig(Q,A,me){return this._svgIconConfigs.set(J(Q,A),me),this}_addSvgIconSetConfig(Q,A){const me=this._iconSetConfigs.get(Q);return me?me.push(A):this._iconSetConfigs.set(Q,[A]),this}_svgElementFromConfig(Q){if(!Q.svgElement){const A=this._svgElementFromString(Q.svgText);this._setSvgAttributes(A,Q.options),Q.svgElement=A}return Q.svgElement}_getIconConfigFromResolvers(Q,A){for(let me=0;me<this._resolvers.length;me++){const ne=this._resolvers[me](A,Q);if(ne)return re(ne)?new g(ne.url,null,ne.options):new g(ne,null)}}static{this.\u0275fac=function(A){return new(A||He)(n.KVO(m.Qq,8),n.KVO(M.up),n.KVO(v.qQ,8),n.KVO(n.zcH))}}static{this.\u0275prov=n.jDH({token:He,factory:He.\u0275fac,providedIn:"root"})}}return He})();function H(He){return He.cloneNode(!0)}function J(He,Me){return He+":"+Me}function re(He){return!(!He.url||!He.options)}const ie=(0,l.Zc)(class{constructor(He){this._elementRef=He}}),ve=new n.nKC("MAT_ICON_DEFAULT_OPTIONS"),ue=new n.nKC("mat-icon-location",{providedIn:"root",factory:function se(){const He=(0,n.WQX)(v.qQ),Me=He?He.location:null;return{getPathname:()=>Me?Me.pathname+Me.search:""}}}),Z=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Se=Z.map(He=>`[${He}]`).join(", "),Ce=/^url\(['"]?#(.*?)['"]?\)$/;let Be=(()=>{class He extends ie{get inline(){return this._inline}set inline(Q){this._inline=(0,d.he)(Q)}get svgIcon(){return this._svgIcon}set svgIcon(Q){Q!==this._svgIcon&&(Q?this._updateSvgIcon(Q):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Q)}get fontSet(){return this._fontSet}set fontSet(Q){const A=this._cleanupFontValue(Q);A!==this._fontSet&&(this._fontSet=A,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Q){const A=this._cleanupFontValue(Q);A!==this._fontIcon&&(this._fontIcon=A,this._updateFontIconClasses())}constructor(Q,A,me,ne,G,W){super(Q),this._iconRegistry=A,this._location=ne,this._errorHandler=G,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=O.y.EMPTY,W&&(W.color&&(this.color=this.defaultColor=W.color),W.fontSet&&(this.fontSet=W.fontSet)),me||Q.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(Q){if(!Q)return["",""];const A=Q.split(":");switch(A.length){case 1:return["",A[0]];case 2:return A;default:throw Error(`Invalid icon name: "${Q}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Q=this._elementsWithExternalReferences;if(Q&&Q.size){const A=this._location.getPathname();A!==this._previousPath&&(this._previousPath=A,this._prependPathToReferences(A))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Q){this._clearSvgElement();const A=this._location.getPathname();this._previousPath=A,this._cacheChildrenWithExternalReferences(Q),this._prependPathToReferences(A),this._elementRef.nativeElement.appendChild(Q)}_clearSvgElement(){const Q=this._elementRef.nativeElement;let A=Q.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();A--;){const me=Q.childNodes[A];(1!==me.nodeType||"svg"===me.nodeName.toLowerCase())&&me.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Q=this._elementRef.nativeElement,A=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(me=>me.length>0);this._previousFontSetClass.forEach(me=>Q.classList.remove(me)),A.forEach(me=>Q.classList.add(me)),this._previousFontSetClass=A,this.fontIcon!==this._previousFontIconClass&&!A.includes("mat-ligature-font")&&(this._previousFontIconClass&&Q.classList.remove(this._previousFontIconClass),this.fontIcon&&Q.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Q){return"string"==typeof Q?Q.trim().split(" ")[0]:Q}_prependPathToReferences(Q){const A=this._elementsWithExternalReferences;A&&A.forEach((me,ne)=>{me.forEach(G=>{ne.setAttribute(G.name,`url('${Q}#${G.value}')`)})})}_cacheChildrenWithExternalReferences(Q){const A=Q.querySelectorAll(Se),me=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ne=0;ne<A.length;ne++)Z.forEach(G=>{const W=A[ne],$=W.getAttribute(G),le=$?$.match(Ce):null;if(le){let Pe=me.get(W);Pe||(Pe=[],me.set(W,Pe)),Pe.push({name:G,value:le[1]})}})}_updateSvgIcon(Q){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Q){const[A,me]=this._splitIconName(Q);A&&(this._svgNamespace=A),me&&(this._svgName=me),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(me,A).pipe((0,c.s)(1)).subscribe(ne=>this._setSvgElement(ne),ne=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${A}:${me}! ${ne.message}`))})}}static{this.\u0275fac=function(A){return new(A||He)(n.rXU(n.aKT),n.rXU(R),n.kS0("aria-hidden"),n.rXU(ue),n.rXU(n.zcH),n.rXU(ve,8))}}static{this.\u0275cmp=n.VBU({type:He,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(A,me){2&A&&(n.BMQ("data-mat-icon-type",me._usingFontIcon()?"font":"svg")("data-mat-icon-name",me._svgName||me.fontIcon)("data-mat-icon-namespace",me._svgNamespace||me.fontSet)("fontIcon",me._usingFontIcon()?me.fontIcon:null),n.AVh("mat-icon-inline",me.inline)("mat-icon-no-color","primary"!==me.color&&"accent"!==me.color&&"warn"!==me.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.Vt3],ngContentSelectors:D,decls:1,vars:0,template:function(A,me){1&A&&(n.NAR(),n.SdG(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}}return He})(),Xe=(()=>{class He{static{this.\u0275fac=function(A){return new(A||He)}}static{this.\u0275mod=n.$C({type:He})}static{this.\u0275inj=n.G2t({imports:[l.yE,l.yE]})}}return He})()},50599:(Bt,z,s)=>{"use strict";s.d(z,{fg:()=>U,fS:()=>V});var n=s(6364),l=s(72653),d=s(58527),v=s(12532),S=s(80583);const y=(0,l.BQ)({passive:!0});let f=(()=>{class T{constructor(L,E){this._platform=L,this._ngZone=E,this._monitoredElements=new Map}monitor(L){if(!this._platform.isBrowser)return v.w;const E=(0,n.i8)(L),g=this._monitoredElements.get(E);if(g)return g.subject;const R=new S.B7,B="cdk-text-field-autofilled",X=H=>{"cdk-text-field-autofill-start"!==H.animationName||E.classList.contains(B)?"cdk-text-field-autofill-end"===H.animationName&&E.classList.contains(B)&&(E.classList.remove(B),this._ngZone.run(()=>R.next({target:H.target,isAutofilled:!1}))):(E.classList.add(B),this._ngZone.run(()=>R.next({target:H.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{E.addEventListener("animationstart",X,y),E.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(E,{subject:R,unlisten:()=>{E.removeEventListener("animationstart",X,y)}}),R}stopMonitoring(L){const E=(0,n.i8)(L),g=this._monitoredElements.get(E);g&&(g.unlisten(),g.subject.complete(),E.classList.remove("cdk-text-field-autofill-monitored"),E.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(E))}ngOnDestroy(){this._monitoredElements.forEach((L,E)=>this.stopMonitoring(E))}static{this.\u0275fac=function(E){return new(E||T)(d.KVO(l.OD),d.KVO(d.SKi))}}static{this.\u0275prov=d.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})(),_=(()=>{class T{static{this.\u0275fac=function(E){return new(E||T)}}static{this.\u0275mod=d.$C({type:T})}static{this.\u0275inj=d.G2t({})}}return T})();var i=s(56106),r=s(51635),a=s(74292);const m=new d.nKC("MAT_INPUT_VALUE_ACCESSOR"),M=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let D=0;const I=(0,r.J8)(class{constructor(T,N,L,E){this._defaultErrorStateMatcher=T,this._parentForm=N,this._parentFormGroup=L,this.ngControl=E,this.stateChanges=new S.B7}});let U=(()=>{class T extends I{get disabled(){return this._disabled}set disabled(L){this._disabled=(0,n.he)(L),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(L){this._id=L||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(i.k0.required)??!1}set required(L){this._required=(0,n.he)(L)}get type(){return this._type}set type(L){this._type=L||"text",this._validateType(),!this._isTextarea&&(0,l.MU)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(L){L!==this.value&&(this._inputValueAccessor.value=L,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(L){this._readonly=(0,n.he)(L)}constructor(L,E,g,R,B,X,H,J,re,ie){super(X,R,B,g),this._elementRef=L,this._platform=E,this._autofillMonitor=J,this._formField=ie,this._uid="mat-input-"+D++,this.focused=!1,this.stateChanges=new S.B7,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(se=>(0,l.MU)().has(se)),this._iOSKeyupListener=se=>{const Z=se.target;!Z.value&&0===Z.selectionStart&&0===Z.selectionEnd&&(Z.setSelectionRange(1,1),Z.setSelectionRange(0,0))};const ve=this._elementRef.nativeElement,ue=ve.nodeName.toLowerCase();this._inputValueAccessor=H||ve,this._previousNativeValue=this.value,this.id=this.id,E.IOS&&re.runOutsideAngular(()=>{L.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===ue,this._isTextarea="textarea"===ue,this._isInFormField=!!ie,this._isNativeSelect&&(this.controlType=ve.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(L=>{this.autofilled=L.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(L){this._elementRef.nativeElement.focus(L)}_focusChanged(L){L!==this.focused&&(this.focused=L,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const L=this._elementRef.nativeElement.value;this._previousNativeValue!==L&&(this._previousNativeValue=L,this.stateChanges.next())}_dirtyCheckPlaceholder(){const L=this._getPlaceholder();if(L!==this._previousPlaceholder){const E=this._elementRef.nativeElement;this._previousPlaceholder=L,L?E.setAttribute("placeholder",L):E.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){M.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let L=this._elementRef.nativeElement.validity;return L&&L.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const L=this._elementRef.nativeElement,E=L.options[0];return this.focused||L.multiple||!this.empty||!!(L.selectedIndex>-1&&E&&E.label)}return this.focused||!this.empty}setDescribedByIds(L){L.length?this._elementRef.nativeElement.setAttribute("aria-describedby",L.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const L=this._elementRef.nativeElement;return this._isNativeSelect&&(L.multiple||L.size>1)}static{this.\u0275fac=function(E){return new(E||T)(d.rXU(d.aKT),d.rXU(l.OD),d.rXU(i.vO,10),d.rXU(i.cV,8),d.rXU(i.j4,8),d.rXU(r.es),d.rXU(m,10),d.rXU(f),d.rXU(d.SKi),d.rXU(a.xb,8))}}static{this.\u0275dir=d.FsC({type:T,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(E,g){1&E&&d.bIt("focus",function(){return g._focusChanged(!0)})("blur",function(){return g._focusChanged(!1)})("input",function(){return g._onInput()}),2&E&&(d.Mr5("id",g.id)("disabled",g.disabled)("required",g.required),d.BMQ("name",g.name||null)("readonly",g.readonly&&!g._isNativeSelect||null)("aria-invalid",g.empty&&g.required?null:g.errorState)("aria-required",g.required)("id",g.id),d.AVh("mat-input-server",g._isServer)("mat-mdc-form-field-textarea-control",g._isInFormField&&g._isTextarea)("mat-mdc-form-field-input-control",g._isInFormField)("mdc-text-field__input",g._isInFormField)("mat-mdc-native-select-inline",g._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[d.Mj6.None,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[d.Jv_([{provide:a.qT,useExisting:T}]),d.Vt3,d.OA$]})}}return T})(),V=(()=>{class T{static{this.\u0275fac=function(E){return new(E||T)}}static{this.\u0275mod=d.$C({type:T})}static{this.\u0275inj=d.G2t({imports:[r.yE,a.RG,a.RG,_,r.yE]})}}return T})()},47973:(Bt,z,s)=>{"use strict";s.d(z,{iV:()=>_,wG:()=>r});var n=s(58527),l=s(51635),d=s(31308);const v=["mat-button",""],S=["*"],O=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],P=(0,l.Zc)((0,l.Ob)((0,l.GG)(class{constructor(a){this._elementRef=a}})));let _=(()=>{class a extends P{constructor(m,M,D){super(m),this._focusMonitor=M,this._animationMode=D,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const I of O)this._hasHostAttributes(I)&&this._getHostElement().classList.add(I);m.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(m,M){m?this._focusMonitor.focusVia(this._getHostElement(),m,M):this._getHostElement().focus(M)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...m){return m.some(M=>this._getHostElement().hasAttribute(M))}static{this.\u0275fac=function(M){return new(M||a)(n.rXU(n.aKT),n.rXU(d.FN),n.rXU(n.bc$,8))}}static{this.\u0275cmp=n.VBU({type:a,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(M,D){if(1&M&&n.GBs(l.r6,5),2&M){let I;n.mGM(I=n.lsd())&&(D.ripple=I.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(M,D){2&M&&(n.BMQ("disabled",D.disabled||null),n.AVh("_mat-animation-noopable","NoopAnimations"===D._animationMode)("mat-button-disabled",D.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[n.Vt3],attrs:v,ngContentSelectors:S,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(M,D){1&M&&(n.NAR(),n.j41(0,"span",0),n.SdG(1),n.k0s(),n.nrm(2,"span",1)(3,"span",2)),2&M&&(n.R7$(2),n.AVh("mat-button-ripple-round",D.isRoundButton||D.isIconButton),n.Y8G("matRippleDisabled",D._isRippleDisabled())("matRippleCentered",D.isIconButton)("matRippleTrigger",D._getHostElement()))},dependencies:[l.r6],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}}return a})(),r=(()=>{class a{static{this.\u0275fac=function(M){return new(M||a)}}static{this.\u0275mod=n.$C({type:a})}static{this.\u0275inj=n.G2t({imports:[l.pZ,l.yE,l.yE]})}}return a})()},97979:(Bt,z,s)=>{"use strict";s.d(z,{Rm:()=>P,_m:()=>V,ic:()=>L});var n=s(58527),l=s(51635);const d=["*",[["mat-card-footer"]]],v=["*","mat-card-footer"];let P=(()=>{class E{static{this.\u0275fac=function(B){return new(B||E)}}static{this.\u0275dir=n.FsC({type:E,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]})}}return E})(),V=(()=>{class E{constructor(R){this._animationMode=R}static{this.\u0275fac=function(B){return new(B||E)(n.rXU(n.bc$,8))}}static{this.\u0275cmp=n.VBU({type:E,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(B,X){2&B&&n.AVh("_mat-animation-noopable","NoopAnimations"===X._animationMode)},exportAs:["matCard"],ngContentSelectors:v,decls:2,vars:0,template:function(B,X){1&B&&(n.NAR(d),n.SdG(0),n.SdG(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0})}}return E})(),L=(()=>{class E{static{this.\u0275fac=function(B){return new(B||E)}}static{this.\u0275mod=n.$C({type:E})}static{this.\u0275inj=n.G2t({imports:[l.yE,l.yE]})}}return E})()},44296:(Bt,z,s)=>{"use strict";s.d(z,{bB:()=>m,fS:()=>a,gy:()=>r,pI:()=>i});var n=s(58527),l=s(33668),d=s(61142),v=s(51635),S=s(61904),y=s(64409);const f=["*"];function O(M,D){if(1&M){const I=n.RV6();n.j41(0,"div",0),n.bIt("keydown",function(V){n.eBV(I);const T=n.XpG();return n.Njj(T._handleKeydown(V))})("click",function(){n.eBV(I);const V=n.XpG();return n.Njj(V.closed.emit("click"))})("@transformMenu.start",function(V){n.eBV(I);const T=n.XpG();return n.Njj(T._onAnimationStart(V))})("@transformMenu.done",function(V){n.eBV(I);const T=n.XpG();return n.Njj(T._onAnimationDone(V))}),n.j41(1,"div",1),n.SdG(2),n.k0s()()}if(2&M){const I=n.XpG();n.Y8G("id",I.panelId)("ngClass",I._classList)("@transformMenu",I._panelAnimationState),n.BMQ("aria-label",I.ariaLabel||null)("aria-labelledby",I.ariaLabelledby||null)("aria-describedby",I.ariaDescribedby||null)}}const P=["mat-menu-item",""];function _(M,D){1&M&&(n.qSk(),n.j41(0,"svg",2),n.nrm(1,"polygon",3),n.k0s())}let i=(()=>{class M extends l.K1{constructor(I,U,V,T){super(I,U,V,T),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}static{this.\u0275fac=function(U){return new(U||M)(n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(l.sK),n.rXU(n.gRc))}}static{this.\u0275cmp=n.VBU({type:M,selectors:[["mat-menu"]],hostAttrs:["ngSkipHydration",""],hostVars:4,hostBindings:function(U,V){2&U&&n.BMQ("aria-label",null)("aria-labelledby",null)("aria-describedby",null)("mat-id-collision",null)},exportAs:["matMenu"],features:[n.Jv_([{provide:l.S_,useExisting:M}]),n.Vt3],ngContentSelectors:f,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"keydown","click","id","ngClass"],[1,"mat-menu-content"]],template:function(U,V){1&U&&(n.NAR(),n.DNE(0,O,3,6,"ng-template"))},dependencies:[d.YU],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[l.hE.transformMenu,l.hE.fadeInItems]},changeDetection:0})}}return M})(),r=(()=>{class M extends l.fb{static{this.\u0275fac=(()=>{let I;return function(V){return(I||(I=n.xGo(M)))(V||M)}})()}static{this.\u0275cmp=n.VBU({type:M,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:20,hostBindings:function(U,V){2&U&&(n.BMQ("role",V.role)("tabindex",V._getTabIndex())("aria-disabled",V.disabled.toString())("disabled",V.disabled||null),n.AVh("mat-menu-item",!0)("mat-menu-item-highlighted",V._highlighted)("mat-menu-item-submenu-trigger",V._triggersSubmenu)("mat-mdc-menu-item",!1)("mat-mdc-focus-indicator",!1)("mdc-list-item",!1)("mat-mdc-menu-item-highlighted",!1)("mat-mdc-menu-item-submenu-trigger",!1))},inputs:{disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matMenuItem"],features:[n.Jv_([{provide:l.fb,useExisting:M}]),n.Vt3],attrs:P,ngContentSelectors:f,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false","aria-hidden","true",4,"ngIf"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(U,V){1&U&&(n.NAR(),n.SdG(0),n.nrm(1,"div",0),n.DNE(2,_,2,0,"svg",1)),2&U&&(n.R7$(),n.Y8G("matRippleDisabled",V.disableRipple||V.disabled)("matRippleTrigger",V._getHostElement()),n.R7$(),n.Y8G("ngIf",V._triggersSubmenu))},dependencies:[d.bT,v.r6],encapsulation:2,changeDetection:0})}}return M})(),a=(()=>{class M extends l.eg{static{this.\u0275fac=(()=>{let I;return function(V){return(I||(I=n.xGo(M)))(V||M)}})()}static{this.\u0275dir=n.FsC({type:M,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[n.Vt3]})}}return M})(),m=(()=>{class M{static{this.\u0275fac=function(U){return new(U||M)}}static{this.\u0275mod=n.$C({type:M})}static{this.\u0275inj=n.G2t({providers:[l.uk],imports:[d.MD,v.yE,v.pZ,S.z_,y.Gj,v.yE]})}}return M})()},62141:(Bt,z,s)=>{"use strict";s.d(z,{P2:()=>X,jm:()=>H});var n=s(26321),l=s(58527),d=s(51635),v=s(31308),S=s(56106),y=s(6364);s(61142);let c=0;const m=(0,d.BF)((0,d.Zc)((0,d.GG)((0,d.Ob)(class{constructor(J){this._elementRef=J}}))));let M=(()=>{class J extends m{get required(){return this._required}set required(ie){this._required=(0,y.he)(ie)}get checked(){return this._checked}set checked(ie){this._checked=(0,y.he)(ie),this._changeDetectorRef.markForCheck()}get hideIcon(){return this._hideIcon}set hideIcon(ie){this._hideIcon=(0,y.he)(ie)}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(ie,ve,ue,se,Z,Se,Ce){super(ie),this._focusMonitor=ve,this._changeDetectorRef=ue,this.defaults=Z,this._onChange=Be=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this._hideIcon=!1,this.change=new l.bkB,this.toggleChange=new l.bkB,this.tabIndex=parseInt(se)||0,this.color=this.defaultColor=Z.color||"accent",this._noopAnimations="NoopAnimations"===Se,this.id=this._uniqueId=`${Ce}${++c}`,this._hideIcon=Z.hideIcon??!1}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(ie=>{"keyboard"===ie||"program"===ie?(this._focused=!0,this._changeDetectorRef.markForCheck()):ie||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(ie){this.checked=!!ie}registerOnChange(ie){this._onChange=ie}registerOnTouched(ie){this._onTouched=ie}setDisabledState(ie){this.disabled=ie,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}static{this.\u0275fac=function(ve){l.QTQ()}}static{this.\u0275dir=l.FsC({type:J,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[l.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[l.Mj6.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[l.Mj6.None,"aria-describedby","ariaDescribedby"],required:"required",checked:"checked",hideIcon:"hideIcon"},outputs:{change:"change",toggleChange:"toggleChange"},features:[l.Vt3]})}}return J})(),V=(()=>{class J{static{this.\u0275fac=function(ve){return new(ve||J)}}static{this.\u0275mod=l.$C({type:J})}static{this.\u0275inj=l.G2t({})}}return J})();const N=["input"],L=["*"],E=J=>({enterDuration:J}),g=new l.nKC("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),R={provide:S.kq,useExisting:(0,l.Rfq)(()=>X),multi:!0};class B{constructor(re,ie){this.source=re,this.checked=ie}}let X=(()=>{class J extends M{constructor(ie,ve,ue,se,Z,Se){super(ie,ve,ue,se,Z,Se,"mat-slide-toggle-")}_createChangeEvent(ie){return new B(this,ie)}_onChangeEvent(ie){ie.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(ie){ie.stopPropagation()}focus(ie,ve){ve?this._focusMonitor.focusVia(this._inputElement,ve,ie):this._inputElement.nativeElement.focus(ie)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}static{this.\u0275fac=function(ve){return new(ve||J)(l.rXU(l.aKT),l.rXU(v.FN),l.rXU(l.gRc),l.kS0("tabindex"),l.rXU(g),l.rXU(l.bc$,8))}}static{this.\u0275cmp=l.VBU({type:J,selectors:[["mat-slide-toggle"]],viewQuery:function(ve,ue){if(1&ve&&l.GBs(N,5),2&ve){let se;l.mGM(se=l.lsd())&&(ue._inputElement=se.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(ve,ue){2&ve&&(l.Mr5("id",ue.id),l.BMQ("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),l.AVh("mat-checked",ue.checked)("mat-disabled",ue.disabled)("mat-slide-toggle-label-before","before"==ue.labelPosition)("_mat-animation-noopable",ue._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[l.Jv_([R]),l.Vt3],ngContentSelectors:L,decls:14,vars:20,consts:[["label",""],["input",""],["labelContent",""],[1,"mat-slide-toggle-label"],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"change","click","id","required","tabIndex","checked","disabled"],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],[2,"display","none"]],template:function(ve,ue){if(1&ve){const se=l.RV6();l.NAR(),l.j41(0,"label",3,0)(2,"span",4)(3,"input",5,1),l.bIt("change",function(Se){return l.eBV(se),l.Njj(ue._onChangeEvent(Se))})("click",function(Se){return l.eBV(se),l.Njj(ue._onInputClick(Se))}),l.k0s(),l.j41(5,"span",6),l.nrm(6,"span",7),l.j41(7,"span",8),l.nrm(8,"span",9),l.k0s()()(),l.j41(9,"span",10,2),l.bIt("cdkObserveContent",function(){return l.eBV(se),l.Njj(ue._onLabelTextChange())}),l.j41(11,"span",11),l.EFF(12,"\xa0"),l.k0s(),l.SdG(13),l.k0s()()}if(2&ve){const se=l.sdS(1),Z=l.sdS(10);l.BMQ("for",ue.inputId),l.R7$(2),l.AVh("mat-slide-toggle-bar-no-side-margin",!Z.textContent||!Z.textContent.trim()),l.R7$(),l.Y8G("id",ue.inputId)("required",ue.required)("tabIndex",ue.tabIndex)("checked",ue.checked)("disabled",ue.disabled),l.BMQ("name",ue.name)("aria-checked",ue.checked)("aria-label",ue.ariaLabel)("aria-labelledby",ue.ariaLabelledby)("aria-describedby",ue.ariaDescribedby),l.R7$(4),l.Y8G("matRippleTrigger",se)("matRippleDisabled",ue.disableRipple||ue.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",l.eq3(18,E,ue._noopAnimations?0:150))}},dependencies:[d.r6,n.Wv],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0})}}return J})(),H=(()=>{class J{static{this.\u0275fac=function(ve){return new(ve||J)}}static{this.\u0275mod=l.$C({type:J})}static{this.\u0275inj=l.G2t({imports:[V,d.pZ,d.yE,n.w5,V,d.yE]})}}return J})()},13186:(Bt,z,s)=>{"use strict";s.d(z,{Lq:()=>R,N$:()=>V});var n=s(61142),l=s(58527),d=s(51635),v=s(31308),S=s(51394),y=s(6364),f=s(25373),O=s(56106),P=s(72653),_=s(10399);const i=["sliderWrapper"],r=(0,P.BQ)({passive:!1}),D={provide:O.kq,useExisting:(0,l.Rfq)(()=>V),multi:!0};class I{}const U=(0,d.BF)((0,d.Zc)((0,d.Ob)(class{constructor(B){this._elementRef=B}}),"accent"));let V=(()=>{class B extends U{get invert(){return this._invert}set invert(H){this._invert=(0,y.he)(H)}get max(){return this._max}set max(H){this._max=(0,y.OE)(H,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(H){this._min=(0,y.OE)(H,this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(H){this._step=(0,y.OE)(H,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(H){this._thumbLabel=(0,y.he)(H)}get tickInterval(){return this._tickInterval}set tickInterval(H){this._tickInterval="auto"===H?"auto":"number"==typeof H||"string"==typeof H?(0,y.OE)(H,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(H){if(H!==this._value){let J=(0,y.OE)(H,0);this._roundToDecimal&&J!==this.min&&J!==this.max&&(J=parseFloat(J.toFixed(this._roundToDecimal))),this._value=J,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(H){this._vertical=(0,y.he)(H)}get displayValue(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}focus(H){this._focusHostElement(H)}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}_shouldInvertAxis(){return this.vertical?!this.invert:this.invert}_isMinValue(){return 0===this.percent}_getThumbGap(){return this.disabled?7:this._isMinValue()&&!this.thumbLabel?this._isActive?10:7:0}_getTrackBackgroundStyles(){const J=this.vertical?`1, ${1-this.percent}, 1`:1-this.percent+", 1, 1";return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"-":""}${this._getThumbGap()}px) scale3d(${J})`}}_getTrackFillStyles(){const H=this.percent,re=this.vertical?`1, ${H}, 1`:`${H}, 1, 1`;return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"":"-"}${this._getThumbGap()}px) scale3d(${re})`,display:0===H?"none":""}}_getTicksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}_getTicksStyles(){let H=100*this._tickIntervalPercent,ue={backgroundSize:this.vertical?`2px ${H}%`:`${H}% 2px`,transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"":"-"}${H/2}%)${this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)"}`};if(this._isMinValue()&&this._getThumbGap()){const se=this._shouldInvertAxis();let Z;Z=this.vertical?se?"Bottom":"Top":se?"Right":"Left",ue[`padding${Z}`]=`${this._getThumbGap()}px`}return ue}_getThumbContainerStyles(){const H=this._shouldInvertAxis();return{transform:`translate${this.vertical?"Y":"X"}(-${100*(("rtl"!=this._getDirection()||this.vertical?H:!H)?this.percent:1-this.percent)}%)`}}_shouldInvertMouseCoords(){const H=this._shouldInvertAxis();return"rtl"!=this._getDirection()||this.vertical?H:!H}_getDirection(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}constructor(H,J,re,ie,ve,ue,se,Z){super(H),this._focusMonitor=J,this._changeDetectorRef=re,this._dir=ie,this._ngZone=ue,this._animationMode=Z,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new l.bkB,this.input=new l.bkB,this.valueChange=new l.bkB,this.onTouched=()=>{},this._percent=0,this._isSliding=null,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=_.y.EMPTY,this._pointerDown=Se=>{this.disabled||this._isSliding||!N(Se)&&0!==Se.button||this._ngZone.run(()=>{this._touchId=N(Se)?function g(B,X){for(let H=0;H<B.touches.length;H++){const J=B.touches[H].target;if(X===J||X.contains(J))return B.touches[H].identifier}}(Se,this._elementRef.nativeElement):void 0;const Ce=L(Se,this._touchId);if(Ce){const Be=this.value;this._isSliding="pointer",this._lastPointerEvent=Se,this._focusHostElement(),this._onMouseenter(),this._bindGlobalEvents(Se),this._focusHostElement(),this._updateValueFromPosition(Ce),this._valueOnSlideStart=Be,Se.cancelable&&Se.preventDefault(),Be!=this.value&&this._emitInputEvent()}})},this._pointerMove=Se=>{if("pointer"===this._isSliding){const Ce=L(Se,this._touchId);if(Ce){Se.cancelable&&Se.preventDefault();const Be=this.value;this._lastPointerEvent=Se,this._updateValueFromPosition(Ce),Be!=this.value&&this._emitInputEvent()}}},this._pointerUp=Se=>{"pointer"===this._isSliding&&(!N(Se)||"number"!=typeof this._touchId||E(Se.changedTouches,this._touchId))&&(Se.cancelable&&Se.preventDefault(),this._removeGlobalEvents(),this._isSliding=null,this._touchId=void 0,this._valueOnSlideStart!=this.value&&!this.disabled&&this._emitChangeEvent(),this._valueOnSlideStart=this._lastPointerEvent=null)},this._windowBlur=()=>{this._lastPointerEvent&&this._pointerUp(this._lastPointerEvent)},this._document=se,this.tabIndex=parseInt(ve)||0,ue.runOutsideAngular(()=>{const Se=H.nativeElement;Se.addEventListener("mousedown",this._pointerDown,r),Se.addEventListener("touchstart",this._pointerDown,r)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(H=>{this._isActive=!!H&&"keyboard"!==H,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const H=this._elementRef.nativeElement;H.removeEventListener("mousedown",this._pointerDown,r),H.removeEventListener("touchstart",this._pointerDown,r),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown(H){if(this.disabled||(0,f.rp)(H)||this._isSliding&&"keyboard"!==this._isSliding)return;const J=this.value;switch(H.keyCode){case f.w_:this._increment(10);break;case f.dB:this._increment(-10);break;case f.Kp:this.value=this.max;break;case f.yZ:this.value=this.min;break;case f.UQ:this._increment("rtl"==this._getDirection()?1:-1);break;case f.i7:this._increment(1);break;case f.LE:this._increment("rtl"==this._getDirection()?-1:1);break;case f.n6:this._increment(-1);break;default:return}J!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding="keyboard",H.preventDefault()}_onKeyup(){"keyboard"===this._isSliding&&(this._isSliding=null)}_getWindow(){return this._document.defaultView||window}_bindGlobalEvents(H){const J=this._document,re=N(H),ve=re?"touchend":"mouseup";J.addEventListener(re?"touchmove":"mousemove",this._pointerMove,r),J.addEventListener(ve,this._pointerUp,r),re&&J.addEventListener("touchcancel",this._pointerUp,r);const ue=this._getWindow();typeof ue<"u"&&ue&&ue.addEventListener("blur",this._windowBlur)}_removeGlobalEvents(){const H=this._document;H.removeEventListener("mousemove",this._pointerMove,r),H.removeEventListener("mouseup",this._pointerUp,r),H.removeEventListener("touchmove",this._pointerMove,r),H.removeEventListener("touchend",this._pointerUp,r),H.removeEventListener("touchcancel",this._pointerUp,r);const J=this._getWindow();typeof J<"u"&&J&&J.removeEventListener("blur",this._windowBlur)}_increment(H){const J=this._clamp(this.value||0,this.min,this.max);this.value=this._clamp(J+this.step*H,this.min,this.max)}_updateValueFromPosition(H){if(!this._sliderDimensions)return;let ve=this._clamp(((this.vertical?H.y:H.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(ve=1-ve),0===ve)this.value=this.min;else if(1===ve)this.value=this.max;else{const ue=this._calculateValue(ve),se=Math.round((ue-this.min)/this.step)*this.step+this.min;this.value=this._clamp(se,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(!this.tickInterval||!this._sliderDimensions)return;let H;if("auto"==this.tickInterval){let J=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width;H=Math.ceil(30/(J*this.step/(this.max-this.min)))*this.step/J}else H=this.tickInterval*this.step/(this.max-this.min);this._tickIntervalPercent=T(H)?H:0}_createChangeEvent(H=this.value){let J=new I;return J.source=this,J.value=H,J}_calculatePercentage(H){const J=((H||0)-this.min)/(this.max-this.min);return T(J)?J:0}_calculateValue(H){return this.min+H*(this.max-this.min)}_clamp(H,J=0,re=1){return Math.max(J,Math.min(H,re))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(H){this._elementRef.nativeElement.focus(H)}_blurHostElement(){this._elementRef.nativeElement.blur()}writeValue(H){this.value=H}registerOnChange(H){this._controlValueAccessorChangeFn=H}registerOnTouched(H){this.onTouched=H}setDisabledState(H){this.disabled=H}static{this.\u0275fac=function(J){return new(J||B)(l.rXU(l.aKT),l.rXU(v.FN),l.rXU(l.gRc),l.rXU(S.dS,8),l.kS0("tabindex"),l.rXU(l.SKi),l.rXU(n.qQ),l.rXU(l.bc$,8))}}static{this.\u0275cmp=l.VBU({type:B,selectors:[["mat-slider"]],viewQuery:function(J,re){if(1&J&&l.GBs(i,5),2&J){let ie;l.mGM(ie=l.lsd())&&(re._sliderWrapper=ie.first)}},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:29,hostBindings:function(J,re){1&J&&l.bIt("focus",function(){return re._onFocus()})("blur",function(){return re._onBlur()})("keydown",function(ve){return re._onKeydown(ve)})("keyup",function(){return re._onKeyup()})("mouseenter",function(){return re._onMouseenter()})("selectstart",function(ve){return ve.preventDefault()}),2&J&&(l.Mr5("tabIndex",re.tabIndex),l.BMQ("aria-disabled",re.disabled)("aria-valuemax",re.max)("aria-valuemin",re.min)("aria-valuenow",re.value)("aria-valuetext",null==re.valueText?re.displayValue:re.valueText)("aria-orientation",re.vertical?"vertical":"horizontal"),l.AVh("mat-slider-disabled",re.disabled)("mat-slider-has-ticks",re.tickInterval)("mat-slider-horizontal",!re.vertical)("mat-slider-axis-inverted",re._shouldInvertAxis())("mat-slider-invert-mouse-coords",re._shouldInvertMouseCoords())("mat-slider-sliding",re._isSliding)("mat-slider-thumb-label-showing",re.thumbLabel)("mat-slider-vertical",re.vertical)("mat-slider-min-value",re._isMinValue())("mat-slider-hide-last-tick",re.disabled||re._isMinValue()&&re._getThumbGap()&&re._shouldInvertAxis())("_mat-animation-noopable","NoopAnimations"===re._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",value:"value",displayWith:"displayWith",valueText:"valueText",vertical:"vertical"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["matSlider"],features:[l.Jv_([D]),l.Vt3],decls:13,vars:6,consts:[["sliderWrapper",""],[1,"mat-slider-wrapper"],[1,"mat-slider-track-wrapper"],[1,"mat-slider-track-background",3,"ngStyle"],[1,"mat-slider-track-fill",3,"ngStyle"],[1,"mat-slider-ticks-container",3,"ngStyle"],[1,"mat-slider-ticks",3,"ngStyle"],[1,"mat-slider-thumb-container",3,"ngStyle"],[1,"mat-slider-focus-ring"],[1,"mat-slider-thumb"],[1,"mat-slider-thumb-label"],[1,"mat-slider-thumb-label-text"]],template:function(J,re){1&J&&(l.j41(0,"div",1,0)(2,"div",2),l.nrm(3,"div",3)(4,"div",4),l.k0s(),l.j41(5,"div",5),l.nrm(6,"div",6),l.k0s(),l.j41(7,"div",7),l.nrm(8,"div",8)(9,"div",9),l.j41(10,"div",10)(11,"span",11),l.EFF(12),l.k0s()()()()),2&J&&(l.R7$(3),l.Y8G("ngStyle",re._getTrackBackgroundStyles()),l.R7$(),l.Y8G("ngStyle",re._getTrackFillStyles()),l.R7$(),l.Y8G("ngStyle",re._getTicksContainerStyles()),l.R7$(),l.Y8G("ngStyle",re._getTicksStyles()),l.R7$(),l.Y8G("ngStyle",re._getThumbContainerStyles()),l.R7$(5),l.JRh(re.displayValue))},dependencies:[n.B3],styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:grabbing}.mat-slider-wrapper{-webkit-print-color-adjust:exact;color-adjust:exact;position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{-webkit-background-clip:content-box;background-clip:content-box;background-repeat:repeat;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid rgba(0,0,0,0);border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}'],encapsulation:2,changeDetection:0})}}return B})();function T(B){return!isNaN(B)&&isFinite(B)}function N(B){return"t"===B.type[0]}function L(B,X){let H;return H=N(B)?"number"==typeof X?E(B.touches,X)||E(B.changedTouches,X):B.touches[0]||B.changedTouches[0]:B,H?{x:H.clientX,y:H.clientY}:void 0}function E(B,X){for(let H=0;H<B.length;H++)if(B[H].identifier===X)return B[H]}let R=(()=>{class B{static{this.\u0275fac=function(J){return new(J||B)}}static{this.\u0275mod=l.$C({type:B})}static{this.\u0275inj=l.G2t({imports:[n.MD,d.yE,d.yE]})}}return B})()},33668:(Bt,z,s)=>{"use strict";s.d(z,{Cn:()=>Le,Cp:()=>At,K1:()=>me,S_:()=>J,eg:()=>Fe,fb:()=>ie,hE:()=>Be,sK:()=>Q,uk:()=>$});var n=s(58527),l=s(31308),d=s(6364),v=s(25373),S=s(80583),y=s(16229),f=s(10399),O=s(43848),P=s(62366),_=s(34593),i=s(72147),r=s(65706),a=s(4208),c=s(8619),m=s(65726),M=s(51635),D=s(61142),I=s(76614),U=s(40262),V=s(51394),T=s(61904),N=s(72653),L=s(64409);const E=["mat-menu-item",""],g=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],R=["mat-icon, [matMenuItemIcon]","*"];function B(Et,$e){1&Et&&(n.qSk(),n.j41(0,"svg",3),n.nrm(1,"polygon",4),n.k0s())}const J=new n.nKC("MAT_MENU_PANEL"),re=(0,M.GG)((0,M.Ob)(class{}));let ie=(()=>{class Et extends re{constructor(Ze,Qe,Ve,nt,Ot){super(),this._elementRef=Ze,this._document=Qe,this._focusMonitor=Ve,this._parentMenu=nt,this._changeDetectorRef=Ot,this.role="menuitem",this._hovered=new S.B7,this._focused=new S.B7,this._highlighted=!1,this._triggersSubmenu=!1,nt?.addItem?.(this)}focus(Ze,Qe){this._focusMonitor&&Ze?this._focusMonitor.focusVia(this._getHostElement(),Ze,Qe):this._getHostElement().focus(Qe),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(Ze){this.disabled&&(Ze.preventDefault(),Ze.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const Ze=this._elementRef.nativeElement.cloneNode(!0),Qe=Ze.querySelectorAll("mat-icon, .material-icons");for(let Ve=0;Ve<Qe.length;Ve++)Qe[Ve].remove();return Ze.textContent?.trim()||""}_setHighlighted(Ze){this._highlighted=Ze,this._changeDetectorRef?.markForCheck()}_setTriggersSubmenu(Ze){this._triggersSubmenu=Ze,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static{this.\u0275fac=function(Qe){return new(Qe||Et)(n.rXU(n.aKT),n.rXU(D.qQ),n.rXU(l.FN),n.rXU(J,8),n.rXU(n.gRc))}}static{this.\u0275cmp=n.VBU({type:Et,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator"],hostVars:8,hostBindings:function(Qe,Ve){1&Qe&&n.bIt("click",function(Ot){return Ve._checkDisabled(Ot)})("mouseenter",function(){return Ve._handleMouseEnter()}),2&Qe&&(n.BMQ("role",Ve.role)("tabindex",Ve._getTabIndex())("aria-disabled",Ve.disabled)("disabled",Ve.disabled||null),n.AVh("mat-mdc-menu-item-highlighted",Ve._highlighted)("mat-mdc-menu-item-submenu-trigger",Ve._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[n.Vt3],attrs:E,ngContentSelectors:R,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-mdc-menu-submenu-icon","viewBox","0 0 5 10","focusable","false","aria-hidden","true",4,"ngIf"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(Qe,Ve){1&Qe&&(n.NAR(g),n.SdG(0),n.j41(1,"span",0),n.SdG(2,1),n.k0s(),n.nrm(3,"div",1),n.DNE(4,B,2,0,"svg",2)),2&Qe&&(n.R7$(3),n.Y8G("matRippleDisabled",Ve.disableRipple||Ve.disabled)("matRippleTrigger",Ve._getHostElement()),n.R7$(),n.Y8G("ngIf",Ve._triggersSubmenu))},dependencies:[D.bT,M.r6],encapsulation:2,changeDetection:0})}}return Et})();const Z=new n.nKC("MatMenuContent"),Be={transformMenu:(0,U.hZ)("transformMenu",[(0,U.wk)("void",(0,U.iF)({opacity:0,transform:"scale(0.8)"})),(0,U.kY)("void => enter",(0,U.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,U.iF)({opacity:1,transform:"scale(1)"}))),(0,U.kY)("* => void",(0,U.i0)("100ms 25ms linear",(0,U.iF)({opacity:0})))]),fadeInItems:(0,U.hZ)("fadeInItems",[(0,U.wk)("showing",(0,U.iF)({opacity:1})),(0,U.kY)("void => *",[(0,U.iF)({opacity:0}),(0,U.i0)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Me=0;const Q=new n.nKC("mat-menu-default-options",{providedIn:"root",factory:function A(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let me=(()=>{class Et{get xPosition(){return this._xPosition}set xPosition(Ze){this._xPosition=Ze,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(Ze){this._yPosition=Ze,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(Ze){this._overlapTrigger=(0,d.he)(Ze)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Ze){this._hasBackdrop=(0,d.he)(Ze)}set panelClass(Ze){const Qe=this._previousPanelClass;Qe&&Qe.length&&Qe.split(" ").forEach(Ve=>{this._classList[Ve]=!1}),this._previousPanelClass=Ze,Ze&&Ze.length&&(Ze.split(" ").forEach(Ve=>{this._classList[Ve]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(Ze){this.panelClass=Ze}constructor(Ze,Qe,Ve,nt){this._elementRef=Ze,this._ngZone=Qe,this._changeDetectorRef=nt,this._directDescendantItems=new n.rOR,this._classList={},this._panelAnimationState="void",this._animationDone=new S.B7,this.closed=new n.bkB,this.close=this.closed,this.panelId="mat-menu-panel-"+Me++,this.overlayPanelClass=Ve.overlayPanelClass||"",this._xPosition=Ve.xPosition,this._yPosition=Ve.yPosition,this.backdropClass=Ve.backdropClass,this._overlapTrigger=Ve.overlapTrigger,this._hasBackdrop=Ve.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new l.Bu(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,_.Z)(this._directDescendantItems),(0,i.n)(Ze=>(0,y.h)(...Ze.map(Qe=>Qe._focused)))).subscribe(Ze=>this._keyManager.updateActiveItem(Ze)),this._directDescendantItems.changes.subscribe(Ze=>{const Qe=this._keyManager;if("enter"===this._panelAnimationState&&Qe.activeItem?._hasFocus()){const Ve=Ze.toArray(),nt=Math.max(0,Math.min(Ve.length-1,Qe.activeItemIndex||0));Ve[nt]&&!Ve[nt].disabled?Qe.setActiveItem(nt):Qe.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,_.Z)(this._directDescendantItems),(0,i.n)(Qe=>(0,y.h)(...Qe.map(Ve=>Ve._hovered))))}addItem(Ze){}removeItem(Ze){}_handleKeydown(Ze){const Qe=Ze.keyCode,Ve=this._keyManager;switch(Qe){case v._f:(0,v.rp)(Ze)||(Ze.preventDefault(),this.closed.emit("keydown"));break;case v.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case v.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(Qe===v.i7||Qe===v.n6)&&Ve.setFocusOrigin("keyboard"),void Ve.onKeydown(Ze)}Ze.stopPropagation()}focusFirstItem(Ze="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,r.s)(1)).subscribe(()=>{let Qe=null;if(this._directDescendantItems.length&&(Qe=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!Qe||!Qe.contains(document.activeElement)){const Ve=this._keyManager;Ve.setFocusOrigin(Ze).setFirstItemActive(),!Ve.activeItem&&Qe&&Qe.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Ze){const Qe=Math.min(this._baseElevation+Ze,24),Ve=`${this._elevationPrefix}${Qe}`,nt=Object.keys(this._classList).find(Ot=>Ot.startsWith(this._elevationPrefix));(!nt||nt===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[Ve]=!0,this._previousElevation=Ve)}setPositionClasses(Ze=this.xPosition,Qe=this.yPosition){const Ve=this._classList;Ve["mat-menu-before"]="before"===Ze,Ve["mat-menu-after"]="after"===Ze,Ve["mat-menu-above"]="above"===Qe,Ve["mat-menu-below"]="below"===Qe,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(Ze){this._animationDone.next(Ze),this._isAnimating=!1}_onAnimationStart(Ze){this._isAnimating=!0,"enter"===Ze.toState&&0===this._keyManager.activeItemIndex&&(Ze.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,_.Z)(this._allItems)).subscribe(Ze=>{this._directDescendantItems.reset(Ze.filter(Qe=>Qe._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static{this.\u0275fac=function(Qe){return new(Qe||Et)(n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(Q),n.rXU(n.gRc))}}static{this.\u0275dir=n.FsC({type:Et,contentQueries:function(Qe,Ve,nt){if(1&Qe&&(n.wni(nt,Z,5),n.wni(nt,ie,5),n.wni(nt,ie,4)),2&Qe){let Ot;n.mGM(Ot=n.lsd())&&(Ve.lazyContent=Ot.first),n.mGM(Ot=n.lsd())&&(Ve._allItems=Ot),n.mGM(Ot=n.lsd())&&(Ve.items=Ot)}},viewQuery:function(Qe,Ve){if(1&Qe&&n.GBs(n.C4Q,5),2&Qe){let nt;n.mGM(nt=n.lsd())&&(Ve.templateRef=nt.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:[n.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[n.Mj6.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[n.Mj6.None,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:[n.Mj6.None,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}})}}return Et})();const G=new n.nKC("mat-menu-scroll-strategy"),$={provide:G,deps:[T.hJ],useFactory:function W(Et){return()=>Et.scrollStrategies.reposition()}},le=(0,N.BQ)({passive:!0});let Fe=(()=>{class Et{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(Ze){this.menu=Ze}get menu(){return this._menu}set menu(Ze){Ze!==this._menu&&(this._menu=Ze,this._menuCloseSubscription.unsubscribe(),Ze&&(this._menuCloseSubscription=Ze.close.subscribe(Qe=>{this._destroyMenu(Qe),("click"===Qe||"tab"===Qe)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Qe)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(Ze,Qe,Ve,nt,Ot,at,It,We,xe){this._overlay=Ze,this._element=Qe,this._viewContainerRef=Ve,this._menuItemInstance=at,this._dir=It,this._focusMonitor=We,this._ngZone=xe,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=f.y.EMPTY,this._hoverSubscription=f.y.EMPTY,this._menuCloseSubscription=f.y.EMPTY,this._changeDetectorRef=(0,n.WQX)(n.gRc),this._handleTouchStart=lt=>{(0,l.w6)(lt)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new n.bkB,this.onMenuOpen=this.menuOpened,this.menuClosed=new n.bkB,this.onMenuClose=this.menuClosed,this._scrollStrategy=nt,this._parentMaterialMenu=Ot instanceof me?Ot:void 0,Qe.nativeElement.addEventListener("touchstart",this._handleTouchStart,le)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,le),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const Ze=this.menu;if(this._menuOpen||!Ze)return;const Qe=this._createOverlay(Ze),Ve=Qe.getConfig(),nt=Ve.positionStrategy;this._setPosition(Ze,nt),Ve.hasBackdrop=null==Ze.hasBackdrop?!this.triggersSubmenu():Ze.hasBackdrop,Qe.attach(this._getPortal(Ze)),Ze.lazyContent&&Ze.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(Ze),Ze instanceof me&&(Ze._startAnimation(),Ze._directDescendantItems.changes.pipe((0,a.Q)(Ze.close)).subscribe(()=>{nt.withLockedPosition(!1).reapplyLastPosition(),nt.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(Ze,Qe){this._focusMonitor&&Ze?this._focusMonitor.focusVia(this._element,Ze,Qe):this._element.nativeElement.focus(Qe)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(Ze){if(!this._overlayRef||!this.menuOpen)return;const Qe=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Ze||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,Qe instanceof me?(Qe._resetAnimation(),Qe.lazyContent?Qe._animationDone.pipe((0,c.p)(Ve=>"void"===Ve.toState),(0,r.s)(1),(0,a.Q)(Qe.lazyContent._attached)).subscribe({next:()=>Qe.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),Qe?.lazyContent?.detach())}_initMenu(Ze){Ze.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,Ze.direction=this.dir,this._setMenuElevation(Ze),Ze.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(Ze){if(Ze.setElevation){let Qe=0,Ve=Ze.parentMenu;for(;Ve;)Qe++,Ve=Ve.parentMenu;Ze.setElevation(Qe)}}_setIsMenuOpen(Ze){Ze!==this._menuOpen&&(this._menuOpen=Ze,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Ze),this._changeDetectorRef.markForCheck())}_createOverlay(Ze){if(!this._overlayRef){const Qe=this._getOverlayConfig(Ze);this._subscribeToPositions(Ze,Qe.positionStrategy),this._overlayRef=this._overlay.create(Qe),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(Ze){return new T.rR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:Ze.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:Ze.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(Ze,Qe){Ze.setPositionClasses&&Qe.positionChanges.subscribe(Ve=>{const nt="start"===Ve.connectionPair.overlayX?"after":"before",Ot="top"===Ve.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>Ze.setPositionClasses(nt,Ot)):Ze.setPositionClasses(nt,Ot)})}_setPosition(Ze,Qe){let[Ve,nt]="before"===Ze.xPosition?["end","start"]:["start","end"],[Ot,at]="above"===Ze.yPosition?["bottom","top"]:["top","bottom"],[It,We]=[Ot,at],[xe,lt]=[Ve,nt],ft=0;if(this.triggersSubmenu()){if(lt=Ve="before"===Ze.xPosition?"start":"end",nt=xe="end"===Ve?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const ht=this._parentMaterialMenu.items.first;this._parentInnerPadding=ht?ht._getHostElement().offsetTop:0}ft="bottom"===Ot?this._parentInnerPadding:-this._parentInnerPadding}}else Ze.overlapTrigger||(It="top"===Ot?"bottom":"top",We="top"===at?"bottom":"top");Qe.withPositions([{originX:Ve,originY:It,overlayX:xe,overlayY:Ot,offsetY:ft},{originX:nt,originY:It,overlayX:lt,overlayY:Ot,offsetY:ft},{originX:Ve,originY:We,overlayX:xe,overlayY:at,offsetY:-ft},{originX:nt,originY:We,overlayX:lt,overlayY:at,offsetY:-ft}])}_menuClosingActions(){const Ze=this._overlayRef.backdropClick(),Qe=this._overlayRef.detachments(),Ve=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,O.of)(),nt=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,c.p)(Ot=>Ot!==this._menuItemInstance),(0,c.p)(()=>this._menuOpen)):(0,O.of)();return(0,y.h)(Ze,Ve,nt,Qe)}_handleMousedown(Ze){(0,l._G)(Ze)||(this._openedBy=0===Ze.button?"mouse":void 0,this.triggersSubmenu()&&Ze.preventDefault())}_handleKeydown(Ze){const Qe=Ze.keyCode;(Qe===v.Fm||Qe===v.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Qe===v.LE&&"ltr"===this.dir||Qe===v.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(Ze){this.triggersSubmenu()?(Ze.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,c.p)(Ze=>Ze===this._menuItemInstance&&!Ze.disabled),(0,m.c)(0,P.$)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof me&&this.menu._isAnimating?this.menu._animationDone.pipe((0,r.s)(1),(0,m.c)(0,P.$),(0,a.Q)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(Ze){return(!this._portal||this._portal.templateRef!==Ze.templateRef)&&(this._portal=new I.VA(Ze.templateRef,this._viewContainerRef)),this._portal}static{this.\u0275fac=function(Qe){return new(Qe||Et)(n.rXU(T.hJ),n.rXU(n.aKT),n.rXU(n.c1b),n.rXU(G),n.rXU(J,8),n.rXU(ie,10),n.rXU(V.dS,8),n.rXU(l.FN),n.rXU(n.SKi))}}static{this.\u0275dir=n.FsC({type:Et,hostVars:3,hostBindings:function(Qe,Ve){1&Qe&&n.bIt("click",function(Ot){return Ve._handleClick(Ot)})("mousedown",function(Ot){return Ve._handleMousedown(Ot)})("keydown",function(Ot){return Ve._handleKeydown(Ot)}),2&Qe&&n.BMQ("aria-haspopup",Ve.menu?"menu":null)("aria-expanded",Ve.menuOpen)("aria-controls",Ve.menuOpen?Ve.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[n.Mj6.None,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[n.Mj6.None,"matMenuTriggerFor","menu"],menuData:[n.Mj6.None,"matMenuTriggerData","menuData"],restoreFocus:[n.Mj6.None,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}})}}return Et})(),At=(()=>{class Et extends Fe{static{this.\u0275fac=(()=>{let Ze;return function(Ve){return(Ze||(Ze=n.xGo(Et)))(Ve||Et)}})()}static{this.\u0275dir=n.FsC({type:Et,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[n.Vt3]})}}return Et})(),Le=(()=>{class Et{static{this.\u0275fac=function(Qe){return new(Qe||Et)}}static{this.\u0275mod=n.$C({type:Et})}static{this.\u0275inj=n.G2t({providers:[$],imports:[D.MD,M.pZ,M.yE,T.z_,L.Gj,M.yE]})}}return Et})()},20288:(Bt,z,s)=>{"use strict";s.d(z,{HM:()=>P,PO:()=>i});var n=s(58527),d=(s(61142),s(51635)),v=s(6364);const S=new n.nKC("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),O=(0,d.Zc)(class{constructor(r){this._elementRef=r}},"primary");let P=(()=>{class r extends O{constructor(c,m,M,D,I){super(c),this._ngZone=m,this._changeDetectorRef=M,this._animationMode=D,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new n.bkB,this._mode="determinate",this._transitionendHandler=U=>{0===this.animationEnd.observers.length||!U.target||!U.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===D,I&&(I.color&&(this.color=this.defaultColor=I.color),this.mode=I.mode||this.mode)}get value(){return this._value}set value(c){this._value=_((0,v.OE)(c)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(c){this._bufferValue=_((0,v.OE)(c)),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(c){this._mode=c,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}static{this.\u0275fac=function(m){return new(m||r)(n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(n.gRc),n.rXU(n.bc$,8),n.rXU(S,8))}}static{this.\u0275cmp=n.VBU({type:r,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:8,hostBindings:function(m,M){2&m&&(n.BMQ("aria-valuenow",M._isIndeterminate()?null:M.value)("mode",M.mode),n.AVh("_mat-animation-noopable",M._isNoopAnimation)("mdc-linear-progress--animation-ready",!M._isNoopAnimation)("mdc-linear-progress--indeterminate",M._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[n.Vt3],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(m,M){1&m&&(n.j41(0,"div",0),n.nrm(1,"div",1)(2,"div",2),n.k0s(),n.j41(3,"div",3),n.nrm(4,"span",4),n.k0s(),n.j41(5,"div",5),n.nrm(6,"span",4),n.k0s()),2&m&&(n.R7$(),n.xc7("flex-basis",M._getBufferBarFlexBasis()),n.R7$(2),n.xc7("transform",M._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half))}100%{transform:translateX(var(--mdc-linear-progress-primary-full))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color)}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-color:rgba(0,0,0,0);background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill=''/%3E%3C/svg%3E\")}}.mdc-linear-progress{height:max(var(--mdc-linear-progress-track-height), var(--mdc-linear-progress-active-indicator-height))}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress{height:4px}}.mdc-linear-progress__bar{height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{height:var(--mdc-linear-progress-track-height)}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height)}}.mdc-linear-progress__buffer{border-radius:var(--mdc-linear-progress-track-shape)}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-height:4px;--mdc-linear-progress-track-height:4px;--mdc-linear-progress-track-shape:0}.mat-mdc-progress-bar{display:block;text-align:left;--mdc-linear-progress-primary-half: 83.67142%;--mdc-linear-progress-primary-full: 200.611057%;--mdc-linear-progress-secondary-quarter: 37.651913%;--mdc-linear-progress-secondary-half: 84.386165%;--mdc-linear-progress-secondary-full: 160.277782%;--mdc-linear-progress-primary-half-neg: -83.67142%;--mdc-linear-progress-primary-full-neg: -200.611057%;--mdc-linear-progress-secondary-quarter-neg: -37.651913%;--mdc-linear-progress-secondary-half-neg: -84.386165%;--mdc-linear-progress-secondary-full-neg: -160.277782%}[dir=rtl] .mat-mdc-progress-bar{text-align:right}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0})}}return r})();function _(r,a=0,c=100){return Math.max(a,Math.min(c,r))}let i=(()=>{class r{static{this.\u0275fac=function(m){return new(m||r)}}static{this.\u0275mod=n.$C({type:r})}static{this.\u0275inj=n.G2t({imports:[d.yE]})}}return r})()},99204:(Bt,z,s)=>{"use strict";s.d(z,{D6:()=>c,LG:()=>r});var n=s(58527),l=s(51635),d=s(6364),v=s(61142);const S=["determinateSpinner"];function y(m,M){if(1&m&&(n.qSk(),n.j41(0,"svg",11),n.nrm(1,"circle",12),n.k0s()),2&m){const D=n.XpG();n.BMQ("viewBox",D._viewBox()),n.R7$(),n.xc7("stroke-dasharray",D._strokeCircumference(),"px")("stroke-dashoffset",D._strokeCircumference()/2,"px")("stroke-width",D._circleStrokeWidth(),"%"),n.BMQ("r",D._circleRadius())}}const f=(0,l.Zc)(class{constructor(m){this._elementRef=m}},"primary"),O=new n.nKC("mat-progress-spinner-default-options",{providedIn:"root",factory:function P(){return{diameter:_}}}),_=100;let r=(()=>{class m extends f{constructor(D,I,U){super(D),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=_,this._noopAnimations="NoopAnimations"===I&&!!U&&!U._forceAnimations,U&&(U.color&&(this.color=this.defaultColor=U.color),U.diameter&&(this.diameter=U.diameter),U.strokeWidth&&(this.strokeWidth=U.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(D){this._value=Math.max(0,Math.min(100,(0,d.OE)(D)))}get diameter(){return this._diameter}set diameter(D){this._diameter=(0,d.OE)(D)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(D){this._strokeWidth=(0,d.OE)(D)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const D=2*this._circleRadius()+this.strokeWidth;return`0 0 ${D} ${D}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static{this.\u0275fac=function(I){return new(I||m)(n.rXU(n.aKT),n.rXU(n.bc$,8),n.rXU(O))}}static{this.\u0275cmp=n.VBU({type:m,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(I,U){if(1&I&&n.GBs(S,5),2&I){let V;n.mGM(V=n.lsd())&&(U._determinateCircle=V.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:16,hostBindings:function(I,U){2&I&&(n.BMQ("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===U.mode?U.value:null)("mode",U.mode),n.xc7("width",U.diameter,"px")("height",U.diameter,"px")("--mdc-circular-progress-size",U.diameter+"px")("--mdc-circular-progress-active-indicator-width",U.diameter+"px"),n.AVh("_mat-animation-noopable",U._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===U.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[n.Vt3],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(I,U){if(1&I&&(n.DNE(0,y,2,8,"ng-template",null,0,n.C5r),n.j41(2,"div",2,1),n.qSk(),n.j41(4,"svg",3),n.nrm(5,"circle",4),n.k0s()(),n.joV(),n.j41(6,"div",5)(7,"div",6)(8,"div",7),n.eu8(9,8),n.k0s(),n.j41(10,"div",9),n.eu8(11,8),n.k0s(),n.j41(12,"div",10),n.eu8(13,8),n.k0s()()()),2&I){const V=n.sdS(1);n.R7$(4),n.BMQ("viewBox",U._viewBox()),n.R7$(),n.xc7("stroke-dasharray",U._strokeCircumference(),"px")("stroke-dashoffset",U._strokeDashOffset(),"px")("stroke-width",U._circleStrokeWidth(),"%"),n.BMQ("r",U._circleRadius()),n.R7$(4),n.Y8G("ngTemplateOutlet",V),n.R7$(2),n.Y8G("ngTemplateOutlet",V),n.R7$(2),n.Y8G("ngTemplateOutlet",V)}},dependencies:[v.T3],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{--mdc-circular-progress-active-indicator-width:4px;--mdc-circular-progress-size:48px}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0})}}return m})(),c=(()=>{class m{static{this.\u0275fac=function(I){return new(I||m)}}static{this.\u0275mod=n.$C({type:m})}static{this.\u0275inj=n.G2t({imports:[v.MD,l.yE]})}}return m})()},49678:(Bt,z,s)=>{"use strict";s.d(z,{VT:()=>V,Wk:()=>N,_g:()=>T});var n=s(58527),l=s(51635),d=s(31308),v=s(6364),S=s(40567),y=s(56106),f=s(61142);const O=["input"],P=["*"];let _=0;class i{constructor(E,g){this.source=E,this.value=g}}const r={provide:y.kq,useExisting:(0,n.Rfq)(()=>V),multi:!0},a=new n.nKC("MatRadioGroup"),c=new n.nKC("mat-radio-default-options",{providedIn:"root",factory:function m(){return{color:"accent"}}});let M=(()=>{class L{get name(){return this._name}set name(g){this._name=g,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(g){this._labelPosition="before"===g?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(g){this._value!==g&&(this._value=g,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(g){this._selected=g,this.value=g?g.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(g){this._disabled=(0,v.he)(g),this._markRadiosForCheck()}get required(){return this._required}set required(g){this._required=(0,v.he)(g),this._markRadiosForCheck()}constructor(g){this._changeDetector=g,this._value=null,this._name="mat-radio-group-"+_++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new n.bkB}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(g=>g===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(g=>{g.name=this.name,g._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(R=>{R.checked=this.value===R.value,R.checked&&(this._selected=R)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new i(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(g=>g._markForCheck())}writeValue(g){this.value=g,this._changeDetector.markForCheck()}registerOnChange(g){this._controlValueAccessorChangeFn=g}registerOnTouched(g){this.onTouched=g}setDisabledState(g){this.disabled=g,this._changeDetector.markForCheck()}static{this.\u0275fac=function(R){return new(R||L)(n.rXU(n.gRc))}}static{this.\u0275dir=n.FsC({type:L,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}})}}return L})();class D{constructor(E){this._elementRef=E}}const I=(0,l.GG)((0,l.BF)(D));let U=(()=>{class L extends I{get checked(){return this._checked}set checked(g){const R=(0,v.he)(g);this._checked!==R&&(this._checked=R,R&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!R&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),R&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(g){this._value!==g&&(this._value=g,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===g),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(g){this._labelPosition=g}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(g){this._setDisabled((0,v.he)(g))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(g){this._required=(0,v.he)(g)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(g){this._color=g}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(g,R,B,X,H,J,re,ie){super(R),this._changeDetector=B,this._focusMonitor=X,this._radioDispatcher=H,this._providerOverride=re,this._uniqueId="mat-radio-"+ ++_,this.id=this._uniqueId,this.change=new n.bkB,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=g,this._noopAnimations="NoopAnimations"===J,ie&&(this.tabIndex=(0,v.OE)(ie,0))}focus(g,R){R?this._focusMonitor.focusVia(this._inputElement,R,g):this._inputElement.nativeElement.focus(g)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((g,R)=>{g!==this.id&&R===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(g=>{!g&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new i(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(g){g.stopPropagation()}_onInputInteraction(g){if(g.stopPropagation(),!this.checked&&!this.disabled){const R=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),R&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(g){this._onInputInteraction(g),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(g){this._disabled!==g&&(this._disabled=g,this._changeDetector.markForCheck())}_updateTabIndex(){const g=this.radioGroup;let R;if(R=g&&g.selected&&!this.disabled?g.selected===this?this.tabIndex:-1:this.tabIndex,R!==this._previousTabIndex){const B=this._inputElement?.nativeElement;B&&(B.setAttribute("tabindex",R+""),this._previousTabIndex=R)}}static{this.\u0275fac=function(R){n.QTQ()}}static{this.\u0275dir=n.FsC({type:L,viewQuery:function(R,B){if(1&R&&n.GBs(O,5),2&R){let X;n.mGM(X=n.lsd())&&(B._inputElement=X.first)}},inputs:{id:"id",name:"name",ariaLabel:[n.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[n.Mj6.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[n.Mj6.None,"aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[n.Vt3]})}}return L})(),V=(()=>{class L extends M{static{this.\u0275fac=(()=>{let g;return function(B){return(g||(g=n.xGo(L)))(B||L)}})()}static{this.\u0275dir=n.FsC({type:L,selectors:[["mat-radio-group"]],contentQueries:function(R,B,X){if(1&R&&n.wni(X,T,5),2&R){let H;n.mGM(H=n.lsd())&&(B._radios=H)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[n.Jv_([r,{provide:a,useExisting:L}]),n.Vt3]})}}return L})(),T=(()=>{class L extends U{constructor(g,R,B,X,H,J,re,ie){super(g,R,B,X,H,J,re,ie)}static{this.\u0275fac=function(R){return new(R||L)(n.rXU(a,8),n.rXU(n.aKT),n.rXU(n.gRc),n.rXU(d.FN),n.rXU(S.zP),n.rXU(n.bc$,8),n.rXU(c,8),n.kS0("tabindex"))}}static{this.\u0275cmp=n.VBU({type:L,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(R,B){1&R&&n.bIt("focus",function(){return B._inputElement.nativeElement.focus()}),2&R&&(n.BMQ("id",B.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),n.AVh("mat-primary","primary"===B.color)("mat-accent","accent"===B.color)("mat-warn","warn"===B.color)("mat-mdc-radio-checked",B.checked)("_mat-animation-noopable",B._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[n.Vt3],ngContentSelectors:P,decls:13,vars:17,consts:[["formField",""],["input",""],[1,"mdc-form-field"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(R,B){if(1&R){const X=n.RV6();n.NAR(),n.j41(0,"div",2,0)(2,"div",3)(3,"div",4),n.bIt("click",function(J){return n.eBV(X),n.Njj(B._onTouchTargetClick(J))}),n.k0s(),n.j41(4,"input",5,1),n.bIt("change",function(J){return n.eBV(X),n.Njj(B._onInputInteraction(J))}),n.k0s(),n.j41(6,"div",6),n.nrm(7,"div",7)(8,"div",8),n.k0s(),n.j41(9,"div",9),n.nrm(10,"div",10),n.k0s()(),n.j41(11,"label",11),n.SdG(12),n.k0s()()}if(2&R){const X=n.sdS(1);n.AVh("mdc-form-field--align-end","before"==B.labelPosition),n.R7$(2),n.AVh("mdc-radio--disabled",B.disabled),n.R7$(2),n.Y8G("id",B.inputId)("checked",B.checked)("disabled",B.disabled)("required",B.required),n.BMQ("name",B.name)("value",B.value)("aria-label",B.ariaLabel)("aria-labelledby",B.ariaLabelledby)("aria-describedby",B.ariaDescribedby),n.R7$(5),n.Y8G("matRippleTrigger",X)("matRippleDisabled",B._isRippleDisabled())("matRippleCentered",!0),n.R7$(2),n.Y8G("for",B.inputId)}},dependencies:[l.r6],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{--mdc-radio-disabled-selected-icon-opacity:0.38;--mdc-radio-disabled-unselected-icon-opacity:0.38;--mdc-radio-state-layer-size:40px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);right:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);left:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0})}}return L})(),N=(()=>{class L{static{this.\u0275fac=function(R){return new(R||L)}}static{this.\u0275mod=n.$C({type:L})}static{this.\u0275inj=n.G2t({imports:[l.yE,f.MD,l.pZ,l.yE]})}}return L})()},12949:(Bt,z,s)=>{"use strict";s.d(z,{VO:()=>G,Ve:()=>W});var n=s(61904),l=s(61142),d=s(58527),v=s(51635),S=s(74292),y=s(64409),f=s(31308),O=s(51394),P=s(6364),_=s(40567),i=s(25373),r=s(56106),a=s(80583),c=s(63997),m=s(16229),M=s(34593),D=s(72147),I=s(65706),U=s(8619),V=s(83915),T=s(53461),N=s(4208),L=s(40262);const E=["trigger"],g=["panel"],R=[[["mat-select-trigger"]],"*"],B=["mat-select-trigger","*"];function X($,le){if(1&$&&(d.j41(0,"span",11),d.EFF(1),d.k0s()),2&$){const Pe=d.XpG();d.R7$(),d.JRh(Pe.placeholder)}}function H($,le){if(1&$&&(d.j41(0,"span",15),d.EFF(1),d.k0s()),2&$){const Pe=d.XpG(2);d.R7$(),d.JRh(Pe.triggerValue)}}function J($,le){1&$&&d.SdG(0,0,["*ngSwitchCase","true"])}function re($,le){if(1&$&&(d.j41(0,"span",12),d.DNE(1,H,2,1,"span",13)(2,J,1,0,"ng-content",14),d.k0s()),2&$){const Pe=d.XpG();d.Y8G("ngSwitch",!!Pe.customTrigger),d.R7$(2),d.Y8G("ngSwitchCase",!0)}}function ie($,le){if(1&$){const Pe=d.RV6();d.j41(0,"div",16,1),d.bIt("@transformPanel.done",function(At){d.eBV(Pe);const Le=d.XpG();return d.Njj(Le._panelDoneAnimatingStream.next(At.toState))})("keydown",function(At){d.eBV(Pe);const Le=d.XpG();return d.Njj(Le._handleKeydown(At))}),d.SdG(2,1),d.k0s()}if(2&$){const Pe=d.XpG();d.ZvI("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",Pe._getPanelTheme(),""),d.Y8G("ngClass",Pe.panelClass)("@transformPanel","showing"),d.BMQ("id",Pe.id+"-panel")("aria-multiselectable",Pe.multiple)("aria-label",Pe.ariaLabel||null)("aria-labelledby",Pe._getPanelAriaLabelledby())}}const ve={transformPanelWrap:(0,L.hZ)("transformPanelWrap",[(0,L.kY)("* => void",(0,L.P)("@transformPanel",[(0,L.MA)()],{optional:!0}))]),transformPanel:(0,L.hZ)("transformPanel",[(0,L.wk)("void",(0,L.iF)({opacity:0,transform:"scale(1, 0.8)"})),(0,L.kY)("void => showing",(0,L.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,L.iF)({opacity:1,transform:"scale(1, 1)"}))),(0,L.kY)("* => void",(0,L.i0)("100ms linear",(0,L.iF)({opacity:0})))])};let Se=0;const Ce=new d.nKC("mat-select-scroll-strategy"),Xe=new d.nKC("MAT_SELECT_CONFIG"),He={provide:Ce,deps:[n.hJ],useFactory:function Be($){return()=>$.scrollStrategies.reposition()}},Me=new d.nKC("MatSelectTrigger");class Q{constructor(le,Pe){this.source=le,this.value=Pe}}const A=(0,v.GG)((0,v.BF)((0,v.Ob)((0,v.J8)(class{constructor($,le,Pe,Fe,At){this._elementRef=$,this._defaultErrorStateMatcher=le,this._parentForm=Pe,this._parentFormGroup=Fe,this.ngControl=At,this.stateChanges=new a.B7}}))));let me=(()=>{class $ extends A{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(Pe){this._placeholder=Pe,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(r.k0.required)??!1}set required(Pe){this._required=(0,P.he)(Pe),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(Pe){this._multiple=(0,P.he)(Pe)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(Pe){this._disableOptionCentering=(0,P.he)(Pe)}get compareWith(){return this._compareWith}set compareWith(Pe){this._compareWith=Pe,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(Pe){this._assignValue(Pe)&&this._onChange(Pe)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(Pe){this._typeaheadDebounceInterval=(0,P.OE)(Pe)}get id(){return this._id}set id(Pe){this._id=Pe||this._uid,this.stateChanges.next()}constructor(Pe,Fe,At,Le,Et,$e,Ze,Qe,Ve,nt,Ot,at,It,We){super(Et,Le,Ze,Qe,nt),this._viewportRuler=Pe,this._changeDetectorRef=Fe,this._ngZone=At,this._dir=$e,this._parentFormField=Ve,this._liveAnnouncer=It,this._defaultOptions=We,this._panelOpen=!1,this._compareWith=(xe,lt)=>xe===lt,this._uid="mat-select-"+Se++,this._triggerAriaLabelledBy=null,this._destroy=new a.B7,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Se++,this._panelDoneAnimatingStream=new a.B7,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,c.v)(()=>{const xe=this.options;return xe?xe.changes.pipe((0,M.Z)(xe),(0,D.n)(()=>(0,m.h)(...xe.map(lt=>lt.onSelectionChange)))):this._ngZone.onStable.pipe((0,I.s)(1),(0,D.n)(()=>this.optionSelectionChanges))}),this.openedChange=new d.bkB,this._openedStream=this.openedChange.pipe((0,U.p)(xe=>xe),(0,V.T)(()=>{})),this._closedStream=this.openedChange.pipe((0,U.p)(xe=>!xe),(0,V.T)(()=>{})),this.selectionChange=new d.bkB,this.valueChange=new d.bkB,this._trackedModal=null,this.ngControl&&(this.ngControl.valueAccessor=this),null!=We?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=We.typeaheadDebounceInterval),this._scrollStrategyFactory=at,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Ot)||0,this.id=this.id}ngOnInit(){this._selectionModel=new _.CB(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,T.F)(),(0,N.Q)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,N.Q)(this._destroy)).subscribe(Pe=>{Pe.added.forEach(Fe=>Fe.select()),Pe.removed.forEach(Fe=>Fe.deselect())}),this.options.changes.pipe((0,M.Z)(null),(0,N.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const Pe=this._getTriggerAriaLabelledby(),Fe=this.ngControl;if(Pe!==this._triggerAriaLabelledBy){const At=this._elementRef.nativeElement;this._triggerAriaLabelledBy=Pe,Pe?At.setAttribute("aria-labelledby",Pe):At.removeAttribute("aria-labelledby")}Fe&&(this._previousControl!==Fe.control&&(void 0!==this._previousControl&&null!==Fe.disabled&&Fe.disabled!==this.disabled&&(this.disabled=Fe.disabled),this._previousControl=Fe.control),this.updateErrorState())}ngOnChanges(Pe){(Pe.disabled||Pe.userAriaDescribedBy)&&this.stateChanges.next(),Pe.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}_applyModalPanelOwnership(){const Pe=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!Pe)return;const Fe=`${this.id}-panel`;this._trackedModal&&(0,f.Ae)(this._trackedModal,"aria-owns",Fe),(0,f.px)(Pe,"aria-owns",Fe),this._trackedModal=Pe}_clearFromModal(){this._trackedModal&&((0,f.Ae)(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(Pe){this._assignValue(Pe)}registerOnChange(Pe){this._onChange=Pe}registerOnTouched(Pe){this._onTouched=Pe}setDisabledState(Pe){this.disabled=Pe,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const Pe=this._selectionModel.selected.map(Fe=>Fe.viewValue);return this._isRtl()&&Pe.reverse(),Pe.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(Pe){this.disabled||(this.panelOpen?this._handleOpenKeydown(Pe):this._handleClosedKeydown(Pe))}_handleClosedKeydown(Pe){const Fe=Pe.keyCode,At=Fe===i.n6||Fe===i.i7||Fe===i.UQ||Fe===i.LE,Le=Fe===i.Fm||Fe===i.t6,Et=this._keyManager;if(!Et.isTyping()&&Le&&!(0,i.rp)(Pe)||(this.multiple||Pe.altKey)&&At)Pe.preventDefault(),this.open();else if(!this.multiple){const $e=this.selected;Et.onKeydown(Pe);const Ze=this.selected;Ze&&$e!==Ze&&this._liveAnnouncer.announce(Ze.viewValue,1e4)}}_handleOpenKeydown(Pe){const Fe=this._keyManager,At=Pe.keyCode,Le=At===i.n6||At===i.i7,Et=Fe.isTyping();if(Le&&Pe.altKey)Pe.preventDefault(),this.close();else if(Et||At!==i.Fm&&At!==i.t6||!Fe.activeItem||(0,i.rp)(Pe))if(!Et&&this._multiple&&At===i.A&&Pe.ctrlKey){Pe.preventDefault();const $e=this.options.some(Ze=>!Ze.disabled&&!Ze.selected);this.options.forEach(Ze=>{Ze.disabled||($e?Ze.select():Ze.deselect())})}else{const $e=Fe.activeItemIndex;Fe.onKeydown(Pe),this._multiple&&Le&&Pe.shiftKey&&Fe.activeItem&&Fe.activeItemIndex!==$e&&Fe.activeItem._selectViaInteraction()}else Pe.preventDefault(),Fe.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,I.s)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(Pe){if(this.options.forEach(Fe=>Fe.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&Pe)Array.isArray(Pe),Pe.forEach(Fe=>this._selectOptionByValue(Fe)),this._sortValues();else{const Fe=this._selectOptionByValue(Pe);Fe?this._keyManager.updateActiveItem(Fe):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(Pe){const Fe=this.options.find(At=>{if(this._selectionModel.isSelected(At))return!1;try{return null!=At.value&&this._compareWith(At.value,Pe)}catch{return!1}});return Fe&&this._selectionModel.select(Fe),Fe}_assignValue(Pe){return!!(Pe!==this._value||this._multiple&&Array.isArray(Pe))&&(this.options&&this._setSelectionByValue(Pe),this._value=Pe,!0)}_skipPredicate(Pe){return Pe.disabled}_initKeyManager(){this._keyManager=new f.Au(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const Pe=(0,m.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,N.Q)(Pe)).subscribe(Fe=>{this._onSelect(Fe.source,Fe.isUserInput),Fe.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,m.h)(...this.options.map(Fe=>Fe._stateChanges)).pipe((0,N.Q)(Pe)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(Pe,Fe){const At=this._selectionModel.isSelected(Pe);null!=Pe.value||this._multiple?(At!==Pe.selected&&(Pe.selected?this._selectionModel.select(Pe):this._selectionModel.deselect(Pe)),Fe&&this._keyManager.setActiveItem(Pe),this.multiple&&(this._sortValues(),Fe&&this.focus())):(Pe.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(Pe.value)),At!==this._selectionModel.isSelected(Pe)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const Pe=this.options.toArray();this._selectionModel.sort((Fe,At)=>this.sortComparator?this.sortComparator(Fe,At,Pe):Pe.indexOf(Fe)-Pe.indexOf(At)),this.stateChanges.next()}}_propagateChanges(Pe){let Fe=null;Fe=this.multiple?this.selected.map(At=>At.value):this.selected?this.selected.value:Pe,this._value=Fe,this.valueChange.emit(Fe),this._onChange(Fe),this.selectionChange.emit(this._getChangeEvent(Fe)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let Pe=-1;for(let Fe=0;Fe<this.options.length;Fe++)if(!this.options.get(Fe).disabled){Pe=Fe;break}this._keyManager.setActiveItem(Pe)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(Pe){this._elementRef.nativeElement.focus(Pe)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const Pe=this._parentFormField?.getLabelId();return this.ariaLabelledby?(Pe?Pe+" ":"")+this.ariaLabelledby:Pe}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const Pe=this._parentFormField?.getLabelId();let Fe=(Pe?Pe+" ":"")+this._valueId;return this.ariaLabelledby&&(Fe+=" "+this.ariaLabelledby),Fe}_panelDoneAnimating(Pe){this.openedChange.emit(Pe)}setDescribedByIds(Pe){Pe.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Pe.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}static{this.\u0275fac=function(Fe){return new(Fe||$)(d.rXU(y.Xj),d.rXU(d.gRc),d.rXU(d.SKi),d.rXU(v.es),d.rXU(d.aKT),d.rXU(O.dS,8),d.rXU(r.cV,8),d.rXU(r.j4,8),d.rXU(S.xb,8),d.rXU(r.vO,10),d.kS0("tabindex"),d.rXU(Ce),d.rXU(f.Ai),d.rXU(Xe,8))}}static{this.\u0275dir=d.FsC({type:$,viewQuery:function(Fe,At){if(1&Fe&&(d.GBs(E,5),d.GBs(g,5),d.GBs(n.WB,5)),2&Fe){let Le;d.mGM(Le=d.lsd())&&(At.trigger=Le.first),d.mGM(Le=d.lsd())&&(At.panel=Le.first),d.mGM(Le=d.lsd())&&(At._overlayDir=Le.first)}},inputs:{userAriaDescribedBy:[d.Mj6.None,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:[d.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[d.Mj6.None,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[d.Vt3,d.OA$]})}}return $})(),G=(()=>{class $ extends me{constructor(){super(...arguments),this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._skipPredicate=Pe=>!this.panelOpen&&Pe.disabled}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,N.Q)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}open(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(Pe){const Fe=this.options.toArray()[Pe];if(Fe){const At=this.panel.nativeElement,Le=(0,v.jb)(Pe,this.options,this.optionGroups),Et=Fe._getHostElement();At.scrollTop=0===Pe&&1===Le?0:(0,v.TL)(Et.offsetTop,Et.offsetHeight,At.scrollTop,At.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(Pe){return new Q(this,Pe)}_getOverlayWidth(Pe){return"auto"===this.panelWidth?(Pe instanceof n.$Q?Pe.elementRef:Pe||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(Pe){this._hideSingleSelectionIndicator=(0,P.he)(Pe),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const Pe of this.options)Pe._changeDetectorRef.markForCheck()}static{this.\u0275fac=(()=>{let Pe;return function(At){return(Pe||(Pe=d.xGo($)))(At||$)}})()}static{this.\u0275cmp=d.VBU({type:$,selectors:[["mat-select"]],contentQueries:function(Fe,At,Le){if(1&Fe&&(d.wni(Le,Me,5),d.wni(Le,v.wT,5),d.wni(Le,v.QC,5)),2&Fe){let Et;d.mGM(Et=d.lsd())&&(At.customTrigger=Et.first),d.mGM(Et=d.lsd())&&(At.options=Et),d.mGM(Et=d.lsd())&&(At.optionGroups=Et)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox","ngSkipHydration","",1,"mat-mdc-select"],hostVars:19,hostBindings:function(Fe,At){1&Fe&&d.bIt("keydown",function(Et){return At._handleKeydown(Et)})("focus",function(){return At._onFocus()})("blur",function(){return At._onBlur()}),2&Fe&&(d.BMQ("id",At.id)("tabindex",At.tabIndex)("aria-controls",At.panelOpen?At.id+"-panel":null)("aria-expanded",At.panelOpen)("aria-label",At.ariaLabel||null)("aria-required",At.required.toString())("aria-disabled",At.disabled.toString())("aria-invalid",At.errorState)("aria-activedescendant",At._getAriaActiveDescendant()),d.AVh("mat-mdc-select-disabled",At.disabled)("mat-mdc-select-invalid",At.errorState)("mat-mdc-select-required",At.required)("mat-mdc-select-empty",At.empty)("mat-mdc-select-multiple",At.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",panelWidth:"panelWidth",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[d.Jv_([{provide:S.qT,useExisting:$},{provide:v.is,useExisting:$}]),d.Vt3],ngContentSelectors:B,decls:11,vars:10,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(Fe,At){if(1&Fe){const Le=d.RV6();d.NAR(R),d.j41(0,"div",2,0),d.bIt("click",function(){return d.eBV(Le),d.Njj(At.toggle())}),d.j41(3,"div",3),d.DNE(4,X,2,1,"span",4)(5,re,3,2,"span",5),d.k0s(),d.j41(6,"div",6)(7,"div",7),d.qSk(),d.j41(8,"svg",8),d.nrm(9,"path",9),d.k0s()()()(),d.DNE(10,ie,3,9,"ng-template",10),d.bIt("backdropClick",function(){return d.eBV(Le),d.Njj(At.close())})("attach",function(){return d.eBV(Le),d.Njj(At._onAttached())})("detach",function(){return d.eBV(Le),d.Njj(At.close())})}if(2&Fe){const Le=d.sdS(1);d.R7$(3),d.Y8G("ngSwitch",At.empty),d.BMQ("id",At._valueId),d.R7$(),d.Y8G("ngSwitchCase",!0),d.R7$(),d.Y8G("ngSwitchCase",!1),d.R7$(5),d.Y8G("cdkConnectedOverlayPanelClass",At._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",At._scrollStrategy)("cdkConnectedOverlayOrigin",At._preferredOverlayOrigin||Le)("cdkConnectedOverlayOpen",At.panelOpen)("cdkConnectedOverlayPositions",At._positions)("cdkConnectedOverlayWidth",At._overlayWidth)}},dependencies:[l.YU,l.ux,l.e1,l.fG,n.WB,n.$Q],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[ve.transformPanel]},changeDetection:0})}}return $})(),W=(()=>{class ${static{this.\u0275fac=function(Fe){return new(Fe||$)}}static{this.\u0275mod=d.$C({type:$})}static{this.\u0275inj=d.G2t({providers:[He],imports:[l.MD,n.z_,v.Sy,v.yE,y.Gj,S.RG,v.Sy,v.yE]})}}return $})()},65597:(Bt,z,s)=>{"use strict";s.d(z,{UG:()=>xe,_T:()=>Ot});var n=s(58527),l=s(80583),d=s(61142),v=s(72653),S=s(31308),y=s(6364),f=s(51635);const O=["mat-button",""],P=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],_=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],T=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],N=(0,f.Zc)((0,f.Ob)((0,f.GG)(class{constructor(lt){this._elementRef=lt}})));let L=(()=>{class lt extends N{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(ht){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,ht)}get disableRipple(){return this._disableRipple}set disableRipple(ht){this._disableRipple=(0,y.he)(ht),this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(ht){this._disabled=(0,y.he)(ht),this._updateRippleDisabled()}constructor(ht,Xt,Ht,Je){super(ht),this._platform=Xt,this._ngZone=Ht,this._animationMode=Je,this._focusMonitor=(0,n.WQX)(S.FN),this._rippleLoader=(0,n.WQX)(f.Ej),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const tt=ht.nativeElement.classList;for(const rt of T)this._hasHostAttributes(rt.selector)&&rt.mdcClasses.forEach(et=>{tt.add(et)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(ht="program",Xt){ht?this._focusMonitor.focusVia(this._elementRef.nativeElement,ht,Xt):this._elementRef.nativeElement.focus(Xt)}_hasHostAttributes(...ht){return ht.some(Xt=>this._elementRef.nativeElement.hasAttribute(Xt))}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static{this.\u0275fac=function(Xt){n.QTQ()}}static{this.\u0275dir=n.FsC({type:lt,features:[n.Vt3]})}}return lt})(),B=(()=>{class lt extends L{constructor(ht,Xt,Ht,Je){super(ht,Xt,Ht,Je)}static{this.\u0275fac=function(Xt){return new(Xt||lt)(n.rXU(n.aKT),n.rXU(v.OD),n.rXU(n.SKi),n.rXU(n.bc$,8))}}static{this.\u0275cmp=n.VBU({type:lt,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(Xt,Ht){2&Xt&&(n.BMQ("disabled",Ht.disabled||null),n.AVh("_mat-animation-noopable","NoopAnimations"===Ht._animationMode)("mat-unthemed",!Ht.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[n.Vt3],attrs:O,ngContentSelectors:_,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Xt,Ht){1&Xt&&(n.NAR(P),n.nrm(0,"span",0),n.SdG(1),n.j41(2,"span",1),n.SdG(3,1),n.k0s(),n.SdG(4,2),n.nrm(5,"span",2)(6,"span",3)),2&Xt&&n.AVh("mdc-button__ripple",!Ht._isFab)("mdc-fab__ripple",Ht._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}}return lt})(),Be=(()=>{class lt{static{this.\u0275fac=function(Xt){return new(Xt||lt)}}static{this.\u0275mod=n.$C({type:lt})}static{this.\u0275inj=n.G2t({imports:[f.yE,f.pZ,f.yE]})}}return lt})();var Xe=s(40262),He=s(76614),Me=s(65706),Q=s(4208),A=s(76706),me=s(61904);function ne(lt,ft){if(1<){const ht=n.RV6();n.j41(0,"div",2)(1,"button",3),n.bIt("click",function(){n.eBV(ht);const Ht=n.XpG();return n.Njj(Ht.action())}),n.EFF(2),n.k0s()()}if(2<){const ht=n.XpG();n.R7$(2),n.SpI(" ",ht.data.action," ")}}const G=["label"];function W(lt,ft){}const $=Math.pow(2,31)-1;class le{constructor(ft,ht){this._overlayRef=ht,this._afterDismissed=new l.B7,this._afterOpened=new l.B7,this._onAction=new l.B7,this._dismissedByAction=!1,this.containerInstance=ft,ft._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(ft){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(ft,$))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const Pe=new n.nKC("MatSnackBarData");class Fe{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let At=(()=>{class lt{static{this.\u0275fac=function(Xt){return new(Xt||lt)}}static{this.\u0275dir=n.FsC({type:lt,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}}return lt})(),Le=(()=>{class lt{static{this.\u0275fac=function(Xt){return new(Xt||lt)}}static{this.\u0275dir=n.FsC({type:lt,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}}return lt})(),Et=(()=>{class lt{static{this.\u0275fac=function(Xt){return new(Xt||lt)}}static{this.\u0275dir=n.FsC({type:lt,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}}return lt})(),$e=(()=>{class lt{constructor(ht,Xt){this.snackBarRef=ht,this.data=Xt}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static{this.\u0275fac=function(Xt){return new(Xt||lt)(n.rXU(le),n.rXU(Pe))}}static{this.\u0275cmp=n.VBU({type:lt,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(Xt,Ht){1&Xt&&(n.j41(0,"div",0),n.EFF(1),n.k0s(),n.DNE(2,ne,3,1,"div",1)),2&Xt&&(n.R7$(),n.SpI(" ",Ht.data.message,"\n"),n.R7$(),n.Y8G("ngIf",Ht.hasAction))},dependencies:[d.bT,B,At,Le,Et],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}}return lt})();const Ze={snackBarState:(0,Xe.hZ)("state",[(0,Xe.wk)("void, hidden",(0,Xe.iF)({transform:"scale(0.8)",opacity:0})),(0,Xe.wk)("visible",(0,Xe.iF)({transform:"scale(1)",opacity:1})),(0,Xe.kY)("* => visible",(0,Xe.i0)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,Xe.kY)("* => void, * => hidden",(0,Xe.i0)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,Xe.iF)({opacity:0})))])};let Qe=0,Ve=(()=>{class lt extends He.lb{constructor(ht,Xt,Ht,Je,tt){super(),this._ngZone=ht,this._elementRef=Xt,this._changeDetectorRef=Ht,this._platform=Je,this.snackBarConfig=tt,this._document=(0,n.WQX)(d.qQ),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new l.B7,this._onExit=new l.B7,this._onEnter=new l.B7,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+Qe++,this.attachDomPortal=rt=>{this._assertNotAttached();const et=this._portalOutlet.attachDomPortal(rt);return this._afterPortalAttached(),et},this._live="assertive"!==tt.politeness||tt.announcementMessage?"off"===tt.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(ht){this._assertNotAttached();const Xt=this._portalOutlet.attachComponentPortal(ht);return this._afterPortalAttached(),Xt}attachTemplatePortal(ht){this._assertNotAttached();const Xt=this._portalOutlet.attachTemplatePortal(ht);return this._afterPortalAttached(),Xt}onAnimationEnd(ht){const{fromState:Xt,toState:Ht}=ht;if(("void"===Ht&&"void"!==Xt||"hidden"===Ht)&&this._completeExit(),"visible"===Ht){const Je=this._onEnter;this._ngZone.run(()=>{Je.next(),Je.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,Me.s)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const ht=this._elementRef.nativeElement,Xt=this.snackBarConfig.panelClass;Xt&&(Array.isArray(Xt)?Xt.forEach(Ht=>ht.classList.add(Ht)):ht.classList.add(Xt)),this._exposeToModals()}_exposeToModals(){const ht=this._liveElementId,Xt=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let Ht=0;Ht<Xt.length;Ht++){const Je=Xt[Ht],tt=Je.getAttribute("aria-owns");this._trackedModals.add(Je),tt?-1===tt.indexOf(ht)&&Je.setAttribute("aria-owns",tt+" "+ht):Je.setAttribute("aria-owns",ht)}}_clearFromModals(){this._trackedModals.forEach(ht=>{const Xt=ht.getAttribute("aria-owns");if(Xt){const Ht=Xt.replace(this._liveElementId,"").trim();Ht.length>0?ht.setAttribute("aria-owns",Ht):ht.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const ht=this._elementRef.nativeElement.querySelector("[aria-hidden]"),Xt=this._elementRef.nativeElement.querySelector("[aria-live]");if(ht&&Xt){let Ht=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&ht.contains(document.activeElement)&&(Ht=document.activeElement),ht.removeAttribute("aria-hidden"),Xt.appendChild(ht),Ht?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static{this.\u0275fac=function(Xt){return new(Xt||lt)(n.rXU(n.SKi),n.rXU(n.aKT),n.rXU(n.gRc),n.rXU(v.OD),n.rXU(Fe))}}static{this.\u0275dir=n.FsC({type:lt,viewQuery:function(Xt,Ht){if(1&Xt&&n.GBs(He.I3,7),2&Xt){let Je;n.mGM(Je=n.lsd())&&(Ht._portalOutlet=Je.first)}},features:[n.Vt3]})}}return lt})(),nt=(()=>{class lt extends Ve{_afterPortalAttached(){super._afterPortalAttached();const ht=this._label.nativeElement,Xt="mdc-snackbar__label";ht.classList.toggle(Xt,!ht.querySelector(`.${Xt}`))}static{this.\u0275fac=(()=>{let ht;return function(Ht){return(ht||(ht=n.xGo(lt)))(Ht||lt)}})()}static{this.\u0275cmp=n.VBU({type:lt,selectors:[["mat-snack-bar-container"]],viewQuery:function(Xt,Ht){if(1&Xt&&n.GBs(G,7),2&Xt){let Je;n.mGM(Je=n.lsd())&&(Ht._label=Je.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(Xt,Ht){1&Xt&&n.Kam("@state.done",function(tt){return Ht.onAnimationEnd(tt)}),2&Xt&&n.zvX("@state",Ht._animationState)},features:[n.Vt3],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(Xt,Ht){1&Xt&&(n.j41(0,"div",1)(1,"div",2,0)(3,"div",3),n.DNE(4,W,0,0,"ng-template",4),n.k0s(),n.nrm(5,"div"),n.k0s()()),2&Xt&&(n.R7$(5),n.BMQ("aria-live",Ht._live)("role",Ht._role)("id",Ht._liveElementId))},dependencies:[He.I3],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;--mdc-snackbar-container-shape:4px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape)}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size);font-family:var(--mdc-snackbar-supporting-text-font);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[Ze.snackBarState]}})}}return lt})(),Ot=(()=>{class lt{static{this.\u0275fac=function(Xt){return new(Xt||lt)}}static{this.\u0275mod=n.$C({type:lt})}static{this.\u0275inj=n.G2t({imports:[me.z_,He.jc,d.MD,Be,f.yE,f.yE]})}}return lt})();const It=new n.nKC("mat-snack-bar-default-options",{providedIn:"root",factory:function at(){return new Fe}});let We=(()=>{class lt{get _openedSnackBarRef(){const ht=this._parentSnackBar;return ht?ht._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(ht){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=ht:this._snackBarRefAtThisLevel=ht}constructor(ht,Xt,Ht,Je,tt,rt){this._overlay=ht,this._live=Xt,this._injector=Ht,this._breakpointObserver=Je,this._parentSnackBar=tt,this._defaultConfig=rt,this._snackBarRefAtThisLevel=null}openFromComponent(ht,Xt){return this._attach(ht,Xt)}openFromTemplate(ht,Xt){return this._attach(ht,Xt)}open(ht,Xt="",Ht){const Je={...this._defaultConfig,...Ht};return Je.data={message:ht,action:Xt},Je.announcementMessage===ht&&(Je.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,Je)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(ht,Xt){const Je=n.zZn.create({parent:Xt&&Xt.viewContainerRef&&Xt.viewContainerRef.injector||this._injector,providers:[{provide:Fe,useValue:Xt}]}),tt=new He.A8(this.snackBarContainerComponent,Xt.viewContainerRef,Je),rt=ht.attach(tt);return rt.instance.snackBarConfig=Xt,rt.instance}_attach(ht,Xt){const Ht={...new Fe,...this._defaultConfig,...Xt},Je=this._createOverlay(Ht),tt=this._attachSnackBarContainer(Je,Ht),rt=new le(tt,Je);if(ht instanceof n.C4Q){const et=new He.VA(ht,null,{$implicit:Ht.data,snackBarRef:rt});rt.instance=tt.attachTemplatePortal(et)}else{const et=this._createInjector(Ht,rt),St=new He.A8(ht,void 0,et),Gt=tt.attachComponentPortal(St);rt.instance=Gt.instance}return this._breakpointObserver.observe(A.Rp.HandsetPortrait).pipe((0,Q.Q)(Je.detachments())).subscribe(et=>{Je.overlayElement.classList.toggle(this.handsetCssClass,et.matches)}),Ht.announcementMessage&&tt._onAnnounce.subscribe(()=>{this._live.announce(Ht.announcementMessage,Ht.politeness)}),this._animateSnackBar(rt,Ht),this._openedSnackBarRef=rt,this._openedSnackBarRef}_animateSnackBar(ht,Xt){ht.afterDismissed().subscribe(()=>{this._openedSnackBarRef==ht&&(this._openedSnackBarRef=null),Xt.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{ht.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):ht.containerInstance.enter(),Xt.duration&&Xt.duration>0&&ht.afterOpened().subscribe(()=>ht._dismissAfter(Xt.duration))}_createOverlay(ht){const Xt=new me.rR;Xt.direction=ht.direction;let Ht=this._overlay.position().global();const Je="rtl"===ht.direction,tt="left"===ht.horizontalPosition||"start"===ht.horizontalPosition&&!Je||"end"===ht.horizontalPosition&&Je,rt=!tt&&"center"!==ht.horizontalPosition;return tt?Ht.left("0"):rt?Ht.right("0"):Ht.centerHorizontally(),"top"===ht.verticalPosition?Ht.top("0"):Ht.bottom("0"),Xt.positionStrategy=Ht,this._overlay.create(Xt)}_createInjector(ht,Xt){return n.zZn.create({parent:ht&&ht.viewContainerRef&&ht.viewContainerRef.injector||this._injector,providers:[{provide:le,useValue:Xt},{provide:Pe,useValue:ht.data}]})}static{this.\u0275fac=function(Xt){return new(Xt||lt)(n.KVO(me.hJ),n.KVO(S.Ai),n.KVO(n.zZn),n.KVO(A.QP),n.KVO(lt,12),n.KVO(It))}}static{this.\u0275prov=n.jDH({token:lt,factory:lt.\u0275fac})}}return lt})(),xe=(()=>{class lt extends We{constructor(ht,Xt,Ht,Je,tt,rt){super(ht,Xt,Ht,Je,tt,rt),this.simpleSnackBarComponent=$e,this.snackBarContainerComponent=nt,this.handsetCssClass="mat-mdc-snack-bar-handset"}static{this.\u0275fac=function(Xt){return new(Xt||lt)(n.KVO(me.hJ),n.KVO(S.Ai),n.KVO(n.zZn),n.KVO(A.QP),n.KVO(lt,12),n.KVO(It))}}static{this.\u0275prov=n.jDH({token:lt,factory:lt.\u0275fac,providedIn:Ot})}}return lt})()},68477:(Bt,z,s)=>{"use strict";s.d(z,{T8:()=>be,mq:()=>Xt});var n=s(61142),l=s(58527),d=s(51635),v=s(76614),S=s(26321),y=s(31308),f=s(51394),O=s(10399),P=s(80583),_=s(36877),i=s(43848),r=s(16229),a=s(12532),c=s(17053),m=s(3496),M=s(34593),D=s(53461),I=s(4208),U=s(65706),V=s(72147),T=s(36666),N=s(8619),L=s(40262),E=s(6364),g=s(64409),R=s(72653),B=s(25373);const X=bt=>({animationDuration:bt}),H=(bt,bn)=>({value:bt,params:bn});function J(bt,bn){}const re=["*"];function ie(bt,bn){1&bt&&l.SdG(0)}const ve=["tabListContainer"],ue=["tabList"],se=["tabListInner"],Z=["nextPaginator"],Se=["previousPaginator"],Ce=["tabBodyWrapper"],Be=["tabHeader"];function Xe(bt,bn){}function He(bt,bn){if(1&bt&&l.DNE(0,Xe,0,0,"ng-template",14),2&bt){const Pt=l.XpG().$implicit;l.Y8G("cdkPortalOutlet",Pt.templateLabel)}}function Me(bt,bn){if(1&bt&&l.EFF(0),2&bt){const Pt=l.XpG().$implicit;l.JRh(Pt.textLabel)}}function Q(bt,bn){if(1&bt){const Pt=l.RV6();l.j41(0,"div",8,2),l.bIt("click",function(){const gn=l.eBV(Pt),ui=gn.$implicit,Ii=gn.index,pr=l.XpG(),zr=l.sdS(1);return l.Njj(pr._handleClick(ui,zr,Ii))})("cdkFocusChange",function(gn){const ui=l.eBV(Pt).index,Ii=l.XpG();return l.Njj(Ii._tabFocusChanged(gn,ui))}),l.nrm(2,"span",9)(3,"div",10),l.j41(4,"span",11)(5,"span",12),l.DNE(6,He,1,1,"ng-template",13)(7,Me,1,1,"ng-template",null,3,l.C5r),l.k0s()()()}if(2&bt){const Pt=bn.$implicit,jt=bn.index,gn=l.sdS(1),ui=l.sdS(8),Ii=l.XpG();l.AVh("mdc-tab--active",Ii.selectedIndex===jt),l.Y8G("id",Ii._getTabLabelId(jt))("ngClass",Pt.labelClass)("disabled",Pt.disabled)("fitInkBarToContent",Ii.fitInkBarToContent),l.BMQ("tabIndex",Ii._getTabIndex(jt))("aria-posinset",jt+1)("aria-setsize",Ii._tabs.length)("aria-controls",Ii._getTabContentId(jt))("aria-selected",Ii.selectedIndex===jt)("aria-label",Pt.ariaLabel||null)("aria-labelledby",!Pt.ariaLabel&&Pt.ariaLabelledby?Pt.ariaLabelledby:null),l.R7$(3),l.Y8G("matRippleTrigger",gn)("matRippleDisabled",Pt.disabled||Ii.disableRipple),l.R7$(3),l.Y8G("ngIf",Pt.templateLabel)("ngIfElse",ui)}}function A(bt,bn){if(1&bt){const Pt=l.RV6();l.j41(0,"mat-tab-body",15),l.bIt("_onCentered",function(){l.eBV(Pt);const gn=l.XpG();return l.Njj(gn._removeTabBodyWrapperHeight())})("_onCentering",function(gn){l.eBV(Pt);const ui=l.XpG();return l.Njj(ui._setTabBodyWrapperHeight(gn))}),l.k0s()}if(2&bt){const Pt=bn.$implicit,jt=bn.index,gn=l.XpG();l.AVh("mat-mdc-tab-body-active",gn.selectedIndex===jt),l.Y8G("id",gn._getTabContentId(jt))("ngClass",Pt.bodyClass)("content",Pt.content)("position",Pt.position)("origin",Pt.origin)("animationDuration",gn.animationDuration)("preserveContent",gn.preserveContent),l.BMQ("tabindex",null!=gn.contentTabIndex&&gn.selectedIndex===jt?gn.contentTabIndex:null)("aria-labelledby",gn._getTabLabelId(jt))("aria-hidden",gn.selectedIndex!==jt)}}const G={translateTab:(0,L.hZ)("translateTab",[(0,L.wk)("center, void, left-origin-center, right-origin-center",(0,L.iF)({transform:"none"})),(0,L.wk)("left",(0,L.iF)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,L.wk)("right",(0,L.iF)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,L.kY)("* => left, * => right, left => center, right => center",(0,L.i0)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,L.kY)("void => left-origin-center",[(0,L.iF)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,L.i0)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,L.kY)("void => right-origin-center",[(0,L.iF)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,L.i0)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let W=(()=>{class bt extends v.I3{constructor(Pt,jt,gn,ui){super(Pt,jt,ui),this._host=gn,this._centeringSub=O.y.EMPTY,this._leavingSub=O.y.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,M.Z)(this._host._isCenterPosition(this._host._position))).subscribe(Pt=>{Pt&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static{this.\u0275fac=function(jt){return new(jt||bt)(l.rXU(l.OM3),l.rXU(l.c1b),l.rXU((0,l.Rfq)(()=>le)),l.rXU(n.qQ))}}static{this.\u0275dir=l.FsC({type:bt,selectors:[["","matTabBodyHost",""]],features:[l.Vt3]})}}return bt})(),$=(()=>{class bt{set position(Pt){this._positionIndex=Pt,this._computePositionAnimationState()}constructor(Pt,jt,gn){this._elementRef=Pt,this._dir=jt,this._dirChangeSubscription=O.y.EMPTY,this._translateTabComplete=new P.B7,this._onCentering=new l.bkB,this._beforeCentering=new l.bkB,this._afterLeavingCenter=new l.bkB,this._onCentered=new l.bkB(!0),this.animationDuration="500ms",this.preserveContent=!1,jt&&(this._dirChangeSubscription=jt.change.subscribe(ui=>{this._computePositionAnimationState(ui),gn.markForCheck()})),this._translateTabComplete.pipe((0,D.F)((ui,Ii)=>ui.fromState===Ii.fromState&&ui.toState===Ii.toState)).subscribe(ui=>{this._isCenterPosition(ui.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(ui.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(Pt){const jt=this._isCenterPosition(Pt.toState);this._beforeCentering.emit(jt),jt&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(Pt){return"center"==Pt||"left-origin-center"==Pt||"right-origin-center"==Pt}_computePositionAnimationState(Pt=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==Pt?"left":"right":this._positionIndex>0?"ltr"==Pt?"right":"left":"center"}_computePositionFromOrigin(Pt){const jt=this._getLayoutDirection();return"ltr"==jt&&Pt<=0||"rtl"==jt&&Pt>0?"left-origin-center":"right-origin-center"}static{this.\u0275fac=function(jt){return new(jt||bt)(l.rXU(l.aKT),l.rXU(f.dS,8),l.rXU(l.gRc))}}static{this.\u0275dir=l.FsC({type:bt,inputs:{_content:[l.Mj6.None,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}})}}return bt})(),le=(()=>{class bt extends ${constructor(Pt,jt,gn){super(Pt,jt,gn)}static{this.\u0275fac=function(jt){return new(jt||bt)(l.rXU(l.aKT),l.rXU(f.dS,8),l.rXU(l.gRc))}}static{this.\u0275cmp=l.VBU({type:bt,selectors:[["mat-tab-body"]],viewQuery:function(jt,gn){if(1&jt&&l.GBs(v.I3,5),2&jt){let ui;l.mGM(ui=l.lsd())&&(gn._portalHost=ui.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[l.Vt3],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(jt,gn){if(1&jt){const ui=l.RV6();l.j41(0,"div",1,0),l.bIt("@translateTab.start",function(pr){return l.eBV(ui),l.Njj(gn._onTranslateTabStarted(pr))})("@translateTab.done",function(pr){return l.eBV(ui),l.Njj(gn._translateTabComplete.next(pr))}),l.DNE(2,J,0,0,"ng-template",2),l.k0s()}2&jt&&l.Y8G("@translateTab",l.l_i(3,H,gn._position,l.eq3(1,X,gn.animationDuration)))},dependencies:[W],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[G.translateTab]}})}}return bt})();const Pe=new l.nKC("MatTabContent");let Fe=(()=>{class bt{constructor(Pt){this.template=Pt}static{this.\u0275fac=function(jt){return new(jt||bt)(l.rXU(l.C4Q))}}static{this.\u0275dir=l.FsC({type:bt,selectors:[["","matTabContent",""]],features:[l.Jv_([{provide:Pe,useExisting:bt}])]})}}return bt})();const At=new l.nKC("MatTabLabel"),Le=new l.nKC("MAT_TAB");let Et=(()=>{class bt extends v.bV{constructor(Pt,jt,gn){super(Pt,jt),this._closestTab=gn}static{this.\u0275fac=function(jt){return new(jt||bt)(l.rXU(l.C4Q),l.rXU(l.c1b),l.rXU(Le,8))}}static{this.\u0275dir=l.FsC({type:bt,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[l.Jv_([{provide:At,useExisting:bt}]),l.Vt3]})}}return bt})();const $e="mdc-tab-indicator--active",Ze="mdc-tab-indicator--no-transition";class Qe{constructor(bn){this._items=bn}hide(){this._items.forEach(bn=>bn.deactivateInkBar())}alignToElement(bn){const Pt=this._items.find(gn=>gn.elementRef.nativeElement===bn),jt=this._currentItem;if(Pt!==jt&&(jt?.deactivateInkBar(),Pt)){const gn=jt?.elementRef.nativeElement.getBoundingClientRect?.();Pt.activateInkBar(gn),this._currentItem=Pt}}}function Ve(bt){return class extends bt{constructor(...bn){super(...bn),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(bn){const Pt=(0,E.he)(bn);this._fitToContent!==Pt&&(this._fitToContent=Pt,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(bn){const Pt=this.elementRef.nativeElement;if(!bn||!Pt.getBoundingClientRect||!this._inkBarContentElement)return void Pt.classList.add($e);const jt=Pt.getBoundingClientRect(),gn=bn.width/jt.width,ui=bn.left-jt.left;Pt.classList.add(Ze),this._inkBarContentElement.style.setProperty("transform",`translateX(${ui}px) scaleX(${gn})`),Pt.getBoundingClientRect(),Pt.classList.remove(Ze),Pt.classList.add($e),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove($e)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const bn=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=bn.createElement("span"),this._inkBarContentElement=bn.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const at=(0,d.Ob)(class{}),We=Ve((()=>{class bt extends at{constructor(Pt){super(),this.elementRef=Pt}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static{this.\u0275fac=function(jt){return new(jt||bt)(l.rXU(l.aKT))}}static{this.\u0275dir=l.FsC({type:bt,features:[l.Vt3]})}}return bt})());let xe=(()=>{class bt extends We{static{this.\u0275fac=(()=>{let Pt;return function(gn){return(Pt||(Pt=l.xGo(bt)))(gn||bt)}})()}static{this.\u0275dir=l.FsC({type:bt,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(jt,gn){2&jt&&(l.BMQ("aria-disabled",!!gn.disabled),l.AVh("mat-mdc-tab-disabled",gn.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[l.Vt3]})}}return bt})();const lt=(0,d.Ob)(class{}),ft=new l.nKC("MAT_TAB_GROUP");let ht=(()=>{class bt extends lt{get content(){return this._contentPortal}constructor(Pt,jt){super(),this._viewContainerRef=Pt,this._closestTabGroup=jt,this.textLabel="",this._contentPortal=null,this._stateChanges=new P.B7,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(Pt){(Pt.hasOwnProperty("textLabel")||Pt.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new v.VA(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Pt){Pt&&Pt._closestTab===this&&(this._templateLabel=Pt)}static{this.\u0275fac=function(jt){return new(jt||bt)(l.rXU(l.c1b),l.rXU(ft,8))}}static{this.\u0275dir=l.FsC({type:bt,viewQuery:function(jt,gn){if(1&jt&&l.GBs(l.C4Q,7),2&jt){let ui;l.mGM(ui=l.lsd())&&(gn._implicitContent=ui.first)}},inputs:{textLabel:[l.Mj6.None,"label","textLabel"],ariaLabel:[l.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[l.Mj6.None,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[l.Vt3,l.OA$]})}}return bt})(),Xt=(()=>{class bt extends ht{constructor(){super(...arguments),this._explicitContent=void 0}get templateLabel(){return this._templateLabel}set templateLabel(Pt){this._setTemplateLabelInput(Pt)}static{this.\u0275fac=(()=>{let Pt;return function(gn){return(Pt||(Pt=l.xGo(bt)))(gn||bt)}})()}static{this.\u0275cmp=l.VBU({type:bt,selectors:[["mat-tab"]],contentQueries:function(jt,gn,ui){if(1&jt&&(l.wni(ui,Fe,7,l.C4Q),l.wni(ui,Et,5)),2&jt){let Ii;l.mGM(Ii=l.lsd())&&(gn._explicitContent=Ii.first),l.mGM(Ii=l.lsd())&&(gn.templateLabel=Ii.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[l.Jv_([{provide:Le,useExisting:bt}]),l.Vt3],ngContentSelectors:re,decls:1,vars:0,template:function(jt,gn){1&jt&&(l.NAR(),l.DNE(0,ie,1,0,"ng-template"))},encapsulation:2})}}return bt})();const Ht=(0,R.BQ)({passive:!0});let rt=(()=>{class bt{get disablePagination(){return this._disablePagination}set disablePagination(Pt){this._disablePagination=(0,E.he)(Pt)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Pt){Pt=(0,E.OE)(Pt),this._selectedIndex!=Pt&&(this._selectedIndexChanged=!0,this._selectedIndex=Pt,this._keyManager&&this._keyManager.updateActiveItem(Pt))}constructor(Pt,jt,gn,ui,Ii,pr,zr){this._elementRef=Pt,this._changeDetectorRef=jt,this._viewportRuler=gn,this._dir=ui,this._ngZone=Ii,this._platform=pr,this._animationMode=zr,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new P.B7,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new P.B7,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new l.bkB,this.indexFocused=new l.bkB,Ii.runOutsideAngular(()=>{(0,_.R)(Pt.nativeElement,"mouseleave").pipe((0,I.Q)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,_.R)(this._previousPaginator.nativeElement,"touchstart",Ht).pipe((0,I.Q)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,_.R)(this._nextPaginator.nativeElement,"touchstart",Ht).pipe((0,I.Q)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Pt=this._dir?this._dir.change:(0,i.of)("ltr"),jt=this._viewportRuler.change(150),gn=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new y.Bu(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,U.s)(1)).subscribe(gn),(0,r.h)(Pt,jt,this._items.changes,this._itemsResized()).pipe((0,I.Q)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),gn()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(ui=>{this.indexFocused.emit(ui),this._setTabFocus(ui)})}_itemsResized(){return"function"!=typeof ResizeObserver?a.w:this._items.changes.pipe((0,M.Z)(this._items),(0,V.n)(Pt=>new c.c(jt=>this._ngZone.runOutsideAngular(()=>{const gn=new ResizeObserver(ui=>jt.next(ui));return Pt.forEach(ui=>gn.observe(ui.elementRef.nativeElement)),()=>{gn.disconnect()}}))),(0,T.i)(1),(0,N.p)(Pt=>Pt.some(jt=>jt.contentRect.width>0&&jt.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(Pt){if(!(0,B.rp)(Pt))switch(Pt.keyCode){case B.Fm:case B.t6:if(this.focusIndex!==this.selectedIndex){const jt=this._items.get(this.focusIndex);jt&&!jt.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Pt))}break;default:this._keyManager.onKeydown(Pt)}}_onContentChanges(){const Pt=this._elementRef.nativeElement.textContent;Pt!==this._currentTextContent&&(this._currentTextContent=Pt||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(Pt){!this._isValidIndex(Pt)||this.focusIndex===Pt||!this._keyManager||this._keyManager.setActiveItem(Pt)}_isValidIndex(Pt){return!this._items||!!this._items.toArray()[Pt]}_setTabFocus(Pt){if(this._showPaginationControls&&this._scrollToLabel(Pt),this._items&&this._items.length){this._items.toArray()[Pt].focus();const jt=this._tabListContainer.nativeElement;jt.scrollLeft="ltr"==this._getLayoutDirection()?0:jt.scrollWidth-jt.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Pt=this.scrollDistance,jt="ltr"===this._getLayoutDirection()?-Pt:Pt;this._tabList.nativeElement.style.transform=`translateX(${Math.round(jt)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Pt){this._scrollTo(Pt)}_scrollHeader(Pt){return this._scrollTo(this._scrollDistance+("before"==Pt?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Pt){this._stopInterval(),this._scrollHeader(Pt)}_scrollToLabel(Pt){if(this.disablePagination)return;const jt=this._items?this._items.toArray()[Pt]:null;if(!jt)return;const gn=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:ui,offsetWidth:Ii}=jt.elementRef.nativeElement;let pr,zr;"ltr"==this._getLayoutDirection()?(pr=ui,zr=pr+Ii):(zr=this._tabListInner.nativeElement.offsetWidth-ui,pr=zr-Ii);const Cn=this.scrollDistance,pn=this.scrollDistance+gn;pr<Cn?this.scrollDistance-=Cn-pr:zr>pn&&(this.scrollDistance+=Math.min(zr-pn,pr-Cn))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const Pt=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Pt||(this.scrollDistance=0),Pt!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Pt}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const Pt=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,jt=Pt?Pt.elementRef.nativeElement:null;jt?this._inkBar.alignToElement(jt):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Pt,jt){jt&&null!=jt.button&&0!==jt.button||(this._stopInterval(),(0,m.O)(650,100).pipe((0,I.Q)((0,r.h)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:gn,distance:ui}=this._scrollHeader(Pt);(0===ui||ui>=gn)&&this._stopInterval()}))}_scrollTo(Pt){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const jt=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(jt,Pt)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:jt,distance:this._scrollDistance}}static{this.\u0275fac=function(jt){return new(jt||bt)(l.rXU(l.aKT),l.rXU(l.gRc),l.rXU(g.Xj),l.rXU(f.dS,8),l.rXU(l.SKi),l.rXU(R.OD),l.rXU(l.bc$,8))}}static{this.\u0275dir=l.FsC({type:bt,inputs:{disablePagination:"disablePagination"}})}}return bt})(),et=(()=>{class bt extends rt{get disableRipple(){return this._disableRipple}set disableRipple(Pt){this._disableRipple=(0,E.he)(Pt)}constructor(Pt,jt,gn,ui,Ii,pr,zr){super(Pt,jt,gn,ui,Ii,pr,zr),this._disableRipple=!1}_itemSelected(Pt){Pt.preventDefault()}static{this.\u0275fac=function(jt){return new(jt||bt)(l.rXU(l.aKT),l.rXU(l.gRc),l.rXU(g.Xj),l.rXU(f.dS,8),l.rXU(l.SKi),l.rXU(R.OD),l.rXU(l.bc$,8))}}static{this.\u0275dir=l.FsC({type:bt,inputs:{disableRipple:"disableRipple"},features:[l.Vt3]})}}return bt})(),St=(()=>{class bt extends et{constructor(Pt,jt,gn,ui,Ii,pr,zr){super(Pt,jt,gn,ui,Ii,pr,zr)}ngAfterContentInit(){this._inkBar=new Qe(this._items),super.ngAfterContentInit()}static{this.\u0275fac=function(jt){return new(jt||bt)(l.rXU(l.aKT),l.rXU(l.gRc),l.rXU(g.Xj),l.rXU(f.dS,8),l.rXU(l.SKi),l.rXU(R.OD),l.rXU(l.bc$,8))}}static{this.\u0275cmp=l.VBU({type:bt,selectors:[["mat-tab-header"]],contentQueries:function(jt,gn,ui){if(1&jt&&l.wni(ui,xe,4),2&jt){let Ii;l.mGM(Ii=l.lsd())&&(gn._items=Ii)}},viewQuery:function(jt,gn){if(1&jt&&(l.GBs(ve,7),l.GBs(ue,7),l.GBs(se,7),l.GBs(Z,5),l.GBs(Se,5)),2&jt){let ui;l.mGM(ui=l.lsd())&&(gn._tabListContainer=ui.first),l.mGM(ui=l.lsd())&&(gn._tabList=ui.first),l.mGM(ui=l.lsd())&&(gn._tabListInner=ui.first),l.mGM(ui=l.lsd())&&(gn._nextPaginator=ui.first),l.mGM(ui=l.lsd())&&(gn._previousPaginator=ui.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(jt,gn){2&jt&&l.AVh("mat-mdc-tab-header-pagination-controls-enabled",gn._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==gn._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[l.Vt3],ngContentSelectors:re,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled","disabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled","disabled"]],template:function(jt,gn){if(1&jt){const ui=l.RV6();l.NAR(),l.j41(0,"button",5,0),l.bIt("click",function(){return l.eBV(ui),l.Njj(gn._handlePaginatorClick("before"))})("mousedown",function(pr){return l.eBV(ui),l.Njj(gn._handlePaginatorPress("before",pr))})("touchend",function(){return l.eBV(ui),l.Njj(gn._stopInterval())}),l.nrm(2,"div",6),l.k0s(),l.j41(3,"div",7,1),l.bIt("keydown",function(pr){return l.eBV(ui),l.Njj(gn._handleKeydown(pr))}),l.j41(5,"div",8,2),l.bIt("cdkObserveContent",function(){return l.eBV(ui),l.Njj(gn._onContentChanges())}),l.j41(7,"div",9,3),l.SdG(9),l.k0s()()(),l.j41(10,"button",10,4),l.bIt("mousedown",function(pr){return l.eBV(ui),l.Njj(gn._handlePaginatorPress("after",pr))})("click",function(){return l.eBV(ui),l.Njj(gn._handlePaginatorClick("after"))})("touchend",function(){return l.eBV(ui),l.Njj(gn._stopInterval())}),l.nrm(12,"div",6),l.k0s()}2&jt&&(l.AVh("mat-mdc-tab-header-pagination-disabled",gn._disableScrollBefore),l.Y8G("matRippleDisabled",gn._disableScrollBefore||gn.disableRipple)("disabled",gn._disableScrollBefore||null),l.R7$(3),l.AVh("_mat-animation-noopable","NoopAnimations"===gn._animationMode),l.R7$(7),l.AVh("mat-mdc-tab-header-pagination-disabled",gn._disableScrollAfter),l.Y8G("matRippleDisabled",gn._disableScrollAfter||gn.disableRipple)("disabled",gn._disableScrollAfter||null))},dependencies:[d.r6,S.Wv],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0;--mdc-tab-indicator-active-indicator-height:2px;--mdc-tab-indicator-active-indicator-shape:0;--mdc-secondary-navigation-tab-container-height:48px}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}}return bt})();const Gt=new l.nKC("MAT_TABS_CONFIG");let yt=0;const Wt=(0,d.Zc)((0,d.GG)(class{constructor(bt){this._elementRef=bt}}),"primary");let ke=(()=>{class bt extends Wt{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Pt){this._dynamicHeight=(0,E.he)(Pt)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Pt){this._indexToSelect=(0,E.OE)(Pt,null)}get animationDuration(){return this._animationDuration}set animationDuration(Pt){this._animationDuration=/^\d+$/.test(Pt+"")?Pt+"ms":Pt}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Pt){this._contentTabIndex=(0,E.OE)(Pt,null)}get disablePagination(){return this._disablePagination}set disablePagination(Pt){this._disablePagination=(0,E.he)(Pt)}get preserveContent(){return this._preserveContent}set preserveContent(Pt){this._preserveContent=(0,E.he)(Pt)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Pt){const jt=this._elementRef.nativeElement.classList;jt.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),Pt&&jt.add("mat-tabs-with-background",`mat-background-${Pt}`),this._backgroundColor=Pt}constructor(Pt,jt,gn,ui){super(Pt),this._changeDetectorRef=jt,this._animationMode=ui,this._tabs=new l.rOR,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=O.y.EMPTY,this._tabLabelSubscription=O.y.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new l.bkB,this.focusChange=new l.bkB,this.animationDone=new l.bkB,this.selectedTabChange=new l.bkB(!0),this._groupId=yt++,this.animationDuration=gn&&gn.animationDuration?gn.animationDuration:"500ms",this.disablePagination=!(!gn||null==gn.disablePagination)&&gn.disablePagination,this.dynamicHeight=!(!gn||null==gn.dynamicHeight)&&gn.dynamicHeight,this.contentTabIndex=gn?.contentTabIndex??null,this.preserveContent=!!gn?.preserveContent}ngAfterContentChecked(){const Pt=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Pt){const jt=null==this._selectedIndex;if(!jt){this.selectedTabChange.emit(this._createChangeEvent(Pt));const gn=this._tabBodyWrapper.nativeElement;gn.style.minHeight=gn.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((gn,ui)=>gn.isActive=ui===Pt),jt||(this.selectedIndexChange.emit(Pt),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((jt,gn)=>{jt.position=gn-Pt,null!=this._selectedIndex&&0==jt.position&&!jt.origin&&(jt.origin=Pt-this._selectedIndex)}),this._selectedIndex!==Pt&&(this._selectedIndex=Pt,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const Pt=this._clampTabIndex(this._indexToSelect);if(Pt===this._selectedIndex){const jt=this._tabs.toArray();let gn;for(let ui=0;ui<jt.length;ui++)if(jt[ui].isActive){this._indexToSelect=this._selectedIndex=ui,this._lastFocusedTabIndex=null,gn=jt[ui];break}!gn&&jt[Pt]&&Promise.resolve().then(()=>{jt[Pt].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(Pt))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,M.Z)(this._allTabs)).subscribe(Pt=>{this._tabs.reset(Pt.filter(jt=>jt._closestTabGroup===this||!jt._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(Pt){const jt=this._tabHeader;jt&&(jt.focusIndex=Pt)}_focusChanged(Pt){this._lastFocusedTabIndex=Pt,this.focusChange.emit(this._createChangeEvent(Pt))}_createChangeEvent(Pt){const jt=new Ae;return jt.index=Pt,this._tabs&&this._tabs.length&&(jt.tab=this._tabs.toArray()[Pt]),jt}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,r.h)(...this._tabs.map(Pt=>Pt._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Pt){return Math.min(this._tabs.length-1,Math.max(Pt||0,0))}_getTabLabelId(Pt){return`mat-tab-label-${this._groupId}-${Pt}`}_getTabContentId(Pt){return`mat-tab-content-${this._groupId}-${Pt}`}_setTabBodyWrapperHeight(Pt){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const jt=this._tabBodyWrapper.nativeElement;jt.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(jt.style.height=Pt+"px")}_removeTabBodyWrapperHeight(){const Pt=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Pt.clientHeight,Pt.style.height="",this.animationDone.emit()}_handleClick(Pt,jt,gn){jt.focusIndex=gn,Pt.disabled||(this.selectedIndex=gn)}_getTabIndex(Pt){return Pt===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(Pt,jt){Pt&&"mouse"!==Pt&&"touch"!==Pt&&(this._tabHeader.focusIndex=jt)}static{this.\u0275fac=function(jt){return new(jt||bt)(l.rXU(l.aKT),l.rXU(l.gRc),l.rXU(Gt,8),l.rXU(l.bc$,8))}}static{this.\u0275dir=l.FsC({type:bt,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[l.Vt3]})}}return bt})(),be=(()=>{class bt extends ke{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(Pt){this._fitInkBarToContent=(0,E.he)(Pt),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(Pt){this._stretchTabs=(0,E.he)(Pt)}constructor(Pt,jt,gn,ui){super(Pt,jt,gn,ui),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!gn||null==gn.fitInkBarToContent)&&gn.fitInkBarToContent,this.stretchTabs=!gn||null==gn.stretchTabs||gn.stretchTabs}static{this.\u0275fac=function(jt){return new(jt||bt)(l.rXU(l.aKT),l.rXU(l.gRc),l.rXU(Gt,8),l.rXU(l.bc$,8))}}static{this.\u0275cmp=l.VBU({type:bt,selectors:[["mat-tab-group"]],contentQueries:function(jt,gn,ui){if(1&jt&&l.wni(ui,Xt,5),2&jt){let Ii;l.mGM(Ii=l.lsd())&&(gn._allTabs=Ii)}},viewQuery:function(jt,gn){if(1&jt&&(l.GBs(Ce,5),l.GBs(Be,5)),2&jt){let ui;l.mGM(ui=l.lsd())&&(gn._tabBodyWrapper=ui.first),l.mGM(ui=l.lsd())&&(gn._tabHeader=ui.first)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-tab-group"],hostVars:8,hostBindings:function(jt,gn){2&jt&&(l.xc7("--mat-tab-animation-duration",gn.animationDuration),l.AVh("mat-mdc-tab-group-dynamic-height",gn.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===gn.headerPosition)("mat-mdc-tab-group-stretch-tabs",gn.stretchTabs))},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:[l.Mj6.None,"mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[l.Jv_([{provide:ft,useExisting:bt}]),l.Vt3],decls:6,vars:7,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],["tabTextLabel",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination"],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","ngClass","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","ngClass","content","position","origin","animationDuration","preserveContent"]],template:function(jt,gn){if(1&jt){const ui=l.RV6();l.j41(0,"mat-tab-header",4,0),l.bIt("indexFocused",function(pr){return l.eBV(ui),l.Njj(gn._focusChanged(pr))})("selectFocusedIndex",function(pr){return l.eBV(ui),l.Njj(gn.selectedIndex=pr)}),l.DNE(2,Q,9,17,"div",5),l.k0s(),l.j41(3,"div",6,1),l.DNE(5,A,1,12,"mat-tab-body",7),l.k0s()}2&jt&&(l.Y8G("selectedIndex",gn.selectedIndex||0)("disableRipple",gn.disableRipple)("disablePagination",gn.disablePagination),l.R7$(2),l.Y8G("ngForOf",gn._tabs),l.R7$(),l.AVh("_mat-animation-noopable","NoopAnimations"===gn._animationMode),l.R7$(2),l.Y8G("ngForOf",gn._tabs))},dependencies:[n.YU,n.Sq,n.bT,v.I3,d.r6,y.vR,le,xe,St],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2})}}return bt})();class Ae{}},48362:(Bt,z,s)=>{"use strict";s.d(z,{s5:()=>P});var n=s(58527),l=s(51635);let P=(()=>{class _{static{this.\u0275fac=function(a){return new(a||_)}}static{this.\u0275mod=n.$C({type:_})}static{this.\u0275inj=n.G2t({imports:[l.yE,l.yE]})}}return _})()},44186:(Bt,z,s)=>{"use strict";s.d(z,{oV:()=>ve,sM:()=>L,uc:()=>Se});var n=s(4208),l=s(65706),d=s(6364),v=s(25373),S=s(58527),y=s(61142),f=s(72653),O=s(31308),P=s(51394),_=s(61904),i=s(64409),r=s(76614),a=s(80583),m=(s(40262),s(51635));const M=["tooltip"],U=new S.nKC("mat-tooltip-scroll-strategy"),T={provide:U,deps:[_.hJ],useFactory:function V(Ce){return()=>Ce.scrollStrategies.reposition({scrollThrottle:20})}},L=new S.nKC("mat-tooltip-default-options",{providedIn:"root",factory:function N(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),g="tooltip-panel",R=(0,f.BQ)({passive:!0});let ie=(()=>{class Ce{get position(){return this._position}set position(Xe){Xe!==this._position&&(this._position=Xe,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(Xe){this._positionAtOrigin=(0,d.he)(Xe),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(Xe){this._disabled=(0,d.he)(Xe),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(Xe){this._showDelay=(0,d.OE)(Xe)}get hideDelay(){return this._hideDelay}set hideDelay(Xe){this._hideDelay=(0,d.OE)(Xe),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(Xe){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=Xe?String(Xe).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(Xe){this._tooltipClass=Xe,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(Xe,He,Me,Q,A,me,ne,G,W,$,le,Pe){this._overlay=Xe,this._elementRef=He,this._scrollDispatcher=Me,this._viewContainerRef=Q,this._ngZone=A,this._platform=me,this._ariaDescriber=ne,this._focusMonitor=G,this._dir=$,this._defaultOptions=le,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new a.B7,this._scrollStrategy=W,this._document=Pe,le&&(this._showDelay=le.showDelay,this._hideDelay=le.hideDelay,le.position&&(this.position=le.position),le.positionAtOrigin&&(this.positionAtOrigin=le.positionAtOrigin),le.touchGestures&&(this.touchGestures=le.touchGestures)),$.change.pipe((0,n.Q)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,n.Q)(this._destroyed)).subscribe(Xe=>{Xe?"keyboard"===Xe&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Xe=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([He,Me])=>{Xe.removeEventListener(He,Me,R)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Xe,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Xe)}show(Xe=this.showDelay,He){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const Me=this._createOverlay(He);this._detach(),this._portal=this._portal||new r.A8(this._tooltipComponent,this._viewContainerRef);const Q=this._tooltipInstance=Me.attach(this._portal).instance;Q._triggerElement=this._elementRef.nativeElement,Q._mouseLeaveHideDelay=this._hideDelay,Q.afterHidden().pipe((0,n.Q)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Q.show(Xe)}hide(Xe=this.hideDelay){const He=this._tooltipInstance;He&&(He.isVisible()?He.hide(Xe):(He._cancelPendingAnimations(),this._detach()))}toggle(Xe){this._isTooltipVisible()?this.hide():this.show(void 0,Xe)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(Xe){if(this._overlayRef){const Q=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!Xe)&&Q._origin instanceof S.aKT)return this._overlayRef;this._detach()}const He=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Me=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&Xe||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(He);return Me.positionChanges.pipe((0,n.Q)(this._destroyed)).subscribe(Q=>{this._updateCurrentPositionClass(Q.connectionPair),this._tooltipInstance&&Q.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Me,panelClass:`${this._cssClassPrefix}-${g}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,n.Q)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,n.Q)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,n.Q)(this._destroyed)).subscribe(Q=>{this._isTooltipVisible()&&Q.keyCode===v._f&&!(0,v.rp)(Q)&&this._ngZone.run(()=>this.hide(0))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(Xe){const He=Xe.getConfig().positionStrategy,Me=this._getOrigin(),Q=this._getOverlayPosition();He.withPositions([this._addOffset({...Me.main,...Q.main}),this._addOffset({...Me.fallback,...Q.fallback})])}_addOffset(Xe){return Xe}_getOrigin(){const Xe=!this._dir||"ltr"==this._dir.value,He=this.position;let Me;"above"==He||"below"==He?Me={originX:"center",originY:"above"==He?"top":"bottom"}:"before"==He||"left"==He&&Xe||"right"==He&&!Xe?Me={originX:"start",originY:"center"}:("after"==He||"right"==He&&Xe||"left"==He&&!Xe)&&(Me={originX:"end",originY:"center"});const{x:Q,y:A}=this._invertPosition(Me.originX,Me.originY);return{main:Me,fallback:{originX:Q,originY:A}}}_getOverlayPosition(){const Xe=!this._dir||"ltr"==this._dir.value,He=this.position;let Me;"above"==He?Me={overlayX:"center",overlayY:"bottom"}:"below"==He?Me={overlayX:"center",overlayY:"top"}:"before"==He||"left"==He&&Xe||"right"==He&&!Xe?Me={overlayX:"end",overlayY:"center"}:("after"==He||"right"==He&&Xe||"left"==He&&!Xe)&&(Me={overlayX:"start",overlayY:"center"});const{x:Q,y:A}=this._invertPosition(Me.overlayX,Me.overlayY);return{main:Me,fallback:{overlayX:Q,overlayY:A}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,l.s)(1),(0,n.Q)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(Xe){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Xe,this._tooltipInstance._markForCheck())}_invertPosition(Xe,He){return"above"===this.position||"below"===this.position?"top"===He?He="bottom":"bottom"===He&&(He="top"):"end"===Xe?Xe="start":"start"===Xe&&(Xe="end"),{x:Xe,y:He}}_updateCurrentPositionClass(Xe){const{overlayY:He,originX:Me,originY:Q}=Xe;let A;if(A="center"===He?this._dir&&"rtl"===this._dir.value?"end"===Me?"left":"right":"start"===Me?"left":"right":"bottom"===He&&"top"===Q?"above":"below",A!==this._currentPosition){const me=this._overlayRef;if(me){const ne=`${this._cssClassPrefix}-${g}-`;me.removePanelClass(ne+this._currentPosition),me.addPanelClass(ne+A)}this._currentPosition=A}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",Xe=>{let He;this._setupPointerExitEventsIfNeeded(),void 0!==Xe.x&&void 0!==Xe.y&&(He=Xe),this.show(void 0,He)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",Xe=>{const He=Xe.targetTouches?.[0],Me=He?{x:He.clientX,y:He.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,Me),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const Xe=[];if(this._platformSupportsMouseEvents())Xe.push(["mouseleave",He=>{const Me=He.relatedTarget;(!Me||!this._overlayRef?.overlayElement.contains(Me))&&this.hide()}],["wheel",He=>this._wheelListener(He)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const He=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};Xe.push(["touchend",He],["touchcancel",He])}this._addListeners(Xe),this._passiveListeners.push(...Xe)}_addListeners(Xe){Xe.forEach(([He,Me])=>{this._elementRef.nativeElement.addEventListener(He,Me,R)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Xe){if(this._isTooltipVisible()){const He=this._document.elementFromPoint(Xe.clientX,Xe.clientY),Me=this._elementRef.nativeElement;He!==Me&&!Me.contains(He)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Xe=this.touchGestures;if("off"!==Xe){const He=this._elementRef.nativeElement,Me=He.style;("on"===Xe||"INPUT"!==He.nodeName&&"TEXTAREA"!==He.nodeName)&&(Me.userSelect=Me.msUserSelect=Me.webkitUserSelect=Me.MozUserSelect="none"),("on"===Xe||!He.draggable)&&(Me.webkitUserDrag="none"),Me.touchAction="none",Me.webkitTapHighlightColor="transparent"}}static{this.\u0275fac=function(He){S.QTQ()}}static{this.\u0275dir=S.FsC({type:Ce,inputs:{position:[S.Mj6.None,"matTooltipPosition","position"],positionAtOrigin:[S.Mj6.None,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[S.Mj6.None,"matTooltipDisabled","disabled"],showDelay:[S.Mj6.None,"matTooltipShowDelay","showDelay"],hideDelay:[S.Mj6.None,"matTooltipHideDelay","hideDelay"],touchGestures:[S.Mj6.None,"matTooltipTouchGestures","touchGestures"],message:[S.Mj6.None,"matTooltip","message"],tooltipClass:[S.Mj6.None,"matTooltipClass","tooltipClass"]}})}}return Ce})(),ve=(()=>{class Ce extends ie{constructor(Xe,He,Me,Q,A,me,ne,G,W,$,le,Pe){super(Xe,He,Me,Q,A,me,ne,G,W,$,le,Pe),this._tooltipComponent=se,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(Xe){const Me=!this._dir||"ltr"==this._dir.value;return"top"===Xe.originY?Xe.offsetY=-8:"bottom"===Xe.originY?Xe.offsetY=8:"start"===Xe.originX?Xe.offsetX=Me?-8:8:"end"===Xe.originX&&(Xe.offsetX=Me?8:-8),Xe}static{this.\u0275fac=function(He){return new(He||Ce)(S.rXU(_.hJ),S.rXU(S.aKT),S.rXU(i.R),S.rXU(S.c1b),S.rXU(S.SKi),S.rXU(f.OD),S.rXU(O.vr),S.rXU(O.FN),S.rXU(U),S.rXU(P.dS,8),S.rXU(L,8),S.rXU(y.qQ))}}static{this.\u0275dir=S.FsC({type:Ce,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(He,Me){2&He&&S.AVh("mat-mdc-tooltip-disabled",Me.disabled)},exportAs:["matTooltip"],features:[S.Vt3]})}}return Ce})(),ue=(()=>{class Ce{constructor(Xe,He){this._changeDetectorRef=Xe,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new a.B7,this._animationsDisabled="NoopAnimations"===He}show(Xe){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},Xe)}hide(Xe){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},Xe)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:Xe}){(!Xe||!this._triggerElement.contains(Xe))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:Xe}){(Xe===this._showAnimation||Xe===this._hideAnimation)&&this._finalizeAnimation(Xe===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(Xe){Xe?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(Xe){const He=this._tooltip.nativeElement,Me=this._showAnimation,Q=this._hideAnimation;if(He.classList.remove(Xe?Q:Me),He.classList.add(Xe?Me:Q),this._isVisible=Xe,Xe&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const A=getComputedStyle(He);("0s"===A.getPropertyValue("animation-duration")||"none"===A.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}Xe&&this._onShow(),this._animationsDisabled&&(He.classList.add("_mat-animation-noopable"),this._finalizeAnimation(Xe))}static{this.\u0275fac=function(He){return new(He||Ce)(S.rXU(S.gRc),S.rXU(S.bc$,8))}}static{this.\u0275dir=S.FsC({type:Ce})}}return Ce})(),se=(()=>{class Ce extends ue{constructor(Xe,He,Me){super(Xe,Me),this._elementRef=He,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const Xe=this._elementRef.nativeElement.getBoundingClientRect();return Xe.height>24&&Xe.width>=200}static{this.\u0275fac=function(He){return new(He||Ce)(S.rXU(S.gRc),S.rXU(S.aKT),S.rXU(S.bc$,8))}}static{this.\u0275cmp=S.VBU({type:Ce,selectors:[["mat-tooltip-component"]],viewQuery:function(He,Me){if(1&He&&S.GBs(M,7),2&He){let Q;S.mGM(Q=S.lsd())&&(Me._tooltip=Q.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(He,Me){1&He&&S.bIt("mouseleave",function(A){return Me._handleMouseLeave(A)}),2&He&&S.xc7("zoom",Me.isVisible()?1:null)},features:[S.Vt3],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(He,Me){if(1&He){const Q=S.RV6();S.j41(0,"div",1,0),S.bIt("animationend",function(me){return S.eBV(Q),S.Njj(Me._handleAnimationEnd(me))}),S.j41(2,"div",2),S.EFF(3),S.k0s()()}2&He&&(S.AVh("mdc-tooltip--multiline",Me._isMultiline),S.Y8G("ngClass",Me.tooltipClass),S.R7$(3),S.JRh(Me.message))},dependencies:[y.YU],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip{--mdc-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}}return Ce})(),Se=(()=>{class Ce{static{this.\u0275fac=function(He){return new(He||Ce)}}static{this.\u0275mod=S.$C({type:Ce})}static{this.\u0275inj=S.G2t({providers:[T],imports:[O.Pd,y.MD,_.z_,m.yE,m.yE,i.Gj]})}}return Ce})()},74150:(Bt,z,s)=>{"use strict";s.d(z,{B7:()=>g,Bb:()=>le,W8:()=>Pe,hE:()=>At,sG:()=>ne,up:()=>ht});var n=s(58527),l=s(61142);class d extends l.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class v extends d{static makeCurrent(){(0,l.ZD)(new v)}onAndCancel(be,Ae,qe){return be.addEventListener(Ae,qe),()=>{be.removeEventListener(Ae,qe)}}dispatchEvent(be,Ae){be.dispatchEvent(Ae)}remove(be){be.parentNode&&be.parentNode.removeChild(be)}createElement(be,Ae){return(Ae=Ae||this.getDefaultDocument()).createElement(be)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(be){return be.nodeType===Node.ELEMENT_NODE}isShadowRoot(be){return be instanceof DocumentFragment}getGlobalEventTarget(be,Ae){return"window"===Ae?window:"document"===Ae?be:"body"===Ae?be.body:null}getBaseHref(be){const Ae=function y(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==Ae?null:function f(ke){return new URL(ke,document.baseURI).pathname}(Ae)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(be){return(0,l._b)(document.cookie,be)}}let S=null,P=(()=>{class ke{build(){return new XMLHttpRequest}static{this.\u0275fac=function(qe){return new(qe||ke)}}static{this.\u0275prov=n.jDH({token:ke,factory:ke.\u0275fac})}}return ke})();const _=new n.nKC("");let i=(()=>{class ke{constructor(Ae,qe){this._zone=qe,this._eventNameToPlugin=new Map,Ae.forEach(Lt=>{Lt.manager=this}),this._plugins=Ae.slice().reverse()}addEventListener(Ae,qe,Lt){return this._findPluginFor(qe).addEventListener(Ae,qe,Lt)}getZone(){return this._zone}_findPluginFor(Ae){let qe=this._eventNameToPlugin.get(Ae);if(qe)return qe;if(qe=this._plugins.find(Zt=>Zt.supports(Ae)),!qe)throw new n.wOt(5101,!1);return this._eventNameToPlugin.set(Ae,qe),qe}static{this.\u0275fac=function(qe){return new(qe||ke)(n.KVO(_),n.KVO(n.SKi))}}static{this.\u0275prov=n.jDH({token:ke,factory:ke.\u0275fac})}}return ke})();class r{constructor(be){this._doc=be}}const a="ng-app-id";let c=(()=>{class ke{constructor(Ae,qe,Lt,Zt={}){this.doc=Ae,this.appId=qe,this.nonce=Lt,this.platformId=Zt,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,l.Vy)(Zt),this.resetHostNodes()}addStyles(Ae){for(const qe of Ae)1===this.changeUsageCount(qe,1)&&this.onStyleAdded(qe)}removeStyles(Ae){for(const qe of Ae)this.changeUsageCount(qe,-1)<=0&&this.onStyleRemoved(qe)}ngOnDestroy(){const Ae=this.styleNodesInDOM;Ae&&(Ae.forEach(qe=>qe.remove()),Ae.clear());for(const qe of this.getAllStyles())this.onStyleRemoved(qe);this.resetHostNodes()}addHost(Ae){this.hostNodes.add(Ae);for(const qe of this.getAllStyles())this.addStyleToHost(Ae,qe)}removeHost(Ae){this.hostNodes.delete(Ae)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(Ae){for(const qe of this.hostNodes)this.addStyleToHost(qe,Ae)}onStyleRemoved(Ae){const qe=this.styleRef;qe.get(Ae)?.elements?.forEach(Lt=>Lt.remove()),qe.delete(Ae)}collectServerRenderedStyles(){const Ae=this.doc.head?.querySelectorAll(`style[${a}="${this.appId}"]`);if(Ae?.length){const qe=new Map;return Ae.forEach(Lt=>{null!=Lt.textContent&&qe.set(Lt.textContent,Lt)}),qe}return null}changeUsageCount(Ae,qe){const Lt=this.styleRef;if(Lt.has(Ae)){const Zt=Lt.get(Ae);return Zt.usage+=qe,Zt.usage}return Lt.set(Ae,{usage:qe,elements:[]}),qe}getStyleElement(Ae,qe){const Lt=this.styleNodesInDOM,Zt=Lt?.get(qe);if(Zt?.parentNode===Ae)return Lt.delete(qe),Zt.removeAttribute(a),Zt;{const fn=this.doc.createElement("style");return this.nonce&&fn.setAttribute("nonce",this.nonce),fn.textContent=qe,this.platformIsServer&&fn.setAttribute(a,this.appId),Ae.appendChild(fn),fn}}addStyleToHost(Ae,qe){const Lt=this.getStyleElement(Ae,qe),Zt=this.styleRef,fn=Zt.get(qe)?.elements;fn?fn.push(Lt):Zt.set(qe,{elements:[Lt],usage:1})}resetHostNodes(){const Ae=this.hostNodes;Ae.clear(),Ae.add(this.doc.head)}static{this.\u0275fac=function(qe){return new(qe||ke)(n.KVO(l.qQ),n.KVO(n.sZ2),n.KVO(n.BIS,8),n.KVO(n.Agw))}}static{this.\u0275prov=n.jDH({token:ke,factory:ke.\u0275fac})}}return ke})();const m={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},M=/%COMP%/g,D="%COMP%",I=`_nghost-${D}`,U=`_ngcontent-${D}`,T=new n.nKC("",{providedIn:"root",factory:()=>!0});function E(ke,be){return be.map(Ae=>Ae.replace(M,ke))}let g=(()=>{class ke{constructor(Ae,qe,Lt,Zt,fn,hn,On,fi=null){this.eventManager=Ae,this.sharedStylesHost=qe,this.appId=Lt,this.removeStylesOnCompDestroy=Zt,this.doc=fn,this.platformId=hn,this.ngZone=On,this.nonce=fi,this.rendererByCompId=new Map,this.platformIsServer=(0,l.Vy)(hn),this.defaultRenderer=new R(Ae,fn,On,this.platformIsServer)}createRenderer(Ae,qe){if(!Ae||!qe)return this.defaultRenderer;this.platformIsServer&&qe.encapsulation===n.gXe.ShadowDom&&(qe={...qe,encapsulation:n.gXe.Emulated});const Lt=this.getOrCreateRenderer(Ae,qe);return Lt instanceof ie?Lt.applyToHost(Ae):Lt instanceof re&&Lt.applyStyles(),Lt}getOrCreateRenderer(Ae,qe){const Lt=this.rendererByCompId;let Zt=Lt.get(qe.id);if(!Zt){const fn=this.doc,hn=this.ngZone,On=this.eventManager,fi=this.sharedStylesHost,Ji=this.removeStylesOnCompDestroy,Fi=this.platformIsServer;switch(qe.encapsulation){case n.gXe.Emulated:Zt=new ie(On,fi,qe,this.appId,Ji,fn,hn,Fi);break;case n.gXe.ShadowDom:return new J(On,fi,Ae,qe,fn,hn,this.nonce,Fi);default:Zt=new re(On,fi,qe,Ji,fn,hn,Fi)}Lt.set(qe.id,Zt)}return Zt}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(qe){return new(qe||ke)(n.KVO(i),n.KVO(c),n.KVO(n.sZ2),n.KVO(T),n.KVO(l.qQ),n.KVO(n.Agw),n.KVO(n.SKi),n.KVO(n.BIS))}}static{this.\u0275prov=n.jDH({token:ke,factory:ke.\u0275fac})}}return ke})();class R{constructor(be,Ae,qe,Lt){this.eventManager=be,this.doc=Ae,this.ngZone=qe,this.platformIsServer=Lt,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(be,Ae){return Ae?this.doc.createElementNS(m[Ae]||Ae,be):this.doc.createElement(be)}createComment(be){return this.doc.createComment(be)}createText(be){return this.doc.createTextNode(be)}appendChild(be,Ae){(H(be)?be.content:be).appendChild(Ae)}insertBefore(be,Ae,qe){be&&(H(be)?be.content:be).insertBefore(Ae,qe)}removeChild(be,Ae){be&&be.removeChild(Ae)}selectRootElement(be,Ae){let qe="string"==typeof be?this.doc.querySelector(be):be;if(!qe)throw new n.wOt(-5104,!1);return Ae||(qe.textContent=""),qe}parentNode(be){return be.parentNode}nextSibling(be){return be.nextSibling}setAttribute(be,Ae,qe,Lt){if(Lt){Ae=Lt+":"+Ae;const Zt=m[Lt];Zt?be.setAttributeNS(Zt,Ae,qe):be.setAttribute(Ae,qe)}else be.setAttribute(Ae,qe)}removeAttribute(be,Ae,qe){if(qe){const Lt=m[qe];Lt?be.removeAttributeNS(Lt,Ae):be.removeAttribute(`${qe}:${Ae}`)}else be.removeAttribute(Ae)}addClass(be,Ae){be.classList.add(Ae)}removeClass(be,Ae){be.classList.remove(Ae)}setStyle(be,Ae,qe,Lt){Lt&(n.czy.DashCase|n.czy.Important)?be.style.setProperty(Ae,qe,Lt&n.czy.Important?"important":""):be.style[Ae]=qe}removeStyle(be,Ae,qe){qe&n.czy.DashCase?be.style.removeProperty(Ae):be.style[Ae]=""}setProperty(be,Ae,qe){null!=be&&(be[Ae]=qe)}setValue(be,Ae){be.nodeValue=Ae}listen(be,Ae,qe){if("string"==typeof be&&!(be=(0,l.QT)().getGlobalEventTarget(this.doc,be)))throw new Error(`Unsupported event target ${be} for event ${Ae}`);return this.eventManager.addEventListener(be,Ae,this.decoratePreventDefault(qe))}decoratePreventDefault(be){return Ae=>{if("__ngUnwrap__"===Ae)return be;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>be(Ae)):be(Ae))&&Ae.preventDefault()}}}function H(ke){return"TEMPLATE"===ke.tagName&&void 0!==ke.content}class J extends R{constructor(be,Ae,qe,Lt,Zt,fn,hn,On){super(be,Zt,fn,On),this.sharedStylesHost=Ae,this.hostEl=qe,this.shadowRoot=qe.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const fi=E(Lt.id,Lt.styles);for(const Ji of fi){const Fi=document.createElement("style");hn&&Fi.setAttribute("nonce",hn),Fi.textContent=Ji,this.shadowRoot.appendChild(Fi)}}nodeOrShadowRoot(be){return be===this.hostEl?this.shadowRoot:be}appendChild(be,Ae){return super.appendChild(this.nodeOrShadowRoot(be),Ae)}insertBefore(be,Ae,qe){return super.insertBefore(this.nodeOrShadowRoot(be),Ae,qe)}removeChild(be,Ae){return super.removeChild(this.nodeOrShadowRoot(be),Ae)}parentNode(be){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(be)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class re extends R{constructor(be,Ae,qe,Lt,Zt,fn,hn,On){super(be,Zt,fn,hn),this.sharedStylesHost=Ae,this.removeStylesOnCompDestroy=Lt,this.styles=On?E(On,qe.styles):qe.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class ie extends re{constructor(be,Ae,qe,Lt,Zt,fn,hn,On){const fi=Lt+"-"+qe.id;super(be,Ae,qe,Zt,fn,hn,On,fi),this.contentAttr=function N(ke){return U.replace(M,ke)}(fi),this.hostAttr=function L(ke){return I.replace(M,ke)}(fi)}applyToHost(be){this.applyStyles(),this.setAttribute(be,this.hostAttr,"")}createElement(be,Ae){const qe=super.createElement(be,Ae);return super.setAttribute(qe,this.contentAttr,""),qe}}let ve=(()=>{class ke extends r{constructor(Ae){super(Ae)}supports(Ae){return!0}addEventListener(Ae,qe,Lt){return Ae.addEventListener(qe,Lt,!1),()=>this.removeEventListener(Ae,qe,Lt)}removeEventListener(Ae,qe,Lt){return Ae.removeEventListener(qe,Lt)}static{this.\u0275fac=function(qe){return new(qe||ke)(n.KVO(l.qQ))}}static{this.\u0275prov=n.jDH({token:ke,factory:ke.\u0275fac})}}return ke})();const ue=["alt","control","meta","shift"],se={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Z={alt:ke=>ke.altKey,control:ke=>ke.ctrlKey,meta:ke=>ke.metaKey,shift:ke=>ke.shiftKey};let Se=(()=>{class ke extends r{constructor(Ae){super(Ae)}supports(Ae){return null!=ke.parseEventName(Ae)}addEventListener(Ae,qe,Lt){const Zt=ke.parseEventName(qe),fn=ke.eventCallback(Zt.fullKey,Lt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,l.QT)().onAndCancel(Ae,Zt.domEventName,fn))}static parseEventName(Ae){const qe=Ae.toLowerCase().split("."),Lt=qe.shift();if(0===qe.length||"keydown"!==Lt&&"keyup"!==Lt)return null;const Zt=ke._normalizeKey(qe.pop());let fn="",hn=qe.indexOf("code");if(hn>-1&&(qe.splice(hn,1),fn="code."),ue.forEach(fi=>{const Ji=qe.indexOf(fi);Ji>-1&&(qe.splice(Ji,1),fn+=fi+".")}),fn+=Zt,0!=qe.length||0===Zt.length)return null;const On={};return On.domEventName=Lt,On.fullKey=fn,On}static matchEventFullKeyCode(Ae,qe){let Lt=se[Ae.key]||Ae.key,Zt="";return qe.indexOf("code.")>-1&&(Lt=Ae.code,Zt="code."),!(null==Lt||!Lt)&&(Lt=Lt.toLowerCase()," "===Lt?Lt="space":"."===Lt&&(Lt="dot"),ue.forEach(fn=>{fn!==Lt&&(0,Z[fn])(Ae)&&(Zt+=fn+".")}),Zt+=Lt,Zt===qe)}static eventCallback(Ae,qe,Lt){return Zt=>{ke.matchEventFullKeyCode(Zt,Ae)&&Lt.runGuarded(()=>qe(Zt))}}static _normalizeKey(Ae){return"esc"===Ae?"escape":Ae}static{this.\u0275fac=function(qe){return new(qe||ke)(n.KVO(l.qQ))}}static{this.\u0275prov=n.jDH({token:ke,factory:ke.\u0275fac})}}return ke})();const ne=(0,n.oH4)(n.fpN,"browser",[{provide:n.Agw,useValue:l.AJ},{provide:n.PLl,useValue:function Me(){v.makeCurrent()},multi:!0},{provide:l.qQ,useFactory:function A(){return(0,n.TL$)(document),document},deps:[]}]),G=new n.nKC(""),W=[{provide:n.e01,useClass:class O{addToWindow(be){n.JZv.getAngularTestability=(qe,Lt=!0)=>{const Zt=be.findTestabilityInTree(qe,Lt);if(null==Zt)throw new n.wOt(5103,!1);return Zt},n.JZv.getAllAngularTestabilities=()=>be.getAllTestabilities(),n.JZv.getAllAngularRootElements=()=>be.getAllRootElements(),n.JZv.frameworkStabilizers||(n.JZv.frameworkStabilizers=[]),n.JZv.frameworkStabilizers.push(qe=>{const Lt=n.JZv.getAllAngularTestabilities();let Zt=Lt.length;const fn=function(){Zt--,0==Zt&&qe()};Lt.forEach(hn=>{hn.whenStable(fn)})})}findTestabilityInTree(be,Ae,qe){return null==Ae?null:be.getTestability(Ae)??(qe?(0,l.QT)().isShadowRoot(Ae)?this.findTestabilityInTree(be,Ae.host,!0):this.findTestabilityInTree(be,Ae.parentElement,!0):null)}},deps:[]},{provide:n.WHO,useClass:n.NYb,deps:[n.SKi,n.giA,n.e01]},{provide:n.NYb,useClass:n.NYb,deps:[n.SKi,n.giA,n.e01]}],$=[{provide:n.H8p,useValue:"root"},{provide:n.zcH,useFactory:function Q(){return new n.zcH},deps:[]},{provide:_,useClass:ve,multi:!0,deps:[l.qQ,n.SKi,n.Agw]},{provide:_,useClass:Se,multi:!0,deps:[l.qQ]},g,c,i,{provide:n._9s,useExisting:g},{provide:l.N0,useClass:P,deps:[]},[]];let le=(()=>{class ke{constructor(Ae){}static withServerTransition(Ae){return{ngModule:ke,providers:[{provide:n.sZ2,useValue:Ae.appId}]}}static{this.\u0275fac=function(qe){return new(qe||ke)(n.KVO(G,12))}}static{this.\u0275mod=n.$C({type:ke})}static{this.\u0275inj=n.G2t({providers:[...$,...W],imports:[l.MD,n.Hbi]})}}return ke})(),Pe=(()=>{class ke{constructor(Ae){this._doc=Ae,this._dom=(0,l.QT)()}addTag(Ae,qe=!1){return Ae?this._getOrCreateElement(Ae,qe):null}addTags(Ae,qe=!1){return Ae?Ae.reduce((Lt,Zt)=>(Zt&&Lt.push(this._getOrCreateElement(Zt,qe)),Lt),[]):[]}getTag(Ae){return Ae&&this._doc.querySelector(`meta[${Ae}]`)||null}getTags(Ae){if(!Ae)return[];const qe=this._doc.querySelectorAll(`meta[${Ae}]`);return qe?[].slice.call(qe):[]}updateTag(Ae,qe){if(!Ae)return null;qe=qe||this._parseSelector(Ae);const Lt=this.getTag(qe);return Lt?this._setMetaElementAttributes(Ae,Lt):this._getOrCreateElement(Ae,!0)}removeTag(Ae){this.removeTagElement(this.getTag(Ae))}removeTagElement(Ae){Ae&&this._dom.remove(Ae)}_getOrCreateElement(Ae,qe=!1){if(!qe){const fn=this._parseSelector(Ae),hn=this.getTags(fn).filter(On=>this._containsAttributes(Ae,On))[0];if(void 0!==hn)return hn}const Lt=this._dom.createElement("meta");return this._setMetaElementAttributes(Ae,Lt),this._doc.getElementsByTagName("head")[0].appendChild(Lt),Lt}_setMetaElementAttributes(Ae,qe){return Object.keys(Ae).forEach(Lt=>qe.setAttribute(this._getMetaKeyMap(Lt),Ae[Lt])),qe}_parseSelector(Ae){const qe=Ae.name?"name":"property";return`${qe}="${Ae[qe]}"`}_containsAttributes(Ae,qe){return Object.keys(Ae).every(Lt=>qe.getAttribute(this._getMetaKeyMap(Lt))===Ae[Lt])}_getMetaKeyMap(Ae){return Fe[Ae]||Ae}static{this.\u0275fac=function(qe){return new(qe||ke)(n.KVO(l.qQ))}}static{this.\u0275prov=n.jDH({token:ke,factory:ke.\u0275fac,providedIn:"root"})}}return ke})();const Fe={httpEquiv:"http-equiv"};let At=(()=>{class ke{constructor(Ae){this._doc=Ae}getTitle(){return this._doc.title}setTitle(Ae){this._doc.title=Ae||""}static{this.\u0275fac=function(qe){return new(qe||ke)(n.KVO(l.qQ))}}static{this.\u0275prov=n.jDH({token:ke,factory:ke.\u0275fac,providedIn:"root"})}}return ke})(),ht=(()=>{class ke{static{this.\u0275fac=function(qe){return new(qe||ke)}}static{this.\u0275prov=n.jDH({token:ke,factory:function(qe){let Lt=null;return Lt=qe?new(qe||ke):n.KVO(Xt),Lt},providedIn:"root"})}}return ke})(),Xt=(()=>{class ke extends ht{constructor(Ae){super(),this._doc=Ae}sanitize(Ae,qe){if(null==qe)return null;switch(Ae){case n.WPN.NONE:return qe;case n.WPN.HTML:return(0,n.ZF7)(qe,"HTML")?(0,n.rcV)(qe):(0,n.h9k)(this._doc,String(qe)).toString();case n.WPN.STYLE:return(0,n.ZF7)(qe,"Style")?(0,n.rcV)(qe):qe;case n.WPN.SCRIPT:if((0,n.ZF7)(qe,"Script"))return(0,n.rcV)(qe);throw new n.wOt(5200,!1);case n.WPN.URL:return(0,n.ZF7)(qe,"URL")?(0,n.rcV)(qe):(0,n.$MX)(String(qe));case n.WPN.RESOURCE_URL:if((0,n.ZF7)(qe,"ResourceURL"))return(0,n.rcV)(qe);throw new n.wOt(5201,!1);default:throw new n.wOt(5202,!1)}}bypassSecurityTrustHtml(Ae){return(0,n.Kcf)(Ae)}bypassSecurityTrustStyle(Ae){return(0,n.cWb)(Ae)}bypassSecurityTrustScript(Ae){return(0,n.UyX)(Ae)}bypassSecurityTrustUrl(Ae){return(0,n.osQ)(Ae)}bypassSecurityTrustResourceUrl(Ae){return(0,n.e5t)(Ae)}static{this.\u0275fac=function(qe){return new(qe||ke)(n.KVO(l.qQ))}}static{this.\u0275prov=n.jDH({token:ke,factory:ke.\u0275fac,providedIn:"root"})}}return ke})()},14354:(Bt,z,s)=>{"use strict";s.d(z,{Ix:()=>ss,Kp:()=>Gr,L6:()=>Kn,Wk:()=>Gs,Z:()=>bi,iI:()=>Ho,j5:()=>_o,ld:()=>gi,n3:()=>Qo,nX:()=>Vn,wF:()=>Zi});var n=s(70650),l=s(58527),d=s(39595),v=s(19392),S=s(43848),y=s(26513),f=s(31315),O=s(64971),P=s(69917),_=s(63997),i=s(97462),r=s(59859),a=s(12532),c=s(96090),m=s(80583),M=s(10399),D=s(61142),I=s(83915),U=s(72147),V=s(65706),T=s(34593),N=s(8619),L=s(75707),E=s(99047),g=s(79539),R=s(91384),B=s(14714),X=s(18612),H=s(67110),J=s(25577),re=s(93702),ie=s(10174),ve=s(43615),ue=s(60837),se=s(4208),Z=s(40466),Se=s(74150);const Ce="primary",Be=Symbol("RouteTitle");class Xe{constructor(Kt){this.params=Kt||{}}has(Kt){return Object.prototype.hasOwnProperty.call(this.params,Kt)}get(Kt){if(this.has(Kt)){const mt=this.params[Kt];return Array.isArray(mt)?mt[0]:mt}return null}getAll(Kt){if(this.has(Kt)){const mt=this.params[Kt];return Array.isArray(mt)?mt:[mt]}return[]}get keys(){return Object.keys(this.params)}}function He(_t){return new Xe(_t)}function Me(_t,Kt,mt){const Yt=mt.path.split("/");if(Yt.length>_t.length||"full"===mt.pathMatch&&(Kt.hasChildren()||Yt.length<_t.length))return null;const _n={};for(let de=0;de<Yt.length;de++){const q=Yt[de],j=_t[de];if(q.startsWith(":"))_n[q.substring(1)]=j;else if(q!==j.path)return null}return{consumed:_t.slice(0,Yt.length),posParams:_n}}function A(_t,Kt){const mt=_t?me(_t):void 0,Yt=Kt?me(Kt):void 0;if(!mt||!Yt||mt.length!=Yt.length)return!1;let _n;for(let de=0;de<mt.length;de++)if(_n=mt[de],!ne(_t[_n],Kt[_n]))return!1;return!0}function me(_t){return[...Object.keys(_t),...Object.getOwnPropertySymbols(_t)]}function ne(_t,Kt){if(Array.isArray(_t)&&Array.isArray(Kt)){if(_t.length!==Kt.length)return!1;const mt=[..._t].sort(),Yt=[...Kt].sort();return mt.every((_n,de)=>Yt[de]===_n)}return _t===Kt}function G(_t){return _t.length>0?_t[_t.length-1]:null}function W(_t){return(0,d.A)(_t)?_t:(0,l.jNT)(_t)?(0,v.H)(Promise.resolve(_t)):(0,S.of)(_t)}const $={exact:function At(_t,Kt,mt){if(!at(_t.segments,Kt.segments)||!Ze(_t.segments,Kt.segments,mt)||_t.numberOfChildren!==Kt.numberOfChildren)return!1;for(const Yt in Kt.children)if(!_t.children[Yt]||!At(_t.children[Yt],Kt.children[Yt],mt))return!1;return!0},subset:Et},le={exact:function Fe(_t,Kt){return A(_t,Kt)},subset:function Le(_t,Kt){return Object.keys(Kt).length<=Object.keys(_t).length&&Object.keys(Kt).every(mt=>ne(_t[mt],Kt[mt]))},ignored:()=>!0};function Pe(_t,Kt,mt){return $[mt.paths](_t.root,Kt.root,mt.matrixParams)&&le[mt.queryParams](_t.queryParams,Kt.queryParams)&&!("exact"===mt.fragment&&_t.fragment!==Kt.fragment)}function Et(_t,Kt,mt){return $e(_t,Kt,Kt.segments,mt)}function $e(_t,Kt,mt,Yt){if(_t.segments.length>mt.length){const _n=_t.segments.slice(0,mt.length);return!(!at(_n,mt)||Kt.hasChildren()||!Ze(_n,mt,Yt))}if(_t.segments.length===mt.length){if(!at(_t.segments,mt)||!Ze(_t.segments,mt,Yt))return!1;for(const _n in Kt.children)if(!_t.children[_n]||!Et(_t.children[_n],Kt.children[_n],Yt))return!1;return!0}{const _n=mt.slice(0,_t.segments.length),de=mt.slice(_t.segments.length);return!!(at(_t.segments,_n)&&Ze(_t.segments,_n,Yt)&&_t.children[Ce])&&$e(_t.children[Ce],Kt,de,Yt)}}function Ze(_t,Kt,mt){return Kt.every((Yt,_n)=>le[mt](_t[_n].parameters,Yt.parameters))}class Qe{constructor(Kt=new Ve([],{}),mt={},Yt=null){this.root=Kt,this.queryParams=mt,this.fragment=Yt}get queryParamMap(){return this._queryParamMap??=He(this.queryParams),this._queryParamMap}toString(){return lt.serialize(this)}}class Ve{constructor(Kt,mt){this.segments=Kt,this.children=mt,this.parent=null,Object.values(mt).forEach(Yt=>Yt.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ft(this)}}class nt{constructor(Kt,mt){this.path=Kt,this.parameters=mt}get parameterMap(){return this._parameterMap??=He(this.parameters),this._parameterMap}toString(){return St(this)}}function at(_t,Kt){return _t.length===Kt.length&&_t.every((mt,Yt)=>mt.path===Kt[Yt].path)}let We=(()=>{class _t{static{this.\u0275fac=function(Yt){return new(Yt||_t)}}static{this.\u0275prov=l.jDH({token:_t,factory:()=>new xe,providedIn:"root"})}}return _t})();class xe{parse(Kt){const mt=new hn(Kt);return new Qe(mt.parseRootSegment(),mt.parseQueryParams(),mt.parseFragment())}serialize(Kt){const mt=`/${ht(Kt.root,!0)}`,Yt=function yt(_t){const Kt=Object.entries(_t).map(([mt,Yt])=>Array.isArray(Yt)?Yt.map(_n=>`${Ht(mt)}=${Ht(_n)}`).join("&"):`${Ht(mt)}=${Ht(Yt)}`).filter(mt=>mt);return Kt.length?`?${Kt.join("&")}`:""}(Kt.queryParams);return`${mt}${Yt}${"string"==typeof Kt.fragment?`#${function Je(_t){return encodeURI(_t)}(Kt.fragment)}`:""}`}}const lt=new xe;function ft(_t){return _t.segments.map(Kt=>St(Kt)).join("/")}function ht(_t,Kt){if(!_t.hasChildren())return ft(_t);if(Kt){const mt=_t.children[Ce]?ht(_t.children[Ce],!1):"",Yt=[];return Object.entries(_t.children).forEach(([_n,de])=>{_n!==Ce&&Yt.push(`${_n}:${ht(de,!1)}`)}),Yt.length>0?`${mt}(${Yt.join("//")})`:mt}{const mt=function It(_t,Kt){let mt=[];return Object.entries(_t.children).forEach(([Yt,_n])=>{Yt===Ce&&(mt=mt.concat(Kt(_n,Yt)))}),Object.entries(_t.children).forEach(([Yt,_n])=>{Yt!==Ce&&(mt=mt.concat(Kt(_n,Yt)))}),mt}(_t,(Yt,_n)=>_n===Ce?[ht(_t.children[Ce],!1)]:[`${_n}:${ht(Yt,!1)}`]);return 1===Object.keys(_t.children).length&&null!=_t.children[Ce]?`${ft(_t)}/${mt[0]}`:`${ft(_t)}/(${mt.join("//")})`}}function Xt(_t){return encodeURIComponent(_t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ht(_t){return Xt(_t).replace(/%3B/gi,";")}function tt(_t){return Xt(_t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rt(_t){return decodeURIComponent(_t)}function et(_t){return rt(_t.replace(/\+/g,"%20"))}function St(_t){return`${tt(_t.path)}${function Gt(_t){return Object.entries(_t).map(([Kt,mt])=>`;${tt(Kt)}=${tt(mt)}`).join("")}(_t.parameters)}`}const Wt=/^[^\/()?;#]+/;function ke(_t){const Kt=_t.match(Wt);return Kt?Kt[0]:""}const be=/^[^\/()?;=#]+/,qe=/^[^=?&#]+/,Zt=/^[^&#]+/;class hn{constructor(Kt){this.url=Kt,this.remaining=Kt}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ve([],{}):new Ve([],this.parseChildren())}parseQueryParams(){const Kt={};if(this.consumeOptional("?"))do{this.parseQueryParam(Kt)}while(this.consumeOptional("&"));return Kt}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const Kt=[];for(this.peekStartsWith("(")||Kt.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),Kt.push(this.parseSegment());let mt={};this.peekStartsWith("/(")&&(this.capture("/"),mt=this.parseParens(!0));let Yt={};return this.peekStartsWith("(")&&(Yt=this.parseParens(!1)),(Kt.length>0||Object.keys(mt).length>0)&&(Yt[Ce]=new Ve(Kt,mt)),Yt}parseSegment(){const Kt=ke(this.remaining);if(""===Kt&&this.peekStartsWith(";"))throw new l.wOt(4009,!1);return this.capture(Kt),new nt(rt(Kt),this.parseMatrixParams())}parseMatrixParams(){const Kt={};for(;this.consumeOptional(";");)this.parseParam(Kt);return Kt}parseParam(Kt){const mt=function Ae(_t){const Kt=_t.match(be);return Kt?Kt[0]:""}(this.remaining);if(!mt)return;this.capture(mt);let Yt="";if(this.consumeOptional("=")){const _n=ke(this.remaining);_n&&(Yt=_n,this.capture(Yt))}Kt[rt(mt)]=rt(Yt)}parseQueryParam(Kt){const mt=function Lt(_t){const Kt=_t.match(qe);return Kt?Kt[0]:""}(this.remaining);if(!mt)return;this.capture(mt);let Yt="";if(this.consumeOptional("=")){const q=function fn(_t){const Kt=_t.match(Zt);return Kt?Kt[0]:""}(this.remaining);q&&(Yt=q,this.capture(Yt))}const _n=et(mt),de=et(Yt);if(Kt.hasOwnProperty(_n)){let q=Kt[_n];Array.isArray(q)||(q=[q],Kt[_n]=q),q.push(de)}else Kt[_n]=de}parseParens(Kt){const mt={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Yt=ke(this.remaining),_n=this.remaining[Yt.length];if("/"!==_n&&")"!==_n&&";"!==_n)throw new l.wOt(4010,!1);let de;Yt.indexOf(":")>-1?(de=Yt.slice(0,Yt.indexOf(":")),this.capture(de),this.capture(":")):Kt&&(de=Ce);const q=this.parseChildren();mt[de]=1===Object.keys(q).length?q[Ce]:new Ve([],q),this.consumeOptional("//")}return mt}peekStartsWith(Kt){return this.remaining.startsWith(Kt)}consumeOptional(Kt){return!!this.peekStartsWith(Kt)&&(this.remaining=this.remaining.substring(Kt.length),!0)}capture(Kt){if(!this.consumeOptional(Kt))throw new l.wOt(4011,!1)}}function On(_t){return _t.segments.length>0?new Ve([],{[Ce]:_t}):_t}function fi(_t){const Kt={};for(const[Yt,_n]of Object.entries(_t.children)){const de=fi(_n);if(Yt===Ce&&0===de.segments.length&&de.hasChildren())for(const[q,j]of Object.entries(de.children))Kt[q]=j;else(de.segments.length>0||de.hasChildren())&&(Kt[Yt]=de)}return function Ji(_t){if(1===_t.numberOfChildren&&_t.children[Ce]){const Kt=_t.children[Ce];return new Ve(_t.segments.concat(Kt.segments),Kt.children)}return _t}(new Ve(_t.segments,Kt))}function Fi(_t){return _t instanceof Qe}function bn(_t){let Kt;const _n=On(function mt(de){const q={};for(const te of de.children){const fe=mt(te);q[te.outlet]=fe}const j=new Ve(de.url,q);return de===_t&&(Kt=j),j}(_t.root));return Kt??_n}function Pt(_t,Kt,mt,Yt){let _n=_t;for(;_n.parent;)_n=_n.parent;if(0===Kt.length)return ui(_n,_n,_n,mt,Yt);const de=function zr(_t){if("string"==typeof _t[0]&&1===_t.length&&"/"===_t[0])return new pr(!0,0,_t);let Kt=0,mt=!1;const Yt=_t.reduce((_n,de,q)=>{if("object"==typeof de&&null!=de){if(de.outlets){const j={};return Object.entries(de.outlets).forEach(([te,fe])=>{j[te]="string"==typeof fe?fe.split("/"):fe}),[..._n,{outlets:j}]}if(de.segmentPath)return[..._n,de.segmentPath]}return"string"!=typeof de?[..._n,de]:0===q?(de.split("/").forEach((j,te)=>{0==te&&"."===j||(0==te&&""===j?mt=!0:".."===j?Kt++:""!=j&&_n.push(j))}),_n):[..._n,de]},[]);return new pr(mt,Kt,Yt)}(Kt);if(de.toRoot())return ui(_n,_n,new Ve([],{}),mt,Yt);const q=function pn(_t,Kt,mt){if(_t.isAbsolute)return new Cn(Kt,!0,0);if(!mt)return new Cn(Kt,!1,NaN);if(null===mt.parent)return new Cn(mt,!0,0);const Yt=jt(_t.commands[0])?0:1;return function ti(_t,Kt,mt){let Yt=_t,_n=Kt,de=mt;for(;de>_n;){if(de-=_n,Yt=Yt.parent,!Yt)throw new l.wOt(4005,!1);_n=Yt.segments.length}return new Cn(Yt,!1,_n-de)}(mt,mt.segments.length-1+Yt,_t.numberOfDoubleDots)}(de,_n,_t),j=q.processChildren?An(q.segmentGroup,q.index,de.commands):cn(q.segmentGroup,q.index,de.commands);return ui(_n,q.segmentGroup,j,mt,Yt)}function jt(_t){return"object"==typeof _t&&null!=_t&&!_t.outlets&&!_t.segmentPath}function gn(_t){return"object"==typeof _t&&null!=_t&&_t.outlets}function ui(_t,Kt,mt,Yt,_n){let q,de={};Yt&&Object.entries(Yt).forEach(([te,fe])=>{de[te]=Array.isArray(fe)?fe.map(Ne=>`${Ne}`):`${fe}`}),q=_t===Kt?mt:Ii(_t,Kt,mt);const j=On(fi(q));return new Qe(j,de,_n)}function Ii(_t,Kt,mt){const Yt={};return Object.entries(_t.children).forEach(([_n,de])=>{Yt[_n]=de===Kt?mt:Ii(de,Kt,mt)}),new Ve(_t.segments,Yt)}class pr{constructor(Kt,mt,Yt){if(this.isAbsolute=Kt,this.numberOfDoubleDots=mt,this.commands=Yt,Kt&&Yt.length>0&&jt(Yt[0]))throw new l.wOt(4003,!1);const _n=Yt.find(gn);if(_n&&_n!==G(Yt))throw new l.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Cn{constructor(Kt,mt,Yt){this.segmentGroup=Kt,this.processChildren=mt,this.index=Yt}}function cn(_t,Kt,mt){if(_t??=new Ve([],{}),0===_t.segments.length&&_t.hasChildren())return An(_t,Kt,mt);const Yt=function Jn(_t,Kt,mt){let Yt=0,_n=Kt;const de={match:!1,pathIndex:0,commandIndex:0};for(;_n<_t.segments.length;){if(Yt>=mt.length)return de;const q=_t.segments[_n],j=mt[Yt];if(gn(j))break;const te=`${j}`,fe=Yt<mt.length-1?mt[Yt+1]:null;if(_n>0&&void 0===te)break;if(te&&fe&&"object"==typeof fe&&void 0===fe.outlets){if(!Yn(te,fe,q))return de;Yt+=2}else{if(!Yn(te,{},q))return de;Yt++}_n++}return{match:!0,pathIndex:_n,commandIndex:Yt}}(_t,Kt,mt),_n=mt.slice(Yt.commandIndex);if(Yt.match&&Yt.pathIndex<_t.segments.length){const de=new Ve(_t.segments.slice(0,Yt.pathIndex),{});return de.children[Ce]=new Ve(_t.segments.slice(Yt.pathIndex),_t.children),An(de,0,_n)}return Yt.match&&0===_n.length?new Ve(_t.segments,{}):Yt.match&&!_t.hasChildren()?hi(_t,Kt,mt):Yt.match?An(_t,0,_n):hi(_t,Kt,mt)}function An(_t,Kt,mt){if(0===mt.length)return new Ve(_t.segments,{});{const Yt=function pi(_t){return gn(_t[0])?_t[0].outlets:{[Ce]:_t}}(mt),_n={};if(Object.keys(Yt).some(de=>de!==Ce)&&_t.children[Ce]&&1===_t.numberOfChildren&&0===_t.children[Ce].segments.length){const de=An(_t.children[Ce],Kt,mt);return new Ve(_t.segments,de.children)}return Object.entries(Yt).forEach(([de,q])=>{"string"==typeof q&&(q=[q]),null!==q&&(_n[de]=cn(_t.children[de],Kt,q))}),Object.entries(_t.children).forEach(([de,q])=>{void 0===Yt[de]&&(_n[de]=q)}),new Ve(_t.segments,_n)}}function hi(_t,Kt,mt){const Yt=_t.segments.slice(0,Kt);let _n=0;for(;_n<mt.length;){const de=mt[_n];if(gn(de)){const te=xi(de.outlets);return new Ve(Yt,te)}if(0===_n&&jt(mt[0])){Yt.push(new nt(_t.segments[Kt].path,xn(mt[0]))),_n++;continue}const q=gn(de)?de.outlets[Ce]:`${de}`,j=_n<mt.length-1?mt[_n+1]:null;q&&j&&jt(j)?(Yt.push(new nt(q,xn(j))),_n+=2):(Yt.push(new nt(q,{})),_n++)}return new Ve(Yt,{})}function xi(_t){const Kt={};return Object.entries(_t).forEach(([mt,Yt])=>{"string"==typeof Yt&&(Yt=[Yt]),null!==Yt&&(Kt[mt]=hi(new Ve([],{}),0,Yt))}),Kt}function xn(_t){const Kt={};return Object.entries(_t).forEach(([mt,Yt])=>Kt[mt]=`${Yt}`),Kt}function Yn(_t,Kt,mt){return _t==mt.path&&A(Kt,mt.parameters)}const Gn="imperative";var Ci=function(_t){return _t[_t.NavigationStart=0]="NavigationStart",_t[_t.NavigationEnd=1]="NavigationEnd",_t[_t.NavigationCancel=2]="NavigationCancel",_t[_t.NavigationError=3]="NavigationError",_t[_t.RoutesRecognized=4]="RoutesRecognized",_t[_t.ResolveStart=5]="ResolveStart",_t[_t.ResolveEnd=6]="ResolveEnd",_t[_t.GuardsCheckStart=7]="GuardsCheckStart",_t[_t.GuardsCheckEnd=8]="GuardsCheckEnd",_t[_t.RouteConfigLoadStart=9]="RouteConfigLoadStart",_t[_t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",_t[_t.ChildActivationStart=11]="ChildActivationStart",_t[_t.ChildActivationEnd=12]="ChildActivationEnd",_t[_t.ActivationStart=13]="ActivationStart",_t[_t.ActivationEnd=14]="ActivationEnd",_t[_t.Scroll=15]="Scroll",_t[_t.NavigationSkipped=16]="NavigationSkipped",_t}(Ci||{});class ln{constructor(Kt,mt){this.id=Kt,this.url=mt}}class bi extends ln{constructor(Kt,mt,Yt="imperative",_n=null){super(Kt,mt),this.type=Ci.NavigationStart,this.navigationTrigger=Yt,this.restoredState=_n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Zi extends ln{constructor(Kt,mt,Yt){super(Kt,mt),this.urlAfterRedirects=Yt,this.type=Ci.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Mr=function(_t){return _t[_t.Redirect=0]="Redirect",_t[_t.SupersededByNewNavigation=1]="SupersededByNewNavigation",_t[_t.NoDataFromResolver=2]="NoDataFromResolver",_t[_t.GuardRejected=3]="GuardRejected",_t}(Mr||{}),$r=function(_t){return _t[_t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",_t[_t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",_t}($r||{});class _o extends ln{constructor(Kt,mt,Yt,_n){super(Kt,mt),this.reason=Yt,this.code=_n,this.type=Ci.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class bo extends ln{constructor(Kt,mt,Yt,_n){super(Kt,mt),this.reason=Yt,this.code=_n,this.type=Ci.NavigationSkipped}}class Kn extends ln{constructor(Kt,mt,Yt,_n){super(Kt,mt),this.error=Yt,this.target=_n,this.type=Ci.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class gi extends ln{constructor(Kt,mt,Yt,_n){super(Kt,mt),this.urlAfterRedirects=Yt,this.state=_n,this.type=Ci.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Pi extends ln{constructor(Kt,mt,Yt,_n){super(Kt,mt),this.urlAfterRedirects=Yt,this.state=_n,this.type=Ci.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ji extends ln{constructor(Kt,mt,Yt,_n,de){super(Kt,mt),this.urlAfterRedirects=Yt,this.state=_n,this.shouldActivate=de,this.type=Ci.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Qi extends ln{constructor(Kt,mt,Yt,_n){super(Kt,mt),this.urlAfterRedirects=Yt,this.state=_n,this.type=Ci.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ar extends ln{constructor(Kt,mt,Yt,_n){super(Kt,mt),this.urlAfterRedirects=Yt,this.state=_n,this.type=Ci.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jr{constructor(Kt){this.route=Kt,this.type=Ci.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ho{constructor(Kt){this.route=Kt,this.type=Ci.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Fo{constructor(Kt){this.snapshot=Kt,this.type=Ci.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class no{constructor(Kt){this.snapshot=Kt,this.type=Ci.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yo{constructor(Kt){this.snapshot=Kt,this.type=Ci.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zr{constructor(Kt){this.snapshot=Kt,this.type=Ci.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yr{constructor(Kt,mt,Yt){this.routerEvent=Kt,this.position=mt,this.anchor=Yt,this.type=Ci.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class go{}class zo{constructor(Kt){this.url=Kt}}class to{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ot,this.attachRef=null}}let ot=(()=>{class _t{constructor(){this.contexts=new Map}onChildOutletCreated(mt,Yt){const _n=this.getOrCreateContext(mt);_n.outlet=Yt,this.contexts.set(mt,_n)}onChildOutletDestroyed(mt){const Yt=this.getContext(mt);Yt&&(Yt.outlet=null,Yt.attachRef=null)}onOutletDeactivated(){const mt=this.contexts;return this.contexts=new Map,mt}onOutletReAttached(mt){this.contexts=mt}getOrCreateContext(mt){let Yt=this.getContext(mt);return Yt||(Yt=new to,this.contexts.set(mt,Yt)),Yt}getContext(mt){return this.contexts.get(mt)||null}static{this.\u0275fac=function(Yt){return new(Yt||_t)}}static{this.\u0275prov=l.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}}return _t})();class Vt{constructor(Kt){this._root=Kt}get root(){return this._root.value}parent(Kt){const mt=this.pathFromRoot(Kt);return mt.length>1?mt[mt.length-2]:null}children(Kt){const mt=Sn(Kt,this._root);return mt?mt.children.map(Yt=>Yt.value):[]}firstChild(Kt){const mt=Sn(Kt,this._root);return mt&&mt.children.length>0?mt.children[0].value:null}siblings(Kt){const mt=Bn(Kt,this._root);return mt.length<2?[]:mt[mt.length-2].children.map(_n=>_n.value).filter(_n=>_n!==Kt)}pathFromRoot(Kt){return Bn(Kt,this._root).map(mt=>mt.value)}}function Sn(_t,Kt){if(_t===Kt.value)return Kt;for(const mt of Kt.children){const Yt=Sn(_t,mt);if(Yt)return Yt}return null}function Bn(_t,Kt){if(_t===Kt.value)return[Kt];for(const mt of Kt.children){const Yt=Bn(_t,mt);if(Yt.length)return Yt.unshift(Kt),Yt}return[]}class Ti{constructor(Kt,mt){this.value=Kt,this.children=mt}toString(){return`TreeNode(${this.value})`}}function Li(_t){const Kt={};return _t&&_t.children.forEach(mt=>Kt[mt.value.outlet]=mt),Kt}class dr extends Vt{constructor(Kt,mt){super(Kt),this.snapshot=mt,Wn(this,Kt)}toString(){return this.snapshot.toString()}}function Fr(_t){const Kt=function br(_t){const de=new Ut([],{},{},"",{},Ce,_t,null,{});return new qn("",new Ti(de,[]))}(_t),mt=new y.t([new nt("",{})]),Yt=new y.t({}),_n=new y.t({}),de=new y.t({}),q=new y.t(""),j=new Vn(mt,Yt,de,q,_n,Ce,_t,Kt.root);return j.snapshot=Kt.root,new dr(new Ti(j,[]),Kt)}class Vn{constructor(Kt,mt,Yt,_n,de,q,j,te){this.urlSubject=Kt,this.paramsSubject=mt,this.queryParamsSubject=Yt,this.fragmentSubject=_n,this.dataSubject=de,this.outlet=q,this.component=j,this._futureSnapshot=te,this.title=this.dataSubject?.pipe((0,I.T)(fe=>fe[Be]))??(0,S.of)(void 0),this.url=Kt,this.params=mt,this.queryParams=Yt,this.fragment=_n,this.data=de}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,I.T)(Kt=>He(Kt))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,I.T)(Kt=>He(Kt))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function rr(_t,Kt,mt="emptyOnly"){let Yt;const{routeConfig:_n}=_t;return Yt=null===Kt||"always"!==mt&&""!==_n?.path&&(Kt.component||Kt.routeConfig?.loadComponent)?{params:{..._t.params},data:{..._t.data},resolve:{..._t.data,..._t._resolvedData??{}}}:{params:{...Kt.params,..._t.params},data:{...Kt.data,..._t.data},resolve:{..._t.data,...Kt.data,..._n?.data,..._t._resolvedData}},_n&&oo(_n)&&(Yt.resolve[Be]=_n.title),Yt}class Ut{get title(){return this.data?.[Be]}constructor(Kt,mt,Yt,_n,de,q,j,te,fe){this.url=Kt,this.params=mt,this.queryParams=Yt,this.fragment=_n,this.data=de,this.outlet=q,this.component=j,this.routeConfig=te,this._resolve=fe}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=He(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=He(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Yt=>Yt.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class qn extends Vt{constructor(Kt,mt){super(mt),this.url=Kt,Wn(this,mt)}toString(){return ci(this._root)}}function Wn(_t,Kt){Kt.value._routerState=_t,Kt.children.forEach(mt=>Wn(_t,mt))}function ci(_t){const Kt=_t.children.length>0?` { ${_t.children.map(ci).join(", ")} } `:"";return`${_t.value}${Kt}`}function Tr(_t){if(_t.snapshot){const Kt=_t.snapshot,mt=_t._futureSnapshot;_t.snapshot=mt,A(Kt.queryParams,mt.queryParams)||_t.queryParamsSubject.next(mt.queryParams),Kt.fragment!==mt.fragment&&_t.fragmentSubject.next(mt.fragment),A(Kt.params,mt.params)||_t.paramsSubject.next(mt.params),function Q(_t,Kt){if(_t.length!==Kt.length)return!1;for(let mt=0;mt<_t.length;++mt)if(!A(_t[mt],Kt[mt]))return!1;return!0}(Kt.url,mt.url)||_t.urlSubject.next(mt.url),A(Kt.data,mt.data)||_t.dataSubject.next(mt.data)}else _t.snapshot=_t._futureSnapshot,_t.dataSubject.next(_t._futureSnapshot.data)}function Jr(_t,Kt){const mt=A(_t.params,Kt.params)&&function Ot(_t,Kt){return at(_t,Kt)&&_t.every((mt,Yt)=>A(mt.parameters,Kt[Yt].parameters))}(_t.url,Kt.url);return mt&&!(!_t.parent!=!Kt.parent)&&(!_t.parent||Jr(_t.parent,Kt.parent))}function oo(_t){return"string"==typeof _t.title||null===_t.title}let Qo=(()=>{class _t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ce,this.activateEvents=new l.bkB,this.deactivateEvents=new l.bkB,this.attachEvents=new l.bkB,this.detachEvents=new l.bkB,this.parentContexts=(0,l.WQX)(ot),this.location=(0,l.WQX)(l.c1b),this.changeDetector=(0,l.WQX)(l.gRc),this.environmentInjector=(0,l.WQX)(l.uvJ),this.inputBinder=(0,l.WQX)(Xr,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(mt){if(mt.name){const{firstChange:Yt,previousValue:_n}=mt.name;if(Yt)return;this.isTrackedInParentContexts(_n)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(_n)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(mt){return this.parentContexts.getContext(mt)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const mt=this.parentContexts.getContext(this.name);mt?.route&&(mt.attachRef?this.attach(mt.attachRef,mt.route):this.activateWith(mt.route,mt.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new l.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new l.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new l.wOt(4012,!1);this.location.detach();const mt=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(mt.instance),mt}attach(mt,Yt){this.activated=mt,this._activatedRoute=Yt,this.location.insert(mt.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(mt.instance)}deactivate(){if(this.activated){const mt=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(mt)}}activateWith(mt,Yt){if(this.isActivated)throw new l.wOt(4013,!1);this._activatedRoute=mt;const _n=this.location,q=mt.snapshot.component,j=this.parentContexts.getOrCreateContext(this.name).children,te=new fo(mt,j,_n.injector);this.activated=_n.createComponent(q,{index:_n.length,injector:te,environmentInjector:Yt??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(Yt){return new(Yt||_t)}}static{this.\u0275dir=l.FsC({type:_t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[l.OA$]})}}return _t})();class fo{__ngOutletInjector(Kt){return new fo(this.route,this.childContexts,Kt)}constructor(Kt,mt,Yt){this.route=Kt,this.childContexts=mt,this.parent=Yt}get(Kt,mt){return Kt===Vn?this.route:Kt===ot?this.childContexts:this.parent.get(Kt,mt)}}const Xr=new l.nKC("");let Go=(()=>{class _t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(mt){this.unsubscribeFromRouteData(mt),this.subscribeToRouteData(mt)}unsubscribeFromRouteData(mt){this.outletDataSubscriptions.get(mt)?.unsubscribe(),this.outletDataSubscriptions.delete(mt)}subscribeToRouteData(mt){const{activatedRoute:Yt}=mt,_n=(0,f.zV)([Yt.queryParams,Yt.params,Yt.data]).pipe((0,U.n)(([de,q,j],te)=>(j={...de,...q,...j},0===te?(0,S.of)(j):Promise.resolve(j)))).subscribe(de=>{if(!mt.isActivated||!mt.activatedComponentRef||mt.activatedRoute!==Yt||null===Yt.component)return void this.unsubscribeFromRouteData(mt);const q=(0,l.HJs)(Yt.component);if(q)for(const{templateName:j}of q.inputs)mt.activatedComponentRef.setInput(j,de[j]);else this.unsubscribeFromRouteData(mt)});this.outletDataSubscriptions.set(mt,_n)}static{this.\u0275fac=function(Yt){return new(Yt||_t)}}static{this.\u0275prov=l.jDH({token:_t,factory:_t.\u0275fac})}}return _t})();function kr(_t,Kt,mt){if(mt&&_t.shouldReuseRoute(Kt.value,mt.value.snapshot)){const Yt=mt.value;Yt._futureSnapshot=Kt.value;const _n=function pa(_t,Kt,mt){return Kt.children.map(Yt=>{for(const _n of mt.children)if(_t.shouldReuseRoute(Yt.value,_n.value.snapshot))return kr(_t,Yt,_n);return kr(_t,Yt)})}(_t,Kt,mt);return new Ti(Yt,_n)}{if(_t.shouldAttach(Kt.value)){const de=_t.retrieve(Kt.value);if(null!==de){const q=de.route;return q.value._futureSnapshot=Kt.value,q.children=Kt.children.map(j=>kr(_t,j)),q}}const Yt=function ka(_t){return new Vn(new y.t(_t.url),new y.t(_t.params),new y.t(_t.queryParams),new y.t(_t.fragment),new y.t(_t.data),_t.outlet,_t.component,_t)}(Kt.value),_n=Kt.children.map(de=>kr(_t,de));return new Ti(Yt,_n)}}const Xs="ngNavigationCancelingError";function ys(_t,Kt){const{redirectTo:mt,navigationBehaviorOptions:Yt}=Fi(Kt)?{redirectTo:Kt,navigationBehaviorOptions:void 0}:Kt,_n=ma(!1,Mr.Redirect);return _n.url=mt,_n.navigationBehaviorOptions=Yt,_n}function ma(_t,Kt){const mt=new Error(`NavigationCancelingError: ${_t||""}`);return mt[Xs]=!0,mt.cancellationCode=Kt,mt}function Oa(_t){return!!_t&&_t[Xs]}let Ms=(()=>{class _t{static{this.\u0275fac=function(Yt){return new(Yt||_t)}}static{this.\u0275cmp=l.VBU({type:_t,selectors:[["ng-component"]],standalone:!0,features:[l.aNF],decls:1,vars:0,template:function(Yt,_n){1&Yt&&l.nrm(0,"router-outlet")},dependencies:[Qo],encapsulation:2})}}return _t})();function cs(_t){const Kt=_t.children&&_t.children.map(cs),mt=Kt?{..._t,children:Kt}:{..._t};return!mt.component&&!mt.loadComponent&&(Kt||mt.loadChildren)&&mt.outlet&&mt.outlet!==Ce&&(mt.component=Ms),mt}function $s(_t){return _t.outlet||Ce}function Hn(_t){if(!_t)return null;if(_t.routeConfig?._injector)return _t.routeConfig._injector;for(let Kt=_t.parent;Kt;Kt=Kt.parent){const mt=Kt.routeConfig;if(mt?._loadedInjector)return mt._loadedInjector;if(mt?._injector)return mt._injector}return null}class la{constructor(Kt,mt,Yt,_n,de){this.routeReuseStrategy=Kt,this.futureState=mt,this.currState=Yt,this.forwardEvent=_n,this.inputBindingEnabled=de}activate(Kt){const mt=this.futureState._root,Yt=this.currState?this.currState._root:null;this.deactivateChildRoutes(mt,Yt,Kt),Tr(this.futureState.root),this.activateChildRoutes(mt,Yt,Kt)}deactivateChildRoutes(Kt,mt,Yt){const _n=Li(mt);Kt.children.forEach(de=>{const q=de.value.outlet;this.deactivateRoutes(de,_n[q],Yt),delete _n[q]}),Object.values(_n).forEach(de=>{this.deactivateRouteAndItsChildren(de,Yt)})}deactivateRoutes(Kt,mt,Yt){const _n=Kt.value,de=mt?mt.value:null;if(_n===de)if(_n.component){const q=Yt.getContext(_n.outlet);q&&this.deactivateChildRoutes(Kt,mt,q.children)}else this.deactivateChildRoutes(Kt,mt,Yt);else de&&this.deactivateRouteAndItsChildren(mt,Yt)}deactivateRouteAndItsChildren(Kt,mt){Kt.value.component&&this.routeReuseStrategy.shouldDetach(Kt.value.snapshot)?this.detachAndStoreRouteSubtree(Kt,mt):this.deactivateRouteAndOutlet(Kt,mt)}detachAndStoreRouteSubtree(Kt,mt){const Yt=mt.getContext(Kt.value.outlet),_n=Yt&&Kt.value.component?Yt.children:mt,de=Li(Kt);for(const q of Object.values(de))this.deactivateRouteAndItsChildren(q,_n);if(Yt&&Yt.outlet){const q=Yt.outlet.detach(),j=Yt.children.onOutletDeactivated();this.routeReuseStrategy.store(Kt.value.snapshot,{componentRef:q,route:Kt,contexts:j})}}deactivateRouteAndOutlet(Kt,mt){const Yt=mt.getContext(Kt.value.outlet),_n=Yt&&Kt.value.component?Yt.children:mt,de=Li(Kt);for(const q of Object.values(de))this.deactivateRouteAndItsChildren(q,_n);Yt&&(Yt.outlet&&(Yt.outlet.deactivate(),Yt.children.onOutletDeactivated()),Yt.attachRef=null,Yt.route=null)}activateChildRoutes(Kt,mt,Yt){const _n=Li(mt);Kt.children.forEach(de=>{this.activateRoutes(de,_n[de.value.outlet],Yt),this.forwardEvent(new Zr(de.value.snapshot))}),Kt.children.length&&this.forwardEvent(new no(Kt.value.snapshot))}activateRoutes(Kt,mt,Yt){const _n=Kt.value,de=mt?mt.value:null;if(Tr(_n),_n===de)if(_n.component){const q=Yt.getOrCreateContext(_n.outlet);this.activateChildRoutes(Kt,mt,q.children)}else this.activateChildRoutes(Kt,mt,Yt);else if(_n.component){const q=Yt.getOrCreateContext(_n.outlet);if(this.routeReuseStrategy.shouldAttach(_n.snapshot)){const j=this.routeReuseStrategy.retrieve(_n.snapshot);this.routeReuseStrategy.store(_n.snapshot,null),q.children.onOutletReAttached(j.contexts),q.attachRef=j.componentRef,q.route=j.route.value,q.outlet&&q.outlet.attach(j.componentRef,j.route.value),Tr(j.route.value),this.activateChildRoutes(Kt,null,q.children)}else{const j=Hn(_n.snapshot);q.attachRef=null,q.route=_n,q.injector=j,q.outlet&&q.outlet.activateWith(_n,q.injector),this.activateChildRoutes(Kt,null,q.children)}}else this.activateChildRoutes(Kt,null,Yt)}}class ra{constructor(Kt){this.path=Kt,this.route=this.path[this.path.length-1]}}class $o{constructor(Kt,mt){this.component=Kt,this.route=mt}}function rs(_t,Kt,mt){const Yt=_t._root;return Bs(Yt,Kt?Kt._root:null,mt,[Yt.value])}function Yo(_t,Kt){const mt=Symbol(),Yt=Kt.get(_t,mt);return Yt===mt?"function"!=typeof _t||(0,l.LfX)(_t)?Kt.get(_t):_t:Yt}function Bs(_t,Kt,mt,Yt,_n={canDeactivateChecks:[],canActivateChecks:[]}){const de=Li(Kt);return _t.children.forEach(q=>{(function Va(_t,Kt,mt,Yt,_n={canDeactivateChecks:[],canActivateChecks:[]}){const de=_t.value,q=Kt?Kt.value:null,j=mt?mt.getContext(_t.value.outlet):null;if(q&&de.routeConfig===q.routeConfig){const te=function La(_t,Kt,mt){if("function"==typeof mt)return mt(_t,Kt);switch(mt){case"pathParamsChange":return!at(_t.url,Kt.url);case"pathParamsOrQueryParamsChange":return!at(_t.url,Kt.url)||!A(_t.queryParams,Kt.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Jr(_t,Kt)||!A(_t.queryParams,Kt.queryParams);default:return!Jr(_t,Kt)}}(q,de,de.routeConfig.runGuardsAndResolvers);te?_n.canActivateChecks.push(new ra(Yt)):(de.data=q.data,de._resolvedData=q._resolvedData),Bs(_t,Kt,de.component?j?j.children:null:mt,Yt,_n),te&&j&&j.outlet&&j.outlet.isActivated&&_n.canDeactivateChecks.push(new $o(j.outlet.component,q))}else q&&qs(Kt,j,_n),_n.canActivateChecks.push(new ra(Yt)),Bs(_t,null,de.component?j?j.children:null:mt,Yt,_n)})(q,de[q.value.outlet],mt,Yt.concat([q.value]),_n),delete de[q.value.outlet]}),Object.entries(de).forEach(([q,j])=>qs(j,mt.getContext(q),_n)),_n}function qs(_t,Kt,mt){const Yt=Li(_t),_n=_t.value;Object.entries(Yt).forEach(([de,q])=>{qs(q,_n.component?Kt?Kt.children.getContext(de):null:Kt,mt)}),mt.canDeactivateChecks.push(new $o(_n.component&&Kt&&Kt.outlet&&Kt.outlet.isActivated?Kt.outlet.component:null,_n))}function ks(_t){return"function"==typeof _t}function tn(_t){return _t instanceof O.G||"EmptyError"===_t?.name}const In=Symbol("INITIAL_VALUE");function Ai(){return(0,U.n)(_t=>(0,f.zV)(_t.map(Kt=>Kt.pipe((0,V.s)(1),(0,T.Z)(In)))).pipe((0,I.T)(Kt=>{for(const mt of Kt)if(!0!==mt){if(mt===In)return In;if(!1===mt||mt instanceof Qe)return mt}return!0}),(0,N.p)(Kt=>Kt!==In),(0,V.s)(1)))}function Wr(_t){return(0,i.F)((0,R.M)(Kt=>{if(Fi(Kt))throw ys(0,Kt)}),(0,I.T)(Kt=>!0===Kt))}class Ir{constructor(Kt){this.segmentGroup=Kt||null}}class Cr extends Error{constructor(Kt){super(),this.urlTree=Kt}}function Po(_t){return(0,r.$)(new Ir(_t))}class Zo{constructor(Kt,mt){this.urlSerializer=Kt,this.urlTree=mt}lineralizeSegments(Kt,mt){let Yt=[],_n=mt.root;for(;;){if(Yt=Yt.concat(_n.segments),0===_n.numberOfChildren)return(0,S.of)(Yt);if(_n.numberOfChildren>1||!_n.children[Ce])return(0,r.$)(new l.wOt(4e3,!1));_n=_n.children[Ce]}}applyRedirectCommands(Kt,mt,Yt){const _n=this.applyRedirectCreateUrlTree(mt,this.urlSerializer.parse(mt),Kt,Yt);if(mt.startsWith("/"))throw new Cr(_n);return _n}applyRedirectCreateUrlTree(Kt,mt,Yt,_n){const de=this.createSegmentGroup(Kt,mt.root,Yt,_n);return new Qe(de,this.createQueryParams(mt.queryParams,this.urlTree.queryParams),mt.fragment)}createQueryParams(Kt,mt){const Yt={};return Object.entries(Kt).forEach(([_n,de])=>{if("string"==typeof de&&de.startsWith(":")){const j=de.substring(1);Yt[_n]=mt[j]}else Yt[_n]=de}),Yt}createSegmentGroup(Kt,mt,Yt,_n){const de=this.createSegments(Kt,mt.segments,Yt,_n);let q={};return Object.entries(mt.children).forEach(([j,te])=>{q[j]=this.createSegmentGroup(Kt,te,Yt,_n)}),new Ve(de,q)}createSegments(Kt,mt,Yt,_n){return mt.map(de=>de.path.startsWith(":")?this.findPosParam(Kt,de,_n):this.findOrReturn(de,Yt))}findPosParam(Kt,mt,Yt){const _n=Yt[mt.path.substring(1)];if(!_n)throw new l.wOt(4001,!1);return _n}findOrReturn(Kt,mt){let Yt=0;for(const _n of mt){if(_n.path===Kt.path)return mt.splice(Yt),_n;Yt++}return Kt}}const Ha={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function vo(_t,Kt,mt,Yt,_n){const de=ta(_t,Kt,mt);return de.matched?(Yt=function Ua(_t,Kt){return _t.providers&&!_t._injector&&(_t._injector=(0,l.Ol2)(_t.providers,Kt,`Route: ${_t.path}`)),_t._injector??Kt}(Kt,Yt),function ao(_t,Kt,mt,Yt){const _n=Kt.canMatch;if(!_n||0===_n.length)return(0,S.of)(!0);const de=_n.map(q=>{const j=Yo(q,_t);return W(function Tn(_t){return _t&&ks(_t.canMatch)}(j)?j.canMatch(Kt,mt):(0,l.N4e)(_t,()=>j(Kt,mt)))});return(0,S.of)(de).pipe(Ai(),Wr())}(Yt,Kt,mt).pipe((0,I.T)(q=>!0===q?de:{...Ha}))):(0,S.of)(de)}function ta(_t,Kt,mt){if("**"===Kt.path)return function tl(_t){return{matched:!0,parameters:_t.length>0?G(_t).parameters:{},consumedSegments:_t,remainingSegments:[],positionalParamSegments:{}}}(mt);if(""===Kt.path)return"full"===Kt.pathMatch&&(_t.hasChildren()||mt.length>0)?{...Ha}:{matched:!0,consumedSegments:[],remainingSegments:mt,parameters:{},positionalParamSegments:{}};const _n=(Kt.matcher||Me)(mt,_t,Kt);if(!_n)return{...Ha};const de={};Object.entries(_n.posParams??{}).forEach(([j,te])=>{de[j]=te.path});const q=_n.consumed.length>0?{...de,..._n.consumed[_n.consumed.length-1].parameters}:de;return{matched:!0,consumedSegments:_n.consumed,remainingSegments:mt.slice(_n.consumed.length),parameters:q,positionalParamSegments:_n.posParams??{}}}function Ie(_t,Kt,mt,Yt){return mt.length>0&&function Ns(_t,Kt,mt){return mt.some(Yt=>ja(_t,Kt,Yt)&&$s(Yt)!==Ce)}(_t,mt,Yt)?{segmentGroup:new Ve(Kt,Ls(Yt,new Ve(mt,_t.children))),slicedSegments:[]}:0===mt.length&&function Ps(_t,Kt,mt){return mt.some(Yt=>ja(_t,Kt,Yt))}(_t,mt,Yt)?{segmentGroup:new Ve(_t.segments,Ei(_t,mt,Yt,_t.children)),slicedSegments:mt}:{segmentGroup:new Ve(_t.segments,_t.children),slicedSegments:mt}}function Ei(_t,Kt,mt,Yt){const _n={};for(const de of mt)if(ja(_t,Kt,de)&&!Yt[$s(de)]){const q=new Ve([],{});_n[$s(de)]=q}return{...Yt,..._n}}function Ls(_t,Kt){const mt={};mt[Ce]=Kt;for(const Yt of _t)if(""===Yt.path&&$s(Yt)!==Ce){const _n=new Ve([],{});mt[$s(Yt)]=_n}return mt}function ja(_t,Kt,mt){return(!(_t.hasChildren()||Kt.length>0)||"full"!==mt.pathMatch)&&""===mt.path}class Ea{}class zi{constructor(Kt,mt,Yt,_n,de,q,j){this.injector=Kt,this.configLoader=mt,this.rootComponentType=Yt,this.config=_n,this.urlTree=de,this.paramsInheritanceStrategy=q,this.urlSerializer=j,this.applyRedirects=new Zo(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(Kt){return new l.wOt(4002,`'${Kt.segmentGroup}'`)}recognize(){const Kt=Ie(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(Kt).pipe((0,I.T)(mt=>{const Yt=new Ut([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ce,this.rootComponentType,null,{}),_n=new Ti(Yt,mt),de=new qn("",_n),q=function bt(_t,Kt,mt=null,Yt=null){return Pt(bn(_t),Kt,mt,Yt)}(Yt,[],this.urlTree.queryParams,this.urlTree.fragment);return q.queryParams=this.urlTree.queryParams,de.url=this.urlSerializer.serialize(q),this.inheritParamsAndData(de._root,null),{state:de,tree:q}}))}match(Kt){return this.processSegmentGroup(this.injector,this.config,Kt,Ce).pipe((0,B.W)(Yt=>{if(Yt instanceof Cr)return this.urlTree=Yt.urlTree,this.match(Yt.urlTree.root);throw Yt instanceof Ir?this.noMatchError(Yt):Yt}))}inheritParamsAndData(Kt,mt){const Yt=Kt.value,_n=rr(Yt,mt,this.paramsInheritanceStrategy);Yt.params=Object.freeze(_n.params),Yt.data=Object.freeze(_n.data),Kt.children.forEach(de=>this.inheritParamsAndData(de,Yt))}processSegmentGroup(Kt,mt,Yt,_n){return 0===Yt.segments.length&&Yt.hasChildren()?this.processChildren(Kt,mt,Yt):this.processSegment(Kt,mt,Yt,Yt.segments,_n,!0).pipe((0,I.T)(de=>de instanceof Ti?[de]:[]))}processChildren(Kt,mt,Yt){const _n=[];for(const de of Object.keys(Yt.children))"primary"===de?_n.unshift(de):_n.push(de);return(0,v.H)(_n).pipe((0,g.H)(de=>{const q=Yt.children[de],j=function Vo(_t,Kt){const mt=_t.filter(Yt=>$s(Yt)===Kt);return mt.push(..._t.filter(Yt=>$s(Yt)!==Kt)),mt}(mt,de);return this.processSegmentGroup(Kt,j,q,de)}),(0,X.S)((de,q)=>(de.push(...q),de)),(0,H.U)(null),(0,J.H)(),(0,L.ZZ)(de=>{if(null===de)return Po(Yt);const q=je(de);return function mr(_t){_t.sort((Kt,mt)=>Kt.value.outlet===Ce?-1:mt.value.outlet===Ce?1:Kt.value.outlet.localeCompare(mt.value.outlet))}(q),(0,S.of)(q)}))}processSegment(Kt,mt,Yt,_n,de,q){return(0,v.H)(mt).pipe((0,g.H)(j=>this.processSegmentAgainstRoute(j._injector??Kt,mt,j,Yt,_n,de,q).pipe((0,B.W)(te=>{if(te instanceof Ir)return(0,S.of)(null);throw te}))),(0,E.$)(j=>!!j),(0,B.W)(j=>{if(tn(j))return function Wa(_t,Kt,mt){return 0===Kt.length&&!_t.children[mt]}(Yt,_n,de)?(0,S.of)(new Ea):Po(Yt);throw j}))}processSegmentAgainstRoute(Kt,mt,Yt,_n,de,q,j){return function Ja(_t,Kt,mt,Yt){return!!($s(_t)===Yt||Yt!==Ce&&ja(Kt,mt,_t))&&ta(Kt,_t,mt).matched}(Yt,_n,de,q)?void 0===Yt.redirectTo?this.matchSegmentAgainstRoute(Kt,_n,Yt,de,q):this.allowRedirects&&j?this.expandSegmentAgainstRouteUsingRedirect(Kt,_n,mt,Yt,de,q):Po(_n):Po(_n)}expandSegmentAgainstRouteUsingRedirect(Kt,mt,Yt,_n,de,q){const{matched:j,consumedSegments:te,positionalParamSegments:fe,remainingSegments:Ne}=ta(mt,_n,de);if(!j)return Po(mt);_n.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Ye=this.applyRedirects.applyRedirectCommands(te,_n.redirectTo,fe);return this.applyRedirects.lineralizeSegments(_n,Ye).pipe((0,L.ZZ)(gt=>this.processSegment(Kt,Yt,mt,gt.concat(Ne),q,!1)))}matchSegmentAgainstRoute(Kt,mt,Yt,_n,de){const q=vo(mt,Yt,_n,Kt);return"**"===Yt.path&&(mt.children={}),q.pipe((0,U.n)(j=>j.matched?this.getChildConfig(Kt=Yt._injector??Kt,Yt,_n).pipe((0,U.n)(({routes:te})=>{const fe=Yt._loadedInjector??Kt,{consumedSegments:Ne,remainingSegments:Ye,parameters:gt}=j,Nt=new Ut(Ne,gt,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function un(_t){return _t.data||{}}(Yt),$s(Yt),Yt.component??Yt._loadedComponent??null,Yt,function wn(_t){return _t.resolve||{}}(Yt)),{segmentGroup:on,slicedSegments:ct}=Ie(mt,Ne,Ye,te);if(0===ct.length&&on.hasChildren())return this.processChildren(fe,te,on).pipe((0,I.T)(pe=>null===pe?null:new Ti(Nt,pe)));if(0===te.length&&0===ct.length)return(0,S.of)(new Ti(Nt,[]));const De=$s(Yt)===de;return this.processSegment(fe,te,on,ct,De?Ce:de,!0).pipe((0,I.T)(pe=>new Ti(Nt,pe instanceof Ti?[pe]:[])))})):Po(mt)))}getChildConfig(Kt,mt,Yt){return mt.children?(0,S.of)({routes:mt.children,injector:Kt}):mt.loadChildren?void 0!==mt._loadedRoutes?(0,S.of)({routes:mt._loadedRoutes,injector:mt._loadedInjector}):function Sr(_t,Kt,mt,Yt){const _n=Kt.canLoad;if(void 0===_n||0===_n.length)return(0,S.of)(!0);const de=_n.map(q=>{const j=Yo(q,_t);return W(function ts(_t){return _t&&ks(_t.canLoad)}(j)?j.canLoad(Kt,mt):(0,l.N4e)(_t,()=>j(Kt,mt)))});return(0,S.of)(de).pipe(Ai(),Wr())}(Kt,mt,Yt).pipe((0,L.ZZ)(_n=>_n?this.configLoader.loadChildren(Kt,mt).pipe((0,R.M)(de=>{mt._loadedRoutes=de.routes,mt._loadedInjector=de.injector})):function ca(_t){return(0,r.$)(ma(!1,Mr.GuardRejected))}())):(0,S.of)({routes:[],injector:Kt})}}function lr(_t){const Kt=_t.value.routeConfig;return Kt&&""===Kt.path}function je(_t){const Kt=[],mt=new Set;for(const Yt of _t){if(!lr(Yt)){Kt.push(Yt);continue}const _n=Kt.find(de=>Yt.value.routeConfig===de.value.routeConfig);void 0!==_n?(_n.children.push(...Yt.children),mt.add(_n)):Kt.push(Yt)}for(const Yt of mt){const _n=je(Yt.children);Kt.push(new Ti(Yt.value,_n))}return Kt.filter(Yt=>!mt.has(Yt))}function Si(_t){const Kt=_t.children.map(mt=>Si(mt)).flat();return[_t,...Kt]}function Er(_t){return(0,U.n)(Kt=>{const mt=_t(Kt);return mt?(0,v.H)(mt).pipe((0,I.T)(()=>Kt)):(0,S.of)(Kt)})}let po=(()=>{class _t{buildTitle(mt){let Yt,_n=mt.root;for(;void 0!==_n;)Yt=this.getResolvedTitleForRoute(_n)??Yt,_n=_n.children.find(de=>de.outlet===Ce);return Yt}getResolvedTitleForRoute(mt){return mt.data[Be]}static{this.\u0275fac=function(Yt){return new(Yt||_t)}}static{this.\u0275prov=l.jDH({token:_t,factory:()=>(0,l.WQX)(To),providedIn:"root"})}}return _t})(),To=(()=>{class _t extends po{constructor(mt){super(),this.title=mt}updateTitle(mt){const Yt=this.buildTitle(mt);void 0!==Yt&&this.title.setTitle(Yt)}static{this.\u0275fac=function(Yt){return new(Yt||_t)(l.KVO(Se.hE))}}static{this.\u0275prov=l.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}}return _t})();const rn=new l.nKC("",{providedIn:"root",factory:()=>({})}),Di=new l.nKC("");let Te=(()=>{class _t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,l.WQX)(l.Ql9)}loadComponent(mt){if(this.componentLoaders.get(mt))return this.componentLoaders.get(mt);if(mt._loadedComponent)return(0,S.of)(mt._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(mt);const Yt=W(mt.loadComponent()).pipe((0,I.T)(ei),(0,R.M)(de=>{this.onLoadEndListener&&this.onLoadEndListener(mt),mt._loadedComponent=de}),(0,ve.j)(()=>{this.componentLoaders.delete(mt)})),_n=new c.G(Yt,()=>new m.B7).pipe((0,ue.B)());return this.componentLoaders.set(mt,_n),_n}loadChildren(mt,Yt){if(this.childrenLoaders.get(Yt))return this.childrenLoaders.get(Yt);if(Yt._loadedRoutes)return(0,S.of)({routes:Yt._loadedRoutes,injector:Yt._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Yt);const de=function Jt(_t,Kt,mt,Yt){return W(_t.loadChildren()).pipe((0,I.T)(ei),(0,L.ZZ)(_n=>_n instanceof l.Co$||Array.isArray(_n)?(0,S.of)(_n):(0,v.H)(Kt.compileModuleAsync(_n))),(0,I.T)(_n=>{Yt&&Yt(_t);let de,q,j=!1;return Array.isArray(_n)?(q=_n,!0):(de=_n.create(mt).injector,q=de.get(Di,[],{optional:!0,self:!0}).flat()),{routes:q.map(cs),injector:de}}))}(Yt,this.compiler,mt,this.onLoadEndListener).pipe((0,ve.j)(()=>{this.childrenLoaders.delete(Yt)})),q=new c.G(de,()=>new m.B7).pipe((0,ue.B)());return this.childrenLoaders.set(Yt,q),q}static{this.\u0275fac=function(Yt){return new(Yt||_t)}}static{this.\u0275prov=l.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}}return _t})();function ei(_t){return function Rt(_t){return _t&&"object"==typeof _t&&"default"in _t}(_t)?_t.default:_t}let tr=(()=>{class _t{static{this.\u0275fac=function(Yt){return new(Yt||_t)}}static{this.\u0275prov=l.jDH({token:_t,factory:()=>(0,l.WQX)(Ur),providedIn:"root"})}}return _t})(),Ur=(()=>{class _t{shouldProcessUrl(mt){return!0}extract(mt){return mt}merge(mt,Yt){return mt}static{this.\u0275fac=function(Yt){return new(Yt||_t)}}static{this.\u0275prov=l.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}}return _t})();const lo=new l.nKC(""),wo=new l.nKC("");function Lr(_t,Kt,mt){const Yt=_t.get(wo),_n=_t.get(D.qQ);return _t.get(l.SKi).runOutsideAngular(()=>{if(!_n.startViewTransition||Yt.skipNextTransition)return Yt.skipNextTransition=!1,new Promise(fe=>setTimeout(fe));let de;const q=new Promise(fe=>{de=fe}),j=_n.startViewTransition(()=>(de(),function ns(_t){return new Promise(Kt=>{(0,l.mal)(Kt,{injector:_t})})}(_t))),{onViewTransitionCreated:te}=Yt;return te&&(0,l.N4e)(_t,()=>te({transition:j,from:Kt,to:mt})),q})}let Io=(()=>{class _t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new m.B7,this.transitionAbortSubject=new m.B7,this.configLoader=(0,l.WQX)(Te),this.environmentInjector=(0,l.WQX)(l.uvJ),this.urlSerializer=(0,l.WQX)(We),this.rootContexts=(0,l.WQX)(ot),this.location=(0,l.WQX)(D.aZ),this.inputBindingEnabled=null!==(0,l.WQX)(Xr,{optional:!0}),this.titleStrategy=(0,l.WQX)(po),this.options=(0,l.WQX)(rn,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,l.WQX)(tr),this.createViewTransition=(0,l.WQX)(lo,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,S.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=_n=>this.events.next(new ho(_n)),this.configLoader.onLoadStartListener=_n=>this.events.next(new jr(_n))}complete(){this.transitions?.complete()}handleNavigationRequest(mt){const Yt=++this.navigationId;this.transitions?.next({...this.transitions.value,...mt,id:Yt})}setupNavigations(mt,Yt,_n){return this.transitions=new y.t({id:0,currentUrlTree:Yt,currentRawUrl:Yt,extractedUrl:this.urlHandlingStrategy.extract(Yt),urlAfterRedirects:this.urlHandlingStrategy.extract(Yt),rawUrl:Yt,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Gn,restoredState:null,currentSnapshot:_n.snapshot,targetSnapshot:null,currentRouterState:_n,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,N.p)(de=>0!==de.id),(0,I.T)(de=>({...de,extractedUrl:this.urlHandlingStrategy.extract(de.rawUrl)})),(0,U.n)(de=>{let q=!1,j=!1;return(0,S.of)(de).pipe((0,U.n)(te=>{if(this.navigationId>de.id)return this.cancelNavigationTransition(de,"",Mr.SupersededByNewNavigation),a.w;this.currentTransition=de,this.currentNavigation={id:te.id,initialUrl:te.rawUrl,extractedUrl:te.extractedUrl,trigger:te.source,extras:te.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const fe=!mt.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!fe&&"reload"!==(te.extras.onSameUrlNavigation??mt.onSameUrlNavigation)){const Ye="";return this.events.next(new bo(te.id,this.urlSerializer.serialize(te.rawUrl),Ye,$r.IgnoredSameUrlNavigation)),te.resolve(null),a.w}if(this.urlHandlingStrategy.shouldProcessUrl(te.rawUrl))return(0,S.of)(te).pipe((0,U.n)(Ye=>{const gt=this.transitions?.getValue();return this.events.next(new bi(Ye.id,this.urlSerializer.serialize(Ye.extractedUrl),Ye.source,Ye.restoredState)),gt!==this.transitions?.getValue()?a.w:Promise.resolve(Ye)}),function zn(_t,Kt,mt,Yt,_n,de){return(0,L.ZZ)(q=>function Ks(_t,Kt,mt,Yt,_n,de,q="emptyOnly"){return new zi(_t,Kt,mt,Yt,_n,q,de).recognize()}(_t,Kt,mt,Yt,q.extractedUrl,_n,de).pipe((0,I.T)(({state:j,tree:te})=>({...q,targetSnapshot:j,urlAfterRedirects:te}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,mt.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,R.M)(Ye=>{de.targetSnapshot=Ye.targetSnapshot,de.urlAfterRedirects=Ye.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Ye.urlAfterRedirects};const gt=new gi(Ye.id,this.urlSerializer.serialize(Ye.extractedUrl),this.urlSerializer.serialize(Ye.urlAfterRedirects),Ye.targetSnapshot);this.events.next(gt)}));if(fe&&this.urlHandlingStrategy.shouldProcessUrl(te.currentRawUrl)){const{id:Ye,extractedUrl:gt,source:Nt,restoredState:on,extras:ct}=te,De=new bi(Ye,this.urlSerializer.serialize(gt),Nt,on);this.events.next(De);const pe=Fr(this.rootComponentType).snapshot;return this.currentTransition=de={...te,targetSnapshot:pe,urlAfterRedirects:gt,extras:{...ct,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=gt,(0,S.of)(de)}{const Ye="";return this.events.next(new bo(te.id,this.urlSerializer.serialize(te.extractedUrl),Ye,$r.IgnoredByUrlHandlingStrategy)),te.resolve(null),a.w}}),(0,R.M)(te=>{const fe=new Pi(te.id,this.urlSerializer.serialize(te.extractedUrl),this.urlSerializer.serialize(te.urlAfterRedirects),te.targetSnapshot);this.events.next(fe)}),(0,I.T)(te=>(this.currentTransition=de={...te,guards:rs(te.targetSnapshot,te.currentSnapshot,this.rootContexts)},de)),function So(_t,Kt){return(0,L.ZZ)(mt=>{const{targetSnapshot:Yt,currentSnapshot:_n,guards:{canActivateChecks:de,canDeactivateChecks:q}}=mt;return 0===q.length&&0===de.length?(0,S.of)({...mt,guardsResult:!0}):function Rn(_t,Kt,mt,Yt){return(0,v.H)(_t).pipe((0,L.ZZ)(_n=>function Gi(_t,Kt,mt,Yt,_n){const de=Kt&&Kt.routeConfig?Kt.routeConfig.canDeactivate:null;if(!de||0===de.length)return(0,S.of)(!0);const q=de.map(j=>{const te=Hn(Kt)??_n,fe=Yo(j,te);return W(function Mn(_t){return _t&&ks(_t.canDeactivate)}(fe)?fe.canDeactivate(_t,Kt,mt,Yt):(0,l.N4e)(te,()=>fe(_t,Kt,mt,Yt))).pipe((0,E.$)())});return(0,S.of)(q).pipe(Ai())}(_n.component,_n.route,mt,Kt,Yt)),(0,E.$)(_n=>!0!==_n,!0))}(q,Yt,_n,_t).pipe((0,L.ZZ)(j=>j&&function ea(_t){return"boolean"==typeof _t}(j)?function Xn(_t,Kt,mt,Yt){return(0,v.H)(Kt).pipe((0,g.H)(_n=>(0,P.x)(function st(_t,Kt){return null!==_t&&Kt&&Kt(new Fo(_t)),(0,S.of)(!0)}(_n.route.parent,Yt),function ae(_t,Kt){return null!==_t&&Kt&&Kt(new yo(_t)),(0,S.of)(!0)}(_n.route,Yt),function $n(_t,Kt,mt){const Yt=Kt[Kt.length-1],de=Kt.slice(0,Kt.length-1).reverse().map(q=>function oa(_t){const Kt=_t.routeConfig?_t.routeConfig.canActivateChild:null;return Kt&&0!==Kt.length?{node:_t,guards:Kt}:null}(q)).filter(q=>null!==q).map(q=>(0,_.v)(()=>{const j=q.guards.map(te=>{const fe=Hn(q.node)??mt,Ne=Yo(te,fe);return W(function va(_t){return _t&&ks(_t.canActivateChild)}(Ne)?Ne.canActivateChild(Yt,_t):(0,l.N4e)(fe,()=>Ne(Yt,_t))).pipe((0,E.$)())});return(0,S.of)(j).pipe(Ai())}));return(0,S.of)(de).pipe(Ai())}(_t,_n.path,mt),function Ct(_t,Kt,mt){const Yt=Kt.routeConfig?Kt.routeConfig.canActivate:null;if(!Yt||0===Yt.length)return(0,S.of)(!0);const _n=Yt.map(de=>(0,_.v)(()=>{const q=Hn(Kt)??mt,j=Yo(de,q);return W(function $a(_t){return _t&&ks(_t.canActivate)}(j)?j.canActivate(Kt,_t):(0,l.N4e)(q,()=>j(Kt,_t))).pipe((0,E.$)())}));return(0,S.of)(_n).pipe(Ai())}(_t,_n.route,mt))),(0,E.$)(_n=>!0!==_n,!0))}(Yt,de,_t,Kt):(0,S.of)(j)),(0,I.T)(j=>({...mt,guardsResult:j})))})}(this.environmentInjector,te=>this.events.next(te)),(0,R.M)(te=>{if(de.guardsResult=te.guardsResult,Fi(te.guardsResult))throw ys(0,te.guardsResult);const fe=new ji(te.id,this.urlSerializer.serialize(te.extractedUrl),this.urlSerializer.serialize(te.urlAfterRedirects),te.targetSnapshot,!!te.guardsResult);this.events.next(fe)}),(0,N.p)(te=>!!te.guardsResult||(this.cancelNavigationTransition(te,"",Mr.GuardRejected),!1)),Er(te=>{if(te.guards.canActivateChecks.length)return(0,S.of)(te).pipe((0,R.M)(fe=>{const Ne=new Qi(fe.id,this.urlSerializer.serialize(fe.extractedUrl),this.urlSerializer.serialize(fe.urlAfterRedirects),fe.targetSnapshot);this.events.next(Ne)}),(0,U.n)(fe=>{let Ne=!1;return(0,S.of)(fe).pipe(function vi(_t,Kt){return(0,L.ZZ)(mt=>{const{targetSnapshot:Yt,guards:{canActivateChecks:_n}}=mt;if(!_n.length)return(0,S.of)(mt);const de=new Set(_n.map(te=>te.route)),q=new Set;for(const te of de)if(!q.has(te))for(const fe of Si(te))q.add(fe);let j=0;return(0,v.H)(q).pipe((0,g.H)(te=>de.has(te)?function Ri(_t,Kt,mt,Yt){const _n=_t.routeConfig,de=_t._resolve;return void 0!==_n?.title&&!oo(_n)&&(de[Be]=_n.title),function nr(_t,Kt,mt,Yt){const _n=me(_t);if(0===_n.length)return(0,S.of)({});const de={};return(0,v.H)(_n).pipe((0,L.ZZ)(q=>function _r(_t,Kt,mt,Yt){const _n=Hn(Kt)??Yt,de=Yo(_t,_n);return W(de.resolve?de.resolve(Kt,mt):(0,l.N4e)(_n,()=>de(Kt,mt)))}(_t[q],Kt,mt,Yt).pipe((0,E.$)(),(0,R.M)(j=>{de[q]=j}))),(0,re.o)(1),(0,ie.u)(de),(0,B.W)(q=>tn(q)?a.w:(0,r.$)(q)))}(de,_t,Kt,Yt).pipe((0,I.T)(q=>(_t._resolvedData=q,_t.data=rr(_t,_t.parent,mt).resolve,null)))}(te,Yt,_t,Kt):(te.data=rr(te,te.parent,_t).resolve,(0,S.of)(void 0))),(0,R.M)(()=>j++),(0,re.o)(1),(0,L.ZZ)(te=>j===q.size?(0,S.of)(mt):a.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,R.M)({next:()=>Ne=!0,complete:()=>{Ne||this.cancelNavigationTransition(fe,"",Mr.NoDataFromResolver)}}))}),(0,R.M)(fe=>{const Ne=new ar(fe.id,this.urlSerializer.serialize(fe.extractedUrl),this.urlSerializer.serialize(fe.urlAfterRedirects),fe.targetSnapshot);this.events.next(Ne)}))}),Er(te=>{const fe=Ne=>{const Ye=[];Ne.routeConfig?.loadComponent&&!Ne.routeConfig._loadedComponent&&Ye.push(this.configLoader.loadComponent(Ne.routeConfig).pipe((0,R.M)(gt=>{Ne.component=gt}),(0,I.T)(()=>{})));for(const gt of Ne.children)Ye.push(...fe(gt));return Ye};return(0,f.zV)(fe(te.targetSnapshot.root)).pipe((0,H.U)(null),(0,V.s)(1))}),Er(()=>this.afterPreactivation()),(0,U.n)(()=>{const{currentSnapshot:te,targetSnapshot:fe}=de,Ne=this.createViewTransition?.(this.environmentInjector,te.root,fe.root);return Ne?(0,v.H)(Ne).pipe((0,I.T)(()=>de)):(0,S.of)(de)}),(0,I.T)(te=>{const fe=function Ss(_t,Kt,mt){const Yt=kr(_t,Kt._root,mt?mt._root:void 0);return new dr(Yt,Kt)}(mt.routeReuseStrategy,te.targetSnapshot,te.currentRouterState);return this.currentTransition=de={...te,targetRouterState:fe},this.currentNavigation.targetRouterState=fe,de}),(0,R.M)(()=>{this.events.next(new go)}),((_t,Kt,mt,Yt)=>(0,I.T)(_n=>(new la(Kt,_n.targetRouterState,_n.currentRouterState,mt,Yt).activate(_t),_n)))(this.rootContexts,mt.routeReuseStrategy,te=>this.events.next(te),this.inputBindingEnabled),(0,V.s)(1),(0,R.M)({next:te=>{q=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Zi(te.id,this.urlSerializer.serialize(te.extractedUrl),this.urlSerializer.serialize(te.urlAfterRedirects))),this.titleStrategy?.updateTitle(te.targetRouterState.snapshot),te.resolve(!0)},complete:()=>{q=!0}}),(0,se.Q)(this.transitionAbortSubject.pipe((0,R.M)(te=>{throw te}))),(0,ve.j)(()=>{!q&&!j&&this.cancelNavigationTransition(de,"",Mr.SupersededByNewNavigation),this.currentTransition?.id===de.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,B.W)(te=>{if(j=!0,Oa(te))this.events.next(new _o(de.id,this.urlSerializer.serialize(de.extractedUrl),te.message,te.cancellationCode)),function fs(_t){return Oa(_t)&&Fi(_t.url)}(te)?this.events.next(new zo(te.url)):de.resolve(!1);else{this.events.next(new Kn(de.id,this.urlSerializer.serialize(de.extractedUrl),te,de.targetSnapshot??void 0));try{de.resolve(mt.errorHandler(te))}catch(fe){this.options.resolveNavigationPromiseOnError?de.resolve(!1):de.reject(fe)}}return a.w}))}))}cancelNavigationTransition(mt,Yt,_n){const de=new _o(mt.id,this.urlSerializer.serialize(mt.extractedUrl),Yt,_n);this.events.next(de),mt.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static{this.\u0275fac=function(Yt){return new(Yt||_t)}}static{this.\u0275prov=l.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}}return _t})();function da(_t){return _t!==Gn}let _a=(()=>{class _t{static{this.\u0275fac=function(Yt){return new(Yt||_t)}}static{this.\u0275prov=l.jDH({token:_t,factory:()=>(0,l.WQX)(Dn),providedIn:"root"})}}return _t})();class Mt{shouldDetach(Kt){return!1}store(Kt,mt){}shouldAttach(Kt){return!1}retrieve(Kt){return null}shouldReuseRoute(Kt,mt){return Kt.routeConfig===mt.routeConfig}}let Dn=(()=>{class _t extends Mt{static{this.\u0275fac=(()=>{let mt;return function(_n){return(mt||(mt=l.xGo(_t)))(_n||_t)}})()}static{this.\u0275prov=l.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}}return _t})(),qt=(()=>{class _t{static{this.\u0275fac=function(Yt){return new(Yt||_t)}}static{this.\u0275prov=l.jDH({token:_t,factory:()=>(0,l.WQX)(Pn),providedIn:"root"})}}return _t})(),Pn=(()=>{class _t extends qt{constructor(){super(...arguments),this.location=(0,l.WQX)(D.aZ),this.urlSerializer=(0,l.WQX)(We),this.options=(0,l.WQX)(rn,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,l.WQX)(tr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Qe,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Fr(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(mt){return this.location.subscribe(Yt=>{"popstate"===Yt.type&&mt(Yt.url,Yt.state)})}handleRouterEvent(mt,Yt){if(mt instanceof bi)this.stateMemento=this.createStateMemento();else if(mt instanceof bo)this.rawUrlTree=Yt.initialUrl;else if(mt instanceof gi){if("eager"===this.urlUpdateStrategy&&!Yt.extras.skipLocationChange){const _n=this.urlHandlingStrategy.merge(Yt.finalUrl,Yt.initialUrl);this.setBrowserUrl(_n,Yt)}}else mt instanceof go?(this.currentUrlTree=Yt.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(Yt.finalUrl,Yt.initialUrl),this.routerState=Yt.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Yt.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Yt))):mt instanceof _o&&(mt.code===Mr.GuardRejected||mt.code===Mr.NoDataFromResolver)?this.restoreHistory(Yt):mt instanceof Kn?this.restoreHistory(Yt,!0):mt instanceof Zi&&(this.lastSuccessfulId=mt.id,this.currentPageId=this.browserPageId)}setBrowserUrl(mt,Yt){const _n=this.urlSerializer.serialize(mt);if(this.location.isCurrentPathEqualTo(_n)||Yt.extras.replaceUrl){const q={...Yt.extras.state,...this.generateNgRouterState(Yt.id,this.browserPageId)};this.location.replaceState(_n,"",q)}else{const de={...Yt.extras.state,...this.generateNgRouterState(Yt.id,this.browserPageId+1)};this.location.go(_n,"",de)}}restoreHistory(mt,Yt=!1){if("computed"===this.canceledNavigationResolution){const de=this.currentPageId-this.browserPageId;0!==de?this.location.historyGo(de):this.currentUrlTree===mt.finalUrl&&0===de&&(this.resetState(mt),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(Yt&&this.resetState(mt),this.resetUrlToCurrentUrlTree())}resetState(mt){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,mt.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(mt,Yt){return"computed"===this.canceledNavigationResolution?{navigationId:mt,\u0275routerPageId:Yt}:{navigationId:mt}}static{this.\u0275fac=(()=>{let mt;return function(_n){return(mt||(mt=l.xGo(_t)))(_n||_t)}})()}static{this.\u0275prov=l.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}}return _t})();var yi=function(_t){return _t[_t.COMPLETE=0]="COMPLETE",_t[_t.FAILED=1]="FAILED",_t[_t.REDIRECTING=2]="REDIRECTING",_t}(yi||{});function ur(_t,Kt){_t.events.pipe((0,N.p)(mt=>mt instanceof Zi||mt instanceof _o||mt instanceof Kn||mt instanceof bo),(0,I.T)(mt=>mt instanceof Zi||mt instanceof bo?yi.COMPLETE:mt instanceof _o&&(mt.code===Mr.Redirect||mt.code===Mr.SupersededByNewNavigation)?yi.REDIRECTING:yi.FAILED),(0,N.p)(mt=>mt!==yi.REDIRECTING),(0,V.s)(1)).subscribe(()=>{Kt()})}function Pr(_t){throw _t}const uo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},vs={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ss=(()=>{class _t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,l.WQX)(l.H3F),this.stateManager=(0,l.WQX)(qt),this.options=(0,l.WQX)(rn,{optional:!0})||{},this.pendingTasks=(0,l.WQX)(l.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,l.WQX)(Io),this.urlSerializer=(0,l.WQX)(We),this.location=(0,l.WQX)(D.aZ),this.urlHandlingStrategy=(0,l.WQX)(tr),this._events=new m.B7,this.errorHandler=this.options.errorHandler||Pr,this.navigated=!1,this.routeReuseStrategy=(0,l.WQX)(_a),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,l.WQX)(Di,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,l.WQX)(Xr,{optional:!0}),this.eventsSubscription=new M.y,this.isNgZoneEnabled=(0,l.WQX)(l.SKi)instanceof l.SKi&&l.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:mt=>{this.console.warn(mt)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const mt=this.navigationTransitions.events.subscribe(Yt=>{try{const _n=this.navigationTransitions.currentTransition,de=this.navigationTransitions.currentNavigation;if(null!==_n&&null!==de)if(this.stateManager.handleRouterEvent(Yt,de),Yt instanceof _o&&Yt.code!==Mr.Redirect&&Yt.code!==Mr.SupersededByNewNavigation)this.navigated=!0;else if(Yt instanceof Zi)this.navigated=!0;else if(Yt instanceof zo){const q=this.urlHandlingStrategy.merge(Yt.url,_n.currentRawUrl),j={info:_n.extras.info,skipLocationChange:_n.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||da(_n.source)};this.scheduleNavigation(q,Gn,null,j,{resolve:_n.resolve,reject:_n.reject,promise:_n.promise})}(function Ro(_t){return!(_t instanceof go||_t instanceof zo)})(Yt)&&this._events.next(Yt)}catch(_n){this.navigationTransitions.transitionAbortSubject.next(_n)}});this.eventsSubscription.add(mt)}resetRootComponentType(mt){this.routerState.root.component=mt,this.navigationTransitions.rootComponentType=mt}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Gn,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((mt,Yt)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(mt,"popstate",Yt)},0)})}navigateToSyncWithBrowser(mt,Yt,_n){const de={replaceUrl:!0},q=_n?.navigationId?_n:null;if(_n){const te={..._n};delete te.navigationId,delete te.\u0275routerPageId,0!==Object.keys(te).length&&(de.state=te)}const j=this.parseUrl(mt);this.scheduleNavigation(j,Yt,q,de)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(mt){this.config=mt.map(cs),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(mt,Yt={}){const{relativeTo:_n,queryParams:de,fragment:q,queryParamsHandling:j,preserveFragment:te}=Yt,fe=te?this.currentUrlTree.fragment:q;let Ye,Ne=null;switch(j){case"merge":Ne={...this.currentUrlTree.queryParams,...de};break;case"preserve":Ne=this.currentUrlTree.queryParams;break;default:Ne=de||null}null!==Ne&&(Ne=this.removeEmptyProps(Ne));try{Ye=bn(_n?_n.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof mt[0]||!mt[0].startsWith("/"))&&(mt=[]),Ye=this.currentUrlTree.root}return Pt(Ye,mt,Ne,fe??null)}navigateByUrl(mt,Yt={skipLocationChange:!1}){const _n=Fi(mt)?mt:this.parseUrl(mt),de=this.urlHandlingStrategy.merge(_n,this.rawUrlTree);return this.scheduleNavigation(de,Gn,null,Yt)}navigate(mt,Yt={skipLocationChange:!1}){return function Ts(_t){for(let Kt=0;Kt<_t.length;Kt++)if(null==_t[Kt])throw new l.wOt(4008,!1)}(mt),this.navigateByUrl(this.createUrlTree(mt,Yt),Yt)}serializeUrl(mt){return this.urlSerializer.serialize(mt)}parseUrl(mt){try{return this.urlSerializer.parse(mt)}catch{return this.urlSerializer.parse("/")}}isActive(mt,Yt){let _n;if(_n=!0===Yt?{...uo}:!1===Yt?{...vs}:Yt,Fi(mt))return Pe(this.currentUrlTree,mt,_n);const de=this.parseUrl(mt);return Pe(this.currentUrlTree,de,_n)}removeEmptyProps(mt){return Object.entries(mt).reduce((Yt,[_n,de])=>(null!=de&&(Yt[_n]=de),Yt),{})}scheduleNavigation(mt,Yt,_n,de,q){if(this.disposed)return Promise.resolve(!1);let j,te,fe;q?(j=q.resolve,te=q.reject,fe=q.promise):fe=new Promise((Ye,gt)=>{j=Ye,te=gt});const Ne=this.pendingTasks.add();return ur(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Ne))}),this.navigationTransitions.handleNavigationRequest({source:Yt,restoredState:_n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:mt,extras:de,resolve:j,reject:te,promise:fe,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),fe.catch(Ye=>Promise.reject(Ye))}static{this.\u0275fac=function(Yt){return new(Yt||_t)}}static{this.\u0275prov=l.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}}return _t})(),Gs=(()=>{class _t{constructor(mt,Yt,_n,de,q,j){this.router=mt,this.route=Yt,this.tabIndexAttribute=_n,this.renderer=de,this.el=q,this.locationStrategy=j,this.href=null,this.commands=null,this.onChanges=new m.B7,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const te=q.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===te||"area"===te,this.isAnchorElement?this.subscription=mt.events.subscribe(fe=>{fe instanceof Zi&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(mt){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",mt)}ngOnChanges(mt){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(mt){null!=mt?(this.commands=Array.isArray(mt)?mt:[mt],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(mt,Yt,_n,de,q){const j=this.urlTree;return!!(null===j||this.isAnchorElement&&(0!==mt||Yt||_n||de||q||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(j,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const mt=this.urlTree;this.href=null!==mt&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(mt)):null;const Yt=null===this.href?null:(0,l.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",Yt)}applyAttributeValue(mt,Yt){const _n=this.renderer,de=this.el.nativeElement;null!==Yt?_n.setAttribute(de,mt,Yt):_n.removeAttribute(de,mt)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(Yt){return new(Yt||_t)(l.rXU(ss),l.rXU(Vn),l.kS0("tabindex"),l.rXU(l.sFG),l.rXU(l.aKT),l.rXU(D.hb))}}static{this.\u0275dir=l.FsC({type:_t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(Yt,_n){1&Yt&&l.bIt("click",function(q){return _n.onClick(q.button,q.ctrlKey,q.shiftKey,q.altKey,q.metaKey)}),2&Yt&&l.BMQ("target",_n.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[l.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",l.L39],skipLocationChange:[l.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",l.L39],replaceUrl:[l.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",l.L39],routerLink:"routerLink"},standalone:!0,features:[l.GFd,l.OA$]})}}return _t})();class Jo{}let Gr=(()=>{class _t{preload(mt,Yt){return Yt().pipe((0,B.W)(()=>(0,S.of)(null)))}static{this.\u0275fac=function(Yt){return new(Yt||_t)}}static{this.\u0275prov=l.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}}return _t})(),Vs=(()=>{class _t{constructor(mt,Yt,_n,de,q){this.router=mt,this.injector=_n,this.preloadingStrategy=de,this.loader=q}setUpPreloading(){this.subscription=this.router.events.pipe((0,N.p)(mt=>mt instanceof Zi),(0,g.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(mt,Yt){const _n=[];for(const de of Yt){de.providers&&!de._injector&&(de._injector=(0,l.Ol2)(de.providers,mt,`Route: ${de.path}`));const q=de._injector??mt,j=de._loadedInjector??q;(de.loadChildren&&!de._loadedRoutes&&void 0===de.canLoad||de.loadComponent&&!de._loadedComponent)&&_n.push(this.preloadConfig(q,de)),(de.children||de._loadedRoutes)&&_n.push(this.processRoutes(j,de.children??de._loadedRoutes))}return(0,v.H)(_n).pipe((0,Z.U)())}preloadConfig(mt,Yt){return this.preloadingStrategy.preload(Yt,()=>{let _n;_n=Yt.loadChildren&&void 0===Yt.canLoad?this.loader.loadChildren(mt,Yt):(0,S.of)(null);const de=_n.pipe((0,L.ZZ)(q=>null===q?(0,S.of)(void 0):(Yt._loadedRoutes=q.routes,Yt._loadedInjector=q.injector,this.processRoutes(q.injector??mt,q.routes))));if(Yt.loadComponent&&!Yt._loadedComponent){const q=this.loader.loadComponent(Yt);return(0,v.H)([de,q]).pipe((0,Z.U)())}return de})}static{this.\u0275fac=function(Yt){return new(Yt||_t)(l.KVO(ss),l.KVO(l.Ql9),l.KVO(l.uvJ),l.KVO(Jo),l.KVO(Te))}}static{this.\u0275prov=l.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}}return _t})();const Ca=new l.nKC("");let sa=(()=>{class _t{constructor(mt,Yt,_n,de,q={}){this.urlSerializer=mt,this.transitions=Yt,this.viewportScroller=_n,this.zone=de,this.options=q,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,l.WQX)(l.uvJ),q.scrollPositionRestoration||="disabled",q.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(mt=>{mt instanceof bi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=mt.navigationTrigger,this.restoredId=mt.restoredState?mt.restoredState.navigationId:0):mt instanceof Zi?(this.lastId=mt.id,this.scheduleScrollEvent(mt,this.urlSerializer.parse(mt.urlAfterRedirects).fragment)):mt instanceof bo&&mt.code===$r.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(mt,this.urlSerializer.parse(mt.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(mt=>{mt instanceof Yr&&(mt.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(mt.position):mt.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(mt.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(mt,Yt){var _n=this;this.zone.runOutsideAngular((0,n.A)(function*(){yield new Promise(de=>{setTimeout(()=>{de()}),(0,l.mal)(()=>{de()},{injector:_n.environmentInjector})}),_n.zone.run(()=>{_n.transitions.events.next(new Yr(mt,"popstate"===_n.lastSource?_n.store[_n.restoredId]:null,Yt))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(Yt){l.QTQ()}}static{this.\u0275prov=l.jDH({token:_t,factory:_t.\u0275fac})}}return _t})();function jo(_t,Kt){return{\u0275kind:_t,\u0275providers:Kt}}function vl(){const _t=(0,l.WQX)(l.zZn);return Kt=>{const mt=_t.get(l.o8S);if(Kt!==mt.components[0])return;const Yt=_t.get(ss),_n=_t.get(Pl);1===_t.get(Hs)&&Yt.initialNavigation(),_t.get(gl,null,l.$GK.Optional)?.setUpPreloading(),_t.get(Ca,null,l.$GK.Optional)?.init(),Yt.resetRootComponentType(mt.componentTypes[0]),_n.closed||(_n.next(),_n.complete(),_n.unsubscribe())}}const Pl=new l.nKC("",{factory:()=>new m.B7}),Hs=new l.nKC("",{providedIn:"root",factory:()=>1}),gl=new l.nKC("");function _l(_t){return jo(0,[{provide:gl,useExisting:Vs},{provide:Jo,useExisting:_t}])}function ki(_t){return jo(9,[{provide:lo,useValue:Lr},{provide:wo,useValue:{skipNextTransition:!!_t?.skipInitialTransition,..._t}}])}const is=new l.nKC("ROUTER_FORROOT_GUARD"),Os=[D.aZ,{provide:We,useClass:xe},ss,ot,{provide:Vn,useFactory:function il(_t){return _t.routerState.root},deps:[ss]},Te,[]];let Ho=(()=>{class _t{constructor(mt){}static forRoot(mt,Yt){return{ngModule:_t,providers:[Os,[],{provide:Di,multi:!0,useValue:mt},{provide:is,useFactory:ws,deps:[[ss,new l.Xx1,new l.kdw]]},{provide:rn,useValue:Yt||{}},Yt?.useHash?{provide:D.hb,useClass:D.fw}:{provide:D.hb,useClass:D.Sm},{provide:Ca,useFactory:()=>{const _t=(0,l.WQX)(D.Xr),Kt=(0,l.WQX)(l.SKi),mt=(0,l.WQX)(rn),Yt=(0,l.WQX)(Io),_n=(0,l.WQX)(We);return mt.scrollOffset&&_t.setOffset(mt.scrollOffset),new sa(_n,Yt,_t,Kt,mt)}},Yt?.preloadingStrategy?_l(Yt.preloadingStrategy).\u0275providers:[],Yt?.initialNavigation?Nl(Yt):[],Yt?.bindToComponentInputs?jo(8,[Go,{provide:Xr,useExisting:Go}]).\u0275providers:[],Yt?.enableViewTransitions?ki().\u0275providers:[],[{provide:Ka,useFactory:vl},{provide:l.iLQ,multi:!0,useExisting:Ka}]]}}static forChild(mt){return{ngModule:_t,providers:[{provide:Di,multi:!0,useValue:mt}]}}static{this.\u0275fac=function(Yt){return new(Yt||_t)(l.KVO(is,8))}}static{this.\u0275mod=l.$C({type:_t})}static{this.\u0275inj=l.G2t({})}}return _t})();function ws(_t){return"guarded"}function Nl(_t){return["disabled"===_t.initialNavigation?jo(3,[{provide:l.hnV,multi:!0,useFactory:()=>{const Kt=(0,l.WQX)(ss);return()=>{Kt.setUpLocationChangeListener()}}},{provide:Hs,useValue:2}]).\u0275providers:[],"enabledBlocking"===_t.initialNavigation?jo(2,[{provide:Hs,useValue:0},{provide:l.hnV,multi:!0,deps:[l.zZn],useFactory:Kt=>{const mt=Kt.get(D.hj,Promise.resolve());return()=>mt.then(()=>new Promise(Yt=>{const _n=Kt.get(ss),de=Kt.get(Pl);ur(_n,()=>{Yt(!0)}),Kt.get(Io).afterPreactivation=()=>(Yt(!0),de.closed?(0,S.of)(void 0):de),_n.initialNavigation()}))}}]).\u0275providers:[]]}const Ka=new l.nKC("")},96542:(Bt,z,s)=>{"use strict";s.d(z,{D9:()=>re,Mm:()=>J,Sd:()=>V,Wr:()=>r,c$:()=>H,h:()=>ie});var n=s(58527),l=s(43848),d=s(39595),v=s(93181),S=s(69917),y=s(63997),f=s(65706),O=s(55833),P=s(83915),_=s(79539),i=s(72147);class r{}let a=(()=>{class ve extends r{getTranslation(se){return(0,l.of)({})}static \u0275fac=(()=>{let se;return function(Se){return(se||(se=n.xGo(ve)))(Se||ve)}})();static \u0275prov=n.jDH({token:ve,factory:ve.\u0275fac})}return ve})();class c{}let m=(()=>{class ve{handle(se){return se.key}static \u0275fac=function(Z){return new(Z||ve)};static \u0275prov=n.jDH({token:ve,factory:ve.\u0275fac})}return ve})();function M(ve,ue){if(ve===ue)return!0;if(null===ve||null===ue)return!1;if(ve!=ve&&ue!=ue)return!0;let Se,Ce,Be,se=typeof ve;if(se==typeof ue&&"object"==se){if(!Array.isArray(ve)){if(Array.isArray(ue))return!1;for(Ce in Be=Object.create(null),ve){if(!M(ve[Ce],ue[Ce]))return!1;Be[Ce]=!0}for(Ce in ue)if(!(Ce in Be)&&typeof ue[Ce]<"u")return!1;return!0}if(!Array.isArray(ue))return!1;if((Se=ve.length)==ue.length){for(Ce=0;Ce<Se;Ce++)if(!M(ve[Ce],ue[Ce]))return!1;return!0}}return!1}function D(ve){return typeof ve<"u"&&null!==ve}function I(ve){return ve&&"object"==typeof ve&&!Array.isArray(ve)}function U(ve,ue){let se=Object.assign({},ve);return I(ve)&&I(ue)&&Object.keys(ue).forEach(Z=>{I(ue[Z])?Z in ve?se[Z]=U(ve[Z],ue[Z]):Object.assign(se,{[Z]:ue[Z]}):Object.assign(se,{[Z]:ue[Z]})}),se}class V{}let T=(()=>{class ve extends V{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(se,Z){let Se;return Se="string"==typeof se?this.interpolateString(se,Z):"function"==typeof se?this.interpolateFunction(se,Z):se,Se}getValue(se,Z){let Se="string"==typeof Z?Z.split("."):[Z];Z="";do{Z+=Se.shift(),!D(se)||!D(se[Z])||"object"!=typeof se[Z]&&Se.length?Se.length?Z+=".":se=void 0:(se=se[Z],Z="")}while(Se.length);return se}interpolateFunction(se,Z){return se(Z)}interpolateString(se,Z){return Z?se.replace(this.templateMatcher,(Se,Ce)=>{let Be=this.getValue(Z,Ce);return D(Be)?Be:Se}):se}static \u0275fac=(()=>{let se;return function(Se){return(se||(se=n.xGo(ve)))(Se||ve)}})();static \u0275prov=n.jDH({token:ve,factory:ve.\u0275fac})}return ve})();class N{}let L=(()=>{class ve extends N{compile(se,Z){return se}compileTranslations(se,Z){return se}static \u0275fac=(()=>{let se;return function(Se){return(se||(se=n.xGo(ve)))(Se||ve)}})();static \u0275prov=n.jDH({token:ve,factory:ve.\u0275fac})}return ve})();class E{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new n.bkB;onLangChange=new n.bkB;onDefaultLangChange=new n.bkB}const g=new n.nKC("USE_STORE"),R=new n.nKC("USE_DEFAULT_LANG"),B=new n.nKC("DEFAULT_LANGUAGE"),X=new n.nKC("USE_EXTEND");let H=(()=>{class ve{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new n.bkB;_onLangChange=new n.bkB;_onDefaultLangChange=new n.bkB;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(se){this.isolate?this._defaultLang=se:this.store.defaultLang=se}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(se){this.isolate?this._currentLang=se:this.store.currentLang=se}get langs(){return this.isolate?this._langs:this.store.langs}set langs(se){this.isolate?this._langs=se:this.store.langs=se}get translations(){return this.isolate?this._translations:this.store.translations}set translations(se){this.isolate?this._translations=se:this.store.translations=se}constructor(se,Z,Se,Ce,Be,Xe=!0,He=!1,Me=!1,Q){this.store=se,this.currentLoader=Z,this.compiler=Se,this.parser=Ce,this.missingTranslationHandler=Be,this.useDefaultLang=Xe,this.isolate=He,this.extend=Me,Q&&this.setDefaultLang(Q)}setDefaultLang(se){if(se===this.defaultLang)return;let Z=this.retrieveTranslations(se);typeof Z<"u"?(null==this.defaultLang&&(this.defaultLang=se),Z.pipe((0,f.s)(1)).subscribe(Se=>{this.changeDefaultLang(se)})):this.changeDefaultLang(se)}getDefaultLang(){return this.defaultLang}use(se){if(se===this.currentLang)return(0,l.of)(this.translations[se]);let Z=this.retrieveTranslations(se);return typeof Z<"u"?(this.currentLang||(this.currentLang=se),Z.pipe((0,f.s)(1)).subscribe(Se=>{this.changeLang(se)}),Z):(this.changeLang(se),(0,l.of)(this.translations[se]))}retrieveTranslations(se){let Z;return(typeof this.translations[se]>"u"||this.extend)&&(this._translationRequests[se]=this._translationRequests[se]||this.getTranslation(se),Z=this._translationRequests[se]),Z}getTranslation(se){this.pending=!0;const Z=this.currentLoader.getTranslation(se).pipe((0,O.t)(1),(0,f.s)(1));return this.loadingTranslations=Z.pipe((0,P.T)(Se=>this.compiler.compileTranslations(Se,se)),(0,O.t)(1),(0,f.s)(1)),this.loadingTranslations.subscribe({next:Se=>{this.translations[se]=this.extend&&this.translations[se]?{...Se,...this.translations[se]}:Se,this.updateLangs(),this.pending=!1},error:Se=>{this.pending=!1}}),Z}setTranslation(se,Z,Se=!1){Z=this.compiler.compileTranslations(Z,se),this.translations[se]=(Se||this.extend)&&this.translations[se]?U(this.translations[se],Z):Z,this.updateLangs(),this.onTranslationChange.emit({lang:se,translations:this.translations[se]})}getLangs(){return this.langs}addLangs(se){se.forEach(Z=>{-1===this.langs.indexOf(Z)&&this.langs.push(Z)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(se,Z,Se){let Ce;if(Z instanceof Array){let Be={},Xe=!1;for(let He of Z)Be[He]=this.getParsedResult(se,He,Se),(0,d.A)(Be[He])&&(Xe=!0);if(Xe){const He=Z.map(Me=>(0,d.A)(Be[Me])?Be[Me]:(0,l.of)(Be[Me]));return(0,v.p)(He).pipe((0,P.T)(Me=>{let Q={};return Me.forEach((A,me)=>{Q[Z[me]]=A}),Q}))}return Be}if(se&&(Ce=this.parser.interpolate(this.parser.getValue(se,Z),Se)),typeof Ce>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(Ce=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],Z),Se)),typeof Ce>"u"){let Be={key:Z,translateService:this};typeof Se<"u"&&(Be.interpolateParams=Se),Ce=this.missingTranslationHandler.handle(Be)}return typeof Ce<"u"?Ce:Z}get(se,Z){if(!D(se)||!se.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,_.H)(Se=>(Se=this.getParsedResult(Se,se,Z),(0,d.A)(Se)?Se:(0,l.of)(Se))));{let Se=this.getParsedResult(this.translations[this.currentLang],se,Z);return(0,d.A)(Se)?Se:(0,l.of)(Se)}}getStreamOnTranslationChange(se,Z){if(!D(se)||!se.length)throw new Error('Parameter "key" required');return(0,S.x)((0,y.v)(()=>this.get(se,Z)),this.onTranslationChange.pipe((0,i.n)(Se=>{const Ce=this.getParsedResult(Se.translations,se,Z);return"function"==typeof Ce.subscribe?Ce:(0,l.of)(Ce)})))}stream(se,Z){if(!D(se)||!se.length)throw new Error('Parameter "key" required');return(0,S.x)((0,y.v)(()=>this.get(se,Z)),this.onLangChange.pipe((0,i.n)(Se=>{const Ce=this.getParsedResult(Se.translations,se,Z);return(0,d.A)(Ce)?Ce:(0,l.of)(Ce)})))}instant(se,Z){if(!D(se)||!se.length)throw new Error('Parameter "key" required');let Se=this.getParsedResult(this.translations[this.currentLang],se,Z);if((0,d.A)(Se)){if(se instanceof Array){let Ce={};return se.forEach((Be,Xe)=>{Ce[se[Xe]]=se[Xe]}),Ce}return se}return Se}set(se,Z,Se=this.currentLang){this.translations[Se][se]=this.compiler.compile(Z,Se),this.updateLangs(),this.onTranslationChange.emit({lang:Se,translations:this.translations[Se]})}changeLang(se){this.currentLang=se,this.onLangChange.emit({lang:se,translations:this.translations[se]}),null==this.defaultLang&&this.changeDefaultLang(se)}changeDefaultLang(se){this.defaultLang=se,this.onDefaultLangChange.emit({lang:se,translations:this.translations[se]})}reloadLang(se){return this.resetLang(se),this.getTranslation(se)}resetLang(se){this._translationRequests[se]=void 0,this.translations[se]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let se=window.navigator.languages?window.navigator.languages[0]:null;return se=se||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof se>"u"?void 0:(-1!==se.indexOf("-")&&(se=se.split("-")[0]),-1!==se.indexOf("_")&&(se=se.split("_")[0]),se)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let se=window.navigator.languages?window.navigator.languages[0]:null;return se=se||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,se}static \u0275fac=function(Z){return new(Z||ve)(n.KVO(E),n.KVO(r),n.KVO(N),n.KVO(V),n.KVO(c),n.KVO(R),n.KVO(g),n.KVO(X),n.KVO(B))};static \u0275prov=n.jDH({token:ve,factory:ve.\u0275fac})}return ve})(),J=(()=>{class ve{translateService;element;_ref;key;lastParams;currentParams;onLangChangeSub;onDefaultLangChangeSub;onTranslationChangeSub;set translate(se){se&&(this.key=se,this.checkNodes())}set translateParams(se){M(this.currentParams,se)||(this.currentParams=se,this.checkNodes(!0))}constructor(se,Z,Se){this.translateService=se,this.element=Z,this._ref=Se,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(Ce=>{Ce.lang===this.translateService.currentLang&&this.checkNodes(!0,Ce.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(Ce=>{this.checkNodes(!0,Ce.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(Ce=>{this.checkNodes(!0)}))}ngAfterViewChecked(){this.checkNodes()}checkNodes(se=!1,Z){let Se=this.element.nativeElement.childNodes;Se.length||(this.setContent(this.element.nativeElement,this.key),Se=this.element.nativeElement.childNodes);for(let Ce=0;Ce<Se.length;++Ce){let Be=Se[Ce];if(3===Be.nodeType){let Xe;if(se&&(Be.lastKey=null),D(Be.lookupKey))Xe=Be.lookupKey;else if(this.key)Xe=this.key;else{let He=this.getContent(Be),Me=He.trim();Me.length&&(Be.lookupKey=Me,He!==Be.currentValue?(Xe=Me,Be.originalContent=He||Be.originalContent):Be.originalContent?Xe=Be.originalContent.trim():He!==Be.currentValue&&(Xe=Me,Be.originalContent=He||Be.originalContent))}this.updateValue(Xe,Be,Z)}}}updateValue(se,Z,Se){if(se){if(Z.lastKey===se&&this.lastParams===this.currentParams)return;this.lastParams=this.currentParams;let Ce=Be=>{Be!==se&&(Z.lastKey=se),Z.originalContent||(Z.originalContent=this.getContent(Z)),Z.currentValue=D(Be)?Be:Z.originalContent||se,this.setContent(Z,this.key?Z.currentValue:Z.originalContent.replace(se,Z.currentValue)),this._ref.markForCheck()};if(D(Se)){let Be=this.translateService.getParsedResult(Se,se,this.currentParams);(0,d.A)(Be)?Be.subscribe({next:Ce}):Ce(Be)}else this.translateService.get(se,this.currentParams).subscribe(Ce)}}getContent(se){return D(se.textContent)?se.textContent:se.data}setContent(se,Z){D(se.textContent)?se.textContent=Z:se.data=Z}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}static \u0275fac=function(Z){return new(Z||ve)(n.rXU(H),n.rXU(n.aKT),n.rXU(n.gRc))};static \u0275dir=n.FsC({type:ve,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}})}return ve})(),re=(()=>{class ve{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(se,Z){this.translate=se,this._ref=Z}updateValue(se,Z,Se){let Ce=Be=>{this.value=void 0!==Be?Be:se,this.lastKey=se,this._ref.markForCheck()};if(Se){let Be=this.translate.getParsedResult(Se,se,Z);(0,d.A)(Be.subscribe)?Be.subscribe(Ce):Ce(Be)}this.translate.get(se,Z).subscribe(Ce)}transform(se,...Z){if(!se||!se.length)return se;if(M(se,this.lastKey)&&M(Z,this.lastParams))return this.value;let Se;if(D(Z[0])&&Z.length)if("string"==typeof Z[0]&&Z[0].length){let Ce=Z[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{Se=JSON.parse(Ce)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${Z[0]}`)}}else"object"==typeof Z[0]&&!Array.isArray(Z[0])&&(Se=Z[0]);return this.lastKey=se,this.lastParams=Z,this.updateValue(se,Se),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(Ce=>{this.lastKey&&Ce.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(se,Se,Ce.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(Ce=>{this.lastKey&&(this.lastKey=null,this.updateValue(se,Se,Ce.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(se,Se))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(Z){return new(Z||ve)(n.rXU(H,16),n.rXU(n.gRc,16))};static \u0275pipe=n.EJ8({name:"translate",type:ve,pure:!1});static \u0275prov=n.jDH({token:ve,factory:ve.\u0275fac})}return ve})(),ie=(()=>{class ve{static forRoot(se={}){return{ngModule:ve,providers:[se.loader||{provide:r,useClass:a},se.compiler||{provide:N,useClass:L},se.parser||{provide:V,useClass:T},se.missingTranslationHandler||{provide:c,useClass:m},E,{provide:g,useValue:se.isolate},{provide:R,useValue:se.useDefaultLang},{provide:X,useValue:se.extend},{provide:B,useValue:se.defaultLanguage},H]}}static forChild(se={}){return{ngModule:ve,providers:[se.loader||{provide:r,useClass:a},se.compiler||{provide:N,useClass:L},se.parser||{provide:V,useClass:T},se.missingTranslationHandler||{provide:c,useClass:m},{provide:g,useValue:se.isolate},{provide:R,useValue:se.useDefaultLang},{provide:X,useValue:se.extend},{provide:B,useValue:se.defaultLanguage},H]}}static \u0275fac=function(Z){return new(Z||ve)};static \u0275mod=n.$C({type:ve});static \u0275inj=n.G2t({})}return ve})()},26283:(Bt,z,s)=>{"use strict";s.d(z,{vI:()=>O,yK:()=>P});var n=s(58527),l=s(36877);class d{constructor(i,r){this.x=i,this.y=r}static fromEvent(i,r=null){if(this.isMouseEvent(i))return new d(i.clientX,i.clientY);if(null===r||1===i.changedTouches.length)return new d(i.changedTouches[0].clientX,i.changedTouches[0].clientY);for(let a=0;a<i.changedTouches.length;a++)if(i.changedTouches[a].target===r)return new d(i.changedTouches[a].clientX,i.changedTouches[a].clientY);return null}static isMouseEvent(i){return 8===Object.prototype.toString.apply(i).indexOf("MouseEvent")}static isIPosition(i){return!!i&&"x"in i&&"y"in i}static getCurrent(i){let r=new d(0,0);if(window){const a=window.getComputedStyle(i);if(a){let c=parseInt(a.getPropertyValue("left"),10),m=parseInt(a.getPropertyValue("top"),10);r.x=isNaN(c)?0:c,r.y=isNaN(m)?0:m}return r}return console.error("Not Supported!"),null}static copy(i){return new d(0,0).set(i)}get value(){return{x:this.x,y:this.y}}add(i){return this.x+=i.x,this.y+=i.y,this}subtract(i){return this.x-=i.x,this.y-=i.y,this}multiply(i){this.x*=i,this.y*=i}divide(i){this.x/=i,this.y/=i}reset(){return this.x=0,this.y=0,this}set(i){return this.x=i.x,this.y=i.y,this}}class v{constructor(i,r){this.parent=i,this.renderer=r,this._added=!1;let a=r.createElement("div");r.setStyle(a,"position","absolute"),r.setStyle(a,"width","100%"),r.setStyle(a,"height","100%"),r.setStyle(a,"background-color","transparent"),r.setStyle(a,"top","0"),r.setStyle(a,"left","0"),this._helper=a}add(){this.parent&&!this._added&&(this.parent.appendChild(this._helper),this._added=!0)}remove(){this.parent&&this._added&&(this.parent.removeChild(this._helper),this._added=!1)}dispose(){this._helper=null,this._added=!1}get el(){return this._helper}}class y{constructor(i,r,a,c,m,M){this.parent=i,this.renderer=r,this.type=a,this.css=c,this.onMouseDown=m,this.existHandle=M;let D=this.existHandle||r.createElement("div");r.addClass(D,"ng-resizable-handle"),r.addClass(D,c),"se"===a&&r.addClass(D,"ng-resizable-diagonal"),this.parent&&!this.existHandle&&i.appendChild(D),this._onResize=I=>{m(I,this)},D.addEventListener("mousedown",this._onResize,{passive:!1}),D.addEventListener("touchstart",this._onResize,{passive:!1}),this._handle=D}dispose(){this._handle.removeEventListener("mousedown",this._onResize),this._handle.removeEventListener("touchstart",this._onResize),this.parent&&!this.existHandle&&this.parent.removeChild(this._handle),this._handle=null,this._onResize=null}get el(){return this._handle}}class f{constructor(i,r){this.width=i,this.height=r}static getCurrent(i){let r=new f(0,0);if(window){const a=window.getComputedStyle(i);return a&&(r.width=parseInt(a.getPropertyValue("width"),10),r.height=parseInt(a.getPropertyValue("height"),10)),r}return console.error("Not Supported!"),null}static copy(i){return new f(0,0).set(i)}set(i){return this.width=i.width,this.height=i.height,this}}let O=(()=>{class _{set ngResizable(r){null!=r&&""!==r&&(this._resizable=!!r,this.updateResizable())}constructor(r,a){this.el=r,this.renderer=a,this._resizable=!0,this._handles={},this._handleType=[],this._handleResizing=null,this._direction=null,this._directionChanged=null,this._aspectRatio=0,this._containment=null,this._origMousePos=null,this._origSize=null,this._origPos=null,this._currSize=null,this._currPos=null,this._initSize=null,this._initPos=null,this._gridSize=null,this._bounding=null,this._helperBlock=null,this.draggingSub=null,this._adjusted=!1,this.rzHandles="e,s,se",this.rzHandleDoms={},this.rzAspectRatio=!1,this.rzContainment=null,this.rzGrid=null,this.rzMinWidth=null,this.rzMinHeight=null,this.rzMaxWidth=null,this.rzMaxHeight=null,this.rzScale=1,this.preventDefaultEvent=!0,this.rzStart=new n.bkB,this.rzResizing=new n.bkB,this.rzStop=new n.bkB,this._helperBlock=new v(r.nativeElement,a)}ngOnChanges(r){r.rzHandles&&!r.rzHandles.isFirstChange()&&this.updateResizable(),r.rzAspectRatio&&!r.rzAspectRatio.isFirstChange()&&this.updateAspectRatio(),r.rzContainment&&!r.rzContainment.isFirstChange()&&this.updateContainment()}ngOnInit(){this.updateResizable()}ngOnDestroy(){this.removeHandles(),this._containment=null,this._helperBlock.dispose(),this._helperBlock=null}ngAfterViewInit(){const r=this.el.nativeElement;this._initSize=f.getCurrent(r),this._initPos=d.getCurrent(r),this._currSize=f.copy(this._initSize),this._currPos=d.copy(this._initPos),this.updateAspectRatio(),this.updateContainment()}resetSize(){this._currSize=f.copy(this._initSize),this._currPos=d.copy(this._initPos),this.doResize()}getStatus(){return this._currPos&&this._currSize?{size:{width:this._currSize.width,height:this._currSize.height},position:{top:this._currPos.y,left:this._currPos.x}}:null}updateResizable(){const r=this.el.nativeElement;this.renderer.removeClass(r,"ng-resizable"),this.removeHandles(),this._resizable&&(this.renderer.addClass(r,"ng-resizable"),this.createHandles())}updateAspectRatio(){if("boolean"==typeof this.rzAspectRatio)this._aspectRatio=this.rzAspectRatio&&this._currSize.height?this._currSize.width/this._currSize.height:0;else{let r=Number(this.rzAspectRatio);this._aspectRatio=isNaN(r)?0:r}}updateContainment(){this._containment=this.rzContainment?"string"==typeof this.rzContainment?"parent"===this.rzContainment?this.el.nativeElement.parentElement:document.querySelector(this.rzContainment):this.rzContainment:null}createHandles(){if(!this.rzHandles)return;let r;if("string"==typeof this.rzHandles){r="all"===this.rzHandles?["n","e","s","w","ne","se","nw","sw"]:this.rzHandles.replace(/ /g,"").toLowerCase().split(",");for(let a of r){let c=this.createHandleByType(a,`ng-resizable-${a}`);c&&(this._handleType.push(a),this._handles[a]=c)}}else{r=Object.keys(this.rzHandles);for(let a of r){let c=this.createHandleByType(a,this.rzHandles[a]);c&&(this._handleType.push(a),this._handles[a]=c)}}}createHandleByType(r,a){const c=this.el.nativeElement,m=this.rzHandleDoms[r]?this.rzHandleDoms[r].nativeElement:null;return r.match(/^(se|sw|ne|nw|n|e|s|w)$/)?new y(c,this.renderer,r,a,this.onMouseDown.bind(this),m):(console.error("Invalid handle type:",r),null)}removeHandles(){for(let r of this._handleType)this._handles[r].dispose();this._handleType=[],this._handles={}}onMouseDown(r,a){r instanceof MouseEvent&&2===r.button||(this.preventDefaultEvent&&(r.stopPropagation(),r.preventDefault()),this._handleResizing||(this._origMousePos=d.fromEvent(r),this.startResize(a),this.subscribeEvents()))}subscribeEvents(){this.draggingSub=(0,l.R)(document,"mousemove",{passive:!1}).subscribe(a=>this.onMouseMove(a)),this.draggingSub.add((0,l.R)(document,"touchmove",{passive:!1}).subscribe(a=>this.onMouseMove(a))),this.draggingSub.add((0,l.R)(document,"mouseup",{passive:!1}).subscribe(()=>this.onMouseLeave())),/msie\s|trident\//i.test(window.navigator.userAgent)||this.draggingSub.add((0,l.R)(document,"mouseleave",{passive:!1}).subscribe(()=>this.onMouseLeave())),this.draggingSub.add((0,l.R)(document,"touchend",{passive:!1}).subscribe(()=>this.onMouseLeave())),this.draggingSub.add((0,l.R)(document,"touchcancel",{passive:!1}).subscribe(()=>this.onMouseLeave()))}unsubscribeEvents(){this.draggingSub.unsubscribe(),this.draggingSub=null}onMouseLeave(){this._handleResizing&&(this.stopResize(),this._origMousePos=null,this.unsubscribeEvents())}onMouseMove(r){this._handleResizing&&this._resizable&&this._origMousePos&&this._origPos&&this._origSize&&(this.resizeTo(d.fromEvent(r)),this.onResizing())}startResize(r){const a=this.el.nativeElement;this._origSize=f.getCurrent(a),this._origPos=d.getCurrent(a),this._currSize=f.copy(this._origSize),this._currPos=d.copy(this._origPos),this._containment&&this.getBounding(),this.getGridSize(),this._helperBlock.add(),this._handleResizing=r,this.updateDirection(),this.rzStart.emit(this.getResizingEvent())}stopResize(){this._helperBlock.remove(),this.rzStop.emit(this.getResizingEvent()),this._handleResizing=null,this._direction=null,this._origSize=null,this._origPos=null,this._containment&&this.resetBounding()}onResizing(){this.rzResizing.emit(this.getResizingEvent())}getResizingEvent(){return{host:this.el.nativeElement,handle:this._handleResizing?this._handleResizing.el:null,size:{width:this._currSize.width,height:this._currSize.height},position:{top:this._currPos.y,left:this._currPos.x},direction:{...this._directionChanged}}}updateDirection(){this._direction={n:!!this._handleResizing.type.match(/n/),s:!!this._handleResizing.type.match(/s/),w:!!this._handleResizing.type.match(/w/),e:!!this._handleResizing.type.match(/e/)},this._directionChanged={...this._direction},this.rzAspectRatio&&(this._directionChanged.n&&!this._directionChanged.e&&(this._directionChanged.w=!0),this._directionChanged.s&&!this._directionChanged.w&&(this._directionChanged.e=!0),this._directionChanged.e&&!this._directionChanged.n&&(this._directionChanged.s=!0),this._directionChanged.w&&!this._directionChanged.n&&(this._directionChanged.s=!0))}resizeTo(r){r.subtract(this._origMousePos).divide(this.rzScale);const a=Math.round(r.x/this._gridSize.x)*this._gridSize.x,c=Math.round(r.y/this._gridSize.y)*this._gridSize.y;this._direction.n?(this._currPos.y=this._origPos.y+c,this._currSize.height=this._origSize.height-c):this._direction.s&&(this._currSize.height=this._origSize.height+c),this._direction.e?this._currSize.width=this._origSize.width+a:this._direction.w&&(this._currSize.width=this._origSize.width-a,this._currPos.x=this._origPos.x+a),this.checkBounds(),this.checkSize(),this.adjustByRatio(),this.doResize()}doResize(){const r=this.el.nativeElement;(!this._direction||this._direction.n||this._direction.s||this._aspectRatio)&&this.renderer.setStyle(r,"height",this._currSize.height+"px"),(!this._direction||this._direction.w||this._direction.e||this._aspectRatio)&&this.renderer.setStyle(r,"width",this._currSize.width+"px"),this.renderer.setStyle(r,"left",this._currPos.x+"px"),this.renderer.setStyle(r,"top",this._currPos.y+"px")}adjustByRatio(){if(this._aspectRatio&&!this._adjusted)if(this._direction.e||this._direction.w){const r=Math.floor(this._currSize.width/this._aspectRatio);this._direction.n&&(this._currPos.y+=this._currSize.height-r),this._currSize.height=r}else{const r=Math.floor(this._aspectRatio*this._currSize.height);this._direction.n&&(this._currPos.x+=this._currSize.width-r),this._currSize.width=r}}checkBounds(){if(this._containment){const r=this._bounding.width-this._bounding.pr-this._bounding.deltaL-this._bounding.translateX-this._currPos.x,a=this._bounding.height-this._bounding.pb-this._bounding.deltaT-this._bounding.translateY-this._currPos.y;if(this._direction.n&&this._currPos.y+this._bounding.translateY<0&&(this._currPos.y=-this._bounding.translateY,this._currSize.height=this._origSize.height+this._origPos.y+this._bounding.translateY),this._direction.w&&this._currPos.x+this._bounding.translateX<0&&(this._currPos.x=-this._bounding.translateX,this._currSize.width=this._origSize.width+this._origPos.x+this._bounding.translateX),this._currSize.width>r&&(this._currSize.width=r),this._currSize.height>a&&(this._currSize.height=a),this._aspectRatio){if(this._adjusted=!1,(this._direction.w||this._direction.e)&&this._currSize.width/this._aspectRatio>=a){const c=Math.floor(a*this._aspectRatio);this._direction.w&&(this._currPos.x+=this._currSize.width-c),this._currSize.width=c,this._currSize.height=a,this._adjusted=!0}if((this._direction.n||this._direction.s)&&this._currSize.height*this._aspectRatio>=r){const c=Math.floor(r/this._aspectRatio);this._direction.n&&(this._currPos.y+=this._currSize.height-c),this._currSize.width=r,this._currSize.height=c,this._adjusted=!0}}}}checkSize(){const r=this.rzMinHeight?this.rzMinHeight:1,a=this.rzMinWidth?this.rzMinWidth:1;this._currSize.height<r&&(this._currSize.height=r,this._direction.n&&(this._currPos.y=this._origPos.y+(this._origSize.height-r))),this._currSize.width<a&&(this._currSize.width=a,this._direction.w&&(this._currPos.x=this._origPos.x+(this._origSize.width-a))),this.rzMaxHeight&&this._currSize.height>this.rzMaxHeight&&(this._currSize.height=this.rzMaxHeight,this._direction.n&&(this._currPos.y=this._origPos.y+(this._origSize.height-this.rzMaxHeight))),this.rzMaxWidth&&this._currSize.width>this.rzMaxWidth&&(this._currSize.width=this.rzMaxWidth,this._direction.w&&(this._currPos.x=this._origPos.x+(this._origSize.width-this.rzMaxWidth)))}getBounding(){const r=this._containment,a=window.getComputedStyle(r);if(a){let c=a.getPropertyValue("position"),M=window.getComputedStyle(this.el.nativeElement).getPropertyValue("transform").replace(/[^-\d,]/g,"").split(",");this._bounding={},this._bounding.width=r.clientWidth,this._bounding.height=r.clientHeight,this._bounding.pr=parseInt(a.getPropertyValue("padding-right"),10),this._bounding.pb=parseInt(a.getPropertyValue("padding-bottom"),10),this._bounding.deltaL=this.el.nativeElement.offsetLeft-this._currPos.x,this._bounding.deltaT=this.el.nativeElement.offsetTop-this._currPos.y,M.length>=6?(this._bounding.translateX=parseInt(M[4],10),this._bounding.translateY=parseInt(M[5],10)):(this._bounding.translateX=0,this._bounding.translateY=0),this._bounding.position=a.getPropertyValue("position"),"static"===c&&this.renderer.setStyle(r,"position","relative")}}resetBounding(){this._bounding&&"static"===this._bounding.position&&this.renderer.setStyle(this._containment,"position","relative"),this._bounding=null}getGridSize(){this._gridSize={x:1,y:1},this.rzGrid&&("number"==typeof this.rzGrid?this._gridSize={x:this.rzGrid,y:this.rzGrid}:Array.isArray(this.rzGrid)&&(this._gridSize={x:this.rzGrid[0],y:this.rzGrid[1]}))}static{this.\u0275fac=function(a){return new(a||_)(n.rXU(n.aKT),n.rXU(n.sFG))}}static{this.\u0275dir=n.FsC({type:_,selectors:[["","ngResizable",""]],inputs:{ngResizable:"ngResizable",rzHandles:"rzHandles",rzHandleDoms:"rzHandleDoms",rzAspectRatio:"rzAspectRatio",rzContainment:"rzContainment",rzGrid:"rzGrid",rzMinWidth:"rzMinWidth",rzMinHeight:"rzMinHeight",rzMaxWidth:"rzMaxWidth",rzMaxHeight:"rzMaxHeight",rzScale:"rzScale",preventDefaultEvent:"preventDefaultEvent"},outputs:{rzStart:"rzStart",rzResizing:"rzResizing",rzStop:"rzStop"},exportAs:["ngResizable"],features:[n.OA$]})}}return _})(),P=(()=>{class _{static{this.\u0275fac=function(a){return new(a||_)}}static{this.\u0275mod=n.$C({type:_})}static{this.\u0275inj=n.G2t({})}}return _})()},36243:(Bt,z,s)=>{"use strict";s.d(z,{c:()=>y,f:()=>f});var n=s(70650),l=s(58527),d=s(85667),v=s(74150);const S=["qrcElement"];let y=(()=>{class O{constructor(_,i){this.renderer=_,this.sanitizer=i,this.allowEmptyString=!1,this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.qrdata="",this.scale=4,this.width=10,this.qrCodeURL=new l.bkB,this.context=null}ngOnChanges(){var _=this;return(0,n.A)(function*(){yield _.createQRCode()})()}isValidQrCodeText(_){return!1===this.allowEmptyString?!(typeof _>"u"||""===_||"null"===_||null===_):!(typeof _>"u")}toDataURL(_){return new Promise((i,r)=>{(0,d.dY)(this.qrdata,_,(a,c)=>{a?r(a):i(c)})})}toCanvas(_,i){return new Promise((r,a)=>{(0,d.mo)(_,this.qrdata,i,c=>{c?a(c):r("success")})})}toSVG(_){return new Promise((i,r)=>{(0,d.toString)(this.qrdata,_,(a,c)=>{a?r(a):i(c)})})}renderElement(_){for(const i of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,i);this.renderer.appendChild(this.qrcElement.nativeElement,_)}createQRCode(){var _=this;return(0,n.A)(function*(){_.version&&_.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),_.version=40):_.version&&_.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),_.version=1):void 0!==_.version&&isNaN(_.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),_.version=void 0);try{if(!_.isValidQrCodeText(_.qrdata))throw new Error("[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\"true\"' to overwrite this behaviour.");_.isValidQrCodeText(_.qrdata)&&""===_.qrdata&&(_.qrdata=" ");const i={color:{dark:_.colorDark,light:_.colorLight},errorCorrectionLevel:_.errorCorrectionLevel,margin:_.margin,scale:_.scale,version:_.version,width:_.width},r=_.imageSrc,a=_.imageHeight||40,c=_.imageWidth||40;switch(_.elementType){case"canvas":{const m=_.renderer.createElement("canvas");_.context=m.getContext("2d"),_.toCanvas(m,i).then(()=>{if(_.ariaLabel&&_.renderer.setAttribute(m,"aria-label",`${_.ariaLabel}`),_.title&&_.renderer.setAttribute(m,"title",`${_.title}`),r&&_.context){_.centerImage=new Image(c,a),r!==_.centerImage.src&&(_.centerImage.src=r),a!==_.centerImage.height&&(_.centerImage.height=a),c!==_.centerImage.width&&(_.centerImage.width=c);const M=_.centerImage;M&&(M.onload=()=>{_.context?.drawImage(M,m.width/2-c/2,m.height/2-a/2,c,a)})}_.renderElement(m),_.emitQRCodeURL(m)}).catch(M=>{console.error("[angularx-qrcode] canvas error:",M)});break}case"svg":{const m=_.renderer.createElement("div");_.toSVG(i).then(M=>{_.renderer.setProperty(m,"innerHTML",M);const D=m.firstChild;_.renderer.setAttribute(D,"height",`${_.width}`),_.renderer.setAttribute(D,"width",`${_.width}`),_.renderElement(D),_.emitQRCodeURL(D)}).catch(M=>{console.error("[angularx-qrcode] svg error:",M)});break}default:{const m=_.renderer.createElement("img");_.toDataURL(i).then(M=>{_.alt&&m.setAttribute("alt",_.alt),_.ariaLabel&&m.setAttribute("aria-label",_.ariaLabel),m.setAttribute("src",M),_.title&&m.setAttribute("title",_.title),_.renderElement(m),_.emitQRCodeURL(m)}).catch(M=>{console.error("[angularx-qrcode] img/url error:",M)})}}}catch(i){console.error("[angularx-qrcode] Error generating QR Code:",i.message)}})()}emitQRCodeURL(_){const i=_.constructor.name;if(i===SVGSVGElement.name){const c=new Blob([_.outerHTML],{type:"image/svg+xml"}),m=URL.createObjectURL(c),M=this.sanitizer.bypassSecurityTrustUrl(m);return void this.qrCodeURL.emit(M)}let r="";i===HTMLCanvasElement.name&&(r=_.toDataURL("image/png")),i===HTMLImageElement.name&&(r=_.src),fetch(r).then(a=>a.blob()).then(a=>URL.createObjectURL(a)).then(a=>this.sanitizer.bypassSecurityTrustUrl(a)).then(a=>{this.qrCodeURL.emit(a)}).catch(a=>{console.error("[angularx-qrcode] Error when fetching image/png URL: "+a)})}static{this.\u0275fac=function(i){return new(i||O)(l.rXU(l.sFG),l.rXU(v.up))}}static{this.\u0275cmp=l.VBU({type:O,selectors:[["qrcode"]],viewQuery:function(i,r){if(1&i&&l.GBs(S,7),2&i){let a;l.mGM(a=l.lsd())&&(r.qrcElement=a.first)}},inputs:{allowEmptyString:"allowEmptyString",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",margin:"margin",qrdata:"qrdata",scale:"scale",version:"version",width:"width",alt:"alt",ariaLabel:"ariaLabel",title:"title"},outputs:{qrCodeURL:"qrCodeURL"},features:[l.OA$],decls:2,vars:2,consts:[["qrcElement",""]],template:function(i,r){1&i&&l.nrm(0,"div",null,0),2&i&&l.HbH(r.cssClass)},encapsulation:2,changeDetection:0})}}return O})(),f=(()=>{class O{static{this.\u0275fac=function(i){return new(i||O)}}static{this.\u0275mod=l.$C({type:O})}static{this.\u0275inj=l.G2t({})}}return O})()},25242:(Bt,z,s)=>{"use strict";s.d(z,{$L:()=>_n,Jy:()=>Wr,ZT:()=>$,t1:()=>Ua});var n=s(47263);class l{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(q,j,te,fe){const Ye=j.duration;j.listeners[fe].forEach(gt=>gt({chart:q,initial:j.initial,numSteps:Ye,currentStep:Math.min(te-j.start,Ye)}))}_refresh(){this._request||(this._running=!0,this._request=n.r.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(q=Date.now()){let j=0;this._charts.forEach((te,fe)=>{if(!te.running||!te.items.length)return;const Ne=te.items;let Nt,Ye=Ne.length-1,gt=!1;for(;Ye>=0;--Ye)Nt=Ne[Ye],Nt._active?(Nt._total>te.duration&&(te.duration=Nt._total),Nt.tick(q),gt=!0):(Ne[Ye]=Ne[Ne.length-1],Ne.pop());gt&&(fe.draw(),this._notify(fe,te,q,"progress")),Ne.length||(te.running=!1,this._notify(fe,te,q,"complete"),te.initial=!1),j+=Ne.length}),this._lastDate=q,0===j&&(this._running=!1)}_getAnims(q){const j=this._charts;let te=j.get(q);return te||(te={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},j.set(q,te)),te}listen(q,j,te){this._getAnims(q).listeners[j].push(te)}add(q,j){!j||!j.length||this._getAnims(q).items.push(...j)}has(q){return this._getAnims(q).items.length>0}start(q){const j=this._charts.get(q);j&&(j.running=!0,j.start=Date.now(),j.duration=j.items.reduce((te,fe)=>Math.max(te,fe._duration),0),this._refresh())}running(q){if(!this._running)return!1;const j=this._charts.get(q);return!(!j||!j.running||!j.items.length)}stop(q){const j=this._charts.get(q);if(!j||!j.items.length)return;const te=j.items;let fe=te.length-1;for(;fe>=0;--fe)te[fe].cancel();j.items=[],this._notify(q,j,Date.now(),"complete")}remove(q){return this._charts.delete(q)}}var d=new l;const v="transparent",S={boolean:(de,q,j)=>j>.5?q:de,color(de,q,j){const te=(0,n.c)(de||v),fe=te.valid&&(0,n.c)(q||v);return fe&&fe.valid?fe.mix(te,j).hexString():q},number:(de,q,j)=>de+(q-de)*j};class y{constructor(q,j,te,fe){const Ne=j[te];fe=(0,n.a)([q.to,fe,Ne,q.from]);const Ye=(0,n.a)([q.from,Ne,fe]);this._active=!0,this._fn=q.fn||S[q.type||typeof Ye],this._easing=n.e[q.easing]||n.e.linear,this._start=Math.floor(Date.now()+(q.delay||0)),this._duration=this._total=Math.floor(q.duration),this._loop=!!q.loop,this._target=j,this._prop=te,this._from=Ye,this._to=fe,this._promises=void 0}active(){return this._active}update(q,j,te){if(this._active){this._notify(!1);const fe=this._target[this._prop],Ne=te-this._start,Ye=this._duration-Ne;this._start=te,this._duration=Math.floor(Math.max(Ye,q.duration)),this._total+=Ne,this._loop=!!q.loop,this._to=(0,n.a)([q.to,j,fe,q.from]),this._from=(0,n.a)([q.from,fe,j])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(q){const j=q-this._start,te=this._duration,fe=this._prop,Ne=this._from,Ye=this._loop,gt=this._to;let Nt;if(this._active=Ne!==gt&&(Ye||j<te),!this._active)return this._target[fe]=gt,void this._notify(!0);j<0?this._target[fe]=Ne:(Nt=j/te%2,Nt=Ye&&Nt>1?2-Nt:Nt,Nt=this._easing(Math.min(1,Math.max(0,Nt))),this._target[fe]=this._fn(Ne,gt,Nt))}wait(){const q=this._promises||(this._promises=[]);return new Promise((j,te)=>{q.push({res:j,rej:te})})}_notify(q){const j=q?"res":"rej",te=this._promises||[];for(let fe=0;fe<te.length;fe++)te[fe][j]()}}class f{constructor(q,j){this._chart=q,this._properties=new Map,this.configure(j)}configure(q){if(!(0,n.i)(q))return;const j=Object.keys(n.d.animation),te=this._properties;Object.getOwnPropertyNames(q).forEach(fe=>{const Ne=q[fe];if(!(0,n.i)(Ne))return;const Ye={};for(const gt of j)Ye[gt]=Ne[gt];((0,n.b)(Ne.properties)&&Ne.properties||[fe]).forEach(gt=>{(gt===fe||!te.has(gt))&&te.set(gt,Ye)})})}_animateOptions(q,j){const te=j.options,fe=function P(de,q){if(!q)return;let j=de.options;if(j)return j.$shared&&(de.options=j=Object.assign({},j,{$shared:!1,$animations:{}})),j;de.options=q}(q,te);if(!fe)return[];const Ne=this._createAnimations(fe,te);return te.$shared&&function O(de,q){const j=[],te=Object.keys(q);for(let fe=0;fe<te.length;fe++){const Ne=de[te[fe]];Ne&&Ne.active()&&j.push(Ne.wait())}return Promise.all(j)}(q.options.$animations,te).then(()=>{q.options=te},()=>{}),Ne}_createAnimations(q,j){const te=this._properties,fe=[],Ne=q.$animations||(q.$animations={}),Ye=Object.keys(j),gt=Date.now();let Nt;for(Nt=Ye.length-1;Nt>=0;--Nt){const on=Ye[Nt];if("$"===on.charAt(0))continue;if("options"===on){fe.push(...this._animateOptions(q,j));continue}const ct=j[on];let De=Ne[on];const pe=te.get(on);if(De){if(pe&&De.active()){De.update(pe,ct,gt);continue}De.cancel()}pe&&pe.duration?(Ne[on]=De=new y(pe,q,on,ct),fe.push(De)):q[on]=ct}return fe}update(q,j){if(0===this._properties.size)return void Object.assign(q,j);const te=this._createAnimations(q,j);return te.length?(d.add(this._chart,te),!0):void 0}}function _(de,q){const j=de&&de.options||{},te=j.reverse,fe=void 0===j.min?q:0,Ne=void 0===j.max?q:0;return{start:te?Ne:fe,end:te?fe:Ne}}function a(de,q){const j=[],te=de._getSortedDatasetMetas(q);let fe,Ne;for(fe=0,Ne=te.length;fe<Ne;++fe)j.push(te[fe].index);return j}function c(de,q,j,te={}){const fe=de.keys,Ne="single"===te.mode;let Ye,gt,Nt,on;if(null!==q){for(Ye=0,gt=fe.length;Ye<gt;++Ye){if(Nt=+fe[Ye],Nt===j){if(te.all)continue;break}on=de.values[Nt],(0,n.g)(on)&&(Ne||0===q||(0,n.s)(q)===(0,n.s)(on))&&(q+=on)}return q}}function M(de,q){const j=de&&de.options.stacked;return j||void 0===j&&void 0!==q.stack}function U(de,q,j){const te=de[q]||(de[q]={});return te[j]||(te[j]={})}function V(de,q,j,te){for(const fe of q.getMatchingVisibleMetas(te).reverse()){const Ne=de[fe.index];if(j&&Ne>0||!j&&Ne<0)return fe.index}return null}function T(de,q){const{chart:j,_cachedMeta:te}=de,fe=j._stacks||(j._stacks={}),{iScale:Ne,vScale:Ye,index:gt}=te,Nt=Ne.axis,on=Ye.axis,ct=function D(de,q,j){return`${de.id}.${q.id}.${j.stack||j.type}`}(Ne,Ye,te),De=q.length;let pe;for(let Ge=0;Ge<De;++Ge){const xt=q[Ge],{[Nt]:sn,[on]:En}=xt;pe=(xt._stacks||(xt._stacks={}))[on]=U(fe,ct,sn),pe[gt]=En,pe._top=V(pe,Ye,!0,te.type),pe._bottom=V(pe,Ye,!1,te.type)}}function N(de,q){const j=de.scales;return Object.keys(j).filter(te=>j[te].axis===q).shift()}function g(de,q){const j=de.controller.index,te=de.vScale&&de.vScale.axis;if(te){q=q||de._parsed;for(const fe of q){const Ne=fe._stacks;if(!Ne||void 0===Ne[te]||void 0===Ne[te][j])return;delete Ne[te][j]}}}const R=de=>"reset"===de||"none"===de,B=(de,q)=>q?de:Object.assign({},de);let H=(()=>class de{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(j,te){this.chart=j,this._ctx=j.ctx,this.index=te,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const j=this._cachedMeta;this.configure(),this.linkScales(),j._stacked=M(j.vScale,j),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(j){this.index!==j&&g(this._cachedMeta),this.index=j}linkScales(){const j=this.chart,te=this._cachedMeta,fe=this.getDataset(),Ne=(pe,Ge,xt,sn)=>"x"===pe?Ge:"r"===pe?sn:xt,Ye=te.xAxisID=(0,n.v)(fe.xAxisID,N(j,"x")),gt=te.yAxisID=(0,n.v)(fe.yAxisID,N(j,"y")),Nt=te.rAxisID=(0,n.v)(fe.rAxisID,N(j,"r")),on=te.indexAxis,ct=te.iAxisID=Ne(on,Ye,gt,Nt),De=te.vAxisID=Ne(on,gt,Ye,Nt);te.xScale=this.getScaleForId(Ye),te.yScale=this.getScaleForId(gt),te.rScale=this.getScaleForId(Nt),te.iScale=this.getScaleForId(ct),te.vScale=this.getScaleForId(De)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(j){return this.chart.scales[j]}_getOtherScale(j){const te=this._cachedMeta;return j===te.iScale?te.vScale:te.iScale}reset(){this._update("reset")}_destroy(){const j=this._cachedMeta;this._data&&(0,n.u)(this._data,this),j._stacked&&g(j)}_dataCheck(){const j=this.getDataset(),te=j.data||(j.data=[]),fe=this._data;if((0,n.i)(te))this._data=function m(de){const q=Object.keys(de),j=new Array(q.length);let te,fe,Ne;for(te=0,fe=q.length;te<fe;++te)Ne=q[te],j[te]={x:Ne,y:de[Ne]};return j}(te);else if(fe!==te){if(fe){(0,n.u)(fe,this);const Ne=this._cachedMeta;g(Ne),Ne._parsed=[]}te&&Object.isExtensible(te)&&(0,n.l)(te,this),this._syncList=[],this._data=te}}addElements(){const j=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(j.dataset=new this.datasetElementType)}buildOrUpdateElements(j){const te=this._cachedMeta,fe=this.getDataset();let Ne=!1;this._dataCheck();const Ye=te._stacked;te._stacked=M(te.vScale,te),te.stack!==fe.stack&&(Ne=!0,g(te),te.stack=fe.stack),this._resyncElements(j),(Ne||Ye!==te._stacked)&&T(this,te._parsed)}configure(){const j=this.chart.config,te=j.datasetScopeKeys(this._type),fe=j.getOptionScopes(this.getDataset(),te,!0);this.options=j.createResolver(fe,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(j,te){const{_cachedMeta:fe,_data:Ne}=this,{iScale:Ye,_stacked:gt}=fe,Nt=Ye.axis;let De,pe,Ge,on=0===j&&te===Ne.length||fe._sorted,ct=j>0&&fe._parsed[j-1];if(!1===this._parsing)fe._parsed=Ne,fe._sorted=!0,Ge=Ne;else{Ge=(0,n.b)(Ne[j])?this.parseArrayData(fe,Ne,j,te):(0,n.i)(Ne[j])?this.parseObjectData(fe,Ne,j,te):this.parsePrimitiveData(fe,Ne,j,te);const xt=()=>null===pe[Nt]||ct&&pe[Nt]<ct[Nt];for(De=0;De<te;++De)fe._parsed[De+j]=pe=Ge[De],on&&(xt()&&(on=!1),ct=pe);fe._sorted=on}gt&&T(this,Ge)}parsePrimitiveData(j,te,fe,Ne){const{iScale:Ye,vScale:gt}=j,Nt=Ye.axis,on=gt.axis,ct=Ye.getLabels(),De=Ye===gt,pe=new Array(Ne);let Ge,xt,sn;for(Ge=0,xt=Ne;Ge<xt;++Ge)sn=Ge+fe,pe[Ge]={[Nt]:De||Ye.parse(ct[sn],sn),[on]:gt.parse(te[sn],sn)};return pe}parseArrayData(j,te,fe,Ne){const{xScale:Ye,yScale:gt}=j,Nt=new Array(Ne);let on,ct,De,pe;for(on=0,ct=Ne;on<ct;++on)De=on+fe,pe=te[De],Nt[on]={x:Ye.parse(pe[0],De),y:gt.parse(pe[1],De)};return Nt}parseObjectData(j,te,fe,Ne){const{xScale:Ye,yScale:gt}=j,{xAxisKey:Nt="x",yAxisKey:on="y"}=this._parsing,ct=new Array(Ne);let De,pe,Ge,xt;for(De=0,pe=Ne;De<pe;++De)Ge=De+fe,xt=te[Ge],ct[De]={x:Ye.parse((0,n.f)(xt,Nt),Ge),y:gt.parse((0,n.f)(xt,on),Ge)};return ct}getParsed(j){return this._cachedMeta._parsed[j]}getDataElement(j){return this._cachedMeta.data[j]}applyStack(j,te,fe){const Ye=this._cachedMeta,gt=te[j.axis];return c({keys:a(this.chart,!0),values:te._stacks[j.axis]},gt,Ye.index,{mode:fe})}updateRangeFromParsed(j,te,fe,Ne){const Ye=fe[te.axis];let gt=null===Ye?NaN:Ye;const Nt=Ne&&fe._stacks[te.axis];Ne&&Nt&&(Ne.values=Nt,gt=c(Ne,Ye,this._cachedMeta.index)),j.min=Math.min(j.min,gt),j.max=Math.max(j.max,gt)}getMinMax(j,te){const fe=this._cachedMeta,Ne=fe._parsed,Ye=fe._sorted&&j===fe.iScale,gt=Ne.length,Nt=this._getOtherScale(j),on=((de,q,j)=>de&&!q.hidden&&q._stacked&&{keys:a(this.chart,!0),values:null})(te,fe),ct={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:De,max:pe}=function I(de){const{min:q,max:j,minDefined:te,maxDefined:fe}=de.getUserBounds();return{min:te?q:Number.NEGATIVE_INFINITY,max:fe?j:Number.POSITIVE_INFINITY}}(Nt);let Ge,xt;function sn(){xt=Ne[Ge];const En=xt[Nt.axis];return!(0,n.g)(xt[j.axis])||De>En||pe<En}for(Ge=0;Ge<gt&&(sn()||(this.updateRangeFromParsed(ct,j,xt,on),!Ye));++Ge);if(Ye)for(Ge=gt-1;Ge>=0;--Ge)if(!sn()){this.updateRangeFromParsed(ct,j,xt,on);break}return ct}getAllParsedValues(j){const te=this._cachedMeta._parsed,fe=[];let Ne,Ye,gt;for(Ne=0,Ye=te.length;Ne<Ye;++Ne)gt=te[Ne][j.axis],(0,n.g)(gt)&&fe.push(gt);return fe}getMaxOverflow(){return!1}getLabelAndValue(j){const te=this._cachedMeta,fe=te.iScale,Ne=te.vScale,Ye=this.getParsed(j);return{label:fe?""+fe.getLabelForValue(Ye[fe.axis]):"",value:Ne?""+Ne.getLabelForValue(Ye[Ne.axis]):""}}_update(j){const te=this._cachedMeta;this.update(j||"default"),te._clip=function r(de){let q,j,te,fe;return(0,n.i)(de)?(q=de.top,j=de.right,te=de.bottom,fe=de.left):q=j=te=fe=de,{top:q,right:j,bottom:te,left:fe,disabled:!1===de}}((0,n.v)(this.options.clip,function i(de,q,j){if(!1===j)return!1;const te=_(de,j),fe=_(q,j);return{top:fe.end,right:te.end,bottom:fe.start,left:te.start}}(te.xScale,te.yScale,this.getMaxOverflow())))}update(j){}draw(){const j=this._ctx,fe=this._cachedMeta,Ne=fe.data||[],Ye=this.chart.chartArea,gt=[],Nt=this._drawStart||0,on=this._drawCount||Ne.length-Nt,ct=this.options.drawActiveElementsOnTop;let De;for(fe.dataset&&fe.dataset.draw(j,Ye,Nt,on),De=Nt;De<Nt+on;++De){const pe=Ne[De];pe.hidden||(pe.active&&ct?gt.push(pe):pe.draw(j,Ye))}for(De=0;De<gt.length;++De)gt[De].draw(j,Ye)}getStyle(j,te){const fe=te?"active":"default";return void 0===j&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(fe):this.resolveDataElementOptions(j||0,fe)}getContext(j,te,fe){const Ne=this.getDataset();let Ye;if(j>=0&&j<this._cachedMeta.data.length){const gt=this._cachedMeta.data[j];Ye=gt.$context||(gt.$context=function E(de,q,j){return(0,n.j)(de,{active:!1,dataIndex:q,parsed:void 0,raw:void 0,element:j,index:q,mode:"default",type:"data"})}(this.getContext(),j,gt)),Ye.parsed=this.getParsed(j),Ye.raw=Ne.data[j],Ye.index=Ye.dataIndex=j}else Ye=this.$context||(this.$context=function L(de,q){return(0,n.j)(de,{active:!1,dataset:void 0,datasetIndex:q,index:q,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),Ye.dataset=Ne,Ye.index=Ye.datasetIndex=this.index;return Ye.active=!!te,Ye.mode=fe,Ye}resolveDatasetElementOptions(j){return this._resolveElementOptions(this.datasetElementType.id,j)}resolveDataElementOptions(j,te){return this._resolveElementOptions(this.dataElementType.id,te,j)}_resolveElementOptions(j,te="default",fe){const Ne="active"===te,Ye=this._cachedDataOpts,gt=j+"-"+te,Nt=Ye[gt],on=this.enableOptionSharing&&(0,n.h)(fe);if(Nt)return B(Nt,on);const ct=this.chart.config,De=ct.datasetElementScopeKeys(this._type,j),pe=Ne?[`${j}Hover`,"hover",j,""]:[j,""],Ge=ct.getOptionScopes(this.getDataset(),De),xt=Object.keys(n.d.elements[j]),En=ct.resolveNamedOptions(Ge,xt,()=>this.getContext(fe,Ne),pe);return En.$shared&&(En.$shared=on,Ye[gt]=Object.freeze(B(En,on))),En}_resolveAnimations(j,te,fe){const Ne=this.chart,Ye=this._cachedDataOpts,gt=`animation-${te}`,Nt=Ye[gt];if(Nt)return Nt;let on;if(!1!==Ne.options.animation){const De=this.chart.config,pe=De.datasetAnimationScopeKeys(this._type,te),Ge=De.getOptionScopes(this.getDataset(),pe);on=De.createResolver(Ge,this.getContext(j,fe,te))}const ct=new f(Ne,on&&on.animations);return on&&on._cacheable&&(Ye[gt]=Object.freeze(ct)),ct}getSharedOptions(j){if(j.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},j))}includeOptions(j,te){return!te||R(j)||this.chart._animationsDisabled}_getSharedOptions(j,te){const fe=this.resolveDataElementOptions(j,te),Ne=this._sharedOptions,Ye=this.getSharedOptions(fe),gt=this.includeOptions(te,Ye)||Ye!==Ne;return this.updateSharedOptions(Ye,te,fe),{sharedOptions:Ye,includeOptions:gt}}updateElement(j,te,fe,Ne){R(Ne)?Object.assign(j,fe):this._resolveAnimations(te,Ne).update(j,fe)}updateSharedOptions(j,te,fe){j&&!R(te)&&this._resolveAnimations(void 0,te).update(j,fe)}_setStyle(j,te,fe,Ne){j.active=Ne;const Ye=this.getStyle(te,Ne);this._resolveAnimations(te,fe,Ne).update(j,{options:!Ne&&this.getSharedOptions(Ye)||Ye})}removeHoverStyle(j,te,fe){this._setStyle(j,fe,"active",!1)}setHoverStyle(j,te,fe){this._setStyle(j,fe,"active",!0)}_removeDatasetHoverStyle(){const j=this._cachedMeta.dataset;j&&this._setStyle(j,void 0,"active",!1)}_setDatasetHoverStyle(){const j=this._cachedMeta.dataset;j&&this._setStyle(j,void 0,"active",!0)}_resyncElements(j){const te=this._data,fe=this._cachedMeta.data;for(const[Nt,on,ct]of this._syncList)this[Nt](on,ct);this._syncList=[];const Ne=fe.length,Ye=te.length,gt=Math.min(Ye,Ne);gt&&this.parse(0,gt),Ye>Ne?this._insertElements(Ne,Ye-Ne,j):Ye<Ne&&this._removeElements(Ye,Ne-Ye)}_insertElements(j,te,fe=!0){const Ne=this._cachedMeta,Ye=Ne.data,gt=j+te;let Nt;const on=ct=>{for(ct.length+=te,Nt=ct.length-1;Nt>=gt;Nt--)ct[Nt]=ct[Nt-te]};for(on(Ye),Nt=j;Nt<gt;++Nt)Ye[Nt]=new this.dataElementType;this._parsing&&on(Ne._parsed),this.parse(j,te),fe&&this.updateElements(Ye,j,te,"reset")}updateElements(j,te,fe,Ne){}_removeElements(j,te){const fe=this._cachedMeta;if(this._parsing){const Ne=fe._parsed.splice(j,te);fe._stacked&&g(fe,Ne)}fe.data.splice(j,te)}_sync(j){if(this._parsing)this._syncList.push(j);else{const[te,fe,Ne]=j;this[te](fe,Ne)}this.chart._dataChanges.push([this.index,...j])}_onDataPush(){const j=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-j,j])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(j,te){te&&this._sync(["_removeElements",j,te]);const fe=arguments.length-2;fe&&this._sync(["_insertElements",j,fe])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}})();function re(de){const q=de.iScale,j=function J(de,q){if(!de._cache.$bar){const j=de.getMatchingVisibleMetas(q);let te=[];for(let fe=0,Ne=j.length;fe<Ne;fe++)te=te.concat(j[fe].controller.getAllParsedValues(de));de._cache.$bar=(0,n._)(te.sort((fe,Ne)=>fe-Ne))}return de._cache.$bar}(q,de.type);let fe,Ne,Ye,gt,te=q._length;const Nt=()=>{32767===Ye||-32768===Ye||((0,n.h)(gt)&&(te=Math.min(te,Math.abs(Ye-gt)||te)),gt=Ye)};for(fe=0,Ne=j.length;fe<Ne;++fe)Ye=q.getPixelForValue(j[fe]),Nt();for(gt=void 0,fe=0,Ne=q.ticks.length;fe<Ne;++fe)Ye=q.getPixelForTick(fe),Nt();return te}function se(de,q,j,te){return(0,n.b)(de)?function ue(de,q,j,te){const fe=j.parse(de[0],te),Ne=j.parse(de[1],te),Ye=Math.min(fe,Ne),gt=Math.max(fe,Ne);let Nt=Ye,on=gt;Math.abs(Ye)>Math.abs(gt)&&(Nt=gt,on=Ye),q[j.axis]=on,q._custom={barStart:Nt,barEnd:on,start:fe,end:Ne,min:Ye,max:gt}}(de,q,j,te):q[j.axis]=j.parse(de,te),q}function Z(de,q,j,te){const fe=de.iScale,Ne=de.vScale,Ye=fe.getLabels(),gt=fe===Ne,Nt=[];let on,ct,De,pe;for(on=j,ct=j+te;on<ct;++on)pe=q[on],De={},De[fe.axis]=gt||fe.parse(Ye[on],on),Nt.push(se(pe,De,Ne,on));return Nt}function Se(de){return de&&void 0!==de.barStart&&void 0!==de.barEnd}function Xe(de,q,j,te){let fe=q.borderSkipped;const Ne={};if(!fe)return void(de.borderSkipped=Ne);if(!0===fe)return void(de.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:Ye,end:gt,reverse:Nt,top:on,bottom:ct}=function Be(de){let q,j,te,fe,Ne;return de.horizontal?(q=de.base>de.x,j="left",te="right"):(q=de.base<de.y,j="bottom",te="top"),q?(fe="end",Ne="start"):(fe="start",Ne="end"),{start:j,end:te,reverse:q,top:fe,bottom:Ne}}(de);"middle"===fe&&j&&(de.enableBorderRadius=!0,(j._top||0)===te?fe=on:(j._bottom||0)===te?fe=ct:(Ne[He(ct,Ye,gt,Nt)]=!0,fe=on)),Ne[He(fe,Ye,gt,Nt)]=!0,de.borderSkipped=Ne}function He(de,q,j,te){return te?(de=function Me(de,q,j){return de===q?j:de===j?q:de}(de,q,j),de=Q(de,j,q)):de=Q(de,q,j),de}function Q(de,q,j){return"start"===de?q:"end"===de?j:de}function A(de,{inflateAmount:q},j){de.inflateAmount="auto"===q?1===j?.33:0:q}let me=(()=>class de extends H{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(j,te,fe,Ne){return Z(j,te,fe,Ne)}parseArrayData(j,te,fe,Ne){return Z(j,te,fe,Ne)}parseObjectData(j,te,fe,Ne){const{iScale:Ye,vScale:gt}=j,{xAxisKey:Nt="x",yAxisKey:on="y"}=this._parsing,ct="x"===Ye.axis?Nt:on,De="x"===gt.axis?Nt:on,pe=[];let Ge,xt,sn,En;for(Ge=fe,xt=fe+Ne;Ge<xt;++Ge)En=te[Ge],sn={},sn[Ye.axis]=Ye.parse((0,n.f)(En,ct),Ge),pe.push(se((0,n.f)(En,De),sn,gt,Ge));return pe}updateRangeFromParsed(j,te,fe,Ne){super.updateRangeFromParsed(j,te,fe,Ne);const Ye=fe._custom;Ye&&te===this._cachedMeta.vScale&&(j.min=Math.min(j.min,Ye.min),j.max=Math.max(j.max,Ye.max))}getMaxOverflow(){return 0}getLabelAndValue(j){const te=this._cachedMeta,{iScale:fe,vScale:Ne}=te,Ye=this.getParsed(j),gt=Ye._custom,Nt=Se(gt)?"["+gt.start+", "+gt.end+"]":""+Ne.getLabelForValue(Ye[Ne.axis]);return{label:""+fe.getLabelForValue(Ye[fe.axis]),value:Nt}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(j){const te=this._cachedMeta;this.updateElements(te.data,0,te.data.length,j)}updateElements(j,te,fe,Ne){const Ye="reset"===Ne,{index:gt,_cachedMeta:{vScale:Nt}}=this,on=Nt.getBasePixel(),ct=Nt.isHorizontal(),De=this._getRuler(),{sharedOptions:pe,includeOptions:Ge}=this._getSharedOptions(te,Ne);for(let xt=te;xt<te+fe;xt++){const sn=this.getParsed(xt),En=Ye||(0,n.k)(sn[Nt.axis])?{base:on,head:on}:this._calculateBarValuePixels(xt),Un=this._calculateBarIndexPixels(xt,De),ri=(sn._stacks||{})[Nt.axis],Mi={horizontal:ct,base:En.base,enableBorderRadius:!ri||Se(sn._custom)||gt===ri._top||gt===ri._bottom,x:ct?En.head:Un.center,y:ct?Un.center:En.head,height:ct?Un.size:Math.abs(En.size),width:ct?Math.abs(En.size):Un.size};Ge&&(Mi.options=pe||this.resolveDataElementOptions(xt,j[xt].active?"active":Ne));const Xi=Mi.options||j[xt].options;Xe(Mi,Xi,ri,gt),A(Mi,Xi,De.ratio),this.updateElement(j[xt],xt,Mi,Ne)}}_getStacks(j,te){const{iScale:fe}=this._cachedMeta,Ne=fe.getMatchingVisibleMetas(this._type).filter(on=>on.controller.options.grouped),Ye=fe.options.stacked,gt=[],Nt=on=>{const ct=on.controller.getParsed(te),De=ct&&ct[on.vScale.axis];if((0,n.k)(De)||isNaN(De))return!0};for(const on of Ne)if((void 0===te||!Nt(on))&&((!1===Ye||-1===gt.indexOf(on.stack)||void 0===Ye&&void 0===on.stack)&>.push(on.stack),on.index===j))break;return gt.length||gt.push(void 0),gt}_getStackCount(j){return this._getStacks(void 0,j).length}_getStackIndex(j,te,fe){const Ne=this._getStacks(j,fe),Ye=void 0!==te?Ne.indexOf(te):-1;return-1===Ye?Ne.length-1:Ye}_getRuler(){const j=this.options,te=this._cachedMeta,fe=te.iScale,Ne=[];let Ye,gt;for(Ye=0,gt=te.data.length;Ye<gt;++Ye)Ne.push(fe.getPixelForValue(this.getParsed(Ye)[fe.axis],Ye));const Nt=j.barThickness;return{min:Nt||re(te),pixels:Ne,start:fe._startPixel,end:fe._endPixel,stackCount:this._getStackCount(),scale:fe,grouped:j.grouped,ratio:Nt?1:j.categoryPercentage*j.barPercentage}}_calculateBarValuePixels(j){const{_cachedMeta:{vScale:te,_stacked:fe},options:{base:Ne,minBarLength:Ye}}=this,gt=Ne||0,Nt=this.getParsed(j),on=Nt._custom,ct=Se(on);let xt,sn,De=Nt[te.axis],pe=0,Ge=fe?this.applyStack(te,Nt,fe):De;Ge!==De&&(pe=Ge-De,Ge=De),ct&&(De=on.barStart,Ge=on.barEnd-on.barStart,0!==De&&(0,n.s)(De)!==(0,n.s)(on.barEnd)&&(pe=0),pe+=De);const En=(0,n.k)(Ne)||ct?pe:Ne;let Un=te.getPixelForValue(En);if(xt=this.chart.getDataVisibility(j)?te.getPixelForValue(pe+Ge):Un,sn=xt-Un,Math.abs(sn)<Ye){sn=function Ce(de,q,j){return 0!==de?(0,n.s)(de):(q.isHorizontal()?1:-1)*(q.min>=j?1:-1)}(sn,te,gt)*Ye,De===gt&&(Un-=sn/2);const ri=te.getPixelForDecimal(0),Mi=te.getPixelForDecimal(1),Xi=Math.min(ri,Mi),Ui=Math.max(ri,Mi);Un=Math.max(Math.min(Un,Ui),Xi),xt=Un+sn}if(Un===te.getPixelForValue(gt)){const ri=(0,n.s)(sn)*te.getLineWidthForValue(gt)/2;Un+=ri,sn-=ri}return{size:sn,base:Un,head:xt,center:xt+sn/2}}_calculateBarIndexPixels(j,te){const fe=te.scale,Ne=this.options,Ye=Ne.skipNull,gt=(0,n.v)(Ne.maxBarThickness,1/0);let Nt,on;if(te.grouped){const ct=Ye?this._getStackCount(j):te.stackCount,De="flex"===Ne.barThickness?function ve(de,q,j,te){const fe=q.pixels,Ne=fe[de];let Ye=de>0?fe[de-1]:null,gt=de<fe.length-1?fe[de+1]:null;const Nt=j.categoryPercentage;null===Ye&&(Ye=Ne-(null===gt?q.end-q.start:gt-Ne)),null===gt&&(gt=Ne+Ne-Ye);const on=Ne-(Ne-Math.min(Ye,gt))/2*Nt;return{chunk:Math.abs(gt-Ye)/2*Nt/te,ratio:j.barPercentage,start:on}}(j,te,Ne,ct):function ie(de,q,j,te){const fe=j.barThickness;let Ne,Ye;return(0,n.k)(fe)?(Ne=q.min*j.categoryPercentage,Ye=j.barPercentage):(Ne=fe*te,Ye=1),{chunk:Ne/te,ratio:Ye,start:q.pixels[de]-Ne/2}}(j,te,Ne,ct),pe=this._getStackIndex(this.index,this._cachedMeta.stack,Ye?j:void 0);Nt=De.start+De.chunk*pe+De.chunk/2,on=Math.min(gt,De.chunk*De.ratio)}else Nt=fe.getPixelForValue(this.getParsed(j)[fe.axis],j),on=Math.min(gt,te.min*te.ratio);return{base:Nt-on/2,head:Nt+on/2,center:Nt,size:on}}draw(){const j=this._cachedMeta,te=j.vScale,fe=j.data,Ne=fe.length;let Ye=0;for(;Ye<Ne;++Ye)null!==this.getParsed(Ye)[te.axis]&&fe[Ye].draw(this._ctx)}})(),ne=(()=>class de extends H{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(j,te,fe,Ne){const Ye=super.parsePrimitiveData(j,te,fe,Ne);for(let gt=0;gt<Ye.length;gt++)Ye[gt]._custom=this.resolveDataElementOptions(gt+fe).radius;return Ye}parseArrayData(j,te,fe,Ne){const Ye=super.parseArrayData(j,te,fe,Ne);for(let gt=0;gt<Ye.length;gt++)Ye[gt]._custom=(0,n.v)(te[fe+gt][2],this.resolveDataElementOptions(gt+fe).radius);return Ye}parseObjectData(j,te,fe,Ne){const Ye=super.parseObjectData(j,te,fe,Ne);for(let gt=0;gt<Ye.length;gt++){const Nt=te[fe+gt];Ye[gt]._custom=(0,n.v)(Nt&&Nt.r&&+Nt.r,this.resolveDataElementOptions(gt+fe).radius)}return Ye}getMaxOverflow(){const j=this._cachedMeta.data;let te=0;for(let fe=j.length-1;fe>=0;--fe)te=Math.max(te,j[fe].size(this.resolveDataElementOptions(fe))/2);return te>0&&te}getLabelAndValue(j){const te=this._cachedMeta,fe=this.chart.data.labels||[],{xScale:Ne,yScale:Ye}=te,gt=this.getParsed(j),Nt=Ne.getLabelForValue(gt.x),on=Ye.getLabelForValue(gt.y),ct=gt._custom;return{label:fe[j]||"",value:"("+Nt+", "+on+(ct?", "+ct:"")+")"}}update(j){const te=this._cachedMeta.data;this.updateElements(te,0,te.length,j)}updateElements(j,te,fe,Ne){const Ye="reset"===Ne,{iScale:gt,vScale:Nt}=this._cachedMeta,{sharedOptions:on,includeOptions:ct}=this._getSharedOptions(te,Ne),De=gt.axis,pe=Nt.axis;for(let Ge=te;Ge<te+fe;Ge++){const xt=j[Ge],sn=!Ye&&this.getParsed(Ge),En={},Un=En[De]=Ye?gt.getPixelForDecimal(.5):gt.getPixelForValue(sn[De]),ri=En[pe]=Ye?Nt.getBasePixel():Nt.getPixelForValue(sn[pe]);En.skip=isNaN(Un)||isNaN(ri),ct&&(En.options=on||this.resolveDataElementOptions(Ge,xt.active?"active":Ne),Ye&&(En.options.radius=0)),this.updateElement(xt,Ge,En,Ne)}}resolveDataElementOptions(j,te){const fe=this.getParsed(j);let Ne=super.resolveDataElementOptions(j,te);Ne.$shared&&(Ne=Object.assign({},Ne,{$shared:!1}));const Ye=Ne.radius;return"active"!==te&&(Ne.radius=0),Ne.radius+=(0,n.v)(fe&&fe._custom,Ye),Ne}})(),W=(()=>class de extends H{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:j=>"spacing"!==j,_indexable:j=>"spacing"!==j};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(j){const te=j.data;if(te.labels.length&&te.datasets.length){const{labels:{pointStyle:fe,color:Ne}}=j.legend.options;return te.labels.map((Ye,gt)=>{const on=j.getDatasetMeta(0).controller.getStyle(gt);return{text:Ye,fillStyle:on.backgroundColor,strokeStyle:on.borderColor,fontColor:Ne,lineWidth:on.borderWidth,pointStyle:fe,hidden:!j.getDataVisibility(gt),index:gt}})}return[]}},onClick(j,te,fe){fe.chart.toggleDataVisibility(te.index),fe.chart.update()}}}};constructor(j,te){super(j,te),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(j,te){const fe=this.getDataset().data,Ne=this._cachedMeta;if(!1===this._parsing)Ne._parsed=fe;else{let gt,Nt,Ye=on=>+fe[on];if((0,n.i)(fe[j])){const{key:on="value"}=this._parsing;Ye=ct=>+(0,n.f)(fe[ct],on)}for(gt=j,Nt=j+te;gt<Nt;++gt)Ne._parsed[gt]=Ye(gt)}}_getRotation(){return(0,n.t)(this.options.rotation-90)}_getCircumference(){return(0,n.t)(this.options.circumference)}_getRotationExtents(){let j=n.T,te=-n.T;for(let fe=0;fe<this.chart.data.datasets.length;++fe)if(this.chart.isDatasetVisible(fe)&&this.chart.getDatasetMeta(fe).type===this._type){const Ne=this.chart.getDatasetMeta(fe).controller,Ye=Ne._getRotation(),gt=Ne._getCircumference();j=Math.min(j,Ye),te=Math.max(te,Ye+gt)}return{rotation:j,circumference:te-j}}update(j){const te=this.chart,{chartArea:fe}=te,Ne=this._cachedMeta,Ye=Ne.data,gt=this.getMaxBorderWidth()+this.getMaxOffset(Ye)+this.options.spacing,Nt=Math.max((Math.min(fe.width,fe.height)-gt)/2,0),on=Math.min((0,n.m)(this.options.cutout,Nt),1),ct=this._getRingWeight(this.index),{circumference:De,rotation:pe}=this._getRotationExtents(),{ratioX:Ge,ratioY:xt,offsetX:sn,offsetY:En}=function G(de,q,j){let te=1,fe=1,Ne=0,Ye=0;if(q<n.T){const gt=de,Nt=gt+q,on=Math.cos(gt),ct=Math.sin(gt),De=Math.cos(Nt),pe=Math.sin(Nt),Ge=(Mi,Xi,Ui)=>(0,n.p)(Mi,gt,Nt,!0)?1:Math.max(Xi,Xi*j,Ui,Ui*j),xt=(Mi,Xi,Ui)=>(0,n.p)(Mi,gt,Nt,!0)?-1:Math.min(Xi,Xi*j,Ui,Ui*j),sn=Ge(0,on,De),En=Ge(n.H,ct,pe),Un=xt(n.P,on,De),ri=xt(n.P+n.H,ct,pe);te=(sn-Un)/2,fe=(En-ri)/2,Ne=-(sn+Un)/2,Ye=-(En+ri)/2}return{ratioX:te,ratioY:fe,offsetX:Ne,offsetY:Ye}}(pe,De,on),Mi=Math.max(Math.min((fe.width-gt)/Ge,(fe.height-gt)/xt)/2,0),Xi=(0,n.n)(this.options.radius,Mi),fr=(Xi-Math.max(Xi*on,0))/this._getVisibleDatasetWeightTotal();this.offsetX=sn*Xi,this.offsetY=En*Xi,Ne.total=this.calculateTotal(),this.outerRadius=Xi-fr*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-fr*ct,0),this.updateElements(Ye,0,Ye.length,j)}_circumference(j,te){const fe=this.options,Ne=this._cachedMeta,Ye=this._getCircumference();return te&&fe.animation.animateRotate||!this.chart.getDataVisibility(j)||null===Ne._parsed[j]||Ne.data[j].hidden?0:this.calculateCircumference(Ne._parsed[j]*Ye/n.T)}updateElements(j,te,fe,Ne){const Ye="reset"===Ne,gt=this.chart,Nt=gt.chartArea,De=(Nt.left+Nt.right)/2,pe=(Nt.top+Nt.bottom)/2,Ge=Ye&>.options.animation.animateScale,xt=Ge?0:this.innerRadius,sn=Ge?0:this.outerRadius,{sharedOptions:En,includeOptions:Un}=this._getSharedOptions(te,Ne);let Mi,ri=this._getRotation();for(Mi=0;Mi<te;++Mi)ri+=this._circumference(Mi,Ye);for(Mi=te;Mi<te+fe;++Mi){const Xi=this._circumference(Mi,Ye),Ui=j[Mi],fr={x:De+this.offsetX,y:pe+this.offsetY,startAngle:ri,endAngle:ri+Xi,circumference:Xi,outerRadius:sn,innerRadius:xt};Un&&(fr.options=En||this.resolveDataElementOptions(Mi,Ui.active?"active":Ne)),ri+=Xi,this.updateElement(Ui,Mi,fr,Ne)}}calculateTotal(){const j=this._cachedMeta,te=j.data;let Ne,fe=0;for(Ne=0;Ne<te.length;Ne++){const Ye=j._parsed[Ne];null!==Ye&&!isNaN(Ye)&&this.chart.getDataVisibility(Ne)&&!te[Ne].hidden&&(fe+=Math.abs(Ye))}return fe}calculateCircumference(j){const te=this._cachedMeta.total;return te>0&&!isNaN(j)?n.T*(Math.abs(j)/te):0}getLabelAndValue(j){const fe=this.chart,Ne=fe.data.labels||[],Ye=(0,n.o)(this._cachedMeta._parsed[j],fe.options.locale);return{label:Ne[j]||"",value:Ye}}getMaxBorderWidth(j){let te=0;const fe=this.chart;let Ne,Ye,gt,Nt,on;if(!j)for(Ne=0,Ye=fe.data.datasets.length;Ne<Ye;++Ne)if(fe.isDatasetVisible(Ne)){gt=fe.getDatasetMeta(Ne),j=gt.data,Nt=gt.controller;break}if(!j)return 0;for(Ne=0,Ye=j.length;Ne<Ye;++Ne)on=Nt.resolveDataElementOptions(Ne),"inner"!==on.borderAlign&&(te=Math.max(te,on.borderWidth||0,on.hoverBorderWidth||0));return te}getMaxOffset(j){let te=0;for(let fe=0,Ne=j.length;fe<Ne;++fe){const Ye=this.resolveDataElementOptions(fe);te=Math.max(te,Ye.offset||0,Ye.hoverOffset||0)}return te}_getRingWeightOffset(j){let te=0;for(let fe=0;fe<j;++fe)this.chart.isDatasetVisible(fe)&&(te+=this._getRingWeight(fe));return te}_getRingWeight(j){return Math.max((0,n.v)(this.chart.data.datasets[j].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}})(),$=(()=>class de extends H{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(j){const te=this._cachedMeta,{dataset:fe,data:Ne=[],_dataset:Ye}=te,gt=this.chart._animationsDisabled;let{start:Nt,count:on}=(0,n.q)(te,Ne,gt);this._drawStart=Nt,this._drawCount=on,(0,n.w)(te)&&(Nt=0,on=Ne.length),fe._chart=this.chart,fe._datasetIndex=this.index,fe._decimated=!!Ye._decimated,fe.points=Ne;const ct=this.resolveDatasetElementOptions(j);this.options.showLine||(ct.borderWidth=0),ct.segment=this.options.segment,this.updateElement(fe,void 0,{animated:!gt,options:ct},j),this.updateElements(Ne,Nt,on,j)}updateElements(j,te,fe,Ne){const Ye="reset"===Ne,{iScale:gt,vScale:Nt,_stacked:on,_dataset:ct}=this._cachedMeta,{sharedOptions:De,includeOptions:pe}=this._getSharedOptions(te,Ne),Ge=gt.axis,xt=Nt.axis,{spanGaps:sn,segment:En}=this.options,Un=(0,n.x)(sn)?sn:Number.POSITIVE_INFINITY,ri=this.chart._animationsDisabled||Ye||"none"===Ne,Mi=te+fe,Xi=j.length;let Ui=te>0&&this.getParsed(te-1);for(let fr=0;fr<Xi;++fr){const xr=j[fr],yr=ri?xr:{};if(fr<te||fr>=Mi){yr.skip=!0;continue}const Rr=this.getParsed(fr),co=(0,n.k)(Rr[xt]),Bo=yr[Ge]=gt.getPixelForValue(Rr[Ge],fr),os=yr[xt]=Ye||co?Nt.getBasePixel():Nt.getPixelForValue(on?this.applyStack(Nt,Rr,on):Rr[xt],fr);yr.skip=isNaN(Bo)||isNaN(os)||co,yr.stop=fr>0&&Math.abs(Rr[Ge]-Ui[Ge])>Un,En&&(yr.parsed=Rr,yr.raw=ct.data[fr]),pe&&(yr.options=De||this.resolveDataElementOptions(fr,xr.active?"active":Ne)),ri||this.updateElement(xr,fr,yr,Ne),Ui=Rr}}getMaxOverflow(){const j=this._cachedMeta,te=j.dataset,fe=te.options&&te.options.borderWidth||0,Ne=j.data||[];if(!Ne.length)return fe;const Ye=Ne[0].size(this.resolveDataElementOptions(0)),gt=Ne[Ne.length-1].size(this.resolveDataElementOptions(Ne.length-1));return Math.max(fe,Ye,gt)/2}draw(){const j=this._cachedMeta;j.dataset.updateControlPoints(this.chart.chartArea,j.iScale.axis),super.draw()}})();var Le=Object.freeze({__proto__:null,BarController:me,BubbleController:ne,DoughnutController:W,LineController:$,PolarAreaController:(()=>class de extends H{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(j){const te=j.data;if(te.labels.length&&te.datasets.length){const{labels:{pointStyle:fe,color:Ne}}=j.legend.options;return te.labels.map((Ye,gt)=>{const on=j.getDatasetMeta(0).controller.getStyle(gt);return{text:Ye,fillStyle:on.backgroundColor,strokeStyle:on.borderColor,fontColor:Ne,lineWidth:on.borderWidth,pointStyle:fe,hidden:!j.getDataVisibility(gt),index:gt}})}return[]}},onClick(j,te,fe){fe.chart.toggleDataVisibility(te.index),fe.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(j,te){super(j,te),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(j){const fe=this.chart,Ne=fe.data.labels||[],Ye=(0,n.o)(this._cachedMeta._parsed[j].r,fe.options.locale);return{label:Ne[j]||"",value:Ye}}parseObjectData(j,te,fe,Ne){return n.y.bind(this)(j,te,fe,Ne)}update(j){const te=this._cachedMeta.data;this._updateRadius(),this.updateElements(te,0,te.length,j)}getMinMax(){const te={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((fe,Ne)=>{const Ye=this.getParsed(Ne).r;!isNaN(Ye)&&this.chart.getDataVisibility(Ne)&&(Ye<te.min&&(te.min=Ye),Ye>te.max&&(te.max=Ye))}),te}_updateRadius(){const j=this.chart,te=j.chartArea,fe=j.options,Ne=Math.min(te.right-te.left,te.bottom-te.top),Ye=Math.max(Ne/2,0),Nt=(Ye-Math.max(fe.cutoutPercentage?Ye/100*fe.cutoutPercentage:1,0))/j.getVisibleDatasetCount();this.outerRadius=Ye-Nt*this.index,this.innerRadius=this.outerRadius-Nt}updateElements(j,te,fe,Ne){const Ye="reset"===Ne,gt=this.chart,on=gt.options.animation,ct=this._cachedMeta.rScale,De=ct.xCenter,pe=ct.yCenter,Ge=ct.getIndexAngle(0)-.5*n.P;let sn,xt=Ge;const En=360/this.countVisibleElements();for(sn=0;sn<te;++sn)xt+=this._computeAngle(sn,Ne,En);for(sn=te;sn<te+fe;sn++){const Un=j[sn];let ri=xt,Mi=xt+this._computeAngle(sn,Ne,En),Xi=gt.getDataVisibility(sn)?ct.getDistanceFromCenterForValue(this.getParsed(sn).r):0;xt=Mi,Ye&&(on.animateScale&&(Xi=0),on.animateRotate&&(ri=Mi=Ge));const Ui={x:De,y:pe,innerRadius:0,outerRadius:Xi,startAngle:ri,endAngle:Mi,options:this.resolveDataElementOptions(sn,Un.active?"active":Ne)};this.updateElement(Un,sn,Ui,Ne)}}countVisibleElements(){let te=0;return this._cachedMeta.data.forEach((fe,Ne)=>{!isNaN(this.getParsed(Ne).r)&&this.chart.getDataVisibility(Ne)&&te++}),te}_computeAngle(j,te,fe){return this.chart.getDataVisibility(j)?(0,n.t)(this.resolveDataElementOptions(j,te).angle||fe):0}})(),PieController:(()=>class de extends W{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}})(),RadarController:(()=>class de extends H{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(j){const te=this._cachedMeta.vScale,fe=this.getParsed(j);return{label:te.getLabels()[j],value:""+te.getLabelForValue(fe[te.axis])}}parseObjectData(j,te,fe,Ne){return n.y.bind(this)(j,te,fe,Ne)}update(j){const te=this._cachedMeta,fe=te.dataset,Ne=te.data||[],Ye=te.iScale.getLabels();if(fe.points=Ne,"resize"!==j){const gt=this.resolveDatasetElementOptions(j);this.options.showLine||(gt.borderWidth=0),this.updateElement(fe,void 0,{_loop:!0,_fullLoop:Ye.length===Ne.length,options:gt},j)}this.updateElements(Ne,0,Ne.length,j)}updateElements(j,te,fe,Ne){const Ye=this._cachedMeta.rScale,gt="reset"===Ne;for(let Nt=te;Nt<te+fe;Nt++){const on=j[Nt],ct=this.resolveDataElementOptions(Nt,on.active?"active":Ne),De=Ye.getPointPositionForValue(Nt,this.getParsed(Nt).r),pe=gt?Ye.xCenter:De.x,Ge=gt?Ye.yCenter:De.y,xt={x:pe,y:Ge,angle:De.angle,skip:isNaN(pe)||isNaN(Ge),options:ct};this.updateElement(on,Nt,xt,Ne)}}})(),ScatterController:(()=>class de extends H{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(j){const te=this._cachedMeta,fe=this.chart.data.labels||[],{xScale:Ne,yScale:Ye}=te,gt=this.getParsed(j),Nt=Ne.getLabelForValue(gt.x),on=Ye.getLabelForValue(gt.y);return{label:fe[j]||"",value:"("+Nt+", "+on+")"}}update(j){const te=this._cachedMeta,{data:fe=[]}=te,Ne=this.chart._animationsDisabled;let{start:Ye,count:gt}=(0,n.q)(te,fe,Ne);if(this._drawStart=Ye,this._drawCount=gt,(0,n.w)(te)&&(Ye=0,gt=fe.length),this.options.showLine){const{dataset:Nt,_dataset:on}=te;Nt._chart=this.chart,Nt._datasetIndex=this.index,Nt._decimated=!!on._decimated,Nt.points=fe;const ct=this.resolveDatasetElementOptions(j);ct.segment=this.options.segment,this.updateElement(Nt,void 0,{animated:!Ne,options:ct},j)}this.updateElements(fe,Ye,gt,j)}addElements(){const{showLine:j}=this.options;!this.datasetElementType&&j&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(j,te,fe,Ne){const Ye="reset"===Ne,{iScale:gt,vScale:Nt,_stacked:on,_dataset:ct}=this._cachedMeta,De=this.resolveDataElementOptions(te,Ne),pe=this.getSharedOptions(De),Ge=this.includeOptions(Ne,pe),xt=gt.axis,sn=Nt.axis,{spanGaps:En,segment:Un}=this.options,ri=(0,n.x)(En)?En:Number.POSITIVE_INFINITY,Mi=this.chart._animationsDisabled||Ye||"none"===Ne;let Xi=te>0&&this.getParsed(te-1);for(let Ui=te;Ui<te+fe;++Ui){const fr=j[Ui],xr=this.getParsed(Ui),yr=Mi?fr:{},Rr=(0,n.k)(xr[sn]),co=yr[xt]=gt.getPixelForValue(xr[xt],Ui),Bo=yr[sn]=Ye||Rr?Nt.getBasePixel():Nt.getPixelForValue(on?this.applyStack(Nt,xr,on):xr[sn],Ui);yr.skip=isNaN(co)||isNaN(Bo)||Rr,yr.stop=Ui>0&&Math.abs(xr[xt]-Xi[xt])>ri,Un&&(yr.parsed=xr,yr.raw=ct.data[Ui]),Ge&&(yr.options=pe||this.resolveDataElementOptions(Ui,fr.active?"active":Ne)),Mi||this.updateElement(fr,Ui,yr,Ne),Xi=xr}this.updateSharedOptions(pe,Ne,De)}getMaxOverflow(){const j=this._cachedMeta,te=j.data||[];if(!this.options.showLine){let Nt=0;for(let on=te.length-1;on>=0;--on)Nt=Math.max(Nt,te[on].size(this.resolveDataElementOptions(on))/2);return Nt>0&&Nt}const fe=j.dataset,Ne=fe.options&&fe.options.borderWidth||0;if(!te.length)return Ne;const Ye=te[0].size(this.resolveDataElementOptions(0)),gt=te[te.length-1].size(this.resolveDataElementOptions(te.length-1));return Math.max(Ne,Ye,gt)/2}})()});function Et(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class $e{static override(q){Object.assign($e.prototype,q)}constructor(q){this.options=q||{}}init(){}formats(){return Et()}parse(){return Et()}format(){return Et()}add(){return Et()}diff(){return Et()}startOf(){return Et()}endOf(){return Et()}}var Ze__date=$e;function Qe(de,q,j,te){const{controller:fe,data:Ne,_sorted:Ye}=de,gt=fe._cachedMeta.iScale;if(gt&&q===gt.axis&&"r"!==q&&Ye&&Ne.length){const Nt=gt._reversePixels?n.A:n.B;if(!te)return Nt(Ne,q,j);if(fe._sharedOptions){const on=Ne[0],ct="function"==typeof on.getRange&&on.getRange(q);if(ct){const De=Nt(Ne,q,j-ct),pe=Nt(Ne,q,j+ct);return{lo:De.lo,hi:pe.hi}}}}return{lo:0,hi:Ne.length-1}}function Ve(de,q,j,te,fe){const Ne=de.getSortedVisibleDatasetMetas(),Ye=j[q];for(let gt=0,Nt=Ne.length;gt<Nt;++gt){const{index:on,data:ct}=Ne[gt],{lo:De,hi:pe}=Qe(Ne[gt],q,Ye,fe);for(let Ge=De;Ge<=pe;++Ge){const xt=ct[Ge];xt.skip||te(xt,on,Ge)}}}function Ot(de,q,j,te,fe){const Ne=[];return!fe&&!de.isPointInArea(q)||Ve(de,j,q,function(gt,Nt,on){!fe&&!(0,n.C)(gt,de.chartArea,0)||gt.inRange(q.x,q.y,te)&&Ne.push({element:gt,datasetIndex:Nt,index:on})},!0),Ne}function We(de,q,j,te,fe,Ne){return Ne||de.isPointInArea(q)?"r"!==j||te?function It(de,q,j,te,fe,Ne){let Ye=[];const gt=function nt(de){const q=-1!==de.indexOf("x"),j=-1!==de.indexOf("y");return function(te,fe){const Ne=q?Math.abs(te.x-fe.x):0,Ye=j?Math.abs(te.y-fe.y):0;return Math.sqrt(Math.pow(Ne,2)+Math.pow(Ye,2))}}(j);let Nt=Number.POSITIVE_INFINITY;return Ve(de,j,q,function on(ct,De,pe){const Ge=ct.inRange(q.x,q.y,fe);if(te&&!Ge)return;const xt=ct.getCenterPoint(fe);if(!Ne&&!de.isPointInArea(xt)&&!Ge)return;const En=gt(q,xt);En<Nt?(Ye=[{element:ct,datasetIndex:De,index:pe}],Nt=En):En===Nt&&Ye.push({element:ct,datasetIndex:De,index:pe})}),Ye}(de,q,j,te,fe,Ne):function at(de,q,j,te){let fe=[];return Ve(de,j,q,function Ne(Ye,gt,Nt){const{startAngle:on,endAngle:ct}=Ye.getProps(["startAngle","endAngle"],te),{angle:De}=(0,n.D)(Ye,{x:q.x,y:q.y});(0,n.p)(De,on,ct)&&fe.push({element:Ye,datasetIndex:gt,index:Nt})}),fe}(de,q,j,fe):[]}function xe(de,q,j,te,fe){const Ne=[],Ye="x"===j?"inXRange":"inYRange";let gt=!1;return Ve(de,j,q,(Nt,on,ct)=>{Nt[Ye](q[j],fe)&&(Ne.push({element:Nt,datasetIndex:on,index:ct}),gt=gt||Nt.inRange(q.x,q.y,fe))}),te&&!gt?[]:Ne}var lt={evaluateInteractionItems:Ve,modes:{index(de,q,j,te){const fe=(0,n.z)(q,de),Ne=j.axis||"x",Ye=j.includeInvisible||!1,gt=j.intersect?Ot(de,fe,Ne,te,Ye):We(de,fe,Ne,!1,te,Ye),Nt=[];return gt.length?(de.getSortedVisibleDatasetMetas().forEach(on=>{const ct=gt[0].index,De=on.data[ct];De&&!De.skip&&Nt.push({element:De,datasetIndex:on.index,index:ct})}),Nt):[]},dataset(de,q,j,te){const fe=(0,n.z)(q,de),Ne=j.axis||"xy",Ye=j.includeInvisible||!1;let gt=j.intersect?Ot(de,fe,Ne,te,Ye):We(de,fe,Ne,!1,te,Ye);if(gt.length>0){const Nt=gt[0].datasetIndex,on=de.getDatasetMeta(Nt).data;gt=[];for(let ct=0;ct<on.length;++ct)gt.push({element:on[ct],datasetIndex:Nt,index:ct})}return gt},point:(de,q,j,te)=>Ot(de,(0,n.z)(q,de),j.axis||"xy",te,j.includeInvisible||!1),nearest:(de,q,j,te)=>We(de,(0,n.z)(q,de),j.axis||"xy",j.intersect,te,j.includeInvisible||!1),x:(de,q,j,te)=>xe(de,(0,n.z)(q,de),"x",j.intersect,te),y:(de,q,j,te)=>xe(de,(0,n.z)(q,de),"y",j.intersect,te)}};const ft=["left","top","right","bottom"];function ht(de,q){return de.filter(j=>j.pos===q)}function Xt(de,q){return de.filter(j=>-1===ft.indexOf(j.pos)&&j.box.axis===q)}function Ht(de,q){return de.sort((j,te)=>{const fe=q?te:j,Ne=q?j:te;return fe.weight===Ne.weight?fe.index-Ne.index:fe.weight-Ne.weight})}function St(de,q,j,te){return Math.max(de[j],q[j])+Math.max(de[te],q[te])}function Gt(de,q){de.top=Math.max(de.top,q.top),de.left=Math.max(de.left,q.left),de.bottom=Math.max(de.bottom,q.bottom),de.right=Math.max(de.right,q.right)}function yt(de,q,j,te){const{pos:fe,box:Ne}=j,Ye=de.maxPadding;if(!(0,n.i)(fe)){j.size&&(de[fe]-=j.size);const De=te[j.stack]||{size:0,count:1};De.size=Math.max(De.size,j.horizontal?Ne.height:Ne.width),j.size=De.size/De.count,de[fe]+=j.size}Ne.getPadding&&Gt(Ye,Ne.getPadding());const gt=Math.max(0,q.outerWidth-St(Ye,de,"left","right")),Nt=Math.max(0,q.outerHeight-St(Ye,de,"top","bottom")),on=gt!==de.w,ct=Nt!==de.h;return de.w=gt,de.h=Nt,j.horizontal?{same:on,other:ct}:{same:ct,other:on}}function ke(de,q){const j=q.maxPadding;return function te(fe){const Ne={left:0,top:0,right:0,bottom:0};return fe.forEach(Ye=>{Ne[Ye]=Math.max(q[Ye],j[Ye])}),Ne}(de?["left","right"]:["top","bottom"])}function be(de,q,j,te){const fe=[];let Ne,Ye,gt,Nt,on,ct;for(Ne=0,Ye=de.length,on=0;Ne<Ye;++Ne){gt=de[Ne],Nt=gt.box,Nt.update(gt.width||q.w,gt.height||q.h,ke(gt.horizontal,q));const{same:De,other:pe}=yt(q,j,gt,te);on|=De&&fe.length,ct=ct||pe,Nt.fullSize||fe.push(gt)}return on&&be(fe,q,j,te)||ct}function Ae(de,q,j,te,fe){de.top=j,de.left=q,de.right=q+te,de.bottom=j+fe,de.width=te,de.height=fe}function qe(de,q,j,te){const fe=j.padding;let{x:Ne,y:Ye}=q;for(const gt of de){const Nt=gt.box,on=te[gt.stack]||{count:1,placed:0,weight:1},ct=gt.stackWeight/on.weight||1;if(gt.horizontal){const De=q.w*ct,pe=on.size||Nt.height;(0,n.h)(on.start)&&(Ye=on.start),Nt.fullSize?Ae(Nt,fe.left,Ye,j.outerWidth-fe.right-fe.left,pe):Ae(Nt,q.left+on.placed,Ye,De,pe),on.start=Ye,on.placed+=De,Ye=Nt.bottom}else{const De=q.h*ct,pe=on.size||Nt.width;(0,n.h)(on.start)&&(Ne=on.start),Nt.fullSize?Ae(Nt,Ne,fe.top,pe,j.outerHeight-fe.bottom-fe.top):Ae(Nt,Ne,q.top+on.placed,pe,De),on.start=Ne,on.placed+=De,Ne=Nt.right}}q.x=Ne,q.y=Ye}var Lt={addBox(de,q){de.boxes||(de.boxes=[]),q.fullSize=q.fullSize||!1,q.position=q.position||"top",q.weight=q.weight||0,q._layers=q._layers||function(){return[{z:0,draw(j){q.draw(j)}}]},de.boxes.push(q)},removeBox(de,q){const j=de.boxes?de.boxes.indexOf(q):-1;-1!==j&&de.boxes.splice(j,1)},configure(de,q,j){q.fullSize=j.fullSize,q.position=j.position,q.weight=j.weight},update(de,q,j,te){if(!de)return;const fe=(0,n.E)(de.options.layout.padding),Ne=Math.max(q-fe.width,0),Ye=Math.max(j-fe.height,0),gt=function et(de){const q=function Je(de){const q=[];let j,te,fe,Ne,Ye,gt;for(j=0,te=(de||[]).length;j<te;++j)fe=de[j],({position:Ne,options:{stack:Ye,stackWeight:gt=1}}=fe),q.push({index:j,box:fe,pos:Ne,horizontal:fe.isHorizontal(),weight:fe.weight,stack:Ye&&Ne+Ye,stackWeight:gt});return q}(de),j=Ht(q.filter(on=>on.box.fullSize),!0),te=Ht(ht(q,"left"),!0),fe=Ht(ht(q,"right")),Ne=Ht(ht(q,"top"),!0),Ye=Ht(ht(q,"bottom")),gt=Xt(q,"x"),Nt=Xt(q,"y");return{fullSize:j,leftAndTop:te.concat(Ne),rightAndBottom:fe.concat(Nt).concat(Ye).concat(gt),chartArea:ht(q,"chartArea"),vertical:te.concat(fe).concat(Nt),horizontal:Ne.concat(Ye).concat(gt)}}(de.boxes),Nt=gt.vertical,on=gt.horizontal;(0,n.F)(de.boxes,sn=>{"function"==typeof sn.beforeLayout&&sn.beforeLayout()});const ct=Nt.reduce((sn,En)=>En.box.options&&!1===En.box.options.display?sn:sn+1,0)||1,De=Object.freeze({outerWidth:q,outerHeight:j,padding:fe,availableWidth:Ne,availableHeight:Ye,vBoxMaxWidth:Ne/2/ct,hBoxMaxHeight:Ye/2}),pe=Object.assign({},fe);Gt(pe,(0,n.E)(te));const Ge=Object.assign({maxPadding:pe,w:Ne,h:Ye,x:fe.left,y:fe.top},fe),xt=function rt(de,q){const j=function tt(de){const q={};for(const j of de){const{stack:te,pos:fe,stackWeight:Ne}=j;if(!te||!ft.includes(fe))continue;const Ye=q[te]||(q[te]={count:0,placed:0,weight:0,size:0});Ye.count++,Ye.weight+=Ne}return q}(de),{vBoxMaxWidth:te,hBoxMaxHeight:fe}=q;let Ne,Ye,gt;for(Ne=0,Ye=de.length;Ne<Ye;++Ne){gt=de[Ne];const{fullSize:Nt}=gt.box,on=j[gt.stack],ct=on&>.stackWeight/on.weight;gt.horizontal?(gt.width=ct?ct*te:Nt&&q.availableWidth,gt.height=fe):(gt.width=te,gt.height=ct?ct*fe:Nt&&q.availableHeight)}return j}(Nt.concat(on),De);be(gt.fullSize,Ge,De,xt),be(Nt,Ge,De,xt),be(on,Ge,De,xt)&&be(Nt,Ge,De,xt),function Wt(de){const q=de.maxPadding;function j(te){const fe=Math.max(q[te]-de[te],0);return de[te]+=fe,fe}de.y+=j("top"),de.x+=j("left"),j("right"),j("bottom")}(Ge),qe(gt.leftAndTop,Ge,De,xt),Ge.x+=Ge.w,Ge.y+=Ge.h,qe(gt.rightAndBottom,Ge,De,xt),de.chartArea={left:Ge.left,top:Ge.top,right:Ge.left+Ge.w,bottom:Ge.top+Ge.h,height:Ge.h,width:Ge.w},(0,n.F)(gt.chartArea,sn=>{const En=sn.box;Object.assign(En,de.chartArea),En.update(Ge.w,Ge.h,{left:0,top:0,right:0,bottom:0})})}};class Zt{acquireContext(q,j){}releaseContext(q){return!1}addEventListener(q,j,te){}removeEventListener(q,j,te){}getDevicePixelRatio(){return 1}getMaximumSize(q,j,te,fe){return j=Math.max(0,j||q.width),te=te||q.height,{width:j,height:Math.max(0,fe?Math.floor(j/fe):te)}}isAttached(q){return!0}updateConfig(q){}}class fn extends Zt{acquireContext(q){return q&&q.getContext&&q.getContext("2d")||null}updateConfig(q){q.options.animation=!1}}const hn="$chartjs",On={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},fi=de=>null===de||""===de,Fi=!!n.K&&{passive:!0};function bn(de,q,j){de.canvas.removeEventListener(q,j,Fi)}function jt(de,q){for(const j of de)if(j===q||j.contains(q))return!0}function gn(de,q,j){const te=de.canvas,fe=new MutationObserver(Ne=>{let Ye=!1;for(const gt of Ne)Ye=Ye||jt(gt.addedNodes,te),Ye=Ye&&!jt(gt.removedNodes,te);Ye&&j()});return fe.observe(document,{childList:!0,subtree:!0}),fe}function ui(de,q,j){const te=de.canvas,fe=new MutationObserver(Ne=>{let Ye=!1;for(const gt of Ne)Ye=Ye||jt(gt.removedNodes,te),Ye=Ye&&!jt(gt.addedNodes,te);Ye&&j()});return fe.observe(document,{childList:!0,subtree:!0}),fe}const Ii=new Map;let pr=0;function zr(){const de=window.devicePixelRatio;de!==pr&&(pr=de,Ii.forEach((q,j)=>{j.currentDevicePixelRatio!==de&&q()}))}function ti(de,q,j){const te=de.canvas,fe=te&&(0,n.I)(te);if(!fe)return;const Ne=(0,n.L)((gt,Nt)=>{const on=fe.clientWidth;j(gt,Nt),on<fe.clientWidth&&j()},window),Ye=new ResizeObserver(gt=>{const Nt=gt[0],on=Nt.contentRect.width,ct=Nt.contentRect.height;0===on&&0===ct||Ne(on,ct)});return Ye.observe(fe),function Cn(de,q){Ii.size||window.addEventListener("resize",zr),Ii.set(de,q)}(de,Ne),Ye}function pi(de,q,j){j&&j.disconnect(),"resize"===q&&function pn(de){Ii.delete(de),Ii.size||window.removeEventListener("resize",zr)}(de)}function cn(de,q,j){const te=de.canvas,fe=(0,n.L)(Ne=>{null!==de.ctx&&j(function Pt(de,q){const j=On[de.type]||de.type,{x:te,y:fe}=(0,n.z)(de,q);return{type:j,chart:q,native:de,x:void 0!==te?te:null,y:void 0!==fe?fe:null}}(Ne,de))},de);return function bt(de,q,j){de.addEventListener(q,j,Fi)}(te,q,fe),fe}class An extends Zt{acquireContext(q,j){const te=q&&q.getContext&&q.getContext("2d");return te&&te.canvas===q?(function Ji(de,q){const j=de.style,te=de.getAttribute("height"),fe=de.getAttribute("width");if(de[hn]={initial:{height:te,width:fe,style:{display:j.display,height:j.height,width:j.width}}},j.display=j.display||"block",j.boxSizing=j.boxSizing||"border-box",fi(fe)){const Ne=(0,n.J)(de,"width");void 0!==Ne&&(de.width=Ne)}if(fi(te))if(""===de.style.height)de.height=de.width/(q||2);else{const Ne=(0,n.J)(de,"height");void 0!==Ne&&(de.height=Ne)}}(q,j),te):null}releaseContext(q){const j=q.canvas;if(!j[hn])return!1;const te=j[hn].initial;["height","width"].forEach(Ne=>{const Ye=te[Ne];(0,n.k)(Ye)?j.removeAttribute(Ne):j.setAttribute(Ne,Ye)});const fe=te.style||{};return Object.keys(fe).forEach(Ne=>{j.style[Ne]=fe[Ne]}),j.width=j.width,delete j[hn],!0}addEventListener(q,j,te){this.removeEventListener(q,j),(q.$proxies||(q.$proxies={}))[j]=({attach:gn,detach:ui,resize:ti}[j]||cn)(q,j,te)}removeEventListener(q,j){const te=q.$proxies||(q.$proxies={}),fe=te[j];fe&&(({attach:pi,detach:pi,resize:pi}[j]||bn)(q,j,fe),te[j]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(q,j,te,fe){return(0,n.G)(q,j,te,fe)}isAttached(q){const j=(0,n.I)(q);return!(!j||!j.isConnected)}}class hi{static defaults={};static defaultRoutes=void 0;active=!1;tooltipPosition(q){const{x:j,y:te}=this.getProps(["x","y"],q);return{x:j,y:te}}hasValue(){return(0,n.x)(this.x)&&(0,n.x)(this.y)}getProps(q,j){const te=this.$animations;if(!j||!te)return this;const fe={};return q.forEach(Ne=>{fe[Ne]=te[Ne]&&te[Ne].active()?te[Ne]._to:this[Ne]}),fe}}function ln(de,q,j,te,fe){const Ne=(0,n.v)(te,0),Ye=Math.min((0,n.v)(fe,de.length),de.length);let Nt,on,ct,gt=0;for(j=Math.ceil(j),fe&&(Nt=fe-te,j=Nt/Math.floor(Nt/j)),ct=Ne;ct<0;)gt++,ct=Math.round(Ne+gt*j);for(on=Math.max(Ne,0);on<Ye;on++)on===ct&&(q.push(de[on]),gt++,ct=Math.round(Ne+gt*j))}const Mr=(de,q,j)=>"top"===q||"left"===q?de[q]+j:de[q]-j;function $r(de,q){const j=[],te=de.length/q,fe=de.length;let Ne=0;for(;Ne<fe;Ne+=te)j.push(de[Math.floor(Ne)]);return j}function _o(de,q,j){const te=de.ticks.length,fe=Math.min(q,te-1),Ne=de._startPixel,Ye=de._endPixel;let on,Nt=de.getPixelForTick(fe);if(!(j&&(on=1===te?Math.max(Nt-Ne,Ye-Nt):0===q?(de.getPixelForTick(1)-Nt)/2:(Nt-de.getPixelForTick(fe-1))/2,Nt+=fe<q?on:-on,Nt<Ne-1e-6||Nt>Ye+1e-6)))return Nt}function Kn(de){return de.drawTicks?de.tickLength:0}function gi(de,q){if(!de.display)return 0;const j=(0,n.a0)(de.font,q),te=(0,n.E)(de.padding);return((0,n.b)(de.text)?de.text.length:1)*j.lineHeight+te.height}function Qi(de,q,j){let te=(0,n.a1)(de);return(j&&"right"!==q||!j&&"right"===q)&&(te=(de=>"left"===de?"right":"right"===de?"left":de)(te)),te}class jr extends hi{constructor(q){super(),this.id=q.id,this.type=q.type,this.options=void 0,this.ctx=q.ctx,this.chart=q.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(q){this.options=q.setContext(this.getContext()),this.axis=q.axis,this._userMin=this.parse(q.min),this._userMax=this.parse(q.max),this._suggestedMin=this.parse(q.suggestedMin),this._suggestedMax=this.parse(q.suggestedMax)}parse(q,j){return q}getUserBounds(){let{_userMin:q,_userMax:j,_suggestedMin:te,_suggestedMax:fe}=this;return q=(0,n.O)(q,Number.POSITIVE_INFINITY),j=(0,n.O)(j,Number.NEGATIVE_INFINITY),te=(0,n.O)(te,Number.POSITIVE_INFINITY),fe=(0,n.O)(fe,Number.NEGATIVE_INFINITY),{min:(0,n.O)(q,te),max:(0,n.O)(j,fe),minDefined:(0,n.g)(q),maxDefined:(0,n.g)(j)}}getMinMax(q){let Ye,{min:j,max:te,minDefined:fe,maxDefined:Ne}=this.getUserBounds();if(fe&&Ne)return{min:j,max:te};const gt=this.getMatchingVisibleMetas();for(let Nt=0,on=gt.length;Nt<on;++Nt)Ye=gt[Nt].controller.getMinMax(this,q),fe||(j=Math.min(j,Ye.min)),Ne||(te=Math.max(te,Ye.max));return j=Ne&&j>te?te:j,te=fe&&j>te?j:te,{min:(0,n.O)(j,(0,n.O)(te,j)),max:(0,n.O)(te,(0,n.O)(j,te))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const q=this.chart.data;return this.options.labels||(this.isHorizontal()?q.xLabels:q.yLabels)||q.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){(0,n.Q)(this.options.beforeUpdate,[this])}update(q,j,te){const{beginAtZero:fe,grace:Ne,ticks:Ye}=this.options,gt=Ye.sampleSize;this.beforeUpdate(),this.maxWidth=q,this.maxHeight=j,this._margins=te=Object.assign({left:0,right:0,top:0,bottom:0},te),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+te.left+te.right:this.height+te.top+te.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=(0,n.R)(this,Ne,fe),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const Nt=gt<this.ticks.length;this._convertTicksToLabels(Nt?$r(this.ticks,gt):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),Ye.display&&(Ye.autoSkip||"auto"===Ye.source)&&(this.ticks=function xi(de,q){const j=de.options.ticks,te=function xn(de){const q=de.options.offset,j=de._tickSize();return Math.floor(Math.min(de._length/j+(q?0:1),de._maxLength/j))}(de),fe=Math.min(j.maxTicksLimit||te,te),Ne=j.major.enabled?function Gn(de){const q=[];let j,te;for(j=0,te=de.length;j<te;j++)de[j].major&&q.push(j);return q}(q):[],Ye=Ne.length,gt=Ne[0],Nt=Ne[Ye-1],on=[];if(Ye>fe)return function Ci(de,q,j,te){let Ye,fe=0,Ne=j[0];for(te=Math.ceil(te),Ye=0;Ye<de.length;Ye++)Ye===Ne&&(q.push(de[Ye]),fe++,Ne=j[fe*te])}(q,on,Ne,Ye/fe),on;const ct=function Yn(de,q,j){const te=function bi(de){const q=de.length;let j,te;if(q<2)return!1;for(te=de[0],j=1;j<q;++j)if(de[j]-de[j-1]!==te)return!1;return te}(de),fe=q.length/j;if(!te)return Math.max(fe,1);const Ne=(0,n.N)(te);for(let Ye=0,gt=Ne.length-1;Ye<gt;Ye++){const Nt=Ne[Ye];if(Nt>fe)return Nt}return Math.max(fe,1)}(Ne,q,fe);if(Ye>0){let De,pe;const Ge=Ye>1?Math.round((Nt-gt)/(Ye-1)):null;for(ln(q,on,ct,(0,n.k)(Ge)?0:gt-Ge,gt),De=0,pe=Ye-1;De<pe;De++)ln(q,on,ct,Ne[De],Ne[De+1]);return ln(q,on,ct,Nt,(0,n.k)(Ge)?q.length:Nt+Ge),on}return ln(q,on,ct),on}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),Nt&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let j,te,q=this.options.reverse;this.isHorizontal()?(j=this.left,te=this.right):(j=this.top,te=this.bottom,q=!q),this._startPixel=j,this._endPixel=te,this._reversePixels=q,this._length=te-j,this._alignToPixels=this.options.alignToPixels}afterUpdate(){(0,n.Q)(this.options.afterUpdate,[this])}beforeSetDimensions(){(0,n.Q)(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){(0,n.Q)(this.options.afterSetDimensions,[this])}_callHooks(q){this.chart.notifyPlugins(q,this.getContext()),(0,n.Q)(this.options[q],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){(0,n.Q)(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(q){const j=this.options.ticks;let te,fe,Ne;for(te=0,fe=q.length;te<fe;te++)Ne=q[te],Ne.label=(0,n.Q)(j.callback,[Ne.value,te,q],this)}afterTickToLabelConversion(){(0,n.Q)(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){(0,n.Q)(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const q=this.options,j=q.ticks,te=this.ticks.length,fe=j.minRotation||0,Ne=j.maxRotation;let gt,Nt,on,Ye=fe;if(!this._isVisible()||!j.display||fe>=Ne||te<=1||!this.isHorizontal())return void(this.labelRotation=fe);const ct=this._getLabelSizes(),De=ct.widest.width,pe=ct.highest.height,Ge=(0,n.S)(this.chart.width-De,0,this.maxWidth);gt=q.offset?this.maxWidth/te:Ge/(te-1),De+6>gt&&(gt=Ge/(te-(q.offset?.5:1)),Nt=this.maxHeight-Kn(q.grid)-j.padding-gi(q.title,this.chart.options.font),on=Math.sqrt(De*De+pe*pe),Ye=(0,n.U)(Math.min(Math.asin((0,n.S)((ct.highest.height+6)/gt,-1,1)),Math.asin((0,n.S)(Nt/on,-1,1))-Math.asin((0,n.S)(pe/on,-1,1)))),Ye=Math.max(fe,Math.min(Ne,Ye))),this.labelRotation=Ye}afterCalculateLabelRotation(){(0,n.Q)(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){(0,n.Q)(this.options.beforeFit,[this])}fit(){const q={width:0,height:0},{chart:j,options:{ticks:te,title:fe,grid:Ne}}=this,Ye=this._isVisible(),gt=this.isHorizontal();if(Ye){const Nt=gi(fe,j.options.font);if(gt?(q.width=this.maxWidth,q.height=Kn(Ne)+Nt):(q.height=this.maxHeight,q.width=Kn(Ne)+Nt),te.display&&this.ticks.length){const{first:on,last:ct,widest:De,highest:pe}=this._getLabelSizes(),Ge=2*te.padding,xt=(0,n.t)(this.labelRotation),sn=Math.cos(xt),En=Math.sin(xt);gt?q.height=Math.min(this.maxHeight,q.height+(te.mirror?0:En*De.width+sn*pe.height)+Ge):q.width=Math.min(this.maxWidth,q.width+(te.mirror?0:sn*De.width+En*pe.height)+Ge),this._calculatePadding(on,ct,En,sn)}}this._handleMargins(),gt?(this.width=this._length=j.width-this._margins.left-this._margins.right,this.height=q.height):(this.width=q.width,this.height=this._length=j.height-this._margins.top-this._margins.bottom)}_calculatePadding(q,j,te,fe){const{ticks:{align:Ne,padding:Ye},position:gt}=this.options,Nt=0!==this.labelRotation,on="top"!==gt&&"x"===this.axis;if(this.isHorizontal()){const ct=this.getPixelForTick(0)-this.left,De=this.right-this.getPixelForTick(this.ticks.length-1);let pe=0,Ge=0;Nt?on?(pe=fe*q.width,Ge=te*j.height):(pe=te*q.height,Ge=fe*j.width):"start"===Ne?Ge=j.width:"end"===Ne?pe=q.width:"inner"!==Ne&&(pe=q.width/2,Ge=j.width/2),this.paddingLeft=Math.max((pe-ct+Ye)*this.width/(this.width-ct),0),this.paddingRight=Math.max((Ge-De+Ye)*this.width/(this.width-De),0)}else{let ct=j.height/2,De=q.height/2;"start"===Ne?(ct=0,De=q.height):"end"===Ne&&(ct=j.height,De=0),this.paddingTop=ct+Ye,this.paddingBottom=De+Ye}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){(0,n.Q)(this.options.afterFit,[this])}isHorizontal(){const{axis:q,position:j}=this.options;return"top"===j||"bottom"===j||"x"===q}isFullSize(){return this.options.fullSize}_convertTicksToLabels(q){let j,te;for(this.beforeTickToLabelConversion(),this.generateTickLabels(q),j=0,te=q.length;j<te;j++)(0,n.k)(q[j].label)&&(q.splice(j,1),te--,j--);this.afterTickToLabelConversion()}_getLabelSizes(){let q=this._labelSizes;if(!q){const j=this.options.ticks.sampleSize;let te=this.ticks;j<te.length&&(te=$r(te,j)),this._labelSizes=q=this._computeLabelSizes(te,te.length)}return q}_computeLabelSizes(q,j){const{ctx:te,_longestTextCache:fe}=this,Ne=[],Ye=[];let on,ct,De,pe,Ge,xt,sn,En,Un,ri,Mi,gt=0,Nt=0;for(on=0;on<j;++on){if(pe=q[on].label,Ge=this._resolveTickFontOptions(on),te.font=xt=Ge.string,sn=fe[xt]=fe[xt]||{data:{},gc:[]},En=Ge.lineHeight,Un=ri=0,(0,n.k)(pe)||(0,n.b)(pe)){if((0,n.b)(pe))for(ct=0,De=pe.length;ct<De;++ct)Mi=pe[ct],!(0,n.k)(Mi)&&!(0,n.b)(Mi)&&(Un=(0,n.V)(te,sn.data,sn.gc,Un,Mi),ri+=En)}else Un=(0,n.V)(te,sn.data,sn.gc,Un,pe),ri=En;Ne.push(Un),Ye.push(ri),gt=Math.max(Un,gt),Nt=Math.max(ri,Nt)}!function bo(de,q){(0,n.F)(de,j=>{const te=j.gc,fe=te.length/2;let Ne;if(fe>q){for(Ne=0;Ne<fe;++Ne)delete j.data[te[Ne]];te.splice(0,fe)}})}(fe,j);const Xi=Ne.indexOf(gt),Ui=Ye.indexOf(Nt),fr=xr=>({width:Ne[xr]||0,height:Ye[xr]||0});return{first:fr(0),last:fr(j-1),widest:fr(Xi),highest:fr(Ui),widths:Ne,heights:Ye}}getLabelForValue(q){return q}getPixelForValue(q,j){return NaN}getValueForPixel(q){}getPixelForTick(q){const j=this.ticks;return q<0||q>j.length-1?null:this.getPixelForValue(j[q].value)}getPixelForDecimal(q){this._reversePixels&&(q=1-q);const j=this._startPixel+q*this._length;return(0,n.W)(this._alignToPixels?(0,n.X)(this.chart,j,0):j)}getDecimalForPixel(q){const j=(q-this._startPixel)/this._length;return this._reversePixels?1-j:j}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:q,max:j}=this;return q<0&&j<0?j:q>0&&j>0?q:0}getContext(q){const j=this.ticks||[];if(q>=0&&q<j.length){const te=j[q];return te.$context||(te.$context=function ji(de,q,j){return(0,n.j)(de,{tick:j,index:q,type:"tick"})}(this.getContext(),q,te))}return this.$context||(this.$context=function Pi(de,q){return(0,n.j)(de,{scale:q,type:"scale"})}(this.chart.getContext(),this))}_tickSize(){const q=this.options.ticks,j=(0,n.t)(this.labelRotation),te=Math.abs(Math.cos(j)),fe=Math.abs(Math.sin(j)),Ne=this._getLabelSizes(),Ye=q.autoSkipPadding||0,gt=Ne?Ne.widest.width+Ye:0,Nt=Ne?Ne.highest.height+Ye:0;return this.isHorizontal()?Nt*te>gt*fe?gt/te:Nt/fe:Nt*fe<gt*te?Nt/te:gt/fe}_isVisible(){const q=this.options.display;return"auto"!==q?!!q:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(q){const j=this.axis,te=this.chart,fe=this.options,{grid:Ne,position:Ye,border:gt}=fe,Nt=Ne.offset,on=this.isHorizontal(),De=this.ticks.length+(Nt?1:0),pe=Kn(Ne),Ge=[],xt=gt.setContext(this.getContext()),sn=xt.display?xt.width:0,En=sn/2,Un=function(io){return(0,n.X)(te,io,sn)};let ri,Mi,Xi,Ui,fr,xr,yr,Rr,co,Bo,os,Es;if("top"===Ye)ri=Un(this.bottom),xr=this.bottom-pe,Rr=ri-En,Bo=Un(q.top)+En,Es=q.bottom;else if("bottom"===Ye)ri=Un(this.top),Bo=q.top,Es=Un(q.bottom)-En,xr=ri+En,Rr=this.top+pe;else if("left"===Ye)ri=Un(this.right),fr=this.right-pe,yr=ri-En,co=Un(q.left)+En,os=q.right;else if("right"===Ye)ri=Un(this.left),co=q.left,os=Un(q.right)-En,fr=ri+En,yr=this.left+pe;else if("x"===j){if("center"===Ye)ri=Un((q.top+q.bottom)/2+.5);else if((0,n.i)(Ye)){const io=Object.keys(Ye)[0];ri=Un(this.chart.scales[io].getPixelForValue(Ye[io]))}Bo=q.top,Es=q.bottom,xr=ri+En,Rr=xr+pe}else if("y"===j){if("center"===Ye)ri=Un((q.left+q.right)/2);else if((0,n.i)(Ye)){const io=Object.keys(Ye)[0];ri=Un(this.chart.scales[io].getPixelForValue(Ye[io]))}fr=ri-En,yr=fr-pe,co=q.left,os=q.right}const Fs=(0,n.v)(fe.ticks.maxTicksLimit,De),Qs=Math.max(1,Math.ceil(De/Fs));for(Mi=0;Mi<De;Mi+=Qs){const io=this.getContext(Mi),Us=Ne.setContext(io),Na=gt.setContext(io),Is=Us.lineWidth,yl=Us.color,x=Na.dash||[],h=Na.dashOffset,b=Us.tickWidth,k=Us.tickColor,ee=Us.tickBorderDash||[],he=Us.tickBorderDashOffset;Xi=_o(this,Mi,Nt),void 0!==Xi&&(Ui=(0,n.X)(te,Xi,Is),on?fr=yr=co=os=Ui:xr=Rr=Bo=Es=Ui,Ge.push({tx1:fr,ty1:xr,tx2:yr,ty2:Rr,x1:co,y1:Bo,x2:os,y2:Es,width:Is,color:yl,borderDash:x,borderDashOffset:h,tickWidth:b,tickColor:k,tickBorderDash:ee,tickBorderDashOffset:he}))}return this._ticksLength=De,this._borderValue=ri,Ge}_computeLabelItems(q){const j=this.axis,te=this.options,{position:fe,ticks:Ne}=te,Ye=this.isHorizontal(),gt=this.ticks,{align:Nt,crossAlign:on,padding:ct,mirror:De}=Ne,pe=Kn(te.grid),Ge=pe+ct,xt=De?-ct:Ge,sn=-(0,n.t)(this.labelRotation),En=[];let Un,ri,Mi,Xi,Ui,fr,xr,yr,Rr,co,Bo,os,Es="middle";if("top"===fe)fr=this.bottom-xt,xr=this._getXAxisLabelAlignment();else if("bottom"===fe)fr=this.top+xt,xr=this._getXAxisLabelAlignment();else if("left"===fe){const Qs=this._getYAxisLabelAlignment(pe);xr=Qs.textAlign,Ui=Qs.x}else if("right"===fe){const Qs=this._getYAxisLabelAlignment(pe);xr=Qs.textAlign,Ui=Qs.x}else if("x"===j){if("center"===fe)fr=(q.top+q.bottom)/2+Ge;else if((0,n.i)(fe)){const Qs=Object.keys(fe)[0];fr=this.chart.scales[Qs].getPixelForValue(fe[Qs])+Ge}xr=this._getXAxisLabelAlignment()}else if("y"===j){if("center"===fe)Ui=(q.left+q.right)/2-Ge;else if((0,n.i)(fe)){const Qs=Object.keys(fe)[0];Ui=this.chart.scales[Qs].getPixelForValue(fe[Qs])}xr=this._getYAxisLabelAlignment(pe).textAlign}"y"===j&&("start"===Nt?Es="top":"end"===Nt&&(Es="bottom"));const Fs=this._getLabelSizes();for(Un=0,ri=gt.length;Un<ri;++Un){Mi=gt[Un],Xi=Mi.label;const Qs=Ne.setContext(this.getContext(Un));yr=this.getPixelForTick(Un)+Ne.labelOffset,Rr=this._resolveTickFontOptions(Un),co=Rr.lineHeight,Bo=(0,n.b)(Xi)?Xi.length:1;const io=Bo/2,Us=Qs.color,Na=Qs.textStrokeColor,Is=Qs.textStrokeWidth;let x,yl=xr;if(Ye?(Ui=yr,"inner"===xr&&(yl=Un===ri-1?this.options.reverse?"left":"right":0===Un?this.options.reverse?"right":"left":"center"),os="top"===fe?"near"===on||0!==sn?-Bo*co+co/2:"center"===on?-Fs.highest.height/2-io*co+co:co/2-Fs.highest.height:"near"===on||0!==sn?co/2:"center"===on?Fs.highest.height/2-io*co:Fs.highest.height-Bo*co,De&&(os*=-1),0!==sn&&!Qs.showLabelBackdrop&&(Ui+=co/2*Math.sin(sn))):(fr=yr,os=(1-Bo)*co/2),Qs.showLabelBackdrop){const h=(0,n.E)(Qs.backdropPadding),b=Fs.heights[Un],k=Fs.widths[Un];let ee=os-h.top,he=0-h.left;switch(Es){case"middle":ee-=b/2;break;case"bottom":ee-=b}switch(xr){case"center":he-=k/2;break;case"right":he-=k}x={left:he,top:ee,width:k+h.width,height:b+h.height,color:Qs.backdropColor}}En.push({rotation:sn,label:Xi,font:Rr,color:Us,strokeColor:Na,strokeWidth:Is,textOffset:os,textAlign:yl,textBaseline:Es,translation:[Ui,fr],backdrop:x})}return En}_getXAxisLabelAlignment(){const{position:q,ticks:j}=this.options;if(-(0,n.t)(this.labelRotation))return"top"===q?"left":"right";let fe="center";return"start"===j.align?fe="left":"end"===j.align?fe="right":"inner"===j.align&&(fe="inner"),fe}_getYAxisLabelAlignment(q){const{position:j,ticks:{crossAlign:te,mirror:fe,padding:Ne}}=this.options,gt=q+Ne,Nt=this._getLabelSizes().widest.width;let on,ct;return"left"===j?fe?(ct=this.right+Ne,"near"===te?on="left":"center"===te?(on="center",ct+=Nt/2):(on="right",ct+=Nt)):(ct=this.right-gt,"near"===te?on="right":"center"===te?(on="center",ct-=Nt/2):(on="left",ct=this.left)):"right"===j?fe?(ct=this.left+Ne,"near"===te?on="right":"center"===te?(on="center",ct-=Nt/2):(on="left",ct-=Nt)):(ct=this.left+gt,"near"===te?on="left":"center"===te?(on="center",ct+=Nt/2):(on="right",ct=this.right)):on="right",{textAlign:on,x:ct}}_computeLabelArea(){if(this.options.ticks.mirror)return;const q=this.chart,j=this.options.position;return"left"===j||"right"===j?{top:0,left:this.left,bottom:q.height,right:this.right}:"top"===j||"bottom"===j?{top:this.top,left:0,bottom:this.bottom,right:q.width}:void 0}drawBackground(){const{ctx:q,options:{backgroundColor:j},left:te,top:fe,width:Ne,height:Ye}=this;j&&(q.save(),q.fillStyle=j,q.fillRect(te,fe,Ne,Ye),q.restore())}getLineWidthForValue(q){const j=this.options.grid;if(!this._isVisible()||!j.display)return 0;const fe=this.ticks.findIndex(Ne=>Ne.value===q);return fe>=0?j.setContext(this.getContext(fe)).lineWidth:0}drawGrid(q){const j=this.options.grid,te=this.ctx,fe=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(q));let Ne,Ye;const gt=(Nt,on,ct)=>{!ct.width||!ct.color||(te.save(),te.lineWidth=ct.width,te.strokeStyle=ct.color,te.setLineDash(ct.borderDash||[]),te.lineDashOffset=ct.borderDashOffset,te.beginPath(),te.moveTo(Nt.x,Nt.y),te.lineTo(on.x,on.y),te.stroke(),te.restore())};if(j.display)for(Ne=0,Ye=fe.length;Ne<Ye;++Ne){const Nt=fe[Ne];j.drawOnChartArea&>({x:Nt.x1,y:Nt.y1},{x:Nt.x2,y:Nt.y2},Nt),j.drawTicks&>({x:Nt.tx1,y:Nt.ty1},{x:Nt.tx2,y:Nt.ty2},{color:Nt.tickColor,width:Nt.tickWidth,borderDash:Nt.tickBorderDash,borderDashOffset:Nt.tickBorderDashOffset})}}drawBorder(){const{chart:q,ctx:j,options:{border:te,grid:fe}}=this,Ne=te.setContext(this.getContext()),Ye=te.display?Ne.width:0;if(!Ye)return;const gt=fe.setContext(this.getContext(0)).lineWidth,Nt=this._borderValue;let on,ct,De,pe;this.isHorizontal()?(on=(0,n.X)(q,this.left,Ye)-Ye/2,ct=(0,n.X)(q,this.right,gt)+gt/2,De=pe=Nt):(De=(0,n.X)(q,this.top,Ye)-Ye/2,pe=(0,n.X)(q,this.bottom,gt)+gt/2,on=ct=Nt),j.save(),j.lineWidth=Ne.width,j.strokeStyle=Ne.color,j.beginPath(),j.moveTo(on,De),j.lineTo(ct,pe),j.stroke(),j.restore()}drawLabels(q){if(!this.options.ticks.display)return;const te=this.ctx,fe=this._computeLabelArea();fe&&(0,n.Y)(te,fe);const Ne=this._labelItems||(this._labelItems=this._computeLabelItems(q));let Ye,gt;for(Ye=0,gt=Ne.length;Ye<gt;++Ye){const Nt=Ne[Ye];(0,n.Z)(te,Nt.label,0,Nt.textOffset,Nt.font,Nt)}fe&&(0,n.$)(te)}drawTitle(){const{ctx:q,options:{position:j,title:te,reverse:fe}}=this;if(!te.display)return;const Ne=(0,n.a0)(te.font),Ye=(0,n.E)(te.padding),gt=te.align;let Nt=Ne.lineHeight/2;"bottom"===j||"center"===j||(0,n.i)(j)?(Nt+=Ye.bottom,(0,n.b)(te.text)&&(Nt+=Ne.lineHeight*(te.text.length-1))):Nt+=Ye.top;const{titleX:on,titleY:ct,maxWidth:De,rotation:pe}=function ar(de,q,j,te){const{top:fe,left:Ne,bottom:Ye,right:gt,chart:Nt}=de,{chartArea:on,scales:ct}=Nt;let pe,Ge,xt,De=0;const sn=Ye-fe,En=gt-Ne;if(de.isHorizontal()){if(Ge=(0,n.a2)(te,Ne,gt),(0,n.i)(j)){const Un=Object.keys(j)[0];xt=ct[Un].getPixelForValue(j[Un])+sn-q}else xt="center"===j?(on.bottom+on.top)/2+sn-q:Mr(de,j,q);pe=gt-Ne}else{if((0,n.i)(j)){const Un=Object.keys(j)[0];Ge=ct[Un].getPixelForValue(j[Un])-En+q}else Ge="center"===j?(on.left+on.right)/2-En+q:Mr(de,j,q);xt=(0,n.a2)(te,Ye,fe),De="left"===j?-n.H:n.H}return{titleX:Ge,titleY:xt,maxWidth:pe,rotation:De}}(this,Nt,j,gt);(0,n.Z)(q,te.text,0,0,Ne,{color:te.color,maxWidth:De,rotation:pe,textAlign:Qi(gt,j,fe),textBaseline:"middle",translation:[on,ct]})}draw(q){this._isVisible()&&(this.drawBackground(),this.drawGrid(q),this.drawBorder(),this.drawTitle(),this.drawLabels(q))}_layers(){const q=this.options,j=q.ticks&&q.ticks.z||0,te=(0,n.v)(q.grid&&q.grid.z,-1),fe=(0,n.v)(q.border&&q.border.z,0);return this._isVisible()&&this.draw===jr.prototype.draw?[{z:te,draw:Ne=>{this.drawBackground(),this.drawGrid(Ne),this.drawTitle()}},{z:fe,draw:()=>{this.drawBorder()}},{z:j,draw:Ne=>{this.drawLabels(Ne)}}]:[{z:j,draw:Ne=>{this.draw(Ne)}}]}getMatchingVisibleMetas(q){const j=this.chart.getSortedVisibleDatasetMetas(),te=this.axis+"AxisID",fe=[];let Ne,Ye;for(Ne=0,Ye=j.length;Ne<Ye;++Ne){const gt=j[Ne];gt[te]===this.id&&(!q||gt.type===q)&&fe.push(gt)}return fe}_resolveTickFontOptions(q){const j=this.options.ticks.setContext(this.getContext(q));return(0,n.a0)(j.font)}_maxDigits(){const q=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/q}}class ho{constructor(q,j,te){this.type=q,this.scope=j,this.override=te,this.items=Object.create(null)}isForType(q){return Object.prototype.isPrototypeOf.call(this.type.prototype,q.prototype)}register(q){const j=Object.getPrototypeOf(q);let te;(function yo(de){return"id"in de&&"defaults"in de})(j)&&(te=this.register(j));const fe=this.items,Ne=q.id,Ye=this.scope+"."+Ne;if(!Ne)throw new Error("class does not have id: "+q);return Ne in fe||(fe[Ne]=q,function Fo(de,q,j){const te=(0,n.a4)(Object.create(null),[j?n.d.get(j):{},n.d.get(q),de.defaults]);n.d.set(q,te),de.defaultRoutes&&function no(de,q){Object.keys(q).forEach(j=>{const te=j.split("."),fe=te.pop(),Ne=[de].concat(te).join("."),Ye=q[j].split("."),gt=Ye.pop(),Nt=Ye.join(".");n.d.route(Ne,fe,Nt,gt)})}(q,de.defaultRoutes),de.descriptors&&n.d.describe(q,de.descriptors)}(q,Ye,te),this.override&&n.d.override(q.id,q.overrides)),Ye}get(q){return this.items[q]}unregister(q){const j=this.items,te=q.id,fe=this.scope;te in j&&delete j[te],fe&&te in n.d[fe]&&(delete n.d[fe][te],this.override&&delete n.a3[te])}}class Zr{constructor(){this.controllers=new ho(H,"datasets",!0),this.elements=new ho(hi,"elements"),this.plugins=new ho(Object,"plugins"),this.scales=new ho(jr,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...q){this._each("register",q)}remove(...q){this._each("unregister",q)}addControllers(...q){this._each("register",q,this.controllers)}addElements(...q){this._each("register",q,this.elements)}addPlugins(...q){this._each("register",q,this.plugins)}addScales(...q){this._each("register",q,this.scales)}getController(q){return this._get(q,this.controllers,"controller")}getElement(q){return this._get(q,this.elements,"element")}getPlugin(q){return this._get(q,this.plugins,"plugin")}getScale(q){return this._get(q,this.scales,"scale")}removeControllers(...q){this._each("unregister",q,this.controllers)}removeElements(...q){this._each("unregister",q,this.elements)}removePlugins(...q){this._each("unregister",q,this.plugins)}removeScales(...q){this._each("unregister",q,this.scales)}_each(q,j,te){[...j].forEach(fe=>{const Ne=te||this._getRegistryForType(fe);te||Ne.isForType(fe)||Ne===this.plugins&&fe.id?this._exec(q,Ne,fe):(0,n.F)(fe,Ye=>{const gt=te||this._getRegistryForType(Ye);this._exec(q,gt,Ye)})})}_exec(q,j,te){const fe=(0,n.a5)(q);(0,n.Q)(te["before"+fe],[],te),j[q](te),(0,n.Q)(te["after"+fe],[],te)}_getRegistryForType(q){for(let j=0;j<this._typedRegistries.length;j++){const te=this._typedRegistries[j];if(te.isForType(q))return te}return this.plugins}_get(q,j,te){const fe=j.get(q);if(void 0===fe)throw new Error('"'+q+'" is not a registered '+te+".");return fe}}var Yr=new Zr;class go{constructor(){this._init=[]}notify(q,j,te,fe){"beforeInit"===j&&(this._init=this._createDescriptors(q,!0),this._notify(this._init,q,"install"));const Ne=fe?this._descriptors(q).filter(fe):this._descriptors(q),Ye=this._notify(Ne,q,j,te);return"afterDestroy"===j&&(this._notify(Ne,q,"stop"),this._notify(this._init,q,"uninstall")),Ye}_notify(q,j,te,fe){fe=fe||{};for(const Ne of q){const Ye=Ne.plugin;if(!1===(0,n.Q)(Ye[te],[j,fe,Ne.options],Ye)&&fe.cancelable)return!1}return!0}invalidate(){(0,n.k)(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(q){if(this._cache)return this._cache;const j=this._cache=this._createDescriptors(q);return this._notifyStateChanges(q),j}_createDescriptors(q,j){const te=q&&q.config,fe=(0,n.v)(te.options&&te.options.plugins,{}),Ne=function zo(de){const q={},j=[],te=Object.keys(Yr.plugins.items);for(let Ne=0;Ne<te.length;Ne++)j.push(Yr.getPlugin(te[Ne]));const fe=de.plugins||[];for(let Ne=0;Ne<fe.length;Ne++){const Ye=fe[Ne];-1===j.indexOf(Ye)&&(j.push(Ye),q[Ye.id]=!0)}return{plugins:j,localIds:q}}(te);return!1!==fe||j?function to(de,{plugins:q,localIds:j},te,fe){const Ne=[],Ye=de.getContext();for(const gt of q){const Nt=gt.id,on=si(te[Nt],fe);null!==on&&Ne.push({plugin:gt,options:ot(de.config,{plugin:gt,local:j[Nt]},on,Ye)})}return Ne}(q,Ne,fe,j):[]}_notifyStateChanges(q){const j=this._oldCache||[],te=this._cache,fe=(Ne,Ye)=>Ne.filter(gt=>!Ye.some(Nt=>gt.plugin.id===Nt.plugin.id));this._notify(fe(j,te),q,"stop"),this._notify(fe(te,j),q,"start")}}function si(de,q){return q||!1!==de?!0===de?{}:de:null}function ot(de,{plugin:q,local:j},te,fe){const Ne=de.pluginScopeKeys(q),Ye=de.getOptionScopes(te,Ne);return j&&q.defaults&&Ye.push(q.defaults),de.createResolver(Ye,fe,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Vt(de,q){return((q.datasets||{})[de]||{}).indexAxis||q.indexAxis||(n.d.datasets[de]||{}).indexAxis||"x"}function Li(de,q){if("x"===de||"y"===de||"r"===de||(de=q.axis||function Ti(de){return"top"===de||"bottom"===de?"x":"left"===de||"right"===de?"y":void 0}(q.position)||de.length>1&&Li(de[0].toLowerCase(),q)))return de;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function Fr(de){const q=de.options||(de.options={});q.plugins=(0,n.v)(q.plugins,{}),q.scales=function dr(de,q){const j=n.a3[de.type]||{scales:{}},te=q.scales||{},fe=Vt(de.type,q),Ne=Object.create(null);return Object.keys(te).forEach(Ye=>{const gt=te[Ye];if(!(0,n.i)(gt))return console.error(`Invalid scale configuration for scale: ${Ye}`);if(gt._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${Ye}`);const Nt=Li(Ye,gt),on=function Bn(de,q){return de===q?"_index_":"_value_"}(Nt,fe),ct=j.scales||{};Ne[Ye]=(0,n.ab)(Object.create(null),[{axis:Nt},gt,ct[Nt],ct[on]])}),de.data.datasets.forEach(Ye=>{const gt=Ye.type||de.type,Nt=Ye.indexAxis||Vt(gt,q),ct=(n.a3[gt]||{}).scales||{};Object.keys(ct).forEach(De=>{const pe=function Sn(de,q){let j=de;return"_index_"===de?j=q:"_value_"===de&&(j="x"===q?"y":"x"),j}(De,Nt),Ge=Ye[pe+"AxisID"]||pe;Ne[Ge]=Ne[Ge]||Object.create(null),(0,n.ab)(Ne[Ge],[{axis:pe},te[Ge],ct[De]])})}),Object.keys(Ne).forEach(Ye=>{const gt=Ne[Ye];(0,n.ab)(gt,[n.d.scales[gt.type],n.d.scale])}),Ne}(de,q)}function br(de){return(de=de||{}).datasets=de.datasets||[],de.labels=de.labels||[],de}const rr=new Map,Ut=new Set;function qn(de,q){let j=rr.get(de);return j||(j=q(),rr.set(de,j),Ut.add(j)),j}const Wn=(de,q,j)=>{const te=(0,n.f)(q,j);void 0!==te&&de.add(te)};class ci{constructor(q){this._config=function Vn(de){return(de=de||{}).data=br(de.data),Fr(de),de}(q),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(q){this._config.type=q}get data(){return this._config.data}set data(q){this._config.data=br(q)}get options(){return this._config.options}set options(q){this._config.options=q}get plugins(){return this._config.plugins}update(){const q=this._config;this.clearCache(),Fr(q)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(q){return qn(q,()=>[[`datasets.${q}`,""]])}datasetAnimationScopeKeys(q,j){return qn(`${q}.transition.${j}`,()=>[[`datasets.${q}.transitions.${j}`,`transitions.${j}`],[`datasets.${q}`,""]])}datasetElementScopeKeys(q,j){return qn(`${q}-${j}`,()=>[[`datasets.${q}.elements.${j}`,`datasets.${q}`,`elements.${j}`,""]])}pluginScopeKeys(q){const j=q.id;return qn(`${this.type}-plugin-${j}`,()=>[[`plugins.${j}`,...q.additionalOptionScopes||[]]])}_cachedScopes(q,j){const te=this._scopeCache;let fe=te.get(q);return(!fe||j)&&(fe=new Map,te.set(q,fe)),fe}getOptionScopes(q,j,te){const{options:fe,type:Ne}=this,Ye=this._cachedScopes(q,te),gt=Ye.get(j);if(gt)return gt;const Nt=new Set;j.forEach(ct=>{q&&(Nt.add(q),ct.forEach(De=>Wn(Nt,q,De))),ct.forEach(De=>Wn(Nt,fe,De)),ct.forEach(De=>Wn(Nt,n.a3[Ne]||{},De)),ct.forEach(De=>Wn(Nt,n.d,De)),ct.forEach(De=>Wn(Nt,n.a6,De))});const on=Array.from(Nt);return 0===on.length&&on.push(Object.create(null)),Ut.has(j)&&Ye.set(j,on),on}chartOptionScopes(){const{options:q,type:j}=this;return[q,n.a3[j]||{},n.d.datasets[j]||{},{type:j},n.d,n.a6]}resolveNamedOptions(q,j,te,fe=[""]){const Ne={$shared:!0},{resolver:Ye,subPrefixes:gt}=Tr(this._resolverCache,q,fe);let Nt=Ye;if(function oo(de,q){const{isScriptable:j,isIndexable:te}=(0,n.aa)(de);for(const fe of q){const Ne=j(fe),Ye=te(fe),gt=(Ye||Ne)&&de[fe];if(Ne&&((0,n.a7)(gt)||Jr(gt))||Ye&&(0,n.b)(gt))return!0}return!1}(Ye,j)){Ne.$shared=!1,te=(0,n.a7)(te)?te():te;const on=this.createResolver(q,te,gt);Nt=(0,n.a8)(Ye,te,on)}for(const on of j)Ne[on]=Nt[on];return Ne}createResolver(q,j,te=[""],fe){const{resolver:Ne}=Tr(this._resolverCache,q,te);return(0,n.i)(j)?(0,n.a8)(Ne,j,void 0,fe):Ne}}function Tr(de,q,j){let te=de.get(q);te||(te=new Map,de.set(q,te));const fe=j.join();let Ne=te.get(fe);return Ne||(Ne={resolver:(0,n.a9)(q,j),subPrefixes:j.filter(gt=>!gt.toLowerCase().includes("hover"))},te.set(fe,Ne)),Ne}const Jr=de=>(0,n.i)(de)&&Object.getOwnPropertyNames(de).reduce((q,j)=>q||(0,n.a7)(de[j]),!1),fo=["top","bottom","left","right","chartArea"];function Xr(de,q){return"top"===de||"bottom"===de||-1===fo.indexOf(de)&&"x"===q}function Go(de,q){return function(j,te){return j[de]===te[de]?j[q]-te[q]:j[de]-te[de]}}function Ss(de){const q=de.chart,j=q.options.animation;q.notifyPlugins("afterRender"),(0,n.Q)(j&&j.onComplete,[de],q)}function kr(de){const q=de.chart,j=q.options.animation;(0,n.Q)(j&&j.onProgress,[de],q)}function pa(de){return(0,n.M)()&&"string"==typeof de?de=document.getElementById(de):de&&de.length&&(de=de[0]),de&&de.canvas&&(de=de.canvas),de}const ka={},Xs=de=>{const q=pa(de);return Object.values(ka).filter(j=>j.canvas===q).pop()};function ys(de,q,j){const te=Object.keys(de);for(const fe of te){const Ne=+fe;if(Ne>=q){const Ye=de[fe];delete de[fe],(j>0||Ne>q)&&(de[Ne+j]=Ye)}}}let Oa=(()=>class de{static defaults=n.d;static instances=ka;static overrides=n.a3;static registry=Yr;static version="4.0.1";static getChart=Xs;static register(...j){Yr.add(...j),Ms()}static unregister(...j){Yr.remove(...j),Ms()}constructor(j,te){const fe=this.config=new ci(te),Ne=pa(j),Ye=Xs(Ne);if(Ye)throw new Error("Canvas is already in use. Chart with ID '"+Ye.id+"' must be destroyed before the canvas with ID '"+Ye.canvas.id+"' can be reused.");const gt=fe.createResolver(fe.chartOptionScopes(),this.getContext());this.platform=new(fe.platform||function Jn(de){return!(0,n.M)()||typeof OffscreenCanvas<"u"&&de instanceof OffscreenCanvas?fn:An}(Ne)),this.platform.updateConfig(fe);const Nt=this.platform.acquireContext(Ne,gt.aspectRatio),on=Nt&&Nt.canvas,ct=on&&on.height,De=on&&on.width;this.id=(0,n.ac)(),this.ctx=Nt,this.canvas=on,this.width=De,this.height=ct,this._options=gt,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new go,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(0,n.ad)(pe=>this.update(pe),gt.resizeDelay||0),this._dataChanges=[],ka[this.id]=this,Nt&&on?(d.listen(this,"complete",Ss),d.listen(this,"progress",kr),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:j,maintainAspectRatio:te},width:fe,height:Ne,_aspectRatio:Ye}=this;return(0,n.k)(j)?te&&Ye?Ye:Ne?fe/Ne:null:j}get data(){return this.config.data}set data(j){this.config.data=j}get options(){return this._options}set options(j){this.config.options=j}get registry(){return Yr}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():(0,n.ae)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return(0,n.af)(this.canvas,this.ctx),this}stop(){return d.stop(this),this}resize(j,te){d.running(this)?this._resizeBeforeDraw={width:j,height:te}:this._resize(j,te)}_resize(j,te){const fe=this.options,gt=this.platform.getMaximumSize(this.canvas,j,te,fe.maintainAspectRatio&&this.aspectRatio),Nt=fe.devicePixelRatio||this.platform.getDevicePixelRatio(),on=this.width?"resize":"attach";this.width=gt.width,this.height=gt.height,this._aspectRatio=this.aspectRatio,(0,n.ae)(this,Nt,!0)&&(this.notifyPlugins("resize",{size:gt}),(0,n.Q)(fe.onResize,[this,gt],this),this.attached&&this._doResize(on)&&this.render())}ensureScalesHaveIDs(){(0,n.F)(this.options.scales||{},(fe,Ne)=>{fe.id=Ne})}buildOrUpdateScales(){const j=this.options,te=j.scales,fe=this.scales,Ne=Object.keys(fe).reduce((gt,Nt)=>(gt[Nt]=!1,gt),{});let Ye=[];te&&(Ye=Ye.concat(Object.keys(te).map(gt=>{const Nt=te[gt],on=Li(gt,Nt),ct="r"===on,De="x"===on;return{options:Nt,dposition:ct?"chartArea":De?"bottom":"left",dtype:ct?"radialLinear":De?"category":"linear"}}))),(0,n.F)(Ye,gt=>{const Nt=gt.options,on=Nt.id,ct=Li(on,Nt),De=(0,n.v)(Nt.type,gt.dtype);(void 0===Nt.position||Xr(Nt.position,ct)!==Xr(gt.dposition))&&(Nt.position=gt.dposition),Ne[on]=!0;let pe=null;on in fe&&fe[on].type===De?pe=fe[on]:(pe=new(Yr.getScale(De))({id:on,type:De,ctx:this.ctx,chart:this}),fe[pe.id]=pe),pe.init(Nt,j)}),(0,n.F)(Ne,(gt,Nt)=>{gt||delete fe[Nt]}),(0,n.F)(fe,gt=>{Lt.configure(this,gt,gt.options),Lt.addBox(this,gt)})}_updateMetasets(){const j=this._metasets,te=this.data.datasets.length,fe=j.length;if(j.sort((Ne,Ye)=>Ne.index-Ye.index),fe>te){for(let Ne=te;Ne<fe;++Ne)this._destroyDatasetMeta(Ne);j.splice(te,fe-te)}this._sortedMetasets=j.slice(0).sort(Go("order","index"))}_removeUnreferencedMetasets(){const{_metasets:j,data:{datasets:te}}=this;j.length>te.length&&delete this._stacks,j.forEach((fe,Ne)=>{0===te.filter(Ye=>Ye===fe._dataset).length&&this._destroyDatasetMeta(Ne)})}buildOrUpdateControllers(){const j=[],te=this.data.datasets;let fe,Ne;for(this._removeUnreferencedMetasets(),fe=0,Ne=te.length;fe<Ne;fe++){const Ye=te[fe];let gt=this.getDatasetMeta(fe);const Nt=Ye.type||this.config.type;if(gt.type&>.type!==Nt&&(this._destroyDatasetMeta(fe),gt=this.getDatasetMeta(fe)),gt.type=Nt,gt.indexAxis=Ye.indexAxis||Vt(Nt,this.options),gt.order=Ye.order||0,gt.index=fe,gt.label=""+Ye.label,gt.visible=this.isDatasetVisible(fe),gt.controller)gt.controller.updateIndex(fe),gt.controller.linkScales();else{const on=Yr.getController(Nt),{datasetElementType:ct,dataElementType:De}=n.d.datasets[Nt];Object.assign(on,{dataElementType:Yr.getElement(De),datasetElementType:ct&&Yr.getElement(ct)}),gt.controller=new on(this,fe),j.push(gt.controller)}}return this._updateMetasets(),j}_resetElements(){(0,n.F)(this.data.datasets,(j,te)=>{this.getDatasetMeta(te).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(j){const te=this.config;te.update();const fe=this._options=te.createResolver(te.chartOptionScopes(),this.getContext()),Ne=this._animationsDisabled=!fe.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:j,cancelable:!0}))return;const Ye=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let gt=0;for(let ct=0,De=this.data.datasets.length;ct<De;ct++){const{controller:pe}=this.getDatasetMeta(ct),Ge=!Ne&&-1===Ye.indexOf(pe);pe.buildOrUpdateElements(Ge),gt=Math.max(+pe.getMaxOverflow(),gt)}gt=this._minPadding=fe.layout.autoPadding?gt:0,this._updateLayout(gt),Ne||(0,n.F)(Ye,ct=>{ct.reset()}),this._updateDatasets(j),this.notifyPlugins("afterUpdate",{mode:j}),this._layers.sort(Go("z","_idx"));const{_active:Nt,_lastEvent:on}=this;on?this._eventHandler(on,!0):Nt.length&&this._updateHoverStyles(Nt,Nt,!0),this.render()}_updateScales(){(0,n.F)(this.scales,j=>{Lt.removeBox(this,j)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const j=this.options,te=new Set(Object.keys(this._listeners)),fe=new Set(j.events);(!(0,n.ag)(te,fe)||!!this._responsiveListeners!==j.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:j}=this,te=this._getUniformDataChanges()||[];for(const{method:fe,start:Ne,count:Ye}of te)ys(j,Ne,"_removeElements"===fe?-Ye:Ye)}_getUniformDataChanges(){const j=this._dataChanges;if(!j||!j.length)return;this._dataChanges=[];const te=this.data.datasets.length,fe=Ye=>new Set(j.filter(gt=>gt[0]===Ye).map((gt,Nt)=>Nt+","+gt.splice(1).join(","))),Ne=fe(0);for(let Ye=1;Ye<te;Ye++)if(!(0,n.ag)(Ne,fe(Ye)))return;return Array.from(Ne).map(Ye=>Ye.split(",")).map(Ye=>({method:Ye[1],start:+Ye[2],count:+Ye[3]}))}_updateLayout(j){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Lt.update(this,this.width,this.height,j);const te=this.chartArea,fe=te.width<=0||te.height<=0;this._layers=[],(0,n.F)(this.boxes,Ne=>{fe&&"chartArea"===Ne.position||(Ne.configure&&Ne.configure(),this._layers.push(...Ne._layers()))},this),this._layers.forEach((Ne,Ye)=>{Ne._idx=Ye}),this.notifyPlugins("afterLayout")}_updateDatasets(j){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:j,cancelable:!0})){for(let te=0,fe=this.data.datasets.length;te<fe;++te)this.getDatasetMeta(te).controller.configure();for(let te=0,fe=this.data.datasets.length;te<fe;++te)this._updateDataset(te,(0,n.a7)(j)?j({datasetIndex:te}):j);this.notifyPlugins("afterDatasetsUpdate",{mode:j})}}_updateDataset(j,te){const fe=this.getDatasetMeta(j),Ne={meta:fe,index:j,mode:te,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",Ne)&&(fe.controller._update(te),Ne.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",Ne))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(d.has(this)?this.attached&&!d.running(this)&&d.start(this):(this.draw(),Ss({chart:this})))}draw(){let j;if(this._resizeBeforeDraw){const{width:fe,height:Ne}=this._resizeBeforeDraw;this._resize(fe,Ne),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const te=this._layers;for(j=0;j<te.length&&te[j].z<=0;++j)te[j].draw(this.chartArea);for(this._drawDatasets();j<te.length;++j)te[j].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(j){const te=this._sortedMetasets,fe=[];let Ne,Ye;for(Ne=0,Ye=te.length;Ne<Ye;++Ne){const gt=te[Ne];(!j||gt.visible)&&fe.push(gt)}return fe}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const j=this.getSortedVisibleDatasetMetas();for(let te=j.length-1;te>=0;--te)this._drawDataset(j[te]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(j){const te=this.ctx,fe=j._clip,Ne=!fe.disabled,Ye=function fs(de){const{xScale:q,yScale:j}=de;if(q&&j)return{left:q.left,right:q.right,top:j.top,bottom:j.bottom}}(j)||this.chartArea,gt={meta:j,index:j.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",gt)&&(Ne&&(0,n.Y)(te,{left:!1===fe.left?0:Ye.left-fe.left,right:!1===fe.right?this.width:Ye.right+fe.right,top:!1===fe.top?0:Ye.top-fe.top,bottom:!1===fe.bottom?this.height:Ye.bottom+fe.bottom}),j.controller.draw(),Ne&&(0,n.$)(te),gt.cancelable=!1,this.notifyPlugins("afterDatasetDraw",gt))}isPointInArea(j){return(0,n.C)(j,this.chartArea,this._minPadding)}getElementsAtEventForMode(j,te,fe,Ne){const Ye=lt.modes[te];return"function"==typeof Ye?Ye(this,j,fe,Ne):[]}getDatasetMeta(j){const te=this.data.datasets[j],fe=this._metasets;let Ne=fe.filter(Ye=>Ye&&Ye._dataset===te).pop();return Ne||(Ne={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:te&&te.order||0,index:j,_dataset:te,_parsed:[],_sorted:!1},fe.push(Ne)),Ne}getContext(){return this.$context||(this.$context=(0,n.j)(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(j){const te=this.data.datasets[j];if(!te)return!1;const fe=this.getDatasetMeta(j);return"boolean"==typeof fe.hidden?!fe.hidden:!te.hidden}setDatasetVisibility(j,te){this.getDatasetMeta(j).hidden=!te}toggleDataVisibility(j){this._hiddenIndices[j]=!this._hiddenIndices[j]}getDataVisibility(j){return!this._hiddenIndices[j]}_updateVisibility(j,te,fe){const Ne=fe?"show":"hide",Ye=this.getDatasetMeta(j),gt=Ye.controller._resolveAnimations(void 0,Ne);(0,n.h)(te)?(Ye.data[te].hidden=!fe,this.update()):(this.setDatasetVisibility(j,fe),gt.update(Ye,{visible:fe}),this.update(Nt=>Nt.datasetIndex===j?Ne:void 0))}hide(j,te){this._updateVisibility(j,te,!1)}show(j,te){this._updateVisibility(j,te,!0)}_destroyDatasetMeta(j){const te=this._metasets[j];te&&te.controller&&te.controller._destroy(),delete this._metasets[j]}_stop(){let j,te;for(this.stop(),d.remove(this),j=0,te=this.data.datasets.length;j<te;++j)this._destroyDatasetMeta(j)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:j,ctx:te}=this;this._stop(),this.config.clearCache(),j&&(this.unbindEvents(),(0,n.af)(j,te),this.platform.releaseContext(te),this.canvas=null,this.ctx=null),delete ka[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...j){return this.canvas.toDataURL(...j)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const j=this._listeners,te=this.platform,fe=(Ye,gt)=>{te.addEventListener(this,Ye,gt),j[Ye]=gt},Ne=(Ye,gt,Nt)=>{Ye.offsetX=gt,Ye.offsetY=Nt,this._eventHandler(Ye)};(0,n.F)(this.options.events,Ye=>fe(Ye,Ne))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const j=this._responsiveListeners,te=this.platform,fe=(on,ct)=>{te.addEventListener(this,on,ct),j[on]=ct},Ne=(on,ct)=>{j[on]&&(te.removeEventListener(this,on,ct),delete j[on])},Ye=(on,ct)=>{this.canvas&&this.resize(on,ct)};let gt;const Nt=()=>{Ne("attach",Nt),this.attached=!0,this.resize(),fe("resize",Ye),fe("detach",gt)};gt=()=>{this.attached=!1,Ne("resize",Ye),this._stop(),this._resize(0,0),fe("attach",Nt)},te.isAttached(this.canvas)?Nt():gt()}unbindEvents(){(0,n.F)(this._listeners,(j,te)=>{this.platform.removeEventListener(this,te,j)}),this._listeners={},(0,n.F)(this._responsiveListeners,(j,te)=>{this.platform.removeEventListener(this,te,j)}),this._responsiveListeners=void 0}updateHoverStyle(j,te,fe){const Ne=fe?"set":"remove";let Ye,gt,Nt,on;for("dataset"===te&&(Ye=this.getDatasetMeta(j[0].datasetIndex),Ye.controller["_"+Ne+"DatasetHoverStyle"]()),Nt=0,on=j.length;Nt<on;++Nt){gt=j[Nt];const ct=gt&&this.getDatasetMeta(gt.datasetIndex).controller;ct&&ct[Ne+"HoverStyle"](gt.element,gt.datasetIndex,gt.index)}}getActiveElements(){return this._active||[]}setActiveElements(j){const te=this._active||[],fe=j.map(({datasetIndex:Ye,index:gt})=>{const Nt=this.getDatasetMeta(Ye);if(!Nt)throw new Error("No dataset found at index "+Ye);return{datasetIndex:Ye,element:Nt.data[gt],index:gt}});!(0,n.ah)(fe,te)&&(this._active=fe,this._lastEvent=null,this._updateHoverStyles(fe,te))}notifyPlugins(j,te,fe){return this._plugins.notify(this,j,te,fe)}isPluginEnabled(j){return 1===this._plugins._cache.filter(te=>te.plugin.id===j).length}_updateHoverStyles(j,te,fe){const Ne=this.options.hover,Ye=(on,ct)=>on.filter(De=>!ct.some(pe=>De.datasetIndex===pe.datasetIndex&&De.index===pe.index)),gt=Ye(te,j),Nt=fe?j:Ye(j,te);gt.length&&this.updateHoverStyle(gt,Ne.mode,!1),Nt.length&&Ne.mode&&this.updateHoverStyle(Nt,Ne.mode,!0)}_eventHandler(j,te){const fe={event:j,replay:te,cancelable:!0,inChartArea:this.isPointInArea(j)},Ne=gt=>(gt.options.events||this.options.events).includes(j.native.type);if(!1===this.notifyPlugins("beforeEvent",fe,Ne))return;const Ye=this._handleEvent(j,te,fe.inChartArea);return fe.cancelable=!1,this.notifyPlugins("afterEvent",fe,Ne),(Ye||fe.changed)&&this.render(),this}_handleEvent(j,te,fe){const{_active:Ne=[],options:Ye}=this,Nt=this._getActiveElements(j,Ne,fe,te),on=(0,n.ai)(j),ct=function ma(de,q,j,te){return j&&"mouseout"!==de.type?te?q:de:null}(j,this._lastEvent,fe,on);fe&&(this._lastEvent=null,(0,n.Q)(Ye.onHover,[j,Nt,this],this),on&&(0,n.Q)(Ye.onClick,[j,Nt,this],this));const De=!(0,n.ah)(Nt,Ne);return(De||te)&&(this._active=Nt,this._updateHoverStyles(Nt,Ne,te)),this._lastEvent=ct,De}_getActiveElements(j,te,fe,Ne){if("mouseout"===j.type)return[];if(!fe)return te;const Ye=this.options.hover;return this.getElementsAtEventForMode(j,Ye.mode,Ye,Ne)}})();function Ms(){return(0,n.F)(Oa.instances,de=>de._plugins.invalidate())}var Ua=Oa;function Ia(de,q,j,te){return{x:j+de*Math.cos(q),y:te+de*Math.sin(q)}}function Ds(de,q,j,te,fe,Ne){const{x:Ye,y:gt,startAngle:Nt,pixelMargin:on,innerRadius:ct}=q,De=Math.max(q.outerRadius+te+j-on,0),pe=ct>0?ct+te+j+on:0;let Ge=0;const xt=fe-Nt;if(te){const Us=((ct>0?ct-te:0)+(De>0?De-te:0))/2;Ge=(xt-(0!==Us?xt*Us/(Us+te):xt))/2}const En=(xt-Math.max(.001,xt*De-j/n.P)/De)/2,Un=Nt+En+Ge,ri=fe-En-Ge,{outerStart:Mi,outerEnd:Xi,innerStart:Ui,innerEnd:fr}=function js(de,q,j,te){const fe=function qo(de){return(0,n.ak)(de,["outerStart","outerEnd","innerStart","innerEnd"])}(de.options.borderRadius),Ne=(j-q)/2,Ye=Math.min(Ne,te*q/2),gt=Nt=>{const on=(j-Math.min(Ne,Nt))*te/2;return(0,n.S)(Nt,0,Math.min(Ne,on))};return{outerStart:gt(fe.outerStart),outerEnd:gt(fe.outerEnd),innerStart:(0,n.S)(fe.innerStart,0,Ye),innerEnd:(0,n.S)(fe.innerEnd,0,Ye)}}(q,pe,De,ri-Un),xr=De-Mi,yr=De-Xi,Rr=Un+Mi/xr,co=ri-Xi/yr,Bo=pe+Ui,os=pe+fr,Es=Un+Ui/Bo,Fs=ri-fr/os;if(de.beginPath(),Ne){const Qs=(Rr+co)/2;if(de.arc(Ye,gt,De,Rr,Qs),de.arc(Ye,gt,De,Qs,co),Xi>0){const Is=Ia(yr,co,Ye,gt);de.arc(Is.x,Is.y,Xi,co,ri+n.H)}const io=Ia(os,ri,Ye,gt);if(de.lineTo(io.x,io.y),fr>0){const Is=Ia(os,Fs,Ye,gt);de.arc(Is.x,Is.y,fr,ri+n.H,Fs+Math.PI)}const Us=(ri-fr/pe+(Un+Ui/pe))/2;if(de.arc(Ye,gt,pe,ri-fr/pe,Us,!0),de.arc(Ye,gt,pe,Us,Un+Ui/pe,!0),Ui>0){const Is=Ia(Bo,Es,Ye,gt);de.arc(Is.x,Is.y,Ui,Es+Math.PI,Un-n.H)}const Na=Ia(xr,Un,Ye,gt);if(de.lineTo(Na.x,Na.y),Mi>0){const Is=Ia(xr,Rr,Ye,gt);de.arc(Is.x,Is.y,Mi,Un-n.H,Rr)}}else{de.moveTo(Ye,gt);const Qs=Math.cos(Rr)*De+Ye,io=Math.sin(Rr)*De+gt;de.lineTo(Qs,io);const Us=Math.cos(co)*De+Ye,Na=Math.sin(co)*De+gt;de.lineTo(Us,Na)}de.closePath()}function cs(de,q,j=q){de.lineCap=(0,n.v)(j.borderCapStyle,q.borderCapStyle),de.setLineDash((0,n.v)(j.borderDash,q.borderDash)),de.lineDashOffset=(0,n.v)(j.borderDashOffset,q.borderDashOffset),de.lineJoin=(0,n.v)(j.borderJoinStyle,q.borderJoinStyle),de.lineWidth=(0,n.v)(j.borderWidth,q.borderWidth),de.strokeStyle=(0,n.v)(j.borderColor,q.borderColor)}function $s(de,q,j){de.lineTo(j.x,j.y)}function Hn(de,q,j={}){const te=de.length,{start:fe=0,end:Ne=te-1}=j,{start:Ye,end:gt}=q,Nt=Math.max(fe,Ye),on=Math.min(Ne,gt);return{count:te,start:Nt,loop:q.loop,ilen:on<Nt&&!(fe<Ye&&Ne<Ye||fe>gt&&Ne>gt)?te+on-Nt:on-Nt}}function Ba(de,q,j,te){const{points:fe,options:Ne}=q,{count:Ye,start:gt,loop:Nt,ilen:on}=Hn(fe,j,te),ct=function Vo(de){return de.stepped?n.ar:de.tension||"monotone"===de.cubicInterpolationMode?n.as:$s}(Ne);let Ge,xt,sn,{move:De=!0,reverse:pe}=te||{};for(Ge=0;Ge<=on;++Ge)xt=fe[(gt+(pe?on-Ge:Ge))%Ye],!xt.skip&&(De?(de.moveTo(xt.x,xt.y),De=!1):ct(de,sn,xt,pe,Ne.stepped),sn=xt);return Nt&&(xt=fe[(gt+(pe?on:0))%Ye],ct(de,sn,xt,pe,Ne.stepped)),!!Nt}function ds(de,q,j,te){const fe=q.points,{count:Ne,start:Ye,ilen:gt}=Hn(fe,j,te),{move:Nt=!0,reverse:on}=te||{};let pe,Ge,xt,sn,En,Un,ct=0,De=0;const ri=Xi=>(Ye+(on?gt-Xi:Xi))%Ne,Mi=()=>{sn!==En&&(de.lineTo(ct,En),de.lineTo(ct,sn),de.lineTo(ct,Un))};for(Nt&&(Ge=fe[ri(0)],de.moveTo(Ge.x,Ge.y)),pe=0;pe<=gt;++pe){if(Ge=fe[ri(pe)],Ge.skip)continue;const Xi=Ge.x,Ui=Ge.y,fr=0|Xi;fr===xt?(Ui<sn?sn=Ui:Ui>En&&(En=Ui),ct=(De*ct+Xi)/++De):(Mi(),de.lineTo(Xi,Ui),xt=fr,De=0,sn=En=Ui),Un=Ui}Mi()}function la(de){const q=de.options;return de._decimated||de._loop||q.tension||"monotone"===q.cubicInterpolationMode||q.stepped||q.borderDash&&q.borderDash.length?Ba:ds}const oa="function"==typeof Path2D;let Bs=(()=>class de extends hi{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:j=>"borderDash"!==j&&"fill"!==j};constructor(j){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,j&&Object.assign(this,j)}updateControlPoints(j,te){const fe=this.options;!fe.tension&&"monotone"!==fe.cubicInterpolationMode||fe.stepped||this._pointsUpdated||((0,n.al)(this._points,fe,j,fe.spanGaps?this._loop:this._fullLoop,te),this._pointsUpdated=!0)}set points(j){this._points=j,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=(0,n.am)(this,this.options.segment))}first(){const j=this.segments;return j.length&&this.points[j[0].start]}last(){const j=this.segments,fe=j.length;return fe&&this.points[j[fe-1].end]}interpolate(j,te){const fe=this.options,Ne=j[te],Ye=this.points,gt=(0,n.an)(this,{property:te,start:Ne,end:Ne});if(!gt.length)return;const Nt=[],on=function ra(de){return de.stepped?n.ao:de.tension||"monotone"===de.cubicInterpolationMode?n.ap:n.aq}(fe);let ct,De;for(ct=0,De=gt.length;ct<De;++ct){const{start:pe,end:Ge}=gt[ct],xt=Ye[pe],sn=Ye[Ge];if(xt===sn){Nt.push(xt);continue}const Un=on(xt,sn,Math.abs((Ne-xt[te])/(sn[te]-xt[te])),fe.stepped);Un[te]=j[te],Nt.push(Un)}return 1===Nt.length?Nt[0]:Nt}pathSegment(j,te,fe){return la(this)(j,this,te,fe)}path(j,te,fe){const Ne=this.segments,Ye=la(this);let gt=this._loop;te=te||0,fe=fe||this.points.length-te;for(const Nt of Ne)gt&=Ye(j,this,Nt,{start:te,end:te+fe-1});return!!gt}draw(j,te,fe,Ne){(this.points||[]).length&&(this.options||{}).borderWidth&&(j.save(),function Yo(de,q,j,te){oa&&!q.options.segment?function $o(de,q,j,te){let fe=q._path;fe||(fe=q._path=new Path2D,q.path(fe,j,te)&&fe.closePath()),cs(de,q.options),de.stroke(fe)}(de,q,j,te):function rs(de,q,j,te){const{segments:fe,options:Ne}=q,Ye=la(q);for(const gt of fe)cs(de,Ne,gt.style),de.beginPath(),Ye(de,q,gt,{start:j,end:j+te-1})&&de.closePath(),de.stroke()}(de,q,j,te)}(j,this,fe,Ne),j.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}})();function Va(de,q,j,te){const fe=de.options,{[j]:Ne}=de.getProps([j],te);return Math.abs(q-Ne)<fe.radius+fe.hitRadius}let La=(()=>class de extends hi{static id="point";static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(j){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,j&&Object.assign(this,j)}inRange(j,te,fe){const Ne=this.options,{x:Ye,y:gt}=this.getProps(["x","y"],fe);return Math.pow(j-Ye,2)+Math.pow(te-gt,2)<Math.pow(Ne.hitRadius+Ne.radius,2)}inXRange(j,te){return Va(this,j,"x",te)}inYRange(j,te){return Va(this,j,"y",te)}getCenterPoint(j){const{x:te,y:fe}=this.getProps(["x","y"],j);return{x:te,y:fe}}size(j){let te=(j=j||this.options||{}).radius||0;return te=Math.max(te,te&&j.hoverRadius||0),2*(te+(te&&j.borderWidth||0))}draw(j,te){const fe=this.options;this.skip||fe.radius<.1||!(0,n.C)(this,te,this.size(fe)/2)||(j.strokeStyle=fe.borderColor,j.lineWidth=fe.borderWidth,j.fillStyle=fe.backgroundColor,(0,n.at)(j,fe,this.x,this.y))}getRange(){const j=this.options||{};return j.radius+j.hitRadius}})();function qs(de,q){const{x:j,y:te,base:fe,width:Ne,height:Ye}=de.getProps(["x","y","base","width","height"],q);let gt,Nt,on,ct,De;return de.horizontal?(De=Ye/2,gt=Math.min(j,fe),Nt=Math.max(j,fe),on=te-De,ct=te+De):(De=Ne/2,gt=j-De,Nt=j+De,on=Math.min(te,fe),ct=Math.max(te,fe)),{left:gt,top:on,right:Nt,bottom:ct}}function ks(de,q,j,te){return de?0:(0,n.S)(q,j,te)}function va(de,q,j,te){const fe=null===q,Ne=null===j,gt=de&&!(fe&&Ne)&&qs(de,te);return gt&&(fe||(0,n.aj)(q,gt.left,gt.right))&&(Ne||(0,n.aj)(j,gt.top,gt.bottom))}function Tn(de,q){de.rect(q.x,q.y,q.w,q.h)}function tn(de,q,j={}){const te=de.x!==j.x?-q:0,fe=de.y!==j.y?-q:0;return{x:de.x+te,y:de.y+fe,w:de.w+((de.x+de.w!==j.x+j.w?q:0)-te),h:de.h+((de.y+de.h!==j.y+j.h?q:0)-fe),radius:de.radius}}var Ai=Object.freeze({__proto__:null,ArcElement:class Ga extends hi{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};constructor(q){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,q&&Object.assign(this,q)}inRange(q,j,te){const fe=this.getProps(["x","y"],te),{angle:Ne,distance:Ye}=(0,n.D)(fe,{x:q,y:j}),{startAngle:gt,endAngle:Nt,innerRadius:on,outerRadius:ct,circumference:De}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],te),pe=this.options.spacing/2,xt=(0,n.v)(De,Nt-gt)>=n.T||(0,n.p)(Ne,gt,Nt),sn=(0,n.aj)(Ye,on+pe,ct+pe);return xt&&sn}getCenterPoint(q){const{x:j,y:te,startAngle:fe,endAngle:Ne,innerRadius:Ye,outerRadius:gt}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],q),{offset:Nt,spacing:on}=this.options,ct=(fe+Ne)/2,De=(Ye+gt+on+Nt)/2;return{x:j+Math.cos(ct)*De,y:te+Math.sin(ct)*De}}tooltipPosition(q){return this.getCenterPoint(q)}draw(q){const{options:j,circumference:te}=this,fe=(j.offset||0)/4,Ne=(j.spacing||0)/2,Ye=j.circular;if(this.pixelMargin="inner"===j.borderAlign?.33:0,this.fullCircles=te>n.T?Math.floor(te/n.T):0,0===te||this.innerRadius<0||this.outerRadius<0)return;q.save();const gt=(this.startAngle+this.endAngle)/2;q.translate(Math.cos(gt)*fe,Math.sin(gt)*fe);const on=fe*(1-Math.sin(Math.min(n.P,te||0)));q.fillStyle=j.backgroundColor,q.strokeStyle=j.borderColor,function Js(de,q,j,te,fe){const{fullCircles:Ne,startAngle:Ye,circumference:gt}=q;let Nt=q.endAngle;if(Ne){Ds(de,q,j,te,Nt,fe);for(let on=0;on<Ne;++on)de.fill();isNaN(gt)||(Nt=Ye+(gt%n.T||n.T))}Ds(de,q,j,te,Nt,fe),de.fill()}(q,this,on,Ne,Ye),function fa(de,q,j,te,fe){const{fullCircles:Ne,startAngle:Ye,circumference:gt,options:Nt}=q,{borderWidth:on,borderJoinStyle:ct}=Nt,De="inner"===Nt.borderAlign;if(!on)return;De?(de.lineWidth=2*on,de.lineJoin=ct||"round"):(de.lineWidth=on,de.lineJoin=ct||"bevel");let pe=q.endAngle;if(Ne){Ds(de,q,j,te,pe,fe);for(let Ge=0;Ge<Ne;++Ge)de.stroke();isNaN(gt)||(pe=Ye+(gt%n.T||n.T))}De&&function Zs(de,q,j){const{startAngle:te,pixelMargin:fe,x:Ne,y:Ye,outerRadius:gt,innerRadius:Nt}=q;let on=fe/gt;de.beginPath(),de.arc(Ne,Ye,gt,te-on,j+on),Nt>fe?(on=fe/Nt,de.arc(Ne,Ye,Nt,j+on,te-on,!0)):de.arc(Ne,Ye,fe,j+n.H,te-n.H),de.closePath(),de.clip()}(de,q,pe),Ne||(Ds(de,q,j,te,pe,fe),de.stroke())}(q,this,on,Ne,Ye),q.restore()}},LineElement:Bs,PointElement:La,BarElement:class In extends hi{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(q){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,q&&Object.assign(this,q)}draw(q){const{inflateAmount:j,options:{borderColor:te,backgroundColor:fe}}=this,{inner:Ne,outer:Ye}=function $a(de){const q=qs(de),j=q.right-q.left,te=q.bottom-q.top,fe=function ea(de,q,j){const fe=de.borderSkipped,Ne=(0,n.av)(de.options.borderWidth);return{t:ks(fe.top,Ne.top,0,j),r:ks(fe.right,Ne.right,0,q),b:ks(fe.bottom,Ne.bottom,0,j),l:ks(fe.left,Ne.left,0,q)}}(de,j/2,te/2),Ne=function ts(de,q,j){const{enableBorderRadius:te}=de.getProps(["enableBorderRadius"]),fe=de.options.borderRadius,Ne=(0,n.aw)(fe),Ye=Math.min(q,j),gt=de.borderSkipped,Nt=te||(0,n.i)(fe);return{topLeft:ks(!Nt||gt.top||gt.left,Ne.topLeft,0,Ye),topRight:ks(!Nt||gt.top||gt.right,Ne.topRight,0,Ye),bottomLeft:ks(!Nt||gt.bottom||gt.left,Ne.bottomLeft,0,Ye),bottomRight:ks(!Nt||gt.bottom||gt.right,Ne.bottomRight,0,Ye)}}(de,j/2,te/2);return{outer:{x:q.left,y:q.top,w:j,h:te,radius:Ne},inner:{x:q.left+fe.l,y:q.top+fe.t,w:j-fe.l-fe.r,h:te-fe.t-fe.b,radius:{topLeft:Math.max(0,Ne.topLeft-Math.max(fe.t,fe.l)),topRight:Math.max(0,Ne.topRight-Math.max(fe.t,fe.r)),bottomLeft:Math.max(0,Ne.bottomLeft-Math.max(fe.b,fe.l)),bottomRight:Math.max(0,Ne.bottomRight-Math.max(fe.b,fe.r))}}}}(this),gt=function Mn(de){return de.topLeft||de.topRight||de.bottomLeft||de.bottomRight}(Ye.radius)?n.au:Tn;q.save(),(Ye.w!==Ne.w||Ye.h!==Ne.h)&&(q.beginPath(),gt(q,tn(Ye,j,Ne)),q.clip(),gt(q,tn(Ne,-j,Ye)),q.fillStyle=te,q.fill("evenodd")),q.beginPath(),gt(q,tn(Ne,j)),q.fillStyle=fe,q.fill(),q.restore()}inRange(q,j,te){return va(this,q,j,te)}inXRange(q,j){return va(this,q,null,j)}inYRange(q,j){return va(this,null,q,j)}getCenterPoint(q){const{x:j,y:te,base:fe,horizontal:Ne}=this.getProps(["x","y","base","horizontal"],q);return{x:Ne?(j+fe)/2:j,y:Ne?te:(te+fe)/2}}getRange(q){return"x"===q?this.width/2:this.height/2}}});const So=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Rn=So.map(de=>de.replace("rgb(","rgba(").replace(")",", 0.5)"));function Xn(de){return So[de%So.length]}function ae(de){return Rn[de%Rn.length]}function Sr(de){let q;for(q in de)if(de[q].borderColor||de[q].backgroundColor)return!0;return!1}var Wr={id:"colors",defaults:{enabled:!0},beforeLayout(de,q,j){if(!j.enabled)return;const{type:te,options:{elements:fe},data:{datasets:Ne}}=de.config;if(Sr(Ne)||fe&&Sr(fe))return;const Ye=function Gi(de){return"doughnut"===de||"pie"===de?function Ct(){let de=0;return q=>{q.backgroundColor=q.data.map(()=>Xn(de++))}}():"polarArea"===de?function $n(){let de=0;return q=>{q.backgroundColor=q.data.map(()=>ae(de++))}}():function st(){return(de,q)=>{de.borderColor=Xn(q),de.backgroundColor=ae(q)}}()}(te);Ne.forEach(Ye)}};function Cr(de){if(de._decimated){const q=de._data;delete de._decimated,delete de._data,Object.defineProperty(de,"data",{value:q})}}function Po(de){de.data.datasets.forEach(q=>{Cr(q)})}var el={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(de,q,j)=>{if(!j.enabled)return void Po(de);const te=de.width;de.data.datasets.forEach((fe,Ne)=>{const{_data:Ye,indexAxis:gt}=fe,Nt=de.getDatasetMeta(Ne),on=Ye||fe.data;if("y"===(0,n.a)([gt,de.options.indexAxis])||!Nt.controller.supportsDecimation)return;const ct=de.scales[Nt.xAxisID];if("linear"!==ct.type&&"time"!==ct.type||de.options.parsing)return;let xt,{start:De,count:pe}=function Ki(de,q){const j=q.length;let fe,te=0;const{iScale:Ne}=de,{min:Ye,max:gt,minDefined:Nt,maxDefined:on}=Ne.getUserBounds();return Nt&&(te=(0,n.S)((0,n.B)(q,Ne.axis,Ye).lo,0,j-1)),fe=on?(0,n.S)((0,n.B)(q,Ne.axis,gt).hi+1,te,j)-te:j-te,{start:te,count:fe}}(Nt,on);if(pe<=(j.threshold||4*te))Cr(fe);else{switch((0,n.k)(Ye)&&(fe._data=on,delete fe.data,Object.defineProperty(fe,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(sn){this._data=sn}})),j.algorithm){case"lttb":xt=function ao(de,q,j,te,fe){const Ne=fe.samples||te;if(Ne>=j)return de.slice(q,q+j);const Ye=[],gt=(j-2)/(Ne-2);let Nt=0;const on=q+j-1;let De,pe,Ge,xt,sn,ct=q;for(Ye[Nt++]=de[ct],De=0;De<Ne-2;De++){let ri,En=0,Un=0;const Mi=Math.floor((De+1)*gt)+1+q,Xi=Math.min(Math.floor((De+2)*gt)+1,j)+q,Ui=Xi-Mi;for(ri=Mi;ri<Xi;ri++)En+=de[ri].x,Un+=de[ri].y;En/=Ui,Un/=Ui;const fr=Math.floor(De*gt)+1+q,xr=Math.min(Math.floor((De+1)*gt)+1,j)+q,{x:yr,y:Rr}=de[ct];for(Ge=xt=-1,ri=fr;ri<xr;ri++)xt=.5*Math.abs((yr-En)*(de[ri].y-Rr)-(yr-de[ri].x)*(Un-Rr)),xt>Ge&&(Ge=xt,pe=de[ri],sn=ri);Ye[Nt++]=pe,ct=sn}return Ye[Nt++]=de[on],Ye}(on,De,pe,te,j);break;case"min-max":xt=function Ir(de,q,j,te){let Ye,gt,Nt,on,ct,De,pe,Ge,xt,sn,fe=0,Ne=0;const En=[],ri=de[q].x,Xi=de[q+j-1].x-ri;for(Ye=q;Ye<q+j;++Ye){gt=de[Ye],Nt=(gt.x-ri)/Xi*te,on=gt.y;const Ui=0|Nt;if(Ui===ct)on<xt?(xt=on,De=Ye):on>sn&&(sn=on,pe=Ye),fe=(Ne*fe+gt.x)/++Ne;else{const fr=Ye-1;if(!(0,n.k)(De)&&!(0,n.k)(pe)){const xr=Math.min(De,pe),yr=Math.max(De,pe);xr!==Ge&&xr!==fr&&En.push({...de[xr],x:fe}),yr!==Ge&&yr!==fr&&En.push({...de[yr],x:fe})}Ye>0&&fr!==Ge&&En.push(de[fr]),En.push(gt),ct=Ui,Ne=0,xt=sn=on,De=pe=Ge=Ye}}return En}(on,De,pe,te);break;default:throw new Error(`Unsupported decimation algorithm '${j.algorithm}'`)}fe._decimated=xt}})},destroy(de){Po(de)}};function Zo(de,q,j,te){if(te)return;let fe=q[de],Ne=j[de];return"angle"===de&&(fe=(0,n.ay)(fe),Ne=(0,n.ay)(Ne)),{property:de,start:fe,end:Ne}}function vo(de,q,j){for(;q>de;q--){const te=j[q];if(!isNaN(te.x)&&!isNaN(te.y))break}return q}function ta(de,q,j,te){return de&&q?te(de[j],q[j]):de?de[j]:q?q[j]:0}function tl(de,q){let j=[],te=!1;return(0,n.b)(de)?(te=!0,j=de):j=function Ha(de,q){const{x:j=null,y:te=null}=de||{},fe=q.points,Ne=[];return q.segments.forEach(({start:Ye,end:gt})=>{gt=vo(Ye,gt,fe);const Nt=fe[Ye],on=fe[gt];null!==te?(Ne.push({x:Nt.x,y:te}),Ne.push({x:on.x,y:te})):null!==j&&(Ne.push({x:j,y:Nt.y}),Ne.push({x:j,y:on.y}))}),Ne}(de,q),j.length?new Bs({points:j,options:{tension:0},_loop:te,_fullLoop:te}):null}function Ie(de){return de&&!1!==de.fill}function Ei(de,q,j){let fe=de[q].fill;const Ne=[q];let Ye;if(!j)return fe;for(;!1!==fe&&-1===Ne.indexOf(fe);){if(!(0,n.g)(fe))return fe;if(Ye=de[fe],!Ye)return!1;if(Ye.visible)return fe;Ne.push(fe),fe=Ye.fill}return!1}function Ls(de,q,j){const te=function Ja(de){const q=de.options,j=q.fill;let te=(0,n.v)(j&&j.target,j);return void 0===te&&(te=!!q.backgroundColor),!1!==te&&null!==te&&(!0===te?"origin":te)}(de);if((0,n.i)(te))return!isNaN(te.value)&&te;let fe=parseFloat(te);return(0,n.g)(fe)&&Math.floor(fe)===fe?function Ns(de,q,j,te){return("-"===de||"+"===de)&&(j=q+j),!(j===q||j<0||j>=te)&&j}(te[0],q,fe,j):["origin","start","end","stack","shape"].indexOf(te)>=0&&te}function Ks(de,q,j){const te=[];for(let fe=0;fe<j.length;fe++){const Ne=j[fe],{first:Ye,last:gt,point:Nt}=na(Ne,q,"x");if(!(!Nt||Ye&>))if(Ye)te.unshift(Nt);else if(de.push(Nt),!gt)break}de.push(...te)}function na(de,q,j){const te=de.interpolate(q,j);if(!te)return{};const fe=te[j],Ne=de.segments,Ye=de.points;let gt=!1,Nt=!1;for(let on=0;on<Ne.length;on++){const ct=Ne[on],De=Ye[ct.start][j],pe=Ye[ct.end][j];if((0,n.aj)(fe,De,pe)){gt=fe===De,Nt=fe===pe;break}}return{first:gt,last:Nt,point:te}}class zi{constructor(q){this.x=q.x,this.y=q.y,this.radius=q.radius}pathSegment(q,j,te){const{x:fe,y:Ne,radius:Ye}=this;return q.arc(fe,Ne,Ye,(j=j||{start:0,end:n.T}).end,j.start,!0),!te.bounds}interpolate(q){const{x:j,y:te,radius:fe}=this,Ne=q.angle;return{x:j+Math.cos(Ne)*fe,y:te+Math.sin(Ne)*fe,angle:Ne}}}function wn(de,q,j){const te=function mr(de){const{chart:q,fill:j,line:te}=de;if((0,n.g)(j))return function lr(de,q){const j=de.getDatasetMeta(q);return j&&de.isDatasetVisible(q)?j.dataset:null}(q,j);if("stack"===j)return function Wa(de){const{scale:q,index:j,line:te}=de,fe=[],Ne=te.segments,Ye=te.points,gt=function Ea(de,q){const j=[],te=de.getMatchingVisibleMetas("line");for(let fe=0;fe<te.length;fe++){const Ne=te[fe];if(Ne.index===q)break;Ne.hidden||j.unshift(Ne.dataset)}return j}(q,j);gt.push(tl({x:null,y:q.bottom},te));for(let Nt=0;Nt<Ne.length;Nt++){const on=Ne[Nt];for(let ct=on.start;ct<=on.end;ct++)Ks(fe,Ye[ct],gt)}return new Bs({points:fe,options:{}})}(de);if("shape"===j)return!0;const fe=function je(de){return(de.scale||{}).getPointPositionForValue?function un(de){const{scale:q,fill:j}=de,te=q.options,fe=q.getLabels().length,Ne=te.reverse?q.max:q.min,Ye=function ja(de,q,j){let te;return te="start"===de?j:"end"===de?q.options.reverse?q.min:q.max:(0,n.i)(de)?de.value:q.getBaseValue(),te}(j,q,Ne),gt=[];if(te.grid.circular){const Nt=q.getPointPositionForValue(0,Ne);return new zi({x:Nt.x,y:Nt.y,radius:q.getDistanceFromCenterForValue(Ye)})}for(let Nt=0;Nt<fe;++Nt)gt.push(q.getPointPositionForValue(Nt,Ye));return gt}(de):function Ft(de){const{scale:q={},fill:j}=de,te=function Ps(de,q){let j=null;return"start"===de?j=q.bottom:"end"===de?j=q.top:(0,n.i)(de)?j=q.getPixelForValue(de.value):q.getBasePixel&&(j=q.getBasePixel()),j}(j,q);if((0,n.g)(te)){const fe=q.isHorizontal();return{x:fe?te:null,y:fe?null:te}}return null}(de)}(de);return fe instanceof zi?fe:tl(fe,te)}(q),{line:fe,scale:Ne,axis:Ye}=q,gt=fe.options,Nt=gt.fill,on=gt.backgroundColor,{above:ct=on,below:De=on}=Nt||{};te&&fe.points.length&&((0,n.Y)(de,j),function zn(de,q){const{line:j,target:te,above:fe,below:Ne,area:Ye,scale:gt}=q,Nt=j._loop?"angle":q.axis;de.save(),"x"===Nt&&Ne!==fe&&(vi(de,te,Ye.top),Si(de,{line:j,target:te,color:fe,scale:gt,property:Nt}),de.restore(),de.save(),vi(de,te,Ye.bottom)),Si(de,{line:j,target:te,color:Ne,scale:gt,property:Nt}),de.restore()}(de,{line:fe,target:te,above:ct,below:De,area:j,scale:Ne,axis:Ye}),(0,n.$)(de))}function vi(de,q,j){const{segments:te,points:fe}=q;let Ne=!0,Ye=!1;de.beginPath();for(const gt of te){const{start:Nt,end:on}=gt,ct=fe[Nt],De=fe[vo(Nt,on,fe)];Ne?(de.moveTo(ct.x,ct.y),Ne=!1):(de.lineTo(ct.x,j),de.lineTo(ct.x,ct.y)),Ye=!!q.pathSegment(de,gt,{move:Ye}),Ye?de.closePath():de.lineTo(De.x,j)}de.lineTo(q.first().x,j),de.closePath(),de.clip()}function Si(de,q){const{line:j,target:te,property:fe,color:Ne,scale:Ye}=q,gt=function ca(de,q,j){const te=de.segments,fe=de.points,Ne=q.points,Ye=[];for(const gt of te){let{start:Nt,end:on}=gt;on=vo(Nt,on,fe);const ct=Zo(j,fe[Nt],fe[on],gt.loop);if(!q.segments){Ye.push({source:gt,target:ct,start:fe[Nt],end:fe[on]});continue}const De=(0,n.an)(q,ct);for(const pe of De){const Ge=Zo(j,Ne[pe.start],Ne[pe.end],pe.loop),xt=(0,n.ax)(gt,fe,Ge);for(const sn of xt)Ye.push({source:sn,target:pe,start:{[j]:ta(ct,Ge,"start",Math.max)},end:{[j]:ta(ct,Ge,"end",Math.min)}})}}return Ye}(j,te,fe);for(const{source:Nt,target:on,start:ct,end:De}of gt){const{style:{backgroundColor:pe=Ne}={}}=Nt,Ge=!0!==te;de.save(),de.fillStyle=pe,Ri(de,Ye,Ge&&Zo(fe,ct,De)),de.beginPath();const xt=!!j.pathSegment(de,Nt);let sn;if(Ge){xt?de.closePath():nr(de,te,De,fe);const En=!!te.pathSegment(de,on,{move:xt,reverse:!0});sn=xt&&En,sn||nr(de,te,ct,fe)}de.closePath(),de.fill(sn?"evenodd":"nonzero"),de.restore()}}function Ri(de,q,j){const{top:te,bottom:fe}=q.chart.chartArea,{property:Ne,start:Ye,end:gt}=j||{};"x"===Ne&&(de.beginPath(),de.rect(Ye,te,gt-Ye,fe-te),de.clip())}function nr(de,q,j,te){const fe=q.interpolate(j,te);fe&&de.lineTo(fe.x,fe.y)}var _r={id:"filler",afterDatasetsUpdate(de,q,j){const te=(de.data.datasets||[]).length,fe=[];let Ne,Ye,gt,Nt;for(Ye=0;Ye<te;++Ye)Ne=de.getDatasetMeta(Ye),gt=Ne.dataset,Nt=null,gt&>.options&> instanceof Bs&&(Nt={visible:de.isDatasetVisible(Ye),index:Ye,fill:Ls(gt,Ye,te),chart:de,axis:Ne.controller.options.indexAxis,scale:Ne.vScale,line:gt}),Ne.$filler=Nt,fe.push(Nt);for(Ye=0;Ye<te;++Ye)Nt=fe[Ye],Nt&&!1!==Nt.fill&&(Nt.fill=Ei(fe,Ye,j.propagate))},beforeDraw(de,q,j){const te="beforeDraw"===j.drawTime,fe=de.getSortedVisibleDatasetMetas(),Ne=de.chartArea;for(let Ye=fe.length-1;Ye>=0;--Ye){const gt=fe[Ye].$filler;gt&&(gt.line.updateControlPoints(Ne,gt.axis),te&>.fill&&wn(de.ctx,gt,Ne))}},beforeDatasetsDraw(de,q,j){if("beforeDatasetsDraw"!==j.drawTime)return;const te=de.getSortedVisibleDatasetMetas();for(let fe=te.length-1;fe>=0;--fe){const Ne=te[fe].$filler;Ie(Ne)&&wn(de.ctx,Ne,de.chartArea)}},beforeDatasetDraw(de,q,j){const te=q.meta.$filler;!Ie(te)||"beforeDatasetDraw"!==j.drawTime||wn(de.ctx,te,de.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Er=(de,q)=>{let{boxHeight:j=q,boxWidth:te=q}=de;return de.usePointStyle&&(j=Math.min(j,q),te=de.pointStyleWidth||Math.min(te,q)),{boxWidth:te,boxHeight:j,itemHeight:Math.max(q,j)}};class To extends hi{constructor(q){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=q.chart,this.options=q.options,this.ctx=q.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(q,j,te){this.maxWidth=q,this.maxHeight=j,this._margins=te,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const q=this.options.labels||{};let j=(0,n.Q)(q.generateLabels,[this.chart],this)||[];q.filter&&(j=j.filter(te=>q.filter(te,this.chart.data))),q.sort&&(j=j.sort((te,fe)=>q.sort(te,fe,this.chart.data))),this.options.reverse&&j.reverse(),this.legendItems=j}fit(){const{options:q,ctx:j}=this;if(!q.display)return void(this.width=this.height=0);const te=q.labels,fe=(0,n.a0)(te.font),Ne=fe.size,Ye=this._computeTitleHeight(),{boxWidth:gt,itemHeight:Nt}=Er(te,Ne);let on,ct;j.font=fe.string,this.isHorizontal()?(on=this.maxWidth,ct=this._fitRows(Ye,Ne,gt,Nt)+10):(ct=this.maxHeight,on=this._fitCols(Ye,fe,gt,Nt)+10),this.width=Math.min(on,q.maxWidth||this.maxWidth),this.height=Math.min(ct,q.maxHeight||this.maxHeight)}_fitRows(q,j,te,fe){const{ctx:Ne,maxWidth:Ye,options:{labels:{padding:gt}}}=this,Nt=this.legendHitBoxes=[],on=this.lineWidths=[0],ct=fe+gt;let De=q;Ne.textAlign="left",Ne.textBaseline="middle";let pe=-1,Ge=-ct;return this.legendItems.forEach((xt,sn)=>{const En=te+j/2+Ne.measureText(xt.text).width;(0===sn||on[on.length-1]+En+2*gt>Ye)&&(De+=ct,on[on.length-(sn>0?0:1)]=0,Ge+=ct,pe++),Nt[sn]={left:0,top:Ge,row:pe,width:En,height:fe},on[on.length-1]+=En+gt}),De}_fitCols(q,j,te,fe){const{ctx:Ne,maxHeight:Ye,options:{labels:{padding:gt}}}=this,Nt=this.legendHitBoxes=[],on=this.columnSizes=[],ct=Ye-q;let De=gt,pe=0,Ge=0,xt=0,sn=0;return this.legendItems.forEach((En,Un)=>{const{itemWidth:ri,itemHeight:Mi}=function rn(de,q,j,te,fe){const Ne=function Di(de,q,j,te){let fe=de.text;return fe&&"string"!=typeof fe&&(fe=fe.reduce((Ne,Ye)=>Ne.length>Ye.length?Ne:Ye)),q+j.size/2+te.measureText(fe).width}(te,de,q,j),Ye=function Te(de,q,j){let te=de;return"string"!=typeof q.text&&(te=Jt(q,j)),te}(fe,te,q.lineHeight);return{itemWidth:Ne,itemHeight:Ye}}(te,j,Ne,En,fe);Un>0&&Ge+Mi+2*gt>ct&&(De+=pe+gt,on.push({width:pe,height:Ge}),xt+=pe+gt,sn++,pe=Ge=0),Nt[Un]={left:xt,top:Ge,col:sn,width:ri,height:Mi},pe=Math.max(pe,ri),Ge+=Mi+gt}),De+=pe,on.push({width:pe,height:Ge}),De}adjustHitBoxes(){if(!this.options.display)return;const q=this._computeTitleHeight(),{legendHitBoxes:j,options:{align:te,labels:{padding:fe},rtl:Ne}}=this,Ye=(0,n.az)(Ne,this.left,this.width);if(this.isHorizontal()){let gt=0,Nt=(0,n.a2)(te,this.left+fe,this.right-this.lineWidths[gt]);for(const on of j)gt!==on.row&&(gt=on.row,Nt=(0,n.a2)(te,this.left+fe,this.right-this.lineWidths[gt])),on.top+=this.top+q+fe,on.left=Ye.leftForLtr(Ye.x(Nt),on.width),Nt+=on.width+fe}else{let gt=0,Nt=(0,n.a2)(te,this.top+q+fe,this.bottom-this.columnSizes[gt].height);for(const on of j)on.col!==gt&&(gt=on.col,Nt=(0,n.a2)(te,this.top+q+fe,this.bottom-this.columnSizes[gt].height)),on.top=Nt,on.left+=this.left+fe,on.left=Ye.leftForLtr(Ye.x(on.left),on.width),Nt+=on.height+fe}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const q=this.ctx;(0,n.Y)(q,this),this._draw(),(0,n.$)(q)}}_draw(){const{options:q,columnSizes:j,lineWidths:te,ctx:fe}=this,{align:Ne,labels:Ye}=q,gt=n.d.color,Nt=(0,n.az)(q.rtl,this.left,this.width),on=(0,n.a0)(Ye.font),{padding:ct}=Ye,De=on.size,pe=De/2;let Ge;this.drawTitle(),fe.textAlign=Nt.textAlign("left"),fe.textBaseline="middle",fe.lineWidth=.5,fe.font=on.string;const{boxWidth:xt,boxHeight:sn,itemHeight:En}=Er(Ye,De),Mi=this.isHorizontal(),Xi=this._computeTitleHeight();Ge=Mi?{x:(0,n.a2)(Ne,this.left+ct,this.right-te[0]),y:this.top+ct+Xi,line:0}:{x:this.left+ct,y:(0,n.a2)(Ne,this.top+Xi+ct,this.bottom-j[0].height),line:0},(0,n.aA)(this.ctx,q.textDirection);const Ui=En+ct;this.legendItems.forEach((fr,xr)=>{fe.strokeStyle=fr.fontColor,fe.fillStyle=fr.fontColor;const yr=fe.measureText(fr.text).width,Rr=Nt.textAlign(fr.textAlign||(fr.textAlign=Ye.textAlign)),co=xt+pe+yr;let Bo=Ge.x,os=Ge.y;Nt.setWidth(this.width),Mi?xr>0&&Bo+co+ct>this.right&&(os=Ge.y+=Ui,Ge.line++,Bo=Ge.x=(0,n.a2)(Ne,this.left+ct,this.right-te[Ge.line])):xr>0&&os+Ui>this.bottom&&(Bo=Ge.x=Bo+j[Ge.line].width+ct,Ge.line++,os=Ge.y=(0,n.a2)(Ne,this.top+Xi+ct,this.bottom-j[Ge.line].height)),function(fr,xr,yr){if(isNaN(xt)||xt<=0||isNaN(sn)||sn<0)return;fe.save();const Rr=(0,n.v)(yr.lineWidth,1);if(fe.fillStyle=(0,n.v)(yr.fillStyle,gt),fe.lineCap=(0,n.v)(yr.lineCap,"butt"),fe.lineDashOffset=(0,n.v)(yr.lineDashOffset,0),fe.lineJoin=(0,n.v)(yr.lineJoin,"miter"),fe.lineWidth=Rr,fe.strokeStyle=(0,n.v)(yr.strokeStyle,gt),fe.setLineDash((0,n.v)(yr.lineDash,[])),Ye.usePointStyle){const co={radius:sn*Math.SQRT2/2,pointStyle:yr.pointStyle,rotation:yr.rotation,borderWidth:Rr},Bo=Nt.xPlus(fr,xt/2);(0,n.aD)(fe,co,Bo,xr+pe,Ye.pointStyleWidth&&xt)}else{const co=xr+Math.max((De-sn)/2,0),Bo=Nt.leftForLtr(fr,xt),os=(0,n.aw)(yr.borderRadius);fe.beginPath(),Object.values(os).some(Es=>0!==Es)?(0,n.au)(fe,{x:Bo,y:co,w:xt,h:sn,radius:os}):fe.rect(Bo,co,xt,sn),fe.fill(),0!==Rr&&fe.stroke()}fe.restore()}(Nt.x(Bo),os,fr),Bo=(0,n.aB)(Rr,Bo+xt+pe,Mi?Bo+co:this.right,q.rtl),function(fr,xr,yr){(0,n.Z)(fe,yr.text,fr,xr+En/2,on,{strikethrough:yr.hidden,textAlign:Nt.textAlign(yr.textAlign)})}(Nt.x(Bo),os,fr),Mi?Ge.x+=co+ct:Ge.y+="string"!=typeof fr.text?Jt(fr,on.lineHeight):Ui}),(0,n.aC)(this.ctx,q.textDirection)}drawTitle(){const q=this.options,j=q.title,te=(0,n.a0)(j.font),fe=(0,n.E)(j.padding);if(!j.display)return;const Ne=(0,n.az)(q.rtl,this.left,this.width),Ye=this.ctx,gt=j.position,on=fe.top+te.size/2;let ct,De=this.left,pe=this.width;if(this.isHorizontal())pe=Math.max(...this.lineWidths),ct=this.top+on,De=(0,n.a2)(q.align,De,this.right-pe);else{const xt=this.columnSizes.reduce((sn,En)=>Math.max(sn,En.height),0);ct=on+(0,n.a2)(q.align,this.top,this.bottom-xt-q.labels.padding-this._computeTitleHeight())}const Ge=(0,n.a2)(gt,De,De+pe);Ye.textAlign=Ne.textAlign((0,n.a1)(gt)),Ye.textBaseline="middle",Ye.strokeStyle=j.color,Ye.fillStyle=j.color,Ye.font=te.string,(0,n.Z)(Ye,j.text,Ge,ct,te)}_computeTitleHeight(){const q=this.options.title,j=(0,n.a0)(q.font),te=(0,n.E)(q.padding);return q.display?j.lineHeight+te.height:0}_getLegendItemAt(q,j){let te,fe,Ne;if((0,n.aj)(q,this.left,this.right)&&(0,n.aj)(j,this.top,this.bottom))for(Ne=this.legendHitBoxes,te=0;te<Ne.length;++te)if(fe=Ne[te],(0,n.aj)(q,fe.left,fe.left+fe.width)&&(0,n.aj)(j,fe.top,fe.top+fe.height))return this.legendItems[te];return null}handleEvent(q){const j=this.options;if(!function Rt(de,q){return!(("mousemove"!==de&&"mouseout"!==de||!q.onHover&&!q.onLeave)&&(!q.onClick||"click"!==de&&"mouseup"!==de))}(q.type,j))return;const te=this._getLegendItemAt(q.x,q.y);if("mousemove"===q.type||"mouseout"===q.type){const fe=this._hoveredItem,Ne=((de,q)=>null!==de&&null!==q&&de.datasetIndex===q.datasetIndex&&de.index===q.index)(fe,te);fe&&!Ne&&(0,n.Q)(j.onLeave,[q,fe,this],this),this._hoveredItem=te,te&&!Ne&&(0,n.Q)(j.onHover,[q,te,this],this)}else te&&(0,n.Q)(j.onClick,[q,te,this],this)}}function Jt(de,q){return q*(de.text?de.text.length+.5:0)}var ei={id:"legend",_element:To,start(de,q,j){const te=de.legend=new To({ctx:de.ctx,options:j,chart:de});Lt.configure(de,te,j),Lt.addBox(de,te)},stop(de){Lt.removeBox(de,de.legend),delete de.legend},beforeUpdate(de,q,j){const te=de.legend;Lt.configure(de,te,j),te.options=j},afterUpdate(de){const q=de.legend;q.buildLabels(),q.adjustHitBoxes()},afterEvent(de,q){q.replay||de.legend.handleEvent(q.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(de,q,j){const te=q.datasetIndex,fe=j.chart;fe.isDatasetVisible(te)?(fe.hide(te),q.hidden=!0):(fe.show(te),q.hidden=!1)},onHover:null,onLeave:null,labels:{color:de=>de.chart.options.color,boxWidth:40,padding:10,generateLabels(de){const q=de.data.datasets,{labels:{usePointStyle:j,pointStyle:te,textAlign:fe,color:Ne,useBorderRadius:Ye,borderRadius:gt}}=de.legend.options;return de._getSortedDatasetMetas().map(Nt=>{const on=Nt.controller.getStyle(j?0:void 0),ct=(0,n.E)(on.borderWidth);return{text:q[Nt.index].label,fillStyle:on.backgroundColor,fontColor:Ne,hidden:!Nt.visible,lineCap:on.borderCapStyle,lineDash:on.borderDash,lineDashOffset:on.borderDashOffset,lineJoin:on.borderJoinStyle,lineWidth:(ct.width+ct.height)/4,strokeStyle:on.borderColor,pointStyle:te||on.pointStyle,rotation:on.rotation,textAlign:fe||on.textAlign,borderRadius:Ye&&(gt||on.borderRadius),datasetIndex:Nt.index}},this)}},title:{color:de=>de.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:de=>!de.startsWith("on"),labels:{_scriptable:de=>!["generateLabels","filter","sort"].includes(de)}}};class tr extends hi{constructor(q){super(),this.chart=q.chart,this.options=q.options,this.ctx=q.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(q,j){const te=this.options;if(this.left=0,this.top=0,!te.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=q,this.height=this.bottom=j;const fe=(0,n.b)(te.text)?te.text.length:1;this._padding=(0,n.E)(te.padding);const Ne=fe*(0,n.a0)(te.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=Ne:this.width=Ne}isHorizontal(){const q=this.options.position;return"top"===q||"bottom"===q}_drawArgs(q){const{top:j,left:te,bottom:fe,right:Ne,options:Ye}=this,gt=Ye.align;let on,ct,De,Nt=0;return this.isHorizontal()?(ct=(0,n.a2)(gt,te,Ne),De=j+q,on=Ne-te):("left"===Ye.position?(ct=te+q,De=(0,n.a2)(gt,fe,j),Nt=-.5*n.P):(ct=Ne-q,De=(0,n.a2)(gt,j,fe),Nt=.5*n.P),on=fe-j),{titleX:ct,titleY:De,maxWidth:on,rotation:Nt}}draw(){const q=this.ctx,j=this.options;if(!j.display)return;const te=(0,n.a0)(j.font),Ne=te.lineHeight/2+this._padding.top,{titleX:Ye,titleY:gt,maxWidth:Nt,rotation:on}=this._drawArgs(Ne);(0,n.Z)(q,j.text,0,0,te,{color:j.color,maxWidth:Nt,rotation:on,textAlign:(0,n.a1)(j.align),textBaseline:"middle",translation:[Ye,gt]})}}var lo={id:"title",_element:tr,start(de,q,j){!function Ur(de,q){const j=new tr({ctx:de.ctx,options:q,chart:de});Lt.configure(de,j,q),Lt.addBox(de,j),de.titleBlock=j}(de,j)},stop(de){Lt.removeBox(de,de.titleBlock),delete de.titleBlock},beforeUpdate(de,q,j){const te=de.titleBlock;Lt.configure(de,te,j),te.options=j},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const wo=new WeakMap;var Lr={id:"subtitle",start(de,q,j){const te=new tr({ctx:de.ctx,options:j,chart:de});Lt.configure(de,te,j),Lt.addBox(de,te),wo.set(de,te)},stop(de){Lt.removeBox(de,wo.get(de)),wo.delete(de)},beforeUpdate(de,q,j){const te=wo.get(de);Lt.configure(de,te,j),te.options=j},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ns={average(de){if(!de.length)return!1;let q,j,te=0,fe=0,Ne=0;for(q=0,j=de.length;q<j;++q){const Ye=de[q].element;if(Ye&&Ye.hasValue()){const gt=Ye.tooltipPosition();te+=gt.x,fe+=gt.y,++Ne}}return{x:te/Ne,y:fe/Ne}},nearest(de,q){if(!de.length)return!1;let Ne,Ye,gt,j=q.x,te=q.y,fe=Number.POSITIVE_INFINITY;for(Ne=0,Ye=de.length;Ne<Ye;++Ne){const Nt=de[Ne].element;if(Nt&&Nt.hasValue()){const on=Nt.getCenterPoint(),ct=(0,n.aE)(q,on);ct<fe&&(fe=ct,gt=Nt)}}if(gt){const Nt=gt.tooltipPosition();j=Nt.x,te=Nt.y}return{x:j,y:te}}};function Io(de,q){return q&&((0,n.b)(q)?Array.prototype.push.apply(de,q):de.push(q)),de}function da(de){return("string"==typeof de||de instanceof String)&&de.indexOf("\n")>-1?de.split("\n"):de}function _a(de,q){const{element:j,datasetIndex:te,index:fe}=q,Ne=de.getDatasetMeta(te).controller,{label:Ye,value:gt}=Ne.getLabelAndValue(fe);return{chart:de,label:Ye,parsed:Ne.getParsed(fe),raw:de.data.datasets[te].data[fe],formattedValue:gt,dataset:Ne.getDataset(),dataIndex:fe,datasetIndex:te,element:j}}function Mt(de,q){const j=de.chart.ctx,{body:te,footer:fe,title:Ne}=de,{boxWidth:Ye,boxHeight:gt}=q,Nt=(0,n.a0)(q.bodyFont),on=(0,n.a0)(q.titleFont),ct=(0,n.a0)(q.footerFont),De=Ne.length,pe=fe.length,Ge=te.length,xt=(0,n.E)(q.padding);let sn=xt.height,En=0,Un=te.reduce((Xi,Ui)=>Xi+Ui.before.length+Ui.lines.length+Ui.after.length,0);Un+=de.beforeBody.length+de.afterBody.length,De&&(sn+=De*on.lineHeight+(De-1)*q.titleSpacing+q.titleMarginBottom),Un&&(sn+=Ge*(q.displayColors?Math.max(gt,Nt.lineHeight):Nt.lineHeight)+(Un-Ge)*Nt.lineHeight+(Un-1)*q.bodySpacing),pe&&(sn+=q.footerMarginTop+pe*ct.lineHeight+(pe-1)*q.footerSpacing);let ri=0;const Mi=function(Xi){En=Math.max(En,j.measureText(Xi).width+ri)};return j.save(),j.font=on.string,(0,n.F)(de.title,Mi),j.font=Nt.string,(0,n.F)(de.beforeBody.concat(de.afterBody),Mi),ri=q.displayColors?Ye+2+q.boxPadding:0,(0,n.F)(te,Xi=>{(0,n.F)(Xi.before,Mi),(0,n.F)(Xi.lines,Mi),(0,n.F)(Xi.after,Mi)}),ri=0,j.font=ct.string,(0,n.F)(de.footer,Mi),j.restore(),En+=xt.width,{width:En,height:sn}}function Pn(de,q,j,te){const{x:fe,width:Ne}=j,{width:Ye,chartArea:{left:gt,right:Nt}}=de;let on="center";return"center"===te?on=fe<=(gt+Nt)/2?"left":"right":fe<=Ne/2?on="left":fe>=Ye-Ne/2&&(on="right"),function qt(de,q,j,te){const{x:fe,width:Ne}=te,Ye=j.caretSize+j.caretPadding;if("left"===de&&fe+Ne+Ye>q.width||"right"===de&&fe-Ne-Ye<0)return!0}(on,de,q,j)&&(on="center"),on}function yi(de,q,j){const te=j.yAlign||q.yAlign||function Dn(de,q){const{y:j,height:te}=q;return j<te/2?"top":j>de.height-te/2?"bottom":"center"}(de,j);return{xAlign:j.xAlign||q.xAlign||Pn(de,q,j,te),yAlign:te}}function uo(de,q,j,te){const{caretSize:fe,caretPadding:Ne,cornerRadius:Ye}=de,{xAlign:gt,yAlign:Nt}=j,on=fe+Ne,{topLeft:ct,topRight:De,bottomLeft:pe,bottomRight:Ge}=(0,n.aw)(Ye);let xt=function ur(de,q){let{x:j,width:te}=de;return"right"===q?j-=te:"center"===q&&(j-=te/2),j}(q,gt);const sn=function Pr(de,q,j){let{y:te,height:fe}=de;return"top"===q?te+=j:te-="bottom"===q?fe+j:fe/2,te}(q,Nt,on);return"center"===Nt?"left"===gt?xt+=on:"right"===gt&&(xt-=on):"left"===gt?xt-=Math.max(ct,pe)+fe:"right"===gt&&(xt+=Math.max(De,Ge)+fe),{x:(0,n.S)(xt,0,te.width-q.width),y:(0,n.S)(sn,0,te.height-q.height)}}function vs(de,q,j){const te=(0,n.E)(j.padding);return"center"===q?de.x+de.width/2:"right"===q?de.x+de.width-te.right:de.x+te.left}function ss(de){return Io([],da(de))}function Ro(de,q){const j=q&&q.dataset&&q.dataset.tooltip&&q.dataset.tooltip.callbacks;return j?de.override(j):de}const Gs={beforeTitle:n.aF,title(de){if(de.length>0){const q=de[0],j=q.chart.data.labels,te=j?j.length:0;if(this&&this.options&&"dataset"===this.options.mode)return q.dataset.label||"";if(q.label)return q.label;if(te>0&&q.dataIndex<te)return j[q.dataIndex]}return""},afterTitle:n.aF,beforeBody:n.aF,beforeLabel:n.aF,label(de){if(this&&this.options&&"dataset"===this.options.mode)return de.label+": "+de.formattedValue||de.formattedValue;let q=de.dataset.label||"";q&&(q+=": ");const j=de.formattedValue;return(0,n.k)(j)||(q+=j),q},labelColor(de){const j=de.chart.getDatasetMeta(de.datasetIndex).controller.getStyle(de.dataIndex);return{borderColor:j.borderColor,backgroundColor:j.backgroundColor,borderWidth:j.borderWidth,borderDash:j.borderDash,borderDashOffset:j.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(de){const j=de.chart.getDatasetMeta(de.datasetIndex).controller.getStyle(de.dataIndex);return{pointStyle:j.pointStyle,rotation:j.rotation}},afterLabel:n.aF,afterBody:n.aF,beforeFooter:n.aF,footer:n.aF,afterFooter:n.aF};function es(de,q,j,te){const fe=de[q].call(j,te);return typeof fe>"u"?Gs[q].call(j,te):fe}let hs=(()=>class de extends hi{static positioners=ns;constructor(j){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=j.chart,this.options=j.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(j){this.options=j,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const j=this._cachedAnimations;if(j)return j;const te=this.chart,fe=this.options.setContext(this.getContext()),Ne=fe.enabled&&te.options.animation&&fe.animations,Ye=new f(this.chart,Ne);return Ne._cacheable&&(this._cachedAnimations=Object.freeze(Ye)),Ye}getContext(){return this.$context||(this.$context=function Ts(de,q,j){return(0,n.j)(de,{tooltip:q,tooltipItems:j,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(j,te){const{callbacks:fe}=te,Ne=es(fe,"beforeTitle",this,j),Ye=es(fe,"title",this,j),gt=es(fe,"afterTitle",this,j);let Nt=[];return Nt=Io(Nt,da(Ne)),Nt=Io(Nt,da(Ye)),Nt=Io(Nt,da(gt)),Nt}getBeforeBody(j,te){return ss(es(te.callbacks,"beforeBody",this,j))}getBody(j,te){const{callbacks:fe}=te,Ne=[];return(0,n.F)(j,Ye=>{const gt={before:[],lines:[],after:[]},Nt=Ro(fe,Ye);Io(gt.before,da(es(Nt,"beforeLabel",this,Ye))),Io(gt.lines,es(Nt,"label",this,Ye)),Io(gt.after,da(es(Nt,"afterLabel",this,Ye))),Ne.push(gt)}),Ne}getAfterBody(j,te){return ss(es(te.callbacks,"afterBody",this,j))}getFooter(j,te){const{callbacks:fe}=te,Ne=es(fe,"beforeFooter",this,j),Ye=es(fe,"footer",this,j),gt=es(fe,"afterFooter",this,j);let Nt=[];return Nt=Io(Nt,da(Ne)),Nt=Io(Nt,da(Ye)),Nt=Io(Nt,da(gt)),Nt}_createItems(j){const te=this._active,fe=this.chart.data,Ne=[],Ye=[],gt=[];let on,ct,Nt=[];for(on=0,ct=te.length;on<ct;++on)Nt.push(_a(this.chart,te[on]));return j.filter&&(Nt=Nt.filter((De,pe,Ge)=>j.filter(De,pe,Ge,fe))),j.itemSort&&(Nt=Nt.sort((De,pe)=>j.itemSort(De,pe,fe))),(0,n.F)(Nt,De=>{const pe=Ro(j.callbacks,De);Ne.push(es(pe,"labelColor",this,De)),Ye.push(es(pe,"labelPointStyle",this,De)),gt.push(es(pe,"labelTextColor",this,De))}),this.labelColors=Ne,this.labelPointStyles=Ye,this.labelTextColors=gt,this.dataPoints=Nt,Nt}update(j,te){const fe=this.options.setContext(this.getContext()),Ne=this._active;let Ye,gt=[];if(Ne.length){const Nt=ns[fe.position].call(this,Ne,this._eventPosition);gt=this._createItems(fe),this.title=this.getTitle(gt,fe),this.beforeBody=this.getBeforeBody(gt,fe),this.body=this.getBody(gt,fe),this.afterBody=this.getAfterBody(gt,fe),this.footer=this.getFooter(gt,fe);const on=this._size=Mt(this,fe),ct=Object.assign({},Nt,on),De=yi(this.chart,fe,ct),pe=uo(fe,ct,De,this.chart);this.xAlign=De.xAlign,this.yAlign=De.yAlign,Ye={opacity:1,x:pe.x,y:pe.y,width:on.width,height:on.height,caretX:Nt.x,caretY:Nt.y}}else 0!==this.opacity&&(Ye={opacity:0});this._tooltipItems=gt,this.$context=void 0,Ye&&this._resolveAnimations().update(this,Ye),j&&fe.external&&fe.external.call(this,{chart:this.chart,tooltip:this,replay:te})}drawCaret(j,te,fe,Ne){const Ye=this.getCaretPosition(j,fe,Ne);te.lineTo(Ye.x1,Ye.y1),te.lineTo(Ye.x2,Ye.y2),te.lineTo(Ye.x3,Ye.y3)}getCaretPosition(j,te,fe){const{xAlign:Ne,yAlign:Ye}=this,{caretSize:gt,cornerRadius:Nt}=fe,{topLeft:on,topRight:ct,bottomLeft:De,bottomRight:pe}=(0,n.aw)(Nt),{x:Ge,y:xt}=j,{width:sn,height:En}=te;let Un,ri,Mi,Xi,Ui,fr;return"center"===Ye?(Ui=xt+En/2,"left"===Ne?(Un=Ge,ri=Un-gt,Xi=Ui+gt,fr=Ui-gt):(Un=Ge+sn,ri=Un+gt,Xi=Ui-gt,fr=Ui+gt),Mi=Un):(ri="left"===Ne?Ge+Math.max(on,De)+gt:"right"===Ne?Ge+sn-Math.max(ct,pe)-gt:this.caretX,"top"===Ye?(Xi=xt,Ui=Xi-gt,Un=ri-gt,Mi=ri+gt):(Xi=xt+En,Ui=Xi+gt,Un=ri+gt,Mi=ri-gt),fr=Xi),{x1:Un,x2:ri,x3:Mi,y1:Xi,y2:Ui,y3:fr}}drawTitle(j,te,fe){const Ne=this.title,Ye=Ne.length;let gt,Nt,on;if(Ye){const ct=(0,n.az)(fe.rtl,this.x,this.width);for(j.x=vs(this,fe.titleAlign,fe),te.textAlign=ct.textAlign(fe.titleAlign),te.textBaseline="middle",gt=(0,n.a0)(fe.titleFont),Nt=fe.titleSpacing,te.fillStyle=fe.titleColor,te.font=gt.string,on=0;on<Ye;++on)te.fillText(Ne[on],ct.x(j.x),j.y+gt.lineHeight/2),j.y+=gt.lineHeight+Nt,on+1===Ye&&(j.y+=fe.titleMarginBottom-Nt)}}_drawColorBox(j,te,fe,Ne,Ye){const gt=this.labelColors[fe],Nt=this.labelPointStyles[fe],{boxHeight:on,boxWidth:ct,boxPadding:De}=Ye,pe=(0,n.a0)(Ye.bodyFont),Ge=vs(this,"left",Ye),xt=Ne.x(Ge),En=te.y+(on<pe.lineHeight?(pe.lineHeight-on)/2:0);if(Ye.usePointStyle){const Un={radius:Math.min(ct,on)/2,pointStyle:Nt.pointStyle,rotation:Nt.rotation,borderWidth:1},ri=Ne.leftForLtr(xt,ct)+ct/2,Mi=En+on/2;j.strokeStyle=Ye.multiKeyBackground,j.fillStyle=Ye.multiKeyBackground,(0,n.at)(j,Un,ri,Mi),j.strokeStyle=gt.borderColor,j.fillStyle=gt.backgroundColor,(0,n.at)(j,Un,ri,Mi)}else{j.lineWidth=(0,n.i)(gt.borderWidth)?Math.max(...Object.values(gt.borderWidth)):gt.borderWidth||1,j.strokeStyle=gt.borderColor,j.setLineDash(gt.borderDash||[]),j.lineDashOffset=gt.borderDashOffset||0;const Un=Ne.leftForLtr(xt,ct-De),ri=Ne.leftForLtr(Ne.xPlus(xt,1),ct-De-2),Mi=(0,n.aw)(gt.borderRadius);Object.values(Mi).some(Xi=>0!==Xi)?(j.beginPath(),j.fillStyle=Ye.multiKeyBackground,(0,n.au)(j,{x:Un,y:En,w:ct,h:on,radius:Mi}),j.fill(),j.stroke(),j.fillStyle=gt.backgroundColor,j.beginPath(),(0,n.au)(j,{x:ri,y:En+1,w:ct-2,h:on-2,radius:Mi}),j.fill()):(j.fillStyle=Ye.multiKeyBackground,j.fillRect(Un,En,ct,on),j.strokeRect(Un,En,ct,on),j.fillStyle=gt.backgroundColor,j.fillRect(ri,En+1,ct-2,on-2))}j.fillStyle=this.labelTextColors[fe]}drawBody(j,te,fe){const{body:Ne}=this,{bodySpacing:Ye,bodyAlign:gt,displayColors:Nt,boxHeight:on,boxWidth:ct,boxPadding:De}=fe,pe=(0,n.a0)(fe.bodyFont);let Ge=pe.lineHeight,xt=0;const sn=(0,n.az)(fe.rtl,this.x,this.width),En=function(Rr){te.fillText(Rr,sn.x(j.x+xt),j.y+Ge/2),j.y+=Ge+Ye},Un=sn.textAlign(gt);let ri,Mi,Xi,Ui,fr,xr,yr;for(te.textAlign=gt,te.textBaseline="middle",te.font=pe.string,j.x=vs(this,Un,fe),te.fillStyle=fe.bodyColor,(0,n.F)(this.beforeBody,En),xt=Nt&&"right"!==Un?"center"===gt?ct/2+De:ct+2+De:0,Ui=0,xr=Ne.length;Ui<xr;++Ui){for(ri=Ne[Ui],Mi=this.labelTextColors[Ui],te.fillStyle=Mi,(0,n.F)(ri.before,En),Xi=ri.lines,Nt&&Xi.length&&(this._drawColorBox(te,j,Ui,sn,fe),Ge=Math.max(pe.lineHeight,on)),fr=0,yr=Xi.length;fr<yr;++fr)En(Xi[fr]),Ge=pe.lineHeight;(0,n.F)(ri.after,En)}xt=0,Ge=pe.lineHeight,(0,n.F)(this.afterBody,En),j.y-=Ye}drawFooter(j,te,fe){const Ne=this.footer,Ye=Ne.length;let gt,Nt;if(Ye){const on=(0,n.az)(fe.rtl,this.x,this.width);for(j.x=vs(this,fe.footerAlign,fe),j.y+=fe.footerMarginTop,te.textAlign=on.textAlign(fe.footerAlign),te.textBaseline="middle",gt=(0,n.a0)(fe.footerFont),te.fillStyle=fe.footerColor,te.font=gt.string,Nt=0;Nt<Ye;++Nt)te.fillText(Ne[Nt],on.x(j.x),j.y+gt.lineHeight/2),j.y+=gt.lineHeight+fe.footerSpacing}}drawBackground(j,te,fe,Ne){const{xAlign:Ye,yAlign:gt}=this,{x:Nt,y:on}=j,{width:ct,height:De}=fe,{topLeft:pe,topRight:Ge,bottomLeft:xt,bottomRight:sn}=(0,n.aw)(Ne.cornerRadius);te.fillStyle=Ne.backgroundColor,te.strokeStyle=Ne.borderColor,te.lineWidth=Ne.borderWidth,te.beginPath(),te.moveTo(Nt+pe,on),"top"===gt&&this.drawCaret(j,te,fe,Ne),te.lineTo(Nt+ct-Ge,on),te.quadraticCurveTo(Nt+ct,on,Nt+ct,on+Ge),"center"===gt&&"right"===Ye&&this.drawCaret(j,te,fe,Ne),te.lineTo(Nt+ct,on+De-sn),te.quadraticCurveTo(Nt+ct,on+De,Nt+ct-sn,on+De),"bottom"===gt&&this.drawCaret(j,te,fe,Ne),te.lineTo(Nt+xt,on+De),te.quadraticCurveTo(Nt,on+De,Nt,on+De-xt),"center"===gt&&"left"===Ye&&this.drawCaret(j,te,fe,Ne),te.lineTo(Nt,on+pe),te.quadraticCurveTo(Nt,on,Nt+pe,on),te.closePath(),te.fill(),Ne.borderWidth>0&&te.stroke()}_updateAnimationTarget(j){const te=this.chart,fe=this.$animations,Ne=fe&&fe.x,Ye=fe&&fe.y;if(Ne||Ye){const gt=ns[j.position].call(this,this._active,this._eventPosition);if(!gt)return;const Nt=this._size=Mt(this,j),on=Object.assign({},gt,this._size),ct=yi(te,j,on),De=uo(j,on,ct,te);(Ne._to!==De.x||Ye._to!==De.y)&&(this.xAlign=ct.xAlign,this.yAlign=ct.yAlign,this.width=Nt.width,this.height=Nt.height,this.caretX=gt.x,this.caretY=gt.y,this._resolveAnimations().update(this,De))}}_willRender(){return!!this.opacity}draw(j){const te=this.options.setContext(this.getContext());let fe=this.opacity;if(!fe)return;this._updateAnimationTarget(te);const Ne={width:this.width,height:this.height},Ye={x:this.x,y:this.y};fe=Math.abs(fe)<.001?0:fe;const gt=(0,n.E)(te.padding);te.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(j.save(),j.globalAlpha=fe,this.drawBackground(Ye,j,Ne,te),(0,n.aA)(j,te.textDirection),Ye.y+=gt.top,this.drawTitle(Ye,j,te),this.drawBody(Ye,j,te),this.drawFooter(Ye,j,te),(0,n.aC)(j,te.textDirection),j.restore())}getActiveElements(){return this._active||[]}setActiveElements(j,te){const fe=this._active,Ne=j.map(({datasetIndex:Nt,index:on})=>{const ct=this.chart.getDatasetMeta(Nt);if(!ct)throw new Error("Cannot find a dataset at index "+Nt);return{datasetIndex:Nt,element:ct.data[on],index:on}}),Ye=!(0,n.ah)(fe,Ne),gt=this._positionChanged(Ne,te);(Ye||gt)&&(this._active=Ne,this._eventPosition=te,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(j,te,fe=!0){if(te&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const Ne=this.options,Ye=this._active||[],gt=this._getActiveElements(j,Ye,te,fe),Nt=this._positionChanged(gt,j),on=te||!(0,n.ah)(gt,Ye)||Nt;return on&&(this._active=gt,(Ne.enabled||Ne.external)&&(this._eventPosition={x:j.x,y:j.y},this.update(!0,te))),on}_getActiveElements(j,te,fe,Ne){const Ye=this.options;if("mouseout"===j.type)return[];if(!Ne)return te;const gt=this.chart.getElementsAtEventForMode(j,Ye.mode,Ye,fe);return Ye.reverse&>.reverse(),gt}_positionChanged(j,te){const{caretX:fe,caretY:Ne,options:Ye}=this,gt=ns[Ye.position].call(this,j,te);return!1!==gt&&(fe!==gt.x||Ne!==gt.y)}})();var Gr=Object.freeze({__proto__:null,Colors:Wr,Decimation:el,Filler:_r,Legend:ei,SubTitle:Lr,Title:lo,Tooltip:{id:"tooltip",_element:hs,positioners:ns,afterInit(de,q,j){j&&(de.tooltip=new hs({chart:de,options:j}))},beforeUpdate(de,q,j){de.tooltip&&de.tooltip.initialize(j)},reset(de,q,j){de.tooltip&&de.tooltip.initialize(j)},afterDraw(de){const q=de.tooltip;if(q&&q._willRender()){const j={tooltip:q};if(!1===de.notifyPlugins("beforeTooltipDraw",{...j,cancelable:!0}))return;q.draw(de.ctx),de.notifyPlugins("afterTooltipDraw",j)}},afterEvent(de,q){de.tooltip&&de.tooltip.handleEvent(q.event,q.replay,q.inChartArea)&&(q.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(de,q)=>q.bodyFont.size,boxWidth:(de,q)=>q.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Gs},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:de=>"filter"!==de&&"itemSort"!==de&&"external"!==de,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]}});function sa(de){const q=this.getLabels();return de>=0&&de<q.length?q[de]:de}let as=(()=>class de extends jr{static id="category";static defaults={ticks:{callback:sa}};constructor(j){super(j),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(j){const te=this._addedLabels;if(te.length){const fe=this.getLabels();for(const{index:Ne,label:Ye}of te)fe[Ne]===Ye&&fe.splice(Ne,1);this._addedLabels=[]}super.init(j)}parse(j,te){if((0,n.k)(j))return null;const fe=this.getLabels();return((de,q)=>null===de?null:(0,n.S)(Math.round(de),0,q))(te=isFinite(te)&&fe[te]===j?te:function Vs(de,q,j,te){const fe=de.indexOf(q);return-1===fe?((de,q,j,te)=>("string"==typeof q?(j=de.push(q)-1,te.unshift({index:j,label:q})):isNaN(q)&&(j=null),j))(de,q,j,te):fe!==de.lastIndexOf(q)?j:fe}(fe,j,(0,n.v)(te,j),this._addedLabels),fe.length-1)}determineDataLimits(){const{minDefined:j,maxDefined:te}=this.getUserBounds();let{min:fe,max:Ne}=this.getMinMax(!0);"ticks"===this.options.bounds&&(j||(fe=0),te||(Ne=this.getLabels().length-1)),this.min=fe,this.max=Ne}buildTicks(){const j=this.min,te=this.max,fe=this.options.offset,Ne=[];let Ye=this.getLabels();Ye=0===j&&te===Ye.length-1?Ye:Ye.slice(j,te+1),this._valueRange=Math.max(Ye.length-(fe?0:1),1),this._startValue=this.min-(fe?.5:0);for(let gt=j;gt<=te;gt++)Ne.push({value:gt});return Ne}getLabelForValue(j){return sa.call(this,j)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(j){return"number"!=typeof j&&(j=this.parse(j)),null===j?NaN:this.getPixelForDecimal((j-this._startValue)/this._valueRange)}getPixelForTick(j){const te=this.ticks;return j<0||j>te.length-1?null:this.getPixelForValue(te[j].value)}getValueForPixel(j){return Math.round(this._startValue+this.getDecimalForPixel(j)*this._valueRange)}getBasePixel(){return this.bottom}})();function jo(de,q,{horizontal:j,minRotation:te}){const fe=(0,n.t)(te),Ne=(j?Math.sin(fe):Math.cos(fe))||.001;return Math.min(q/Ne,.75*q*(""+de).length)}class Oo extends jr{constructor(q){super(q),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(q,j){return(0,n.k)(q)||("number"==typeof q||q instanceof Number)&&!isFinite(+q)?null:+q}handleTickRangeOptions(){const{beginAtZero:q}=this.options,{minDefined:j,maxDefined:te}=this.getUserBounds();let{min:fe,max:Ne}=this;const Ye=Nt=>fe=j?fe:Nt,gt=Nt=>Ne=te?Ne:Nt;if(q){const Nt=(0,n.s)(fe),on=(0,n.s)(Ne);Nt<0&&on<0?gt(0):Nt>0&&on>0&&Ye(0)}if(fe===Ne){let Nt=0===Ne?1:Math.abs(.05*Ne);gt(Ne+Nt),q||Ye(fe-Nt)}this.min=fe,this.max=Ne}getTickLimit(){const q=this.options.ticks;let fe,{maxTicksLimit:j,stepSize:te}=q;return te?(fe=Math.ceil(this.max/te)-Math.floor(this.min/te)+1,fe>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${te} would result generating up to ${fe} ticks. Limiting to 1000.`),fe=1e3)):(fe=this.computeTickLimit(),j=j||11),j&&(fe=Math.min(j,fe)),fe}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const q=this.options,j=q.ticks;let te=this.getTickLimit();te=Math.max(2,te);const Ye=function il(de,q){const j=[],{bounds:fe,step:Ne,min:Ye,max:gt,precision:Nt,count:on,maxTicks:ct,maxDigits:De,includeBounds:pe}=de,Ge=Ne||1,xt=ct-1,{min:sn,max:En}=q,Un=!(0,n.k)(Ye),ri=!(0,n.k)(gt),Mi=!(0,n.k)(on),Xi=(En-sn)/(De+1);let fr,xr,yr,Rr,Ui=(0,n.aH)((En-sn)/xt/Ge)*Ge;if(Ui<1e-14&&!Un&&!ri)return[{value:sn},{value:En}];Rr=Math.ceil(En/Ui)-Math.floor(sn/Ui),Rr>xt&&(Ui=(0,n.aH)(Rr*Ui/xt/Ge)*Ge),(0,n.k)(Nt)||(fr=Math.pow(10,Nt),Ui=Math.ceil(Ui*fr)/fr),"ticks"===fe?(xr=Math.floor(sn/Ui)*Ui,yr=Math.ceil(En/Ui)*Ui):(xr=sn,yr=En),Un&&ri&&Ne&&(0,n.aI)((gt-Ye)/Ne,Ui/1e3)?(Rr=Math.round(Math.min((gt-Ye)/Ui,ct)),Ui=(gt-Ye)/Rr,xr=Ye,yr=gt):Mi?(xr=Un?Ye:xr,yr=ri?gt:yr,Rr=on-1,Ui=(yr-xr)/Rr):(Rr=(yr-xr)/Ui,Rr=(0,n.aJ)(Rr,Math.round(Rr),Ui/1e3)?Math.round(Rr):Math.ceil(Rr));const co=Math.max((0,n.aK)(Ui),(0,n.aK)(xr));fr=Math.pow(10,(0,n.k)(Nt)?co:Nt),xr=Math.round(xr*fr)/fr,yr=Math.round(yr*fr)/fr;let Bo=0;for(Un&&(pe&&xr!==Ye?(j.push({value:Ye}),xr<Ye&&Bo++,(0,n.aJ)(Math.round((xr+Bo*Ui)*fr)/fr,Ye,jo(Ye,Xi,de))&&Bo++):xr<Ye&&Bo++);Bo<Rr;++Bo)j.push({value:Math.round((xr+Bo*Ui)*fr)/fr});return ri&&pe&&yr!==gt?j.length&&(0,n.aJ)(j[j.length-1].value,gt,jo(gt,Xi,de))?j[j.length-1].value=gt:j.push({value:gt}):(!ri||yr===gt)&&j.push({value:yr}),j}({maxTicks:te,bounds:q.bounds,min:q.min,max:q.max,precision:j.precision,step:j.stepSize,count:j.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:j.minRotation||0,includeBounds:!1!==j.includeBounds},this._range||this);return"ticks"===q.bounds&&(0,n.aG)(Ye,this,"value"),q.reverse?(Ye.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),Ye}configure(){const q=this.ticks;let j=this.min,te=this.max;if(super.configure(),this.options.offset&&q.length){const fe=(te-j)/Math.max(q.length-1,1)/2;j-=fe,te+=fe}this._startValue=j,this._endValue=te,this._valueRange=te-j}getLabelForValue(q){return(0,n.o)(q,this.chart.options.locale,this.options.ticks.format)}}const Uo=de=>Math.floor((0,n.aM)(de)),Xa=(de,q)=>Math.pow(10,Uo(de)+q);function vl(de){return de/Math.pow(10,Uo(de))==1}function Pl(de,q,j){const te=Math.pow(10,j),fe=Math.floor(de/te);return Math.ceil(q/te)-fe}function al(de){const q=de.ticks;if(q.display&&de.display){const j=(0,n.E)(q.backdropPadding);return(0,n.v)(q.font&&q.font.size,n.d.font.size)+j.height}return 0}function gl(de,q,j){return j=(0,n.b)(j)?j:[j],{w:(0,n.aN)(de,q.string,j),h:j.length*q.lineHeight}}function _l(de,q,j,te,fe){return de===te||de===fe?{start:q-j/2,end:q+j/2}:de<te||de>fe?{start:q-j,end:q}:{start:q,end:q+j}}function Sl(de,q,j,te,fe){const Ne=Math.abs(Math.sin(j)),Ye=Math.abs(Math.cos(j));let gt=0,Nt=0;te.start<q.l?(gt=(q.l-te.start)/Ne,de.l=Math.min(de.l,q.l-gt)):te.end>q.r&&(gt=(te.end-q.r)/Ne,de.r=Math.max(de.r,q.r+gt)),fe.start<q.t?(Nt=(q.t-fe.start)/Ye,de.t=Math.min(de.t,q.t-Nt)):fe.end>q.b&&(Nt=(fe.end-q.b)/Ye,de.b=Math.max(de.b,q.b+Nt))}function Oi(de){return 0===de||180===de?"center":de<180?"left":"right"}function ki(de,q,j){return"right"===j?de-=q:"center"===j&&(de-=q/2),de}function Or(de,q,j){return 90===j||270===j?de-=q/2:(j>270||j<90)&&(de-=q),de}function Os(de,q,j,te){const{ctx:fe}=de;if(j)fe.arc(de.xCenter,de.yCenter,q,0,n.T);else{let Ne=de.getPointPosition(0,q);fe.moveTo(Ne.x,Ne.y);for(let Ye=1;Ye<te;Ye++)Ne=de.getPointPosition(Ye,q),fe.lineTo(Ne.x,Ne.y)}}const Ws={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ws=Object.keys(Ws);function Nl(de,q){return de-q}function Ka(de,q){if((0,n.k)(q))return null;const j=de._adapter,{parser:te,round:fe,isoWeekday:Ne}=de._parseOpts;let Ye=q;return"function"==typeof te&&(Ye=te(Ye)),(0,n.g)(Ye)||(Ye="string"==typeof te?j.parse(Ye,te):j.parse(Ye)),null===Ye?null:(fe&&(Ye="week"!==fe||!(0,n.x)(Ne)&&!0!==Ne?j.startOf(Ye,fe):j.startOf(Ye,"isoWeek",Ne)),+Ye)}function Il(de,q,j,te){const fe=ws.length;for(let Ne=ws.indexOf(de);Ne<fe-1;++Ne){const Ye=Ws[ws[Ne]];if(Ye.common&&Math.ceil((j-q)/((Ye.steps?Ye.steps:Number.MAX_SAFE_INTEGER)*Ye.size))<=te)return ws[Ne]}return ws[fe-1]}function lc(de,q,j){if(j){if(j.length){const{lo:te,hi:fe}=(0,n.aP)(j,q);de[j[te]>=q?j[te]:j[fe]]=!0}}else de[q]=!0}function Al(de,q,j){const te=[],fe={},Ne=q.length;let Ye,gt;for(Ye=0;Ye<Ne;++Ye)gt=q[Ye],fe[gt]=Ye,te.push({value:gt,major:!1});return 0!==Ne&&j?function Vc(de,q,j,te){const fe=de._adapter,Ne=+fe.startOf(q[0].value,te),Ye=q[q.length-1].value;let gt,Nt;for(gt=Ne;gt<=Ye;gt=+fe.add(gt,1,te))Nt=j[gt],Nt>=0&&(q[Nt].major=!0);return q}(de,te,fe,j):te}let cc=(()=>class de extends jr{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(j){super(j),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(j,te={}){const fe=j.time||(j.time={}),Ne=this._adapter=new Ze__date(j.adapters.date);Ne.init(te),(0,n.ab)(fe.displayFormats,Ne.formats()),this._parseOpts={parser:fe.parser,round:fe.round,isoWeekday:fe.isoWeekday},super.init(j),this._normalized=te.normalized}parse(j,te){return void 0===j?null:Ka(this,j)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const j=this.options,te=this._adapter,fe=j.time.unit||"day";let{min:Ne,max:Ye,minDefined:gt,maxDefined:Nt}=this.getUserBounds();function on(ct){!gt&&!isNaN(ct.min)&&(Ne=Math.min(Ne,ct.min)),!Nt&&!isNaN(ct.max)&&(Ye=Math.max(Ye,ct.max))}(!gt||!Nt)&&(on(this._getLabelBounds()),("ticks"!==j.bounds||"labels"!==j.ticks.source)&&on(this.getMinMax(!1))),Ne=(0,n.g)(Ne)&&!isNaN(Ne)?Ne:+te.startOf(Date.now(),fe),Ye=(0,n.g)(Ye)&&!isNaN(Ye)?Ye:+te.endOf(Date.now(),fe)+1,this.min=Math.min(Ne,Ye-1),this.max=Math.max(Ne+1,Ye)}_getLabelBounds(){const j=this.getLabelTimestamps();let te=Number.POSITIVE_INFINITY,fe=Number.NEGATIVE_INFINITY;return j.length&&(te=j[0],fe=j[j.length-1]),{min:te,max:fe}}buildTicks(){const j=this.options,te=j.time,fe=j.ticks,Ne="labels"===fe.source?this.getLabelTimestamps():this._generate();"ticks"===j.bounds&&Ne.length&&(this.min=this._userMin||Ne[0],this.max=this._userMax||Ne[Ne.length-1]);const Ye=this.min,Nt=(0,n.aO)(Ne,Ye,this.max);return this._unit=te.unit||(fe.autoSkip?Il(te.minUnit,this.min,this.max,this._getLabelCapacity(Ye)):function Cl(de,q,j,te,fe){for(let Ne=ws.length-1;Ne>=ws.indexOf(j);Ne--){const Ye=ws[Ne];if(Ws[Ye].common&&de._adapter.diff(fe,te,Ye)>=q-1)return Ye}return ws[j?ws.indexOf(j):0]}(this,Nt.length,te.minUnit,this.min,this.max)),this._majorUnit=fe.major.enabled&&"year"!==this._unit?function ac(de){for(let q=ws.indexOf(de)+1,j=ws.length;q<j;++q)if(Ws[ws[q]].common)return ws[q]}(this._unit):void 0,this.initOffsets(Ne),j.reverse&&Nt.reverse(),Al(this,Nt,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(j=>+j.value))}initOffsets(j=[]){let Ne,Ye,te=0,fe=0;this.options.offset&&j.length&&(Ne=this.getDecimalForValue(j[0]),te=1===j.length?1-Ne:(this.getDecimalForValue(j[1])-Ne)/2,Ye=this.getDecimalForValue(j[j.length-1]),fe=1===j.length?Ye:(Ye-this.getDecimalForValue(j[j.length-2]))/2);const gt=j.length<3?.5:.25;te=(0,n.S)(te,0,gt),fe=(0,n.S)(fe,0,gt),this._offsets={start:te,end:fe,factor:1/(te+1+fe)}}_generate(){const j=this._adapter,te=this.min,fe=this.max,Ne=this.options,Ye=Ne.time,gt=Ye.unit||Il(Ye.minUnit,te,fe,this._getLabelCapacity(te)),Nt=(0,n.v)(Ne.ticks.stepSize,1),on="week"===gt&&Ye.isoWeekday,ct=(0,n.x)(on)||!0===on,De={};let Ge,xt,pe=te;if(ct&&(pe=+j.startOf(pe,"isoWeek",on)),pe=+j.startOf(pe,ct?"day":gt),j.diff(fe,te,gt)>1e5*Nt)throw new Error(te+" and "+fe+" are too far apart with stepSize of "+Nt+" "+gt);const sn="data"===Ne.ticks.source&&this.getDataTimestamps();for(Ge=pe,xt=0;Ge<fe;Ge=+j.add(Ge,Nt,gt),xt++)lc(De,Ge,sn);return(Ge===fe||"ticks"===Ne.bounds||1===xt)&&lc(De,Ge,sn),Object.keys(De).sort((En,Un)=>En-Un).map(En=>+En)}getLabelForValue(j){const fe=this.options.time;return this._adapter.format(j,fe.tooltipFormat?fe.tooltipFormat:fe.displayFormats.datetime)}_tickFormatFunction(j,te,fe,Ne){const Ye=this.options,gt=Ye.ticks.callback;if(gt)return(0,n.Q)(gt,[j,te,fe],this);const Nt=Ye.time.displayFormats,on=this._unit,ct=this._majorUnit,pe=ct&&Nt[ct],Ge=fe[te];return this._adapter.format(j,Ne||(ct&&pe&&Ge&&Ge.major?pe:on&&Nt[on]))}generateTickLabels(j){let te,fe,Ne;for(te=0,fe=j.length;te<fe;++te)Ne=j[te],Ne.label=this._tickFormatFunction(Ne.value,te,j)}getDecimalForValue(j){return null===j?NaN:(j-this.min)/(this.max-this.min)}getPixelForValue(j){const te=this._offsets,fe=this.getDecimalForValue(j);return this.getPixelForDecimal((te.start+fe)*te.factor)}getValueForPixel(j){const te=this._offsets,fe=this.getDecimalForPixel(j)/te.factor-te.end;return this.min+fe*(this.max-this.min)}_getLabelSize(j){const te=this.options.ticks,fe=this.ctx.measureText(j).width,Ne=(0,n.t)(this.isHorizontal()?te.maxRotation:te.minRotation),Ye=Math.cos(Ne),gt=Math.sin(Ne),Nt=this._resolveTickFontOptions(0).size;return{w:fe*Ye+Nt*gt,h:fe*gt+Nt*Ye}}_getLabelCapacity(j){const te=this.options.time,fe=te.displayFormats,Ne=fe[te.unit]||fe.millisecond,Ye=this._tickFormatFunction(j,0,Al(this,[j],this._majorUnit),Ne),gt=this._getLabelSize(Ye),Nt=Math.floor(this.isHorizontal()?this.width/gt.w:this.height/gt.h)-1;return Nt>0?Nt:1}getDataTimestamps(){let te,fe,j=this._cache.data||[];if(j.length)return j;const Ne=this.getMatchingVisibleMetas();if(this._normalized&&Ne.length)return this._cache.data=Ne[0].controller.getAllParsedValues(this);for(te=0,fe=Ne.length;te<fe;++te)j=j.concat(Ne[te].controller.getAllParsedValues(this));return this._cache.data=this.normalize(j)}getLabelTimestamps(){const j=this._cache.labels||[];let te,fe;if(j.length)return j;const Ne=this.getLabels();for(te=0,fe=Ne.length;te<fe;++te)j.push(Ka(this,Ne[te]));return this._cache.labels=this._normalized?j:this.normalize(j)}normalize(j){return(0,n._)(j.sort(Nl))}})();function _t(de,q,j){let Ne,Ye,gt,Nt,te=0,fe=de.length-1;j?(q>=de[te].pos&&q<=de[fe].pos&&({lo:te,hi:fe}=(0,n.B)(de,"pos",q)),({pos:Ne,time:gt}=de[te]),({pos:Ye,time:Nt}=de[fe])):(q>=de[te].time&&q<=de[fe].time&&({lo:te,hi:fe}=(0,n.B)(de,"time",q)),({time:Ne,pos:gt}=de[te]),({time:Ye,pos:Nt}=de[fe]));const on=Ye-Ne;return on?gt+(Nt-gt)*(q-Ne)/on:gt}const _n=[Le,Ai,Gr,Object.freeze({__proto__:null,CategoryScale:as,LinearScale:class za extends Oo{static id="linear";static defaults={ticks:{callback:n.aL.formatters.numeric}};determineDataLimits(){const{min:q,max:j}=this.getMinMax(!0);this.min=(0,n.g)(q)?q:0,this.max=(0,n.g)(j)?j:1,this.handleTickRangeOptions()}computeTickLimit(){const q=this.isHorizontal(),j=q?this.width:this.height,te=(0,n.t)(this.options.ticks.minRotation),fe=(q?Math.sin(te):Math.cos(te))||.001,Ne=this._resolveTickFontOptions(0);return Math.ceil(j/Math.min(40,Ne.lineHeight/fe))}getPixelForValue(q){return null===q?NaN:this.getPixelForDecimal((q-this._startValue)/this._valueRange)}getValueForPixel(q){return this._startValue+this.getDecimalForPixel(q)*this._valueRange}},LogarithmicScale:class rl extends jr{static id="logarithmic";static defaults={ticks:{callback:n.aL.formatters.logarithmic,major:{enabled:!0}}};constructor(q){super(q),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(q,j){const te=Oo.prototype.parse.apply(this,[q,j]);if(0!==te)return(0,n.g)(te)&&te>0?te:null;this._zero=!0}determineDataLimits(){const{min:q,max:j}=this.getMinMax(!0);this.min=(0,n.g)(q)?Math.max(0,q):null,this.max=(0,n.g)(j)?Math.max(0,j):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!(0,n.g)(this._userMin)&&(this.min=q===Xa(this.min,0)?Xa(this.min,-1):Xa(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:q,maxDefined:j}=this.getUserBounds();let te=this.min,fe=this.max;const Ne=gt=>te=q?te:gt,Ye=gt=>fe=j?fe:gt;te===fe&&(te<=0?(Ne(1),Ye(10)):(Ne(Xa(te,-1)),Ye(Xa(fe,1)))),te<=0&&Ne(Xa(fe,-1)),fe<=0&&Ye(Xa(te,1)),this.min=te,this.max=fe}buildTicks(){const q=this.options,te=function wl(de,{min:q,max:j}){q=(0,n.O)(de.min,q);const te=[],fe=Uo(q);let Ne=function Hs(de,q){let te=Uo(q-de);for(;Pl(de,q,te)>10;)te++;for(;Pl(de,q,te)<10;)te--;return Math.min(te,Uo(de))}(q,j),Ye=Ne<0?Math.pow(10,Math.abs(Ne)):1;const gt=Math.pow(10,Ne),Nt=fe>Ne?Math.pow(10,fe):0,on=Math.round((q-Nt)*Ye)/Ye,ct=Math.floor((q-Nt)/gt/10)*gt*10;let De=Math.floor((on-ct)/Math.pow(10,Ne)),pe=(0,n.O)(de.min,Math.round((Nt+ct+De*Math.pow(10,Ne))*Ye)/Ye);for(;pe<j;)te.push({value:pe,major:vl(pe),significand:De}),De>=10?De=De<15?15:20:De++,De>=20&&(Ne++,De=2,Ye=Ne>=0?1:Ye),pe=Math.round((Nt+ct+De*Math.pow(10,Ne))*Ye)/Ye;const Ge=(0,n.O)(de.max,pe);return te.push({value:Ge,major:vl(Ge),significand:De}),te}({min:this._userMin,max:this._userMax},this);return"ticks"===q.bounds&&(0,n.aG)(te,this,"value"),q.reverse?(te.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),te}getLabelForValue(q){return void 0===q?"0":(0,n.o)(q,this.chart.options.locale,this.options.ticks.format)}configure(){const q=this.min;super.configure(),this._startValue=(0,n.aM)(q),this._valueRange=(0,n.aM)(this.max)-(0,n.aM)(q)}getPixelForValue(q){return(void 0===q||0===q)&&(q=this.min),null===q||isNaN(q)?NaN:this.getPixelForDecimal(q===this.min?0:((0,n.aM)(q)-this._startValue)/this._valueRange)}getValueForPixel(q){const j=this.getDecimalForPixel(q);return Math.pow(10,this._startValue+j*this._valueRange)}},RadialLinearScale:class xa extends Oo{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:n.aL.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:q=>q,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(q){super(q),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const q=this._padding=(0,n.E)(al(this.options)/2),j=this.width=this.maxWidth-q.width,te=this.height=this.maxHeight-q.height;this.xCenter=Math.floor(this.left+j/2+q.left),this.yCenter=Math.floor(this.top+te/2+q.top),this.drawingArea=Math.floor(Math.min(j,te)/2)}determineDataLimits(){const{min:q,max:j}=this.getMinMax(!1);this.min=(0,n.g)(q)&&!isNaN(q)?q:0,this.max=(0,n.g)(j)&&!isNaN(j)?j:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/al(this.options))}generateTickLabels(q){Oo.prototype.generateTickLabels.call(this,q),this._pointLabels=this.getLabels().map((j,te)=>{const fe=(0,n.Q)(this.options.pointLabels.callback,[j,te],this);return fe||0===fe?fe:""}).filter((j,te)=>this.chart.getDataVisibility(te))}fit(){const q=this.options;q.display&&q.pointLabels.display?function ii(de){const q={l:de.left+de._padding.left,r:de.right-de._padding.right,t:de.top+de._padding.top,b:de.bottom-de._padding.bottom},j=Object.assign({},q),te=[],fe=[],Ne=de._pointLabels.length,Ye=de.options.pointLabels,gt=Ye.centerPointLabels?n.P/Ne:0;for(let Nt=0;Nt<Ne;Nt++){const on=Ye.setContext(de.getPointLabelContext(Nt));fe[Nt]=on.padding;const ct=de.getPointPosition(Nt,de.drawingArea+fe[Nt],gt),De=(0,n.a0)(on.font),pe=gl(de.ctx,De,de._pointLabels[Nt]);te[Nt]=pe;const Ge=(0,n.ay)(de.getIndexAngle(Nt)+gt),xt=Math.round((0,n.U)(Ge));Sl(j,q,Ge,_l(xt,ct.x,pe.w,0,180),_l(xt,ct.y,pe.h,90,270))}de.setCenterPoint(q.l-j.l,j.r-q.r,q.t-j.t,j.b-q.b),de._pointLabelItems=function oi(de,q,j){const te=[],fe=de._pointLabels.length,Ne=de.options,Ye=al(Ne)/2,gt=de.drawingArea,Nt=Ne.pointLabels.centerPointLabels?n.P/fe:0;for(let on=0;on<fe;on++){const ct=de.getPointPosition(on,gt+Ye+j[on],Nt),De=Math.round((0,n.U)((0,n.ay)(ct.angle+n.H))),pe=q[on],Ge=Or(ct.y,pe.h,De),xt=Oi(De),sn=ki(ct.x,pe.w,xt);te.push({x:ct.x,y:Ge,textAlign:xt,left:sn,top:Ge,right:sn+pe.w,bottom:Ge+pe.h})}return te}(de,te,fe)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(q,j,te,fe){this.xCenter+=Math.floor((q-j)/2),this.yCenter+=Math.floor((te-fe)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(q,j,te,fe))}getIndexAngle(q){return(0,n.ay)(q*(n.T/(this._pointLabels.length||1))+(0,n.t)(this.options.startAngle||0))}getDistanceFromCenterForValue(q){if((0,n.k)(q))return NaN;const j=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-q)*j:(q-this.min)*j}getValueForDistanceFromCenter(q){if((0,n.k)(q))return NaN;const j=q/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-j:this.min+j}getPointLabelContext(q){const j=this._pointLabels||[];if(q>=0&&q<j.length){const te=j[q];return function Ko(de,q,j){return(0,n.j)(de,{label:j,index:q,type:"pointLabel"})}(this.getContext(),q,te)}}getPointPosition(q,j,te=0){const fe=this.getIndexAngle(q)-n.H+te;return{x:Math.cos(fe)*j+this.xCenter,y:Math.sin(fe)*j+this.yCenter,angle:fe}}getPointPositionForValue(q,j){return this.getPointPosition(q,this.getDistanceFromCenterForValue(j))}getBasePosition(q){return this.getPointPositionForValue(q||0,this.getBaseValue())}getPointLabelPosition(q){const{left:j,top:te,right:fe,bottom:Ne}=this._pointLabelItems[q];return{left:j,top:te,right:fe,bottom:Ne}}drawBackground(){const{backgroundColor:q,grid:{circular:j}}=this.options;if(q){const te=this.ctx;te.save(),te.beginPath(),Os(this,this.getDistanceFromCenterForValue(this._endValue),j,this._pointLabels.length),te.closePath(),te.fillStyle=q,te.fill(),te.restore()}}drawGrid(){const q=this.ctx,j=this.options,{angleLines:te,grid:fe,border:Ne}=j,Ye=this._pointLabels.length;let gt,Nt,on;if(j.pointLabels.display&&function is(de,q){const{ctx:j,options:{pointLabels:te}}=de;for(let fe=q-1;fe>=0;fe--){const Ne=te.setContext(de.getPointLabelContext(fe)),Ye=(0,n.a0)(Ne.font),{x:gt,y:Nt,textAlign:on,left:ct,top:De,right:pe,bottom:Ge}=de._pointLabelItems[fe],{backdropColor:xt}=Ne;if(!(0,n.k)(xt)){const sn=(0,n.aw)(Ne.borderRadius),En=(0,n.E)(Ne.backdropPadding);j.fillStyle=xt;const Un=ct-En.left,ri=De-En.top,Mi=pe-ct+En.width,Xi=Ge-De+En.height;Object.values(sn).some(Ui=>0!==Ui)?(j.beginPath(),(0,n.au)(j,{x:Un,y:ri,w:Mi,h:Xi,radius:sn}),j.fill()):j.fillRect(Un,ri,Mi,Xi)}(0,n.Z)(j,de._pointLabels[fe],gt,Nt+Ye.lineHeight/2,Ye,{color:Ne.color,textAlign:on,textBaseline:"middle"})}}(this,Ye),fe.display&&this.ticks.forEach((ct,De)=>{if(0!==De){Nt=this.getDistanceFromCenterForValue(ct.value);const pe=this.getContext(De),Ge=fe.setContext(pe),xt=Ne.setContext(pe);!function Ho(de,q,j,te,fe){const Ne=de.ctx,Ye=q.circular,{color:gt,lineWidth:Nt}=q;!Ye&&!te||!gt||!Nt||j<0||(Ne.save(),Ne.strokeStyle=gt,Ne.lineWidth=Nt,Ne.setLineDash(fe.dash),Ne.lineDashOffset=fe.dashOffset,Ne.beginPath(),Os(de,j,Ye,te),Ne.closePath(),Ne.stroke(),Ne.restore())}(this,Ge,Nt,Ye,xt)}}),te.display){for(q.save(),gt=Ye-1;gt>=0;gt--){const ct=te.setContext(this.getPointLabelContext(gt)),{color:De,lineWidth:pe}=ct;!pe||!De||(q.lineWidth=pe,q.strokeStyle=De,q.setLineDash(ct.borderDash),q.lineDashOffset=ct.borderDashOffset,Nt=this.getDistanceFromCenterForValue(j.ticks.reverse?this.min:this.max),on=this.getPointPosition(gt,Nt),q.beginPath(),q.moveTo(this.xCenter,this.yCenter),q.lineTo(on.x,on.y),q.stroke())}q.restore()}}drawBorder(){}drawLabels(){const q=this.ctx,j=this.options,te=j.ticks;if(!te.display)return;const fe=this.getIndexAngle(0);let Ne,Ye;q.save(),q.translate(this.xCenter,this.yCenter),q.rotate(fe),q.textAlign="center",q.textBaseline="middle",this.ticks.forEach((gt,Nt)=>{if(0===Nt&&!j.reverse)return;const on=te.setContext(this.getContext(Nt)),ct=(0,n.a0)(on.font);if(Ne=this.getDistanceFromCenterForValue(this.ticks[Nt].value),on.showLabelBackdrop){q.font=ct.string,Ye=q.measureText(gt.label).width,q.fillStyle=on.backdropColor;const De=(0,n.E)(on.backdropPadding);q.fillRect(-Ye/2-De.left,-Ne-ct.size/2-De.top,Ye+De.width,ct.size+De.height)}(0,n.Z)(q,gt.label,0,-Ne,ct,{color:on.color})}),q.restore()}drawTitle(){}},TimeScale:cc,TimeSeriesScale:class Kt extends cc{static id="timeseries";static defaults=cc.defaults;constructor(q){super(q),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const q=this._getTimestampsForTable(),j=this._table=this.buildLookupTable(q);this._minPos=_t(j,this.min),this._tableRange=_t(j,this.max)-this._minPos,super.initOffsets(q)}buildLookupTable(q){const{min:j,max:te}=this,fe=[],Ne=[];let Ye,gt,Nt,on,ct;for(Ye=0,gt=q.length;Ye<gt;++Ye)on=q[Ye],on>=j&&on<=te&&fe.push(on);if(fe.length<2)return[{time:j,pos:0},{time:te,pos:1}];for(Ye=0,gt=fe.length;Ye<gt;++Ye)ct=fe[Ye+1],Nt=fe[Ye-1],on=fe[Ye],Math.round((ct+Nt)/2)!==on&&Ne.push({time:on,pos:Ye/(gt-1)});return Ne}_getTimestampsForTable(){let q=this._cache.all||[];if(q.length)return q;const j=this.getDataTimestamps(),te=this.getLabelTimestamps();return q=j.length&&te.length?this.normalize(j.concat(te)):j.length?j:te,q=this._cache.all=q,q}getDecimalForValue(q){return(_t(this._table,q)-this._minPos)/this._tableRange}getValueForPixel(q){const j=this._offsets,te=this.getDecimalForPixel(q)/j.factor-j.end;return _t(this._table,te*this._tableRange+this._minPos,!0)}}})]},47263:(Bt,z,s)=>{"use strict";function n(){}s.d(z,{$:()=>oo,A:()=>Ve,B:()=>Qe,C:()=>Tr,D:()=>$,E:()=>Ua,F:()=>r,G:()=>Cr,H:()=>se,I:()=>Rn,J:()=>el,K:()=>Ki,L:()=>ft,M:()=>So,N:()=>Me,O:()=>f,P:()=>J,Q:()=>i,R:()=>js,S:()=>Le,T:()=>re,U:()=>G,V:()=>Vn,W:()=>Et,X:()=>Ut,Y:()=>Jr,Z:()=>Xr,_:()=>We,a:()=>qo,a0:()=>Zs,a1:()=>Xt,a2:()=>Ht,a3:()=>Sn,a4:()=>D,a5:()=>g,a6:()=>Bn,a7:()=>B,a8:()=>Js,a9:()=>Ds,aA:()=>Ie,aB:()=>Je,aC:()=>Ei,aD:()=>ci,aE:()=>le,aF:()=>n,aG:()=>me,aH:()=>He,aI:()=>A,aJ:()=>Xe,aK:()=>W,aL:()=>ot,aM:()=>Ce,aN:()=>rr,aO:()=>nt,aP:()=>Ze,aa:()=>fa,ab:()=>I,ac:()=>l,ad:()=>ht,ae:()=>Po,af:()=>qn,ag:()=>X,ah:()=>a,ai:()=>H,aj:()=>$e,ak:()=>fs,al:()=>Ai,am:()=>Ks,an:()=>Ja,ao:()=>Zo,ap:()=>Ha,aq:()=>ca,ar:()=>Qo,as:()=>fo,at:()=>Wn,au:()=>pa,av:()=>Oa,aw:()=>Ms,ax:()=>ja,ay:()=>Fe,az:()=>tl,b:()=>v,c:()=>jr,d:()=>Fr,e:()=>Wt,f:()=>E,g:()=>y,h:()=>R,i:()=>S,j:()=>Ia,k:()=>d,l:()=>at,m:()=>P,n:()=>_,o:()=>zo,p:()=>At,q:()=>tt,r:()=>lt,s:()=>Be,t:()=>ne,u:()=>It,v:()=>O,w:()=>rt,x:()=>Q,y:()=>qs,z:()=>Wr});const l=(()=>{let je=0;return()=>je++})();function d(je){return null===je||typeof je>"u"}function v(je){if(Array.isArray&&Array.isArray(je))return!0;const Ft=Object.prototype.toString.call(je);return"[object"===Ft.slice(0,7)&&"Array]"===Ft.slice(-6)}function S(je){return null!==je&&"[object Object]"===Object.prototype.toString.call(je)}function y(je){return("number"==typeof je||je instanceof Number)&&isFinite(+je)}function f(je,Ft){return y(je)?je:Ft}function O(je,Ft){return typeof je>"u"?Ft:je}const P=(je,Ft)=>"string"==typeof je&&je.endsWith("%")?parseFloat(je)/100:+je/Ft,_=(je,Ft)=>"string"==typeof je&&je.endsWith("%")?parseFloat(je)/100*Ft:+je;function i(je,Ft,un){if(je&&"function"==typeof je.call)return je.apply(un,Ft)}function r(je,Ft,un,wn){let zn,vi,Si;if(v(je))if(vi=je.length,wn)for(zn=vi-1;zn>=0;zn--)Ft.call(un,je[zn],zn);else for(zn=0;zn<vi;zn++)Ft.call(un,je[zn],zn);else if(S(je))for(Si=Object.keys(je),vi=Si.length,zn=0;zn<vi;zn++)Ft.call(un,je[Si[zn]],Si[zn])}function a(je,Ft){let un,wn,zn,vi;if(!je||!Ft||je.length!==Ft.length)return!1;for(un=0,wn=je.length;un<wn;++un)if(zn=je[un],vi=Ft[un],zn.datasetIndex!==vi.datasetIndex||zn.index!==vi.index)return!1;return!0}function c(je){if(v(je))return je.map(c);if(S(je)){const Ft=Object.create(null),un=Object.keys(je),wn=un.length;let zn=0;for(;zn<wn;++zn)Ft[un[zn]]=c(je[un[zn]]);return Ft}return je}function m(je){return-1===["__proto__","prototype","constructor"].indexOf(je)}function M(je,Ft,un,wn){if(!m(je))return;const zn=Ft[je],vi=un[je];S(zn)&&S(vi)?D(zn,vi,wn):Ft[je]=c(vi)}function D(je,Ft,un){const wn=v(Ft)?Ft:[Ft],zn=wn.length;if(!S(je))return je;const vi=(un=un||{}).merger||M;let Si;for(let Ri=0;Ri<zn;++Ri){if(Si=wn[Ri],!S(Si))continue;const nr=Object.keys(Si);for(let _r=0,Er=nr.length;_r<Er;++_r)vi(nr[_r],je,Si,un)}return je}function I(je,Ft){return D(je,Ft,{merger:U})}function U(je,Ft,un){if(!m(je))return;const wn=Ft[je],zn=un[je];S(wn)&&S(zn)?I(wn,zn):Object.prototype.hasOwnProperty.call(Ft,je)||(Ft[je]=c(zn))}const T={"":je=>je,x:je=>je.x,y:je=>je.y};function E(je,Ft){return(T[Ft]||(T[Ft]=function L(je){const Ft=function N(je){const Ft=je.split("."),un=[];let wn="";for(const zn of Ft)wn+=zn,wn.endsWith("\\")?wn=wn.slice(0,-1)+".":(un.push(wn),wn="");return un}(je);return un=>{for(const wn of Ft){if(""===wn)break;un=un&&un[wn]}return un}}(Ft)))(je)}function g(je){return je.charAt(0).toUpperCase()+je.slice(1)}const R=je=>typeof je<"u",B=je=>"function"==typeof je,X=(je,Ft)=>{if(je.size!==Ft.size)return!1;for(const un of je)if(!Ft.has(un))return!1;return!0};function H(je){return"mouseup"===je.type||"click"===je.type||"contextmenu"===je.type}const J=Math.PI,re=2*J,ie=re+J,ve=Number.POSITIVE_INFINITY,ue=J/180,se=J/2,Z=J/4,Se=2*J/3,Ce=Math.log10,Be=Math.sign;function Xe(je,Ft,un){return Math.abs(je-Ft)<un}function He(je){const Ft=Math.round(je);je=Xe(je,Ft,je/1e3)?Ft:je;const un=Math.pow(10,Math.floor(Ce(je))),wn=je/un;return(wn<=1?1:wn<=2?2:wn<=5?5:10)*un}function Me(je){const Ft=[],un=Math.sqrt(je);let wn;for(wn=1;wn<un;wn++)je%wn==0&&(Ft.push(wn),Ft.push(je/wn));return un===(0|un)&&Ft.push(un),Ft.sort((zn,vi)=>zn-vi).pop(),Ft}function Q(je){return!isNaN(parseFloat(je))&&isFinite(je)}function A(je,Ft){const un=Math.round(je);return un-Ft<=je&&un+Ft>=je}function me(je,Ft,un){let wn,zn,vi;for(wn=0,zn=je.length;wn<zn;wn++)vi=je[wn][un],isNaN(vi)||(Ft.min=Math.min(Ft.min,vi),Ft.max=Math.max(Ft.max,vi))}function ne(je){return je*(J/180)}function G(je){return je*(180/J)}function W(je){if(!y(je))return;let Ft=1,un=0;for(;Math.round(je*Ft)/Ft!==je;)Ft*=10,un++;return un}function $(je,Ft){const un=Ft.x-je.x,wn=Ft.y-je.y,zn=Math.sqrt(un*un+wn*wn);let vi=Math.atan2(wn,un);return vi<-.5*J&&(vi+=re),{angle:vi,distance:zn}}function le(je,Ft){return Math.sqrt(Math.pow(Ft.x-je.x,2)+Math.pow(Ft.y-je.y,2))}function Pe(je,Ft){return(je-Ft+ie)%re-J}function Fe(je){return(je%re+re)%re}function At(je,Ft,un,wn){const zn=Fe(je),vi=Fe(Ft),Si=Fe(un),Ri=Fe(vi-zn),nr=Fe(Si-zn),_r=Fe(zn-vi),Er=Fe(zn-Si);return zn===vi||zn===Si||wn&&vi===Si||Ri>nr&&_r<Er}function Le(je,Ft,un){return Math.max(Ft,Math.min(un,je))}function Et(je){return Le(je,-32768,32767)}function $e(je,Ft,un,wn=1e-6){return je>=Math.min(Ft,un)-wn&&je<=Math.max(Ft,un)+wn}function Ze(je,Ft,un){un=un||(Si=>je[Si]<Ft);let vi,wn=je.length-1,zn=0;for(;wn-zn>1;)vi=zn+wn>>1,un(vi)?zn=vi:wn=vi;return{lo:zn,hi:wn}}const Qe=(je,Ft,un,wn)=>Ze(je,un,wn?zn=>{const vi=je[zn][Ft];return vi<un||vi===un&&je[zn+1][Ft]===un}:zn=>je[zn][Ft]<un),Ve=(je,Ft,un)=>Ze(je,un,wn=>je[wn][Ft]>=un);function nt(je,Ft,un){let wn=0,zn=je.length;for(;wn<zn&&je[wn]<Ft;)wn++;for(;zn>wn&&je[zn-1]>un;)zn--;return wn>0||zn<je.length?je.slice(wn,zn):je}const Ot=["push","pop","shift","splice","unshift"];function at(je,Ft){je._chartjs?je._chartjs.listeners.push(Ft):(Object.defineProperty(je,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[Ft]}}),Ot.forEach(un=>{const wn="_onData"+g(un),zn=je[un];Object.defineProperty(je,un,{configurable:!0,enumerable:!1,value(...vi){const Si=zn.apply(this,vi);return je._chartjs.listeners.forEach(Ri=>{"function"==typeof Ri[wn]&&Ri[wn](...vi)}),Si}})}))}function It(je,Ft){const un=je._chartjs;if(!un)return;const wn=un.listeners,zn=wn.indexOf(Ft);-1!==zn&&wn.splice(zn,1),!(wn.length>0)&&(Ot.forEach(vi=>{delete je[vi]}),delete je._chartjs)}function We(je){const Ft=new Set;let un,wn;for(un=0,wn=je.length;un<wn;++un)Ft.add(je[un]);return Ft.size===wn?je:Array.from(Ft)}const lt=typeof window>"u"?function(je){return je()}:window.requestAnimationFrame;function ft(je,Ft){let un=!1;return function(...wn){un||(un=!0,lt.call(window,()=>{un=!1,je.apply(Ft,wn)}))}}function ht(je,Ft){let un;return function(...wn){return Ft?(clearTimeout(un),un=setTimeout(je,Ft,wn)):je.apply(this,wn),Ft}}const Xt=je=>"start"===je?"left":"end"===je?"right":"center",Ht=(je,Ft,un)=>"start"===je?Ft:"end"===je?un:(Ft+un)/2,Je=(je,Ft,un,wn)=>je===(wn?"left":"right")?un:"center"===je?(Ft+un)/2:Ft;function tt(je,Ft,un){const wn=Ft.length;let zn=0,vi=wn;if(je._sorted){const{iScale:Si,_parsed:Ri}=je,nr=Si.axis,{min:_r,max:Er,minDefined:po,maxDefined:To}=Si.getUserBounds();po&&(zn=Le(Math.min(Qe(Ri,Si.axis,_r).lo,un?wn:Qe(Ft,nr,Si.getPixelForValue(_r)).lo),0,wn-1)),vi=To?Le(Math.max(Qe(Ri,Si.axis,Er,!0).hi+1,un?0:Qe(Ft,nr,Si.getPixelForValue(Er),!0).hi+1),zn,wn)-zn:wn-zn}return{start:zn,count:vi}}function rt(je){const{xScale:Ft,yScale:un,_scaleRanges:wn}=je,zn={xmin:Ft.min,xmax:Ft.max,ymin:un.min,ymax:un.max};if(!wn)return je._scaleRanges=zn,!0;const vi=wn.xmin!==Ft.min||wn.xmax!==Ft.max||wn.ymin!==un.min||wn.ymax!==un.max;return Object.assign(wn,zn),vi}const et=je=>0===je||1===je,St=(je,Ft,un)=>-Math.pow(2,10*(je-=1))*Math.sin((je-Ft)*re/un),Gt=(je,Ft,un)=>Math.pow(2,-10*je)*Math.sin((je-Ft)*re/un)+1,yt={linear:je=>je,easeInQuad:je=>je*je,easeOutQuad:je=>-je*(je-2),easeInOutQuad:je=>(je/=.5)<1?.5*je*je:-.5*(--je*(je-2)-1),easeInCubic:je=>je*je*je,easeOutCubic:je=>(je-=1)*je*je+1,easeInOutCubic:je=>(je/=.5)<1?.5*je*je*je:.5*((je-=2)*je*je+2),easeInQuart:je=>je*je*je*je,easeOutQuart:je=>-((je-=1)*je*je*je-1),easeInOutQuart:je=>(je/=.5)<1?.5*je*je*je*je:-.5*((je-=2)*je*je*je-2),easeInQuint:je=>je*je*je*je*je,easeOutQuint:je=>(je-=1)*je*je*je*je+1,easeInOutQuint:je=>(je/=.5)<1?.5*je*je*je*je*je:.5*((je-=2)*je*je*je*je+2),easeInSine:je=>1-Math.cos(je*se),easeOutSine:je=>Math.sin(je*se),easeInOutSine:je=>-.5*(Math.cos(J*je)-1),easeInExpo:je=>0===je?0:Math.pow(2,10*(je-1)),easeOutExpo:je=>1===je?1:1-Math.pow(2,-10*je),easeInOutExpo:je=>et(je)?je:je<.5?.5*Math.pow(2,10*(2*je-1)):.5*(2-Math.pow(2,-10*(2*je-1))),easeInCirc:je=>je>=1?je:-(Math.sqrt(1-je*je)-1),easeOutCirc:je=>Math.sqrt(1-(je-=1)*je),easeInOutCirc:je=>(je/=.5)<1?-.5*(Math.sqrt(1-je*je)-1):.5*(Math.sqrt(1-(je-=2)*je)+1),easeInElastic:je=>et(je)?je:St(je,.075,.3),easeOutElastic:je=>et(je)?je:Gt(je,.075,.3),easeInOutElastic:je=>et(je)?je:je<.5?.5*St(2*je,.1125,.45):.5+.5*Gt(2*je-1,.1125,.45),easeInBack:je=>je*je*(2.70158*je-1.70158),easeOutBack:je=>(je-=1)*je*(2.70158*je+1.70158)+1,easeInOutBack(je){let Ft=1.70158;return(je/=.5)<1?je*je*((1+(Ft*=1.525))*je-Ft)*.5:.5*((je-=2)*je*((1+(Ft*=1.525))*je+Ft)+2)},easeInBounce:je=>1-yt.easeOutBounce(1-je),easeOutBounce:je=>je<1/2.75?7.5625*je*je:je<2/2.75?7.5625*(je-=1.5/2.75)*je+.75:je<2.5/2.75?7.5625*(je-=2.25/2.75)*je+.9375:7.5625*(je-=2.625/2.75)*je+.984375,easeInOutBounce:je=>je<.5?.5*yt.easeInBounce(2*je):.5*yt.easeOutBounce(2*je-1)+.5};var Wt=yt;function ke(je){return je+.5|0}const be=(je,Ft,un)=>Math.max(Math.min(je,un),Ft);function Ae(je){return be(ke(2.55*je),0,255)}function qe(je){return be(ke(255*je),0,255)}function Lt(je){return be(ke(je/2.55)/100,0,1)}function Zt(je){return be(ke(100*je),0,100)}const fn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},hn=[..."0123456789ABCDEF"],On=je=>hn[15&je],fi=je=>hn[(240&je)>>4]+hn[15&je],Ji=je=>(240&je)>>4==(15&je);const jt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function gn(je,Ft,un){const wn=Ft*Math.min(un,1-un),zn=(vi,Si=(vi+je/30)%12)=>un-wn*Math.max(Math.min(Si-3,9-Si,1),-1);return[zn(0),zn(8),zn(4)]}function ui(je,Ft,un){const wn=(zn,vi=(zn+je/60)%6)=>un-un*Ft*Math.max(Math.min(vi,4-vi,1),0);return[wn(5),wn(3),wn(1)]}function Ii(je,Ft,un){const wn=gn(je,1,.5);let zn;for(Ft+un>1&&(zn=1/(Ft+un),Ft*=zn,un*=zn),zn=0;zn<3;zn++)wn[zn]*=1-Ft-un,wn[zn]+=Ft;return wn}function zr(je){const un=je.r/255,wn=je.g/255,zn=je.b/255,vi=Math.max(un,wn,zn),Si=Math.min(un,wn,zn),Ri=(vi+Si)/2;let nr,_r,Er;return vi!==Si&&(Er=vi-Si,_r=Ri>.5?Er/(2-vi-Si):Er/(vi+Si),nr=function pr(je,Ft,un,wn,zn){return je===zn?(Ft-un)/wn+(Ft<un?6:0):Ft===zn?(un-je)/wn+2:(je-Ft)/wn+4}(un,wn,zn,Er,vi),nr=60*nr+.5),[0|nr,_r||0,Ri]}function Cn(je,Ft,un,wn){return(Array.isArray(Ft)?je(Ft[0],Ft[1],Ft[2]):je(Ft,un,wn)).map(qe)}function pn(je,Ft,un){return Cn(gn,je,Ft,un)}function cn(je){return(je%360+360)%360}const xi={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},xn={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Gn;const ln=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,Mr=je=>je<=.0031308?12.92*je:1.055*Math.pow(je,1/2.4)-.055,$r=je=>je<=.04045?je/12.92:Math.pow((je+.055)/1.055,2.4);function bo(je,Ft,un){if(je){let wn=zr(je);wn[Ft]=Math.max(0,Math.min(wn[Ft]+wn[Ft]*un,0===Ft?360:1)),wn=pn(wn),je.r=wn[0],je.g=wn[1],je.b=wn[2]}}function Kn(je,Ft){return je&&Object.assign(Ft||{},je)}function gi(je){var Ft={r:0,g:0,b:0,a:255};return Array.isArray(je)?je.length>=3&&(Ft={r:je[0],g:je[1],b:je[2],a:255},je.length>3&&(Ft.a=qe(je[3]))):(Ft=Kn(je,{r:0,g:0,b:0,a:1})).a=qe(Ft.a),Ft}function Pi(je){return"r"===je.charAt(0)?function bi(je){const Ft=ln.exec(je);let wn,zn,vi,un=255;if(Ft){if(Ft[7]!==wn){const Si=+Ft[7];un=Ft[8]?Ae(Si):be(255*Si,0,255)}return wn=+Ft[1],zn=+Ft[3],vi=+Ft[5],wn=255&(Ft[2]?Ae(wn):be(wn,0,255)),zn=255&(Ft[4]?Ae(zn):be(zn,0,255)),vi=255&(Ft[6]?Ae(vi):be(vi,0,255)),{r:wn,g:zn,b:vi,a:un}}}(je):function An(je){const Ft=jt.exec(je);let wn,un=255;if(!Ft)return;Ft[5]!==wn&&(un=Ft[6]?Ae(+Ft[5]):qe(+Ft[5]));const zn=cn(+Ft[2]),vi=+Ft[3]/100,Si=+Ft[4]/100;return wn="hwb"===Ft[1]?function ti(je,Ft,un){return Cn(Ii,je,Ft,un)}(zn,vi,Si):"hsv"===Ft[1]?function pi(je,Ft,un){return Cn(ui,je,Ft,un)}(zn,vi,Si):pn(zn,vi,Si),{r:wn[0],g:wn[1],b:wn[2],a:un}}(je)}class ji{constructor(Ft){if(Ft instanceof ji)return Ft;const un=typeof Ft;let wn;"object"===un?wn=gi(Ft):"string"===un&&(wn=function bt(je){var un,Ft=je.length;return"#"===je[0]&&(4===Ft||5===Ft?un={r:255&17*fn[je[1]],g:255&17*fn[je[2]],b:255&17*fn[je[3]],a:5===Ft?17*fn[je[4]]:255}:(7===Ft||9===Ft)&&(un={r:fn[je[1]]<<4|fn[je[2]],g:fn[je[3]]<<4|fn[je[4]],b:fn[je[5]]<<4|fn[je[6]],a:9===Ft?fn[je[7]]<<4|fn[je[8]]:255})),un}(Ft)||function Ci(je){Gn||(Gn=function Yn(){const je={},Ft=Object.keys(xn),un=Object.keys(xi);let wn,zn,vi,Si,Ri;for(wn=0;wn<Ft.length;wn++){for(Si=Ri=Ft[wn],zn=0;zn<un.length;zn++)vi=un[zn],Ri=Ri.replace(vi,xi[vi]);vi=parseInt(xn[Si],16),je[Ri]=[vi>>16&255,vi>>8&255,255&vi]}return je}(),Gn.transparent=[0,0,0,0]);const Ft=Gn[je.toLowerCase()];return Ft&&{r:Ft[0],g:Ft[1],b:Ft[2],a:4===Ft.length?Ft[3]:255}}(Ft)||Pi(Ft)),this._rgb=wn,this._valid=!!wn}get valid(){return this._valid}get rgb(){var Ft=Kn(this._rgb);return Ft&&(Ft.a=Lt(Ft.a)),Ft}set rgb(Ft){this._rgb=gi(Ft)}rgbString(){return this._valid?function Zi(je){return je&&(je.a<255?`rgba(${je.r}, ${je.g}, ${je.b}, ${Lt(je.a)})`:`rgb(${je.r}, ${je.g}, ${je.b})`)}(this._rgb):void 0}hexString(){return this._valid?function Pt(je){var Ft=(je=>Ji(je.r)&&Ji(je.g)&&Ji(je.b)&&Ji(je.a))(je)?On:fi;return je?"#"+Ft(je.r)+Ft(je.g)+Ft(je.b)+((je,Ft)=>je<255?Ft(je):"")(je.a,Ft):void 0}(this._rgb):void 0}hslString(){return this._valid?function hi(je){if(!je)return;const Ft=zr(je),un=Ft[0],wn=Zt(Ft[1]),zn=Zt(Ft[2]);return je.a<255?`hsla(${un}, ${wn}%, ${zn}%, ${Lt(je.a)})`:`hsl(${un}, ${wn}%, ${zn}%)`}(this._rgb):void 0}mix(Ft,un){if(Ft){const wn=this.rgb,zn=Ft.rgb;let vi;const Si=un===vi?.5:un,Ri=2*Si-1,nr=wn.a-zn.a,_r=((Ri*nr==-1?Ri:(Ri+nr)/(1+Ri*nr))+1)/2;vi=1-_r,wn.r=255&_r*wn.r+vi*zn.r+.5,wn.g=255&_r*wn.g+vi*zn.g+.5,wn.b=255&_r*wn.b+vi*zn.b+.5,wn.a=Si*wn.a+(1-Si)*zn.a,this.rgb=wn}return this}interpolate(Ft,un){return Ft&&(this._rgb=function _o(je,Ft,un){const wn=$r(Lt(je.r)),zn=$r(Lt(je.g)),vi=$r(Lt(je.b));return{r:qe(Mr(wn+un*($r(Lt(Ft.r))-wn))),g:qe(Mr(zn+un*($r(Lt(Ft.g))-zn))),b:qe(Mr(vi+un*($r(Lt(Ft.b))-vi))),a:je.a+un*(Ft.a-je.a)}}(this._rgb,Ft._rgb,un)),this}clone(){return new ji(this.rgb)}alpha(Ft){return this._rgb.a=qe(Ft),this}clearer(Ft){return this._rgb.a*=1-Ft,this}greyscale(){const Ft=this._rgb,un=ke(.3*Ft.r+.59*Ft.g+.11*Ft.b);return Ft.r=Ft.g=Ft.b=un,this}opaquer(Ft){return this._rgb.a*=1+Ft,this}negate(){const Ft=this._rgb;return Ft.r=255-Ft.r,Ft.g=255-Ft.g,Ft.b=255-Ft.b,this}lighten(Ft){return bo(this._rgb,2,Ft),this}darken(Ft){return bo(this._rgb,2,-Ft),this}saturate(Ft){return bo(this._rgb,1,Ft),this}desaturate(Ft){return bo(this._rgb,1,-Ft),this}rotate(Ft){return function Jn(je,Ft){var un=zr(je);un[0]=cn(un[0]+Ft),un=pn(un),je.r=un[0],je.g=un[1],je.b=un[2]}(this._rgb,Ft),this}}function Qi(je){return new ji(je)}function ar(je){if(je&&"object"==typeof je){const Ft=je.toString();return"[object CanvasPattern]"===Ft||"[object CanvasGradient]"===Ft}return!1}function jr(je){return ar(je)?je:Qi(je)}function ho(je){return ar(je)?je:Qi(je).saturate(.5).darken(.1).hexString()}const Fo=["x","y","borderWidth","radius","tension"],no=["color","borderColor","backgroundColor"],Yr=new Map;function zo(je,Ft,un){return function go(je,Ft){Ft=Ft||{};const un=je+JSON.stringify(Ft);let wn=Yr.get(un);return wn||(wn=new Intl.NumberFormat(je,Ft),Yr.set(un,wn)),wn}(Ft,un).format(je)}const si={values:je=>v(je)?je:""+je,numeric(je,Ft,un){if(0===je)return"0";const wn=this.chart.options.locale;let zn,vi=je;if(un.length>1){const _r=Math.max(Math.abs(un[0].value),Math.abs(un[un.length-1].value));(_r<1e-4||_r>1e15)&&(zn="scientific"),vi=function to(je,Ft){let un=Ft.length>3?Ft[2].value-Ft[1].value:Ft[1].value-Ft[0].value;return Math.abs(un)>=1&&je!==Math.floor(je)&&(un=je-Math.floor(je)),un}(je,un)}const Si=Ce(Math.abs(vi)),Ri=Math.max(Math.min(-1*Math.floor(Si),20),0),nr={notation:zn,minimumFractionDigits:Ri,maximumFractionDigits:Ri};return Object.assign(nr,this.options.ticks.format),zo(je,wn,nr)},logarithmic(je,Ft,un){if(0===je)return"0";const wn=un[Ft].significand||je/Math.pow(10,Math.floor(Ce(je)));return[1,2,3,5,10,15].includes(wn)||Ft>.8*un.length?si.numeric.call(this,je,Ft,un):""}};var ot={formatters:si};const Sn=Object.create(null),Bn=Object.create(null);function Ti(je,Ft){if(!Ft)return je;const un=Ft.split(".");for(let wn=0,zn=un.length;wn<zn;++wn){const vi=un[wn];je=je[vi]||(je[vi]=Object.create(null))}return je}function Li(je,Ft,un){return"string"==typeof Ft?D(Ti(je,Ft),un):D(Ti(je,""),Ft)}class dr{constructor(Ft,un){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=wn=>wn.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(wn,zn)=>ho(zn.backgroundColor),this.hoverBorderColor=(wn,zn)=>ho(zn.borderColor),this.hoverColor=(wn,zn)=>ho(zn.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(Ft),this.apply(un)}set(Ft,un){return Li(this,Ft,un)}get(Ft){return Ti(this,Ft)}describe(Ft,un){return Li(Bn,Ft,un)}override(Ft,un){return Li(Sn,Ft,un)}route(Ft,un,wn,zn){const vi=Ti(this,Ft),Si=Ti(this,wn),Ri="_"+un;Object.defineProperties(vi,{[Ri]:{value:vi[un],writable:!0},[un]:{enumerable:!0,get(){const nr=this[Ri],_r=Si[zn];return S(nr)?Object.assign({},_r,nr):O(nr,_r)},set(nr){this[Ri]=nr}}})}apply(Ft){Ft.forEach(un=>un(this))}}var Fr=new dr({_scriptable:je=>!je.startsWith("on"),_indexable:je=>"events"!==je,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function yo(je){je.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),je.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:Ft=>"onProgress"!==Ft&&"onComplete"!==Ft&&"fn"!==Ft}),je.set("animations",{colors:{type:"color",properties:no},numbers:{type:"number",properties:Fo}}),je.describe("animations",{_fallback:"animation"}),je.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:Ft=>0|Ft}}}})},function Zr(je){je.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function Vt(je){je.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(Ft,un)=>un.lineWidth,tickColor:(Ft,un)=>un.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ot.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),je.route("scale.ticks","color","","color"),je.route("scale.grid","color","","borderColor"),je.route("scale.border","color","","borderColor"),je.route("scale.title","color","","color"),je.describe("scale",{_fallback:!1,_scriptable:Ft=>!Ft.startsWith("before")&&!Ft.startsWith("after")&&"callback"!==Ft&&"parser"!==Ft,_indexable:Ft=>"borderDash"!==Ft&&"tickBorderDash"!==Ft&&"dash"!==Ft}),je.describe("scales",{_fallback:"scale"}),je.describe("scale.ticks",{_scriptable:Ft=>"backdropPadding"!==Ft&&"callback"!==Ft,_indexable:Ft=>"backdropPadding"!==Ft})}]);function Vn(je,Ft,un,wn,zn){let vi=Ft[zn];return vi||(vi=Ft[zn]=je.measureText(zn).width,un.push(zn)),vi>wn&&(wn=vi),wn}function rr(je,Ft,un,wn){let zn=(wn=wn||{}).data=wn.data||{},vi=wn.garbageCollect=wn.garbageCollect||[];wn.font!==Ft&&(zn=wn.data={},vi=wn.garbageCollect=[],wn.font=Ft),je.save(),je.font=Ft;let Si=0;const Ri=un.length;let nr,_r,Er,po,To;for(nr=0;nr<Ri;nr++)if(po=un[nr],null!=po&&!0!==v(po))Si=Vn(je,zn,vi,Si,po);else if(v(po))for(_r=0,Er=po.length;_r<Er;_r++)To=po[_r],null!=To&&!v(To)&&(Si=Vn(je,zn,vi,Si,To));je.restore();const rn=vi.length/2;if(rn>un.length){for(nr=0;nr<rn;nr++)delete zn[vi[nr]];vi.splice(0,rn)}return Si}function Ut(je,Ft,un){const wn=je.currentDevicePixelRatio,zn=0!==un?Math.max(un/2,.5):0;return Math.round((Ft-zn)*wn)/wn+zn}function qn(je,Ft){(Ft=Ft||je.getContext("2d")).save(),Ft.resetTransform(),Ft.clearRect(0,0,je.width,je.height),Ft.restore()}function Wn(je,Ft,un,wn){ci(je,Ft,un,wn,null)}function ci(je,Ft,un,wn,zn){let vi,Si,Ri,nr,_r,Er,po,To;const rn=Ft.pointStyle,Di=Ft.rotation,Te=Ft.radius;let Jt=(Di||0)*ue;if(rn&&"object"==typeof rn&&(vi=rn.toString(),"[object HTMLImageElement]"===vi||"[object HTMLCanvasElement]"===vi))return je.save(),je.translate(un,wn),je.rotate(Jt),je.drawImage(rn,-rn.width/2,-rn.height/2,rn.width,rn.height),void je.restore();if(!(isNaN(Te)||Te<=0)){switch(je.beginPath(),rn){default:zn?je.ellipse(un,wn,zn/2,Te,0,0,re):je.arc(un,wn,Te,0,re),je.closePath();break;case"triangle":Er=zn?zn/2:Te,je.moveTo(un+Math.sin(Jt)*Er,wn-Math.cos(Jt)*Te),Jt+=Se,je.lineTo(un+Math.sin(Jt)*Er,wn-Math.cos(Jt)*Te),Jt+=Se,je.lineTo(un+Math.sin(Jt)*Er,wn-Math.cos(Jt)*Te),je.closePath();break;case"rectRounded":_r=.516*Te,nr=Te-_r,Si=Math.cos(Jt+Z)*nr,po=Math.cos(Jt+Z)*(zn?zn/2-_r:nr),Ri=Math.sin(Jt+Z)*nr,To=Math.sin(Jt+Z)*(zn?zn/2-_r:nr),je.arc(un-po,wn-Ri,_r,Jt-J,Jt-se),je.arc(un+To,wn-Si,_r,Jt-se,Jt),je.arc(un+po,wn+Ri,_r,Jt,Jt+se),je.arc(un-To,wn+Si,_r,Jt+se,Jt+J),je.closePath();break;case"rect":if(!Di){nr=Math.SQRT1_2*Te,Er=zn?zn/2:nr,je.rect(un-Er,wn-nr,2*Er,2*nr);break}Jt+=Z;case"rectRot":po=Math.cos(Jt)*(zn?zn/2:Te),Si=Math.cos(Jt)*Te,Ri=Math.sin(Jt)*Te,To=Math.sin(Jt)*(zn?zn/2:Te),je.moveTo(un-po,wn-Ri),je.lineTo(un+To,wn-Si),je.lineTo(un+po,wn+Ri),je.lineTo(un-To,wn+Si),je.closePath();break;case"crossRot":Jt+=Z;case"cross":po=Math.cos(Jt)*(zn?zn/2:Te),Si=Math.cos(Jt)*Te,Ri=Math.sin(Jt)*Te,To=Math.sin(Jt)*(zn?zn/2:Te),je.moveTo(un-po,wn-Ri),je.lineTo(un+po,wn+Ri),je.moveTo(un+To,wn-Si),je.lineTo(un-To,wn+Si);break;case"star":po=Math.cos(Jt)*(zn?zn/2:Te),Si=Math.cos(Jt)*Te,Ri=Math.sin(Jt)*Te,To=Math.sin(Jt)*(zn?zn/2:Te),je.moveTo(un-po,wn-Ri),je.lineTo(un+po,wn+Ri),je.moveTo(un+To,wn-Si),je.lineTo(un-To,wn+Si),Jt+=Z,po=Math.cos(Jt)*(zn?zn/2:Te),Si=Math.cos(Jt)*Te,Ri=Math.sin(Jt)*Te,To=Math.sin(Jt)*(zn?zn/2:Te),je.moveTo(un-po,wn-Ri),je.lineTo(un+po,wn+Ri),je.moveTo(un+To,wn-Si),je.lineTo(un-To,wn+Si);break;case"line":Si=zn?zn/2:Math.cos(Jt)*Te,Ri=Math.sin(Jt)*Te,je.moveTo(un-Si,wn-Ri),je.lineTo(un+Si,wn+Ri);break;case"dash":je.moveTo(un,wn),je.lineTo(un+Math.cos(Jt)*(zn?zn/2:Te),wn+Math.sin(Jt)*Te)}je.fill(),Ft.borderWidth>0&&je.stroke()}}function Tr(je,Ft,un){return un=un||.5,!Ft||je&&je.x>Ft.left-un&&je.x<Ft.right+un&&je.y>Ft.top-un&&je.y<Ft.bottom+un}function Jr(je,Ft){je.save(),je.beginPath(),je.rect(Ft.left,Ft.top,Ft.right-Ft.left,Ft.bottom-Ft.top),je.clip()}function oo(je){je.restore()}function Qo(je,Ft,un,wn,zn){if(!Ft)return je.lineTo(un.x,un.y);if("middle"===zn){const vi=(Ft.x+un.x)/2;je.lineTo(vi,Ft.y),je.lineTo(vi,un.y)}else"after"===zn!=!!wn?je.lineTo(Ft.x,un.y):je.lineTo(un.x,Ft.y);je.lineTo(un.x,un.y)}function fo(je,Ft,un,wn){if(!Ft)return je.lineTo(un.x,un.y);je.bezierCurveTo(wn?Ft.cp1x:Ft.cp2x,wn?Ft.cp1y:Ft.cp2y,wn?un.cp2x:un.cp1x,wn?un.cp2y:un.cp1y,un.x,un.y)}function Xr(je,Ft,un,wn,zn,vi={}){const Si=v(Ft)?Ft:[Ft],Ri=vi.strokeWidth>0&&""!==vi.strokeColor;let nr,_r;for(je.save(),je.font=zn.string,function Go(je,Ft){Ft.translation&&je.translate(Ft.translation[0],Ft.translation[1]),d(Ft.rotation)||je.rotate(Ft.rotation),Ft.color&&(je.fillStyle=Ft.color),Ft.textAlign&&(je.textAlign=Ft.textAlign),Ft.textBaseline&&(je.textBaseline=Ft.textBaseline)}(je,vi),nr=0;nr<Si.length;++nr)_r=Si[nr],vi.backdrop&&kr(je,vi.backdrop),Ri&&(vi.strokeColor&&(je.strokeStyle=vi.strokeColor),d(vi.strokeWidth)||(je.lineWidth=vi.strokeWidth),je.strokeText(_r,un,wn,vi.maxWidth)),je.fillText(_r,un,wn,vi.maxWidth),Ss(je,un,wn,_r,vi),wn+=zn.lineHeight;je.restore()}function Ss(je,Ft,un,wn,zn){if(zn.strikethrough||zn.underline){const vi=je.measureText(wn),Si=Ft-vi.actualBoundingBoxLeft,Ri=Ft+vi.actualBoundingBoxRight,_r=un+vi.actualBoundingBoxDescent,Er=zn.strikethrough?(un-vi.actualBoundingBoxAscent+_r)/2:_r;je.strokeStyle=je.fillStyle,je.beginPath(),je.lineWidth=zn.decorationWidth||2,je.moveTo(Si,Er),je.lineTo(Ri,Er),je.stroke()}}function kr(je,Ft){const un=je.fillStyle;je.fillStyle=Ft.color,je.fillRect(Ft.left,Ft.top,Ft.width,Ft.height),je.fillStyle=un}function pa(je,Ft){const{x:un,y:wn,w:zn,h:vi,radius:Si}=Ft;je.arc(un+Si.topLeft,wn+Si.topLeft,Si.topLeft,-se,J,!0),je.lineTo(un,wn+vi-Si.bottomLeft),je.arc(un+Si.bottomLeft,wn+vi-Si.bottomLeft,Si.bottomLeft,J,se,!0),je.lineTo(un+zn-Si.bottomRight,wn+vi),je.arc(un+zn-Si.bottomRight,wn+vi-Si.bottomRight,Si.bottomRight,se,0,!0),je.lineTo(un+zn,wn+Si.topRight),je.arc(un+zn-Si.topRight,wn+Si.topRight,Si.topRight,0,-se,!0),je.lineTo(un+Si.topLeft,wn)}const ka=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Xs=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function ys(je,Ft){const un=(""+je).match(ka);if(!un||"normal"===un[1])return 1.2*Ft;switch(je=+un[2],un[3]){case"px":return je;case"%":je/=100}return Ft*je}const ma=je=>+je||0;function fs(je,Ft){const un={},wn=S(Ft),zn=wn?Object.keys(Ft):Ft,vi=S(je)?wn?Si=>O(je[Si],je[Ft[Si]]):Si=>je[Si]:()=>je;for(const Si of zn)un[Si]=ma(vi(Si));return un}function Oa(je){return fs(je,{top:"y",right:"x",bottom:"y",left:"x"})}function Ms(je){return fs(je,["topLeft","topRight","bottomLeft","bottomRight"])}function Ua(je){const Ft=Oa(je);return Ft.width=Ft.left+Ft.right,Ft.height=Ft.top+Ft.bottom,Ft}function Zs(je,Ft){let un=O((je=je||{}).size,(Ft=Ft||Fr.font).size);"string"==typeof un&&(un=parseInt(un,10));let wn=O(je.style,Ft.style);wn&&!(""+wn).match(Xs)&&(console.warn('Invalid font style specified: "'+wn+'"'),wn=void 0);const zn={family:O(je.family,Ft.family),lineHeight:ys(O(je.lineHeight,Ft.lineHeight),un),size:un,style:wn,weight:O(je.weight,Ft.weight),string:""};return zn.string=function br(je){return!je||d(je.size)||d(je.family)?null:(je.style?je.style+" ":"")+(je.weight?je.weight+" ":"")+je.size+"px "+je.family}(zn),zn}function qo(je,Ft,un,wn){let vi,Si,Ri,zn=!0;for(vi=0,Si=je.length;vi<Si;++vi)if(Ri=je[vi],void 0!==Ri&&(void 0!==Ft&&"function"==typeof Ri&&(Ri=Ri(Ft),zn=!1),void 0!==un&&v(Ri)&&(Ri=Ri[un%Ri.length],zn=!1),void 0!==Ri))return wn&&!zn&&(wn.cacheable=!1),Ri}function js(je,Ft,un){const{min:wn,max:zn}=je,vi=_(Ft,(zn-wn)/2),Si=(Ri,nr)=>un&&0===Ri?0:Ri+nr;return{min:Si(wn,-Math.abs(vi)),max:Si(zn,vi)}}function Ia(je,Ft){return Object.assign(Object.create(je),Ft)}function Ds(je,Ft=[""],un=je,wn,zn=(()=>je[0])){R(wn)||(wn=Bs("_fallback",je));const vi={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:je,_rootScopes:un,_fallback:wn,_getTarget:zn,override:Si=>Ds([Si,...je],Ft,un,wn)};return new Proxy(vi,{deleteProperty:(Si,Ri)=>(delete Si[Ri],delete Si._keys,delete je[0][Ri],!0),get:(Si,Ri)=>$s(Si,Ri,()=>function Yo(je,Ft,un,wn){let zn;for(const vi of Ft)if(zn=Bs(Ga(vi,je),un),R(zn))return cs(je,zn)?$o(un,wn,je,zn):zn}(Ri,Ft,je,Si)),getOwnPropertyDescriptor:(Si,Ri)=>Reflect.getOwnPropertyDescriptor(Si._scopes[0],Ri),getPrototypeOf:()=>Reflect.getPrototypeOf(je[0]),has:(Si,Ri)=>Va(Si).includes(Ri),ownKeys:Si=>Va(Si),set(Si,Ri,nr){const _r=Si._storage||(Si._storage=zn());return Si[Ri]=_r[Ri]=nr,delete Si._keys,!0}})}function Js(je,Ft,un,wn){const zn={_cacheable:!1,_proxy:je,_context:Ft,_subProxy:un,_stack:new Set,_descriptors:fa(je,wn),setContext:vi=>Js(je,vi,un,wn),override:vi=>Js(je.override(vi),Ft,un,wn)};return new Proxy(zn,{deleteProperty:(vi,Si)=>(delete vi[Si],delete je[Si],!0),get:(vi,Si,Ri)=>$s(vi,Si,()=>function Vo(je,Ft,un){const{_proxy:wn,_context:zn,_subProxy:vi,_descriptors:Si}=je;let Ri=wn[Ft];return B(Ri)&&Si.isScriptable(Ft)&&(Ri=function Hn(je,Ft,un,wn){const{_proxy:zn,_context:vi,_subProxy:Si,_stack:Ri}=un;if(Ri.has(je))throw new Error("Recursion detected: "+Array.from(Ri).join("->")+"->"+je);return Ri.add(je),Ft=Ft(vi,Si||wn),Ri.delete(je),cs(je,Ft)&&(Ft=$o(zn._scopes,zn,je,Ft)),Ft}(Ft,Ri,je,un)),v(Ri)&&Ri.length&&(Ri=function Ba(je,Ft,un,wn){const{_proxy:zn,_context:vi,_subProxy:Si,_descriptors:Ri}=un;if(R(vi.index)&&wn(je))Ft=Ft[vi.index%Ft.length];else if(S(Ft[0])){const nr=Ft,_r=zn._scopes.filter(Er=>Er!==nr);Ft=[];for(const Er of nr){const po=$o(_r,zn,je,Er);Ft.push(Js(po,vi,Si&&Si[je],Ri))}}return Ft}(Ft,Ri,je,Si.isIndexable)),cs(Ft,Ri)&&(Ri=Js(Ri,zn,vi&&vi[Ft],Si)),Ri}(vi,Si,Ri)),getOwnPropertyDescriptor:(vi,Si)=>vi._descriptors.allKeys?Reflect.has(je,Si)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(je,Si),getPrototypeOf:()=>Reflect.getPrototypeOf(je),has:(vi,Si)=>Reflect.has(je,Si),ownKeys:()=>Reflect.ownKeys(je),set:(vi,Si,Ri)=>(je[Si]=Ri,delete vi[Si],!0)})}function fa(je,Ft={scriptable:!0,indexable:!0}){const{_scriptable:un=Ft.scriptable,_indexable:wn=Ft.indexable,_allKeys:zn=Ft.allKeys}=je;return{allKeys:zn,scriptable:un,indexable:wn,isScriptable:B(un)?un:()=>un,isIndexable:B(wn)?wn:()=>wn}}const Ga=(je,Ft)=>je?je+g(Ft):Ft,cs=(je,Ft)=>S(Ft)&&"adapters"!==je&&(null===Object.getPrototypeOf(Ft)||Ft.constructor===Object);function $s(je,Ft,un){if(Object.prototype.hasOwnProperty.call(je,Ft))return je[Ft];const wn=un();return je[Ft]=wn,wn}function ds(je,Ft,un){return B(je)?je(Ft,un):je}const la=(je,Ft)=>!0===je?Ft:"string"==typeof je?E(Ft,je):void 0;function ra(je,Ft,un,wn,zn){for(const vi of Ft){const Si=la(un,vi);if(Si){je.add(Si);const Ri=ds(Si._fallback,un,zn);if(R(Ri)&&Ri!==un&&Ri!==wn)return Ri}else if(!1===Si&&R(wn)&&un!==wn)return null}return!1}function $o(je,Ft,un,wn){const zn=Ft._rootScopes,vi=ds(Ft._fallback,un,wn),Si=[...je,...zn],Ri=new Set;Ri.add(wn);let nr=rs(Ri,Si,un,vi||un,wn);return!(null===nr||R(vi)&&vi!==un&&(nr=rs(Ri,Si,vi,nr,wn),null===nr))&&Ds(Array.from(Ri),[""],zn,vi,()=>function oa(je,Ft,un){const wn=je._getTarget();Ft in wn||(wn[Ft]={});const zn=wn[Ft];return v(zn)&&S(un)?un:zn||{}}(Ft,un,wn))}function rs(je,Ft,un,wn,zn){for(;un;)un=ra(je,Ft,un,wn,zn);return un}function Bs(je,Ft){for(const un of Ft){if(!un)continue;const wn=un[je];if(R(wn))return wn}}function Va(je){let Ft=je._keys;return Ft||(Ft=je._keys=function La(je){const Ft=new Set;for(const un of je)for(const wn of Object.keys(un).filter(zn=>!zn.startsWith("_")))Ft.add(wn);return Array.from(Ft)}(je._scopes)),Ft}function qs(je,Ft,un,wn){const{iScale:zn}=je,{key:vi="r"}=this._parsing,Si=new Array(wn);let Ri,nr,_r,Er;for(Ri=0,nr=wn;Ri<nr;++Ri)_r=Ri+un,Er=Ft[_r],Si[Ri]={r:zn.parse(E(Er,vi),_r)};return Si}const ks=Number.EPSILON||1e-14,ea=(je,Ft)=>Ft<je.length&&!je[Ft].skip&&je[Ft],ts=je=>"x"===je?"y":"x";function $a(je,Ft,un,wn){const zn=je.skip?Ft:je,vi=Ft,Si=un.skip?Ft:un,Ri=le(vi,zn),nr=le(Si,vi);let _r=Ri/(Ri+nr),Er=nr/(Ri+nr);_r=isNaN(_r)?0:_r,Er=isNaN(Er)?0:Er;const po=wn*_r,To=wn*Er;return{previous:{x:vi.x-po*(Si.x-zn.x),y:vi.y-po*(Si.y-zn.y)},next:{x:vi.x+To*(Si.x-zn.x),y:vi.y+To*(Si.y-zn.y)}}}function tn(je,Ft,un){return Math.max(Math.min(je,un),Ft)}function Ai(je,Ft,un,wn,zn){let vi,Si,Ri,nr;if(Ft.spanGaps&&(je=je.filter(_r=>!_r.skip)),"monotone"===Ft.cubicInterpolationMode)!function Tn(je,Ft="x"){const un=ts(Ft),wn=je.length,zn=Array(wn).fill(0),vi=Array(wn);let Si,Ri,nr,_r=ea(je,0);for(Si=0;Si<wn;++Si)if(Ri=nr,nr=_r,_r=ea(je,Si+1),nr){if(_r){const Er=_r[Ft]-nr[Ft];zn[Si]=0!==Er?(_r[un]-nr[un])/Er:0}vi[Si]=Ri?_r?Be(zn[Si-1])!==Be(zn[Si])?0:(zn[Si-1]+zn[Si])/2:zn[Si-1]:zn[Si]}(function va(je,Ft,un){const wn=je.length;let zn,vi,Si,Ri,nr,_r=ea(je,0);for(let Er=0;Er<wn-1;++Er)if(nr=_r,_r=ea(je,Er+1),nr&&_r){if(Xe(Ft[Er],0,ks)){un[Er]=un[Er+1]=0;continue}zn=un[Er]/Ft[Er],vi=un[Er+1]/Ft[Er],Ri=Math.pow(zn,2)+Math.pow(vi,2),!(Ri<=9)&&(Si=3/Math.sqrt(Ri),un[Er]=zn*Si*Ft[Er],un[Er+1]=vi*Si*Ft[Er])}})(je,zn,vi),function Mn(je,Ft,un="x"){const wn=ts(un),zn=je.length;let vi,Si,Ri,nr=ea(je,0);for(let _r=0;_r<zn;++_r){if(Si=Ri,Ri=nr,nr=ea(je,_r+1),!Ri)continue;const Er=Ri[un],po=Ri[wn];Si&&(vi=(Er-Si[un])/3,Ri[`cp1${un}`]=Er-vi,Ri[`cp1${wn}`]=po-vi*Ft[_r]),nr&&(vi=(nr[un]-Er)/3,Ri[`cp2${un}`]=Er+vi,Ri[`cp2${wn}`]=po+vi*Ft[_r])}}(je,vi,Ft)}(je,zn);else{let _r=wn?je[je.length-1]:je[0];for(vi=0,Si=je.length;vi<Si;++vi)Ri=je[vi],nr=$a(_r,Ri,je[Math.min(vi+1,Si-(wn?0:1))%Si],Ft.tension),Ri.cp1x=nr.previous.x,Ri.cp1y=nr.previous.y,Ri.cp2x=nr.next.x,Ri.cp2y=nr.next.y,_r=Ri}Ft.capBezierPoints&&function In(je,Ft){let un,wn,zn,vi,Si,Ri=Tr(je[0],Ft);for(un=0,wn=je.length;un<wn;++un)Si=vi,vi=Ri,Ri=un<wn-1&&Tr(je[un+1],Ft),vi&&(zn=je[un],Si&&(zn.cp1x=tn(zn.cp1x,Ft.left,Ft.right),zn.cp1y=tn(zn.cp1y,Ft.top,Ft.bottom)),Ri&&(zn.cp2x=tn(zn.cp2x,Ft.left,Ft.right),zn.cp2y=tn(zn.cp2y,Ft.top,Ft.bottom)))}(je,un)}function So(){return typeof window<"u"&&typeof document<"u"}function Rn(je){let Ft=je.parentNode;return Ft&&"[object ShadowRoot]"===Ft.toString()&&(Ft=Ft.host),Ft}function Xn(je,Ft,un){let wn;return"string"==typeof je?(wn=parseInt(je,10),-1!==je.indexOf("%")&&(wn=wn/100*Ft.parentNode[un])):wn=je,wn}const ae=je=>je.ownerDocument.defaultView.getComputedStyle(je,null),Ct=["top","right","bottom","left"];function $n(je,Ft,un){const wn={};un=un?"-"+un:"";for(let zn=0;zn<4;zn++){const vi=Ct[zn];wn[vi]=parseFloat(je[Ft+"-"+vi+un])||0}return wn.width=wn.left+wn.right,wn.height=wn.top+wn.bottom,wn}const Gi=(je,Ft,un)=>(je>0||Ft>0)&&(!un||!un.shadowRoot);function Wr(je,Ft){if("native"in je)return je;const{canvas:un,currentDevicePixelRatio:wn}=Ft,zn=ae(un),vi="border-box"===zn.boxSizing,Si=$n(zn,"padding"),Ri=$n(zn,"border","width"),{x:nr,y:_r,box:Er}=function Sr(je,Ft){const un=je.touches,wn=un&&un.length?un[0]:je,{offsetX:zn,offsetY:vi}=wn;let Ri,nr,Si=!1;if(Gi(zn,vi,je.target))Ri=zn,nr=vi;else{const _r=Ft.getBoundingClientRect();Ri=wn.clientX-_r.left,nr=wn.clientY-_r.top,Si=!0}return{x:Ri,y:nr,box:Si}}(je,un),po=Si.left+(Er&&Ri.left),To=Si.top+(Er&&Ri.top);let{width:rn,height:Di}=Ft;return vi&&(rn-=Si.width+Ri.width,Di-=Si.height+Ri.height),{x:Math.round((nr-po)/rn*un.width/wn),y:Math.round((_r-To)/Di*un.height/wn)}}const Ir=je=>Math.round(10*je)/10;function Cr(je,Ft,un,wn){const zn=ae(je),vi=$n(zn,"margin"),Si=Xn(zn.maxWidth,je,"clientWidth")||ve,Ri=Xn(zn.maxHeight,je,"clientHeight")||ve,nr=function ao(je,Ft,un){let wn,zn;if(void 0===Ft||void 0===un){const vi=Rn(je);if(vi){const Si=vi.getBoundingClientRect(),Ri=ae(vi),nr=$n(Ri,"border","width"),_r=$n(Ri,"padding");Ft=Si.width-_r.width-nr.width,un=Si.height-_r.height-nr.height,wn=Xn(Ri.maxWidth,vi,"clientWidth"),zn=Xn(Ri.maxHeight,vi,"clientHeight")}else Ft=je.clientWidth,un=je.clientHeight}return{width:Ft,height:un,maxWidth:wn||ve,maxHeight:zn||ve}}(je,Ft,un);let{width:_r,height:Er}=nr;if("content-box"===zn.boxSizing){const To=$n(zn,"border","width"),rn=$n(zn,"padding");_r-=rn.width+To.width,Er-=rn.height+To.height}return _r=Math.max(0,_r-vi.width),Er=Math.max(0,wn?Math.floor(_r/wn):Er-vi.height),_r=Ir(Math.min(_r,Si,nr.maxWidth)),Er=Ir(Math.min(Er,Ri,nr.maxHeight)),_r&&!Er&&(Er=Ir(_r/2)),(void 0!==Ft||void 0!==un)&&wn&&nr.height&&Er>nr.height&&(Er=nr.height,_r=Ir(Math.floor(Er*wn))),{width:_r,height:Er}}function Po(je,Ft,un){const wn=Ft||1,zn=Math.floor(je.height*wn),vi=Math.floor(je.width*wn);je.height=zn/wn,je.width=vi/wn;const Si=je.canvas;return Si.style&&(un||!Si.style.height&&!Si.style.width)&&(Si.style.height=`${je.height}px`,Si.style.width=`${je.width}px`),(je.currentDevicePixelRatio!==wn||Si.height!==zn||Si.width!==vi)&&(je.currentDevicePixelRatio=wn,Si.height=zn,Si.width=vi,je.ctx.setTransform(wn,0,0,wn,0,0),!0)}const Ki=function(){let je=!1;try{const Ft={get passive(){return je=!0,!1}};window.addEventListener("test",null,Ft),window.removeEventListener("test",null,Ft)}catch{}return je}();function el(je,Ft){const un=function st(je,Ft){return ae(je).getPropertyValue(Ft)}(je,Ft),wn=un&&un.match(/^(\d+)(\.\d+)?px$/);return wn?+wn[1]:void 0}function ca(je,Ft,un,wn){return{x:je.x+un*(Ft.x-je.x),y:je.y+un*(Ft.y-je.y)}}function Zo(je,Ft,un,wn){return{x:je.x+un*(Ft.x-je.x),y:"middle"===wn?un<.5?je.y:Ft.y:"after"===wn?un<1?je.y:Ft.y:un>0?Ft.y:je.y}}function Ha(je,Ft,un,wn){const zn={x:je.cp2x,y:je.cp2y},vi={x:Ft.cp1x,y:Ft.cp1y},Si=ca(je,zn,un),Ri=ca(zn,vi,un),nr=ca(vi,Ft,un),_r=ca(Si,Ri,un),Er=ca(Ri,nr,un);return ca(_r,Er,un)}const vo=function(je,Ft){return{x:un=>je+je+Ft-un,setWidth(un){Ft=un},textAlign:un=>"center"===un?un:"right"===un?"left":"right",xPlus:(un,wn)=>un-wn,leftForLtr:(un,wn)=>un-wn}},ta=function(){return{x:je=>je,setWidth(je){},textAlign:je=>je,xPlus:(je,Ft)=>je+Ft,leftForLtr:(je,Ft)=>je}};function tl(je,Ft,un){return je?vo(Ft,un):ta()}function Ie(je,Ft){let un,wn;("ltr"===Ft||"rtl"===Ft)&&(un=je.canvas.style,wn=[un.getPropertyValue("direction"),un.getPropertyPriority("direction")],un.setProperty("direction",Ft,"important"),je.prevTextDirection=wn)}function Ei(je,Ft){void 0!==Ft&&(delete je.prevTextDirection,je.canvas.style.setProperty("direction",Ft[0],Ft[1]))}function Ls(je){return"angle"===je?{between:At,compare:Pe,normalize:Fe}:{between:$e,compare:(Ft,un)=>Ft-un,normalize:Ft=>Ft}}function Ns({start:je,end:Ft,count:un,loop:wn,style:zn}){return{start:je%un,end:Ft%un,loop:wn&&(Ft-je+1)%un==0,style:zn}}function ja(je,Ft,un){if(!un)return[je];const{property:wn,start:zn,end:vi}=un,Si=Ft.length,{compare:Ri,between:nr,normalize:_r}=Ls(wn),{start:Er,end:po,loop:To,style:rn}=function Ps(je,Ft,un){const{property:wn,start:zn,end:vi}=un,{between:Si,normalize:Ri}=Ls(wn),nr=Ft.length;let To,rn,{start:_r,end:Er,loop:po}=je;if(po){for(_r+=nr,Er+=nr,To=0,rn=nr;To<rn&&Si(Ri(Ft[_r%nr][wn]),zn,vi);++To)_r--,Er--;_r%=nr,Er%=nr}return Er<_r&&(Er+=nr),{start:_r,end:Er,loop:po,style:je.style}}(je,Ft,un),Di=[];let Rt,ei,tr,Te=!1,Jt=null;for(let ns=Er,Io=Er;ns<=po;++ns)ei=Ft[ns%Si],!ei.skip&&(Rt=_r(ei[wn]),Rt!==tr&&(Te=nr(Rt,zn,vi),null===Jt&&(Te||nr(zn,tr,Rt)&&0!==Ri(zn,tr))&&(Jt=0===Ri(Rt,zn)?ns:Io),null!==Jt&&(!Te||0===Ri(vi,Rt)||nr(vi,tr,Rt))&&(Di.push(Ns({start:Jt,end:ns,loop:To,count:Si,style:rn})),Jt=null),Io=ns,tr=Rt));return null!==Jt&&Di.push(Ns({start:Jt,end:po,loop:To,count:Si,style:rn})),Di}function Ja(je,Ft){const un=[],wn=je.segments;for(let zn=0;zn<wn.length;zn++){const vi=ja(wn[zn],je.points,Ft);vi.length&&un.push(...vi)}return un}function Ks(je,Ft){const un=je.points,wn=je.options.spanGaps,zn=un.length;if(!zn)return[];const vi=!!je._loop,{start:Si,end:Ri}=function Wa(je,Ft,un,wn){let zn=0,vi=Ft-1;if(un&&!wn)for(;zn<Ft&&!je[zn].skip;)zn++;for(;zn<Ft&&je[zn].skip;)zn++;for(zn%=Ft,un&&(vi+=zn);vi>zn&&je[vi%Ft].skip;)vi--;return vi%=Ft,{start:zn,end:vi}}(un,zn,vi,wn);return na(je,!0===wn?[{start:Si,end:Ri,loop:vi}]:function Ea(je,Ft,un,wn){const zn=je.length,vi=[];let nr,Si=Ft,Ri=je[Ft];for(nr=Ft+1;nr<=un;++nr){const _r=je[nr%zn];_r.skip||_r.stop?Ri.skip||(vi.push({start:Ft%zn,end:(nr-1)%zn,loop:wn=!1}),Ft=Si=_r.stop?nr:null):(Si=nr,Ri.skip&&(Ft=nr)),Ri=_r}return null!==Si&&vi.push({start:Ft%zn,end:Si%zn,loop:wn}),vi}(un,Si,Ri<Si?Ri+zn:Ri,!!je._fullLoop&&0===Si&&Ri===zn-1),un,Ft)}function na(je,Ft,un,wn){return wn&&wn.setContext&&un?function zi(je,Ft,un,wn){const zn=je._chart.getContext(),vi=mr(je.options),{_datasetIndex:Si,options:{spanGaps:Ri}}=je,nr=un.length,_r=[];let Er=vi,po=Ft[0].start,To=po;function rn(Di,Te,Jt,Rt){const ei=Ri?-1:1;if(Di!==Te){for(Di+=nr;un[Di%nr].skip;)Di-=ei;for(;un[Te%nr].skip;)Te+=ei;Di%nr!=Te%nr&&(_r.push({start:Di%nr,end:Te%nr,loop:Jt,style:Rt}),Er=Rt,po=Te%nr)}}for(const Di of Ft){po=Ri?po:Di.start;let Jt,Te=un[po%nr];for(To=po+1;To<=Di.end;To++){const Rt=un[To%nr];Jt=mr(wn.setContext(Ia(zn,{type:"segment",p0:Te,p1:Rt,p0DataIndex:(To-1)%nr,p1DataIndex:To%nr,datasetIndex:Si}))),lr(Jt,Er)&&rn(po,To-1,Di.loop,Er),Te=Rt,Er=Jt}po<To-1&&rn(po,To-1,Di.loop,Er)}return _r}(je,Ft,un,wn):Ft}function mr(je){return{backgroundColor:je.backgroundColor,borderCapStyle:je.borderCapStyle,borderDash:je.borderDash,borderDashOffset:je.borderDashOffset,borderJoinStyle:je.borderJoinStyle,borderWidth:je.borderWidth,borderColor:je.borderColor}}function lr(je,Ft){return Ft&&JSON.stringify(je)!==JSON.stringify(Ft)}},71816:(Bt,z,s)=>{"use strict";s.d(z,{j9:()=>Pl,FR:()=>Sl});var n=s(58527),l=s(25242),d=s(47263),v=s(53461);const O=function f(oi,Oi){return oi===Oi||oi!=oi&&Oi!=Oi},_=function P(oi,Oi){for(var ki=oi.length;ki--;)if(O(oi[ki][0],Oi))return ki;return-1};var r=Array.prototype.splice;function T(oi){var Oi=-1,ki=null==oi?0:oi.length;for(this.clear();++Oi<ki;){var Or=oi[Oi];this.set(Or[0],Or[1])}}T.prototype.clear=function S(){this.__data__=[],this.size=0},T.prototype.delete=function a(oi){var Oi=this.__data__,ki=_(Oi,oi);return!(ki<0||(ki==Oi.length-1?Oi.pop():r.call(Oi,ki,1),--this.size,0))},T.prototype.get=function m(oi){var Oi=this.__data__,ki=_(Oi,oi);return ki<0?void 0:Oi[ki][1]},T.prototype.has=function D(oi){return _(this.__data__,oi)>-1},T.prototype.set=function U(oi,Oi){var ki=this.__data__,Or=_(ki,oi);return Or<0?(++this.size,ki.push([oi,Oi])):ki[Or][1]=Oi,this};const N=T,ie="object"==typeof global&&global&&global.Object===Object&&global;var ve="object"==typeof self&&self&&self.Object===Object&&self;const se=ie||ve||Function("return this")();var Z=se.Symbol,Ce=Object.prototype,Be=Ce.hasOwnProperty,Xe=Ce.toString,He=Z?Z.toStringTag:void 0;var me=Object.prototype.toString;var le=Z?Z.toStringTag:void 0;const Fe=function Pe(oi){return null==oi?void 0===oi?"[object Undefined]":"[object Null]":le&&le in Object(oi)?function Me(oi){var Oi=Be.call(oi,He),ki=oi[He];try{oi[He]=void 0;var Or=!0}catch{}var is=Xe.call(oi);return Or&&(Oi?oi[He]=ki:delete oi[He]),is}(oi):function ne(oi){return me.call(oi)}(oi)},Le=function At(oi){var Oi=typeof oi;return null!=oi&&("object"==Oi||"function"==Oi)},nt=function Ve(oi){if(!Le(oi))return!1;var Oi=Fe(oi);return"[object Function]"==Oi||"[object GeneratorFunction]"==Oi||"[object AsyncFunction]"==Oi||"[object Proxy]"==Oi};var oi,Ot=se["__core-js_shared__"],It=(oi=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||""))?"Symbol(src)_1."+oi:"";var ft=Function.prototype.toString;var Je=/^\[object .+?Constructor\]$/,Gt=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Wt=function yt(oi){return!(!Le(oi)||function We(oi){return!!It&&It in oi}(oi))&&(nt(oi)?Gt:Je).test(function ht(oi){if(null!=oi){try{return ft.call(oi)}catch{}try{return oi+""}catch{}}return""}(oi))},qe=function Ae(oi,Oi){var ki=function ke(oi,Oi){return oi?.[Oi]}(oi,Oi);return Wt(ki)?ki:void 0},Zt=qe(se,"Map"),hn=qe(Object,"create");var Pt=Object.prototype.hasOwnProperty;var Ii=Object.prototype.hasOwnProperty;function pi(oi){var Oi=-1,ki=null==oi?0:oi.length;for(this.clear();++Oi<ki;){var Or=oi[Oi];this.set(Or[0],Or[1])}}pi.prototype.clear=function On(){this.__data__=hn?hn(null):{},this.size=0},pi.prototype.delete=function Ji(oi){var Oi=this.has(oi)&&delete this.__data__[oi];return this.size-=Oi?1:0,Oi},pi.prototype.get=function jt(oi){var Oi=this.__data__;if(hn){var ki=Oi[oi];return"__lodash_hash_undefined__"===ki?void 0:ki}return Pt.call(Oi,oi)?Oi[oi]:void 0},pi.prototype.has=function pr(oi){var Oi=this.__data__;return hn?void 0!==Oi[oi]:Ii.call(Oi,oi)},pi.prototype.set=function pn(oi,Oi){var ki=this.__data__;return this.size+=this.has(oi)?0:1,ki[oi]=hn&&void 0===Oi?"__lodash_hash_undefined__":Oi,this};const cn=pi,Yn=function xn(oi,Oi){var ki=oi.__data__;return function hi(oi){var Oi=typeof oi;return"string"==Oi||"number"==Oi||"symbol"==Oi||"boolean"==Oi?"__proto__"!==oi:null===oi}(Oi)?ki["string"==typeof Oi?"string":"hash"]:ki.map};function bo(oi){var Oi=-1,ki=null==oi?0:oi.length;for(this.clear();++Oi<ki;){var Or=oi[Oi];this.set(Or[0],Or[1])}}bo.prototype.clear=function An(){this.size=0,this.__data__={hash:new cn,map:new(Zt||N),string:new cn}},bo.prototype.delete=function Gn(oi){var Oi=Yn(this,oi).delete(oi);return this.size-=Oi?1:0,Oi},bo.prototype.get=function ln(oi){return Yn(this,oi).get(oi)},bo.prototype.has=function Zi(oi){return Yn(this,oi).has(oi)},bo.prototype.set=function $r(oi,Oi){var ki=Yn(this,oi),Or=ki.size;return ki.set(oi,Oi),this.size+=ki.size==Or?0:1,this};const Kn=bo;function Qi(oi){var Oi=this.__data__=new N(oi);this.size=Oi.size}Qi.prototype.clear=function L(){this.__data__=new N,this.size=0},Qi.prototype.delete=function g(oi){var Oi=this.__data__,ki=Oi.delete(oi);return this.size=Oi.size,ki},Qi.prototype.get=function B(oi){return this.__data__.get(oi)},Qi.prototype.has=function H(oi){return this.__data__.has(oi)},Qi.prototype.set=function Pi(oi,Oi){var ki=this.__data__;if(ki instanceof N){var Or=ki.__data__;if(!Zt||Or.length<199)return Or.push([oi,Oi]),this.size=++ki.size,this;ki=this.__data__=new Kn(Or)}return ki.set(oi,Oi),this.size=ki.size,this};const ar=Qi;var jr=function(){try{var oi=qe(Object,"defineProperty");return oi({},"",{}),oi}catch{}}();const ho=jr,no=function Fo(oi,Oi,ki){"__proto__"==Oi&&ho?ho(oi,Oi,{configurable:!0,enumerable:!0,value:ki,writable:!0}):oi[Oi]=ki},Zr=function yo(oi,Oi,ki){(void 0!==ki&&!O(oi[Oi],ki)||void 0===ki&&!(Oi in oi))&&no(oi,Oi,ki)};var zo=function Yr(oi){return function(Oi,ki,Or){for(var is=-1,Os=Object(Oi),Ho=Or(Oi),Ko=Ho.length;Ko--;){var xa=Ho[oi?Ko:++is];if(!1===ki(Os[xa],xa,Os))break}return Oi}}();const si=zo;var to="object"==typeof exports&&exports&&!exports.nodeType&&exports,ot=to&&"object"==typeof module&&module&&!module.nodeType&&module,Sn=ot&&ot.exports===to?se.Buffer:void 0,Bn=Sn?Sn.allocUnsafe:void 0;const Fr=se.Uint8Array,Ut=function rr(oi,Oi){var ki=Oi?function br(oi){var Oi=new oi.constructor(oi.byteLength);return new Fr(Oi).set(new Fr(oi)),Oi}(oi.buffer):oi.buffer;return new oi.constructor(ki,oi.byteOffset,oi.length)};var ci=Object.create,Tr=function(){function oi(){}return function(Oi){if(!Le(Oi))return{};if(ci)return ci(Oi);oi.prototype=Oi;var ki=new oi;return oi.prototype=void 0,ki}}();const Jr=Tr;var fo=function oo(oi,Oi){return function(ki){return oi(Oi(ki))}}(Object.getPrototypeOf,Object);const Xr=fo;var Go=Object.prototype;const kr=function Ss(oi){var Oi=oi&&oi.constructor;return oi===("function"==typeof Oi&&Oi.prototype||Go)},ys=function Xs(oi){return null!=oi&&"object"==typeof oi},Oa=function fs(oi){return ys(oi)&&"[object Arguments]"==Fe(oi)};var Ms=Object.prototype,Ua=Ms.hasOwnProperty,Zs=Ms.propertyIsEnumerable,qo=Oa(function(){return arguments}())?Oa:function(oi){return ys(oi)&&Ua.call(oi,"callee")&&!Zs.call(oi,"callee")};const js=qo,Ds=Array.isArray,Ga=function fa(oi){return"number"==typeof oi&&oi>-1&&oi%1==0&&oi<=9007199254740991},$s=function cs(oi){return null!=oi&&Ga(oi.length)&&!nt(oi)};var la="object"==typeof exports&&exports&&!exports.nodeType&&exports,ra=la&&"object"==typeof module&&module&&!module.nodeType&&module,rs=ra&&ra.exports===la?se.Buffer:void 0;const Bs=(rs?rs.isBuffer:void 0)||function Ba(){return!1};var ks=Function.prototype.toString,ea=Object.prototype.hasOwnProperty,ts=ks.call(Object);var vo={};vo["[object Float32Array]"]=vo["[object Float64Array]"]=vo["[object Int8Array]"]=vo["[object Int16Array]"]=vo["[object Int32Array]"]=vo["[object Uint8Array]"]=vo["[object Uint8ClampedArray]"]=vo["[object Uint16Array]"]=vo["[object Uint32Array]"]=!0,vo["[object Arguments]"]=vo["[object Array]"]=vo["[object ArrayBuffer]"]=vo["[object Boolean]"]=vo["[object DataView]"]=vo["[object Date]"]=vo["[object Error]"]=vo["[object Function]"]=vo["[object Map]"]=vo["[object Number]"]=vo["[object Object]"]=vo["[object RegExp]"]=vo["[object Set]"]=vo["[object String]"]=vo["[object WeakMap]"]=!1;var Ls="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ns=Ls&&"object"==typeof module&&module&&!module.nodeType&&module,ja=Ns&&Ns.exports===Ls&&ie.process,Ja=function(){try{return Ns&&Ns.require&&Ns.require("util").types||ja&&ja.binding&&ja.binding("util")}catch{}}(),Ea=Ja&&Ja.isTypedArray;const na=Ea?function Ie(oi){return function(Oi){return oi(Oi)}}(Ea):function ta(oi){return ys(oi)&&Ga(oi.length)&&!!vo[Fe(oi)]},mr=function zi(oi,Oi){if(("constructor"!==Oi||"function"!=typeof oi[Oi])&&"__proto__"!=Oi)return oi[Oi]};var je=Object.prototype.hasOwnProperty;const un=function Ft(oi,Oi,ki){var Or=oi[Oi];(!je.call(oi,Oi)||!O(Or,ki)||void 0===ki&&!(Oi in oi))&&no(oi,Oi,ki)};var nr=/^(?:0|[1-9]\d*)$/;const Er=function _r(oi,Oi){var ki=typeof oi;return!!(Oi=Oi??9007199254740991)&&("number"==ki||"symbol"!=ki&&nr.test(oi))&&oi>-1&&oi%1==0&&oi<Oi};var To=Object.prototype.hasOwnProperty;const Di=function rn(oi,Oi){var ki=Ds(oi),Or=!ki&&js(oi),is=!ki&&!Or&&Bs(oi),Os=!ki&&!Or&&!is&&na(oi),Ho=ki||Or||is||Os,Ko=Ho?function vi(oi,Oi){for(var ki=-1,Or=Array(oi);++ki<oi;)Or[ki]=Oi(ki);return Or}(oi.length,String):[],xa=Ko.length;for(var Ws in oi)(Oi||To.call(oi,Ws))&&(!Ho||!("length"==Ws||is&&("offset"==Ws||"parent"==Ws)||Os&&("buffer"==Ws||"byteLength"==Ws||"byteOffset"==Ws)||Er(Ws,xa)))&&Ko.push(Ws);return Ko};var ei=Object.prototype.hasOwnProperty;const Ur=function tr(oi){if(!Le(oi))return function Te(oi){var Oi=[];if(null!=oi)for(var ki in Object(oi))Oi.push(ki);return Oi}(oi);var Oi=kr(oi),ki=[];for(var Or in oi)"constructor"==Or&&(Oi||!ei.call(oi,Or))||ki.push(Or);return ki},wo=function lo(oi){return $s(oi)?Di(oi,!0):Ur(oi)},ns=function Lr(oi){return function wn(oi,Oi,ki,Or){var is=!ki;ki||(ki={});for(var Os=-1,Ho=Oi.length;++Os<Ho;){var Ko=Oi[Os],xa=Or?Or(ki[Ko],oi[Ko],Ko,ki,oi):void 0;void 0===xa&&(xa=oi[Ko]),is?no(ki,Ko,xa):un(ki,Ko,xa)}return ki}(oi,wo(oi))},da=function Io(oi,Oi,ki,Or,is,Os,Ho){var Ko=mr(oi,ki),xa=mr(Oi,ki),Ws=Ho.get(xa);if(Ws)Zr(oi,ki,Ws);else{var ws=Os?Os(Ko,xa,ki+"",oi,Oi,Ho):void 0,Nl=void 0===ws;if(Nl){var Ka=Ds(xa),Il=!Ka&&Bs(xa),Cl=!Ka&&!Il&&na(xa);ws=xa,Ka||Il||Cl?Ds(Ko)?ws=Ko:function Vo(oi){return ys(oi)&&$s(oi)}(Ko)?ws=function qn(oi,Oi){var ki=-1,Or=oi.length;for(Oi||(Oi=Array(Or));++ki<Or;)Oi[ki]=oi[ki];return Oi}(Ko):Il?(Nl=!1,ws=function Ti(oi,Oi){if(Oi)return oi.slice();var ki=oi.length,Or=Bn?Bn(ki):new oi.constructor(ki);return oi.copy(Or),Or}(xa,!0)):Cl?(Nl=!1,ws=Ut(xa,!0)):ws=[]:function $a(oi){if(!ys(oi)||"[object Object]"!=Fe(oi))return!1;var Oi=Xr(oi);if(null===Oi)return!0;var ki=ea.call(Oi,"constructor")&&Oi.constructor;return"function"==typeof ki&&ki instanceof ki&&ks.call(ki)==ts}(xa)||js(xa)?(ws=Ko,js(Ko)?ws=ns(Ko):(!Le(Ko)||nt(Ko))&&(ws=function pa(oi){return"function"!=typeof oi.constructor||kr(oi)?{}:Jr(Xr(oi))}(xa))):Nl=!1}Nl&&(Ho.set(xa,ws),is(ws,xa,Or,Os,Ho),Ho.delete(xa)),Zr(oi,ki,ws)}},Mt=function _a(oi,Oi,ki,Or,is){oi!==Oi&&si(Oi,function(Os,Ho){if(is||(is=new ar),Le(Os))da(oi,Oi,Ho,ki,_a,Or,is);else{var Ko=Or?Or(mr(oi,Ho),Os,Ho+"",oi,Oi,is):void 0;void 0===Ko&&(Ko=Os),Zr(oi,Ho,Ko)}},wo)},qt=function Dn(oi){return oi};var ur=Math.max;const ss=function vs(oi){return function(){return oi}};var Ts=ho?function(oi,Oi){return ho(oi,"toString",{configurable:!0,enumerable:!1,value:ss(Oi),writable:!0})}:qt,hs=Date.now,No=function Jo(oi){var Oi=0,ki=0;return function(){var Or=hs(),is=16-(Or-ki);if(ki=Or,is>0){if(++Oi>=800)return arguments[0]}else Oi=0;return oi.apply(void 0,arguments)}}(Ts);const Vs=No,sa=function Ca(oi,Oi){return Vs(function Pr(oi,Oi,ki){return Oi=ur(void 0===Oi?oi.length-1:Oi,0),function(){for(var Or=arguments,is=-1,Os=ur(Or.length-Oi,0),Ho=Array(Os);++is<Os;)Ho[is]=Or[Oi+is];is=-1;for(var Ko=Array(Oi+1);++is<Oi;)Ko[is]=Or[is];return Ko[Oi]=ki(Ho),function Pn(oi,Oi,ki){switch(ki.length){case 0:return oi.call(Oi);case 1:return oi.call(Oi,ki[0]);case 2:return oi.call(Oi,ki[0],ki[1]);case 3:return oi.call(Oi,ki[0],ki[1],ki[2])}return oi.apply(Oi,ki)}(oi,this,Ko)}}(oi,Oi,qt),oi+"")};var za=function jo(oi){return sa(function(Oi,ki){var Or=-1,is=ki.length,Os=is>1?ki[is-1]:void 0,Ho=is>2?ki[2]:void 0;for(Os=oi.length>3&&"function"==typeof Os?(is--,Os):void 0,Ho&&function as(oi,Oi,ki){if(!Le(ki))return!1;var Or=typeof Oi;return!!("number"==Or?$s(ki)&&Er(Oi,ki.length):"string"==Or&&Oi in ki)&&O(ki[Oi],oi)}(ki[0],ki[1],Ho)&&(Os=is<3?void 0:Os,is=1),Oi=Object(Oi);++Or<is;){var Ko=ki[Or];Ko&&oi(Oi,Ko,Or,Os)}return Oi})}(function(oi,Oi,ki){Mt(oi,Oi,ki)});const Uo=za;var Xa=s(26513);let vl=(()=>{class oi{constructor(){this.colorschemesOptions=new Xa.t(void 0)}setColorschemesOptions(ki){this.pColorschemesOptions=ki,this.colorschemesOptions.next(ki)}getColorschemesOptions(){return this.pColorschemesOptions}}return oi.\u0275fac=function(ki){return new(ki||oi)},oi.\u0275prov=n.jDH({token:oi,factory:oi.\u0275fac,providedIn:"root"}),oi})(),Pl=(()=>{class oi{constructor(ki,Or,is){this.zone=Or,this.themeService=is,this.type="bar",this.plugins=[],this.chartClick=new n.bkB,this.chartHover=new n.bkB,this.subs=[],this.themeOverrides={},this.ctx=ki.nativeElement.getContext("2d"),this.subs.push(this.themeService.colorschemesOptions.pipe((0,v.F)()).subscribe(Os=>this.themeChanged(Os)))}ngOnChanges(ki){const Or=["type"],is=Object.getOwnPropertyNames(ki);if(is.some(Os=>Or.includes(Os))||is.every(Os=>ki[Os].isFirstChange()))this.render();else{const Os=this.getChartConfiguration();this.chart&&(Object.assign(this.chart.config.data,Os.data),this.chart.config.plugins&&Object.assign(this.chart.config.plugins,Os.plugins),this.chart.config.options&&Object.assign(this.chart.config.options,Os.options)),this.update()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(ki=>ki.unsubscribe())}render(){return this.chart&&this.chart.destroy(),this.zone.runOutsideAngular(()=>this.chart=new l.t1(this.ctx,this.getChartConfiguration()))}update(ki){this.chart&&this.zone.runOutsideAngular(()=>this.chart?.update(ki))}hideDataset(ki,Or){this.chart&&(this.chart.getDatasetMeta(ki).hidden=Or,this.update())}isDatasetHidden(ki){return this.chart?.getDatasetMeta(ki)?.hidden}toBase64Image(){return this.chart?.toBase64Image()}themeChanged(ki){this.themeOverrides=ki,this.chart&&(this.chart.config.options&&Object.assign(this.chart.config.options,this.getChartOptions()),this.update())}getChartOptions(){return Uo({onHover:(ki,Or)=>{!this.chartHover.observed&&!this.chartHover.observers?.length||this.zone.run(()=>this.chartHover.emit({event:ki,active:Or}))},onClick:(ki,Or)=>{!this.chartClick.observed&&!this.chartClick.observers?.length||this.zone.run(()=>this.chartClick.emit({event:ki,active:Or}))}},this.themeOverrides,this.options,{plugins:{legend:{display:this.legend}}})}getChartConfiguration(){return{type:this.type,data:this.getChartData(),options:this.getChartOptions(),plugins:this.plugins}}getChartData(){return this.data?this.data:{labels:this.labels||[],datasets:this.datasets||[]}}}return oi.\u0275fac=function(ki){return new(ki||oi)(n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(vl))},oi.\u0275dir=n.FsC({type:oi,selectors:[["canvas","baseChart",""]],inputs:{type:"type",legend:"legend",data:"data",options:"options",plugins:"plugins",labels:"labels",datasets:"datasets"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[n.OA$]}),oi})();const Hs=[[255,99,132],[54,162,235],[255,206,86],[231,233,237],[75,192,192],[151,187,205],[220,220,220],[247,70,74],[70,191,189],[253,180,92],[148,159,177],[77,83,96]],wl={plugins:{colors:{enabled:!1}},datasets:{line:{backgroundColor:oi=>rl(_l(oi.datasetIndex),.4),borderColor:oi=>rl(_l(oi.datasetIndex),1),pointBackgroundColor:oi=>rl(_l(oi.datasetIndex),1),pointBorderColor:"#fff"},bar:{backgroundColor:oi=>rl(_l(oi.datasetIndex),.6),borderColor:oi=>rl(_l(oi.datasetIndex),1)},get radar(){return this.line},doughnut:{backgroundColor:oi=>rl(_l(oi.dataIndex),.6),borderColor:"#fff"},get pie(){return this.doughnut},polarArea:{backgroundColor:oi=>rl(_l(oi.dataIndex),.6),borderColor:oi=>rl(_l(oi.dataIndex),1)},get bubble(){return this.doughnut},get scatter(){return this.doughnut},get area(){return this.polarArea}}};function rl(oi,Oi){return"rgba("+oi.concat(Oi).join(",")+")"}function al(oi,Oi){return Math.floor(Math.random()*(Oi-oi+1))+oi}function _l(oi=0){return Hs[oi]||function gl(){return[al(0,255),al(0,255),al(0,255)]}()}let ii=(()=>{class oi{constructor(){this.generateColors=!0}}return oi.\u0275fac=function(ki){return new(ki||oi)},oi.\u0275prov=n.jDH({token:oi,factory:oi.\u0275fac,providedIn:"root"}),oi})();l.t1.register(...l.$L);let Sl=(()=>{class oi{constructor(ki){ki?.plugins&&l.t1.register(...ki?.plugins);const Or=Uo(ki?.generateColors?wl:{},ki?.defaults||{});d.d.set(Or)}static forRoot(ki){return{ngModule:oi,providers:[{provide:ii,useValue:ki}]}}}return oi.\u0275fac=function(ki){return new(ki||oi)(n.KVO(ii,8))},oi.\u0275mod=n.$C({type:oi}),oi.\u0275inj=n.G2t({}),oi})()},81248:Bt=>{"use strict";Bt.exports=JSON.parse('{"components/menu-item":"Verbose"}')}},Bt=>{Bt(Bt.s=37045)}]);
// SIG // Begin signature block
// SIG // MIIofAYJKoZIhvcNAQcCoIIobTCCKGkCAQExDzANBglg
// SIG // hkgBZQMEAgEFADB3BgorBgEEAYI3AgEEoGkwZzAyBgor
// SIG // BgEEAYI3AgEeMCQCAQEEEBDgyQbOONQRoqMAEEvTUJAC
// SIG // AQACAQACAQACAQACAQAwMTANBglghkgBZQMEAgEFAAQg
// SIG // DNrarsX8psWGCpe7m5zWYXgx0ZxSE9JIEsDHGhVH8iug
// SIG // gg20MIIGsDCCBJigAwIBAgIQCK1AsmDSnEyfXs2pvZOu
// SIG // 2TANBgkqhkiG9w0BAQwFADBiMQswCQYDVQQGEwJVUzEV
// SIG // MBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
// SIG // d3cuZGlnaWNlcnQuY29tMSEwHwYDVQQDExhEaWdpQ2Vy
// SIG // dCBUcnVzdGVkIFJvb3QgRzQwHhcNMjEwNDI5MDAwMDAw
// SIG // WhcNMzYwNDI4MjM1OTU5WjBpMQswCQYDVQQGEwJVUzEX
// SIG // MBUGA1UEChMORGlnaUNlcnQsIEluYy4xQTA/BgNVBAMT
// SIG // OERpZ2lDZXJ0IFRydXN0ZWQgRzQgQ29kZSBTaWduaW5n
// SIG // IFJTQTQwOTYgU0hBMzg0IDIwMjEgQ0ExMIICIjANBgkq
// SIG // hkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA1bQvQtAorXi3
// SIG // XdU5WRuxiEL1M4zrPYGXcMW7xIUmMJ+kjmjYXPXrNCQH
// SIG // 4UtP03hD9BfXHtr50tVnGlJPDqFX/IiZwZHMgQM+TXAk
// SIG // ZLON4gh9NH1MgFcSa0OamfLFOx/y78tHWhOmTLMBICXz
// SIG // ENOLsvsI8IrgnQnAZaf6mIBJNYc9URnokCF4RS6hnyzh
// SIG // GMIazMXuk0lwQjKP+8bqHPNlaJGiTUyCEUhSaN4QvRRX
// SIG // XegYE2XFf7JPhSxIpFaENdb5LpyqABXRN/4aBpTCfMjq
// SIG // GzLmysL0p6MDDnSlrzm2q2AS4+jWufcx4dyt5Big2MEj
// SIG // R0ezoQ9uo6ttmAaDG7dqZy3SvUQakhCBj7A7CdfHmzJa
// SIG // wv9qYFSLScGT7eG0XOBv6yb5jNWy+TgQ5urOkfW+0/tv
// SIG // k2E0XLyTRSiDNipmKF+wc86LJiUGsoPUXPYVGUztYuBe
// SIG // M/Lo6OwKp7ADK5GyNnm+960IHnWmZcy740hQ83eRGv7b
// SIG // UKJGyGFYmPV8AhY8gyitOYbs1LcNU9D4R+Z1MI3sMJN2
// SIG // FKZbS110YU0/EpF23r9Yy3IQKUHw1cVtJnZoEUETWJrc
// SIG // JisB9IlNWdt4z4FKPkBHX8mBUHOFECMhWWCKZFTBzCEa
// SIG // 6DgZfGYczXg4RTCZT/9jT0y7qg0IU0F8WD1Hs/q27Iwy
// SIG // CQLMbDwMVhECAwEAAaOCAVkwggFVMBIGA1UdEwEB/wQI
// SIG // MAYBAf8CAQAwHQYDVR0OBBYEFGg34Ou2O/hfEYb7/mF7
// SIG // CIhl9E5CMB8GA1UdIwQYMBaAFOzX44LScV1kTN8uZz/n
// SIG // upiuHA9PMA4GA1UdDwEB/wQEAwIBhjATBgNVHSUEDDAK
// SIG // BggrBgEFBQcDAzB3BggrBgEFBQcBAQRrMGkwJAYIKwYB
// SIG // BQUHMAGGGGh0dHA6Ly9vY3NwLmRpZ2ljZXJ0LmNvbTBB
// SIG // BggrBgEFBQcwAoY1aHR0cDovL2NhY2VydHMuZGlnaWNl
// SIG // cnQuY29tL0RpZ2lDZXJ0VHJ1c3RlZFJvb3RHNC5jcnQw
// SIG // QwYDVR0fBDwwOjA4oDagNIYyaHR0cDovL2NybDMuZGln
// SIG // aWNlcnQuY29tL0RpZ2lDZXJ0VHJ1c3RlZFJvb3RHNC5j
// SIG // cmwwHAYDVR0gBBUwEzAHBgVngQwBAzAIBgZngQwBBAEw
// SIG // DQYJKoZIhvcNAQEMBQADggIBADojRD2NCHbuj7w6mdNW
// SIG // 4AIapfhINPMstuZ0ZveUcrEAyq9sMCcTEp6QRJ9L/Z6j
// SIG // fCbVN7w6XUhtldU/SfQnuxaBRVD9nL22heB2fjdxyyL3
// SIG // WqqQz/WTauPrINHVUHmImoqKwba9oUgYftzYgBoRGRjN
// SIG // YZmBVvbJ43bnxOQbX0P4PpT/djk9ntSZz0rdKOtfJqGV
// SIG // WEjVGv7XJz/9kNF2ht0csGBc8w2o7uCJob054ThO2m67
// SIG // Np375SFTWsPK6Wrxoj7bQ7gzyE84FJKZ9d3OVG3ZXQIU
// SIG // H0AzfAPilbLCIXVzUstG2MQ0HKKlS43Nb3Y3LIU/Gs4m
// SIG // 6Ri+kAewQ3+ViCCCcPDMyu/9KTVcH4k4Vfc3iosJocsL
// SIG // 6TEa/y4ZXDlx4b6cpwoG1iZnt5LmTl/eeqxJzy6kdJKt
// SIG // 2zyknIYf48FWGysj/4+16oh7cGvmoLr9Oj9FpsToFpFS
// SIG // i0HASIRLlk2rREDjjfAVKM7t8RhWByovEMQMCGQ8M4+u
// SIG // KIw8y4+ICw2/O/TOHnuO77Xry7fwdxPm5yg/rBKupS8i
// SIG // bEH5glwVZsxsDsrFhsP2JjMMB0ug0wcCampAMEhLNKhR
// SIG // ILutG4UI4lkNbcoFUCvqShyepf2gpx8GdOfy1lKQ/a+F
// SIG // SCH5Vzu0nAPthkX0tGFuv2jiJmCG6sivqf6UHedjGzqG
// SIG // VnhOMIIG/DCCBOSgAwIBAgIQCZfFbKpZBVOU2anNuL7r
// SIG // VjANBgkqhkiG9w0BAQsFADBpMQswCQYDVQQGEwJVUzEX
// SIG // MBUGA1UEChMORGlnaUNlcnQsIEluYy4xQTA/BgNVBAMT
// SIG // OERpZ2lDZXJ0IFRydXN0ZWQgRzQgQ29kZSBTaWduaW5n
// SIG // IFJTQTQwOTYgU0hBMzg0IDIwMjEgQ0ExMB4XDTIzMDEx
// SIG // MzAwMDAwMFoXDTI2MDExNjIzNTk1OVowgYAxCzAJBgNV
// SIG // BAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRQwEgYD
// SIG // VQQHEwtTYW50YSBDbGFyYTEbMBkGA1UEChMSTlZJRElB
// SIG // IENvcnBvcmF0aW9uMQwwCgYDVQQLEwMyLUoxGzAZBgNV
// SIG // BAMTEk5WSURJQSBDb3Jwb3JhdGlvbjCCAaIwDQYJKoZI
// SIG // hvcNAQEBBQADggGPADCCAYoCggGBAIiAXRBzCNRy05OZ
// SIG // NUtJguKdJ1R5HNatdvXtn+pWXHg9PfhU9A5ZboWwSPej
// SIG // iZxJn9clYWVpyjPbkkFvaTBLYeHArmzswavs7+bct4df
// SIG // BTBZG8Qmc9kusaaOxNnuUevseGAC5H61QsGOVATdRQfS
// SIG // kfaP7kTBF9wuIat7BXVglPAlZagQTZWA/BA4Vr8GeNVY
// SIG // 5jU2C6F907UM6orsfsVfkBI8HSowD1U/faTS1yMBu1Mx
// SIG // ePUKZosFn2tYE4dUWId/Vv6LKWk30e/63C5Ul9e3eY7x
// SIG // aZ4eC0TqxluMWb2XdvCcfw9dELeI+0suWliFIyCgSf3A
// SIG // Kuq9cXnoMOBoPEeBOr3XWfCCNLxf9RcGxyaNPd1KcTOO
// SIG // ErSJMFpOCnVi5kys2NrTrFMFVZiRC49BidetoT6cHt3Z
// SIG // f+VHR3rqdUbo4xSpuvsfNA4GRYcWI2KvY3T6hBlrgTlr
// SIG // ngfA3ztOn+38KGJavEa7iJ+k/kjjnD47t0qQoRiujBi+
// SIG // q+mv6Hgy/g0VeQIDAQABo4ICBjCCAgIwHwYDVR0jBBgw
// SIG // FoAUaDfg67Y7+F8Rhvv+YXsIiGX0TkIwHQYDVR0OBBYE
// SIG // FL5vQA7WEARmpu0ItwJOm7f48LbRMA4GA1UdDwEB/wQE
// SIG // AwIHgDATBgNVHSUEDDAKBggrBgEFBQcDAzCBtQYDVR0f
// SIG // BIGtMIGqMFOgUaBPhk1odHRwOi8vY3JsMy5kaWdpY2Vy
// SIG // dC5jb20vRGlnaUNlcnRUcnVzdGVkRzRDb2RlU2lnbmlu
// SIG // Z1JTQTQwOTZTSEEzODQyMDIxQ0ExLmNybDBToFGgT4ZN
// SIG // aHR0cDovL2NybDQuZGlnaWNlcnQuY29tL0RpZ2lDZXJ0
// SIG // VHJ1c3RlZEc0Q29kZVNpZ25pbmdSU0E0MDk2U0hBMzg0
// SIG // MjAyMUNBMS5jcmwwPgYDVR0gBDcwNTAzBgZngQwBBAEw
// SIG // KTAnBggrBgEFBQcCARYbaHR0cDovL3d3dy5kaWdpY2Vy
// SIG // dC5jb20vQ1BTMIGUBggrBgEFBQcBAQSBhzCBhDAkBggr
// SIG // BgEFBQcwAYYYaHR0cDovL29jc3AuZGlnaWNlcnQuY29t
// SIG // MFwGCCsGAQUFBzAChlBodHRwOi8vY2FjZXJ0cy5kaWdp
// SIG // Y2VydC5jb20vRGlnaUNlcnRUcnVzdGVkRzRDb2RlU2ln
// SIG // bmluZ1JTQTQwOTZTSEEzODQyMDIxQ0ExLmNydDAMBgNV
// SIG // HRMBAf8EAjAAMA0GCSqGSIb3DQEBCwUAA4ICAQBNa3En
// SIG // raaMqv58RZV1qn0K09tv83qxwHaM6/N40w2fMljnGOxS
// SIG // xR1g0+R26S7XtwpzG+b8LWmWmyJKiZIogVkcfZpchS6B
// SIG // x+9HcUSo7TBBJn4ylcpQzksLOCmT6/DSeIDYucyQiHo8
// SIG // Nq3XkLpkJaDETnCBDulYZ+9pavQT4lNpB6sffbjsDcQ7
// SIG // CZQdImdzyNwd81c56xZc05ufVkronW78r35vwhzuNd88
// SIG // YQXr26fClBEXf3cNvytVupOeHZTy0Od+tPnAPl5744un
// SIG // 0f1MDjiKRne5FqDoo2F4EoeJQuaS6tWcFQg55dOEmOwS
// SIG // E8mweLCWDTTWmZV6x0IGHwagde1S5rkkmxpvAZRUkaD/
// SIG // ZTyxDiHywNi981mFvCnS1gKGd8GpqDuChpKAet8ivgB3
// SIG // 8hVTE/jsstKwQL7HNGxlmk7hyFxkbUNXki2gwJ/CSGaQ
// SIG // qqS3ctjF5Vv8mbtH2f3pK3AFaXOW7wDfjeuqF+yh6UxT
// SIG // ockgH6Ggc4tj+rcrwWhnbgu+JljlBbSKtGiEXMjA9Ccg
// SIG // YsbOIS9T1/FRAOW4KzCaG2FaX5eIhnCqXl79Va2OV8ul
// SIG // IgIbn1XaQQk6RvNPIwZzM8TARUTR9d1edtiuOymxDYm6
// SIG // j16TmoLkXlWUGLj05+yKut6rkqmYCqCJHRHD0T7LXUmw
// SIG // eBMWDQ5e0t8ADV8KGzGCGiAwghocAgEBMH0waTELMAkG
// SIG // A1UEBhMCVVMxFzAVBgNVBAoTDkRpZ2lDZXJ0LCBJbmMu
// SIG // MUEwPwYDVQQDEzhEaWdpQ2VydCBUcnVzdGVkIEc0IENv
// SIG // ZGUgU2lnbmluZyBSU0E0MDk2IFNIQTM4NCAyMDIxIENB
// SIG // MQIQCZfFbKpZBVOU2anNuL7rVjANBglghkgBZQMEAgEF
// SIG // AKB8MBAGCisGAQQBgjcCAQwxAjAAMBkGCSqGSIb3DQEJ
// SIG // AzEMBgorBgEEAYI3AgEEMBwGCisGAQQBgjcCAQsxDjAM
// SIG // BgorBgEEAYI3AgEVMC8GCSqGSIb3DQEJBDEiBCDHqmmC
// SIG // stiKtQHA2U8j33+0sbztSj7g1nQXx5erMdRkczANBgkq
// SIG // hkiG9w0BAQEFAASCAYA4+VIDsPA5t7uzfb+ULdA0Zfol
// SIG // HUzqS9EYXid5VQJqJ/4Qs0emrR1k54pxUHrIJwQ/P1Rr
// SIG // LdTH1ArOaGCqoOqOUMM7QS3GoAc8S2KpWAmn0hnMS+gC
// SIG // ET4mbOz6gSMjh3bcAo4E9XF2mOS/jiiG1OdfcB91ajdR
// SIG // Os4PuyYtGVacdxXTaerXeL+n9d7ICYPC78xK5gdSPM3h
// SIG // WIEoZ5T717DRuvLOoJXPSDTP3JW1tSwcb9GL1Mlw9n3w
// SIG // psPaFoZ3whoOhroCbfGO6P/B4rgLqgZxKgig828qnzJR
// SIG // QdpVpwi0Osab7sbEkHkXZXJ6AVucduHw/fZOv3riLdQb
// SIG // heWNY2Bo5RRqEVspvJ8nyG3R3OlmUqZyTKe6IAvbbyFU
// SIG // sd2y3vbMj7FnMDi7bL+Zb0MPlWia5DX8tObFvg6rCk9N
// SIG // bHLffvYOhqoN9u71VLL6jEixD3Fg4f5QGvKdq8/EFBAV
// SIG // pr1IuqPKymtYmitwo0z2FU91NPrO748SUz+4SF49HIrn
// SIG // 42Ghghd2MIIXcgYKKwYBBAGCNwMDATGCF2IwghdeBgkq
// SIG // hkiG9w0BBwKgghdPMIIXSwIBAzEPMA0GCWCGSAFlAwQC
// SIG // AQUAMHcGCyqGSIb3DQEJEAEEoGgEZjBkAgEBBglghkgB
// SIG // hv1sBwEwMTANBglghkgBZQMEAgEFAAQgZ5R0K2N1j7b4
// SIG // vIGMq7h7lefu5h6RqwpT21Iyi2z7jagCEFqBqFVLuG8X
// SIG // 85LsHV5qbFIYDzIwMjUxMDE1MjIyMDU2WqCCEzowggbt
// SIG // MIIE1aADAgECAhAKgO8YS43xBYLRxHanlXRoMA0GCSqG
// SIG // SIb3DQEBCwUAMGkxCzAJBgNVBAYTAlVTMRcwFQYDVQQK
// SIG // Ew5EaWdpQ2VydCwgSW5jLjFBMD8GA1UEAxM4RGlnaUNl
// SIG // cnQgVHJ1c3RlZCBHNCBUaW1lU3RhbXBpbmcgUlNBNDA5
// SIG // NiBTSEEyNTYgMjAyNSBDQTEwHhcNMjUwNjA0MDAwMDAw
// SIG // WhcNMzYwOTAzMjM1OTU5WjBjMQswCQYDVQQGEwJVUzEX
// SIG // MBUGA1UEChMORGlnaUNlcnQsIEluYy4xOzA5BgNVBAMT
// SIG // MkRpZ2lDZXJ0IFNIQTI1NiBSU0E0MDk2IFRpbWVzdGFt
// SIG // cCBSZXNwb25kZXIgMjAyNSAxMIICIjANBgkqhkiG9w0B
// SIG // AQEFAAOCAg8AMIICCgKCAgEA0EasLRLGntDqrmBWsytX
// SIG // um9R/4ZwCgHfyjfMGUIwYzKomd8U1nH7C8Dr0cVMF3Bs
// SIG // fAFI54um8+dnxk36+jx0Tb+k+87H9WPxNyFPJIDZHhAq
// SIG // lUPt281mHrBbZHqRK71Em3/hCGC5KyyneqiZ7syvFXJ9
// SIG // A72wzHpkBaMUNg7MOLxI6E9RaUueHTQKWXymOtRwJXcr
// SIG // cTTPPT2V1D/+cFllESviH8YjoPFvZSjKs3SKO1QNUdFd
// SIG // 2adw44wDcKgH+JRJE5Qg0NP3yiSyi5MxgU6cehGHr7zo
// SIG // u1znOM8odbkqoK+lJ25LCHBSai25CFyD23DZgPfDrJJJ
// SIG // K77epTwMP6eKA0kWa3osAe8fcpK40uhktzUd/Yk0xUvh
// SIG // DU6lvJukx7jphx40DQt82yepyekl4i0r8OEps/FNO4ah
// SIG // fvAk12hE5FVs9HVVWcO5J4dVmVzix4A77p3awLbr89A9
// SIG // 0/nWGjXMGn7FQhmSlIUDy9Z2hSgctaepZTd0ILIUbWuh
// SIG // KuAeNIeWrzHKYueMJtItnj2Q+aTyLLKLM0MheP/9w6Ct
// SIG // juuVHJOVoIJ/DtpJRE7Ce7vMRHoRon4CWIvuiNN1Lk9Y
// SIG // +xZ66lazs2kKFSTnnkrT3pXWETTJkhd76CIDBbTRofOs
// SIG // NyEhzZtCGmnQigpFHti58CSmvEyJcAlDVcKacJ+A9/z7
// SIG // eacCAwEAAaOCAZUwggGRMAwGA1UdEwEB/wQCMAAwHQYD
// SIG // VR0OBBYEFOQ7/PIx7f391/ORcWMZUEPPYYzoMB8GA1Ud
// SIG // IwQYMBaAFO9vU0rp5AZ8esrikFb2L9RJ7MtOMA4GA1Ud
// SIG // DwEB/wQEAwIHgDAWBgNVHSUBAf8EDDAKBggrBgEFBQcD
// SIG // CDCBlQYIKwYBBQUHAQEEgYgwgYUwJAYIKwYBBQUHMAGG
// SIG // GGh0dHA6Ly9vY3NwLmRpZ2ljZXJ0LmNvbTBdBggrBgEF
// SIG // BQcwAoZRaHR0cDovL2NhY2VydHMuZGlnaWNlcnQuY29t
// SIG // L0RpZ2lDZXJ0VHJ1c3RlZEc0VGltZVN0YW1waW5nUlNB
// SIG // NDA5NlNIQTI1NjIwMjVDQTEuY3J0MF8GA1UdHwRYMFYw
// SIG // VKBSoFCGTmh0dHA6Ly9jcmwzLmRpZ2ljZXJ0LmNvbS9E
// SIG // aWdpQ2VydFRydXN0ZWRHNFRpbWVTdGFtcGluZ1JTQTQw
// SIG // OTZTSEEyNTYyMDI1Q0ExLmNybDAgBgNVHSAEGTAXMAgG
// SIG // BmeBDAEEAjALBglghkgBhv1sBwEwDQYJKoZIhvcNAQEL
// SIG // BQADggIBAGUqrfEcJwS5rmBB7NEIRJ5jQHIh+OT2Ik/b
// SIG // NYulCrVvhREafBYF0RkP2AGr181o2YWPoSHz9iZEN/FP
// SIG // sLSTwVQWo2H62yGBvg7ouCODwrx6ULj6hYKqdT8wv2UV
// SIG // +Kbz/3ImZlJ7YXwBD9R0oU62PtgxOao872bOySCILdBg
// SIG // hQ/ZLcdC8cbUUO75ZSpbh1oipOhcUT8lD8QAGB9lctZT
// SIG // TOJM3pHfKBAEcxQFoHlt2s9sXoxFizTeHihsQyfFg5fx
// SIG // UFEp7W42fNBVN4ueLaceRf9Cq9ec1v5iQMWTFQa0xNqI
// SIG // tH3CPFTG7aEQJmmrJTV3Qhtfparz+BW60OiMEgV5GWoB
// SIG // y4RVPRwqxv7Mk0Sy4QHs7v9y69NBqycz0BZwhB9WOfOu
// SIG // /CIJnzkQTwtSSpGGhLdjnQ4eBpjtP+XB3pQCtv4E5UCS
// SIG // Dag6+iX8MmB10nfldPF9SVD7weCC3yXZi/uuhqdwkgVx
// SIG // uiMFzGVFwYbQsiGnoa9F5AaAyBjFBtXVLcKtapnMG3VH
// SIG // 3EmAp/jsJ3FVF3+d1SVDTmjFjLbNFZUWMXuZyvgLfgyP
// SIG // ehwJVxwC+UpX2MSey2ueIu9THFVkT+um1vshETaWyQo8
// SIG // gmBto/m3acaP9QsuLj3FNwFlTxq25+T4QwX9xa6ILs84
// SIG // ZPvmpovq90K8eWyG2N01c4IhSOxqt81nMIIGtDCCBJyg
// SIG // AwIBAgIQDcesVwX/IZkuQEMiDDpJhjANBgkqhkiG9w0B
// SIG // AQsFADBiMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGln
// SIG // aUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQu
// SIG // Y29tMSEwHwYDVQQDExhEaWdpQ2VydCBUcnVzdGVkIFJv
// SIG // b3QgRzQwHhcNMjUwNTA3MDAwMDAwWhcNMzgwMTE0MjM1
// SIG // OTU5WjBpMQswCQYDVQQGEwJVUzEXMBUGA1UEChMORGln
// SIG // aUNlcnQsIEluYy4xQTA/BgNVBAMTOERpZ2lDZXJ0IFRy
// SIG // dXN0ZWQgRzQgVGltZVN0YW1waW5nIFJTQTQwOTYgU0hB
// SIG // MjU2IDIwMjUgQ0ExMIICIjANBgkqhkiG9w0BAQEFAAOC
// SIG // Ag8AMIICCgKCAgEAtHgx0wqYQXK+PEbAHKx126NGaHS0
// SIG // URedTa2NDZS1mZaDLFTtQ2oRjzUXMmxCqvkbsDpz4aH+
// SIG // qbxeLho8I6jY3xL1IusLopuW2qftJYJaDNs1+JH7Z+Qd
// SIG // SKWM06qchUP+AbdJgMQB3h2DZ0Mal5kYp77jYMVQXSZH
// SIG // ++0trj6Ao+xh/AS7sQRuQL37QXbDhAktVJMQbzIBHYJB
// SIG // YgzWIjk8eDrYhXDEpKk7RdoX0M980EpLtlrNyHw0Xm+n
// SIG // t5pnYJU3Gmq6bNMI1I7Gb5IBZK4ivbVCiZv7PNBYqHEp
// SIG // NVWC2ZQ8BbfnFRQVESYOszFI2Wv82wnJRfN20VRS3hpL
// SIG // gIR4hjzL0hpoYGk81coWJ+KdPvMvaB0WkE/2qHxJ0ucS
// SIG // 638ZxqU14lDnki7CcoKCz6eum5A19WZQHkqUJfdkDjHk
// SIG // ccpL6uoG8pbF0LJAQQZxst7VvwDDjAmSFTUms+wV/FbW
// SIG // Bqi7fTJnjq3hj0XbQcd8hjj/q8d6ylgxCZSKi17yVp2N
// SIG // L+cnT6Toy+rN+nM8M7LnLqCrO2JP3oW//1sfuZDKiDEb
// SIG // 1AQ8es9Xr/u6bDTnYCTKIsDq1BtmXUqEG1NqzJKS4kOm
// SIG // xkYp2WyODi7vQTCBZtVFJfVZ3j7OgWmnhFr4yUozZtqg
// SIG // PrHRVHhGNKlYzyjlroPxul+bgIspzOwbtmsgY1MCAwEA
// SIG // AaOCAV0wggFZMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYD
// SIG // VR0OBBYEFO9vU0rp5AZ8esrikFb2L9RJ7MtOMB8GA1Ud
// SIG // IwQYMBaAFOzX44LScV1kTN8uZz/nupiuHA9PMA4GA1Ud
// SIG // DwEB/wQEAwIBhjATBgNVHSUEDDAKBggrBgEFBQcDCDB3
// SIG // BggrBgEFBQcBAQRrMGkwJAYIKwYBBQUHMAGGGGh0dHA6
// SIG // Ly9vY3NwLmRpZ2ljZXJ0LmNvbTBBBggrBgEFBQcwAoY1
// SIG // aHR0cDovL2NhY2VydHMuZGlnaWNlcnQuY29tL0RpZ2lD
// SIG // ZXJ0VHJ1c3RlZFJvb3RHNC5jcnQwQwYDVR0fBDwwOjA4
// SIG // oDagNIYyaHR0cDovL2NybDMuZGlnaWNlcnQuY29tL0Rp
// SIG // Z2lDZXJ0VHJ1c3RlZFJvb3RHNC5jcmwwIAYDVR0gBBkw
// SIG // FzAIBgZngQwBBAIwCwYJYIZIAYb9bAcBMA0GCSqGSIb3
// SIG // DQEBCwUAA4ICAQAXzvsWgBz+Bz0RdnEwvb4LyLU0pn/N
// SIG // 0IfFiBowf0/Dm1wGc/Do7oVMY2mhXZXjDNJQa8j00DNq
// SIG // hCT3t+s8G0iP5kvN2n7Jd2E4/iEIUBO41P5F448rSYJ5
// SIG // 9Ib61eoalhnd6ywFLerycvZTAz40y8S4F3/a+Z1jEMK/
// SIG // DMm/axFSgoR8n6c3nuZB9BfBwAQYK9FHaoq2e26MHvVY
// SIG // 9gCDA/JYsq7pGdogP8HRtrYfctSLANEBfHU16r3J05qX
// SIG // 3kId+ZOczgj5kjatVB+NdADVZKON/gnZruMvNYY2o1f4
// SIG // MXRJDMdTSlOLh0HCn2cQLwQCqjFbqrXuvTPSegOOzr4E
// SIG // Wj7PtspIHBldNE2K9i697cvaiIo2p61Ed2p8xMJb82Yo
// SIG // sn0z4y25xUbI7GIN/TpVfHIqQ6Ku/qjTY6hc3hsXMrS+
// SIG // U0yy+GWqAXam4ToWd2UQ1KYT70kZjE4YtL8Pbzg0c1ug
// SIG // MZyZZd/BdHLiRu7hAWE6bTEm4XYRkA6Tl4KSFLFk43es
// SIG // aUeqGkH/wyW4N7OigizwJWeukcyIPbAvjSabnf7+Pu0V
// SIG // rFgoiovRDiyx3zEdmcif/sYQsfch28bZeUz2rtY/9TCA
// SIG // 6TD8dC3JE3rYkrhLULy7Dc90G6e8BlqmyIjlgp2+VqsS
// SIG // 9/wQD7yFylIz0scmbKvFoW2jNrbM1pD2T7m3XDCCBY0w
// SIG // ggR1oAMCAQICEA6bGI750C3n79tQ4ghAGFowDQYJKoZI
// SIG // hvcNAQEMBQAwZTELMAkGA1UEBhMCVVMxFTATBgNVBAoT
// SIG // DERpZ2lDZXJ0IEluYzEZMBcGA1UECxMQd3d3LmRpZ2lj
// SIG // ZXJ0LmNvbTEkMCIGA1UEAxMbRGlnaUNlcnQgQXNzdXJl
// SIG // ZCBJRCBSb290IENBMB4XDTIyMDgwMTAwMDAwMFoXDTMx
// SIG // MTEwOTIzNTk1OVowYjELMAkGA1UEBhMCVVMxFTATBgNV
// SIG // BAoTDERpZ2lDZXJ0IEluYzEZMBcGA1UECxMQd3d3LmRp
// SIG // Z2ljZXJ0LmNvbTEhMB8GA1UEAxMYRGlnaUNlcnQgVHJ1
// SIG // c3RlZCBSb290IEc0MIICIjANBgkqhkiG9w0BAQEFAAOC
// SIG // Ag8AMIICCgKCAgEAv+aQc2jeu+RdSjwwIjBpM+zCpyUu
// SIG // ySE98orYWcLhKac9WKt2ms2uexuEDcQwH/MbpDgW61bG
// SIG // l20dq7J58soR0uRf1gU8Ug9SH8aeFaV+vp+pVxZZVXKv
// SIG // aJNwwrK6dZlqczKU0RBEEC7fgvMHhOZ0O21x4i0MG+4g
// SIG // 1ckgHWMpLc7sXk7Ik/ghYZs06wXGXuxbGrzryc/NrDRA
// SIG // X7F6Zu53yEioZldXn1RYjgwrt0+nMNlW7sp7XeOtyU9e
// SIG // 5TXnMcvak17cjo+A2raRmECQecN4x7axxLVqGDgDEI3Y
// SIG // 1DekLgV9iPWCPhCRcKtVgkEy19sEcypukQF8IUzUvK4b
// SIG // A3VdeGbZOjFEmjNAvwjXWkmkwuapoGfdpCe8oU85tRFY
// SIG // F/ckXEaPZPfBaYh2mHY9WV1CdoeJl2l6SPDgohIbZpp0
// SIG // yt5LHucOY67m1O+SkjqePdwA5EUlibaaRBkrfsCUtNJh
// SIG // besz2cXfSwQAzH0clcOP9yGyshG3u3/y1YxwLEFgqrFj
// SIG // GESVGnZifvaAsPvoZKYz0YkH4b235kOkGLimdwHhD5QM
// SIG // IR2yVCkliWzlDlJRR3S+Jqy2QXXeeqxfjT/JvNNBERJb
// SIG // 5RBQ6zHFynIWIgnffEx1P2PsIV/EIFFrb7GrhotPwtZF
// SIG // X50g/KEexcCPorF+CiaZ9eRpL5gdLfXZqbId5RsCAwEA
// SIG // AaOCATowggE2MA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0O
// SIG // BBYEFOzX44LScV1kTN8uZz/nupiuHA9PMB8GA1UdIwQY
// SIG // MBaAFEXroq/0ksuCMS1Ri6enIZ3zbcgPMA4GA1UdDwEB
// SIG // /wQEAwIBhjB5BggrBgEFBQcBAQRtMGswJAYIKwYBBQUH
// SIG // MAGGGGh0dHA6Ly9vY3NwLmRpZ2ljZXJ0LmNvbTBDBggr
// SIG // BgEFBQcwAoY3aHR0cDovL2NhY2VydHMuZGlnaWNlcnQu
// SIG // Y29tL0RpZ2lDZXJ0QXNzdXJlZElEUm9vdENBLmNydDBF
// SIG // BgNVHR8EPjA8MDqgOKA2hjRodHRwOi8vY3JsMy5kaWdp
// SIG // Y2VydC5jb20vRGlnaUNlcnRBc3N1cmVkSURSb290Q0Eu
// SIG // Y3JsMBEGA1UdIAQKMAgwBgYEVR0gADANBgkqhkiG9w0B
// SIG // AQwFAAOCAQEAcKC/Q1xV5zhfoKN0Gz22Ftf3v1cHvZqs
// SIG // oYcs7IVeqRq7IviHGmlUIu2kiHdtvRoU9BNKei8ttzjv
// SIG // 9P+Aufih9/Jy3iS8UgPITtAq3votVs/59PesMHqai7Je
// SIG // 1M/RQ0SbQyHrlnKhSLSZy51PpwYDE3cnRNTnf+hZqPC/
// SIG // Lwum6fI0POz3A8eHqNJMQBk1RmppVLC4oVaO7KTVPeix
// SIG // 3P0c2PR3WlxUjG/voVA9/HYJaISfb8rbII01YBwCA8sg
// SIG // sKxYoA5AY8WYIsGyWfVVa88nq2x2zm8jLfR+cWojayL/
// SIG // ErhULSd+2DrZ8LaHlv1b0VysGMNNn3O3AamfV6peKOK5
// SIG // lDGCA3wwggN4AgEBMH0waTELMAkGA1UEBhMCVVMxFzAV
// SIG // BgNVBAoTDkRpZ2lDZXJ0LCBJbmMuMUEwPwYDVQQDEzhE
// SIG // aWdpQ2VydCBUcnVzdGVkIEc0IFRpbWVTdGFtcGluZyBS
// SIG // U0E0MDk2IFNIQTI1NiAyMDI1IENBMQIQCoDvGEuN8QWC
// SIG // 0cR2p5V0aDANBglghkgBZQMEAgEFAKCB0TAaBgkqhkiG
// SIG // 9w0BCQMxDQYLKoZIhvcNAQkQAQQwHAYJKoZIhvcNAQkF
// SIG // MQ8XDTI1MTAxNTIyMjA1NlowKwYLKoZIhvcNAQkQAgwx
// SIG // HDAaMBgwFgQU3WIwrIYKLTBr2jixaHlSMAf7QX4wLwYJ
// SIG // KoZIhvcNAQkEMSIEIOeu1IiWm87e7ZdOjTFDAuxsjMTN
// SIG // rEDas9qgeVOEpvAMMDcGCyqGSIb3DQEJEAIvMSgwJjAk
// SIG // MCIEIEqgP6Is11yExVyTj4KOZ2ucrsqzP+NtJpqjNPFG
// SIG // EQozMA0GCSqGSIb3DQEBAQUABIICAIME/mlu+PjJePfJ
// SIG // B4ATIe+F/HMglXP60BOva/0UgvQA458ZARtgLZg9U3fw
// SIG // Vne1WT2B0ZXPndNY42pd312BWp0QvtOGOkShcnx8tXUD
// SIG // HKjQxK+hv4oF7O9HM2TQ+QjRWlJQFnEr5oGvwc9LX1l6
// SIG // ilgUd4zx0J2zcdiYpOveBMpkR3iZ0UglCQSc7LZR6VZj
// SIG // X8KldVJcqCQJCM9FYqwPElQtLOc9byQq1nPdHTC+p4L6
// SIG // mrlarYNLdq5edwNG9JS9x/REV4a090hW9hy9Qljexm3p
// SIG // poGbaOm9BZ2ZFeB8e+WDdTSy1IXA8gNbv0GaUU0tl+4C
// SIG // PJYb1CHxrXnlpOwZeyBxWhxyLZKeehzDefcrvo2704L9
// SIG // maEmc02EB+sg3fFxIu5M1LTiyehAcDFv11f5AJZux9IH
// SIG // Ei9AdKG2l7XzrFX6qrXETjQf+Jh7vegGJqmwS2W3uN9c
// SIG // lzvdBFhuQjeltP3vzRdJX1DpAfxGnw6dmoAkYV0tb9XT
// SIG // fbhyIattaV2rLF/m2mkmTr7nsOoPBqc0KxcMiyrV+rRl
// SIG // O1XG3ySk5qY0imrsqdnbhFU9StvYZV2MkAl5u3LT0OoQ
// SIG // TKYWxiufuf+Z5VMfPz2KeH8O9wwQEsaFhIyIpWP7loQo
// SIG // Z/VvQrEM51hSY8QXaDBUMSsKMWgKM4WeTJWX07N7Kgf7
// SIG // dc1T/PGn
// SIG // End signature block